From f5df7b88b8624b5d3c69741c254936607f30e576 Mon Sep 17 00:00:00 2001 From: Xiaodong Date: Fri, 24 Oct 2025 09:44:02 +0800 Subject: [PATCH] fix(frontend): output crash (message offset out) with table --- .../{App-DniR8u3r.js => App-D1sLFjME.js} | 4 +- .../{chat-CEy4KFWr.js => chat-CHpu7til.js} | 2 +- src/frontend/dist/assets/chat-DeAtmKbt.js | 1 + src/frontend/dist/assets/chat-DyvDlm1Y.js | 1 - .../{join-CEv_A3ai.js => join-B2TOuiut.js} | 2 +- src/frontend/dist/assets/main-BvbEw6kA.js | 1 - src/frontend/dist/assets/main-DwL8292m.js | 1 + ...ut-CrccPG6x.js => main-layout-C6XVZnhy.js} | 36 ++++---- .../{setup-9gT1ttVB.js => setup-B7qhYC5e.js} | 2 +- src/frontend/dist/chat.html | 4 +- src/frontend/dist/index.html | 4 +- .../src/components/inputs/chat-messages.tsx | 88 +++++++++++-------- 12 files changed, 79 insertions(+), 67 deletions(-) rename src/frontend/dist/assets/{App-DniR8u3r.js => App-D1sLFjME.js} (99%) rename src/frontend/dist/assets/{chat-CEy4KFWr.js => chat-CHpu7til.js} (99%) create mode 100644 src/frontend/dist/assets/chat-DeAtmKbt.js delete mode 100644 src/frontend/dist/assets/chat-DyvDlm1Y.js rename src/frontend/dist/assets/{join-CEv_A3ai.js => join-B2TOuiut.js} (94%) delete mode 100644 src/frontend/dist/assets/main-BvbEw6kA.js create mode 100644 src/frontend/dist/assets/main-DwL8292m.js rename src/frontend/dist/assets/{main-layout-CrccPG6x.js => main-layout-C6XVZnhy.js} (94%) rename src/frontend/dist/assets/{setup-9gT1ttVB.js => setup-B7qhYC5e.js} (98%) diff --git a/src/frontend/dist/assets/App-DniR8u3r.js b/src/frontend/dist/assets/App-D1sLFjME.js similarity index 99% rename from src/frontend/dist/assets/App-DniR8u3r.js rename to src/frontend/dist/assets/App-D1sLFjME.js index 66e11e11..86e52f58 100644 --- a/src/frontend/dist/assets/App-DniR8u3r.js +++ b/src/frontend/dist/assets/App-D1sLFjME.js @@ -1,4 +1,4 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-9gT1ttVB.js","assets/main-layout-CrccPG6x.js","assets/main-layout-DVneG3Rq.css","assets/join-CEv_A3ai.js","assets/chat-CEy4KFWr.js"])))=>i.map(i=>d[i]); +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/setup-B7qhYC5e.js","assets/main-layout-C6XVZnhy.js","assets/main-layout-DVneG3Rq.css","assets/join-B2TOuiut.js","assets/chat-CHpu7til.js"])))=>i.map(i=>d[i]); function N2(n,r){for(var l=0;lo[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))o(u);new MutationObserver(u=>{for(const c of u)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(u){const c={};return u.integrity&&(c.integrity=u.integrity),u.referrerPolicy&&(c.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?c.credentials="include":u.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(u){if(u.ep)return;u.ep=!0;const c=l(u);fetch(u.href,c)}})();function Ba(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Of={exports:{}},vl={};/** * @license React * react-jsx-runtime.production.js @@ -317,4 +317,4 @@ export default theme;`}function Qg(n){return typeof n=="number"?`${(n*100).toFix `);G=X.pop()||"",X.forEach(le=>{try{const w=u(JSON.parse(le));M(w)}catch(w){C("Parse Message Error",w)}})}}).catch(async J=>{I&&(clearTimeout(I),I=void 0),await D(),C("fetch error",J),T("error"),y?.(J)}).finally(async()=>{I&&(clearTimeout(I),I=void 0),await D(),E=void 0})};return Object.freeze({send:$,abort:()=>{try{E?.abort(),E=void 0}catch(N){C("abort error",N)}O?.cancel(),O=void 0,T("disconnected")}})},mu="",Aw=async()=>{const r=await(await fetch(`${mu}/model/list`,{method:"GET"})).json();if(r.type!=="model_list")throw new Error(`Invalid message type: ${r.type}.`);return r.data},Ow=async n=>{const l=await(await fetch(`${mu}/scheduler/init`,{method:"POST",body:JSON.stringify(n)})).json();if(l.type!=="scheduler_init")throw new Error(`Invalid message type: ${l.type}.`);return l.data},Rw=ww({url:`${mu}/cluster/status`,method:"GET"}),Dd=n=>{const r=x.useRef(void 0);return r.current||(r.current={value:typeof n=="function"?n():n}),r.current.value},Dw=n=>{const r=x.useRef(void 0);return r.current||(r.current={callback:n}),r.current.callback},fr=n=>{const r=x.useRef(void 0);return r.current=n,Dw(((...o)=>r.current?.(...o)))},g1=x.createContext(void 0),{Provider:_w}=g1,kw=({children:n,type:r})=>{const l=Dd(()=>({})),o=x.useMemo(()=>[{type:r},l],[r,l]);return W.jsx(_w,{value:o,children:n})},zw=()=>{const n=x.useContext(g1);if(!n)throw new Error("useHost must be used within a HostProvider");return n},$w="data:image/svg+xml,%3csvg%20width='721'%20height='721'%20viewBox='0%200%20721%20721'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1637_2934)'%3e%3cg%20clip-path='url(%23clip1_1637_2934)'%3e%3cpath%20d='M304.246%20294.611V249.028C304.246%20245.189%20305.687%20242.309%20309.044%20240.392L400.692%20187.612C413.167%20180.415%20428.042%20177.058%20443.394%20177.058C500.971%20177.058%20537.44%20221.682%20537.44%20269.182C537.44%20272.54%20537.44%20276.379%20536.959%20280.218L441.954%20224.558C436.197%20221.201%20430.437%20221.201%20424.68%20224.558L304.246%20294.611ZM518.245%20472.145V363.224C518.245%20356.505%20515.364%20351.707%20509.608%20348.349L389.174%20278.296L428.519%20255.743C431.877%20253.826%20434.757%20253.826%20438.115%20255.743L529.762%20308.523C556.154%20323.879%20573.905%20356.505%20573.905%20388.171C573.905%20424.636%20552.315%20458.225%20518.245%20472.141V472.145ZM275.937%20376.182L236.592%20353.152C233.235%20351.235%20231.794%20348.354%20231.794%20344.515V238.956C231.794%20187.617%20271.139%20148.749%20324.4%20148.749C344.555%20148.749%20363.264%20155.468%20379.102%20167.463L284.578%20222.164C278.822%20225.521%20275.942%20230.319%20275.942%20237.039V376.186L275.937%20376.182ZM360.626%20425.122L304.246%20393.455V326.283L360.626%20294.616L417.002%20326.283V393.455L360.626%20425.122ZM396.852%20570.989C376.698%20570.989%20357.989%20564.27%20342.151%20552.276L436.674%20497.574C442.431%20494.217%20445.311%20489.419%20445.311%20482.699V343.552L485.138%20366.582C488.495%20368.499%20489.936%20371.379%20489.936%20375.219V480.778C489.936%20532.117%20450.109%20570.985%20396.852%20570.985V570.989ZM283.134%20463.99L191.486%20411.211C165.094%20395.854%20147.343%20363.229%20147.343%20331.562C147.343%20294.616%20169.415%20261.509%20203.48%20247.593V356.991C203.48%20363.71%20206.361%20368.508%20212.117%20371.866L332.074%20441.437L292.729%20463.99C289.372%20465.907%20286.491%20465.907%20283.134%20463.99ZM277.859%20542.68C223.639%20542.68%20183.813%20501.895%20183.813%20451.514C183.813%20447.675%20184.294%20443.836%20184.771%20439.997L279.295%20494.698C285.051%20498.056%20290.812%20498.056%20296.568%20494.698L417.002%20425.127V470.71C417.002%20474.549%20415.562%20477.429%20412.204%20479.346L320.557%20532.126C308.081%20539.323%20293.206%20542.68%20277.854%20542.68H277.859ZM396.852%20599.776C454.911%20599.776%20503.37%20558.513%20514.41%20503.812C568.149%20489.896%20602.696%20439.515%20602.696%20388.176C602.696%20354.587%20588.303%20321.962%20562.392%20298.45C564.791%20288.373%20566.231%20278.296%20566.231%20268.224C566.231%20199.611%20510.571%20148.267%20446.274%20148.267C433.322%20148.267%20420.846%20150.184%20408.37%20154.505C386.775%20133.392%20357.026%20119.958%20324.4%20119.958C266.342%20119.958%20217.883%20161.22%20206.843%20215.921C153.104%20229.837%20118.557%20280.218%20118.557%20331.557C118.557%20365.146%20132.95%20397.771%20158.861%20421.283C156.462%20431.36%20155.022%20441.437%20155.022%20451.51C155.022%20520.123%20210.682%20571.466%20274.978%20571.466C287.931%20571.466%20300.407%20569.549%20312.883%20565.228C334.473%20586.341%20364.222%20599.776%20396.852%20599.776Z'%20fill='black'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1637_2934'%3e%3crect%20width='720'%20height='720'%20fill='white'%20transform='translate(0.606934%200.0999756)'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_1637_2934'%3e%3crect%20width='484.139'%20height='479.818'%20fill='white'%20transform='translate(118.557%20119.958)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Nw="/assets/Qwen3-CHUafU1E.png",Lw="/assets/NVIDIA-DleEbUC3.png",Bw="/assets/MoonshotAI-C_u2alMD.png",jw="/assets/DeepSeek-C1XK8X_U.png",Uw={openai:$w,qwen:Nw,nvidia:Lw,moonshotai:Bw,deepseek:jw},Hw=n=>{n=n.toLowerCase();const r=n.split(/[-/]/);return Uw[r[0]]||""},Ts=(...n)=>{console.log("%c cluster.tsx ","color: white; background: darkcyan;",...n)},By={id:"",status:"idle",modelName:"",nodeJoinCommand:{},initNodesNumber:4},y1=x.createContext(void 0),{Provider:Yw}=y1,qw=({children:n})=>{const[{type:r}]=zw(),[l,o]=x.useState("local"),[u,c]=x.useState(1),[d,h]=x.useState(""),[p,m]=x.useState([]),y=fr(async()=>{if(r==="node")return;let B=!1;for(;!B;)try{const _=await Aw();m(N=>{const V=_.map(F=>({name:F,displayName:F,logoUrl:Hw(F)}));return JSON.stringify(V)!==JSON.stringify(N)?(Ts("setModelInfoList",V),V):N}),B=!0}catch(_){console.error("getModelList error",_),await new Promise(N=>setTimeout(N,2e3))}});x.useEffect(()=>{y()},[]),x.useEffect(()=>{p.length&&h(p[0].name)},[p]);const[b,E]=x.useState(By),[O,C]=x.useState([]),T=fr(()=>{Ts("reset"),E(By),C([])}),M=x.useMemo(()=>Rw({debugName:"ClusterStatus",autoReconnect:!0,onMessage:N=>{if(N.type==="cluster_status"){const{data:{status:V,init_nodes_num:F,model_name:Q,node_join_command:I,node_list:K}}=N;h(S=>Q||S),E(S=>{const J={...S,status:Q&&V||"idle",initNodesNumber:F||0,modelName:Q||"",nodeJoinCommand:I||{}};return JSON.stringify(J)!==JSON.stringify(S)?(Ts("setClusterInfo",J),J):S}),C(S=>{let J=K.map(({node_id:A,status:U,gpu_name:X,gpu_memory:le})=>({id:A,status:U,gpuName:X,gpuMemory:le}));const G=S.filter(A=>J.some(U=>U.id===A.id)),Z=S.filter(A=>!J.some(U=>U.id===A.id)).map(A=>({...A,status:"failed"}));return JSON.stringify(J)===JSON.stringify(G)&&(J=[...J,...Z]),JSON.stringify(J)!==JSON.stringify(S)?(Ts("setNodeInfoList",J),J):S})}},onError:T}),[]);x.useEffect(()=>{M.send()},[]);const D=fr(async()=>{if(u<1)throw new Error("initNodesNumber must be greater than 0");if(!d)throw new Error("modelName is required");await Ow({model_name:d,init_nodes_num:u,is_local_network:l==="local"})}),k=x.useMemo(()=>({setNetworkType:o,setInitNodesNumber:c,setModelName:h,init:D}),[]),$=x.useMemo(()=>[{networkType:l,initNodesNumber:u,modelName:d,modelInfoList:p,clusterInfo:b,nodeInfoList:O},k],[l,u,d,p,b,O,k]);return W.jsx(Yw,{value:$,children:n})},v1=()=>{const n=x.useContext(y1);if(!n)throw new Error("useCluster must be used within a ClusterProvider");return n};function Gw(n){n=n.trim();const r={analysis:"",final:""},l=/<\|channel\|>([^<]+)<\|message\|>(.*?)(<\|end\|>|$)/gs;let o;for(;(o=l.exec(n))!==null;)r[o[1]]=o[2]?.trim()||"";return r}const Ms="",jy="";function Vw(n){n=n.trim();const r={think:"",content:""};for(;n.includes(Ms);){const l=n.indexOf(Ms),o=n.indexOf(jy),u=n.substring(l+Ms.length,o>l?o:n.length);n=n.replace(Ms+u+(o>l?jy:""),""),r.think+=` `+u}return r.think=r.think.trim(),r.content=n.trim(),r}const yt=async(...n)=>{},Pw=({children:n})=>{const[{clusterInfo:{status:r,modelName:l}}]=v1(),[o,u]=x.useState(""),[c,d]=x.useState("closed"),h=fr(M=>{d(D=>{const k=typeof M=="function"?M(D):M;return k!==D&&yt("setStatus","status",k),k})}),[p,m]=x.useState([]),y=Dd(()=>Xw({onOpen:()=>{yt("SSE OPEN"),h("opened")},onClose:()=>{yt("SSE CLOSE"),m(M=>{const D=M[M.length-1],{id:k,raw:$,thinking:B,content:_}=D;return yt("GENERATING DONE","lastMessage:",D),yt("GENERATING DONE","id:",k),yt("GENERATING DONE","raw:",$),yt("GENERATING DONE","thinking:",B),yt("GENERATING DONE","content:",_),[...M.slice(0,-1),{...D,status:"done"}]}),h("closed")},onError:M=>{yt("SSE ERROR",M),m(D=>{const k=D[D.length-1],{id:$,raw:B,thinking:_,content:N}=k;return yt("GENERATING ERROR","lastMessage:",k),yt("GENERATING ERROR","id:",$),yt("GENERATING ERROR","raw:",B),yt("GENERATING ERROR","thinking:",_),yt("GENERATING ERROR","content:",N),[...D.slice(0,-1),{...k,status:"done"}]}),yt("SSE ERROR",M),h("error")},onMessage:M=>{const{data:{id:D,object:k,model:$,created:B,choices:_,usage:N}}=M;k==="chat.completion.chunk"&&_?.length>0&&(_[0].delta.content&&h("generating"),m(V=>{let F=V;if(_.forEach(({delta:{role:Q,content:I}={}})=>{if(typeof I!="string"||!I)return;Q=Q||"assistant";let K=F[F.length-1];if(K&&K.role===Q){const S=K.raw+I;K={...K,raw:S,content:S},F=[...F.slice(0,-1),K]}else K={id:D,role:Q,status:"thinking",raw:I,content:I,createdAt:B},F=[...F,K]}),F!==V&&typeof $=="string"){let Q=F[F.length-1],I="",K="";const S=$.toLowerCase();S.includes("gpt-oss")?{analysis:I,final:K}=Gw(Q.raw||""):S.includes("qwen")?{think:I,content:K}=Vw(Q.raw||""):K=Q.raw||"",Q={...Q,status:K&&"generating"||"thinking",thinking:I,content:K},F=[...F.slice(0,-1),Q]}return F}))}})),b=fr(M=>{if(r!=="available"||c==="opened"||c==="generating"||!l)return;let D=p;if(M){const k=p.findIndex(B=>B.id===M.id),$=p[k];if(!$)return;D=D.slice(0,k+($.role==="user"?1:0)),yt("generate","regenerate",D)}else{const k=o.trim();if(!k)return;u("");const $=performance.now();D=[...D,{id:$.toString(),role:"user",status:"done",content:k,createdAt:$}],yt("generate","new",D)}m(D),y.connect(l,D.map(({id:k,role:$,content:B})=>({id:k,role:$,content:B})))}),E=fr(()=>{yt("stop","status",c),!(c==="closed"||c==="error")&&y.disconnect()}),O=fr(()=>{yt("clear","status",c),E(),!(c==="opened"||c==="generating")&&m([])}),C=Dd({setInput:u,generate:b,stop:E,clear:O}),T=x.useMemo(()=>[{input:o,status:c,messages:p},C],[o,c,p,C]);return W.jsx(b1.Provider,{value:T,children:n})},b1=x.createContext(void 0),gA=()=>{const n=x.useContext(b1);if(!n)throw new Error("useChat must be used within a ChatProvider");return n},Xw=n=>{const{onOpen:r,onClose:l,onError:o,onMessage:u}=n,c=new TextDecoder;let d,h;return{connect:(y,b)=>{h=new AbortController;const E=`${mu}/v1/chat/completions`;r?.(),fetch(E,{method:"POST",body:JSON.stringify({stream:!0,model:y,messages:b,max_tokens:2048,sampling_params:{top_k:3}}),signal:h.signal}).then(async O=>{const C=O.status,T=O.headers.get("Content-Type");if(C!==200){o?.(new Error(`[SSE] Failed to connect: ${C}`));return}if(!T?.includes("text/event-stream")){o?.(new Error(`[SSE] Invalid content type: ${T}`));return}if(d=O.body?.getReader(),!d){o?.(new Error("[SSE] Failed to get reader"));return}let M="";const D=k=>{const $={event:"message",data:void 0};k.forEach(B=>{const _=B.indexOf(":");if(_<=0)return;const N=B.slice(0,_).trim(),V=B.slice(_+1).trim();if(!V.startsWith(":")){switch(N){case"event":$.event=V;break;case"id":$.id=V;break;case"data":try{const F=JSON.parse(V),Q=I=>{I&&(Array.isArray(I)?I.forEach((K,S)=>{K===null?I[S]=void 0:Q(K)}):typeof I=="object"&&Object.keys(I).forEach(K=>{I[K]===null?delete I[K]:Q(I[K])}))};Q(F),$.data=F}catch{$.data=V}break}$.data!==void 0&&u?.($)}})};for(;;){const{done:k,value:$}=await d.read();if(k){l?.();return}const B=c.decode($);M+=B;const _=M.split(` -`);M=_.pop()||"",D(_)}}).catch(O=>{if(O instanceof Error&&O.name==="AbortError"){l?.();return}o?.(O)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},td="/setup",Zw="/join",ws="/chat",Iw=x.lazy(()=>hu(()=>import("./setup-9gT1ttVB.js"),__vite__mapDeps([0,1,2]))),Qw=x.lazy(()=>hu(()=>import("./join-CEv_A3ai.js"),__vite__mapDeps([3,1,2]))),Kw=x.lazy(()=>hu(()=>import("./chat-CEy4KFWr.js"),__vite__mapDeps([4,1,2]))),Uy=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},Ww=()=>{const n=zd(),{pathname:r}=ua(),[{clusterInfo:{status:l}}]=v1();return x.useEffect(()=>{const u=c=>{const d=setTimeout(()=>{Uy("navigate to",c),n(c)},300);return()=>clearTimeout(d)};if(r==="/"||(Uy("pathname",r,"cluster status",l),l==="idle"&&r.startsWith(ws)))return u(td);if(l==="available"&&!r.startsWith(ws))return u(ws)},[n,r,l]),Ky([{path:td,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Iw,{})})},{path:Zw,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Qw,{})})},{path:ws,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Kw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},nd="/chat",Fw=x.lazy(()=>hu(()=>import("./chat-CEy4KFWr.js"),__vite__mapDeps([4,1,2]))),Jw=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},eA=()=>{const n=zd(),{pathname:r}=ua();return x.useEffect(()=>{const o=u=>{const c=setTimeout(()=>{Jw("navigate to",u),n(u)},300);return()=>clearTimeout(c)};if(!r.startsWith(nd))return o(nd)},[n,r]),Ky([{path:nd,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Fw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},tA=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),S1=({children:n,hostProps:r})=>W.jsx(x.StrictMode,{children:W.jsx(ex,{children:W.jsxs(Ew,{children:[W.jsx(S3,{}),W.jsx(tA,{children:W.jsx(kw,{...r,children:W.jsx(qw,{children:W.jsx(Pw,{children:n})})})})]})})}),yA=()=>W.jsx(S1,{hostProps:{type:"cluster"},children:W.jsx(Ww,{})}),vA=()=>W.jsx(S1,{hostProps:{type:"node"},children:W.jsx(eA,{})});export{hr as $,ay as A,Wv as B,vA as C,pr as D,Qd as E,wv as F,Iv as G,Ae as H,Jv as I,Wg as J,cT as K,av as L,yA as M,dT as N,uT as O,Kd as P,iv as Q,aA as R,$3 as S,n3 as T,zE as U,zs as V,Zv as W,sT as X,iA as Y,l3 as Z,Q5 as _,rt as a,Xl as a0,j5 as a1,dE as a2,En as a3,ah as a4,fT as a5,Kv as a6,oA as a7,x3 as a8,sA as a9,uA as aa,jt as ab,rT as ac,cA as ad,rA as ae,z3 as af,Cd as ag,lA as ah,rr as ai,U5 as aj,Si as ak,ja as al,lh as am,ey as an,fA as ao,N3 as ap,dA as aq,sy as ar,pA as as,mA as at,j4 as au,vy as av,H4 as aw,q4 as ax,zw as ay,Ba as az,Ze as b,nA as c,ge as d,gn as e,Bl as f,it as g,hA as h,tn as i,W as j,Zl as k,pd as l,Pt as m,fr as n,v1 as o,zd as p,p3 as q,x as r,Me as s,L3 as t,nn as u,Xv as v,Jd as w,oi as x,gA as y,uC as z}; +`);M=_.pop()||"",D(_)}}).catch(O=>{if(O instanceof Error&&O.name==="AbortError"){l?.();return}o?.(O)})},disconnect:()=>{d?.cancel(),d=void 0,h?.abort("stop"),h=void 0,l?.()}}},td="/setup",Zw="/join",ws="/chat",Iw=x.lazy(()=>hu(()=>import("./setup-B7qhYC5e.js"),__vite__mapDeps([0,1,2]))),Qw=x.lazy(()=>hu(()=>import("./join-B2TOuiut.js"),__vite__mapDeps([3,1,2]))),Kw=x.lazy(()=>hu(()=>import("./chat-CHpu7til.js"),__vite__mapDeps([4,1,2]))),Uy=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},Ww=()=>{const n=zd(),{pathname:r}=ua(),[{clusterInfo:{status:l}}]=v1();return x.useEffect(()=>{const u=c=>{const d=setTimeout(()=>{Uy("navigate to",c),n(c)},300);return()=>clearTimeout(d)};if(r==="/"||(Uy("pathname",r,"cluster status",l),l==="idle"&&r.startsWith(ws)))return u(td);if(l==="available"&&!r.startsWith(ws))return u(ws)},[n,r,l]),Ky([{path:td,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Iw,{})})},{path:Zw,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Qw,{})})},{path:ws,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Kw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},nd="/chat",Fw=x.lazy(()=>hu(()=>import("./chat-CHpu7til.js"),__vite__mapDeps([4,1,2]))),Jw=(...n)=>{console.log("%c router.tsx ","color: white; background: purple;",...n)},eA=()=>{const n=zd(),{pathname:r}=ua();return x.useEffect(()=>{const o=u=>{const c=setTimeout(()=>{Jw("navigate to",u),n(u)},300);return()=>clearTimeout(c)};if(!r.startsWith(nd))return o(nd)},[n,r]),Ky([{path:nd,element:W.jsx(x.Suspense,{fallback:W.jsx("div",{children:"Loading..."}),children:W.jsx(Fw,{})})},{path:"*",element:W.jsx("div",{children:"404 - Page Not Found"})}])},tA=Me("div")(({theme:n})=>{const{palette:r,typography:l}=n;return{...l.body2,color:r.text.primary,backgroundColor:r.background.default,width:"100%",height:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center"}}),S1=({children:n,hostProps:r})=>W.jsx(x.StrictMode,{children:W.jsx(ex,{children:W.jsxs(Ew,{children:[W.jsx(S3,{}),W.jsx(tA,{children:W.jsx(kw,{...r,children:W.jsx(qw,{children:W.jsx(Pw,{children:n})})})})]})})}),yA=()=>W.jsx(S1,{hostProps:{type:"cluster"},children:W.jsx(Ww,{})}),vA=()=>W.jsx(S1,{hostProps:{type:"node"},children:W.jsx(eA,{})});export{hr as $,ay as A,Wv as B,vA as C,pr as D,Qd as E,wv as F,Iv as G,Ae as H,Jv as I,Wg as J,cT as K,av as L,yA as M,dT as N,uT as O,Kd as P,iv as Q,aA as R,$3 as S,n3 as T,zE as U,zs as V,Zv as W,sT as X,iA as Y,l3 as Z,Q5 as _,rt as a,Xl as a0,j5 as a1,dE as a2,En as a3,ah as a4,fT as a5,Kv as a6,oA as a7,x3 as a8,sA as a9,uA as aa,jt as ab,rT as ac,cA as ad,rA as ae,z3 as af,Cd as ag,lA as ah,rr as ai,U5 as aj,Si as ak,ja as al,lh as am,ey as an,fA as ao,N3 as ap,dA as aq,sy as ar,pA as as,mA as at,j4 as au,vy as av,H4 as aw,q4 as ax,zw as ay,Ba as az,Ze as b,nA as c,ge as d,gn as e,Bl as f,it as g,hA as h,tn as i,W as j,Zl as k,pd as l,Pt as m,fr as n,v1 as o,zd as p,p3 as q,x as r,Me as s,L3 as t,nn as u,Xv as v,Jd as w,oi as x,gA as y,uC as z}; diff --git a/src/frontend/dist/assets/chat-CEy4KFWr.js b/src/frontend/dist/assets/chat-CHpu7til.js similarity index 99% rename from src/frontend/dist/assets/chat-CEy4KFWr.js rename to src/frontend/dist/assets/chat-CHpu7til.js index e581cdba..294dd179 100644 --- a/src/frontend/dist/assets/chat-CEy4KFWr.js +++ b/src/frontend/dist/assets/chat-CHpu7til.js @@ -1,4 +1,4 @@ -import{a as A,g as N,r as x,u as H,j as a,s as T,b as W,d as z,e as U,m as V,i as Te,v as ze,w as Le,x as I,k as ee,o as Me,y as Re,n as je,S as ne,q as le}from"./App-DniR8u3r.js";import{i as Z,b as qe,c as ie,F as $e,u as re,f as te,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-CrccPG6x.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:r,margin:t,fullWidth:o}=e,s={root:["root",t!=="none"&&`margin${z(t)}`,o&&"fullWidth"]};return U(s,Oe,r)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`margin${z(t.margin)}`],t.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...y}=o,P={...o,color:i,component:p,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:u,variant:c},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=m!==void 0&&!n?m:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:c}),[F,i,n,d,E,O,b,h,B,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:P,className:W(G.root,l),ref:t,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:r,contained:t,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,t&&"contained",p&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,r)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size&&r[`size${z(t.size)}`],t.contained&&r.contained,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:b,required:h,variant:g,...f}=o,u=re(),c=te({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:t,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:r,color:t,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(t)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,r)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color==="secondary"&&r.colorSecondary,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([r])=>({props:{color:r},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),er=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:b,required:h,...g}=o,f=re(),u=te({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},y=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:W(y.root,l),ref:t,...g,children:[s,u.required&&a.jsxs(er,{ownerState:c,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function tr(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const or=e=>{const{classes:r,formControl:t,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",t&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=U(n,tr,r);return{...r,...d}},sr=T(rr,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[{[`& .${$.asterisk}`]:r.asterisk},r.root,t.formControl&&r.formControl,t.size==="small"&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,t.focused&&r.focused,r[t.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="filled"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:t,size:o})=>r==="filled"&&t.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="outlined"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ar=x.forwardRef(function(r,t){const o=H({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=re();let b=i;typeof b>"u"&&m&&(b=m.filled||m.focused||m.adornedStart);const h=te({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=or(g);return a.jsx(sr,{"data-shrink":b,ref:t,className:W(f.root,n),...d,ownerState:g,classes:f})});function nr(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lr={standard:He,filled:Ne,outlined:Ae},ir=e=>{const{classes:r}=e;return U({root:["root"]},nr,r)},dr=T(Ke,{name:"MuiTextField",slot:"Root"})({}),cr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=ir(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lr[K],w={slots:j,slotProps:{input:P,inputLabel:c,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dr,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,p),ref:t,additionalProps:{disabled:m,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:ar,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** +import{a as A,g as N,r as x,u as H,j as a,s as T,b as W,d as z,e as U,m as V,i as Te,v as ze,w as Le,x as I,k as ee,o as Me,y as Re,n as je,S as ne,q as le}from"./App-D1sLFjME.js";import{i as Z,b as qe,c as ie,F as $e,u as re,f as te,O as Ae,d as Ne,e as He,S as We,D as Ue,g as Ee,C as De}from"./main-layout-C6XVZnhy.js";function Oe(e){return A("MuiFormControl",e)}N("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Be=e=>{const{classes:r,margin:t,fullWidth:o}=e,s={root:["root",t!=="none"&&`margin${z(t)}`,o&&"fullWidth"]};return U(s,Oe,r)},_e=T("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,r[`margin${z(t.margin)}`],t.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),Ke=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormControl"}),{children:s,className:l,color:i="primary",component:p="div",disabled:n=!1,error:d=!1,focused:m,fullWidth:b=!1,hiddenLabel:h=!1,margin:g="none",required:f=!1,size:u="medium",variant:c="outlined",...y}=o,P={...o,color:i,component:p,disabled:n,error:d,fullWidth:b,hiddenLabel:h,margin:g,required:f,size:u,variant:c},G=Be(P),[F,J]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{if(!Z(v,["Input","Select"]))return;const j=Z(v,["Select"])?v.props.input:v;j&&qe(j.props)&&(C=!0)}),C}),[E,L]=x.useState(()=>{let C=!1;return s&&x.Children.forEach(s,v=>{Z(v,["Input","Select"])&&(ie(v.props,!0)||ie(v.props.inputProps,!0))&&(C=!0)}),C}),[D,M]=x.useState(!1);n&&D&&M(!1);const O=m!==void 0&&!n?m:D;let B;x.useRef(!1);const _=x.useCallback(()=>{L(!0)},[]),R=x.useCallback(()=>{L(!1)},[]),Q=x.useMemo(()=>({adornedStart:F,setAdornedStart:J,color:i,disabled:n,error:d,filled:E,focused:O,fullWidth:b,hiddenLabel:h,size:u,onBlur:()=>{M(!1)},onFocus:()=>{M(!0)},onEmpty:R,onFilled:_,registerEffect:B,required:f,variant:c}),[F,i,n,d,E,O,b,h,B,R,_,f,u,c]);return a.jsx($e.Provider,{value:Q,children:a.jsx(_e,{as:p,ownerState:P,className:W(G.root,l),ref:t,...y,children:s})})});function Ve(e){return A("MuiFormHelperText",e)}const de=N("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var ce;const Ge=e=>{const{classes:r,contained:t,size:o,disabled:s,error:l,filled:i,focused:p,required:n}=e,d={root:["root",s&&"disabled",l&&"error",o&&`size${z(o)}`,t&&"contained",p&&"focused",i&&"filled",n&&"required"]};return U(d,Ve,r)},Je=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.size&&r[`size${z(t.size)}`],t.contained&&r.contained,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${de.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${de.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),Qe=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormHelperText"}),{children:s,className:l,component:i="p",disabled:p,error:n,filled:d,focused:m,margin:b,required:h,variant:g,...f}=o,u=re(),c=te({props:o,muiFormControl:u,states:["variant","size","disabled","error","filled","focused","required"]}),y={...o,component:i,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required};delete y.ownerState;const P=Ge(y);return a.jsx(Je,{as:i,className:W(P.root,l),ref:t,...f,ownerState:y,children:s===" "?ce||(ce=a.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function Xe(e){return A("MuiFormLabel",e)}const $=N("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Ye=e=>{const{classes:r,color:t,focused:o,disabled:s,error:l,filled:i,required:p}=e,n={root:["root",`color${z(t)}`,s&&"disabled",l&&"error",i&&"filled",o&&"focused",p&&"required"],asterisk:["asterisk",l&&"error"]};return U(n,Xe,r)},Ze=T("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[r.root,t.color==="secondary"&&r.colorSecondary,t.filled&&r.filled]}})(V(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Te()).map(([r])=>({props:{color:r},style:{[`&.${$.focused}`]:{color:(e.vars||e).palette[r].main}}})),{props:{},style:{[`&.${$.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),er=T("span",{name:"MuiFormLabel",slot:"Asterisk"})(V(({theme:e})=>({[`&.${$.error}`]:{color:(e.vars||e).palette.error.main}}))),rr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiFormLabel"}),{children:s,className:l,color:i,component:p="label",disabled:n,error:d,filled:m,focused:b,required:h,...g}=o,f=re(),u=te({props:o,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),c={...o,color:u.color||"primary",component:p,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required},y=Ye(c);return a.jsxs(Ze,{as:p,ownerState:c,className:W(y.root,l),ref:t,...g,children:[s,u.required&&a.jsxs(er,{ownerState:c,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})});function tr(e){return A("MuiInputLabel",e)}N("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const or=e=>{const{classes:r,formControl:t,size:o,shrink:s,disableAnimation:l,variant:i,required:p}=e,n={root:["root",t&&"formControl",!l&&"animated",s&&"shrink",o&&o!=="medium"&&`size${z(o)}`,i],asterisk:[p&&"asterisk"]},d=U(n,tr,r);return{...r,...d}},sr=T(rr,{shouldForwardProp:e=>ze(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:t}=e;return[{[`& .${$.asterisk}`]:r.asterisk},r.root,t.formControl&&r.formControl,t.size==="small"&&r.sizeSmall,t.shrink&&r.shrink,!t.disableAnimation&&r.animated,t.focused&&r.focused,r[t.variant]]}})(V(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="filled"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:t,size:o})=>r==="filled"&&t.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:t})=>r==="outlined"&&t.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ar=x.forwardRef(function(r,t){const o=H({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,margin:l,shrink:i,variant:p,className:n,...d}=o,m=re();let b=i;typeof b>"u"&&m&&(b=m.filled||m.focused||m.adornedStart);const h=te({props:o,muiFormControl:m,states:["size","variant","required","focused"]}),g={...o,disableAnimation:s,formControl:m,shrink:b,size:h.size,variant:h.variant,required:h.required,focused:h.focused},f=or(g);return a.jsx(sr,{"data-shrink":b,ref:t,className:W(f.root,n),...d,ownerState:g,classes:f})});function nr(e){return A("MuiTextField",e)}N("MuiTextField",["root"]);const lr={standard:He,filled:Ne,outlined:Ae},ir=e=>{const{classes:r}=e;return U({root:["root"]},nr,r)},dr=T(Ke,{name:"MuiTextField",slot:"Root"})({}),cr=x.forwardRef(function(r,t){const o=H({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:l=!1,children:i,className:p,color:n="primary",defaultValue:d,disabled:m=!1,error:b=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:f,id:u,InputLabelProps:c,inputProps:y,InputProps:P,inputRef:G,label:F,maxRows:J,minRows:E,multiline:L=!1,name:D,onBlur:M,onChange:O,onFocus:B,placeholder:_,required:R=!1,rows:Q,select:C=!1,SelectProps:v,slots:j={},slotProps:pe={},type:ue,value:oe,variant:K="outlined",...me}=o,S={...o,autoFocus:l,color:n,disabled:m,error:b,fullWidth:g,multiline:L,required:R,select:C,variant:K},fe=ir(S),k=Le(u),X=f&&k?`${k}-helper-text`:void 0,se=F&&k?`${k}-label`:void 0,xe=lr[K],w={slots:j,slotProps:{input:P,inputLabel:c,htmlInput:y,formHelperText:h,select:v,...pe}},q={},Y=w.slotProps.inputLabel;K==="outlined"&&(Y&&typeof Y.shrink<"u"&&(q.notched=Y.shrink),q.label=F),C&&((!v||!v.native)&&(q.id=void 0),q["aria-describedby"]=void 0);const[be,he]=I("root",{elementType:dr,shouldForwardComponentProp:!0,externalForwardedProps:{...w,...me},ownerState:S,className:W(fe.root,p),ref:t,additionalProps:{disabled:m,error:b,fullWidth:g,required:R,color:n,variant:K}}),[ve,ge]=I("input",{elementType:xe,externalForwardedProps:w,additionalProps:q,ownerState:S}),[ye,Ce]=I("inputLabel",{elementType:ar,externalForwardedProps:w,ownerState:S}),[Fe,Se]=I("htmlInput",{elementType:"input",externalForwardedProps:w,ownerState:S}),[ke,we]=I("formHelperText",{elementType:Qe,externalForwardedProps:w,ownerState:S}),[Pe,Ie]=I("select",{elementType:We,externalForwardedProps:w,ownerState:S}),ae=a.jsx(ve,{"aria-describedby":X,autoComplete:s,autoFocus:l,defaultValue:d,fullWidth:g,multiline:L,name:D,rows:Q,maxRows:J,minRows:E,type:ue,value:oe,id:k,inputRef:G,onBlur:M,onChange:O,onFocus:B,placeholder:_,inputProps:Se,slots:{input:j.htmlInput?Fe:void 0},...ge});return a.jsxs(be,{...he,children:[F!=null&&F!==""&&a.jsx(ye,{htmlFor:k,id:se,...Ce,children:F}),C?a.jsx(Pe,{"aria-describedby":X,id:k,labelId:se,value:oe,input:ae,...Ie,children:i}):ae,f&&a.jsx(ke,{id:X,...we,children:f})]})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/chat-DeAtmKbt.js b/src/frontend/dist/assets/chat-DeAtmKbt.js new file mode 100644 index 00000000..d8100945 --- /dev/null +++ b/src/frontend/dist/assets/chat-DeAtmKbt.js @@ -0,0 +1 @@ +import{c as t,j as e,C as o}from"./App-D1sLFjME.js";t.createRoot(document.getElementById("root")).render(e.jsx(o,{})); diff --git a/src/frontend/dist/assets/chat-DyvDlm1Y.js b/src/frontend/dist/assets/chat-DyvDlm1Y.js deleted file mode 100644 index 6f6fa06a..00000000 --- a/src/frontend/dist/assets/chat-DyvDlm1Y.js +++ /dev/null @@ -1 +0,0 @@ -import{c as t,j as e,C as o}from"./App-DniR8u3r.js";t.createRoot(document.getElementById("root")).render(e.jsx(o,{})); diff --git a/src/frontend/dist/assets/join-CEv_A3ai.js b/src/frontend/dist/assets/join-B2TOuiut.js similarity index 94% rename from src/frontend/dist/assets/join-CEv_A3ai.js rename to src/frontend/dist/assets/join-B2TOuiut.js index ef981702..3d0e3abd 100644 --- a/src/frontend/dist/assets/join-CEv_A3ai.js +++ b/src/frontend/dist/assets/join-B2TOuiut.js @@ -1,4 +1,4 @@ -import{k as c,o as l,r as u,j as e,T as r,s as h,A as n,q as p,L as m,S as y}from"./App-DniR8u3r.js";import{M as x,J as f,N as j}from"./main-layout-CrccPG6x.js";/** +import{k as c,o as l,r as u,j as e,T as r,s as h,A as n,q as p,L as m,S as y}from"./App-D1sLFjME.js";import{M as x,J as f,N as j}from"./main-layout-C6XVZnhy.js";/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/assets/main-BvbEw6kA.js b/src/frontend/dist/assets/main-BvbEw6kA.js deleted file mode 100644 index 16bca5a5..00000000 --- a/src/frontend/dist/assets/main-BvbEw6kA.js +++ /dev/null @@ -1 +0,0 @@ -import{c as t,j as e,M as o}from"./App-DniR8u3r.js";t.createRoot(document.getElementById("root")).render(e.jsx(o,{})); diff --git a/src/frontend/dist/assets/main-DwL8292m.js b/src/frontend/dist/assets/main-DwL8292m.js new file mode 100644 index 00000000..368fe086 --- /dev/null +++ b/src/frontend/dist/assets/main-DwL8292m.js @@ -0,0 +1 @@ +import{c as t,j as e,M as o}from"./App-D1sLFjME.js";t.createRoot(document.getElementById("root")).render(e.jsx(o,{})); diff --git a/src/frontend/dist/assets/main-layout-CrccPG6x.js b/src/frontend/dist/assets/main-layout-C6XVZnhy.js similarity index 94% rename from src/frontend/dist/assets/main-layout-CrccPG6x.js rename to src/frontend/dist/assets/main-layout-C6XVZnhy.js index 07b17f04..6058d172 100644 --- a/src/frontend/dist/assets/main-layout-CrccPG6x.js +++ b/src/frontend/dist/assets/main-layout-C6XVZnhy.js @@ -1,6 +1,6 @@ -import{z as vg,D as Tg,r as P,E as xg,F as Eg,j as k,b as Ve,_ as Sg,R as cs,G as wg,H as ds,J as H1,K as Ag,N as Cg,l as Vt,O as kg,P as ar,Q as Ig,a as gt,g as at,e as Ye,U as Gl,u as Ke,s as ue,V as Ca,W as Ng,X as ka,d as St,Y as Rg,m as ct,Z as Ia,$ as z1,a0 as Mg,a1 as qa,x as Et,a2 as Dg,a3 as Pg,a4 as Lg,a5 as Og,a6 as mo,w as Xl,a7 as _g,a8 as Bg,T as Ge,v as Wn,a9 as Fg,aa as Hg,ab as Kl,i as Ql,ac as ra,ad as zg,ae as Oc,B as Ug,af as _c,ag as Bc,ah as Vg,ai as Ln,aj as jg,ak as U1,al as V1,am as qg,an as Fc,ao as $g,ap as Wg,aq as Yg,ar as Hc,k as mn,as as Gg,at as zc,au as Xg,av as Uc,aw as _s,I as Qr,ax as j1,q as q1,ay as $1,o as $a,n as Na,S as Xe,y as Zl,az as W1}from"./App-DniR8u3r.js";function Kg(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=vg("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Tg);return P.forwardRef(function(u,l){const c=xg(n),{className:d,component:p="div",...f}=Eg(u);return k.jsx(a,{as:p,ref:l,className:Ve(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function Qg(e,t){return P.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Zg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Jg(e){return parseFloat(e)}function Vc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Y1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function jc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function qu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=P.useRef(t!==void 0),[s,o]=P.useState(n),u=a?t:s,l=P.useCallback(c=>{a||o(c)},[]);return[u,l]}function e6(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function t6(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{e6(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Ve(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Ve(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const qc={disabled:!1};var n6=function(t){return t.scrollTop},ia="unmounted",Ur="exited",Vr="entering",ci="entered",$u="exiting",Yn=(function(e){Sg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=Ur,a.appearStatus=Vr):u=ci:r.unmountOnExit||r.mountOnEnter?u=ia:u=Ur,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ia?{status:Ur}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==ci&&(a=Vr):(s===Vr||s===ci)&&(a=$u)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:cs.findDOMNode(this);s&&n6(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ur&&this.setState({status:ia})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[cs.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||qc.disabled){this.safeSetState({status:ci},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Vr},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:ci},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:cs.findDOMNode(this);if(!a||qc.disabled){this.safeSetState({status:Ur},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:$u},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ur},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:cs.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ia)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=wg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ds.createElement(H1.Provider,{value:null},typeof s=="function"?s(i,o):ds.cloneElement(ds.Children.only(s),o))},t})(ds.Component);Yn.contextType=H1;Yn.propTypes={};function si(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:si,onEntering:si,onEntered:si,onExit:si,onExiting:si,onExited:si};Yn.UNMOUNTED=ia;Yn.EXITED=Ur;Yn.ENTERING=Vr;Yn.ENTERED=ci;Yn.EXITING=$u;const G1=e=>e.scrollTop;function Ys(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",An="bottom",Cn="right",rn="left",Jl="auto",Wa=[nn,An,Cn,rn],Si="start",Ra="end",r6="clippingParents",X1="viewport",$i="popper",i6="reference",$c=Wa.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Ra])},[]),K1=[].concat(Wa,[Jl]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Ra])},[]),a6="beforeRead",s6="read",o6="afterRead",u6="beforeMain",l6="main",c6="afterMain",d6="beforeWrite",h6="write",f6="afterWrite",p6=[a6,s6,o6,u6,l6,c6,d6,h6,f6];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function e0(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function m6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!En(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function g6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!En(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const b6={name:"applyStyles",enabled:!0,phase:"write",fn:m6,effect:g6,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Yr=Math.max,Gs=Math.min,wi=Math.round;function Wu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Q1(){return!/^((?!chrome|android).)*safari/i.test(Wu())}function Ai(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&En(e)&&(i=e.offsetWidth>0&&wi(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&wi(r.height)/e.offsetHeight||1);var s=Zr(e)?pn(e):window,o=s.visualViewport,u=!Q1()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function t0(e){var t=Ai(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&e0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function y6(e){return["table","td","th"].indexOf($n(e))>=0}function Mr(e){return((Zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function go(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(e0(e)?e.host:null)||Mr(e)}function Wc(e){return!En(e)||or(e).position==="fixed"?null:e.offsetParent}function v6(e){var t=/firefox/i.test(Wu()),n=/Trident/i.test(Wu());if(n&&En(e)){var r=or(e);if(r.position==="fixed")return null}var i=go(e);for(e0(i)&&(i=i.host);En(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ya(e){for(var t=pn(e),n=Wc(e);n&&y6(n)&&or(n).position==="static";)n=Wc(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||v6(e)||t}function n0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function la(e,t,n){return Yr(e,Gs(t,n))}function T6(e,t,n){var r=la(e,t,n);return r>n?n:r}function J1(){return{top:0,right:0,bottom:0,left:0}}function ep(e){return Object.assign({},J1(),e)}function tp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ep(typeof t!="number"?t:tp(t,Wa))};function E6(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=n0(o),l=[rn,Cn].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=x6(i.padding,n),p=t0(a),f=u==="y"?nn:rn,b=u==="y"?An:Cn,v=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],E=s[u]-n.rects.reference[u],y=Ya(a),w=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,x=v/2-E/2,I=d[f],M=w-p[c]-d[b],C=w/2-p[c]/2+x,H=la(I,C,M),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function S6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Z1(t.elements.popper,i)&&(t.elements.arrow=i))}const w6={name:"arrow",enabled:!0,phase:"main",fn:E6,effect:S6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ci(e){return e.split("-")[1]}var A6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C6(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:wi(n*i)/i||0,y:wi(r*i)/i||0}}function Yc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,v=b===void 0?0:b,E=typeof c=="function"?c({x:f,y:v}):{x:f,y:v};f=E.x,v=E.y;var y=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,I=nn,M=window;if(l){var C=Ya(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Mr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===Cn)&&a===Ra){I=An;var V=d&&C===M&&M.visualViewport?M.visualViewport.height:C[H];v-=V-r.height,v*=u?1:-1}if(i===rn||(i===nn||i===An)&&a===Ra){x=Cn;var L=d&&C===M&&M.visualViewport?M.visualViewport.width:C[z];f-=L-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&A6),W=c===!0?C6({x:f,y:v},pn(n)):{x:f,y:v};if(f=W.x,v=W.y,u){var G;return Object.assign({},$,(G={},G[I]=w?"0":"",G[x]=y?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",G))}return Object.assign({},$,(t={},t[I]=w?v+"px":"",t[x]=y?f+"px":"",t.transform="",t))}function k6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:Ci(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const I6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k6,data:{}};var hs={passive:!0};function N6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,hs)}),o&&u.addEventListener("resize",n.update,hs),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,hs)}),o&&u.removeEventListener("resize",n.update,hs)}}const R6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N6,data:{}};var M6={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(e){return e.replace(/left|right|bottom|top/g,function(t){return M6[t]})}var D6={start:"end",end:"start"};function Gc(e){return e.replace(/start|end/g,function(t){return D6[t]})}function r0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function i0(e){return Ai(Mr(e)).left+r0(e).scrollLeft}function P6(e,t){var n=pn(e),r=Mr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=Q1();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+i0(e),y:u}}function L6(e){var t,n=Mr(e),r=r0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Yr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Yr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+i0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Yr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function a0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function np(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:En(e)&&a0(e)?e:np(go(e))}function ca(e,t){var n;t===void 0&&(t=[]);var r=np(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],a0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(ca(go(s)))}function Yu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O6(e,t){var n=Ai(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Xc(e,t,n){return t===X1?Yu(P6(e,n)):Zr(t)?O6(t,n):Yu(L6(Mr(e)))}function _6(e){var t=ca(go(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&En(e)?Ya(e):e;return Zr(r)?t.filter(function(i){return Zr(i)&&Z1(i,r)&&$n(i)!=="body"}):[]}function B6(e,t,n,r){var i=t==="clippingParents"?_6(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Xc(e,l,r);return u.top=Yr(c.top,u.top),u.right=Gs(c.right,u.right),u.bottom=Gs(c.bottom,u.bottom),u.left=Yr(c.left,u.left),u},Xc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function rp(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?Ci(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case An:u={x:s,y:t.y+t.height};break;case Cn:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?n0(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case Si:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Ra:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Ma(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?r6:o,l=n.rootBoundary,c=l===void 0?X1:l,d=n.elementContext,p=d===void 0?$i:d,f=n.altBoundary,b=f===void 0?!1:f,v=n.padding,E=v===void 0?0:v,y=ep(typeof E!="number"?E:tp(E,Wa)),w=p===$i?i6:$i,x=e.rects.popper,I=e.elements[b?w:p],M=B6(Zr(I)?I:I.contextElement||Mr(e.elements.popper),u,c,s),C=Ai(e.elements.reference),H=rp({reference:C,element:x,placement:i}),z=Yu(Object.assign({},x,H)),V=p===$i?z:C,L={top:M.top-V.top+y.top,bottom:V.bottom-M.bottom+y.bottom,left:M.left-V.left+y.left,right:V.right-M.right+y.right},$=e.modifiersData.offset;if(p===$i&&$){var W=$[i];Object.keys(L).forEach(function(G){var q=[Cn,An].indexOf(G)>=0?1:-1,Y=[nn,An].indexOf(G)>=0?"y":"x";L[G]+=W[Y]*q})}return L}function F6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?K1:u,c=Ci(r),d=c?o?$c:$c.filter(function(b){return Ci(b)===c}):Wa,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,v){return b[v]=Ma(e,{placement:v,boundary:i,rootBoundary:a,padding:s})[Un(v)],b},{});return Object.keys(f).sort(function(b,v){return f[b]-f[v]})}function H6(e){if(Un(e)===Jl)return[];var t=Bs(e);return[Gc(e),t,Gc(t)]}function z6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,v=n.allowedAutoPlacements,E=t.options.placement,y=Un(E),w=y===E,x=u||(w||!b?[Bs(E)]:H6(E)),I=[E].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Jl?F6(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:v}):Ie)},[]),M=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=I[0],L=0;L=0,Y=q?"width":"height",Q=Ma(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?Cn:rn:G?An:nn;M[Y]>C[Y]&&(ee=Bs(ee));var de=Bs(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var R=b?3:1,Ce=function(Ie){var Be=I.find(function(je){var _e=H.get(je);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=R;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const U6={name:"flip",enabled:!0,phase:"main",fn:z6,requiresIfExists:["offset"],data:{_skip:!1}};function Kc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qc(e){return[nn,Cn,An,rn].some(function(t){return e[t]>=0})}function V6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ma(t,{elementContext:"reference"}),o=Ma(t,{altBoundary:!0}),u=Kc(s,r),l=Kc(o,i,a),c=Qc(u),d=Qc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const j6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V6};function q6(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,Cn].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function $6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=K1.reduce(function(c,d){return c[d]=q6(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const W6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$6};function Y6(e){var t=e.state,n=e.name;t.modifiersData[n]=rp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const G6={name:"popperOffsets",enabled:!0,phase:"read",fn:Y6,data:{}};function X6(e){return e==="x"?"y":"x"}function K6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,E=Ma(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),y=Un(t.placement),w=Ci(t.placement),x=!w,I=n0(y),M=X6(I),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=I==="y"?nn:rn,Y=I==="y"?An:Cn,Q=I==="y"?"height":"width",ee=C[I],de=ee+E[q],oe=ee-E[Y],R=f?-z[Q]/2:0,Ce=w===Si?H[Q]:z[Q],ve=w===Si?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?t0(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J1(),Be=Ie[q],je=Ie[Y],_e=la(0,H[Q],xe[Q]),qe=x?H[Q]/2-R-_e-Be-L.mainAxis:Ce-_e-Be-L.mainAxis,Te=x?-H[Q]/2+R+_e+je+L.mainAxis:ve+_e+je+L.mainAxis,De=t.elements.arrow&&Ya(t.elements.arrow),Ne=De?I==="y"?De.clientTop||0:De.clientLeft||0:0,Qe=(G=$?.[I])!=null?G:0,Re=ee+qe-Qe-Ne,$e=ee+Te-Qe,wt=la(f?Gs(de,Re):de,ee,f?Yr(oe,$e):oe);C[I]=wt,W[I]=wt-ee}if(o){var ht,st=I==="x"?nn:rn,Nt=I==="x"?An:Cn,ot=C[M],it=M==="y"?"height":"width",Ht=ot+E[st],Kt=ot-E[Nt],bt=[nn,rn].indexOf(y)!==-1,on=(ht=$?.[M])!=null?ht:0,K=bt?Ht:ot-H[it]-z[it]-on+L.altAxis,ie=bt?ot+H[it]+z[it]-on-L.altAxis:Kt,me=f&&bt?T6(K,ot,ie):la(f?K:Ht,ot,f?ie:Kt);C[M]=me,W[M]=me-ot}t.modifiersData[r]=W}}const Q6={name:"preventOverflow",enabled:!0,phase:"main",fn:K6,requiresIfExists:["offset"]};function Z6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function J6(e){return e===pn(e)||!En(e)?r0(e):Z6(e)}function e5(e){var t=e.getBoundingClientRect(),n=wi(t.width)/e.offsetWidth||1,r=wi(t.height)/e.offsetHeight||1;return n!==1||r!==1}function t5(e,t,n){n===void 0&&(n=!1);var r=En(t),i=En(t)&&e5(t),a=Mr(t),s=Ai(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||a0(a))&&(o=J6(t)),En(t)?(u=Ai(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=i0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function n5(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function r5(e){var t=n5(e);return p6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function i5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function a5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zc={placement:"bottom",modifiers:[],strategy:"absolute"};function Jc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function l5(e){return typeof e=="function"?e():e}const ap=P.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=P.useState(null),u=Vt(P.isValidElement(r)?Di(r):null,n);if(ar(()=>{a||o(l5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return jc(n,s),()=>{jc(n,null)}},[n,s,a]),a){if(P.isValidElement(r)){const l={ref:u};return P.cloneElement(r,l)}return r}return s&&Ig.createPortal(r,s)});function c5(e){return gt("MuiPopper",e)}at("MuiPopper",["root"]);function d5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Gu(e){return typeof e=="function"?e():e}function h5(e){return e.nodeType!==void 0}const f5=e=>{const{classes:t}=e;return Ye({root:["root"]},c5,t)},p5={},m5=P.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:v,...E}=t,y=P.useRef(null),w=Vt(y,n),x=P.useRef(null),I=Vt(x,d),M=P.useRef(I);ar(()=>{M.current=I},[I]),P.useImperativeHandle(d,()=>x.current,[]);const C=d5(l,a),[H,z]=P.useState(C),[V,L]=P.useState(Gu(r));P.useEffect(()=>{x.current&&x.current.forceUpdate()}),P.useEffect(()=>{r&&L(Gu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=u5(V,y.current,{placement:C,...c,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=f5(t),G=f.root??"div",q=ip({elementType:G,externalSlotProps:p.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return k.jsx(G,{...q,children:typeof i=="function"?i($):i})}),g5=P.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=p5,popperRef:f,style:b,transition:v=!1,slotProps:E={},slots:y={},...w}=t,[x,I]=P.useState(!0),M=()=>{I(!1)},C=()=>{I(!0)};if(!u&&!c&&(!v||x))return null;let H;if(a)H=a;else if(r){const L=Gu(r);H=L&&h5(L)?fn(L).body:fn(null).body}const z=!c&&u&&(!v||x)?"none":void 0,V=v?{in:c,onEnter:M,onExited:C}:void 0;return k.jsx(ap,{disablePortal:o,container:H,children:k.jsx(m5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:v?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:E,slots:y,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),b5=ue(g5,{name:"MuiPopper",slot:"Root"})({}),sp=P.forwardRef(function(t,n){const r=Gl(),i=Ke({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:v,popperRef:E,transition:y,slots:w,slotProps:x,...I}=i,M=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:v,popperRef:E,transition:y,...I};return k.jsx(b5,{as:s,direction:r?"rtl":"ltr",slots:{root:M},slotProps:x??u,...C,ref:n})});function fs(e){return parseInt(e,10)||0}const y5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v5(e){for(const t in e)return!1;return!0}function ed(e){return v5(e)||e.outerHeightStyle===0&&!e.overflowing}const T5=P.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=P.useRef(o!=null),c=P.useRef(null),d=Vt(n,c),p=P.useRef(null),f=P.useRef(null),b=P.useCallback(()=>{const x=c.current,I=f.current;if(!x||!I)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};I.style.width=C.width,I.value=x.value||t.placeholder||"x",I.value.slice(-1)===` -`&&(I.value+=" ");const H=C.boxSizing,z=fs(C.paddingBottom)+fs(C.paddingTop),V=fs(C.borderBottomWidth)+fs(C.borderTopWidth),L=I.scrollHeight;I.value="x";const $=I.scrollHeight;let W=L;a&&(W=Math.max(Number(a)*$,W)),i&&(W=Math.min(Number(i)*$,W)),W=Math.max(W,$);const G=W+(H==="border-box"?z+V:0),q=Math.abs(W-L)<=1;return{outerHeightStyle:G,overflowing:q}},[i,a,t.placeholder]),v=Ca(()=>{const x=c.current,I=b();if(!x||!I||ed(I))return!1;const M=I.outerHeightStyle;return p.current!=null&&p.current!==M}),E=P.useCallback(()=>{const x=c.current,I=b();if(!x||!I||ed(I))return;const M=I.outerHeightStyle;p.current!==M&&(p.current=M,x.style.height=`${M}px`),x.style.overflow=I.overflowing?"hidden":""},[b]),y=P.useRef(-1);ar(()=>{const x=Y1(E),I=c?.current;if(!I)return;const M=sr(I);M.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{v()&&(C.unobserve(I),cancelAnimationFrame(y.current),E(),y.current=requestAnimationFrame(()=>{C.observe(I)}))}),C.observe(I)),()=>{x.clear(),cancelAnimationFrame(y.current),M.removeEventListener("resize",x),C&&C.disconnect()}},[b,E,v]),ar(()=>{E()});const w=x=>{l||E();const I=x.target,M=I.value.length,C=I.value.endsWith(` -`),H=I.selectionStart===M;C&&H&&I.setSelectionRange(M,M),r&&r(x)};return k.jsxs(P.Fragment,{children:[k.jsx("textarea",{value:o,onChange:w,ref:d,rows:a,style:s,...u}),k.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...y5.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function s0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const op=P.createContext(void 0);function o0(){return P.useContext(op)}function td(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function up(e,t=!1){return e&&(td(e.value)&&e.value!==""||t&&td(e.defaultValue)&&e.defaultValue!=="")}function PL(e){return e.startAdornment}var nd;const bo=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yo=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},x5=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:f,type:b}=e,v={root:["root",`color${St(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${St(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ye(v,Rg,t)},vo=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bo})(ct(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ia.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),To=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ia.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ia.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),rd=Ng({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xo=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:b,error:v,fullWidth:E=!1,id:y,inputComponent:w="input",inputProps:x={},inputRef:I,margin:M,maxRows:C,minRows:H,multiline:z=!1,name:V,onBlur:L,onChange:$,onClick:W,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:Q,readOnly:ee,renderSuffix:de,rows:oe,size:R,slotProps:Ce={},slots:ve={},startAdornment:B,type:xe="text",value:Ie,...Be}=r,je=x.value!=null?x.value:Ie,{current:_e}=P.useRef(je!=null),qe=P.useRef(),Te=P.useCallback(Se=>{},[]),De=Vt(qe,I,x.ref,Te),[Ne,Qe]=P.useState(!1),Re=o0(),$e=s0({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Re?Re.focused:Ne,P.useEffect(()=>{!Re&&p&&Ne&&(Qe(!1),L&&L())},[Re,p,Ne,L]);const wt=Re&&Re.onFilled,ht=Re&&Re.onEmpty,st=P.useCallback(Se=>{up(Se)?wt&&wt():ht&&ht()},[wt,ht]);ar(()=>{_e&&st({value:je})},[je,st,_e]);const Nt=Se=>{G&&G(Se),x.onFocus&&x.onFocus(Se),Re&&Re.onFocus?Re.onFocus(Se):Qe(!0)},ot=Se=>{L&&L(Se),x.onBlur&&x.onBlur(Se),Re&&Re.onBlur?Re.onBlur(Se):Qe(!1)},it=(Se,...Rt)=>{if(!_e){const yt=Se.target||qe.current;if(yt==null)throw new Error(z1(1));st({value:yt.value})}x.onChange&&x.onChange(Se,...Rt),$&&$(Se,...Rt)};P.useEffect(()=>{st(qe.current)},[]);const Ht=Se=>{qe.current&&Se.currentTarget===Se.target&&qe.current.focus(),W&&W(Se)};let Kt=w,bt=x;z&&Kt==="input"&&(oe?bt={type:void 0,minRows:oe,maxRows:oe,...bt}:bt={type:void 0,maxRows:C,minRows:H,...bt},Kt=T5);const on=Se=>{st(Se.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};P.useEffect(()=>{Re&&Re.setAdornedStart(!!B)},[Re,B]);const K={...r,color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:Re,fullWidth:E,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:B,type:xe},ie=x5(K),me=ve.root||l.Root||vo,Ee=Ce.root||c.root||{},Pe=ve.input||l.Input||To;return bt={...bt,...Ce.input??c.input},k.jsxs(P.Fragment,{children:[!f&&typeof rd=="function"&&(nd||(nd=k.jsx(rd,{}))),k.jsxs(me,{...Ee,ref:n,onClick:Ht,...Be,...!ka(me)&&{ownerState:{...K,...Ee.ownerState}},className:Ve(ie.root,Ee.className,o,ee&&"MuiInputBase-readOnly"),children:[B,k.jsx(op.Provider,{value:null,children:k.jsx(Pe,{"aria-invalid":$e.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:$e.disabled,id:y,onAnimationStart:on,name:V,placeholder:Q,readOnly:ee,required:$e.required,rows:oe,value:je,onKeyDown:q,onKeyUp:Y,type:xe,...bt,...!ka(Pe)&&{as:Kt,ownerState:{...K,...bt.ownerState}},ref:De,className:Ve(ie.input,bt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:it,onFocus:Nt})}),b,de?de({...$e,startAdornment:B}):null]})]})});function E5(e){return gt("MuiInput",e)}const Wi={...Ia,...at("MuiInput",["root","underline","input"])};function S5(e){return gt("MuiFilledInput",e)}const Or={...Ia,...at("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},w5=Mg(k.jsx("path",{d:"M7 10l5 5 5-5z"})),A5={entering:{opacity:1},entered:{opacity:1}},Xu=P.forwardRef(function(t,n){const r=qa(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:b,onExiting:v,style:E,timeout:y=i,TransitionComponent:w=Yn,...x}=t,I=P.useRef(null),M=Vt(I,Di(o),n),C=q=>Y=>{if(q){const Q=I.current;Y===void 0?q(Q):q(Q,Y)}},H=C(p),z=C((q,Y)=>{G1(q);const Q=Ys({style:E,timeout:y,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",Q),q.style.transition=r.transitions.create("opacity",Q),c&&c(q,Y)}),V=C(d),L=C(v),$=C(q=>{const Y=Ys({style:E,timeout:y,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),f&&f(q)}),W=C(b),G=q=>{a&&a(I.current,q)};return k.jsx(w,{appear:s,in:l,nodeRef:I,onEnter:z,onEntered:V,onEntering:H,onExit:$,onExited:W,onExiting:L,addEndListener:G,timeout:y,...x,children:(q,{ownerState:Y,...Q})=>P.cloneElement(o,{style:{opacity:0,visibility:q==="exited"&&!l?"hidden":void 0,...A5[q],...E,...o.props.style},ref:M,...Q})})});function C5(e){return gt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const k5=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},C5,t)},I5=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),lp=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:b,...v}=r,E={...r,component:s,invisible:o},y=k5(E),w={transition:f,root:l.Root,...p},x={...c,...d},I={component:s,slots:w,slotProps:x},[M,C]=Et("root",{elementType:I5,externalForwardedProps:I,className:Ve(y.root,a),ownerState:E}),[H,z]=Et("transition",{elementType:Xu,externalForwardedProps:I,ownerState:E});return k.jsx(H,{in:u,timeout:b,...v,...z,children:k.jsx(M,{"aria-hidden":!0,...C,classes:y,ref:n,children:i})})}),N5=at("MuiBox",["root"]),R5=Lg(),Ar=Kg({themeId:Pg,defaultTheme:R5,defaultClassName:N5.root,generateClassName:Dg.generate});function cp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function M5(e){const t=fn(e);return t.body===e?sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function da(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function id(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function D5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ad(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!D5(s);o&&u&&da(s,i)})}function jo(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function P5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(M5(r)){const s=cp(sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${id(r)+s}px`;const o=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${id(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=fn(r).body;else{const s=r.parentElement,o=sr(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function L5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O5{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&da(t.modalRef,!1);const i=L5(n);ad(n,t.mount,t.modalRef,i,!0);const a=jo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=jo(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=P5(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=jo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&da(t.modalRef,n),ad(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&da(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const _5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function F5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function H5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||F5(e))}function z5(e){const t=[],n=[];return Array.from(e.querySelectorAll(_5)).forEach((r,i)=>{const a=B5(r);a===-1||!H5(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function U5(){return!0}function V5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=z5,isEnabled:s=U5,open:o}=e,u=P.useRef(!1),l=P.useRef(null),c=P.useRef(null),d=P.useRef(null),p=P.useRef(null),f=P.useRef(!1),b=P.useRef(null),v=Vt(Di(t),b),E=P.useRef(null);P.useEffect(()=>{!o||!b.current||(f.current=!n)},[n,o]),P.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),f.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),P.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current),I=H=>{E.current=H,!(r||!s()||H.key!=="Tab")&&x.activeElement===b.current&&H.shiftKey&&(u.current=!0,c.current&&c.current.focus())},M=()=>{const H=b.current;if(H===null)return;if(!x.hasFocus()||!s()||u.current){u.current=!1;return}if(H.contains(x.activeElement)||r&&x.activeElement!==l.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let z=[];if((x.activeElement===l.current||x.activeElement===c.current)&&(z=a(b.current)),z.length>0){const V=!!(E.current?.shiftKey&&E.current?.key==="Tab"),L=z[0],$=z[z.length-1];typeof L!="string"&&typeof $!="string"&&(V?$.focus():L.focus())}else H.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",I,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",M),x.removeEventListener("keydown",I,!0)}},[n,r,i,s,o,a]);const y=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0,p.current=x.target;const I=t.props.onFocus;I&&I(x)},w=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0};return k.jsxs(P.Fragment,{children:[k.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:v,onFocus:y}),k.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function j5(e){return typeof e=="function"?e():e}function q5(e){return e?e.props.hasOwnProperty("in"):!1}const sd=()=>{},ps=new O5;function $5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=P.useRef({}),p=P.useRef(null),f=P.useRef(null),b=Vt(f,c),[v,E]=P.useState(!l),y=q5(o);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>fn(p.current),I=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),M=()=>{ps.mount(I(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=Ca(()=>{const Y=j5(t)||x().body;ps.add(I(),Y),f.current&&M()}),H=()=>ps.isTopModal(I()),z=Ca(Y=>{p.current=Y,Y&&(l&&H()?M():f.current&&da(f.current,w))}),V=P.useCallback(()=>{ps.remove(I(),w)},[w]);P.useEffect(()=>()=>{V()},[V]),P.useEffect(()=>{l?C():(!y||!i)&&V()},[l,V,y,i,C]);const L=Y=>Q=>{Y.onKeyDown?.(Q),!(Q.key!=="Escape"||Q.which===229||!H())&&(n||(Q.stopPropagation(),u&&u(Q,"escapeKeyDown")))},$=Y=>Q=>{Y.onClick?.(Q),Q.target===Q.currentTarget&&u&&u(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Og(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...Y};return{role:"presentation",...ee,onKeyDown:L(ee),ref:b}},getBackdropProps:(Y={})=>{const Q=Y;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const Y=()=>{E(!1),a&&a()},Q=()=>{E(!0),s&&s(),i&&V()};return{onEnter:Vc(Y,o?.props.onEnter??sd),onExited:Vc(Q,o?.props.onExited??sd)}},rootRef:b,portalRef:z,isTopModal:H,exited:v,hasTransition:y}}function W5(e){return gt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const Y5=e=>{const{open:t,exited:n,classes:r}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},W5,r)},G5=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),X5=ue(lp,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),dp=P.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=X5,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:E=!1,disablePortal:y=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:I=!1,keepMounted:M=!1,onClose:C,onTransitionEnter:H,onTransitionExited:z,open:V,slotProps:L={},slots:$={},theme:W,...G}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:E,disablePortal:y,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:I,keepMounted:M},{getRootProps:Y,getBackdropProps:Q,getTransitionProps:ee,portalRef:de,isTopModal:oe,exited:R,hasTransition:Ce}=$5({...q,rootRef:n}),ve={...q,exited:R},B=Y5(ve),xe={};if(l.props.tabIndex===void 0&&(xe.tabIndex="-1"),Ce){const{onEnter:Te,onExited:De}=ee();xe.onEnter=Te,xe.onExited=De}const Ie={slots:{root:p.Root,backdrop:p.Backdrop,...$},slotProps:{...f,...L}},[Be,je]=Et("root",{ref:n,elementType:G5,externalForwardedProps:{...Ie,...G,component:d},getSlotProps:Y,ownerState:ve,className:Ve(o,B?.root,!ve.open&&ve.exited&&B?.hidden)}),[_e,qe]=Et("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>Q({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:Ve(a?.className,B?.backdrop),ownerState:ve});return!M&&!V&&(!Ce||R)?null:k.jsx(ap,{ref:de,container:c,disablePortal:y,children:k.jsxs(Be,{...je,children:[!I&&i?k.jsx(_e,{...qe}):null,k.jsx(V5,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:oe,open:V,children:P.cloneElement(l,xe)})]})})});function K5(e){return gt("MuiDialog",e)}const qo=at("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hp=P.createContext({}),Q5=ue(lp,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Z5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ye(s,K5,t)},J5=ue(dp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),eb=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),tb=ue(mo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ct(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${qo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${qo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),nb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=qa(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:E="sm",onClick:y,onClose:w,open:x,PaperComponent:I=mo,PaperProps:M={},scroll:C="paper",slots:H={},slotProps:z={},TransitionComponent:V=Xu,transitionDuration:L=a,TransitionProps:$,...W}=r,G={...r,disableEscapeKeyDown:f,fullScreen:b,fullWidth:v,maxWidth:E,scroll:C},q=Z5(G),Y=P.useRef(),Q=Qe=>{Y.current=Qe.target===Qe.currentTarget},ee=Qe=>{y&&y(Qe),Y.current&&(Y.current=null,w&&w(Qe,"backdropClick"))},de=Xl(o),oe=P.useMemo(()=>({titleId:de}),[de]),R={transition:V,...H},Ce={transition:$,paper:M,backdrop:c,...z},ve={slots:R,slotProps:Ce},[B,xe]=Et("root",{elementType:J5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.root,p),ref:n}),[Ie,Be]=Et("backdrop",{elementType:Q5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G}),[je,_e]=Et("paper",{elementType:tb,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.paper,M.className)}),[qe,Te]=Et("container",{elementType:eb,externalForwardedProps:ve,ownerState:G,className:q.container}),[De,Ne]=Et("transition",{elementType:Xu,externalForwardedProps:ve,ownerState:G,additionalProps:{appear:!0,in:x,timeout:L,role:"presentation"}});return k.jsx(B,{closeAfterTransition:!0,slots:{backdrop:Ie},slotProps:{backdrop:{transitionDuration:L,as:l,...Be}},disableEscapeKeyDown:f,onClose:w,open:x,onClick:ee,...xe,...W,children:k.jsx(De,{...Ne,children:k.jsx(qe,{onMouseDown:Q,...Te,children:k.jsx(je,{as:I,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":de,"aria-modal":u,..._e,children:k.jsx(hp.Provider,{value:oe,children:d})})})})})});function rb(e){return gt("MuiDialogActions",e)}at("MuiDialogActions",["root","spacing"]);const ib=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},rb,t)},ab=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),sb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=ib(o);return k.jsx(ab,{className:Ve(u.root,i),ownerState:o,ref:n,...s})}),ob=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},_g,t)},ub=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ct(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Bg.root} + &`]:{paddingTop:0}}}]}))),lb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=ob(o);return k.jsx(ub,{className:Ve(u.root,i),ownerState:o,ref:n,...s})});function cb(e){return gt("MuiDialogContentText",e)}at("MuiDialogContentText",["root"]);const db=e=>{const{classes:t}=e,r=Ye({root:["root"]},cb,t);return{...t,...r}},hb=ue(Ge,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),fb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=db(s);return k.jsx(hb,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Ve(o.root,a),...r,classes:o})}),pb=e=>{const{classes:t}=e;return Ye({root:["root"]},Fg,t)},mb=ue(Ge,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),gb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=pb(o),{titleId:l=a}=P.useContext(hp);return k.jsx(mb,{component:"h2",className:Ve(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),bb=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:u}=e;return Ye({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Hg,r)},yb=ue("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ct(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),vb=ue("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ct(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ku=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:o="horizontal",component:u=a||o==="vertical"?"div":"hr",flexItem:l=!1,light:c=!1,role:d=u!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...b}=r,v={...r,absolute:i,component:u,flexItem:l,light:c,orientation:o,role:d,textAlign:p,variant:f},E=bb(v);return k.jsx(yb,{as:u,className:Ve(E.root,s),role:d,ref:n,ownerState:v,"aria-orientation":d==="separator"&&(u!=="hr"||o==="vertical")?o:void 0,...b,children:a?k.jsx(vb,{className:E.wrapper,ownerState:v,children:a}):null})});Ku&&(Ku.muiSkipListHighlight=!0);const Tb=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ye(u,S5,t);return{...t,...l}},xb=ue(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bo(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ql()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Eb=ue(To,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),fp=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...b}=r,v={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:f},E=Tb(r),y={root:{ownerState:v},input:{ownerState:v}},w=d??s?Kl(y,d??s):y,x=p.root??a.Root??xb,I=p.input??a.Input??Eb;return k.jsx(xo,{slots:{root:x,input:I},slotProps:w,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:E})});fp.muiName="Input";function Qu(e){return`scale(${e}, ${e**2})`}const Sb={entering:{opacity:1,transform:Qu(1)},entered:{opacity:1,transform:"none"}},$o=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xs=P.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:f,style:b,timeout:v="auto",TransitionComponent:E=Yn,...y}=t,w=ra(),x=P.useRef(),I=qa(),M=P.useRef(null),C=Vt(M,Di(a),n),H=Y=>Q=>{if(Y){const ee=M.current;Q===void 0?Y(ee):Y(ee,Q)}},z=H(c),V=H((Y,Q)=>{G1(Y);const{duration:ee,delay:de,easing:oe}=Ys({style:b,timeout:v,easing:s},{mode:"enter"});let R;v==="auto"?(R=I.transitions.getAutoHeightDuration(Y.clientHeight),x.current=R):R=ee,Y.style.transition=[I.transitions.create("opacity",{duration:R,delay:de}),I.transitions.create("transform",{duration:$o?R:R*.666,delay:de,easing:oe})].join(","),u&&u(Y,Q)}),L=H(l),$=H(f),W=H(Y=>{const{duration:Q,delay:ee,easing:de}=Ys({style:b,timeout:v,easing:s},{mode:"exit"});let oe;v==="auto"?(oe=I.transitions.getAutoHeightDuration(Y.clientHeight),x.current=oe):oe=Q,Y.style.transition=[I.transitions.create("opacity",{duration:oe,delay:ee}),I.transitions.create("transform",{duration:$o?oe:oe*.666,delay:$o?ee:ee||oe*.333,easing:de})].join(","),Y.style.opacity=0,Y.style.transform=Qu(.75),d&&d(Y)}),G=H(p),q=Y=>{v==="auto"&&w.start(x.current||0,Y),r&&r(M.current,Y)};return k.jsx(E,{appear:i,in:o,nodeRef:M,onEnter:V,onEntered:L,onEntering:z,onExit:W,onExited:G,onExiting:$,addEndListener:q,timeout:v==="auto"?null:v,...y,children:(Y,{ownerState:Q,...ee})=>P.cloneElement(a,{style:{opacity:0,transform:Qu(.75),visibility:Y==="exited"&&!o?"hidden":void 0,...Sb[Y],...b,...a.props.style},ref:C,...ee})})});Xs&&(Xs.muiSupportAuto=!0);const wb=e=>{const{classes:t,disableUnderline:n}=e,i=Ye({root:["root",!n&&"underline"],input:["input"]},E5,t);return{...t,...i}},Ab=ue(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bo(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Wi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Wi.disabled}, .${Wi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Wi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ql()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Cb=ue(To,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),pp=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:p="text",...f}=r,b=wb(r),E={root:{ownerState:{disableUnderline:i}}},y=c??s?Kl(c??s,E):E,w=d.root??a.Root??Ab,x=d.input??a.Input??Cb;return k.jsx(xo,{slots:{root:w,input:x},slotProps:y,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:p,...f,classes:b})});pp.muiName="Input";const nr=P.createContext({});function kb(e){return gt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const Ib=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ye({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},kb,t)},Nb=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),mp=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=P.useMemo(()=>({dense:o}),[o]),p={...r,component:s,dense:o,disablePadding:u},f=Ib(p);return k.jsx(nr.Provider,{value:d,children:k.jsxs(Nb,{as:s,className:Ve(f.root,a),ref:n,ownerState:p,...c,children:[l,i]})})});function Rb(e){return gt("MuiListItem",e)}at("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Mb=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Db(e){return gt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const Pb=e=>{const{disableGutters:t,classes:n}=e;return Ye({root:["root",t&&"disableGutters"]},Db,n)},Lb=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),gp=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=P.useContext(nr),o={...r,disableGutters:s.disableGutters},u=Pb(o);return k.jsx(Lb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});gp.muiName="ListItemSecondaryAction";const Ob=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},_b=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return Ye({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},Rb,n)},Bb=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ob})(ct(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Mb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Fb=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Hb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:b=!1,disablePadding:v=!1,divider:E=!1,secondaryAction:y,slotProps:w={},slots:x={},...I}=r,M=P.useContext(nr),C=P.useMemo(()=>({dense:f||M.dense||!1,alignItems:i,disableGutters:b}),[i,M.dense,f,b]),H=P.useRef(null),z=P.Children.toArray(a),V=z.length&&Qg(z[z.length-1],["ListItemSecondaryAction"]),L={...r,alignItems:i,dense:C.dense,disableGutters:b,disablePadding:v,divider:E,hasSecondaryAction:V},$=_b(L),W=Vt(H,n),G=x.root||u.Root||Bb,q=w.root||l.root||{},Y={className:Ve($.root,q.className,s),...I};let Q=o||"li";return V?(Q=!Y.component&&!o?"div":Q,c==="li"&&(Q==="li"?Q="div":Y.component==="li"&&(Y.component="div")),k.jsx(nr.Provider,{value:C,children:k.jsxs(Fb,{as:c,className:Ve($.container,d),ref:W,ownerState:L,...p,children:[k.jsx(G,{...q,...!ka(G)&&{as:Q,ownerState:{...L,...q.ownerState}},...Y,children:z}),z.pop()]})})):k.jsx(nr.Provider,{value:C,children:k.jsxs(G,{...q,as:Q,ref:W,...!ka(G)&&{ownerState:{...L,...q.ownerState}},...Y,children:[z,y&&k.jsx(gp,{children:y})]})})}),zb=e=>{const{alignItems:t,classes:n}=e;return Ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},zg,n)},Ub=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Vb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=P.useContext(nr),o={...r,alignItems:s.alignItems},u=zb(o);return k.jsx(Ub,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});function jb(e){return gt("MuiListItemText",e)}const hi=at("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),qb=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ye({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},jb,t)},$b=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hi.primary}`]:t.primary},{[`& .${hi.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Oc.root}:where(& .${hi.primary})`]:{display:"block"},[`.${Oc.root}:where(& .${hi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Wb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:f={},...b}=r,{dense:v}=P.useContext(nr);let E=u??i,y=c;const w={...r,disableTypography:s,inset:o,primary:!!E,secondary:!!y,dense:v},x=qb(w),I={slots:p,slotProps:{primary:l,secondary:d,...f}},[M,C]=Et("root",{className:Ve(x.root,a),elementType:$b,externalForwardedProps:{...I,...b},ownerState:w,ref:n}),[H,z]=Et("primary",{className:x.primary,elementType:Ge,externalForwardedProps:I,ownerState:w}),[V,L]=Et("secondary",{className:x.secondary,elementType:Ge,externalForwardedProps:I,ownerState:w});return E!=null&&E.type!==Ge&&!s&&(E=k.jsx(H,{variant:v?"body2":"body1",component:z?.variant?void 0:"span",...z,children:E})),y!=null&&y.type!==Ge&&!s&&(y=k.jsx(V,{variant:"body2",color:"textSecondary",...L,children:y})),k.jsxs(M,{...C,children:[E,y]})});function Wo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function od(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Yi(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!bp(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const Yb=P.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=P.useRef(null),b=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ar(()=>{i&&f.current.focus()},[i]),P.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:I})=>{const M=!f.current.style.width;if(x.clientHeight{const I=f.current,M=x.key;if(x.ctrlKey||x.metaKey||x.altKey){c&&c(x);return}const H=fn(I).activeElement;if(M==="ArrowDown")x.preventDefault(),Yi(I,H,l,u,Wo);else if(M==="ArrowUp")x.preventDefault(),Yi(I,H,l,u,od);else if(M==="Home")x.preventDefault(),Yi(I,null,l,u,Wo);else if(M==="End")x.preventDefault(),Yi(I,null,l,u,od);else if(M.length===1){const z=b.current,V=M.toLowerCase(),L=performance.now();z.keys.length>0&&(L-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=L,z.keys.push(V);const $=H&&!z.repeating&&bp(H,z);z.previousKeyMatched&&($||Yi(I,H,!1,u,Wo,z))?x.preventDefault():z.previousKeyMatched=!1}c&&c(x)},E=Vt(f,n);let y=-1;P.Children.forEach(s,(x,I)=>{if(!P.isValidElement(x)){y===I&&(y+=1,y>=s.length&&(y=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||y===-1)&&(y=I),y===I&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))});const w=P.Children.map(s,(x,I)=>{if(I===y){const M={};return a&&(M.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),P.cloneElement(x,M)}return x});return k.jsx(mp,{role:"menu",ref:E,className:o,onKeyDown:v,tabIndex:i?0:-1,...p,children:w})});function Gb(e){return gt("MuiPopover",e)}at("MuiPopover",["root","paper"]);function ud(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ld(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cd(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ms(e){return typeof e=="function"?e():e}const Xb=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},Gb,t)},Kb=ue(dp,{name:"MuiPopover",slot:"Root"})({}),yp=ue(mo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qb=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:b,PaperProps:v={},slots:E={},slotProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:I="auto",TransitionProps:M={},disableScrollLock:C=!1,...H}=r,z=P.useRef(),V={...r,anchorOrigin:s,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:x,transitionDuration:I,TransitionProps:M},L=Xb(V),$=P.useCallback(()=>{if(u==="anchorPosition")return o;const Te=ms(a),Ne=(Te&&Te.nodeType===1?Te:fn(z.current).body).getBoundingClientRect();return{top:Ne.top+ud(Ne,s.vertical),left:Ne.left+ld(Ne,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),W=P.useCallback(Te=>({vertical:ud(Te,w.vertical),horizontal:ld(Te,w.horizontal)}),[w.horizontal,w.vertical]),G=P.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ne=W(De);if(u==="none")return{top:null,left:null,transformOrigin:cd(Ne)};const Qe=$();let Re=Qe.top-Ne.vertical,$e=Qe.left-Ne.horizontal;const wt=Re+De.height,ht=$e+De.width,st=sr(ms(a)),Nt=st.innerHeight-f,ot=st.innerWidth-f;if(f!==null&&ReNt){const it=wt-Nt;Re-=it,Ne.vertical+=it}if(f!==null&&$eot){const it=ht-ot;$e-=it,Ne.horizontal+=it}return{top:`${Math.round(Re)}px`,left:`${Math.round($e)}px`,transformOrigin:cd(Ne)}},[a,u,$,W,f]),[q,Y]=P.useState(b),Q=P.useCallback(()=>{const Te=z.current;if(!Te)return;const De=G(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[G]);P.useEffect(()=>(C&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,C,Q]);const ee=()=>{Q()},de=()=>{Y(!1)};P.useEffect(()=>{b&&Q()}),P.useImperativeHandle(i,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),P.useEffect(()=>{if(!b)return;const Te=Y1(()=>{Q()}),De=sr(ms(a));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[a,b,Q]);let oe=I;const R={slots:{transition:x,...E},slotProps:{transition:M,paper:v,...y}},[Ce,ve]=Et("transition",{elementType:Xs,externalForwardedProps:R,ownerState:V,getSlotProps:Te=>({...Te,onEntering:(De,Ne)=>{Te.onEntering?.(De,Ne),ee()},onExited:De=>{Te.onExited?.(De),de()}}),additionalProps:{appear:!0,in:b}});I==="auto"&&!Ce.muiSupportAuto&&(oe=void 0);const B=d||(a?fn(ms(a)).body:void 0),[xe,{slots:Ie,slotProps:Be,...je}]=Et("root",{ref:n,elementType:Kb,externalForwardedProps:{...R,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:t6(typeof y.backdrop=="function"?y.backdrop(V):y.backdrop,{invisible:!0})},container:B,open:b},ownerState:V,className:Ve(L.root,c)}),[_e,qe]=Et("paper",{ref:z,className:L.paper,elementType:yp,externalForwardedProps:R,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:V});return k.jsx(xe,{...je,...!ka(xe)&&{slots:Ie,slotProps:Be,disableScrollLock:C},children:k.jsx(Ce,{...ve,timeout:oe,children:k.jsx(_e,{...qe,children:l})})})});function Zb(e){return gt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const Jb={vertical:"top",horizontal:"right"},e7={vertical:"top",horizontal:"left"},t7=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},Zb,t)},n7=ue(Qb,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),r7=ue(yp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),i7=ue(Yb,{name:"MuiMenu",slot:"List"})({outline:0}),a7=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:b,...v}={},variant:E="selectedMenu",slots:y={},slotProps:w={},...x}=r,I=Gl(),M={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:f,TransitionProps:v,variant:E},C=t7(M),H=i&&!o&&c,z=P.useRef(null),V=(oe,R)=>{z.current&&z.current.adjustStyleForScrollbar(oe,{direction:I?"rtl":"ltr"}),b&&b(oe,R)},L=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let $=-1;P.Children.map(a,(oe,R)=>{P.isValidElement(oe)&&(oe.props.disabled||(E==="selectedMenu"&&oe.props.selected||$===-1)&&($=R))});const W={slots:y,slotProps:{list:u,transition:v,paper:d,...w}},G=ip({elementType:y.root,externalSlotProps:w.root,ownerState:M,className:[C.root,s]}),[q,Y]=Et("paper",{className:C.paper,elementType:r7,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:M}),[Q,ee]=Et("list",{className:Ve(C.list,u.className),elementType:i7,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:oe=>({...oe,onKeyDown:R=>{L(R),oe.onKeyDown?.(R)}}),ownerState:M}),de=typeof W.slotProps.transition=="function"?W.slotProps.transition(M):W.slotProps.transition;return k.jsx(n7,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?Jb:e7,slots:{root:y.root,paper:q,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:G,paper:Y,backdrop:typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,transition:{...de,onEntering:(...oe)=>{V(...oe),de?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:f,ownerState:M,...x,classes:p,children:k.jsx(Q,{actions:z,autoFocus:i&&($===-1||o),autoFocusItem:H,variant:E,...ee,children:a})})});function s7(e){return gt("MuiMenuItem",e)}const Gi=at("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),o7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},u7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=Ye({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},s7,s);return{...s,...u}},l7=ue(Ug,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:o7})(ct(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Gi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Gi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Gi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Bc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Bc.inset}`]:{marginLeft:52},[`& .${hi.root}`]:{marginTop:0,marginBottom:0},[`& .${hi.inset}`]:{paddingLeft:36},[`& .${_c.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${_c.root} svg`]:{fontSize:"1.25rem"}}}]}))),c7=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p,...f}=r,b=P.useContext(nr),v=P.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),E=P.useRef(null);ar(()=>{i&&E.current&&E.current.focus()},[i]);const y={...r,dense:v.dense,divider:o,disableGutters:u},w=u7(r),x=Vt(E,n);let I;return r.disabled||(I=d!==void 0?d:-1),k.jsx(nr.Provider,{value:v,children:k.jsx(l7,{ref:x,role:c,tabIndex:I,component:a,focusVisibleClassName:Ve(w.focusVisible,l),className:Ve(w.root,p),...f,ownerState:y,classes:w})})});function d7(e){return gt("MuiNativeSelect",e)}const u0=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),h7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"]};return Ye(o,d7,t)},vp=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${u0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),f7=ue(vp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${u0.multiple}`]:t.multiple}]}})({}),Tp=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${u0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),p7=ue(Tp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),m7=P.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=h7(c);return k.jsxs(P.Fragment,{children:[k.jsx(f7,{ownerState:c,className:Ve(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:k.jsx(p7,{as:s,ownerState:c,className:d.icon})]})});var dd;const g7=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),b7=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(ct(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function y7(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return k.jsx(g7,{"aria-hidden":!0,className:r,ownerState:u,...s,children:k.jsx(b7,{ownerState:u,children:o?k.jsx("span",{children:i}):dd||(dd=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const v7=e=>{const{classes:t}=e,r=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vg,t);return{...t,...r}},T7=ue(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:bo})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ql()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),x7=ue(y7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),E7=ue(To,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),l0=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:p="text",...f}=r,b=v7(r),v=o0(),E=s0({props:r,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:v,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:u,size:E.size,type:p},w=c.root??i.Root??T7,x=c.input??i.Input??E7,[I,M]=Et("notchedOutline",{elementType:x7,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&E.required?k.jsxs(P.Fragment,{children:[o," ","*"]}):o}});return k.jsx(xo,{slots:{root:w,input:x},slotProps:d,renderSuffix:C=>k.jsx(I,{...M,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:p,...f,classes:{...b,notchedOutline:null}})});l0.muiName="Input";function xp(e){return gt("MuiSelect",e)}const qr=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hd;const S7=ue(vp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qr.select}`]:t.select},{[`&.${qr.select}`]:t[n.variant]},{[`&.${qr.error}`]:t.error},{[`&.${qr.multiple}`]:t.multiple}]}})({[`&.${qr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),w7=ue(Tp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),A7=ue("input",{shouldForwardProp:e=>jg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function C7(e){return e==null||typeof e=="string"&&!e.trim()}const k7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ye(o,xp,t)},I7=P.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:b,inputRef:v,labelId:E,MenuProps:y={},multiple:w,name:x,onBlur:I,onChange:M,onClose:C,onFocus:H,onOpen:z,open:V,readOnly:L,renderValue:$,required:W,SelectDisplayProps:G={},tabIndex:q,type:Y,value:Q,variant:ee="standard",...de}=t,[oe,R]=qu({controlled:Q,default:c,name:"Select"}),[Ce,ve]=qu({controlled:V,default:l,name:"Select"}),B=P.useRef(null),xe=P.useRef(null),[Ie,Be]=P.useState(null),{current:je}=P.useRef(V!=null),[_e,qe]=P.useState(),Te=Vt(n,v),De=P.useCallback(pe=>{xe.current=pe,pe&&Be(pe)},[]),Ne=Ie?.parentNode;P.useImperativeHandle(Te,()=>({focus:()=>{xe.current.focus()},node:B.current,value:oe}),[oe]),P.useEffect(()=>{l&&Ce&&Ie&&!je&&(qe(s?null:Ne.clientWidth),xe.current.focus())},[Ie,s]),P.useEffect(()=>{a&&xe.current.focus()},[a]),P.useEffect(()=>{if(!E)return;const pe=fn(xe.current).getElementById(E);if(pe){const ke=()=>{getSelection().isCollapsed&&xe.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[E]);const Qe=(pe,ke)=>{pe?z&&z(ke):C&&C(ke),je||(qe(s?null:Ne.clientWidth),ve(pe))},Re=pe=>{pe.button===0&&(pe.preventDefault(),xe.current.focus(),Qe(!0,pe))},$e=pe=>{Qe(!1,pe)},wt=P.Children.toArray(o),ht=pe=>{const ke=wt.find(et=>et.props.value===pe.target.value);ke!==void 0&&(R(ke.props.value),M&&M(pe,ke))},st=pe=>ke=>{let et;if(ke.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(oe)?oe.slice():[];const At=oe.indexOf(pe.props.value);At===-1?et.push(pe.props.value):et.splice(At,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),oe!==et&&(R(et),M)){const At=ke.nativeEvent||ke,ls=new At.constructor(At.type,At);Object.defineProperty(ls,"target",{writable:!0,value:{value:et,name:x}}),M(ls,pe)}w||Qe(!1,ke)}},Nt=pe=>{L||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Qe(!0,pe))},ot=Ie!==null&&Ce,it=pe=>{!ot&&I&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:oe,name:x}}),I(pe))};delete de["aria-invalid"];let Ht,Kt;const bt=[];let on=!1;(up({value:oe})||p)&&($?Ht=$(oe):on=!0);const K=wt.map(pe=>{if(!P.isValidElement(pe))return null;let ke;if(w){if(!Array.isArray(oe))throw new Error(z1(2));ke=oe.some(et=>fd(et,pe.props.value)),ke&&on&&bt.push(pe.props.children)}else ke=fd(oe,pe.props.value),ke&&on&&(Kt=pe.props.children);return P.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:st(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});on&&(w?bt.length===0?Ht=null:Ht=bt.reduce((pe,ke,et)=>(pe.push(ke),et{const{classes:t}=e,r=Ye({root:["root"]},xp,t);return{...t,...r}},c0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},R7=ue(pp,c0)(""),M7=ue(l0,c0)(""),D7=ue(fp,c0)(""),Ep=P.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=w5,id:d,input:p,inputProps:f,label:b,labelId:v,MenuProps:E,multiple:y=!1,native:w=!1,onClose:x,onOpen:I,open:M,renderValue:C,SelectDisplayProps:H,variant:z="outlined",...V}=r,L=w?m7:I7,$=o0(),W=s0({props:r,muiFormControl:$,states:["variant","error"]}),G=W.variant||z,q={...r,variant:G,classes:s},Y=N7(q),{root:Q,...ee}=Y,de=p||{standard:k.jsx(R7,{ownerState:q}),outlined:k.jsx(M7,{label:b,ownerState:q}),filled:k.jsx(D7,{ownerState:q})}[G],oe=Vt(n,Di(de));return k.jsx(P.Fragment,{children:P.cloneElement(de,{inputComponent:L,inputProps:{children:a,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:y,...w?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:v,MenuProps:E,onClose:x,onOpen:I,open:M,renderValue:C,SelectDisplayProps:{id:d,...H}},...f,classes:f?Kl(ee,f.classes):ee,...p?p.props.inputProps:{}},...(y&&w||l)&&G==="outlined"?{notched:!0}:{},ref:oe,className:Ve(de.props.className,o,Y.root),...!p&&{variant:G},...V})})});Ep.muiName="Select";function P7(e){return gt("MuiSkeleton",e)}at("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const L7=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return Ye({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},P7,t)},Zu=V1` +import{z as vg,D as Tg,r as L,E as xg,F as Eg,j as k,b as Ve,_ as Sg,R as cs,G as wg,H as ds,J as H1,K as Ag,N as Cg,l as Vt,O as kg,P as ar,Q as Ig,a as gt,g as at,e as Ye,U as Gl,u as Ke,s as ue,V as ka,W as Ng,X as Ia,d as St,Y as Rg,m as ct,Z as Na,$ as z1,a0 as Mg,a1 as qa,x as Et,a2 as Dg,a3 as Pg,a4 as Lg,a5 as Og,a6 as mo,w as Xl,a7 as _g,a8 as Bg,T as Ge,v as Wn,a9 as Fg,aa as Hg,ab as Kl,i as Ql,ac as ia,ad as zg,ae as Oc,B as Ug,af as _c,ag as Bc,ah as Vg,ai as Ln,aj as jg,ak as U1,al as V1,am as qg,an as Fc,ao as $g,ap as Wg,aq as Yg,ar as Hc,k as mn,as as Gg,at as zc,au as Xg,av as Uc,aw as _s,I as Qr,ax as j1,q as q1,ay as $1,o as $a,n as Si,S as Xe,y as Zl,az as W1}from"./App-D1sLFjME.js";function Kg(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=vg("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Tg);return L.forwardRef(function(u,l){const c=xg(n),{className:d,component:p="div",...f}=Eg(u);return k.jsx(a,{as:p,ref:l,className:Ve(d,i?i(r):r),theme:t&&c[t]||c,...f})})}function Qg(e,t){return L.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Zg(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Jg(e){return parseFloat(e)}function Vc(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Y1(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function fn(e){return e&&e.ownerDocument||document}function sr(e){return fn(e).defaultView||window}function jc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function qu(e){const{controlled:t,default:n,name:r,state:i="value"}=e,{current:a}=L.useRef(t!==void 0),[s,o]=L.useState(n),u=a?t:s,l=L.useCallback(c=>{a||o(c)},[]);return[u,l]}function e6(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function t6(e,t){if(!e)return t;function n(s,o){const u={};return Object.keys(o).forEach(l=>{e6(l,o[l])&&typeof s[l]=="function"&&(u[l]=(...c)=>{s[l](...c),o[l](...c)})}),u}if(typeof e=="function"||typeof t=="function")return s=>{const o=typeof t=="function"?t(s):t,u=typeof e=="function"?e({...s,...o}):e,l=Ve(s?.className,o?.className,u?.className),c=n(u,o);return{...o,...u,...c,...!!l&&{className:l},...o?.style&&u?.style&&{style:{...o.style,...u.style}},...o?.sx&&u?.sx&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,i=n(e,r),a=Ve(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const qc={disabled:!1};var n6=function(t){return t.scrollTop},aa="unmounted",Ur="exited",Vr="entering",ci="entered",$u="exiting",Yn=(function(e){Sg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,u;return a.appearStatus=null,r.in?o?(u=Ur,a.appearStatus=Vr):u=ci:r.unmountOnExit||r.mountOnEnter?u=aa:u=Ur,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===aa?{status:Ur}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Vr&&s!==ci&&(a=Vr):(s===Vr||s===ci)&&(a=$u)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Vr){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:cs.findDOMNode(this);s&&n6(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ur&&this.setState({status:aa})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,u=this.props.nodeRef?[o]:[cs.findDOMNode(this),o],l=u[0],c=u[1],d=this.getTimeouts(),p=o?d.appear:d.enter;if(!i&&!s||qc.disabled){this.safeSetState({status:ci},function(){a.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Vr},function(){a.props.onEntering(l,c),a.onTransitionEnd(p,function(){a.safeSetState({status:ci},function(){a.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:cs.findDOMNode(this);if(!a||qc.disabled){this.safeSetState({status:Ur},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:$u},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Ur},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:cs.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===aa)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=wg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ds.createElement(H1.Provider,{value:null},typeof s=="function"?s(i,o):ds.cloneElement(ds.Children.only(s),o))},t})(ds.Component);Yn.contextType=H1;Yn.propTypes={};function si(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:si,onEntering:si,onEntered:si,onExit:si,onExiting:si,onExited:si};Yn.UNMOUNTED=aa;Yn.EXITED=Ur;Yn.ENTERING=Vr;Yn.ENTERED=ci;Yn.EXITING=$u;const G1=e=>e.scrollTop;function Ys(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}var nn="top",An="bottom",Cn="right",rn="left",Jl="auto",Wa=[nn,An,Cn,rn],wi="start",Ra="end",r6="clippingParents",X1="viewport",Wi="popper",i6="reference",$c=Wa.reduce(function(e,t){return e.concat([t+"-"+wi,t+"-"+Ra])},[]),K1=[].concat(Wa,[Jl]).reduce(function(e,t){return e.concat([t,t+"-"+wi,t+"-"+Ra])},[]),a6="beforeRead",s6="read",o6="afterRead",u6="beforeMain",l6="main",c6="afterMain",d6="beforeWrite",h6="write",f6="afterWrite",p6=[a6,s6,o6,u6,l6,c6,d6,h6,f6];function $n(e){return e?(e.nodeName||"").toLowerCase():null}function pn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Zr(e){var t=pn(e).Element;return e instanceof t||e instanceof Element}function En(e){var t=pn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function e0(e){if(typeof ShadowRoot>"u")return!1;var t=pn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function m6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!En(a)||!$n(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function g6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(u,l){return u[l]="",u},{});!En(i)||!$n(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const b6={name:"applyStyles",enabled:!0,phase:"write",fn:m6,effect:g6,requires:["computeStyles"]};function Un(e){return e.split("-")[0]}var Yr=Math.max,Gs=Math.min,Ai=Math.round;function Wu(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Q1(){return!/^((?!chrome|android).)*safari/i.test(Wu())}function Ci(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&En(e)&&(i=e.offsetWidth>0&&Ai(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ai(r.height)/e.offsetHeight||1);var s=Zr(e)?pn(e):window,o=s.visualViewport,u=!Q1()&&n,l=(r.left+(u&&o?o.offsetLeft:0))/i,c=(r.top+(u&&o?o.offsetTop:0))/a,d=r.width/i,p=r.height/a;return{width:d,height:p,top:c,right:l+d,bottom:c+p,left:l,x:l,y:c}}function t0(e){var t=Ci(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Z1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&e0(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function or(e){return pn(e).getComputedStyle(e)}function y6(e){return["table","td","th"].indexOf($n(e))>=0}function Mr(e){return((Zr(e)?e.ownerDocument:e.document)||window.document).documentElement}function go(e){return $n(e)==="html"?e:e.assignedSlot||e.parentNode||(e0(e)?e.host:null)||Mr(e)}function Wc(e){return!En(e)||or(e).position==="fixed"?null:e.offsetParent}function v6(e){var t=/firefox/i.test(Wu()),n=/Trident/i.test(Wu());if(n&&En(e)){var r=or(e);if(r.position==="fixed")return null}var i=go(e);for(e0(i)&&(i=i.host);En(i)&&["html","body"].indexOf($n(i))<0;){var a=or(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Ya(e){for(var t=pn(e),n=Wc(e);n&&y6(n)&&or(n).position==="static";)n=Wc(n);return n&&($n(n)==="html"||$n(n)==="body"&&or(n).position==="static")?t:n||v6(e)||t}function n0(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ca(e,t,n){return Yr(e,Gs(t,n))}function T6(e,t,n){var r=ca(e,t,n);return r>n?n:r}function J1(){return{top:0,right:0,bottom:0,left:0}}function ep(e){return Object.assign({},J1(),e)}function tp(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var x6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ep(typeof t!="number"?t:tp(t,Wa))};function E6(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Un(n.placement),u=n0(o),l=[rn,Cn].indexOf(o)>=0,c=l?"height":"width";if(!(!a||!s)){var d=x6(i.padding,n),p=t0(a),f=u==="y"?nn:rn,b=u==="y"?An:Cn,v=n.rects.reference[c]+n.rects.reference[u]-s[u]-n.rects.popper[c],E=s[u]-n.rects.reference[u],y=Ya(a),w=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,x=v/2-E/2,I=d[f],M=w-p[c]-d[b],C=w/2-p[c]/2+x,H=ca(I,C,M),z=u;n.modifiersData[r]=(t={},t[z]=H,t.centerOffset=H-C,t)}}function S6(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Z1(t.elements.popper,i)&&(t.elements.arrow=i))}const w6={name:"arrow",enabled:!0,phase:"main",fn:E6,effect:S6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ki(e){return e.split("-")[1]}var A6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C6(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ai(n*i)/i||0,y:Ai(r*i)/i||0}}function Yc(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=s.x,f=p===void 0?0:p,b=s.y,v=b===void 0?0:b,E=typeof c=="function"?c({x:f,y:v}):{x:f,y:v};f=E.x,v=E.y;var y=s.hasOwnProperty("x"),w=s.hasOwnProperty("y"),x=rn,I=nn,M=window;if(l){var C=Ya(n),H="clientHeight",z="clientWidth";if(C===pn(n)&&(C=Mr(n),or(C).position!=="static"&&o==="absolute"&&(H="scrollHeight",z="scrollWidth")),C=C,i===nn||(i===rn||i===Cn)&&a===Ra){I=An;var V=d&&C===M&&M.visualViewport?M.visualViewport.height:C[H];v-=V-r.height,v*=u?1:-1}if(i===rn||(i===nn||i===An)&&a===Ra){x=Cn;var P=d&&C===M&&M.visualViewport?M.visualViewport.width:C[z];f-=P-r.width,f*=u?1:-1}}var $=Object.assign({position:o},l&&A6),W=c===!0?C6({x:f,y:v},pn(n)):{x:f,y:v};if(f=W.x,v=W.y,u){var G;return Object.assign({},$,(G={},G[I]=w?"0":"",G[x]=y?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",G))}return Object.assign({},$,(t={},t[I]=w?v+"px":"",t[x]=y?f+"px":"",t.transform="",t))}function k6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,u=o===void 0?!0:o,l={placement:Un(t.placement),variation:ki(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Yc(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yc(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const I6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:k6,data:{}};var hs={passive:!0};function N6(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,u=pn(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(c){c.addEventListener("scroll",n.update,hs)}),o&&u.addEventListener("resize",n.update,hs),function(){a&&l.forEach(function(c){c.removeEventListener("scroll",n.update,hs)}),o&&u.removeEventListener("resize",n.update,hs)}}const R6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:N6,data:{}};var M6={left:"right",right:"left",bottom:"top",top:"bottom"};function Bs(e){return e.replace(/left|right|bottom|top/g,function(t){return M6[t]})}var D6={start:"end",end:"start"};function Gc(e){return e.replace(/start|end/g,function(t){return D6[t]})}function r0(e){var t=pn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function i0(e){return Ci(Mr(e)).left+r0(e).scrollLeft}function P6(e,t){var n=pn(e),r=Mr(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,u=0;if(i){a=i.width,s=i.height;var l=Q1();(l||!l&&t==="fixed")&&(o=i.offsetLeft,u=i.offsetTop)}return{width:a,height:s,x:o+i0(e),y:u}}function L6(e){var t,n=Mr(e),r=r0(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Yr(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Yr(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+i0(e),u=-r.scrollTop;return or(i||n).direction==="rtl"&&(o+=Yr(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:u}}function a0(e){var t=or(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function np(e){return["html","body","#document"].indexOf($n(e))>=0?e.ownerDocument.body:En(e)&&a0(e)?e:np(go(e))}function da(e,t){var n;t===void 0&&(t=[]);var r=np(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=pn(r),s=i?[a].concat(a.visualViewport||[],a0(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(da(go(s)))}function Yu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function O6(e,t){var n=Ci(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Xc(e,t,n){return t===X1?Yu(P6(e,n)):Zr(t)?O6(t,n):Yu(L6(Mr(e)))}function _6(e){var t=da(go(e)),n=["absolute","fixed"].indexOf(or(e).position)>=0,r=n&&En(e)?Ya(e):e;return Zr(r)?t.filter(function(i){return Zr(i)&&Z1(i,r)&&$n(i)!=="body"}):[]}function B6(e,t,n,r){var i=t==="clippingParents"?_6(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(u,l){var c=Xc(e,l,r);return u.top=Yr(c.top,u.top),u.right=Gs(c.right,u.right),u.bottom=Gs(c.bottom,u.bottom),u.left=Yr(c.left,u.left),u},Xc(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function rp(e){var t=e.reference,n=e.element,r=e.placement,i=r?Un(r):null,a=r?ki(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,u;switch(i){case nn:u={x:s,y:t.y-n.height};break;case An:u={x:s,y:t.y+t.height};break;case Cn:u={x:t.x+t.width,y:o};break;case rn:u={x:t.x-n.width,y:o};break;default:u={x:t.x,y:t.y}}var l=i?n0(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case wi:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Ra:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function Ma(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,u=o===void 0?r6:o,l=n.rootBoundary,c=l===void 0?X1:l,d=n.elementContext,p=d===void 0?Wi:d,f=n.altBoundary,b=f===void 0?!1:f,v=n.padding,E=v===void 0?0:v,y=ep(typeof E!="number"?E:tp(E,Wa)),w=p===Wi?i6:Wi,x=e.rects.popper,I=e.elements[b?w:p],M=B6(Zr(I)?I:I.contextElement||Mr(e.elements.popper),u,c,s),C=Ci(e.elements.reference),H=rp({reference:C,element:x,placement:i}),z=Yu(Object.assign({},x,H)),V=p===Wi?z:C,P={top:M.top-V.top+y.top,bottom:V.bottom-M.bottom+y.bottom,left:M.left-V.left+y.left,right:V.right-M.right+y.right},$=e.modifiersData.offset;if(p===Wi&&$){var W=$[i];Object.keys(P).forEach(function(G){var q=[Cn,An].indexOf(G)>=0?1:-1,Y=[nn,An].indexOf(G)>=0?"y":"x";P[G]+=W[Y]*q})}return P}function F6(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?K1:u,c=ki(r),d=c?o?$c:$c.filter(function(b){return ki(b)===c}):Wa,p=d.filter(function(b){return l.indexOf(b)>=0});p.length===0&&(p=d);var f=p.reduce(function(b,v){return b[v]=Ma(e,{placement:v,boundary:i,rootBoundary:a,padding:s})[Un(v)],b},{});return Object.keys(f).sort(function(b,v){return f[b]-f[v]})}function H6(e){if(Un(e)===Jl)return[];var t=Bs(e);return[Gc(e),t,Gc(t)]}function z6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,u=n.fallbackPlacements,l=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,b=f===void 0?!0:f,v=n.allowedAutoPlacements,E=t.options.placement,y=Un(E),w=y===E,x=u||(w||!b?[Bs(E)]:H6(E)),I=[E].concat(x).reduce(function(xe,Ie){return xe.concat(Un(Ie)===Jl?F6(t,{placement:Ie,boundary:c,rootBoundary:d,padding:l,flipVariations:b,allowedAutoPlacements:v}):Ie)},[]),M=t.rects.reference,C=t.rects.popper,H=new Map,z=!0,V=I[0],P=0;P=0,Y=q?"width":"height",Q=Ma(t,{placement:$,boundary:c,rootBoundary:d,altBoundary:p,padding:l}),ee=q?G?Cn:rn:G?An:nn;M[Y]>C[Y]&&(ee=Bs(ee));var de=Bs(ee),oe=[];if(a&&oe.push(Q[W]<=0),o&&oe.push(Q[ee]<=0,Q[de]<=0),oe.every(function(xe){return xe})){V=$,z=!1;break}H.set($,oe)}if(z)for(var R=b?3:1,Ce=function(Ie){var Be=I.find(function(je){var _e=H.get(je);if(_e)return _e.slice(0,Ie).every(function(qe){return qe})});if(Be)return V=Be,"break"},ve=R;ve>0;ve--){var B=Ce(ve);if(B==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const U6={name:"flip",enabled:!0,phase:"main",fn:z6,requiresIfExists:["offset"],data:{_skip:!1}};function Kc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qc(e){return[nn,Cn,An,rn].some(function(t){return e[t]>=0})}function V6(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Ma(t,{elementContext:"reference"}),o=Ma(t,{altBoundary:!0}),u=Kc(s,r),l=Kc(o,i,a),c=Qc(u),d=Qc(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const j6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:V6};function q6(e,t,n){var r=Un(e),i=[rn,nn].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[rn,Cn].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function $6(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=K1.reduce(function(c,d){return c[d]=q6(d,t.rects,a),c},{}),o=s[t.placement],u=o.x,l=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=s}const W6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$6};function Y6(e){var t=e.state,n=e.name;t.modifiersData[n]=rp({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const G6={name:"popperOffsets",enabled:!0,phase:"read",fn:Y6,data:{}};function X6(e){return e==="x"?"y":"x"}function K6(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,b=n.tetherOffset,v=b===void 0?0:b,E=Ma(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:c}),y=Un(t.placement),w=ki(t.placement),x=!w,I=n0(y),M=X6(I),C=t.modifiersData.popperOffsets,H=t.rects.reference,z=t.rects.popper,V=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,P=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(C){if(a){var G,q=I==="y"?nn:rn,Y=I==="y"?An:Cn,Q=I==="y"?"height":"width",ee=C[I],de=ee+E[q],oe=ee-E[Y],R=f?-z[Q]/2:0,Ce=w===wi?H[Q]:z[Q],ve=w===wi?-z[Q]:-H[Q],B=t.elements.arrow,xe=f&&B?t0(B):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J1(),Be=Ie[q],je=Ie[Y],_e=ca(0,H[Q],xe[Q]),qe=x?H[Q]/2-R-_e-Be-P.mainAxis:Ce-_e-Be-P.mainAxis,Te=x?-H[Q]/2+R+_e+je+P.mainAxis:ve+_e+je+P.mainAxis,De=t.elements.arrow&&Ya(t.elements.arrow),Ne=De?I==="y"?De.clientTop||0:De.clientLeft||0:0,Qe=(G=$?.[I])!=null?G:0,Re=ee+qe-Qe-Ne,$e=ee+Te-Qe,wt=ca(f?Gs(de,Re):de,ee,f?Yr(oe,$e):oe);C[I]=wt,W[I]=wt-ee}if(o){var ht,st=I==="x"?nn:rn,Nt=I==="x"?An:Cn,ot=C[M],it=M==="y"?"height":"width",Ht=ot+E[st],Kt=ot-E[Nt],bt=[nn,rn].indexOf(y)!==-1,on=(ht=$?.[M])!=null?ht:0,K=bt?Ht:ot-H[it]-z[it]-on+P.altAxis,ie=bt?ot+H[it]+z[it]-on-P.altAxis:Kt,me=f&&bt?T6(K,ot,ie):ca(f?K:Ht,ot,f?ie:Kt);C[M]=me,W[M]=me-ot}t.modifiersData[r]=W}}const Q6={name:"preventOverflow",enabled:!0,phase:"main",fn:K6,requiresIfExists:["offset"]};function Z6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function J6(e){return e===pn(e)||!En(e)?r0(e):Z6(e)}function e5(e){var t=e.getBoundingClientRect(),n=Ai(t.width)/e.offsetWidth||1,r=Ai(t.height)/e.offsetHeight||1;return n!==1||r!==1}function t5(e,t,n){n===void 0&&(n=!1);var r=En(t),i=En(t)&&e5(t),a=Mr(t),s=Ci(e,i,n),o={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(($n(t)!=="body"||a0(a))&&(o=J6(t)),En(t)?(u=Ci(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=i0(a))),{x:s.left+o.scrollLeft-u.x,y:s.top+o.scrollTop-u.y,width:s.width,height:s.height}}function n5(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var u=t.get(o);u&&i(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function r5(e){var t=n5(e);return p6.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function i5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function a5(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zc={placement:"bottom",modifiers:[],strategy:"absolute"};function Jc(){for(var e=arguments.length,t=new Array(e),n=0;n=19?e?.props?.ref||null:e?.ref||null}function l5(e){return typeof e=="function"?e():e}const ap=L.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[s,o]=L.useState(null),u=Vt(L.isValidElement(r)?Pi(r):null,n);if(ar(()=>{a||o(l5(i)||document.body)},[i,a]),ar(()=>{if(s&&!a)return jc(n,s),()=>{jc(n,null)}},[n,s,a]),a){if(L.isValidElement(r)){const l={ref:u};return L.cloneElement(r,l)}return r}return s&&Ig.createPortal(r,s)});function c5(e){return gt("MuiPopper",e)}at("MuiPopper",["root"]);function d5(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Gu(e){return typeof e=="function"?e():e}function h5(e){return e.nodeType!==void 0}const f5=e=>{const{classes:t}=e;return Ye({root:["root"]},c5,t)},p5={},m5=L.forwardRef(function(t,n){const{anchorEl:r,children:i,direction:a,disablePortal:s,modifiers:o,open:u,placement:l,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:b,ownerState:v,...E}=t,y=L.useRef(null),w=Vt(y,n),x=L.useRef(null),I=Vt(x,d),M=L.useRef(I);ar(()=>{M.current=I},[I]),L.useImperativeHandle(d,()=>x.current,[]);const C=d5(l,a),[H,z]=L.useState(C),[V,P]=L.useState(Gu(r));L.useEffect(()=>{x.current&&x.current.forceUpdate()}),L.useEffect(()=>{r&&P(Gu(r))},[r]),ar(()=>{if(!V||!u)return;const Y=de=>{z(de.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:de})=>{Y(de)}}];o!=null&&(Q=Q.concat(o)),c&&c.modifiers!=null&&(Q=Q.concat(c.modifiers));const ee=u5(V,y.current,{placement:C,...c,modifiers:Q});return M.current(ee),()=>{ee.destroy(),M.current(null)}},[V,s,o,u,c,C]);const $={placement:H};b!==null&&($.TransitionProps=b);const W=f5(t),G=f.root??"div",q=ip({elementType:G,externalSlotProps:p.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:w},ownerState:t,className:W.root});return k.jsx(G,{...q,children:typeof i=="function"?i($):i})}),g5=L.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:u=!1,modifiers:l,open:c,placement:d="bottom",popperOptions:p=p5,popperRef:f,style:b,transition:v=!1,slotProps:E={},slots:y={},...w}=t,[x,I]=L.useState(!0),M=()=>{I(!1)},C=()=>{I(!0)};if(!u&&!c&&(!v||x))return null;let H;if(a)H=a;else if(r){const P=Gu(r);H=P&&h5(P)?fn(P).body:fn(null).body}const z=!c&&u&&(!v||x)?"none":void 0,V=v?{in:c,onEnter:M,onExited:C}:void 0;return k.jsx(ap,{disablePortal:o,container:H,children:k.jsx(m5,{anchorEl:r,direction:s,disablePortal:o,modifiers:l,ref:n,open:v?!x:c,placement:d,popperOptions:p,popperRef:f,slotProps:E,slots:y,...w,style:{position:"fixed",top:0,left:0,display:z,...b},TransitionProps:V,children:i})})}),b5=ue(g5,{name:"MuiPopper",slot:"Root"})({}),sp=L.forwardRef(function(t,n){const r=Gl(),i=Ke({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:o,componentsProps:u,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:v,popperRef:E,transition:y,slots:w,slotProps:x,...I}=i,M=w?.root??o?.Root,C={anchorEl:a,container:l,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:b,popperOptions:v,popperRef:E,transition:y,...I};return k.jsx(b5,{as:s,direction:r?"rtl":"ltr",slots:{root:M},slotProps:x??u,...C,ref:n})});function fs(e){return parseInt(e,10)||0}const y5={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function v5(e){for(const t in e)return!1;return!0}function ed(e){return v5(e)||e.outerHeightStyle===0&&!e.overflowing}const T5=L.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o,...u}=t,{current:l}=L.useRef(o!=null),c=L.useRef(null),d=Vt(n,c),p=L.useRef(null),f=L.useRef(null),b=L.useCallback(()=>{const x=c.current,I=f.current;if(!x||!I)return;const C=sr(x).getComputedStyle(x);if(C.width==="0px")return{outerHeightStyle:0,overflowing:!1};I.style.width=C.width,I.value=x.value||t.placeholder||"x",I.value.slice(-1)===` +`&&(I.value+=" ");const H=C.boxSizing,z=fs(C.paddingBottom)+fs(C.paddingTop),V=fs(C.borderBottomWidth)+fs(C.borderTopWidth),P=I.scrollHeight;I.value="x";const $=I.scrollHeight;let W=P;a&&(W=Math.max(Number(a)*$,W)),i&&(W=Math.min(Number(i)*$,W)),W=Math.max(W,$);const G=W+(H==="border-box"?z+V:0),q=Math.abs(W-P)<=1;return{outerHeightStyle:G,overflowing:q}},[i,a,t.placeholder]),v=ka(()=>{const x=c.current,I=b();if(!x||!I||ed(I))return!1;const M=I.outerHeightStyle;return p.current!=null&&p.current!==M}),E=L.useCallback(()=>{const x=c.current,I=b();if(!x||!I||ed(I))return;const M=I.outerHeightStyle;p.current!==M&&(p.current=M,x.style.height=`${M}px`),x.style.overflow=I.overflowing?"hidden":""},[b]),y=L.useRef(-1);ar(()=>{const x=Y1(E),I=c?.current;if(!I)return;const M=sr(I);M.addEventListener("resize",x);let C;return typeof ResizeObserver<"u"&&(C=new ResizeObserver(()=>{v()&&(C.unobserve(I),cancelAnimationFrame(y.current),E(),y.current=requestAnimationFrame(()=>{C.observe(I)}))}),C.observe(I)),()=>{x.clear(),cancelAnimationFrame(y.current),M.removeEventListener("resize",x),C&&C.disconnect()}},[b,E,v]),ar(()=>{E()});const w=x=>{l||E();const I=x.target,M=I.value.length,C=I.value.endsWith(` +`),H=I.selectionStart===M;C&&H&&I.setSelectionRange(M,M),r&&r(x)};return k.jsxs(L.Fragment,{children:[k.jsx("textarea",{value:o,onChange:w,ref:d,rows:a,style:s,...u}),k.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...y5.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function s0({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const op=L.createContext(void 0);function o0(){return L.useContext(op)}function td(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function up(e,t=!1){return e&&(td(e.value)&&e.value!==""||t&&td(e.defaultValue)&&e.defaultValue!=="")}function PL(e){return e.startAdornment}var nd;const bo=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${St(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},yo=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},x5=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:u,hiddenLabel:l,multiline:c,readOnly:d,size:p,startAdornment:f,type:b}=e,v={root:["root",`color${St(n)}`,r&&"disabled",i&&"error",u&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${St(p)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return Ye(v,Rg,t)},vo=ue("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bo})(ct(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Na.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),To=ue("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Na.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Na.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),rd=Ng({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),xo=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:o,color:u,components:l={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:f,endAdornment:b,error:v,fullWidth:E=!1,id:y,inputComponent:w="input",inputProps:x={},inputRef:I,margin:M,maxRows:C,minRows:H,multiline:z=!1,name:V,onBlur:P,onChange:$,onClick:W,onFocus:G,onKeyDown:q,onKeyUp:Y,placeholder:Q,readOnly:ee,renderSuffix:de,rows:oe,size:R,slotProps:Ce={},slots:ve={},startAdornment:B,type:xe="text",value:Ie,...Be}=r,je=x.value!=null?x.value:Ie,{current:_e}=L.useRef(je!=null),qe=L.useRef(),Te=L.useCallback(Se=>{},[]),De=Vt(qe,I,x.ref,Te),[Ne,Qe]=L.useState(!1),Re=o0(),$e=s0({props:r,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=Re?Re.focused:Ne,L.useEffect(()=>{!Re&&p&&Ne&&(Qe(!1),P&&P())},[Re,p,Ne,P]);const wt=Re&&Re.onFilled,ht=Re&&Re.onEmpty,st=L.useCallback(Se=>{up(Se)?wt&&wt():ht&&ht()},[wt,ht]);ar(()=>{_e&&st({value:je})},[je,st,_e]);const Nt=Se=>{G&&G(Se),x.onFocus&&x.onFocus(Se),Re&&Re.onFocus?Re.onFocus(Se):Qe(!0)},ot=Se=>{P&&P(Se),x.onBlur&&x.onBlur(Se),Re&&Re.onBlur?Re.onBlur(Se):Qe(!1)},it=(Se,...Rt)=>{if(!_e){const yt=Se.target||qe.current;if(yt==null)throw new Error(z1(1));st({value:yt.value})}x.onChange&&x.onChange(Se,...Rt),$&&$(Se,...Rt)};L.useEffect(()=>{st(qe.current)},[]);const Ht=Se=>{qe.current&&Se.currentTarget===Se.target&&qe.current.focus(),W&&W(Se)};let Kt=w,bt=x;z&&Kt==="input"&&(oe?bt={type:void 0,minRows:oe,maxRows:oe,...bt}:bt={type:void 0,maxRows:C,minRows:H,...bt},Kt=T5);const on=Se=>{st(Se.animationName==="mui-auto-fill-cancel"?qe.current:{value:"x"})};L.useEffect(()=>{Re&&Re.setAdornedStart(!!B)},[Re,B]);const K={...r,color:$e.color||"primary",disabled:$e.disabled,endAdornment:b,error:$e.error,focused:$e.focused,formControl:Re,fullWidth:E,hiddenLabel:$e.hiddenLabel,multiline:z,size:$e.size,startAdornment:B,type:xe},ie=x5(K),me=ve.root||l.Root||vo,Ee=Ce.root||c.root||{},Pe=ve.input||l.Input||To;return bt={...bt,...Ce.input??c.input},k.jsxs(L.Fragment,{children:[!f&&typeof rd=="function"&&(nd||(nd=k.jsx(rd,{}))),k.jsxs(me,{...Ee,ref:n,onClick:Ht,...Be,...!Ia(me)&&{ownerState:{...K,...Ee.ownerState}},className:Ve(ie.root,Ee.className,o,ee&&"MuiInputBase-readOnly"),children:[B,k.jsx(op.Provider,{value:null,children:k.jsx(Pe,{"aria-invalid":$e.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:d,disabled:$e.disabled,id:y,onAnimationStart:on,name:V,placeholder:Q,readOnly:ee,required:$e.required,rows:oe,value:je,onKeyDown:q,onKeyUp:Y,type:xe,...bt,...!Ia(Pe)&&{as:Kt,ownerState:{...K,...bt.ownerState}},ref:De,className:Ve(ie.input,bt.className,ee&&"MuiInputBase-readOnly"),onBlur:ot,onChange:it,onFocus:Nt})}),b,de?de({...$e,startAdornment:B}):null]})]})});function E5(e){return gt("MuiInput",e)}const Yi={...Na,...at("MuiInput",["root","underline","input"])};function S5(e){return gt("MuiFilledInput",e)}const Or={...Na,...at("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},w5=Mg(k.jsx("path",{d:"M7 10l5 5 5-5z"})),A5={entering:{opacity:1},entered:{opacity:1}},Xu=L.forwardRef(function(t,n){const r=qa(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:u,in:l,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:b,onExiting:v,style:E,timeout:y=i,TransitionComponent:w=Yn,...x}=t,I=L.useRef(null),M=Vt(I,Pi(o),n),C=q=>Y=>{if(q){const Q=I.current;Y===void 0?q(Q):q(Q,Y)}},H=C(p),z=C((q,Y)=>{G1(q);const Q=Ys({style:E,timeout:y,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",Q),q.style.transition=r.transitions.create("opacity",Q),c&&c(q,Y)}),V=C(d),P=C(v),$=C(q=>{const Y=Ys({style:E,timeout:y,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",Y),q.style.transition=r.transitions.create("opacity",Y),f&&f(q)}),W=C(b),G=q=>{a&&a(I.current,q)};return k.jsx(w,{appear:s,in:l,nodeRef:I,onEnter:z,onEntered:V,onEntering:H,onExit:$,onExited:W,onExiting:P,addEndListener:G,timeout:y,...x,children:(q,{ownerState:Y,...Q})=>L.cloneElement(o,{style:{opacity:0,visibility:q==="exited"&&!l?"hidden":void 0,...A5[q],...E,...o.props.style},ref:M,...Q})})});function C5(e){return gt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const k5=e=>{const{classes:t,invisible:n}=e;return Ye({root:["root",n&&"invisible"]},C5,t)},I5=ue("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),lp=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:s="div",invisible:o=!1,open:u,components:l={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:f,transitionDuration:b,...v}=r,E={...r,component:s,invisible:o},y=k5(E),w={transition:f,root:l.Root,...p},x={...c,...d},I={component:s,slots:w,slotProps:x},[M,C]=Et("root",{elementType:I5,externalForwardedProps:I,className:Ve(y.root,a),ownerState:E}),[H,z]=Et("transition",{elementType:Xu,externalForwardedProps:I,ownerState:E});return k.jsx(H,{in:u,timeout:b,...v,...z,children:k.jsx(M,{"aria-hidden":!0,...C,classes:y,ref:n,children:i})})}),N5=at("MuiBox",["root"]),R5=Lg(),Ar=Kg({themeId:Pg,defaultTheme:R5,defaultClassName:N5.root,generateClassName:Dg.generate});function cp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function M5(e){const t=fn(e);return t.body===e?sr(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ha(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function id(e){return parseInt(sr(e).getComputedStyle(e).paddingRight,10)||0}function D5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function ad(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=!a.includes(s),u=!D5(s);o&&u&&ha(s,i)})}function jo(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function P5(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(M5(r)){const s=cp(sr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${id(r)+s}px`;const o=fn(r).querySelectorAll(".mui-fixed");[].forEach.call(o,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${id(u)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=fn(r).body;else{const s=r.parentElement,o=sr(r);a=s?.nodeName==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function L5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O5{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ha(t.modalRef,!1);const i=L5(n);ad(n,t.mount,t.modalRef,i,!0);const a=jo(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=jo(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=P5(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=jo(this.containers,s=>s.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ha(t.modalRef,n),ad(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&ha(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const _5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function B5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function F5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function H5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||F5(e))}function z5(e){const t=[],n=[];return Array.from(e.querySelectorAll(_5)).forEach((r,i)=>{const a=B5(r);a===-1||!H5(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function U5(){return!0}function V5(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=z5,isEnabled:s=U5,open:o}=e,u=L.useRef(!1),l=L.useRef(null),c=L.useRef(null),d=L.useRef(null),p=L.useRef(null),f=L.useRef(!1),b=L.useRef(null),v=Vt(Pi(t),b),E=L.useRef(null);L.useEffect(()=>{!o||!b.current||(f.current=!n)},[n,o]),L.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current);return b.current.contains(x.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),f.current&&b.current.focus()),()=>{i||(d.current&&d.current.focus&&(u.current=!0,d.current.focus()),d.current=null)}},[o]),L.useEffect(()=>{if(!o||!b.current)return;const x=fn(b.current),I=H=>{E.current=H,!(r||!s()||H.key!=="Tab")&&x.activeElement===b.current&&H.shiftKey&&(u.current=!0,c.current&&c.current.focus())},M=()=>{const H=b.current;if(H===null)return;if(!x.hasFocus()||!s()||u.current){u.current=!1;return}if(H.contains(x.activeElement)||r&&x.activeElement!==l.current&&x.activeElement!==c.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let z=[];if((x.activeElement===l.current||x.activeElement===c.current)&&(z=a(b.current)),z.length>0){const V=!!(E.current?.shiftKey&&E.current?.key==="Tab"),P=z[0],$=z[z.length-1];typeof P!="string"&&typeof $!="string"&&(V?$.focus():P.focus())}else H.focus()};x.addEventListener("focusin",M),x.addEventListener("keydown",I,!0);const C=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(C),x.removeEventListener("focusin",M),x.removeEventListener("keydown",I,!0)}},[n,r,i,s,o,a]);const y=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0,p.current=x.target;const I=t.props.onFocus;I&&I(x)},w=x=>{d.current===null&&(d.current=x.relatedTarget),f.current=!0};return k.jsxs(L.Fragment,{children:[k.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:l,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:v,onFocus:y}),k.jsx("div",{tabIndex:o?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}function j5(e){return typeof e=="function"?e():e}function q5(e){return e?e.props.hasOwnProperty("in"):!1}const sd=()=>{},ps=new O5;function $5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:o,onClose:u,open:l,rootRef:c}=e,d=L.useRef({}),p=L.useRef(null),f=L.useRef(null),b=Vt(f,c),[v,E]=L.useState(!l),y=q5(o);let w=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(w=!1);const x=()=>fn(p.current),I=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),M=()=>{ps.mount(I(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},C=ka(()=>{const Y=j5(t)||x().body;ps.add(I(),Y),f.current&&M()}),H=()=>ps.isTopModal(I()),z=ka(Y=>{p.current=Y,Y&&(l&&H()?M():f.current&&ha(f.current,w))}),V=L.useCallback(()=>{ps.remove(I(),w)},[w]);L.useEffect(()=>()=>{V()},[V]),L.useEffect(()=>{l?C():(!y||!i)&&V()},[l,V,y,i,C]);const P=Y=>Q=>{Y.onKeyDown?.(Q),!(Q.key!=="Escape"||Q.which===229||!H())&&(n||(Q.stopPropagation(),u&&u(Q,"escapeKeyDown")))},$=Y=>Q=>{Y.onClick?.(Q),Q.target===Q.currentTarget&&u&&u(Q,"backdropClick")};return{getRootProps:(Y={})=>{const Q=Og(e);delete Q.onTransitionEnter,delete Q.onTransitionExited;const ee={...Q,...Y};return{role:"presentation",...ee,onKeyDown:P(ee),ref:b}},getBackdropProps:(Y={})=>{const Q=Y;return{"aria-hidden":!0,...Q,onClick:$(Q),open:l}},getTransitionProps:()=>{const Y=()=>{E(!1),a&&a()},Q=()=>{E(!0),s&&s(),i&&V()};return{onEnter:Vc(Y,o?.props.onEnter??sd),onExited:Vc(Q,o?.props.onExited??sd)}},rootRef:b,portalRef:z,isTopModal:H,exited:v,hasTransition:y}}function W5(e){return gt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const Y5=e=>{const{open:t,exited:n,classes:r}=e;return Ye({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},W5,r)},G5=ue("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(ct(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),X5=ue(lp,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),dp=L.forwardRef(function(t,n){const r=Ke({name:"MuiModal",props:t}),{BackdropComponent:i=X5,BackdropProps:a,classes:s,className:o,closeAfterTransition:u=!1,children:l,container:c,component:d,components:p={},componentsProps:f={},disableAutoFocus:b=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:E=!1,disablePortal:y=!1,disableRestoreFocus:w=!1,disableScrollLock:x=!1,hideBackdrop:I=!1,keepMounted:M=!1,onClose:C,onTransitionEnter:H,onTransitionExited:z,open:V,slotProps:P={},slots:$={},theme:W,...G}=r,q={...r,closeAfterTransition:u,disableAutoFocus:b,disableEnforceFocus:v,disableEscapeKeyDown:E,disablePortal:y,disableRestoreFocus:w,disableScrollLock:x,hideBackdrop:I,keepMounted:M},{getRootProps:Y,getBackdropProps:Q,getTransitionProps:ee,portalRef:de,isTopModal:oe,exited:R,hasTransition:Ce}=$5({...q,rootRef:n}),ve={...q,exited:R},B=Y5(ve),xe={};if(l.props.tabIndex===void 0&&(xe.tabIndex="-1"),Ce){const{onEnter:Te,onExited:De}=ee();xe.onEnter=Te,xe.onExited=De}const Ie={slots:{root:p.Root,backdrop:p.Backdrop,...$},slotProps:{...f,...P}},[Be,je]=Et("root",{ref:n,elementType:G5,externalForwardedProps:{...Ie,...G,component:d},getSlotProps:Y,ownerState:ve,className:Ve(o,B?.root,!ve.open&&ve.exited&&B?.hidden)}),[_e,qe]=Et("backdrop",{ref:a?.ref,elementType:i,externalForwardedProps:Ie,shouldForwardComponentProp:!0,additionalProps:a,getSlotProps:Te=>Q({...Te,onClick:De=>{Te?.onClick&&Te.onClick(De)}}),className:Ve(a?.className,B?.backdrop),ownerState:ve});return!M&&!V&&(!Ce||R)?null:k.jsx(ap,{ref:de,container:c,disablePortal:y,children:k.jsxs(Be,{...je,children:[!I&&i?k.jsx(_e,{...qe}):null,k.jsx(V5,{disableEnforceFocus:v,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:oe,open:V,children:L.cloneElement(l,xe)})]})})});function K5(e){return gt("MuiDialog",e)}const qo=at("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hp=L.createContext({}),Q5=ue(lp,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Z5=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${St(n)}`],paper:["paper",`paperScroll${St(n)}`,`paperWidth${St(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Ye(s,K5,t)},J5=ue(dp,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),eb=ue("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${St(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),tb=ue(mo,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${St(n.scroll)}`],t[`paperWidth${St(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(ct(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${qo.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${qo.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qo.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),nb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialog"}),i=qa(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,"aria-modal":u=!0,BackdropComponent:l,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:f=!1,fullScreen:b=!1,fullWidth:v=!1,maxWidth:E="sm",onClick:y,onClose:w,open:x,PaperComponent:I=mo,PaperProps:M={},scroll:C="paper",slots:H={},slotProps:z={},TransitionComponent:V=Xu,transitionDuration:P=a,TransitionProps:$,...W}=r,G={...r,disableEscapeKeyDown:f,fullScreen:b,fullWidth:v,maxWidth:E,scroll:C},q=Z5(G),Y=L.useRef(),Q=Qe=>{Y.current=Qe.target===Qe.currentTarget},ee=Qe=>{y&&y(Qe),Y.current&&(Y.current=null,w&&w(Qe,"backdropClick"))},de=Xl(o),oe=L.useMemo(()=>({titleId:de}),[de]),R={transition:V,...H},Ce={transition:$,paper:M,backdrop:c,...z},ve={slots:R,slotProps:Ce},[B,xe]=Et("root",{elementType:J5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.root,p),ref:n}),[Ie,Be]=Et("backdrop",{elementType:Q5,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G}),[je,_e]=Et("paper",{elementType:tb,shouldForwardComponentProp:!0,externalForwardedProps:ve,ownerState:G,className:Ve(q.paper,M.className)}),[qe,Te]=Et("container",{elementType:eb,externalForwardedProps:ve,ownerState:G,className:q.container}),[De,Ne]=Et("transition",{elementType:Xu,externalForwardedProps:ve,ownerState:G,additionalProps:{appear:!0,in:x,timeout:P,role:"presentation"}});return k.jsx(B,{closeAfterTransition:!0,slots:{backdrop:Ie},slotProps:{backdrop:{transitionDuration:P,as:l,...Be}},disableEscapeKeyDown:f,onClose:w,open:x,onClick:ee,...xe,...W,children:k.jsx(De,{...Ne,children:k.jsx(qe,{onMouseDown:Q,...Te,children:k.jsx(je,{as:I,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":de,"aria-modal":u,..._e,children:k.jsx(hp.Provider,{value:oe,children:d})})})})})});function rb(e){return gt("MuiDialogActions",e)}at("MuiDialogActions",["root","spacing"]);const ib=e=>{const{classes:t,disableSpacing:n}=e;return Ye({root:["root",!n&&"spacing"]},rb,t)},ab=ue("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),sb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1,...s}=r,o={...r,disableSpacing:a},u=ib(o);return k.jsx(ab,{className:Ve(u.root,i),ownerState:o,ref:n,...s})}),ob=e=>{const{classes:t,dividers:n}=e;return Ye({root:["root",n&&"dividers"]},_g,t)},ub=ue("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(ct(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${Bg.root} + &`]:{paddingTop:0}}}]}))),lb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1,...s}=r,o={...r,dividers:a},u=ob(o);return k.jsx(ub,{className:Ve(u.root,i),ownerState:o,ref:n,...s})});function cb(e){return gt("MuiDialogContentText",e)}at("MuiDialogContentText",["root"]);const db=e=>{const{classes:t}=e,r=Ye({root:["root"]},cb,t);return{...t,...r}},hb=ue(Ge,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),fb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogContentText"}),{children:i,className:a,...s}=r,o=db(s);return k.jsx(hb,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:Ve(o.root,a),...r,classes:o})}),pb=e=>{const{classes:t}=e;return Ye({root:["root"]},Fg,t)},mb=ue(Ge,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),gb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDialogTitle"}),{className:i,id:a,...s}=r,o=r,u=pb(o),{titleId:l=a}=L.useContext(hp);return k.jsx(mb,{component:"h2",className:Ve(u.root,i),ownerState:o,ref:n,variant:"h6",id:a??l,...s})}),bb=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:u}=e;return Ye({root:["root",t&&"absolute",u,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Hg,r)},yb=ue("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(ct(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),vb=ue("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(ct(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Ku=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,orientation:o="horizontal",component:u=a||o==="vertical"?"div":"hr",flexItem:l=!1,light:c=!1,role:d=u!=="hr"?"separator":void 0,textAlign:p="center",variant:f="fullWidth",...b}=r,v={...r,absolute:i,component:u,flexItem:l,light:c,orientation:o,role:d,textAlign:p,variant:f},E=bb(v);return k.jsx(yb,{as:u,className:Ve(E.root,s),role:d,ref:n,ownerState:v,"aria-orientation":d==="separator"&&(u!=="hr"||o==="vertical")?o:void 0,...b,children:a?k.jsx(vb,{className:E.wrapper,ownerState:v,children:a}):null})});Ku&&(Ku.muiSkipListHighlight=!0);const Tb=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:s,multiline:o}=e,u={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${St(a)}`,s&&"hiddenLabel",o&&"multiline"],input:["input"]},l=Ye(u,S5,t);return{...t,...l}},xb=ue(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bo(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Or.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Or.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Or.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Or.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Or.disabled}, .${Or.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Or.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ql()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:o})=>s.multiline&&o==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Eb=ue(To,{name:"MuiFilledInput",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),fp=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,hiddenLabel:u,inputComponent:l="input",multiline:c=!1,slotProps:d,slots:p={},type:f="text",...b}=r,v={...r,disableUnderline:i,fullWidth:o,inputComponent:l,multiline:c,type:f},E=Tb(r),y={root:{ownerState:v},input:{ownerState:v}},w=d??s?Kl(y,d??s):y,x=p.root??a.Root??xb,I=p.input??a.Input??Eb;return k.jsx(xo,{slots:{root:x,input:I},slotProps:w,fullWidth:o,inputComponent:l,multiline:c,ref:n,type:f,...b,classes:E})});fp.muiName="Input";function Qu(e){return`scale(${e}, ${e**2})`}const Sb={entering:{opacity:1,transform:Qu(1)},entered:{opacity:1,transform:"none"}},$o=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xs=L.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:u,onEntered:l,onEntering:c,onExit:d,onExited:p,onExiting:f,style:b,timeout:v="auto",TransitionComponent:E=Yn,...y}=t,w=ia(),x=L.useRef(),I=qa(),M=L.useRef(null),C=Vt(M,Pi(a),n),H=Y=>Q=>{if(Y){const ee=M.current;Q===void 0?Y(ee):Y(ee,Q)}},z=H(c),V=H((Y,Q)=>{G1(Y);const{duration:ee,delay:de,easing:oe}=Ys({style:b,timeout:v,easing:s},{mode:"enter"});let R;v==="auto"?(R=I.transitions.getAutoHeightDuration(Y.clientHeight),x.current=R):R=ee,Y.style.transition=[I.transitions.create("opacity",{duration:R,delay:de}),I.transitions.create("transform",{duration:$o?R:R*.666,delay:de,easing:oe})].join(","),u&&u(Y,Q)}),P=H(l),$=H(f),W=H(Y=>{const{duration:Q,delay:ee,easing:de}=Ys({style:b,timeout:v,easing:s},{mode:"exit"});let oe;v==="auto"?(oe=I.transitions.getAutoHeightDuration(Y.clientHeight),x.current=oe):oe=Q,Y.style.transition=[I.transitions.create("opacity",{duration:oe,delay:ee}),I.transitions.create("transform",{duration:$o?oe:oe*.666,delay:$o?ee:ee||oe*.333,easing:de})].join(","),Y.style.opacity=0,Y.style.transform=Qu(.75),d&&d(Y)}),G=H(p),q=Y=>{v==="auto"&&w.start(x.current||0,Y),r&&r(M.current,Y)};return k.jsx(E,{appear:i,in:o,nodeRef:M,onEnter:V,onEntered:P,onEntering:z,onExit:W,onExited:G,onExiting:$,addEndListener:q,timeout:v==="auto"?null:v,...y,children:(Y,{ownerState:Q,...ee})=>L.cloneElement(a,{style:{opacity:0,transform:Qu(.75),visibility:Y==="exited"&&!o?"hidden":void 0,...Sb[Y],...b,...a.props.style},ref:C,...ee})})});Xs&&(Xs.muiSupportAuto=!0);const wb=e=>{const{classes:t,disableUnderline:n}=e,i=Ye({root:["root",!n&&"underline"],input:["input"]},E5,t);return{...t,...i}},Ab=ue(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bo(e,t),!n.disableUnderline&&t.underline]}})(ct(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Yi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Yi.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Yi.disabled}, .${Yi.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Yi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Ql()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),Cb=ue(To,{name:"MuiInput",slot:"Input",overridesResolver:yo})({}),pp=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:s,fullWidth:o=!1,inputComponent:u="input",multiline:l=!1,slotProps:c,slots:d={},type:p="text",...f}=r,b=wb(r),E={root:{ownerState:{disableUnderline:i}}},y=c??s?Kl(c??s,E):E,w=d.root??a.Root??Ab,x=d.input??a.Input??Cb;return k.jsx(xo,{slots:{root:w,input:x},slotProps:y,fullWidth:o,inputComponent:u,multiline:l,ref:n,type:p,...f,classes:b})});pp.muiName="Input";const nr=L.createContext({});function kb(e){return gt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const Ib=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Ye({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},kb,t)},Nb=ue("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),mp=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:u=!1,subheader:l,...c}=r,d=L.useMemo(()=>({dense:o}),[o]),p={...r,component:s,dense:o,disablePadding:u},f=Ib(p);return k.jsx(nr.Provider,{value:d,children:k.jsxs(Nb,{as:s,className:Ve(f.root,a),ref:n,ownerState:p,...c,children:[l,i]})})});function Rb(e){return gt("MuiListItem",e)}at("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const Mb=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Db(e){return gt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const Pb=e=>{const{disableGutters:t,classes:n}=e;return Ye({root:["root",t&&"disableGutters"]},Db,n)},Lb=ue("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),gp=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemSecondaryAction"}),{className:i,...a}=r,s=L.useContext(nr),o={...r,disableGutters:s.disableGutters},u=Pb(o);return k.jsx(Lb,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});gp.muiName="ListItemSecondaryAction";const Ob=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},_b=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:s,hasSecondaryAction:o}=e;return Ye({root:["root",r&&"dense",!i&&"gutters",!a&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",o&&"secondaryAction"],container:["container"]},Rb,n)},Bb=ue("div",{name:"MuiListItem",slot:"Root",overridesResolver:Ob})(ct(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${Mb.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),Fb=ue("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),Hb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItem"}),{alignItems:i="center",children:a,className:s,component:o,components:u={},componentsProps:l={},ContainerComponent:c="li",ContainerProps:{className:d,...p}={},dense:f=!1,disableGutters:b=!1,disablePadding:v=!1,divider:E=!1,secondaryAction:y,slotProps:w={},slots:x={},...I}=r,M=L.useContext(nr),C=L.useMemo(()=>({dense:f||M.dense||!1,alignItems:i,disableGutters:b}),[i,M.dense,f,b]),H=L.useRef(null),z=L.Children.toArray(a),V=z.length&&Qg(z[z.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:i,dense:C.dense,disableGutters:b,disablePadding:v,divider:E,hasSecondaryAction:V},$=_b(P),W=Vt(H,n),G=x.root||u.Root||Bb,q=w.root||l.root||{},Y={className:Ve($.root,q.className,s),...I};let Q=o||"li";return V?(Q=!Y.component&&!o?"div":Q,c==="li"&&(Q==="li"?Q="div":Y.component==="li"&&(Y.component="div")),k.jsx(nr.Provider,{value:C,children:k.jsxs(Fb,{as:c,className:Ve($.container,d),ref:W,ownerState:P,...p,children:[k.jsx(G,{...q,...!Ia(G)&&{as:Q,ownerState:{...P,...q.ownerState}},...Y,children:z}),z.pop()]})})):k.jsx(nr.Provider,{value:C,children:k.jsxs(G,{...q,as:Q,ref:W,...!Ia(G)&&{ownerState:{...P,...q.ownerState}},...Y,children:[z,y&&k.jsx(gp,{children:y})]})})}),zb=e=>{const{alignItems:t,classes:n}=e;return Ye({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},zg,n)},Ub=ue("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(ct(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Vb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemIcon"}),{className:i,...a}=r,s=L.useContext(nr),o={...r,alignItems:s.alignItems},u=zb(o);return k.jsx(Ub,{className:Ve(u.root,i),ownerState:o,ref:n,...a})});function jb(e){return gt("MuiListItemText",e)}const hi=at("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),qb=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Ye({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},jb,t)},$b=ue("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hi.primary}`]:t.primary},{[`& .${hi.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Oc.root}:where(& .${hi.primary})`]:{display:"block"},[`.${Oc.root}:where(& .${hi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Wb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:u,primaryTypographyProps:l,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:f={},...b}=r,{dense:v}=L.useContext(nr);let E=u??i,y=c;const w={...r,disableTypography:s,inset:o,primary:!!E,secondary:!!y,dense:v},x=qb(w),I={slots:p,slotProps:{primary:l,secondary:d,...f}},[M,C]=Et("root",{className:Ve(x.root,a),elementType:$b,externalForwardedProps:{...I,...b},ownerState:w,ref:n}),[H,z]=Et("primary",{className:x.primary,elementType:Ge,externalForwardedProps:I,ownerState:w}),[V,P]=Et("secondary",{className:x.secondary,elementType:Ge,externalForwardedProps:I,ownerState:w});return E!=null&&E.type!==Ge&&!s&&(E=k.jsx(H,{variant:v?"body2":"body1",component:z?.variant?void 0:"span",...z,children:E})),y!=null&&y.type!==Ge&&!s&&(y=k.jsx(V,{variant:"body2",color:"textSecondary",...P,children:y})),k.jsxs(M,{...C,children:[E,y]})});function Wo(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function od(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function bp(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function Gi(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const u=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!bp(o,a)||u)o=i(e,o,n);else return o.focus(),!0}return!1}const Yb=L.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:u=!1,disableListWrap:l=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,f=L.useRef(null),b=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ar(()=>{i&&f.current.focus()},[i]),L.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,{direction:I})=>{const M=!f.current.style.width;if(x.clientHeight{const I=f.current,M=x.key;if(x.ctrlKey||x.metaKey||x.altKey){c&&c(x);return}const H=fn(I).activeElement;if(M==="ArrowDown")x.preventDefault(),Gi(I,H,l,u,Wo);else if(M==="ArrowUp")x.preventDefault(),Gi(I,H,l,u,od);else if(M==="Home")x.preventDefault(),Gi(I,null,l,u,Wo);else if(M==="End")x.preventDefault(),Gi(I,null,l,u,od);else if(M.length===1){const z=b.current,V=M.toLowerCase(),P=performance.now();z.keys.length>0&&(P-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=P,z.keys.push(V);const $=H&&!z.repeating&&bp(H,z);z.previousKeyMatched&&($||Gi(I,H,!1,u,Wo,z))?x.preventDefault():z.previousKeyMatched=!1}c&&c(x)},E=Vt(f,n);let y=-1;L.Children.forEach(s,(x,I)=>{if(!L.isValidElement(x)){y===I&&(y+=1,y>=s.length&&(y=-1));return}x.props.disabled||(d==="selectedMenu"&&x.props.selected||y===-1)&&(y=I),y===I&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))});const w=L.Children.map(s,(x,I)=>{if(I===y){const M={};return a&&(M.autoFocus=!0),x.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),L.cloneElement(x,M)}return x});return k.jsx(mp,{role:"menu",ref:E,className:o,onKeyDown:v,tabIndex:i?0:-1,...p,children:w})});function Gb(e){return gt("MuiPopover",e)}at("MuiPopover",["root","paper"]);function ud(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function ld(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cd(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ms(e){return typeof e=="function"?e():e}const Xb=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"]},Gb,t)},Kb=ue(dp,{name:"MuiPopover",slot:"Root"})({}),yp=ue(mo,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Qb=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:o,anchorReference:u="anchorEl",children:l,className:c,container:d,elevation:p=8,marginThreshold:f=16,open:b,PaperProps:v={},slots:E={},slotProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:x,transitionDuration:I="auto",TransitionProps:M={},disableScrollLock:C=!1,...H}=r,z=L.useRef(),V={...r,anchorOrigin:s,anchorReference:u,elevation:p,marginThreshold:f,transformOrigin:w,TransitionComponent:x,transitionDuration:I,TransitionProps:M},P=Xb(V),$=L.useCallback(()=>{if(u==="anchorPosition")return o;const Te=ms(a),Ne=(Te&&Te.nodeType===1?Te:fn(z.current).body).getBoundingClientRect();return{top:Ne.top+ud(Ne,s.vertical),left:Ne.left+ld(Ne,s.horizontal)}},[a,s.horizontal,s.vertical,o,u]),W=L.useCallback(Te=>({vertical:ud(Te,w.vertical),horizontal:ld(Te,w.horizontal)}),[w.horizontal,w.vertical]),G=L.useCallback(Te=>{const De={width:Te.offsetWidth,height:Te.offsetHeight},Ne=W(De);if(u==="none")return{top:null,left:null,transformOrigin:cd(Ne)};const Qe=$();let Re=Qe.top-Ne.vertical,$e=Qe.left-Ne.horizontal;const wt=Re+De.height,ht=$e+De.width,st=sr(ms(a)),Nt=st.innerHeight-f,ot=st.innerWidth-f;if(f!==null&&ReNt){const it=wt-Nt;Re-=it,Ne.vertical+=it}if(f!==null&&$eot){const it=ht-ot;$e-=it,Ne.horizontal+=it}return{top:`${Math.round(Re)}px`,left:`${Math.round($e)}px`,transformOrigin:cd(Ne)}},[a,u,$,W,f]),[q,Y]=L.useState(b),Q=L.useCallback(()=>{const Te=z.current;if(!Te)return;const De=G(Te);De.top!==null&&Te.style.setProperty("top",De.top),De.left!==null&&(Te.style.left=De.left),Te.style.transformOrigin=De.transformOrigin,Y(!0)},[G]);L.useEffect(()=>(C&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[a,C,Q]);const ee=()=>{Q()},de=()=>{Y(!1)};L.useEffect(()=>{b&&Q()}),L.useImperativeHandle(i,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),L.useEffect(()=>{if(!b)return;const Te=Y1(()=>{Q()}),De=sr(ms(a));return De.addEventListener("resize",Te),()=>{Te.clear(),De.removeEventListener("resize",Te)}},[a,b,Q]);let oe=I;const R={slots:{transition:x,...E},slotProps:{transition:M,paper:v,...y}},[Ce,ve]=Et("transition",{elementType:Xs,externalForwardedProps:R,ownerState:V,getSlotProps:Te=>({...Te,onEntering:(De,Ne)=>{Te.onEntering?.(De,Ne),ee()},onExited:De=>{Te.onExited?.(De),de()}}),additionalProps:{appear:!0,in:b}});I==="auto"&&!Ce.muiSupportAuto&&(oe=void 0);const B=d||(a?fn(ms(a)).body:void 0),[xe,{slots:Ie,slotProps:Be,...je}]=Et("root",{ref:n,elementType:Kb,externalForwardedProps:{...R,...H},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:t6(typeof y.backdrop=="function"?y.backdrop(V):y.backdrop,{invisible:!0})},container:B,open:b},ownerState:V,className:Ve(P.root,c)}),[_e,qe]=Et("paper",{ref:z,className:P.paper,elementType:yp,externalForwardedProps:R,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:q?void 0:{opacity:0}},ownerState:V});return k.jsx(xe,{...je,...!Ia(xe)&&{slots:Ie,slotProps:Be,disableScrollLock:C},children:k.jsx(Ce,{...ve,timeout:oe,children:k.jsx(_e,{...qe,children:l})})})});function Zb(e){return gt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const Jb={vertical:"top",horizontal:"right"},e7={vertical:"top",horizontal:"left"},t7=e=>{const{classes:t}=e;return Ye({root:["root"],paper:["paper"],list:["list"]},Zb,t)},n7=ue(Qb,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),r7=ue(yp,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),i7=ue(Yb,{name:"MuiMenu",slot:"List"})({outline:0}),a7=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:o=!1,MenuListProps:u={},onClose:l,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:f="auto",TransitionProps:{onEntering:b,...v}={},variant:E="selectedMenu",slots:y={},slotProps:w={},...x}=r,I=Gl(),M={...r,autoFocus:i,disableAutoFocusItem:o,MenuListProps:u,onEntering:b,PaperProps:d,transitionDuration:f,TransitionProps:v,variant:E},C=t7(M),H=i&&!o&&c,z=L.useRef(null),V=(oe,R)=>{z.current&&z.current.adjustStyleForScrollbar(oe,{direction:I?"rtl":"ltr"}),b&&b(oe,R)},P=oe=>{oe.key==="Tab"&&(oe.preventDefault(),l&&l(oe,"tabKeyDown"))};let $=-1;L.Children.map(a,(oe,R)=>{L.isValidElement(oe)&&(oe.props.disabled||(E==="selectedMenu"&&oe.props.selected||$===-1)&&($=R))});const W={slots:y,slotProps:{list:u,transition:v,paper:d,...w}},G=ip({elementType:y.root,externalSlotProps:w.root,ownerState:M,className:[C.root,s]}),[q,Y]=Et("paper",{className:C.paper,elementType:r7,externalForwardedProps:W,shouldForwardComponentProp:!0,ownerState:M}),[Q,ee]=Et("list",{className:Ve(C.list,u.className),elementType:i7,shouldForwardComponentProp:!0,externalForwardedProps:W,getSlotProps:oe=>({...oe,onKeyDown:R=>{P(R),oe.onKeyDown?.(R)}}),ownerState:M}),de=typeof W.slotProps.transition=="function"?W.slotProps.transition(M):W.slotProps.transition;return k.jsx(n7,{onClose:l,anchorOrigin:{vertical:"bottom",horizontal:I?"right":"left"},transformOrigin:I?Jb:e7,slots:{root:y.root,paper:q,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:G,paper:Y,backdrop:typeof w.backdrop=="function"?w.backdrop(M):w.backdrop,transition:{...de,onEntering:(...oe)=>{V(...oe),de?.onEntering?.(...oe)}}},open:c,ref:n,transitionDuration:f,ownerState:M,...x,classes:p,children:k.jsx(Q,{actions:z,autoFocus:i&&($===-1||o),autoFocusItem:H,variant:E,...ee,children:a})})});function s7(e){return gt("MuiMenuItem",e)}const Xi=at("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),o7=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},u7=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,u=Ye({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},s7,s);return{...s,...u}},l7=ue(Ug,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:o7})(ct(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xi.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Xi.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Xi.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${Xi.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Xi.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Bc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Bc.inset}`]:{marginLeft:52},[`& .${hi.root}`]:{marginTop:0,marginBottom:0},[`& .${hi.inset}`]:{paddingLeft:36},[`& .${_c.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${_c.root} svg`]:{fontSize:"1.25rem"}}}]}))),c7=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:u=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:d,className:p,...f}=r,b=L.useContext(nr),v=L.useMemo(()=>({dense:s||b.dense||!1,disableGutters:u}),[b.dense,s,u]),E=L.useRef(null);ar(()=>{i&&E.current&&E.current.focus()},[i]);const y={...r,dense:v.dense,divider:o,disableGutters:u},w=u7(r),x=Vt(E,n);let I;return r.disabled||(I=d!==void 0?d:-1),k.jsx(nr.Provider,{value:v,children:k.jsx(l7,{ref:x,role:c,tabIndex:I,component:a,focusVisibleClassName:Ve(w.focusVisible,l),className:Ve(w.root,p),...f,ownerState:y,classes:w})})});function d7(e){return gt("MuiNativeSelect",e)}const u0=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),h7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"]};return Ye(o,d7,t)},vp=ue("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${u0.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),f7=ue(vp,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Wn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${u0.multiple}`]:t.multiple}]}})({}),Tp=ue("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${u0.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),p7=ue(Tp,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),m7=L.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:u="standard",...l}=t,c={...t,disabled:i,variant:u,error:a},d=h7(c);return k.jsxs(L.Fragment,{children:[k.jsx(f7,{ownerState:c,className:Ve(d.select,r),disabled:i,ref:o||n,...l}),t.multiple?null:k.jsx(p7,{as:s,ownerState:c,className:d.icon})]})});var dd;const g7=ue("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),b7=ue("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Wn})(ct(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function y7(e){const{children:t,classes:n,className:r,label:i,notched:a,...s}=e,o=i!=null&&i!=="",u={...e,notched:a,withLabel:o};return k.jsx(g7,{"aria-hidden":!0,className:r,ownerState:u,...s,children:k.jsx(b7,{ownerState:u,children:o?k.jsx("span",{children:i}):dd||(dd=k.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const v7=e=>{const{classes:t}=e,r=Ye({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Vg,t);return{...t,...r}},T7=ue(vo,{shouldForwardProp:e=>Wn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:bo})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ln.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ql()).map(([n])=>({props:{color:n},style:{[`&.${Ln.focused} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Ln.error} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ln.disabled} .${Ln.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),x7=ue(y7,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(ct(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),E7=ue(To,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:yo})(ct(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),l0=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiOutlinedInput"}),{components:i={},fullWidth:a=!1,inputComponent:s="input",label:o,multiline:u=!1,notched:l,slots:c={},slotProps:d={},type:p="text",...f}=r,b=v7(r),v=o0(),E=s0({props:r,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:v,fullWidth:a,hiddenLabel:E.hiddenLabel,multiline:u,size:E.size,type:p},w=c.root??i.Root??T7,x=c.input??i.Input??E7,[I,M]=Et("notchedOutline",{elementType:x7,className:b.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:o!=null&&o!==""&&E.required?k.jsxs(L.Fragment,{children:[o," ","*"]}):o}});return k.jsx(xo,{slots:{root:w,input:x},slotProps:d,renderSuffix:C=>k.jsx(I,{...M,notched:typeof l<"u"?l:!!(C.startAdornment||C.filled||C.focused)}),fullWidth:a,inputComponent:s,multiline:u,ref:n,type:p,...f,classes:{...b,notchedOutline:null}})});l0.muiName="Input";function xp(e){return gt("MuiSelect",e)}const qr=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hd;const S7=ue(vp,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${qr.select}`]:t.select},{[`&.${qr.select}`]:t[n.variant]},{[`&.${qr.error}`]:t.error},{[`&.${qr.multiple}`]:t.multiple}]}})({[`&.${qr.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),w7=ue(Tp,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${St(n.variant)}`],n.open&&t.iconOpen]}})({}),A7=ue("input",{shouldForwardProp:e=>jg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fd(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function C7(e){return e==null||typeof e=="string"&&!e.trim()}const k7=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${St(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ye(o,xp,t)},I7=L.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:s,children:o,className:u,defaultOpen:l,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:b,inputRef:v,labelId:E,MenuProps:y={},multiple:w,name:x,onBlur:I,onChange:M,onClose:C,onFocus:H,onOpen:z,open:V,readOnly:P,renderValue:$,required:W,SelectDisplayProps:G={},tabIndex:q,type:Y,value:Q,variant:ee="standard",...de}=t,[oe,R]=qu({controlled:Q,default:c,name:"Select"}),[Ce,ve]=qu({controlled:V,default:l,name:"Select"}),B=L.useRef(null),xe=L.useRef(null),[Ie,Be]=L.useState(null),{current:je}=L.useRef(V!=null),[_e,qe]=L.useState(),Te=Vt(n,v),De=L.useCallback(pe=>{xe.current=pe,pe&&Be(pe)},[]),Ne=Ie?.parentNode;L.useImperativeHandle(Te,()=>({focus:()=>{xe.current.focus()},node:B.current,value:oe}),[oe]),L.useEffect(()=>{l&&Ce&&Ie&&!je&&(qe(s?null:Ne.clientWidth),xe.current.focus())},[Ie,s]),L.useEffect(()=>{a&&xe.current.focus()},[a]),L.useEffect(()=>{if(!E)return;const pe=fn(xe.current).getElementById(E);if(pe){const ke=()=>{getSelection().isCollapsed&&xe.current.focus()};return pe.addEventListener("click",ke),()=>{pe.removeEventListener("click",ke)}}},[E]);const Qe=(pe,ke)=>{pe?z&&z(ke):C&&C(ke),je||(qe(s?null:Ne.clientWidth),ve(pe))},Re=pe=>{pe.button===0&&(pe.preventDefault(),xe.current.focus(),Qe(!0,pe))},$e=pe=>{Qe(!1,pe)},wt=L.Children.toArray(o),ht=pe=>{const ke=wt.find(et=>et.props.value===pe.target.value);ke!==void 0&&(R(ke.props.value),M&&M(pe,ke))},st=pe=>ke=>{let et;if(ke.currentTarget.hasAttribute("tabindex")){if(w){et=Array.isArray(oe)?oe.slice():[];const At=oe.indexOf(pe.props.value);At===-1?et.push(pe.props.value):et.splice(At,1)}else et=pe.props.value;if(pe.props.onClick&&pe.props.onClick(ke),oe!==et&&(R(et),M)){const At=ke.nativeEvent||ke,ls=new At.constructor(At.type,At);Object.defineProperty(ls,"target",{writable:!0,value:{value:et,name:x}}),M(ls,pe)}w||Qe(!1,ke)}},Nt=pe=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(pe.key)&&(pe.preventDefault(),Qe(!0,pe))},ot=Ie!==null&&Ce,it=pe=>{!ot&&I&&(Object.defineProperty(pe,"target",{writable:!0,value:{value:oe,name:x}}),I(pe))};delete de["aria-invalid"];let Ht,Kt;const bt=[];let on=!1;(up({value:oe})||p)&&($?Ht=$(oe):on=!0);const K=wt.map(pe=>{if(!L.isValidElement(pe))return null;let ke;if(w){if(!Array.isArray(oe))throw new Error(z1(2));ke=oe.some(et=>fd(et,pe.props.value)),ke&&on&&bt.push(pe.props.children)}else ke=fd(oe,pe.props.value),ke&&on&&(Kt=pe.props.children);return L.cloneElement(pe,{"aria-selected":ke?"true":"false",onClick:st(pe),onKeyUp:et=>{et.key===" "&&et.preventDefault(),pe.props.onKeyUp&&pe.props.onKeyUp(et)},role:"option",selected:ke,value:void 0,"data-value":pe.props.value})});on&&(w?bt.length===0?Ht=null:Ht=bt.reduce((pe,ke,et)=>(pe.push(ke),et{const{classes:t}=e,r=Ye({root:["root"]},xp,t);return{...t,...r}},c0={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Wn(e)&&e!=="variant"},R7=ue(pp,c0)(""),M7=ue(l0,c0)(""),D7=ue(fp,c0)(""),Ep=L.forwardRef(function(t,n){const r=Ke({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:u=!1,displayEmpty:l=!1,IconComponent:c=w5,id:d,input:p,inputProps:f,label:b,labelId:v,MenuProps:E,multiple:y=!1,native:w=!1,onClose:x,onOpen:I,open:M,renderValue:C,SelectDisplayProps:H,variant:z="outlined",...V}=r,P=w?m7:I7,$=o0(),W=s0({props:r,muiFormControl:$,states:["variant","error"]}),G=W.variant||z,q={...r,variant:G,classes:s},Y=N7(q),{root:Q,...ee}=Y,de=p||{standard:k.jsx(R7,{ownerState:q}),outlined:k.jsx(M7,{label:b,ownerState:q}),filled:k.jsx(D7,{ownerState:q})}[G],oe=Vt(n,Pi(de));return k.jsx(L.Fragment,{children:L.cloneElement(de,{inputComponent:P,inputProps:{children:a,error:W.error,IconComponent:c,variant:G,type:void 0,multiple:y,...w?{id:d}:{autoWidth:i,defaultOpen:u,displayEmpty:l,labelId:v,MenuProps:E,onClose:x,onOpen:I,open:M,renderValue:C,SelectDisplayProps:{id:d,...H}},...f,classes:f?Kl(ee,f.classes):ee,...p?p.props.inputProps:{}},...(y&&w||l)&&G==="outlined"?{notched:!0}:{},ref:oe,className:Ve(de.props.className,o,Y.root),...!p&&{variant:G},...V})})});Ep.muiName="Select";function P7(e){return gt("MuiSkeleton",e)}at("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const L7=e=>{const{classes:t,variant:n,animation:r,hasChildren:i,width:a,height:s}=e;return Ye({root:["root",n,r,i&&"withChildren",i&&!a&&"fitContent",i&&!s&&"heightAuto"]},P7,t)},Zu=V1` 0% { opacity: 1; } @@ -36,8 +36,8 @@ import{z as vg,D as Tg,r as P,E as xg,F as Eg,j as k,b as Ve,_ as Sg,R as cs,G a transparent, ${(e.vars||e).palette.action.hover}, transparent - )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:_7||{"&::after":{animation:`${Ju} 2s linear 0.5s infinite`}}}]}})),F7=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,p={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},f=L7(p);return k.jsx(B7,{as:s,ref:n,className:Ve(f.root,a),ownerState:p,...d,style:{width:c,height:o,...u}})});function H7(e){return gt("MuiTooltip",e)}const Tt=at("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function z7(e){return Math.round(e*1e5)/1e5}const U7=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${St(a.split("-")[0])}`],arrow:["arrow"]};return Ye(s,H7,t)},V7=ue(sp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ct(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Tt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Tt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),j7=ue("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${St(n.placement.split("-")[0])}`]]}})(ct(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Tt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Tt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${z7(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),q7=ue("span",{name:"MuiTooltip",slot:"Arrow"})(ct(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gs=!1;const pd=new qg;let Xi={x:0,y:0};function bs(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ks=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:o={},componentsProps:u={},describeChild:l=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:E=700,followCursor:y=!1,id:w,leaveDelay:x=0,leaveTouchDelay:I=1500,onClose:M,onOpen:C,open:H,placement:z="bottom",PopperComponent:V,PopperProps:L={},slotProps:$={},slots:W={},title:G,TransitionComponent:q,TransitionProps:Y,...Q}=r,ee=P.isValidElement(a)?a:k.jsx("span",{children:a}),de=qa(),oe=Gl(),[R,Ce]=P.useState(),[ve,B]=P.useState(null),xe=P.useRef(!1),Ie=p||y,Be=ra(),je=ra(),_e=ra(),qe=ra(),[Te,De]=qu({controlled:H,default:!1,name:"Tooltip",state:"open"});let Ne=Te;const Qe=Xl(w),Re=P.useRef(),$e=Ca(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),qe.clear()});P.useEffect(()=>$e,[$e]);const wt=Fe=>{pd.clear(),gs=!0,De(!0),C&&!Ne&&C(Fe)},ht=Ca(Fe=>{pd.start(800+x,()=>{gs=!1}),De(!1),M&&Ne&&M(Fe),Be.start(de.transitions.duration.shortest,()=>{xe.current=!1})}),st=Fe=>{xe.current&&Fe.type!=="touchstart"||(R&&R.removeAttribute("title"),je.clear(),_e.clear(),b||gs&&v?je.start(gs?v:b,()=>{wt(Fe)}):wt(Fe))},Nt=Fe=>{je.clear(),_e.start(x,()=>{ht(Fe)})},[,ot]=P.useState(!1),it=Fe=>{Fc(Fe.target)||(ot(!1),Nt(Fe))},Ht=Fe=>{R||Ce(Fe.currentTarget),Fc(Fe.target)&&(ot(!0),st(Fe))},Kt=Fe=>{xe.current=!0;const mr=ee.props;mr.onTouchStart&&mr.onTouchStart(Fe)},bt=Fe=>{Kt(Fe),_e.clear(),Be.clear(),$e(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(E,()=>{document.body.style.WebkitUserSelect=Re.current,st(Fe)})},on=Fe=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Fe),$e(),_e.start(I,()=>{ht(Fe)})};P.useEffect(()=>{if(!Ne)return;function Fe(mr){mr.key==="Escape"&&ht(mr)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[ht,Ne]);const K=Vt(Di(ee),Ce,n);!G&&G!==0&&(Ne=!1);const ie=P.useRef(),me=Fe=>{const mr=ee.props;mr.onMouseMove&&mr.onMouseMove(Fe),Xi={x:Fe.clientX,y:Fe.clientY},ie.current&&ie.current.update()},Ee={},Pe=typeof G=="string";l?(Ee.title=!Ne&&Pe&&!d?G:null,Ee["aria-describedby"]=Ne?Qe:null):(Ee["aria-label"]=Pe?G:null,Ee["aria-labelledby"]=Ne&&!Pe?Qe:null);const Se={...Ee,...Q,...ee.props,className:Ve(Q.className,ee.props.className),onTouchStart:Kt,ref:K,...y?{onMouseMove:me}:{}},Rt={};f||(Se.onTouchStart=bt,Se.onTouchEnd=on),d||(Se.onMouseOver=bs(st,Se.onMouseOver),Se.onMouseLeave=bs(Nt,Se.onMouseLeave),Ie||(Rt.onMouseOver=st,Rt.onMouseLeave=Nt)),c||(Se.onFocus=bs(Ht,Se.onFocus),Se.onBlur=bs(it,Se.onBlur),Ie||(Rt.onFocus=Ht,Rt.onBlur=it));const yt={...r,isRtl:oe,arrow:i,disableInteractive:Ie,placement:z,PopperComponentProp:V,touch:xe.current},Qt=typeof $.popper=="function"?$.popper(yt):$.popper,pe=P.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return L.popperOptions?.modifiers&&(Fe=Fe.concat(L.popperOptions.modifiers)),Qt?.popperOptions?.modifiers&&(Fe=Fe.concat(Qt.popperOptions.modifiers)),{...L.popperOptions,...Qt?.popperOptions,modifiers:Fe}},[ve,L.popperOptions,Qt?.popperOptions]),ke=U7(yt),et=typeof $.transition=="function"?$.transition(yt):$.transition,At={slots:{popper:o.Popper,transition:o.Transition??q,tooltip:o.Tooltip,arrow:o.Arrow,...W},slotProps:{arrow:$.arrow??u.arrow,popper:{...L,...Qt??u.popper},tooltip:$.tooltip??u.tooltip,transition:{...Y,...et??u.transition}}},[ls,hg]=Et("popper",{elementType:V7,externalForwardedProps:At,ownerState:yt,className:Ve(ke.popper,L?.className)}),[fg,pg]=Et("transition",{elementType:Xs,externalForwardedProps:At,ownerState:yt}),[mg,gg]=Et("tooltip",{elementType:j7,className:ke.tooltip,externalForwardedProps:At,ownerState:yt}),[bg,yg]=Et("arrow",{elementType:q7,className:ke.arrow,externalForwardedProps:At,ownerState:yt,ref:B});return k.jsxs(P.Fragment,{children:[P.cloneElement(ee,Se),k.jsx(ls,{as:V??sp,placement:z,anchorEl:y?{getBoundingClientRect:()=>({top:Xi.y,left:Xi.x,right:Xi.x,bottom:Xi.y,width:0,height:0})}:R,popperRef:ie,open:R?Ne:!1,id:Qe,transition:!0,...Rt,...hg,popperOptions:pe,children:({TransitionProps:Fe})=>k.jsx(fg,{timeout:de.transitions.duration.shorter,...Fe,...pg,children:k.jsxs(mg,{...gg,children:[G,i?k.jsx(bg,{...yg}):null]})})})]})}),Sp=P.createContext();function $7(e){return gt("MuiTable",e)}at("MuiTable",["root","stickyHeader"]);const W7=e=>{const{classes:t,stickyHeader:n}=e;return Ye({root:["root",n&&"stickyHeader"]},$7,t)},Y7=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),md="table",G7=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:i,component:a=md,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=W7(c),p=P.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return k.jsx(Sp.Provider,{value:p,children:k.jsx(Y7,{as:a,role:a===md?null:"table",ref:n,className:Ve(d.root,i),ownerState:c,...l})})}),Eo=P.createContext();function X7(e){return gt("MuiTableBody",e)}at("MuiTableBody",["root"]);const K7=e=>{const{classes:t}=e;return Ye({root:["root"]},X7,t)},Q7=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Z7={variant:"body"},gd="tbody",J7=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:i,component:a=gd,...s}=r,o={...r,component:a},u=K7(o);return k.jsx(Eo.Provider,{value:Z7,children:k.jsx(Q7,{className:Ve(u.root,i),as:a,ref:n,role:a===gd?null:"rowgroup",ownerState:o,...s})})}),e8=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${St(r)}`,i!=="normal"&&`padding${St(i)}`,`size${St(a)}`]};return Ye(o,$g,t)},t8=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${St(n.size)}`],n.padding!=="normal"&&t[`padding${St(n.padding)}`],n.align!=="inherit"&&t[`align${St(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Wg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),bd=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...p}=r,f=P.useContext(Sp),b=P.useContext(Eo),v=b&&b.variant==="head";let E;s?E=s:E=v?"th":"td";let y=u;E==="td"?y=void 0:!y&&v&&(y="col");const w=d||b&&b.variant,x={...r,align:i,component:E,padding:o||(f&&f.padding?f.padding:"normal"),size:l||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&f&&f.stickyHeader,variant:w},I=e8(x);let M=null;return c&&(M=c==="asc"?"ascending":"descending"),k.jsx(t8,{as:E,ref:n,className:Ve(I.root,a),"aria-sort":M,scope:y,ownerState:x,...p})});function n8(e){return gt("MuiTableContainer",e)}at("MuiTableContainer",["root"]);const r8=e=>{const{classes:t}=e;return Ye({root:["root"]},n8,t)},i8=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),a8=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=r8(o);return k.jsx(i8,{ref:n,as:a,className:Ve(u.root,i),ownerState:o,...s})});function s8(e){return gt("MuiTableHead",e)}at("MuiTableHead",["root"]);const o8=e=>{const{classes:t}=e;return Ye({root:["root"]},s8,t)},u8=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),l8={variant:"head"},yd="thead",c8=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:i,component:a=yd,...s}=r,o={...r,component:a},u=o8(o);return k.jsx(Eo.Provider,{value:l8,children:k.jsx(u8,{as:a,className:Ve(u.root,i),ref:n,role:a===yd?null:"rowgroup",ownerState:o,...s})})}),d8=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Ye({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},Yg,t)},h8=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ct(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hc.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),vd="tr",f8=P.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:i,component:a=vd,hover:s=!1,selected:o=!1,...u}=r,l=P.useContext(Eo),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=d8(c);return k.jsx(h8,{as:a,ref:n,className:Ve(d.root,i),role:a===vd?null:"row",ownerState:c,...u})});/** + )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:_7||{"&::after":{animation:`${Ju} 2s linear 0.5s infinite`}}}]}})),F7=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:a,component:s="span",height:o,style:u,variant:l="text",width:c,...d}=r,p={...r,animation:i,component:s,variant:l,hasChildren:!!d.children},f=L7(p);return k.jsx(B7,{as:s,ref:n,className:Ve(f.root,a),ownerState:p,...d,style:{width:c,height:o,...u}})});function H7(e){return gt("MuiTooltip",e)}const Tt=at("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function z7(e){return Math.round(e*1e5)/1e5}const U7=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${St(a.split("-")[0])}`],arrow:["arrow"]};return Ye(s,H7,t)},V7=ue(sp,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(ct(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Tt.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Tt.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Tt.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),j7=ue("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${St(n.placement.split("-")[0])}`]]}})(ct(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Tt.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Tt.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${z7(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Tt.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Tt.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Tt.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),q7=ue("span",{name:"MuiTooltip",slot:"Arrow"})(ct(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let gs=!1;const pd=new qg;let Ki={x:0,y:0};function bs(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Ks=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:s,components:o={},componentsProps:u={},describeChild:l=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:f=!1,enterDelay:b=100,enterNextDelay:v=0,enterTouchDelay:E=700,followCursor:y=!1,id:w,leaveDelay:x=0,leaveTouchDelay:I=1500,onClose:M,onOpen:C,open:H,placement:z="bottom",PopperComponent:V,PopperProps:P={},slotProps:$={},slots:W={},title:G,TransitionComponent:q,TransitionProps:Y,...Q}=r,ee=L.isValidElement(a)?a:k.jsx("span",{children:a}),de=qa(),oe=Gl(),[R,Ce]=L.useState(),[ve,B]=L.useState(null),xe=L.useRef(!1),Ie=p||y,Be=ia(),je=ia(),_e=ia(),qe=ia(),[Te,De]=qu({controlled:H,default:!1,name:"Tooltip",state:"open"});let Ne=Te;const Qe=Xl(w),Re=L.useRef(),$e=ka(()=>{Re.current!==void 0&&(document.body.style.WebkitUserSelect=Re.current,Re.current=void 0),qe.clear()});L.useEffect(()=>$e,[$e]);const wt=Fe=>{pd.clear(),gs=!0,De(!0),C&&!Ne&&C(Fe)},ht=ka(Fe=>{pd.start(800+x,()=>{gs=!1}),De(!1),M&&Ne&&M(Fe),Be.start(de.transitions.duration.shortest,()=>{xe.current=!1})}),st=Fe=>{xe.current&&Fe.type!=="touchstart"||(R&&R.removeAttribute("title"),je.clear(),_e.clear(),b||gs&&v?je.start(gs?v:b,()=>{wt(Fe)}):wt(Fe))},Nt=Fe=>{je.clear(),_e.start(x,()=>{ht(Fe)})},[,ot]=L.useState(!1),it=Fe=>{Fc(Fe.target)||(ot(!1),Nt(Fe))},Ht=Fe=>{R||Ce(Fe.currentTarget),Fc(Fe.target)&&(ot(!0),st(Fe))},Kt=Fe=>{xe.current=!0;const mr=ee.props;mr.onTouchStart&&mr.onTouchStart(Fe)},bt=Fe=>{Kt(Fe),_e.clear(),Be.clear(),$e(),Re.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",qe.start(E,()=>{document.body.style.WebkitUserSelect=Re.current,st(Fe)})},on=Fe=>{ee.props.onTouchEnd&&ee.props.onTouchEnd(Fe),$e(),_e.start(I,()=>{ht(Fe)})};L.useEffect(()=>{if(!Ne)return;function Fe(mr){mr.key==="Escape"&&ht(mr)}return document.addEventListener("keydown",Fe),()=>{document.removeEventListener("keydown",Fe)}},[ht,Ne]);const K=Vt(Pi(ee),Ce,n);!G&&G!==0&&(Ne=!1);const ie=L.useRef(),me=Fe=>{const mr=ee.props;mr.onMouseMove&&mr.onMouseMove(Fe),Ki={x:Fe.clientX,y:Fe.clientY},ie.current&&ie.current.update()},Ee={},Pe=typeof G=="string";l?(Ee.title=!Ne&&Pe&&!d?G:null,Ee["aria-describedby"]=Ne?Qe:null):(Ee["aria-label"]=Pe?G:null,Ee["aria-labelledby"]=Ne&&!Pe?Qe:null);const Se={...Ee,...Q,...ee.props,className:Ve(Q.className,ee.props.className),onTouchStart:Kt,ref:K,...y?{onMouseMove:me}:{}},Rt={};f||(Se.onTouchStart=bt,Se.onTouchEnd=on),d||(Se.onMouseOver=bs(st,Se.onMouseOver),Se.onMouseLeave=bs(Nt,Se.onMouseLeave),Ie||(Rt.onMouseOver=st,Rt.onMouseLeave=Nt)),c||(Se.onFocus=bs(Ht,Se.onFocus),Se.onBlur=bs(it,Se.onBlur),Ie||(Rt.onFocus=Ht,Rt.onBlur=it));const yt={...r,isRtl:oe,arrow:i,disableInteractive:Ie,placement:z,PopperComponentProp:V,touch:xe.current},Qt=typeof $.popper=="function"?$.popper(yt):$.popper,pe=L.useMemo(()=>{let Fe=[{name:"arrow",enabled:!!ve,options:{element:ve,padding:4}}];return P.popperOptions?.modifiers&&(Fe=Fe.concat(P.popperOptions.modifiers)),Qt?.popperOptions?.modifiers&&(Fe=Fe.concat(Qt.popperOptions.modifiers)),{...P.popperOptions,...Qt?.popperOptions,modifiers:Fe}},[ve,P.popperOptions,Qt?.popperOptions]),ke=U7(yt),et=typeof $.transition=="function"?$.transition(yt):$.transition,At={slots:{popper:o.Popper,transition:o.Transition??q,tooltip:o.Tooltip,arrow:o.Arrow,...W},slotProps:{arrow:$.arrow??u.arrow,popper:{...P,...Qt??u.popper},tooltip:$.tooltip??u.tooltip,transition:{...Y,...et??u.transition}}},[ls,hg]=Et("popper",{elementType:V7,externalForwardedProps:At,ownerState:yt,className:Ve(ke.popper,P?.className)}),[fg,pg]=Et("transition",{elementType:Xs,externalForwardedProps:At,ownerState:yt}),[mg,gg]=Et("tooltip",{elementType:j7,className:ke.tooltip,externalForwardedProps:At,ownerState:yt}),[bg,yg]=Et("arrow",{elementType:q7,className:ke.arrow,externalForwardedProps:At,ownerState:yt,ref:B});return k.jsxs(L.Fragment,{children:[L.cloneElement(ee,Se),k.jsx(ls,{as:V??sp,placement:z,anchorEl:y?{getBoundingClientRect:()=>({top:Ki.y,left:Ki.x,right:Ki.x,bottom:Ki.y,width:0,height:0})}:R,popperRef:ie,open:R?Ne:!1,id:Qe,transition:!0,...Rt,...hg,popperOptions:pe,children:({TransitionProps:Fe})=>k.jsx(fg,{timeout:de.transitions.duration.shorter,...Fe,...pg,children:k.jsxs(mg,{...gg,children:[G,i?k.jsx(bg,{...yg}):null]})})})]})}),Sp=L.createContext();function $7(e){return gt("MuiTable",e)}at("MuiTable",["root","stickyHeader"]);const W7=e=>{const{classes:t,stickyHeader:n}=e;return Ye({root:["root",n&&"stickyHeader"]},$7,t)},Y7=ue("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),md="table",G7=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTable"}),{className:i,component:a=md,padding:s="normal",size:o="medium",stickyHeader:u=!1,...l}=r,c={...r,component:a,padding:s,size:o,stickyHeader:u},d=W7(c),p=L.useMemo(()=>({padding:s,size:o,stickyHeader:u}),[s,o,u]);return k.jsx(Sp.Provider,{value:p,children:k.jsx(Y7,{as:a,role:a===md?null:"table",ref:n,className:Ve(d.root,i),ownerState:c,...l})})}),Eo=L.createContext();function X7(e){return gt("MuiTableBody",e)}at("MuiTableBody",["root"]);const K7=e=>{const{classes:t}=e;return Ye({root:["root"]},X7,t)},Q7=ue("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),Z7={variant:"body"},gd="tbody",J7=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableBody"}),{className:i,component:a=gd,...s}=r,o={...r,component:a},u=K7(o);return k.jsx(Eo.Provider,{value:Z7,children:k.jsx(Q7,{className:Ve(u.root,i),as:a,ref:n,role:a===gd?null:"rowgroup",ownerState:o,...s})})}),e8=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${St(r)}`,i!=="normal"&&`padding${St(i)}`,`size${St(a)}`]};return Ye(o,$g,t)},t8=ue("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${St(n.size)}`],n.padding!=="normal"&&t[`padding${St(n.padding)}`],n.align!=="inherit"&&t[`align${St(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(ct(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${Wg.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),bd=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:u,size:l,sortDirection:c,variant:d,...p}=r,f=L.useContext(Sp),b=L.useContext(Eo),v=b&&b.variant==="head";let E;s?E=s:E=v?"th":"td";let y=u;E==="td"?y=void 0:!y&&v&&(y="col");const w=d||b&&b.variant,x={...r,align:i,component:E,padding:o||(f&&f.padding?f.padding:"normal"),size:l||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:w==="head"&&f&&f.stickyHeader,variant:w},I=e8(x);let M=null;return c&&(M=c==="asc"?"ascending":"descending"),k.jsx(t8,{as:E,ref:n,className:Ve(I.root,a),"aria-sort":M,scope:y,ownerState:x,...p})});function n8(e){return gt("MuiTableContainer",e)}at("MuiTableContainer",["root"]);const r8=e=>{const{classes:t}=e;return Ye({root:["root"]},n8,t)},i8=ue("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),a8=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableContainer"}),{className:i,component:a="div",...s}=r,o={...r,component:a},u=r8(o);return k.jsx(i8,{ref:n,as:a,className:Ve(u.root,i),ownerState:o,...s})});function s8(e){return gt("MuiTableHead",e)}at("MuiTableHead",["root"]);const o8=e=>{const{classes:t}=e;return Ye({root:["root"]},s8,t)},u8=ue("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),l8={variant:"head"},yd="thead",c8=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableHead"}),{className:i,component:a=yd,...s}=r,o={...r,component:a},u=o8(o);return k.jsx(Eo.Provider,{value:l8,children:k.jsx(u8,{as:a,className:Ve(u.root,i),ref:n,role:a===yd?null:"rowgroup",ownerState:o,...s})})}),d8=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Ye({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},Yg,t)},h8=ue("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(ct(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Hc.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Hc.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),vd="tr",f8=L.forwardRef(function(t,n){const r=Ke({props:t,name:"MuiTableRow"}),{className:i,component:a=vd,hover:s=!1,selected:o=!1,...u}=r,l=L.useContext(Eo),c={...r,component:a,hover:s,selected:o,head:l&&l.variant==="head",footer:l&&l.variant==="footer"},d=d8(c);return k.jsx(h8,{as:a,ref:n,className:Ve(d.root,i),role:a===vd?null:"row",ownerState:c,...u})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. @@ -102,14 +102,14 @@ import{z as vg,D as Tg,r as P,E as xg,F as Eg,j as k,b as Ve,_ as Sg,R as cs,G a * * This source code is licensed under the MIT license. * See the LICENSE file in the root directory of this source tree. - */const _8=[["path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z",key:"svg-0"}]],B8=mn("filled","circle-filled","CircleFilled",_8),F8={primary:_s,secondary:_s,info:_s,error:Uc,warning:Uc,success:Xg},H8=e=>{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:p,onConfirm:f=()=>{},submitLabel:b,onSubmitValid:v,onSubmitInvalid:E,handleSubmit:y,secondaryAction:w,...x}=e,I=F8[o],[M,C]=P.useState(!1),H=W=>!(W===!1||typeof W=="object"&&W.closeDialog===!1),z=W=>async(...G)=>{if(!M)try{const q=W(...G);if(q instanceof Promise){C(!0);const Y=await q;C(!1),H(Y)&&n()}else H(q)&&n()}catch(q){C(!1),console.error("Error in dialog action:",q)}};let V;const L=[];c&&L.push({key:"cancel",children:c,color:"secondary",onClick:z(d),loading:M}),p&&L.push({key:"confirm",children:p,color:o,onClick:z(f),loading:M}),b&&(L.push({key:"submit",children:b,type:"submit",loading:M}),y&&v&&(V={onSubmit:W=>{W.preventDefault(),W.stopPropagation(),!M&&(C(!0),y(async(...G)=>{try{const q=await v(...G);C(!1),H(q)&&n()}catch(q){C(!1),console.error("Error in form submission:",q)}},async(...G)=>{try{await E?.(...G)}catch(q){console.error("Error in form validation:",q)}finally{C(!1)}})())}}));const $=()=>{M||n()};return k.jsxs(nb,{open:t,onClose:$,"aria-labelledby":r,"aria-describedby":a,...x,component:V&&"form"||void 0,...V,slotProps:{paper:{sx:{p:1.5}}},children:[k.jsxs(gb,{id:!I&&r||void 0,children:[l==="form"&&k.jsx(Gg,{})||l===!0&&k.jsx(zc,{variant:"circle",color:u,children:k.jsx(I,{})})||k.jsx(zc,{variant:"circle",color:u,children:l})||void 0,!l&&i,k.jsx(Qr,{size:"small",onClick:$,children:k.jsx(j1,{size:"1.25rem"})})]}),k.jsxs(lb,{children:[l&&k.jsx(Ge,{variant:"subtitle1",id:r,sx:{fontSize:"1.125rem",fontWeight:600,mr:"auto"},children:i}),k.jsx(fb,{id:a,children:s})]}),L.length>0&&k.jsxs(sb,{children:[w,L.map(W=>P.createElement(q1,{...W,key:W.key,...L.length===1&&{fullWidth:!0}}))]})]})},aa=(e,t)=>{const[n,r]=P.useState(!1),i=k.jsx(H8,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=P.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},z8=()=>k.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[k.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),k.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),k.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),k.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),k.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),k.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),k.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),k.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),k.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),k.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),Td=()=>k.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[k.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),k.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),U8=ue(Ep)(({theme:e,ownerState:t})=>{const{spacing:n,typography:r,palette:i}=e,{variant:a="outlined"}=t;return{height:a==="outlined"?"4rem":"1lh",paddingInline:n(.5),borderRadius:12,"&:hover":{backgroundColor:"action.hover"},[`.${qr.select}:hover`]:{backgroundColor:"transparent"},...a==="text"&&{...r.h3,fontWeight:r.fontWeightMedium,[`.${qr.select}`]:{fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",padding:0},"&:hover":{backgroundColor:"transparent"}}}}),V8=ue(c7)(({theme:e})=>({height:"3.25rem",gap:e.spacing(1),borderRadius:10})),j8=ue(Xe)(({theme:e})=>({flexDirection:"row",alignItems:"center",gap:e.spacing(1),padding:e.spacing(1),"&:hover":{backgroundColor:"transparent"},pointerEvents:"none"})),Cp=ue("img")(({theme:e})=>({width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${e.palette.divider}`,objectFit:"cover"})),kp=ue("span")(({theme:e})=>({...e.typography.subtitle2,fontSize:"0.875rem",lineHeight:"1.125rem",fontWeight:e.typography.fontWeightLight,color:e.palette.text.primary})),Ip=ue("span")(({theme:e})=>({...e.typography.body2,fontSize:"0.75rem",lineHeight:"1rem",fontWeight:e.typography.fontWeightLight,color:e.palette.text.secondary})),q8=e=>k.jsxs(V8,{value:e.name,children:[k.jsx(Cp,{src:e.logoUrl}),k.jsxs(Xe,{gap:.25,children:[k.jsx(kp,{children:e.displayName}),k.jsx(Ip,{children:e.name})]})]},e.name),$8=({variant:e="outlined"})=>{const[{type:t}]=$1(),[{modelName:n,modelInfoList:r,clusterInfo:{status:i}},{setModelName:a}]=$a(),[s,{open:o}]=aa({titleIcon:k.jsx(O8,{}),title:"Switch model",content:k.jsx(Ge,{variant:"body2",color:"text.secondary",children:"The current version of parallax only supports hosting one model at once. Switching the model will terminate your existing chat service. You can restart the current scheduler in your terminal. We will add node rebalancing and dynamic model allocation soon."}),confirmLabel:"Continue"}),u=Na(l=>{if(i!=="idle"){o();return}a(String(l.target.value))});return k.jsxs(k.Fragment,{children:[k.jsx(U8,{ownerState:{variant:e},readOnly:t==="node",input:e==="outlined"?k.jsx(l0,{}):k.jsx(xo,{}),value:n,onChange:u,renderValue:l=>{const c=r.find(d=>d.name===l);return c?e==="outlined"?k.jsxs(j8,{children:[k.jsx(Cp,{src:c.logoUrl}),k.jsxs(Xe,{gap:.25,children:[k.jsx(kp,{children:c.displayName}),k.jsx(Ip,{children:c.name})]})]}):c.name:l},IconComponent:t==="node"?()=>null:void 0,children:r.map(l=>q8(l))}),s]})},W8={"linux/mac":"Linux/MacOS",windows:"Windows"},Y8=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),xd=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=$a(),[t,n]=P.useState();P.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=Na(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return k.jsx(Xe,{gap:1,children:Object.entries(e).map(([i,a],s,o)=>k.jsxs(Xe,{gap:1,children:[o.length>1&&k.jsxs(Ge,{variant:"subtitle2",children:["For ",W8[i]||i,":"]},"label"),k.jsxs(Y8,{children:[k.jsx(Ge,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),k.jsx(Qr,{sx:{flex:"none",fontSize:"1rem"},size:"em",onClick:()=>r(i),children:t===i&&k.jsx(wp,{})||k.jsx(Ap,{})})]},"command")]},i))})};function d0(e,t){e.indexOf(t)===-1&&e.push(t)}function h0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ur=(e,t,n)=>n>t?t:n{};const lr={},Np=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Rp(e){return typeof e=="object"&&e!==null}const Mp=e=>/^0[^.\s]+$/u.test(e);function p0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sn=e=>e,G8=(e,t)=>n=>t(e(n)),Ga=(...e)=>e.reduce(G8),Da=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class m0{constructor(){this.subscriptions=[]}add(t){return d0(this.subscriptions,t),()=>h0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,jn=e=>e/1e3;function Dp(e,t){return t?e*(1e3/t):0}const Pp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,X8=1e-7,K8=12;function Q8(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Pp(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>X8&&++oQ8(a,0,1,e,n);return a=>a===0||a===1?a:Pp(i(a),t,r)}const Lp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Op=e=>t=>1-e(1-t),_p=Xa(.33,1.53,.69,.99),g0=Op(_p),Bp=Lp(g0),Fp=e=>(e*=2)<1?.5*g0(e):.5*(2-Math.pow(2,-10*(e-1))),b0=e=>1-Math.sin(Math.acos(e)),Hp=Op(b0),zp=Lp(b0),Z8=Xa(.42,0,1,1),J8=Xa(0,0,.58,1),Up=Xa(.42,0,.58,1),ey=e=>Array.isArray(e)&&typeof e[0]!="number",Vp=e=>Array.isArray(e)&&typeof e[0]=="number",ty={linear:Sn,easeIn:Z8,easeInOut:Up,easeOut:J8,circIn:b0,circInOut:zp,circOut:Hp,backIn:g0,backInOut:Bp,backOut:_p,anticipate:Fp},ny=e=>typeof e=="string",Ed=e=>{if(Vp(e)){f0(e.length===4);const[t,n,r,i]=e;return Xa(t,n,r,i)}else if(ny(e))return ty[e];return e},jp=P.createContext({}),qp=P.createContext({strict:!1}),$p=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),So=P.createContext({});function wo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Pa(e){return typeof e=="string"||Array.isArray(e)}const y0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],v0=["initial",...y0];function Ao(e){return wo(e.animate)||v0.some(t=>Pa(e[t]))}function Wp(e){return!!(Ao(e)||e.variants)}function ry(e,t){if(Ao(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pa(n)?n:void 0,animate:Pa(r)?r:void 0}}return e.inherit!==!1?t:{}}function iy(e){const{initial:t,animate:n}=ry(e,P.useContext(So));return P.useMemo(()=>({initial:t,animate:n}),[Sd(t),Sd(n)])}function Sd(e){return Array.isArray(e)?e.join(" "):e}const ys=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ay(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,p=!1)=>{const b=p&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const sy=40;function Yp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=ys.reduce((x,I)=>(x[I]=ay(a),x),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:p,render:f,postRender:b}=s,v=()=>{const x=lr.useManualTiming?i.timestamp:performance.now();n=!1,lr.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,sy),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),p.process(i),f.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},E=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ys.reduce((x,I)=>{const M=s[I];return x[I]=(C,H=!1,z=!1)=>(n||E(),M.schedule(C,H,z)),x},{}),cancel:x=>{for(let I=0;I(Fs===void 0&&tn.set(Ft.isProcessing||lr.useManualTiming?Ft.timestamp:performance.now()),Fs),set:e=>{Fs=e,queueMicrotask(oy)}},Gp=e=>t=>typeof t=="string"&&t.startsWith(e),T0=Gp("--"),uy=Gp("var(--"),x0=e=>uy(e)?ly.test(e.split("/*")[0].trim()):!1,ly=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Pi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},La={...Pi,transform:e=>ur(0,1,e)},vs={...Pi,default:1},ha=e=>Math.round(e*1e5)/1e5,E0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cy(e){return e==null}const dy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&dy.test(n)&&n.startsWith(e)||t&&!cy(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(E0);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},hy=e=>ur(0,255,e),Go={...Pi,transform:e=>Math.round(hy(e))},$r={test:S0("rgb","red"),parse:Xp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Go.transform(e)+", "+Go.transform(t)+", "+Go.transform(n)+", "+ha(La.transform(r))+")"};function fy(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const el={test:S0("#"),parse:fy,transform:$r.transform},Ka=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=Ka("deg"),qn=Ka("%"),Ae=Ka("px"),py=Ka("vh"),my=Ka("vw"),wd={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},fi={test:S0("hsl","hue"),parse:Xp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(ha(t))+", "+qn.transform(ha(n))+", "+ha(La.transform(r))+")"},Pt={test:e=>$r.test(e)||el.test(e)||fi.test(e),parse:e=>$r.test(e)?$r.parse(e):fi.test(e)?fi.parse(e):el.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$r.transform(e):fi.transform(e),getAnimatableNone:e=>{const t=Pt.parse(e);return t.alpha=0,Pt.transform(t)}},gy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function by(e){return isNaN(e)&&typeof e=="string"&&(e.match(E0)?.length||0)+(e.match(gy)?.length||0)>0}const Kp="number",Qp="color",yy="var",vy="var(",Ad="${}",Ty=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(Ty,u=>(Pt.test(u)?(r.color.push(a),i.push(Qp),n.push(Pt.parse(u))):u.startsWith(vy)?(r.var.push(a),i.push(yy),n.push(u)):(r.number.push(a),i.push(Kp),n.push(parseFloat(u))),++a,Ad)).split(Ad);return{values:n,split:o,indexes:r,types:i}}function Zp(e){return Oa(e).values}function Jp(e){const{split:t,types:n}=Oa(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:Pt.test(e)?Pt.getAnimatableNone(e):e;function Ey(e){const t=Zp(e);return Jp(e)(t.map(xy))}const kr={test:by,parse:Zp,createTransformer:Jp,getAnimatableNone:Ey};function Xo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Sy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Xo(u,o,e+1/3),a=Xo(u,o,e),s=Xo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Qs(e,t){return n=>n>0?t:e}const mt=(e,t,n)=>e+(t-e)*n,Ko=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},wy=[el,$r,fi],Ay=e=>wy.find(t=>t.test(e));function Cd(e){const t=Ay(e);if(!t)return!1;let n=t.parse(e);return t===fi&&(n=Sy(n)),n}const kd=(e,t)=>{const n=Cd(e),r=Cd(t);if(!n||!r)return Qs(e,t);const i={...n};return a=>(i.red=Ko(n.red,r.red,a),i.green=Ko(n.green,r.green,a),i.blue=Ko(n.blue,r.blue,a),i.alpha=mt(n.alpha,r.alpha,a),$r.transform(i))},tl=new Set(["none","hidden"]);function Cy(e,t){return tl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ky(e,t){return n=>mt(e,t,n)}function w0(e){return typeof e=="number"?ky:typeof e=="string"?x0(e)?Qs:Pt.test(e)?kd:Ry:Array.isArray(e)?em:typeof e=="object"?Pt.test(e)?kd:Iy:Qs}function em(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>w0(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function Ny(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=kr.createTransformer(t),r=Oa(e),i=Oa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tl.has(e)&&!i.values.length||tl.has(t)&&!r.values.length?Cy(e,t):Ga(em(Ny(r,i),i.values),n):Qs(e,t)};function tm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?mt(e,t,n):w0(e)(e,t)}const My=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Cr(t),now:()=>Ft.isProcessing?Ft.timestamp:tn.now()}},nm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=Zs?1/0:t}function Dy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(A0(r),Zs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:jn(i)}}const Py=5;function rm(e,t,n){const r=Math.max(t-Py,0);return Dp(n-e(r),t-r)}const xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qo=.001;function Ly({duration:e=xt.duration,bounce:t=xt.bounce,velocity:n=xt.velocity,mass:r=xt.mass}){let i,a,s=1-t;s=ur(xt.minDamping,xt.maxDamping,s),e=ur(xt.minDuration,xt.maxDuration,jn(e)),s<1?(i=l=>{const c=l*s,d=c*e,p=c-n,f=nl(l,s),b=Math.exp(-d);return Qo-p/f*b},a=l=>{const d=l*s*e,p=d*n+n,f=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),v=nl(Math.pow(l,2),s);return(-i(l)+Qo>0?-1:1)*((p-f)*b)/v}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Qo+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=_y(i,a,o);if(e=Vn(e),isNaN(u))return{stiffness:xt.stiffness,damping:xt.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Oy=12;function _y(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Hy(e){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...e};if(!Id(e,Fy)&&Id(e,By))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xt.mass,stiffness:i,damping:a}}else{const n=Ly(e);t={...t,...n,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function Js(e=xt.visualDuration,t=xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=Hy({...n,velocity:-jn(n.velocity||0)}),b=p||0,v=l/(2*Math.sqrt(u*c)),E=s-a,y=jn(Math.sqrt(u/c)),w=Math.abs(E)<5;r||(r=w?xt.restSpeed.granular:xt.restSpeed.default),i||(i=w?xt.restDelta.granular:xt.restDelta.default);let x;if(v<1){const M=nl(y,v);x=C=>{const H=Math.exp(-v*y*C);return s-H*((b+v*y*E)/M*Math.sin(M*C)+E*Math.cos(M*C))}}else if(v===1)x=M=>s-Math.exp(-y*M)*(E+(b+y*E)*M);else{const M=y*Math.sqrt(v*v-1);x=C=>{const H=Math.exp(-v*y*C),z=Math.min(M*C,300);return s-H*((b+v*y*E)*Math.sinh(z)+M*E*Math.cosh(z))/M}}const I={calculatedDuration:f&&d||null,next:M=>{const C=x(M);if(f)o.done=M>=d;else{let H=M===0?b:0;v<1&&(H=M===0?Vn(b):rm(x,M,C));const z=Math.abs(H)<=r,V=Math.abs(s-C)<=i;o.done=z&&V}return o.value=o.done?s:C,o},toString:()=>{const M=Math.min(A0(I),Zs),C=nm(H=>I.next(M*H).value,M,30);return M+"ms "+C},toTransition:()=>{}};return I}Js.applyToOptions=e=>{const t=Dy(e,100,Js);return e.ease=t.ease,e.duration=Vn(t.duration),e.type="keyframes",e};function rl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=z=>o!==void 0&&zu,b=z=>o===void 0?u:u===void 0||Math.abs(o-z)-v*Math.exp(-z/r),x=z=>y+w(z),I=z=>{const V=w(z),L=x(z);p.done=Math.abs(V)<=l,p.value=p.done?y:L};let M,C;const H=z=>{f(p.value)&&(M=z,C=Js({keyframes:[p.value,b(p.value)],velocity:rm(x,z,p.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return H(0),{calculatedDuration:null,next:z=>{let V=!1;return!C&&M===void 0&&(V=!0,I(z),H(z)),M!==void 0&&z>=M?C.next(z-M):(!V&&I(z),p)}}}function zy(e,t,n){const r=[],i=n||lr.mix||tm,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=zy(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(ur(e[0],e[a-1],c)):l}function Vy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Da(0,t,r);e.push(mt(n,1,i))}}function jy(e){const t=[0];return Vy(t,e.length-1),t}function qy(e,t){return e.map(n=>n*t)}function $y(e,t){return e.map(()=>t||Up).splice(0,e.length-1)}function fa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ey(r)?r.map(Ed):Ed(r),a={done:!1,value:t[0]},s=qy(n&&n.length===t.length?n:jy(t),e),o=Uy(s,t,{ease:Array.isArray(i)?i:$y(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const Wy=e=>e!==null;function C0(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Wy),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Yy={decay:rl,inertia:rl,tween:fa,keyframes:fa,spring:Js};function im(e){typeof e.type=="string"&&(e.type=Yy[e.type])}class k0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Gy=e=>e/100;class I0 extends k0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;im(t);const{type:n=fa,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||fa;u!==fa&&typeof o[0]!="number"&&(this.mixKeyframes=Ga(Gy,tm(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=A0(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:b,onUpdate:v,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,I=r;if(d){const z=Math.min(this.currentTime,i)/o;let V=Math.floor(z),L=z%1;!L&&z>=1&&(L=1),L===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(L=1-L,f&&(L-=f/o)):p==="mirror"&&(I=s)),x=ur(0,1,L)*o}const M=w?{done:!1,value:c[0]}:I.next(x);a&&(M.value=a(M.value));let{done:C}=M;!w&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return H&&b!==rl&&(M.value=C0(c,this.options,E,this.speed)),v&&v(M.value),H&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return jn(this.calculatedDuration)}get time(){return jn(this.currentTime)}set time(t){t=Vn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=My,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Xy(e){for(let t=1;te*180/Math.PI,il=e=>{const t=Wr(Math.atan2(e[1],e[0]));return al(t)},Ky={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:il,rotateZ:il,skewX:e=>Wr(Math.atan(e[1])),skewY:e=>Wr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},al=e=>(e=e%360,e<0&&(e+=360),e),Nd=il,Rd=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Md=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Qy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rd,scaleY:Md,scale:e=>(Rd(e)+Md(e))/2,rotateX:e=>al(Wr(Math.atan2(e[6],e[5]))),rotateY:e=>al(Wr(Math.atan2(-e[2],e[0]))),rotateZ:Nd,rotate:Nd,skewX:e=>Wr(Math.atan(e[4])),skewY:e=>Wr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sl(e){return e.includes("scale")?1:0}function ol(e,t){if(!e||e==="none")return sl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Qy,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ky,i=o}if(!i)return sl(t);const a=r[t],s=i[1].split(",").map(Jy);return typeof a=="function"?a(s):s[a]}const Zy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ol(n,t)};function Jy(e){return parseFloat(e.trim())}const Li=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oi=new Set(Li),Dd=e=>e===Pi||e===Ae,e9=new Set(["x","y","z"]),t9=Li.filter(e=>!e9.has(e));function n9(e){const t=[];return t9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ol(t,"x"),y:(e,{transform:t})=>ol(t,"y")};Gr.translateX=Gr.x;Gr.translateY=Gr.y;const Xr=new Set;let ul=!1,ll=!1,cl=!1;function am(){if(ll){const e=Array.from(Xr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=n9(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ll=!1,ul=!1,Xr.forEach(e=>e.complete(cl)),Xr.clear()}function sm(){Xr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ll=!0)})}function r9(){cl=!0,sm(),am(),cl=!1}class N0{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Xr.add(this),ul||(ul=!0,lt.read(sm),lt.resolveKeyframes(am))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Xy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xr.delete(this)}cancel(){this.state==="scheduled"&&(Xr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const i9=e=>e.startsWith("--");function a9(e,t,n){i9(t)?e.style.setProperty(t,n):e.style[t]=n}const s9=p0(()=>window.ScrollTimeline!==void 0),o9={};function u9(e,t){const n=p0(e);return()=>o9[t]??n()}const om=u9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),sa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sa([0,.65,.55,1]),circOut:sa([.55,0,1,.45]),backIn:sa([.31,.01,.66,-.59]),backOut:sa([.33,1.53,.69,.99])};function um(e,t){if(e)return typeof e=="function"?om()?nm(e,t):"ease-out":Vp(e)?sa(e):Array.isArray(e)?e.map(n=>um(n,t)||Pd.easeOut):Pd[e]}function l9(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=um(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(p.pseudoElement=l),e.animate(c,p)}function lm(e){return typeof e=="function"&&"applyToOptions"in e}function c9({type:e,...t}){return lm(e)&&om()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class d9 extends k0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,f0(typeof t.type!="string");const l=c9(t);this.animation=l9(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=C0(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):a9(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(t))}get time(){return jn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Vn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&s9()?(this.animation.timeline=t,Sn):n(this)}}const cm={anticipate:Fp,backInOut:Bp,circInOut:zp};function h9(e){return e in cm}function f9(e){typeof e.ease=="string"&&h9(e.ease)&&(e.ease=cm[e.ease])}const Ld=10;class p9 extends d9{constructor(t){f9(t),im(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new I0({...s,autoplay:!1}),u=Vn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Ld).value,o.sample(u).value,Ld),o.stop()}}const Od=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kr.test(e)||e==="0")&&!e.startsWith("url("));function m9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function v9(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return y9()&&n&&b9.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const T9=40;class x9 extends k0{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},f=c?.KeyframeResolver||N0;this.keyframeResolver=new f(o,(b,v,E)=>this.onKeyframesResolved(b,v,p,!E),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=tn.now(),g9(t,a,s,o)||((lr.instantAnimations||!u)&&c?.(C0(t,r,n)),t[0]=t[t.length-1],dl(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>T9?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!l&&v9(p)?new p9({...p,element:p.motionValue.owner.current}):new I0(p);f.finished.then(()=>this.notifyFinished()).catch(Sn),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),r9()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const E9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function S9(e){const t=E9.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function dm(e,t,n=1){const[r,i]=S9(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Np(s)?parseFloat(s):s}return x0(i)?dm(i,t,n+1):i}function R0(e,t){return e?.[t]??e?.default??e}const hm=new Set(["width","height","top","left","right","bottom",...Li]),w9={test:e=>e==="auto",parse:e=>e},fm=e=>t=>t.test(e),pm=[Pi,Ae,qn,vr,my,py,w9],_d=e=>pm.find(fm(e));function A9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Mp(e):!0}const C9=new Set(["brightness","contrast","saturate","opacity"]);function k9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(E0)||[];if(!r)return e;const i=n.replace(r,"");let a=C9.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const I9=/\b([a-z-]*)\(.*?\)/gu,hl={...kr,getAnimatableNone:e=>{const t=e.match(I9);return t?t.map(k9).join(" "):e}},Bd={...Pi,transform:Math.round},N9={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:vs,scaleX:vs,scaleY:vs,scaleZ:vs,skew:vr,skewX:vr,skewY:vr,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:La,originX:wd,originY:wd,originZ:Ae},M0={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,backgroundPositionX:Ae,backgroundPositionY:Ae,...N9,zIndex:Bd,fillOpacity:La,strokeOpacity:La,numOctaves:Bd},R9={...M0,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:hl,WebkitFilter:hl},mm=e=>R9[e];function gm(e,t){let n=mm(e);return n!==hl&&(n=kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const M9=new Set(["auto","none","0"]);function D9(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function L9(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const bm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function O9(e){return Rp(e)&&"offsetHeight"in e}const Fd=30,_9=e=>!isNaN(parseFloat(e));class B9{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=tn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new m0);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fd);return Dp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ki(e,t){return new B9(e,t)}const{schedule:D0}=Yp(queueMicrotask,!1),Rn={x:!1,y:!1};function ym(){return Rn.x||Rn.y}function F9(e){return e==="x"||e==="y"?Rn[e]?null:(Rn[e]=!0,()=>{Rn[e]=!1}):Rn.x||Rn.y?null:(Rn.x=Rn.y=!0,()=>{Rn.x=Rn.y=!1})}function vm(e,t){const n=L9(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hd(e){return!(e.pointerType==="touch"||ym())}function H9(e,t,n={}){const[r,i,a]=vm(e,n),s=o=>{if(!Hd(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Hd(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const Tm=(e,t)=>t?e===t?!0:Tm(e,t.parentElement):!1,P0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,z9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U9(e){return z9.has(e.tagName)||e.tabIndex!==-1}const Hs=new WeakSet;function zd(e){return t=>{t.key==="Enter"&&e(t)}}function Zo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V9=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=zd(()=>{if(Hs.has(n))return;Zo(n,"down");const i=zd(()=>{Zo(n,"up")}),a=()=>Zo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ud(e){return P0(e)&&!ym()}function j9(e,t,n={}){const[r,i,a]=vm(e,n),s=o=>{const u=o.currentTarget;if(!Ud(o))return;Hs.add(u);const l=t(u,o),c=(f,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Hs.has(u)&&Hs.delete(u),Ud(f)&&typeof l=="function"&&l(f,{success:b})},d=f=>{c(f,u===window||u===document||n.useGlobalTarget||Tm(u,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),O9(o)&&(o.addEventListener("focus",l=>V9(l,i)),!U9(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function xm(e){return Rp(e)&&"ownerSVGElement"in e}function q9(e){return xm(e)&&e.tagName==="svg"}const zt=e=>!!(e&&e.getVelocity),$9=[...pm,Pt,kr],W9=e=>$9.find(fm(e)),_a={};function Y9(e){for(const t in e)_a[t]=e[t],T0(t)&&(_a[t].isCSSVariable=!0)}function Em(e,{layout:t,layoutId:n}){return Oi.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_a[e]||e==="opacity")}const G9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X9=Li.length;function K9(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function Sm(e,t,n){for(const r in t)!zt(t[r])&&!Em(r,n)&&(e[r]=t[r])}function Q9({transformTemplate:e},t){return P.useMemo(()=>{const n=O0();return L0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Z9(e,t){const n=e.style||{},r={};return Sm(r,n,e),Object.assign(r,Q9(e,t)),r}function J9(e,t){const n={},r=Z9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ev={offset:"stroke-dashoffset",array:"stroke-dasharray"},tv={offset:"strokeDashoffset",array:"strokeDasharray"};function nv(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?ev:tv;e[a.offset]=Ae.transform(-r);const s=Ae.transform(t),o=Ae.transform(n);e[a.array]=`${s} ${o}`}function wm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(L0(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&nv(d,i,a,s,!1)}const Am=()=>({...O0(),attrs:{}}),Cm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rv(e,t,n,r){const i=P.useMemo(()=>{const a=Am();return wm(a,t,Cm(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Sm(a,e.style,e),i.style={...a,...i.style}}return i}const iv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iv.has(e)}let km=e=>!eo(e);function av(e){typeof e=="function"&&(km=t=>t.startsWith("on")?!eo(t):e(t))}try{av(require("@emotion/is-prop-valid").default)}catch{}function sv(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(km(i)||n===!0&&eo(i)||!t&&!eo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ov=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _0(e){return typeof e!="string"||e.includes("-")?!1:!!(ov.indexOf(e)>-1||/[A-Z]/u.test(e))}function uv(e,t,n,{latestValues:r},i,a=!1){const o=(_0(e)?rv:J9)(t,r,i,e),u=sv(t,typeof e=="string",a),l=e!==P.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=P.useMemo(()=>zt(c)?c.get():c,[c]);return P.createElement(e,{...l,children:d})}const B0=P.createContext(null);function Vd(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function F0(e,t,n,r){if(typeof t=="function"){const[i,a]=Vd(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Vd(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function lv(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}function zs(e){return zt(e)?e.get():e}function cv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:dv(n,r,i,e),renderState:t()}}function dv(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=zs(a[p]);let{initial:s,animate:o}=e;const u=Ao(e),l=Wp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!wo(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f(t,n)=>{const r=P.useContext(So),i=P.useContext(B0),a=()=>cv(e,t,r,i);return n?a():lv(a)};function H0(e,t,n){const{style:r}=e,i={};for(const a in r)(zt(r[a])||t.style&&zt(t.style[a])||Em(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const hv=Im({scrapeMotionValuesFromProps:H0,createRenderState:O0});function Nm(e,t,n){const r=H0(e,t,n);for(const i in e)if(zt(e[i])||zt(t[i])){const a=Li.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fv=Im({scrapeMotionValuesFromProps:Nm,createRenderState:Am}),z0=typeof window<"u",jd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ii={};for(const e in jd)Ii[e]={isEnabled:t=>jd[e].some(n=>!!t[n])};function pv(e){for(const t in e)Ii[t]={...Ii[t],...e[t]}}const mv=Symbol.for("motionComponentSymbol");function pi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gv(e,t,n){const r=P.useRef(null);return P.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):pi(n)&&(n.current=i))},[t,n])}const U0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bv="framerAppearId",Rm="data-"+U0(bv),Mm=P.createContext({}),yv=z0?P.useLayoutEffect:P.useEffect;function vv(e,t,n,r,i){const{visualElement:a}=P.useContext(So),s=P.useContext(qp),o=P.useContext(B0),u=P.useContext($p).reducedMotion,l=P.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=P.useContext(Mm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Tv(l.current,n,i,d);const p=P.useRef(!1);P.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[Rm],b=P.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return yv(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),P.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),b.current=!1),c.enteringChildren=void 0)}),c}function Tv(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&pi(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function Dm(e){if(e)return e.options.allowProjection!==!1?e.projection:Dm(e.parent)}function xv(e,{forwardMotionProps:t=!1}={},n,r){n&&pv(n);const i=_0(e)?fv:hv;function a(o,u){let l;const c={...P.useContext($p),...o,layoutId:Ev(o)},{isStatic:d}=c,p=iy(o),f=i(o,d);if(!d&&z0){Sv();const b=wv(c);l=b.MeasureLayout,p.visualElement=vv(e,f,c,r,b.ProjectionNode)}return k.jsxs(So.Provider,{value:p,children:[l&&p.visualElement?k.jsx(l,{visualElement:p.visualElement,...c}):null,uv(e,o,gv(f,p.visualElement,u),f,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=P.forwardRef(a);return s[mv]=e,s}function Ev({layoutId:e}){const t=P.useContext(jp).id;return t&&e!==void 0?t+"-"+e:e}function Sv(e,t){P.useContext(qp).strict}function wv(e){const{drag:t,layout:n}=Ii;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Pm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Av({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jo(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!Jo(e)||!Jo(t)||!Jo(n)}function jr(e){return fl(e)||Lm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Lm(e){return qd(e.x)||qd(e.y)}function qd(e){return e&&e!=="0%"}function to(e,t,n){const r=e-n,i=t*r;return n+i}function $d(e,t,n,r,i){return i!==void 0&&(e=to(e,i,r)),to(e,n,r)+t}function pl(e,t=0,n=1,r,i){e.min=$d(e.min,t,n,r,i),e.max=$d(e.max,t,n,r,i)}function Om(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}const Wd=.999999999999,Yd=1.0000000000001;function kv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oWd&&(t.x=1),t.yWd&&(t.y=1)}function mi(e,t){e.min=e.min+t,e.max=e.max+t}function Gd(e,t,n,r,i=.5){const a=mt(e.min,e.max,i);pl(e,t,n,a,r)}function gi(e,t){Gd(e.x,t.x,t.scaleX,t.scale,t.originX),Gd(e.y,t.y,t.scaleY,t.scale,t.originY)}function _m(e,t){return Pm(Cv(e.getBoundingClientRect(),t))}function Iv(e,t,n){const r=_m(e,n),{scroll:i}=t;return i&&(mi(r.x,i.offset.x),mi(r.y,i.offset.y)),r}const Xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:Xd(),y:Xd()}),Kd=()=>({min:0,max:0}),Ct=()=>({x:Kd(),y:Kd()}),ml={current:null},Bm={current:!1};function Nv(){if(Bm.current=!0,!!z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ml.current=e.matches;e.addEventListener("change",t),t()}else ml.current=!1}const Rv=new WeakMap;function Mv(e,t,n){for(const r in t){const i=t[r],a=n[r];if(zt(i))e.addValue(r,i);else if(zt(a))e.addValue(r,ki(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,ki(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Dv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=N0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=tn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Bm.current||Nv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ml.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Oi.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&<.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ii){const n=Ii[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ki(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Np(r)||Mp(r))?r=parseFloat(r):!W9(r)&&kr.test(n)&&(r=gm(t,n)),this.setBaseTarget(t,zt(r)?r.get():r)),zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=F0(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!zt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new m0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){D0.render(this.render)}}class Fm extends Dv{constructor(){super(...arguments),this.KeyframeResolver=P9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Hm(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Pv(e){return window.getComputedStyle(e)}class Lv extends Fm{constructor(){super(...arguments),this.type="html",this.renderInstance=Hm}readValueFromInstance(t,n){if(Oi.has(n))return this.projection?.isProjecting?sl(n):Zy(t,n);{const r=Pv(t),i=(T0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return _m(t,n)}build(t,n,r){L0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return H0(t,n,r)}}const zm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ov(e,t,n,r){Hm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(zm.has(i)?i:U0(i),t.attrs[i])}class _v extends Fm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Oi.has(n)){const r=mm(n);return r&&r.default||0}return n=zm.has(n)?n:U0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Nm(t,n,r)}build(t,n,r){wm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Ov(t,n,r,i)}mount(t){this.isSVGTag=Cm(t.tagName),super.mount(t)}}const Bv=(e,t)=>_0(e)?new _v(t):new Lv(t,{allowProjection:e!==P.Fragment});function vi(e,t,n){const r=e.getProps();return F0(r,t,n!==void 0?n:r.custom,e)}const gl=e=>Array.isArray(e);function Fv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ki(n))}function Hv(e){return gl(e)?e[e.length-1]||0:e}function zv(e,t){const n=vi(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Hv(a[s]);Fv(e,s,o)}}function Uv(e){return!!(zt(e)&&e.add)}function bl(e,t){const n=e.getValue("willChange");if(Uv(n))return n.add(t);if(!n&&lr.WillChange){const r=new lr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Um(e){return e.props[Rm]}const Vv=e=>e!==null;function jv(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Vv),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const qv={type:"spring",stiffness:500,damping:25,restSpeed:10},$v=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wv={type:"keyframes",duration:.8},Yv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gv=(e,{keyframes:t})=>t.length>2?Wv:Oi.has(e)?e.startsWith("scale")?$v(t[1]):qv:Yv;function Xv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const V0=(e,t,n,r={},i,a)=>s=>{const o=R0(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Vn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Xv(o)||Object.assign(c,Gv(e,c)),c.duration&&(c.duration=Vn(c.duration)),c.repeatDelay&&(c.repeatDelay=Vn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(dl(c),c.delay===0&&(d=!0)),(lr.instantAnimations||lr.skipAnimations)&&(d=!0,dl(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const p=jv(c.keyframes,o);if(p!==void 0){lt.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new I0(c):new x9(c)};function Kv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||l&&Kv(l,c))continue;const f={delay:n,...R0(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===b&&!f.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Um(e);if(y){const w=window.MotionHandoffAnimation(y,c,lt);w!==null&&(f.startTime=w,v=!0)}}bl(e,c),d.start(V0(c,d,p,e.shouldReduceMotion&&hm.has(c)?{type:!1}:f,e,v));const E=d.animation;E&&u.push(E)}return s&&Promise.all(u).then(()=>{lt.update(()=>{s&&zv(e,s)})}),u}function jm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function yl(e,t,n={}){const r=vi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Vm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Qv(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Qv(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(yl(u,t,{...s,delay:n+(typeof r=="function"?0:r)+jm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Zv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>yl(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=yl(e,t,n);else{const i=typeof t=="function"?vi(e,t,n.custom):t;r=Promise.all(Vm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Zv(e,n,r)))}function rT(e){let t=nT(e),n=Zd(),r=!0;const i=u=>(l,c)=>{const d=vi(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...b}=d;l={...l,...b,...f}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=$m(e.parent)||{},d=[],p=new Set;let f={},b=1/0;for(let E=0;Eb&&I,V=!1;const L=Array.isArray(x)?x:[x];let $=L.reduce(i(y),{});M===!1&&($={});const{prevResolvedValues:W={}}=w,G={...W,...$},q=ee=>{z=!0,p.has(ee)&&(V=!0,p.delete(ee)),w.needsAnimating[ee]=!0;const de=e.getValue(ee);de&&(de.liveStyle=!1)};for(const ee in G){const de=$[ee],oe=W[ee];if(f.hasOwnProperty(ee))continue;let R=!1;gl(de)&&gl(oe)?R=!qm(de,oe):R=de!==oe,R?de!=null?q(ee):p.add(ee):de!==void 0&&p.has(ee)?q(ee):w.protectedKeys[ee]=!0}w.prevProp=x,w.prevResolvedValues=$,w.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(z=!1);const Y=C&&H;z&&(!Y||V)&&d.push(...L.map(ee=>{const de={type:y};if(typeof ee=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,R=vi(oe,ee);if(oe.enteringChildren&&R){const{delayChildren:Ce}=R.transition||{};de.delay=jm(oe.enteringChildren,e,Ce)}}return{animation:ee,options:de}}))}if(p.size){const E={};if(typeof l.initial!="boolean"){const y=vi(e,Array.isArray(l.initial)?l.initial[0]:l.initial);y&&y.transition&&(E.transition=y.transition)}p.forEach(y=>{const w=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),E[y]=w??null}),d.push({animation:E})}let v=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Zd(),r=!0}}}function iT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qm(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zd(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class Dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class aT extends Dr{constructor(t){super(t),t.animationState||(t.animationState=rT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sT=0;class oT extends Dr{constructor(){super(...arguments),this.id=sT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const uT={animation:{Feature:aT},exit:{Feature:oT}};function Ba(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qa(e){return{point:{x:e.pageX,y:e.pageY}}}const lT=e=>t=>P0(t)&&e(t,Qa(t));function pa(e,t,n,r){return Ba(e,t,lT(n),r)}const Wm=1e-4,cT=1-Wm,dT=1+Wm,Ym=.01,hT=0-Ym,fT=0+Ym;function Yt(e){return e.max-e.min}function pT(e,t,n){return Math.abs(e-t)<=n}function Jd(e,t,n,r=.5){e.origin=r,e.originPoint=mt(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=mt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cT&&e.scale<=dT||isNaN(e.scale))&&(e.scale=1),(e.translate>=hT&&e.translate<=fT||isNaN(e.translate))&&(e.translate=0)}function ma(e,t,n,r){Jd(e.x,t.x,n.x,r?r.originX:void 0),Jd(e.y,t.y,n.y,r?r.originY:void 0)}function eh(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function mT(e,t,n){eh(e.x,t.x,n.x),eh(e.y,t.y,n.y)}function th(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function ga(e,t,n){th(e.x,t.x,n.x),th(e.y,t.y,n.y)}function yn(e){return[e("x"),e("y")]}const Gm=({current:e})=>e?e.ownerDocument.defaultView:null,nh=(e,t)=>Math.abs(e-t);function gT(e,t){const n=nh(e.x,t.x),r=nh(e.y,t.y);return Math.sqrt(n**2+r**2)}class Xm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=tu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=gT(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!b)return;const{point:v}=p,{timestamp:E}=Ft;this.history.push({...v,timestamp:E});const{onStart:y,onMove:w}=this.handlers;f||(y&&y(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=eu(f,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=tu(p.type==="pointercancel"?this.lastMoveEventInfo:eu(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,y),v&&v(p,y)},!P0(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=Qa(t),u=eu(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=Ft;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,tu(u,this.history)),this.removeListeners=Ga(pa(this.contextWindow,"pointermove",this.handlePointerMove),pa(this.contextWindow,"pointerup",this.handlePointerUp),pa(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function eu(e,t){return t?{point:t(e.point)}:e}function rh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tu({point:e},t){return{point:e,delta:rh(e,Km(t)),offset:rh(e,bT(t)),velocity:yT(t,.1)}}function bT(e){return e[0]}function Km(e){return e[e.length-1]}function yT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Km(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vn(t)));)n--;if(!r)return{x:0,y:0};const a=jn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?mt(n,e,r.max):Math.min(e,n)),e}function ih(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TT(e,{top:t,left:n,bottom:r,right:i}){return{x:ih(e.x,n,i),y:ih(e.y,t,r)}}function ah(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Da(t.min,t.max-r,e.min):r>i&&(n=Da(e.min,e.max-i,t.min)),ur(0,1,n)}function ST(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vl=.35;function wT(e=vl){return e===!1?e=0:e===!0&&(e=vl),{x:sh(e,"left","right"),y:sh(e,"top","bottom")}}function sh(e,t,n){return{min:oh(e,t),max:oh(e,n)}}function oh(e,t){return typeof e=="number"?e:e[t]||0}const AT=new WeakMap;class CT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qa(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:b,onDragStart:v}=this.getProps();if(f&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F9(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(y=>{let w=this.getAxisMotionValue(y).get()||0;if(qn.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const I=x.layout.layoutBox[y];I&&(w=Yt(I)*(parseFloat(w)/100))}}this.originPoint[y]=w}),v&<.postRender(()=>v(d,p)),bl(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},o=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:v,onDrag:E}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=p;if(b&&this.currentDirection===null){this.currentDirection=kT(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),E&&E(d,p)},u=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>yn(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Xm(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Gm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&<.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ts(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=vT(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&pi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=TT(r.layoutBox,t):this.constraints=!1,this.elastic=wT(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ST(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!pi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Iv(r,i.root,this.visualElement.getTransformPagePoint());let s=xT(i.layout.layoutBox,a);if(n){const o=n(Av(s));this.hasMutatedConstraints=!!o,o&&(s=Pm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=yn(c=>{if(!Ts(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return bl(this.visualElement,t),r.start(V0(t,r,0,n,this.visualElement,!1))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){yn(n=>{const{drag:r}=this.getProps();if(!Ts(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-mt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=ET({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yn(s=>{if(!Ts(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(mt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;AT.set(this.visualElement,this);const t=this.visualElement.current,n=pa(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();pi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lt.read(r);const s=Ba(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(yn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=vl,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ts(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IT extends Dr{constructor(t){super(t),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new CT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}unmount(){this.removeGroupControls(),this.removeListeners()}}const uh=e=>(t,n)=>{e&<.postRender(()=>e(t,n))};class NT extends Dr{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(t){this.session=new Xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:uh(t),onStart:uh(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&<.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=pa(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function RT(e=!0){const t=P.useContext(B0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=P.useId();P.useEffect(()=>{if(e)return i(a)},[e]);const s=P.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Us={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ki={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ae.test(e))e=parseFloat(e);else return e;const n=lh(e,t.target.x),r=lh(e,t.target.y);return`${n}% ${r}%`}},MT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=kr.parse(e);if(i.length>5)return r;const a=kr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=mt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let nu=!1;class DT extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Y9(PT),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),nu&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Us.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,nu=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||lt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),D0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;nu=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Qm(e){const[t,n]=RT(),r=P.useContext(jp);return k.jsx(DT,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(Mm),isPresent:t,safeToRemove:n})}const PT={borderRadius:{...Ki,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ki,borderTopRightRadius:Ki,borderBottomLeftRadius:Ki,borderBottomRightRadius:Ki,boxShadow:MT};function LT(e,t,n){const r=zt(e)?e:ki(e);return r.start(V0("",r,t,n)),r.animation}const OT=(e,t)=>e.depth-t.depth;class _T{constructor(){this.children=[],this.isDirty=!1}add(t){d0(this.children,t),this.isDirty=!0}remove(t){h0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OT),this.isDirty=!1,this.children.forEach(t)}}function BT(e,t){const n=tn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return lt.setup(r,!0),()=>Cr(r)}const Zm=["TopLeft","TopRight","BottomLeft","BottomRight"],FT=Zm.length,ch=e=>typeof e=="string"?parseFloat(e):e,dh=e=>typeof e=="number"||Ae.test(e);function HT(e,t,n,r,i,a){i?(e.opacity=mt(0,n.opacity??1,zT(r)),e.opacityExit=mt(t.opacity??1,0,UT(r))):a&&(e.opacity=mt(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Da(e,t,r))}function fh(e,t){e.min=t.min,e.max=t.max}function bn(e,t){fh(e.x,t.x),fh(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mh(e,t,n,r,i){return e-=t,e=to(e,1/n,r),i!==void 0&&(e=to(e,1/i,r)),e}function VT(e,t=0,n=1,r=.5,i,a=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=mt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=mt(a.min,a.max,r);e===a&&(o-=t),e.min=mh(e.min,t,n,o,i),e.max=mh(e.max,t,n,o,i)}function gh(e,t,[n,r,i],a,s){VT(e,t[n],t[r],t[i],t.scale,a,s)}const jT=["x","scaleX","originX"],qT=["y","scaleY","originY"];function bh(e,t,n,r){gh(e.x,t,jT,n?n.x:void 0,r?r.x:void 0),gh(e.y,t,qT,n?n.y:void 0,r?r.y:void 0)}function yh(e){return e.translate===0&&e.scale===1}function e2(e){return yh(e.x)&&yh(e.y)}function vh(e,t){return e.min===t.min&&e.max===t.max}function $T(e,t){return vh(e.x,t.x)&&vh(e.y,t.y)}function Th(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function t2(e,t){return Th(e.x,t.x)&&Th(e.y,t.y)}function xh(e){return Yt(e.x)/Yt(e.y)}function Eh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class WT{constructor(){this.members=[]}add(t){d0(this.members,t),t.scheduleRender()}remove(t){if(h0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function YT(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const ru=["","X","Y","Z"],GT=1e3;let XT=0;function iu(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function n2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Um(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&n2(r)}function r2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=XT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZT),this.nodes.forEach(nx),this.nodes.forEach(rx),this.nodes.forEach(JT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;lt.read(()=>{d=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=BT(p,250),Us.hasAnimatedSinceResize&&(Us.hasAnimatedSinceResize=!1,this.nodes.forEach(Ah)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||ux,{onLayoutAnimationStart:v,onLayoutAnimationComplete:E}=l.getProps(),y=!this.targetLayout||!t2(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...R0(b,"layout"),onPlay:v,onComplete:E};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,w)}else d||Ah(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ix),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&n2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const M=I/1e3;Ch(d.x,s.x,M),Ch(d.y,s.y,M),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ga(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sx(this.relativeTarget,this.relativeTargetOrigin,p,M),x&&$T(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ct()),bn(x,this.relativeTarget)),v&&(this.animationValues=c,HT(c,l,this.latestValues,M,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{Us.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ki(0)),this.currentAnimation=LT(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(GT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&i2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Ct();const d=Yt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const p=Yt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}bn(o,u),gi(o,c),ma(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new WT),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&iu("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(Sh),this.root.sharedNodes.clear()}}}function KT(e){e.updateLayout()}function QT(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?yn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(d);d.min=n[c].min,d.max=d.min+p}):i2(i,t.layoutBox,n)&&yn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const s=bi();ma(s,n,t.layoutBox);const o=bi();a?ma(o,e.applyTransform(r,!0),t.measuredBox):ma(o,n,t.layoutBox);const u=!e2(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=Ct();ga(f,t.layoutBox,d.layoutBox);const b=Ct();ga(b,n,p.layoutBox),t2(f,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ZT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function JT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ex(e){e.clearSnapshot()}function Sh(e){e.clearMeasurements()}function wh(e){e.isLayoutDirty=!1}function tx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ah(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nx(e){e.resolveTargetDelta()}function rx(e){e.calcProjection()}function ix(e){e.resetSkewAndRotation()}function ax(e){e.removeLeadSnapshot()}function Ch(e,t,n){e.translate=mt(t.translate,0,n),e.scale=mt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kh(e,t,n,r){e.min=mt(t.min,n.min,r),e.max=mt(t.max,n.max,r)}function sx(e,t,n,r){kh(e.x,t.x,n.x,r),kh(e.y,t.y,n.y,r)}function ox(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ux={duration:.45,ease:[.4,0,.1,1]},Ih=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Nh=Ih("applewebkit/")&&!Ih("chrome/")?Math.round:Sn;function Rh(e){e.min=Nh(e.min),e.max=Nh(e.max)}function lx(e){Rh(e.x),Rh(e.y)}function i2(e,t,n){return e==="position"||e==="preserve-aspect"&&!pT(xh(t),xh(n),.2)}function cx(e){return e!==e.root&&e.scroll?.wasRoot}const dx=r2({attachResizeListener:(e,t)=>Ba(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),au={current:void 0},a2=r2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!au.current){const e=new dx({});e.mount(window),e.setOptions({layoutScroll:!0}),au.current=e}return au.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hx={pan:{Feature:NT},drag:{Feature:IT,ProjectionNode:a2,MeasureLayout:Qm}};function Mh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&<.postRender(()=>a(t,Qa(t)))}class fx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=H9(t,(n,r)=>(Mh(this.node,r,"Start"),i=>Mh(this.node,i,"End"))))}unmount(){}}class px extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ga(Ba(this.node.current,"focus",()=>this.onFocus()),Ba(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&<.postRender(()=>a(t,Qa(t)))}class mx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=j9(t,(n,r)=>(Dh(this.node,r,"Start"),(i,{success:a})=>Dh(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Tl=new WeakMap,su=new WeakMap,gx=e=>{const t=Tl.get(e.target);t&&t(e)},bx=e=>{e.forEach(gx)};function yx({root:e,...t}){const n=e||document;su.has(n)||su.set(n,{});const r=su.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bx,{root:e,...t})),r[i]}function vx(e,t,n){const r=yx(t);return Tl.set(e,n),r.observe(e),()=>{Tl.delete(e),r.unobserve(e)}}const Tx={some:0,all:1};class xx extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Tx[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=l?c:d;p&&p(u)};return vx(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ex(t,n))&&this.startObserver()}unmount(){}}function Ex({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sx={inView:{Feature:xx},tap:{Feature:mx},focus:{Feature:px},hover:{Feature:fx}},wx={layout:{ProjectionNode:a2,MeasureLayout:Qm}},Ax={...uT,...Sx,...hx,...wx};function Cx(e,t){return xv(e,t,Ax,Bv)}const j0=Cx("div"),kx=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflowX:"hidden",overflowY:"auto"}}),Ix=ue(mp)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:0)}}),Nx=ue(Hb)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",gap:t(1),backgroundColor:"transparent",padding:t(2),overflow:"visible"}}),Rx=ue(Vb)(({theme:e})=>({color:"inherit",fontSize:"1.5rem",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center"})),Mx=ue(Wb)(({theme:e})=>({position:"relative",display:"block",height:"100%"})),Dx=ue(j0)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),Px={waiting:"info",available:"success",failed:"error"},Lx={waiting:N8,available:b8,failed:j1},Ox=ue(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",width:"1.5rem",height:"3.25rem",overflow:"hidden"}}),_x=({animate:e})=>k.jsx(Ox,{children:k.jsx("svg",{style:{position:"absolute",top:0,left:"50%",transform:"translateX(-50%)"},width:2,height:256,viewBox:"0 0 2 256",fill:"none",children:k.jsx("line",{x1:"1",y1:"0",x2:"1",y2:256,stroke:"#9B9B9B",strokeWidth:"2",strokeDasharray:"4",children:e&&k.jsx("animate",{attributeName:"stroke-dashoffset",from:256,to:"0",dur:`${256/32}s`,repeatCount:"indefinite"})})})}),Ph=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=qa(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[Px[r]],l=r==="failed"?.2:void 0,c=Lx[r];return k.jsxs(Nx,{component:e==="list"?mo:Ar,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,height:e==="menu"?"2.5rem":void 0},children:[k.jsx(Rx,{children:k.jsx(S8,{})}),k.jsx(Mx,{children:t&&k.jsx(Xe,{sx:e==="menu"?{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-50%)"}:void 0,children:k.jsxs(Ge,{variant:"body1",sx:{fontWeight:500},children:[i," ",a,"GB"]})})||k.jsx(F7,{width:"8rem",height:"1.25rem"})}),t&&k.jsxs(Dx,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&k.jsx(c,{size:18}),e==="menu"&&k.jsx(B8,{size:10})]})]})},xs=({variant:e="list",...t})=>{const[{clusterInfo:{initNodesNumber:n},nodeInfoList:r}]=$a(),[{status:i}]=Zl(),{length:a}=r;return k.jsx(kx,{...t,children:k.jsxs(Ix,{variant:e,children:[r.map((s,o)=>[e==="menu"&&o>0&&k.jsx(_x,{animate:i==="generating"},`${s.id}-dash`),k.jsx(Ph,{variant:e,node:s},s.id)]),n>a&&Array.from({length:n-a}).map((s,o)=>k.jsx(Ph,{variant:e},o))]})})},Bx={small:1,medium:1.25,large:2.25},Fx=ue(j0)(({theme:e,size:t})=>{const n=`${Bx[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),ou=ue(j0)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),uu={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},Hx={staggerChildren:.25,staggerDirection:1},zx=P.forwardRef(({size:e="medium"},t)=>k.jsxs(Fx,{ref:t,size:e,animate:"pulse",transition:Hx,children:[k.jsx(ou,{variants:uu},1),k.jsx(ou,{variants:uu},2),k.jsx(ou,{variants:uu},3)]}));function Lh(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function s2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ux=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jx={};function Oh(e,t){return(jx.jsx?Vx:Ux).test(e)}const qx=/[ \t\n\f\r]/g;function $x(e){return typeof e=="object"?e.type==="text"?_h(e.value):!1:_h(e)}function _h(e){return e.replace(qx,"")===""}let Za=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Za.prototype.normal={};Za.prototype.property={};Za.prototype.space=void 0;function o2(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Za(n,r,t)}function Fa(e){return e.toLowerCase()}let an=class{constructor(t,n){this.attribute=n,this.property=t}};an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let Wx=0;const Le=ti(),Mt=ti(),xl=ti(),ae=ti(),tt=ti(),Ti=ti(),un=ti();function ti(){return 2**++Wx}const El=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Mt,commaOrSpaceSeparated:un,commaSeparated:Ti,number:ae,overloadedBoolean:xl,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),lu=Object.keys(El);let q0=class extends an{constructor(t,n,r,i){let a=-1;if(super(t,n),Bh(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Qx.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Fh,Jx);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Fh.test(a)){let s=a.replace(Kx,Zx);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=q0}return new i(r,t)}function Zx(e){return"-"+e.toLowerCase()}function Jx(e){return e.charAt(1).toUpperCase()}const Co=o2([u2,Yx,d2,h2,f2],"html"),Bi=o2([u2,Gx,d2,h2,f2],"svg");function Hh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function p2(e){return e.join(" ").trim()}var oi={},cu,zh;function eE(){if(zh)return cu;zh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` -`,l="/",c="*",d="",p="comment",f="declaration";cu=function(v,E){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];E=E||{};var y=1,w=1;function x(G){var q=G.match(t);q&&(y+=q.length);var Y=G.lastIndexOf(u);w=~Y?G.length-Y:w+G.length}function I(){var G={line:y,column:w};return function(q){return q.position=new M(G),z(),q}}function M(G){this.start=G,this.end={line:y,column:w},this.source=E.source}M.prototype.content=v;function C(G){var q=new Error(E.source+":"+y+":"+w+": "+G);if(q.reason=G,q.filename=E.source,q.line=y,q.column=w,q.source=v,!E.silent)throw q}function H(G){var q=G.exec(v);if(q){var Y=q[0];return x(Y),v=v.slice(Y.length),q}}function z(){H(n)}function V(G){var q;for(G=G||[];q=L();)q!==!1&&G.push(q);return G}function L(){var G=I();if(!(l!=v.charAt(0)||c!=v.charAt(1))){for(var q=2;d!=v.charAt(q)&&(c!=v.charAt(q)||l!=v.charAt(q+1));)++q;if(q+=2,d===v.charAt(q-1))return C("End of comment missing");var Y=v.slice(2,q-2);return w+=2,x(Y),v=v.slice(q),w+=2,G({type:p,comment:Y})}}function $(){var G=I(),q=H(r);if(q){if(L(),!H(i))return C("property missing ':'");var Y=H(a),Q=G({type:f,property:b(q[0].replace(e,d)),value:Y?b(Y[0].replace(e,d)):d});return H(s),Q}}function W(){var G=[];V(G);for(var q;q=$();)q!==!1&&(G.push(q),V(G));return G}return z(),W()};function b(v){return v?v.replace(o,d):d}return cu}var Uh;function tE(){if(Uh)return oi;Uh=1;var e=oi&&oi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=n;var t=e(eE());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return oi}var Qi={},Vh;function nE(){if(Vh)return Qi;Vh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Qi.camelCase=u,Qi}var Zi,jh;function rE(){if(jh)return Zi;jh=1;var e=Zi&&Zi.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(tE()),n=nE();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Zi=r,Zi}var iE=rE();const aE=W1(iE),ko=m2("end"),Gn=m2("start");function m2(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 g2(e){const t=Gn(e),n=ko(e);if(t&&n)return{start:t,end:n}}function ba(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qh(e.position):"start"in e||"end"in e?qh(e):"line"in e||"column"in e?Sl(e):""}function Sl(e){return $h(e&&e.line)+":"+$h(e&&e.column)}function qh(e){return Sl(e&&e.start)+"-"+Sl(e&&e.end)}function $h(e){return e&&typeof e=="number"?e:1}class jt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=ba(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}jt.prototype.file="";jt.prototype.name="";jt.prototype.reason="";jt.prototype.message="";jt.prototype.stack="";jt.prototype.column=void 0;jt.prototype.line=void 0;jt.prototype.ancestors=void 0;jt.prototype.cause=void 0;jt.prototype.fatal=void 0;jt.prototype.place=void 0;jt.prototype.ruleId=void 0;jt.prototype.source=void 0;const W0={}.hasOwnProperty,sE=new Map,oE=/[A-Z]/g,uE=new Set(["table","tbody","thead","tfoot","tr"]),lE=new Set(["td","th"]),b2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cE(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=yE(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=bE(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Bi:Co,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=y2(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function y2(e,t,n){if(t.type==="element")return dE(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hE(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return pE(e,t,n);if(t.type==="mdxjsEsm")return fE(e,t);if(t.type==="root")return mE(e,t,n);if(t.type==="text")return gE(e,t)}function dE(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Bi,e.schema=i),e.ancestors.push(t);const a=T2(e,t.tagName,!1),s=vE(e,t);let o=G0(e,t);return uE.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!$x(u):!0})),v2(e,s,a,t),Y0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function hE(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)}Ha(e,t.position)}function fE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ha(e,t.position)}function pE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Bi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:T2(e,t.name,!0),s=TE(e,t),o=G0(e,t);return v2(e,s,a,t),Y0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function mE(e,t,n){const r={};return Y0(r,G0(e,t)),e.create(t,e.Fragment,r,n)}function gE(e,t){return t.value}function v2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Y0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bE(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function yE(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Gn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function vE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&W0.call(t.properties,i)){const a=xE(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&lE.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function TE(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ha(e,t.position);else{const i=r.name;let a;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,a=e.evaluater.evaluateExpression(o.expression)}else Ha(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function G0(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sE;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(hn(e,e.length,0,t),e):t}const Gh={}.hasOwnProperty;function E2(e){const t={};let n=-1;for(;++n13&&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 Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=Pr(/[A-Za-z]/),Ut=Pr(/[\dA-Za-z]/),RE=Pr(/[#-'*+\--9=?A-Z^-~]/);function no(e){return e!==null&&(e<32||e===127)}const wl=Pr(/\d/),ME=Pr(/[\dA-Fa-f]/),DE=Pr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Io=Pr(new RegExp("\\p{P}|\\p{S}","u")),Jr=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Fi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ze(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ue(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ue(u)&&a++s))return;const H=t.events.length;let z=H,V,L;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(V){L=t.events[z][1].end;break}V=!0}for(y(r),C=H;Cx;){const M=n[I];t.containerState=M[1],M[0].exit.call(t,e)}n.length=x}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BE(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ni(e){if(e===null||Ze(e)||Jr(e))return 1;if(Io(e))return 2}function No(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Kh(d,-u),Kh(p,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=vn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=vn(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=vn(l,No(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=vn(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=vn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,hn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Ue(C)?ze(e,w,"linePrefix",a+1)(C):w(C)}function w(C){return C===null||fe(C)?e.check(Qh,v,I)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||fe(C)?(e.exit("codeFlowValue"),w(C)):(e.consume(C),x)}function I(C){return e.exit("codeFenced"),t(C)}function M(C,H,z){let V=0;return L;function L(Y){return C.enter("lineEnding"),C.consume(Y),C.exit("lineEnding"),$}function $(Y){return C.enter("codeFencedFence"),Ue(Y)?ze(C,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):W(Y)}function W(Y){return Y===o?(C.enter("codeFencedFenceSequence"),G(Y)):z(Y)}function G(Y){return Y===o?(V++,C.consume(Y),G):V>=s?(C.exit("codeFencedFenceSequence"),Ue(Y)?ze(C,q,"whitespace")(Y):q(Y)):z(Y)}function q(Y){return Y===null||fe(Y)?(C.exit("codeFencedFence"),H(Y)):z(Y)}}}function XE(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const hu={name:"codeIndented",tokenize:QE},KE={partial:!0,tokenize:ZE};function QE(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):fe(l)?e.attempt(KE,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||fe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function ZE(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ze(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?i(s):n(s)}}const JE={name:"codeText",previous:tS,resolve:eS,tokenize:nS};function eS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=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 tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ji(this.left,r),a.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),Ji(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ji(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=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function I2(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||no(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||fe(y)?n(y):(e.consume(y),y===92?b:f)}function b(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function v(y){return!c&&(y===null||y===41||Ze(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):c999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||fe(f)||o++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!Ue(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,d):d(f)}}function R2(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,u):n(p)}function u(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),u(s)):p===null?n(p):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ze(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||fe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function ya(e,t){let n;return r;function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ue(i)?ze(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const cS={name:"definition",tokenize:hS},dS={partial:!0,tokenize:fS};function hS(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return N2.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ze(f)?ya(e,l)(f):l(f)}function l(f){return I2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(dS,d,d)(f)}function d(f){return Ue(f)?ze(e,p,"whitespace")(f):p(f)}function p(f){return f===null||fe(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function fS(e,t,n){return r;function r(o){return Ze(o)?ya(e,i)(o):n(o)}function i(o){return R2(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ue(o)?ze(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const pS={name:"hardBreakEscape",tokenize:mS};function mS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const gS={name:"headingAtx",resolve:bS,tokenize:yS};function bS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},hn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yS(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ze(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ue(c)?ze(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ze(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const vS=["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"],Jh=["pre","script","style","textarea"],TS={concrete:!0,name:"htmlFlow",resolveTo:SS,tokenize:wS},xS={partial:!0,tokenize:CS},ES={partial:!0,tokenize:AS};function SS(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 wS(e,t,n){const r=this;let i,a,s,o,u;return l;function l(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,r.interrupt?t:R):Wt(B)?(e.consume(B),s=String.fromCharCode(B),E):n(B)}function p(B){return B===45?(e.consume(B),i=2,f):B===91?(e.consume(B),i=5,o=0,b):Wt(B)?(e.consume(B),i=4,r.interrupt?t:R):n(B)}function f(B){return B===45?(e.consume(B),r.interrupt?t:R):n(B)}function b(B){const xe="CDATA[";return B===xe.charCodeAt(o++)?(e.consume(B),o===xe.length?r.interrupt?t:W:b):n(B)}function v(B){return Wt(B)?(e.consume(B),s=String.fromCharCode(B),E):n(B)}function E(B){if(B===null||B===47||B===62||Ze(B)){const xe=B===47,Ie=s.toLowerCase();return!xe&&!a&&Jh.includes(Ie)?(i=1,r.interrupt?t(B):W(B)):vS.includes(s.toLowerCase())?(i=6,xe?(e.consume(B),y):r.interrupt?t(B):W(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?w(B):x(B))}return B===45||Ut(B)?(e.consume(B),s+=String.fromCharCode(B),E):n(B)}function y(B){return B===62?(e.consume(B),r.interrupt?t:W):n(B)}function w(B){return Ue(B)?(e.consume(B),w):L(B)}function x(B){return B===47?(e.consume(B),L):B===58||B===95||Wt(B)?(e.consume(B),I):Ue(B)?(e.consume(B),x):L(B)}function I(B){return B===45||B===46||B===58||B===95||Ut(B)?(e.consume(B),I):M(B)}function M(B){return B===61?(e.consume(B),C):Ue(B)?(e.consume(B),M):x(B)}function C(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),u=B,H):Ue(B)?(e.consume(B),C):z(B)}function H(B){return B===u?(e.consume(B),u=null,V):B===null||fe(B)?n(B):(e.consume(B),H)}function z(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Ze(B)?M(B):(e.consume(B),z)}function V(B){return B===47||B===62||Ue(B)?x(B):n(B)}function L(B){return B===62?(e.consume(B),$):n(B)}function $(B){return B===null||fe(B)?W(B):Ue(B)?(e.consume(B),$):n(B)}function W(B){return B===45&&i===2?(e.consume(B),Q):B===60&&i===1?(e.consume(B),ee):B===62&&i===4?(e.consume(B),Ce):B===63&&i===3?(e.consume(B),R):B===93&&i===5?(e.consume(B),oe):fe(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xS,ve,G)(B)):B===null||fe(B)?(e.exit("htmlFlowData"),G(B)):(e.consume(B),W)}function G(B){return e.check(ES,q,ve)(B)}function q(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Y}function Y(B){return B===null||fe(B)?G(B):(e.enter("htmlFlowData"),W(B))}function Q(B){return B===45?(e.consume(B),R):W(B)}function ee(B){return B===47?(e.consume(B),s="",de):W(B)}function de(B){if(B===62){const xe=s.toLowerCase();return Jh.includes(xe)?(e.consume(B),Ce):W(B)}return Wt(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),de):W(B)}function oe(B){return B===93?(e.consume(B),R):W(B)}function R(B){return B===62?(e.consume(B),Ce):B===45&&i===2?(e.consume(B),R):W(B)}function Ce(B){return B===null||fe(B)?(e.exit("htmlFlowData"),ve(B)):(e.consume(B),Ce)}function ve(B){return e.exit("htmlFlow"),t(B)}}function AS(e,t,n){const r=this;return i;function i(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function CS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ja,t,n)}}const kS={name:"htmlText",tokenize:IS};function IS(e,t,n){const r=this;let i,a,s;return o;function o(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),u}function u(R){return R===33?(e.consume(R),l):R===47?(e.consume(R),M):R===63?(e.consume(R),x):Wt(R)?(e.consume(R),z):n(R)}function l(R){return R===45?(e.consume(R),c):R===91?(e.consume(R),a=0,b):Wt(R)?(e.consume(R),w):n(R)}function c(R){return R===45?(e.consume(R),f):n(R)}function d(R){return R===null?n(R):R===45?(e.consume(R),p):fe(R)?(s=d,ee(R)):(e.consume(R),d)}function p(R){return R===45?(e.consume(R),f):d(R)}function f(R){return R===62?Q(R):R===45?p(R):d(R)}function b(R){const Ce="CDATA[";return R===Ce.charCodeAt(a++)?(e.consume(R),a===Ce.length?v:b):n(R)}function v(R){return R===null?n(R):R===93?(e.consume(R),E):fe(R)?(s=v,ee(R)):(e.consume(R),v)}function E(R){return R===93?(e.consume(R),y):v(R)}function y(R){return R===62?Q(R):R===93?(e.consume(R),y):v(R)}function w(R){return R===null||R===62?Q(R):fe(R)?(s=w,ee(R)):(e.consume(R),w)}function x(R){return R===null?n(R):R===63?(e.consume(R),I):fe(R)?(s=x,ee(R)):(e.consume(R),x)}function I(R){return R===62?Q(R):x(R)}function M(R){return Wt(R)?(e.consume(R),C):n(R)}function C(R){return R===45||Ut(R)?(e.consume(R),C):H(R)}function H(R){return fe(R)?(s=H,ee(R)):Ue(R)?(e.consume(R),H):Q(R)}function z(R){return R===45||Ut(R)?(e.consume(R),z):R===47||R===62||Ze(R)?V(R):n(R)}function V(R){return R===47?(e.consume(R),Q):R===58||R===95||Wt(R)?(e.consume(R),L):fe(R)?(s=V,ee(R)):Ue(R)?(e.consume(R),V):Q(R)}function L(R){return R===45||R===46||R===58||R===95||Ut(R)?(e.consume(R),L):$(R)}function $(R){return R===61?(e.consume(R),W):fe(R)?(s=$,ee(R)):Ue(R)?(e.consume(R),$):V(R)}function W(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),i=R,G):fe(R)?(s=W,ee(R)):Ue(R)?(e.consume(R),W):(e.consume(R),q)}function G(R){return R===i?(e.consume(R),i=void 0,Y):R===null?n(R):fe(R)?(s=G,ee(R)):(e.consume(R),G)}function q(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||Ze(R)?V(R):(e.consume(R),q)}function Y(R){return R===47||R===62||Ze(R)?V(R):n(R)}function Q(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function ee(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),de}function de(R){return Ue(R)?ze(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):oe(R)}function oe(R){return e.enter("htmlTextData"),s(R)}}const Q0={name:"labelEnd",resolveAll:DS,resolveTo:PS,tokenize:LS},NS={tokenize:OS},RS={tokenize:_S},MS={tokenize:BS};function DS(e){let t=-1;const n=[];for(;++t=3&&(l===null||fe(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Ue(l)?ze(e,o,"whitespace")(l):o(l))}}const Jt={continuation:{tokenize:YS},exit:XS,name:"list",tokenize:WS},qS={partial:!0,tokenize:KS},$S={partial:!0,tokenize:GS};function WS(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:wl(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Vs,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return wl(f)&&++s<10?(e.consume(f),u):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ja,r.interrupt?n:c,e.attempt(qS,p,d))}function c(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return Ue(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function YS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ja,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ue(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($S,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(Jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function GS(e,t,n){const r=this;return ze(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function XS(e){e.exit(this.containerState.type)}function KS(e,t,n){const r=this;return ze(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ue(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const ef={name:"setextUnderline",resolveTo:QS,tokenize:ZS};function QS(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function ZS(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Ue(l)?ze(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||fe(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const JS={tokenize:ew};function ew(e){const t=this,n=e.attempt(Ja,r,e.attempt(this.parser.constructs.flowInitial,i,ze(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aS,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tw={resolveAll:D2()},nw=M2("string"),rw=M2("text");function M2(e){return{resolveAll:D2(e==="text"?iw:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function bw(e,t){let n=-1;const r=[];let i;for(;++n{const{open:t,onClose:n=()=>{},titleId:r,title:i,contentId:a,content:s,color:o="primary",titleIconColor:u="warning",titleIcon:l=!0,cancelLabel:c,onCancel:d=()=>{},confirmLabel:p,onConfirm:f=()=>{},submitLabel:b,onSubmitValid:v,onSubmitInvalid:E,handleSubmit:y,secondaryAction:w,...x}=e,I=F8[o],[M,C]=L.useState(!1),H=W=>!(W===!1||typeof W=="object"&&W.closeDialog===!1),z=W=>async(...G)=>{if(!M)try{const q=W(...G);if(q instanceof Promise){C(!0);const Y=await q;C(!1),H(Y)&&n()}else H(q)&&n()}catch(q){C(!1),console.error("Error in dialog action:",q)}};let V;const P=[];c&&P.push({key:"cancel",children:c,color:"secondary",onClick:z(d),loading:M}),p&&P.push({key:"confirm",children:p,color:o,onClick:z(f),loading:M}),b&&(P.push({key:"submit",children:b,type:"submit",loading:M}),y&&v&&(V={onSubmit:W=>{W.preventDefault(),W.stopPropagation(),!M&&(C(!0),y(async(...G)=>{try{const q=await v(...G);C(!1),H(q)&&n()}catch(q){C(!1),console.error("Error in form submission:",q)}},async(...G)=>{try{await E?.(...G)}catch(q){console.error("Error in form validation:",q)}finally{C(!1)}})())}}));const $=()=>{M||n()};return k.jsxs(nb,{open:t,onClose:$,"aria-labelledby":r,"aria-describedby":a,...x,component:V&&"form"||void 0,...V,slotProps:{paper:{sx:{p:1.5}}},children:[k.jsxs(gb,{id:!I&&r||void 0,children:[l==="form"&&k.jsx(Gg,{})||l===!0&&k.jsx(zc,{variant:"circle",color:u,children:k.jsx(I,{})})||k.jsx(zc,{variant:"circle",color:u,children:l})||void 0,!l&&i,k.jsx(Qr,{size:"small",onClick:$,children:k.jsx(j1,{size:"1.25rem"})})]}),k.jsxs(lb,{children:[l&&k.jsx(Ge,{variant:"subtitle1",id:r,sx:{fontSize:"1.125rem",fontWeight:600,mr:"auto"},children:i}),k.jsx(fb,{id:a,children:s})]}),P.length>0&&k.jsxs(sb,{children:[w,P.map(W=>L.createElement(q1,{...W,key:W.key,...P.length===1&&{fullWidth:!0}}))]})]})},sa=(e,t)=>{const[n,r]=L.useState(!1),i=k.jsx(H8,{...e,open:n,onClose:()=>{r(!1),e.onClose?.()}}),a=L.useMemo(()=>({open:()=>r(!0),close:()=>r(!1)}),[]);return[i,a]},z8=()=>k.jsxs("svg",{width:"100",height:"21",viewBox:"0 0 100 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[k.jsx("path",{d:"M25.9027 21C24.2555 21 22.9819 20.6707 22.082 20.012C21.1821 19.3687 20.6482 18.4344 20.4805 17.209H23.7064C23.9352 18.1586 24.6825 18.6335 25.9485 18.6335C26.8789 18.6335 27.5576 18.4037 27.9847 17.9442C28.4118 17.5 28.6253 16.8184 28.6253 15.8993V14.0383C28.3203 14.5897 27.8779 15.0339 27.2984 15.3709C26.7188 15.6926 26.0324 15.8534 25.2393 15.8534C24.2478 15.8534 23.3556 15.6313 22.5624 15.1871C21.7693 14.7276 21.1439 14.0536 20.6864 13.1652C20.2288 12.2768 20 11.2046 20 9.94858C20 8.69256 20.2288 7.62035 20.6864 6.73195C21.1439 5.82823 21.7693 5.15427 22.5624 4.71007C23.3556 4.25055 24.2478 4.02079 25.2393 4.02079C25.9866 4.02079 26.6654 4.18928 27.2755 4.52626C27.8856 4.86324 28.3355 5.29978 28.6253 5.83589V4.36543H31.7826V15.7845C31.7826 17.3928 31.3021 18.6641 30.3412 19.5985C29.3803 20.5328 27.9008 21 25.9027 21ZM25.9256 13.4409C26.7493 13.4409 27.4127 13.1116 27.9161 12.453C28.4194 11.7943 28.6711 10.9519 28.6711 9.9256C28.6711 8.89934 28.4194 8.06455 27.9161 7.42123C27.4127 6.76258 26.7493 6.43326 25.9256 6.43326C25.041 6.43326 24.3699 6.73961 23.9123 7.3523C23.4547 7.96499 23.2259 8.82276 23.2259 9.9256C23.2259 11.0284 23.4547 11.8939 23.9123 12.5219C24.3699 13.1346 25.041 13.4409 25.9256 13.4409Z",fill:"black"}),k.jsx("path",{d:"M33.39 16.1751V4.36543H36.4787V6.91575C36.8905 5.81291 37.4091 5.03939 38.0344 4.59519C38.6598 4.15098 39.5368 3.95952 40.6655 4.02079V6.98468C40.3299 6.95405 40.0783 6.93873 39.9105 6.93873C39.4682 6.93873 39.0487 7 38.6522 7.12254C37.2489 7.59737 36.5473 9.01422 36.5473 11.3731V16.1751H33.39Z",fill:"black"}),k.jsx("path",{d:"M44.1585 16.4967C42.9382 16.4967 41.9316 16.1751 41.1384 15.5317C40.3606 14.8884 39.9716 14 39.9716 12.8665C39.9716 11.9628 40.2157 11.2659 40.7037 10.7757C41.2071 10.2702 41.7714 9.9256 42.3968 9.74179C43.0374 9.55799 43.7619 9.41247 44.5703 9.30525L45.5312 9.19037C46.3396 9.09847 46.9192 8.96061 47.27 8.7768C47.636 8.57768 47.8191 8.20241 47.8191 7.65098C47.8191 7.19147 47.6589 6.83917 47.3386 6.59409C47.0183 6.34902 46.5607 6.22648 45.9659 6.22648C45.3863 6.22648 44.9135 6.34902 44.5474 6.59409C44.1966 6.82385 43.9754 7.14551 43.8839 7.55908H40.4978C40.7266 6.44092 41.3138 5.57549 42.2595 4.9628C43.2204 4.33479 44.4788 4.02079 46.0345 4.02079C49.2986 4.02079 50.9306 5.26149 50.9306 7.74289V13.326C50.9306 14.2451 51.0602 15.1947 51.3195 16.1751H48.208C48.086 15.6083 48.0021 15.1105 47.9563 14.6816C47.6055 15.233 47.1022 15.6772 46.4463 16.0142C45.7905 16.3359 45.0278 16.4967 44.1585 16.4967ZM45.1422 14.1532C45.9354 14.1532 46.576 13.8928 47.0641 13.372C47.5674 12.8512 47.8191 12.1849 47.8191 11.3731V10.2013C47.6055 10.4617 47.3386 10.6608 47.0183 10.7987C46.7133 10.9365 46.2709 11.0514 45.6913 11.1433C44.8372 11.2965 44.2195 11.4803 43.8381 11.6947C43.4568 11.8939 43.2662 12.2538 43.2662 12.7746C43.2662 13.2035 43.4416 13.5405 43.7924 13.7856C44.1432 14.0306 44.5932 14.1532 45.1422 14.1532Z",fill:"black"}),k.jsx("path",{d:"M63.6153 0.0919039V16.1751H60.458V14.7965C60.1682 15.3173 59.7183 15.7385 59.1082 16.0602C58.4981 16.3665 57.7964 16.5197 57.0033 16.5197C56.0119 16.5197 55.112 16.267 54.3036 15.7615C53.5105 15.256 52.8775 14.5361 52.4047 13.6018C51.9471 12.6521 51.7183 11.5416 51.7183 10.2702C51.7183 8.99891 51.9471 7.89606 52.4047 6.96171C52.8775 6.01203 53.5105 5.28446 54.3036 4.77899C55.112 4.27352 56.0119 4.02079 57.0033 4.02079C57.7812 4.02079 58.4752 4.18928 59.0853 4.52626C59.7106 4.84792 60.1682 5.2768 60.458 5.81291V0.0919039H63.6153ZM57.6897 14.0383C58.5438 14.0383 59.2226 13.686 59.7259 12.9814C60.2445 12.2768 60.5038 11.3731 60.5038 10.2702C60.5038 9.1674 60.2445 8.26368 59.7259 7.55908C59.2226 6.85449 58.5438 6.50219 57.6897 6.50219C56.7898 6.50219 56.1034 6.83917 55.6306 7.51313C55.173 8.17177 54.9442 9.09081 54.9442 10.2702C54.9442 11.4497 55.173 12.3764 55.6306 13.0503C56.1034 13.709 56.7898 14.0383 57.6897 14.0383Z",fill:"black"}),k.jsx("path",{d:"M68.4939 3.10175H64.9476V0H68.4939V3.10175ZM68.2879 16.1751H65.1764V4.36543H68.2879V16.1751Z",fill:"black"}),k.jsx("path",{d:"M75.1212 14.0842C76.2194 14.0842 76.9515 13.7396 77.3176 13.0503H80.6121C80.2766 14.1225 79.6207 14.9726 78.6446 15.6007C77.6836 16.2133 76.4939 16.5197 75.0755 16.5197C73.7942 16.5197 72.6808 16.2593 71.7351 15.7385C70.8047 15.2177 70.0879 14.4902 69.5845 13.5558C69.0812 12.6061 68.8295 11.5186 68.8295 10.2932C68.8295 9.09847 69.1041 8.02626 69.6532 7.07659C70.2023 6.1116 70.9344 5.36105 71.8495 4.82495C72.7799 4.28884 73.7942 4.02079 74.8924 4.02079C76.0821 4.02079 77.1269 4.30416 78.0268 4.8709C78.942 5.42232 79.6589 6.24179 80.1774 7.32932C80.696 8.40153 80.9629 9.69584 80.9782 11.2123H72.0555C72.1165 12.0853 72.4291 12.7823 72.9935 13.3031C73.5731 13.8239 74.2823 14.0842 75.1212 14.0842ZM75.0068 6.45624C74.2594 6.45624 73.6112 6.70131 73.0621 7.19147C72.5283 7.68162 72.2003 8.29431 72.0783 9.02954H77.8438C77.7065 8.24836 77.3938 7.62801 76.9058 7.16849C76.4177 6.69365 75.7847 6.45624 75.0068 6.45624Z",fill:"black"}),k.jsx("path",{d:"M81.5786 16.1751V4.36543H84.6444V5.85886C84.9647 5.35339 85.407 4.92451 85.9713 4.57221C86.5357 4.2046 87.2449 4.02079 88.0991 4.02079C89.304 4.02079 90.2421 4.39606 90.9132 5.14661C91.5995 5.89716 91.9427 6.95405 91.9427 8.31729V16.1751H88.7854V8.54705C88.7854 7.21444 88.2135 6.54814 87.0695 6.54814C86.4289 6.54814 85.8798 6.80853 85.4222 7.32932C84.9647 7.83479 84.7359 8.593 84.7359 9.60394V16.1751H81.5786Z",fill:"black"}),k.jsx("path",{d:"M98.1011 16.2899C96.9876 16.2899 96.0801 16.0066 95.3785 15.4398C94.6921 14.8731 94.3489 13.9311 94.3489 12.6138V6.7779H92.3356V4.36543H94.3489V0.873086H97.4147V4.36543H99.7712V6.7779H97.4147V12.0853C97.4147 12.698 97.5291 13.1575 97.7579 13.4639C98.0019 13.7549 98.3985 13.9004 98.9476 13.9004C99.2374 13.9004 99.5882 13.8545 100 13.7626V16.0372C99.5272 16.2057 98.8942 16.2899 98.1011 16.2899Z",fill:"black"}),k.jsx("path",{d:"M3 13H0V16H3V13Z",fill:"black"}),k.jsx("path",{d:"M18 0V2.85011L8.94745 16H6V13.1499L15.0521 0H18Z",fill:"black"})]}),Td=()=>k.jsxs("svg",{width:"26",height:"28",viewBox:"0 0 26 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[k.jsx("path",{d:"M7 19H4V22H7V19Z",fill:"black"}),k.jsx("path",{d:"M22 6V8.85011L12.9475 22H10V19.1499L19.0521 6H22Z",fill:"black"})]}),U8=ue(Ep)(({theme:e,ownerState:t})=>{const{spacing:n,typography:r,palette:i}=e,{variant:a="outlined"}=t;return{height:a==="outlined"?"4rem":"1lh",paddingInline:n(.5),borderRadius:12,"&:hover":{backgroundColor:"action.hover"},[`.${qr.select}:hover`]:{backgroundColor:"transparent"},...a==="text"&&{...r.h3,fontWeight:r.fontWeightMedium,[`.${qr.select}`]:{fontSize:"inherit",fontWeight:"inherit",lineHeight:"inherit",padding:0},"&:hover":{backgroundColor:"transparent"}}}}),V8=ue(c7)(({theme:e})=>({height:"3.25rem",gap:e.spacing(1),borderRadius:10})),j8=ue(Xe)(({theme:e})=>({flexDirection:"row",alignItems:"center",gap:e.spacing(1),padding:e.spacing(1),"&:hover":{backgroundColor:"transparent"},pointerEvents:"none"})),Cp=ue("img")(({theme:e})=>({width:"2.25rem",height:"2.25rem",borderRadius:"0.5rem",border:`1px solid ${e.palette.divider}`,objectFit:"cover"})),kp=ue("span")(({theme:e})=>({...e.typography.subtitle2,fontSize:"0.875rem",lineHeight:"1.125rem",fontWeight:e.typography.fontWeightLight,color:e.palette.text.primary})),Ip=ue("span")(({theme:e})=>({...e.typography.body2,fontSize:"0.75rem",lineHeight:"1rem",fontWeight:e.typography.fontWeightLight,color:e.palette.text.secondary})),q8=e=>k.jsxs(V8,{value:e.name,children:[k.jsx(Cp,{src:e.logoUrl}),k.jsxs(Xe,{gap:.25,children:[k.jsx(kp,{children:e.displayName}),k.jsx(Ip,{children:e.name})]})]},e.name),$8=({variant:e="outlined"})=>{const[{type:t}]=$1(),[{modelName:n,modelInfoList:r,clusterInfo:{status:i}},{setModelName:a}]=$a(),[s,{open:o}]=sa({titleIcon:k.jsx(O8,{}),title:"Switch model",content:k.jsx(Ge,{variant:"body2",color:"text.secondary",children:"The current version of parallax only supports hosting one model at once. Switching the model will terminate your existing chat service. You can restart the current scheduler in your terminal. We will add node rebalancing and dynamic model allocation soon."}),confirmLabel:"Continue"}),u=Si(l=>{if(i!=="idle"){o();return}a(String(l.target.value))});return k.jsxs(k.Fragment,{children:[k.jsx(U8,{ownerState:{variant:e},readOnly:t==="node",input:e==="outlined"?k.jsx(l0,{}):k.jsx(xo,{}),value:n,onChange:u,renderValue:l=>{const c=r.find(d=>d.name===l);return c?e==="outlined"?k.jsxs(j8,{children:[k.jsx(Cp,{src:c.logoUrl}),k.jsxs(Xe,{gap:.25,children:[k.jsx(kp,{children:c.displayName}),k.jsx(Ip,{children:c.name})]})]}):c.name:l},IconComponent:t==="node"?()=>null:void 0,children:r.map(l=>q8(l))}),s]})},W8={"linux/mac":"Linux/MacOS",windows:"Windows"},Y8=ue("div")(({theme:e})=>{const{palette:t,spacing:n}=e;return{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between",alignItems:"center",paddingInline:n(2),paddingBlock:n(1.5),gap:n(1),overflow:"hidden",borderRadius:"0.7rem",backgroundColor:t.background.area}}),xd=()=>{const[{clusterInfo:{nodeJoinCommand:e}}]=$a(),[t,n]=L.useState();L.useEffect(()=>{if(t){const i=setTimeout(()=>{n(void 0)},2e3);return()=>clearTimeout(i)}},[t]);const r=Si(async i=>{await navigator.clipboard.writeText(e[i]),n(i)});return k.jsx(Xe,{gap:1,children:Object.entries(e).map(([i,a],s,o)=>k.jsxs(Xe,{gap:1,children:[o.length>1&&k.jsxs(Ge,{variant:"subtitle2",children:["For ",W8[i]||i,":"]},"label"),k.jsxs(Y8,{children:[k.jsx(Ge,{sx:{flex:1,lineHeight:"1.125rem",whiteSpace:"wrap"},variant:"pre",children:a}),k.jsx(Qr,{sx:{flex:"none",fontSize:"1rem"},size:"em",onClick:()=>r(i),children:t===i&&k.jsx(wp,{})||k.jsx(Ap,{})})]},"command")]},i))})};function d0(e,t){e.indexOf(t)===-1&&e.push(t)}function h0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ur=(e,t,n)=>n>t?t:n{};const lr={},Np=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Rp(e){return typeof e=="object"&&e!==null}const Mp=e=>/^0[^.\s]+$/u.test(e);function p0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Sn=e=>e,G8=(e,t)=>n=>t(e(n)),Ga=(...e)=>e.reduce(G8),Da=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class m0{constructor(){this.subscriptions=[]}add(t){return d0(this.subscriptions,t),()=>h0(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;ae*1e3,jn=e=>e/1e3;function Dp(e,t){return t?e*(1e3/t):0}const Pp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,X8=1e-7,K8=12;function Q8(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Pp(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>X8&&++oQ8(a,0,1,e,n);return a=>a===0||a===1?a:Pp(i(a),t,r)}const Lp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Op=e=>t=>1-e(1-t),_p=Xa(.33,1.53,.69,.99),g0=Op(_p),Bp=Lp(g0),Fp=e=>(e*=2)<1?.5*g0(e):.5*(2-Math.pow(2,-10*(e-1))),b0=e=>1-Math.sin(Math.acos(e)),Hp=Op(b0),zp=Lp(b0),Z8=Xa(.42,0,1,1),J8=Xa(0,0,.58,1),Up=Xa(.42,0,.58,1),ey=e=>Array.isArray(e)&&typeof e[0]!="number",Vp=e=>Array.isArray(e)&&typeof e[0]=="number",ty={linear:Sn,easeIn:Z8,easeInOut:Up,easeOut:J8,circIn:b0,circInOut:zp,circOut:Hp,backIn:g0,backInOut:Bp,backOut:_p,anticipate:Fp},ny=e=>typeof e=="string",Ed=e=>{if(Vp(e)){f0(e.length===4);const[t,n,r,i]=e;return Xa(t,n,r,i)}else if(ny(e))return ty[e];return e},jp=L.createContext({}),qp=L.createContext({strict:!1}),$p=L.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),So=L.createContext({});function wo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Pa(e){return typeof e=="string"||Array.isArray(e)}const y0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],v0=["initial",...y0];function Ao(e){return wo(e.animate)||v0.some(t=>Pa(e[t]))}function Wp(e){return!!(Ao(e)||e.variants)}function ry(e,t){if(Ao(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pa(n)?n:void 0,animate:Pa(r)?r:void 0}}return e.inherit!==!1?t:{}}function iy(e){const{initial:t,animate:n}=ry(e,L.useContext(So));return L.useMemo(()=>({initial:t,animate:n}),[Sd(t),Sd(n)])}function Sd(e){return Array.isArray(e)?e.join(" "):e}const ys=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function ay(e,t){let n=new Set,r=new Set,i=!1,a=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function u(c){s.has(c)&&(l.schedule(c),e()),c(o)}const l={schedule:(c,d=!1,p=!1)=>{const b=p&&i?n:r;return d&&s.add(c),b.has(c)||b.add(c),c},cancel:c=>{r.delete(c),s.delete(c)},process:c=>{if(o=c,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),n.clear(),i=!1,a&&(a=!1,l.process(c))}};return l}const sy=40;function Yp(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=ys.reduce((x,I)=>(x[I]=ay(a),x),{}),{setup:o,read:u,resolveKeyframes:l,preUpdate:c,update:d,preRender:p,render:f,postRender:b}=s,v=()=>{const x=lr.useManualTiming?i.timestamp:performance.now();n=!1,lr.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,sy),1)),i.timestamp=x,i.isProcessing=!0,o.process(i),u.process(i),l.process(i),c.process(i),d.process(i),p.process(i),f.process(i),b.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(v))},E=()=>{n=!0,r=!0,i.isProcessing||e(v)};return{schedule:ys.reduce((x,I)=>{const M=s[I];return x[I]=(C,H=!1,z=!1)=>(n||E(),M.schedule(C,H,z)),x},{}),cancel:x=>{for(let I=0;I(Fs===void 0&&tn.set(Ft.isProcessing||lr.useManualTiming?Ft.timestamp:performance.now()),Fs),set:e=>{Fs=e,queueMicrotask(oy)}},Gp=e=>t=>typeof t=="string"&&t.startsWith(e),T0=Gp("--"),uy=Gp("var(--"),x0=e=>uy(e)?ly.test(e.split("/*")[0].trim()):!1,ly=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Li={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},La={...Li,transform:e=>ur(0,1,e)},vs={...Li,default:1},fa=e=>Math.round(e*1e5)/1e5,E0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cy(e){return e==null}const dy=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&dy.test(n)&&n.startsWith(e)||t&&!cy(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xp=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(E0);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},hy=e=>ur(0,255,e),Go={...Li,transform:e=>Math.round(hy(e))},$r={test:S0("rgb","red"),parse:Xp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Go.transform(e)+", "+Go.transform(t)+", "+Go.transform(n)+", "+fa(La.transform(r))+")"};function fy(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const el={test:S0("#"),parse:fy,transform:$r.transform},Ka=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=Ka("deg"),qn=Ka("%"),Ae=Ka("px"),py=Ka("vh"),my=Ka("vw"),wd={...qn,parse:e=>qn.parse(e)/100,transform:e=>qn.transform(e*100)},fi={test:S0("hsl","hue"),parse:Xp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qn.transform(fa(t))+", "+qn.transform(fa(n))+", "+fa(La.transform(r))+")"},Pt={test:e=>$r.test(e)||el.test(e)||fi.test(e),parse:e=>$r.test(e)?$r.parse(e):fi.test(e)?fi.parse(e):el.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?$r.transform(e):fi.transform(e),getAnimatableNone:e=>{const t=Pt.parse(e);return t.alpha=0,Pt.transform(t)}},gy=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function by(e){return isNaN(e)&&typeof e=="string"&&(e.match(E0)?.length||0)+(e.match(gy)?.length||0)>0}const Kp="number",Qp="color",yy="var",vy="var(",Ad="${}",Ty=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Oa(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(Ty,u=>(Pt.test(u)?(r.color.push(a),i.push(Qp),n.push(Pt.parse(u))):u.startsWith(vy)?(r.var.push(a),i.push(yy),n.push(u)):(r.number.push(a),i.push(Kp),n.push(parseFloat(u))),++a,Ad)).split(Ad);return{values:n,split:o,indexes:r,types:i}}function Zp(e){return Oa(e).values}function Jp(e){const{split:t,types:n}=Oa(e),r=t.length;return i=>{let a="";for(let s=0;stypeof e=="number"?0:Pt.test(e)?Pt.getAnimatableNone(e):e;function Ey(e){const t=Zp(e);return Jp(e)(t.map(xy))}const kr={test:by,parse:Zp,createTransformer:Jp,getAnimatableNone:Ey};function Xo(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Sy({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,u=2*n-o;i=Xo(u,o,e+1/3),a=Xo(u,o,e),s=Xo(u,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function Qs(e,t){return n=>n>0?t:e}const mt=(e,t,n)=>e+(t-e)*n,Ko=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},wy=[el,$r,fi],Ay=e=>wy.find(t=>t.test(e));function Cd(e){const t=Ay(e);if(!t)return!1;let n=t.parse(e);return t===fi&&(n=Sy(n)),n}const kd=(e,t)=>{const n=Cd(e),r=Cd(t);if(!n||!r)return Qs(e,t);const i={...n};return a=>(i.red=Ko(n.red,r.red,a),i.green=Ko(n.green,r.green,a),i.blue=Ko(n.blue,r.blue,a),i.alpha=mt(n.alpha,r.alpha,a),$r.transform(i))},tl=new Set(["none","hidden"]);function Cy(e,t){return tl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ky(e,t){return n=>mt(e,t,n)}function w0(e){return typeof e=="number"?ky:typeof e=="string"?x0(e)?Qs:Pt.test(e)?kd:Ry:Array.isArray(e)?em:typeof e=="object"?Pt.test(e)?kd:Iy:Qs}function em(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>w0(a)(a,t[s]));return a=>{for(let s=0;s{for(const a in r)n[a]=r[a](i);return n}}function Ny(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i{const n=kr.createTransformer(t),r=Oa(e),i=Oa(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tl.has(e)&&!i.values.length||tl.has(t)&&!r.values.length?Cy(e,t):Ga(em(Ny(r,i),i.values),n):Qs(e,t)};function tm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?mt(e,t,n):w0(e)(e,t)}const My=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>lt.update(t,n),stop:()=>Cr(t),now:()=>Ft.isProcessing?Ft.timestamp:tn.now()}},nm=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a=Zs?1/0:t}function Dy(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(A0(r),Zs);return{type:"keyframes",ease:a=>r.next(i*a).value/t,duration:jn(i)}}const Py=5;function rm(e,t,n){const r=Math.max(t-Py,0);return Dp(n-e(r),t-r)}const xt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qo=.001;function Ly({duration:e=xt.duration,bounce:t=xt.bounce,velocity:n=xt.velocity,mass:r=xt.mass}){let i,a,s=1-t;s=ur(xt.minDamping,xt.maxDamping,s),e=ur(xt.minDuration,xt.maxDuration,jn(e)),s<1?(i=l=>{const c=l*s,d=c*e,p=c-n,f=nl(l,s),b=Math.exp(-d);return Qo-p/f*b},a=l=>{const d=l*s*e,p=d*n+n,f=Math.pow(s,2)*Math.pow(l,2)*e,b=Math.exp(-d),v=nl(Math.pow(l,2),s);return(-i(l)+Qo>0?-1:1)*((p-f)*b)/v}):(i=l=>{const c=Math.exp(-l*e),d=(l-n)*e+1;return-Qo+c*d},a=l=>{const c=Math.exp(-l*e),d=(n-l)*(e*e);return c*d});const o=5/e,u=_y(i,a,o);if(e=Vn(e),isNaN(u))return{stiffness:xt.stiffness,damping:xt.damping,duration:e};{const l=Math.pow(u,2)*r;return{stiffness:l,damping:s*2*Math.sqrt(r*l),duration:e}}}const Oy=12;function _y(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function Hy(e){let t={velocity:xt.velocity,stiffness:xt.stiffness,damping:xt.damping,mass:xt.mass,isResolvedFromDuration:!1,...e};if(!Id(e,Fy)&&Id(e,By))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*ur(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xt.mass,stiffness:i,damping:a}}else{const n=Ly(e);t={...t,...n,mass:xt.mass},t.isResolvedFromDuration=!0}return t}function Js(e=xt.visualDuration,t=xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:u,damping:l,mass:c,duration:d,velocity:p,isResolvedFromDuration:f}=Hy({...n,velocity:-jn(n.velocity||0)}),b=p||0,v=l/(2*Math.sqrt(u*c)),E=s-a,y=jn(Math.sqrt(u/c)),w=Math.abs(E)<5;r||(r=w?xt.restSpeed.granular:xt.restSpeed.default),i||(i=w?xt.restDelta.granular:xt.restDelta.default);let x;if(v<1){const M=nl(y,v);x=C=>{const H=Math.exp(-v*y*C);return s-H*((b+v*y*E)/M*Math.sin(M*C)+E*Math.cos(M*C))}}else if(v===1)x=M=>s-Math.exp(-y*M)*(E+(b+y*E)*M);else{const M=y*Math.sqrt(v*v-1);x=C=>{const H=Math.exp(-v*y*C),z=Math.min(M*C,300);return s-H*((b+v*y*E)*Math.sinh(z)+M*E*Math.cosh(z))/M}}const I={calculatedDuration:f&&d||null,next:M=>{const C=x(M);if(f)o.done=M>=d;else{let H=M===0?b:0;v<1&&(H=M===0?Vn(b):rm(x,M,C));const z=Math.abs(H)<=r,V=Math.abs(s-C)<=i;o.done=z&&V}return o.value=o.done?s:C,o},toString:()=>{const M=Math.min(A0(I),Zs),C=nm(H=>I.next(M*H).value,M,30);return M+"ms "+C},toTransition:()=>{}};return I}Js.applyToOptions=e=>{const t=Dy(e,100,Js);return e.ease=t.ease,e.duration=Vn(t.duration),e.type="keyframes",e};function rl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:u,restDelta:l=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=z=>o!==void 0&&zu,b=z=>o===void 0?u:u===void 0||Math.abs(o-z)-v*Math.exp(-z/r),x=z=>y+w(z),I=z=>{const V=w(z),P=x(z);p.done=Math.abs(V)<=l,p.value=p.done?y:P};let M,C;const H=z=>{f(p.value)&&(M=z,C=Js({keyframes:[p.value,b(p.value)],velocity:rm(x,z,p.value),damping:i,stiffness:a,restDelta:l,restSpeed:c}))};return H(0),{calculatedDuration:null,next:z=>{let V=!1;return!C&&M===void 0&&(V=!0,I(z),H(z)),M!==void 0&&z>=M?C.next(z-M):(!V&&I(z),p)}}}function zy(e,t,n){const r=[],i=n||lr.mix||tm,a=e.length-1;for(let s=0;st[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=zy(t,r,i),u=o.length,l=c=>{if(s&&c1)for(;dl(ur(e[0],e[a-1],c)):l}function Vy(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Da(0,t,r);e.push(mt(n,1,i))}}function jy(e){const t=[0];return Vy(t,e.length-1),t}function qy(e,t){return e.map(n=>n*t)}function $y(e,t){return e.map(()=>t||Up).splice(0,e.length-1)}function pa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=ey(r)?r.map(Ed):Ed(r),a={done:!1,value:t[0]},s=qy(n&&n.length===t.length?n:jy(t),e),o=Uy(s,t,{ease:Array.isArray(i)?i:$y(t,i)});return{calculatedDuration:e,next:u=>(a.value=o(u),a.done=u>=e,a)}}const Wy=e=>e!==null;function C0(e,{repeat:t,repeatType:n="loop"},r,i=1){const a=e.filter(Wy),o=i<0||t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Yy={decay:rl,inertia:rl,tween:pa,keyframes:pa,spring:Js};function im(e){typeof e.type=="string"&&(e.type=Yy[e.type])}class k0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Gy=e=>e/100;class I0 extends k0{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;im(t);const{type:n=pa,repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=t;let{keyframes:o}=t;const u=n||pa;u!==pa&&typeof o[0]!="number"&&(this.mixKeyframes=Ga(Gy,tm(o[0],o[1])),o=[0,100]);const l=u({...t,keyframes:o});a==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...o].reverse(),velocity:-s})),l.calculatedDuration===null&&(l.calculatedDuration=A0(l));const{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=l}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:a,mirroredGenerator:s,resolvedDuration:o,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:l=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:f,type:b,onUpdate:v,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-l*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let x=this.currentTime,I=r;if(d){const z=Math.min(this.currentTime,i)/o;let V=Math.floor(z),P=z%1;!P&&z>=1&&(P=1),P===1&&V--,V=Math.min(V,d+1),!!(V%2)&&(p==="reverse"?(P=1-P,f&&(P-=f/o)):p==="mirror"&&(I=s)),x=ur(0,1,P)*o}const M=w?{done:!1,value:c[0]}:I.next(x);a&&(M.value=a(M.value));let{done:C}=M;!w&&u!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const H=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return H&&b!==rl&&(M.value=C0(c,this.options,E,this.speed)),v&&v(M.value),H&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return jn(this.calculatedDuration)}get time(){return jn(this.currentTime)}set time(t){t=Vn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=My,startTime:n}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Xy(e){for(let t=1;te*180/Math.PI,il=e=>{const t=Wr(Math.atan2(e[1],e[0]));return al(t)},Ky={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:il,rotateZ:il,skewX:e=>Wr(Math.atan(e[1])),skewY:e=>Wr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},al=e=>(e=e%360,e<0&&(e+=360),e),Nd=il,Rd=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Md=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Qy={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Rd,scaleY:Md,scale:e=>(Rd(e)+Md(e))/2,rotateX:e=>al(Wr(Math.atan2(e[6],e[5]))),rotateY:e=>al(Wr(Math.atan2(-e[2],e[0]))),rotateZ:Nd,rotate:Nd,skewX:e=>Wr(Math.atan(e[4])),skewY:e=>Wr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sl(e){return e.includes("scale")?1:0}function ol(e,t){if(!e||e==="none")return sl(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Qy,i=n;else{const o=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Ky,i=o}if(!i)return sl(t);const a=r[t],s=i[1].split(",").map(Jy);return typeof a=="function"?a(s):s[a]}const Zy=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ol(n,t)};function Jy(e){return parseFloat(e.trim())}const Oi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],_i=new Set(Oi),Dd=e=>e===Li||e===Ae,e9=new Set(["x","y","z"]),t9=Oi.filter(e=>!e9.has(e));function n9(e){const t=[];return t9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Gr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ol(t,"x"),y:(e,{transform:t})=>ol(t,"y")};Gr.translateX=Gr.x;Gr.translateY=Gr.y;const Xr=new Set;let ul=!1,ll=!1,cl=!1;function am(){if(ll){const e=Array.from(Xr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=n9(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{r.getValue(a)?.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}ll=!1,ul=!1,Xr.forEach(e=>e.complete(cl)),Xr.clear()}function sm(){Xr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ll=!0)})}function r9(){cl=!0,sm(),am(),cl=!1}class N0{constructor(t,n,r,i,a,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Xr.add(this),ul||(ul=!0,lt.read(sm),lt.resolveKeyframes(am))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const a=i?.get(),s=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const o=r.readValue(n,s);o!=null&&(t[0]=o)}t[0]===void 0&&(t[0]=s),i&&a===void 0&&i.set(t[0])}Xy(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xr.delete(this)}cancel(){this.state==="scheduled"&&(Xr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const i9=e=>e.startsWith("--");function a9(e,t,n){i9(t)?e.style.setProperty(t,n):e.style[t]=n}const s9=p0(()=>window.ScrollTimeline!==void 0),o9={};function u9(e,t){const n=p0(e);return()=>o9[t]??n()}const om=u9(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),oa=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Pd={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oa([0,.65,.55,1]),circOut:oa([.55,0,1,.45]),backIn:oa([.31,.01,.66,-.59]),backOut:oa([.33,1.53,.69,.99])};function um(e,t){if(e)return typeof e=="function"?om()?nm(e,t):"ease-out":Vp(e)?oa(e):Array.isArray(e)?e.map(n=>um(n,t)||Pd.easeOut):Pd[e]}function l9(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeOut",times:u}={},l=void 0){const c={[t]:n};u&&(c.offset=u);const d=um(o,i);Array.isArray(d)&&(c.easing=d);const p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"};return l&&(p.pseudoElement=l),e.animate(c,p)}function lm(e){return typeof e=="function"&&"applyToOptions"in e}function c9({type:e,...t}){return lm(e)&&om()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class d9 extends k0{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:a,allowFlatten:s=!1,finalKeyframe:o,onComplete:u}=t;this.isPseudoElement=!!a,this.allowFlatten=s,this.options=t,f0(typeof t.type!="string");const l=c9(t);this.animation=l9(n,r,i,l,a),l.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){const c=C0(i,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(c):a9(n,r,c),this.animation.cancel()}u?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(t))}get time(){return jn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Vn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&s9()?(this.animation.timeline=t,Sn):n(this)}}const cm={anticipate:Fp,backInOut:Bp,circInOut:zp};function h9(e){return e in cm}function f9(e){typeof e.ease=="string"&&h9(e.ease)&&(e.ease=cm[e.ease])}const Ld=10;class p9 extends d9{constructor(t){f9(t),im(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:a,...s}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const o=new I0({...s,autoplay:!1}),u=Vn(this.finishedTime??this.time);n.setWithVelocity(o.sample(u-Ld).value,o.sample(u).value,Ld),o.stop()}}const Od=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(kr.test(e)||e==="0")&&!e.startsWith("url("));function m9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function v9(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=t.owner.getProps();return y9()&&n&&b9.has(n)&&(n!=="transform"||!l)&&!u&&!r&&i!=="mirror"&&a!==0&&s!=="inertia"}const T9=40;class x9 extends k0{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",keyframes:o,name:u,motionValue:l,element:c,...d}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const p={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,name:u,motionValue:l,element:c,...d},f=c?.KeyframeResolver||N0;this.keyframeResolver=new f(o,(b,v,E)=>this.onKeyframesResolved(b,v,p,!E),u,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:a,type:s,velocity:o,delay:u,isHandoff:l,onUpdate:c}=r;this.resolvedAt=tn.now(),g9(t,a,s,o)||((lr.instantAnimations||!u)&&c?.(C0(t,r,n)),t[0]=t[t.length-1],dl(r),r.repeat=0);const p={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>T9?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},f=!l&&v9(p)?new p9({...p,element:p.motionValue.owner.current}):new I0(p);f.finished.then(()=>this.notifyFinished()).catch(Sn),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),r9()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const E9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function S9(e){const t=E9.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function dm(e,t,n=1){const[r,i]=S9(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Np(s)?parseFloat(s):s}return x0(i)?dm(i,t,n+1):i}function R0(e,t){return e?.[t]??e?.default??e}const hm=new Set(["width","height","top","left","right","bottom",...Oi]),w9={test:e=>e==="auto",parse:e=>e},fm=e=>t=>t.test(e),pm=[Li,Ae,qn,vr,my,py,w9],_d=e=>pm.find(fm(e));function A9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Mp(e):!0}const C9=new Set(["brightness","contrast","saturate","opacity"]);function k9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(E0)||[];if(!r)return e;const i=n.replace(r,"");let a=C9.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const I9=/\b([a-z-]*)\(.*?\)/gu,hl={...kr,getAnimatableNone:e=>{const t=e.match(I9);return t?t.map(k9).join(" "):e}},Bd={...Li,transform:Math.round},N9={rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:vs,scaleX:vs,scaleY:vs,scaleZ:vs,skew:vr,skewX:vr,skewY:vr,distance:Ae,translateX:Ae,translateY:Ae,translateZ:Ae,x:Ae,y:Ae,z:Ae,perspective:Ae,transformPerspective:Ae,opacity:La,originX:wd,originY:wd,originZ:Ae},M0={borderWidth:Ae,borderTopWidth:Ae,borderRightWidth:Ae,borderBottomWidth:Ae,borderLeftWidth:Ae,borderRadius:Ae,radius:Ae,borderTopLeftRadius:Ae,borderTopRightRadius:Ae,borderBottomRightRadius:Ae,borderBottomLeftRadius:Ae,width:Ae,maxWidth:Ae,height:Ae,maxHeight:Ae,top:Ae,right:Ae,bottom:Ae,left:Ae,padding:Ae,paddingTop:Ae,paddingRight:Ae,paddingBottom:Ae,paddingLeft:Ae,margin:Ae,marginTop:Ae,marginRight:Ae,marginBottom:Ae,marginLeft:Ae,backgroundPositionX:Ae,backgroundPositionY:Ae,...N9,zIndex:Bd,fillOpacity:La,strokeOpacity:La,numOctaves:Bd},R9={...M0,color:Pt,backgroundColor:Pt,outlineColor:Pt,fill:Pt,stroke:Pt,borderColor:Pt,borderTopColor:Pt,borderRightColor:Pt,borderBottomColor:Pt,borderLeftColor:Pt,filter:hl,WebkitFilter:hl},mm=e=>R9[e];function gm(e,t){let n=mm(e);return n!==hl&&(n=kr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const M9=new Set(["auto","none","0"]);function D9(e,t,n){let r=0,i;for(;r{t.getValue(o).set(u)}),this.resolveNoneKeyframes()}}function L9(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const bm=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function O9(e){return Rp(e)&&"offsetHeight"in e}const Fd=30,_9=e=>!isNaN(parseFloat(e));class B9{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const i=tn.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_9(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new m0);const r=this.events[t].add(n);return t==="change"?()=>{r(),lt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Fd)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Fd);return Dp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ii(e,t){return new B9(e,t)}const{schedule:D0}=Yp(queueMicrotask,!1),Rn={x:!1,y:!1};function ym(){return Rn.x||Rn.y}function F9(e){return e==="x"||e==="y"?Rn[e]?null:(Rn[e]=!0,()=>{Rn[e]=!1}):Rn.x||Rn.y?null:(Rn.x=Rn.y=!0,()=>{Rn.x=Rn.y=!1})}function vm(e,t){const n=L9(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Hd(e){return!(e.pointerType==="touch"||ym())}function H9(e,t,n={}){const[r,i,a]=vm(e,n),s=o=>{if(!Hd(o))return;const{target:u}=o,l=t(u,o);if(typeof l!="function"||!u)return;const c=d=>{Hd(d)&&(l(d),u.removeEventListener("pointerleave",c))};u.addEventListener("pointerleave",c,i)};return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const Tm=(e,t)=>t?e===t?!0:Tm(e,t.parentElement):!1,P0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,z9=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function U9(e){return z9.has(e.tagName)||e.tabIndex!==-1}const Hs=new WeakSet;function zd(e){return t=>{t.key==="Enter"&&e(t)}}function Zo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const V9=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=zd(()=>{if(Hs.has(n))return;Zo(n,"down");const i=zd(()=>{Zo(n,"up")}),a=()=>Zo(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ud(e){return P0(e)&&!ym()}function j9(e,t,n={}){const[r,i,a]=vm(e,n),s=o=>{const u=o.currentTarget;if(!Ud(o))return;Hs.add(u);const l=t(u,o),c=(f,b)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",p),Hs.has(u)&&Hs.delete(u),Ud(f)&&typeof l=="function"&&l(f,{success:b})},d=f=>{c(f,u===window||u===document||n.useGlobalTarget||Tm(u,f.target))},p=f=>{c(f,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",p,i)};return r.forEach(o=>{(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),O9(o)&&(o.addEventListener("focus",l=>V9(l,i)),!U9(o)&&!o.hasAttribute("tabindex")&&(o.tabIndex=0))}),a}function xm(e){return Rp(e)&&"ownerSVGElement"in e}function q9(e){return xm(e)&&e.tagName==="svg"}const zt=e=>!!(e&&e.getVelocity),$9=[...pm,Pt,kr],W9=e=>$9.find(fm(e)),_a={};function Y9(e){for(const t in e)_a[t]=e[t],T0(t)&&(_a[t].isCSSVariable=!0)}function Em(e,{layout:t,layoutId:n}){return _i.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_a[e]||e==="opacity")}const G9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},X9=Oi.length;function K9(e,t,n){let r="",i=!0;for(let a=0;a({style:{},transform:{},transformOrigin:{},vars:{}});function Sm(e,t,n){for(const r in t)!zt(t[r])&&!Em(r,n)&&(e[r]=t[r])}function Q9({transformTemplate:e},t){return L.useMemo(()=>{const n=O0();return L0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Z9(e,t){const n=e.style||{},r={};return Sm(r,n,e),Object.assign(r,Q9(e,t)),r}function J9(e,t){const n={},r=Z9(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const ev={offset:"stroke-dashoffset",array:"stroke-dasharray"},tv={offset:"strokeDashoffset",array:"strokeDasharray"};function nv(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?ev:tv;e[a.offset]=Ae.transform(-r);const s=Ae.transform(t),o=Ae.transform(n);e[a.array]=`${s} ${o}`}function wm(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:s=0,...o},u,l,c){if(L0(e,o,l),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:p}=e;d.transform&&(p.transform=d.transform,delete d.transform),(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=c?.transformBox??"fill-box",delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&nv(d,i,a,s,!1)}const Am=()=>({...O0(),attrs:{}}),Cm=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rv(e,t,n,r){const i=L.useMemo(()=>{const a=Am();return wm(a,t,Cm(r),e.transformTemplate,e.style),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};Sm(a,e.style,e),i.style={...a,...i.style}}return i}const iv=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function eo(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iv.has(e)}let km=e=>!eo(e);function av(e){typeof e=="function"&&(km=t=>t.startsWith("on")?!eo(t):e(t))}try{av(require("@emotion/is-prop-valid").default)}catch{}function sv(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(km(i)||n===!0&&eo(i)||!t&&!eo(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ov=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function _0(e){return typeof e!="string"||e.includes("-")?!1:!!(ov.indexOf(e)>-1||/[A-Z]/u.test(e))}function uv(e,t,n,{latestValues:r},i,a=!1){const o=(_0(e)?rv:J9)(t,r,i,e),u=sv(t,typeof e=="string",a),l=e!==L.Fragment?{...u,...o,ref:n}:{},{children:c}=t,d=L.useMemo(()=>zt(c)?c.get():c,[c]);return L.createElement(e,{...l,children:d})}const B0=L.createContext(null);function Vd(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function F0(e,t,n,r){if(typeof t=="function"){const[i,a]=Vd(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=Vd(r);t=t(n!==void 0?n:e.custom,i,a)}return t}function lv(e){const t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}function zs(e){return zt(e)?e.get():e}function cv({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:dv(n,r,i,e),renderState:t()}}function dv(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=zs(a[p]);let{initial:s,animate:o}=e;const u=Ao(e),l=Wp(e);t&&l&&!u&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const d=c?o:s;if(d&&typeof d!="boolean"&&!wo(d)){const p=Array.isArray(d)?d:[d];for(let f=0;f(t,n)=>{const r=L.useContext(So),i=L.useContext(B0),a=()=>cv(e,t,r,i);return n?a():lv(a)};function H0(e,t,n){const{style:r}=e,i={};for(const a in r)(zt(r[a])||t.style&&zt(t.style[a])||Em(a,e)||n?.getValue(a)?.liveStyle!==void 0)&&(i[a]=r[a]);return i}const hv=Im({scrapeMotionValuesFromProps:H0,createRenderState:O0});function Nm(e,t,n){const r=H0(e,t,n);for(const i in e)if(zt(e[i])||zt(t[i])){const a=Oi.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const fv=Im({scrapeMotionValuesFromProps:Nm,createRenderState:Am}),z0=typeof window<"u",jd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ni={};for(const e in jd)Ni[e]={isEnabled:t=>jd[e].some(n=>!!t[n])};function pv(e){for(const t in e)Ni[t]={...Ni[t],...e[t]}}const mv=Symbol.for("motionComponentSymbol");function pi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function gv(e,t,n){const r=L.useRef(null);return L.useCallback(i=>{const a=r.current;r.current=i,i!==a&&(i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount())),n&&(typeof n=="function"?n(i):pi(n)&&(n.current=i))},[t,n])}const U0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bv="framerAppearId",Rm="data-"+U0(bv),Mm=L.createContext({}),yv=z0?L.useLayoutEffect:L.useEffect;function vv(e,t,n,r,i){const{visualElement:a}=L.useContext(So),s=L.useContext(qp),o=L.useContext(B0),u=L.useContext($p).reducedMotion,l=L.useRef(null);r=r||s.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:a,props:n,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:u}));const c=l.current,d=L.useContext(Mm);c&&!c.projection&&i&&(c.type==="html"||c.type==="svg")&&Tv(l.current,n,i,d);const p=L.useRef(!1);L.useInsertionEffect(()=>{c&&p.current&&c.update(n,o)});const f=n[Rm],b=L.useRef(!!f&&!window.MotionHandoffIsComplete?.(f)&&window.MotionHasOptimisedAnimation?.(f));return yv(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),b.current&&c.animationState&&c.animationState.animateChanges())}),L.useEffect(()=>{c&&(!b.current&&c.animationState&&c.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(f)}),b.current=!1),c.enteringChildren=void 0)}),c}function Tv(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:u,layoutRoot:l,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Dm(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&pi(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:u,layoutRoot:l})}function Dm(e){if(e)return e.options.allowProjection!==!1?e.projection:Dm(e.parent)}function xv(e,{forwardMotionProps:t=!1}={},n,r){n&&pv(n);const i=_0(e)?fv:hv;function a(o,u){let l;const c={...L.useContext($p),...o,layoutId:Ev(o)},{isStatic:d}=c,p=iy(o),f=i(o,d);if(!d&&z0){Sv();const b=wv(c);l=b.MeasureLayout,p.visualElement=vv(e,f,c,r,b.ProjectionNode)}return k.jsxs(So.Provider,{value:p,children:[l&&p.visualElement?k.jsx(l,{visualElement:p.visualElement,...c}):null,uv(e,o,gv(f,p.visualElement,u),f,d,t)]})}a.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=L.forwardRef(a);return s[mv]=e,s}function Ev({layoutId:e}){const t=L.useContext(jp).id;return t&&e!==void 0?t+"-"+e:e}function Sv(e,t){L.useContext(qp).strict}function wv(e){const{drag:t,layout:n}=Ni;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Pm({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Av({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Cv(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Jo(e){return e===void 0||e===1}function fl({scale:e,scaleX:t,scaleY:n}){return!Jo(e)||!Jo(t)||!Jo(n)}function jr(e){return fl(e)||Lm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Lm(e){return qd(e.x)||qd(e.y)}function qd(e){return e&&e!=="0%"}function to(e,t,n){const r=e-n,i=t*r;return n+i}function $d(e,t,n,r,i){return i!==void 0&&(e=to(e,i,r)),to(e,n,r)+t}function pl(e,t=0,n=1,r,i){e.min=$d(e.min,t,n,r,i),e.max=$d(e.max,t,n,r,i)}function Om(e,{x:t,y:n}){pl(e.x,t.translate,t.scale,t.originPoint),pl(e.y,n.translate,n.scale,n.originPoint)}const Wd=.999999999999,Yd=1.0000000000001;function kv(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;oWd&&(t.x=1),t.yWd&&(t.y=1)}function mi(e,t){e.min=e.min+t,e.max=e.max+t}function Gd(e,t,n,r,i=.5){const a=mt(e.min,e.max,i);pl(e,t,n,a,r)}function gi(e,t){Gd(e.x,t.x,t.scaleX,t.scale,t.originX),Gd(e.y,t.y,t.scaleY,t.scale,t.originY)}function _m(e,t){return Pm(Cv(e.getBoundingClientRect(),t))}function Iv(e,t,n){const r=_m(e,n),{scroll:i}=t;return i&&(mi(r.x,i.offset.x),mi(r.y,i.offset.y)),r}const Xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),bi=()=>({x:Xd(),y:Xd()}),Kd=()=>({min:0,max:0}),Ct=()=>({x:Kd(),y:Kd()}),ml={current:null},Bm={current:!1};function Nv(){if(Bm.current=!0,!!z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ml.current=e.matches;e.addEventListener("change",t),t()}else ml.current=!1}const Rv=new WeakMap;function Mv(e,t,n){for(const r in t){const i=t[r],a=n[r];if(zt(i))e.addValue(r,i);else if(zt(a))e.addValue(r,Ii(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,Ii(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Dv{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=N0,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=tn.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),Bm.current||Nv(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ml.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Cr(this.notifyUpdate),Cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=_i.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&<.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Ni){const n=Ni[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Ii(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Np(r)||Mp(r))?r=parseFloat(r):!W9(r)&&kr.test(n)&&(r=gm(t,n)),this.setBaseTarget(t,zt(r)?r.get():r)),zt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=F0(this.props,n,this.presenceContext?.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!zt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new m0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){D0.render(this.render)}}class Fm extends Dv{constructor(){super(...arguments),this.KeyframeResolver=P9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;zt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Hm(e,{style:t,vars:n},r,i){const a=e.style;let s;for(s in t)a[s]=t[s];i?.applyProjectionStyles(a,r);for(s in n)a.setProperty(s,n[s])}function Pv(e){return window.getComputedStyle(e)}class Lv extends Fm{constructor(){super(...arguments),this.type="html",this.renderInstance=Hm}readValueFromInstance(t,n){if(_i.has(n))return this.projection?.isProjecting?sl(n):Zy(t,n);{const r=Pv(t),i=(T0(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return _m(t,n)}build(t,n,r){L0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return H0(t,n,r)}}const zm=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ov(e,t,n,r){Hm(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(zm.has(i)?i:U0(i),t.attrs[i])}class _v extends Fm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ct}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(_i.has(n)){const r=mm(n);return r&&r.default||0}return n=zm.has(n)?n:U0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Nm(t,n,r)}build(t,n,r){wm(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){Ov(t,n,r,i)}mount(t){this.isSVGTag=Cm(t.tagName),super.mount(t)}}const Bv=(e,t)=>_0(e)?new _v(t):new Lv(t,{allowProjection:e!==L.Fragment});function vi(e,t,n){const r=e.getProps();return F0(r,t,n!==void 0?n:r.custom,e)}const gl=e=>Array.isArray(e);function Fv(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ii(n))}function Hv(e){return gl(e)?e[e.length-1]||0:e}function zv(e,t){const n=vi(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=Hv(a[s]);Fv(e,s,o)}}function Uv(e){return!!(zt(e)&&e.add)}function bl(e,t){const n=e.getValue("willChange");if(Uv(n))return n.add(t);if(!n&&lr.WillChange){const r=new lr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Um(e){return e.props[Rm]}const Vv=e=>e!==null;function jv(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Vv),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[a]}const qv={type:"spring",stiffness:500,damping:25,restSpeed:10},$v=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Wv={type:"keyframes",duration:.8},Yv={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gv=(e,{keyframes:t})=>t.length>2?Wv:_i.has(e)?e.startsWith("scale")?$v(t[1]):qv:Yv;function Xv({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:u,elapsed:l,...c}){return!!Object.keys(c).length}const V0=(e,t,n,r={},i,a)=>s=>{const o=R0(r,e)||{},u=o.delay||r.delay||0;let{elapsed:l=0}=r;l=l-Vn(u);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-l,onUpdate:p=>{t.set(p),o.onUpdate&&o.onUpdate(p)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};Xv(o)||Object.assign(c,Gv(e,c)),c.duration&&(c.duration=Vn(c.duration)),c.repeatDelay&&(c.repeatDelay=Vn(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(dl(c),c.delay===0&&(d=!0)),(lr.instantAnimations||lr.skipAnimations)&&(d=!0,dl(c),c.delay=0),c.allowFlatten=!o.type&&!o.ease,d&&!a&&t.get()!==void 0){const p=jv(c.keyframes,o);if(p!==void 0){lt.update(()=>{c.onUpdate(p),c.onComplete()});return}}return o.isSync?new I0(c):new x9(c)};function Kv({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a=e.getDefaultTransition(),transitionEnd:s,...o}=t;r&&(a=r);const u=[],l=i&&e.animationState&&e.animationState.getState()[i];for(const c in o){const d=e.getValue(c,e.latestValues[c]??null),p=o[c];if(p===void 0||l&&Kv(l,c))continue;const f={delay:n,...R0(a||{},c)},b=d.get();if(b!==void 0&&!d.isAnimating&&!Array.isArray(p)&&p===b&&!f.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const y=Um(e);if(y){const w=window.MotionHandoffAnimation(y,c,lt);w!==null&&(f.startTime=w,v=!0)}}bl(e,c),d.start(V0(c,d,p,e.shouldReduceMotion&&hm.has(c)?{type:!1}:f,e,v));const E=d.animation;E&&u.push(E)}return s&&Promise.all(u).then(()=>{lt.update(()=>{s&&zv(e,s)})}),u}function jm(e,t,n,r=0,i=1){const a=Array.from(e).sort((l,c)=>l.sortNodePosition(c)).indexOf(t),s=e.size,o=(s-1)*r;return typeof n=="function"?n(a,s):i===1?a*r:o-a*r}function yl(e,t,n={}){const r=vi(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Vm(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:l=0,staggerChildren:c,staggerDirection:d}=i;return Qv(e,t,u,l,c,d,n)}:()=>Promise.resolve(),{when:o}=i;if(o){const[u,l]=o==="beforeChildren"?[a,s]:[s,a];return u().then(()=>l())}else return Promise.all([a(),s(n.delay)])}function Qv(e,t,n=0,r=0,i=0,a=1,s){const o=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),o.push(yl(u,t,{...s,delay:n+(typeof r=="function"?0:r)+jm(e.variantChildren,u,r,i,a)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(o)}function Zv(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>yl(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=yl(e,t,n);else{const i=typeof t=="function"?vi(e,t,n.custom):t;r=Promise.all(Vm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function qm(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Zv(e,n,r)))}function rT(e){let t=nT(e),n=Zd(),r=!0;const i=u=>(l,c)=>{const d=vi(e,c,u==="exit"?e.presenceContext?.custom:void 0);if(d){const{transition:p,transitionEnd:f,...b}=d;l={...l,...b,...f}}return l};function a(u){t=u(e)}function s(u){const{props:l}=e,c=$m(e.parent)||{},d=[],p=new Set;let f={},b=1/0;for(let E=0;Eb&&I,V=!1;const P=Array.isArray(x)?x:[x];let $=P.reduce(i(y),{});M===!1&&($={});const{prevResolvedValues:W={}}=w,G={...W,...$},q=ee=>{z=!0,p.has(ee)&&(V=!0,p.delete(ee)),w.needsAnimating[ee]=!0;const de=e.getValue(ee);de&&(de.liveStyle=!1)};for(const ee in G){const de=$[ee],oe=W[ee];if(f.hasOwnProperty(ee))continue;let R=!1;gl(de)&&gl(oe)?R=!qm(de,oe):R=de!==oe,R?de!=null?q(ee):p.add(ee):de!==void 0&&p.has(ee)?q(ee):w.protectedKeys[ee]=!0}w.prevProp=x,w.prevResolvedValues=$,w.isActive&&(f={...f,...$}),r&&e.blockInitialAnimation&&(z=!1);const Y=C&&H;z&&(!Y||V)&&d.push(...P.map(ee=>{const de={type:y};if(typeof ee=="string"&&r&&!Y&&e.manuallyAnimateOnMount&&e.parent){const{parent:oe}=e,R=vi(oe,ee);if(oe.enteringChildren&&R){const{delayChildren:Ce}=R.transition||{};de.delay=jm(oe.enteringChildren,e,Ce)}}return{animation:ee,options:de}}))}if(p.size){const E={};if(typeof l.initial!="boolean"){const y=vi(e,Array.isArray(l.initial)?l.initial[0]:l.initial);y&&y.transition&&(E.transition=y.transition)}p.forEach(y=>{const w=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),E[y]=w??null}),d.push({animation:E})}let v=!!d.length;return r&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(d):Promise.resolve()}function o(u,l){if(n[u].isActive===l)return Promise.resolve();e.variantChildren?.forEach(d=>d.animationState?.setActive(u,l)),n[u].isActive=l;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Zd(),r=!0}}}function iT(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!qm(t,e):!1}function _r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Zd(){return{animate:_r(!0),whileInView:_r(),whileHover:_r(),whileTap:_r(),whileDrag:_r(),whileFocus:_r(),exit:_r()}}class Dr{constructor(t){this.isMounted=!1,this.node=t}update(){}}class aT extends Dr{constructor(t){super(t),t.animationState||(t.animationState=rT(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();wo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let sT=0;class oT extends Dr{constructor(){super(...arguments),this.id=sT++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const uT={animation:{Feature:aT},exit:{Feature:oT}};function Ba(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qa(e){return{point:{x:e.pageX,y:e.pageY}}}const lT=e=>t=>P0(t)&&e(t,Qa(t));function ma(e,t,n,r){return Ba(e,t,lT(n),r)}const Wm=1e-4,cT=1-Wm,dT=1+Wm,Ym=.01,hT=0-Ym,fT=0+Ym;function Yt(e){return e.max-e.min}function pT(e,t,n){return Math.abs(e-t)<=n}function Jd(e,t,n,r=.5){e.origin=r,e.originPoint=mt(t.min,t.max,e.origin),e.scale=Yt(n)/Yt(t),e.translate=mt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=cT&&e.scale<=dT||isNaN(e.scale))&&(e.scale=1),(e.translate>=hT&&e.translate<=fT||isNaN(e.translate))&&(e.translate=0)}function ga(e,t,n,r){Jd(e.x,t.x,n.x,r?r.originX:void 0),Jd(e.y,t.y,n.y,r?r.originY:void 0)}function eh(e,t,n){e.min=n.min+t.min,e.max=e.min+Yt(t)}function mT(e,t,n){eh(e.x,t.x,n.x),eh(e.y,t.y,n.y)}function th(e,t,n){e.min=t.min-n.min,e.max=e.min+Yt(t)}function ba(e,t,n){th(e.x,t.x,n.x),th(e.y,t.y,n.y)}function yn(e){return[e("x"),e("y")]}const Gm=({current:e})=>e?e.ownerDocument.defaultView:null,nh=(e,t)=>Math.abs(e-t);function gT(e,t){const n=nh(e.x,t.x),r=nh(e.y,t.y);return Math.sqrt(n**2+r**2)}class Xm{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=tu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,b=gT(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!f&&!b)return;const{point:v}=p,{timestamp:E}=Ft;this.history.push({...v,timestamp:E});const{onStart:y,onMove:w}=this.handlers;f||(y&&y(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),w&&w(this.lastMoveEvent,p)},this.handlePointerMove=(p,f)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=eu(f,this.transformPagePoint),lt.update(this.updatePoint,!0)},this.handlePointerUp=(p,f)=>{this.end();const{onEnd:b,onSessionEnd:v,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=tu(p.type==="pointercancel"?this.lastMoveEventInfo:eu(f,this.transformPagePoint),this.history);this.startEvent&&b&&b(p,y),v&&v(p,y)},!P0(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=s,this.contextWindow=i||window;const o=Qa(t),u=eu(o,this.transformPagePoint),{point:l}=u,{timestamp:c}=Ft;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,tu(u,this.history)),this.removeListeners=Ga(ma(this.contextWindow,"pointermove",this.handlePointerMove),ma(this.contextWindow,"pointerup",this.handlePointerUp),ma(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Cr(this.updatePoint)}}function eu(e,t){return t?{point:t(e.point)}:e}function rh(e,t){return{x:e.x-t.x,y:e.y-t.y}}function tu({point:e},t){return{point:e,delta:rh(e,Km(t)),offset:rh(e,bT(t)),velocity:yT(t,.1)}}function bT(e){return e[0]}function Km(e){return e[e.length-1]}function yT(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Km(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vn(t)));)n--;if(!r)return{x:0,y:0};const a=jn(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function vT(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?mt(n,e,r.max):Math.min(e,n)),e}function ih(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function TT(e,{top:t,left:n,bottom:r,right:i}){return{x:ih(e.x,n,i),y:ih(e.y,t,r)}}function ah(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=Da(t.min,t.max-r,e.min):r>i&&(n=Da(e.min,e.max-i,t.min)),ur(0,1,n)}function ST(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vl=.35;function wT(e=vl){return e===!1?e=0:e===!0&&(e=vl),{x:sh(e,"left","right"),y:sh(e,"top","bottom")}}function sh(e,t,n){return{min:oh(e,t),max:oh(e,n)}}function oh(e,t){return typeof e=="number"?e:e[t]||0}const AT=new WeakMap;class CT{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qa(d).point)},s=(d,p)=>{const{drag:f,dragPropagation:b,onDragStart:v}=this.getProps();if(f&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=F9(f),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=p,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yn(y=>{let w=this.getAxisMotionValue(y).get()||0;if(qn.test(w)){const{projection:x}=this.visualElement;if(x&&x.layout){const I=x.layout.layoutBox[y];I&&(w=Yt(I)*(parseFloat(w)/100))}}this.originPoint[y]=w}),v&<.postRender(()=>v(d,p)),bl(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},o=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p;const{dragPropagation:f,dragDirectionLock:b,onDirectionLock:v,onDrag:E}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=p;if(b&&this.currentDirection===null){this.currentDirection=kT(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",p.point,y),this.updateAxis("y",p.point,y),this.visualElement.render(),E&&E(d,p)},u=(d,p)=>{this.latestPointerEvent=d,this.latestPanInfo=p,this.stop(d,p),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>yn(d=>this.getAnimationState(d)==="paused"&&this.getAxisMotionValue(d).animation?.play()),{dragSnapToOrigin:c}=this.getProps();this.panSession=new Xm(t,{onSessionStart:a,onStart:s,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:r,contextWindow:Gm(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!r)return;const{velocity:s}=i;this.startAnimation(s);const{onDragEnd:o}=this.getProps();o&<.postRender(()=>o(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Ts(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=vT(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;t&&pi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=TT(r.layoutBox,t):this.constraints=!1,this.elastic=wT(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&yn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=ST(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!pi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Iv(r,i.root,this.visualElement.getTransformPagePoint());let s=xT(i.layout.layoutBox,a);if(n){const o=n(Av(s));this.hasMutatedConstraints=!!o,o&&(s=Pm(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),u=this.constraints||{},l=yn(c=>{if(!Ts(c,n,this.currentDirection))return;let d=u&&u[c]||{};s&&(d={min:0,max:0});const p=i?200:1e6,f=i?40:1e7,b={type:"inertia",velocity:r?t[c]:0,bounceStiffness:p,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(c,b)});return Promise.all(l).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return bl(this.visualElement,t),r.start(V0(t,r,0,n,this.visualElement,!1))}stopAnimation(){yn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){yn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){yn(n=>{const{drag:r}=this.getProps();if(!Ts(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-mt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!pi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};yn(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const u=o.get();i[s]=ET({min:u,max:u},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),yn(s=>{if(!Ts(s,t,null))return;const o=this.getAxisMotionValue(s),{min:u,max:l}=this.constraints[s];o.set(mt(u,l,i[s]))})}addListeners(){if(!this.visualElement.current)return;AT.set(this.visualElement,this);const t=this.visualElement.current,n=ma(t,"pointerdown",u=>{const{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();pi(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),lt.read(r);const s=Ba(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(yn(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=u[c].translate,d.set(d.get()+u[c].translate))}),this.visualElement.render())}));return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=vl,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Ts(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function kT(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class IT extends Dr{constructor(t){super(t),this.removeGroupControls=Sn,this.removeListeners=Sn,this.controls=new CT(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Sn}unmount(){this.removeGroupControls(),this.removeListeners()}}const uh=e=>(t,n)=>{e&<.postRender(()=>e(t,n))};class NT extends Dr{constructor(){super(...arguments),this.removePointerDownListener=Sn}onPointerDown(t){this.session=new Xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gm(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:uh(t),onStart:uh(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&<.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=ma(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function RT(e=!0){const t=L.useContext(B0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=L.useId();L.useEffect(()=>{if(e)return i(a)},[e]);const s=L.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const Us={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function lh(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qi={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ae.test(e))e=parseFloat(e);else return e;const n=lh(e,t.target.x),r=lh(e,t.target.y);return`${n}% ${r}%`}},MT={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=kr.parse(e);if(i.length>5)return r;const a=kr.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,u=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=u;const l=mt(o,u,.5);return typeof i[2+s]=="number"&&(i[2+s]/=l),typeof i[3+s]=="number"&&(i[3+s]/=l),a(i)}};let nu=!1;class DT extends L.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;Y9(PT),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),nu&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Us.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,{projection:s}=r;return s&&(s.isPresent=a,nu=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==a?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||lt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),D0.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;nu=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Qm(e){const[t,n]=RT(),r=L.useContext(jp);return k.jsx(DT,{...e,layoutGroup:r,switchLayoutGroup:L.useContext(Mm),isPresent:t,safeToRemove:n})}const PT={borderRadius:{...Qi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qi,borderTopRightRadius:Qi,borderBottomLeftRadius:Qi,borderBottomRightRadius:Qi,boxShadow:MT};function LT(e,t,n){const r=zt(e)?e:Ii(e);return r.start(V0("",r,t,n)),r.animation}const OT=(e,t)=>e.depth-t.depth;class _T{constructor(){this.children=[],this.isDirty=!1}add(t){d0(this.children,t),this.isDirty=!0}remove(t){h0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(OT),this.isDirty=!1,this.children.forEach(t)}}function BT(e,t){const n=tn.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Cr(r),e(a-t))};return lt.setup(r,!0),()=>Cr(r)}const Zm=["TopLeft","TopRight","BottomLeft","BottomRight"],FT=Zm.length,ch=e=>typeof e=="string"?parseFloat(e):e,dh=e=>typeof e=="number"||Ae.test(e);function HT(e,t,n,r,i,a){i?(e.opacity=mt(0,n.opacity??1,zT(r)),e.opacityExit=mt(t.opacity??1,0,UT(r))):a&&(e.opacity=mt(t.opacity??1,n.opacity??1,r));for(let s=0;srt?1:n(Da(e,t,r))}function fh(e,t){e.min=t.min,e.max=t.max}function bn(e,t){fh(e.x,t.x),fh(e.y,t.y)}function ph(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function mh(e,t,n,r,i){return e-=t,e=to(e,1/n,r),i!==void 0&&(e=to(e,1/i,r)),e}function VT(e,t=0,n=1,r=.5,i,a=e,s=e){if(qn.test(t)&&(t=parseFloat(t),t=mt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=mt(a.min,a.max,r);e===a&&(o-=t),e.min=mh(e.min,t,n,o,i),e.max=mh(e.max,t,n,o,i)}function gh(e,t,[n,r,i],a,s){VT(e,t[n],t[r],t[i],t.scale,a,s)}const jT=["x","scaleX","originX"],qT=["y","scaleY","originY"];function bh(e,t,n,r){gh(e.x,t,jT,n?n.x:void 0,r?r.x:void 0),gh(e.y,t,qT,n?n.y:void 0,r?r.y:void 0)}function yh(e){return e.translate===0&&e.scale===1}function e2(e){return yh(e.x)&&yh(e.y)}function vh(e,t){return e.min===t.min&&e.max===t.max}function $T(e,t){return vh(e.x,t.x)&&vh(e.y,t.y)}function Th(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function t2(e,t){return Th(e.x,t.x)&&Th(e.y,t.y)}function xh(e){return Yt(e.x)/Yt(e.y)}function Eh(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class WT{constructor(){this.members=[]}add(t){d0(this.members,t),t.scheduleRender()}remove(t){if(h0(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function YT(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=n?.z||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:c,rotateX:d,rotateY:p,skewX:f,skewY:b}=n;l&&(r=`perspective(${l}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),p&&(r+=`rotateY(${p}deg) `),f&&(r+=`skewX(${f}deg) `),b&&(r+=`skewY(${b}deg) `)}const o=e.x.scale*t.x,u=e.y.scale*t.y;return(o!==1||u!==1)&&(r+=`scale(${o}, ${u})`),r||"none"}const ru=["","X","Y","Z"],GT=1e3;let XT=0;function iu(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function n2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Um(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",lt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&n2(r)}function r2({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t?.()){this.id=XT++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(ZT),this.nodes.forEach(nx),this.nodes.forEach(rx),this.nodes.forEach(JT)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let u=0;uthis.root.updateBlockedByResize=!1;lt.read(()=>{d=window.innerWidth}),e(s,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,c&&c(),c=BT(p,250),Us.hasAnimatedSinceResize&&(Us.hasAnimatedSinceResize=!1,this.nodes.forEach(Ah)))})}o&&this.root.registerSharedNode(o,this),this.options.animate!==!1&&l&&(o||u)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||l.getDefaultTransition()||ux,{onLayoutAnimationStart:v,onLayoutAnimationComplete:E}=l.getProps(),y=!this.targetLayout||!t2(this.targetLayout,f),w=!d&&p;if(this.options.layoutRoot||this.resumeFrom||w||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const x={...R0(b,"layout"),onPlay:v,onComplete:E};(l.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x),this.setAnimationOrigin(c,w)}else d||Ah(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Cr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(ix),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&n2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let u=0;u{const M=I/1e3;Ch(d.x,s.x,M),Ch(d.y,s.y,M),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ba(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),sx(this.relativeTarget,this.relativeTargetOrigin,p,M),x&&$T(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ct()),bn(x,this.relativeTarget)),v&&(this.animationValues=c,HT(c,l,this.latestValues,M,w,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=lt.update(()=>{Us.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ii(0)),this.currentAnimation=LT(this.motionValue,[0,1e3],{...s,velocity:0,isSync:!0,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onStop:()=>{},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(GT),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:u,layout:l,latestValues:c}=s;if(!(!o||!u||!l)){if(this!==s&&this.layout&&l&&i2(this.options.animationType,this.layout.layoutBox,l.layoutBox)){u=this.target||Ct();const d=Yt(this.layout.layoutBox.x);u.x.min=s.target.x.min,u.x.max=u.x.min+d;const p=Yt(this.layout.layoutBox.y);u.y.min=s.target.y.min,u.y.max=u.y.min+p}bn(o,u),gi(o,c),ga(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new WT),this.sharedNodes.get(s).add(o);const l=o.options.initialPromotionConfig;o.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){const{layoutId:s}=this.options;return s?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:s}=this.options;return s?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:u}={}){const l=this.getStack();l&&l.promote(this,u),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:u}=s;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(o=!0),!o)return;const l={};u.z&&iu("z",s,l,this.animationValues);for(let c=0;cs.currentAnimation?.stop()),this.root.nodes.forEach(Sh),this.root.sharedNodes.clear()}}}function KT(e){e.updateLayout()}function QT(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?yn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(d);d.min=n[c].min,d.max=d.min+p}):i2(i,t.layoutBox,n)&&yn(c=>{const d=a?t.measuredBox[c]:t.layoutBox[c],p=Yt(n[c]);d.max=d.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+p)});const s=bi();ga(s,n,t.layoutBox);const o=bi();a?ga(o,e.applyTransform(r,!0),t.measuredBox):ga(o,n,t.layoutBox);const u=!e2(s);let l=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:d,layout:p}=c;if(d&&p){const f=Ct();ba(f,t.layoutBox,d.layoutBox);const b=Ct();ba(b,n,p.layoutBox),t2(f,b)||(l=!0),c.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=f,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:o,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:l})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function ZT(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function JT(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ex(e){e.clearSnapshot()}function Sh(e){e.clearMeasurements()}function wh(e){e.isLayoutDirty=!1}function tx(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ah(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function nx(e){e.resolveTargetDelta()}function rx(e){e.calcProjection()}function ix(e){e.resetSkewAndRotation()}function ax(e){e.removeLeadSnapshot()}function Ch(e,t,n){e.translate=mt(t.translate,0,n),e.scale=mt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function kh(e,t,n,r){e.min=mt(t.min,n.min,r),e.max=mt(t.max,n.max,r)}function sx(e,t,n,r){kh(e.x,t.x,n.x,r),kh(e.y,t.y,n.y,r)}function ox(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const ux={duration:.45,ease:[.4,0,.1,1]},Ih=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Nh=Ih("applewebkit/")&&!Ih("chrome/")?Math.round:Sn;function Rh(e){e.min=Nh(e.min),e.max=Nh(e.max)}function lx(e){Rh(e.x),Rh(e.y)}function i2(e,t,n){return e==="position"||e==="preserve-aspect"&&!pT(xh(t),xh(n),.2)}function cx(e){return e!==e.root&&e.scroll?.wasRoot}const dx=r2({attachResizeListener:(e,t)=>Ba(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),au={current:void 0},a2=r2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!au.current){const e=new dx({});e.mount(window),e.setOptions({layoutScroll:!0}),au.current=e}return au.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),hx={pan:{Feature:NT},drag:{Feature:IT,ProjectionNode:a2,MeasureLayout:Qm}};function Mh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&<.postRender(()=>a(t,Qa(t)))}class fx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=H9(t,(n,r)=>(Mh(this.node,r,"Start"),i=>Mh(this.node,i,"End"))))}unmount(){}}class px extends Dr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ga(Ba(this.node.current,"focus",()=>this.onFocus()),Ba(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&<.postRender(()=>a(t,Qa(t)))}class mx extends Dr{mount(){const{current:t}=this.node;t&&(this.unmount=j9(t,(n,r)=>(Dh(this.node,r,"Start"),(i,{success:a})=>Dh(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Tl=new WeakMap,su=new WeakMap,gx=e=>{const t=Tl.get(e.target);t&&t(e)},bx=e=>{e.forEach(gx)};function yx({root:e,...t}){const n=e||document;su.has(n)||su.set(n,{});const r=su.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(bx,{root:e,...t})),r[i]}function vx(e,t,n){const r=yx(t);return Tl.set(e,n),r.observe(e),()=>{Tl.delete(e),r.unobserve(e)}}const Tx={some:0,all:1};class xx extends Dr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Tx[i]},o=u=>{const{isIntersecting:l}=u;if(this.isInView===l||(this.isInView=l,a&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),p=l?c:d;p&&p(u)};return vx(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Ex(t,n))&&this.startObserver()}unmount(){}}function Ex({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sx={inView:{Feature:xx},tap:{Feature:mx},focus:{Feature:px},hover:{Feature:fx}},wx={layout:{ProjectionNode:a2,MeasureLayout:Qm}},Ax={...uT,...Sx,...hx,...wx};function Cx(e,t){return xv(e,t,Ax,Bv)}const j0=Cx("div"),kx=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:1,gap:t(1.5),overflowX:"hidden",overflowY:"auto"}}),Ix=ue(mp)(({theme:e,variant:t})=>{const{spacing:n}=e;return{gap:n(t==="list"?1.5:0)}}),Nx=ue(Hb)(({theme:e})=>{const{spacing:t}=e;return{flex:"none",gap:t(1),backgroundColor:"transparent",padding:t(2),overflow:"visible"}}),Rx=ue(Vb)(({theme:e})=>({color:"inherit",fontSize:"1.5rem",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center"})),Mx=ue(Wb)(({theme:e})=>({position:"relative",display:"block",height:"100%"})),Dx=ue(j0)(({theme:e,variant:t})=>({fontSize:t==="list"?"1.5rem":"1em",width:"1em",height:"1em",display:"inline-flex",alignItems:"center",justifyContent:"center",transformOrigin:"center"})),Px={waiting:"info",available:"success",failed:"error"},Lx={waiting:N8,available:b8,failed:j1},Ox=ue(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",width:"1.5rem",height:"3.25rem",overflow:"hidden"}}),_x=({animate:e})=>k.jsx(Ox,{children:k.jsx("svg",{style:{position:"absolute",top:0,left:"50%",transform:"translateX(-50%)"},width:2,height:256,viewBox:"0 0 2 256",fill:"none",children:k.jsx("line",{x1:"1",y1:"0",x2:"1",y2:256,stroke:"#9B9B9B",strokeWidth:"2",strokeDasharray:"4",children:e&&k.jsx("animate",{attributeName:"stroke-dashoffset",from:256,to:"0",dur:`${256/32}s`,repeatCount:"indefinite"})})})}),Ph=({variant:e,node:t})=>{const{id:n,status:r,gpuName:i,gpuMemory:a}=t||{status:"waiting"},{palette:s}=qa(),{main:o,lighter:u}=r==="waiting"?{main:s.grey[800],lighter:s.grey[250]}:s[Px[r]],l=r==="failed"?.2:void 0,c=Lx[r];return k.jsxs(Nx,{component:e==="list"?mo:Ar,variant:"outlined",sx:{opacity:l,padding:e==="menu"?0:void 0,height:e==="menu"?"2.5rem":void 0},children:[k.jsx(Rx,{children:k.jsx(S8,{})}),k.jsx(Mx,{children:t&&k.jsx(Xe,{sx:e==="menu"?{position:"absolute",top:"50%",left:0,right:0,transform:"translateY(-50%)"}:void 0,children:k.jsxs(Ge,{variant:"body1",sx:{fontWeight:500},children:[i," ",a,"GB"]})})||k.jsx(F7,{width:"8rem",height:"1.25rem"})}),t&&k.jsxs(Dx,{sx:{color:o},...r==="waiting"&&{animate:{rotate:360},transition:{repeat:1/0,ease:"linear",duration:2}},variant:e,children:[e==="list"&&k.jsx(c,{size:18}),e==="menu"&&k.jsx(B8,{size:10})]})]})},xs=({variant:e="list",...t})=>{const[{clusterInfo:{initNodesNumber:n},nodeInfoList:r}]=$a(),[{status:i}]=Zl(),{length:a}=r;return k.jsx(kx,{...t,children:k.jsxs(Ix,{variant:e,children:[r.map((s,o)=>[e==="menu"&&o>0&&k.jsx(_x,{animate:i==="generating"},`${s.id}-dash`),k.jsx(Ph,{variant:e,node:s},s.id)]),n>a&&Array.from({length:n-a}).map((s,o)=>k.jsx(Ph,{variant:e},o))]})})},Bx={small:1,medium:1.25,large:2.25},Fx=ue(j0)(({theme:e,size:t})=>{const n=`${Bx[t]}rem`;return{position:"relative",width:n,height:n,display:"inline-flex",flexFlow:"row nowrap",justifyContent:"center",alignItems:"center"}}),ou=ue(j0)(({theme:e})=>({flex:1,aspectRatio:1,borderRadius:"50%",backgroundColor:"currentColor"})),uu={pulse:{scale:[0,.6,0,0],keyTimes:[0,.3,.6,1],transition:{duration:2,repeat:1/0,ease:"linear"}}},Hx={staggerChildren:.25,staggerDirection:1},zx=L.forwardRef(({size:e="medium"},t)=>k.jsxs(Fx,{ref:t,size:e,animate:"pulse",transition:Hx,children:[k.jsx(ou,{variants:uu},1),k.jsx(ou,{variants:uu},2),k.jsx(ou,{variants:uu},3)]}));function Lh(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function s2(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ux=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jx={};function Oh(e,t){return(jx.jsx?Vx:Ux).test(e)}const qx=/[ \t\n\f\r]/g;function $x(e){return typeof e=="object"?e.type==="text"?_h(e.value):!1:_h(e)}function _h(e){return e.replace(qx,"")===""}let Za=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Za.prototype.normal={};Za.prototype.property={};Za.prototype.space=void 0;function o2(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Za(n,r,t)}function Fa(e){return e.toLowerCase()}let an=class{constructor(t,n){this.attribute=n,this.property=t}};an.prototype.attribute="";an.prototype.booleanish=!1;an.prototype.boolean=!1;an.prototype.commaOrSpaceSeparated=!1;an.prototype.commaSeparated=!1;an.prototype.defined=!1;an.prototype.mustUseProperty=!1;an.prototype.number=!1;an.prototype.overloadedBoolean=!1;an.prototype.property="";an.prototype.spaceSeparated=!1;an.prototype.space=void 0;let Wx=0;const Le=ti(),Mt=ti(),xl=ti(),ae=ti(),tt=ti(),Ti=ti(),un=ti();function ti(){return 2**++Wx}const El=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Mt,commaOrSpaceSeparated:un,commaSeparated:Ti,number:ae,overloadedBoolean:xl,spaceSeparated:tt},Symbol.toStringTag,{value:"Module"})),lu=Object.keys(El);let q0=class extends an{constructor(t,n,r,i){let a=-1;if(super(t,n),Bh(this,"space",i),typeof r=="number")for(;++a4&&n.slice(0,4)==="data"&&Qx.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Fh,Jx);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Fh.test(a)){let s=a.replace(Kx,Zx);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=q0}return new i(r,t)}function Zx(e){return"-"+e.toLowerCase()}function Jx(e){return e.charAt(1).toUpperCase()}const Co=o2([u2,Yx,d2,h2,f2],"html"),Fi=o2([u2,Gx,d2,h2,f2],"svg");function Hh(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function p2(e){return e.join(" ").trim()}var oi={},cu,zh;function eE(){if(zh)return cu;zh=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,u=` +`,l="/",c="*",d="",p="comment",f="declaration";cu=function(v,E){if(typeof v!="string")throw new TypeError("First argument must be a string");if(!v)return[];E=E||{};var y=1,w=1;function x(G){var q=G.match(t);q&&(y+=q.length);var Y=G.lastIndexOf(u);w=~Y?G.length-Y:w+G.length}function I(){var G={line:y,column:w};return function(q){return q.position=new M(G),z(),q}}function M(G){this.start=G,this.end={line:y,column:w},this.source=E.source}M.prototype.content=v;function C(G){var q=new Error(E.source+":"+y+":"+w+": "+G);if(q.reason=G,q.filename=E.source,q.line=y,q.column=w,q.source=v,!E.silent)throw q}function H(G){var q=G.exec(v);if(q){var Y=q[0];return x(Y),v=v.slice(Y.length),q}}function z(){H(n)}function V(G){var q;for(G=G||[];q=P();)q!==!1&&G.push(q);return G}function P(){var G=I();if(!(l!=v.charAt(0)||c!=v.charAt(1))){for(var q=2;d!=v.charAt(q)&&(c!=v.charAt(q)||l!=v.charAt(q+1));)++q;if(q+=2,d===v.charAt(q-1))return C("End of comment missing");var Y=v.slice(2,q-2);return w+=2,x(Y),v=v.slice(q),w+=2,G({type:p,comment:Y})}}function $(){var G=I(),q=H(r);if(q){if(P(),!H(i))return C("property missing ':'");var Y=H(a),Q=G({type:f,property:b(q[0].replace(e,d)),value:Y?b(Y[0].replace(e,d)):d});return H(s),Q}}function W(){var G=[];V(G);for(var q;q=$();)q!==!1&&(G.push(q),V(G));return G}return z(),W()};function b(v){return v?v.replace(o,d):d}return cu}var Uh;function tE(){if(Uh)return oi;Uh=1;var e=oi&&oi.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=n;var t=e(eE());function n(r,i){var a=null;if(!r||typeof r!="string")return a;var s=(0,t.default)(r),o=typeof i=="function";return s.forEach(function(u){if(u.type==="declaration"){var l=u.property,c=u.value;o?i(l,c,u):c&&(a=a||{},a[l]=c)}}),a}return oi}var Zi={},Vh;function nE(){if(Vh)return Zi;Vh=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(l){return!l||n.test(l)||e.test(l)},s=function(l,c){return c.toUpperCase()},o=function(l,c){return"".concat(c,"-")},u=function(l,c){return c===void 0&&(c={}),a(l)?l:(l=l.toLowerCase(),c.reactCompat?l=l.replace(i,o):l=l.replace(r,o),l.replace(t,s))};return Zi.camelCase=u,Zi}var Ji,jh;function rE(){if(jh)return Ji;jh=1;var e=Ji&&Ji.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(tE()),n=nE();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,u){o&&u&&(s[(0,n.camelCase)(o,a)]=u)}),s}return r.default=r,Ji=r,Ji}var iE=rE();const aE=W1(iE),ko=m2("end"),Gn=m2("start");function m2(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 g2(e){const t=Gn(e),n=ko(e);if(t&&n)return{start:t,end:n}}function ya(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?qh(e.position):"start"in e||"end"in e?qh(e):"line"in e||"column"in e?Sl(e):""}function Sl(e){return $h(e&&e.line)+":"+$h(e&&e.column)}function qh(e){return Sl(e&&e.start)+"-"+Sl(e&&e.end)}function $h(e){return e&&typeof e=="number"?e:1}class jt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?a.ruleId=r:(a.source=r.slice(0,u),a.ruleId=r.slice(u+1))}if(!a.place&&a.ancestors&&a.ancestors){const u=a.ancestors[a.ancestors.length-1];u&&(a.place=u.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=ya(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}jt.prototype.file="";jt.prototype.name="";jt.prototype.reason="";jt.prototype.message="";jt.prototype.stack="";jt.prototype.column=void 0;jt.prototype.line=void 0;jt.prototype.ancestors=void 0;jt.prototype.cause=void 0;jt.prototype.fatal=void 0;jt.prototype.place=void 0;jt.prototype.ruleId=void 0;jt.prototype.source=void 0;const W0={}.hasOwnProperty,sE=new Map,oE=/[A-Z]/g,uE=new Set(["table","tbody","thead","tfoot","tr"]),lE=new Set(["td","th"]),b2="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function cE(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=yE(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=bE(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Fi:Co,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=y2(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function y2(e,t,n){if(t.type==="element")return dE(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return hE(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return pE(e,t,n);if(t.type==="mdxjsEsm")return fE(e,t);if(t.type==="root")return mE(e,t,n);if(t.type==="text")return gE(e,t)}function dE(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fi,e.schema=i),e.ancestors.push(t);const a=T2(e,t.tagName,!1),s=vE(e,t);let o=G0(e,t);return uE.has(t.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!$x(u):!0})),v2(e,s,a,t),Y0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function hE(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)}Ha(e,t.position)}function fE(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ha(e,t.position)}function pE(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Fi,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:T2(e,t.name,!0),s=TE(e,t),o=G0(e,t);return v2(e,s,a,t),Y0(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function mE(e,t,n){const r={};return Y0(r,G0(e,t)),e.create(t,e.Fragment,r,n)}function gE(e,t){return t.value}function v2(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Y0(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bE(e,t,n){return r;function r(i,a,s,o){const l=Array.isArray(s.children)?n:t;return o?l(a,s,o):l(a,s)}}function yE(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),u=Gn(r);return t(i,a,s,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function vE(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&W0.call(t.properties,i)){const a=xE(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&lE.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function TE(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Ha(e,t.position);else{const i=r.name;let a;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,a=e.evaluater.evaluateExpression(o.expression)}else Ha(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function G0(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:sE;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(hn(e,e.length,0,t),e):t}const Gh={}.hasOwnProperty;function E2(e){const t={};let n=-1;for(;++n13&&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 Dn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wt=Pr(/[A-Za-z]/),Ut=Pr(/[\dA-Za-z]/),RE=Pr(/[#-'*+\--9=?A-Z^-~]/);function no(e){return e!==null&&(e<32||e===127)}const wl=Pr(/\d/),ME=Pr(/[\dA-Fa-f]/),DE=Pr(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function Ze(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}const Io=Pr(new RegExp("\\p{P}|\\p{S}","u")),Jr=Pr(/\s/);function Pr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Hi(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ze(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(u){return Ue(u)?(e.enter(n),o(u)):t(u)}function o(u){return Ue(u)&&a++s))return;const H=t.events.length;let z=H,V,P;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(V){P=t.events[z][1].end;break}V=!0}for(y(r),C=H;Cx;){const M=n[I];t.containerState=M[1],M[0].exit.call(t,e)}n.length=x}function w(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function BE(e,t,n){return ze(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ri(e){if(e===null||Ze(e)||Jr(e))return 1;if(Io(e))return 2}function No(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},p={...e[n][1].start};Kh(d,-u),Kh(p,u),s={type:u>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:u>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=vn(l,[["enter",e[r][1],t],["exit",e[r][1],t]])),l=vn(l,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),l=vn(l,No(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=vn(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,l=vn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,hn(e,r-1,n-r+3,l),n=r+l.length-c-2;break}}for(n=-1;++n0&&Ue(C)?ze(e,w,"linePrefix",a+1)(C):w(C)}function w(C){return C===null||fe(C)?e.check(Qh,v,I)(C):(e.enter("codeFlowValue"),x(C))}function x(C){return C===null||fe(C)?(e.exit("codeFlowValue"),w(C)):(e.consume(C),x)}function I(C){return e.exit("codeFenced"),t(C)}function M(C,H,z){let V=0;return P;function P(Y){return C.enter("lineEnding"),C.consume(Y),C.exit("lineEnding"),$}function $(Y){return C.enter("codeFencedFence"),Ue(Y)?ze(C,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):W(Y)}function W(Y){return Y===o?(C.enter("codeFencedFenceSequence"),G(Y)):z(Y)}function G(Y){return Y===o?(V++,C.consume(Y),G):V>=s?(C.exit("codeFencedFenceSequence"),Ue(Y)?ze(C,q,"whitespace")(Y):q(Y)):z(Y)}function q(Y){return Y===null||fe(Y)?(C.exit("codeFencedFence"),H(Y)):z(Y)}}}function XE(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const hu={name:"codeIndented",tokenize:QE},KE={partial:!0,tokenize:ZE};function QE(e,t,n){const r=this;return i;function i(l){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(l)}function a(l){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(l):n(l)}function s(l){return l===null?u(l):fe(l)?e.attempt(KE,s,u)(l):(e.enter("codeFlowValue"),o(l))}function o(l){return l===null||fe(l)?(e.exit("codeFlowValue"),s(l)):(e.consume(l),o)}function u(l){return e.exit("codeIndented"),t(l)}}function ZE(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ze(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):fe(s)?i(s):n(s)}}const JE={name:"codeText",previous:tS,resolve:eS,tokenize:nS};function eS(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=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 tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ea(this.left,r),a.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),ea(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ea(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=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function I2(e,t,n,r,i,a,s,o,u){const l=u||Number.POSITIVE_INFINITY;let c=0;return d;function d(y){return y===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(y),e.exit(a),p):y===null||y===32||y===41||no(y)?n(y):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),v(y))}function p(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===62?(e.exit("chunkString"),e.exit(o),p(y)):y===null||y===60||fe(y)?n(y):(e.consume(y),y===92?b:f)}function b(y){return y===60||y===62||y===92?(e.consume(y),f):f(y)}function v(y){return!c&&(y===null||y===41||Ze(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(y)):c999||f===null||f===91||f===93&&!u||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||fe(f)||o++>999?(e.exit("chunkString"),c(f)):(e.consume(f),u||(u=!Ue(f)),f===92?p:d)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,d):d(f)}}function R2(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,u):n(p)}function u(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),l(p))}function l(p){return p===s?(e.exit(a),u(s)):p===null?n(p):fe(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ze(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===s||p===null||fe(p)?(e.exit("chunkString"),l(p)):(e.consume(p),p===92?d:c)}function d(p){return p===s||p===92?(e.consume(p),c):c(p)}}function va(e,t){let n;return r;function r(i){return fe(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ue(i)?ze(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const cS={name:"definition",tokenize:hS},dS={partial:!0,tokenize:fS};function hS(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return N2.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=Dn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),u):n(f)}function u(f){return Ze(f)?va(e,l)(f):l(f)}function l(f){return I2(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(dS,d,d)(f)}function d(f){return Ue(f)?ze(e,p,"whitespace")(f):p(f)}function p(f){return f===null||fe(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function fS(e,t,n){return r;function r(o){return Ze(o)?va(e,i)(o):n(o)}function i(o){return R2(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ue(o)?ze(e,s,"whitespace")(o):s(o)}function s(o){return o===null||fe(o)?t(o):n(o)}}const pS={name:"hardBreakEscape",tokenize:mS};function mS(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return fe(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const gS={name:"headingAtx",resolve:bS,tokenize:yS};function bS(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},hn(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function yS(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Ze(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||fe(c)?(e.exit("atxHeading"),t(c)):Ue(c)?ze(e,o,"whitespace")(c):(e.enter("atxHeadingText"),l(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),o(c))}function l(c){return c===null||c===35||Ze(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),l)}}const vS=["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"],Jh=["pre","script","style","textarea"],TS={concrete:!0,name:"htmlFlow",resolveTo:SS,tokenize:wS},xS={partial:!0,tokenize:CS},ES={partial:!0,tokenize:AS};function SS(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 wS(e,t,n){const r=this;let i,a,s,o,u;return l;function l(B){return c(B)}function c(B){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(B),d}function d(B){return B===33?(e.consume(B),p):B===47?(e.consume(B),a=!0,v):B===63?(e.consume(B),i=3,r.interrupt?t:R):Wt(B)?(e.consume(B),s=String.fromCharCode(B),E):n(B)}function p(B){return B===45?(e.consume(B),i=2,f):B===91?(e.consume(B),i=5,o=0,b):Wt(B)?(e.consume(B),i=4,r.interrupt?t:R):n(B)}function f(B){return B===45?(e.consume(B),r.interrupt?t:R):n(B)}function b(B){const xe="CDATA[";return B===xe.charCodeAt(o++)?(e.consume(B),o===xe.length?r.interrupt?t:W:b):n(B)}function v(B){return Wt(B)?(e.consume(B),s=String.fromCharCode(B),E):n(B)}function E(B){if(B===null||B===47||B===62||Ze(B)){const xe=B===47,Ie=s.toLowerCase();return!xe&&!a&&Jh.includes(Ie)?(i=1,r.interrupt?t(B):W(B)):vS.includes(s.toLowerCase())?(i=6,xe?(e.consume(B),y):r.interrupt?t(B):W(B)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(B):a?w(B):x(B))}return B===45||Ut(B)?(e.consume(B),s+=String.fromCharCode(B),E):n(B)}function y(B){return B===62?(e.consume(B),r.interrupt?t:W):n(B)}function w(B){return Ue(B)?(e.consume(B),w):P(B)}function x(B){return B===47?(e.consume(B),P):B===58||B===95||Wt(B)?(e.consume(B),I):Ue(B)?(e.consume(B),x):P(B)}function I(B){return B===45||B===46||B===58||B===95||Ut(B)?(e.consume(B),I):M(B)}function M(B){return B===61?(e.consume(B),C):Ue(B)?(e.consume(B),M):x(B)}function C(B){return B===null||B===60||B===61||B===62||B===96?n(B):B===34||B===39?(e.consume(B),u=B,H):Ue(B)?(e.consume(B),C):z(B)}function H(B){return B===u?(e.consume(B),u=null,V):B===null||fe(B)?n(B):(e.consume(B),H)}function z(B){return B===null||B===34||B===39||B===47||B===60||B===61||B===62||B===96||Ze(B)?M(B):(e.consume(B),z)}function V(B){return B===47||B===62||Ue(B)?x(B):n(B)}function P(B){return B===62?(e.consume(B),$):n(B)}function $(B){return B===null||fe(B)?W(B):Ue(B)?(e.consume(B),$):n(B)}function W(B){return B===45&&i===2?(e.consume(B),Q):B===60&&i===1?(e.consume(B),ee):B===62&&i===4?(e.consume(B),Ce):B===63&&i===3?(e.consume(B),R):B===93&&i===5?(e.consume(B),oe):fe(B)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xS,ve,G)(B)):B===null||fe(B)?(e.exit("htmlFlowData"),G(B)):(e.consume(B),W)}function G(B){return e.check(ES,q,ve)(B)}function q(B){return e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),Y}function Y(B){return B===null||fe(B)?G(B):(e.enter("htmlFlowData"),W(B))}function Q(B){return B===45?(e.consume(B),R):W(B)}function ee(B){return B===47?(e.consume(B),s="",de):W(B)}function de(B){if(B===62){const xe=s.toLowerCase();return Jh.includes(xe)?(e.consume(B),Ce):W(B)}return Wt(B)&&s.length<8?(e.consume(B),s+=String.fromCharCode(B),de):W(B)}function oe(B){return B===93?(e.consume(B),R):W(B)}function R(B){return B===62?(e.consume(B),Ce):B===45&&i===2?(e.consume(B),R):W(B)}function Ce(B){return B===null||fe(B)?(e.exit("htmlFlowData"),ve(B)):(e.consume(B),Ce)}function ve(B){return e.exit("htmlFlow"),t(B)}}function AS(e,t,n){const r=this;return i;function i(s){return fe(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function CS(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ja,t,n)}}const kS={name:"htmlText",tokenize:IS};function IS(e,t,n){const r=this;let i,a,s;return o;function o(R){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(R),u}function u(R){return R===33?(e.consume(R),l):R===47?(e.consume(R),M):R===63?(e.consume(R),x):Wt(R)?(e.consume(R),z):n(R)}function l(R){return R===45?(e.consume(R),c):R===91?(e.consume(R),a=0,b):Wt(R)?(e.consume(R),w):n(R)}function c(R){return R===45?(e.consume(R),f):n(R)}function d(R){return R===null?n(R):R===45?(e.consume(R),p):fe(R)?(s=d,ee(R)):(e.consume(R),d)}function p(R){return R===45?(e.consume(R),f):d(R)}function f(R){return R===62?Q(R):R===45?p(R):d(R)}function b(R){const Ce="CDATA[";return R===Ce.charCodeAt(a++)?(e.consume(R),a===Ce.length?v:b):n(R)}function v(R){return R===null?n(R):R===93?(e.consume(R),E):fe(R)?(s=v,ee(R)):(e.consume(R),v)}function E(R){return R===93?(e.consume(R),y):v(R)}function y(R){return R===62?Q(R):R===93?(e.consume(R),y):v(R)}function w(R){return R===null||R===62?Q(R):fe(R)?(s=w,ee(R)):(e.consume(R),w)}function x(R){return R===null?n(R):R===63?(e.consume(R),I):fe(R)?(s=x,ee(R)):(e.consume(R),x)}function I(R){return R===62?Q(R):x(R)}function M(R){return Wt(R)?(e.consume(R),C):n(R)}function C(R){return R===45||Ut(R)?(e.consume(R),C):H(R)}function H(R){return fe(R)?(s=H,ee(R)):Ue(R)?(e.consume(R),H):Q(R)}function z(R){return R===45||Ut(R)?(e.consume(R),z):R===47||R===62||Ze(R)?V(R):n(R)}function V(R){return R===47?(e.consume(R),Q):R===58||R===95||Wt(R)?(e.consume(R),P):fe(R)?(s=V,ee(R)):Ue(R)?(e.consume(R),V):Q(R)}function P(R){return R===45||R===46||R===58||R===95||Ut(R)?(e.consume(R),P):$(R)}function $(R){return R===61?(e.consume(R),W):fe(R)?(s=$,ee(R)):Ue(R)?(e.consume(R),$):V(R)}function W(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(e.consume(R),i=R,G):fe(R)?(s=W,ee(R)):Ue(R)?(e.consume(R),W):(e.consume(R),q)}function G(R){return R===i?(e.consume(R),i=void 0,Y):R===null?n(R):fe(R)?(s=G,ee(R)):(e.consume(R),G)}function q(R){return R===null||R===34||R===39||R===60||R===61||R===96?n(R):R===47||R===62||Ze(R)?V(R):(e.consume(R),q)}function Y(R){return R===47||R===62||Ze(R)?V(R):n(R)}function Q(R){return R===62?(e.consume(R),e.exit("htmlTextData"),e.exit("htmlText"),t):n(R)}function ee(R){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),de}function de(R){return Ue(R)?ze(e,oe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):oe(R)}function oe(R){return e.enter("htmlTextData"),s(R)}}const Q0={name:"labelEnd",resolveAll:DS,resolveTo:PS,tokenize:LS},NS={tokenize:OS},RS={tokenize:_S},MS={tokenize:BS};function DS(e){let t=-1;const n=[];for(;++t=3&&(l===null||fe(l))?(e.exit("thematicBreak"),t(l)):n(l)}function u(l){return l===i?(e.consume(l),r++,u):(e.exit("thematicBreakSequence"),Ue(l)?ze(e,o,"whitespace")(l):o(l))}}const Jt={continuation:{tokenize:YS},exit:XS,name:"list",tokenize:WS},qS={partial:!0,tokenize:KS},$S={partial:!0,tokenize:GS};function WS(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const b=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:wl(f)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Vs,n,l)(f):l(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(f)}return n(f)}function u(f){return wl(f)&&++s<10?(e.consume(f),u):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),l(f)):n(f)}function l(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(Ja,r.interrupt?n:c,e.attempt(qS,p,d))}function c(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function d(f){return Ue(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function YS(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ja,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ze(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ue(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($S,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ze(e,e.attempt(Jt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function GS(e,t,n){const r=this;return ze(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function XS(e){e.exit(this.containerState.type)}function KS(e,t,n){const r=this;return ze(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ue(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const ef={name:"setextUnderline",resolveTo:QS,tokenize:ZS};function QS(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function ZS(e,t,n){const r=this;let i;return a;function a(l){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=l,s(l)):n(l)}function s(l){return e.enter("setextHeadingLineSequence"),o(l)}function o(l){return l===i?(e.consume(l),o):(e.exit("setextHeadingLineSequence"),Ue(l)?ze(e,u,"lineSuffix")(l):u(l))}function u(l){return l===null||fe(l)?(e.exit("setextHeadingLine"),t(l)):n(l)}}const JS={tokenize:ew};function ew(e){const t=this,n=e.attempt(Ja,r,e.attempt(this.parser.constructs.flowInitial,i,ze(e,e.attempt(this.parser.constructs.flow,i,e.attempt(aS,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const tw={resolveAll:D2()},nw=M2("string"),rw=M2("text");function M2(e){return{resolveAll:D2(e==="text"?iw:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return l(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return l(c)?(n.exit("data"),a(c)):(n.consume(c),u)}function l(c){if(c===null)return!0;const d=i[c];let p=-1;if(d)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function bw(e,t){let n=-1;const r=[];let i;for(;++n0){const Se=me.tokenStack[me.tokenStack.length-1];(Se[1]||nf).call(me,void 0,Se[0])}for(ie.position={start:gr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:gr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe0){const Se=me.tokenStack[me.tokenStack.length-1];(Se[1]||nf).call(me,void 0,Se[0])}for(ie.position={start:gr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:gr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Pe=-1;++Pe1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Lw(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 Ow(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function O2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function _w(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return O2(e,t);const i={src:Fi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Bw(e,t){const n={src:Fi(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 Fw(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 Hw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return O2(e,t);const i={href:Fi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function zw(e,t){const n={href:Fi(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 Uw(e,t,n){const r=e.all(t),i=n?Vw(n):_2(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(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:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);const l={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,l),e.applyData(t,l)}function Lw(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 Ow(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function O2(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function _w(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return O2(e,t);const i={src:Hi(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Bw(e,t){const n={src:Hi(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 Fw(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 Hw(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return O2(e,t);const i={href:Hi(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function zw(e,t){const n={href:Hi(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 Uw(e,t,n){const r=e.all(t),i=n?Vw(n):_2(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(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:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function jw(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Gn(t.children[1]),u=ko(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Gw(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(sf(t.slice(i),i>0,!1)),a.join("")}function sf(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===rf||a===af;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===rf||a===af;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qw(e,t){const n={type:"text",value:Kw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Zw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jw={blockquote:Iw,break:Nw,code:Rw,delete:Mw,emphasis:Dw,footnoteReference:Pw,heading:Lw,html:Ow,imageReference:_w,image:Bw,inlineCode:Fw,linkReference:Hw,link:zw,listItem:Uw,list:jw,paragraph:qw,root:$w,strong:Ww,table:Yw,tableCell:Xw,tableRow:Gw,text:Qw,thematicBreak:Zw,toml:Es,yaml:Es,definition:Es,footnoteDefinition:Es};function Es(){}const B2=-1,Ro=0,va=1,ro=2,Z0=3,J0=4,ec=5,tc=6,F2=7,H2=8,of=typeof self=="object"?self:globalThis,eA=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Ro:case B2:return n(s,i);case va:{const o=n([],i);for(const u of s)o.push(r(u));return o}case ro:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case Z0:return n(new Date(s),i);case J0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case ec:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case tc:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case F2:{const{name:o,message:u}=s;return n(new of[o](u),i)}case H2:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new of[a](s),i)};return r},uf=e=>eA(new Map,e)(0),ui="",{toString:tA}={},{keys:nA}=Object,ea=e=>{const t=typeof e;if(t!=="object"||!e)return[Ro,t];const n=tA.call(e).slice(8,-1);switch(n){case"Array":return[va,ui];case"Object":return[ro,ui];case"Date":return[Z0,ui];case"RegExp":return[J0,ui];case"Map":return[ec,ui];case"Set":return[tc,ui];case"DataView":return[va,n]}return n.includes("Array")?[va,n]:n.includes("Error")?[F2,n]:[ro,n]},Ss=([e,t])=>e===Ro&&(t==="function"||t==="symbol"),rA=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=ea(s);switch(o){case Ro:{let c=s;switch(u){case"bigint":o=H2,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([B2],s)}return i([o,c],s)}case va:{if(u){let p=s;return u==="DataView"?p=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(s)),i([u,[...p]],s)}const c=[],d=i([o,c],s);for(const p of s)c.push(a(p));return d}case ro:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const p of nA(s))(e||!Ss(ea(s[p])))&&c.push([a(p),a(s[p])]);return d}case Z0:return i([o,s.toISOString()],s);case J0:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case ec:{const c=[],d=i([o,c],s);for(const[p,f]of s)(e||!(Ss(ea(p))||Ss(ea(f))))&&c.push([a(p),a(f)]);return d}case tc:{const c=[],d=i([o,c],s);for(const p of s)(e||!Ss(ea(p)))&&c.push(a(p));return d}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},lf=(e,{json:t,lossy:n}={})=>{const r=[];return rA(!(t||n),!!t,new Map,r)(e),r},ei=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?uf(lf(e,t)):structuredClone(e):(e,t)=>uf(lf(e,t));function iA(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 aA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sA(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||iA,r=e.options.footnoteBackLabel||aA,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,f);typeof w=="string"&&(w={type:"text",value:w}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,f),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const w=E.children[E.children.length-1];w&&w.type==="text"?w.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else c.push(...b);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(l,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ei(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`});const l={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,l),e.applyData(t,l)}function Vw(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r1}function jw(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Gn(t.children[1]),u=ko(t.children[t.children.length-1]);o&&u&&(s.position={start:o,end:u}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Gw(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let u=-1;const l=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(sf(t.slice(i),i>0,!1)),a.join("")}function sf(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===rf||a===af;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===rf||a===af;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qw(e,t){const n={type:"text",value:Kw(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Zw(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Jw={blockquote:Iw,break:Nw,code:Rw,delete:Mw,emphasis:Dw,footnoteReference:Pw,heading:Lw,html:Ow,imageReference:_w,image:Bw,inlineCode:Fw,linkReference:Hw,link:zw,listItem:Uw,list:jw,paragraph:qw,root:$w,strong:Ww,table:Yw,tableCell:Xw,tableRow:Gw,text:Qw,thematicBreak:Zw,toml:Es,yaml:Es,definition:Es,footnoteDefinition:Es};function Es(){}const B2=-1,Ro=0,Ta=1,ro=2,Z0=3,J0=4,ec=5,tc=6,F2=7,H2=8,of=typeof self=="object"?self:globalThis,eA=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Ro:case B2:return n(s,i);case Ta:{const o=n([],i);for(const u of s)o.push(r(u));return o}case ro:{const o=n({},i);for(const[u,l]of s)o[r(u)]=r(l);return o}case Z0:return n(new Date(s),i);case J0:{const{source:o,flags:u}=s;return n(new RegExp(o,u),i)}case ec:{const o=n(new Map,i);for(const[u,l]of s)o.set(r(u),r(l));return o}case tc:{const o=n(new Set,i);for(const u of s)o.add(r(u));return o}case F2:{const{name:o,message:u}=s;return n(new of[o](u),i)}case H2:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new of[a](s),i)};return r},uf=e=>eA(new Map,e)(0),ui="",{toString:tA}={},{keys:nA}=Object,ta=e=>{const t=typeof e;if(t!=="object"||!e)return[Ro,t];const n=tA.call(e).slice(8,-1);switch(n){case"Array":return[Ta,ui];case"Object":return[ro,ui];case"Date":return[Z0,ui];case"RegExp":return[J0,ui];case"Map":return[ec,ui];case"Set":return[tc,ui];case"DataView":return[Ta,n]}return n.includes("Array")?[Ta,n]:n.includes("Error")?[F2,n]:[ro,n]},Ss=([e,t])=>e===Ro&&(t==="function"||t==="symbol"),rA=(e,t,n,r)=>{const i=(s,o)=>{const u=r.push(s)-1;return n.set(o,u),u},a=s=>{if(n.has(s))return n.get(s);let[o,u]=ta(s);switch(o){case Ro:{let c=s;switch(u){case"bigint":o=H2,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([B2],s)}return i([o,c],s)}case Ta:{if(u){let p=s;return u==="DataView"?p=new Uint8Array(s.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(s)),i([u,[...p]],s)}const c=[],d=i([o,c],s);for(const p of s)c.push(a(p));return d}case ro:{if(u)switch(u){case"BigInt":return i([u,s.toString()],s);case"Boolean":case"Number":case"String":return i([u,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],d=i([o,c],s);for(const p of nA(s))(e||!Ss(ta(s[p])))&&c.push([a(p),a(s[p])]);return d}case Z0:return i([o,s.toISOString()],s);case J0:{const{source:c,flags:d}=s;return i([o,{source:c,flags:d}],s)}case ec:{const c=[],d=i([o,c],s);for(const[p,f]of s)(e||!(Ss(ta(p))||Ss(ta(f))))&&c.push([a(p),a(f)]);return d}case tc:{const c=[],d=i([o,c],s);for(const p of s)(e||!Ss(ta(p)))&&c.push(a(p));return d}}const{message:l}=s;return i([o,{name:u,message:l}],s)};return a},lf=(e,{json:t,lossy:n}={})=>{const r=[];return rA(!(t||n),!!t,new Map,r)(e),r},ei=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?uf(lf(e,t)):structuredClone(e):(e,t)=>uf(lf(e,t));function iA(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 aA(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function sA(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||iA,r=e.options.footnoteBackLabel||aA,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u0&&b.push({type:"text",value:" "});let w=typeof n=="string"?n:n(u,f);typeof w=="string"&&(w={type:"text",value:w}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,f),className:["data-footnote-backref"]},children:Array.isArray(w)?w:[w]})}const E=c[c.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const w=E.children[E.children.length-1];w&&w.type==="text"?w.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...b)}else c.push(...b);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(l,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...ei(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` `}]}}const es=(function(e){if(e==null)return cA;if(typeof e=="function")return Mo(e);if(typeof e=="object")return Array.isArray(e)?oA(e):uA(e);if(typeof e=="string")return lA(e);throw new Error("Expected function, string, or object as test")});function oA(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let f=z2,b,v,E;if((!t||a(u,l,c[c.length-1]||void 0))&&(f=fA(n(u,c)),f[0]===Cl))return f;if("children"in u&&u.children){const y=u;if(y.children&&f[0]!==U2)for(v=(r?y.children.length:-1)+s,E=c.concat(y);v>-1&&v",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":` -`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function VC(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 za(e){return"&#x"+e.toString(16).toUpperCase()+";"}function io(e,t,n){const r=Ni(e),i=Ni(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}X2.peek=jC;function X2(e,t,n,r){const i=VC(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=io(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=za(l)+u.slice(1));const d=u.charCodeAt(u.length-1),p=io(r.after.charCodeAt(0),d,i);p.inside&&(u=u.slice(0,-1)+za(d));const f=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+u+f}function jC(e,t,n){return n.options.emphasis||"*"}function qC(e,t){let n=!1;return Do(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Cl}),!!((!e.depth||e.depth<3)&&X0(e)&&(t.options.setext||n))}function $C(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(qC(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` +`,...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),s(),l}function VC(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 za(e){return"&#x"+e.toString(16).toUpperCase()+";"}function io(e,t,n){const r=Ri(e),i=Ri(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}X2.peek=jC;function X2(e,t,n,r){const i=VC(n),a=n.enter("emphasis"),s=n.createTracker(r),o=s.move(i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=io(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=za(l)+u.slice(1));const d=u.charCodeAt(u.length-1),p=io(r.after.charCodeAt(0),d,i);p.inside&&(u=u.slice(0,-1)+za(d));const f=s.move(i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+u+f}function jC(e,t,n){return n.options.emphasis||"*"}function qC(e,t){let n=!1;return Do(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Cl}),!!((!e.depth||e.depth<3)&&X0(e)&&(t.options.setext||n))}function $C(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(qC(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` `,after:` `});return d(),c(),p+` `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` `))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),u=n.enter("phrasing");a.move(s+" ");let l=n.containerPhrasing(e,{before:"# ",after:` `,...a.current()});return/^[\t ]/.test(l)&&(l=za(l.charCodeAt(0))+l.slice(1)),l=l?s+" "+l:s,n.options.closeAtx&&(l+=" "+s),u(),o(),l}K2.peek=WC;function K2(e){return e.value||""}function WC(){return"<"}Q2.peek=YC;function Q2(e,t,n,r){const i=ic(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const u=n.createTracker(r);let l=u.move("![");return l+=u.move(n.safe(e.alt,{before:l,after:"]",...u.current()})),l+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),l+=u.move("<"),l+=u.move(n.safe(e.url,{before:l,after:">",...u.current()})),l+=u.move(">")):(o=n.enter("destinationRaw"),l+=u.move(n.safe(e.url,{before:l,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=n.enter(`title${a}`),l+=u.move(" "+i),l+=u.move(n.safe(e.title,{before:l,after:i,...u.current()})),l+=u.move(i),o()),l+=u.move(")"),s(),l}function YC(){return"!"}Z2.peek=GC;function Z2(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("![");const l=n.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function GC(){return"!"}J2.peek=XC;function J2(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}t4.peek=KC;function t4(e,t,n,r){const i=ic(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,u;if(e4(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),o(),n.stack=c,d}o=n.enter("link"),u=n.enter("label");let l=s.move("[");return l+=s.move(n.containerPhrasing(e,{before:l,after:"](",...s.current()})),l+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),l+=s.move("<"),l+=s.move(n.safe(e.url,{before:l,after:">",...s.current()})),l+=s.move(">")):(u=n.enter("destinationRaw"),l+=s.move(n.safe(e.url,{before:l,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${a}`),l+=s.move(" "+i),l+=s.move(n.safe(e.title,{before:l,after:i,...s.current()})),l+=s.move(i),u()),l+=s.move(")"),o(),l}function KC(e,t,n){return e4(e,n)?"<":"["}n4.peek=QC;function n4(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let u=o.move("[");const l=n.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(l+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:u,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!l||l!==d?u+=o.move(d+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function QC(){return"["}function ac(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 ZC(e){const t=ac(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 JC(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 r4(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 ek(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?JC(n):ac(n);const o=e.ordered?s==="."?")":".":ZC(n);let u=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.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),r4(n)===s&&c){let d=-1;for(;++d-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,o.current()),c);return u(),l;function c(d,p,f){return p?(f?"":" ".repeat(s))+d:(f?a:a+" ".repeat(s-a.length))+d}}function rk(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const ik=es(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ak(e,t,n,r){return(e.children.some(function(s){return ik(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function sk(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}i4.peek=ok;function i4(e,t,n,r){const i=sk(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let u=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const l=u.charCodeAt(0),c=io(r.before.charCodeAt(r.before.length-1),l,i);c.inside&&(u=za(l)+u.slice(1));const d=u.charCodeAt(u.length-1),p=io(r.after.charCodeAt(0),d,i);p.inside&&(u=u.slice(0,-1)+za(d));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},o+u+f}function ok(e,t,n){return n.options.strong||"*"}function uk(e,t,n,r){return n.safe(e.value,r)}function lk(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 ck(e,t,n){const r=(r4(n)+(n.options.ruleSpaces?" ":"")).repeat(lk(n));return n.options.ruleSpaces?r.slice(0,-1):r}const a4={blockquote:LC,break:Sf,code:HC,definition:UC,emphasis:X2,hardBreak:Sf,heading:$C,html:K2,image:Q2,imageReference:Z2,inlineCode:J2,link:t4,linkReference:n4,list:ek,listItem:nk,paragraph:rk,root:ak,strong:i4,text:uk,thematicBreak:ck};function dk(){return{enter:{table:hk,tableData:wf,tableHeader:wf,tableRow:pk},exit:{codeText:mk,table:fk,tableData:Au,tableHeader:Au,tableRow:Au}}}function hk(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 fk(e){this.exit(e),this.data.inTable=void 0}function pk(e){this.enter({type:"tableRow",children:[]},e)}function Au(e){this.exit(e)}function wf(e){this.enter({type:"tableCell",children:[]},e)}function mk(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,gk));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function gk(e,t){return t==="|"?t:e}function bk(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:u,tableRow:o}};function s(f,b,v,E){return l(c(f,v,E),f.align)}function o(f,b,v,E){const y=d(f,v,E),w=l([y]);return w.slice(0,w.indexOf(` -`))}function u(f,b,v,E){const y=v.enter("tableCell"),w=v.enter("phrasing"),x=v.containerPhrasing(f,{...E,before:a,after:a});return w(),y(),x}function l(f,b){return DC(f,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(f,b,v){const E=f.children;let y=-1;const w=[],x=b.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ok={tokenize:jk,partial:!0};function _k(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zk,continuation:{tokenize:Uk},exit:Vk}},text:{91:{name:"gfmFootnoteCall",tokenize:Hk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Bk,resolveTo:Fk}}}}function Bk(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=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(!s||!s._balanced)return n(u);const l=Dn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Fk(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Hk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;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",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ze(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Dn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ze(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function zk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=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"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ze(b))return n(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ze(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),ze(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function Uk(e,t,n){return e.check(Ja,t,e.attempt(Ok,t,n))}function Vk(e){e.exit("gfmFootnoteDefinition")}function jk(e,t,n){const r=this;return ze(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function qk(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,f);if(d<2&&!n)return u(b);const E=s.exit("strikethroughSequenceTemporary"),y=Ni(b);return E._open=!y||y===2&&!!v,E._close=!v||v===2&&!!y,o(b)}}}class $k{constructor(){this.map=[]}add(t,n,r){Wk(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function Wk(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const W=$>-1?r.events[$][1].type:null,G=W==="tableHead"||W==="tableRow"?C:u;return G===C&&r.parser.lazy[r.now().line]?n(L):G(L)}function u(L){return e.enter("tableHead"),e.enter("tableRow"),l(L)}function l(L){return L===124||(s=!0,a+=1),c(L)}function c(L){return L===null?n(L):fe(L)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),f):n(L):Ue(L)?ze(e,c,"whitespace")(L):(a+=1,s&&(s=!1,i+=1),L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(L)))}function d(L){return L===null||L===124||Ze(L)?(e.exit("data"),c(L)):(e.consume(L),L===92?p:d)}function p(L){return L===92||L===124?(e.consume(L),d):d(L)}function f(L){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(L):(e.enter("tableDelimiterRow"),s=!1,Ue(L)?ze(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):b(L))}function b(L){return L===45||L===58?E(L):L===124?(s=!0,e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),v):M(L)}function v(L){return Ue(L)?ze(e,E,"whitespace")(L):E(L)}function E(L){return L===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),y):L===45?(a+=1,y(L)):L===null||fe(L)?I(L):M(L)}function y(L){return L===45?(e.enter("tableDelimiterFiller"),w(L)):M(L)}function w(L){return L===45?(e.consume(L),w):L===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(L),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(L))}function x(L){return Ue(L)?ze(e,I,"whitespace")(L):I(L)}function I(L){return L===124?b(L):L===null||fe(L)?!s||i!==a?M(L):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(L)):M(L)}function M(L){return n(L)}function C(L){return e.enter("tableRow"),H(L)}function H(L){return L===124?(e.enter("tableCellDivider"),e.consume(L),e.exit("tableCellDivider"),H):L===null||fe(L)?(e.exit("tableRow"),t(L)):Ue(L)?ze(e,H,"whitespace")(L):(e.enter("data"),z(L))}function z(L){return L===null||L===124||Ze(L)?(e.exit("data"),H(L)):(e.consume(L),L===92?V:z)}function V(L){return L===92||L===124?(e.consume(L),z):z(L)}}function Kk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const p=new $k;for(;++nn[2]+1){const b=n[2]+1,v=n[3]-n[2]-1;e.add(b,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},di(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Cf(e,t,n,r,i){const a=[],s=di(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function di(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Qk={name:"tasklistCheck",tokenize:Jk};function Zk(){return{text:{91:Qk}}}function Jk(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ze(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return fe(u)?t(u):Ue(u)?e.check({tokenize:eI},t,n)(u):n(u)}}function eI(e,t,n){return ze(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function tI(e){return E2([Ck(),_k(),qk(e),Gk(),Zk()])}const nI={};function kf(e){const t=this,n=e||nI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tI(n)),a.push(Ek()),s.push(Sk(n))}function rI(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function iI(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` +`))}function u(f,b,v,E){const y=v.enter("tableCell"),w=v.enter("phrasing"),x=v.containerPhrasing(f,{...E,before:a,after:a});return w(),y(),x}function l(f,b){return DC(f,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(f,b,v){const E=f.children;let y=-1;const w=[],x=b.enter("table");for(;++y0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Ok={tokenize:jk,partial:!0};function _k(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zk,continuation:{tokenize:Uk},exit:Vk}},text:{91:{name:"gfmFootnoteCall",tokenize:Hk},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Bk,resolveTo:Fk}}}}function Bk(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){s=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(!s||!s._balanced)return n(u);const l=Dn(r.sliceSerialize({start:s.end,end:r.now()}));return l.codePointAt(0)!==94||!a.includes(l.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function Fk(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Hk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;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",l)}function l(d){if(a>999||d===93&&!s||d===null||d===91||Ze(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Dn(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Ze(d)||(s=!0),a++,e.consume(d),d===92?c:l}function c(d){return d===91||d===92||d===93?(e.consume(d),a++,l):l(d)}}function zk(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=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"),l}function l(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||Ze(b))return n(b);if(b===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return a=Dn(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Ze(b)||(o=!0),s++,e.consume(b),b===92?d:c}function d(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),ze(e,f,"gfmFootnoteDefinitionWhitespace")):n(b)}function f(b){return t(b)}}function Uk(e,t,n){return e.check(Ja,t,e.attempt(Ok,t,n))}function Vk(e){e.exit("gfmFootnoteDefinition")}function jk(e,t,n){const r=this;return ze(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function qk(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let u=-1;for(;++u1?u(b):(s.consume(b),d++,f);if(d<2&&!n)return u(b);const E=s.exit("strikethroughSequenceTemporary"),y=Ri(b);return E._open=!y||y===2&&!!v,E._close=!v||v===2&&!!y,o(b)}}}class $k{constructor(){this.map=[]}add(t,n,r){Wk(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function Wk(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const q=r.events[$][1].type;if(q==="lineEnding"||q==="linePrefix")$--;else break}const W=$>-1?r.events[$][1].type:null,G=W==="tableHead"||W==="tableRow"?C:u;return G===C&&r.parser.lazy[r.now().line]?n(P):G(P)}function u(P){return e.enter("tableHead"),e.enter("tableRow"),l(P)}function l(P){return P===124||(s=!0,a+=1),c(P)}function c(P){return P===null?n(P):fe(P)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),f):n(P):Ue(P)?ze(e,c,"whitespace")(P):(a+=1,s&&(s=!1,i+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||Ze(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?p:d)}function p(P){return P===92||P===124?(e.consume(P),d):d(P)}function f(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,Ue(P)?ze(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?E(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),v):M(P)}function v(P){return Ue(P)?ze(e,E,"whitespace")(P):E(P)}function E(P){return P===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),y):P===45?(a+=1,y(P)):P===null||fe(P)?I(P):M(P)}function y(P){return P===45?(e.enter("tableDelimiterFiller"),w(P)):M(P)}function w(P){return P===45?(e.consume(P),w):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(P))}function x(P){return Ue(P)?ze(e,I,"whitespace")(P):I(P)}function I(P){return P===124?b(P):P===null||fe(P)?!s||i!==a?M(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):M(P)}function M(P){return n(P)}function C(P){return e.enter("tableRow"),H(P)}function H(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),H):P===null||fe(P)?(e.exit("tableRow"),t(P)):Ue(P)?ze(e,H,"whitespace")(P):(e.enter("data"),z(P))}function z(P){return P===null||P===124||Ze(P)?(e.exit("data"),H(P)):(e.consume(P),P===92?V:z)}function V(P){return P===92||P===124?(e.consume(P),z):z(P)}}function Kk(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,u=0,l,c,d;const p=new $k;for(;++nn[2]+1){const b=n[2]+1,v=n[3]-n[2]-1;e.add(b,v,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(a.end=Object.assign({},di(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Cf(e,t,n,r,i){const a=[],s=di(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function di(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Qk={name:"tasklistCheck",tokenize:Jk};function Zk(){return{text:{91:Qk}}}function Jk(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return Ze(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),s):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),s):n(u)}function s(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(u)}function o(u){return fe(u)?t(u):Ue(u)?e.check({tokenize:eI},t,n)(u):n(u)}}function eI(e,t,n){return ze(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function tI(e){return E2([Ck(),_k(),qk(e),Gk(),Zk()])}const nI={};function kf(e){const t=this,n=e||nI,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tI(n)),a.push(Ek()),s.push(Sk(n))}function rI(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:n,mathFlowValue:o,mathText:s,mathTextData:o}};function e(u){const l={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[l]}},u)}function t(){this.buffer()}function n(){const u=this.resume(),l=this.stack[this.stack.length-1];l.type,l.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const l=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l;const d=c.data.hChildren[0];d.type,d.tagName,d.children.push({type:"text",value:l}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function s(u){const l=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=l,c.data.hChildren.push({type:"text",value:l})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function iI(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` `,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(a,s,o,u){const l=a.value||"",c=o.createTracker(u),d="$".repeat(Math.max(G2(l,"$")+1,2)),p=o.enter("mathFlow");let f=c.move(d);if(a.meta){const b=o.enter("mathFlowMeta");f+=c.move(o.safe(a.meta,{after:` `,before:f,encode:["$"],...c.current()})),b()}return f+=c.move(` `),l&&(f+=c.move(l+` -`)),f+=c.move(d),p(),f}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},bI=/[&><"']/g;function yI(e){return String(e).replace(bI,t=>gI[t])}var p4=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},vI=function(t){var n=p4(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},TI=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},xI=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},ge={contains:hI,deflt:fI,escape:yI,hyphenate:mI,getBaseElem:p4,isCharacterBox:vI,protocolFromUrl:xI},js={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function EI(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class oc{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in js)if(js.hasOwnProperty(n)){var r=js[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:EI(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new re("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=ge.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class br{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return _n[SI[this.id]]}sub(){return _n[wI[this.id]]}fracNum(){return _n[AI[this.id]]}fracDen(){return _n[CI[this.id]]}cramp(){return _n[kI[this.id]]}text(){return _n[II[this.id]]}isTight(){return this.size>=2}}var uc=0,ao=1,xi=2,rr=3,Ua=4,xn=5,Ri=6,Gt=7,_n=[new br(uc,0,!1),new br(ao,0,!0),new br(xi,1,!1),new br(rr,1,!0),new br(Ua,2,!1),new br(xn,2,!0),new br(Ri,3,!1),new br(Gt,3,!0)],SI=[Ua,xn,Ua,xn,Ri,Gt,Ri,Gt],wI=[xn,xn,xn,xn,Gt,Gt,Gt,Gt],AI=[xi,rr,Ua,xn,Ri,Gt,Ri,Gt],CI=[rr,rr,xn,xn,Gt,Gt,Gt,Gt],kI=[ao,ao,rr,rr,xn,xn,Gt,Gt],II=[uc,ao,xi,rr,xi,rr,xi,rr],ye={DISPLAY:_n[uc],TEXT:_n[xi],SCRIPT:_n[Ua],SCRIPTSCRIPT:_n[Ri]},Ml=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function NI(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var qs=[];Ml.forEach(e=>e.blocks.forEach(t=>qs.push(...t)));function m4(e){for(var t=0;t=qs[t]&&e<=qs[t+1])return!0;return!1}var li=80,RI=function(t,n){return"M95,"+(622+t+n)+` +`)),f+=c.move(d),p(),f}function r(a,s,o){let u=a.value||"",l=1;for(t||l++;new RegExp("(^|[^$])"+"\\$".repeat(l)+"([^$]|$)").test(u);)l++;const c="$".repeat(l);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let d=-1;for(;++d15?l="…"+o.slice(i-15,i):l=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},bI=/[&><"']/g;function yI(e){return String(e).replace(bI,t=>gI[t])}var p4=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},vI=function(t){var n=p4(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},TI=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},xI=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},ge={contains:hI,deflt:fI,escape:yI,hyphenate:mI,getBaseElem:p4,isCharacterBox:vI,protocolFromUrl:xI},js={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function EI(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class oc{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in js)if(js.hasOwnProperty(n)){var r=js[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:EI(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new re("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=ge.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class br{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return _n[SI[this.id]]}sub(){return _n[wI[this.id]]}fracNum(){return _n[AI[this.id]]}fracDen(){return _n[CI[this.id]]}cramp(){return _n[kI[this.id]]}text(){return _n[II[this.id]]}isTight(){return this.size>=2}}var uc=0,ao=1,xi=2,rr=3,Ua=4,xn=5,Mi=6,Gt=7,_n=[new br(uc,0,!1),new br(ao,0,!0),new br(xi,1,!1),new br(rr,1,!0),new br(Ua,2,!1),new br(xn,2,!0),new br(Mi,3,!1),new br(Gt,3,!0)],SI=[Ua,xn,Ua,xn,Mi,Gt,Mi,Gt],wI=[xn,xn,xn,xn,Gt,Gt,Gt,Gt],AI=[xi,rr,Ua,xn,Mi,Gt,Mi,Gt],CI=[rr,rr,xn,xn,Gt,Gt,Gt,Gt],kI=[ao,ao,rr,rr,xn,xn,Gt,Gt],II=[uc,ao,xi,rr,xi,rr,xi,rr],ye={DISPLAY:_n[uc],TEXT:_n[xi],SCRIPT:_n[Ua],SCRIPTSCRIPT:_n[Mi]},Ml=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function NI(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var qs=[];Ml.forEach(e=>e.blocks.forEach(t=>qs.push(...t)));function m4(e){for(var t=0;t=qs[t]&&e<=qs[t+1])return!0;return!1}var li=80,RI=function(t,n){return"M95,"+(622+t+n)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -388,19 +388,19 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let ns=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ge.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Fn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Cs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Rf={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zI(e,t){Fn[e]=t}function lc(e,t,n){if(!Fn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Fn[t][r];if(!i&&e[0]in Rf&&(r=Rf[e[0]].charCodeAt(0),i=Fn[t][r]),!i&&n==="text"&&m4(r)&&(i=Fn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Cu={};function UI(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Cu[t]){var n=Cu[t]={cssEmPerMu:Cs.quad[t]/18};for(var r in Cs)Cs.hasOwnProperty(r)&&(n[r]=Cs[r][t])}return Cu[t]}var VI=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Mf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Df=function(t,n){return n.size<2?t:VI[t-1][n.size-1]};class er{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||er.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Mf[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new er(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Df(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Mf[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Df(er.BASESIZE,t);return this.size===n&&this.textSize===er.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==er.BASESIZE?["sizing","reset-size"+this.size,"size"+er.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=UI(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}er.BASESIZE=6;var Dl={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},jI={ex:!0,em:!0,mu:!0},g4=function(t){return typeof t!="string"&&(t=t.unit),t in Dl||t in jI||t==="ex"},pt=function(t,n){var r;if(t.unit in Dl)r=Dl[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new re("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},le=function(t){return+t.toFixed(4)+"em"},Ir=function(t){return t.filter(n=>n).join(" ")},b4=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},y4=function(t){var n=document.createElement(t);n.className=Ir(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,v4=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+ge.escape(Ir(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+ge.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(qI.test(a))throw new re("Invalid attribute name '"+a+"'");n+=" "+a+'="'+ge.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class rs{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,b4.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return y4.call(this,"span")}toMarkup(){return v4.call(this,"span")}}class cc{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,b4.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return y4.call(this,"a")}toMarkup(){return v4.call(this,"a")}}class $I{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ge.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+ge.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=le(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ir(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ge.escape(r)+'"');var a=ge.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class cr{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class Pl{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var GI={bin:1,close:1,inner:1,open:1,punct:1,rel:1},XI={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},rt={math:{},text:{}};function m(e,t,n,r,i,a){rt[e][i]={font:t,group:n,replace:r},a&&r&&(rt[e][r]=rt[e][i])}var g="math",Z="text",T="main",D="ams",dt="accent-token",he="bin",Xt="close",Hi="inner",be="mathord",Lt="op-token",gn="open",Po="punct",O="rel",pr="spacing",F="textord";m(g,T,O,"≡","\\equiv",!0);m(g,T,O,"≺","\\prec",!0);m(g,T,O,"≻","\\succ",!0);m(g,T,O,"∼","\\sim",!0);m(g,T,O,"⊥","\\perp");m(g,T,O,"⪯","\\preceq",!0);m(g,T,O,"⪰","\\succeq",!0);m(g,T,O,"≃","\\simeq",!0);m(g,T,O,"∣","\\mid",!0);m(g,T,O,"≪","\\ll",!0);m(g,T,O,"≫","\\gg",!0);m(g,T,O,"≍","\\asymp",!0);m(g,T,O,"∥","\\parallel");m(g,T,O,"⋈","\\bowtie",!0);m(g,T,O,"⌣","\\smile",!0);m(g,T,O,"⊑","\\sqsubseteq",!0);m(g,T,O,"⊒","\\sqsupseteq",!0);m(g,T,O,"≐","\\doteq",!0);m(g,T,O,"⌢","\\frown",!0);m(g,T,O,"∋","\\ni",!0);m(g,T,O,"∝","\\propto",!0);m(g,T,O,"⊢","\\vdash",!0);m(g,T,O,"⊣","\\dashv",!0);m(g,T,O,"∋","\\owns");m(g,T,Po,".","\\ldotp");m(g,T,Po,"⋅","\\cdotp");m(g,T,F,"#","\\#");m(Z,T,F,"#","\\#");m(g,T,F,"&","\\&");m(Z,T,F,"&","\\&");m(g,T,F,"ℵ","\\aleph",!0);m(g,T,F,"∀","\\forall",!0);m(g,T,F,"ℏ","\\hbar",!0);m(g,T,F,"∃","\\exists",!0);m(g,T,F,"∇","\\nabla",!0);m(g,T,F,"♭","\\flat",!0);m(g,T,F,"ℓ","\\ell",!0);m(g,T,F,"♮","\\natural",!0);m(g,T,F,"♣","\\clubsuit",!0);m(g,T,F,"℘","\\wp",!0);m(g,T,F,"♯","\\sharp",!0);m(g,T,F,"♢","\\diamondsuit",!0);m(g,T,F,"ℜ","\\Re",!0);m(g,T,F,"♡","\\heartsuit",!0);m(g,T,F,"ℑ","\\Im",!0);m(g,T,F,"♠","\\spadesuit",!0);m(g,T,F,"§","\\S",!0);m(Z,T,F,"§","\\S");m(g,T,F,"¶","\\P",!0);m(Z,T,F,"¶","\\P");m(g,T,F,"†","\\dag");m(Z,T,F,"†","\\dag");m(Z,T,F,"†","\\textdagger");m(g,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\textdaggerdbl");m(g,T,Xt,"⎱","\\rmoustache",!0);m(g,T,gn,"⎰","\\lmoustache",!0);m(g,T,Xt,"⟯","\\rgroup",!0);m(g,T,gn,"⟮","\\lgroup",!0);m(g,T,he,"∓","\\mp",!0);m(g,T,he,"⊖","\\ominus",!0);m(g,T,he,"⊎","\\uplus",!0);m(g,T,he,"⊓","\\sqcap",!0);m(g,T,he,"∗","\\ast");m(g,T,he,"⊔","\\sqcup",!0);m(g,T,he,"◯","\\bigcirc",!0);m(g,T,he,"∙","\\bullet",!0);m(g,T,he,"‡","\\ddagger");m(g,T,he,"≀","\\wr",!0);m(g,T,he,"⨿","\\amalg");m(g,T,he,"&","\\And");m(g,T,O,"⟵","\\longleftarrow",!0);m(g,T,O,"⇐","\\Leftarrow",!0);m(g,T,O,"⟸","\\Longleftarrow",!0);m(g,T,O,"⟶","\\longrightarrow",!0);m(g,T,O,"⇒","\\Rightarrow",!0);m(g,T,O,"⟹","\\Longrightarrow",!0);m(g,T,O,"↔","\\leftrightarrow",!0);m(g,T,O,"⟷","\\longleftrightarrow",!0);m(g,T,O,"⇔","\\Leftrightarrow",!0);m(g,T,O,"⟺","\\Longleftrightarrow",!0);m(g,T,O,"↦","\\mapsto",!0);m(g,T,O,"⟼","\\longmapsto",!0);m(g,T,O,"↗","\\nearrow",!0);m(g,T,O,"↩","\\hookleftarrow",!0);m(g,T,O,"↪","\\hookrightarrow",!0);m(g,T,O,"↘","\\searrow",!0);m(g,T,O,"↼","\\leftharpoonup",!0);m(g,T,O,"⇀","\\rightharpoonup",!0);m(g,T,O,"↙","\\swarrow",!0);m(g,T,O,"↽","\\leftharpoondown",!0);m(g,T,O,"⇁","\\rightharpoondown",!0);m(g,T,O,"↖","\\nwarrow",!0);m(g,T,O,"⇌","\\rightleftharpoons",!0);m(g,D,O,"≮","\\nless",!0);m(g,D,O,"","\\@nleqslant");m(g,D,O,"","\\@nleqq");m(g,D,O,"⪇","\\lneq",!0);m(g,D,O,"≨","\\lneqq",!0);m(g,D,O,"","\\@lvertneqq");m(g,D,O,"⋦","\\lnsim",!0);m(g,D,O,"⪉","\\lnapprox",!0);m(g,D,O,"⊀","\\nprec",!0);m(g,D,O,"⋠","\\npreceq",!0);m(g,D,O,"⋨","\\precnsim",!0);m(g,D,O,"⪹","\\precnapprox",!0);m(g,D,O,"≁","\\nsim",!0);m(g,D,O,"","\\@nshortmid");m(g,D,O,"∤","\\nmid",!0);m(g,D,O,"⊬","\\nvdash",!0);m(g,D,O,"⊭","\\nvDash",!0);m(g,D,O,"⋪","\\ntriangleleft");m(g,D,O,"⋬","\\ntrianglelefteq",!0);m(g,D,O,"⊊","\\subsetneq",!0);m(g,D,O,"","\\@varsubsetneq");m(g,D,O,"⫋","\\subsetneqq",!0);m(g,D,O,"","\\@varsubsetneqq");m(g,D,O,"≯","\\ngtr",!0);m(g,D,O,"","\\@ngeqslant");m(g,D,O,"","\\@ngeqq");m(g,D,O,"⪈","\\gneq",!0);m(g,D,O,"≩","\\gneqq",!0);m(g,D,O,"","\\@gvertneqq");m(g,D,O,"⋧","\\gnsim",!0);m(g,D,O,"⪊","\\gnapprox",!0);m(g,D,O,"⊁","\\nsucc",!0);m(g,D,O,"⋡","\\nsucceq",!0);m(g,D,O,"⋩","\\succnsim",!0);m(g,D,O,"⪺","\\succnapprox",!0);m(g,D,O,"≆","\\ncong",!0);m(g,D,O,"","\\@nshortparallel");m(g,D,O,"∦","\\nparallel",!0);m(g,D,O,"⊯","\\nVDash",!0);m(g,D,O,"⋫","\\ntriangleright");m(g,D,O,"⋭","\\ntrianglerighteq",!0);m(g,D,O,"","\\@nsupseteqq");m(g,D,O,"⊋","\\supsetneq",!0);m(g,D,O,"","\\@varsupsetneq");m(g,D,O,"⫌","\\supsetneqq",!0);m(g,D,O,"","\\@varsupsetneqq");m(g,D,O,"⊮","\\nVdash",!0);m(g,D,O,"⪵","\\precneqq",!0);m(g,D,O,"⪶","\\succneqq",!0);m(g,D,O,"","\\@nsubseteqq");m(g,D,he,"⊴","\\unlhd");m(g,D,he,"⊵","\\unrhd");m(g,D,O,"↚","\\nleftarrow",!0);m(g,D,O,"↛","\\nrightarrow",!0);m(g,D,O,"⇍","\\nLeftarrow",!0);m(g,D,O,"⇏","\\nRightarrow",!0);m(g,D,O,"↮","\\nleftrightarrow",!0);m(g,D,O,"⇎","\\nLeftrightarrow",!0);m(g,D,O,"△","\\vartriangle");m(g,D,F,"ℏ","\\hslash");m(g,D,F,"▽","\\triangledown");m(g,D,F,"◊","\\lozenge");m(g,D,F,"Ⓢ","\\circledS");m(g,D,F,"®","\\circledR");m(Z,D,F,"®","\\circledR");m(g,D,F,"∡","\\measuredangle",!0);m(g,D,F,"∄","\\nexists");m(g,D,F,"℧","\\mho");m(g,D,F,"Ⅎ","\\Finv",!0);m(g,D,F,"⅁","\\Game",!0);m(g,D,F,"‵","\\backprime");m(g,D,F,"▲","\\blacktriangle");m(g,D,F,"▼","\\blacktriangledown");m(g,D,F,"■","\\blacksquare");m(g,D,F,"⧫","\\blacklozenge");m(g,D,F,"★","\\bigstar");m(g,D,F,"∢","\\sphericalangle",!0);m(g,D,F,"∁","\\complement",!0);m(g,D,F,"ð","\\eth",!0);m(Z,T,F,"ð","ð");m(g,D,F,"╱","\\diagup");m(g,D,F,"╲","\\diagdown");m(g,D,F,"□","\\square");m(g,D,F,"□","\\Box");m(g,D,F,"◊","\\Diamond");m(g,D,F,"¥","\\yen",!0);m(Z,D,F,"¥","\\yen",!0);m(g,D,F,"✓","\\checkmark",!0);m(Z,D,F,"✓","\\checkmark");m(g,D,F,"ℶ","\\beth",!0);m(g,D,F,"ℸ","\\daleth",!0);m(g,D,F,"ℷ","\\gimel",!0);m(g,D,F,"ϝ","\\digamma",!0);m(g,D,F,"ϰ","\\varkappa");m(g,D,gn,"┌","\\@ulcorner",!0);m(g,D,Xt,"┐","\\@urcorner",!0);m(g,D,gn,"└","\\@llcorner",!0);m(g,D,Xt,"┘","\\@lrcorner",!0);m(g,D,O,"≦","\\leqq",!0);m(g,D,O,"⩽","\\leqslant",!0);m(g,D,O,"⪕","\\eqslantless",!0);m(g,D,O,"≲","\\lesssim",!0);m(g,D,O,"⪅","\\lessapprox",!0);m(g,D,O,"≊","\\approxeq",!0);m(g,D,he,"⋖","\\lessdot");m(g,D,O,"⋘","\\lll",!0);m(g,D,O,"≶","\\lessgtr",!0);m(g,D,O,"⋚","\\lesseqgtr",!0);m(g,D,O,"⪋","\\lesseqqgtr",!0);m(g,D,O,"≑","\\doteqdot");m(g,D,O,"≓","\\risingdotseq",!0);m(g,D,O,"≒","\\fallingdotseq",!0);m(g,D,O,"∽","\\backsim",!0);m(g,D,O,"⋍","\\backsimeq",!0);m(g,D,O,"⫅","\\subseteqq",!0);m(g,D,O,"⋐","\\Subset",!0);m(g,D,O,"⊏","\\sqsubset",!0);m(g,D,O,"≼","\\preccurlyeq",!0);m(g,D,O,"⋞","\\curlyeqprec",!0);m(g,D,O,"≾","\\precsim",!0);m(g,D,O,"⪷","\\precapprox",!0);m(g,D,O,"⊲","\\vartriangleleft");m(g,D,O,"⊴","\\trianglelefteq");m(g,D,O,"⊨","\\vDash",!0);m(g,D,O,"⊪","\\Vvdash",!0);m(g,D,O,"⌣","\\smallsmile");m(g,D,O,"⌢","\\smallfrown");m(g,D,O,"≏","\\bumpeq",!0);m(g,D,O,"≎","\\Bumpeq",!0);m(g,D,O,"≧","\\geqq",!0);m(g,D,O,"⩾","\\geqslant",!0);m(g,D,O,"⪖","\\eqslantgtr",!0);m(g,D,O,"≳","\\gtrsim",!0);m(g,D,O,"⪆","\\gtrapprox",!0);m(g,D,he,"⋗","\\gtrdot");m(g,D,O,"⋙","\\ggg",!0);m(g,D,O,"≷","\\gtrless",!0);m(g,D,O,"⋛","\\gtreqless",!0);m(g,D,O,"⪌","\\gtreqqless",!0);m(g,D,O,"≖","\\eqcirc",!0);m(g,D,O,"≗","\\circeq",!0);m(g,D,O,"≜","\\triangleq",!0);m(g,D,O,"∼","\\thicksim");m(g,D,O,"≈","\\thickapprox");m(g,D,O,"⫆","\\supseteqq",!0);m(g,D,O,"⋑","\\Supset",!0);m(g,D,O,"⊐","\\sqsupset",!0);m(g,D,O,"≽","\\succcurlyeq",!0);m(g,D,O,"⋟","\\curlyeqsucc",!0);m(g,D,O,"≿","\\succsim",!0);m(g,D,O,"⪸","\\succapprox",!0);m(g,D,O,"⊳","\\vartriangleright");m(g,D,O,"⊵","\\trianglerighteq");m(g,D,O,"⊩","\\Vdash",!0);m(g,D,O,"∣","\\shortmid");m(g,D,O,"∥","\\shortparallel");m(g,D,O,"≬","\\between",!0);m(g,D,O,"⋔","\\pitchfork",!0);m(g,D,O,"∝","\\varpropto");m(g,D,O,"◀","\\blacktriangleleft");m(g,D,O,"∴","\\therefore",!0);m(g,D,O,"∍","\\backepsilon");m(g,D,O,"▶","\\blacktriangleright");m(g,D,O,"∵","\\because",!0);m(g,D,O,"⋘","\\llless");m(g,D,O,"⋙","\\gggtr");m(g,D,he,"⊲","\\lhd");m(g,D,he,"⊳","\\rhd");m(g,D,O,"≂","\\eqsim",!0);m(g,T,O,"⋈","\\Join");m(g,D,O,"≑","\\Doteq",!0);m(g,D,he,"∔","\\dotplus",!0);m(g,D,he,"∖","\\smallsetminus");m(g,D,he,"⋒","\\Cap",!0);m(g,D,he,"⋓","\\Cup",!0);m(g,D,he,"⩞","\\doublebarwedge",!0);m(g,D,he,"⊟","\\boxminus",!0);m(g,D,he,"⊞","\\boxplus",!0);m(g,D,he,"⋇","\\divideontimes",!0);m(g,D,he,"⋉","\\ltimes",!0);m(g,D,he,"⋊","\\rtimes",!0);m(g,D,he,"⋋","\\leftthreetimes",!0);m(g,D,he,"⋌","\\rightthreetimes",!0);m(g,D,he,"⋏","\\curlywedge",!0);m(g,D,he,"⋎","\\curlyvee",!0);m(g,D,he,"⊝","\\circleddash",!0);m(g,D,he,"⊛","\\circledast",!0);m(g,D,he,"⋅","\\centerdot");m(g,D,he,"⊺","\\intercal",!0);m(g,D,he,"⋒","\\doublecap");m(g,D,he,"⋓","\\doublecup");m(g,D,he,"⊠","\\boxtimes",!0);m(g,D,O,"⇢","\\dashrightarrow",!0);m(g,D,O,"⇠","\\dashleftarrow",!0);m(g,D,O,"⇇","\\leftleftarrows",!0);m(g,D,O,"⇆","\\leftrightarrows",!0);m(g,D,O,"⇚","\\Lleftarrow",!0);m(g,D,O,"↞","\\twoheadleftarrow",!0);m(g,D,O,"↢","\\leftarrowtail",!0);m(g,D,O,"↫","\\looparrowleft",!0);m(g,D,O,"⇋","\\leftrightharpoons",!0);m(g,D,O,"↶","\\curvearrowleft",!0);m(g,D,O,"↺","\\circlearrowleft",!0);m(g,D,O,"↰","\\Lsh",!0);m(g,D,O,"⇈","\\upuparrows",!0);m(g,D,O,"↿","\\upharpoonleft",!0);m(g,D,O,"⇃","\\downharpoonleft",!0);m(g,T,O,"⊶","\\origof",!0);m(g,T,O,"⊷","\\imageof",!0);m(g,D,O,"⊸","\\multimap",!0);m(g,D,O,"↭","\\leftrightsquigarrow",!0);m(g,D,O,"⇉","\\rightrightarrows",!0);m(g,D,O,"⇄","\\rightleftarrows",!0);m(g,D,O,"↠","\\twoheadrightarrow",!0);m(g,D,O,"↣","\\rightarrowtail",!0);m(g,D,O,"↬","\\looparrowright",!0);m(g,D,O,"↷","\\curvearrowright",!0);m(g,D,O,"↻","\\circlearrowright",!0);m(g,D,O,"↱","\\Rsh",!0);m(g,D,O,"⇊","\\downdownarrows",!0);m(g,D,O,"↾","\\upharpoonright",!0);m(g,D,O,"⇂","\\downharpoonright",!0);m(g,D,O,"⇝","\\rightsquigarrow",!0);m(g,D,O,"⇝","\\leadsto");m(g,D,O,"⇛","\\Rrightarrow",!0);m(g,D,O,"↾","\\restriction");m(g,T,F,"‘","`");m(g,T,F,"$","\\$");m(Z,T,F,"$","\\$");m(Z,T,F,"$","\\textdollar");m(g,T,F,"%","\\%");m(Z,T,F,"%","\\%");m(g,T,F,"_","\\_");m(Z,T,F,"_","\\_");m(Z,T,F,"_","\\textunderscore");m(g,T,F,"∠","\\angle",!0);m(g,T,F,"∞","\\infty",!0);m(g,T,F,"′","\\prime");m(g,T,F,"△","\\triangle");m(g,T,F,"Γ","\\Gamma",!0);m(g,T,F,"Δ","\\Delta",!0);m(g,T,F,"Θ","\\Theta",!0);m(g,T,F,"Λ","\\Lambda",!0);m(g,T,F,"Ξ","\\Xi",!0);m(g,T,F,"Π","\\Pi",!0);m(g,T,F,"Σ","\\Sigma",!0);m(g,T,F,"Υ","\\Upsilon",!0);m(g,T,F,"Φ","\\Phi",!0);m(g,T,F,"Ψ","\\Psi",!0);m(g,T,F,"Ω","\\Omega",!0);m(g,T,F,"A","Α");m(g,T,F,"B","Β");m(g,T,F,"E","Ε");m(g,T,F,"Z","Ζ");m(g,T,F,"H","Η");m(g,T,F,"I","Ι");m(g,T,F,"K","Κ");m(g,T,F,"M","Μ");m(g,T,F,"N","Ν");m(g,T,F,"O","Ο");m(g,T,F,"P","Ρ");m(g,T,F,"T","Τ");m(g,T,F,"X","Χ");m(g,T,F,"¬","\\neg",!0);m(g,T,F,"¬","\\lnot");m(g,T,F,"⊤","\\top");m(g,T,F,"⊥","\\bot");m(g,T,F,"∅","\\emptyset");m(g,D,F,"∅","\\varnothing");m(g,T,be,"α","\\alpha",!0);m(g,T,be,"β","\\beta",!0);m(g,T,be,"γ","\\gamma",!0);m(g,T,be,"δ","\\delta",!0);m(g,T,be,"ϵ","\\epsilon",!0);m(g,T,be,"ζ","\\zeta",!0);m(g,T,be,"η","\\eta",!0);m(g,T,be,"θ","\\theta",!0);m(g,T,be,"ι","\\iota",!0);m(g,T,be,"κ","\\kappa",!0);m(g,T,be,"λ","\\lambda",!0);m(g,T,be,"μ","\\mu",!0);m(g,T,be,"ν","\\nu",!0);m(g,T,be,"ξ","\\xi",!0);m(g,T,be,"ο","\\omicron",!0);m(g,T,be,"π","\\pi",!0);m(g,T,be,"ρ","\\rho",!0);m(g,T,be,"σ","\\sigma",!0);m(g,T,be,"τ","\\tau",!0);m(g,T,be,"υ","\\upsilon",!0);m(g,T,be,"ϕ","\\phi",!0);m(g,T,be,"χ","\\chi",!0);m(g,T,be,"ψ","\\psi",!0);m(g,T,be,"ω","\\omega",!0);m(g,T,be,"ε","\\varepsilon",!0);m(g,T,be,"ϑ","\\vartheta",!0);m(g,T,be,"ϖ","\\varpi",!0);m(g,T,be,"ϱ","\\varrho",!0);m(g,T,be,"ς","\\varsigma",!0);m(g,T,be,"φ","\\varphi",!0);m(g,T,he,"∗","*",!0);m(g,T,he,"+","+");m(g,T,he,"−","-",!0);m(g,T,he,"⋅","\\cdot",!0);m(g,T,he,"∘","\\circ",!0);m(g,T,he,"÷","\\div",!0);m(g,T,he,"±","\\pm",!0);m(g,T,he,"×","\\times",!0);m(g,T,he,"∩","\\cap",!0);m(g,T,he,"∪","\\cup",!0);m(g,T,he,"∖","\\setminus",!0);m(g,T,he,"∧","\\land");m(g,T,he,"∨","\\lor");m(g,T,he,"∧","\\wedge",!0);m(g,T,he,"∨","\\vee",!0);m(g,T,F,"√","\\surd");m(g,T,gn,"⟨","\\langle",!0);m(g,T,gn,"∣","\\lvert");m(g,T,gn,"∥","\\lVert");m(g,T,Xt,"?","?");m(g,T,Xt,"!","!");m(g,T,Xt,"⟩","\\rangle",!0);m(g,T,Xt,"∣","\\rvert");m(g,T,Xt,"∥","\\rVert");m(g,T,O,"=","=");m(g,T,O,":",":");m(g,T,O,"≈","\\approx",!0);m(g,T,O,"≅","\\cong",!0);m(g,T,O,"≥","\\ge");m(g,T,O,"≥","\\geq",!0);m(g,T,O,"←","\\gets");m(g,T,O,">","\\gt",!0);m(g,T,O,"∈","\\in",!0);m(g,T,O,"","\\@not");m(g,T,O,"⊂","\\subset",!0);m(g,T,O,"⊃","\\supset",!0);m(g,T,O,"⊆","\\subseteq",!0);m(g,T,O,"⊇","\\supseteq",!0);m(g,D,O,"⊈","\\nsubseteq",!0);m(g,D,O,"⊉","\\nsupseteq",!0);m(g,T,O,"⊨","\\models");m(g,T,O,"←","\\leftarrow",!0);m(g,T,O,"≤","\\le");m(g,T,O,"≤","\\leq",!0);m(g,T,O,"<","\\lt",!0);m(g,T,O,"→","\\rightarrow",!0);m(g,T,O,"→","\\to");m(g,D,O,"≱","\\ngeq",!0);m(g,D,O,"≰","\\nleq",!0);m(g,T,pr," ","\\ ");m(g,T,pr," ","\\space");m(g,T,pr," ","\\nobreakspace");m(Z,T,pr," ","\\ ");m(Z,T,pr," "," ");m(Z,T,pr," ","\\space");m(Z,T,pr," ","\\nobreakspace");m(g,T,pr,null,"\\nobreak");m(g,T,pr,null,"\\allowbreak");m(g,T,Po,",",",");m(g,T,Po,";",";");m(g,D,he,"⊼","\\barwedge",!0);m(g,D,he,"⊻","\\veebar",!0);m(g,T,he,"⊙","\\odot",!0);m(g,T,he,"⊕","\\oplus",!0);m(g,T,he,"⊗","\\otimes",!0);m(g,T,F,"∂","\\partial",!0);m(g,T,he,"⊘","\\oslash",!0);m(g,D,he,"⊚","\\circledcirc",!0);m(g,D,he,"⊡","\\boxdot",!0);m(g,T,he,"△","\\bigtriangleup");m(g,T,he,"▽","\\bigtriangledown");m(g,T,he,"†","\\dagger");m(g,T,he,"⋄","\\diamond");m(g,T,he,"⋆","\\star");m(g,T,he,"◃","\\triangleleft");m(g,T,he,"▹","\\triangleright");m(g,T,gn,"{","\\{");m(Z,T,F,"{","\\{");m(Z,T,F,"{","\\textbraceleft");m(g,T,Xt,"}","\\}");m(Z,T,F,"}","\\}");m(Z,T,F,"}","\\textbraceright");m(g,T,gn,"{","\\lbrace");m(g,T,Xt,"}","\\rbrace");m(g,T,gn,"[","\\lbrack",!0);m(Z,T,F,"[","\\lbrack",!0);m(g,T,Xt,"]","\\rbrack",!0);m(Z,T,F,"]","\\rbrack",!0);m(g,T,gn,"(","\\lparen",!0);m(g,T,Xt,")","\\rparen",!0);m(Z,T,F,"<","\\textless",!0);m(Z,T,F,">","\\textgreater",!0);m(g,T,gn,"⌊","\\lfloor",!0);m(g,T,Xt,"⌋","\\rfloor",!0);m(g,T,gn,"⌈","\\lceil",!0);m(g,T,Xt,"⌉","\\rceil",!0);m(g,T,F,"\\","\\backslash");m(g,T,F,"∣","|");m(g,T,F,"∣","\\vert");m(Z,T,F,"|","\\textbar",!0);m(g,T,F,"∥","\\|");m(g,T,F,"∥","\\Vert");m(Z,T,F,"∥","\\textbardbl");m(Z,T,F,"~","\\textasciitilde");m(Z,T,F,"\\","\\textbackslash");m(Z,T,F,"^","\\textasciicircum");m(g,T,O,"↑","\\uparrow",!0);m(g,T,O,"⇑","\\Uparrow",!0);m(g,T,O,"↓","\\downarrow",!0);m(g,T,O,"⇓","\\Downarrow",!0);m(g,T,O,"↕","\\updownarrow",!0);m(g,T,O,"⇕","\\Updownarrow",!0);m(g,T,Lt,"∐","\\coprod");m(g,T,Lt,"⋁","\\bigvee");m(g,T,Lt,"⋀","\\bigwedge");m(g,T,Lt,"⨄","\\biguplus");m(g,T,Lt,"⋂","\\bigcap");m(g,T,Lt,"⋃","\\bigcup");m(g,T,Lt,"∫","\\int");m(g,T,Lt,"∫","\\intop");m(g,T,Lt,"∬","\\iint");m(g,T,Lt,"∭","\\iiint");m(g,T,Lt,"∏","\\prod");m(g,T,Lt,"∑","\\sum");m(g,T,Lt,"⨂","\\bigotimes");m(g,T,Lt,"⨁","\\bigoplus");m(g,T,Lt,"⨀","\\bigodot");m(g,T,Lt,"∮","\\oint");m(g,T,Lt,"∯","\\oiint");m(g,T,Lt,"∰","\\oiiint");m(g,T,Lt,"⨆","\\bigsqcup");m(g,T,Lt,"∫","\\smallint");m(Z,T,Hi,"…","\\textellipsis");m(g,T,Hi,"…","\\mathellipsis");m(Z,T,Hi,"…","\\ldots",!0);m(g,T,Hi,"…","\\ldots",!0);m(g,T,Hi,"⋯","\\@cdots",!0);m(g,T,Hi,"⋱","\\ddots",!0);m(g,T,F,"⋮","\\varvdots");m(Z,T,F,"⋮","\\varvdots");m(g,T,dt,"ˊ","\\acute");m(g,T,dt,"ˋ","\\grave");m(g,T,dt,"¨","\\ddot");m(g,T,dt,"~","\\tilde");m(g,T,dt,"ˉ","\\bar");m(g,T,dt,"˘","\\breve");m(g,T,dt,"ˇ","\\check");m(g,T,dt,"^","\\hat");m(g,T,dt,"⃗","\\vec");m(g,T,dt,"˙","\\dot");m(g,T,dt,"˚","\\mathring");m(g,T,be,"","\\@imath");m(g,T,be,"","\\@jmath");m(g,T,F,"ı","ı");m(g,T,F,"ȷ","ȷ");m(Z,T,F,"ı","\\i",!0);m(Z,T,F,"ȷ","\\j",!0);m(Z,T,F,"ß","\\ss",!0);m(Z,T,F,"æ","\\ae",!0);m(Z,T,F,"œ","\\oe",!0);m(Z,T,F,"ø","\\o",!0);m(Z,T,F,"Æ","\\AE",!0);m(Z,T,F,"Œ","\\OE",!0);m(Z,T,F,"Ø","\\O",!0);m(Z,T,dt,"ˊ","\\'");m(Z,T,dt,"ˋ","\\`");m(Z,T,dt,"ˆ","\\^");m(Z,T,dt,"˜","\\~");m(Z,T,dt,"ˉ","\\=");m(Z,T,dt,"˘","\\u");m(Z,T,dt,"˙","\\.");m(Z,T,dt,"¸","\\c");m(Z,T,dt,"˚","\\r");m(Z,T,dt,"ˇ","\\v");m(Z,T,dt,"¨",'\\"');m(Z,T,dt,"˝","\\H");m(Z,T,dt,"◯","\\textcircled");var T4={"--":!0,"---":!0,"``":!0,"''":!0};m(Z,T,F,"–","--",!0);m(Z,T,F,"–","\\textendash");m(Z,T,F,"—","---",!0);m(Z,T,F,"—","\\textemdash");m(Z,T,F,"‘","`",!0);m(Z,T,F,"‘","\\textquoteleft");m(Z,T,F,"’","'",!0);m(Z,T,F,"’","\\textquoteright");m(Z,T,F,"“","``",!0);m(Z,T,F,"“","\\textquotedblleft");m(Z,T,F,"”","''",!0);m(Z,T,F,"”","\\textquotedblright");m(g,T,F,"°","\\degree",!0);m(Z,T,F,"°","\\degree");m(Z,T,F,"°","\\textdegree",!0);m(g,T,F,"£","\\pounds");m(g,T,F,"£","\\mathsterling",!0);m(Z,T,F,"£","\\pounds");m(Z,T,F,"£","\\textsterling",!0);m(g,D,F,"✠","\\maltese");m(Z,D,F,"✠","\\maltese");var Lf='0123456789/@."';for(var ku=0;ku0)return Mn(a,l,i,n,s.concat(c));if(u){var d,p;if(u==="boldsymbol"){var f=ZI(a,i,n,s,r);d=f.fontName,p=[f.fontClass]}else o?(d=S4[u].fontName,p=[u]):(d=Rs(u,n.fontWeight,n.fontShape),p=[u,n.fontWeight,n.fontShape]);if(Lo(a,d,i).metrics)return Mn(a,d,i,n,s.concat(p));if(T4.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],v=0;v{if(Ir(e.classes)!==Ir(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},tN=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},en=function(t,n,r,i){var a=new rs(t,n,r,i);return dc(a),a},x4=(e,t,n,r)=>new rs(e,t,n,r),nN=function(t,n,r){var i=en([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=le(i.height),i.maxFontSize=1,i},rN=function(t,n,r,i){var a=new cc(t,n,r,i);return dc(a),a},E4=function(t){var n=new ns(t);return dc(n),n},iN=function(t,n){return t instanceof ns?en([],[t],n):t},aN=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=en(["mspace"],[],t),r=pt(e,t);return n.style.marginRight=le(r),n},Rs=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},S4={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},w4={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},uN=function(t,n){var[r,i,a]=w4[t],s=new Nr(r),o=new cr([s],{width:le(i),height:le(a),style:"width:"+le(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=x4(["overlay"],[o],n);return u.height=a,u.style.height=le(a),u.style.width=le(i),u},j={fontMap:S4,makeSymbol:Mn,mathsym:QI,makeSpan:en,makeSvgSpan:x4,makeLineSpan:nN,makeAnchor:rN,makeFragment:E4,wrapFragment:iN,makeVList:sN,makeOrd:JI,makeGlue:oN,staticSvg:uN,svgData:w4,tryCombineChars:tN},ft={number:3,unit:"mu"},Hr={number:4,unit:"mu"},Jn={number:5,unit:"mu"},lN={mord:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mop:{mord:ft,mop:ft,mrel:Jn,minner:ft},mbin:{mord:Hr,mop:Hr,mopen:Hr,minner:Hr},mrel:{mord:Jn,mop:Jn,mopen:Jn,minner:Jn},mopen:{},mclose:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mpunct:{mord:ft,mop:ft,mrel:Jn,mopen:ft,mclose:ft,mpunct:ft,minner:ft},minner:{mord:ft,mop:ft,mbin:Hr,mrel:Jn,mopen:ft,mpunct:ft,minner:ft}},cN={mord:{mop:ft},mop:{mord:ft,mop:ft},mbin:{},mrel:{},mopen:{},mclose:{mop:ft},mpunct:{},minner:{mop:ft}},A4={},oo={},uo={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var E=v.classes[0],y=b.classes[0];E==="mbin"&&ge.contains(hN,y)?v.classes[0]="mord":y==="mbin"&&ge.contains(dN,E)&&(b.classes[0]="mord")},{node:d},p,f),Hf(a,(b,v)=>{var E=Ol(v),y=Ol(b),w=E&&y?b.hasClass("mtight")?cN[E][y]:lN[E][y]:null;if(w)return j.makeGlue(w,l)},{node:d},p,f),a},Hf=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(d+1,0,p),s++})(s)}i&&t.pop()},C4=function(t){return t instanceof ns||t instanceof cc||t instanceof rs&&t.hasClass("enclosing")?t:null},mN=function e(t,n){var r=C4(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Ol=function(t,n){return t?(n&&(t=mN(t,n)),pN[t.classes[0]]||null):null},Va=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return dr(n.concat(r))},We=function(t,n,r){if(!t)return dr();if(oo[t.type]){var i=oo[t.type](t,n);if(r&&n.size!==r.size){i=dr(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new re("Got group of unknown type: '"+t.type+"'")};function Ms(e,t){var n=dr(["base"],e,t),r=dr(["strut"]);return r.style.height=le(n.height+n.depth),n.depth&&(r.style.verticalAlign=le(-n.depth)),n.children.unshift(r),n}function _l(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Ot(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ms(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ms(s,t));var l;n?(l=Ms(Ot(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=dr(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=le(c.height+c.depth),c.depth&&(d.style.verticalAlign=le(-c.depth))}return c}function k4(e){return new ns(e)}class dn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ir(this.classes));for(var r=0;r0&&(t+=' class ="'+ge.escape(Ir(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Hn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ge.escape(this.toText())}toText(){return this.text}}class gN{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",le(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ne={MathNode:dn,TextNode:Hn,SpaceNode:gN,newDocumentFragment:k4},In=function(t,n,r){return rt[n][t]&&rt[n][t].replace&&t.charCodeAt(0)!==55349&&!(T4.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=rt[n][t].replace),new ne.TextNode(t)},hc=function(t){return t.length===1?t[0]:new ne.MathNode("mrow",t)},fc=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ge.contains(["\\imath","\\jmath"],a))return null;rt[i][a]&&rt[i][a].replace&&(a=rt[i][a].replace);var s=j.fontMap[r].fontName;return lc(a,s,i)?j.fontMap[r].variant:null};function Mu(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Hn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Hn&&n.text===","}else return!1}var sn=function(t,n,r){if(t.length===1){var i=Je(t[0],n);return r&&i instanceof dn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Mu(s))){var l=u.children[0];l instanceof dn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Hn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof Hn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Rr=function(t,n,r){return hc(sn(t,n,r))},Je=function(t,n){if(!t)return new ne.MathNode("mrow");if(uo[t.type]){var r=uo[t.type](t,n);return r}else throw new re("Got group of unknown type: '"+t.type+"'")};function zf(e,t,n,r,i){var a=sn(e,n),s;a.length===1&&a[0]instanceof dn&&ge.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ne.MathNode("mrow",a);var o=new ne.MathNode("annotation",[new ne.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ne.MathNode("semantics",[s,o]),l=new ne.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return j.makeSpan([c],[l])}var I4=function(t){return new er({style:t.displayMode?ye.DISPLAY:ye.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},N4=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=j.makeSpan(r,[t])}return t},bN=function(t,n,r){var i=I4(r),a;if(r.output==="mathml")return zf(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=_l(t,i);a=j.makeSpan(["katex"],[s])}else{var o=zf(t,n,i,r.displayMode,!1),u=_l(t,i);a=j.makeSpan(["katex"],[o,u])}return N4(a,r)},yN=function(t,n,r){var i=I4(r),a=_l(t,i),s=j.makeSpan(["katex"],[a]);return N4(s,r)},vN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},TN=function(t){var n=new ne.MathNode("mo",[new ne.TextNode(vN[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},xN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},EN=function(t){return t.type==="ordgroup"?t.body.length:1},SN=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(ge.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=EN(l.base),d,p,f;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,f=.42,p=u+"4"):(d=312,o=2340,f=.34,p="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],p=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var v=new Nr(p),E=new cr([v],{width:"100%",height:le(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:j.makeSvgSpan([],[E],n),minWidth:0,height:f}}else{var y=[],w=xN[u],[x,I,M]=w,C=M/1e3,H=x.length,z,V;if(H===1){var L=w[3];z=["hide-tail"],V=[L]}else if(H===2)z=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(H===3)z=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+H+" children.");for(var $=0;$0&&(i.style.minWidth=le(a)),i},wN=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=j.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new Pl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new Pl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new cr(l,{width:"100%",height:le(o)});s=j.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=le(o),s},hr={encloseSpan:wN,mathMLnode:TN,svgSpan:SN};function Oe(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function pc(e){var t=Oo(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Oo(e){return e&&(e.type==="atom"||XI.hasOwnProperty(e.type))?e:null}var mc=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=Oe(e.base,"accent"),n=r.base,e.base=n,i=YI(We(e,t)),e.base=r):(r=Oe(e,"accent"),n=r.base);var a=We(n,t.havingCrampedStyle()),s=r.isShifty&&ge.isCharacterBox(n),o=0;if(s){var u=ge.getBaseElem(n),l=We(u,t.havingCrampedStyle());o=Pf(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hr.svgSpan(r,t),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+le(2*o)+")",marginLeft:le(2*o)}:void 0}]},t);else{var f,b;r.label==="\\vec"?(f=j.staticSvg("vec",t),b=j.svgData.vec[1]):(f=j.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=Pf(f),f.italic=0,b=f.width,c&&(d+=f.depth)),p=j.makeSpan(["accent-body"],[f]);var v=r.label==="\\textcircled";v&&(p.classes.push("accent-full"),d=a.height);var E=o;v||(E-=b/2),p.style.left=le(E),r.label==="\\textcircled"&&(p.style.top=".2em"),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},t)}var y=j.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=y,i.height=Math.max(y.height,i.height),i.classes[0]="mord",i):y},R4=(e,t)=>{var n=e.isStretchy?hr.mathMLnode(e.label):new ne.MathNode("mo",[In(e.label,e.mode)]),r=new ne.MathNode("mover",[Je(e.base,t),n]);return r.setAttribute("accent","true"),r},AN=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=lo(t[0]),r=!AN.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:mc,mathmlBuilder:R4});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:mc,mathmlBuilder:R4});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=We(e.base,t),r=hr.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hr.mathMLnode(e.label),r=new ne.MathNode("munder",[Je(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ds=e=>{var t=new ne.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=j.wrapFragment(We(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=j.wrapFragment(We(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hr.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),j.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=hr.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ds(Je(e.body,t));if(e.below){var a=Ds(Je(e.below,t));r=new ne.MathNode("munderover",[n,a,i])}else r=new ne.MathNode("mover",[n,i])}else if(e.below){var s=Ds(Je(e.below,t));r=new ne.MathNode("munder",[n,s])}else r=Ds(),r=new ne.MathNode("mover",[n,r]);return r}});var CN=j.makeSpan;function M4(e,t){var n=Ot(e.body,t,!0);return CN([e.mclass],n,t)}function D4(e,t){var n,r=sn(e.body,t);return e.mclass==="minner"?n=new ne.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ne.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ne.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:It(i),isCharacterBox:ge.isCharacterBox(i)}},htmlBuilder:M4,mathmlBuilder:D4});var _o=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:_o(t[0]),body:It(t[1]),isCharacterBox:ge.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=_o(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:It(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:ge.isCharacterBox(u)}},htmlBuilder:M4,mathmlBuilder:D4});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:_o(t[0]),body:It(t[0])}},htmlBuilder(e,t){var n=Ot(e.body,t,!0),r=j.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=sn(e.body,t),r=new ne.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var kN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Uf=()=>({type:"styling",body:[],mode:"math",style:"display"}),Vf=e=>e.type==="textord"&&e.text==="@",IN=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function NN(e,t,n){var r=kN[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function RN(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new re("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var p=!0,f=u+1;fAV=|." after @',s[u]);var b=NN(l,c,e),v={type:"styling",body:[b],mode:"math",style:"display"};r.push(v),o=Uf()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var E=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:E,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=j.wrapFragment(We(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=le(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ne.MathNode("mrow",[Je(e.label,t)]);return n=new ne.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ne.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=j.wrapFragment(We(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ne.MathNode("mrow",[Je(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Oe(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new re("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var P4=(e,t)=>{var n=Ot(e.body,t.withColor(e.color),!1);return j.makeFragment(n)},L4=(e,t)=>{var n=sn(e.body,t.withColor(e.color)),r=new ne.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Oe(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:It(i)}},htmlBuilder:P4,mathmlBuilder:L4});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Oe(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:P4,mathmlBuilder:L4});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&Oe(i,"size").value}},htmlBuilder(e,t){var n=j.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=le(pt(e.size,t)))),n},mathmlBuilder(e,t){var n=new ne.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",le(pt(e.size,t)))),n}});var Bl={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},O4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new re("Expected a control sequence",e);return t},MN=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_4=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Bl[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Bl[r.text]),Oe(t.parseFunction(),"internal");throw new re("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new re("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new re('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new re('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new re("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Bl[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=O4(t.gullet.popToken());t.gullet.consumeSpaces();var i=MN(t);return _4(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=O4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return _4(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var oa=function(t,n,r){var i=rt.math[t]&&rt.math[t].replace,a=lc(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},gc=function(t,n,r,i){var a=r.havingBaseStyle(n),s=j.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},B4=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=le(a),t.height-=a,t.depth+=a},DN=function(t,n,r,i,a,s){var o=j.makeSymbol(t,"Main-Regular",a,i),u=gc(o,n,i,s);return r&&B4(u,i,n),u},PN=function(t,n,r,i){return j.makeSymbol(t,"Size"+n+"-Regular",r,i)},F4=function(t,n,r,i,a,s){var o=PN(t,n,a,i),u=gc(j.makeSpan(["delimsizing","size"+n],[o],i),ye.TEXT,i,s);return r&&B4(u,i,ye.TEXT),u},Du=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=j.makeSpan(["delimsizinginner",i],[j.makeSpan([],[j.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Pu=function(t,n,r){var i=Fn["Size4-Regular"][t.charCodeAt(0)]?Fn["Size4-Regular"][t.charCodeAt(0)][4]:Fn["Size1-Regular"][t.charCodeAt(0)][4],a=new Nr("inner",FI(t,Math.round(1e3*n))),s=new cr([a],{width:le(i),height:le(n),style:"width:"+le(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=j.makeSvgSpan([],[s],r);return o.height=n,o.style.height=le(n),o.style.width=le(i),{type:"elem",elem:o}},Fl=.008,Ps={type:"kern",size:-1*Fl},LN=["|","\\lvert","\\rvert","\\vert"],ON=["\\|","\\lVert","\\rVert","\\Vert"],H4=function(t,n,r,i,a,s){var o,u,l,c,d="",p=0;o=l=c=t,u=null;var f="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):ge.contains(LN,t)?(l="∣",d="vert",p=333):ge.contains(ON,t)?(l="∥",d="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",f="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",f="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",f="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",f="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",f="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",f="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",f="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",f="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",f="Size4-Regular");var b=oa(o,f,a),v=b.height+b.depth,E=oa(l,f,a),y=E.height+E.depth,w=oa(c,f,a),x=w.height+w.depth,I=0,M=1;if(u!==null){var C=oa(u,f,a);I=C.height+C.depth,M=2}var H=v+x+I,z=Math.max(0,Math.ceil((n-H)/(M*y))),V=H+z*M*y,L=i.fontMetrics().axisHeight;r&&(L*=i.sizeMultiplier);var $=V/2-L,W=[];if(d.length>0){var G=V-v-x,q=Math.round(V*1e3),Y=HI(d,Math.round(G*1e3)),Q=new Nr(d,Y),ee=(p/1e3).toFixed(3)+"em",de=(q/1e3).toFixed(3)+"em",oe=new cr([Q],{width:ee,height:de,viewBox:"0 0 "+p+" "+q}),R=j.makeSvgSpan([],[oe],i);R.height=q/1e3,R.style.width=ee,R.style.height=de,W.push({type:"elem",elem:R})}else{if(W.push(Du(c,f,a)),W.push(Ps),u===null){var Ce=V-v-x+2*Fl;W.push(Pu(l,Ce,i))}else{var ve=(V-v-x-I)/2+2*Fl;W.push(Pu(l,ve,i)),W.push(Ps),W.push(Du(u,f,a)),W.push(Ps),W.push(Pu(l,ve,i))}W.push(Ps),W.push(Du(o,f,a))}var B=i.havingBaseStyle(ye.TEXT),xe=j.makeVList({positionType:"bottom",positionData:$,children:W},B);return gc(j.makeSpan(["delimsizing","mult"],[xe],B),ye.TEXT,i,s)},Lu=80,Ou=.08,_u=function(t,n,r,i,a){var s=BI(t,i,r),o=new Nr(t,s),u=new cr([o],{width:"400em",height:le(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return j.makeSvgSpan(["hide-tail"],[u],a)},_N=function(t,n){var r=n.havingBaseSizing(),i=j4("\\surd",t*r.sizeMultiplier,V4,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Lu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Ou)/a,l=(1+s)/a,o=_u("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Lu)*Ta[i.size],l=(Ta[i.size]+s)/a,u=(Ta[i.size]+s+Ou)/a,o=_u("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Ou,l=t+s,c=Math.floor(1e3*t+s)+Lu,o=_u("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=le(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},z4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],BN=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],U4=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ta=[0,1.2,1.8,2.4,3],FN=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ge.contains(z4,t)||ge.contains(U4,t))return F4(t,n,!1,r,i,a);if(ge.contains(BN,t))return H4(t,Ta[n],!1,r,i,a);throw new re("Illegal delimiter: '"+t+"'")},HN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],zN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"stack"}],V4=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],UN=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},j4=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},q4=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ge.contains(U4,t)?o=HN:ge.contains(z4,t)?o=V4:o=zN;var u=j4(t,n,o,i);return u.type==="small"?DN(t,u.style,r,i,a,s):u.type==="large"?F4(t,u.size,r,i,a,s):H4(t,n,r,i,a,s)},VN=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return q4(t,d,!0,i,a,s)},ir={sqrtImage:_N,sizedDelim:FN,sizeToMaxHeight:Ta,customSizedDelim:q4,leftRightDelim:VN},jf={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},jN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Bo(e,t){var n=Oo(e);if(n&&ge.contains(jN,n.text))return n;throw n?new re("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new re("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Bo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:jf[e.funcName].size,mclass:jf[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?j.makeSpan([e.mclass]):ir.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(In(e.delim,e.mode));var n=new ne.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=le(ir.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function qf(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new re("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Bo(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Bo(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Oe(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{qf(e);for(var n=Ot(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{qf(e);var n=sn(e.body,t);if(e.left!=="."){var r=new ne.MathNode("mo",[In(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ne.MathNode("mo",[In(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return hc(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Bo(t[0],e);if(!e.parser.leftrightDepth)throw new re("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Va(t,[]);else{n=ir.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?In("|","text"):In(e.delim,e.mode),r=new ne.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var bc=(e,t)=>{var n=j.wrapFragment(We(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ge.isCharacterBox(e.body);if(r==="sout")a=j.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=pt({number:.6,unit:"pt"},t),l=pt({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=le(d/2+u);var p=Math.floor(1e3*d*i),f=OI(p),b=new cr([new Nr("phase",f)],{width:"400em",height:le(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=j.makeSvgSpan(["hide-tail"],[b],t),a.style.height=le(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var v=0,E=0,y=0;/box/.test(r)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=t.fontMetrics().fboxsep+(r==="colorbox"?0:y),E=v):r==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),v=4*y,E=Math.max(0,.25-n.depth)):(v=o?.2:0,E=v),a=hr.encloseSpan(n,r,v,E,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=le(y)):r==="angl"&&y!==.049&&(a.style.borderTopWidth=le(y),a.style.borderRightWidth=le(y)),s=n.depth+E,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var x=/cancel|phase/.test(r)?["svg-align"]:[];w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:x}]},t)}return/cancel/.test(r)&&(w.height=n.height,w.depth=n.depth),/cancel/.test(r)&&!o?j.makeSpan(["mord","cancel-lap"],[w],t):j.makeSpan(["mord"],[w],t)},yc=(e,t)=>{var n=0,r=new ne.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Je(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:bc,mathmlBuilder:yc});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=Oe(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:bc,mathmlBuilder:yc});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:bc,mathmlBuilder:yc});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var $4={};function Kn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new re("{"+e.envName+"} can be used only in display mode.")};function vc(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Lr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new re("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var b=[],v=[b],E=[],y=[],w=u!=null?[]:void 0;function x(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function I(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new wn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),y.push($f(e));;){var M=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),M={type:"ordgroup",mode:e.mode,body:M},n&&(M={type:"styling",mode:e.mode,style:n,body:[M]}),b.push(M);var C=e.fetch().text;if(C==="&"){if(d&&b.length===d){if(l||o)throw new re("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(C==="\\end"){I(),b.length===1&&M.type==="styling"&&M.body[0].body.length===0&&(v.length>1||!c)&&v.pop(),y.length0&&(x+=.25),l.push({pos:x,isDashed:st[Nt]})}for(I(s[0]),r=0;r0&&($+=w,H<$&&(H=$),$=0)),t.addJot&&(H+=v),z.height=C,z.depth=H,x+=C,z.pos=x,x+=H+$,u[r]=z,I(s[r+1])}var W=x/2+n.fontMetrics().axisHeight,G=t.cols||[],q=[],Y,Q,ee=[];if(t.tags&&t.tags.some(st=>st))for(r=0;r=o)){var je=void 0;(i>0||t.hskipBeforeAndAfter)&&(je=ge.deflt(ve.pregap,p),je!==0&&(Y=j.makeSpan(["arraycolsep"],[]),Y.style.width=le(je),q.push(Y)));var _e=[];for(r=0;r0){for(var Ne=j.makeLineSpan("hline",n,c),Qe=j.makeLineSpan("hdashline",n,c),Re=[{type:"elem",elem:u,shift:0}];l.length>0;){var $e=l.pop(),wt=$e.pos-W;$e.isDashed?Re.push({type:"elem",elem:Qe,shift:wt}):Re.push({type:"elem",elem:Ne,shift:wt})}u=j.makeVList({positionType:"individualShift",children:Re},n)}if(ee.length===0)return j.makeSpan(["mord"],[u],n);var ht=j.makeVList({positionType:"individualShift",children:ee},n);return ht=j.makeSpan(["tag"],[ht],n),j.makeFragment([u,ht])},qN={c:"center ",l:"left ",r:"right "},Zn=function(t,n){for(var r=[],i=new ne.MathNode("mtd",[],["mtr-glue"]),a=new ne.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,v="",E=!1,y=0,w=b.length;b[0].type==="separator"&&(p+="top ",y=1),b[b.length-1].type==="separator"&&(p+="bottom ",w-=1);for(var x=y;x0?"left ":"",p+=z[z.length-1].length>0?"right ":"";for(var V=1;V-1?"alignat":"align",a=t.envName==="split",s=Lr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:vc(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&f&&(E=1),r[b]={type:"align",align:v,pregap:E,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Kn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Oo(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=pc(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new re("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Lr(e.parser,a,Tc(e.envName))},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new re("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Lr(e.parser,r,Tc(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Lr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Oo(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=pc(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new re("Unknown column alignment: "+u,s)});if(i.length>1)throw new re("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Lr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new re("{subarray} can contain only one column");return a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Lr(e.parser,t,Tc(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Y4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ge.contains(["gather","gather*"],e.envName)&&Fo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:vc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Y4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Fo(e);var t={autoTag:vc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Fo(e),RN(e.parser)},htmlBuilder:Qn,mathmlBuilder:Zn});S("\\nonumber","\\gdef\\@eqnsw{0}");S("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new re(e.funcName+" valid only within array environment")}});var Wf=$4;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new re("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return We(e.body,r)},X4=(e,t)=>{var n=e.font,r=t.withFont(n);return Je(e.body,r)},Yf={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=lo(t[0]),a=r;return a in Yf&&(a=Yf[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:G4,mathmlBuilder:X4});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ge.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:_o(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:G4,mathmlBuilder:X4});var K4=(e,t)=>{var n=t;return e==="display"?n=n.id>=ye.SCRIPT.id?n.text():ye.DISPLAY:e==="text"&&n.size===ye.DISPLAY.size?n=ye.TEXT:e==="script"?n=ye.SCRIPT:e==="scriptscript"&&(n=ye.SCRIPTSCRIPT),n},xc=(e,t)=>{var n=K4(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=We(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*p:b=7*p,v=t.fontMetrics().denom1):(d>0?(f=t.fontMetrics().num2,b=p):(f=t.fontMetrics().num3,b=3*p),v=t.fontMetrics().denom2);var E;if(c){var w=t.fontMetrics().axisHeight;f-s.depth-(w+.5*d){var n=new ne.MathNode("mfrac",[Je(e.numer,t),Je(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=pt(e.barSize,t);n.setAttribute("linethickness",le(r))}var i=K4(e.size,t.style);if(i.size!==t.style.size){n=new ne.MathNode("mstyle",[n]);var a=i.size===ye.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ne.MathNode("mo",[new ne.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ne.MathNode("mo",[new ne.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return hc(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:xc,mathmlBuilder:Ec});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Gf=["display","text","script","scriptscript"],Xf=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=lo(t[0]),s=a.type==="atom"&&a.family==="open"?Xf(a.text):null,o=lo(t[1]),u=o.type==="atom"&&o.family==="close"?Xf(o.text):null,l=Oe(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var p="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var b=Oe(f.body[0],"textord");p=Gf[Number(b.text)]}}else f=Oe(f,"textord"),p=Gf[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:xc,mathmlBuilder:Ec});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Oe(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=TI(Oe(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:xc,mathmlBuilder:Ec});var Q4=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?We(e.sup,t.havingStyle(n.sup()),t):We(e.sub,t.havingStyle(n.sub()),t),i=Oe(e.base,"horizBrace")):i=Oe(e,"horizBrace");var a=We(i.base,t.havingBaseStyle(ye.DISPLAY)),s=hr.svgSpan(i,t),o;if(i.isOver?(o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=j.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=j.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},$N=(e,t)=>{var n=hr.mathMLnode(e.label);return new ne.MathNode(e.isOver?"mover":"munder",[Je(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Q4,mathmlBuilder:$N});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Oe(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:It(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ot(e.body,t,!1);return j.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Rr(e.body,t);return n instanceof dn||(n=new dn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Oe(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Oe(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=Ot(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=j.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Rr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:It(t[0]),mathml:It(t[1])}},htmlBuilder:(e,t)=>{var n=Ot(e.html,t,!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>Rr(e.mathml,t)});var Bu=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new re("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!g4(r))throw new re("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=Oe(n[0],"raw").string,l=u.split(","),c=0;c{var n=pt(e.height,t),r=0;e.totalheight.number>0&&(r=pt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pt(e.width,t));var a={height:le(n+r)};i>0&&(a.width=le(i)),r>0&&(a.verticalAlign=le(-r));var s=new $I(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pt(e.height,t),i=0;if(e.totalheight.number>0&&(i=pt(e.totalheight,t)-r,n.setAttribute("valign",le(-i))),n.setAttribute("height",le(r+i)),e.width.number>0){var a=pt(e.width,t);n.setAttribute("width",le(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Oe(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return j.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pt(e.dimension,t);return new ne.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=j.makeSpan([],[We(e.body,t)]),n=j.makeSpan(["inner"],[n],t)):n=j.makeSpan(["inner"],[We(e.body,t)]);var r=j.makeSpan(["fix"],[]),i=j.makeSpan([e.alignment],[n,r],t),a=j.makeSpan(["strut"]);return a.style.height=le(i.height+i.depth),i.depth&&(a.style.verticalAlign=le(-i.depth)),i.children.unshift(a),i=j.makeSpan(["thinbox"],[i],t),j.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new re("Mismatched "+e.funcName)}});var Kf=(e,t)=>{switch(t.style.size){case ye.DISPLAY.size:return e.display;case ye.TEXT.size:return e.text;case ye.SCRIPT.size:return e.script;case ye.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:It(t[0]),text:It(t[1]),script:It(t[2]),scriptscript:It(t[3])}},htmlBuilder:(e,t)=>{var n=Kf(e,t),r=Ot(n,t,!1);return j.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Kf(e,t);return Rr(n,t)}});var Z4=(e,t,n,r,i,a,s)=>{e=j.makeSpan([],[e]);var o=n&&ge.isCharacterBox(n),u,l;if(t){var c=We(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=We(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(l&&u){var f=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=j.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:le(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;p=j.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:le(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var v=e.depth+s;p=j.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var E=[p];if(u&&a!==0&&!o){var y=j.makeSpan(["mspace"],[],r);y.style.marginRight=le(a),E.unshift(y)}return j.makeSpan(["mop","op-limits"],E,r)},J4=["\\smallint"],zi=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"op"),i=!0):a=Oe(e,"op");var s=t.style,o=!1;s.size===ye.DISPLAY.size&&a.symbol&&!ge.contains(J4,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=j.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,p=j.staticSvg(c+"Size"+(o?"2":"1"),t);u=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var f=Ot(a.body,t,!0);f.length===1&&f[0]instanceof kn?(u=f[0],u.classes[0]="mop"):u=j.makeSpan(["mop"],f,t)}else{for(var b=[],v=1;v{var n;if(e.symbol)n=new dn("mo",[In(e.name,e.mode)]),ge.contains(J4,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dn("mo",sn(e.body,t));else{n=new dn("mi",[new Hn(e.name.slice(1))]);var r=new dn("mo",[In("⁡","text")]);e.parentIsSupSub?n=new dn("mrow",[n,r]):n=k4([n,r])}return n},WN={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=WN[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:zi,mathmlBuilder:is});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:It(r)}},htmlBuilder:zi,mathmlBuilder:is});var YN={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:zi,mathmlBuilder:is});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:zi,mathmlBuilder:is});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=YN[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:zi,mathmlBuilder:is});var e3=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"operatorname"),i=!0):a=Oe(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ot(o,t.withFont("mathrm"),!0),l=0;l{for(var n=sn(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ne.TextNode(o)]}var u=new ne.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ne.MathNode("mo",[In("⁡","text")]);return e.parentIsSupSub?new ne.MathNode("mrow",[u,l]):ne.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:It(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:e3,mathmlBuilder:GN});S("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ni({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?j.makeFragment(Ot(e.body,t,!1)):j.makeSpan(["mord"],Ot(e.body,t,!0),t)},mathmlBuilder(e,t){return Rr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle()),r=j.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return j.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("mover",[Je(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:It(r)}},htmlBuilder:(e,t)=>{var n=Ot(e.body,t.withPhantom(),!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=sn(e.body,t);return new ne.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan([],[We(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan(["inner"],[We(e.body,t.withPhantom())]),r=j.makeSpan(["fix"],[]);return j.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Oe(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=We(e.body,t),r=pt(e.dy,t);return j.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ne.MathNode("mpadded",[Je(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Oe(t[0],"size"),s=Oe(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Oe(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=j.makeSpan(["mord","rule"],[],t),r=pt(e.width,t),i=pt(e.height,t),a=e.shift?pt(e.shift,t):0;return n.style.borderRightWidth=le(r),n.style.borderTopWidth=le(i),n.style.bottom=le(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pt(e.width,t),r=pt(e.height,t),i=e.shift?pt(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ne.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",le(n)),s.setAttribute("height",le(r));var o=new ne.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",le(i)):(o.setAttribute("height",le(i)),o.setAttribute("depth",le(-i))),o.setAttribute("voffset",le(i)),o}});function t3(e,t,n){for(var r=Ot(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return t3(e.body,n,t)};ce({type:"sizing",names:Qf,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Qf.indexOf(r)+1,body:a}},htmlBuilder:XN,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sn(e.body,n),i=new ne.MathNode("mstyle",r);return i.setAttribute("mathsize",le(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&Oe(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=j.makeSpan([],[We(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=j.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var p=u.height-n.height-s-l;n.style.paddingLeft=le(c);var f=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(ye.SCRIPTSCRIPT),v=We(e.index,b,t),E=.6*(f.height-f.depth),y=j.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:v}]},t),w=j.makeSpan(["root"],[y]);return j.makeSpan(["mord","sqrt"],[w,f],t)}else return j.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ne.MathNode("mroot",[Je(n,t),Je(r,t)]):new ne.MathNode("msqrt",[Je(n,t)])}});var Zf={display:ye.DISPLAY,text:ye.TEXT,script:ye.SCRIPT,scriptscript:ye.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Zf[e.style],r=t.havingStyle(n).withFont("");return t3(e.body,r,t)},mathmlBuilder(e,t){var n=Zf[e.style],r=t.havingStyle(n),i=sn(e.body,r),a=new ne.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var KN=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===ye.DISPLAY.size||r.alwaysHandleSupSub);return i?zi:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===ye.DISPLAY.size||r.limits);return a?e3:null}else{if(r.type==="accent")return ge.isCharacterBox(r.base)?mc:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Q4:null}else return null}else return null};ni({type:"supsub",htmlBuilder(e,t){var n=KN(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=We(r,t),o,u,l=t.fontMetrics(),c=0,d=0,p=r&&ge.isCharacterBox(r);if(i){var f=t.havingStyle(t.style.sup());o=We(i,f,t),p||(c=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=We(a,b,t),p||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var v;t.style===ye.DISPLAY?v=l.sup1:t.style.cramped?v=l.sup3:v=l.sup2;var E=t.sizeMultiplier,y=le(.5/l.ptPerEm/E),w=null;if(u){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof kn||x)&&(w=le(-s.italic))}var I;if(o&&u){c=Math.max(c,v,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var M=l.defaultRuleThickness,C=4*M;if(c-o.depth-(u.height-d)0&&(c+=H,d-=H)}var z=[{type:"elem",elem:u,shift:d,marginRight:y,marginLeft:w},{type:"elem",elem:o,shift:-c,marginRight:y}];I=j.makeVList({positionType:"individualShift",children:z},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var V=[{type:"elem",elem:u,marginLeft:w,marginRight:y}];I=j.makeVList({positionType:"shift",positionData:d,children:V},t)}else if(o)c=Math.max(c,v,o.depth+.25*l.xHeight),I=j.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:y}]},t);else throw new Error("supsub must have either sup or sub.");var L=Ol(s,"right")||"mord";return j.makeSpan([L],[s,j.makeSpan(["msupsub"],[I])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Je(e.base,t)];e.sub&&a.push(Je(e.sub,t)),e.sup&&a.push(Je(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===ye.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===ye.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ye.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ye.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===ye.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===ye.DISPLAY)?s="mover":s="msup"}return new ne.MathNode(s,a)}});ni({type:"atom",htmlBuilder(e,t){return j.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[In(e.text,e.mode)]);if(e.family==="bin"){var r=fc(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var n3={mi:"italic",mn:"normal",mtext:"normal"};ni({type:"mathord",htmlBuilder(e,t){return j.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ne.MathNode("mi",[In(e.text,e.mode,t)]),r=fc(e,t)||"italic";return r!==n3[n.type]&&n.setAttribute("mathvariant",r),n}});ni({type:"textord",htmlBuilder(e,t){return j.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=In(e.text,e.mode,t),r=fc(e,t)||"normal",i;return e.mode==="text"?i=new ne.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ne.MathNode("mn",[n]):e.text==="\\prime"?i=new ne.MathNode("mo",[n]):i=new ne.MathNode("mi",[n]),r!==n3[i.type]&&i.setAttribute("mathvariant",r),i}});var Fu={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Hu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ni({type:"spacing",htmlBuilder(e,t){if(Hu.hasOwnProperty(e.text)){var n=Hu[e.text].className||"";if(e.mode==="text"){var r=j.makeOrd(e,t,"textord");return r.classes.push(n),r}else return j.makeSpan(["mspace",n],[j.mathsym(e.text,e.mode,t)],t)}else{if(Fu.hasOwnProperty(e.text))return j.makeSpan(["mspace",Fu[e.text]],[],t);throw new re('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Hu.hasOwnProperty(e.text))n=new ne.MathNode("mtext",[new ne.TextNode(" ")]);else{if(Fu.hasOwnProperty(e.text))return new ne.MathNode("mspace");throw new re('Unknown type of space "'+e.text+'"')}return n}});var Jf=()=>{var e=new ne.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ni({type:"tag",mathmlBuilder(e,t){var n=new ne.MathNode("mtable",[new ne.MathNode("mtr",[Jf(),new ne.MathNode("mtd",[Rr(e.body,t)]),Jf(),new ne.MathNode("mtd",[Rr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var e1={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},t1={"\\textbf":"textbf","\\textmd":"textmd"},QN={"\\textit":"textit","\\textup":"textup"},n1=(e,t)=>{var n=e.font;if(n){if(e1[n])return t.withTextFontFamily(e1[n]);if(t1[n])return t.withTextFontWeight(t1[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(QN[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:It(i),font:r}},htmlBuilder(e,t){var n=n1(e,t),r=Ot(e.body,n,!0);return j.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=n1(e,t);return Rr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=j.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("munder",[Je(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return j.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ne.MathNode("mpadded",[Je(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new re("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=r1(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Sr=A4,r3=`[ \r +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let ns=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return ge.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Fn={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Cs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Rf={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zI(e,t){Fn[e]=t}function lc(e,t,n){if(!Fn[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Fn[t][r];if(!i&&e[0]in Rf&&(r=Rf[e[0]].charCodeAt(0),i=Fn[t][r]),!i&&n==="text"&&m4(r)&&(i=Fn[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var Cu={};function UI(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Cu[t]){var n=Cu[t]={cssEmPerMu:Cs.quad[t]/18};for(var r in Cs)Cs.hasOwnProperty(r)&&(n[r]=Cs[r][t])}return Cu[t]}var VI=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Mf=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Df=function(t,n){return n.size<2?t:VI[t-1][n.size-1]};class er{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||er.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Mf[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new er(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Df(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Mf[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Df(er.BASESIZE,t);return this.size===n&&this.textSize===er.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==er.BASESIZE?["sizing","reset-size"+this.size,"size"+er.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=UI(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}er.BASESIZE=6;var Dl={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},jI={ex:!0,em:!0,mu:!0},g4=function(t){return typeof t!="string"&&(t=t.unit),t in Dl||t in jI||t==="ex"},pt=function(t,n){var r;if(t.unit in Dl)r=Dl[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new re("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},le=function(t){return+t.toFixed(4)+"em"},Ir=function(t){return t.filter(n=>n).join(" ")},b4=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},y4=function(t){var n=document.createElement(t);n.className=Ir(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a/=\x00-\x1f]/,v4=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+ge.escape(Ir(this.classes))+'"');var r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(n+=' style="'+ge.escape(r)+'"');for(var a in this.attributes)if(this.attributes.hasOwnProperty(a)){if(qI.test(a))throw new re("Invalid attribute name '"+a+"'");n+=" "+a+'="'+ge.escape(this.attributes[a])+'"'}n+=">";for(var s=0;s",n};class rs{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,b4.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return y4.call(this,"span")}toMarkup(){return v4.call(this,"span")}}class cc{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,b4.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return ge.contains(this.classes,t)}toNode(){return y4.call(this,"a")}toMarkup(){return v4.call(this,"a")}}class $I{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return ge.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+ge.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=le(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Ir(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=ge.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+ge.escape(r)+'"');var a=ge.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class cr{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class Pl{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var GI={bin:1,close:1,inner:1,open:1,punct:1,rel:1},XI={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},rt={math:{},text:{}};function m(e,t,n,r,i,a){rt[e][i]={font:t,group:n,replace:r},a&&r&&(rt[e][r]=rt[e][i])}var g="math",Z="text",T="main",D="ams",dt="accent-token",he="bin",Xt="close",zi="inner",be="mathord",Lt="op-token",gn="open",Po="punct",O="rel",pr="spacing",F="textord";m(g,T,O,"≡","\\equiv",!0);m(g,T,O,"≺","\\prec",!0);m(g,T,O,"≻","\\succ",!0);m(g,T,O,"∼","\\sim",!0);m(g,T,O,"⊥","\\perp");m(g,T,O,"⪯","\\preceq",!0);m(g,T,O,"⪰","\\succeq",!0);m(g,T,O,"≃","\\simeq",!0);m(g,T,O,"∣","\\mid",!0);m(g,T,O,"≪","\\ll",!0);m(g,T,O,"≫","\\gg",!0);m(g,T,O,"≍","\\asymp",!0);m(g,T,O,"∥","\\parallel");m(g,T,O,"⋈","\\bowtie",!0);m(g,T,O,"⌣","\\smile",!0);m(g,T,O,"⊑","\\sqsubseteq",!0);m(g,T,O,"⊒","\\sqsupseteq",!0);m(g,T,O,"≐","\\doteq",!0);m(g,T,O,"⌢","\\frown",!0);m(g,T,O,"∋","\\ni",!0);m(g,T,O,"∝","\\propto",!0);m(g,T,O,"⊢","\\vdash",!0);m(g,T,O,"⊣","\\dashv",!0);m(g,T,O,"∋","\\owns");m(g,T,Po,".","\\ldotp");m(g,T,Po,"⋅","\\cdotp");m(g,T,F,"#","\\#");m(Z,T,F,"#","\\#");m(g,T,F,"&","\\&");m(Z,T,F,"&","\\&");m(g,T,F,"ℵ","\\aleph",!0);m(g,T,F,"∀","\\forall",!0);m(g,T,F,"ℏ","\\hbar",!0);m(g,T,F,"∃","\\exists",!0);m(g,T,F,"∇","\\nabla",!0);m(g,T,F,"♭","\\flat",!0);m(g,T,F,"ℓ","\\ell",!0);m(g,T,F,"♮","\\natural",!0);m(g,T,F,"♣","\\clubsuit",!0);m(g,T,F,"℘","\\wp",!0);m(g,T,F,"♯","\\sharp",!0);m(g,T,F,"♢","\\diamondsuit",!0);m(g,T,F,"ℜ","\\Re",!0);m(g,T,F,"♡","\\heartsuit",!0);m(g,T,F,"ℑ","\\Im",!0);m(g,T,F,"♠","\\spadesuit",!0);m(g,T,F,"§","\\S",!0);m(Z,T,F,"§","\\S");m(g,T,F,"¶","\\P",!0);m(Z,T,F,"¶","\\P");m(g,T,F,"†","\\dag");m(Z,T,F,"†","\\dag");m(Z,T,F,"†","\\textdagger");m(g,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\ddag");m(Z,T,F,"‡","\\textdaggerdbl");m(g,T,Xt,"⎱","\\rmoustache",!0);m(g,T,gn,"⎰","\\lmoustache",!0);m(g,T,Xt,"⟯","\\rgroup",!0);m(g,T,gn,"⟮","\\lgroup",!0);m(g,T,he,"∓","\\mp",!0);m(g,T,he,"⊖","\\ominus",!0);m(g,T,he,"⊎","\\uplus",!0);m(g,T,he,"⊓","\\sqcap",!0);m(g,T,he,"∗","\\ast");m(g,T,he,"⊔","\\sqcup",!0);m(g,T,he,"◯","\\bigcirc",!0);m(g,T,he,"∙","\\bullet",!0);m(g,T,he,"‡","\\ddagger");m(g,T,he,"≀","\\wr",!0);m(g,T,he,"⨿","\\amalg");m(g,T,he,"&","\\And");m(g,T,O,"⟵","\\longleftarrow",!0);m(g,T,O,"⇐","\\Leftarrow",!0);m(g,T,O,"⟸","\\Longleftarrow",!0);m(g,T,O,"⟶","\\longrightarrow",!0);m(g,T,O,"⇒","\\Rightarrow",!0);m(g,T,O,"⟹","\\Longrightarrow",!0);m(g,T,O,"↔","\\leftrightarrow",!0);m(g,T,O,"⟷","\\longleftrightarrow",!0);m(g,T,O,"⇔","\\Leftrightarrow",!0);m(g,T,O,"⟺","\\Longleftrightarrow",!0);m(g,T,O,"↦","\\mapsto",!0);m(g,T,O,"⟼","\\longmapsto",!0);m(g,T,O,"↗","\\nearrow",!0);m(g,T,O,"↩","\\hookleftarrow",!0);m(g,T,O,"↪","\\hookrightarrow",!0);m(g,T,O,"↘","\\searrow",!0);m(g,T,O,"↼","\\leftharpoonup",!0);m(g,T,O,"⇀","\\rightharpoonup",!0);m(g,T,O,"↙","\\swarrow",!0);m(g,T,O,"↽","\\leftharpoondown",!0);m(g,T,O,"⇁","\\rightharpoondown",!0);m(g,T,O,"↖","\\nwarrow",!0);m(g,T,O,"⇌","\\rightleftharpoons",!0);m(g,D,O,"≮","\\nless",!0);m(g,D,O,"","\\@nleqslant");m(g,D,O,"","\\@nleqq");m(g,D,O,"⪇","\\lneq",!0);m(g,D,O,"≨","\\lneqq",!0);m(g,D,O,"","\\@lvertneqq");m(g,D,O,"⋦","\\lnsim",!0);m(g,D,O,"⪉","\\lnapprox",!0);m(g,D,O,"⊀","\\nprec",!0);m(g,D,O,"⋠","\\npreceq",!0);m(g,D,O,"⋨","\\precnsim",!0);m(g,D,O,"⪹","\\precnapprox",!0);m(g,D,O,"≁","\\nsim",!0);m(g,D,O,"","\\@nshortmid");m(g,D,O,"∤","\\nmid",!0);m(g,D,O,"⊬","\\nvdash",!0);m(g,D,O,"⊭","\\nvDash",!0);m(g,D,O,"⋪","\\ntriangleleft");m(g,D,O,"⋬","\\ntrianglelefteq",!0);m(g,D,O,"⊊","\\subsetneq",!0);m(g,D,O,"","\\@varsubsetneq");m(g,D,O,"⫋","\\subsetneqq",!0);m(g,D,O,"","\\@varsubsetneqq");m(g,D,O,"≯","\\ngtr",!0);m(g,D,O,"","\\@ngeqslant");m(g,D,O,"","\\@ngeqq");m(g,D,O,"⪈","\\gneq",!0);m(g,D,O,"≩","\\gneqq",!0);m(g,D,O,"","\\@gvertneqq");m(g,D,O,"⋧","\\gnsim",!0);m(g,D,O,"⪊","\\gnapprox",!0);m(g,D,O,"⊁","\\nsucc",!0);m(g,D,O,"⋡","\\nsucceq",!0);m(g,D,O,"⋩","\\succnsim",!0);m(g,D,O,"⪺","\\succnapprox",!0);m(g,D,O,"≆","\\ncong",!0);m(g,D,O,"","\\@nshortparallel");m(g,D,O,"∦","\\nparallel",!0);m(g,D,O,"⊯","\\nVDash",!0);m(g,D,O,"⋫","\\ntriangleright");m(g,D,O,"⋭","\\ntrianglerighteq",!0);m(g,D,O,"","\\@nsupseteqq");m(g,D,O,"⊋","\\supsetneq",!0);m(g,D,O,"","\\@varsupsetneq");m(g,D,O,"⫌","\\supsetneqq",!0);m(g,D,O,"","\\@varsupsetneqq");m(g,D,O,"⊮","\\nVdash",!0);m(g,D,O,"⪵","\\precneqq",!0);m(g,D,O,"⪶","\\succneqq",!0);m(g,D,O,"","\\@nsubseteqq");m(g,D,he,"⊴","\\unlhd");m(g,D,he,"⊵","\\unrhd");m(g,D,O,"↚","\\nleftarrow",!0);m(g,D,O,"↛","\\nrightarrow",!0);m(g,D,O,"⇍","\\nLeftarrow",!0);m(g,D,O,"⇏","\\nRightarrow",!0);m(g,D,O,"↮","\\nleftrightarrow",!0);m(g,D,O,"⇎","\\nLeftrightarrow",!0);m(g,D,O,"△","\\vartriangle");m(g,D,F,"ℏ","\\hslash");m(g,D,F,"▽","\\triangledown");m(g,D,F,"◊","\\lozenge");m(g,D,F,"Ⓢ","\\circledS");m(g,D,F,"®","\\circledR");m(Z,D,F,"®","\\circledR");m(g,D,F,"∡","\\measuredangle",!0);m(g,D,F,"∄","\\nexists");m(g,D,F,"℧","\\mho");m(g,D,F,"Ⅎ","\\Finv",!0);m(g,D,F,"⅁","\\Game",!0);m(g,D,F,"‵","\\backprime");m(g,D,F,"▲","\\blacktriangle");m(g,D,F,"▼","\\blacktriangledown");m(g,D,F,"■","\\blacksquare");m(g,D,F,"⧫","\\blacklozenge");m(g,D,F,"★","\\bigstar");m(g,D,F,"∢","\\sphericalangle",!0);m(g,D,F,"∁","\\complement",!0);m(g,D,F,"ð","\\eth",!0);m(Z,T,F,"ð","ð");m(g,D,F,"╱","\\diagup");m(g,D,F,"╲","\\diagdown");m(g,D,F,"□","\\square");m(g,D,F,"□","\\Box");m(g,D,F,"◊","\\Diamond");m(g,D,F,"¥","\\yen",!0);m(Z,D,F,"¥","\\yen",!0);m(g,D,F,"✓","\\checkmark",!0);m(Z,D,F,"✓","\\checkmark");m(g,D,F,"ℶ","\\beth",!0);m(g,D,F,"ℸ","\\daleth",!0);m(g,D,F,"ℷ","\\gimel",!0);m(g,D,F,"ϝ","\\digamma",!0);m(g,D,F,"ϰ","\\varkappa");m(g,D,gn,"┌","\\@ulcorner",!0);m(g,D,Xt,"┐","\\@urcorner",!0);m(g,D,gn,"└","\\@llcorner",!0);m(g,D,Xt,"┘","\\@lrcorner",!0);m(g,D,O,"≦","\\leqq",!0);m(g,D,O,"⩽","\\leqslant",!0);m(g,D,O,"⪕","\\eqslantless",!0);m(g,D,O,"≲","\\lesssim",!0);m(g,D,O,"⪅","\\lessapprox",!0);m(g,D,O,"≊","\\approxeq",!0);m(g,D,he,"⋖","\\lessdot");m(g,D,O,"⋘","\\lll",!0);m(g,D,O,"≶","\\lessgtr",!0);m(g,D,O,"⋚","\\lesseqgtr",!0);m(g,D,O,"⪋","\\lesseqqgtr",!0);m(g,D,O,"≑","\\doteqdot");m(g,D,O,"≓","\\risingdotseq",!0);m(g,D,O,"≒","\\fallingdotseq",!0);m(g,D,O,"∽","\\backsim",!0);m(g,D,O,"⋍","\\backsimeq",!0);m(g,D,O,"⫅","\\subseteqq",!0);m(g,D,O,"⋐","\\Subset",!0);m(g,D,O,"⊏","\\sqsubset",!0);m(g,D,O,"≼","\\preccurlyeq",!0);m(g,D,O,"⋞","\\curlyeqprec",!0);m(g,D,O,"≾","\\precsim",!0);m(g,D,O,"⪷","\\precapprox",!0);m(g,D,O,"⊲","\\vartriangleleft");m(g,D,O,"⊴","\\trianglelefteq");m(g,D,O,"⊨","\\vDash",!0);m(g,D,O,"⊪","\\Vvdash",!0);m(g,D,O,"⌣","\\smallsmile");m(g,D,O,"⌢","\\smallfrown");m(g,D,O,"≏","\\bumpeq",!0);m(g,D,O,"≎","\\Bumpeq",!0);m(g,D,O,"≧","\\geqq",!0);m(g,D,O,"⩾","\\geqslant",!0);m(g,D,O,"⪖","\\eqslantgtr",!0);m(g,D,O,"≳","\\gtrsim",!0);m(g,D,O,"⪆","\\gtrapprox",!0);m(g,D,he,"⋗","\\gtrdot");m(g,D,O,"⋙","\\ggg",!0);m(g,D,O,"≷","\\gtrless",!0);m(g,D,O,"⋛","\\gtreqless",!0);m(g,D,O,"⪌","\\gtreqqless",!0);m(g,D,O,"≖","\\eqcirc",!0);m(g,D,O,"≗","\\circeq",!0);m(g,D,O,"≜","\\triangleq",!0);m(g,D,O,"∼","\\thicksim");m(g,D,O,"≈","\\thickapprox");m(g,D,O,"⫆","\\supseteqq",!0);m(g,D,O,"⋑","\\Supset",!0);m(g,D,O,"⊐","\\sqsupset",!0);m(g,D,O,"≽","\\succcurlyeq",!0);m(g,D,O,"⋟","\\curlyeqsucc",!0);m(g,D,O,"≿","\\succsim",!0);m(g,D,O,"⪸","\\succapprox",!0);m(g,D,O,"⊳","\\vartriangleright");m(g,D,O,"⊵","\\trianglerighteq");m(g,D,O,"⊩","\\Vdash",!0);m(g,D,O,"∣","\\shortmid");m(g,D,O,"∥","\\shortparallel");m(g,D,O,"≬","\\between",!0);m(g,D,O,"⋔","\\pitchfork",!0);m(g,D,O,"∝","\\varpropto");m(g,D,O,"◀","\\blacktriangleleft");m(g,D,O,"∴","\\therefore",!0);m(g,D,O,"∍","\\backepsilon");m(g,D,O,"▶","\\blacktriangleright");m(g,D,O,"∵","\\because",!0);m(g,D,O,"⋘","\\llless");m(g,D,O,"⋙","\\gggtr");m(g,D,he,"⊲","\\lhd");m(g,D,he,"⊳","\\rhd");m(g,D,O,"≂","\\eqsim",!0);m(g,T,O,"⋈","\\Join");m(g,D,O,"≑","\\Doteq",!0);m(g,D,he,"∔","\\dotplus",!0);m(g,D,he,"∖","\\smallsetminus");m(g,D,he,"⋒","\\Cap",!0);m(g,D,he,"⋓","\\Cup",!0);m(g,D,he,"⩞","\\doublebarwedge",!0);m(g,D,he,"⊟","\\boxminus",!0);m(g,D,he,"⊞","\\boxplus",!0);m(g,D,he,"⋇","\\divideontimes",!0);m(g,D,he,"⋉","\\ltimes",!0);m(g,D,he,"⋊","\\rtimes",!0);m(g,D,he,"⋋","\\leftthreetimes",!0);m(g,D,he,"⋌","\\rightthreetimes",!0);m(g,D,he,"⋏","\\curlywedge",!0);m(g,D,he,"⋎","\\curlyvee",!0);m(g,D,he,"⊝","\\circleddash",!0);m(g,D,he,"⊛","\\circledast",!0);m(g,D,he,"⋅","\\centerdot");m(g,D,he,"⊺","\\intercal",!0);m(g,D,he,"⋒","\\doublecap");m(g,D,he,"⋓","\\doublecup");m(g,D,he,"⊠","\\boxtimes",!0);m(g,D,O,"⇢","\\dashrightarrow",!0);m(g,D,O,"⇠","\\dashleftarrow",!0);m(g,D,O,"⇇","\\leftleftarrows",!0);m(g,D,O,"⇆","\\leftrightarrows",!0);m(g,D,O,"⇚","\\Lleftarrow",!0);m(g,D,O,"↞","\\twoheadleftarrow",!0);m(g,D,O,"↢","\\leftarrowtail",!0);m(g,D,O,"↫","\\looparrowleft",!0);m(g,D,O,"⇋","\\leftrightharpoons",!0);m(g,D,O,"↶","\\curvearrowleft",!0);m(g,D,O,"↺","\\circlearrowleft",!0);m(g,D,O,"↰","\\Lsh",!0);m(g,D,O,"⇈","\\upuparrows",!0);m(g,D,O,"↿","\\upharpoonleft",!0);m(g,D,O,"⇃","\\downharpoonleft",!0);m(g,T,O,"⊶","\\origof",!0);m(g,T,O,"⊷","\\imageof",!0);m(g,D,O,"⊸","\\multimap",!0);m(g,D,O,"↭","\\leftrightsquigarrow",!0);m(g,D,O,"⇉","\\rightrightarrows",!0);m(g,D,O,"⇄","\\rightleftarrows",!0);m(g,D,O,"↠","\\twoheadrightarrow",!0);m(g,D,O,"↣","\\rightarrowtail",!0);m(g,D,O,"↬","\\looparrowright",!0);m(g,D,O,"↷","\\curvearrowright",!0);m(g,D,O,"↻","\\circlearrowright",!0);m(g,D,O,"↱","\\Rsh",!0);m(g,D,O,"⇊","\\downdownarrows",!0);m(g,D,O,"↾","\\upharpoonright",!0);m(g,D,O,"⇂","\\downharpoonright",!0);m(g,D,O,"⇝","\\rightsquigarrow",!0);m(g,D,O,"⇝","\\leadsto");m(g,D,O,"⇛","\\Rrightarrow",!0);m(g,D,O,"↾","\\restriction");m(g,T,F,"‘","`");m(g,T,F,"$","\\$");m(Z,T,F,"$","\\$");m(Z,T,F,"$","\\textdollar");m(g,T,F,"%","\\%");m(Z,T,F,"%","\\%");m(g,T,F,"_","\\_");m(Z,T,F,"_","\\_");m(Z,T,F,"_","\\textunderscore");m(g,T,F,"∠","\\angle",!0);m(g,T,F,"∞","\\infty",!0);m(g,T,F,"′","\\prime");m(g,T,F,"△","\\triangle");m(g,T,F,"Γ","\\Gamma",!0);m(g,T,F,"Δ","\\Delta",!0);m(g,T,F,"Θ","\\Theta",!0);m(g,T,F,"Λ","\\Lambda",!0);m(g,T,F,"Ξ","\\Xi",!0);m(g,T,F,"Π","\\Pi",!0);m(g,T,F,"Σ","\\Sigma",!0);m(g,T,F,"Υ","\\Upsilon",!0);m(g,T,F,"Φ","\\Phi",!0);m(g,T,F,"Ψ","\\Psi",!0);m(g,T,F,"Ω","\\Omega",!0);m(g,T,F,"A","Α");m(g,T,F,"B","Β");m(g,T,F,"E","Ε");m(g,T,F,"Z","Ζ");m(g,T,F,"H","Η");m(g,T,F,"I","Ι");m(g,T,F,"K","Κ");m(g,T,F,"M","Μ");m(g,T,F,"N","Ν");m(g,T,F,"O","Ο");m(g,T,F,"P","Ρ");m(g,T,F,"T","Τ");m(g,T,F,"X","Χ");m(g,T,F,"¬","\\neg",!0);m(g,T,F,"¬","\\lnot");m(g,T,F,"⊤","\\top");m(g,T,F,"⊥","\\bot");m(g,T,F,"∅","\\emptyset");m(g,D,F,"∅","\\varnothing");m(g,T,be,"α","\\alpha",!0);m(g,T,be,"β","\\beta",!0);m(g,T,be,"γ","\\gamma",!0);m(g,T,be,"δ","\\delta",!0);m(g,T,be,"ϵ","\\epsilon",!0);m(g,T,be,"ζ","\\zeta",!0);m(g,T,be,"η","\\eta",!0);m(g,T,be,"θ","\\theta",!0);m(g,T,be,"ι","\\iota",!0);m(g,T,be,"κ","\\kappa",!0);m(g,T,be,"λ","\\lambda",!0);m(g,T,be,"μ","\\mu",!0);m(g,T,be,"ν","\\nu",!0);m(g,T,be,"ξ","\\xi",!0);m(g,T,be,"ο","\\omicron",!0);m(g,T,be,"π","\\pi",!0);m(g,T,be,"ρ","\\rho",!0);m(g,T,be,"σ","\\sigma",!0);m(g,T,be,"τ","\\tau",!0);m(g,T,be,"υ","\\upsilon",!0);m(g,T,be,"ϕ","\\phi",!0);m(g,T,be,"χ","\\chi",!0);m(g,T,be,"ψ","\\psi",!0);m(g,T,be,"ω","\\omega",!0);m(g,T,be,"ε","\\varepsilon",!0);m(g,T,be,"ϑ","\\vartheta",!0);m(g,T,be,"ϖ","\\varpi",!0);m(g,T,be,"ϱ","\\varrho",!0);m(g,T,be,"ς","\\varsigma",!0);m(g,T,be,"φ","\\varphi",!0);m(g,T,he,"∗","*",!0);m(g,T,he,"+","+");m(g,T,he,"−","-",!0);m(g,T,he,"⋅","\\cdot",!0);m(g,T,he,"∘","\\circ",!0);m(g,T,he,"÷","\\div",!0);m(g,T,he,"±","\\pm",!0);m(g,T,he,"×","\\times",!0);m(g,T,he,"∩","\\cap",!0);m(g,T,he,"∪","\\cup",!0);m(g,T,he,"∖","\\setminus",!0);m(g,T,he,"∧","\\land");m(g,T,he,"∨","\\lor");m(g,T,he,"∧","\\wedge",!0);m(g,T,he,"∨","\\vee",!0);m(g,T,F,"√","\\surd");m(g,T,gn,"⟨","\\langle",!0);m(g,T,gn,"∣","\\lvert");m(g,T,gn,"∥","\\lVert");m(g,T,Xt,"?","?");m(g,T,Xt,"!","!");m(g,T,Xt,"⟩","\\rangle",!0);m(g,T,Xt,"∣","\\rvert");m(g,T,Xt,"∥","\\rVert");m(g,T,O,"=","=");m(g,T,O,":",":");m(g,T,O,"≈","\\approx",!0);m(g,T,O,"≅","\\cong",!0);m(g,T,O,"≥","\\ge");m(g,T,O,"≥","\\geq",!0);m(g,T,O,"←","\\gets");m(g,T,O,">","\\gt",!0);m(g,T,O,"∈","\\in",!0);m(g,T,O,"","\\@not");m(g,T,O,"⊂","\\subset",!0);m(g,T,O,"⊃","\\supset",!0);m(g,T,O,"⊆","\\subseteq",!0);m(g,T,O,"⊇","\\supseteq",!0);m(g,D,O,"⊈","\\nsubseteq",!0);m(g,D,O,"⊉","\\nsupseteq",!0);m(g,T,O,"⊨","\\models");m(g,T,O,"←","\\leftarrow",!0);m(g,T,O,"≤","\\le");m(g,T,O,"≤","\\leq",!0);m(g,T,O,"<","\\lt",!0);m(g,T,O,"→","\\rightarrow",!0);m(g,T,O,"→","\\to");m(g,D,O,"≱","\\ngeq",!0);m(g,D,O,"≰","\\nleq",!0);m(g,T,pr," ","\\ ");m(g,T,pr," ","\\space");m(g,T,pr," ","\\nobreakspace");m(Z,T,pr," ","\\ ");m(Z,T,pr," "," ");m(Z,T,pr," ","\\space");m(Z,T,pr," ","\\nobreakspace");m(g,T,pr,null,"\\nobreak");m(g,T,pr,null,"\\allowbreak");m(g,T,Po,",",",");m(g,T,Po,";",";");m(g,D,he,"⊼","\\barwedge",!0);m(g,D,he,"⊻","\\veebar",!0);m(g,T,he,"⊙","\\odot",!0);m(g,T,he,"⊕","\\oplus",!0);m(g,T,he,"⊗","\\otimes",!0);m(g,T,F,"∂","\\partial",!0);m(g,T,he,"⊘","\\oslash",!0);m(g,D,he,"⊚","\\circledcirc",!0);m(g,D,he,"⊡","\\boxdot",!0);m(g,T,he,"△","\\bigtriangleup");m(g,T,he,"▽","\\bigtriangledown");m(g,T,he,"†","\\dagger");m(g,T,he,"⋄","\\diamond");m(g,T,he,"⋆","\\star");m(g,T,he,"◃","\\triangleleft");m(g,T,he,"▹","\\triangleright");m(g,T,gn,"{","\\{");m(Z,T,F,"{","\\{");m(Z,T,F,"{","\\textbraceleft");m(g,T,Xt,"}","\\}");m(Z,T,F,"}","\\}");m(Z,T,F,"}","\\textbraceright");m(g,T,gn,"{","\\lbrace");m(g,T,Xt,"}","\\rbrace");m(g,T,gn,"[","\\lbrack",!0);m(Z,T,F,"[","\\lbrack",!0);m(g,T,Xt,"]","\\rbrack",!0);m(Z,T,F,"]","\\rbrack",!0);m(g,T,gn,"(","\\lparen",!0);m(g,T,Xt,")","\\rparen",!0);m(Z,T,F,"<","\\textless",!0);m(Z,T,F,">","\\textgreater",!0);m(g,T,gn,"⌊","\\lfloor",!0);m(g,T,Xt,"⌋","\\rfloor",!0);m(g,T,gn,"⌈","\\lceil",!0);m(g,T,Xt,"⌉","\\rceil",!0);m(g,T,F,"\\","\\backslash");m(g,T,F,"∣","|");m(g,T,F,"∣","\\vert");m(Z,T,F,"|","\\textbar",!0);m(g,T,F,"∥","\\|");m(g,T,F,"∥","\\Vert");m(Z,T,F,"∥","\\textbardbl");m(Z,T,F,"~","\\textasciitilde");m(Z,T,F,"\\","\\textbackslash");m(Z,T,F,"^","\\textasciicircum");m(g,T,O,"↑","\\uparrow",!0);m(g,T,O,"⇑","\\Uparrow",!0);m(g,T,O,"↓","\\downarrow",!0);m(g,T,O,"⇓","\\Downarrow",!0);m(g,T,O,"↕","\\updownarrow",!0);m(g,T,O,"⇕","\\Updownarrow",!0);m(g,T,Lt,"∐","\\coprod");m(g,T,Lt,"⋁","\\bigvee");m(g,T,Lt,"⋀","\\bigwedge");m(g,T,Lt,"⨄","\\biguplus");m(g,T,Lt,"⋂","\\bigcap");m(g,T,Lt,"⋃","\\bigcup");m(g,T,Lt,"∫","\\int");m(g,T,Lt,"∫","\\intop");m(g,T,Lt,"∬","\\iint");m(g,T,Lt,"∭","\\iiint");m(g,T,Lt,"∏","\\prod");m(g,T,Lt,"∑","\\sum");m(g,T,Lt,"⨂","\\bigotimes");m(g,T,Lt,"⨁","\\bigoplus");m(g,T,Lt,"⨀","\\bigodot");m(g,T,Lt,"∮","\\oint");m(g,T,Lt,"∯","\\oiint");m(g,T,Lt,"∰","\\oiiint");m(g,T,Lt,"⨆","\\bigsqcup");m(g,T,Lt,"∫","\\smallint");m(Z,T,zi,"…","\\textellipsis");m(g,T,zi,"…","\\mathellipsis");m(Z,T,zi,"…","\\ldots",!0);m(g,T,zi,"…","\\ldots",!0);m(g,T,zi,"⋯","\\@cdots",!0);m(g,T,zi,"⋱","\\ddots",!0);m(g,T,F,"⋮","\\varvdots");m(Z,T,F,"⋮","\\varvdots");m(g,T,dt,"ˊ","\\acute");m(g,T,dt,"ˋ","\\grave");m(g,T,dt,"¨","\\ddot");m(g,T,dt,"~","\\tilde");m(g,T,dt,"ˉ","\\bar");m(g,T,dt,"˘","\\breve");m(g,T,dt,"ˇ","\\check");m(g,T,dt,"^","\\hat");m(g,T,dt,"⃗","\\vec");m(g,T,dt,"˙","\\dot");m(g,T,dt,"˚","\\mathring");m(g,T,be,"","\\@imath");m(g,T,be,"","\\@jmath");m(g,T,F,"ı","ı");m(g,T,F,"ȷ","ȷ");m(Z,T,F,"ı","\\i",!0);m(Z,T,F,"ȷ","\\j",!0);m(Z,T,F,"ß","\\ss",!0);m(Z,T,F,"æ","\\ae",!0);m(Z,T,F,"œ","\\oe",!0);m(Z,T,F,"ø","\\o",!0);m(Z,T,F,"Æ","\\AE",!0);m(Z,T,F,"Œ","\\OE",!0);m(Z,T,F,"Ø","\\O",!0);m(Z,T,dt,"ˊ","\\'");m(Z,T,dt,"ˋ","\\`");m(Z,T,dt,"ˆ","\\^");m(Z,T,dt,"˜","\\~");m(Z,T,dt,"ˉ","\\=");m(Z,T,dt,"˘","\\u");m(Z,T,dt,"˙","\\.");m(Z,T,dt,"¸","\\c");m(Z,T,dt,"˚","\\r");m(Z,T,dt,"ˇ","\\v");m(Z,T,dt,"¨",'\\"');m(Z,T,dt,"˝","\\H");m(Z,T,dt,"◯","\\textcircled");var T4={"--":!0,"---":!0,"``":!0,"''":!0};m(Z,T,F,"–","--",!0);m(Z,T,F,"–","\\textendash");m(Z,T,F,"—","---",!0);m(Z,T,F,"—","\\textemdash");m(Z,T,F,"‘","`",!0);m(Z,T,F,"‘","\\textquoteleft");m(Z,T,F,"’","'",!0);m(Z,T,F,"’","\\textquoteright");m(Z,T,F,"“","``",!0);m(Z,T,F,"“","\\textquotedblleft");m(Z,T,F,"”","''",!0);m(Z,T,F,"”","\\textquotedblright");m(g,T,F,"°","\\degree",!0);m(Z,T,F,"°","\\degree");m(Z,T,F,"°","\\textdegree",!0);m(g,T,F,"£","\\pounds");m(g,T,F,"£","\\mathsterling",!0);m(Z,T,F,"£","\\pounds");m(Z,T,F,"£","\\textsterling",!0);m(g,D,F,"✠","\\maltese");m(Z,D,F,"✠","\\maltese");var Lf='0123456789/@."';for(var ku=0;ku0)return Mn(a,l,i,n,s.concat(c));if(u){var d,p;if(u==="boldsymbol"){var f=ZI(a,i,n,s,r);d=f.fontName,p=[f.fontClass]}else o?(d=S4[u].fontName,p=[u]):(d=Rs(u,n.fontWeight,n.fontShape),p=[u,n.fontWeight,n.fontShape]);if(Lo(a,d,i).metrics)return Mn(a,d,i,n,s.concat(p));if(T4.hasOwnProperty(a)&&d.slice(0,10)==="Typewriter"){for(var b=[],v=0;v{if(Ir(e.classes)!==Ir(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},tN=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},en=function(t,n,r,i){var a=new rs(t,n,r,i);return dc(a),a},x4=(e,t,n,r)=>new rs(e,t,n,r),nN=function(t,n,r){var i=en([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=le(i.height),i.maxFontSize=1,i},rN=function(t,n,r,i){var a=new cc(t,n,r,i);return dc(a),a},E4=function(t){var n=new ns(t);return dc(n),n},iN=function(t,n){return t instanceof ns?en([],[t],n):t},aN=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=en(["mspace"],[],t),r=pt(e,t);return n.style.marginRight=le(r),n},Rs=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},S4={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},w4={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},uN=function(t,n){var[r,i,a]=w4[t],s=new Nr(r),o=new cr([s],{width:le(i),height:le(a),style:"width:"+le(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),u=x4(["overlay"],[o],n);return u.height=a,u.style.height=le(a),u.style.width=le(i),u},j={fontMap:S4,makeSymbol:Mn,mathsym:QI,makeSpan:en,makeSvgSpan:x4,makeLineSpan:nN,makeAnchor:rN,makeFragment:E4,wrapFragment:iN,makeVList:sN,makeOrd:JI,makeGlue:oN,staticSvg:uN,svgData:w4,tryCombineChars:tN},ft={number:3,unit:"mu"},Hr={number:4,unit:"mu"},Jn={number:5,unit:"mu"},lN={mord:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mop:{mord:ft,mop:ft,mrel:Jn,minner:ft},mbin:{mord:Hr,mop:Hr,mopen:Hr,minner:Hr},mrel:{mord:Jn,mop:Jn,mopen:Jn,minner:Jn},mopen:{},mclose:{mop:ft,mbin:Hr,mrel:Jn,minner:ft},mpunct:{mord:ft,mop:ft,mrel:Jn,mopen:ft,mclose:ft,mpunct:ft,minner:ft},minner:{mord:ft,mop:ft,mbin:Hr,mrel:Jn,mopen:ft,mpunct:ft,minner:ft}},cN={mord:{mop:ft},mop:{mord:ft,mop:ft},mbin:{},mrel:{},mopen:{},mclose:{mop:ft},mpunct:{},minner:{mop:ft}},A4={},oo={},uo={};function ce(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},u=0;u{var E=v.classes[0],y=b.classes[0];E==="mbin"&&ge.contains(hN,y)?v.classes[0]="mord":y==="mbin"&&ge.contains(dN,E)&&(b.classes[0]="mord")},{node:d},p,f),Hf(a,(b,v)=>{var E=Ol(v),y=Ol(b),w=E&&y?b.hasClass("mtight")?cN[E][y]:lN[E][y]:null;if(w)return j.makeGlue(w,l)},{node:d},p,f),a},Hf=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(d+1,0,p),s++})(s)}i&&t.pop()},C4=function(t){return t instanceof ns||t instanceof cc||t instanceof rs&&t.hasClass("enclosing")?t:null},mN=function e(t,n){var r=C4(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},Ol=function(t,n){return t?(n&&(t=mN(t,n)),pN[t.classes[0]]||null):null},Va=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return dr(n.concat(r))},We=function(t,n,r){if(!t)return dr();if(oo[t.type]){var i=oo[t.type](t,n);if(r&&n.size!==r.size){i=dr(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new re("Got group of unknown type: '"+t.type+"'")};function Ms(e,t){var n=dr(["base"],e,t),r=dr(["strut"]);return r.style.height=le(n.height+n.depth),n.depth&&(r.style.verticalAlign=le(-n.depth)),n.children.unshift(r),n}function _l(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=Ot(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(Ms(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(Ms(s,t));var l;n?(l=Ms(Ot(n,t,!0)),l.classes=["tag"],a.push(l)):i&&a.push(i);var c=dr(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),l){var d=l.children[0];d.style.height=le(c.height+c.depth),c.depth&&(d.style.verticalAlign=le(-c.depth))}return c}function k4(e){return new ns(e)}class dn{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=Ir(this.classes));for(var r=0;r0&&(t+=' class ="'+ge.escape(Ir(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class Hn{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return ge.escape(this.toText())}toText(){return this.text}}class gN{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",le(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var ne={MathNode:dn,TextNode:Hn,SpaceNode:gN,newDocumentFragment:k4},In=function(t,n,r){return rt[n][t]&&rt[n][t].replace&&t.charCodeAt(0)!==55349&&!(T4.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=rt[n][t].replace),new ne.TextNode(t)},hc=function(t){return t.length===1?t[0]:new ne.MathNode("mrow",t)},fc=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathsfit")return"sans-serif-italic";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(ge.contains(["\\imath","\\jmath"],a))return null;rt[i][a]&&rt[i][a].replace&&(a=rt[i][a].replace);var s=j.fontMap[r].fontName;return lc(a,s,i)?j.fontMap[r].variant:null};function Mu(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof Hn&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var n=e.children[0];return n instanceof Hn&&n.text===","}else return!1}var sn=function(t,n,r){if(t.length===1){var i=Je(t[0],n);return r&&i instanceof dn&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o=1&&(s.type==="mn"||Mu(s))){var l=u.children[0];l instanceof dn&&l.type==="mn"&&(l.children=[...s.children,...l.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof Hn&&c.text==="̸"&&(u.type==="mo"||u.type==="mi"||u.type==="mn")){var d=u.children[0];d instanceof Hn&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),a.pop())}}}a.push(u),s=u}return a},Rr=function(t,n,r){return hc(sn(t,n,r))},Je=function(t,n){if(!t)return new ne.MathNode("mrow");if(uo[t.type]){var r=uo[t.type](t,n);return r}else throw new re("Got group of unknown type: '"+t.type+"'")};function zf(e,t,n,r,i){var a=sn(e,n),s;a.length===1&&a[0]instanceof dn&&ge.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new ne.MathNode("mrow",a);var o=new ne.MathNode("annotation",[new ne.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var u=new ne.MathNode("semantics",[s,o]),l=new ne.MathNode("math",[u]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&l.setAttribute("display","block");var c=i?"katex":"katex-mathml";return j.makeSpan([c],[l])}var I4=function(t){return new er({style:t.displayMode?ye.DISPLAY:ye.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},N4=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=j.makeSpan(r,[t])}return t},bN=function(t,n,r){var i=I4(r),a;if(r.output==="mathml")return zf(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=_l(t,i);a=j.makeSpan(["katex"],[s])}else{var o=zf(t,n,i,r.displayMode,!1),u=_l(t,i);a=j.makeSpan(["katex"],[o,u])}return N4(a,r)},yN=function(t,n,r){var i=I4(r),a=_l(t,i),s=j.makeSpan(["katex"],[a]);return N4(s,r)},vN={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},TN=function(t){var n=new ne.MathNode("mo",[new ne.TextNode(vN[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},xN={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},EN=function(t){return t.type==="ordgroup"?t.body.length:1},SN=function(t,n){function r(){var o=4e5,u=t.label.slice(1);if(ge.contains(["widehat","widecheck","widetilde","utilde"],u)){var l=t,c=EN(l.base),d,p,f;if(c>5)u==="widehat"||u==="widecheck"?(d=420,o=2364,f=.42,p=u+"4"):(d=312,o=2340,f=.34,p="tilde4");else{var b=[1,1,2,2,3,3][c];u==="widehat"||u==="widecheck"?(o=[0,1062,2364,2364,2364][b],d=[0,239,300,360,420][b],f=[0,.24,.3,.3,.36,.42][b],p=u+b):(o=[0,600,1033,2339,2340][b],d=[0,260,286,306,312][b],f=[0,.26,.286,.3,.306,.34][b],p="tilde"+b)}var v=new Nr(p),E=new cr([v],{width:"100%",height:le(f),viewBox:"0 0 "+o+" "+d,preserveAspectRatio:"none"});return{span:j.makeSvgSpan([],[E],n),minWidth:0,height:f}}else{var y=[],w=xN[u],[x,I,M]=w,C=M/1e3,H=x.length,z,V;if(H===1){var P=w[3];z=["hide-tail"],V=[P]}else if(H===2)z=["halfarrow-left","halfarrow-right"],V=["xMinYMin","xMaxYMin"];else if(H===3)z=["brace-left","brace-center","brace-right"],V=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+H+" children.");for(var $=0;$0&&(i.style.minWidth=le(a)),i},wN=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=j.makeSpan(["stretchy",n],[],a),n==="fbox"){var u=a.color&&a.getColor();u&&(s.style.borderColor=u)}}else{var l=[];/^[bx]cancel$/.test(n)&&l.push(new Pl({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&l.push(new Pl({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new cr(l,{width:"100%",height:le(o)});s=j.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=le(o),s},hr={encloseSpan:wN,mathMLnode:TN,svgSpan:SN};function Oe(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function pc(e){var t=Oo(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Oo(e){return e&&(e.type==="atom"||XI.hasOwnProperty(e.type))?e:null}var mc=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=Oe(e.base,"accent"),n=r.base,e.base=n,i=YI(We(e,t)),e.base=r):(r=Oe(e,"accent"),n=r.base);var a=We(n,t.havingCrampedStyle()),s=r.isShifty&&ge.isCharacterBox(n),o=0;if(s){var u=ge.getBaseElem(n),l=We(u,t.havingCrampedStyle());o=Pf(l).skew}var c=r.label==="\\c",d=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hr.svgSpan(r,t),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+le(2*o)+")",marginLeft:le(2*o)}:void 0}]},t);else{var f,b;r.label==="\\vec"?(f=j.staticSvg("vec",t),b=j.svgData.vec[1]):(f=j.makeOrd({mode:r.mode,text:r.label},t,"textord"),f=Pf(f),f.italic=0,b=f.width,c&&(d+=f.depth)),p=j.makeSpan(["accent-body"],[f]);var v=r.label==="\\textcircled";v&&(p.classes.push("accent-full"),d=a.height);var E=o;v||(E-=b/2),p.style.left=le(E),r.label==="\\textcircled"&&(p.style.top=".2em"),p=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-d},{type:"elem",elem:p}]},t)}var y=j.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=y,i.height=Math.max(y.height,i.height),i.classes[0]="mord",i):y},R4=(e,t)=>{var n=e.isStretchy?hr.mathMLnode(e.label):new ne.MathNode("mo",[In(e.label,e.mode)]),r=new ne.MathNode("mover",[Je(e.base,t),n]);return r.setAttribute("accent","true"),r},AN=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=lo(t[0]),r=!AN.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:mc,mathmlBuilder:R4});ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:mc,mathmlBuilder:R4});ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=We(e.base,t),r=hr.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hr.mathMLnode(e.label),r=new ne.MathNode("munder",[Je(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Ds=e=>{var t=new ne.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ce({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=j.wrapFragment(We(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=j.wrapFragment(We(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hr.svgSpan(e,t),u=-t.fontMetrics().axisHeight+.5*o.height,l=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(l-=i.depth);var c;if(s){var d=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u},{type:"elem",elem:s,shift:d}]},t)}else c=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:o,shift:u}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),j.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=hr.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=Ds(Je(e.body,t));if(e.below){var a=Ds(Je(e.below,t));r=new ne.MathNode("munderover",[n,a,i])}else r=new ne.MathNode("mover",[n,i])}else if(e.below){var s=Ds(Je(e.below,t));r=new ne.MathNode("munder",[n,s])}else r=Ds(),r=new ne.MathNode("mover",[n,r]);return r}});var CN=j.makeSpan;function M4(e,t){var n=Ot(e.body,t,!0);return CN([e.mclass],n,t)}function D4(e,t){var n,r=sn(e.body,t);return e.mclass==="minner"?n=new ne.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new ne.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new ne.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}ce({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:It(i),isCharacterBox:ge.isCharacterBox(i)}},htmlBuilder:M4,mathmlBuilder:D4});var _o=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ce({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:_o(t[0]),body:It(t[1]),isCharacterBox:ge.isCharacterBox(t[1])}}});ce({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=_o(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:It(i)},u={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[u],isCharacterBox:ge.isCharacterBox(u)}},htmlBuilder:M4,mathmlBuilder:D4});ce({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:_o(t[0]),body:It(t[0])}},htmlBuilder(e,t){var n=Ot(e.body,t,!0),r=j.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=sn(e.body,t),r=new ne.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var kN={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Uf=()=>({type:"styling",body:[],mode:"math",style:"display"}),Vf=e=>e.type==="textord"&&e.text==="@",IN=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function NN(e,t,n){var r=kN[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),u={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[u],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var l={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[l],[])}default:return{type:"textord",text:" ",mode:"math"}}}function RN(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new re("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(l)>-1)for(var d=0;d<2;d++){for(var p=!0,f=u+1;fAV=|." after @',s[u]);var b=NN(l,c,e),v={type:"styling",body:[b],mode:"math",style:"display"};r.push(v),o=Uf()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var E=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:E,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}ce({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=j.wrapFragment(We(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=le(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new ne.MathNode("mrow",[Je(e.label,t)]);return n=new ne.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ne.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});ce({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=j.wrapFragment(We(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ne.MathNode("mrow",[Je(e.fragment,t)])}});ce({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=Oe(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new re("\\@char with invalid code point "+a);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(u&1023)+56320)),{type:"textord",mode:n.mode,text:l}}});var P4=(e,t)=>{var n=Ot(e.body,t.withColor(e.color),!1);return j.makeFragment(n)},L4=(e,t)=>{var n=sn(e.body,t.withColor(e.color)),r=new ne.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};ce({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=Oe(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:It(i)}},htmlBuilder:P4,mathmlBuilder:L4});ce({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=Oe(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:P4,mathmlBuilder:L4});ce({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&Oe(i,"size").value}},htmlBuilder(e,t){var n=j.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=le(pt(e.size,t)))),n},mathmlBuilder(e,t){var n=new ne.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",le(pt(e.size,t)))),n}});var Bl={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},O4=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new re("Expected a control sequence",e);return t},MN=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},_4=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};ce({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(Bl[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=Bl[r.text]),Oe(t.parseFunction(),"internal");throw new re("Invalid token after macro prefix",r)}});ce({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new re("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new re('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new re('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new re("Expected a macro definition");o[a].push(r.text)}var{tokens:u}=t.gullet.consumeArg();return s&&u.unshift(s),(n==="\\edef"||n==="\\xdef")&&(u=t.gullet.expandTokens(u),u.reverse()),t.gullet.macros.set(i,{tokens:u,numArgs:a,delimiters:o},n===Bl[n]),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=O4(t.gullet.popToken());t.gullet.consumeSpaces();var i=MN(t);return _4(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});ce({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=O4(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return _4(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var ua=function(t,n,r){var i=rt.math[t]&&rt.math[t].replace,a=lc(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},gc=function(t,n,r,i){var a=r.havingBaseStyle(n),s=j.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},B4=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=le(a),t.height-=a,t.depth+=a},DN=function(t,n,r,i,a,s){var o=j.makeSymbol(t,"Main-Regular",a,i),u=gc(o,n,i,s);return r&&B4(u,i,n),u},PN=function(t,n,r,i){return j.makeSymbol(t,"Size"+n+"-Regular",r,i)},F4=function(t,n,r,i,a,s){var o=PN(t,n,a,i),u=gc(j.makeSpan(["delimsizing","size"+n],[o],i),ye.TEXT,i,s);return r&&B4(u,i,ye.TEXT),u},Du=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=j.makeSpan(["delimsizinginner",i],[j.makeSpan([],[j.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},Pu=function(t,n,r){var i=Fn["Size4-Regular"][t.charCodeAt(0)]?Fn["Size4-Regular"][t.charCodeAt(0)][4]:Fn["Size1-Regular"][t.charCodeAt(0)][4],a=new Nr("inner",FI(t,Math.round(1e3*n))),s=new cr([a],{width:le(i),height:le(n),style:"width:"+le(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=j.makeSvgSpan([],[s],r);return o.height=n,o.style.height=le(n),o.style.width=le(i),{type:"elem",elem:o}},Fl=.008,Ps={type:"kern",size:-1*Fl},LN=["|","\\lvert","\\rvert","\\vert"],ON=["\\|","\\lVert","\\rVert","\\Vert"],H4=function(t,n,r,i,a,s){var o,u,l,c,d="",p=0;o=l=c=t,u=null;var f="Size1-Regular";t==="\\uparrow"?l=c="⏐":t==="\\Uparrow"?l=c="‖":t==="\\downarrow"?o=l="⏐":t==="\\Downarrow"?o=l="‖":t==="\\updownarrow"?(o="\\uparrow",l="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",l="‖",c="\\Downarrow"):ge.contains(LN,t)?(l="∣",d="vert",p=333):ge.contains(ON,t)?(l="∥",d="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",l="⎢",c="⎣",f="Size4-Regular",d="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",l="⎥",c="⎦",f="Size4-Regular",d="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(l=o="⎢",c="⎣",f="Size4-Regular",d="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",l=c="⎢",f="Size4-Regular",d="lceil",p=667):t==="\\rfloor"||t==="⌋"?(l=o="⎥",c="⎦",f="Size4-Regular",d="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",l=c="⎥",f="Size4-Regular",d="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",l="⎜",c="⎝",f="Size4-Regular",d="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",l="⎟",c="⎠",f="Size4-Regular",d="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",u="⎨",c="⎩",l="⎪",f="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",u="⎬",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",l="⎪",f="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",l="⎪",f="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",l="⎪",f="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",l="⎪",f="Size4-Regular");var b=ua(o,f,a),v=b.height+b.depth,E=ua(l,f,a),y=E.height+E.depth,w=ua(c,f,a),x=w.height+w.depth,I=0,M=1;if(u!==null){var C=ua(u,f,a);I=C.height+C.depth,M=2}var H=v+x+I,z=Math.max(0,Math.ceil((n-H)/(M*y))),V=H+z*M*y,P=i.fontMetrics().axisHeight;r&&(P*=i.sizeMultiplier);var $=V/2-P,W=[];if(d.length>0){var G=V-v-x,q=Math.round(V*1e3),Y=HI(d,Math.round(G*1e3)),Q=new Nr(d,Y),ee=(p/1e3).toFixed(3)+"em",de=(q/1e3).toFixed(3)+"em",oe=new cr([Q],{width:ee,height:de,viewBox:"0 0 "+p+" "+q}),R=j.makeSvgSpan([],[oe],i);R.height=q/1e3,R.style.width=ee,R.style.height=de,W.push({type:"elem",elem:R})}else{if(W.push(Du(c,f,a)),W.push(Ps),u===null){var Ce=V-v-x+2*Fl;W.push(Pu(l,Ce,i))}else{var ve=(V-v-x-I)/2+2*Fl;W.push(Pu(l,ve,i)),W.push(Ps),W.push(Du(u,f,a)),W.push(Ps),W.push(Pu(l,ve,i))}W.push(Ps),W.push(Du(o,f,a))}var B=i.havingBaseStyle(ye.TEXT),xe=j.makeVList({positionType:"bottom",positionData:$,children:W},B);return gc(j.makeSpan(["delimsizing","mult"],[xe],B),ye.TEXT,i,s)},Lu=80,Ou=.08,_u=function(t,n,r,i,a){var s=BI(t,i,r),o=new Nr(t,s),u=new cr([o],{width:"400em",height:le(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return j.makeSvgSpan(["hide-tail"],[u],a)},_N=function(t,n){var r=n.havingBaseSizing(),i=j4("\\surd",t*r.sizeMultiplier,V4,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,u=0,l=0,c=0,d;return i.type==="small"?(c=1e3+1e3*s+Lu,t<1?a=1:t<1.4&&(a=.7),u=(1+s+Ou)/a,l=(1+s)/a,o=_u("sqrtMain",u,c,s,n),o.style.minWidth="0.853em",d=.833/a):i.type==="large"?(c=(1e3+Lu)*xa[i.size],l=(xa[i.size]+s)/a,u=(xa[i.size]+s+Ou)/a,o=_u("sqrtSize"+i.size,u,c,s,n),o.style.minWidth="1.02em",d=1/a):(u=t+s+Ou,l=t+s,c=Math.floor(1e3*t+s)+Lu,o=_u("sqrtTall",u,c,s,n),o.style.minWidth="0.742em",d=1.056),o.height=l,o.style.height=le(u),{span:o,advanceWidth:d,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},z4=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],BN=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],U4=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],xa=[0,1.2,1.8,2.4,3],FN=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),ge.contains(z4,t)||ge.contains(U4,t))return F4(t,n,!1,r,i,a);if(ge.contains(BN,t))return H4(t,xa[n],!1,r,i,a);throw new re("Illegal delimiter: '"+t+"'")},HN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],zN=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"stack"}],V4=[{type:"small",style:ye.SCRIPTSCRIPT},{type:"small",style:ye.SCRIPT},{type:"small",style:ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],UN=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},j4=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},q4=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;ge.contains(U4,t)?o=HN:ge.contains(z4,t)?o=V4:o=zN;var u=j4(t,n,o,i);return u.type==="small"?DN(t,u.style,r,i,a,s):u.type==="large"?F4(t,u.size,r,i,a,s):H4(t,n,r,i,a,s)},VN=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,u=901,l=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),d=Math.max(c/500*u,2*c-l);return q4(t,d,!0,i,a,s)},ir={sqrtImage:_N,sizedDelim:FN,sizeToMaxHeight:xa,customSizedDelim:q4,leftRightDelim:VN},jf={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},jN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Bo(e,t){var n=Oo(e);if(n&&ge.contains(jN,n.text))return n;throw n?new re("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new re("Invalid delimiter type '"+e.type+"'",e)}ce({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=Bo(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:jf[e.funcName].size,mclass:jf[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?j.makeSpan([e.mclass]):ir.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(In(e.delim,e.mode));var n=new ne.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=le(ir.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function qf(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ce({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new re("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Bo(t[0],e).text,color:n}}});ce({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Bo(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=Oe(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{qf(e);for(var n=Ot(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{qf(e);var n=sn(e.body,t);if(e.left!=="."){var r=new ne.MathNode("mo",[In(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new ne.MathNode("mo",[In(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return hc(n)}});ce({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=Bo(t[0],e);if(!e.parser.leftrightDepth)throw new re("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Va(t,[]);else{n=ir.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?In("|","text"):In(e.delim,e.mode),r=new ne.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var bc=(e,t)=>{var n=j.wrapFragment(We(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=ge.isCharacterBox(e.body);if(r==="sout")a=j.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var u=pt({number:.6,unit:"pt"},t),l=pt({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var d=n.height+n.depth+u+l;n.style.paddingLeft=le(d/2+u);var p=Math.floor(1e3*d*i),f=OI(p),b=new cr([new Nr("phase",f)],{width:"400em",height:le(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=j.makeSvgSpan(["hide-tail"],[b],t),a.style.height=le(d),s=n.depth+u+l}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var v=0,E=0,y=0;/box/.test(r)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=t.fontMetrics().fboxsep+(r==="colorbox"?0:y),E=v):r==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),v=4*y,E=Math.max(0,.25-n.depth)):(v=o?.2:0,E=v),a=hr.encloseSpan(n,r,v,E,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=le(y)):r==="angl"&&y!==.049&&(a.style.borderTopWidth=le(y),a.style.borderRightWidth=le(y)),s=n.depth+E,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var w;if(e.backgroundColor)w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var x=/cancel|phase/.test(r)?["svg-align"]:[];w=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:x}]},t)}return/cancel/.test(r)&&(w.height=n.height,w.depth=n.depth),/cancel/.test(r)&&!o?j.makeSpan(["mord","cancel-lap"],[w],t):j.makeSpan(["mord"],[w],t)},yc=(e,t)=>{var n=0,r=new ne.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Je(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};ce({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:bc,mathmlBuilder:yc});ce({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=Oe(t[0],"color-token").color,s=Oe(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:bc,mathmlBuilder:yc});ce({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});ce({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:bc,mathmlBuilder:yc});ce({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var $4={};function Kn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},u=0;u{var t=e.parser.settings;if(!t.displayMode)throw new re("{"+e.envName+"} can be used only in display mode.")};function vc(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function Lr(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:u,singleRow:l,emptySingleRow:c,maxNumCols:d,leqno:p}=t;if(e.gullet.beginGroup(),l||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=e.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new re("Invalid \\arraystretch: "+f)}e.gullet.beginGroup();var b=[],v=[b],E=[],y=[],w=u!=null?[]:void 0;function x(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function I(){w&&(e.gullet.macros.get("\\df@tag")?(w.push(e.subparse([new wn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):w.push(!!u&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(x(),y.push($f(e));;){var M=e.parseExpression(!1,l?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),M={type:"ordgroup",mode:e.mode,body:M},n&&(M={type:"styling",mode:e.mode,style:n,body:[M]}),b.push(M);var C=e.fetch().text;if(C==="&"){if(d&&b.length===d){if(l||o)throw new re("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(C==="\\end"){I(),b.length===1&&M.type==="styling"&&M.body[0].body.length===0&&(v.length>1||!c)&&v.pop(),y.length0&&(x+=.25),l.push({pos:x,isDashed:st[Nt]})}for(I(s[0]),r=0;r0&&($+=w,H<$&&(H=$),$=0)),t.addJot&&(H+=v),z.height=C,z.depth=H,x+=C,z.pos=x,x+=H+$,u[r]=z,I(s[r+1])}var W=x/2+n.fontMetrics().axisHeight,G=t.cols||[],q=[],Y,Q,ee=[];if(t.tags&&t.tags.some(st=>st))for(r=0;r=o)){var je=void 0;(i>0||t.hskipBeforeAndAfter)&&(je=ge.deflt(ve.pregap,p),je!==0&&(Y=j.makeSpan(["arraycolsep"],[]),Y.style.width=le(je),q.push(Y)));var _e=[];for(r=0;r0){for(var Ne=j.makeLineSpan("hline",n,c),Qe=j.makeLineSpan("hdashline",n,c),Re=[{type:"elem",elem:u,shift:0}];l.length>0;){var $e=l.pop(),wt=$e.pos-W;$e.isDashed?Re.push({type:"elem",elem:Qe,shift:wt}):Re.push({type:"elem",elem:Ne,shift:wt})}u=j.makeVList({positionType:"individualShift",children:Re},n)}if(ee.length===0)return j.makeSpan(["mord"],[u],n);var ht=j.makeVList({positionType:"individualShift",children:ee},n);return ht=j.makeSpan(["tag"],[ht],n),j.makeFragment([u,ht])},qN={c:"center ",l:"left ",r:"right "},Zn=function(t,n){for(var r=[],i=new ne.MathNode("mtd",[],["mtr-glue"]),a=new ne.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,v="",E=!1,y=0,w=b.length;b[0].type==="separator"&&(p+="top ",y=1),b[b.length-1].type==="separator"&&(p+="bottom ",w-=1);for(var x=y;x0?"left ":"",p+=z[z.length-1].length>0?"right ":"";for(var V=1;V-1?"alignat":"align",a=t.envName==="split",s=Lr(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:vc(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,u=0,l={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",d=0;d0&&f&&(E=1),r[b]={type:"align",align:v,pregap:E,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Kn({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=Oo(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=pc(s),u=o.text;if("lcr".indexOf(u)!==-1)return{type:"align",align:u};if(u==="|")return{type:"separator",separator:"|"};if(u===":")return{type:"separator",separator:":"};throw new re("Unknown column alignment: "+u,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return Lr(e.parser,a,Tc(e.envName))},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new re("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=Lr(e.parser,r,Tc(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=Lr(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=Oo(t[0]),r=n?[t[0]]:Oe(t[0],"ordgroup").body,i=r.map(function(s){var o=pc(s),u=o.text;if("lc".indexOf(u)!==-1)return{type:"align",align:u};throw new re("Unknown column alignment: "+u,s)});if(i.length>1)throw new re("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=Lr(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new re("{subarray} can contain only one column");return a},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=Lr(e.parser,t,Tc(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Y4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){ge.contains(["gather","gather*"],e.envName)&&Fo(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:vc(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Y4,htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){Fo(e);var t={autoTag:vc(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Lr(e.parser,t,"display")},htmlBuilder:Qn,mathmlBuilder:Zn});Kn({type:"array",names:["CD"],props:{numArgs:0},handler(e){return Fo(e),RN(e.parser)},htmlBuilder:Qn,mathmlBuilder:Zn});S("\\nonumber","\\gdef\\@eqnsw{0}");S("\\notag","\\nonumber");ce({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new re(e.funcName+" valid only within array environment")}});var Wf=$4;ce({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new re("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return We(e.body,r)},X4=(e,t)=>{var n=e.font,r=t.withFont(n);return Je(e.body,r)},Yf={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ce({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=lo(t[0]),a=r;return a in Yf&&(a=Yf[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:G4,mathmlBuilder:X4});ce({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=ge.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:_o(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});ce({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:G4,mathmlBuilder:X4});var K4=(e,t)=>{var n=t;return e==="display"?n=n.id>=ye.SCRIPT.id?n.text():ye.DISPLAY:e==="text"&&n.size===ye.DISPLAY.size?n=ye.TEXT:e==="script"?n=ye.SCRIPT:e==="scriptscript"&&(n=ye.SCRIPTSCRIPT),n},xc=(e,t)=>{var n=K4(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=We(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,u=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*p:b=7*p,v=t.fontMetrics().denom1):(d>0?(f=t.fontMetrics().num2,b=p):(f=t.fontMetrics().num3,b=3*p),v=t.fontMetrics().denom2);var E;if(c){var w=t.fontMetrics().axisHeight;f-s.depth-(w+.5*d){var n=new ne.MathNode("mfrac",[Je(e.numer,t),Je(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=pt(e.barSize,t);n.setAttribute("linethickness",le(r))}var i=K4(e.size,t.style);if(i.size!==t.style.size){n=new ne.MathNode("mstyle",[n]);var a=i.size===ye.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new ne.MathNode("mo",[new ne.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var u=new ne.MathNode("mo",[new ne.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return hc(s)}return n};ce({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,u=null,l="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",u=")";break;case"\\\\bracefrac":s=!1,o="\\{",u="\\}";break;case"\\\\brackfrac":s=!1,o="[",u="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":l="display";break;case"\\tfrac":case"\\tbinom":l="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:u,size:l,barSize:null}},htmlBuilder:xc,mathmlBuilder:Ec});ce({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ce({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Gf=["display","text","script","scriptscript"],Xf=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};ce({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=lo(t[0]),s=a.type==="atom"&&a.family==="open"?Xf(a.text):null,o=lo(t[1]),u=o.type==="atom"&&o.family==="close"?Xf(o.text):null,l=Oe(t[2],"size"),c,d=null;l.isBlank?c=!0:(d=l.value,c=d.number>0);var p="auto",f=t[3];if(f.type==="ordgroup"){if(f.body.length>0){var b=Oe(f.body[0],"textord");p=Gf[Number(b.text)]}}else f=Oe(f,"textord"),p=Gf[Number(f.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:d,leftDelim:s,rightDelim:u,size:p}},htmlBuilder:xc,mathmlBuilder:Ec});ce({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Oe(t[0],"size").value,token:i}}});ce({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=TI(Oe(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:xc,mathmlBuilder:Ec});var Q4=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?We(e.sup,t.havingStyle(n.sup()),t):We(e.sub,t.havingStyle(n.sub()),t),i=Oe(e.base,"horizBrace")):i=Oe(e,"horizBrace");var a=We(i.base,t.havingBaseStyle(ye.DISPLAY)),s=hr.svgSpan(i,t),o;if(i.isOver?(o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=j.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var u=j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=j.makeVList({positionType:"bottom",positionData:u.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return j.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},$N=(e,t)=>{var n=hr.mathMLnode(e.label);return new ne.MathNode(e.isOver?"mover":"munder",[Je(e.base,t),n])};ce({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Q4,mathmlBuilder:$N});ce({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=Oe(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:It(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=Ot(e.body,t,!1);return j.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Rr(e.body,t);return n instanceof dn||(n=new dn("mrow",[n])),n.setAttribute("href",e.href),n}});ce({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=Oe(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=Oe(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,u={};switch(r){case"\\htmlClass":u.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":u.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":u.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var l=a.split(","),c=0;c{var n=Ot(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=j.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>Rr(e.body,t)});ce({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:It(t[0]),mathml:It(t[1])}},htmlBuilder:(e,t)=>{var n=Ot(e.html,t,!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>Rr(e.mathml,t)});var Bu=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new re("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!g4(r))throw new re("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};ce({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var u=Oe(n[0],"raw").string,l=u.split(","),c=0;c{var n=pt(e.height,t),r=0;e.totalheight.number>0&&(r=pt(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=pt(e.width,t));var a={height:le(n+r)};i>0&&(a.width=le(i)),r>0&&(a.verticalAlign=le(-r));var s=new $I(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=pt(e.height,t),i=0;if(e.totalheight.number>0&&(i=pt(e.totalheight,t)-r,n.setAttribute("valign",le(-i))),n.setAttribute("height",le(r+i)),e.width.number>0){var a=pt(e.width,t);n.setAttribute("width",le(a))}return n.setAttribute("src",e.src),n}});ce({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=Oe(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return j.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=pt(e.dimension,t);return new ne.SpaceNode(n)}});ce({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=j.makeSpan([],[We(e.body,t)]),n=j.makeSpan(["inner"],[n],t)):n=j.makeSpan(["inner"],[We(e.body,t)]);var r=j.makeSpan(["fix"],[]),i=j.makeSpan([e.alignment],[n,r],t),a=j.makeSpan(["strut"]);return a.style.height=le(i.height+i.depth),i.depth&&(a.style.verticalAlign=le(-i.depth)),i.children.unshift(a),i=j.makeSpan(["thinbox"],[i],t),j.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});ce({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});ce({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new re("Mismatched "+e.funcName)}});var Kf=(e,t)=>{switch(t.style.size){case ye.DISPLAY.size:return e.display;case ye.TEXT.size:return e.text;case ye.SCRIPT.size:return e.script;case ye.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ce({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:It(t[0]),text:It(t[1]),script:It(t[2]),scriptscript:It(t[3])}},htmlBuilder:(e,t)=>{var n=Kf(e,t),r=Ot(n,t,!1);return j.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=Kf(e,t);return Rr(n,t)}});var Z4=(e,t,n,r,i,a,s)=>{e=j.makeSpan([],[e]);var o=n&&ge.isCharacterBox(n),u,l;if(t){var c=We(t,r.havingStyle(i.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var d=We(n,r.havingStyle(i.sub()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-d.height)}}var p;if(l&&u){var f=r.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;p=j.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:le(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(u){var b=e.height-s;p=j.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:le(-a)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},r)}else if(l){var v=e.depth+s;p=j.makeVList({positionType:"bottom",positionData:v,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:le(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var E=[p];if(u&&a!==0&&!o){var y=j.makeSpan(["mspace"],[],r);y.style.marginRight=le(a),E.unshift(y)}return j.makeSpan(["mop","op-limits"],E,r)},J4=["\\smallint"],Ui=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"op"),i=!0):a=Oe(e,"op");var s=t.style,o=!1;s.size===ye.DISPLAY.size&&a.symbol&&!ge.contains(J4,a.name)&&(o=!0);var u;if(a.symbol){var l=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),u=j.makeSymbol(a.name,l,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var d=u.italic,p=j.staticSvg(c+"Size"+(o?"2":"1"),t);u=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:u,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+c,u.classes.unshift("mop"),u.italic=d}}else if(a.body){var f=Ot(a.body,t,!0);f.length===1&&f[0]instanceof kn?(u=f[0],u.classes[0]="mop"):u=j.makeSpan(["mop"],f,t)}else{for(var b=[],v=1;v{var n;if(e.symbol)n=new dn("mo",[In(e.name,e.mode)]),ge.contains(J4,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new dn("mo",sn(e.body,t));else{n=new dn("mi",[new Hn(e.name.slice(1))]);var r=new dn("mo",[In("⁡","text")]);e.parentIsSupSub?n=new dn("mrow",[n,r]):n=k4([n,r])}return n},WN={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ce({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=WN[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ui,mathmlBuilder:is});ce({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:It(r)}},htmlBuilder:Ui,mathmlBuilder:is});var YN={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ce({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ui,mathmlBuilder:is});ce({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Ui,mathmlBuilder:is});ce({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=YN[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Ui,mathmlBuilder:is});var e3=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=Oe(e.base,"operatorname"),i=!0):a=Oe(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(d=>{var p=d.text;return typeof p=="string"?{type:"textord",mode:d.mode,text:p}:d}),u=Ot(o,t.withFont("mathrm"),!0),l=0;l{for(var n=sn(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new ne.TextNode(o)]}var u=new ne.MathNode("mi",n);u.setAttribute("mathvariant","normal");var l=new ne.MathNode("mo",[In("⁡","text")]);return e.parentIsSupSub?new ne.MathNode("mrow",[u,l]):ne.newDocumentFragment([u,l])};ce({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:It(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:e3,mathmlBuilder:GN});S("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ni({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?j.makeFragment(Ot(e.body,t,!1)):j.makeSpan(["mord"],Ot(e.body,t,!0),t)},mathmlBuilder(e,t){return Rr(e.body,t,!0)}});ce({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle()),r=j.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return j.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("mover",[Je(e.body,t),n]);return r.setAttribute("accent","true"),r}});ce({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:It(r)}},htmlBuilder:(e,t)=>{var n=Ot(e.body,t.withPhantom(),!1);return j.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=sn(e.body,t);return new ne.MathNode("mphantom",n)}});ce({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan([],[We(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});ce({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=j.makeSpan(["inner"],[We(e.body,t.withPhantom())]),r=j.makeSpan(["fix"],[]);return j.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=sn(It(e.body),t),r=new ne.MathNode("mphantom",n),i=new ne.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});ce({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=Oe(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=We(e.body,t),r=pt(e.dy,t);return j.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ne.MathNode("mpadded",[Je(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});ce({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ce({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=Oe(t[0],"size"),s=Oe(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&Oe(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=j.makeSpan(["mord","rule"],[],t),r=pt(e.width,t),i=pt(e.height,t),a=e.shift?pt(e.shift,t):0;return n.style.borderRightWidth=le(r),n.style.borderTopWidth=le(i),n.style.bottom=le(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=pt(e.width,t),r=pt(e.height,t),i=e.shift?pt(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new ne.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",le(n)),s.setAttribute("height",le(r));var o=new ne.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",le(i)):(o.setAttribute("height",le(i)),o.setAttribute("depth",le(-i))),o.setAttribute("voffset",le(i)),o}});function t3(e,t,n){for(var r=Ot(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return t3(e.body,n,t)};ce({type:"sizing",names:Qf,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Qf.indexOf(r)+1,body:a}},htmlBuilder:XN,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=sn(e.body,n),i=new ne.MathNode("mstyle",r);return i.setAttribute("mathsize",le(n.sizeMultiplier)),i}});ce({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&Oe(n[0],"ordgroup");if(s)for(var o="",u=0;u{var n=j.makeSpan([],[We(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new ne.MathNode("mpadded",[Je(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});ce({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=We(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=j.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+d-n.height-n.depth)/2);var p=u.height-n.height-s-l;n.style.paddingLeft=le(c);var f=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:u},{type:"kern",size:l}]},t);if(e.index){var b=t.havingStyle(ye.SCRIPTSCRIPT),v=We(e.index,b,t),E=.6*(f.height-f.depth),y=j.makeVList({positionType:"shift",positionData:-E,children:[{type:"elem",elem:v}]},t),w=j.makeSpan(["root"],[y]);return j.makeSpan(["mord","sqrt"],[w,f],t)}else return j.makeSpan(["mord","sqrt"],[f],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new ne.MathNode("mroot",[Je(n,t),Je(r,t)]):new ne.MathNode("msqrt",[Je(n,t)])}});var Zf={display:ye.DISPLAY,text:ye.TEXT,script:ye.SCRIPT,scriptscript:ye.SCRIPTSCRIPT};ce({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Zf[e.style],r=t.havingStyle(n).withFont("");return t3(e.body,r,t)},mathmlBuilder(e,t){var n=Zf[e.style],r=t.havingStyle(n),i=sn(e.body,r),a=new ne.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var KN=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===ye.DISPLAY.size||r.alwaysHandleSupSub);return i?Ui:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===ye.DISPLAY.size||r.limits);return a?e3:null}else{if(r.type==="accent")return ge.isCharacterBox(r.base)?mc:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Q4:null}else return null}else return null};ni({type:"supsub",htmlBuilder(e,t){var n=KN(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=We(r,t),o,u,l=t.fontMetrics(),c=0,d=0,p=r&&ge.isCharacterBox(r);if(i){var f=t.havingStyle(t.style.sup());o=We(i,f,t),p||(c=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());u=We(a,b,t),p||(d=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var v;t.style===ye.DISPLAY?v=l.sup1:t.style.cramped?v=l.sup3:v=l.sup2;var E=t.sizeMultiplier,y=le(.5/l.ptPerEm/E),w=null;if(u){var x=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof kn||x)&&(w=le(-s.italic))}var I;if(o&&u){c=Math.max(c,v,o.depth+.25*l.xHeight),d=Math.max(d,l.sub2);var M=l.defaultRuleThickness,C=4*M;if(c-o.depth-(u.height-d)0&&(c+=H,d-=H)}var z=[{type:"elem",elem:u,shift:d,marginRight:y,marginLeft:w},{type:"elem",elem:o,shift:-c,marginRight:y}];I=j.makeVList({positionType:"individualShift",children:z},t)}else if(u){d=Math.max(d,l.sub1,u.height-.8*l.xHeight);var V=[{type:"elem",elem:u,marginLeft:w,marginRight:y}];I=j.makeVList({positionType:"shift",positionData:d,children:V},t)}else if(o)c=Math.max(c,v,o.depth+.25*l.xHeight),I=j.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:y}]},t);else throw new Error("supsub must have either sup or sub.");var P=Ol(s,"right")||"mord";return j.makeSpan([P],[s,j.makeSpan(["msupsub"],[I])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Je(e.base,t)];e.sub&&a.push(Je(e.sub,t)),e.sup&&a.push(Je(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var l=e.base;l&&l.type==="op"&&l.limits&&t.style===ye.DISPLAY||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(t.style===ye.DISPLAY||l.limits)?s="munderover":s="msubsup"}else{var u=e.base;u&&u.type==="op"&&u.limits&&(t.style===ye.DISPLAY||u.alwaysHandleSupSub)||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(u.limits||t.style===ye.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===ye.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===ye.DISPLAY)?s="mover":s="msup"}return new ne.MathNode(s,a)}});ni({type:"atom",htmlBuilder(e,t){return j.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[In(e.text,e.mode)]);if(e.family==="bin"){var r=fc(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var n3={mi:"italic",mn:"normal",mtext:"normal"};ni({type:"mathord",htmlBuilder(e,t){return j.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ne.MathNode("mi",[In(e.text,e.mode,t)]),r=fc(e,t)||"italic";return r!==n3[n.type]&&n.setAttribute("mathvariant",r),n}});ni({type:"textord",htmlBuilder(e,t){return j.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=In(e.text,e.mode,t),r=fc(e,t)||"normal",i;return e.mode==="text"?i=new ne.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new ne.MathNode("mn",[n]):e.text==="\\prime"?i=new ne.MathNode("mo",[n]):i=new ne.MathNode("mi",[n]),r!==n3[i.type]&&i.setAttribute("mathvariant",r),i}});var Fu={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Hu={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ni({type:"spacing",htmlBuilder(e,t){if(Hu.hasOwnProperty(e.text)){var n=Hu[e.text].className||"";if(e.mode==="text"){var r=j.makeOrd(e,t,"textord");return r.classes.push(n),r}else return j.makeSpan(["mspace",n],[j.mathsym(e.text,e.mode,t)],t)}else{if(Fu.hasOwnProperty(e.text))return j.makeSpan(["mspace",Fu[e.text]],[],t);throw new re('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(Hu.hasOwnProperty(e.text))n=new ne.MathNode("mtext",[new ne.TextNode(" ")]);else{if(Fu.hasOwnProperty(e.text))return new ne.MathNode("mspace");throw new re('Unknown type of space "'+e.text+'"')}return n}});var Jf=()=>{var e=new ne.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ni({type:"tag",mathmlBuilder(e,t){var n=new ne.MathNode("mtable",[new ne.MathNode("mtr",[Jf(),new ne.MathNode("mtd",[Rr(e.body,t)]),Jf(),new ne.MathNode("mtd",[Rr(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var e1={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},t1={"\\textbf":"textbf","\\textmd":"textmd"},QN={"\\textit":"textit","\\textup":"textup"},n1=(e,t)=>{var n=e.font;if(n){if(e1[n])return t.withTextFontFamily(e1[n]);if(t1[n])return t.withTextFontWeight(t1[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(QN[n])};ce({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:It(i),font:r}},htmlBuilder(e,t){var n=n1(e,t),r=Ot(e.body,n,!0);return j.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=n1(e,t);return Rr(e.body,n)}});ce({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=j.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=j.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return j.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new ne.MathNode("mo",[new ne.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new ne.MathNode("munder",[Je(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});ce({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=We(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return j.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ne.MathNode("mpadded",[Je(e.body,t)],["vcenter"])}});ce({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new re("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=r1(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),Sr=A4,r3=`[ \r ]`,ZN="\\\\[a-zA-Z@]+",JN="\\\\[^\uD800-\uDFFF]",eR="("+ZN+")"+r3+"*",tR=`\\\\( |[ \r ]+ ?)[ \r ]*`,Hl="[̀-ͯ]",nR=new RegExp(Hl+"+$"),rR="("+r3+"+)|"+(tR+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Hl+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Hl+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+eR)+("|"+JN+")");class i1{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(rR,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new wn("EOF",new cn(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new re("Unexpected character: '"+t[n]+"'",new wn(t[n],new cn(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` `,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new wn(i,new cn(this,n,this.tokenRegex.lastIndex))}}class iR{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new re("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var aR=W4;S("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});S("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});S("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});S("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});S("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});S("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");S("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var a1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};S("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new re("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=a1[t.text],r==null||r>=n)throw new re("Invalid base-"+n+" digit "+t.text);for(var i;(i=a1[e.future().text])!=null&&i{var i=e.consumeArg().tokens;if(i.length!==1)throw new re("\\newcommand's first argument must be a macro name");var a=i[0].text,s=e.isDefined(a);if(s&&!t)throw new re("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!n)throw new re("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(i=e.consumeArg().tokens,i.length===1&&i[0].text==="["){for(var u="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)u+=l.text,l=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new re("Invalid number of arguments: "+u);o=parseInt(u),i=e.consumeArg().tokens}return s&&r||e.macros.set(a,{tokens:i,numArgs:o}),""};S("\\newcommand",e=>Sc(e,!1,!0,!1));S("\\renewcommand",e=>Sc(e,!0,!1,!1));S("\\providecommand",e=>Sc(e,!0,!0,!0));S("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});S("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});S("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Sr[n],rt.math[n],rt.text[n]),""});S("\\bgroup","{");S("\\egroup","}");S("~","\\nobreakspace");S("\\lq","`");S("\\rq","'");S("\\aa","\\r a");S("\\AA","\\r A");S("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");S("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");S("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");S("ℬ","\\mathscr{B}");S("ℰ","\\mathscr{E}");S("ℱ","\\mathscr{F}");S("ℋ","\\mathscr{H}");S("ℐ","\\mathscr{I}");S("ℒ","\\mathscr{L}");S("ℳ","\\mathscr{M}");S("ℛ","\\mathscr{R}");S("ℭ","\\mathfrak{C}");S("ℌ","\\mathfrak{H}");S("ℨ","\\mathfrak{Z}");S("\\Bbbk","\\Bbb{k}");S("·","\\cdotp");S("\\llap","\\mathllap{\\textrm{#1}}");S("\\rlap","\\mathrlap{\\textrm{#1}}");S("\\clap","\\mathclap{\\textrm{#1}}");S("\\mathstrut","\\vphantom{(}");S("\\underbar","\\underline{\\text{#1}}");S("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');S("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");S("\\ne","\\neq");S("≠","\\neq");S("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");S("∉","\\notin");S("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");S("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");S("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");S("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");S("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");S("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");S("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");S("⟂","\\perp");S("‼","\\mathclose{!\\mkern-0.8mu!}");S("∌","\\notni");S("⌜","\\ulcorner");S("⌝","\\urcorner");S("⌞","\\llcorner");S("⌟","\\lrcorner");S("©","\\copyright");S("®","\\textregistered");S("️","\\textregistered");S("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');S("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');S("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');S("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');S("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");S("⋮","\\vdots");S("\\varGamma","\\mathit{\\Gamma}");S("\\varDelta","\\mathit{\\Delta}");S("\\varTheta","\\mathit{\\Theta}");S("\\varLambda","\\mathit{\\Lambda}");S("\\varXi","\\mathit{\\Xi}");S("\\varPi","\\mathit{\\Pi}");S("\\varSigma","\\mathit{\\Sigma}");S("\\varUpsilon","\\mathit{\\Upsilon}");S("\\varPhi","\\mathit{\\Phi}");S("\\varPsi","\\mathit{\\Psi}");S("\\varOmega","\\mathit{\\Omega}");S("\\substack","\\begin{subarray}{c}#1\\end{subarray}");S("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");S("\\boxed","\\fbox{$\\displaystyle{#1}$}");S("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");S("\\implies","\\DOTSB\\;\\Longrightarrow\\;");S("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");S("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");S("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var s1={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};S("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in s1?t=s1[n]:(n.slice(0,4)==="\\not"||n in rt.math&&ge.contains(["bin","rel"],rt.math[n].group))&&(t="\\dotsb"),t});var wc={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};S("\\dotso",function(e){var t=e.future().text;return t in wc?"\\ldots\\,":"\\ldots"});S("\\dotsc",function(e){var t=e.future().text;return t in wc&&t!==","?"\\ldots\\,":"\\ldots"});S("\\cdots",function(e){var t=e.future().text;return t in wc?"\\@cdots\\,":"\\@cdots"});S("\\dotsb","\\cdots");S("\\dotsm","\\cdots");S("\\dotsi","\\!\\cdots");S("\\dotsx","\\ldots\\,");S("\\DOTSI","\\relax");S("\\DOTSB","\\relax");S("\\DOTSX","\\relax");S("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");S("\\,","\\tmspace+{3mu}{.1667em}");S("\\thinspace","\\,");S("\\>","\\mskip{4mu}");S("\\:","\\tmspace+{4mu}{.2222em}");S("\\medspace","\\:");S("\\;","\\tmspace+{5mu}{.2777em}");S("\\thickspace","\\;");S("\\!","\\tmspace-{3mu}{.1667em}");S("\\negthinspace","\\!");S("\\negmedspace","\\tmspace-{4mu}{.2222em}");S("\\negthickspace","\\tmspace-{5mu}{.277em}");S("\\enspace","\\kern.5em ");S("\\enskip","\\hskip.5em\\relax");S("\\quad","\\hskip1em\\relax");S("\\qquad","\\hskip2em\\relax");S("\\tag","\\@ifstar\\tag@literal\\tag@paren");S("\\tag@paren","\\tag@literal{({#1})}");S("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new re("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});S("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");S("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");S("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");S("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");S("\\newline","\\\\\\relax");S("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var i3=le(Fn["Main-Regular"][84][1]-.7*Fn["Main-Regular"][65][1]);S("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+i3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");S("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+i3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");S("\\hspace","\\@ifstar\\@hspacer\\@hspace");S("\\@hspace","\\hskip #1\\relax");S("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");S("\\ordinarycolon",":");S("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");S("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');S("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');S("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');S("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');S("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');S("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');S("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');S("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');S("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');S("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');S("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');S("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');S("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');S("∷","\\dblcolon");S("∹","\\eqcolon");S("≔","\\coloneqq");S("≕","\\eqqcolon");S("⩴","\\Coloneqq");S("\\ratio","\\vcentcolon");S("\\coloncolon","\\dblcolon");S("\\colonequals","\\coloneqq");S("\\coloncolonequals","\\Coloneqq");S("\\equalscolon","\\eqqcolon");S("\\equalscoloncolon","\\Eqqcolon");S("\\colonminus","\\coloneq");S("\\coloncolonminus","\\Coloneq");S("\\minuscolon","\\eqcolon");S("\\minuscoloncolon","\\Eqcolon");S("\\coloncolonapprox","\\Colonapprox");S("\\coloncolonsim","\\Colonsim");S("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");S("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");S("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");S("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");S("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");S("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");S("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");S("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");S("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");S("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");S("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");S("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");S("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");S("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");S("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");S("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");S("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");S("\\nleqq","\\html@mathml{\\@nleqq}{≰}");S("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");S("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");S("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");S("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");S("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");S("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");S("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");S("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");S("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");S("\\imath","\\html@mathml{\\@imath}{ı}");S("\\jmath","\\html@mathml{\\@jmath}{ȷ}");S("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");S("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");S("⟦","\\llbracket");S("⟧","\\rrbracket");S("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");S("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");S("⦃","\\lBrace");S("⦄","\\rBrace");S("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");S("⦵","\\minuso");S("\\darr","\\downarrow");S("\\dArr","\\Downarrow");S("\\Darr","\\Downarrow");S("\\lang","\\langle");S("\\rang","\\rangle");S("\\uarr","\\uparrow");S("\\uArr","\\Uparrow");S("\\Uarr","\\Uparrow");S("\\N","\\mathbb{N}");S("\\R","\\mathbb{R}");S("\\Z","\\mathbb{Z}");S("\\alef","\\aleph");S("\\alefsym","\\aleph");S("\\Alpha","\\mathrm{A}");S("\\Beta","\\mathrm{B}");S("\\bull","\\bullet");S("\\Chi","\\mathrm{X}");S("\\clubs","\\clubsuit");S("\\cnums","\\mathbb{C}");S("\\Complex","\\mathbb{C}");S("\\Dagger","\\ddagger");S("\\diamonds","\\diamondsuit");S("\\empty","\\emptyset");S("\\Epsilon","\\mathrm{E}");S("\\Eta","\\mathrm{H}");S("\\exist","\\exists");S("\\harr","\\leftrightarrow");S("\\hArr","\\Leftrightarrow");S("\\Harr","\\Leftrightarrow");S("\\hearts","\\heartsuit");S("\\image","\\Im");S("\\infin","\\infty");S("\\Iota","\\mathrm{I}");S("\\isin","\\in");S("\\Kappa","\\mathrm{K}");S("\\larr","\\leftarrow");S("\\lArr","\\Leftarrow");S("\\Larr","\\Leftarrow");S("\\lrarr","\\leftrightarrow");S("\\lrArr","\\Leftrightarrow");S("\\Lrarr","\\Leftrightarrow");S("\\Mu","\\mathrm{M}");S("\\natnums","\\mathbb{N}");S("\\Nu","\\mathrm{N}");S("\\Omicron","\\mathrm{O}");S("\\plusmn","\\pm");S("\\rarr","\\rightarrow");S("\\rArr","\\Rightarrow");S("\\Rarr","\\Rightarrow");S("\\real","\\Re");S("\\reals","\\mathbb{R}");S("\\Reals","\\mathbb{R}");S("\\Rho","\\mathrm{P}");S("\\sdot","\\cdot");S("\\sect","\\S");S("\\spades","\\spadesuit");S("\\sub","\\subset");S("\\sube","\\subseteq");S("\\supe","\\supseteq");S("\\Tau","\\mathrm{T}");S("\\thetasym","\\vartheta");S("\\weierp","\\wp");S("\\Zeta","\\mathrm{Z}");S("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");S("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");S("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");S("\\bra","\\mathinner{\\langle{#1}|}");S("\\ket","\\mathinner{|{#1}\\rangle}");S("\\braket","\\mathinner{\\langle{#1}\\rangle}");S("\\Bra","\\left\\langle#1\\right|");S("\\Ket","\\left|#1\\right\\rangle");var a3=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var u=d=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var f=d;if(!d&&i.length){var b=p.future();b.text==="|"&&(p.popToken(),f=!0)}return{tokens:f?i:r,numArgs:0}};t.macros.set("|",u(!1)),i.length&&t.macros.set("\\|",u(!0));var l=t.consumeArg().tokens,c=t.expandTokens([...a,...l,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};S("\\bra@ket",a3(!1));S("\\bra@set",a3(!0));S("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");S("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");S("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");S("\\angln","{\\angl n}");S("\\blue","\\textcolor{##6495ed}{#1}");S("\\orange","\\textcolor{##ffa500}{#1}");S("\\pink","\\textcolor{##ff00af}{#1}");S("\\red","\\textcolor{##df0030}{#1}");S("\\green","\\textcolor{##28ae7b}{#1}");S("\\gray","\\textcolor{gray}{#1}");S("\\purple","\\textcolor{##9d38bd}{#1}");S("\\blueA","\\textcolor{##ccfaff}{#1}");S("\\blueB","\\textcolor{##80f6ff}{#1}");S("\\blueC","\\textcolor{##63d9ea}{#1}");S("\\blueD","\\textcolor{##11accd}{#1}");S("\\blueE","\\textcolor{##0c7f99}{#1}");S("\\tealA","\\textcolor{##94fff5}{#1}");S("\\tealB","\\textcolor{##26edd5}{#1}");S("\\tealC","\\textcolor{##01d1c1}{#1}");S("\\tealD","\\textcolor{##01a995}{#1}");S("\\tealE","\\textcolor{##208170}{#1}");S("\\greenA","\\textcolor{##b6ffb0}{#1}");S("\\greenB","\\textcolor{##8af281}{#1}");S("\\greenC","\\textcolor{##74cf70}{#1}");S("\\greenD","\\textcolor{##1fab54}{#1}");S("\\greenE","\\textcolor{##0d923f}{#1}");S("\\goldA","\\textcolor{##ffd0a9}{#1}");S("\\goldB","\\textcolor{##ffbb71}{#1}");S("\\goldC","\\textcolor{##ff9c39}{#1}");S("\\goldD","\\textcolor{##e07d10}{#1}");S("\\goldE","\\textcolor{##a75a05}{#1}");S("\\redA","\\textcolor{##fca9a9}{#1}");S("\\redB","\\textcolor{##ff8482}{#1}");S("\\redC","\\textcolor{##f9685d}{#1}");S("\\redD","\\textcolor{##e84d39}{#1}");S("\\redE","\\textcolor{##bc2612}{#1}");S("\\maroonA","\\textcolor{##ffbde0}{#1}");S("\\maroonB","\\textcolor{##ff92c6}{#1}");S("\\maroonC","\\textcolor{##ed5fa6}{#1}");S("\\maroonD","\\textcolor{##ca337c}{#1}");S("\\maroonE","\\textcolor{##9e034e}{#1}");S("\\purpleA","\\textcolor{##ddd7ff}{#1}");S("\\purpleB","\\textcolor{##c6b9fc}{#1}");S("\\purpleC","\\textcolor{##aa87ff}{#1}");S("\\purpleD","\\textcolor{##7854ab}{#1}");S("\\purpleE","\\textcolor{##543b78}{#1}");S("\\mintA","\\textcolor{##f5f9e8}{#1}");S("\\mintB","\\textcolor{##edf2df}{#1}");S("\\mintC","\\textcolor{##e0e5cc}{#1}");S("\\grayA","\\textcolor{##f6f7f7}{#1}");S("\\grayB","\\textcolor{##f0f1f2}{#1}");S("\\grayC","\\textcolor{##e3e5e6}{#1}");S("\\grayD","\\textcolor{##d6d8da}{#1}");S("\\grayE","\\textcolor{##babec2}{#1}");S("\\grayF","\\textcolor{##888d93}{#1}");S("\\grayG","\\textcolor{##626569}{#1}");S("\\grayH","\\textcolor{##3b3e40}{#1}");S("\\grayI","\\textcolor{##21242c}{#1}");S("\\kaBlue","\\textcolor{##314453}{#1}");S("\\kaGreen","\\textcolor{##71B307}{#1}");var s3={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class sR{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new iR(aR,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new i1(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new wn("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new re("Extra }",a)}else if(a.text==="EOF")throw new re("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new re("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new re("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new re("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var u=a[o];if(u.text==="#"){if(o===0)throw new re("Incomplete placeholder at end of macro body",u);if(u=a[--o],u.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(u.text))a.splice(o,2,...s[+u.text-1]);else throw new re("Not a valid argument number",u)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new wn(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new i1(i,this.settings),u=[],l=o.lex();l.text!=="EOF";)u.push(l),l=o.lex();u.reverse();var c={tokens:u,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||Sr.hasOwnProperty(t)||rt.math.hasOwnProperty(t)||rt.text.hasOwnProperty(t)||s3.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Sr.hasOwnProperty(t)&&!Sr[t].primitive}}var o1=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ls=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),zu={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},u1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let o3=class u3{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new sR(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new re("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new wn("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(u3.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&Sr[i.text]&&Sr[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=rt[this.mode][n].group,u=cn.range(t),l;if(GI.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(m4(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:cn.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;dl&&(l=c):c&&(l!==void 0&&l>-1&&u.push(` + please report what input caused this bug`);return r=r.slice(1,-1),{type:"verb",mode:"text",body:r,star:i}}u1.hasOwnProperty(n[0])&&!rt[this.mode][n[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+n[0]+'" used in math mode',t),n=u1[n[0]]+n.slice(1));var a=nR.exec(n);a&&(n=n.substring(0,a.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var s;if(rt[this.mode][n]){this.settings.strict&&this.mode==="math"&&Ll.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=rt[this.mode][n].group,u=cn.range(t),l;if(GI.hasOwnProperty(o)){var c=o;l={type:"atom",mode:this.mode,family:c,loc:u,text:n}}else l={type:o,mode:this.mode,loc:u,text:n};s=l}else if(n.charCodeAt(0)>=128)this.settings.strict&&(m4(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:cn.range(t),text:n};else return null;if(this.consume(),a)for(var d=0;dl&&(l=c):c&&(l!==void 0&&l>-1&&u.push(` `.repeat(l)||" "),l=-1,u.push(c))}return u.join("")}function b3(e,t,n){return e.type==="element"?LR(e,t,n):e.type==="text"?n.whitespace==="normal"?y3(e,n):OR(e):[]}function LR(e,t,n){const r=v3(e,n),i=e.children||[];let a=-1,s=[];if(DR(e))return s;let o,u;for(Ul(e)||y1(e)&&p1(t,e,y1)?u=` `:MR(e)?(o=2,u=2):g3(e)&&(o=1,u=1);++a-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const u=v1(t,n[s-1]);o=u===-1?t.length+1:u+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s4&&n.slice(0,4)==="data"&&ZR.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(E1,nM);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!E1.test(a)){let s=a.replace(JR,tM);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Nc}return new i(r,t)}function tM(e){return"-"+e.toLowerCase()}function nM(e){return e.charAt(1).toUpperCase()}const rM=E3([A3,w3,I3,N3,KR],"html"),R3=E3([A3,w3,I3,N3,QR],"svg"),iM={},aM={}.hasOwnProperty,M3=Y2("type",{handlers:{root:oM,element:hM,text:cM,comment:dM,doctype:lM}});function sM(e,t){const r=(t||iM).space;return M3(e,r==="svg"?R3:rM)}function oM(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Rc(e.children,n,t),Vi(e,n),n}function uM(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Rc(e.children,n,t),Vi(e,n),n}function lM(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Vi(e,t),t}function cM(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Vi(e,t),t}function dM(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Vi(e,t),t}function hM(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=R3);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&aM.call(e.properties,a)){const u=fM(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:zn[s],childNodes:[],parentNode:null};return o.childNodes=Rc(e.children,o,r),Vi(e,o),e.tagName==="template"&&e.content&&(o.content=uM(e.content,r)),o}function fM(e,t,n){const r=eM(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?s2(n):p2(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=zn[r.space]}return i}function Rc(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function gM(e){return e>=56320&&e<=57343}function bM(e,t){return(e-55296)*1024+9216+t}function P3(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function L3(e){return e>=64976&&e<=65007||mM.has(e)}var X;(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"})(X||(X={}));const yM=65536;class vM{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=yM,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:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,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(gM(n))return this.pos++,this._addGap(),bM(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(X.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=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,D3(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){P3(t)?this._err(X.controlCharacterInInputStream):L3(t)&&this._err(X.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const TM=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),xM=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 EM(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=xM.get(e))!==null&&t!==void 0?t:e}var Bt;(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"})(Bt||(Bt={}));const SM=32;var wr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wr||(wr={}));function ql(e){return e>=Bt.ZERO&&e<=Bt.NINE}function wM(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_F||e>=Bt.LOWER_A&&e<=Bt.LOWER_F}function AM(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_Z||e>=Bt.LOWER_A&&e<=Bt.LOWER_Z||ql(e)}function CM(e){return e===Bt.EQUALS||AM(e)}var _t;(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"})(_t||(_t={}));var tr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(tr||(tr={}));class kM{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=_t.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=tr.Strict}startEntity(t){this.decodeMode=t,this.state=_t.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case _t.EntityStart:return t.charCodeAt(n)===Bt.NUM?(this.state=_t.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=_t.NamedEntity,this.stateNamedEntity(t,n));case _t.NumericStart:return this.stateNumericStart(t,n);case _t.NumericDecimal:return this.stateNumericDecimal(t,n);case _t.NumericHex:return this.stateNumericHex(t,n);case _t.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SM)===Bt.LOWER_X?(this.state=_t.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=_t.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Bt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==tr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&wr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~wr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case _t.NamedEntity:return this.result!==0&&(this.decodeMode!==tr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _t.NumericDecimal:return this.emitNumericEntity(0,2);case _t.NumericHex:return this.emitNumericEntity(0,3);case _t.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _t.EntityStart:return 0}}}function IM(e,t,n,r){const i=(t&wr.BRANCH_LENGTH)>>7,a=t&wr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+i]}return-1}var J;(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/"})(J||(J={}));var Kr;(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"})(Kr||(Kr={}));var Tn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Tn||(Tn={}));var U;(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"})(U||(U={}));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 NM=new Map([[U.A,h.A],[U.ADDRESS,h.ADDRESS],[U.ANNOTATION_XML,h.ANNOTATION_XML],[U.APPLET,h.APPLET],[U.AREA,h.AREA],[U.ARTICLE,h.ARTICLE],[U.ASIDE,h.ASIDE],[U.B,h.B],[U.BASE,h.BASE],[U.BASEFONT,h.BASEFONT],[U.BGSOUND,h.BGSOUND],[U.BIG,h.BIG],[U.BLOCKQUOTE,h.BLOCKQUOTE],[U.BODY,h.BODY],[U.BR,h.BR],[U.BUTTON,h.BUTTON],[U.CAPTION,h.CAPTION],[U.CENTER,h.CENTER],[U.CODE,h.CODE],[U.COL,h.COL],[U.COLGROUP,h.COLGROUP],[U.DD,h.DD],[U.DESC,h.DESC],[U.DETAILS,h.DETAILS],[U.DIALOG,h.DIALOG],[U.DIR,h.DIR],[U.DIV,h.DIV],[U.DL,h.DL],[U.DT,h.DT],[U.EM,h.EM],[U.EMBED,h.EMBED],[U.FIELDSET,h.FIELDSET],[U.FIGCAPTION,h.FIGCAPTION],[U.FIGURE,h.FIGURE],[U.FONT,h.FONT],[U.FOOTER,h.FOOTER],[U.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[U.FORM,h.FORM],[U.FRAME,h.FRAME],[U.FRAMESET,h.FRAMESET],[U.H1,h.H1],[U.H2,h.H2],[U.H3,h.H3],[U.H4,h.H4],[U.H5,h.H5],[U.H6,h.H6],[U.HEAD,h.HEAD],[U.HEADER,h.HEADER],[U.HGROUP,h.HGROUP],[U.HR,h.HR],[U.HTML,h.HTML],[U.I,h.I],[U.IMG,h.IMG],[U.IMAGE,h.IMAGE],[U.INPUT,h.INPUT],[U.IFRAME,h.IFRAME],[U.KEYGEN,h.KEYGEN],[U.LABEL,h.LABEL],[U.LI,h.LI],[U.LINK,h.LINK],[U.LISTING,h.LISTING],[U.MAIN,h.MAIN],[U.MALIGNMARK,h.MALIGNMARK],[U.MARQUEE,h.MARQUEE],[U.MATH,h.MATH],[U.MENU,h.MENU],[U.META,h.META],[U.MGLYPH,h.MGLYPH],[U.MI,h.MI],[U.MO,h.MO],[U.MN,h.MN],[U.MS,h.MS],[U.MTEXT,h.MTEXT],[U.NAV,h.NAV],[U.NOBR,h.NOBR],[U.NOFRAMES,h.NOFRAMES],[U.NOEMBED,h.NOEMBED],[U.NOSCRIPT,h.NOSCRIPT],[U.OBJECT,h.OBJECT],[U.OL,h.OL],[U.OPTGROUP,h.OPTGROUP],[U.OPTION,h.OPTION],[U.P,h.P],[U.PARAM,h.PARAM],[U.PLAINTEXT,h.PLAINTEXT],[U.PRE,h.PRE],[U.RB,h.RB],[U.RP,h.RP],[U.RT,h.RT],[U.RTC,h.RTC],[U.RUBY,h.RUBY],[U.S,h.S],[U.SCRIPT,h.SCRIPT],[U.SEARCH,h.SEARCH],[U.SECTION,h.SECTION],[U.SELECT,h.SELECT],[U.SOURCE,h.SOURCE],[U.SMALL,h.SMALL],[U.SPAN,h.SPAN],[U.STRIKE,h.STRIKE],[U.STRONG,h.STRONG],[U.STYLE,h.STYLE],[U.SUB,h.SUB],[U.SUMMARY,h.SUMMARY],[U.SUP,h.SUP],[U.TABLE,h.TABLE],[U.TBODY,h.TBODY],[U.TEMPLATE,h.TEMPLATE],[U.TEXTAREA,h.TEXTAREA],[U.TFOOT,h.TFOOT],[U.TD,h.TD],[U.TH,h.TH],[U.THEAD,h.THEAD],[U.TITLE,h.TITLE],[U.TR,h.TR],[U.TRACK,h.TRACK],[U.TT,h.TT],[U.U,h.U],[U.UL,h.UL],[U.SVG,h.SVG],[U.VAR,h.VAR],[U.WBR,h.WBR],[U.XMP,h.XMP]]);function ji(e){var t;return(t=NM.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const te=h,RM={[J.HTML]:new Set([te.ADDRESS,te.APPLET,te.AREA,te.ARTICLE,te.ASIDE,te.BASE,te.BASEFONT,te.BGSOUND,te.BLOCKQUOTE,te.BODY,te.BR,te.BUTTON,te.CAPTION,te.CENTER,te.COL,te.COLGROUP,te.DD,te.DETAILS,te.DIR,te.DIV,te.DL,te.DT,te.EMBED,te.FIELDSET,te.FIGCAPTION,te.FIGURE,te.FOOTER,te.FORM,te.FRAME,te.FRAMESET,te.H1,te.H2,te.H3,te.H4,te.H5,te.H6,te.HEAD,te.HEADER,te.HGROUP,te.HR,te.HTML,te.IFRAME,te.IMG,te.INPUT,te.LI,te.LINK,te.LISTING,te.MAIN,te.MARQUEE,te.MENU,te.META,te.NAV,te.NOEMBED,te.NOFRAMES,te.NOSCRIPT,te.OBJECT,te.OL,te.P,te.PARAM,te.PLAINTEXT,te.PRE,te.SCRIPT,te.SECTION,te.SELECT,te.SOURCE,te.STYLE,te.SUMMARY,te.TABLE,te.TBODY,te.TD,te.TEMPLATE,te.TEXTAREA,te.TFOOT,te.TH,te.THEAD,te.TITLE,te.TR,te.TRACK,te.UL,te.WBR,te.XMP]),[J.MATHML]:new Set([te.MI,te.MO,te.MN,te.MS,te.MTEXT,te.ANNOTATION_XML]),[J.SVG]:new Set([te.TITLE,te.FOREIGN_OBJECT,te.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},$l=new Set([te.H1,te.H2,te.H3,te.H4,te.H5,te.H6]);U.STYLE,U.SCRIPT,U.XMP,U.IFRAME,U.NOEMBED,U.NOFRAMES,U.PLAINTEXT;var N;(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"})(N||(N={}));const kt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function MM(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function ua(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function DM(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Tr(e){return DM(e)||ua(e)}function S1(e){return Tr(e)||MM(e)}function Os(e){return e+32}function _3(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function w1(e){return _3(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function PM(e){return e===A.NULL?X.nullCharacterReference:e>1114111?X.characterReferenceOutsideUnicodeRange:D3(e)?X.surrogateCharacterReference:L3(e)?X.noncharacterCharacterReference:P3(e)||e===A.CARRIAGE_RETURN?X.controlCharacterReference:null}class LM{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=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new vM(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kM(TM,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(X.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(X.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=PM(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.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;n0&&this._err(X.endTagWithAttributes),t.selfClosing&&this._err(X.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 He.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case He.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case He.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:He.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=_3(t)?He.WHITESPACE_CHARACTER:t===A.NULL?He.NULL_CHARACTER:He.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(He.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?tr.Attribute:tr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Tr(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(X.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(X.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(X.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Tr(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(X.missingEndTagName),this.state=N.DATA;break}case A.EOF:{this._err(X.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err(X.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case A.EOF:{this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Tr(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Tr(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err(X.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case A.EOF:{this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Zt.SCRIPT,!1)&&w1(this.preprocessor.peek(Zt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n0&&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 i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===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])!==J.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=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(HM,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(FM,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(BM,J.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 i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case J.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case J.SVG:{if(k1.has(i))return!1;break}case J.MATHML:{if(C1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,co)}hasInListItemScope(t){return this.hasInDynamicScope(t,OM)}hasInButtonScope(t){return this.hasInDynamicScope(t,_M)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if($l.has(n))return!0;if(co.has(n))return!1;break}case J.SVG:{if(k1.has(n))return!1;break}case J.MATHML:{if(C1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.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])===J.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])===J.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&&B3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&A1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&A1.has(this.currentTagId);)this.pop()}}const Vu=3;var Bn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Bn||(Bn={}));const I1={type:Bn.Marker};class VM{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(u.name)===u.value)&&(a+=1,a>=Vu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(I1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Bn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Bn.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(I1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Bn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Bn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Bn.Element&&n.element===t)}}const xr={createDocument(){return{nodeName:"#document",mode:Tn.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 i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};xr.appendChild(e,a)}},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(xr.isTextNode(n)){n.value+=t;return}}xr.appendChild(e,xr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&xr.isTextNode(r)?r.value+=t:xr.insertBefore(e,xr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function GM(e){return e.name===F3&&e.publicId===null&&(e.systemId===null||e.systemId===jM)}function XM(e){if(e.name!==F3)return Tn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===qM)return Tn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),WM.has(n))return Tn.QUIRKS;let r=t===null?$M:H3;if(N1(n,r))return Tn.QUIRKS;if(r=t===null?z3:YM,N1(n,r))return Tn.LIMITED_QUIRKS}return Tn.NO_QUIRKS}const R1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},KM="definitionurl",QM="definitionURL",ZM=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])),JM=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),eD=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])),tD=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 nD(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===Kr.COLOR||r===Kr.SIZE||r===Kr.FACE)||tD.has(t)}function U3(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,J.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=_.TEXT}switchToPlaintextParsing(){this.insertionMode=_.TEXT,this.originalInsertionMode=_.IN_BODY,this.tokenizer.state=kt.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)===U.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=kt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=kt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=kt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=kt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,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,J.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,J.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(U.HTML,J.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 i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,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,i=this.treeAdapter.getTagName(t),a=n.type===He.END_TAG&&i===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,a)}}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)===U.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,J.HTML)}_processToken(t){switch(t.type){case He.CHARACTER:{this.onCharacter(t);break}case He.NULL_CHARACTER:{this.onNullCharacter(t);break}case He.COMMENT:{this.onComment(t);break}case He.DOCTYPE:{this.onDoctype(t);break}case He.START_TAG:{this._processStartTag(t);break}case He.END_TAG:{this.onEndTag(t);break}case He.EOF:{this.onEof(t);break}case He.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return sD(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Bn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_.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=_.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=_.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=_.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=_.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=_.IN_TABLE;return}case h.BODY:{this.insertionMode=_.IN_BODY;return}case h.FRAMESET:{this.insertionMode=_.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?_.AFTER_HEAD:_.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=_.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=_.IN_HEAD;return}break}}this.insertionMode=_.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=_.IN_SELECT_IN_TABLE;return}}this.insertionMode=_.IN_SELECT}_isElementCausesFosterParenting(t){return j3.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)===J.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 RM[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zP(this,t);return}switch(this.insertionMode){case _.INITIAL:{ta(this,t);break}case _.BEFORE_HTML:{xa(this,t);break}case _.BEFORE_HEAD:{Ea(this,t);break}case _.IN_HEAD:{Sa(this,t);break}case _.IN_HEAD_NO_SCRIPT:{wa(this,t);break}case _.AFTER_HEAD:{Aa(this,t);break}case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:{$3(this,t);break}case _.TEXT:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{ju(this,t);break}case _.IN_TABLE_TEXT:{Q3(this,t);break}case _.IN_COLUMN_GROUP:{ho(this,t);break}case _.AFTER_BODY:{fo(this,t);break}case _.AFTER_AFTER_BODY:{Ws(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HP(this,t);return}switch(this.insertionMode){case _.INITIAL:{ta(this,t);break}case _.BEFORE_HTML:{xa(this,t);break}case _.BEFORE_HEAD:{Ea(this,t);break}case _.IN_HEAD:{Sa(this,t);break}case _.IN_HEAD_NO_SCRIPT:{wa(this,t);break}case _.AFTER_HEAD:{Aa(this,t);break}case _.TEXT:{this._insertCharacters(t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{ju(this,t);break}case _.IN_COLUMN_GROUP:{ho(this,t);break}case _.AFTER_BODY:{fo(this,t);break}case _.AFTER_AFTER_BODY:{Ws(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Wl(this,t);return}switch(this.insertionMode){case _.INITIAL:case _.BEFORE_HTML:case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_TEMPLATE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:{Wl(this,t);break}case _.IN_TABLE_TEXT:{na(this,t);break}case _.AFTER_BODY:{bD(this,t);break}case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{yD(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case _.INITIAL:{vD(this,t);break}case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:{this._err(t,X.misplacedDoctype);break}case _.IN_TABLE_TEXT:{na(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,X.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?UP(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case _.INITIAL:{ta(this,t);break}case _.BEFORE_HTML:{TD(this,t);break}case _.BEFORE_HEAD:{ED(this,t);break}case _.IN_HEAD:{Pn(this,t);break}case _.IN_HEAD_NO_SCRIPT:{AD(this,t);break}case _.AFTER_HEAD:{kD(this,t);break}case _.IN_BODY:{qt(this,t);break}case _.IN_TABLE:{Mi(this,t);break}case _.IN_TABLE_TEXT:{na(this,t);break}case _.IN_CAPTION:{SP(this,t);break}case _.IN_COLUMN_GROUP:{Lc(this,t);break}case _.IN_TABLE_BODY:{Uo(this,t);break}case _.IN_ROW:{Vo(this,t);break}case _.IN_CELL:{CP(this,t);break}case _.IN_SELECT:{eg(this,t);break}case _.IN_SELECT_IN_TABLE:{IP(this,t);break}case _.IN_TEMPLATE:{RP(this,t);break}case _.AFTER_BODY:{DP(this,t);break}case _.IN_FRAMESET:{PP(this,t);break}case _.AFTER_FRAMESET:{OP(this,t);break}case _.AFTER_AFTER_BODY:{BP(this,t);break}case _.AFTER_AFTER_FRAMESET:{FP(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?VP(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case _.INITIAL:{ta(this,t);break}case _.BEFORE_HTML:{xD(this,t);break}case _.BEFORE_HEAD:{SD(this,t);break}case _.IN_HEAD:{wD(this,t);break}case _.IN_HEAD_NO_SCRIPT:{CD(this,t);break}case _.AFTER_HEAD:{ID(this,t);break}case _.IN_BODY:{zo(this,t);break}case _.TEXT:{fP(this,t);break}case _.IN_TABLE:{ja(this,t);break}case _.IN_TABLE_TEXT:{na(this,t);break}case _.IN_CAPTION:{wP(this,t);break}case _.IN_COLUMN_GROUP:{AP(this,t);break}case _.IN_TABLE_BODY:{Yl(this,t);break}case _.IN_ROW:{J3(this,t);break}case _.IN_CELL:{kP(this,t);break}case _.IN_SELECT:{tg(this,t);break}case _.IN_SELECT_IN_TABLE:{NP(this,t);break}case _.IN_TEMPLATE:{MP(this,t);break}case _.AFTER_BODY:{rg(this,t);break}case _.IN_FRAMESET:{LP(this,t);break}case _.AFTER_FRAMESET:{_P(this,t);break}case _.AFTER_AFTER_BODY:{Ws(this,t);break}}}onEof(t){switch(this.insertionMode){case _.INITIAL:{ta(this,t);break}case _.BEFORE_HTML:{xa(this,t);break}case _.BEFORE_HEAD:{Ea(this,t);break}case _.IN_HEAD:{Sa(this,t);break}case _.IN_HEAD_NO_SCRIPT:{wa(this,t);break}case _.AFTER_HEAD:{Aa(this,t);break}case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:{X3(this,t);break}case _.TEXT:{pP(this,t);break}case _.IN_TABLE_TEXT:{na(this,t);break}case _.IN_TEMPLATE:{ng(this,t);break}case _.AFTER_BODY:case _.IN_FRAMESET:case _.AFTER_FRAMESET:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{Pc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.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 _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.TEXT:case _.IN_COLUMN_GROUP:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:{this._insertCharacters(t);break}case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:case _.AFTER_BODY:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{q3(this,t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{ju(this,t);break}case _.IN_TABLE_TEXT:{K3(this,t);break}}}}function dD(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):G3(e,t),n}function hD(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function fD(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=lD;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=pD(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function pD(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 mD(e,t,n){const r=e.treeAdapter.getTagName(t),i=ji(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&a===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gD(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Dc(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function vD(e,t){e._setDocumentType(t);const n=t.forceQuirks?Tn.QUIRKS:XM(t);GM(t)||e._err(t,X.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=_.BEFORE_HTML}function ta(e,t){e._err(t,X.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Tn.QUIRKS),e.insertionMode=_.BEFORE_HTML,e._processToken(t)}function TD(e,t){t.tagID===h.HTML?(e._insertElement(t,J.HTML),e.insertionMode=_.BEFORE_HEAD):xa(e,t)}function xD(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&xa(e,t)}function xa(e,t){e._insertFakeRootElement(),e.insertionMode=_.BEFORE_HEAD,e._processToken(t)}function ED(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD;break}default:Ea(e,t)}}function SD(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Ea(e,t):e._err(t,X.endTagWithoutMatchingOpenElement)}function Ea(e,t){e._insertFakeElement(U.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD,e._processToken(t)}function Pn(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,kt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kt.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=_.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,kt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,kt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(_.IN_TEMPLATE);break}case h.HEAD:{e._err(t,X.misplacedStartTagForHeadElement);break}default:Sa(e,t)}}function wD(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=_.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{Sa(e,t);break}case h.TEMPLATE:{ai(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function ai(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,X.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,X.endTagWithoutMatchingOpenElement)}function Sa(e,t){e.openElements.pop(),e.insertionMode=_.AFTER_HEAD,e._processToken(t)}function AD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Pn(e,t);break}case h.NOSCRIPT:{e._err(t,X.nestedNoscriptInHead);break}default:wa(e,t)}}function CD(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=_.IN_HEAD;break}case h.BR:{wa(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function wa(e,t){const n=t.type===He.EOF?X.openElementsLeftAfterEof:X.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=_.IN_HEAD,e._processToken(t)}function kD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=_.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=_.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,X.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Pn(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,X.misplacedStartTagForHeadElement);break}default:Aa(e,t)}}function ID(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Aa(e,t);break}case h.TEMPLATE:{ai(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function Aa(e,t){e._insertFakeElement(U.BODY,h.BODY),e.insertionMode=_.IN_BODY,Ho(e,t)}function Ho(e,t){switch(t.type){case He.CHARACTER:{$3(e,t);break}case He.WHITESPACE_CHARACTER:{q3(e,t);break}case He.COMMENT:{Wl(e,t);break}case He.START_TAG:{qt(e,t);break}case He.END_TAG:{zo(e,t);break}case He.EOF:{X3(e,t);break}}}function q3(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $3(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ND(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function RD(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function MD(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_FRAMESET)}function DD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function PD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&$l.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function LD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function OD(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function _D(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function BD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=kt.PLAINTEXT}function FD(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function HD(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(U.A);n&&(Dc(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UD(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Dc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function VD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jD(e,t){e.treeAdapter.getDocumentMode(e.document)!==Tn.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=_.IN_TABLE}function W3(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Y3(e){const t=O3(e,Kr.TYPE);return t!=null&&t.toLowerCase()===oD}function qD(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),Y3(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $D(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function WD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YD(e,t){t.tagName=U.IMG,t.tagID=h.IMG,W3(e,t)}function GD(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=_.TEXT}function XD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kt.RAWTEXT)}function KD(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kt.RAWTEXT)}function P1(e,t){e._switchToTextParsing(t,kt.RAWTEXT)}function QD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===_.IN_TABLE||e.insertionMode===_.IN_CAPTION||e.insertionMode===_.IN_TABLE_BODY||e.insertionMode===_.IN_ROW||e.insertionMode===_.IN_CELL?_.IN_SELECT_IN_TABLE:_.IN_SELECT}function ZD(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function JD(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function eP(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,J.HTML)}function tP(e,t){e._reconstructActiveFormattingElements(),U3(t),Mc(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function nP(e,t){e._reconstructActiveFormattingElements(),V3(t),Mc(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function L1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function qt(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:{zD(e,t);break}case h.A:{HD(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{PD(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:{DD(e,t);break}case h.LI:case h.DD:case h.DT:{_D(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{W3(e,t);break}case h.HR:{WD(e,t);break}case h.RB:case h.RTC:{JD(e,t);break}case h.RT:case h.RP:{eP(e,t);break}case h.PRE:case h.LISTING:{LD(e,t);break}case h.XMP:{XD(e,t);break}case h.SVG:{nP(e,t);break}case h.HTML:{ND(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:{Pn(e,t);break}case h.BODY:{RD(e,t);break}case h.FORM:{OD(e,t);break}case h.NOBR:{UD(e,t);break}case h.MATH:{tP(e,t);break}case h.TABLE:{jD(e,t);break}case h.INPUT:{qD(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{$D(e,t);break}case h.IMAGE:{YD(e,t);break}case h.BUTTON:{FD(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{VD(e,t);break}case h.IFRAME:{KD(e,t);break}case h.SELECT:{QD(e,t);break}case h.OPTION:case h.OPTGROUP:{ZD(e,t);break}case h.NOEMBED:case h.NOFRAMES:{P1(e,t);break}case h.FRAMESET:{MD(e,t);break}case h.TEXTAREA:{GD(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?P1(e,t):L1(e,t);break}case h.PLAINTEXT:{BD(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:L1(e,t)}}function rP(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=_.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function iP(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=_.AFTER_BODY,rg(e,t))}function aP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function sP(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 oP(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(U.P,h.P),e._closePElement()}function uP(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function lP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cP(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function hP(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(U.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function G3(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function zo(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:{Dc(e,t);break}case h.P:{oP(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:{aP(e,t);break}case h.LI:{uP(e);break}case h.DD:case h.DT:{lP(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{cP(e);break}case h.BR:{hP(e);break}case h.BODY:{rP(e,t);break}case h.HTML:{iP(e,t);break}case h.FORM:{sP(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{dP(e,t);break}case h.TEMPLATE:{ai(e,t);break}default:G3(e,t)}}function X3(e,t){e.tmplInsertionModeStack.length>0?ng(e,t):Pc(e,t)}function fP(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 pP(e,t){e._err(t,X.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ju(e,t){if(e.openElements.currentTagId!==void 0&&j3.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_.IN_TABLE_TEXT,t.type){case He.CHARACTER:{Q3(e,t);break}case He.WHITESPACE_CHARACTER:{K3(e,t);break}}else ss(e,t)}function mP(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_CAPTION}function gP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_COLUMN_GROUP}function bP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.COLGROUP,h.COLGROUP),e.insertionMode=_.IN_COLUMN_GROUP,Lc(e,t)}function yP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_TABLE_BODY}function vP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.TBODY,h.TBODY),e.insertionMode=_.IN_TABLE_BODY,Uo(e,t)}function TP(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function xP(e,t){Y3(t)?e._appendElement(t,J.HTML):ss(e,t),t.ackSelfClosing=!0}function EP(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Mi(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{vP(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Pn(e,t);break}case h.COL:{bP(e,t);break}case h.FORM:{EP(e,t);break}case h.TABLE:{TP(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{yP(e,t);break}case h.INPUT:{xP(e,t);break}case h.CAPTION:{mP(e,t);break}case h.COLGROUP:{gP(e,t);break}default:ss(e,t)}}function ja(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{ai(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:ss(e,t)}}function ss(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ho(e,t),e.fosterParentingEnabled=n}function K3(e,t){e.pendingCharacterTokens.push(t)}function Q3(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function na(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&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:{ai(e,t);break}}}function IP(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)):eg(e,t)}function NP(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)):tg(e,t)}function RP(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:{Pn(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=_.IN_TABLE,e.insertionMode=_.IN_TABLE,Mi(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=_.IN_COLUMN_GROUP,e.insertionMode=_.IN_COLUMN_GROUP,Lc(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=_.IN_TABLE_BODY,e.insertionMode=_.IN_TABLE_BODY,Uo(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=_.IN_ROW,e.insertionMode=_.IN_ROW,Vo(e,t);break}default:e.tmplInsertionModeStack[0]=_.IN_BODY,e.insertionMode=_.IN_BODY,qt(e,t)}}function MP(e,t){t.tagID===h.TEMPLATE&&ai(e,t)}function ng(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Pc(e,t)}function DP(e,t){t.tagID===h.HTML?qt(e,t):fo(e,t)}function rg(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=_.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 fo(e,t)}function fo(e,t){e.insertionMode=_.IN_BODY,Ho(e,t)}function PP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.FRAMESET:{e._insertElement(t,J.HTML);break}case h.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Pn(e,t);break}}}function LP(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=_.AFTER_FRAMESET))}function OP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function _P(e,t){t.tagID===h.HTML&&(e.insertionMode=_.AFTER_AFTER_FRAMESET)}function BP(e,t){t.tagID===h.HTML?qt(e,t):Ws(e,t)}function Ws(e,t){e.insertionMode=_.IN_BODY,Ho(e,t)}function FP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function HP(e,t){t.chars=ut,e._insertCharacters(t)}function zP(e,t){e._insertCharacters(t),e.framesetOk=!1}function ig(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function UP(e,t){if(nD(t))ig(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?U3(t):r===J.SVG&&(rD(t),V3(t)),Mc(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function VP(e,t){if(t.tagID===h.P||t.tagID===h.BR){ig(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)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}U.AREA,U.BASE,U.BASEFONT,U.BGSOUND,U.BR,U.COL,U.EMBED,U.FRAME,U.HR,U.IMG,U.INPUT,U.KEYGEN,U.LINK,U.META,U.PARAM,U.SOURCE,U.TRACK,U.WBR;const jP=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,qP=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),O1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ag(e,t){const n=eL(e),r=Y2("type",{handlers:{root:$P,element:WP,text:YP,comment:og,doctype:GP,raw:KP},unknown:QP}),i={parser:n?new D1(O1):D1.getFragmentParser(void 0,O1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),qi(i,Gn());const a=n?i.parser.document:i.parser.getFragment(),s=$R(a,{file:i.options.file});return i.stitches&&Do(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function sg(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:os(e)};qi(t,Gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function GP(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:os(e)};qi(t,Gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function XP(e,t){t.stitches=!0;const n=tL(e);if("children"in e&&"children"in n){const r=ag({type:"root",children:e.children},t.options);n.children=r.children}og({type:"comment",value:{stitch:n}},t)}function og(e,t){const n=e.value,r={type:He.COMMENT,data:n,location:os(e)};qi(t,Gn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function KP(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,ug(t,Gn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(jP,"<$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 QP(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))XP(n,t);else{let r="";throw qP.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 qi(e,t){ug(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=kt.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 ug(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 ZP(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kt.PLAINTEXT)return;qi(t,Gn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:zn.html;i===zn.html&&n==="svg"&&(i=zn.svg);const a=sM({...e,children:[]},{space:i===zn.svg?"svg":"html"}),s={type:He.START_TAG,tagName:n,tagID:ji(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:os(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function JP(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&pM.includes(n)||t.parser.tokenizer.state===kt.PLAINTEXT)return;qi(t,ko(e));const r={type:He.END_TAG,tagName:n,tagID:ji(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:os(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kt.RCDATA||t.parser.tokenizer.state===kt.RAWTEXT||t.parser.tokenizer.state===kt.SCRIPT_DATA)&&(t.parser.tokenizer.state=kt.DATA)}function eL(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function os(e){const t=Gn(e)||{line:void 0,column:void 0,offset:void 0},n=ko(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 tL(e){return"children"in e?ei({...e,children:[]}):ei(e)}function nL(e){return function(t,n){return ag(t,{...e,file:n})}}const zr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],po={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...zr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...zr],h2:[["className","sr-only"]],img:[...zr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...zr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...zr],table:[...zr],ul:[...zr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Er={}.hasOwnProperty;function rL(e,t){let n={type:"root",children:[]};const r={schema:t?{...po,...t}:po,stack:[]},i=lg(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function lg(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return iL(e,n);case"doctype":return aL(e,n);case"element":return sL(e,n);case"root":return oL(e,n);case"text":return uL(e,n)}}}function iL(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return us(a,t),a}}function aL(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return us(n,t),n}}function sL(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=cg(e,t.children),i=lL(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Er.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u1){let i=!1,a=0;for(;++a-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()==="data")return n}function hL(e){return function(t){return rL(t,e)}}const fL=ue("article",{name:"MuiMarkdownRenderer",slot:"Root"})(({theme:e,isThinking:t})=>{const{palette:n,spacing:r,typography:i}=e,a={"& pre":{overflowX:"auto"}};return{...i.body1,overflowWrap:"break-word",maxWidth:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:r(1),color:t&&n.text.disabled||n.text.primary,...a,"& think":{color:n.text.disabled},"& ul, & ol":{margin:0}}}),pL=e=>e.replace(//,` +`,t);return r===-1?n:n===-1||n+1===r?r:n4&&n.slice(0,4)==="data"&&ZR.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(E1,nM);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!E1.test(a)){let s=a.replace(JR,tM);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Nc}return new i(r,t)}function tM(e){return"-"+e.toLowerCase()}function nM(e){return e.charAt(1).toUpperCase()}const rM=E3([A3,w3,I3,N3,KR],"html"),R3=E3([A3,w3,I3,N3,QR],"svg"),iM={},aM={}.hasOwnProperty,M3=Y2("type",{handlers:{root:oM,element:hM,text:cM,comment:dM,doctype:lM}});function sM(e,t){const r=(t||iM).space;return M3(e,r==="svg"?R3:rM)}function oM(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Rc(e.children,n,t),ji(e,n),n}function uM(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Rc(e.children,n,t),ji(e,n),n}function lM(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return ji(e,t),t}function cM(e){const t={nodeName:"#text",value:e.value,parentNode:null};return ji(e,t),t}function dM(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return ji(e,t),t}function hM(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=R3);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&aM.call(e.properties,a)){const u=fM(r,a,e.properties[a]);u&&i.push(u)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:zn[s],childNodes:[],parentNode:null};return o.childNodes=Rc(e.children,o,r),ji(e,o),e.tagName==="template"&&e.content&&(o.content=uM(e.content,r)),o}function fM(e,t,n){const r=eM(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?s2(n):p2(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=zn[r.space]}return i}function Rc(e,t,n){let r=-1;const i=[];if(e)for(;++r=55296&&e<=57343}function gM(e){return e>=56320&&e<=57343}function bM(e,t){return(e-55296)*1024+9216+t}function P3(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function L3(e){return e>=64976&&e<=65007||mM.has(e)}var X;(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"})(X||(X={}));const yM=65536;class vM{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=yM,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:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,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(gM(n))return this.pos++,this._addGap(),bM(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,A.EOF;return this._err(X.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=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,A.EOF;const r=this.html.charCodeAt(n);return r===A.CARRIAGE_RETURN?A.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,A.EOF;let t=this.html.charCodeAt(this.pos);return t===A.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,A.LINE_FEED):t===A.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,D3(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===A.LINE_FEED||t===A.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){P3(t)?this._err(X.controlCharacterInInputStream):L3(t)&&this._err(X.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const TM=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୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢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;怳Ādp໩໮uct;戏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ǣጓ\0጖y;䐎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Ā;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀ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Ā;e᜚᜜lƀ;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\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩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ↄⅪ←ٖ↛ǰ↉\0↎proø₞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;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\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\0⹻m;櫳;櫽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))),xM=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 EM(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=xM.get(e))!==null&&t!==void 0?t:e}var Bt;(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"})(Bt||(Bt={}));const SM=32;var wr;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wr||(wr={}));function ql(e){return e>=Bt.ZERO&&e<=Bt.NINE}function wM(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_F||e>=Bt.LOWER_A&&e<=Bt.LOWER_F}function AM(e){return e>=Bt.UPPER_A&&e<=Bt.UPPER_Z||e>=Bt.LOWER_A&&e<=Bt.LOWER_Z||ql(e)}function CM(e){return e===Bt.EQUALS||AM(e)}var _t;(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"})(_t||(_t={}));var tr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(tr||(tr={}));class kM{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=_t.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=tr.Strict}startEntity(t){this.decodeMode=t,this.state=_t.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case _t.EntityStart:return t.charCodeAt(n)===Bt.NUM?(this.state=_t.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=_t.NamedEntity,this.stateNamedEntity(t,n));case _t.NumericStart:return this.stateNumericStart(t,n);case _t.NumericDecimal:return this.stateNumericDecimal(t,n);case _t.NumericHex:return this.stateNumericHex(t,n);case _t.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|SM)===Bt.LOWER_X?(this.state=_t.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=_t.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Bt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==tr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&wr.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~wr.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case _t.NamedEntity:return this.result!==0&&(this.decodeMode!==tr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case _t.NumericDecimal:return this.emitNumericEntity(0,2);case _t.NumericHex:return this.emitNumericEntity(0,3);case _t.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case _t.EntityStart:return 0}}}function IM(e,t,n,r){const i=(t&wr.BRANCH_LENGTH)>>7,a=t&wr.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const u=r-a;return u<0||u>=i?-1:e[n+u]-1}let s=n,o=s+i-1;for(;s<=o;){const u=s+o>>>1,l=e[u];if(lr)o=u-1;else return e[u+i]}return-1}var J;(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/"})(J||(J={}));var Kr;(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"})(Kr||(Kr={}));var Tn;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Tn||(Tn={}));var U;(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"})(U||(U={}));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 NM=new Map([[U.A,h.A],[U.ADDRESS,h.ADDRESS],[U.ANNOTATION_XML,h.ANNOTATION_XML],[U.APPLET,h.APPLET],[U.AREA,h.AREA],[U.ARTICLE,h.ARTICLE],[U.ASIDE,h.ASIDE],[U.B,h.B],[U.BASE,h.BASE],[U.BASEFONT,h.BASEFONT],[U.BGSOUND,h.BGSOUND],[U.BIG,h.BIG],[U.BLOCKQUOTE,h.BLOCKQUOTE],[U.BODY,h.BODY],[U.BR,h.BR],[U.BUTTON,h.BUTTON],[U.CAPTION,h.CAPTION],[U.CENTER,h.CENTER],[U.CODE,h.CODE],[U.COL,h.COL],[U.COLGROUP,h.COLGROUP],[U.DD,h.DD],[U.DESC,h.DESC],[U.DETAILS,h.DETAILS],[U.DIALOG,h.DIALOG],[U.DIR,h.DIR],[U.DIV,h.DIV],[U.DL,h.DL],[U.DT,h.DT],[U.EM,h.EM],[U.EMBED,h.EMBED],[U.FIELDSET,h.FIELDSET],[U.FIGCAPTION,h.FIGCAPTION],[U.FIGURE,h.FIGURE],[U.FONT,h.FONT],[U.FOOTER,h.FOOTER],[U.FOREIGN_OBJECT,h.FOREIGN_OBJECT],[U.FORM,h.FORM],[U.FRAME,h.FRAME],[U.FRAMESET,h.FRAMESET],[U.H1,h.H1],[U.H2,h.H2],[U.H3,h.H3],[U.H4,h.H4],[U.H5,h.H5],[U.H6,h.H6],[U.HEAD,h.HEAD],[U.HEADER,h.HEADER],[U.HGROUP,h.HGROUP],[U.HR,h.HR],[U.HTML,h.HTML],[U.I,h.I],[U.IMG,h.IMG],[U.IMAGE,h.IMAGE],[U.INPUT,h.INPUT],[U.IFRAME,h.IFRAME],[U.KEYGEN,h.KEYGEN],[U.LABEL,h.LABEL],[U.LI,h.LI],[U.LINK,h.LINK],[U.LISTING,h.LISTING],[U.MAIN,h.MAIN],[U.MALIGNMARK,h.MALIGNMARK],[U.MARQUEE,h.MARQUEE],[U.MATH,h.MATH],[U.MENU,h.MENU],[U.META,h.META],[U.MGLYPH,h.MGLYPH],[U.MI,h.MI],[U.MO,h.MO],[U.MN,h.MN],[U.MS,h.MS],[U.MTEXT,h.MTEXT],[U.NAV,h.NAV],[U.NOBR,h.NOBR],[U.NOFRAMES,h.NOFRAMES],[U.NOEMBED,h.NOEMBED],[U.NOSCRIPT,h.NOSCRIPT],[U.OBJECT,h.OBJECT],[U.OL,h.OL],[U.OPTGROUP,h.OPTGROUP],[U.OPTION,h.OPTION],[U.P,h.P],[U.PARAM,h.PARAM],[U.PLAINTEXT,h.PLAINTEXT],[U.PRE,h.PRE],[U.RB,h.RB],[U.RP,h.RP],[U.RT,h.RT],[U.RTC,h.RTC],[U.RUBY,h.RUBY],[U.S,h.S],[U.SCRIPT,h.SCRIPT],[U.SEARCH,h.SEARCH],[U.SECTION,h.SECTION],[U.SELECT,h.SELECT],[U.SOURCE,h.SOURCE],[U.SMALL,h.SMALL],[U.SPAN,h.SPAN],[U.STRIKE,h.STRIKE],[U.STRONG,h.STRONG],[U.STYLE,h.STYLE],[U.SUB,h.SUB],[U.SUMMARY,h.SUMMARY],[U.SUP,h.SUP],[U.TABLE,h.TABLE],[U.TBODY,h.TBODY],[U.TEMPLATE,h.TEMPLATE],[U.TEXTAREA,h.TEXTAREA],[U.TFOOT,h.TFOOT],[U.TD,h.TD],[U.TH,h.TH],[U.THEAD,h.THEAD],[U.TITLE,h.TITLE],[U.TR,h.TR],[U.TRACK,h.TRACK],[U.TT,h.TT],[U.U,h.U],[U.UL,h.UL],[U.SVG,h.SVG],[U.VAR,h.VAR],[U.WBR,h.WBR],[U.XMP,h.XMP]]);function qi(e){var t;return(t=NM.get(e))!==null&&t!==void 0?t:h.UNKNOWN}const te=h,RM={[J.HTML]:new Set([te.ADDRESS,te.APPLET,te.AREA,te.ARTICLE,te.ASIDE,te.BASE,te.BASEFONT,te.BGSOUND,te.BLOCKQUOTE,te.BODY,te.BR,te.BUTTON,te.CAPTION,te.CENTER,te.COL,te.COLGROUP,te.DD,te.DETAILS,te.DIR,te.DIV,te.DL,te.DT,te.EMBED,te.FIELDSET,te.FIGCAPTION,te.FIGURE,te.FOOTER,te.FORM,te.FRAME,te.FRAMESET,te.H1,te.H2,te.H3,te.H4,te.H5,te.H6,te.HEAD,te.HEADER,te.HGROUP,te.HR,te.HTML,te.IFRAME,te.IMG,te.INPUT,te.LI,te.LINK,te.LISTING,te.MAIN,te.MARQUEE,te.MENU,te.META,te.NAV,te.NOEMBED,te.NOFRAMES,te.NOSCRIPT,te.OBJECT,te.OL,te.P,te.PARAM,te.PLAINTEXT,te.PRE,te.SCRIPT,te.SECTION,te.SELECT,te.SOURCE,te.STYLE,te.SUMMARY,te.TABLE,te.TBODY,te.TD,te.TEMPLATE,te.TEXTAREA,te.TFOOT,te.TH,te.THEAD,te.TITLE,te.TR,te.TRACK,te.UL,te.WBR,te.XMP]),[J.MATHML]:new Set([te.MI,te.MO,te.MN,te.MS,te.MTEXT,te.ANNOTATION_XML]),[J.SVG]:new Set([te.TITLE,te.FOREIGN_OBJECT,te.DESC]),[J.XLINK]:new Set,[J.XML]:new Set,[J.XMLNS]:new Set},$l=new Set([te.H1,te.H2,te.H3,te.H4,te.H5,te.H6]);U.STYLE,U.SCRIPT,U.XMP,U.IFRAME,U.NOEMBED,U.NOFRAMES,U.PLAINTEXT;var N;(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"})(N||(N={}));const kt={DATA:N.DATA,RCDATA:N.RCDATA,RAWTEXT:N.RAWTEXT,SCRIPT_DATA:N.SCRIPT_DATA,PLAINTEXT:N.PLAINTEXT,CDATA_SECTION:N.CDATA_SECTION};function MM(e){return e>=A.DIGIT_0&&e<=A.DIGIT_9}function la(e){return e>=A.LATIN_CAPITAL_A&&e<=A.LATIN_CAPITAL_Z}function DM(e){return e>=A.LATIN_SMALL_A&&e<=A.LATIN_SMALL_Z}function Tr(e){return DM(e)||la(e)}function S1(e){return Tr(e)||MM(e)}function Os(e){return e+32}function _3(e){return e===A.SPACE||e===A.LINE_FEED||e===A.TABULATION||e===A.FORM_FEED}function w1(e){return _3(e)||e===A.SOLIDUS||e===A.GREATER_THAN_SIGN}function PM(e){return e===A.NULL?X.nullCharacterReference:e>1114111?X.characterReferenceOutsideUnicodeRange:D3(e)?X.surrogateCharacterReference:L3(e)?X.noncharacterCharacterReference:P3(e)||e===A.CARRIAGE_RETURN?X.controlCharacterReference:null}class LM{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=N.DATA,this.returnState=N.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new vM(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new kM(TM,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(X.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(X.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=PM(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.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;n0&&this._err(X.endTagWithAttributes),t.selfClosing&&this._err(X.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 He.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case He.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case He.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:He.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=_3(t)?He.WHITESPACE_CHARACTER:t===A.NULL?He.NULL_CHARACTER:He.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(He.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=N.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?tr.Attribute:tr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===N.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===N.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case N.DATA:{this._stateData(t);break}case N.RCDATA:{this._stateRcdata(t);break}case N.RAWTEXT:{this._stateRawtext(t);break}case N.SCRIPT_DATA:{this._stateScriptData(t);break}case N.PLAINTEXT:{this._statePlaintext(t);break}case N.TAG_OPEN:{this._stateTagOpen(t);break}case N.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case N.TAG_NAME:{this._stateTagName(t);break}case N.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case N.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case N.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case N.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case N.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case N.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case N.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case N.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case N.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case N.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case N.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case N.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case N.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case N.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case N.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case N.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case N.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case N.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case N.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case N.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case N.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case N.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case N.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case N.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case N.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case N.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case N.BOGUS_COMMENT:{this._stateBogusComment(t);break}case N.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case N.COMMENT_START:{this._stateCommentStart(t);break}case N.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case N.COMMENT:{this._stateComment(t);break}case N.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case N.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case N.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case N.COMMENT_END:{this._stateCommentEnd(t);break}case N.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case N.DOCTYPE:{this._stateDoctype(t);break}case N.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case N.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case N.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case N.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case N.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case N.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case N.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case N.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case N.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case N.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case N.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case N.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case N.CDATA_SECTION:{this._stateCdataSection(t);break}case N.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case N.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case N.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case N.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.TAG_OPEN;break}case A.AMPERSAND:{this._startCharacterReference();break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitCodePoint(t);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case A.AMPERSAND:{this._startCharacterReference();break}case A.LESS_THAN_SIGN:{this.state=N.RCDATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.RAWTEXT_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case A.LESS_THAN_SIGN:{this.state=N.SCRIPT_DATA_LESS_THAN_SIGN;break}case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case A.NULL:{this._err(X.unexpectedNullCharacter),this._emitChars(ut);break}case A.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Tr(t))this._createStartTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.EXCLAMATION_MARK:{this.state=N.MARKUP_DECLARATION_OPEN;break}case A.SOLIDUS:{this.state=N.END_TAG_OPEN;break}case A.QUESTION_MARK:{this._err(X.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=N.BOGUS_COMMENT,this._stateBogusComment(t);break}case A.EOF:{this._err(X.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(X.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=N.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Tr(t))this._createEndTagToken(),this.state=N.TAG_NAME,this._stateTagName(t);else switch(t){case A.GREATER_THAN_SIGN:{this._err(X.missingEndTagName),this.state=N.DATA;break}case A.EOF:{this._err(X.eofBeforeTagName),this._emitChars("");break}case A.NULL:{this._err(X.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_ESCAPED,this._emitChars(ut);break}case A.EOF:{this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===A.SOLIDUS?this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Tr(t)?(this._emitChars("<"),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=N.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Tr(t)?(this.state=N.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case A.NULL:{this._err(X.unexpectedNullCharacter),this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ut);break}case A.EOF:{this._err(X.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===A.SOLIDUS?(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=N.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Zt.SCRIPT,!1)&&w1(this.preprocessor.peek(Zt.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n0&&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 i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===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])!==J.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=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(HM,J.HTML)}clearBackToTableBodyContext(){this.clearBackTo(FM,J.HTML)}clearBackToTableRowContext(){this.clearBackTo(BM,J.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 i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case J.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case J.SVG:{if(k1.has(i))return!1;break}case J.MATHML:{if(C1.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,co)}hasInListItemScope(t){return this.hasInDynamicScope(t,OM)}hasInButtonScope(t){return this.hasInDynamicScope(t,_M)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case J.HTML:{if($l.has(n))return!0;if(co.has(n))return!1;break}case J.SVG:{if(k1.has(n))return!1;break}case J.MATHML:{if(C1.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===J.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])===J.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])===J.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&&B3.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&A1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&A1.has(this.currentTagId);)this.pop()}}const Vu=3;var Bn;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Bn||(Bn={}));const I1={type:Bn.Marker};class VM{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(u.name)===u.value)&&(a+=1,a>=Vu&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(I1)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Bn.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Bn.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(I1);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Bn.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Bn.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Bn.Element&&n.element===t)}}const xr={createDocument(){return{nodeName:"#document",mode:Tn.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 i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};xr.appendChild(e,a)}},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(xr.isTextNode(n)){n.value+=t;return}}xr.appendChild(e,xr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&xr.isTextNode(r)?r.value+=t:xr.insertBefore(e,xr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function GM(e){return e.name===F3&&e.publicId===null&&(e.systemId===null||e.systemId===jM)}function XM(e){if(e.name!==F3)return Tn.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===qM)return Tn.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),WM.has(n))return Tn.QUIRKS;let r=t===null?$M:H3;if(N1(n,r))return Tn.QUIRKS;if(r=t===null?z3:YM,N1(n,r))return Tn.LIMITED_QUIRKS}return Tn.NO_QUIRKS}const R1={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},KM="definitionurl",QM="definitionURL",ZM=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])),JM=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:J.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:J.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:J.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:J.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:J.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:J.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:J.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:J.XML}],["xml:space",{prefix:"xml",name:"space",namespace:J.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:J.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:J.XMLNS}]]),eD=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])),tD=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 nD(e){const t=e.tagID;return t===h.FONT&&e.attrs.some(({name:r})=>r===Kr.COLOR||r===Kr.SIZE||r===Kr.FACE)||tD.has(t)}function U3(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===J.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,J.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=_.TEXT}switchToPlaintextParsing(){this.insertionMode=_.TEXT,this.originalInsertionMode=_.IN_BODY,this.tokenizer.state=kt.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)===U.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==J.HTML))switch(this.fragmentContextID){case h.TITLE:case h.TEXTAREA:{this.tokenizer.state=kt.RCDATA;break}case h.STYLE:case h.XMP:case h.IFRAME:case h.NOEMBED:case h.NOFRAMES:case h.NOSCRIPT:{this.tokenizer.state=kt.RAWTEXT;break}case h.SCRIPT:{this.tokenizer.state=kt.SCRIPT_DATA;break}case h.PLAINTEXT:{this.tokenizer.state=kt.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,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,J.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,J.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(U.HTML,J.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 i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:u,endCol:l,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:u,endCol:l,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,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,i=this.treeAdapter.getTagName(t),a=n.type===He.END_TAG&&i===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,a)}}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)===U.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===J.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===h.MGLYPH||t.tagID===h.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,J.HTML)}_processToken(t){switch(t.type){case He.CHARACTER:{this.onCharacter(t);break}case He.NULL_CHARACTER:{this.onNullCharacter(t);break}case He.COMMENT:{this.onComment(t);break}case He.DOCTYPE:{this.onDoctype(t);break}case He.START_TAG:{this._processStartTag(t);break}case He.END_TAG:{this.onEndTag(t);break}case He.EOF:{this.onEof(t);break}case He.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return sD(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Bn.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=_.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=_.IN_ROW;return}case h.TBODY:case h.THEAD:case h.TFOOT:{this.insertionMode=_.IN_TABLE_BODY;return}case h.CAPTION:{this.insertionMode=_.IN_CAPTION;return}case h.COLGROUP:{this.insertionMode=_.IN_COLUMN_GROUP;return}case h.TABLE:{this.insertionMode=_.IN_TABLE;return}case h.BODY:{this.insertionMode=_.IN_BODY;return}case h.FRAMESET:{this.insertionMode=_.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?_.AFTER_HEAD:_.BEFORE_HEAD;return}case h.TD:case h.TH:{if(t>0){this.insertionMode=_.IN_CELL;return}break}case h.HEAD:{if(t>0){this.insertionMode=_.IN_HEAD;return}break}}this.insertionMode=_.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=_.IN_SELECT_IN_TABLE;return}}this.insertionMode=_.IN_SELECT}_isElementCausesFosterParenting(t){return j3.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)===J.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 RM[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){zP(this,t);return}switch(this.insertionMode){case _.INITIAL:{na(this,t);break}case _.BEFORE_HTML:{Ea(this,t);break}case _.BEFORE_HEAD:{Sa(this,t);break}case _.IN_HEAD:{wa(this,t);break}case _.IN_HEAD_NO_SCRIPT:{Aa(this,t);break}case _.AFTER_HEAD:{Ca(this,t);break}case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:{$3(this,t);break}case _.TEXT:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{ju(this,t);break}case _.IN_TABLE_TEXT:{Q3(this,t);break}case _.IN_COLUMN_GROUP:{ho(this,t);break}case _.AFTER_BODY:{fo(this,t);break}case _.AFTER_AFTER_BODY:{Ws(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){HP(this,t);return}switch(this.insertionMode){case _.INITIAL:{na(this,t);break}case _.BEFORE_HTML:{Ea(this,t);break}case _.BEFORE_HEAD:{Sa(this,t);break}case _.IN_HEAD:{wa(this,t);break}case _.IN_HEAD_NO_SCRIPT:{Aa(this,t);break}case _.AFTER_HEAD:{Ca(this,t);break}case _.TEXT:{this._insertCharacters(t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{ju(this,t);break}case _.IN_COLUMN_GROUP:{ho(this,t);break}case _.AFTER_BODY:{fo(this,t);break}case _.AFTER_AFTER_BODY:{Ws(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Wl(this,t);return}switch(this.insertionMode){case _.INITIAL:case _.BEFORE_HTML:case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_TEMPLATE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:{Wl(this,t);break}case _.IN_TABLE_TEXT:{ra(this,t);break}case _.AFTER_BODY:{bD(this,t);break}case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{yD(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case _.INITIAL:{vD(this,t);break}case _.BEFORE_HEAD:case _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:{this._err(t,X.misplacedDoctype);break}case _.IN_TABLE_TEXT:{ra(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,X.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?UP(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case _.INITIAL:{na(this,t);break}case _.BEFORE_HTML:{TD(this,t);break}case _.BEFORE_HEAD:{ED(this,t);break}case _.IN_HEAD:{Pn(this,t);break}case _.IN_HEAD_NO_SCRIPT:{AD(this,t);break}case _.AFTER_HEAD:{kD(this,t);break}case _.IN_BODY:{qt(this,t);break}case _.IN_TABLE:{Di(this,t);break}case _.IN_TABLE_TEXT:{ra(this,t);break}case _.IN_CAPTION:{SP(this,t);break}case _.IN_COLUMN_GROUP:{Lc(this,t);break}case _.IN_TABLE_BODY:{Uo(this,t);break}case _.IN_ROW:{Vo(this,t);break}case _.IN_CELL:{CP(this,t);break}case _.IN_SELECT:{eg(this,t);break}case _.IN_SELECT_IN_TABLE:{IP(this,t);break}case _.IN_TEMPLATE:{RP(this,t);break}case _.AFTER_BODY:{DP(this,t);break}case _.IN_FRAMESET:{PP(this,t);break}case _.AFTER_FRAMESET:{OP(this,t);break}case _.AFTER_AFTER_BODY:{BP(this,t);break}case _.AFTER_AFTER_FRAMESET:{FP(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?VP(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case _.INITIAL:{na(this,t);break}case _.BEFORE_HTML:{xD(this,t);break}case _.BEFORE_HEAD:{SD(this,t);break}case _.IN_HEAD:{wD(this,t);break}case _.IN_HEAD_NO_SCRIPT:{CD(this,t);break}case _.AFTER_HEAD:{ID(this,t);break}case _.IN_BODY:{zo(this,t);break}case _.TEXT:{fP(this,t);break}case _.IN_TABLE:{ja(this,t);break}case _.IN_TABLE_TEXT:{ra(this,t);break}case _.IN_CAPTION:{wP(this,t);break}case _.IN_COLUMN_GROUP:{AP(this,t);break}case _.IN_TABLE_BODY:{Yl(this,t);break}case _.IN_ROW:{J3(this,t);break}case _.IN_CELL:{kP(this,t);break}case _.IN_SELECT:{tg(this,t);break}case _.IN_SELECT_IN_TABLE:{NP(this,t);break}case _.IN_TEMPLATE:{MP(this,t);break}case _.AFTER_BODY:{rg(this,t);break}case _.IN_FRAMESET:{LP(this,t);break}case _.AFTER_FRAMESET:{_P(this,t);break}case _.AFTER_AFTER_BODY:{Ws(this,t);break}}}onEof(t){switch(this.insertionMode){case _.INITIAL:{na(this,t);break}case _.BEFORE_HTML:{Ea(this,t);break}case _.BEFORE_HEAD:{Sa(this,t);break}case _.IN_HEAD:{wa(this,t);break}case _.IN_HEAD_NO_SCRIPT:{Aa(this,t);break}case _.AFTER_HEAD:{Ca(this,t);break}case _.IN_BODY:case _.IN_TABLE:case _.IN_CAPTION:case _.IN_COLUMN_GROUP:case _.IN_TABLE_BODY:case _.IN_ROW:case _.IN_CELL:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:{X3(this,t);break}case _.TEXT:{pP(this,t);break}case _.IN_TABLE_TEXT:{ra(this,t);break}case _.IN_TEMPLATE:{ng(this,t);break}case _.AFTER_BODY:case _.IN_FRAMESET:case _.AFTER_FRAMESET:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{Pc(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===A.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 _.IN_HEAD:case _.IN_HEAD_NO_SCRIPT:case _.AFTER_HEAD:case _.TEXT:case _.IN_COLUMN_GROUP:case _.IN_SELECT:case _.IN_SELECT_IN_TABLE:case _.IN_FRAMESET:case _.AFTER_FRAMESET:{this._insertCharacters(t);break}case _.IN_BODY:case _.IN_CAPTION:case _.IN_CELL:case _.IN_TEMPLATE:case _.AFTER_BODY:case _.AFTER_AFTER_BODY:case _.AFTER_AFTER_FRAMESET:{q3(this,t);break}case _.IN_TABLE:case _.IN_TABLE_BODY:case _.IN_ROW:{ju(this,t);break}case _.IN_TABLE_TEXT:{K3(this,t);break}}}}function dD(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):G3(e,t),n}function hD(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function fD(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),u=o&&a>=lD;!o||u?(u&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=pD(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function pD(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 mD(e,t,n){const r=e.treeAdapter.getTagName(t),i=qi(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===h.TEMPLATE&&a===J.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function gD(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Dc(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function vD(e,t){e._setDocumentType(t);const n=t.forceQuirks?Tn.QUIRKS:XM(t);GM(t)||e._err(t,X.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=_.BEFORE_HTML}function na(e,t){e._err(t,X.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Tn.QUIRKS),e.insertionMode=_.BEFORE_HTML,e._processToken(t)}function TD(e,t){t.tagID===h.HTML?(e._insertElement(t,J.HTML),e.insertionMode=_.BEFORE_HEAD):Ea(e,t)}function xD(e,t){const n=t.tagID;(n===h.HTML||n===h.HEAD||n===h.BODY||n===h.BR)&&Ea(e,t)}function Ea(e,t){e._insertFakeRootElement(),e.insertionMode=_.BEFORE_HEAD,e._processToken(t)}function ED(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.HEAD:{e._insertElement(t,J.HTML),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD;break}default:Sa(e,t)}}function SD(e,t){const n=t.tagID;n===h.HEAD||n===h.BODY||n===h.HTML||n===h.BR?Sa(e,t):e._err(t,X.endTagWithoutMatchingOpenElement)}function Sa(e,t){e._insertFakeElement(U.HEAD,h.HEAD),e.headElement=e.openElements.current,e.insertionMode=_.IN_HEAD,e._processToken(t)}function Pn(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BASE:case h.BASEFONT:case h.BGSOUND:case h.LINK:case h.META:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case h.TITLE:{e._switchToTextParsing(t,kt.RCDATA);break}case h.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,kt.RAWTEXT):(e._insertElement(t,J.HTML),e.insertionMode=_.IN_HEAD_NO_SCRIPT);break}case h.NOFRAMES:case h.STYLE:{e._switchToTextParsing(t,kt.RAWTEXT);break}case h.SCRIPT:{e._switchToTextParsing(t,kt.SCRIPT_DATA);break}case h.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=_.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(_.IN_TEMPLATE);break}case h.HEAD:{e._err(t,X.misplacedStartTagForHeadElement);break}default:wa(e,t)}}function wD(e,t){switch(t.tagID){case h.HEAD:{e.openElements.pop(),e.insertionMode=_.AFTER_HEAD;break}case h.BODY:case h.BR:case h.HTML:{wa(e,t);break}case h.TEMPLATE:{ai(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function ai(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==h.TEMPLATE&&e._err(t,X.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,X.endTagWithoutMatchingOpenElement)}function wa(e,t){e.openElements.pop(),e.insertionMode=_.AFTER_HEAD,e._processToken(t)}function AD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BASEFONT:case h.BGSOUND:case h.HEAD:case h.LINK:case h.META:case h.NOFRAMES:case h.STYLE:{Pn(e,t);break}case h.NOSCRIPT:{e._err(t,X.nestedNoscriptInHead);break}default:Aa(e,t)}}function CD(e,t){switch(t.tagID){case h.NOSCRIPT:{e.openElements.pop(),e.insertionMode=_.IN_HEAD;break}case h.BR:{Aa(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function Aa(e,t){const n=t.type===He.EOF?X.openElementsLeftAfterEof:X.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=_.IN_HEAD,e._processToken(t)}function kD(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.BODY:{e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=_.IN_BODY;break}case h.FRAMESET:{e._insertElement(t,J.HTML),e.insertionMode=_.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,X.abandonedHeadElementChild),e.openElements.push(e.headElement,h.HEAD),Pn(e,t),e.openElements.remove(e.headElement);break}case h.HEAD:{e._err(t,X.misplacedStartTagForHeadElement);break}default:Ca(e,t)}}function ID(e,t){switch(t.tagID){case h.BODY:case h.HTML:case h.BR:{Ca(e,t);break}case h.TEMPLATE:{ai(e,t);break}default:e._err(t,X.endTagWithoutMatchingOpenElement)}}function Ca(e,t){e._insertFakeElement(U.BODY,h.BODY),e.insertionMode=_.IN_BODY,Ho(e,t)}function Ho(e,t){switch(t.type){case He.CHARACTER:{$3(e,t);break}case He.WHITESPACE_CHARACTER:{q3(e,t);break}case He.COMMENT:{Wl(e,t);break}case He.START_TAG:{qt(e,t);break}case He.END_TAG:{zo(e,t);break}case He.EOF:{X3(e,t);break}}}function q3(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function $3(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function ND(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function RD(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function MD(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_FRAMESET)}function DD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function PD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&$l.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,J.HTML)}function LD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function OD(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),n||(e.formElement=e.openElements.current))}function _D(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===h.LI&&i===h.LI||(n===h.DD||n===h.DT)&&(i===h.DD||i===h.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==h.ADDRESS&&i!==h.DIV&&i!==h.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML)}function BD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.tokenizer.state=kt.PLAINTEXT}function FD(e,t){e.openElements.hasInScope(h.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(h.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1}function HD(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(U.A);n&&(Dc(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function zD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function UD(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(h.NOBR)&&(Dc(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,J.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function VD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function jD(e,t){e.treeAdapter.getDocumentMode(e.document)!==Tn.QUIRKS&&e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=_.IN_TABLE}function W3(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Y3(e){const t=O3(e,Kr.TYPE);return t!=null&&t.toLowerCase()===oD}function qD(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,J.HTML),Y3(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function $D(e,t){e._appendElement(t,J.HTML),t.ackSelfClosing=!0}function WD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._appendElement(t,J.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function YD(e,t){t.tagName=U.IMG,t.tagID=h.IMG,W3(e,t)}function GD(e,t){e._insertElement(t,J.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kt.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=_.TEXT}function XD(e,t){e.openElements.hasInButtonScope(h.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,kt.RAWTEXT)}function KD(e,t){e.framesetOk=!1,e._switchToTextParsing(t,kt.RAWTEXT)}function P1(e,t){e._switchToTextParsing(t,kt.RAWTEXT)}function QD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===_.IN_TABLE||e.insertionMode===_.IN_CAPTION||e.insertionMode===_.IN_TABLE_BODY||e.insertionMode===_.IN_ROW||e.insertionMode===_.IN_CELL?_.IN_SELECT_IN_TABLE:_.IN_SELECT}function ZD(e,t){e.openElements.currentTagId===h.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function JD(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,J.HTML)}function eP(e,t){e.openElements.hasInScope(h.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(h.RTC),e._insertElement(t,J.HTML)}function tP(e,t){e._reconstructActiveFormattingElements(),U3(t),Mc(t),t.selfClosing?e._appendElement(t,J.MATHML):e._insertElement(t,J.MATHML),t.ackSelfClosing=!0}function nP(e,t){e._reconstructActiveFormattingElements(),V3(t),Mc(t),t.selfClosing?e._appendElement(t,J.SVG):e._insertElement(t,J.SVG),t.ackSelfClosing=!0}function L1(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,J.HTML)}function qt(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:{zD(e,t);break}case h.A:{HD(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{PD(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:{DD(e,t);break}case h.LI:case h.DD:case h.DT:{_D(e,t);break}case h.BR:case h.IMG:case h.WBR:case h.AREA:case h.EMBED:case h.KEYGEN:{W3(e,t);break}case h.HR:{WD(e,t);break}case h.RB:case h.RTC:{JD(e,t);break}case h.RT:case h.RP:{eP(e,t);break}case h.PRE:case h.LISTING:{LD(e,t);break}case h.XMP:{XD(e,t);break}case h.SVG:{nP(e,t);break}case h.HTML:{ND(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:{Pn(e,t);break}case h.BODY:{RD(e,t);break}case h.FORM:{OD(e,t);break}case h.NOBR:{UD(e,t);break}case h.MATH:{tP(e,t);break}case h.TABLE:{jD(e,t);break}case h.INPUT:{qD(e,t);break}case h.PARAM:case h.TRACK:case h.SOURCE:{$D(e,t);break}case h.IMAGE:{YD(e,t);break}case h.BUTTON:{FD(e,t);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{VD(e,t);break}case h.IFRAME:{KD(e,t);break}case h.SELECT:{QD(e,t);break}case h.OPTION:case h.OPTGROUP:{ZD(e,t);break}case h.NOEMBED:case h.NOFRAMES:{P1(e,t);break}case h.FRAMESET:{MD(e,t);break}case h.TEXTAREA:{GD(e,t);break}case h.NOSCRIPT:{e.options.scriptingEnabled?P1(e,t):L1(e,t);break}case h.PLAINTEXT:{BD(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:L1(e,t)}}function rP(e,t){if(e.openElements.hasInScope(h.BODY)&&(e.insertionMode=_.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function iP(e,t){e.openElements.hasInScope(h.BODY)&&(e.insertionMode=_.AFTER_BODY,rg(e,t))}function aP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function sP(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 oP(e){e.openElements.hasInButtonScope(h.P)||e._insertFakeElement(U.P,h.P),e._closePElement()}function uP(e){e.openElements.hasInListItemScope(h.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(h.LI),e.openElements.popUntilTagNamePopped(h.LI))}function lP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function cP(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function dP(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function hP(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(U.BR,h.BR),e.openElements.pop(),e.framesetOk=!1}function G3(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==h.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function zo(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:{Dc(e,t);break}case h.P:{oP(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:{aP(e,t);break}case h.LI:{uP(e);break}case h.DD:case h.DT:{lP(e,t);break}case h.H1:case h.H2:case h.H3:case h.H4:case h.H5:case h.H6:{cP(e);break}case h.BR:{hP(e);break}case h.BODY:{rP(e,t);break}case h.HTML:{iP(e,t);break}case h.FORM:{sP(e);break}case h.APPLET:case h.OBJECT:case h.MARQUEE:{dP(e,t);break}case h.TEMPLATE:{ai(e,t);break}default:G3(e,t)}}function X3(e,t){e.tmplInsertionModeStack.length>0?ng(e,t):Pc(e,t)}function fP(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 pP(e,t){e._err(t,X.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function ju(e,t){if(e.openElements.currentTagId!==void 0&&j3.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=_.IN_TABLE_TEXT,t.type){case He.CHARACTER:{Q3(e,t);break}case He.WHITESPACE_CHARACTER:{K3(e,t);break}}else ss(e,t)}function mP(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_CAPTION}function gP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_COLUMN_GROUP}function bP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.COLGROUP,h.COLGROUP),e.insertionMode=_.IN_COLUMN_GROUP,Lc(e,t)}function yP(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,J.HTML),e.insertionMode=_.IN_TABLE_BODY}function vP(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(U.TBODY,h.TBODY),e.insertionMode=_.IN_TABLE_BODY,Uo(e,t)}function TP(e,t){e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function xP(e,t){Y3(t)?e._appendElement(t,J.HTML):ss(e,t),t.ackSelfClosing=!0}function EP(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,J.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Di(e,t){switch(t.tagID){case h.TD:case h.TH:case h.TR:{vP(e,t);break}case h.STYLE:case h.SCRIPT:case h.TEMPLATE:{Pn(e,t);break}case h.COL:{bP(e,t);break}case h.FORM:{EP(e,t);break}case h.TABLE:{TP(e,t);break}case h.TBODY:case h.TFOOT:case h.THEAD:{yP(e,t);break}case h.INPUT:{xP(e,t);break}case h.CAPTION:{mP(e,t);break}case h.COLGROUP:{gP(e,t);break}default:ss(e,t)}}function ja(e,t){switch(t.tagID){case h.TABLE:{e.openElements.hasInTableScope(h.TABLE)&&(e.openElements.popUntilTagNamePopped(h.TABLE),e._resetInsertionMode());break}case h.TEMPLATE:{ai(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:ss(e,t)}}function ss(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Ho(e,t),e.fosterParentingEnabled=n}function K3(e,t){e.pendingCharacterTokens.push(t)}function Q3(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ra(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&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:{ai(e,t);break}}}function IP(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)):eg(e,t)}function NP(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)):tg(e,t)}function RP(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:{Pn(e,t);break}case h.CAPTION:case h.COLGROUP:case h.TBODY:case h.TFOOT:case h.THEAD:{e.tmplInsertionModeStack[0]=_.IN_TABLE,e.insertionMode=_.IN_TABLE,Di(e,t);break}case h.COL:{e.tmplInsertionModeStack[0]=_.IN_COLUMN_GROUP,e.insertionMode=_.IN_COLUMN_GROUP,Lc(e,t);break}case h.TR:{e.tmplInsertionModeStack[0]=_.IN_TABLE_BODY,e.insertionMode=_.IN_TABLE_BODY,Uo(e,t);break}case h.TD:case h.TH:{e.tmplInsertionModeStack[0]=_.IN_ROW,e.insertionMode=_.IN_ROW,Vo(e,t);break}default:e.tmplInsertionModeStack[0]=_.IN_BODY,e.insertionMode=_.IN_BODY,qt(e,t)}}function MP(e,t){t.tagID===h.TEMPLATE&&ai(e,t)}function ng(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(h.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Pc(e,t)}function DP(e,t){t.tagID===h.HTML?qt(e,t):fo(e,t)}function rg(e,t){var n;if(t.tagID===h.HTML){if(e.fragmentContext||(e.insertionMode=_.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 fo(e,t)}function fo(e,t){e.insertionMode=_.IN_BODY,Ho(e,t)}function PP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.FRAMESET:{e._insertElement(t,J.HTML);break}case h.FRAME:{e._appendElement(t,J.HTML),t.ackSelfClosing=!0;break}case h.NOFRAMES:{Pn(e,t);break}}}function LP(e,t){t.tagID===h.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==h.FRAMESET&&(e.insertionMode=_.AFTER_FRAMESET))}function OP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function _P(e,t){t.tagID===h.HTML&&(e.insertionMode=_.AFTER_AFTER_FRAMESET)}function BP(e,t){t.tagID===h.HTML?qt(e,t):Ws(e,t)}function Ws(e,t){e.insertionMode=_.IN_BODY,Ho(e,t)}function FP(e,t){switch(t.tagID){case h.HTML:{qt(e,t);break}case h.NOFRAMES:{Pn(e,t);break}}}function HP(e,t){t.chars=ut,e._insertCharacters(t)}function zP(e,t){e._insertCharacters(t),e.framesetOk=!1}function ig(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==J.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function UP(e,t){if(nD(t))ig(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===J.MATHML?U3(t):r===J.SVG&&(rD(t),V3(t)),Mc(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function VP(e,t){if(t.tagID===h.P||t.tagID===h.BR){ig(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)===J.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}U.AREA,U.BASE,U.BASEFONT,U.BGSOUND,U.BR,U.COL,U.EMBED,U.FRAME,U.HR,U.IMG,U.INPUT,U.KEYGEN,U.LINK,U.META,U.PARAM,U.SOURCE,U.TRACK,U.WBR;const jP=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,qP=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),O1={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ag(e,t){const n=eL(e),r=Y2("type",{handlers:{root:$P,element:WP,text:YP,comment:og,doctype:GP,raw:KP},unknown:QP}),i={parser:n?new D1(O1):D1.getFragmentParser(void 0,O1),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),$i(i,Gn());const a=n?i.parser.document:i.parser.getFragment(),s=$R(a,{file:i.options.file});return i.stitches&&Do(s,"comment",function(o,u,l){const c=o;if(c.value.stitch&&l&&u!==void 0){const d=l.children;return d[u]=c.value.stitch,u}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function sg(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:He.CHARACTER,chars:e.value,location:os(e)};$i(t,Gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function GP(e,t){const n={type:He.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:os(e)};$i(t,Gn(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function XP(e,t){t.stitches=!0;const n=tL(e);if("children"in e&&"children"in n){const r=ag({type:"root",children:e.children},t.options);n.children=r.children}og({type:"comment",value:{stitch:n}},t)}function og(e,t){const n=e.value,r={type:He.COMMENT,data:n,location:os(e)};$i(t,Gn(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function KP(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,ug(t,Gn(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(jP,"<$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 QP(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))XP(n,t);else{let r="";throw qP.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 $i(e,t){ug(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=kt.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 ug(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 ZP(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===kt.PLAINTEXT)return;$i(t,Gn(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:zn.html;i===zn.html&&n==="svg"&&(i=zn.svg);const a=sM({...e,children:[]},{space:i===zn.svg?"svg":"html"}),s={type:He.START_TAG,tagName:n,tagID:qi(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:os(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function JP(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&pM.includes(n)||t.parser.tokenizer.state===kt.PLAINTEXT)return;$i(t,ko(e));const r={type:He.END_TAG,tagName:n,tagID:qi(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:os(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===kt.RCDATA||t.parser.tokenizer.state===kt.RAWTEXT||t.parser.tokenizer.state===kt.SCRIPT_DATA)&&(t.parser.tokenizer.state=kt.DATA)}function eL(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function os(e){const t=Gn(e)||{line:void 0,column:void 0,offset:void 0},n=ko(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 tL(e){return"children"in e?ei({...e,children:[]}):ei(e)}function nL(e){return function(t,n){return ag(t,{...e,file:n})}}const zr=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],po={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...zr,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...zr],h2:[["className","sr-only"]],img:[...zr,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...zr,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...zr],table:[...zr],ul:[...zr,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Er={}.hasOwnProperty;function rL(e,t){let n={type:"root",children:[]};const r={schema:t?{...po,...t}:po,stack:[]},i=lg(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function lg(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return iL(e,n);case"doctype":return aL(e,n);case"element":return sL(e,n);case"root":return oL(e,n);case"text":return uL(e,n)}}}function iL(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return us(a,t),a}}function aL(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return us(n,t),n}}function sL(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=cg(e,t.children),i=lL(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Er.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let u=-1;for(a=!1;++u1){let i=!1,a=0;for(;++a-1&&a>u||s>-1&&a>s||o>-1&&a>o)return!0;let l=-1;for(;++l4&&t.slice(0,4).toLowerCase()==="data")return n}function hL(e){return function(t){return rL(t,e)}}const fL=ue("article",{name:"MuiMarkdownRenderer",slot:"Root"})(({theme:e,isThinking:t})=>{const{palette:n,spacing:r,typography:i}=e,a={"& pre":{overflowX:"auto"}};return{...i.body1,overflowWrap:"break-word",maxWidth:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:r(1),color:t&&n.text.disabled||n.text.primary,...a,"& think":{color:n.text.disabled},"& ul, & ol":{margin:0}}}),pL=e=>e.replace(//,` `).replace(/<\/think>/,` -`),mL=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),gL={h1:e=>k.jsx(Ge,{...e,variant:"h1"}),h2:e=>k.jsx(Ge,{...e,variant:"h2"}),h3:e=>k.jsx(Ge,{...e,variant:"h3"}),h4:e=>k.jsx(Ge,{...e,variant:"h4"}),h5:e=>k.jsx(Ge,{...e,variant:"h5"}),h6:e=>k.jsx(Ge,{...e,variant:"h6"}),p:e=>k.jsx(Ge,{...e,variant:"body1"}),caption:e=>k.jsx(Ge,{...e,variant:"caption"}),hr:e=>k.jsx(Ku,{...e}),table:e=>k.jsx(a8,{children:k.jsx(G7,{...e})}),thead:c8,tbody:J7,tr:f8,th:bd,td:bd},bL=["script","iframe","style","form","input","textarea"],yL={...po,tagNames:(po.tagNames||[]).filter(e=>!bL.includes(e))},F1=P.memo(({isThinking:e,content:t})=>(t=pL(t),t=mL(t),k.jsx(fL,{className:"ChatMarkdown",isThinking:e,children:k.jsx($A,{remarkPlugins:[kf,c1],rehypePlugins:[VR,nL,[kf,c1,hL,yL]],components:gL,children:t})}))),HL=()=>{const[{status:e,messages:t}]=Zl(),n=P.useRef(null),r=P.useRef(null),[i,a]=P.useState(!0),s=P.useRef(!1),o=P.useRef(!1),u=P.useRef(0);P.useEffect(()=>{if(s.current)return;o.current=!0,r.current?.scrollIntoView({behavior:"smooth"});const p=setTimeout(()=>{o.current=!1},200);return()=>clearTimeout(p)},[t]);const l=Na(()=>{const p=n.current;if(!p)return;const{scrollTop:f,scrollHeight:b,clientHeight:v}=p,E=b-f-v;a(E<10),o.current||f{const p=n.current;p&&(s.current=!1,o.current=!0,p.scrollTo({top:p.scrollHeight,behavior:"smooth"}),setTimeout(()=>{o.current=!1},250))},d=k.jsxs(Xe,{ref:n,sx:{width:"100%",height:"100%",overflowX:"hidden",overflowY:"auto","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},onScroll:l,onWheel:p=>{p.deltaY<0&&(s.current=!0)},onTouchMove:()=>{s.current=!0},children:[t.map((p,f)=>k.jsx(vL,{message:p,isLast:f===t.length-1},p.id)),e==="opened"&&k.jsx(zx,{size:"large"}),k.jsx(Ar,{ref:r,sx:{width:"100%",height:0}})]},"stream");return k.jsxs(Ar,{sx:{position:"relative",gap:4,flex:1,overflow:"hidden"},children:[d,k.jsx(Qr,{onClick:c,size:"small","aria-label":"Scroll to bottom",sx:{position:"absolute",right:12,bottom:8,width:28,height:28,bgcolor:"white",border:"1px solid",borderColor:"grey.300","&:hover":{bgcolor:"grey.100"},opacity:i?0:1,pointerEvents:i?"none":"auto",transition:"opacity .15s ease"},children:k.jsx(m8,{})},"scroll-to-bottom")]})},vL=P.memo(({message:e,isLast:t})=>{const{role:n,status:r,thinking:i,content:a}=e,[,{generate:s}]=Zl(),[o,u]=P.useState(!1);P.useEffect(()=>{const y=setTimeout(()=>u(!1),2e3);return()=>clearTimeout(y)},[o]);const l=Na(()=>{navigator.clipboard.writeText(a),u(!0)}),c=Na(()=>{s(e)}),d=n==="user"?"flex-end":"flex-start",p=n==="user"?k.jsx(Ge,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default",fontSize:"0.875rem"},children:a},"user-message"):k.jsxs(k.Fragment,{children:[i&&k.jsx(F1,{isThinking:!0,content:i},"assistant-thinking"),a&&k.jsx(F1,{content:a},"assistant-message")]}),f=r==="done",b=n==="user"||n==="assistant"&&f,v=n==="assistant"&&f,E=n==="user"?{"&:hover .actions-user":{opacity:1,pointerEvents:"auto"}}:{};return k.jsx(Xe,{direction:"row",sx:{width:"100%",justifyContent:d},children:k.jsxs(Xe,{sx:{maxWidth:n==="user"?{xs:"100%",md:"80%"}:"100%",alignSelf:n==="user"?"flex-end":"flex-start",gap:1,...E},children:[p,(b||v)&&k.jsxs(Xe,{direction:"row",className:n==="user"?"actions-user":void 0,sx:{justifyContent:d,color:"grey.600",gap:.5,...n==="user"?{opacity:0,pointerEvents:"none",transition:"opacity .15s ease"}:{}},children:[b&&k.jsx(Ks,{title:o?"Copied!":"Copy",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:k.jsx(Qr,{onClick:l,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:o?k.jsx(wp,{}):k.jsx(Ap,{})})},"copy"),v&&k.jsx(Ks,{title:"Regenerate",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:k.jsx(Qr,{onClick:c,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:k.jsx(P8,{})})},"regenerate")]},"actions")]})})}),TL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),xL=ue(Xe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(2),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),EL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"2.5rem",flex:"none",marginTop:t(1),paddingBlock:t(1),paddingInline:t(4),overflow:"hidden"}}),SL=ue(Xe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),wL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(2),paddingBlock:t(1),paddingInline:t(4),overflow:"hidden"}}),zL=({children:e})=>{const[{type:t}]=$1(),[{modelName:n,clusterInfo:{status:r}}]=$a(),[i,{open:a}]=aa({color:"primary",titleIcon:k.jsx(_s,{}),title:"Reconnect your nodes",content:k.jsxs(Xe,{sx:{gap:7},children:[k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Run join command on your new Node"}),k.jsx(xd,{})]}),k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Check your live node status"}),k.jsx(Ge,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),k.jsx(xs,{})]})]}),confirmLabel:"Finish"});P.useEffect(()=>{t==="cluster"&&r==="waiting"&&a()},[r,a]);const[s,{open:o}]=aa({color:"primary",title:"",content:k.jsxs(k.Fragment,{children:[k.jsx(Ge,{variant:"body1",children:"Cluster rebalancing"}),k.jsx(Ge,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),k.jsx(xs,{variant:"menu"})]}),confirmLabel:"Finish"});P.useEffect(()=>{r==="rebalancing"&&o()},[r,o]);const[u,{open:l}]=aa({color:"primary",title:"",content:k.jsxs(k.Fragment,{children:[k.jsx(Ge,{variant:"body1",children:"Scheduler restart"}),k.jsxs(Ge,{variant:"body2",color:"text.disabled",children:["We have noticed that your scheduler has been disconnected (this would be the computer that ran the ",k.jsx("strong",{children:"parallax run"})," command). You would need to restart the scheduler, reconfigure the cluster, and your chat will be back up again!"]})]}),confirmLabel:"Finish"});P.useEffect(()=>{if(r==="failed"){l();return}if(r==="idle"){const b=setTimeout(()=>l(),1e3);return()=>clearTimeout(b)}},[r,l]);const[c,d]=P.useState(!0),[p,{open:f}]=aa({color:"primary",titleIcon:k.jsx(v8,{}),title:"Add New Nodes",content:k.jsxs(Xe,{sx:{gap:5},children:[k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Run join command on all nodes"}),k.jsx(xd,{})]}),k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Check your live node status"}),k.jsx(Ge,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),k.jsx(xs,{})]})]}),confirmLabel:"Finish"});return k.jsxs(TL,{direction:"row",children:[k.jsxs(xL,{sx:{width:c?"16.25rem":"3.5rem",paddingInline:2},children:[k.jsx(Xe,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:c?k.jsxs(k.Fragment,{children:[k.jsx(Td,{}),k.jsx(Ar,{sx:{flex:1}}),k.jsx(Ks,{title:"Collapse Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:k.jsx(Qr,{size:"em",sx:{fontSize:"1.5rem",borderRadius:"8px",color:"#808080FF","&:hover":{bgcolor:"action.hover"}},onClick:()=>d(b=>!b),children:k.jsx(A8,{})})})]}):k.jsx(k.Fragment,{children:k.jsxs(Ar,{sx:{position:"relative",width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center","&:hover .logo":{opacity:0},"&:hover .toggle":{opacity:1,pointerEvents:"auto",transform:"scale(1)"}},children:[k.jsx(Ar,{className:"logo",sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity .15s ease",opacity:1},children:k.jsx(Td,{})}),k.jsx(Ks,{title:"Expand Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:k.jsx(Qr,{className:"toggle",size:"em",sx:{position:"absolute",opacity:0,pointerEvents:"none",fontSize:"1.5rem",transition:"opacity .15s ease, transform .15s ease","&:hover":{bgcolor:"action.hover"}},"aria-label":"Expand Sidebar",onClick:()=>d(b=>!b),children:k.jsx(k8,{})})})]})})}),c&&k.jsxs(Xe,{children:[k.jsx(Xe,{direction:"row",sx:{gap:1,color:"text.primary"},children:k.jsx(Ge,{variant:"body1",sx:{mt:"1.5px",color:"#A7A7A7FF",fontWeight:600},children:"Cluster topology"})}),k.jsx(xs,{variant:"menu",sx:{py:"2rem"}}),k.jsx(q1,{color:"info",startIcon:k.jsx(M8,{}),onClick:f,children:"Add Nodes"})]})]}),k.jsxs(SL,{children:[k.jsx(EL,{direction:"row",children:k.jsx($8,{variant:"text"})}),k.jsx(wL,{children:e})]}),p,i,s,u]})},AL=ue(Xe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),CL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),kL=ue(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),IL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"31rem",height:"100%",gap:t(7),paddingInline:t(1),overflowY:"auto"}}),NL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),RL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),UL=({children:e,contentStart:t,contentEnd:n=k.jsx(ML,{})})=>k.jsxs(AL,{children:[k.jsx(CL,{direction:"row",children:k.jsx(z8,{})}),k.jsxs(kL,{children:[k.jsx(IL,{className:"MainLayoutContent",children:e}),t&&k.jsx(NL,{children:t})||void 0,n&&k.jsx(RL,{children:n})||void 0]})]}),ML=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=$a();return null};export{HL as C,zx as D,op as F,M8 as I,xd as J,UL as M,xs as N,l0 as O,Ep as S,$8 as a,PL as b,up as c,fp as d,pp as e,s0 as f,zL as g,Qg as i,o0 as u}; +`),mL=e=>e.replace(/\\\[/g,"$$").replace(/\\\]/g,"$$").replace(/\\\(/g,"$").replace(/\\\)/g,"$"),gL={h1:e=>k.jsx(Ge,{...e,variant:"h1"}),h2:e=>k.jsx(Ge,{...e,variant:"h2"}),h3:e=>k.jsx(Ge,{...e,variant:"h3"}),h4:e=>k.jsx(Ge,{...e,variant:"h4"}),h5:e=>k.jsx(Ge,{...e,variant:"h5"}),h6:e=>k.jsx(Ge,{...e,variant:"h6"}),p:e=>k.jsx(Ge,{...e,variant:"body1"}),caption:e=>k.jsx(Ge,{...e,variant:"caption"}),hr:e=>k.jsx(Ku,{...e}),table:e=>k.jsx(a8,{children:k.jsx(G7,{...e})}),thead:c8,tbody:J7,tr:f8,th:bd,td:bd},bL=["script","iframe","style","form","input","textarea"],yL={...po,tagNames:(po.tagNames||[]).filter(e=>!bL.includes(e))},F1=L.memo(({isThinking:e,content:t})=>(t=pL(t),t=mL(t),k.jsx(fL,{className:"ChatMarkdown",isThinking:e,children:k.jsx($A,{remarkPlugins:[kf,c1],rehypePlugins:[VR,nL,[kf,c1,hL,yL]],components:gL,children:t})}))),HL=()=>{const[{status:e,messages:t}]=Zl(),n=L.useRef(null),[r,i]=L.useState(!0),a=L.useRef(!1),s=L.useRef(!1),o=L.useRef(0),u=Si(()=>{const p=n.current;p&&(a.current=!1,s.current=!0,requestAnimationFrame(()=>{p.scrollTo({top:p.scrollHeight,behavior:"smooth"})}),setTimeout(()=>{s.current=!1},250))});L.useEffect(()=>{if(a.current)return;s.current=!0,u();const p=setTimeout(()=>{s.current=!1},200);return()=>clearTimeout(p)},[t]);const l=Si(p=>{p.stopPropagation();const f=n.current;if(!f)return;const{scrollTop:b,scrollHeight:v,clientHeight:E}=f,y=v-b-E;i(y<10),s.current||b{p.deltaY<0&&(a.current=!0)},onTouchMove:()=>{a.current=!0},children:[t.map((p,f)=>k.jsx(vL,{message:p,isLast:f===t.length-1},p.id)),e==="opened"&&k.jsx(zx,{size:"large"}),k.jsx(Ar,{sx:{width:"100%",height:0}})]},"stream");return k.jsxs(Ar,{sx:{position:"relative",flex:1,overflow:"hidden"},children:[d,c]})},vL=L.memo(({message:e,isLast:t})=>{const{role:n,status:r,thinking:i,content:a}=e,[,{generate:s}]=Zl(),[o,u]=L.useState(!1);L.useEffect(()=>{const y=setTimeout(()=>u(!1),2e3);return()=>clearTimeout(y)},[o]);const l=Si(()=>{navigator.clipboard.writeText(a),u(!0)}),c=Si(()=>{s(e)}),d=n==="user"?"flex-end":"flex-start",p=n==="user"?k.jsx(Ge,{variant:"body1",sx:{px:2,py:1.5,borderRadius:"0.5rem",backgroundColor:"background.default",fontSize:"0.875rem"},children:a},"user-message"):k.jsxs(k.Fragment,{children:[i&&k.jsx(F1,{isThinking:!0,content:i},"assistant-thinking"),a&&k.jsx(F1,{content:a},"assistant-message")]}),f=r==="done",b=n==="user"||n==="assistant"&&f,v=n==="assistant"&&f,E=n==="user"?{"&:hover .actions-user":{opacity:1,pointerEvents:"auto"}}:{};return k.jsx(Xe,{direction:"row",sx:{width:"100%",justifyContent:d},children:k.jsxs(Xe,{sx:{maxWidth:n==="user"?{xs:"100%",md:"80%"}:"100%",alignSelf:n==="user"?"flex-end":"flex-start",gap:1,...E},children:[p,(b||v)&&k.jsxs(Xe,{direction:"row",className:n==="user"?"actions-user":void 0,sx:{justifyContent:d,color:"grey.600",gap:.5,...n==="user"?{opacity:0,pointerEvents:"none",transition:"opacity .15s ease"}:{}},children:[b&&k.jsx(Ks,{title:o?"Copied!":"Copy",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:k.jsx(Qr,{onClick:l,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:o?k.jsx(wp,{}):k.jsx(Ap,{})})},"copy"),v&&k.jsx(Ks,{title:"Regenerate",slotProps:{tooltip:{sx:{bgcolor:"primary.main",borderRadius:1}},popper:{modifiers:[{name:"offset",options:{offset:[0,-8]}}]}},children:k.jsx(Qr,{onClick:c,size:"small",sx:{width:24,height:24,borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:k.jsx(P8,{})})},"regenerate")]},"actions")]})})}),TL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"100%",justifyContent:"flex-start",alignItems:"stretch",overflow:"hidden"}}),xL=ue(Xe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{height:"100%",paddingBlock:n(2),paddingInline:n(2),gap:n(3),overflow:"hidden",transition:"width 0.3s ease-in-out",backgroundColor:t.grey[200]}}),EL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",height:"2.5rem",flex:"none",marginTop:t(1),paddingBlock:t(1),paddingInline:t(4),overflow:"hidden"}}),SL=ue(Xe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{flex:1,alignItems:"center",overflow:"hidden",backgroundColor:t.grey[100]}}),wL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"48.75rem",maxWidth:"100%",height:"100%",gap:t(2),paddingBlock:t(1),paddingInline:t(4),overflow:"hidden"}}),zL=({children:e})=>{const[{type:t}]=$1(),[{modelName:n,clusterInfo:{status:r}}]=$a(),[i,{open:a}]=sa({color:"primary",titleIcon:k.jsx(_s,{}),title:"Reconnect your nodes",content:k.jsxs(Xe,{sx:{gap:7},children:[k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Run join command on your new Node"}),k.jsx(xd,{})]}),k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Check your live node status"}),k.jsx(Ge,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),k.jsx(xs,{})]})]}),confirmLabel:"Finish"});L.useEffect(()=>{t==="cluster"&&r==="waiting"&&a()},[r,a]);const[s,{open:o}]=sa({color:"primary",title:"",content:k.jsxs(k.Fragment,{children:[k.jsx(Ge,{variant:"body1",children:"Cluster rebalancing"}),k.jsx(Ge,{variant:"body2",color:"text.disabled",children:"We have noticed one of your nodes has been disconnected. We are now rebalancing your inference requests onto working nodes. Please wait a few seconds for the cluster to rebalance itself."}),k.jsx(xs,{variant:"menu"})]}),confirmLabel:"Finish"});L.useEffect(()=>{r==="rebalancing"&&o()},[r,o]);const[u,{open:l}]=sa({color:"primary",title:"",content:k.jsxs(k.Fragment,{children:[k.jsx(Ge,{variant:"body1",children:"Scheduler restart"}),k.jsxs(Ge,{variant:"body2",color:"text.disabled",children:["We have noticed that your scheduler has been disconnected (this would be the computer that ran the ",k.jsx("strong",{children:"parallax run"})," command). You would need to restart the scheduler, reconfigure the cluster, and your chat will be back up again!"]})]}),confirmLabel:"Finish"});L.useEffect(()=>{if(r==="failed"){l();return}if(r==="idle"){const b=setTimeout(()=>l(),1e3);return()=>clearTimeout(b)}},[r,l]);const[c,d]=L.useState(!0),[p,{open:f}]=sa({color:"primary",titleIcon:k.jsx(v8,{}),title:"Add New Nodes",content:k.jsxs(Xe,{sx:{gap:5},children:[k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Run join command on all nodes"}),k.jsx(xd,{})]}),k.jsxs(Xe,{sx:{gap:1},children:[k.jsx(Ge,{variant:"body1",children:"Check your live node status"}),k.jsx(Ge,{variant:"body2",color:"text.disabled",children:"After you successfully start the server on the nodes, you should see them show up on the below dashboard."}),k.jsx(xs,{})]})]}),confirmLabel:"Finish"});return k.jsxs(TL,{direction:"row",children:[k.jsxs(xL,{sx:{width:c?"16.25rem":"3.5rem",paddingInline:2},children:[k.jsx(Xe,{direction:"row",sx:{justifyContent:"flex-end",alignItems:"center",gap:2},children:c?k.jsxs(k.Fragment,{children:[k.jsx(Td,{}),k.jsx(Ar,{sx:{flex:1}}),k.jsx(Ks,{title:"Collapse Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:k.jsx(Qr,{size:"em",sx:{fontSize:"1.5rem",borderRadius:"8px",color:"#808080FF","&:hover":{bgcolor:"action.hover"}},onClick:()=>d(b=>!b),children:k.jsx(A8,{})})})]}):k.jsx(k.Fragment,{children:k.jsxs(Ar,{sx:{position:"relative",width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center","&:hover .logo":{opacity:0},"&:hover .toggle":{opacity:1,pointerEvents:"auto",transform:"scale(1)"}},children:[k.jsx(Ar,{className:"logo",sx:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity .15s ease",opacity:1},children:k.jsx(Td,{})}),k.jsx(Ks,{title:"Expand Sidebar",placement:"right",slotProps:{tooltip:{sx:{bgcolor:"primary.main",color:"common.white"}}},children:k.jsx(Qr,{className:"toggle",size:"em",sx:{position:"absolute",opacity:0,pointerEvents:"none",fontSize:"1.5rem",transition:"opacity .15s ease, transform .15s ease","&:hover":{bgcolor:"action.hover"}},"aria-label":"Expand Sidebar",onClick:()=>d(b=>!b),children:k.jsx(k8,{})})})]})})}),c&&k.jsxs(Xe,{children:[k.jsx(Xe,{direction:"row",sx:{gap:1,color:"text.primary"},children:k.jsx(Ge,{variant:"body1",sx:{mt:"1.5px",color:"#A7A7A7FF",fontWeight:600},children:"Cluster topology"})}),k.jsx(xs,{variant:"menu",sx:{py:"2rem"}}),k.jsx(q1,{color:"info",startIcon:k.jsx(M8,{}),onClick:f,children:"Add Nodes"})]})]}),k.jsxs(SL,{children:[k.jsx(EL,{direction:"row",children:k.jsx($8,{variant:"text"})}),k.jsx(wL,{children:e})]}),p,i,s,u]})},AL=ue(Xe)(({theme:e})=>{const{palette:t,spacing:n}=e;return{width:"100%",height:"100%",display:"flex",alignItems:"center",gap:n(3),padding:n(3),overflow:"hidden",backgroundColor:t.grey[100]}}),CL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"100%",flex:"none",justifyContent:"flex-start",alignItems:"center",gap:t(1)}}),kL=ue(Ar)(({theme:e})=>{const{spacing:t}=e;return{position:"relative",flex:"1",width:"100%",display:"flex",flexFlow:"column nowrap",justifyContent:"center",alignItems:"center",overflowY:"hidden"}}),IL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"31rem",height:"100%",gap:t(7),paddingInline:t(1),overflowY:"auto"}}),NL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,left:"2rem",alignItems:"flex-end",gap:t(2)}}),RL=ue(Xe)(({theme:e})=>{const{spacing:t}=e;return{width:"calc((100% - 30rem) / 2 - 4rem)",height:"100%",overflow:"auto",position:"absolute",top:0,right:"2rem",alignItems:"flex-start",gap:t(2)}}),UL=({children:e,contentStart:t,contentEnd:n=k.jsx(ML,{})})=>k.jsxs(AL,{children:[k.jsx(CL,{direction:"row",children:k.jsx(z8,{})}),k.jsxs(kL,{children:[k.jsx(IL,{className:"MainLayoutContent",children:e}),t&&k.jsx(NL,{children:t})||void 0,n&&k.jsx(RL,{children:n})||void 0]})]}),ML=()=>{const[{initNodesNumber:e,networkType:t,modelName:n,clusterInfo:r}]=$a();return null};export{HL as C,zx as D,op as F,M8 as I,xd as J,UL as M,xs as N,l0 as O,Ep as S,$8 as a,PL as b,up as c,fp as d,pp as e,s0 as f,zL as g,Qg as i,o0 as u}; diff --git a/src/frontend/dist/assets/setup-9gT1ttVB.js b/src/frontend/dist/assets/setup-B7qhYC5e.js similarity index 98% rename from src/frontend/dist/assets/setup-9gT1ttVB.js rename to src/frontend/dist/assets/setup-B7qhYC5e.js index 94a983d1..b98deeae 100644 --- a/src/frontend/dist/assets/setup-9gT1ttVB.js +++ b/src/frontend/dist/assets/setup-B7qhYC5e.js @@ -1,4 +1,4 @@ -import{r as g,g as V,a as q,u as z,j as o,s as A,b as E,T as B,d as R,e as O,m as W,f as J,h as K,B as Q,t as j,i as X,k as Z,l as tt,n as k,I as G,o as et,p as ot,S as $,q as nt}from"./App-DniR8u3r.js";import{u as rt,F as st,O as at,I as it,M as lt,a as dt}from"./main-layout-CrccPG6x.js";function ut(t){return g.Children.toArray(t).filter(e=>g.isValidElement(e))}function ct(t){return q("MuiInputAdornment",t)}const F=V("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const pt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},gt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:i,size:c,variant:v}=t,d={root:["root",r&&"disablePointerEvents",i&&`position${R(i)}`,v,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(d,ct,e)},ft=A("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),D=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiInputAdornment"}),{children:i,className:c,component:v="div",disablePointerEvents:d=!1,disableTypography:b=!1,position:x,variant:n,...f}=u,a=rt()||{};let l=n;n&&a.variant,a&&!l&&(l=a.variant);const m={...u,hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:x,variant:l},C=gt(m);return o.jsx(st.Provider,{value:null,children:o.jsx(ft,{as:v,ownerState:m,className:E(C.root,c),ref:r,...f,children:typeof i=="string"&&!b?o.jsx(B,{color:"textSecondary",children:i}):o.jsxs(g.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})}),H=g.createContext({}),Y=g.createContext(void 0);function vt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const xt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:i,size:c,color:v}=t,d={root:["root",u&&"selected",i&&"disabled",r&&"fullWidth",`size${R(c)}`,v]};return O(d,K,e)},bt=A(Q,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(X()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),_=g.forwardRef(function(e,r){const{value:u,...i}=g.useContext(H),c=g.useContext(Y),v=J({...i,selected:vt(e.value,u)},e),d=z({props:v,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:f=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:m,onClick:C,selected:y,size:N="medium",value:T,...P}=d,w={...d,color:n,disabled:f,disableFocusRipple:a,fullWidth:l,size:N},M=xt(w),L=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(bt,{className:E(i.className,M.root,x,h),disabled:f,focusRipple:!a,ref:r,onClick:L,onChange:m,value:T,ownerState:w,"aria-pressed":y,...P,children:b})});function ht(t){return q("MuiToggleButtonGroup",t)}const s=V("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),mt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:i}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,ht,e)},yt=A("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Bt=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:c,color:v="standard",disabled:d=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:f="horizontal",size:a="medium",value:l,...m}=u,C={...u,disabled:d,fullWidth:x,orientation:f,size:a},y=mt(C),N=g.useCallback((h,p)=>{if(!n)return;const S=l&&l.indexOf(p);let I;l&&S>=0?(I=l.slice(),I.splice(S,1)):I=l?l.concat(p):[p],n(h,I)},[n,l]),T=g.useCallback((h,p)=>{n&&n(h,l===p?null:p)},[n,l]),P=g.useMemo(()=>({className:y.grouped,onChange:b?T:N,value:l,size:a,fullWidth:x,color:v,disabled:d}),[y.grouped,b,T,N,l,a,x,v,d]),w=ut(i),M=w.length,L=h=>{const p=h===0,S=h===M-1;return p&&S?"":p?y.firstButton:S?y.lastButton:y.middleButton};return o.jsx(yt,{role:"group",className:E(y.root,c),ref:r,ownerState:C,...m,children:o.jsx(H.Provider,{value:P,children:w.map((h,p)=>o.jsx(Y.Provider,{value:L(p),children:h},p))})})});/** +import{r as g,g as V,a as q,u as z,j as o,s as A,b as E,T as B,d as R,e as O,m as W,f as J,h as K,B as Q,t as j,i as X,k as Z,l as tt,n as k,I as G,o as et,p as ot,S as $,q as nt}from"./App-D1sLFjME.js";import{u as rt,F as st,O as at,I as it,M as lt,a as dt}from"./main-layout-C6XVZnhy.js";function ut(t){return g.Children.toArray(t).filter(e=>g.isValidElement(e))}function ct(t){return q("MuiInputAdornment",t)}const F=V("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var U;const pt=(t,e)=>{const{ownerState:r}=t;return[e.root,e[`position${R(r.position)}`],r.disablePointerEvents===!0&&e.disablePointerEvents,e[r.variant]]},gt=t=>{const{classes:e,disablePointerEvents:r,hiddenLabel:u,position:i,size:c,variant:v}=t,d={root:["root",r&&"disablePointerEvents",i&&`position${R(i)}`,v,u&&"hiddenLabel",c&&`size${R(c)}`]};return O(d,ct,e)},ft=A("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:pt})(W(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${F.positionStart}&:not(.${F.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),D=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiInputAdornment"}),{children:i,className:c,component:v="div",disablePointerEvents:d=!1,disableTypography:b=!1,position:x,variant:n,...f}=u,a=rt()||{};let l=n;n&&a.variant,a&&!l&&(l=a.variant);const m={...u,hiddenLabel:a.hiddenLabel,size:a.size,disablePointerEvents:d,position:x,variant:l},C=gt(m);return o.jsx(st.Provider,{value:null,children:o.jsx(ft,{as:v,ownerState:m,className:E(C.root,c),ref:r,...f,children:typeof i=="string"&&!b?o.jsx(B,{color:"textSecondary",children:i}):o.jsxs(g.Fragment,{children:[x==="start"?U||(U=o.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})}),H=g.createContext({}),Y=g.createContext(void 0);function vt(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const xt=t=>{const{classes:e,fullWidth:r,selected:u,disabled:i,size:c,color:v}=t,d={root:["root",u&&"selected",i&&"disabled",r&&"fullWidth",`size${R(c)}`,v]};return O(d,K,e)},bt=A(Q,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,e[`size${R(r.size)}`]]}})(W(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${j.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(X()).map(([e])=>({props:{color:e},style:{[`&.${j.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),_=g.forwardRef(function(e,r){const{value:u,...i}=g.useContext(H),c=g.useContext(Y),v=J({...i,selected:vt(e.value,u)},e),d=z({props:v,name:"MuiToggleButton"}),{children:b,className:x,color:n="standard",disabled:f=!1,disableFocusRipple:a=!1,fullWidth:l=!1,onChange:m,onClick:C,selected:y,size:N="medium",value:T,...P}=d,w={...d,color:n,disabled:f,disableFocusRipple:a,fullWidth:l,size:N},M=xt(w),L=p=>{C&&(C(p,T),p.defaultPrevented)||m&&m(p,T)},h=c||"";return o.jsx(bt,{className:E(i.className,M.root,x,h),disabled:f,focusRipple:!a,ref:r,onClick:L,onChange:m,value:T,ownerState:w,"aria-pressed":y,...P,children:b})});function ht(t){return q("MuiToggleButtonGroup",t)}const s=V("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),mt=t=>{const{classes:e,orientation:r,fullWidth:u,disabled:i}=t,c={root:["root",r,u&&"fullWidth"],grouped:["grouped",`grouped${R(r)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return O(c,ht,e)},yt=A("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${s.grouped}`]:e.grouped},{[`& .${s.grouped}`]:e[`grouped${R(r.orientation)}`]},{[`& .${s.firstButton}`]:e.firstButton},{[`& .${s.lastButton}`]:e.lastButton},{[`& .${s.middleButton}`]:e.middleButton},e.root,r.orientation==="vertical"&&e.vertical,r.fullWidth&&e.fullWidth]}})(W(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderTop:0,marginTop:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${s.grouped}`]:{[`&.${s.selected} + .${s.grouped}.${s.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${s.firstButton},& .${s.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${s.lastButton},& .${s.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${s.lastButton}.${j.disabled},& .${s.middleButton}.${j.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),Bt=g.forwardRef(function(e,r){const u=z({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:c,color:v="standard",disabled:d=!1,exclusive:b=!1,fullWidth:x=!1,onChange:n,orientation:f="horizontal",size:a="medium",value:l,...m}=u,C={...u,disabled:d,fullWidth:x,orientation:f,size:a},y=mt(C),N=g.useCallback((h,p)=>{if(!n)return;const S=l&&l.indexOf(p);let I;l&&S>=0?(I=l.slice(),I.splice(S,1)):I=l?l.concat(p):[p],n(h,I)},[n,l]),T=g.useCallback((h,p)=>{n&&n(h,l===p?null:p)},[n,l]),P=g.useMemo(()=>({className:y.grouped,onChange:b?T:N,value:l,size:a,fullWidth:x,color:v,disabled:d}),[y.grouped,b,T,N,l,a,x,v,d]),w=ut(i),M=w.length,L=h=>{const p=h===0,S=h===M-1;return p&&S?"":p?y.firstButton:S?y.lastButton:y.middleButton};return o.jsx(yt,{role:"group",className:E(y.root,c),ref:r,ownerState:C,...m,children:o.jsx(H.Provider,{value:P,children:w.map((h,p)=>o.jsx(Y.Provider,{value:L(p),children:h},p))})})});/** * @license @tabler/icons-react v3.35.0 - MIT * * This source code is licensed under the MIT license. diff --git a/src/frontend/dist/chat.html b/src/frontend/dist/chat.html index 2353926b..42013473 100644 --- a/src/frontend/dist/chat.html +++ b/src/frontend/dist/chat.html @@ -5,8 +5,8 @@ CHAT Parallax by Gradient - - + + diff --git a/src/frontend/dist/index.html b/src/frontend/dist/index.html index 8baaa6f0..a9d0ced0 100644 --- a/src/frontend/dist/index.html +++ b/src/frontend/dist/index.html @@ -5,8 +5,8 @@ Parallax by Gradient - - + + diff --git a/src/frontend/src/components/inputs/chat-messages.tsx b/src/frontend/src/components/inputs/chat-messages.tsx index 20c63d97..8153dddb 100644 --- a/src/frontend/src/components/inputs/chat-messages.tsx +++ b/src/frontend/src/components/inputs/chat-messages.tsx @@ -10,24 +10,40 @@ export const ChatMessages: FC = () => { const [{ status, messages }] = useChat(); const refContainer = useRef(null); - const refBottom = useRef(null); + // const refBottom = useRef(null); const [isBottom, setIsBottom] = useState(true); const userScrolledUpRef = useRef(false); const autoScrollingRef = useRef(false); const prevScrollTopRef = useRef(0); + const scrollToBottom = useRefCallback(() => { + const el = refContainer.current; + if (!el) return; + userScrolledUpRef.current = false; + autoScrollingRef.current = true; + requestAnimationFrame(() => { + el.scrollTo({ top: el.scrollHeight, behavior: 'smooth' }); + // el.lastElementChild?.scrollIntoView({ behavior: 'smooth' }); + }); + setTimeout(() => { + autoScrollingRef.current = false; + }, 250); + }); + useEffect(() => { if (userScrolledUpRef.current) return; autoScrollingRef.current = true; - refBottom.current?.scrollIntoView({ behavior: 'smooth' }); + scrollToBottom(); const t = setTimeout(() => { autoScrollingRef.current = false; }, 200); return () => clearTimeout(t); }, [messages]); - const onScroll = useRefCallback>(() => { + const onScroll = useRefCallback>((event) => { + event.stopPropagation(); + const container = refContainer.current; if (!container) return; @@ -48,16 +64,30 @@ export const ChatMessages: FC = () => { } }); - const scrollToBottom = () => { - const el = refContainer.current; - if (!el) return; - userScrolledUpRef.current = false; - autoScrollingRef.current = true; - el.scrollTo({ top: el.scrollHeight, behavior: 'smooth' }); - setTimeout(() => { - autoScrollingRef.current = false; - }, 250); - }; + const nodeScrollToBottomButton = ( + + + + ); const nodeStream = ( { height: '100%', overflowX: 'hidden', - overflowY: 'auto', + overflowY: 'scroll', '&::-webkit-scrollbar': { display: 'none' }, scrollbarWidth: 'none', msOverflowStyle: 'none', + + display: 'flex', + gap: 4, }} onScroll={onScroll} onWheel={(e) => { @@ -87,7 +120,8 @@ export const ChatMessages: FC = () => { {status === 'opened' && } - + {/* Last child for scroll to bottom */} + ); @@ -95,34 +129,12 @@ export const ChatMessages: FC = () => { {nodeStream} - - - + {nodeScrollToBottomButton} ); };