@townco/gui-template 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,48 +0,0 @@
1
- import{a as Tn,r as ye,g as Gs,b as au}from"./react-BUwpDnu9.js";var wr={exports:{}},_r={};var io;function lu(){return io||(io=1,(function(e){function t(C,L){var S=C.length;C.push(L);e:for(;0<S;){var Y=S-1>>>1,m=C[Y];if(0<i(m,L))C[Y]=L,C[S]=m,S=Y;else break e}}function n(C){return C.length===0?null:C[0]}function r(C){if(C.length===0)return null;var L=C[0],S=C.pop();if(S!==L){C[0]=S;e:for(var Y=0,m=C.length,ve=m>>>1;Y<ve;){var _e=2*(Y+1)-1,g=C[_e],se=_e+1,Se=C[se];if(0>i(g,S))se<m&&0>i(Se,g)?(C[Y]=Se,C[se]=S,Y=se):(C[Y]=g,C[_e]=S,Y=_e);else if(se<m&&0>i(Se,S))C[Y]=Se,C[se]=S,Y=se;else break e}}return L}function i(C,L){var S=C.sortIndex-L.sortIndex;return S!==0?S:C.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,c=null,h=3,d=!1,p=!1,b=!1,k=!1,y=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function E(C){for(var L=n(u);L!==null;){if(L.callback===null)r(u);else if(L.startTime<=C)r(u),L.sortIndex=L.expirationTime,t(l,L);else break;L=n(u)}}function T(C){if(b=!1,E(C),!p)if(n(l)!==null)p=!0,v||(v=!0,D());else{var L=n(u);L!==null&&O(T,L.startTime-C)}}var v=!1,M=-1,I=5,W=-1;function x(){return k?!0:!(e.unstable_now()-W<I)}function N(){if(k=!1,v){var C=e.unstable_now();W=C;var L=!0;try{e:{p=!1,b&&(b=!1,_(M),M=-1),d=!0;var S=h;try{t:{for(E(C),c=n(l);c!==null&&!(c.expirationTime>C&&x());){var Y=c.callback;if(typeof Y=="function"){c.callback=null,h=c.priorityLevel;var m=Y(c.expirationTime<=C);if(C=e.unstable_now(),typeof m=="function"){c.callback=m,E(C),L=!0;break t}c===n(l)&&r(l),E(C)}else r(l);c=n(l)}if(c!==null)L=!0;else{var ve=n(u);ve!==null&&O(T,ve.startTime-C),L=!1}}break e}finally{c=null,h=S,d=!1}L=void 0}}finally{L?D():v=!1}}}var D;if(typeof w=="function")D=function(){w(N)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,F=G.port2;G.port1.onmessage=N,D=function(){F.postMessage(null)}}else D=function(){y(N,0)};function O(C,L){M=y(function(){C(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(C){switch(h){case 1:case 2:case 3:var L=3;break;default:L=h}var S=h;h=L;try{return C()}finally{h=S}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(C,L){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var S=h;h=C;try{return L()}finally{h=S}},e.unstable_scheduleCallback=function(C,L,S){var Y=e.unstable_now();switch(typeof S=="object"&&S!==null?(S=S.delay,S=typeof S=="number"&&0<S?Y+S:Y):S=Y,C){case 1:var m=-1;break;case 2:m=250;break;case 5:m=1073741823;break;case 4:m=1e4;break;default:m=5e3}return m=S+m,C={id:f++,callback:L,priorityLevel:C,startTime:S,expirationTime:m,sortIndex:-1},S>Y?(C.sortIndex=S,t(u,C),n(l)===null&&C===n(u)&&(b?(_(M),M=-1):b=!0,O(T,S-Y))):(C.sortIndex=m,t(l,C),p||d||(p=!0,v||(v=!0,D()))),C},e.unstable_shouldYield=x,e.unstable_wrapCallback=function(C){var L=h;return function(){var S=h;h=L;try{return C.apply(this,arguments)}finally{h=S}}}})(_r)),_r}var oo;function ow(){return oo||(oo=1,wr.exports=lu()),wr.exports}const so=e=>{let t;const n=new Set,r=(u,f)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const h=t;t=f??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(d=>d(t,h))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(r,i,a);return a},uu=(e=>e?so(e):so),cu=e=>e;function fu(e,t=cu){const n=Tn.useSyncExternalStore(e.subscribe,Tn.useCallback(()=>t(e.getState()),[e,t]),Tn.useCallback(()=>t(e.getInitialState()),[e,t]));return Tn.useDebugValue(n),n}const ao=e=>{const t=uu(e),n=r=>fu(t,r);return Object.assign(n,t),n},sw=(e=>e?ao(e):ao);function A(e,t,n){function r(a,l){var u;Object.defineProperty(a,"_zod",{value:a._zod??{},enumerable:!1}),(u=a._zod).traits??(u.traits=new Set),a._zod.traits.add(e),t(a,l);for(const f in s.prototype)f in a||Object.defineProperty(a,f,{value:s.prototype[f].bind(a)});a._zod.constr=s,a._zod.def=l}const i=n?.Parent??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function s(a){var l;const u=n?.Parent?new o:this;r(u,a),(l=u._zod).deferred??(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>n?.Parent&&a instanceof n.Parent?!0:a?._zod?.traits?.has(e)}),Object.defineProperty(s,"name",{value:e}),s}class Zt extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ys extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Xs={};function pt(e){return Xs}function du(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function Yr(e,t){return typeof t=="bigint"?t.toString():t}function ur(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function wi(e){return e==null}function _i(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function hu(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l?.[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,s=Number.parseInt(e.toFixed(o).replace(".","")),a=Number.parseInt(t.toFixed(o).replace(".",""));return s%a/10**o}const lo=Symbol("evaluating");function ue(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==lo)return r===void 0&&(r=lo,r=n()),r},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}function zt(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Et(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function uo(e){return JSON.stringify(e)}const Js="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function gn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const pu=ur(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Vt(e){if(gn(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(gn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Qs(e){return Vt(e)?{...e}:Array.isArray(e)?[...e]:e}const mu=new Set(["string","number","symbol"]);function Ut(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function kt(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function H(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function gu(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const yu={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function bu(e,t){const n=e._zod.def,r=Et(e._zod.def,{get shape(){const i={};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&(i[o]=n.shape[o])}return zt(this,"shape",i),i},checks:[]});return kt(e,r)}function ku(e,t){const n=e._zod.def,r=Et(e._zod.def,{get shape(){const i={...e._zod.def.shape};for(const o in t){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);t[o]&&delete i[o]}return zt(this,"shape",i),i},checks:[]});return kt(e,r)}function xu(e,t){if(!Vt(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Et(e._zod.def,{get shape(){const o={...e._zod.def.shape,...t};return zt(this,"shape",o),o},checks:[]});return kt(e,i)}function vu(e,t){if(!Vt(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return zt(this,"shape",r),r},checks:e._zod.def.checks};return kt(e,n)}function wu(e,t){const n=Et(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return zt(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return kt(e,n)}function _u(e,t,n){const r=Et(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=e?new e({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)o[s]=e?new e({type:"optional",innerType:i[s]}):i[s];return zt(this,"shape",o),o},checks:[]});return kt(t,r)}function Su(e,t,n){const r=Et(t._zod.def,{get shape(){const i=t._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new e({type:"nonoptional",innerType:i[s]}))}else for(const s in i)o[s]=new e({type:"nonoptional",innerType:i[s]});return zt(this,"shape",o),o},checks:[]});return kt(t,r)}function Ft(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Mt(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function In(e){return typeof e=="string"?e:e?.message}function mt(e,t,n){const r={...e,path:e.path??[]};if(!e.message){const i=In(e.inst?._zod.def?.error?.(e))??In(t?.error?.(e))??In(n.customError?.(e))??In(n.localeError?.(e))??"Invalid input";r.message=i}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Si(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function yn(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const Ks=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Yr,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ea=A("$ZodError",Ks),ta=A("$ZodError",Ks,{Parent:Error});function Cu(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Au(e,t=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>r({issues:s}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(t(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(t(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return r(e),n}const Ci=e=>(t,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Zt;if(s.issues.length){const a=new(i?.Err??e)(s.issues.map(l=>mt(l,o,pt())));throw Js(a,i?.callee),a}return s.value},Ai=e=>async(t,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(i?.Err??e)(s.issues.map(l=>mt(l,o,pt())));throw Js(a,i?.callee),a}return s.value},cr=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Zt;return o.issues.length?{success:!1,error:new(e??ea)(o.issues.map(s=>mt(s,i,pt())))}:{success:!0,data:o.value}},zu=cr(ta),fr=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(s=>mt(s,i,pt())))}:{success:!0,data:o.value}},Eu=fr(ta),Tu=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ci(e)(t,n,i)},Iu=e=>(t,n,r)=>Ci(e)(t,n,r),Ou=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Ai(e)(t,n,i)},Pu=e=>async(t,n,r)=>Ai(e)(t,n,r),Ru=e=>(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return cr(e)(t,n,i)},Du=e=>(t,n,r)=>cr(e)(t,n,r),Lu=e=>async(t,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return fr(e)(t,n,i)},$u=e=>async(t,n,r)=>fr(e)(t,n,r),Nu=/^[cC][^\s-]{8,}$/,Fu=/^[0-9a-z]+$/,Mu=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Zu=/^[0-9a-vA-V]{20}$/,ju=/^[A-Za-z0-9]{27}$/,Bu=/^[a-zA-Z0-9_-]{21}$/,Vu=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Uu=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,co=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Wu=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Hu="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function qu(){return new RegExp(Hu,"u")}const Gu=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Yu=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Xu=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Ju=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Qu=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,na=/^[A-Za-z0-9_-]*$/,Ku=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ec=/^\+(?:[0-9]){6,14}[0-9]$/,ra="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",tc=new RegExp(`^${ra}$`);function ia(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function nc(e){return new RegExp(`^${ia(e)}$`)}function rc(e){const t=ia({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${ra}T(?:${r})$`)}const ic=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},oc=/^-?\d+$/,sc=/^-?\d+(?:\.\d+)?/,ac=/^(?:true|false)$/i,lc=/^[^A-Z]*$/,uc=/^[^a-z]*$/,Ie=A("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),oa={number:"number",bigint:"bigint",object:"date"},sa=A("$ZodCheckLessThan",(e,t)=>{Ie.init(e,t);const n=oa[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),aa=A("$ZodCheckGreaterThan",(e,t)=>{Ie.init(e,t);const n=oa[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cc=A("$ZodCheckMultipleOf",(e,t)=>{Ie.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):hu(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),fc=A("$ZodCheckNumberFormat",(e,t)=>{Ie.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=yu[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=i,a.maximum=o,n&&(a.pattern=oc)}),e._zod.check=s=>{const a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}a<i&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),a>o&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:o,inst:e})}}),dc=A("$ZodCheckMaxLength",(e,t)=>{var n;Ie.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!wi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const s=Si(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),hc=A("$ZodCheckMinLength",(e,t)=>{var n;Ie.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!wi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const s=Si(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),pc=A("$ZodCheckLengthEquals",(e,t)=>{var n;Ie.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!wi(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,o=i.length;if(o===t.length)return;const s=Si(i),a=o>t.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),dr=A("$ZodCheckStringFormat",(e,t)=>{var n,r;Ie.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),mc=A("$ZodCheckRegex",(e,t)=>{dr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),gc=A("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=lc),dr.init(e,t)}),yc=A("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=uc),dr.init(e,t)}),bc=A("$ZodCheckIncludes",(e,t)=>{Ie.init(e,t);const n=Ut(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),kc=A("$ZodCheckStartsWith",(e,t)=>{Ie.init(e,t);const n=new RegExp(`^${Ut(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),xc=A("$ZodCheckEndsWith",(e,t)=>{Ie.init(e,t);const n=new RegExp(`.*${Ut(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),vc=A("$ZodCheckOverwrite",(e,t)=>{Ie.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class wc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
2
- `).filter(s=>s),i=Math.min(...r.map(s=>s.length-s.trimStart().length)),o=r.map(s=>s.slice(i)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const t=Function,n=this?.args,i=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...n,i.join(`
3
- `))}}const _c={major:4,minor:1,patch:12},pe=A("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=_c;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const o of i._zod.onattach)o(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,a,l)=>{let u=Ft(s),f;for(const c of a){if(c._zod.def.when){if(!c._zod.def.when(s))continue}else if(u)continue;const h=s.issues.length,d=c._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new Zt;if(f||d instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await d,s.issues.length!==h&&(u||(u=Ft(s,h)))});else{if(s.issues.length===h)continue;u||(u=Ft(s,h))}}return f?f.then(()=>s):s},o=(s,a,l)=>{if(Ft(s))return s.aborted=!0,s;const u=i(a,r,l);if(u instanceof Promise){if(l.async===!1)throw new Zt;return u.then(f=>e._zod.parse(f,l))}return e._zod.parse(u,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const u=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return u instanceof Promise?u.then(f=>o(f,s,a)):o(u,s,a)}const l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new Zt;return l.then(u=>i(u,r,a))}return i(l,r,a)}}e["~standard"]={validate:i=>{try{const o=zu(e,i);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Eu(e,i).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}}),zi=A("$ZodString",(e,t)=>{pe.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ic(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),he=A("$ZodStringFormat",(e,t)=>{dr.init(e,t),zi.init(e,t)}),Sc=A("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Uu),he.init(e,t)}),Cc=A("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=co(r))}else t.pattern??(t.pattern=co());he.init(e,t)}),Ac=A("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Wu),he.init(e,t)}),zc=A("$ZodURL",(e,t)=>{he.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Ku.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Ec=A("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=qu()),he.init(e,t)}),Tc=A("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Bu),he.init(e,t)}),Ic=A("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Nu),he.init(e,t)}),Oc=A("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Fu),he.init(e,t)}),Pc=A("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Mu),he.init(e,t)}),Rc=A("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Zu),he.init(e,t)}),Dc=A("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=ju),he.init(e,t)}),Lc=A("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=rc(t)),he.init(e,t)}),$c=A("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=tc),he.init(e,t)}),Nc=A("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=nc(t)),he.init(e,t)}),Fc=A("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Vu),he.init(e,t)}),Mc=A("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Gu),he.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),Zc=A("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Yu),he.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),jc=A("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Xu),he.init(e,t)}),Bc=A("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Ju),he.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,o]=r;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function la(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Vc=A("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Qu),he.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{la(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Uc(e){if(!na.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return la(n)}const Wc=A("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=na),he.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Uc(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Hc=A("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ec),he.init(e,t)});function qc(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const Gc=A("$ZodJWT",(e,t)=>{he.init(e,t),e._zod.check=n=>{qc(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),ua=A("$ZodNumber",(e,t)=>{pe.init(e,t),e._zod.pattern=e._zod.bag.pattern??sc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Yc=A("$ZodNumber",(e,t)=>{fc.init(e,t),ua.init(e,t)}),Xc=A("$ZodBoolean",(e,t)=>{pe.init(e,t),e._zod.pattern=ac,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),Jc=A("$ZodUnknown",(e,t)=>{pe.init(e,t),e._zod.parse=n=>n}),Qc=A("$ZodNever",(e,t)=>{pe.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function fo(e,t,n){e.issues.length&&t.issues.push(...Mt(n,e.issues)),t.value[n]=e.value}const Kc=A("$ZodArray",(e,t)=>{pe.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let s=0;s<i.length;s++){const a=i[s],l=t.element._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(u=>fo(u,n,s))):fo(l,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function Wn(e,t,n,r){e.issues.length&&t.issues.push(...Mt(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function ca(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const n=gu(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fa(e,t,n,r,i,o){const s=[],a=i.keySet,l=i.catchall._zod,u=l.def.type;for(const f of Object.keys(t)){if(a.has(f))continue;if(u==="never"){s.push(f);continue}const c=l.run({value:t[f],issues:[]},r);c instanceof Promise?e.push(c.then(h=>Wn(h,n,f,t))):Wn(c,n,f,t)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:o}),e.length?Promise.all(e).then(()=>n):n}const ef=A("$ZodObject",(e,t)=>{if(pe.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const a=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...a};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=ur(()=>ca(t));ue(e._zod,"propValues",()=>{const a=t.shape,l={};for(const u in a){const f=a[u]._zod;if(f.values){l[u]??(l[u]=new Set);for(const c of f.values)l[u].add(c)}}return l});const i=gn,o=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=r.value);const u=a.value;if(!i(u))return a.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),a;a.value={};const f=[],c=s.shape;for(const h of s.keys){const p=c[h]._zod.run({value:u[h],issues:[]},l);p instanceof Promise?f.push(p.then(b=>Wn(b,a,h,u))):Wn(p,a,h,u)}return o?fa(f,u,a,l,r.value,e):f.length?Promise.all(f).then(()=>a):a}}),tf=A("$ZodObjectJIT",(e,t)=>{ef.init(e,t);const n=e._zod.parse,r=ur(()=>ca(t)),i=h=>{const d=new wc(["shape","payload","ctx"]),p=r.value,b=w=>{const E=uo(w);return`shape[${E}]._zod.run({ value: input[${E}], issues: [] }, ctx)`};d.write("const input = payload.value;");const k=Object.create(null);let y=0;for(const w of p.keys)k[w]=`key_${y++}`;d.write("const newResult = {};");for(const w of p.keys){const E=k[w],T=uo(w);d.write(`const ${E} = ${b(w)};`),d.write(`
4
- if (${E}.issues.length) {
5
- payload.issues = payload.issues.concat(${E}.issues.map(iss => ({
6
- ...iss,
7
- path: iss.path ? [${T}, ...iss.path] : [${T}]
8
- })));
9
- }
10
-
11
-
12
- if (${E}.value === undefined) {
13
- if (${T} in input) {
14
- newResult[${T}] = undefined;
15
- }
16
- } else {
17
- newResult[${T}] = ${E}.value;
18
- }
19
-
20
- `)}d.write("payload.value = newResult;"),d.write("return payload;");const _=d.compile();return(w,E)=>_(h,w,E)};let o;const s=gn,a=!Xs.jitless,u=a&&pu.value,f=t.catchall;let c;e._zod.parse=(h,d)=>{c??(c=r.value);const p=h.value;return s(p)?a&&u&&d?.async===!1&&d.jitless!==!0?(o||(o=i(t.shape)),h=o(h,d),f?fa([],p,h,d,c,e):h):n(h,d):(h.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),h)}});function ho(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!Ft(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>mt(s,r,pt())))}),t)}const da=A("$ZodUnion",(e,t)=>{pe.init(e,t),ue(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ue(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ue(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ue(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){const i=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>_i(o.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,o)=>{if(n)return r(i,o);let s=!1;const a=[];for(const l of t.options){const u=l._zod.run({value:i.value,issues:[]},o);if(u instanceof Promise)a.push(u),s=!0;else{if(u.issues.length===0)return u;a.push(u)}}return s?Promise.all(a).then(l=>ho(l,i,e,o)):ho(a,i,e,o)}}),nf=A("$ZodDiscriminatedUnion",(e,t)=>{da.init(e,t);const n=e._zod.parse;ue(e._zod,"propValues",()=>{const i={};for(const o of t.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){i[a]||(i[a]=new Set);for(const u of l)i[a].add(u)}}return i});const r=ur(()=>{const i=t.options,o=new Map;for(const s of i){const a=s._zod.propValues?.[t.discriminator];if(!a||a.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(const l of a){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,s)}}return o});e._zod.parse=(i,o)=>{const s=i.value;if(!gn(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),i;const a=r.value.get(s?.[t.discriminator]);return a?a._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:s,path:[t.discriminator],inst:e}),i)}}),rf=A("$ZodIntersection",(e,t)=>{pe.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,u])=>po(n,l,u)):po(n,o,s)}});function Xr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(Vt(e)&&Vt(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of r){const s=Xr(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],s=Xr(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function po(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Ft(e))return e;const r=Xr(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const of=A("$ZodRecord",(e,t)=>{pe.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Vt(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const o=[];if(t.keyType._zod.values){const s=t.keyType._zod.values;n.value={};for(const l of s)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:i[l],issues:[]},r);u instanceof Promise?o.push(u.then(f=>{f.issues.length&&n.issues.push(...Mt(l,f.issues)),n.value[l]=f.value})):(u.issues.length&&n.issues.push(...Mt(l,u.issues)),n.value[l]=u.value)}let a;for(const l in i)s.has(l)||(a=a??[],a.push(l));a&&a.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:a})}else{n.value={};for(const s of Reflect.ownKeys(i)){if(s==="__proto__")continue;const a=t.keyType._zod.run({value:s,issues:[]},r);if(a instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(a.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:a.issues.map(u=>mt(u,r,pt())),input:s,path:[s],inst:e}),n.value[a.value]=a.value;continue}const l=t.valueType._zod.run({value:i[s],issues:[]},r);l instanceof Promise?o.push(l.then(u=>{u.issues.length&&n.issues.push(...Mt(s,u.issues)),n.value[a.value]=u.value})):(l.issues.length&&n.issues.push(...Mt(s,l.issues)),n.value[a.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),sf=A("$ZodEnum",(e,t)=>{pe.init(e,t);const n=du(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(i=>mu.has(typeof i)).map(i=>typeof i=="string"?Ut(i):i.toString()).join("|")})$`),e._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),af=A("$ZodLiteral",(e,t)=>{if(pe.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Ut(n):n?Ut(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),lf=A("$ZodTransform",(e,t)=>{pe.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ys(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(n.value=s,n));if(i instanceof Promise)throw new Zt;return n.value=i,n}});function mo(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const uf=A("$ZodOptional",(e,t)=>{pe.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ue(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${_i(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>mo(o,n.value)):mo(i,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),cf=A("$ZodNullable",(e,t)=>{pe.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${_i(n.source)}|null)$`):void 0}),ue(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),ff=A("$ZodDefault",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>go(o,t)):go(i,t)}});function go(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const df=A("$ZodPrefault",(e,t)=>{pe.init(e,t),e._zod.optin="optional",ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),hf=A("$ZodNonOptional",(e,t)=>{pe.init(e,t),ue(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>yo(o,e)):yo(i,e)}});function yo(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const pf=A("$ZodCatch",(e,t)=>{pe.init(e,t),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),ue(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>mt(s,r,pt()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>mt(o,r,pt()))},input:n.value}),n.issues=[]),n)}}),mf=A("$ZodPipe",(e,t)=>{pe.init(e,t),ue(e._zod,"values",()=>t.in._zod.values),ue(e._zod,"optin",()=>t.in._zod.optin),ue(e._zod,"optout",()=>t.out._zod.optout),ue(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(s=>On(s,t.in,r)):On(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>On(o,t.out,r)):On(i,t.out,r)}});function On(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const gf=A("$ZodReadonly",(e,t)=>{pe.init(e,t),ue(e._zod,"propValues",()=>t.innerType._zod.propValues),ue(e._zod,"values",()=>t.innerType._zod.values),ue(e._zod,"optin",()=>t.innerType._zod.optin),ue(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(bo):bo(i)}});function bo(e){return e.value=Object.freeze(e.value),e}const yf=A("$ZodCustom",(e,t)=>{Ie.init(e,t),pe.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>ko(o,n,r,e));ko(i,n,r,e)}});function ko(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(yn(i))}}class bf{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function kf(){return new bf}const Pn=kf();function xf(e,t){return new e({type:"string",...H(t)})}function vf(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...H(t)})}function xo(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...H(t)})}function wf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...H(t)})}function _f(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...H(t)})}function Sf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...H(t)})}function Cf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...H(t)})}function Af(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...H(t)})}function zf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...H(t)})}function Ef(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...H(t)})}function Tf(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...H(t)})}function If(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...H(t)})}function Of(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...H(t)})}function Pf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...H(t)})}function Rf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...H(t)})}function Df(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...H(t)})}function Lf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...H(t)})}function $f(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...H(t)})}function Nf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...H(t)})}function Ff(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...H(t)})}function Mf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...H(t)})}function Zf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...H(t)})}function jf(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...H(t)})}function Bf(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...H(t)})}function Vf(e,t){return new e({type:"string",format:"date",check:"string_format",...H(t)})}function Uf(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...H(t)})}function Wf(e,t){return new e({type:"string",format:"duration",check:"string_format",...H(t)})}function Hf(e,t){return new e({type:"number",checks:[],...H(t)})}function qf(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...H(t)})}function Gf(e,t){return new e({type:"boolean",...H(t)})}function Yf(e){return new e({type:"unknown"})}function Xf(e,t){return new e({type:"never",...H(t)})}function vo(e,t){return new sa({check:"less_than",...H(t),value:e,inclusive:!1})}function Sr(e,t){return new sa({check:"less_than",...H(t),value:e,inclusive:!0})}function wo(e,t){return new aa({check:"greater_than",...H(t),value:e,inclusive:!1})}function Cr(e,t){return new aa({check:"greater_than",...H(t),value:e,inclusive:!0})}function _o(e,t){return new cc({check:"multiple_of",...H(t),value:e})}function ha(e,t){return new dc({check:"max_length",...H(t),maximum:e})}function Hn(e,t){return new hc({check:"min_length",...H(t),minimum:e})}function pa(e,t){return new pc({check:"length_equals",...H(t),length:e})}function Jf(e,t){return new mc({check:"string_format",format:"regex",...H(t),pattern:e})}function Qf(e){return new gc({check:"string_format",format:"lowercase",...H(e)})}function Kf(e){return new yc({check:"string_format",format:"uppercase",...H(e)})}function ed(e,t){return new bc({check:"string_format",format:"includes",...H(t),includes:e})}function td(e,t){return new kc({check:"string_format",format:"starts_with",...H(t),prefix:e})}function nd(e,t){return new xc({check:"string_format",format:"ends_with",...H(t),suffix:e})}function Sn(e){return new vc({check:"overwrite",tx:e})}function rd(e){return Sn(t=>t.normalize(e))}function id(){return Sn(e=>e.trim())}function od(){return Sn(e=>e.toLowerCase())}function sd(){return Sn(e=>e.toUpperCase())}function ad(e,t,n){return new e({type:"array",element:t,...H(n)})}function ld(e,t,n){return new e({type:"custom",check:"custom",fn:t,...H(n)})}function ud(e){const t=cd(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(yn(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(yn(i))}},e(n.value,n)));return t}function cd(e,t){const n=new Ie({check:"custom",...H(t)});return n._zod.check=e,n}const fd=A("ZodISODateTime",(e,t)=>{Lc.init(e,t),me.init(e,t)});function dd(e){return Bf(fd,e)}const hd=A("ZodISODate",(e,t)=>{$c.init(e,t),me.init(e,t)});function pd(e){return Vf(hd,e)}const md=A("ZodISOTime",(e,t)=>{Nc.init(e,t),me.init(e,t)});function gd(e){return Uf(md,e)}const yd=A("ZodISODuration",(e,t)=>{Fc.init(e,t),me.init(e,t)});function bd(e){return Wf(yd,e)}const kd=(e,t)=>{ea.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Au(e,n)},flatten:{value:n=>Cu(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,Yr,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,Yr,2)}},isEmpty:{get(){return e.issues.length===0}}})},Fe=A("ZodError",kd,{Parent:Error}),xd=Ci(Fe),vd=Ai(Fe),wd=cr(Fe),_d=fr(Fe),Sd=Tu(Fe),Cd=Iu(Fe),Ad=Ou(Fe),zd=Pu(Fe),Ed=Ru(Fe),Td=Du(Fe),Id=Lu(Fe),Od=$u(Fe),ge=A("ZodType",(e,t)=>(pe.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Et(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>kt(e,n,r),e.brand=()=>e,e.register=((n,r)=>(n.add(e,r),e)),e.parse=(n,r)=>xd(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>wd(e,n,r),e.parseAsync=async(n,r)=>vd(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>_d(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Sd(e,n,r),e.decode=(n,r)=>Cd(e,n,r),e.encodeAsync=async(n,r)=>Ad(e,n,r),e.decodeAsync=async(n,r)=>zd(e,n,r),e.safeEncode=(n,r)=>Ed(e,n,r),e.safeDecode=(n,r)=>Td(e,n,r),e.safeEncodeAsync=async(n,r)=>Id(e,n,r),e.safeDecodeAsync=async(n,r)=>Od(e,n,r),e.refine=(n,r)=>e.check(Ch(n,r)),e.superRefine=n=>e.check(Ah(n)),e.overwrite=n=>e.check(Sn(n)),e.optional=()=>zo(e),e.nullable=()=>Eo(e),e.nullish=()=>zo(Eo(e)),e.nonoptional=n=>bh(e,n),e.array=()=>nh(e),e.or=n=>ih([e,n]),e.and=n=>ah(e,n),e.transform=n=>To(e,dh(n)),e.default=n=>mh(e,n),e.prefault=n=>yh(e,n),e.catch=n=>xh(e,n),e.pipe=n=>To(e,n),e.readonly=()=>_h(e),e.describe=n=>{const r=e.clone();return Pn.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){return Pn.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Pn.get(e);const r=e.clone();return Pn.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),ma=A("_ZodString",(e,t)=>{zi.init(e,t),ge.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Jf(...r)),e.includes=(...r)=>e.check(ed(...r)),e.startsWith=(...r)=>e.check(td(...r)),e.endsWith=(...r)=>e.check(nd(...r)),e.min=(...r)=>e.check(Hn(...r)),e.max=(...r)=>e.check(ha(...r)),e.length=(...r)=>e.check(pa(...r)),e.nonempty=(...r)=>e.check(Hn(1,...r)),e.lowercase=r=>e.check(Qf(r)),e.uppercase=r=>e.check(Kf(r)),e.trim=()=>e.check(id()),e.normalize=(...r)=>e.check(rd(...r)),e.toLowerCase=()=>e.check(od()),e.toUpperCase=()=>e.check(sd())}),Pd=A("ZodString",(e,t)=>{zi.init(e,t),ma.init(e,t),e.email=n=>e.check(vf(Rd,n)),e.url=n=>e.check(Af(Dd,n)),e.jwt=n=>e.check(jf(Yd,n)),e.emoji=n=>e.check(zf(Ld,n)),e.guid=n=>e.check(xo(So,n)),e.uuid=n=>e.check(wf(Rn,n)),e.uuidv4=n=>e.check(_f(Rn,n)),e.uuidv6=n=>e.check(Sf(Rn,n)),e.uuidv7=n=>e.check(Cf(Rn,n)),e.nanoid=n=>e.check(Ef($d,n)),e.guid=n=>e.check(xo(So,n)),e.cuid=n=>e.check(Tf(Nd,n)),e.cuid2=n=>e.check(If(Fd,n)),e.ulid=n=>e.check(Of(Md,n)),e.base64=n=>e.check(Ff(Hd,n)),e.base64url=n=>e.check(Mf(qd,n)),e.xid=n=>e.check(Pf(Zd,n)),e.ksuid=n=>e.check(Rf(jd,n)),e.ipv4=n=>e.check(Df(Bd,n)),e.ipv6=n=>e.check(Lf(Vd,n)),e.cidrv4=n=>e.check($f(Ud,n)),e.cidrv6=n=>e.check(Nf(Wd,n)),e.e164=n=>e.check(Zf(Gd,n)),e.datetime=n=>e.check(dd(n)),e.date=n=>e.check(pd(n)),e.time=n=>e.check(gd(n)),e.duration=n=>e.check(bd(n))});function aw(e){return xf(Pd,e)}const me=A("ZodStringFormat",(e,t)=>{he.init(e,t),ma.init(e,t)}),Rd=A("ZodEmail",(e,t)=>{Ac.init(e,t),me.init(e,t)}),So=A("ZodGUID",(e,t)=>{Sc.init(e,t),me.init(e,t)}),Rn=A("ZodUUID",(e,t)=>{Cc.init(e,t),me.init(e,t)}),Dd=A("ZodURL",(e,t)=>{zc.init(e,t),me.init(e,t)}),Ld=A("ZodEmoji",(e,t)=>{Ec.init(e,t),me.init(e,t)}),$d=A("ZodNanoID",(e,t)=>{Tc.init(e,t),me.init(e,t)}),Nd=A("ZodCUID",(e,t)=>{Ic.init(e,t),me.init(e,t)}),Fd=A("ZodCUID2",(e,t)=>{Oc.init(e,t),me.init(e,t)}),Md=A("ZodULID",(e,t)=>{Pc.init(e,t),me.init(e,t)}),Zd=A("ZodXID",(e,t)=>{Rc.init(e,t),me.init(e,t)}),jd=A("ZodKSUID",(e,t)=>{Dc.init(e,t),me.init(e,t)}),Bd=A("ZodIPv4",(e,t)=>{Mc.init(e,t),me.init(e,t)}),Vd=A("ZodIPv6",(e,t)=>{Zc.init(e,t),me.init(e,t)}),Ud=A("ZodCIDRv4",(e,t)=>{jc.init(e,t),me.init(e,t)}),Wd=A("ZodCIDRv6",(e,t)=>{Bc.init(e,t),me.init(e,t)}),Hd=A("ZodBase64",(e,t)=>{Vc.init(e,t),me.init(e,t)}),qd=A("ZodBase64URL",(e,t)=>{Wc.init(e,t),me.init(e,t)}),Gd=A("ZodE164",(e,t)=>{Hc.init(e,t),me.init(e,t)}),Yd=A("ZodJWT",(e,t)=>{Gc.init(e,t),me.init(e,t)}),ga=A("ZodNumber",(e,t)=>{ua.init(e,t),ge.init(e,t),e.gt=(r,i)=>e.check(wo(r,i)),e.gte=(r,i)=>e.check(Cr(r,i)),e.min=(r,i)=>e.check(Cr(r,i)),e.lt=(r,i)=>e.check(vo(r,i)),e.lte=(r,i)=>e.check(Sr(r,i)),e.max=(r,i)=>e.check(Sr(r,i)),e.int=r=>e.check(Co(r)),e.safe=r=>e.check(Co(r)),e.positive=r=>e.check(wo(0,r)),e.nonnegative=r=>e.check(Cr(0,r)),e.negative=r=>e.check(vo(0,r)),e.nonpositive=r=>e.check(Sr(0,r)),e.multipleOf=(r,i)=>e.check(_o(r,i)),e.step=(r,i)=>e.check(_o(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function lw(e){return Hf(ga,e)}const Xd=A("ZodNumberFormat",(e,t)=>{Yc.init(e,t),ga.init(e,t)});function Co(e){return qf(Xd,e)}const Jd=A("ZodBoolean",(e,t)=>{Xc.init(e,t),ge.init(e,t)});function uw(e){return Gf(Jd,e)}const Qd=A("ZodUnknown",(e,t)=>{Jc.init(e,t),ge.init(e,t)});function Ao(){return Yf(Qd)}const Kd=A("ZodNever",(e,t)=>{Qc.init(e,t),ge.init(e,t)});function eh(e){return Xf(Kd,e)}const th=A("ZodArray",(e,t)=>{Kc.init(e,t),ge.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Hn(n,r)),e.nonempty=n=>e.check(Hn(1,n)),e.max=(n,r)=>e.check(ha(n,r)),e.length=(n,r)=>e.check(pa(n,r)),e.unwrap=()=>e.element});function nh(e,t){return ad(th,e,t)}const rh=A("ZodObject",(e,t)=>{tf.init(e,t),ge.init(e,t),ue(e,"shape",()=>t.shape),e.keyof=()=>uh(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ao()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ao()}),e.strict=()=>e.clone({...e._zod.def,catchall:eh()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>xu(e,n),e.safeExtend=n=>vu(e,n),e.merge=n=>wu(e,n),e.pick=n=>bu(e,n),e.omit=n=>ku(e,n),e.partial=(...n)=>_u(ba,e,n[0]),e.required=(...n)=>Su(ka,e,n[0])});function cw(e,t){const n={type:"object",shape:e??{},...H(t)};return new rh(n)}const ya=A("ZodUnion",(e,t)=>{da.init(e,t),ge.init(e,t),e.options=t.options});function ih(e,t){return new ya({type:"union",options:e,...H(t)})}const oh=A("ZodDiscriminatedUnion",(e,t)=>{ya.init(e,t),nf.init(e,t)});function fw(e,t,n){return new oh({type:"union",options:t,discriminator:e,...H(n)})}const sh=A("ZodIntersection",(e,t)=>{rf.init(e,t),ge.init(e,t)});function ah(e,t){return new sh({type:"intersection",left:e,right:t})}const lh=A("ZodRecord",(e,t)=>{of.init(e,t),ge.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function dw(e,t,n){return new lh({type:"record",keyType:e,valueType:t,...H(n)})}const Jr=A("ZodEnum",(e,t)=>{sf.init(e,t),ge.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Jr({...t,checks:[],...H(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Jr({...t,checks:[],...H(i),entries:o})}});function uh(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new Jr({type:"enum",entries:n,...H(t)})}const ch=A("ZodLiteral",(e,t)=>{af.init(e,t),ge.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function hw(e,t){return new ch({type:"literal",values:Array.isArray(e)?e:[e],...H(t)})}const fh=A("ZodTransform",(e,t)=>{lf.init(e,t),ge.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Ys(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(yn(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(yn(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function dh(e){return new fh({type:"transform",transform:e})}const ba=A("ZodOptional",(e,t)=>{uf.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zo(e){return new ba({type:"optional",innerType:e})}const hh=A("ZodNullable",(e,t)=>{cf.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Eo(e){return new hh({type:"nullable",innerType:e})}const ph=A("ZodDefault",(e,t)=>{ff.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function mh(e,t){return new ph({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Qs(t)}})}const gh=A("ZodPrefault",(e,t)=>{df.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yh(e,t){return new gh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Qs(t)}})}const ka=A("ZodNonOptional",(e,t)=>{hf.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bh(e,t){return new ka({type:"nonoptional",innerType:e,...H(t)})}const kh=A("ZodCatch",(e,t)=>{pf.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function xh(e,t){return new kh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const vh=A("ZodPipe",(e,t)=>{mf.init(e,t),ge.init(e,t),e.in=t.in,e.out=t.out});function To(e,t){return new vh({type:"pipe",in:e,out:t})}const wh=A("ZodReadonly",(e,t)=>{gf.init(e,t),ge.init(e,t),e.unwrap=()=>e._zod.def.innerType});function _h(e){return new wh({type:"readonly",innerType:e})}const Sh=A("ZodCustom",(e,t)=>{yf.init(e,t),ge.init(e,t)});function Ch(e,t={}){return ld(Sh,e,t)}function Ah(e){return ud(e)}var ae;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const o={};for(const s of i)o[s]=s;return o},e.getValidEnumValues=i=>{const o=e.objectKeys(i).filter(a=>typeof i[i[a]]!="number"),s={};for(const a of o)s[a]=i[a];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(o){return i[o]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const o=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&o.push(s);return o},e.find=(i,o)=>{for(const s of i)if(o(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,o=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(i,o)=>typeof o=="bigint"?o.toString():o})(ae||(ae={}));var Io;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Io||(Io={}));const V=ae.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),dt=e=>{switch(typeof e){case"undefined":return V.undefined;case"string":return V.string;case"number":return Number.isNaN(e)?V.nan:V.number;case"boolean":return V.boolean;case"function":return V.function;case"bigint":return V.bigint;case"symbol":return V.symbol;case"object":return Array.isArray(e)?V.array:e===null?V.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?V.promise:typeof Map<"u"&&e instanceof Map?V.map:typeof Set<"u"&&e instanceof Set?V.set:typeof Date<"u"&&e instanceof Date?V.date:V.object;default:return V.unknown}},R=ae.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ot extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof ot))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ae.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const o=i.path[0];n[o]=n[o]||[],n[o].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}ot.create=e=>new ot(e);const Qr=(e,t)=>{let n;switch(e.code){case R.invalid_type:e.received===V.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ae.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:n=`Unrecognized key(s) in object: ${ae.joinValues(e.keys,", ")}`;break;case R.invalid_union:n="Invalid input";break;case R.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ae.joinValues(e.options)}`;break;case R.invalid_enum_value:n=`Invalid enum value. Expected ${ae.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:n="Invalid function arguments";break;case R.invalid_return_type:n="Invalid function return type";break;case R.invalid_date:n="Invalid date";break;case R.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:ae.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case R.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case R.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case R.custom:n="Invalid input";break;case R.invalid_intersection_types:n="Intersection results could not be merged";break;case R.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:n="Number must be finite";break;default:n=t.defaultError,ae.assertNever(e)}return{message:n}};let zh=Qr;function Eh(){return zh}const Th=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],s={...i,path:o};if(i.message!==void 0)return{...i,path:o,message:i.message};let a="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)a=u(s,{data:t,defaultError:a}).message;return{...i,path:o,message:a}};function Z(e,t){const n=Eh(),r=Th({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Qr?void 0:Qr].filter(i=>!!i)});e.common.issues.push(r)}class Ee{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return J;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const o=await i.key,s=await i.value;r.push({key:o,value:s})}return Ee.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:o,value:s}=i;if(o.status==="aborted"||s.status==="aborted")return J;o.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[o.value]=s.value)}return{status:t.value,value:r}}}const J=Object.freeze({status:"aborted"}),dn=e=>({status:"dirty",value:e}),Me=e=>({status:"valid",value:e}),Oo=e=>e.status==="aborted",Po=e=>e.status==="dirty",Wt=e=>e.status==="valid",qn=e=>typeof Promise<"u"&&e instanceof Promise;var U;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(U||(U={}));class Je{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ro=(e,t)=>{if(Wt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ot(e.common.issues);return this._error=n,this._error}}};function ee(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,a)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:i}}class ie{get description(){return this._def.description}_getType(t){return dt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:dt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ee,ctx:{common:t.parent.common,data:t.data,parsedType:dt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(qn(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dt(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Ro(r,i)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dt(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return Wt(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Wt(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:dt(t)},i=this._parse({data:t,path:r.path,parent:r}),o=await(qn(i)?i:Promise.resolve(i));return Ro(r,o)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,o)=>{const s=t(i),a=()=>o.addIssue({code:R.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new Gt({schema:this,typeName:X.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return ht.create(this,this._def)}nullable(){return Yt.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ye.create(this)}promise(){return Qn.create(this,this._def)}or(t){return Yn.create([this,t],this._def)}and(t){return Xn.create(this,t,this._def)}transform(t){return new Gt({...ee(this._def),schema:this,typeName:X.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ii({...ee(this._def),innerType:this,defaultValue:n,typeName:X.ZodDefault})}brand(){return new Qh({typeName:X.ZodBranded,type:this,...ee(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new oi({...ee(this._def),innerType:this,catchValue:n,typeName:X.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ei.create(this,t)}readonly(){return si.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Ih=/^c[^\s-]{8,}$/i,Oh=/^[0-9a-z]+$/,Ph=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Rh=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Dh=/^[a-z0-9_-]{21}$/i,Lh=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$h=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Nh=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fh="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Ar;const Mh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Zh=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,jh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Bh=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vh=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Uh=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xa="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Wh=new RegExp(`^${xa}$`);function va(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Hh(e){return new RegExp(`^${va(e)}$`)}function qh(e){let t=`${xa}T${va(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Gh(e,t){return!!((t==="v4"||!t)&&Mh.test(e)||(t==="v6"||!t)&&jh.test(e))}function Yh(e,t){if(!Lh.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&i?.typ!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function Xh(e,t){return!!((t==="v4"||!t)&&Zh.test(e)||(t==="v6"||!t)&&Bh.test(e))}class it extends ie{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==V.string){const o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_type,expected:V.string,received:o.parsedType}),J}const r=new Ee;let i;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const s=t.data.length>o.value,a=t.data.length<o.value;(s||a)&&(i=this._getOrReturnCtx(t,i),s?Z(i,{code:R.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):a&&Z(i,{code:R.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Nh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"email",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Ar||(Ar=new RegExp(Fh,"u")),Ar.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"emoji",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Rh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"uuid",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Dh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"nanoid",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Ih.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"cuid",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")Oh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"cuid2",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Ph.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"ulid",code:R.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),Z(i,{validation:"url",code:R.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"regex",code:R.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?qh(o).test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Wh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?Hh(o).test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{code:R.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?$h.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"duration",code:R.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Gh(t.data,o.version)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"ip",code:R.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Yh(t.data,o.alg)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"jwt",code:R.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?Xh(t.data,o.version)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"cidr",code:R.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Vh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"base64",code:R.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Uh.test(t.data)||(i=this._getOrReturnCtx(t,i),Z(i,{validation:"base64url",code:R.invalid_string,message:o.message}),r.dirty()):ae.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:R.invalid_string,...U.errToObj(r)})}_addCheck(t){return new it({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...U.errToObj(t)})}url(t){return this._addCheck({kind:"url",...U.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...U.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...U.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...U.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...U.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...U.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...U.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...U.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...U.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...U.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...U.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...U.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...U.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...U.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...U.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...U.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...U.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...U.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...U.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...U.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...U.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...U.errToObj(n)})}nonempty(t){return this.min(1,U.errToObj(t))}trim(){return new it({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new it({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new it({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}it.create=e=>new it({checks:[],typeName:X.ZodString,coerce:e?.coerce??!1,...ee(e)});function Jh(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return o%s/10**i}class Ht extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==V.number){const o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_type,expected:V.number,received:o.parsedType}),J}let r;const i=new Ee;for(const o of this._def.checks)o.kind==="int"?ae.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Z(r,{code:R.invalid_type,expected:"integer",received:"float",message:o.message}),i.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:R.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:R.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),i.dirty()):o.kind==="multipleOf"?Jh(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Z(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Z(r,{code:R.not_finite,message:o.message}),i.dirty()):ae.assertNever(o);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,U.toString(n))}gt(t,n){return this.setLimit("min",t,!1,U.toString(n))}lte(t,n){return this.setLimit("max",t,!0,U.toString(n))}lt(t,n){return this.setLimit("max",t,!1,U.toString(n))}setLimit(t,n,r,i){return new Ht({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:U.toString(i)}]})}_addCheck(t){return new Ht({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:U.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:U.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:U.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:U.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:U.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:U.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:U.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:U.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:U.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&ae.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ht.create=e=>new Ht({checks:[],typeName:X.ZodNumber,coerce:e?.coerce||!1,...ee(e)});class bn extends ie{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==V.bigint)return this._getInvalidInput(t);let r;const i=new Ee;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:R.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:R.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),i.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Z(r,{code:R.not_multiple_of,multipleOf:o.value,message:o.message}),i.dirty()):ae.assertNever(o);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Z(n,{code:R.invalid_type,expected:V.bigint,received:n.parsedType}),J}gte(t,n){return this.setLimit("min",t,!0,U.toString(n))}gt(t,n){return this.setLimit("min",t,!1,U.toString(n))}lte(t,n){return this.setLimit("max",t,!0,U.toString(n))}lt(t,n){return this.setLimit("max",t,!1,U.toString(n))}setLimit(t,n,r,i){return new bn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:U.toString(i)}]})}_addCheck(t){return new bn({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:U.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:U.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:U.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:U.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:U.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}bn.create=e=>new bn({checks:[],typeName:X.ZodBigInt,coerce:e?.coerce??!1,...ee(e)});class Kr extends ie{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==V.boolean){const r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.boolean,received:r.parsedType}),J}return Me(t.data)}}Kr.create=e=>new Kr({typeName:X.ZodBoolean,coerce:e?.coerce||!1,...ee(e)});class Gn extends ie{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==V.date){const o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_type,expected:V.date,received:o.parsedType}),J}if(Number.isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Z(o,{code:R.invalid_date}),J}const r=new Ee;let i;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(i=this._getOrReturnCtx(t,i),Z(i,{code:R.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):ae.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Gn({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:U.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:U.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Gn.create=e=>new Gn({checks:[],coerce:e?.coerce||!1,typeName:X.ZodDate,...ee(e)});class Do extends ie{_parse(t){if(this._getType(t)!==V.symbol){const r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.symbol,received:r.parsedType}),J}return Me(t.data)}}Do.create=e=>new Do({typeName:X.ZodSymbol,...ee(e)});class Lo extends ie{_parse(t){if(this._getType(t)!==V.undefined){const r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.undefined,received:r.parsedType}),J}return Me(t.data)}}Lo.create=e=>new Lo({typeName:X.ZodUndefined,...ee(e)});class ei extends ie{_parse(t){if(this._getType(t)!==V.null){const r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.null,received:r.parsedType}),J}return Me(t.data)}}ei.create=e=>new ei({typeName:X.ZodNull,...ee(e)});class $o extends ie{constructor(){super(...arguments),this._any=!0}_parse(t){return Me(t.data)}}$o.create=e=>new $o({typeName:X.ZodAny,...ee(e)});class ti extends ie{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Me(t.data)}}ti.create=e=>new ti({typeName:X.ZodUnknown,...ee(e)});class gt extends ie{_parse(t){const n=this._getOrReturnCtx(t);return Z(n,{code:R.invalid_type,expected:V.never,received:n.parsedType}),J}}gt.create=e=>new gt({typeName:X.ZodNever,...ee(e)});class No extends ie{_parse(t){if(this._getType(t)!==V.undefined){const r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.void,received:r.parsedType}),J}return Me(t.data)}}No.create=e=>new No({typeName:X.ZodVoid,...ee(e)});class Ye extends ie{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==V.array)return Z(n,{code:R.invalid_type,expected:V.array,received:n.parsedType}),J;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,a=n.data.length<i.exactLength.value;(s||a)&&(Z(n,{code:s?R.too_big:R.too_small,minimum:a?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(Z(n,{code:R.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(Z(n,{code:R.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>i.type._parseAsync(new Je(n,s,n.path,a)))).then(s=>Ee.mergeArray(r,s));const o=[...n.data].map((s,a)=>i.type._parseSync(new Je(n,s,n.path,a)));return Ee.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Ye({...this._def,minLength:{value:t,message:U.toString(n)}})}max(t,n){return new Ye({...this._def,maxLength:{value:t,message:U.toString(n)}})}length(t,n){return new Ye({...this._def,exactLength:{value:t,message:U.toString(n)}})}nonempty(t){return this.min(1,t)}}Ye.create=(e,t)=>new Ye({type:e,minLength:null,maxLength:null,exactLength:null,typeName:X.ZodArray,...ee(t)});function $t(e){if(e instanceof xe){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=ht.create($t(r))}return new xe({...e._def,shape:()=>t})}else return e instanceof Ye?new Ye({...e._def,type:$t(e.element)}):e instanceof ht?ht.create($t(e.unwrap())):e instanceof Yt?Yt.create($t(e.unwrap())):e instanceof St?St.create(e.items.map(t=>$t(t))):e}class xe extends ie{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=ae.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==V.object){const u=this._getOrReturnCtx(t);return Z(u,{code:R.invalid_type,expected:V.object,received:u.parsedType}),J}const{status:r,ctx:i}=this._processInputParams(t),{shape:o,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof gt&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||a.push(u);const l=[];for(const u of s){const f=o[u],c=i.data[u];l.push({key:{status:"valid",value:u},value:f._parse(new Je(i,c,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof gt){const u=this._def.unknownKeys;if(u==="passthrough")for(const f of a)l.push({key:{status:"valid",value:f},value:{status:"valid",value:i.data[f]}});else if(u==="strict")a.length>0&&(Z(i,{code:R.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const f of a){const c=i.data[f];l.push({key:{status:"valid",value:f},value:u._parse(new Je(i,c,i.path,f)),alwaysSet:f in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const f of l){const c=await f.key,h=await f.value;u.push({key:c,value:h,alwaysSet:f.alwaysSet})}return u}).then(u=>Ee.mergeObjectSync(r,u)):Ee.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return U.errToObj,new xe({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const i=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:U.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new xe({...this._def,unknownKeys:"strip"})}passthrough(){return new xe({...this._def,unknownKeys:"passthrough"})}extend(t){return new xe({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new xe({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:X.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new xe({...this._def,catchall:t})}pick(t){const n={};for(const r of ae.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new xe({...this._def,shape:()=>n})}omit(t){const n={};for(const r of ae.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new xe({...this._def,shape:()=>n})}deepPartial(){return $t(this)}partial(t){const n={};for(const r of ae.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new xe({...this._def,shape:()=>n})}required(t){const n={};for(const r of ae.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof ht;)o=o._def.innerType;n[r]=o}return new xe({...this._def,shape:()=>n})}keyof(){return wa(ae.objectKeys(this.shape))}}xe.create=(e,t)=>new xe({shape:()=>e,unknownKeys:"strip",catchall:gt.create(),typeName:X.ZodObject,...ee(t)});xe.strictCreate=(e,t)=>new xe({shape:()=>e,unknownKeys:"strict",catchall:gt.create(),typeName:X.ZodObject,...ee(t)});xe.lazycreate=(e,t)=>new xe({shape:e,unknownKeys:"strip",catchall:gt.create(),typeName:X.ZodObject,...ee(t)});class Yn extends ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(o){for(const a of o)if(a.result.status==="valid")return a.result;for(const a of o)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const s=o.map(a=>new ot(a.ctx.common.issues));return Z(n,{code:R.invalid_union,unionErrors:s}),J}if(n.common.async)return Promise.all(r.map(async o=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let o;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},f=l._parseSync({data:n.data,path:n.path,parent:u});if(f.status==="valid")return f;f.status==="dirty"&&!o&&(o={result:f,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const a=s.map(l=>new ot(l));return Z(n,{code:R.invalid_union,unionErrors:a}),J}}get options(){return this._def.options}}Yn.create=(e,t)=>new Yn({options:e,typeName:X.ZodUnion,...ee(t)});function ni(e,t){const n=dt(e),r=dt(t);if(e===t)return{valid:!0,data:e};if(n===V.object&&r===V.object){const i=ae.objectKeys(t),o=ae.objectKeys(e).filter(a=>i.indexOf(a)!==-1),s={...e,...t};for(const a of o){const l=ni(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===V.array&&r===V.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let o=0;o<e.length;o++){const s=e[o],a=t[o],l=ni(s,a);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===V.date&&r===V.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Xn extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(o,s)=>{if(Oo(o)||Oo(s))return J;const a=ni(o.value,s.value);return a.valid?((Po(o)||Po(s))&&n.dirty(),{status:n.value,value:a.data}):(Z(r,{code:R.invalid_intersection_types}),J)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,s])=>i(o,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Xn.create=(e,t,n)=>new Xn({left:e,right:t,typeName:X.ZodIntersection,...ee(n)});class St extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==V.array)return Z(r,{code:R.invalid_type,expected:V.array,received:r.parsedType}),J;if(r.data.length<this._def.items.length)return Z(r,{code:R.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),J;!this._def.rest&&r.data.length>this._def.items.length&&(Z(r,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((s,a)=>{const l=this._def.items[a]||this._def.rest;return l?l._parse(new Je(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(o).then(s=>Ee.mergeArray(n,s)):Ee.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new St({...this._def,rest:t})}}St.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new St({items:e,typeName:X.ZodTuple,rest:null,...ee(t)})};class Jn extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==V.object)return Z(r,{code:R.invalid_type,expected:V.object,received:r.parsedType}),J;const i=[],o=this._def.keyType,s=this._def.valueType;for(const a in r.data)i.push({key:o._parse(new Je(r,a,r.path,a)),value:s._parse(new Je(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?Ee.mergeObjectAsync(n,i):Ee.mergeObjectSync(n,i)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ie?new Jn({keyType:t,valueType:n,typeName:X.ZodRecord,...ee(r)}):new Jn({keyType:it.create(),valueType:t,typeName:X.ZodRecord,...ee(n)})}}class Fo extends ie{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==V.map)return Z(r,{code:R.invalid_type,expected:V.map,received:r.parsedType}),J;const i=this._def.keyType,o=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:i._parse(new Je(r,a,r.path,[u,"key"])),value:o._parse(new Je(r,l,r.path,[u,"value"]))}));if(r.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,f=await l.value;if(u.status==="aborted"||f.status==="aborted")return J;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),a.set(u.value,f.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const l of s){const u=l.key,f=l.value;if(u.status==="aborted"||f.status==="aborted")return J;(u.status==="dirty"||f.status==="dirty")&&n.dirty(),a.set(u.value,f.value)}return{status:n.value,value:a}}}}Fo.create=(e,t,n)=>new Fo({valueType:t,keyType:e,typeName:X.ZodMap,...ee(n)});class kn extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==V.set)return Z(r,{code:R.invalid_type,expected:V.set,received:r.parsedType}),J;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(Z(r,{code:R.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(Z(r,{code:R.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const o=this._def.valueType;function s(l){const u=new Set;for(const f of l){if(f.status==="aborted")return J;f.status==="dirty"&&n.dirty(),u.add(f.value)}return{status:n.value,value:u}}const a=[...r.data.values()].map((l,u)=>o._parse(new Je(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new kn({...this._def,minSize:{value:t,message:U.toString(n)}})}max(t,n){return new kn({...this._def,maxSize:{value:t,message:U.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}kn.create=(e,t)=>new kn({valueType:e,minSize:null,maxSize:null,typeName:X.ZodSet,...ee(t)});class Mo extends ie{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Mo.create=(e,t)=>new Mo({getter:e,typeName:X.ZodLazy,...ee(t)});class ri extends ie{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Z(n,{received:n.data,code:R.invalid_literal,expected:this._def.value}),J}return{status:"valid",value:t.data}}get value(){return this._def.value}}ri.create=(e,t)=>new ri({value:e,typeName:X.ZodLiteral,...ee(t)});function wa(e,t){return new qt({values:e,typeName:X.ZodEnum,...ee(t)})}class qt extends ie{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Z(n,{expected:ae.joinValues(r),received:n.parsedType,code:R.invalid_type}),J}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Z(n,{received:n.data,code:R.invalid_enum_value,options:r}),J}return Me(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return qt.create(t,{...this._def,...n})}exclude(t,n=this._def){return qt.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}qt.create=wa;class Zo extends ie{_parse(t){const n=ae.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==V.string&&r.parsedType!==V.number){const i=ae.objectValues(n);return Z(r,{expected:ae.joinValues(i),received:r.parsedType,code:R.invalid_type}),J}if(this._cache||(this._cache=new Set(ae.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=ae.objectValues(n);return Z(r,{received:r.data,code:R.invalid_enum_value,options:i}),J}return Me(t.data)}get enum(){return this._def.values}}Zo.create=(e,t)=>new Zo({values:e,typeName:X.ZodNativeEnum,...ee(t)});class Qn extends ie{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==V.promise&&n.common.async===!1)return Z(n,{code:R.invalid_type,expected:V.promise,received:n.parsedType}),J;const r=n.parsedType===V.promise?n.data:Promise.resolve(n.data);return Me(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Qn.create=(e,t)=>new Qn({type:e,typeName:X.ZodPromise,...ee(t)});class Gt extends ie{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===X.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,o={addIssue:s=>{Z(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),i.type==="preprocess"){const s=i.transform(r.data,o);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return J;const l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?J:l.status==="dirty"||n.value==="dirty"?dn(l.value):l});{if(n.value==="aborted")return J;const a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?J:a.status==="dirty"||n.value==="dirty"?dn(a.value):a}}if(i.type==="refinement"){const s=a=>{const l=i.refinement(a,o);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?J:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Wt(s))return J;const a=i.transform(s.value,o);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Wt(s)?Promise.resolve(i.transform(s.value,o)).then(a=>({status:n.value,value:a})):J);ae.assertNever(i)}}Gt.create=(e,t,n)=>new Gt({schema:e,typeName:X.ZodEffects,effect:t,...ee(n)});Gt.createWithPreprocess=(e,t,n)=>new Gt({schema:t,effect:{type:"preprocess",transform:e},typeName:X.ZodEffects,...ee(n)});class ht extends ie{_parse(t){return this._getType(t)===V.undefined?Me(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ht.create=(e,t)=>new ht({innerType:e,typeName:X.ZodOptional,...ee(t)});class Yt extends ie{_parse(t){return this._getType(t)===V.null?Me(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Yt.create=(e,t)=>new Yt({innerType:e,typeName:X.ZodNullable,...ee(t)});class ii extends ie{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===V.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ii.create=(e,t)=>new ii({innerType:e,typeName:X.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...ee(t)});class oi extends ie{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return qn(i)?i.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ot(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ot(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:X.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...ee(t)});class jo extends ie{_parse(t){if(this._getType(t)!==V.nan){const r=this._getOrReturnCtx(t);return Z(r,{code:R.invalid_type,expected:V.nan,received:r.parsedType}),J}return{status:"valid",value:t.data}}}jo.create=e=>new jo({typeName:X.ZodNaN,...ee(e)});class Qh extends ie{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ei extends ie{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?J:o.status==="dirty"?(n.dirty(),dn(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?J:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Ei({in:t,out:n,typeName:X.ZodPipeline})}}class si extends ie{_parse(t){const n=this._def.innerType._parse(t),r=i=>(Wt(i)&&(i.value=Object.freeze(i.value)),i);return qn(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}si.create=(e,t)=>new si({innerType:e,typeName:X.ZodReadonly,...ee(t)});var X;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(X||(X={}));const pw=it.create,mw=Ht.create,gw=Kr.create,yw=ei.create,bw=ti.create;gt.create;const kw=Ye.create,xw=xe.create,vw=Yn.create;Xn.create;St.create;const ww=Jn.create,_w=ri.create;qt.create;Qn.create;ht.create;Yt.create;function _a(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_a(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Kh(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_a(e))&&(r&&(r+=" "),r+=t);return r}const Bo=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vo=Kh,Sw=(e,t)=>n=>{var r;if(t?.variants==null)return Vo(e,n?.class,n?.className);const{variants:i,defaultVariants:o}=t,s=Object.keys(i).map(u=>{const f=n?.[u],c=o?.[u];if(f===null)return null;const h=Bo(f)||Bo(c);return i[u][h]}),a=n&&Object.entries(n).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...d}=f;return Object.entries(d).every(p=>{let[b,k]=p;return Array.isArray(k)?k.includes({...o,...a}[b]):{...o,...a}[b]===k})?[...u,c,h]:u},[]);return Vo(e,s,l,n?.class,n?.className)},ep=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},tp=(e,t)=>({classGroupId:e,validator:t}),Sa=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Kn="-",Uo=[],np="arbitrary..",rp=e=>{const t=op(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ip(s);const a=s.split(Kn),l=a[0]===""&&a.length>1?1:0;return Ca(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],u=n[s];return l?u?ep(u,l):l:u||Uo}return n[s]||Uo}}},Ca=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],o=n.nextPart.get(i);if(o){const u=Ca(e,t+1,o);if(u)return u}const s=n.validators;if(s===null)return;const a=t===0?e.join(Kn):e.slice(t).join(Kn),l=s.length;for(let u=0;u<l;u++){const f=s[u];if(f.validator(a))return f.classGroupId}},ip=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?np+r:void 0})(),op=e=>{const{theme:t,classGroups:n}=e;return sp(n,t)},sp=(e,t)=>{const n=Sa();for(const r in e){const i=e[r];Ti(i,n,r,t)}return n},Ti=(e,t,n,r)=>{const i=e.length;for(let o=0;o<i;o++){const s=e[o];ap(s,t,n,r)}},ap=(e,t,n,r)=>{if(typeof e=="string"){lp(e,t,n);return}if(typeof e=="function"){up(e,t,n,r);return}cp(e,t,n,r)},lp=(e,t,n)=>{const r=e===""?t:Aa(t,e);r.classGroupId=n},up=(e,t,n,r)=>{if(fp(e)){Ti(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(tp(n,e))},cp=(e,t,n,r)=>{const i=Object.entries(e),o=i.length;for(let s=0;s<o;s++){const[a,l]=i[s];Ti(l,Aa(t,a),n,r)}},Aa=(e,t)=>{let n=e;const r=t.split(Kn),i=r.length;for(let o=0;o<i;o++){const s=r[o];let a=n.nextPart.get(s);a||(a=Sa(),n.nextPart.set(s,a)),n=a}return n},fp=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,dp=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(o,s)=>{n[o]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(o){let s=n[o];if(s!==void 0)return s;if((s=r[o])!==void 0)return i(o,s),s},set(o,s){o in n?n[o]=s:i(o,s)}}},ai="!",Wo=":",hp=[],Ho=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),pp=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const o=[];let s=0,a=0,l=0,u;const f=i.length;for(let b=0;b<f;b++){const k=i[b];if(s===0&&a===0){if(k===Wo){o.push(i.slice(l,b)),l=b+1;continue}if(k==="/"){u=b;continue}}k==="["?s++:k==="]"?s--:k==="("?a++:k===")"&&a--}const c=o.length===0?i:i.slice(l);let h=c,d=!1;c.endsWith(ai)?(h=c.slice(0,-1),d=!0):c.startsWith(ai)&&(h=c.slice(1),d=!0);const p=u&&u>l?u-l:void 0;return Ho(o,d,h,p)};if(t){const i=t+Wo,o=r;r=s=>s.startsWith(i)?o(s.slice(i.length)):Ho(hp,!1,s,void 0,!0)}if(n){const i=r;r=o=>n({className:o,parseClassName:i})}return r},mp=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let o=0;o<n.length;o++){const s=n[o],a=s[0]==="[",l=t.has(s);a||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},gp=e=>({cache:dp(e.cacheSize),parseClassName:pp(e),sortModifiers:mp(e),...rp(e)}),yp=/\s+/,bp=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(yp);let l="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:c,modifiers:h,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:b}=n(f);if(c){l=f+(l.length>0?" "+l:l);continue}let k=!!b,y=r(k?p.substring(0,b):p);if(!y){if(!k){l=f+(l.length>0?" "+l:l);continue}if(y=r(p),!y){l=f+(l.length>0?" "+l:l);continue}k=!1}const _=h.length===0?"":h.length===1?h[0]:o(h).join(":"),w=d?_+ai:_,E=w+y;if(s.indexOf(E)>-1)continue;s.push(E);const T=i(y,k);for(let v=0;v<T.length;++v){const M=T[v];s.push(w+M)}l=f+(l.length>0?" "+l:l)}return l},kp=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=za(n))&&(i&&(i+=" "),i+=r);return i},za=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=za(e[r]))&&(n&&(n+=" "),n+=t);return n},xp=(e,...t)=>{let n,r,i,o;const s=l=>{const u=t.reduce((f,c)=>c(f),e());return n=gp(u),r=n.cache.get,i=n.cache.set,o=a,a(l)},a=l=>{const u=r(l);if(u)return u;const f=bp(l,n);return i(l,f),f};return o=s,(...l)=>o(kp(...l))},vp=[],we=e=>{const t=n=>n[e]||vp;return t.isThemeGetter=!0,t},Ea=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ta=/^\((?:(\w[\w-]*):)?(.+)\)$/i,wp=/^\d+\/\d+$/,_p=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Cp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ap=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zp=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Pt=e=>wp.test(e),te=e=>!!e&&!Number.isNaN(Number(e)),ct=e=>!!e&&Number.isInteger(Number(e)),zr=e=>e.endsWith("%")&&te(e.slice(0,-1)),rt=e=>_p.test(e),Ep=()=>!0,Tp=e=>Sp.test(e)&&!Cp.test(e),Ia=()=>!1,Ip=e=>Ap.test(e),Op=e=>zp.test(e),Pp=e=>!j(e)&&!B(e),Rp=e=>Qt(e,Ra,Ia),j=e=>Ea.test(e),wt=e=>Qt(e,Da,Tp),Er=e=>Qt(e,Fp,te),qo=e=>Qt(e,Oa,Ia),Dp=e=>Qt(e,Pa,Op),Dn=e=>Qt(e,La,Ip),B=e=>Ta.test(e),an=e=>Kt(e,Da),Lp=e=>Kt(e,Mp),Go=e=>Kt(e,Oa),$p=e=>Kt(e,Ra),Np=e=>Kt(e,Pa),Ln=e=>Kt(e,La,!0),Qt=(e,t,n)=>{const r=Ea.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Kt=(e,t,n=!1)=>{const r=Ta.exec(e);return r?r[1]?t(r[1]):n:!1},Oa=e=>e==="position"||e==="percentage",Pa=e=>e==="image"||e==="url",Ra=e=>e==="length"||e==="size"||e==="bg-size",Da=e=>e==="length",Fp=e=>e==="number",Mp=e=>e==="family-name",La=e=>e==="shadow",Zp=()=>{const e=we("color"),t=we("font"),n=we("text"),r=we("font-weight"),i=we("tracking"),o=we("leading"),s=we("breakpoint"),a=we("container"),l=we("spacing"),u=we("radius"),f=we("shadow"),c=we("inset-shadow"),h=we("text-shadow"),d=we("drop-shadow"),p=we("blur"),b=we("perspective"),k=we("aspect"),y=we("ease"),_=we("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],E=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...E(),B,j],v=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],I=()=>[B,j,l],W=()=>[Pt,"full","auto",...I()],x=()=>[ct,"none","subgrid",B,j],N=()=>["auto",{span:["full",ct,B,j]},ct,B,j],D=()=>[ct,"auto",B,j],G=()=>["auto","min","max","fr",B,j],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...I()],L=()=>[Pt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],S=()=>[e,B,j],Y=()=>[...E(),Go,qo,{position:[B,j]}],m=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ve=()=>["auto","cover","contain",$p,Rp,{size:[B,j]}],_e=()=>[zr,an,wt],g=()=>["","none","full",u,B,j],se=()=>["",te,an,wt],Se=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[te,zr,Go,qo],Ze=()=>["","none",p,B,j],je=()=>["none",te,B,j],Be=()=>["none",te,B,j],ut=()=>[te,B,j],It=()=>[Pt,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rt],breakpoint:[rt],color:[Ep],container:[rt],"drop-shadow":[rt],ease:["in","out","in-out"],font:[Pp],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rt],shadow:[rt],spacing:["px",te],text:[rt],"text-shadow":[rt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Pt,j,B,k]}],container:["container"],columns:[{columns:[te,j,B,a]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{start:W()}],end:[{end:W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[ct,"auto",B,j]}],basis:[{basis:[Pt,"full","auto",a,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[te,Pt,"auto","initial","none",j]}],grow:[{grow:["",te,B,j]}],shrink:[{shrink:["",te,B,j]}],order:[{order:[ct,"first","last","none",B,j]}],"grid-cols":[{"grid-cols":x()}],"col-start-end":[{col:N()}],"col-start":[{"col-start":D()}],"col-end":[{"col-end":D()}],"grid-rows":[{"grid-rows":x()}],"row-start-end":[{row:N()}],"row-start":[{"row-start":D()}],"row-end":[{"row-end":D()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,an,wt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,B,Er]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",zr,j]}],"font-family":[{font:[Lp,j,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,B,j]}],"line-clamp":[{"line-clamp":[te,"none",B,Er]}],leading:[{leading:[o,...I()]}],"list-image":[{"list-image":["none",B,j]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",B,j]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[te,"from-font","auto",B,wt]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[te,"auto",B,j]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",B,j]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",B,j]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Y()}],"bg-repeat":[{bg:m()}],"bg-size":[{bg:ve()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ct,B,j],radial:["",B,j],conic:[ct,B,j]},Np,Dp]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:_e()}],"gradient-via-pos":[{via:_e()}],"gradient-to-pos":[{to:_e()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:g()}],"rounded-s":[{"rounded-s":g()}],"rounded-e":[{"rounded-e":g()}],"rounded-t":[{"rounded-t":g()}],"rounded-r":[{"rounded-r":g()}],"rounded-b":[{"rounded-b":g()}],"rounded-l":[{"rounded-l":g()}],"rounded-ss":[{"rounded-ss":g()}],"rounded-se":[{"rounded-se":g()}],"rounded-ee":[{"rounded-ee":g()}],"rounded-es":[{"rounded-es":g()}],"rounded-tl":[{"rounded-tl":g()}],"rounded-tr":[{"rounded-tr":g()}],"rounded-br":[{"rounded-br":g()}],"rounded-bl":[{"rounded-bl":g()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[te,B,j]}],"outline-w":[{outline:["",te,an,wt]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",f,Ln,Dn]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",c,Ln,Dn]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[te,wt]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",h,Ln,Dn]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[te,B,j]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[te]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[B,j]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":E()}],"mask-image-conic-pos":[{"mask-conic":[te]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Y()}],"mask-repeat":[{mask:m()}],"mask-size":[{mask:ve()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",B,j]}],filter:[{filter:["","none",B,j]}],blur:[{blur:Ze()}],brightness:[{brightness:[te,B,j]}],contrast:[{contrast:[te,B,j]}],"drop-shadow":[{"drop-shadow":["","none",d,Ln,Dn]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",te,B,j]}],"hue-rotate":[{"hue-rotate":[te,B,j]}],invert:[{invert:["",te,B,j]}],saturate:[{saturate:[te,B,j]}],sepia:[{sepia:["",te,B,j]}],"backdrop-filter":[{"backdrop-filter":["","none",B,j]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[te,B,j]}],"backdrop-contrast":[{"backdrop-contrast":[te,B,j]}],"backdrop-grayscale":[{"backdrop-grayscale":["",te,B,j]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[te,B,j]}],"backdrop-invert":[{"backdrop-invert":["",te,B,j]}],"backdrop-opacity":[{"backdrop-opacity":[te,B,j]}],"backdrop-saturate":[{"backdrop-saturate":[te,B,j]}],"backdrop-sepia":[{"backdrop-sepia":["",te,B,j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",B,j]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[te,"initial",B,j]}],ease:[{ease:["linear","initial",y,B,j]}],delay:[{delay:[te,B,j]}],animate:[{animate:["none",_,B,j]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,B,j]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:je()}],"rotate-x":[{"rotate-x":je()}],"rotate-y":[{"rotate-y":je()}],"rotate-z":[{"rotate-z":je()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:ut()}],"skew-x":[{"skew-x":ut()}],"skew-y":[{"skew-y":ut()}],transform:[{transform:[B,j,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:It()}],"translate-x":[{"translate-x":It()}],"translate-y":[{"translate-y":It()}],"translate-z":[{"translate-z":It()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",B,j]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",B,j]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[te,an,wt,Er]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Cw=xp(Zp);var er=function(){return er=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},er.apply(this,arguments)};function jp(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Aw(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function Tr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Bp(e,t){var n=ye.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var Vp=typeof window<"u"?ye.useLayoutEffect:ye.useEffect,Yo=new WeakMap;function zw(e,t){var n=Bp(null,function(r){return e.forEach(function(i){return Tr(i,r)})});return Vp(function(){var r=Yo.get(n);if(r){var i=new Set(r),o=new Set(e),s=n.current;i.forEach(function(a){o.has(a)||Tr(a,null)}),o.forEach(function(a){i.has(a)||Tr(a,s)})}Yo.set(n,e)},[e]),n}function Up(e){return e}function Wp(e,t){t===void 0&&(t=Up);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(a){return o(a)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(o),s=n}var l=function(){var f=s;s=[],f.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){s.push(f),u()},filter:function(f){return s=s.filter(f),n}}}};return i}function Ew(e){e===void 0&&(e={});var t=Wp(null);return t.options=er({async:!0,ssr:!1},e),t}var $a=function(e){var t=e.sideCar,n=jp(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return ye.createElement(r,er({},n))};$a.isSideCarExport=!0;function Tw(e,t){return e.useMedium(t),$a}var Iw=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__},Hp=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Rt=new WeakMap,$n=new WeakMap,Nn={},Ir=0,Na=function(e){return e&&(e.host||Na(e.parentNode))},qp=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Na(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Gp=function(e,t,n,r){var i=qp(t,Array.isArray(e)?e:[e]);Nn[n]||(Nn[n]=new WeakMap);var o=Nn[n],s=[],a=new Set,l=new Set(i),u=function(c){!c||a.has(c)||(a.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(a.has(h))f(h);else try{var d=h.getAttribute(r),p=d!==null&&d!=="false",b=(Rt.get(h)||0)+1,k=(o.get(h)||0)+1;Rt.set(h,b),o.set(h,k),s.push(h),b===1&&p&&$n.set(h,!0),k===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),a.clear(),Ir++,function(){s.forEach(function(c){var h=Rt.get(c)-1,d=o.get(c)-1;Rt.set(c,h),o.set(c,d),h||($n.has(c)||c.removeAttribute(r),$n.delete(c)),d||c.removeAttribute(n)}),Ir--,Ir||(Rt=new WeakMap,Rt=new WeakMap,$n=new WeakMap,Nn={})}},Ow=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=Hp(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Gp(r,i,n,"aria-hidden")):function(){return null}};function Pw(){}function Yp(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Xp=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Jp=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Qp={};function Xo(e,t){return(Qp.jsx?Jp:Xp).test(e)}const Kp=/[ \t\n\f\r]/g;function em(e){return typeof e=="object"?e.type==="text"?Jo(e.value):!1:Jo(e)}function Jo(e){return e.replace(Kp,"")===""}class Cn{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Cn.prototype.normal={};Cn.prototype.property={};Cn.prototype.space=void 0;function Fa(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Cn(n,r,t)}function li(e){return e.toLowerCase()}class Oe{constructor(t,n){this.attribute=n,this.property=t}}Oe.prototype.attribute="";Oe.prototype.booleanish=!1;Oe.prototype.boolean=!1;Oe.prototype.commaOrSpaceSeparated=!1;Oe.prototype.commaSeparated=!1;Oe.prototype.defined=!1;Oe.prototype.mustUseProperty=!1;Oe.prototype.number=!1;Oe.prototype.overloadedBoolean=!1;Oe.prototype.property="";Oe.prototype.spaceSeparated=!1;Oe.prototype.space=void 0;let tm=0;const K=Tt(),ke=Tt(),ui=Tt(),P=Tt(),fe=Tt(),jt=Tt(),Re=Tt();function Tt(){return 2**++tm}const ci=Object.freeze(Object.defineProperty({__proto__:null,boolean:K,booleanish:ke,commaOrSpaceSeparated:Re,commaSeparated:jt,number:P,overloadedBoolean:ui,spaceSeparated:fe},Symbol.toStringTag,{value:"Module"})),Or=Object.keys(ci);class Ii extends Oe{constructor(t,n,r,i){let o=-1;if(super(t,n),Qo(this,"space",i),typeof r=="number")for(;++o<Or.length;){const s=Or[o];Qo(this,Or[o],(r&ci[s])===ci[s])}}}Ii.prototype.defined=!0;function Qo(e,t,n){n&&(e[t]=n)}function en(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Ii(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[li(r)]=r,n[li(o.attribute)]=r}return new Cn(t,n,e.space)}const Ma=en({properties:{ariaActiveDescendant:null,ariaAtomic:ke,ariaAutoComplete:null,ariaBusy:ke,ariaChecked:ke,ariaColCount:P,ariaColIndex:P,ariaColSpan:P,ariaControls:fe,ariaCurrent:null,ariaDescribedBy:fe,ariaDetails:null,ariaDisabled:ke,ariaDropEffect:fe,ariaErrorMessage:null,ariaExpanded:ke,ariaFlowTo:fe,ariaGrabbed:ke,ariaHasPopup:null,ariaHidden:ke,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fe,ariaLevel:P,ariaLive:null,ariaModal:ke,ariaMultiLine:ke,ariaMultiSelectable:ke,ariaOrientation:null,ariaOwns:fe,ariaPlaceholder:null,ariaPosInSet:P,ariaPressed:ke,ariaReadOnly:ke,ariaRelevant:null,ariaRequired:ke,ariaRoleDescription:fe,ariaRowCount:P,ariaRowIndex:P,ariaRowSpan:P,ariaSelected:ke,ariaSetSize:P,ariaSort:null,ariaValueMax:P,ariaValueMin:P,ariaValueNow:P,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Za(e,t){return t in e?e[t]:t}function ja(e,t){return Za(e,t.toLowerCase())}const nm=en({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:jt,acceptCharset:fe,accessKey:fe,action:null,allow:null,allowFullScreen:K,allowPaymentRequest:K,allowUserMedia:K,alt:null,as:null,async:K,autoCapitalize:null,autoComplete:fe,autoFocus:K,autoPlay:K,blocking:fe,capture:null,charSet:null,checked:K,cite:null,className:fe,cols:P,colSpan:null,content:null,contentEditable:ke,controls:K,controlsList:fe,coords:P|jt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:K,defer:K,dir:null,dirName:null,disabled:K,download:ui,draggable:ke,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:K,formTarget:null,headers:fe,height:P,hidden:ui,high:P,href:null,hrefLang:null,htmlFor:fe,httpEquiv:fe,id:null,imageSizes:null,imageSrcSet:null,inert:K,inputMode:null,integrity:null,is:null,isMap:K,itemId:null,itemProp:fe,itemRef:fe,itemScope:K,itemType:fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:K,low:P,manifest:null,max:null,maxLength:P,media:null,method:null,min:null,minLength:P,multiple:K,muted:K,name:null,nonce:null,noModule:K,noValidate:K,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:K,optimum:P,pattern:null,ping:fe,placeholder:null,playsInline:K,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:K,referrerPolicy:null,rel:fe,required:K,reversed:K,rows:P,rowSpan:P,sandbox:fe,scope:null,scoped:K,seamless:K,selected:K,shadowRootClonable:K,shadowRootDelegatesFocus:K,shadowRootMode:null,shape:null,size:P,sizes:null,slot:null,span:P,spellCheck:ke,src:null,srcDoc:null,srcLang:null,srcSet:null,start:P,step:null,style:null,tabIndex:P,target:null,title:null,translate:null,type:null,typeMustMatch:K,useMap:null,value:ke,width:P,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fe,axis:null,background:null,bgColor:null,border:P,borderColor:null,bottomMargin:P,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:K,declare:K,event:null,face:null,frame:null,frameBorder:null,hSpace:P,leftMargin:P,link:null,longDesc:null,lowSrc:null,marginHeight:P,marginWidth:P,noResize:K,noHref:K,noShade:K,noWrap:K,object:null,profile:null,prompt:null,rev:null,rightMargin:P,rules:null,scheme:null,scrolling:ke,standby:null,summary:null,text:null,topMargin:P,valueType:null,version:null,vAlign:null,vLink:null,vSpace:P,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:K,disableRemotePlayback:K,prefix:null,property:null,results:P,security:null,unselectable:null},space:"html",transform:ja}),rm=en({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Re,accentHeight:P,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:P,amplitude:P,arabicForm:null,ascent:P,attributeName:null,attributeType:null,azimuth:P,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:P,by:null,calcMode:null,capHeight:P,className:fe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:P,diffuseConstant:P,direction:null,display:null,dur:null,divisor:P,dominantBaseline:null,download:K,dx:null,dy:null,edgeMode:null,editable:null,elevation:P,enableBackground:null,end:null,event:null,exponent:P,externalResourcesRequired:null,fill:null,fillOpacity:P,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:jt,g2:jt,glyphName:jt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:P,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:P,horizOriginX:P,horizOriginY:P,id:null,ideographic:P,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:P,k:P,k1:P,k2:P,k3:P,k4:P,kernelMatrix:Re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:P,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:P,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:P,overlineThickness:P,paintOrder:null,panose1:null,path:null,pathLength:P,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:P,pointsAtY:P,pointsAtZ:P,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Re,rev:Re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Re,requiredFeatures:Re,requiredFonts:Re,requiredFormats:Re,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:P,specularExponent:P,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:P,strikethroughThickness:P,string:null,stroke:null,strokeDashArray:Re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:P,strokeOpacity:P,strokeWidth:null,style:null,surfaceScale:P,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Re,tabIndex:P,tableValues:null,target:null,targetX:P,targetY:P,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:P,underlineThickness:P,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:P,values:null,vAlphabetic:P,vMathematical:P,vectorEffect:null,vHanging:P,vIdeographic:P,version:null,vertAdvY:P,vertOriginX:P,vertOriginY:P,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:P,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Za}),Ba=en({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Va=en({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ja}),Ua=en({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),im={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"},om=/[A-Z]/g,Ko=/-[a-z]/g,sm=/^data[-\w.:]+$/i;function am(e,t){const n=li(t);let r=t,i=Oe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sm.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Ko,um);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Ko.test(o)){let s=o.replace(om,lm);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ii}return new i(r,t)}function lm(e){return"-"+e.toLowerCase()}function um(e){return e.charAt(1).toUpperCase()}const cm=Fa([Ma,nm,Ba,Va,Ua],"html"),Oi=Fa([Ma,rm,Ba,Va,Ua],"svg");function fm(e){return e.join(" ").trim()}var Dt={},Pr,es;function dm(){if(es)return Pr;es=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
21
- `,u="/",f="*",c="",h="comment",d="declaration";function p(k,y){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];y=y||{};var _=1,w=1;function E(F){var O=F.match(t);O&&(_+=O.length);var C=F.lastIndexOf(l);w=~C?F.length-C:w+F.length}function T(){var F={line:_,column:w};return function(O){return O.position=new v(F),W(),O}}function v(F){this.start=F,this.end={line:_,column:w},this.source=y.source}v.prototype.content=k;function M(F){var O=new Error(y.source+":"+_+":"+w+": "+F);if(O.reason=F,O.filename=y.source,O.line=_,O.column=w,O.source=k,!y.silent)throw O}function I(F){var O=F.exec(k);if(O){var C=O[0];return E(C),k=k.slice(C.length),O}}function W(){I(n)}function x(F){var O;for(F=F||[];O=N();)O!==!1&&F.push(O);return F}function N(){var F=T();if(!(u!=k.charAt(0)||f!=k.charAt(1))){for(var O=2;c!=k.charAt(O)&&(f!=k.charAt(O)||u!=k.charAt(O+1));)++O;if(O+=2,c===k.charAt(O-1))return M("End of comment missing");var C=k.slice(2,O-2);return w+=2,E(C),k=k.slice(O),w+=2,F({type:h,comment:C})}}function D(){var F=T(),O=I(r);if(O){if(N(),!I(i))return M("property missing ':'");var C=I(o),L=F({type:d,property:b(O[0].replace(e,c)),value:C?b(C[0].replace(e,c)):c});return I(s),L}}function G(){var F=[];x(F);for(var O;O=D();)O!==!1&&(F.push(O),x(F));return F}return W(),G()}function b(k){return k?k.replace(a,c):c}return Pr=p,Pr}var ts;function hm(){if(ts)return Dt;ts=1;var e=Dt&&Dt.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=n;const t=e(dm());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const s=(0,t.default)(r),a=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:f}=l;a?i(u,f,l):f&&(o=o||{},o[u]=f)}),o}return Dt}var ln={},ns;function pm(){if(ns)return ln;ns=1,Object.defineProperty(ln,"__esModule",{value:!0}),ln.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},s=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},l=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,s))};return ln.camelCase=l,ln}var un,rs;function mm(){if(rs)return un;rs=1;var e=un&&un.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(hm()),n=pm();function r(i,o){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(a,l){a&&l&&(s[(0,n.camelCase)(a,o)]=l)}),s}return r.default=r,un=r,un}var gm=mm();const ym=Gs(gm),Wa=Ha("end"),Pi=Ha("start");function Ha(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function bm(e){const t=Pi(e),n=Wa(e);if(t&&n)return{start:t,end:n}}function hn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?is(e.position):"start"in e||"end"in e?is(e):"line"in e||"column"in e?fi(e):""}function fi(e){return os(e&&e.line)+":"+os(e&&e.column)}function is(e){return fi(e&&e.start)+"-"+fi(e&&e.end)}function os(e){return e&&typeof e=="number"?e:1}class Ae extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(s=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=hn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ae.prototype.file="";Ae.prototype.name="";Ae.prototype.reason="";Ae.prototype.message="";Ae.prototype.stack="";Ae.prototype.column=void 0;Ae.prototype.line=void 0;Ae.prototype.ancestors=void 0;Ae.prototype.cause=void 0;Ae.prototype.fatal=void 0;Ae.prototype.place=void 0;Ae.prototype.ruleId=void 0;Ae.prototype.source=void 0;const Ri={}.hasOwnProperty,km=new Map,xm=/[A-Z]/g,vm=new Set(["table","tbody","thead","tfoot","tr"]),wm=new Set(["td","th"]),qa="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Rw(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Im(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Tm(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Oi:cm,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ga(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Ga(e,t,n){if(t.type==="element")return _m(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Sm(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Am(e,t,n);if(t.type==="mdxjsEsm")return Cm(e,t);if(t.type==="root")return zm(e,t,n);if(t.type==="text")return Em(e,t)}function _m(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Oi,e.schema=i),e.ancestors.push(t);const o=Xa(e,t.tagName,!1),s=Om(e,t);let a=Li(e,t);return vm.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!em(l):!0})),Ya(e,s,o,t),Di(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function Sm(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}xn(e,t.position)}function Cm(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xn(e,t.position)}function Am(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Oi,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Xa(e,t.name,!0),s=Pm(e,t),a=Li(e,t);return Ya(e,s,o,t),Di(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function zm(e,t,n){const r={};return Di(r,Li(e,t)),e.create(t,e.Fragment,r,n)}function Em(e,t){return t.value}function Ya(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Di(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Tm(e,t,n){return r;function r(i,o,s,a){const u=Array.isArray(s.children)?n:t;return a?u(o,s,a):u(o,s)}}function Im(e,t){return n;function n(r,i,o,s){const a=Array.isArray(o.children),l=Pi(r);return t(i,o,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Om(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Ri.call(t.properties,i)){const o=Rm(e,i,t.properties[i]);if(o){const[s,a]=o;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&wm.has(t.tagName)?r=a:n[s]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Pm(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else xn(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else xn(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Li(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:km;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const a=Ga(e,o,s);a!==void 0&&n.push(a)}return n}function Rm(e,t,n){const r=am(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Yp(n):fm(n)),r.property==="style"){let i=typeof n=="object"?n:Dm(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Lm(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?im[r.property]||r.property:r.attribute,n]}}function Dm(e,t){try{return ym(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new Ae("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qa+"#cannot-parse-style-attribute",i}}function Xa(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,s;for(;++o<i.length;){const a=Xo(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=s}else r=Xo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Ri.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);xn(e)}function xn(e,t){const n=new Ae("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=qa+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Lm(e){const t={};let n;for(n in e)Ri.call(e,n)&&(t[$m(n)]=e[n]);return t}function $m(e){let t=e.replace(xm,Nm);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Nm(e){return"-"+e.toLowerCase()}const Dw={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"]},Fm={};function $i(e,t){const n=Fm,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ja(e,r,i)}function Ja(e,t,n){if(Mm(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ss(e.children,t,n)}return Array.isArray(e)?ss(e,t,n):""}function ss(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ja(e[i],t,n);return r.join("")}function Mm(e){return!!(e&&typeof e=="object")}const as=document.createElement("i");function Ni(e){const t="&"+e+";";as.innerHTML=t;const n=as.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Le(e,t,n,r){const i=e.length;let o=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Ne(e,t){return e.length>0?(Le(e,e.length,0,t),e):t}const ls={}.hasOwnProperty;function Qa(e){const t={};let n=-1;for(;++n<e.length;)Zm(t,e[n]);return t}function Zm(e,t){let n;for(n in t){const i=(ls.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){ls.call(i,s)||(i[s]=[]);const a=o[s];jm(i[s],Array.isArray(a)?a:a?[a]:[])}}}function jm(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Le(e,0,0,r)}function Ka(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ue(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ze=xt(/[A-Za-z]/),Ce=xt(/[\dA-Za-z]/),Bm=xt(/[#-'*+\--9=?A-Z^-~]/);function tr(e){return e!==null&&(e<32||e===127)}const di=xt(/\d/),Vm=xt(/[\dA-Fa-f]/),Um=xt(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function ce(e){return e!==null&&(e<0||e===32)}function ne(e){return e===-2||e===-1||e===32}const hr=xt(new RegExp("\\p{P}|\\p{S}","u")),Ct=xt(/\s/);function xt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function tn(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&Ce(e.charCodeAt(n+1))&&Ce(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function oe(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return ne(l)?(e.enter(n),a(l)):t(l)}function a(l){return ne(l)&&o++<i?(e.consume(l),a):(e.exit(n),t(l))}}const Wm={tokenize:Hm};function Hm(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),oe(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return q(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),s)}}const qm={tokenize:Gm},us={tokenize:Ym};function Gm(e){const t=this,n=[];let r=0,i,o,s;return a;function a(w){if(r<n.length){const E=n[r];return t.containerState=E[1],e.attempt(E[0].continuation,l,u)(w)}return u(w)}function l(w){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();const E=t.events.length;let T=E,v;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){v=t.events[T][1].end;break}y(r);let M=E;for(;M<t.events.length;)t.events[M][1].end={...v},M++;return Le(t.events,T+1,0,t.events.slice(E)),t.events.length=M,u(w)}return a(w)}function u(w){if(r===n.length){if(!i)return h(w);if(i.currentConstruct&&i.currentConstruct.concrete)return p(w);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(us,f,c)(w)}function f(w){return i&&_(),y(r),h(w)}function c(w){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,p(w)}function h(w){return t.containerState={},e.attempt(us,d,p)(w)}function d(w){return r++,n.push([t.currentConstruct,t.containerState]),h(w)}function p(w){if(w===null){i&&_(),y(0),e.consume(w);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(w)}function b(w){if(w===null){k(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return q(w)?(e.consume(w),k(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(w),b)}function k(w,E){const T=t.sliceStream(w);if(E&&T.push(null),w.previous=o,o&&(o.next=w),o=w,i.defineSkip(w.start),i.write(T),t.parser.lazy[w.start.line]){let v=i.events.length;for(;v--;)if(i.events[v][1].start.offset<s&&(!i.events[v][1].end||i.events[v][1].end.offset>s))return;const M=t.events.length;let I=M,W,x;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(W){x=t.events[I][1].end;break}W=!0}for(y(r),v=M;v<t.events.length;)t.events[v][1].end={...x},v++;Le(t.events,I+1,0,t.events.slice(M)),t.events.length=v}}function y(w){let E=n.length;for(;E-- >w;){const T=n[E];t.containerState=T[1],T[0].exit.call(t,e)}n.length=w}function _(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Ym(e,t,n){return oe(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xt(e){if(e===null||ce(e)||Ct(e))return 1;if(hr(e))return 2}function pr(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const hi={name:"attention",resolveAll:Xm,tokenize:Jm};function Xm(e,t){let n=-1,r,i,o,s,a,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};cs(c,-l),cs(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Ne(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Ne(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Ne(u,pr(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Ne(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=Ne(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Le(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Jm(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Xt(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===o)return e.consume(l),a;const u=e.exit("attentionSequence"),f=Xt(l),c=!f||f===2&&i||n.includes(l),h=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),t(l)}}function cs(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Qm={name:"autolink",tokenize:Km};function Km(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return ze(d)?(e.consume(d),s):d===64?n(d):u(d)}function s(d){return d===43||d===45||d===46||Ce(d)?(r=1,a(d)):u(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||Ce(d))&&r++<32?(e.consume(d),a):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||tr(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),f):Bm(d)?(e.consume(d),u):n(d)}function f(d){return Ce(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||Ce(d))&&r++<63){const p=d===45?h:c;return e.consume(d),p}return n(d)}}const An={partial:!0,tokenize:eg};function eg(e,t,n){return r;function r(o){return ne(o)?oe(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||q(o)?t(o):n(o)}}const el={continuation:{tokenize:ng},exit:rg,name:"blockQuote",tokenize:tg};function tg(e,t,n){const r=this;return i;function i(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return ne(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function ng(e,t,n){const r=this;return i;function i(s){return ne(s)?oe(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(el,t,n)(s)}}function rg(e){e.exit("blockQuote")}const tl={name:"characterEscape",tokenize:ig};function ig(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Um(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const nl={name:"characterReference",tokenize:og};function og(e,t,n){const r=this;let i=0,o,s;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=Ce,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=Vm,f):(e.enter("characterReferenceValue"),o=7,s=di,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return s===Ce&&!Ni(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(c)&&i++<o?(e.consume(c),f):n(c)}}const fs={partial:!0,tokenize:ag},ds={concrete:!0,name:"codeFenced",tokenize:sg};function sg(e,t,n){const r=this,i={partial:!0,tokenize:T};let o=0,s=0,a;return l;function l(v){return u(v)}function u(v){const M=r.events[r.events.length-1];return o=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,a=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(v)}function f(v){return v===a?(s++,e.consume(v),f):s<3?n(v):(e.exit("codeFencedFenceSequence"),ne(v)?oe(e,c,"whitespace")(v):c(v))}function c(v){return v===null||q(v)?(e.exit("codeFencedFence"),r.interrupt?t(v):e.check(fs,b,E)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===null||q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(v)):ne(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,d,"whitespace")(v)):v===96&&v===a?n(v):(e.consume(v),h)}function d(v){return v===null||q(v)?c(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(v)):v===96&&v===a?n(v):(e.consume(v),p)}function b(v){return e.attempt(i,E,k)(v)}function k(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),y}function y(v){return o>0&&ne(v)?oe(e,_,"linePrefix",o+1)(v):_(v)}function _(v){return v===null||q(v)?e.check(fs,b,E)(v):(e.enter("codeFlowValue"),w(v))}function w(v){return v===null||q(v)?(e.exit("codeFlowValue"),_(v)):(e.consume(v),w)}function E(v){return e.exit("codeFenced"),t(v)}function T(v,M,I){let W=0;return x;function x(O){return v.enter("lineEnding"),v.consume(O),v.exit("lineEnding"),N}function N(O){return v.enter("codeFencedFence"),ne(O)?oe(v,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):D(O)}function D(O){return O===a?(v.enter("codeFencedFenceSequence"),G(O)):I(O)}function G(O){return O===a?(W++,v.consume(O),G):W>=s?(v.exit("codeFencedFenceSequence"),ne(O)?oe(v,F,"whitespace")(O):F(O)):I(O)}function F(O){return O===null||q(O)?(v.exit("codeFencedFence"),M(O)):I(O)}}}function ag(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Rr={name:"codeIndented",tokenize:ug},lg={partial:!0,tokenize:cg};function ug(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),oe(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):q(u)?e.attempt(lg,s,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||q(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function cg(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):q(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):oe(e,o,"linePrefix",5)(s)}function o(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):q(s)?i(s):n(s)}}const fg={name:"codeText",previous:hg,resolve:dg,tokenize:pg};function dg(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function hg(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function pg(e,t,n){let r=0,i,o;return s;function s(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):q(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||q(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class mg{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&cn(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),cn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),cn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);cn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);cn(this.left,n.reverse())}}}function cn(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 rl(e){const t={};let n=-1,r,i,o,s,a,l,u;const f=new mg(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,gg(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(s=f.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return Le(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function gg(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],u={};let f,c,h=-1,d=n,p=0,b=0;const k=[b];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(f),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(b=h+1,k.push(b),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):k.pop(),h=k.length;h--;){const y=a.slice(k[h],k[h+1]),_=o.pop();l.push([_,_+y.length-1]),e.splice(_,2,y)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const yg={resolve:kg,tokenize:xg},bg={partial:!0,tokenize:vg};function kg(e){return rl(e),e}function xg(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):q(a)?e.check(bg,s,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function vg(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),oe(e,o,"linePrefix")}function o(s){if(s===null||q(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function il(e,t,n,r,i,o,s,a,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),h):y===null||y===32||y===41||tr(y)?n(y):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),b(y))}function h(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(a),h(y)):y===null||y===60||q(y)?n(y):(e.consume(y),y===92?p:d)}function p(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function b(y){return!f&&(y===null||y===41||ce(y))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,b):y===41?(e.consume(y),f--,b):y===null||y===32||y===40||tr(y)?n(y):(e.consume(y),y===92?k:b)}function k(y){return y===40||y===41||y===92?(e.consume(y),b):b(y)}}function ol(e,t,n,r,i,o){const s=this;let a=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),f}function f(d){return a>999||d===null||d===91||d===93&&!l||d===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||q(d)||a++>999?(e.exit("chunkString"),f(d)):(e.consume(d),l||(l=!ne(d)),d===92?h:c)}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function sl(e,t,n,r,i,o){let s;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),u(h))}function u(h){return h===s?(e.exit(o),l(s)):h===null?n(h):q(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),oe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===s||h===null||q(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===s||h===92?(e.consume(h),f):f(h)}}function pn(e,t){let n;return r;function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ne(i)?oe(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const wg={name:"definition",tokenize:Sg},_g={partial:!0,tokenize:Cg};function Sg(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),s(d)}function s(d){return ol.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return ce(d)?pn(e,u)(d):u(d)}function u(d){return il(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(_g,c,c)(d)}function c(d){return ne(d)?oe(e,h,"whitespace")(d):h(d)}function h(d){return d===null||q(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function Cg(e,t,n){return r;function r(a){return ce(a)?pn(e,i)(a):n(a)}function i(a){return sl(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return ne(a)?oe(e,s,"whitespace")(a):s(a)}function s(a){return a===null||q(a)?t(a):n(a)}}const Ag={name:"hardBreakEscape",tokenize:zg};function zg(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return q(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Eg={name:"headingAtx",resolve:Tg,tokenize:Ig};function Tg(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Le(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Ig(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),s(f)}function s(f){return f===35&&r++<6?(e.consume(f),s):f===null||ce(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||q(f)?(e.exit("atxHeading"),t(f)):ne(f)?oe(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||ce(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Og=["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"],hs=["pre","script","style","textarea"],Pg={concrete:!0,name:"htmlFlow",resolveTo:Lg,tokenize:$g},Rg={partial:!0,tokenize:Fg},Dg={partial:!0,tokenize:Ng};function Lg(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $g(e,t,n){const r=this;let i,o,s,a,l;return u;function u(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),h):g===47?(e.consume(g),o=!0,b):g===63?(e.consume(g),i=3,r.interrupt?t:m):ze(g)?(e.consume(g),s=String.fromCharCode(g),k):n(g)}function h(g){return g===45?(e.consume(g),i=2,d):g===91?(e.consume(g),i=5,a=0,p):ze(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function d(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function p(g){const se="CDATA[";return g===se.charCodeAt(a++)?(e.consume(g),a===se.length?r.interrupt?t:D:p):n(g)}function b(g){return ze(g)?(e.consume(g),s=String.fromCharCode(g),k):n(g)}function k(g){if(g===null||g===47||g===62||ce(g)){const se=g===47,Se=s.toLowerCase();return!se&&!o&&hs.includes(Se)?(i=1,r.interrupt?t(g):D(g)):Og.includes(s.toLowerCase())?(i=6,se?(e.consume(g),y):r.interrupt?t(g):D(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?_(g):w(g))}return g===45||Ce(g)?(e.consume(g),s+=String.fromCharCode(g),k):n(g)}function y(g){return g===62?(e.consume(g),r.interrupt?t:D):n(g)}function _(g){return ne(g)?(e.consume(g),_):x(g)}function w(g){return g===47?(e.consume(g),x):g===58||g===95||ze(g)?(e.consume(g),E):ne(g)?(e.consume(g),w):x(g)}function E(g){return g===45||g===46||g===58||g===95||Ce(g)?(e.consume(g),E):T(g)}function T(g){return g===61?(e.consume(g),v):ne(g)?(e.consume(g),T):w(g)}function v(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),l=g,M):ne(g)?(e.consume(g),v):I(g)}function M(g){return g===l?(e.consume(g),l=null,W):g===null||q(g)?n(g):(e.consume(g),M)}function I(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||ce(g)?T(g):(e.consume(g),I)}function W(g){return g===47||g===62||ne(g)?w(g):n(g)}function x(g){return g===62?(e.consume(g),N):n(g)}function N(g){return g===null||q(g)?D(g):ne(g)?(e.consume(g),N):n(g)}function D(g){return g===45&&i===2?(e.consume(g),C):g===60&&i===1?(e.consume(g),L):g===62&&i===4?(e.consume(g),ve):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),Y):q(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Rg,_e,G)(g)):g===null||q(g)?(e.exit("htmlFlowData"),G(g)):(e.consume(g),D)}function G(g){return e.check(Dg,F,_e)(g)}function F(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),O}function O(g){return g===null||q(g)?G(g):(e.enter("htmlFlowData"),D(g))}function C(g){return g===45?(e.consume(g),m):D(g)}function L(g){return g===47?(e.consume(g),s="",S):D(g)}function S(g){if(g===62){const se=s.toLowerCase();return hs.includes(se)?(e.consume(g),ve):D(g)}return ze(g)&&s.length<8?(e.consume(g),s+=String.fromCharCode(g),S):D(g)}function Y(g){return g===93?(e.consume(g),m):D(g)}function m(g){return g===62?(e.consume(g),ve):g===45&&i===2?(e.consume(g),m):D(g)}function ve(g){return g===null||q(g)?(e.exit("htmlFlowData"),_e(g)):(e.consume(g),ve)}function _e(g){return e.exit("htmlFlow"),t(g)}}function Ng(e,t,n){const r=this;return i;function i(s){return q(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Fg(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(An,t,n)}}const Mg={name:"htmlText",tokenize:Zg};function Zg(e,t,n){const r=this;let i,o,s;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),l}function l(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),T):m===63?(e.consume(m),w):ze(m)?(e.consume(m),I):n(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,p):ze(m)?(e.consume(m),_):n(m)}function f(m){return m===45?(e.consume(m),d):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),h):q(m)?(s=c,L(m)):(e.consume(m),c)}function h(m){return m===45?(e.consume(m),d):c(m)}function d(m){return m===62?C(m):m===45?h(m):c(m)}function p(m){const ve="CDATA[";return m===ve.charCodeAt(o++)?(e.consume(m),o===ve.length?b:p):n(m)}function b(m){return m===null?n(m):m===93?(e.consume(m),k):q(m)?(s=b,L(m)):(e.consume(m),b)}function k(m){return m===93?(e.consume(m),y):b(m)}function y(m){return m===62?C(m):m===93?(e.consume(m),y):b(m)}function _(m){return m===null||m===62?C(m):q(m)?(s=_,L(m)):(e.consume(m),_)}function w(m){return m===null?n(m):m===63?(e.consume(m),E):q(m)?(s=w,L(m)):(e.consume(m),w)}function E(m){return m===62?C(m):w(m)}function T(m){return ze(m)?(e.consume(m),v):n(m)}function v(m){return m===45||Ce(m)?(e.consume(m),v):M(m)}function M(m){return q(m)?(s=M,L(m)):ne(m)?(e.consume(m),M):C(m)}function I(m){return m===45||Ce(m)?(e.consume(m),I):m===47||m===62||ce(m)?W(m):n(m)}function W(m){return m===47?(e.consume(m),C):m===58||m===95||ze(m)?(e.consume(m),x):q(m)?(s=W,L(m)):ne(m)?(e.consume(m),W):C(m)}function x(m){return m===45||m===46||m===58||m===95||Ce(m)?(e.consume(m),x):N(m)}function N(m){return m===61?(e.consume(m),D):q(m)?(s=N,L(m)):ne(m)?(e.consume(m),N):W(m)}function D(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,G):q(m)?(s=D,L(m)):ne(m)?(e.consume(m),D):(e.consume(m),F)}function G(m){return m===i?(e.consume(m),i=void 0,O):m===null?n(m):q(m)?(s=G,L(m)):(e.consume(m),G)}function F(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||ce(m)?W(m):(e.consume(m),F)}function O(m){return m===47||m===62||ce(m)?W(m):n(m)}function C(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function L(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),S}function S(m){return ne(m)?oe(e,Y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):Y(m)}function Y(m){return e.enter("htmlTextData"),s(m)}}const Fi={name:"labelEnd",resolveAll:Ug,resolveTo:Wg,tokenize:Hg},jg={tokenize:qg},Bg={tokenize:Gg},Vg={tokenize:Yg};function Ug(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Le(e,0,e.length,n),e}function Wg(e,t){let n=e.length,r=0,i,o,s,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=Ne(a,e.slice(o+1,o+r+3)),a=Ne(a,[["enter",f,t]]),a=Ne(a,pr(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),a=Ne(a,[["exit",f,t],e[s-2],e[s-1],["exit",u,t]]),a=Ne(a,e.slice(s+1)),a=Ne(a,[["exit",l,t]]),Le(e,o,e.length,a),e}function Hg(e,t,n){const r=this;let i=r.events.length,o,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(h){return o?o._inactive?c(h):(s=r.parser.defined.includes(Ue(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(jg,f,s?f:c)(h):h===91?e.attempt(Bg,f,s?u:c)(h):s?f(h):c(h)}function u(h){return e.attempt(Vg,f,c)(h)}function f(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function qg(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ce(c)?pn(e,o)(c):o(c)}function o(c){return c===41?f(c):il(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function s(c){return ce(c)?pn(e,l)(c):f(c)}function a(c){return n(c)}function l(c){return c===34||c===39||c===40?sl(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ce(c)?pn(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Gg(e,t,n){const r=this;return i;function i(a){return ol.call(r,e,o,s,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(Ue(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Yg(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Xg={name:"labelStartImage",resolveAll:Fi.resolveAll,tokenize:Jg};function Jg(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Qg={name:"labelStartLink",resolveAll:Fi.resolveAll,tokenize:Kg};function Kg(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Dr={name:"lineEnding",tokenize:ey};function ey(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const Vn={name:"thematicBreak",tokenize:ty};function ty(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||q(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ne(u)?oe(e,a,"whitespace")(u):a(u))}}const Te={continuation:{tokenize:oy},exit:ay,name:"list",tokenize:iy},ny={partial:!0,tokenize:ly},ry={partial:!0,tokenize:sy};function iy(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return a;function a(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:di(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Vn,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return di(d)&&++s<10?(e.consume(d),l):(!r.interrupt||s<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(An,r.interrupt?n:f,e.attempt(ny,h,c))}function f(d){return r.containerState.initialBlankLine=!0,o++,h(d)}function c(d){return ne(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function oy(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(An,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,oe(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!ne(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ry,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,oe(e,e.attempt(Te,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function sy(e,t,n){const r=this;return oe(e,i,"listItemIndent",r.containerState.size+1);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(o):n(o)}}function ay(e){e.exit(this.containerState.type)}function ly(e,t,n){const r=this;return oe(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const s=r.events[r.events.length-1];return!ne(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const ps={name:"setextUnderline",resolveTo:uy,tokenize:cy};function uy(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function cy(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ne(u)?oe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||q(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const fy={tokenize:dy};function dy(e){const t=this,n=e.attempt(An,r,e.attempt(this.parser.constructs.flowInitial,i,oe(e,e.attempt(this.parser.constructs.flow,i,e.attempt(yg,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const hy={resolveAll:ll()},py=al("string"),my=al("text");function al(e){return{resolveAll:ll(e==="text"?gy:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,s,a);return s;function s(f){return u(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const d=c[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function ll(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function gy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,s=-1,a=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(u===-2)l=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const yy={42:Te,43:Te,45:Te,48:Te,49:Te,50:Te,51:Te,52:Te,53:Te,54:Te,55:Te,56:Te,57:Te,62:el},by={91:wg},ky={[-2]:Rr,[-1]:Rr,32:Rr},xy={35:Eg,42:Vn,45:[ps,Vn],60:Pg,61:ps,95:Vn,96:ds,126:ds},vy={38:nl,92:tl},wy={[-5]:Dr,[-4]:Dr,[-3]:Dr,33:Xg,38:nl,42:hi,60:[Qm,Mg],91:Qg,92:[Ag,tl],93:Fi,95:hi,96:fg},_y={null:[hi,hy]},Sy={null:[42,95]},Cy={null:[]},Ay=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Sy,contentInitial:by,disable:Cy,document:yy,flow:xy,flowInitial:ky,insideSpan:_y,string:vy,text:wy},Symbol.toStringTag,{value:"Module"}));function zy(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const l={attempt:M(T),check:M(v),consume:_,enter:w,exit:E,interrupt:M(v,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:c};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c(N){return s=Ne(s,N),k(),s[s.length-1]!==null?[]:(I(t,0),u.events=pr(o,u.events,u),u.events)}function h(N,D){return Ty(d(N),D)}function d(N){return Ey(s,N)}function p(){const{_bufferIndex:N,_index:D,line:G,column:F,offset:O}=r;return{_bufferIndex:N,_index:D,line:G,column:F,offset:O}}function b(N){i[N.line]=N.column,x()}function k(){let N;for(;r._index<s.length;){const D=s[r._index];if(typeof D=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<D.length;)y(D.charCodeAt(r._bufferIndex));else y(D)}}function y(N){f=f(N)}function _(N){q(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,x()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=N}function w(N,D){const G=D||{};return G.type=N,G.start=p(),u.events.push(["enter",G,u]),a.push(G),G}function E(N){const D=a.pop();return D.end=p(),u.events.push(["exit",D,u]),D}function T(N,D){I(N,D.from)}function v(N,D){D.restore()}function M(N,D){return G;function G(F,O,C){let L,S,Y,m;return Array.isArray(F)?_e(F):"tokenize"in F?_e([F]):ve(F);function ve(be){return de;function de(Ze){const je=Ze!==null&&be[Ze],Be=Ze!==null&&be.null,ut=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return _e(ut)(Ze)}}function _e(be){return L=be,S=0,be.length===0?C:g(be[S])}function g(be){return de;function de(Ze){return m=W(),Y=be,be.partial||(u.currentConstruct=be),be.name&&u.parser.constructs.disable.null.includes(be.name)?Se():be.tokenize.call(D?Object.assign(Object.create(u),D):u,l,se,Se)(Ze)}}function se(be){return N(Y,m),O}function Se(be){return m.restore(),++S<L.length?g(L[S]):C}}}function I(N,D){N.resolveAll&&!o.includes(N)&&o.push(N),N.resolve&&Le(u.events,D,u.events.length-D,N.resolve(u.events.slice(D),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function W(){const N=p(),D=u.previous,G=u.currentConstruct,F=u.events.length,O=Array.from(a);return{from:F,restore:C};function C(){r=N,u.previous=D,u.currentConstruct=G,u.events.length=F,a=O,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ey(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}function Ty(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
22
- `;break}case-3:{s=`\r
23
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(o)}i=o===-2,r.push(s)}return r.join("")}function Iy(e){const r={constructs:Qa([Ay,...(e||{}).extensions||[]]),content:i(Wm),defined:[],document:i(qm),flow:i(fy),lazy:{},string:i(py),text:i(my)};return r;function i(o){return s;function s(a){return zy(r,o,a)}}}function Oy(e){for(;!rl(e););return e}const ms=/[\0\t\n\r]/g;function Py(){let e=1,t="",n=!0,r;return i;function i(o,s,a){const l=[];let u,f,c,h,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(ms.lastIndex=c,u=ms.exec(o),h=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(h),!u){t=o.slice(c);break}if(d===10&&c===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<h&&(l.push(o.slice(c,h)),e+=h-c),d){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Ry=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dy(e){return e.replace(Ry,Ly)}function Ly(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Ka(n.slice(o?2:1),o?16:10)}return Ni(n)||e}const ul={}.hasOwnProperty;function $y(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Ny(n)(Oy(Iy(n).document().write(Py()(e,t,!0))))}function Ny(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(no),autolinkProtocol:W,autolinkEmail:W,atxHeading:o(Ki),blockQuote:o(Be),characterEscape:W,characterReference:W,codeFenced:o(ut),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ut,s),codeText:o(It,s),codeTextData:W,data:W,codeFlowValue:W,definition:o(Kl),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(eu),hardBreakEscape:o(eo),hardBreakTrailing:o(eo),htmlFlow:o(to,s),htmlFlowData:W,htmlText:o(to,s),htmlTextData:W,image:o(tu),label:s,link:o(no),listItem:o(nu),listItemValue:h,listOrdered:o(ro,c),listUnordered:o(ro),paragraph:o(ru),reference:g,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Ki),strong:o(iu),thematicBreak:o(su)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:je,autolinkProtocol:Ze,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Se,characterReferenceMarkerNumeric:Se,characterReferenceValue:be,characterReference:de,codeFenced:l(k),codeFencedFence:b,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:x,codeIndented:l(y),codeText:l(O),codeTextData:x,data:x,definition:l(),definitionDestinationString:E,definitionLabelString:_,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(G),htmlFlowData:x,htmlText:l(F),htmlTextData:x,image:l(L),label:Y,labelText:S,lineEnding:N,link:l(C),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:se,resourceDestinationString:m,resourceTitleString:ve,resource:_e,setextHeading:l(I),setextHeadingLineSequence:M,setextHeadingText:v,strong:l(),thematicBreak:l()}};cl(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(z){let $={type:"root",children:[]};const Q={stack:[$],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:f,data:n},re=[];let le=-1;for(;++le<z.length;)if(z[le][1].type==="listOrdered"||z[le][1].type==="listUnordered")if(z[le][0]==="enter")re.push(le);else{const Ve=re.pop();le=i(z,Ve,le)}for(le=-1;++le<z.length;){const Ve=t[z[le][0]];ul.call(Ve,z[le][1].type)&&Ve[z[le][1].type].call(Object.assign({sliceSerialize:z[le][2].sliceSerialize},Q),z[le][1])}if(Q.tokenStack.length>0){const Ve=Q.tokenStack[Q.tokenStack.length-1];(Ve[1]||gs).call(Q,void 0,Ve[0])}for($.position={start:ft(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:ft(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<t.transforms.length;)$=t.transforms[le]($)||$;return $}function i(z,$,Q){let re=$-1,le=-1,Ve=!1,vt,tt,on,sn;for(;++re<=Q;){const Pe=z[re];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?le++:le--,sn=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(vt&&!sn&&!le&&!on&&(on=re),sn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:sn=void 0}if(!le&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||le===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(vt){let Ot=re;for(tt=void 0;Ot--;){const nt=z[Ot];if(nt[1].type==="lineEnding"||nt[1].type==="lineEndingBlank"){if(nt[0]==="exit")continue;tt&&(z[tt][1].type="lineEndingBlank",Ve=!0),nt[1].type="lineEnding",tt=Ot}else if(!(nt[1].type==="linePrefix"||nt[1].type==="blockQuotePrefix"||nt[1].type==="blockQuotePrefixWhitespace"||nt[1].type==="blockQuoteMarker"||nt[1].type==="listItemIndent"))break}on&&(!tt||on<tt)&&(vt._spread=!0),vt.end=Object.assign({},tt?z[tt][1].start:Pe[1].end),z.splice(tt||re,0,["exit",vt,Pe[2]]),re++,Q++}if(Pe[1].type==="listItemPrefix"){const Ot={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};vt=Ot,z.splice(re,0,["enter",Ot,Pe[2]]),re++,Q++,on=void 0,sn=!0}}}return z[$][1]._spread=Ve,Q}function o(z,$){return Q;function Q(re){a.call(this,z(re),re),$&&$.call(this,re)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(z,$,Q){this.stack[this.stack.length-1].children.push(z),this.stack.push(z),this.tokenStack.push([$,Q||void 0]),z.position={start:ft($.start),end:void 0}}function l(z){return $;function $(Q){z&&z.call(this,Q),u.call(this,Q)}}function u(z,$){const Q=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==z.type&&($?$.call(this,z,re[0]):(re[1]||gs).call(this,z,re[0]));else throw new Error("Cannot close `"+z.type+"` ("+hn({start:z.start,end:z.end})+"): it’s not open");Q.position.end=ft(z.end)}function f(){return $i(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(z){if(this.data.expectingFirstListItemValue){const $=this.stack[this.stack.length-2];$.start=Number.parseInt(this.sliceSerialize(z),10),this.data.expectingFirstListItemValue=void 0}}function d(){const z=this.resume(),$=this.stack[this.stack.length-1];$.lang=z}function p(){const z=this.resume(),$=this.stack[this.stack.length-1];$.meta=z}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z.replace(/(\r?\n|\r)$/g,"")}function _(z){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.label=$,Q.identifier=Ue(this.sliceSerialize(z)).toLowerCase()}function w(){const z=this.resume(),$=this.stack[this.stack.length-1];$.title=z}function E(){const z=this.resume(),$=this.stack[this.stack.length-1];$.url=z}function T(z){const $=this.stack[this.stack.length-1];if(!$.depth){const Q=this.sliceSerialize(z).length;$.depth=Q}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function M(z){const $=this.stack[this.stack.length-1];$.depth=this.sliceSerialize(z).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function W(z){const Q=this.stack[this.stack.length-1].children;let re=Q[Q.length-1];(!re||re.type!=="text")&&(re=ou(),re.position={start:ft(z.start),end:void 0},Q.push(re)),this.stack.push(re)}function x(z){const $=this.stack.pop();$.value+=this.sliceSerialize(z),$.position.end=ft(z.end)}function N(z){const $=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Q=$.children[$.children.length-1];Q.position.end=ft(z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes($.type)&&(W.call(this,z),x.call(this,z))}function D(){this.data.atHardBreak=!0}function G(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function F(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function O(){const z=this.resume(),$=this.stack[this.stack.length-1];$.value=z}function C(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=$,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function L(){const z=this.stack[this.stack.length-1];if(this.data.inReference){const $=this.data.referenceType||"shortcut";z.type+="Reference",z.referenceType=$,delete z.url,delete z.title}else delete z.identifier,delete z.label;this.data.referenceType=void 0}function S(z){const $=this.sliceSerialize(z),Q=this.stack[this.stack.length-2];Q.label=Dy($),Q.identifier=Ue($).toLowerCase()}function Y(){const z=this.stack[this.stack.length-1],$=this.resume(),Q=this.stack[this.stack.length-1];if(this.data.inReference=!0,Q.type==="link"){const re=z.children;Q.children=re}else Q.alt=$}function m(){const z=this.resume(),$=this.stack[this.stack.length-1];$.url=z}function ve(){const z=this.resume(),$=this.stack[this.stack.length-1];$.title=z}function _e(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function se(z){const $=this.resume(),Q=this.stack[this.stack.length-1];Q.label=$,Q.identifier=Ue(this.sliceSerialize(z)).toLowerCase(),this.data.referenceType="full"}function Se(z){this.data.characterReferenceType=z.type}function be(z){const $=this.sliceSerialize(z),Q=this.data.characterReferenceType;let re;Q?(re=Ka($,Q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=Ni($);const le=this.stack[this.stack.length-1];le.value+=re}function de(z){const $=this.stack.pop();$.position.end=ft(z.end)}function Ze(z){x.call(this,z);const $=this.stack[this.stack.length-1];$.url=this.sliceSerialize(z)}function je(z){x.call(this,z);const $=this.stack[this.stack.length-1];$.url="mailto:"+this.sliceSerialize(z)}function Be(){return{type:"blockquote",children:[]}}function ut(){return{type:"code",lang:null,meta:null,value:""}}function It(){return{type:"inlineCode",value:""}}function Kl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function eu(){return{type:"emphasis",children:[]}}function Ki(){return{type:"heading",depth:0,children:[]}}function eo(){return{type:"break"}}function to(){return{type:"html",value:""}}function tu(){return{type:"image",title:null,url:"",alt:null}}function no(){return{type:"link",title:null,url:"",children:[]}}function ro(z){return{type:"list",ordered:z.type==="listOrdered",start:null,spread:z._spread,children:[]}}function nu(z){return{type:"listItem",spread:z._spread,checked:null,children:[]}}function ru(){return{type:"paragraph",children:[]}}function iu(){return{type:"strong",children:[]}}function ou(){return{type:"text",value:""}}function su(){return{type:"thematicBreak"}}}function ft(e){return{line:e.line,column:e.column,offset:e.offset}}function cl(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?cl(e,r):Fy(e,r)}}function Fy(e,t){let n;for(n in t)if(ul.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function gs(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+hn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+hn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+hn({start:t.start,end:t.end})+") is still open")}function Lw(e){const t=this;t.parser=n;function n(r){return $y(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function My(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Zy(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
24
- `}]}function jy(e,t){const n=t.value?t.value+`
25
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function By(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vy(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uy(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=tn(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Wy(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hy(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function fl(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function qy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fl(e,t);const i={src:tn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Gy(e,t){const n={src:tn(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Yy(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Xy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return fl(e,t);const i={href:tn(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Jy(e,t){const n={href:tn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Qy(e,t,n){const r=e.all(t),i=n?Ky(n):dl(t),o={},s=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&s.push({type:"text",value:`
26
- `}),f.type==="element"&&f.tagName==="p"&&!i?s.push(...f.children):s.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
27
- `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function Ky(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=dl(n[r])}return t}function dl(e){const t=e.spread;return t??e.children.length>1}function eb(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const s=r[i];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function tb(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nb(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function rb(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ib(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),i.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Pi(t.children[1]),l=Wa(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),i.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function ob(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const c=t.children[l],h={},d=s?s[l]:void 0;d&&(h.align=d);let p={type:"element",tagName:o,properties:h,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(c,p)),u.push(p)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function sb(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ys=9,bs=32;function ab(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ks(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ks(t.slice(i),i>0,!1)),o.join("")}function ks(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===ys||o===bs;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===ys||o===bs;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function lb(e,t){const n={type:"text",value:ab(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ub(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const cb={blockquote:My,break:Zy,code:jy,delete:By,emphasis:Vy,footnoteReference:Uy,heading:Wy,html:Hy,imageReference:qy,image:Gy,inlineCode:Yy,linkReference:Xy,link:Jy,listItem:Qy,list:eb,paragraph:tb,root:nb,strong:rb,table:ib,tableCell:sb,tableRow:ob,text:lb,thematicBreak:ub,toml:Fn,yaml:Fn,definition:Fn,footnoteDefinition:Fn};function Fn(){}const hl=-1,mr=0,mn=1,nr=2,Mi=3,Zi=4,ji=5,Bi=6,pl=7,ml=8,xs=typeof self=="object"?self:globalThis,fb=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case mr:case hl:return n(s,i);case mn:{const a=n([],i);for(const l of s)a.push(r(l));return a}case nr:{const a=n({},i);for(const[l,u]of s)a[r(l)]=r(u);return a}case Mi:return n(new Date(s),i);case Zi:{const{source:a,flags:l}=s;return n(new RegExp(a,l),i)}case ji:{const a=n(new Map,i);for(const[l,u]of s)a.set(r(l),r(u));return a}case Bi:{const a=n(new Set,i);for(const l of s)a.add(r(l));return a}case pl:{const{name:a,message:l}=s;return n(new xs[a](l),i)}case ml:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new xs[o](s),i)};return r},vs=e=>fb(new Map,e)(0),Lt="",{toString:db}={},{keys:hb}=Object,fn=e=>{const t=typeof e;if(t!=="object"||!e)return[mr,t];const n=db.call(e).slice(8,-1);switch(n){case"Array":return[mn,Lt];case"Object":return[nr,Lt];case"Date":return[Mi,Lt];case"RegExp":return[Zi,Lt];case"Map":return[ji,Lt];case"Set":return[Bi,Lt];case"DataView":return[mn,n]}return n.includes("Array")?[mn,n]:n.includes("Error")?[pl,n]:[nr,n]},Mn=([e,t])=>e===mr&&(t==="function"||t==="symbol"),pb=(e,t,n,r)=>{const i=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},o=s=>{if(n.has(s))return n.get(s);let[a,l]=fn(s);switch(a){case mr:{let f=s;switch(l){case"bigint":a=ml,f=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([hl],s)}return i([a,f],s)}case mn:{if(l){let h=s;return l==="DataView"?h=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(s)),i([l,[...h]],s)}const f=[],c=i([a,f],s);for(const h of s)f.push(o(h));return c}case nr:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const f=[],c=i([a,f],s);for(const h of hb(s))(e||!Mn(fn(s[h])))&&f.push([o(h),o(s[h])]);return c}case Mi:return i([a,s.toISOString()],s);case Zi:{const{source:f,flags:c}=s;return i([a,{source:f,flags:c}],s)}case ji:{const f=[],c=i([a,f],s);for(const[h,d]of s)(e||!(Mn(fn(h))||Mn(fn(d))))&&f.push([o(h),o(d)]);return c}case Bi:{const f=[],c=i([a,f],s);for(const h of s)(e||!Mn(fn(h)))&&f.push(o(h));return c}}const{message:u}=s;return i([a,{name:l,message:u}],s)};return o},ws=(e,{json:t,lossy:n}={})=>{const r=[];return pb(!(t||n),!!t,new Map,r)(e),r},rr=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?vs(ws(e,t)):structuredClone(e):(e,t)=>vs(ws(e,t));function mb(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function gb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function yb(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mb,r=e.options.footnoteBackLabel||gb,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=tn(c.toLowerCase());let d=0;const p=[],b=e.footnoteCounts.get(c);for(;b!==void 0&&++d<=b;){p.length>0&&p.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,d);typeof _=="string"&&(_={type:"text",value:_}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const k=f[f.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const _=k.children[k.children.length-1];_&&_.type==="text"?_.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...p)}else f.push(...p);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...rr(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
28
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
29
- `}]}}const gr=(function(e){if(e==null)return vb;if(typeof e=="function")return yr(e);if(typeof e=="object")return Array.isArray(e)?bb(e):kb(e);if(typeof e=="string")return xb(e);throw new Error("Expected function, string, or object as test")});function bb(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=gr(e[n]);return yr(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function kb(e){const t=e;return yr(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function xb(e){return yr(t);function t(n){return n&&n.type===e}}function yr(e){return t;function t(n,r,i){return!!(wb(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function vb(){return!0}function wb(e){return e!==null&&typeof e=="object"&&"type"in e}const gl=[],_b=!0,pi=!1,Sb="skip";function yl(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=gr(i),s=r?-1:1;a(e,void 0,[])();function a(l,u,f){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=gl,p,b,k;if((!t||o(l,u,f[f.length-1]||void 0))&&(d=Cb(n(l,f)),d[0]===pi))return d;if("children"in l&&l.children){const y=l;if(y.children&&d[0]!==Sb)for(b=(r?y.children.length:-1)+s,k=f.concat(y);b>-1&&b<y.children.length;){const _=y.children[b];if(p=a(_,b,k)(),p[0]===pi)return p;b=typeof p[1]=="number"?p[1]:b+s}}return d}}}function Cb(e){return Array.isArray(e)?e:typeof e=="number"?[_b,e]:e==null?gl:[e]}function bl(e,t,n,r){let i,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,i=n):(o=t,s=n,i=r),yl(e,o,a,i);function a(l,u){const f=u[u.length-1],c=f?f.children.indexOf(l):void 0;return s(l,c,f)}}const mi={}.hasOwnProperty,Ab={};function zb(e,t){const n=t||Ab,r=new Map,i=new Map,o=new Map,s={...cb,...n.handlers},a={all:u,applyData:Tb,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:Eb,wrap:Ob};return bl(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function l(f,c){const h=f.type,d=a.handlers[h];if(mi.call(a.handlers,h)&&d)return d(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:b,...k}=f,y=rr(k);return y.children=a.all(f),y}return rr(f)}return(a.options.unknownHandler||Ib)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let d=-1;for(;++d<h.length;){const p=a.one(h[d],f);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=_s(p.value)),!Array.isArray(p)&&p.type==="element")){const b=p.children[0];b&&b.type==="text"&&(b.value=_s(b.value))}Array.isArray(p)?c.push(...p):c.push(p)}}}return c}}function Eb(e,t){e.position&&(t.position=bm(e))}function Tb(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,rr(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ib(e,t){const n=t.data||{},r="value"in t&&!(mi.call(n,"hProperties")||mi.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Ob(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
30
- `});++r<e.length;)r&&n.push({type:"text",value:`
31
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
32
- `}),n}function _s(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Ss(e,t){const n=zb(e,t),r=n.one(e,void 0),i=yb(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
33
- `},i),o}function $w(e,t){return e&&"run"in e?async function(n,r){const i=Ss(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Ss(n,{file:r,...e||t})}}function Cs(e){if(e)throw e}var Lr,As;function Pb(){if(As)return Lr;As=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},s=function(u,f){n&&f.name==="__proto__"?n(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return Lr=function l(){var u,f,c,h,d,p,b=arguments[0],k=1,y=arguments.length,_=!1;for(typeof b=="boolean"&&(_=b,b=arguments[1]||{},k=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});k<y;++k)if(u=arguments[k],u!=null)for(f in u)c=a(b,f),h=a(u,f),b!==h&&(_&&h&&(o(h)||(d=i(h)))?(d?(d=!1,p=c&&i(c)?c:[]):p=c&&o(c)?c:{},s(b,{name:f,newValue:l(_,p,h)})):typeof h<"u"&&s(b,{name:f,newValue:h}));return b},Lr}var Rb=Pb();const $r=Gs(Rb);function gi(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Db(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...i);function a(l,...u){const f=e[++o];let c=-1;if(l){s(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Lb(f,a)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Lb(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(i);try{l=e.apply(this,s)}catch(u){const f=u;if(a&&n)throw f;return i(f)}a||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(s,...a){n||(n=!0,t(s,...a))}function o(s){i(null,s)}}const qe={basename:$b,dirname:Nb,extname:Fb,join:Mb,sep:"/"};function $b(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');zn(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else s<0&&(o=!0,s=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Nb(e){if(zn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Fb(e){zn(e);let t=e.length,n=-1,r=0,i=-1,o=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Mb(...e){let t=-1,n;for(;++t<e.length;)zn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Zb(n)}function Zb(e){zn(e);const t=e.codePointAt(0)===47;let n=jb(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jb(e,t){let n="",r=0,i=-1,o=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(i===s-1||o===1))if(i!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,o=0;continue}}else if(n.length>0){n="",r=0,i=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,o=0}else a===46&&o>-1?o++:o=-1}return n}function zn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bb={cwd:Vb};function Vb(){return"/"}function yi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ub(e){if(typeof e=="string")e=new URL(e);else if(!yi(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Wb(e)}function Wb(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Nr=["history","path","basename","stem","extname","dirname"];class Hb{constructor(t){let n;t?yi(t)?n={path:t}:typeof t=="string"||qb(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Bb.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Nr.length;){const o=Nr[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Nr.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?qe.basename(this.path):void 0}set basename(t){Mr(t,"basename"),Fr(t,"basename"),this.path=qe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?qe.dirname(this.path):void 0}set dirname(t){zs(this.basename,"dirname"),this.path=qe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?qe.extname(this.path):void 0}set extname(t){if(Fr(t,"extname"),zs(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=qe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){yi(t)&&(t=Ub(t)),Mr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?qe.basename(this.path,this.extname):void 0}set stem(t){Mr(t,"stem"),Fr(t,"stem"),this.path=qe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new Ae(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Fr(e,t){if(e&&e.includes(qe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+qe.sep+"`")}function Mr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zs(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function qb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Gb=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Yb={}.hasOwnProperty;class Vi extends Gb{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=Db()}copy(){const t=new Vi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data($r(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Br("data",this.frozen),this.namespace[t]=n,this):Yb.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Br("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Zn(t),r=this.parser||this.Parser;return Zr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Zr("process",this.parser||this.Parser),jr("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,s){const a=Zn(t),l=r.parse(a);r.run(l,a,function(f,c,h){if(f||!c||!h)return u(f);const d=c,p=r.stringify(d,h);Jb(p)?h.value=p:h.result=p,u(f,h)});function u(f,c){f||!c?s(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Zr("processSync",this.parser||this.Parser),jr("processSync",this.compiler||this.Compiler),this.process(t,i),Ts("processSync","process",n),r;function i(o,s){n=!0,Cs(o),r=s}}run(t,n,r){Es(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,a){const l=Zn(n);i.run(t,l,u);function u(f,c,h){const d=c||t;f?a(f):s?s(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Ts("runSync","run",r),i;function o(s,a){Cs(s),i=a,r=!0}}stringify(t,n){this.freeze();const r=Zn(n),i=this.compiler||this.Compiler;return jr("stringify",i),Es(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Br("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;l(f,c)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(u.plugins),u.settings&&(i.settings=$r(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[d,...p]=f;const b=r[h][1];gi(b)&&gi(d)&&(d=$r(!0,b,d)),r[h]=[u,d,...p]}}}}const Nw=new Vi().freeze();function Zr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function jr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Br(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Es(e){if(!gi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ts(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Zn(e){return Xb(e)?e:new Hb(e)}function Xb(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Jb(e){return typeof e=="string"||Qb(e)}function Qb(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Is(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Kb(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ek(e,t,n){const i=gr((n||{}).ignore||[]),o=tk(t);let s=-1;for(;++s<o.length;)yl(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const d=f[c],p=h?h.children:void 0;if(i(d,p?p.indexOf(d):void 0,h))return;h=d}if(h)return l(u,f)}function l(u,f){const c=f[f.length-1],h=o[s][0],d=o[s][1];let p=0;const k=c.children.indexOf(u);let y=!1,_=[];h.lastIndex=0;let w=h.exec(u.value);for(;w;){const E=w.index,T={index:w.index,input:w.input,stack:[...f,u]};let v=d(...w,T);if(typeof v=="string"&&(v=v.length>0?{type:"text",value:v}:void 0),v===!1?h.lastIndex=E+1:(p!==E&&_.push({type:"text",value:u.value.slice(p,E)}),Array.isArray(v)?_.push(...v):v&&_.push(v),p=E+w[0].length,y=!0),!h.global)break;w=h.exec(u.value)}return y?(p<u.value.length&&_.push({type:"text",value:u.value.slice(p)}),c.children.splice(k,1,..._)):_=[u],k+_.length}}function tk(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([nk(i[0]),rk(i[1])])}return t}function nk(e){return typeof e=="string"?new RegExp(Kb(e),"g"):e}function rk(e){return typeof e=="function"?e:function(){return e}}const Vr="phrasing",Ur=["autolink","link","image","label"];function ik(){return{transforms:[fk],enter:{literalAutolink:sk,literalAutolinkEmail:Wr,literalAutolinkHttp:Wr,literalAutolinkWww:Wr},exit:{literalAutolink:ck,literalAutolinkEmail:uk,literalAutolinkHttp:ak,literalAutolinkWww:lk}}}function ok(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vr,notInConstruct:Ur},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vr,notInConstruct:Ur},{character:":",before:"[ps]",after:"\\/",inConstruct:Vr,notInConstruct:Ur}]}}function sk(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Wr(e){this.config.enter.autolinkProtocol.call(this,e)}function ak(e){this.config.exit.autolinkProtocol.call(this,e)}function lk(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function uk(e){this.config.exit.autolinkEmail.call(this,e)}function ck(e){this.exit(e)}function fk(e){ek(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,dk],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hk]],{ignore:["link","linkReference"]})}function dk(e,t,n,r,i){let o="";if(!kl(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!pk(n)))return!1;const s=mk(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function hk(e,t,n,r){return!kl(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function pk(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function mk(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Is(e,"(");let o=Is(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function kl(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ct(n)||hr(n))&&(!t||n!==47)}xl.peek=Sk;function gk(){this.buffer()}function yk(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function bk(){this.buffer()}function kk(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function xk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ue(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vk(e){this.exit(e)}function wk(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ue(this.sliceSerialize(e)).toLowerCase(),n.label=t}function _k(e){this.exit(e)}function Sk(){return"["}function xl(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function Ck(){return{enter:{gfmFootnoteCallString:gk,gfmFootnoteCall:yk,gfmFootnoteDefinitionLabelString:bk,gfmFootnoteDefinition:kk},exit:{gfmFootnoteCallString:xk,gfmFootnoteCall:vk,gfmFootnoteDefinitionLabelString:wk,gfmFootnoteDefinition:_k}}}function Ak(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:xl},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,s){const a=o.createTracker(s);let l=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return l+=a.move(o.safe(o.associationId(r),{before:l,after:"]"})),f(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((t?`
34
- `:" ")+o.indentLines(o.containerFlow(r,a.current()),t?vl:zk))),u(),l}}function zk(e,t,n){return t===0?e:vl(e,t,n)}function vl(e,t,n){return(n?"":" ")+e}const Ek=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wl.peek=Rk;function Tk(){return{canContainEols:["delete"],enter:{strikethrough:Ok},exit:{strikethrough:Pk}}}function Ik(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ek}],handlers:{delete:wl}}}function Ok(e){this.enter({type:"delete",children:[]},e)}function Pk(e){this.exit(e)}function wl(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function Rk(){return"~"}function Dk(e){return e.length}function Lk(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Dk,o=[],s=[],a=[],l=[];let u=0,f=-1;for(;++f<e.length;){const b=[],k=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const _=$k(e[f][y]);if(n.alignDelimiters!==!1){const w=i(_);k[y]=w,(l[y]===void 0||w>l[y])&&(l[y]=w)}b.push(_)}s[f]=b,a[f]=k}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=Os(r[c]);else{const b=Os(r);for(;++c<u;)o[c]=b}c=-1;const h=[],d=[];for(;++c<u;){const b=o[c];let k="",y="";b===99?(k=":",y=":"):b===108?k=":":b===114&&(y=":");let _=n.alignDelimiters===!1?1:Math.max(1,l[c]-k.length-y.length);const w=k+"-".repeat(_)+y;n.alignDelimiters!==!1&&(_=k.length+_+y.length,_>l[c]&&(l[c]=_),d[c]=_),h[c]=w}s.splice(1,0,h),a.splice(1,0,d),f=-1;const p=[];for(;++f<s.length;){const b=s[f],k=a[f];c=-1;const y=[];for(;++c<u;){const _=b[c]||"";let w="",E="";if(n.alignDelimiters!==!1){const T=l[c]-(k[c]||0),v=o[c];v===114?w=" ".repeat(T):v===99?T%2?(w=" ".repeat(T/2+.5),E=" ".repeat(T/2-.5)):(w=" ".repeat(T/2),E=w):E=" ".repeat(T)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(w),y.push(_),n.alignDelimiters!==!1&&y.push(E),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}p.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return p.join(`
35
- `)}function $k(e){return e==null?"":String(e)}function Os(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Nk(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),Fk);return i(),s}function Fk(e,t,n){return">"+(n?"":" ")+e}function Mk(e,t){return Ps(e,t.inConstruct,!0)&&!Ps(e,t.notInConstruct,!1)}function Ps(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Rs(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
36
- `&&Mk(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
37
- `}function Zk(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}function jk(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Bk(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Vk(e,t,n,r){const i=Bk(n),o=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(jk(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(o,Uk);return c(),h}const a=n.createTracker(r),l=i.repeat(Math.max(Zk(o,i)+1,3)),u=n.enter("codeFenced");let f=a.move(l);if(e.lang){const c=n.enter(`codeFencedLang${s}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${s}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
38
- `,encode:["`"],...a.current()})),c()}return f+=a.move(`
39
- `),o&&(f+=a.move(o+`
40
- `)),f+=a.move(l),u(),f}function Uk(e,t,n){return(n?"":" ")+e}function Ui(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Wk(e,t,n,r){const i=Ui(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
41
- `,...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),s(),u}function Hk(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function vn(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ir(e,t,n){const r=Xt(e),i=Xt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}_l.peek=qk;function _l(e,t,n,r){const i=Hk(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=l.charCodeAt(0),f=ir(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=vn(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=ir(r.after.charCodeAt(0),c,i);h.inside&&(l=l.slice(0,-1)+vn(c));const d=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+l+d}function qk(e,t,n){return n.options.emphasis||"*"}function Gk(e,t){let n=!1;return bl(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,pi}),!!((!e.depth||e.depth<3)&&$i(e)&&(t.options.setext||n))}function Yk(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Gk(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:`
42
- `,after:`
43
- `});return c(),f(),h+`
44
- `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
45
- `))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
46
- `,...o.current()});return/^[\t ]/.test(u)&&(u=vn(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),a(),u}Sl.peek=Xk;function Sl(e){return e.value||""}function Xk(){return"<"}Cl.peek=Jk;function Cl(e,t,n,r){const i=Ui(n),o=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function Jk(){return"!"}Al.peek=Qk;function Al(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==c?l+=a.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function Qk(){return"!"}zl.peek=Kk;function zl(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],a=n.compilePattern(s);let l;if(s.atBreak)for(;l=a.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function Kk(){return"`"}function El(e,t){const n=$i(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Tl.peek=ex;function Tl(e,t,n,r){const i=Ui(n),o=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(El(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=s.move("<");return c+=s.move(n.containerPhrasing(e,{before:c,after:">",...s.current()})),c+=s.move(">"),a(),n.stack=f,c}a=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),a(),u}function ex(e,t,n){return El(e,n)?"<":"["}Il.peek=tx;function Il(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),s();const f=n.stack;n.stack=[],s=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=f,o(),i==="full"||!u||u!==c?l+=a.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function tx(){return"["}function Wi(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function nx(e){const t=Wi(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function rx(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ol(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ix(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?rx(n):Wi(n);const a=e.ordered?s==="."?")":".":nx(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Ol(n)===s&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u}function ox(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function sx(e,t,n,r){const i=ox(n);let o=n.bulletCurrent||Wi(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return l(),u;function f(c,h,d){return h?(d?"":" ".repeat(s))+c:(d?o:o+" ".repeat(s-o.length))+c}}function ax(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s}const lx=gr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function ux(e,t,n,r){return(e.children.some(function(s){return lx(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function cx(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Pl.peek=fx;function Pl(e,t,n,r){const i=cx(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=l.charCodeAt(0),f=ir(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=vn(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=ir(r.after.charCodeAt(0),c,i);h.inside&&(l=l.slice(0,-1)+vn(c));const d=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+l+d}function fx(e,t,n){return n.options.strong||"*"}function dx(e,t,n,r){return n.safe(e.value,r)}function hx(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function px(e,t,n){const r=(Ol(n)+(n.options.ruleSpaces?" ":"")).repeat(hx(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Rl={blockquote:Nk,break:Rs,code:Vk,definition:Wk,emphasis:_l,hardBreak:Rs,heading:Yk,html:Sl,image:Cl,imageReference:Al,inlineCode:zl,link:Tl,linkReference:Il,list:ix,listItem:sx,paragraph:ax,root:ux,strong:Pl,text:dx,thematicBreak:px};function mx(){return{enter:{table:gx,tableData:Ds,tableHeader:Ds,tableRow:bx},exit:{codeText:kx,table:yx,tableData:Hr,tableHeader:Hr,tableRow:Hr}}}function gx(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function yx(e){this.exit(e),this.data.inTable=void 0}function bx(e){this.enter({type:"tableRow",children:[]},e)}function Hr(e){this.exit(e)}function Ds(e){this.enter({type:"tableCell",children:[]},e)}function kx(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,xx));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function xx(e,t){return t==="|"?t:e}function vx(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
47
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:a}};function s(d,p,b,k){return u(f(d,b,k),d.align)}function a(d,p,b,k){const y=c(d,b,k),_=u([y]);return _.slice(0,_.indexOf(`
48
- `))}function l(d,p,b,k){const y=b.enter("tableCell"),_=b.enter("phrasing"),w=b.containerPhrasing(d,{...k,before:o,after:o});return _(),y(),w}function u(d,p){return Lk(d,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function f(d,p,b){const k=d.children;let y=-1;const _=[],w=p.enter("table");for(;++y<k.length;)_[y]=c(k[y],p,b);return w(),_}function c(d,p,b){const k=d.children;let y=-1;const _=[],w=p.enter("tableRow");for(;++y<k.length;)_[y]=l(k[y],d,p,b);return w(),_}function h(d,p,b){let k=Rl.inlineCode(d,p,b);return b.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function wx(){return{exit:{taskListCheckValueChecked:Ls,taskListCheckValueUnchecked:Ls,paragraph:Sx}}}function _x(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Cx}}}function Ls(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Sx(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,s;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Cx(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=Rl.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+s}}function Fw(){return[ik(),Ck(),Tk(),mx(),wx()]}function Mw(e){return{extensions:[ok(),Ak(e),Ik(),vx(e),_x()]}}const Ax={tokenize:Px,partial:!0},Dl={tokenize:Rx,partial:!0},Ll={tokenize:Dx,partial:!0},$l={tokenize:Lx,partial:!0},zx={tokenize:$x,partial:!0},Nl={name:"wwwAutolink",tokenize:Ix,previous:Ml},Fl={name:"protocolAutolink",tokenize:Ox,previous:Zl},lt={name:"emailAutolink",tokenize:Tx,previous:jl},Ke={};function Ex(){return{text:Ke}}let _t=48;for(;_t<123;)Ke[_t]=lt,_t++,_t===58?_t=65:_t===91&&(_t=97);Ke[43]=lt;Ke[45]=lt;Ke[46]=lt;Ke[95]=lt;Ke[72]=[lt,Fl];Ke[104]=[lt,Fl];Ke[87]=[lt,Nl];Ke[119]=[lt,Nl];function Tx(e,t,n){const r=this;let i,o;return s;function s(c){return!bi(c)||!jl.call(r,r.previous)||Hi(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return bi(c)?(e.consume(c),a):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(zx,f,u)(c):c===45||c===95||Ce(c)?(o=!0,e.consume(c),l):f(c)}function u(c){return e.consume(c),i=!0,l}function f(c){return o&&i&&ze(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Ix(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Ml.call(r,r.previous)||Hi(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Ax,e.attempt(Dl,e.attempt(Ll,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function Ox(e,t,n){const r=this;let i="",o=!1;return s;function s(c){return(c===72||c===104)&&Zl.call(r,r.previous)&&!Hi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(ze(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||tr(c)||ce(c)||Ct(c)||hr(c)?n(c):e.attempt(Dl,e.attempt(Ll,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Px(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function Rx(e,t,n){let r,i,o;return s;function s(u){return u===46||u===95?e.check($l,l,a)(u):u===null||ce(u)||Ct(u)||u!==45&&hr(u)?l(u):(o=!0,e.consume(u),s)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!o?n(u):t(u)}}function Dx(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check($l,t,o)(s):s===null||ce(s)||Ct(s)?t(s):(e.consume(s),i)}function o(s){return s===41&&r++,e.consume(s),i}}function Lx(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||ce(a)||Ct(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||ce(a)||Ct(a)?t(a):r(a)}function o(a){return ze(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):ze(a)?(e.consume(a),s):n(a)}}function $x(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Ce(o)?n(o):t(o)}}function Ml(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ce(e)}function Zl(e){return!ze(e)}function jl(e){return!(e===47||bi(e))}function bi(e){return e===43||e===45||e===46||e===95||Ce(e)}function Hi(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Nx={tokenize:Wx,partial:!0};function Fx(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Bx,continuation:{tokenize:Vx},exit:Ux}},text:{91:{name:"gfmFootnoteCall",tokenize:jx},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Mx,resolveTo:Zx}}}}function Mx(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const u=Ue(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Zx(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function jx(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!s||c===null||c===91||ce(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Ue(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return ce(c)||(s=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Bx(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,a;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(p)}function f(p){if(s>999||p===93&&!a||p===null||p===91||ce(p))return n(p);if(p===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=Ue(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ce(p)||(a=!0),s++,e.consume(p),p===92?c:f}function c(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}function h(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(o)||i.push(o),oe(e,d,"gfmFootnoteDefinitionWhitespace")):n(p)}function d(p){return t(p)}}function Vx(e,t,n){return e.check(An,t,e.attempt(Nx,t,n))}function Ux(e){e.exit("gfmFootnoteDefinition")}function Wx(e,t,n){const r=this;return oe(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function Hx(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},c={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},h=[["enter",f,a],["enter",s[u][1],a],["exit",s[u][1],a],["enter",c,a]],d=a.parser.constructs.insideSpan.null;d&&Le(h,h.length,0,pr(d,s.slice(u+1,l),a)),Le(h,h.length,0,[["exit",c,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",f,a]]),Le(s,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,a,l){const u=this.previous,f=this.events;let c=0;return h;function h(p){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const b=Xt(u);if(p===126)return c>1?l(p):(s.consume(p),c++,d);if(c<2&&!n)return l(p);const k=s.exit("strikethroughSequenceTemporary"),y=Xt(p);return k._open=!y||y===2&&!!b,k._close=!b||b===2&&!!y,a(p)}}}class qx{constructor(){this.map=[]}add(t,n,r){Gx(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function Gx(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Yx(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Xx(){return{flow:{null:{name:"table",tokenize:Jx,resolveAll:Qx}}}}function Jx(e,t,n){const r=this;let i=0,o=0,s;return a;function a(x){let N=r.events.length-1;for(;N>-1;){const F=r.events[N][1].type;if(F==="lineEnding"||F==="linePrefix")N--;else break}const D=N>-1?r.events[N][1].type:null,G=D==="tableHead"||D==="tableRow"?v:l;return G===v&&r.parser.lazy[r.now().line]?n(x):G(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(s=!0,o+=1),f(x)}function f(x){return x===null?n(x):q(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),d):n(x):ne(x)?oe(e,f,"whitespace")(x):(o+=1,s&&(s=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),s=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||ce(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?h:c)}function h(x){return x===92||x===124?(e.consume(x),c):c(x)}function d(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),s=!1,ne(x)?oe(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):p(x))}function p(x){return x===45||x===58?k(x):x===124?(s=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),b):T(x)}function b(x){return ne(x)?oe(e,k,"whitespace")(x):k(x)}function k(x){return x===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||q(x)?E(x):T(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),_(x)):T(x)}function _(x){return x===45?(e.consume(x),_):x===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(x))}function w(x){return ne(x)?oe(e,E,"whitespace")(x):E(x)}function E(x){return x===124?p(x):x===null||q(x)?!s||i!==o?T(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):T(x)}function T(x){return n(x)}function v(x){return e.enter("tableRow"),M(x)}function M(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),M):x===null||q(x)?(e.exit("tableRow"),t(x)):ne(x)?oe(e,M,"whitespace")(x):(e.enter("data"),I(x))}function I(x){return x===null||x===124||ce(x)?(e.exit("data"),M(x)):(e.consume(x),x===92?W:I)}function W(x){return x===92||x===124?(e.consume(x),I):I(x)}}function Qx(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,u,f,c;const h=new qx;for(;++n<e.length;){const d=e[n],p=d[1];d[0]==="enter"?p.type==="tableHead"?(a=!1,l!==0&&($s(h,t,l,u,f),f=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",f,t]])),i=p.type==="tableDelimiterRow"?2:f?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],c=jn(h,t,o,i,void 0,c),o=[0,0,0,0]),s[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],c=jn(h,t,o,i,void 0,c)),o=s,s=[o[1],n,0,0])):p.type==="tableHead"?(a=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],c=jn(h,t,o,i,n,c)):s[1]!==0&&(c=jn(h,t,s,i,n,c)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&$s(h,t,l,u,f),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Yx(t.events,n))}return e}function jn(e,t,n,r,i,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Nt(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=Nt(t.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Nt(t.events,n[2]),f=Nt(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,b=n[3]-n[2]-1;e.add(p,b,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Nt(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function $s(e,t,n,r,i){const o=[],s=Nt(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Nt(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Kx={name:"tasklistCheck",tokenize:tv};function ev(){return{text:{91:Kx}}}function tv(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return ce(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return q(l)?t(l):ne(l)?e.check({tokenize:nv},t,n)(l):n(l)}}function nv(e,t,n){return oe(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Zw(e){return Qa([Ex(),Fx(),Hx(e),Xx(),ev()])}const rv=["top","right","bottom","left"],yt=Math.min,De=Math.max,or=Math.round,Bn=Math.floor,Xe=e=>({x:e,y:e}),iv={left:"right",right:"left",bottom:"top",top:"bottom"},ov={start:"end",end:"start"};function ki(e,t,n){return De(e,yt(t,n))}function st(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function nn(e){return e.split("-")[1]}function qi(e){return e==="x"?"y":"x"}function Gi(e){return e==="y"?"height":"width"}const sv=new Set(["top","bottom"]);function Ge(e){return sv.has(at(e))?"y":"x"}function Yi(e){return qi(Ge(e))}function av(e,t,n){n===void 0&&(n=!1);const r=nn(e),i=Yi(e),o=Gi(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=sr(s)),[s,sr(s)]}function lv(e){const t=sr(e);return[xi(e),t,xi(t)]}function xi(e){return e.replace(/start|end/g,t=>ov[t])}const Ns=["left","right"],Fs=["right","left"],uv=["top","bottom"],cv=["bottom","top"];function fv(e,t,n){switch(e){case"top":case"bottom":return n?t?Fs:Ns:t?Ns:Fs;case"left":case"right":return t?uv:cv;default:return[]}}function dv(e,t,n,r){const i=nn(e);let o=fv(at(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(xi)))),o}function sr(e){return e.replace(/left|right|bottom|top/g,t=>iv[t])}function hv(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bl(e){return typeof e!="number"?hv(e):{top:e,right:e,bottom:e,left:e}}function ar(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Ms(e,t,n){let{reference:r,floating:i}=e;const o=Ge(t),s=Yi(t),a=Gi(s),l=at(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[a]/2-i[a]/2;let d;switch(l){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-i.width,y:c};break;default:d={x:r.x,y:r.y}}switch(nn(t)){case"start":d[s]-=h*(n&&u?-1:1);break;case"end":d[s]+=h*(n&&u?-1:1);break}return d}const pv=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=Ms(u,r,l),h=r,d={},p=0;for(let b=0;b<a.length;b++){const{name:k,fn:y}=a[b],{x:_,y:w,data:E,reset:T}=await y({x:f,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:u,platform:s,elements:{reference:e,floating:t}});f=_??f,c=w??c,d={...d,[k]:{...d[k],...E}},T&&p<=50&&(p++,typeof T=="object"&&(T.placement&&(h=T.placement),T.rects&&(u=T.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:f,y:c}=Ms(u,h,l)),b=-1)}return{x:f,y:c,placement:h,strategy:i,middlewareData:d}};async function wn(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:h=!1,padding:d=0}=st(t,e),p=Bl(d),k=a[h?c==="floating"?"reference":"floating":c],y=ar(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),_=c==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),E=await(o.isElement==null?void 0:o.isElement(w))?await(o.getScale==null?void 0:o.getScale(w))||{x:1,y:1}:{x:1,y:1},T=ar(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:w,strategy:l}):_);return{top:(y.top-T.top+p.top)/E.y,bottom:(T.bottom-y.bottom+p.bottom)/E.y,left:(y.left-T.left+p.left)/E.x,right:(T.right-y.right+p.right)/E.x}}const mv=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:f=0}=st(e,t)||{};if(u==null)return{};const c=Bl(f),h={x:n,y:r},d=Yi(i),p=Gi(d),b=await s.getDimensions(u),k=d==="y",y=k?"top":"left",_=k?"bottom":"right",w=k?"clientHeight":"clientWidth",E=o.reference[p]+o.reference[d]-h[d]-o.floating[p],T=h[d]-o.reference[d],v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let M=v?v[w]:0;(!M||!await(s.isElement==null?void 0:s.isElement(v)))&&(M=a.floating[w]||o.floating[p]);const I=E/2-T/2,W=M/2-b[p]/2-1,x=yt(c[y],W),N=yt(c[_],W),D=x,G=M-b[p]-N,F=M/2-b[p]/2+I,O=ki(D,F,G),C=!l.arrow&&nn(i)!=null&&F!==O&&o.reference[p]/2-(F<D?x:N)-b[p]/2<0,L=C?F<D?F-D:F-G:0;return{[d]:h[d]+L,data:{[d]:O,centerOffset:F-O-L,...C&&{alignmentOffset:L}},reset:C}}}),gv=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:b=!0,...k}=st(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=at(i),_=Ge(a),w=at(a)===a,E=await(l.isRTL==null?void 0:l.isRTL(u.floating)),T=h||(w||!b?[sr(a)]:lv(a)),v=p!=="none";!h&&v&&T.push(...dv(a,b,p,E));const M=[a,...T],I=await wn(t,k),W=[];let x=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&W.push(I[y]),c){const F=av(i,s,E);W.push(I[F[0]],I[F[1]])}if(x=[...x,{placement:i,overflows:W}],!W.every(F=>F<=0)){var N,D;const F=(((N=o.flip)==null?void 0:N.index)||0)+1,O=M[F];if(O&&(!(c==="alignment"?_!==Ge(O):!1)||x.every(S=>Ge(S.placement)===_?S.overflows[0]>0:!0)))return{data:{index:F,overflows:x},reset:{placement:O}};let C=(D=x.filter(L=>L.overflows[0]<=0).sort((L,S)=>L.overflows[1]-S.overflows[1])[0])==null?void 0:D.placement;if(!C)switch(d){case"bestFit":{var G;const L=(G=x.filter(S=>{if(v){const Y=Ge(S.placement);return Y===_||Y==="y"}return!0}).map(S=>[S.placement,S.overflows.filter(Y=>Y>0).reduce((Y,m)=>Y+m,0)]).sort((S,Y)=>S[1]-Y[1])[0])==null?void 0:G[0];L&&(C=L);break}case"initialPlacement":C=a;break}if(i!==C)return{reset:{placement:C}}}return{}}}};function Zs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function js(e){return rv.some(t=>e[t]>=0)}const yv=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=st(e,t);switch(r){case"referenceHidden":{const o=await wn(t,{...i,elementContext:"reference"}),s=Zs(o,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:js(s)}}}case"escaped":{const o=await wn(t,{...i,altBoundary:!0}),s=Zs(o,n.floating);return{data:{escapedOffsets:s,escaped:js(s)}}}default:return{}}}}},Vl=new Set(["left","top"]);async function bv(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=at(n),a=nn(n),l=Ge(n)==="y",u=Vl.has(s)?-1:1,f=o&&l?-1:1,c=st(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),l?{x:d*f,y:h*u}:{x:h*u,y:d*f}}const kv=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await bv(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},xv=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:k=>{let{x:y,y:_}=k;return{x:y,y:_}}},...l}=st(e,t),u={x:n,y:r},f=await wn(t,l),c=Ge(at(i)),h=qi(c);let d=u[h],p=u[c];if(o){const k=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=d+f[k],w=d-f[y];d=ki(_,d,w)}if(s){const k=c==="y"?"top":"left",y=c==="y"?"bottom":"right",_=p+f[k],w=p-f[y];p=ki(_,p,w)}const b=a.fn({...t,[h]:d,[c]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:o,[c]:s}}}}}},vv=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=st(e,t),f={x:n,y:r},c=Ge(i),h=qi(c);let d=f[h],p=f[c];const b=st(a,t),k=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const w=h==="y"?"height":"width",E=o.reference[h]-o.floating[w]+k.mainAxis,T=o.reference[h]+o.reference[w]-k.mainAxis;d<E?d=E:d>T&&(d=T)}if(u){var y,_;const w=h==="y"?"width":"height",E=Vl.has(at(i)),T=o.reference[c]-o.floating[w]+(E&&((y=s.offset)==null?void 0:y[c])||0)+(E?0:k.crossAxis),v=o.reference[c]+o.reference[w]+(E?0:((_=s.offset)==null?void 0:_[c])||0)-(E?k.crossAxis:0);p<T?p=T:p>v&&(p=v)}return{[h]:d,[c]:p}}}},wv=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=st(e,t),f=await wn(t,u),c=at(i),h=nn(i),d=Ge(i)==="y",{width:p,height:b}=o.floating;let k,y;c==="top"||c==="bottom"?(k=c,y=h===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=c,k=h==="end"?"top":"bottom");const _=b-f.top-f.bottom,w=p-f.left-f.right,E=yt(b-f[k],_),T=yt(p-f[y],w),v=!t.middlewareData.shift;let M=E,I=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=w),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(M=_),v&&!h){const x=De(f.left,0),N=De(f.right,0),D=De(f.top,0),G=De(f.bottom,0);d?I=p-2*(x!==0||N!==0?x+N:De(f.left,f.right)):M=b-2*(D!==0||G!==0?D+G:De(f.top,f.bottom))}await l({...t,availableWidth:I,availableHeight:M});const W=await s.getDimensions(a.floating);return p!==W.width||b!==W.height?{reset:{rects:!0}}:{}}}};function br(){return typeof window<"u"}function rn(e){return Ul(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function et(e){var t;return(t=(Ul(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ul(e){return br()?e instanceof Node||e instanceof $e(e).Node:!1}function We(e){return br()?e instanceof Element||e instanceof $e(e).Element:!1}function Qe(e){return br()?e instanceof HTMLElement||e instanceof $e(e).HTMLElement:!1}function Bs(e){return!br()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}const _v=new Set(["inline","contents"]);function En(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=He(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_v.has(i)}const Sv=new Set(["table","td","th"]);function Cv(e){return Sv.has(rn(e))}const Av=[":popover-open",":modal"];function kr(e){return Av.some(t=>{try{return e.matches(t)}catch{return!1}})}const zv=["transform","translate","scale","rotate","perspective"],Ev=["transform","translate","scale","rotate","perspective","filter"],Tv=["paint","layout","strict","content"];function Xi(e){const t=Ji(),n=We(e)?He(e):e;return zv.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Ev.some(r=>(n.willChange||"").includes(r))||Tv.some(r=>(n.contain||"").includes(r))}function Iv(e){let t=bt(e);for(;Qe(t)&&!Jt(t);){if(Xi(t))return t;if(kr(t))return null;t=bt(t)}return null}function Ji(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ov=new Set(["html","body","#document"]);function Jt(e){return Ov.has(rn(e))}function He(e){return $e(e).getComputedStyle(e)}function xr(e){return We(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bt(e){if(rn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bs(e)&&e.host||et(e);return Bs(t)?t.host:t}function Wl(e){const t=bt(e);return Jt(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qe(t)&&En(t)?t:Wl(t)}function _n(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Wl(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=$e(i);if(o){const a=vi(s);return t.concat(s,s.visualViewport||[],En(i)?i:[],a&&n?_n(a):[])}return t.concat(i,_n(i,[],n))}function vi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hl(e){const t=He(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qe(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=or(n)!==o||or(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function Qi(e){return We(e)?e:e.contextElement}function Bt(e){const t=Qi(e);if(!Qe(t))return Xe(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Hl(t);let s=(o?or(n.width):n.width)/r,a=(o?or(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Pv=Xe(0);function ql(e){const t=$e(e);return!Ji()||!t.visualViewport?Pv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Rv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==$e(e)?!1:t}function At(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Qi(e);let s=Xe(1);t&&(r?We(r)&&(s=Bt(r)):s=Bt(e));const a=Rv(o,n,r)?ql(o):Xe(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,c=i.height/s.y;if(o){const h=$e(o),d=r&&We(r)?$e(r):r;let p=h,b=vi(p);for(;b&&r&&d!==p;){const k=Bt(b),y=b.getBoundingClientRect(),_=He(b),w=y.left+(b.clientLeft+parseFloat(_.paddingLeft))*k.x,E=y.top+(b.clientTop+parseFloat(_.paddingTop))*k.y;l*=k.x,u*=k.y,f*=k.x,c*=k.y,l+=w,u+=E,p=$e(b),b=vi(p)}}return ar({width:f,height:c,x:l,y:u})}function vr(e,t){const n=xr(e).scrollLeft;return t?t.left+n:At(et(e)).left+n}function Gl(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-vr(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function Dv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=et(r),a=t?kr(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Xe(1);const f=Xe(0),c=Qe(r);if((c||!c&&!o)&&((rn(r)!=="body"||En(s))&&(l=xr(r)),Qe(r))){const d=At(r);u=Bt(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const h=s&&!c&&!o?Gl(s,l):Xe(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-l.scrollTop*u.y+f.y+h.y}}function Lv(e){return Array.from(e.getClientRects())}function $v(e){const t=et(e),n=xr(e),r=e.ownerDocument.body,i=De(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=De(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+vr(e);const a=-n.scrollTop;return He(r).direction==="rtl"&&(s+=De(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const Vs=25;function Nv(e,t){const n=$e(e),r=et(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const f=Ji();(!f||f&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const u=vr(r);if(u<=0){const f=r.ownerDocument,c=f.body,h=getComputedStyle(c),d=f.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(r.clientWidth-c.clientWidth-d);p<=Vs&&(o-=p)}else u<=Vs&&(o+=u);return{width:o,height:s,x:a,y:l}}const Fv=new Set(["absolute","fixed"]);function Mv(e,t){const n=At(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Qe(e)?Bt(e):Xe(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function Us(e,t,n){let r;if(t==="viewport")r=Nv(e,n);else if(t==="document")r=$v(et(e));else if(We(t))r=Mv(t,n);else{const i=ql(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return ar(r)}function Yl(e,t){const n=bt(e);return n===t||!We(n)||Jt(n)?!1:He(n).position==="fixed"||Yl(n,t)}function Zv(e,t){const n=t.get(e);if(n)return n;let r=_n(e,[],!1).filter(a=>We(a)&&rn(a)!=="body"),i=null;const o=He(e).position==="fixed";let s=o?bt(e):e;for(;We(s)&&!Jt(s);){const a=He(s),l=Xi(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&Fv.has(i.position)||En(s)&&!l&&Yl(e,s))?r=r.filter(f=>f!==s):i=a,s=bt(s)}return t.set(e,r),r}function jv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?kr(t)?[]:Zv(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const c=Us(t,f,i);return u.top=De(c.top,u.top),u.right=yt(c.right,u.right),u.bottom=yt(c.bottom,u.bottom),u.left=De(c.left,u.left),u},Us(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Bv(e){const{width:t,height:n}=Hl(e);return{width:t,height:n}}function Vv(e,t,n){const r=Qe(t),i=et(t),o=n==="fixed",s=At(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=Xe(0);function u(){l.x=vr(i)}if(r||!r&&!o)if((rn(t)!=="body"||En(i))&&(a=xr(t)),r){const d=At(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&u();o&&!r&&i&&u();const f=i&&!r&&!o?Gl(i,a):Xe(0),c=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:c,y:h,width:s.width,height:s.height}}function qr(e){return He(e).position==="static"}function Ws(e,t){if(!Qe(e)||He(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return et(e)===n&&(n=n.ownerDocument.body),n}function Xl(e,t){const n=$e(e);if(kr(e))return n;if(!Qe(e)){let i=bt(e);for(;i&&!Jt(i);){if(We(i)&&!qr(i))return i;i=bt(i)}return n}let r=Ws(e,t);for(;r&&Cv(r)&&qr(r);)r=Ws(r,t);return r&&Jt(r)&&qr(r)&&!Xi(r)?n:r||Iv(e)||n}const Uv=async function(e){const t=this.getOffsetParent||Xl,n=this.getDimensions,r=await n(e.floating);return{reference:Vv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Wv(e){return He(e).direction==="rtl"}const Hv={convertOffsetParentRelativeRectToViewportRelativeRect:Dv,getDocumentElement:et,getClippingRect:jv,getOffsetParent:Xl,getElementRects:Uv,getClientRects:Lv,getDimensions:Bv,getScale:Bt,isElement:We,isRTL:Wv};function Jl(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qv(e,t){let n=null,r;const i=et(e);function o(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:h,height:d}=u;if(a||t(),!h||!d)return;const p=Bn(c),b=Bn(i.clientWidth-(f+h)),k=Bn(i.clientHeight-(c+d)),y=Bn(f),w={rootMargin:-p+"px "+-b+"px "+-k+"px "+-y+"px",threshold:De(0,yt(1,l))||1};let E=!0;function T(v){const M=v[0].intersectionRatio;if(M!==l){if(!E)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}M===1&&!Jl(u,e.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(T,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,w)}n.observe(e)}return s(!0),o}function jw(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Qi(e),f=i||o?[...u?_n(u):[],..._n(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const c=u&&a?qv(u,n):null;let h=-1,d=null;s&&(d=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=d)==null||w.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let p,b=l?At(e):null;l&&k();function k(){const y=At(e);b&&!Jl(b,y)&&n(),b=y,p=requestAnimationFrame(k)}return n(),()=>{var y;f.forEach(_=>{i&&_.removeEventListener("scroll",n),o&&_.removeEventListener("resize",n)}),c?.(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const Gv=kv,Yv=xv,Xv=gv,Jv=wv,Qv=yv,Hs=mv,Kv=vv,ew=(e,t,n)=>{const r=new Map,i={platform:Hv,...n},o={...i.platform,_c:r};return pv(e,t,{...i,platform:o})};var tw=typeof document<"u",nw=function(){},Un=tw?ye.useLayoutEffect:nw;function lr(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ql(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function qs(e,t){const n=Ql(e);return Math.round(t*n)/n}function Gr(e){const t=ye.useRef(e);return Un(()=>{t.current=e}),t}function Bw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,c]=ye.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=ye.useState(r);lr(h,r)||d(r);const[p,b]=ye.useState(null),[k,y]=ye.useState(null),_=ye.useCallback(S=>{S!==v.current&&(v.current=S,b(S))},[]),w=ye.useCallback(S=>{S!==M.current&&(M.current=S,y(S))},[]),E=o||p,T=s||k,v=ye.useRef(null),M=ye.useRef(null),I=ye.useRef(f),W=l!=null,x=Gr(l),N=Gr(i),D=Gr(u),G=ye.useCallback(()=>{if(!v.current||!M.current)return;const S={placement:t,strategy:n,middleware:h};N.current&&(S.platform=N.current),ew(v.current,M.current,S).then(Y=>{const m={...Y,isPositioned:D.current!==!1};F.current&&!lr(I.current,m)&&(I.current=m,au.flushSync(()=>{c(m)}))})},[h,t,n,N,D]);Un(()=>{u===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,c(S=>({...S,isPositioned:!1})))},[u]);const F=ye.useRef(!1);Un(()=>(F.current=!0,()=>{F.current=!1}),[]),Un(()=>{if(E&&(v.current=E),T&&(M.current=T),E&&T){if(x.current)return x.current(E,T,G);G()}},[E,T,G,x,W]);const O=ye.useMemo(()=>({reference:v,floating:M,setReference:_,setFloating:w}),[_,w]),C=ye.useMemo(()=>({reference:E,floating:T}),[E,T]),L=ye.useMemo(()=>{const S={position:n,left:0,top:0};if(!C.floating)return S;const Y=qs(C.floating,f.x),m=qs(C.floating,f.y);return a?{...S,transform:"translate("+Y+"px, "+m+"px)",...Ql(C.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Y,top:m}},[n,a,C.floating,f.x,f.y]);return ye.useMemo(()=>({...f,update:G,refs:O,elements:C,floatingStyles:L}),[f,G,O,C,L])}const rw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Hs({element:r.current,padding:i}).fn(n):{}:r?Hs({element:r,padding:i}).fn(n):{}}}},Vw=(e,t)=>({...Gv(e),options:[e,t]}),Uw=(e,t)=>({...Yv(e),options:[e,t]}),Ww=(e,t)=>({...Kv(e),options:[e,t]}),Hw=(e,t)=>({...Xv(e),options:[e,t]}),qw=(e,t)=>({...Jv(e),options:[e,t]}),Gw=(e,t)=>({...Qv(e),options:[e,t]}),Yw=(e,t)=>({...rw(e),options:[e,t]});export{Sw as $,er as A,Iw as B,Aw as C,Tw as D,Nw as E,Lw as F,$w as G,Pw as H,bl as I,Rw as J,Dw as K,sw as L,cw as M,dw as N,Ao as O,aw as P,lw as Q,uw as R,dd as S,uh as T,nh as U,Hb as V,hw as W,fw as X,Cw as Y,Kh as Z,jp as _,mw as a,vw as b,kw as c,gw as d,Fw as e,Mw as f,Zw as g,Ow as h,Bw as i,Vw as j,Uw as k,_w as l,Hw as m,yw as n,xw as o,qw as p,Yw as q,ww as r,pw as s,Gw as t,bw as u,Ww as v,jw as w,ow as x,Ew as y,zw as z};