PageSourceSearch

https://time.com/replatform/_next/static/chunks/1_v2ha07e21sm.js

js time.com collected 2026-09-24 07:34:43 UTC 269,143 bytes, 16 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,472856,(e,t,n)=>{e.e,t.exports=function(e,t,n){e=e||{};var r=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(e,t,n,i){return r.fromToBase(e,t,n,i)}n.en.relativeTime=i,r.fromToBase=function(t,r,l,o,a){for(var s,u,c,d=l.$locale().relativeTime||i,f=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],p=f.length,h=0;h<p;h+=1){var m=f[h];m.d&&(s=o?n(t).diff(l,m.d,!0):l.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(s));if(c=s>0,g<=m.r||!m.r){g<=1&&h>0&&(m=f[h-1]);var y=d[m.l];a&&(g=a(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,c);break}}if(r)return u;var x=c?d.future:d.past;return"function"==typeof x?x(u):x.replace("%s",u)},r.to=function(e,t){return l(e,t,this,!0)},r.from=function(e,t){return l(e,t,this)};var o=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(o(this),e)},r.fromNow=function(e){return this.from(o(this),e)}}},104100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},s=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!l)return!1;for(t in e);return void 0===t||r.call(e,t)},u=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(o)return o(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,l,o,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=c(d,n),d!==(i=c(t,n))&&(h&&i&&(s(i)||(l=a(i)))?(l?(l=!1,o=r&&a(r)?r:[]):o=r&&s(r)?r:{},u(d,{name:n,newValue:e(h,o,i)})):void 0!==i&&u(d,{name:n,newValue:i}));return d}}
1,853802,658954,373820,998834,884864,60533,663152,167297,678331,715411,871689,291749,883348,e=>{"use strict";let t,n,r,i;var l,o,a,s,u,c,d,f,p=e.i(843476);class h{constructor(e){this.value=e}addText(e){return this.value?.kind==="text"?this.value.value+=e.text_delta??"":this.value={kind:"text",value:e.text_delta??""},this}addData(e){return this.value?.kind==="data"?this.value.value+=e.data_delta??"":this.value={kind:"data",value:e.data_delta??""},this}addToolRequest(e){return this.value?.kind==="tool_request"?(this.value.value+=e.arguments_delta??"",this.value.name=e.name,this.value.tool_call_id=e.tool_call_id):this.value={kind:"tool_request",value:e.arguments_delta??"",name:e.name,tool_call_id:e.tool_call_id},this}addToolResponse(e){return this.value?.kind==="tool_response"?(this.value.value+=e.content_delta??"",this.value.name=e.name,this.value.tool_call_id=e.tool_call_id):this.value={kind:"tool_response",value:e.content_delta??"",name:e.name,tool_call_id:e.tool_call_id},this}addReasoningContent(e){let t;for(this.value?.kind==="reasoning"?t=this.value.content:(t=[],this.value={kind:"reasoning",summary:[],content:t});e.content_index>=t.length;)t.push("");return t[e.content_index]+=e.content_delta??"",this}addReasoningSummary(e){let t;for(this.value?.kind==="reasoning"?t=this.value.summary:(t=[],this.value={kind:"reasoning",summary:t,content:[]});e.summary_index>=t.length;)t.push("");return t[e.summary_index]+=e.summary_delta??"",this}add(e){return"object"==typeof e&&null!==e&&"type"in e&&"text"===e.type?this.addText(e):"object"==typeof e&&null!==e&&"type"in e&&"data"===e.type?this.addData(e):"object"==typeof e&&null!==e&&"type"in e&&"tool_request"===e.type?this.addToolRequest(e):"object"==typeof e&&null!==e&&"type"in e&&"tool_response"===e.type?this.addToolResponse(e):"object"==typeof e&&null!==e&&"type"in e&&"reasoning_content"===e.type?this.addReasoningContent(e):"object"==typeof e&&null!==e&&"type"in e&&"reasoning_summary"===e.type?this.addReasoningSummary(e):(console.warn("Unknown delta",e),this)}toValue(){if(void 0!==this.value)switch(this.value.kind){case"text":case"data":case"tool_request":case"tool_response":return{...this.value};case"reasoning":return{...this.value,content:[...this.value.content],summary:[...this.value.summary]};default:this.value,console.error("Unknown accumulated value",this.value);return}}}class m{constructor(){this.map=new Map}start(e,t){switch(t){case"text":case"data":this.map.set(e,new h({kind:t,value:"",receivedStartEvent:!0}));break;case"tool_request":case"tool_response":this.map.set(e,new h({kind:t,value:"",name:"",tool_call_id:"",receivedStartEvent:!0}));break;case"reasoning":this.map.set(e,new h({kind:t,summary:[],content:[],receivedStartEvent:!0}));break;default:console.warn("DeltaAccumulator received unknown kind:",t)}return this}add(e,t){let n=this.map.get(e);return void 0===n&&(n=new h,this.map.set(e,n)),n.add(t),this}set(e,t){return this.map.set(e,new h(t)),this}get(e){return this.map.get(e)?.toValue()}delete(e){return this.map.delete(e)}has(e){return this.map.has(e)}}function g(e){return"object"==typeof e&&null!==e&&"type"in e&&"tool_response"===e.type}function y(e){try{return{value:JSON.parse(e)}}catch(e){return{error:e}}}var x=e.i(271645);let v=e=>{let t,n=new Set,r=(e,r)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,l);return l},b=e=>e;function k(e,t=b){let n=x.default.useSyncExternalStore(e.subscribe,x.default.useCallback(()=>t(e.getState()),[e,t]),x.default.useCallback(()=>t(e.getInitialState()),[e,t]));return x.default.useDebugValue(n),n}let w="tetra-agent-sync";var S=e.i(618566);let C=new Uint8Array(16),E=[];for(let e=0;e<256;++e)E.push((e+256).toString(16).slice(1));let j=function(){let{crypto:e}=globalThis;if(e?.randomUUID)return j=e.randomUUID.bind(e),e.randomUUID();let t=new Uint8Array(1),n=e?()=>e.getRandomValues(t)[0]:()=>255*Math.random()&255;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,e=>(e^n()&15>>e/4).toString(16))};async function*T(e,t,n,r,i){let{signal:l}=i??{}
1,o=(i?.createProtocolMessageID??j)(),a=[{jsonrpc:"2.0",id:o,method:n,params:{...r,stream:!0}},{stream:!0,signal:l,headers:{Accept:"application/x-ndjson"}}],s=void 0!==t.agentID?await e.agents.rpc(t.agentID,...a).asResponse():await e.agents.rpcByName(t.agentName,...a).asResponse();if(!s.ok)throw Error(`message/send RPC failed with status ${s.status}: ${s.statusText}`);if(null===s.body)return;let u=new TextDecoder,c="",d=s.body.getReader();try{for(;;){l?.throwIfAborted();let e=new AbortController;try{let t=new Promise(t=>{l?.addEventListener("abort",()=>t({done:!0}),{once:!0,signal:e.signal})}),{done:r,value:i}=await Promise.race([d.read(),t]);if(r)return void(yield*_(n,o,c));let a=(c+=u.decode(i,{stream:!0})).split("\n");for(let e of(c=a.pop()||"",a))yield*_(n,o,e)}finally{e.abort()}}}finally{d.releaseLock()}}function*_(e,t,n){if(!n.trim())return;let r=JSON.parse(n);if(null!==r.id&&r.id!==t)throw Error(`RPC response ID mismatch: received=${r.id} expected=${t}`);yield r}async function M(e,t,n,r,i){let{signal:l}=i??{},o=[{jsonrpc:"2.0",id:(i?.createProtocolMessageID??j)(),method:n,params:r},{stream:!1,signal:l,headers:{Accept:"application/json"}}],a=void 0!==t.agentID?await e.agents.rpc(t.agentID,...o):await e.agents.rpcByName(t.agentName,...o);if(null!==a.id&&a.id!==o[0].id)throw Error(`RPC response ID mismatch: received=${a.id} expected=${o[0].id}`);return a}var A=e.i(387644),R=e.i(19477);function N(e){let t;return(t=()=>({...e}))?v(t):v}let P="",I=(0,x.createContext)(null);function D(e){let t=(0,x.useContext)(I);if(null===t)throw Error("useAgentexRootStore must be used within AgentexRoot");return k(t,e)}async function L(e,t,n){let r=await M(e,{agentName:w},"task/create",{params:t},{signal:n});if(null!=r.error)throw Error(r.error.message);return r.result}e.s(["AgentexRoot",0,function({children:e,fallback:t,agentexClient:n,onError:r,onAgentexLoaded:i}){let[l,o]=(0,x.useState)(null),[a,s]=(0,x.useState)(!1),u=(0,x.useRef)(r);(0,x.useEffect)(()=>{u.current=r},[r]);let c=(0,S.usePathname)();return((0,x.useEffect)(()=>{P=c},[c]),(0,x.useEffect)(()=>{a&&i?.()},[a,i]),(0,x.useEffect)(()=>{let e=new AbortController;return o(t=>t?N({...t.getState(),deltas:null,agentexClient:n,abortController:e,isTaskBootstrapped:!1,isTaskPending:!1,onError:e=>{if(void 0===u.current)throw e;u.current(e)}}):null),n.agents.retrieveByName(w).then(t=>{e.signal.aborted||(o(r=>r?N({...r.getState(),abortController:e,agentexClient:n,deltas:null,agent:t,isTaskBootstrapped:!1,isTaskPending:!1,onError:e=>{if(void 0===u.current)throw e;u.current(e)}}):N({task:null,messages:[],latestRpcId:0,isMessageStreaming:!1,abortController:e,agentexClient:n,deltas:null,agent:t,isTaskBootstrapped:!1,isTaskPending:!1,taskParams:null,onError:e=>{if(void 0===u.current)throw e;u.current(e)}})),s(!0))}).catch(e=>{if(void 0===u.current)throw e;u.current(e)}),()=>{e.abort()}},[n]),null===l)?(0,p.jsx)(p.Fragment,{children:t}):(0,p.jsx)(I.Provider,{value:l,children:e})},"useAgentexRootController",0,function(){let e=function(){let e=(0,x.useContext)(I);if(null===e)throw Error("useAgentexRootStoreAPI must be used within AgentexRoot");return e}(),t=k(e,e=>e.task),n=k(e,e=>e.isTaskBootstrapped),r=null!==t&&"RUNNING"===t.status&&n,i=(0,x.useCallback)(async t=>{let n=null,{task:r,agentexClient:i,abortController:l,latestRpcId:o}=e.getState();if(null===r)throw Error("Task is not set");let a=o+1;e.setState({isMessageStreaming:!0,latestRpcId:a});try{var s;for await(let o of T(i,{agentName:w},"message/send",{task_id:r.id,content:{author:"user",type:"text",style:"static",format:"plain",attachments:null,content:(s=t,btoa(Array.from(new TextEncoder().encode(s),e=>String.fromCharCode(e)).join("")))}},{signal:l.signal})){if(e.getState().latestRpcId!==a)return;if(null!=o.error)throw Error(o.error.message);let{messages:t,deltas:r}=e.getState(),i=function(e,t,n){let r=new Map(e.map(e=>[e.id,e]));t=t??new m;let i=new Set;for(let e of n)(()=>{switch(e.type){case"connected":case"error":return;case"start":{if(null==e.parent_task_message)return;void 0!==e.parent_task_message.content.type?t.start(e.parent_task_message.id,e.parent_task_message.content.type):console.error("Could not identify content type for event",e);let n=r.get(e.parent_task_message.id);n=void 0===n?{...e.parent_task_message,content:"text"===e.content.type?{...e.content,type:"text",content:""}:e.content,streaming_status:"IN_PROGRESS"}:{...n,streaming_status:"IN_PROGRESS"},r.set(e.parent_task_message.id,n),i.delete(e.parent_task_message.id);return}case"delta":{if(null==e.parent_task_message)return;null!=e.delta&&t.add(e.parent_task_message.id,e.delta);let n=r.get(e.parent_task_message.id),i=t.get(e.parent_task_message.id);switch(i?.kind){case"text":{let t=n?.content.type==="text"?n.content:"text"===e.parent_task_message.content.type?e.parent_task_message.content:null;n={...e.parent_task_message,content:{type:"text",author:"agent",format:"plain",style:"static",...t,content:i.value}};break}case"reasoning":{let t=n?.content.type==="reasoning"?n.content:"reasoning"===e.parent_task_message.content.type?e.parent_task_message.content:null;n={...e.parent_task_message,content:{type:"reasoning",author:"agent",...t,summary:i.summary,content:i.content}}}}void 0!==n&&r.set(e.parent_task_message.id,n);return}case"done":{if(null==e.parent_task_message)return;let n=t.get(e.parent_task_message.id);n?.receivedStartEvent||i.add(e.parent_task_message.id);let l=r.get(e.parent_task_message.id),o=l??e.parent_task_message;switch(n?.kind){case"text":{let e="text"===o.content.type?o.content:null;l={...o,content:{type:"text",author:"agent",...e,content:n.value},streaming_status:"DONE"},null===e&&i.add(o.id);break}case"data":{let e=y(n.value),t="data"===o.content.type?o.content:null;l={...o,content:{type:"data",author:"agent",...t,data:e.value??{}},streaming_status:"DONE"}
1,(null===t||e.error)&&i.add(o.id);break}case"tool_request":{let e=y(n.value),t="tool_request"===o.content.type?o.content:null;l={...o,content:{type:"tool_request",author:"agent",...t,name:n.name,tool_call_id:n.tool_call_id,arguments:e.value??{}},streaming_status:"DONE"},(null===t||e.error)&&i.add(o.id);break}case"tool_response":{let e=y(n.value),t="tool_response"===o.content.type?o.content:null;l={...o,content:{type:"tool_response",author:"agent",...t,tool_call_id:n.tool_call_id,name:n.name,content:e.value??{}},streaming_status:"DONE"},(null===t||e.error)&&i.add(o.id);break}case"reasoning":{let e="reasoning"===o.content.type?o.content:null;l={...o,content:{type:"reasoning",author:"agent",...e,content:n.content,summary:n.summary},streaming_status:"DONE"},null===e&&i.add(o.id);break}default:l={...o,streaming_status:"DONE"}}r.set(e.parent_task_message.id,l);return}case"full":{var n,l,o,a;if(null==e.parent_task_message)return;let s={...r.get(e.parent_task_message.id)??e.parent_task_message,content:e.content,streaming_status:"DONE"};(r.set(e.parent_task_message.id,s),i.delete(e.parent_task_message.id),g(n=e.content)||"object"!=typeof n||null===n?1:"type"in n&&"text"===n.type?0:1)?("object"!=typeof(l=e.content)||null===l?1:"type"in l&&"data"===l.type?0:1)?("object"!=typeof(o=e.content)||null===o?1:"type"in o&&"tool_request"===o.type?0:1)?g(e.content)?t.set(s.id,{kind:"tool_response",tool_call_id:e.content.tool_call_id,name:e.content.name,value:JSON.stringify(e.content.content),receivedStartEvent:!0}):("object"!=typeof(a=e.content)||null===a?1:"type"in a&&"reasoning"===a.type?0:1)?(e.content,console.error("Could not identify event type",e)):t.set(s.id,{kind:"reasoning",content:e.content.content??[],summary:e.content.summary??[],receivedStartEvent:!0}):t.set(s.id,{kind:"tool_request",tool_call_id:e.content.tool_call_id,name:e.content.name,value:JSON.stringify(e.content.arguments),receivedStartEvent:!0}):t.set(s.id,{kind:"data",value:JSON.stringify(e.content.data),receivedStartEvent:!0}):t.set(s.id,{kind:"text",value:e.content.content,receivedStartEvent:!0});return}default:throw e.type,console.error("Could not identify event type",e),Error("Could not identify event type")}})();return{messages:Array.from(r.values()),deltaAccumulator:t,refetchMessageIDs:i}}(t,r,[o.result]),l=i.messages.at(-1);n=l?.id??null,e.setState({messages:i.messages,deltas:i.deltaAccumulator})}if(e.getState().latestRpcId!==a)return;(0,A.sendGTMEvent)({event:R.eventName.SYSTEM_RESPONSE,componentType:R.componentType.scaleAgentExperience,responseType:"aiGenerated",responseId:n,pagePath:P})}catch(t){l.signal.aborted||e.getState().latestRpcId!==a||e.getState().onError?.(t)}finally{e.getState().latestRpcId===a&&e.setState({isMessageStreaming:!1})}},[e]),l=(0,x.useCallback)(async t=>{let{agentexClient:n,abortController:r,latestRpcId:i}=e.getState(),l=i+1;e.setState({isTaskPending:!0,taskParams:t,latestRpcId:l});try{let i=await L(n,t,r.signal);return e.getState().latestRpcId===l&&e.setState({task:i}),i}finally{e.getState().latestRpcId===l&&e.setState({isTaskPending:!1})}},[e]),o=(0,x.useCallback)(async()=>{let t=e.getState(),n=new AbortController,r=t.latestRpcId+1,i={...t.taskParams};t.abortController.abort(),e.setState({abortController:n,latestRpcId:r,task:null,messages:[],deltas:null,isMessageStreaming:!1,isTaskPending:!0});try{let l=await L(t.agentexClient,i,n.signal);n.signal.aborted||e.getState().latestRpcId!==r||e.setState({task:l})}catch(i){n.signal.aborted||e.getState().latestRpcId!==r||(e.setState({task:t.task,messages:t.messages,deltas:t.deltas}),e.getState().onError?.(i))}finally{e.getState().latestRpcId===r&&e.setState({isTaskPending:!1})}},[e]);return{isMessageStreaming:k(e,e=>e.isMessageStreaming),isSendMessageEnabled:r,sendMessage:(0,x.useCallback)(async t=>{let n=e.getState().messages,r={id:crypto.randomUUID?crypto.randomUUID():function(e,t,n){let r=(e=e||{}).random??e.rng?.()??crypto.getRandomValues(C);if(r.length<16)throw Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(E[e[t+0]]+E[e[t+1]]+E[e[t+2]]+E[e[t+3]]+"-"+E[e[t+4]]+E[e[t+5]]+"-"+E[e[t+6]]+E[e[t+7]]+"-"+E[e[t+8]]+E[e[t+9]]+"-"+E[e[t+10]]+E[e[t+11]]+E[e[t+12]]+E[e[t+13]]+E[e[t+14]]+E[e[t+15]]).toLowerCase()}(r)}(void 0,void 0,void 0),content:{author:"user",type:"text",style:"static",format:"plain",attachments:null,content:t},task_id:"",created_at:new Date().toISOString(),streaming_status:"DONE",updated_at:new Date().toISOString()};e.setState({messages:[...n,r]});for(let n=0;n<5;n++){if(e.getState().task)return void await i(t);await new Promise(e=>setTimeout(e,1e3))}throw Error("Failed to send message")},[i,e]),createTask:l,resetThread:o}},"useAgentexRootStore",0,D],853802);let O=(0,x.createContext)(null),z=()=>{let e=(0,x.useContext)(O);
1if(!e)throw Error("useAudio must be used within an AudioProvider");return e};function F(e,[t,n]){return Math.min(n,Math.max(t,e))}e.s(["ActiveAudioProvider",0,({children:e})=>{let[t,n]=(0,x.useState)(""),[r,i]=(0,x.useState)(null),[l,o]=(0,x.useState)(!1),[a,s]=(0,x.useState)(0);return(0,p.jsx)(O.Provider,{value:{activePodcastTitle:t,setActivePodcastTitle:n,activePodcastRef:r,setActivePodcastRef:i,isActivePodcastInView:l,setIsActivePodcastInView:o,activePodcastCurrentTime:a,setActivePodcastCurrentTime:s},children:e})},"useActiveAudio",0,z],658954),(0,Object.defineProperty)(F,"name",{value:"clamp",configurable:!0});var B=Object.defineProperty,$=(e,t)=>B(e,"name",{value:t,configurable:!0}),H=!!("u">typeof window&&window.document&&window.document.createElement);function U(e,t,{checkForDefaultPrevented:n=!0}={}){return $(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function V(e){if(!H)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function q(e){return"IFRAME"===e.tagName}$(U,"composeEventHandlers"),$(function(e){if(!H)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),$(V,"getOwnerDocument"),$(function e(t,n=!1){let{activeElement:r}=V(t);if(!r?.nodeName)return null;if(q(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=V(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),$(q,"isFrame");var W=Object.defineProperty,K=(e,t)=>W(e,"name",{value:t,configurable:!0});function X(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function J(...e){return t=>{let n=!1,r=e.map(e=>{let r=X(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():X(e[t],null)}}}}function G(...e){return x.useCallback(J(...e),e)}K(X,"setRef"),K(J,"composeRefs"),K(G,"useComposedRefs");var Z=Object.defineProperty,Q=(e,t)=>Z(e,"name",{value:t,configurable:!0});function Y(e,t=[]){let n=[];function r(t,r){let i=x.createContext(r);i.displayName=t+"Context";let l=n.length;n=[...n,r];let o=Q(t=>{let{scope:n,children:r,...o}=t,a=n?.[e]?.[l]||i,s=x.useMemo(()=>o,Object.values(o));return(0,p.jsx)(a.Provider,{value:s,children:r})},"Provider");function a(n,o,s={}){let{optional:u=!1}=s,c=o?.[e]?.[l]||i,d=x.useContext(c);if(d)return d;if(void 0!==r)return r;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}return o.displayName=t+"Provider",Q(a,"useContext"),[o,a]}Q(r,"createContext");let i=Q(()=>{let t=n.map(e=>x.createContext(e));return Q(function(n){let r=n?.[e]||t;return x.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return i.scopeName=e,[r,ee(i,...t)]}function ee(...e){let t=e[0];if(1===e.length)return t;let n=Q(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Q(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Q(function(e,t){let n=x.createContext(t);n.displayName=e+"Context";let r=Q(e=>{let{children:t,...r}=e,i=x.useMemo(()=>r,Object.values(r));return(0,p.jsx)(n.Provider,{value:i,children:t})},"Provider");function i(r,l={}){let{optional:o=!1}=l,a=x.useContext(n);if(a)return a;if(void 0!==t)return t;if(!o)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",Q(i,"useContext"),[r,i]},"createContext"),Q(Y,"createContextScope"),Q(ee,"composeContextScopes");var et=globalThis?.document?x.useLayoutEffect:()=>{},en=Object.defineProperty,er=x[" useEffectEvent ".trim().toString()],ei=x[" useInsertionEffect ".trim().toString()];function el(e){if("function"==typeof er)return er(e);let t=x.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof ei?ei(()=>{t.current=e}):et(()=>{t.current=e}),x.useMemo(()=>(...e)=>t.current?.(...e),[])}en(el,"name",{value:"useEffectEvent",configurable:!0});var eo=Object.defineProperty,ea=(e,t)=>eo(e,"name",{value:t,configurable:!0}),es=x[" useInsertionEffect ".trim().toString()]||et;function eu({prop:e,defaultProp:t,onChange:n=ea(()=>{},"onChange"),caller:r}){let[i,l,o]=ec({defaultProp:t,onChange:n}),a=void 0!==e,s=a?e:i;return[s,x.useCallback(t=>{if(a){let n=ed(t)?t(e):t;n!==e&&o.current?.(n)}else l(t)},[a,e,l,o])]}function ec({defaultProp:e,onChange:t}
1){let[n,r]=x.useState(e),i=x.useRef(n),l=x.useRef(t);return es(()=>{l.current=t},[t]),x.useEffect(()=>{i.current!==n&&(l.current?.(n),i.current=n)},[n,i]),[n,r,l]}function ed(e){return"function"==typeof e}ea(eu,"useControllableState"),ea(ec,"useUncontrolledState"),ea(ed,"isFunction");var ef=Symbol("RADIX:SYNC_STATE");ea(function(e,t,n,r){let{prop:i,defaultProp:l,onChange:o,caller:a}=t,s=void 0!==i,u=el(o),c=[{...n,state:l}];r&&c.push(r);let[d,f]=x.useReducer((t,n)=>{if(n.type===ef)return{...t,state:n.state};let r=e(t,n);return s&&!Object.is(r.state,t.state)&&u(r.state),r},...c),p=d.state,h=x.useRef(p);x.useEffect(()=>{h.current!==p&&(h.current=p,s||u(p))},[p,h,s]);let m=x.useMemo(()=>void 0!==i?{...d,state:i}:d,[d,i]);return x.useEffect(()=>{s&&!Object.is(i,d.state)&&f({type:ef,state:i})},[i,d.state,s]),[m,f]},"useControllableStateReducer");var ep=Object.defineProperty,eh=x.createContext(void 0);function em(e){let t=x.useContext(eh);return e||t||"ltr"}function eg(e){let t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ey(e){let[t,n]=x.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}ep(em,"name",{value:"useDirection",configurable:!0}),(0,Object.defineProperty)(eg,"name",{value:"usePrevious",configurable:!0}),(0,Object.defineProperty)(ey,"name",{value:"useSize",configurable:!0});var ex=e.i(174080),ev=e.i(991918),eb=Object.defineProperty,ek=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,ev.createSlot)(`Primitive.${t}`),r=x.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?n:t,{...l,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});eb(function(e,t){e&&ex.flushSync(()=>e.dispatchEvent(t))},"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var ew=Object.defineProperty,eS=(e,t)=>ew(e,"name",{value:t,configurable:!0});function eC(e){let t=e+"CollectionProvider",[n,r]=Y(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=eS(e=>{let{scope:t,children:n}=e,r=x.useRef(null),l=x.useRef(new Map).current;return(0,p.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})},"CollectionProvider");o.displayName=t;let a=e+"CollectionSlot",s=(0,ev.createSlot)(a),u=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=G(t,l(a,n).collectionRef);return(0,p.jsx)(s,{ref:i,children:r})});u.displayName=a;let c=e+"CollectionItemSlot",d="data-radix-collection-item",f=(0,ev.createSlot)(c),h=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=x.useRef(null),a=G(t,o),s=l(c,n);return x.useEffect(()=>(s.itemMap.set(o,{ref:o,...i}),()=>void s.itemMap.delete(o))),(0,p.jsx)(f,{...{[d]:""},ref:a,children:r})});function m(t){let n=l(e+"CollectionConsumer",t);return x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h.displayName=c,eS(m,"useCollection"),[{Provider:o,Slot:u,ItemSlot:h},m,r]}eS(eC,"createCollection");var eE=new WeakMap,ej=class e extends Map{static{eS(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],eE.set(this,!0)}set(e,t){return eE.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),l=this.#e.length,o=eM(e),a=o>=0?o:l+o,s=a<0||a>=l?-1:a;if(s===this.size||i&&s===this.size-1||-1===s)return this.set(t,n),this;let u=this.size+ +!i;o<0&&a++;let c=[...this.#e],d=!1;for(let e=a;e<u;e++)if(a===e){let l=c[e];c[e]===t&&(l=c[e+1]),i&&this.delete(t),r=this.get(l),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=eT(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=eT(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eT(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function eT(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=e_(e,t);return -1===n?void 0:e[n]}function e_(e,t){let n=e.length,r=eM(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function eM(e){return e!=e||0===e?0:Math.trunc(e)}function eA(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function eR(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function eN(e,t){return e[1].element&&t[1].element?eR(e[1].element,t[1].element)?-1:1:0}function eP(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}eS(eT,"at"),eS(e_,"toSafeIndex"),eS(eM,"toSafeInteger"),eS(function(e){let t=e+"CollectionProvider",[n,r]=Y(t),[i,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ej,setItemMap:eS(()=>void 0,"setItemMap")}),o=eS(({state:e,...t})=>e?(0,p.jsx)(s,{...t,state:e}):(0,p.jsx)(a,{...t}),"CollectionProvider");o.displayName=t;let a=eS(e=>{let t=g();return(0,p.jsx)(s,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";let s=eS(e=>{let{scope:t,children:n,state:r}=e,l=x.useRef(null),[o,a]=x.useState(null),s=G(l,a),[u,c]=r;return x.useEffect(()=>{if(!o)return;let e=eP(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,p.jsx)(i,{scope:t,itemMap:u,setItemMap:c,collectionRef:s,collectionRefObject:l,collectionElement:o,children:n})},"CollectionProviderImpl");s.displayName=t+"Impl";let u=e+"CollectionSlot",c=(0,ev.createSlot)(u),d=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=G(t,l(u,n).collectionRef);return(0,p.jsx)(c,{ref:i,children:r})});d.displayName=u;let f=e+"CollectionItemSlot",h=(0,ev.createSlot)(f),m=x.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=x.useRef(null),[a,s]=x.useState(null),u=G(t,o,s),{setItemMap:c}=l(f,n),d=x.useRef(i);eA(d.current,i)||(d.current=i);let m=d.current;return x.useEffect(()=>(c(e=>a?e.has(a)?e.set(a,{...m,element:a}).toSorted(eN):(e.set(a,{...m,element:a}),e.toSorted(eN)):e),()=>{c(e=>a&&e.has(a)?(e.delete(a),new ej(e)):e)}),[a,m,c]),(0,p.jsx)(h,{"data-radix-collection-item":"",ref:u,children:r})});function g(){return x.useState(new ej)}function y(t){let{itemMap:n}=l(e+"CollectionConsumer",t);return n}return m.displayName=f,eS(g,"useInitCollection"),eS(y,"useCollection"),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:y,useInitCollection:g}]},"createCollection"),eS(eA,"shallowEqual"),eS(eR,"isElementPreceding"),eS(eN,"sortByDocumentPosition"),eS(eP,"getChildListObserver");var eI=Object.defineProperty,eD=(e,t)=>eI(e,"name",{value:t,configurable:!0}),eL=["PageUp","PageDown"],eO=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ez={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},eF="Slider",[eB,e$,eH]=eC(eF),[eU,eV]=Y(eF,[eH]),[eq,eW]=eU(eF),eK=x.forwardRef(eD(function(e,t){let{name:n,min:r=0,max:i=100,step:l=1,orientation:o="horizontal",disabled:a=!1,minStepsBetweenThumbs:s=0,defaultValue:u=[r],value:c,onValueChange:d=eD(()=>{},"onValueChange"),onValueCommit:f=eD(()=>{},"onValueCommit"),inverted:h=!1,form:m,...g}=e,y=x.useRef(new Set),v=x.useRef(0),b=x.useRef(!1),k="horizontal"===o,[w,S]=x.useState(null),C=G(t,S),[E=[],j]=eu({prop:c,defaultProp:u,onChange:eD(e=>{let t=[...y.current];t[v.current]?.focus({preventScroll:!0,focusVisible:b.current}),b.current=!1,d(e)}
1,"onChange")}),T=x.useRef(E),_=x.useRef(E);function M(e){let t=tn(E,e);N(e,t)}function A(e){N(e,v.current)}function R(){String(E)!==String(T.current)&&f(E)}function N(e,t,{commit:n}={commit:!1}){let o=ta(l),a=F(ts(Math.round((e-r)/l)*l+r,o),[r,i]);j((e=[])=>{let r=e8(e,a,t);if(!tl(r,s*l))return e;{v.current=r.indexOf(a);let t=String(r)!==String(e);return t&&n&&f(r),t?r:e}})}return x.useEffect(()=>{let e=m?w?.ownerDocument.getElementById(m):w?.closest("form");if(e instanceof HTMLFormElement){let t=eD(()=>j(_.current),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[w,m,j]),eD(M,"handleSlideStart"),eD(A,"handleSlideMove"),eD(R,"handleSlideEnd"),eD(N,"updateValues"),(0,p.jsx)(eq,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:i,valueIndexToChangeRef:v,thumbs:y.current,values:E,orientation:o,form:m,children:(0,p.jsx)(eB.Provider,{scope:e.__scopeSlider,children:(0,p.jsx)(eB.Slot,{scope:e.__scopeSlider,children:(0,p.jsx)(k?eG:eZ,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:C,onPointerDown:U(g.onPointerDown,()=>{a||(T.current=E,b.current=!1)}),min:r,max:i,inverted:h,onSlideStart:a?void 0:M,onSlideMove:a?void 0:A,onSlideEnd:a?void 0:R,onHomeKeyDown:()=>{a||(b.current=!0,N(r,0,{commit:!0}))},onEndKeyDown:()=>{a||(b.current=!0,N(i,E.length-1,{commit:!0}))},onStepKeyDown:({event:e,direction:t})=>{if(!a){b.current=!0;let n=eL.includes(e.key)||e.shiftKey&&eO.includes(e.key),i=v.current;N(tu(E[i],{min:r,step:l,direction:t,multiplier:n?10:1}),i,{commit:!0})}}})})})})},"Slider")),[eX,eJ]=eU(eF,{startEdge:"left",endEdge:"right",size:"width",direction:1}),eG=x.forwardRef(eD(function(e,t){let{min:n,max:r,dir:i,inverted:l,onSlideStart:o,onSlideMove:a,onSlideEnd:s,onStepKeyDown:u,...c}=e,[d,f]=x.useState(null),h=G(t,f),m=x.useRef(void 0),g=em(i),y="ltr"===g,v=y&&!l||!y&&l;function b(e){let t=m.current||d.getBoundingClientRect(),i=to([0,t.width],v?[n,r]:[r,n]);return m.current=t,i(e-t.left)}return eD(b,"getValueFromPointer"),(0,p.jsx)(eX,{scope:e.__scopeSlider,startEdge:v?"left":"right",endEdge:v?"right":"left",direction:v?1:-1,size:"width",children:(0,p.jsx)(eQ,{dir:g,"data-orientation":"horizontal",...c,ref:h,style:{...c.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:e=>{let t=b(e.clientX);o?.(t)},onSlideMove:e=>{let t=b(e.clientX);a?.(t)},onSlideEnd:()=>{m.current=void 0,s?.()},onStepKeyDown:e=>{let t=ez[v?"from-left":"from-right"].includes(e.key);u?.({event:e,direction:t?-1:1})}})})},"SliderHorizontal")),eZ=x.forwardRef(eD(function(e,t){let{min:n,max:r,inverted:i,onSlideStart:l,onSlideMove:o,onSlideEnd:a,onStepKeyDown:s,...u}=e,c=x.useRef(null),d=G(t,c),f=x.useRef(void 0),h=!i;function m(e){let t=f.current||c.current.getBoundingClientRect(),i=to([0,t.height],h?[r,n]:[n,r]);return f.current=t,i(e-t.top)}return eD(m,"getValueFromPointer"),(0,p.jsx)(eX,{scope:e.__scopeSlider,startEdge:h?"bottom":"top",endEdge:h?"top":"bottom",size:"height",direction:h?1:-1,children:(0,p.jsx)(eQ,{"data-orientation":"vertical",...u,ref:d,style:{...u.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:e=>{let t=m(e.clientY);l?.(t)},onSlideMove:e=>{let t=m(e.clientY);o?.(t)},onSlideEnd:()=>{f.current=void 0,a?.()},onStepKeyDown:e=>{let t=ez[h?"from-bottom":"from-top"].includes(e.key);s?.({event:e,direction:t?-1:1})}})})},"SliderVertical")),eQ=x.forwardRef(eD(function(e,t){let{__scopeSlider:n,onSlideStart:r,onSlideMove:i,onSlideEnd:l,onHomeKeyDown:o,onEndKeyDown:a,onStepKeyDown:s,...u}=e,c=eW(eF,n);return(0,p.jsx)(ek.span,{...u,ref:t,onKeyDown:U(e.onKeyDown,e=>{"Home"===e.key?(o(e),e.preventDefault()):"End"===e.key?(a(e),e.preventDefault()):eL.concat(eO).includes(e.key)&&(s(e),e.preventDefault())}),onPointerDown:U(e.onPointerDown,e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),c.thumbs.has(t)?t.focus({preventScroll:!0,focusVisible:!1}):r(e)}),onPointerMove:U(e.onPointerMove,e=>{e.target.hasPointerCapture(e.pointerId)&&i(e)}),onPointerUp:U(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),l(e))})})},"SliderImpl")),eY=x.forwardRef(eD(function(e,t){let{__scopeSlider:n,...r}=e,i=eW("SliderTrack",n);return(0,p.jsx)(ek.span,{"data-disabled":i.disabled?"":void 0,"data-orientation":i.orientation,...r,ref:t})},"SliderTrack")),e1="SliderRange",e0=x.forwardRef(eD(function(e,t){let{__scopeSlider:n,...r}=e,i=eW(e1,n),l=eJ(e1,n),o=G(t,x.useRef(null)),a=i.values.length,s=i.values.map(e=>te(e,i.min,i.max)),u=a>1?Math.min(...s):0,c=100-Math.max(...s);return(0,p.jsx)(ek.span,{"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,...r,ref:o,style:{...e.style,[l.startEdge]:u+"%",[l.endEdge]:c+"%"}})}
1,"SliderRange")),[e2,e4]=eU("SliderThumb");function e3(e){let{__scopeSlider:t,name:n,children:r,internal_do_not_use_render:i}=e,l=eW("SliderThumbProvider",t),o=e$(t),[a,s]=x.useState(null),u=x.useMemo(()=>a?o().findIndex(e=>e.ref.current===a):-1,[o,a]),c=ey(a),d=!a||!!l.form||!!a.closest("form"),f=l.values[u],h=n??(l.name?l.name+(l.values.length>1?"[]":""):void 0),m=void 0===f?0:te(f,l.min,l.max);x.useEffect(()=>{if(a)return l.thumbs.add(a),()=>{l.thumbs.delete(a)}},[a,l.thumbs]);let g={value:f,name:h,form:l.form,isFormControl:d,index:u,thumb:a,onThumbChange:s,percent:m,size:c};return(0,p.jsx)(e2,{scope:t,...g,children:tc(i)?i(g):r})}eD(e3,"SliderThumbProvider");var e7="SliderThumbTrigger",e5=x.forwardRef(eD(function(e,t){let{__scopeSlider:n,...r}=e,i=eW(e7,n),l=eJ(e7,n),{index:o,value:a,percent:s,size:u,onThumbChange:c}=e4(e7,n),d=G(t,c),f=tt(o,i.values.length),h=u?.[l.size],m=h?tr(h,s,l.direction):0;return(0,p.jsx)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[l.startEdge]:`calc(${s}% + ${m}px)`},children:(0,p.jsx)(eB.ItemSlot,{scope:n,children:(0,p.jsx)(ek.span,{role:"slider","aria-label":e["aria-label"]||f,"aria-valuemin":i.min,"aria-valuenow":a,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...r,ref:d,style:void 0===a?{display:"none"}:e.style,onFocus:U(e.onFocus,()=>{i.valueIndexToChangeRef.current=o})})})})},"SliderThumbTrigger")),e6=x.forwardRef(eD(function(e,t){let{__scopeSlider:n,name:r,...i}=e;return(0,p.jsx)(e3,{__scopeSlider:n,name:r,internal_do_not_use_render:({index:e,isFormControl:r})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(e5,{...i,ref:t,__scopeSlider:n}),r?(0,p.jsx)(e9,{__scopeSlider:n},e):null]})})},"SliderThumb")),e9=x.forwardRef(eD(function({__scopeSlider:e,...t},n){let{value:r,name:i,form:l}=e4("SliderBubbleInput",e),o=x.useRef(null),a=G(o,n),s=eg(r);return x.useEffect(()=>{let e=o.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value").set;if(s!==r&&t){let n=new Event("input",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,p.jsx)(ek.input,{style:{display:"none"},name:i,form:l,...t,ref:a,defaultValue:r})},"SliderBubbleInput"));function e8(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function te(e,t,n){return F(100/(n-t)*(e-t),[0,100])}function tt(e,t){return t>2?`Value ${e+1} of ${t}`:2===t?["Minimum","Maximum"][e]:void 0}function tn(e,t){if(1===e.length)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function tr(e,t,n){let r=e/2,i=to([0,50],[0,r]);return(r-i(t)*n)*n}function ti(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function tl(e,t){return!(t>0)||Math.min(...ti(e))>=t}function to(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function ta(e){if(!Number.isFinite(e))return 0;let t=e.toString();if(t.includes("e")){let[e,n]=t.split("e"),r=e.split(".")[1]||"",i=Number(n);return Math.max(0,r.length-i)}let n=t.split(".")[1];return n?n.length:0}function ts(e,t){let n=Math.pow(10,t);return Math.round(e*n)/n}function tu(e,{min:t,step:n,direction:r,multiplier:i}){let l,o=ta(n),a=(e-t)/n,s=Math.round(a);return l=ts(s*n+t,o)===ts(e,o)?s+i*r:r>0?Math.ceil(a):Math.floor(a),ts(l*n+t,o)}function tc(e){return"function"==typeof e}eD(e8,"getNextSortedValues"),eD(te,"convertValueToPercentage"),eD(tt,"getLabel"),eD(tn,"getClosestValueIndex"),eD(tr,"getThumbInBoundsOffset"),eD(ti,"getStepsBetweenValues"),eD(tl,"hasMinStepsBetweenValues"),eD(to,"linearScale"),eD(ta,"getDecimalCount"),eD(ts,"roundValue"),eD(tu,"getNextStepValue"),eD(tc,"isFunction");var td=e.i(88653),tf=e.i(846932),tp=e.i(495242),th=e.i(431343),tm=e.i(37727);let tg=({icon:e,onClick:t,className:n="",disabled:r=!1,type:i="button",gtmData:l,ariaLabel:o})=>(0,p.jsx)("div",{className:"relative inline-block",children:(0,p.jsx)("button",{type:i,"aria-label":o,onClick:e=>{l&&(0,A.sendGTMEvent)(l),t(e)},disabled:r,className:`
2          flex
3          items-center
4          justify-center
5          rounded-md
6          text-gray-700
7          transition-all
8          duration-200
9          ease-in-out
10
11          ${r?"cursor-not-allowed opacity-50":"hover:scale-105 hover:bg-gray-50 active:scale-95"}
12          ${n}
13        `,children:e})});e.s(["IconButton",0,tg],373820);let ty=[.5,1,1.25,1.5,2],tx=({audioRef:e})=>{let t=(0,x.useRef)(null),[n,r]=(0,x.useState)(!1),[i,l]=(0,x.useState)(1);return(0,x.useEffect)(()=>{let e=e=>{t.current&&!t.current.contains(e.target)&&r(!1)};return n&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[n]),(0,x.useEffect)(()=>{e.current&&(e.current.playbackRate=i)},[i,e]),(0,p.jsxs)("div",{ref:t,className:"relative flex",children:[(0,p.jsxs)("button",{className:"flex items-center gap-1 text-gray-700",onClick:()=>{r(!n)},children:["Speed ",i,"x"]}),(0,p.jsx)(td.AnimatePresence,{children:n&&(0,p.jsx)(tf.motion.div,{initial:{opacity:0,y:10}
13,animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{duration:.2,ease:"easeInOut"},className:"absolute bottom-full right-0 mb-2 rounded-md border border-gray-300 bg-white shadow-lg",children:(0,p.jsx)("div",{className:"flex flex-col",children:ty.map(e=>(0,p.jsx)("button",{onClick:()=>{l(e),r(!1)},className:`w-[100px] px-3 py-2 text-left text-sm transition-colors first:rounded-l-md last:rounded-r-md hover:bg-gray-100 ${i===e?"bg-red-50 text-red-600":"text-gray-700"}`,children:1===e?"Normal (1x)":`${e}x`},e))})})})]})},tv=e=>{let t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`};e.s(["StickyPodcastPlayer",0,({isExpanded:e})=>{let{activePodcastRef:t,isActivePodcastInView:n,activePodcastTitle:r,activePodcastCurrentTime:i,setActivePodcastRef:l,setActivePodcastTitle:o}=z(),a=(0,x.useRef)(null),[s,u]=(0,x.useState)(!1),[c,d]=(0,x.useState)(!0),[f,h]=(0,x.useState)(0);(0,x.useEffect)(()=>{let e=t?.current;if(queueMicrotask(()=>{u(!!e),e&&(d(e.paused),h(e.duration||0))}),e){let t=()=>d(!1),n=()=>d(!0),r=()=>h(e.duration||0);return e.addEventListener("play",t),e.addEventListener("pause",n),e.addEventListener("loadedmetadata",r),()=>{e.removeEventListener("play",t),e.removeEventListener("pause",n),e.removeEventListener("loadedmetadata",r)}}},[t]);let m=async()=>{t?.current&&(t.current.paused?await t.current.play():t.current.pause())};return(0,p.jsx)(td.AnimatePresence,{children:!s||n?null:(0,p.jsxs)(tf.motion.div,{ref:a,className:"sticky bottom-0 flex w-full flex-col border-b border-gray-200 bg-white",initial:{y:60},exit:{y:60},animate:{y:0,visibility:e?"visible":"hidden"},transition:{y:{type:"spring",bounce:.1},visibility:{delay:.7*!!e}},children:[(0,p.jsx)(eK,{className:"flex w-full touch-none select-none items-center",value:[i],max:f,step:.1,children:(0,p.jsx)(eY,{className:"relative h-[3px] w-full grow bg-gray-200",children:(0,p.jsx)(e0,{className:"absolute h-full",style:{background:"linear-gradient(to right, #ef4444 90%, #991313 100%)"}})})}),(0,p.jsxs)("div",{className:"flex flex-row items-center justify-between px-4 py-1",children:[(0,p.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[(0,p.jsx)(tg,{icon:(0,p.jsx)(tm.X,{size:20,strokeWidth:2}),onClick:()=>{l(null),o("")}}),(0,p.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col pr-2",children:[(0,p.jsx)("span",{className:"truncate",children:r}),(0,p.jsx)("span",{className:"truncate text-xs text-gray-400",children:tv(i)})]})]}),(0,p.jsxs)("div",{className:"flex flex-row items-center gap-3",children:[t&&(0,p.jsx)(tx,{audioRef:t}),(0,p.jsx)(tg,{icon:c?(0,p.jsx)(th.Play,{size:20,strokeWidth:2}):(0,p.jsx)(tp.Pause,{size:20,strokeWidth:2}),onClick:()=>void m()})]})]})]})})}],998834);var tb=e.i(475254);let tk=(0,tb.default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),tw=({className:e})=>(0,p.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,p.jsx)("title",{children:"TIME AI Sparkle Large"}),(0,p.jsx)("path",{d:"M6.19594 11.8098C6.08482 11.8098 5.99592 11.7209 5.99592 11.6098C5.99592 8.82537 3.73057 6.56003 0.946119 6.56003C0.834995 6.56003 0.746094 6.47113 0.746094 6.36C0.746094 6.24888 0.834995 6.15998 0.946119 6.15998C3.73057 6.15998 5.99592 3.89463 5.99592 1.11018C5.99592 0.999056 6.08482 0.910156 6.19594 0.910156C6.30707 0.910156 6.39597 0.999056 6.39597 1.11018C6.39597 3.89463 8.66131 6.15998 11.4458 6.15998C11.5569 6.15998 11.6458 6.24888 11.6458 6.36C11.6458 6.47113 11.5569 6.56003 11.4458 6.56003C8.66131 6.56003 6.39597 8.82537 6.39597 11.6098C6.39597 11.7209 6.30707 11.8098 6.19594 11.8098Z",fill:"#FF2020"})]}),tS=({className:e})=>(0,p.jsxs)("svg",{width:"8",height:"9",viewBox:"0 0 8 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,p.jsx)("title",{children:"TIME AI Sparkle Small"}),(0,p.jsx)("path",{d:"M4.27096 8.08978C4.19794 8.08978 4.13762 8.02946 4.13762 7.95643C4.13762 6.10225 2.62951 4.59255 0.773734 4.59255C0.70071 4.59255 0.640381 4.53222 0.640381 4.4592C0.640381 4.38617 0.70071 4.32585 0.773734 4.32585C2.62792 4.32585 4.13762 2.81615 4.13762 0.961962C4.13762 0.888938 4.19794 0.828613 4.27096 0.828613C4.34399 0.828613 4.40432 0.888938 4.40432 0.961962C4.40432 2.81615 5.91402 4.32585 7.76821 4.32585C7.84123 4.32585 7.90156 4.38617 7.90156 4.4592C7.90156 4.53222 7.84123 4.59255 7.76821 4.59255C5.91402 4.59255 4.40432 6.10066 4.40432 7.95643C4.40432 8.03104 4.34399 8.08978 4.27096 8.08978Z",fill:"#BB1515"})]});var tC=e.i(947414),tE=e.i(674008),tj=e.i(876859),tT=e.i(347834),t_=e.i(965566);
13function tM(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&(0,tT.setTarget)(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{tM(e,t)})})}function tA(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){(0,t_.invariant)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return t.forEach(e=>{i.push((0,tj.animateVisualElement)(e,n,{transitionOverride:r}))}),Promise.all(i)},set:n=>((0,t_.invariant)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?tM(t,r):"string"==typeof r?tM(t,[r]):(0,tT.setTarget)(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}let tR=function(){let e=(0,tC.useConstant)(tA);return(0,tE.useIsomorphicLayoutEffect)(e.mount,[]),e},tN=(0,x.memo)(({asChild:e=!1})=>{let t=tR(),n=(0,x.useRef)(0),r=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(tf.motion.div,{className:"absolute left-[-2px] top-[-2px]",initial:{scale:1},animate:{scale:[1,1.3,1]},transition:{duration:.6,times:[0,.5,1],ease:"easeInOut",delay:1},children:(0,p.jsx)(tw,{className:"size-[18px]"})}),(0,p.jsx)(tf.motion.div,{className:"absolute bottom-[-2px] right-px",initial:{scale:1},animate:{scale:[1,1.3,1]},transition:{duration:.6,times:[0,.5,1],ease:"easeInOut",delay:1.4},children:(0,p.jsx)(tS,{className:"size-[12px]"})})]});return e?(0,p.jsx)("span",{className:"relative inline-block size-6",children:r}):(0,p.jsx)(tf.motion.button,{className:"relative size-6 cursor-pointer",onClick:()=>{n.current+=360,t.start({rotate:n.current,transition:{type:"spring",damping:12,stiffness:200,mass:1.5}})},animate:t,initial:{rotate:0},children:r})});tN.displayName="TimeAiSparkles",e.s(["TimeAiSparkles",0,tN],884864);let tP=({className:e})=>(0,p.jsxs)("svg",{width:"26",height:"10",viewBox:"0 0 28 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,p.jsx)("title",{children:"Scale Logo Grayscaled"}),(0,p.jsx)("path",{d:"M19.9037 9C19.6863 9 19.493 8.80675 19.493 8.58934V0.834983C19.493 0.617571 19.6863 0.424316 19.9037 0.424316C20.1211 0.424316 20.3144 0.617571 20.3144 0.834983V8.58934C20.3385 8.83091 20.1453 9 19.9037 9ZM27.0058 7.91295C27.1508 7.74385 27.1266 7.47812 26.9575 7.33318C26.7884 7.18824 26.5227 7.2124 26.3777 7.38149C25.9429 7.88879 25.3148 8.17867 24.6143 8.17867C23.4789 8.17867 22.5368 7.23655 22.5368 6.10118C22.5368 4.96581 23.4789 4.02369 24.6143 4.02369C25.5564 4.02369 26.3294 4.70008 26.4985 5.56973H23.962C23.7446 5.56973 23.5514 5.76298 23.5514 5.9804C23.5514 6.19781 23.7446 6.39106 23.962 6.39106H26.9575C27.1749 6.39106 27.3682 6.19781 27.3682 5.9804V5.93208C27.3682 4.4102 26.1362 3.20236 24.6384 3.20236C23.0441 3.20236 21.7396 4.50683 21.7396 6.10118C21.7396 7.69553 23.0441 9 24.6384 9C25.5564 9 26.426 8.61349 27.0058 7.91295ZM18.1161 8.58934V5.93208C18.1161 4.4102 16.8841 3.20236 15.3864 3.20236C13.792 3.20236 12.4875 4.50683 12.4875 6.10118C12.4875 7.69553 13.792 9 15.3864 9C15.6038 9 15.797 8.80675 15.797 8.58934C15.797 8.37193 15.6038 8.17867 15.3864 8.17867C14.251 8.17867 13.3089 7.23655 13.3089 6.10118C13.3089 4.96581 14.251 4.02369 15.3864 4.02369C16.4493 4.02369 17.2948 4.86918 17.2948 5.93208V8.58934C17.2948 8.80675 17.488 9 17.7054 9C17.9228 9 18.1161 8.83091 18.1161 8.58934ZM5.55451 7.33318C5.55451 6.92251 5.40957 6.36691 4.68486 6.05287C4.25004 5.85961 3.71859 5.76298 3.21129 5.69051C2.00345 5.49726 1.56863 5.35232 1.56863 4.84502C1.56863 4.28942 2.31749 4.02369 3.06635 4.02369C3.52533 4.02369 4.20173 4.12032 4.75733 4.5793C4.92643 4.72424 5.19216 4.70008 5.3371 4.53098C5.48204 4.36189 5.45788 4.09616 5.28878 3.95122C4.53992 3.3473 3.67027 3.22651 3.06635 3.22651C1.472 3.22651 0.723136 4.09616 0.723136 4.89334C0.723136 5.304 0.868078 5.85961 1.59278 6.19781C2.02761 6.39106 2.55906 6.48769 3.06635 6.56016C4.2742 6.75342 4.68486 6.89836 4.68486 7.38149C4.68486 7.88879 4.08094 8.20283 3.21129 8.20283C2.31749 8.20283 1.61694 7.84047 1.27874 7.62306C1.08549 7.50228 0.819764 7.55059 0.698979 7.74385C0.626509 7.88879 0.674823 8.15451 0.868078 8.2753C1.56863 8.73428 2.41412 9 3.25961 9C4.8298 9 5.55451 8.17867 5.55451 7.33318ZM11.5696 7.768C11.6904 7.57475 11.642 7.30902 11.4488 7.18824C11.2555 7.06746 10.9898 7.11577 10.869 7.30902C10.5067 7.84048 9.9269 8.15451 9.27467 8.15451C8.13929 8.15451 7.19718 7.2124 7.19718 6.07702C7.19718 4.94165 8.13929 3.99953 9.27467 3.99953C9.9269 3.99953 10.5067 4.31357 10.869 4.84502C10.9898 5.03828 11.2555 5.08659 11.4488 4.96581C11.642 4.84502 11.6904 4.5793 11.5696 4.38604C11.0623 3.61302 10.2168 3.15404 9.27467 3.15404C7.68031 3.15404 6.37584 4.45851 6.37584 6.05287C6.37584 7.64722 7.68031 8.95169 9.27467 8.95169C10.1926 9 11.0623 8.54102 11.5696 7.768Z",fill:"#737373"})]});e.s(["DESKTOP_EXPAND_DELAY",0,.3],60533);let tI=({isExpanded:e})=>(0,p.jsx)(td.AnimatePresence,{children:e&&(0,p.jsxs)(tf.motion.div,{className:"flex w-full flex-col items-center pt-[2px] text-[11px] text-gray-500",initial:{opacity:0,height:8}
13,animate:{opacity:1,height:35},exit:{opacity:0,height:0},transition:{duration:.2,ease:"easeOut",delay:.3*!!e},children:[(0,p.jsxs)("span",{className:"whitespace-nowrap",children:["TIME AI can be inaccurate, please use responsibly. ",(0,p.jsx)("a",{className:"underline hover:no-underline",href:"https://time.com/7332584/frequently-asked-questions-the-time-ai-agent/",target:"_blank",rel:"noopener noreferrer",children:"FAQs"})," and ",(0,p.jsx)("a",{className:"underline hover:no-underline",href:"https://legal.time.com/us-privacy-policy/",target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]}),(0,p.jsxs)("div",{className:"flex items-center gap-[2px]",children:["Powered by",(0,p.jsx)(tP,{className:"-translate-y-px"})]})]})});var tD=e.i(818622);function tL(){}function tO(){}e.s(["PromptInput",0,({isExpanded:e,onSubmit:t,onClick:n})=>{let[r,i]=(0,x.useState)(""),l=(0,x.useRef)(null),o=D(e=>e.isMessageStreaming),a=(0,tD.useIsMobile)();(0,x.useEffect)(()=>{if(!l.current)return;let e=l.current;e.style.height="auto";let t=e.scrollHeight,n=Math.min(t,100);e.style.height=`${n}px`,e.style.overflowY=t>100?"auto":"hidden"},[r,l]);let s=()=>{o||""===r.trim()||(t(r),i(""))};return(0,p.jsxs)("div",{className:"relative flex w-full flex-col items-center",children:[(0,p.jsxs)(tf.motion.div,{className:`relative ${!a&&"max-w-[600px]"} flex w-full items-center gap-2 rounded-lg bg-white px-4 py-2`,children:[(0,p.jsx)(tN,{}),(0,p.jsxs)(tf.motion.form,{className:`relative flex w-full rounded-md border border-gray-200  ${o&&"bg-gray-200"}`,onSubmit:e=>{e.preventDefault(),s()},onClick:n,children:[(0,p.jsx)(tf.motion.textarea,{id:"prompt-input",ref:l,className:`w-full resize-none bg-transparent px-2 py-3 font-graphik-compact text-base focus:outline-none ${o?"pointer-events-none cursor-not-allowed":""}`,value:r,onChange:e=>i(e.target.value),disabled:o,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||o||(e.preventDefault(),s())},onClick:n,rows:1}),!r?.trim()&&(0,p.jsx)("div",{className:"rich-text pointer-events-none absolute inset-x-2 top-3 font-graphik-compact text-base text-gray-500",children:(0,p.jsx)("span",{className:"leading-[1.6]",children:"Ask me anything"})})]}),(0,p.jsxs)("div",{className:"relative flex translate-x-1 items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-50 ",children:[o&&(0,p.jsx)("div",{className:"absolute size-7 animate-spin rounded-full border-2 border-transparent border-t-brand-red",style:{animation:"spin 1s linear infinite"}}),(0,p.jsx)(tg,{icon:(0,p.jsx)(tk,{size:20,className:`${r?"text-brand-red":""}`}),onClick:e=>{e.preventDefault(),s()},disabled:!r?.trim()||o,ariaLabel:"Send prompt"})]})]}),(0,p.jsx)(tI,{isExpanded:e})]})}],663152);let tz=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,tB={};function t$(e,t){return((t||tB).jsx?tF:tz).test(e)}let tH=/[ \t\n\f\r]/g;function tU(e){return""===e.replace(tH,"")}class tV{constructor(e,t){this.attribute=t,this.property=e}}tV.prototype.attribute="",tV.prototype.booleanish=!1,tV.prototype.boolean=!1,tV.prototype.commaOrSpaceSeparated=!1,tV.prototype.commaSeparated=!1,tV.prototype.defined=!1,tV.prototype.mustUseProperty=!1,tV.prototype.number=!1,tV.prototype.overloadedBoolean=!1,tV.prototype.property="",tV.prototype.spaceSeparated=!1,tV.prototype.space=void 0;let tq=0,tW=tY(),tK=tY(),tX=tY(),tJ=tY(),tG=tY(),tZ=tY(),tQ=tY();function tY(){return 2**++tq}e.s(["boolean",0,tW,"booleanish",0,tK,"commaOrSpaceSeparated",0,tQ,"commaSeparated",0,tZ,"number",0,tJ,"overloadedBoolean",0,tX,"spaceSeparated",0,tG],400744);var t1=e.i(400744);let t0=Object.keys(t1);class t2 extends tV{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<t0.length;){const e=t0[i];!function(e,t,n){n&&(e[t]=n)}(this,t0[i],(n&t1[e])===t1[e])}}}function t4(e){return e.toLowerCase()}t2.prototype.defined=!0;let t3=/[A-Z]/g,t7=/-[a-z]/g,t5=/^data[-\w.:]+$/i;function t6(e){return"-"+e.toLowerCase()}function t9(e){return e.charAt(1).toUpperCase()}let t8={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class ne{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function nt(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ne(n,r,t)}function nn(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new t2(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[t4(r)]=r,n[t4(l.attribute)]=r}return new ne(t,n,e.space)}ne.prototype.normal={},ne.prototype.property={},ne.prototype.space=void 0;let nr=nn({properties:{ariaActiveDescendant:null,ariaAtomic:tK,ariaAutoComplete:null,ariaBusy:tK,ariaChecked:tK,ariaColCount:tJ,ariaColIndex:tJ,ariaColSpan:tJ,ariaControl
vendor: 4,614 bytes, line 13
13s:tG,ariaCurrent:null,ariaDescribedBy:tG,ariaDetails:null,ariaDisabled:tK,ariaDropEffect:tG,ariaErrorMessage:null,ariaExpanded:tK,ariaFlowTo:tG,ariaGrabbed:tK,ariaHasPopup:null,ariaHidden:tK,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:tG,ariaLevel:tJ,ariaLive:null,ariaModal:tK,ariaMultiLine:tK,ariaMultiSelectable:tK,ariaOrientation:null,ariaOwns:tG,ariaPlaceholder:null,ariaPosInSet:tJ,ariaPressed:tK,ariaReadOnly:tK,ariaRelevant:null,ariaRequired:tK,ariaRoleDescription:tG,ariaRowCount:tJ,ariaRowIndex:tJ,ariaRowSpan:tJ,ariaSelected:tK,ariaSetSize:tJ,ariaSort:null,ariaValueMax:tJ,ariaValueMin:tJ,ariaValueNow:tJ,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function ni(e,t){return t in e?e[t]:t}function nl(e,t){return ni(e,t.toLowerCase())}let no=nn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tZ,acceptCharset:tG,accessKey:tG,action:null,allow:null,allowFullScreen:tW,allowPaymentRequest:tW,allowUserMedia:tW,alt:null,as:null,async:tW,autoCapitalize:null,autoComplete:tG,autoFocus:tW,autoPlay:tW,blocking:tG,capture:null,charSet:null,checked:tW,cite:null,className:tG,cols:tJ,colSpan:null,content:null,contentEditable:tK,controls:tW,controlsList:tG,coords:tJ|tZ,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tW,defer:tW,dir:null,dirName:null,disabled:tW,download:tX,draggable:tK,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tW,formTarget:null,headers:tG,height:tJ,hidden:tX,high:tJ,href:null,hrefLang:null,htmlFor:tG,httpEquiv:tG,id:null,imageSizes:null,imageSrcSet:null,inert:tW,inputMode:null,integrity:null,is:null,isMap:tW,itemId:null,itemProp:tG,itemRef:tG,itemScope:tW,itemType:tG,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tW,low:tJ,manifest:null,max:null,maxLength:tJ,media:null,method:null,min:null,minLength:tJ,multiple:tW,muted:tW,name:null,nonce:null,noModule:tW,noValidate:tW,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:tW,optimum:tJ,pattern:null,ping:tG,placeholder:null,playsInline:tW,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tW,referrerPolicy:null,rel:tG,required:tW,reversed:tW,rows:tJ,rowSpan:tJ,sandbox:tG,scope:null,scoped:tW,seamless:tW,selected:tW,shadowRootClonable:tW,shadowRootDelegatesFocus:tW,shadowRootMode:null,shape:null,size:tJ,sizes:null,slot:null,span:tJ,spellCheck:tK,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tJ,step:null,style:null,tabIndex:tJ,target:null,title:null,translate:null,type:null,typeMustMatch:tW,useMap:null,value:tK,width:tJ,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:tG,axis:null,background:null,bgColor:null,border:tJ,borderColor:null,bottomMargin:tJ,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tW,declare:tW,event:null,face:null,frame:null,frameBorder:null,hSpace:tJ,leftMargin:tJ,link:null,longDesc:null,lowSrc:null,marginHeight:tJ,marginWidth:tJ,no
13Resize:tW,noHref:tW,noShade:tW,noWrap:tW,object:null,profile:null,prompt:null,rev:null,rightMargin:tJ,rules:null,scheme:null,scrolling:tK,standby:null,summary:null,text:null,topMargin:tJ,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tJ,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tW,disableRemotePlayback:tW,prefix:null,property:null,results:tJ,security:null,unselectable:null},space:"html",transform:nl}),na=nn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
13-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:tQ,accentHeight:tJ,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tJ,amplitude:tJ,arabicForm:null,ascent:tJ,attributeName:null,attributeType:null,azimuth:tJ,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tJ,by:null,calcMode:null,capHeight:tJ,className:tG,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tJ,diffuseConstant:tJ,direction:null,display:null,dur:null,divisor:tJ,dominantBaseline:null,download:tW,dx:null,dy:null,edgeMode:null,editable:null,elevation:tJ,enableBackground:null,end:null,event:null,exponent:tJ,externalResourcesRequired:null,fill:null,fillOpacity:tJ,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:tZ,g2:tZ,glyphName:tZ,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tJ,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tJ,horizOriginX:tJ,horizOriginY:tJ,id:null,ideographic:tJ,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tJ,k:tJ,k1:tJ,k2:tJ,k3:tJ,k4:tJ,kernelMatrix:tQ,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tJ,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tJ,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
13Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tJ,overlineThickness:tJ,paintOrder:null,panose1:null,path:null,pathLength:tJ,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:tG,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tJ,pointsAtY:tJ,pointsAtZ:tJ,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tQ,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tQ,rev:tQ,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tQ,requiredFeatures:tQ,requiredFonts:tQ,requiredFormats:tQ,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tJ,specularExponent:tJ,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tJ,strikethroughThickness:tJ,string:null,stroke:null,strokeDashArray:tQ,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tJ,strokeOpacity:tJ,strokeWidth:null,style:null,surfaceScale:tJ,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tQ,tabIndex:tJ,tableValues:null,target:null,targetX:tJ,targetY:tJ,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tQ,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tJ,underlineThickness:tJ,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tJ,values:null,vAlphabetic:tJ,vMathematical:tJ,vectorEffect:null,vHanging:tJ,vIdeographic:tJ,version:null,vertAdvY:tJ,vertOriginX:tJ,vertOriginY:tJ,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tJ,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ni}),ns=nn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),nu=nn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:nl}),nc=nn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),nd=nt([nr,no,ns,nu,nc],"html"),nf=nt([nr,na,ns,nu,nc],"svg");var np=e.i(515511);let nh=ng("end"),nm=ng("start");function ng(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ny(e){return e&&"object"==typeof e?"position"in e||"type"in e?nv(e.position):"start"in e||"end"in e?nv(e):"line"in e||"column"in e?nx(e):"":""}function nx(e){return nb(e&&e.line)+":"+nb(e&&e.column)}function nv(e){return nx(e&&e.start)+"-"+nx(e&&e.end)}function nb(e){return e&&"number"==typeof e?e:1}class nk extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=ny(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}nk.prototype.file="",nk.prototype.name="",nk.prototype.reason="",nk.prototype.message="",nk.prototype.stack="",nk.prototype.column=void 0,nk.prototype.line=void 0,nk.prototype.ancestors=void 0,nk.prototype.cause=void 0,nk.prototype.fatal=void 0,nk.prototype.place=void 0,nk.prototype.ruleId=void 0,nk.prototype.source=void 0;let nw={}.hasOwnProperty,nS=new Map,nC=/[A-Z]/g,nE=new Set(["table","tbody","thead","tfoot","tr"]),nj=new Set(["td","th"]),nT="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n_(e,t,n){var r,i,l,o,a,s,u,c,d;let f,p,h,m,g,y,x,v,b,k,w;return"element"===t.type?(r=e,i=t,l=n,p=f=r.schema,"svg"===i.tagName.toLowerCase()&&"html"===f.space&&(r.schema=nf),r.ancestors.push(i),h=nN(r,i.tagName,!1),m=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&nw.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=t4(t),r=t,i=tV;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&t5.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(t7,t9);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!t7.test(e)){let n=e.replace(t3,t6);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=t2}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){var i;let t;if(Array.isArray(n)&&(n=r.commaSeparated?(t={},(""===(i=n)[i.length-1]?[...i,""]:i).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return(0,np.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new nk("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
13throw t.file=e.filePath||void 0,t.url=nT+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)nw.call(e,t)&&(n[function(e){let t=e.replace(nC,nI);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?t8[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&nj.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(r,i),g=nR(r,i),nE.has(i.tagName)&&(g=g.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&tU(e.value):tU(e))})),nM(r,m,h,i),nA(m,g),r.ancestors.pop(),r.schema=f,r.create(i,h,m,l)):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return tL(n.type),e.evaluater.evaluateExpression(n.expression)}nP(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?(o=e,a=t,s=n,x=y=o.schema,"svg"===a.name&&"html"===y.space&&(o.schema=nf),o.ancestors.push(a),v=null===a.name?o.Fragment:nN(o,a.name,!0),b=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];tL(t.type);let i=t.expression;tL(i.type);let l=i.properties[0];tL(l.type),Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else nP(e,t.position);else{let i,l=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];tL(t.type),i=e.evaluater.evaluateExpression(t.expression)}else nP(e,t.position);else i=null===r.value||r.value;n[l]=i}return n}(o,a),k=nR(o,a),nM(o,b,v,a),nA(b,k),o.ancestors.pop(),o.schema=y,o.create(a,v,b,s)):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);nP(e,t.position)}(e,t):"root"===t.type?(u=e,c=t,d=n,nA(w={},nR(u,c)),u.create(c,u.Fragment,w,d)):"text"===t.type?t.value:void 0}function nM(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nA(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nR(e,t){let n=[],r=-1,i=e.passKeys?new Map:nS;for(;++r<t.children.length;){let l,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=n_(e,o,l);void 0!==a&&n.push(a)}return n}function nN(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),i=-1;for(;++i<n.length;){let t=t$(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}tL(),r=e}else r=t$(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return nw.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);nP(e)}function nP(e,t){let n=new nk("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=nT+"#cannot-handle-mdx-estrees-without-createevaluater",n}function nI(e){return"-"+e.toLowerCase()}let nD={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},nL={};function nO(e,t){let n=t||nL;return nz(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function nz(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nF(e.children,t,n)}
13return Array.isArray(e)?nF(e,t,n):""}function nF(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=nz(e[i],t,n);return r.join("")}function nB(e,t,n,r){let i,l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function n$(e,t){return e.length>0?(nB(e,e.length,0,t),e):t}let nH={}.hasOwnProperty;function nU(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(nH.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){nH.call(i,r)||(i[r]=[]);let e=l[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);nB(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let nV=n2(/[A-Za-z]/),nq=n2(/[\dA-Za-z]/),nW=n2(/[#-'*+\--9=?A-Z^-~]/);function nK(e){return null!==e&&(e<32||127===e)}let nX=n2(/\d/),nJ=n2(/[\dA-Fa-f]/),nG=n2(/[!-/:-@[-`{-~]/);function nZ(e){return null!==e&&e<-2}function nQ(e){return null!==e&&(e<0||32===e)}function nY(e){return -2===e||-1===e||32===e}let n1=n2(/\p{P}|\p{S}/u),n0=n2(/\s/);function n2(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function n4(e,t,n,r){let i=r?r-1:1/0,l=0;return function(r){return nY(r)?(e.enter(n),function r(o){return nY(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let n3={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n4(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return nZ(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},n7={tokenize:function(e){let t,n,r,i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,s,u)(t)}return u(t)}function s(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&y();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}g(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return nB(i.events,l+1,0,i.events.slice(r)),i.events.length=a,u(e)}return a(e)}function u(n){if(o===l.length){if(!t)return f(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(n5,c,d)(n)}function c(e){return t&&y(),g(o),f(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,h(e)}function f(t){return i.containerState={},e.attempt(n5,p,h)(t)}function p(e){return o++,l.push([i.currentConstruct,i.containerState]),f(e)}function h(r){if(null===r){t&&y(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return nZ(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(g(o),l=a;l<i.events.length;)i.events[l][1].end={...n},l++;nB(i.events,s+1,0,i.events.slice(a)),i.events.length=l}}function g(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},n5={tokenize:function(e,t,n){return n4(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},n6={partial:!0,tokenize:function(e,t,n){return function(t){return nY(t)?n4(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||nZ(e)?t(e):n(e)}}};
13class n9{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&n8(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),n8(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),n8(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);n8(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);n8(this.left,t.reverse())}}}function n8(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function re(e){let t,n,r,i,l,o,a,s={},u=-1,c=new n9(e);for(;++u<c.length;){for(;u in s;)u=s[u];if(t=c.get(u),u&&"chunkFlow"===t[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
13ontentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=i,h=0,m=0,g=[0];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=u.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(c,u)),u=s[u],a=!0);else if(t[1]._container){for(r=u,n=void 0;r--;)if("lineEnding"===(i=c.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(c.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...c.get(n)[1].start},(l=c.slice(n,u)).unshift(t),c.splice(n,u-n+1,l))}}return nB(e,0,1/0,c.slice(0)),!a}let rt={resolve:function(e){return re(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):nZ(t)?e.check(rn,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},rn={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n4(e,i,"linePrefix")};function i(i){if(null===i||nZ(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},rr={tokenize:function(e){let t=this,n=e.attempt(n6,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,n4(e,e.attempt(this.parser.constructs.flow,r,e.attempt(rt,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},ri={resolveAll:rs()},rl=ra("string"),ro=ra("text");function ra(e){return{resolveAll:rs("text"===e?ru:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return s(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function rs(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function ru(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,s=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}function rc(e){return null===e||nQ(e)||n0(e)?1:n1(e)?2:void 0}function rd(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let rf={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,a,s,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close){for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
13n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[c][1].start};rp(d,-a),rp(f,a),l={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[c][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=n$(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=n$(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=n$(s,rd(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=n$(s,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=n$(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,nB(e,n-1,c-n+3,s),c=n+s.length-u-2;break}}for(c=-1;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=rc(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=rc(a),c=!u||2===u&&l||r.includes(a),d=!l||2===l&&u||r.includes(i);return s._open=!!(42===n?c:c&&(l||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function rp(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let rh={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return nY(t)?n4(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(rh,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return nY(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},rm={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return nG(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},rg=document.createElement("i");function ry(e){let t="&"+e+";";rg.innerHTML=t;let n=rg.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let rx={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=nq,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=nJ,u):(e.enter("characterReferenceValue"),r=7,i=nX,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==nq||ry(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),u):n(a)}}},rv={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rb={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};
13function o(t){return e.enter("codeFencedFence"),nY(t)?n4(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),nY(i)?n4(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||nZ(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l;let u;return l=t,o=(u=i.events[i.events.length-1])&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),nY(i)?n4(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||nZ(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(rv,c,h)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nZ(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):nY(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),n4(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function u(t){return null===t||nZ(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||nZ(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(l,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&nY(t)?n4(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||nZ(t)?e.check(rv,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||nZ(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},rk={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),n4(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):nZ(n)?e.attempt(rw,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||nZ(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},rw={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):nZ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n4(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>
vendor: 8,345 bytes, line 13
13=4?t(e):nZ(e)?i(e):n(e)}}};function rS(e,t,n,r,i,l,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||nK(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||nZ(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||nQ(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,h):41===i?(e.consume(i),c--,h):null===i||32===i||40===i||nK(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function rC(e,t,n,r,i,l){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),u};function u(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):nZ(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||nZ(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!nY(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function rE(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===o?(e.exit(l),a(o)):null===t?n(t):nZ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),n4(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||nZ(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function rj(e,t){let n;return function r(i){return nZ(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):nY(i)?n4(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function rT(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let r_={partial:!0,tokenize:function(e,t,n){return function(t){return nQ(t)?rj(e,r)(t):n(t)};function r(t){return rE(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return nY(t)?n4(e,l,"whitespace")(t):l(t)}function l(e){return null===e||nZ(e)?t(e):n(e)}}},rM=["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"],rA=["pre","script","style","textarea"],rR={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(n6,t,n)}}},rN={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return nZ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},rP={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&nB(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return l=n$(l=[["enter",s,t],["enter",u,t]],e.slice(r+1,r+a+3)),l=n$(l,[["enter",c,t]]),l=n$(l,rd(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),l=n$(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=n$(l,e.slice(i+1)),l=n$(l,[["exit",s,t]]),nB(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i,l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(rT(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(rI,u,i?u:c)(t):91===t?e.attempt(rD,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(rL,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},rI={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nQ(t)?rj(e,i)(t):i(t)}function i(t){return 41===t?u(t):rS(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return nQ(t)?rj(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?rE(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return nQ(t)?rj(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},rD={tokenize:function(e,t,n){let r=this;return function(t){return rC.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(rT(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},rL={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},rO={name:"labelStartImage",resolveAll:rP.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rz={name:"labelStartLink",resolveAll:rP.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},rF={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),n4(e,t,"linePrefix")}}},rB={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var o;return e.enter("thematicBreak"),r=o=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),nY(n)?n4(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||nZ(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},r$={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(n6,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,n4(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!nY(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
13=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rU,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,n4(e,e.attempt(r$,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:nX(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(rB,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return nX(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(n6,r.interrupt?n:s,e.attempt(rH,c,u))}
13function s(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function u(t){return nY(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},rH={partial:!0,tokenize:function(e,t,n){let r=this;return n4(e,function(e){let i=r.events[r.events.length-1];return!nY(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},rU={partial:!0,tokenize:function(e,t,n){let r=this;return n4(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},rV={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),nY(n)?n4(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||nZ(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,rC.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=rT(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return nQ(t)?rj(e,a)(t):a(t)}function a(t){return rS(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(r_,u,u)(t)}function u(t){return nY(t)?n4(e,c,"whitespace")(t):c(t)}function c(l){return null===l||nZ(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},"disable",0,{null:[]},"document",0,{42:r$,43:r$,45:r$,48:r$,49:r$,50:r$,51:r$,52:r$,53:r$,54:r$,55:r$,56:r$,57:r$,62:rh},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},nB(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||nQ(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||nZ(r)?(e.exit("atxHeading"),t(r)):nY(r)?n4(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||nQ(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:rB,45:[rV,rB],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,s.interrupt?t:N):nV(o)?(e.consume(o),l=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,f):nV(i)?(e.consume(i),r=4,s.interrupt?t:N):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:N):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?s.interrupt?t:C:f:n(r)}function p(t){return nV(t)?(e.consume(t),l=String.fromCharCode(t),h):n(t)}
13function h(o){if(null===o||47===o||62===o||nQ(o)){let a=47===o,u=l.toLowerCase();return!a&&!i&&rA.includes(u)?(r=1,s.interrupt?t(o):C(o)):rM.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):C(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):i?function t(n){return nY(n)?(e.consume(n),t):w(n)}(o):g(o))}return 45===o||nq(o)?(e.consume(o),l+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:C):n(r)}function g(t){return 47===t?(e.consume(t),w):58===t||95===t||nV(t)?(e.consume(t),y):nY(t)?(e.consume(t),g):w(t)}function y(t){return 45===t||46===t||58===t||95===t||nq(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),v):nY(t)?(e.consume(t),x):g(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):nY(t)?(e.consume(t),v):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||nQ(n)?x(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,k):null===t||nZ(t)?n(t):(e.consume(t),b)}function k(e){return 47===e||62===e||nY(e)?g(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return null===t||nZ(t)?C(t):nY(t)?(e.consume(t),S):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),_):60===t&&1===r?(e.consume(t),M):62===t&&4===r?(e.consume(t),P):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),R):nZ(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(rR,I,E)(t)):null===t||nZ(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C)}function E(t){return e.check(rN,j,I)(t)}function j(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||nZ(t)?E(t):(e.enter("htmlFlowData"),C(t))}function _(t){return 45===t?(e.consume(t),N):C(t)}function M(t){return 47===t?(e.consume(t),l="",A):C(t)}function A(t){if(62===t){let n=l.toLowerCase();return rA.includes(n)?(e.consume(t),P):C(t)}return nV(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),A):C(t)}function R(t){return 93===t?(e.consume(t),N):C(t)}function N(t){return 62===t?(e.consume(t),P):45===t&&2===r?(e.consume(t),N):C(t)}function P(t){return null===t||nZ(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),P)}function I(n){return e.exit("htmlFlow"),t(n)}}},61:rV,95:rB,96:rb,126:rb},"flowInitial",0,{[-2]:rk,[-1]:rk,32:rk},"insideSpan",0,{null:[rf,ri]},"string",0,{38:rx,92:rm},"text",0,{[-5]:rF,[-4]:rF,[-3]:rF,33:rO,38:rx,42:rf,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return nV(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||nq(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||nq(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||nK(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):nW(t)?(e.consume(t),a):n(t)}function s(i){return nq(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||nq(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),b):63===t?(e.consume(t),x):nV(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):nV(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):nZ(t)?(l=c,A(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?M(e):45===e?d(e):c(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):nZ(t)?(l=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?M(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?M(t):nZ(t)?(l=y,A(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),v):nZ(t)?(l=x,A(t)):(e.consume(t),x)}function v(e){return 62===e?M(e):x(e)}function b(t){return nV(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||nq(t)?(e.consume(t),k):function t(n){return nZ(n)?(l=t,A(n)):nY(n)?(e.consume(n),t):M(n)}(t)}function w(t){return 45===t||nq(t)?(e.consume(t),w):47===t||62===t||nQ(t)?S(t):n(t)}function S(t){return 47===t?(e.consume(t),M):58===t||95===t||nV(t)?(e.consume(t),C):nZ(t)?(l=S,A(t)):nY(t)?(e.consume(t),S):M(t)}function C(t){return 45===t||46===t||58===t||95===t||nq(t)?(e.consume(t),C):function t(n){return 61===n?(e.consume(n),E):nZ(n)?(l=t,A(n)):nY(n)?(e.consume(n),t):S(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,j):nZ(t)?(l=E,A(t)):nY(t)?(e.consume(t),E):(e.consume(t),T)}function j(t){return t===r?(e.consume(t),r=void 0,_):null===t?n(t):nZ(t)?(l=j,A(t)):(e.consume(t),j)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nQ(t)?S(t):(e.consume(t),T)}function _(e){return 47===e||62===e||nQ(e)?S(e):n(e)}function M(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),R}function R(t){return nY(t)?n4(e,N,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):N(t)}function N(t){return e.enter("htmlTextData"),l(t)}}}],91:rz,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return nZ(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},rm],93:rP,95:rf,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;
13return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(s)):nZ(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||nZ(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}}],304127);var rq=e.i(304127);let rW=/[\0\t\n\r]/g;function rK(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let rX=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rJ(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return rK(n.slice(t?2:1),t?16:10)}return ry(n)||e}let rG={}.hasOwnProperty;function rZ(e){return{line:e.line,column:e.column,offset:e.offset}}function rQ(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+ny({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ny({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+ny({start:t.start,end:t.end})+") is still open")}function rY(e){let t=this;t.parser=function(n){var r,i;let l,o,a,s;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(y),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:u,htmlText:r(g,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(y),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(x,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(x),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=rK(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=ry(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=rZ(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rT(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(rX,rJ),n.identifier=rT(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=rZ(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
13ype)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=rT(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(rG.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:a,buffer:i,resume:s,data:n},u=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?u.push(c):c=function(e,t,n){let r,i,l,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||l||(l=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,l=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,u.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];rG.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},o),e[c][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||rQ).call(o,void 0,e[0])}for(r.position={start:rZ(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:rZ(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:rZ(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||rQ).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+ny({start:e.start,end:e.end})+"): it’s not open");n.position.end=rZ(e.end)}function s(){return nO(this.stack.pop())}function u(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:rZ(e.start),end:void 0},t.push(n)),this.stack.push(n)}function c(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=rZ(e.end)}function d(){this.data.atHardBreak=!0}function f(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function y(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!re(e););return e}((function(e){let t={constructs:nU([rq,...(e||{}).extensions||[]]),content:n(n3),defined:[],document:n(n7),flow:n(rr),lazy:{},string:n(rl),text:n(ro)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
13olumn:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],a=[],s={attempt:h(function(e,t){m(e,t.from)}),check:h(p),consume:function(e){nZ(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=f(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=f(),u.events.push(["exit",t,u]),t},interrupt:h(p,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:f,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":"	";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=n$(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),c=c(t)}else c=c(n)}}(),null!==o[o.length-1])?[]:(m(t,0),u.events=rd(l,u.events,u),u.events)}},c=t.tokenize.call(u,s);return t.resolveAll&&l.push(t),u;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function h(e,t){return function(n,i,l){var o;let c,d,p,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(c=e,d=0,0===e.length)?l:y(e[d])}function y(e){return function(n){let i,l,o,c,d;return(i=f(),l=u.previous,o=u.currentConstruct,c=u.events.length,d=Array.from(a),h={from:c,restore:function(){r=i,u.previous=l,u.currentConstruct=o,u.events.length=c,a=d,g()}},p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?v(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,s,x,v)(n)}}function x(t){return e(p,h),i}function v(e){return(h.restore(),++d<c.length)?y(c[d]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&nB(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((o=1,a="",s=!0,function(e,t,n){let r,i,u,c,d,f=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),u=0,a="",s&&(65279===e.charCodeAt(0)&&u++,s=void 0);u<e.length;){if(rW.lastIndex=u,c=(r=rW.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(c),!r){a=e.slice(u);break}if(10===d&&u===c&&l)f.push(-3),l=void 0;else switch(l&&(f.push(-5),l=void 0),u<c&&(f.push(e.slice(u,c)),o+=c-u),d){case 0:f.push(65533),o++;break;case 9:for(i=4*Math.ceil(o/4),f.push(-2);o++<i;)f.push(-1);break;case 10:f.push(-4),o=1;break;default:l=!0,o=1}u=c+1}return n&&(l&&f.push(-5),a&&f.push(a),f.push(null)),f})(n,r,!0))))}}let r1="object"==typeof self?self:globalThis,r0=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[l,o]=e[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new r1[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new r1[l](o),i)})(0)},{toString:r2}={},{keys:r4}=Object,r3=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=r2.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},r7=([e,t])=>0===e&&("function"===t||"symbol"===t),r5=(e,{json:t,lossy:n}={})=>{var r,i,l;let o,a,s=[];return(r=!(t||n),i=!!t,l=new Map,o=(e,t)=>{let n=s.push(e)-1;return l.set(t,n),n},a=e=>{if(l.has(e))return l.get(e);let[t,n]=r3(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return o([-1],e)}return o([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),o([n,[...t]],e)}let r=[],i=o([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return o([n,e.toString()],e);case"Boolean":case"Number":case"String":return o([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let l=[],s=o([t,l],e);for(let t of r4(e))(r||!r7(r3(e[t])))&&l.push([a(t),a(e[t])]);return s}case 3:return o([t,e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return o([t,{source:n,flags:r}],e)}case 5:{let n=[],i=o([t,n],e);for(let[t,i]of e)(r||!(r7(r3(t))||r7(r3(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=o([t,n],e);for(let t of e)(r||!r7(r3(t)))&&n.push(a(t));return i}}let{message:s}=e;return o([t,{name:n,message:s}],e)})(e),s}
13,r6="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?r0(r5(e,t)):structuredClone(e):(e,t)=>r0(r5(e,t));function r9(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&nq(e.charCodeAt(n+1))&&nq(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function r8(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ie(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let it=function(e){var t,n;if(null==e)return ii;if("function"==typeof e)return ir(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=it(e[n]);return ir(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,ir(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,ir(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function ir(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ii(){return!0}let il=[];function io(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=it(i),o=r?-1:1;(function e(i,a,s){let u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){let e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return c;function c(){var u;let c,d,f,p=il;if((!t||l(i,a,s[s.length-1]||void 0))&&!1===(p=Array.isArray(u=n(i,s))?u:"number"==typeof u?[!0,u]:null==u?il:[u])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+o,f=s.concat(i);d>-1&&d<i.children.length;){if(!1===(c=e(i.children[d],d,f)())[0])return c;d="number"==typeof c[1]?c[1]:d+o}return p}})(e,void 0,[])()}function ia(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),io(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function is(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function iu(e){let t=e.spread;return null==t?e.children.length>1:t}function ic(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let id={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
13,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=r9(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return is(e,t);let i={src:r9(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:r9(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return is(e,t);let i={href:r9(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:r9(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=iu(n[r])}return t}(n):iu(t),l={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=nm(t.children[1]),o=nh(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{}
13,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(ic(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(ic(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ip,yaml:ip,definition:ip,footnoteDefinition:ip};function ip(){}let ih={}.hasOwnProperty,im={};function ig(e,t){e.position&&(t.position=function(e){let t=nm(e),n=nh(e);if(t&&n)return{start:t,end:n}}(e))}function iy(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,r6(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ix(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function iv(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ib(e,t){let n,r,i,l,o=(n=t||im,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=iv(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=iv(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:iy,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...id,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(ih.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=r6(n);return r.children=l.all(e),r}return r6(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(ih.call(n,"hProperties")||ih.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:ig,wrap:ix},ia(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l),a=o.one(e,void 0),s=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||r8,r=e.options.footnoteBackLabel||ie,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),u=r9(o.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(o);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(l,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...r6(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
13,{type:"text",value:"\n"}]}}(o),u=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return s&&(tL(),u.children.push({type:"text",value:"\n"},s)),u}function ik(e,t){return e&&"run"in e?async function(n,r){let i=ib(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ib(n,{file:r,...e||t})}}function iw(e){if(e)throw e}var iS=e.i(104100);function iC(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let iE=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');iM(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},ij=function(e){let t;if(iM(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},iT=function(e){let t;iM(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},i_=function(...e){var t;let n,r,i,l=-1;for(;++l<e.length;)iM(e[l]),e[l]&&(i=void 0===i?e[l]:i+"/"+e[l]);return void 0===i?".":(iM(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",l=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(i.length>0){i="",l=0,o=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),l=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function iM(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function iA(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let iR=["history","path","basename","stem","extname","dirname"];class iN{constructor(e){let t,n;t=e?iA(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<iR.length;){const e=iR[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)iR.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?iE(this.path):void 0}set basename(e){iI(e,"basename"),iP(e,"basename"),this.path=i_(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ij(this.path):void 0}set dirname(e){iD(this.basename,"dirname"),this.path=i_(e||"",this.basename)}get extname(){return"string"==typeof this.path?iT(this.path):void 0}set extname(e){if(iP(e,"extname"),iD(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=i_(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){iA(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!iA(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),iI(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?iE(this.path,this.extname):void 0}
13set stem(e){iI(e,"stem"),iP(e,"stem"),this.path=i_(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new nk(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function iP(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function iI(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function iD(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let iL=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},iO={}.hasOwnProperty,iz=new class e extends iL{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...o){let a=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let l,o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,iS.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(i$("data",this.frozen),this.namespace[e]=t,this):iO.call(this.namespace,e)&&this.namespace[e]||void 0:e?(i$("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=iV(e),n=this.parser||this.Parser;return iF("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),iF("process",this.parser||this.Parser),iB("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=iV(e),o=n.parse(l);function a(e,n){e||!n?i(e):r?r(n):(tL(),t(void 0,n))}n.run(o,l,function(e,t,r){var i,l;if(e||!t||!r)return a(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),iF("processSync",this.parser||this.Parser),iB("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,iw(e),t=r}),iU("processSync","process",n),tL(),t}run(e,t,n){iH(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){tL();let o=iV(t);r.run(e,o,function(t,r,o){let a=r||e;t?l(t):i?i(a):(tL(),n(void 0,a,o))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){iw(e),n=t,r=!0}),iU("runSync","run",r),tL(),n}stringify(e,t){this.freeze();let n=iV(t),r=this.compiler||this.Compiler;return iB("stringify",r),iH(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(i$("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=(0,iS.default)(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];iC(o)&&iC(r)&&(r=(0,iS.default)(!0,o,r)),n[i]=[e,r,...l]}}}}().freeze();function iF(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function iB(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function i$(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iH(e){if(!iC(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function iU(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function iV(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new iN(e)}let iq=[],iW={allowDangerousHtml:!0},iK=/^(https?|ircs?|mailto|xmpp)$/i,iX=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function iJ(e){var t;let n,r,i,l,o,a=(n=(t=e).rehypePlugins||iq,r=t.remarkPlugins||iq,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...iW}:iW,iz().use(rY).use(r).use(ik,i).use(n)),s=(l=e.children||"",o=new iN,"string"==typeof l?o.value=l:tO(),o);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||iG;for(let e of iX)Object.hasOwn(t,e.from)&&tO((e.from,e.to&&e.to,e.id));return n&&l&&tO(),ia(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return o?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in nD)if(Object.hasOwn(nD,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=nD[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=s(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!l&&l.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,i)),o&&i&&"number"==typeof t)return a&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=nm(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
13if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?nf:nd,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=n_(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:p.Fragment,components:i,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0})}(a.runSync(a.parse(s),s),e)}function iG(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||iK.test(e.slice(0,t))?e:""}function iZ(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let iQ="phrasing",iY=["autolink","link","image","label"];function i1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function i0(e){this.config.enter.autolinkProtocol.call(this,e)}function i2(e){this.config.exit.autolinkProtocol.call(this,e)}function i4(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];tL(t.type),t.url="http://"+this.sliceSerialize(e)}function i3(e){this.config.exit.autolinkEmail.call(this,e)}function i7(e){this.exit(e)}function i5(e){!function(e,t,n){let r=it((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)io(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],a=0,s=n.children.indexOf(e),u=!1,c=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(a!==n&&c.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?c.push(...l):l&&c.push(l),a=n+d[0].length,u=!0),!r.global)break;d=r.exec(e.value)}return u?(a<e.value.length&&c.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...c)):c=[e],s+c.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,i6],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,i9]],{ignore:["link","linkReference"]})}function i6(e,t,n,r,i){let l,o="";if(!i8(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),(l=n.split(".")).length<2||l[l.length-1]&&(/_/.test(l[l.length-1])||!/[a-zA-Z\d]/.test(l[l.length-1]))||l[l.length-2]&&(/_/.test(l[l.length-2])||!/[a-zA-Z\d]/.test(l[l.length-2])))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=iZ(e,"("),l=iZ(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!a[0])return!1;let s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function i9(e,t,n,r){return!(!i8(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function i8(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||n0(n)||n1(n))&&(!t||47!==n)}function le(){this.buffer()}function lt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ln(){this.buffer()}function lr(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function li(e){let t=this.resume(),n=this.stack[this.stack.length-1];tL(n.type),n.identifier=rT(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ll(e){this.exit(e)}function lo(e){let t=this.resume(),n=this.stack[this.stack.length-1];tL(n.type),n.identifier=rT(this.sliceSerialize(e)).toLowerCase(),n.label=t}function la(e){this.exit(e)}function ls(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]")}
13function lu(e,t,n){return 0===t?e:lc(e,t,n)}function lc(e,t,n){return(n?"":"    ")+e}ls.peek=function(){return"["};let ld=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function lf(e){this.enter({type:"delete",children:[]},e)}function lp(e){this.exit(e)}function lh(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function lm(e){return e.length}function lg(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}lh.peek=function(){return"~"};function ly(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}ly.peek=function(){return"`"};it(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let lx=function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return s(),u};function lv(e){let t=e._align;tL(),this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function lb(e){this.exit(e),this.data.inTable=void 0}function lk(e){this.enter({type:"tableRow",children:[]},e)}function lw(e){this.exit(e)}function lS(e){this.enter({type:"tableCell",children:[]},e)}function lC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,lE));let n=this.stack[this.stack.length-1];tL(n.type),n.value=t,this.exit(e)}function lE(e,t){return"|"===t?t:e}function lj(e){let t=this.stack[this.stack.length-2];tL(t.type),t.checked="taskListCheckValueChecked"===e.type}function lT(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];tL(e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function l_(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=lx(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),s}let lM={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},lA={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(lN,s,a)(t):null===t||nQ(t)||n0(t)||45!==t&&n1(t)?s(t):(l=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},lR={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(lN,t,l)(o):null===o||nQ(o)||n0(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},lN={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||nQ(o)||n0(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||nQ(e)||n0(e)?t(e):r(e)}function l(t){return nV(t)?function t(i){return 59===i?(e.consume(i),r):nV(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},lP={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return nq(e)?n(e):t(e)}},partial:!0},lI={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!lF.call(r,r.previous)||lU(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(lM,e.attempt(lA,e.attempt(lR,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:lF},lD={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&lB.call(r,r.previous)&&!lU(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(nV(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),l)?s:(l=!0,a):n(t)}function s(t){return null===t||nK(t)||nQ(t)||n0(t)||n1(t)?n(t):e.attempt(lA,e.attempt(lR,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:lB},lL={name:"emailAutolink",tokenize:function(e,t,n){let r,i,l=this;return function(t){return!lH(t)||!l$.call(l,l.previous)||lU(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return lH(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(lP,s,a)(t):45===t||95===t||nq(t)?(i=!0,e.consume(t),o):s(t)}function a(t){return e.consume(t),r=!0,o}function s(o){return i&&r&&nV(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:l$},lO={},lz=48;for(;lz<123;)lO[lz]=lL,58==++lz?lz=65:91===lz&&(lz=97);function lF(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nQ(e)}function lB(e){return!nV(e)}function l$(e){return!(47===e||lH(e))}function lH(e){return 43===e||45===e||46===e||95===e||nq(e)}function lU(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}lO[43]=lL,lO[45]=lL,lO[46]=lL,lO[95]=lL,lO[72]=[lL,lD],lO[104]=[lL,lD],lO[87]=[lL,lI],lO[119]=[lL,lI];let lV={tokenize:function(e,t,n){let r=this;return n4(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function lq(e,t,n){let r,i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=rT(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function lW(e,t){let n=e.length;for(;n--;
13)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let 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++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function lK(e,t,n){let r,i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(o>999||93===a&&!r||null===a||91===a||nQ(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(rT(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return nQ(a)||(r=!0),o++,e.consume(a),92===a?u:s}function u(t){return 91===t||92===t||93===t?(e.consume(t),o++,s):s(t)}}function lX(e,t,n){let r,i,l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!i||null===t||91===t||nQ(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=rT(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nQ(t)||(i=!0),a++,e.consume(t),92===t?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),n4(e,f,"gfmFootnoteDefinitionWhitespace")):n(t)}function f(e){return t(e)}}function lJ(e,t,n){return e.check(n6,t,e.attempt(lV,t,n))}function lG(e){e.exit("gfmFootnoteDefinition")}class lZ{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function lQ(e,t,n){let r,i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?x:a;return l===x&&i.parser.lazy[i.now().line]?n(e):l(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,o+=1),s(n)}function s(t){return null===t?n(t):nZ(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):nY(t)?n4(e,s,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),u(t))}function u(t){return null===t||124===t||nQ(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return 92===t||124===t?(e.consume(t),u):u(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,nY(t))?n4(e,f,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):f(t)}
13function f(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return nY(t)?n4(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||nZ(t)?y(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return nY(t)?n4(e,y,"whitespace")(t):y(t)}function y(i){if(124===i)return f(i);if(null===i||nZ(i))return r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function x(t){return e.enter("tableRow"),v(t)}function v(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),v):null===n||nZ(n)?(e.exit("tableRow"),t(n)):nY(n)?n4(e,v,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||nQ(t)?(e.exit("data"),v(t)):(e.consume(t),92===t?k:b)}function k(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function lY(e,t){let n,r,i,l=-1,o=!0,a=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,f=new lZ;for(;++l<e.length;){let p=e[l],h=p[1];"enter"===p[0]?"tableHead"===h.type?(c=!1,0!==d&&(l0(f,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(o=!0,i=void 0,s=[0,0,0,0],u=[0,l+1,0,0],c&&(c=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},f.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(o=!1,0===u[2]&&(0!==s[1]&&(u[0]=u[1],i=l1(f,t,s,a,void 0,i),s=[0,0,0,0]),u[2]=l)):"tableCellDivider"===h.type&&(o?o=!1:(0!==s[1]&&(u[0]=u[1],i=l1(f,t,s,a,void 0,i)),u=[(s=u)[1],l,0,0])):"tableHead"===h.type?(c=!0,d=l):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=l,0!==s[1]?(u[0]=u[1],i=l1(f,t,s,a,l,i)):0!==u[1]&&(i=l1(f,t,u,a,l,i)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(u[3]=l)}for(0!==d&&l0(f,t,d,n,r),f.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function l1(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},l2(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=l2(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=l2(t.events,n[2]),l=l2(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},l2(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function l0(e,t,n,r,i){let l=[],o=l2(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function l2(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let l4={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return nQ(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return nZ(r)?t(r):nY(r)?e.check({tokenize:l3},t,n)(r):n(r)}}};function l3(e,t,n){return n4(e,function(e){return null===e?n(e):t(e)},"whitespace")}let l7={};function l5(e){let t,n,r,i=e||l7,l=this.data(),o=l.micromarkExtensions||(l.micromarkExtensions=[]),a=l.fromMarkdownExtensions||(l.fromMarkdownExtensions=[]),s=l.toMarkdownExtensions||(l.toMarkdownExtensions=[]);o.push(nU([{text:lO},{document:{91:{name:"gfmFootnoteDefinition",tokenize:lX,continuation:{tokenize:lJ},exit:lG}},text:{91:{name:"gfmFootnoteCall",tokenize:lK},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:lq,resolveTo:lW}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let s=rc(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=rc(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}
13(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&nB(o,o.length,0,rd(a,e.slice(r+1,n),t)),nB(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),nB(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:lQ,resolveAll:lY}}},{text:{91:l4}}])),a.push([{transforms:[i5],enter:{literalAutolink:i1,literalAutolinkEmail:i0,literalAutolinkHttp:i0,literalAutolinkWww:i0},exit:{literalAutolink:i7,literalAutolinkEmail:i3,literalAutolinkHttp:i2,literalAutolinkWww:i4}},{enter:{gfmFootnoteCallString:le,gfmFootnoteCall:lt,gfmFootnoteDefinitionLabelString:ln,gfmFootnoteDefinition:lr},exit:{gfmFootnoteCallString:li,gfmFootnoteCall:ll,gfmFootnoteDefinitionLabelString:lo,gfmFootnoteDefinition:la}},{canContainEols:["delete"],enter:{strikethrough:lf},exit:{strikethrough:lp}},{enter:{table:lv,tableData:lS,tableHeader:lS,tableRow:lk},exit:{codeText:lC,table:lb,tableData:lw,tableHeader:lw,tableRow:lw}},{exit:{taskListCheckValueChecked:lj,taskListCheckValueUnchecked:lj,paragraph:lT}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:iQ,notInConstruct:iY},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:iQ,notInConstruct:iY},{character:":",before:"[ps]",after:"\\/",inConstruct:iQ,notInConstruct:iY}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let l=n.createTracker(i),o=l.move("[^"),a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=l.move(n.safe(n.associationId(e),{before:o,after:"]"})),s(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,l.current()),r?lc:lu))),a(),o},footnoteReference:ls},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ld}],handlers:{delete:lh}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=ly(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=a([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||lm,l=[],o=[],a=[],s=[],u=0,c=-1;for(;++c<e.length;){let t=[],r=[],l=-1;for(e[c].length>u&&(u=e[c].length);++l<e[c].length;){var d;let o=null==(d=e[c][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(o)}o[c]=t,a[c]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)l[f]=lg(r[f]);else{let e=lg(r);for(;++f<u;)l[f]=e}f=-1;let p=[],h=[];for(;++f<u;){let e=l[f],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[f]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[f]&&(s[f]=i),h[f]=i),p[f]=o}o.splice(1,0,p),a.splice(1,0,h),c=-1;let m=[];for(;++c<o.length;){let e=o[c],t=a[c];f=-1;let r=[];for(;++f<u;){let i=e[f]||"",o="",a="";if(!1!==n.alignDelimiters){let e=s[f]-(t[f]||0),n=l[f];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=o=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||f)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||f!==u-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return a(),l}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:l_}}]})}
13let l6=(0,tb.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);var l9=e.i(822315),l8=e.i(472856);let oe=(0,tb.default)("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]),ot=({isGuardRailed:e})=>{let[t,n]=(0,x.useState)(!1),r=(0,x.useRef)(null),i=(0,x.useRef)(null);return(0,x.useEffect)(()=>{if(!t)return;let e=e=>{let t=e.target;r.current&&!r.current.contains(t)&&i.current&&!i.current.contains(t)&&n(!1)},l=setTimeout(()=>{document.addEventListener("click",e)},0);return()=>{clearTimeout(l),document.removeEventListener("click",e)}},[t]),(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsxs)(tf.motion.button,{ref:i,className:`flex cursor-pointer items-center gap-2 rounded-full bg-red-50 px-3 py-1 text-sm text-red-700 transition-all duration-200 ease-in-out hover:scale-105 hover:bg-red-100 active:scale-95 ${e?"visible":"invisible"} `,initial:{opacity:0}
13,animate:{opacity:1},transition:{duration:.3,ease:"easeOut"},onClick:()=>{n(!t)},children:[(0,p.jsx)(oe,{size:20,strokeWidth:1.5,stroke:"#E7131A"}),"Guarded by Scale AI"]}),(0,p.jsx)(td.AnimatePresence,{children:t&&(0,p.jsxs)(tf.motion.div,{ref:r,className:"absolute bottom-full left-0 z-50 mb-2 w-[400px] gap-1 rounded-lg border border-gray-200 bg-white p-4 shadow-lg",initial:{opacity:0,y:-10,scale:.8},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.8},transition:{duration:.2,ease:"easeOut"},children:[(0,p.jsx)("h3",{className:"text-base font-semibold text-gray-900",children:"AI Safety Guardrail"}),(0,p.jsx)("div",{className:"text-xs leading-relaxed text-gray-600",children:"This message triggered Scale's AI safety guardrail system. These guardrails help enterprises maintain content quality while protecting against business risks in AI interactions."}),(0,p.jsx)(tf.motion.a,{href:"https://scale.com/enterprise/generative-ai-solutions",target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-red-600 hover:text-red-700 hover:underline",children:"Learn more about Scale AI"})]})})]})};l9.default.extend(l8.default);let on=({copyToClipboard:e,isGuardRailed:t})=>{let[n,r]=(0,x.useState)(!1),[i,l]=(0,x.useState)(!1),o=(0,x.useRef)(null),a=(0,x.useRef)(null);(0,x.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&a.current&&!a.current.contains(e.target)&&r(!1)};return n&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[n]);let s=(0,x.useCallback)(()=>{e(),l(!0);let t=setTimeout(()=>l(!1),2e3);return()=>clearTimeout(t)},[e]);return(0,p.jsx)(tf.motion.div,{className:"relative mb-4 flex w-full flex-col items-start",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:1},children:(0,p.jsxs)(tf.motion.div,{className:"flex w-full flex-row items-center justify-between",children:[(0,p.jsx)(ot,{isGuardRailed:t}),!t&&(0,p.jsxs)("div",{className:"relative flex items-center",children:[(0,p.jsx)(tg,{icon:(0,p.jsx)(l6,{size:20}),onClick:s}),(0,p.jsx)(td.AnimatePresence,{children:i&&(0,p.jsx)(tf.motion.div,{className:"absolute -left-16 rounded-md border border-gray-200 px-2 py-1 text-xs",initial:{opacity:0,x:10,scale:.8},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:10,scale:.8},transition:{duration:.2,ease:"easeOut"},children:"Copied!"})})]})]})})};var or=e.i(815316);let oi="rich-text self-baseline font-graphik text-black-coffee focus-visible:outline focus-visible:outline-black-coffee focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:shadow-focus-color text-left",ol={h1:({children:e,...t})=>(0,p.jsx)("h1",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-4 text-2xl font-bold",oi),children:e}),h2:({children:e,...t})=>(0,p.jsx)("h2",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-3 text-xl font-semibold",oi),children:e}),h3:({children:e,...t})=>(0,p.jsx)("h3",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-2 text-lg font-medium",oi),children:e}),p:({children:e,...t})=>(0,p.jsx)("p",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-4 leading-relaxed text-gray-800",oi),children:e}),ul:({children:e,...t})=>(0,p.jsx)("ul",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-2 ml-4 list-outside list-disc space-y-1",oi),children:e}),ol:({children:e,...t})=>(0,p.jsx)("ol",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-4 ml-6 list-outside list-decimal space-y-1",oi),children:e}),li:({children:e,...t})=>(0,p.jsx)("li",{...function({node:e,className:t,...n}){return n}(t),className:"mb-2 pl-2",children:e}),blockquote:({children:e,...t})=>(0,p.jsx)("blockquote",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("mb-4 border-l-4 border-gray-500 pl-4 italic",oi),children:e}),code:({children:e,...t})=>(0,p.jsx)("code",{...function({node:e,className:t,...n}){return n}(t),className:"rounded bg-gray-100 px-1 py-0.5 font-mono text-sm",children:e}),pre:({children:e,...t})=>(0,p.jsx)("pre",{...function({node:e,className:t,...n}){return n}
13(t),className:(0,or.cn)("mb-4 overflow-x-auto rounded-lg bg-gray-900 p-4",oi),children:e}),a:({children:e,href:t,...n})=>(0,p.jsx)("a",{...function({node:e,className:t,...n}){return n}(n),href:t,className:(0,or.cn)("text-black underline hover:text-black/80",oi),target:"_blank",rel:"noopener noreferrer",children:e}),strong:({children:e,...t})=>(0,p.jsx)("strong",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("font-semibold",oi),children:e}),em:({children:e,...t})=>(0,p.jsx)("em",{...function({node:e,className:t,...n}){return n}(t),className:(0,or.cn)("italic",oi),children:e})},oo=({content:e,showFooter:t=!1})=>{let n=(0,S.usePathname)(),r="I'm specifically designed to help you explore TIME magazine content. I can help you search for articles, summarize TIME stories, translate TIME content, or generate podcasts based on TIME articles. Please ask me something related to TIME magazine content!"===e,i=async()=>{await navigator.clipboard.writeText(e),(0,A.sendGTMEvent)({event:R.eventName.INTERNAL_CLICK,componentType:R.componentType.scaleAgentExperience,clickText:e,pagePath:n})};return(0,p.jsxs)("div",{className:"relative w-full",children:[(0,p.jsx)(iJ,{remarkPlugins:[l5],components:ol,children:e}),t&&(0,p.jsx)(on,{copyToClipboard:i,isGuardRailed:r})]})},oa=(0,tb.default)("brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]),os=(0,tb.default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ou=(0,tb.default)("audio-lines",[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]]),oc=(0,tb.default)("cloud-download",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]),od=(0,tb.default)("file-search",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]),of={get_articles:oc,contextual_search:od,metadata_filter_search:od,generate_podcast:(0,tb.default)("podcast",[["path",{d:"M16.85 18.58a9 9 0 1 0-9.7 0",key:"d71mpg"}],["path",{d:"M8 14a5 5 0 1 1 8 0",key:"fc81rn"}],["circle",{cx:"12",cy:"11",r:"1",key:"1gvufo"}],["path",{d:"M13 17a1 1 0 1 0-2 0l.5 4.5a.5.5 0 1 0 1 0Z",key:"za5kbj"}]]),audio_generation:ou},op={get_articles:"Getting articles",contextual_search:"Searching TIME's archive",metadata_filter_search:"Searching TIME's archive",generate_podcast:"Generating a bespoke podcast",audio_generation:"Generating audio"},oh={get_articles:()=>"Fetched TIME article content",contextual_search:e=>{try{let t=JSON.parse(e.content);return`Discovered ${Math.max(t.length,0)} relevant TIME articles`}catch{return"Discovered articles from TIME's archive"}},metadata_filter_search:e=>{try{let t=JSON.parse(e.content);return`Discovered ${Math.max(t.length,0)} relevant TIME articles`}catch{return"Discovered articles from TIME's archive"}},generate_podcast:()=>"Generated a bespoke podcast for you",audio_generation:()=>"Generated audio"},om=({className:e,fill:t="#EF4444"})=>(0,p.jsxs)("svg",{width:"8",height:"9",viewBox:"0 0 8 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,p.jsx)("title",{children:"TIME AI Star"}),(0,p.jsx)("path",{d:"M3.8757 8.13055C3.80268 8.13055 3.74236 8.07023 3.74236 7.9972C3.74236 6.14302 2.23424 4.63332 0.37847 4.63332C0.305446 4.63332 0.245117 4.57299 0.245117 4.49997C0.245117 4.42694 0.305446 4.36662 0.37847 4.36662C2.23266 4.36662 3.74236 2.85692 3.74236 1.00273C3.74236 0.929709 3.80268 
130.869385 3.8757 0.869385C3.94873 0.869385 4.00905 0.929709 4.00905 1.00273C4.00905 2.85692 5.51876 4.36662 7.37294 4.36662C7.44597 4.36662 7.5063 4.42694 7.5063 4.49997C7.5063 4.57299 7.44597 4.63332 7.37294 4.63332C5.51876 4.63332 4.00905 6.14143 4.00905 7.9972C4.00905 8.07182 3.94873 8.13055 3.8757 8.13055Z",fill:t})]});function og(e){return"object"==typeof e&&null!==e&&"audio_url"in e&&"string"==typeof e.audio_url&&"string"==typeof e.title}function oy(e){return"string"==typeof e}let ox=({text:e,enableGlow:t=!0})=>{let n=[...e];return(0,p.jsx)("div",{className:"relative",children:n.map((e,r)=>(0,p.jsx)(tf.motion.span,{animate:t?{color:["rgb(55 65 81)","rgb(220, 220, 220)","rgb(55 65 81)"]}:void 0,transition:t?{delay:.02*r,duration:.5,repeat:1/0,repeatDelay:.02*n.length+.1,ease:"easeInOut"}:void 0,style:t?void 0:{color:"rgb(55 65 81)"},children:e},r))})},ov=({options:e,rotateInterval:t=5e3,disabled:n=!1,className:r=""})=>{let[i,l]=(0,x.useState)(0);return(0,x.useEffect)(()=>{if(n||e.length<=1)return;let r=setInterval(()=>{l(t=>(t+1)%e.length)},t);return()=>clearInterval(r)},[n,e.length,t]),(0,p.jsx)("div",{className:`overflow-hidden ${r}`,children:(0,p.jsx)(td.AnimatePresence,{mode:"wait",children:(0,p.jsx)(tf.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"truncate",children:e[i]},i)})})},ob=["Processing context and requirements","Planning audio segments","Rendering audio","Running quality checks"],ok=({estimatedTime:e=70})=>{let[t,n]=(0,x.useState)(e);return(0,x.useEffect)(()=>{if(!(t>0))return;let e=setTimeout(()=>{n(t-1)},1e3);return()=>clearTimeout(e)},[t]),(0,p.jsxs)(tf.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},className:"absolute inset-0 flex items-center rounded-md p-4",children:[(0,p.jsx)(tf.motion.div,{className:"mr-2",animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",delay:1.5,type:"spring",stiffness:50,mass:1.5},children:(0,p.jsx)(om,{className:"size-[24px]",fill:"#d1d5db"})}),(0,p.jsxs)("div",{className:"flex flex-col",children:[(0,p.jsx)(ov,{options:ob,rotateInterval:1e4,disabled:!1,className:"text-sm text-gray-700"}),(0,p.jsxs)("span",{className:"mt-1 font-graphik-compact text-xs text-gray-500",children:["About ",t," seconds remaining"]})]}),(0,p.jsx)("div",{className:"absolute bottom-0 left-0 h-1 w-full overflow-hidden rounded-b-md bg-gray-200",children:(0,p.jsx)(tf.motion.div,{className:"h-full bg-brand-red",initial:{width:"0%"},animate:{width:"90%"},exit:{width:"100%"},transition:{duration:e,ease:"linear"}})})]})};var ow=e.i(778497);let oS=({title:e,className:t,src:n})=>{let[r,i]=(0,x.useState)(0),[l,o]=(0,x.useState)(0),[a,s]=(0,x.useState)(!0),u=(0,x.useRef)(null),c=(0,x.useRef)(null),{activePodcastRef:d,setActivePodcastRef:f,activePodcastTitle:h,setActivePodcastTitle:m,setActivePodcastCurrentTime:g,setIsActivePodcastInView:y}=z(),v=h===e;(0,x.useEffect)(()=>{let e=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting?v&&y(!0):v&&y(!1)},{threshold:.1,rootMargin:"0px"});c.current&&e.observe(c.current);let t=c.current;return()=>{t&&e.unobserve(t)}},[d,v,y,f,n]),(0,x.useEffect)(()=>{v||!u.current||u.current.paused||u.current.pause()},[v]),(0,x.useEffect)(()=>{let e=u.current;if(e){let t=()=>{v&&f(null)};return e.addEventListener("ended",t),()=>e.removeEventListener("ended",t)}},[v,f]);let b=async()=>{if(u.current)try{u.current&&!u.current.paused?(u.current.pause(),s(!0),f(null),m("")):u.current&&u.current.paused&&(await u.current.play(),s(!1),f(u),y(!0),m(e||""))}catch(t){(0,ow.logWarn)({message:"[AgentPodcastPlayer]: audio.play() rejected",error:t,context:{title:e,src:n}})}},k=!n||!e;return(0,p.jsx)(tf.motion.div,{ref:c,initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:`relative h-[100px] max-w-[450px] rounded-md border border-gray-300 bg-white backdrop-blur-md ${t}`,children:(0,p.jsx)(td.AnimatePresence,{children:k?(0,p.jsx)(ok,{},"ghost-player"):(0,p.jsxs)(tf.motion.div,{initial:{opacity:0,x:10},animate:{opacity:1,x:0},exit:{opacity:0,x:10},className:"absolute inset-0",children:[(0,p.jsx)("audio",{ref:u,src:n,onTimeUpdate:()=>{u.current&&(i(u.current.currentTime),v&&d&&g(u.current.currentTime))},onLoadedMetadata:()=>{u.current&&o(u.current.duration)},preload:"metadata"}),(0,p.jsxs)("div",{className:"relative flex h-full items-center gap-4 p-4",children:[(0,p.jsx)(tg,{icon:a?(0,p.jsx)(th.Play,{size:24,fill:"#EF4444",stroke:"#EF4444"}):(0,p.jsx)(tp.Pause,{size:24,fill:"#EF4444",stroke:"#EF4444"}),onClick:()=>void b()}),(0,p.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,p.jsx)("h3",{className:"mb-2 truncate font-graphik-compact",children:e}),(0,p.jsx)(oC,{currentTime:r,duration:l,handleSliderValueChange:e=>{if(!(u.current&&l>0))return;let t=e[0];u.current.currentTime=t,i(t),v&&d&&g(t)},audioRef:u})]})]})]},"podcast-player")})})},oC=({currentTime:e,duration:t,handleSliderValueChange:n,audioRef:r})=>(0,p.jsxs)("div",{className:"mt-1 flex-1",children:[(0,p.jsxs)(eK,{className:"relative flex h-2 w-full touch-none select-none items-center",value:[e],max:t||100,step:.1,onValueChange:n,children:[(0,p.jsx)(eY,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-gray-200",children:(0,p.jsx)(e0,{className:"absolute h-full bg-red-500"})}),e>0&&(0,p.jsx)(e6,{className:"block size-4 rounded-full bg-red-500 shadow-md transition-transform hover:scale-110 focus:outline-none"})]}),(0,p.jsxs)("div",{className:"mt-2 flex justify-between text-xs text-gray-400",children:[(0,p.jsx)("span",{children:`${tv(e)} / ${tv(t)}`}),(0,p.jsx)(tx,{audioRef:r})]})]}),oE=({toolMessages:e,isComplete:t,thinkingTime:n})=>{let[r,i]=(0,x.useState)(!0),l=(0,S.usePathname)();(0,x.useEffect)(()=>{t&&queueMicrotask(()=>{i(!1)})},[t]);let o=e.filter(e=>"tool_request"===e.type&&("generate_podcast"===e.name||"audio_generation"===e.name));return(0,p.jsxs)("div",{className:"flex flex-col py-1 pl-2",children:[(0,p.jsxs)(tf.motion.div,{className:"mb-1 flex items-center text-sm text-gray-800",initial:{opacity:0,x:-10}
13,animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeInOut",y:{duration:.3},opacity:{duration:.2}},children:[(0,p.jsx)(tf.motion.div,{className:"mr-2",animate:t?void 0:{rotate:360},initial:!t&&void 0,transition:t?void 0:{repeat:1/0,repeatType:"loop",delay:1.5,type:"spring",stiffness:50,mass:1.5},children:(0,p.jsx)(om,{className:"size-[16px]"})}),(0,p.jsx)("span",{className:"font-graphik-compact text-sm  text-gray-800",children:t&&n?`Thought for ${n} seconds`:"Thinking about your request"}),!t&&(0,p.jsx)(oM,{}),t&&e.length>0&&(0,p.jsx)(tf.motion.button,{className:"ml-1",animate:{scaleY:r?-1:1},transition:{duration:.3,ease:"easeInOut"},onClick:()=>{i(!r),(0,A.sendGTMEvent)({event:R.eventName.INTERNAL_CLICK,componentType:R.componentType.scaleAgentExperience,clickText:r?"thoughtProcessClose":"thoughtProcessOpen",pagePath:l})},children:(0,p.jsx)(os,{size:12})})]}),(0,p.jsx)(td.AnimatePresence,{children:r&&(0,p.jsx)(tf.motion.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.3,ease:"easeInOut",height:{duration:.3},opacity:{duration:.2}},className:"flex flex-col gap-1 overflow-hidden",children:e.map((n,r)=>{if("tool_request"===n.type){let t=e.find(e=>"tool_response"===e.type&&e.tool_call_id===n.tool_call_id)??null;return(0,p.jsx)(oT,{toolMessage:n,response:t||null,index:r},r)}if("reasoning"===n.type&&n.summary.length>0){let i=r!==e.length-1||t;return(0,p.jsx)(oj,{reasoningMessage:n.summary[0],isDoneReasoning:i,index:r},r)}return null})})}),(0,p.jsx)("div",{className:"mt-2 flex flex-col gap-2",children:o.map((t,n)=>{let r,i=e.find(e=>"tool_response"===e.type&&e.tool_call_id===t.tool_call_id)??null,l=i&&(r=function(e){return oy(e)?e:"object"==typeof e&&null!==e&&"content"in e&&oy(e.content)?e.content:null}(i))?function(e,t){try{let n=JSON.parse(e);return t(n)?n:null}catch{return null}}(r,og)??null:null;return(0,p.jsx)(oS,{src:l?.audio_url,title:l?.title},n)})})]})},oj=({reasoningMessage:e,isDoneReasoning:t,index:n})=>{let r=(0,x.useRef)(null),[i,l]=(0,x.useState)(!1),[o,a]=(0,x.useState)(!1),s=()=>
13{if(!r.current)return;let{scrollTop:e,scrollHeight:t,clientHeight:n}=r.current;l(e>0),a(e+n<t-1)};return(0,x.useEffect)(()=>{let e=r.current;if(e)return e.addEventListener("scroll",s),s(),()=>e.removeEventListener("scroll",s)},[]),(0,p.jsxs)(tf.motion.div,{className:"flex flex-col py-0.5 pl-6",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut",delay:.07*n},children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 font-graphik-compact text-[13px] text-gray-700",children:[(0,p.jsx)(oa,{size:14,stroke:"#EF4444"}),(0,p.jsx)(ox,{text:t?"Planned out next steps":"Planning next steps...",enableGlow:!t})]}),(0,p.jsxs)("div",{className:"relative ml-5 mt-1",children:[(0,p.jsx)(tf.motion.div,{ref:r,className:"hide-scrollbar h-16 overflow-y-auto scroll-smooth border-l-4 border-gray-300 pl-3 pr-2 text-xs italic leading-relaxed text-gray-600",onScroll:s,children:(0,p.jsx)(iJ,{remarkPlugins:[l5],children:e})}),(0,p.jsx)(td.AnimatePresence,{children:i&&(0,p.jsx)(tf.motion.div,{className:"pointer-events-none absolute left-0 top-0 h-4 w-full bg-gradient-to-b from-white to-transparent",initial:{opacity:0}
13,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"}})}),(0,p.jsx)(td.AnimatePresence,{children:o&&(0,p.jsx)(tf.motion.div,{className:"pointer-events-none absolute bottom-0 left-0 h-4 w-full bg-gradient-to-t from-white to-transparent",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2,ease:"easeInOut"}})})]})]})},oT=({toolMessage:e,response:t,index:n})=>{let r=of[e.name];return(0,p.jsxs)(tf.motion.div,{className:"flex flex-col py-0.5 pl-6 text-[13px] text-gray-700",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut",delay:.07*n},children:[(0,p.jsxs)("div",{className:"flex items-center gap-2 font-graphik-compact text-[13px] text-gray-700",children:[(0,p.jsx)(r,{size:14,stroke:"#EF4444"}),(0,p.jsx)(ox,{text:t?oh[e.name](t):op[e.name],enableGlow:!t})]}),t&&(0,p.jsx)(o_,{response:t})]},e.tool_call_id||n)},o_=({response:e})=>{switch(e.name){case"metadata_filter_search":case"contextual_search":{let t=function(e){try{let t=JSON.parse(e);return Array.isArray(t)&&t.every(e=>{var t;return t=e,"object"==typeof t&&null!==t&&"author"in t&&"string"==typeof t.author&&"date"in t&&"string"==typeof t.date&&"post_id"in t&&"string"==typeof t.post_id&&"title"in t&&"string"==typeof t.title&&"url"in t&&"string"==typeof t.url})?t:[]}catch{return null}}(e.content);if(!t)return null;return(0,p.jsx)("div",{className:"hide-scrollbar ml-4 flex flex-row gap-2 overflow-x-auto py-1 pl-1",children:t.map((e,t)=>e?(0,p.jsxs)(tf.motion.a,{className:"flex h-6 max-w-[150px] shrink-0 items-center gap-2 rounded-full border border-red-400 bg-red-100 px-3 font-editorial text-[10px] backdrop-blur-sm transition-all duration-200 hover:scale-105 hover:border-red-300/70 hover:bg-red-200/70 hover:shadow-sm",href:e.url,target:"_blank",rel:"noopener noreferrer",initial:{opacity:0}
13,animate:{opacity:1},transition:{duration:.3,ease:"easeOut",delay:.1*t},children:[(0,p.jsx)("span",{className:"shrink-0 font-editorial text-[16px] text-brand-red",children:"T"}),(0,p.jsx)("p",{className:"truncate",children:e.title})]},e.post_id):null)})}default:return null}},oM=()=>(0,p.jsxs)("span",{className:"ml-1 text-xs text-gray-600",children:[(0,p.jsx)("span",{className:"inline-block animate-pulse",style:{animationDelay:"0s",animationDuration:"1.5s"},children:"."}),(0,p.jsx)("span",{className:"inline-block animate-pulse",style:{animationDelay:"0.5s",animationDuration:"1.5s"},children:"."}),(0,p.jsx)("span",{className:"inline-block animate-pulse",style:{animationDelay:"1s",animationDuration:"1.5s"},children:"."})]}),oA=(0,x.memo)(({message:e,toolMessages:t,nextBlockTimestamp:n})=>(0,p.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,p.jsx)(tf.motion.div,{className:"relative flex flex-row-reverse",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeInOut"},children:(0,p.jsx)("div",{className:"rich-text w-fit max-w-[80%] rounded-xl rounded-br-sm border border-warm-grey-3 bg-ivory-white p-4 font-graphik-compact text-caption-large backdrop-blur-sm",children:e.content.content})}),(0,p.jsx)(oE,{toolMessages:t,isComplete:void 0!==n,thinkingTime:oR(e,n)})]}),(e,t)=>e.message===t.message&&e.nextBlockTimestamp===t.nextBlockTimestamp&&JSON.stringify(e.toolMessages)===JSON.stringify(t.toolMessages));oA.displayName="UserMessage";let oR=(e,t)=>{if(!e.created_at||!t)return null;let n=new Date(e.created_at),r=(new Date(t).getTime()-n.getTime())/1e3;return r<10?Math.round(10*r)/10:Math.round(r)},oN=(0,x.memo)(({message:e,toolMessages:t,nextBlockTimestamp:n,isLastMessage:r})=>{let i=D(e=>e.isMessageStreaming);return(0,p.jsxs)("div",{className:"flex w-full flex-col gap-1",children:[(0,p.jsx)(oo,{content:e.content.content,showFooter:!r||r&&!i}),t.length>0&&(0,p.jsx)(oE,{toolMessages:t,isComplete:void 0!==n,thinkingTime:oR(e,n)})]})},(e,t)=>e.message===t.message&&e.isLastMessage===t.isLastMessage&&e.nextBlockTimestamp===t.nextBlockTimestamp&&JSON.stringify(e.toolMessages)===JSON.stringify(t.toolMessages));function oP(e,t,n,r){return t&&e.push(t),{type:n,message:r,toolMessages:[]}}oN.displayName="AgentMessage",e.s(["Thread",0,()=>{let e=D(e=>e.messages),t=(0,x.useMemo)(()=>(function(e){let t=[],n=null;for(let r of e){let{author:e,type:i}=r.content;e&&i&&("user"===e&&"text"===i?n=oP(t,n,"user",r):"agent"===e&&"text"===i?n=oP(t,n,"agent",r):"agent"===e&&("tool_request"===i||"tool_response"===i||"reasoning"===i)&&n?.toolMessages.push(r.content))}return n&&t.push(n),t})(e),[e]);return(0,p.jsx)(tf.motion.div,{className:"flex w-full max-w-[600px] flex-col gap-3 p-4 pb-0",initial:{opacity:0}
13,animate:{opacity:1},exit:{opacity:0},transition:{duration:1,ease:[.25,.1,.25,1]},children:t.map((e,n)=>"user"===e.type?(0,p.jsx)(oA,{message:e.message,toolMessages:e.toolMessages,nextBlockTimestamp:n===t.length-1?void 0:t[n+1].message.created_at},`${e.message.id}`):(0,p.jsx)(oN,{message:e.message,toolMessages:e.toolMessages,isLastMessage:n===t.length-1,nextBlockTimestamp:n===t.length-1?void 0:t[n+1].message.created_at},`${e.message.id}`))})}],167297);let oI=(0,tb.default)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),oD=(0,tb.default)("headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]),oL=[{icon:oI,generic:"summarizing an article",desktopText:"summarizing this article",mobileText:"summarizing this article",prompt:"Summarize this article for me."},{icon:(0,tb.default)("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),generic:"translating an article",desktopText:"translating it",mobileText:"translating this article",prompt:"Translate this article into Spanish."},{icon:oD,generic:"reading an article out loud",desktopText:"reading it out loud",mobileText:"reading this article aloud",prompt:"Read this article aloud for me."},{icon:(0,tb.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),generic:"asking about a recent topic",desktopText:"asking for related articles",mobileText:"asking for related articles",prompt:"Find me articles similar articles to this one."}],oO=[{title:"Outline TIME's coverage of social media",prompt:"Show me how TIME has reported on social media across the decades, then summarize how the coverage has evolved, then make English and Mandarin audio versions."},{title:"Debate AI's impact on humanity",prompt:"Create a debate for and against the question “Is AI good for humanity?” using TIME’s reporting and opinion archives, and include supporting examples from different years."},{title:"Recap interviews with Donald Trump",prompt:"Make a five-minute audio briefing summarizing Donald Trump’s most recent interviews with TIME, highlighting his key themes and quotes."},{title:"Summarize Lee Jae Myung's profile",prompt:"Summarize TIME’s recent profile of President Lee Jae Myung, and create Korean and English audio versions."}],oz=({onSelectPrompt:e,onMinimize:t,delay:n=0,articleTitle:r})=>{let i=(0,tD.useIsMobile)(),l=(0,S.usePathname)(),o=(0,x.useCallback)(e=>{(0,A.sendGTMEvent)({event:R.eventName.INTERNAL_CLICK,componentType:R.componentType.scaleAgentExperience,pagePath:l,clickText:e})},[l]);return i?(0,p.jsxs)(tf.motion.div,{className:"mt-6 flex w-full flex-col flex-wrap items-center justify-center gap-4 p-4 text-xl",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,delay:n,ease:[.25,.1,.25,1]},children:[r&&(0,p.jsxs)("span",{className:"flex flex-col items-center gap-2 font-graphik-compact text-sm",children:["You're reading: ",(0,p.jsxs)(tf.motion.button,{className:"flex h-8 max-w-[300px] shrink-0 items-center gap-2 rounded-full border border-red-400 bg-red-100 px-4 font-editorial text-xs backdrop-blur-sm transition-all duration-200 hover:scale-105 hover:border-red-300/70 hover:bg-red-200/70 hover:shadow-sm",onClick:()=>{t?.()},children:[(0,p.jsx)("span",{className:"shrink-0 font-editorial text-[20px] text-brand-red",children:"T"}),(0,p.jsx)("p",{className:"truncate",children:r})]})]}),(0,p.jsxs)(tf.motion.div,{className:"flex flex-wrap items-center gap-2",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},children:[(0,p.jsx)("span",{className:"font-graphik-compact",children:"Try"}),(0,p.jsx)("div",{className:`flex w-[260px] items-center justify-center rounded-md px-2 py-1 transition-colors ${r?"cursor-default":"bg-red-100/50 hover:bg-red-200"}`,children:(0,p.jsx)(ov,{className:"flex justify-center",rotateInterval:3e3,options:oL.map(t=>{let n=t.icon;return(0,p.jsxs)("button",{className:"flex flex-row items-center gap-1 font-graphik-compact text-brand-red lg:text-h4",onClick:()=>{e(t.prompt),o(t.prompt)},disabled:!r,children:[(0,p.jsx)(n,{size:16,stroke:"#EF4444"}),r?t.mobileText:t.generic]},t.mobileText)})})})]})]}):(0,p.jsxs)(tf.motion.div,{className:"mt-4 flex w-full max-w-[600px] flex-col flex-wrap items-center justify-center gap-2 p-4 text-xl",initial:{opacity:0,y:20}
13,animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.4,delay:n,ease:[.25,.1,.25,1]},children:[r&&(0,p.jsxs)("span",{className:"flex flex-col items-center gap-2 font-graphik-compact",children:["You're reading: ",(0,p.jsxs)(tf.motion.button,{className:"mb-5 flex h-8 max-w-[450px] shrink-0 items-center gap-2 rounded-full border border-red-400 bg-red-100 px-4 font-editorial text-xs backdrop-blur-sm transition-all duration-200 hover:scale-105 hover:border-red-300/70 hover:bg-red-200/70 hover:shadow-sm",onClick:()=>{t?.(),o("articleTitleMinimize")},children:[(0,p.jsx)("span",{className:"shrink-0 font-editorial text-[20px] text-brand-red",children:"T"}),(0,p.jsx)("p",{className:"truncate text-[14px]/6",children:r})]})]}),(0,p.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,p.jsx)("span",{className:"font-graphik-compact",children:"Try"}),oL.map((t,n)=>{let i=t.icon;return(0,p.jsxs)(x.Fragment,{children:[n===oL.length-1&&(0,p.jsx)("span",{className:"font-graphik-compact",children:"or"}),(0,p.jsxs)(oF,{onClick:()=>{e(t.prompt),o(t.prompt)},isGeneric:!r,children:[(0,p.jsx)(i,{size:12,stroke:"#EF4444"}),r?t.desktopText:t.generic,!r&&n<oL.length-1&&(0,p.jsx)("span",{className:"font-graphik-compact text-black",children:","})]},t.desktopText)]},t.desktopText)})]})]})},oF=({children:e,onClick:t,isGeneric:n})=>(0,p.jsx)(tf.motion.button,{className:`flex items-center gap-1 rounded-md font-graphik-compact text-brand-red transition-colors ${n?"cursor-default":"bg-red-100/50 px-1.5 hover:bg-red-200"}`,onClick:t,disabled:n,children:e}),oB=({onSelectPrompt:e,delay:t=0})=>(0,p.jsxs)(tf.motion.div,{className:"mt-6 flex w-full flex-wrap items-center justify-center gap-1",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:t,ease:[.25,.1,.25,1]},children:[(0,p.jsx)(tf.motion.span,{className:"rich-text mb-4 mt-1 text-center font-graphik text-sm text-grey-1 lg:font-graphik-compact lg:text-caption-small",children:"Try these prompts for inspiration:"}),(0,p.jsx)(o$,{onSelectPrompt:e})]}),o$=({onSelectPrompt:e})=>{let t=(0,tD.useIsMobile)(),[n,r]=(0,x.useState)(0),[i,l]=(0,x.useState)(!1),o=(0,S.usePathname)();if((0,x.useEffect)(()=>{if(!t||i)return;let e=setInterval(()=>{r(e=>(e+1)%oO.length)},5e3);return()=>clearInterval(e)},[t,i]),t){let t=oO[n];return(0,p.jsxs)("div",{className:"flex h-[125px] w-[90%] flex-col justify-between rounded-lg border border-warm-grey-2 bg-ivory-white p-4 text-left font-graphik-compact text-cta-small text-black-coffee transition-colors focus-visible:border-transparent focus-visible:shadow-focus-color focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black-coffee disabled:pointer-events-none support:hover:bg-warm-grey-2",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onTouchStart:()=>l(!0),onTouchEnd:()=>l(!1),children:[(0,p.jsx)("button",{onClick:()=>{e(t.prompt),(0,A.sendGTMEvent)({event:R.eventName.INTERNAL_CLICK,componentType:R.componentType.scaleAgentExperience,pagePath:o,clickText:t.title})},className:"relative flex w-full cursor-pointer flex-col gap-2 overflow-hidden text-left",children:(0,p.jsx)(td.AnimatePresence,{mode:"wait",initial:!1,children:(0,p.jsxs)(tf.motion.div,{initial:{x:300,opacity:0},animate:{x:0,opacity:1},exit:{x:-300,opacity:0},transition:{type:"spring",stiffness:400,damping:40},children:[(0,p.jsx)("h3",{className:"font-graphik-compact text-sm font-bold",children:t.title}),(0,p.jsx)("p",{className:"mt-2",children:t.prompt})]},n)})}),(0,p.jsx)("div",{className:"mt-2 flex items-center gap-1.5",children:oO.map((e,t)=>(0,p.jsx)("button",{onClick:e=>{e.stopPropagation(),r(t)},className:`rounded-full transition-all duration-300 ${t===n?"size-2 w-4 bg-brand-red":"size-1.5 bg-brand-dark-red"}`,"aria-label":`Go to prompt ${t+1}`},t))})]})}return(0,p.jsx)("div",{className:"flex w-full flex-col flex-wrap items-center justify-center gap-2 p-1",children:oO.map(t=>(0,p.jsxs)("button",{onClick:()=>{e(t.prompt),(0,A.sendGTMEvent)({event:R.eventName.INTERNAL_CLICK,componentType:R.componentType.scaleAgentExperience,pagePath:o,clickText:t.title})},className:"flex w-2/3 max-w-[650px] cursor-pointer flex-col gap-2 rounded-lg border border-warm-grey-2 bg-ivory-white p-4 text-left font-graphik-compact text-cta-small text-black-coffee transition-colors focus-visible:border-transparent focus-visible:shadow-focus-color focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-black-coffee disabled:pointer-events-none support:hover:bg-warm-grey-2",children:[(0,p.jsx)("h3",{className:"font-graphik-compact text-sm font-bold",children:t.title}),(0,p.jsx)("p",{children:t.prompt})]},t.title))})},oH=({className:e})=>(0,p.jsxs)("svg",{width:"99",height:"28",viewBox:"0 0 99 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[(0,p.jsx)("title",{children:"TIME AI Logo Black"}),(0,p.jsx)("path",{d:"M77.9914 27.7605V27.1134L76.0164 26.4664L70.0064 9.87015H68.9247L62.9164 26.3602L60.9397 27.1682V27.7605H66.8947V27.1134C65.8114 26.979 64.5397 26.629 64.3781 26.3054L65.8931 21.6981H71.5497L73.1731 26.4664L70.4931 27.1134V27.7605H77.9914ZM71.2797 20.8901H66.1647L68.6814 13.2647L71.2797 20.8901Z",fill:"#FF2020"}),(0,p.jsx)("path",{d:"M6.52474 11.4115L4.77474 11.4048H2.06308C1.87474 11.4048 0.421409 11.4181 0.421409 11.4181L0.396409 13.5103L0.131409 13.5169L0.148075 11.1643L0.138075 10.197C1.06308 10.2368 4.40141 10.2634 7.86641 10.2634C11.9064 10.2634 14.5097 10.2285 15.5314 10.2003L15.5197 11.2704L15.5397 13.6496L15.2647 13.6463C15.2664 13.4522 15.2197 12.6625 15.2214 12.5845C15.2231 12.5563 15.1631 11.4961 15.1547 11.4164L13.9947 11.4015H10.5197L9.18808 11.4065L9.18974 26.0881C9.18974 26.108 9.21474 27.0504 9.21974 27.2462C9.35308 27.2628 10.6414 27.3424 10.8747 27.3424H10.9647V27.7422C10.8947 27.7422 10.8097 27.7489 10.7364 27.7489C10.0047 27.7406 8.82307 27.6643 7.98474 27.6643C7.15807 27.6643 5.99307 27.7373 5.13141 27.7489C5.10808 27.7489 4.93141 27.7456 4.86474 27.7422L4.86307 27.3158C4.87141 27.3175 4.92474 27.3158 5.
1300474 27.3125C5.36808 27.2993 6.26474 27.2462 6.49808 27.2296L6.53474 27.2246L6.53307 25.967L6.52474 11.4115Z",fill:"black"}),(0,p.jsx)("path",{d:"M28.7831 10.1787C28.7831 10.1787 30.0881 13.7907 30.3014 14.3199C30.5131 14.8492 34.5047 23.9893 34.5047 23.9893C34.5047 23.9893 36.3781 20.0522 38.0464 15.8264C38.3847 14.9703 38.8281 13.8554 39.1547 12.9511C39.6331 11.6288 40.1581 10.1787 40.1581 10.1787H41.1847C41.1847 10.1787 41.4397 11.7931 41.5297 12.5115C41.7931 14.6036 43.5097 23.105 44.1114 25.9006C44.2614 26.5991 44.3764 27.2047 44.3764 27.2047C44.5531 27.2146 45.2464 27.2777 45.6581 27.3076C45.7447 27.3142 45.9747 27.3241 46.0264 27.3241L46.0281 27.7456C46.0281 27.7456 45.8414 27.7555 45.7381 27.7555C44.8181 27.7505 43.3831 27.6759 42.4997 27.6759C41.7131 27.6759 40.9564 27.7356 40.1681 27.7505C40.0347 27.7522 39.8997 27.7472 39.7614 27.7472V27.3308C39.7664 27.3291 39.8714 27.3241 39.9264 27.3258C40.3114 27.3092 41.3297 27.2213 41.4314 27.2163C41.4314 27.0637 41.3764 26.5344 41.2931 25.9935C41.2364 25.6119 41.1381 24.9582 41.0347 24.3161C40.8114 23.0652 39.7731 17.8837 39.4647 16.4469C39.4147 16.2113 39.3831 16.0786 39.3831 16.0786C39.3831 16.0786 36.1697 23.4169 35.5214 24.8637C35.4581 25.0047 35.4131 25.1059 35.3981 25.1391C34.7781 26.5311 34.2581 27.7721 34.2581 27.7721L33.3447 27.7688L28.3364 16.3092L28.2181 16.0437C28.2181 16.0437 27.7814 18.1923 27.1514 21.2235C26.8181 22.8611 26.1264 26.9558 26.0797 27.2263C26.4781 27.2793 27.2614 27.3358 27.4764 27.3291C27.5264 27.3291 27.6097 27.3308 27.6714 27.3308V27.7456C27.5831 27.7572 27.3731 27.7572 27.3647 27.7572C26.6097 27.7422 26.0647 27.6925 25.2481 27.6925C25.0331 27.6925 23.8997 27.7439 23.4997 27.7572C23.3331 27.7638 23.0981 27.7472 23.0531 27.7489V27.3391C23.0914 27.3391 23.1714 27.3241 23.2214 27.3225C23.5831 27.3092 24.1381 27.2578 24.6097 27.203C24.6481 27.0023 25.0547 24.9831 25.1847 24.268C25.6847 21.9021 27.1597 13.9947 27.3447 12.9279C27.5064 11.7765 27.6947 10.3447 27.7114 10.1854C28.1081 10.192 28.7831 10.1787 28.7831 10.1787Z",fill:"black"}),(0,p.jsx)("path",{d:"M22.1331 27.7605C21.4547 27.7605 20.3031 27.6593 19.4381 27.6593C18.5847 27.6593 17.4247 27.7588 16.5914 27.7588C16.5197 27.7605 16.3947 27.7456 16.3264 27.7456V27.3291C16.4914 27.3258 17.2281 27.2661 17.4331 27.2528C17.6731 27.2379 17.8947 27.2263 17.9947 27.198C17.9947 27.198 17.9964 26.6953 17.9997 25.9172C18.0097 23.2228 18.0264 15.6091 17.9981 12.1631C17.9947 11.7997 17.9931 10.8789 17.9931 10.7445C17.8364 10.7312 17.6181 10.7113 17.4614 10.6931C17.2664 10.6848 16.4597 10.6151 16.3214 10.6085L16.3164 10.192C17.1164 10.192 18.3031 10.2634 19.2664 10.2634C20.1864 10.2634 21.4347 10.192 22.3797 10.192L22.3781 10.6267C22.2281 10.635 21.8631 10.6566 21.8514 10.6566C21.5764 10.6798 20.8047 10.7578 20.6164 10.7694C20.6164 11.0282 20.6164 11.5143 20.6164 12.11C20.6147 15.1943 20.6131 23.2659 20.6114 25.9836C20.6114 26.3386 20.6114 26.6671 20.6114 26.8646C20.6114 27.072 20.6131 27.1964 20.6147 27.2047C20.6197 27.2196 21.1031 27.2611 21.2147 27.2677C21.4281 27.2893 22.3047 27.3241 22.3314 27.3291H22.3897V27.7456C22.3331 27.7472 22.1931 27.7622 22.1331 27.7605Z",fill:"black"}),(0,p.jsx)("path",{d:"M50.8881 11.4513L50.8847 18.3599L55.8681 18.3748C55.8914 18.3748 57.1864 18.3383 57.2181 18.34C57.2964 18.3416 58.1864 18.2952 58.2197 18.2836C58.2197 18.2836 58.2347 18.2106 58.2531 18.1591C58.3264 17.741 58.4164 17.3445 58.4397 17.0343C58.4397 17.0343 58.4631 16.9015 58.4647 16.8119L58.7481 16.807C58.7481 16.8385 58.7631 16.9181 58.7614 17.0309C58.7581 17.4474 58.7231 18.3118 58.7247 18.8792C58.7264 19.6955 58.7514 20.4321 58.7564 20.8021C58.7597 20.9067 58.7531 21.0759 58.7531 21.0759H58.4431C58.4381 21.0377 58.4314 20.9962 58.4247 20.9531C58.3697 20.4819 58.3247 20.1501 58.2431 19.6706C58.2414 19.6457 58.2231 19.5594 58.2181 19.5047C58.0597 19.4947 57.6397 19.4815 57.4164 19.4765C57.3197 19.4732 56.1047 19.4665 54.7381 19.4649C54.1781 19.4632 53.1714 19.4881 52.7464 19.4881C52.2464 19.4881 51.4214 19.5163 50.8831 19.5329L50.8881 25.7978L50.9097 26.6057L53.9347 26.6522L58.2431 26.6472C58.2631 26.6472 59.2281 26.6124 59.5314 26.6174C59.5947 26.619 59.7247 26.6091 59.7247 26.6091C59.7531 26.4067 59.7881 25.9969 59.8231 25.6053C59.8264 25.5588 59.9347 24.5202 59.9347 24.2398L60.1997 24.2365C60.1997 24.5003 60.1431 27.7837 60.1431 27.7837C59.6564 27.7837 58.1664 27.7821 56.3264 27.7588C55.2114 27.7439 53.9681 27.7456 52.7397 27.729C51.7447 27.7157 50.7614 27.6842 49.8664 27.6858C48.5897 27.687
135 47.3397 27.7622 46.8547 27.7622C46.7431 27.7622 46.5481 27.7555 46.5047 27.7555V27.3424H46.5931C46.8931 27.3407 47.7731 27.2943 48.2314 27.218C48.2314 27.135 48.2614 26.113 48.2614 26.0914C48.2614 26.0914 48.2597 13.1187 48.2597 12.538C48.2597 11.9109 48.2464 10.8656 48.2464 10.7744C47.9864 10.7478 47.8947 10.7329 47.8397 10.7229C47.5631 10.6881 47.0197 10.6466 46.7297 10.6267C46.6464 10.6284 46.5564 10.6184 46.5114 10.6118C46.5114 10.6118 46.5114 10.2053 46.5081 10.2003C46.5747 10.2036 46.7097 10.1953 46.9531 10.197C47.4664 10.1987 48.4114 10.2667 49.5664 10.2683C50.2931 10.2683 51.4631 10.2368 52.3014 10.2269C53.4964 10.2269 54.4047 10.2169 55.5631 10.2103C57.4531 10.1987 59.0681 10.187 59.6997 10.1837C59.8831 10.1821 59.9847 10.1821 59.9847 10.1821C59.9847 10.2136 59.9831 10.2518 59.9831 10.2932C59.9847 10.4226 59.9781 10.6516 59.9797 10.9337C59.9864 11.808 60.0097 13.1818 60.0097 13.6297H59.7447L59.7414 13.507C59.7147 13.2 59.6564 12.3356 59.5831 11.6073C59.5764 11.5426 59.5647 11.4911 59.5647 11.4911C59.4064 11.4861 58.7597 11.4679 58.7481 11.4579C58.7381 11.4496 58.2231 11.443 58.2114 11.438C58.2064 11.4364 56.5147 11.4264 54.7731 11.4248C53.5831 11.4231 52.4131 11.4314 51.6947 11.4314C51.5214 11.4297 50.8881 11.4513 50.8881 11.4513Z",fill:"black"}),(0,p.jsx)("path",{d:"M78.6764 27.7605H86.4181V27.1151L83.8731 26.5211V11.4331L86.4181 10.8408V10.1937H78.6764V10.8408L81.2197 11.4331V26.5211L78.6764 27.1151V27.7605Z",fill:"#FF2020"}),(0,p.jsx)("path",{d:"M90.7997 11.8146C90.6831 11.8146 90.5897 11.7217 90.5897 11.6056C90.5897 8.69549 88.2114 6.32792 85.2881 6.32792C85.1714 6.32792 85.0781 6.23501 85.0781 6.11887C85.0781 6.00273 85.1714 5.90982 85.2881 5.90982C88.2114 5.90982 90.5897 3.54225 90.5897 0.632145C90.5897 0.516007 90.6831 0.423096 90.7997 0.423096C90.9164 0.423096 91.0097 0.516007 91.0097 0.632145C91.0097 3.54225 93.3881 5.90982 96.3114 5.90982C96.4281 5.90982 96.5214 6.00273 96.5214 6.11887C96.5214 6.23501 96.4281 6.32792 96.3114 6.32792C93.3881 6.32792 91.0097 8.69549 91.0097 11.6056C91.0097 11.7217 90.9164 11.8146 90.7997 11.8146Z",fill:"#FF2020"}),(0,p.jsx)("path",{d:"M95.0781 17.3329C95.0014 17.3329 94.9381 17.2698 94.9381 17.1935C94.9381 15.2557 93.3548 13.6778 91.4064 13.6778C91.3298 13.6778 91.2664 13.6148 91.2664 13.5385C91.2664 13.4621 91.3298 13.3991 91.4064 13.3991C93.3531 13.3991 94.9381 11.8213 94.9381 9.88342C94.9381 9.8071 95.0014 9.74405 95.0781 9.74405C95.1548 9.74405 95.2181 9.8071 95.2181 9.88342C95.2181 11.8213 96.8031 13.3991 98.7498 13.3991C98.8264 13.3991 98.8898 13.4621 98.8898 13.5385C98.8898 13.6148 98.8264 13.6778 98.7498 13.6778C96.8031 13.6778 95.2181 15.254 95.2181 17.1935C95.2181 17.2715 95.1548 17.3329 95.0781 17.3329Z",fill:"#BB1515"})]});e.s(["TimeaiLogoBlack",0,oH],678331),e.s(["Welcome",0,({onSelectPrompt:e,onMinimize:t,articleTitle:n,showBetaBadge:r=!1})=>{let i=(0,tD.useIsMobile)();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(tf.motion.h1,{className:"mt-12 flex items-center justify-center gap-2 text-center font-editorial text-5xl font-medium",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5,ease:[.25,.1,.25,1]},children:[!i&&"Welcome to",(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsx)(oH,{className:"h-[58px] w-[193px] translate-y-[-8px]"}),r&&(0,p.jsx)("span",{className:"absolute bottom-[-4px] right-[-20px] rounded-full bg-red-100 px-1.5 py-1 font-graphik text-[10px] uppercase text-red-600",children:"beta"})]})]}),(0,p.jsx)(tf.motion.div,{className:"rich-text mt-1 text-center font-graphik-compact text-caption-large text-gray-600",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.5,ease:[.25,.1,.25,1]},children:"Explore 102 years of TIME's journalism"}),(0,p.jsx)(oz,{onSelectPrompt:t=>void e(t),onMinimize:t,delay:.75,articleTitle:n}),(0,p.jsx)(oB,{onSelectPrompt:t=>void e(t),delay:1})]})}],715411);let oU=(0,tb.default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function oV(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function oq(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function oW(e){return"object"==typeof e&&null!==e&&("name"in e&&"AbortError"===e.name||"message"in e&&String(e.message).includes("FetchRequestCanceledException"))}e.s(["ArrowLeft",0,oU],871689);let oK=e=>{if(e instanceof Error)return e;if("object"==typeof e&&null!==e){try{if("[object Error]"===Object.prototype.toString.call(e)){let t=Error(e.message,e.cause?{cause:e.cause}:{});return e.stack&&(t.stack=e.stack),e.cause&&!t.cause&&(t.cause=e.cause),e.name&&(t.name=e.name),t}}catch{}try{return Error(JSON.stringify(e))}catch{}}return Error(e)};
13class oX extends Error{}class oJ extends oX{constructor(e,t,n,r){super(`${oJ.makeMessage(e,t,n)}`),this.status=e,this.headers=r,this.error=t}static makeMessage(e,t,n){let r=t?.message?"string"==typeof t.message?t.message:JSON.stringify(t.message):t?JSON.stringify(t):n;return e&&r?`${e} ${r}`:e?`${e} status code (no body)`:r||"(no status code or body)"}static generate(e,t,n,r){return e&&r?400===e?new oY(e,t,n,r):401===e?new o1(e,t,n,r):403===e?new o0(e,t,n,r):404===e?new o2(e,t,n,r):409===e?new o4(e,t,n,r):422===e?new o3(e,t,n,r):429===e?new o7(e,t,n,r):e>=500?new o5(e,t,n,r):new oJ(e,t,n,r):new oZ({message:n,cause:oK(t)})}}class oG extends oJ{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}}class oZ extends oJ{constructor({message:e,cause:t}){super(void 0,void 0,e||"Connection error.",void 0),t&&(this.cause=t)}}class oQ extends oZ{constructor({message:e}={}){super({message:e??"Request timed out."})}}class oY extends oJ{}class o1 extends oJ{}class o0 extends oJ{}class o2 extends oJ{}class o4 extends oJ{}class o3 extends oJ{}class o7 extends oJ{}class o5 extends oJ{}let o6=/^[a-z][a-z0-9+.-]*:/i,o9=e=>(o9=Array.isArray)(e),o8=o9,ae="0.1.0-alpha.14",at=e=>"x32"===e?"x32":"x86_64"===e||"x64"===e?"x64":"arm"===e?"arm":"aarch64"===e||"arm64"===e?"arm64":e?`other:${e}`:"unknown",an=e=>(e=e.toLowerCase()).includes("ios")?"iOS":"android"===e?"Android":"darwin"===e?"MacOS":"win32"===e?"Windows":"freebsd"===e?"FreeBSD":"openbsd"===e?"OpenBSD":"linux"===e?"Linux":e?`Other:${e}`:"Unknown";function ar(...e){let t=globalThis.ReadableStream;if(void 0===t)throw Error("`ReadableStream` is not defined as a global; You will need to polyfill it, `globalThis.ReadableStream = ReadableStream`");return new t(...e)}function ai(e){if(e[Symbol.asyncIterator])return e;let t=e.getReader();return{async next(){try{let e=await t.read();return e?.done&&t.releaseLock(),e}catch(e){throw t.releaseLock(),e}},async return(){let e=t.cancel();return t.releaseLock(),await e,{done:!0,value:void 0}},[Symbol.asyncIterator](){return this}}}async function al(e){if(null===e||"object"!=typeof e)return;if(e[Symbol.asyncIterator])return void await e[Symbol.asyncIterator]().return?.();let t=e.getReader(),n=t.cancel();t.releaseLock(),await n}let ao=({headers:e,body:t})=>({bodyHeaders:{"content-type":"application/json"},body:JSON.stringify(t)}),aa="RFC3986",as=e=>String(e),au={RFC1738:e=>String(e).replace(/%20/g,"+"),RFC3986:as},ac=(e,t)=>(ac=Object.hasOwn??Function.prototype.call.bind(Object.prototype.hasOwnProperty))(e,t),ad=(()=>{let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e})();function af(e,t){if(o9(e)){let n=[];for(let r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)}let ap={brackets:e=>String(e)+"[]",comma:"comma",indices:(e,t)=>String(e)+"["+t+"]",repeat:e=>String(e)},ah=function(e,t){Array.prototype.push.apply(e,o9(t)?t:[t])},am={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:(e,t,n,r,i)=>{if(0===e.length)return e;let l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===n)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});let o="";for(let e=0;e<l.length;e+=1024){let t=l.length>=1024?l.slice(e,e+1024):l,n=[];for(let e=0;e<t.length;++e){let r=t.charCodeAt(e);if(45===r||46===r||95===r||126===r||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||"RFC1738"===i&&(40===r||41===r)){n[n.length]=t.charAt(e);continue}if(r<128){n[n.length]=ad[r];continue}if(r<2048){n[n.length]=ad[192|r>>6]+ad[128|63&r];continue}if(r<55296||r>=57344){n[n.length]=ad[224|r>>12]+ad[128|r>>6&63]+ad[128|63&r];continue}e+=1,r=65536+((1023&r)<<10|1023&t.charCodeAt(e)),n[n.length]=ad[240|r>>18]+ad[128|r>>12&63]+ad[128|r>>6&63]+ad[128|63&r]}o+=n.join("")}return o},encodeValuesOnly:!1,format:aa,formatter:as,indices:!1,serializeDate:e=>(n??(n=Function.prototype.call.bind(Date.prototype.toISOString)))(e),skipNulls:!1,strictNullHandling:!1},ag={},ay=()=>
13{if("u"<typeof File){let{process:e}=globalThis;throw Error("`File` is not defined as a global, which is required for file uploads."+("string"==typeof e?.versions?.node&&20>parseInt(e.versions.node.split("."))?" Update to Node 20 LTS or newer, or set `globalThis.File` to `import('node:buffer').File`.":""))}};function ax(e,t,n){return ay(),new File(e,t??"unknown_file",n)}let av=e=>null!=e&&"object"==typeof e&&"number"==typeof e.size&&"string"==typeof e.type&&"function"==typeof e.text&&"function"==typeof e.slice&&"function"==typeof e.arrayBuffer;async function ab(e,t,n){var r;let i,l;if(ay(),null!=(i=e=await e)&&"object"==typeof i&&"string"==typeof i.name&&"number"==typeof i.lastModified&&av(i))return e instanceof File?e:ax([await e.arrayBuffer()],e.name);if(null!=(l=e)&&"object"==typeof l&&"string"==typeof l.url&&"function"==typeof l.blob){let r=await e.blob();return t||(t=new URL(e.url).pathname.split(/[\\/]/).pop()),ax(await ak(r),t,n)}let o=await ak(e);if(t||(t=("object"==typeof(r=e)&&null!==r&&("name"in r&&r.name&&String(r.name)||"url"in r&&r.url&&String(r.url)||"filename"in r&&r.filename&&String(r.filename)||"path"in r&&r.path&&String(r.path))||"").split(/[\\/]/).pop()||void 0),!n?.type){let e=o.find(e=>"object"==typeof e&&"type"in e&&e.type);"string"==typeof e&&(n={...n,type:e})}return ax(o,t,n)}async function ak(e){let t=[];if("string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer)t.push(e);else if(av(e))t.push(e instanceof Blob?e:await e.arrayBuffer());else{let n;if(null!=(n=e)&&"object"==typeof n&&"function"==typeof n[Symbol.asyncIterator])for await(let n of e)t.push(...await ak(n));else{let t=e?.constructor?.name;throw Error(`Unexpected data type: ${typeof e}${t?`; constructor: ${t}`:""}${function(e){if("object"!=typeof e||null===e)return"";let t=Object.getOwnPropertyNames(e);return`; props: [${t.map(e=>`"${e}"`).join(", ")}]`}(e)}`)}}return t}class aw{constructor(e){this._client=e}}class aS extends aw{create(e,t){return this._client.post("/messages/batch",{body:e,...t})}update(e,t){return this._client.put("/messages/batch",{body:e,...t})}}function aC(e){return e.replace(/[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/g,encodeURIComponent)}let aE=Object.freeze(Object.create(null)),aj=((e=aC)=>function(t,...n){let r;if(1===t.length)return t[0];let i=!1,l=[],o=t.reduce((t,r,o)=>{/[?#]/.test(r)&&(i=!0);let a=n[o],s=(i?encodeURIComponent:e)(""+a);return o!==n.length&&(null==a||"object"==typeof a&&a.toString===Object.getPrototypeOf(Object.getPrototypeOf(a.hasOwnProperty??aE)??aE)?.toString)&&(s=a+"",l.push({start:t.length+r.length,length:s.length,error:`Value of type ${Object.prototype.toString.call(a).slice(8,-1)} is not a valid path parameter`})),t+r+(o===n.length?"":s)},""),a=o.split(/[?#]/,1)[0],s=/(?<=^|\/)(?:\.|%2e){1,2}(?=\/|$)/gi;for(;null!==(r=s.exec(a));)l.push({start:r.index,length:r[0].length,error:`Value "${r[0]}" can't be safely passed as a path parameter`});if(l.sort((e,t)=>e.start-t.start),l.length>0){let e=0,t=l.reduce((t,n)=>{let r=" ".repeat(n.start-e),i="^".repeat(n.length);return e=n.start+n.length,t+r+i},"");throw new oX(`Path parameters result in path with invalid segments:
14${l.map(e=>e.error).join("\n")}
15${o}
16${t}`)}return o})(aC);class aT extends aw{constructor(){super(...arguments),this.batch=new aS(this._client)}create(e,t){return this._client.post("/messages",{body:e,...t})}retrieve(e,t){return this._client.get(aj`/messages/${e}`,t)}update(e,t,n){return this._client.put(aj`/messages/${e}`,{body:t,...n})}list(e,t){return this._client.get("/messages",{query:e,...t})}listPaginated(e,t){return this._client.get("/messages/paginated",{query:e,...t})}}aT.Batch=aS;class a_ extends aw{retrieve(e,t){return this._client.get(aj`/agents/${e}`,t)}list(e={},t){return this._client.get("/agents",{query:e,...t})}delete(e,t){return this._client.delete(aj`/agents/${e}`,t)}deleteByName(e,t){return this._client.delete(aj`/agents/name/${e}`,t)}retrieveByName(e,t){return this._client.get(aj`/agents/name/${e}`,t)}rpc(e,t,n){return this._client.post(aj`/agents/${e}/rpc`,{body:t,...n})}rpcByName(e,t,n){return this._client.post(aj`/agents/name/${e}/rpc`,{body:t,...n})}}class aM extends aw{retrieve(e,t={},n){return this._client.get(aj`/tasks/${e}`,{query:t,...n})}list(e={},t){return this._client.get("/tasks",{query:e,...t})}delete(e,t){return this._client.delete(aj`/tasks/${e}`,t)}deleteByName(e,t){return this._client.delete(aj`/tasks/name/${e}`,t)}retrieveByName(e,t={},n){return this._client.get(aj`/tasks/name/${e}`,{query:t,...n})}streamEvents(e,t){return this._client.get(aj`/tasks/${e}/stream`,{...t,stream:!0})}streamEventsByName(e,t){return this._client.get(aj`/tasks/name/${e}/stream`,{...t,stream:!0})}}class aA extends aw{create(e,t){return this._client.post("/spans",{body:e,...t})}retrieve(e,t){return this._client.get(aj`/spans/${e}`,t)}update(e,t,n){return this._client.patch(aj`/spans/${e}`,{body:t,...n})}list(e={},t){return this._client.get("/spans",{query:e,...t})}}class aR extends aw{create(e,t){return this._client.post("/states",{body:e,...t})}retrieve(e,t){return this._client.get(aj`/states/${e}`,t)}update(e,t,n){return this._client.put(aj`/states/${e}`,{body:t,...n})}list(e={},t){return this._client.get("/states",{query:e,...t})}delete(e,t){return this._client.delete(aj`/states/${e}`,t)}}class aN extends aw{retrieve(e,t){return this._client.get(aj`/events/${e}`,t)}list(e,t){return this._client.get("/events",{query:e,...t})}}class aP extends aw{retrieve(e,t){return this._client.get(aj`/tracker/${e}`,t)}update(e,t,n){return this._client.put(aj`/tracker/${e}`,{body:t,...n})}list(e={},t){return this._client.get("/tracker",{query:e,...t})}}class aI extends aw{retrieve(e,t){return this._client.get(aj`/deployment-history/${e}`,t)}list(e={},t){return this._client.get("/deployment-history",{query:e,...t})}}function aD(e){let t;return(r??(r=(t=new globalThis.TextEncoder).encode.bind(t)))(e)}function aL(e){let t;return(i??(i=(t=new globalThis.TextDecoder).decode.bind(t)))(e)}class aO{constructor(){l.set(this,void 0),o.set(this,void 0),oV(this,l,new Uint8Array,"f"),oV(this,o,null,"f")}decode(e){let t;if(null==e)return[];let n=e instanceof ArrayBuffer?new Uint8Array(e):"string"==typeof e?aD(e):e;oV(this,l,function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}([oq(this,l,"f"),n]),"f");let r=[];for(;null!=(t=function(e,t){for(let n=t??0;n<e.length;n++){if(10===e[n])return{preceding:n,index:n+1,carriage:!1};if(13===e[n])return{preceding:n,index:n+1,carriage:!0}}return null}(oq(this,l,"f"),oq(this,o,"f")));){if(t.carriage&&null==oq(this,o,"f")){oV(this,o,t.index,"f");continue}if(null!=oq(this,o,"f")&&(t.index!==oq(this,o,"f")+1||t.carriage)){r.push(aL(oq(this,l,"f").subarray(0,oq(this,o,"f")-1))),oV(this,l,oq(this,l,"f").subarray(oq(this,o,"f")),"f"),oV(this,o,null,"f");continue}let e=null!==oq(this,o,"f")?t.preceding-1:t.preceding,n=aL(oq(this,l,"f").subarray(0,e));
16r.push(n),oV(this,l,oq(this,l,"f").subarray(t.index),"f"),oV(this,o,null,"f")}return r}flush(){return oq(this,l,"f").length?this.decode("\n"):[]}}l=new WeakMap,o=new WeakMap,aO.NEWLINE_CHARS=new Set(["\n","\r"]),aO.NEWLINE_REGEXP=/\r\n|[\n\r]/g;let az={off:0,error:200,warn:300,info:400,debug:500},aF=(e,t,n)=>{if(e){if(Object.prototype.hasOwnProperty.call(az,e))return e;aV(n).warn(`${t} was set to ${JSON.stringify(e)}, expected one of ${JSON.stringify(Object.keys(az))}`)}};function aB(){}function a$(e,t,n){return!t||az[e]>az[n]?aB:t[e].bind(t)}let aH={error:aB,warn:aB,info:aB,debug:aB},aU=new WeakMap;function aV(e){let t=e.logger,n=e.logLevel??"off";if(!t)return aH;let r=aU.get(t);if(r&&r[0]===n)return r[1];let i={error:a$("error",t,n),warn:a$("warn",t,n),info:a$("info",t,n),debug:a$("debug",t,n)};return aU.set(t,[n,i]),i}let aq=e=>(e.options&&(e.options={...e.options},delete e.options.headers),e.headers&&(e.headers=Object.fromEntries((e.headers instanceof Headers?[...e.headers]:Object.entries(e.headers)).map(([e,t])=>[e,"authorization"===e.toLowerCase()||"cookie"===e.toLowerCase()||"set-cookie"===e.toLowerCase()?"***":t]))),"retryOfRequestLogID"in e&&(e.retryOfRequestLogID&&(e.retryOf=e.retryOfRequestLogID),delete e.retryOfRequestLogID),e);class aW{constructor(e,t,n){this.iterator=e,a.set(this,void 0),this.controller=t,oV(this,a,n,"f")}static fromSSEResponse(e,t,n){let r=!1,i=n?aV(n):console;return new aW(async function*(){if(r)throw new oX("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let n=!1;try{for await(let n of aK(e,t))try{yield JSON.parse(n.data)}catch(e){throw i.error("Could not parse message into JSON:",n.data),i.error("From chunk:",n.raw),e}n=!0}catch(e){if(oW(e))return;throw e}finally{n||t.abort()}},t,n)}static fromReadableStream(e,t,n){let r=!1;async function*i(){let t=new aO;for await(let n of ai(e))for(let e of t.decode(n))yield e;for(let e of t.flush())yield e}return new aW(async function*(){if(r)throw new oX("Cannot iterate over a consumed stream, use `.tee()` to split the stream.");r=!0;let e=!1;try{for await(let t of i())!e&&t&&(yield JSON.parse(t));e=!0}catch(e){if(oW(e))return;throw e}finally{e||t.abort()}},t,n)}[(a=new WeakMap,Symbol.asyncIterator)](){return this.iterator()}tee(){let e=[],t=[],n=this.iterator(),r=r=>({next:()=>{if(0===r.length){let r=n.next();e.push(r),t.push(r)}return r.shift()}});return[new aW(()=>r(e),this.controller,oq(this,a,"f")),new aW(()=>r(t),this.controller,oq(this,a,"f"))]}toReadableStream(){let e,t=this;return ar({async start(){e=t[Symbol.asyncIterator]()},async pull(t){try{let{value:n,done:r}=await e.next();if(r)return t.close();let i=aD(JSON.stringify(n)+"\n");t.enqueue(i)}catch(e){t.error(e)}},async cancel(){await e.return?.()}})}}async function*aK(e,t){if(!e.body){if(t.abort(),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product)throw new oX("The default react-native fetch implementation does not support streaming. Please use expo/fetch: https://docs.expo.dev/versions/latest/sdk/expo/#expofetch-api");throw new oX("Attempted to iterate over a response with no body")}let n=new aJ,r=new aO;for await(let t of aX(ai(e.body)))for(let e of r.decode(t)){let t=n.decode(e);t&&(yield t)}for(let e of r.flush()){let t=n.decode(e);t&&(yield t)}}async function*aX(e){let t=new Uint8Array;for await(let n of e){let e;if(null==n)continue;let r=n instanceof ArrayBuffer?new Uint8Array(n):"string"==typeof n?aD(n):n,i=new Uint8Array(t.length+r.length);for(i.set(t),i.set(r,t.length),t=i;-1!==(e=function(e){for(let t=0;t<e.length-1;t++){if(10===e[t]&&10===e[t+1]||13===e[t]&&13===e[t+1])return t+2;if(13===e[t]&&10===e[t+1]&&t+3<e.length&&13===e[t+2]&&10===e[t+3])return t+4}return -1}(t));)yield t.slice(0,e),t=t.slice(e)}t.length>0&&(yield t)}class aJ{constructor(){this.event=null,this.data=[],this.chunks=[]}decode(e){var t;let n;if(e.endsWith("\r")&&(e=e.substring(0,e.length-1)),!e){if(!this.event&&!this.data.length)return null;let e={event:this.event,data:this.data.join("\n"),raw:this.chunks};return this.event=null,this.data=[],this.chunks=[],e}if(this.chunks.push(e),e.startsWith(":"))return null;let[r,i,l]=-1!==(n=(t=e).indexOf(":"))?[t.substring(0,n),":",t.substring(n+1)]:[t,"",""];return l.startsWith(" ")&&(l=l.substring(1)),"event"===r?this.event=l:"data"===r&&this.data.push(l),null}}async function aG(e,t){let{response:n,requestLogID:r,retryOfRequestLogID:i,startTime:l}=t,o=await (async()=>
16{if(t.options.stream)return(aV(e).debug("response",n.status,n.url,n.headers,n.body),t.options.__streamClass)?t.options.__streamClass.fromSSEResponse(n,t.controller,e):aW.fromSSEResponse(n,t.controller,e);if(204===n.status)return null;if(t.options.__binaryResponse)return n;let r=n.headers.get("content-type"),i=r?.split(";")[0]?.trim();return i?.includes("application/json")||i?.endsWith("+json")?await n.json():await n.text()})();return aV(e).debug(`[${r}] response parsed`,aq({retryOfRequestLogID:i,url:n.url,status:n.status,body:o,durationMs:Date.now()-l})),o}class aZ extends Promise{constructor(e,t,n=aG){super(e=>{e(null)}),this.responsePromise=t,this.parseResponse=n,s.set(this,void 0),oV(this,s,e,"f")}_thenUnwrap(e){return new aZ(oq(this,s,"f"),this.responsePromise,async(t,n)=>e(await this.parseResponse(t,n),n))}asResponse(){return this.responsePromise.then(e=>e.response)}async withResponse(){let[e,t]=await Promise.all([this.parse(),this.asResponse()]);return{data:e,response:t}}parse(){return this.parsedPromise||(this.parsedPromise=this.responsePromise.then(e=>this.parseResponse(oq(this,s,"f"),e))),this.parsedPromise}then(e,t){return this.parse().then(e,t)}catch(e){return this.parse().catch(e)}finally(e){return this.parse().finally(e)}}s=new WeakMap;let aQ=Symbol("brand.privateNullableHeaders"),aY=e=>{let t=new Headers,n=new Set;for(let r of e){let e=new Set;for(let[i,l]of function*(e){let t;if(!e)return;if(aQ in e){let{values:t,nulls:n}=e;for(let e of(yield*t.entries(),n))yield[e,null];return}let n=!1;for(let r of(e instanceof Headers?t=e.entries():o8(e)?t=e:(n=!0,t=Object.entries(e??{})),t)){let e=r[0];if("string"!=typeof e)throw TypeError("expected header name to be a string");let t=o8(r[1])?r[1]:[r[1]],i=!1;for(let r of t)void 0!==r&&(n&&!i&&(i=!0,yield[e,null]),yield[e,r])}}(r)){let r=i.toLowerCase();e.has(r)||(t.delete(i),e.add(r)),null===l?(t.delete(i),n.add(r)):(t.append(i,l),n.delete(r))}}return{[aQ]:!0,values:t,nulls:n}},a1=e=>void 0!==globalThis.process?globalThis.process.env?.[e]?.trim()??void 0:void 0!==globalThis.Deno?globalThis.Deno.env?.get?.(e)?.trim():void 0,a0={production:"http://localhost:5003",development:"http://localhost:5003"};class a2{constructor({baseURL:e=a1("AGENTEX_BASE_URL"),apiKey:t=a1("AGENTEX_SDK_API_KEY")??null,...n}={}){u.add(this),d.set(this,void 0),this.agents=new a_(this),this.tasks=new aM(this),this.messages=new aT(this),this.spans=new aA(this),this.states=new aR(this),this.events=new aN(this),this.tracker=new aP(this),this.deploymentHistory=new aI(this);const r={apiKey:t,...n,baseURL:e,environment:n.environment??"production"};if(e&&n.environment)throw new oX("Ambiguous URL; The `baseURL` option (or AGENTEX_BASE_URL env var) and the `environment` option are given. If you want to use the environment you must pass baseURL: null");this.baseURL=r.baseURL||a0[r.environment||"production"],this.timeout=r.timeout??c.DEFAULT_TIMEOUT,this.logger=r.logger??console;const i="warn";this.logLevel=i,this.logLevel=aF(r.logLevel,"ClientOptions.logLevel",this)??aF(a1("AGENTEX_LOG"),"process.env['AGENTEX_LOG']",this)??i,this.fetchOptions=r.fetchOptions,this.maxRetries=r.maxRetries??2,this.fetch=r.fetch??function(){if("u">typeof fetch)return fetch;throw Error("`fetch` is not defined as a global; Either pass `fetch` to the client, `new Agentex({ fetch })` or polyfill the global, `globalThis.fetch = fetch`")}(),oV(this,d,ao,"f"),this._options=r,this.apiKey=t}withOptions(e){return new this.constructor({...this._options,environment:e.environment?e.environment:void 0,baseURL:e.environment?void 0:this.baseURL,maxRetries:this.maxRetries,timeout:this.timeout,logger:this.logger,logLevel:this.logLevel,fetch:this.fetch,fetchOptions:this.fetchOptions,apiKey:this.apiKey,...e})}defaultQuery(){return this._options.defaultQuery}validateHeaders({values:e,nulls:t}){}async authHeaders(e){if(null!=this.apiKey)return aY([{Authorization:`Bearer ${this.apiKey}`}])}stringifyQuery(e){return function(e,t={}){let n,r=e,i=function(e=am){let t;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
16if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let n=e.charset||am.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");let r=aa;if(void 0!==e.format){if(!ac(au,e.format))throw TypeError("Unknown format option provided.");r=e.format}let i=au[r],l=am.filter;if(("function"==typeof e.filter||o9(e.filter))&&(l=e.filter),t=e.arrayFormat&&e.arrayFormat in ap?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":am.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let o=void 0===e.allowDots?!0==!!e.encodeDotInKeys||am.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:am.addQueryPrefix,allowDots:o,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:am.allowEmptyArrays,arrayFormat:t,charset:n,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:am.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?am.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:am.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:am.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:am.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:am.encodeValuesOnly,filter:l,format:r,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:am.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:am.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:am.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):o9(i.filter)&&(n=i.filter);let l=[];if("object"!=typeof r||null===r)return"";let o=ap[i.arrayFormat],a="comma"===o&&i.commaRoundTrip;n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);let s=new WeakMap;for(let e=0;e<n.length;++e){let t=n[e];i.skipNulls&&null===r[t]||ah(l,function e(t,n,r,i,l,o,a,s,u,c,d,f,p,h,m,g,y,x){var v,b;let k,w=t,S=x,C=0,E=!1;for(;void 0!==(S=S.get(ag))&&!E;){let e=S.get(t);if(C+=1,void 0!==e)if(e===C)throw RangeError("Cyclic object value");else E=!0;void 0===S.get(ag)&&(C=0)}if("function"==typeof c?w=c(n,w):w instanceof Date?w=p?.(w):"comma"===r&&o9(w)&&(w=af(w,function(e){return e instanceof Date?p?.(e):e})),null===w){if(o)return u&&!g?u(n,am.encoder,y,"key",h):n;w=""}if("string"==typeof(v=w)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||(b=w)&&"object"==typeof b&&b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b)){if(u){let e=g?n:u(n,am.encoder,y,"key",h);return[m?.(e)+"="+m?.(u(w,am.encoder,y,"value",h))]}return[m?.(n)+"="+m?.(String(w))]}let j=[];if(void 0===w)return j;if("comma"===r&&o9(w))g&&u&&(w=af(w,u)),k=[{value:w.length>0?w.join(",")||null:void 0}];else if(o9(c))k=c;else{let e=Object.keys(w);k=d?e.sort(d):e}let T=s?String(n).replace(/\./g,"%2E"):String(n),_=i&&o9(w)&&1===w.length?T+"[]":T;if(l&&o9(w)&&0===w.length)return _+"[]";for(let n=0;n<k.length;++n){let v=k[n],b="object"==typeof v&&void 0!==v.value?v.value:w[v];if(a&&null===b)continue;let S=f&&s?v.replace(/\./g,"%2E"):v,E=o9(w)?"function"==typeof r?r(_,S):_:_+(f?"."+S:"["+S+"]");x.set(t,C);let T=new WeakMap;T.set(ag,x),ah(j,e(b,E,r,i,l,o,a,s,"comma"===r&&g&&o9(w)?null:u,c,d,f,p,h,m,g,y,T))}return j}(r[t],t,o,a,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,s))}let u=l.join(i.delimiter),c=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?c+="utf8=%26%2310003%3B&":c+="utf8=%E2%9C%93&"),u.length>0?c+u:""}(e,{arrayFormat:"comma"})}getUserAgent(){return`${this.constructor.name}/JS ${ae}`}defaultIdempotencyKey(){return`stainless-node-retry-${j()}`}makeStatusError(e,t,n,r){return oJ.generate(e,t,n,r)}buildURL(e,t,n){let r=!oq(this,u,"m",f).call(this)&&n||this.baseURL,i=new URL(o6.test(e)?e:r+(r.endsWith("/")&&e.startsWith("/")?e.slice(1):e)),l=this.defaultQuery();return!function(e){if(!e)return!0;for(let t in e)return!1;return!0}(l)&&(t={...l,...t}),"object"==typeof t&&t&&!Array.isArray(t)&&(i.search=this.stringifyQuery(t)),i.toString()}async prepareOptions(e){}
16async prepareRequest(e,{url:t,options:n}){}get(e,t){return this.methodRequest("get",e,t)}post(e,t){return this.methodRequest("post",e,t)}patch(e,t){return this.methodRequest("patch",e,t)}put(e,t){return this.methodRequest("put",e,t)}delete(e,t){return this.methodRequest("delete",e,t)}methodRequest(e,t,n){return this.request(Promise.resolve(n).then(n=>({method:e,path:t,...n})))}request(e,t=null){return new aZ(this,this.makeRequest(e,t,void 0))}async makeRequest(e,t,n){let r=await e,i=r.maxRetries??this.maxRetries;null==t&&(t=i),await this.prepareOptions(r);let{req:l,url:o,timeout:a}=await this.buildRequest(r,{retryCount:i-t});await this.prepareRequest(l,{url:o,options:r});let s="log_"+(0x1000000*Math.random()|0).toString(16).padStart(6,"0"),u=void 0===n?"":`, retryOf: ${n}`,c=Date.now();if(aV(this).debug(`[${s}] sending request`,aq({retryOfRequestLogID:n,method:r.method,url:o,options:r,headers:l.headers})),r.signal?.aborted)throw new oG;let d=new AbortController,f=await this.fetchWithTimeout(o,l,a,d).catch(oK),p=Date.now();if(f instanceof globalThis.Error){let e=`retrying, ${t} attempts remaining`;if(r.signal?.aborted)throw new oG;let i=oW(f)||/timed? ?out/i.test(String(f)+("cause"in f?String(f.cause):""));if(t)return aV(this).info(`[${s}] connection ${i?"timed out":"failed"} - ${e}`),aV(this).debug(`[${s}] connection ${i?"timed out":"failed"} (${e})`,aq({retryOfRequestLogID:n,url:o,durationMs:p-c,message:f.message})),this.retryRequest(r,t,n??s);if(aV(this).info(`[${s}] connection ${i?"timed out":"failed"} - error; no more retries left`),aV(this).debug(`[${s}] connection ${i?"timed out":"failed"} (error; no more retries left)`,aq({retryOfRequestLogID:n,url:o,durationMs:p-c,message:f.message})),i)throw new oQ;throw new oZ({cause:f})}let h=`[${s}${u}] ${l.method} ${o} ${f.ok?"succeeded":"failed"} with status ${f.status} in ${p-c}ms`;if(!f.ok){let e=await this.shouldRetry(f);if(t&&e){let e=`retrying, ${t} attempts remaining`;return await al(f.body),aV(this).info(`${h} - ${e}`),aV(this).debug(`[${s}] response error (${e})`,aq({retryOfRequestLogID:n,url:f.url,status:f.status,headers:f.headers,durationMs:p-c})),this.retryRequest(r,t,n??s,f.headers)}let i=e?"error; no more retries left":"error; not retryable";aV(this).info(`${h} - ${i}`);let l=await f.text().catch(e=>oK(e).message),o=(e=>{try{return JSON.parse(e)}catch(e){return}})(l),a=o?void 0:l;throw aV(this).debug(`[${s}] response error (${i})`,aq({retryOfRequestLogID:n,url:f.url,status:f.status,headers:f.headers,message:a,durationMs:Date.now()-c})),this.makeStatusError(f.status,o,a,f.headers)}return aV(this).info(h),aV(this).debug(`[${s}] response start`,aq({retryOfRequestLogID:n,url:f.url,status:f.status,headers:f.headers,durationMs:p-c})),{response:f,options:r,controller:d,requestLogID:s,retryOfRequestLogID:n,startTime:c}}async fetchWithTimeout(e,t,n,r){let{signal:i,method:l,...o}=t||{};i&&i.addEventListener("abort",()=>r.abort());let a=setTimeout(()=>r.abort(),n),s=globalThis.ReadableStream&&o.body instanceof globalThis.ReadableStream||"object"==typeof o.body&&null!==o.body&&Symbol.asyncIterator in o.body,u={signal:r.signal,...s?{duplex:"half"}:{},method:"GET",...o};l&&(u.method=l.toUpperCase());try{return await this.fetch.call(void 0,e,u)}finally{clearTimeout(a)}}async shouldRetry(e){let t=e.headers.get("x-should-retry");return"true"===t||"false"!==t&&(408===e.status||409===e.status||429===e.status||!!(e.status>=500))}async retryRequest(e,t,n,r){let i,l,o=r?.get("retry-after-ms");if(o){let e=parseFloat(o);Number.isNaN(e)||(i=e)}let a=r?.get("retry-after");if(a&&!i){let e=parseFloat(a);i=Number.isNaN(e)?Date.parse(a)-Date.now():1e3*e}if(!(i&&0<=i&&i<6e4)){let n=e.maxRetries??this.maxRetries;i=this.calculateDefaultRetryTimeoutMillis(t,n)}return await (l=i,new Promise(e=>setTimeout(e,l))),this.makeRequest(e,t-1,n)}calculateDefaultRetryTimeoutMillis(e,t){return Math.min(.5*Math.pow(2,t-e),8)*(1-.25*Math.random())*1e3}async buildRequest(e,{retryCount:t=0}={}){let n={...e},{method:r,path:i,query:l,defaultBaseURL:o}=n,a=this.buildURL(i,l,o);"timeout"in n&&((e,t)=>{if("number"!=typeof t||!Number.isInteger(t))throw new oX(`${e} must be an integer`);if(t<0)throw new oX(`${e} must be a positive integer`)})("timeout",n.timeout),n.timeout=n.timeout??this.timeout;let{bodyHeaders:s,body:u}=this.buildBody({options:n}),c=await this.buildHeaders({options:e,method:r,bodyHeaders:s,retryCount:t});return{req:{method:r,headers:c,...n.signal&&{signal:n.signal},...globalThis.ReadableStream&&u instanceof globalThis.ReadableStream&&{duplex:"half"},...u&&{body:u},...this.fetchOptions??{},...n.fetchOptions??{}},url:a,timeout:n.timeout}}async buildHeaders({options:e,method:n,bodyHeaders:r,retryCount:i}){let l={};this.idempotencyHeader&&"get"!==n&&(e.idempotencyKey||(e.idempotencyKey=this.defaultIdempotencyKey()),l[this.idempotencyHeader]=e.idempotencyKey);let o=aY([l,{Accept:"application/json","User-Agent":this.getUserAgent(),"X-Stainless-Retry-Count":String(i),...e.timeout?{"X-Stainless-Timeout":String(Math.trunc(e.timeout/1e3))}:{},...t??(t=(()=>{let e="u">typeof Deno&&null!=Deno.build?"deno":"u">typeof EdgeRuntime?"edge":"[object process]"===Object.prototype.toString.call(void 0!==globalThis.process?globalThis.process:0)?"node":"unknown";if("deno"===e)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ae,"X-Stainless-OS":an(Deno.build.os),"X-Stainless-Arch":at(Deno.build.arch),"X-Stainless-Runtime":"deno","X-Stainless-Runtime-Version":"string"==typeof Deno.version?Deno.version:Deno.version?.deno??"unknown"};if("u">typeof EdgeRuntime)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ae,"X-Stainless-OS":"Unknown","X-Stainless-Arch":`other:${EdgeRuntime}`,"X-Stainless-Runtime":"edge","X-Stainless-Runtime-Version":globalThis.process.version};if("node"===e)return{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ae,"X-Stainless-OS":an(globalThis.process.platform??"unknown"),"X-Stainless-Arch":at(globalThis.process.arch??"unknown"),"X-Stainless-Runtime":"node","X-Stainless-Runtime-Version":globalThis.process.version??"unknown"};let t=function(){if("u"<typeof navigator||!navigator)return null;for(let{key:e,pattern:t}of[{key:"edge",pattern:/Edge(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/MSIE(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"ie",pattern:/Trident(?:.*rv\:(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"chrome",pattern:/Chrome(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"firefox",pattern:/Firefox(?:\W+(\d+)\.(\d+)(?:\.(\d+))?)?/},{key:"safari",pattern:/(?:Version\W+(\d+)\.(\d+)(?:\.(\d+))?)?(?:\W+Mobile\S*)?\W+Safari/}]){let n=t.exec(navigator.userAgent);if(n){let t=n[1]||0,r=n[2]||0,i=n[3]||0;return{browser:e,version:`${t}.${r}.${i}`}}}return null}();return t?{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ae,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":`browser:${t.browser}`,"X-Stainless-Runtime-Version":t.version}:{"X-Stainless-Lang":"js","X-Stainless-Package-Version":ae,"X-Stainless-OS":"Unknown","X-Stainless-Arch":"unknown","X-Stainless-Runtime":"unknown","X-Stainless-Runtime-Version":"unknown"}})())},await this.authHeaders(e),this._options.defaultHeaders,r,e.headers]);return this.validateHeaders(o),o.values}buildBody({options:{body:e,headers:t}}
16){var n;let r;if(!e)return{bodyHeaders:void 0,body:void 0};let i=aY([t]);return ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof DataView||"string"==typeof e&&i.values.has("content-type")||globalThis.Blob&&e instanceof globalThis.Blob||e instanceof FormData||e instanceof URLSearchParams||globalThis.ReadableStream&&e instanceof globalThis.ReadableStream?{bodyHeaders:void 0,body:e}:"object"==typeof e&&(Symbol.asyncIterator in e||Symbol.iterator in e&&"next"in e&&"function"==typeof e.next)?{bodyHeaders:void 0,body:(r=Symbol.asyncIterator in(n=e)?n[Symbol.asyncIterator]():n[Symbol.iterator](),ar({start(){},async pull(e){let{done:t,value:n}=await r.next();t?e.close():e.enqueue(n)},async cancel(){await r.return?.()}}))}:oq(this,d,"f").call(this,{body:e,headers:i})}}c=a2,d=new WeakMap,u=new WeakSet,f=function(){return this.baseURL!==a0[this._options.environment||"production"]},a2.Agentex=c,a2.DEFAULT_TIMEOUT=6e4,a2.AgentexError=oX,a2.APIError=oJ,a2.APIConnectionError=oZ,a2.APIConnectionTimeoutError=oQ,a2.APIUserAbortError=oG,a2.NotFoundError=o2,a2.ConflictError=o4,a2.RateLimitError=o7,a2.BadRequestError=oY,a2.AuthenticationError=o1,a2.InternalServerError=o5,a2.PermissionDeniedError=o0,a2.UnprocessableEntityError=o3,a2.toFile=ab,a2.Agents=a_,a2.Tasks=aM,a2.Messages=aT,a2.Spans=aA,a2.States=aR,a2.Events=aN,a2.Tracker=aP,a2.DeploymentHistoryResource=aI,e.s([],291749),e.s(["default",0,a2],883348)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.