@tonyclaw/llm-inspector 1.9.8 → 1.9.9

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,4 +1,4 @@
1
- import{r as _,a as ur,c as br,g as Li,j as h,R as tt,b as Ql,d as wh,u as _h}from"./index-NIg9RFlA.js";var Bs;function K(e,t,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const c=s.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const p=u[f];p in a||(a[p]=c[p].bind(a))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var l;const c=n?.Parent?new i:this;r(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}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 kn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ec extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Bs=globalThis).__zod_globalConfig??(Bs.__zod_globalConfig={});const Fi=globalThis.__zod_globalConfig;function Mt(e){return Fi}function tc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ai(e,t){return typeof t=="bigint"?t.toString():t}function io(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function $i(e){return e==null}function Bi(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function kh(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Us=Symbol("evaluating");function Ne(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Us)return r===void 0&&(r=Us,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function ln(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Zs(e){return JSON.stringify(e)}function Sh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const nc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function or(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ch=io(()=>{if(Fi.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Nn(e){if(or(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(or(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rc(e){return Nn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Eh=new Set(["string","number","symbol"]);function An(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 me(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 Th(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Nh={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 Ah(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Gt(e._zod.def,{get shape(){const s={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=n.shape[a])}return ln(this,"shape",s),s},checks:[]});return Kt(e,i)}function zh(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Gt(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return ln(this,"shape",s),s},checks:[]});return Kt(e,i)}function jh(e,t){if(!Nn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Gt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return ln(this,"shape",i),i}});return Kt(e,o)}function Ih(e,t){if(!Nn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Gt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return ln(this,"shape",r),r}});return Kt(e,n)}function Ph(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Gt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return ln(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Kt(e,n)}function Oh(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=Gt(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(n)for(const c in n){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=e?new e({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)l[c]=e?new e({type:"optional",innerType:a[c]}):a[c];return ln(this,"shape",l),l},checks:[]});return Kt(t,s)}function Rh(e,t,n){const r=Gt(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return ln(this,"shape",i),i}});return Kt(t,r)}function vn(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 Dh(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function bn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function wr(e){return typeof e=="string"?e:e?.message}function Lt(e,t,n){const r=e.message?e.message:wr(e.inst?._zod.def?.error?.(e))??wr(t?.error?.(e))??wr(n.customError?.(e))??wr(n.localeError?.(e))??"Invalid input",{inst:o,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=r,t?.reportInput&&(a.input=s),a}function Ui(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ir(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const oc=(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,ai,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ic=K("$ZodError",oc),sc=K("$ZodError",oc,{Parent:Error});function Mh(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Lh(e,t=n=>n.message){const n={_errors:[]},r=(o,i=[])=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{const a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let l=n,c=0;for(;c<a.length;){const u=a[c];c===a.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(t(s))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}}};return r(e),n}const Zi=e=>(t,n,r,o)=>{const i=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new kn;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>Lt(l,i,Mt())));throw nc(a,o?.callee),a}return s.value},Vi=e=>async(t,n,r,o)=>{const i=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>Lt(l,i,Mt())));throw nc(a,o?.callee),a}return s.value},so=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new kn;return i.issues.length?{success:!1,error:new(e??ic)(i.issues.map(s=>Lt(s,o,Mt())))}:{success:!0,data:i.value}},Fh=so(sc),ao=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Lt(s,o,Mt())))}:{success:!0,data:i.value}},$h=ao(sc),Bh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Zi(e)(t,n,o)},Uh=e=>(t,n,r)=>Zi(e)(t,n,r),Zh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Vi(e)(t,n,o)},Vh=e=>async(t,n,r)=>Vi(e)(t,n,r),Wh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return so(e)(t,n,o)},Hh=e=>(t,n,r)=>so(e)(t,n,r),qh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ao(e)(t,n,o)},Gh=e=>async(t,n,r)=>ao(e)(t,n,r),Kh=/^[cC][0-9a-z]{6,}$/,Yh=/^[0-9a-z]+$/,Jh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xh=/^[0-9a-vA-V]{20}$/,Qh=/^[A-Za-z0-9]{27}$/,ep=/^[a-zA-Z0-9_-]{21}$/,tp=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,np=/^([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})$/,Vs=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)$/,rp=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,op="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ip(){return new RegExp(op,"u")}const sp=/^(?:(?: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])$/,ap=/^(([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}|:))$/,lp=/^((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])$/,cp=/^(([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])$/,up=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ac=/^[A-Za-z0-9_-]*$/,dp=/^https?$/,fp=/^\+[1-9]\d{6,14}$/,lc="(?:(?:\\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])))",hp=new RegExp(`^${lc}$`);function cc(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 pp(e){return new RegExp(`^${cc(e)}$`)}function mp(e){const t=cc({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(`^${lc}T(?:${r})$`)}const gp=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xp=/^-?\d+$/,uc=/^-?\d+(?:\.\d+)?$/,yp=/^(?:true|false)$/i,vp=/^null$/i,bp=/^[^A-Z]*$/,wp=/^[^a-z]*$/,rt=K("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dc={number:"number",bigint:"bigint",object:"date"},fc=K("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);const n=dc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hc=K("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);const n=dc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_p=K("$ZodCheckMultipleOf",(e,t)=>{rt.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):kh(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})}}),kp=K("$ZodCheckNumberFormat",(e,t)=>{rt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Nh[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=o,a.maximum=i,n&&(a.pattern=xp)}),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,inclusive:!0,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,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Sp=K("$ZodCheckMaxLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$i(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const s=Ui(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cp=K("$ZodCheckMinLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$i(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const s=Ui(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ep=K("$ZodCheckLengthEquals",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$i(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const s=Ui(o),a=i>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})}}),lo=K("$ZodCheckStringFormat",(e,t)=>{var n,r;rt.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Tp=K("$ZodCheckRegex",(e,t)=>{lo.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})}}),Np=K("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=bp),lo.init(e,t)}),Ap=K("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=wp),lo.init(e,t)}),zp=K("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),jp=K("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),Ip=K("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),Pp=K("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Op{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(`
1
+ import{r as _,a as ur,c as br,g as Li,j as h,R as tt,b as Ql,d as wh,u as _h}from"./index-a_XE_Ksv.js";var Bs;function K(e,t,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(e))return;a._zod.traits.add(e),t(a,l);const c=s.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const p=u[f];p in a||(a[p]=c[p].bind(a))}}const o=n?.Parent??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function s(a){var l;const c=n?.Parent?new i:this;r(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}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 kn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class ec extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(Bs=globalThis).__zod_globalConfig??(Bs.__zod_globalConfig={});const Fi=globalThis.__zod_globalConfig;function Mt(e){return Fi}function tc(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function ai(e,t){return typeof t=="bigint"?t.toString():t}function io(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function $i(e){return e==null}function Bi(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function kh(e,t){const n=e/t,r=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}const Us=Symbol("evaluating");function Ne(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==Us)return r===void 0&&(r=Us,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function ln(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Gt(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Zs(e){return JSON.stringify(e)}function Sh(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const nc="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function or(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Ch=io(()=>{if(Fi.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Nn(e){if(or(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(or(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function rc(e){return Nn(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Eh=new Set(["string","number","symbol"]);function An(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 me(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 Th(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Nh={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 Ah(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i=Gt(e._zod.def,{get shape(){const s={};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(s[a]=n.shape[a])}return ln(this,"shape",s),s},checks:[]});return Kt(e,i)}function zh(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=Gt(e._zod.def,{get shape(){const s={...e._zod.def.shape};for(const a in t){if(!(a in n.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete s[a]}return ln(this,"shape",s),s},checks:[]});return Kt(e,i)}function jh(e,t){if(!Nn(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const i=e._zod.def.shape;for(const s in t)if(Object.getOwnPropertyDescriptor(i,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Gt(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return ln(this,"shape",i),i}});return Kt(e,o)}function Ih(e,t){if(!Nn(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Gt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t};return ln(this,"shape",r),r}});return Kt(e,n)}function Ph(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Gt(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return ln(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Kt(e,n)}function Oh(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const s=Gt(t._zod.def,{get shape(){const a=t._zod.def.shape,l={...a};if(n)for(const c in n){if(!(c in a))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(l[c]=e?new e({type:"optional",innerType:a[c]}):a[c])}else for(const c in a)l[c]=e?new e({type:"optional",innerType:a[c]}):a[c];return ln(this,"shape",l),l},checks:[]});return Kt(t,s)}function Rh(e,t,n){const r=Gt(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(i[s]=new e({type:"nonoptional",innerType:o[s]}))}else for(const s in o)i[s]=new e({type:"nonoptional",innerType:o[s]});return ln(this,"shape",i),i}});return Kt(t,r)}function vn(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 Dh(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function bn(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function wr(e){return typeof e=="string"?e:e?.message}function Lt(e,t,n){const r=e.message?e.message:wr(e.inst?._zod.def?.error?.(e))??wr(t?.error?.(e))??wr(n.customError?.(e))??wr(n.localeError?.(e))??"Invalid input",{inst:o,continue:i,input:s,...a}=e;return a.path??(a.path=[]),a.message=r,t?.reportInput&&(a.input=s),a}function Ui(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ir(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const oc=(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,ai,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},ic=K("$ZodError",oc),sc=K("$ZodError",oc,{Parent:Error});function Mh(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function Lh(e,t=n=>n.message){const n={_errors:[]},r=(o,i=[])=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{const a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let l=n,c=0;for(;c<a.length;){const u=a[c];c===a.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(t(s))):l[u]=l[u]||{_errors:[]},l=l[u],c++}}}};return r(e),n}const Zi=e=>(t,n,r,o)=>{const i=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new kn;if(s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>Lt(l,i,Mt())));throw nc(a,o?.callee),a}return s.value},Vi=e=>async(t,n,r,o)=>{const i=r?{...r,async:!0}:{async:!0};let s=t._zod.run({value:n,issues:[]},i);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new(o?.Err??e)(s.issues.map(l=>Lt(l,i,Mt())));throw nc(a,o?.callee),a}return s.value},so=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new kn;return i.issues.length?{success:!1,error:new(e??ic)(i.issues.map(s=>Lt(s,o,Mt())))}:{success:!0,data:i.value}},Fh=so(sc),ao=e=>async(t,n,r)=>{const o=r?{...r,async:!0}:{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(s=>Lt(s,o,Mt())))}:{success:!0,data:i.value}},$h=ao(sc),Bh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Zi(e)(t,n,o)},Uh=e=>(t,n,r)=>Zi(e)(t,n,r),Zh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return Vi(e)(t,n,o)},Vh=e=>async(t,n,r)=>Vi(e)(t,n,r),Wh=e=>(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return so(e)(t,n,o)},Hh=e=>(t,n,r)=>so(e)(t,n,r),qh=e=>async(t,n,r)=>{const o=r?{...r,direction:"backward"}:{direction:"backward"};return ao(e)(t,n,o)},Gh=e=>async(t,n,r)=>ao(e)(t,n,r),Kh=/^[cC][0-9a-z]{6,}$/,Yh=/^[0-9a-z]+$/,Jh=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xh=/^[0-9a-vA-V]{20}$/,Qh=/^[A-Za-z0-9]{27}$/,ep=/^[a-zA-Z0-9_-]{21}$/,tp=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,np=/^([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})$/,Vs=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)$/,rp=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,op="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function ip(){return new RegExp(op,"u")}const sp=/^(?:(?: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])$/,ap=/^(([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}|:))$/,lp=/^((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])$/,cp=/^(([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])$/,up=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ac=/^[A-Za-z0-9_-]*$/,dp=/^https?$/,fp=/^\+[1-9]\d{6,14}$/,lc="(?:(?:\\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])))",hp=new RegExp(`^${lc}$`);function cc(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 pp(e){return new RegExp(`^${cc(e)}$`)}function mp(e){const t=cc({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(`^${lc}T(?:${r})$`)}const gp=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xp=/^-?\d+$/,uc=/^-?\d+(?:\.\d+)?$/,yp=/^(?:true|false)$/i,vp=/^null$/i,bp=/^[^A-Z]*$/,wp=/^[^a-z]*$/,rt=K("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dc={number:"number",bigint:"bigint",object:"date"},fc=K("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);const n=dc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),hc=K("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);const n=dc[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),_p=K("$ZodCheckMultipleOf",(e,t)=>{rt.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):kh(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})}}),kp=K("$ZodCheckNumberFormat",(e,t)=>{rt.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Nh[t.format];e._zod.onattach.push(s=>{const a=s._zod.bag;a.format=t.format,a.minimum=o,a.maximum=i,n&&(a.pattern=xp)}),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,inclusive:!0,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,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Sp=K("$ZodCheckMaxLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$i(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const s=Ui(o);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Cp=K("$ZodCheckMinLength",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$i(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const s=Ui(o);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ep=K("$ZodCheckLengthEquals",(e,t)=>{var n;rt.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!$i(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const s=Ui(o),a=i>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})}}),lo=K("$ZodCheckStringFormat",(e,t)=>{var n,r;rt.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Tp=K("$ZodCheckRegex",(e,t)=>{lo.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})}}),Np=K("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=bp),lo.init(e,t)}),Ap=K("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=wp),lo.init(e,t)}),zp=K("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);const n=An(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),jp=K("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`^${An(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),Ip=K("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);const n=new RegExp(`.*${An(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.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})}}),Pp=K("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Op{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
2
  `).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(const s of i)this.content.push(s)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...n,o.join(`
3
3
  `))}}const Rp={major:4,minor:4,patch:3},Me=K("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Rp;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const i of o._zod.onattach)i(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(s,a,l)=>{let c=vn(s),u;for(const f of a){if(f._zod.def.when){if(Dh(s)||!f._zod.def.when(s))continue}else if(c)continue;const p=s.issues.length,d=f._zod.check(s);if(d instanceof Promise&&l?.async===!1)throw new kn;if(u||d instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await d,s.issues.length!==p&&(c||(c=vn(s,p)))});else{if(s.issues.length===p)continue;c||(c=vn(s,p))}}return u?u.then(()=>s):s},i=(s,a,l)=>{if(vn(s))return s.aborted=!0,s;const c=o(a,r,l);if(c instanceof Promise){if(l.async===!1)throw new kn;return c.then(u=>e._zod.parse(u,l))}return e._zod.parse(c,l)};e._zod.run=(s,a)=>{if(a.skipChecks)return e._zod.parse(s,a);if(a.direction==="backward"){const c=e._zod.parse({value:s.value,issues:[]},{...a,skipChecks:!0});return c instanceof Promise?c.then(u=>i(u,s,a)):i(c,s,a)}const l=e._zod.parse(s,a);if(l instanceof Promise){if(a.async===!1)throw new kn;return l.then(c=>o(c,r,a))}return o(l,r,a)}}Ne(e,"~standard",()=>({validate:o=>{try{const i=Fh(e,o);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return $h(e,o).then(s=>s.success?{value:s.data}:{issues:s.error?.issues})}},vendor:"zod",version:1}))}),Wi=K("$ZodString",(e,t)=>{Me.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??gp(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}}),Fe=K("$ZodStringFormat",(e,t)=>{lo.init(e,t),Wi.init(e,t)}),Dp=K("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=np),Fe.init(e,t)}),Mp=K("$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=Vs(r))}else t.pattern??(t.pattern=Vs());Fe.init(e,t)}),Lp=K("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=rp),Fe.init(e,t)}),Fp=K("$ZodURL",(e,t)=>{Fe.init(e,t),e._zod.check=n=>{try{const r=n.value.trim();if(!t.normalize&&t.protocol?.source===dp.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}const o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.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=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),$p=K("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ip()),Fe.init(e,t)}),Bp=K("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=ep),Fe.init(e,t)}),Up=K("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Kh),Fe.init(e,t)}),Zp=K("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Yh),Fe.init(e,t)}),Vp=K("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Jh),Fe.init(e,t)}),Wp=K("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Xh),Fe.init(e,t)}),Hp=K("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Qh),Fe.init(e,t)}),qp=K("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=mp(t)),Fe.init(e,t)}),Gp=K("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=hp),Fe.init(e,t)}),Kp=K("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=pp(t)),Fe.init(e,t)}),Yp=K("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=tp),Fe.init(e,t)}),Jp=K("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=sp),Fe.init(e,t),e._zod.bag.format="ipv4"}),Xp=K("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ap),Fe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),Qp=K("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=lp),Fe.init(e,t)}),em=K("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=cp),Fe.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const s=Number(i);if(`${s}`!==i)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function pc(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const tm=K("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=up),Fe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{pc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function nm(e){if(!ac.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return pc(n)}const rm=K("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=ac),Fe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{nm(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),om=K("$ZodE164",(e,t)=>{t.pattern??(t.pattern=fp),Fe.init(e,t)});function im(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const sm=K("$ZodJWT",(e,t)=>{Fe.init(e,t),e._zod.check=n=>{im(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),mc=K("$ZodNumber",(e,t)=>{Me.init(e,t),e._zod.pattern=e._zod.bag.pattern??uc,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),am=K("$ZodNumberFormat",(e,t)=>{kp.init(e,t),mc.init(e,t)}),lm=K("$ZodBoolean",(e,t)=>{Me.init(e,t),e._zod.pattern=yp,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),cm=K("$ZodNull",(e,t)=>{Me.init(e,t),e._zod.pattern=vp,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),um=K("$ZodUnknown",(e,t)=>{Me.init(e,t),e._zod.parse=n=>n}),dm=K("$ZodNever",(e,t)=>{Me.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Ws(e,t,n){e.issues.length&&t.issues.push(...bn(n,e.issues)),t.value[n]=e.value}const fm=K("$ZodArray",(e,t)=>{Me.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let s=0;s<o.length;s++){const a=o[s],l=t.element._zod.run({value:a,issues:[]},r);l instanceof Promise?i.push(l.then(c=>Ws(c,n,s))):Ws(l,n,s)}return i.length?Promise.all(i).then(()=>n):n}});function Ur(e,t,n,r,o,i){const s=n in r;if(e.issues.length){if(o&&i&&!s)return;t.issues.push(...bn(n,e.issues))}if(!s&&!o){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?s&&(t.value[n]=void 0):t.value[n]=e.value}function gc(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=Th(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function xc(e,t,n,r,o,i){const s=[],a=o.keySet,l=o.catchall._zod,c=l.def.type,u=l.optin==="optional",f=l.optout==="optional";for(const p in t){if(p==="__proto__"||a.has(p))continue;if(c==="never"){s.push(p);continue}const d=l.run({value:t[p],issues:[]},r);d instanceof Promise?e.push(d.then(g=>Ur(g,n,p,t,u,f))):Ur(d,n,p,t,u,f)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const hm=K("$ZodObject",(e,t)=>{if(Me.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=io(()=>gc(t));Ne(e._zod,"propValues",()=>{const a=t.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const f of u.values)l[c].add(f)}}return l});const o=or,i=t.catchall;let s;e._zod.parse=(a,l)=>{s??(s=r.value);const c=a.value;if(!o(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),a;a.value={};const u=[],f=s.shape;for(const p of s.keys){const d=f[p],g=d._zod.optin==="optional",m=d._zod.optout==="optional",y=d._zod.run({value:c[p],issues:[]},l);y instanceof Promise?u.push(y.then(x=>Ur(x,a,p,c,g,m))):Ur(y,a,p,c,g,m)}return i?xc(u,c,a,l,r.value,e):u.length?Promise.all(u).then(()=>a):a}}),pm=K("$ZodObjectJIT",(e,t)=>{hm.init(e,t);const n=e._zod.parse,r=io(()=>gc(t)),o=p=>{const d=new Op(["shape","payload","ctx"]),g=r.value,m=k=>{const S=Zs(k);return`shape[${S}]._zod.run({ value: input[${S}], issues: [] }, ctx)`};d.write("const input = payload.value;");const y=Object.create(null);let x=0;for(const k of g.keys)y[k]=`key_${x++}`;d.write("const newResult = {};");for(const k of g.keys){const S=y[k],C=Zs(k),T=p[k],j=T?._zod?.optin==="optional",P=T?._zod?.optout==="optional";d.write(`const ${S} = ${m(k)};`),j&&P?d.write(`
4
4
  if (${S}.issues.length) {
@@ -62,7 +62,7 @@ import{r as _,a as ur,c as br,g as Li,j as h,R as tt,b as Ql,d as wh,u as _h}fro
62
62
  `)}d.write("payload.value = newResult;"),d.write("return payload;");const b=d.compile();return(k,S)=>b(p,k,S)};let i;const s=or,a=!Fi.jitless,c=a&&Ch.value,u=t.catchall;let f;e._zod.parse=(p,d)=>{f??(f=r.value);const g=p.value;return s(g)?a&&c&&d?.async===!1&&d.jitless!==!0?(i||(i=o(t.shape)),p=i(p,d),u?xc([],g,p,d,f,e):p):n(p,d):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function Hs(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!vn(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>Lt(s,r,Mt())))}),t)}const yc=K("$ZodUnion",(e,t)=>{Me.init(e,t),Ne(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Ne(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Ne(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Ne(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){const r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Bi(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1;const s=[];for(const a of t.options){const l=a._zod.run({value:r.value,issues:[]},o);if(l instanceof Promise)s.push(l),i=!0;else{if(l.issues.length===0)return l;s.push(l)}}return i?Promise.all(s).then(a=>Hs(a,r,e,o)):Hs(s,r,e,o)}}),mm=K("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,yc.init(e,t);const n=e._zod.parse;Ne(e._zod,"propValues",()=>{const o={};for(const i of t.options){const s=i._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(const[a,l]of Object.entries(s)){o[a]||(o[a]=new Set);for(const c of l)o[a].add(c)}}return o});const r=io(()=>{const o=t.options,i=new Map;for(const s of o){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(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,s)}}return i});e._zod.parse=(o,i)=>{const s=o.value;if(!or(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;const a=r.value.get(s?.[t.discriminator]);return a?a._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()),input:s,path:[t.discriminator],inst:e}),o)}}),gm=K("$ZodIntersection",(e,t)=>{Me.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([l,c])=>qs(n,l,c)):qs(n,i,s)}});function li(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(Nn(e)&&Nn(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const s=li(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}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 o=e[r],i=t[r],s=li(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function qs(e,t,n){const r=new Map;let o;for(const a of t.issues)if(a.code==="unrecognized_keys"){o??(o=a);for(const l of a.keys)r.has(l)||r.set(l,{}),r.get(l).l=!0}else e.issues.push(a);for(const a of n.issues)if(a.code==="unrecognized_keys")for(const l of a.keys)r.has(l)||r.set(l,{}),r.get(l).r=!0;else e.issues.push(a);const i=[...r].filter(([,a])=>a.l&&a.r).map(([a])=>a);if(i.length&&o&&e.issues.push({...o,keys:i}),vn(e))return e;const s=li(t.value,n.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const xm=K("$ZodRecord",(e,t)=>{Me.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Nn(o))return n.issues.push({expected:"record",code:"invalid_type",input:o,inst:e}),n;const i=[],s=t.keyType._zod.values;if(s){n.value={};const a=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=t.keyType._zod.run({value:c,issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>Lt(d,r,Mt())),input:c,path:[c],inst:e});continue}const f=u.value,p=t.valueType._zod.run({value:o[c],issues:[]},r);p instanceof Promise?i.push(p.then(d=>{d.issues.length&&n.issues.push(...bn(c,d.issues)),n.value[f]=d.value})):(p.issues.length&&n.issues.push(...bn(c,p.issues)),n.value[f]=p.value)}let l;for(const c in o)a.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:o,inst:e,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(o)){if(a==="__proto__"||!Object.prototype.propertyIsEnumerable.call(o,a))continue;let l=t.keyType._zod.run({value:a,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof a=="string"&&uc.test(a)&&l.issues.length){const f=t.keyType._zod.run({value:Number(a),issues:[]},r);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(l=f)}if(l.issues.length){t.mode==="loose"?n.value[a]=o[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(f=>Lt(f,r,Mt())),input:a,path:[a],inst:e});continue}const u=t.valueType._zod.run({value:o[a],issues:[]},r);u instanceof Promise?i.push(u.then(f=>{f.issues.length&&n.issues.push(...bn(a,f.issues)),n.value[l.value]=f.value})):(u.issues.length&&n.issues.push(...bn(a,u.issues)),n.value[l.value]=u.value)}}return i.length?Promise.all(i).then(()=>n):n}}),ym=K("$ZodEnum",(e,t)=>{Me.init(e,t);const n=tc(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Eh.has(typeof o)).map(o=>typeof o=="string"?An(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),vm=K("$ZodLiteral",(e,t)=>{if(Me.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?An(r):r?An(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),bm=K("$ZodTransform",(e,t)=>{Me.init(e,t),e._zod.optin="optional",e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ec(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n.fallback=!0,n));if(o instanceof Promise)throw new kn;return n.value=o,n.fallback=!0,n}});function Gs(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const vc=K("$ZodOptional",(e,t)=>{Me.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Ne(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Ne(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bi(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=n.value,i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>Gs(s,o)):Gs(i,o)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),wm=K("$ZodExactOptional",(e,t)=>{vc.init(e,t),Ne(e._zod,"values",()=>t.innerType._zod.values),Ne(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),_m=K("$ZodNullable",(e,t)=>{Me.init(e,t),Ne(e._zod,"optin",()=>t.innerType._zod.optin),Ne(e._zod,"optout",()=>t.innerType._zod.optout),Ne(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Bi(n.source)}|null)$`):void 0}),Ne(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)}),km=K("$ZodDefault",(e,t)=>{Me.init(e,t),e._zod.optin="optional",Ne(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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Ks(i,t)):Ks(o,t)}});function Ks(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Sm=K("$ZodPrefault",(e,t)=>{Me.init(e,t),e._zod.optin="optional",Ne(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))}),Cm=K("$ZodNonOptional",(e,t)=>{Me.init(e,t),Ne(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 o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>Ys(i,e)):Ys(o,e)}});function Ys(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 Em=K("$ZodCatch",(e,t)=>{Me.init(e,t),e._zod.optin="optional",Ne(e._zod,"optout",()=>t.innerType._zod.optout),Ne(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(s=>Lt(s,r,Mt()))},input:n.value}),n.issues=[],n.fallback=!0),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>Lt(i,r,Mt()))},input:n.value}),n.issues=[],n.fallback=!0),n)}}),Tm=K("$ZodPipe",(e,t)=>{Me.init(e,t),Ne(e._zod,"values",()=>t.in._zod.values),Ne(e._zod,"optin",()=>t.in._zod.optin),Ne(e._zod,"optout",()=>t.out._zod.optout),Ne(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>_r(s,t.in,r)):_r(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>_r(i,t.out,r)):_r(o,t.out,r)}});function _r(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}const Nm=K("$ZodReadonly",(e,t)=>{Me.init(e,t),Ne(e._zod,"propValues",()=>t.innerType._zod.propValues),Ne(e._zod,"values",()=>t.innerType._zod.values),Ne(e._zod,"optin",()=>t.innerType?._zod?.optin),Ne(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(Js):Js(o)}});function Js(e){return e.value=Object.freeze(e.value),e}const Am=K("$ZodLazy",(e,t)=>{Me.init(e,t),Ne(e._zod,"innerType",()=>{const n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Ne(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Ne(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Ne(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Ne(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),zm=K("$ZodCustom",(e,t)=>{rt.init(e,t),Me.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>Xs(i,n,r,e));Xs(o,n,r,e)}});function Xs(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(ir(o))}}var Qs;class jm{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Im(){return new jm}(Qs=globalThis).__zod_globalRegistry??(Qs.__zod_globalRegistry=Im());const Qn=globalThis.__zod_globalRegistry;function Pm(e,t){return new e({type:"string",...me(t)})}function Om(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...me(t)})}function ea(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...me(t)})}function Rm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...me(t)})}function Dm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...me(t)})}function Mm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...me(t)})}function Lm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...me(t)})}function Fm(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...me(t)})}function $m(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...me(t)})}function Bm(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...me(t)})}function Um(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...me(t)})}function Zm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...me(t)})}function Vm(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...me(t)})}function Wm(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...me(t)})}function Hm(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...me(t)})}function qm(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...me(t)})}function Gm(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...me(t)})}function Km(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...me(t)})}function Ym(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...me(t)})}function Jm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...me(t)})}function Xm(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...me(t)})}function Qm(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...me(t)})}function eg(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...me(t)})}function tg(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...me(t)})}function ng(e,t){return new e({type:"string",format:"date",check:"string_format",...me(t)})}function rg(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...me(t)})}function og(e,t){return new e({type:"string",format:"duration",check:"string_format",...me(t)})}function ig(e,t){return new e({type:"number",checks:[],...me(t)})}function sg(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...me(t)})}function ag(e,t){return new e({type:"boolean",...me(t)})}function lg(e,t){return new e({type:"null",...me(t)})}function cg(e){return new e({type:"unknown"})}function ug(e,t){return new e({type:"never",...me(t)})}function ta(e,t){return new fc({check:"less_than",...me(t),value:e,inclusive:!1})}function Po(e,t){return new fc({check:"less_than",...me(t),value:e,inclusive:!0})}function na(e,t){return new hc({check:"greater_than",...me(t),value:e,inclusive:!1})}function Oo(e,t){return new hc({check:"greater_than",...me(t),value:e,inclusive:!0})}function ra(e,t){return new _p({check:"multiple_of",...me(t),value:e})}function bc(e,t){return new Sp({check:"max_length",...me(t),maximum:e})}function Zr(e,t){return new Cp({check:"min_length",...me(t),minimum:e})}function wc(e,t){return new Ep({check:"length_equals",...me(t),length:e})}function dg(e,t){return new Tp({check:"string_format",format:"regex",...me(t),pattern:e})}function fg(e){return new Np({check:"string_format",format:"lowercase",...me(e)})}function hg(e){return new Ap({check:"string_format",format:"uppercase",...me(e)})}function pg(e,t){return new zp({check:"string_format",format:"includes",...me(t),includes:e})}function mg(e,t){return new jp({check:"string_format",format:"starts_with",...me(t),prefix:e})}function gg(e,t){return new Ip({check:"string_format",format:"ends_with",...me(t),suffix:e})}function Dn(e){return new Pp({check:"overwrite",tx:e})}function xg(e){return Dn(t=>t.normalize(e))}function yg(){return Dn(e=>e.trim())}function vg(){return Dn(e=>e.toLowerCase())}function bg(){return Dn(e=>e.toUpperCase())}function wg(){return Dn(e=>Sh(e))}function _g(e,t,n){return new e({type:"array",element:t,...me(n)})}function kg(e,t,n){return new e({type:"custom",check:"custom",fn:t,...me(n)})}function Sg(e,t){const n=Cg(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(ir(o,r.value,n._zod.def));else{const i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(ir(i))}},e(r.value,r)),t);return n}function Cg(e,t){const n=new rt({check:"custom",...me(t)});return n._zod.check=e,n}function _c(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Qn,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Ve(e,t,n={path:[],schemaPath:[]}){var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s);const a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{const u={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,u);else{const p=s.schema,d=t.processors[o.type];if(!d)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);d(e,t,p,u)}const f=e._zod.parent;f&&(s.ref||(s.ref=f),Ve(f,t,u),t.seen.get(f).isParent=!0)}const l=t.metadataRegistry.get(e);return l&&Object.assign(s.schema,l),t.io==="input"&&Ye(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function kc(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=new Map;for(const s of e.seen.entries()){const a=e.metadataRegistry.get(s[0])?.id;if(a){const l=r.get(a);if(l&&l!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}const o=s=>{const a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const f=e.external.registry.get(s[0])?.id,p=e.external.uri??(g=>g);if(f)return{ref:p(f)};const d=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=d,{defId:d,ref:`${p("__shared")}#/${a}/${d}`}}if(s[1]===n)return{ref:"#"};const c=`#/${a}/`,u=s[1].schema.id??`__schema${e.counter++}`;return{defId:u,ref:c+u}},i=s=>{if(s[1].schema.$ref)return;const a=s[1],{ref:l,defId:c}=o(s);a.def={...a.schema},c&&(a.defId=c);const u=a.schema;for(const f in u)delete u[f];u.$ref=l};if(e.cycles==="throw")for(const s of e.seen.entries()){const a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
63
63
 
64
64
  Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const a=s[1];if(t===s[0]){i(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}if(a.count>1&&e.reused==="ref"){i(s);continue}}}function Sc(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=a=>{const l=e.seen.get(a);if(l.ref===null)return;const c=l.def??l.schema,u={...c},f=l.ref;if(l.ref=null,f){r(f);const d=e.seen.get(f),g=d.schema;if(g.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(c.allOf=c.allOf??[],c.allOf.push(g)):Object.assign(c,g),Object.assign(c,u),a._zod.parent===f)for(const y in c)y==="$ref"||y==="allOf"||y in u||delete c[y];if(g.$ref&&d.def)for(const y in c)y==="$ref"||y==="allOf"||y in d.def&&JSON.stringify(c[y])===JSON.stringify(d.def[y])&&delete c[y]}const p=a._zod.parent;if(p&&p!==f){r(p);const d=e.seen.get(p);if(d?.schema.$ref&&(c.$ref=d.schema.$ref,d.def))for(const g in c)g==="$ref"||g==="allOf"||g in d.def&&JSON.stringify(c[g])===JSON.stringify(d.def[g])&&delete c[g]}e.override({zodSchema:a,jsonSchema:c,path:l.path??[]})};for(const a of[...e.seen.entries()].reverse())r(a[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Object.assign(o,n.def??n.schema);const i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;const s=e.external?.defs??{};for(const a of e.seen.entries()){const l=a[1];l.def&&l.defId&&(l.def.id===l.defId&&delete l.def.id,s[l.defId]=l.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{const a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Vr(t,"input",e.processors),output:Vr(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Ye(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Ye(r.element,n);if(r.type==="set")return Ye(r.valueType,n);if(r.type==="lazy")return Ye(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Ye(r.innerType,n);if(r.type==="intersection")return Ye(r.left,n)||Ye(r.right,n);if(r.type==="record"||r.type==="map")return Ye(r.keyType,n)||Ye(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Ye(r.in,n)||Ye(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Ye(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Ye(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Ye(o,n))return!0;return!!(r.rest&&Ye(r.rest,n))}return!1}const Eg=(e,t={})=>n=>{const r=_c({...n,processors:t});return Ve(e,r),kc(r,e),Sc(r,e)},Vr=(e,t,n={})=>r=>{const{libraryOptions:o,target:i}=r??{},s=_c({...o??{},target:i,io:t,processors:n});return Ve(e,s),kc(s,e),Sc(s,e)},Tg={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ng=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:i,maximum:s,format:a,patterns:l,contentEncoding:c}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=Tg[a]??a,o.format===""&&delete o.format,a==="time"&&delete o.format),c&&(o.contentEncoding=c),l&&l.size>0){const u=[...l];u.length===1?o.pattern=u[0].source:u.length>1&&(o.allOf=[...u.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},Ag=(e,t,n,r)=>{const o=n,{minimum:i,maximum:s,format:a,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=e._zod.bag;typeof a=="string"&&a.includes("int")?o.type="integer":o.type="number";const f=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),p=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),d=t.target==="draft-04"||t.target==="openapi-3.0";f?d?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),p?d?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),typeof l=="number"&&(o.multipleOf=l)},zg=(e,t,n,r)=>{n.type="boolean"},jg=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Ig=(e,t,n,r)=>{n.not={}},Pg=(e,t,n,r)=>{},Og=(e,t,n,r)=>{const o=e._zod.def,i=tc(o.entries);i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},Rg=(e,t,n,r)=>{const o=e._zod.def,i=[];for(const s of o.values)if(s===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){const s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},Dg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Mg=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Lg=(e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:s,maximum:a}=e._zod.bag;typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=Ve(i.element,t,{...r,path:[...r.path,"items"]})},Fg=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object",o.properties={};const s=i.shape;for(const c in s)o.properties[c]=Ve(s[c],t,{...r,path:[...r.path,"properties",c]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(c=>{const u=i.shape[c]._zod;return t.io==="input"?u.optin===void 0:u.optout===void 0}));l.size>0&&(o.required=Array.from(l)),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=Ve(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},$g=(e,t,n,r)=>{const o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,l)=>Ve(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=s:n.anyOf=s},Bg=(e,t,n,r)=>{const o=e._zod.def,i=Ve(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=Ve(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=c=>"allOf"in c&&Object.keys(c).length===1,l=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=l},Ug=(e,t,n,r)=>{const o=n,i=e._zod.def;o.type="object";const s=i.keyType,l=s._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){const u=Ve(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(const f of l)o.patternProperties[f.source]=u}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(o.propertyNames=Ve(i.keyType,t,{...r,path:[...r.path,"propertyNames"]})),o.additionalProperties=Ve(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]});const c=s._zod.values;if(c){const u=[...c].filter(f=>typeof f=="string"||typeof f=="number");u.length>0&&(o.required=u)}},Zg=(e,t,n,r)=>{const o=e._zod.def,i=Ve(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Vg=(e,t,n,r)=>{const o=e._zod.def;Ve(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},Wg=(e,t,n,r)=>{const o=e._zod.def;Ve(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},Hg=(e,t,n,r)=>{const o=e._zod.def;Ve(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},qg=(e,t,n,r)=>{const o=e._zod.def;Ve(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},Gg=(e,t,n,r)=>{const o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;Ve(s,t,r);const a=t.seen.get(e);a.ref=s},Kg=(e,t,n,r)=>{const o=e._zod.def;Ve(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},Cc=(e,t,n,r)=>{const o=e._zod.def;Ve(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},Yg=(e,t,n,r)=>{const o=e._zod.innerType;Ve(o,t,r);const i=t.seen.get(e);i.ref=o},Jg=K("ZodISODateTime",(e,t)=>{qp.init(e,t),Ue.init(e,t)});function Xg(e){return tg(Jg,e)}const Qg=K("ZodISODate",(e,t)=>{Gp.init(e,t),Ue.init(e,t)});function e0(e){return ng(Qg,e)}const t0=K("ZodISOTime",(e,t)=>{Kp.init(e,t),Ue.init(e,t)});function n0(e){return rg(t0,e)}const r0=K("ZodISODuration",(e,t)=>{Yp.init(e,t),Ue.init(e,t)});function o0(e){return og(r0,e)}const i0=(e,t)=>{ic.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>Lh(e,n)},flatten:{value:n=>Mh(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,ai,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,ai,2)}},isEmpty:{get(){return e.issues.length===0}}})},ht=K("ZodError",i0,{Parent:Error}),s0=Zi(ht),a0=Vi(ht),l0=so(ht),c0=ao(ht),u0=Bh(ht),d0=Uh(ht),f0=Zh(ht),h0=Vh(ht),p0=Wh(ht),m0=Hh(ht),g0=qh(ht),x0=Gh(ht),oa=new WeakMap;function dr(e,t,n){const r=Object.getPrototypeOf(e);let o=oa.get(r);if(o||(o=new Set,oa.set(r,o)),!o.has(t)){o.add(t);for(const i in n){const s=n[i];Object.defineProperty(r,i,{configurable:!0,enumerable:!1,get(){const a=s.bind(this);return Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a}),a},set(a){Object.defineProperty(this,i,{configurable:!0,writable:!0,enumerable:!0,value:a})}})}}}const Le=K("ZodType",(e,t)=>(Me.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Vr(e,"input"),output:Vr(e,"output")}}),e.toJSONSchema=Eg(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(n,r)=>s0(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>l0(e,n,r),e.parseAsync=async(n,r)=>a0(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>c0(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>u0(e,n,r),e.decode=(n,r)=>d0(e,n,r),e.encodeAsync=async(n,r)=>f0(e,n,r),e.decodeAsync=async(n,r)=>h0(e,n,r),e.safeEncode=(n,r)=>p0(e,n,r),e.safeDecode=(n,r)=>m0(e,n,r),e.safeEncodeAsync=async(n,r)=>g0(e,n,r),e.safeDecodeAsync=async(n,r)=>x0(e,n,r),dr(e,"ZodType",{check(...n){const r=this.def;return this.clone(Gt(r,{checks:[...r.checks??[],...n.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0})},with(...n){return this.check(...n)},clone(n,r){return Kt(this,n,r)},brand(){return this},register(n,r){return n.add(this,r),this},refine(n,r){return this.check(fx(n,r))},superRefine(n,r){return this.check(hx(n,r))},overwrite(n){return this.check(Dn(n))},optional(){return ca(this)},exactOptional(){return J0(this)},nullable(){return ua(this)},nullish(){return ca(ua(this))},nonoptional(n){return rx(this,n)},array(){return Be(this)},or(n){return Yt([this,n])},and(n){return H0(this,n)},transform(n){return da(this,K0(n))},default(n){return ex(this,n)},prefault(n){return nx(this,n)},catch(n){return ix(this,n)},pipe(n){return da(this,n)},readonly(){return lx(this)},describe(n){const r=this.clone();return Qn.add(r,{description:n}),r},meta(...n){if(n.length===0)return Qn.get(this);const r=this.clone();return Qn.add(r,n[0]),r},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(n){return n(this)}}),Object.defineProperty(e,"description",{get(){return Qn.get(e)?.description},configurable:!0}),e)),Ec=K("_ZodString",(e,t)=>{Wi.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Ng(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,dr(e,"_ZodString",{regex(...r){return this.check(dg(...r))},includes(...r){return this.check(pg(...r))},startsWith(...r){return this.check(mg(...r))},endsWith(...r){return this.check(gg(...r))},min(...r){return this.check(Zr(...r))},max(...r){return this.check(bc(...r))},length(...r){return this.check(wc(...r))},nonempty(...r){return this.check(Zr(1,...r))},lowercase(r){return this.check(fg(r))},uppercase(r){return this.check(hg(r))},trim(){return this.check(yg())},normalize(...r){return this.check(xg(...r))},toLowerCase(){return this.check(vg())},toUpperCase(){return this.check(bg())},slugify(){return this.check(wg())}})}),y0=K("ZodString",(e,t)=>{Wi.init(e,t),Ec.init(e,t),e.email=n=>e.check(Om(v0,n)),e.url=n=>e.check(Fm(b0,n)),e.jwt=n=>e.check(eg(R0,n)),e.emoji=n=>e.check($m(w0,n)),e.guid=n=>e.check(ea(ia,n)),e.uuid=n=>e.check(Rm(kr,n)),e.uuidv4=n=>e.check(Dm(kr,n)),e.uuidv6=n=>e.check(Mm(kr,n)),e.uuidv7=n=>e.check(Lm(kr,n)),e.nanoid=n=>e.check(Bm(_0,n)),e.guid=n=>e.check(ea(ia,n)),e.cuid=n=>e.check(Um(k0,n)),e.cuid2=n=>e.check(Zm(S0,n)),e.ulid=n=>e.check(Vm(C0,n)),e.base64=n=>e.check(Jm(I0,n)),e.base64url=n=>e.check(Xm(P0,n)),e.xid=n=>e.check(Wm(E0,n)),e.ksuid=n=>e.check(Hm(T0,n)),e.ipv4=n=>e.check(qm(N0,n)),e.ipv6=n=>e.check(Gm(A0,n)),e.cidrv4=n=>e.check(Km(z0,n)),e.cidrv6=n=>e.check(Ym(j0,n)),e.e164=n=>e.check(Qm(O0,n)),e.datetime=n=>e.check(Xg(n)),e.date=n=>e.check(e0(n)),e.time=n=>e.check(n0(n)),e.duration=n=>e.check(o0(n))});function ee(e){return Pm(y0,e)}const Ue=K("ZodStringFormat",(e,t)=>{Fe.init(e,t),Ec.init(e,t)}),v0=K("ZodEmail",(e,t)=>{Lp.init(e,t),Ue.init(e,t)}),ia=K("ZodGUID",(e,t)=>{Dp.init(e,t),Ue.init(e,t)}),kr=K("ZodUUID",(e,t)=>{Mp.init(e,t),Ue.init(e,t)}),b0=K("ZodURL",(e,t)=>{Fp.init(e,t),Ue.init(e,t)}),w0=K("ZodEmoji",(e,t)=>{$p.init(e,t),Ue.init(e,t)}),_0=K("ZodNanoID",(e,t)=>{Bp.init(e,t),Ue.init(e,t)}),k0=K("ZodCUID",(e,t)=>{Up.init(e,t),Ue.init(e,t)}),S0=K("ZodCUID2",(e,t)=>{Zp.init(e,t),Ue.init(e,t)}),C0=K("ZodULID",(e,t)=>{Vp.init(e,t),Ue.init(e,t)}),E0=K("ZodXID",(e,t)=>{Wp.init(e,t),Ue.init(e,t)}),T0=K("ZodKSUID",(e,t)=>{Hp.init(e,t),Ue.init(e,t)}),N0=K("ZodIPv4",(e,t)=>{Jp.init(e,t),Ue.init(e,t)}),A0=K("ZodIPv6",(e,t)=>{Xp.init(e,t),Ue.init(e,t)}),z0=K("ZodCIDRv4",(e,t)=>{Qp.init(e,t),Ue.init(e,t)}),j0=K("ZodCIDRv6",(e,t)=>{em.init(e,t),Ue.init(e,t)}),I0=K("ZodBase64",(e,t)=>{tm.init(e,t),Ue.init(e,t)}),P0=K("ZodBase64URL",(e,t)=>{rm.init(e,t),Ue.init(e,t)}),O0=K("ZodE164",(e,t)=>{om.init(e,t),Ue.init(e,t)}),R0=K("ZodJWT",(e,t)=>{sm.init(e,t),Ue.init(e,t)}),Tc=K("ZodNumber",(e,t)=>{mc.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Ag(e,r,o),dr(e,"ZodNumber",{gt(r,o){return this.check(na(r,o))},gte(r,o){return this.check(Oo(r,o))},min(r,o){return this.check(Oo(r,o))},lt(r,o){return this.check(ta(r,o))},lte(r,o){return this.check(Po(r,o))},max(r,o){return this.check(Po(r,o))},int(r){return this.check(sa(r))},safe(r){return this.check(sa(r))},positive(r){return this.check(na(0,r))},nonnegative(r){return this.check(Oo(0,r))},negative(r){return this.check(ta(0,r))},nonpositive(r){return this.check(Po(0,r))},multipleOf(r,o){return this.check(ra(r,o))},step(r,o){return this.check(ra(r,o))},finite(){return this}});const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function ye(e){return ig(Tc,e)}const D0=K("ZodNumberFormat",(e,t)=>{am.init(e,t),Tc.init(e,t)});function sa(e){return sg(D0,e)}const M0=K("ZodBoolean",(e,t)=>{lm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>zg(e,n,r)});function yt(e){return ag(M0,e)}const L0=K("ZodNull",(e,t)=>{cm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>jg(e,n,r)});function ci(e){return lg(L0,e)}const F0=K("ZodUnknown",(e,t)=>{um.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pg()});function aa(){return cg(F0)}const $0=K("ZodNever",(e,t)=>{dm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ig(e,n,r)});function B0(e){return ug($0,e)}const U0=K("ZodArray",(e,t)=>{fm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Lg(e,n,r,o),e.element=t.element,dr(e,"ZodArray",{min(n,r){return this.check(Zr(n,r))},nonempty(n){return this.check(Zr(1,n))},max(n,r){return this.check(bc(n,r))},length(n,r){return this.check(wc(n,r))},unwrap(){return this.element}})});function Be(e,t){return _g(U0,e,t)}const Z0=K("ZodObject",(e,t)=>{pm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Fg(e,n,r,o),Ne(e,"shape",()=>t.shape),dr(e,"ZodObject",{keyof(){return Mn(Object.keys(this._zod.def.shape))},catchall(n){return this.clone({...this._zod.def,catchall:n})},passthrough(){return this.clone({...this._zod.def,catchall:aa()})},loose(){return this.clone({...this._zod.def,catchall:aa()})},strict(){return this.clone({...this._zod.def,catchall:B0()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(n){return jh(this,n)},safeExtend(n){return Ih(this,n)},merge(n){return Ph(this,n)},pick(n){return Ah(this,n)},omit(n){return zh(this,n)},partial(...n){return Oh(Ac,this,n[0])},required(...n){return Rh(zc,this,n[0])}})});function ce(e,t){const n={type:"object",shape:e??{},...me(t)};return new Z0(n)}const Nc=K("ZodUnion",(e,t)=>{yc.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$g(e,n,r,o),e.options=t.options});function Yt(e,t){return new Nc({type:"union",options:e,...me(t)})}const V0=K("ZodDiscriminatedUnion",(e,t)=>{Nc.init(e,t),mm.init(e,t)});function cn(e,t,n){return new V0({type:"union",options:t,discriminator:e,...me(n)})}const W0=K("ZodIntersection",(e,t)=>{gm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Bg(e,n,r,o)});function H0(e,t){return new W0({type:"intersection",left:e,right:t})}const la=K("ZodRecord",(e,t)=>{xm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ug(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function tn(e,t,n){return!t||!t._zod?new la({type:"record",keyType:ee(),valueType:e,...me(t)}):new la({type:"record",keyType:e,valueType:t,...me(n)})}const ui=K("ZodEnum",(e,t)=>{ym.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Og(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new ui({...t,checks:[],...me(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new ui({...t,checks:[],...me(o),entries:i})}});function Mn(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new ui({type:"enum",entries:n,...me(t)})}const q0=K("ZodLiteral",(e,t)=>{vm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Rg(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Te(e,t){return new q0({type:"literal",values:Array.isArray(e)?e:[e],...me(t)})}const G0=K("ZodTransform",(e,t)=>{bm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Mg(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new ec(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(ir(i,n.value,t));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=e),n.issues.push(ir(s))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n.fallback=!0,n)):(n.value=o,n.fallback=!0,n)}});function K0(e){return new G0({type:"transform",transform:e})}const Ac=K("ZodOptional",(e,t)=>{vc.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ca(e){return new Ac({type:"optional",innerType:e})}const Y0=K("ZodExactOptional",(e,t)=>{wm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function J0(e){return new Y0({type:"optional",innerType:e})}const X0=K("ZodNullable",(e,t)=>{_m.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ua(e){return new X0({type:"nullable",innerType:e})}const Q0=K("ZodDefault",(e,t)=>{km.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Wg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function ex(e,t){return new Q0({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():rc(t)}})}const tx=K("ZodPrefault",(e,t)=>{Sm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Hg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function nx(e,t){return new tx({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():rc(t)}})}const zc=K("ZodNonOptional",(e,t)=>{Cm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Vg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function rx(e,t){return new zc({type:"nonoptional",innerType:e,...me(t)})}const ox=K("ZodCatch",(e,t)=>{Em.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function ix(e,t){return new ox({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const sx=K("ZodPipe",(e,t)=>{Tm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gg(e,n,r,o),e.in=t.in,e.out=t.out});function da(e,t){return new sx({type:"pipe",in:e,out:t})}const ax=K("ZodReadonly",(e,t)=>{Nm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kg(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function lx(e){return new ax({type:"readonly",innerType:e})}const cx=K("ZodLazy",(e,t)=>{Am.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yg(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function ux(e){return new cx({type:"lazy",getter:e})}const dx=K("ZodCustom",(e,t)=>{zm.init(e,t),Le.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Dg(e,n)});function fx(e,t={}){return kg(dx,e,t)}function hx(e,t){return Sg(e,t)}const zn=ux(()=>Yt([ee(),ye(),yt(),ci(),Be(zn),tn(ee(),zn)])),Hi=ce({type:ee(),ttl:ee().optional(),scope:ee().optional()}),qi=ce({type:Te("text"),text:ee(),cache_control:Hi.optional()}),jc=ce({type:Te("thinking"),thinking:ee(),signature:ee().optional()}),px=ce({type:Te("base64"),media_type:ee(),data:ee()}),Ic=ce({type:Te("image"),source:px}),Pc=ce({type:Te("tool_use"),id:ee(),name:ee(),input:tn(ee(),zn)}),mx=cn("type",[qi,Ic]),gx=ce({type:Te("tool_result"),tool_use_id:ee().optional(),content:Yt([ee(),Be(mx)]),is_error:yt().optional()}),xx=cn("type",[qi,jc,Ic,Pc,gx]),yx=Yt([ee(),Be(xx)]),vx=ce({role:Mn(["user","assistant"]),content:yx}),bx=ce({type:Te("text"),text:ee(),cache_control:Hi.optional()}),wx=ce({type:ee(),properties:tn(ee(),tn(ee(),zn)).optional(),required:Be(ee()).optional(),additionalProperties:yt().optional(),$schema:ee().optional()}),_x=ce({name:ee(),description:ee().optional(),input_schema:wx.optional(),cache_control:Hi.optional()}),kx=cn("type",[ce({type:Te("enabled"),budget_tokens:ye()}),ce({type:Te("disabled")}),ce({type:Te("adaptive")})]),Sx=ce({model:ee(),messages:Be(vx),system:Be(bx).optional(),tools:Be(_x).optional(),max_tokens:ye().optional(),temperature:ye().optional(),stream:yt().optional(),thinking:kx.optional(),metadata:ce({user_id:ee().optional()}).optional()}),Gi=cn("type",[qi,jc,Pc]),Cx=ce({input_tokens:ye().nullable().optional(),output_tokens:ye().nullable().optional(),cache_creation_input_tokens:ye().nullable().optional(),cache_read_input_tokens:ye().nullable().optional()}).passthrough(),Ex=ce({id:ee(),type:Te("message"),model:ee(),role:Te("assistant"),content:Be(Gi),stop_reason:ee().nullable(),stop_sequence:ee().nullable(),usage:Cx}).passthrough(),Tx=ce({type:Te("message_start"),message:ce({id:ee(),type:Te("message"),model:ee(),role:Te("assistant"),content:Be(Gi),stop_reason:ci(),stop_sequence:ci(),usage:ce({input_tokens:ye(),cache_creation_input_tokens:ye().optional(),cache_read_input_tokens:ye().optional()}).passthrough()})}),Nx=ce({type:Te("content_block_start"),index:ye(),content_block:Gi}),Ax=cn("type",[ce({type:Te("text_delta"),text:ee()}),ce({type:Te("input_json_delta"),partial_json:ee()}),ce({type:Te("thinking_delta"),thinking:ee()}),ce({type:Te("signature_delta"),signature:ee()})]),zx=ce({type:Te("content_block_delta"),index:ye(),delta:Ax}),jx=ce({type:Te("content_block_stop"),index:ye()}),Ix=ce({type:Te("message_delta"),delta:ce({stop_reason:ee().nullable(),stop_sequence:ee().nullable().optional()}),usage:ce({output_tokens:ye(),input_tokens:ye().optional(),cache_creation_input_tokens:ye().optional(),cache_read_input_tokens:ye().optional()}).passthrough()}),Px=ce({type:Te("message_stop")}),Ox=ce({type:Te("ping")}),Rx=ce({type:Te("error"),error:ce({type:ee(),message:ee()})});cn("type",[Tx,Nx,zx,jx,Ix,Px,Ox,Rx]);const Dx=Sx,Mx=Ex,Lx=Yt([ee(),Be(cn("type",[ce({type:Te("text"),text:ee()}),ce({type:Te("image_url"),image_url:ce({url:ee(),detail:ee().optional()})})]))]),Oc=ce({role:Mn(["system","user","assistant","tool"]),content:Lx,name:ee().optional(),reasoning_content:ee().optional(),thinking:ee().optional(),think:ee().optional()}),Fx=ce({name:ee(),arguments:ee()});Oc.extend({content:Yt([ee(),Be(ce({type:Te("text"),text:ee()}))]).optional(),function_call:Fx.optional()});const $x=ce({type:Te("function"),function:ce({name:ee(),description:ee().optional(),parameters:tn(ee(),zn)})});ce({model:ee(),messages:Be(Oc),temperature:ye().optional(),max_tokens:ye().optional(),stream:yt().optional(),tools:Be($x).optional(),tool_choice:Yt([ce({type:Te("auto")}),ce({type:Te("none")}),ce({type:Te("function"),function:ce({name:ee()})})]).optional(),user:ee().optional()});const Rc=ce({role:Mn(["assistant"]).optional(),content:ee().nullable().optional(),reasoning_content:ee().nullable().optional(),thinking:ee().nullable().optional(),think:ee().nullable().optional(),function_call:ce({name:ee().optional(),arguments:ee().optional()}).nullable().optional(),tool_calls:Be(ce({index:ye(),id:ee().optional(),type:Te("function").optional(),function:ce({name:ee().optional(),arguments:ee().optional()})})).nullable().optional()}),Bx=ce({index:ye(),message:ce({role:Mn(["assistant"]),content:ee().nullable(),reasoning_content:ee().optional(),thinking:ee().optional(),think:ee().optional(),function_call:ce({name:ee(),arguments:ee()}).nullable().optional()}).optional(),delta:Rc.optional(),finish_reason:ee().nullable()}),Ux=ce({id:ee(),object:Te("chat.completion"),created:ye(),model:ee(),choices:Be(Bx),usage:ce({prompt_tokens:ye().nullable().optional(),completion_tokens:ye().nullable().optional(),total_tokens:ye().nullable().optional()}).passthrough(),service_tier:ee().nullable().optional(),system_fingerprint:ee().nullable().optional()}).passthrough();ce({id:ee(),object:Te("chat.completion.chunk"),created:ye(),model:ee(),choices:Be(ce({index:ye(),delta:Rc,finish_reason:ee().nullable().optional()})),usage:ce({prompt_tokens:ye().nullable().optional(),completion_tokens:ye().nullable().optional(),total_tokens:ye().nullable().optional()}).passthrough().nullable().optional()}).passthrough();function Zx(e){try{const t=JSON.parse(e),n=Ux.safeParse(t);return n.success?n.data:null}catch{return null}}const Vx=ce({index:ye(),timestamp:ye(),type:ee(),data:zn}),Wx=ce({chunks:Be(Vx),truncated:yt().optional().default(!1)}),di=ce({id:ye(),timestamp:ee(),method:ee(),path:ee(),model:ee().nullable(),sessionId:ee().nullable(),rawRequestBody:ee().nullable(),responseStatus:ye().nullable(),responseText:ee().nullable(),inputTokens:ye().nullable(),outputTokens:ye().nullable(),cacheCreationInputTokens:ye().nullable(),cacheReadInputTokens:ye().nullable(),elapsedMs:ye().nullable(),streaming:yt(),userAgent:ee().nullable(),origin:ee().nullable(),rawHeaders:tn(ee(),ee()).optional(),headers:tn(ee(),ee()).optional(),apiFormat:Mn(["anthropic","openai","unknown"]).default("unknown"),isTest:yt().optional().default(!1),providerName:ee().nullable().optional(),clientPort:ye().nullable().optional(),clientPid:ye().nullable().optional(),clientCwd:ee().nullable().optional(),clientProjectFolder:ee().nullable().optional(),streamingChunks:Wx.optional(),streamingChunksPath:ee().nullable().optional(),error:ee().nullable().optional()});ce({model:ee()});function Hx(e){if(e===null)return null;try{const t=JSON.parse(e),n=Dx.safeParse(t);return n.success?n.data:null}catch{return null}}function qx(e,t,n){const r=new Array(e);return new Proxy(r,{get(o,i,s){if(typeof i=="string"){const a=i.charCodeAt(0);if(a>=48&&a<=57){const l=+i;if(Number.isInteger(l)&&l>=0&&l<e){let c=o[l];if(!c){const u=t[l*2];c=o[l]={index:l,key:n(l),start:u,size:t[l*2+1],end:u+t[l*2+1],lane:0}}return c}}if(i==="length")return e}return Reflect.get(o,i,s)}})}function fn(e,t,n){let r=n.initialDeps??[],o,i=!0;function s(){const a=e();return(a.length!==r.length||a.some((c,u)=>r[u]!==c))&&(r=a,o=t(...a),n?.onChange&&!(i&&n.skipInitialOnChange)&&n.onChange(o),i=!1),o}return s.updateDeps=a=>{r=a},s}function fa(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const ha=(e,t)=>Math.abs(e-t)<1.01,Gx=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,o),n)}};let Hn;const pa=()=>{if(Hn!==void 0)return Hn;if(typeof navigator>"u")return Hn=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Hn=!0;const e=navigator.maxTouchPoints;return Hn=navigator.platform==="MacIntel"&&e!==void 0&&e>0},ma=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Kx=e=>e,Yx=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,o=new Array(r);for(let i=0;i<r;i++)o[i]=t+i;return o},Jx=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=s=>{const{width:a,height:l}=s;t({width:Math.round(a),height:Math.round(l)})};if(o(ma(n)),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver(s=>{const a=()=>{const l=s[0];if(l?.borderBoxSize){const c=l.borderBoxSize[0];if(c){o({width:c.inlineSize,height:c.blockSize});return}}o(ma(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()});return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Wr={passive:!0},Xx=typeof window>"u"?!0:"onscrollend"in window,Qx=(e,t,n)=>{const r=e.scrollElement;if(!r)return;const o=e.targetWindow;if(!o)return;const i=e.options.useScrollendEvent&&Xx;let s=0;const a=i?null:Gx(o,()=>t(s,!1),e.options.isScrollingResetDelay),l=f=>()=>{s=n(r),a?.(),t(s,f)},c=l(!0),u=l(!1);return r.addEventListener("scroll",c,Wr),i&&r.addEventListener("scrollend",u,Wr),()=>{r.removeEventListener("scroll",c),i&&r.removeEventListener("scrollend",u)}},ey=(e,t)=>Qx(e,t,n=>{const{horizontal:r,isRtl:o}=e.options;return r?n.scrollLeft*(o&&-1||1):n.scrollTop}),ty=(e,t,n)=>{if(t?.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},ny=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;(i=(o=r.scrollElement)==null?void 0:o.scrollTo)==null||i.call(o,{[r.options.horizontal?"left":"top"]:e+t,behavior:n})},ry=ny;class oy{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var n,r,o;return((o=(r=(n=this.targetWindow)==null?void 0:n.performance)==null?void 0:r.now)==null?void 0:o.call(r))??Date.now()},this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(o=>{o.forEach(i=>{const s=()=>{const a=i.target,l=this.indexFromElement(a);if(!a.isConnected){this.observer.unobserve(a);for(const[c,u]of this.elementsCache)if(u===a){this.elementsCache.delete(c);break}return}this.shouldMeasureDuringScroll(l)&&this.resizeItem(l,this.options.measureElement(a,i,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(s):s()})}));return{disconnect:()=>{var o;(o=r())==null||o.disconnect(),n=null},observe:o=>{var i;return(i=r())==null?void 0:i.observe(o,{box:"border-box"})},unobserve:o=>{var i;return(i=r())==null?void 0:i.unobserve(o)}}})(),this.range=null,this.setOptions=n=>{var r,o;const i={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Kx,rangeExtractor:Yx,onChange:()=>{},measureElement:ty,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,anchorTo:"start",followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:"estimate"};for(const c in n){const u=n[c];u!==void 0&&(i[c]=u)}const s=this.options;let a=null,l=null;if(s!==void 0&&s.enabled&&i.enabled&&i.anchorTo==="end"&&this.scrollElement!==null){const c=s.count,u=i.count,f=this.getMeasurements(),p=c>0?((r=f[0])==null?void 0:r.key)??s.getItemKey(0):null,d=c>0?((o=f[c-1])==null?void 0:o.key)??s.getItemKey(c-1):null;if(u!==c||c>0&&u>0&&(i.getItemKey(0)!==p||i.getItemKey(u-1)!==d)){const y=c>0?this.getVirtualItemForOffset(this.getScrollOffset())??f[0]:null;y&&(a=[y.key,this.getScrollOffset()-y.start]);const x=i.followOnAppend===!0?"auto":i.followOnAppend||null;x&&u>c&&this.isAtEnd(s.scrollEndThreshold)&&(c===0||i.getItemKey(u-1)!==d)&&(l=x)}}this.options=i,(a||l)&&(this.pendingScrollAnchor=[a?.[0]??null,a?.[1]??0,l])},this.notify=n=>{var r,o;(o=(r=this.options).onChange)==null||o.call(r,this,n)},this.maybeNotify=fn(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}if(this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this._intendedScrollOffset!==null&&Math.abs(i-this._intendedScrollOffset)<1.5&&(i=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),"addEventListener"in this.scrollElement){const i=this.scrollElement,s=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},a=()=>{this._iosTouching=!1,!(!pa()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};i.addEventListener("touchstart",s,Wr),i.addEventListener("touchend",a,Wr),this.unsubs.push(()=>{i.removeEventListener("touchstart",s),i.removeEventListener("touchend",a),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}const o=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,o&&this.scrollElement&&this.options.enabled){const[i,s,a]=o;if(i!==null){const{count:l,getItemKey:c}=this.options;let u=0;for(;u<l&&c(u)!==i;)u++;const f=u<l?this.getMeasurements()[u]:void 0;if(f){const p=f.start+s-this.getScrollOffset();ha(p,0)||this.applyScrollAdjustment(p)}}a&&this.scrollToEnd({behavior:a})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;const n=this.getScrollOffset(),r=this.getMaxScrollOffset();if(n<0||n>r)return;const o=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(n,{adjustments:this.scrollAdjustments+=o,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const o=new Map,i=new Map;for(let s=r-1;s>=0;s--){const a=n[s];if(o.has(a.lane))continue;const l=i.get(a.lane);if(l==null||a.end>l.end?i.set(a.lane,a):a.end<l.end&&o.set(a.lane,!0),o.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((s,a)=>s.end===a.end?s.index-a.index:s.end-a.end)[0]:void 0},this.getMeasurementOptions=fn(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode],(n,r,o,i,s,a,l)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:s,lanes:a,laneAssignmentMode:l}),{key:!1}),this.getMeasurements=fn(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:n,paddingStart:r,scrollMargin:o,getItemKey:i,enabled:s,lanes:a,laneAssignmentMode:l},c)=>{const u=this.itemSizeCache;if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>n)for(const g of this.laneAssignments.keys())g>=n&&this.laneAssignments.delete(g);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(g=>{this.itemSizeCache.set(g.key,g.size)}));const f=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===n&&(this.lanesSettling=!1),a===1){const g=this.options.gap,m=n*2;let y=this._flatMeasurements;if(!y||y.length<m){const k=new Float64Array(m);y&&f>0&&k.set(y.subarray(0,f*2)),y=k,this._flatMeasurements=y}let x;if(f===0)x=r+o;else{const k=f-1;x=y[k*2]+y[k*2+1]+g}for(let k=f;k<n;k++){const S=i(k),C=u.get(S),T=typeof C=="number"?C:this.options.estimateSize(k);y[k*2]=x,y[k*2+1]=T,x+=T+g}const b=qx(n,y,i);return this.measurementsCache=b,b}const p=this.measurementsCache.slice(0,f),d=new Array(a).fill(void 0);for(let g=0;g<f;g++){const m=p[g];m&&(d[m.lane]=g)}for(let g=f;g<n;g++){const m=i(g),y=this.laneAssignments.get(g);let x,b;const k=l==="estimate"||u.has(m);if(y!==void 0&&this.options.lanes>1){x=y;const j=d[x],P=j!==void 0?p[j]:void 0;b=P?P.end+this.options.gap:r+o}else{const j=this.options.lanes===1?p[g-1]:this.getFurthestMeasurement(p,g);b=j?j.end+this.options.gap:r+o,x=j?j.lane:g%this.options.lanes,this.options.lanes>1&&k&&this.laneAssignments.set(g,x)}const S=u.get(m),C=typeof S=="number"?S:this.options.estimateSize(g),T=b+C;p[g]={index:g,start:b,size:C,end:T,key:m,lane:x},d[x]=g}return this.measurementsCache=p,p},{key:!1,debug:()=>this.options.debug}),this.calculateRange=fn(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,o,i)=>this.range=n.length>0&&r>0?iy({measurements:n,outerSize:r,scrollOffset:o,lanes:i,flat:i===1&&this._flatMeasurements!=null?this._flatMeasurements:null}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=fn(()=>{let n=null,r=null;const o=this.calculateRange();return o&&(n=o.startIndex,r=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,o,i,s)=>i===null||s===null?[]:n({startIndex:i,endIndex:s,overscan:r,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,o=n.getAttribute(r);return o?parseInt(o,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=n=>{var r;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const o=this.scrollState.index??((r=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:r.index);if(o!==void 0&&this.range){const i=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),s=Math.max(0,o-i),a=Math.min(this.options.count-1,o+i);return n>=s&&n<=a}return!0},this.measureElement=n=>{if(!n){this.elementsCache.forEach((s,a)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(a))});return}const r=this.indexFromElement(n),o=this.options.getItemKey(r),i=this.elementsCache.get(o);i!==n&&(i&&this.observer.unobserve(i),this.observer.observe(n),this.elementsCache.set(o,n)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(r)&&this.resizeItem(r,this.options.measureElement(n,void 0,this))},this.resizeItem=(n,r)=>{var o,i;if(n<0||n>=this.options.count)return;let s,a,l;const c=this._flatMeasurements;if(this.options.lanes===1&&c!==null)l=this.options.getItemKey(n),a=c[n*2],s=c[n*2+1];else{const p=this.measurementsCache[n];if(!p)return;l=p.key,a=p.start,s=p.size}const u=this.itemSizeCache.get(l)??s,f=r-u;if(f!==0){const p=this.options.anchorTo==="end"&&((o=this.scrollState)==null?void 0:o.behavior)!=="smooth"&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,d=p?this.getTotalSize():0,g=((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[n]??{index:n,key:l,start:a,size:s,end:a+s,lane:0},f,this):a<this.getScrollOffset()+this.scrollAdjustments&&this.scrollDirection!=="backward");(this.pendingMin===null||n<this.pendingMin)&&(this.pendingMin=n),this.itemSizeCache.set(l,r),this.itemSizeCacheVersion++,p?this.applyScrollAdjustment(this.getTotalSize()-d):g&&this.applyScrollAdjustment(f),this.notify(!1)}},this.getVirtualItems=fn(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const o=[];for(let i=0,s=n.length;i<s;i++){const a=n[i],l=r[a];o.push(l)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length===0)return;const o=this._flatMeasurements,i=this.options.lanes===1&&o!=null,s=Dc(0,r.length-1,i?a=>o[a*2]:a=>fa(r[a]).start,n);return fa(r[s])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const n=this.scrollElement.document.documentElement;return this.options.horizontal?n.scrollWidth-this.scrollElement.innerWidth:n.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(n=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=n,this.getOffsetForAlignment=(n,r,o=0)=>{if(!this.scrollElement)return 0;const i=this.getSize(),s=this.getScrollOffset();r==="auto"&&(r=n>=s+i?"end":"start"),r==="center"?n+=(o-i)/2:r==="end"&&(n-=i);const a=this.getMaxScrollOffset();return Math.max(Math.min(a,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const o=this.getSize(),i=this.getScrollOffset(),s=this.measurementsCache[n];if(!s)return;if(r==="auto")if(s.end>=i+o-this.options.scrollPaddingEnd)r="end";else if(s.start<=i+this.options.scrollPaddingStart)r="start";else return[i,r];if(r==="end"&&n===this.options.count-1)return[this.getMaxScrollOffset(),r];const a=r==="end"?s.end+this.options.scrollPaddingEnd:s.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,r,s.size),r]},this.scrollToOffset=(n,{align:r="start",behavior:o="auto"}={})=>{const i=this.getOffsetForAlignment(n,r),s=this.now();this.scrollState={index:null,align:r,behavior:o,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollToIndex=(n,{align:r="auto",behavior:o="auto"}={})=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.getOffsetForIndex(n,r);if(!i)return;const[s,a]=i,l=this.now();this.scrollState={index:n,align:a,behavior:o,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:o}),this.scheduleScrollReconcile()},this.scrollBy=(n,{behavior:r="auto"}={})=>{const o=this.getScrollOffset()+n,i=this.now();this.scrollState={index:null,align:"start",behavior:r,startedAt:i,lastTargetOffset:o,stableFrames:0},this._scrollToOffset(o,{adjustments:void 0,behavior:r}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:n="auto"}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:"end",behavior:n});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:n})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let o;if(r.length===0)o=this.options.paddingStart;else if(this.options.lanes===1){const i=r.length-1,s=this._flatMeasurements;s!=null?o=s[i*2]+s[i*2+1]:o=((n=r[i])==null?void 0:n.end)??0}else{const i=Array(this.options.lanes).fill(null);let s=r.length-1;for(;s>=0&&i.some(a=>a===null);){const a=r[s];i[a.lane]===null&&(i[a.lane]=a.end),s--}o=Math.max(...i.filter(a=>a!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{const n=[];if(this.itemSizeCache.size===0)return n;const r=this.getMeasurements();for(const o of r)o&&this.itemSizeCache.has(o.key)&&n.push({index:o.index,key:o.key,start:o.start,size:o.size,end:o.end,lane:o.lane});return n},this._scrollToOffset=(n,{adjustments:r,behavior:o})=>{this._intendedScrollOffset=n+(r??0),this.options.scrollToFn(n,{behavior:o,adjustments:r},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(t)}applyScrollAdjustment(t,n){t!==0&&(pa()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?this._iosDeferredAdjustment+=t:this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=t,behavior:n}))}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const r=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,o=r?r[0]:this.scrollState.lastTargetOffset,i=1,s=o!==this.scrollState.lastTargetOffset;if(!s&&ha(o,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=i){this.getScrollOffset()!==o&&this._scrollToOffset(o,{adjustments:void 0,behavior:"auto"}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,s){const a=this.getSize()||600,l=Math.abs(o-this.getScrollOffset()),c=this.scrollState.behavior==="smooth"&&l>a;this.scrollState.lastTargetOffset=o,c||(this.scrollState.behavior="auto"),this._scrollToOffset(o,{adjustments:void 0,behavior:c?"smooth":"auto"})}this.scheduleScrollReconcile()}}const Dc=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else if(i>r)t=o-1;else return o}return e>0?e-1:0};function iy({measurements:e,outerSize:t,scrollOffset:n,lanes:r,flat:o}){const i=e.length-1,s=o?u=>o[u*2]:u=>e[u].start,a=o?u=>o[u*2]+o[u*2+1]:u=>e[u].end;if(e.length<=r)return{startIndex:0,endIndex:i};let l=Dc(0,i,s,n),c=l;if(r===1)for(;c<i&&a(c)<n+t;)c++;else if(r>1){const u=Array(r).fill(0);for(;c<i&&u.some(p=>p<n+t);){const p=e[c];u[p.lane]=p.end,c++}const f=Array(r).fill(n+t);for(;l>=0&&f.some(p=>p>=n);){const p=e[l];f[p.lane]=p.start,l--}l=Math.max(0,l-l%r),c=Math.min(i,c+(r-1-c%r))}return{startIndex:l,endIndex:c}}const ga=typeof document<"u"?_.useLayoutEffect:_.useEffect;function sy({useFlushSync:e=!0,...t}){const n=_.useReducer(i=>i+1,0)[1],r={...t,onChange:(i,s)=>{var a;e&&s?ur.flushSync(n):n(),(a=t.onChange)==null||a.call(t,i,s)}},[o]=_.useState(()=>new oy(r));return o.setOptions(r),ga(()=>o._didMount(),[]),ga(()=>o._willUpdate()),o}function ay(e){return sy({observeElementRect:Jx,observeElementOffset:ey,scrollToFn:ry,...e})}const Mc=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();const ly=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const cy=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase());const xa=e=>{const t=cy(e);return t.charAt(0).toUpperCase()+t.slice(1)};var uy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const dy=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};const fy=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...a},l)=>_.createElement("svg",{ref:l,...uy,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Mc("lucide",o),...!i&&!dy(a)&&{"aria-hidden":"true"},...a},[...s.map(([c,u])=>_.createElement(c,u)),...Array.isArray(i)?i:[i]]));const _e=(e,t)=>{const n=_.forwardRef(({className:r,...o},i)=>_.createElement(fy,{ref:i,iconNode:t,className:Mc(`lucide-${ly(xa(e))}`,`lucide-${e}`,r),...o}));return n.displayName=xa(e),n};const hy=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],py=_e("brain",hy);const my=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fr=_e("check",my);const gy=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],At=_e("chevron-down",gy);const xy=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wt=_e("chevron-right",xy);const yy=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],vy=_e("chevron-up",yy);const by=[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]],wy=_e("chevrons-down",by);const _y=[["path",{d:"m17 11-5-5-5 5",key:"e8nh98"}],["path",{d:"m17 18-5-5-5 5",key:"2avn1x"}]],ky=_e("chevrons-up",_y);const Sy=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],fi=_e("circle-alert",Sy);const Cy=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Ey=_e("circle-check-big",Cy);const Ty=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Ny=_e("circle-question-mark",Ty);const Ay=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],Lc=_e("circle-stop",Ay);const zy=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ki=_e("clock",zy);const jy=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],co=_e("copy",jy);const Iy=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Fc=_e("download",Iy);const Py=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Oy=_e("external-link",Py);const Ry=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],$c=_e("eye-off",Ry);const Dy=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Bc=_e("eye",Dy);const My=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m8 16 2-2-2-2",key:"10vzyd"}],["path",{d:"M12 18h4",key:"1wd2n7"}]],Ly=_e("file-terminal",My);const Fy=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],$y=_e("gauge",Fy);const By=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Uy=_e("globe",By);const Zy=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],Vy=_e("layout-grid",Zy);const Wy=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Hy=_e("list",Wy);const qy=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Uc=_e("loader-circle",qy);const Gy=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Ky=_e("lock",Gy);const Yy=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Zc=_e("message-square",Yy);const Jy=[["path",{d:"M5 12h14",key:"1ays0h"}]],Xy=_e("minus",Jy);const Qy=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ev=_e("pencil",Qy);const tv=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ya=_e("plus",tv);const nv=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],rv=_e("radio",nv);const ov=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Vc=_e("rotate-ccw",ov);const iv=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Wc=_e("rotate-cw",iv);const sv=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],av=_e("server",sv);const lv=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],cv=_e("settings",lv);const uv=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],dv=_e("terminal",uv);const fv=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],hv=_e("trash-2",fv);const pv=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mv=_e("triangle-alert",pv);const gv=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],xv=_e("upload",gv);const yv=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],vv=_e("user",yv);const bv=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],wv=_e("wifi-off",bv);const _v=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],kv=_e("wifi",_v);const Sv=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Cv=_e("wrench",Sv);const Ev=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Tv=_e("x",Ev);const Nv=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],hr=_e("zap",Nv);function Sr(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ro={exports:{}};var va;function Av(){return va||(va=1,(function(e,t){(function(n){e.exports=n()})(function(){return(function n(r,o,i){function s(c,u){if(!o[c]){if(!r[c]){var f=typeof Sr=="function"&&Sr;if(!u&&f)return f(c,!0);if(a)return a(c,!0);var p=new Error("Cannot find module '"+c+"'");throw p.code="MODULE_NOT_FOUND",p}var d=o[c]={exports:{}};r[c][0].call(d.exports,function(g){var m=r[c][1][g];return s(m||g)},d,d.exports,n,r,o,i)}return o[c].exports}for(var a=typeof Sr=="function"&&Sr,l=0;l<i.length;l++)s(i[l]);return s})({1:[function(n,r,o){var i=n("./utils"),s=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(l){for(var c,u,f,p,d,g,m,y=[],x=0,b=l.length,k=b,S=i.getTypeOf(l)!=="string";x<l.length;)k=b-x,f=S?(c=l[x++],u=x<b?l[x++]:0,x<b?l[x++]:0):(c=l.charCodeAt(x++),u=x<b?l.charCodeAt(x++):0,x<b?l.charCodeAt(x++):0),p=c>>2,d=(3&c)<<4|u>>4,g=1<k?(15&u)<<2|f>>6:64,m=2<k?63&f:64,y.push(a.charAt(p)+a.charAt(d)+a.charAt(g)+a.charAt(m));return y.join("")},o.decode=function(l){var c,u,f,p,d,g,m=0,y=0,x="data:";if(l.substr(0,x.length)===x)throw new Error("Invalid base64 input, it looks like a data url.");var b,k=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===a.charAt(64)&&k--,l.charAt(l.length-2)===a.charAt(64)&&k--,k%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=s.uint8array?new Uint8Array(0|k):new Array(0|k);m<l.length;)c=a.indexOf(l.charAt(m++))<<2|(p=a.indexOf(l.charAt(m++)))>>4,u=(15&p)<<4|(d=a.indexOf(l.charAt(m++)))>>2,f=(3&d)<<6|(g=a.indexOf(l.charAt(m++))),b[y++]=c,d!==64&&(b[y++]=u),g!==64&&(b[y++]=f);return b}},{"./support":30,"./utils":32}],2:[function(n,r,o){var i=n("./external"),s=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),l=n("./stream/DataLengthProbe");function c(u,f,p,d,g){this.compressedSize=u,this.uncompressedSize=f,this.crc32=p,this.compression=d,this.compressedContent=g}c.prototype={getContentWorker:function(){var u=new s(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),f=this;return u.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),u},getCompressedWorker:function(){return new s(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(u,f,p){return u.pipe(new a).pipe(new l("uncompressedSize")).pipe(f.compressWorker(p)).pipe(new l("compressedSize")).withStreamInfo("compression",f)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,o){var i=n("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},o.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,o){var i=n("./utils"),s=(function(){for(var a,l=[],c=0;c<256;c++){a=c;for(var u=0;u<8;u++)a=1&a?3988292384^a>>>1:a>>>1;l[c]=a}return l})();r.exports=function(a,l){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?(function(c,u,f,p){var d=s,g=p+f;c^=-1;for(var m=p;m<g;m++)c=c>>>8^d[255&(c^u[m])];return-1^c})(0|l,a,a.length,0):(function(c,u,f,p){var d=s,g=p+f;c^=-1;for(var m=p;m<g;m++)c=c>>>8^d[255&(c^u.charCodeAt(m))];return-1^c})(0|l,a,a.length,0):0}},{"./utils":32}],5:[function(n,r,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(n,r,o){var i=null;i=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:i}},{lie:37}],7:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=n("pako"),a=n("./utils"),l=n("./stream/GenericWorker"),c=i?"uint8array":"array";function u(f,p){l.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=p,this.meta={}}o.magic="\b\0",a.inherits(u,l),u.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(c,f.data),!1)},u.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(p){f.push({data:p,meta:f.meta})}},o.compressWorker=function(f){return new u("Deflate",f)},o.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,o){function i(d,g){var m,y="";for(m=0;m<g;m++)y+=String.fromCharCode(255&d),d>>>=8;return y}function s(d,g,m,y,x,b){var k,S,C=d.file,T=d.compression,j=b!==c.utf8encode,P=a.transformTo("string",b(C.name)),O=a.transformTo("string",c.utf8encode(C.name)),M=C.comment,B=a.transformTo("string",b(M)),E=a.transformTo("string",c.utf8encode(M)),L=O.length!==C.name.length,v=E.length!==M.length,D="",G="",Z="",W=C.dir,q=C.date,A={crc32:0,compressedSize:0,uncompressedSize:0};g&&!m||(A.crc32=d.crc32,A.compressedSize=d.compressedSize,A.uncompressedSize=d.uncompressedSize);var U=0;g&&(U|=8),j||!L&&!v||(U|=2048);var R=0,N=0;W&&(R|=16),x==="UNIX"?(N=798,R|=(function(Q,pe){var X=Q;return Q||(X=pe?16893:33204),(65535&X)<<16})(C.unixPermissions,W)):(N=20,R|=(function(Q){return 63&(Q||0)})(C.dosPermissions)),k=q.getUTCHours(),k<<=6,k|=q.getUTCMinutes(),k<<=5,k|=q.getUTCSeconds()/2,S=q.getUTCFullYear()-1980,S<<=4,S|=q.getUTCMonth()+1,S<<=5,S|=q.getUTCDate(),L&&(G=i(1,1)+i(u(P),4)+O,D+="up"+i(G.length,2)+G),v&&(Z=i(1,1)+i(u(B),4)+E,D+="uc"+i(Z.length,2)+Z);var Y="";return Y+=`
65
- \0`,Y+=i(U,2),Y+=T.magic,Y+=i(k,2),Y+=i(S,2),Y+=i(A.crc32,4),Y+=i(A.compressedSize,4),Y+=i(A.uncompressedSize,4),Y+=i(P.length,2),Y+=i(D.length,2),{fileRecord:f.LOCAL_FILE_HEADER+Y+P+D,dirRecord:f.CENTRAL_FILE_HEADER+i(N,2)+Y+i(B.length,2)+"\0\0\0\0"+i(R,4)+i(y,4)+P+D+B}}var a=n("../utils"),l=n("../stream/GenericWorker"),c=n("../utf8"),u=n("../crc32"),f=n("../signature");function p(d,g,m,y){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=m,this.encodeFileName=y,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(p,l),p.prototype.push=function(d){var g=d.meta.percent||0,m=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,l.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:m?(g+100*(m-y-1))/m:100}}))},p.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var g=this.streamFiles&&!d.file.dir;if(g){var m=s(d,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(d){this.accumulate=!1;var g=this.streamFiles&&!d.file.dir,m=s(d,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:(function(y){return f.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)})(d),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var d=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-d,y=(function(x,b,k,S,C){var T=a.transformTo("string",C(S));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(x,2)+i(x,2)+i(b,4)+i(k,4)+i(T.length,2)+T})(this.dirRecords.length,m,d,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(d){this._sources.push(d);var g=this;return d.on("data",function(m){g.processChunk(m)}),d.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),d.on("error",function(m){g.error(m)}),this},p.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},p.prototype.error=function(d){var g=this._sources;if(!l.prototype.error.call(this,d))return!1;for(var m=0;m<g.length;m++)try{g[m].error(d)}catch{}return!0},p.prototype.lock=function(){l.prototype.lock.call(this);for(var d=this._sources,g=0;g<d.length;g++)d[g].lock()},r.exports=p},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,o){var i=n("../compressions"),s=n("./ZipFileWorker");o.generateWorker=function(a,l,c){var u=new s(l.streamFiles,c,l.platform,l.encodeFileName),f=0;try{a.forEach(function(p,d){f++;var g=(function(b,k){var S=b||k,C=i[S];if(!C)throw new Error(S+" is not a valid compression method !");return C})(d.options.compression,l.compression),m=d.options.compressionOptions||l.compressionOptions||{},y=d.dir,x=d.date;d._compressWorker(g,m).withStreamInfo("file",{name:p,dir:y,date:x,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(u)}),u.entriesCount=f}catch(p){u.error(p)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,o){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new i;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(s,a){return new i().loadAsync(s,a)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,o){var i=n("./utils"),s=n("./external"),a=n("./utf8"),l=n("./zipEntries"),c=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function f(p){return new s.Promise(function(d,g){var m=p.decompressed.getContentWorker().pipe(new c);m.on("error",function(y){g(y)}).on("end",function(){m.streamInfo.crc32!==p.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}r.exports=function(p,d){var g=this;return d=i.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),u.isNode&&u.isStream(p)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",p,!0,d.optimizedBinaryString,d.base64).then(function(m){var y=new l(d);return y.load(m),y}).then(function(m){var y=[s.Promise.resolve(m)],x=m.files;if(d.checkCRC32)for(var b=0;b<x.length;b++)y.push(f(x[b]));return s.Promise.all(y)}).then(function(m){for(var y=m.shift(),x=y.files,b=0;b<x.length;b++){var k=x[b],S=k.fileNameStr,C=i.resolve(k.fileNameStr);g.file(C,k.decompressed,{binary:!0,optimizedBinaryString:!0,date:k.date,dir:k.dir,comment:k.fileCommentStr.length?k.fileCommentStr:null,unixPermissions:k.unixPermissions,dosPermissions:k.dosPermissions,createFolders:d.createFolders}),k.dir||(g.file(C).unsafeOriginalName=S)}return y.zipComment.length&&(g.comment=y.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,o){var i=n("../utils"),s=n("../stream/GenericWorker");function a(l,c){s.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}i.inherits(a,s),a.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,o){var i=n("readable-stream").Readable;function s(a,l,c){i.call(this,l),this._helper=a;var u=this;a.on("data",function(f,p){u.push(f)||u._helper.pause(),c&&c(p)}).on("error",function(f){u.emit("error",f)}).on("end",function(){u.push(null)})}n("../utils").inherits(s,i),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,r,o){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,s);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,s)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var s=new Buffer(i);return s.fill(0),s},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,o){function i(C,T,j){var P,O=a.getTypeOf(T),M=a.extend(j||{},u);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(C=x(C)),M.createFolders&&(P=y(C))&&b.call(this,P,!0);var B=O==="string"&&M.binary===!1&&M.base64===!1;j&&j.binary!==void 0||(M.binary=!B),(T instanceof f&&T.uncompressedSize===0||M.dir||!T||T.length===0)&&(M.base64=!1,M.binary=!0,T="",M.compression="STORE",O="string");var E=null;E=T instanceof f||T instanceof l?T:g.isNode&&g.isStream(T)?new m(C,T):a.prepareContent(C,T,M.binary,M.optimizedBinaryString,M.base64);var L=new p(C,E,M);this.files[C]=L}var s=n("./utf8"),a=n("./utils"),l=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),u=n("./defaults"),f=n("./compressedObject"),p=n("./zipObject"),d=n("./generate"),g=n("./nodejsUtils"),m=n("./nodejs/NodejsStreamInputAdapter"),y=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var T=C.lastIndexOf("/");return 0<T?C.substring(0,T):""},x=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},b=function(C,T){return T=T!==void 0?T:u.createFolders,C=x(C),this.files[C]||i.call(this,C,null,{dir:!0,createFolders:T}),this.files[C]};function k(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var T,j,P;for(T in this.files)P=this.files[T],(j=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&C(j,P)},filter:function(C){var T=[];return this.forEach(function(j,P){C(j,P)&&T.push(P)}),T},file:function(C,T,j){if(arguments.length!==1)return C=this.root+C,i.call(this,C,T,j),this;if(k(C)){var P=C;return this.filter(function(M,B){return!B.dir&&P.test(M)})}var O=this.files[this.root+C];return O&&!O.dir?O:null},folder:function(C){if(!C)return this;if(k(C))return this.filter(function(O,M){return M.dir&&C.test(O)});var T=this.root+C,j=b.call(this,T),P=this.clone();return P.root=j.name,P},remove:function(C){C=this.root+C;var T=this.files[C];if(T||(C.slice(-1)!=="/"&&(C+="/"),T=this.files[C]),T&&!T.dir)delete this.files[C];else for(var j=this.filter(function(O,M){return M.name.slice(0,C.length)===C}),P=0;P<j.length;P++)delete this.files[j[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var T,j={};try{if((j=a.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=j.type.toLowerCase(),j.compression=j.compression.toUpperCase(),j.type==="binarystring"&&(j.type="string"),!j.type)throw new Error("No output type specified.");a.checkSupport(j.type),j.platform!=="darwin"&&j.platform!=="freebsd"&&j.platform!=="linux"&&j.platform!=="sunos"||(j.platform="UNIX"),j.platform==="win32"&&(j.platform="DOS");var P=j.comment||this.comment||"";T=d.generateWorker(this,j,P)}catch(O){(T=new l("error")).error(O)}return new c(T,j.type||"string",j.mimeType)},generateAsync:function(C,T){return this.generateInternalStream(C).accumulate(T)},generateNodeStream:function(C,T){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(T)}};r.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,o){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,o){var i=n("./DataReader");function s(a){i.call(this,a);for(var l=0;l<this.data.length;l++)a[l]=255&a[l]}n("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var l=a.charCodeAt(0),c=a.charCodeAt(1),u=a.charCodeAt(2),f=a.charCodeAt(3),p=this.length-4;0<=p;--p)if(this.data[p]===l&&this.data[p+1]===c&&this.data[p+2]===u&&this.data[p+3]===f)return p-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var l=a.charCodeAt(0),c=a.charCodeAt(1),u=a.charCodeAt(2),f=a.charCodeAt(3),p=this.readData(4);return l===p[0]&&c===p[1]&&u===p[2]&&f===p[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,r,o){var i=n("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var l,c=0;for(this.checkOffset(a),l=this.index+a-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=a,c},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=s},{"../utils":32}],19:[function(n,r,o){var i=n("./Uint8ArrayReader");function s(a){i.call(this,a)}n("../utils").inherits(s,i),s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,o){var i=n("./DataReader");function s(a){i.call(this,a)}n("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,r,o){var i=n("./ArrayReader");function s(a){i.call(this,a)}n("../utils").inherits(s,i),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,o){var i=n("../utils"),s=n("../support"),a=n("./ArrayReader"),l=n("./StringReader"),c=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");r.exports=function(f){var p=i.getTypeOf(f);return i.checkSupport(p),p!=="string"||s.uint8array?p==="nodebuffer"?new c(f):s.uint8array?new u(i.transformTo("uint8array",f)):new a(i.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,o){var i=n("./GenericWorker"),s=n("../utils");function a(l){i.call(this,"ConvertWorker to "+l),this.destType=l}s.inherits(a,i),a.prototype.processChunk=function(l){this.push({data:s.transformTo(this.destType,l.data),meta:l.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,o){var i=n("./GenericWorker"),s=n("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,i),a.prototype.processChunk=function(l){this.streamInfo.crc32=s(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,o){var i=n("../utils"),s=n("./GenericWorker");function a(l){s.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(a,s),a.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}s.prototype.processChunk.call(this,l)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,o){var i=n("../utils"),s=n("./GenericWorker");function a(l){s.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=i.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}i.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,o){function i(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(l){a.processChunk(l)}),s.on("end",function(){a.end()}),s.on("error",function(l){a.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=i},{}],29:[function(n,r,o){var i=n("../utils"),s=n("./ConvertWorker"),a=n("./GenericWorker"),l=n("../base64"),c=n("../support"),u=n("../external"),f=null;if(c.nodestream)try{f=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function p(g,m){return new u.Promise(function(y,x){var b=[],k=g._internalType,S=g._outputType,C=g._mimeType;g.on("data",function(T,j){b.push(T),m&&m(j)}).on("error",function(T){b=[],x(T)}).on("end",function(){try{var T=(function(j,P,O){switch(j){case"blob":return i.newBlob(i.transformTo("arraybuffer",P),O);case"base64":return l.encode(P);default:return i.transformTo(j,P)}})(S,(function(j,P){var O,M=0,B=null,E=0;for(O=0;O<P.length;O++)E+=P[O].length;switch(j){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(B=new Uint8Array(E),O=0;O<P.length;O++)B.set(P[O],M),M+=P[O].length;return B;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+j+"'")}})(k,b),C);y(T)}catch(j){x(j)}b=[]}).resume()})}function d(g,m,y){var x=m;switch(m){case"blob":case"arraybuffer":x="uint8array";break;case"base64":x="string"}try{this._internalType=x,this._outputType=m,this._mimeType=y,i.checkSupport(x),this._worker=g.pipe(new s(x)),g.lock()}catch(b){this._worker=new a("error"),this._worker.error(b)}}d.prototype={accumulate:function(g){return p(this,g)},on:function(g,m){var y=this;return g==="data"?this._worker.on(g,function(x){m.call(y,x.data,x.meta)}):this._worker.on(g,function(){i.delay(m,arguments,y)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var i=new ArrayBuffer(0);try{o.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),o.blob=s.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!n("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,o){for(var i=n("./utils"),s=n("./support"),a=n("./nodejsUtils"),l=n("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function p(){l.call(this,"utf-8 encode")}o.utf8encode=function(d){return s.nodebuffer?a.newBufferFrom(d,"utf-8"):(function(g){var m,y,x,b,k,S=g.length,C=0;for(b=0;b<S;b++)(64512&(y=g.charCodeAt(b)))==55296&&b+1<S&&(64512&(x=g.charCodeAt(b+1)))==56320&&(y=65536+(y-55296<<10)+(x-56320),b++),C+=y<128?1:y<2048?2:y<65536?3:4;for(m=s.uint8array?new Uint8Array(C):new Array(C),b=k=0;k<C;b++)(64512&(y=g.charCodeAt(b)))==55296&&b+1<S&&(64512&(x=g.charCodeAt(b+1)))==56320&&(y=65536+(y-55296<<10)+(x-56320),b++),y<128?m[k++]=y:(y<2048?m[k++]=192|y>>>6:(y<65536?m[k++]=224|y>>>12:(m[k++]=240|y>>>18,m[k++]=128|y>>>12&63),m[k++]=128|y>>>6&63),m[k++]=128|63&y);return m})(d)},o.utf8decode=function(d){return s.nodebuffer?i.transformTo("nodebuffer",d).toString("utf-8"):(function(g){var m,y,x,b,k=g.length,S=new Array(2*k);for(m=y=0;m<k;)if((x=g[m++])<128)S[y++]=x;else if(4<(b=c[x]))S[y++]=65533,m+=b-1;else{for(x&=b===2?31:b===3?15:7;1<b&&m<k;)x=x<<6|63&g[m++],b--;1<b?S[y++]=65533:x<65536?S[y++]=x:(x-=65536,S[y++]=55296|x>>10&1023,S[y++]=56320|1023&x)}return S.length!==y&&(S.subarray?S=S.subarray(0,y):S.length=y),i.applyFromCharCode(S)})(d=i.transformTo(s.uint8array?"uint8array":"array",d))},i.inherits(f,l),f.prototype.processChunk=function(d){var g=i.transformTo(s.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var y=(function(b,k){var S;for((k=k||b.length)>b.length&&(k=b.length),S=k-1;0<=S&&(192&b[S])==128;)S--;return S<0||S===0?k:S+c[b[S]]>k?S:k})(g),x=g;y!==g.length&&(s.uint8array?(x=g.subarray(0,y),this.leftOver=g.subarray(y,g.length)):(x=g.slice(0,y),this.leftOver=g.slice(y,g.length))),this.push({data:o.utf8decode(x),meta:d.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=f,i.inherits(p,l),p.prototype.processChunk=function(d){this.push({data:o.utf8encode(d.data),meta:d.meta})},o.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,o){var i=n("./support"),s=n("./base64"),a=n("./nodejsUtils"),l=n("./external");function c(m){return m}function u(m,y){for(var x=0;x<m.length;++x)y[x]=255&m.charCodeAt(x);return y}n("setimmediate"),o.newBlob=function(m,y){o.checkSupport("blob");try{return new Blob([m],{type:y})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(m),x.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(m,y,x){var b=[],k=0,S=m.length;if(S<=x)return String.fromCharCode.apply(null,m);for(;k<S;)y==="array"||y==="nodebuffer"?b.push(String.fromCharCode.apply(null,m.slice(k,Math.min(k+x,S)))):b.push(String.fromCharCode.apply(null,m.subarray(k,Math.min(k+x,S)))),k+=x;return b.join("")},stringifyByChar:function(m){for(var y="",x=0;x<m.length;x++)y+=String.fromCharCode(m[x]);return y},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function p(m){var y=65536,x=o.getTypeOf(m),b=!0;if(x==="uint8array"?b=f.applyCanBeUsed.uint8array:x==="nodebuffer"&&(b=f.applyCanBeUsed.nodebuffer),b)for(;1<y;)try{return f.stringifyByChunk(m,x,y)}catch{y=Math.floor(y/2)}return f.stringifyByChar(m)}function d(m,y){for(var x=0;x<m.length;x++)y[x]=m[x];return y}o.applyFromCharCode=p;var g={};g.string={string:c,array:function(m){return u(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return u(m,new Uint8Array(m.length))},nodebuffer:function(m){return u(m,a.allocBuffer(m.length))}},g.array={string:p,array:c,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(m)}},g.arraybuffer={string:function(m){return p(new Uint8Array(m))},array:function(m){return d(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:c,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(new Uint8Array(m))}},g.uint8array={string:p,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:c,nodebuffer:function(m){return a.newBufferFrom(m)}},g.nodebuffer={string:p,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return d(m,new Uint8Array(m.length))},nodebuffer:c},o.transformTo=function(m,y){if(y=y||"",!m)return y;o.checkSupport(m);var x=o.getTypeOf(y);return g[x][m](y)},o.resolve=function(m){for(var y=m.split("/"),x=[],b=0;b<y.length;b++){var k=y[b];k==="."||k===""&&b!==0&&b!==y.length-1||(k===".."?x.pop():x.push(k))}return x.join("/")},o.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(m)?"nodebuffer":i.uint8array&&m instanceof Uint8Array?"uint8array":i.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(m){if(!i[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(m){var y,x,b="";for(x=0;x<(m||"").length;x++)b+="\\x"+((y=m.charCodeAt(x))<16?"0":"")+y.toString(16).toUpperCase();return b},o.delay=function(m,y,x){setImmediate(function(){m.apply(x||null,y||[])})},o.inherits=function(m,y){function x(){}x.prototype=y.prototype,m.prototype=new x},o.extend=function(){var m,y,x={};for(m=0;m<arguments.length;m++)for(y in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],y)&&x[y]===void 0&&(x[y]=arguments[m][y]);return x},o.prepareContent=function(m,y,x,b,k){return l.Promise.resolve(y).then(function(S){return i.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new l.Promise(function(C,T){var j=new FileReader;j.onload=function(P){C(P.target.result)},j.onerror=function(P){T(P.target.error)},j.readAsArrayBuffer(S)}):S}).then(function(S){var C=o.getTypeOf(S);return C?(C==="arraybuffer"?S=o.transformTo("uint8array",S):C==="string"&&(k?S=s.decode(S):x&&b!==!0&&(S=(function(T){return u(T,i.uint8array?new Uint8Array(T.length):new Array(T.length))})(S))),S):l.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,o){var i=n("./reader/readerFor"),s=n("./utils"),a=n("./signature"),l=n("./zipEntry"),c=n("./support");function u(f){this.files=[],this.loadOptions=f}u.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(p)+", expected "+s.pretty(f)+")")}},isSignature:function(f,p){var d=this.reader.index;this.reader.setIndex(f);var g=this.reader.readString(4)===p;return this.reader.setIndex(d),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),p=c.uint8array?"uint8array":"array",d=s.transformTo(p,f);this.zipComment=this.loadOptions.decodeFileName(d)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,p,d,g=this.zip64EndOfCentralSize-44;0<g;)f=this.reader.readInt(2),p=this.reader.readInt(4),d=this.reader.readData(p),this.zip64ExtensibleData[f]={id:f,length:p,value:d}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,p;for(f=0;f<this.files.length;f++)p=this.files[f],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(f=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var p=f;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var g=p-d;if(0<g)this.isSignature(p,a.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(f){this.reader=i(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,o){var i=n("./reader/readerFor"),s=n("./utils"),a=n("./compressedObject"),l=n("./crc32"),c=n("./utf8"),u=n("./compressions"),f=n("./support");function p(d,g){this.options=d,this.loadOptions=g}p.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var g,m;if(d.skip(22),this.fileNameLength=d.readInt(2),m=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=(function(y){for(var x in u)if(Object.prototype.hasOwnProperty.call(u,x)&&u[x].magic===y)return u[x];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,g,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var g=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(g),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var g,m,y,x=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<x;)g=d.readInt(2),m=d.readInt(2),y=d.readData(m),this.extraFields[g]={id:g,length:m,value:y};d.setIndex(x)},handleUTF8:function(){var d=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var m=s.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var x=s.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(x)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var g=i(d.value);return g.readInt(1)!==1||l(this.fileName)!==g.readInt(4)?null:c.utf8decode(g.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var g=i(d.value);return g.readInt(1)!==1||l(this.fileComment)!==g.readInt(4)?null:c.utf8decode(g.readData(d.length-5))}return null}},r.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,o){function i(g,m,y){this.name=g,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=m,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var s=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),l=n("./utf8"),c=n("./compressedObject"),u=n("./stream/GenericWorker");i.prototype={internalStream:function(g){var m=null,y="string";try{if(!g)throw new Error("No output type specified.");var x=(y=g.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),m=this._decompressWorker();var b=!this._dataBinary;b&&!x&&(m=m.pipe(new l.Utf8EncodeWorker)),!b&&x&&(m=m.pipe(new l.Utf8DecodeWorker))}catch(k){(m=new u("error")).error(k)}return new s(m,y,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof c&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(y,g,m)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new a(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<f.length;d++)i.prototype[f[d]]=p;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,o){(function(i){var s,a,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var c=0,u=new l(g),f=i.document.createTextNode("");u.observe(f,{characterData:!0}),s=function(){f.data=c=++c%2}}else if(i.setImmediate||i.MessageChannel===void 0)s="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var m=i.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},i.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var p=new i.MessageChannel;p.port1.onmessage=g,s=function(){p.port2.postMessage(0)}}var d=[];function g(){var m,y;a=!0;for(var x=d.length;x;){for(y=d,d=[],m=-1;++m<x;)y[m]();x=d.length}a=!1}r.exports=function(m){d.push(m)!==1||a||s()}}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,o){var i=n("immediate");function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function f(x){if(typeof x!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,x!==s&&m(this,x)}function p(x,b,k){this.promise=x,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof k=="function"&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function d(x,b,k){i(function(){var S;try{S=b(k)}catch(C){return a.reject(x,C)}S===x?a.reject(x,new TypeError("Cannot resolve promise with itself")):a.resolve(x,S)})}function g(x){var b=x&&x.then;if(x&&(typeof x=="object"||typeof x=="function")&&typeof b=="function")return function(){b.apply(x,arguments)}}function m(x,b){var k=!1;function S(j){k||(k=!0,a.reject(x,j))}function C(j){k||(k=!0,a.resolve(x,j))}var T=y(function(){b(C,S)});T.status==="error"&&S(T.value)}function y(x,b){var k={};try{k.value=x(b),k.status="success"}catch(S){k.status="error",k.value=S}return k}(r.exports=f).prototype.finally=function(x){if(typeof x!="function")return this;var b=this.constructor;return this.then(function(k){return b.resolve(x()).then(function(){return k})},function(k){return b.resolve(x()).then(function(){throw k})})},f.prototype.catch=function(x){return this.then(null,x)},f.prototype.then=function(x,b){if(typeof x!="function"&&this.state===c||typeof b!="function"&&this.state===l)return this;var k=new this.constructor(s);return this.state!==u?d(k,this.state===c?x:b,this.outcome):this.queue.push(new p(k,x,b)),k},p.prototype.callFulfilled=function(x){a.resolve(this.promise,x)},p.prototype.otherCallFulfilled=function(x){d(this.promise,this.onFulfilled,x)},p.prototype.callRejected=function(x){a.reject(this.promise,x)},p.prototype.otherCallRejected=function(x){d(this.promise,this.onRejected,x)},a.resolve=function(x,b){var k=y(g,b);if(k.status==="error")return a.reject(x,k.value);var S=k.value;if(S)m(x,S);else{x.state=c,x.outcome=b;for(var C=-1,T=x.queue.length;++C<T;)x.queue[C].callFulfilled(b)}return x},a.reject=function(x,b){x.state=l,x.outcome=b;for(var k=-1,S=x.queue.length;++k<S;)x.queue[k].callRejected(b);return x},f.resolve=function(x){return x instanceof this?x:a.resolve(new this(s),x)},f.reject=function(x){var b=new this(s);return a.reject(b,x)},f.all=function(x){var b=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=x.length,S=!1;if(!k)return this.resolve([]);for(var C=new Array(k),T=0,j=-1,P=new this(s);++j<k;)O(x[j],j);return P;function O(M,B){b.resolve(M).then(function(E){C[B]=E,++T!==k||S||(S=!0,a.resolve(P,C))},function(E){S||(S=!0,a.reject(P,E))})}},f.race=function(x){var b=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=x.length,S=!1;if(!k)return this.resolve([]);for(var C=-1,T=new this(s);++C<k;)j=x[C],b.resolve(j).then(function(P){S||(S=!0,a.resolve(T,P))},function(P){S||(S=!0,a.reject(T,P))});var j;return T}},{immediate:36}],38:[function(n,r,o){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,o){var i=n("./zlib/deflate"),s=n("./utils/common"),a=n("./utils/strings"),l=n("./zlib/messages"),c=n("./zlib/zstream"),u=Object.prototype.toString,f=0,p=-1,d=0,g=8;function m(x){if(!(this instanceof m))return new m(x);this.options=s.assign({level:p,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},x||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var k=i.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(k!==f)throw new Error(l[k]);if(b.header&&i.deflateSetHeader(this.strm,b.header),b.dictionary){var S;if(S=typeof b.dictionary=="string"?a.string2buf(b.dictionary):u.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(k=i.deflateSetDictionary(this.strm,S))!==f)throw new Error(l[k]);this._dict_set=!0}}function y(x,b){var k=new m(b);if(k.push(x,!0),k.err)throw k.msg||l[k.err];return k.result}m.prototype.push=function(x,b){var k,S,C=this.strm,T=this.options.chunkSize;if(this.ended)return!1;S=b===~~b?b:b===!0?4:0,typeof x=="string"?C.input=a.string2buf(x):u.call(x)==="[object ArrayBuffer]"?C.input=new Uint8Array(x):C.input=x,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(T),C.next_out=0,C.avail_out=T),(k=i.deflate(C,S))!==1&&k!==f)return this.onEnd(k),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&k!==1);return S===4?(k=i.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===f):S!==2||(this.onEnd(f),!(C.avail_out=0))},m.prototype.onData=function(x){this.chunks.push(x)},m.prototype.onEnd=function(x){x===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},o.Deflate=m,o.deflate=y,o.deflateRaw=function(x,b){return(b=b||{}).raw=!0,y(x,b)},o.gzip=function(x,b){return(b=b||{}).gzip=!0,y(x,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,o){var i=n("./zlib/inflate"),s=n("./utils/common"),a=n("./utils/strings"),l=n("./zlib/constants"),c=n("./zlib/messages"),u=n("./zlib/zstream"),f=n("./zlib/gzheader"),p=Object.prototype.toString;function d(m){if(!(this instanceof d))return new d(m);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},m||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||m&&m.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var x=i.inflateInit2(this.strm,y.windowBits);if(x!==l.Z_OK)throw new Error(c[x]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function g(m,y){var x=new d(y);if(x.push(m,!0),x.err)throw x.msg||c[x.err];return x.result}d.prototype.push=function(m,y){var x,b,k,S,C,T,j=this.strm,P=this.options.chunkSize,O=this.options.dictionary,M=!1;if(this.ended)return!1;b=y===~~y?y:y===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof m=="string"?j.input=a.binstring2buf(m):p.call(m)==="[object ArrayBuffer]"?j.input=new Uint8Array(m):j.input=m,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new s.Buf8(P),j.next_out=0,j.avail_out=P),(x=i.inflate(j,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&O&&(T=typeof O=="string"?a.string2buf(O):p.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,x=i.inflateSetDictionary(this.strm,T)),x===l.Z_BUF_ERROR&&M===!0&&(x=l.Z_OK,M=!1),x!==l.Z_STREAM_END&&x!==l.Z_OK)return this.onEnd(x),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&x!==l.Z_STREAM_END&&(j.avail_in!==0||b!==l.Z_FINISH&&b!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(k=a.utf8border(j.output,j.next_out),S=j.next_out-k,C=a.buf2string(j.output,k),j.next_out=S,j.avail_out=P-S,S&&s.arraySet(j.output,j.output,k,S,0),this.onData(C)):this.onData(s.shrinkBuf(j.output,j.next_out)))),j.avail_in===0&&j.avail_out===0&&(M=!0)}while((0<j.avail_in||j.avail_out===0)&&x!==l.Z_STREAM_END);return x===l.Z_STREAM_END&&(b=l.Z_FINISH),b===l.Z_FINISH?(x=i.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===l.Z_OK):b!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(j.avail_out=0))},d.prototype.onData=function(m){this.chunks.push(m)},d.prototype.onEnd=function(m){m===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},o.Inflate=d,o.inflate=g,o.inflateRaw=function(m,y){return(y=y||{}).raw=!0,g(m,y)},o.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var f in u)u.hasOwnProperty(f)&&(l[f]=u[f])}}return l},o.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var s={arraySet:function(l,c,u,f,p){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+f),p);else for(var d=0;d<f;d++)l[p+d]=c[u+d]},flattenChunks:function(l){var c,u,f,p,d,g;for(c=f=0,u=l.length;c<u;c++)f+=l[c].length;for(g=new Uint8Array(f),c=p=0,u=l.length;c<u;c++)d=l[c],g.set(d,p),p+=d.length;return g}},a={arraySet:function(l,c,u,f,p){for(var d=0;d<f;d++)l[p+d]=c[u+d]},flattenChunks:function(l){return[].concat.apply([],l)}};o.setTyped=function(l){l?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,s)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(i)},{}],42:[function(n,r,o){var i=n("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(f,p){if(p<65537&&(f.subarray&&a||!f.subarray&&s))return String.fromCharCode.apply(null,i.shrinkBuf(f,p));for(var d="",g=0;g<p;g++)d+=String.fromCharCode(f[g]);return d}l[254]=l[254]=1,o.string2buf=function(f){var p,d,g,m,y,x=f.length,b=0;for(m=0;m<x;m++)(64512&(d=f.charCodeAt(m)))==55296&&m+1<x&&(64512&(g=f.charCodeAt(m+1)))==56320&&(d=65536+(d-55296<<10)+(g-56320),m++),b+=d<128?1:d<2048?2:d<65536?3:4;for(p=new i.Buf8(b),m=y=0;y<b;m++)(64512&(d=f.charCodeAt(m)))==55296&&m+1<x&&(64512&(g=f.charCodeAt(m+1)))==56320&&(d=65536+(d-55296<<10)+(g-56320),m++),d<128?p[y++]=d:(d<2048?p[y++]=192|d>>>6:(d<65536?p[y++]=224|d>>>12:(p[y++]=240|d>>>18,p[y++]=128|d>>>12&63),p[y++]=128|d>>>6&63),p[y++]=128|63&d);return p},o.buf2binstring=function(f){return u(f,f.length)},o.binstring2buf=function(f){for(var p=new i.Buf8(f.length),d=0,g=p.length;d<g;d++)p[d]=f.charCodeAt(d);return p},o.buf2string=function(f,p){var d,g,m,y,x=p||f.length,b=new Array(2*x);for(d=g=0;d<x;)if((m=f[d++])<128)b[g++]=m;else if(4<(y=l[m]))b[g++]=65533,d+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&d<x;)m=m<<6|63&f[d++],y--;1<y?b[g++]=65533:m<65536?b[g++]=m:(m-=65536,b[g++]=55296|m>>10&1023,b[g++]=56320|1023&m)}return u(b,g)},o.utf8border=function(f,p){var d;for((p=p||f.length)>f.length&&(p=f.length),d=p-1;0<=d&&(192&f[d])==128;)d--;return d<0||d===0?p:d+l[f[d]]>p?d:p}},{"./common":41}],43:[function(n,r,o){r.exports=function(i,s,a,l){for(var c=65535&i|0,u=i>>>16&65535|0,f=0;a!==0;){for(a-=f=2e3<a?2e3:a;u=u+(c=c+s[l++]|0)|0,--f;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(n,r,o){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,o){var i=(function(){for(var s,a=[],l=0;l<256;l++){s=l;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;a[l]=s}return a})();r.exports=function(s,a,l,c){var u=i,f=c+l;s^=-1;for(var p=c;p<f;p++)s=s>>>8^u[255&(s^a[p])];return-1^s}},{}],46:[function(n,r,o){var i,s=n("../utils/common"),a=n("./trees"),l=n("./adler32"),c=n("./crc32"),u=n("./messages"),f=0,p=4,d=0,g=-2,m=-1,y=4,x=2,b=8,k=9,S=286,C=30,T=19,j=2*S+1,P=15,O=3,M=258,B=M+O+1,E=42,L=113,v=1,D=2,G=3,Z=4;function W(w,J){return w.msg=u[J],J}function q(w){return(w<<1)-(4<w?9:0)}function A(w){for(var J=w.length;0<=--J;)w[J]=0}function U(w){var J=w.state,H=J.pending;H>w.avail_out&&(H=w.avail_out),H!==0&&(s.arraySet(w.output,J.pending_buf,J.pending_out,H,w.next_out),w.next_out+=H,J.pending_out+=H,w.total_out+=H,w.avail_out-=H,J.pending-=H,J.pending===0&&(J.pending_out=0))}function R(w,J){a._tr_flush_block(w,0<=w.block_start?w.block_start:-1,w.strstart-w.block_start,J),w.block_start=w.strstart,U(w.strm)}function N(w,J){w.pending_buf[w.pending++]=J}function Y(w,J){w.pending_buf[w.pending++]=J>>>8&255,w.pending_buf[w.pending++]=255&J}function Q(w,J){var H,I,z=w.max_chain_length,F=w.strstart,te=w.prev_length,re=w.nice_match,V=w.strstart>w.w_size-B?w.strstart-(w.w_size-B):0,ie=w.window,ue=w.w_mask,se=w.prev,$=w.strstart+M,ne=ie[F+te-1],le=ie[F+te];w.prev_length>=w.good_match&&(z>>=2),re>w.lookahead&&(re=w.lookahead);do if(ie[(H=J)+te]===le&&ie[H+te-1]===ne&&ie[H]===ie[F]&&ie[++H]===ie[F+1]){F+=2,H++;do;while(ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&F<$);if(I=M-($-F),F=$-M,te<I){if(w.match_start=J,re<=(te=I))break;ne=ie[F+te-1],le=ie[F+te]}}while((J=se[J&ue])>V&&--z!=0);return te<=w.lookahead?te:w.lookahead}function pe(w){var J,H,I,z,F,te,re,V,ie,ue,se=w.w_size;do{if(z=w.window_size-w.lookahead-w.strstart,w.strstart>=se+(se-B)){for(s.arraySet(w.window,w.window,se,se,0),w.match_start-=se,w.strstart-=se,w.block_start-=se,J=H=w.hash_size;I=w.head[--J],w.head[J]=se<=I?I-se:0,--H;);for(J=H=se;I=w.prev[--J],w.prev[J]=se<=I?I-se:0,--H;);z+=se}if(w.strm.avail_in===0)break;if(te=w.strm,re=w.window,V=w.strstart+w.lookahead,ie=z,ue=void 0,ue=te.avail_in,ie<ue&&(ue=ie),H=ue===0?0:(te.avail_in-=ue,s.arraySet(re,te.input,te.next_in,ue,V),te.state.wrap===1?te.adler=l(te.adler,re,ue,V):te.state.wrap===2&&(te.adler=c(te.adler,re,ue,V)),te.next_in+=ue,te.total_in+=ue,ue),w.lookahead+=H,w.lookahead+w.insert>=O)for(F=w.strstart-w.insert,w.ins_h=w.window[F],w.ins_h=(w.ins_h<<w.hash_shift^w.window[F+1])&w.hash_mask;w.insert&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[F+O-1])&w.hash_mask,w.prev[F&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=F,F++,w.insert--,!(w.lookahead+w.insert<O)););}while(w.lookahead<B&&w.strm.avail_in!==0)}function X(w,J){for(var H,I;;){if(w.lookahead<B){if(pe(w),w.lookahead<B&&J===f)return v;if(w.lookahead===0)break}if(H=0,w.lookahead>=O&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),H!==0&&w.strstart-H<=w.w_size-B&&(w.match_length=Q(w,H)),w.match_length>=O)if(I=a._tr_tally(w,w.strstart-w.match_start,w.match_length-O),w.lookahead-=w.match_length,w.match_length<=w.max_lazy_match&&w.lookahead>=O){for(w.match_length--;w.strstart++,w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart,--w.match_length!=0;);w.strstart++}else w.strstart+=w.match_length,w.match_length=0,w.ins_h=w.window[w.strstart],w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+1])&w.hash_mask;else I=a._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++;if(I&&(R(w,!1),w.strm.avail_out===0))return v}return w.insert=w.strstart<O-1?w.strstart:O-1,J===p?(R(w,!0),w.strm.avail_out===0?G:Z):w.last_lit&&(R(w,!1),w.strm.avail_out===0)?v:D}function ae(w,J){for(var H,I,z;;){if(w.lookahead<B){if(pe(w),w.lookahead<B&&J===f)return v;if(w.lookahead===0)break}if(H=0,w.lookahead>=O&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),w.prev_length=w.match_length,w.prev_match=w.match_start,w.match_length=O-1,H!==0&&w.prev_length<w.max_lazy_match&&w.strstart-H<=w.w_size-B&&(w.match_length=Q(w,H),w.match_length<=5&&(w.strategy===1||w.match_length===O&&4096<w.strstart-w.match_start)&&(w.match_length=O-1)),w.prev_length>=O&&w.match_length<=w.prev_length){for(z=w.strstart+w.lookahead-O,I=a._tr_tally(w,w.strstart-1-w.prev_match,w.prev_length-O),w.lookahead-=w.prev_length-1,w.prev_length-=2;++w.strstart<=z&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),--w.prev_length!=0;);if(w.match_available=0,w.match_length=O-1,w.strstart++,I&&(R(w,!1),w.strm.avail_out===0))return v}else if(w.match_available){if((I=a._tr_tally(w,0,w.window[w.strstart-1]))&&R(w,!1),w.strstart++,w.lookahead--,w.strm.avail_out===0)return v}else w.match_available=1,w.strstart++,w.lookahead--}return w.match_available&&(I=a._tr_tally(w,0,w.window[w.strstart-1]),w.match_available=0),w.insert=w.strstart<O-1?w.strstart:O-1,J===p?(R(w,!0),w.strm.avail_out===0?G:Z):w.last_lit&&(R(w,!1),w.strm.avail_out===0)?v:D}function de(w,J,H,I,z){this.good_length=w,this.max_lazy=J,this.nice_length=H,this.max_chain=I,this.func=z}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*j),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*T+1)),A(this.dyn_ltree),A(this.dyn_dtree),A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(P+1),this.heap=new s.Buf16(2*S+1),A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*S+1),A(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(w){var J;return w&&w.state?(w.total_in=w.total_out=0,w.data_type=x,(J=w.state).pending=0,J.pending_out=0,J.wrap<0&&(J.wrap=-J.wrap),J.status=J.wrap?E:L,w.adler=J.wrap===2?0:1,J.last_flush=f,a._tr_init(J),d):W(w,g)}function Ee(w){var J=xe(w);return J===d&&(function(H){H.window_size=2*H.w_size,A(H.head),H.max_lazy_match=i[H.level].max_lazy,H.good_match=i[H.level].good_length,H.nice_match=i[H.level].nice_length,H.max_chain_length=i[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=O-1,H.match_available=0,H.ins_h=0})(w.state),J}function Oe(w,J,H,I,z,F){if(!w)return g;var te=1;if(J===m&&(J=6),I<0?(te=0,I=-I):15<I&&(te=2,I-=16),z<1||k<z||H!==b||I<8||15<I||J<0||9<J||F<0||y<F)return W(w,g);I===8&&(I=9);var re=new ge;return(w.state=re).strm=w,re.wrap=te,re.gzhead=null,re.w_bits=I,re.w_size=1<<re.w_bits,re.w_mask=re.w_size-1,re.hash_bits=z+7,re.hash_size=1<<re.hash_bits,re.hash_mask=re.hash_size-1,re.hash_shift=~~((re.hash_bits+O-1)/O),re.window=new s.Buf8(2*re.w_size),re.head=new s.Buf16(re.hash_size),re.prev=new s.Buf16(re.w_size),re.lit_bufsize=1<<z+6,re.pending_buf_size=4*re.lit_bufsize,re.pending_buf=new s.Buf8(re.pending_buf_size),re.d_buf=1*re.lit_bufsize,re.l_buf=3*re.lit_bufsize,re.level=J,re.strategy=F,re.method=H,Ee(w)}i=[new de(0,0,0,0,function(w,J){var H=65535;for(H>w.pending_buf_size-5&&(H=w.pending_buf_size-5);;){if(w.lookahead<=1){if(pe(w),w.lookahead===0&&J===f)return v;if(w.lookahead===0)break}w.strstart+=w.lookahead,w.lookahead=0;var I=w.block_start+H;if((w.strstart===0||w.strstart>=I)&&(w.lookahead=w.strstart-I,w.strstart=I,R(w,!1),w.strm.avail_out===0)||w.strstart-w.block_start>=w.w_size-B&&(R(w,!1),w.strm.avail_out===0))return v}return w.insert=0,J===p?(R(w,!0),w.strm.avail_out===0?G:Z):(w.strstart>w.block_start&&(R(w,!1),w.strm.avail_out),v)}),new de(4,4,8,4,X),new de(4,5,16,8,X),new de(4,6,32,32,X),new de(4,4,16,16,ae),new de(8,16,32,32,ae),new de(8,16,128,128,ae),new de(8,32,128,256,ae),new de(32,128,258,1024,ae),new de(32,258,258,4096,ae)],o.deflateInit=function(w,J){return Oe(w,J,b,15,8,0)},o.deflateInit2=Oe,o.deflateReset=Ee,o.deflateResetKeep=xe,o.deflateSetHeader=function(w,J){return w&&w.state?w.state.wrap!==2?g:(w.state.gzhead=J,d):g},o.deflate=function(w,J){var H,I,z,F;if(!w||!w.state||5<J||J<0)return w?W(w,g):g;if(I=w.state,!w.output||!w.input&&w.avail_in!==0||I.status===666&&J!==p)return W(w,w.avail_out===0?-5:g);if(I.strm=w,H=I.last_flush,I.last_flush=J,I.status===E)if(I.wrap===2)w.adler=0,N(I,31),N(I,139),N(I,8),I.gzhead?(N(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),N(I,255&I.gzhead.time),N(I,I.gzhead.time>>8&255),N(I,I.gzhead.time>>16&255),N(I,I.gzhead.time>>24&255),N(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),N(I,255&I.gzhead.os),I.gzhead.extra&&I.gzhead.extra.length&&(N(I,255&I.gzhead.extra.length),N(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(w.adler=c(w.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(N(I,0),N(I,0),N(I,0),N(I,0),N(I,0),N(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),N(I,3),I.status=L);else{var te=b+(I.w_bits-8<<4)<<8;te|=(2<=I.strategy||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6,I.strstart!==0&&(te|=32),te+=31-te%31,I.status=L,Y(I,te),I.strstart!==0&&(Y(I,w.adler>>>16),Y(I,65535&w.adler)),w.adler=1}if(I.status===69)if(I.gzhead.extra){for(z=I.pending;I.gzindex<(65535&I.gzhead.extra.length)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),U(w),z=I.pending,I.pending!==I.pending_buf_size));)N(I,255&I.gzhead.extra[I.gzindex]),I.gzindex++;I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){z=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),U(w),z=I.pending,I.pending===I.pending_buf_size)){F=1;break}F=I.gzindex<I.gzhead.name.length?255&I.gzhead.name.charCodeAt(I.gzindex++):0,N(I,F)}while(F!==0);I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),F===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===91)if(I.gzhead.comment){z=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),U(w),z=I.pending,I.pending===I.pending_buf_size)){F=1;break}F=I.gzindex<I.gzhead.comment.length?255&I.gzhead.comment.charCodeAt(I.gzindex++):0,N(I,F)}while(F!==0);I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),F===0&&(I.status=103)}else I.status=103;if(I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&U(w),I.pending+2<=I.pending_buf_size&&(N(I,255&w.adler),N(I,w.adler>>8&255),w.adler=0,I.status=L)):I.status=L),I.pending!==0){if(U(w),w.avail_out===0)return I.last_flush=-1,d}else if(w.avail_in===0&&q(J)<=q(H)&&J!==p)return W(w,-5);if(I.status===666&&w.avail_in!==0)return W(w,-5);if(w.avail_in!==0||I.lookahead!==0||J!==f&&I.status!==666){var re=I.strategy===2?(function(V,ie){for(var ue;;){if(V.lookahead===0&&(pe(V),V.lookahead===0)){if(ie===f)return v;break}if(V.match_length=0,ue=a._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++,ue&&(R(V,!1),V.strm.avail_out===0))return v}return V.insert=0,ie===p?(R(V,!0),V.strm.avail_out===0?G:Z):V.last_lit&&(R(V,!1),V.strm.avail_out===0)?v:D})(I,J):I.strategy===3?(function(V,ie){for(var ue,se,$,ne,le=V.window;;){if(V.lookahead<=M){if(pe(V),V.lookahead<=M&&ie===f)return v;if(V.lookahead===0)break}if(V.match_length=0,V.lookahead>=O&&0<V.strstart&&(se=le[$=V.strstart-1])===le[++$]&&se===le[++$]&&se===le[++$]){ne=V.strstart+M;do;while(se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&$<ne);V.match_length=M-(ne-$),V.match_length>V.lookahead&&(V.match_length=V.lookahead)}if(V.match_length>=O?(ue=a._tr_tally(V,1,V.match_length-O),V.lookahead-=V.match_length,V.strstart+=V.match_length,V.match_length=0):(ue=a._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++),ue&&(R(V,!1),V.strm.avail_out===0))return v}return V.insert=0,ie===p?(R(V,!0),V.strm.avail_out===0?G:Z):V.last_lit&&(R(V,!1),V.strm.avail_out===0)?v:D})(I,J):i[I.level].func(I,J);if(re!==G&&re!==Z||(I.status=666),re===v||re===G)return w.avail_out===0&&(I.last_flush=-1),d;if(re===D&&(J===1?a._tr_align(I):J!==5&&(a._tr_stored_block(I,0,0,!1),J===3&&(A(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),U(w),w.avail_out===0))return I.last_flush=-1,d}return J!==p?d:I.wrap<=0?1:(I.wrap===2?(N(I,255&w.adler),N(I,w.adler>>8&255),N(I,w.adler>>16&255),N(I,w.adler>>24&255),N(I,255&w.total_in),N(I,w.total_in>>8&255),N(I,w.total_in>>16&255),N(I,w.total_in>>24&255)):(Y(I,w.adler>>>16),Y(I,65535&w.adler)),U(w),0<I.wrap&&(I.wrap=-I.wrap),I.pending!==0?d:1)},o.deflateEnd=function(w){var J;return w&&w.state?(J=w.state.status)!==E&&J!==69&&J!==73&&J!==91&&J!==103&&J!==L&&J!==666?W(w,g):(w.state=null,J===L?W(w,-3):d):g},o.deflateSetDictionary=function(w,J){var H,I,z,F,te,re,V,ie,ue=J.length;if(!w||!w.state||(F=(H=w.state).wrap)===2||F===1&&H.status!==E||H.lookahead)return g;for(F===1&&(w.adler=l(w.adler,J,ue,0)),H.wrap=0,ue>=H.w_size&&(F===0&&(A(H.head),H.strstart=0,H.block_start=0,H.insert=0),ie=new s.Buf8(H.w_size),s.arraySet(ie,J,ue-H.w_size,H.w_size,0),J=ie,ue=H.w_size),te=w.avail_in,re=w.next_in,V=w.input,w.avail_in=ue,w.next_in=0,w.input=J,pe(H);H.lookahead>=O;){for(I=H.strstart,z=H.lookahead-(O-1);H.ins_h=(H.ins_h<<H.hash_shift^H.window[I+O-1])&H.hash_mask,H.prev[I&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=I,I++,--z;);H.strstart=I,H.lookahead=O-1,pe(H)}return H.strstart+=H.lookahead,H.block_start=H.strstart,H.insert=H.lookahead,H.lookahead=0,H.match_length=H.prev_length=O-1,H.match_available=0,w.next_in=re,w.input=V,w.avail_in=te,H.wrap=F,d},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,o){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,o){r.exports=function(i,s){var a,l,c,u,f,p,d,g,m,y,x,b,k,S,C,T,j,P,O,M,B,E,L,v,D;a=i.state,l=i.next_in,v=i.input,c=l+(i.avail_in-5),u=i.next_out,D=i.output,f=u-(s-i.avail_out),p=u+(i.avail_out-257),d=a.dmax,g=a.wsize,m=a.whave,y=a.wnext,x=a.window,b=a.hold,k=a.bits,S=a.lencode,C=a.distcode,T=(1<<a.lenbits)-1,j=(1<<a.distbits)-1;e:do{k<15&&(b+=v[l++]<<k,k+=8,b+=v[l++]<<k,k+=8),P=S[b&T];t:for(;;){if(b>>>=O=P>>>24,k-=O,(O=P>>>16&255)===0)D[u++]=65535&P;else{if(!(16&O)){if((64&O)==0){P=S[(65535&P)+(b&(1<<O)-1)];continue t}if(32&O){a.mode=12;break e}i.msg="invalid literal/length code",a.mode=30;break e}M=65535&P,(O&=15)&&(k<O&&(b+=v[l++]<<k,k+=8),M+=b&(1<<O)-1,b>>>=O,k-=O),k<15&&(b+=v[l++]<<k,k+=8,b+=v[l++]<<k,k+=8),P=C[b&j];n:for(;;){if(b>>>=O=P>>>24,k-=O,!(16&(O=P>>>16&255))){if((64&O)==0){P=C[(65535&P)+(b&(1<<O)-1)];continue n}i.msg="invalid distance code",a.mode=30;break e}if(B=65535&P,k<(O&=15)&&(b+=v[l++]<<k,(k+=8)<O&&(b+=v[l++]<<k,k+=8)),d<(B+=b&(1<<O)-1)){i.msg="invalid distance too far back",a.mode=30;break e}if(b>>>=O,k-=O,(O=u-f)<B){if(m<(O=B-O)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break e}if(L=x,(E=0)===y){if(E+=g-O,O<M){for(M-=O;D[u++]=x[E++],--O;);E=u-B,L=D}}else if(y<O){if(E+=g+y-O,(O-=y)<M){for(M-=O;D[u++]=x[E++],--O;);if(E=0,y<M){for(M-=O=y;D[u++]=x[E++],--O;);E=u-B,L=D}}}else if(E+=y-O,O<M){for(M-=O;D[u++]=x[E++],--O;);E=u-B,L=D}for(;2<M;)D[u++]=L[E++],D[u++]=L[E++],D[u++]=L[E++],M-=3;M&&(D[u++]=L[E++],1<M&&(D[u++]=L[E++]))}else{for(E=u-B;D[u++]=D[E++],D[u++]=D[E++],D[u++]=D[E++],2<(M-=3););M&&(D[u++]=D[E++],1<M&&(D[u++]=D[E++]))}break}}break}}while(l<c&&u<p);l-=M=k>>3,b&=(1<<(k-=M<<3))-1,i.next_in=l,i.next_out=u,i.avail_in=l<c?c-l+5:5-(l-c),i.avail_out=u<p?p-u+257:257-(u-p),a.hold=b,a.bits=k}},{}],49:[function(n,r,o){var i=n("../utils/common"),s=n("./adler32"),a=n("./crc32"),l=n("./inffast"),c=n("./inftrees"),u=1,f=2,p=0,d=-2,g=1,m=852,y=592;function x(E){return(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(E){var L;return E&&E.state?(L=E.state,E.total_in=E.total_out=L.total=0,E.msg="",L.wrap&&(E.adler=1&L.wrap),L.mode=g,L.last=0,L.havedict=0,L.dmax=32768,L.head=null,L.hold=0,L.bits=0,L.lencode=L.lendyn=new i.Buf32(m),L.distcode=L.distdyn=new i.Buf32(y),L.sane=1,L.back=-1,p):d}function S(E){var L;return E&&E.state?((L=E.state).wsize=0,L.whave=0,L.wnext=0,k(E)):d}function C(E,L){var v,D;return E&&E.state?(D=E.state,L<0?(v=0,L=-L):(v=1+(L>>4),L<48&&(L&=15)),L&&(L<8||15<L)?d:(D.window!==null&&D.wbits!==L&&(D.window=null),D.wrap=v,D.wbits=L,S(E))):d}function T(E,L){var v,D;return E?(D=new b,(E.state=D).window=null,(v=C(E,L))!==p&&(E.state=null),v):d}var j,P,O=!0;function M(E){if(O){var L;for(j=new i.Buf32(512),P=new i.Buf32(32),L=0;L<144;)E.lens[L++]=8;for(;L<256;)E.lens[L++]=9;for(;L<280;)E.lens[L++]=7;for(;L<288;)E.lens[L++]=8;for(c(u,E.lens,0,288,j,0,E.work,{bits:9}),L=0;L<32;)E.lens[L++]=5;c(f,E.lens,0,32,P,0,E.work,{bits:5}),O=!1}E.lencode=j,E.lenbits=9,E.distcode=P,E.distbits=5}function B(E,L,v,D){var G,Z=E.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new i.Buf8(Z.wsize)),D>=Z.wsize?(i.arraySet(Z.window,L,v-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(D<(G=Z.wsize-Z.wnext)&&(G=D),i.arraySet(Z.window,L,v-D,G,Z.wnext),(D-=G)?(i.arraySet(Z.window,L,v-D,D,0),Z.wnext=D,Z.whave=Z.wsize):(Z.wnext+=G,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=G))),0}o.inflateReset=S,o.inflateReset2=C,o.inflateResetKeep=k,o.inflateInit=function(E){return T(E,15)},o.inflateInit2=T,o.inflate=function(E,L){var v,D,G,Z,W,q,A,U,R,N,Y,Q,pe,X,ae,de,ge,xe,Ee,Oe,w,J,H,I,z=0,F=new i.Buf8(4),te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return d;(v=E.state).mode===12&&(v.mode=13),W=E.next_out,G=E.output,A=E.avail_out,Z=E.next_in,D=E.input,q=E.avail_in,U=v.hold,R=v.bits,N=q,Y=A,J=p;e:for(;;)switch(v.mode){case g:if(v.wrap===0){v.mode=13;break}for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(2&v.wrap&&U===35615){F[v.check=0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0),R=U=0,v.mode=2;break}if(v.flags=0,v.head&&(v.head.done=!1),!(1&v.wrap)||(((255&U)<<8)+(U>>8))%31){E.msg="incorrect header check",v.mode=30;break}if((15&U)!=8){E.msg="unknown compression method",v.mode=30;break}if(R-=4,w=8+(15&(U>>>=4)),v.wbits===0)v.wbits=w;else if(w>v.wbits){E.msg="invalid window size",v.mode=30;break}v.dmax=1<<w,E.adler=v.check=1,v.mode=512&U?10:12,R=U=0;break;case 2:for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(v.flags=U,(255&v.flags)!=8){E.msg="unknown compression method",v.mode=30;break}if(57344&v.flags){E.msg="unknown header flags set",v.mode=30;break}v.head&&(v.head.text=U>>8&1),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0)),R=U=0,v.mode=3;case 3:for(;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.head&&(v.head.time=U),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,F[2]=U>>>16&255,F[3]=U>>>24&255,v.check=a(v.check,F,4,0)),R=U=0,v.mode=4;case 4:for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.head&&(v.head.xflags=255&U,v.head.os=U>>8),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0)),R=U=0,v.mode=5;case 5:if(1024&v.flags){for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.length=U,v.head&&(v.head.extra_len=U),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0)),R=U=0}else v.head&&(v.head.extra=null);v.mode=6;case 6:if(1024&v.flags&&(q<(Q=v.length)&&(Q=q),Q&&(v.head&&(w=v.head.extra_len-v.length,v.head.extra||(v.head.extra=new Array(v.head.extra_len)),i.arraySet(v.head.extra,D,Z,Q,w)),512&v.flags&&(v.check=a(v.check,D,Q,Z)),q-=Q,Z+=Q,v.length-=Q),v.length))break e;v.length=0,v.mode=7;case 7:if(2048&v.flags){if(q===0)break e;for(Q=0;w=D[Z+Q++],v.head&&w&&v.length<65536&&(v.head.name+=String.fromCharCode(w)),w&&Q<q;);if(512&v.flags&&(v.check=a(v.check,D,Q,Z)),q-=Q,Z+=Q,w)break e}else v.head&&(v.head.name=null);v.length=0,v.mode=8;case 8:if(4096&v.flags){if(q===0)break e;for(Q=0;w=D[Z+Q++],v.head&&w&&v.length<65536&&(v.head.comment+=String.fromCharCode(w)),w&&Q<q;);if(512&v.flags&&(v.check=a(v.check,D,Q,Z)),q-=Q,Z+=Q,w)break e}else v.head&&(v.head.comment=null);v.mode=9;case 9:if(512&v.flags){for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(U!==(65535&v.check)){E.msg="header crc mismatch",v.mode=30;break}R=U=0}v.head&&(v.head.hcrc=v.flags>>9&1,v.head.done=!0),E.adler=v.check=0,v.mode=12;break;case 10:for(;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}E.adler=v.check=x(U),R=U=0,v.mode=11;case 11:if(v.havedict===0)return E.next_out=W,E.avail_out=A,E.next_in=Z,E.avail_in=q,v.hold=U,v.bits=R,2;E.adler=v.check=1,v.mode=12;case 12:if(L===5||L===6)break e;case 13:if(v.last){U>>>=7&R,R-=7&R,v.mode=27;break}for(;R<3;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}switch(v.last=1&U,R-=1,3&(U>>>=1)){case 0:v.mode=14;break;case 1:if(M(v),v.mode=20,L!==6)break;U>>>=2,R-=2;break e;case 2:v.mode=17;break;case 3:E.msg="invalid block type",v.mode=30}U>>>=2,R-=2;break;case 14:for(U>>>=7&R,R-=7&R;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if((65535&U)!=(U>>>16^65535)){E.msg="invalid stored block lengths",v.mode=30;break}if(v.length=65535&U,R=U=0,v.mode=15,L===6)break e;case 15:v.mode=16;case 16:if(Q=v.length){if(q<Q&&(Q=q),A<Q&&(Q=A),Q===0)break e;i.arraySet(G,D,Z,Q,W),q-=Q,Z+=Q,A-=Q,W+=Q,v.length-=Q;break}v.mode=12;break;case 17:for(;R<14;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(v.nlen=257+(31&U),U>>>=5,R-=5,v.ndist=1+(31&U),U>>>=5,R-=5,v.ncode=4+(15&U),U>>>=4,R-=4,286<v.nlen||30<v.ndist){E.msg="too many length or distance symbols",v.mode=30;break}v.have=0,v.mode=18;case 18:for(;v.have<v.ncode;){for(;R<3;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.lens[te[v.have++]]=7&U,U>>>=3,R-=3}for(;v.have<19;)v.lens[te[v.have++]]=0;if(v.lencode=v.lendyn,v.lenbits=7,H={bits:v.lenbits},J=c(0,v.lens,0,19,v.lencode,0,v.work,H),v.lenbits=H.bits,J){E.msg="invalid code lengths set",v.mode=30;break}v.have=0,v.mode=19;case 19:for(;v.have<v.nlen+v.ndist;){for(;de=(z=v.lencode[U&(1<<v.lenbits)-1])>>>16&255,ge=65535&z,!((ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(ge<16)U>>>=ae,R-=ae,v.lens[v.have++]=ge;else{if(ge===16){for(I=ae+2;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(U>>>=ae,R-=ae,v.have===0){E.msg="invalid bit length repeat",v.mode=30;break}w=v.lens[v.have-1],Q=3+(3&U),U>>>=2,R-=2}else if(ge===17){for(I=ae+3;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}R-=ae,w=0,Q=3+(7&(U>>>=ae)),U>>>=3,R-=3}else{for(I=ae+7;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}R-=ae,w=0,Q=11+(127&(U>>>=ae)),U>>>=7,R-=7}if(v.have+Q>v.nlen+v.ndist){E.msg="invalid bit length repeat",v.mode=30;break}for(;Q--;)v.lens[v.have++]=w}}if(v.mode===30)break;if(v.lens[256]===0){E.msg="invalid code -- missing end-of-block",v.mode=30;break}if(v.lenbits=9,H={bits:v.lenbits},J=c(u,v.lens,0,v.nlen,v.lencode,0,v.work,H),v.lenbits=H.bits,J){E.msg="invalid literal/lengths set",v.mode=30;break}if(v.distbits=6,v.distcode=v.distdyn,H={bits:v.distbits},J=c(f,v.lens,v.nlen,v.ndist,v.distcode,0,v.work,H),v.distbits=H.bits,J){E.msg="invalid distances set",v.mode=30;break}if(v.mode=20,L===6)break e;case 20:v.mode=21;case 21:if(6<=q&&258<=A){E.next_out=W,E.avail_out=A,E.next_in=Z,E.avail_in=q,v.hold=U,v.bits=R,l(E,Y),W=E.next_out,G=E.output,A=E.avail_out,Z=E.next_in,D=E.input,q=E.avail_in,U=v.hold,R=v.bits,v.mode===12&&(v.back=-1);break}for(v.back=0;de=(z=v.lencode[U&(1<<v.lenbits)-1])>>>16&255,ge=65535&z,!((ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(de&&(240&de)==0){for(xe=ae,Ee=de,Oe=ge;de=(z=v.lencode[Oe+((U&(1<<xe+Ee)-1)>>xe)])>>>16&255,ge=65535&z,!(xe+(ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}U>>>=xe,R-=xe,v.back+=xe}if(U>>>=ae,R-=ae,v.back+=ae,v.length=ge,de===0){v.mode=26;break}if(32&de){v.back=-1,v.mode=12;break}if(64&de){E.msg="invalid literal/length code",v.mode=30;break}v.extra=15&de,v.mode=22;case 22:if(v.extra){for(I=v.extra;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.length+=U&(1<<v.extra)-1,U>>>=v.extra,R-=v.extra,v.back+=v.extra}v.was=v.length,v.mode=23;case 23:for(;de=(z=v.distcode[U&(1<<v.distbits)-1])>>>16&255,ge=65535&z,!((ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if((240&de)==0){for(xe=ae,Ee=de,Oe=ge;de=(z=v.distcode[Oe+((U&(1<<xe+Ee)-1)>>xe)])>>>16&255,ge=65535&z,!(xe+(ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}U>>>=xe,R-=xe,v.back+=xe}if(U>>>=ae,R-=ae,v.back+=ae,64&de){E.msg="invalid distance code",v.mode=30;break}v.offset=ge,v.extra=15&de,v.mode=24;case 24:if(v.extra){for(I=v.extra;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.offset+=U&(1<<v.extra)-1,U>>>=v.extra,R-=v.extra,v.back+=v.extra}if(v.offset>v.dmax){E.msg="invalid distance too far back",v.mode=30;break}v.mode=25;case 25:if(A===0)break e;if(Q=Y-A,v.offset>Q){if((Q=v.offset-Q)>v.whave&&v.sane){E.msg="invalid distance too far back",v.mode=30;break}pe=Q>v.wnext?(Q-=v.wnext,v.wsize-Q):v.wnext-Q,Q>v.length&&(Q=v.length),X=v.window}else X=G,pe=W-v.offset,Q=v.length;for(A<Q&&(Q=A),A-=Q,v.length-=Q;G[W++]=X[pe++],--Q;);v.length===0&&(v.mode=21);break;case 26:if(A===0)break e;G[W++]=v.length,A--,v.mode=21;break;case 27:if(v.wrap){for(;R<32;){if(q===0)break e;q--,U|=D[Z++]<<R,R+=8}if(Y-=A,E.total_out+=Y,v.total+=Y,Y&&(E.adler=v.check=v.flags?a(v.check,G,Y,W-Y):s(v.check,G,Y,W-Y)),Y=A,(v.flags?U:x(U))!==v.check){E.msg="incorrect data check",v.mode=30;break}R=U=0}v.mode=28;case 28:if(v.wrap&&v.flags){for(;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(U!==(4294967295&v.total)){E.msg="incorrect length check",v.mode=30;break}R=U=0}v.mode=29;case 29:J=1;break e;case 30:J=-3;break e;case 31:return-4;default:return d}return E.next_out=W,E.avail_out=A,E.next_in=Z,E.avail_in=q,v.hold=U,v.bits=R,(v.wsize||Y!==E.avail_out&&v.mode<30&&(v.mode<27||L!==4))&&B(E,E.output,E.next_out,Y-E.avail_out)?(v.mode=31,-4):(N-=E.avail_in,Y-=E.avail_out,E.total_in+=N,E.total_out+=Y,v.total+=Y,v.wrap&&Y&&(E.adler=v.check=v.flags?a(v.check,G,Y,E.next_out-Y):s(v.check,G,Y,E.next_out-Y)),E.data_type=v.bits+(v.last?64:0)+(v.mode===12?128:0)+(v.mode===20||v.mode===15?256:0),(N==0&&Y===0||L===4)&&J===p&&(J=-5),J)},o.inflateEnd=function(E){if(!E||!E.state)return d;var L=E.state;return L.window&&(L.window=null),E.state=null,p},o.inflateGetHeader=function(E,L){var v;return E&&E.state?(2&(v=E.state).wrap)==0?d:((v.head=L).done=!1,p):d},o.inflateSetDictionary=function(E,L){var v,D=L.length;return E&&E.state?(v=E.state).wrap!==0&&v.mode!==11?d:v.mode===11&&s(1,L,D,0)!==v.check?-3:B(E,L,D,D)?(v.mode=31,-4):(v.havedict=1,p):d},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,o){var i=n("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,f,p,d,g,m,y,x){var b,k,S,C,T,j,P,O,M,B=x.bits,E=0,L=0,v=0,D=0,G=0,Z=0,W=0,q=0,A=0,U=0,R=null,N=0,Y=new i.Buf16(16),Q=new i.Buf16(16),pe=null,X=0;for(E=0;E<=15;E++)Y[E]=0;for(L=0;L<d;L++)Y[f[p+L]]++;for(G=B,D=15;1<=D&&Y[D]===0;D--);if(D<G&&(G=D),D===0)return g[m++]=20971520,g[m++]=20971520,x.bits=1,0;for(v=1;v<D&&Y[v]===0;v++);for(G<v&&(G=v),E=q=1;E<=15;E++)if(q<<=1,(q-=Y[E])<0)return-1;if(0<q&&(u===0||D!==1))return-1;for(Q[1]=0,E=1;E<15;E++)Q[E+1]=Q[E]+Y[E];for(L=0;L<d;L++)f[p+L]!==0&&(y[Q[f[p+L]]++]=L);if(j=u===0?(R=pe=y,19):u===1?(R=s,N-=257,pe=a,X-=257,256):(R=l,pe=c,-1),E=v,T=m,W=L=U=0,S=-1,C=(A=1<<(Z=G))-1,u===1&&852<A||u===2&&592<A)return 1;for(;;){for(P=E-W,M=y[L]<j?(O=0,y[L]):y[L]>j?(O=pe[X+y[L]],R[N+y[L]]):(O=96,0),b=1<<E-W,v=k=1<<Z;g[T+(U>>W)+(k-=b)]=P<<24|O<<16|M|0,k!==0;);for(b=1<<E-1;U&b;)b>>=1;if(b!==0?(U&=b-1,U+=b):U=0,L++,--Y[E]==0){if(E===D)break;E=f[p+y[L]]}if(G<E&&(U&C)!==S){for(W===0&&(W=G),T+=v,q=1<<(Z=E-W);Z+W<D&&!((q-=Y[Z+W])<=0);)Z++,q<<=1;if(A+=1<<Z,u===1&&852<A||u===2&&592<A)return 1;g[S=U&C]=G<<24|Z<<16|T-m|0}}return U!==0&&(g[T+U]=E-W<<24|64<<16|0),x.bits=G,0}},{"../utils/common":41}],51:[function(n,r,o){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,o){var i=n("../utils/common"),s=0,a=1;function l(z){for(var F=z.length;0<=--F;)z[F]=0}var c=0,u=29,f=256,p=f+1+u,d=30,g=19,m=2*p+1,y=15,x=16,b=7,k=256,S=16,C=17,T=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(p+2));l(B);var E=new Array(2*d);l(E);var L=new Array(512);l(L);var v=new Array(256);l(v);var D=new Array(u);l(D);var G,Z,W,q=new Array(d);function A(z,F,te,re,V){this.static_tree=z,this.extra_bits=F,this.extra_base=te,this.elems=re,this.max_length=V,this.has_stree=z&&z.length}function U(z,F){this.dyn_tree=z,this.max_code=0,this.stat_desc=F}function R(z){return z<256?L[z]:L[256+(z>>>7)]}function N(z,F){z.pending_buf[z.pending++]=255&F,z.pending_buf[z.pending++]=F>>>8&255}function Y(z,F,te){z.bi_valid>x-te?(z.bi_buf|=F<<z.bi_valid&65535,N(z,z.bi_buf),z.bi_buf=F>>x-z.bi_valid,z.bi_valid+=te-x):(z.bi_buf|=F<<z.bi_valid&65535,z.bi_valid+=te)}function Q(z,F,te){Y(z,te[2*F],te[2*F+1])}function pe(z,F){for(var te=0;te|=1&z,z>>>=1,te<<=1,0<--F;);return te>>>1}function X(z,F,te){var re,V,ie=new Array(y+1),ue=0;for(re=1;re<=y;re++)ie[re]=ue=ue+te[re-1]<<1;for(V=0;V<=F;V++){var se=z[2*V+1];se!==0&&(z[2*V]=pe(ie[se]++,se))}}function ae(z){var F;for(F=0;F<p;F++)z.dyn_ltree[2*F]=0;for(F=0;F<d;F++)z.dyn_dtree[2*F]=0;for(F=0;F<g;F++)z.bl_tree[2*F]=0;z.dyn_ltree[2*k]=1,z.opt_len=z.static_len=0,z.last_lit=z.matches=0}function de(z){8<z.bi_valid?N(z,z.bi_buf):0<z.bi_valid&&(z.pending_buf[z.pending++]=z.bi_buf),z.bi_buf=0,z.bi_valid=0}function ge(z,F,te,re){var V=2*F,ie=2*te;return z[V]<z[ie]||z[V]===z[ie]&&re[F]<=re[te]}function xe(z,F,te){for(var re=z.heap[te],V=te<<1;V<=z.heap_len&&(V<z.heap_len&&ge(F,z.heap[V+1],z.heap[V],z.depth)&&V++,!ge(F,re,z.heap[V],z.depth));)z.heap[te]=z.heap[V],te=V,V<<=1;z.heap[te]=re}function Ee(z,F,te){var re,V,ie,ue,se=0;if(z.last_lit!==0)for(;re=z.pending_buf[z.d_buf+2*se]<<8|z.pending_buf[z.d_buf+2*se+1],V=z.pending_buf[z.l_buf+se],se++,re===0?Q(z,V,F):(Q(z,(ie=v[V])+f+1,F),(ue=j[ie])!==0&&Y(z,V-=D[ie],ue),Q(z,ie=R(--re),te),(ue=P[ie])!==0&&Y(z,re-=q[ie],ue)),se<z.last_lit;);Q(z,k,F)}function Oe(z,F){var te,re,V,ie=F.dyn_tree,ue=F.stat_desc.static_tree,se=F.stat_desc.has_stree,$=F.stat_desc.elems,ne=-1;for(z.heap_len=0,z.heap_max=m,te=0;te<$;te++)ie[2*te]!==0?(z.heap[++z.heap_len]=ne=te,z.depth[te]=0):ie[2*te+1]=0;for(;z.heap_len<2;)ie[2*(V=z.heap[++z.heap_len]=ne<2?++ne:0)]=1,z.depth[V]=0,z.opt_len--,se&&(z.static_len-=ue[2*V+1]);for(F.max_code=ne,te=z.heap_len>>1;1<=te;te--)xe(z,ie,te);for(V=$;te=z.heap[1],z.heap[1]=z.heap[z.heap_len--],xe(z,ie,1),re=z.heap[1],z.heap[--z.heap_max]=te,z.heap[--z.heap_max]=re,ie[2*V]=ie[2*te]+ie[2*re],z.depth[V]=(z.depth[te]>=z.depth[re]?z.depth[te]:z.depth[re])+1,ie[2*te+1]=ie[2*re+1]=V,z.heap[1]=V++,xe(z,ie,1),2<=z.heap_len;);z.heap[--z.heap_max]=z.heap[1],(function(le,ve){var Ae,Ze,it,je,_t,Ot,$e=ve.dyn_tree,Rt=ve.max_code,gt=ve.stat_desc.static_tree,vh=ve.stat_desc.has_stree,bh=ve.stat_desc.extra_bits,$s=ve.stat_desc.extra_base,Wn=ve.stat_desc.max_length,vr=0;for(je=0;je<=y;je++)le.bl_count[je]=0;for($e[2*le.heap[le.heap_max]+1]=0,Ae=le.heap_max+1;Ae<m;Ae++)Wn<(je=$e[2*$e[2*(Ze=le.heap[Ae])+1]+1]+1)&&(je=Wn,vr++),$e[2*Ze+1]=je,Rt<Ze||(le.bl_count[je]++,_t=0,$s<=Ze&&(_t=bh[Ze-$s]),Ot=$e[2*Ze],le.opt_len+=Ot*(je+_t),vh&&(le.static_len+=Ot*(gt[2*Ze+1]+_t)));if(vr!==0){do{for(je=Wn-1;le.bl_count[je]===0;)je--;le.bl_count[je]--,le.bl_count[je+1]+=2,le.bl_count[Wn]--,vr-=2}while(0<vr);for(je=Wn;je!==0;je--)for(Ze=le.bl_count[je];Ze!==0;)Rt<(it=le.heap[--Ae])||($e[2*it+1]!==je&&(le.opt_len+=(je-$e[2*it+1])*$e[2*it],$e[2*it+1]=je),Ze--)}})(z,F),X(ie,ne,z.bl_count)}function w(z,F,te){var re,V,ie=-1,ue=F[1],se=0,$=7,ne=4;for(ue===0&&($=138,ne=3),F[2*(te+1)+1]=65535,re=0;re<=te;re++)V=ue,ue=F[2*(re+1)+1],++se<$&&V===ue||(se<ne?z.bl_tree[2*V]+=se:V!==0?(V!==ie&&z.bl_tree[2*V]++,z.bl_tree[2*S]++):se<=10?z.bl_tree[2*C]++:z.bl_tree[2*T]++,ie=V,ne=(se=0)===ue?($=138,3):V===ue?($=6,3):($=7,4))}function J(z,F,te){var re,V,ie=-1,ue=F[1],se=0,$=7,ne=4;for(ue===0&&($=138,ne=3),re=0;re<=te;re++)if(V=ue,ue=F[2*(re+1)+1],!(++se<$&&V===ue)){if(se<ne)for(;Q(z,V,z.bl_tree),--se!=0;);else V!==0?(V!==ie&&(Q(z,V,z.bl_tree),se--),Q(z,S,z.bl_tree),Y(z,se-3,2)):se<=10?(Q(z,C,z.bl_tree),Y(z,se-3,3)):(Q(z,T,z.bl_tree),Y(z,se-11,7));ie=V,ne=(se=0)===ue?($=138,3):V===ue?($=6,3):($=7,4)}}l(q);var H=!1;function I(z,F,te,re){Y(z,(c<<1)+(re?1:0),3),(function(V,ie,ue,se){de(V),N(V,ue),N(V,~ue),i.arraySet(V.pending_buf,V.window,ie,ue,V.pending),V.pending+=ue})(z,F,te)}o._tr_init=function(z){H||((function(){var F,te,re,V,ie,ue=new Array(y+1);for(V=re=0;V<u-1;V++)for(D[V]=re,F=0;F<1<<j[V];F++)v[re++]=V;for(v[re-1]=V,V=ie=0;V<16;V++)for(q[V]=ie,F=0;F<1<<P[V];F++)L[ie++]=V;for(ie>>=7;V<d;V++)for(q[V]=ie<<7,F=0;F<1<<P[V]-7;F++)L[256+ie++]=V;for(te=0;te<=y;te++)ue[te]=0;for(F=0;F<=143;)B[2*F+1]=8,F++,ue[8]++;for(;F<=255;)B[2*F+1]=9,F++,ue[9]++;for(;F<=279;)B[2*F+1]=7,F++,ue[7]++;for(;F<=287;)B[2*F+1]=8,F++,ue[8]++;for(X(B,p+1,ue),F=0;F<d;F++)E[2*F+1]=5,E[2*F]=pe(F,5);G=new A(B,j,f+1,p,y),Z=new A(E,P,0,d,y),W=new A(new Array(0),O,0,g,b)})(),H=!0),z.l_desc=new U(z.dyn_ltree,G),z.d_desc=new U(z.dyn_dtree,Z),z.bl_desc=new U(z.bl_tree,W),z.bi_buf=0,z.bi_valid=0,ae(z)},o._tr_stored_block=I,o._tr_flush_block=function(z,F,te,re){var V,ie,ue=0;0<z.level?(z.strm.data_type===2&&(z.strm.data_type=(function(se){var $,ne=4093624447;for($=0;$<=31;$++,ne>>>=1)if(1&ne&&se.dyn_ltree[2*$]!==0)return s;if(se.dyn_ltree[18]!==0||se.dyn_ltree[20]!==0||se.dyn_ltree[26]!==0)return a;for($=32;$<f;$++)if(se.dyn_ltree[2*$]!==0)return a;return s})(z)),Oe(z,z.l_desc),Oe(z,z.d_desc),ue=(function(se){var $;for(w(se,se.dyn_ltree,se.l_desc.max_code),w(se,se.dyn_dtree,se.d_desc.max_code),Oe(se,se.bl_desc),$=g-1;3<=$&&se.bl_tree[2*M[$]+1]===0;$--);return se.opt_len+=3*($+1)+5+5+4,$})(z),V=z.opt_len+3+7>>>3,(ie=z.static_len+3+7>>>3)<=V&&(V=ie)):V=ie=te+5,te+4<=V&&F!==-1?I(z,F,te,re):z.strategy===4||ie===V?(Y(z,2+(re?1:0),3),Ee(z,B,E)):(Y(z,4+(re?1:0),3),(function(se,$,ne,le){var ve;for(Y(se,$-257,5),Y(se,ne-1,5),Y(se,le-4,4),ve=0;ve<le;ve++)Y(se,se.bl_tree[2*M[ve]+1],3);J(se,se.dyn_ltree,$-1),J(se,se.dyn_dtree,ne-1)})(z,z.l_desc.max_code+1,z.d_desc.max_code+1,ue+1),Ee(z,z.dyn_ltree,z.dyn_dtree)),ae(z),re&&de(z)},o._tr_tally=function(z,F,te){return z.pending_buf[z.d_buf+2*z.last_lit]=F>>>8&255,z.pending_buf[z.d_buf+2*z.last_lit+1]=255&F,z.pending_buf[z.l_buf+z.last_lit]=255&te,z.last_lit++,F===0?z.dyn_ltree[2*te]++:(z.matches++,F--,z.dyn_ltree[2*(v[te]+f+1)]++,z.dyn_dtree[2*R(F)]++),z.last_lit===z.lit_bufsize-1},o._tr_align=function(z){Y(z,2,3),Q(z,k,B),(function(F){F.bi_valid===16?(N(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)})(z)}},{"../utils/common":41}],53:[function(n,r,o){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,o){(function(i){(function(s,a){if(!s.setImmediate){var l,c,u,f,p=1,d={},g=!1,m=s.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(s);y=y&&y.setTimeout?y:s,l={}.toString.call(s.process)==="[object process]"?function(S){process.nextTick(function(){b(S)})}:(function(){if(s.postMessage&&!s.importScripts){var S=!0,C=s.onmessage;return s.onmessage=function(){S=!1},s.postMessage("","*"),s.onmessage=C,S}})()?(f="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",k,!1):s.attachEvent("onmessage",k),function(S){s.postMessage(f+S,"*")}):s.MessageChannel?((u=new MessageChannel).port1.onmessage=function(S){b(S.data)},function(S){u.port2.postMessage(S)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(S){var C=m.createElement("script");C.onreadystatechange=function(){b(S),C.onreadystatechange=null,c.removeChild(C),C=null},c.appendChild(C)}):function(S){setTimeout(b,0,S)},y.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var C=new Array(arguments.length-1),T=0;T<C.length;T++)C[T]=arguments[T+1];var j={callback:S,args:C};return d[p]=j,l(p),p++},y.clearImmediate=x}function x(S){delete d[S]}function b(S){if(g)setTimeout(b,0,S);else{var C=d[S];if(C){g=!0;try{(function(T){var j=T.callback,P=T.args;switch(P.length){case 0:j();break;case 1:j(P[0]);break;case 2:j(P[0],P[1]);break;case 3:j(P[0],P[1],P[2]);break;default:j.apply(a,P)}})(C)}finally{x(S),g=!1}}}}function k(S){S.source===s&&typeof S.data=="string"&&S.data.indexOf(f)===0&&b(+S.data.slice(f.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ro)),Ro.exports}var zv=Av();const jv=Li(zv);async function Iv(e){try{const t=await fetch(`/api/logs/${e}/chunks`);if(!t.ok)return null;const n=await t.json();return JSON.stringify(n,null,2)}catch{return null}}async function Pv(e){const t=new jv;for(const s of e)s.rawRequestBody!==null&&t.file(`#${s.id}.Request.json`,s.rawRequestBody),s.responseText!==null&&t.file(`#${s.id}.Response.json`,s.responseText);const n=e.filter(s=>s.streaming);await Promise.allSettled(n.map(async s=>{const a=await Iv(s.id);a!==null&&t.file(`#${s.id}.SSE.Response.json`,a)}));const r=await t.generateAsync({type:"blob"}),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=`llm-inspector-export-${new Date().toISOString().slice(0,10)}.zip`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}const Ov="1.9.8",Rv={version:Ov};function Hc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hc(e))&&(r&&(r+=" "),r+=t);return r}const Dv=(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},Mv=(e,t)=>({classGroupId:e,validator:t}),Gc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Hr="-",ba=[],Lv="arbitrary..",Fv=e=>{const t=Bv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return $v(s);const a=s.split(Hr),l=a[0]===""&&a.length>1?1:0;return Kc(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],c=n[s];return l?c?Dv(c,l):l:c||ba}return n[s]||ba}}},Kc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=Kc(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Hr):e.slice(t).join(Hr),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(a))return u.classGroupId}},$v=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?Lv+r:void 0})(),Bv=e=>{const{theme:t,classGroups:n}=e;return Uv(n,t)},Uv=(e,t)=>{const n=Gc();for(const r in e){const o=e[r];Yi(o,n,r,t)}return n},Yi=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];Zv(s,t,n,r)}},Zv=(e,t,n,r)=>{if(typeof e=="string"){Vv(e,t,n);return}if(typeof e=="function"){Wv(e,t,n,r);return}Hv(e,t,n,r)},Vv=(e,t,n)=>{const r=e===""?t:Yc(t,e);r.classGroupId=n},Wv=(e,t,n,r)=>{if(qv(e)){Yi(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Mv(n,e))},Hv=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,l]=o[s];Yi(l,Yc(t,a),n,r)}},Yc=(e,t)=>{let n=e;const r=t.split(Hr),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Gc(),n.nextPart.set(s,a)),n=a}return n},qv=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},hi="!",wa=":",Kv=[],_a=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Yv=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const y=o[m];if(s===0&&a===0){if(y===wa){i.push(o.slice(l,m)),l=m+1;continue}if(y==="/"){c=m;continue}}y==="["?s++:y==="]"?s--:y==="("?a++:y===")"&&a--}const f=i.length===0?o:o.slice(l);let p=f,d=!1;f.endsWith(hi)?(p=f.slice(0,-1),d=!0):f.startsWith(hi)&&(p=f.slice(1),d=!0);const g=c&&c>l?c-l:void 0;return _a(i,d,p,g)};if(t){const o=t+wa,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):_a(Kv,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Jv=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",l=t.has(s);a||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},Xv=e=>({cache:Gv(e.cacheSize),parseClassName:Yv(e),sortModifiers:Jv(e),...Fv(e)}),Qv=/\s+/,eb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Qv);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:p,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:m}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let y=!!m,x=r(y?g.substring(0,m):g);if(!x){if(!y){l=u+(l.length>0?" "+l:l);continue}if(x=r(g),!x){l=u+(l.length>0?" "+l:l);continue}y=!1}const b=p.length===0?"":p.length===1?p[0]:i(p).join(":"),k=d?b+hi:b,S=k+x;if(s.indexOf(S)>-1)continue;s.push(S);const C=o(x,y);for(let T=0;T<C.length;++T){const j=C[T];s.push(k+j)}l=u+(l.length>0?" "+l:l)}return l},tb=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Jc(n))&&(o&&(o+=" "),o+=r);return o},Jc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Jc(e[r]))&&(n&&(n+=" "),n+=t);return n},nb=(e,...t)=>{let n,r,o,i;const s=l=>{const c=t.reduce((u,f)=>f(u),e());return n=Xv(c),r=n.cache.get,o=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=eb(l,n);return o(l,u),u};return i=s,(...l)=>i(tb(...l))},rb=[],He=e=>{const t=n=>n[e]||rb;return t.isThemeGetter=!0,t},Xc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ob=/^\d+\/\d+$/,ib=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sb=/\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$/,ab=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>ob.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),Ut=e=>!!e&&Number.isInteger(Number(e)),Do=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),Dt=e=>ib.test(e),ub=()=>!0,db=e=>sb.test(e)&&!ab.test(e),eu=()=>!1,fb=e=>lb.test(e),hb=e=>cb.test(e),pb=e=>!fe(e)&&!he(e),mb=e=>Ln(e,ru,eu),fe=e=>Xc.test(e),en=e=>Ln(e,ou,db),Mo=e=>Ln(e,bb,Ce),ka=e=>Ln(e,tu,eu),gb=e=>Ln(e,nu,hb),Cr=e=>Ln(e,iu,fb),he=e=>Qc.test(e),qn=e=>Fn(e,ou),xb=e=>Fn(e,wb),Sa=e=>Fn(e,tu),yb=e=>Fn(e,ru),vb=e=>Fn(e,nu),Er=e=>Fn(e,iu,!0),Ln=(e,t,n)=>{const r=Xc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fn=(e,t,n=!1)=>{const r=Qc.exec(e);return r?r[1]?t(r[1]):n:!1},tu=e=>e==="position"||e==="percentage",nu=e=>e==="image"||e==="url",ru=e=>e==="length"||e==="size"||e==="bg-size",ou=e=>e==="length",bb=e=>e==="number",wb=e=>e==="family-name",iu=e=>e==="shadow",_b=()=>{const e=He("color"),t=He("font"),n=He("text"),r=He("font-weight"),o=He("tracking"),i=He("leading"),s=He("breakpoint"),a=He("container"),l=He("spacing"),c=He("radius"),u=He("shadow"),f=He("inset-shadow"),p=He("text-shadow"),d=He("drop-shadow"),g=He("blur"),m=He("perspective"),y=He("aspect"),x=He("ease"),b=He("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),he,fe],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],P=()=>[he,fe,l],O=()=>[hn,"full","auto",...P()],M=()=>[Ut,"none","subgrid",he,fe],B=()=>["auto",{span:["full",Ut,he,fe]},Ut,he,fe],E=()=>[Ut,"auto",he,fe],L=()=>["auto","min","max","fr",he,fe],v=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...P()],Z=()=>[hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],W=()=>[e,he,fe],q=()=>[...S(),Sa,ka,{position:[he,fe]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",yb,mb,{size:[he,fe]}],R=()=>[Do,qn,en],N=()=>["","none","full",c,he,fe],Y=()=>["",Ce,qn,en],Q=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Ce,Do,Sa,ka],ae=()=>["","none",g,he,fe],de=()=>["none",Ce,he,fe],ge=()=>["none",Ce,he,fe],xe=()=>[Ce,he,fe],Ee=()=>[hn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dt],breakpoint:[Dt],color:[ub],container:[Dt],"drop-shadow":[Dt],ease:["in","out","in-out"],font:[pb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dt],shadow:[Dt],spacing:["px",Ce],text:[Dt],"text-shadow":[Dt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",hn,fe,he,y]}],container:["container"],columns:[{columns:[Ce,fe,he,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Ut,"auto",he,fe]}],basis:[{basis:[hn,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,hn,"auto","initial","none",fe]}],grow:[{grow:["",Ce,he,fe]}],shrink:[{shrink:["",Ce,he,fe]}],order:[{order:[Ut,"first","last","none",he,fe]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...v(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...v()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":v()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,qn,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,he,Mo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Do,fe]}],"font-family":[{font:[xb,fe,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:[o,he,fe]}],"line-clamp":[{"line-clamp":[Ce,"none",he,Mo]}],leading:[{leading:[i,...P()]}],"list-image":[{"list-image":["none",he,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",he,en]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Ce,"auto",he,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,fe]}],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",he,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ut,he,fe],radial:["",he,fe],conic:[Ut,he,fe]},vb,gb]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,he,fe]}],"outline-w":[{outline:["",Ce,qn,en]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",u,Er,Cr]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",f,Er,Cr]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Ce,en]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",p,Er,Cr]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Ce,he,fe]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[he,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,fe]}],filter:[{filter:["","none",he,fe]}],blur:[{blur:ae()}],brightness:[{brightness:[Ce,he,fe]}],contrast:[{contrast:[Ce,he,fe]}],"drop-shadow":[{"drop-shadow":["","none",d,Er,Cr]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Ce,he,fe]}],"hue-rotate":[{"hue-rotate":[Ce,he,fe]}],invert:[{invert:["",Ce,he,fe]}],saturate:[{saturate:[Ce,he,fe]}],sepia:[{sepia:["",Ce,he,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",he,fe]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,he,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,he,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,he,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,he,fe]}],"backdrop-invert":[{"backdrop-invert":["",Ce,he,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,he,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,he,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,he,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",he,fe]}],ease:[{ease:["linear","initial",x,he,fe]}],delay:[{delay:[Ce,he,fe]}],animate:[{animate:["none",b,he,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,he,fe]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[he,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",he,fe]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",he,fe]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Ce,qn,en,Mo]}],stroke:[{stroke:["none",...W()]}],"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"]}},kb=nb(_b);function ze(...e){return kb(qc(e))}function Ge(e){return e>=1048576?(e/1048576).toFixed(1).replace(/\.0$/,"")+"M":e>=1024?(e/1024).toFixed(1).replace(/\.0$/,"")+"K":e.toString()}function su(e){return e===null?"pending":e>=200&&e<300?"success":e>=400&&e<500?"client_error":e>=500?"server_error":"pending"}function Ca(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Sb({conversationId:e,startTime:t,endTime:n,totalCalls:r,totalInputTokens:o,totalOutputTokens:i,expanded:s,onToggle:a}){return h.jsxs("div",{role:"button",tabIndex:0,className:ze("flex items-center gap-3 px-3 py-2 cursor-pointer transition-colors","hover:bg-muted/50","select-none","border border-border rounded-lg mb-2 bg-muted/30"),onClick:a,onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),a())},children:[s?h.jsx(At,{className:"size-4 text-muted-foreground shrink-0"}):h.jsx(Wt,{className:"size-4 text-muted-foreground shrink-0"}),h.jsx("span",{className:"text-purple-400/90 font-mono text-xs font-semibold shrink-0",title:e,children:e.length>24?e.slice(0,12)+"…"+e.slice(-12):e}),h.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground text-xs shrink-0",children:[h.jsx(Ki,{className:"size-3"}),h.jsxs("span",{className:"font-mono tabular-nums",children:[Ca(t)," - ",Ca(n)]})]}),h.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground text-xs shrink-0",children:[h.jsx(Zc,{className:"size-3"}),h.jsxs("span",{className:"font-mono tabular-nums",children:[r," call",r!==1?"s":""]})]}),h.jsxs("span",{className:"flex items-center gap-1 text-xs shrink-0",children:[h.jsx(hr,{className:"size-3 text-muted-foreground"}),h.jsxs("span",{className:"font-mono tabular-nums",children:[h.jsx("span",{className:"text-blue-400",children:Ge(o)})," / ",h.jsx("span",{className:"text-amber-400",children:Ge(i)})]})]}),h.jsx("span",{className:"flex-1 min-w-0"})]})}function Cb(e){if(e.sessionId!==null&&e.sessionId!=="")return e.sessionId;const t=e.clientPid!==null?`PID:${e.clientPid}`:"unknown",n=e.clientProjectFolder!==null?e.clientProjectFolder:"no-folder";return`${t}|${n}`}function Eb(e){const t=new Map;for(const r of e){const o=Cb(r),i=t.get(o);i!==void 0?i.push(r):t.set(o,[r])}const n=[];for(const[r,o]of t){const i=[...o].sort((s,a)=>s.timestamp.localeCompare(a.timestamp));n.push({id:r,conversationId:r,logs:i})}return n.sort((r,o)=>(r.logs[0]?.timestamp??"").localeCompare(o.logs[0]?.timestamp??"")),n}const Ea=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ta=qc,Ji=(e,t)=>n=>{var r;if(t?.variants==null)return Ta(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const u=n?.[c],f=i?.[c];if(u===null)return null;const p=Ea(u)||Ea(f);return o[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:p,...d}=u;return Object.entries(d).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...i,...a}[m]):{...i,...a}[m]===y})?[...c,f,p]:c},[]);return Ta(e,s,l,n?.class,n?.className)},Tb=Ji("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ft({className:e,variant:t,size:n,...r}){return h.jsx("button",{"data-slot":"button",className:ze(Tb({variant:t,size:n,className:e})),...r})}function Nb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ab=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jb={};function Na(e,t){return(jb.jsx?zb:Ab).test(e)}const Ib=/[ \t\n\f\r]/g;function Pb(e){return typeof e=="object"?e.type==="text"?Aa(e.value):!1:Aa(e)}function Aa(e){return e.replace(Ib,"")===""}class pr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}pr.prototype.normal={};pr.prototype.property={};pr.prototype.space=void 0;function au(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new pr(n,r,t)}function pi(e){return e.toLowerCase()}class ot{constructor(t,n){this.attribute=n,this.property=t}}ot.prototype.attribute="";ot.prototype.booleanish=!1;ot.prototype.boolean=!1;ot.prototype.commaOrSpaceSeparated=!1;ot.prototype.commaSeparated=!1;ot.prototype.defined=!1;ot.prototype.mustUseProperty=!1;ot.prototype.number=!1;ot.prototype.overloadedBoolean=!1;ot.prototype.property="";ot.prototype.spaceSeparated=!1;ot.prototype.space=void 0;let Ob=0;const Se=un(),We=un(),mi=un(),oe=un(),Re=un(),Sn=un(),st=un();function un(){return 2**++Ob}const gi=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:We,commaOrSpaceSeparated:st,commaSeparated:Sn,number:oe,overloadedBoolean:mi,spaceSeparated:Re},Symbol.toStringTag,{value:"Module"})),Lo=Object.keys(gi);class Xi extends ot{constructor(t,n,r,o){let i=-1;if(super(t,n),za(this,"space",o),typeof r=="number")for(;++i<Lo.length;){const s=Lo[i];za(this,Lo[i],(r&gi[s])===gi[s])}}}Xi.prototype.defined=!0;function za(e,t,n){n&&(e[t]=n)}function $n(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Xi(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[pi(r)]=r,n[pi(i.attribute)]=r}return new pr(t,n,e.space)}const lu=$n({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Re,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:oe,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Re,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:We,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cu(e,t){return t in e?e[t]:t}function uu(e,t){return cu(e,t.toLowerCase())}const Rb=$n({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sn,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Re,autoFocus:Se,autoPlay:Se,blocking:Re,capture:null,charSet:null,checked:Se,cite:null,className:Re,cols:oe,colSpan:null,content:null,contentEditable:We,controls:Se,controlsList:Re,coords:oe|Sn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:mi,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Re,height:oe,hidden:mi,high:oe,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Re,itemRef:Re,itemScope:Se,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:oe,pattern:null,ping:Re,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Re,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:Re,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:We,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:uu}),Db=$n({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:st,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:Re,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:Sn,g2:Sn,glyphName:Sn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cu}),du=$n({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()}}),fu=$n({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:uu}),hu=$n({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Mb={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"},Lb=/[A-Z]/g,ja=/-[a-z]/g,Fb=/^data[-\w.:]+$/i;function $b(e,t){const n=pi(t);let r=t,o=ot;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fb.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ja,Ub);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ja.test(i)){let s=i.replace(Lb,Bb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Xi}return new o(r,t)}function Bb(e){return"-"+e.toLowerCase()}function Ub(e){return e.charAt(1).toUpperCase()}const Zb=au([lu,Rb,du,fu,hu],"html"),Qi=au([lu,Db,du,fu,hu],"svg");function Vb(e){return e.join(" ").trim()}var pn={},Fo,Ia;function Wb(){if(Ia)return Fo;Ia=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
65
+ \0`,Y+=i(U,2),Y+=T.magic,Y+=i(k,2),Y+=i(S,2),Y+=i(A.crc32,4),Y+=i(A.compressedSize,4),Y+=i(A.uncompressedSize,4),Y+=i(P.length,2),Y+=i(D.length,2),{fileRecord:f.LOCAL_FILE_HEADER+Y+P+D,dirRecord:f.CENTRAL_FILE_HEADER+i(N,2)+Y+i(B.length,2)+"\0\0\0\0"+i(R,4)+i(y,4)+P+D+B}}var a=n("../utils"),l=n("../stream/GenericWorker"),c=n("../utf8"),u=n("../crc32"),f=n("../signature");function p(d,g,m,y){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=g,this.zipPlatform=m,this.encodeFileName=y,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(p,l),p.prototype.push=function(d){var g=d.meta.percent||0,m=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,l.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:m?(g+100*(m-y-1))/m:100}}))},p.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var g=this.streamFiles&&!d.file.dir;if(g){var m=s(d,g,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:m.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(d){this.accumulate=!1;var g=this.streamFiles&&!d.file.dir,m=s(d,g,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(m.dirRecord),g)this.push({data:(function(y){return f.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)})(d),meta:{percent:100}});else for(this.push({data:m.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var d=this.bytesWritten,g=0;g<this.dirRecords.length;g++)this.push({data:this.dirRecords[g],meta:{percent:100}});var m=this.bytesWritten-d,y=(function(x,b,k,S,C){var T=a.transformTo("string",C(S));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(x,2)+i(x,2)+i(b,4)+i(k,4)+i(T.length,2)+T})(this.dirRecords.length,m,d,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},p.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},p.prototype.registerPrevious=function(d){this._sources.push(d);var g=this;return d.on("data",function(m){g.processChunk(m)}),d.on("end",function(){g.closedSource(g.previous.streamInfo),g._sources.length?g.prepareNextSource():g.end()}),d.on("error",function(m){g.error(m)}),this},p.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},p.prototype.error=function(d){var g=this._sources;if(!l.prototype.error.call(this,d))return!1;for(var m=0;m<g.length;m++)try{g[m].error(d)}catch{}return!0},p.prototype.lock=function(){l.prototype.lock.call(this);for(var d=this._sources,g=0;g<d.length;g++)d[g].lock()},r.exports=p},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,o){var i=n("../compressions"),s=n("./ZipFileWorker");o.generateWorker=function(a,l,c){var u=new s(l.streamFiles,c,l.platform,l.encodeFileName),f=0;try{a.forEach(function(p,d){f++;var g=(function(b,k){var S=b||k,C=i[S];if(!C)throw new Error(S+" is not a valid compression method !");return C})(d.options.compression,l.compression),m=d.options.compressionOptions||l.compressionOptions||{},y=d.dir,x=d.date;d._compressWorker(g,m).withStreamInfo("file",{name:p,dir:y,date:x,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(u)}),u.entriesCount=f}catch(p){u.error(p)}return u}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,o){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new i;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(s,a){return new i().loadAsync(s,a)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,o){var i=n("./utils"),s=n("./external"),a=n("./utf8"),l=n("./zipEntries"),c=n("./stream/Crc32Probe"),u=n("./nodejsUtils");function f(p){return new s.Promise(function(d,g){var m=p.decompressed.getContentWorker().pipe(new c);m.on("error",function(y){g(y)}).on("end",function(){m.streamInfo.crc32!==p.decompressed.crc32?g(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}r.exports=function(p,d){var g=this;return d=i.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),u.isNode&&u.isStream(p)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",p,!0,d.optimizedBinaryString,d.base64).then(function(m){var y=new l(d);return y.load(m),y}).then(function(m){var y=[s.Promise.resolve(m)],x=m.files;if(d.checkCRC32)for(var b=0;b<x.length;b++)y.push(f(x[b]));return s.Promise.all(y)}).then(function(m){for(var y=m.shift(),x=y.files,b=0;b<x.length;b++){var k=x[b],S=k.fileNameStr,C=i.resolve(k.fileNameStr);g.file(C,k.decompressed,{binary:!0,optimizedBinaryString:!0,date:k.date,dir:k.dir,comment:k.fileCommentStr.length?k.fileCommentStr:null,unixPermissions:k.unixPermissions,dosPermissions:k.dosPermissions,createFolders:d.createFolders}),k.dir||(g.file(C).unsafeOriginalName=S)}return y.zipComment.length&&(g.comment=y.zipComment),g})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,o){var i=n("../utils"),s=n("../stream/GenericWorker");function a(l,c){s.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(c)}i.inherits(a,s),a.prototype._bindStream=function(l){var c=this;(this._stream=l).pause(),l.on("data",function(u){c.push({data:u,meta:{percent:0}})}).on("error",function(u){c.isPaused?this.generatedError=u:c.error(u)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,o){var i=n("readable-stream").Readable;function s(a,l,c){i.call(this,l),this._helper=a;var u=this;a.on("data",function(f,p){u.push(f)||u._helper.pause(),c&&c(p)}).on("error",function(f){u.emit("error",f)}).on("end",function(){u.push(null)})}n("../utils").inherits(s,i),s.prototype._read=function(){this._helper.resume()},r.exports=s},{"../utils":32,"readable-stream":16}],14:[function(n,r,o){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,s);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,s)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var s=new Buffer(i);return s.fill(0),s},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,o){function i(C,T,j){var P,O=a.getTypeOf(T),M=a.extend(j||{},u);M.date=M.date||new Date,M.compression!==null&&(M.compression=M.compression.toUpperCase()),typeof M.unixPermissions=="string"&&(M.unixPermissions=parseInt(M.unixPermissions,8)),M.unixPermissions&&16384&M.unixPermissions&&(M.dir=!0),M.dosPermissions&&16&M.dosPermissions&&(M.dir=!0),M.dir&&(C=x(C)),M.createFolders&&(P=y(C))&&b.call(this,P,!0);var B=O==="string"&&M.binary===!1&&M.base64===!1;j&&j.binary!==void 0||(M.binary=!B),(T instanceof f&&T.uncompressedSize===0||M.dir||!T||T.length===0)&&(M.base64=!1,M.binary=!0,T="",M.compression="STORE",O="string");var E=null;E=T instanceof f||T instanceof l?T:g.isNode&&g.isStream(T)?new m(C,T):a.prepareContent(C,T,M.binary,M.optimizedBinaryString,M.base64);var L=new p(C,E,M);this.files[C]=L}var s=n("./utf8"),a=n("./utils"),l=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),u=n("./defaults"),f=n("./compressedObject"),p=n("./zipObject"),d=n("./generate"),g=n("./nodejsUtils"),m=n("./nodejs/NodejsStreamInputAdapter"),y=function(C){C.slice(-1)==="/"&&(C=C.substring(0,C.length-1));var T=C.lastIndexOf("/");return 0<T?C.substring(0,T):""},x=function(C){return C.slice(-1)!=="/"&&(C+="/"),C},b=function(C,T){return T=T!==void 0?T:u.createFolders,C=x(C),this.files[C]||i.call(this,C,null,{dir:!0,createFolders:T}),this.files[C]};function k(C){return Object.prototype.toString.call(C)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(C){var T,j,P;for(T in this.files)P=this.files[T],(j=T.slice(this.root.length,T.length))&&T.slice(0,this.root.length)===this.root&&C(j,P)},filter:function(C){var T=[];return this.forEach(function(j,P){C(j,P)&&T.push(P)}),T},file:function(C,T,j){if(arguments.length!==1)return C=this.root+C,i.call(this,C,T,j),this;if(k(C)){var P=C;return this.filter(function(M,B){return!B.dir&&P.test(M)})}var O=this.files[this.root+C];return O&&!O.dir?O:null},folder:function(C){if(!C)return this;if(k(C))return this.filter(function(O,M){return M.dir&&C.test(O)});var T=this.root+C,j=b.call(this,T),P=this.clone();return P.root=j.name,P},remove:function(C){C=this.root+C;var T=this.files[C];if(T||(C.slice(-1)!=="/"&&(C+="/"),T=this.files[C]),T&&!T.dir)delete this.files[C];else for(var j=this.filter(function(O,M){return M.name.slice(0,C.length)===C}),P=0;P<j.length;P++)delete this.files[j[P].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(C){var T,j={};try{if((j=a.extend(C||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=j.type.toLowerCase(),j.compression=j.compression.toUpperCase(),j.type==="binarystring"&&(j.type="string"),!j.type)throw new Error("No output type specified.");a.checkSupport(j.type),j.platform!=="darwin"&&j.platform!=="freebsd"&&j.platform!=="linux"&&j.platform!=="sunos"||(j.platform="UNIX"),j.platform==="win32"&&(j.platform="DOS");var P=j.comment||this.comment||"";T=d.generateWorker(this,j,P)}catch(O){(T=new l("error")).error(O)}return new c(T,j.type||"string",j.mimeType)},generateAsync:function(C,T){return this.generateInternalStream(C).accumulate(T)},generateNodeStream:function(C,T){return(C=C||{}).type||(C.type="nodebuffer"),this.generateInternalStream(C).toNodejsStream(T)}};r.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,o){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,o){var i=n("./DataReader");function s(a){i.call(this,a);for(var l=0;l<this.data.length;l++)a[l]=255&a[l]}n("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var l=a.charCodeAt(0),c=a.charCodeAt(1),u=a.charCodeAt(2),f=a.charCodeAt(3),p=this.length-4;0<=p;--p)if(this.data[p]===l&&this.data[p+1]===c&&this.data[p+2]===u&&this.data[p+3]===f)return p-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var l=a.charCodeAt(0),c=a.charCodeAt(1),u=a.charCodeAt(2),f=a.charCodeAt(3),p=this.readData(4);return l===p[0]&&c===p[1]&&u===p[2]&&f===p[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./DataReader":18}],18:[function(n,r,o){var i=n("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var l,c=0;for(this.checkOffset(a),l=this.index+a-1;l>=this.index;l--)c=(c<<8)+this.byteAt(l);return this.index+=a,c},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=s},{"../utils":32}],19:[function(n,r,o){var i=n("./Uint8ArrayReader");function s(a){i.call(this,a)}n("../utils").inherits(s,i),s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,o){var i=n("./DataReader");function s(a){i.call(this,a)}n("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var l=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./DataReader":18}],21:[function(n,r,o){var i=n("./ArrayReader");function s(a){i.call(this,a)}n("../utils").inherits(s,i),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,l},r.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,o){var i=n("../utils"),s=n("../support"),a=n("./ArrayReader"),l=n("./StringReader"),c=n("./NodeBufferReader"),u=n("./Uint8ArrayReader");r.exports=function(f){var p=i.getTypeOf(f);return i.checkSupport(p),p!=="string"||s.uint8array?p==="nodebuffer"?new c(f):s.uint8array?new u(i.transformTo("uint8array",f)):new a(i.transformTo("array",f)):new l(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,o){var i=n("./GenericWorker"),s=n("../utils");function a(l){i.call(this,"ConvertWorker to "+l),this.destType=l}s.inherits(a,i),a.prototype.processChunk=function(l){this.push({data:s.transformTo(this.destType,l.data),meta:l.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,o){var i=n("./GenericWorker"),s=n("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,i),a.prototype.processChunk=function(l){this.streamInfo.crc32=s(l.data,this.streamInfo.crc32||0),this.push(l)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,o){var i=n("../utils"),s=n("./GenericWorker");function a(l){s.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}i.inherits(a,s),a.prototype.processChunk=function(l){if(l){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+l.data.length}s.prototype.processChunk.call(this,l)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,o){var i=n("../utils"),s=n("./GenericWorker");function a(l){s.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(u){c.dataIsReady=!0,c.data=u,c.max=u&&u.length||0,c.type=i.getTypeOf(u),c.isPaused||c._tickAndRepeat()},function(u){c.error(u)})}i.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var l=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,c);break;case"uint8array":l=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":l=this.data.slice(this.index,c)}return this.index=c,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,o){function i(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var l=0;l<this._listeners[s].length;l++)this._listeners[s][l].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(l){a.processChunk(l)}),s.on("end",function(){a.end()}),s.on("error",function(l){a.error(l)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},r.exports=i},{}],29:[function(n,r,o){var i=n("../utils"),s=n("./ConvertWorker"),a=n("./GenericWorker"),l=n("../base64"),c=n("../support"),u=n("../external"),f=null;if(c.nodestream)try{f=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function p(g,m){return new u.Promise(function(y,x){var b=[],k=g._internalType,S=g._outputType,C=g._mimeType;g.on("data",function(T,j){b.push(T),m&&m(j)}).on("error",function(T){b=[],x(T)}).on("end",function(){try{var T=(function(j,P,O){switch(j){case"blob":return i.newBlob(i.transformTo("arraybuffer",P),O);case"base64":return l.encode(P);default:return i.transformTo(j,P)}})(S,(function(j,P){var O,M=0,B=null,E=0;for(O=0;O<P.length;O++)E+=P[O].length;switch(j){case"string":return P.join("");case"array":return Array.prototype.concat.apply([],P);case"uint8array":for(B=new Uint8Array(E),O=0;O<P.length;O++)B.set(P[O],M),M+=P[O].length;return B;case"nodebuffer":return Buffer.concat(P);default:throw new Error("concat : unsupported type '"+j+"'")}})(k,b),C);y(T)}catch(j){x(j)}b=[]}).resume()})}function d(g,m,y){var x=m;switch(m){case"blob":case"arraybuffer":x="uint8array";break;case"base64":x="string"}try{this._internalType=x,this._outputType=m,this._mimeType=y,i.checkSupport(x),this._worker=g.pipe(new s(x)),g.lock()}catch(b){this._worker=new a("error"),this._worker.error(b)}}d.prototype={accumulate:function(g){return p(this,g)},on:function(g,m){var y=this;return g==="data"?this._worker.on(g,function(x){m.call(y,x.data,x.meta)}):this._worker.on(g,function(){i.delay(m,arguments,y)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(g){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},g)}},r.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var i=new ArrayBuffer(0);try{o.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),o.blob=s.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!n("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,o){for(var i=n("./utils"),s=n("./support"),a=n("./nodejsUtils"),l=n("./stream/GenericWorker"),c=new Array(256),u=0;u<256;u++)c[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;c[254]=c[254]=1;function f(){l.call(this,"utf-8 decode"),this.leftOver=null}function p(){l.call(this,"utf-8 encode")}o.utf8encode=function(d){return s.nodebuffer?a.newBufferFrom(d,"utf-8"):(function(g){var m,y,x,b,k,S=g.length,C=0;for(b=0;b<S;b++)(64512&(y=g.charCodeAt(b)))==55296&&b+1<S&&(64512&(x=g.charCodeAt(b+1)))==56320&&(y=65536+(y-55296<<10)+(x-56320),b++),C+=y<128?1:y<2048?2:y<65536?3:4;for(m=s.uint8array?new Uint8Array(C):new Array(C),b=k=0;k<C;b++)(64512&(y=g.charCodeAt(b)))==55296&&b+1<S&&(64512&(x=g.charCodeAt(b+1)))==56320&&(y=65536+(y-55296<<10)+(x-56320),b++),y<128?m[k++]=y:(y<2048?m[k++]=192|y>>>6:(y<65536?m[k++]=224|y>>>12:(m[k++]=240|y>>>18,m[k++]=128|y>>>12&63),m[k++]=128|y>>>6&63),m[k++]=128|63&y);return m})(d)},o.utf8decode=function(d){return s.nodebuffer?i.transformTo("nodebuffer",d).toString("utf-8"):(function(g){var m,y,x,b,k=g.length,S=new Array(2*k);for(m=y=0;m<k;)if((x=g[m++])<128)S[y++]=x;else if(4<(b=c[x]))S[y++]=65533,m+=b-1;else{for(x&=b===2?31:b===3?15:7;1<b&&m<k;)x=x<<6|63&g[m++],b--;1<b?S[y++]=65533:x<65536?S[y++]=x:(x-=65536,S[y++]=55296|x>>10&1023,S[y++]=56320|1023&x)}return S.length!==y&&(S.subarray?S=S.subarray(0,y):S.length=y),i.applyFromCharCode(S)})(d=i.transformTo(s.uint8array?"uint8array":"array",d))},i.inherits(f,l),f.prototype.processChunk=function(d){var g=i.transformTo(s.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var m=g;(g=new Uint8Array(m.length+this.leftOver.length)).set(this.leftOver,0),g.set(m,this.leftOver.length)}else g=this.leftOver.concat(g);this.leftOver=null}var y=(function(b,k){var S;for((k=k||b.length)>b.length&&(k=b.length),S=k-1;0<=S&&(192&b[S])==128;)S--;return S<0||S===0?k:S+c[b[S]]>k?S:k})(g),x=g;y!==g.length&&(s.uint8array?(x=g.subarray(0,y),this.leftOver=g.subarray(y,g.length)):(x=g.slice(0,y),this.leftOver=g.slice(y,g.length))),this.push({data:o.utf8decode(x),meta:d.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=f,i.inherits(p,l),p.prototype.processChunk=function(d){this.push({data:o.utf8encode(d.data),meta:d.meta})},o.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,o){var i=n("./support"),s=n("./base64"),a=n("./nodejsUtils"),l=n("./external");function c(m){return m}function u(m,y){for(var x=0;x<m.length;++x)y[x]=255&m.charCodeAt(x);return y}n("setimmediate"),o.newBlob=function(m,y){o.checkSupport("blob");try{return new Blob([m],{type:y})}catch{try{var x=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return x.append(m),x.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(m,y,x){var b=[],k=0,S=m.length;if(S<=x)return String.fromCharCode.apply(null,m);for(;k<S;)y==="array"||y==="nodebuffer"?b.push(String.fromCharCode.apply(null,m.slice(k,Math.min(k+x,S)))):b.push(String.fromCharCode.apply(null,m.subarray(k,Math.min(k+x,S)))),k+=x;return b.join("")},stringifyByChar:function(m){for(var y="",x=0;x<m.length;x++)y+=String.fromCharCode(m[x]);return y},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function p(m){var y=65536,x=o.getTypeOf(m),b=!0;if(x==="uint8array"?b=f.applyCanBeUsed.uint8array:x==="nodebuffer"&&(b=f.applyCanBeUsed.nodebuffer),b)for(;1<y;)try{return f.stringifyByChunk(m,x,y)}catch{y=Math.floor(y/2)}return f.stringifyByChar(m)}function d(m,y){for(var x=0;x<m.length;x++)y[x]=m[x];return y}o.applyFromCharCode=p;var g={};g.string={string:c,array:function(m){return u(m,new Array(m.length))},arraybuffer:function(m){return g.string.uint8array(m).buffer},uint8array:function(m){return u(m,new Uint8Array(m.length))},nodebuffer:function(m){return u(m,a.allocBuffer(m.length))}},g.array={string:p,array:c,arraybuffer:function(m){return new Uint8Array(m).buffer},uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(m)}},g.arraybuffer={string:function(m){return p(new Uint8Array(m))},array:function(m){return d(new Uint8Array(m),new Array(m.byteLength))},arraybuffer:c,uint8array:function(m){return new Uint8Array(m)},nodebuffer:function(m){return a.newBufferFrom(new Uint8Array(m))}},g.uint8array={string:p,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return m.buffer},uint8array:c,nodebuffer:function(m){return a.newBufferFrom(m)}},g.nodebuffer={string:p,array:function(m){return d(m,new Array(m.length))},arraybuffer:function(m){return g.nodebuffer.uint8array(m).buffer},uint8array:function(m){return d(m,new Uint8Array(m.length))},nodebuffer:c},o.transformTo=function(m,y){if(y=y||"",!m)return y;o.checkSupport(m);var x=o.getTypeOf(y);return g[x][m](y)},o.resolve=function(m){for(var y=m.split("/"),x=[],b=0;b<y.length;b++){var k=y[b];k==="."||k===""&&b!==0&&b!==y.length-1||(k===".."?x.pop():x.push(k))}return x.join("/")},o.getTypeOf=function(m){return typeof m=="string"?"string":Object.prototype.toString.call(m)==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(m)?"nodebuffer":i.uint8array&&m instanceof Uint8Array?"uint8array":i.arraybuffer&&m instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(m){if(!i[m.toLowerCase()])throw new Error(m+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(m){var y,x,b="";for(x=0;x<(m||"").length;x++)b+="\\x"+((y=m.charCodeAt(x))<16?"0":"")+y.toString(16).toUpperCase();return b},o.delay=function(m,y,x){setImmediate(function(){m.apply(x||null,y||[])})},o.inherits=function(m,y){function x(){}x.prototype=y.prototype,m.prototype=new x},o.extend=function(){var m,y,x={};for(m=0;m<arguments.length;m++)for(y in arguments[m])Object.prototype.hasOwnProperty.call(arguments[m],y)&&x[y]===void 0&&(x[y]=arguments[m][y]);return x},o.prepareContent=function(m,y,x,b,k){return l.Promise.resolve(y).then(function(S){return i.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new l.Promise(function(C,T){var j=new FileReader;j.onload=function(P){C(P.target.result)},j.onerror=function(P){T(P.target.error)},j.readAsArrayBuffer(S)}):S}).then(function(S){var C=o.getTypeOf(S);return C?(C==="arraybuffer"?S=o.transformTo("uint8array",S):C==="string"&&(k?S=s.decode(S):x&&b!==!0&&(S=(function(T){return u(T,i.uint8array?new Uint8Array(T.length):new Array(T.length))})(S))),S):l.Promise.reject(new Error("Can't read the data of '"+m+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,o){var i=n("./reader/readerFor"),s=n("./utils"),a=n("./signature"),l=n("./zipEntry"),c=n("./support");function u(f){this.files=[],this.loadOptions=f}u.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var p=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(p)+", expected "+s.pretty(f)+")")}},isSignature:function(f,p){var d=this.reader.index;this.reader.setIndex(f);var g=this.reader.readString(4)===p;return this.reader.setIndex(d),g},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),p=c.uint8array?"uint8array":"array",d=s.transformTo(p,f);this.zipComment=this.loadOptions.decodeFileName(d)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,p,d,g=this.zip64EndOfCentralSize-44;0<g;)f=this.reader.readInt(2),p=this.reader.readInt(4),d=this.reader.readData(p),this.zip64ExtensibleData[f]={id:f,length:p,value:d}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,p;for(f=0;f<this.files.length;f++)p=this.files[f],this.reader.setIndex(p.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),p.readLocalPart(this.reader),p.handleUTF8(),p.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(f=new l({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var p=f;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var g=p-d;if(0<g)this.isSignature(p,a.CENTRAL_FILE_HEADER)||(this.reader.zero=g);else if(g<0)throw new Error("Corrupted zip: missing "+Math.abs(g)+" bytes.")},prepareReader:function(f){this.reader=i(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=u},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,o){var i=n("./reader/readerFor"),s=n("./utils"),a=n("./compressedObject"),l=n("./crc32"),c=n("./utf8"),u=n("./compressions"),f=n("./support");function p(d,g){this.options=d,this.loadOptions=g}p.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(d){var g,m;if(d.skip(22),this.fileNameLength=d.readInt(2),m=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(m),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((g=(function(y){for(var x in u)if(Object.prototype.hasOwnProperty.call(u,x)&&u[x].magic===y)return u[x];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,g,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var g=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(g),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),d==0&&(this.dosPermissions=63&this.externalFileAttributes),d==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var g,m,y,x=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<x;)g=d.readInt(2),m=d.readInt(2),y=d.readData(m),this.extraFields[g]={id:g,length:m,value:y};d.setIndex(x)},handleUTF8:function(){var d=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var g=this.findExtraFieldUnicodePath();if(g!==null)this.fileNameStr=g;else{var m=s.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(m)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var x=s.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(x)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var g=i(d.value);return g.readInt(1)!==1||l(this.fileName)!==g.readInt(4)?null:c.utf8decode(g.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var g=i(d.value);return g.readInt(1)!==1||l(this.fileComment)!==g.readInt(4)?null:c.utf8decode(g.readData(d.length-5))}return null}},r.exports=p},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,o){function i(g,m,y){this.name=g,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=m,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var s=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),l=n("./utf8"),c=n("./compressedObject"),u=n("./stream/GenericWorker");i.prototype={internalStream:function(g){var m=null,y="string";try{if(!g)throw new Error("No output type specified.");var x=(y=g.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),m=this._decompressWorker();var b=!this._dataBinary;b&&!x&&(m=m.pipe(new l.Utf8EncodeWorker)),!b&&x&&(m=m.pipe(new l.Utf8DecodeWorker))}catch(k){(m=new u("error")).error(k)}return new s(m,y,"")},async:function(g,m){return this.internalStream(g).accumulate(m)},nodeStream:function(g,m){return this.internalStream(g||"nodebuffer").toNodejsStream(m)},_compressWorker:function(g,m){if(this._data instanceof c&&this._data.compression.magic===g.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new l.Utf8EncodeWorker)),c.createWorkerFrom(y,g,m)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof u?this._data:new a(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],p=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<f.length;d++)i.prototype[f[d]]=p;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,o){(function(i){var s,a,l=i.MutationObserver||i.WebKitMutationObserver;if(l){var c=0,u=new l(g),f=i.document.createTextNode("");u.observe(f,{characterData:!0}),s=function(){f.data=c=++c%2}}else if(i.setImmediate||i.MessageChannel===void 0)s="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var m=i.document.createElement("script");m.onreadystatechange=function(){g(),m.onreadystatechange=null,m.parentNode.removeChild(m),m=null},i.document.documentElement.appendChild(m)}:function(){setTimeout(g,0)};else{var p=new i.MessageChannel;p.port1.onmessage=g,s=function(){p.port2.postMessage(0)}}var d=[];function g(){var m,y;a=!0;for(var x=d.length;x;){for(y=d,d=[],m=-1;++m<x;)y[m]();x=d.length}a=!1}r.exports=function(m){d.push(m)!==1||a||s()}}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,o){var i=n("immediate");function s(){}var a={},l=["REJECTED"],c=["FULFILLED"],u=["PENDING"];function f(x){if(typeof x!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,x!==s&&m(this,x)}function p(x,b,k){this.promise=x,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof k=="function"&&(this.onRejected=k,this.callRejected=this.otherCallRejected)}function d(x,b,k){i(function(){var S;try{S=b(k)}catch(C){return a.reject(x,C)}S===x?a.reject(x,new TypeError("Cannot resolve promise with itself")):a.resolve(x,S)})}function g(x){var b=x&&x.then;if(x&&(typeof x=="object"||typeof x=="function")&&typeof b=="function")return function(){b.apply(x,arguments)}}function m(x,b){var k=!1;function S(j){k||(k=!0,a.reject(x,j))}function C(j){k||(k=!0,a.resolve(x,j))}var T=y(function(){b(C,S)});T.status==="error"&&S(T.value)}function y(x,b){var k={};try{k.value=x(b),k.status="success"}catch(S){k.status="error",k.value=S}return k}(r.exports=f).prototype.finally=function(x){if(typeof x!="function")return this;var b=this.constructor;return this.then(function(k){return b.resolve(x()).then(function(){return k})},function(k){return b.resolve(x()).then(function(){throw k})})},f.prototype.catch=function(x){return this.then(null,x)},f.prototype.then=function(x,b){if(typeof x!="function"&&this.state===c||typeof b!="function"&&this.state===l)return this;var k=new this.constructor(s);return this.state!==u?d(k,this.state===c?x:b,this.outcome):this.queue.push(new p(k,x,b)),k},p.prototype.callFulfilled=function(x){a.resolve(this.promise,x)},p.prototype.otherCallFulfilled=function(x){d(this.promise,this.onFulfilled,x)},p.prototype.callRejected=function(x){a.reject(this.promise,x)},p.prototype.otherCallRejected=function(x){d(this.promise,this.onRejected,x)},a.resolve=function(x,b){var k=y(g,b);if(k.status==="error")return a.reject(x,k.value);var S=k.value;if(S)m(x,S);else{x.state=c,x.outcome=b;for(var C=-1,T=x.queue.length;++C<T;)x.queue[C].callFulfilled(b)}return x},a.reject=function(x,b){x.state=l,x.outcome=b;for(var k=-1,S=x.queue.length;++k<S;)x.queue[k].callRejected(b);return x},f.resolve=function(x){return x instanceof this?x:a.resolve(new this(s),x)},f.reject=function(x){var b=new this(s);return a.reject(b,x)},f.all=function(x){var b=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=x.length,S=!1;if(!k)return this.resolve([]);for(var C=new Array(k),T=0,j=-1,P=new this(s);++j<k;)O(x[j],j);return P;function O(M,B){b.resolve(M).then(function(E){C[B]=E,++T!==k||S||(S=!0,a.resolve(P,C))},function(E){S||(S=!0,a.reject(P,E))})}},f.race=function(x){var b=this;if(Object.prototype.toString.call(x)!=="[object Array]")return this.reject(new TypeError("must be an array"));var k=x.length,S=!1;if(!k)return this.resolve([]);for(var C=-1,T=new this(s);++C<k;)j=x[C],b.resolve(j).then(function(P){S||(S=!0,a.resolve(T,P))},function(P){S||(S=!0,a.reject(T,P))});var j;return T}},{immediate:36}],38:[function(n,r,o){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,o){var i=n("./zlib/deflate"),s=n("./utils/common"),a=n("./utils/strings"),l=n("./zlib/messages"),c=n("./zlib/zstream"),u=Object.prototype.toString,f=0,p=-1,d=0,g=8;function m(x){if(!(this instanceof m))return new m(x);this.options=s.assign({level:p,method:g,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},x||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var k=i.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(k!==f)throw new Error(l[k]);if(b.header&&i.deflateSetHeader(this.strm,b.header),b.dictionary){var S;if(S=typeof b.dictionary=="string"?a.string2buf(b.dictionary):u.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(k=i.deflateSetDictionary(this.strm,S))!==f)throw new Error(l[k]);this._dict_set=!0}}function y(x,b){var k=new m(b);if(k.push(x,!0),k.err)throw k.msg||l[k.err];return k.result}m.prototype.push=function(x,b){var k,S,C=this.strm,T=this.options.chunkSize;if(this.ended)return!1;S=b===~~b?b:b===!0?4:0,typeof x=="string"?C.input=a.string2buf(x):u.call(x)==="[object ArrayBuffer]"?C.input=new Uint8Array(x):C.input=x,C.next_in=0,C.avail_in=C.input.length;do{if(C.avail_out===0&&(C.output=new s.Buf8(T),C.next_out=0,C.avail_out=T),(k=i.deflate(C,S))!==1&&k!==f)return this.onEnd(k),!(this.ended=!0);C.avail_out!==0&&(C.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(C.output,C.next_out))):this.onData(s.shrinkBuf(C.output,C.next_out)))}while((0<C.avail_in||C.avail_out===0)&&k!==1);return S===4?(k=i.deflateEnd(this.strm),this.onEnd(k),this.ended=!0,k===f):S!==2||(this.onEnd(f),!(C.avail_out=0))},m.prototype.onData=function(x){this.chunks.push(x)},m.prototype.onEnd=function(x){x===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=x,this.msg=this.strm.msg},o.Deflate=m,o.deflate=y,o.deflateRaw=function(x,b){return(b=b||{}).raw=!0,y(x,b)},o.gzip=function(x,b){return(b=b||{}).gzip=!0,y(x,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,o){var i=n("./zlib/inflate"),s=n("./utils/common"),a=n("./utils/strings"),l=n("./zlib/constants"),c=n("./zlib/messages"),u=n("./zlib/zstream"),f=n("./zlib/gzheader"),p=Object.prototype.toString;function d(m){if(!(this instanceof d))return new d(m);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},m||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||m&&m.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var x=i.inflateInit2(this.strm,y.windowBits);if(x!==l.Z_OK)throw new Error(c[x]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function g(m,y){var x=new d(y);if(x.push(m,!0),x.err)throw x.msg||c[x.err];return x.result}d.prototype.push=function(m,y){var x,b,k,S,C,T,j=this.strm,P=this.options.chunkSize,O=this.options.dictionary,M=!1;if(this.ended)return!1;b=y===~~y?y:y===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof m=="string"?j.input=a.binstring2buf(m):p.call(m)==="[object ArrayBuffer]"?j.input=new Uint8Array(m):j.input=m,j.next_in=0,j.avail_in=j.input.length;do{if(j.avail_out===0&&(j.output=new s.Buf8(P),j.next_out=0,j.avail_out=P),(x=i.inflate(j,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&O&&(T=typeof O=="string"?a.string2buf(O):p.call(O)==="[object ArrayBuffer]"?new Uint8Array(O):O,x=i.inflateSetDictionary(this.strm,T)),x===l.Z_BUF_ERROR&&M===!0&&(x=l.Z_OK,M=!1),x!==l.Z_STREAM_END&&x!==l.Z_OK)return this.onEnd(x),!(this.ended=!0);j.next_out&&(j.avail_out!==0&&x!==l.Z_STREAM_END&&(j.avail_in!==0||b!==l.Z_FINISH&&b!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(k=a.utf8border(j.output,j.next_out),S=j.next_out-k,C=a.buf2string(j.output,k),j.next_out=S,j.avail_out=P-S,S&&s.arraySet(j.output,j.output,k,S,0),this.onData(C)):this.onData(s.shrinkBuf(j.output,j.next_out)))),j.avail_in===0&&j.avail_out===0&&(M=!0)}while((0<j.avail_in||j.avail_out===0)&&x!==l.Z_STREAM_END);return x===l.Z_STREAM_END&&(b=l.Z_FINISH),b===l.Z_FINISH?(x=i.inflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===l.Z_OK):b!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(j.avail_out=0))},d.prototype.onData=function(m){this.chunks.push(m)},d.prototype.onEnd=function(m){m===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},o.Inflate=d,o.inflate=g,o.inflateRaw=function(m,y){return(y=y||{}).raw=!0,g(m,y)},o.ungzip=g},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,o){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(l){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var u=c.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var f in u)u.hasOwnProperty(f)&&(l[f]=u[f])}}return l},o.shrinkBuf=function(l,c){return l.length===c?l:l.subarray?l.subarray(0,c):(l.length=c,l)};var s={arraySet:function(l,c,u,f,p){if(c.subarray&&l.subarray)l.set(c.subarray(u,u+f),p);else for(var d=0;d<f;d++)l[p+d]=c[u+d]},flattenChunks:function(l){var c,u,f,p,d,g;for(c=f=0,u=l.length;c<u;c++)f+=l[c].length;for(g=new Uint8Array(f),c=p=0,u=l.length;c<u;c++)d=l[c],g.set(d,p),p+=d.length;return g}},a={arraySet:function(l,c,u,f,p){for(var d=0;d<f;d++)l[p+d]=c[u+d]},flattenChunks:function(l){return[].concat.apply([],l)}};o.setTyped=function(l){l?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,s)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,a))},o.setTyped(i)},{}],42:[function(n,r,o){var i=n("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var l=new i.Buf8(256),c=0;c<256;c++)l[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function u(f,p){if(p<65537&&(f.subarray&&a||!f.subarray&&s))return String.fromCharCode.apply(null,i.shrinkBuf(f,p));for(var d="",g=0;g<p;g++)d+=String.fromCharCode(f[g]);return d}l[254]=l[254]=1,o.string2buf=function(f){var p,d,g,m,y,x=f.length,b=0;for(m=0;m<x;m++)(64512&(d=f.charCodeAt(m)))==55296&&m+1<x&&(64512&(g=f.charCodeAt(m+1)))==56320&&(d=65536+(d-55296<<10)+(g-56320),m++),b+=d<128?1:d<2048?2:d<65536?3:4;for(p=new i.Buf8(b),m=y=0;y<b;m++)(64512&(d=f.charCodeAt(m)))==55296&&m+1<x&&(64512&(g=f.charCodeAt(m+1)))==56320&&(d=65536+(d-55296<<10)+(g-56320),m++),d<128?p[y++]=d:(d<2048?p[y++]=192|d>>>6:(d<65536?p[y++]=224|d>>>12:(p[y++]=240|d>>>18,p[y++]=128|d>>>12&63),p[y++]=128|d>>>6&63),p[y++]=128|63&d);return p},o.buf2binstring=function(f){return u(f,f.length)},o.binstring2buf=function(f){for(var p=new i.Buf8(f.length),d=0,g=p.length;d<g;d++)p[d]=f.charCodeAt(d);return p},o.buf2string=function(f,p){var d,g,m,y,x=p||f.length,b=new Array(2*x);for(d=g=0;d<x;)if((m=f[d++])<128)b[g++]=m;else if(4<(y=l[m]))b[g++]=65533,d+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&d<x;)m=m<<6|63&f[d++],y--;1<y?b[g++]=65533:m<65536?b[g++]=m:(m-=65536,b[g++]=55296|m>>10&1023,b[g++]=56320|1023&m)}return u(b,g)},o.utf8border=function(f,p){var d;for((p=p||f.length)>f.length&&(p=f.length),d=p-1;0<=d&&(192&f[d])==128;)d--;return d<0||d===0?p:d+l[f[d]]>p?d:p}},{"./common":41}],43:[function(n,r,o){r.exports=function(i,s,a,l){for(var c=65535&i|0,u=i>>>16&65535|0,f=0;a!==0;){for(a-=f=2e3<a?2e3:a;u=u+(c=c+s[l++]|0)|0,--f;);c%=65521,u%=65521}return c|u<<16|0}},{}],44:[function(n,r,o){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,o){var i=(function(){for(var s,a=[],l=0;l<256;l++){s=l;for(var c=0;c<8;c++)s=1&s?3988292384^s>>>1:s>>>1;a[l]=s}return a})();r.exports=function(s,a,l,c){var u=i,f=c+l;s^=-1;for(var p=c;p<f;p++)s=s>>>8^u[255&(s^a[p])];return-1^s}},{}],46:[function(n,r,o){var i,s=n("../utils/common"),a=n("./trees"),l=n("./adler32"),c=n("./crc32"),u=n("./messages"),f=0,p=4,d=0,g=-2,m=-1,y=4,x=2,b=8,k=9,S=286,C=30,T=19,j=2*S+1,P=15,O=3,M=258,B=M+O+1,E=42,L=113,v=1,D=2,G=3,Z=4;function W(w,J){return w.msg=u[J],J}function q(w){return(w<<1)-(4<w?9:0)}function A(w){for(var J=w.length;0<=--J;)w[J]=0}function U(w){var J=w.state,H=J.pending;H>w.avail_out&&(H=w.avail_out),H!==0&&(s.arraySet(w.output,J.pending_buf,J.pending_out,H,w.next_out),w.next_out+=H,J.pending_out+=H,w.total_out+=H,w.avail_out-=H,J.pending-=H,J.pending===0&&(J.pending_out=0))}function R(w,J){a._tr_flush_block(w,0<=w.block_start?w.block_start:-1,w.strstart-w.block_start,J),w.block_start=w.strstart,U(w.strm)}function N(w,J){w.pending_buf[w.pending++]=J}function Y(w,J){w.pending_buf[w.pending++]=J>>>8&255,w.pending_buf[w.pending++]=255&J}function Q(w,J){var H,I,z=w.max_chain_length,F=w.strstart,te=w.prev_length,re=w.nice_match,V=w.strstart>w.w_size-B?w.strstart-(w.w_size-B):0,ie=w.window,ue=w.w_mask,se=w.prev,$=w.strstart+M,ne=ie[F+te-1],le=ie[F+te];w.prev_length>=w.good_match&&(z>>=2),re>w.lookahead&&(re=w.lookahead);do if(ie[(H=J)+te]===le&&ie[H+te-1]===ne&&ie[H]===ie[F]&&ie[++H]===ie[F+1]){F+=2,H++;do;while(ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&ie[++F]===ie[++H]&&F<$);if(I=M-($-F),F=$-M,te<I){if(w.match_start=J,re<=(te=I))break;ne=ie[F+te-1],le=ie[F+te]}}while((J=se[J&ue])>V&&--z!=0);return te<=w.lookahead?te:w.lookahead}function pe(w){var J,H,I,z,F,te,re,V,ie,ue,se=w.w_size;do{if(z=w.window_size-w.lookahead-w.strstart,w.strstart>=se+(se-B)){for(s.arraySet(w.window,w.window,se,se,0),w.match_start-=se,w.strstart-=se,w.block_start-=se,J=H=w.hash_size;I=w.head[--J],w.head[J]=se<=I?I-se:0,--H;);for(J=H=se;I=w.prev[--J],w.prev[J]=se<=I?I-se:0,--H;);z+=se}if(w.strm.avail_in===0)break;if(te=w.strm,re=w.window,V=w.strstart+w.lookahead,ie=z,ue=void 0,ue=te.avail_in,ie<ue&&(ue=ie),H=ue===0?0:(te.avail_in-=ue,s.arraySet(re,te.input,te.next_in,ue,V),te.state.wrap===1?te.adler=l(te.adler,re,ue,V):te.state.wrap===2&&(te.adler=c(te.adler,re,ue,V)),te.next_in+=ue,te.total_in+=ue,ue),w.lookahead+=H,w.lookahead+w.insert>=O)for(F=w.strstart-w.insert,w.ins_h=w.window[F],w.ins_h=(w.ins_h<<w.hash_shift^w.window[F+1])&w.hash_mask;w.insert&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[F+O-1])&w.hash_mask,w.prev[F&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=F,F++,w.insert--,!(w.lookahead+w.insert<O)););}while(w.lookahead<B&&w.strm.avail_in!==0)}function X(w,J){for(var H,I;;){if(w.lookahead<B){if(pe(w),w.lookahead<B&&J===f)return v;if(w.lookahead===0)break}if(H=0,w.lookahead>=O&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),H!==0&&w.strstart-H<=w.w_size-B&&(w.match_length=Q(w,H)),w.match_length>=O)if(I=a._tr_tally(w,w.strstart-w.match_start,w.match_length-O),w.lookahead-=w.match_length,w.match_length<=w.max_lazy_match&&w.lookahead>=O){for(w.match_length--;w.strstart++,w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart,--w.match_length!=0;);w.strstart++}else w.strstart+=w.match_length,w.match_length=0,w.ins_h=w.window[w.strstart],w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+1])&w.hash_mask;else I=a._tr_tally(w,0,w.window[w.strstart]),w.lookahead--,w.strstart++;if(I&&(R(w,!1),w.strm.avail_out===0))return v}return w.insert=w.strstart<O-1?w.strstart:O-1,J===p?(R(w,!0),w.strm.avail_out===0?G:Z):w.last_lit&&(R(w,!1),w.strm.avail_out===0)?v:D}function ae(w,J){for(var H,I,z;;){if(w.lookahead<B){if(pe(w),w.lookahead<B&&J===f)return v;if(w.lookahead===0)break}if(H=0,w.lookahead>=O&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),w.prev_length=w.match_length,w.prev_match=w.match_start,w.match_length=O-1,H!==0&&w.prev_length<w.max_lazy_match&&w.strstart-H<=w.w_size-B&&(w.match_length=Q(w,H),w.match_length<=5&&(w.strategy===1||w.match_length===O&&4096<w.strstart-w.match_start)&&(w.match_length=O-1)),w.prev_length>=O&&w.match_length<=w.prev_length){for(z=w.strstart+w.lookahead-O,I=a._tr_tally(w,w.strstart-1-w.prev_match,w.prev_length-O),w.lookahead-=w.prev_length-1,w.prev_length-=2;++w.strstart<=z&&(w.ins_h=(w.ins_h<<w.hash_shift^w.window[w.strstart+O-1])&w.hash_mask,H=w.prev[w.strstart&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=w.strstart),--w.prev_length!=0;);if(w.match_available=0,w.match_length=O-1,w.strstart++,I&&(R(w,!1),w.strm.avail_out===0))return v}else if(w.match_available){if((I=a._tr_tally(w,0,w.window[w.strstart-1]))&&R(w,!1),w.strstart++,w.lookahead--,w.strm.avail_out===0)return v}else w.match_available=1,w.strstart++,w.lookahead--}return w.match_available&&(I=a._tr_tally(w,0,w.window[w.strstart-1]),w.match_available=0),w.insert=w.strstart<O-1?w.strstart:O-1,J===p?(R(w,!0),w.strm.avail_out===0?G:Z):w.last_lit&&(R(w,!1),w.strm.avail_out===0)?v:D}function de(w,J,H,I,z){this.good_length=w,this.max_lazy=J,this.nice_length=H,this.max_chain=I,this.func=z}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=b,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*j),this.dyn_dtree=new s.Buf16(2*(2*C+1)),this.bl_tree=new s.Buf16(2*(2*T+1)),A(this.dyn_ltree),A(this.dyn_dtree),A(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(P+1),this.heap=new s.Buf16(2*S+1),A(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*S+1),A(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function xe(w){var J;return w&&w.state?(w.total_in=w.total_out=0,w.data_type=x,(J=w.state).pending=0,J.pending_out=0,J.wrap<0&&(J.wrap=-J.wrap),J.status=J.wrap?E:L,w.adler=J.wrap===2?0:1,J.last_flush=f,a._tr_init(J),d):W(w,g)}function Ee(w){var J=xe(w);return J===d&&(function(H){H.window_size=2*H.w_size,A(H.head),H.max_lazy_match=i[H.level].max_lazy,H.good_match=i[H.level].good_length,H.nice_match=i[H.level].nice_length,H.max_chain_length=i[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=O-1,H.match_available=0,H.ins_h=0})(w.state),J}function Oe(w,J,H,I,z,F){if(!w)return g;var te=1;if(J===m&&(J=6),I<0?(te=0,I=-I):15<I&&(te=2,I-=16),z<1||k<z||H!==b||I<8||15<I||J<0||9<J||F<0||y<F)return W(w,g);I===8&&(I=9);var re=new ge;return(w.state=re).strm=w,re.wrap=te,re.gzhead=null,re.w_bits=I,re.w_size=1<<re.w_bits,re.w_mask=re.w_size-1,re.hash_bits=z+7,re.hash_size=1<<re.hash_bits,re.hash_mask=re.hash_size-1,re.hash_shift=~~((re.hash_bits+O-1)/O),re.window=new s.Buf8(2*re.w_size),re.head=new s.Buf16(re.hash_size),re.prev=new s.Buf16(re.w_size),re.lit_bufsize=1<<z+6,re.pending_buf_size=4*re.lit_bufsize,re.pending_buf=new s.Buf8(re.pending_buf_size),re.d_buf=1*re.lit_bufsize,re.l_buf=3*re.lit_bufsize,re.level=J,re.strategy=F,re.method=H,Ee(w)}i=[new de(0,0,0,0,function(w,J){var H=65535;for(H>w.pending_buf_size-5&&(H=w.pending_buf_size-5);;){if(w.lookahead<=1){if(pe(w),w.lookahead===0&&J===f)return v;if(w.lookahead===0)break}w.strstart+=w.lookahead,w.lookahead=0;var I=w.block_start+H;if((w.strstart===0||w.strstart>=I)&&(w.lookahead=w.strstart-I,w.strstart=I,R(w,!1),w.strm.avail_out===0)||w.strstart-w.block_start>=w.w_size-B&&(R(w,!1),w.strm.avail_out===0))return v}return w.insert=0,J===p?(R(w,!0),w.strm.avail_out===0?G:Z):(w.strstart>w.block_start&&(R(w,!1),w.strm.avail_out),v)}),new de(4,4,8,4,X),new de(4,5,16,8,X),new de(4,6,32,32,X),new de(4,4,16,16,ae),new de(8,16,32,32,ae),new de(8,16,128,128,ae),new de(8,32,128,256,ae),new de(32,128,258,1024,ae),new de(32,258,258,4096,ae)],o.deflateInit=function(w,J){return Oe(w,J,b,15,8,0)},o.deflateInit2=Oe,o.deflateReset=Ee,o.deflateResetKeep=xe,o.deflateSetHeader=function(w,J){return w&&w.state?w.state.wrap!==2?g:(w.state.gzhead=J,d):g},o.deflate=function(w,J){var H,I,z,F;if(!w||!w.state||5<J||J<0)return w?W(w,g):g;if(I=w.state,!w.output||!w.input&&w.avail_in!==0||I.status===666&&J!==p)return W(w,w.avail_out===0?-5:g);if(I.strm=w,H=I.last_flush,I.last_flush=J,I.status===E)if(I.wrap===2)w.adler=0,N(I,31),N(I,139),N(I,8),I.gzhead?(N(I,(I.gzhead.text?1:0)+(I.gzhead.hcrc?2:0)+(I.gzhead.extra?4:0)+(I.gzhead.name?8:0)+(I.gzhead.comment?16:0)),N(I,255&I.gzhead.time),N(I,I.gzhead.time>>8&255),N(I,I.gzhead.time>>16&255),N(I,I.gzhead.time>>24&255),N(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),N(I,255&I.gzhead.os),I.gzhead.extra&&I.gzhead.extra.length&&(N(I,255&I.gzhead.extra.length),N(I,I.gzhead.extra.length>>8&255)),I.gzhead.hcrc&&(w.adler=c(w.adler,I.pending_buf,I.pending,0)),I.gzindex=0,I.status=69):(N(I,0),N(I,0),N(I,0),N(I,0),N(I,0),N(I,I.level===9?2:2<=I.strategy||I.level<2?4:0),N(I,3),I.status=L);else{var te=b+(I.w_bits-8<<4)<<8;te|=(2<=I.strategy||I.level<2?0:I.level<6?1:I.level===6?2:3)<<6,I.strstart!==0&&(te|=32),te+=31-te%31,I.status=L,Y(I,te),I.strstart!==0&&(Y(I,w.adler>>>16),Y(I,65535&w.adler)),w.adler=1}if(I.status===69)if(I.gzhead.extra){for(z=I.pending;I.gzindex<(65535&I.gzhead.extra.length)&&(I.pending!==I.pending_buf_size||(I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),U(w),z=I.pending,I.pending!==I.pending_buf_size));)N(I,255&I.gzhead.extra[I.gzindex]),I.gzindex++;I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),I.gzindex===I.gzhead.extra.length&&(I.gzindex=0,I.status=73)}else I.status=73;if(I.status===73)if(I.gzhead.name){z=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),U(w),z=I.pending,I.pending===I.pending_buf_size)){F=1;break}F=I.gzindex<I.gzhead.name.length?255&I.gzhead.name.charCodeAt(I.gzindex++):0,N(I,F)}while(F!==0);I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),F===0&&(I.gzindex=0,I.status=91)}else I.status=91;if(I.status===91)if(I.gzhead.comment){z=I.pending;do{if(I.pending===I.pending_buf_size&&(I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),U(w),z=I.pending,I.pending===I.pending_buf_size)){F=1;break}F=I.gzindex<I.gzhead.comment.length?255&I.gzhead.comment.charCodeAt(I.gzindex++):0,N(I,F)}while(F!==0);I.gzhead.hcrc&&I.pending>z&&(w.adler=c(w.adler,I.pending_buf,I.pending-z,z)),F===0&&(I.status=103)}else I.status=103;if(I.status===103&&(I.gzhead.hcrc?(I.pending+2>I.pending_buf_size&&U(w),I.pending+2<=I.pending_buf_size&&(N(I,255&w.adler),N(I,w.adler>>8&255),w.adler=0,I.status=L)):I.status=L),I.pending!==0){if(U(w),w.avail_out===0)return I.last_flush=-1,d}else if(w.avail_in===0&&q(J)<=q(H)&&J!==p)return W(w,-5);if(I.status===666&&w.avail_in!==0)return W(w,-5);if(w.avail_in!==0||I.lookahead!==0||J!==f&&I.status!==666){var re=I.strategy===2?(function(V,ie){for(var ue;;){if(V.lookahead===0&&(pe(V),V.lookahead===0)){if(ie===f)return v;break}if(V.match_length=0,ue=a._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++,ue&&(R(V,!1),V.strm.avail_out===0))return v}return V.insert=0,ie===p?(R(V,!0),V.strm.avail_out===0?G:Z):V.last_lit&&(R(V,!1),V.strm.avail_out===0)?v:D})(I,J):I.strategy===3?(function(V,ie){for(var ue,se,$,ne,le=V.window;;){if(V.lookahead<=M){if(pe(V),V.lookahead<=M&&ie===f)return v;if(V.lookahead===0)break}if(V.match_length=0,V.lookahead>=O&&0<V.strstart&&(se=le[$=V.strstart-1])===le[++$]&&se===le[++$]&&se===le[++$]){ne=V.strstart+M;do;while(se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&se===le[++$]&&$<ne);V.match_length=M-(ne-$),V.match_length>V.lookahead&&(V.match_length=V.lookahead)}if(V.match_length>=O?(ue=a._tr_tally(V,1,V.match_length-O),V.lookahead-=V.match_length,V.strstart+=V.match_length,V.match_length=0):(ue=a._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++),ue&&(R(V,!1),V.strm.avail_out===0))return v}return V.insert=0,ie===p?(R(V,!0),V.strm.avail_out===0?G:Z):V.last_lit&&(R(V,!1),V.strm.avail_out===0)?v:D})(I,J):i[I.level].func(I,J);if(re!==G&&re!==Z||(I.status=666),re===v||re===G)return w.avail_out===0&&(I.last_flush=-1),d;if(re===D&&(J===1?a._tr_align(I):J!==5&&(a._tr_stored_block(I,0,0,!1),J===3&&(A(I.head),I.lookahead===0&&(I.strstart=0,I.block_start=0,I.insert=0))),U(w),w.avail_out===0))return I.last_flush=-1,d}return J!==p?d:I.wrap<=0?1:(I.wrap===2?(N(I,255&w.adler),N(I,w.adler>>8&255),N(I,w.adler>>16&255),N(I,w.adler>>24&255),N(I,255&w.total_in),N(I,w.total_in>>8&255),N(I,w.total_in>>16&255),N(I,w.total_in>>24&255)):(Y(I,w.adler>>>16),Y(I,65535&w.adler)),U(w),0<I.wrap&&(I.wrap=-I.wrap),I.pending!==0?d:1)},o.deflateEnd=function(w){var J;return w&&w.state?(J=w.state.status)!==E&&J!==69&&J!==73&&J!==91&&J!==103&&J!==L&&J!==666?W(w,g):(w.state=null,J===L?W(w,-3):d):g},o.deflateSetDictionary=function(w,J){var H,I,z,F,te,re,V,ie,ue=J.length;if(!w||!w.state||(F=(H=w.state).wrap)===2||F===1&&H.status!==E||H.lookahead)return g;for(F===1&&(w.adler=l(w.adler,J,ue,0)),H.wrap=0,ue>=H.w_size&&(F===0&&(A(H.head),H.strstart=0,H.block_start=0,H.insert=0),ie=new s.Buf8(H.w_size),s.arraySet(ie,J,ue-H.w_size,H.w_size,0),J=ie,ue=H.w_size),te=w.avail_in,re=w.next_in,V=w.input,w.avail_in=ue,w.next_in=0,w.input=J,pe(H);H.lookahead>=O;){for(I=H.strstart,z=H.lookahead-(O-1);H.ins_h=(H.ins_h<<H.hash_shift^H.window[I+O-1])&H.hash_mask,H.prev[I&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=I,I++,--z;);H.strstart=I,H.lookahead=O-1,pe(H)}return H.strstart+=H.lookahead,H.block_start=H.strstart,H.insert=H.lookahead,H.lookahead=0,H.match_length=H.prev_length=O-1,H.match_available=0,w.next_in=re,w.input=V,w.avail_in=te,H.wrap=F,d},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,o){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,o){r.exports=function(i,s){var a,l,c,u,f,p,d,g,m,y,x,b,k,S,C,T,j,P,O,M,B,E,L,v,D;a=i.state,l=i.next_in,v=i.input,c=l+(i.avail_in-5),u=i.next_out,D=i.output,f=u-(s-i.avail_out),p=u+(i.avail_out-257),d=a.dmax,g=a.wsize,m=a.whave,y=a.wnext,x=a.window,b=a.hold,k=a.bits,S=a.lencode,C=a.distcode,T=(1<<a.lenbits)-1,j=(1<<a.distbits)-1;e:do{k<15&&(b+=v[l++]<<k,k+=8,b+=v[l++]<<k,k+=8),P=S[b&T];t:for(;;){if(b>>>=O=P>>>24,k-=O,(O=P>>>16&255)===0)D[u++]=65535&P;else{if(!(16&O)){if((64&O)==0){P=S[(65535&P)+(b&(1<<O)-1)];continue t}if(32&O){a.mode=12;break e}i.msg="invalid literal/length code",a.mode=30;break e}M=65535&P,(O&=15)&&(k<O&&(b+=v[l++]<<k,k+=8),M+=b&(1<<O)-1,b>>>=O,k-=O),k<15&&(b+=v[l++]<<k,k+=8,b+=v[l++]<<k,k+=8),P=C[b&j];n:for(;;){if(b>>>=O=P>>>24,k-=O,!(16&(O=P>>>16&255))){if((64&O)==0){P=C[(65535&P)+(b&(1<<O)-1)];continue n}i.msg="invalid distance code",a.mode=30;break e}if(B=65535&P,k<(O&=15)&&(b+=v[l++]<<k,(k+=8)<O&&(b+=v[l++]<<k,k+=8)),d<(B+=b&(1<<O)-1)){i.msg="invalid distance too far back",a.mode=30;break e}if(b>>>=O,k-=O,(O=u-f)<B){if(m<(O=B-O)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break e}if(L=x,(E=0)===y){if(E+=g-O,O<M){for(M-=O;D[u++]=x[E++],--O;);E=u-B,L=D}}else if(y<O){if(E+=g+y-O,(O-=y)<M){for(M-=O;D[u++]=x[E++],--O;);if(E=0,y<M){for(M-=O=y;D[u++]=x[E++],--O;);E=u-B,L=D}}}else if(E+=y-O,O<M){for(M-=O;D[u++]=x[E++],--O;);E=u-B,L=D}for(;2<M;)D[u++]=L[E++],D[u++]=L[E++],D[u++]=L[E++],M-=3;M&&(D[u++]=L[E++],1<M&&(D[u++]=L[E++]))}else{for(E=u-B;D[u++]=D[E++],D[u++]=D[E++],D[u++]=D[E++],2<(M-=3););M&&(D[u++]=D[E++],1<M&&(D[u++]=D[E++]))}break}}break}}while(l<c&&u<p);l-=M=k>>3,b&=(1<<(k-=M<<3))-1,i.next_in=l,i.next_out=u,i.avail_in=l<c?c-l+5:5-(l-c),i.avail_out=u<p?p-u+257:257-(u-p),a.hold=b,a.bits=k}},{}],49:[function(n,r,o){var i=n("../utils/common"),s=n("./adler32"),a=n("./crc32"),l=n("./inffast"),c=n("./inftrees"),u=1,f=2,p=0,d=-2,g=1,m=852,y=592;function x(E){return(E>>>24&255)+(E>>>8&65280)+((65280&E)<<8)+((255&E)<<24)}function b(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function k(E){var L;return E&&E.state?(L=E.state,E.total_in=E.total_out=L.total=0,E.msg="",L.wrap&&(E.adler=1&L.wrap),L.mode=g,L.last=0,L.havedict=0,L.dmax=32768,L.head=null,L.hold=0,L.bits=0,L.lencode=L.lendyn=new i.Buf32(m),L.distcode=L.distdyn=new i.Buf32(y),L.sane=1,L.back=-1,p):d}function S(E){var L;return E&&E.state?((L=E.state).wsize=0,L.whave=0,L.wnext=0,k(E)):d}function C(E,L){var v,D;return E&&E.state?(D=E.state,L<0?(v=0,L=-L):(v=1+(L>>4),L<48&&(L&=15)),L&&(L<8||15<L)?d:(D.window!==null&&D.wbits!==L&&(D.window=null),D.wrap=v,D.wbits=L,S(E))):d}function T(E,L){var v,D;return E?(D=new b,(E.state=D).window=null,(v=C(E,L))!==p&&(E.state=null),v):d}var j,P,O=!0;function M(E){if(O){var L;for(j=new i.Buf32(512),P=new i.Buf32(32),L=0;L<144;)E.lens[L++]=8;for(;L<256;)E.lens[L++]=9;for(;L<280;)E.lens[L++]=7;for(;L<288;)E.lens[L++]=8;for(c(u,E.lens,0,288,j,0,E.work,{bits:9}),L=0;L<32;)E.lens[L++]=5;c(f,E.lens,0,32,P,0,E.work,{bits:5}),O=!1}E.lencode=j,E.lenbits=9,E.distcode=P,E.distbits=5}function B(E,L,v,D){var G,Z=E.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new i.Buf8(Z.wsize)),D>=Z.wsize?(i.arraySet(Z.window,L,v-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(D<(G=Z.wsize-Z.wnext)&&(G=D),i.arraySet(Z.window,L,v-D,G,Z.wnext),(D-=G)?(i.arraySet(Z.window,L,v-D,D,0),Z.wnext=D,Z.whave=Z.wsize):(Z.wnext+=G,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=G))),0}o.inflateReset=S,o.inflateReset2=C,o.inflateResetKeep=k,o.inflateInit=function(E){return T(E,15)},o.inflateInit2=T,o.inflate=function(E,L){var v,D,G,Z,W,q,A,U,R,N,Y,Q,pe,X,ae,de,ge,xe,Ee,Oe,w,J,H,I,z=0,F=new i.Buf8(4),te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!E||!E.state||!E.output||!E.input&&E.avail_in!==0)return d;(v=E.state).mode===12&&(v.mode=13),W=E.next_out,G=E.output,A=E.avail_out,Z=E.next_in,D=E.input,q=E.avail_in,U=v.hold,R=v.bits,N=q,Y=A,J=p;e:for(;;)switch(v.mode){case g:if(v.wrap===0){v.mode=13;break}for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(2&v.wrap&&U===35615){F[v.check=0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0),R=U=0,v.mode=2;break}if(v.flags=0,v.head&&(v.head.done=!1),!(1&v.wrap)||(((255&U)<<8)+(U>>8))%31){E.msg="incorrect header check",v.mode=30;break}if((15&U)!=8){E.msg="unknown compression method",v.mode=30;break}if(R-=4,w=8+(15&(U>>>=4)),v.wbits===0)v.wbits=w;else if(w>v.wbits){E.msg="invalid window size",v.mode=30;break}v.dmax=1<<w,E.adler=v.check=1,v.mode=512&U?10:12,R=U=0;break;case 2:for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(v.flags=U,(255&v.flags)!=8){E.msg="unknown compression method",v.mode=30;break}if(57344&v.flags){E.msg="unknown header flags set",v.mode=30;break}v.head&&(v.head.text=U>>8&1),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0)),R=U=0,v.mode=3;case 3:for(;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.head&&(v.head.time=U),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,F[2]=U>>>16&255,F[3]=U>>>24&255,v.check=a(v.check,F,4,0)),R=U=0,v.mode=4;case 4:for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.head&&(v.head.xflags=255&U,v.head.os=U>>8),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0)),R=U=0,v.mode=5;case 5:if(1024&v.flags){for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.length=U,v.head&&(v.head.extra_len=U),512&v.flags&&(F[0]=255&U,F[1]=U>>>8&255,v.check=a(v.check,F,2,0)),R=U=0}else v.head&&(v.head.extra=null);v.mode=6;case 6:if(1024&v.flags&&(q<(Q=v.length)&&(Q=q),Q&&(v.head&&(w=v.head.extra_len-v.length,v.head.extra||(v.head.extra=new Array(v.head.extra_len)),i.arraySet(v.head.extra,D,Z,Q,w)),512&v.flags&&(v.check=a(v.check,D,Q,Z)),q-=Q,Z+=Q,v.length-=Q),v.length))break e;v.length=0,v.mode=7;case 7:if(2048&v.flags){if(q===0)break e;for(Q=0;w=D[Z+Q++],v.head&&w&&v.length<65536&&(v.head.name+=String.fromCharCode(w)),w&&Q<q;);if(512&v.flags&&(v.check=a(v.check,D,Q,Z)),q-=Q,Z+=Q,w)break e}else v.head&&(v.head.name=null);v.length=0,v.mode=8;case 8:if(4096&v.flags){if(q===0)break e;for(Q=0;w=D[Z+Q++],v.head&&w&&v.length<65536&&(v.head.comment+=String.fromCharCode(w)),w&&Q<q;);if(512&v.flags&&(v.check=a(v.check,D,Q,Z)),q-=Q,Z+=Q,w)break e}else v.head&&(v.head.comment=null);v.mode=9;case 9:if(512&v.flags){for(;R<16;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(U!==(65535&v.check)){E.msg="header crc mismatch",v.mode=30;break}R=U=0}v.head&&(v.head.hcrc=v.flags>>9&1,v.head.done=!0),E.adler=v.check=0,v.mode=12;break;case 10:for(;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}E.adler=v.check=x(U),R=U=0,v.mode=11;case 11:if(v.havedict===0)return E.next_out=W,E.avail_out=A,E.next_in=Z,E.avail_in=q,v.hold=U,v.bits=R,2;E.adler=v.check=1,v.mode=12;case 12:if(L===5||L===6)break e;case 13:if(v.last){U>>>=7&R,R-=7&R,v.mode=27;break}for(;R<3;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}switch(v.last=1&U,R-=1,3&(U>>>=1)){case 0:v.mode=14;break;case 1:if(M(v),v.mode=20,L!==6)break;U>>>=2,R-=2;break e;case 2:v.mode=17;break;case 3:E.msg="invalid block type",v.mode=30}U>>>=2,R-=2;break;case 14:for(U>>>=7&R,R-=7&R;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if((65535&U)!=(U>>>16^65535)){E.msg="invalid stored block lengths",v.mode=30;break}if(v.length=65535&U,R=U=0,v.mode=15,L===6)break e;case 15:v.mode=16;case 16:if(Q=v.length){if(q<Q&&(Q=q),A<Q&&(Q=A),Q===0)break e;i.arraySet(G,D,Z,Q,W),q-=Q,Z+=Q,A-=Q,W+=Q,v.length-=Q;break}v.mode=12;break;case 17:for(;R<14;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(v.nlen=257+(31&U),U>>>=5,R-=5,v.ndist=1+(31&U),U>>>=5,R-=5,v.ncode=4+(15&U),U>>>=4,R-=4,286<v.nlen||30<v.ndist){E.msg="too many length or distance symbols",v.mode=30;break}v.have=0,v.mode=18;case 18:for(;v.have<v.ncode;){for(;R<3;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.lens[te[v.have++]]=7&U,U>>>=3,R-=3}for(;v.have<19;)v.lens[te[v.have++]]=0;if(v.lencode=v.lendyn,v.lenbits=7,H={bits:v.lenbits},J=c(0,v.lens,0,19,v.lencode,0,v.work,H),v.lenbits=H.bits,J){E.msg="invalid code lengths set",v.mode=30;break}v.have=0,v.mode=19;case 19:for(;v.have<v.nlen+v.ndist;){for(;de=(z=v.lencode[U&(1<<v.lenbits)-1])>>>16&255,ge=65535&z,!((ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(ge<16)U>>>=ae,R-=ae,v.lens[v.have++]=ge;else{if(ge===16){for(I=ae+2;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(U>>>=ae,R-=ae,v.have===0){E.msg="invalid bit length repeat",v.mode=30;break}w=v.lens[v.have-1],Q=3+(3&U),U>>>=2,R-=2}else if(ge===17){for(I=ae+3;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}R-=ae,w=0,Q=3+(7&(U>>>=ae)),U>>>=3,R-=3}else{for(I=ae+7;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}R-=ae,w=0,Q=11+(127&(U>>>=ae)),U>>>=7,R-=7}if(v.have+Q>v.nlen+v.ndist){E.msg="invalid bit length repeat",v.mode=30;break}for(;Q--;)v.lens[v.have++]=w}}if(v.mode===30)break;if(v.lens[256]===0){E.msg="invalid code -- missing end-of-block",v.mode=30;break}if(v.lenbits=9,H={bits:v.lenbits},J=c(u,v.lens,0,v.nlen,v.lencode,0,v.work,H),v.lenbits=H.bits,J){E.msg="invalid literal/lengths set",v.mode=30;break}if(v.distbits=6,v.distcode=v.distdyn,H={bits:v.distbits},J=c(f,v.lens,v.nlen,v.ndist,v.distcode,0,v.work,H),v.distbits=H.bits,J){E.msg="invalid distances set",v.mode=30;break}if(v.mode=20,L===6)break e;case 20:v.mode=21;case 21:if(6<=q&&258<=A){E.next_out=W,E.avail_out=A,E.next_in=Z,E.avail_in=q,v.hold=U,v.bits=R,l(E,Y),W=E.next_out,G=E.output,A=E.avail_out,Z=E.next_in,D=E.input,q=E.avail_in,U=v.hold,R=v.bits,v.mode===12&&(v.back=-1);break}for(v.back=0;de=(z=v.lencode[U&(1<<v.lenbits)-1])>>>16&255,ge=65535&z,!((ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(de&&(240&de)==0){for(xe=ae,Ee=de,Oe=ge;de=(z=v.lencode[Oe+((U&(1<<xe+Ee)-1)>>xe)])>>>16&255,ge=65535&z,!(xe+(ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}U>>>=xe,R-=xe,v.back+=xe}if(U>>>=ae,R-=ae,v.back+=ae,v.length=ge,de===0){v.mode=26;break}if(32&de){v.back=-1,v.mode=12;break}if(64&de){E.msg="invalid literal/length code",v.mode=30;break}v.extra=15&de,v.mode=22;case 22:if(v.extra){for(I=v.extra;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.length+=U&(1<<v.extra)-1,U>>>=v.extra,R-=v.extra,v.back+=v.extra}v.was=v.length,v.mode=23;case 23:for(;de=(z=v.distcode[U&(1<<v.distbits)-1])>>>16&255,ge=65535&z,!((ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if((240&de)==0){for(xe=ae,Ee=de,Oe=ge;de=(z=v.distcode[Oe+((U&(1<<xe+Ee)-1)>>xe)])>>>16&255,ge=65535&z,!(xe+(ae=z>>>24)<=R);){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}U>>>=xe,R-=xe,v.back+=xe}if(U>>>=ae,R-=ae,v.back+=ae,64&de){E.msg="invalid distance code",v.mode=30;break}v.offset=ge,v.extra=15&de,v.mode=24;case 24:if(v.extra){for(I=v.extra;R<I;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}v.offset+=U&(1<<v.extra)-1,U>>>=v.extra,R-=v.extra,v.back+=v.extra}if(v.offset>v.dmax){E.msg="invalid distance too far back",v.mode=30;break}v.mode=25;case 25:if(A===0)break e;if(Q=Y-A,v.offset>Q){if((Q=v.offset-Q)>v.whave&&v.sane){E.msg="invalid distance too far back",v.mode=30;break}pe=Q>v.wnext?(Q-=v.wnext,v.wsize-Q):v.wnext-Q,Q>v.length&&(Q=v.length),X=v.window}else X=G,pe=W-v.offset,Q=v.length;for(A<Q&&(Q=A),A-=Q,v.length-=Q;G[W++]=X[pe++],--Q;);v.length===0&&(v.mode=21);break;case 26:if(A===0)break e;G[W++]=v.length,A--,v.mode=21;break;case 27:if(v.wrap){for(;R<32;){if(q===0)break e;q--,U|=D[Z++]<<R,R+=8}if(Y-=A,E.total_out+=Y,v.total+=Y,Y&&(E.adler=v.check=v.flags?a(v.check,G,Y,W-Y):s(v.check,G,Y,W-Y)),Y=A,(v.flags?U:x(U))!==v.check){E.msg="incorrect data check",v.mode=30;break}R=U=0}v.mode=28;case 28:if(v.wrap&&v.flags){for(;R<32;){if(q===0)break e;q--,U+=D[Z++]<<R,R+=8}if(U!==(4294967295&v.total)){E.msg="incorrect length check",v.mode=30;break}R=U=0}v.mode=29;case 29:J=1;break e;case 30:J=-3;break e;case 31:return-4;default:return d}return E.next_out=W,E.avail_out=A,E.next_in=Z,E.avail_in=q,v.hold=U,v.bits=R,(v.wsize||Y!==E.avail_out&&v.mode<30&&(v.mode<27||L!==4))&&B(E,E.output,E.next_out,Y-E.avail_out)?(v.mode=31,-4):(N-=E.avail_in,Y-=E.avail_out,E.total_in+=N,E.total_out+=Y,v.total+=Y,v.wrap&&Y&&(E.adler=v.check=v.flags?a(v.check,G,Y,E.next_out-Y):s(v.check,G,Y,E.next_out-Y)),E.data_type=v.bits+(v.last?64:0)+(v.mode===12?128:0)+(v.mode===20||v.mode===15?256:0),(N==0&&Y===0||L===4)&&J===p&&(J=-5),J)},o.inflateEnd=function(E){if(!E||!E.state)return d;var L=E.state;return L.window&&(L.window=null),E.state=null,p},o.inflateGetHeader=function(E,L){var v;return E&&E.state?(2&(v=E.state).wrap)==0?d:((v.head=L).done=!1,p):d},o.inflateSetDictionary=function(E,L){var v,D=L.length;return E&&E.state?(v=E.state).wrap!==0&&v.mode!==11?d:v.mode===11&&s(1,L,D,0)!==v.check?-3:B(E,L,D,D)?(v.mode=31,-4):(v.havedict=1,p):d},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,o){var i=n("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],l=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(u,f,p,d,g,m,y,x){var b,k,S,C,T,j,P,O,M,B=x.bits,E=0,L=0,v=0,D=0,G=0,Z=0,W=0,q=0,A=0,U=0,R=null,N=0,Y=new i.Buf16(16),Q=new i.Buf16(16),pe=null,X=0;for(E=0;E<=15;E++)Y[E]=0;for(L=0;L<d;L++)Y[f[p+L]]++;for(G=B,D=15;1<=D&&Y[D]===0;D--);if(D<G&&(G=D),D===0)return g[m++]=20971520,g[m++]=20971520,x.bits=1,0;for(v=1;v<D&&Y[v]===0;v++);for(G<v&&(G=v),E=q=1;E<=15;E++)if(q<<=1,(q-=Y[E])<0)return-1;if(0<q&&(u===0||D!==1))return-1;for(Q[1]=0,E=1;E<15;E++)Q[E+1]=Q[E]+Y[E];for(L=0;L<d;L++)f[p+L]!==0&&(y[Q[f[p+L]]++]=L);if(j=u===0?(R=pe=y,19):u===1?(R=s,N-=257,pe=a,X-=257,256):(R=l,pe=c,-1),E=v,T=m,W=L=U=0,S=-1,C=(A=1<<(Z=G))-1,u===1&&852<A||u===2&&592<A)return 1;for(;;){for(P=E-W,M=y[L]<j?(O=0,y[L]):y[L]>j?(O=pe[X+y[L]],R[N+y[L]]):(O=96,0),b=1<<E-W,v=k=1<<Z;g[T+(U>>W)+(k-=b)]=P<<24|O<<16|M|0,k!==0;);for(b=1<<E-1;U&b;)b>>=1;if(b!==0?(U&=b-1,U+=b):U=0,L++,--Y[E]==0){if(E===D)break;E=f[p+y[L]]}if(G<E&&(U&C)!==S){for(W===0&&(W=G),T+=v,q=1<<(Z=E-W);Z+W<D&&!((q-=Y[Z+W])<=0);)Z++,q<<=1;if(A+=1<<Z,u===1&&852<A||u===2&&592<A)return 1;g[S=U&C]=G<<24|Z<<16|T-m|0}}return U!==0&&(g[T+U]=E-W<<24|64<<16|0),x.bits=G,0}},{"../utils/common":41}],51:[function(n,r,o){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,o){var i=n("../utils/common"),s=0,a=1;function l(z){for(var F=z.length;0<=--F;)z[F]=0}var c=0,u=29,f=256,p=f+1+u,d=30,g=19,m=2*p+1,y=15,x=16,b=7,k=256,S=16,C=17,T=18,j=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],P=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(2*(p+2));l(B);var E=new Array(2*d);l(E);var L=new Array(512);l(L);var v=new Array(256);l(v);var D=new Array(u);l(D);var G,Z,W,q=new Array(d);function A(z,F,te,re,V){this.static_tree=z,this.extra_bits=F,this.extra_base=te,this.elems=re,this.max_length=V,this.has_stree=z&&z.length}function U(z,F){this.dyn_tree=z,this.max_code=0,this.stat_desc=F}function R(z){return z<256?L[z]:L[256+(z>>>7)]}function N(z,F){z.pending_buf[z.pending++]=255&F,z.pending_buf[z.pending++]=F>>>8&255}function Y(z,F,te){z.bi_valid>x-te?(z.bi_buf|=F<<z.bi_valid&65535,N(z,z.bi_buf),z.bi_buf=F>>x-z.bi_valid,z.bi_valid+=te-x):(z.bi_buf|=F<<z.bi_valid&65535,z.bi_valid+=te)}function Q(z,F,te){Y(z,te[2*F],te[2*F+1])}function pe(z,F){for(var te=0;te|=1&z,z>>>=1,te<<=1,0<--F;);return te>>>1}function X(z,F,te){var re,V,ie=new Array(y+1),ue=0;for(re=1;re<=y;re++)ie[re]=ue=ue+te[re-1]<<1;for(V=0;V<=F;V++){var se=z[2*V+1];se!==0&&(z[2*V]=pe(ie[se]++,se))}}function ae(z){var F;for(F=0;F<p;F++)z.dyn_ltree[2*F]=0;for(F=0;F<d;F++)z.dyn_dtree[2*F]=0;for(F=0;F<g;F++)z.bl_tree[2*F]=0;z.dyn_ltree[2*k]=1,z.opt_len=z.static_len=0,z.last_lit=z.matches=0}function de(z){8<z.bi_valid?N(z,z.bi_buf):0<z.bi_valid&&(z.pending_buf[z.pending++]=z.bi_buf),z.bi_buf=0,z.bi_valid=0}function ge(z,F,te,re){var V=2*F,ie=2*te;return z[V]<z[ie]||z[V]===z[ie]&&re[F]<=re[te]}function xe(z,F,te){for(var re=z.heap[te],V=te<<1;V<=z.heap_len&&(V<z.heap_len&&ge(F,z.heap[V+1],z.heap[V],z.depth)&&V++,!ge(F,re,z.heap[V],z.depth));)z.heap[te]=z.heap[V],te=V,V<<=1;z.heap[te]=re}function Ee(z,F,te){var re,V,ie,ue,se=0;if(z.last_lit!==0)for(;re=z.pending_buf[z.d_buf+2*se]<<8|z.pending_buf[z.d_buf+2*se+1],V=z.pending_buf[z.l_buf+se],se++,re===0?Q(z,V,F):(Q(z,(ie=v[V])+f+1,F),(ue=j[ie])!==0&&Y(z,V-=D[ie],ue),Q(z,ie=R(--re),te),(ue=P[ie])!==0&&Y(z,re-=q[ie],ue)),se<z.last_lit;);Q(z,k,F)}function Oe(z,F){var te,re,V,ie=F.dyn_tree,ue=F.stat_desc.static_tree,se=F.stat_desc.has_stree,$=F.stat_desc.elems,ne=-1;for(z.heap_len=0,z.heap_max=m,te=0;te<$;te++)ie[2*te]!==0?(z.heap[++z.heap_len]=ne=te,z.depth[te]=0):ie[2*te+1]=0;for(;z.heap_len<2;)ie[2*(V=z.heap[++z.heap_len]=ne<2?++ne:0)]=1,z.depth[V]=0,z.opt_len--,se&&(z.static_len-=ue[2*V+1]);for(F.max_code=ne,te=z.heap_len>>1;1<=te;te--)xe(z,ie,te);for(V=$;te=z.heap[1],z.heap[1]=z.heap[z.heap_len--],xe(z,ie,1),re=z.heap[1],z.heap[--z.heap_max]=te,z.heap[--z.heap_max]=re,ie[2*V]=ie[2*te]+ie[2*re],z.depth[V]=(z.depth[te]>=z.depth[re]?z.depth[te]:z.depth[re])+1,ie[2*te+1]=ie[2*re+1]=V,z.heap[1]=V++,xe(z,ie,1),2<=z.heap_len;);z.heap[--z.heap_max]=z.heap[1],(function(le,ve){var Ae,Ze,it,je,_t,Ot,$e=ve.dyn_tree,Rt=ve.max_code,gt=ve.stat_desc.static_tree,vh=ve.stat_desc.has_stree,bh=ve.stat_desc.extra_bits,$s=ve.stat_desc.extra_base,Wn=ve.stat_desc.max_length,vr=0;for(je=0;je<=y;je++)le.bl_count[je]=0;for($e[2*le.heap[le.heap_max]+1]=0,Ae=le.heap_max+1;Ae<m;Ae++)Wn<(je=$e[2*$e[2*(Ze=le.heap[Ae])+1]+1]+1)&&(je=Wn,vr++),$e[2*Ze+1]=je,Rt<Ze||(le.bl_count[je]++,_t=0,$s<=Ze&&(_t=bh[Ze-$s]),Ot=$e[2*Ze],le.opt_len+=Ot*(je+_t),vh&&(le.static_len+=Ot*(gt[2*Ze+1]+_t)));if(vr!==0){do{for(je=Wn-1;le.bl_count[je]===0;)je--;le.bl_count[je]--,le.bl_count[je+1]+=2,le.bl_count[Wn]--,vr-=2}while(0<vr);for(je=Wn;je!==0;je--)for(Ze=le.bl_count[je];Ze!==0;)Rt<(it=le.heap[--Ae])||($e[2*it+1]!==je&&(le.opt_len+=(je-$e[2*it+1])*$e[2*it],$e[2*it+1]=je),Ze--)}})(z,F),X(ie,ne,z.bl_count)}function w(z,F,te){var re,V,ie=-1,ue=F[1],se=0,$=7,ne=4;for(ue===0&&($=138,ne=3),F[2*(te+1)+1]=65535,re=0;re<=te;re++)V=ue,ue=F[2*(re+1)+1],++se<$&&V===ue||(se<ne?z.bl_tree[2*V]+=se:V!==0?(V!==ie&&z.bl_tree[2*V]++,z.bl_tree[2*S]++):se<=10?z.bl_tree[2*C]++:z.bl_tree[2*T]++,ie=V,ne=(se=0)===ue?($=138,3):V===ue?($=6,3):($=7,4))}function J(z,F,te){var re,V,ie=-1,ue=F[1],se=0,$=7,ne=4;for(ue===0&&($=138,ne=3),re=0;re<=te;re++)if(V=ue,ue=F[2*(re+1)+1],!(++se<$&&V===ue)){if(se<ne)for(;Q(z,V,z.bl_tree),--se!=0;);else V!==0?(V!==ie&&(Q(z,V,z.bl_tree),se--),Q(z,S,z.bl_tree),Y(z,se-3,2)):se<=10?(Q(z,C,z.bl_tree),Y(z,se-3,3)):(Q(z,T,z.bl_tree),Y(z,se-11,7));ie=V,ne=(se=0)===ue?($=138,3):V===ue?($=6,3):($=7,4)}}l(q);var H=!1;function I(z,F,te,re){Y(z,(c<<1)+(re?1:0),3),(function(V,ie,ue,se){de(V),N(V,ue),N(V,~ue),i.arraySet(V.pending_buf,V.window,ie,ue,V.pending),V.pending+=ue})(z,F,te)}o._tr_init=function(z){H||((function(){var F,te,re,V,ie,ue=new Array(y+1);for(V=re=0;V<u-1;V++)for(D[V]=re,F=0;F<1<<j[V];F++)v[re++]=V;for(v[re-1]=V,V=ie=0;V<16;V++)for(q[V]=ie,F=0;F<1<<P[V];F++)L[ie++]=V;for(ie>>=7;V<d;V++)for(q[V]=ie<<7,F=0;F<1<<P[V]-7;F++)L[256+ie++]=V;for(te=0;te<=y;te++)ue[te]=0;for(F=0;F<=143;)B[2*F+1]=8,F++,ue[8]++;for(;F<=255;)B[2*F+1]=9,F++,ue[9]++;for(;F<=279;)B[2*F+1]=7,F++,ue[7]++;for(;F<=287;)B[2*F+1]=8,F++,ue[8]++;for(X(B,p+1,ue),F=0;F<d;F++)E[2*F+1]=5,E[2*F]=pe(F,5);G=new A(B,j,f+1,p,y),Z=new A(E,P,0,d,y),W=new A(new Array(0),O,0,g,b)})(),H=!0),z.l_desc=new U(z.dyn_ltree,G),z.d_desc=new U(z.dyn_dtree,Z),z.bl_desc=new U(z.bl_tree,W),z.bi_buf=0,z.bi_valid=0,ae(z)},o._tr_stored_block=I,o._tr_flush_block=function(z,F,te,re){var V,ie,ue=0;0<z.level?(z.strm.data_type===2&&(z.strm.data_type=(function(se){var $,ne=4093624447;for($=0;$<=31;$++,ne>>>=1)if(1&ne&&se.dyn_ltree[2*$]!==0)return s;if(se.dyn_ltree[18]!==0||se.dyn_ltree[20]!==0||se.dyn_ltree[26]!==0)return a;for($=32;$<f;$++)if(se.dyn_ltree[2*$]!==0)return a;return s})(z)),Oe(z,z.l_desc),Oe(z,z.d_desc),ue=(function(se){var $;for(w(se,se.dyn_ltree,se.l_desc.max_code),w(se,se.dyn_dtree,se.d_desc.max_code),Oe(se,se.bl_desc),$=g-1;3<=$&&se.bl_tree[2*M[$]+1]===0;$--);return se.opt_len+=3*($+1)+5+5+4,$})(z),V=z.opt_len+3+7>>>3,(ie=z.static_len+3+7>>>3)<=V&&(V=ie)):V=ie=te+5,te+4<=V&&F!==-1?I(z,F,te,re):z.strategy===4||ie===V?(Y(z,2+(re?1:0),3),Ee(z,B,E)):(Y(z,4+(re?1:0),3),(function(se,$,ne,le){var ve;for(Y(se,$-257,5),Y(se,ne-1,5),Y(se,le-4,4),ve=0;ve<le;ve++)Y(se,se.bl_tree[2*M[ve]+1],3);J(se,se.dyn_ltree,$-1),J(se,se.dyn_dtree,ne-1)})(z,z.l_desc.max_code+1,z.d_desc.max_code+1,ue+1),Ee(z,z.dyn_ltree,z.dyn_dtree)),ae(z),re&&de(z)},o._tr_tally=function(z,F,te){return z.pending_buf[z.d_buf+2*z.last_lit]=F>>>8&255,z.pending_buf[z.d_buf+2*z.last_lit+1]=255&F,z.pending_buf[z.l_buf+z.last_lit]=255&te,z.last_lit++,F===0?z.dyn_ltree[2*te]++:(z.matches++,F--,z.dyn_ltree[2*(v[te]+f+1)]++,z.dyn_dtree[2*R(F)]++),z.last_lit===z.lit_bufsize-1},o._tr_align=function(z){Y(z,2,3),Q(z,k,B),(function(F){F.bi_valid===16?(N(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):8<=F.bi_valid&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)})(z)}},{"../utils/common":41}],53:[function(n,r,o){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,o){(function(i){(function(s,a){if(!s.setImmediate){var l,c,u,f,p=1,d={},g=!1,m=s.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(s);y=y&&y.setTimeout?y:s,l={}.toString.call(s.process)==="[object process]"?function(S){process.nextTick(function(){b(S)})}:(function(){if(s.postMessage&&!s.importScripts){var S=!0,C=s.onmessage;return s.onmessage=function(){S=!1},s.postMessage("","*"),s.onmessage=C,S}})()?(f="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",k,!1):s.attachEvent("onmessage",k),function(S){s.postMessage(f+S,"*")}):s.MessageChannel?((u=new MessageChannel).port1.onmessage=function(S){b(S.data)},function(S){u.port2.postMessage(S)}):m&&"onreadystatechange"in m.createElement("script")?(c=m.documentElement,function(S){var C=m.createElement("script");C.onreadystatechange=function(){b(S),C.onreadystatechange=null,c.removeChild(C),C=null},c.appendChild(C)}):function(S){setTimeout(b,0,S)},y.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var C=new Array(arguments.length-1),T=0;T<C.length;T++)C[T]=arguments[T+1];var j={callback:S,args:C};return d[p]=j,l(p),p++},y.clearImmediate=x}function x(S){delete d[S]}function b(S){if(g)setTimeout(b,0,S);else{var C=d[S];if(C){g=!0;try{(function(T){var j=T.callback,P=T.args;switch(P.length){case 0:j();break;case 1:j(P[0]);break;case 2:j(P[0],P[1]);break;case 3:j(P[0],P[1],P[2]);break;default:j.apply(a,P)}})(C)}finally{x(S),g=!1}}}}function k(S){S.source===s&&typeof S.data=="string"&&S.data.indexOf(f)===0&&b(+S.data.slice(f.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof br<"u"?br:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Ro)),Ro.exports}var zv=Av();const jv=Li(zv);async function Iv(e){try{const t=await fetch(`/api/logs/${e}/chunks`);if(!t.ok)return null;const n=await t.json();return JSON.stringify(n,null,2)}catch{return null}}async function Pv(e){const t=new jv;for(const s of e)s.rawRequestBody!==null&&t.file(`#${s.id}.Request.json`,s.rawRequestBody),s.responseText!==null&&t.file(`#${s.id}.Response.json`,s.responseText);const n=e.filter(s=>s.streaming);await Promise.allSettled(n.map(async s=>{const a=await Iv(s.id);a!==null&&t.file(`#${s.id}.SSE.Response.json`,a)}));const r=await t.generateAsync({type:"blob"}),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=`llm-inspector-export-${new Date().toISOString().slice(0,10)}.zip`,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}const Ov="1.9.9",Rv={version:Ov};function Hc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hc(e))&&(r&&(r+=" "),r+=t);return r}const Dv=(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},Mv=(e,t)=>({classGroupId:e,validator:t}),Gc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Hr="-",ba=[],Lv="arbitrary..",Fv=e=>{const t=Bv(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return $v(s);const a=s.split(Hr),l=a[0]===""&&a.length>1?1:0;return Kc(a,l,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const l=r[s],c=n[s];return l?c?Dv(c,l):l:c||ba}return n[s]||ba}}},Kc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],i=n.nextPart.get(o);if(i){const c=Kc(e,t+1,i);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(Hr):e.slice(t).join(Hr),l=s.length;for(let c=0;c<l;c++){const u=s[c];if(u.validator(a))return u.classGroupId}},$v=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?Lv+r:void 0})(),Bv=e=>{const{theme:t,classGroups:n}=e;return Uv(n,t)},Uv=(e,t)=>{const n=Gc();for(const r in e){const o=e[r];Yi(o,n,r,t)}return n},Yi=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const s=e[i];Zv(s,t,n,r)}},Zv=(e,t,n,r)=>{if(typeof e=="string"){Vv(e,t,n);return}if(typeof e=="function"){Wv(e,t,n,r);return}Hv(e,t,n,r)},Vv=(e,t,n)=>{const r=e===""?t:Yc(t,e);r.classGroupId=n},Wv=(e,t,n,r)=>{if(qv(e)){Yi(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Mv(n,e))},Hv=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let s=0;s<i;s++){const[a,l]=o[s];Yi(l,Yc(t,a),n,r)}},Yc=(e,t)=>{let n=e;const r=t.split(Hr),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Gc(),n.nextPart.set(s,a)),n=a}return n},qv=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return o(i,s),s},set(i,s){i in n?n[i]=s:o(i,s)}}},hi="!",wa=":",Kv=[],_a=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),Yv=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const i=[];let s=0,a=0,l=0,c;const u=o.length;for(let m=0;m<u;m++){const y=o[m];if(s===0&&a===0){if(y===wa){i.push(o.slice(l,m)),l=m+1;continue}if(y==="/"){c=m;continue}}y==="["?s++:y==="]"?s--:y==="("?a++:y===")"&&a--}const f=i.length===0?o:o.slice(l);let p=f,d=!1;f.endsWith(hi)?(p=f.slice(0,-1),d=!0):f.startsWith(hi)&&(p=f.slice(1),d=!0);const g=c&&c>l?c-l:void 0;return _a(i,d,p,g)};if(t){const o=t+wa,i=r;r=s=>s.startsWith(o)?i(s.slice(o.length)):_a(Kv,!1,s,void 0,!0)}if(n){const o=r;r=i=>n({className:i,parseClassName:o})}return r},Jv=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",l=t.has(s);a||l?(o.length>0&&(o.sort(),r.push(...o),o=[]),r.push(s)):o.push(s)}return o.length>0&&(o.sort(),r.push(...o)),r}},Xv=e=>({cache:Gv(e.cacheSize),parseClassName:Yv(e),sortModifiers:Jv(e),...Fv(e)}),Qv=/\s+/,eb=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,s=[],a=e.trim().split(Qv);let l="";for(let c=a.length-1;c>=0;c-=1){const u=a[c],{isExternal:f,modifiers:p,hasImportantModifier:d,baseClassName:g,maybePostfixModifierPosition:m}=n(u);if(f){l=u+(l.length>0?" "+l:l);continue}let y=!!m,x=r(y?g.substring(0,m):g);if(!x){if(!y){l=u+(l.length>0?" "+l:l);continue}if(x=r(g),!x){l=u+(l.length>0?" "+l:l);continue}y=!1}const b=p.length===0?"":p.length===1?p[0]:i(p).join(":"),k=d?b+hi:b,S=k+x;if(s.indexOf(S)>-1)continue;s.push(S);const C=o(x,y);for(let T=0;T<C.length;++T){const j=C[T];s.push(k+j)}l=u+(l.length>0?" "+l:l)}return l},tb=(...e)=>{let t=0,n,r,o="";for(;t<e.length;)(n=e[t++])&&(r=Jc(n))&&(o&&(o+=" "),o+=r);return o},Jc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Jc(e[r]))&&(n&&(n+=" "),n+=t);return n},nb=(e,...t)=>{let n,r,o,i;const s=l=>{const c=t.reduce((u,f)=>f(u),e());return n=Xv(c),r=n.cache.get,o=n.cache.set,i=a,a(l)},a=l=>{const c=r(l);if(c)return c;const u=eb(l,n);return o(l,u),u};return i=s,(...l)=>i(tb(...l))},rb=[],He=e=>{const t=n=>n[e]||rb;return t.isThemeGetter=!0,t},Xc=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Qc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ob=/^\d+\/\d+$/,ib=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,sb=/\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$/,ab=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,lb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,hn=e=>ob.test(e),Ce=e=>!!e&&!Number.isNaN(Number(e)),Ut=e=>!!e&&Number.isInteger(Number(e)),Do=e=>e.endsWith("%")&&Ce(e.slice(0,-1)),Dt=e=>ib.test(e),ub=()=>!0,db=e=>sb.test(e)&&!ab.test(e),eu=()=>!1,fb=e=>lb.test(e),hb=e=>cb.test(e),pb=e=>!fe(e)&&!he(e),mb=e=>Ln(e,ru,eu),fe=e=>Xc.test(e),en=e=>Ln(e,ou,db),Mo=e=>Ln(e,bb,Ce),ka=e=>Ln(e,tu,eu),gb=e=>Ln(e,nu,hb),Cr=e=>Ln(e,iu,fb),he=e=>Qc.test(e),qn=e=>Fn(e,ou),xb=e=>Fn(e,wb),Sa=e=>Fn(e,tu),yb=e=>Fn(e,ru),vb=e=>Fn(e,nu),Er=e=>Fn(e,iu,!0),Ln=(e,t,n)=>{const r=Xc.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Fn=(e,t,n=!1)=>{const r=Qc.exec(e);return r?r[1]?t(r[1]):n:!1},tu=e=>e==="position"||e==="percentage",nu=e=>e==="image"||e==="url",ru=e=>e==="length"||e==="size"||e==="bg-size",ou=e=>e==="length",bb=e=>e==="number",wb=e=>e==="family-name",iu=e=>e==="shadow",_b=()=>{const e=He("color"),t=He("font"),n=He("text"),r=He("font-weight"),o=He("tracking"),i=He("leading"),s=He("breakpoint"),a=He("container"),l=He("spacing"),c=He("radius"),u=He("shadow"),f=He("inset-shadow"),p=He("text-shadow"),d=He("drop-shadow"),g=He("blur"),m=He("perspective"),y=He("aspect"),x=He("ease"),b=He("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],C=()=>[...S(),he,fe],T=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],P=()=>[he,fe,l],O=()=>[hn,"full","auto",...P()],M=()=>[Ut,"none","subgrid",he,fe],B=()=>["auto",{span:["full",Ut,he,fe]},Ut,he,fe],E=()=>[Ut,"auto",he,fe],L=()=>["auto","min","max","fr",he,fe],v=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...P()],Z=()=>[hn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],W=()=>[e,he,fe],q=()=>[...S(),Sa,ka,{position:[he,fe]}],A=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",yb,mb,{size:[he,fe]}],R=()=>[Do,qn,en],N=()=>["","none","full",c,he,fe],Y=()=>["",Ce,qn,en],Q=()=>["solid","dashed","dotted","double"],pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],X=()=>[Ce,Do,Sa,ka],ae=()=>["","none",g,he,fe],de=()=>["none",Ce,he,fe],ge=()=>["none",Ce,he,fe],xe=()=>[Ce,he,fe],Ee=()=>[hn,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dt],breakpoint:[Dt],color:[ub],container:[Dt],"drop-shadow":[Dt],ease:["in","out","in-out"],font:[pb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dt],shadow:[Dt],spacing:["px",Ce],text:[Dt],"text-shadow":[Dt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",hn,fe,he,y]}],container:["container"],columns:[{columns:[Ce,fe,he,a]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:C()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[Ut,"auto",he,fe]}],basis:[{basis:[hn,"full","auto",a,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ce,hn,"auto","initial","none",fe]}],grow:[{grow:["",Ce,he,fe]}],shrink:[{shrink:["",Ce,he,fe]}],order:[{order:[Ut,"first","last","none",he,fe]}],"grid-cols":[{"grid-cols":M()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":M()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...v(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...v()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":v()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:Z()}],w:[{w:[a,"screen",...Z()]}],"min-w":[{"min-w":[a,"screen","none",...Z()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...Z()]}],h:[{h:["screen","lh",...Z()]}],"min-h":[{"min-h":["screen","lh","none",...Z()]}],"max-h":[{"max-h":["screen","lh",...Z()]}],"font-size":[{text:["base",n,qn,en]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,he,Mo]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Do,fe]}],"font-family":[{font:[xb,fe,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:[o,he,fe]}],"line-clamp":[{"line-clamp":[Ce,"none",he,Mo]}],leading:[{leading:[i,...P()]}],"list-image":[{"list-image":["none",he,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:W()}],"text-color":[{text:W()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Q(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ce,"from-font","auto",he,en]}],"text-decoration-color":[{decoration:W()}],"underline-offset":[{"underline-offset":[Ce,"auto",he,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",he,fe]}],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",he,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:q()}],"bg-repeat":[{bg:A()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ut,he,fe],radial:["",he,fe],conic:[Ut,he,fe]},vb,gb]}],"bg-color":[{bg:W()}],"gradient-from-pos":[{from:R()}],"gradient-via-pos":[{via:R()}],"gradient-to-pos":[{to:R()}],"gradient-from":[{from:W()}],"gradient-via":[{via:W()}],"gradient-to":[{to:W()}],rounded:[{rounded:N()}],"rounded-s":[{"rounded-s":N()}],"rounded-e":[{"rounded-e":N()}],"rounded-t":[{"rounded-t":N()}],"rounded-r":[{"rounded-r":N()}],"rounded-b":[{"rounded-b":N()}],"rounded-l":[{"rounded-l":N()}],"rounded-ss":[{"rounded-ss":N()}],"rounded-se":[{"rounded-se":N()}],"rounded-ee":[{"rounded-ee":N()}],"rounded-es":[{"rounded-es":N()}],"rounded-tl":[{"rounded-tl":N()}],"rounded-tr":[{"rounded-tr":N()}],"rounded-br":[{"rounded-br":N()}],"rounded-bl":[{"rounded-bl":N()}],"border-w":[{border:Y()}],"border-w-x":[{"border-x":Y()}],"border-w-y":[{"border-y":Y()}],"border-w-s":[{"border-s":Y()}],"border-w-e":[{"border-e":Y()}],"border-w-t":[{"border-t":Y()}],"border-w-r":[{"border-r":Y()}],"border-w-b":[{"border-b":Y()}],"border-w-l":[{"border-l":Y()}],"divide-x":[{"divide-x":Y()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Y()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Q(),"hidden","none"]}],"divide-style":[{divide:[...Q(),"hidden","none"]}],"border-color":[{border:W()}],"border-color-x":[{"border-x":W()}],"border-color-y":[{"border-y":W()}],"border-color-s":[{"border-s":W()}],"border-color-e":[{"border-e":W()}],"border-color-t":[{"border-t":W()}],"border-color-r":[{"border-r":W()}],"border-color-b":[{"border-b":W()}],"border-color-l":[{"border-l":W()}],"divide-color":[{divide:W()}],"outline-style":[{outline:[...Q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ce,he,fe]}],"outline-w":[{outline:["",Ce,qn,en]}],"outline-color":[{outline:W()}],shadow:[{shadow:["","none",u,Er,Cr]}],"shadow-color":[{shadow:W()}],"inset-shadow":[{"inset-shadow":["none",f,Er,Cr]}],"inset-shadow-color":[{"inset-shadow":W()}],"ring-w":[{ring:Y()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:W()}],"ring-offset-w":[{"ring-offset":[Ce,en]}],"ring-offset-color":[{"ring-offset":W()}],"inset-ring-w":[{"inset-ring":Y()}],"inset-ring-color":[{"inset-ring":W()}],"text-shadow":[{"text-shadow":["none",p,Er,Cr]}],"text-shadow-color":[{"text-shadow":W()}],opacity:[{opacity:[Ce,he,fe]}],"mix-blend":[{"mix-blend":[...pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":pe()}],"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":[Ce]}],"mask-image-linear-from-pos":[{"mask-linear-from":X()}],"mask-image-linear-to-pos":[{"mask-linear-to":X()}],"mask-image-linear-from-color":[{"mask-linear-from":W()}],"mask-image-linear-to-color":[{"mask-linear-to":W()}],"mask-image-t-from-pos":[{"mask-t-from":X()}],"mask-image-t-to-pos":[{"mask-t-to":X()}],"mask-image-t-from-color":[{"mask-t-from":W()}],"mask-image-t-to-color":[{"mask-t-to":W()}],"mask-image-r-from-pos":[{"mask-r-from":X()}],"mask-image-r-to-pos":[{"mask-r-to":X()}],"mask-image-r-from-color":[{"mask-r-from":W()}],"mask-image-r-to-color":[{"mask-r-to":W()}],"mask-image-b-from-pos":[{"mask-b-from":X()}],"mask-image-b-to-pos":[{"mask-b-to":X()}],"mask-image-b-from-color":[{"mask-b-from":W()}],"mask-image-b-to-color":[{"mask-b-to":W()}],"mask-image-l-from-pos":[{"mask-l-from":X()}],"mask-image-l-to-pos":[{"mask-l-to":X()}],"mask-image-l-from-color":[{"mask-l-from":W()}],"mask-image-l-to-color":[{"mask-l-to":W()}],"mask-image-x-from-pos":[{"mask-x-from":X()}],"mask-image-x-to-pos":[{"mask-x-to":X()}],"mask-image-x-from-color":[{"mask-x-from":W()}],"mask-image-x-to-color":[{"mask-x-to":W()}],"mask-image-y-from-pos":[{"mask-y-from":X()}],"mask-image-y-to-pos":[{"mask-y-to":X()}],"mask-image-y-from-color":[{"mask-y-from":W()}],"mask-image-y-to-color":[{"mask-y-to":W()}],"mask-image-radial":[{"mask-radial":[he,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":X()}],"mask-image-radial-to-pos":[{"mask-radial-to":X()}],"mask-image-radial-from-color":[{"mask-radial-from":W()}],"mask-image-radial-to-color":[{"mask-radial-to":W()}],"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":S()}],"mask-image-conic-pos":[{"mask-conic":[Ce]}],"mask-image-conic-from-pos":[{"mask-conic-from":X()}],"mask-image-conic-to-pos":[{"mask-conic-to":X()}],"mask-image-conic-from-color":[{"mask-conic-from":W()}],"mask-image-conic-to-color":[{"mask-conic-to":W()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:q()}],"mask-repeat":[{mask:A()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,fe]}],filter:[{filter:["","none",he,fe]}],blur:[{blur:ae()}],brightness:[{brightness:[Ce,he,fe]}],contrast:[{contrast:[Ce,he,fe]}],"drop-shadow":[{"drop-shadow":["","none",d,Er,Cr]}],"drop-shadow-color":[{"drop-shadow":W()}],grayscale:[{grayscale:["",Ce,he,fe]}],"hue-rotate":[{"hue-rotate":[Ce,he,fe]}],invert:[{invert:["",Ce,he,fe]}],saturate:[{saturate:[Ce,he,fe]}],sepia:[{sepia:["",Ce,he,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",he,fe]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[Ce,he,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Ce,he,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ce,he,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ce,he,fe]}],"backdrop-invert":[{"backdrop-invert":["",Ce,he,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Ce,he,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Ce,he,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ce,he,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",he,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ce,"initial",he,fe]}],ease:[{ease:["linear","initial",x,he,fe]}],delay:[{delay:[Ce,he,fe]}],animate:[{animate:["none",b,he,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,he,fe]}],"perspective-origin":[{"perspective-origin":C()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[he,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:C()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ee()}],"translate-x":[{"translate-x":Ee()}],"translate-y":[{"translate-y":Ee()}],"translate-z":[{"translate-z":Ee()}],"translate-none":["translate-none"],accent:[{accent:W()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:W()}],"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",he,fe]}],"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":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",he,fe]}],fill:[{fill:["none",...W()]}],"stroke-w":[{stroke:[Ce,qn,en,Mo]}],stroke:[{stroke:["none",...W()]}],"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"]}},kb=nb(_b);function ze(...e){return kb(qc(e))}function Ge(e){return e>=1048576?(e/1048576).toFixed(1).replace(/\.0$/,"")+"M":e>=1024?(e/1024).toFixed(1).replace(/\.0$/,"")+"K":e.toString()}function su(e){return e===null?"pending":e>=200&&e<300?"success":e>=400&&e<500?"client_error":e>=500?"server_error":"pending"}function Ca(e){return new Date(e).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Sb({conversationId:e,startTime:t,endTime:n,totalCalls:r,totalInputTokens:o,totalOutputTokens:i,expanded:s,onToggle:a}){return h.jsxs("div",{role:"button",tabIndex:0,className:ze("flex items-center gap-3 px-3 py-2 cursor-pointer transition-colors","hover:bg-muted/50","select-none","border border-border rounded-lg mb-2 bg-muted/30"),onClick:a,onKeyDown:l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),a())},children:[s?h.jsx(At,{className:"size-4 text-muted-foreground shrink-0"}):h.jsx(Wt,{className:"size-4 text-muted-foreground shrink-0"}),h.jsx("span",{className:"text-purple-400/90 font-mono text-xs font-semibold shrink-0",title:e,children:e.length>24?e.slice(0,12)+"…"+e.slice(-12):e}),h.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground text-xs shrink-0",children:[h.jsx(Ki,{className:"size-3"}),h.jsxs("span",{className:"font-mono tabular-nums",children:[Ca(t)," - ",Ca(n)]})]}),h.jsxs("span",{className:"flex items-center gap-1 text-muted-foreground text-xs shrink-0",children:[h.jsx(Zc,{className:"size-3"}),h.jsxs("span",{className:"font-mono tabular-nums",children:[r," call",r!==1?"s":""]})]}),h.jsxs("span",{className:"flex items-center gap-1 text-xs shrink-0",children:[h.jsx(hr,{className:"size-3 text-muted-foreground"}),h.jsxs("span",{className:"font-mono tabular-nums",children:[h.jsx("span",{className:"text-blue-400",children:Ge(o)})," / ",h.jsx("span",{className:"text-amber-400",children:Ge(i)})]})]}),h.jsx("span",{className:"flex-1 min-w-0"})]})}function Cb(e){if(e.sessionId!==null&&e.sessionId!=="")return e.sessionId;const t=e.clientPid!==null?`PID:${e.clientPid}`:"unknown",n=e.clientProjectFolder!==null?e.clientProjectFolder:"no-folder";return`${t}|${n}`}function Eb(e){const t=new Map;for(const r of e){const o=Cb(r),i=t.get(o);i!==void 0?i.push(r):t.set(o,[r])}const n=[];for(const[r,o]of t){const i=[...o].sort((s,a)=>s.timestamp.localeCompare(a.timestamp));n.push({id:r,conversationId:r,logs:i})}return n.sort((r,o)=>(r.logs[0]?.timestamp??"").localeCompare(o.logs[0]?.timestamp??"")),n}const Ea=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ta=qc,Ji=(e,t)=>n=>{var r;if(t?.variants==null)return Ta(e,n?.class,n?.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(c=>{const u=n?.[c],f=i?.[c];if(u===null)return null;const p=Ea(u)||Ea(f);return o[c][p]}),a=n&&Object.entries(n).reduce((c,u)=>{let[f,p]=u;return p===void 0||(c[f]=p),c},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((c,u)=>{let{class:f,className:p,...d}=u;return Object.entries(d).every(g=>{let[m,y]=g;return Array.isArray(y)?y.includes({...i,...a}[m]):{...i,...a}[m]===y})?[...c,f,p]:c},[]);return Ta(e,s,l,n?.class,n?.className)},Tb=Ji("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ft({className:e,variant:t,size:n,...r}){return h.jsx("button",{"data-slot":"button",className:ze(Tb({variant:t,size:n,className:e})),...r})}function Nb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ab=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jb={};function Na(e,t){return(jb.jsx?zb:Ab).test(e)}const Ib=/[ \t\n\f\r]/g;function Pb(e){return typeof e=="object"?e.type==="text"?Aa(e.value):!1:Aa(e)}function Aa(e){return e.replace(Ib,"")===""}class pr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}pr.prototype.normal={};pr.prototype.property={};pr.prototype.space=void 0;function au(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new pr(n,r,t)}function pi(e){return e.toLowerCase()}class ot{constructor(t,n){this.attribute=n,this.property=t}}ot.prototype.attribute="";ot.prototype.booleanish=!1;ot.prototype.boolean=!1;ot.prototype.commaOrSpaceSeparated=!1;ot.prototype.commaSeparated=!1;ot.prototype.defined=!1;ot.prototype.mustUseProperty=!1;ot.prototype.number=!1;ot.prototype.overloadedBoolean=!1;ot.prototype.property="";ot.prototype.spaceSeparated=!1;ot.prototype.space=void 0;let Ob=0;const Se=un(),We=un(),mi=un(),oe=un(),Re=un(),Sn=un(),st=un();function un(){return 2**++Ob}const gi=Object.freeze(Object.defineProperty({__proto__:null,boolean:Se,booleanish:We,commaOrSpaceSeparated:st,commaSeparated:Sn,number:oe,overloadedBoolean:mi,spaceSeparated:Re},Symbol.toStringTag,{value:"Module"})),Lo=Object.keys(gi);class Xi extends ot{constructor(t,n,r,o){let i=-1;if(super(t,n),za(this,"space",o),typeof r=="number")for(;++i<Lo.length;){const s=Lo[i];za(this,Lo[i],(r&gi[s])===gi[s])}}}Xi.prototype.defined=!0;function za(e,t,n){n&&(e[t]=n)}function $n(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Xi(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[pi(r)]=r,n[pi(i.attribute)]=r}return new pr(t,n,e.space)}const lu=$n({properties:{ariaActiveDescendant:null,ariaAtomic:We,ariaAutoComplete:null,ariaBusy:We,ariaChecked:We,ariaColCount:oe,ariaColIndex:oe,ariaColSpan:oe,ariaControls:Re,ariaCurrent:null,ariaDescribedBy:Re,ariaDetails:null,ariaDisabled:We,ariaDropEffect:Re,ariaErrorMessage:null,ariaExpanded:We,ariaFlowTo:Re,ariaGrabbed:We,ariaHasPopup:null,ariaHidden:We,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Re,ariaLevel:oe,ariaLive:null,ariaModal:We,ariaMultiLine:We,ariaMultiSelectable:We,ariaOrientation:null,ariaOwns:Re,ariaPlaceholder:null,ariaPosInSet:oe,ariaPressed:We,ariaReadOnly:We,ariaRelevant:null,ariaRequired:We,ariaRoleDescription:Re,ariaRowCount:oe,ariaRowIndex:oe,ariaRowSpan:oe,ariaSelected:We,ariaSetSize:oe,ariaSort:null,ariaValueMax:oe,ariaValueMin:oe,ariaValueNow:oe,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function cu(e,t){return t in e?e[t]:t}function uu(e,t){return cu(e,t.toLowerCase())}const Rb=$n({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Sn,acceptCharset:Re,accessKey:Re,action:null,allow:null,allowFullScreen:Se,allowPaymentRequest:Se,allowUserMedia:Se,alt:null,as:null,async:Se,autoCapitalize:null,autoComplete:Re,autoFocus:Se,autoPlay:Se,blocking:Re,capture:null,charSet:null,checked:Se,cite:null,className:Re,cols:oe,colSpan:null,content:null,contentEditable:We,controls:Se,controlsList:Re,coords:oe|Sn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Se,defer:Se,dir:null,dirName:null,disabled:Se,download:mi,draggable:We,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Se,formTarget:null,headers:Re,height:oe,hidden:mi,high:oe,href:null,hrefLang:null,htmlFor:Re,httpEquiv:Re,id:null,imageSizes:null,imageSrcSet:null,inert:Se,inputMode:null,integrity:null,is:null,isMap:Se,itemId:null,itemProp:Re,itemRef:Re,itemScope:Se,itemType:Re,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Se,low:oe,manifest:null,max:null,maxLength:oe,media:null,method:null,min:null,minLength:oe,multiple:Se,muted:Se,name:null,nonce:null,noModule:Se,noValidate:Se,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:Se,optimum:oe,pattern:null,ping:Re,placeholder:null,playsInline:Se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Se,referrerPolicy:null,rel:Re,required:Se,reversed:Se,rows:oe,rowSpan:oe,sandbox:Re,scope:null,scoped:Se,seamless:Se,selected:Se,shadowRootClonable:Se,shadowRootDelegatesFocus:Se,shadowRootMode:null,shape:null,size:oe,sizes:null,slot:null,span:oe,spellCheck:We,src:null,srcDoc:null,srcLang:null,srcSet:null,start:oe,step:null,style:null,tabIndex:oe,target:null,title:null,translate:null,type:null,typeMustMatch:Se,useMap:null,value:We,width:oe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Re,axis:null,background:null,bgColor:null,border:oe,borderColor:null,bottomMargin:oe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Se,declare:Se,event:null,face:null,frame:null,frameBorder:null,hSpace:oe,leftMargin:oe,link:null,longDesc:null,lowSrc:null,marginHeight:oe,marginWidth:oe,noResize:Se,noHref:Se,noShade:Se,noWrap:Se,object:null,profile:null,prompt:null,rev:null,rightMargin:oe,rules:null,scheme:null,scrolling:We,standby:null,summary:null,text:null,topMargin:oe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:oe,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Se,disableRemotePlayback:Se,prefix:null,property:null,results:oe,security:null,unselectable:null},space:"html",transform:uu}),Db=$n({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:st,accentHeight:oe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:oe,amplitude:oe,arabicForm:null,ascent:oe,attributeName:null,attributeType:null,azimuth:oe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:oe,by:null,calcMode:null,capHeight:oe,className:Re,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:oe,diffuseConstant:oe,direction:null,display:null,dur:null,divisor:oe,dominantBaseline:null,download:Se,dx:null,dy:null,edgeMode:null,editable:null,elevation:oe,enableBackground:null,end:null,event:null,exponent:oe,externalResourcesRequired:null,fill:null,fillOpacity:oe,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:Sn,g2:Sn,glyphName:Sn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:oe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:oe,horizOriginX:oe,horizOriginY:oe,id:null,ideographic:oe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:oe,k:oe,k1:oe,k2:oe,k3:oe,k4:oe,kernelMatrix:st,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:oe,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:oe,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:oe,overlineThickness:oe,paintOrder:null,panose1:null,path:null,pathLength:oe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Re,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:oe,pointsAtY:oe,pointsAtZ:oe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:st,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:st,rev:st,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:st,requiredFeatures:st,requiredFonts:st,requiredFormats:st,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:oe,specularExponent:oe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:oe,strikethroughThickness:oe,string:null,stroke:null,strokeDashArray:st,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:oe,strokeOpacity:oe,strokeWidth:null,style:null,surfaceScale:oe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:st,tabIndex:oe,tableValues:null,target:null,targetX:oe,targetY:oe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:st,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:oe,underlineThickness:oe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:oe,values:null,vAlphabetic:oe,vMathematical:oe,vectorEffect:null,vHanging:oe,vIdeographic:oe,version:null,vertAdvY:oe,vertOriginX:oe,vertOriginY:oe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:oe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:cu}),du=$n({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()}}),fu=$n({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:uu}),hu=$n({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Mb={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"},Lb=/[A-Z]/g,ja=/-[a-z]/g,Fb=/^data[-\w.:]+$/i;function $b(e,t){const n=pi(t);let r=t,o=ot;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Fb.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(ja,Ub);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!ja.test(i)){let s=i.replace(Lb,Bb);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Xi}return new o(r,t)}function Bb(e){return"-"+e.toLowerCase()}function Ub(e){return e.charAt(1).toUpperCase()}const Zb=au([lu,Rb,du,fu,hu],"html"),Qi=au([lu,Db,du,fu,hu],"svg");function Vb(e){return e.join(" ").trim()}var pn={},Fo,Ia;function Wb(){if(Ia)return Fo;Ia=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
66
66
  `,c="/",u="*",f="",p="comment",d="declaration";function g(y,x){if(typeof y!="string")throw new TypeError("First argument must be a string");if(!y)return[];x=x||{};var b=1,k=1;function S(v){var D=v.match(t);D&&(b+=D.length);var G=v.lastIndexOf(l);k=~G?v.length-G:k+v.length}function C(){var v={line:b,column:k};return function(D){return D.position=new T(v),O(),D}}function T(v){this.start=v,this.end={line:b,column:k},this.source=x.source}T.prototype.content=y;function j(v){var D=new Error(x.source+":"+b+":"+k+": "+v);if(D.reason=v,D.filename=x.source,D.line=b,D.column=k,D.source=y,!x.silent)throw D}function P(v){var D=v.exec(y);if(D){var G=D[0];return S(G),y=y.slice(G.length),D}}function O(){P(n)}function M(v){var D;for(v=v||[];D=B();)D!==!1&&v.push(D);return v}function B(){var v=C();if(!(c!=y.charAt(0)||u!=y.charAt(1))){for(var D=2;f!=y.charAt(D)&&(u!=y.charAt(D)||c!=y.charAt(D+1));)++D;if(D+=2,f===y.charAt(D-1))return j("End of comment missing");var G=y.slice(2,D-2);return k+=2,S(G),y=y.slice(D),k+=2,v({type:p,comment:G})}}function E(){var v=C(),D=P(r);if(D){if(B(),!P(o))return j("property missing ':'");var G=P(i),Z=v({type:d,property:m(D[0].replace(e,f)),value:G?m(G[0].replace(e,f)):f});return P(s),Z}}function L(){var v=[];M(v);for(var D;D=E();)D!==!1&&(v.push(D),M(v));return v}return O(),L()}function m(y){return y?y.replace(a,f):f}return Fo=g,Fo}var Pa;function Hb(){if(Pa)return pn;Pa=1;var e=pn&&pn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=n;const t=e(Wb());function n(r,o){let i=null;if(!r||typeof r!="string")return i;const s=(0,t.default)(r),a=typeof o=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:c,value:u}=l;a?o(c,u,l):u&&(i=i||{},i[c]=u)}),i}return pn}var Gn={},Oa;function qb(){if(Oa)return Gn;Oa=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},s=function(c,u){return u.toUpperCase()},a=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),i(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(o,a):c=c.replace(r,a),c.replace(t,s))};return Gn.camelCase=l,Gn}var Kn,Ra;function Gb(){if(Ra)return Kn;Ra=1;var e=Kn&&Kn.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Hb()),n=qb();function r(o,i){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(a,l){a&&l&&(s[(0,n.camelCase)(a,i)]=l)}),s}return r.default=r,Kn=r,Kn}var Kb=Gb();const Yb=Li(Kb),pu=mu("end"),es=mu("start");function mu(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 Jb(e){const t=es(e),n=pu(e);if(t&&n)return{start:t,end:n}}function tr(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Da(e.position):"start"in e||"end"in e?Da(e):"line"in e||"column"in e?xi(e):""}function xi(e){return Ma(e&&e.line)+":"+Ma(e&&e.column)}function Da(e){return xi(e&&e.start)+"-"+xi(e&&e.end)}function Ma(e){return e&&typeof e=="number"?e:1}class Ke extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=a?a.line:void 0,this.name=tr(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ke.prototype.file="";Ke.prototype.name="";Ke.prototype.reason="";Ke.prototype.message="";Ke.prototype.stack="";Ke.prototype.column=void 0;Ke.prototype.line=void 0;Ke.prototype.ancestors=void 0;Ke.prototype.cause=void 0;Ke.prototype.fatal=void 0;Ke.prototype.place=void 0;Ke.prototype.ruleId=void 0;Ke.prototype.source=void 0;const ts={}.hasOwnProperty,Xb=new Map,Qb=/[A-Z]/g,e1=new Set(["table","tbody","thead","tfoot","tr"]),t1=new Set(["td","th"]),gu="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function n1(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=u1(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=c1(n,t.jsx,t.jsxs)}const o={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"?Qi:Zb,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=xu(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function xu(e,t,n){if(t.type==="element")return r1(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return o1(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return s1(e,t,n);if(t.type==="mdxjsEsm")return i1(e,t);if(t.type==="root")return a1(e,t,n);if(t.type==="text")return l1(e,t)}function r1(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Qi,e.schema=o),e.ancestors.push(t);const i=vu(e,t.tagName,!1),s=d1(e,t);let a=rs(e,t);return e1.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!Pb(l):!0})),yu(e,s,i,t),ns(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function o1(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)}sr(e,t.position)}function i1(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);sr(e,t.position)}function s1(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Qi,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:vu(e,t.name,!0),s=f1(e,t),a=rs(e,t);return yu(e,s,i,t),ns(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function a1(e,t,n){const r={};return ns(r,rs(e,t)),e.create(t,e.Fragment,r,n)}function l1(e,t){return t.value}function yu(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ns(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function c1(e,t,n){return r;function r(o,i,s,a){const c=Array.isArray(s.children)?n:t;return a?c(i,s,a):c(i,s)}}function u1(e,t){return n;function n(r,o,i,s){const a=Array.isArray(i.children),l=es(r);return t(o,i,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function d1(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&ts.call(t.properties,o)){const i=h1(e,o,t.properties[o]);if(i){const[s,a]=i;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&t1.has(t.tagName)?r=a:n[s]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function f1(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else sr(e,t.position);else{const o=r.name;let i;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,i=e.evaluater.evaluateExpression(a.expression)}else sr(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function rs(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Xb;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;s=l+"-"+c,o.set(l,c+1)}}const a=xu(e,i,s);a!==void 0&&n.push(a)}return n}function h1(e,t,n){const r=$b(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Nb(n):Vb(n)),r.property==="style"){let o=typeof n=="object"?n:p1(e,String(n));return e.stylePropertyNameCase==="css"&&(o=m1(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?Mb[r.property]||r.property:r.attribute,n]}}function p1(e,t){try{return Yb(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new Ke("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=gu+"#cannot-parse-style-attribute",o}}function vu(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,s;for(;++i<o.length;){const a=Na(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=s}else r=Na(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return ts.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);sr(e)}function sr(e,t){const n=new Ke("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=gu+"#cannot-handle-mdx-estrees-without-createevaluater",n}function m1(e){const t={};let n;for(n in e)ts.call(e,n)&&(t[g1(n)]=e[n]);return t}function g1(e){let t=e.replace(Qb,x1);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function x1(e){return"-"+e.toLowerCase()}const $o={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"]},y1={};function v1(e,t){const n=y1,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return bu(e,r,o)}function bu(e,t,n){if(b1(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 La(e.children,t,n)}return Array.isArray(e)?La(e,t,n):""}function La(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=bu(e[o],t,n);return r.join("")}function b1(e){return!!(e&&typeof e=="object")}const Fa=document.createElement("i");function os(e){const t="&"+e+";";Fa.innerHTML=t;const n=Fa.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zt(e,t,n,r){const o=e.length;let i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o: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);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function ut(e,t){return e.length>0?(zt(e,e.length,0,t),e):t}const $a={}.hasOwnProperty;function w1(e){const t={};let n=-1;for(;++n<e.length;)_1(t,e[n]);return t}function _1(e,t){let n;for(n in t){const o=($a.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){$a.call(o,s)||(o[s]=[]);const a=i[s];k1(o[s],Array.isArray(a)?a:a?[a]:[])}}}function k1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);zt(e,0,0,r)}function wu(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 Cn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const St=Jt(/[A-Za-z]/),lt=Jt(/[\dA-Za-z]/),S1=Jt(/[#-'*+\--9=?A-Z^-~]/);function yi(e){return e!==null&&(e<32||e===127)}const vi=Jt(/\d/),C1=Jt(/[\dA-Fa-f]/),E1=Jt(/[!-/:-@[-`{-~]/);function we(e){return e!==null&&e<-2}function nt(e){return e!==null&&(e<0||e===32)}function Ie(e){return e===-2||e===-1||e===32}const T1=Jt(new RegExp("\\p{P}|\\p{S}","u")),N1=Jt(/\s/);function Jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Bn(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&lt(e.charCodeAt(n+1))&&lt(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function De(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return Ie(l)?(e.enter(n),a(l)):t(l)}function a(l){return Ie(l)&&i++<o?(e.consume(l),a):(e.exit(n),t(l))}}const A1={tokenize:z1};function z1(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),De(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(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 we(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}const j1={tokenize:I1},Ba={tokenize:P1};function I1(e){const t=this,n=[];let r=0,o,i,s;return a;function a(k){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,c)(k)}return c(k)}function l(k){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&b();const S=t.events.length;let C=S,T;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){T=t.events[C][1].end;break}x(r);let j=S;for(;j<t.events.length;)t.events[j][1].end={...T},j++;return zt(t.events,C+1,0,t.events.slice(S)),t.events.length=j,c(k)}return a(k)}function c(k){if(r===n.length){if(!o)return p(k);if(o.currentConstruct&&o.currentConstruct.concrete)return g(k);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ba,u,f)(k)}function u(k){return o&&b(),x(r),p(k)}function f(k){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(k)}function p(k){return t.containerState={},e.attempt(Ba,d,g)(k)}function d(k){return r++,n.push([t.currentConstruct,t.containerState]),p(k)}function g(k){if(k===null){o&&b(),x(0),e.consume(k);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),m(k)}function m(k){if(k===null){y(e.exit("chunkFlow"),!0),x(0),e.consume(k);return}return we(k)?(e.consume(k),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(k),m)}function y(k,S){const C=t.sliceStream(k);if(S&&C.push(null),k.previous=i,i&&(i.next=k),i=k,o.defineSkip(k.start),o.write(C),t.parser.lazy[k.start.line]){let T=o.events.length;for(;T--;)if(o.events[T][1].start.offset<s&&(!o.events[T][1].end||o.events[T][1].end.offset>s))return;const j=t.events.length;let P=j,O,M;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(O){M=t.events[P][1].end;break}O=!0}for(x(r),T=j;T<t.events.length;)t.events[T][1].end={...M},T++;zt(t.events,P+1,0,t.events.slice(j)),t.events.length=T}}function x(k){let S=n.length;for(;S-- >k;){const C=n[S];t.containerState=C[1],C[0].exit.call(t,e)}n.length=k}function b(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function P1(e,t,n){return De(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ua(e){if(e===null||nt(e)||N1(e))return 1;if(T1(e))return 2}function is(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const bi={name:"attention",resolveAll:O1,tokenize:R1};function O1(e,t){let n=-1,r,o,i,s,a,l,c,u;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 f={...e[r][1].end},p={...e[n][1].start};Za(f,-l),Za(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ut(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=ut(c,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=ut(c,is(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=ut(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=ut(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,zt(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function R1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Ua(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;const c=e.exit("attentionSequence"),u=Ua(l),f=!u||u===2&&o||n.includes(l),p=!o||o===2&&u||n.includes(r);return c._open=!!(i===42?f:f&&(o||!p)),c._close=!!(i===42?p:p&&(u||!f)),t(l)}}function Za(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const D1={name:"autolink",tokenize:M1};function M1(e,t,n){let r=0;return o;function o(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(d){return St(d)?(e.consume(d),s):d===64?n(d):c(d)}function s(d){return d===43||d===45||d===46||lt(d)?(r=1,a(d)):c(d)}function a(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||lt(d))&&r++<32?(e.consume(d),a):(r=0,c(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||yi(d)?n(d):(e.consume(d),l)}function c(d){return d===64?(e.consume(d),u):S1(d)?(e.consume(d),c):n(d)}function u(d){return lt(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,u):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||lt(d))&&r++<63){const g=d===45?p:f;return e.consume(d),g}return n(d)}}const uo={partial:!0,tokenize:L1};function L1(e,t,n){return r;function r(i){return Ie(i)?De(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||we(i)?t(i):n(i)}}const _u={continuation:{tokenize:$1},exit:B1,name:"blockQuote",tokenize:F1};function F1(e,t,n){const r=this;return o;function o(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"),i}return n(s)}function i(s){return Ie(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function $1(e,t,n){const r=this;return o;function o(s){return Ie(s)?De(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(_u,t,n)(s)}}function B1(e){e.exit("blockQuote")}const ku={name:"characterEscape",tokenize:U1};function U1(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return E1(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Su={name:"characterReference",tokenize:Z1};function Z1(e,t,n){const r=this;let o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=lt,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=C1,u):(e.enter("characterReferenceValue"),i=7,s=vi,u(f))}function u(f){if(f===59&&o){const p=e.exit("characterReferenceValue");return s===lt&&!os(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),u):n(f)}}const Va={partial:!0,tokenize:W1},Wa={concrete:!0,name:"codeFenced",tokenize:V1};function V1(e,t,n){const r=this,o={partial:!0,tokenize:C};let i=0,s=0,a;return l;function l(T){return c(T)}function c(T){const j=r.events[r.events.length-1];return i=j&&j[1].type==="linePrefix"?j[2].sliceSerialize(j[1],!0).length:0,a=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(T)}function u(T){return T===a?(s++,e.consume(T),u):s<3?n(T):(e.exit("codeFencedFenceSequence"),Ie(T)?De(e,f,"whitespace")(T):f(T))}function f(T){return T===null||we(T)?(e.exit("codeFencedFence"),r.interrupt?t(T):e.check(Va,m,S)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(T))}function p(T){return T===null||we(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(T)):Ie(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),De(e,d,"whitespace")(T)):T===96&&T===a?n(T):(e.consume(T),p)}function d(T){return T===null||we(T)?f(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||we(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(T)):T===96&&T===a?n(T):(e.consume(T),g)}function m(T){return e.attempt(o,S,y)(T)}function y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),x}function x(T){return i>0&&Ie(T)?De(e,b,"linePrefix",i+1)(T):b(T)}function b(T){return T===null||we(T)?e.check(Va,m,S)(T):(e.enter("codeFlowValue"),k(T))}function k(T){return T===null||we(T)?(e.exit("codeFlowValue"),b(T)):(e.consume(T),k)}function S(T){return e.exit("codeFenced"),t(T)}function C(T,j,P){let O=0;return M;function M(D){return T.enter("lineEnding"),T.consume(D),T.exit("lineEnding"),B}function B(D){return T.enter("codeFencedFence"),Ie(D)?De(T,E,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):E(D)}function E(D){return D===a?(T.enter("codeFencedFenceSequence"),L(D)):P(D)}function L(D){return D===a?(O++,T.consume(D),L):O>=s?(T.exit("codeFencedFenceSequence"),Ie(D)?De(T,v,"whitespace")(D):v(D)):P(D)}function v(D){return D===null||we(D)?(T.exit("codeFencedFence"),j(D)):P(D)}}}function W1(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Bo={name:"codeIndented",tokenize:q1},H1={partial:!0,tokenize:G1};function q1(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),De(e,i,"linePrefix",5)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):we(c)?e.attempt(H1,s,l)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||we(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function l(c){return e.exit("codeIndented"),t(c)}}function G1(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):we(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):De(e,i,"linePrefix",5)(s)}function i(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):we(s)?o(s):n(s)}}const K1={name:"codeText",previous:J1,resolve:Y1,tokenize:X1};function Y1(e){let t=e.length-4,n=3,r,o;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;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function J1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function X1(e,t,n){let r=0,o,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),o=0,u(f)):we(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||we(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),o++,u):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class Q1{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 o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&Yn(this.left,r),i.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),Yn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Yn(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);Yn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Yn(this.left,n.reverse())}}}function Yn(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 Cu(e){const t={};let n=-1,r,o,i,s,a,l,c;const u=new Q1(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,ew(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(u.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...u.get(o)[1].start},a=u.slice(o,n),a.unshift(r),u.splice(o,n-o+1,a))}}return zt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function ew(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,f,p=-1,d=n,g=0,m=0;const y=[m];for(;d;){for(;e.get(++o)[1]!==d;);i.push(o),d._tokenizer||(u=r.sliceStream(d),d.next||u.push(null),f&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(m=p+1,y.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):y.pop(),p=y.length;p--;){const x=a.slice(y[p],y[p+1]),b=i.pop();l.push([b,b+x.length-1]),e.splice(b,2,x)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const tw={resolve:rw,tokenize:ow},nw={partial:!0,tokenize:iw};function rw(e){return Cu(e),e}function ow(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):we(a)?e.check(nw,s,i)(a):(e.consume(a),o)}function i(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,o}}function iw(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),De(e,i,"linePrefix")}function i(s){if(s===null||we(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 Eu(e,t,n,r,o,i,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(x){return x===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(x),e.exit(i),p):x===null||x===32||x===41||yi(x)?n(x):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),m(x))}function p(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||we(x)?n(x):(e.consume(x),x===92?g:d)}function g(x){return x===60||x===62||x===92?(e.consume(x),d):d(x)}function m(x){return!u&&(x===null||x===41||nt(x))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(x)):u<c&&x===40?(e.consume(x),u++,m):x===41?(e.consume(x),u--,m):x===null||x===32||x===40||yi(x)?n(x):(e.consume(x),x===92?y:m)}function y(x){return x===40||x===41||x===92?(e.consume(x),m):m(x)}}function Tu(e,t,n,r,o,i){const s=this;let a=0,l;return c;function c(d){return e.enter(r),e.enter(o),e.consume(d),e.exit(o),e.enter(i),u}function u(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(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):we(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||we(d)||a++>999?(e.exit("chunkString"),u(d)):(e.consume(d),l||(l=!Ie(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),a++,f):f(d)}}function Nu(e,t,n,r,o,i){let s;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(o),e.consume(p),e.exit(o),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):(e.enter(i),c(p))}function c(p){return p===s?(e.exit(i),l(s)):p===null?n(p):we(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),De(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===s||p===null||we(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?f:u)}function f(p){return p===s||p===92?(e.consume(p),u):u(p)}}function nr(e,t){let n;return r;function r(o){return we(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):Ie(o)?De(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const sw={name:"definition",tokenize:lw},aw={partial:!0,tokenize:cw};function lw(e,t,n){const r=this;let o;return i;function i(d){return e.enter("definition"),s(d)}function s(d){return Tu.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return o=Cn(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 nt(d)?nr(e,c)(d):c(d)}function c(d){return Eu(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function u(d){return e.attempt(aw,f,f)(d)}function f(d){return Ie(d)?De(e,p,"whitespace")(d):p(d)}function p(d){return d===null||we(d)?(e.exit("definition"),r.parser.defined.push(o),t(d)):n(d)}}function cw(e,t,n){return r;function r(a){return nt(a)?nr(e,o)(a):n(a)}function o(a){return Nu(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return Ie(a)?De(e,s,"whitespace")(a):s(a)}function s(a){return a===null||we(a)?t(a):n(a)}}const uw={name:"hardBreakEscape",tokenize:dw};function dw(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return we(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const fw={name:"headingAtx",resolve:hw,tokenize:pw};function hw(e,t){let n=e.length-2,r=3,o,i;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&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},zt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function pw(e,t,n){let r=0;return o;function o(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(e.consume(u),s):u===null||nt(u)?(e.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||we(u)?(e.exit("atxHeading"),t(u)):Ie(u)?De(e,a,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||nt(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),c)}}const mw=["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"],Ha=["pre","script","style","textarea"],gw={concrete:!0,name:"htmlFlow",resolveTo:vw,tokenize:bw},xw={partial:!0,tokenize:_w},yw={partial:!0,tokenize:ww};function vw(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 bw(e,t,n){const r=this;let o,i,s,a,l;return c;function c(N){return u(N)}function u(N){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(N),f}function f(N){return N===33?(e.consume(N),p):N===47?(e.consume(N),i=!0,m):N===63?(e.consume(N),o=3,r.interrupt?t:A):St(N)?(e.consume(N),s=String.fromCharCode(N),y):n(N)}function p(N){return N===45?(e.consume(N),o=2,d):N===91?(e.consume(N),o=5,a=0,g):St(N)?(e.consume(N),o=4,r.interrupt?t:A):n(N)}function d(N){return N===45?(e.consume(N),r.interrupt?t:A):n(N)}function g(N){const Y="CDATA[";return N===Y.charCodeAt(a++)?(e.consume(N),a===Y.length?r.interrupt?t:E:g):n(N)}function m(N){return St(N)?(e.consume(N),s=String.fromCharCode(N),y):n(N)}function y(N){if(N===null||N===47||N===62||nt(N)){const Y=N===47,Q=s.toLowerCase();return!Y&&!i&&Ha.includes(Q)?(o=1,r.interrupt?t(N):E(N)):mw.includes(s.toLowerCase())?(o=6,Y?(e.consume(N),x):r.interrupt?t(N):E(N)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(N):i?b(N):k(N))}return N===45||lt(N)?(e.consume(N),s+=String.fromCharCode(N),y):n(N)}function x(N){return N===62?(e.consume(N),r.interrupt?t:E):n(N)}function b(N){return Ie(N)?(e.consume(N),b):M(N)}function k(N){return N===47?(e.consume(N),M):N===58||N===95||St(N)?(e.consume(N),S):Ie(N)?(e.consume(N),k):M(N)}function S(N){return N===45||N===46||N===58||N===95||lt(N)?(e.consume(N),S):C(N)}function C(N){return N===61?(e.consume(N),T):Ie(N)?(e.consume(N),C):k(N)}function T(N){return N===null||N===60||N===61||N===62||N===96?n(N):N===34||N===39?(e.consume(N),l=N,j):Ie(N)?(e.consume(N),T):P(N)}function j(N){return N===l?(e.consume(N),l=null,O):N===null||we(N)?n(N):(e.consume(N),j)}function P(N){return N===null||N===34||N===39||N===47||N===60||N===61||N===62||N===96||nt(N)?C(N):(e.consume(N),P)}function O(N){return N===47||N===62||Ie(N)?k(N):n(N)}function M(N){return N===62?(e.consume(N),B):n(N)}function B(N){return N===null||we(N)?E(N):Ie(N)?(e.consume(N),B):n(N)}function E(N){return N===45&&o===2?(e.consume(N),G):N===60&&o===1?(e.consume(N),Z):N===62&&o===4?(e.consume(N),U):N===63&&o===3?(e.consume(N),A):N===93&&o===5?(e.consume(N),q):we(N)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(xw,R,L)(N)):N===null||we(N)?(e.exit("htmlFlowData"),L(N)):(e.consume(N),E)}function L(N){return e.check(yw,v,R)(N)}function v(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),D}function D(N){return N===null||we(N)?L(N):(e.enter("htmlFlowData"),E(N))}function G(N){return N===45?(e.consume(N),A):E(N)}function Z(N){return N===47?(e.consume(N),s="",W):E(N)}function W(N){if(N===62){const Y=s.toLowerCase();return Ha.includes(Y)?(e.consume(N),U):E(N)}return St(N)&&s.length<8?(e.consume(N),s+=String.fromCharCode(N),W):E(N)}function q(N){return N===93?(e.consume(N),A):E(N)}function A(N){return N===62?(e.consume(N),U):N===45&&o===2?(e.consume(N),A):E(N)}function U(N){return N===null||we(N)?(e.exit("htmlFlowData"),R(N)):(e.consume(N),U)}function R(N){return e.exit("htmlFlow"),t(N)}}function ww(e,t,n){const r=this;return o;function o(s){return we(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function _w(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(uo,t,n)}}const kw={name:"htmlText",tokenize:Sw};function Sw(e,t,n){const r=this;let o,i,s;return a;function a(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),l}function l(A){return A===33?(e.consume(A),c):A===47?(e.consume(A),C):A===63?(e.consume(A),k):St(A)?(e.consume(A),P):n(A)}function c(A){return A===45?(e.consume(A),u):A===91?(e.consume(A),i=0,g):St(A)?(e.consume(A),b):n(A)}function u(A){return A===45?(e.consume(A),d):n(A)}function f(A){return A===null?n(A):A===45?(e.consume(A),p):we(A)?(s=f,Z(A)):(e.consume(A),f)}function p(A){return A===45?(e.consume(A),d):f(A)}function d(A){return A===62?G(A):A===45?p(A):f(A)}function g(A){const U="CDATA[";return A===U.charCodeAt(i++)?(e.consume(A),i===U.length?m:g):n(A)}function m(A){return A===null?n(A):A===93?(e.consume(A),y):we(A)?(s=m,Z(A)):(e.consume(A),m)}function y(A){return A===93?(e.consume(A),x):m(A)}function x(A){return A===62?G(A):A===93?(e.consume(A),x):m(A)}function b(A){return A===null||A===62?G(A):we(A)?(s=b,Z(A)):(e.consume(A),b)}function k(A){return A===null?n(A):A===63?(e.consume(A),S):we(A)?(s=k,Z(A)):(e.consume(A),k)}function S(A){return A===62?G(A):k(A)}function C(A){return St(A)?(e.consume(A),T):n(A)}function T(A){return A===45||lt(A)?(e.consume(A),T):j(A)}function j(A){return we(A)?(s=j,Z(A)):Ie(A)?(e.consume(A),j):G(A)}function P(A){return A===45||lt(A)?(e.consume(A),P):A===47||A===62||nt(A)?O(A):n(A)}function O(A){return A===47?(e.consume(A),G):A===58||A===95||St(A)?(e.consume(A),M):we(A)?(s=O,Z(A)):Ie(A)?(e.consume(A),O):G(A)}function M(A){return A===45||A===46||A===58||A===95||lt(A)?(e.consume(A),M):B(A)}function B(A){return A===61?(e.consume(A),E):we(A)?(s=B,Z(A)):Ie(A)?(e.consume(A),B):O(A)}function E(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),o=A,L):we(A)?(s=E,Z(A)):Ie(A)?(e.consume(A),E):(e.consume(A),v)}function L(A){return A===o?(e.consume(A),o=void 0,D):A===null?n(A):we(A)?(s=L,Z(A)):(e.consume(A),L)}function v(A){return A===null||A===34||A===39||A===60||A===61||A===96?n(A):A===47||A===62||nt(A)?O(A):(e.consume(A),v)}function D(A){return A===47||A===62||nt(A)?O(A):n(A)}function G(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),t):n(A)}function Z(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),W}function W(A){return Ie(A)?De(e,q,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):q(A)}function q(A){return e.enter("htmlTextData"),s(A)}}const ss={name:"labelEnd",resolveAll:Nw,resolveTo:Aw,tokenize:zw},Cw={tokenize:jw},Ew={tokenize:Iw},Tw={tokenize:Pw};function Nw(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 o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&zt(e,0,e.length,n),e}function Aw(e,t){let n=e.length,r=0,o,i,s,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=ut(a,e.slice(i+1,i+r+3)),a=ut(a,[["enter",u,t]]),a=ut(a,is(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),a=ut(a,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),a=ut(a,e.slice(s+1)),a=ut(a,[["exit",l,t]]),zt(e,i,e.length,a),e}function zw(e,t,n){const r=this;let o=r.events.length,i,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(p){return i?i._inactive?f(p):(s=r.parser.defined.includes(Cn(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(Cw,u,s?u:f)(p):p===91?e.attempt(Ew,u,s?c:f)(p):s?u(p):f(p)}function c(p){return e.attempt(Tw,u,f)(p)}function u(p){return t(p)}function f(p){return i._balanced=!0,n(p)}}function jw(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return nt(f)?nr(e,i)(f):i(f)}function i(f){return f===41?u(f):Eu(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return nt(f)?nr(e,l)(f):u(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?Nu(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return nt(f)?nr(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Iw(e,t,n){const r=this;return o;function o(a){return Tu.call(r,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(Cn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function Pw(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const Ow={name:"labelStartImage",resolveAll:ss.resolveAll,tokenize:Rw};function Rw(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(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 Dw={name:"labelStartLink",resolveAll:ss.resolveAll,tokenize:Mw};function Mw(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const Uo={name:"lineEnding",tokenize:Lw};function Lw(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),De(e,t,"linePrefix")}}const Mr={name:"thematicBreak",tokenize:Fw};function Fw(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||we(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),Ie(c)?De(e,a,"whitespace")(c):a(c))}}const et={continuation:{tokenize:Zw},exit:Ww,name:"list",tokenize:Uw},$w={partial:!0,tokenize:Hw},Bw={partial:!0,tokenize:Vw};function Uw(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(d){const g=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:vi(d)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Mr,n,c)(d):c(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return vi(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"),c(d)):n(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(uo,r.interrupt?n:u,e.attempt($w,p,f))}function u(d){return r.containerState.initialBlankLine=!0,i++,p(d)}function f(d){return Ie(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function Zw(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(uo,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,De(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!Ie(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(Bw,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,De(e,e.attempt(et,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Vw(e,t,n){const r=this;return De(e,o,"listItemIndent",r.containerState.size+1);function o(i){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(i):n(i)}}function Ww(e){e.exit(this.containerState.type)}function Hw(e,t,n){const r=this;return De(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const s=r.events[r.events.length-1];return!Ie(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const qa={name:"setextUnderline",resolveTo:qw,tokenize:Gw};function qw(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function Gw(e,t,n){const r=this;let o;return i;function i(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===o?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),Ie(c)?De(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||we(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Kw={tokenize:Yw};function Yw(e){const t=this,n=e.attempt(uo,r,e.attempt(this.parser.constructs.flowInitial,o,De(e,e.attempt(this.parser.constructs.flow,o,e.attempt(tw,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jw={resolveAll:zu()},Xw=Au("string"),Qw=Au("text");function Au(e){return{resolveAll:zu(e==="text"?e2:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,s,a);return s;function s(u){return c(u)?i(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=o[u];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function zu(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function e2(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],o=t.sliceStream(r);let i=o.length,s=-1,a=0,l;for(;i--;){const c=o[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const t2={42:et,43:et,45:et,48:et,49:et,50:et,51:et,52:et,53:et,54:et,55:et,56:et,57:et,62:_u},n2={91:sw},r2={[-2]:Bo,[-1]:Bo,32:Bo},o2={35:fw,42:Mr,45:[qa,Mr],60:gw,61:qa,95:Mr,96:Wa,126:Wa},i2={38:Su,92:ku},s2={[-5]:Uo,[-4]:Uo,[-3]:Uo,33:Ow,38:Su,42:bi,60:[D1,kw],91:Dw,92:[uw,ku],93:ss,95:bi,96:K1},a2={null:[bi,Jw]},l2={null:[42,95]},c2={null:[]},u2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:l2,contentInitial:n2,disable:c2,document:t2,flow:o2,flowInitial:r2,insideSpan:a2,string:i2,text:s2},Symbol.toStringTag,{value:"Module"}));function d2(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 o={},i=[];let s=[],a=[];const l={attempt:j(C),check:j(T),consume:b,enter:k,exit:S,interrupt:j(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:m,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function f(B){return s=ut(s,B),y(),s[s.length-1]!==null?[]:(P(t,0),c.events=is(i,c.events,c),c.events)}function p(B,E){return h2(d(B),E)}function d(B){return f2(s,B)}function g(){const{_bufferIndex:B,_index:E,line:L,column:v,offset:D}=r;return{_bufferIndex:B,_index:E,line:L,column:v,offset:D}}function m(B){o[B.line]=B.column,M()}function y(){let B;for(;r._index<s.length;){const E=s[r._index];if(typeof E=="string")for(B=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===B&&r._bufferIndex<E.length;)x(E.charCodeAt(r._bufferIndex));else x(E)}}function x(B){u=u(B)}function b(B){we(B)?(r.line++,r.column=1,r.offset+=B===-3?2:1,M()):B!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=B}function k(B,E){const L=E||{};return L.type=B,L.start=g(),c.events.push(["enter",L,c]),a.push(L),L}function S(B){const E=a.pop();return E.end=g(),c.events.push(["exit",E,c]),E}function C(B,E){P(B,E.from)}function T(B,E){E.restore()}function j(B,E){return L;function L(v,D,G){let Z,W,q,A;return Array.isArray(v)?R(v):"tokenize"in v?R([v]):U(v);function U(pe){return X;function X(ae){const de=ae!==null&&pe[ae],ge=ae!==null&&pe.null,xe=[...Array.isArray(de)?de:de?[de]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return R(xe)(ae)}}function R(pe){return Z=pe,W=0,pe.length===0?G:N(pe[W])}function N(pe){return X;function X(ae){return A=O(),q=pe,pe.partial||(c.currentConstruct=pe),pe.name&&c.parser.constructs.disable.null.includes(pe.name)?Q():pe.tokenize.call(E?Object.assign(Object.create(c),E):c,l,Y,Q)(ae)}}function Y(pe){return B(q,A),D}function Q(pe){return A.restore(),++W<Z.length?N(Z[W]):G}}}function P(B,E){B.resolveAll&&!i.includes(B)&&i.push(B),B.resolve&&zt(c.events,E,c.events.length-E,B.resolve(c.events.slice(E),c)),B.resolveTo&&(c.events=B.resolveTo(c.events,c))}function O(){const B=g(),E=c.previous,L=c.currentConstruct,v=c.events.length,D=Array.from(a);return{from:v,restore:G};function G(){r=B,c.previous=E,c.currentConstruct=L,c.events.length=v,a=D,M()}}function M(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function f2(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function h2(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
67
67
  `;break}case-3:{s=`\r
68
68
  `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,r.push(s)}return r.join("")}function p2(e){const r={constructs:w1([u2,...(e||{}).extensions||[]]),content:o(A1),defined:[],document:o(j1),flow:o(Kw),lazy:{},string:o(Xw),text:o(Qw)};return r;function o(i){return s;function s(a){return d2(r,i,a)}}}function m2(e){for(;!Cu(e););return e}const Ga=/[\0\t\n\r]/g;function g2(){let e=1,t="",n=!0,r;return o;function o(i,s,a){const l=[];let c,u,f,p,d;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(Ga.lastIndex=f,c=Ga.exec(i),p=c&&c.index!==void 0?c.index:i.length,d=i.charCodeAt(p),!c){t=i.slice(f);break}if(d===10&&f===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<p&&(l.push(i.slice(f,p)),e+=p-f),d){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const x2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function y2(e){return e.replace(x2,v2)}function v2(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return wu(n.slice(i?2:1),i?16:10)}return os(n)||e}const ju={}.hasOwnProperty;function b2(e,t,n){return typeof t!="string"&&(n=t,t=void 0),w2(n)(m2(p2(n).document().write(g2()(e,t,!0))))}function w2(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(F),autolinkProtocol:O,autolinkEmail:O,atxHeading:i(J),blockQuote:i(ge),characterEscape:O,characterReference:O,codeFenced:i(xe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(xe,s),codeText:i(Ee,s),codeTextData:O,data:O,codeFlowValue:O,definition:i(Oe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(w),hardBreakEscape:i(H),hardBreakTrailing:i(H),htmlFlow:i(I,s),htmlFlowData:O,htmlText:i(I,s),htmlTextData:O,image:i(z),label:s,link:i(F),listItem:i(re),listItemValue:p,listOrdered:i(te,f),listUnordered:i(te),paragraph:i(V),reference:N,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(J),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:C,autolink:l(),autolinkEmail:de,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:pe,characterReference:X,codeFenced:l(y),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:g,codeFlowValue:M,codeIndented:l(x),codeText:l(D),codeTextData:M,data:M,definition:l(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:k,emphasis:l(),hardBreakEscape:l(E),hardBreakTrailing:l(E),htmlFlow:l(L),htmlFlowData:M,htmlText:l(v),htmlTextData:M,image:l(Z),label:q,labelText:W,lineEnding:B,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:Y,resourceDestinationString:A,resourceTitleString:U,resource:R,setextHeading:l(P),setextHeadingLineSequence:j,setextHeadingText:T,strong:l(),thematicBreak:l()}};Iu(t,(e||{}).mdastExtensions||[]);const n={};return r;function r($){let ne={type:"root",children:[]};const le={stack:[ne],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},ve=[];let Ae=-1;for(;++Ae<$.length;)if($[Ae][1].type==="listOrdered"||$[Ae][1].type==="listUnordered")if($[Ae][0]==="enter")ve.push(Ae);else{const Ze=ve.pop();Ae=o($,Ze,Ae)}for(Ae=-1;++Ae<$.length;){const Ze=t[$[Ae][0]];ju.call(Ze,$[Ae][1].type)&&Ze[$[Ae][1].type].call(Object.assign({sliceSerialize:$[Ae][2].sliceSerialize},le),$[Ae][1])}if(le.tokenStack.length>0){const Ze=le.tokenStack[le.tokenStack.length-1];(Ze[1]||Ka).call(le,void 0,Ze[0])}for(ne.position={start:Zt($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:Zt($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)ne=t.transforms[Ae](ne)||ne;return ne}function o($,ne,le){let ve=ne-1,Ae=-1,Ze=!1,it,je,_t,Ot;for(;++ve<=le;){const $e=$[ve];switch($e[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{$e[0]==="enter"?Ae++:Ae--,Ot=void 0;break}case"lineEndingBlank":{$e[0]==="enter"&&(it&&!Ot&&!Ae&&!_t&&(_t=ve),Ot=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ot=void 0}if(!Ae&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||Ae===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(it){let Rt=ve;for(je=void 0;Rt--;){const gt=$[Rt];if(gt[1].type==="lineEnding"||gt[1].type==="lineEndingBlank"){if(gt[0]==="exit")continue;je&&($[je][1].type="lineEndingBlank",Ze=!0),gt[1].type="lineEnding",je=Rt}else if(!(gt[1].type==="linePrefix"||gt[1].type==="blockQuotePrefix"||gt[1].type==="blockQuotePrefixWhitespace"||gt[1].type==="blockQuoteMarker"||gt[1].type==="listItemIndent"))break}_t&&(!je||_t<je)&&(it._spread=!0),it.end=Object.assign({},je?$[je][1].start:$e[1].end),$.splice(je||ve,0,["exit",it,$e[2]]),ve++,le++}if($e[1].type==="listItemPrefix"){const Rt={type:"listItem",_spread:!1,start:Object.assign({},$e[1].start),end:void 0};it=Rt,$.splice(ve,0,["enter",Rt,$e[2]]),ve++,le++,_t=void 0,Ot=!0}}}return $[ne][1]._spread=Ze,le}function i($,ne){return le;function le(ve){a.call(this,$(ve),ve),ne&&ne.call(this,ve)}}function s(){this.stack.push({type:"fragment",children:[]})}function a($,ne,le){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([ne,le||void 0]),$.position={start:Zt(ne.start),end:void 0}}function l($){return ne;function ne(le){$&&$.call(this,le),c.call(this,le)}}function c($,ne){const le=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==$.type&&(ne?ne.call(this,$,ve[0]):(ve[1]||Ka).call(this,$,ve[0]));else throw new Error("Cannot close `"+$.type+"` ("+tr({start:$.start,end:$.end})+"): it’s not open");le.position.end=Zt($.end)}function u(){return v1(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p($){if(this.data.expectingFirstListItemValue){const ne=this.stack[this.stack.length-2];ne.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function d(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.lang=$}function g(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.meta=$}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.value=$.replace(/(\r?\n|\r)$/g,"")}function b($){const ne=this.resume(),le=this.stack[this.stack.length-1];le.label=ne,le.identifier=Cn(this.sliceSerialize($)).toLowerCase()}function k(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.title=$}function S(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.url=$}function C($){const ne=this.stack[this.stack.length-1];if(!ne.depth){const le=this.sliceSerialize($).length;ne.depth=le}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function j($){const ne=this.stack[this.stack.length-1];ne.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function O($){const le=this.stack[this.stack.length-1].children;let ve=le[le.length-1];(!ve||ve.type!=="text")&&(ve=ue(),ve.position={start:Zt($.start),end:void 0},le.push(ve)),this.stack.push(ve)}function M($){const ne=this.stack.pop();ne.value+=this.sliceSerialize($),ne.position.end=Zt($.end)}function B($){const ne=this.stack[this.stack.length-1];if(this.data.atHardBreak){const le=ne.children[ne.children.length-1];le.position.end=Zt($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ne.type)&&(O.call(this,$),M.call(this,$))}function E(){this.data.atHardBreak=!0}function L(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.value=$}function v(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.value=$}function D(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.value=$}function G(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=ne,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function Z(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const ne=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=ne,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function W($){const ne=this.sliceSerialize($),le=this.stack[this.stack.length-2];le.label=y2(ne),le.identifier=Cn(ne).toLowerCase()}function q(){const $=this.stack[this.stack.length-1],ne=this.resume(),le=this.stack[this.stack.length-1];if(this.data.inReference=!0,le.type==="link"){const ve=$.children;le.children=ve}else le.alt=ne}function A(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.url=$}function U(){const $=this.resume(),ne=this.stack[this.stack.length-1];ne.title=$}function R(){this.data.inReference=void 0}function N(){this.data.referenceType="collapsed"}function Y($){const ne=this.resume(),le=this.stack[this.stack.length-1];le.label=ne,le.identifier=Cn(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function Q($){this.data.characterReferenceType=$.type}function pe($){const ne=this.sliceSerialize($),le=this.data.characterReferenceType;let ve;le?(ve=wu(ne,le==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=os(ne);const Ae=this.stack[this.stack.length-1];Ae.value+=ve}function X($){const ne=this.stack.pop();ne.position.end=Zt($.end)}function ae($){M.call(this,$);const ne=this.stack[this.stack.length-1];ne.url=this.sliceSerialize($)}function de($){M.call(this,$);const ne=this.stack[this.stack.length-1];ne.url="mailto:"+this.sliceSerialize($)}function ge(){return{type:"blockquote",children:[]}}function xe(){return{type:"code",lang:null,meta:null,value:""}}function Ee(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function w(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:0,children:[]}}function H(){return{type:"break"}}function I(){return{type:"html",value:""}}function z(){return{type:"image",title:null,url:"",alt:null}}function F(){return{type:"link",title:null,url:"",children:[]}}function te($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function re($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function V(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ue(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}function Zt(e){return{line:e.line,column:e.column,offset:e.offset}}function Iu(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Iu(e,r):_2(e,r)}}function _2(e,t){let n;for(n in t)if(ju.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 Ka(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+tr({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tr({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+tr({start:t.start,end:t.end})+") is still open")}function k2(e){const t=this;t.parser=n;function n(r){return b2(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function S2(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 C2(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`