@ggui-ai/iframe-runtime 0.1.0-rc.1

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.
Files changed (92) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +33 -0
  3. package/dist/bootstrap.d.ts +72 -0
  4. package/dist/bootstrap.js +500 -0
  5. package/dist/canvas/animator/animator-host.d.ts +63 -0
  6. package/dist/canvas/animator/animator-host.js +105 -0
  7. package/dist/canvas/animator/animator-pill.d.ts +42 -0
  8. package/dist/canvas/animator/animator-pill.js +119 -0
  9. package/dist/canvas/animator/state-machine.d.ts +106 -0
  10. package/dist/canvas/animator/state-machine.js +150 -0
  11. package/dist/canvas/canvas-shell.d.ts +77 -0
  12. package/dist/canvas/canvas-shell.js +117 -0
  13. package/dist/canvas/display-mode-policy.d.ts +104 -0
  14. package/dist/canvas/display-mode-policy.js +98 -0
  15. package/dist/canvas/mount.d.ts +150 -0
  16. package/dist/canvas/mount.js +202 -0
  17. package/dist/canvas/nav-stack.d.ts +133 -0
  18. package/dist/canvas/nav-stack.js +172 -0
  19. package/dist/channel-transport.d.ts +182 -0
  20. package/dist/channel-transport.js +344 -0
  21. package/dist/channels/channel-payload.d.ts +20 -0
  22. package/dist/channels/channel-payload.js +34 -0
  23. package/dist/channels/data.d.ts +48 -0
  24. package/dist/channels/data.js +103 -0
  25. package/dist/channels/drain-ack.d.ts +13 -0
  26. package/dist/channels/drain-ack.js +15 -0
  27. package/dist/channels/feedback.d.ts +14 -0
  28. package/dist/channels/feedback.js +19 -0
  29. package/dist/channels/index.d.ts +7 -0
  30. package/dist/channels/index.js +7 -0
  31. package/dist/channels/props-update.d.ts +53 -0
  32. package/dist/channels/props-update.js +130 -0
  33. package/dist/channels/push.d.ts +47 -0
  34. package/dist/channels/push.js +54 -0
  35. package/dist/channels/system.d.ts +26 -0
  36. package/dist/channels/system.js +44 -0
  37. package/dist/compiled-validators.d.ts +40 -0
  38. package/dist/compiled-validators.js +74 -0
  39. package/dist/context-observer.d.ts +205 -0
  40. package/dist/context-observer.js +312 -0
  41. package/dist/gadget-loader.d.ts +118 -0
  42. package/dist/gadget-loader.js +136 -0
  43. package/dist/globals.d.ts +234 -0
  44. package/dist/globals.js +101 -0
  45. package/dist/host-context-emitter.d.ts +91 -0
  46. package/dist/host-context-emitter.js +213 -0
  47. package/dist/iframe-runtime.js +261 -0
  48. package/dist/index.d.ts +38 -0
  49. package/dist/index.js +4 -0
  50. package/dist/lifecycle.d.ts +66 -0
  51. package/dist/lifecycle.js +49 -0
  52. package/dist/mcp-app-iframe-host.d.ts +69 -0
  53. package/dist/mcp-app-iframe-host.js +214 -0
  54. package/dist/observability.d.ts +225 -0
  55. package/dist/observability.js +28 -0
  56. package/dist/protocol-error.d.ts +199 -0
  57. package/dist/protocol-error.js +116 -0
  58. package/dist/provisional-renderer.d.ts +62 -0
  59. package/dist/provisional-renderer.js +323 -0
  60. package/dist/react-renderer.d.ts +95 -0
  61. package/dist/react-renderer.js +343 -0
  62. package/dist/registry-subscribe.d.ts +102 -0
  63. package/dist/registry-subscribe.js +319 -0
  64. package/dist/runtime.d.ts +531 -0
  65. package/dist/runtime.js +2623 -0
  66. package/dist/server.d.ts +36 -0
  67. package/dist/server.js +72 -0
  68. package/dist/stack-item-renderer.d.ts +103 -0
  69. package/dist/stack-item-renderer.js +270 -0
  70. package/dist/stack.d.ts +90 -0
  71. package/dist/stack.js +118 -0
  72. package/dist/status-dom.d.ts +72 -0
  73. package/dist/status-dom.js +51 -0
  74. package/dist/system-cards/NoCredentialsCard.d.ts +33 -0
  75. package/dist/system-cards/NoCredentialsCard.js +189 -0
  76. package/dist/system-cards/ProtocolProbeCard.d.ts +64 -0
  77. package/dist/system-cards/ProtocolProbeCard.js +463 -0
  78. package/dist/system-cards/QrCode.d.ts +46 -0
  79. package/dist/system-cards/QrCode.js +55 -0
  80. package/dist/system-cards/host-detect.d.ts +31 -0
  81. package/dist/system-cards/host-detect.js +108 -0
  82. package/dist/system-cards/host-intents.d.ts +85 -0
  83. package/dist/system-cards/host-intents.js +170 -0
  84. package/dist/system-cards/index.d.ts +70 -0
  85. package/dist/system-cards/index.js +134 -0
  86. package/dist/types.d.ts +69 -0
  87. package/dist/types.js +3 -0
  88. package/dist/validation.d.ts +83 -0
  89. package/dist/validation.js +106 -0
  90. package/dist/wire-config.d.ts +214 -0
  91. package/dist/wire-config.js +290 -0
  92. package/package.json +81 -0
@@ -0,0 +1,261 @@
1
+ var RD=Object.create;var Wh=Object.defineProperty;var zD=Object.getOwnPropertyDescriptor;var PD=Object.getOwnPropertyNames;var OD=Object.getPrototypeOf,AD=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ct=(e,t)=>{for(var r in t)Wh(e,r,{get:t[r],enumerable:!0})},ND=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of PD(t))!AD.call(e,n)&&n!==r&&Wh(e,n,{get:()=>t[n],enumerable:!(o=zD(t,n))||o.enumerable});return e};var C=(e,t,r)=>(r=e!=null?RD(OD(e)):{},ND(t||!e||!e.__esModule?Wh(r,"default",{value:e,enumerable:!0}):r,e));var DD,Kh,Fd,Zu,Fu=x(()=>{"use strict";DD="draft-2026-05-24",Kh=DD,Fd="UPGRADE_REQUIRED",Zu=Object.freeze([Kh])});var jw=x(()=>{"use strict"});var Uw=x(()=>{"use strict"});var Lw=x(()=>{"use strict"});var qw=x(()=>{"use strict"});var Bw=x(()=>{"use strict"});var Vw=x(()=>{"use strict"});var Hw=x(()=>{"use strict"});var Gw=x(()=>{"use strict"});var Zw=x(()=>{"use strict"});function E(e,t,r){function o(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);let u=a.prototype,c=Object.keys(u);for(let p=0;p<c.length;p++){let d=c[p];d in s||(s[d]=u[d].bind(s))}}let n=r?.Parent??Object;class i extends n{}Object.defineProperty(i,"name",{value:e});function a(s){var l;let u=r?.Parent?new i:this;o(u,s),(l=u._zod).deferred??(l.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>r?.Parent&&s instanceof r.Parent?!0:s?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}function at(e){return e&&Object.assign(Wu,e),Wu}var Jh,Wd,wn,ci,Wu,Ms=x(()=>{Jh=Object.freeze({status:"aborted"});Wd=Symbol("zod_brand"),wn=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},ci=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Wu={}});var j={};ct(j,{BIGINT_FORMAT_RANGES:()=>ay,Class:()=>Xh,NUMBER_FORMAT_RANGES:()=>iy,aborted:()=>mi,allowsEval:()=>ty,assert:()=>BD,assertEqual:()=>jD,assertIs:()=>LD,assertNever:()=>qD,assertNotEqual:()=>UD,assignProp:()=>di,base64ToUint8Array:()=>Ww,base64urlToUint8Array:()=>ij,cached:()=>Rs,captureStackTrace:()=>Jd,cleanEnum:()=>oj,cleanRegex:()=>Yu,clone:()=>ar,cloneDef:()=>HD,createTransparentProxy:()=>JD,defineLazy:()=>oe,esc:()=>Kd,escapeRegex:()=>Wr,extend:()=>QD,finalizeIssue:()=>$r,floatSafeRemainder:()=>Qh,getElementAtPath:()=>GD,getEnumValues:()=>Ju,getLengthableOrigin:()=>ec,getParsedType:()=>KD,getSizableOrigin:()=>Qu,hexToUint8Array:()=>sj,isObject:()=>Ta,isPlainObject:()=>fi,issue:()=>zs,joinValues:()=>R,jsonStringifyReplacer:()=>Cs,merge:()=>tj,mergeDefs:()=>vo,normalizeParams:()=>L,nullish:()=>pi,numKeys:()=>WD,objectClone:()=>VD,omit:()=>XD,optionalKeys:()=>oy,parsedType:()=>D,partial:()=>rj,pick:()=>YD,prefixIssues:()=>Or,primitiveTypes:()=>ny,promiseAllObject:()=>ZD,propertyKeyTypes:()=>Xu,randomString:()=>FD,required:()=>nj,safeExtend:()=>ej,shallowClone:()=>ry,slugify:()=>ey,stringifyPrimitive:()=>N,uint8ArrayToBase64:()=>Kw,uint8ArrayToBase64url:()=>aj,uint8ArrayToHex:()=>lj,unwrapMessage:()=>Ku});function jD(e){return e}function UD(e){return e}function LD(e){}function qD(e){throw new Error("Unexpected value in exhaustive check")}function BD(e){}function Ju(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}function R(e,t="|"){return e.map(r=>N(r)).join(t)}function Cs(e,t){return typeof t=="bigint"?t.toString():t}function Rs(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}function pi(e){return e==null}function Yu(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}function Qh(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let l=o.match(/\d?e-(\d?)/);l?.[1]&&(n=Number.parseInt(l[1]))}let i=r>n?r:n,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}function oe(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Fw)return o===void 0&&(o=Fw,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function VD(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function di(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function vo(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}function HD(e){return vo(e._zod.def)}function GD(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}function ZD(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let i=0;i<t.length;i++)n[t[i]]=o[i];return n})}function FD(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}function Kd(e){return JSON.stringify(e)}function ey(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}function Ta(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function fi(e){if(Ta(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Ta(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function ry(e){return fi(e)?{...e}:Array.isArray(e)?[...e]:e}function WD(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}function Wr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ar(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}function L(e){let 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 JD(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,i){return t??(t=e()),Reflect.set(t,o,n,i)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}function N(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function oy(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function YD(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i=vo(e._zod.def,{get shape(){let a={};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(a[s]=r.shape[s])}return di(this,"shape",a),a},checks:[]});return ar(e,i)}function XD(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=vo(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let s in t){if(!(s in r.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete a[s]}return di(this,"shape",a),a},checks:[]});return ar(e,i)}function QD(e,t){if(!fi(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let i=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(i,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=vo(e._zod.def,{get shape(){let i={...e._zod.def.shape,...t};return di(this,"shape",i),i}});return ar(e,n)}function ej(e,t){if(!fi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=vo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return di(this,"shape",o),o}});return ar(e,r)}function tj(e,t){let r=vo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return di(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return ar(e,r)}function rj(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=vo(t._zod.def,{get shape(){let s=t._zod.def.shape,l={...s};if(r)for(let u in r){if(!(u in s))throw new Error(`Unrecognized key: "${u}"`);r[u]&&(l[u]=e?new e({type:"optional",innerType:s[u]}):s[u])}else for(let u in s)l[u]=e?new e({type:"optional",innerType:s[u]}):s[u];return di(this,"shape",l),l},checks:[]});return ar(t,a)}function nj(e,t,r){let o=vo(t._zod.def,{get shape(){let n=t._zod.def.shape,i={...n};if(r)for(let a in r){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(i[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)i[a]=new e({type:"nonoptional",innerType:n[a]});return di(this,"shape",i),i}});return ar(t,o)}function mi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function Or(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}function Ku(e){return typeof e=="string"?e:e?.message}function $r(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Ku(e.inst?._zod.def?.error?.(e))??Ku(t?.error?.(e))??Ku(r.customError?.(e))??Ku(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}function Qu(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function ec(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function D(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}function zs(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}function oj(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function Ww(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}function Kw(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}function ij(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return Ww(t+r)}function aj(e){return Kw(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function sj(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}function lj(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Fw,Jd,ty,KD,Xu,ny,iy,ay,Xh,Z=x(()=>{Fw=Symbol("evaluating");Jd="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};ty=Rs(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});KD=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Xu=new Set(["string","number","symbol"]),ny=new Set(["string","number","bigint","boolean","symbol","undefined"]);iy={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]},ay={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};Xh=class{constructor(...t){}}});function rc(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}function nc(e,t=r=>r.message){let r={_errors:[]},o=n=>{for(let i of n.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>o({issues:a}));else if(i.code==="invalid_key")o({issues:i.issues});else if(i.code==="invalid_element")o({issues:i.issues});else if(i.path.length===0)r._errors.push(t(i));else{let a=r,s=0;for(;s<i.path.length;){let l=i.path[s];s===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return o(e),r}function sy(e,t=r=>r.message){let r={errors:[]},o=(n,i=[])=>{var a,s;for(let l of n.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>o({issues:u},l.path));else if(l.code==="invalid_key")o({issues:l.issues},l.path);else if(l.code==="invalid_element")o({issues:l.issues},l.path);else{let u=[...i,...l.path];if(u.length===0){r.errors.push(t(l));continue}let c=r,p=0;for(;p<u.length;){let d=u[p],f=p===u.length-1;typeof d=="string"?(c.properties??(c.properties={}),(a=c.properties)[d]??(a[d]={errors:[]}),c=c.properties[d]):(c.items??(c.items=[]),(s=c.items)[d]??(s[d]={errors:[]}),c=c.items[d]),f&&c.errors.push(t(l)),p++}}};return o(e),r}function Yw(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}function ly(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Yw(o.path)}`);return t.join(`
2
+ `)}var Jw,tc,br,uy=x(()=>{Ms();Z();Jw=(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,Cs,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},tc=E("$ZodError",Jw),br=E("$ZodError",Jw,{Parent:Error})});var Ps,Yd,Os,Xd,As,cy,Ns,py,Qd,cj,ef,pj,tf,dj,rf,fj,nf,mj,of,gj,af,hj,sf,yj,dy=x(()=>{Ms();uy();Z();Ps=e=>(t,r,o,n)=>{let i=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise)throw new wn;if(a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>$r(l,i,at())));throw Jd(s,n?.callee),s}return a.value},Yd=Ps(br),Os=e=>async(t,r,o,n)=>{let i=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){let s=new(n?.Err??e)(a.issues.map(l=>$r(l,i,at())));throw Jd(s,n?.callee),s}return a.value},Xd=Os(br),As=e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},i=t._zod.run({value:r,issues:[]},n);if(i instanceof Promise)throw new wn;return i.issues.length?{success:!1,error:new(e??tc)(i.issues.map(a=>$r(a,n,at())))}:{success:!0,data:i.value}},cy=As(br),Ns=e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},i=t._zod.run({value:r,issues:[]},n);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>$r(a,n,at())))}:{success:!0,data:i.value}},py=Ns(br),Qd=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ps(e)(t,r,n)},cj=Qd(br),ef=e=>(t,r,o)=>Ps(e)(t,r,o),pj=ef(br),tf=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Os(e)(t,r,n)},dj=tf(br),rf=e=>async(t,r,o)=>Os(e)(t,r,o),fj=rf(br),nf=e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return As(e)(t,r,n)},mj=nf(br),of=e=>(t,r,o)=>As(e)(t,r,o),gj=of(br),af=e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Ns(e)(t,r,n)},hj=af(br),sf=e=>async(t,r,o)=>Ns(e)(t,r,o),yj=sf(br)});var Kr={};ct(Kr,{base64:()=>Ey,base64url:()=>lf,bigint:()=>Oy,boolean:()=>Ny,browserEmail:()=>wj,cidrv4:()=>Ty,cidrv6:()=>Iy,cuid:()=>fy,cuid2:()=>my,date:()=>Cy,datetime:()=>zy,domain:()=>Ej,duration:()=>$y,e164:()=>My,email:()=>xy,emoji:()=>ky,extendedDuration:()=>vj,guid:()=>by,hex:()=>Mj,hostname:()=>Ij,html5Email:()=>kj,idnEmail:()=>Sj,integer:()=>Ay,ipv4:()=>_y,ipv6:()=>Sy,ksuid:()=>yy,lowercase:()=>Uy,mac:()=>wy,md5_base64:()=>Rj,md5_base64url:()=>zj,md5_hex:()=>Cj,nanoid:()=>vy,null:()=>Dy,number:()=>uf,rfc5322Email:()=>_j,sha1_base64:()=>Oj,sha1_base64url:()=>Aj,sha1_hex:()=>Pj,sha256_base64:()=>Dj,sha256_base64url:()=>jj,sha256_hex:()=>Nj,sha384_base64:()=>Lj,sha384_base64url:()=>qj,sha384_hex:()=>Uj,sha512_base64:()=>Vj,sha512_base64url:()=>Hj,sha512_hex:()=>Bj,string:()=>Py,time:()=>Ry,ulid:()=>gy,undefined:()=>jy,unicodeEmail:()=>Xw,uppercase:()=>Ly,uuid:()=>Ia,uuid4:()=>$j,uuid6:()=>bj,uuid7:()=>xj,xid:()=>hy});function ky(){return new RegExp(Tj,"u")}function e5(e){let 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 Ry(e){return new RegExp(`^${e5(e)}$`)}function zy(e){let t=e5({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${Qw}T(?:${o})$`)}function oc(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function ic(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var fy,my,gy,hy,yy,vy,$y,vj,by,Ia,$j,bj,xj,xy,kj,_j,Xw,Sj,wj,Tj,_y,Sy,wy,Ty,Iy,Ey,lf,Ij,Ej,My,Qw,Cy,Py,Oy,Ay,uf,Ny,Dy,jy,Uy,Ly,Mj,Cj,Rj,zj,Pj,Oj,Aj,Nj,Dj,jj,Uj,Lj,qj,Bj,Vj,Hj,cf=x(()=>{Z();fy=/^[cC][^\s-]{8,}$/,my=/^[0-9a-z]+$/,gy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,hy=/^[0-9a-vA-V]{20}$/,yy=/^[A-Za-z0-9]{27}$/,vy=/^[a-zA-Z0-9_-]{21}$/,$y=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,by=/^([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})$/,Ia=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)$/,$j=Ia(4),bj=Ia(6),xj=Ia(7),xy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kj=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_j=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Xw=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Sj=Xw,wj=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Tj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";_y=/^(?:(?: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])$/,Sy=/^(([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}|:))$/,wy=e=>{let t=Wr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Ty=/^((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])$/,Iy=/^(([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])$/,Ey=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lf=/^[A-Za-z0-9_-]*$/,Ij=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ej=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,My=/^\+[1-9]\d{6,14}$/,Qw="(?:(?:\\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])))",Cy=new RegExp(`^${Qw}$`);Py=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Oy=/^-?\d+n?$/,Ay=/^-?\d+$/,uf=/^-?\d+(?:\.\d+)?$/,Ny=/^(?:true|false)$/i,Dy=/^null$/i,jy=/^undefined$/i,Uy=/^[^A-Z]*$/,Ly=/^[^a-z]*$/,Mj=/^[0-9a-fA-F]*$/;Cj=/^[0-9a-fA-F]{32}$/,Rj=oc(22,"=="),zj=ic(22),Pj=/^[0-9a-fA-F]{40}$/,Oj=oc(27,"="),Aj=ic(27),Nj=/^[0-9a-fA-F]{64}$/,Dj=oc(43,"="),jj=ic(43),Uj=/^[0-9a-fA-F]{96}$/,Lj=oc(64,""),qj=ic(64),Bj=/^[0-9a-fA-F]{128}$/,Vj=oc(86,"=="),Hj=ic(86)});function t5(e,t,r){e.issues.length&&t.issues.push(...Or(r,e.issues))}var De,r5,pf,df,qy,By,Vy,Hy,Gy,Zy,Fy,Wy,Ky,Ds,Jy,Yy,Xy,Qy,ev,tv,rv,nv,ov,ff=x(()=>{Ms();cf();Z();De=E("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),r5={number:"number",bigint:"bigint",object:"date"},pf=E("$ZodCheckLessThan",(e,t)=>{De.init(e,t);let r=r5[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),df=E("$ZodCheckGreaterThan",(e,t)=>{De.init(e,t);let r=r5[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,i=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),qy=E("$ZodCheckMultipleOf",(e,t)=>{De.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):Qh(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),By=E("$ZodCheckNumberFormat",(e,t)=>{De.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,i]=iy[t.format];e._zod.onattach.push(a=>{let s=a._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i,r&&(s.pattern=Ay)}),e._zod.check=a=>{let s=a.value;if(r){if(!Number.isInteger(s)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?a.issues.push({input:s,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:s,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}s<n&&a.issues.push({origin:"number",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&a.issues.push({origin:"number",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Vy=E("$ZodCheckBigIntFormat",(e,t)=>{De.init(e,t);let[r,o]=ay[t.format];e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,i.minimum=r,i.maximum=o}),e._zod.check=n=>{let i=n.value;i<r&&n.issues.push({origin:"bigint",input:i,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),i>o&&n.issues.push({origin:"bigint",input:i,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Hy=E("$ZodCheckMaxSize",(e,t)=>{var r;De.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pi(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Qu(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Gy=E("$ZodCheckMinSize",(e,t)=>{var r;De.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pi(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Qu(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Zy=E("$ZodCheckSizeEquals",(e,t)=>{var r;De.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pi(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,i=n.size;if(i===t.size)return;let a=i>t.size;o.issues.push({origin:Qu(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Fy=E("$ZodCheckMaxLength",(e,t)=>{var r;De.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pi(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=ec(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Wy=E("$ZodCheckMinLength",(e,t)=>{var r;De.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pi(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=ec(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),Ky=E("$ZodCheckLengthEquals",(e,t)=>{var r;De.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!pi(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,i=n.length;if(i===t.length)return;let a=ec(n),s=i>t.length;o.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Ds=E("$ZodCheckStringFormat",(e,t)=>{var r,o;De.init(e,t),e._zod.onattach.push(n=>{let i=n._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),Jy=E("$ZodCheckRegex",(e,t)=>{Ds.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Yy=E("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Uy),Ds.init(e,t)}),Xy=E("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Ly),Ds.init(e,t)}),Qy=E("$ZodCheckIncludes",(e,t)=>{De.init(e,t);let r=Wr(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let i=n._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),ev=E("$ZodCheckStartsWith",(e,t)=>{De.init(e,t);let r=new RegExp(`^${Wr(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),tv=E("$ZodCheckEndsWith",(e,t)=>{De.init(e,t);let r=new RegExp(`.*${Wr(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});rv=E("$ZodCheckProperty",(e,t)=>{De.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>t5(n,r,t.property));t5(o,r,t.property)}}),nv=E("$ZodCheckMimeType",(e,t)=>{De.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),ov=E("$ZodCheckOverwrite",(e,t)=>{De.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}})});var ac,iv=x(()=>{ac=class{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}let o=t.split(`
3
+ `).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),i=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of i)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(i=>` ${i}`)];return new t(...r,n.join(`
4
+ `))}}});var av,sv=x(()=>{av={major:4,minor:3,patch:6}});function Mv(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}function g5(e){if(!lf.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return Mv(r)}function h5(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}function o5(e,t,r){e.issues.length&&t.issues.push(...Or(r,e.issues)),t.value[r]=e.value}function vf(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Or(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}function y5(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=oy(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}function v5(e,t,r,o,n,i){let a=[],s=n.keySet,l=n.catchall._zod,u=l.def.type,c=l.optout==="optional";for(let p in t){if(s.has(p))continue;if(u==="never"){a.push(p);continue}let d=l.run({value:t[p],issues:[]},o);d instanceof Promise?e.push(d.then(f=>vf(f,r,p,t,c))):vf(d,r,p,t,c)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>r):r}function i5(e,t,r,o){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let n=e.filter(i=>!mi(i));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>$r(a,o,at())))}),t)}function a5(e,t,r,o){let n=e.filter(i=>i.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(i=>i.issues.map(a=>$r(a,o,at())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}function lv(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(fi(e)&&fi(t)){let r=Object.keys(t),o=Object.keys(e).filter(i=>r.indexOf(i)!==-1),n={...e,...t};for(let i of o){let a=lv(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n[i]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=t[o],a=lv(n,i);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function s5(e,t,r){let o=new Map,n;for(let s of t.issues)if(s.code==="unrecognized_keys"){n??(n=s);for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).l=!0}else e.issues.push(s);for(let s of r.issues)if(s.code==="unrecognized_keys")for(let l of s.keys)o.has(l)||o.set(l,{}),o.get(l).r=!0;else e.issues.push(s);let i=[...o].filter(([,s])=>s.l&&s.r).map(([s])=>s);if(i.length&&n&&e.issues.push({...n,keys:i}),mi(e))return e;let a=lv(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}function mf(e,t,r){e.issues.length&&t.issues.push(...Or(r,e.issues)),t.value[r]=e.value}function l5(e,t,r,o,n,i,a){e.issues.length&&(Xu.has(typeof o)?r.issues.push(...Or(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:i,issues:e.issues.map(s=>$r(s,a,at()))})),t.issues.length&&(Xu.has(typeof o)?r.issues.push(...Or(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:i,key:o,issues:t.issues.map(s=>$r(s,a,at()))})),r.value.set(e.value,t.value)}function u5(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function c5(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}function p5(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function d5(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function gf(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}function hf(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(i=>yf(e,i,t.out,r)):yf(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(i=>yf(e,i,t.in,r)):yf(e,n,t.in,r)}}function yf(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}function f5(e){return e.value=Object.freeze(e.value),e}function m5(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(zs(n))}}var X,Ea,Me,uv,cv,pv,dv,fv,mv,gv,hv,yv,vv,$v,bv,xv,kv,_v,Sv,wv,Tv,Iv,Ev,Cv,Rv,zv,Pv,Ov,$f,Av,sc,bf,Nv,Dv,jv,Uv,Lv,qv,Bv,Vv,Hv,Gv,$5,Zv,lc,Fv,Wv,Kv,xf,Jv,Yv,Xv,Qv,e1,t1,r1,kf,n1,o1,i1,a1,s1,l1,u1,c1,p1,uc,d1,f1,m1,g1,h1,y1,v1=x(()=>{ff();Ms();iv();dy();cf();Z();sv();Z();X=E("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=av;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let i of n._zod.onattach)i(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=(a,s,l)=>{let u=mi(a),c;for(let p of s){if(p._zod.def.when){if(!p._zod.def.when(a))continue}else if(u)continue;let d=a.issues.length,f=p._zod.check(a);if(f instanceof Promise&&l?.async===!1)throw new wn;if(c||f instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await f,a.issues.length!==d&&(u||(u=mi(a,d)))});else{if(a.issues.length===d)continue;u||(u=mi(a,d))}}return c?c.then(()=>a):a},i=(a,s,l)=>{if(mi(a))return a.aborted=!0,a;let u=n(s,o,l);if(u instanceof Promise){if(l.async===!1)throw new wn;return u.then(c=>e._zod.parse(c,l))}return e._zod.parse(u,l)};e._zod.run=(a,s)=>{if(s.skipChecks)return e._zod.parse(a,s);if(s.direction==="backward"){let u=e._zod.parse({value:a.value,issues:[]},{...s,skipChecks:!0});return u instanceof Promise?u.then(c=>i(c,a,s)):i(u,a,s)}let l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new wn;return l.then(u=>n(u,o,s))}return n(l,o,s)}}oe(e,"~standard",()=>({validate:n=>{try{let i=cy(e,n);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return py(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},vendor:"zod",version:1}))}),Ea=E("$ZodString",(e,t)=>{X.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Py(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Me=E("$ZodStringFormat",(e,t)=>{Ds.init(e,t),Ea.init(e,t)}),uv=E("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=by),Me.init(e,t)}),cv=E("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Ia(o))}else t.pattern??(t.pattern=Ia());Me.init(e,t)}),pv=E("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=xy),Me.init(e,t)}),dv=E("$ZodURL",(e,t)=>{Me.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),fv=E("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=ky()),Me.init(e,t)}),mv=E("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=vy),Me.init(e,t)}),gv=E("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=fy),Me.init(e,t)}),hv=E("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=my),Me.init(e,t)}),yv=E("$ZodULID",(e,t)=>{t.pattern??(t.pattern=gy),Me.init(e,t)}),vv=E("$ZodXID",(e,t)=>{t.pattern??(t.pattern=hy),Me.init(e,t)}),$v=E("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=yy),Me.init(e,t)}),bv=E("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=zy(t)),Me.init(e,t)}),xv=E("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Cy),Me.init(e,t)}),kv=E("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Ry(t)),Me.init(e,t)}),_v=E("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=$y),Me.init(e,t)}),Sv=E("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_y),Me.init(e,t),e._zod.bag.format="ipv4"}),wv=E("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Sy),Me.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Tv=E("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=wy(t.delimiter)),Me.init(e,t),e._zod.bag.format="mac"}),Iv=E("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ty),Me.init(e,t)}),Ev=E("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Iy),Me.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,i]=o;if(!i)throw new Error;let a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});Cv=E("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ey),Me.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{Mv(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});Rv=E("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lf),Me.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{g5(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),zv=E("$ZodE164",(e,t)=>{t.pattern??(t.pattern=My),Me.init(e,t)});Pv=E("$ZodJWT",(e,t)=>{Me.init(e,t),e._zod.check=r=>{h5(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Ov=E("$ZodCustomStringFormat",(e,t)=>{Me.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),$f=E("$ZodNumber",(e,t)=>{X.init(e,t),e._zod.pattern=e._zod.bag.pattern??uf,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let i=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...i?{received:i}:{}}),r}}),Av=E("$ZodNumberFormat",(e,t)=>{By.init(e,t),$f.init(e,t)}),sc=E("$ZodBoolean",(e,t)=>{X.init(e,t),e._zod.pattern=Ny,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),bf=E("$ZodBigInt",(e,t)=>{X.init(e,t),e._zod.pattern=Oy,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Nv=E("$ZodBigIntFormat",(e,t)=>{Vy.init(e,t),bf.init(e,t)}),Dv=E("$ZodSymbol",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),jv=E("$ZodUndefined",(e,t)=>{X.init(e,t),e._zod.pattern=jy,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),Uv=E("$ZodNull",(e,t)=>{X.init(e,t),e._zod.pattern=Dy,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),Lv=E("$ZodAny",(e,t)=>{X.init(e,t),e._zod.parse=r=>r}),qv=E("$ZodUnknown",(e,t)=>{X.init(e,t),e._zod.parse=r=>r}),Bv=E("$ZodNever",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Vv=E("$ZodVoid",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Hv=E("$ZodDate",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,i=n instanceof Date;return i&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...i?{received:"Invalid Date"}:{},inst:e}),r}});Gv=E("$ZodArray",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let i=[];for(let a=0;a<n.length;a++){let s=n[a],l=t.element._zod.run({value:s,issues:[]},o);l instanceof Promise?i.push(l.then(u=>o5(u,r,a))):o5(l,r,a)}return i.length?Promise.all(i).then(()=>r):r}});$5=E("$ZodObject",(e,t)=>{if(X.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let s=t.shape;Object.defineProperty(t,"shape",{get:()=>{let l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}let o=Rs(()=>y5(t));oe(e._zod,"propValues",()=>{let s=t.shape,l={};for(let u in s){let c=s[u]._zod;if(c.values){l[u]??(l[u]=new Set);for(let p of c.values)l[u].add(p)}}return l});let n=Ta,i=t.catchall,a;e._zod.parse=(s,l)=>{a??(a=o.value);let u=s.value;if(!n(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};let c=[],p=a.shape;for(let d of a.keys){let f=p[d],m=f._zod.optout==="optional",v=f._zod.run({value:u[d],issues:[]},l);v instanceof Promise?c.push(v.then(b=>vf(b,s,d,u,m))):vf(v,s,d,u,m)}return i?v5(c,u,s,l,o.value,e):c.length?Promise.all(c).then(()=>s):s}}),Zv=E("$ZodObjectJIT",(e,t)=>{$5.init(e,t);let r=e._zod.parse,o=Rs(()=>y5(t)),n=d=>{let f=new ac(["shape","payload","ctx"]),m=o.value,v=$=>{let _=Kd($);return`shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`};f.write("const input = payload.value;");let b=Object.create(null),y=0;for(let $ of m.keys)b[$]=`key_${y++}`;f.write("const newResult = {};");for(let $ of m.keys){let _=b[$],S=Kd($),k=d[$]?._zod?.optout==="optional";f.write(`const ${_} = ${v($)};`),k?f.write(`
5
+ if (${_}.issues.length) {
6
+ if (${S} in input) {
7
+ payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
8
+ ...iss,
9
+ path: iss.path ? [${S}, ...iss.path] : [${S}]
10
+ })));
11
+ }
12
+ }
13
+
14
+ if (${_}.value === undefined) {
15
+ if (${S} in input) {
16
+ newResult[${S}] = undefined;
17
+ }
18
+ } else {
19
+ newResult[${S}] = ${_}.value;
20
+ }
21
+
22
+ `):f.write(`
23
+ if (${_}.issues.length) {
24
+ payload.issues = payload.issues.concat(${_}.issues.map(iss => ({
25
+ ...iss,
26
+ path: iss.path ? [${S}, ...iss.path] : [${S}]
27
+ })));
28
+ }
29
+
30
+ if (${_}.value === undefined) {
31
+ if (${S} in input) {
32
+ newResult[${S}] = undefined;
33
+ }
34
+ } else {
35
+ newResult[${S}] = ${_}.value;
36
+ }
37
+
38
+ `)}f.write("payload.value = newResult;"),f.write("return payload;");let h=f.compile();return($,_)=>h(d,$,_)},i,a=Ta,s=!Wu.jitless,u=s&&ty.value,c=t.catchall,p;e._zod.parse=(d,f)=>{p??(p=o.value);let m=d.value;return a(m)?s&&u&&f?.async===!1&&f.jitless!==!0?(i||(i=n(t.shape)),d=i(d,f),c?v5([],m,d,f,p,e):d):r(d,f):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d)}});lc=E("$ZodUnion",(e,t)=>{X.init(e,t),oe(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),oe(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),oe(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),oe(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${n.map(i=>Yu(i.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>i5(l,n,e,i)):i5(s,n,e,i)}});Fv=E("$ZodXor",(e,t)=>{lc.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,i)=>{if(r)return o(n,i);let a=!1,s=[];for(let l of t.options){let u=l._zod.run({value:n.value,issues:[]},i);u instanceof Promise?(s.push(u),a=!0):s.push(u)}return a?Promise.all(s).then(l=>a5(l,n,e,i)):a5(s,n,e,i)}}),Wv=E("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,lc.init(e,t);let r=e._zod.parse;oe(e._zod,"propValues",()=>{let n={};for(let i of t.options){let a=i._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let[s,l]of Object.entries(a)){n[s]||(n[s]=new Set);for(let u of l)n[s].add(u)}}return n});let o=Rs(()=>{let n=t.options,i=new Map;for(let a of n){let s=a._zod.propValues?.[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let l of s){if(i.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);i.set(l,a)}}return i});e._zod.parse=(n,i)=>{let a=n.value;if(!Ta(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let s=o.value.get(a?.[t.discriminator]);return s?s._zod.run(n,i):t.unionFallback?r(n,i):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),Kv=E("$ZodIntersection",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,i=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,u])=>s5(r,l,u)):s5(r,i,a)}});xf=E("$ZodTuple",(e,t)=>{X.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let i=o.value;if(!Array.isArray(i))return o.issues.push({input:i,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],s=[...r].reverse().findIndex(c=>c._zod.optin!=="optional"),l=s===-1?0:r.length-s;if(!t.rest){let c=i.length>r.length,p=i.length<l-1;if(c||p)return o.issues.push({...c?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:i,inst:e,origin:"array"}),o}let u=-1;for(let c of r){if(u++,u>=i.length&&u>=l)continue;let p=c._zod.run({value:i[u],issues:[]},n);p instanceof Promise?a.push(p.then(d=>mf(d,o,u))):mf(p,o,u)}if(t.rest){let c=i.slice(r.length);for(let p of c){u++;let d=t.rest._zod.run({value:p,issues:[]},n);d instanceof Promise?a.push(d.then(f=>mf(f,o,u))):mf(d,o,u)}}return a.length?Promise.all(a).then(()=>o):o}});Jv=E("$ZodRecord",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!fi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let i=[],a=t.keyType._zod.values;if(a){r.value={};let s=new Set;for(let u of a)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){s.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:n[u],issues:[]},o);c instanceof Promise?i.push(c.then(p=>{p.issues.length&&r.issues.push(...Or(u,p.issues)),r.value[u]=p.value})):(c.issues.length&&r.issues.push(...Or(u,c.issues)),r.value[u]=c.value)}let l;for(let u in n)s.has(u)||(l=l??[],l.push(u));l&&l.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:l})}else{r.value={};for(let s of Reflect.ownKeys(n)){if(s==="__proto__")continue;let l=t.keyType._zod.run({value:s,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof s=="string"&&uf.test(s)&&l.issues.length){let p=t.keyType._zod.run({value:Number(s),issues:[]},o);if(p instanceof Promise)throw new Error("Async schemas not supported in object keys currently");p.issues.length===0&&(l=p)}if(l.issues.length){t.mode==="loose"?r.value[s]=n[s]:r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(p=>$r(p,o,at())),input:s,path:[s],inst:e});continue}let c=t.valueType._zod.run({value:n[s],issues:[]},o);c instanceof Promise?i.push(c.then(p=>{p.issues.length&&r.issues.push(...Or(s,p.issues)),r.value[l.value]=p.value})):(c.issues.length&&r.issues.push(...Or(s,c.issues)),r.value[l.value]=c.value)}}return i.length?Promise.all(i).then(()=>r):r}}),Yv=E("$ZodMap",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let i=[];r.value=new Map;for(let[a,s]of n){let l=t.keyType._zod.run({value:a,issues:[]},o),u=t.valueType._zod.run({value:s,issues:[]},o);l instanceof Promise||u instanceof Promise?i.push(Promise.all([l,u]).then(([c,p])=>{l5(c,p,r,a,n,e,o)})):l5(l,u,r,a,n,e,o)}return i.length?Promise.all(i).then(()=>r):r}});Xv=E("$ZodSet",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let i=[];r.value=new Set;for(let a of n){let s=t.valueType._zod.run({value:a,issues:[]},o);s instanceof Promise?i.push(s.then(l=>u5(l,r))):u5(s,r)}return i.length?Promise.all(i).then(()=>r):r}});Qv=E("$ZodEnum",(e,t)=>{X.init(e,t);let r=Ju(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Xu.has(typeof n)).map(n=>typeof n=="string"?Wr(n):n.toString()).join("|")})$`),e._zod.parse=(n,i)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),e1=E("$ZodLiteral",(e,t)=>{if(X.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?Wr(o):o?Wr(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let i=o.value;return r.has(i)||o.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),o}}),t1=E("$ZodFile",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),r1=E("$ZodTransform",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ci(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new wn;return r.value=n,r}});kf=E("$ZodOptional",(e,t)=>{X.init(e,t),e._zod.optin="optional",e._zod.optout="optional",oe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),oe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Yu(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>c5(i,r.value)):c5(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),n1=E("$ZodExactOptional",(e,t)=>{kf.init(e,t),oe(e._zod,"values",()=>t.innerType._zod.values),oe(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),o1=E("$ZodNullable",(e,t)=>{X.init(e,t),oe(e._zod,"optin",()=>t.innerType._zod.optin),oe(e._zod,"optout",()=>t.innerType._zod.optout),oe(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Yu(r.source)}|null)$`):void 0}),oe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),i1=E("$ZodDefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>p5(i,t)):p5(n,t)}});a1=E("$ZodPrefault",(e,t)=>{X.init(e,t),e._zod.optin="optional",oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),s1=E("$ZodNonOptional",(e,t)=>{X.init(e,t),oe(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>d5(i,e)):d5(n,e)}});l1=E("$ZodSuccess",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ci("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),u1=E("$ZodCatch",(e,t)=>{X.init(e,t),oe(e._zod,"optin",()=>t.innerType._zod.optin),oe(e._zod,"optout",()=>t.innerType._zod.optout),oe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(i=>(r.value=i.value,i.issues.length&&(r.value=t.catchValue({...r,error:{issues:i.issues.map(a=>$r(a,o,at()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(i=>$r(i,o,at()))},input:r.value}),r.issues=[]),r)}}),c1=E("$ZodNaN",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),p1=E("$ZodPipe",(e,t)=>{X.init(e,t),oe(e._zod,"values",()=>t.in._zod.values),oe(e._zod,"optin",()=>t.in._zod.optin),oe(e._zod,"optout",()=>t.out._zod.optout),oe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>gf(a,t.in,o)):gf(i,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(i=>gf(i,t.out,o)):gf(n,t.out,o)}});uc=E("$ZodCodec",(e,t)=>{X.init(e,t),oe(e._zod,"values",()=>t.in._zod.values),oe(e._zod,"optin",()=>t.in._zod.optin),oe(e._zod,"optout",()=>t.out._zod.optout),oe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let i=t.in._zod.run(r,o);return i instanceof Promise?i.then(a=>hf(a,t,o)):hf(i,t,o)}else{let i=t.out._zod.run(r,o);return i instanceof Promise?i.then(a=>hf(a,t,o)):hf(i,t,o)}}});d1=E("$ZodReadonly",(e,t)=>{X.init(e,t),oe(e._zod,"propValues",()=>t.innerType._zod.propValues),oe(e._zod,"values",()=>t.innerType._zod.values),oe(e._zod,"optin",()=>t.innerType?._zod?.optin),oe(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(f5):f5(n)}});f1=E("$ZodTemplateLiteral",(e,t)=>{X.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let i=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(i,a))}else if(o===null||ny.has(typeof o))r.push(Wr(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),m1=E("$ZodFunction",(e,t)=>(X.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?Yd(e._def.input,o):o,i=Reflect.apply(r,this,n);return e._def.output?Yd(e._def.output,i):i}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Xd(e._def.input,o):o,i=await Reflect.apply(r,this,n);return e._def.output?await Xd(e._def.output,i):i}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new xf({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),g1=E("$ZodPromise",(e,t)=>{X.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),h1=E("$ZodLazy",(e,t)=>{X.init(e,t),oe(e._zod,"innerType",()=>t.getter()),oe(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),oe(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),oe(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),oe(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),y1=E("$ZodCustom",(e,t)=>{De.init(e,t),X.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(i=>m5(i,r,o,e));m5(n,r,o,e)}})});function b5(){return{localeError:Zj()}}var Zj,x5=x(()=>{Z();Zj=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${i}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${s}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${N(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:i.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${i.suffix}"`:i.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${i.includes}"`:i.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${i.pattern}`:`${r[i.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${R(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}}});function k5(){return{localeError:Fj()}}var Fj,_5=x(()=>{Z();Fj=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${s}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${i}, daxil olan ${s}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${N(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${i.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:i.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${i.suffix}" il\u0259 bitm\u0259lidir`:i.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${i.includes}" daxil olmal\u0131d\u0131r`:i.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${i.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[i.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${R(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}}});function S5(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}function w5(){return{localeError:Wj()}}var Wj,T5=x(()=>{Z();Wj=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${i}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${N(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=S5(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.maximum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=S5(s,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${i}${n.minimum.toString()} ${l}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${R(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}}});function I5(){return{localeError:Kj()}}var Kj,E5=x(()=>{Z();Kj=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${N(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;if(i.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${i.prefix}"`;if(i.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${i.suffix}"`;if(i.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${i.includes}"`;if(i.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${i.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return i.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),i.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),i.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${R(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}}});function M5(){return{localeError:Jj()}}var Jj,C5=x(()=>{Z();Jj=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${s}`:`Tipus inv\xE0lid: s'esperava ${i}, s'ha rebut ${s}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${N(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${R(n.values," o ")}`;case"too_big":{let i=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${i} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${i} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${i.prefix}"`:i.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${i.suffix}"`:i.format==="includes"?`Format inv\xE0lid: ha d'incloure "${i.includes}"`:i.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${i.pattern}`:`Format inv\xE0lid per a ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}}});function R5(){return{localeError:Yj()}}var Yj,z5=x(()=>{Z();Yj=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${s}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${i}, obdr\u017Eeno ${s}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${N(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${i}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${i.prefix}"`:i.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${i.suffix}"`:i.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${i.includes}"`:i.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${i.pattern}`:`Neplatn\xFD form\xE1t ${r[i.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${R(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}}});function P5(){return{localeError:Xj()}}var Xj,O5=x(()=>{Z();Xj=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${s}`:`Ugyldigt input: forventede ${i}, fik ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${N(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For stor: forventede ${s??"value"} ${a.verb} ${i} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${s??"value"} havde ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`For lille: forventede ${s} ${a.verb} ${i} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${s} havde ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: skal starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: skal ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: skal indeholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${R(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}}});function A5(){return{localeError:Qj()}}var Qj,N5=x(()=>{Z();Qj=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${s}`:`Ung\xFCltige Eingabe: erwartet ${i}, erhalten ${s}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${N(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${i}${n.maximum.toString()} ist`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${i}${n.minimum.toString()} ist`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ung\xFCltiger String: muss mit "${i.prefix}" beginnen`:i.format==="ends_with"?`Ung\xFCltiger String: muss mit "${i.suffix}" enden`:i.format==="includes"?`Ung\xFCltiger String: muss "${i.includes}" enthalten`:i.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${i.pattern} entsprechen`:`Ung\xFCltig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${R(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}}});function _f(){return{localeError:eU()}}var eU,$1=x(()=>{Z();eU=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return`Invalid input: expected ${i}, received ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${N(n.values[0])}`:`Invalid option: expected one of ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${i}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${i}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Invalid string: must start with "${i.prefix}"`:i.format==="ends_with"?`Invalid string: must end with "${i.suffix}"`:i.format==="includes"?`Invalid string: must include "${i.includes}"`:i.format==="regex"?`Invalid string: must match pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}}});function D5(){return{localeError:tU()}}var tU,j5=x(()=>{Z();tU=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${s}`:`Nevalida enigo: atendi\u011Dis ${i}, ricevi\u011Dis ${s}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${N(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${i}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${i.prefix}"`:i.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${i.suffix}"`:i.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${i.includes}"`:i.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${i.pattern}`:`Nevalida ${r[i.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}}});function U5(){return{localeError:rU()}}var rU,L5=x(()=>{Z();rU=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${s}`:`Entrada inv\xE1lida: se esperaba ${i}, recibido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${N(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${s??"valor"} tuviera ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${s??"valor"} fuera ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${s} tuviera ${i}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${s} fuera ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${i.prefix}"`:i.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${i.suffix}"`:i.format==="includes"?`Cadena inv\xE1lida: debe incluir "${i.includes}"`:i.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${i.pattern}`:`Inv\xE1lido ${r[i.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}}});function q5(){return{localeError:nU()}}var nU,B5=x(()=>{Z();nU=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${i} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${s} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${N(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${R(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:i.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${i.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:i.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${i.includes}" \u0628\u0627\u0634\u062F`:i.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${i.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[i.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${R(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}}});function V5(){return{localeError:oU()}}var oU,H5=x(()=>{Z();oU=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${s}`:`Virheellinen tyyppi: odotettiin ${i}, oli ${s}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${N(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${i}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${i}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${i.prefix}"`:i.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${i.suffix}"`:i.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${i.includes}"`:i.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${i.pattern}`:`Virheellinen ${r[i.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${R(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}}});function G5(){return{localeError:iU()}}var iU,Z5=x(()=>{Z();iU=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${s} re\xE7u`:`Entr\xE9e invalide : ${i} attendu, ${s} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${N(n.values[0])} attendu`:`Option invalide : une valeur parmi ${R(n.values,"|")} attendue`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${R(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}}});function F5(){return{localeError:aU()}}var aU,W5=x(()=>{Z();aU=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${s}`:`Entr\xE9e invalide : attendu ${i}, re\xE7u ${s}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${N(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${i}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${i}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${i.prefix}"`:i.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${i.suffix}"`:i.format==="includes"?`Cha\xEEne invalide : doit inclure "${i.includes}"`:i.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${i.pattern}`:`${r[i.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${R(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}}});function K5(){return{localeError:sU()}}var sU,J5=x(()=>{Z();sU=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=u=>u?e[u]:void 0,o=u=>{let c=r(u);return c?c.label:u??e.unknown.label},n=u=>`\u05D4${o(u)}`,i=u=>(r(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",a=u=>u?t[u]??null:null,s={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},l={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,p=l[c??""]??o(c),d=D(u.input),f=l[d]??e[d]?.label??d;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${p}, \u05D4\u05EA\u05E7\u05D1\u05DC ${f}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${N(u.values[0])}`;let c=u.values.map(f=>N(f));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let p=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${p}`}case"too_big":{let c=a(u.origin),p=n(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",v=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`.trim()}let d=u.inclusive?"<=":"<",f=i(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.maximum.toString()}`}case"too_small":{let c=a(u.origin),p=n(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let b=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`}let v=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${p} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${v}`.trim()}let d=u.inclusive?">=":">",f=i(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${p} ${f} ${d}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let p=s[c.format],d=p?.label??c.format,m=(p?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${d} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${R(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}}});function Y5(){return{localeError:lU()}}var lU,X5=x(()=>{Z();lU=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${s}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${i}, a kapott \xE9rt\xE9k ${s}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${N(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${i}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${i}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xC9rv\xE9nytelen string: "${i.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:i.format==="ends_with"?`\xC9rv\xE9nytelen string: "${i.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:i.format==="includes"?`\xC9rv\xE9nytelen string: "${i.includes}" \xE9rt\xE9ket kell tartalmaznia`:i.format==="regex"?`\xC9rv\xE9nytelen string: ${i.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[i.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}}});function Q5(e,t,r){return Math.abs(e)===1?t:r}function js(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}function eT(){return{localeError:uU()}}var uU,tT=x(()=>{Z();uU=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${i}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${s}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${N(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=Q5(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${js(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.maximum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${js(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=Q5(s,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${js(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${i}${n.minimum.toString()} ${l}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${js(n.origin)} \u056C\u056B\u0576\u056B ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${i.prefix}"-\u0578\u057E`:i.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${i.suffix}"-\u0578\u057E`:i.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${i.includes}"`:i.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${i.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[i.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${R(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${js(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${js(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}}});function rT(){return{localeError:cU()}}var cU,nT=x(()=>{Z();cU=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${s}`:`Input tidak valid: diharapkan ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${N(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak valid: harus dimulai dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak valid: harus berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak valid: harus menyertakan "${i.includes}"`:i.format==="regex"?`String tidak valid: harus sesuai pola ${i.pattern}`:`${r[i.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}}});function oT(){return{localeError:pU()}}var pU,iT=x(()=>{Z();pU=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${s} \xFEar sem \xE1 a\xF0 vera ${i}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${N(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${i}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${i}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${i.prefix}"`:i.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${i.suffix}"`:i.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${i.includes}"`:i.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${i.pattern}`:`Rangt ${r[i.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${R(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}}});function aT(){return{localeError:dU()}}var dU,sT=x(()=>{Z();dU=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${s}`:`Input non valido: atteso ${i}, ricevuto ${s}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${N(n.values[0])}`:`Opzione non valida: atteso uno tra ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${i}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${i}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Stringa non valida: deve iniziare con "${i.prefix}"`:i.format==="ends_with"?`Stringa non valida: deve terminare con "${i.suffix}"`:i.format==="includes"?`Stringa non valida: deve includere "${i.includes}"`:i.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${R(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}}});function lT(){return{localeError:fU()}}var fU,uT=x(()=>{Z();fU=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${i}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${s}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${N(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${R(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let i=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let i=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${i}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${i.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:i.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${i.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${R(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}}});function cT(){return{localeError:mU()}}var mU,pT=x(()=>{Z();mU=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${i}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${s}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${N(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${R(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.prefix}"-\u10D8\u10D7`:i.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${i.suffix}"-\u10D8\u10D7`:i.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${i.includes}"-\u10E1`:i.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${i.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${R(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}}});function Sf(){return{localeError:gU()}}var gU,b1=x(()=>{Z();gU=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${i} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${s}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${N(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${i.prefix}"`:i.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${i.suffix}"`:i.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${i.includes}"`:i.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${i.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${R(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}}});function dT(){return Sf()}var fT=x(()=>{b1()});function mT(){return{localeError:hU()}}var hU,gT=x(()=>{Z();hU=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${i}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${s}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${N(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${R(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let i=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=i==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${l} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${i}${a}`}case"too_small":{let i=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=i==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",s=t(n.origin),l=s?.unit??"\uC694\uC18C";return s?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${l} ${i}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${i}${a}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:i.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${i.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:i.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${i.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[i.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${R(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}}});function hT(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}function yT(){return{localeError:yU()}}var cc,yU,vT=x(()=>{Z();cc=e=>e.charAt(0).toUpperCase()+e.slice(1);yU=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,i,a,s){let l=e[n]??null;return l===null?l:{unit:l.unit[i],verb:l.verb[s][a?"inclusive":"notInclusive"]}}let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${s}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${s}, o tik\u0117tasi - ${i}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${N(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${R(n.values,"|")} pasirinkim\u0173`;case"too_big":{let i=o[n.origin]??n.origin,a=t(n.origin,hT(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${cc(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${cc(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let i=o[n.origin]??n.origin,a=t(n.origin,hT(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${cc(i??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let s=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${cc(i??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${s} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${i.prefix}"`:i.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${i.suffix}"`:i.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${i.includes}"`:i.format==="regex"?`Eilut\u0117 privalo atitikti ${i.pattern}`:`Neteisingas ${r[i.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${R(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let i=o[n.origin]??n.origin;return`${cc(i??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}}});function $T(){return{localeError:vU()}}var vU,bT=x(()=>{Z();vU=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${i}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${N(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${i}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${i.pattern}`:`Invalid ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${R(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}}});function xT(){return{localeError:$U()}}var $U,kT=x(()=>{Z();$U=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${s}`:`Input tidak sah: dijangka ${i}, diterima ${s}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${N(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`String tidak sah: mesti bermula dengan "${i.prefix}"`:i.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${i.suffix}"`:i.format==="includes"?`String tidak sah: mesti mengandungi "${i.includes}"`:i.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${i.pattern}`:`${r[i.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${R(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}}});function _T(){return{localeError:bU()}}var bU,ST=x(()=>{Z();bU=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${s}`:`Ongeldige invoer: verwacht ${i}, ontving ${s}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${N(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin),s=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin??"waarde"} ${i}${n.maximum.toString()} is`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin),s=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${s}: verwacht dat ${n.origin} ${i}${n.minimum.toString()} is`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ongeldige tekst: moet met "${i.prefix}" beginnen`:i.format==="ends_with"?`Ongeldige tekst: moet op "${i.suffix}" eindigen`:i.format==="includes"?`Ongeldige tekst: moet "${i.includes}" bevatten`:i.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${i.pattern}`:`Ongeldig: ${r[i.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}}});function wT(){return{localeError:xU()}}var xU,TT=x(()=>{Z();xU=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${s}`:`Ugyldig input: forventet ${i}, fikk ${s}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${N(n.values[0])}`:`Ugyldig valg: forventet en av ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${i.prefix}"`:i.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${i.suffix}"`:i.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${i.includes}"`:i.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${i.pattern}`:`Ugyldig ${r[i.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${R(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}}});function IT(){return{localeError:kU()}}var kU,ET=x(()=>{Z();kU=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${s}`:`F\xE2sit giren: umulan ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${N(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${i}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${i}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let i=n;return i.format==="starts_with"?`F\xE2sit metin: "${i.prefix}" ile ba\u015Flamal\u0131.`:i.format==="ends_with"?`F\xE2sit metin: "${i.suffix}" ile bitmeli.`:i.format==="includes"?`F\xE2sit metin: "${i.includes}" ihtiv\xE2 etmeli.`:i.format==="regex"?`F\xE2sit metin: ${i.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[i.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}}});function MT(){return{localeError:_U()}}var _U,CT=x(()=>{Z();_U=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${i} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${s} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${N(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${R(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${i}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${i}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:i.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${i.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:i.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${i.includes}" \u0648\u0644\u0631\u064A`:i.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${i.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[i.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${R(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}}});function RT(){return{localeError:SU()}}var SU,zT=x(()=>{Z();SU=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${s}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${i}, otrzymano ${s}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${N(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${i}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${i.prefix}"`:i.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${i.suffix}"`:i.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${i.includes}"`:i.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${i.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[i.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}}});function PT(){return{localeError:wU()}}var wU,OT=x(()=>{Z();wU=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${s}`:`Tipo inv\xE1lido: esperado ${i}, recebido ${s}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${N(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${i}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${i}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${i.prefix}"`:i.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${i.suffix}"`:i.format==="includes"?`Texto inv\xE1lido: deve incluir "${i.includes}"`:i.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${i.pattern}`:`${r[i.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${R(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}}});function AT(e,t,r,o){let n=Math.abs(e),i=n%10,a=n%100;return a>=11&&a<=19?o:i===1?t:i>=2&&i<=4?r:o}function NT(){return{localeError:TU()}}var TU,DT=x(()=>{Z();TU=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${i}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${N(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);if(a){let s=Number(n.maximum),l=AT(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.maximum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);if(a){let s=Number(n.minimum),l=AT(s,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${i}${n.minimum.toString()} ${l}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${R(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}}});function jT(){return{localeError:IU()}}var IU,UT=x(()=>{Z();IU=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${s}`:`Neveljaven vnos: pri\u010Dakovano ${i}, prejeto ${s}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${N(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${i}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${i}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${i.prefix}"`:i.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${i.suffix}"`:i.format==="includes"?`Neveljaven niz: mora vsebovati "${i.includes}"`:i.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${i.pattern}`:`Neveljaven ${r[i.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${R(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}}});function LT(){return{localeError:EU()}}var EU,qT=x(()=>{Z();EU=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${s}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${i}, fick ${s}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${N(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${i.prefix}"`:i.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${i.suffix}"`:i.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${i.includes}"`:i.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${i.pattern}"`:`Ogiltig(t) ${r[i.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${R(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}}});function BT(){return{localeError:MU()}}var MU,VT=x(()=>{Z();MU=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${i}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${N(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${R(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${i}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${i}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${i.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:i.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${i.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${R(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}}});function HT(){return{localeError:CU()}}var CU,GT=x(()=>{Z();CU=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${i} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${s}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${N(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${i} ${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${i.prefix}"`:i.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${i.suffix}"`:i.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${i.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:i.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${i.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[i.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${R(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}}});function ZT(){return{localeError:RU()}}var RU,FT=x(()=>{Z();RU=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${s}`:`Ge\xE7ersiz de\u011Fer: beklenen ${i}, al\u0131nan ${s}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${N(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Ge\xE7ersiz metin: "${i.prefix}" ile ba\u015Flamal\u0131`:i.format==="ends_with"?`Ge\xE7ersiz metin: "${i.suffix}" ile bitmeli`:i.format==="includes"?`Ge\xE7ersiz metin: "${i.includes}" i\xE7ermeli`:i.format==="regex"?`Ge\xE7ersiz metin: ${i.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[i.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${R(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}}});function wf(){return{localeError:zU()}}var zU,x1=x(()=>{Z();zU=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${i}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${s}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${N(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${i.prefix}"`:i.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${i.suffix}"`:i.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${i.includes}"`:i.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${i.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${R(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}}});function WT(){return wf()}var KT=x(()=>{x1()});function JT(){return{localeError:PU()}}var PU,YT=x(()=>{Z();PU=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${i} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${s} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${N(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${R(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${i}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${i}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${i}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${i}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${i.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:i.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${i.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${R(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}}});function XT(){return{localeError:OU()}}var OU,QT=x(()=>{Z();OU=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${s}`:`Noto\u2018g\u2018ri kirish: kutilgan ${i}, qabul qilingan ${s}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${N(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${i.prefix}" bilan boshlanishi kerak`:i.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${i.suffix}" bilan tugashi kerak`:i.format==="includes"?`Noto\u2018g\u2018ri satr: "${i.includes}" ni o\u2018z ichiga olishi kerak`:i.format==="regex"?`Noto\u2018g\u2018ri satr: ${i.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[i.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${R(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}}});function e3(){return{localeError:AU()}}var AU,t3=x(()=>{Z();AU=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${i}, nh\u1EADn \u0111\u01B0\u1EE3c ${s}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${N(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${i}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${i}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${i.prefix}"`:i.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${i.suffix}"`:i.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${i.includes}"`:i.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${i.pattern}`:`${r[i.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${R(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}}});function r3(){return{localeError:NU()}}var NU,n3=x(()=>{Z();NU=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${i}\uFF0C\u5B9E\u9645\u63A5\u6536 ${s}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${N(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.prefix}" \u5F00\u5934`:i.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${i.suffix}" \u7ED3\u5C3E`:i.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${i.pattern}`:`\u65E0\u6548${r[i.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${R(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}}});function o3(){return{localeError:DU()}}var DU,i3=x(()=>{Z();DU=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${s}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${i}\uFF0C\u4F46\u6536\u5230 ${s}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${N(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${i}${n.maximum.toString()}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${i}${n.minimum.toString()}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.prefix}" \u958B\u982D`:i.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${i.suffix}" \u7D50\u5C3E`:i.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${i.includes}"`:i.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${i.pattern}`:`\u7121\u6548\u7684 ${r[i.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${R(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}}});function a3(){return{localeError:jU()}}var jU,s3=x(()=>{Z();jU=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let i=o[n.expected]??n.expected,a=D(n.input),s=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${s}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${i}, \xE0m\u1ECD\u0300 a r\xED ${s}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${N(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${R(n.values,"|")}`;case"too_big":{let i=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${i}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.maximum}`}case"too_small":{let i=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${i}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${i}${n.minimum}`}case"invalid_format":{let i=n;return i.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${i.prefix}"`:i.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${i.suffix}"`:i.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${i.includes}"`:i.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${i.pattern}`:`A\u1E63\xEC\u1E63e: ${r[i.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${R(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}}});var pc={};ct(pc,{ar:()=>b5,az:()=>k5,be:()=>w5,bg:()=>I5,ca:()=>M5,cs:()=>R5,da:()=>P5,de:()=>A5,en:()=>_f,eo:()=>D5,es:()=>U5,fa:()=>q5,fi:()=>V5,fr:()=>G5,frCA:()=>F5,he:()=>K5,hu:()=>Y5,hy:()=>eT,id:()=>rT,is:()=>oT,it:()=>aT,ja:()=>lT,ka:()=>cT,kh:()=>dT,km:()=>Sf,ko:()=>mT,lt:()=>yT,mk:()=>$T,ms:()=>xT,nl:()=>_T,no:()=>wT,ota:()=>IT,pl:()=>RT,ps:()=>MT,pt:()=>PT,ru:()=>NT,sl:()=>jT,sv:()=>LT,ta:()=>BT,th:()=>HT,tr:()=>ZT,ua:()=>WT,uk:()=>wf,ur:()=>JT,uz:()=>XT,vi:()=>e3,yo:()=>a3,zhCN:()=>r3,zhTW:()=>o3});var k1=x(()=>{x5();_5();T5();E5();C5();z5();O5();N5();$1();j5();L5();B5();H5();Z5();W5();J5();X5();tT();nT();iT();sT();uT();pT();fT();b1();gT();vT();bT();kT();ST();TT();ET();CT();zT();OT();DT();UT();qT();VT();GT();FT();KT();x1();YT();QT();t3();n3();i3();s3()});function If(){return new Tf}var l3,_1,S1,Tf,Ht,dc=x(()=>{_1=Symbol("ZodOutput"),S1=Symbol("ZodInput"),Tf=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};(l3=globalThis).__zod_globalRegistry??(l3.__zod_globalRegistry=If());Ht=globalThis.__zod_globalRegistry});function w1(e,t){return new e({type:"string",...L(t)})}function T1(e,t){return new e({type:"string",coerce:!0,...L(t)})}function Ef(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function fc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function Mf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function Cf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function Rf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function zf(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function mc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function Pf(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function Of(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function Af(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function Nf(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function Df(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function jf(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function Uf(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function Lf(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function qf(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function I1(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function Bf(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function Vf(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function Hf(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function Gf(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function Zf(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function Ff(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}function M1(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function C1(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function R1(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function z1(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function P1(e,t){return new e({type:"number",checks:[],...L(t)})}function O1(e,t){return new e({type:"number",coerce:!0,checks:[],...L(t)})}function A1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function N1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function D1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function j1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function U1(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function L1(e,t){return new e({type:"boolean",...L(t)})}function q1(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function B1(e,t){return new e({type:"bigint",...L(t)})}function V1(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function H1(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function G1(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function Z1(e,t){return new e({type:"symbol",...L(t)})}function F1(e,t){return new e({type:"undefined",...L(t)})}function W1(e,t){return new e({type:"null",...L(t)})}function K1(e){return new e({type:"any"})}function J1(e){return new e({type:"unknown"})}function Y1(e,t){return new e({type:"never",...L(t)})}function X1(e,t){return new e({type:"void",...L(t)})}function Q1(e,t){return new e({type:"date",...L(t)})}function e$(e,t){return new e({type:"date",coerce:!0,...L(t)})}function t$(e,t){return new e({type:"nan",...L(t)})}function Hn(e,t){return new pf({check:"less_than",...L(t),value:e,inclusive:!1})}function Ar(e,t){return new pf({check:"less_than",...L(t),value:e,inclusive:!0})}function Gn(e,t){return new df({check:"greater_than",...L(t),value:e,inclusive:!1})}function sr(e,t){return new df({check:"greater_than",...L(t),value:e,inclusive:!0})}function Wf(e){return Gn(0,e)}function Kf(e){return Hn(0,e)}function Jf(e){return Ar(0,e)}function Yf(e){return sr(0,e)}function gi(e,t){return new qy({check:"multiple_of",...L(t),value:e})}function hi(e,t){return new Hy({check:"max_size",...L(t),maximum:e})}function Zn(e,t){return new Gy({check:"min_size",...L(t),minimum:e})}function Ma(e,t){return new Zy({check:"size_equals",...L(t),size:e})}function Ca(e,t){return new Fy({check:"max_length",...L(t),maximum:e})}function $o(e,t){return new Wy({check:"min_length",...L(t),minimum:e})}function Ra(e,t){return new Ky({check:"length_equals",...L(t),length:e})}function Us(e,t){return new Jy({check:"string_format",format:"regex",...L(t),pattern:e})}function Ls(e){return new Yy({check:"string_format",format:"lowercase",...L(e)})}function qs(e){return new Xy({check:"string_format",format:"uppercase",...L(e)})}function Bs(e,t){return new Qy({check:"string_format",format:"includes",...L(t),includes:e})}function Vs(e,t){return new ev({check:"string_format",format:"starts_with",...L(t),prefix:e})}function Hs(e,t){return new tv({check:"string_format",format:"ends_with",...L(t),suffix:e})}function Xf(e,t,r){return new rv({check:"property",property:e,schema:t,...L(r)})}function Gs(e,t){return new nv({check:"mime_type",mime:e,...L(t)})}function Tn(e){return new ov({check:"overwrite",tx:e})}function Zs(e){return Tn(t=>t.normalize(e))}function Fs(){return Tn(e=>e.trim())}function Ws(){return Tn(e=>e.toLowerCase())}function Ks(){return Tn(e=>e.toUpperCase())}function Js(){return Tn(e=>ey(e))}function r$(e,t,r){return new e({type:"array",element:t,...L(r)})}function LU(e,t,r){return new e({type:"union",options:t,...L(r)})}function qU(e,t,r){return new e({type:"union",options:t,inclusive:!1,...L(r)})}function BU(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...L(o)})}function VU(e,t,r){return new e({type:"intersection",left:t,right:r})}function HU(e,t,r,o){let n=r instanceof X,i=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...L(i)})}function GU(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...L(o)})}function ZU(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...L(o)})}function FU(e,t,r){return new e({type:"set",valueType:t,...L(r)})}function WU(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...L(r)})}function KU(e,t,r){return new e({type:"enum",entries:t,...L(r)})}function JU(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(r)})}function n$(e,t){return new e({type:"file",...L(t)})}function YU(e,t){return new e({type:"transform",transform:t})}function XU(e,t){return new e({type:"optional",innerType:t})}function QU(e,t){return new e({type:"nullable",innerType:t})}function eL(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():ry(r)}})}function tL(e,t,r){return new e({type:"nonoptional",innerType:t,...L(r)})}function rL(e,t){return new e({type:"success",innerType:t})}function nL(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}function oL(e,t,r){return new e({type:"pipe",in:t,out:r})}function iL(e,t){return new e({type:"readonly",innerType:t})}function aL(e,t,r){return new e({type:"template_literal",parts:t,...L(r)})}function sL(e,t){return new e({type:"lazy",getter:t})}function lL(e,t){return new e({type:"promise",innerType:t})}function o$(e,t,r){let o=L(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}function i$(e,t,r){return new e({type:"custom",check:"custom",fn:t,...L(r)})}function a$(e){let t=u3(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(zs(o,r.value,t._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(zs(n))}},e(r.value,r)));return t}function u3(e,t){let r=new De({check:"custom",...L(t)});return r._zod.check=e,r}function s$(e){let t=new De({check:"describe"});return t._zod.onattach=[r=>{let o=Ht.get(r)??{};Ht.add(r,{...o,description:e})}],t._zod.check=()=>{},t}function l$(e){let t=new De({check:"meta"});return t._zod.onattach=[r=>{let o=Ht.get(r)??{};Ht.add(r,{...o,...e})}],t._zod.check=()=>{},t}function u$(e,t){let r=L(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(f=>typeof f=="string"?f.toLowerCase():f),n=n.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(o),a=new Set(n),s=e.Codec??uc,l=e.Boolean??sc,u=e.String??Ea,c=new u({type:"string",error:r.error}),p=new l({type:"boolean",error:r.error}),d=new s({type:"pipe",in:c,out:p,transform:((f,m)=>{let v=f;return r.case!=="sensitive"&&(v=v.toLowerCase()),i.has(v)?!0:a.has(v)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...a],input:m.value,inst:d,continue:!1}),{})}),reverseTransform:((f,m)=>f===!0?o[0]||"true":n[0]||"false"),error:r.error});return d}function Ys(e,t,r,o={}){let n=L(o),i={...L(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:s=>r.test(s),...n};return r instanceof RegExp&&(i.pattern=r),new e(i)}var E1,c3=x(()=>{ff();dc();v1();Z();E1={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}});function yi(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??Ht,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 Ee(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,i=t.seen.get(e);if(i)return i.count++,r.schemaPath.includes(e)&&(i.cycle=r.path),i.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let s=e._zod.toJSONSchema?.();if(s)a.schema=s;else{let c={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,c);else{let d=a.schema,f=t.processors[n.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);f(e,t,d,c)}let p=e._zod.parent;p&&(a.ref||(a.ref=p),Ee(p,t,c),t.seen.get(p).isParent=!0)}let l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&lr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function vi(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let s=e.metadataRegistry.get(a[0])?.id;if(s){let l=o.get(s);if(l&&l!==a[0])throw new Error(`Duplicate schema id "${s}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(s,a[0])}}let n=a=>{let s=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let p=e.external.registry.get(a[0])?.id,d=e.external.uri??(m=>m);if(p)return{ref:d(p)};let f=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=f,{defId:f,ref:`${d("__shared")}#/${s}/${f}`}}if(a[1]===r)return{ref:"#"};let u=`#/${s}/`,c=a[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},i=a=>{if(a[1].schema.$ref)return;let s=a[1],{ref:l,defId:u}=n(a);s.def={...s.schema},u&&(s.defId=u);let c=s.schema;for(let p in c)delete c[p];c.$ref=l};if(e.cycles==="throw")for(let a of e.seen.entries()){let s=a[1];if(s.cycle)throw new Error(`Cycle detected: #/${s.cycle?.join("/")}/<root>
39
+
40
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let s=a[1];if(t===a[0]){i(a);continue}if(e.external){let u=e.external.registry.get(a[0])?.id;if(t!==a[0]&&u){i(a);continue}}if(e.metadataRegistry.get(a[0])?.id){i(a);continue}if(s.cycle){i(a);continue}if(s.count>1&&e.reused==="ref"){i(a);continue}}}function $i(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=a=>{let s=e.seen.get(a);if(s.ref===null)return;let l=s.def??s.schema,u={...l},c=s.ref;if(s.ref=null,c){o(c);let d=e.seen.get(c),f=d.schema;if(f.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(l.allOf=l.allOf??[],l.allOf.push(f)):Object.assign(l,f),Object.assign(l,u),a._zod.parent===c)for(let v in l)v==="$ref"||v==="allOf"||v in u||delete l[v];if(f.$ref&&d.def)for(let v in l)v==="$ref"||v==="allOf"||v in d.def&&JSON.stringify(l[v])===JSON.stringify(d.def[v])&&delete l[v]}let p=a._zod.parent;if(p&&p!==c){o(p);let d=e.seen.get(p);if(d?.schema.$ref&&(l.$ref=d.schema.$ref,d.def))for(let f in l)f==="$ref"||f==="allOf"||f in d.def&&JSON.stringify(l[f])===JSON.stringify(d.def[f])&&delete l[f]}e.override({zodSchema:a,jsonSchema:l,path:s.path??[]})};for(let a of[...e.seen.entries()].reverse())o(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let i=e.external?.defs??{};for(let a of e.seen.entries()){let s=a[1];s.def&&s.defId&&(i[s.defId]=s.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?n.$defs=i:n.definitions=i);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Xs(t,"input",e.processors),output:Xs(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function lr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return lr(o.element,r);if(o.type==="set")return lr(o.valueType,r);if(o.type==="lazy")return lr(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return lr(o.innerType,r);if(o.type==="intersection")return lr(o.left,r)||lr(o.right,r);if(o.type==="record"||o.type==="map")return lr(o.keyType,r)||lr(o.valueType,r);if(o.type==="pipe")return lr(o.in,r)||lr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(lr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(lr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(lr(n,r))return!0;return!!(o.rest&&lr(o.rest,r))}return!1}var c$,Xs,gc=x(()=>{dc();c$=(e,t={})=>r=>{let o=yi({...r,processors:t});return Ee(e,o),vi(o,e),$i(o,e)},Xs=(e,t,r={})=>o=>{let{libraryOptions:n,target:i}=o??{},a=yi({...n??{},target:i,io:t,processors:r});return Ee(e,a),vi(a,e),$i(a,e)}});function rm(e,t){if("_idmap"in e){let o=e,n=yi({...t,processors:Qf}),i={};for(let l of o._idmap.entries()){let[u,c]=l;Ee(c,n)}let a={},s={registry:o,uri:t?.uri,defs:i};n.external=s;for(let l of o._idmap.entries()){let[u,c]=l;vi(n,c),a[u]=$i(n,c)}if(Object.keys(i).length>0){let l=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[l]:i}}return{schemas:a}}let r=yi({...t,processors:Qf});return Ee(e,r),vi(r,e),$i(r,e)}var uL,p$,d$,f$,m$,g$,h$,y$,v$,$$,b$,x$,k$,_$,S$,w$,T$,I$,E$,M$,C$,R$,z$,P$,O$,A$,em,N$,D$,j$,U$,L$,q$,B$,V$,H$,G$,Z$,tm,F$,Qf,hc=x(()=>{gc();Z();uL={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},p$=(e,t,r,o)=>{let n=r;n.type="string";let{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(n.minLength=i),typeof a=="number"&&(n.maxLength=a),s&&(n.format=uL[s]??s,n.format===""&&delete n.format,s==="time"&&delete n.format),u&&(n.contentEncoding=u),l&&l.size>0){let c=[...l];c.length===1?n.pattern=c[0].source:c.length>1&&(n.allOf=[...c.map(p=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:p.source}))])}},d$=(e,t,r,o)=>{let n=r,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof s=="string"&&s.includes("int")?n.type="integer":n.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=c,n.exclusiveMinimum=!0):n.exclusiveMinimum=c),typeof i=="number"&&(n.minimum=i,typeof c=="number"&&t.target!=="draft-04"&&(c>=i?delete n.minimum:delete n.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u),typeof a=="number"&&(n.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof l=="number"&&(n.multipleOf=l)},f$=(e,t,r,o)=>{r.type="boolean"},m$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},g$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},h$=(e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},y$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},v$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},$$=(e,t,r,o)=>{r.not={}},b$=(e,t,r,o)=>{},x$=(e,t,r,o)=>{},k$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},_$=(e,t,r,o)=>{let n=e._zod.def,i=Ju(n.entries);i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),r.enum=i},S$=(e,t,r,o)=>{let n=e._zod.def,i=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){let a=i[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else i.every(a=>typeof a=="number")&&(r.type="number"),i.every(a=>typeof a=="string")&&(r.type="string"),i.every(a=>typeof a=="boolean")&&(r.type="boolean"),i.every(a=>a===null)&&(r.type="null"),r.enum=i},w$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},T$=(e,t,r,o)=>{let n=r,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=i.source},I$=(e,t,r,o)=>{let n=r,i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:s,mime:l}=e._zod.bag;a!==void 0&&(i.minLength=a),s!==void 0&&(i.maxLength=s),l?l.length===1?(i.contentMediaType=l[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=l.map(u=>({contentMediaType:u}))):Object.assign(n,i)},E$=(e,t,r,o)=>{r.type="boolean"},M$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},C$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},R$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},z$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},P$=(e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},O$=(e,t,r,o)=>{let n=r,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof s=="number"&&(n.maxItems=s),n.type="array",n.items=Ee(i.element,t,{...o,path:[...o.path,"items"]})},A$=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object",n.properties={};let a=i.shape;for(let u in a)n.properties[u]=Ee(a[u],t,{...o,path:[...o.path,"properties",u]});let s=new Set(Object.keys(a)),l=new Set([...s].filter(u=>{let c=i.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));l.size>0&&(n.required=Array.from(l)),i.catchall?._zod.def.type==="never"?n.additionalProperties=!1:i.catchall?i.catchall&&(n.additionalProperties=Ee(i.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},em=(e,t,r,o)=>{let n=e._zod.def,i=n.inclusive===!1,a=n.options.map((s,l)=>Ee(s,t,{...o,path:[...o.path,i?"oneOf":"anyOf",l]}));i?r.oneOf=a:r.anyOf=a},N$=(e,t,r,o)=>{let n=e._zod.def,i=Ee(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=Ee(n.right,t,{...o,path:[...o.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];r.allOf=l},D$=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",s=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",l=i.items.map((d,f)=>Ee(d,t,{...o,path:[...o.path,a,f]})),u=i.rest?Ee(i.rest,t,{...o,path:[...o.path,s,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=l,u&&(n.items=u)):t.target==="openapi-3.0"?(n.items={anyOf:l},u&&n.items.anyOf.push(u),n.minItems=l.length,u||(n.maxItems=l.length)):(n.items=l,u&&(n.additionalItems=u));let{minimum:c,maximum:p}=e._zod.bag;typeof c=="number"&&(n.minItems=c),typeof p=="number"&&(n.maxItems=p)},j$=(e,t,r,o)=>{let n=r,i=e._zod.def;n.type="object";let a=i.keyType,l=a._zod.bag?.patterns;if(i.mode==="loose"&&l&&l.size>0){let c=Ee(i.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let p of l)n.patternProperties[p.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=Ee(i.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=Ee(i.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let u=a._zod.values;if(u){let c=[...u].filter(p=>typeof p=="string"||typeof p=="number");c.length>0&&(n.required=c)}},U$=(e,t,r,o)=>{let n=e._zod.def,i=Ee(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[i,{type:"null"}]},L$=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},q$=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},B$=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},V$=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},H$=(e,t,r,o)=>{let n=e._zod.def,i=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;Ee(i,t,o);let a=t.seen.get(e);a.ref=i},G$=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType,r.readOnly=!0},Z$=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},tm=(e,t,r,o)=>{let n=e._zod.def;Ee(n.innerType,t,o);let i=t.seen.get(e);i.ref=n.innerType},F$=(e,t,r,o)=>{let n=e._zod.innerType;Ee(n,t,o);let i=t.seen.get(e);i.ref=n},Qf={string:p$,number:d$,boolean:f$,bigint:m$,symbol:g$,null:h$,undefined:y$,void:v$,never:$$,any:b$,unknown:x$,date:k$,enum:_$,literal:S$,nan:w$,template_literal:T$,file:I$,success:E$,custom:M$,function:C$,transform:R$,map:z$,set:P$,array:O$,object:A$,union:em,intersection:N$,tuple:D$,record:j$,nullable:U$,nonoptional:L$,default:q$,prefault:B$,catch:V$,pipe:H$,readonly:G$,promise:Z$,optional:tm,lazy:F$}});var nm,p3=x(()=>{hc();gc();nm=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=yi({processors:Qf,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return Ee(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),vi(this.ctx,t);let o=$i(this.ctx,t),{"~standard":n,...i}=o;return i}}});var d3={};var f3=x(()=>{});var bo={};ct(bo,{$ZodAny:()=>Lv,$ZodArray:()=>Gv,$ZodAsyncError:()=>wn,$ZodBase64:()=>Cv,$ZodBase64URL:()=>Rv,$ZodBigInt:()=>bf,$ZodBigIntFormat:()=>Nv,$ZodBoolean:()=>sc,$ZodCIDRv4:()=>Iv,$ZodCIDRv6:()=>Ev,$ZodCUID:()=>gv,$ZodCUID2:()=>hv,$ZodCatch:()=>u1,$ZodCheck:()=>De,$ZodCheckBigIntFormat:()=>Vy,$ZodCheckEndsWith:()=>tv,$ZodCheckGreaterThan:()=>df,$ZodCheckIncludes:()=>Qy,$ZodCheckLengthEquals:()=>Ky,$ZodCheckLessThan:()=>pf,$ZodCheckLowerCase:()=>Yy,$ZodCheckMaxLength:()=>Fy,$ZodCheckMaxSize:()=>Hy,$ZodCheckMimeType:()=>nv,$ZodCheckMinLength:()=>Wy,$ZodCheckMinSize:()=>Gy,$ZodCheckMultipleOf:()=>qy,$ZodCheckNumberFormat:()=>By,$ZodCheckOverwrite:()=>ov,$ZodCheckProperty:()=>rv,$ZodCheckRegex:()=>Jy,$ZodCheckSizeEquals:()=>Zy,$ZodCheckStartsWith:()=>ev,$ZodCheckStringFormat:()=>Ds,$ZodCheckUpperCase:()=>Xy,$ZodCodec:()=>uc,$ZodCustom:()=>y1,$ZodCustomStringFormat:()=>Ov,$ZodDate:()=>Hv,$ZodDefault:()=>i1,$ZodDiscriminatedUnion:()=>Wv,$ZodE164:()=>zv,$ZodEmail:()=>pv,$ZodEmoji:()=>fv,$ZodEncodeError:()=>ci,$ZodEnum:()=>Qv,$ZodError:()=>tc,$ZodExactOptional:()=>n1,$ZodFile:()=>t1,$ZodFunction:()=>m1,$ZodGUID:()=>uv,$ZodIPv4:()=>Sv,$ZodIPv6:()=>wv,$ZodISODate:()=>xv,$ZodISODateTime:()=>bv,$ZodISODuration:()=>_v,$ZodISOTime:()=>kv,$ZodIntersection:()=>Kv,$ZodJWT:()=>Pv,$ZodKSUID:()=>$v,$ZodLazy:()=>h1,$ZodLiteral:()=>e1,$ZodMAC:()=>Tv,$ZodMap:()=>Yv,$ZodNaN:()=>c1,$ZodNanoID:()=>mv,$ZodNever:()=>Bv,$ZodNonOptional:()=>s1,$ZodNull:()=>Uv,$ZodNullable:()=>o1,$ZodNumber:()=>$f,$ZodNumberFormat:()=>Av,$ZodObject:()=>$5,$ZodObjectJIT:()=>Zv,$ZodOptional:()=>kf,$ZodPipe:()=>p1,$ZodPrefault:()=>a1,$ZodPromise:()=>g1,$ZodReadonly:()=>d1,$ZodRealError:()=>br,$ZodRecord:()=>Jv,$ZodRegistry:()=>Tf,$ZodSet:()=>Xv,$ZodString:()=>Ea,$ZodStringFormat:()=>Me,$ZodSuccess:()=>l1,$ZodSymbol:()=>Dv,$ZodTemplateLiteral:()=>f1,$ZodTransform:()=>r1,$ZodTuple:()=>xf,$ZodType:()=>X,$ZodULID:()=>yv,$ZodURL:()=>dv,$ZodUUID:()=>cv,$ZodUndefined:()=>jv,$ZodUnion:()=>lc,$ZodUnknown:()=>qv,$ZodVoid:()=>Vv,$ZodXID:()=>vv,$ZodXor:()=>Fv,$brand:()=>Wd,$constructor:()=>E,$input:()=>S1,$output:()=>_1,Doc:()=>ac,JSONSchema:()=>d3,JSONSchemaGenerator:()=>nm,NEVER:()=>Jh,TimePrecision:()=>E1,_any:()=>K1,_array:()=>r$,_base64:()=>Hf,_base64url:()=>Gf,_bigint:()=>B1,_boolean:()=>L1,_catch:()=>nL,_check:()=>u3,_cidrv4:()=>Bf,_cidrv6:()=>Vf,_coercedBigint:()=>V1,_coercedBoolean:()=>q1,_coercedDate:()=>e$,_coercedNumber:()=>O1,_coercedString:()=>T1,_cuid:()=>Af,_cuid2:()=>Nf,_custom:()=>o$,_date:()=>Q1,_decode:()=>ef,_decodeAsync:()=>rf,_default:()=>eL,_discriminatedUnion:()=>BU,_e164:()=>Zf,_email:()=>Ef,_emoji:()=>Pf,_encode:()=>Qd,_encodeAsync:()=>tf,_endsWith:()=>Hs,_enum:()=>WU,_file:()=>n$,_float32:()=>N1,_float64:()=>D1,_gt:()=>Gn,_gte:()=>sr,_guid:()=>fc,_includes:()=>Bs,_int:()=>A1,_int32:()=>j1,_int64:()=>H1,_intersection:()=>VU,_ipv4:()=>Lf,_ipv6:()=>qf,_isoDate:()=>C1,_isoDateTime:()=>M1,_isoDuration:()=>z1,_isoTime:()=>R1,_jwt:()=>Ff,_ksuid:()=>Uf,_lazy:()=>sL,_length:()=>Ra,_literal:()=>JU,_lowercase:()=>Ls,_lt:()=>Hn,_lte:()=>Ar,_mac:()=>I1,_map:()=>ZU,_max:()=>Ar,_maxLength:()=>Ca,_maxSize:()=>hi,_mime:()=>Gs,_min:()=>sr,_minLength:()=>$o,_minSize:()=>Zn,_multipleOf:()=>gi,_nan:()=>t$,_nanoid:()=>Of,_nativeEnum:()=>KU,_negative:()=>Kf,_never:()=>Y1,_nonnegative:()=>Yf,_nonoptional:()=>tL,_nonpositive:()=>Jf,_normalize:()=>Zs,_null:()=>W1,_nullable:()=>QU,_number:()=>P1,_optional:()=>XU,_overwrite:()=>Tn,_parse:()=>Ps,_parseAsync:()=>Os,_pipe:()=>oL,_positive:()=>Wf,_promise:()=>lL,_property:()=>Xf,_readonly:()=>iL,_record:()=>GU,_refine:()=>i$,_regex:()=>Us,_safeDecode:()=>of,_safeDecodeAsync:()=>sf,_safeEncode:()=>nf,_safeEncodeAsync:()=>af,_safeParse:()=>As,_safeParseAsync:()=>Ns,_set:()=>FU,_size:()=>Ma,_slugify:()=>Js,_startsWith:()=>Vs,_string:()=>w1,_stringFormat:()=>Ys,_stringbool:()=>u$,_success:()=>rL,_superRefine:()=>a$,_symbol:()=>Z1,_templateLiteral:()=>aL,_toLowerCase:()=>Ws,_toUpperCase:()=>Ks,_transform:()=>YU,_trim:()=>Fs,_tuple:()=>HU,_uint32:()=>U1,_uint64:()=>G1,_ulid:()=>Df,_undefined:()=>F1,_union:()=>LU,_unknown:()=>J1,_uppercase:()=>qs,_url:()=>mc,_uuid:()=>Mf,_uuidv4:()=>Cf,_uuidv6:()=>Rf,_uuidv7:()=>zf,_void:()=>X1,_xid:()=>jf,_xor:()=>qU,clone:()=>ar,config:()=>at,createStandardJSONSchemaMethod:()=>Xs,createToJSONSchemaMethod:()=>c$,decode:()=>pj,decodeAsync:()=>fj,describe:()=>s$,encode:()=>cj,encodeAsync:()=>dj,extractDefs:()=>vi,finalize:()=>$i,flattenError:()=>rc,formatError:()=>nc,globalConfig:()=>Wu,globalRegistry:()=>Ht,initializeContext:()=>yi,isValidBase64:()=>Mv,isValidBase64URL:()=>g5,isValidJWT:()=>h5,locales:()=>pc,meta:()=>l$,parse:()=>Yd,parseAsync:()=>Xd,prettifyError:()=>ly,process:()=>Ee,regexes:()=>Kr,registry:()=>If,safeDecode:()=>gj,safeDecodeAsync:()=>yj,safeEncode:()=>mj,safeEncodeAsync:()=>hj,safeParse:()=>cy,safeParseAsync:()=>py,toDotPath:()=>Yw,toJSONSchema:()=>rm,treeifyError:()=>sy,util:()=>j,version:()=>av});var xr=x(()=>{Ms();dy();uy();v1();ff();sv();Z();cf();k1();dc();iv();c3();gc();hc();p3();f3()});var om={};ct(om,{endsWith:()=>Hs,gt:()=>Gn,gte:()=>sr,includes:()=>Bs,length:()=>Ra,lowercase:()=>Ls,lt:()=>Hn,lte:()=>Ar,maxLength:()=>Ca,maxSize:()=>hi,mime:()=>Gs,minLength:()=>$o,minSize:()=>Zn,multipleOf:()=>gi,negative:()=>Kf,nonnegative:()=>Yf,nonpositive:()=>Jf,normalize:()=>Zs,overwrite:()=>Tn,positive:()=>Wf,property:()=>Xf,regex:()=>Us,size:()=>Ma,slugify:()=>Js,startsWith:()=>Vs,toLowerCase:()=>Ws,toUpperCase:()=>Ks,trim:()=>Fs,uppercase:()=>qs});var im=x(()=>{xr()});var Qs={};ct(Qs,{ZodISODate:()=>sm,ZodISODateTime:()=>am,ZodISODuration:()=>um,ZodISOTime:()=>lm,date:()=>K$,datetime:()=>W$,duration:()=>Y$,time:()=>J$});function W$(e){return M1(am,e)}function K$(e){return C1(sm,e)}function J$(e){return R1(lm,e)}function Y$(e){return z1(um,e)}var am,sm,lm,um,yc=x(()=>{xr();$c();am=E("ZodISODateTime",(e,t)=>{bv.init(e,t),Ce.init(e,t)});sm=E("ZodISODate",(e,t)=>{xv.init(e,t),Ce.init(e,t)});lm=E("ZodISOTime",(e,t)=>{kv.init(e,t),Ce.init(e,t)});um=E("ZodISODuration",(e,t)=>{_v.init(e,t),Ce.init(e,t)})});var m3,pL,kr,X$=x(()=>{xr();xr();Z();m3=(e,t)=>{tc.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>nc(e,r)},flatten:{value:r=>rc(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Cs,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Cs,2)}},isEmpty:{get(){return e.issues.length===0}}})},pL=E("ZodError",m3),kr=E("ZodError",m3,{Parent:Error})});var Q$,eb,tb,rb,nb,ob,ib,ab,sb,lb,ub,cb,pb=x(()=>{xr();X$();Q$=Ps(kr),eb=Os(kr),tb=As(kr),rb=Ns(kr),nb=Qd(kr),ob=ef(kr),ib=tf(kr),ab=rf(kr),sb=nf(kr),lb=of(kr),ub=af(kr),cb=sf(kr)});var vc={};ct(vc,{ZodAny:()=>$b,ZodArray:()=>_b,ZodBase64:()=>wm,ZodBase64URL:()=>Tm,ZodBigInt:()=>il,ZodBigIntFormat:()=>Mm,ZodBoolean:()=>ol,ZodCIDRv4:()=>_m,ZodCIDRv6:()=>Sm,ZodCUID:()=>hm,ZodCUID2:()=>ym,ZodCatch:()=>Gb,ZodCodec:()=>Dm,ZodCustom:()=>Cc,ZodCustomStringFormat:()=>rl,ZodDate:()=>wc,ZodDefault:()=>Ub,ZodDiscriminatedUnion:()=>wb,ZodE164:()=>Im,ZodEmail:()=>fm,ZodEmoji:()=>mm,ZodEnum:()=>el,ZodExactOptional:()=>Nb,ZodFile:()=>Ob,ZodFunction:()=>ex,ZodGUID:()=>bc,ZodIPv4:()=>xm,ZodIPv6:()=>km,ZodIntersection:()=>Tb,ZodJWT:()=>Em,ZodKSUID:()=>bm,ZodLazy:()=>Yb,ZodLiteral:()=>Pb,ZodMAC:()=>db,ZodMap:()=>Rb,ZodNaN:()=>Fb,ZodNanoID:()=>gm,ZodNever:()=>xb,ZodNonOptional:()=>Am,ZodNull:()=>yb,ZodNullable:()=>jb,ZodNumber:()=>nl,ZodNumberFormat:()=>Pa,ZodObject:()=>Ic,ZodOptional:()=>Om,ZodPipe:()=>Nm,ZodPrefault:()=>qb,ZodPromise:()=>Qb,ZodReadonly:()=>Wb,ZodRecord:()=>Mc,ZodSet:()=>zb,ZodString:()=>tl,ZodStringFormat:()=>Ce,ZodSuccess:()=>Hb,ZodSymbol:()=>gb,ZodTemplateLiteral:()=>Jb,ZodTransform:()=>Ab,ZodTuple:()=>Eb,ZodType:()=>te,ZodULID:()=>vm,ZodURL:()=>Sc,ZodUUID:()=>Fn,ZodUndefined:()=>hb,ZodUnion:()=>Ec,ZodUnknown:()=>bb,ZodVoid:()=>kb,ZodXID:()=>$m,ZodXor:()=>Sb,_ZodString:()=>dm,_default:()=>Lb,_function:()=>b6,any:()=>X3,array:()=>Tc,base64:()=>A3,base64url:()=>N3,bigint:()=>F3,boolean:()=>mb,catch:()=>Zb,check:()=>x6,cidrv4:()=>P3,cidrv6:()=>O3,codec:()=>y6,cuid:()=>w3,cuid2:()=>T3,custom:()=>k6,date:()=>e6,describe:()=>_6,discriminatedUnion:()=>a6,e164:()=>D3,email:()=>g3,emoji:()=>_3,enum:()=>zm,exactOptional:()=>Db,file:()=>f6,float32:()=>V3,float64:()=>H3,function:()=>b6,guid:()=>h3,hash:()=>B3,hex:()=>q3,hostname:()=>L3,httpUrl:()=>k3,instanceof:()=>w6,int:()=>pm,int32:()=>G3,int64:()=>W3,intersection:()=>Ib,ipv4:()=>C3,ipv6:()=>z3,json:()=>I6,jwt:()=>j3,keyof:()=>t6,ksuid:()=>M3,lazy:()=>Xb,literal:()=>d6,looseObject:()=>o6,looseRecord:()=>l6,mac:()=>R3,map:()=>u6,meta:()=>S6,nan:()=>h6,nanoid:()=>S3,nativeEnum:()=>p6,never:()=>Cm,nonoptional:()=>Vb,null:()=>vb,nullable:()=>kc,nullish:()=>m6,number:()=>fb,object:()=>r6,optional:()=>xc,partialRecord:()=>s6,pipe:()=>_c,prefault:()=>Bb,preprocess:()=>E6,promise:()=>$6,readonly:()=>Kb,record:()=>Cb,refine:()=>tx,set:()=>c6,strictObject:()=>n6,string:()=>cm,stringFormat:()=>U3,stringbool:()=>T6,success:()=>g6,superRefine:()=>rx,symbol:()=>J3,templateLiteral:()=>v6,transform:()=>Pm,tuple:()=>Mb,uint32:()=>Z3,uint64:()=>K3,ulid:()=>I3,undefined:()=>Y3,union:()=>Rm,unknown:()=>za,url:()=>x3,uuid:()=>y3,uuidv4:()=>v3,uuidv6:()=>$3,uuidv7:()=>b3,void:()=>Q3,xid:()=>E3,xor:()=>i6});function cm(e){return w1(tl,e)}function g3(e){return Ef(fm,e)}function h3(e){return fc(bc,e)}function y3(e){return Mf(Fn,e)}function v3(e){return Cf(Fn,e)}function $3(e){return Rf(Fn,e)}function b3(e){return zf(Fn,e)}function x3(e){return mc(Sc,e)}function k3(e){return mc(Sc,{protocol:/^https?$/,hostname:Kr.domain,...j.normalizeParams(e)})}function _3(e){return Pf(mm,e)}function S3(e){return Of(gm,e)}function w3(e){return Af(hm,e)}function T3(e){return Nf(ym,e)}function I3(e){return Df(vm,e)}function E3(e){return jf($m,e)}function M3(e){return Uf(bm,e)}function C3(e){return Lf(xm,e)}function R3(e){return I1(db,e)}function z3(e){return qf(km,e)}function P3(e){return Bf(_m,e)}function O3(e){return Vf(Sm,e)}function A3(e){return Hf(wm,e)}function N3(e){return Gf(Tm,e)}function D3(e){return Zf(Im,e)}function j3(e){return Ff(Em,e)}function U3(e,t,r={}){return Ys(rl,e,t,r)}function L3(e){return Ys(rl,"hostname",Kr.hostname,e)}function q3(e){return Ys(rl,"hex",Kr.hex,e)}function B3(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Kr[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return Ys(rl,o,n,t)}function fb(e){return P1(nl,e)}function pm(e){return A1(Pa,e)}function V3(e){return N1(Pa,e)}function H3(e){return D1(Pa,e)}function G3(e){return j1(Pa,e)}function Z3(e){return U1(Pa,e)}function mb(e){return L1(ol,e)}function F3(e){return B1(il,e)}function W3(e){return H1(Mm,e)}function K3(e){return G1(Mm,e)}function J3(e){return Z1(gb,e)}function Y3(e){return F1(hb,e)}function vb(e){return W1(yb,e)}function X3(){return K1($b)}function za(){return J1(bb)}function Cm(e){return Y1(xb,e)}function Q3(e){return X1(kb,e)}function e6(e){return Q1(wc,e)}function Tc(e,t){return r$(_b,e,t)}function t6(e){let t=e._zod.def.shape;return zm(Object.keys(t))}function r6(e,t){let r={type:"object",shape:e??{},...j.normalizeParams(t)};return new Ic(r)}function n6(e,t){return new Ic({type:"object",shape:e,catchall:Cm(),...j.normalizeParams(t)})}function o6(e,t){return new Ic({type:"object",shape:e,catchall:za(),...j.normalizeParams(t)})}function Rm(e,t){return new Ec({type:"union",options:e,...j.normalizeParams(t)})}function i6(e,t){return new Sb({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}function a6(e,t,r){return new wb({type:"union",options:t,discriminator:e,...j.normalizeParams(r)})}function Ib(e,t){return new Tb({type:"intersection",left:e,right:t})}function Mb(e,t,r){let o=t instanceof X,n=o?r:t,i=o?t:null;return new Eb({type:"tuple",items:e,rest:i,...j.normalizeParams(n)})}function Cb(e,t,r){return new Mc({type:"record",keyType:e,valueType:t,...j.normalizeParams(r)})}function s6(e,t,r){let o=ar(e);return o._zod.values=void 0,new Mc({type:"record",keyType:o,valueType:t,...j.normalizeParams(r)})}function l6(e,t,r){return new Mc({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(r)})}function u6(e,t,r){return new Rb({type:"map",keyType:e,valueType:t,...j.normalizeParams(r)})}function c6(e,t){return new zb({type:"set",valueType:e,...j.normalizeParams(t)})}function zm(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new el({type:"enum",entries:r,...j.normalizeParams(t)})}function p6(e,t){return new el({type:"enum",entries:e,...j.normalizeParams(t)})}function d6(e,t){return new Pb({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}function f6(e){return n$(Ob,e)}function Pm(e){return new Ab({type:"transform",transform:e})}function xc(e){return new Om({type:"optional",innerType:e})}function Db(e){return new Nb({type:"optional",innerType:e})}function kc(e){return new jb({type:"nullable",innerType:e})}function m6(e){return xc(kc(e))}function Lb(e,t){return new Ub({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}function Bb(e,t){return new qb({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}function Vb(e,t){return new Am({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}function g6(e){return new Hb({type:"success",innerType:e})}function Zb(e,t){return new Gb({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}function h6(e){return t$(Fb,e)}function _c(e,t){return new Nm({type:"pipe",in:e,out:t})}function y6(e,t,r){return new Dm({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}function Kb(e){return new Wb({type:"readonly",innerType:e})}function v6(e,t){return new Jb({type:"template_literal",parts:e,...j.normalizeParams(t)})}function Xb(e){return new Yb({type:"lazy",getter:e})}function $6(e){return new Qb({type:"promise",innerType:e})}function b6(e){return new ex({type:"function",input:Array.isArray(e?.input)?Mb(e?.input):e?.input??Tc(za()),output:e?.output??za()})}function x6(e){let t=new De({check:"custom"});return t._zod.check=e,t}function k6(e,t){return o$(Cc,e??(()=>!0),t)}function tx(e,t={}){return i$(Cc,e,t)}function rx(e){return a$(e)}function w6(e,t={}){let r=new Cc({type:"custom",check:"custom",fn:o=>o instanceof e,abort:!0,...j.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}function I6(e){let t=Xb(()=>Rm([cm(e),fb(),mb(),vb(),Tc(t),Cb(cm(),t)]));return t}function E6(e,t){return _c(Pm(e),t)}var te,dm,tl,Ce,fm,bc,Fn,Sc,mm,gm,hm,ym,vm,$m,bm,xm,db,km,_m,Sm,wm,Tm,Im,Em,rl,nl,Pa,ol,il,Mm,gb,hb,yb,$b,bb,xb,kb,wc,_b,Ic,Ec,Sb,wb,Tb,Eb,Mc,Rb,zb,el,Pb,Ob,Ab,Om,Nb,jb,Ub,qb,Am,Hb,Gb,Fb,Nm,Dm,Wb,Jb,Yb,Qb,ex,Cc,_6,S6,T6,$c=x(()=>{xr();xr();hc();gc();im();yc();pb();te=E("ZodType",(e,t)=>(X.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Xs(e,"input"),output:Xs(e,"output")}}),e.toJSONSchema=c$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(j.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>ar(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>Q$(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>tb(e,r,o),e.parseAsync=async(r,o)=>eb(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>rb(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>nb(e,r,o),e.decode=(r,o)=>ob(e,r,o),e.encodeAsync=async(r,o)=>ib(e,r,o),e.decodeAsync=async(r,o)=>ab(e,r,o),e.safeEncode=(r,o)=>sb(e,r,o),e.safeDecode=(r,o)=>lb(e,r,o),e.safeEncodeAsync=async(r,o)=>ub(e,r,o),e.safeDecodeAsync=async(r,o)=>cb(e,r,o),e.refine=(r,o)=>e.check(tx(r,o)),e.superRefine=r=>e.check(rx(r)),e.overwrite=r=>e.check(Tn(r)),e.optional=()=>xc(e),e.exactOptional=()=>Db(e),e.nullable=()=>kc(e),e.nullish=()=>xc(kc(e)),e.nonoptional=r=>Vb(e,r),e.array=()=>Tc(e),e.or=r=>Rm([e,r]),e.and=r=>Ib(e,r),e.transform=r=>_c(e,Pm(r)),e.default=r=>Lb(e,r),e.prefault=r=>Bb(e,r),e.catch=r=>Zb(e,r),e.pipe=r=>_c(e,r),e.readonly=()=>Kb(e),e.describe=r=>{let o=e.clone();return Ht.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Ht.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Ht.get(e);let o=e.clone();return Ht.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),dm=E("_ZodString",(e,t)=>{Ea.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,i)=>p$(e,o,n,i);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Us(...o)),e.includes=(...o)=>e.check(Bs(...o)),e.startsWith=(...o)=>e.check(Vs(...o)),e.endsWith=(...o)=>e.check(Hs(...o)),e.min=(...o)=>e.check($o(...o)),e.max=(...o)=>e.check(Ca(...o)),e.length=(...o)=>e.check(Ra(...o)),e.nonempty=(...o)=>e.check($o(1,...o)),e.lowercase=o=>e.check(Ls(o)),e.uppercase=o=>e.check(qs(o)),e.trim=()=>e.check(Fs()),e.normalize=(...o)=>e.check(Zs(...o)),e.toLowerCase=()=>e.check(Ws()),e.toUpperCase=()=>e.check(Ks()),e.slugify=()=>e.check(Js())}),tl=E("ZodString",(e,t)=>{Ea.init(e,t),dm.init(e,t),e.email=r=>e.check(Ef(fm,r)),e.url=r=>e.check(mc(Sc,r)),e.jwt=r=>e.check(Ff(Em,r)),e.emoji=r=>e.check(Pf(mm,r)),e.guid=r=>e.check(fc(bc,r)),e.uuid=r=>e.check(Mf(Fn,r)),e.uuidv4=r=>e.check(Cf(Fn,r)),e.uuidv6=r=>e.check(Rf(Fn,r)),e.uuidv7=r=>e.check(zf(Fn,r)),e.nanoid=r=>e.check(Of(gm,r)),e.guid=r=>e.check(fc(bc,r)),e.cuid=r=>e.check(Af(hm,r)),e.cuid2=r=>e.check(Nf(ym,r)),e.ulid=r=>e.check(Df(vm,r)),e.base64=r=>e.check(Hf(wm,r)),e.base64url=r=>e.check(Gf(Tm,r)),e.xid=r=>e.check(jf($m,r)),e.ksuid=r=>e.check(Uf(bm,r)),e.ipv4=r=>e.check(Lf(xm,r)),e.ipv6=r=>e.check(qf(km,r)),e.cidrv4=r=>e.check(Bf(_m,r)),e.cidrv6=r=>e.check(Vf(Sm,r)),e.e164=r=>e.check(Zf(Im,r)),e.datetime=r=>e.check(W$(r)),e.date=r=>e.check(K$(r)),e.time=r=>e.check(J$(r)),e.duration=r=>e.check(Y$(r))});Ce=E("ZodStringFormat",(e,t)=>{Me.init(e,t),dm.init(e,t)}),fm=E("ZodEmail",(e,t)=>{pv.init(e,t),Ce.init(e,t)});bc=E("ZodGUID",(e,t)=>{uv.init(e,t),Ce.init(e,t)});Fn=E("ZodUUID",(e,t)=>{cv.init(e,t),Ce.init(e,t)});Sc=E("ZodURL",(e,t)=>{dv.init(e,t),Ce.init(e,t)});mm=E("ZodEmoji",(e,t)=>{fv.init(e,t),Ce.init(e,t)});gm=E("ZodNanoID",(e,t)=>{mv.init(e,t),Ce.init(e,t)});hm=E("ZodCUID",(e,t)=>{gv.init(e,t),Ce.init(e,t)});ym=E("ZodCUID2",(e,t)=>{hv.init(e,t),Ce.init(e,t)});vm=E("ZodULID",(e,t)=>{yv.init(e,t),Ce.init(e,t)});$m=E("ZodXID",(e,t)=>{vv.init(e,t),Ce.init(e,t)});bm=E("ZodKSUID",(e,t)=>{$v.init(e,t),Ce.init(e,t)});xm=E("ZodIPv4",(e,t)=>{Sv.init(e,t),Ce.init(e,t)});db=E("ZodMAC",(e,t)=>{Tv.init(e,t),Ce.init(e,t)});km=E("ZodIPv6",(e,t)=>{wv.init(e,t),Ce.init(e,t)});_m=E("ZodCIDRv4",(e,t)=>{Iv.init(e,t),Ce.init(e,t)});Sm=E("ZodCIDRv6",(e,t)=>{Ev.init(e,t),Ce.init(e,t)});wm=E("ZodBase64",(e,t)=>{Cv.init(e,t),Ce.init(e,t)});Tm=E("ZodBase64URL",(e,t)=>{Rv.init(e,t),Ce.init(e,t)});Im=E("ZodE164",(e,t)=>{zv.init(e,t),Ce.init(e,t)});Em=E("ZodJWT",(e,t)=>{Pv.init(e,t),Ce.init(e,t)});rl=E("ZodCustomStringFormat",(e,t)=>{Ov.init(e,t),Ce.init(e,t)});nl=E("ZodNumber",(e,t)=>{$f.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,i)=>d$(e,o,n,i),e.gt=(o,n)=>e.check(Gn(o,n)),e.gte=(o,n)=>e.check(sr(o,n)),e.min=(o,n)=>e.check(sr(o,n)),e.lt=(o,n)=>e.check(Hn(o,n)),e.lte=(o,n)=>e.check(Ar(o,n)),e.max=(o,n)=>e.check(Ar(o,n)),e.int=o=>e.check(pm(o)),e.safe=o=>e.check(pm(o)),e.positive=o=>e.check(Gn(0,o)),e.nonnegative=o=>e.check(sr(0,o)),e.negative=o=>e.check(Hn(0,o)),e.nonpositive=o=>e.check(Ar(0,o)),e.multipleOf=(o,n)=>e.check(gi(o,n)),e.step=(o,n)=>e.check(gi(o,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});Pa=E("ZodNumberFormat",(e,t)=>{Av.init(e,t),nl.init(e,t)});ol=E("ZodBoolean",(e,t)=>{sc.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>f$(e,r,o,n)});il=E("ZodBigInt",(e,t)=>{bf.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,i)=>m$(e,o,n,i),e.gte=(o,n)=>e.check(sr(o,n)),e.min=(o,n)=>e.check(sr(o,n)),e.gt=(o,n)=>e.check(Gn(o,n)),e.gte=(o,n)=>e.check(sr(o,n)),e.min=(o,n)=>e.check(sr(o,n)),e.lt=(o,n)=>e.check(Hn(o,n)),e.lte=(o,n)=>e.check(Ar(o,n)),e.max=(o,n)=>e.check(Ar(o,n)),e.positive=o=>e.check(Gn(BigInt(0),o)),e.negative=o=>e.check(Hn(BigInt(0),o)),e.nonpositive=o=>e.check(Ar(BigInt(0),o)),e.nonnegative=o=>e.check(sr(BigInt(0),o)),e.multipleOf=(o,n)=>e.check(gi(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});Mm=E("ZodBigIntFormat",(e,t)=>{Nv.init(e,t),il.init(e,t)});gb=E("ZodSymbol",(e,t)=>{Dv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>g$(e,r,o,n)});hb=E("ZodUndefined",(e,t)=>{jv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>y$(e,r,o,n)});yb=E("ZodNull",(e,t)=>{Uv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>h$(e,r,o,n)});$b=E("ZodAny",(e,t)=>{Lv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>b$(e,r,o,n)});bb=E("ZodUnknown",(e,t)=>{qv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>x$(e,r,o,n)});xb=E("ZodNever",(e,t)=>{Bv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>$$(e,r,o,n)});kb=E("ZodVoid",(e,t)=>{Vv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>v$(e,r,o,n)});wc=E("ZodDate",(e,t)=>{Hv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,i)=>k$(e,o,n,i),e.min=(o,n)=>e.check(sr(o,n)),e.max=(o,n)=>e.check(Ar(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});_b=E("ZodArray",(e,t)=>{Gv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>O$(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check($o(r,o)),e.nonempty=r=>e.check($o(1,r)),e.max=(r,o)=>e.check(Ca(r,o)),e.length=(r,o)=>e.check(Ra(r,o)),e.unwrap=()=>e.element});Ic=E("ZodObject",(e,t)=>{Zv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>A$(e,r,o,n),j.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>zm(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:za()}),e.loose=()=>e.clone({...e._zod.def,catchall:za()}),e.strict=()=>e.clone({...e._zod.def,catchall:Cm()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>j.extend(e,r),e.safeExtend=r=>j.safeExtend(e,r),e.merge=r=>j.merge(e,r),e.pick=r=>j.pick(e,r),e.omit=r=>j.omit(e,r),e.partial=(...r)=>j.partial(Om,e,r[0]),e.required=(...r)=>j.required(Am,e,r[0])});Ec=E("ZodUnion",(e,t)=>{lc.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>em(e,r,o,n),e.options=t.options});Sb=E("ZodXor",(e,t)=>{Ec.init(e,t),Fv.init(e,t),e._zod.processJSONSchema=(r,o,n)=>em(e,r,o,n),e.options=t.options});wb=E("ZodDiscriminatedUnion",(e,t)=>{Ec.init(e,t),Wv.init(e,t)});Tb=E("ZodIntersection",(e,t)=>{Kv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>N$(e,r,o,n)});Eb=E("ZodTuple",(e,t)=>{xf.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>D$(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});Mc=E("ZodRecord",(e,t)=>{Jv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>j$(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});Rb=E("ZodMap",(e,t)=>{Yv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>z$(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(Zn(...r)),e.nonempty=r=>e.check(Zn(1,r)),e.max=(...r)=>e.check(hi(...r)),e.size=(...r)=>e.check(Ma(...r))});zb=E("ZodSet",(e,t)=>{Xv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>P$(e,r,o,n),e.min=(...r)=>e.check(Zn(...r)),e.nonempty=r=>e.check(Zn(1,r)),e.max=(...r)=>e.check(hi(...r)),e.size=(...r)=>e.check(Ma(...r))});el=E("ZodEnum",(e,t)=>{Qv.init(e,t),te.init(e,t),e._zod.processJSONSchema=(o,n,i)=>_$(e,o,n,i),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let i={};for(let a of o)if(r.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new el({...t,checks:[],...j.normalizeParams(n),entries:i})},e.exclude=(o,n)=>{let i={...t.entries};for(let a of o)if(r.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new el({...t,checks:[],...j.normalizeParams(n),entries:i})}});Pb=E("ZodLiteral",(e,t)=>{e1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>S$(e,r,o,n),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]}})});Ob=E("ZodFile",(e,t)=>{t1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>I$(e,r,o,n),e.min=(r,o)=>e.check(Zn(r,o)),e.max=(r,o)=>e.check(hi(r,o)),e.mime=(r,o)=>e.check(Gs(Array.isArray(r)?r:[r],o))});Ab=E("ZodTransform",(e,t)=>{r1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>R$(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new ci(e.constructor.name);r.addIssue=i=>{if(typeof i=="string")r.issues.push(j.issue(i,r.value,t));else{let a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(j.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(i=>(r.value=i,r)):(r.value=n,r)}});Om=E("ZodOptional",(e,t)=>{kf.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>tm(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});Nb=E("ZodExactOptional",(e,t)=>{n1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>tm(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});jb=E("ZodNullable",(e,t)=>{o1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>U$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});Ub=E("ZodDefault",(e,t)=>{i1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>q$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});qb=E("ZodPrefault",(e,t)=>{a1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>B$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});Am=E("ZodNonOptional",(e,t)=>{s1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>L$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});Hb=E("ZodSuccess",(e,t)=>{l1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>E$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});Gb=E("ZodCatch",(e,t)=>{u1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>V$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});Fb=E("ZodNaN",(e,t)=>{c1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>w$(e,r,o,n)});Nm=E("ZodPipe",(e,t)=>{p1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>H$(e,r,o,n),e.in=t.in,e.out=t.out});Dm=E("ZodCodec",(e,t)=>{Nm.init(e,t),uc.init(e,t)});Wb=E("ZodReadonly",(e,t)=>{d1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>G$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});Jb=E("ZodTemplateLiteral",(e,t)=>{f1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>T$(e,r,o,n)});Yb=E("ZodLazy",(e,t)=>{h1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>F$(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});Qb=E("ZodPromise",(e,t)=>{g1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Z$(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});ex=E("ZodFunction",(e,t)=>{m1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>C$(e,r,o,n)});Cc=E("ZodCustom",(e,t)=>{y1.init(e,t),te.init(e,t),e._zod.processJSONSchema=(r,o,n)=>M$(e,r,o,n)});_6=s$,S6=l$;T6=(...e)=>u$({Codec:Dm,Boolean:ol,String:tl},...e)});function mL(e){at({customError:e})}function gL(){return at().customError}var fL,nx,M6=x(()=>{xr();xr();fL={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};nx||(nx={})});function yL(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function vL(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}function C6(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return V.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return V.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let i=vL(n,t),a=Yt(i,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return V.null();if(n.length===0)return V.never();if(n.length===1)return V.literal(n[0]);if(n.every(a=>typeof a=="string"))return V.enum(n);let i=n.map(a=>V.literal(a));return i.length<2?i[0]:V.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return V.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(i=>{let a={...e,type:i};return C6(a,t)});return n.length===0?V.never():n.length===1?n[0]:V.union(n)}if(!r)return V.any();let o;switch(r){case"string":{let n=V.string();if(e.format){let i=e.format;i==="email"?n=n.check(V.email()):i==="uri"||i==="uri-reference"?n=n.check(V.url()):i==="uuid"||i==="guid"?n=n.check(V.uuid()):i==="date-time"?n=n.check(V.iso.datetime()):i==="date"?n=n.check(V.iso.date()):i==="time"?n=n.check(V.iso.time()):i==="duration"?n=n.check(V.iso.duration()):i==="ipv4"?n=n.check(V.ipv4()):i==="ipv6"?n=n.check(V.ipv6()):i==="mac"?n=n.check(V.mac()):i==="cidr"?n=n.check(V.cidrv4()):i==="cidr-v6"?n=n.check(V.cidrv6()):i==="base64"?n=n.check(V.base64()):i==="base64url"?n=n.check(V.base64url()):i==="e164"?n=n.check(V.e164()):i==="jwt"?n=n.check(V.jwt()):i==="emoji"?n=n.check(V.emoji()):i==="nanoid"?n=n.check(V.nanoid()):i==="cuid"?n=n.check(V.cuid()):i==="cuid2"?n=n.check(V.cuid2()):i==="ulid"?n=n.check(V.ulid()):i==="xid"?n=n.check(V.xid()):i==="ksuid"&&(n=n.check(V.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?V.number().int():V.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=V.boolean();break}case"null":{o=V.null();break}case"object":{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[l,u]of Object.entries(i)){let c=Yt(u,t);n[l]=a.has(l)?c:c.optional()}if(e.propertyNames){let l=Yt(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?Yt(e.additionalProperties,t):V.any();if(Object.keys(n).length===0){o=V.record(l,u);break}let c=V.object(n).passthrough(),p=V.looseRecord(l,u);o=V.intersection(c,p);break}if(e.patternProperties){let l=e.patternProperties,u=Object.keys(l),c=[];for(let d of u){let f=Yt(l[d],t),m=V.string().regex(new RegExp(d));c.push(V.looseRecord(m,f))}let p=[];if(Object.keys(n).length>0&&p.push(V.object(n).passthrough()),p.push(...c),p.length===0)o=V.object({}).passthrough();else if(p.length===1)o=p[0];else{let d=V.intersection(p[0],p[1]);for(let f=2;f<p.length;f++)d=V.intersection(d,p[f]);o=d}break}let s=V.object(n);e.additionalProperties===!1?o=s.strict():typeof e.additionalProperties=="object"?o=s.catchall(Yt(e.additionalProperties,t)):o=s.passthrough();break}case"array":{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(l=>Yt(l,t)),s=i&&typeof i=="object"&&!Array.isArray(i)?Yt(i,t):void 0;s?o=V.tuple(a).rest(s):o=V.tuple(a),typeof e.minItems=="number"&&(o=o.check(V.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(V.maxLength(e.maxItems)))}else if(Array.isArray(i)){let a=i.map(l=>Yt(l,t)),s=e.additionalItems&&typeof e.additionalItems=="object"?Yt(e.additionalItems,t):void 0;s?o=V.tuple(a).rest(s):o=V.tuple(a),typeof e.minItems=="number"&&(o=o.check(V.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(V.maxLength(e.maxItems)))}else if(i!==void 0){let a=Yt(i,t),s=V.array(a);typeof e.minItems=="number"&&(s=s.min(e.minItems)),typeof e.maxItems=="number"&&(s=s.max(e.maxItems)),o=s}else o=V.array(V.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}function Yt(e,t){if(typeof e=="boolean")return e?V.any():V.never();let r=C6(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let s=e.anyOf.map(u=>Yt(u,t)),l=V.union(s);r=o?V.intersection(r,l):l}if(e.oneOf&&Array.isArray(e.oneOf)){let s=e.oneOf.map(u=>Yt(u,t)),l=V.xor(s);r=o?V.intersection(r,l):l}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:V.any();else{let s=o?r:Yt(e.allOf[0],t),l=o?0:1;for(let u=l;u<e.allOf.length;u++)s=V.intersection(s,Yt(e.allOf[u],t));r=s}e.nullable===!0&&t.version==="openapi-3.0"&&(r=V.nullable(r)),e.readOnly===!0&&(r=V.readonly(r));let n={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let s of i)s in e&&(n[s]=e[s]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let s of a)s in e&&(n[s]=e[s]);for(let s of Object.keys(e))hL.has(s)||(n[s]=e[s]);return Object.keys(n).length>0&&t.registry.add(r,n),r}function R6(e,t){if(typeof e=="boolean")return e?V.any():V.never();let r=yL(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Ht};return Yt(e,n)}var V,hL,z6=x(()=>{dc();im();yc();$c();V={...vc,...om,iso:Qs},hL=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"])});var ox={};ct(ox,{bigint:()=>kL,boolean:()=>xL,date:()=>_L,number:()=>bL,string:()=>$L});function $L(e){return T1(tl,e)}function bL(e){return O1(nl,e)}function xL(e){return q1(ol,e)}function kL(e){return V1(il,e)}function _L(e){return e$(wc,e)}var P6=x(()=>{xr();$c()});var g={};ct(g,{$brand:()=>Wd,$input:()=>S1,$output:()=>_1,NEVER:()=>Jh,TimePrecision:()=>E1,ZodAny:()=>$b,ZodArray:()=>_b,ZodBase64:()=>wm,ZodBase64URL:()=>Tm,ZodBigInt:()=>il,ZodBigIntFormat:()=>Mm,ZodBoolean:()=>ol,ZodCIDRv4:()=>_m,ZodCIDRv6:()=>Sm,ZodCUID:()=>hm,ZodCUID2:()=>ym,ZodCatch:()=>Gb,ZodCodec:()=>Dm,ZodCustom:()=>Cc,ZodCustomStringFormat:()=>rl,ZodDate:()=>wc,ZodDefault:()=>Ub,ZodDiscriminatedUnion:()=>wb,ZodE164:()=>Im,ZodEmail:()=>fm,ZodEmoji:()=>mm,ZodEnum:()=>el,ZodError:()=>pL,ZodExactOptional:()=>Nb,ZodFile:()=>Ob,ZodFirstPartyTypeKind:()=>nx,ZodFunction:()=>ex,ZodGUID:()=>bc,ZodIPv4:()=>xm,ZodIPv6:()=>km,ZodISODate:()=>sm,ZodISODateTime:()=>am,ZodISODuration:()=>um,ZodISOTime:()=>lm,ZodIntersection:()=>Tb,ZodIssueCode:()=>fL,ZodJWT:()=>Em,ZodKSUID:()=>bm,ZodLazy:()=>Yb,ZodLiteral:()=>Pb,ZodMAC:()=>db,ZodMap:()=>Rb,ZodNaN:()=>Fb,ZodNanoID:()=>gm,ZodNever:()=>xb,ZodNonOptional:()=>Am,ZodNull:()=>yb,ZodNullable:()=>jb,ZodNumber:()=>nl,ZodNumberFormat:()=>Pa,ZodObject:()=>Ic,ZodOptional:()=>Om,ZodPipe:()=>Nm,ZodPrefault:()=>qb,ZodPromise:()=>Qb,ZodReadonly:()=>Wb,ZodRealError:()=>kr,ZodRecord:()=>Mc,ZodSet:()=>zb,ZodString:()=>tl,ZodStringFormat:()=>Ce,ZodSuccess:()=>Hb,ZodSymbol:()=>gb,ZodTemplateLiteral:()=>Jb,ZodTransform:()=>Ab,ZodTuple:()=>Eb,ZodType:()=>te,ZodULID:()=>vm,ZodURL:()=>Sc,ZodUUID:()=>Fn,ZodUndefined:()=>hb,ZodUnion:()=>Ec,ZodUnknown:()=>bb,ZodVoid:()=>kb,ZodXID:()=>$m,ZodXor:()=>Sb,_ZodString:()=>dm,_default:()=>Lb,_function:()=>b6,any:()=>X3,array:()=>Tc,base64:()=>A3,base64url:()=>N3,bigint:()=>F3,boolean:()=>mb,catch:()=>Zb,check:()=>x6,cidrv4:()=>P3,cidrv6:()=>O3,clone:()=>ar,codec:()=>y6,coerce:()=>ox,config:()=>at,core:()=>bo,cuid:()=>w3,cuid2:()=>T3,custom:()=>k6,date:()=>e6,decode:()=>ob,decodeAsync:()=>ab,describe:()=>_6,discriminatedUnion:()=>a6,e164:()=>D3,email:()=>g3,emoji:()=>_3,encode:()=>nb,encodeAsync:()=>ib,endsWith:()=>Hs,enum:()=>zm,exactOptional:()=>Db,file:()=>f6,flattenError:()=>rc,float32:()=>V3,float64:()=>H3,formatError:()=>nc,fromJSONSchema:()=>R6,function:()=>b6,getErrorMap:()=>gL,globalRegistry:()=>Ht,gt:()=>Gn,gte:()=>sr,guid:()=>h3,hash:()=>B3,hex:()=>q3,hostname:()=>L3,httpUrl:()=>k3,includes:()=>Bs,instanceof:()=>w6,int:()=>pm,int32:()=>G3,int64:()=>W3,intersection:()=>Ib,ipv4:()=>C3,ipv6:()=>z3,iso:()=>Qs,json:()=>I6,jwt:()=>j3,keyof:()=>t6,ksuid:()=>M3,lazy:()=>Xb,length:()=>Ra,literal:()=>d6,locales:()=>pc,looseObject:()=>o6,looseRecord:()=>l6,lowercase:()=>Ls,lt:()=>Hn,lte:()=>Ar,mac:()=>R3,map:()=>u6,maxLength:()=>Ca,maxSize:()=>hi,meta:()=>S6,mime:()=>Gs,minLength:()=>$o,minSize:()=>Zn,multipleOf:()=>gi,nan:()=>h6,nanoid:()=>S3,nativeEnum:()=>p6,negative:()=>Kf,never:()=>Cm,nonnegative:()=>Yf,nonoptional:()=>Vb,nonpositive:()=>Jf,normalize:()=>Zs,null:()=>vb,nullable:()=>kc,nullish:()=>m6,number:()=>fb,object:()=>r6,optional:()=>xc,overwrite:()=>Tn,parse:()=>Q$,parseAsync:()=>eb,partialRecord:()=>s6,pipe:()=>_c,positive:()=>Wf,prefault:()=>Bb,preprocess:()=>E6,prettifyError:()=>ly,promise:()=>$6,property:()=>Xf,readonly:()=>Kb,record:()=>Cb,refine:()=>tx,regex:()=>Us,regexes:()=>Kr,registry:()=>If,safeDecode:()=>lb,safeDecodeAsync:()=>cb,safeEncode:()=>sb,safeEncodeAsync:()=>ub,safeParse:()=>tb,safeParseAsync:()=>rb,set:()=>c6,setErrorMap:()=>mL,size:()=>Ma,slugify:()=>Js,startsWith:()=>Vs,strictObject:()=>n6,string:()=>cm,stringFormat:()=>U3,stringbool:()=>T6,success:()=>g6,superRefine:()=>rx,symbol:()=>J3,templateLiteral:()=>v6,toJSONSchema:()=>rm,toLowerCase:()=>Ws,toUpperCase:()=>Ks,transform:()=>Pm,treeifyError:()=>sy,trim:()=>Fs,tuple:()=>Mb,uint32:()=>Z3,uint64:()=>K3,ulid:()=>I3,undefined:()=>Y3,union:()=>Rm,unknown:()=>za,uppercase:()=>qs,url:()=>x3,util:()=>j,uuid:()=>y3,uuidv4:()=>v3,uuidv6:()=>$3,uuidv7:()=>b3,void:()=>Q3,xid:()=>E3,xor:()=>i6});var ix=x(()=>{xr();$c();im();X$();pb();M6();xr();$1();xr();hc();z6();k1();yc();yc();P6();at(_f())});var Wn=x(()=>{ix();ix()});var Rc,O6,A6,N6,jm=x(()=>{"use strict";Rc="@ggui-ai/gadgets",O6="0.1.0-rc.1",A6=[{package:Rc,version:O6,exports:[{hook:"useCamera",permission:"camera",description:"Capture stills or live video from the device camera.",usage:"Mount when the intent names photo capture, QR / barcode scanning, video recording, or anything that requires a camera feed. The hook returns a stream once `start()` resolves; thread the resulting blob or stream URL into a contextSpec slot or an actionSpec payload to surface it to the agent.",example:{call:"const cam = useCamera();",returns:{status:"ready",value:{stream:"<MediaStream>",kind:"video"}}}},{hook:"useClipboardPaste",permission:"clipboard-read",description:"Read the system clipboard contents on user gesture.",usage:"Mount when the intent involves importing copied content (paste-into-form, paste-image-to-upload, paste-link). The Permissions API requires a user gesture; gate `start()` behind a button click. Returned value lands in a contextSpec slot or an actionSpec payload.",example:{call:"const paste = useClipboardPaste();",returns:{status:"ready",value:"pasted clipboard text"}}},{hook:"useClipboardWrite",permission:"clipboard-write",description:"Write to the system clipboard on user gesture.",usage:"Mount when the intent includes copying generated text, share links, codes, or transcripts to the system clipboard. Fire an actionSpec event so the agent observes the act (it does not see the written value \u2014 that stays component-local).",example:{call:"const write = useClipboardWrite(); write.write('hello');",returns:{status:"ready"}}},{hook:"useFilePicker",description:"Open the native file picker and read selected files.",usage:"Mount when the intent names file upload, attachment selection, or document import. No permission required. The hook returns the picked files plus metadata; thread file refs / data URLs into a contextSpec slot or actionSpec payload.",example:{call:'const picker = useFilePicker({ accept: "image/*" });',returns:{status:"ready",value:[{name:"photo.png",type:"image/png",size:12345}]}}},{hook:"useGeolocation",permission:"geolocation",description:"Resolve the device's current geolocation.",usage:'Mount when the intent names "current location", maps, nearby search, location-aware UI. Browser prompts the user on `start()`; the hook returns coordinates once granted. Thread the resolved coords into a contextSpec slot so the agent observes the latest fix.',example:{call:"const geo = useGeolocation();",returns:{status:"ready",value:{latitude:37.7749,longitude:-122.4194,accuracy:20}}}},{hook:"useMicrophone",permission:"microphone",description:"Capture audio from the device microphone.",usage:"Mount when the intent names voice memos, audio messages, dictation, voice-driven UI. Returns an audio stream / blob; thread it into an actionSpec payload at recording-stop, or into a contextSpec slot for live transcription pipelines.",example:{call:"const mic = useMicrophone();",returns:{status:"ready",value:{stream:"<MediaStream>",kind:"audio"}}}},{hook:"useNotifications",permission:"notifications",description:"Show system / browser notifications to the user.",usage:"Mount when the intent involves alerting the user about something (reminders, completion of long tasks, incoming messages) and the UI may be in the background. Permission is prompted on first `start()`; the agent does NOT see notification dismissal directly \u2014 surface it via an actionSpec if needed.",example:{call:"const notify = useNotifications(); notify.show({ title: 'Done' });",returns:{status:"ready",value:{granted:!0}}}}]}],N6=Object.freeze(new Set(A6.flatMap(e=>e.exports).map(e=>e.hook).filter(e=>e!==void 0)))});var ax=x(()=>{"use strict"});var al,zc,Um=x(()=>{"use strict";al=/^use[A-Z][A-Za-z0-9]*$/,zc=/^[A-Z][A-Za-z0-9]*$/});var Lm,Tne,Pc=x(()=>{"use strict";jm();ax();Um();Lm=["geolocation","notifications","microphone","camera","persistent-storage","midi","clipboard-read","clipboard-write","speaker-selection","storage-access","background-sync","accelerometer","gyroscope","magnetometer","ambient-light-sensor","screen-wake-lock"],Tne=new Set(Lm)});var Ze,xo,TL,IL,EL,ML,CL,RL,zL,PL,OL,AL,qm,NL,D6,L6,DL,jL,q6,j6,U6,B6,UL,LL,zne,Oc,Pne,qL,BL,VL,One,bi,sl=x(()=>{"use strict";Wn();Pc();jm();Um();Um();Ze=g.lazy(()=>g.union([g.string(),g.number(),g.boolean(),g.null(),g.array(Ze),g.record(g.string(),Ze)])),xo=g.lazy(()=>g.object({type:g.enum(["string","number","integer","boolean","array","object","null"]).optional(),description:g.string().optional(),enum:g.array(Ze).optional(),default:Ze.optional(),example:Ze.optional(),items:xo.optional(),properties:g.record(g.string(),xo).optional(),required:g.array(g.string()).optional(),additionalProperties:g.union([xo,g.boolean()]).optional(),format:g.string().optional()}).passthrough()),TL=g.object({description:g.string().optional(),schema:xo,required:g.boolean().optional(),default:Ze.optional(),example:Ze.optional(),sourceTool:g.string().optional()}).strict(),IL=g.object({description:g.string().optional(),properties:g.record(g.string(),TL)}).strict(),EL=g.object({description:g.string().optional(),label:g.string(),schema:xo.optional(),example:Ze.optional(),icon:g.string().optional(),confirm:g.boolean().optional(),nextStep:g.string().min(1).optional()}).strict(),ML=g.record(g.string(),EL),CL=g.object({description:g.string().optional(),schema:xo,example:Ze.optional(),mode:g.enum(["append","replace"]).optional(),replay:g.enum(["latest","all","none"]).optional(),complete:g.boolean().optional(),tool:g.string().optional(),source:g.object({tool:g.string(),args:g.record(g.string(),Ze).optional()}).strict().optional()}).strict(),RL=g.record(g.string(),CL),zL=g.object({description:g.string().optional(),schema:xo,default:Ze.optional(),debounceMs:g.number().int().nonnegative().optional(),example:Ze.optional()}).strict(),PL=g.record(g.string(),zL),OL=g.object({description:g.string().optional(),usage:g.string().optional(),inputSchema:xo.optional(),outputSchema:xo.optional(),required:g.boolean().optional(),example:g.object({input:Ze,output:Ze}).strict().optional()}).strict(),AL=g.object({tools:g.record(g.string(),OL)}).passthrough(),qm=/^GGUI_PUBLIC_APP_[A-Z0-9_]+$/,NL=g.array(g.string().regex(qm)).readonly(),D6=/^sha384-[A-Za-z0-9+/]+=*$/,L6=/^(?:@[a-z0-9][a-z0-9._-]*\/)?[a-z0-9][a-z0-9._-]*$/,DL=/^\d+\.\d+\.\d+(-[\w.]+)?(\+[\w.]+)?$/,jL=/^[a-z0-9.-]+(:\d+)?$/,q6={gotchas:g.string().optional(),required:g.boolean().optional()},j6={...q6,description:g.string().optional(),usage:g.string().optional(),example:Ze.optional(),permission:g.string().optional()},U6={...q6,description:g.string().min(1),usage:g.string().min(1),example:Ze,permission:g.enum(Lm).optional()},B6={version:g.string().regex(DL),package:g.string().regex(L6),bundleUrl:g.url().optional(),bundleHost:g.string().regex(jL).optional(),bundleSri:g.string().regex(D6).optional(),styleUrl:g.url().optional(),connect:g.array(g.url()).readonly().optional(),requires:NL.optional(),typesUrl:g.url().optional(),typesSri:g.string().regex(D6).optional()},UL=g.union([g.object({hook:g.string().regex(al),...j6}).strict(),g.object({component:g.string().regex(zc),...j6}).strict()]),LL=g.union([g.object({hook:g.string().regex(al),...U6}).strict(),g.object({component:g.string().regex(zc),...U6}).strict()]),zne=g.object({...B6,exports:g.array(UL).min(1)}).strict(),Oc=g.object({...B6,exports:g.array(LL).min(1)}).strict(),Pne=Oc.refine(e=>e.package===Rc||typeof e.typesUrl=="string",{message:"registered GadgetDescriptor MUST declare a `typesUrl` (HTTPS URL to the package's .d.ts) \u2014 the code-gen sandbox loads it to typecheck generated component code against the export signatures. Run `tsup --dts` (or `tsc --declaration`) in the wrapper build and publish the emitted .d.ts. Only the first-party `@ggui-ai/gadgets` stdlib is exempt.",path:["typesUrl"]}),qL=g.object({description:g.string().optional(),usage:g.string().optional()}).strict(),BL=g.record(g.string().refine(e=>al.test(e)||zc.test(e),{message:"gadget export name must be a `use`-prefixed hook or a PascalCase component identifier"}),qL).refine(e=>Object.keys(e).length>0,{message:"a `clientCapabilities.gadgets` package entry must declare at least one export"}),VL=g.object({gadgets:g.record(g.string().regex(L6),BL)}).strict(),One=g.record(g.string().regex(qm),g.string()).readonly(),bi=g.object({propsSpec:IL.optional(),actionSpec:ML.optional(),streamSpec:RL.optional(),contextSpec:PL.optional(),agentCapabilities:AL.optional(),clientCapabilities:VL.optional()}).passthrough()});var Ac,V6,Une,HL,Lne,Bm=x(()=>{"use strict";Wn();sl();Ac=g.object({persona:g.string().optional(),aesthetic:g.string().optional(),context:g.record(g.string(),Ze).optional(),seedPrompt:g.string().optional()}).strict(),V6=g.object({blueprintId:g.string().min(1),contractHash:g.string().min(1),appId:g.string().min(1),codeS3Url:g.string().optional(),codeHash:g.string().optional(),generator:g.string().min(1),validatorScore:g.number().min(0).max(1).optional(),variance:Ac,isOperatorDefault:g.literal(!0).optional(),createdAt:g.string().min(1),createdBy:g.enum(["agent","operator"]),contract:bi,contractEmbedding:g.array(g.number()).optional()}).strict(),Une=g.object({hash:g.number().min(0),embed:g.number().min(0),struct:g.number().min(0),variance:g.number().min(0),intent:g.number().min(0)}).strict(),HL=g.object({hash:g.number().min(0).optional(),embed:g.number().min(0).optional(),struct:g.number().min(0).optional(),variance:g.number().min(0).optional(),intent:g.number().min(0).optional()}).strict(),Lne=g.object({weights:HL.optional(),threshold:g.number().min(0).max(1).optional(),topK:g.number().int().min(1).optional()}).strict()});var GL,ZL,FL,WL,sx,KL,JL,YL,H6,G6,lx=x(()=>{"use strict";Wn();sl();Bm();GL=g.enum(["cache","agent","synth"]),ZL=g.union([g.object({op:g.literal("add"),path:g.string(),value:Ze}).strict(),g.object({op:g.literal("remove"),path:g.string()}).strict(),g.object({op:g.literal("replace"),path:g.string(),value:Ze}).strict()]),FL=g.array(ZL),WL=g.object({contract:bi,variance:g.object({persona:g.string().optional(),aesthetic:g.string().optional(),context:g.record(g.string(),Ze).optional(),seedPrompt:g.string().optional()}).strict().optional(),generator:g.string().optional()}).strict(),sx=WL,KL=g.object({blueprintId:g.string().min(1),contractHash:g.string().min(1),codeHash:g.string().optional(),generator:g.string().min(1),variance:Ac,selectedReason:g.string().optional()}).strict(),JL=g.object({code:g.string().min(1),severity:g.enum(["error","warn"]),path:g.string(),message:g.string()}).strict(),YL=g.object({contractDiff:FL,reasoning:g.string()}).strict(),H6=g.object({origin:GL,rationale:g.string(),blueprintMeta:KL,amendments:YL.optional(),validationFindings:g.array(JL).optional()}).strict(),G6=g.union([g.object({kind:g.literal("accept")}).strict(),g.object({kind:g.literal("override"),blueprintDraft:sx}).strict()])});var XL,Z6,Wne,Kne,Jne,Yne,Xne,Qne,eoe,toe,roe,noe,ooe,ioe,aoe,soe,loe,uoe,coe,poe,doe,ux=x(()=>{"use strict";Wn();lx();XL=g.object({width:g.number(),height:g.number()}),Z6=g.object({viewport:XL,platform:g.enum(["web","mobile","desktop"]),deviceType:g.enum(["phone","tablet","desktop"]),orientation:g.enum(["portrait","landscape"]),devicePixelRatio:g.number().optional(),touchPrimary:g.boolean().optional(),shellType:g.enum(["chat","fullscreen","spatial"]).optional(),colorScheme:g.enum(["light","dark"]).optional(),reducedMotion:g.boolean().optional()}).passthrough(),Wne=g.object({sessionId:g.string().describe("Session opaque id from ggui_new_session.")}).strict(),Kne=g.object({stackItemId:g.string().describe("Stack item opaque id (UUID) \u2014 returned by ggui_push."),timeout:g.number().min(0).max(25).optional().describe("Long-poll timeout in seconds (default short; max 25).")}).strict(),Jne=g.object({sessionId:g.string().describe("Session opaque id from ggui_new_session."),channel:g.string().describe("Channel name declared on the active stack item streamSpec."),payload:g.unknown().describe("Payload \u2014 must match streamSpec[channel].schema."),complete:g.boolean().optional().describe("True marks the stream complete; subsequent emits on this channel reject."),stackItemId:g.string().optional().describe("Stack item to scope this emit to; defaults to session top.")}).strict(),Yne=g.object({sessionId:g.string().describe("Session opaque id from ggui_new_session.")}).strict(),Xne=g.object({sessionId:g.string().describe("Session opaque id from ggui_new_session.")}).strict(),Qne=g.object({sessionId:g.string().describe("Session opaque id from ggui_new_session.")}).strict(),eoe=g.object({level:g.enum(["primitive","component","composite","template"]).optional(),category:g.string().optional(),tags:g.array(g.string()).optional(),limit:g.number().optional()}).strict(),toe=g.object({query:g.string(),limit:g.number().optional()}).strict(),roe=g.object({blueprintId:g.string(),props:g.record(g.string(),g.unknown()).optional()}).strict(),noe=g.object({}).strict(),ooe=g.object({serviceId:g.string().describe('OAuth service ID (e.g., "bashdoor", "ubot")'),reason:g.string().optional().describe("Why the agent needs this credential (shown to user)"),sessionId:g.string().optional().describe("Existing session ID to push consent UI into")}).strict(),ioe=g.object({}).strict(),aoe=g.object({sessionId:g.string().describe("Thread this through every subsequent ggui_handshake / ggui_update call in this chat."),appId:g.string(),createdAt:g.string().describe("ISO 8601 \u2014 creation timestamp of the freshly-minted session."),nextStep:g.object({tool:g.literal("ggui_handshake"),description:g.string(),example:g.string()}).describe("Wire-shape recovery hint \u2014 a worked literal example of the next call.")}),soe=g.object({sessionId:g.string().min(1).describe("Session handle minted by ggui_new_session. Required \u2014 call ggui_new_session({seed?}) first to obtain one. Reuse the same sessionId across multiple handshake/push pairs in the same chat to grow the session stack."),intent:g.string().min(1).describe('Concise purpose \u2014 same intent = same component reused. e.g. "Gmail inbox for email triage"'),blueprintDraft:sx.describe("Agent's draft: contract (required) + optional variance + optional generator slug hint. The server combines this with cached blueprints + validator outcomes to produce a three-mode suggestion (cache / agent / synth)."),forceCreate:g.boolean().optional()}).strict(),loe=g.object({handshakeId:g.string().describe("Stable id \u2014 pass to ggui_push / ggui_update"),action:g.enum(["create","reuse","update","replace","compose","declined"]),suggestion:H6.describe("Server's suggestion \u2014 origin-routed (cache | agent | synth). Always carries a provisional `blueprintMeta` the agent reuses by sending `decision: 'accept'` on push."),reason:g.string().max(280).optional().describe("Short rationale (\u2264280 chars) for the `action` value. Surfaced for agent + operator visibility; truncated to keep the structuredContent payload predictable."),nextStep:g.object({tool:g.literal("ggui_push"),description:g.string(),example:g.string()}).optional().describe("Wire-shape recovery hint. A worked literal example of the next ggui_push call the agent should emit \u2014 the example string can be copied verbatim and tweaked (e.g. fill in `props` placeholders). Top-level field so a skimming agent finds it immediately.")}),uoe=g.object({handshakeId:g.string({message:"ggui_push: handshakeId is REQUIRED. Call ggui_handshake({sessionId, intent, blueprintDraft}) first to negotiate \u2014 handshake returns a handshakeId + suggestion. Then push with {handshakeId, decision: {kind: 'accept'}} (accept the suggestion) or {handshakeId, decision: {kind: 'override', blueprintDraft: {...}}} (override with a fresh draft). Direct-push without a handshakeId is not supported."}).min(1,"ggui_push: handshakeId must be a non-empty string from a prior ggui_handshake call."),props:g.record(g.string(),g.unknown()).optional(),decision:G6.describe("Accept the handshake suggestion (use provisional blueprintId verbatim) or override with a fresh draft (mint new blueprintId).")}).strict(),coe=g.object({stackItemId:g.string(),url:g.string().url(),action:g.enum(["create","reuse","update","replace","compose","declined"]),nextStep:g.object({tool:g.literal("ggui_consume"),description:g.string(),example:g.string(),args:g.object({stackItemId:g.string()})}).optional().describe("Recovery hint \u2014 when the pushed contract has actions, points the agent at ggui_consume({stackItemId}) for the inbound action loop. Absent for pure-display pushes.")}),poe=g.discriminatedUnion("kind",[g.object({stackItemId:g.string().describe("Stack item opaque id (UUID) \u2014 returned by ggui_push."),kind:g.literal("replace"),props:g.record(g.string(),g.unknown()).describe("Full replacement props map. New map IS the new state.")}).strict(),g.object({stackItemId:g.string().describe("Stack item opaque id (UUID) \u2014 returned by ggui_push."),kind:g.literal("merge"),patch:g.record(g.string(),g.unknown()).describe("RFC 7396 JSON Merge Patch \u2014 null deletes a key; arrays fully replace.")}).strict()]),doe=g.object({stackItemId:g.string(),updated:g.boolean()})});var QL,eq,tq,F6,rq,nq,oq,iq,aq,sq,lq,uq,cq,pq,dq,fq,hoe,mq,yoe,W6=x(()=>{"use strict";Wn();ux();QL=g.object({type:g.literal("text"),text:g.string()}),eq=g.object({type:g.literal("tool_use"),id:g.string(),name:g.string(),input:g.record(g.string(),g.unknown())}),tq=g.object({type:g.literal("tool_result"),tool_use_id:g.string(),content:g.unknown(),is_error:g.boolean().optional()}),F6=g.discriminatedUnion("type",[QL,eq,tq]),rq=g.object({type:g.literal("text_delta"),text:g.string()}),nq=g.object({type:g.literal("input_json_delta"),partial_json:g.string()}),oq=g.discriminatedUnion("type",[rq,nq]),iq=g.object({type:g.literal("message_start"),message:g.object({id:g.string(),role:g.literal("assistant"),model:g.string().optional()})}),aq=g.object({type:g.literal("content_block_start"),index:g.number().int().nonnegative(),content_block:F6}),sq=g.object({type:g.literal("content_block_delta"),index:g.number().int().nonnegative(),delta:oq}),lq=g.object({type:g.literal("content_block_stop"),index:g.number().int().nonnegative()}),uq=g.object({type:g.literal("message_delta"),delta:g.object({stop_reason:g.enum(["end_turn","max_tokens","tool_use","error"]),stop_sequence:g.string().nullable().optional()}),usage:g.object({input_tokens:g.number().int().nonnegative(),output_tokens:g.number().int().nonnegative()})}),cq=g.object({type:g.literal("message_stop")}),pq=g.object({type:g.literal("ping")}),dq=g.enum(["invalid_request","unauthorized","rate_limited","invoke_in_progress","upstream_error","tool_error","internal"]),fq=g.object({type:g.literal("error"),error:g.object({code:dq,message:g.string(),retryAfterMs:g.number().int().nonnegative().optional()})}),hoe=g.discriminatedUnion("type",[iq,aq,sq,lq,uq,cq,pq,fq]),mq=g.object({role:g.enum(["user","assistant"]),content:g.union([g.string(),g.array(F6)])}),yoe=g.object({message:g.string(),history:g.array(mq).optional(),interfaceContext:Z6.optional(),requestId:g.string().optional()})});var J6=q(($oe,K6)=>{"use strict";K6.exports=function e(t){if(typeof t=="number"&&isNaN(t))throw new Error("NaN is not allowed");if(typeof t=="number"&&!isFinite(t))throw new Error("Infinity is not allowed");return t===null||typeof t!="object"?JSON.stringify(t):t.toJSON instanceof Function?e(t.toJSON()):Array.isArray(t)?`[${t.reduce((n,i,a)=>`${n}${a===0?"":","}${e(i===void 0||typeof i=="symbol"?null:i)}`,"")}]`:`{${Object.keys(t).sort().reduce((o,n)=>{if(t[n]===void 0||typeof t[n]=="symbol")return o;let i=o.length===0?"":",";return`${o}${i}${e(n)}:${e(t[n])}`},"")}}`}});var gq,Y6=x(()=>{"use strict";gq=C(J6(),1)});var X6=x(()=>{"use strict"});var Q6=x(()=>{"use strict"});var hq,_oe,eI=x(()=>{"use strict";hq={"openrouter/ai21/jamba-large-1.7":{id:"openrouter/ai21/jamba-large-1.7",openRouterId:"ai21/jamba-large-1.7",provider:"openrouter",displayName:"AI21: Jamba Large 1.7",tier:"balanced",costs:{inputPer1M:2,outputPer1M:8},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/aion-labs/aion-1.0":{id:"openrouter/aion-labs/aion-1.0",openRouterId:"aion-labs/aion-1.0",provider:"openrouter",displayName:"AionLabs: Aion-1.0",tier:"balanced",costs:{inputPer1M:4,outputPer1M:8},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/aion-labs/aion-1.0-mini":{id:"openrouter/aion-labs/aion-1.0-mini",openRouterId:"aion-labs/aion-1.0-mini",provider:"openrouter",displayName:"AionLabs: Aion-1.0-Mini",tier:"fast",costs:{inputPer1M:.7,outputPer1M:1.4},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/aion-labs/aion-2.0":{id:"openrouter/aion-labs/aion-2.0",openRouterId:"aion-labs/aion-2.0",provider:"openrouter",displayName:"AionLabs: Aion-2.0",tier:"fast",costs:{inputPer1M:.8,outputPer1M:1.6},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/aion-labs/aion-rp-llama-3.1-8b":{id:"openrouter/aion-labs/aion-rp-llama-3.1-8b",openRouterId:"aion-labs/aion-rp-llama-3.1-8b",provider:"openrouter",displayName:"AionLabs: Aion-RP 1.0 (8B)",tier:"fast",costs:{inputPer1M:.8,outputPer1M:1.6},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/alfredpros/codellama-7b-instruct-solidity":{id:"openrouter/alfredpros/codellama-7b-instruct-solidity",openRouterId:"alfredpros/codellama-7b-instruct-solidity",provider:"openrouter",displayName:"AlfredPros: CodeLLaMa 7B Instruct Solidity",tier:"fast",costs:{inputPer1M:.8,outputPer1M:1.2},maxTokens:4096,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/alibaba/tongyi-deepresearch-30b-a3b":{id:"openrouter/alibaba/tongyi-deepresearch-30b-a3b",openRouterId:"alibaba/tongyi-deepresearch-30b-a3b",provider:"openrouter",displayName:"Tongyi DeepResearch 30B A3B",tier:"fast",costs:{inputPer1M:.09,outputPer1M:.45},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/allenai/olmo-2-0325-32b-instruct":{id:"openrouter/allenai/olmo-2-0325-32b-instruct",openRouterId:"allenai/olmo-2-0325-32b-instruct",provider:"openrouter",displayName:"AllenAI: Olmo 2 32B Instruct",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.2},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/allenai/olmo-3-32b-think":{id:"openrouter/allenai/olmo-3-32b-think",openRouterId:"allenai/olmo-3-32b-think",provider:"openrouter",displayName:"AllenAI: Olmo 3 32B Think",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.5},maxTokens:65536,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/allenai/olmo-3.1-32b-instruct":{id:"openrouter/allenai/olmo-3.1-32b-instruct",openRouterId:"allenai/olmo-3.1-32b-instruct",provider:"openrouter",displayName:"AllenAI: Olmo 3.1 32B Instruct",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.6},maxTokens:65536,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/allenai/olmo-3.1-32b-think":{id:"openrouter/allenai/olmo-3.1-32b-think",openRouterId:"allenai/olmo-3.1-32b-think",provider:"openrouter",displayName:"AllenAI: Olmo 3.1 32B Think",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.5},maxTokens:65536,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/alpindale/goliath-120b":{id:"openrouter/alpindale/goliath-120b",openRouterId:"alpindale/goliath-120b",provider:"openrouter",displayName:"Goliath 120B",tier:"balanced",costs:{inputPer1M:3.75,outputPer1M:7.5},maxTokens:6144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/amazon/nova-2-lite-v1":{id:"openrouter/amazon/nova-2-lite-v1",openRouterId:"amazon/nova-2-lite-v1",provider:"openrouter",displayName:"Amazon: Nova 2 Lite",tier:"fast",costs:{inputPer1M:.3,outputPer1M:2.5},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/amazon/nova-lite-v1":{id:"openrouter/amazon/nova-lite-v1",openRouterId:"amazon/nova-lite-v1",provider:"openrouter",displayName:"Amazon: Nova Lite 1.0",tier:"fast",costs:{inputPer1M:.06,outputPer1M:.24},maxTokens:3e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/amazon/nova-micro-v1":{id:"openrouter/amazon/nova-micro-v1",openRouterId:"amazon/nova-micro-v1",provider:"openrouter",displayName:"Amazon: Nova Micro 1.0",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.14},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/amazon/nova-premier-v1":{id:"openrouter/amazon/nova-premier-v1",openRouterId:"amazon/nova-premier-v1",provider:"openrouter",displayName:"Amazon: Nova Premier 1.0",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:12.5},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/amazon/nova-pro-v1":{id:"openrouter/amazon/nova-pro-v1",openRouterId:"amazon/nova-pro-v1",provider:"openrouter",displayName:"Amazon: Nova Pro 1.0",tier:"fast",costs:{inputPer1M:.8,outputPer1M:3.2},maxTokens:3e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/anthracite-org/magnum-v4-72b":{id:"openrouter/anthracite-org/magnum-v4-72b",openRouterId:"anthracite-org/magnum-v4-72b",provider:"openrouter",displayName:"Magnum v4 72B",tier:"balanced",costs:{inputPer1M:3,outputPer1M:5},maxTokens:16384,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/anthropic/claude-3-haiku":{id:"openrouter/anthropic/claude-3-haiku",openRouterId:"anthropic/claude-3-haiku",provider:"openrouter",displayName:"Anthropic: Claude 3 Haiku",tier:"fast",costs:{inputPer1M:.25,outputPer1M:1.25},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/anthropic/claude-3.5-haiku":{id:"openrouter/anthropic/claude-3.5-haiku",openRouterId:"anthropic/claude-3.5-haiku",provider:"openrouter",displayName:"Anthropic: Claude 3.5 Haiku",tier:"fast",costs:{inputPer1M:.8,outputPer1M:4},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/anthropic/claude-3.5-sonnet":{id:"openrouter/anthropic/claude-3.5-sonnet",openRouterId:"anthropic/claude-3.5-sonnet",provider:"openrouter",displayName:"Anthropic: Claude 3.5 Sonnet",tier:"premium",costs:{inputPer1M:6,outputPer1M:30},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-3.7-sonnet":{id:"openrouter/anthropic/claude-3.7-sonnet",openRouterId:"anthropic/claude-3.7-sonnet",provider:"openrouter",displayName:"Anthropic: Claude 3.7 Sonnet",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-3.7-sonnet:thinking":{id:"openrouter/anthropic/claude-3.7-sonnet:thinking",openRouterId:"anthropic/claude-3.7-sonnet:thinking",provider:"openrouter",displayName:"Anthropic: Claude 3.7 Sonnet (thinking)",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-haiku-4.5":{id:"openrouter/anthropic/claude-haiku-4.5",openRouterId:"anthropic/claude-haiku-4.5",provider:"openrouter",displayName:"Anthropic: Claude Haiku 4.5",tier:"balanced",costs:{inputPer1M:1,outputPer1M:5},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/anthropic/claude-opus-4":{id:"openrouter/anthropic/claude-opus-4",openRouterId:"anthropic/claude-opus-4",provider:"openrouter",displayName:"Anthropic: Claude Opus 4",tier:"premium",costs:{inputPer1M:15,outputPer1M:75},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-opus-4.1":{id:"openrouter/anthropic/claude-opus-4.1",openRouterId:"anthropic/claude-opus-4.1",provider:"openrouter",displayName:"Anthropic: Claude Opus 4.1",tier:"premium",costs:{inputPer1M:15,outputPer1M:75},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-opus-4.5":{id:"openrouter/anthropic/claude-opus-4.5",openRouterId:"anthropic/claude-opus-4.5",provider:"openrouter",displayName:"Anthropic: Claude Opus 4.5",tier:"balanced",costs:{inputPer1M:5,outputPer1M:25},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-opus-4.6":{id:"openrouter/anthropic/claude-opus-4.6",openRouterId:"anthropic/claude-opus-4.6",provider:"openrouter",displayName:"Anthropic: Claude Opus 4.6",tier:"balanced",costs:{inputPer1M:5,outputPer1M:25},maxTokens:1e6,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-sonnet-4":{id:"openrouter/anthropic/claude-sonnet-4",openRouterId:"anthropic/claude-sonnet-4",provider:"openrouter",displayName:"Anthropic: Claude Sonnet 4",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:2e5,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-sonnet-4.5":{id:"openrouter/anthropic/claude-sonnet-4.5",openRouterId:"anthropic/claude-sonnet-4.5",provider:"openrouter",displayName:"Anthropic: Claude Sonnet 4.5",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:1e6,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/anthropic/claude-sonnet-4.6":{id:"openrouter/anthropic/claude-sonnet-4.6",openRouterId:"anthropic/claude-sonnet-4.6",provider:"openrouter",displayName:"Anthropic: Claude Sonnet 4.6",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:1e6,supportsTools:!0,supportsCaching:!0,supportsThinking:!0},"openrouter/arcee-ai/coder-large":{id:"openrouter/arcee-ai/coder-large",openRouterId:"arcee-ai/coder-large",provider:"openrouter",displayName:"Arcee AI: Coder Large",tier:"fast",costs:{inputPer1M:.5,outputPer1M:.8},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/arcee-ai/maestro-reasoning":{id:"openrouter/arcee-ai/maestro-reasoning",openRouterId:"arcee-ai/maestro-reasoning",provider:"openrouter",displayName:"Arcee AI: Maestro Reasoning",tier:"fast",costs:{inputPer1M:.9,outputPer1M:3.3},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/arcee-ai/spotlight":{id:"openrouter/arcee-ai/spotlight",openRouterId:"arcee-ai/spotlight",provider:"openrouter",displayName:"Arcee AI: Spotlight",tier:"fast",costs:{inputPer1M:.18,outputPer1M:.18},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/arcee-ai/trinity-mini":{id:"openrouter/arcee-ai/trinity-mini",openRouterId:"arcee-ai/trinity-mini",provider:"openrouter",displayName:"Arcee AI: Trinity Mini",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.15},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/arcee-ai/virtuoso-large":{id:"openrouter/arcee-ai/virtuoso-large",openRouterId:"arcee-ai/virtuoso-large",provider:"openrouter",displayName:"Arcee AI: Virtuoso Large",tier:"fast",costs:{inputPer1M:.75,outputPer1M:1.2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/baidu/ernie-4.5-21b-a3b":{id:"openrouter/baidu/ernie-4.5-21b-a3b",openRouterId:"baidu/ernie-4.5-21b-a3b",provider:"openrouter",displayName:"Baidu: ERNIE 4.5 21B A3B",tier:"fast",costs:{inputPer1M:.07,outputPer1M:.28},maxTokens:12e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/baidu/ernie-4.5-21b-a3b-thinking":{id:"openrouter/baidu/ernie-4.5-21b-a3b-thinking",openRouterId:"baidu/ernie-4.5-21b-a3b-thinking",provider:"openrouter",displayName:"Baidu: ERNIE 4.5 21B A3B Thinking",tier:"fast",costs:{inputPer1M:.07,outputPer1M:.28},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/baidu/ernie-4.5-300b-a47b":{id:"openrouter/baidu/ernie-4.5-300b-a47b",openRouterId:"baidu/ernie-4.5-300b-a47b",provider:"openrouter",displayName:"Baidu: ERNIE 4.5 300B A47B ",tier:"fast",costs:{inputPer1M:.28,outputPer1M:1.1},maxTokens:123e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/baidu/ernie-4.5-vl-28b-a3b":{id:"openrouter/baidu/ernie-4.5-vl-28b-a3b",openRouterId:"baidu/ernie-4.5-vl-28b-a3b",provider:"openrouter",displayName:"Baidu: ERNIE 4.5 VL 28B A3B",tier:"fast",costs:{inputPer1M:.14,outputPer1M:.56},maxTokens:3e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/baidu/ernie-4.5-vl-424b-a47b":{id:"openrouter/baidu/ernie-4.5-vl-424b-a47b",openRouterId:"baidu/ernie-4.5-vl-424b-a47b",provider:"openrouter",displayName:"Baidu: ERNIE 4.5 VL 424B A47B ",tier:"fast",costs:{inputPer1M:.42,outputPer1M:1.25},maxTokens:123e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/bytedance-seed/seed-1.6":{id:"openrouter/bytedance-seed/seed-1.6",openRouterId:"bytedance-seed/seed-1.6",provider:"openrouter",displayName:"ByteDance Seed: Seed 1.6",tier:"fast",costs:{inputPer1M:.25,outputPer1M:2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/bytedance-seed/seed-1.6-flash":{id:"openrouter/bytedance-seed/seed-1.6-flash",openRouterId:"bytedance-seed/seed-1.6-flash",provider:"openrouter",displayName:"ByteDance Seed: Seed 1.6 Flash",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.3},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/bytedance-seed/seed-2.0-lite":{id:"openrouter/bytedance-seed/seed-2.0-lite",openRouterId:"bytedance-seed/seed-2.0-lite",provider:"openrouter",displayName:"ByteDance Seed: Seed-2.0-Lite",tier:"fast",costs:{inputPer1M:.25,outputPer1M:2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/bytedance-seed/seed-2.0-mini":{id:"openrouter/bytedance-seed/seed-2.0-mini",openRouterId:"bytedance-seed/seed-2.0-mini",provider:"openrouter",displayName:"ByteDance Seed: Seed-2.0-Mini",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.4},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/bytedance/ui-tars-1.5-7b":{id:"openrouter/bytedance/ui-tars-1.5-7b",openRouterId:"bytedance/ui-tars-1.5-7b",provider:"openrouter",displayName:"ByteDance: UI-TARS 7B ",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.2},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/cohere/command-a":{id:"openrouter/cohere/command-a",openRouterId:"cohere/command-a",provider:"openrouter",displayName:"Cohere: Command A",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/cohere/command-r-08-2024":{id:"openrouter/cohere/command-r-08-2024",openRouterId:"cohere/command-r-08-2024",provider:"openrouter",displayName:"Cohere: Command R (08-2024)",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/cohere/command-r-plus-08-2024":{id:"openrouter/cohere/command-r-plus-08-2024",openRouterId:"cohere/command-r-plus-08-2024",provider:"openrouter",displayName:"Cohere: Command R+ (08-2024)",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/cohere/command-r7b-12-2024":{id:"openrouter/cohere/command-r7b-12-2024",openRouterId:"cohere/command-r7b-12-2024",provider:"openrouter",displayName:"Cohere: Command R7B (12-2024)",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.15},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepcogito/cogito-v2.1-671b":{id:"openrouter/deepcogito/cogito-v2.1-671b",openRouterId:"deepcogito/cogito-v2.1-671b",provider:"openrouter",displayName:"Deep Cogito: Cogito v2.1 671B",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:1.25},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-chat":{id:"openrouter/deepseek/deepseek-chat",openRouterId:"deepseek/deepseek-chat",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3",tier:"fast",costs:{inputPer1M:.32,outputPer1M:.89},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-chat-v3-0324":{id:"openrouter/deepseek/deepseek-chat-v3-0324",openRouterId:"deepseek/deepseek-chat-v3-0324",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3 0324",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.77},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-chat-v3.1":{id:"openrouter/deepseek/deepseek-chat-v3.1",openRouterId:"deepseek/deepseek-chat-v3.1",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3.1",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.75},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-r1":{id:"openrouter/deepseek/deepseek-r1",openRouterId:"deepseek/deepseek-r1",provider:"openrouter",displayName:"DeepSeek: R1",tier:"fast",costs:{inputPer1M:.7,outputPer1M:2.5},maxTokens:64e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-r1-0528":{id:"openrouter/deepseek/deepseek-r1-0528",openRouterId:"deepseek/deepseek-r1-0528",provider:"openrouter",displayName:"DeepSeek: R1 0528",tier:"fast",costs:{inputPer1M:.45,outputPer1M:2.15},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-r1-distill-llama-70b":{id:"openrouter/deepseek/deepseek-r1-distill-llama-70b",openRouterId:"deepseek/deepseek-r1-distill-llama-70b",provider:"openrouter",displayName:"DeepSeek: R1 Distill Llama 70B",tier:"fast",costs:{inputPer1M:.7,outputPer1M:.8},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-r1-distill-qwen-32b":{id:"openrouter/deepseek/deepseek-r1-distill-qwen-32b",openRouterId:"deepseek/deepseek-r1-distill-qwen-32b",provider:"openrouter",displayName:"DeepSeek: R1 Distill Qwen 32B",tier:"fast",costs:{inputPer1M:.29,outputPer1M:.29},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-v3.1-terminus":{id:"openrouter/deepseek/deepseek-v3.1-terminus",openRouterId:"deepseek/deepseek-v3.1-terminus",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3.1 Terminus",tier:"fast",costs:{inputPer1M:.21,outputPer1M:.79},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-v3.2":{id:"openrouter/deepseek/deepseek-v3.2",openRouterId:"deepseek/deepseek-v3.2",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3.2",tier:"fast",costs:{inputPer1M:.26,outputPer1M:.38},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-v3.2-exp":{id:"openrouter/deepseek/deepseek-v3.2-exp",openRouterId:"deepseek/deepseek-v3.2-exp",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3.2 Exp",tier:"fast",costs:{inputPer1M:.27,outputPer1M:.41},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/deepseek/deepseek-v3.2-speciale":{id:"openrouter/deepseek/deepseek-v3.2-speciale",openRouterId:"deepseek/deepseek-v3.2-speciale",provider:"openrouter",displayName:"DeepSeek: DeepSeek V3.2 Speciale",tier:"fast",costs:{inputPer1M:.4,outputPer1M:1.2},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/eleutherai/llemma_7b":{id:"openrouter/eleutherai/llemma_7b",openRouterId:"eleutherai/llemma_7b",provider:"openrouter",displayName:"EleutherAI: Llemma 7b",tier:"fast",costs:{inputPer1M:.8,outputPer1M:1.2},maxTokens:4096,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/essentialai/rnj-1-instruct":{id:"openrouter/essentialai/rnj-1-instruct",openRouterId:"essentialai/rnj-1-instruct",provider:"openrouter",displayName:"EssentialAI: Rnj 1 Instruct",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.15},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/google/gemini-2.0-flash-001":{id:"openrouter/google/gemini-2.0-flash-001",openRouterId:"google/gemini-2.0-flash-001",provider:"openrouter",displayName:"Google: Gemini 2.0 Flash",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.4},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.0-flash-lite-001":{id:"openrouter/google/gemini-2.0-flash-lite-001",openRouterId:"google/gemini-2.0-flash-lite-001",provider:"openrouter",displayName:"Google: Gemini 2.0 Flash Lite",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.3},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-flash":{id:"openrouter/google/gemini-2.5-flash",openRouterId:"google/gemini-2.5-flash",provider:"openrouter",displayName:"Google: Gemini 2.5 Flash",tier:"fast",costs:{inputPer1M:.3,outputPer1M:2.5},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-flash-image":{id:"openrouter/google/gemini-2.5-flash-image",openRouterId:"google/gemini-2.5-flash-image",provider:"openrouter",displayName:"Google: Nano Banana (Gemini 2.5 Flash Image)",tier:"fast",costs:{inputPer1M:.3,outputPer1M:2.5},maxTokens:32768,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-flash-lite":{id:"openrouter/google/gemini-2.5-flash-lite",openRouterId:"google/gemini-2.5-flash-lite",provider:"openrouter",displayName:"Google: Gemini 2.5 Flash Lite",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.4},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-flash-lite-preview-09-2025":{id:"openrouter/google/gemini-2.5-flash-lite-preview-09-2025",openRouterId:"google/gemini-2.5-flash-lite-preview-09-2025",provider:"openrouter",displayName:"Google: Gemini 2.5 Flash Lite Preview 09-2025",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.4},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-pro":{id:"openrouter/google/gemini-2.5-pro",openRouterId:"google/gemini-2.5-pro",provider:"openrouter",displayName:"Google: Gemini 2.5 Pro",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-pro-preview":{id:"openrouter/google/gemini-2.5-pro-preview",openRouterId:"google/gemini-2.5-pro-preview",provider:"openrouter",displayName:"Google: Gemini 2.5 Pro Preview 06-05",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-2.5-pro-preview-05-06":{id:"openrouter/google/gemini-2.5-pro-preview-05-06",openRouterId:"google/gemini-2.5-pro-preview-05-06",provider:"openrouter",displayName:"Google: Gemini 2.5 Pro Preview 05-06",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3-flash-preview":{id:"openrouter/google/gemini-3-flash-preview",openRouterId:"google/gemini-3-flash-preview",provider:"openrouter",displayName:"Google: Gemini 3 Flash Preview",tier:"fast",costs:{inputPer1M:.5,outputPer1M:3},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3-pro-image-preview":{id:"openrouter/google/gemini-3-pro-image-preview",openRouterId:"google/gemini-3-pro-image-preview",provider:"openrouter",displayName:"Google: Nano Banana Pro (Gemini 3 Pro Image Preview)",tier:"balanced",costs:{inputPer1M:2,outputPer1M:12},maxTokens:65536,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3-pro-preview":{id:"openrouter/google/gemini-3-pro-preview",openRouterId:"google/gemini-3-pro-preview",provider:"openrouter",displayName:"Google: Gemini 3 Pro Preview",tier:"balanced",costs:{inputPer1M:2,outputPer1M:12},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3.1-flash-image-preview":{id:"openrouter/google/gemini-3.1-flash-image-preview",openRouterId:"google/gemini-3.1-flash-image-preview",provider:"openrouter",displayName:"Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)",tier:"fast",costs:{inputPer1M:.5,outputPer1M:3},maxTokens:65536,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3.1-flash-lite-preview":{id:"openrouter/google/gemini-3.1-flash-lite-preview",openRouterId:"google/gemini-3.1-flash-lite-preview",provider:"openrouter",displayName:"Google: Gemini 3.1 Flash Lite Preview",tier:"fast",costs:{inputPer1M:.25,outputPer1M:1.5},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3.1-pro-preview":{id:"openrouter/google/gemini-3.1-pro-preview",openRouterId:"google/gemini-3.1-pro-preview",provider:"openrouter",displayName:"Google: Gemini 3.1 Pro Preview",tier:"balanced",costs:{inputPer1M:2,outputPer1M:12},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemini-3.1-pro-preview-customtools":{id:"openrouter/google/gemini-3.1-pro-preview-customtools",openRouterId:"google/gemini-3.1-pro-preview-customtools",provider:"openrouter",displayName:"Google: Gemini 3.1 Pro Preview Custom Tools",tier:"balanced",costs:{inputPer1M:2,outputPer1M:12},maxTokens:1048576,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemma-2-27b-it":{id:"openrouter/google/gemma-2-27b-it",openRouterId:"google/gemma-2-27b-it",provider:"openrouter",displayName:"Google: Gemma 2 27B",tier:"fast",costs:{inputPer1M:.65,outputPer1M:.65},maxTokens:8192,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemma-2-9b-it":{id:"openrouter/google/gemma-2-9b-it",openRouterId:"google/gemma-2-9b-it",provider:"openrouter",displayName:"Google: Gemma 2 9B",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.09},maxTokens:8192,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemma-3-12b-it":{id:"openrouter/google/gemma-3-12b-it",openRouterId:"google/gemma-3-12b-it",provider:"openrouter",displayName:"Google: Gemma 3 12B",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.13},maxTokens:131072,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemma-3-27b-it":{id:"openrouter/google/gemma-3-27b-it",openRouterId:"google/gemma-3-27b-it",provider:"openrouter",displayName:"Google: Gemma 3 27B",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.16},maxTokens:131072,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemma-3-4b-it":{id:"openrouter/google/gemma-3-4b-it",openRouterId:"google/gemma-3-4b-it",provider:"openrouter",displayName:"Google: Gemma 3 4B",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.08},maxTokens:131072,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/google/gemma-3n-e4b-it":{id:"openrouter/google/gemma-3n-e4b-it",openRouterId:"google/gemma-3n-e4b-it",provider:"openrouter",displayName:"Google: Gemma 3n 4B",tier:"fast",costs:{inputPer1M:.02,outputPer1M:.04},maxTokens:32768,supportsTools:!0,supportsCaching:!0,supportsThinking:!1},"openrouter/gryphe/mythomax-l2-13b":{id:"openrouter/gryphe/mythomax-l2-13b",openRouterId:"gryphe/mythomax-l2-13b",provider:"openrouter",displayName:"MythoMax 13B",tier:"fast",costs:{inputPer1M:.06,outputPer1M:.06},maxTokens:4096,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/ibm-granite/granite-4.0-h-micro":{id:"openrouter/ibm-granite/granite-4.0-h-micro",openRouterId:"ibm-granite/granite-4.0-h-micro",provider:"openrouter",displayName:"IBM: Granite 4.0 Micro",tier:"fast",costs:{inputPer1M:.02,outputPer1M:.11},maxTokens:131e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/inception/mercury":{id:"openrouter/inception/mercury",openRouterId:"inception/mercury",provider:"openrouter",displayName:"Inception: Mercury",tier:"fast",costs:{inputPer1M:.25,outputPer1M:.75},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/inception/mercury-2":{id:"openrouter/inception/mercury-2",openRouterId:"inception/mercury-2",provider:"openrouter",displayName:"Inception: Mercury 2",tier:"fast",costs:{inputPer1M:.25,outputPer1M:.75},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/inception/mercury-coder":{id:"openrouter/inception/mercury-coder",openRouterId:"inception/mercury-coder",provider:"openrouter",displayName:"Inception: Mercury Coder",tier:"fast",costs:{inputPer1M:.25,outputPer1M:.75},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/inflection/inflection-3-pi":{id:"openrouter/inflection/inflection-3-pi",openRouterId:"inflection/inflection-3-pi",provider:"openrouter",displayName:"Inflection: Inflection 3 Pi",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:8e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/inflection/inflection-3-productivity":{id:"openrouter/inflection/inflection-3-productivity",openRouterId:"inflection/inflection-3-productivity",provider:"openrouter",displayName:"Inflection: Inflection 3 Productivity",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:8e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/kwaipilot/kat-coder-pro":{id:"openrouter/kwaipilot/kat-coder-pro",openRouterId:"kwaipilot/kat-coder-pro",provider:"openrouter",displayName:"Kwaipilot: KAT-Coder-Pro V1",tier:"fast",costs:{inputPer1M:.21,outputPer1M:.83},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/liquid/lfm-2-24b-a2b":{id:"openrouter/liquid/lfm-2-24b-a2b",openRouterId:"liquid/lfm-2-24b-a2b",provider:"openrouter",displayName:"LiquidAI: LFM2-24B-A2B",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.12},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/liquid/lfm-2.2-6b":{id:"openrouter/liquid/lfm-2.2-6b",openRouterId:"liquid/lfm-2.2-6b",provider:"openrouter",displayName:"LiquidAI: LFM2-2.6B",tier:"fast",costs:{inputPer1M:.01,outputPer1M:.02},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/liquid/lfm2-8b-a1b":{id:"openrouter/liquid/lfm2-8b-a1b",openRouterId:"liquid/lfm2-8b-a1b",provider:"openrouter",displayName:"LiquidAI: LFM2-8B-A1B",tier:"fast",costs:{inputPer1M:.01,outputPer1M:.02},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mancer/weaver":{id:"openrouter/mancer/weaver",openRouterId:"mancer/weaver",provider:"openrouter",displayName:"Mancer: Weaver (alpha)",tier:"fast",costs:{inputPer1M:.75,outputPer1M:1},maxTokens:8e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meituan/longcat-flash-chat":{id:"openrouter/meituan/longcat-flash-chat",openRouterId:"meituan/longcat-flash-chat",provider:"openrouter",displayName:"Meituan: LongCat Flash Chat",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.8},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3-70b-instruct":{id:"openrouter/meta-llama/llama-3-70b-instruct",openRouterId:"meta-llama/llama-3-70b-instruct",provider:"openrouter",displayName:"Meta: Llama 3 70B Instruct",tier:"fast",costs:{inputPer1M:.51,outputPer1M:.74},maxTokens:8192,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3-8b-instruct":{id:"openrouter/meta-llama/llama-3-8b-instruct",openRouterId:"meta-llama/llama-3-8b-instruct",provider:"openrouter",displayName:"Meta: Llama 3 8B Instruct",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.04},maxTokens:8192,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.1-405b":{id:"openrouter/meta-llama/llama-3.1-405b",openRouterId:"meta-llama/llama-3.1-405b",provider:"openrouter",displayName:"Meta: Llama 3.1 405B (base)",tier:"balanced",costs:{inputPer1M:4,outputPer1M:4},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.1-70b-instruct":{id:"openrouter/meta-llama/llama-3.1-70b-instruct",openRouterId:"meta-llama/llama-3.1-70b-instruct",provider:"openrouter",displayName:"Meta: Llama 3.1 70B Instruct",tier:"fast",costs:{inputPer1M:.4,outputPer1M:.4},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.1-8b-instruct":{id:"openrouter/meta-llama/llama-3.1-8b-instruct",openRouterId:"meta-llama/llama-3.1-8b-instruct",provider:"openrouter",displayName:"Meta: Llama 3.1 8B Instruct",tier:"fast",costs:{inputPer1M:.02,outputPer1M:.05},maxTokens:16384,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.2-11b-vision-instruct":{id:"openrouter/meta-llama/llama-3.2-11b-vision-instruct",openRouterId:"meta-llama/llama-3.2-11b-vision-instruct",provider:"openrouter",displayName:"Meta: Llama 3.2 11B Vision Instruct",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.05},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.2-1b-instruct":{id:"openrouter/meta-llama/llama-3.2-1b-instruct",openRouterId:"meta-llama/llama-3.2-1b-instruct",provider:"openrouter",displayName:"Meta: Llama 3.2 1B Instruct",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.2},maxTokens:6e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.2-3b-instruct":{id:"openrouter/meta-llama/llama-3.2-3b-instruct",openRouterId:"meta-llama/llama-3.2-3b-instruct",provider:"openrouter",displayName:"Meta: Llama 3.2 3B Instruct",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.34},maxTokens:8e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-3.3-70b-instruct":{id:"openrouter/meta-llama/llama-3.3-70b-instruct",openRouterId:"meta-llama/llama-3.3-70b-instruct",provider:"openrouter",displayName:"Meta: Llama 3.3 70B Instruct",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.32},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-4-maverick":{id:"openrouter/meta-llama/llama-4-maverick",openRouterId:"meta-llama/llama-4-maverick",provider:"openrouter",displayName:"Meta: Llama 4 Maverick",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:1048576,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-4-scout":{id:"openrouter/meta-llama/llama-4-scout",openRouterId:"meta-llama/llama-4-scout",provider:"openrouter",displayName:"Meta: Llama 4 Scout",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.3},maxTokens:327680,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-guard-3-8b":{id:"openrouter/meta-llama/llama-guard-3-8b",openRouterId:"meta-llama/llama-guard-3-8b",provider:"openrouter",displayName:"Llama Guard 3 8B",tier:"fast",costs:{inputPer1M:.02,outputPer1M:.06},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/meta-llama/llama-guard-4-12b":{id:"openrouter/meta-llama/llama-guard-4-12b",openRouterId:"meta-llama/llama-guard-4-12b",provider:"openrouter",displayName:"Meta: Llama Guard 4 12B",tier:"fast",costs:{inputPer1M:.18,outputPer1M:.18},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/microsoft/phi-4":{id:"openrouter/microsoft/phi-4",openRouterId:"microsoft/phi-4",provider:"openrouter",displayName:"Microsoft: Phi 4",tier:"fast",costs:{inputPer1M:.07,outputPer1M:.14},maxTokens:16384,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/microsoft/wizardlm-2-8x22b":{id:"openrouter/microsoft/wizardlm-2-8x22b",openRouterId:"microsoft/wizardlm-2-8x22b",provider:"openrouter",displayName:"WizardLM-2 8x22B",tier:"fast",costs:{inputPer1M:.62,outputPer1M:.62},maxTokens:65535,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-01":{id:"openrouter/minimax/minimax-01",openRouterId:"minimax/minimax-01",provider:"openrouter",displayName:"MiniMax: MiniMax-01",tier:"fast",costs:{inputPer1M:.2,outputPer1M:1.1},maxTokens:1000192,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-m1":{id:"openrouter/minimax/minimax-m1",openRouterId:"minimax/minimax-m1",provider:"openrouter",displayName:"MiniMax: MiniMax M1",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2.2},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-m2":{id:"openrouter/minimax/minimax-m2",openRouterId:"minimax/minimax-m2",provider:"openrouter",displayName:"MiniMax: MiniMax M2",tier:"fast",costs:{inputPer1M:.26,outputPer1M:1},maxTokens:196608,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-m2-her":{id:"openrouter/minimax/minimax-m2-her",openRouterId:"minimax/minimax-m2-her",provider:"openrouter",displayName:"MiniMax: MiniMax M2-her",tier:"fast",costs:{inputPer1M:.3,outputPer1M:1.2},maxTokens:65536,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-m2.1":{id:"openrouter/minimax/minimax-m2.1",openRouterId:"minimax/minimax-m2.1",provider:"openrouter",displayName:"MiniMax: MiniMax M2.1",tier:"fast",costs:{inputPer1M:.27,outputPer1M:.95},maxTokens:196608,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-m2.5":{id:"openrouter/minimax/minimax-m2.5",openRouterId:"minimax/minimax-m2.5",provider:"openrouter",displayName:"MiniMax: MiniMax M2.5",tier:"fast",costs:{inputPer1M:.2,outputPer1M:1.17},maxTokens:196608,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/minimax/minimax-m2.7":{id:"openrouter/minimax/minimax-m2.7",openRouterId:"minimax/minimax-m2.7",provider:"openrouter",displayName:"MiniMax: MiniMax M2.7",tier:"fast",costs:{inputPer1M:.3,outputPer1M:1.2},maxTokens:204800,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/codestral-2508":{id:"openrouter/mistralai/codestral-2508",openRouterId:"mistralai/codestral-2508",provider:"openrouter",displayName:"Mistral: Codestral 2508",tier:"fast",costs:{inputPer1M:.3,outputPer1M:.9},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/devstral-2512":{id:"openrouter/mistralai/devstral-2512",openRouterId:"mistralai/devstral-2512",provider:"openrouter",displayName:"Mistral: Devstral 2 2512",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/devstral-medium":{id:"openrouter/mistralai/devstral-medium",openRouterId:"mistralai/devstral-medium",provider:"openrouter",displayName:"Mistral: Devstral Medium",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/devstral-small":{id:"openrouter/mistralai/devstral-small",openRouterId:"mistralai/devstral-small",provider:"openrouter",displayName:"Mistral: Devstral Small 1.1",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.3},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/ministral-14b-2512":{id:"openrouter/mistralai/ministral-14b-2512",openRouterId:"mistralai/ministral-14b-2512",provider:"openrouter",displayName:"Mistral: Ministral 3 14B 2512",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/ministral-3b-2512":{id:"openrouter/mistralai/ministral-3b-2512",openRouterId:"mistralai/ministral-3b-2512",provider:"openrouter",displayName:"Mistral: Ministral 3 3B 2512",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.1},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/ministral-8b-2512":{id:"openrouter/mistralai/ministral-8b-2512",openRouterId:"mistralai/ministral-8b-2512",provider:"openrouter",displayName:"Mistral: Ministral 3 8B 2512",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.15},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-7b-instruct-v0.1":{id:"openrouter/mistralai/mistral-7b-instruct-v0.1",openRouterId:"mistralai/mistral-7b-instruct-v0.1",provider:"openrouter",displayName:"Mistral: Mistral 7B Instruct v0.1",tier:"fast",costs:{inputPer1M:.11,outputPer1M:.19},maxTokens:2824,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-large":{id:"openrouter/mistralai/mistral-large",openRouterId:"mistralai/mistral-large",provider:"openrouter",displayName:"Mistral Large",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-large-2407":{id:"openrouter/mistralai/mistral-large-2407",openRouterId:"mistralai/mistral-large-2407",provider:"openrouter",displayName:"Mistral Large 2407",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-large-2411":{id:"openrouter/mistralai/mistral-large-2411",openRouterId:"mistralai/mistral-large-2411",provider:"openrouter",displayName:"Mistral Large 2411",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-large-2512":{id:"openrouter/mistralai/mistral-large-2512",openRouterId:"mistralai/mistral-large-2512",provider:"openrouter",displayName:"Mistral: Mistral Large 3 2512",tier:"fast",costs:{inputPer1M:.5,outputPer1M:1.5},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-medium-3":{id:"openrouter/mistralai/mistral-medium-3",openRouterId:"mistralai/mistral-medium-3",provider:"openrouter",displayName:"Mistral: Mistral Medium 3",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-medium-3.1":{id:"openrouter/mistralai/mistral-medium-3.1",openRouterId:"mistralai/mistral-medium-3.1",provider:"openrouter",displayName:"Mistral: Mistral Medium 3.1",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-nemo":{id:"openrouter/mistralai/mistral-nemo",openRouterId:"mistralai/mistral-nemo",provider:"openrouter",displayName:"Mistral: Mistral Nemo",tier:"fast",costs:{inputPer1M:.02,outputPer1M:.04},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-saba":{id:"openrouter/mistralai/mistral-saba",openRouterId:"mistralai/mistral-saba",provider:"openrouter",displayName:"Mistral: Saba",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.6},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-small-24b-instruct-2501":{id:"openrouter/mistralai/mistral-small-24b-instruct-2501",openRouterId:"mistralai/mistral-small-24b-instruct-2501",provider:"openrouter",displayName:"Mistral: Mistral Small 3",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.08},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-small-2603":{id:"openrouter/mistralai/mistral-small-2603",openRouterId:"mistralai/mistral-small-2603",provider:"openrouter",displayName:"Mistral: Mistral Small 4",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-small-3.1-24b-instruct":{id:"openrouter/mistralai/mistral-small-3.1-24b-instruct",openRouterId:"mistralai/mistral-small-3.1-24b-instruct",provider:"openrouter",displayName:"Mistral: Mistral Small 3.1 24B",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.11},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-small-3.2-24b-instruct":{id:"openrouter/mistralai/mistral-small-3.2-24b-instruct",openRouterId:"mistralai/mistral-small-3.2-24b-instruct",provider:"openrouter",displayName:"Mistral: Mistral Small 3.2 24B",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.2},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mistral-small-creative":{id:"openrouter/mistralai/mistral-small-creative",openRouterId:"mistralai/mistral-small-creative",provider:"openrouter",displayName:"Mistral: Mistral Small Creative",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.3},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mixtral-8x22b-instruct":{id:"openrouter/mistralai/mixtral-8x22b-instruct",openRouterId:"mistralai/mixtral-8x22b-instruct",provider:"openrouter",displayName:"Mistral: Mixtral 8x22B Instruct",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:65536,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/mixtral-8x7b-instruct":{id:"openrouter/mistralai/mixtral-8x7b-instruct",openRouterId:"mistralai/mixtral-8x7b-instruct",provider:"openrouter",displayName:"Mistral: Mixtral 8x7B Instruct",tier:"fast",costs:{inputPer1M:.54,outputPer1M:.54},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/pixtral-12b":{id:"openrouter/mistralai/pixtral-12b",openRouterId:"mistralai/pixtral-12b",provider:"openrouter",displayName:"Mistral: Pixtral 12B",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.1},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/pixtral-large-2411":{id:"openrouter/mistralai/pixtral-large-2411",openRouterId:"mistralai/pixtral-large-2411",provider:"openrouter",displayName:"Mistral: Pixtral Large 2411",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/mistralai/voxtral-small-24b-2507":{id:"openrouter/mistralai/voxtral-small-24b-2507",openRouterId:"mistralai/voxtral-small-24b-2507",provider:"openrouter",displayName:"Mistral: Voxtral Small 24B 2507",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.3},maxTokens:32e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/moonshotai/kimi-k2":{id:"openrouter/moonshotai/kimi-k2",openRouterId:"moonshotai/kimi-k2",provider:"openrouter",displayName:"MoonshotAI: Kimi K2 0711",tier:"fast",costs:{inputPer1M:.55,outputPer1M:2.2},maxTokens:131e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/moonshotai/kimi-k2-0905":{id:"openrouter/moonshotai/kimi-k2-0905",openRouterId:"moonshotai/kimi-k2-0905",provider:"openrouter",displayName:"MoonshotAI: Kimi K2 0905",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/moonshotai/kimi-k2-thinking":{id:"openrouter/moonshotai/kimi-k2-thinking",openRouterId:"moonshotai/kimi-k2-thinking",provider:"openrouter",displayName:"MoonshotAI: Kimi K2 Thinking",tier:"fast",costs:{inputPer1M:.47,outputPer1M:2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/moonshotai/kimi-k2.5":{id:"openrouter/moonshotai/kimi-k2.5",openRouterId:"moonshotai/kimi-k2.5",provider:"openrouter",displayName:"MoonshotAI: Kimi K2.5",tier:"fast",costs:{inputPer1M:.45,outputPer1M:2.2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/morph/morph-v3-fast":{id:"openrouter/morph/morph-v3-fast",openRouterId:"morph/morph-v3-fast",provider:"openrouter",displayName:"Morph: Morph V3 Fast",tier:"fast",costs:{inputPer1M:.8,outputPer1M:1.2},maxTokens:81920,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/morph/morph-v3-large":{id:"openrouter/morph/morph-v3-large",openRouterId:"morph/morph-v3-large",provider:"openrouter",displayName:"Morph: Morph V3 Large",tier:"fast",costs:{inputPer1M:.9,outputPer1M:1.9},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nex-agi/deepseek-v3.1-nex-n1":{id:"openrouter/nex-agi/deepseek-v3.1-nex-n1",openRouterId:"nex-agi/deepseek-v3.1-nex-n1",provider:"openrouter",displayName:"Nex AGI: DeepSeek V3.1 Nex N1",tier:"fast",costs:{inputPer1M:.27,outputPer1M:1},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nousresearch/hermes-2-pro-llama-3-8b":{id:"openrouter/nousresearch/hermes-2-pro-llama-3-8b",openRouterId:"nousresearch/hermes-2-pro-llama-3-8b",provider:"openrouter",displayName:"NousResearch: Hermes 2 Pro - Llama-3 8B",tier:"fast",costs:{inputPer1M:.14,outputPer1M:.14},maxTokens:8192,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nousresearch/hermes-3-llama-3.1-405b":{id:"openrouter/nousresearch/hermes-3-llama-3.1-405b",openRouterId:"nousresearch/hermes-3-llama-3.1-405b",provider:"openrouter",displayName:"Nous: Hermes 3 405B Instruct",tier:"balanced",costs:{inputPer1M:1,outputPer1M:1},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nousresearch/hermes-3-llama-3.1-70b":{id:"openrouter/nousresearch/hermes-3-llama-3.1-70b",openRouterId:"nousresearch/hermes-3-llama-3.1-70b",provider:"openrouter",displayName:"Nous: Hermes 3 70B Instruct",tier:"fast",costs:{inputPer1M:.3,outputPer1M:.3},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nousresearch/hermes-4-405b":{id:"openrouter/nousresearch/hermes-4-405b",openRouterId:"nousresearch/hermes-4-405b",provider:"openrouter",displayName:"Nous: Hermes 4 405B",tier:"balanced",costs:{inputPer1M:1,outputPer1M:3},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nousresearch/hermes-4-70b":{id:"openrouter/nousresearch/hermes-4-70b",openRouterId:"nousresearch/hermes-4-70b",provider:"openrouter",displayName:"Nous: Hermes 4 70B",tier:"fast",costs:{inputPer1M:.13,outputPer1M:.4},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/llama-3.1-nemotron-70b-instruct":{id:"openrouter/nvidia/llama-3.1-nemotron-70b-instruct",openRouterId:"nvidia/llama-3.1-nemotron-70b-instruct",provider:"openrouter",displayName:"NVIDIA: Llama 3.1 Nemotron 70B Instruct",tier:"balanced",costs:{inputPer1M:1.2,outputPer1M:1.2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/llama-3.1-nemotron-ultra-253b-v1":{id:"openrouter/nvidia/llama-3.1-nemotron-ultra-253b-v1",openRouterId:"nvidia/llama-3.1-nemotron-ultra-253b-v1",provider:"openrouter",displayName:"NVIDIA: Llama 3.1 Nemotron Ultra 253B v1",tier:"fast",costs:{inputPer1M:.6,outputPer1M:1.8},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/llama-3.3-nemotron-super-49b-v1.5":{id:"openrouter/nvidia/llama-3.3-nemotron-super-49b-v1.5",openRouterId:"nvidia/llama-3.3-nemotron-super-49b-v1.5",provider:"openrouter",displayName:"NVIDIA: Llama 3.3 Nemotron Super 49B V1.5",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.4},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/nemotron-3-nano-30b-a3b":{id:"openrouter/nvidia/nemotron-3-nano-30b-a3b",openRouterId:"nvidia/nemotron-3-nano-30b-a3b",provider:"openrouter",displayName:"NVIDIA: Nemotron 3 Nano 30B A3B",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/nemotron-3-super-120b-a12b":{id:"openrouter/nvidia/nemotron-3-super-120b-a12b",openRouterId:"nvidia/nemotron-3-super-120b-a12b",provider:"openrouter",displayName:"NVIDIA: Nemotron 3 Super",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.5},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/nemotron-nano-12b-v2-vl":{id:"openrouter/nvidia/nemotron-nano-12b-v2-vl",openRouterId:"nvidia/nemotron-nano-12b-v2-vl",provider:"openrouter",displayName:"NVIDIA: Nemotron Nano 12B 2 VL",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.6},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/nvidia/nemotron-nano-9b-v2":{id:"openrouter/nvidia/nemotron-nano-9b-v2",openRouterId:"nvidia/nemotron-nano-9b-v2",provider:"openrouter",displayName:"NVIDIA: Nemotron Nano 9B V2",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.16},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-3.5-turbo":{id:"openrouter/openai/gpt-3.5-turbo",openRouterId:"openai/gpt-3.5-turbo",provider:"openrouter",displayName:"OpenAI: GPT-3.5 Turbo",tier:"fast",costs:{inputPer1M:.5,outputPer1M:1.5},maxTokens:16385,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-3.5-turbo-0613":{id:"openrouter/openai/gpt-3.5-turbo-0613",openRouterId:"openai/gpt-3.5-turbo-0613",provider:"openrouter",displayName:"OpenAI: GPT-3.5 Turbo (older v0613)",tier:"balanced",costs:{inputPer1M:1,outputPer1M:2},maxTokens:4095,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-3.5-turbo-16k":{id:"openrouter/openai/gpt-3.5-turbo-16k",openRouterId:"openai/gpt-3.5-turbo-16k",provider:"openrouter",displayName:"OpenAI: GPT-3.5 Turbo 16k",tier:"balanced",costs:{inputPer1M:3,outputPer1M:4},maxTokens:16385,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-3.5-turbo-instruct":{id:"openrouter/openai/gpt-3.5-turbo-instruct",openRouterId:"openai/gpt-3.5-turbo-instruct",provider:"openrouter",displayName:"OpenAI: GPT-3.5 Turbo Instruct",tier:"balanced",costs:{inputPer1M:1.5,outputPer1M:2},maxTokens:4095,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4":{id:"openrouter/openai/gpt-4",openRouterId:"openai/gpt-4",provider:"openrouter",displayName:"OpenAI: GPT-4",tier:"premium",costs:{inputPer1M:30,outputPer1M:60},maxTokens:8191,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4-0314":{id:"openrouter/openai/gpt-4-0314",openRouterId:"openai/gpt-4-0314",provider:"openrouter",displayName:"OpenAI: GPT-4 (older v0314)",tier:"premium",costs:{inputPer1M:30,outputPer1M:60},maxTokens:8191,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4-1106-preview":{id:"openrouter/openai/gpt-4-1106-preview",openRouterId:"openai/gpt-4-1106-preview",provider:"openrouter",displayName:"OpenAI: GPT-4 Turbo (older v1106)",tier:"premium",costs:{inputPer1M:10,outputPer1M:30},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4-turbo":{id:"openrouter/openai/gpt-4-turbo",openRouterId:"openai/gpt-4-turbo",provider:"openrouter",displayName:"OpenAI: GPT-4 Turbo",tier:"premium",costs:{inputPer1M:10,outputPer1M:30},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4-turbo-preview":{id:"openrouter/openai/gpt-4-turbo-preview",openRouterId:"openai/gpt-4-turbo-preview",provider:"openrouter",displayName:"OpenAI: GPT-4 Turbo Preview",tier:"premium",costs:{inputPer1M:10,outputPer1M:30},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4.1":{id:"openrouter/openai/gpt-4.1",openRouterId:"openai/gpt-4.1",provider:"openrouter",displayName:"OpenAI: GPT-4.1",tier:"balanced",costs:{inputPer1M:2,outputPer1M:8},maxTokens:1047576,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4.1-mini":{id:"openrouter/openai/gpt-4.1-mini",openRouterId:"openai/gpt-4.1-mini",provider:"openrouter",displayName:"OpenAI: GPT-4.1 Mini",tier:"fast",costs:{inputPer1M:.4,outputPer1M:1.6},maxTokens:1047576,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4.1-nano":{id:"openrouter/openai/gpt-4.1-nano",openRouterId:"openai/gpt-4.1-nano",provider:"openrouter",displayName:"OpenAI: GPT-4.1 Nano",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.4},maxTokens:1047576,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o":{id:"openrouter/openai/gpt-4o",openRouterId:"openai/gpt-4o",provider:"openrouter",displayName:"OpenAI: GPT-4o",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-2024-05-13":{id:"openrouter/openai/gpt-4o-2024-05-13",openRouterId:"openai/gpt-4o-2024-05-13",provider:"openrouter",displayName:"OpenAI: GPT-4o (2024-05-13)",tier:"balanced",costs:{inputPer1M:5,outputPer1M:15},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-2024-08-06":{id:"openrouter/openai/gpt-4o-2024-08-06",openRouterId:"openai/gpt-4o-2024-08-06",provider:"openrouter",displayName:"OpenAI: GPT-4o (2024-08-06)",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-2024-11-20":{id:"openrouter/openai/gpt-4o-2024-11-20",openRouterId:"openai/gpt-4o-2024-11-20",provider:"openrouter",displayName:"OpenAI: GPT-4o (2024-11-20)",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-audio-preview":{id:"openrouter/openai/gpt-4o-audio-preview",openRouterId:"openai/gpt-4o-audio-preview",provider:"openrouter",displayName:"OpenAI: GPT-4o Audio",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-mini":{id:"openrouter/openai/gpt-4o-mini",openRouterId:"openai/gpt-4o-mini",provider:"openrouter",displayName:"OpenAI: GPT-4o-mini",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-mini-2024-07-18":{id:"openrouter/openai/gpt-4o-mini-2024-07-18",openRouterId:"openai/gpt-4o-mini-2024-07-18",provider:"openrouter",displayName:"OpenAI: GPT-4o-mini (2024-07-18)",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-mini-search-preview":{id:"openrouter/openai/gpt-4o-mini-search-preview",openRouterId:"openai/gpt-4o-mini-search-preview",provider:"openrouter",displayName:"OpenAI: GPT-4o-mini Search Preview",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o-search-preview":{id:"openrouter/openai/gpt-4o-search-preview",openRouterId:"openai/gpt-4o-search-preview",provider:"openrouter",displayName:"OpenAI: GPT-4o Search Preview",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-4o:extended":{id:"openrouter/openai/gpt-4o:extended",openRouterId:"openai/gpt-4o:extended",provider:"openrouter",displayName:"OpenAI: GPT-4o (extended)",tier:"premium",costs:{inputPer1M:6,outputPer1M:18},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5":{id:"openrouter/openai/gpt-5",openRouterId:"openai/gpt-5",provider:"openrouter",displayName:"OpenAI: GPT-5",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-chat":{id:"openrouter/openai/gpt-5-chat",openRouterId:"openai/gpt-5-chat",provider:"openrouter",displayName:"OpenAI: GPT-5 Chat",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-codex":{id:"openrouter/openai/gpt-5-codex",openRouterId:"openai/gpt-5-codex",provider:"openrouter",displayName:"OpenAI: GPT-5 Codex",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-image":{id:"openrouter/openai/gpt-5-image",openRouterId:"openai/gpt-5-image",provider:"openrouter",displayName:"OpenAI: GPT-5 Image",tier:"premium",costs:{inputPer1M:10,outputPer1M:10},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-image-mini":{id:"openrouter/openai/gpt-5-image-mini",openRouterId:"openai/gpt-5-image-mini",provider:"openrouter",displayName:"OpenAI: GPT-5 Image Mini",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:2},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-mini":{id:"openrouter/openai/gpt-5-mini",openRouterId:"openai/gpt-5-mini",provider:"openrouter",displayName:"OpenAI: GPT-5 Mini",tier:"fast",costs:{inputPer1M:.25,outputPer1M:2},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-nano":{id:"openrouter/openai/gpt-5-nano",openRouterId:"openai/gpt-5-nano",provider:"openrouter",displayName:"OpenAI: GPT-5 Nano",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.4},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5-pro":{id:"openrouter/openai/gpt-5-pro",openRouterId:"openai/gpt-5-pro",provider:"openrouter",displayName:"OpenAI: GPT-5 Pro",tier:"premium",costs:{inputPer1M:15,outputPer1M:120},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.1":{id:"openrouter/openai/gpt-5.1",openRouterId:"openai/gpt-5.1",provider:"openrouter",displayName:"OpenAI: GPT-5.1",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.1-chat":{id:"openrouter/openai/gpt-5.1-chat",openRouterId:"openai/gpt-5.1-chat",provider:"openrouter",displayName:"OpenAI: GPT-5.1 Chat",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.1-codex":{id:"openrouter/openai/gpt-5.1-codex",openRouterId:"openai/gpt-5.1-codex",provider:"openrouter",displayName:"OpenAI: GPT-5.1-Codex",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.1-codex-max":{id:"openrouter/openai/gpt-5.1-codex-max",openRouterId:"openai/gpt-5.1-codex-max",provider:"openrouter",displayName:"OpenAI: GPT-5.1-Codex-Max",tier:"balanced",costs:{inputPer1M:1.25,outputPer1M:10},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.1-codex-mini":{id:"openrouter/openai/gpt-5.1-codex-mini",openRouterId:"openai/gpt-5.1-codex-mini",provider:"openrouter",displayName:"OpenAI: GPT-5.1-Codex-Mini",tier:"fast",costs:{inputPer1M:.25,outputPer1M:2},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.2":{id:"openrouter/openai/gpt-5.2",openRouterId:"openai/gpt-5.2",provider:"openrouter",displayName:"OpenAI: GPT-5.2",tier:"balanced",costs:{inputPer1M:1.75,outputPer1M:14},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.2-chat":{id:"openrouter/openai/gpt-5.2-chat",openRouterId:"openai/gpt-5.2-chat",provider:"openrouter",displayName:"OpenAI: GPT-5.2 Chat",tier:"balanced",costs:{inputPer1M:1.75,outputPer1M:14},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.2-codex":{id:"openrouter/openai/gpt-5.2-codex",openRouterId:"openai/gpt-5.2-codex",provider:"openrouter",displayName:"OpenAI: GPT-5.2-Codex",tier:"balanced",costs:{inputPer1M:1.75,outputPer1M:14},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.2-pro":{id:"openrouter/openai/gpt-5.2-pro",openRouterId:"openai/gpt-5.2-pro",provider:"openrouter",displayName:"OpenAI: GPT-5.2 Pro",tier:"premium",costs:{inputPer1M:21,outputPer1M:168},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.3-chat":{id:"openrouter/openai/gpt-5.3-chat",openRouterId:"openai/gpt-5.3-chat",provider:"openrouter",displayName:"OpenAI: GPT-5.3 Chat",tier:"balanced",costs:{inputPer1M:1.75,outputPer1M:14},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.3-codex":{id:"openrouter/openai/gpt-5.3-codex",openRouterId:"openai/gpt-5.3-codex",provider:"openrouter",displayName:"OpenAI: GPT-5.3-Codex",tier:"balanced",costs:{inputPer1M:1.75,outputPer1M:14},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.4":{id:"openrouter/openai/gpt-5.4",openRouterId:"openai/gpt-5.4",provider:"openrouter",displayName:"OpenAI: GPT-5.4",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:15},maxTokens:105e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.4-mini":{id:"openrouter/openai/gpt-5.4-mini",openRouterId:"openai/gpt-5.4-mini",provider:"openrouter",displayName:"OpenAI: GPT-5.4 Mini",tier:"fast",costs:{inputPer1M:.75,outputPer1M:4.5},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.4-nano":{id:"openrouter/openai/gpt-5.4-nano",openRouterId:"openai/gpt-5.4-nano",provider:"openrouter",displayName:"OpenAI: GPT-5.4 Nano",tier:"fast",costs:{inputPer1M:.2,outputPer1M:1.25},maxTokens:4e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-5.4-pro":{id:"openrouter/openai/gpt-5.4-pro",openRouterId:"openai/gpt-5.4-pro",provider:"openrouter",displayName:"OpenAI: GPT-5.4 Pro",tier:"premium",costs:{inputPer1M:30,outputPer1M:180},maxTokens:105e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-audio":{id:"openrouter/openai/gpt-audio",openRouterId:"openai/gpt-audio",provider:"openrouter",displayName:"OpenAI: GPT Audio",tier:"balanced",costs:{inputPer1M:2.5,outputPer1M:10},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-audio-mini":{id:"openrouter/openai/gpt-audio-mini",openRouterId:"openai/gpt-audio-mini",provider:"openrouter",displayName:"OpenAI: GPT Audio Mini",tier:"fast",costs:{inputPer1M:.6,outputPer1M:2.4},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-oss-120b":{id:"openrouter/openai/gpt-oss-120b",openRouterId:"openai/gpt-oss-120b",provider:"openrouter",displayName:"OpenAI: gpt-oss-120b",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.19},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-oss-20b":{id:"openrouter/openai/gpt-oss-20b",openRouterId:"openai/gpt-oss-20b",provider:"openrouter",displayName:"OpenAI: gpt-oss-20b",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.11},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/gpt-oss-safeguard-20b":{id:"openrouter/openai/gpt-oss-safeguard-20b",openRouterId:"openai/gpt-oss-safeguard-20b",provider:"openrouter",displayName:"OpenAI: gpt-oss-safeguard-20b",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.3},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o1":{id:"openrouter/openai/o1",openRouterId:"openai/o1",provider:"openrouter",displayName:"OpenAI: o1",tier:"premium",costs:{inputPer1M:15,outputPer1M:60},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o1-pro":{id:"openrouter/openai/o1-pro",openRouterId:"openai/o1-pro",provider:"openrouter",displayName:"OpenAI: o1-pro",tier:"premium",costs:{inputPer1M:150,outputPer1M:600},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o3":{id:"openrouter/openai/o3",openRouterId:"openai/o3",provider:"openrouter",displayName:"OpenAI: o3",tier:"balanced",costs:{inputPer1M:2,outputPer1M:8},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o3-deep-research":{id:"openrouter/openai/o3-deep-research",openRouterId:"openai/o3-deep-research",provider:"openrouter",displayName:"OpenAI: o3 Deep Research",tier:"premium",costs:{inputPer1M:10,outputPer1M:40},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o3-mini":{id:"openrouter/openai/o3-mini",openRouterId:"openai/o3-mini",provider:"openrouter",displayName:"OpenAI: o3 Mini",tier:"balanced",costs:{inputPer1M:1.1,outputPer1M:4.4},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o3-mini-high":{id:"openrouter/openai/o3-mini-high",openRouterId:"openai/o3-mini-high",provider:"openrouter",displayName:"OpenAI: o3 Mini High",tier:"balanced",costs:{inputPer1M:1.1,outputPer1M:4.4},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o3-pro":{id:"openrouter/openai/o3-pro",openRouterId:"openai/o3-pro",provider:"openrouter",displayName:"OpenAI: o3 Pro",tier:"premium",costs:{inputPer1M:20,outputPer1M:80},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o4-mini":{id:"openrouter/openai/o4-mini",openRouterId:"openai/o4-mini",provider:"openrouter",displayName:"OpenAI: o4 Mini",tier:"balanced",costs:{inputPer1M:1.1,outputPer1M:4.4},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o4-mini-deep-research":{id:"openrouter/openai/o4-mini-deep-research",openRouterId:"openai/o4-mini-deep-research",provider:"openrouter",displayName:"OpenAI: o4 Mini Deep Research",tier:"balanced",costs:{inputPer1M:2,outputPer1M:8},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openai/o4-mini-high":{id:"openrouter/openai/o4-mini-high",openRouterId:"openai/o4-mini-high",provider:"openrouter",displayName:"OpenAI: o4 Mini High",tier:"balanced",costs:{inputPer1M:1.1,outputPer1M:4.4},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openrouter/auto":{id:"openrouter/openrouter/auto",openRouterId:"openrouter/auto",provider:"openrouter",displayName:"Auto Router",tier:"fast",costs:{inputPer1M:-1e6,outputPer1M:-1e6},maxTokens:2e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/openrouter/bodybuilder":{id:"openrouter/openrouter/bodybuilder",openRouterId:"openrouter/bodybuilder",provider:"openrouter",displayName:"Body Builder (beta)",tier:"fast",costs:{inputPer1M:-1e6,outputPer1M:-1e6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/perplexity/sonar":{id:"openrouter/perplexity/sonar",openRouterId:"perplexity/sonar",provider:"openrouter",displayName:"Perplexity: Sonar",tier:"balanced",costs:{inputPer1M:1,outputPer1M:1},maxTokens:127072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/perplexity/sonar-deep-research":{id:"openrouter/perplexity/sonar-deep-research",openRouterId:"perplexity/sonar-deep-research",provider:"openrouter",displayName:"Perplexity: Sonar Deep Research",tier:"balanced",costs:{inputPer1M:2,outputPer1M:8},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/perplexity/sonar-pro":{id:"openrouter/perplexity/sonar-pro",openRouterId:"perplexity/sonar-pro",provider:"openrouter",displayName:"Perplexity: Sonar Pro",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/perplexity/sonar-pro-search":{id:"openrouter/perplexity/sonar-pro-search",openRouterId:"perplexity/sonar-pro-search",provider:"openrouter",displayName:"Perplexity: Sonar Pro Search",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:2e5,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/perplexity/sonar-reasoning-pro":{id:"openrouter/perplexity/sonar-reasoning-pro",openRouterId:"perplexity/sonar-reasoning-pro",provider:"openrouter",displayName:"Perplexity: Sonar Reasoning Pro",tier:"balanced",costs:{inputPer1M:2,outputPer1M:8},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/prime-intellect/intellect-3":{id:"openrouter/prime-intellect/intellect-3",openRouterId:"prime-intellect/intellect-3",provider:"openrouter",displayName:"Prime Intellect: INTELLECT-3",tier:"fast",costs:{inputPer1M:.2,outputPer1M:1.1},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-2.5-72b-instruct":{id:"openrouter/qwen/qwen-2.5-72b-instruct",openRouterId:"qwen/qwen-2.5-72b-instruct",provider:"openrouter",displayName:"Qwen2.5 72B Instruct",tier:"fast",costs:{inputPer1M:.12,outputPer1M:.39},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-2.5-7b-instruct":{id:"openrouter/qwen/qwen-2.5-7b-instruct",openRouterId:"qwen/qwen-2.5-7b-instruct",provider:"openrouter",displayName:"Qwen: Qwen2.5 7B Instruct",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.1},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-2.5-coder-32b-instruct":{id:"openrouter/qwen/qwen-2.5-coder-32b-instruct",openRouterId:"qwen/qwen-2.5-coder-32b-instruct",provider:"openrouter",displayName:"Qwen2.5 Coder 32B Instruct",tier:"fast",costs:{inputPer1M:.66,outputPer1M:1},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-2.5-vl-7b-instruct":{id:"openrouter/qwen/qwen-2.5-vl-7b-instruct",openRouterId:"qwen/qwen-2.5-vl-7b-instruct",provider:"openrouter",displayName:"Qwen: Qwen2.5-VL 7B Instruct",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.2},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-max":{id:"openrouter/qwen/qwen-max",openRouterId:"qwen/qwen-max",provider:"openrouter",displayName:"Qwen: Qwen-Max ",tier:"balanced",costs:{inputPer1M:1.04,outputPer1M:4.16},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-plus":{id:"openrouter/qwen/qwen-plus",openRouterId:"qwen/qwen-plus",provider:"openrouter",displayName:"Qwen: Qwen-Plus",tier:"fast",costs:{inputPer1M:.26,outputPer1M:.78},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-plus-2025-07-28":{id:"openrouter/qwen/qwen-plus-2025-07-28",openRouterId:"qwen/qwen-plus-2025-07-28",provider:"openrouter",displayName:"Qwen: Qwen Plus 0728",tier:"fast",costs:{inputPer1M:.26,outputPer1M:.78},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-plus-2025-07-28:thinking":{id:"openrouter/qwen/qwen-plus-2025-07-28:thinking",openRouterId:"qwen/qwen-plus-2025-07-28:thinking",provider:"openrouter",displayName:"Qwen: Qwen Plus 0728 (thinking)",tier:"fast",costs:{inputPer1M:.26,outputPer1M:.78},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-turbo":{id:"openrouter/qwen/qwen-turbo",openRouterId:"qwen/qwen-turbo",provider:"openrouter",displayName:"Qwen: Qwen-Turbo",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.13},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-vl-max":{id:"openrouter/qwen/qwen-vl-max",openRouterId:"qwen/qwen-vl-max",provider:"openrouter",displayName:"Qwen: Qwen VL Max",tier:"fast",costs:{inputPer1M:.52,outputPer1M:2.08},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen-vl-plus":{id:"openrouter/qwen/qwen-vl-plus",openRouterId:"qwen/qwen-vl-plus",provider:"openrouter",displayName:"Qwen: Qwen VL Plus",tier:"fast",costs:{inputPer1M:.14,outputPer1M:.41},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen2.5-coder-7b-instruct":{id:"openrouter/qwen/qwen2.5-coder-7b-instruct",openRouterId:"qwen/qwen2.5-coder-7b-instruct",provider:"openrouter",displayName:"Qwen: Qwen2.5 Coder 7B Instruct",tier:"fast",costs:{inputPer1M:.03,outputPer1M:.09},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen2.5-vl-32b-instruct":{id:"openrouter/qwen/qwen2.5-vl-32b-instruct",openRouterId:"qwen/qwen2.5-vl-32b-instruct",provider:"openrouter",displayName:"Qwen: Qwen2.5 VL 32B Instruct",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen2.5-vl-72b-instruct":{id:"openrouter/qwen/qwen2.5-vl-72b-instruct",openRouterId:"qwen/qwen2.5-vl-72b-instruct",provider:"openrouter",displayName:"Qwen: Qwen2.5 VL 72B Instruct",tier:"fast",costs:{inputPer1M:.8,outputPer1M:.8},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-14b":{id:"openrouter/qwen/qwen3-14b",openRouterId:"qwen/qwen3-14b",provider:"openrouter",displayName:"Qwen: Qwen3 14B",tier:"fast",costs:{inputPer1M:.06,outputPer1M:.24},maxTokens:40960,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-235b-a22b":{id:"openrouter/qwen/qwen3-235b-a22b",openRouterId:"qwen/qwen3-235b-a22b",provider:"openrouter",displayName:"Qwen: Qwen3 235B A22B",tier:"fast",costs:{inputPer1M:.45,outputPer1M:1.82},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-235b-a22b-2507":{id:"openrouter/qwen/qwen3-235b-a22b-2507",openRouterId:"qwen/qwen3-235b-a22b-2507",provider:"openrouter",displayName:"Qwen: Qwen3 235B A22B Instruct 2507",tier:"fast",costs:{inputPer1M:.07,outputPer1M:.1},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-235b-a22b-thinking-2507":{id:"openrouter/qwen/qwen3-235b-a22b-thinking-2507",openRouterId:"qwen/qwen3-235b-a22b-thinking-2507",provider:"openrouter",displayName:"Qwen: Qwen3 235B A22B Thinking 2507",tier:"fast",costs:{inputPer1M:.15,outputPer1M:1.5},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-30b-a3b":{id:"openrouter/qwen/qwen3-30b-a3b",openRouterId:"qwen/qwen3-30b-a3b",provider:"openrouter",displayName:"Qwen: Qwen3 30B A3B",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.28},maxTokens:40960,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-30b-a3b-instruct-2507":{id:"openrouter/qwen/qwen3-30b-a3b-instruct-2507",openRouterId:"qwen/qwen3-30b-a3b-instruct-2507",provider:"openrouter",displayName:"Qwen: Qwen3 30B A3B Instruct 2507",tier:"fast",costs:{inputPer1M:.09,outputPer1M:.3},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-30b-a3b-thinking-2507":{id:"openrouter/qwen/qwen3-30b-a3b-thinking-2507",openRouterId:"qwen/qwen3-30b-a3b-thinking-2507",provider:"openrouter",displayName:"Qwen: Qwen3 30B A3B Thinking 2507",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.4},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-32b":{id:"openrouter/qwen/qwen3-32b",openRouterId:"qwen/qwen3-32b",provider:"openrouter",displayName:"Qwen: Qwen3 32B",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.24},maxTokens:40960,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-8b":{id:"openrouter/qwen/qwen3-8b",openRouterId:"qwen/qwen3-8b",provider:"openrouter",displayName:"Qwen: Qwen3 8B",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.4},maxTokens:40960,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-coder":{id:"openrouter/qwen/qwen3-coder",openRouterId:"qwen/qwen3-coder",provider:"openrouter",displayName:"Qwen: Qwen3 Coder 480B A35B",tier:"fast",costs:{inputPer1M:.22,outputPer1M:1},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-coder-30b-a3b-instruct":{id:"openrouter/qwen/qwen3-coder-30b-a3b-instruct",openRouterId:"qwen/qwen3-coder-30b-a3b-instruct",provider:"openrouter",displayName:"Qwen: Qwen3 Coder 30B A3B Instruct",tier:"fast",costs:{inputPer1M:.07,outputPer1M:.27},maxTokens:16e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-coder-flash":{id:"openrouter/qwen/qwen3-coder-flash",openRouterId:"qwen/qwen3-coder-flash",provider:"openrouter",displayName:"Qwen: Qwen3 Coder Flash",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.98},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-coder-next":{id:"openrouter/qwen/qwen3-coder-next",openRouterId:"qwen/qwen3-coder-next",provider:"openrouter",displayName:"Qwen: Qwen3 Coder Next",tier:"fast",costs:{inputPer1M:.12,outputPer1M:.75},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-coder-plus":{id:"openrouter/qwen/qwen3-coder-plus",openRouterId:"qwen/qwen3-coder-plus",provider:"openrouter",displayName:"Qwen: Qwen3 Coder Plus",tier:"fast",costs:{inputPer1M:.65,outputPer1M:3.25},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-max":{id:"openrouter/qwen/qwen3-max",openRouterId:"qwen/qwen3-max",provider:"openrouter",displayName:"Qwen: Qwen3 Max",tier:"fast",costs:{inputPer1M:.78,outputPer1M:3.9},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-max-thinking":{id:"openrouter/qwen/qwen3-max-thinking",openRouterId:"qwen/qwen3-max-thinking",provider:"openrouter",displayName:"Qwen: Qwen3 Max Thinking",tier:"fast",costs:{inputPer1M:.78,outputPer1M:3.9},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-next-80b-a3b-instruct":{id:"openrouter/qwen/qwen3-next-80b-a3b-instruct",openRouterId:"qwen/qwen3-next-80b-a3b-instruct",provider:"openrouter",displayName:"Qwen: Qwen3 Next 80B A3B Instruct",tier:"fast",costs:{inputPer1M:.09,outputPer1M:1.1},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-next-80b-a3b-thinking":{id:"openrouter/qwen/qwen3-next-80b-a3b-thinking",openRouterId:"qwen/qwen3-next-80b-a3b-thinking",provider:"openrouter",displayName:"Qwen: Qwen3 Next 80B A3B Thinking",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.78},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-235b-a22b-instruct":{id:"openrouter/qwen/qwen3-vl-235b-a22b-instruct",openRouterId:"qwen/qwen3-vl-235b-a22b-instruct",provider:"openrouter",displayName:"Qwen: Qwen3 VL 235B A22B Instruct",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.88},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-235b-a22b-thinking":{id:"openrouter/qwen/qwen3-vl-235b-a22b-thinking",openRouterId:"qwen/qwen3-vl-235b-a22b-thinking",provider:"openrouter",displayName:"Qwen: Qwen3 VL 235B A22B Thinking",tier:"fast",costs:{inputPer1M:.26,outputPer1M:2.6},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-30b-a3b-instruct":{id:"openrouter/qwen/qwen3-vl-30b-a3b-instruct",openRouterId:"qwen/qwen3-vl-30b-a3b-instruct",provider:"openrouter",displayName:"Qwen: Qwen3 VL 30B A3B Instruct",tier:"fast",costs:{inputPer1M:.13,outputPer1M:.52},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-30b-a3b-thinking":{id:"openrouter/qwen/qwen3-vl-30b-a3b-thinking",openRouterId:"qwen/qwen3-vl-30b-a3b-thinking",provider:"openrouter",displayName:"Qwen: Qwen3 VL 30B A3B Thinking",tier:"fast",costs:{inputPer1M:.13,outputPer1M:1.56},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-32b-instruct":{id:"openrouter/qwen/qwen3-vl-32b-instruct",openRouterId:"qwen/qwen3-vl-32b-instruct",provider:"openrouter",displayName:"Qwen: Qwen3 VL 32B Instruct",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.42},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-8b-instruct":{id:"openrouter/qwen/qwen3-vl-8b-instruct",openRouterId:"qwen/qwen3-vl-8b-instruct",provider:"openrouter",displayName:"Qwen: Qwen3 VL 8B Instruct",tier:"fast",costs:{inputPer1M:.08,outputPer1M:.5},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3-vl-8b-thinking":{id:"openrouter/qwen/qwen3-vl-8b-thinking",openRouterId:"qwen/qwen3-vl-8b-thinking",provider:"openrouter",displayName:"Qwen: Qwen3 VL 8B Thinking",tier:"fast",costs:{inputPer1M:.12,outputPer1M:1.37},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-122b-a10b":{id:"openrouter/qwen/qwen3.5-122b-a10b",openRouterId:"qwen/qwen3.5-122b-a10b",provider:"openrouter",displayName:"Qwen: Qwen3.5-122B-A10B",tier:"fast",costs:{inputPer1M:.26,outputPer1M:2.08},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-27b":{id:"openrouter/qwen/qwen3.5-27b",openRouterId:"qwen/qwen3.5-27b",provider:"openrouter",displayName:"Qwen: Qwen3.5-27B",tier:"fast",costs:{inputPer1M:.2,outputPer1M:1.56},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-35b-a3b":{id:"openrouter/qwen/qwen3.5-35b-a3b",openRouterId:"qwen/qwen3.5-35b-a3b",provider:"openrouter",displayName:"Qwen: Qwen3.5-35B-A3B",tier:"fast",costs:{inputPer1M:.16,outputPer1M:1.3},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-397b-a17b":{id:"openrouter/qwen/qwen3.5-397b-a17b",openRouterId:"qwen/qwen3.5-397b-a17b",provider:"openrouter",displayName:"Qwen: Qwen3.5 397B A17B",tier:"fast",costs:{inputPer1M:.39,outputPer1M:2.34},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-9b":{id:"openrouter/qwen/qwen3.5-9b",openRouterId:"qwen/qwen3.5-9b",provider:"openrouter",displayName:"Qwen: Qwen3.5-9B",tier:"fast",costs:{inputPer1M:.05,outputPer1M:.15},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-flash-02-23":{id:"openrouter/qwen/qwen3.5-flash-02-23",openRouterId:"qwen/qwen3.5-flash-02-23",provider:"openrouter",displayName:"Qwen: Qwen3.5-Flash",tier:"fast",costs:{inputPer1M:.07,outputPer1M:.26},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwen3.5-plus-02-15":{id:"openrouter/qwen/qwen3.5-plus-02-15",openRouterId:"qwen/qwen3.5-plus-02-15",provider:"openrouter",displayName:"Qwen: Qwen3.5 Plus 2026-02-15",tier:"fast",costs:{inputPer1M:.26,outputPer1M:1.56},maxTokens:1e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/qwen/qwq-32b":{id:"openrouter/qwen/qwq-32b",openRouterId:"qwen/qwq-32b",provider:"openrouter",displayName:"Qwen: QwQ 32B",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.58},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/relace/relace-apply-3":{id:"openrouter/relace/relace-apply-3",openRouterId:"relace/relace-apply-3",provider:"openrouter",displayName:"Relace: Relace Apply 3",tier:"fast",costs:{inputPer1M:.85,outputPer1M:1.25},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/relace/relace-search":{id:"openrouter/relace/relace-search",openRouterId:"relace/relace-search",provider:"openrouter",displayName:"Relace: Relace Search",tier:"balanced",costs:{inputPer1M:1,outputPer1M:3},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/sao10k/l3-euryale-70b":{id:"openrouter/sao10k/l3-euryale-70b",openRouterId:"sao10k/l3-euryale-70b",provider:"openrouter",displayName:"Sao10k: Llama 3 Euryale 70B v2.1",tier:"balanced",costs:{inputPer1M:1.48,outputPer1M:1.48},maxTokens:8192,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/sao10k/l3-lunaris-8b":{id:"openrouter/sao10k/l3-lunaris-8b",openRouterId:"sao10k/l3-lunaris-8b",provider:"openrouter",displayName:"Sao10K: Llama 3 8B Lunaris",tier:"fast",costs:{inputPer1M:.04,outputPer1M:.05},maxTokens:8192,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/sao10k/l3.1-70b-hanami-x1":{id:"openrouter/sao10k/l3.1-70b-hanami-x1",openRouterId:"sao10k/l3.1-70b-hanami-x1",provider:"openrouter",displayName:"Sao10K: Llama 3.1 70B Hanami x1",tier:"balanced",costs:{inputPer1M:3,outputPer1M:3},maxTokens:16e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/sao10k/l3.1-euryale-70b":{id:"openrouter/sao10k/l3.1-euryale-70b",openRouterId:"sao10k/l3.1-euryale-70b",provider:"openrouter",displayName:"Sao10K: Llama 3.1 Euryale 70B v2.2",tier:"fast",costs:{inputPer1M:.85,outputPer1M:.85},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/sao10k/l3.3-euryale-70b":{id:"openrouter/sao10k/l3.3-euryale-70b",openRouterId:"sao10k/l3.3-euryale-70b",provider:"openrouter",displayName:"Sao10K: Llama 3.3 Euryale 70B",tier:"fast",costs:{inputPer1M:.65,outputPer1M:.75},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/stepfun/step-3.5-flash":{id:"openrouter/stepfun/step-3.5-flash",openRouterId:"stepfun/step-3.5-flash",provider:"openrouter",displayName:"StepFun: Step 3.5 Flash",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.3},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/switchpoint/router":{id:"openrouter/switchpoint/router",openRouterId:"switchpoint/router",provider:"openrouter",displayName:"Switchpoint Router",tier:"fast",costs:{inputPer1M:.85,outputPer1M:3.4},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/tencent/hunyuan-a13b-instruct":{id:"openrouter/tencent/hunyuan-a13b-instruct",openRouterId:"tencent/hunyuan-a13b-instruct",provider:"openrouter",displayName:"Tencent: Hunyuan A13B Instruct",tier:"fast",costs:{inputPer1M:.14,outputPer1M:.57},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/thedrummer/cydonia-24b-v4.1":{id:"openrouter/thedrummer/cydonia-24b-v4.1",openRouterId:"thedrummer/cydonia-24b-v4.1",provider:"openrouter",displayName:"TheDrummer: Cydonia 24B V4.1",tier:"fast",costs:{inputPer1M:.3,outputPer1M:.5},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/thedrummer/rocinante-12b":{id:"openrouter/thedrummer/rocinante-12b",openRouterId:"thedrummer/rocinante-12b",provider:"openrouter",displayName:"TheDrummer: Rocinante 12B",tier:"fast",costs:{inputPer1M:.17,outputPer1M:.43},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/thedrummer/skyfall-36b-v2":{id:"openrouter/thedrummer/skyfall-36b-v2",openRouterId:"thedrummer/skyfall-36b-v2",provider:"openrouter",displayName:"TheDrummer: Skyfall 36B V2",tier:"fast",costs:{inputPer1M:.55,outputPer1M:.8},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/thedrummer/unslopnemo-12b":{id:"openrouter/thedrummer/unslopnemo-12b",openRouterId:"thedrummer/unslopnemo-12b",provider:"openrouter",displayName:"TheDrummer: UnslopNemo 12B",tier:"fast",costs:{inputPer1M:.4,outputPer1M:.4},maxTokens:32768,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/tngtech/deepseek-r1t2-chimera":{id:"openrouter/tngtech/deepseek-r1t2-chimera",openRouterId:"tngtech/deepseek-r1t2-chimera",provider:"openrouter",displayName:"TNG: DeepSeek R1T2 Chimera",tier:"fast",costs:{inputPer1M:.3,outputPer1M:1.1},maxTokens:163840,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/undi95/remm-slerp-l2-13b":{id:"openrouter/undi95/remm-slerp-l2-13b",openRouterId:"undi95/remm-slerp-l2-13b",provider:"openrouter",displayName:"ReMM SLERP 13B",tier:"fast",costs:{inputPer1M:.45,outputPer1M:.65},maxTokens:6144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/upstage/solar-pro-3":{id:"openrouter/upstage/solar-pro-3",openRouterId:"upstage/solar-pro-3",provider:"openrouter",displayName:"Upstage: Solar Pro 3",tier:"fast",costs:{inputPer1M:.15,outputPer1M:.6},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/writer/palmyra-x5":{id:"openrouter/writer/palmyra-x5",openRouterId:"writer/palmyra-x5",provider:"openrouter",displayName:"Writer: Palmyra X5",tier:"fast",costs:{inputPer1M:.6,outputPer1M:6},maxTokens:104e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-3":{id:"openrouter/x-ai/grok-3",openRouterId:"x-ai/grok-3",provider:"openrouter",displayName:"xAI: Grok 3",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-3-beta":{id:"openrouter/x-ai/grok-3-beta",openRouterId:"x-ai/grok-3-beta",provider:"openrouter",displayName:"xAI: Grok 3 Beta",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-3-mini":{id:"openrouter/x-ai/grok-3-mini",openRouterId:"x-ai/grok-3-mini",provider:"openrouter",displayName:"xAI: Grok 3 Mini",tier:"fast",costs:{inputPer1M:.3,outputPer1M:.5},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-3-mini-beta":{id:"openrouter/x-ai/grok-3-mini-beta",openRouterId:"x-ai/grok-3-mini-beta",provider:"openrouter",displayName:"xAI: Grok 3 Mini Beta",tier:"fast",costs:{inputPer1M:.3,outputPer1M:.5},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-4":{id:"openrouter/x-ai/grok-4",openRouterId:"x-ai/grok-4",provider:"openrouter",displayName:"xAI: Grok 4",tier:"balanced",costs:{inputPer1M:3,outputPer1M:15},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-4-fast":{id:"openrouter/x-ai/grok-4-fast",openRouterId:"x-ai/grok-4-fast",provider:"openrouter",displayName:"xAI: Grok 4 Fast",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.5},maxTokens:2e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-4.1-fast":{id:"openrouter/x-ai/grok-4.1-fast",openRouterId:"x-ai/grok-4.1-fast",provider:"openrouter",displayName:"xAI: Grok 4.1 Fast",tier:"fast",costs:{inputPer1M:.2,outputPer1M:.5},maxTokens:2e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-4.20-beta":{id:"openrouter/x-ai/grok-4.20-beta",openRouterId:"x-ai/grok-4.20-beta",provider:"openrouter",displayName:"xAI: Grok 4.20 Beta",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:2e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-4.20-multi-agent-beta":{id:"openrouter/x-ai/grok-4.20-multi-agent-beta",openRouterId:"x-ai/grok-4.20-multi-agent-beta",provider:"openrouter",displayName:"xAI: Grok 4.20 Multi-Agent Beta",tier:"balanced",costs:{inputPer1M:2,outputPer1M:6},maxTokens:2e6,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/x-ai/grok-code-fast-1":{id:"openrouter/x-ai/grok-code-fast-1",openRouterId:"x-ai/grok-code-fast-1",provider:"openrouter",displayName:"xAI: Grok Code Fast 1",tier:"fast",costs:{inputPer1M:.2,outputPer1M:1.5},maxTokens:256e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/xiaomi/mimo-v2-flash":{id:"openrouter/xiaomi/mimo-v2-flash",openRouterId:"xiaomi/mimo-v2-flash",provider:"openrouter",displayName:"Xiaomi: MiMo-V2-Flash",tier:"fast",costs:{inputPer1M:.09,outputPer1M:.29},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/xiaomi/mimo-v2-omni":{id:"openrouter/xiaomi/mimo-v2-omni",openRouterId:"xiaomi/mimo-v2-omni",provider:"openrouter",displayName:"Xiaomi: MiMo-V2-Omni",tier:"fast",costs:{inputPer1M:.4,outputPer1M:2},maxTokens:262144,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/xiaomi/mimo-v2-pro":{id:"openrouter/xiaomi/mimo-v2-pro",openRouterId:"xiaomi/mimo-v2-pro",provider:"openrouter",displayName:"Xiaomi: MiMo-V2-Pro",tier:"balanced",costs:{inputPer1M:1,outputPer1M:3},maxTokens:1048576,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4-32b":{id:"openrouter/z-ai/glm-4-32b",openRouterId:"z-ai/glm-4-32b",provider:"openrouter",displayName:"Z.ai: GLM 4 32B ",tier:"fast",costs:{inputPer1M:.1,outputPer1M:.1},maxTokens:128e3,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.5":{id:"openrouter/z-ai/glm-4.5",openRouterId:"z-ai/glm-4.5",provider:"openrouter",displayName:"Z.ai: GLM 4.5",tier:"fast",costs:{inputPer1M:.6,outputPer1M:2.2},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.5-air":{id:"openrouter/z-ai/glm-4.5-air",openRouterId:"z-ai/glm-4.5-air",provider:"openrouter",displayName:"Z.ai: GLM 4.5 Air",tier:"fast",costs:{inputPer1M:.13,outputPer1M:.85},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.5v":{id:"openrouter/z-ai/glm-4.5v",openRouterId:"z-ai/glm-4.5v",provider:"openrouter",displayName:"Z.ai: GLM 4.5V",tier:"fast",costs:{inputPer1M:.6,outputPer1M:1.8},maxTokens:65536,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.6":{id:"openrouter/z-ai/glm-4.6",openRouterId:"z-ai/glm-4.6",provider:"openrouter",displayName:"Z.ai: GLM 4.6",tier:"fast",costs:{inputPer1M:.39,outputPer1M:1.9},maxTokens:204800,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.6v":{id:"openrouter/z-ai/glm-4.6v",openRouterId:"z-ai/glm-4.6v",provider:"openrouter",displayName:"Z.ai: GLM 4.6V",tier:"fast",costs:{inputPer1M:.3,outputPer1M:.9},maxTokens:131072,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.7":{id:"openrouter/z-ai/glm-4.7",openRouterId:"z-ai/glm-4.7",provider:"openrouter",displayName:"Z.ai: GLM 4.7",tier:"fast",costs:{inputPer1M:.39,outputPer1M:1.75},maxTokens:202752,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-4.7-flash":{id:"openrouter/z-ai/glm-4.7-flash",openRouterId:"z-ai/glm-4.7-flash",provider:"openrouter",displayName:"Z.ai: GLM 4.7 Flash",tier:"fast",costs:{inputPer1M:.06,outputPer1M:.4},maxTokens:202752,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-5":{id:"openrouter/z-ai/glm-5",openRouterId:"z-ai/glm-5",provider:"openrouter",displayName:"Z.ai: GLM 5",tier:"fast",costs:{inputPer1M:.72,outputPer1M:2.3},maxTokens:8e4,supportsTools:!0,supportsCaching:!1,supportsThinking:!1},"openrouter/z-ai/glm-5-turbo":{id:"openrouter/z-ai/glm-5-turbo",openRouterId:"z-ai/glm-5-turbo",provider:"openrouter",displayName:"Z.ai: GLM 5 Turbo",tier:"fast",costs:{inputPer1M:.96,outputPer1M:3.2},maxTokens:202752,supportsTools:!0,supportsCaching:!1,supportsThinking:!1}},_oe=Object.keys(hq)});var tI=x(()=>{"use strict"});function cx(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function rI(e){return e==="inline"||e==="fullscreen"||e==="pip"}function Vm(e){if(!cx(e))return;let t={};if(rI(e.displayMode)&&(t.currentDisplayMode=e.displayMode),Array.isArray(e.availableDisplayModes)){let r=e.availableDisplayModes.filter(rI);r.length>0&&(t.availableDisplayModes=r)}if(cx(e.containerDimensions)){let r={},o=e.containerDimensions;typeof o.width=="number"&&(r.width=o.width),typeof o.maxWidth=="number"&&(r.maxWidth=o.maxWidth),typeof o.height=="number"&&(r.height=o.height),typeof o.maxHeight=="number"&&(r.maxHeight=o.maxHeight),Object.keys(r).length>0&&(t.containerDimensions=r)}if((e.platform==="web"||e.platform==="desktop"||e.platform==="mobile")&&(t.platform=e.platform),cx(e.deviceCapabilities)){let r={},o=e.deviceCapabilities;typeof o.touch=="boolean"&&(r.touch=o.touch),typeof o.hover=="boolean"&&(r.hover=o.hover),Object.keys(r).length>0&&(t.deviceCapabilities=r)}return typeof e.locale=="string"&&e.locale.length>0&&(t.locale=e.locale),typeof e.timeZone=="string"&&e.timeZone.length>0&&(t.timeZone=e.timeZone),t}function px(e,t){return e===t?!0:e===void 0||t===void 0?!1:JSON.stringify(e)===JSON.stringify(t)}var nI=x(()=>{"use strict"});var oI=x(()=>{"use strict"});var iI=x(()=>{"use strict"});var aI=x(()=>{"use strict"});var Ioe,sI,Eoe,Moe,Hm=x(()=>{"use strict";Ioe=Object.freeze({}),sI=300,Eoe=16*1024,Moe=64*1024});var lI=x(()=>{"use strict"});var uI=x(()=>{"use strict"});var Aoe,Noe,Doe,joe,Uoe,Loe,qoe,Boe,Voe,Hoe,cI=x(()=>{"use strict";Wn();sl();Bm();Aoe=g.object({contract:bi,generator:g.string().min(1).optional().describe("Generator slug (e.g. `ui-gen-default-haiku-4-5`). When omitted, dispatches through `GeneratorRegistry.defaultGenerator()`."),persona:g.string().optional().describe("Free-form persona tag (e.g. 'minimalist', 'data-dense'). Normalized via lowercase+trim before persistence; logged as a warning when within Levenshtein distance < 2 of an existing tag for the same appId."),aesthetic:g.string().optional().describe("Free-form aesthetic tag (e.g. 'glassmorphic', 'brutalist', 'editorial'). Persisted on `Blueprint.variance.aesthetic`. Distinct from persona \u2014 persona names the user mental model; aesthetic names the visual treatment."),context:g.record(g.string(),Ze).optional().describe("Small structured signal carried alongside the persona. Persisted on `Blueprint.variance.context`."),seedPrompt:g.string().optional().describe("The raw operator prompt that produced this variant. Round-trip input for the variant-selector + audit trail."),setAsOperatorDefault:g.boolean().optional().describe("When true, pins the new blueprint as the operator default for its `(appId, contractHash)` group, clearing any prior default in the same group.")}).strict(),Noe=g.object({blueprintId:g.string().min(1),codeHash:g.string().optional().describe("Content hash of the generated code body. Absent when the generator returned a non-`ok` result and persistence skipped \u2014 the failure mode is surfaced through generator-level error reporting elsewhere."),validatorScore:g.number().min(0).max(1).optional().describe("Advanced generator's iterative-loop validator score (0-1). Absent for default-generator output."),generator:g.string().min(1).describe("Slug of the generator the dispatch resolved to.")}).strict(),Doe=g.object({contract:bi,componentCode:g.string().min(1).describe("Verbatim component-code body to persist. Stored as-is \u2014 no LLM call, no validator pass. Operator owns correctness; the handler computes the canonical sha256 codeHash and routes the bytes through the same persistence seams as `*_generate_*`."),generator:g.string().min(1).optional().describe("Optional generator slug to stamp on the persisted Blueprint.generator field \u2014 purely an audit/provenance hint for downstream `*_list_blueprints` consumers. Defaults to the registry default slug."),persona:g.string().optional().describe("Free-form persona tag (e.g. 'minimalist', 'data-dense'). Normalized via lowercase+trim before persistence; logged as a warning when within Levenshtein distance < 2 of an existing tag for the same appId."),aesthetic:g.string().optional().describe("Free-form aesthetic tag. Persisted on `Blueprint.variance.aesthetic`."),context:g.record(g.string(),Ze).optional().describe("Small structured signal carried alongside the persona. Persisted on `Blueprint.variance.context`."),seedPrompt:g.string().optional().describe("Optional originating prompt for audit + round-tripping (e.g. the prose the operator originally fed into `*_generate_*` before exporting)."),setAsOperatorDefault:g.boolean().optional().describe("When true, pins the new blueprint as the operator default for its `(appId, contractHash)` group, clearing any prior default in the same group.")}).strict(),joe=g.object({blueprintId:g.string().min(1),codeHash:g.string().min(1).describe("Content hash of the persisted code body (full sha256 hex)."),generator:g.string().min(1).describe("Resolved generator slug stamped on the Blueprint.generator field \u2014 either the supplied input or the registry default.")}).strict(),Uoe=g.object({contractHash:g.string().min(1).optional().describe("Filter to a single `(appId, contractHash)` group. Combine with `generator` / `persona` to narrow within the group."),generator:g.string().min(1).optional().describe("Filter to blueprints produced by a specific generator slug."),persona:g.string().optional().describe("Filter on `variance.persona`. Normalized to match persisted form (lowercase+trim)."),intentKeywords:g.array(g.string().min(1)).optional().describe("Semantic-search tokens. When set, dispatches through `BlueprintSearch.search()` rather than indexed `list()`.")}).strict(),Loe=g.object({blueprints:g.array(V6)}).strict(),qoe=g.object({blueprintId:g.string().min(1),isOperatorDefault:g.literal(!0).optional().describe("When `true`, pins this blueprint as the operator default for its `(appId, contractHash)` group. Clears any prior default. Cannot set to `false` \u2014 to unpin, set another blueprint in the same group as default, or delete this one."),variance:Ac.optional().describe('Partial-merge into the existing variance. Supplied keys overwrite; omitted keys preserve. Pass `{persona: ""}` to clear a persona (handler treats empty string as removal).')}).strict(),Boe=g.object({blueprintId:g.string().min(1),updatedAt:g.string().min(1)}).strict(),Voe=g.object({blueprintId:g.string().min(1)}).strict(),Hoe=g.object({deleted:g.literal(!0)}).strict()});var pI=x(()=>{"use strict"});var dI=x(()=>{"use strict"});var fI=x(()=>{"use strict"});var mI=x(()=>{"use strict"});var gI=x(()=>{"use strict";mI()});var hI,Xoe,yI=x(()=>{"use strict";hI={AGENT_DATA_POST:"ggui-agent-data",AGENT_DATA:"ggui:agent-data",AGENT_STREAM:"ggui:agent-stream",AGENT_MSG:"ggui:agent-msg",AGENT_LOGS:"ggui:logs",USER_DATA_POST:"ggui-user-data",USER_DATA:"ggui:user-data",RESIZE:"ggui-resize",RENDER_SUCCESS:"ggui-render-success",RENDER_ERROR:"ggui-render-error"},Xoe=`
41
+ (function() {
42
+ var resizeObserver = new ResizeObserver(function() {
43
+ parent.postMessage({ type: "${hI.RESIZE}", height: document.documentElement.scrollHeight }, "*");
44
+ });
45
+ resizeObserver.observe(document.documentElement);
46
+ // Initial measurement after first paint
47
+ requestAnimationFrame(function() {
48
+ parent.postMessage({ type: "${hI.RESIZE}", height: document.documentElement.scrollHeight }, "*");
49
+ });
50
+ })();`});var vI=x(()=>{"use strict"});function yq(e){return"schemaVersion"in e?e.schemaVersion:Kh}function $I(e){let t={sessionId:e.sessionId,type:e.type};e.payload!==void 0&&(t.payload=e.payload),e.stackIndex!==void 0&&(t.stackIndex=e.stackIndex),e.stackItemId!==void 0&&(t.stackItemId=e.stackItemId),e.clientSeq!==void 0&&(t.clientSeq=e.clientSeq);let r=yq(e);return r!==void 0&&(t.schemaVersion=r),t}var bI=x(()=>{"use strict";Fu()});var Nc,dx=x(()=>{"use strict";Fu();Nc=class extends Error{code=Fd;observedVersion;acceptedVersions;observedBy;constructor(t){let r=t.observedVersion===void 0?"unknown":Array.isArray(t.observedVersion)?t.observedVersion.join(", "):String(t.observedVersion),o=t.acceptedVersions.join(", ");super(`UPGRADE_REQUIRED: ${t.observedBy==="server"?"client":"server"} speaks version '${r}' which is not in the ${t.observedBy==="server"?"server":"client"}'s accepted set [${o}].`),this.name="UpgradeRequiredError",t.observedVersion!==void 0&&(this.observedVersion=t.observedVersion),this.acceptedVersions=t.acceptedVersions,this.observedBy=t.observedBy}}});var xI=x(()=>{"use strict";Pc()});var Uc=q(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.regexpCode=be.getEsmExportName=be.getProperty=be.safeStringify=be.stringify=be.strConcat=be.addCodeArg=be.str=be._=be.nil=be._Code=be.Name=be.IDENTIFIER=be._CodeOrName=void 0;var Dc=class{};be._CodeOrName=Dc;be.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Oa=class extends Dc{constructor(t){if(super(),!be.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};be.Name=Oa;var Jr=class extends Dc{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,o)=>`${r}${o}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,o)=>(o instanceof Oa&&(r[o.str]=(r[o.str]||0)+1),r),{})}};be._Code=Jr;be.nil=new Jr("");function kI(e,...t){let r=[e[0]],o=0;for(;o<t.length;)mx(r,t[o]),r.push(e[++o]);return new Jr(r)}be._=kI;var fx=new Jr("+");function _I(e,...t){let r=[jc(e[0])],o=0;for(;o<t.length;)r.push(fx),mx(r,t[o]),r.push(fx,jc(e[++o]));return vq(r),new Jr(r)}be.str=_I;function mx(e,t){t instanceof Jr?e.push(...t._items):t instanceof Oa?e.push(t):e.push(xq(t))}be.addCodeArg=mx;function vq(e){let t=1;for(;t<e.length-1;){if(e[t]===fx){let r=$q(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function $q(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Oa||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof Oa))return`"${e}${t.slice(1)}`}function bq(e,t){return t.emptyStr()?e:e.emptyStr()?t:_I`${e}${t}`}be.strConcat=bq;function xq(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:jc(Array.isArray(e)?e.join(","):e)}function kq(e){return new Jr(jc(e))}be.stringify=kq;function jc(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}be.safeStringify=jc;function _q(e){return typeof e=="string"&&be.IDENTIFIER.test(e)?new Jr(`.${e}`):kI`[${e}]`}be.getProperty=_q;function Sq(e){if(typeof e=="string"&&be.IDENTIFIER.test(e))return new Jr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}be.getEsmExportName=Sq;function wq(e){return new Jr(e.toString())}be.regexpCode=wq});var yx=q(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.ValueScope=Sr.ValueScopeName=Sr.Scope=Sr.varKinds=Sr.UsedValueState=void 0;var _r=Uc(),gx=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Gm;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Gm||(Sr.UsedValueState=Gm={}));Sr.varKinds={const:new _r.Name("const"),let:new _r.Name("let"),var:new _r.Name("var")};var Zm=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof _r.Name?t:this.name(t)}name(t){return new _r.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,o;if(!((o=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||o===void 0)&&o.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Sr.Scope=Zm;var Fm=class extends _r.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:o}){this.value=t,this.scopePath=(0,_r._)`.${new _r.Name(r)}[${o}]`}};Sr.ValueScopeName=Fm;var Tq=(0,_r._)`\n`,hx=class extends Zm{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?Tq:_r.nil}}get(){return this._scope}name(t){return new Fm(t,this._newName(t))}value(t,r){var o;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(t),{prefix:i}=n,a=(o=r.key)!==null&&o!==void 0?o:r.ref,s=this._values[i];if(s){let c=s.get(a);if(c)return c}else s=this._values[i]=new Map;s.set(a,n);let l=this._scope[i]||(this._scope[i]=[]),u=l.length;return l[u]=r.ref,n.setValue(r,{property:i,itemIndex:u}),n}getValue(t,r){let o=this._values[t];if(o)return o.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,o=>{if(o.scopePath===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return(0,_r._)`${t}${o.scopePath}`})}scopeCode(t=this._values,r,o){return this._reduceValues(t,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,o)}_reduceValues(t,r,o={},n){let i=_r.nil;for(let a in t){let s=t[a];if(!s)continue;let l=o[a]=o[a]||new Map;s.forEach(u=>{if(l.has(u))return;l.set(u,Gm.Started);let c=r(u);if(c){let p=this.opts.es5?Sr.varKinds.var:Sr.varKinds.const;i=(0,_r._)`${i}${p} ${u} = ${c};${this.opts._n}`}else if(c=n?.(u))i=(0,_r._)`${i}${c}${this.opts._n}`;else throw new gx(u);l.set(u,Gm.Completed)})}return i}};Sr.ValueScope=hx});var ie=q(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.or=le.and=le.not=le.CodeGen=le.operators=le.varKinds=le.ValueScopeName=le.ValueScope=le.Scope=le.Name=le.regexpCode=le.stringify=le.getProperty=le.nil=le.strConcat=le.str=le._=void 0;var me=Uc(),In=yx(),xi=Uc();Object.defineProperty(le,"_",{enumerable:!0,get:function(){return xi._}});Object.defineProperty(le,"str",{enumerable:!0,get:function(){return xi.str}});Object.defineProperty(le,"strConcat",{enumerable:!0,get:function(){return xi.strConcat}});Object.defineProperty(le,"nil",{enumerable:!0,get:function(){return xi.nil}});Object.defineProperty(le,"getProperty",{enumerable:!0,get:function(){return xi.getProperty}});Object.defineProperty(le,"stringify",{enumerable:!0,get:function(){return xi.stringify}});Object.defineProperty(le,"regexpCode",{enumerable:!0,get:function(){return xi.regexpCode}});Object.defineProperty(le,"Name",{enumerable:!0,get:function(){return xi.Name}});var Ym=yx();Object.defineProperty(le,"Scope",{enumerable:!0,get:function(){return Ym.Scope}});Object.defineProperty(le,"ValueScope",{enumerable:!0,get:function(){return Ym.ValueScope}});Object.defineProperty(le,"ValueScopeName",{enumerable:!0,get:function(){return Ym.ValueScopeName}});Object.defineProperty(le,"varKinds",{enumerable:!0,get:function(){return Ym.varKinds}});le.operators={GT:new me._Code(">"),GTE:new me._Code(">="),LT:new me._Code("<"),LTE:new me._Code("<="),EQ:new me._Code("==="),NEQ:new me._Code("!=="),NOT:new me._Code("!"),OR:new me._Code("||"),AND:new me._Code("&&"),ADD:new me._Code("+")};var ko=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},vx=class extends ko{constructor(t,r,o){super(),this.varKind=t,this.name=r,this.rhs=o}render({es5:t,_n:r}){let o=t?In.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${o} ${this.name}${n};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ul(this.rhs,t,r)),this}get names(){return this.rhs instanceof me._CodeOrName?this.rhs.names:{}}},Wm=class extends ko{constructor(t,r,o){super(),this.lhs=t,this.rhs=r,this.sideEffects=o}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof me.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ul(this.rhs,t,r),this}get names(){let t=this.lhs instanceof me.Name?{}:{...this.lhs.names};return Jm(t,this.rhs)}},$x=class extends Wm{constructor(t,r,o,n){super(t,o,n),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},bx=class extends ko{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},xx=class extends ko{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},kx=class extends ko{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},_x=class extends ko{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ul(this.code,t,r),this}get names(){return this.code instanceof me._CodeOrName?this.code.names:{}}},Lc=class extends ko{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,o)=>r+o.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let o=t[r].optimizeNodes();Array.isArray(o)?t.splice(r,1,...o):o?t[r]=o:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:o}=this,n=o.length;for(;n--;){let i=o[n];i.optimizeNames(t,r)||(Iq(t,i.names),o.splice(n,1))}return o.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Da(t,r.names),{})}},_o=class extends Lc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Sx=class extends Lc{},ll=class extends _o{};ll.kind="else";var Aa=class e extends _o{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let o=r.optimizeNodes();r=this.else=Array.isArray(o)?new ll(o):o}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(SI(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ul(this.condition,t,r),this}get names(){let t=super.names;return Jm(t,this.condition),this.else&&Da(t,this.else.names),t}};Aa.kind="if";var Na=class extends _o{};Na.kind="for";var wx=class extends Na{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ul(this.iteration,t,r),this}get names(){return Da(super.names,this.iteration.names)}},Tx=class extends Na{constructor(t,r,o,n){super(),this.varKind=t,this.name=r,this.from=o,this.to=n}render(t){let r=t.es5?In.varKinds.var:this.varKind,{name:o,from:n,to:i}=this;return`for(${r} ${o}=${n}; ${o}<${i}; ${o}++)`+super.render(t)}get names(){let t=Jm(super.names,this.from);return Jm(t,this.to)}},Km=class extends Na{constructor(t,r,o,n){super(),this.loop=t,this.varKind=r,this.name=o,this.iterable=n}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ul(this.iterable,t,r),this}get names(){return Da(super.names,this.iterable.names)}},qc=class extends _o{constructor(t,r,o){super(),this.name=t,this.args=r,this.async=o}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};qc.kind="func";var Bc=class extends Lc{render(t){return"return "+super.render(t)}};Bc.kind="return";var Ix=class extends _o{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var o,n;return super.optimizeNames(t,r),(o=this.catch)===null||o===void 0||o.optimizeNames(t,r),(n=this.finally)===null||n===void 0||n.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Da(t,this.catch.names),this.finally&&Da(t,this.finally.names),t}},Vc=class extends _o{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Vc.kind="catch";var Hc=class extends _o{render(t){return"finally"+super.render(t)}};Hc.kind="finally";var Ex=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
51
+ `:""},this._extScope=t,this._scope=new In.Scope({parent:t}),this._nodes=[new Sx]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let o=this._extScope.value(t,r);return(this._values[o.prefix]||(this._values[o.prefix]=new Set)).add(o),o}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,o,n){let i=this._scope.toName(r);return o!==void 0&&n&&(this._constants[i.str]=o),this._leafNode(new vx(t,i,o)),i}const(t,r,o){return this._def(In.varKinds.const,t,r,o)}let(t,r,o){return this._def(In.varKinds.let,t,r,o)}var(t,r,o){return this._def(In.varKinds.var,t,r,o)}assign(t,r,o){return this._leafNode(new Wm(t,r,o))}add(t,r){return this._leafNode(new $x(t,le.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==me.nil&&this._leafNode(new _x(t)),this}object(...t){let r=["{"];for(let[o,n]of t)r.length>1&&r.push(","),r.push(o),(o!==n||this.opts.es5)&&(r.push(":"),(0,me.addCodeArg)(r,n));return r.push("}"),new me._Code(r)}if(t,r,o){if(this._blockNode(new Aa(t)),r&&o)this.code(r).else().code(o).endIf();else if(r)this.code(r).endIf();else if(o)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Aa(t))}else(){return this._elseNode(new ll)}endIf(){return this._endBlockNode(Aa,ll)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new wx(t),r)}forRange(t,r,o,n,i=this.opts.es5?In.varKinds.var:In.varKinds.let){let a=this._scope.toName(t);return this._for(new Tx(i,a,r,o),()=>n(a))}forOf(t,r,o,n=In.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let a=r instanceof me.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,me._)`${a}.length`,s=>{this.var(i,(0,me._)`${a}[${s}]`),o(i)})}return this._for(new Km("of",n,i,r),()=>o(i))}forIn(t,r,o,n=this.opts.es5?In.varKinds.var:In.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,me._)`Object.keys(${r})`,o);let i=this._scope.toName(t);return this._for(new Km("in",n,i,r),()=>o(i))}endFor(){return this._endBlockNode(Na)}label(t){return this._leafNode(new bx(t))}break(t){return this._leafNode(new xx(t))}return(t){let r=new Bc;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Bc)}try(t,r,o){if(!r&&!o)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new Ix;if(this._blockNode(n),this.code(t),r){let i=this.name("e");this._currNode=n.catch=new Vc(i),r(i)}return o&&(this._currNode=n.finally=new Hc,this.code(o)),this._endBlockNode(Vc,Hc)}throw(t){return this._leafNode(new kx(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let o=this._nodes.length-r;if(o<0||t!==void 0&&o!==t)throw new Error(`CodeGen: wrong number of nodes: ${o} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=me.nil,o,n){return this._blockNode(new qc(t,r,o)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(qc)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let o=this._currNode;if(o instanceof t||r&&o instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Aa))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};le.CodeGen=Ex;function Da(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Jm(e,t){return t instanceof me._CodeOrName?Da(e,t.names):e}function ul(e,t,r){if(e instanceof me.Name)return o(e);if(!n(e))return e;return new me._Code(e._items.reduce((i,a)=>(a instanceof me.Name&&(a=o(a)),a instanceof me._Code?i.push(...a._items):i.push(a),i),[]));function o(i){let a=r[i.str];return a===void 0||t[i.str]!==1?i:(delete t[i.str],a)}function n(i){return i instanceof me._Code&&i._items.some(a=>a instanceof me.Name&&t[a.str]===1&&r[a.str]!==void 0)}}function Iq(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function SI(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,me._)`!${Mx(e)}`}le.not=SI;var Eq=wI(le.operators.AND);function Mq(...e){return e.reduce(Eq)}le.and=Mq;var Cq=wI(le.operators.OR);function Rq(...e){return e.reduce(Cq)}le.or=Rq;function wI(e){return(t,r)=>t===me.nil?r:r===me.nil?t:(0,me._)`${Mx(t)} ${e} ${Mx(r)}`}function Mx(e){return e instanceof me.Name?e:(0,me._)`(${e})`}});var ye=q(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.checkStrictMode=pe.getErrorPath=pe.Type=pe.useFunc=pe.setEvaluated=pe.evaluatedPropsToName=pe.mergeEvaluated=pe.eachItem=pe.unescapeJsonPointer=pe.escapeJsonPointer=pe.escapeFragment=pe.unescapeFragment=pe.schemaRefOrVal=pe.schemaHasRulesButRef=pe.schemaHasRules=pe.checkUnknownRules=pe.alwaysValidSchema=pe.toHash=void 0;var je=ie(),zq=Uc();function Pq(e){let t={};for(let r of e)t[r]=!0;return t}pe.toHash=Pq;function Oq(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(EI(e,t),!MI(t,e.self.RULES.all))}pe.alwaysValidSchema=Oq;function EI(e,t=e.schema){let{opts:r,self:o}=e;if(!r.strictSchema||typeof t=="boolean")return;let n=o.RULES.keywords;for(let i in t)n[i]||zI(e,`unknown keyword: "${i}"`)}pe.checkUnknownRules=EI;function MI(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}pe.schemaHasRules=MI;function Aq(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}pe.schemaHasRulesButRef=Aq;function Nq({topSchemaRef:e,schemaPath:t},r,o,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,je._)`${r}`}return(0,je._)`${e}${t}${(0,je.getProperty)(o)}`}pe.schemaRefOrVal=Nq;function Dq(e){return CI(decodeURIComponent(e))}pe.unescapeFragment=Dq;function jq(e){return encodeURIComponent(Rx(e))}pe.escapeFragment=jq;function Rx(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}pe.escapeJsonPointer=Rx;function CI(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}pe.unescapeJsonPointer=CI;function Uq(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}pe.eachItem=Uq;function TI({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:o}){return(n,i,a,s)=>{let l=a===void 0?i:a instanceof je.Name?(i instanceof je.Name?e(n,i,a):t(n,i,a),a):i instanceof je.Name?(t(n,a,i),i):r(i,a);return s===je.Name&&!(l instanceof je.Name)?o(n,l):l}}pe.mergeEvaluated={props:TI({mergeNames:(e,t,r)=>e.if((0,je._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,je._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,je._)`${r} || {}`).code((0,je._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,je._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,je._)`${r} || {}`),zx(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:RI}),items:TI({mergeNames:(e,t,r)=>e.if((0,je._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,je._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,je._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,je._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function RI(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,je._)`{}`);return t!==void 0&&zx(e,r,t),r}pe.evaluatedPropsToName=RI;function zx(e,t,r){Object.keys(r).forEach(o=>e.assign((0,je._)`${t}${(0,je.getProperty)(o)}`,!0))}pe.setEvaluated=zx;var II={};function Lq(e,t){return e.scopeValue("func",{ref:t,code:II[t.code]||(II[t.code]=new zq._Code(t.code))})}pe.useFunc=Lq;var Cx;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Cx||(pe.Type=Cx={}));function qq(e,t,r){if(e instanceof je.Name){let o=t===Cx.Num;return r?o?(0,je._)`"[" + ${e} + "]"`:(0,je._)`"['" + ${e} + "']"`:o?(0,je._)`"/" + ${e}`:(0,je._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,je.getProperty)(e).toString():"/"+Rx(e)}pe.getErrorPath=qq;function zI(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}pe.checkStrictMode=zI});var So=q(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});var Xt=ie(),Bq={data:new Xt.Name("data"),valCxt:new Xt.Name("valCxt"),instancePath:new Xt.Name("instancePath"),parentData:new Xt.Name("parentData"),parentDataProperty:new Xt.Name("parentDataProperty"),rootData:new Xt.Name("rootData"),dynamicAnchors:new Xt.Name("dynamicAnchors"),vErrors:new Xt.Name("vErrors"),errors:new Xt.Name("errors"),this:new Xt.Name("this"),self:new Xt.Name("self"),scope:new Xt.Name("scope"),json:new Xt.Name("json"),jsonPos:new Xt.Name("jsonPos"),jsonLen:new Xt.Name("jsonLen"),jsonPart:new Xt.Name("jsonPart")};Px.default=Bq});var Gc=q(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.extendErrors=Qt.resetErrorsCount=Qt.reportExtraError=Qt.reportError=Qt.keyword$DataError=Qt.keywordError=void 0;var ve=ie(),Xm=ye(),ur=So();Qt.keywordError={message:({keyword:e})=>(0,ve.str)`must pass "${e}" keyword validation`};Qt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ve.str)`"${e}" keyword must be ${t} ($data)`:(0,ve.str)`"${e}" keyword is invalid ($data)`};function Vq(e,t=Qt.keywordError,r,o){let{it:n}=e,{gen:i,compositeRule:a,allErrors:s}=n,l=AI(e,t,r);o??(a||s)?PI(i,l):OI(n,(0,ve._)`[${l}]`)}Qt.reportError=Vq;function Hq(e,t=Qt.keywordError,r){let{it:o}=e,{gen:n,compositeRule:i,allErrors:a}=o,s=AI(e,t,r);PI(n,s),i||a||OI(o,ur.default.vErrors)}Qt.reportExtraError=Hq;function Gq(e,t){e.assign(ur.default.errors,t),e.if((0,ve._)`${ur.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ve._)`${ur.default.vErrors}.length`,t),()=>e.assign(ur.default.vErrors,null)))}Qt.resetErrorsCount=Gq;function Zq({gen:e,keyword:t,schemaValue:r,data:o,errsCount:n,it:i}){if(n===void 0)throw new Error("ajv implementation error");let a=e.name("err");e.forRange("i",n,ur.default.errors,s=>{e.const(a,(0,ve._)`${ur.default.vErrors}[${s}]`),e.if((0,ve._)`${a}.instancePath === undefined`,()=>e.assign((0,ve._)`${a}.instancePath`,(0,ve.strConcat)(ur.default.instancePath,i.errorPath))),e.assign((0,ve._)`${a}.schemaPath`,(0,ve.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,ve._)`${a}.schema`,r),e.assign((0,ve._)`${a}.data`,o))})}Qt.extendErrors=Zq;function PI(e,t){let r=e.const("err",t);e.if((0,ve._)`${ur.default.vErrors} === null`,()=>e.assign(ur.default.vErrors,(0,ve._)`[${r}]`),(0,ve._)`${ur.default.vErrors}.push(${r})`),e.code((0,ve._)`${ur.default.errors}++`)}function OI(e,t){let{gen:r,validateName:o,schemaEnv:n}=e;n.$async?r.throw((0,ve._)`new ${e.ValidationError}(${t})`):(r.assign((0,ve._)`${o}.errors`,t),r.return(!1))}var ja={keyword:new ve.Name("keyword"),schemaPath:new ve.Name("schemaPath"),params:new ve.Name("params"),propertyName:new ve.Name("propertyName"),message:new ve.Name("message"),schema:new ve.Name("schema"),parentSchema:new ve.Name("parentSchema")};function AI(e,t,r){let{createErrors:o}=e.it;return o===!1?(0,ve._)`{}`:Fq(e,t,r)}function Fq(e,t,r={}){let{gen:o,it:n}=e,i=[Wq(n,r),Kq(e,r)];return Jq(e,t,i),o.object(...i)}function Wq({errorPath:e},{instancePath:t}){let r=t?(0,ve.str)`${e}${(0,Xm.getErrorPath)(t,Xm.Type.Str)}`:e;return[ur.default.instancePath,(0,ve.strConcat)(ur.default.instancePath,r)]}function Kq({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:o}){let n=o?t:(0,ve.str)`${t}/${e}`;return r&&(n=(0,ve.str)`${n}${(0,Xm.getErrorPath)(r,Xm.Type.Str)}`),[ja.schemaPath,n]}function Jq(e,{params:t,message:r},o){let{keyword:n,data:i,schemaValue:a,it:s}=e,{opts:l,propertyName:u,topSchemaRef:c,schemaPath:p}=s;o.push([ja.keyword,n],[ja.params,typeof t=="function"?t(e):t||(0,ve._)`{}`]),l.messages&&o.push([ja.message,typeof r=="function"?r(e):r]),l.verbose&&o.push([ja.schema,a],[ja.parentSchema,(0,ve._)`${c}${p}`],[ur.default.data,i]),u&&o.push([ja.propertyName,u])}});var DI=q(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.boolOrEmptySchema=cl.topBoolOrEmptySchema=void 0;var Yq=Gc(),Xq=ie(),Qq=So(),eB={message:"boolean schema is false"};function tB(e){let{gen:t,schema:r,validateName:o}=e;r===!1?NI(e,!1):typeof r=="object"&&r.$async===!0?t.return(Qq.default.data):(t.assign((0,Xq._)`${o}.errors`,null),t.return(!0))}cl.topBoolOrEmptySchema=tB;function rB(e,t){let{gen:r,schema:o}=e;o===!1?(r.var(t,!1),NI(e)):r.var(t,!0)}cl.boolOrEmptySchema=rB;function NI(e,t){let{gen:r,data:o}=e,n={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Yq.reportError)(n,eB,void 0,t)}});var Ox=q(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.getRules=pl.isJSONType=void 0;var nB=["string","number","integer","boolean","null","object","array"],oB=new Set(nB);function iB(e){return typeof e=="string"&&oB.has(e)}pl.isJSONType=iB;function aB(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}pl.getRules=aB});var Ax=q(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.shouldUseRule=ki.shouldUseGroup=ki.schemaHasRulesForType=void 0;function sB({schema:e,self:t},r){let o=t.RULES.types[r];return o&&o!==!0&&jI(e,o)}ki.schemaHasRulesForType=sB;function jI(e,t){return t.rules.some(r=>UI(e,r))}ki.shouldUseGroup=jI;function UI(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(o=>e[o]!==void 0))}ki.shouldUseRule=UI});var Zc=q(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.reportTypeError=er.checkDataTypes=er.checkDataType=er.coerceAndCheckDataType=er.getJSONTypes=er.getSchemaTypes=er.DataType=void 0;var lB=Ox(),uB=Ax(),cB=Gc(),ne=ie(),LI=ye(),dl;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(dl||(er.DataType=dl={}));function pB(e){let t=qI(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}er.getSchemaTypes=pB;function qI(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(lB.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}er.getJSONTypes=qI;function dB(e,t){let{gen:r,data:o,opts:n}=e,i=fB(t,n.coerceTypes),a=t.length>0&&!(i.length===0&&t.length===1&&(0,uB.schemaHasRulesForType)(e,t[0]));if(a){let s=Dx(t,o,n.strictNumbers,dl.Wrong);r.if(s,()=>{i.length?mB(e,t,i):jx(e)})}return a}er.coerceAndCheckDataType=dB;var BI=new Set(["string","number","integer","boolean","null"]);function fB(e,t){return t?e.filter(r=>BI.has(r)||t==="array"&&r==="array"):[]}function mB(e,t,r){let{gen:o,data:n,opts:i}=e,a=o.let("dataType",(0,ne._)`typeof ${n}`),s=o.let("coerced",(0,ne._)`undefined`);i.coerceTypes==="array"&&o.if((0,ne._)`${a} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>o.assign(n,(0,ne._)`${n}[0]`).assign(a,(0,ne._)`typeof ${n}`).if(Dx(t,n,i.strictNumbers),()=>o.assign(s,n))),o.if((0,ne._)`${s} !== undefined`);for(let u of r)(BI.has(u)||u==="array"&&i.coerceTypes==="array")&&l(u);o.else(),jx(e),o.endIf(),o.if((0,ne._)`${s} !== undefined`,()=>{o.assign(n,s),gB(e,s)});function l(u){switch(u){case"string":o.elseIf((0,ne._)`${a} == "number" || ${a} == "boolean"`).assign(s,(0,ne._)`"" + ${n}`).elseIf((0,ne._)`${n} === null`).assign(s,(0,ne._)`""`);return;case"number":o.elseIf((0,ne._)`${a} == "boolean" || ${n} === null
52
+ || (${a} == "string" && ${n} && ${n} == +${n})`).assign(s,(0,ne._)`+${n}`);return;case"integer":o.elseIf((0,ne._)`${a} === "boolean" || ${n} === null
53
+ || (${a} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(s,(0,ne._)`+${n}`);return;case"boolean":o.elseIf((0,ne._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(s,!1).elseIf((0,ne._)`${n} === "true" || ${n} === 1`).assign(s,!0);return;case"null":o.elseIf((0,ne._)`${n} === "" || ${n} === 0 || ${n} === false`),o.assign(s,null);return;case"array":o.elseIf((0,ne._)`${a} === "string" || ${a} === "number"
54
+ || ${a} === "boolean" || ${n} === null`).assign(s,(0,ne._)`[${n}]`)}}}function gB({gen:e,parentData:t,parentDataProperty:r},o){e.if((0,ne._)`${t} !== undefined`,()=>e.assign((0,ne._)`${t}[${r}]`,o))}function Nx(e,t,r,o=dl.Correct){let n=o===dl.Correct?ne.operators.EQ:ne.operators.NEQ,i;switch(e){case"null":return(0,ne._)`${t} ${n} null`;case"array":i=(0,ne._)`Array.isArray(${t})`;break;case"object":i=(0,ne._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=a((0,ne._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=a();break;default:return(0,ne._)`typeof ${t} ${n} ${e}`}return o===dl.Correct?i:(0,ne.not)(i);function a(s=ne.nil){return(0,ne.and)((0,ne._)`typeof ${t} == "number"`,s,r?(0,ne._)`isFinite(${t})`:ne.nil)}}er.checkDataType=Nx;function Dx(e,t,r,o){if(e.length===1)return Nx(e[0],t,r,o);let n,i=(0,LI.toHash)(e);if(i.array&&i.object){let a=(0,ne._)`typeof ${t} != "object"`;n=i.null?a:(0,ne._)`!${t} || ${a}`,delete i.null,delete i.array,delete i.object}else n=ne.nil;i.number&&delete i.integer;for(let a in i)n=(0,ne.and)(n,Nx(a,t,r,o));return n}er.checkDataTypes=Dx;var hB={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ne._)`{type: ${e}}`:(0,ne._)`{type: ${t}}`};function jx(e){let t=yB(e);(0,cB.reportError)(t,hB)}er.reportTypeError=jx;function yB(e){let{gen:t,data:r,schema:o}=e,n=(0,LI.schemaRefOrVal)(e,o,"type");return{gen:t,keyword:"type",data:r,schema:o.type,schemaCode:n,schemaValue:n,parentSchema:o,params:{},it:e}}});var HI=q(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.assignDefaults=void 0;var fl=ie(),vB=ye();function $B(e,t){let{properties:r,items:o}=e.schema;if(t==="object"&&r)for(let n in r)VI(e,n,r[n].default);else t==="array"&&Array.isArray(o)&&o.forEach((n,i)=>VI(e,i,n.default))}Qm.assignDefaults=$B;function VI(e,t,r){let{gen:o,compositeRule:n,data:i,opts:a}=e;if(r===void 0)return;let s=(0,fl._)`${i}${(0,fl.getProperty)(t)}`;if(n){(0,vB.checkStrictMode)(e,`default is ignored for: ${s}`);return}let l=(0,fl._)`${s} === undefined`;a.useDefaults==="empty"&&(l=(0,fl._)`${l} || ${s} === null || ${s} === ""`),o.if(l,(0,fl._)`${s} = ${(0,fl.stringify)(r)}`)}});var Yr=q(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.validateUnion=Re.validateArray=Re.usePattern=Re.callValidateCode=Re.schemaProperties=Re.allSchemaProperties=Re.noPropertyInData=Re.propertyInData=Re.isOwnProperty=Re.hasPropFunc=Re.reportMissingProp=Re.checkMissingProp=Re.checkReportMissingProp=void 0;var Fe=ie(),Ux=ye(),_i=So(),bB=ye();function xB(e,t){let{gen:r,data:o,it:n}=e;r.if(qx(r,o,t,n.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Fe._)`${t}`},!0),e.error()})}Re.checkReportMissingProp=xB;function kB({gen:e,data:t,it:{opts:r}},o,n){return(0,Fe.or)(...o.map(i=>(0,Fe.and)(qx(e,t,i,r.ownProperties),(0,Fe._)`${n} = ${i}`)))}Re.checkMissingProp=kB;function _B(e,t){e.setParams({missingProperty:t},!0),e.error()}Re.reportMissingProp=_B;function GI(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Fe._)`Object.prototype.hasOwnProperty`})}Re.hasPropFunc=GI;function Lx(e,t,r){return(0,Fe._)`${GI(e)}.call(${t}, ${r})`}Re.isOwnProperty=Lx;function SB(e,t,r,o){let n=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} !== undefined`;return o?(0,Fe._)`${n} && ${Lx(e,t,r)}`:n}Re.propertyInData=SB;function qx(e,t,r,o){let n=(0,Fe._)`${t}${(0,Fe.getProperty)(r)} === undefined`;return o?(0,Fe.or)(n,(0,Fe.not)(Lx(e,t,r))):n}Re.noPropertyInData=qx;function ZI(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Re.allSchemaProperties=ZI;function wB(e,t){return ZI(t).filter(r=>!(0,Ux.alwaysValidSchema)(e,t[r]))}Re.schemaProperties=wB;function TB({schemaCode:e,data:t,it:{gen:r,topSchemaRef:o,schemaPath:n,errorPath:i},it:a},s,l,u){let c=u?(0,Fe._)`${e}, ${t}, ${o}${n}`:t,p=[[_i.default.instancePath,(0,Fe.strConcat)(_i.default.instancePath,i)],[_i.default.parentData,a.parentData],[_i.default.parentDataProperty,a.parentDataProperty],[_i.default.rootData,_i.default.rootData]];a.opts.dynamicRef&&p.push([_i.default.dynamicAnchors,_i.default.dynamicAnchors]);let d=(0,Fe._)`${c}, ${r.object(...p)}`;return l!==Fe.nil?(0,Fe._)`${s}.call(${l}, ${d})`:(0,Fe._)`${s}(${d})`}Re.callValidateCode=TB;var IB=(0,Fe._)`new RegExp`;function EB({gen:e,it:{opts:t}},r){let o=t.unicodeRegExp?"u":"",{regExp:n}=t.code,i=n(r,o);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Fe._)`${n.code==="new RegExp"?IB:(0,bB.useFunc)(e,n)}(${r}, ${o})`})}Re.usePattern=EB;function MB(e){let{gen:t,data:r,keyword:o,it:n}=e,i=t.name("valid");if(n.allErrors){let s=t.let("valid",!0);return a(()=>t.assign(s,!1)),s}return t.var(i,!0),a(()=>t.break()),i;function a(s){let l=t.const("len",(0,Fe._)`${r}.length`);t.forRange("i",0,l,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Ux.Type.Num},i),t.if((0,Fe.not)(i),s)})}}Re.validateArray=MB;function CB(e){let{gen:t,schema:r,keyword:o,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(l=>(0,Ux.alwaysValidSchema)(n,l))&&!n.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((l,u)=>{let c=e.subschema({keyword:o,schemaProp:u,compositeRule:!0},s);t.assign(a,(0,Fe._)`${a} || ${s}`),e.mergeValidEvaluated(c,s)||t.if((0,Fe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Re.validateUnion=CB});var KI=q(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.validateKeywordUsage=Kn.validSchemaType=Kn.funcKeywordCode=Kn.macroKeywordCode=void 0;var cr=ie(),Ua=So(),RB=Yr(),zB=Gc();function PB(e,t){let{gen:r,keyword:o,schema:n,parentSchema:i,it:a}=e,s=t.macro.call(a.self,n,i,a),l=WI(r,o,s);a.opts.validateSchema!==!1&&a.self.validateSchema(s,!0);let u=r.name("valid");e.subschema({schema:s,schemaPath:cr.nil,errSchemaPath:`${a.errSchemaPath}/${o}`,topSchemaRef:l,compositeRule:!0},u),e.pass(u,()=>e.error(!0))}Kn.macroKeywordCode=PB;function OB(e,t){var r;let{gen:o,keyword:n,schema:i,parentSchema:a,$data:s,it:l}=e;NB(l,t);let u=!s&&t.compile?t.compile.call(l.self,i,a,l):t.validate,c=WI(o,n,u),p=o.let("valid");e.block$data(p,d),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function d(){if(t.errors===!1)v(),t.modifying&&FI(e),b(()=>e.error());else{let y=t.async?f():m();t.modifying&&FI(e),b(()=>AB(e,y))}}function f(){let y=o.let("ruleErrs",null);return o.try(()=>v((0,cr._)`await `),h=>o.assign(p,!1).if((0,cr._)`${h} instanceof ${l.ValidationError}`,()=>o.assign(y,(0,cr._)`${h}.errors`),()=>o.throw(h))),y}function m(){let y=(0,cr._)`${c}.errors`;return o.assign(y,null),v(cr.nil),y}function v(y=t.async?(0,cr._)`await `:cr.nil){let h=l.opts.passContext?Ua.default.this:Ua.default.self,$=!("compile"in t&&!s||t.schema===!1);o.assign(p,(0,cr._)`${y}${(0,RB.callValidateCode)(e,c,h,$)}`,t.modifying)}function b(y){var h;o.if((0,cr.not)((h=t.valid)!==null&&h!==void 0?h:p),y)}}Kn.funcKeywordCode=OB;function FI(e){let{gen:t,data:r,it:o}=e;t.if(o.parentData,()=>t.assign(r,(0,cr._)`${o.parentData}[${o.parentDataProperty}]`))}function AB(e,t){let{gen:r}=e;r.if((0,cr._)`Array.isArray(${t})`,()=>{r.assign(Ua.default.vErrors,(0,cr._)`${Ua.default.vErrors} === null ? ${t} : ${Ua.default.vErrors}.concat(${t})`).assign(Ua.default.errors,(0,cr._)`${Ua.default.vErrors}.length`),(0,zB.extendErrors)(e)},()=>e.error())}function NB({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function WI(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,cr.stringify)(r)})}function DB(e,t,r=!1){return!t.length||t.some(o=>o==="array"?Array.isArray(e):o==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==o||r&&typeof e>"u")}Kn.validSchemaType=DB;function jB({schema:e,opts:t,self:r,errSchemaPath:o},n,i){if(Array.isArray(n.keyword)?!n.keyword.includes(i):n.keyword!==i)throw new Error("ajv implementation error");let a=n.dependencies;if(a?.some(s=>!Object.prototype.hasOwnProperty.call(e,s)))throw new Error(`parent schema must have dependencies of ${i}: ${a.join(",")}`);if(n.validateSchema&&!n.validateSchema(e[i])){let l=`keyword "${i}" value is invalid at path "${o}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(l);else throw new Error(l)}}Kn.validateKeywordUsage=jB});var YI=q(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.extendSubschemaMode=Si.extendSubschemaData=Si.getSubschema=void 0;var Jn=ie(),JI=ye();function UB(e,{keyword:t,schemaProp:r,schema:o,schemaPath:n,errSchemaPath:i,topSchemaRef:a}){if(t!==void 0&&o!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let s=e.schema[t];return r===void 0?{schema:s,schemaPath:(0,Jn._)`${e.schemaPath}${(0,Jn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[r],schemaPath:(0,Jn._)`${e.schemaPath}${(0,Jn.getProperty)(t)}${(0,Jn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,JI.escapeFragment)(r)}`}}if(o!==void 0){if(n===void 0||i===void 0||a===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:n,topSchemaRef:a,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Si.getSubschema=UB;function LB(e,t,{dataProp:r,dataPropType:o,data:n,dataTypes:i,propertyName:a}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:s}=t;if(r!==void 0){let{errorPath:u,dataPathArr:c,opts:p}=t,d=s.let("data",(0,Jn._)`${t.data}${(0,Jn.getProperty)(r)}`,!0);l(d),e.errorPath=(0,Jn.str)`${u}${(0,JI.getErrorPath)(r,o,p.jsPropertySyntax)}`,e.parentDataProperty=(0,Jn._)`${r}`,e.dataPathArr=[...c,e.parentDataProperty]}if(n!==void 0){let u=n instanceof Jn.Name?n:s.let("data",n,!0);l(u),a!==void 0&&(e.propertyName=a)}i&&(e.dataTypes=i);function l(u){e.data=u,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,u]}}Si.extendSubschemaData=LB;function qB(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:o,createErrors:n,allErrors:i}){o!==void 0&&(e.compositeRule=o),n!==void 0&&(e.createErrors=n),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Si.extendSubschemaMode=qB});var Bx=q((xie,XI)=>{"use strict";XI.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var o,n,i;if(Array.isArray(t)){if(o=t.length,o!=r.length)return!1;for(n=o;n--!==0;)if(!e(t[n],r[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),o=i.length,o!==Object.keys(r).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[n]))return!1;for(n=o;n--!==0;){var a=i[n];if(!e(t[a],r[a]))return!1}return!0}return t!==t&&r!==r}});var eE=q((kie,QI)=>{"use strict";var wi=QI.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var o=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};eg(t,o,n,e,"",e)};wi.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};wi.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};wi.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};wi.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function eg(e,t,r,o,n,i,a,s,l,u){if(o&&typeof o=="object"&&!Array.isArray(o)){t(o,n,i,a,s,l,u);for(var c in o){var p=o[c];if(Array.isArray(p)){if(c in wi.arrayKeywords)for(var d=0;d<p.length;d++)eg(e,t,r,p[d],n+"/"+c+"/"+d,i,n,c,o,d)}else if(c in wi.propsKeywords){if(p&&typeof p=="object")for(var f in p)eg(e,t,r,p[f],n+"/"+c+"/"+BB(f),i,n,c,o,f)}else(c in wi.keywords||e.allKeys&&!(c in wi.skipKeywords))&&eg(e,t,r,p,n+"/"+c,i,n,c,o)}r(o,n,i,a,s,l,u)}}function BB(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Fc=q(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.getSchemaRefs=wr.resolveUrl=wr.normalizeId=wr._getFullPath=wr.getFullPath=wr.inlineRef=void 0;var VB=ye(),HB=Bx(),GB=eE(),ZB=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function FB(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Vx(e):t?tE(e)<=t:!1}wr.inlineRef=FB;var WB=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Vx(e){for(let t in e){if(WB.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Vx)||typeof r=="object"&&Vx(r))return!0}return!1}function tE(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!ZB.has(r)&&(typeof e[r]=="object"&&(0,VB.eachItem)(e[r],o=>t+=tE(o)),t===1/0))return 1/0}return t}function rE(e,t="",r){r!==!1&&(t=ml(t));let o=e.parse(t);return nE(e,o)}wr.getFullPath=rE;function nE(e,t){return e.serialize(t).split("#")[0]+"#"}wr._getFullPath=nE;var KB=/#\/?$/;function ml(e){return e?e.replace(KB,""):""}wr.normalizeId=ml;function JB(e,t,r){return r=ml(r),e.resolve(t,r)}wr.resolveUrl=JB;var YB=/^[a-z_][-a-z0-9._]*$/i;function XB(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:o}=this.opts,n=ml(e[r]||t),i={"":n},a=rE(o,n,!1),s={},l=new Set;return GB(e,{allKeys:!0},(p,d,f,m)=>{if(m===void 0)return;let v=a+d,b=i[m];typeof p[r]=="string"&&(b=y.call(this,p[r])),h.call(this,p.$anchor),h.call(this,p.$dynamicAnchor),i[d]=b;function y($){let _=this.opts.uriResolver.resolve;if($=ml(b?_(b,$):$),l.has($))throw c($);l.add($);let S=this.refs[$];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?u(p,S.schema,$):$!==ml(v)&&($[0]==="#"?(u(p,s[$],$),s[$]=p):this.refs[$]=v),$}function h($){if(typeof $=="string"){if(!YB.test($))throw new Error(`invalid anchor "${$}"`);y.call(this,`#${$}`)}}}),s;function u(p,d,f){if(d!==void 0&&!HB(p,d))throw c(f)}function c(p){return new Error(`reference "${p}" resolves to more than one schema`)}}wr.getSchemaRefs=XB});var Jc=q(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.getData=Ti.KeywordCxt=Ti.validateFunctionCode=void 0;var lE=DI(),oE=Zc(),Gx=Ax(),tg=Zc(),QB=HI(),Kc=KI(),Hx=YI(),F=ie(),Q=So(),eV=Fc(),wo=ye(),Wc=Gc();function tV(e){if(pE(e)&&(dE(e),cE(e))){oV(e);return}uE(e,()=>(0,lE.topBoolOrEmptySchema)(e))}Ti.validateFunctionCode=tV;function uE({gen:e,validateName:t,schema:r,schemaEnv:o,opts:n},i){n.code.es5?e.func(t,(0,F._)`${Q.default.data}, ${Q.default.valCxt}`,o.$async,()=>{e.code((0,F._)`"use strict"; ${iE(r,n)}`),nV(e,n),e.code(i)}):e.func(t,(0,F._)`${Q.default.data}, ${rV(n)}`,o.$async,()=>e.code(iE(r,n)).code(i))}function rV(e){return(0,F._)`{${Q.default.instancePath}="", ${Q.default.parentData}, ${Q.default.parentDataProperty}, ${Q.default.rootData}=${Q.default.data}${e.dynamicRef?(0,F._)`, ${Q.default.dynamicAnchors}={}`:F.nil}}={}`}function nV(e,t){e.if(Q.default.valCxt,()=>{e.var(Q.default.instancePath,(0,F._)`${Q.default.valCxt}.${Q.default.instancePath}`),e.var(Q.default.parentData,(0,F._)`${Q.default.valCxt}.${Q.default.parentData}`),e.var(Q.default.parentDataProperty,(0,F._)`${Q.default.valCxt}.${Q.default.parentDataProperty}`),e.var(Q.default.rootData,(0,F._)`${Q.default.valCxt}.${Q.default.rootData}`),t.dynamicRef&&e.var(Q.default.dynamicAnchors,(0,F._)`${Q.default.valCxt}.${Q.default.dynamicAnchors}`)},()=>{e.var(Q.default.instancePath,(0,F._)`""`),e.var(Q.default.parentData,(0,F._)`undefined`),e.var(Q.default.parentDataProperty,(0,F._)`undefined`),e.var(Q.default.rootData,Q.default.data),t.dynamicRef&&e.var(Q.default.dynamicAnchors,(0,F._)`{}`)})}function oV(e){let{schema:t,opts:r,gen:o}=e;uE(e,()=>{r.$comment&&t.$comment&&mE(e),uV(e),o.let(Q.default.vErrors,null),o.let(Q.default.errors,0),r.unevaluated&&iV(e),fE(e),dV(e)})}function iV(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,F._)`${r}.evaluated`),t.if((0,F._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,F._)`${e.evaluated}.props`,(0,F._)`undefined`)),t.if((0,F._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,F._)`${e.evaluated}.items`,(0,F._)`undefined`))}function iE(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,F._)`/*# sourceURL=${r} */`:F.nil}function aV(e,t){if(pE(e)&&(dE(e),cE(e))){sV(e,t);return}(0,lE.boolOrEmptySchema)(e,t)}function cE({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function pE(e){return typeof e.schema!="boolean"}function sV(e,t){let{schema:r,gen:o,opts:n}=e;n.$comment&&r.$comment&&mE(e),cV(e),pV(e);let i=o.const("_errs",Q.default.errors);fE(e,i),o.var(t,(0,F._)`${i} === ${Q.default.errors}`)}function dE(e){(0,wo.checkUnknownRules)(e),lV(e)}function fE(e,t){if(e.opts.jtd)return aE(e,[],!1,t);let r=(0,oE.getSchemaTypes)(e.schema),o=(0,oE.coerceAndCheckDataType)(e,r);aE(e,r,!o,t)}function lV(e){let{schema:t,errSchemaPath:r,opts:o,self:n}=e;t.$ref&&o.ignoreKeywordsWithRef&&(0,wo.schemaHasRulesButRef)(t,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function uV(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,wo.checkStrictMode)(e,"default is ignored in the schema root")}function cV(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,eV.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function pV(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function mE({gen:e,schemaEnv:t,schema:r,errSchemaPath:o,opts:n}){let i=r.$comment;if(n.$comment===!0)e.code((0,F._)`${Q.default.self}.logger.log(${i})`);else if(typeof n.$comment=="function"){let a=(0,F.str)`${o}/$comment`,s=e.scopeValue("root",{ref:t.root});e.code((0,F._)`${Q.default.self}.opts.$comment(${i}, ${a}, ${s}.schema)`)}}function dV(e){let{gen:t,schemaEnv:r,validateName:o,ValidationError:n,opts:i}=e;r.$async?t.if((0,F._)`${Q.default.errors} === 0`,()=>t.return(Q.default.data),()=>t.throw((0,F._)`new ${n}(${Q.default.vErrors})`)):(t.assign((0,F._)`${o}.errors`,Q.default.vErrors),i.unevaluated&&fV(e),t.return((0,F._)`${Q.default.errors} === 0`))}function fV({gen:e,evaluated:t,props:r,items:o}){r instanceof F.Name&&e.assign((0,F._)`${t}.props`,r),o instanceof F.Name&&e.assign((0,F._)`${t}.items`,o)}function aE(e,t,r,o){let{gen:n,schema:i,data:a,allErrors:s,opts:l,self:u}=e,{RULES:c}=u;if(i.$ref&&(l.ignoreKeywordsWithRef||!(0,wo.schemaHasRulesButRef)(i,c))){n.block(()=>hE(e,"$ref",c.all.$ref.definition));return}l.jtd||mV(e,t),n.block(()=>{for(let d of c.rules)p(d);p(c.post)});function p(d){(0,Gx.shouldUseGroup)(i,d)&&(d.type?(n.if((0,tg.checkDataType)(d.type,a,l.strictNumbers)),sE(e,d),t.length===1&&t[0]===d.type&&r&&(n.else(),(0,tg.reportTypeError)(e)),n.endIf()):sE(e,d),s||n.if((0,F._)`${Q.default.errors} === ${o||0}`))}}function sE(e,t){let{gen:r,schema:o,opts:{useDefaults:n}}=e;n&&(0,QB.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,Gx.shouldUseRule)(o,i)&&hE(e,i.keyword,i.definition,t.type)})}function mV(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(gV(e,t),e.opts.allowUnionTypes||hV(e,t),yV(e,e.dataTypes))}function gV(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{gE(e.dataTypes,r)||Zx(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),$V(e,t)}}function hV(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Zx(e,"use allowUnionTypes to allow union type keyword")}function yV(e,t){let r=e.self.RULES.all;for(let o in r){let n=r[o];if(typeof n=="object"&&(0,Gx.shouldUseRule)(e.schema,n)){let{type:i}=n.definition;i.length&&!i.some(a=>vV(t,a))&&Zx(e,`missing type "${i.join(",")}" for keyword "${o}"`)}}}function vV(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function gE(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function $V(e,t){let r=[];for(let o of e.dataTypes)gE(t,o)?r.push(o):t.includes("integer")&&o==="number"&&r.push("integer");e.dataTypes=r}function Zx(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,wo.checkStrictMode)(e,t,e.opts.strictTypes)}var rg=class{constructor(t,r,o){if((0,Kc.validateKeywordUsage)(t,r,o),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=o,this.data=t.data,this.schema=t.schema[o],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,wo.schemaRefOrVal)(t,this.schema,o,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",yE(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Kc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${o} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Q.default.errors))}result(t,r,o){this.failResult((0,F.not)(t),r,o)}failResult(t,r,o){this.gen.if(t),o?o():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,F.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,F._)`${r} !== undefined && (${(0,F.or)(this.invalid$data(),t)})`)}error(t,r,o){if(r){this.setParams(r),this._error(t,o),this.setParams({});return}this._error(t,o)}_error(t,r){(t?Wc.reportExtraError:Wc.reportError)(this,this.def.error,r)}$dataError(){(0,Wc.reportError)(this,this.def.$dataError||Wc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,o=F.nil){this.gen.block(()=>{this.check$data(t,o),r()})}check$data(t=F.nil,r=F.nil){if(!this.$data)return;let{gen:o,schemaCode:n,schemaType:i,def:a}=this;o.if((0,F.or)((0,F._)`${n} === undefined`,r)),t!==F.nil&&o.assign(t,!0),(i.length||a.validateSchema)&&(o.elseIf(this.invalid$data()),this.$dataError(),t!==F.nil&&o.assign(t,!1)),o.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:o,def:n,it:i}=this;return(0,F.or)(a(),s());function a(){if(o.length){if(!(r instanceof F.Name))throw new Error("ajv implementation error");let l=Array.isArray(o)?o:[o];return(0,F._)`${(0,tg.checkDataTypes)(l,r,i.opts.strictNumbers,tg.DataType.Wrong)}`}return F.nil}function s(){if(n.validateSchema){let l=t.scopeValue("validate$data",{ref:n.validateSchema});return(0,F._)`!${l}(${r})`}return F.nil}}subschema(t,r){let o=(0,Hx.getSubschema)(this.it,t);(0,Hx.extendSubschemaData)(o,this.it,t),(0,Hx.extendSubschemaMode)(o,t);let n={...this.it,...o,items:void 0,props:void 0};return aV(n,r),n}mergeEvaluated(t,r){let{it:o,gen:n}=this;o.opts.unevaluated&&(o.props!==!0&&t.props!==void 0&&(o.props=wo.mergeEvaluated.props(n,t.props,o.props,r)),o.items!==!0&&t.items!==void 0&&(o.items=wo.mergeEvaluated.items(n,t.items,o.items,r)))}mergeValidEvaluated(t,r){let{it:o,gen:n}=this;if(o.opts.unevaluated&&(o.props!==!0||o.items!==!0))return n.if(r,()=>this.mergeEvaluated(t,F.Name)),!0}};Ti.KeywordCxt=rg;function hE(e,t,r,o){let n=new rg(e,r,t);"code"in r?r.code(n,o):n.$data&&r.validate?(0,Kc.funcKeywordCode)(n,r):"macro"in r?(0,Kc.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,Kc.funcKeywordCode)(n,r)}var bV=/^\/(?:[^~]|~0|~1)*$/,xV=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function yE(e,{dataLevel:t,dataNames:r,dataPathArr:o}){let n,i;if(e==="")return Q.default.rootData;if(e[0]==="/"){if(!bV.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e,i=Q.default.rootData}else{let u=xV.exec(e);if(!u)throw new Error(`Invalid JSON-pointer: ${e}`);let c=+u[1];if(n=u[2],n==="#"){if(c>=t)throw new Error(l("property/index",c));return o[t-c]}if(c>t)throw new Error(l("data",c));if(i=r[t-c],!n)return i}let a=i,s=n.split("/");for(let u of s)u&&(i=(0,F._)`${i}${(0,F.getProperty)((0,wo.unescapeJsonPointer)(u))}`,a=(0,F._)`${a} && ${i}`);return a;function l(u,c){return`Cannot access ${u} ${c} levels up, current level is ${t}`}}Ti.getData=yE});var ng=q(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0});var Fx=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Wx.default=Fx});var Yc=q(Yx=>{"use strict";Object.defineProperty(Yx,"__esModule",{value:!0});var Kx=Fc(),Jx=class extends Error{constructor(t,r,o,n){super(n||`can't resolve reference ${o} from id ${r}`),this.missingRef=(0,Kx.resolveUrl)(t,r,o),this.missingSchema=(0,Kx.normalizeId)((0,Kx.getFullPath)(t,this.missingRef))}};Yx.default=Jx});var ig=q(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.resolveSchema=Xr.getCompilingSchema=Xr.resolveRef=Xr.compileSchema=Xr.SchemaEnv=void 0;var En=ie(),kV=ng(),La=So(),Mn=Fc(),vE=ye(),_V=Jc(),gl=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let o;typeof t.schema=="object"&&(o=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Mn.normalizeId)(o?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=o?.$async,this.refs={}}};Xr.SchemaEnv=gl;function Qx(e){let t=$E.call(this,e);if(t)return t;let r=(0,Mn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:o,lines:n}=this.opts.code,{ownProperties:i}=this.opts,a=new En.CodeGen(this.scope,{es5:o,lines:n,ownProperties:i}),s;e.$async&&(s=a.scopeValue("Error",{ref:kV.default,code:(0,En._)`require("ajv/dist/runtime/validation_error").default`}));let l=a.scopeName("validate");e.validateName=l;let u={gen:a,allErrors:this.opts.allErrors,data:La.default.data,parentData:La.default.parentData,parentDataProperty:La.default.parentDataProperty,dataNames:[La.default.data],dataPathArr:[En.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:a.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,En.stringify)(e.schema)}:{ref:e.schema}),validateName:l,ValidationError:s,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:En.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,En._)`""`,opts:this.opts,self:this},c;try{this._compilations.add(e),(0,_V.validateFunctionCode)(u),a.optimize(this.opts.code.optimize);let p=a.toString();c=`${a.scopeRefs(La.default.scope)}return ${p}`,this.opts.code.process&&(c=this.opts.code.process(c,e));let f=new Function(`${La.default.self}`,`${La.default.scope}`,c)(this,this.scope.get());if(this.scope.value(l,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:l,validateCode:p,scopeValues:a._values}),this.opts.unevaluated){let{props:m,items:v}=u;f.evaluated={props:m instanceof En.Name?void 0:m,items:v instanceof En.Name?void 0:v,dynamicProps:m instanceof En.Name,dynamicItems:v instanceof En.Name},f.source&&(f.source.evaluated=(0,En.stringify)(f.evaluated))}return e.validate=f,e}catch(p){throw delete e.validate,delete e.validateName,c&&this.logger.error("Error compiling schema, function code:",c),p}finally{this._compilations.delete(e)}}Xr.compileSchema=Qx;function SV(e,t,r){var o;r=(0,Mn.resolveUrl)(this.opts.uriResolver,t,r);let n=e.refs[r];if(n)return n;let i=IV.call(this,e,r);if(i===void 0){let a=(o=e.localRefs)===null||o===void 0?void 0:o[r],{schemaId:s}=this.opts;a&&(i=new gl({schema:a,schemaId:s,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=wV.call(this,i)}Xr.resolveRef=SV;function wV(e){return(0,Mn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Qx.call(this,e)}function $E(e){for(let t of this._compilations)if(TV(t,e))return t}Xr.getCompilingSchema=$E;function TV(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function IV(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||og.call(this,e,t)}function og(e,t){let r=this.opts.uriResolver.parse(t),o=(0,Mn._getFullPath)(this.opts.uriResolver,r),n=(0,Mn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&o===n)return Xx.call(this,r,e);let i=(0,Mn.normalizeId)(o),a=this.refs[i]||this.schemas[i];if(typeof a=="string"){let s=og.call(this,e,a);return typeof s?.schema!="object"?void 0:Xx.call(this,r,s)}if(typeof a?.schema=="object"){if(a.validate||Qx.call(this,a),i===(0,Mn.normalizeId)(t)){let{schema:s}=a,{schemaId:l}=this.opts,u=s[l];return u&&(n=(0,Mn.resolveUrl)(this.opts.uriResolver,n,u)),new gl({schema:s,schemaId:l,root:e,baseId:n})}return Xx.call(this,r,a)}}Xr.resolveSchema=og;var EV=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Xx(e,{baseId:t,schema:r,root:o}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let s of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let l=r[(0,vE.unescapeFragment)(s)];if(l===void 0)return;r=l;let u=typeof r=="object"&&r[this.opts.schemaId];!EV.has(s)&&u&&(t=(0,Mn.resolveUrl)(this.opts.uriResolver,t,u))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,vE.schemaHasRulesButRef)(r,this.RULES)){let s=(0,Mn.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=og.call(this,o,s)}let{schemaId:a}=this.opts;if(i=i||new gl({schema:r,schemaId:a,root:o,baseId:t}),i.schema!==i.root.schema)return i}});var bE=q((Eie,MV)=>{MV.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var r2=q((Mie,TE)=>{"use strict";var CV=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),kE=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),e2=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),_E=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),RV=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function t2(e){let t="",r=0,o=0;for(o=0;o<e.length;o++)if(r=e[o].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[o];break}for(o+=1;o<e.length;o++){if(r=e[o].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[o]}return t}var zV=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function xE(e){return e.length=0,!0}function PV(e,t,r){if(e.length){let o=t2(e);if(o!=="")t.push(o);else return r.error=!0,!1;e.length=0}return!0}function OV(e){let t=0,r={error:!1,address:"",zone:""},o=[],n=[],i=!1,a=!1,s=PV;for(let l=0;l<e.length;l++){let u=e[l];if(!(u==="["||u==="]"))if(u===":"){if(i===!0&&(a=!0),!s(n,o,r))break;if(++t>7){r.error=!0;break}l>0&&e[l-1]===":"&&(i=!0),o.push(":");continue}else if(u==="%"){if(!s(n,o,r))break;s=xE}else{n.push(u);continue}}return n.length&&(s===xE?r.zone=n.join(""):a?o.push(n.join("")):o.push(t2(n))),r.address=o.join(""),r}function SE(e){if(AV(e,":")<2)return{host:e,isIPV6:!1};let t=OV(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,o=t.address;return t.zone&&(r+="%"+t.zone,o+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:o}}}function AV(e,t){let r=0;for(let o=0;o<e.length;o++)e[o]===t&&r++;return r}function NV(e){let t=e,r=[],o=-1,n=0;for(;n=t.length;){if(n===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(n===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(n===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((o=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,o)),t=t.slice(o)}return r.join("")}var DV={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},jV=/[@/?#:]/g,UV=/[@/?#]/g;function wE(e,t){let r=t?UV:jV;return r.lastIndex=0,e.replace(r,o=>DV[o])}function LV(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let o=0;o<e.length;o++){if(e[o]==="%"&&o+2<e.length){let n=e.slice(o+1,o+3);if(e2(n)){let i=n.toUpperCase(),a=String.fromCharCode(parseInt(i,16));t&&_E(a)?r+=a:r+="%"+i,o+=2;continue}}r+=e[o]}return r}function qV(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(e2(o)){let n=o.toUpperCase(),i=String.fromCharCode(parseInt(n,16));i!=="."&&_E(i)?t+=i:t+="%"+n,r+=2;continue}}RV(e[r])?t+=e[r]:t+=escape(e[r])}return t}function BV(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(e2(o)){t+="%"+o.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function VV(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!kE(r)){let o=SE(r);o.isIPV6===!0?r=`[${o.escapedHost}]`:r=wE(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}TE.exports={nonSimpleDomain:zV,recomposeAuthority:VV,reescapeHostDelimiters:wE,normalizePercentEncoding:LV,normalizePathEncoding:qV,escapePreservingEscapes:BV,removeDotSegments:NV,isIPv4:kE,isUUID:CV,normalizeIPv6:SE,stringArrayToHexStripped:t2}});var RE=q((Cie,CE)=>{"use strict";var{isUUID:HV}=r2(),GV=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,ZV=["http","https","ws","wss","urn","urn:uuid"];function FV(e){return ZV.indexOf(e)!==-1}function n2(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function IE(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function EE(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function WV(e){return e.secure=n2(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function KV(e){if((e.port===(n2(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function JV(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(GV);if(r){let o=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let n=`${o}:${t.nid||e.nid}`,i=o2(n);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function YV(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",o=e.nid.toLowerCase(),n=`${r}:${t.nid||o}`,i=o2(n);i&&(e=i.serialize(e,t));let a=e,s=e.nss;return a.path=`${o||t.nid}:${s}`,t.skipEscape=!0,a}function XV(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!HV(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function QV(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var ME={scheme:"http",domainHost:!0,parse:IE,serialize:EE},eH={scheme:"https",domainHost:ME.domainHost,parse:IE,serialize:EE},ag={scheme:"ws",domainHost:!0,parse:WV,serialize:KV},tH={scheme:"wss",domainHost:ag.domainHost,parse:ag.parse,serialize:ag.serialize},rH={scheme:"urn",parse:JV,serialize:YV,skipNormalize:!0},nH={scheme:"urn:uuid",parse:XV,serialize:QV,skipNormalize:!0},sg={http:ME,https:eH,ws:ag,wss:tH,urn:rH,"urn:uuid":nH};Object.setPrototypeOf(sg,null);function o2(e){return e&&(sg[e]||sg[e.toLowerCase()])||void 0}CE.exports={wsIsSecure:n2,SCHEMES:sg,isValidSchemeName:FV,getSchemeHandler:o2}});var DE=q((Rie,lg)=>{"use strict";var{normalizeIPv6:oH,removeDotSegments:Xc,recomposeAuthority:iH,normalizePercentEncoding:aH,normalizePathEncoding:sH,escapePreservingEscapes:lH,reescapeHostDelimiters:uH,isIPv4:cH,nonSimpleDomain:pH}=r2(),{SCHEMES:dH,getSchemeHandler:PE}=RE();function fH(e,t){return typeof e=="string"?e=vH(e,t):typeof e=="object"&&(e=hl(qa(e,t),t)),e}function mH(e,t,r){let o=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=OE(hl(e,o),hl(t,o),o,!0);return o.skipEscape=!0,qa(n,o)}function OE(e,t,r,o){let n={};return o||(e=hl(qa(e,r),r),t=hl(qa(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=Xc(t.path||""),n.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=Xc(t.path||""),n.query=t.query):(t.path?(t.path[0]==="/"?n.path=Xc(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?n.path="/"+t.path:e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path,n.path=Xc(n.path)),n.query=t.query):(n.path=e.path,t.query!==void 0?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function gH(e,t,r){let o=zE(e,r),n=zE(t,r);return o!==void 0&&n!==void 0&&o.toLowerCase()===n.toLowerCase()}function qa(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},o=Object.assign({},t),n=[],i=PE(o.scheme||r.scheme);i&&i.serialize&&i.serialize(r,o),r.path!==void 0&&(o.skipEscape?r.path=aH(r.path):(r.path=lH(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),o.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");let a=iH(r);if(a!==void 0&&(o.reference!=="suffix"&&n.push("//"),n.push(a),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let s=r.path;!o.absolutePath&&(!i||!i.absolutePath)&&(s=Xc(s)),a===void 0&&s[0]==="/"&&s[1]==="/"&&(s="/%2F"+s.slice(2)),n.push(s)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}var hH=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function yH(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function AE(e,t){let r=Object.assign({},t),o={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1,i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let a=e.match(hH);if(a){o.scheme=a[1],o.userinfo=a[3],o.host=a[4],o.port=parseInt(a[5],10),o.path=a[6]||"",o.query=a[7],o.fragment=a[8],isNaN(o.port)&&(o.port=a[5]);let s=yH(o,a);if(s!==void 0&&(o.error=o.error||s,n=!0),o.host)if(cH(o.host)===!1){let c=oH(o.host);o.host=c.host.toLowerCase(),i=c.isIPV6}else i=!0;o.scheme===void 0&&o.userinfo===void 0&&o.host===void 0&&o.port===void 0&&o.query===void 0&&!o.path?o.reference="same-document":o.scheme===void 0?o.reference="relative":o.fragment===void 0?o.reference="absolute":o.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==o.reference&&(o.error=o.error||"URI is not a "+r.reference+" reference.");let l=PE(r.scheme||o.scheme);if(!r.unicodeSupport&&(!l||!l.unicodeSupport)&&o.host&&(r.domainHost||l&&l.domainHost)&&i===!1&&pH(o.host))try{o.host=URL.domainToASCII(o.host.toLowerCase())}catch(u){o.error=o.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(e.indexOf("%")!==-1&&(o.scheme!==void 0&&(o.scheme=unescape(o.scheme)),o.host!==void 0&&(o.host=uH(unescape(o.host),i))),o.path&&(o.path=sH(o.path)),o.fragment))try{o.fragment=encodeURI(decodeURIComponent(o.fragment))}catch{o.error=o.error||"URI malformed"}l&&l.parse&&l.parse(o,r)}else o.error=o.error||"URI can not be parsed.";return{parsed:o,malformedAuthorityOrPort:n}}function hl(e,t){return AE(e,t).parsed}function vH(e,t){return NE(e,t).normalized}function NE(e,t){let{parsed:r,malformedAuthorityOrPort:o}=AE(e,t);return{normalized:o?e:qa(r,t),malformedAuthorityOrPort:o}}function zE(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:o}=NE(e,t);return o?void 0:r}if(typeof e=="object")return qa(e,t)}var i2={SCHEMES:dH,normalize:fH,resolve:mH,resolveComponent:OE,equal:gH,serialize:qa,parse:hl};lg.exports=i2;lg.exports.default=i2;lg.exports.fastUri=i2});var UE=q(a2=>{"use strict";Object.defineProperty(a2,"__esModule",{value:!0});var jE=DE();jE.code='require("ajv/dist/runtime/uri").default';a2.default=jE});var FE=q(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.CodeGen=Gt.Name=Gt.nil=Gt.stringify=Gt.str=Gt._=Gt.KeywordCxt=void 0;var $H=Jc();Object.defineProperty(Gt,"KeywordCxt",{enumerable:!0,get:function(){return $H.KeywordCxt}});var yl=ie();Object.defineProperty(Gt,"_",{enumerable:!0,get:function(){return yl._}});Object.defineProperty(Gt,"str",{enumerable:!0,get:function(){return yl.str}});Object.defineProperty(Gt,"stringify",{enumerable:!0,get:function(){return yl.stringify}});Object.defineProperty(Gt,"nil",{enumerable:!0,get:function(){return yl.nil}});Object.defineProperty(Gt,"Name",{enumerable:!0,get:function(){return yl.Name}});Object.defineProperty(Gt,"CodeGen",{enumerable:!0,get:function(){return yl.CodeGen}});var bH=ng(),HE=Yc(),xH=Ox(),Qc=ig(),kH=ie(),ep=Fc(),ug=Zc(),l2=ye(),LE=bE(),_H=UE(),GE=(e,t)=>new RegExp(e,t);GE.code="new RegExp";var SH=["removeAdditional","useDefaults","coerceTypes"],wH=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),TH={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},IH={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},qE=200;function EH(e){var t,r,o,n,i,a,s,l,u,c,p,d,f,m,v,b,y,h,$,_,S,O,k,T,I;let M=e.strict,z=(t=e.code)===null||t===void 0?void 0:t.optimize,A=z===!0||z===void 0?1:z||0,H=(o=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&o!==void 0?o:GE,ee=(n=e.uriResolver)!==null&&n!==void 0?n:_H.default;return{strictSchema:(a=(i=e.strictSchema)!==null&&i!==void 0?i:M)!==null&&a!==void 0?a:!0,strictNumbers:(l=(s=e.strictNumbers)!==null&&s!==void 0?s:M)!==null&&l!==void 0?l:!0,strictTypes:(c=(u=e.strictTypes)!==null&&u!==void 0?u:M)!==null&&c!==void 0?c:"log",strictTuples:(d=(p=e.strictTuples)!==null&&p!==void 0?p:M)!==null&&d!==void 0?d:"log",strictRequired:(m=(f=e.strictRequired)!==null&&f!==void 0?f:M)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:A,regExp:H}:{optimize:A,regExp:H},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:qE,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:qE,meta:(y=e.meta)!==null&&y!==void 0?y:!0,messages:(h=e.messages)!==null&&h!==void 0?h:!0,inlineRefs:($=e.inlineRefs)!==null&&$!==void 0?$:!0,schemaId:(_=e.schemaId)!==null&&_!==void 0?_:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(O=e.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:(k=e.validateFormats)!==null&&k!==void 0?k:!0,unicodeRegExp:(T=e.unicodeRegExp)!==null&&T!==void 0?T:!0,int32range:(I=e.int32range)!==null&&I!==void 0?I:!0,uriResolver:ee}}var tp=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...EH(t)};let{es5:r,lines:o}=this.opts.code;this.scope=new kH.ValueScope({scope:{},prefixes:wH,es5:r,lines:o}),this.logger=OH(t.logger);let n=t.validateFormats;t.validateFormats=!1,this.RULES=(0,xH.getRules)(),BE.call(this,TH,t,"NOT SUPPORTED"),BE.call(this,IH,t,"DEPRECATED","warn"),this._metaOpts=zH.call(this),t.formats&&CH.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&RH.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),MH.call(this),t.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:o}=this.opts,n=LE;o==="id"&&(n={...LE},n.id=n.$id,delete n.$id),r&&t&&this.addMetaSchema(n,n[o],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let o;if(typeof t=="string"){if(o=this.getSchema(t),!o)throw new Error(`no schema with key or ref "${t}"`)}else o=this.compile(t);let n=o(r);return"$async"in o||(this.errors=o.errors),n}compile(t,r){let o=this._addSchema(t,r);return o.validate||this._compileSchemaEnv(o)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:o}=this.opts;return n.call(this,t,r);async function n(c,p){await i.call(this,c.$schema);let d=this._addSchema(c,p);return d.validate||a.call(this,d)}async function i(c){c&&!this.getSchema(c)&&await n.call(this,{$ref:c},!0)}async function a(c){try{return this._compileSchemaEnv(c)}catch(p){if(!(p instanceof HE.default))throw p;return s.call(this,p),await l.call(this,p.missingSchema),a.call(this,c)}}function s({missingSchema:c,missingRef:p}){if(this.refs[c])throw new Error(`AnySchema ${c} is loaded but ${p} cannot be resolved`)}async function l(c){let p=await u.call(this,c);this.refs[c]||await i.call(this,p.$schema),this.refs[c]||this.addSchema(p,c,r)}async function u(c){let p=this._loading[c];if(p)return p;try{return await(this._loading[c]=o(c))}finally{delete this._loading[c]}}}addSchema(t,r,o,n=this.opts.validateSchema){if(Array.isArray(t)){for(let a of t)this.addSchema(a,void 0,o,n);return this}let i;if(typeof t=="object"){let{schemaId:a}=this.opts;if(i=t[a],i!==void 0&&typeof i!="string")throw new Error(`schema ${a} must be string`)}return r=(0,ep.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,o,r,n,!0),this}addMetaSchema(t,r,o=this.opts.validateSchema){return this.addSchema(t,r,!0,o),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let o;if(o=t.$schema,o!==void 0&&typeof o!="string")throw new Error("$schema must be a string");if(o=o||this.opts.defaultMeta||this.defaultMeta(),!o)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(o,t);if(!n&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return n}getSchema(t){let r;for(;typeof(r=VE.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:o}=this.opts,n=new Qc.SchemaEnv({schema:{},schemaId:o});if(r=Qc.resolveSchema.call(this,n,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=VE.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let o=t[this.opts.schemaId];return o&&(o=(0,ep.normalizeId)(o),delete this.schemas[o],delete this.refs[o]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let o;if(typeof t=="string")o=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=o);else if(typeof t=="object"&&r===void 0){if(r=t,o=r.keyword,Array.isArray(o)&&!o.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(NH.call(this,o,r),!r)return(0,l2.eachItem)(o,i=>s2.call(this,i)),this;jH.call(this,r);let n={...r,type:(0,ug.getJSONTypes)(r.type),schemaType:(0,ug.getJSONTypes)(r.schemaType)};return(0,l2.eachItem)(o,n.type.length===0?i=>s2.call(this,i,n):i=>n.type.forEach(a=>s2.call(this,i,n,a))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let o of r.rules){let n=o.rules.findIndex(i=>i.keyword===t);n>=0&&o.rules.splice(n,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:o="data"}={}){return!t||t.length===0?"No errors":t.map(n=>`${o}${n.instancePath} ${n.message}`).reduce((n,i)=>n+r+i)}$dataMetaSchema(t,r){let o=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let n of r){let i=n.split("/").slice(1),a=t;for(let s of i)a=a[s];for(let s in o){let l=o[s];if(typeof l!="object")continue;let{$data:u}=l.definition,c=a[s];u&&c&&(a[s]=ZE(c))}}return t}_removeAllSchemas(t,r){for(let o in t){let n=t[o];(!r||r.test(o))&&(typeof n=="string"?delete t[o]:n&&!n.meta&&(this._cache.delete(n.schema),delete t[o]))}}_addSchema(t,r,o,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:s}=this.opts;if(typeof t=="object")a=t[s];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let l=this._cache.get(t);if(l!==void 0)return l;o=(0,ep.normalizeId)(a||o);let u=ep.getSchemaRefs.call(this,t,o);return l=new Qc.SchemaEnv({schema:t,schemaId:s,meta:r,baseId:o,localRefs:u}),this._cache.set(l.schema,l),i&&!o.startsWith("#")&&(o&&this._checkUnique(o),this.refs[o]=l),n&&this.validateSchema(t,!0),l}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Qc.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Qc.compileSchema.call(this,t)}finally{this.opts=r}}};tp.ValidationError=bH.default;tp.MissingRefError=HE.default;Gt.default=tp;function BE(e,t,r,o="error"){for(let n in e){let i=n;i in t&&this.logger[o](`${r}: option ${n}. ${e[i]}`)}}function VE(e){return e=(0,ep.normalizeId)(e),this.schemas[e]||this.refs[e]}function MH(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function CH(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function RH(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function zH(){let e={...this.opts};for(let t of SH)delete e[t];return e}var PH={log(){},warn(){},error(){}};function OH(e){if(e===!1)return PH;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var AH=/^[a-z_$][a-z0-9_$:-]*$/i;function NH(e,t){let{RULES:r}=this;if((0,l2.eachItem)(e,o=>{if(r.keywords[o])throw new Error(`Keyword ${o} is already defined`);if(!AH.test(o))throw new Error(`Keyword ${o} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function s2(e,t,r){var o;let n=t?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,a=n?i.post:i.rules.find(({type:l})=>l===r);if(a||(a={type:r,rules:[]},i.rules.push(a)),i.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,ug.getJSONTypes)(t.type),schemaType:(0,ug.getJSONTypes)(t.schemaType)}};t.before?DH.call(this,a,s,t.before):a.rules.push(s),i.all[e]=s,(o=t.implements)===null||o===void 0||o.forEach(l=>this.addKeyword(l))}function DH(e,t,r){let o=e.rules.findIndex(n=>n.keyword===r);o>=0?e.rules.splice(o,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function jH(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=ZE(t)),e.validateSchema=this.compile(t,!0))}var UH={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ZE(e){return{anyOf:[e,UH]}}});var WE=q(u2=>{"use strict";Object.defineProperty(u2,"__esModule",{value:!0});var LH={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};u2.default=LH});var XE=q(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.callRef=Ba.getValidate=void 0;var qH=Yc(),KE=Yr(),Tr=ie(),vl=So(),JE=ig(),cg=ye(),BH={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:o}=e,{baseId:n,schemaEnv:i,validateName:a,opts:s,self:l}=o,{root:u}=i;if((r==="#"||r==="#/")&&n===u.baseId)return p();let c=JE.resolveRef.call(l,u,n,r);if(c===void 0)throw new qH.default(o.opts.uriResolver,n,r);if(c instanceof JE.SchemaEnv)return d(c);return f(c);function p(){if(i===u)return pg(e,a,i,i.$async);let m=t.scopeValue("root",{ref:u});return pg(e,(0,Tr._)`${m}.validate`,u,u.$async)}function d(m){let v=YE(e,m);pg(e,v,m,m.$async)}function f(m){let v=t.scopeValue("schema",s.code.source===!0?{ref:m,code:(0,Tr.stringify)(m)}:{ref:m}),b=t.name("valid"),y=e.subschema({schema:m,dataTypes:[],schemaPath:Tr.nil,topSchemaRef:v,errSchemaPath:r},b);e.mergeEvaluated(y),e.ok(b)}}};function YE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Tr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Ba.getValidate=YE;function pg(e,t,r,o){let{gen:n,it:i}=e,{allErrors:a,schemaEnv:s,opts:l}=i,u=l.passContext?vl.default.this:Tr.nil;o?c():p();function c(){if(!s.$async)throw new Error("async schema referenced by sync schema");let m=n.let("valid");n.try(()=>{n.code((0,Tr._)`await ${(0,KE.callValidateCode)(e,t,u)}`),f(t),a||n.assign(m,!0)},v=>{n.if((0,Tr._)`!(${v} instanceof ${i.ValidationError})`,()=>n.throw(v)),d(v),a||n.assign(m,!1)}),e.ok(m)}function p(){e.result((0,KE.callValidateCode)(e,t,u),()=>f(t),()=>d(t))}function d(m){let v=(0,Tr._)`${m}.errors`;n.assign(vl.default.vErrors,(0,Tr._)`${vl.default.vErrors} === null ? ${v} : ${vl.default.vErrors}.concat(${v})`),n.assign(vl.default.errors,(0,Tr._)`${vl.default.vErrors}.length`)}function f(m){var v;if(!i.opts.unevaluated)return;let b=(v=r?.validate)===null||v===void 0?void 0:v.evaluated;if(i.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(i.props=cg.mergeEvaluated.props(n,b.props,i.props));else{let y=n.var("props",(0,Tr._)`${m}.evaluated.props`);i.props=cg.mergeEvaluated.props(n,y,i.props,Tr.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=cg.mergeEvaluated.items(n,b.items,i.items));else{let y=n.var("items",(0,Tr._)`${m}.evaluated.items`);i.items=cg.mergeEvaluated.items(n,y,i.items,Tr.Name)}}}Ba.callRef=pg;Ba.default=BH});var QE=q(c2=>{"use strict";Object.defineProperty(c2,"__esModule",{value:!0});var VH=WE(),HH=XE(),GH=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",VH.default,HH.default];c2.default=GH});var eM=q(p2=>{"use strict";Object.defineProperty(p2,"__esModule",{value:!0});var dg=ie(),Ii=dg.operators,fg={maximum:{okStr:"<=",ok:Ii.LTE,fail:Ii.GT},minimum:{okStr:">=",ok:Ii.GTE,fail:Ii.LT},exclusiveMaximum:{okStr:"<",ok:Ii.LT,fail:Ii.GTE},exclusiveMinimum:{okStr:">",ok:Ii.GT,fail:Ii.LTE}},ZH={message:({keyword:e,schemaCode:t})=>(0,dg.str)`must be ${fg[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,dg._)`{comparison: ${fg[e].okStr}, limit: ${t}}`},FH={keyword:Object.keys(fg),type:"number",schemaType:"number",$data:!0,error:ZH,code(e){let{keyword:t,data:r,schemaCode:o}=e;e.fail$data((0,dg._)`${r} ${fg[t].fail} ${o} || isNaN(${r})`)}};p2.default=FH});var tM=q(d2=>{"use strict";Object.defineProperty(d2,"__esModule",{value:!0});var rp=ie(),WH={message:({schemaCode:e})=>(0,rp.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,rp._)`{multipleOf: ${e}}`},KH={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:WH,code(e){let{gen:t,data:r,schemaCode:o,it:n}=e,i=n.opts.multipleOfPrecision,a=t.let("res"),s=i?(0,rp._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${i}`:(0,rp._)`${a} !== parseInt(${a})`;e.fail$data((0,rp._)`(${o} === 0 || (${a} = ${r}/${o}, ${s}))`)}};d2.default=KH});var m2=q(f2=>{"use strict";Object.defineProperty(f2,"__esModule",{value:!0});function rM(e){let t=e.length,r=0,o=0,n;for(;o<t;)r++,n=e.charCodeAt(o++),n>=55296&&n<=56319&&o<t&&(n=e.charCodeAt(o),(n&64512)===56320&&o++);return r}f2.default=rM;rM.code='require("ajv/dist/runtime/ucs2length").default'});var nM=q(g2=>{"use strict";Object.defineProperty(g2,"__esModule",{value:!0});var Va=ie(),JH=ye(),YH=m2(),XH={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Va.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Va._)`{limit: ${e}}`},QH={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:XH,code(e){let{keyword:t,data:r,schemaCode:o,it:n}=e,i=t==="maxLength"?Va.operators.GT:Va.operators.LT,a=n.opts.unicode===!1?(0,Va._)`${r}.length`:(0,Va._)`${(0,JH.useFunc)(e.gen,YH.default)}(${r})`;e.fail$data((0,Va._)`${a} ${i} ${o}`)}};g2.default=QH});var oM=q(h2=>{"use strict";Object.defineProperty(h2,"__esModule",{value:!0});var eG=Yr(),tG=ye(),$l=ie(),rG={message:({schemaCode:e})=>(0,$l.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,$l._)`{pattern: ${e}}`},nG={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:rG,code(e){let{gen:t,data:r,$data:o,schema:n,schemaCode:i,it:a}=e,s=a.opts.unicodeRegExp?"u":"";if(o){let{regExp:l}=a.opts.code,u=l.code==="new RegExp"?(0,$l._)`new RegExp`:(0,tG.useFunc)(t,l),c=t.let("valid");t.try(()=>t.assign(c,(0,$l._)`${u}(${i}, ${s}).test(${r})`),()=>t.assign(c,!1)),e.fail$data((0,$l._)`!${c}`)}else{let l=(0,eG.usePattern)(e,n);e.fail$data((0,$l._)`!${l}.test(${r})`)}}};h2.default=nG});var iM=q(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});var np=ie(),oG={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,np.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,np._)`{limit: ${e}}`},iG={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oG,code(e){let{keyword:t,data:r,schemaCode:o}=e,n=t==="maxProperties"?np.operators.GT:np.operators.LT;e.fail$data((0,np._)`Object.keys(${r}).length ${n} ${o}`)}};y2.default=iG});var aM=q(v2=>{"use strict";Object.defineProperty(v2,"__esModule",{value:!0});var op=Yr(),ip=ie(),aG=ye(),sG={message:({params:{missingProperty:e}})=>(0,ip.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ip._)`{missingProperty: ${e}}`},lG={keyword:"required",type:"object",schemaType:"array",$data:!0,error:sG,code(e){let{gen:t,schema:r,schemaCode:o,data:n,$data:i,it:a}=e,{opts:s}=a;if(!i&&r.length===0)return;let l=r.length>=s.loopRequired;if(a.allErrors?u():c(),s.strictRequired){let f=e.parentSchema.properties,{definedProperties:m}=e.it;for(let v of r)if(f?.[v]===void 0&&!m.has(v)){let b=a.schemaEnv.baseId+a.errSchemaPath,y=`required property "${v}" is not defined at "${b}" (strictRequired)`;(0,aG.checkStrictMode)(a,y,a.opts.strictRequired)}}function u(){if(l||i)e.block$data(ip.nil,p);else for(let f of r)(0,op.checkReportMissingProp)(e,f)}function c(){let f=t.let("missing");if(l||i){let m=t.let("valid",!0);e.block$data(m,()=>d(f,m)),e.ok(m)}else t.if((0,op.checkMissingProp)(e,r,f)),(0,op.reportMissingProp)(e,f),t.else()}function p(){t.forOf("prop",o,f=>{e.setParams({missingProperty:f}),t.if((0,op.noPropertyInData)(t,n,f,s.ownProperties),()=>e.error())})}function d(f,m){e.setParams({missingProperty:f}),t.forOf(f,o,()=>{t.assign(m,(0,op.propertyInData)(t,n,f,s.ownProperties)),t.if((0,ip.not)(m),()=>{e.error(),t.break()})},ip.nil)}}};v2.default=lG});var sM=q($2=>{"use strict";Object.defineProperty($2,"__esModule",{value:!0});var ap=ie(),uG={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ap.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ap._)`{limit: ${e}}`},cG={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:uG,code(e){let{keyword:t,data:r,schemaCode:o}=e,n=t==="maxItems"?ap.operators.GT:ap.operators.LT;e.fail$data((0,ap._)`${r}.length ${n} ${o}`)}};$2.default=cG});var sp=q(b2=>{"use strict";Object.defineProperty(b2,"__esModule",{value:!0});var lM=Bx();lM.code='require("ajv/dist/runtime/equal").default';b2.default=lM});var uM=q(k2=>{"use strict";Object.defineProperty(k2,"__esModule",{value:!0});var x2=Zc(),Zt=ie(),pG=ye(),dG=sp(),fG={message:({params:{i:e,j:t}})=>(0,Zt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Zt._)`{i: ${e}, j: ${t}}`},mG={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fG,code(e){let{gen:t,data:r,$data:o,schema:n,parentSchema:i,schemaCode:a,it:s}=e;if(!o&&!n)return;let l=t.let("valid"),u=i.items?(0,x2.getSchemaTypes)(i.items):[];e.block$data(l,c,(0,Zt._)`${a} === false`),e.ok(l);function c(){let m=t.let("i",(0,Zt._)`${r}.length`),v=t.let("j");e.setParams({i:m,j:v}),t.assign(l,!0),t.if((0,Zt._)`${m} > 1`,()=>(p()?d:f)(m,v))}function p(){return u.length>0&&!u.some(m=>m==="object"||m==="array")}function d(m,v){let b=t.name("item"),y=(0,x2.checkDataTypes)(u,b,s.opts.strictNumbers,x2.DataType.Wrong),h=t.const("indices",(0,Zt._)`{}`);t.for((0,Zt._)`;${m}--;`,()=>{t.let(b,(0,Zt._)`${r}[${m}]`),t.if(y,(0,Zt._)`continue`),u.length>1&&t.if((0,Zt._)`typeof ${b} == "string"`,(0,Zt._)`${b} += "_"`),t.if((0,Zt._)`typeof ${h}[${b}] == "number"`,()=>{t.assign(v,(0,Zt._)`${h}[${b}]`),e.error(),t.assign(l,!1).break()}).code((0,Zt._)`${h}[${b}] = ${m}`)})}function f(m,v){let b=(0,pG.useFunc)(t,dG.default),y=t.name("outer");t.label(y).for((0,Zt._)`;${m}--;`,()=>t.for((0,Zt._)`${v} = ${m}; ${v}--;`,()=>t.if((0,Zt._)`${b}(${r}[${m}], ${r}[${v}])`,()=>{e.error(),t.assign(l,!1).break(y)})))}}};k2.default=mG});var cM=q(S2=>{"use strict";Object.defineProperty(S2,"__esModule",{value:!0});var _2=ie(),gG=ye(),hG=sp(),yG={message:"must be equal to constant",params:({schemaCode:e})=>(0,_2._)`{allowedValue: ${e}}`},vG={keyword:"const",$data:!0,error:yG,code(e){let{gen:t,data:r,$data:o,schemaCode:n,schema:i}=e;o||i&&typeof i=="object"?e.fail$data((0,_2._)`!${(0,gG.useFunc)(t,hG.default)}(${r}, ${n})`):e.fail((0,_2._)`${i} !== ${r}`)}};S2.default=vG});var pM=q(w2=>{"use strict";Object.defineProperty(w2,"__esModule",{value:!0});var lp=ie(),$G=ye(),bG=sp(),xG={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,lp._)`{allowedValues: ${e}}`},kG={keyword:"enum",schemaType:"array",$data:!0,error:xG,code(e){let{gen:t,data:r,$data:o,schema:n,schemaCode:i,it:a}=e;if(!o&&n.length===0)throw new Error("enum must have non-empty array");let s=n.length>=a.opts.loopEnum,l,u=()=>l??(l=(0,$G.useFunc)(t,bG.default)),c;if(s||o)c=t.let("valid"),e.block$data(c,p);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let f=t.const("vSchema",i);c=(0,lp.or)(...n.map((m,v)=>d(f,v)))}e.pass(c);function p(){t.assign(c,!1),t.forOf("v",i,f=>t.if((0,lp._)`${u()}(${r}, ${f})`,()=>t.assign(c,!0).break()))}function d(f,m){let v=n[m];return typeof v=="object"&&v!==null?(0,lp._)`${u()}(${r}, ${f}[${m}])`:(0,lp._)`${r} === ${v}`}}};w2.default=kG});var dM=q(T2=>{"use strict";Object.defineProperty(T2,"__esModule",{value:!0});var _G=eM(),SG=tM(),wG=nM(),TG=oM(),IG=iM(),EG=aM(),MG=sM(),CG=uM(),RG=cM(),zG=pM(),PG=[_G.default,SG.default,wG.default,TG.default,IG.default,EG.default,MG.default,CG.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},RG.default,zG.default];T2.default=PG});var E2=q(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.validateAdditionalItems=void 0;var Ha=ie(),I2=ye(),OG={message:({params:{len:e}})=>(0,Ha.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ha._)`{limit: ${e}}`},AG={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:OG,code(e){let{parentSchema:t,it:r}=e,{items:o}=t;if(!Array.isArray(o)){(0,I2.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}fM(e,o)}};function fM(e,t){let{gen:r,schema:o,data:n,keyword:i,it:a}=e;a.items=!0;let s=r.const("len",(0,Ha._)`${n}.length`);if(o===!1)e.setParams({len:t.length}),e.pass((0,Ha._)`${s} <= ${t.length}`);else if(typeof o=="object"&&!(0,I2.alwaysValidSchema)(a,o)){let u=r.var("valid",(0,Ha._)`${s} <= ${t.length}`);r.if((0,Ha.not)(u),()=>l(u)),e.ok(u)}function l(u){r.forRange("i",t.length,s,c=>{e.subschema({keyword:i,dataProp:c,dataPropType:I2.Type.Num},u),a.allErrors||r.if((0,Ha.not)(u),()=>r.break())})}}up.validateAdditionalItems=fM;up.default=AG});var M2=q(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.validateTuple=void 0;var mM=ie(),mg=ye(),NG=Yr(),DG={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return gM(e,"additionalItems",t);r.items=!0,!(0,mg.alwaysValidSchema)(r,t)&&e.ok((0,NG.validateArray)(e))}};function gM(e,t,r=e.schema){let{gen:o,parentSchema:n,data:i,keyword:a,it:s}=e;c(n),s.opts.unevaluated&&r.length&&s.items!==!0&&(s.items=mg.mergeEvaluated.items(o,r.length,s.items));let l=o.name("valid"),u=o.const("len",(0,mM._)`${i}.length`);r.forEach((p,d)=>{(0,mg.alwaysValidSchema)(s,p)||(o.if((0,mM._)`${u} > ${d}`,()=>e.subschema({keyword:a,schemaProp:d,dataProp:d},l)),e.ok(l))});function c(p){let{opts:d,errSchemaPath:f}=s,m=r.length,v=m===p.minItems&&(m===p.maxItems||p[t]===!1);if(d.strictTuples&&!v){let b=`"${a}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${f}"`;(0,mg.checkStrictMode)(s,b,d.strictTuples)}}}cp.validateTuple=gM;cp.default=DG});var hM=q(C2=>{"use strict";Object.defineProperty(C2,"__esModule",{value:!0});var jG=M2(),UG={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,jG.validateTuple)(e,"items")};C2.default=UG});var vM=q(R2=>{"use strict";Object.defineProperty(R2,"__esModule",{value:!0});var yM=ie(),LG=ye(),qG=Yr(),BG=E2(),VG={message:({params:{len:e}})=>(0,yM.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,yM._)`{limit: ${e}}`},HG={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:VG,code(e){let{schema:t,parentSchema:r,it:o}=e,{prefixItems:n}=r;o.items=!0,!(0,LG.alwaysValidSchema)(o,t)&&(n?(0,BG.validateAdditionalItems)(e,n):e.ok((0,qG.validateArray)(e)))}};R2.default=HG});var $M=q(z2=>{"use strict";Object.defineProperty(z2,"__esModule",{value:!0});var Qr=ie(),gg=ye(),GG={message:({params:{min:e,max:t}})=>t===void 0?(0,Qr.str)`must contain at least ${e} valid item(s)`:(0,Qr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Qr._)`{minContains: ${e}}`:(0,Qr._)`{minContains: ${e}, maxContains: ${t}}`},ZG={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:GG,code(e){let{gen:t,schema:r,parentSchema:o,data:n,it:i}=e,a,s,{minContains:l,maxContains:u}=o;i.opts.next?(a=l===void 0?1:l,s=u):a=1;let c=t.const("len",(0,Qr._)`${n}.length`);if(e.setParams({min:a,max:s}),s===void 0&&a===0){(0,gg.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(s!==void 0&&a>s){(0,gg.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,gg.alwaysValidSchema)(i,r)){let v=(0,Qr._)`${c} >= ${a}`;s!==void 0&&(v=(0,Qr._)`${v} && ${c} <= ${s}`),e.pass(v);return}i.items=!0;let p=t.name("valid");s===void 0&&a===1?f(p,()=>t.if(p,()=>t.break())):a===0?(t.let(p,!0),s!==void 0&&t.if((0,Qr._)`${n}.length > 0`,d)):(t.let(p,!1),d()),e.result(p,()=>e.reset());function d(){let v=t.name("_valid"),b=t.let("count",0);f(v,()=>t.if(v,()=>m(b)))}function f(v,b){t.forRange("i",0,c,y=>{e.subschema({keyword:"contains",dataProp:y,dataPropType:gg.Type.Num,compositeRule:!0},v),b()})}function m(v){t.code((0,Qr._)`${v}++`),s===void 0?t.if((0,Qr._)`${v} >= ${a}`,()=>t.assign(p,!0).break()):(t.if((0,Qr._)`${v} > ${s}`,()=>t.assign(p,!1).break()),a===1?t.assign(p,!0):t.if((0,Qr._)`${v} >= ${a}`,()=>t.assign(p,!0)))}}};z2.default=ZG});var kM=q(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.validateSchemaDeps=Yn.validatePropertyDeps=Yn.error=void 0;var P2=ie(),FG=ye(),pp=Yr();Yn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let o=t===1?"property":"properties";return(0,P2.str)`must have ${o} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:o}})=>(0,P2._)`{property: ${e},
55
+ missingProperty: ${o},
56
+ depsCount: ${t},
57
+ deps: ${r}}`};var WG={keyword:"dependencies",type:"object",schemaType:"object",error:Yn.error,code(e){let[t,r]=KG(e);bM(e,t),xM(e,r)}};function KG({schema:e}){let t={},r={};for(let o in e){if(o==="__proto__")continue;let n=Array.isArray(e[o])?t:r;n[o]=e[o]}return[t,r]}function bM(e,t=e.schema){let{gen:r,data:o,it:n}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let a in t){let s=t[a];if(s.length===0)continue;let l=(0,pp.propertyInData)(r,o,a,n.opts.ownProperties);e.setParams({property:a,depsCount:s.length,deps:s.join(", ")}),n.allErrors?r.if(l,()=>{for(let u of s)(0,pp.checkReportMissingProp)(e,u)}):(r.if((0,P2._)`${l} && (${(0,pp.checkMissingProp)(e,s,i)})`),(0,pp.reportMissingProp)(e,i),r.else())}}Yn.validatePropertyDeps=bM;function xM(e,t=e.schema){let{gen:r,data:o,keyword:n,it:i}=e,a=r.name("valid");for(let s in t)(0,FG.alwaysValidSchema)(i,t[s])||(r.if((0,pp.propertyInData)(r,o,s,i.opts.ownProperties),()=>{let l=e.subschema({keyword:n,schemaProp:s},a);e.mergeValidEvaluated(l,a)},()=>r.var(a,!0)),e.ok(a))}Yn.validateSchemaDeps=xM;Yn.default=WG});var SM=q(O2=>{"use strict";Object.defineProperty(O2,"__esModule",{value:!0});var _M=ie(),JG=ye(),YG={message:"property name must be valid",params:({params:e})=>(0,_M._)`{propertyName: ${e.propertyName}}`},XG={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:YG,code(e){let{gen:t,schema:r,data:o,it:n}=e;if((0,JG.alwaysValidSchema)(n,r))return;let i=t.name("valid");t.forIn("key",o,a=>{e.setParams({propertyName:a}),e.subschema({keyword:"propertyNames",data:a,dataTypes:["string"],propertyName:a,compositeRule:!0},i),t.if((0,_M.not)(i),()=>{e.error(!0),n.allErrors||t.break()})}),e.ok(i)}};O2.default=XG});var N2=q(A2=>{"use strict";Object.defineProperty(A2,"__esModule",{value:!0});var hg=Yr(),Cn=ie(),QG=So(),yg=ye(),eZ={message:"must NOT have additional properties",params:({params:e})=>(0,Cn._)`{additionalProperty: ${e.additionalProperty}}`},tZ={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:eZ,code(e){let{gen:t,schema:r,parentSchema:o,data:n,errsCount:i,it:a}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:s,opts:l}=a;if(a.props=!0,l.removeAdditional!=="all"&&(0,yg.alwaysValidSchema)(a,r))return;let u=(0,hg.allSchemaProperties)(o.properties),c=(0,hg.allSchemaProperties)(o.patternProperties);p(),e.ok((0,Cn._)`${i} === ${QG.default.errors}`);function p(){t.forIn("key",n,b=>{!u.length&&!c.length?m(b):t.if(d(b),()=>m(b))})}function d(b){let y;if(u.length>8){let h=(0,yg.schemaRefOrVal)(a,o.properties,"properties");y=(0,hg.isOwnProperty)(t,h,b)}else u.length?y=(0,Cn.or)(...u.map(h=>(0,Cn._)`${b} === ${h}`)):y=Cn.nil;return c.length&&(y=(0,Cn.or)(y,...c.map(h=>(0,Cn._)`${(0,hg.usePattern)(e,h)}.test(${b})`))),(0,Cn.not)(y)}function f(b){t.code((0,Cn._)`delete ${n}[${b}]`)}function m(b){if(l.removeAdditional==="all"||l.removeAdditional&&r===!1){f(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),s||t.break();return}if(typeof r=="object"&&!(0,yg.alwaysValidSchema)(a,r)){let y=t.name("valid");l.removeAdditional==="failing"?(v(b,y,!1),t.if((0,Cn.not)(y),()=>{e.reset(),f(b)})):(v(b,y),s||t.if((0,Cn.not)(y),()=>t.break()))}}function v(b,y,h){let $={keyword:"additionalProperties",dataProp:b,dataPropType:yg.Type.Str};h===!1&&Object.assign($,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema($,y)}}};A2.default=tZ});var IM=q(j2=>{"use strict";Object.defineProperty(j2,"__esModule",{value:!0});var rZ=Jc(),wM=Yr(),D2=ye(),TM=N2(),nZ={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:o,data:n,it:i}=e;i.opts.removeAdditional==="all"&&o.additionalProperties===void 0&&TM.default.code(new rZ.KeywordCxt(i,TM.default,"additionalProperties"));let a=(0,wM.allSchemaProperties)(r);for(let p of a)i.definedProperties.add(p);i.opts.unevaluated&&a.length&&i.props!==!0&&(i.props=D2.mergeEvaluated.props(t,(0,D2.toHash)(a),i.props));let s=a.filter(p=>!(0,D2.alwaysValidSchema)(i,r[p]));if(s.length===0)return;let l=t.name("valid");for(let p of s)u(p)?c(p):(t.if((0,wM.propertyInData)(t,n,p,i.opts.ownProperties)),c(p),i.allErrors||t.else().var(l,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(l);function u(p){return i.opts.useDefaults&&!i.compositeRule&&r[p].default!==void 0}function c(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},l)}}};j2.default=nZ});var RM=q(U2=>{"use strict";Object.defineProperty(U2,"__esModule",{value:!0});var EM=Yr(),vg=ie(),MM=ye(),CM=ye(),oZ={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:o,parentSchema:n,it:i}=e,{opts:a}=i,s=(0,EM.allSchemaProperties)(r),l=s.filter(v=>(0,MM.alwaysValidSchema)(i,r[v]));if(s.length===0||l.length===s.length&&(!i.opts.unevaluated||i.props===!0))return;let u=a.strictSchema&&!a.allowMatchingProperties&&n.properties,c=t.name("valid");i.props!==!0&&!(i.props instanceof vg.Name)&&(i.props=(0,CM.evaluatedPropsToName)(t,i.props));let{props:p}=i;d();function d(){for(let v of s)u&&f(v),i.allErrors?m(v):(t.var(c,!0),m(v),t.if(c))}function f(v){for(let b in u)new RegExp(v).test(b)&&(0,MM.checkStrictMode)(i,`property ${b} matches pattern ${v} (use allowMatchingProperties)`)}function m(v){t.forIn("key",o,b=>{t.if((0,vg._)`${(0,EM.usePattern)(e,v)}.test(${b})`,()=>{let y=l.includes(v);y||e.subschema({keyword:"patternProperties",schemaProp:v,dataProp:b,dataPropType:CM.Type.Str},c),i.opts.unevaluated&&p!==!0?t.assign((0,vg._)`${p}[${b}]`,!0):!y&&!i.allErrors&&t.if((0,vg.not)(c),()=>t.break())})})}}};U2.default=oZ});var zM=q(L2=>{"use strict";Object.defineProperty(L2,"__esModule",{value:!0});var iZ=ye(),aZ={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:o}=e;if((0,iZ.alwaysValidSchema)(o,r)){e.fail();return}let n=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),e.failResult(n,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};L2.default=aZ});var PM=q(q2=>{"use strict";Object.defineProperty(q2,"__esModule",{value:!0});var sZ=Yr(),lZ={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:sZ.validateUnion,error:{message:"must match a schema in anyOf"}};q2.default=lZ});var OM=q(B2=>{"use strict";Object.defineProperty(B2,"__esModule",{value:!0});var $g=ie(),uZ=ye(),cZ={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,$g._)`{passingSchemas: ${e.passing}}`},pZ={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:cZ,code(e){let{gen:t,schema:r,parentSchema:o,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&o.discriminator)return;let i=r,a=t.let("valid",!1),s=t.let("passing",null),l=t.name("_valid");e.setParams({passing:s}),t.block(u),e.result(a,()=>e.reset(),()=>e.error(!0));function u(){i.forEach((c,p)=>{let d;(0,uZ.alwaysValidSchema)(n,c)?t.var(l,!0):d=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},l),p>0&&t.if((0,$g._)`${l} && ${a}`).assign(a,!1).assign(s,(0,$g._)`[${s}, ${p}]`).else(),t.if(l,()=>{t.assign(a,!0),t.assign(s,p),d&&e.mergeEvaluated(d,$g.Name)})})}}};B2.default=pZ});var AM=q(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});var dZ=ye(),fZ={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=t.name("valid");r.forEach((i,a)=>{if((0,dZ.alwaysValidSchema)(o,i))return;let s=e.subschema({keyword:"allOf",schemaProp:a},n);e.ok(n),e.mergeEvaluated(s)})}};V2.default=fZ});var jM=q(H2=>{"use strict";Object.defineProperty(H2,"__esModule",{value:!0});var bg=ie(),DM=ye(),mZ={message:({params:e})=>(0,bg.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,bg._)`{failingKeyword: ${e.ifClause}}`},gZ={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mZ,code(e){let{gen:t,parentSchema:r,it:o}=e;r.then===void 0&&r.else===void 0&&(0,DM.checkStrictMode)(o,'"if" without "then" and "else" is ignored');let n=NM(o,"then"),i=NM(o,"else");if(!n&&!i)return;let a=t.let("valid",!0),s=t.name("_valid");if(l(),e.reset(),n&&i){let c=t.let("ifClause");e.setParams({ifClause:c}),t.if(s,u("then",c),u("else",c))}else n?t.if(s,u("then")):t.if((0,bg.not)(s),u("else"));e.pass(a,()=>e.error(!0));function l(){let c=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},s);e.mergeEvaluated(c)}function u(c,p){return()=>{let d=e.subschema({keyword:c},s);t.assign(a,s),e.mergeValidEvaluated(d,a),p?t.assign(p,(0,bg._)`${c}`):e.setParams({ifClause:c})}}}};function NM(e,t){let r=e.schema[t];return r!==void 0&&!(0,DM.alwaysValidSchema)(e,r)}H2.default=gZ});var UM=q(G2=>{"use strict";Object.defineProperty(G2,"__esModule",{value:!0});var hZ=ye(),yZ={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,hZ.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};G2.default=yZ});var LM=q(Z2=>{"use strict";Object.defineProperty(Z2,"__esModule",{value:!0});var vZ=E2(),$Z=hM(),bZ=M2(),xZ=vM(),kZ=$M(),_Z=kM(),SZ=SM(),wZ=N2(),TZ=IM(),IZ=RM(),EZ=zM(),MZ=PM(),CZ=OM(),RZ=AM(),zZ=jM(),PZ=UM();function OZ(e=!1){let t=[EZ.default,MZ.default,CZ.default,RZ.default,zZ.default,PZ.default,SZ.default,wZ.default,_Z.default,TZ.default,IZ.default];return e?t.push($Z.default,xZ.default):t.push(vZ.default,bZ.default),t.push(kZ.default),t}Z2.default=OZ});var qM=q(F2=>{"use strict";Object.defineProperty(F2,"__esModule",{value:!0});var pt=ie(),AZ={message:({schemaCode:e})=>(0,pt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,pt._)`{format: ${e}}`},NZ={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:AZ,code(e,t){let{gen:r,data:o,$data:n,schema:i,schemaCode:a,it:s}=e,{opts:l,errSchemaPath:u,schemaEnv:c,self:p}=s;if(!l.validateFormats)return;n?d():f();function d(){let m=r.scopeValue("formats",{ref:p.formats,code:l.code.formats}),v=r.const("fDef",(0,pt._)`${m}[${a}]`),b=r.let("fType"),y=r.let("format");r.if((0,pt._)`typeof ${v} == "object" && !(${v} instanceof RegExp)`,()=>r.assign(b,(0,pt._)`${v}.type || "string"`).assign(y,(0,pt._)`${v}.validate`),()=>r.assign(b,(0,pt._)`"string"`).assign(y,v)),e.fail$data((0,pt.or)(h(),$()));function h(){return l.strictSchema===!1?pt.nil:(0,pt._)`${a} && !${y}`}function $(){let _=c.$async?(0,pt._)`(${v}.async ? await ${y}(${o}) : ${y}(${o}))`:(0,pt._)`${y}(${o})`,S=(0,pt._)`(typeof ${y} == "function" ? ${_} : ${y}.test(${o}))`;return(0,pt._)`${y} && ${y} !== true && ${b} === ${t} && !${S}`}}function f(){let m=p.formats[i];if(!m){h();return}if(m===!0)return;let[v,b,y]=$(m);v===t&&e.pass(_());function h(){if(l.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${u}"`}}function $(S){let O=S instanceof RegExp?(0,pt.regexpCode)(S):l.code.formats?(0,pt._)`${l.code.formats}${(0,pt.getProperty)(i)}`:void 0,k=r.scopeValue("formats",{key:i,ref:S,code:O});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,pt._)`${k}.validate`]:["string",S,k]}function _(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!c.$async)throw new Error("async format in sync schema");return(0,pt._)`await ${y}(${o})`}return typeof b=="function"?(0,pt._)`${y}(${o})`:(0,pt._)`${y}.test(${o})`}}}};F2.default=NZ});var BM=q(W2=>{"use strict";Object.defineProperty(W2,"__esModule",{value:!0});var DZ=qM(),jZ=[DZ.default];W2.default=jZ});var VM=q(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.contentVocabulary=bl.metadataVocabulary=void 0;bl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];bl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var GM=q(K2=>{"use strict";Object.defineProperty(K2,"__esModule",{value:!0});var UZ=QE(),LZ=dM(),qZ=LM(),BZ=BM(),HM=VM(),VZ=[UZ.default,LZ.default,(0,qZ.default)(),BZ.default,HM.metadataVocabulary,HM.contentVocabulary];K2.default=VZ});var FM=q(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});xg.DiscrError=void 0;var ZM;(function(e){e.Tag="tag",e.Mapping="mapping"})(ZM||(xg.DiscrError=ZM={}))});var KM=q(Y2=>{"use strict";Object.defineProperty(Y2,"__esModule",{value:!0});var xl=ie(),J2=FM(),WM=ig(),HZ=Yc(),GZ=ye(),ZZ={message:({params:{discrError:e,tagName:t}})=>e===J2.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,xl._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},FZ={keyword:"discriminator",type:"object",schemaType:"object",error:ZZ,code(e){let{gen:t,data:r,schema:o,parentSchema:n,it:i}=e,{oneOf:a}=n;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let s=o.propertyName;if(typeof s!="string")throw new Error("discriminator: requires propertyName");if(o.mapping)throw new Error("discriminator: mapping is not supported");if(!a)throw new Error("discriminator: requires oneOf keyword");let l=t.let("valid",!1),u=t.const("tag",(0,xl._)`${r}${(0,xl.getProperty)(s)}`);t.if((0,xl._)`typeof ${u} == "string"`,()=>c(),()=>e.error(!1,{discrError:J2.DiscrError.Tag,tag:u,tagName:s})),e.ok(l);function c(){let f=d();t.if(!1);for(let m in f)t.elseIf((0,xl._)`${u} === ${m}`),t.assign(l,p(f[m]));t.else(),e.error(!1,{discrError:J2.DiscrError.Mapping,tag:u,tagName:s}),t.endIf()}function p(f){let m=t.name("valid"),v=e.subschema({keyword:"oneOf",schemaProp:f},m);return e.mergeEvaluated(v,xl.Name),m}function d(){var f;let m={},v=y(n),b=!0;for(let _=0;_<a.length;_++){let S=a[_];if(S?.$ref&&!(0,GZ.schemaHasRulesButRef)(S,i.self.RULES)){let k=S.$ref;if(S=WM.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,k),S instanceof WM.SchemaEnv&&(S=S.schema),S===void 0)throw new HZ.default(i.opts.uriResolver,i.baseId,k)}let O=(f=S?.properties)===null||f===void 0?void 0:f[s];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${s}"`);b=b&&(v||y(S)),h(O,_)}if(!b)throw new Error(`discriminator: "${s}" must be required`);return m;function y({required:_}){return Array.isArray(_)&&_.includes(s)}function h(_,S){if(_.const)$(_.const,S);else if(_.enum)for(let O of _.enum)$(O,S);else throw new Error(`discriminator: "properties/${s}" must have "const" or "enum"`)}function $(_,S){if(typeof _!="string"||_ in m)throw new Error(`discriminator: "${s}" values must be unique strings`);m[_]=S}}}};Y2.default=FZ});var JM=q(($ae,WZ)=>{WZ.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var Q2=q((We,X2)=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.MissingRefError=We.ValidationError=We.CodeGen=We.Name=We.nil=We.stringify=We.str=We._=We.KeywordCxt=We.Ajv=void 0;var KZ=FE(),JZ=GM(),YZ=KM(),YM=JM(),XZ=["/properties"],kg="http://json-schema.org/draft-07/schema",kl=class extends KZ.default{_addVocabularies(){super._addVocabularies(),JZ.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(YZ.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(YM,XZ):YM;this.addMetaSchema(t,kg,!1),this.refs["http://json-schema.org/schema"]=kg}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(kg)?kg:void 0)}};We.Ajv=kl;X2.exports=We=kl;X2.exports.Ajv=kl;Object.defineProperty(We,"__esModule",{value:!0});We.default=kl;var QZ=Jc();Object.defineProperty(We,"KeywordCxt",{enumerable:!0,get:function(){return QZ.KeywordCxt}});var _l=ie();Object.defineProperty(We,"_",{enumerable:!0,get:function(){return _l._}});Object.defineProperty(We,"str",{enumerable:!0,get:function(){return _l.str}});Object.defineProperty(We,"stringify",{enumerable:!0,get:function(){return _l.stringify}});Object.defineProperty(We,"nil",{enumerable:!0,get:function(){return _l.nil}});Object.defineProperty(We,"Name",{enumerable:!0,get:function(){return _l.Name}});Object.defineProperty(We,"CodeGen",{enumerable:!0,get:function(){return _l.CodeGen}});var eF=ng();Object.defineProperty(We,"ValidationError",{enumerable:!0,get:function(){return eF.default}});var tF=Yc();Object.defineProperty(We,"MissingRefError",{enumerable:!0,get:function(){return tF.default}})});var iC=q(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.formatNames=Qn.fastFormats=Qn.fullFormats=void 0;function Xn(e,t){return{validate:e,compare:t}}Qn.fullFormats={date:Xn(tC,nk),time:Xn(tk(!0),ok),"date-time":Xn(XM(!0),nC),"iso-time":Xn(tk(),rC),"iso-date-time":Xn(XM(),oC),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:sF,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:mF,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:lF,int32:{type:"number",validate:pF},int64:{type:"number",validate:dF},float:{type:"number",validate:eC},double:{type:"number",validate:eC},password:!0,binary:!0};Qn.fastFormats={...Qn.fullFormats,date:Xn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,nk),time:Xn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,ok),"date-time":Xn(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,nC),"iso-time":Xn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,rC),"iso-date-time":Xn(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,oC),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Qn.formatNames=Object.keys(Qn.fullFormats);function rF(e){return e%4===0&&(e%100!==0||e%400===0)}var nF=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,oF=[0,31,28,31,30,31,30,31,31,30,31,30,31];function tC(e){let t=nF.exec(e);if(!t)return!1;let r=+t[1],o=+t[2],n=+t[3];return o>=1&&o<=12&&n>=1&&n<=(o===2&&rF(r)?29:oF[o])}function nk(e,t){if(e&&t)return e>t?1:e<t?-1:0}var ek=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function tk(e){return function(r){let o=ek.exec(r);if(!o)return!1;let n=+o[1],i=+o[2],a=+o[3],s=o[4],l=o[5]==="-"?-1:1,u=+(o[6]||0),c=+(o[7]||0);if(u>23||c>59||e&&!s)return!1;if(n<=23&&i<=59&&a<60)return!0;let p=i-c*l,d=n-u*l-(p<0?1:0);return(d===23||d===-1)&&(p===59||p===-1)&&a<61}}function ok(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),o=new Date("2020-01-01T"+t).valueOf();if(r&&o)return r-o}function rC(e,t){if(!(e&&t))return;let r=ek.exec(e),o=ek.exec(t);if(r&&o)return e=r[1]+r[2]+r[3],t=o[1]+o[2]+o[3],e>t?1:e<t?-1:0}var rk=/t|\s/i;function XM(e){let t=tk(e);return function(o){let n=o.split(rk);return n.length===2&&tC(n[0])&&t(n[1])}}function nC(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),o=new Date(t).valueOf();if(r&&o)return r-o}function oC(e,t){if(!(e&&t))return;let[r,o]=e.split(rk),[n,i]=t.split(rk),a=nk(r,n);if(a!==void 0)return a||ok(o,i)}var iF=/\/|:/,aF=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function sF(e){return iF.test(e)&&aF.test(e)}var QM=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function lF(e){return QM.lastIndex=0,QM.test(e)}var uF=-(2**31),cF=2**31-1;function pF(e){return Number.isInteger(e)&&e<=cF&&e>=uF}function dF(e){return Number.isInteger(e)}function eC(){return!0}var fF=/[^\\]\\Z/;function mF(e){if(fF.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var aC=q(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.formatLimitDefinition=void 0;var gF=Q2(),Rn=ie(),Ei=Rn.operators,_g={formatMaximum:{okStr:"<=",ok:Ei.LTE,fail:Ei.GT},formatMinimum:{okStr:">=",ok:Ei.GTE,fail:Ei.LT},formatExclusiveMaximum:{okStr:"<",ok:Ei.LT,fail:Ei.GTE},formatExclusiveMinimum:{okStr:">",ok:Ei.GT,fail:Ei.LTE}},hF={message:({keyword:e,schemaCode:t})=>(0,Rn.str)`should be ${_g[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Rn._)`{comparison: ${_g[e].okStr}, limit: ${t}}`};Sl.formatLimitDefinition={keyword:Object.keys(_g),type:"string",schemaType:"string",$data:!0,error:hF,code(e){let{gen:t,data:r,schemaCode:o,keyword:n,it:i}=e,{opts:a,self:s}=i;if(!a.validateFormats)return;let l=new gF.KeywordCxt(i,s.RULES.all.format.definition,"format");l.$data?u():c();function u(){let d=t.scopeValue("formats",{ref:s.formats,code:a.code.formats}),f=t.const("fmt",(0,Rn._)`${d}[${l.schemaCode}]`);e.fail$data((0,Rn.or)((0,Rn._)`typeof ${f} != "object"`,(0,Rn._)`${f} instanceof RegExp`,(0,Rn._)`typeof ${f}.compare != "function"`,p(f)))}function c(){let d=l.schema,f=s.formats[d];if(!f||f===!0)return;if(typeof f!="object"||f instanceof RegExp||typeof f.compare!="function")throw new Error(`"${n}": format "${d}" does not define "compare" function`);let m=t.scopeValue("formats",{key:d,ref:f,code:a.code.formats?(0,Rn._)`${a.code.formats}${(0,Rn.getProperty)(d)}`:void 0});e.fail$data(p(m))}function p(d){return(0,Rn._)`${d}.compare(${r}, ${o}) ${_g[n].fail} 0`}},dependencies:["format"]};var yF=e=>(e.addKeyword(Sl.formatLimitDefinition),e);Sl.default=yF});var cC=q((dp,uC)=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});var wl=iC(),vF=aC(),ik=ie(),sC=new ik.Name("fullFormats"),$F=new ik.Name("fastFormats"),ak=(e,t={keywords:!0})=>{if(Array.isArray(t))return lC(e,t,wl.fullFormats,sC),e;let[r,o]=t.mode==="fast"?[wl.fastFormats,$F]:[wl.fullFormats,sC],n=t.formats||wl.formatNames;return lC(e,n,r,o),t.keywords&&(0,vF.default)(e),e};ak.get=(e,t="full")=>{let o=(t==="fast"?wl.fastFormats:wl.fullFormats)[e];if(!o)throw new Error(`Unknown format "${e}"`);return o};function lC(e,t,r,o){var n,i;(n=(i=e.opts.code).formats)!==null&&n!==void 0||(i.formats=(0,ik._)`require("ajv-formats/dist/formats").${o}`);for(let a of t)e.addFormat(a,r[a])}uC.exports=dp=ak;Object.defineProperty(dp,"__esModule",{value:!0});dp.default=ak});function mC(e){if(typeof e=="function")return e;let t=e?.default;if(typeof t=="function")return t;throw new Error("ajv-runtime: could not resolve a runtime-helper function")}function Mi(e){if(e.type==="object"||e.properties!==void 0){let r={...e};if(r.properties){let o={};for(let[n,i]of Object.entries(r.properties))o[n]=Mi(i);r.properties=o}return r.additionalProperties===void 0?r.additionalProperties=!1:typeof r.additionalProperties!="boolean"&&(r.additionalProperties=Mi(r.additionalProperties)),r.oneOf&&(r.oneOf=r.oneOf.map(Mi)),r.anyOf&&(r.anyOf=r.anyOf.map(Mi)),r}if(e.type==="array"&&e.items)return{...e,items:Mi(e.items)};if(e.oneOf||e.anyOf){let r={...e};return r.oneOf&&(r.oneOf=r.oneOf.map(Mi)),r.anyOf&&(r.anyOf=r.anyOf.map(Mi)),r}return e}function Il(e){let t=Mi(e);return Tl.compile(t)}function gp(e,t){return e?e.map(r=>bF(r,t)):[]}function Sg(e,t){return t?e.map(r=>({...r,field:r.field?`${t}.${r.field}`:t})):e}function bF(e,t){let r=xF(e.instancePath);switch(e.keyword){case"additionalProperties":{let n=e.params.additionalProperty??"<unknown>",i=r?`${r}.${n}`:n,a=e.parentSchema,s=a?.properties?Object.keys(a.properties):[],l=fp(t,`${e.instancePath}/${n}`),u=s.length>0?` Declared keys: [${s.join(", ")}].`:" Declared keys: [(none)].";return{field:i,message:`Undeclared field '${n}'${r?` at '${r}'`:""}.${u}`,expected:"<declared key>",received:pC(l)}}case"required":{let n=e.params.missingProperty??"<unknown>";return{field:r?`${r}.${n}`:n,message:`Required field '${n}' missing${r?` at '${r}'`:""}`,expected:"present",received:"undefined"}}case"type":{let o=e.params,n=Array.isArray(o.type)?o.type.join("|"):o.type??"unknown",i=pC(fp(t,e.instancePath));return{field:r,message:e.message??`Type mismatch at '${r||"<root>"}'`,expected:n,received:i}}case"enum":{let n=e.params.allowedValues??[],i=fp(t,e.instancePath);return{field:r,message:e.message??`Enum mismatch at '${r||"<root>"}'`,expected:n.map(a=>JSON.stringify(a)).join("|"),received:JSON.stringify(i)}}case"const":{let o=e.params,n=fp(t,e.instancePath);return{field:r,message:e.message??`Const mismatch at '${r||"<root>"}'`,expected:JSON.stringify(o.allowedValue),received:JSON.stringify(n)}}case"pattern":{let o=e.params,n=fp(t,e.instancePath);return{field:r,message:e.message??`Pattern mismatch at '${r||"<root>"}'`,expected:o.pattern??"<pattern>",received:typeof n=="string"?n:JSON.stringify(n)}}default:return{field:r,message:e.message??`Validation failed${r?` at '${r}'`:""} (${e.keyword})`}}}function xF(e){if(!e)return"";let t=e.slice(1).split("/"),r="";for(let o of t)/^\d+$/.test(o)?r+=`[${o}]`:r===""?r=o:r+=`.${o}`;return r}function fp(e,t){if(!t)return e;let r=t.slice(1).split("/"),o=e;for(let n of r){if(o==null)return;if(Array.isArray(o)){let i=Number(n);if(!Number.isInteger(i))return;o=o[i]}else if(typeof o=="object")o=o[n];else return}return o}function pC(e){return e===null?"null":Array.isArray(e)?"array":typeof e}var sk,lk,dC,fC,kae,_ae,gC,Tl,mp,uk=x(()=>{"use strict";sk=C(Q2(),1),lk=C(cC(),1),dC=C(sp(),1),fC=C(m2(),1);kae=mC(dC.default).toString(),_ae=mC(fC.default).toString(),gC={strict:!0,allErrors:!0,useDefaults:!1,coerceTypes:!1,removeAdditional:!1,verbose:!0},Tl=new sk.default({...gC});(0,lk.default)(Tl);Tl.getKeyword("example")||Tl.addKeyword({keyword:"example"});Tl.getKeyword("nullable")||Tl.addKeyword({keyword:"nullable"});mp=new sk.default({...gC,code:{source:!0,esm:!0}});(0,lk.default)(mp);mp.getKeyword("example")||mp.addKeyword({keyword:"example"});mp.getKeyword("nullable")||mp.addKeyword({keyword:"nullable"})});var wg=x(()=>{"use strict"});function El(e){return _F.has(e)}function SF(e){let t=[];if(typeof e!="object"||e===null||Array.isArray(e))return{valid:!1,violations:[{field:"payload",message:`${hp} payload must be a non-null object`,expected:"object",received:e===null?"null":Array.isArray(e)?"array":typeof e}]};let r=e;if(typeof r.toolName!="string"&&t.push({field:"toolName",message:"Required field 'toolName' must be a string",expected:"string",received:r.toolName===void 0?"undefined":typeof r.toolName}),r.actionName!==void 0&&typeof r.actionName!="string"&&t.push({field:"actionName",message:"Optional field 'actionName' must be a string when present",expected:"string",received:typeof r.actionName}),r.sourceAction!==void 0)if(typeof r.sourceAction!="object"||r.sourceAction===null||Array.isArray(r.sourceAction))t.push({field:"sourceAction",message:"Optional field 'sourceAction' must be an object when present",expected:"object",received:r.sourceAction===null?"null":Array.isArray(r.sourceAction)?"array":typeof r.sourceAction});else{let o=r.sourceAction;typeof o.type!="string"&&t.push({field:"sourceAction.type",message:"Field 'sourceAction.type' must be a string",expected:"string",received:o.type===void 0?"undefined":typeof o.type}),typeof o.dispatchedAt!="string"&&t.push({field:"sourceAction.dispatchedAt",message:"Field 'sourceAction.dispatchedAt' must be a string (ISO 8601)",expected:"string",received:o.dispatchedAt===void 0?"undefined":typeof o.dispatchedAt})}if(typeof r.error!="object"||r.error===null||Array.isArray(r.error))t.push({field:"error",message:"Required field 'error' must be a non-null object",expected:"object",received:r.error===void 0?"undefined":r.error===null?"null":Array.isArray(r.error)?"array":typeof r.error});else{let o=r.error;typeof o.code!="string"&&t.push({field:"error.code",message:"Required field 'error.code' must be a string",expected:"string",received:o.code===void 0?"undefined":typeof o.code}),typeof o.message!="string"&&t.push({field:"error.message",message:"Required field 'error.message' must be a string",expected:"string",received:o.message===void 0?"undefined":typeof o.message}),o.causedBy!==void 0&&typeof o.causedBy!="string"&&t.push({field:"error.causedBy",message:"Optional field 'error.causedBy' must be a string when present",expected:"string",received:typeof o.causedBy})}return typeof r.timestamp!="string"&&t.push({field:"timestamp",message:"Required field 'timestamp' must be a string (ISO 8601)",expected:"string",received:r.timestamp===void 0?"undefined":typeof r.timestamp}),r.schemaVersion!==void 0&&typeof r.schemaVersion!="string"&&t.push({field:"schemaVersion",message:"Optional field 'schemaVersion' must be a string when present",expected:"string",received:typeof r.schemaVersion}),{valid:t.length===0,violations:t}}function wF(e){let t=[];if(typeof e!="object"||e===null||Array.isArray(e))return{valid:!1,violations:[{field:"payload",message:`${yp} payload must be a non-null object`,expected:"object",received:e===null?"null":Array.isArray(e)?"array":typeof e}]};let r=e;if(typeof r.kind!="string")return{valid:!1,violations:[{field:"kind",message:"Required field 'kind' must be a string",expected:"string",received:r.kind===void 0?"undefined":typeof r.kind}]};let o=n=>{typeof r[n]!="string"&&t.push({field:n,message:`Required field '${n}' must be a string`,expected:"string",received:r[n]===void 0?"undefined":typeof r[n]})};switch(r.kind){case"handshake_started":o("handshakeId"),o("intent");break;case"handshake_completed":o("handshakeId"),r.outcome!=="accepted"&&r.outcome!=="amended"&&r.outcome!=="declined"&&r.outcome!=="cached"&&t.push({field:"outcome",message:"Required field 'outcome' must be 'accepted' | 'amended' | 'declined' | 'cached'",expected:"'accepted' | 'amended' | 'declined' | 'cached'",received:r.outcome===void 0?"undefined":String(r.outcome)}),typeof r.genExpected!="boolean"&&t.push({field:"genExpected",message:"Required field 'genExpected' must be a boolean",expected:"boolean",received:r.genExpected===void 0?"undefined":typeof r.genExpected});break;case"push_started":o("stackItemId"),o("intent");break;case"consume_polling":o("stackItemId"),r.state!=="open"&&t.push({field:"state",message:"Required field 'state' must be 'open'",expected:"'open'",received:r.state===void 0?"undefined":String(r.state)});break;default:t.push({field:"kind",message:`Unknown lifecycle kind '${r.kind}'. Closed union; new kinds bump protocol version.`,expected:"'handshake_started' | 'handshake_completed' | 'push_started' | 'consume_polling'",received:r.kind})}return{valid:t.length===0,violations:t}}var kF,hp,yp,_F,hC,Tg=x(()=>{"use strict";kF="_ggui:preview",hp="_ggui:contract-error",yp="_ggui:lifecycle",_F=new Set([kF,hp,yp]);hC=new Map([[hp,SF],[yp,wF]])});var Ig=x(()=>{"use strict";Tg()});var ck=x(()=>{"use strict"});var Eg=x(()=>{"use strict";ck()});function RF(e){let t=e.properties??{};return{type:"object",properties:Object.fromEntries(Object.entries(t).map(([r,o])=>[r,o.schema])),required:Object.entries(t).filter(([,r])=>r.required===!0).map(([r])=>r)}}function Mg(e,t,r){let o=r??Il(RF(t));return o(e)?{valid:!0,violations:[]}:{valid:!1,violations:gp(o.errors,e)}}function Ml(e,t,r,o,n){if(El(e)){let s=o?.get(e);if(s)return s(t);let l=hC.get(e);return l?l(t):{valid:!0,violations:[]}}let i=[],a=r[e];if(!a)return i.push({field:"channel",message:`Unknown stream channel '${e}'. Declared channels: ${Object.keys(r).join(", ")}`,expected:Object.keys(r).join(" | "),received:e}),{valid:!1,violations:i};if(a.schema&&t!==void 0){let s=n?.get(e)??Il(a.schema);if(!s(t))for(let u of Sg(gp(s.errors,t),`${e}.payload`))i.push(u)}return{valid:i.length===0,violations:i}}function vC(e,t,r,o){let n=[],i=r[e];if(!i)return n.push({field:"contextSpec",message:`Unknown context slot '${e}'. Declared slots: ${Object.keys(r).join(", ")||"(none)"}`,expected:Object.keys(r).join(" | ")||"(none)",received:e}),{valid:!1,violations:n};if(i.schema&&t!==void 0){let a=o?.get(e)??Il(i.schema);if(!a(t))for(let l of Sg(gp(a.errors,t),`${e}.value`))n.push(l)}return{valid:n.length===0,violations:n}}function pk(e,t,r){let o=[];if(typeof e!="object"||e===null||Array.isArray(e))return o.push({field:"value",message:"Action payload must be an object with an `action` field",expected:"object",received:yC(e)}),{valid:!1,violations:o};let n=e,i=n.action;if(typeof i!="string"||i.length===0)return o.push({field:"action",message:"Missing or empty `action` identifier",expected:"string",received:yC(i)}),{valid:!1,violations:o};let a=t[i];if(!a)return o.push({field:"action",message:`Unknown action '${i}'. Declared actions: ${Object.keys(t).join(", ")||"(none)"}`,expected:Object.keys(t).join(" | ")||"(none)",received:i}),{valid:!1,violations:o};if(a.schema){let s=r?.get(i)??Il(a.schema);if(!s(n.data))for(let u of Sg(gp(s.errors,n.data),`${i}.data`))o.push(u)}return{valid:o.length===0,violations:o}}function yC(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Cg(e,t,r){return e.type!=="data:submit"?{valid:!0,violations:[]}:t?pk(e.payload,t,r):{valid:!0,violations:[]}}var $C=x(()=>{"use strict";Hm();uk();wg();Ig();Eg();Tg()});var bC=x(()=>{"use strict";sl();wg();Ig();Eg();Pc()});var xC=x(()=>{"use strict";uk()});var kC=x(()=>{"use strict";Hm()});var _C=x(()=>{"use strict"});var SC=x(()=>{"use strict"});var wC=x(()=>{"use strict"});var dk=x(()=>{"use strict"});var use,TC=x(()=>{"use strict";Wn();dk();use=g.object({sessionId:g.string().optional(),text:g.string().optional(),events:g.array(g.object({type:g.string(),payload:g.unknown()}).passthrough()).optional()}).passthrough()});var IC=x(()=>{"use strict"});var EC=x(()=>{"use strict"});var MC=x(()=>{"use strict"});var CC=x(()=>{"use strict"});var RC=x(()=>{"use strict"});var zC=x(()=>{"use strict";MC();CC();RC()});var PC=x(()=>{"use strict"});var OC=x(()=>{"use strict"});var AC=x(()=>{"use strict"});var To=x(()=>{"use strict";Fu();jw();Uw();Lw();qw();Bw();Vw();Hw();Gw();Zw();ux();W6();sl();Y6();X6();Q6();eI();tI();nI();oI();iI();aI();Hm();lI();Bm();uI();lx();cI();pI();dI();fI();gI();yI();vI();bI();dx();xI();$C();wg();Pc();bC();Ig();Eg();xC();kC();Tg();_C();ck();SC();wC();dk();TC();IC();EC();zC();PC();OC();AC();jm();ax()});var GC=q(Rg=>{"use strict";var AF=Symbol.for("react.transitional.element"),NF=Symbol.for("react.fragment");function HC(e,t,r){var o=null;if(r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),"key"in t){r={};for(var n in t)n!=="key"&&(r[n]=t[n])}else r=t;return t=r.ref,{$$typeof:AF,type:e,key:o,ref:t!==void 0?t:null,props:r}}Rg.Fragment=NF;Rg.jsx=HC;Rg.jsxs=HC});var B=q((qle,ZC)=>{"use strict";ZC.exports=GC()});var oR=q(ae=>{"use strict";var yk=Symbol.for("react.transitional.element"),DF=Symbol.for("react.portal"),jF=Symbol.for("react.fragment"),UF=Symbol.for("react.strict_mode"),LF=Symbol.for("react.profiler"),qF=Symbol.for("react.consumer"),BF=Symbol.for("react.context"),VF=Symbol.for("react.forward_ref"),HF=Symbol.for("react.suspense"),GF=Symbol.for("react.memo"),XC=Symbol.for("react.lazy"),FC=Symbol.iterator;function ZF(e){return e===null||typeof e!="object"?null:(e=FC&&e[FC]||e["@@iterator"],typeof e=="function"?e:null)}var QC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},eR=Object.assign,tR={};function Rl(e,t,r){this.props=e,this.context=t,this.refs=tR,this.updater=r||QC}Rl.prototype.isReactComponent={};Rl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Rl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rR(){}rR.prototype=Rl.prototype;function vk(e,t,r){this.props=e,this.context=t,this.refs=tR,this.updater=r||QC}var $k=vk.prototype=new rR;$k.constructor=vk;eR($k,Rl.prototype);$k.isPureReactComponent=!0;var WC=Array.isArray,rt={H:null,A:null,T:null,S:null},nR=Object.prototype.hasOwnProperty;function bk(e,t,r,o,n,i){return r=i.ref,{$$typeof:yk,type:e,key:t,ref:r!==void 0?r:null,props:i}}function FF(e,t){return bk(e.type,t,void 0,void 0,void 0,e.props)}function xk(e){return typeof e=="object"&&e!==null&&e.$$typeof===yk}function WF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var KC=/\/+/g;function hk(e,t){return typeof e=="object"&&e!==null&&e.key!=null?WF(""+e.key):t.toString(36)}function JC(){}function KF(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(JC,JC):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Cl(e,t,r,o,n){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"bigint":case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case yk:case DF:a=!0;break;case XC:return a=e._init,Cl(a(e._payload),t,r,o,n)}}if(a)return n=n(e),a=o===""?"."+hk(e,0):o,WC(n)?(r="",a!=null&&(r=a.replace(KC,"$&/")+"/"),Cl(n,t,r,"",function(u){return u})):n!=null&&(xk(n)&&(n=FF(n,r+(n.key==null||e&&e.key===n.key?"":(""+n.key).replace(KC,"$&/")+"/")+a)),t.push(n)),1;a=0;var s=o===""?".":o+":";if(WC(e))for(var l=0;l<e.length;l++)o=e[l],i=s+hk(o,l),a+=Cl(o,t,r,i,n);else if(l=ZF(e),typeof l=="function")for(e=l.call(e),l=0;!(o=e.next()).done;)o=o.value,i=s+hk(o,l++),a+=Cl(o,t,r,i,n);else if(i==="object"){if(typeof e.then=="function")return Cl(KF(e),t,r,o,n);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return a}function zg(e,t,r){if(e==null)return e;var o=[],n=0;return Cl(e,o,"","",function(i){return t.call(r,i,n++)}),o}function JF(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var YC=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function YF(){}ae.Children={map:zg,forEach:function(e,t,r){zg(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return zg(e,function(){t++}),t},toArray:function(e){return zg(e,function(t){return t})||[]},only:function(e){if(!xk(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=Rl;ae.Fragment=jF;ae.Profiler=LF;ae.PureComponent=vk;ae.StrictMode=UF;ae.Suspense=HF;ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=rt;ae.act=function(){throw Error("act(...) is not supported in production builds of React.")};ae.cache=function(e){return function(){return e.apply(null,arguments)}};ae.cloneElement=function(e,t,r){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=eR({},e.props),n=e.key,i=void 0;if(t!=null)for(a in t.ref!==void 0&&(i=void 0),t.key!==void 0&&(n=""+t.key),t)!nR.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(o[a]=t[a]);var a=arguments.length-2;if(a===1)o.children=r;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}return bk(e.type,n,void 0,void 0,i,o)};ae.createContext=function(e){return e={$$typeof:BF,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:qF,_context:e},e};ae.createElement=function(e,t,r){var o,n={},i=null;if(t!=null)for(o in t.key!==void 0&&(i=""+t.key),t)nR.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(n[o]=t[o]);var a=arguments.length-2;if(a===1)n.children=r;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];n.children=s}if(e&&e.defaultProps)for(o in a=e.defaultProps,a)n[o]===void 0&&(n[o]=a[o]);return bk(e,i,void 0,void 0,null,n)};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:VF,render:e}};ae.isValidElement=xk;ae.lazy=function(e){return{$$typeof:XC,_payload:{_status:-1,_result:e},_init:JF}};ae.memo=function(e,t){return{$$typeof:GF,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=rt.T,r={};rt.T=r;try{var o=e(),n=rt.S;n!==null&&n(r,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(YF,YC)}catch(i){YC(i)}finally{rt.T=t}};ae.unstable_useCacheRefresh=function(){return rt.H.useCacheRefresh()};ae.use=function(e){return rt.H.use(e)};ae.useActionState=function(e,t,r){return rt.H.useActionState(e,t,r)};ae.useCallback=function(e,t){return rt.H.useCallback(e,t)};ae.useContext=function(e){return rt.H.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e,t){return rt.H.useDeferredValue(e,t)};ae.useEffect=function(e,t){return rt.H.useEffect(e,t)};ae.useId=function(){return rt.H.useId()};ae.useImperativeHandle=function(e,t,r){return rt.H.useImperativeHandle(e,t,r)};ae.useInsertionEffect=function(e,t){return rt.H.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return rt.H.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return rt.H.useMemo(e,t)};ae.useOptimistic=function(e,t){return rt.H.useOptimistic(e,t)};ae.useReducer=function(e,t,r){return rt.H.useReducer(e,t,r)};ae.useRef=function(e){return rt.H.useRef(e)};ae.useState=function(e){return rt.H.useState(e)};ae.useSyncExternalStore=function(e,t,r){return rt.H.useSyncExternalStore(e,t,r)};ae.useTransition=function(){return rt.H.useTransition()};ae.version="19.0.0"});var G=q((Vle,iR)=>{"use strict";iR.exports=oR()});function en(){let e=(0,Pg.useContext)(kk);if(!e)throw new Error("useWireContext must be used within a WireProvider. Ensure the component is rendered inside a GguiSession.");return e}var Pg,kk,Ci=x(()=>{"use strict";Pg=C(G(),1),kk=(0,Pg.createContext)(null)});function Og({config:e,children:t}){return(0,aR.jsx)(kk.Provider,{value:e,children:t})}var aR,sR=x(()=>{"use strict";aR=C(B(),1);Ci()});function XF(e,t){try{return`${e}::${JSON.stringify(t??null)}`}catch{return null}}function lR(e,t){let r=XF(e,t);return r===null?{suppressed:!1,signature:r}:_k.has(r)?{suppressed:!0,signature:r}:(_k.add(r),Sk||(Sk=!0,queueMicrotask(()=>{_k.clear(),Sk=!1})),{suppressed:!1,signature:r})}var _k,Sk,uR=x(()=>{"use strict";_k=new Set,Sk=!1});function Ag(e){let{dispatch:t,onDispatchSuppressed:r}=en();return(0,cR.useCallback)(o=>{let n=lR(e,o);if(n.suppressed){if(console.warn(`[ggui] useAction('${e}') suppressed a duplicate dispatch (same name + payload, same event-loop task). This usually means two interactive elements nest and both wire to the same action (e.g. a Checkbox onChange inside a Card as={Clickable} onClick); the inner gesture bubbles to the outer handler so one user click would fire the action twice. Wire each useAction callback to exactly ONE interactive surface. Tier-0 'double-wired-action' warns on this at gen time; this runtime defense ensures the user-visible behavior stays correct regardless of code shape.`),r)try{r({actionName:e,payloadSignature:n.signature,payload:o,suppressedAt:Date.now()})}catch(i){console.warn("[ggui] onDispatchSuppressed observer threw \u2014 ignoring:",i)}return}t(e,o)},[e,t,r])}var cR,wk=x(()=>{"use strict";cR=C(G(),1);Ci();uR()});function dR(e){let t=e.length===0?"Context":e.charAt(0).toUpperCase()+e.slice(1)+"Context",o=globalThis.__ggui__?.contexts?.[t];if(!o)throw new Error(`[ggui] useGguiContext('${e}'): no Context registered. The contract must declare 'contextSpec.${e}' AND the runtime must have synthesized the per-slot React Context at boot. If you see this in production code generated by the LLM, the boilerplate's destructure line drifted from the contract.`);return(0,pR.useContext)(o)}var pR,fR=x(()=>{"use strict";pR=C(G(),1)});function Ng(e){let{subscribe:t}=en(),[r,o]=(0,Ri.useState)(null),[n,i]=(0,Ri.useState)([]),[a,s]=(0,Ri.useState)(!1),l=(0,Ri.useRef)(n);return l.current=n,(0,Ri.useEffect)(()=>t(e,u=>{let c=u.payload;o(c),u.mode==="replace"?i([c]):i([...l.current,c]),u.complete&&s(!0)}),[e,t]),{latest:r,all:n,isComplete:a}}var Ri,Tk=x(()=>{"use strict";Ri=C(G(),1);Ci()});function mR(e){return{useAction:t=>Ag(t),useStream:t=>Ng(t)}}var gR=x(()=>{"use strict";wk();Tk()});function hR(){let{auth:e}=en();return e}var yR=x(()=>{"use strict";Ci()});function vR(){let{app:e}=en();return e}var $R=x(()=>{"use strict";Ci()});function bR(){let{session:e}=en();return e}var xR=x(()=>{"use strict";Ci()});function kR(e,t,r){return e?pk({action:t,data:r},e):{valid:!0,violations:[]}}function _R(e,t,r,o){return El(t)?Ml(t,r,e??{},o):e?Ml(t,r,e,o):{valid:!0,violations:[]}}function Dg(e){return $I(e)}function SR(e,t){return Cg(t,e)}function wR(e,t){return e?Mg(t,e):{valid:!0,violations:[]}}var zl,TR=x(()=>{"use strict";To();zl=class extends Error{direction;violations;constructor(t,r,o){super(o?`Client contract violation (${t}): ${o}`:`Client contract violation (${t})`),this.name="ClientContractViolationError",this.direction=t,this.violations=r}}});var Ik={};ct(Ik,{ClientContractViolationError:()=>zl,GguiWireProvider:()=>Og,buildActionEnvelope:()=>Dg,useAction:()=>Ag,useApp:()=>vR,useAuth:()=>hR,useContract:()=>mR,useGguiContext:()=>dR,useSession:()=>bR,useStream:()=>Ng,useWireContext:()=>en,validateInboundPropsPayload:()=>wR,validateInboundStreamPayload:()=>_R,validateOutboundActionEnvelope:()=>SR,validateOutboundActionPayload:()=>kR});var $p=x(()=>{"use strict";sR();Ci();wk();fR();Tk();gR();yR();$R();xR();TR()});function UR(e){let t=e.split(";"),r=[],o=[];for(let n of t)n.trimStart().startsWith("import")?r.push(n):o.push(n);return r.length===0?e:r.join(";")+";"+o.join(";")}async function Vg(e){let t=new Blob([e],{type:"application/javascript"}),r=URL.createObjectURL(t);try{return await import(r)}finally{URL.revokeObjectURL(r)}}var Bk=x(()=>{"use strict"});var JR=q(Ue=>{"use strict";function Fk(e,t){var r=e.length;e.push(t);e:for(;0<r;){var o=r-1>>>1,n=e[o];if(0<Hg(n,t))e[o]=t,e[r]=n,r=o;else break e}}function zn(e){return e.length===0?null:e[0]}function Zg(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var o=0,n=e.length,i=n>>>1;o<i;){var a=2*(o+1)-1,s=e[a],l=a+1,u=e[l];if(0>Hg(s,r))l<n&&0>Hg(u,s)?(e[o]=u,e[l]=r,o=l):(e[o]=s,e[a]=r,o=a);else if(l<n&&0>Hg(u,r))e[o]=u,e[l]=r,o=l;else break e}}return t}function Hg(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}Ue.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(qR=performance,Ue.unstable_now=function(){return qR.now()}):(Hk=Date,BR=Hk.now(),Ue.unstable_now=function(){return Hk.now()-BR});var qR,Hk,BR,eo=[],zi=[],fW=1,tn=null,tr=3,Fg=!1,Fa=!1,kp=!1,GR=typeof setTimeout=="function"?setTimeout:null,ZR=typeof clearTimeout=="function"?clearTimeout:null,VR=typeof setImmediate<"u"?setImmediate:null;function Gg(e){for(var t=zn(zi);t!==null;){if(t.callback===null)Zg(zi);else if(t.startTime<=e)Zg(zi),t.sortIndex=t.expirationTime,Fk(eo,t);else break;t=zn(zi)}}function Wk(e){if(kp=!1,Gg(e),!Fa)if(zn(eo)!==null)Fa=!0,Kk();else{var t=zn(zi);t!==null&&Jk(Wk,t.startTime-e)}}var Wg=!1,_p=-1,FR=5,WR=-1;function KR(){return!(Ue.unstable_now()-WR<FR)}function Gk(){if(Wg){var e=Ue.unstable_now();WR=e;var t=!0;try{e:{Fa=!1,kp&&(kp=!1,ZR(_p),_p=-1),Fg=!0;var r=tr;try{t:{for(Gg(e),tn=zn(eo);tn!==null&&!(tn.expirationTime>e&&KR());){var o=tn.callback;if(typeof o=="function"){tn.callback=null,tr=tn.priorityLevel;var n=o(tn.expirationTime<=e);if(e=Ue.unstable_now(),typeof n=="function"){tn.callback=n,Gg(e),t=!0;break t}tn===zn(eo)&&Zg(eo),Gg(e)}else Zg(eo);tn=zn(eo)}if(tn!==null)t=!0;else{var i=zn(zi);i!==null&&Jk(Wk,i.startTime-e),t=!1}}break e}finally{tn=null,tr=r,Fg=!1}t=void 0}}finally{t?xp():Wg=!1}}}var xp;typeof VR=="function"?xp=function(){VR(Gk)}:typeof MessageChannel<"u"?(Zk=new MessageChannel,HR=Zk.port2,Zk.port1.onmessage=Gk,xp=function(){HR.postMessage(null)}):xp=function(){GR(Gk,0)};var Zk,HR;function Kk(){Wg||(Wg=!0,xp())}function Jk(e,t){_p=GR(function(){e(Ue.unstable_now())},t)}Ue.unstable_IdlePriority=5;Ue.unstable_ImmediatePriority=1;Ue.unstable_LowPriority=4;Ue.unstable_NormalPriority=3;Ue.unstable_Profiling=null;Ue.unstable_UserBlockingPriority=2;Ue.unstable_cancelCallback=function(e){e.callback=null};Ue.unstable_continueExecution=function(){Fa||Fg||(Fa=!0,Kk())};Ue.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):FR=0<e?Math.floor(1e3/e):5};Ue.unstable_getCurrentPriorityLevel=function(){return tr};Ue.unstable_getFirstCallbackNode=function(){return zn(eo)};Ue.unstable_next=function(e){switch(tr){case 1:case 2:case 3:var t=3;break;default:t=tr}var r=tr;tr=t;try{return e()}finally{tr=r}};Ue.unstable_pauseExecution=function(){};Ue.unstable_requestPaint=function(){};Ue.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=tr;tr=e;try{return t()}finally{tr=r}};Ue.unstable_scheduleCallback=function(e,t,r){var o=Ue.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?o+r:o):r=o,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:fW++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>o?(e.sortIndex=r,Fk(zi,e),zn(eo)===null&&e===zn(zi)&&(kp?(ZR(_p),_p=-1):kp=!0,Jk(Wk,r-o))):(e.sortIndex=n,Fk(eo,e),Fa||Fg||(Fa=!0,Kk())),e};Ue.unstable_shouldYield=KR;Ue.unstable_wrapCallback=function(e){var t=tr;return function(){var r=tr;tr=t;try{return e.apply(this,arguments)}finally{tr=r}}}});var XR=q((gce,YR)=>{"use strict";YR.exports=JR()});var ez=q(fr=>{"use strict";var mW=G();function QR(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Pi(){}var dr={d:{f:Pi,r:function(){throw Error(QR(522))},D:Pi,C:Pi,L:Pi,m:Pi,X:Pi,S:Pi,M:Pi},p:0,findDOMNode:null},gW=Symbol.for("react.portal");function hW(e,t,r){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:gW,key:o==null?null:""+o,children:e,containerInfo:t,implementation:r}}var Sp=mW.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Kg(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}fr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=dr;fr.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(QR(299));return hW(e,t,null,r)};fr.flushSync=function(e){var t=Sp.T,r=dr.p;try{if(Sp.T=null,dr.p=2,e)return e()}finally{Sp.T=t,dr.p=r,dr.d.f()}};fr.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,dr.d.C(e,t))};fr.prefetchDNS=function(e){typeof e=="string"&&dr.d.D(e)};fr.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var r=t.as,o=Kg(r,t.crossOrigin),n=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;r==="style"?dr.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:n,fetchPriority:i}):r==="script"&&dr.d.X(e,{crossOrigin:o,integrity:n,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};fr.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var r=Kg(t.as,t.crossOrigin);dr.d.M(e,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&dr.d.M(e)};fr.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var r=t.as,o=Kg(r,t.crossOrigin);dr.d.L(e,r,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};fr.preloadModule=function(e,t){if(typeof e=="string")if(t){var r=Kg(t.as,t.crossOrigin);dr.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else dr.d.m(e)};fr.requestFormReset=function(e){dr.d.r(e)};fr.unstable_batchedUpdates=function(e,t){return e(t)};fr.useFormState=function(e,t,r){return Sp.H.useFormState(e,t,r)};fr.useFormStatus=function(){return Sp.H.useHostTransitionStatus()};fr.version="19.0.0"});var nz=q((yce,rz)=>{"use strict";function tz(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tz)}catch(e){console.error(e)}}tz(),rz.exports=ez()});var XO=q(mh=>{"use strict";var Ct=XR(),k8=G(),yW=nz();function P(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function _8(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var vW=Symbol.for("react.element"),Jg=Symbol.for("react.transitional.element"),Pp=Symbol.for("react.portal"),ql=Symbol.for("react.fragment"),S8=Symbol.for("react.strict_mode"),E_=Symbol.for("react.profiler"),$W=Symbol.for("react.provider"),w8=Symbol.for("react.consumer"),Ao=Symbol.for("react.context"),x4=Symbol.for("react.forward_ref"),M_=Symbol.for("react.suspense"),C_=Symbol.for("react.suspense_list"),k4=Symbol.for("react.memo"),Ni=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var T8=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var bW=Symbol.for("react.memo_cache_sentinel"),oz=Symbol.iterator;function wp(e){return e===null||typeof e!="object"?null:(e=oz&&e[oz]||e["@@iterator"],typeof e=="function"?e:null)}var xW=Symbol.for("react.client.reference");function R_(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xW?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ql:return"Fragment";case Pp:return"Portal";case E_:return"Profiler";case S8:return"StrictMode";case M_:return"Suspense";case C_:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ao:return(e.displayName||"Context")+".Provider";case w8:return(e._context.displayName||"Context")+".Consumer";case x4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k4:return t=e.displayName||null,t!==null?t:R_(e.type)||"Memo";case Ni:t=e._payload,e=e._init;try{return R_(e(t))}catch{}}return null}var re=k8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Je=Object.assign,Yk,iz;function Op(e){if(Yk===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Yk=t&&t[1]||"",iz=-1<r.stack.indexOf(`
58
+ at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
59
+ `+Yk+e+iz}var Xk=!1;function Qk(e,t){if(!e||Xk)return"";Xk=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(f){var d=f}Reflect.construct(e,[],p)}else{try{p.call()}catch(f){d=f}e.call(p.prototype)}}else{try{throw Error()}catch(f){d=f}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(f){if(f&&d&&typeof f.stack=="string")return[f.stack,d.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=o.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split(`
60
+ `),u=s.split(`
61
+ `);for(n=o=0;o<l.length&&!l[o].includes("DetermineComponentFrameRoot");)o++;for(;n<u.length&&!u[n].includes("DetermineComponentFrameRoot");)n++;if(o===l.length||n===u.length)for(o=l.length-1,n=u.length-1;1<=o&&0<=n&&l[o]!==u[n];)n--;for(;1<=o&&0<=n;o--,n--)if(l[o]!==u[n]){if(o!==1||n!==1)do if(o--,n--,0>n||l[o]!==u[n]){var c=`
62
+ `+l[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=n);break}}}finally{Xk=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?Op(r):""}function kW(e){switch(e.tag){case 26:case 27:case 5:return Op(e.type);case 16:return Op("Lazy");case 13:return Op("Suspense");case 19:return Op("SuspenseList");case 0:case 15:return e=Qk(e.type,!1),e;case 11:return e=Qk(e.type.render,!1),e;case 1:return e=Qk(e.type,!0),e;default:return""}}function az(e){try{var t="";do t+=kW(e),e=e.return;while(e);return t}catch(r){return`
63
+ Error generating stack: `+r.message+`
64
+ `+r.stack}}function gu(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function I8(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function sz(e){if(gu(e)!==e)throw Error(P(188))}function _W(e){var t=e.alternate;if(!t){if(t=gu(e),t===null)throw Error(P(188));return t!==e?null:e}for(var r=e,o=t;;){var n=r.return;if(n===null)break;var i=n.alternate;if(i===null){if(o=n.return,o!==null){r=o;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===r)return sz(n),e;if(i===o)return sz(n),t;i=i.sibling}throw Error(P(188))}if(r.return!==o.return)r=n,o=i;else{for(var a=!1,s=n.child;s;){if(s===r){a=!0,r=n,o=i;break}if(s===o){a=!0,o=n,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,o=n;break}if(s===o){a=!0,o=i,r=n;break}s=s.sibling}if(!a)throw Error(P(189))}}if(r.alternate!==o)throw Error(P(190))}if(r.tag!==3)throw Error(P(188));return r.stateNode.current===r?e:t}function E8(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=E8(e),t!==null)return t;e=e.sibling}return null}var Ap=Array.isArray,Ke=yW.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,es={pending:!1,data:null,method:null,action:null},z_=[],Bl=-1;function so(e){return{current:e}}function jt(e){0>Bl||(e.current=z_[Bl],z_[Bl]=null,Bl--)}function et(e,t){Bl++,z_[Bl]=e.current,e.current=t}var no=so(null),Qp=so(null),Hi=so(null),T0=so(null);function I0(e,t){switch(et(Hi,t),et(Qp,e),et(no,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?u8(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=u8(e),t=LO(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}jt(no),et(no,t)}function au(){jt(no),jt(Qp),jt(Hi)}function P_(e){e.memoizedState!==null&&et(T0,e);var t=no.current,r=LO(t,e.type);t!==r&&(et(Qp,e),et(no,r))}function E0(e){Qp.current===e&&(jt(no),jt(Qp)),T0.current===e&&(jt(T0),cd._currentValue=es)}var O_=Object.prototype.hasOwnProperty,_4=Ct.unstable_scheduleCallback,e_=Ct.unstable_cancelCallback,SW=Ct.unstable_shouldYield,wW=Ct.unstable_requestPaint,oo=Ct.unstable_now,TW=Ct.unstable_getCurrentPriorityLevel,M8=Ct.unstable_ImmediatePriority,C8=Ct.unstable_UserBlockingPriority,M0=Ct.unstable_NormalPriority,IW=Ct.unstable_LowPriority,R8=Ct.unstable_IdlePriority,EW=Ct.log,MW=Ct.unstable_setDisableYieldValue,md=null,Ur=null;function CW(e){if(Ur&&typeof Ur.onCommitFiberRoot=="function")try{Ur.onCommitFiberRoot(md,e,void 0,(e.current.flags&128)===128)}catch{}}function Bi(e){if(typeof EW=="function"&&MW(e),Ur&&typeof Ur.setStrictMode=="function")try{Ur.setStrictMode(md,e)}catch{}}var Lr=Math.clz32?Math.clz32:PW,RW=Math.log,zW=Math.LN2;function PW(e){return e>>>=0,e===0?32:31-(RW(e)/zW|0)|0}var Yg=128,Xg=4194304;function Ka(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function eh(e,t){var r=e.pendingLanes;if(r===0)return 0;var o=0,n=e.suspendedLanes,i=e.pingedLanes,a=e.warmLanes;e=e.finishedLanes!==0;var s=r&134217727;return s!==0?(r=s&~n,r!==0?o=Ka(r):(i&=s,i!==0?o=Ka(i):e||(a=s&~a,a!==0&&(o=Ka(a))))):(s=r&~n,s!==0?o=Ka(s):i!==0?o=Ka(i):e||(a=r&~a,a!==0&&(o=Ka(a)))),o===0?0:t!==0&&t!==o&&(t&n)===0&&(n=o&-o,a=t&-t,n>=a||n===32&&(a&4194176)!==0)?t:o}function gd(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function OW(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function z8(){var e=Yg;return Yg<<=1,(Yg&4194176)===0&&(Yg=128),e}function P8(){var e=Xg;return Xg<<=1,(Xg&62914560)===0&&(Xg=4194304),e}function t_(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function hd(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function AW(e,t,r,o,n,i){var a=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(r=a&~r;0<r;){var c=31-Lr(r),p=1<<c;s[c]=0,l[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var f=d[c];f!==null&&(f.lane&=-536870913)}r&=~p}o!==0&&O8(e,o,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(a&~t))}function O8(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Lr(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|r&4194218}function A8(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var o=31-Lr(r),n=1<<o;n&t|e[o]&t&&(e[o]|=t),r&=~n}}function N8(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function D8(){var e=Ke.p;return e!==0?e:(e=window.event,e===void 0?32:JO(e.type))}function NW(e,t){var r=Ke.p;try{return Ke.p=e,t()}finally{Ke.p=r}}var ra=Math.random().toString(36).slice(2),rr="__reactFiber$"+ra,Er="__reactProps$"+ra,hu="__reactContainer$"+ra,A_="__reactEvents$"+ra,DW="__reactListeners$"+ra,jW="__reactHandles$"+ra,lz="__reactResources$"+ra,ed="__reactMarker$"+ra;function S4(e){delete e[rr],delete e[Er],delete e[A_],delete e[DW],delete e[jW]}function Xa(e){var t=e[rr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[hu]||r[rr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=p8(e);e!==null;){if(r=e[rr])return r;e=p8(e)}return t}e=r,r=e.parentNode}return null}function yu(e){if(e=e[rr]||e[hu]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function Np(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(P(33))}function Xl(e){var t=e[lz];return t||(t=e[lz]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Nt(e){e[ed]=!0}var j8=new Set,U8={};function ps(e,t){su(e,t),su(e+"Capture",t)}function su(e,t){for(U8[e]=t,e=0;e<t.length;e++)j8.add(t[e])}var qo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),UW=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),uz={},cz={};function LW(e){return O_.call(cz,e)?!0:O_.call(uz,e)?!1:UW.test(e)?cz[e]=!0:(uz[e]=!0,!1)}function m0(e,t,r){if(LW(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Qg(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function Eo(e,t,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+o)}}function an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function L8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qW(e){var t=L8(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(a){o=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return o},setValue:function(a){o=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function C0(e){e._valueTracker||(e._valueTracker=qW(e))}function q8(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),o="";return e&&(o=L8(e)?e.checked?"true":"false":e.value),e=o,e!==r?(t.setValue(e),!0):!1}function R0(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var BW=/[\n"\\]/g;function un(e){return e.replace(BW,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function N_(e,t,r,o,n,i,a,s){e.name="",a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?e.type=a:e.removeAttribute("type"),t!=null?a==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):a!=="submit"&&a!=="reset"||e.removeAttribute("value"),t!=null?D_(e,a,an(t)):r!=null?D_(e,a,an(r)):o!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+an(s):e.removeAttribute("name")}function B8(e,t,r,o,n,i,a,s){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||r!=null){if(!(i!=="submit"&&i!=="reset"||t!=null))return;r=r!=null?""+an(r):"",t=t!=null?""+an(t):r,s||t===e.value||(e.value=t),e.defaultValue=t}o=o??n,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.name=a)}function D_(e,t,r){t==="number"&&R0(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Ql(e,t,r,o){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&o&&(e[r].defaultSelected=!0)}else{for(r=""+an(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function V8(e,t,r){if(t!=null&&(t=""+an(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+an(r):""}function H8(e,t,r,o){if(t==null){if(o!=null){if(r!=null)throw Error(P(92));if(Ap(o)){if(1<o.length)throw Error(P(93));o=o[0]}r=o}r==null&&(r=""),t=r}r=an(t),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o)}function lu(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var VW=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function pz(e,t,r){var o=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,r):typeof r!="number"||r===0||VW.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function G8(e,t,r){if(t!=null&&typeof t!="object")throw Error(P(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var n in t)o=t[n],t.hasOwnProperty(n)&&r[n]!==o&&pz(e,n,o)}else for(var i in t)t.hasOwnProperty(i)&&pz(e,i,t[i])}function w4(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var HW=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),GW=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function g0(e){return GW.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var j_=null;function T4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,eu=null;function dz(e){var t=yu(e);if(t&&(e=t.stateNode)){var r=e[Er]||null;e:switch(e=t.stateNode,t.type){case"input":if(N_(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+un(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var n=o[Er]||null;if(!n)throw Error(P(90));N_(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<r.length;t++)o=r[t],o.form===e.form&&q8(o)}break e;case"textarea":V8(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&Ql(e,!!r.multiple,t,!1)}}}var r_=!1;function Z8(e,t,r){if(r_)return e(t,r);r_=!0;try{var o=e(t);return o}finally{if(r_=!1,(Vl!==null||eu!==null)&&(ch(),Vl&&(t=Vl,e=eu,eu=Vl=null,dz(t),e)))for(t=0;t<e.length;t++)dz(e[t])}}function td(e,t){var r=e.stateNode;if(r===null)return null;var o=r[Er]||null;if(o===null)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(P(231,t,typeof r));return r}var U_=!1;if(qo)try{Al={},Object.defineProperty(Al,"passive",{get:function(){U_=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{U_=!1}var Al,Vi=null,I4=null,h0=null;function F8(){if(h0)return h0;var e,t=I4,r=t.length,o,n="value"in Vi?Vi.value:Vi.textContent,i=n.length;for(e=0;e<r&&t[e]===n[e];e++);var a=r-e;for(o=1;o<=a&&t[r-o]===n[i-o];o++);return h0=n.slice(e,1<o?1-o:void 0)}function y0(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function e0(){return!0}function fz(){return!1}function Mr(e){function t(r,o,n,i,a){this._reactName=r,this._targetInst=n,this.type=o,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?e0:fz,this.isPropagationStopped=fz,this}return Je(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=e0)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=e0)},persist:function(){},isPersistent:e0}),t}var ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},th=Mr(ds),yd=Je({},ds,{view:0,detail:0}),ZW=Mr(yd),n_,o_,Tp,rh=Je({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:E4,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Tp&&(Tp&&e.type==="mousemove"?(n_=e.screenX-Tp.screenX,o_=e.screenY-Tp.screenY):o_=n_=0,Tp=e),n_)},movementY:function(e){return"movementY"in e?e.movementY:o_}}),mz=Mr(rh),FW=Je({},rh,{dataTransfer:0}),WW=Mr(FW),KW=Je({},yd,{relatedTarget:0}),i_=Mr(KW),JW=Je({},ds,{animationName:0,elapsedTime:0,pseudoElement:0}),YW=Mr(JW),XW=Je({},ds,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),QW=Mr(XW),eK=Je({},ds,{data:0}),gz=Mr(eK),tK={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rK={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},nK={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oK(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nK[e])?!!t[e]:!1}function E4(){return oK}var iK=Je({},yd,{key:function(e){if(e.key){var t=tK[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=y0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rK[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:E4,charCode:function(e){return e.type==="keypress"?y0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?y0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),aK=Mr(iK),sK=Je({},rh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hz=Mr(sK),lK=Je({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:E4}),uK=Mr(lK),cK=Je({},ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),pK=Mr(cK),dK=Je({},rh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fK=Mr(dK),mK=Je({},ds,{newState:0,oldState:0}),gK=Mr(mK),hK=[9,13,27,32],M4=qo&&"CompositionEvent"in window,jp=null;qo&&"documentMode"in document&&(jp=document.documentMode);var yK=qo&&"TextEvent"in window&&!jp,W8=qo&&(!M4||jp&&8<jp&&11>=jp),yz=" ",vz=!1;function K8(e,t){switch(e){case"keyup":return hK.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function J8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hl=!1;function vK(e,t){switch(e){case"compositionend":return J8(t);case"keypress":return t.which!==32?null:(vz=!0,yz);case"textInput":return e=t.data,e===yz&&vz?null:e;default:return null}}function $K(e,t){if(Hl)return e==="compositionend"||!M4&&K8(e,t)?(e=F8(),h0=I4=Vi=null,Hl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return W8&&t.locale!=="ko"?null:t.data;default:return null}}var bK={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function $z(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bK[e.type]:t==="textarea"}function Y8(e,t,r,o){Vl?eu?eu.push(o):eu=[o]:Vl=o,t=F0(t,"onChange"),0<t.length&&(r=new th("onChange","change",null,r,o),e.push({event:r,listeners:t}))}var Up=null,rd=null;function xK(e){DO(e,0)}function nh(e){var t=Np(e);if(q8(t))return e}function bz(e,t){if(e==="change")return t}var X8=!1;qo&&(qo?(r0="oninput"in document,r0||(a_=document.createElement("div"),a_.setAttribute("oninput","return;"),r0=typeof a_.oninput=="function"),t0=r0):t0=!1,X8=t0&&(!document.documentMode||9<document.documentMode));var t0,r0,a_;function xz(){Up&&(Up.detachEvent("onpropertychange",Q8),rd=Up=null)}function Q8(e){if(e.propertyName==="value"&&nh(rd)){var t=[];Y8(t,rd,e,T4(e)),Z8(xK,t)}}function kK(e,t,r){e==="focusin"?(xz(),Up=t,rd=r,Up.attachEvent("onpropertychange",Q8)):e==="focusout"&&xz()}function _K(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nh(rd)}function SK(e,t){if(e==="click")return nh(t)}function wK(e,t){if(e==="input"||e==="change")return nh(t)}function TK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Br=typeof Object.is=="function"?Object.is:TK;function nd(e,t){if(Br(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var n=r[o];if(!O_.call(t,n)||!Br(e[n],t[n]))return!1}return!0}function kz(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _z(e,t){var r=kz(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=t&&o>=t)return{node:r,offset:t-e};e=o}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=kz(r)}}function eP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?eP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function tP(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=R0(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=R0(e.document)}return t}function C4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function IK(e,t){var r=tP(t);t=e.focusedElem;var o=e.selectionRange;if(r!==t&&t&&t.ownerDocument&&eP(t.ownerDocument.documentElement,t)){if(o!==null&&C4(t)){if(e=o.start,r=o.end,r===void 0&&(r=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(r,t.value.length);else if(r=(e=t.ownerDocument||document)&&e.defaultView||window,r.getSelection){r=r.getSelection();var n=t.textContent.length,i=Math.min(o.start,n);o=o.end===void 0?i:Math.min(o.end,n),!r.extend&&i>o&&(n=o,o=i,i=n),n=_z(t,i);var a=_z(t,o);n&&a&&(r.rangeCount!==1||r.anchorNode!==n.node||r.anchorOffset!==n.offset||r.focusNode!==a.node||r.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),r.removeAllRanges(),i>o?(r.addRange(e),r.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),r.addRange(e)))}}for(e=[],r=t;r=r.parentNode;)r.nodeType===1&&e.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)r=e[t],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var EK=qo&&"documentMode"in document&&11>=document.documentMode,Gl=null,L_=null,Lp=null,q_=!1;function Sz(e,t,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;q_||Gl==null||Gl!==R0(o)||(o=Gl,"selectionStart"in o&&C4(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Lp&&nd(Lp,o)||(Lp=o,o=F0(L_,"onSelect"),0<o.length&&(t=new th("onSelect","select",null,t,r),e.push({event:t,listeners:o}),t.target=Gl)))}function Wa(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Zl={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},s_={},rP={};qo&&(rP=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function fs(e){if(s_[e])return s_[e];if(!Zl[e])return e;var t=Zl[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in rP)return s_[e]=t[r];return e}var nP=fs("animationend"),oP=fs("animationiteration"),iP=fs("animationstart"),MK=fs("transitionrun"),CK=fs("transitionstart"),RK=fs("transitioncancel"),aP=fs("transitionend"),sP=new Map,wz="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Nn(e,t){sP.set(e,t),ps(t,[e])}var on=[],Fl=0,R4=0;function oh(){for(var e=Fl,t=R4=Fl=0;t<e;){var r=on[t];on[t++]=null;var o=on[t];on[t++]=null;var n=on[t];on[t++]=null;var i=on[t];if(on[t++]=null,o!==null&&n!==null){var a=o.pending;a===null?n.next=n:(n.next=a.next,a.next=n),o.pending=n}i!==0&&lP(r,n,i)}}function ih(e,t,r,o){on[Fl++]=e,on[Fl++]=t,on[Fl++]=r,on[Fl++]=o,R4|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function z4(e,t,r,o){return ih(e,t,r,o),z0(e)}function Xi(e,t){return ih(e,null,null,t),z0(e)}function lP(e,t,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var n=!1,i=e.return;i!==null;)i.childLanes|=r,o=i.alternate,o!==null&&(o.childLanes|=r),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;n&&t!==null&&e.tag===3&&(i=e.stateNode,n=31-Lr(r),i=i.hiddenUpdates,e=i[n],e===null?i[n]=[t]:e.push(t),t.lane=r|536870912)}function z0(e){if(50<Xp)throw Xp=0,u4=null,Error(P(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wl={},Tz=new WeakMap;function cn(e,t){if(typeof e=="object"&&e!==null){var r=Tz.get(e);return r!==void 0?r:(t={value:e,source:t,stack:az(t)},Tz.set(e,t),t)}return{value:e,source:t,stack:az(t)}}var Kl=[],Jl=0,P0=null,O0=0,sn=[],ln=0,ts=null,No=1,Do="";function Ja(e,t){Kl[Jl++]=O0,Kl[Jl++]=P0,P0=e,O0=t}function uP(e,t,r){sn[ln++]=No,sn[ln++]=Do,sn[ln++]=ts,ts=e;var o=No;e=Do;var n=32-Lr(o)-1;o&=~(1<<n),r+=1;var i=32-Lr(t)+n;if(30<i){var a=n-n%5;i=(o&(1<<a)-1).toString(32),o>>=a,n-=a,No=1<<32-Lr(t)+n|r<<n|o,Do=i+e}else No=1<<i|r<<n|o,Do=e}function P4(e){e.return!==null&&(Ja(e,1),uP(e,1,0))}function O4(e){for(;e===P0;)P0=Kl[--Jl],Kl[Jl]=null,O0=Kl[--Jl],Kl[Jl]=null;for(;e===ts;)ts=sn[--ln],sn[ln]=null,Do=sn[--ln],sn[ln]=null,No=sn[--ln],sn[ln]=null}var mr=null,Wt=null,ke=!1,On=null,to=!1,B_=Error(P(519));function as(e){var t=Error(P(418,""));throw od(cn(t,e)),B_}function Iz(e){var t=e.stateNode,r=e.type,o=e.memoizedProps;switch(t[rr]=e,t[Er]=o,r){case"dialog":ge("cancel",t),ge("close",t);break;case"iframe":case"object":case"embed":ge("load",t);break;case"video":case"audio":for(r=0;r<sd.length;r++)ge(sd[r],t);break;case"source":ge("error",t);break;case"img":case"image":case"link":ge("error",t),ge("load",t);break;case"details":ge("toggle",t);break;case"input":ge("invalid",t),B8(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),C0(t);break;case"select":ge("invalid",t);break;case"textarea":ge("invalid",t),H8(t,o.value,o.defaultValue,o.children),C0(t)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||o.suppressHydrationWarning===!0||UO(t.textContent,r)?(o.popover!=null&&(ge("beforetoggle",t),ge("toggle",t)),o.onScroll!=null&&ge("scroll",t),o.onScrollEnd!=null&&ge("scrollend",t),o.onClick!=null&&(t.onclick=dh),t=!0):t=!1,t||as(e)}function Ez(e){for(mr=e.return;mr;)switch(mr.tag){case 3:case 27:to=!0;return;case 5:case 13:to=!1;return;default:mr=mr.return}}function Ip(e){if(e!==mr)return!1;if(!ke)return Ez(e),ke=!0,!1;var t=!1,r;if((r=e.tag!==3&&e.tag!==27)&&((r=e.tag===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||h4(e.type,e.memoizedProps)),r=!r),r&&(t=!0),t&&Wt&&as(e),Ez(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(t===0){Wt=An(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++;e=e.nextSibling}Wt=null}}else Wt=mr?An(e.stateNode.nextSibling):null;return!0}function vd(){Wt=mr=null,ke=!1}function od(e){On===null?On=[e]:On.push(e)}var qp=Error(P(460)),cP=Error(P(474)),V_={then:function(){}};function Mz(e){return e=e.status,e==="fulfilled"||e==="rejected"}function n0(){}function pP(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(n0,n0),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===qp?Error(P(483)):e;default:if(typeof t.status=="string")t.then(n0,n0);else{if(e=Ve,e!==null&&100<e.shellSuspendCounter)throw Error(P(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=o}},function(o){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===qp?Error(P(483)):e}throw Bp=t,qp}}var Bp=null;function Cz(){if(Bp===null)throw Error(P(459));var e=Bp;return Bp=null,e}var tu=null,id=0;function o0(e){var t=id;return id+=1,tu===null&&(tu=[]),pP(tu,e,t)}function Ep(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function i0(e,t){throw t.$$typeof===vW?Error(P(525)):(e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Rz(e){var t=e._init;return t(e._payload)}function dP(e){function t(y,h){if(e){var $=y.deletions;$===null?(y.deletions=[h],y.flags|=16):$.push(h)}}function r(y,h){if(!e)return null;for(;h!==null;)t(y,h),h=h.sibling;return null}function o(y){for(var h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function n(y,h){return y=Fi(y,h),y.index=0,y.sibling=null,y}function i(y,h,$){return y.index=$,e?($=y.alternate,$!==null?($=$.index,$<h?(y.flags|=33554434,h):$):(y.flags|=33554434,h)):(y.flags|=1048576,h)}function a(y){return e&&y.alternate===null&&(y.flags|=33554434),y}function s(y,h,$,_){return h===null||h.tag!==6?(h=$_($,y.mode,_),h.return=y,h):(h=n(h,$),h.return=y,h)}function l(y,h,$,_){var S=$.type;return S===ql?c(y,h,$.props.children,_,$.key):h!==null&&(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ni&&Rz(S)===h.type)?(h=n(h,$.props),Ep(h,$),h.return=y,h):(h=k0($.type,$.key,$.props,null,y.mode,_),Ep(h,$),h.return=y,h)}function u(y,h,$,_){return h===null||h.tag!==4||h.stateNode.containerInfo!==$.containerInfo||h.stateNode.implementation!==$.implementation?(h=b_($,y.mode,_),h.return=y,h):(h=n(h,$.children||[]),h.return=y,h)}function c(y,h,$,_,S){return h===null||h.tag!==7?(h=ns($,y.mode,_,S),h.return=y,h):(h=n(h,$),h.return=y,h)}function p(y,h,$){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=$_(""+h,y.mode,$),h.return=y,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Jg:return $=k0(h.type,h.key,h.props,null,y.mode,$),Ep($,h),$.return=y,$;case Pp:return h=b_(h,y.mode,$),h.return=y,h;case Ni:var _=h._init;return h=_(h._payload),p(y,h,$)}if(Ap(h)||wp(h))return h=ns(h,y.mode,$,null),h.return=y,h;if(typeof h.then=="function")return p(y,o0(h),$);if(h.$$typeof===Ao)return p(y,a0(y,h),$);i0(y,h)}return null}function d(y,h,$,_){var S=h!==null?h.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return S!==null?null:s(y,h,""+$,_);if(typeof $=="object"&&$!==null){switch($.$$typeof){case Jg:return $.key===S?l(y,h,$,_):null;case Pp:return $.key===S?u(y,h,$,_):null;case Ni:return S=$._init,$=S($._payload),d(y,h,$,_)}if(Ap($)||wp($))return S!==null?null:c(y,h,$,_,null);if(typeof $.then=="function")return d(y,h,o0($),_);if($.$$typeof===Ao)return d(y,h,a0(y,$),_);i0(y,$)}return null}function f(y,h,$,_,S){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return y=y.get($)||null,s(h,y,""+_,S);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Jg:return y=y.get(_.key===null?$:_.key)||null,l(h,y,_,S);case Pp:return y=y.get(_.key===null?$:_.key)||null,u(h,y,_,S);case Ni:var O=_._init;return _=O(_._payload),f(y,h,$,_,S)}if(Ap(_)||wp(_))return y=y.get($)||null,c(h,y,_,S,null);if(typeof _.then=="function")return f(y,h,$,o0(_),S);if(_.$$typeof===Ao)return f(y,h,$,a0(h,_),S);i0(h,_)}return null}function m(y,h,$,_){for(var S=null,O=null,k=h,T=h=0,I=null;k!==null&&T<$.length;T++){k.index>T?(I=k,k=null):I=k.sibling;var M=d(y,k,$[T],_);if(M===null){k===null&&(k=I);break}e&&k&&M.alternate===null&&t(y,k),h=i(M,h,T),O===null?S=M:O.sibling=M,O=M,k=I}if(T===$.length)return r(y,k),ke&&Ja(y,T),S;if(k===null){for(;T<$.length;T++)k=p(y,$[T],_),k!==null&&(h=i(k,h,T),O===null?S=k:O.sibling=k,O=k);return ke&&Ja(y,T),S}for(k=o(k);T<$.length;T++)I=f(k,y,T,$[T],_),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?T:I.key),h=i(I,h,T),O===null?S=I:O.sibling=I,O=I);return e&&k.forEach(function(z){return t(y,z)}),ke&&Ja(y,T),S}function v(y,h,$,_){if($==null)throw Error(P(151));for(var S=null,O=null,k=h,T=h=0,I=null,M=$.next();k!==null&&!M.done;T++,M=$.next()){k.index>T?(I=k,k=null):I=k.sibling;var z=d(y,k,M.value,_);if(z===null){k===null&&(k=I);break}e&&k&&z.alternate===null&&t(y,k),h=i(z,h,T),O===null?S=z:O.sibling=z,O=z,k=I}if(M.done)return r(y,k),ke&&Ja(y,T),S;if(k===null){for(;!M.done;T++,M=$.next())M=p(y,M.value,_),M!==null&&(h=i(M,h,T),O===null?S=M:O.sibling=M,O=M);return ke&&Ja(y,T),S}for(k=o(k);!M.done;T++,M=$.next())M=f(k,y,T,M.value,_),M!==null&&(e&&M.alternate!==null&&k.delete(M.key===null?T:M.key),h=i(M,h,T),O===null?S=M:O.sibling=M,O=M);return e&&k.forEach(function(A){return t(y,A)}),ke&&Ja(y,T),S}function b(y,h,$,_){if(typeof $=="object"&&$!==null&&$.type===ql&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case Jg:e:{for(var S=$.key;h!==null;){if(h.key===S){if(S=$.type,S===ql){if(h.tag===7){r(y,h.sibling),_=n(h,$.props.children),_.return=y,y=_;break e}}else if(h.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ni&&Rz(S)===h.type){r(y,h.sibling),_=n(h,$.props),Ep(_,$),_.return=y,y=_;break e}r(y,h);break}else t(y,h);h=h.sibling}$.type===ql?(_=ns($.props.children,y.mode,_,$.key),_.return=y,y=_):(_=k0($.type,$.key,$.props,null,y.mode,_),Ep(_,$),_.return=y,y=_)}return a(y);case Pp:e:{for(S=$.key;h!==null;){if(h.key===S)if(h.tag===4&&h.stateNode.containerInfo===$.containerInfo&&h.stateNode.implementation===$.implementation){r(y,h.sibling),_=n(h,$.children||[]),_.return=y,y=_;break e}else{r(y,h);break}else t(y,h);h=h.sibling}_=b_($,y.mode,_),_.return=y,y=_}return a(y);case Ni:return S=$._init,$=S($._payload),b(y,h,$,_)}if(Ap($))return m(y,h,$,_);if(wp($)){if(S=wp($),typeof S!="function")throw Error(P(150));return $=S.call($),v(y,h,$,_)}if(typeof $.then=="function")return b(y,h,o0($),_);if($.$$typeof===Ao)return b(y,h,a0(y,$),_);i0(y,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,h!==null&&h.tag===6?(r(y,h.sibling),_=n(h,$),_.return=y,y=_):(r(y,h),_=$_($,y.mode,_),_.return=y,y=_),a(y)):r(y,h)}return function(y,h,$,_){try{id=0;var S=b(y,h,$,_);return tu=null,S}catch(k){if(k===qp)throw k;var O=pn(29,k,null,y.mode);return O.lanes=_,O.return=y,O}finally{}}}var ss=dP(!0),fP=dP(!1),uu=so(null),A0=so(0);function zz(e,t){e=Ho,et(A0,e),et(uu,t),Ho=e|t.baseLanes}function H_(){et(A0,Ho),et(uu,uu.current)}function A4(){Ho=A0.current,jt(uu),jt(A0)}var fn=so(null),io=null;function ji(e){var t=e.alternate;et(Mt,Mt.current&1),et(fn,e),io===null&&(t===null||uu.current!==null||t.memoizedState!==null)&&(io=e)}function mP(e){if(e.tag===22){if(et(Mt,Mt.current),et(fn,e),io===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(io=e)}}else Ui(e)}function Ui(){et(Mt,Mt.current),et(fn,fn.current)}function jo(e){jt(fn),io===e&&(io=null),jt(Mt)}var Mt=so(0);function N0(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var zK=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},PK=Ct.unstable_scheduleCallback,OK=Ct.unstable_NormalPriority,Et={$$typeof:Ao,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function N4(){return{controller:new zK,data:new Map,refCount:0}}function $d(e){e.refCount--,e.refCount===0&&PK(OK,function(){e.controller.abort()})}var Vp=null,G_=0,cu=0,ru=null;function AK(e,t){if(Vp===null){var r=Vp=[];G_=0,cu=iS(),ru={status:"pending",value:void 0,then:function(o){r.push(o)}}}return G_++,t.then(Pz,Pz),t}function Pz(){if(--G_===0&&Vp!==null){ru!==null&&(ru.status="fulfilled");var e=Vp;Vp=null,cu=0,ru=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function NK(e,t){var r=[],o={status:"pending",value:null,reason:null,then:function(n){r.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<r.length;n++)(0,r[n])(t)},function(n){for(o.status="rejected",o.reason=n,n=0;n<r.length;n++)(0,r[n])(void 0)}),o}var Oz=re.S;re.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&AK(e,t),Oz!==null&&Oz(e,t)};var rs=so(null);function D4(){var e=rs.current;return e!==null?e:Ve.pooledCache}function v0(e,t){t===null?et(rs,rs.current):et(rs,t.pool)}function gP(){var e=D4();return e===null?null:{parent:Et._currentValue,pool:e}}var Qi=0,ue=null,Pe=null,$t=null,D0=!1,nu=!1,ls=!1,j0=0,ad=0,ou=null,DK=0;function dt(){throw Error(P(321))}function j4(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Br(e[r],t[r]))return!1;return!0}function U4(e,t,r,o,n,i){return Qi=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,re.H=e===null||e.memoizedState===null?ms:na,ls=!1,i=r(o,n),ls=!1,nu&&(i=yP(t,r,o,n)),hP(e),i}function hP(e){re.H=ao;var t=Pe!==null&&Pe.next!==null;if(Qi=0,$t=Pe=ue=null,D0=!1,ad=0,ou=null,t)throw Error(P(300));e===null||Dt||(e=e.dependencies,e!==null&&q0(e)&&(Dt=!0))}function yP(e,t,r,o){ue=e;var n=0;do{if(nu&&(ou=null),ad=0,nu=!1,25<=n)throw Error(P(301));if(n+=1,$t=Pe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}re.H=gs,i=t(r,o)}while(nu);return i}function jK(){var e=re.H,t=e.useState()[0];return t=typeof t.then=="function"?bd(t):t,e=e.useState()[0],(Pe!==null?Pe.memoizedState:null)!==e&&(ue.flags|=1024),t}function L4(){var e=j0!==0;return j0=0,e}function q4(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function B4(e){if(D0){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}D0=!1}Qi=0,$t=Pe=ue=null,nu=!1,ad=j0=0,ou=null}function Ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?ue.memoizedState=$t=e:$t=$t.next=e,$t}function bt(){if(Pe===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Pe.next;var t=$t===null?ue.memoizedState:$t.next;if(t!==null)$t=t,Pe=e;else{if(e===null)throw ue.alternate===null?Error(P(467)):Error(P(310));Pe=e,e={memoizedState:Pe.memoizedState,baseState:Pe.baseState,baseQueue:Pe.baseQueue,queue:Pe.queue,next:null},$t===null?ue.memoizedState=$t=e:$t=$t.next=e}return $t}var ah;ah=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function bd(e){var t=ad;return ad+=1,ou===null&&(ou=[]),e=pP(ou,e,t),t=ue,($t===null?t.memoizedState:$t.next)===null&&(t=t.alternate,re.H=t===null||t.memoizedState===null?ms:na),e}function sh(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bd(e);if(e.$$typeof===Ao)return nr(e)}throw Error(P(438,String(e)))}function V4(e){var t=null,r=ue.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var o=ue.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=ah(),ue.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),o=0;o<e;o++)r[o]=bW;return t.index++,r}function Bo(e,t){return typeof t=="function"?t(e):t}function $0(e){var t=bt();return H4(t,Pe,e)}function H4(e,t,r){var o=e.queue;if(o===null)throw Error(P(311));o.lastRenderedReducer=r;var n=e.baseQueue,i=o.pending;if(i!==null){if(n!==null){var a=n.next;n.next=i.next,i.next=a}t.baseQueue=n=i,o.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var s=a=null,l=null,u=t,c=!1;do{var p=u.lane&-536870913;if(p!==u.lane?($e&p)===p:(Qi&p)===p){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),p===cu&&(c=!0);else if((Qi&d)===d){u=u.next,d===cu&&(c=!0);continue}else p={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=p,a=i):l=l.next=p,ue.lanes|=d,ta|=d;p=u.action,ls&&r(i,p),i=u.hasEagerState?u.eagerState:r(i,p)}else d={lane:p,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(s=l=d,a=i):l=l.next=d,ue.lanes|=p,ta|=p;u=u.next}while(u!==null&&u!==t);if(l===null?a=i:l.next=s,!Br(i,e.memoizedState)&&(Dt=!0,c&&(r=ru,r!==null)))throw r;e.memoizedState=i,e.baseState=a,e.baseQueue=l,o.lastRenderedState=i}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function l_(e){var t=bt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var o=r.dispatch,n=r.pending,i=t.memoizedState;if(n!==null){r.pending=null;var a=n=n.next;do i=e(i,a.action),a=a.next;while(a!==n);Br(i,t.memoizedState)||(Dt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function vP(e,t,r){var o=ue,n=bt(),i=ke;if(i){if(r===void 0)throw Error(P(407));r=r()}else r=t();var a=!Br((Pe||n).memoizedState,r);if(a&&(n.memoizedState=r,Dt=!0),n=n.queue,G4(xP.bind(null,o,n,e),[e]),n.getSnapshot!==t||a||$t!==null&&$t.memoizedState.tag&1){if(o.flags|=2048,pu(9,bP.bind(null,o,n,r,t),{destroy:void 0},null),Ve===null)throw Error(P(349));i||(Qi&60)!==0||$P(o,t,r)}return r}function $P(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=ue.updateQueue,t===null?(t=ah(),ue.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function bP(e,t,r,o){t.value=r,t.getSnapshot=o,kP(t)&&_P(e)}function xP(e,t,r){return r(function(){kP(t)&&_P(e)})}function kP(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Br(e,r)}catch{return!0}}function _P(e){var t=Xi(e,2);t!==null&&gr(t,e,2)}function Z_(e){var t=Ir();if(typeof e=="function"){var r=e;if(e=r(),ls){Bi(!0);try{r()}finally{Bi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:e},t}function SP(e,t,r,o){return e.baseState=r,H4(e,Pe,typeof o=="function"?o:Bo)}function UK(e,t,r,o,n){if(uh(e))throw Error(P(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(a){i.listeners.push(a)}};re.T!==null?r(!0):i.isTransition=!1,o(i),r=t.pending,r===null?(i.next=t.pending=i,wP(t,i)):(i.next=r.next,t.pending=r.next=i)}}function wP(e,t){var r=t.action,o=t.payload,n=e.state;if(t.isTransition){var i=re.T,a={};re.T=a;try{var s=r(n,o),l=re.S;l!==null&&l(a,s),Az(e,t,s)}catch(u){F_(e,t,u)}finally{re.T=i}}else try{i=r(n,o),Az(e,t,i)}catch(u){F_(e,t,u)}}function Az(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){Nz(e,t,o)},function(o){return F_(e,t,o)}):Nz(e,t,r)}function Nz(e,t,r){t.status="fulfilled",t.value=r,TP(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,wP(e,r)))}function F_(e,t,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=r,TP(t),t=t.next;while(t!==o)}e.action=null}function TP(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function IP(e,t){return t}function EP(e,t){if(ke){var r=Ve.formState;if(r!==null){e:{var o=ue;if(ke){if(Wt){t:{for(var n=Wt,i=to;n.nodeType!==8;){if(!i){n=null;break t}if(n=An(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Wt=An(n.nextSibling),o=n.data==="F!";break e}}as(o)}o=!1}o&&(t=r[0])}}return r=Ir(),r.memoizedState=r.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:IP,lastRenderedState:t},r.queue=o,r=GP.bind(null,ue,o),o.dispatch=r,o=Z_(!1),i=K4.bind(null,ue,!1,o.queue),o=Ir(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,r=UK.bind(null,ue,n,i,r),n.dispatch=r,o.memoizedState=e,[t,r,!1]}function MP(e){var t=bt();return CP(t,Pe,e)}function CP(e,t,r){t=H4(e,t,IP)[0],e=$0(Bo)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?bd(t):t;var o=bt(),n=o.queue,i=n.dispatch;return r!==o.memoizedState&&(ue.flags|=2048,pu(9,LK.bind(null,n,r),{destroy:void 0},null)),[t,i,e]}function LK(e,t){e.action=t}function RP(e){var t=bt(),r=Pe;if(r!==null)return CP(t,r,e);bt(),t=t.memoizedState,r=bt();var o=r.queue.dispatch;return r.memoizedState=e,[t,o,!1]}function pu(e,t,r,o){return e={tag:e,create:t,inst:r,deps:o,next:null},t=ue.updateQueue,t===null&&(t=ah(),ue.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,t.lastEffect=e),e}function zP(){return bt().memoizedState}function b0(e,t,r,o){var n=Ir();ue.flags|=e,n.memoizedState=pu(1|t,r,{destroy:void 0},o===void 0?null:o)}function lh(e,t,r,o){var n=bt();o=o===void 0?null:o;var i=n.memoizedState.inst;Pe!==null&&o!==null&&j4(o,Pe.memoizedState.deps)?n.memoizedState=pu(t,r,i,o):(ue.flags|=e,n.memoizedState=pu(1|t,r,i,o))}function Dz(e,t){b0(8390656,8,e,t)}function G4(e,t){lh(2048,8,e,t)}function PP(e,t){return lh(4,2,e,t)}function OP(e,t){return lh(4,4,e,t)}function AP(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function NP(e,t,r){r=r!=null?r.concat([e]):null,lh(4,4,AP.bind(null,t,e),r)}function Z4(){}function DP(e,t){var r=bt();t=t===void 0?null:t;var o=r.memoizedState;return t!==null&&j4(t,o[1])?o[0]:(r.memoizedState=[e,t],e)}function jP(e,t){var r=bt();t=t===void 0?null:t;var o=r.memoizedState;if(t!==null&&j4(t,o[1]))return o[0];if(o=e(),ls){Bi(!0);try{e()}finally{Bi(!1)}}return r.memoizedState=[o,t],o}function F4(e,t,r){return r===void 0||(Qi&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=TO(),ue.lanes|=e,ta|=e,r)}function UP(e,t,r,o){return Br(r,t)?r:uu.current!==null?(e=F4(e,r,o),Br(e,t)||(Dt=!0),e):(Qi&42)===0?(Dt=!0,e.memoizedState=r):(e=TO(),ue.lanes|=e,ta|=e,t)}function LP(e,t,r,o,n){var i=Ke.p;Ke.p=i!==0&&8>i?i:8;var a=re.T,s={};re.T=s,K4(e,!1,t,r);try{var l=n(),u=re.S;if(u!==null&&u(s,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=NK(l,o);Hp(e,t,c,qr(e))}else Hp(e,t,o,qr(e))}catch(p){Hp(e,t,{then:function(){},status:"rejected",reason:p},qr())}finally{Ke.p=i,re.T=a}}function qK(){}function W_(e,t,r,o){if(e.tag!==5)throw Error(P(476));var n=qP(e).queue;LP(e,n,t,es,r===null?qK:function(){return BP(e),r(o)})}function qP(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:es,baseState:es,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:es},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bo,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function BP(e){var t=qP(e).next.queue;Hp(e,t,{},qr())}function W4(){return nr(cd)}function VP(){return bt().memoizedState}function HP(){return bt().memoizedState}function BK(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=qr();e=Gi(r);var o=Zi(t,e,r);o!==null&&(gr(o,t,r),Zp(o,t,r)),t={cache:N4()},e.payload=t;return}t=t.return}}function VK(e,t,r){var o=qr();r={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},uh(e)?ZP(t,r):(r=z4(e,t,r,o),r!==null&&(gr(r,e,o),FP(r,t,o)))}function GP(e,t,r){var o=qr();Hp(e,t,r,o)}function Hp(e,t,r,o){var n={lane:o,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(uh(e))ZP(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(n.hasEagerState=!0,n.eagerState=s,Br(s,a))return ih(e,t,n,0),Ve===null&&oh(),!1}catch{}finally{}if(r=z4(e,t,n,o),r!==null)return gr(r,e,o),FP(r,t,o),!0}return!1}function K4(e,t,r,o){if(o={lane:2,revertLane:iS(),action:o,hasEagerState:!1,eagerState:null,next:null},uh(e)){if(t)throw Error(P(479))}else t=z4(e,r,o,2),t!==null&&gr(t,e,2)}function uh(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ZP(e,t){nu=D0=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function FP(e,t,r){if((r&4194176)!==0){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,A8(e,r)}}var ao={readContext:nr,use:sh,useCallback:dt,useContext:dt,useEffect:dt,useImperativeHandle:dt,useLayoutEffect:dt,useInsertionEffect:dt,useMemo:dt,useReducer:dt,useRef:dt,useState:dt,useDebugValue:dt,useDeferredValue:dt,useTransition:dt,useSyncExternalStore:dt,useId:dt};ao.useCacheRefresh=dt;ao.useMemoCache=dt;ao.useHostTransitionStatus=dt;ao.useFormState=dt;ao.useActionState=dt;ao.useOptimistic=dt;var ms={readContext:nr,use:sh,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:nr,useEffect:Dz,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,b0(4194308,4,AP.bind(null,t,e),r)},useLayoutEffect:function(e,t){return b0(4194308,4,e,t)},useInsertionEffect:function(e,t){b0(4,2,e,t)},useMemo:function(e,t){var r=Ir();t=t===void 0?null:t;var o=e();if(ls){Bi(!0);try{e()}finally{Bi(!1)}}return r.memoizedState=[o,t],o},useReducer:function(e,t,r){var o=Ir();if(r!==void 0){var n=r(t);if(ls){Bi(!0);try{r(t)}finally{Bi(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=VK.bind(null,ue,e),[o.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:function(e){e=Z_(e);var t=e.queue,r=GP.bind(null,ue,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:Z4,useDeferredValue:function(e,t){var r=Ir();return F4(r,e,t)},useTransition:function(){var e=Z_(!1);return e=LP.bind(null,ue,e.queue,!0,!1),Ir().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var o=ue,n=Ir();if(ke){if(r===void 0)throw Error(P(407));r=r()}else{if(r=t(),Ve===null)throw Error(P(349));($e&60)!==0||$P(o,t,r)}n.memoizedState=r;var i={value:r,getSnapshot:t};return n.queue=i,Dz(xP.bind(null,o,i,e),[e]),o.flags|=2048,pu(9,bP.bind(null,o,i,r,t),{destroy:void 0},null),r},useId:function(){var e=Ir(),t=Ve.identifierPrefix;if(ke){var r=Do,o=No;r=(o&~(1<<32-Lr(o)-1)).toString(32)+r,t=":"+t+"R"+r,r=j0++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=DK++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Ir().memoizedState=BK.bind(null,ue)}};ms.useMemoCache=V4;ms.useHostTransitionStatus=W4;ms.useFormState=EP;ms.useActionState=EP;ms.useOptimistic=function(e){var t=Ir();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=K4.bind(null,ue,!0,r),r.dispatch=t,[e,t]};var na={readContext:nr,use:sh,useCallback:DP,useContext:nr,useEffect:G4,useImperativeHandle:NP,useInsertionEffect:PP,useLayoutEffect:OP,useMemo:jP,useReducer:$0,useRef:zP,useState:function(){return $0(Bo)},useDebugValue:Z4,useDeferredValue:function(e,t){var r=bt();return UP(r,Pe.memoizedState,e,t)},useTransition:function(){var e=$0(Bo)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:bd(e),t]},useSyncExternalStore:vP,useId:VP};na.useCacheRefresh=HP;na.useMemoCache=V4;na.useHostTransitionStatus=W4;na.useFormState=MP;na.useActionState=MP;na.useOptimistic=function(e,t){var r=bt();return SP(r,Pe,e,t)};var gs={readContext:nr,use:sh,useCallback:DP,useContext:nr,useEffect:G4,useImperativeHandle:NP,useInsertionEffect:PP,useLayoutEffect:OP,useMemo:jP,useReducer:l_,useRef:zP,useState:function(){return l_(Bo)},useDebugValue:Z4,useDeferredValue:function(e,t){var r=bt();return Pe===null?F4(r,e,t):UP(r,Pe.memoizedState,e,t)},useTransition:function(){var e=l_(Bo)[0],t=bt().memoizedState;return[typeof e=="boolean"?e:bd(e),t]},useSyncExternalStore:vP,useId:VP};gs.useCacheRefresh=HP;gs.useMemoCache=V4;gs.useHostTransitionStatus=W4;gs.useFormState=RP;gs.useActionState=RP;gs.useOptimistic=function(e,t){var r=bt();return Pe!==null?SP(r,Pe,e,t):(r.baseState=e,[e,r.queue.dispatch])};function u_(e,t,r,o){t=e.memoizedState,r=r(o,t),r=r==null?t:Je({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var K_={isMounted:function(e){return(e=e._reactInternals)?gu(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var o=qr(),n=Gi(o);n.payload=t,r!=null&&(n.callback=r),t=Zi(e,n,o),t!==null&&(gr(t,e,o),Zp(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var o=qr(),n=Gi(o);n.tag=1,n.payload=t,r!=null&&(n.callback=r),t=Zi(e,n,o),t!==null&&(gr(t,e,o),Zp(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=qr(),o=Gi(r);o.tag=2,t!=null&&(o.callback=t),t=Zi(e,o,r),t!==null&&(gr(t,e,r),Zp(t,e,r))}};function jz(e,t,r,o,n,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,i,a):t.prototype&&t.prototype.isPureReactComponent?!nd(r,o)||!nd(n,i):!0}function Uz(e,t,r,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,o),t.state!==e&&K_.enqueueReplaceState(t,t.state,null)}function us(e,t){var r=t;if("ref"in t){r={};for(var o in t)o!=="ref"&&(r[o]=t[o])}if(e=e.defaultProps){r===t&&(r=Je({},r));for(var n in e)r[n]===void 0&&(r[n]=e[n])}return r}var U0=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function WP(e){U0(e)}function KP(e){console.error(e)}function JP(e){U0(e)}function L0(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Lz(e,t,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function J_(e,t,r){return r=Gi(r),r.tag=3,r.payload={element:null},r.callback=function(){L0(e,t)},r}function YP(e){return e=Gi(e),e.tag=3,e}function XP(e,t,r,o){var n=r.type.getDerivedStateFromError;if(typeof n=="function"){var i=o.value;e.payload=function(){return n(i)},e.callback=function(){Lz(t,r,o)}}var a=r.stateNode;a!==null&&typeof a.componentDidCatch=="function"&&(e.callback=function(){Lz(t,r,o),typeof n!="function"&&(Wi===null?Wi=new Set([this]):Wi.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function HK(e,t,r,o,n){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=r.alternate,t!==null&&xd(t,r,n,!0),r=fn.current,r!==null){switch(r.tag){case 13:return io===null?p4():r.alternate===null&&lt===0&&(lt=3),r.flags&=-257,r.flags|=65536,r.lanes=n,o===V_?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([o]):t.add(o),k_(e,o,n)),!1;case 22:return r.flags|=65536,o===V_?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([o]):r.add(o)),k_(e,o,n)),!1}throw Error(P(435,r.tag))}return k_(e,o,n),p4(),!1}if(ke)return t=fn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==B_&&(e=Error(P(422),{cause:o}),od(cn(e,r)))):(o!==B_&&(t=Error(P(423),{cause:o}),od(cn(t,r))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,o=cn(o,r),n=J_(e.stateNode,o,n),g_(e,n),lt!==4&&(lt=2)),!1;var i=Error(P(520),{cause:o});if(i=cn(i,r),Jp===null?Jp=[i]:Jp.push(i),lt!==4&&(lt=2),t===null)return!0;o=cn(o,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=n&-n,r.lanes|=e,e=J_(r.stateNode,o,e),g_(r,e),!1;case 1:if(t=r.type,i=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Wi===null||!Wi.has(i))))return r.flags|=65536,n&=-n,r.lanes|=n,n=YP(n),XP(n,e,r,o),g_(r,n),!1}r=r.return}while(r!==null);return!1}var QP=Error(P(461)),Dt=!1;function Ft(e,t,r,o){t.child=e===null?fP(t,null,r,o):ss(t,e.child,r,o)}function qz(e,t,r,o,n){r=r.render;var i=t.ref;if("ref"in o){var a={};for(var s in o)s!=="ref"&&(a[s]=o[s])}else a=o;return cs(t),o=U4(e,t,r,a,i,n),s=L4(),e!==null&&!Dt?(q4(e,t,n),Vo(e,t,n)):(ke&&s&&P4(t),t.flags|=1,Ft(e,t,o,n),t.child)}function Bz(e,t,r,o,n){if(e===null){var i=r.type;return typeof i=="function"&&!eS(i)&&i.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=i,eO(e,t,i,o,n)):(e=k0(r.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!J4(e,n)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:nd,r(a,o)&&e.ref===t.ref)return Vo(e,t,n)}return t.flags|=1,e=Fi(i,o),e.ref=t.ref,e.return=t,t.child=e}function eO(e,t,r,o,n){if(e!==null){var i=e.memoizedProps;if(nd(i,o)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=o=i,J4(e,n))(e.flags&131072)!==0&&(Dt=!0);else return t.lanes=e.lanes,Vo(e,t,n)}return Y_(e,t,r,o,n)}function tO(e,t,r){var o=t.pendingProps,n=o.children,i=(t.stateNode._pendingVisibility&2)!==0,a=e!==null?e.memoizedState:null;if(Gp(e,t),o.mode==="hidden"||i){if((t.flags&128)!==0){if(o=a!==null?a.baseLanes|r:r,e!==null){for(n=t.child=e.child,i=0;n!==null;)i=i|n.lanes|n.childLanes,n=n.sibling;t.childLanes=i&~o}else t.childLanes=0,t.child=null;return Vz(e,t,o,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&v0(t,a!==null?a.cachePool:null),a!==null?zz(t,a):H_(),mP(t);else return t.lanes=t.childLanes=536870912,Vz(e,t,a!==null?a.baseLanes|r:r,r)}else a!==null?(v0(t,a.cachePool),zz(t,a),Ui(t),t.memoizedState=null):(e!==null&&v0(t,null),H_(),Ui(t));return Ft(e,t,n,r),t.child}function Vz(e,t,r,o){var n=D4();return n=n===null?null:{parent:Et._currentValue,pool:n},t.memoizedState={baseLanes:r,cachePool:n},e!==null&&v0(t,null),H_(),mP(t),e!==null&&xd(e,t,o,!0),null}function Gp(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof r!="function"&&typeof r!="object")throw Error(P(284));(e===null||e.ref!==r)&&(t.flags|=2097664)}}function Y_(e,t,r,o,n){return cs(t),r=U4(e,t,r,o,void 0,n),o=L4(),e!==null&&!Dt?(q4(e,t,n),Vo(e,t,n)):(ke&&o&&P4(t),t.flags|=1,Ft(e,t,r,n),t.child)}function Hz(e,t,r,o,n,i){return cs(t),t.updateQueue=null,r=yP(t,o,r,n),hP(e),o=L4(),e!==null&&!Dt?(q4(e,t,i),Vo(e,t,i)):(ke&&o&&P4(t),t.flags|=1,Ft(e,t,r,i),t.child)}function Gz(e,t,r,o,n){if(cs(t),t.stateNode===null){var i=Wl,a=r.contextType;typeof a=="object"&&a!==null&&(i=nr(a)),i=new r(o,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=K_,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=o,i.state=t.memoizedState,i.refs={},Y4(t),a=r.contextType,i.context=typeof a=="object"&&a!==null?nr(a):Wl,i.state=t.memoizedState,a=r.getDerivedStateFromProps,typeof a=="function"&&(u_(t,r,a,o),i.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(a=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),a!==i.state&&K_.enqueueReplaceState(i,i.state,null),Wp(t,o,i,n),Fp(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){i=t.stateNode;var s=t.memoizedProps,l=us(r,s);i.props=l;var u=i.context,c=r.contextType;a=Wl,typeof c=="object"&&c!==null&&(a=nr(c));var p=r.getDerivedStateFromProps;c=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s||u!==a)&&Uz(t,i,o,a),Di=!1;var d=t.memoizedState;i.state=d,Wp(t,o,i,n),Fp(),u=t.memoizedState,s||d!==u||Di?(typeof p=="function"&&(u_(t,r,p,o),u=t.memoizedState),(l=Di||jz(t,r,l,o,d,u,a))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),i.props=o,i.state=u,i.context=a,o=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{i=t.stateNode,n4(e,t),a=t.memoizedProps,c=us(r,a),i.props=c,p=t.pendingProps,d=i.context,u=r.contextType,l=Wl,typeof u=="object"&&u!==null&&(l=nr(u)),s=r.getDerivedStateFromProps,(u=typeof s=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==p||d!==l)&&Uz(t,i,o,l),Di=!1,d=t.memoizedState,i.state=d,Wp(t,o,i,n),Fp();var f=t.memoizedState;a!==p||d!==f||Di||e!==null&&e.dependencies!==null&&q0(e.dependencies)?(typeof s=="function"&&(u_(t,r,s,o),f=t.memoizedState),(c=Di||jz(t,r,c,o,d,f,l)||e!==null&&e.dependencies!==null&&q0(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(o,f,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(o,f,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=f),i.props=o,i.state=f,i.context=l,o=c):(typeof i.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),o=!1)}return i=o,Gp(e,t),o=(t.flags&128)!==0,i||o?(i=t.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&o?(t.child=ss(t,e.child,null,n),t.child=ss(t,null,r,n)):Ft(e,t,r,n),t.memoizedState=i.state,e=t.child):e=Vo(e,t,n),e}function Zz(e,t,r,o){return vd(),t.flags|=256,Ft(e,t,r,o),t.child}var c_={dehydrated:null,treeContext:null,retryLane:0};function p_(e){return{baseLanes:e,cachePool:gP()}}function d_(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=dn),e}function rO(e,t,r){var o=t.pendingProps,n=!1,i=(t.flags&128)!==0,a;if((a=i)||(a=e!==null&&e.memoizedState===null?!1:(Mt.current&2)!==0),a&&(n=!0,t.flags&=-129),a=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(n?ji(t):Ui(t),ke){var s=Wt,l;if(l=s){e:{for(l=s,s=to;l.nodeType!==8;){if(!s){s=null;break e}if(l=An(l.nextSibling),l===null){s=null;break e}}s=l}s!==null?(t.memoizedState={dehydrated:s,treeContext:ts!==null?{id:No,overflow:Do}:null,retryLane:536870912},l=pn(18,null,null,0),l.stateNode=s,l.return=t,t.child=l,mr=t,Wt=null,l=!0):l=!1}l||as(t)}if(s=t.memoizedState,s!==null&&(s=s.dehydrated,s!==null))return s.data==="$!"?t.lanes=16:t.lanes=536870912,null;jo(t)}return s=o.children,o=o.fallback,n?(Ui(t),n=t.mode,s=Q_({mode:"hidden",children:s},n),o=ns(o,n,r,null),s.return=t,o.return=t,s.sibling=o,t.child=s,n=t.child,n.memoizedState=p_(r),n.childLanes=d_(e,a,r),t.memoizedState=c_,o):(ji(t),X_(t,s))}if(l=e.memoizedState,l!==null&&(s=l.dehydrated,s!==null)){if(i)t.flags&256?(ji(t),t.flags&=-257,t=f_(e,t,r)):t.memoizedState!==null?(Ui(t),t.child=e.child,t.flags|=128,t=null):(Ui(t),n=o.fallback,s=t.mode,o=Q_({mode:"visible",children:o.children},s),n=ns(n,s,r,null),n.flags|=2,o.return=t,n.return=t,o.sibling=n,t.child=o,ss(t,e.child,null,r),o=t.child,o.memoizedState=p_(r),o.childLanes=d_(e,a,r),t.memoizedState=c_,t=n);else if(ji(t),s.data==="$!"){if(a=s.nextSibling&&s.nextSibling.dataset,a)var u=a.dgst;a=u,o=Error(P(419)),o.stack="",o.digest=a,od({value:o,source:null,stack:null}),t=f_(e,t,r)}else if(Dt||xd(e,t,r,!1),a=(r&e.childLanes)!==0,Dt||a){if(a=Ve,a!==null){if(o=r&-r,(o&42)!==0)o=1;else switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=64;break;case 268435456:o=134217728;break;default:o=0}if(o=(o&(a.suspendedLanes|r))!==0?0:o,o!==0&&o!==l.retryLane)throw l.retryLane=o,Xi(e,o),gr(a,e,o),QP}s.data==="$?"||p4(),t=f_(e,t,r)}else s.data==="$?"?(t.flags|=128,t.child=e.child,t=iJ.bind(null,e),s._reactRetry=t,t=null):(e=l.treeContext,Wt=An(s.nextSibling),mr=t,ke=!0,On=null,to=!1,e!==null&&(sn[ln++]=No,sn[ln++]=Do,sn[ln++]=ts,No=e.id,Do=e.overflow,ts=t),t=X_(t,o.children),t.flags|=4096);return t}return n?(Ui(t),n=o.fallback,s=t.mode,l=e.child,u=l.sibling,o=Fi(l,{mode:"hidden",children:o.children}),o.subtreeFlags=l.subtreeFlags&31457280,u!==null?n=Fi(u,n):(n=ns(n,s,r,null),n.flags|=2),n.return=t,o.return=t,o.sibling=n,t.child=o,o=n,n=t.child,s=e.child.memoizedState,s===null?s=p_(r):(l=s.cachePool,l!==null?(u=Et._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=gP(),s={baseLanes:s.baseLanes|r,cachePool:l}),n.memoizedState=s,n.childLanes=d_(e,a,r),t.memoizedState=c_,o):(ji(t),r=e.child,e=r.sibling,r=Fi(r,{mode:"visible",children:o.children}),r.return=t,r.sibling=null,e!==null&&(a=t.deletions,a===null?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=r,t.memoizedState=null,r)}function X_(e,t){return t=Q_({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Q_(e,t){return SO(e,t,0,null)}function f_(e,t,r){return ss(t,e.child,null,r),e=X_(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fz(e,t,r){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),t4(e.return,t,r)}function m_(e,t,r,o,n){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:n}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=r,i.tailMode=n)}function nO(e,t,r){var o=t.pendingProps,n=o.revealOrder,i=o.tail;if(Ft(e,t,o.children,r),o=Mt.current,(o&2)!==0)o=o&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fz(e,r,t);else if(e.tag===19)Fz(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(et(Mt,o),n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&N0(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),m_(t,!1,n,r,i);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&N0(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}m_(t,!0,r,null,i);break;case"together":m_(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vo(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),ta|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(xd(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,r=Fi(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Fi(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function J4(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&q0(e)))}function GK(e,t,r){switch(t.tag){case 3:I0(t,t.stateNode.containerInfo),Li(t,Et,e.memoizedState.cache),vd();break;case 27:case 5:P_(t);break;case 4:I0(t,t.stateNode.containerInfo);break;case 10:Li(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(ji(t),t.flags|=128,null):(r&t.child.childLanes)!==0?rO(e,t,r):(ji(t),e=Vo(e,t,r),e!==null?e.sibling:null);ji(t);break;case 19:var n=(e.flags&128)!==0;if(o=(r&t.childLanes)!==0,o||(xd(e,t,r,!1),o=(r&t.childLanes)!==0),n){if(o)return nO(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),et(Mt,Mt.current),o)break;return null;case 22:case 23:return t.lanes=0,tO(e,t,r);case 24:Li(t,Et,e.memoizedState.cache)}return Vo(e,t,r)}function oO(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Dt=!0;else{if(!J4(e,r)&&(t.flags&128)===0)return Dt=!1,GK(e,t,r);Dt=(e.flags&131072)!==0}else Dt=!1,ke&&(t.flags&1048576)!==0&&uP(t,O0,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,n=o._init;if(o=n(o._payload),t.type=o,typeof o=="function")eS(o)?(e=us(o,e),t.tag=1,t=Gz(null,t,o,e,r)):(t.tag=0,t=Y_(null,t,o,e,r));else{if(o!=null){if(n=o.$$typeof,n===x4){t.tag=11,t=qz(null,t,o,e,r);break e}else if(n===k4){t.tag=14,t=Bz(null,t,o,e,r);break e}}throw t=R_(o)||o,Error(P(306,t,""))}}return t;case 0:return Y_(e,t,t.type,t.pendingProps,r);case 1:return o=t.type,n=us(o,t.pendingProps),Gz(e,t,o,n,r);case 3:e:{if(I0(t,t.stateNode.containerInfo),e===null)throw Error(P(387));var i=t.pendingProps;n=t.memoizedState,o=n.element,n4(e,t),Wp(t,i,null,r);var a=t.memoizedState;if(i=a.cache,Li(t,Et,i),i!==n.cache&&r4(t,[Et],r,!0),Fp(),i=a.element,n.isDehydrated)if(n={element:i,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Zz(e,t,i,r);break e}else if(i!==o){o=cn(Error(P(424)),t),od(o),t=Zz(e,t,i,r);break e}else for(Wt=An(t.stateNode.containerInfo.firstChild),mr=t,ke=!0,On=null,to=!0,r=fP(t,null,i,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(vd(),i===o){t=Vo(e,t,r);break e}Ft(e,t,i,r)}t=t.child}return t;case 26:return Gp(e,t),e===null?(r=f8(t.type,null,t.pendingProps,null))?t.memoizedState=r:ke||(r=t.type,e=t.pendingProps,o=W0(Hi.current).createElement(r),o[rr]=t,o[Er]=e,Kt(o,r,e),Nt(o),t.stateNode=o):t.memoizedState=f8(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return P_(t),e===null&&ke&&(o=t.stateNode=BO(t.type,t.pendingProps,Hi.current),mr=t,to=!0,Wt=An(o.firstChild)),o=t.pendingProps.children,e!==null||ke?Ft(e,t,o,r):t.child=ss(t,null,o,r),Gp(e,t),t.child;case 5:return e===null&&ke&&((n=o=Wt)&&(o=$J(o,t.type,t.pendingProps,to),o!==null?(t.stateNode=o,mr=t,Wt=An(o.firstChild),to=!1,n=!0):n=!1),n||as(t)),P_(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,h4(n,i)?o=null:a!==null&&h4(n,a)&&(t.flags|=32),t.memoizedState!==null&&(n=U4(e,t,jK,null,null,r),cd._currentValue=n),Gp(e,t),Ft(e,t,o,r),t.child;case 6:return e===null&&ke&&((e=r=Wt)&&(r=bJ(r,t.pendingProps,to),r!==null?(t.stateNode=r,mr=t,Wt=null,e=!0):e=!1),e||as(t)),null;case 13:return rO(e,t,r);case 4:return I0(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=ss(t,null,o,r):Ft(e,t,o,r),t.child;case 11:return qz(e,t,t.type,t.pendingProps,r);case 7:return Ft(e,t,t.pendingProps,r),t.child;case 8:return Ft(e,t,t.pendingProps.children,r),t.child;case 12:return Ft(e,t,t.pendingProps.children,r),t.child;case 10:return o=t.pendingProps,Li(t,t.type,o.value),Ft(e,t,o.children,r),t.child;case 9:return n=t.type._context,o=t.pendingProps.children,cs(t),n=nr(n),o=o(n),t.flags|=1,Ft(e,t,o,r),t.child;case 14:return Bz(e,t,t.type,t.pendingProps,r);case 15:return eO(e,t,t.type,t.pendingProps,r);case 19:return nO(e,t,r);case 22:return tO(e,t,r);case 24:return cs(t),o=nr(Et),e===null?(n=D4(),n===null&&(n=Ve,i=N4(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=r),n=i),t.memoizedState={parent:o,cache:n},Y4(t),Li(t,Et,n)):((e.lanes&r)!==0&&(n4(e,t),Wp(t,null,null,r),Fp()),n=e.memoizedState,i=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Li(t,Et,o)):(o=i.cache,Li(t,Et,o),o!==n.cache&&r4(t,[Et],r,!0))),Ft(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(P(156,t.tag))}var e4=so(null),hs=null,Uo=null;function Li(e,t,r){et(e4,t._currentValue),t._currentValue=r}function Lo(e){e._currentValue=e4.current,jt(e4)}function t4(e,t,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===r)break;e=e.return}}function r4(e,t,r,o){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var a=n.child;i=i.firstContext;e:for(;i!==null;){var s=i;i=n;for(var l=0;l<t.length;l++)if(s.context===t[l]){i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),t4(i.return,r,e),o||(a=null);break e}i=s.next}}else if(n.tag===18){if(a=n.return,a===null)throw Error(P(341));a.lanes|=r,i=a.alternate,i!==null&&(i.lanes|=r),t4(a,r,e),a=null}else a=n.child;if(a!==null)a.return=n;else for(a=n;a!==null;){if(a===e){a=null;break}if(n=a.sibling,n!==null){n.return=a.return,a=n;break}a=a.return}n=a}}function xd(e,t,r,o){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var a=n.alternate;if(a===null)throw Error(P(387));if(a=a.memoizedProps,a!==null){var s=n.type;Br(n.pendingProps.value,a.value)||(e!==null?e.push(s):e=[s])}}else if(n===T0.current){if(a=n.alternate,a===null)throw Error(P(387));a.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(cd):e=[cd])}n=n.return}e!==null&&r4(t,e,r,o),t.flags|=262144}function q0(e){for(e=e.firstContext;e!==null;){if(!Br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cs(e){hs=e,Uo=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function nr(e){return iO(hs,e)}function a0(e,t){return hs===null&&cs(e),iO(e,t)}function iO(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},Uo===null){if(e===null)throw Error(P(308));Uo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Uo=Uo.next=t;return r}var Di=!1;function Y4(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function n4(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Gi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Zi(e,t,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ot&2)!==0){var n=o.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=z0(e),lP(e,null,r),t}return ih(e,o,t,r),z0(e)}function Zp(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194176)!==0)){var o=t.lanes;o&=e.pendingLanes,r|=o,t.lanes=r,A8(e,r)}}function g_(e,t){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var n=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};i===null?n=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?n=i=t:i=i.next=t}else n=i=t;r={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var o4=!1;function Fp(){if(o4){var e=ru;if(e!==null)throw e}}function Wp(e,t,r,o){o4=!1;var n=e.updateQueue;Di=!1;var i=n.firstBaseUpdate,a=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==a&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(i!==null){var p=n.baseState;a=0,c=u=l=null,s=i;do{var d=s.lane&-536870913,f=d!==s.lane;if(f?($e&d)===d:(o&d)===d){d!==0&&d===cu&&(o4=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,v=s;d=t;var b=r;switch(v.tag){case 1:if(m=v.payload,typeof m=="function"){p=m.call(b,p,d);break e}p=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(b,p,d):m,d==null)break e;p=Je({},p,d);break e;case 2:Di=!0}}d=s.callback,d!==null&&(e.flags|=64,f&&(e.flags|=8192),f=n.callbacks,f===null?n.callbacks=[d]:f.push(d))}else f={lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=f,l=p):c=c.next=f,a|=d;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;f=s,s=f.next,f.next=null,n.lastBaseUpdate=f,n.shared.pending=null}}while(!0);c===null&&(l=p),n.baseState=l,n.firstBaseUpdate=u,n.lastBaseUpdate=c,i===null&&(n.shared.lanes=0),ta|=a,e.lanes=a,e.memoizedState=p}}function aO(e,t){if(typeof e!="function")throw Error(P(191,e));e.call(t)}function sO(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)aO(r[e],t)}function kd(e,t){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var n=o.next;r=n;do{if((r.tag&e)===e){o=void 0;var i=r.create,a=r.inst;o=i(),a.destroy=o}r=r.next}while(r!==n)}}catch(s){Le(t,t.return,s)}}function ea(e,t,r){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var i=n.next;o=i;do{if((o.tag&e)===e){var a=o.inst,s=a.destroy;if(s!==void 0){a.destroy=void 0,n=t;var l=r;try{s()}catch(u){Le(n,l,u)}}}o=o.next}while(o!==i)}}catch(u){Le(t,t.return,u)}}function lO(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{sO(t,r)}catch(o){Le(e,e.return,o)}}}function uO(e,t,r){r.props=us(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){Le(e,t,o)}}function Qa(e,t){try{var r=e.ref;if(r!==null){var o=e.stateNode;switch(e.tag){case 26:case 27:case 5:var n=o;break;default:n=o}typeof r=="function"?e.refCleanup=r(n):r.current=n}}catch(i){Le(e,t,i)}}function jr(e,t){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(n){Le(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(n){Le(e,t,n)}else r.current=null}function cO(e){var t=e.type,r=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break e;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(n){Le(e,e.return,n)}}function Wz(e,t,r){try{var o=e.stateNode;mJ(o,e.type,r,t),o[Er]=t}catch(n){Le(e,e.return,n)}}function pO(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function h_(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pO(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function i4(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=dh));else if(o!==4&&o!==27&&(e=e.child,e!==null))for(i4(e,t,r),e=e.sibling;e!==null;)i4(e,t,r),e=e.sibling}function B0(e,t,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(o!==4&&o!==27&&(e=e.child,e!==null))for(B0(e,t,r),e=e.sibling;e!==null;)B0(e,t,r),e=e.sibling}var zo=!1,st=!1,y_=!1,Kz=typeof WeakSet=="function"?WeakSet:Set,At=null,Jz=!1;function ZK(e,t){if(e=e.containerInfo,m4=X0,e=tP(e),C4(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var n=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,l=-1,u=0,c=0,p=e,d=null;t:for(;;){for(var f;p!==r||n!==0&&p.nodeType!==3||(s=a+n),p!==i||o!==0&&p.nodeType!==3||(l=a+o),p.nodeType===3&&(a+=p.nodeValue.length),(f=p.firstChild)!==null;)d=p,p=f;for(;;){if(p===e)break t;if(d===r&&++u===n&&(s=a),d===i&&++c===o&&(l=a),(f=p.nextSibling)!==null)break;p=d,d=p.parentNode}p=f}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(g4={focusedElem:e,selectionRange:r},X0=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,i=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,r=t,n=i.memoizedProps,i=i.memoizedState,o=r.stateNode;try{var m=us(r.type,n,r.elementType===r.type);e=o.getSnapshotBeforeUpdate(m,i),o.__reactInternalSnapshotBeforeUpdate=e}catch(v){Le(r,r.return,v)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)y4(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":y4(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(P(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}return m=Jz,Jz=!1,m}function dO(e,t,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:Co(e,r),o&4&&kd(5,r);break;case 1:if(Co(e,r),o&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(s){Le(r,r.return,s)}else{var n=us(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Le(r,r.return,s)}}o&64&&lO(r),o&512&&Qa(r,r.return);break;case 3:if(Co(e,r),o&64&&(o=r.updateQueue,o!==null)){if(e=null,r.child!==null)switch(r.child.tag){case 27:case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}try{sO(o,e)}catch(s){Le(r,r.return,s)}}break;case 26:Co(e,r),o&512&&Qa(r,r.return);break;case 27:case 5:Co(e,r),t===null&&o&4&&cO(r),o&512&&Qa(r,r.return);break;case 12:Co(e,r);break;case 13:Co(e,r),o&4&&gO(e,r);break;case 22:if(n=r.memoizedState!==null||zo,!n){t=t!==null&&t.memoizedState!==null||st;var i=zo,a=st;zo=n,(st=t)&&!a?Ai(e,r,(r.subtreeFlags&8772)!==0):Co(e,r),zo=i,st=a}o&512&&(r.memoizedProps.mode==="manual"?Qa(r,r.return):jr(r,r.return));break;default:Co(e,r)}}function fO(e){var t=e.alternate;t!==null&&(e.alternate=null,fO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&S4(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var vt=null,Nr=!1;function Mo(e,t,r){for(r=r.child;r!==null;)mO(e,t,r),r=r.sibling}function mO(e,t,r){if(Ur&&typeof Ur.onCommitFiberUnmount=="function")try{Ur.onCommitFiberUnmount(md,r)}catch{}switch(r.tag){case 26:st||jr(r,t),Mo(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:st||jr(r,t);var o=vt,n=Nr;for(vt=r.stateNode,Mo(e,t,r),r=r.stateNode,t=r.attributes;t.length;)r.removeAttributeNode(t[0]);S4(r),vt=o,Nr=n;break;case 5:st||jr(r,t);case 6:n=vt;var i=Nr;if(vt=null,Mo(e,t,r),vt=n,Nr=i,vt!==null)if(Nr)try{e=vt,o=r.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)}catch(a){Le(r,t,a)}else try{vt.removeChild(r.stateNode)}catch(a){Le(r,t,a)}break;case 18:vt!==null&&(Nr?(t=vt,r=r.stateNode,t.nodeType===8?I_(t.parentNode,r):t.nodeType===1&&I_(t,r),fd(t)):I_(vt,r.stateNode));break;case 4:o=vt,n=Nr,vt=r.stateNode.containerInfo,Nr=!0,Mo(e,t,r),vt=o,Nr=n;break;case 0:case 11:case 14:case 15:st||ea(2,r,t),st||ea(4,r,t),Mo(e,t,r);break;case 1:st||(jr(r,t),o=r.stateNode,typeof o.componentWillUnmount=="function"&&uO(r,t,o)),Mo(e,t,r);break;case 21:Mo(e,t,r);break;case 22:st||jr(r,t),st=(o=st)||r.memoizedState!==null,Mo(e,t,r),st=o;break;default:Mo(e,t,r)}}function gO(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fd(e)}catch(r){Le(t,t.return,r)}}function FK(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Kz),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Kz),t;default:throw Error(P(435,e.tag))}}function v_(e,t){var r=FK(e);t.forEach(function(o){var n=aJ.bind(null,e,o);r.has(o)||(r.add(o),o.then(n,n))})}function rn(e,t){var r=t.deletions;if(r!==null)for(var o=0;o<r.length;o++){var n=r[o],i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 27:case 5:vt=s.stateNode,Nr=!1;break e;case 3:vt=s.stateNode.containerInfo,Nr=!0;break e;case 4:vt=s.stateNode.containerInfo,Nr=!0;break e}s=s.return}if(vt===null)throw Error(P(160));mO(i,a,n),vt=null,Nr=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)hO(t,e),t=t.sibling}var Pn=null;function hO(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),nn(e),o&4&&(ea(3,e,e.return),kd(3,e),ea(5,e,e.return));break;case 1:rn(t,e),nn(e),o&512&&(st||r===null||jr(r,r.return)),o&64&&zo&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var n=Pn;if(rn(t,e),nn(e),o&512&&(st||r===null||jr(r,r.return)),o&4){var i=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){e:{o=e.type,r=e.memoizedProps,n=n.ownerDocument||n;t:switch(o){case"title":i=n.getElementsByTagName("title")[0],(!i||i[ed]||i[rr]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(o),n.head.insertBefore(i,n.querySelector("head > title"))),Kt(i,o,r),i[rr]=e,Nt(i),o=i;break e;case"link":var a=g8("link","href",n).get(o+(r.href||""));if(a){for(var s=0;s<a.length;s++)if(i=a[s],i.getAttribute("href")===(r.href==null?null:r.href)&&i.getAttribute("rel")===(r.rel==null?null:r.rel)&&i.getAttribute("title")===(r.title==null?null:r.title)&&i.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){a.splice(s,1);break t}}i=n.createElement(o),Kt(i,o,r),n.head.appendChild(i);break;case"meta":if(a=g8("meta","content",n).get(o+(r.content||""))){for(s=0;s<a.length;s++)if(i=a[s],i.getAttribute("content")===(r.content==null?null:""+r.content)&&i.getAttribute("name")===(r.name==null?null:r.name)&&i.getAttribute("property")===(r.property==null?null:r.property)&&i.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&i.getAttribute("charset")===(r.charSet==null?null:r.charSet)){a.splice(s,1);break t}}i=n.createElement(o),Kt(i,o,r),n.head.appendChild(i);break;default:throw Error(P(468,o))}i[rr]=e,Nt(i),o=i}e.stateNode=o}else h8(n,e.type,e.stateNode);else e.stateNode=m8(n,o,e.memoizedProps);else i!==o?(i===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):i.count--,o===null?h8(n,e.type,e.stateNode):m8(n,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Wz(e,e.memoizedProps,r.memoizedProps)}break;case 27:if(o&4&&e.alternate===null){n=e.stateNode,i=e.memoizedProps;try{for(var l=n.firstChild;l;){var u=l.nextSibling,c=l.nodeName;l[ed]||c==="HEAD"||c==="BODY"||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&l.rel.toLowerCase()==="stylesheet"||n.removeChild(l),l=u}for(var p=e.type,d=n.attributes;d.length;)n.removeAttributeNode(d[0]);Kt(n,p,i),n[rr]=e,n[Er]=i}catch(m){Le(e,e.return,m)}}case 5:if(rn(t,e),nn(e),o&512&&(st||r===null||jr(r,r.return)),e.flags&32){n=e.stateNode;try{lu(n,"")}catch(m){Le(e,e.return,m)}}o&4&&e.stateNode!=null&&(n=e.memoizedProps,Wz(e,n,r!==null?r.memoizedProps:n)),o&1024&&(y_=!0);break;case 6:if(rn(t,e),nn(e),o&4){if(e.stateNode===null)throw Error(P(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(m){Le(e,e.return,m)}}break;case 3:if(S0=null,n=Pn,Pn=K0(t.containerInfo),rn(t,e),Pn=n,nn(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{fd(t.containerInfo)}catch(m){Le(e,e.return,m)}y_&&(y_=!1,yO(e));break;case 4:o=Pn,Pn=K0(e.stateNode.containerInfo),rn(t,e),nn(e),Pn=o;break;case 12:rn(t,e),nn(e);break;case 13:rn(t,e),nn(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(nS=oo()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,v_(e,o)));break;case 22:if(o&512&&(st||r===null||jr(r,r.return)),l=e.memoizedState!==null,u=r!==null&&r.memoizedState!==null,c=zo,p=st,zo=c||l,st=p||u,rn(t,e),st=p,zo=c,nn(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,o&8192&&(t._visibility=l?t._visibility&-2:t._visibility|1,l&&(t=zo||st,r===null||u||t||jl(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(r=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(r===null){u=r=t;try{if(n=u.stateNode,l)i=n.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{a=u.stateNode,s=u.memoizedProps.style;var f=s!=null&&s.hasOwnProperty("display")?s.display:null;a.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(m){Le(u,u.return,m)}}}else if(t.tag===6){if(r===null){u=t;try{u.stateNode.nodeValue=l?"":u.memoizedProps}catch(m){Le(u,u.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,v_(e,r))));break;case 19:rn(t,e),nn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,v_(e,o)));break;case 21:break;default:rn(t,e),nn(e)}}function nn(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var r=e.return;r!==null;){if(pO(r)){var o=r;break e}r=r.return}throw Error(P(160))}switch(o.tag){case 27:var n=o.stateNode,i=h_(e);B0(e,i,n);break;case 5:var a=o.stateNode;o.flags&32&&(lu(a,""),o.flags&=-33);var s=h_(e);B0(e,s,a);break;case 3:case 4:var l=o.stateNode.containerInfo,u=h_(e);i4(e,u,l);break;default:throw Error(P(161))}}}catch(c){Le(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yO(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yO(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Co(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dO(e,t.alternate,t),t=t.sibling}function jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ea(4,t,t.return),jl(t);break;case 1:jr(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&uO(t,t.return,r),jl(t);break;case 26:case 27:case 5:jr(t,t.return),jl(t);break;case 22:jr(t,t.return),t.memoizedState===null&&jl(t);break;default:jl(t)}e=e.sibling}}function Ai(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,n=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Ai(n,i,r),kd(4,i);break;case 1:if(Ai(n,i,r),o=i,n=o.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(u){Le(o,o.return,u)}if(o=i,n=o.updateQueue,n!==null){var s=o.stateNode;try{var l=n.shared.hiddenCallbacks;if(l!==null)for(n.shared.hiddenCallbacks=null,n=0;n<l.length;n++)aO(l[n],s)}catch(u){Le(o,o.return,u)}}r&&a&64&&lO(i),Qa(i,i.return);break;case 26:case 27:case 5:Ai(n,i,r),r&&o===null&&a&4&&cO(i),Qa(i,i.return);break;case 12:Ai(n,i,r);break;case 13:Ai(n,i,r),r&&a&4&&gO(n,i);break;case 22:i.memoizedState===null&&Ai(n,i,r),Qa(i,i.return);break;default:Ai(n,i,r)}t=t.sibling}}function X4(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&$d(r))}function Q4(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$d(e))}function Oi(e,t,r,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vO(e,t,r,o),t=t.sibling}function vO(e,t,r,o){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Oi(e,t,r,o),n&2048&&kd(9,t);break;case 3:Oi(e,t,r,o),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$d(e)));break;case 12:if(n&2048){Oi(e,t,r,o),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;typeof s=="function"&&s(a,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Le(t,t.return,l)}}else Oi(e,t,r,o);break;case 23:break;case 22:i=t.stateNode,t.memoizedState!==null?i._visibility&4?Oi(e,t,r,o):Kp(e,t):i._visibility&4?Oi(e,t,r,o):(i._visibility|=4,Ul(e,t,r,o,(t.subtreeFlags&10256)!==0)),n&2048&&X4(t.alternate,t);break;case 24:Oi(e,t,r,o),n&2048&&Q4(t.alternate,t);break;default:Oi(e,t,r,o)}}function Ul(e,t,r,o,n){for(n=n&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var i=e,a=t,s=r,l=o,u=a.flags;switch(a.tag){case 0:case 11:case 15:Ul(i,a,s,l,n),kd(8,a);break;case 23:break;case 22:var c=a.stateNode;a.memoizedState!==null?c._visibility&4?Ul(i,a,s,l,n):Kp(i,a):(c._visibility|=4,Ul(i,a,s,l,n)),n&&u&2048&&X4(a.alternate,a);break;case 24:Ul(i,a,s,l,n),n&&u&2048&&Q4(a.alternate,a);break;default:Ul(i,a,s,l,n)}t=t.sibling}}function Kp(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,o=t,n=o.flags;switch(o.tag){case 22:Kp(r,o),n&2048&&X4(o.alternate,o);break;case 24:Kp(r,o),n&2048&&Q4(o.alternate,o);break;default:Kp(r,o)}t=t.sibling}}var Dp=8192;function Nl(e){if(e.subtreeFlags&Dp)for(e=e.child;e!==null;)$O(e),e=e.sibling}function $O(e){switch(e.tag){case 26:Nl(e),e.flags&Dp&&e.memoizedState!==null&&PJ(Pn,e.memoizedState,e.memoizedProps);break;case 5:Nl(e);break;case 3:case 4:var t=Pn;Pn=K0(e.stateNode.containerInfo),Nl(e),Pn=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Dp,Dp=16777216,Nl(e),Dp=t):Nl(e));break;default:Nl(e)}}function bO(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Mp(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];At=o,kO(o,e)}bO(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xO(e),e=e.sibling}function xO(e){switch(e.tag){case 0:case 11:case 15:Mp(e),e.flags&2048&&ea(9,e,e.return);break;case 3:Mp(e);break;case 12:Mp(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,x0(e)):Mp(e);break;default:Mp(e)}}function x0(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var o=t[r];At=o,kO(o,e)}bO(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ea(8,t,t.return),x0(t);break;case 22:r=t.stateNode,r._visibility&4&&(r._visibility&=-5,x0(t));break;default:x0(t)}e=e.sibling}}function kO(e,t){for(;At!==null;){var r=At;switch(r.tag){case 0:case 11:case 15:ea(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:$d(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,At=o;else e:for(r=e;At!==null;){o=At;var n=o.sibling,i=o.return;if(fO(o),o===r){At=null;break e}if(n!==null){n.return=i,At=n;break e}At=i}}}function WK(e,t,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pn(e,t,r,o){return new WK(e,t,r,o)}function eS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Fi(e,t){var r=e.alternate;return r===null?(r=pn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&31457280,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function _O(e,t){e.flags&=31457282;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function k0(e,t,r,o,n,i){var a=0;if(o=e,typeof e=="function")eS(e)&&(a=1);else if(typeof e=="string")a=RJ(e,r,no.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ql:return ns(r.children,n,i,t);case S8:a=8,n|=24;break;case E_:return e=pn(12,r,t,n|2),e.elementType=E_,e.lanes=i,e;case M_:return e=pn(13,r,t,n),e.elementType=M_,e.lanes=i,e;case C_:return e=pn(19,r,t,n),e.elementType=C_,e.lanes=i,e;case T8:return SO(r,n,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $W:case Ao:a=10;break e;case w8:a=9;break e;case x4:a=11;break e;case k4:a=14;break e;case Ni:a=16,o=null;break e}a=29,r=Error(P(130,e===null?"null":typeof e,"")),o=null}return t=pn(a,r,t,n),t.elementType=e,t.type=o,t.lanes=i,t}function ns(e,t,r,o){return e=pn(7,e,o,t),e.lanes=r,e}function SO(e,t,r,o){e=pn(22,e,o,t),e.elementType=T8,e.lanes=r;var n={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var i=n._current;if(i===null)throw Error(P(456));if((n._pendingVisibility&2)===0){var a=Xi(i,2);a!==null&&(n._pendingVisibility|=2,gr(a,i,2))}},attach:function(){var i=n._current;if(i===null)throw Error(P(456));if((n._pendingVisibility&2)!==0){var a=Xi(i,2);a!==null&&(n._pendingVisibility&=-3,gr(a,i,2))}}};return e.stateNode=n,e}function $_(e,t,r){return e=pn(6,e,null,t),e.lanes=r,e}function b_(e,t,r){return t=pn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ro(e){e.flags|=4}function Yz(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!GO(t)){if(t=fn.current,t!==null&&(($e&4194176)===$e?io!==null:($e&62914560)!==$e&&($e&536870912)===0||t!==io))throw Bp=V_,cP;e.flags|=8192}}function s0(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?P8():536870912,e.lanes|=t,du|=t)}function Cp(e,t){if(!ke)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags&31457280,o|=n.flags&31457280,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=r,t}function KK(e,t,r){var o=t.pendingProps;switch(O4(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return r=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Lo(Et),au(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ip(t)?Ro(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,On!==null&&(c4(On),On=null))),nt(t),null;case 26:return r=t.memoizedState,e===null?(Ro(t),r!==null?(nt(t),Yz(t,r)):(nt(t),t.flags&=-16777217)):r?r!==e.memoizedState?(Ro(t),nt(t),Yz(t,r)):(nt(t),t.flags&=-16777217):(e.memoizedProps!==o&&Ro(t),nt(t),t.flags&=-16777217),null;case 27:E0(t),r=Hi.current;var n=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ro(t);else{if(!o){if(t.stateNode===null)throw Error(P(166));return nt(t),null}e=no.current,Ip(t)?Iz(t,e):(e=BO(n,o,r),t.stateNode=e,Ro(t))}return nt(t),null;case 5:if(E0(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Ro(t);else{if(!o){if(t.stateNode===null)throw Error(P(166));return nt(t),null}if(e=no.current,Ip(t))Iz(t,e);else{switch(n=W0(Hi.current),e){case 1:e=n.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=n.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=n.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=n.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=n.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?n.createElement(r,{is:o.is}):n.createElement(r)}}e[rr]=t,e[Er]=o;e:for(n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.tag!==27&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}t.stateNode=e;e:switch(Kt(e,r,o),r){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Ro(t)}}return nt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Ro(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(P(166));if(e=Hi.current,Ip(t)){if(e=t.stateNode,r=t.memoizedProps,o=null,n=mr,n!==null)switch(n.tag){case 27:case 5:o=n.memoizedProps}e[rr]=t,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||UO(e.nodeValue,r)),e||as(t)}else e=W0(e).createTextNode(o),e[rr]=t,t.stateNode=e}return nt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=Ip(t),o!==null&&o.dehydrated!==null){if(e===null){if(!n)throw Error(P(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(P(317));n[rr]=t}else vd(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),n=!1}else On!==null&&(c4(On),On=null),n=!0;if(!n)return t.flags&256?(jo(t),t):(jo(t),null)}if(jo(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=o!==null,e=e!==null&&e.memoizedState!==null,r){o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool);var i=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==n&&(o.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),s0(t,t.updateQueue),nt(t),null;case 4:return au(),e===null&&aS(t.stateNode.containerInfo),nt(t),null;case 10:return Lo(t.type),nt(t),null;case 19:if(jt(Mt),n=t.memoizedState,n===null)return nt(t),null;if(o=(t.flags&128)!==0,i=n.rendering,i===null)if(o)Cp(n,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=N0(e),i!==null){for(t.flags|=128,Cp(n,!1),e=i.updateQueue,t.updateQueue=e,s0(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)_O(r,e),r=r.sibling;return et(Mt,Mt.current&1|2),t.child}e=e.sibling}n.tail!==null&&oo()>V0&&(t.flags|=128,o=!0,Cp(n,!1),t.lanes=4194304)}else{if(!o)if(e=N0(i),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,s0(t,e),Cp(n,!0),n.tail===null&&n.tailMode==="hidden"&&!i.alternate&&!ke)return nt(t),null}else 2*oo()-n.renderingStartTime>V0&&r!==536870912&&(t.flags|=128,o=!0,Cp(n,!1),t.lanes=4194304);n.isBackwards?(i.sibling=t.child,t.child=i):(e=n.last,e!==null?e.sibling=i:t.child=i,n.last=i)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=oo(),t.sibling=null,e=Mt.current,et(Mt,o?e&1|2:e&1),t):(nt(t),null);case 22:case 23:return jo(t),A4(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(r&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),r=t.updateQueue,r!==null&&s0(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==r&&(t.flags|=2048),e!==null&&jt(rs),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Lo(Et),nt(t),null;case 25:return null}throw Error(P(156,t.tag))}function JK(e,t){switch(O4(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Lo(Et),au(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return E0(t),null;case 13:if(jo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));vd()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return jt(Mt),null;case 4:return au(),null;case 10:return Lo(t.type),null;case 22:case 23:return jo(t),A4(),e!==null&&jt(rs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Lo(Et),null;case 25:return null;default:return null}}function wO(e,t){switch(O4(t),t.tag){case 3:Lo(Et),au();break;case 26:case 27:case 5:E0(t);break;case 4:au();break;case 13:jo(t);break;case 19:jt(Mt);break;case 10:Lo(t.type);break;case 22:case 23:jo(t),A4(),e!==null&&jt(rs);break;case 24:Lo(Et)}}var YK={getCacheForType:function(e){var t=nr(Et),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},XK=typeof WeakMap=="function"?WeakMap:Map,ot=0,Ve=null,fe=null,$e=0,Be=0,Dr=null,Po=!1,vu=!1,tS=!1,Ho=0,lt=0,ta=0,os=0,rS=0,dn=0,du=0,Jp=null,ro=null,a4=!1,nS=0,V0=1/0,H0=null,Wi=null,l0=!1,Ya=null,Yp=0,s4=0,l4=null,Xp=0,u4=null;function qr(){if((ot&2)!==0&&$e!==0)return $e&-$e;if(re.T!==null){var e=cu;return e!==0?e:iS()}return D8()}function TO(){dn===0&&(dn=($e&536870912)===0||ke?z8():536870912);var e=fn.current;return e!==null&&(e.flags|=32),dn}function gr(e,t,r){(e===Ve&&Be===2||e.cancelPendingCommit!==null)&&(fu(e,0),Oo(e,$e,dn,!1)),hd(e,r),((ot&2)===0||e!==Ve)&&(e===Ve&&((ot&2)===0&&(os|=r),lt===4&&Oo(e,$e,dn,!1)),lo(e))}function IO(e,t,r){if((ot&6)!==0)throw Error(P(327));var o=!r&&(t&60)===0&&(t&e.expiredLanes)===0||gd(e,t),n=o?tJ(e,t):x_(e,t,!0),i=o;do{if(n===0){vu&&!o&&Oo(e,t,0,!1);break}else if(n===6)Oo(e,t,0,!Po);else{if(r=e.current.alternate,i&&!QK(r)){n=x_(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var a=0;else a=e.pendingLanes&-536870913,a=a!==0?a:a&536870912?536870912:0;if(a!==0){t=a;e:{var s=e;n=Jp;var l=s.current.memoizedState.isDehydrated;if(l&&(fu(s,a).flags|=256),a=x_(s,a,!1),a!==2){if(tS&&!l){s.errorRecoveryDisabledLanes|=i,os|=i,n=4;break e}i=ro,ro=n,i!==null&&c4(i)}n=a}if(i=!1,n!==2)continue}}if(n===1){fu(e,0),Oo(e,t,0,!0);break}e:{switch(o=e,n){case 0:case 1:throw Error(P(345));case 4:if((t&4194176)===t){Oo(o,t,dn,!Po);break e}break;case 2:ro=null;break;case 3:case 5:break;default:throw Error(P(329))}if(o.finishedWork=r,o.finishedLanes=t,(t&62914560)===t&&(i=nS+300-oo(),10<i)){if(Oo(o,t,dn,!Po),eh(o,0)!==0)break e;o.timeoutHandle=qO(Xz.bind(null,o,r,ro,H0,a4,t,dn,os,du,Po,2,-0,0),i);break e}Xz(o,r,ro,H0,a4,t,dn,os,du,Po,0,-0,0)}}break}while(!0);lo(e)}function c4(e){ro===null?ro=e:ro.push.apply(ro,e)}function Xz(e,t,r,o,n,i,a,s,l,u,c,p,d){var f=t.subtreeFlags;if((f&8192||(f&16785408)===16785408)&&(ud={stylesheets:null,count:0,unsuspend:zJ},$O(t),t=OJ(),t!==null)){e.cancelPendingCommit=t(e8.bind(null,e,r,o,n,a,s,l,1,p,d)),Oo(e,i,a,!u);return}e8(e,r,o,n,a,s,l,c,p,d)}function QK(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var n=r[o],i=n.getSnapshot;n=n.value;try{if(!Br(i(),n))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Oo(e,t,r,o){t&=~rS,t&=~os,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var i=31-Lr(n),a=1<<i;o[i]=-1,n&=~a}r!==0&&O8(e,r,t)}function ch(){return(ot&6)===0?(_d(0,!1),!1):!0}function oS(){if(fe!==null){if(Be===0)var e=fe.return;else e=fe,Uo=hs=null,B4(e),tu=null,id=0,e=fe;for(;e!==null;)wO(e.alternate,e),e=e.return;fe=null}}function fu(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,hJ(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),oS(),Ve=e,fe=r=Fi(e.current,null),$e=t,Be=0,Dr=null,Po=!1,vu=gd(e,t),tS=!1,du=dn=rS=os=ta=lt=0,ro=Jp=null,a4=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var n=31-Lr(o),i=1<<n;t|=e[n],o&=~i}return Ho=t,oh(),r}function EO(e,t){ue=null,re.H=ao,t===qp?(t=Cz(),Be=3):t===cP?(t=Cz(),Be=4):Be=t===QP?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dr=t,fe===null&&(lt=1,L0(e,cn(t,e.current)))}function MO(){var e=re.H;return re.H=ao,e===null?ao:e}function CO(){var e=re.A;return re.A=YK,e}function p4(){lt=4,Po||($e&4194176)!==$e&&fn.current!==null||(vu=!0),(ta&134217727)===0&&(os&134217727)===0||Ve===null||Oo(Ve,$e,dn,!1)}function x_(e,t,r){var o=ot;ot|=2;var n=MO(),i=CO();(Ve!==e||$e!==t)&&(H0=null,fu(e,t)),t=!1;var a=lt;e:do try{if(Be!==0&&fe!==null){var s=fe,l=Dr;switch(Be){case 8:oS(),a=6;break e;case 3:case 2:case 6:fn.current===null&&(t=!0);var u=Be;if(Be=0,Dr=null,Yl(e,s,l,u),r&&vu){a=0;break e}break;default:u=Be,Be=0,Dr=null,Yl(e,s,l,u)}}eJ(),a=lt;break}catch(c){EO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Uo=hs=null,ot=o,re.H=n,re.A=i,fe===null&&(Ve=null,$e=0,oh()),a}function eJ(){for(;fe!==null;)RO(fe)}function tJ(e,t){var r=ot;ot|=2;var o=MO(),n=CO();Ve!==e||$e!==t?(H0=null,V0=oo()+500,fu(e,t)):vu=gd(e,t);e:do try{if(Be!==0&&fe!==null){t=fe;var i=Dr;t:switch(Be){case 1:Be=0,Dr=null,Yl(e,t,i,1);break;case 2:if(Mz(i)){Be=0,Dr=null,Qz(t);break}t=function(){Be===2&&Ve===e&&(Be=7),lo(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:Mz(i)?(Be=0,Dr=null,Qz(t)):(Be=0,Dr=null,Yl(e,t,i,7));break;case 5:var a=null;switch(fe.tag){case 26:a=fe.memoizedState;case 5:case 27:var s=fe;if(!a||GO(a)){Be=0,Dr=null;var l=s.sibling;if(l!==null)fe=l;else{var u=s.return;u!==null?(fe=u,ph(u)):fe=null}break t}}Be=0,Dr=null,Yl(e,t,i,5);break;case 6:Be=0,Dr=null,Yl(e,t,i,6);break;case 8:oS(),lt=6;break e;default:throw Error(P(462))}}rJ();break}catch(c){EO(e,c)}while(!0);return Uo=hs=null,re.H=o,re.A=n,ot=r,fe!==null?0:(Ve=null,$e=0,oh(),lt)}function rJ(){for(;fe!==null&&!SW();)RO(fe)}function RO(e){var t=oO(e.alternate,e,Ho);e.memoizedProps=e.pendingProps,t===null?ph(e):fe=t}function Qz(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=Hz(r,t,t.pendingProps,t.type,void 0,$e);break;case 11:t=Hz(r,t,t.pendingProps,t.type.render,t.ref,$e);break;case 5:B4(t);default:wO(r,t),t=fe=_O(t,Ho),t=oO(r,t,Ho)}e.memoizedProps=e.pendingProps,t===null?ph(e):fe=t}function Yl(e,t,r,o){Uo=hs=null,B4(t),tu=null,id=0;var n=t.return;try{if(HK(e,n,t,r,$e)){lt=1,L0(e,cn(r,e.current)),fe=null;return}}catch(i){if(n!==null)throw fe=n,i;lt=1,L0(e,cn(r,e.current)),fe=null;return}t.flags&32768?(ke||o===1?e=!0:vu||($e&536870912)!==0?e=!1:(Po=e=!0,(o===2||o===3||o===6)&&(o=fn.current,o!==null&&o.tag===13&&(o.flags|=16384))),zO(t,e)):ph(t)}function ph(e){var t=e;do{if((t.flags&32768)!==0){zO(t,Po);return}e=t.return;var r=KK(t.alternate,t,Ho);if(r!==null){fe=r;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);lt===0&&(lt=5)}function zO(e,t){do{var r=JK(e.alternate,e);if(r!==null){r.flags&=32767,fe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=r}while(e!==null);lt=6,fe=null}function e8(e,t,r,o,n,i,a,s,l,u){var c=re.T,p=Ke.p;try{Ke.p=2,re.T=null,nJ(e,t,r,o,p,n,i,a,s,l,u)}finally{re.T=c,Ke.p=p}}function nJ(e,t,r,o,n,i,a,s){do iu();while(Ya!==null);if((ot&6)!==0)throw Error(P(327));var l=e.finishedWork;if(o=e.finishedLanes,l===null)return null;if(e.finishedWork=null,e.finishedLanes=0,l===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=l.lanes|l.childLanes;if(u|=R4,AW(e,o,u,i,a,s),e===Ve&&(fe=Ve=null,$e=0),(l.subtreeFlags&10256)===0&&(l.flags&10256)===0||l0||(l0=!0,s4=u,l4=r,sJ(M0,function(){return iu(!0),null})),r=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||r?(r=re.T,re.T=null,i=Ke.p,Ke.p=2,a=ot,ot|=4,ZK(e,l),hO(l,e),IK(g4,e.containerInfo),X0=!!m4,g4=m4=null,e.current=l,dO(e,l.alternate,l),wW(),ot=a,Ke.p=i,re.T=r):e.current=l,l0?(l0=!1,Ya=e,Yp=o):PO(e,u),u=e.pendingLanes,u===0&&(Wi=null),CW(l.stateNode,n),lo(e),t!==null)for(n=e.onRecoverableError,l=0;l<t.length;l++)u=t[l],n(u.value,{componentStack:u.stack});return(Yp&3)!==0&&iu(),u=e.pendingLanes,(o&4194218)!==0&&(u&42)!==0?e===u4?Xp++:(Xp=0,u4=e):Xp=0,_d(0,!1),null}function PO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$d(t)))}function iu(){if(Ya!==null){var e=Ya,t=s4;s4=0;var r=N8(Yp),o=re.T,n=Ke.p;try{if(Ke.p=32>r?32:r,re.T=null,Ya===null)var i=!1;else{r=l4,l4=null;var a=Ya,s=Yp;if(Ya=null,Yp=0,(ot&6)!==0)throw Error(P(331));var l=ot;if(ot|=4,xO(a.current),vO(a,a.current,s,r),ot=l,_d(0,!1),Ur&&typeof Ur.onPostCommitFiberRoot=="function")try{Ur.onPostCommitFiberRoot(md,a)}catch{}i=!0}return i}finally{Ke.p=n,re.T=o,PO(e,t)}}return!1}function t8(e,t,r){t=cn(r,t),t=J_(e.stateNode,t,2),e=Zi(e,t,2),e!==null&&(hd(e,2),lo(e))}function Le(e,t,r){if(e.tag===3)t8(e,e,r);else for(;t!==null;){if(t.tag===3){t8(t,e,r);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Wi===null||!Wi.has(o))){e=cn(r,e),r=YP(2),o=Zi(t,r,2),o!==null&&(XP(r,o,t,e),hd(o,2),lo(o));break}}t=t.return}}function k_(e,t,r){var o=e.pingCache;if(o===null){o=e.pingCache=new XK;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(r)||(tS=!0,n.add(r),e=oJ.bind(null,e,t,r),t.then(e,e))}function oJ(e,t,r){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Ve===e&&($e&r)===r&&(lt===4||lt===3&&($e&62914560)===$e&&300>oo()-nS?(ot&2)===0&&fu(e,0):rS|=r,du===$e&&(du=0)),lo(e)}function OO(e,t){t===0&&(t=P8()),e=Xi(e,t),e!==null&&(hd(e,t),lo(e))}function iJ(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),OO(e,r)}function aJ(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(P(314))}o!==null&&o.delete(t),OO(e,r)}function sJ(e,t){return _4(e,t)}var G0=null,Ll=null,d4=!1,Z0=!1,__=!1,is=0;function lo(e){e!==Ll&&e.next===null&&(Ll===null?G0=Ll=e:Ll=Ll.next=e),Z0=!0,d4||(d4=!0,uJ(lJ))}function _d(e,t){if(!__&&Z0){__=!0;do for(var r=!1,o=G0;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var i=0;else{var a=o.suspendedLanes,s=o.pingedLanes;i=(1<<31-Lr(42|e)+1)-1,i&=n&~(a&~s),i=i&201326677?i&201326677|1:i?i|2:0}i!==0&&(r=!0,r8(o,i))}else i=$e,i=eh(o,o===Ve?i:0),(i&3)===0||gd(o,i)||(r=!0,r8(o,i));o=o.next}while(r);__=!1}}function lJ(){Z0=d4=!1;var e=0;is!==0&&(gJ()&&(e=is),is=0);for(var t=oo(),r=null,o=G0;o!==null;){var n=o.next,i=AO(o,t);i===0?(o.next=null,r===null?G0=n:r.next=n,n===null&&(Ll=r)):(r=o,(e!==0||(i&3)!==0)&&(Z0=!0)),o=n}_d(e,!1)}function AO(e,t){for(var r=e.suspendedLanes,o=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var a=31-Lr(i),s=1<<a,l=n[a];l===-1?((s&r)===0||(s&o)!==0)&&(n[a]=OW(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(t=Ve,r=$e,r=eh(e,e===t?r:0),o=e.callbackNode,r===0||e===t&&Be===2||e.cancelPendingCommit!==null)return o!==null&&o!==null&&e_(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||gd(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(o!==null&&e_(o),N8(r)){case 2:case 8:r=C8;break;case 32:r=M0;break;case 268435456:r=R8;break;default:r=M0}return o=NO.bind(null,e),r=_4(r,o),e.callbackPriority=t,e.callbackNode=r,t}return o!==null&&o!==null&&e_(o),e.callbackPriority=2,e.callbackNode=null,2}function NO(e,t){var r=e.callbackNode;if(iu()&&e.callbackNode!==r)return null;var o=$e;return o=eh(e,e===Ve?o:0),o===0?null:(IO(e,o,t),AO(e,oo()),e.callbackNode!=null&&e.callbackNode===r?NO.bind(null,e):null)}function r8(e,t){if(iu())return null;IO(e,t,!0)}function uJ(e){yJ(function(){(ot&6)!==0?_4(M8,e):e()})}function iS(){return is===0&&(is=z8()),is}function n8(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:g0(""+e)}function o8(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function cJ(e,t,r,o,n){if(t==="submit"&&r&&r.stateNode===n){var i=n8((n[Er]||null).action),a=o.submitter;a&&(t=(t=a[Er]||null)?n8(t.formAction):a.getAttribute("formAction"),t!==null&&(i=t,a=null));var s=new th("action","action",null,o,n);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(is!==0){var l=a?o8(n,a):new FormData(n);W_(r,{pending:!0,data:l,method:n.method,action:i},null,l)}}else typeof i=="function"&&(s.preventDefault(),l=a?o8(n,a):new FormData(n),W_(r,{pending:!0,data:l,method:n.method,action:i},i,l))},currentTarget:n}]})}}for(u0=0;u0<wz.length;u0++)c0=wz[u0],i8=c0.toLowerCase(),a8=c0[0].toUpperCase()+c0.slice(1),Nn(i8,"on"+a8);var c0,i8,a8,u0;Nn(nP,"onAnimationEnd");Nn(oP,"onAnimationIteration");Nn(iP,"onAnimationStart");Nn("dblclick","onDoubleClick");Nn("focusin","onFocus");Nn("focusout","onBlur");Nn(MK,"onTransitionRun");Nn(CK,"onTransitionStart");Nn(RK,"onTransitionCancel");Nn(aP,"onTransitionEnd");su("onMouseEnter",["mouseout","mouseover"]);su("onMouseLeave",["mouseout","mouseover"]);su("onPointerEnter",["pointerout","pointerover"]);su("onPointerLeave",["pointerout","pointerover"]);ps("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ps("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ps("onBeforeInput",["compositionend","keypress","textInput","paste"]);ps("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ps("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ps("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var sd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pJ=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(sd));function DO(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],n=o.event;o=o.listeners;e:{var i=void 0;if(t)for(var a=o.length-1;0<=a;a--){var s=o[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=u;try{i(n)}catch(c){U0(c)}n.currentTarget=null,i=l}else for(a=0;a<o.length;a++){if(s=o[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&n.isPropagationStopped())break e;i=s,n.currentTarget=u;try{i(n)}catch(c){U0(c)}n.currentTarget=null,i=l}}}}function ge(e,t){var r=t[A_];r===void 0&&(r=t[A_]=new Set);var o=e+"__bubble";r.has(o)||(jO(t,e,2,!1),r.add(o))}function S_(e,t,r){var o=0;t&&(o|=4),jO(r,e,o,t)}var p0="_reactListening"+Math.random().toString(36).slice(2);function aS(e){if(!e[p0]){e[p0]=!0,j8.forEach(function(r){r!=="selectionchange"&&(pJ.has(r)||S_(r,!1,e),S_(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[p0]||(t[p0]=!0,S_("selectionchange",!1,t))}}function jO(e,t,r,o){switch(JO(t)){case 2:var n=DJ;break;case 8:n=jJ;break;default:n=cS}r=n.bind(null,t,r,e),n=void 0,!U_||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function w_(e,t,r,o,n){var i=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var a=o.tag;if(a===3||a===4){var s=o.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(a===4)for(a=o.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;a=a.return}for(;s!==null;){if(a=Xa(s),a===null)return;if(l=a.tag,l===5||l===6||l===26||l===27){o=i=a;continue e}s=s.parentNode}}o=o.return}Z8(function(){var u=i,c=T4(r),p=[];e:{var d=sP.get(e);if(d!==void 0){var f=th,m=e;switch(e){case"keypress":if(y0(r)===0)break e;case"keydown":case"keyup":f=aK;break;case"focusin":m="focus",f=i_;break;case"focusout":m="blur",f=i_;break;case"beforeblur":case"afterblur":f=i_;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=mz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=WW;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=uK;break;case nP:case oP:case iP:f=YW;break;case aP:f=pK;break;case"scroll":case"scrollend":f=ZW;break;case"wheel":f=fK;break;case"copy":case"cut":case"paste":f=QW;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=hz;break;case"toggle":case"beforetoggle":f=gK}var v=(t&4)!==0,b=!v&&(e==="scroll"||e==="scrollend"),y=v?d!==null?d+"Capture":null:d;v=[];for(var h=u,$;h!==null;){var _=h;if($=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||$===null||y===null||(_=td(h,y),_!=null&&v.push(ld(h,_,$))),b)break;h=h.return}0<v.length&&(d=new f(d,m,null,r,c),p.push({event:d,listeners:v}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",d&&r!==j_&&(m=r.relatedTarget||r.fromElement)&&(Xa(m)||m[hu]))break e;if((f||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,f?(m=r.relatedTarget||r.toElement,f=u,m=m?Xa(m):null,m!==null&&(b=gu(m),v=m.tag,m!==b||v!==5&&v!==27&&v!==6)&&(m=null)):(f=null,m=u),f!==m)){if(v=mz,_="onMouseLeave",y="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=hz,_="onPointerLeave",y="onPointerEnter",h="pointer"),b=f==null?d:Np(f),$=m==null?d:Np(m),d=new v(_,h+"leave",f,r,c),d.target=b,d.relatedTarget=$,_=null,Xa(c)===u&&(v=new v(y,h+"enter",m,r,c),v.target=$,v.relatedTarget=b,_=v),b=_,f&&m)t:{for(v=f,y=m,h=0,$=v;$;$=Dl($))h++;for($=0,_=y;_;_=Dl(_))$++;for(;0<h-$;)v=Dl(v),h--;for(;0<$-h;)y=Dl(y),$--;for(;h--;){if(v===y||y!==null&&v===y.alternate)break t;v=Dl(v),y=Dl(y)}v=null}else v=null;f!==null&&s8(p,d,f,v,!1),m!==null&&b!==null&&s8(p,b,m,v,!0)}}e:{if(d=u?Np(u):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var S=bz;else if($z(d))if(X8)S=wK;else{S=_K;var O=kK}else f=d.nodeName,!f||f.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&w4(u.elementType)&&(S=bz):S=SK;if(S&&(S=S(e,u))){Y8(p,S,r,c);break e}O&&O(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&D_(d,"number",d.value)}switch(O=u?Np(u):window,e){case"focusin":($z(O)||O.contentEditable==="true")&&(Gl=O,L_=u,Lp=null);break;case"focusout":Lp=L_=Gl=null;break;case"mousedown":q_=!0;break;case"contextmenu":case"mouseup":case"dragend":q_=!1,Sz(p,r,c);break;case"selectionchange":if(EK)break;case"keydown":case"keyup":Sz(p,r,c)}var k;if(M4)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Hl?K8(e,r)&&(T="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(T="onCompositionStart");T&&(W8&&r.locale!=="ko"&&(Hl||T!=="onCompositionStart"?T==="onCompositionEnd"&&Hl&&(k=F8()):(Vi=c,I4="value"in Vi?Vi.value:Vi.textContent,Hl=!0)),O=F0(u,T),0<O.length&&(T=new gz(T,e,null,r,c),p.push({event:T,listeners:O}),k?T.data=k:(k=J8(r),k!==null&&(T.data=k)))),(k=yK?vK(e,r):$K(e,r))&&(T=F0(u,"onBeforeInput"),0<T.length&&(O=new gz("onBeforeInput","beforeinput",null,r,c),p.push({event:O,listeners:T}),O.data=k)),cJ(p,e,u,r,c)}DO(p,t)})}function ld(e,t,r){return{instance:e,listener:t,currentTarget:r}}function F0(e,t){for(var r=t+"Capture",o=[];e!==null;){var n=e,i=n.stateNode;n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=td(e,r),n!=null&&o.unshift(ld(e,n,i)),n=td(e,t),n!=null&&o.push(ld(e,n,i))),e=e.return}return o}function Dl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function s8(e,t,r,o,n){for(var i=t._reactName,a=[];r!==null&&r!==o;){var s=r,l=s.alternate,u=s.stateNode;if(s=s.tag,l!==null&&l===o)break;s!==5&&s!==26&&s!==27||u===null||(l=u,n?(u=td(r,i),u!=null&&a.unshift(ld(r,u,l))):n||(u=td(r,i),u!=null&&a.push(ld(r,u,l)))),r=r.return}a.length!==0&&e.push({event:t,listeners:a})}var dJ=/\r\n?/g,fJ=/\u0000|\uFFFD/g;function l8(e){return(typeof e=="string"?e:""+e).replace(dJ,`
65
+ `).replace(fJ,"")}function UO(e,t){return t=l8(t),l8(e)===t}function dh(){}function ze(e,t,r,o,n,i){switch(r){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||lu(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&lu(e,""+o);break;case"className":Qg(e,"class",o);break;case"tabIndex":Qg(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Qg(e,r,o);break;case"style":G8(e,o,i);break;case"data":if(t!=="object"){Qg(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=g0(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(r==="formAction"?(t!=="input"&&ze(e,t,"name",n.name,n,null),ze(e,t,"formEncType",n.formEncType,n,null),ze(e,t,"formMethod",n.formMethod,n,null),ze(e,t,"formTarget",n.formTarget,n,null)):(ze(e,t,"encType",n.encType,n,null),ze(e,t,"method",n.method,n,null),ze(e,t,"target",n.target,n,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=g0(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=dh);break;case"onScroll":o!=null&&ge("scroll",e);break;case"onScrollEnd":o!=null&&ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(P(61));if(r=o.__html,r!=null){if(n.children!=null)throw Error(P(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=g0(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":ge("beforetoggle",e),ge("toggle",e),m0(e,"popover",o);break;case"xlinkActuate":Eo(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Eo(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Eo(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Eo(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Eo(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Eo(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Eo(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Eo(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Eo(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":m0(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=HW.get(r)||r,m0(e,r,o))}}function f4(e,t,r,o,n,i){switch(r){case"style":G8(e,o,i);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(P(61));if(r=o.__html,r!=null){if(n.children!=null)throw Error(P(60));e.innerHTML=r}}break;case"children":typeof o=="string"?lu(e,o):(typeof o=="number"||typeof o=="bigint")&&lu(e,""+o);break;case"onScroll":o!=null&&ge("scroll",e);break;case"onScrollEnd":o!=null&&ge("scrollend",e);break;case"onClick":o!=null&&(e.onclick=dh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!U8.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(n=r.endsWith("Capture"),t=r.slice(2,n?r.length-7:void 0),i=e[Er]||null,i=i!=null?i[r]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof o=="function")){typeof i!="function"&&i!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,o,n);break e}r in e?e[r]=o:o===!0?e.setAttribute(r,""):m0(e,r,o)}}}function Kt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ge("error",e),ge("load",e);var o=!1,n=!1,i;for(i in r)if(r.hasOwnProperty(i)){var a=r[i];if(a!=null)switch(i){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(P(137,t));default:ze(e,t,i,a,r,null)}}n&&ze(e,t,"srcSet",r.srcSet,r,null),o&&ze(e,t,"src",r.src,r,null);return;case"input":ge("invalid",e);var s=i=a=n=null,l=null,u=null;for(o in r)if(r.hasOwnProperty(o)){var c=r[o];if(c!=null)switch(o){case"name":n=c;break;case"type":a=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":i=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(P(137,t));break;default:ze(e,t,o,c,r,null)}}B8(e,i,s,l,u,a,n,!1),C0(e);return;case"select":ge("invalid",e),o=a=i=null;for(n in r)if(r.hasOwnProperty(n)&&(s=r[n],s!=null))switch(n){case"value":i=s;break;case"defaultValue":a=s;break;case"multiple":o=s;default:ze(e,t,n,s,r,null)}t=i,r=a,e.multiple=!!o,t!=null?Ql(e,!!o,t,!1):r!=null&&Ql(e,!!o,r,!0);return;case"textarea":ge("invalid",e),i=n=o=null;for(a in r)if(r.hasOwnProperty(a)&&(s=r[a],s!=null))switch(a){case"value":o=s;break;case"defaultValue":n=s;break;case"children":i=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(P(91));break;default:ze(e,t,a,s,r,null)}H8(e,o,n,i),C0(e);return;case"option":for(l in r)if(r.hasOwnProperty(l)&&(o=r[l],o!=null))switch(l){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:ze(e,t,l,o,r,null)}return;case"dialog":ge("cancel",e),ge("close",e);break;case"iframe":case"object":ge("load",e);break;case"video":case"audio":for(o=0;o<sd.length;o++)ge(sd[o],e);break;case"image":ge("error",e),ge("load",e);break;case"details":ge("toggle",e);break;case"embed":case"source":case"link":ge("error",e),ge("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in r)if(r.hasOwnProperty(u)&&(o=r[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(P(137,t));default:ze(e,t,u,o,r,null)}return;default:if(w4(t)){for(c in r)r.hasOwnProperty(c)&&(o=r[c],o!==void 0&&f4(e,t,c,o,r,void 0));return}}for(s in r)r.hasOwnProperty(s)&&(o=r[s],o!=null&&ze(e,t,s,o,r,null))}function mJ(e,t,r,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,a=null,s=null,l=null,u=null,c=null;for(f in r){var p=r[f];if(r.hasOwnProperty(f)&&p!=null)switch(f){case"checked":break;case"value":break;case"defaultValue":l=p;default:o.hasOwnProperty(f)||ze(e,t,f,null,o,p)}}for(var d in o){var f=o[d];if(p=r[d],o.hasOwnProperty(d)&&(f!=null||p!=null))switch(d){case"type":i=f;break;case"name":n=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":a=f;break;case"defaultValue":s=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(P(137,t));break;default:f!==p&&ze(e,t,d,f,o,p)}}N_(e,a,s,l,u,c,i,n);return;case"select":f=a=s=d=null;for(i in r)if(l=r[i],r.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":f=l;default:o.hasOwnProperty(i)||ze(e,t,i,null,o,l)}for(n in o)if(i=o[n],l=r[n],o.hasOwnProperty(n)&&(i!=null||l!=null))switch(n){case"value":d=i;break;case"defaultValue":s=i;break;case"multiple":a=i;default:i!==l&&ze(e,t,n,i,o,l)}t=s,r=a,o=f,d!=null?Ql(e,!!r,d,!1):!!o!=!!r&&(t!=null?Ql(e,!!r,t,!0):Ql(e,!!r,r?[]:"",!1));return;case"textarea":f=d=null;for(s in r)if(n=r[s],r.hasOwnProperty(s)&&n!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:ze(e,t,s,null,o,n)}for(a in o)if(n=o[a],i=r[a],o.hasOwnProperty(a)&&(n!=null||i!=null))switch(a){case"value":d=n;break;case"defaultValue":f=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(P(91));break;default:n!==i&&ze(e,t,a,n,o,i)}V8(e,d,f);return;case"option":for(var m in r)if(d=r[m],r.hasOwnProperty(m)&&d!=null&&!o.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:ze(e,t,m,null,o,d)}for(l in o)if(d=o[l],f=r[l],o.hasOwnProperty(l)&&d!==f&&(d!=null||f!=null))switch(l){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ze(e,t,l,d,o,f)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in r)d=r[v],r.hasOwnProperty(v)&&d!=null&&!o.hasOwnProperty(v)&&ze(e,t,v,null,o,d);for(u in o)if(d=o[u],f=r[u],o.hasOwnProperty(u)&&d!==f&&(d!=null||f!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(P(137,t));break;default:ze(e,t,u,d,o,f)}return;default:if(w4(t)){for(var b in r)d=r[b],r.hasOwnProperty(b)&&d!==void 0&&!o.hasOwnProperty(b)&&f4(e,t,b,void 0,o,d);for(c in o)d=o[c],f=r[c],!o.hasOwnProperty(c)||d===f||d===void 0&&f===void 0||f4(e,t,c,d,o,f);return}}for(var y in r)d=r[y],r.hasOwnProperty(y)&&d!=null&&!o.hasOwnProperty(y)&&ze(e,t,y,null,o,d);for(p in o)d=o[p],f=r[p],!o.hasOwnProperty(p)||d===f||d==null&&f==null||ze(e,t,p,d,o,f)}var m4=null,g4=null;function W0(e){return e.nodeType===9?e:e.ownerDocument}function u8(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function LO(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function h4(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var T_=null;function gJ(){var e=window.event;return e&&e.type==="popstate"?e===T_?!1:(T_=e,!0):(T_=null,!1)}var qO=typeof setTimeout=="function"?setTimeout:void 0,hJ=typeof clearTimeout=="function"?clearTimeout:void 0,c8=typeof Promise=="function"?Promise:void 0,yJ=typeof queueMicrotask=="function"?queueMicrotask:typeof c8<"u"?function(e){return c8.resolve(null).then(e).catch(vJ)}:qO;function vJ(e){setTimeout(function(){throw e})}function I_(e,t){var r=t,o=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(o===0){e.removeChild(n),fd(t);return}o--}else r!=="$"&&r!=="$?"&&r!=="$!"||o++;r=n}while(r);fd(t)}function y4(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":y4(r),S4(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function $J(e,t,r,o){for(;e.nodeType===1;){var n=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ed])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=An(e.nextSibling),e===null)break}return null}function bJ(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=An(e.nextSibling),e===null))return null;return e}function An(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function p8(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}function BO(e,t,r){switch(t=W0(r),e){case"html":if(e=t.documentElement,!e)throw Error(P(452));return e;case"head":if(e=t.head,!e)throw Error(P(453));return e;case"body":if(e=t.body,!e)throw Error(P(454));return e;default:throw Error(P(451))}}var mn=new Map,d8=new Set;function K0(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Go=Ke.d;Ke.d={f:xJ,r:kJ,D:_J,C:SJ,L:wJ,m:TJ,X:EJ,S:IJ,M:MJ};function xJ(){var e=Go.f(),t=ch();return e||t}function kJ(e){var t=yu(e);t!==null&&t.tag===5&&t.type==="form"?BP(t):Go.r(e)}var $u=typeof document>"u"?null:document;function VO(e,t,r){var o=$u;if(o&&typeof t=="string"&&t){var n=un(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof r=="string"&&(n+='[crossorigin="'+r+'"]'),d8.has(n)||(d8.add(n),e={rel:e,crossOrigin:r,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),Kt(t,"link",e),Nt(t),o.head.appendChild(t)))}}function _J(e){Go.D(e),VO("dns-prefetch",e,null)}function SJ(e,t){Go.C(e,t),VO("preconnect",e,t)}function wJ(e,t,r){Go.L(e,t,r);var o=$u;if(o&&e&&t){var n='link[rel="preload"][as="'+un(t)+'"]';t==="image"&&r&&r.imageSrcSet?(n+='[imagesrcset="'+un(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(n+='[imagesizes="'+un(r.imageSizes)+'"]')):n+='[href="'+un(e)+'"]';var i=n;switch(t){case"style":i=mu(e);break;case"script":i=bu(e)}mn.has(i)||(e=Je({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),mn.set(i,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(Sd(i))||t==="script"&&o.querySelector(wd(i))||(t=o.createElement("link"),Kt(t,"link",e),Nt(t),o.head.appendChild(t)))}}function TJ(e,t){Go.m(e,t);var r=$u;if(r&&e){var o=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+un(o)+'"][href="'+un(e)+'"]',i=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=bu(e)}if(!mn.has(i)&&(e=Je({rel:"modulepreload",href:e},t),mn.set(i,e),r.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(wd(i)))return}o=r.createElement("link"),Kt(o,"link",e),Nt(o),r.head.appendChild(o)}}}function IJ(e,t,r){Go.S(e,t,r);var o=$u;if(o&&e){var n=Xl(o).hoistableStyles,i=mu(e);t=t||"default";var a=n.get(i);if(!a){var s={loading:0,preload:null};if(a=o.querySelector(Sd(i)))s.loading=5;else{e=Je({rel:"stylesheet",href:e,"data-precedence":t},r),(r=mn.get(i))&&sS(e,r);var l=a=o.createElement("link");Nt(l),Kt(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,_0(a,t,o)}a={type:"stylesheet",instance:a,count:1,state:s},n.set(i,a)}}}function EJ(e,t){Go.X(e,t);var r=$u;if(r&&e){var o=Xl(r).hoistableScripts,n=bu(e),i=o.get(n);i||(i=r.querySelector(wd(n)),i||(e=Je({src:e,async:!0},t),(t=mn.get(n))&&lS(e,t),i=r.createElement("script"),Nt(i),Kt(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},o.set(n,i))}}function MJ(e,t){Go.M(e,t);var r=$u;if(r&&e){var o=Xl(r).hoistableScripts,n=bu(e),i=o.get(n);i||(i=r.querySelector(wd(n)),i||(e=Je({src:e,async:!0,type:"module"},t),(t=mn.get(n))&&lS(e,t),i=r.createElement("script"),Nt(i),Kt(i,"link",e),r.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},o.set(n,i))}}function f8(e,t,r,o){var n=(n=Hi.current)?K0(n):null;if(!n)throw Error(P(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=mu(r.href),r=Xl(n).hoistableStyles,o=r.get(t),o||(o={type:"style",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=mu(r.href);var i=Xl(n).hoistableStyles,a=i.get(e);if(a||(n=n.ownerDocument||n,a={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,a),(i=n.querySelector(Sd(e)))&&!i._p&&(a.instance=i,a.state.loading=5),mn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},mn.set(e,r),i||CJ(n,e,r,a.state))),t&&o===null)throw Error(P(528,""));return a}if(t&&o!==null)throw Error(P(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=bu(r),r=Xl(n).hoistableScripts,o=r.get(t),o||(o={type:"script",instance:null,count:0,state:null},r.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(P(444,e))}}function mu(e){return'href="'+un(e)+'"'}function Sd(e){return'link[rel="stylesheet"]['+e+"]"}function HO(e){return Je({},e,{"data-precedence":e.precedence,precedence:null})}function CJ(e,t,r,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Kt(t,"link",r),Nt(t),e.head.appendChild(t))}function bu(e){return'[src="'+un(e)+'"]'}function wd(e){return"script[async]"+e}function m8(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+un(r.href)+'"]');if(o)return t.instance=o,Nt(o),o;var n=Je({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Nt(o),Kt(o,"style",n),_0(o,r.precedence,e),t.instance=o;case"stylesheet":n=mu(r.href);var i=e.querySelector(Sd(n));if(i)return t.state.loading|=4,t.instance=i,Nt(i),i;o=HO(r),(n=mn.get(n))&&sS(o,n),i=(e.ownerDocument||e).createElement("link"),Nt(i);var a=i;return a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Kt(i,"link",o),t.state.loading|=4,_0(i,r.precedence,e),t.instance=i;case"script":return i=bu(r.src),(n=e.querySelector(wd(i)))?(t.instance=n,Nt(n),n):(o=r,(n=mn.get(i))&&(o=Je({},r),lS(o,n)),e=e.ownerDocument||e,n=e.createElement("script"),Nt(n),Kt(n,"link",o),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(P(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,_0(o,r.precedence,e));return t.instance}function _0(e,t,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,i=n,a=0;a<o.length;a++){var s=o[a];if(s.dataset.precedence===t)i=s;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function sS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var S0=null;function g8(e,t,r){if(S0===null){var o=new Map,n=S0=new Map;n.set(r,o)}else n=S0,o=n.get(r),o||(o=new Map,n.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),n=0;n<r.length;n++){var i=r[n];if(!(i[ed]||i[rr]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var a=i.getAttribute(t)||"";a=e+a;var s=o.get(a);s?s.push(i):o.set(a,[i])}}return o}function h8(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function RJ(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function GO(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var ud=null;function zJ(){}function PJ(e,t,r){if(ud===null)throw Error(P(475));var o=ud;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var n=mu(r.href),i=e.querySelector(Sd(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=J0.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=i,Nt(i);return}i=e.ownerDocument||e,r=HO(r),(n=mn.get(n))&&sS(r,n),i=i.createElement("link"),Nt(i);var a=i;a._p=new Promise(function(s,l){a.onload=s,a.onerror=l}),Kt(i,"link",r),t.instance=i}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(o.count++,t=J0.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function OJ(){if(ud===null)throw Error(P(475));var e=ud;return e.stylesheets&&e.count===0&&v4(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&v4(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function J0(){if(this.count--,this.count===0){if(this.stylesheets)v4(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Y0=null;function v4(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Y0=new Map,t.forEach(AJ,e),Y0=null,J0.call(e))}function AJ(e,t){if(!(t.state.loading&4)){var r=Y0.get(e);if(r)var o=r.get(null);else{r=new Map,Y0.set(e,r);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var a=n[i];(a.nodeName==="LINK"||a.getAttribute("media")!=="not all")&&(r.set(a.dataset.precedence,a),o=a)}o&&r.set(null,o)}n=t.instance,a=n.getAttribute("data-precedence"),i=r.get(a)||o,i===o&&r.set(null,n),r.set(a,n),this.count++,o=J0.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var cd={$$typeof:Ao,Provider:null,Consumer:null,_currentValue:es,_currentValue2:es,_threadCount:0};function NJ(e,t,r,o,n,i,a,s){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=t_(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=t_(0),this.hiddenUpdates=t_(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function ZO(e,t,r,o,n,i,a,s,l,u,c,p){return e=new NJ(e,t,r,a,s,l,u,p),t=1,i===!0&&(t|=24),i=pn(3,null,null,t),e.current=i,i.stateNode=e,t=N4(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:o,isDehydrated:r,cache:t},Y4(i),e}function FO(e){return e?(e=Wl,e):Wl}function WO(e,t,r,o,n,i){n=FO(n),o.context===null?o.context=n:o.pendingContext=n,o=Gi(t),o.payload={element:r},i=i===void 0?null:i,i!==null&&(o.callback=i),r=Zi(e,o,t),r!==null&&(gr(r,e,t),Zp(r,e,t))}function y8(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function uS(e,t){y8(e,t),(e=e.alternate)&&y8(e,t)}function KO(e){if(e.tag===13){var t=Xi(e,67108864);t!==null&&gr(t,e,67108864),uS(e,67108864)}}var X0=!0;function DJ(e,t,r,o){var n=re.T;re.T=null;var i=Ke.p;try{Ke.p=2,cS(e,t,r,o)}finally{Ke.p=i,re.T=n}}function jJ(e,t,r,o){var n=re.T;re.T=null;var i=Ke.p;try{Ke.p=8,cS(e,t,r,o)}finally{Ke.p=i,re.T=n}}function cS(e,t,r,o){if(X0){var n=$4(o);if(n===null)w_(e,t,o,Q0,r),v8(e,o);else if(LJ(n,e,t,r,o))o.stopPropagation();else if(v8(e,o),t&4&&-1<UJ.indexOf(e)){for(;n!==null;){var i=yu(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var a=Ka(i.pendingLanes);if(a!==0){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-Lr(a);s.entanglements[1]|=l,a&=~l}lo(i),(ot&6)===0&&(V0=oo()+500,_d(0,!1))}}break;case 13:s=Xi(i,2),s!==null&&gr(s,i,2),ch(),uS(i,2)}if(i=$4(o),i===null&&w_(e,t,o,Q0,r),i===n)break;n=i}n!==null&&o.stopPropagation()}else w_(e,t,o,null,r)}}function $4(e){return e=T4(e),pS(e)}var Q0=null;function pS(e){if(Q0=null,e=Xa(e),e!==null){var t=gu(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=I8(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Q0=e,null}function JO(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(TW()){case M8:return 2;case C8:return 8;case M0:case IW:return 32;case R8:return 268435456;default:return 32}default:return 32}}var b4=!1,Ki=null,Ji=null,Yi=null,pd=new Map,dd=new Map,qi=[],UJ="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function v8(e,t){switch(e){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":Ji=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":pd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dd.delete(t.pointerId)}}function Rp(e,t,r,o,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:o,nativeEvent:i,targetContainers:[n]},t!==null&&(t=yu(t),t!==null&&KO(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function LJ(e,t,r,o,n){switch(t){case"focusin":return Ki=Rp(Ki,e,t,r,o,n),!0;case"dragenter":return Ji=Rp(Ji,e,t,r,o,n),!0;case"mouseover":return Yi=Rp(Yi,e,t,r,o,n),!0;case"pointerover":var i=n.pointerId;return pd.set(i,Rp(pd.get(i)||null,e,t,r,o,n)),!0;case"gotpointercapture":return i=n.pointerId,dd.set(i,Rp(dd.get(i)||null,e,t,r,o,n)),!0}return!1}function YO(e){var t=Xa(e.target);if(t!==null){var r=gu(t);if(r!==null){if(t=r.tag,t===13){if(t=I8(r),t!==null){e.blockedOn=t,NW(e.priority,function(){if(r.tag===13){var o=qr(),n=Xi(r,o);n!==null&&gr(n,r,o),uS(r,o)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function w0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=$4(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);j_=o,r.target.dispatchEvent(o),j_=null}else return t=yu(r),t!==null&&KO(t),e.blockedOn=r,!1;t.shift()}return!0}function $8(e,t,r){w0(e)&&r.delete(t)}function qJ(){b4=!1,Ki!==null&&w0(Ki)&&(Ki=null),Ji!==null&&w0(Ji)&&(Ji=null),Yi!==null&&w0(Yi)&&(Yi=null),pd.forEach($8),dd.forEach($8)}function d0(e,t){e.blockedOn===t&&(e.blockedOn=null,b4||(b4=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,qJ)))}var f0=null;function b8(e){f0!==e&&(f0=e,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,function(){f0===e&&(f0=null);for(var t=0;t<e.length;t+=3){var r=e[t],o=e[t+1],n=e[t+2];if(typeof o!="function"){if(pS(o||r)===null)continue;break}var i=yu(r);i!==null&&(e.splice(t,3),t-=3,W_(i,{pending:!0,data:n,method:r.method,action:o},o,n))}}))}function fd(e){function t(l){return d0(l,e)}Ki!==null&&d0(Ki,e),Ji!==null&&d0(Ji,e),Yi!==null&&d0(Yi,e),pd.forEach(t),dd.forEach(t);for(var r=0;r<qi.length;r++){var o=qi[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<qi.length&&(r=qi[0],r.blockedOn===null);)YO(r),r.blockedOn===null&&qi.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var n=r[o],i=r[o+1],a=n[Er]||null;if(typeof i=="function")a||b8(r);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(n=i,a=i[Er]||null)s=a.formAction;else if(pS(n)!==null)continue}else s=a.action;typeof s=="function"?r[o+1]=s:(r.splice(o,3),o-=3),b8(r)}}}function dS(e){this._internalRoot=e}fh.prototype.render=dS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));var r=t.current,o=qr();WO(r,o,e,t,null,null)};fh.prototype.unmount=dS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&iu(),WO(e.current,2,null,e,null,null),ch(),t[hu]=null}};function fh(e){this._internalRoot=e}fh.prototype.unstable_scheduleHydration=function(e){if(e){var t=D8();e={blockedOn:null,target:e,priority:t};for(var r=0;r<qi.length&&t!==0&&t<qi[r].priority;r++);qi.splice(r,0,e),r===0&&YO(e)}};var x8=k8.version;if(x8!=="19.0.0")throw Error(P(527,x8,"19.0.0"));Ke.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=_W(t),e=e!==null?E8(e):null,e=e===null?null:e.stateNode,e};var BJ={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:re,findFiberByHostInstance:Xa,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(zp=__REACT_DEVTOOLS_GLOBAL_HOOK__,!zp.isDisabled&&zp.supportsFiber))try{md=zp.inject(BJ),Ur=zp}catch{}var zp;mh.createRoot=function(e,t){if(!_8(e))throw Error(P(299));var r=!1,o="",n=WP,i=KP,a=JP,s=null;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(a=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(s=t.unstable_transitionCallbacks)),t=ZO(e,1,!1,null,null,r,o,n,i,a,s,null),e[hu]=t.current,aS(e.nodeType===8?e.parentNode:e),new dS(t)};mh.hydrateRoot=function(e,t,r){if(!_8(e))throw Error(P(299));var o=!1,n="",i=WP,a=KP,s=JP,l=null,u=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(n=r.identifierPrefix),r.onUncaughtError!==void 0&&(i=r.onUncaughtError),r.onCaughtError!==void 0&&(a=r.onCaughtError),r.onRecoverableError!==void 0&&(s=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(l=r.unstable_transitionCallbacks),r.formState!==void 0&&(u=r.formState)),t=ZO(e,1,!0,t,r??null,o,n,i,a,s,l,u),t.context=FO(null),r=t.current,o=qr(),n=Gi(o),n.callback=null,Zi(r,n,o),t.current.lanes=o,hd(t,o),lo(t),e[hu]=t.current,aS(e),new fh(t)};mh.version="19.0.0"});var xu=q(($ce,eA)=>{"use strict";function QO(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(QO)}catch(e){console.error(e)}}QO(),eA.exports=XO()});function fS(e){return e.replace(/__GGUI_META__[\s\S]*?__GGUI_META_END__/g,"").replace(/__GGUI_STREAM_SPEC__[\s\S]*?__GGUI_STREAM_SPEC_END__/g,"")}var tA=x(()=>{"use strict"});function rA(e){let t=e.$value;if(Array.isArray(t))return t.join(", ");if(t!==null&&typeof t=="object"){let r=t;if(e.$type==="shadow"&&"offsetX"in r)return`${r.offsetX} ${r.offsetY} ${r.blur} ${r.spread} ${r.color}`;if(e.$type==="transition"&&"duration"in r&&"timingFunction"in r)return`${typeof r.property=="string"&&r.property?`${r.property} `:""}${r.duration} ${r.timingFunction}`}return String(t)}function oa(e,t,r){for(let[o,n]of Object.entries(e))o.startsWith("$")||(n!==null&&typeof n=="object"&&"$value"in n?r.push(` --ggui-${t}-${o}: ${rA(n)};`):n!==null&&typeof n=="object"&&oa(n,`${t}-${o}`,r))}function VJ(e){let t=[];return oa(e.color,"color",t),oa(e.font,"font",t),oa(e.spacing,"spacing",t),oa(e.shape,"shape",t),oa({duration:e.motion.duration,easing:e.motion.easing,transition:e.motion.transition},"motion",t),oa(e.accessibility,"accessibility",t),oa(e.zIndex,"zIndex",t),t.push(` --ggui-canvas-mode: ${e.canvas.mode.$value};`),t.push(` --ggui-canvas-speed: ${e.canvas.speed.$value};`),t.push(` --ggui-canvas-background: ${e.canvas.background.$value};`),t.join(`
66
+ `)}function HJ(e,t){let r=/([\d.]+%|from|to)\s*\{([^}]*)\}/g,o=[],n;for(;(n=r.exec(t))!==null;){let i=n[1],s=n[2].trim().split(";").map(l=>l.trim()).filter(Boolean).map(l=>l.endsWith(";")?l:`${l};`).join(" ");o.push(` ${i} { ${s} }`)}return`@keyframes ggui-${e} {
67
+ ${o.join(`
68
+ `)}
69
+ }`}function GJ(e){let t=[];for(let[r,o]of Object.entries(e.motion.keyframes))r.startsWith("$")||t.push(HJ(r,String(o.$value)));return t.join(`
70
+
71
+ `)}function mS(e,t){let o=`:root {
72
+ ${VJ(t)}
73
+ }`,n=GJ(t),i=n?`${o}
74
+
75
+ ${n}`:o;return{id:e,name:t.$name,description:t.$description,metadata:t.$metadata,cssVariables:o,cssKeyframes:n,css:i,canvasConfig:{mode:t.canvas.mode.$value,speed:t.canvas.speed.$value,colors:t.canvas.colors.$value,background:String(t.canvas.background.$value)}}}function nA(e){return`--ggui-${e.join("-")}`}function gS(e){return FJ(":root",ZJ(e))}function hS(e){let t={};function r(o,n=[]){for(let[i,a]of Object.entries(o))if(!i.startsWith("$"))if(a!==null&&typeof a=="object"&&"$value"in a){let s=[...n,i].join(".");t[s]=`var(${nA([...n,i])})`}else a!==null&&typeof a=="object"&&r(a,[...n,i])}return e!==null&&typeof e=="object"&&r(e),t}function ZJ(e){let t=[];function r(o,n=[]){for(let[i,a]of Object.entries(o))if(!i.startsWith("$"))if(a!==null&&typeof a=="object"&&"$value"in a){let s=nA([...n,i]),l=rA(a);t.push(` ${s}: ${l};`)}else a!==null&&typeof a=="object"&&r(a,[...n,i])}return e!==null&&typeof e=="object"&&r(e),t}function FJ(e,t){return`${e} {
76
+ ${t.join(`
77
+ `)}
78
+ }`}var gh=x(()=>{"use strict"});var oA=x(()=>{"use strict"});var Ut,he,ft,ia,aa=x(()=>{"use strict";Ut={light:{success:{50:{$type:"color",$value:"#f0fdf4"},100:{$type:"color",$value:"#dcfce7"},200:{$type:"color",$value:"#bbf7d0"},500:{$type:"color",$value:"#22c55e"},600:{$type:"color",$value:"#16a34a"},700:{$type:"color",$value:"#15803d"},800:{$type:"color",$value:"#166534"}},warning:{50:{$type:"color",$value:"#fffbeb"},100:{$type:"color",$value:"#fef3c7"},200:{$type:"color",$value:"#fde68a"},500:{$type:"color",$value:"#f59e0b"},600:{$type:"color",$value:"#d97706"},700:{$type:"color",$value:"#b45309"},800:{$type:"color",$value:"#92400e"}},error:{50:{$type:"color",$value:"#fef2f2"},100:{$type:"color",$value:"#fee2e2"},200:{$type:"color",$value:"#fecaca"},500:{$type:"color",$value:"#ef4444"},600:{$type:"color",$value:"#dc2626"},700:{$type:"color",$value:"#b91c1c"},800:{$type:"color",$value:"#991b1b"}},info:{50:{$type:"color",$value:"#ecfeff"},100:{$type:"color",$value:"#cffafe"},200:{$type:"color",$value:"#a5f3fc"},500:{$type:"color",$value:"#06b6d4"},600:{$type:"color",$value:"#0891b2"},700:{$type:"color",$value:"#0e7490"},800:{$type:"color",$value:"#155e75"}}},dark:{success:{50:{$type:"color",$value:"#052e16"},100:{$type:"color",$value:"#14532d"},200:{$type:"color",$value:"#166534"},500:{$type:"color",$value:"#22c55e"},600:{$type:"color",$value:"#4ade80"},700:{$type:"color",$value:"#86efac"},800:{$type:"color",$value:"#bbf7d0"}},warning:{50:{$type:"color",$value:"#451a03"},100:{$type:"color",$value:"#78350f"},200:{$type:"color",$value:"#92400e"},500:{$type:"color",$value:"#f59e0b"},600:{$type:"color",$value:"#fbbf24"},700:{$type:"color",$value:"#fcd34d"},800:{$type:"color",$value:"#fde68a"}},error:{50:{$type:"color",$value:"#450a0a"},100:{$type:"color",$value:"#7f1d1d"},200:{$type:"color",$value:"#991b1b"},500:{$type:"color",$value:"#ef4444"},600:{$type:"color",$value:"#f87171"},700:{$type:"color",$value:"#fca5a5"},800:{$type:"color",$value:"#fecaca"}},info:{50:{$type:"color",$value:"#083344"},100:{$type:"color",$value:"#164e63"},200:{$type:"color",$value:"#155e75"},500:{$type:"color",$value:"#06b6d4"},600:{$type:"color",$value:"#22d3ee"},700:{$type:"color",$value:"#67e8f9"},800:{$type:"color",$value:"#a5f3fc"}}}},he={light:{focusRing:{color:{$type:"color",$value:"#0284c7"},width:{$type:"dimension",$value:"2px"},offset:{$type:"dimension",$value:"2px"}},reducedMotion:{duration:{$type:"duration",$value:"0ms"}},highContrast:{borderWidth:{$type:"dimension",$value:"2px"},textColor:{$type:"color",$value:"#000000"},backgroundColor:{$type:"color",$value:"#ffffff"},linkColor:{$type:"color",$value:"#0369a1"}}},dark:{focusRing:{color:{$type:"color",$value:"#38bdf8"},width:{$type:"dimension",$value:"2px"},offset:{$type:"dimension",$value:"2px"}},reducedMotion:{duration:{$type:"duration",$value:"0ms"}},highContrast:{borderWidth:{$type:"dimension",$value:"2px"},textColor:{$type:"color",$value:"#f1f5f9"},backgroundColor:{$type:"color",$value:"#0f172a"},linkColor:{$type:"color",$value:"#7dd3fc"}}}},ft={hide:{$type:"number",$value:-1},base:{$type:"number",$value:0},docked:{$type:"number",$value:10},dropdown:{$type:"number",$value:1e3},sticky:{$type:"number",$value:1100},banner:{$type:"number",$value:1200},overlay:{$type:"number",$value:1300},modal:{$type:"number",$value:1400},popover:{$type:"number",$value:1500},skipLink:{$type:"number",$value:1600},toast:{$type:"number",$value:1700},tooltip:{$type:"number",$value:1800}},ia={fast:{$type:"transition",$value:"100ms cubic-bezier(0.4, 0, 0.2, 1)"},normal:{$type:"transition",$value:"200ms cubic-bezier(0.4, 0, 0.2, 1)"},slow:{$type:"transition",$value:"300ms cubic-bezier(0.4, 0, 0.2, 1)"},colors:{$type:"transition",$value:"color 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1)"},opacity:{$type:"transition",$value:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"},transform:{$type:"transition",$value:"transform 200ms cubic-bezier(0, 0, 0.2, 1)"}}});var sa,WJ,KJ,iA,aA=x(()=>{"use strict";aa();sa={font:{family:{sans:{$value:'"Inter", system-ui, -apple-system, sans-serif',$type:"fontFamily"},mono:{$value:'"Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace',$type:"fontFamily"}},size:{sm:{$value:"0.8125rem",$type:"dimension"},base:{$value:"0.875rem",$type:"dimension"},lg:{$value:"1rem",$type:"dimension"},xl:{$value:"1.125rem",$type:"dimension"},"2xl":{$value:"1.375rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"700",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.2",$type:"number"},normal:{$value:"1.5",$type:"number"},relaxed:{$value:"1.6",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"},xs:{$value:"0.25rem",$type:"dimension"},sm:{$value:"0.5rem",$type:"dimension"},md:{$value:"1rem",$type:"dimension"},lg:{$value:"1.5rem",$type:"dimension"},xl:{$value:"2rem",$type:"dimension"},"2xl":{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"2px",$type:"dimension"},md:{$value:"2px",$type:"dimension"},lg:{$value:"4px",$type:"dimension"},xl:{$value:"6px",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"none",$type:"shadow"},md:{$value:"0 1px 2px rgba(41, 41, 41, 0.06)",$type:"shadow"},lg:{$value:"0 2px 6px rgba(41, 41, 41, 0.08)",$type:"shadow"},xl:{$value:"0 4px 12px rgba(41, 41, 41, 0.10)",$type:"shadow"}}},motion:{duration:{fast:{$value:"120ms",$type:"duration"},normal:{$value:"200ms",$type:"duration"},slow:{$value:"400ms",$type:"duration"},ambient:{$value:"2000ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.4, 0, 0.2, 1)",$type:"cubicBezier"},bounce:{$value:"cubic-bezier(0.34, 1.56, 0.64, 1)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.22, 1, 0.36, 1)",$type:"cubicBezier"}},transition:ia,keyframes:{"accent-pulse":{$value:"0%{opacity:1}50%{opacity:0.7}100%{opacity:1}",$type:"keyframes"},entrance:{$value:"0%{opacity:0;transform:translateY(4px)}100%{opacity:1;transform:none}",$type:"keyframes"},shimmer:{$value:"0%{background-position:-200% 0}100%{background-position:200% 0}",$type:"keyframes"}}}},WJ={$name:"GGUI",$description:"The default ggui theme \u2014 monochrome paper + ink, architectural, no decorative flourish.",$metadata:{font:"Inter",fontUrl:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;700&display=swap",philosophy:"The interface is the artifact, not the chrome around it."},color:{primary:{50:{$value:"#f4f3ed",$type:"color"},100:{$value:"#ebe9e1",$type:"color"},200:{$value:"#e4e4e2",$type:"color"},300:{$value:"#d9d9d9",$type:"color"},400:{$value:"#8c8c93",$type:"color"},500:{$value:"#292929",$type:"color"},600:{$value:"#1f1f1f",$type:"color"},700:{$value:"#171717",$type:"color"},800:{$value:"#0e0e0e",$type:"color"},900:{$value:"#000000",$type:"color"}},neutral:{50:{$value:"#f4f3ed",$type:"color"},100:{$value:"#ebe9e1",$type:"color"},200:{$value:"#e4e4e2",$type:"color"},300:{$value:"#d9d9d9",$type:"color"},400:{$value:"#8c8c93",$type:"color"},500:{$value:"#5a5a5a",$type:"color"},600:{$value:"#3d3d3d",$type:"color"},700:{$value:"#292929",$type:"color"},800:{$value:"#24242c",$type:"color"},900:{$value:"#0e0e0e",$type:"color"}},success:{50:{$value:"#e8f5ec",$type:"color"},100:{$value:"#c5e6cd",$type:"color"},200:{$value:"#8fcca0",$type:"color"},500:{$value:"#1b7a37",$type:"color"},600:{$value:"#15622c",$type:"color"},700:{$value:"#0f4a21",$type:"color"},800:{$value:"#093116",$type:"color"}},warning:{50:{$value:"#fbf3e0",$type:"color"},100:{$value:"#f3e1b0",$type:"color"},200:{$value:"#e6c46e",$type:"color"},500:{$value:"#a87b0e",$type:"color"},600:{$value:"#86620b",$type:"color"},700:{$value:"#654a08",$type:"color"},800:{$value:"#433105",$type:"color"}},error:{50:{$value:"#fbe7e3",$type:"color"},100:{$value:"#f4bbb1",$type:"color"},200:{$value:"#ea8a7a",$type:"color"},500:{$value:"#d93822",$type:"color"},600:{$value:"#ae2d1b",$type:"color"},700:{$value:"#822214",$type:"color"},800:{$value:"#57160d",$type:"color"}},info:{50:{$value:"#e1e1e1",$type:"color"},100:{$value:"#bababa",$type:"color"},200:{$value:"#8e8e8e",$type:"color"},500:{$value:"#3d3d3d",$type:"color"},600:{$value:"#313131",$type:"color"},700:{$value:"#252525",$type:"color"},800:{$value:"#181818",$type:"color"}},surface:{$value:"#f4f3ed",$type:"color"},onSurface:{$value:"#292929",$type:"color"},surfaceVariant:{$value:"#ebe9e1",$type:"color"},onSurfaceVariant:{$value:"#5a5a5a",$type:"color"},container:{$value:"#ebe9e1",$type:"color"},onContainer:{$value:"#292929",$type:"color"},outline:{$value:"#d6d4cb",$type:"color"},outlineVariant:{$value:"#e4e4e2",$type:"color"},onPrimary:{$value:"#f4f3ed",$type:"color"},primaryContainer:{$value:"#ebe9e1",$type:"color"},onPrimaryContainer:{$value:"#292929",$type:"color"},onError:{$value:"#f4f3ed",$type:"color"},errorContainer:{$value:"#fbe7e3",$type:"color"},onErrorContainer:{$value:"#57160d",$type:"color"},tertiary:{$value:"#1b7a37",$type:"color"},onTertiary:{$value:"#f4f3ed",$type:"color"},tertiaryContainer:{$value:"#e8f5ec",$type:"color"},onTertiaryContainer:{$value:"#093116",$type:"color"}},font:sa.font,spacing:sa.spacing,shape:sa.shape,motion:sa.motion,canvas:{mode:{$value:"none",$type:"string"},speed:{$value:1,$type:"number"},colors:{$value:[],$type:"array"},background:{$value:"#f4f3ed",$type:"color"}},accessibility:{...he.light,focusRing:{...he.light.focusRing,color:{$type:"color",$value:"#292929"}}},zIndex:ft},KJ={$name:"GGUI",$description:"The default ggui theme (dark) \u2014 ink canvas, paper text, architectural and flat.",$metadata:{font:"Inter",fontUrl:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Geist+Mono:wght@400;500;700&display=swap",philosophy:"The interface is the artifact, not the chrome around it."},color:{primary:{50:{$value:"#0e0e0e",$type:"color"},100:{$value:"#1f1f1f",$type:"color"},200:{$value:"#292929",$type:"color"},300:{$value:"#3d3d3d",$type:"color"},400:{$value:"#5a5a5a",$type:"color"},500:{$value:"#f4f3ed",$type:"color"},600:{$value:"#ebe9e1",$type:"color"},700:{$value:"#e4e4e2",$type:"color"},800:{$value:"#d9d9d9",$type:"color"},900:{$value:"#ffffff",$type:"color"}},neutral:{50:{$value:"#0e0e0e",$type:"color"},100:{$value:"#1f1f1f",$type:"color"},200:{$value:"#292929",$type:"color"},300:{$value:"#3d3d3d",$type:"color"},400:{$value:"#5a5a5a",$type:"color"},500:{$value:"#8c8c93",$type:"color"},600:{$value:"#d9d9d9",$type:"color"},700:{$value:"#e4e4e2",$type:"color"},800:{$value:"#ebe9e1",$type:"color"},900:{$value:"#f4f3ed",$type:"color"}},success:{50:{$value:"#0d2918",$type:"color"},100:{$value:"#174f2a",$type:"color"},200:{$value:"#286b3d",$type:"color"},500:{$value:"#3da85b",$type:"color"},600:{$value:"#6dbf83",$type:"color"},700:{$value:"#9dd5ab",$type:"color"},800:{$value:"#cdead3",$type:"color"}},warning:{50:{$value:"#332608",$type:"color"},100:{$value:"#5e4612",$type:"color"},200:{$value:"#896720",$type:"color"},500:{$value:"#d4a02e",$type:"color"},600:{$value:"#dfb55c",$type:"color"},700:{$value:"#eaca8a",$type:"color"},800:{$value:"#f5deb8",$type:"color"}},error:{50:{$value:"#3d130d",$type:"color"},100:{$value:"#702419",$type:"color"},200:{$value:"#a33828",$type:"color"},500:{$value:"#ff5b46",$type:"color"},600:{$value:"#ff7d6c",$type:"color"},700:{$value:"#ff9f93",$type:"color"},800:{$value:"#ffc2ba",$type:"color"}},info:{50:{$value:"#363636",$type:"color"},100:{$value:"#5a5a5a",$type:"color"},200:{$value:"#8c8c8c",$type:"color"},500:{$value:"#d9d9d9",$type:"color"},600:{$value:"#e0e0e0",$type:"color"},700:{$value:"#e8e8e8",$type:"color"},800:{$value:"#f0f0f0",$type:"color"}},surface:{$value:"#1f1f1f",$type:"color"},onSurface:{$value:"#f4f3ed",$type:"color"},surfaceVariant:{$value:"#292929",$type:"color"},onSurfaceVariant:{$value:"#d9d9d9",$type:"color"},container:{$value:"#292929",$type:"color"},onContainer:{$value:"#f4f3ed",$type:"color"},outline:{$value:"#3d3d3d",$type:"color"},outlineVariant:{$value:"#292929",$type:"color"},onPrimary:{$value:"#292929",$type:"color"},primaryContainer:{$value:"#3d3d3d",$type:"color"},onPrimaryContainer:{$value:"#f4f3ed",$type:"color"},onError:{$value:"#3d130d",$type:"color"},errorContainer:{$value:"#702419",$type:"color"},onErrorContainer:{$value:"#ffc2ba",$type:"color"},tertiary:{$value:"#3da85b",$type:"color"},onTertiary:{$value:"#0d2918",$type:"color"},tertiaryContainer:{$value:"#174f2a",$type:"color"},onTertiaryContainer:{$value:"#cdead3",$type:"color"}},font:sa.font,spacing:sa.spacing,shape:sa.shape,motion:sa.motion,canvas:{mode:{$value:"none",$type:"string"},speed:{$value:1,$type:"number"},colors:{$value:[],$type:"array"},background:{$value:"#1a1a1a",$type:"color"}},accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$type:"color",$value:"#f4f3ed"}}},zIndex:ft},iA={light:WJ,dark:KJ}});var la,JJ,YJ,sA,lA=x(()=>{"use strict";aa();la={font:{family:{sans:{$value:'"Orbitron", "Rajdhani", system-ui, sans-serif',$type:"fontFamily"},mono:{$value:'"Share Tech Mono", "Fira Code", monospace',$type:"fontFamily"}},size:{sm:{$value:"0.8rem",$type:"dimension"},base:{$value:"0.95rem",$type:"dimension"},lg:{$value:"1.1rem",$type:"dimension"},xl:{$value:"1.3rem",$type:"dimension"},"2xl":{$value:"1.6rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"700",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.2",$type:"number"},normal:{$value:"1.5",$type:"number"},relaxed:{$value:"1.7",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"2px",$type:"dimension"},md:{$value:"4px",$type:"dimension"},lg:{$value:"6px",$type:"dimension"},xl:{$value:"8px",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"0 0 4px rgba(6, 182, 212, 0.3)",$type:"shadow"},md:{$value:"0 0 8px rgba(6, 182, 212, 0.4)",$type:"shadow"},lg:{$value:"0 0 16px rgba(6, 182, 212, 0.5)",$type:"shadow"},xl:{$value:"0 0 24px rgba(6, 182, 212, 0.6), 0 0 48px rgba(6, 182, 212, 0.2)",$type:"shadow"}}},motion:{duration:{fast:{$value:"100ms",$type:"duration"},normal:{$value:"200ms",$type:"duration"},slow:{$value:"600ms",$type:"duration"},ambient:{$value:"2000ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.4, 0, 0.2, 1)",$type:"cubicBezier"},bounce:{$value:"cubic-bezier(0.68, -0.55, 0.27, 1.55)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.22, 1, 0.36, 1)",$type:"cubicBezier"}},keyframes:{"glitch-flicker":{$value:"0%{opacity:1;transform:none}7%{opacity:0.8;transform:translateX(-2px) skewX(-1deg)}10%{opacity:1;transform:none}47%{opacity:1;transform:none}50%{opacity:0.6;transform:translateX(3px) skewX(2deg)}53%{opacity:1;transform:none}100%{opacity:1;transform:none}",$type:"keyframes"},"scan-line":{$value:"0%{transform:translateY(-100%)}100%{transform:translateY(100%)}",$type:"keyframes"},"neon-pulse":{$value:"0%{box-shadow:0 0 4px rgba(6,182,212,0.4)}50%{box-shadow:0 0 16px rgba(6,182,212,0.8)}100%{box-shadow:0 0 4px rgba(6,182,212,0.4)}",$type:"keyframes"}},transition:{fast:{$type:"transition",$value:"100ms cubic-bezier(0.4, 0, 0.2, 1)"},normal:{$type:"transition",$value:"200ms cubic-bezier(0.4, 0, 0.2, 1)"},slow:{$type:"transition",$value:"600ms cubic-bezier(0.4, 0, 0.2, 1)"},colors:{$type:"transition",$value:"color 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1)"},opacity:{$type:"transition",$value:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"},transform:{$type:"transition",$value:"transform 200ms cubic-bezier(0, 0, 0.2, 1)"}}}},JJ={$name:"Cyberpunk",$description:"Neon-lit dystopian tech \u2014 cyan neon on dark chrome with glitch animations and constellation canvas.",$metadata:{font:"Orbitron",fontUrl:"https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap",philosophy:"Chromatic noise, electric tension, digital rebellion."},color:{primary:{50:{$value:"#ecfeff",$type:"color"},100:{$value:"#cffafe",$type:"color"},200:{$value:"#a5f3fc",$type:"color"},300:{$value:"#67e8f9",$type:"color"},400:{$value:"#22d3ee",$type:"color"},500:{$value:"#06b6d4",$type:"color"},600:{$value:"#0891b2",$type:"color"},700:{$value:"#0e7490",$type:"color"},800:{$value:"#155e75",$type:"color"},900:{$value:"#164e63",$type:"color"}},neutral:{50:{$value:"#0a0a0f",$type:"color"},100:{$value:"#111118",$type:"color"},200:{$value:"#1a1a24",$type:"color"},300:{$value:"#25252f",$type:"color"},400:{$value:"#3a3a48",$type:"color"},500:{$value:"#55556a",$type:"color"},600:{$value:"#8888a0",$type:"color"},700:{$value:"#aaaabe",$type:"color"},800:{$value:"#d0d0e0",$type:"color"},900:{$value:"#e8e8f0",$type:"color"}},success:{50:{$value:"#e0fff1",$type:"color"},100:{$value:"#b3ffd9",$type:"color"},200:{$value:"#66ffb3",$type:"color"},500:{$value:"#00ff88",$type:"color"},600:{$value:"#00cc6e",$type:"color"},700:{$value:"#009955",$type:"color"},800:{$value:"#006638",$type:"color"}},warning:{50:{$value:"#fff5e0",$type:"color"},100:{$value:"#ffe5b3",$type:"color"},200:{$value:"#ffcc66",$type:"color"},500:{$value:"#ffaa00",$type:"color"},600:{$value:"#cc8800",$type:"color"},700:{$value:"#996600",$type:"color"},800:{$value:"#664400",$type:"color"}},error:{50:{$value:"#ffe0e8",$type:"color"},100:{$value:"#ffb3c4",$type:"color"},200:{$value:"#ff6688",$type:"color"},500:{$value:"#ff2255",$type:"color"},600:{$value:"#cc1a44",$type:"color"},700:{$value:"#991333",$type:"color"},800:{$value:"#660d22",$type:"color"}},info:{50:{$value:"#e0f9ff",$type:"color"},100:{$value:"#b3edff",$type:"color"},200:{$value:"#66dbff",$type:"color"},500:{$value:"#00ccff",$type:"color"},600:{$value:"#00a3cc",$type:"color"},700:{$value:"#007a99",$type:"color"},800:{$value:"#005266",$type:"color"}},surface:{$value:"#0a0a0f",$type:"color"},onSurface:{$value:"#e8e8f0",$type:"color"},surfaceVariant:{$value:"#111118",$type:"color"},onSurfaceVariant:{$value:"#8888a0",$type:"color"},container:{$value:"#155e75",$type:"color"},onContainer:{$value:"#cffafe",$type:"color"},outline:{$value:"#3a3a48",$type:"color"},outlineVariant:{$value:"#25252f",$type:"color"},onPrimary:{$value:"#0a0a0f",$type:"color"},primaryContainer:{$value:"#155e75",$type:"color"},onPrimaryContainer:{$value:"#cffafe",$type:"color"},onError:{$value:"#0a0a0f",$type:"color"},errorContainer:{$value:"#660d22",$type:"color"},onErrorContainer:{$value:"#ffe0e8",$type:"color"},tertiary:{$value:"#00ff88",$type:"color"},onTertiary:{$value:"#0a0a0f",$type:"color"},tertiaryContainer:{$value:"#006638",$type:"color"},onTertiaryContainer:{$value:"#e0fff1",$type:"color"}},font:la.font,spacing:la.spacing,shape:la.shape,motion:la.motion,accessibility:{...he.light,focusRing:{...he.light.focusRing,color:{$type:"color",$value:"#06b6d4"}}},zIndex:ft,canvas:{mode:{$value:"constellation",$type:"string"},speed:{$value:1.2,$type:"number"},colors:{$value:["rgba(6, 182, 212, 0.25)","rgba(0, 255, 136, 0.12)","rgba(255, 34, 85, 0.08)"],$type:"array"},background:{$value:"#05050a",$type:"color"}}},YJ={$name:"Cyberpunk",$description:"Neon-lit dystopian tech (dark) \u2014 brighter cyan on pure-black chrome, cranked neon contrast.",$metadata:{font:"Orbitron",fontUrl:"https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&display=swap",philosophy:"Chromatic noise, electric tension, digital rebellion."},color:{primary:{50:{$value:"#164e63",$type:"color"},100:{$value:"#155e75",$type:"color"},200:{$value:"#0e7490",$type:"color"},300:{$value:"#0891b2",$type:"color"},400:{$value:"#06b6d4",$type:"color"},500:{$value:"#22d3ee",$type:"color"},600:{$value:"#67e8f9",$type:"color"},700:{$value:"#a5f3fc",$type:"color"},800:{$value:"#cffafe",$type:"color"},900:{$value:"#ecfeff",$type:"color"}},neutral:{50:{$value:"#000005",$type:"color"},100:{$value:"#0a0a0f",$type:"color"},200:{$value:"#111118",$type:"color"},300:{$value:"#1a1a24",$type:"color"},400:{$value:"#3a3a48",$type:"color"},500:{$value:"#55556a",$type:"color"},600:{$value:"#8888a0",$type:"color"},700:{$value:"#aaaabe",$type:"color"},800:{$value:"#d0d0e0",$type:"color"},900:{$value:"#e8e8f0",$type:"color"}},success:{50:{$value:"#003319",$type:"color"},100:{$value:"#006633",$type:"color"},200:{$value:"#00994d",$type:"color"},500:{$value:"#33ffaa",$type:"color"},600:{$value:"#66ffbf",$type:"color"},700:{$value:"#99ffd4",$type:"color"},800:{$value:"#ccffea",$type:"color"}},warning:{50:{$value:"#332200",$type:"color"},100:{$value:"#664400",$type:"color"},200:{$value:"#996600",$type:"color"},500:{$value:"#ffbe33",$type:"color"},600:{$value:"#ffcb5c",$type:"color"},700:{$value:"#ffd985",$type:"color"},800:{$value:"#ffe7ad",$type:"color"}},error:{50:{$value:"#330a17",$type:"color"},100:{$value:"#66142e",$type:"color"},200:{$value:"#991e45",$type:"color"},500:{$value:"#ff4477",$type:"color"},600:{$value:"#ff6e94",$type:"color"},700:{$value:"#ff97b1",$type:"color"},800:{$value:"#ffc1cf",$type:"color"}},info:{50:{$value:"#002b33",$type:"color"},100:{$value:"#005566",$type:"color"},200:{$value:"#008099",$type:"color"},500:{$value:"#33d6ff",$type:"color"},600:{$value:"#5cdeff",$type:"color"},700:{$value:"#85e6ff",$type:"color"},800:{$value:"#adeeff",$type:"color"}},surface:{$value:"#000005",$type:"color"},onSurface:{$value:"#e8e8f0",$type:"color"},surfaceVariant:{$value:"#0a0a0f",$type:"color"},onSurfaceVariant:{$value:"#aaaabe",$type:"color"},container:{$value:"#0e7490",$type:"color"},onContainer:{$value:"#cffafe",$type:"color"},outline:{$value:"#1a1a24",$type:"color"},outlineVariant:{$value:"#111118",$type:"color"},onPrimary:{$value:"#000005",$type:"color"},primaryContainer:{$value:"#0e7490",$type:"color"},onPrimaryContainer:{$value:"#cffafe",$type:"color"},onError:{$value:"#000005",$type:"color"},errorContainer:{$value:"#991e45",$type:"color"},onErrorContainer:{$value:"#ffc1cf",$type:"color"},tertiary:{$value:"#33ffaa",$type:"color"},onTertiary:{$value:"#000005",$type:"color"},tertiaryContainer:{$value:"#006633",$type:"color"},onTertiaryContainer:{$value:"#ccffea",$type:"color"}},font:la.font,spacing:la.spacing,shape:la.shape,motion:la.motion,accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$type:"color",$value:"#22d3ee"}}},zIndex:ft,canvas:{mode:{$value:"constellation",$type:"string"},speed:{$value:1.2,$type:"number"},colors:{$value:["rgba(34, 211, 238, 0.32)","rgba(0, 255, 136, 0.16)","rgba(255, 34, 85, 0.10)"],$type:"array"},background:{$value:"#000005",$type:"color"}}},sA={light:JJ,dark:YJ}});var ua,XJ,QJ,uA,cA=x(()=>{"use strict";aa();ua={font:{family:{sans:{$value:'"Noto Serif JP", "Georgia", serif',$type:"fontFamily"},mono:{$value:'"Noto Sans Mono", "Courier New", monospace',$type:"fontFamily"}},size:{sm:{$value:"0.875rem",$type:"dimension"},base:{$value:"1rem",$type:"dimension"},lg:{$value:"1.125rem",$type:"dimension"},xl:{$value:"1.3rem",$type:"dimension"},"2xl":{$value:"1.6rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"700",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.3",$type:"number"},normal:{$value:"1.6",$type:"number"},relaxed:{$value:"1.9",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"0.125rem",$type:"dimension"},md:{$value:"0.25rem",$type:"dimension"},lg:{$value:"0.5rem",$type:"dimension"},xl:{$value:"0.75rem",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"0 1px 3px rgba(42, 39, 36, 0.06)",$type:"shadow"},md:{$value:"0 3px 8px rgba(42, 39, 36, 0.08)",$type:"shadow"},lg:{$value:"0 8px 20px rgba(42, 39, 36, 0.10)",$type:"shadow"},xl:{$value:"0 16px 40px rgba(42, 39, 36, 0.12)",$type:"shadow"}}},motion:{duration:{fast:{$value:"200ms",$type:"duration"},normal:{$value:"500ms",$type:"duration"},slow:{$value:"1500ms",$type:"duration"},ambient:{$value:"6000ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.33, 0, 0.67, 1)",$type:"cubicBezier"},bounce:{$value:"cubic-bezier(0.34, 1.2, 0.64, 1)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.22, 1, 0.36, 1)",$type:"cubicBezier"}},keyframes:{"slow-breathe":{$value:"0%{opacity:0.85}50%{opacity:1}100%{opacity:0.85}",$type:"keyframes"},"gentle-fade":{$value:"0%{opacity:0}100%{opacity:1}",$type:"keyframes"},"ink-ripple":{$value:"0%{transform:scale(0.95);opacity:0.5}50%{transform:scale(1);opacity:0.8}100%{transform:scale(0.95);opacity:0.5}",$type:"keyframes"}},transition:{fast:{$type:"transition",$value:"200ms cubic-bezier(0.33, 0, 0.67, 1)"},normal:{$type:"transition",$value:"500ms cubic-bezier(0.33, 0, 0.67, 1)"},slow:{$type:"transition",$value:"1500ms cubic-bezier(0.33, 0, 0.67, 1)"},colors:{$type:"transition",$value:"color 500ms cubic-bezier(0.33, 0, 0.67, 1), background-color 500ms cubic-bezier(0.33, 0, 0.67, 1), border-color 500ms cubic-bezier(0.33, 0, 0.67, 1)"},opacity:{$type:"transition",$value:"opacity 500ms cubic-bezier(0.33, 0, 0.67, 1)"},transform:{$type:"transition",$value:"transform 500ms cubic-bezier(0.22, 1, 0.36, 1)"}}}},XJ={$name:"Zen",$description:"Minimalist Japanese aesthetic \u2014 warm stone tones, deliberate space, and unhurried motion.",$metadata:{font:"Noto Serif JP",fontUrl:"https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&display=swap",philosophy:"Beauty in imperfection. Stillness as presence."},color:{primary:{50:{$value:"#f6f7f4",$type:"color"},100:{$value:"#e8ebe2",$type:"color"},200:{$value:"#d1d7c5",$type:"color"},300:{$value:"#b3bda1",$type:"color"},400:{$value:"#93a17c",$type:"color"},500:{$value:"#748660",$type:"color"},600:{$value:"#5c6b4c",$type:"color"},700:{$value:"#48543d",$type:"color"},800:{$value:"#3b4434",$type:"color"},900:{$value:"#33392e",$type:"color"}},neutral:{50:{$value:"#faf9f7",$type:"color"},100:{$value:"#f3f1ed",$type:"color"},200:{$value:"#e7e4de",$type:"color"},300:{$value:"#d5d0c8",$type:"color"},400:{$value:"#b8b0a4",$type:"color"},500:{$value:"#9a9084",$type:"color"},600:{$value:"#7a7068",$type:"color"},700:{$value:"#5e5650",$type:"color"},800:{$value:"#3e3a36",$type:"color"},900:{$value:"#2a2724",$type:"color"}},success:{50:{$type:"color",$value:"#f0f4ee"},100:{$type:"color",$value:"#dde6d8"},200:{$type:"color",$value:"#c6d4be"},500:{$type:"color",$value:"#6b8f5e"},600:{$type:"color",$value:"#58754d"},700:{$type:"color",$value:"#43583a"},800:{$type:"color",$value:"#2f3e29"}},warning:{50:{$type:"color",$value:"#faf6ea"},100:{$type:"color",$value:"#f4ebcb"},200:{$type:"color",$value:"#ecdda4"},500:{$type:"color",$value:"#c9a84c"},600:{$type:"color",$value:"#a88a3a"},700:{$type:"color",$value:"#7e672c"},800:{$type:"color",$value:"#59481f"}},error:{50:{$type:"color",$value:"#f8edec"},100:{$type:"color",$value:"#efd0ce"},200:{$type:"color",$value:"#e3aba8"},500:{$type:"color",$value:"#b85450"},600:{$type:"color",$value:"#9a4340"},700:{$type:"color",$value:"#743330"},800:{$type:"color",$value:"#522423"}},info:{50:{$type:"color",$value:"#eef3f5"},100:{$type:"color",$value:"#d7e2e7"},200:{$type:"color",$value:"#b9cdd5"},500:{$type:"color",$value:"#6a8fa0"},600:{$type:"color",$value:"#557585"},700:{$type:"color",$value:"#405864"},800:{$type:"color",$value:"#2c3d46"}},surface:{$value:"#faf9f7",$type:"color"},onSurface:{$value:"#2a2724",$type:"color"},surfaceVariant:{$value:"#f3f1ed",$type:"color"},onSurfaceVariant:{$value:"#6b635b",$type:"color"},container:{$value:"#e8ebe2",$type:"color"},onContainer:{$value:"#33392e",$type:"color"},outline:{$value:"#d5d0c8",$type:"color"},outlineVariant:{$value:"#e7e4de",$type:"color"},onPrimary:{$value:"#faf9f7",$type:"color"},primaryContainer:{$value:"#e8ebe2",$type:"color"},onPrimaryContainer:{$value:"#33392e",$type:"color"},onError:{$value:"#faf9f7",$type:"color"},errorContainer:{$value:"#f8edec",$type:"color"},onErrorContainer:{$value:"#522423",$type:"color"},tertiary:{$value:"#7d5e6e",$type:"color"},onTertiary:{$value:"#faf9f7",$type:"color"},tertiaryContainer:{$value:"#ebe2e6",$type:"color"},onTertiaryContainer:{$value:"#3a2a32",$type:"color"}},font:ua.font,spacing:ua.spacing,shape:ua.shape,motion:ua.motion,canvas:{mode:{$value:"mesh",$type:"string"},speed:{$value:.3,$type:"number"},colors:{$value:["rgba(92, 107, 76, 0.08)","rgba(185, 176, 164, 0.06)","rgba(213, 208, 200, 0.05)"],$type:"array"},background:{$value:"#1a1816",$type:"color"}},accessibility:{...he.light,focusRing:{...he.light.focusRing,color:{$type:"color",$value:"#748660"}}},zIndex:ft},QJ={$name:"Zen",$description:"Minimalist Japanese aesthetic (dark) \u2014 dusk stone surfaces with restrained moss accents and unhurried motion.",$metadata:{font:"Noto Serif JP",fontUrl:"https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;600;700&display=swap",philosophy:"Beauty in imperfection. Stillness as presence."},color:{primary:{50:{$value:"#33392e",$type:"color"},100:{$value:"#3b4434",$type:"color"},200:{$value:"#48543d",$type:"color"},300:{$value:"#5c6b4c",$type:"color"},400:{$value:"#748660",$type:"color"},500:{$value:"#93a17c",$type:"color"},600:{$value:"#b3bda1",$type:"color"},700:{$value:"#d1d7c5",$type:"color"},800:{$value:"#e8ebe2",$type:"color"},900:{$value:"#f6f7f4",$type:"color"}},neutral:{50:{$value:"#1a1816",$type:"color"},100:{$value:"#2a2724",$type:"color"},200:{$value:"#3e3a36",$type:"color"},300:{$value:"#5e5650",$type:"color"},400:{$value:"#7a7068",$type:"color"},500:{$value:"#9a9084",$type:"color"},600:{$value:"#b8b0a4",$type:"color"},700:{$value:"#d5d0c8",$type:"color"},800:{$value:"#e7e4de",$type:"color"},900:{$value:"#faf9f7",$type:"color"}},success:{50:{$type:"color",$value:"#f1f6ee"},100:{$type:"color",$value:"#dceacc"},200:{$type:"color",$value:"#c4dab1"},500:{$type:"color",$value:"#8aab7a"},600:{$type:"color",$value:"#6f8d62"},700:{$type:"color",$value:"#546b4a"},800:{$type:"color",$value:"#3a4b34"}},warning:{50:{$type:"color",$value:"#fbf6e9"},100:{$type:"color",$value:"#f4e9c1"},200:{$type:"color",$value:"#ecdda4"},500:{$type:"color",$value:"#d8b96a"},600:{$type:"color",$value:"#b09553"},700:{$type:"color",$value:"#84703d"},800:{$type:"color",$value:"#5a4c2a"}},error:{50:{$type:"color",$value:"#faeae9"},100:{$type:"color",$value:"#f1cac8"},200:{$type:"color",$value:"#e4a5a1"},500:{$type:"color",$value:"#cf6f6a"},600:{$type:"color",$value:"#a85753"},700:{$type:"color",$value:"#7d403c"},800:{$type:"color",$value:"#552a27"}},info:{50:{$type:"color",$value:"#f0f4f6"},100:{$type:"color",$value:"#d7e0e5"},200:{$type:"color",$value:"#bccbd2"},500:{$type:"color",$value:"#8eaab8"},600:{$type:"color",$value:"#708995"},700:{$type:"color",$value:"#546771"},800:{$type:"color",$value:"#38454d"}},surface:{$value:"#2a2724",$type:"color"},onSurface:{$value:"#f3f1ed",$type:"color"},surfaceVariant:{$value:"#3e3a36",$type:"color"},onSurfaceVariant:{$value:"#b8b0a4",$type:"color"},container:{$value:"#48543d",$type:"color"},onContainer:{$value:"#e8ebe2",$type:"color"},outline:{$value:"#5e5650",$type:"color"},outlineVariant:{$value:"#3e3a36",$type:"color"},onPrimary:{$value:"#1a1816",$type:"color"},primaryContainer:{$value:"#3b4434",$type:"color"},onPrimaryContainer:{$value:"#e8ebe2",$type:"color"},onError:{$value:"#1a1816",$type:"color"},errorContainer:{$value:"#552a27",$type:"color"},onErrorContainer:{$value:"#f1cac8",$type:"color"},tertiary:{$value:"#a98899",$type:"color"},onTertiary:{$value:"#1a1816",$type:"color"},tertiaryContainer:{$value:"#4e3a44",$type:"color"},onTertiaryContainer:{$value:"#ebe2e6",$type:"color"}},font:ua.font,spacing:ua.spacing,shape:ua.shape,motion:ua.motion,canvas:{mode:{$value:"mesh",$type:"string"},speed:{$value:.3,$type:"number"},colors:{$value:["rgba(147, 161, 124, 0.10)","rgba(185, 176, 164, 0.07)","rgba(213, 208, 200, 0.05)"],$type:"array"},background:{$value:"#1a1816",$type:"color"}},accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$type:"color",$value:"#93a17c"}}},zIndex:ft},uA={light:XJ,dark:QJ}});var ca,eY,tY,pA,dA=x(()=>{"use strict";aa();ca={font:{family:{sans:{$value:'"Outfit", system-ui, -apple-system, sans-serif',$type:"fontFamily"},mono:{$value:'"Fira Code", "JetBrains Mono", monospace',$type:"fontFamily"}},size:{sm:{$value:"0.875rem",$type:"dimension"},base:{$value:"1rem",$type:"dimension"},lg:{$value:"1.125rem",$type:"dimension"},xl:{$value:"1.25rem",$type:"dimension"},"2xl":{$value:"1.5rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"700",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.25",$type:"number"},normal:{$value:"1.5",$type:"number"},relaxed:{$value:"1.75",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"0.25rem",$type:"dimension"},md:{$value:"0.5rem",$type:"dimension"},lg:{$value:"0.75rem",$type:"dimension"},xl:{$value:"1rem",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"0 0 6px rgba(236, 72, 153, 0.25)",$type:"shadow"},md:{$value:"0 0 12px rgba(236, 72, 153, 0.35)",$type:"shadow"},lg:{$value:"0 0 20px rgba(236, 72, 153, 0.45)",$type:"shadow"},xl:{$value:"0 0 30px rgba(236, 72, 153, 0.55), 0 0 60px rgba(236, 72, 153, 0.2)",$type:"shadow"}}},motion:{duration:{fast:{$value:"120ms",$type:"duration"},normal:{$value:"250ms",$type:"duration"},slow:{$value:"800ms",$type:"duration"},ambient:{$value:"2500ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.4, 0, 0.2, 1)",$type:"cubicBezier"},bounce:{$value:"cubic-bezier(0.68, -0.55, 0.27, 1.55)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.22, 1, 0.36, 1)",$type:"cubicBezier"}},transition:{fast:{$value:"120ms cubic-bezier(0.4, 0, 0.2, 1)",$type:"transition"},normal:{$value:"250ms cubic-bezier(0.4, 0, 0.2, 1)",$type:"transition"},slow:{$value:"800ms cubic-bezier(0.4, 0, 0.2, 1)",$type:"transition"},colors:{$value:"color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1)",$type:"transition"},opacity:{$value:"opacity 250ms cubic-bezier(0.4, 0, 0.2, 1)",$type:"transition"},transform:{$value:"transform 250ms cubic-bezier(0.22, 1, 0.36, 1)",$type:"transition"}},keyframes:{"neon-flicker":{$value:"0%{opacity:1}4%{opacity:0.7}8%{opacity:1}12%{opacity:0.85}16%{opacity:1}100%{opacity:1}",$type:"keyframes"},"glow-pulse":{$value:"0%{box-shadow:0 0 8px rgba(236,72,153,0.4)}50%{box-shadow:0 0 24px rgba(236,72,153,0.8)}100%{box-shadow:0 0 8px rgba(236,72,153,0.4)}",$type:"keyframes"},"electric-arc":{$value:"0%{clip-path:inset(0 100% 0 0)}50%{clip-path:inset(0 0 0 0)}100%{clip-path:inset(0 0 0 100%)}",$type:"keyframes"}}}},eY={$name:"Neon Noir",$description:"Hot pink neon on dark \u2014 electric glow effects, neon flicker, and flowing magenta particles.",$metadata:{font:"Outfit",fontUrl:"https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap",philosophy:"Midnight electricity. The city never sleeps."},color:{primary:{50:{$value:"#fdf2f8",$type:"color"},100:{$value:"#fce7f3",$type:"color"},200:{$value:"#fbcfe8",$type:"color"},300:{$value:"#f9a8d4",$type:"color"},400:{$value:"#f472b6",$type:"color"},500:{$value:"#ec4899",$type:"color"},600:{$value:"#db2777",$type:"color"},700:{$value:"#be185d",$type:"color"},800:{$value:"#9d174d",$type:"color"},900:{$value:"#831843",$type:"color"}},neutral:{50:{$value:"#09090b",$type:"color"},100:{$value:"#111114",$type:"color"},200:{$value:"#19191e",$type:"color"},300:{$value:"#232329",$type:"color"},400:{$value:"#3b3b44",$type:"color"},500:{$value:"#5a5a68",$type:"color"},600:{$value:"#8a8a9a",$type:"color"},700:{$value:"#b0b0be",$type:"color"},800:{$value:"#d4d4de",$type:"color"},900:{$value:"#ececf0",$type:"color"}},success:{...Ut.dark.success,500:{$value:"#34d399",$type:"color"}},warning:{...Ut.dark.warning,500:{$value:"#fbbf24",$type:"color"}},error:{...Ut.dark.error,500:{$value:"#f87171",$type:"color"}},info:{...Ut.dark.info,500:{$value:"#38bdf8",$type:"color"}},surface:{$value:"#09090b",$type:"color"},onSurface:{$value:"#ececf0",$type:"color"},surfaceVariant:{$value:"#111114",$type:"color"},onSurfaceVariant:{$value:"#8a8a9a",$type:"color"},container:{$value:"#9d174d",$type:"color"},onContainer:{$value:"#fce7f3",$type:"color"},outline:{$value:"#3b3b44",$type:"color"},outlineVariant:{$value:"#232329",$type:"color"},onPrimary:{$value:"#09090b",$type:"color"},primaryContainer:{$value:"#9d174d",$type:"color"},onPrimaryContainer:{$value:"#fce7f3",$type:"color"},onError:{$value:"#09090b",$type:"color"},errorContainer:{$value:"#7f1d1d",$type:"color"},onErrorContainer:{$value:"#fecaca",$type:"color"},tertiary:{$value:"#a855f7",$type:"color"},onTertiary:{$value:"#09090b",$type:"color"},tertiaryContainer:{$value:"#6b21a8",$type:"color"},onTertiaryContainer:{$value:"#f3e8ff",$type:"color"}},font:ca.font,spacing:ca.spacing,shape:ca.shape,motion:ca.motion,canvas:{mode:{$value:"flow",$type:"string"},speed:{$value:.8,$type:"number"},colors:{$value:["rgba(236, 72, 153, 0.18)","rgba(219, 39, 119, 0.12)","rgba(190, 24, 93, 0.08)"],$type:"array"},background:{$value:"#06060a",$type:"color"}},accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$value:"#ec4899",$type:"color"}}},zIndex:ft},tY={$name:"Neon Noir",$description:"Hot pink neon on pure black (dark) \u2014 sharper noir contrast, brighter electric glow, deeper magenta containers.",$metadata:{font:"Outfit",fontUrl:"https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap",philosophy:"Midnight electricity. The city never sleeps."},color:{primary:{50:{$value:"#831843",$type:"color"},100:{$value:"#9d174d",$type:"color"},200:{$value:"#be185d",$type:"color"},300:{$value:"#db2777",$type:"color"},400:{$value:"#ec4899",$type:"color"},500:{$value:"#f472b6",$type:"color"},600:{$value:"#f9a8d4",$type:"color"},700:{$value:"#fbcfe8",$type:"color"},800:{$value:"#fce7f3",$type:"color"},900:{$value:"#fdf2f8",$type:"color"}},neutral:{50:{$value:"#000000",$type:"color"},100:{$value:"#09090b",$type:"color"},200:{$value:"#111114",$type:"color"},300:{$value:"#19191e",$type:"color"},400:{$value:"#3b3b44",$type:"color"},500:{$value:"#5a5a68",$type:"color"},600:{$value:"#8a8a9a",$type:"color"},700:{$value:"#b0b0be",$type:"color"},800:{$value:"#d4d4de",$type:"color"},900:{$value:"#ececf0",$type:"color"}},success:{...Ut.dark.success,500:{$value:"#5ee0ad",$type:"color"}},warning:{...Ut.dark.warning,500:{$value:"#ffd24a",$type:"color"}},error:{...Ut.dark.error,500:{$value:"#ff8a8a",$type:"color"}},info:{...Ut.dark.info,500:{$value:"#5acdff",$type:"color"}},surface:{$value:"#000000",$type:"color"},onSurface:{$value:"#ececf0",$type:"color"},surfaceVariant:{$value:"#09090b",$type:"color"},onSurfaceVariant:{$value:"#b0b0be",$type:"color"},container:{$value:"#be185d",$type:"color"},onContainer:{$value:"#fce7f3",$type:"color"},outline:{$value:"#19191e",$type:"color"},outlineVariant:{$value:"#111114",$type:"color"},onPrimary:{$value:"#000000",$type:"color"},primaryContainer:{$value:"#be185d",$type:"color"},onPrimaryContainer:{$value:"#fce7f3",$type:"color"},onError:{$value:"#000000",$type:"color"},errorContainer:{$value:"#7f1d1d",$type:"color"},onErrorContainer:{$value:"#fecdd3",$type:"color"},tertiary:{$value:"#c084fc",$type:"color"},onTertiary:{$value:"#000000",$type:"color"},tertiaryContainer:{$value:"#581c87",$type:"color"},onTertiaryContainer:{$value:"#f3e8ff",$type:"color"}},font:ca.font,spacing:ca.spacing,shape:ca.shape,motion:ca.motion,canvas:{mode:{$value:"flow",$type:"string"},speed:{$value:.8,$type:"number"},colors:{$value:["rgba(244, 114, 182, 0.24)","rgba(236, 72, 153, 0.16)","rgba(190, 24, 93, 0.10)"],$type:"array"},background:{$value:"#000000",$type:"color"}},accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$value:"#f472b6",$type:"color"}}},zIndex:ft},pA={light:eY,dark:tY}});var pa,rY,nY,fA,mA=x(()=>{"use strict";aa();pa={font:{family:{sans:{$value:'"Lora", "Georgia", serif',$type:"fontFamily"},mono:{$value:'"IBM Plex Mono", "Courier New", monospace',$type:"fontFamily"}},size:{sm:{$value:"0.875rem",$type:"dimension"},base:{$value:"1rem",$type:"dimension"},lg:{$value:"1.15rem",$type:"dimension"},xl:{$value:"1.3rem",$type:"dimension"},"2xl":{$value:"1.625rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"700",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.3",$type:"number"},normal:{$value:"1.6",$type:"number"},relaxed:{$value:"1.85",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"0.375rem",$type:"dimension"},md:{$value:"0.625rem",$type:"dimension"},lg:{$value:"1rem",$type:"dimension"},xl:{$value:"1.5rem",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"0 1px 3px rgba(53, 46, 32, 0.08)",$type:"shadow"},md:{$value:"0 4px 8px rgba(53, 46, 32, 0.10)",$type:"shadow"},lg:{$value:"0 8px 20px rgba(53, 46, 32, 0.12)",$type:"shadow"},xl:{$value:"0 16px 40px rgba(53, 46, 32, 0.14)",$type:"shadow"}}},motion:{duration:{fast:{$value:"200ms",$type:"duration"},normal:{$value:"400ms",$type:"duration"},slow:{$value:"1200ms",$type:"duration"},ambient:{$value:"5000ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.4, 0, 0.2, 1)",$type:"cubicBezier"},bounce:{$value:"cubic-bezier(0.34, 1.3, 0.64, 1)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.22, 1, 0.36, 1)",$type:"cubicBezier"}},keyframes:{"leaf-float":{$value:"0%{transform:translateY(0) rotate(0deg);opacity:0.7}25%{transform:translateY(-6px) rotate(3deg)}50%{transform:translateY(-2px) rotate(-2deg);opacity:1}75%{transform:translateY(-8px) rotate(2deg)}100%{transform:translateY(0) rotate(0deg);opacity:0.7}",$type:"keyframes"},"vine-grow":{$value:"0%{transform:scaleY(0);transform-origin:bottom}100%{transform:scaleY(1);transform-origin:bottom}",$type:"keyframes"},"gentle-sway":{$value:"0%{transform:rotate(-1deg)}50%{transform:rotate(1deg)}100%{transform:rotate(-1deg)}",$type:"keyframes"}},transition:ia}},rY={$name:"Botanical",$description:"Organic greens on warm cream \u2014 leaf-float animations, vine-grow motion, and a gentle mesh canvas.",$metadata:{font:"Lora",fontUrl:"https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap",philosophy:"Rooted in nature. Growing with intention."},color:{primary:{50:{$value:"#f0fdf4",$type:"color"},100:{$value:"#dcfce7",$type:"color"},200:{$value:"#bbf7d0",$type:"color"},300:{$value:"#86efac",$type:"color"},400:{$value:"#4ade80",$type:"color"},500:{$value:"#22c55e",$type:"color"},600:{$value:"#16a34a",$type:"color"},700:{$value:"#15803d",$type:"color"},800:{$value:"#166534",$type:"color"},900:{$value:"#14532d",$type:"color"}},neutral:{50:{$value:"#fefcf8",$type:"color"},100:{$value:"#fdf8ef",$type:"color"},200:{$value:"#f8f0df",$type:"color"},300:{$value:"#f0e4c9",$type:"color"},400:{$value:"#dccba5",$type:"color"},500:{$value:"#bfaa80",$type:"color"},600:{$value:"#9a8660",$type:"color"},700:{$value:"#746448",$type:"color"},800:{$value:"#504530",$type:"color"},900:{$value:"#352e20",$type:"color"}},success:Ut.light.success,warning:Ut.light.warning,error:Ut.light.error,info:Ut.light.info,surface:{$value:"#fefcf8",$type:"color"},onSurface:{$value:"#352e20",$type:"color"},surfaceVariant:{$value:"#fdf8ef",$type:"color"},onSurfaceVariant:{$value:"#746448",$type:"color"},container:{$value:"#dcfce7",$type:"color"},onContainer:{$value:"#14532d",$type:"color"},outline:{$value:"#f0e4c9",$type:"color"},outlineVariant:{$value:"#f8f0df",$type:"color"},onPrimary:{$value:"#fefcf8",$type:"color"},primaryContainer:{$value:"#dcfce7",$type:"color"},onPrimaryContainer:{$value:"#14532d",$type:"color"},onError:{$value:"#fefcf8",$type:"color"},errorContainer:{$value:"#fee2e2",$type:"color"},onErrorContainer:{$value:"#7f1d1d",$type:"color"},tertiary:{$value:"#b45309",$type:"color"},onTertiary:{$value:"#fefcf8",$type:"color"},tertiaryContainer:{$value:"#fef3c7",$type:"color"},onTertiaryContainer:{$value:"#451a03",$type:"color"}},font:pa.font,spacing:pa.spacing,shape:pa.shape,motion:pa.motion,accessibility:{...he.light,focusRing:{...he.light.focusRing,color:{$type:"color",$value:"#16a34a"}}},zIndex:ft,canvas:{mode:{$value:"mesh",$type:"string"},speed:{$value:.4,$type:"number"},colors:{$value:["rgba(22, 163, 74, 0.10)","rgba(191, 170, 128, 0.08)","rgba(240, 228, 201, 0.06)"],$type:"array"},background:{$value:"#141210",$type:"color"}}},nY={$name:"Botanical",$description:"Forest at night (dark) \u2014 deep soil surfaces with lifted leaf-green accents and gentle organic motion.",$metadata:{font:"Lora",fontUrl:"https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap",philosophy:"Rooted in nature. Growing with intention."},color:{primary:{50:{$value:"#14532d",$type:"color"},100:{$value:"#166534",$type:"color"},200:{$value:"#15803d",$type:"color"},300:{$value:"#16a34a",$type:"color"},400:{$value:"#22c55e",$type:"color"},500:{$value:"#4ade80",$type:"color"},600:{$value:"#86efac",$type:"color"},700:{$value:"#bbf7d0",$type:"color"},800:{$value:"#dcfce7",$type:"color"},900:{$value:"#f0fdf4",$type:"color"}},neutral:{50:{$value:"#141210",$type:"color"},100:{$value:"#1f1c18",$type:"color"},200:{$value:"#352e20",$type:"color"},300:{$value:"#504530",$type:"color"},400:{$value:"#746448",$type:"color"},500:{$value:"#9a8660",$type:"color"},600:{$value:"#bfaa80",$type:"color"},700:{$value:"#dccba5",$type:"color"},800:{$value:"#f0e4c9",$type:"color"},900:{$value:"#fefcf8",$type:"color"}},success:Ut.dark.success,warning:Ut.dark.warning,error:Ut.dark.error,info:Ut.dark.info,surface:{$value:"#1f1c18",$type:"color"},onSurface:{$value:"#fefcf8",$type:"color"},surfaceVariant:{$value:"#352e20",$type:"color"},onSurfaceVariant:{$value:"#dccba5",$type:"color"},container:{$value:"#166534",$type:"color"},onContainer:{$value:"#dcfce7",$type:"color"},outline:{$value:"#504530",$type:"color"},outlineVariant:{$value:"#352e20",$type:"color"},onPrimary:{$value:"#141210",$type:"color"},primaryContainer:{$value:"#166534",$type:"color"},onPrimaryContainer:{$value:"#dcfce7",$type:"color"},onError:{$value:"#450a0a",$type:"color"},errorContainer:{$value:"#7f1d1d",$type:"color"},onErrorContainer:{$value:"#fecaca",$type:"color"},tertiary:{$value:"#fbbf24",$type:"color"},onTertiary:{$value:"#451a03",$type:"color"},tertiaryContainer:{$value:"#78350f",$type:"color"},onTertiaryContainer:{$value:"#fef3c7",$type:"color"}},font:pa.font,spacing:pa.spacing,shape:pa.shape,motion:pa.motion,accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$type:"color",$value:"#4ade80"}}},zIndex:ft,canvas:{mode:{$value:"mesh",$type:"string"},speed:{$value:.4,$type:"number"},colors:{$value:["rgba(74, 222, 128, 0.12)","rgba(191, 170, 128, 0.09)","rgba(53, 46, 32, 0.06)"],$type:"array"},background:{$value:"#0a0907",$type:"color"}}},fA={light:rY,dark:nY}});var oY,da,iY,aY,sY,gA,hA=x(()=>{"use strict";aa();oY={...ia,fast:{$type:"transition",$value:"120ms cubic-bezier(0.4, 0, 0.2, 1)"},normal:{$type:"transition",$value:"240ms cubic-bezier(0.4, 0, 0.2, 1)"},slow:{$type:"transition",$value:"480ms cubic-bezier(0.4, 0, 0.2, 1)"}},da={font:{family:{sans:{$value:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif',$type:"fontFamily"},mono:{$value:'ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',$type:"fontFamily"}},size:{sm:{$value:"0.875rem",$type:"dimension"},base:{$value:"1rem",$type:"dimension"},lg:{$value:"1.125rem",$type:"dimension"},xl:{$value:"1.25rem",$type:"dimension"},"2xl":{$value:"1.5rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"700",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.25",$type:"number"},normal:{$value:"1.55",$type:"number"},relaxed:{$value:"1.75",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"},xs:{$value:"0.25rem",$type:"dimension"},sm:{$value:"0.5rem",$type:"dimension"},md:{$value:"1rem",$type:"dimension"},lg:{$value:"1.5rem",$type:"dimension"},xl:{$value:"2rem",$type:"dimension"},"2xl":{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"0.5rem",$type:"dimension"},md:{$value:"0.75rem",$type:"dimension"},lg:{$value:"1rem",$type:"dimension"},xl:{$value:"1.5rem",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"0 1px 3px color-mix(in srgb, var(--ggui-color-primary-500) 8%, transparent)",$type:"shadow"},md:{$value:"0 1px 2px rgba(20, 20, 19, 0.04), 0 8px 16px -4px color-mix(in srgb, var(--ggui-color-primary-500) 14%, transparent)",$type:"shadow"},lg:{$value:"0 2px 4px rgba(20, 20, 19, 0.04), 0 16px 32px -8px color-mix(in srgb, var(--ggui-color-primary-500) 20%, transparent)",$type:"shadow"},xl:{$value:"0 4px 8px rgba(20, 20, 19, 0.04), 0 24px 48px -12px color-mix(in srgb, var(--ggui-color-primary-500) 26%, transparent)",$type:"shadow"}}},motion:{duration:{fast:{$value:"120ms",$type:"duration"},normal:{$value:"240ms",$type:"duration"},slow:{$value:"480ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.4, 0, 0.2, 1)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.22, 1, 0.36, 1)",$type:"cubicBezier"}},keyframes:{entrance:{$value:"0%{opacity:0;transform:translateY(4px)}100%{opacity:1;transform:none}",$type:"keyframes"}},transition:oY}},iY={50:{$value:"#fbf2ee",$type:"color"},100:{$value:"#f5dfd4",$type:"color"},200:{$value:"#ecbfa9",$type:"color"},300:{$value:"#df9d80",$type:"color"},400:{$value:"#d6896c",$type:"color"},500:{$value:"#cc785c",$type:"color"},600:{$value:"#b8694f",$type:"color"},700:{$value:"#965240",$type:"color"},800:{$value:"#723e30",$type:"color"},900:{$value:"#4d2920",$type:"color"}},aY={$name:"Claudic",$description:"Fits inside claude.ai \u2014 warm ivory surfaces, terracotta accent, calm by design.",$metadata:{font:"system",philosophy:"Quiet, papery, conversational. Built to feel native when rendered inside claude.ai."},color:{primary:{...iY},neutral:{50:{$value:"#faf9f5",$type:"color"},100:{$value:"#f5f4ee",$type:"color"},200:{$value:"#ebe9df",$type:"color"},300:{$value:"#dad8cc",$type:"color"},400:{$value:"#a8a59f",$type:"color"},500:{$value:"#7c7a76",$type:"color"},600:{$value:"#56544f",$type:"color"},700:{$value:"#3d3b39",$type:"color"},800:{$value:"#262624",$type:"color"},900:{$value:"#141413",$type:"color"}},success:{50:{$value:"#f4f7ec",$type:"color"},100:{$value:"#e3ecd0",$type:"color"},200:{$value:"#c8d8a5",$type:"color"},500:{$value:"#6b8e3d",$type:"color"},600:{$value:"#587634",$type:"color"},700:{$value:"#465c29",$type:"color"},800:{$value:"#33431e",$type:"color"}},warning:{50:{$value:"#fbf3e3",$type:"color"},100:{$value:"#f6e2bb",$type:"color"},200:{$value:"#eac786",$type:"color"},500:{$value:"#c98e2e",$type:"color"},600:{$value:"#a87725",$type:"color"},700:{$value:"#825c1d",$type:"color"},800:{$value:"#5d4214",$type:"color"}},error:{50:{$value:"#f9ebe7",$type:"color"},100:{$value:"#f1cec5",$type:"color"},200:{$value:"#e3a294",$type:"color"},500:{$value:"#bc4a3a",$type:"color"},600:{$value:"#9d3d30",$type:"color"},700:{$value:"#7a2f25",$type:"color"},800:{$value:"#57211a",$type:"color"}},info:{50:{$value:"#f1f0ee",$type:"color"},100:{$value:"#dedcd8",$type:"color"},200:{$value:"#bdbab4",$type:"color"},500:{$value:"#7c7a76",$type:"color"},600:{$value:"#65635f",$type:"color"},700:{$value:"#4d4b48",$type:"color"},800:{$value:"#363432",$type:"color"}},surface:{$value:"#faf9f5",$type:"color"},onSurface:{$value:"#141413",$type:"color"},surfaceVariant:{$value:"#f5f4ee",$type:"color"},onSurfaceVariant:{$value:"#56544f",$type:"color"},container:{$value:"#fbf2ee",$type:"color"},onContainer:{$value:"#4d2920",$type:"color"},outline:{$value:"#dad8cc",$type:"color"},outlineVariant:{$value:"#ebe9df",$type:"color"},onPrimary:{$value:"#faf9f5",$type:"color"},primaryContainer:{$value:"#fbf2ee",$type:"color"},onPrimaryContainer:{$value:"#4d2920",$type:"color"},onError:{$value:"#faf9f5",$type:"color"},errorContainer:{$value:"#f9ebe7",$type:"color"},onErrorContainer:{$value:"#57211a",$type:"color"},tertiary:{$value:"#6b8e3d",$type:"color"},onTertiary:{$value:"#faf9f5",$type:"color"},tertiaryContainer:{$value:"#f4f7ec",$type:"color"},onTertiaryContainer:{$value:"#33431e",$type:"color"}},font:da.font,spacing:da.spacing,shape:da.shape,motion:da.motion,canvas:{mode:{$value:"none",$type:"string"},speed:{$value:0,$type:"number"},colors:{$value:[],$type:"array"},background:{$value:"#faf9f5",$type:"color"}},accessibility:{...he.light,focusRing:{...he.light.focusRing,color:{$type:"color",$value:"#cc785c"}}},zIndex:ft},sY={$name:"Claudic",$description:"Fits inside claude.ai (dark) \u2014 warm charcoal surfaces, terracotta accent, calm by design.",$metadata:{font:"system",philosophy:"Quiet, papery, conversational. Built to feel native when rendered inside claude.ai."},color:{primary:{50:{$value:"#4d2920",$type:"color"},100:{$value:"#723e30",$type:"color"},200:{$value:"#965240",$type:"color"},300:{$value:"#b8694f",$type:"color"},400:{$value:"#cc785c",$type:"color"},500:{$value:"#d6896c",$type:"color"},600:{$value:"#df9d80",$type:"color"},700:{$value:"#ecbfa9",$type:"color"},800:{$value:"#f5dfd4",$type:"color"},900:{$value:"#fbf2ee",$type:"color"}},neutral:{50:{$value:"#1a1917",$type:"color"},100:{$value:"#262624",$type:"color"},200:{$value:"#2d2c2a",$type:"color"},300:{$value:"#3d3b39",$type:"color"},400:{$value:"#56544f",$type:"color"},500:{$value:"#7c7a76",$type:"color"},600:{$value:"#a8a59f",$type:"color"},700:{$value:"#dad8cc",$type:"color"},800:{$value:"#ebe9df",$type:"color"},900:{$value:"#faf9f5",$type:"color"}},success:{50:{$value:"#1c2412",$type:"color"},100:{$value:"#34461e",$type:"color"},200:{$value:"#4a6029",$type:"color"},500:{$value:"#9bb56b",$type:"color"},600:{$value:"#b1c688",$type:"color"},700:{$value:"#c8d8a5",$type:"color"},800:{$value:"#e3ecd0",$type:"color"}},warning:{50:{$value:"#2a1e0c",$type:"color"},100:{$value:"#523915",$type:"color"},200:{$value:"#7a541f",$type:"color"},500:{$value:"#dba14a",$type:"color"},600:{$value:"#e4b46e",$type:"color"},700:{$value:"#eac786",$type:"color"},800:{$value:"#f6e2bb",$type:"color"}},error:{50:{$value:"#2a1410",$type:"color"},100:{$value:"#52271f",$type:"color"},200:{$value:"#7a3a2e",$type:"color"},500:{$value:"#d56b59",$type:"color"},600:{$value:"#df8576",$type:"color"},700:{$value:"#e3a294",$type:"color"},800:{$value:"#f1cec5",$type:"color"}},info:{50:{$value:"#222220",$type:"color"},100:{$value:"#3a3936",$type:"color"},200:{$value:"#56544f",$type:"color"},500:{$value:"#a8a59f",$type:"color"},600:{$value:"#bcbab5",$type:"color"},700:{$value:"#d1cfca",$type:"color"},800:{$value:"#e6e4e0",$type:"color"}},surface:{$value:"#262624",$type:"color"},onSurface:{$value:"#faf9f5",$type:"color"},surfaceVariant:{$value:"#2d2c2a",$type:"color"},onSurfaceVariant:{$value:"#a8a59f",$type:"color"},container:{$value:"#3d3b39",$type:"color"},onContainer:{$value:"#fbf2ee",$type:"color"},outline:{$value:"#3d3b39",$type:"color"},outlineVariant:{$value:"#2d2c2a",$type:"color"},onPrimary:{$value:"#262624",$type:"color"},primaryContainer:{$value:"#723e30",$type:"color"},onPrimaryContainer:{$value:"#f5dfd4",$type:"color"},onError:{$value:"#2a1410",$type:"color"},errorContainer:{$value:"#52271f",$type:"color"},onErrorContainer:{$value:"#f1cec5",$type:"color"},tertiary:{$value:"#9bb56b",$type:"color"},onTertiary:{$value:"#1c2412",$type:"color"},tertiaryContainer:{$value:"#34461e",$type:"color"},onTertiaryContainer:{$value:"#e3ecd0",$type:"color"}},font:da.font,spacing:da.spacing,shape:da.shape,motion:da.motion,canvas:{mode:{$value:"none",$type:"string"},speed:{$value:0,$type:"number"},colors:{$value:[],$type:"array"},background:{$value:"#1a1917",$type:"color"}},accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$type:"color",$value:"#d6896c"}}},zIndex:ft},gA={light:aY,dark:sY}});var fa,lY,uY,cY,yA,vA=x(()=>{"use strict";aa();fa={font:{family:{sans:{$value:'"Inter Variable", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',$type:"fontFamily"},mono:{$value:'"JetBrains Mono", "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',$type:"fontFamily"}},size:{sm:{$value:"0.8125rem",$type:"dimension"},base:{$value:"0.9375rem",$type:"dimension"},lg:{$value:"1.0625rem",$type:"dimension"},xl:{$value:"1.3125rem",$type:"dimension"},"2xl":{$value:"1.75rem",$type:"dimension"}},weight:{normal:{$value:"400",$type:"fontWeight"},medium:{$value:"500",$type:"fontWeight"},semibold:{$value:"600",$type:"fontWeight"},bold:{$value:"680",$type:"fontWeight"}},lineHeight:{tight:{$value:"1.1",$type:"number"},normal:{$value:"1.55",$type:"number"},relaxed:{$value:"1.7",$type:"number"}}},spacing:{1:{$value:"0.25rem",$type:"dimension"},2:{$value:"0.5rem",$type:"dimension"},3:{$value:"0.75rem",$type:"dimension"},4:{$value:"1rem",$type:"dimension"},5:{$value:"1.25rem",$type:"dimension"},6:{$value:"1.5rem",$type:"dimension"},8:{$value:"2rem",$type:"dimension"},10:{$value:"2.5rem",$type:"dimension"},12:{$value:"3rem",$type:"dimension"},xs:{$value:"0.25rem",$type:"dimension"},sm:{$value:"0.5rem",$type:"dimension"},md:{$value:"1rem",$type:"dimension"},lg:{$value:"1.5rem",$type:"dimension"},xl:{$value:"2rem",$type:"dimension"},"2xl":{$value:"3rem",$type:"dimension"}},shape:{radius:{sm:{$value:"0.5rem",$type:"dimension"},md:{$value:"0.875rem",$type:"dimension"},lg:{$value:"1.125rem",$type:"dimension"},xl:{$value:"1.5rem",$type:"dimension"},full:{$value:"9999px",$type:"dimension"}},shadow:{sm:{$value:"0 1px 2px color-mix(in srgb, var(--ggui-color-primary-500) 6%, transparent)",$type:"shadow"},md:{$value:"0 1px 3px rgba(21, 19, 31, 0.06), 0 8px 24px -6px color-mix(in srgb, var(--ggui-color-primary-500) 16%, transparent)",$type:"shadow"},lg:{$value:"0 2px 6px rgba(21, 19, 31, 0.05), 0 20px 40px -10px color-mix(in srgb, var(--ggui-color-primary-500) 22%, transparent)",$type:"shadow"},xl:{$value:"0 4px 10px rgba(21, 19, 31, 0.04), 0 32px 64px -16px color-mix(in srgb, var(--ggui-color-primary-500) 28%, transparent)",$type:"shadow"}}},motion:{duration:{fast:{$value:"150ms",$type:"duration"},normal:{$value:"250ms",$type:"duration"},slow:{$value:"420ms",$type:"duration"},ambient:{$value:"8000ms",$type:"duration"}},easing:{default:{$value:"cubic-bezier(0.32, 0.72, 0, 1)",$type:"cubicBezier"},spring:{$value:"cubic-bezier(0.16, 1, 0.3, 1)",$type:"cubicBezier"}},keyframes:{entrance:{$value:"0%{opacity:0;transform:translateY(6px)}100%{opacity:1;transform:none}",$type:"keyframes"}},transition:ia}},lY={50:{$value:"#eef2ff",$type:"color"},100:{$value:"#e0e7ff",$type:"color"},200:{$value:"#c7d2fe",$type:"color"},300:{$value:"#a5b4fc",$type:"color"},400:{$value:"#818cf8",$type:"color"},500:{$value:"#4f46e5",$type:"color"},600:{$value:"#4338ca",$type:"color"},700:{$value:"#3730a3",$type:"color"},800:{$value:"#312e81",$type:"color"},900:{$value:"#1e1b4b",$type:"color"}},uY={$name:"Indigo",$description:"Flagship ggui preset \u2014 refined electric indigo on a quiet paper surface. Premium, restrained, distinctive.",$metadata:{font:"inter",philosophy:"Looks like a deliberate aesthetic choice. Linear/Arc/Vercel-grade restraint with one confident accent."},color:{primary:{...lY},neutral:{50:{$value:"#fafaf7",$type:"color"},100:{$value:"#f4f4f0",$type:"color"},200:{$value:"#e8e7e3",$type:"color"},300:{$value:"#d4d3cf",$type:"color"},400:{$value:"#9c9ba0",$type:"color"},500:{$value:"#6e6d74",$type:"color"},600:{$value:"#4a4954",$type:"color"},700:{$value:"#322f3e",$type:"color"},800:{$value:"#211f2c",$type:"color"},900:{$value:"#15131f",$type:"color"}},success:{50:{$value:"#ecfdf5",$type:"color"},100:{$value:"#d1fae5",$type:"color"},200:{$value:"#a7f3d0",$type:"color"},500:{$value:"#0e9d6e",$type:"color"},600:{$value:"#0b8259",$type:"color"},700:{$value:"#086847",$type:"color"},800:{$value:"#064e36",$type:"color"}},warning:{50:{$value:"#fff8eb",$type:"color"},100:{$value:"#fdecc8",$type:"color"},200:{$value:"#fbd897",$type:"color"},500:{$value:"#e08515",$type:"color"},600:{$value:"#b86b0e",$type:"color"},700:{$value:"#90530a",$type:"color"},800:{$value:"#6b3d07",$type:"color"}},error:{50:{$value:"#fef2f4",$type:"color"},100:{$value:"#fde2e7",$type:"color"},200:{$value:"#fbc5cf",$type:"color"},500:{$value:"#dc2845",$type:"color"},600:{$value:"#b81f38",$type:"color"},700:{$value:"#94182d",$type:"color"},800:{$value:"#701222",$type:"color"}},info:{50:{$value:"#ecfeff",$type:"color"},100:{$value:"#cffafe",$type:"color"},200:{$value:"#a5f3fc",$type:"color"},500:{$value:"#0891b2",$type:"color"},600:{$value:"#0e7490",$type:"color"},700:{$value:"#155e75",$type:"color"},800:{$value:"#164e63",$type:"color"}},surface:{$value:"#fafaf7",$type:"color"},onSurface:{$value:"#15131f",$type:"color"},surfaceVariant:{$value:"#f4f4f0",$type:"color"},onSurfaceVariant:{$value:"#4a4954",$type:"color"},container:{$value:"#eef2ff",$type:"color"},onContainer:{$value:"#1e1b4b",$type:"color"},outline:{$value:"#d4d3cf",$type:"color"},outlineVariant:{$value:"#e8e7e3",$type:"color"},onPrimary:{$value:"#fafaf7",$type:"color"},primaryContainer:{$value:"#eef2ff",$type:"color"},onPrimaryContainer:{$value:"#1e1b4b",$type:"color"},onError:{$value:"#fafaf7",$type:"color"},errorContainer:{$value:"#fde2e7",$type:"color"},onErrorContainer:{$value:"#701222",$type:"color"},tertiary:{$value:"#7c3aed",$type:"color"},onTertiary:{$value:"#fafaf7",$type:"color"},tertiaryContainer:{$value:"#ede9fe",$type:"color"},onTertiaryContainer:{$value:"#4c1d95",$type:"color"}},font:fa.font,spacing:fa.spacing,shape:fa.shape,motion:fa.motion,canvas:{mode:{$value:"mesh",$type:"string"},speed:{$value:.5,$type:"number"},colors:{$value:["#eef2ff","#fafaf7","#e0e7ff"],$type:"array"},background:{$value:"#fafaf7",$type:"color"}},accessibility:{...he.light,focusRing:{...he.light.focusRing,color:{$type:"color",$value:"#4f46e5"}}},zIndex:ft},cY={$name:"Indigo",$description:"Flagship ggui preset (dark) \u2014 refined electric indigo on rich midnight. Premium, restrained, distinctive.",$metadata:{font:"inter",philosophy:"Looks like a deliberate aesthetic choice. Linear/Arc/Vercel-grade restraint with one confident accent."},color:{primary:{50:{$value:"#1e1b4b",$type:"color"},100:{$value:"#312e81",$type:"color"},200:{$value:"#3730a3",$type:"color"},300:{$value:"#4338ca",$type:"color"},400:{$value:"#4f46e5",$type:"color"},500:{$value:"#818cf8",$type:"color"},600:{$value:"#a5b4fc",$type:"color"},700:{$value:"#c7d2fe",$type:"color"},800:{$value:"#e0e7ff",$type:"color"},900:{$value:"#eef2ff",$type:"color"}},neutral:{50:{$value:"#0c0b14",$type:"color"},100:{$value:"#15131f",$type:"color"},200:{$value:"#1d1b29",$type:"color"},300:{$value:"#2a2839",$type:"color"},400:{$value:"#3e3c50",$type:"color"},500:{$value:"#5e5c70",$type:"color"},600:{$value:"#8b8898",$type:"color"},700:{$value:"#b8b6c2",$type:"color"},800:{$value:"#dcdbe2",$type:"color"},900:{$value:"#f5f4f9",$type:"color"}},success:{50:{$value:"#022c1d",$type:"color"},100:{$value:"#064e36",$type:"color"},200:{$value:"#086847",$type:"color"},500:{$value:"#34d399",$type:"color"},600:{$value:"#6ee7b7",$type:"color"},700:{$value:"#a7f3d0",$type:"color"},800:{$value:"#d1fae5",$type:"color"}},warning:{50:{$value:"#3a2104",$type:"color"},100:{$value:"#6b3d07",$type:"color"},200:{$value:"#90530a",$type:"color"},500:{$value:"#f59e0b",$type:"color"},600:{$value:"#fbbf24",$type:"color"},700:{$value:"#fcd34d",$type:"color"},800:{$value:"#fde68a",$type:"color"}},error:{50:{$value:"#3b0a14",$type:"color"},100:{$value:"#701222",$type:"color"},200:{$value:"#94182d",$type:"color"},500:{$value:"#fb7185",$type:"color"},600:{$value:"#fda4af",$type:"color"},700:{$value:"#fecdd3",$type:"color"},800:{$value:"#ffe4e6",$type:"color"}},info:{50:{$value:"#083344",$type:"color"},100:{$value:"#164e63",$type:"color"},200:{$value:"#155e75",$type:"color"},500:{$value:"#22d3ee",$type:"color"},600:{$value:"#67e8f9",$type:"color"},700:{$value:"#a5f3fc",$type:"color"},800:{$value:"#cffafe",$type:"color"}},surface:{$value:"#15131f",$type:"color"},onSurface:{$value:"#f5f4f9",$type:"color"},surfaceVariant:{$value:"#221e35",$type:"color"},onSurfaceVariant:{$value:"#c8c6d2",$type:"color"},container:{$value:"#312e81",$type:"color"},onContainer:{$value:"#eef2ff",$type:"color"},outline:{$value:"#3e3c50",$type:"color"},outlineVariant:{$value:"#2a2839",$type:"color"},onPrimary:{$value:"#0c0b14",$type:"color"},primaryContainer:{$value:"#312e81",$type:"color"},onPrimaryContainer:{$value:"#e0e7ff",$type:"color"},onError:{$value:"#3b0a14",$type:"color"},errorContainer:{$value:"#701222",$type:"color"},onErrorContainer:{$value:"#fecdd3",$type:"color"},tertiary:{$value:"#a78bfa",$type:"color"},onTertiary:{$value:"#2e1065",$type:"color"},tertiaryContainer:{$value:"#4c1d95",$type:"color"},onTertiaryContainer:{$value:"#ede9fe",$type:"color"}},font:fa.font,spacing:fa.spacing,shape:fa.shape,motion:fa.motion,canvas:{mode:{$value:"mesh",$type:"string"},speed:{$value:.5,$type:"number"},colors:{$value:["#1e1b4b","#0c0b14","#312e81"],$type:"array"},background:{$value:"#0c0b14",$type:"color"}},accessibility:{...he.dark,focusRing:{...he.dark.focusRing,color:{$type:"color",$value:"#818cf8"}}},zIndex:ft},yA={light:uY,dark:cY}});function dY(e,t){return t==="dark"&&e.dark?"dark":"light"}function Td(e,t="light"){let r=pY.get(e);if(!r)return;let o=dY(r,t),n=`${e}:${o}`,i=$A.get(n);if(i)return i;let a=o==="dark"?r.dark:r.light,s=mS(e,a);return $A.set(n,s),s}function ku(){return"ggui"}var pY,$A,bA=x(()=>{"use strict";gh();aA();lA();cA();dA();mA();hA();vA();pY=new Map([["ggui",iA],["indigo",yA],["claudic",gA],["premium-cyberpunk",sA],["premium-zen",uA],["premium-neon-noir",pA],["premium-botanical",fA]]),$A=new Map});var Id,yS=x(()=>{"use strict";Id={$name:"Default Light",$description:"ggui default light theme \u2014 sky-blue primary, neutral foundation, WCAG-AA contrast, system font stack.",color:{primary:{50:{$type:"color",$value:"#f0f9ff"},100:{$type:"color",$value:"#e0f2fe"},200:{$type:"color",$value:"#bae6fd"},300:{$type:"color",$value:"#7dd3fc"},400:{$type:"color",$value:"#38bdf8"},500:{$type:"color",$value:"#0ea5e9"},600:{$type:"color",$value:"#0284c7"},700:{$type:"color",$value:"#0369a1"},800:{$type:"color",$value:"#075985"},900:{$type:"color",$value:"#0c4a6e"}},neutral:{50:{$type:"color",$value:"#f9fafb"},100:{$type:"color",$value:"#f3f4f6"},200:{$type:"color",$value:"#e5e7eb"},300:{$type:"color",$value:"#d1d5db"},400:{$type:"color",$value:"#9ca3af"},500:{$type:"color",$value:"#6b7280"},600:{$type:"color",$value:"#4b5563"},700:{$type:"color",$value:"#374151"},800:{$type:"color",$value:"#1f2937"},900:{$type:"color",$value:"#111827"}},info:{50:{$type:"color",$value:"#ecfeff"},100:{$type:"color",$value:"#cffafe"},200:{$type:"color",$value:"#a5f3fc"},500:{$type:"color",$value:"#06b6d4"},600:{$type:"color",$value:"#0891b2"},700:{$type:"color",$value:"#0e7490"},800:{$type:"color",$value:"#155e75"}},success:{50:{$type:"color",$value:"#f0fdf4"},100:{$type:"color",$value:"#dcfce7"},200:{$type:"color",$value:"#bbf7d0"},500:{$type:"color",$value:"#22c55e"},600:{$type:"color",$value:"#16a34a"},700:{$type:"color",$value:"#15803d"},800:{$type:"color",$value:"#166534"}},warning:{50:{$type:"color",$value:"#fffbeb"},100:{$type:"color",$value:"#fef3c7"},200:{$type:"color",$value:"#fde68a"},500:{$type:"color",$value:"#f59e0b"},600:{$type:"color",$value:"#d97706"},700:{$type:"color",$value:"#b45309"},800:{$type:"color",$value:"#92400e"}},error:{50:{$type:"color",$value:"#fef2f2"},100:{$type:"color",$value:"#fee2e2"},200:{$type:"color",$value:"#fecaca"},500:{$type:"color",$value:"#ef4444"},600:{$type:"color",$value:"#dc2626"},700:{$type:"color",$value:"#b91c1c"},800:{$type:"color",$value:"#991b1b"}},surface:{$type:"color",$value:"#ffffff"},onSurface:{$type:"color",$value:"#111827"},surfaceVariant:{$type:"color",$value:"#f3f4f6"},onSurfaceVariant:{$type:"color",$value:"#6b7280"},container:{$type:"color",$value:"#f9fafb"},onContainer:{$type:"color",$value:"#111827"},outline:{$type:"color",$value:"#9ca3af"},outlineVariant:{$type:"color",$value:"#d1d5db"},onPrimary:{$type:"color",$value:"#ffffff"},primaryContainer:{$type:"color",$value:"#e0f2fe"},onPrimaryContainer:{$type:"color",$value:"#0c4a6e"},onError:{$type:"color",$value:"#ffffff"},errorContainer:{$type:"color",$value:"#fee2e2"},onErrorContainer:{$type:"color",$value:"#991b1b"},tertiary:{$type:"color",$value:"#0d9488"},onTertiary:{$type:"color",$value:"#ffffff"},tertiaryContainer:{$type:"color",$value:"#ccfbf1"},onTertiaryContainer:{$type:"color",$value:"#134e4a"}},font:{family:{sans:{$type:"fontFamily",$value:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},mono:{$type:"fontFamily",$value:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"}},size:{xs:{$type:"dimension",$value:"12px"},sm:{$type:"dimension",$value:"14px"},base:{$type:"dimension",$value:"16px"},lg:{$type:"dimension",$value:"18px"},xl:{$type:"dimension",$value:"20px"},"2xl":{$type:"dimension",$value:"24px"},"3xl":{$type:"dimension",$value:"30px"},"4xl":{$type:"dimension",$value:"36px"}},weight:{normal:{$type:"fontWeight",$value:"400"},medium:{$type:"fontWeight",$value:"500"},semibold:{$type:"fontWeight",$value:"600"},bold:{$type:"fontWeight",$value:"700"}},lineHeight:{tight:{$type:"number",$value:"1.25"},normal:{$type:"number",$value:"1.5"},relaxed:{$type:"number",$value:"1.75"}}},spacing:{xs:{$type:"dimension",$value:"4px"},sm:{$type:"dimension",$value:"8px"},md:{$type:"dimension",$value:"16px"},lg:{$type:"dimension",$value:"24px"},xl:{$type:"dimension",$value:"32px"},"2xl":{$type:"dimension",$value:"48px"},"3xl":{$type:"dimension",$value:"64px"}},shape:{radius:{none:{$type:"dimension",$value:"0"},sm:{$type:"dimension",$value:"4px"},md:{$type:"dimension",$value:"8px"},lg:{$type:"dimension",$value:"12px"},xl:{$type:"dimension",$value:"16px"},"2xl":{$type:"dimension",$value:"24px"},full:{$type:"dimension",$value:"9999px"}},shadow:{none:{$type:"shadow",$value:"0 0 0 0 transparent"},xs:{$type:"shadow",$value:"0 1px 2px 0 rgba(15, 23, 42, 0.04)"},sm:{$type:"shadow",$value:"0 1px 3px 0 rgba(15, 23, 42, 0.06)"},md:{$type:"shadow",$value:"0 8px 16px -4px rgba(15, 23, 42, 0.10)"},lg:{$type:"shadow",$value:"0 16px 32px -8px rgba(15, 23, 42, 0.14)"},xl:{$type:"shadow",$value:"0 24px 48px -12px rgba(15, 23, 42, 0.18)"},"2xl":{$type:"shadow",$value:"0 25px 50px -12px rgba(0, 0, 0, 0.25)"}}},motion:{duration:{instant:{$type:"duration",$value:"0ms"},fast:{$type:"duration",$value:"100ms"},normal:{$type:"duration",$value:"200ms"},slow:{$type:"duration",$value:"300ms"},slower:{$type:"duration",$value:"500ms"}},easing:{default:{$type:"cubicBezier",$value:"cubic-bezier(0.4, 0, 0.2, 1)"},easeOut:{$type:"cubicBezier",$value:"cubic-bezier(0, 0, 0.2, 1)"},easeIn:{$type:"cubicBezier",$value:"cubic-bezier(0.4, 0, 1, 1)"}},transition:{fast:{$type:"transition",$value:"100ms cubic-bezier(0.4, 0, 0.2, 1)"},normal:{$type:"transition",$value:"200ms cubic-bezier(0.4, 0, 0.2, 1)"},slow:{$type:"transition",$value:"300ms cubic-bezier(0.4, 0, 0.2, 1)"},colors:{$type:"transition",$value:"color 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1)"},opacity:{$type:"transition",$value:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"},transform:{$type:"transition",$value:"transform 200ms cubic-bezier(0, 0, 0.2, 1)"}},keyframes:{}},canvas:{mode:{$type:"string",$value:"none"},speed:{$type:"number",$value:0},colors:{$type:"array",$value:[]},background:{$type:"color",$value:"#ffffff"}},accessibility:{focusRing:{color:{$type:"color",$value:"#0284c7"},width:{$type:"dimension",$value:"2px"},offset:{$type:"dimension",$value:"2px"}},reducedMotion:{duration:{$type:"duration",$value:"0ms"}},highContrast:{borderWidth:{$type:"dimension",$value:"2px"},textColor:{$type:"color",$value:"#000000"},backgroundColor:{$type:"color",$value:"#ffffff"},linkColor:{$type:"color",$value:"#0369a1"}}},zIndex:{hide:{$type:"number",$value:-1},base:{$type:"number",$value:0},docked:{$type:"number",$value:10},dropdown:{$type:"number",$value:1e3},sticky:{$type:"number",$value:1100},banner:{$type:"number",$value:1200},overlay:{$type:"number",$value:1300},modal:{$type:"number",$value:1400},popover:{$type:"number",$value:1500},skipLink:{$type:"number",$value:1600},toast:{$type:"number",$value:1700},tooltip:{$type:"number",$value:1800}}}});var vS,xA=x(()=>{"use strict";vS={$name:"Default Dark",$description:"ggui default dark theme \u2014 sky-blue primary lifted for dark, slate neutrals, WCAG-AA contrast.",color:{primary:{50:{$type:"color",$value:"#0c4a6e"},100:{$type:"color",$value:"#075985"},200:{$type:"color",$value:"#0369a1"},300:{$type:"color",$value:"#0284c7"},400:{$type:"color",$value:"#0ea5e9"},500:{$type:"color",$value:"#38bdf8"},600:{$type:"color",$value:"#7dd3fc"},700:{$type:"color",$value:"#bae6fd"},800:{$type:"color",$value:"#e0f2fe"},900:{$type:"color",$value:"#f0f9ff"}},neutral:{50:{$type:"color",$value:"#111827"},100:{$type:"color",$value:"#1f2937"},200:{$type:"color",$value:"#374151"},300:{$type:"color",$value:"#4b5563"},400:{$type:"color",$value:"#6b7280"},500:{$type:"color",$value:"#9ca3af"},600:{$type:"color",$value:"#d1d5db"},700:{$type:"color",$value:"#e5e7eb"},800:{$type:"color",$value:"#f3f4f6"},900:{$type:"color",$value:"#f9fafb"}},info:{50:{$type:"color",$value:"#083344"},100:{$type:"color",$value:"#164e63"},200:{$type:"color",$value:"#155e75"},500:{$type:"color",$value:"#06b6d4"},600:{$type:"color",$value:"#22d3ee"},700:{$type:"color",$value:"#67e8f9"},800:{$type:"color",$value:"#a5f3fc"}},success:{50:{$type:"color",$value:"#052e16"},100:{$type:"color",$value:"#14532d"},200:{$type:"color",$value:"#166534"},500:{$type:"color",$value:"#22c55e"},600:{$type:"color",$value:"#4ade80"},700:{$type:"color",$value:"#86efac"},800:{$type:"color",$value:"#bbf7d0"}},warning:{50:{$type:"color",$value:"#451a03"},100:{$type:"color",$value:"#78350f"},200:{$type:"color",$value:"#92400e"},500:{$type:"color",$value:"#f59e0b"},600:{$type:"color",$value:"#fbbf24"},700:{$type:"color",$value:"#fcd34d"},800:{$type:"color",$value:"#fde68a"}},error:{50:{$type:"color",$value:"#450a0a"},100:{$type:"color",$value:"#7f1d1d"},200:{$type:"color",$value:"#991b1b"},500:{$type:"color",$value:"#ef4444"},600:{$type:"color",$value:"#f87171"},700:{$type:"color",$value:"#fca5a5"},800:{$type:"color",$value:"#fecaca"}},surface:{$type:"color",$value:"#1e293b"},onSurface:{$type:"color",$value:"#f1f5f9"},surfaceVariant:{$type:"color",$value:"#334155"},onSurfaceVariant:{$type:"color",$value:"#94a3b8"},container:{$type:"color",$value:"#0f172a"},onContainer:{$type:"color",$value:"#f1f5f9"},outline:{$type:"color",$value:"#64748b"},outlineVariant:{$type:"color",$value:"#475569"},onPrimary:{$type:"color",$value:"#0c4a6e"},primaryContainer:{$type:"color",$value:"#075985"},onPrimaryContainer:{$type:"color",$value:"#e0f2fe"},onError:{$type:"color",$value:"#450a0a"},errorContainer:{$type:"color",$value:"#7f1d1d"},onErrorContainer:{$type:"color",$value:"#fecaca"},tertiary:{$type:"color",$value:"#2dd4bf"},onTertiary:{$type:"color",$value:"#042f2e"},tertiaryContainer:{$type:"color",$value:"#115e59"},onTertiaryContainer:{$type:"color",$value:"#ccfbf1"}},font:{family:{sans:{$type:"fontFamily",$value:'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif'},mono:{$type:"fontFamily",$value:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"}},size:{xs:{$type:"dimension",$value:"12px"},sm:{$type:"dimension",$value:"14px"},base:{$type:"dimension",$value:"16px"},lg:{$type:"dimension",$value:"18px"},xl:{$type:"dimension",$value:"20px"},"2xl":{$type:"dimension",$value:"24px"},"3xl":{$type:"dimension",$value:"30px"},"4xl":{$type:"dimension",$value:"36px"}},weight:{normal:{$type:"fontWeight",$value:"400"},medium:{$type:"fontWeight",$value:"500"},semibold:{$type:"fontWeight",$value:"600"},bold:{$type:"fontWeight",$value:"700"}},lineHeight:{tight:{$type:"number",$value:"1.25"},normal:{$type:"number",$value:"1.5"},relaxed:{$type:"number",$value:"1.75"}}},spacing:{xs:{$type:"dimension",$value:"4px"},sm:{$type:"dimension",$value:"8px"},md:{$type:"dimension",$value:"16px"},lg:{$type:"dimension",$value:"24px"},xl:{$type:"dimension",$value:"32px"},"2xl":{$type:"dimension",$value:"48px"},"3xl":{$type:"dimension",$value:"64px"}},shape:{radius:{none:{$type:"dimension",$value:"0"},sm:{$type:"dimension",$value:"4px"},md:{$type:"dimension",$value:"8px"},lg:{$type:"dimension",$value:"12px"},xl:{$type:"dimension",$value:"16px"},"2xl":{$type:"dimension",$value:"24px"},full:{$type:"dimension",$value:"9999px"}},shadow:{none:{$type:"shadow",$value:"0 0 0 0 transparent"},xs:{$type:"shadow",$value:"0 1px 2px 0 rgba(0, 0, 0, 0.20)"},sm:{$type:"shadow",$value:"0 1px 3px 0 rgba(0, 0, 0, 0.30)"},md:{$type:"shadow",$value:"0 8px 16px -4px rgba(0, 0, 0, 0.40)"},lg:{$type:"shadow",$value:"0 16px 32px -8px rgba(0, 0, 0, 0.50)"},xl:{$type:"shadow",$value:"0 24px 48px -12px rgba(0, 0, 0, 0.60)"},"2xl":{$type:"shadow",$value:"0 25px 50px -12px rgba(0, 0, 0, 0.60)"}}},motion:{duration:{instant:{$type:"duration",$value:"0ms"},fast:{$type:"duration",$value:"100ms"},normal:{$type:"duration",$value:"200ms"},slow:{$type:"duration",$value:"300ms"},slower:{$type:"duration",$value:"500ms"}},easing:{default:{$type:"cubicBezier",$value:"cubic-bezier(0.4, 0, 0.2, 1)"},easeOut:{$type:"cubicBezier",$value:"cubic-bezier(0, 0, 0.2, 1)"},easeIn:{$type:"cubicBezier",$value:"cubic-bezier(0.4, 0, 1, 1)"}},transition:{fast:{$type:"transition",$value:"100ms cubic-bezier(0.4, 0, 0.2, 1)"},normal:{$type:"transition",$value:"200ms cubic-bezier(0.4, 0, 0.2, 1)"},slow:{$type:"transition",$value:"300ms cubic-bezier(0.4, 0, 0.2, 1)"},colors:{$type:"transition",$value:"color 200ms cubic-bezier(0.4, 0, 0.2, 1), background-color 200ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms cubic-bezier(0.4, 0, 0.2, 1)"},opacity:{$type:"transition",$value:"opacity 200ms cubic-bezier(0.4, 0, 0.2, 1)"},transform:{$type:"transition",$value:"transform 200ms cubic-bezier(0, 0, 0.2, 1)"}},keyframes:{}},canvas:{mode:{$type:"string",$value:"none"},speed:{$type:"number",$value:0},colors:{$type:"array",$value:[]},background:{$type:"color",$value:"#0f172a"}},accessibility:{focusRing:{color:{$type:"color",$value:"#38bdf8"},width:{$type:"dimension",$value:"2px"},offset:{$type:"dimension",$value:"2px"}},reducedMotion:{duration:{$type:"duration",$value:"0ms"}},highContrast:{borderWidth:{$type:"dimension",$value:"2px"},textColor:{$type:"color",$value:"#f1f5f9"},backgroundColor:{$type:"color",$value:"#0f172a"},linkColor:{$type:"color",$value:"#7dd3fc"}}},zIndex:{hide:{$type:"number",$value:-1},base:{$type:"number",$value:0},docked:{$type:"number",$value:10},dropdown:{$type:"number",$value:1e3},sticky:{$type:"number",$value:1100},banner:{$type:"number",$value:1200},overlay:{$type:"number",$value:1300},modal:{$type:"number",$value:1400},popover:{$type:"number",$value:1500},skipLink:{$type:"number",$value:1600},toast:{$type:"number",$value:1700},tooltip:{$type:"number",$value:1800}}}});function $S({theme:e=Id,mode:t="light",transparent:r=!1,children:o}){let n=(0,ma.useMemo)(()=>({theme:e,cssVars:hS(e),mode:t}),[e,t]),i=(0,ma.useMemo)(()=>gS(e),[e]);return ma.default.useEffect(()=>{let a="ggui-theme-vars",s=document.getElementById(a);s||(s=document.createElement("style"),s.id=a,document.head.appendChild(s));let u=`
79
+ html, body {
80
+ margin: 0;
81
+ font-family: var(--ggui-font-family-sans, system-ui, -apple-system, sans-serif);
82
+ background: ${r?"transparent":"var(--ggui-color-surface, #ffffff)"};
83
+ color: var(--ggui-color-onSurface, #111827);
84
+ -webkit-font-smoothing: antialiased;
85
+ -moz-osx-font-smoothing: grayscale;
86
+ color-scheme: ${t};
87
+ }
88
+ code, pre, kbd, samp {
89
+ font-family: var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
90
+ }
91
+ *, *::before, *::after {
92
+ box-sizing: border-box;
93
+ }
94
+ `;return s.textContent=`${i}
95
+ ${u}`,()=>{s?.remove()}},[i,t,r]),(0,kA.jsx)(fY.Provider,{value:n,children:o})}var kA,ma,fY,_A=x(()=>{"use strict";kA=C(B(),1),ma=C(G(),1);gh();yS();fY=(0,ma.createContext)(null)});var bS=x(()=>{"use strict";gh();oA();bA();yS();xA();_A()});function xS(e="light"){return hh(ku(),e)}function kS(e,t="light"){return Ed(ku(),e,t)}function hh(e,t="light"){let r=Td(e,t);if(r)return r.css;let o=ku();if(e===o)return"";let n=Td(o,t);return n?n.css:""}function Ed(e,t,r="light"){let o=Td(e,r);if(!o){let s=ku();return e===s?"":Ed(s,t,r)}let n=o.cssVariables.replace(/^:root\s*\{/,`.${t} {`),i=`.${t} {
96
+ font-family: var(--ggui-font-family-sans);
97
+ color: var(--ggui-color-onSurface);
98
+ background-color: transparent;
99
+ }`,a=`.${t} {
100
+ --ggui-color-primary-gradient: linear-gradient(135deg, var(--ggui-color-primary-500) 0%, var(--ggui-color-primary-600) 100%);
101
+ --ggui-color-surface-gradient: linear-gradient(180deg, var(--ggui-color-surface) 0%, color-mix(in srgb, var(--ggui-color-primary-500) 4%, var(--ggui-color-surface)) 100%);
102
+ --ggui-effect-glow-primary: 0 0 0 4px color-mix(in srgb, var(--ggui-color-primary-500) 18%, transparent);
103
+ --ggui-effect-glow-primary-strong: 0 8px 24px -4px color-mix(in srgb, var(--ggui-color-primary-500) 40%, transparent), 0 0 0 1px color-mix(in srgb, var(--ggui-color-primary-500) 30%, transparent) inset;
104
+ }`;return`${n}
105
+ ${i}
106
+ ${a}
107
+ ${o.cssKeyframes}
108
+ .${t} *, .${t} *::before, .${t} *::after { box-sizing: border-box; }
109
+ .${t} h1, .${t} h2, .${t} h3, .${t} h4, .${t} h5, .${t} h6, .${t} button, .${t} input, .${t} textarea, .${t} select { font-family: inherit; }`}var SA=x(()=>{"use strict";bS()});function Jt(e,t,r){return e=e.split(`from"${t}"`).join(`from"${r}"`),e=e.split(`from "${t}"`).join(`from "${r}"`),e=e.split(`from'${t}'`).join(`from'${r}'`),e=e.split(`from '${t}'`).join(`from '${r}'`),e=e.split(`import"${t}"`).join(`import"${r}"`),e=e.split(`import "${t}"`).join(`import "${r}"`),e=e.split(`import'${t}'`).join(`import'${r}'`),e=e.split(`import '${t}'`).join(`import '${r}'`),e}function _S(e,t){return`(globalThis.__ggui__&&globalThis.__ggui__["${e}"]||window["${t}"])`}function bY(e){let t=vY.map(n=>`export const ${n} = R.${n};`).join(" "),o=`const R = ${_S("react",e)}; export default R; ${t}`;return`data:text/javascript,${encodeURIComponent(o)}`}function xY(){let r=`const D = globalThis.__ggui__["reactDom"]; export default D; ${["createPortal","flushSync","unstable_batchedUpdates"].map(o=>`export const ${o} = D.${o};`).join(" ")}`;return`data:text/javascript,${encodeURIComponent(r)}`}function kY(e){let r=[`const R = ${_S("react",e)};`,"function jsx(t,p,k){","if(k!==undefined){p={...p,key:k}}","const c=p.children;","delete p.children;","return Array.isArray(c)?R.createElement(t,p,...c):c!==undefined?R.createElement(t,p,c):R.createElement(t,p)","}","export{jsx,jsx as jsxs,jsx as jsxDEV};","export const Fragment=R.Fragment;"].join("");return`data:text/javascript,${encodeURIComponent(r)}`}function ga(e,t,r,o,n){if(r&&r.length>0){let s=[e,...o||[]],l=[t,...n||[]],u=s.map((f,m)=>`(globalThis.__ggui__&&globalThis.__ggui__["${l[m]}"]||window["${f}"]||{})`),c=u.join(","),p=r.map(f=>`export const ${f} = M["${f}"];`).join(" "),d=u.length>1?`const M = Object.assign({}, ${c}); ${p} export default M;`:`const M = ${u[0]}; ${p} export default M;`;return`data:text/javascript,${encodeURIComponent(d)}`}let a=`const M = ${_S(t,e)} || {}; const handler = { get(_, key) { return M[key]; } }; export default new Proxy({}, handler);`;return`data:text/javascript,${encodeURIComponent(a)}`}function _Y(){let t=`const w = globalThis.__ggui__.wire; ${mY.map(r=>`export const ${r} = w.${r};`).join(" ")} export default w;`;return`data:text/javascript,${encodeURIComponent(t)}`}function SY(e,t){let r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),o=new RegExp(`import\\s*(?:[A-Za-z_$][\\w$]*\\s*,\\s*)?\\{([^}]*)\\}\\s*from\\s*['"]${r}['"]`,"g"),n=new Set,i;for(;(i=o.exec(e))!==null;)for(let a of i[1].split(",")){let s=a.trim().split(/\s+as\s+/)[0]?.trim();s!==void 0&&/^[A-Za-z_$][\w$]*$/.test(s)&&n.add(s)}return[...n]}function wY(e,t){let r=JSON.stringify(e),o=t.some(i=>/^[A-Z]/.test(i)),n=[];n.push(`var P=${r};`),n.push("function NS(){return(globalThis.__ggui__&&globalThis.__ggui__.gadgets&&globalThis.__ggui__.gadgets[P])||{};}"),n.push('function H(n){return function(){var f=NS()[n];if(typeof f!=="function")throw new Error("[gadget] export "+n+" from package "+P+" is not loaded \u2014 the package failed to load at iframe boot or is not registered on App.gadgets.");return f.apply(this,arguments);};}'),o&&(n.push("var R=globalThis.__ggui__&&globalThis.__ggui__.react;"),n.push('class GEB extends R.Component{constructor(p){super(p);this.state={e:null};}static getDerivedStateFromError(e){return{e:e};}render(){if(this.state.e)return R.createElement("div",{style:{padding:"8px",border:"1px solid #e0a0c0",borderRadius:"6px",color:"#a03070",font:"13px system-ui"}},"[gadget] "+this.props.g+" failed to render");return this.props.children;}}'),n.push('function C(n){return function(props){var Cmp=NS()[n];if(typeof Cmp!=="function")return R.createElement("div",{style:{padding:"8px",border:"1px solid #e0a0c0",borderRadius:"6px",color:"#a03070",font:"13px system-ui"}},"[gadget] component "+n+" from package "+P+" is not loaded");return R.createElement(GEB,{g:n},R.createElement(Cmp,props));};}'));for(let i of t){let a=/^[A-Z]/.test(i)?"C":"H";n.push(`export const ${i}=${a}(${JSON.stringify(i)});`)}return n.push("export default new Proxy({},{get:function(_,k){return NS()[k];}});"),`data:text/javascript,${encodeURIComponent(n.join(""))}`}function TY(e,t){let r=t.reactGlobal??"__REACT",o=t.primitivesGlobal??"__GGUI_PRIMITIVES",n=t.componentsGlobal??"__GGUI_COMPONENTS",i=t.compositionsGlobal??"__GGUI_COMPOSITIONS",a=t.interactGlobal??"__GGUI_INTERACT",s=t.appComponentsGlobal??"__GGUI_APP_COMPONENTS",l=bY(r),u=kY(r);e=Jt(e,"react/jsx-runtime",u),e=Jt(e,"react/jsx-dev-runtime",u);let c=xY();e=Jt(e,"react-dom",c),e=Jt(e,"react",l);let p=[...gY,...hY,...yY,...wA];e=Jt(e,"@ggui-ai/design/primitives",ga(o,"primitives",p,[n,i,a],["components","compositions","interact"])),e=Jt(e,"@ggui-ai/design/components",ga(n,"components",p,[o,i,a],["primitives","compositions","interact"])),e=Jt(e,"@ggui-ai/design/compositions",ga(i,"compositions",p,[o,n,a],["primitives","components","interact"])),e=Jt(e,"@ggui-ai/design/interact",ga(a,"interact",[...wA])),e=Jt(e,"@ggui-ai/design/templates",ga(i,"compositions",p,[o,n],["primitives","components"])),e=Jt(e,"@ggui-ai/design/app-components",ga(s,"appComponents")),e=Jt(e,"@ggui-ai/design/tokens",ga("__GGUI_TOKENS","tokens",[...$Y])),e=Jt(e,"@ggui-ai/design",ga(o,"primitives",p,[n,i,a],["components","compositions","interact"])),e=Jt(e,"@ggui-ai/wire",_Y());let d=[...new Set(["@ggui-ai/gadgets",...t.gadgetPackages??[]])];for(let f of d){let m=SY(e,f);e=Jt(e,f,wY(f,m))}return e}function IY(e,t){let r=t.reactBaseUrl??"https://esm.sh/react@18.2.0";return e=Jt(e,"react/jsx-runtime",`${r}/jsx-runtime`),e=Jt(e,"react/jsx-dev-runtime",`${r}/jsx-runtime`),e=Jt(e,"react",r),e}function SS(e,t){switch(t.mode){case"data-url":return TY(e,t);case"importmap":return IY(e,t)}}var mY,gY,hY,yY,wA,vY,$Y,TA=x(()=>{"use strict";mY=["useAction","useStream","useAuth","useApp","useSession","useGguiContext","useContract","useWireContext","GguiWireProvider"],gY=["Container","Card","Stack","Row","Grid","Box","Divider","Spacer","Text","Heading","Button","Input","TextArea","Select","Checkbox","Toggle","RadioGroup","Slider","Badge","Spinner","Skeleton","Avatar","Alert","Progress","Image","Icon","Link","Tooltip","Table","Tabs","Toast","Accordion","MotionKeyframes","useMotion","useAnimationKey"],hY=["SearchField","FormField","MenuItem","Tag","Dropdown","Autocomplete","Breadcrumb","Pagination","EmptyState","Stat"],yY=["Header","Sidebar","CardGrid","CommentThread","DataTable","ChatWindow","NavigationBar","FileUploader","UserProfileCard","NotificationCenter","Modal","CommandPalette","Footer","Hero","IncidentTimeline","MakeTabLayout","MarketingHero","MarketingCTA","MarketingFeatures"],wA=["Clickable","Hoverable","Pressable"],vY=["useState","useEffect","useRef","useCallback","useMemo","useContext","useReducer","useId","use","useActionState","useOptimistic","useTransition","startTransition","useDeferredValue","useSyncExternalStore","useInsertionEffect","useLayoutEffect","useImperativeHandle","useDebugValue","createElement","Fragment","Children","cloneElement","createContext","forwardRef","memo","lazy","Suspense","Component","PureComponent","isValidElement","createRef"],$Y=["animation","duration","easing","transition","keyframes","thinkingAnimation","thinkingKeyframes","thinkingPresets","THINKING_DEFAULT_STYLE","motionSafe","reducedMotion","reducedMotionCSS","colors","gray","primary","semantic","chartColors","success","warning","error","info","highContrast","typography","fontFamily","fontSize","fontSizeValues","fontWeight","lineHeight","letterSpacing","headingStyles","textStyles","spacing","spacingValues","radius","shadow","elevation","maxWidth","zIndex","accessibility","focusRing","nativeTokens","tokens"]});var IA=x(()=>{"use strict";tA();SA();TA()});var CA={};ct(CA,{React:()=>Ye.default,mountReactRoot:()=>TS});function EY(){return EA+=1,`ggui-rcr-${EA}`}async function TS(e,t){e.replaceChildren();let r=(0,MA.createRoot)(e),o=EY(),n=t,i=null,a=null;async function s(c){let p=c;if(c.startsWith("https://")){let y=await fetch(c);if(!y.ok)throw new Error(`Failed to fetch component code: ${y.status}`);p=await y.text()}let d=fS(p),f=UR(d),m=SS(f,{mode:"data-url",gadgetPackages:n.gadgetPackages}),v=await Vg(m),b=v.default??Object.values(v).find(y=>typeof y=="function");if(b===void 0)throw new Error("Module does not export a default component");return b}function l(c){let p=c.themeId?Ed(c.themeId,o,c.themeMode):kS(o,c.themeMode);if(typeof document<"u"){let m=c.themeId?hh(c.themeId,c.themeMode):xS(c.themeMode),v="ggui-theme-vars",b=document.getElementById(v);b||(b=document.createElement("style"),b.id=v,document.head.appendChild(b)),b.textContent!==m&&(b.textContent=m)}let d=a===null?null:(0,Ye.createElement)(a,c.stackItem.props??{}),f=c.renderWrapper&&d!==null?c.renderWrapper(d):d;r.render((0,Ye.createElement)("div",{className:o},(0,Ye.createElement)("style",null,`${p}${c.cssOverrides??""}`),(0,Ye.createElement)(wS,{key:i?.length??0,...c.onError?{onError:c.onError}:{},...c.onRequestRepair?{onRequestRepair:c.onRequestRepair}:{}},(0,Ye.createElement)(Ye.Fragment,null,f))))}async function u(){let c=n.stackItem.componentCode??"";if(c.trim().length===0){a=null,i=null,l(n);return}try{a=await s(c),i=c,l(n)}catch(p){let d=p instanceof Error?p:new Error(String(p));console.error("[ggui] mountReactRoot: component evaluation failed \u2014",d),a=null,i=null,l(n),n.onError?.(d)}}return await u(),{get currentCode(){return i},async update(c){let p=i;n=c;let d=c.stackItem.componentCode??"";if(d===p&&a!==null){l(n);return}if(d.trim().length===0){a=null,i=null,l(n);return}try{a=await s(d),i=d,l(n)}catch(f){let m=f instanceof Error?f:new Error(String(f));a=null,i=null,l(n),c.onError?.(m)}},unmount(){r.unmount(),e.replaceChildren()}}}var Ye,MA,EA,MY,CY,wS,IS=x(()=>{"use strict";Ye=C(G(),1),MA=C(xu(),1);IA();Bk();EA=0;MY=1,CY=500,wS=class extends Ye.Component{state={error:null,catchCount:0,autoRetrying:!1,repairRequested:!1};retryTimer=null;static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){let o=this.state.catchCount+1;if(this.setState({catchCount:o}),o<=MY){this.setState({autoRetrying:!0}),this.retryTimer=setTimeout(()=>{this.setState({error:null,autoRetrying:!1})},CY);return}this.props.onError?.(t),this.props.onRequestRepair&&!this.state.repairRequested&&(this.setState({repairRequested:!0}),this.props.onRequestRepair(t))}componentWillUnmount(){this.retryTimer!==null&&clearTimeout(this.retryTimer)}render(){let{error:t,autoRetrying:r,repairRequested:o,catchCount:n}=this.state;if(t===null)return this.props.children;let i='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif';return r?(0,Ye.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",padding:24,minHeight:80,gap:8,fontFamily:i,fontSize:13,color:"rgba(255,255,255,0.4)"}},(0,Ye.createElement)("div",{style:{width:16,height:16,border:"2px solid rgba(255,255,255,0.15)",borderTopColor:"rgba(255,255,255,0.5)",borderRadius:"50%",animation:"ggui-err-spin 0.6s linear infinite"}}),"Retrying...",(0,Ye.createElement)("style",null,"@keyframes ggui-err-spin { to { transform: rotate(360deg); } }")):o?(0,Ye.createElement)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"32px 24px",minHeight:120,gap:10,textAlign:"center",fontFamily:i}},(0,Ye.createElement)("div",{style:{width:16,height:16,border:"2px solid rgba(139,92,246,0.2)",borderTopColor:"rgba(139,92,246,0.7)",borderRadius:"50%",animation:"ggui-err-spin 0.8s linear infinite"}}),(0,Ye.createElement)("div",{style:{fontSize:13,color:"rgba(255,255,255,0.5)"}},"Repairing component..."),(0,Ye.createElement)("style",null,"@keyframes ggui-err-spin { to { transform: rotate(360deg); } }")):(0,Ye.createElement)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"32px 24px",minHeight:120,gap:12,textAlign:"center",fontFamily:i}},(0,Ye.createElement)("div",{style:{width:48,height:48,borderRadius:14,background:"rgba(239, 68, 68, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:22}},"!"),(0,Ye.createElement)("div",{style:{fontSize:14,fontWeight:600,color:"rgba(255,255,255,0.8)"}},"Something went wrong"),(0,Ye.createElement)("div",{style:{fontSize:12,color:"rgba(255,255,255,0.4)",maxWidth:280,lineHeight:1.4}},"This component encountered an error. Try asking for a different view."),(0,Ye.createElement)("button",{onClick:()=>this.setState({error:null,catchCount:0,repairRequested:!1}),style:{marginTop:4,padding:"8px 20px",borderRadius:8,border:"1px solid rgba(255,255,255,0.15)",background:"rgba(255,255,255,0.08)",color:"rgba(255,255,255,0.7)",fontSize:13,fontWeight:500,cursor:"pointer"}},"Retry"),n>1?(0,Ye.createElement)("div",{style:{fontSize:11,color:"rgba(255,255,255,0.2)"}},t.message):null)}}});var CS,KY,hn,Oe,Rt,xt,Lt=x(()=>{"use strict";CS={0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},KY={0:0,.5:2,1:4,1.5:6,2:8,2.5:10,3:12,3.5:14,4:16,5:20,6:24,7:28,8:32,9:36,10:40,11:44,12:48,14:56,16:64,20:80,24:96},hn={xs:"320px",sm:"480px",md:"640px",lg:"768px",xl:"1024px","2xl":"1280px","3xl":"1536px",full:"100%"},Oe={none:"0",sm:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px",full:"9999px"},Rt={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)","2xl":"0 25px 50px -12px rgb(0 0 0 / 0.25)",inner:"inset 0 2px 4px 0 rgb(0 0 0 / 0.05)"},xt={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800}});function hr(e){if(e!==void 0)return typeof e=="number"?`${e}px`:JY.has(e)?AA[e]:e}var AA,JY,_u=x(()=>{"use strict";AA={none:"0",xs:"var(--ggui-spacing-xs, 4px)",sm:"var(--ggui-spacing-sm, 8px)",md:"var(--ggui-spacing-md, 16px)",lg:"var(--ggui-spacing-lg, 24px)",xl:"var(--ggui-spacing-xl, 32px)","2xl":"var(--ggui-spacing-2xl, 48px)"},JY=new Set(Object.keys(AA))});function DA({children:e,maxWidth:t="lg",center:r=!0,padding:o,style:n,className:i}){let a=YY[t]||t,s=hr(o);return(0,NA.jsx)("div",{className:i,style:{maxWidth:a,margin:r?"0 auto":void 0,padding:s,width:"100%",...n},children:e})}var NA,YY,jA=x(()=>{"use strict";NA=C(B(),1);Lt();_u();YY={xs:hn.xs,sm:hn.sm,md:hn.md,lg:hn.lg,xl:hn.xl,"2xl":hn["2xl"],"3xl":hn["3xl"],full:hn.full}});function uo(e,t,r,o){return e===void 0?(0,RS.createElement)("div",{className:r.className,style:r.style},o):(0,RS.createElement)(e,{...t,className:r.className,style:r.style},o)}var RS,Md=x(()=>{"use strict";RS=C(G(),1)});function yn(e){switch(e){case"default":return"var(--ggui-color-onSurface, #18181b)";case"muted":return"var(--ggui-color-onSurfaceVariant, #52525b)";case"subtle":return"var(--ggui-color-neutral-500, #71717a)";case"emphasized":return"var(--ggui-color-primary-700, #0369a1)";case"loud":return"var(--ggui-color-primary-500, #0ea5e9)";case"success":case"warning":case"error":case"info":return`var(--ggui-color-${e}, ${XY[e]})`;case"inverse":return"var(--ggui-color-surface, #ffffff)";case"inherit":return"inherit"}}function vh(e){switch(e){case"default":case"elevated":return"var(--ggui-color-surface, #ffffff)";case"sunken":return"var(--ggui-color-surfaceVariant, #f4f4f5)";case"accent":return"var(--ggui-color-primary-50, #f0f9ff)";case"inverted":return"var(--ggui-color-onSurface, #18181b)";case"transparent":return"transparent"}}var XY,Zo=x(()=>{"use strict";XY={success:"#15803d",warning:"#b45309",error:"#b91c1c",info:"#0e7490"}});function Fo(e){if(e!==void 0)return typeof e=="number"?`${e}px`:QY.has(e)?UA[e]:e}var UA,QY,Cd=x(()=>{"use strict";UA={none:"0",sm:"var(--ggui-shape-radius-sm, 4px)",md:"var(--ggui-shape-radius-md, 8px)",lg:"var(--ggui-shape-radius-lg, 12px)",xl:"var(--ggui-shape-radius-xl, 16px)"},QY=new Set(Object.keys(UA))});function vn(e){let{children:t,padding:r="lg",shadow:o="sm",border:n=!0,radius:i="lg",surface:a,style:s,className:l,as:u,...c}=e,p=hr(r),f={backgroundColor:vh(a??"default"),borderRadius:Fo(i),padding:p,boxShadow:eX[o]||o,border:n?"1px solid var(--ggui-color-outlineVariant, #e4e4e7)":void 0,...s};return uo(u,c,{className:l,style:f},t)}var eX,zS=x(()=>{"use strict";Md();Zo();_u();Cd();eX={none:"none",sm:"var(--ggui-shape-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.04))",md:"var(--ggui-shape-shadow-md, 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 8px -2px rgba(15, 23, 42, 0.08))",lg:"var(--ggui-shape-shadow-lg, 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 24px -6px rgba(15, 23, 42, 0.10))",xl:"var(--ggui-shape-shadow-xl, 0 4px 8px rgba(15, 23, 42, 0.04), 0 20px 40px -8px rgba(15, 23, 42, 0.14))"}});function zt(e){let{children:t,direction:r="vertical",gap:o="sm",align:n="stretch",justify:i="start",wrap:a=!1,style:s,className:l,as:u,...c}=e,p=hr(o),d={display:"flex",flexDirection:r==="vertical"?"column":"row",gap:p,alignItems:rX[n]||n,justifyContent:tX[i]||i,flexWrap:a?"wrap":"nowrap",...s};return uo(u,c,{className:l,style:d},t)}var tX,rX,Rd=x(()=>{"use strict";Md();_u();tX={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},rX={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch"}});function ys(e){return(0,LA.createElement)(zt,{...e,direction:"horizontal"})}var LA,PS=x(()=>{"use strict";LA=C(G(),1);Rd()});function oX(e){let t=JSON.stringify(e),r=0;for(let o=0;o<t.length;o++)r=Math.imul(31,r)+t.charCodeAt(o)|0;return(r>>>0).toString(36)}function qA(e){let{children:t,columns:r=2,gap:o="md",minColumnWidth:n,style:i,className:a,as:s,...l}=e,u=typeof n=="number"?`${n}px`:n;if(u!==void 0){let p={display:"grid",gridTemplateColumns:`repeat(auto-fill, minmax(${u}, 1fr))`,gap:hr(o),...i};return uo(s,l,{className:a,style:p},t)}if(typeof r=="object"){let p=`ggui-grid-${oX(r)}`,d=[`.${p}{grid-template-columns:${OS(r.base??1)}}`];for(let[m,v]of nX){let b=r[m];typeof b=="number"&&d.push(`@media (min-width:${v}px){.${p}{grid-template-columns:${OS(b)}}}`)}let f={display:"grid",gap:hr(o),...i};return uo(s,l,{className:a?`${a} ${p}`:p,style:f},(0,Su.jsxs)(Su.Fragment,{children:[(0,Su.jsx)("style",{children:d.join("")}),t]}))}let c={display:"grid",gridTemplateColumns:OS(r),gap:hr(o),...i};return uo(s,l,{className:a,style:c},t)}var Su,nX,OS,BA=x(()=>{"use strict";Su=C(B(),1);Md();_u();nX=[["sm",640],["md",768],["lg",1024],["xl",1280]],OS=e=>`repeat(${e}, minmax(0, 1fr))`});function VA(e){let{children:t,padding:r,paddingX:o,paddingY:n,margin:i,surface:a,assetColor:s,assetSemantic:l,radius:u,style:c,className:p,as:d,...f}=e,m;if(o!==void 0||n!==void 0){let h=hr(o)||"0";m=`${hr(n)||"0"} ${h}`}else m=hr(r);let v=s!==void 0&&typeof l=="string"&&l.length>0?s:void 0,b=v||(a?vh(a):void 0),y={padding:m,margin:hr(i),background:b,borderRadius:Fo(u),...c};return uo(d,f,{className:p,style:y},t)}var HA=x(()=>{"use strict";Md();Zo();_u();Cd()});function $h({orientation:e="horizontal",margin:t="var(--ggui-spacing-md, 16px)",tone:r,style:o,className:n}){let i=typeof t=="number"?`${t}px`:t,a=r?yn(r):"var(--ggui-color-outlineVariant, #e4e4e7)";return e==="vertical"?(0,AS.jsx)("div",{role:"separator","aria-orientation":"vertical",className:n,style:{width:"1px",backgroundColor:a,margin:`0 ${i}`,alignSelf:"stretch",...o}}):(0,AS.jsx)("hr",{role:"separator","aria-orientation":"horizontal",className:n,style:{border:"none",height:"1px",backgroundColor:a,margin:`${i} 0`,...o}})}var AS,GA=x(()=>{"use strict";AS=C(B(),1);Zo()});function ZA({size:e=16,style:t,className:r}){return e==="flex"?(0,NS.jsx)("div",{className:r,style:{flex:1,...t}}):(0,NS.jsx)("div",{className:r,style:{width:`${e}px`,height:`${e}px`,flexShrink:0,...t}})}var NS,FA=x(()=>{"use strict";NS=C(B(),1)});var bh,U,WA,W,Xe,Dn,zd,Pd,DS,ut=x(()=>{"use strict";bh={sans:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',mono:'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace'},U={xs:"12px",sm:"14px",base:"16px",lg:"18px",xl:"20px","2xl":"24px","3xl":"30px","4xl":"36px","5xl":"48px","6xl":"60px"},WA={xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":60},W={thin:100,extralight:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},Xe={none:1,tight:1.25,snug:1.375,normal:1.5,relaxed:1.625,loose:2},Dn={tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},zd={h1:{fontSize:U["4xl"],fontWeight:W.bold,lineHeight:Xe.tight,letterSpacing:Dn.tight},h2:{fontSize:U["3xl"],fontWeight:W.bold,lineHeight:Xe.tight,letterSpacing:Dn.tight},h3:{fontSize:U["2xl"],fontWeight:W.semibold,lineHeight:Xe.snug,letterSpacing:Dn.normal},h4:{fontSize:U.xl,fontWeight:W.semibold,lineHeight:Xe.snug,letterSpacing:Dn.normal},h5:{fontSize:U.lg,fontWeight:W.semibold,lineHeight:Xe.normal,letterSpacing:Dn.normal},h6:{fontSize:U.base,fontWeight:W.semibold,lineHeight:Xe.normal,letterSpacing:Dn.normal}},Pd={body:{fontSize:U.base,fontWeight:W.normal,lineHeight:Xe.normal},bodySmall:{fontSize:U.sm,fontWeight:W.normal,lineHeight:Xe.normal},bodyLarge:{fontSize:U.lg,fontWeight:W.normal,lineHeight:Xe.relaxed},caption:{fontSize:U.xs,fontWeight:W.normal,lineHeight:Xe.normal},label:{fontSize:U.sm,fontWeight:W.medium,lineHeight:Xe.normal},overline:{fontSize:U.xs,fontWeight:W.semibold,lineHeight:Xe.normal,letterSpacing:Dn.wider,textTransform:"uppercase"}},DS={fontFamily:bh,fontSize:U,fontSizeValues:WA,fontWeight:W,lineHeight:Xe,letterSpacing:Dn,headingStyles:zd,textStyles:Pd}});function it({children:e,variant:t="body",size:r,weight:o,tone:n,align:i,truncate:a,is:s="p",id:l,htmlFor:u,style:c,className:p}){let d=Pd[t]||Pd.body,f=n?yn(n):"var(--ggui-color-onSurface, #18181b)",m={...d,fontSize:r?iX[r]||r:void 0,fontWeight:o?aX[o]:void 0,color:f,textAlign:i,margin:0,...a&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},...c};return(0,KA.createElement)(s,{id:l,htmlFor:u,className:p,style:m},e)}var KA,iX,aX,xh=x(()=>{"use strict";KA=C(G(),1);ut();Zo();iX={xs:"var(--ggui-font-size-xs, 12px)",sm:"var(--ggui-font-size-sm, 14px)",base:"var(--ggui-font-size-base, 16px)",lg:"var(--ggui-font-size-lg, 18px)",xl:"var(--ggui-font-size-xl, 20px)","2xl":"var(--ggui-font-size-2xl, 24px)","3xl":"var(--ggui-font-size-3xl, 30px)","4xl":"var(--ggui-font-size-4xl, 36px)"},aX={normal:"var(--ggui-font-weight-normal, 400)",medium:"var(--ggui-font-weight-medium, 500)",semibold:"var(--ggui-font-weight-semibold, 600)",bold:"var(--ggui-font-weight-bold, 700)"}});function Vr({children:e,level:t=2,tone:r,align:o,style:n,className:i}){let a=`h${t}`,s=zd[a]||zd.h2,l=r?yn(r):"var(--ggui-color-onSurface, #18181b)";return(0,JA.createElement)(a,{className:i,style:{...s,color:l,textAlign:o,margin:0,...n}},e)}var JA,kh=x(()=>{"use strict";JA=C(G(),1);ut();Zo()});function kt({size:e=24,tone:t,style:r,className:o}){let n=t==="inherit"?"currentColor":t?yn(t):"var(--ggui-color-primary-600, #0284c7)";return(0,wu.jsxs)("svg",{className:o,width:e,height:e,viewBox:"0 0 24 24",fill:"none",role:"status","aria-label":"Loading",style:{animation:"ggui-spin 1s linear infinite",...r},children:[(0,wu.jsx)("style",{children:"@keyframes ggui-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }"}),(0,wu.jsx)("circle",{cx:"12",cy:"12",r:"10",stroke:"var(--ggui-color-outlineVariant, #e4e4e7)",strokeWidth:"3",fill:"none"}),(0,wu.jsx)("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:n,strokeWidth:"3",strokeLinecap:"round",fill:"none"})]})}var wu,co=x(()=>{"use strict";wu=C(B(),1);Zo()});var Y,K,jS,jn=x(()=>{"use strict";Y={instant:"0ms",fast:"100ms",normal:"200ms",slow:"300ms",slower:"500ms"},K={linear:"linear",easeIn:"cubic-bezier(0.4, 0, 1, 1)",easeOut:"cubic-bezier(0, 0, 0.2, 1)",easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",spring:"cubic-bezier(0.175, 0.885, 0.32, 1.275)"},jS={none:"none",fast:`${Y.fast} ${K.easeInOut}`,normal:`${Y.normal} ${K.easeInOut}`,slow:`${Y.slow} ${K.easeInOut}`,colors:`color ${Y.normal} ${K.easeInOut}, background-color ${Y.normal} ${K.easeInOut}, border-color ${Y.normal} ${K.easeInOut}`,opacity:`opacity ${Y.normal} ${K.easeInOut}`,transform:`transform ${Y.normal} ${K.easeOut}`}});function Ae({children:e,variant:t="primary",size:r="md",fullWidth:o,loading:n,disabled:i,leftIcon:a,rightIcon:s,type:l="button",onClick:u,onPress:c,style:p,className:d,...f}){let m=i||n;return(0,vs.jsx)("button",{type:l,onClick:m?void 0:u??c,disabled:m,className:d,style:{...sX[r],...lX[t],display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"var(--ggui-spacing-2, 8px)",borderRadius:"var(--ggui-shape-radius-md, 8px)",fontWeight:"var(--ggui-font-weight-medium, 500)",cursor:m?"not-allowed":"pointer",opacity:m?.5:1,width:o?"100%":void 0,transition:`background-color ${Y.normal} ${K.easeInOut}, box-shadow ${Y.normal} ${K.easeInOut}, opacity ${Y.normal} ${K.easeInOut}`,boxShadow:"var(--ggui-shape-shadow-sm, 0 1px 2px rgba(0,0,0,0.05))",...p},...f,children:n?(0,vs.jsx)(kt,{size:16,tone:"inherit"}):(0,vs.jsxs)(vs.Fragment,{children:[a,e,s]})})}var vs,sX,lX,Wo=x(()=>{"use strict";vs=C(B(),1);co();jn();sX={xs:{padding:"var(--ggui-spacing-1, 4px) var(--ggui-spacing-2, 8px)",fontSize:"var(--ggui-font-size-xs, 12px)",minHeight:"24px"},sm:{padding:"6px var(--ggui-spacing-4, 12px)",fontSize:"var(--ggui-font-size-sm, 14px)",minHeight:"32px"},md:{padding:"10px var(--ggui-spacing-4, 16px)",fontSize:"var(--ggui-font-size-sm, 14px)",minHeight:"40px"},lg:{padding:"12px var(--ggui-spacing-6, 24px)",fontSize:"var(--ggui-font-size-base, 16px)",minHeight:"48px"}},lX={primary:{backgroundColor:"var(--ggui-color-primary-600, #0284c7)",color:"#ffffff",border:"none"},secondary:{backgroundColor:"var(--ggui-color-surfaceVariant, #f4f4f5)",color:"var(--ggui-color-onSurfaceVariant, #52525b)",border:"none"},outline:{backgroundColor:"transparent",color:"var(--ggui-color-primary-600, #0284c7)",border:"1px solid var(--ggui-color-primary-600, #0284c7)"},ghost:{backgroundColor:"transparent",color:"var(--ggui-color-onSurfaceVariant, #52525b)",border:"none"},danger:{backgroundColor:"var(--ggui-color-error-600, #dc2626)",color:"#ffffff",border:"none"}}});function Tu({label:e,placeholder:t,value:r,onChange:o,type:n="text",error:i,helperText:a,required:s,disabled:l,size:u="md",style:c,className:p,...d}){let f=(0,YA.useId)(),m=`${f}-input`,v=`${f}-message`,b=!!i,y=!!(i||a);return(0,$s.jsxs)("div",{className:p,style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-1, 4px)",...c},children:[e&&(0,$s.jsxs)("label",{htmlFor:m,style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:[e,s&&(0,$s.jsx)("span",{"aria-hidden":"true",style:{color:"var(--ggui-color-error-500, #ef4444)",marginLeft:"2px"},children:"*"})]}),(0,$s.jsx)("input",{id:m,type:n,placeholder:t,value:r,onChange:h=>o?.(h.target.value),disabled:l,required:s,"aria-invalid":b||void 0,"aria-describedby":y?v:void 0,style:{...uX[u],width:"100%",borderRadius:"var(--ggui-shape-radius-md, 8px)",border:`1px solid ${b?"var(--ggui-color-error-500, #ef4444)":"var(--ggui-color-outline, #d4d4d8)"}`,backgroundColor:l?"var(--ggui-color-surface, #fafafa)":"var(--ggui-color-surface, #ffffff)",color:"var(--ggui-color-onSurface, #18181b)",transition:`border-color ${Y.normal} ${K.easeInOut}, box-shadow ${Y.normal} ${K.easeInOut}`,boxSizing:"border-box"},...d}),y&&(0,$s.jsx)("span",{id:v,role:b?"alert":void 0,style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:b?"var(--ggui-color-error-500, #ef4444)":"var(--ggui-color-onSurfaceVariant, #52525b)"},children:i||a})]})}var $s,YA,uX,US=x(()=>{"use strict";$s=C(B(),1),YA=C(G(),1);jn();uX={sm:{padding:"6px 10px",fontSize:"var(--ggui-font-size-sm, 14px)"},md:{padding:"10px 12px",fontSize:"var(--ggui-font-size-sm, 14px)"},lg:{padding:"12px 14px",fontSize:"var(--ggui-font-size-base, 16px)"}}});function Od({label:e,placeholder:t,value:r,onChange:o,rows:n=4,error:i,helperText:a,required:s,disabled:l,maxLength:u,showCount:c,autoResize:p,style:d,className:f,...m}){let v=(0,XA.useId)(),b=`${v}-textarea`,y=`${v}-message`,h=!!i,$=!!(i||a),_=r?.length||0;return(0,Ko.jsxs)("div",{className:f,style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-1, 4px)",...d},children:[e&&(0,Ko.jsxs)("label",{htmlFor:b,style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:[e,s&&(0,Ko.jsx)("span",{"aria-hidden":"true",style:{color:"var(--ggui-color-error-500, #ef4444)",marginLeft:"2px"},children:"*"})]}),(0,Ko.jsx)("textarea",{id:b,placeholder:t,value:r,onChange:S=>o?.(S.target.value),rows:n,disabled:l,required:s,maxLength:u,"aria-invalid":h||void 0,"aria-describedby":$?y:void 0,style:{padding:"10px 12px",width:"100%",borderRadius:"var(--ggui-shape-radius-md, 8px)",border:`1px solid ${h?"var(--ggui-color-error-500, #ef4444)":"var(--ggui-color-outline, #d4d4d8)"}`,backgroundColor:l?"var(--ggui-color-surface, #fafafa)":"var(--ggui-color-surface, #ffffff)",color:"var(--ggui-color-onSurface, #18181b)",fontSize:"var(--ggui-font-size-sm, 14px)",fontFamily:"inherit",transition:`border-color ${Y.normal} ${K.easeInOut}, box-shadow ${Y.normal} ${K.easeInOut}`,boxSizing:"border-box",resize:p?"none":"vertical"},...m}),(0,Ko.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[$&&(0,Ko.jsx)("span",{id:y,role:h?"alert":void 0,style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:h?"var(--ggui-color-error-500, #ef4444)":"var(--ggui-color-onSurfaceVariant, #52525b)"},children:i||a}),c&&u&&(0,Ko.jsxs)("span",{style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)",marginLeft:"auto"},children:[_,"/",u]})]})]})}var Ko,XA,LS=x(()=>{"use strict";Ko=C(B(),1),XA=C(G(),1);jn()});function _h({label:e,value:t,onChange:r,options:o,placeholder:n,error:i,helperText:a,required:s,disabled:l,size:u="md",style:c,className:p,...d}){let f=(0,QA.useId)(),m=`${f}-select`,v=`${f}-message`,b=!!i,y=!!(i||a);return(0,Jo.jsxs)("div",{className:p,style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-1, 4px)",...c},children:[e&&(0,Jo.jsxs)("label",{htmlFor:m,style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:[e,s&&(0,Jo.jsx)("span",{"aria-hidden":"true",style:{color:"var(--ggui-color-error-500, #ef4444)",marginLeft:"2px"},children:"*"})]}),(0,Jo.jsxs)("select",{id:m,value:t,onChange:h=>r?.(h.target.value),disabled:l,required:s,"aria-invalid":b||void 0,"aria-describedby":y?v:void 0,style:{...cX[u],width:"100%",borderRadius:"var(--ggui-shape-radius-md, 8px)",border:`1px solid ${b?"var(--ggui-color-error-500, #ef4444)":"var(--ggui-color-outline, #d4d4d8)"}`,backgroundColor:l?"var(--ggui-color-surface, #fafafa)":"var(--ggui-color-surface, #ffffff)",color:t?"var(--ggui-color-onSurface, #18181b)":"var(--ggui-color-onSurfaceVariant, #52525b)",cursor:l?"not-allowed":"pointer",appearance:"none",backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 12px center",paddingRight:"36px",boxSizing:"border-box",transition:`border-color ${Y.normal} ${K.easeInOut}, box-shadow ${Y.normal} ${K.easeInOut}`},...d,children:[n&&(0,Jo.jsx)("option",{value:"",disabled:!0,children:n}),o.map(h=>(0,Jo.jsx)("option",{value:h.value,disabled:h.disabled,children:h.label},h.value))]}),y&&(0,Jo.jsx)("span",{id:v,role:b?"alert":void 0,style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:b?"var(--ggui-color-error-500, #ef4444)":"var(--ggui-color-onSurfaceVariant, #52525b)"},children:i||a})]})}var Jo,QA,cX,eN=x(()=>{"use strict";Jo=C(B(),1),QA=C(G(),1);jn();cX={sm:{padding:"6px 10px",fontSize:"var(--ggui-font-size-sm, 14px)"},md:{padding:"10px 12px",fontSize:"var(--ggui-font-size-sm, 14px)"},lg:{padding:"12px 14px",fontSize:"var(--ggui-font-size-base, 16px)"}}});function bs({label:e,checked:t,onChange:r,disabled:o,description:n,indeterminate:i,style:a,className:s}){return(0,$n.jsxs)("label",{className:s,style:{display:"flex",alignItems:"flex-start",gap:"var(--ggui-spacing-2, 8px)",cursor:o?"not-allowed":"pointer",opacity:o?.5:1,...a},children:[(0,$n.jsxs)("div",{style:{position:"relative",width:"18px",height:"18px",flexShrink:0,marginTop:"2px"},children:[(0,$n.jsx)("input",{type:"checkbox",checked:t,onChange:l=>r?.(l.target.checked),disabled:o,ref:l=>{l&&(l.indeterminate=i||!1)},style:{position:"absolute",width:"18px",height:"18px",margin:0,opacity:0,cursor:o?"not-allowed":"pointer"}}),(0,$n.jsx)("div",{style:{width:"18px",height:"18px",borderRadius:"var(--ggui-shape-radius-sm, 4px)",border:`2px solid ${t||i?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-outline, #d4d4d8)"}`,backgroundColor:t||i?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-surface, #ffffff)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s"},children:(t||i)&&(0,$n.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",style:{color:"#ffffff"},children:i?(0,$n.jsx)("path",{d:"M2.5 6H9.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}):(0,$n.jsx)("path",{d:"M2.5 6L5 8.5L9.5 3.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),(e||n)&&(0,$n.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[e&&(0,$n.jsx)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:e}),n&&(0,$n.jsx)("span",{style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:n})]})]})}var $n,qS=x(()=>{"use strict";$n=C(B(),1)});function rN({label:e,checked:t,onChange:r,disabled:o,size:n="md",style:i,className:a}){let s=pX[n],[l,u]=(0,tN.useState)(!1);return(0,Iu.jsxs)("label",{className:a,style:{display:"flex",alignItems:"center",gap:"var(--ggui-spacing-2, 8px)",cursor:o?"not-allowed":"pointer",opacity:o?.5:1,...i},children:[(0,Iu.jsx)("div",{role:"switch","aria-checked":t,"aria-label":e,tabIndex:o?-1:0,onClick:()=>!o&&r?.(!t),onKeyDown:c=>{o||(c.key===" "||c.key==="Enter")&&(c.preventDefault(),r?.(!t))},onFocus:()=>u(!0),onBlur:()=>u(!1),style:{width:s.width,height:s.height,borderRadius:"9999px",backgroundColor:t?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-outline, #d4d4d8)",position:"relative",transition:`background-color ${Y.normal} ${K.easeInOut}, box-shadow ${Y.normal} ${K.easeInOut}`,flexShrink:0,outline:"none",boxShadow:l?"0 0 0 3px var(--ggui-color-primary-200, #bae6fd)":void 0},children:(0,Iu.jsx)("div",{style:{width:s.knob,height:s.knob,borderRadius:"50%",backgroundColor:"#ffffff",position:"absolute",top:(s.height-s.knob)/2,left:t?s.width-s.knob-(s.height-s.knob)/2:(s.height-s.knob)/2,transition:`left ${Y.normal} ${K.easeInOut}`,boxShadow:"var(--ggui-shape-shadow-sm, 0 1px 2px rgba(0,0,0,0.05))"}})}),e&&(0,Iu.jsx)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:e})]})}var Iu,tN,pX,nN=x(()=>{"use strict";Iu=C(B(),1),tN=C(G(),1);jn();pX={sm:{width:36,height:20,knob:16},md:{width:44,height:24,knob:20},lg:{width:52,height:28,knob:24}}});function iN({label:e,value:t,onChange:r,options:o,direction:n="vertical",disabled:i,error:a,style:s,className:l}){let u=(0,oN.useId)(),c=`${u}-label`,p=`${u}-error`,d=`${u}-radio`;return(0,Cr.jsxs)("div",{role:"radiogroup","aria-labelledby":e?c:void 0,"aria-describedby":!!a?p:void 0,className:l,style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-2, 8px)",...s},children:[e&&(0,Cr.jsx)("span",{id:c,style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:e}),(0,Cr.jsx)("div",{style:{display:"flex",flexDirection:n==="vertical"?"column":"row",gap:n==="vertical"?"var(--ggui-spacing-2, 8px)":"var(--ggui-spacing-4, 16px)",flexWrap:"wrap"},children:o.map(m=>{let v=t===m.value,b=i||m.disabled;return(0,Cr.jsxs)("label",{style:{display:"flex",alignItems:"flex-start",gap:"var(--ggui-spacing-2, 8px)",cursor:b?"not-allowed":"pointer",opacity:b?.5:1},children:[(0,Cr.jsxs)("div",{style:{position:"relative",width:"18px",height:"18px",flexShrink:0,marginTop:"2px"},children:[(0,Cr.jsx)("input",{type:"radio",name:d,value:m.value,checked:v,onChange:()=>r?.(m.value),disabled:b,style:{position:"absolute",width:"18px",height:"18px",margin:0,opacity:0,cursor:b?"not-allowed":"pointer"}}),(0,Cr.jsx)("div",{style:{width:"18px",height:"18px",borderRadius:"var(--ggui-shape-radius-full, 9999px)",border:`2px solid ${v?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-outline, #d4d4d8)"}`,backgroundColor:"var(--ggui-color-surface, #ffffff)",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s"},children:v&&(0,Cr.jsx)("div",{style:{width:"8px",height:"8px",borderRadius:"var(--ggui-shape-radius-full, 9999px)",backgroundColor:"var(--ggui-color-primary-600, #0284c7)"}})})]}),(0,Cr.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:[(0,Cr.jsx)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:m.label}),m.description&&(0,Cr.jsx)("span",{style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:m.description})]})]},m.value)})}),a&&(0,Cr.jsx)("span",{id:p,role:"alert",style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:"var(--ggui-color-error-500, #ef4444)"},children:a})]})}var Cr,oN,aN=x(()=>{"use strict";Cr=C(B(),1),oN=C(G(),1)});function lN({label:e,value:t=0,onChange:r,min:o=0,max:n=100,step:i=1,disabled:a,showValue:s,style:l,className:u}){let c=(0,sN.useId)(),p=`${c}-slider`,d=`${c}-label`,f=(t-o)/(n-o)*100;return(0,Un.jsxs)("div",{className:u,style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-2, 8px)",...l},children:[(e||s)&&(0,Un.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e&&(0,Un.jsx)("span",{id:d,style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:e}),s&&(0,Un.jsx)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-primary-600, #0284c7)"},children:t})]}),(0,Un.jsxs)("div",{style:{position:"relative",height:"20px",display:"flex",alignItems:"center"},children:[(0,Un.jsx)("div",{style:{position:"absolute",width:"100%",height:"6px",borderRadius:"3px",backgroundColor:"var(--ggui-color-outlineVariant, #e4e4e7)"}}),(0,Un.jsx)("div",{style:{position:"absolute",width:`${f}%`,height:"6px",borderRadius:"3px",backgroundColor:a?"var(--ggui-color-outline, #d4d4d8)":"var(--ggui-color-primary-600, #0284c7)",transition:"width 0.1s"}}),(0,Un.jsx)("input",{id:p,type:"range",min:o,max:n,step:i,value:t,onChange:m=>r?.(Number(m.target.value)),disabled:a,"aria-labelledby":e?d:void 0,"aria-label":e?void 0:"Slider","aria-valuenow":t,"aria-valuemin":o,"aria-valuemax":n,style:{position:"absolute",width:"100%",height:"20px",margin:0,opacity:0,cursor:a?"not-allowed":"pointer",zIndex:1}}),(0,Un.jsx)("div",{style:{position:"absolute",left:`calc(${f}% - 10px)`,width:"20px",height:"20px",borderRadius:"50%",backgroundColor:"#ffffff",border:`2px solid ${a?"var(--ggui-color-outline, #d4d4d8)":"var(--ggui-color-primary-600, #0284c7)"}`,boxShadow:"var(--ggui-shape-shadow-sm, 0 1px 2px rgba(0,0,0,0.05))",transition:"left 0.1s",pointerEvents:"none"}})]})]})}var Un,sN,uN=x(()=>{"use strict";Un=C(B(),1),sN=C(G(),1)});function po({children:e,variant:t="default",size:r="md",pill:o=!0,style:n,className:i}){return(0,cN.jsx)("span",{className:i,style:{...dX[t],...fX[r],display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:"var(--ggui-font-weight-medium, 500)",borderRadius:o?"9999px":"var(--ggui-shape-radius-sm, 4px)",whiteSpace:"nowrap",...n},children:e})}var cN,dX,fX,pN=x(()=>{"use strict";cN=C(B(),1),dX={default:{backgroundColor:"var(--ggui-color-surfaceVariant, #f4f4f5)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},primary:{backgroundColor:"var(--ggui-color-primary-100, #e0f2fe)",color:"var(--ggui-color-primary-700, #0369a1)"},secondary:{backgroundColor:"var(--ggui-color-outlineVariant, #e4e4e7)",color:"var(--ggui-color-onSurface, #18181b)"},success:{backgroundColor:"var(--ggui-color-success-100, #dcfce7)",color:"var(--ggui-color-success-700, #15803d)"},warning:{backgroundColor:"var(--ggui-color-warning-100, #fef3c7)",color:"var(--ggui-color-warning-700, #b45309)"},error:{backgroundColor:"var(--ggui-color-error-100, #fee2e2)",color:"var(--ggui-color-error-700, #b91c1c)"},info:{backgroundColor:"var(--ggui-color-info-100, #cffafe)",color:"var(--ggui-color-info-700, #0e7490)"}},fX={sm:{padding:"2px 6px",fontSize:"var(--ggui-font-size-xs, 12px)"},md:{padding:"2px 8px",fontSize:"var(--ggui-font-size-xs, 12px)"},lg:{padding:"4px 10px",fontSize:"var(--ggui-font-size-sm, 14px)"}}});function fN({variant:e="rect",width:t,height:r,radius:o="sm",style:n,className:i}){let a=e==="circle",s=e==="text",l=dN(t)??(a?"2.5rem":"100%"),u=dN(r)??(s?"1em":a?l:"1.25rem"),c={display:"block",width:l,height:u,borderRadius:a?"9999px":Fo(o),backgroundColor:"var(--ggui-color-surfaceVariant, #f4f4f5)",animation:"ggui-skeleton-pulse 1.5s ease-in-out infinite",...n};return(0,BS.jsx)("div",{className:i,style:c,"aria-hidden":"true",children:(0,BS.jsx)("style",{children:"@keyframes ggui-skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }"})})}var BS,dN,mN=x(()=>{"use strict";BS=C(B(),1);Cd();dN=e=>e===void 0?void 0:typeof e=="number"?`${e}px`:e});function fo({src:e,name:t,size:r="md",shape:o="circle",style:n,className:i}){let[a,s]=(0,hN.useState)(!1),l=typeof r=="number"?r:mX[r]||40,u=t?t.split(" ").map(d=>d[0]).join("").toUpperCase().slice(0,2):"?",c=d=>{if(!d)return"var(--ggui-color-outline, #d4d4d8)";let f=d.split("").reduce((m,v)=>m+v.charCodeAt(0),0);return gN[f%gN.length]},p=!e||a;return(0,VS.jsx)("div",{role:"img","aria-label":t||"Avatar",className:i,style:{width:l,height:l,borderRadius:o==="circle"?"50%":"var(--ggui-shape-radius-md, 8px)",backgroundColor:p?c(t):"transparent",color:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",fontSize:l*.4,fontWeight:"var(--ggui-font-weight-semibold, 600)",overflow:"hidden",flexShrink:0,...n},children:p?u:(0,VS.jsx)("img",{src:e,alt:t||"Avatar",onError:()=>s(!0),style:{width:"100%",height:"100%",objectFit:"cover"}})})}var VS,hN,mX,gN,Ad=x(()=>{"use strict";VS=C(B(),1),hN=C(G(),1),mX={xs:24,sm:32,md:40,lg:48,xl:64},gN=["var(--ggui-color-primary-500, #0ea5e9)","var(--ggui-color-success-500, #22c55e)","var(--ggui-color-warning-500, #f59e0b)","var(--ggui-color-error-500, #ef4444)","var(--ggui-color-info-500, #06b6d4)"]});function yN({children:e,variant:t="info",title:r,closable:o,onClose:n,icon:i,style:a,className:s}){let l=gX[t];return(0,qt.jsxs)("div",{role:"alert",className:s,style:{display:"flex",gap:"12px",padding:"12px 16px",borderRadius:"var(--ggui-shape-radius-lg, 12px)",backgroundColor:l.bg,border:`1px solid ${l.border}`,color:l.text,...a},children:[(0,qt.jsx)("div",{style:{color:l.icon,flexShrink:0},children:i||hX[t]}),(0,qt.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-1, 4px)"},children:[r&&(0,qt.jsx)("div",{style:{fontWeight:"var(--ggui-font-weight-semibold, 600)",fontSize:"var(--ggui-font-size-sm, 14px)"},children:r}),(0,qt.jsx)("div",{style:{fontSize:"var(--ggui-font-size-sm, 14px)"},children:e})]}),o&&(0,qt.jsx)("button",{onClick:n,"aria-label":"Close",style:{background:"none",border:"none",padding:"4px",cursor:"pointer",color:l.text,opacity:.7,flexShrink:0,lineHeight:0,minWidth:"28px",minHeight:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--ggui-shape-radius-sm, 4px)"},children:(0,qt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,qt.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})}var qt,gX,hX,vN=x(()=>{"use strict";qt=C(B(),1),gX={info:{bg:"var(--ggui-color-info-50, #ecfeff)",border:"var(--ggui-color-info-200, #a5f3fc)",text:"var(--ggui-color-info-800, #155e75)",icon:"var(--ggui-color-info-500, #06b6d4)"},success:{bg:"var(--ggui-color-success-50, #f0fdf4)",border:"var(--ggui-color-success-200, #bbf7d0)",text:"var(--ggui-color-success-800, #166534)",icon:"var(--ggui-color-success-500, #22c55e)"},warning:{bg:"var(--ggui-color-warning-50, #fffbeb)",border:"var(--ggui-color-warning-200, #fde68a)",text:"var(--ggui-color-warning-800, #92400e)",icon:"var(--ggui-color-warning-500, #f59e0b)"},error:{bg:"var(--ggui-color-error-50, #fef2f2)",border:"var(--ggui-color-error-200, #fecaca)",text:"var(--ggui-color-error-800, #991b1b)",icon:"var(--ggui-color-error-500, #ef4444)"}},hX={info:(0,qt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,qt.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),success:(0,qt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,qt.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),warning:(0,qt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,qt.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),error:(0,qt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,qt.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}});function Sh({value:e,max:t=100,variant:r="default",size:o="md",label:n,showLabel:i,indeterminate:a,style:s,className:l}){let u=Math.min(100,Math.max(0,e/t*100)),c=vX[o],p=yX[r],d=n??"Progress";return(0,Yo.jsxs)("div",{className:l,style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-1, 4px)",...s},children:[i&&(0,Yo.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,Yo.jsx)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:d}),(0,Yo.jsxs)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurface, #18181b)"},children:[Math.round(u),"%"]})]}),(0,Yo.jsxs)("div",{role:"progressbar","aria-valuenow":a?void 0:e,"aria-valuemin":0,"aria-valuemax":t,"aria-label":d,style:{width:"100%",height:c,borderRadius:c/2,backgroundColor:"var(--ggui-color-outlineVariant, #e4e4e7)",overflow:"hidden"},children:[(0,Yo.jsx)("div",{style:{height:"100%",borderRadius:c/2,backgroundColor:p,transition:a?"none":"width 0.3s ease",...a?{width:"30%",animation:"ggui-progress-indeterminate 1.5s ease-in-out infinite"}:{width:`${u}%`}}}),a&&(0,Yo.jsx)("style",{children:`@keyframes ggui-progress-indeterminate {
110
+ 0% { transform: translateX(-100%); }
111
+ 100% { transform: translateX(400%); }
112
+ }`})]})]})}var Yo,yX,vX,HS=x(()=>{"use strict";Yo=C(B(),1),yX={default:"var(--ggui-color-primary-600, #0284c7)",success:"var(--ggui-color-success-500, #22c55e)",warning:"var(--ggui-color-warning-500, #f59e0b)",error:"var(--ggui-color-error-500, #ef4444)"},vX={sm:4,md:8,lg:12}});function wh({src:e,alt:t,width:r,height:o,objectFit:n="cover",radius:i,fallback:a,style:s,className:l}){let[u,c]=(0,$N.useState)(!1),p=d=>{if(d!==void 0)return typeof d=="number"?`${d}px`:d};return u&&a?(0,ha.jsx)(ha.Fragment,{children:a}):u?(0,ha.jsx)("div",{role:"img","aria-label":`${t} (failed to load)`,className:l,style:{width:p(r)||"100%",height:p(o)||"auto",borderRadius:Fo(i),backgroundColor:"var(--ggui-color-surfaceVariant, #f4f4f5)",display:"flex",alignItems:"center",justifyContent:"center",color:"var(--ggui-color-outline, #d4d4d8)",...s},children:(0,ha.jsx)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"currentColor",children:(0,ha.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"})})}):(0,ha.jsx)("img",{src:e,alt:t,onError:()=>c(!0),className:l,style:{width:p(r)||"100%",height:p(o)||"auto",objectFit:n,borderRadius:Fo(i),display:"block",...s}})}var ha,$N,bN=x(()=>{"use strict";ha=C(B(),1),$N=C(G(),1);Cd()});var Th,xN=x(()=>{"use strict";Th={Sun:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]],Moon:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]],Cloud:[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"}]],CloudRain:[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"}],["path",{d:"M16 14v6"}],["path",{d:"M8 14v6"}],["path",{d:"M12 16v6"}]],CloudSnow:[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"}],["path",{d:"M8 15h.01"}],["path",{d:"M8 19h.01"}],["path",{d:"M12 17h.01"}],["path",{d:"M12 21h.01"}],["path",{d:"M16 15h.01"}],["path",{d:"M16 19h.01"}]],CloudLightning:[["path",{d:"M6 16.326A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 .5 8.973"}],["path",{d:"m13 12-3 5h4l-3 5"}]],CloudDrizzle:[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"}],["path",{d:"M8 19v1"}],["path",{d:"M8 14v1"}],["path",{d:"M16 19v1"}],["path",{d:"M16 14v1"}],["path",{d:"M12 21v1"}],["path",{d:"M12 16v1"}]],CloudSun:[["path",{d:"M12 2v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"M20 12h2"}],["path",{d:"m19.07 4.93-1.41 1.41"}],["path",{d:"M15.947 12.65a4 4 0 0 0-5.925-4.128"}],["path",{d:"M13 22H7a5 5 0 1 1 4.9-6H13a3 3 0 0 1 0 6Z"}]],CloudMoon:[["path",{d:"M13 16a3 3 0 0 1 0 6H7a5 5 0 1 1 4.9-6z"}],["path",{d:"M18.376 14.512a6 6 0 0 0 3.461-4.127c.148-.625-.659-.97-1.248-.714a4 4 0 0 1-5.259-5.26c.255-.589-.09-1.395-.716-1.248a6 6 0 0 0-4.594 5.36"}]],CloudFog:[["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242"}],["path",{d:"M16 17H7"}],["path",{d:"M17 21H9"}]],Wind:[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2"}]],Thermometer:[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z"}]],Droplets:[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97"}]],Umbrella:[["path",{d:"M12 13v7a2 2 0 0 0 4 0"}],["path",{d:"M12 2v2"}],["path",{d:"M20.992 13a1 1 0 0 0 .97-1.274 10.284 10.284 0 0 0-19.923 0A1 1 0 0 0 3 13z"}]],Snowflake:[["path",{d:"m10 20-1.25-2.5L6 18"}],["path",{d:"M10 4 8.75 6.5 6 6"}],["path",{d:"m14 20 1.25-2.5L18 18"}],["path",{d:"m14 4 1.25 2.5L18 6"}],["path",{d:"m17 21-3-6h-4"}],["path",{d:"m17 3-3 6 1.5 3"}],["path",{d:"M2 12h6.5L10 9"}],["path",{d:"m20 10-1.5 2 1.5 2"}],["path",{d:"M22 12h-6.5L14 15"}],["path",{d:"m4 10 1.5 2L4 14"}],["path",{d:"m7 21 3-6-1.5-3"}],["path",{d:"m7 3 3 6h4"}]],Rainbow:[["path",{d:"M22 17a10 10 0 0 0-20 0"}],["path",{d:"M6 17a6 6 0 0 1 12 0"}],["path",{d:"M10 17a2 2 0 0 1 4 0"}]],Home:[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}]],ArrowLeft:[["path",{d:"m12 19-7-7 7-7"}],["path",{d:"M19 12H5"}]],ArrowRight:[["path",{d:"M5 12h14"}],["path",{d:"m12 5 7 7-7 7"}]],ArrowUp:[["path",{d:"m5 12 7-7 7 7"}],["path",{d:"M12 19V5"}]],ArrowDown:[["path",{d:"M12 5v14"}],["path",{d:"m19 12-7 7-7-7"}]],ChevronLeft:[["path",{d:"m15 18-6-6 6-6"}]],ChevronRight:[["path",{d:"m9 18 6-6-6-6"}]],ChevronUp:[["path",{d:"m18 15-6-6-6 6"}]],ChevronDown:[["path",{d:"m6 9 6 6 6-6"}]],ChevronsLeft:[["path",{d:"m11 17-5-5 5-5"}],["path",{d:"m18 17-5-5 5-5"}]],ChevronsRight:[["path",{d:"m6 17 5-5-5-5"}],["path",{d:"m13 17 5-5-5-5"}]],ChevronsUp:[["path",{d:"m17 11-5-5-5 5"}],["path",{d:"m17 18-5-5-5 5"}]],ChevronsDown:[["path",{d:"m7 6 5 5 5-5"}],["path",{d:"m7 13 5 5 5-5"}]],ExternalLink:[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]],CornerDownLeft:[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4"}],["path",{d:"m9 10-5 5 5 5"}]],CornerDownRight:[["path",{d:"m15 10 5 5-5 5"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12"}]],MoveHorizontal:[["path",{d:"m18 8 4 4-4 4"}],["path",{d:"M2 12h20"}],["path",{d:"m6 8-4 4 4 4"}]],MoveVertical:[["path",{d:"M12 2v20"}],["path",{d:"m8 18 4 4 4-4"}],["path",{d:"m8 6 4-4 4 4"}]],Plus:[["path",{d:"M5 12h14"}],["path",{d:"M12 5v14"}]],Minus:[["path",{d:"M5 12h14"}]],X:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]],Check:[["path",{d:"M20 6 9 17l-5-5"}]],Search:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]],Edit:[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"}]],Trash2:[["path",{d:"M10 11v6"}],["path",{d:"M14 11v6"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}],["path",{d:"M3 6h18"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}]],Save:[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7"}]],Download:[["path",{d:"M12 15V3"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}],["path",{d:"m7 10 5 5 5-5"}]],Upload:[["path",{d:"M12 3v12"}],["path",{d:"m17 8-5-5-5 5"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}]],Share2:[["circle",{cx:"18",cy:"5",r:"3"}],["circle",{cx:"6",cy:"12",r:"3"}],["circle",{cx:"18",cy:"19",r:"3"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49"}]],Copy:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"}]],Clipboard:[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}]],RotateCcw:[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"}],["path",{d:"M3 3v5h5"}]],RotateCw:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}]],RefreshCw:[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"}],["path",{d:"M21 3v5h-5"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"}],["path",{d:"M8 16H3v5"}]],Undo2:[["path",{d:"M9 14 4 9l5-5"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11"}]],Redo2:[["path",{d:"m15 14 5-5-5-5"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13"}]],Maximize2:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]],Minimize2:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]],ZoomIn:[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]],ZoomOut:[["circle",{cx:"11",cy:"11",r:"8"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11"}]],Send:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]],LogIn:[["path",{d:"m10 17 5-5-5-5"}],["path",{d:"M15 12H3"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}]],LogOut:[["path",{d:"m16 17 5-5-5-5"}],["path",{d:"M21 12H9"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"}]],Heart:[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5"}]],Star:[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"}]],ThumbsUp:[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}],["path",{d:"M7 10v12"}]],ThumbsDown:[["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}],["path",{d:"M17 14V2"}]],MessageCircle:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]],MessageSquare:[["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"}]],Bell:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]],BellOff:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05"}]],Mail:[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}]],Phone:[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]],PhoneCall:[["path",{d:"M13 2a9 9 0 0 1 9 9"}],["path",{d:"M13 6a5 5 0 0 1 5 5"}],["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"}]],Video:[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2"}]],AtSign:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8"}]],Users:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}],["circle",{cx:"9",cy:"7",r:"4"}]],UserPlus:[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["circle",{cx:"9",cy:"7",r:"4"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11"}]],ShoppingCart:[["circle",{cx:"8",cy:"21",r:"1"}],["circle",{cx:"19",cy:"21",r:"1"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12"}]],ShoppingBag:[["path",{d:"M16 10a4 4 0 0 1-8 0"}],["path",{d:"M3.103 6.034h17.794"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z"}]],CreditCard:[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10"}]],DollarSign:[["line",{x1:"12",x2:"12",y1:"2",y2:"22"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"}]],Package:[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z"}],["path",{d:"M12 22V12"}],["polyline",{points:"3.29 7 12 12 20.71 7"}],["path",{d:"m7.5 4.27 9 5.15"}]],Tag:[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor"}]],Receipt:[["path",{d:"M12 17V7"}],["path",{d:"M16 8h-6a2 2 0 0 0 0 4h4a2 2 0 0 1 0 4H8"}],["path",{d:"M4 3a1 1 0 0 1 1-1 1.3 1.3 0 0 1 .7.2l.933.6a1.3 1.3 0 0 0 1.4 0l.934-.6a1.3 1.3 0 0 1 1.4 0l.933.6a1.3 1.3 0 0 0 1.4 0l.933-.6a1.3 1.3 0 0 1 1.4 0l.934.6a1.3 1.3 0 0 0 1.4 0l.933-.6A1.3 1.3 0 0 1 19 2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1 1.3 1.3 0 0 1-.7-.2l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.934.6a1.3 1.3 0 0 1-1.4 0l-.933-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-1.4 0l-.934-.6a1.3 1.3 0 0 0-1.4 0l-.933.6a1.3 1.3 0 0 1-.7.2 1 1 0 0 1-1-1z"}]],Wallet:[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"}]],Banknote:[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2"}],["circle",{cx:"12",cy:"12",r:"2"}],["path",{d:"M6 12h.01M18 12h.01"}]],Percent:[["line",{x1:"19",x2:"5",y1:"5",y2:"19"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5"}]],Gift:[["path",{d:"M12 7v14"}],["path",{d:"M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8"}],["path",{d:"M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5"}],["rect",{x:"3",y:"7",width:"18",height:"4",rx:"1"}]],Store:[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"}]],Truck:[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2"}],["path",{d:"M15 18H9"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14"}],["circle",{cx:"17",cy:"18",r:"2"}],["circle",{cx:"7",cy:"18",r:"2"}]],AlertCircle:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16"}]],AlertTriangle:[["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"}],["path",{d:"M12 9v4"}],["path",{d:"M12 17h.01"}]],Info:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 16v-4"}],["path",{d:"M12 8h.01"}]],HelpCircle:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],CheckCircle:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335"}],["path",{d:"m9 11 3 3L22 4"}]],XCircle:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m15 9-6 6"}],["path",{d:"m9 9 6 6"}]],Loader:[["path",{d:"M12 2v4"}],["path",{d:"m16.2 7.8 2.9-2.9"}],["path",{d:"M18 12h4"}],["path",{d:"m16.2 16.2 2.9 2.9"}],["path",{d:"M12 18v4"}],["path",{d:"m4.9 19.1 2.9-2.9"}],["path",{d:"M2 12h4"}],["path",{d:"m4.9 4.9 2.9 2.9"}]],Loader2:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]],CircleDot:[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"1"}]],ShieldCheck:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"m9 12 2 2 4-4"}]],ShieldAlert:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}],["path",{d:"M12 8v4"}],["path",{d:"M12 16h.01"}]],Ban:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M4.929 4.929 19.07 19.071"}]],Play:[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z"}]],Pause:[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1"}]],Square:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]],SkipBack:[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z"}],["path",{d:"M3 20V4"}]],SkipForward:[["path",{d:"M21 4v16"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z"}]],Volume2:[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["path",{d:"M16 9a5 5 0 0 1 0 6"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728"}]],VolumeX:[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15"}]],Camera:[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z"}],["circle",{cx:"12",cy:"13",r:"3"}]],Image:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2"}],["circle",{cx:"9",cy:"9",r:"2"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"}]],Film:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M7 3v18"}],["path",{d:"M3 7.5h4"}],["path",{d:"M3 12h18"}],["path",{d:"M3 16.5h4"}],["path",{d:"M17 3v18"}],["path",{d:"M17 7.5h4"}],["path",{d:"M17 16.5h4"}]],Music:[["path",{d:"M9 18V5l12-2v13"}],["circle",{cx:"6",cy:"18",r:"3"}],["circle",{cx:"18",cy:"16",r:"3"}]],Mic:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]],MicOff:[["path",{d:"M12 19v3"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2"}],["path",{d:"m2 2 20 20"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12"}]],Headphones:[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3"}]],File:[["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"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}]],FileText:[["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"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}],["path",{d:"M10 9H8"}],["path",{d:"M16 13H8"}],["path",{d:"M16 17H8"}]],Folder:[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"}]],FolderOpen:[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"}]],Database:[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5"}],["path",{d:"M3 12A9 3 0 0 0 21 12"}]],HardDrive:[["path",{d:"M10 16h.01"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}],["path",{d:"M21.946 12.013H2.054"}],["path",{d:"M6 16h.01"}]],Server:[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18"}]],PieChart:[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83"}]],BarChart3:[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{d:"M18 17V9"}],["path",{d:"M13 17V5"}],["path",{d:"M8 17v-3"}]],LineChart:[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{d:"m19 9-5 5-4-4-3 3"}]],TrendingUp:[["path",{d:"M16 7h6v6"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17"}]],TrendingDown:[["path",{d:"M16 17h6v-6"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7"}]],Activity:[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2"}]],Menu:[["path",{d:"M4 5h16"}],["path",{d:"M4 12h16"}],["path",{d:"M4 19h16"}]],MoreHorizontal:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],MoreVertical:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"12",cy:"5",r:"1"}],["circle",{cx:"12",cy:"19",r:"1"}]],Grid:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}],["path",{d:"M9 3v18"}],["path",{d:"M15 3v18"}]],List:[["path",{d:"M3 5h.01"}],["path",{d:"M3 12h.01"}],["path",{d:"M3 19h.01"}],["path",{d:"M8 5h13"}],["path",{d:"M8 12h13"}],["path",{d:"M8 19h13"}]],Columns:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M12 3v18"}]],Layout:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M9 21V9"}]],Sidebar:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]],PanelLeft:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}]],PanelRight:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}]],SlidersHorizontal:[["path",{d:"M10 5H3"}],["path",{d:"M12 19H3"}],["path",{d:"M14 3v4"}],["path",{d:"M16 17v4"}],["path",{d:"M21 12h-9"}],["path",{d:"M21 19h-5"}],["path",{d:"M21 5h-7"}],["path",{d:"M8 10v4"}],["path",{d:"M8 12H3"}]],Filter:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z"}]],SortAsc:[["path",{d:"m3 8 4-4 4 4"}],["path",{d:"M7 4v16"}],["path",{d:"M11 12h4"}],["path",{d:"M11 16h7"}],["path",{d:"M11 20h10"}]],SortDesc:[["path",{d:"m3 16 4 4 4-4"}],["path",{d:"M7 20V4"}],["path",{d:"M11 4h10"}],["path",{d:"M11 8h7"}],["path",{d:"M11 12h4"}]],Table:[["path",{d:"M12 3v18"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M3 9h18"}],["path",{d:"M3 15h18"}]],Calendar:[["path",{d:"M8 2v4"}],["path",{d:"M16 2v4"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2"}],["path",{d:"M3 10h18"}]],Clock:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 6v6l4 2"}]],Timer:[["line",{x1:"10",x2:"14",y1:"2",y2:"2"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11"}],["circle",{cx:"12",cy:"14",r:"8"}]],Hourglass:[["path",{d:"M5 22h14"}],["path",{d:"M5 2h14"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2"}]],User:[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"}],["circle",{cx:"12",cy:"7",r:"4"}]],UserCheck:[["path",{d:"m16 11 2 2 4-4"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}],["circle",{cx:"9",cy:"7",r:"4"}]],Settings:[["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"}],["circle",{cx:"12",cy:"12",r:"3"}]],Sliders:[["path",{d:"M10 8h4"}],["path",{d:"M12 21v-9"}],["path",{d:"M12 8V3"}],["path",{d:"M17 16h4"}],["path",{d:"M19 12V3"}],["path",{d:"M19 21v-5"}],["path",{d:"M3 14h4"}],["path",{d:"M5 10V3"}],["path",{d:"M5 21v-7"}]],Cog:[["path",{d:"M11 10.27 7 3.34"}],["path",{d:"m11 13.73-4 6.93"}],["path",{d:"M12 22v-2"}],["path",{d:"M12 2v2"}],["path",{d:"M14 12h8"}],["path",{d:"m17 20.66-1-1.73"}],["path",{d:"m17 3.34-1 1.73"}],["path",{d:"M2 12h2"}],["path",{d:"m20.66 17-1.73-1"}],["path",{d:"m20.66 7-1.73 1"}],["path",{d:"m3.34 17 1.73-1"}],["path",{d:"m3.34 7 1.73 1"}],["circle",{cx:"12",cy:"12",r:"2"}],["circle",{cx:"12",cy:"12",r:"8"}]],MapPin:[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"}],["circle",{cx:"12",cy:"10",r:"3"}]],Map:[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z"}],["path",{d:"M15 5.764v15"}],["path",{d:"M9 3.236v15"}]],Globe:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}],["path",{d:"M2 12h20"}]],Compass:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]],Link:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"}]],Lock:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4"}]],Unlock:[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1"}]],Key:[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4"}],["path",{d:"m21 2-9.6 9.6"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5"}]],Shield:[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"}]],Eye:[["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"}],["circle",{cx:"12",cy:"12",r:"3"}]],EyeOff:[["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"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["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"}],["path",{d:"m2 2 20 20"}]],Bookmark:[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]],Flag:[["path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"}]],Award:[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526"}],["circle",{cx:"12",cy:"8",r:"6"}]],Target:[["circle",{cx:"12",cy:"12",r:"10"}],["circle",{cx:"12",cy:"12",r:"6"}],["circle",{cx:"12",cy:"12",r:"2"}]],Zap:[["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"}]],Flame:[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4"}]],Coffee:[["path",{d:"M10 2v2"}],["path",{d:"M14 2v2"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1"}],["path",{d:"M6 2v2"}]],Lightbulb:[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}],["path",{d:"M9 18h6"}],["path",{d:"M10 22h4"}]],Puzzle:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]],Rocket:[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05"}]],Code:[["path",{d:"m16 18 6-6-6-6"}],["path",{d:"m8 6-6 6 6 6"}]],Terminal:[["path",{d:"M12 19h8"}],["path",{d:"m4 17 6-6-6-6"}]],Braces:[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"}]],Hash:[["line",{x1:"4",x2:"20",y1:"9",y2:"9"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21"}]],Wifi:[["path",{d:"M12 20h.01"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}]],WifiOff:[["path",{d:"M12 20h.01"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764"}],["path",{d:"m2 2 20 20"}]],Bluetooth:[["path",{d:"m7 7 10 10-5 5V2l5 5L7 17"}]],Battery:[["path",{d:"M 22 14 L 22 10"}],["rect",{x:"2",y:"6",width:"16",height:"12",rx:"2"}]],BatteryCharging:[["path",{d:"m11 7-3 5h4l-3 5"}],["path",{d:"M14.856 6H16a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.935"}],["path",{d:"M22 14v-4"}],["path",{d:"M5.14 18H4a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h2.936"}]],Power:[["path",{d:"M12 2v10"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04"}]],Printer:[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1"}]],QrCode:[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3"}],["path",{d:"M21 21v.01"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7"}],["path",{d:"M3 12h.01"}],["path",{d:"M12 3h.01"}],["path",{d:"M12 16v.01"}],["path",{d:"M16 12h1"}],["path",{d:"M21 12v.01"}],["path",{d:"M12 21v-1"}]],Fingerprint:[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02"}],["path",{d:"M2 12a10 10 0 0 1 18-6"}],["path",{d:"M2 16h.01"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2"}]],Gauge:[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]]}});function $X(e){if(Th[e])return e;let t=e.replace(/[-_]/g,"").toLowerCase();return _N.get(t)}function bX(e,t,r){return(0,Eu.jsx)("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.map(([o,n],i)=>kN.default.createElement(o,{key:i,...n}))})}function xe({name:e,size:t=24,tone:r,children:o,style:n,className:i,"aria-label":a}){let s=r?yn(r):"currentColor",l=a?{role:"img","aria-label":a}:{"aria-hidden":!0},u={display:"inline-flex",alignItems:"center",justifyContent:"center",width:t,height:t,color:s,...n};if(o)return(0,Eu.jsx)("span",{className:i,style:u,...l,children:o});if(e){let c=$X(e);if(c)return(0,Eu.jsx)("span",{className:i,style:u,...l,children:bX(Th[c],t,s)})}return e&&/[^\x00-\x7F]/.test(e)?(0,Eu.jsx)("span",{className:i,...l,style:{...u,fontSize:t*.75,lineHeight:1},children:e}):(0,Eu.jsx)("span",{className:i,...l,style:{...u,backgroundColor:"var(--ggui-color-outlineVariant, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-sm, 4px)",color:"var(--ggui-color-outline, #d4d4d8)",fontSize:t*.5},children:"?"})}var Eu,kN,_N,Hr=x(()=>{"use strict";Eu=C(B(),1),kN=C(G(),1);xN();Zo();_N=new Map;for(let e of Object.keys(Th))_N.set(e.toLowerCase(),e)});function Ih({children:e,href:t,external:r,tone:o,underline:n="hover",style:i,className:a,...s}){let l=o?yn(o):"var(--ggui-color-primary-600, #0284c7)",u={always:"underline",hover:"none",none:"none"}[n];return(0,xs.jsxs)("a",{href:t,target:r?"_blank":void 0,rel:r?"noopener noreferrer":void 0,className:a,style:{color:l,textDecoration:u,cursor:"pointer",transition:"color 0.2s",...i},onMouseEnter:c=>{n==="hover"&&(c.target.style.textDecoration="underline")},onMouseLeave:c=>{n==="hover"&&(c.target.style.textDecoration="none")},...s,children:[e,r&&(0,xs.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",style:{marginLeft:"4px",verticalAlign:"middle"},children:[(0,xs.jsx)("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),(0,xs.jsx)("polyline",{points:"15 3 21 3 21 9"}),(0,xs.jsx)("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})]})}var xs,GS=x(()=>{"use strict";xs=C(B(),1);Zo()});function SN({children:e,content:t,position:r="top",delay:o=200,style:n,className:i}){let[a,s]=(0,Xo.useState)(!1),[l,u]=(0,Xo.useState)({top:0,left:0}),c=(0,Xo.useRef)(null),p=(0,Xo.useRef)(null),d=()=>{p.current=setTimeout(()=>{s(!0)},o)},f=()=>{p.current&&clearTimeout(p.current),s(!1)};(0,Xo.useEffect)(()=>{if(a&&c.current){let v=c.current.getBoundingClientRect(),b=8,y=0,h=0;switch(r){case"top":y=v.top-b,h=v.left+v.width/2;break;case"bottom":y=v.bottom+b,h=v.left+v.width/2;break;case"left":y=v.top+v.height/2,h=v.left-b;break;case"right":y=v.top+v.height/2,h=v.right+b;break}u({top:y,left:h})}},[a,r]),(0,Xo.useEffect)(()=>()=>{p.current&&clearTimeout(p.current)},[]);let m=()=>{switch(r){case"top":return"translateX(-50%) translateY(-100%)";case"bottom":return"translateX(-50%)";case"left":return"translateX(-100%) translateY(-50%)";case"right":return"translateY(-50%)"}};return(0,ks.jsxs)(ks.Fragment,{children:[(0,ks.jsx)("div",{ref:c,onMouseEnter:d,onMouseLeave:f,onFocus:d,onBlur:f,className:i,style:{display:"inline-block",...n},children:e}),a&&(0,ks.jsx)("div",{role:"tooltip",style:{position:"fixed",top:l.top,left:l.left,transform:m(),backgroundColor:"var(--ggui-color-onSurface, #18181b)",color:"#ffffff",padding:"6px 10px",borderRadius:"var(--ggui-shape-radius-md, 8px)",fontSize:"var(--ggui-font-size-xs, 12px)",zIndex:xt.tooltip,maxWidth:"200px",pointerEvents:"none",whiteSpace:"nowrap"},children:t})]})}var ks,Xo,wN=x(()=>{"use strict";ks=C(B(),1),Xo=C(G(),1);Lt()});function IN({columns:e,data:t,sortKey:r,sortDirection:o="asc",onSort:n,striped:i=!1,hoverable:a=!0,compact:s=!1,bordered:l=!1,caption:u,style:c,className:p}){let[d,f]=(0,TN.useState)(null),m=s?"var(--ggui-spacing-1, 4px) var(--ggui-spacing-2, 8px)":"var(--ggui-spacing-2, 8px) var(--ggui-spacing-4, 16px)",v=y=>{if(!n)return;n(y,r===y&&o==="asc"?"desc":"asc")},b={padding:m,textAlign:"left",fontWeight:"var(--ggui-font-weight-semibold, 600)",fontSize:"var(--ggui-font-size-xs, 12px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"2px solid var(--ggui-color-outlineVariant, #e4e4e7)",whiteSpace:"nowrap",userSelect:"none"};return(0,yr.jsx)("div",{className:p,style:{overflowX:"auto",borderRadius:"var(--ggui-shape-radius-lg, 8px)",border:l?"1px solid var(--ggui-color-outlineVariant, #e4e4e7)":void 0,...c},children:(0,yr.jsxs)("table",{role:"table",style:{width:"100%",borderCollapse:"collapse",fontSize:"var(--ggui-font-size-sm, 14px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:[u&&(0,yr.jsx)("caption",{style:{padding:m,fontSize:"var(--ggui-font-size-sm, 14px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)",textAlign:"left",captionSide:"top"},children:u}),(0,yr.jsx)("thead",{children:(0,yr.jsx)("tr",{children:e.map(y=>(0,yr.jsx)("th",{scope:"col","aria-sort":r===y.key?o==="asc"?"ascending":"descending":void 0,onClick:y.sortable?()=>v(y.key):void 0,onKeyDown:y.sortable?h=>{(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),v(y.key))}:void 0,tabIndex:y.sortable?0:void 0,style:{...b,textAlign:y.align||"left",width:y.width,cursor:y.sortable?"pointer":"default"},children:(0,yr.jsxs)("span",{style:{display:"inline-flex",alignItems:"center"},children:[y.header,y.sortable&&xX(r===y.key,o)]})},y.key))})}),(0,yr.jsx)("tbody",{children:t.map((y,h)=>(0,yr.jsx)("tr",{onMouseEnter:a?()=>f(h):void 0,onMouseLeave:a?()=>f(null):void 0,style:{backgroundColor:a&&d===h||i&&h%2===1?"var(--ggui-color-surface, #fafafa)":"transparent",transition:"background-color 0.15s ease"},children:e.map($=>(0,yr.jsx)("td",{style:{padding:m,textAlign:$.align||"left",borderBottom:"1px solid var(--ggui-color-surfaceVariant, #f4f4f5)",borderRight:l?"1px solid var(--ggui-color-surfaceVariant, #f4f4f5)":void 0},children:$.render?$.render(y[$.key],y,h):y[$.key]},$.key))},h))})]})})}var yr,TN,xX,EN=x(()=>{"use strict";yr=C(B(),1),TN=C(G(),1),xX=(e,t)=>(0,yr.jsxs)("span",{"aria-hidden":"true",style:{display:"inline-flex",flexDirection:"column",marginLeft:"4px",fontSize:"10px",lineHeight:1,opacity:e?1:.3},children:[(0,yr.jsx)("span",{style:{opacity:e&&t==="asc"?1:.4},children:"\u25B2"}),(0,yr.jsx)("span",{style:{opacity:e&&t==="desc"?1:.4},children:"\u25BC"})]})});function MN({items:e,activeKey:t,onChange:r,variant:o="line",size:n="md",fullWidth:i=!1,style:a,className:s}){let l=(0,Qo.useId)(),[u,c]=(0,Qo.useState)(e[0]?.key),p=t??u,d=(0,Qo.useCallback)(h=>{r?r(h):c(h)},[r]),f=e.find(h=>h.key===p),m=(0,Qo.useRef)(null),v=(0,Qo.useCallback)(h=>{let $=e.filter(O=>!O.disabled),_=$.findIndex(O=>O.key===p),S;if(h.key==="ArrowRight"||h.key==="ArrowDown"?(h.preventDefault(),S=(_+1)%$.length):h.key==="ArrowLeft"||h.key==="ArrowUp"?(h.preventDefault(),S=(_-1+$.length)%$.length):h.key==="Home"?(h.preventDefault(),S=0):h.key==="End"&&(h.preventDefault(),S=$.length-1),S!==void 0){let O=$[S];d(O.key),m.current?.querySelector(`#${CSS.escape(`${l}-tab-${O.key}`)}`)?.focus()}},[e,p,l,d]),b=(h,$)=>{let _={...kX[n],display:"inline-flex",alignItems:"center",gap:"var(--ggui-spacing-1, 4px)",cursor:$?"not-allowed":"pointer",opacity:$?.5:1,background:"none",border:"none",fontWeight:h?"var(--ggui-font-weight-semibold, 600)":"var(--ggui-font-weight-medium, 500)",transition:`color ${Y.normal} ${K.easeInOut}, background-color ${Y.normal} ${K.easeInOut}, border-color ${Y.normal} ${K.easeInOut}`,whiteSpace:"nowrap",flex:i?1:void 0,justifyContent:i?"center":void 0};return o==="line"?{..._,color:h?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-onSurfaceVariant, #52525b)",borderBottom:h?"2px solid var(--ggui-color-primary-600, #0284c7)":"2px solid transparent",marginBottom:"-1px"}:o==="pills"?{..._,color:h?"#ffffff":"var(--ggui-color-onSurfaceVariant, #52525b)",backgroundColor:h?"var(--ggui-color-primary-600, #0284c7)":"transparent",borderRadius:"var(--ggui-shape-radius-md, 6px)"}:{..._,color:h?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-onSurfaceVariant, #52525b)",backgroundColor:h?"var(--ggui-color-surface, #ffffff)":"transparent",border:h?"1px solid var(--ggui-color-outlineVariant, #e4e4e7)":"1px solid transparent",borderBottom:h?"1px solid var(--ggui-color-surface, #ffffff)":"1px solid transparent",borderRadius:"var(--ggui-shape-radius-md, 6px) var(--ggui-shape-radius-md, 6px) 0 0",marginBottom:"-1px"}};return(0,Mu.jsxs)("div",{className:s,style:a,children:[(0,Mu.jsx)("div",{ref:m,role:"tablist","aria-orientation":"horizontal",style:{display:"flex",gap:o==="pills"?"var(--ggui-spacing-1, 4px)":"0",borderBottom:o==="line"||o==="enclosed"?"1px solid var(--ggui-color-outlineVariant, #e4e4e7)":void 0,backgroundColor:o==="pills"?"var(--ggui-color-surfaceVariant, #f4f4f5)":void 0,borderRadius:o==="pills"?"var(--ggui-shape-radius-lg, 8px)":void 0,padding:o==="pills"?"var(--ggui-spacing-1, 4px)":void 0},children:e.map(h=>{let $=h.key===p,_=!!h.disabled;return(0,Mu.jsxs)("button",{role:"tab",id:`${l}-tab-${h.key}`,"aria-selected":$,"aria-controls":`${l}-panel-${h.key}`,"aria-disabled":_,tabIndex:$?0:-1,onClick:_?void 0:()=>d(h.key),onKeyDown:_?void 0:v,style:b($,_),children:[h.icon,h.label]},h.key)})}),f&&(0,Mu.jsx)("div",{role:"tabpanel",id:`${l}-panel-${f.key}`,"aria-labelledby":`${l}-tab-${f.key}`,tabIndex:0,style:{padding:"var(--ggui-spacing-4, 16px) 0"},children:f.content})]})}var Mu,Qo,kX,CN=x(()=>{"use strict";Mu=C(B(),1),Qo=C(G(),1);jn();kX={sm:{padding:"var(--ggui-spacing-1, 4px) var(--ggui-spacing-2, 8px)",fontSize:"var(--ggui-font-size-xs, 12px)"},md:{padding:"var(--ggui-spacing-2, 8px) var(--ggui-spacing-4, 16px)",fontSize:"var(--ggui-font-size-sm, 14px)"},lg:{padding:"var(--ggui-spacing-4, 12px) var(--ggui-spacing-6, 24px)",fontSize:"var(--ggui-font-size-base, 16px)"}}});function _X(e){return typeof window>"u"?e:window.matchMedia("(prefers-reduced-motion: reduce)").matches?"none":e}var _s,ya,_t,St,ZS,FS,Nd,Cu=x(()=>{"use strict";jn();_s={fadeIn:`@keyframes ggui-fadeIn {
113
+ from { opacity: 0; }
114
+ to { opacity: 1; }
115
+ }`,fadeOut:`@keyframes ggui-fadeOut {
116
+ from { opacity: 1; }
117
+ to { opacity: 0; }
118
+ }`,slideInUp:`@keyframes ggui-slideInUp {
119
+ from { opacity: 0; transform: translateY(8px); }
120
+ to { opacity: 1; transform: translateY(0); }
121
+ }`,slideInDown:`@keyframes ggui-slideInDown {
122
+ from { opacity: 0; transform: translateY(-8px); }
123
+ to { opacity: 1; transform: translateY(0); }
124
+ }`,scaleIn:`@keyframes ggui-scaleIn {
125
+ from { opacity: 0; transform: scale(0.95); }
126
+ to { opacity: 1; transform: scale(1); }
127
+ }`,scaleOut:`@keyframes ggui-scaleOut {
128
+ from { opacity: 1; transform: scale(1); }
129
+ to { opacity: 0; transform: scale(0.95); }
130
+ }`,flash:`@keyframes ggui-flash {
131
+ 0%, 15% { background-color: var(--ggui-flash-color, var(--ggui-color-primary-100)); }
132
+ 100% { background-color: transparent; }
133
+ }`,pulse:`@keyframes ggui-pulse {
134
+ 0%, 100% { opacity: 1; }
135
+ 50% { opacity: 0.6; }
136
+ }`,bounce:`@keyframes ggui-bounce {
137
+ 0% { transform: scale(1); }
138
+ 40% { transform: scale(1.06); }
139
+ 70% { transform: scale(0.98); }
140
+ 100% { transform: scale(1); }
141
+ }`},ya={fadeIn:`ggui-fadeIn ${Y.normal} ${K.easeOut} both`,fadeOut:`ggui-fadeOut ${Y.normal} ${K.easeIn} both`,slideInUp:`ggui-slideInUp ${Y.normal} ${K.easeOut} both`,slideInDown:`ggui-slideInDown ${Y.normal} ${K.easeOut} both`,scaleIn:`ggui-scaleIn ${Y.normal} ${K.easeOut} both`,scaleOut:`ggui-scaleOut ${Y.fast} ${K.easeIn} both`,flash:`ggui-flash ${Y.slow} ${K.easeOut}`,pulse:`ggui-pulse 2s ${K.easeInOut} infinite`,bounce:`ggui-bounce ${Y.slow} ${K.spring}`},_t={textIn:`@keyframes ggui-thinking-text-in {
142
+ from { opacity: 0; transform: translateY(6px); }
143
+ to { opacity: 1; transform: translateY(0); }
144
+ }`,textOut:`@keyframes ggui-thinking-text-out {
145
+ from { opacity: 1; transform: translateY(0); }
146
+ to { opacity: 0; transform: translateY(-6px); }
147
+ }`,shimmer:`@keyframes ggui-thinking-shimmer {
148
+ 0% { transform: translateX(-100%); }
149
+ 100% { transform: translateX(200%); }
150
+ }`,pulse:`@keyframes ggui-thinking-pulse {
151
+ 0%, 100% { opacity: 0.5; }
152
+ 50% { opacity: 1; }
153
+ }`,wave:`@keyframes ggui-thinking-wave {
154
+ 0% { background-position: -200% 0; }
155
+ 100% { background-position: 200% 0; }
156
+ }`,breathe:`@keyframes ggui-thinking-breathe {
157
+ 0%, 100% { transform: scale(1); opacity: 0.6; }
158
+ 50% { transform: scale(1.02); opacity: 1; }
159
+ }`,cursor:`@keyframes ggui-thinking-cursor {
160
+ 0%, 100% { border-right-color: currentColor; }
161
+ 50% { border-right-color: transparent; }
162
+ }`},St={textIn:`ggui-thinking-text-in ${Y.slow} ${K.easeOut} forwards`,textOut:`ggui-thinking-text-out ${Y.normal} ${K.easeIn} forwards`,shimmer:`ggui-thinking-shimmer 3s ${K.easeInOut} infinite`,pulse:`ggui-thinking-pulse 2s ${K.easeInOut} infinite`,wave:`ggui-thinking-wave 2s ${K.linear} infinite`,breathe:`ggui-thinking-breathe 3s ${K.easeInOut} infinite`,cursor:"ggui-thinking-cursor 1s step-end infinite"},ZS={shimmer:{background:St.shimmer,progressLabel:St.pulse,messageIn:St.textIn,messageOut:St.textOut,keyframesCss:[_t.shimmer,_t.pulse,_t.textIn,_t.textOut].join(`
163
+ `)},wave:{background:St.wave,progressLabel:St.pulse,messageIn:St.textIn,messageOut:St.textOut,keyframesCss:[_t.wave,_t.pulse,_t.textIn,_t.textOut].join(`
164
+ `)},pulse:{background:St.pulse,progressLabel:St.breathe,messageIn:St.textIn,messageOut:St.textOut,keyframesCss:[_t.pulse,_t.breathe,_t.textIn,_t.textOut].join(`
165
+ `)},breathe:{background:St.breathe,progressLabel:St.pulse,messageIn:St.textIn,messageOut:St.textOut,keyframesCss:[_t.breathe,_t.pulse,_t.textIn,_t.textOut].join(`
166
+ `)},minimal:{background:"none",progressLabel:St.pulse,messageIn:`ggui-fadeIn ${Y.normal} ${K.easeOut} both`,messageOut:`ggui-fadeOut ${Y.fast} ${K.easeIn} both`,keyframesCss:[_t.pulse,_s.fadeIn,_s.fadeOut].join(`
167
+ `)}},FS="shimmer",Nd=`@media (prefers-reduced-motion: reduce) {
168
+ *, *::before, *::after {
169
+ animation-duration: 0.01ms !important;
170
+ animation-iteration-count: 1 !important;
171
+ transition-duration: 0.01ms !important;
172
+ }
173
+ }`});function zN({message:e,variant:t="info",title:r,duration:o=5e3,onClose:n,visible:i=!0,style:a,className:s}){if((0,RN.useEffect)(()=>{if(!i||o===0||!n)return;let c=setTimeout(n,o);return()=>clearTimeout(c)},[i,o,n]),!i)return null;let l=SX[t],u={display:"flex",alignItems:"flex-start",gap:"var(--ggui-spacing-2, 8px)",padding:"var(--ggui-spacing-2, 12px) var(--ggui-spacing-4, 16px)",borderRadius:"var(--ggui-shape-radius-lg, 8px)",backgroundColor:l.bg,border:`1px solid ${l.border}`,color:l.text,boxShadow:"var(--ggui-shape-shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1))",minWidth:"280px",maxWidth:"420px",animation:ya.slideInUp,...a};return(0,Bt.jsxs)("div",{role:"alert","aria-live":"assertive",className:s,style:u,children:[(0,Bt.jsx)("div",{style:{color:l.icon,flexShrink:0,marginTop:"2px"},children:wX[t]}),(0,Bt.jsxs)("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"2px"},children:[r&&(0,Bt.jsx)("div",{style:{fontWeight:"var(--ggui-font-weight-semibold, 600)",fontSize:"var(--ggui-font-size-sm, 14px)"},children:r}),(0,Bt.jsx)("div",{style:{fontSize:"var(--ggui-font-size-sm, 14px)"},children:e})]}),n&&(0,Bt.jsx)("button",{onClick:n,"aria-label":"Dismiss notification",style:{background:"none",border:"none",padding:"4px",cursor:"pointer",color:l.text,opacity:.7,flexShrink:0,lineHeight:0,minWidth:"28px",minHeight:"28px",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--ggui-shape-radius-sm, 4px)"},children:(0,Bt.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor",children:(0,Bt.jsx)("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})})]})}var Bt,RN,SX,wX,PN=x(()=>{"use strict";Bt=C(B(),1),RN=C(G(),1);Cu();SX={info:{bg:"var(--ggui-color-info-50, #ecfeff)",border:"var(--ggui-color-info-200, #a5f3fc)",text:"var(--ggui-color-info-800, #155e75)",icon:"var(--ggui-color-info-500, #06b6d4)"},success:{bg:"var(--ggui-color-success-50, #f0fdf4)",border:"var(--ggui-color-success-200, #bbf7d0)",text:"var(--ggui-color-success-800, #166534)",icon:"var(--ggui-color-success-500, #22c55e)"},warning:{bg:"var(--ggui-color-warning-50, #fffbeb)",border:"var(--ggui-color-warning-200, #fde68a)",text:"var(--ggui-color-warning-800, #92400e)",icon:"var(--ggui-color-warning-500, #f59e0b)"},error:{bg:"var(--ggui-color-error-50, #fef2f2)",border:"var(--ggui-color-error-200, #fecaca)",text:"var(--ggui-color-error-800, #991b1b)",icon:"var(--ggui-color-error-500, #ef4444)"}},wX={info:(0,Bt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,Bt.jsx)("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"})}),success:(0,Bt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,Bt.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"})}),warning:(0,Bt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,Bt.jsx)("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"})}),error:(0,Bt.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor",children:(0,Bt.jsx)("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}});function ON({items:e,expandedKeys:t,onChange:r,multiple:o=!1,variant:n="default",style:i,className:a}){let s=(0,Eh.useId)(),[l,u]=(0,Eh.useState)([]),c=t??l,p=m=>{let v;c.includes(m)?v=c.filter(b=>b!==m):o?v=[...c,m]:v=[m],r?r(v):u(v)},d={display:"flex",flexDirection:"column",gap:n==="separated"?"var(--ggui-spacing-2, 8px)":"0",...i},f=(m,v)=>n==="separated"?{border:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-lg, 8px)",overflow:"hidden"}:n==="bordered"?{borderLeft:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderRight:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderTop:m?"1px solid var(--ggui-color-outlineVariant, #e4e4e7)":void 0,borderBottom:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderTopLeftRadius:m?"var(--ggui-shape-radius-lg, 8px)":void 0,borderTopRightRadius:m?"var(--ggui-shape-radius-lg, 8px)":void 0,borderBottomLeftRadius:v?"var(--ggui-shape-radius-lg, 8px)":void 0,borderBottomRightRadius:v?"var(--ggui-shape-radius-lg, 8px)":void 0}:{borderBottom:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderTop:m?"1px solid var(--ggui-color-outlineVariant, #e4e4e7)":void 0};return(0,Ln.jsx)("div",{className:a,style:d,children:e.map((m,v)=>{let b=c.includes(m.key),y=!!m.disabled,h=v===0,$=v===e.length-1;return(0,Ln.jsxs)("div",{style:f(h,$),children:[(0,Ln.jsx)("h3",{style:{margin:0},children:(0,Ln.jsxs)("button",{id:`${s}-header-${m.key}`,"aria-expanded":b,"aria-controls":`${s}-panel-${m.key}`,"aria-disabled":y,onClick:y?void 0:()=>p(m.key),style:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",padding:"var(--ggui-spacing-2, 12px) var(--ggui-spacing-4, 16px)",background:"none",border:"none",cursor:y?"not-allowed":"pointer",opacity:y?.5:1,fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:"var(--ggui-font-weight-medium, 500)",color:"var(--ggui-color-onSurface, #18181b)",textAlign:"left",transition:`background-color ${Y.fast} ${K.easeInOut}`},children:[(0,Ln.jsx)("span",{children:m.title}),TX(b)]})}),(0,Ln.jsx)("div",{id:`${s}-panel-${m.key}`,role:"region","aria-labelledby":`${s}-header-${m.key}`,hidden:!b,style:{overflow:"hidden"},children:b&&(0,Ln.jsx)("div",{style:{padding:"0 var(--ggui-spacing-4, 16px) var(--ggui-spacing-4, 16px)",fontSize:"var(--ggui-font-size-sm, 14px)",color:"var(--ggui-color-onSurfaceVariant, #52525b)",lineHeight:"var(--ggui-font-lineHeight-normal, 1.5)"},children:m.content})})]},m.key)})})}var Ln,Eh,TX,AN=x(()=>{"use strict";Ln=C(B(),1),Eh=C(G(),1);jn();TX=e=>(0,Ln.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",style:{transition:`transform ${Y.normal} ${K.easeInOut}`,transform:e?"rotate(180deg)":"rotate(0deg)",flexShrink:0},children:(0,Ln.jsx)("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})});function DN(){return(0,ei.useEffect)(()=>{if(document.getElementById(NN))return;let e=document.createElement("style");return e.id=NN,e.textContent=[...Object.values(_s),Nd].join(`
174
+
175
+ `),document.head.appendChild(e),()=>{e.remove()}},[]),null}function jN(){let[e,t]=(0,ei.useState)(()=>typeof window>"u"?!0:!window.matchMedia("(prefers-reduced-motion: reduce)").matches);return(0,ei.useEffect)(()=>{let r=window.matchMedia("(prefers-reduced-motion: reduce)"),o=n=>t(!n.matches);return r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[]),{motionEnabled:e}}function UN(e){let[t,r]=(0,ei.useState)(0),o=(0,ei.useRef)(!0);return(0,ei.useEffect)(()=>{if(o.current){o.current=!1;return}r(n=>n+1)},[e]),t}var ei,NN,LN=x(()=>{"use strict";ei=C(G(),1);Cu();NN="ggui-motion-keyframes"});var WS={};ct(WS,{Accordion:()=>ON,Alert:()=>yN,Avatar:()=>fo,Badge:()=>po,Box:()=>VA,Button:()=>Ae,Card:()=>vn,Checkbox:()=>bs,Container:()=>DA,Divider:()=>$h,Grid:()=>qA,Heading:()=>Vr,Icon:()=>xe,Image:()=>wh,Input:()=>Tu,Link:()=>Ih,MotionKeyframes:()=>DN,Progress:()=>Sh,RadioGroup:()=>iN,Row:()=>ys,Select:()=>_h,Skeleton:()=>fN,Slider:()=>lN,Spacer:()=>ZA,Spinner:()=>kt,Stack:()=>zt,Table:()=>IN,Tabs:()=>MN,Text:()=>it,TextArea:()=>Od,Toast:()=>zN,Toggle:()=>rN,Tooltip:()=>SN,useAnimationKey:()=>UN,useMotion:()=>jN});var Ru=x(()=>{"use strict";jA();zS();Rd();PS();BA();HA();GA();FA();xh();kh();Wo();US();LS();eN();qS();nN();aN();uN();pN();co();mN();Ad();vN();HS();bN();Hr();GS();wN();EN();CN();PN();AN();LN()});async function a7(e){if(typeof window>"u")return{outcome:"unsupported",mechanism:null};let t=null;try{t=window.open(e,"_blank","noopener,noreferrer")}catch{t=null}try{let o=document.createElement("a");o.href=e,o.target="_blank",o.rel="noopener noreferrer",o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)}catch{}try{window.parent.postMessage({jsonrpc:"2.0",method:"ui/request/open-url",params:{url:e}},"*")}catch{}try{window.parent.postMessage({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"tools/call",params:{name:"open_url",arguments:{url:e}}},"*")}catch{}let r=!1;if(typeof navigator<"u"&&navigator.clipboard)try{await Promise.race([navigator.clipboard.writeText(e).then(()=>{r=!0},()=>{r=!1}),new Promise(n=>setTimeout(n,1500))])}catch{r=!1}return t!==null?{outcome:"opened",mechanism:"window.open"}:r?{outcome:"copied",mechanism:"clipboard"}:{outcome:"unsupported",mechanism:null}}var s7=x(()=>{"use strict"});var Pu,or,jd,ba,xa,ka,Ud,l7,u7,GX,ZX,FX,WX,c7,KX,JX,YX,XX,p7,pme,d7=x(()=>{Pu=function(e,t){let n=e,i=jd[t],a=null,s=0,l=null,u=[],c={},p=function(k,T){s=n*4+17,a=(function(I){let M=new Array(I);for(let z=0;z<I;z+=1){M[z]=new Array(I);for(let A=0;A<I;A+=1)M[z][A]=null}return M})(s),d(0,0),d(s-7,0),d(0,s-7),v(),m(),y(k,T),n>=7&&b(k),l==null&&(l=_(n,i,u)),h(l,T)},d=function(k,T){for(let I=-1;I<=7;I+=1)if(!(k+I<=-1||s<=k+I))for(let M=-1;M<=7;M+=1)T+M<=-1||s<=T+M||(0<=I&&I<=6&&(M==0||M==6)||0<=M&&M<=6&&(I==0||I==6)||2<=I&&I<=4&&2<=M&&M<=4?a[k+I][T+M]=!0:a[k+I][T+M]=!1)},f=function(){let k=0,T=0;for(let I=0;I<8;I+=1){p(!0,I);let M=xa.getLostPoint(c);(I==0||k>M)&&(k=M,T=I)}return T},m=function(){for(let k=8;k<s-8;k+=1)a[k][6]==null&&(a[k][6]=k%2==0);for(let k=8;k<s-8;k+=1)a[6][k]==null&&(a[6][k]=k%2==0)},v=function(){let k=xa.getPatternPosition(n);for(let T=0;T<k.length;T+=1)for(let I=0;I<k.length;I+=1){let M=k[T],z=k[I];if(a[M][z]==null)for(let A=-2;A<=2;A+=1)for(let H=-2;H<=2;H+=1)A==-2||A==2||H==-2||H==2||A==0&&H==0?a[M+A][z+H]=!0:a[M+A][z+H]=!1}},b=function(k){let T=xa.getBCHTypeNumber(n);for(let I=0;I<18;I+=1){let M=!k&&(T>>I&1)==1;a[Math.floor(I/3)][I%3+s-8-3]=M}for(let I=0;I<18;I+=1){let M=!k&&(T>>I&1)==1;a[I%3+s-8-3][Math.floor(I/3)]=M}},y=function(k,T){let I=i<<3|T,M=xa.getBCHTypeInfo(I);for(let z=0;z<15;z+=1){let A=!k&&(M>>z&1)==1;z<6?a[z][8]=A:z<8?a[z+1][8]=A:a[s-15+z][8]=A}for(let z=0;z<15;z+=1){let A=!k&&(M>>z&1)==1;z<8?a[8][s-z-1]=A:z<9?a[8][15-z-1+1]=A:a[8][15-z-1]=A}a[s-8][8]=!k},h=function(k,T){let I=-1,M=s-1,z=7,A=0,H=xa.getMaskFunction(T);for(let ee=s-1;ee>0;ee-=2)for(ee==6&&(ee-=1);;){for(let Ie=0;Ie<2;Ie+=1)if(a[M][ee-Ie]==null){let He=!1;A<k.length&&(He=(k[A]>>>z&1)==1),H(M,ee-Ie)&&(He=!He),a[M][ee-Ie]=He,z-=1,z==-1&&(A+=1,z=7)}if(M+=I,M<0||s<=M){M-=I,I=-I;break}}},$=function(k,T){let I=0,M=0,z=0,A=new Array(T.length),H=new Array(T.length);for(let J=0;J<T.length;J+=1){let Se=T[J].dataCount,yt=T[J].totalCount-Se;M=Math.max(M,Se),z=Math.max(z,yt),A[J]=new Array(Se);for(let Ge=0;Ge<A[J].length;Ge+=1)A[J][Ge]=255&k.getBuffer()[Ge+I];I+=Se;let Fr=xa.getErrorCorrectPolynomial(yt),we=Ud(A[J],Fr.getLength()-1).mod(Fr);H[J]=new Array(Fr.getLength()-1);for(let Ge=0;Ge<H[J].length;Ge+=1){let wt=Ge+we.getLength()-H[J].length;H[J][Ge]=wt>=0?we.getAt(wt):0}}let ee=0;for(let J=0;J<T.length;J+=1)ee+=T[J].totalCount;let Ie=new Array(ee),He=0;for(let J=0;J<M;J+=1)for(let Se=0;Se<T.length;Se+=1)J<A[Se].length&&(Ie[He]=A[Se][J],He+=1);for(let J=0;J<z;J+=1)for(let Se=0;Se<T.length;Se+=1)J<H[Se].length&&(Ie[He]=H[Se][J],He+=1);return Ie},_=function(k,T,I){let M=l7.getRSBlocks(k,T),z=u7();for(let H=0;H<I.length;H+=1){let ee=I[H];z.put(ee.getMode(),4),z.put(ee.getLength(),xa.getLengthInBits(ee.getMode(),k)),ee.write(z)}let A=0;for(let H=0;H<M.length;H+=1)A+=M[H].dataCount;if(z.getLengthInBits()>A*8)throw"code length overflow. ("+z.getLengthInBits()+">"+A*8+")";for(z.getLengthInBits()+4<=A*8&&z.put(0,4);z.getLengthInBits()%8!=0;)z.putBit(!1);for(;!(z.getLengthInBits()>=A*8||(z.put(236,8),z.getLengthInBits()>=A*8));)z.put(17,8);return $(z,M)};c.addData=function(k,T){T=T||"Byte";let I=null;switch(T){case"Numeric":I=GX(k);break;case"Alphanumeric":I=ZX(k);break;case"Byte":I=FX(k);break;case"Kanji":I=WX(k);break;default:throw"mode:"+T}u.push(I),l=null},c.isDark=function(k,T){if(k<0||s<=k||T<0||s<=T)throw k+","+T;return a[k][T]},c.getModuleCount=function(){return s},c.make=function(){if(n<1){let k=1;for(;k<40;k++){let T=l7.getRSBlocks(k,i),I=u7();for(let z=0;z<u.length;z++){let A=u[z];I.put(A.getMode(),4),I.put(A.getLength(),xa.getLengthInBits(A.getMode(),k)),A.write(I)}let M=0;for(let z=0;z<T.length;z++)M+=T[z].dataCount;if(I.getLengthInBits()<=M*8)break}n=k}p(!1,f())},c.createTableTag=function(k,T){k=k||2,T=typeof T>"u"?k*4:T;let I="";I+='<table style="',I+=" border-width: 0px; border-style: none;",I+=" border-collapse: collapse;",I+=" padding: 0px; margin: "+T+"px;",I+='">',I+="<tbody>";for(let M=0;M<c.getModuleCount();M+=1){I+="<tr>";for(let z=0;z<c.getModuleCount();z+=1)I+='<td style="',I+=" border-width: 0px; border-style: none;",I+=" border-collapse: collapse;",I+=" padding: 0px; margin: 0px;",I+=" width: "+k+"px;",I+=" height: "+k+"px;",I+=" background-color: ",I+=c.isDark(M,z)?"#000000":"#ffffff",I+=";",I+='"/>';I+="</tr>"}return I+="</tbody>",I+="</table>",I},c.createSvgTag=function(k,T,I,M){let z={};typeof arguments[0]=="object"&&(z=arguments[0],k=z.cellSize,T=z.margin,I=z.alt,M=z.title),k=k||2,T=typeof T>"u"?k*4:T,I=typeof I=="string"?{text:I}:I||{},I.text=I.text||null,I.id=I.text?I.id||"qrcode-description":null,M=typeof M=="string"?{text:M}:M||{},M.text=M.text||null,M.id=M.text?M.id||"qrcode-title":null;let A=c.getModuleCount()*k+T*2,H,ee,Ie,He,J="",Se;for(Se="l"+k+",0 0,"+k+" -"+k+",0 0,-"+k+"z ",J+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',J+=z.scalable?"":' width="'+A+'px" height="'+A+'px"',J+=' viewBox="0 0 '+A+" "+A+'" ',J+=' preserveAspectRatio="xMinYMin meet"',J+=M.text||I.text?' role="img" aria-labelledby="'+S([M.id,I.id].join(" ").trim())+'"':"",J+=">",J+=M.text?'<title id="'+S(M.id)+'">'+S(M.text)+"</title>":"",J+=I.text?'<description id="'+S(I.id)+'">'+S(I.text)+"</description>":"",J+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',J+='<path d="',Ie=0;Ie<c.getModuleCount();Ie+=1)for(He=Ie*k+T,H=0;H<c.getModuleCount();H+=1)c.isDark(Ie,H)&&(ee=H*k+T,J+="M"+ee+","+He+Se);return J+='" stroke="transparent" fill="black"/>',J+="</svg>",J},c.createDataURL=function(k,T){k=k||2,T=typeof T>"u"?k*4:T;let I=c.getModuleCount()*k+T*2,M=T,z=I-T;return XX(I,I,function(A,H){if(M<=A&&A<z&&M<=H&&H<z){let ee=Math.floor((A-M)/k),Ie=Math.floor((H-M)/k);return c.isDark(Ie,ee)?0:1}else return 1})},c.createImgTag=function(k,T,I){k=k||2,T=typeof T>"u"?k*4:T;let M=c.getModuleCount()*k+T*2,z="";return z+="<img",z+=' src="',z+=c.createDataURL(k,T),z+='"',z+=' width="',z+=M,z+='"',z+=' height="',z+=M,z+='"',I&&(z+=' alt="',z+=S(I),z+='"'),z+="/>",z};let S=function(k){let T="";for(let I=0;I<k.length;I+=1){let M=k.charAt(I);switch(M){case"<":T+="&lt;";break;case">":T+="&gt;";break;case"&":T+="&amp;";break;case'"':T+="&quot;";break;default:T+=M;break}}return T},O=function(k){k=typeof k>"u"?2:k;let I=c.getModuleCount()*1+k*2,M=k,z=I-k,A,H,ee,Ie,He,J={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},Se={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},yt="";for(A=0;A<I;A+=2){for(ee=Math.floor((A-M)/1),Ie=Math.floor((A+1-M)/1),H=0;H<I;H+=1)He="\u2588",M<=H&&H<z&&M<=A&&A<z&&c.isDark(ee,Math.floor((H-M)/1))&&(He=" "),M<=H&&H<z&&M<=A+1&&A+1<z&&c.isDark(Ie,Math.floor((H-M)/1))?He+=" ":He+="\u2588",yt+=k<1&&A+1>=z?Se[He]:J[He];yt+=`
176
+ `}return I%2&&k>0?yt.substring(0,yt.length-I-1)+Array(I+1).join("\u2580"):yt.substring(0,yt.length-1)};return c.createASCII=function(k,T){if(k=k||1,k<2)return O(T);k-=1,T=typeof T>"u"?k*2:T;let I=c.getModuleCount()*k+T*2,M=T,z=I-T,A,H,ee,Ie,He=Array(k+1).join("\u2588\u2588"),J=Array(k+1).join(" "),Se="",yt="";for(A=0;A<I;A+=1){for(ee=Math.floor((A-M)/k),yt="",H=0;H<I;H+=1)Ie=1,M<=H&&H<z&&M<=A&&A<z&&c.isDark(ee,Math.floor((H-M)/k))&&(Ie=0),yt+=Ie?He:J;for(ee=0;ee<k;ee+=1)Se+=yt+`
177
+ `}return Se.substring(0,Se.length-1)},c.renderTo2dContext=function(k,T){T=T||2;let I=c.getModuleCount();for(let M=0;M<I;M++)for(let z=0;z<I;z++)k.fillStyle=c.isDark(M,z)?"black":"white",k.fillRect(z*T,M*T,T,T)},c};Pu.stringToBytes=function(e){let t=[];for(let r=0;r<e.length;r+=1){let o=e.charCodeAt(r);t.push(o&255)}return t};Pu.createStringToBytes=function(e,t){let r=(function(){let n=JX(e),i=function(){let l=n.read();if(l==-1)throw"eof";return l},a=0,s={};for(;;){let l=n.read();if(l==-1)break;let u=i(),c=i(),p=i(),d=String.fromCharCode(l<<8|u),f=c<<8|p;s[d]=f,a+=1}if(a!=t)throw a+" != "+t;return s})(),o=63;return function(n){let i=[];for(let a=0;a<n.length;a+=1){let s=n.charCodeAt(a);if(s<128)i.push(s);else{let l=r[n.charAt(a)];typeof l=="number"?(l&255)==l?i.push(l):(i.push(l>>>8),i.push(l&255)):i.push(o)}}return i}};or={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},jd={L:1,M:0,Q:3,H:2},ba={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},xa=(function(){let e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],t=1335,r=7973,o=21522,n={},i=function(a){let s=0;for(;a!=0;)s+=1,a>>>=1;return s};return n.getBCHTypeInfo=function(a){let s=a<<10;for(;i(s)-i(t)>=0;)s^=t<<i(s)-i(t);return(a<<10|s)^o},n.getBCHTypeNumber=function(a){let s=a<<12;for(;i(s)-i(r)>=0;)s^=r<<i(s)-i(r);return a<<12|s},n.getPatternPosition=function(a){return e[a-1]},n.getMaskFunction=function(a){switch(a){case ba.PATTERN000:return function(s,l){return(s+l)%2==0};case ba.PATTERN001:return function(s,l){return s%2==0};case ba.PATTERN010:return function(s,l){return l%3==0};case ba.PATTERN011:return function(s,l){return(s+l)%3==0};case ba.PATTERN100:return function(s,l){return(Math.floor(s/2)+Math.floor(l/3))%2==0};case ba.PATTERN101:return function(s,l){return s*l%2+s*l%3==0};case ba.PATTERN110:return function(s,l){return(s*l%2+s*l%3)%2==0};case ba.PATTERN111:return function(s,l){return(s*l%3+(s+l)%2)%2==0};default:throw"bad maskPattern:"+a}},n.getErrorCorrectPolynomial=function(a){let s=Ud([1],0);for(let l=0;l<a;l+=1)s=s.multiply(Ud([1,ka.gexp(l)],0));return s},n.getLengthInBits=function(a,s){if(1<=s&&s<10)switch(a){case or.MODE_NUMBER:return 10;case or.MODE_ALPHA_NUM:return 9;case or.MODE_8BIT_BYTE:return 8;case or.MODE_KANJI:return 8;default:throw"mode:"+a}else if(s<27)switch(a){case or.MODE_NUMBER:return 12;case or.MODE_ALPHA_NUM:return 11;case or.MODE_8BIT_BYTE:return 16;case or.MODE_KANJI:return 10;default:throw"mode:"+a}else if(s<41)switch(a){case or.MODE_NUMBER:return 14;case or.MODE_ALPHA_NUM:return 13;case or.MODE_8BIT_BYTE:return 16;case or.MODE_KANJI:return 12;default:throw"mode:"+a}else throw"type:"+s},n.getLostPoint=function(a){let s=a.getModuleCount(),l=0;for(let p=0;p<s;p+=1)for(let d=0;d<s;d+=1){let f=0,m=a.isDark(p,d);for(let v=-1;v<=1;v+=1)if(!(p+v<0||s<=p+v))for(let b=-1;b<=1;b+=1)d+b<0||s<=d+b||v==0&&b==0||m==a.isDark(p+v,d+b)&&(f+=1);f>5&&(l+=3+f-5)}for(let p=0;p<s-1;p+=1)for(let d=0;d<s-1;d+=1){let f=0;a.isDark(p,d)&&(f+=1),a.isDark(p+1,d)&&(f+=1),a.isDark(p,d+1)&&(f+=1),a.isDark(p+1,d+1)&&(f+=1),(f==0||f==4)&&(l+=3)}for(let p=0;p<s;p+=1)for(let d=0;d<s-6;d+=1)a.isDark(p,d)&&!a.isDark(p,d+1)&&a.isDark(p,d+2)&&a.isDark(p,d+3)&&a.isDark(p,d+4)&&!a.isDark(p,d+5)&&a.isDark(p,d+6)&&(l+=40);for(let p=0;p<s;p+=1)for(let d=0;d<s-6;d+=1)a.isDark(d,p)&&!a.isDark(d+1,p)&&a.isDark(d+2,p)&&a.isDark(d+3,p)&&a.isDark(d+4,p)&&!a.isDark(d+5,p)&&a.isDark(d+6,p)&&(l+=40);let u=0;for(let p=0;p<s;p+=1)for(let d=0;d<s;d+=1)a.isDark(d,p)&&(u+=1);let c=Math.abs(100*u/s/s-50)/5;return l+=c*10,l},n})(),ka=(function(){let e=new Array(256),t=new Array(256);for(let o=0;o<8;o+=1)e[o]=1<<o;for(let o=8;o<256;o+=1)e[o]=e[o-4]^e[o-5]^e[o-6]^e[o-8];for(let o=0;o<255;o+=1)t[e[o]]=o;let r={};return r.glog=function(o){if(o<1)throw"glog("+o+")";return t[o]},r.gexp=function(o){for(;o<0;)o+=255;for(;o>=256;)o-=255;return e[o]},r})(),Ud=function(e,t){if(typeof e.length>"u")throw e.length+"/"+t;let r=(function(){let n=0;for(;n<e.length&&e[n]==0;)n+=1;let i=new Array(e.length-n+t);for(let a=0;a<e.length-n;a+=1)i[a]=e[a+n];return i})(),o={};return o.getAt=function(n){return r[n]},o.getLength=function(){return r.length},o.multiply=function(n){let i=new Array(o.getLength()+n.getLength()-1);for(let a=0;a<o.getLength();a+=1)for(let s=0;s<n.getLength();s+=1)i[a+s]^=ka.gexp(ka.glog(o.getAt(a))+ka.glog(n.getAt(s)));return Ud(i,0)},o.mod=function(n){if(o.getLength()-n.getLength()<0)return o;let i=ka.glog(o.getAt(0))-ka.glog(n.getAt(0)),a=new Array(o.getLength());for(let s=0;s<o.getLength();s+=1)a[s]=o.getAt(s);for(let s=0;s<n.getLength();s+=1)a[s]^=ka.gexp(ka.glog(n.getAt(s))+i);return Ud(a,0).mod(n)},o},l7=(function(){let e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(n,i){let a={};return a.totalCount=n,a.dataCount=i,a},r={},o=function(n,i){switch(i){case jd.L:return e[(n-1)*4+0];case jd.M:return e[(n-1)*4+1];case jd.Q:return e[(n-1)*4+2];case jd.H:return e[(n-1)*4+3];default:return}};return r.getRSBlocks=function(n,i){let a=o(n,i);if(typeof a>"u")throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+i;let s=a.length/3,l=[];for(let u=0;u<s;u+=1){let c=a[u*3+0],p=a[u*3+1],d=a[u*3+2];for(let f=0;f<c;f+=1)l.push(t(p,d))}return l},r})(),u7=function(){let e=[],t=0,r={};return r.getBuffer=function(){return e},r.getAt=function(o){let n=Math.floor(o/8);return(e[n]>>>7-o%8&1)==1},r.put=function(o,n){for(let i=0;i<n;i+=1)r.putBit((o>>>n-i-1&1)==1)},r.getLengthInBits=function(){return t},r.putBit=function(o){let n=Math.floor(t/8);e.length<=n&&e.push(0),o&&(e[n]|=128>>>t%8),t+=1},r},GX=function(e){let t=or.MODE_NUMBER,r=e,o={};o.getMode=function(){return t},o.getLength=function(a){return r.length},o.write=function(a){let s=r,l=0;for(;l+2<s.length;)a.put(n(s.substring(l,l+3)),10),l+=3;l<s.length&&(s.length-l==1?a.put(n(s.substring(l,l+1)),4):s.length-l==2&&a.put(n(s.substring(l,l+2)),7))};let n=function(a){let s=0;for(let l=0;l<a.length;l+=1)s=s*10+i(a.charAt(l));return s},i=function(a){if("0"<=a&&a<="9")return a.charCodeAt(0)-48;throw"illegal char :"+a};return o},ZX=function(e){let t=or.MODE_ALPHA_NUM,r=e,o={};o.getMode=function(){return t},o.getLength=function(i){return r.length},o.write=function(i){let a=r,s=0;for(;s+1<a.length;)i.put(n(a.charAt(s))*45+n(a.charAt(s+1)),11),s+=2;s<a.length&&i.put(n(a.charAt(s)),6)};let n=function(i){if("0"<=i&&i<="9")return i.charCodeAt(0)-48;if("A"<=i&&i<="Z")return i.charCodeAt(0)-65+10;switch(i){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+i}};return o},FX=function(e){let t=or.MODE_8BIT_BYTE,r=e,o=Pu.stringToBytes(e),n={};return n.getMode=function(){return t},n.getLength=function(i){return o.length},n.write=function(i){for(let a=0;a<o.length;a+=1)i.put(o[a],8)},n},WX=function(e){let t=or.MODE_KANJI,r=e,o=Pu.stringToBytes;(function(a,s){let l=o(a);if(l.length!=2||(l[0]<<8|l[1])!=s)throw"sjis not supported."})("\u53CB",38726);let n=o(e),i={};return i.getMode=function(){return t},i.getLength=function(a){return~~(n.length/2)},i.write=function(a){let s=n,l=0;for(;l+1<s.length;){let u=(255&s[l])<<8|255&s[l+1];if(33088<=u&&u<=40956)u-=33088;else if(57408<=u&&u<=60351)u-=49472;else throw"illegal char at "+(l+1)+"/"+u;u=(u>>>8&255)*192+(u&255),a.put(u,13),l+=2}if(l<s.length)throw"illegal char at "+(l+1)},i},c7=function(){let e=[],t={};return t.writeByte=function(r){e.push(r&255)},t.writeShort=function(r){t.writeByte(r),t.writeByte(r>>>8)},t.writeBytes=function(r,o,n){o=o||0,n=n||r.length;for(let i=0;i<n;i+=1)t.writeByte(r[i+o])},t.writeString=function(r){for(let o=0;o<r.length;o+=1)t.writeByte(r.charCodeAt(o))},t.toByteArray=function(){return e},t.toString=function(){let r="";r+="[";for(let o=0;o<e.length;o+=1)o>0&&(r+=","),r+=e[o];return r+="]",r},t},KX=function(){let e=0,t=0,r=0,o="",n={},i=function(s){o+=String.fromCharCode(a(s&63))},a=function(s){if(s<0)throw"n:"+s;if(s<26)return 65+s;if(s<52)return 97+(s-26);if(s<62)return 48+(s-52);if(s==62)return 43;if(s==63)return 47;throw"n:"+s};return n.writeByte=function(s){for(e=e<<8|s&255,t+=8,r+=1;t>=6;)i(e>>>t-6),t-=6},n.flush=function(){if(t>0&&(i(e<<6-t),e=0,t=0),r%3!=0){let s=3-r%3;for(let l=0;l<s;l+=1)o+="="}},n.toString=function(){return o},n},JX=function(e){let t=e,r=0,o=0,n=0,i={};i.read=function(){for(;n<8;){if(r>=t.length){if(n==0)return-1;throw"unexpected end of file./"+n}let l=t.charAt(r);if(r+=1,l=="=")return n=0,-1;if(l.match(/^\s$/))continue;o=o<<6|a(l.charCodeAt(0)),n+=6}let s=o>>>n-8&255;return n-=8,s};let a=function(s){if(65<=s&&s<=90)return s-65;if(97<=s&&s<=122)return s-97+26;if(48<=s&&s<=57)return s-48+52;if(s==43)return 62;if(s==47)return 63;throw"c:"+s};return i},YX=function(e,t){let r=e,o=t,n=new Array(e*t),i={};i.setPixel=function(u,c,p){n[c*r+u]=p},i.write=function(u){u.writeString("GIF87a"),u.writeShort(r),u.writeShort(o),u.writeByte(128),u.writeByte(0),u.writeByte(0),u.writeByte(0),u.writeByte(0),u.writeByte(0),u.writeByte(255),u.writeByte(255),u.writeByte(255),u.writeString(","),u.writeShort(0),u.writeShort(0),u.writeShort(r),u.writeShort(o),u.writeByte(0);let c=2,p=s(c);u.writeByte(c);let d=0;for(;p.length-d>255;)u.writeByte(255),u.writeBytes(p,d,255),d+=255;u.writeByte(p.length-d),u.writeBytes(p,d,p.length-d),u.writeByte(0),u.writeString(";")};let a=function(u){let c=u,p=0,d=0,f={};return f.write=function(m,v){if(m>>>v)throw"length over";for(;p+v>=8;)c.writeByte(255&(m<<p|d)),v-=8-p,m>>>=8-p,d=0,p=0;d=m<<p|d,p=p+v},f.flush=function(){p>0&&c.writeByte(d)},f},s=function(u){let c=1<<u,p=(1<<u)+1,d=u+1,f=l();for(let h=0;h<c;h+=1)f.add(String.fromCharCode(h));f.add(String.fromCharCode(c)),f.add(String.fromCharCode(p));let m=c7(),v=a(m);v.write(c,d);let b=0,y=String.fromCharCode(n[b]);for(b+=1;b<n.length;){let h=String.fromCharCode(n[b]);b+=1,f.contains(y+h)?y=y+h:(v.write(f.indexOf(y),d),f.size()<4095&&(f.size()==1<<d&&(d+=1),f.add(y+h)),y=h)}return v.write(f.indexOf(y),d),v.write(p,d),v.flush(),m.toByteArray()},l=function(){let u={},c=0,p={};return p.add=function(d){if(p.contains(d))throw"dup key:"+d;u[d]=c,c+=1},p.size=function(){return c},p.indexOf=function(d){return u[d]},p.contains=function(d){return typeof u[d]<"u"},p};return i},XX=function(e,t,r){let o=YX(e,t);for(let s=0;s<t;s+=1)for(let l=0;l<e;l+=1)o.setPixel(l,s,r(l,s));let n=c7();o.write(n);let i=KX(),a=n.toByteArray();for(let s=0;s<a.length;s+=1)i.writeByte(a[s]);return i.flush(),"data:image/gif;base64,"+i},p7=Pu,pme=Pu.stringToBytes});function m7({value:e,size:t=128,errorCorrection:r="M",foreground:o="var(--ggui-color-onSurface, #18181b)",background:n="var(--ggui-color-surface, #ffffff)",ariaLabel:i}){let a=f7.useMemo(()=>{try{let l=p7(0,r);l.addData(e),l.make();let u=l.getModuleCount(),c=[];for(let p=0;p<u;p+=1){let d=[];for(let f=0;f<u;f+=1)d.push(l.isDark(p,f));c.push(d)}return c}catch{return null}},[e,r]);if(a===null)return null;let s=a.length;return(0,Ld.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${s} ${s}`,width:t,height:t,role:"img","aria-label":i??`QR code for ${e}`,shapeRendering:"crispEdges",style:{display:"block",flexShrink:0},children:[(0,Ld.jsx)("rect",{width:s,height:s,fill:n}),a.flatMap((l,u)=>l.map((c,p)=>c?(0,Ld.jsx)("rect",{x:p,y:u,width:1,height:1,fill:o},`${p}-${u}`):null))]})}var f7,Ld,g7=x(()=>{"use strict";f7=C(G(),1);d7();Ld=C(B(),1)});function eQ(){let e="var(--ggui-color-onSurface, #292929)",t="var(--ggui-color-neutral-300, #d1d5db)";return(0,_e.jsxs)("svg",{viewBox:"0 0 224 50",width:"72",height:"16",role:"img","aria-label":"ggui",style:{display:"block",flexShrink:0},children:[(0,_e.jsx)("path",{d:"M 0 0 H 50 V 25 H 25 V 50 H 0 Z",fill:t}),(0,_e.jsx)("rect",{x:"33",y:"33",width:"17",height:"17",fill:e}),(0,_e.jsx)("path",{d:"M 58 0 H 108 V 25 H 83 V 50 H 58 Z",fill:e}),(0,_e.jsx)("rect",{x:"91",y:"33",width:"17",height:"17",fill:t}),(0,_e.jsx)("path",{d:"M 141 50 C 154.807 50 166 38.8071 166 25 V 0 H 116 V 25 C 116 38.8071 127.193 50 141 50 Z",fill:e}),(0,_e.jsx)("rect",{x:"174",y:"0",width:"50",height:"50",fill:t})]})}function rw({settingsUrl:e,intent:t}){let[r,o]=Ph.useState("idle"),n=Ph.useCallback(()=>{typeof console<"u"&&console.log("[ggui:no-creds-card] click \u2192 settingsUrl =",e),o("working"),a7(e).then(s=>{typeof console<"u"&&console.log("[ggui:no-creds-card] requestOpenUrl resolved \u2192",s);let l=s.outcome==="opened"?"opened":s.outcome==="copied"?"copied":"manual";o(l),typeof window<"u"&&window.setTimeout(()=>o("idle"),tQ)})},[e]);return(0,_e.jsx)(vn,{padding:"lg",border:!1,shadow:"none",style:{backgroundColor:"transparent"},children:(0,_e.jsxs)(zt,{gap:"lg",children:[(0,_e.jsxs)(zt,{gap:"md",children:[(0,_e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--ggui-spacing-3, 12px)"},children:[(0,_e.jsx)(eQ,{}),(0,_e.jsx)(po,{variant:"info",children:"Setup needed"})]}),(0,_e.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:"var(--ggui-spacing-3, 12px)",flexWrap:"wrap"},children:[(0,_e.jsx)(Vr,{level:3,children:"Connect an LLM provider"}),(0,_e.jsx)("code",{style:{fontFamily:"var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace)",fontSize:"var(--ggui-font-size-xs, 11px)",color:"var(--ggui-color-onSurfaceVariant, #71717a)",opacity:.7,userSelect:"all"},title:"iframe-runtime build identifier \u2014 useful for diagnosing stale caches",children:QX})]}),(0,_e.jsx)(it,{style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",lineHeight:"1.55"},children:"ggui needs an LLM key to render UIs. Open this server\u2019s settings page to paste an Anthropic, OpenAI, Google, or OpenRouter API key."})]}),(0,_e.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-3, 12px)",padding:"var(--ggui-spacing-4, 16px)",background:"var(--ggui-color-neutral-100, #f4f4f5)",border:"1px solid var(--ggui-color-neutral-200, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-md, 10px)"},children:(0,_e.jsxs)("div",{style:{display:"flex",gap:"var(--ggui-spacing-4, 16px)",alignItems:"flex-start",flexWrap:"wrap"},children:[(0,_e.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:"var(--ggui-spacing-2, 8px)"},children:[(0,_e.jsx)("div",{style:{padding:"var(--ggui-spacing-2, 8px)",background:"#ffffff",borderRadius:"var(--ggui-shape-radius-sm, 6px)",lineHeight:0},children:(0,_e.jsx)(m7,{value:e,size:120,foreground:"#000000",background:"#ffffff"})}),(0,_e.jsx)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",fontSize:"var(--ggui-font-size-xs, 11px)",textAlign:"center"},children:"Scan with your phone"})]}),(0,_e.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-2, 8px)",flex:"1 1 240px",minWidth:"200px"},children:[(0,_e.jsx)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",fontWeight:"var(--ggui-font-weight-semibold, 600)",textTransform:"uppercase",letterSpacing:"0.06em",fontSize:"var(--ggui-font-size-xs, 11px)"},children:"Or open this URL in your browser"}),(0,_e.jsx)("div",{style:{fontFamily:"var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace)",fontSize:"var(--ggui-font-size-sm, 13px)",color:"var(--ggui-color-onSurface, #111)",wordBreak:"break-all",userSelect:"all",padding:"var(--ggui-spacing-3, 12px)",background:"var(--ggui-color-surface, #fff)",border:"1px solid var(--ggui-color-neutral-200, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-sm, 6px)",lineHeight:"1.45"},children:e}),(0,_e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"var(--ggui-spacing-3, 12px)",flexWrap:"wrap"},children:[(0,_e.jsx)(Ae,{variant:"primary",size:"md",onClick:n,disabled:r==="working",children:r==="working"?"Opening\u2026":r==="opened"?"Opened in browser \u2713":r==="copied"?"URL copied \u2014 paste in your browser":r==="manual"?"Tap the URL above to copy":"Open settings"}),r==="idle"||r==="working"?(0,_e.jsx)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",opacity:.85},children:"or tap-and-hold the URL above to copy"}):null]})]})]})}),t?(0,_e.jsxs)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",opacity:.7},children:["Pending prompt: ",t]}):null]})})}var Ph,_e,QX,tQ,h7=x(()=>{"use strict";Ph=C(G(),1);Ru();s7();g7();_e=C(B(),1),QX="0.1.0-rc.1+9ced8742";tQ=4e3});function nQ(){let e=Gr.useRef(1e4),t=Gr.useRef(new Map);return Gr.useEffect(()=>{let r=o=>{let n=o.data;if(n===null||typeof n!="object")return;let i=n.id;if(typeof i!="number")return;let a=t.current.get(i);a!==void 0&&(t.current.delete(i),a(n))};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[]),Gr.useCallback((r,o)=>new Promise(n=>{let i=e.current;e.current+=1,t.current.set(i,n);try{window.parent.postMessage({jsonrpc:"2.0",id:i,method:r,params:o??{}},"*")}catch(a){t.current.delete(i),n({error:{code:-32099,message:a instanceof Error?a.message:String(a)}})}window.setTimeout(()=>{t.current.delete(i)&&n({error:{code:-32001,message:"TIMEOUT"}})},rQ)}),[])}function oQ(){let[e,t]=Gr.useState([]),r=Gr.useRef(0);return Gr.useEffect(()=>{let o=n=>{let i=n.data;if(i===null||typeof i!="object")return;let a=i;if(a.jsonrpc!=="2.0"||typeof a.method!="string"||typeof a.id=="number"&&a.id>=1e4&&(a.method==="ui/message"||a.method==="ui/update-model-context"||a.method==="ui/open-link"||a.method==="ui/request-display-mode"||a.method==="tools/call"))return;r.current+=1;let l={id:r.current,tsIso:new Date().toISOString(),method:a.method,params:a.params};t(u=>[l,...u].slice(0,50))};return window.addEventListener("message",o),()=>window.removeEventListener("message",o)},[]),e}function iQ(e){switch(e){case"ui/message":return{role:"user",content:[{type:"text",text:"[ggui:probe] hello from the protocol probe card"}]};case"ui/update-model-context":return{content:[{type:"text",text:"[ggui:probe] this user prefers concise replies"}]};case"ui/open-link":return{url:"https://ggui.ai"};case"ui/request-display-mode":return{mode:"fullscreen"};case"tools/call":return{name:"ggui_runtime_submit_action",arguments:{kind:"dispatch",payload:{intent:"probe-click",data:{note:"hello from the protocol probe"}},sessionId:"probe-session",appId:"probe-app",actionId:"00000000",firedAt:new Date().toISOString()}}}}function aQ(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function sQ(e){if(e==null||typeof e!="object"||Array.isArray(e))return"";let t=Object.entries(e);return t.length===0?"":t.map(([o,n])=>{if(n===null)return`${o}: null`;if(typeof n=="string")return`${o}: ${n}`;if(typeof n=="number"||typeof n=="boolean")return`${o}: ${n}`;let i=JSON.stringify(n);return`${o}: ${i.length>40?`${i.slice(0,37)}\u2026`:i}`}).join(", ")}function qd({method:e,description:t,call:r}){let[o,n]=Gr.useState({state:"idle"}),i=Gr.useCallback(()=>{let l=Date.now();n({state:"pending",startedAtMs:l});let u=iQ(e);r(e,u).then(c=>{if(c.error){n({state:"error",code:c.error.code??"?",message:c.error.message??"(no message)"});return}if(n({state:"success",result:c.result??{}}),e==="tools/call"){let d=(u.arguments??{}).payload??{},f=String(d.intent??"?"),m=d.data,v=sQ(m),b=v===""?"":` (${v})`,y=new Date().toISOString(),h=aQ(`${f}|${JSON.stringify(m??null)}|${y}`);r("ui/update-model-context",{content:[{type:"text",text:`[ggui:pending-action] ${JSON.stringify({actionId:h,intent:f,data:m??null,firedAt:y})}`}]}),r("ui/message",{role:"user",content:[{type:"text",text:`Please proceed with **${f}**${b}. [id: \`${h}\`]`}]})}})},[r,e]),a=o.state==="pending"?"Sending\u2026":o.state==="success"?"Send again \u2713":o.state==="error"?"Retry":"Send",s=o.state==="idle"?(0,se.jsx)(po,{variant:"default",children:"idle"}):o.state==="pending"?(0,se.jsx)(po,{variant:"info",children:"pending"}):o.state==="success"?(0,se.jsx)(po,{variant:"success",children:"success"}):(0,se.jsx)(po,{variant:"warning",children:"error"});return(0,se.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-2, 8px)",padding:"var(--ggui-spacing-3, 12px)",borderRadius:"var(--ggui-shape-radius-md, 10px)",border:"1px solid var(--ggui-color-neutral-200, #e4e4e7)",background:"var(--ggui-color-surface, #fff)"},children:[(0,se.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"var(--ggui-spacing-3, 12px)",flexWrap:"wrap"},children:[(0,se.jsx)("code",{style:{fontFamily:"var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace)",fontSize:"var(--ggui-font-size-sm, 13px)",color:"var(--ggui-color-onSurface, #111)",fontWeight:"var(--ggui-font-weight-semibold, 600)"},children:e}),s]}),(0,se.jsx)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",fontSize:"var(--ggui-font-size-xs, 11px)"},children:t}),(0,se.jsx)("div",{style:{display:"flex",gap:"var(--ggui-spacing-2, 8px)"},children:(0,se.jsx)(Ae,{variant:"primary",size:"sm",onClick:i,disabled:o.state==="pending",children:a})}),o.state==="success"||o.state==="error"?(0,se.jsx)("pre",{style:{margin:0,fontFamily:"var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace)",fontSize:"var(--ggui-font-size-xs, 11px)",color:o.state==="error"?"var(--ggui-color-warning, #b45309)":"var(--ggui-color-onSurfaceVariant, #52525b)",background:"var(--ggui-color-neutral-100, #f4f4f5)",padding:"var(--ggui-spacing-2, 8px)",borderRadius:"var(--ggui-shape-radius-sm, 6px)",overflow:"auto",maxHeight:"120px",whiteSpace:"pre-wrap",wordBreak:"break-word"},children:o.state==="error"?`${o.code}: ${o.message}`:JSON.stringify(o.result,null,2)}):null]})}function nw({intent:e}){let t=nQ(),r=oQ();return(0,se.jsx)(vn,{padding:"lg",border:!1,shadow:"none",style:{backgroundColor:"transparent"},children:(0,se.jsxs)(zt,{gap:"lg",children:[(0,se.jsxs)(zt,{gap:"sm",children:[(0,se.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"var(--ggui-spacing-3, 12px)",flexWrap:"wrap"},children:[(0,se.jsx)(Vr,{level:3,children:"MCP Apps protocol probe"}),(0,se.jsx)(po,{variant:"info",children:"diagnostic"})]}),(0,se.jsxs)(it,{style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",lineHeight:"1.55"},children:["One button per primary host effect emitted by the iframe runtime's gesture surfaces (Pattern \u03B1 / Pattern \u03B2 / native- idiom interceptors). Click each to verify which methods this host honors. The",(0,se.jsx)("code",{children:"tools/call"})," row chains the full Pattern \u03B2 bridge (audit + context + consent), reproducing the production",(0,se.jsx)("code",{children:"dispatchWiredAction"})," envelope shape verbatim. The receive log below captures every notification the host emits while this card is mounted."]})]}),(0,se.jsxs)(zt,{gap:"md",children:[(0,se.jsx)(qd,{method:"ui/message",description:"Pattern \u03B2 step 3 \u2014 consent-gated user authorization. Host pre-fills + waits for user confirm before the LLM acts on the paired pending-action context.",call:t}),(0,se.jsx)(qd,{method:"ui/update-model-context",description:"Pattern \u03B2 step 2 \u2014 silent structured `[ggui:pending-action]` context drop. LLM honors on next turn. No immediate UI.",call:t}),(0,se.jsx)(qd,{method:"ui/open-link",description:"Native-idiom anchor click interceptor primary effect. Opens ggui.ai in the host's browser / new tab. Real iframe code triggers via `<a href target='_blank'>` or cross-origin href.",call:t}),(0,se.jsx)(qd,{method:"ui/request-display-mode",description:"Native-idiom fullscreen interceptor primary effect. Request fullscreen \u2014 real iframe code calls `el.requestFullscreen()`; the runtime overrides the prototype to route through here.",call:t}),(0,se.jsx)(qd,{method:"tools/call",description:"Pattern \u03B2 full bridge: `tools/call ggui_runtime_submit_action` (audit, kind:'dispatch') + `ui/update-model-context` + `ui/message`. Spec \xA7401 requires `_meta.ui.visibility:['app']` on the receiving tool. Pattern \u03B1 (direct fire to a same-server app-visible target) would skip steps 2+3 and add a second `tools/call` to the target tool instead.",call:t})]}),(0,se.jsxs)(zt,{gap:"sm",children:[(0,se.jsxs)("div",{style:{display:"flex",alignItems:"baseline",justifyContent:"space-between",gap:"var(--ggui-spacing-3, 12px)"},children:[(0,se.jsx)(Vr,{level:4,children:"Receive log"}),(0,se.jsxs)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",fontSize:"var(--ggui-font-size-xs, 11px)"},children:[r.length," ",r.length===1?"event":"events"]})]}),r.length===0?(0,se.jsx)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",fontStyle:"italic"},children:"No host notifications observed yet. Click a probe button or wait for the host to emit one."}):(0,se.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"var(--ggui-spacing-1, 4px)",maxHeight:"320px",overflow:"auto",padding:"var(--ggui-spacing-2, 8px)",background:"var(--ggui-color-neutral-100, #f4f4f5)",border:"1px solid var(--ggui-color-neutral-200, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-md, 10px)"},children:r.map(o=>(0,se.jsxs)("details",{style:{fontFamily:"var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, Menlo, monospace)",fontSize:"var(--ggui-font-size-xs, 11px)"},children:[(0,se.jsxs)("summary",{style:{cursor:"pointer",padding:"var(--ggui-spacing-1, 4px) 0",color:"var(--ggui-color-onSurface, #111)"},children:[(0,se.jsx)("span",{style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",marginRight:"8px"},children:o.tsIso.slice(11,19)}),(0,se.jsx)("span",{style:{fontWeight:600},children:o.method})]}),(0,se.jsx)("pre",{style:{margin:"4px 0 0 16px",whiteSpace:"pre-wrap",wordBreak:"break-word",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:JSON.stringify(o.params,null,2)})]},o.id))})]}),e?(0,se.jsxs)(it,{variant:"caption",style:{color:"var(--ggui-color-onSurfaceVariant, #52525b)",opacity:.7},children:["Triggered by: ",e]}):null]})})}var Gr,se,rQ,y7=x(()=>{"use strict";Gr=C(G(),1);Ru();se=C(B(),1),rQ=5e3});function v7(){if(typeof window>"u")return!1;try{let e=window.location?.hostname??"";if(e.endsWith("claudemcpcontent.com")||/(^|\.)claude\.ai$/i.test(e)||/claude/i.test(e))return!0;let t=typeof document<"u"?document.referrer:"";if(/claude\.ai/i.test(t))return!0;let r=typeof navigator<"u"?navigator.userAgent:"";if(/Claude/.test(r))return!0}catch{}return!1}function $7(){let e=Ou.useCallback(()=>typeof window>"u"||typeof window.matchMedia!="function"?"light":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[]),[t,r]=Ou.useState(e);return Ou.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;let o=window.matchMedia("(prefers-color-scheme: dark)"),n=a=>{r(a.matches?"dark":"light")};if(typeof o.addEventListener=="function")return o.addEventListener("change",n),()=>{o.removeEventListener("change",n)};let i=o;return i.addListener(n),()=>{i.removeListener(n)}},[]),t}var Ou,b7=x(()=>{"use strict";Ou=C(G(),1)});var S7={};ct(S7,{NoCredentialsCard:()=>rw,ProtocolProbeCard:()=>nw,SYSTEM_CARD_REGISTRY:()=>k7,SystemCardHost:()=>uQ,renderSystemCard:()=>_7});function x7(e,t){return function(o){let n=e,i=t(o);return _a.createElement(n,i)}}function lQ({kind:e,props:t}){return _a.createElement("div",{style:{padding:"16px",border:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-md, 10px)",fontFamily:"var(--ggui-font-family-sans, -apple-system, BlinkMacSystemFont, sans-serif)",background:"var(--ggui-color-surfaceVariant, #f4f4f5)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"}},_a.createElement("div",{style:{fontWeight:600,marginBottom:8}},`Unknown system card: ${e}`),_a.createElement("div",{style:{fontSize:12,fontFamily:"var(--ggui-font-family-mono, ui-monospace, SFMono-Regular, monospace)",opacity:.7,wordBreak:"break-all"}},JSON.stringify(t)))}function _7(e,t){let r=k7[e];return r?_a.createElement(r,t):_a.createElement(lQ,{kind:e,props:t})}function uQ({kind:e,props:t,themeId:r}){let o=v7(),n=$7();return _a.createElement($S,{theme:n==="dark"?vS:Id,mode:n,transparent:o,children:_7(e,t)})}var _a,k7,w7=x(()=>{"use strict";_a=C(G(),1);bS();h7();y7();b7();k7={"no-credentials":x7(rw,e=>{let t=typeof e.settingsUrl=="string"?e.settingsUrl:"",r=typeof e.intent=="string"?e.intent:void 0;return{settingsUrl:t,...r!==void 0?{intent:r}:{}}}),"mcp-apps-probe":x7(nw,e=>{let t=typeof e.intent=="string"?e.intent:void 0;return{...t!==void 0?{intent:t}:{}}})}});var Bd,bn,ow,iw,aw,sw,Oh,w,tt=x(()=>{"use strict";Bd={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},bn={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},ow={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},iw={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},aw={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},sw={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Oh={textPrimary:bn[900],textSecondary:bn[600],textMuted:bn[400],textInverse:"#ffffff",bgPrimary:"#ffffff",bgSecondary:bn[50],bgTertiary:bn[100],bgInverse:bn[900],borderLight:bn[200],borderDefault:bn[300],borderDark:bn[400],focus:Bd[500],hover:Bd[50],active:Bd[100],disabled:bn[300],success:ow[500],warning:iw[500],error:aw[500],info:sw[500]},w={primary:Bd,gray:bn,success:ow,warning:iw,error:aw,info:sw,semantic:Oh,white:"#ffffff",black:"#000000",transparent:"transparent"}});function I7({value:e,onChange:t,onSearch:r,placeholder:o="Search...",showButton:n=!1,buttonText:i="Search",loading:a,disabled:s,size:l="md",style:u,className:c}){let[p,d]=(0,T7.useState)(""),f=e!==void 0?e:p,m=h=>{e===void 0&&d(h),t?.(h)},v=()=>{r?.(f)},b=h=>{h.key==="Enter"&&!s&&v()},y={sm:"sm",md:"md",lg:"md"};return(0,ti.jsxs)("div",{className:c,style:{display:"flex",gap:"8px",alignItems:"flex-end",...u},children:[(0,ti.jsxs)("div",{style:{position:"relative",flex:1},children:[(0,ti.jsx)("div",{style:{position:"absolute",left:"12px",top:"50%",transform:"translateY(-50%)",color:w.gray[400],pointerEvents:"none",display:"flex",alignItems:"center"},children:a?(0,ti.jsx)(kt,{size:16}):(0,ti.jsx)(xe,{name:"search",size:16})}),(0,ti.jsx)("input",{type:"search",value:f,onChange:h=>m(h.target.value),onKeyDown:b,placeholder:o,disabled:s||a,style:{width:"100%",padding:l==="sm"?"6px 10px 6px 36px":l==="lg"?"12px 14px 12px 40px":"10px 12px 10px 38px",paddingLeft:"36px",fontSize:l==="lg"?"16px":"14px",borderRadius:"6px",border:`1px solid ${w.gray[300]}`,backgroundColor:s?w.gray[50]:w.white,color:w.gray[900],outline:"none",boxSizing:"border-box"}})]}),n&&(0,ti.jsx)(Ae,{onClick:v,disabled:s||a,size:y[l],loading:a,children:i})]})}var ti,T7,E7=x(()=>{"use strict";ti=C(B(),1),T7=C(G(),1);Wo();co();Hr();tt()});function M7({label:e,children:t,error:r,helperText:o,required:n,description:i,style:a,className:s}){let l=!!r;return(0,Ss.jsxs)("div",{className:s,style:{display:"flex",flexDirection:"column",gap:"4px",...a},children:[(0,Ss.jsxs)("label",{style:{fontSize:U.sm,fontWeight:W.medium,color:w.gray[700]},children:[e,n&&(0,Ss.jsx)("span",{style:{color:w.error[500],marginLeft:"2px"},children:"*"})]}),i&&(0,Ss.jsx)("span",{style:{fontSize:U.xs,color:w.gray[500],marginBottom:"4px"},children:i}),t,(r||o)&&(0,Ss.jsx)("span",{style:{fontSize:U.xs,color:l?w.error[500]:w.gray[500]},children:r||o})]})}var Ss,C7=x(()=>{"use strict";Ss=C(B(),1);tt();ut()});function Ah({label:e,icon:t,rightElement:r,onClick:o,disabled:n,active:i,danger:a,style:s,className:l}){let u=a?w.error[600]:w.gray[700],c=a?w.error[50]:w.gray[100],p=a?w.error[100]:w.primary[50];return(0,Au.jsxs)("button",{onClick:n?void 0:o,disabled:n,className:l,style:{display:"flex",alignItems:"center",gap:"8px",width:"100%",padding:"8px 12px",border:"none",borderRadius:Oe.md,backgroundColor:i?p:"transparent",color:n?w.gray[400]:u,fontSize:U.sm,fontWeight:i?W.medium:W.normal,textAlign:"left",cursor:n?"not-allowed":"pointer",transition:"background-color 0.15s",...s},onMouseEnter:d=>{!n&&!i&&(d.target.style.backgroundColor=c)},onMouseLeave:d=>{!n&&!i&&(d.target.style.backgroundColor="transparent")},children:[t&&(0,Au.jsx)("span",{style:{display:"flex",flexShrink:0},children:t}),(0,Au.jsx)("span",{style:{flex:1},children:e}),r&&(0,Au.jsx)("span",{style:{display:"flex",flexShrink:0,color:w.gray[400]},children:r})]})}var Au,lw=x(()=>{"use strict";Au=C(B(),1);tt();Lt();ut()});function R7({children:e,variant:t="default",size:r="md",closable:o,onClose:n,icon:i,style:a,className:s}){let l=pQ[r];return(0,ws.jsxs)("span",{className:s,style:{display:"inline-flex",alignItems:"center",gap:l.gap,padding:l.padding,fontSize:l.fontSize,fontWeight:W.medium,borderRadius:"6px",...cQ[t],...a},children:[i&&(0,ws.jsx)("span",{style:{display:"flex"},children:i}),e,o&&(0,ws.jsx)("button",{onClick:n,style:{display:"flex",alignItems:"center",justifyContent:"center",padding:0,border:"none",background:"none",color:"inherit",cursor:"pointer",opacity:.7,marginLeft:"2px"},"aria-label":"Remove",children:(0,ws.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"currentColor",children:(0,ws.jsx)("path",{d:"M9.5 3.205L8.795 2.5 6 5.295 3.205 2.5l-.705.705L5.295 6 2.5 8.795l.705.705L6 6.705 8.795 9.5l.705-.705L6.705 6 9.5 3.205z"})})})]})}var ws,cQ,pQ,z7=x(()=>{"use strict";ws=C(B(),1);tt();ut();cQ={default:{backgroundColor:w.gray[100],color:w.gray[700],border:`1px solid ${w.gray[200]}`},primary:{backgroundColor:w.primary[50],color:w.primary[700],border:`1px solid ${w.primary[200]}`},success:{backgroundColor:w.success[50],color:w.success[700],border:`1px solid ${w.success[200]}`},warning:{backgroundColor:w.warning[50],color:w.warning[700],border:`1px solid ${w.warning[200]}`},error:{backgroundColor:w.error[50],color:w.error[700],border:`1px solid ${w.error[200]}`},info:{backgroundColor:w.info[50],color:w.info[700],border:`1px solid ${w.info[200]}`}},pQ={sm:{padding:"2px 6px",fontSize:U.xs,gap:"4px"},md:{padding:"4px 8px",fontSize:U.xs,gap:"6px"},lg:{padding:"6px 10px",fontSize:U.sm,gap:"6px"}}});function P7({trigger:e,options:t,value:r,onChange:o,placement:n="bottom-start",disabled:i,style:a,className:s}){let[l,u]=(0,Ts.useState)(!1),c=(0,Ts.useRef)(null);(0,Ts.useEffect)(()=>{let f=m=>{c.current&&!c.current.contains(m.target)&&u(!1)};if(l)return document.addEventListener("mousedown",f),()=>document.removeEventListener("mousedown",f)},[l]),(0,Ts.useEffect)(()=>{let f=m=>{m.key==="Escape"&&u(!1)};if(l)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[l]);let p=f=>{o?.(f),u(!1)},d=()=>{switch(n){case"bottom-start":return{top:"100%",left:0,marginTop:"4px"};case"bottom-end":return{top:"100%",right:0,marginTop:"4px"};case"top-start":return{bottom:"100%",left:0,marginBottom:"4px"};case"top-end":return{bottom:"100%",right:0,marginBottom:"4px"};default:return{top:"100%",left:0,marginTop:"4px"}}};return(0,Nu.jsxs)("div",{ref:c,className:s,style:{position:"relative",display:"inline-block",...a},children:[(0,Nu.jsx)("div",{onClick:()=>!i&&u(!l),style:{cursor:i?"not-allowed":"pointer"},children:e}),l&&(0,Nu.jsx)("div",{style:{position:"absolute",...d(),minWidth:"160px",backgroundColor:w.white,border:`1px solid ${w.gray[200]}`,borderRadius:Oe.lg,boxShadow:Rt.lg,zIndex:xt.dropdown,padding:"4px"},children:t.map(f=>(0,Nu.jsx)(Ah,{label:f.label,icon:f.icon,onClick:()=>p(f.value),disabled:f.disabled,active:r===f.value,danger:f.danger},f.value))})]})}var Nu,Ts,O7=x(()=>{"use strict";Nu=C(B(),1),Ts=C(G(),1);lw();tt();Lt()});function A7({value:e="",onChange:t,onSelect:r,options:o,placeholder:n,label:i,loading:a,disabled:s,error:l,noResultsText:u="No results found",style:c,className:p}){let[d,f]=(0,ri.useState)(!1),[m,v]=(0,ri.useState)(-1),b=(0,ri.useRef)(null),y=(0,ri.useMemo)(()=>{if(!e)return o;let S=e.toLowerCase();return o.filter(O=>O.label.toLowerCase().includes(S)||O.value.toLowerCase().includes(S))},[o,e]);(0,ri.useEffect)(()=>{let S=O=>{b.current&&!b.current.contains(O.target)&&f(!1)};return document.addEventListener("mousedown",S),()=>document.removeEventListener("mousedown",S)},[]);let h=S=>{t?.(S),f(!0),v(-1)},$=S=>{t?.(S.label),r?.(S),f(!1),v(-1)},_=S=>{if(!d){(S.key==="ArrowDown"||S.key==="ArrowUp")&&f(!0);return}switch(S.key){case"ArrowDown":S.preventDefault(),v(O=>O<y.length-1?O+1:O);break;case"ArrowUp":S.preventDefault(),v(O=>O>0?O-1:O);break;case"Enter":S.preventDefault(),m>=0&&y[m]&&$(y[m]);break;case"Escape":f(!1),v(-1);break}};return(0,Rr.jsxs)("div",{ref:b,className:p,style:{position:"relative",...c},children:[(0,Rr.jsx)("div",{onKeyDown:_,children:(0,Rr.jsx)(Tu,{label:i,value:e,onChange:h,onFocus:()=>f(!0),placeholder:n,disabled:s,error:l})}),d&&(0,Rr.jsx)("div",{style:{position:"absolute",top:"100%",left:0,right:0,marginTop:"4px",backgroundColor:w.white,border:`1px solid ${w.gray[200]}`,borderRadius:Oe.lg,boxShadow:Rt.lg,zIndex:xt.dropdown,maxHeight:"240px",overflow:"auto"},children:a?(0,Rr.jsx)("div",{style:{padding:"12px",display:"flex",justifyContent:"center"},children:(0,Rr.jsx)(kt,{size:20})}):y.length===0?(0,Rr.jsx)("div",{style:{padding:"12px",textAlign:"center",color:w.gray[500],fontSize:U.sm},children:u}):y.map((S,O)=>(0,Rr.jsxs)("div",{onClick:()=>!S.disabled&&$(S),style:{padding:"8px 12px",cursor:S.disabled?"not-allowed":"pointer",backgroundColor:m===O?w.gray[100]:"transparent",color:S.disabled?w.gray[400]:w.gray[900],fontSize:U.sm,display:"flex",alignItems:"center",gap:"8px"},onMouseEnter:()=>v(O),children:[S.icon&&(0,Rr.jsx)("span",{style:{flexShrink:0},children:S.icon}),(0,Rr.jsxs)("div",{style:{flex:1},children:[(0,Rr.jsx)("div",{children:S.label}),S.description&&(0,Rr.jsx)("div",{style:{fontSize:U.xs,color:w.gray[500]},children:S.description})]})]},S.value))})]})}var Rr,ri,N7=x(()=>{"use strict";Rr=C(B(),1),ri=C(G(),1);US();co();tt();Lt();ut()});function j7({items:e,separator:t="/",onItemClick:r,style:o,className:n}){return(0,ni.jsx)("nav",{"aria-label":"Breadcrumb",className:n,style:{display:"flex",alignItems:"center",gap:"8px",fontSize:U.sm,...o},children:e.map((i,a)=>{let s=a===e.length-1;return(0,ni.jsxs)(D7.Fragment,{children:[a>0&&(0,ni.jsx)("span",{style:{color:w.gray[400]},children:t}),i.icon&&(0,ni.jsx)("span",{style:{display:"flex",alignItems:"center",color:s?w.gray[900]:w.gray[500]},children:i.icon}),s?(0,ni.jsx)("span",{style:{color:w.gray[900],fontWeight:500},"aria-current":"page",children:i.label}):i.href?(0,ni.jsx)(Ih,{href:i.href,tone:"muted",underline:"hover",onClick:l=>{r&&(l.preventDefault(),r(i,a))},children:i.label}):(0,ni.jsx)("button",{onClick:()=>r?.(i,a),style:{background:"none",border:"none",padding:0,color:w.gray[500],cursor:"pointer",fontSize:"inherit"},children:i.label})]},a)})})}var ni,D7,U7=x(()=>{"use strict";ni=C(B(),1),D7=C(G(),1);GS();tt();ut()});function L7({currentPage:e,totalPages:t,onPageChange:r,showFirstLast:o=!0,maxVisible:n=5,size:i="md",disabled:a,style:s,className:l}){let u=()=>{let f=[];if(t<=n)for(let m=1;m<=t;m++)f.push(m);else{f.push(1);let m=Math.floor((n-3)/2),v=Math.max(2,e-m),b=Math.min(t-1,e+m);e<=m+2&&(b=Math.min(t-1,n-2)),e>=t-m-1&&(v=Math.max(2,t-n+3)),v>2&&f.push("ellipsis");for(let y=v;y<=b;y++)f.push(y);b<t-1&&f.push("ellipsis"),f.push(t)}return f},c=i==="sm"?"xs":i==="lg"?"md":"sm",p=i==="sm"?14:i==="lg"?20:16,d=({page:f,active:m})=>(0,ir.jsx)("button",{onClick:()=>!a&&r?.(f),disabled:a,style:{minWidth:i==="sm"?"28px":i==="lg"?"40px":"32px",height:i==="sm"?"28px":i==="lg"?"40px":"32px",padding:"0 8px",border:"none",borderRadius:"6px",backgroundColor:m?w.primary[600]:"transparent",color:m?w.white:w.gray[700],fontSize:i==="sm"?U.xs:U.sm,fontWeight:m?W.medium:W.normal,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,transition:"all 0.15s"},children:f});return(0,ir.jsxs)("nav",{"aria-label":"Pagination",className:l,style:{display:"flex",alignItems:"center",gap:"4px",...s},children:[o&&(0,ir.jsxs)(Ae,{variant:"ghost",size:c,onClick:()=>r?.(1),disabled:a||e===1,"aria-label":"First page",children:[(0,ir.jsx)(xe,{name:"chevron-left",size:p}),(0,ir.jsx)(xe,{name:"chevron-left",size:p,style:{marginLeft:"-8px"}})]}),(0,ir.jsx)(Ae,{variant:"ghost",size:c,onClick:()=>r?.(e-1),disabled:a||e===1,"aria-label":"Previous page",children:(0,ir.jsx)(xe,{name:"chevron-left",size:p})}),u().map((f,m)=>f==="ellipsis"?(0,ir.jsx)("span",{style:{padding:"0 4px",color:w.gray[400]},children:"..."},`ellipsis-${m}`):(0,ir.jsx)(d,{page:f,active:f===e},f)),(0,ir.jsx)(Ae,{variant:"ghost",size:c,onClick:()=>r?.(e+1),disabled:a||e===t,"aria-label":"Next page",children:(0,ir.jsx)(xe,{name:"chevron-right",size:p})}),o&&(0,ir.jsxs)(Ae,{variant:"ghost",size:c,onClick:()=>r?.(t),disabled:a||e===t,"aria-label":"Last page",children:[(0,ir.jsx)(xe,{name:"chevron-right",size:p}),(0,ir.jsx)(xe,{name:"chevron-right",size:p,style:{marginLeft:"-8px"}})]})]})}var ir,q7=x(()=>{"use strict";ir=C(B(),1);Wo();Hr();tt();ut()});function B7({icon:e,title:t,description:r,action:o,style:n,className:i}){let a={textAlign:"center",padding:"var(--ggui-spacing-xl, 32px)",...n};return(0,Is.jsxs)(zt,{align:"center",gap:"sm",className:i,style:a,children:[e!==void 0&&(typeof e=="string"?(0,Is.jsx)(xe,{name:e,size:40,tone:"subtle"}):e),(0,Is.jsx)(Vr,{level:3,children:t}),r!==void 0&&(0,Is.jsx)(it,{tone:"muted",children:r}),o!==void 0&&(0,Is.jsx)("div",{style:{marginTop:"var(--ggui-spacing-sm, 8px)"},children:o})]})}var Is,V7=x(()=>{"use strict";Is=C(B(),1);Rd();Hr();kh();xh()});function H7({label:e,value:t,delta:r,trend:o="neutral",icon:n,style:i,className:a}){let s=o==="up"?"success":o==="down"?"error":"muted";return(0,oi.jsxs)(zt,{gap:"xs",className:a,style:i,children:[(0,oi.jsxs)(ys,{gap:"xs",align:"center",children:[n!==void 0&&(typeof n=="string"?(0,oi.jsx)(xe,{name:n,size:16,tone:"muted"}):n),(0,oi.jsx)(it,{variant:"overline",tone:"muted",children:e})]}),(0,oi.jsxs)(ys,{gap:"sm",align:"end",children:[(0,oi.jsx)(it,{size:"3xl",weight:"bold",children:t}),r!==void 0&&(0,oi.jsx)(it,{size:"sm",weight:"semibold",tone:s,children:r})]})]})}var oi,G7=x(()=>{"use strict";oi=C(B(),1);Rd();PS();xh();Hr()});var uw={};ct(uw,{Autocomplete:()=>A7,Breadcrumb:()=>j7,Dropdown:()=>P7,EmptyState:()=>B7,FormField:()=>M7,MenuItem:()=>Ah,Pagination:()=>L7,SearchField:()=>I7,Stat:()=>H7,Tag:()=>R7});var cw=x(()=>{"use strict";E7();C7();lw();z7();O7();N7();U7();q7();V7();G7()});function Z7({logo:e,navigation:t,actions:r,sticky:o=!1,background:n,bordered:i=!0,style:a,className:s}){return(0,Du.jsxs)("header",{className:s,style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 24px",backgroundColor:n||w.white,borderBottom:i?`1px solid ${w.gray[200]}`:void 0,...o&&{position:"sticky",top:0,zIndex:xt.sticky,boxShadow:Rt.sm},...a},children:[e&&(0,Du.jsx)("div",{style:{flexShrink:0},children:e}),t&&(0,Du.jsx)("nav",{style:{display:"flex",alignItems:"center",flex:1,marginLeft:"32px"},children:t}),r&&(0,Du.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"12px",flexShrink:0},children:r})]})}var Du,F7=x(()=>{"use strict";Du=C(B(),1);tt();Lt()});function K7({item:e,activeId:t,onItemClick:r,collapsed:o,depth:n=0}){let[i,a]=(0,W7.useState)(!1),s=e.children&&e.children.length>0,l=t===e.id;return(0,Pt.jsxs)("div",{children:[(0,Pt.jsxs)("button",{onClick:()=>{s&&!o&&a(!i),r?.(e)},disabled:e.disabled,style:{display:"flex",alignItems:"center",gap:"12px",width:"100%",padding:o?"10px":"10px 12px",paddingLeft:o?"10px":`${12+n*16}px`,border:"none",borderRadius:Oe.md,backgroundColor:l?w.primary[50]:"transparent",color:e.disabled?w.gray[400]:l?w.primary[700]:w.gray[700],fontSize:U.sm,fontWeight:l?W.medium:W.normal,textAlign:"left",cursor:e.disabled?"not-allowed":"pointer",transition:"all 0.15s",justifyContent:o?"center":"flex-start"},children:[e.icon&&(0,Pt.jsx)("span",{style:{display:"flex",flexShrink:0},children:e.icon}),!o&&(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)("span",{style:{flex:1},children:e.label}),e.badge&&(0,Pt.jsx)("span",{children:e.badge}),s&&(0,Pt.jsx)(xe,{name:i?"chevron-down":"chevron-right",size:14,tone:"subtle"})]})]}),s&&i&&!o&&(0,Pt.jsx)("div",{style:{marginTop:"4px"},children:e.children.map(c=>(0,Pt.jsx)(K7,{item:c,activeId:t,onItemClick:r,collapsed:o,depth:n+1},c.id))})]})}function J7({items:e,activeId:t,onItemClick:r,collapsed:o=!1,header:n,footer:i,width:a=256,collapsedWidth:s=64,style:l,className:u}){let c=o?s:a;return(0,Pt.jsxs)("aside",{className:u,style:{width:c,minWidth:c,height:"100%",display:"flex",flexDirection:"column",backgroundColor:w.white,borderRight:`1px solid ${w.gray[200]}`,transition:"width 0.2s",overflow:"hidden",...l},children:[n&&(0,Pt.jsx)("div",{style:{padding:o?"16px 8px":"16px",borderBottom:`1px solid ${w.gray[200]}`},children:n}),(0,Pt.jsx)("nav",{style:{flex:1,padding:"8px",overflowY:"auto",overflowX:"hidden"},children:(0,Pt.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"2px"},children:e.map(p=>(0,Pt.jsx)(K7,{item:p,activeId:t,onItemClick:r,collapsed:o},p.id))})}),i&&(0,Pt.jsx)("div",{style:{padding:o?"16px 8px":"16px",borderTop:`1px solid ${w.gray[200]}`},children:i})]})}var Pt,W7,Y7=x(()=>{"use strict";Pt=C(B(),1),W7=C(G(),1);tt();Lt();ut();Hr()});function Q7({children:e,columns:t=3,gap:r=16,style:o,className:n}){return(0,X7.jsx)("div",{className:n,style:{display:"grid",gridTemplateColumns:typeof t=="number"?`repeat(${t}, 1fr)`:"repeat(auto-fit, minmax(280px, 1fr))",gap:`${r}px`,...o},children:e})}var X7,e9=x(()=>{"use strict";X7=C(B(),1)});function t9({comment:e,onReply:t,onReaction:r,depth:o=0}){let[n,i]=(0,Nh.useState)(!1),[a,s]=(0,Nh.useState)(""),l=()=>{a.trim()&&(t?.(e.id,a),s(""),i(!1))},u=e.timestamp instanceof Date?e.timestamp.toLocaleString():e.timestamp;return(0,Te.jsxs)("div",{style:{marginLeft:o>0?"40px":0},children:[(0,Te.jsxs)("div",{style:{display:"flex",gap:"12px"},children:[(0,Te.jsx)(fo,{name:e.author.name,src:e.author.avatar,size:"sm"}),(0,Te.jsxs)("div",{style:{flex:1},children:[(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Te.jsx)("span",{style:{fontWeight:500,fontSize:U.sm},children:e.author.name}),(0,Te.jsx)("span",{style:{color:w.gray[500],fontSize:U.xs},children:u})]}),(0,Te.jsx)("p",{style:{margin:"4px 0 8px",fontSize:U.sm,color:w.gray[700]},children:e.content}),(0,Te.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e.reactions?.map(c=>(0,Te.jsxs)("button",{onClick:()=>r?.(e.id,c.emoji),style:{padding:"2px 8px",border:`1px solid ${w.gray[200]}`,borderRadius:"12px",backgroundColor:w.gray[50],fontSize:U.xs,cursor:"pointer"},children:[c.emoji," ",c.count]},c.emoji)),(0,Te.jsx)("button",{onClick:()=>i(!n),style:{background:"none",border:"none",color:w.gray[500],fontSize:U.xs,cursor:"pointer"},children:"Reply"})]}),n&&(0,Te.jsxs)("div",{style:{marginTop:"12px"},children:[(0,Te.jsx)(Od,{value:a,onChange:s,placeholder:"Write a reply...",rows:2}),(0,Te.jsxs)("div",{style:{display:"flex",gap:"8px",marginTop:"8px"},children:[(0,Te.jsx)(Ae,{size:"sm",onClick:l,children:"Reply"}),(0,Te.jsx)(Ae,{size:"sm",variant:"ghost",onClick:()=>i(!1),children:"Cancel"})]})]})]})]}),e.replies?.map(c=>(0,Te.jsx)("div",{style:{marginTop:"16px"},children:(0,Te.jsx)(t9,{comment:c,onReply:t,onReaction:r,depth:o+1})},c.id))]})}function r9({comments:e,currentUser:t,onAddComment:r,onReply:o,onReaction:n,loading:i,style:a,className:s}){let[l,u]=(0,Nh.useState)(""),c=()=>{l.trim()&&(r?.(l),u(""))};return(0,Te.jsxs)("div",{className:s,style:{...a},children:[t&&(0,Te.jsxs)("div",{style:{display:"flex",gap:"12px",marginBottom:"24px"},children:[(0,Te.jsx)(fo,{name:t.name,src:t.avatar,size:"sm"}),(0,Te.jsxs)("div",{style:{flex:1},children:[(0,Te.jsx)(Od,{value:l,onChange:u,placeholder:"Write a comment...",rows:3}),(0,Te.jsx)("div",{style:{marginTop:"8px",display:"flex",justifyContent:"flex-end"},children:(0,Te.jsx)(Ae,{onClick:c,disabled:!l.trim(),children:"Comment"})})]})]}),i?(0,Te.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"24px"},children:(0,Te.jsx)(kt,{size:24})}):(0,Te.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:e.map(p=>(0,Te.jsx)(t9,{comment:p,onReply:o,onReaction:n},p.id))})]})}var Te,Nh,n9=x(()=>{"use strict";Te=C(B(),1),Nh=C(G(),1);Ad();Wo();LS();co();tt();ut()});function o9({columns:e,data:t,rowKey:r="id",loading:o,emptyText:n="No data",onSort:i,sortKey:a,sortDirection:s,onRowClick:l,selectable:u,selectedKeys:c=[],onSelectionChange:p,style:d,className:f}){let m=($,_)=>typeof r=="function"?r($):String($[r]??_),v=$=>{p?.($?t.map((_,S)=>m(_,S)):[])},b=($,_)=>{p?.(_?[...c,$]:c.filter(S=>S!==$))},y=t.length>0&&c.length===t.length,h=c.length>0&&c.length<t.length;return(0,mt.jsx)("div",{className:f,style:{border:`1px solid ${w.gray[200]}`,borderRadius:"8px",overflow:"hidden",...d},children:(0,mt.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:U.sm},children:[(0,mt.jsx)("thead",{children:(0,mt.jsxs)("tr",{style:{backgroundColor:w.gray[50]},children:[u&&(0,mt.jsx)("th",{style:{width:"40px",padding:"12px"},children:(0,mt.jsx)(bs,{checked:y,indeterminate:h,onChange:v})}),e.map($=>(0,mt.jsx)("th",{style:{padding:"12px 16px",textAlign:$.align||"left",fontWeight:W.semibold,color:w.gray[700],borderBottom:`1px solid ${w.gray[200]}`,cursor:$.sortable?"pointer":void 0,width:$.width},onClick:()=>$.sortable&&i?.($.key,a===$.key&&s==="asc"?"desc":"asc"),children:(0,mt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[$.header,$.sortable&&a===$.key&&(0,mt.jsx)(xe,{name:s==="asc"?"chevron-up":"chevron-down",size:14})]})},$.key))]})}),(0,mt.jsx)("tbody",{children:o?(0,mt.jsx)("tr",{children:(0,mt.jsx)("td",{colSpan:e.length+(u?1:0),style:{padding:"48px",textAlign:"center"},children:(0,mt.jsx)(kt,{size:24})})}):t.length===0?(0,mt.jsx)("tr",{children:(0,mt.jsx)("td",{colSpan:e.length+(u?1:0),style:{padding:"48px",textAlign:"center",color:w.gray[500]},children:n})}):t.map(($,_)=>{let S=m($,_),O=c.includes(S);return(0,mt.jsxs)("tr",{onClick:()=>l?.($,_),style:{backgroundColor:O?w.primary[50]:void 0,cursor:l?"pointer":void 0,transition:"background-color 0.15s"},children:[u&&(0,mt.jsx)("td",{style:{padding:"12px"},children:(0,mt.jsx)(bs,{checked:O,onChange:k=>b(S,k)})}),e.map(k=>(0,mt.jsx)("td",{style:{padding:"12px 16px",textAlign:k.align||"left",color:w.gray[900],borderBottom:`1px solid ${w.gray[100]}`},children:k.render?k.render($[k.key],$,_):String($[k.key]??"")},k.key))]},S)})})]})})}var mt,i9=x(()=>{"use strict";mt=C(B(),1);qS();co();Hr();tt();ut()});function a9({messages:e,currentUserId:t,onSendMessage:r,loading:o,typing:n,placeholder:i="Type a message...",header:a,style:s,className:l}){let[u,c]=(0,ju.useState)(""),p=(0,ju.useRef)(null);(0,ju.useEffect)(()=>{p.current?.scrollIntoView({behavior:"smooth"})},[e]);let d=()=>{u.trim()&&(r?.(u),c(""))},f=m=>{m.key==="Enter"&&!m.shiftKey&&(m.preventDefault(),d())};return(0,gt.jsxs)("div",{className:l,style:{display:"flex",flexDirection:"column",height:"100%",border:`1px solid ${w.gray[200]}`,borderRadius:Oe.lg,backgroundColor:w.white,overflow:"hidden",...s},children:[a&&(0,gt.jsx)("div",{style:{padding:"12px 16px",borderBottom:`1px solid ${w.gray[200]}`},children:a}),(0,gt.jsxs)("div",{style:{flex:1,padding:"16px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"12px"},children:[o?(0,gt.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"24px"},children:(0,gt.jsx)(kt,{size:24})}):e.map(m=>{let v=m.sender.id===t,b=m.timestamp instanceof Date?m.timestamp.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}):m.timestamp;return(0,gt.jsxs)("div",{style:{display:"flex",flexDirection:v?"row-reverse":"row",alignItems:"flex-end",gap:"8px"},children:[!v&&(0,gt.jsx)(fo,{name:m.sender.name,src:m.sender.avatar,size:"xs"}),(0,gt.jsxs)("div",{style:{maxWidth:"70%",padding:"10px 14px",borderRadius:Oe.lg,backgroundColor:v?w.primary[600]:w.gray[100],color:v?w.white:w.gray[900]},children:[(0,gt.jsx)("p",{style:{margin:0,fontSize:U.sm},children:m.content}),(0,gt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"4px",marginTop:"4px",fontSize:U.xs,opacity:.7},children:[(0,gt.jsx)("span",{children:b}),v&&m.status&&(0,gt.jsxs)("span",{children:[m.status==="sending"&&"\u2022",m.status==="sent"&&"\u2713",m.status==="delivered"&&"\u2713\u2713",m.status==="read"&&"\u2713\u2713",m.status==="error"&&"!"]})]})]})]},m.id)}),n&&(0,gt.jsx)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:(0,gt.jsxs)("span",{style:{fontSize:U.xs,color:w.gray[500]},children:[n.name," is typing..."]})}),(0,gt.jsx)("div",{ref:p})]}),(0,gt.jsxs)("div",{style:{padding:"12px 16px",borderTop:`1px solid ${w.gray[200]}`,display:"flex",gap:"8px"},children:[(0,gt.jsx)("input",{type:"text",value:u,onChange:m=>c(m.target.value),onKeyDown:f,placeholder:i,style:{flex:1,padding:"10px 14px",border:`1px solid ${w.gray[300]}`,borderRadius:Oe.full,fontSize:U.sm,outline:"none"}}),(0,gt.jsx)(Ae,{onClick:d,disabled:!u.trim(),children:(0,gt.jsx)(xe,{name:"chevron-right",size:18})})]})]})}var gt,ju,s9=x(()=>{"use strict";gt=C(B(),1),ju=C(G(),1);Ad();Wo();co();Hr();tt();Lt();ut()});function l9({items:e,activeId:t,onItemClick:r,orientation:o="horizontal",variant:n="default",style:i,className:a}){let s=l=>{let u=t===l.id,c={display:"flex",alignItems:"center",gap:"8px",padding:o==="horizontal"?"8px 16px":"10px 16px",border:"none",background:"none",fontSize:U.sm,cursor:l.disabled?"not-allowed":"pointer",opacity:l.disabled?.5:1,transition:"all 0.15s",textDecoration:"none",color:"inherit"},p={default:{fontWeight:u?W.medium:W.normal,color:u?w.primary[600]:w.gray[600]},pills:{borderRadius:Oe.full,backgroundColor:u?w.primary[100]:"transparent",color:u?w.primary[700]:w.gray[600],fontWeight:u?W.medium:W.normal},underline:{borderBottom:u?`2px solid ${w.primary[600]}`:"2px solid transparent",color:u?w.primary[600]:w.gray[600],fontWeight:u?W.medium:W.normal,borderRadius:0}},d=()=>{l.disabled||r?.(l)},f=(0,mo.jsxs)(mo.Fragment,{children:[l.icon&&(0,mo.jsx)("span",{style:{display:"flex"},children:l.icon}),(0,mo.jsx)("span",{children:l.label})]});return l.href?(0,mo.jsx)("a",{href:l.href,onClick:m=>{m.preventDefault(),d()},style:{...c,...p[n]},children:f},l.id):(0,mo.jsx)("button",{onClick:d,disabled:l.disabled,style:{...c,...p[n]},children:f},l.id)};return(0,mo.jsx)("nav",{className:a,style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",gap:o==="horizontal"?"4px":"2px",...n==="underline"&&o==="horizontal"&&{borderBottom:`1px solid ${w.gray[200]}`},...i},children:e.map(s)})}var mo,u9=x(()=>{"use strict";mo=C(B(),1);tt();Lt();ut()});function c9(e){if(e===0)return"0 B";let t=1024,r=["B","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,o)).toFixed(1))} ${r[o]}`}function p9({files:e=[],onFilesSelected:t,onFileRemove:r,accept:o,multiple:n=!0,maxSize:i,maxFiles:a,disabled:s,dragDrop:l=!0,style:u,className:c}){let[p,d]=(0,Dh.useState)(!1),f=(0,Dh.useRef)(null),m=h=>{if(!h)return;let $=Array.from(h);a&&($=$.slice(0,a-e.length)),i&&($=$.filter(_=>_.size<=i)),t?.($)},v=h=>{h.preventDefault(),d(!1),!s&&l&&m(h.dataTransfer.files)},b=h=>{h.preventDefault(),!s&&l&&d(!0)},y=()=>{d(!1)};return(0,Vt.jsxs)("div",{className:c,style:{...u},children:[(0,Vt.jsxs)("div",{onClick:()=>!s&&f.current?.click(),onDrop:v,onDragOver:b,onDragLeave:y,style:{border:`2px dashed ${p?w.primary[400]:w.gray[300]}`,borderRadius:Oe.lg,padding:"32px",textAlign:"center",backgroundColor:p?w.primary[50]:w.gray[50],cursor:s?"not-allowed":"pointer",transition:"all 0.2s",opacity:s?.5:1},children:[(0,Vt.jsx)("input",{ref:f,type:"file",accept:o,multiple:n,onChange:h=>m(h.target.files),disabled:s,style:{display:"none"}}),(0,Vt.jsx)(xe,{name:"plus",size:32,tone:"subtle"}),(0,Vt.jsx)("p",{style:{margin:"12px 0 4px",color:w.gray[700],fontSize:U.sm},children:l?"Drag and drop files here, or click to browse":"Click to browse files"}),(0,Vt.jsxs)("p",{style:{margin:0,color:w.gray[500],fontSize:U.xs},children:[o&&`Accepted: ${o}`,i&&` \u2022 Max size: ${c9(i)}`,a&&` \u2022 Max files: ${a}`]})]}),e.length>0&&(0,Vt.jsx)("div",{style:{marginTop:"16px",display:"flex",flexDirection:"column",gap:"8px"},children:e.map(h=>(0,Vt.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",padding:"12px",border:`1px solid ${w.gray[200]}`,borderRadius:Oe.md,backgroundColor:w.white},children:[(0,Vt.jsx)(xe,{name:"menu",size:20,tone:"subtle"}),(0,Vt.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Vt.jsx)("p",{style:{margin:0,fontSize:U.sm,color:w.gray[900],whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:h.name}),(0,Vt.jsxs)("p",{style:{margin:"2px 0 0",fontSize:U.xs,color:w.gray[500]},children:[c9(h.size),h.error&&(0,Vt.jsx)("span",{style:{color:w.error[500],marginLeft:"8px"},children:h.error})]}),h.status==="uploading"&&h.progress!==void 0&&(0,Vt.jsx)(Sh,{value:h.progress,size:"sm",style:{marginTop:"8px"}})]}),(0,Vt.jsx)(Ae,{variant:"ghost",size:"sm",onClick:()=>r?.(h.id),children:(0,Vt.jsx)(xe,{name:"x",size:16})})]},h.id))})]})}var Vt,Dh,d9=x(()=>{"use strict";Vt=C(B(),1),Dh=C(G(),1);Wo();HS();Hr();tt();Lt();ut()});function f9({name:e,subtitle:t,avatar:r,coverImage:o,bio:n,stats:i,actions:a,compact:s,style:l,className:u}){return s?(0,ht.jsx)(vn,{className:u,style:{padding:"16px",...l},children:(0,ht.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[(0,ht.jsx)(fo,{name:e,src:r,size:"md"}),(0,ht.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,ht.jsx)("p",{style:{margin:0,fontWeight:W.semibold,color:w.gray[900],fontSize:U.sm},children:e}),t&&(0,ht.jsx)("p",{style:{margin:"2px 0 0",color:w.gray[500],fontSize:U.xs},children:t})]}),a]})}):(0,ht.jsxs)(vn,{className:u,style:{padding:0,overflow:"hidden",...l},children:[o&&(0,ht.jsx)("div",{style:{height:"120px",backgroundImage:`url(${o})`,backgroundSize:"cover",backgroundPosition:"center"}}),(0,ht.jsxs)("div",{style:{padding:"16px",paddingTop:o?"0":"16px",textAlign:"center"},children:[(0,ht.jsx)("div",{style:{marginTop:o?"-40px":"0",marginBottom:"12px"},children:(0,ht.jsx)(fo,{name:e,src:r,size:"xl",style:{border:`4px solid ${w.white}`,margin:"0 auto"}})}),(0,ht.jsx)("p",{style:{margin:0,fontWeight:W.semibold,color:w.gray[900],fontSize:U.lg},children:e}),t&&(0,ht.jsx)("p",{style:{margin:"4px 0 0",color:w.gray[500],fontSize:U.sm},children:t}),n&&(0,ht.jsx)("p",{style:{margin:"12px 0 0",color:w.gray[600],fontSize:U.sm,lineHeight:1.5},children:n}),i&&i.length>0&&(0,ht.jsx)("div",{style:{display:"flex",justifyContent:"center",gap:"24px",marginTop:"16px",paddingTop:"16px",borderTop:`1px solid ${w.gray[200]}`},children:i.map((c,p)=>(0,ht.jsxs)("div",{style:{textAlign:"center"},children:[(0,ht.jsx)("p",{style:{margin:0,fontWeight:W.semibold,color:w.gray[900],fontSize:U.lg},children:c.value}),(0,ht.jsx)("p",{style:{margin:"2px 0 0",color:w.gray[500],fontSize:U.xs},children:c.label})]},p))}),a&&(0,ht.jsx)("div",{style:{marginTop:"16px",display:"flex",justifyContent:"center",gap:"8px"},children:a})]})]})}var ht,m9=x(()=>{"use strict";ht=C(B(),1);Ad();zS();tt();ut()});function fQ({notification:e,onMarkAsRead:t,onDismiss:r}){let o=e.timestamp instanceof Date?e.timestamp.toLocaleString():e.timestamp,n=dQ[e.type||"info"];return(0,Ne.jsxs)("div",{style:{display:"flex",gap:"12px",padding:"12px",backgroundColor:e.read?"transparent":w.primary[50],borderRadius:Oe.md,transition:"background-color 0.15s"},children:[(0,Ne.jsx)("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:e.read?"transparent":n,flexShrink:0,marginTop:"6px"}}),(0,Ne.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Ne.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"8px"},children:[(0,Ne.jsx)("p",{style:{margin:0,fontWeight:W.medium,color:w.gray[900],fontSize:U.sm},children:e.title}),(0,Ne.jsx)("button",{onClick:()=>r?.(e.id),style:{background:"none",border:"none",padding:"2px",cursor:"pointer",color:w.gray[400],flexShrink:0},children:(0,Ne.jsx)(xe,{name:"x",size:14})})]}),e.message&&(0,Ne.jsx)("p",{style:{margin:"4px 0 0",color:w.gray[600],fontSize:U.xs},children:e.message}),(0,Ne.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"12px",marginTop:"8px"},children:[(0,Ne.jsx)("span",{style:{color:w.gray[400],fontSize:U.xs},children:o}),!e.read&&(0,Ne.jsx)("button",{onClick:()=>t?.(e.id),style:{background:"none",border:"none",padding:0,color:w.primary[600],fontSize:U.xs,cursor:"pointer"},children:"Mark as read"}),e.action&&(0,Ne.jsx)("button",{onClick:e.action.onClick,style:{background:"none",border:"none",padding:0,color:w.primary[600],fontSize:U.xs,cursor:"pointer"},children:e.action.label})]})]})]})}function g9({notifications:e,onMarkAsRead:t,onMarkAllAsRead:r,onDismiss:o,onClearAll:n,emptyText:i="No notifications",loading:a,style:s,className:l}){let u=e.filter(c=>!c.read).length;return(0,Ne.jsxs)("div",{className:l,style:{display:"flex",flexDirection:"column",...s},children:[(0,Ne.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",borderBottom:`1px solid ${w.gray[200]}`},children:[(0,Ne.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[(0,Ne.jsx)("span",{style:{fontWeight:W.semibold,color:w.gray[900]},children:"Notifications"}),u>0&&(0,Ne.jsx)("span",{style:{padding:"2px 8px",borderRadius:"12px",backgroundColor:w.primary[100],color:w.primary[700],fontSize:U.xs,fontWeight:W.medium},children:u})]}),(0,Ne.jsxs)("div",{style:{display:"flex",gap:"8px"},children:[u>0&&(0,Ne.jsx)(Ae,{variant:"ghost",size:"sm",onClick:r,children:"Mark all read"}),e.length>0&&(0,Ne.jsx)(Ae,{variant:"ghost",size:"sm",onClick:n,children:"Clear all"})]})]}),(0,Ne.jsx)("div",{style:{flex:1,overflowY:"auto",padding:"8px"},children:a?(0,Ne.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"32px"},children:(0,Ne.jsx)(kt,{size:24})}):e.length===0?(0,Ne.jsx)("div",{style:{textAlign:"center",padding:"32px",color:w.gray[500]},children:i}):(0,Ne.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:e.map(c=>(0,Ne.jsx)(fQ,{notification:c,onMarkAsRead:t,onDismiss:o},c.id))})})]})}var Ne,dQ,h9=x(()=>{"use strict";Ne=C(B(),1);Wo();co();Hr();tt();Lt();ut();dQ={info:w.info[500],success:w.success[500],warning:w.warning[500],error:w.error[500]}});function y9({open:e,onClose:t,title:r,children:o,footer:n,size:i="md",closeOnOverlayClick:a=!0,closeOnEscape:s=!0,showCloseButton:l=!0,style:u,className:c}){let p=(0,jh.useCallback)(m=>{m.key==="Escape"&&s&&t()},[s,t]);if((0,jh.useEffect)(()=>{if(e)return document.addEventListener("keydown",p),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",p),document.body.style.overflow=""}},[e,p]),!e)return null;let d=m=>{m.target===m.currentTarget&&a&&t()},f=i==="full";return(0,qn.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:xt.modal,display:"flex",alignItems:f?"stretch":"center",justifyContent:"center",padding:f?0:"24px"},children:[(0,qn.jsx)("div",{onClick:d,style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)",animation:ya.fadeIn}}),(0,qn.jsxs)("div",{role:"dialog","aria-modal":"true",className:c,style:{position:"relative",width:mQ[i],maxWidth:f?"100%":"calc(100vw - 48px)",maxHeight:f?"100%":"calc(100vh - 48px)",backgroundColor:w.white,borderRadius:f?0:Oe.xl,boxShadow:Rt["2xl"],display:"flex",flexDirection:"column",overflow:"hidden",animation:ya.scaleIn,...u},children:[(r||l)&&(0,qn.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"16px 20px",borderBottom:`1px solid ${w.gray[200]}`},children:[r&&(0,qn.jsx)(Vr,{level:4,children:r}),l&&(0,qn.jsx)(Ae,{variant:"ghost",size:"sm",onClick:t,"aria-label":"Close modal",style:{marginLeft:"auto"},children:(0,qn.jsx)(xe,{name:"x",size:20})})]}),(0,qn.jsx)("div",{style:{flex:1,padding:"20px",overflowY:"auto"},children:o}),n&&(0,qn.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px",padding:"16px 20px",borderTop:`1px solid ${w.gray[200]}`},children:n})]})]})}var qn,jh,mQ,v9=x(()=>{"use strict";qn=C(B(),1),jh=C(G(),1);Wo();Hr();kh();tt();Lt();Cu();mQ={sm:"400px",md:"500px",lg:"640px",xl:"800px",full:"100vw"}});function $9({open:e,onClose:t,commands:r,onSelect:o,placeholder:n="Search commands...",recentIds:i=[],loading:a,style:s,className:l}){let[u,c]=(0,xn.useState)(""),[p,d]=(0,xn.useState)(0),f=(0,xn.useMemo)(()=>{let y=u?r.filter($=>$.label.toLowerCase().includes(u.toLowerCase())||$.description?.toLowerCase().includes(u.toLowerCase())):r,h=new Map;if(!u&&i.length>0){let $=i.map(_=>r.find(S=>S.id===_)).filter(Boolean);$.length>0&&h.set("Recent",$)}return y.forEach($=>{let _=$.group||"Commands";h.has(_)||h.set(_,[]),!(!u&&i.includes($.id)&&h.has("Recent"))&&h.get(_).push($)}),h},[r,u,i]),m=(0,xn.useMemo)(()=>{let y=[];return f.forEach(h=>y.push(...h)),y},[f]);(0,xn.useEffect)(()=>{d(0)},[u]),(0,xn.useEffect)(()=>{e&&(c(""),d(0))},[e]);let v=(0,xn.useCallback)(y=>{if(y.key==="Escape"){t();return}if(y.key==="ArrowDown")y.preventDefault(),d(h=>Math.min(h+1,m.length-1));else if(y.key==="ArrowUp")y.preventDefault(),d(h=>Math.max(h-1,0));else if(y.key==="Enter"){y.preventDefault();let h=m[p];h&&!h.disabled&&(o(h),t())}},[m,p,o,t]);if((0,xn.useEffect)(()=>{if(e)return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[e,v]),!e)return null;let b=0;return(0,Qe.jsxs)("div",{style:{position:"fixed",inset:0,zIndex:xt.modal,display:"flex",alignItems:"flex-start",justifyContent:"center",paddingTop:"15vh"},children:[(0,Qe.jsx)("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)"}}),(0,Qe.jsxs)("div",{role:"dialog",className:l,style:{position:"relative",width:"560px",maxWidth:"calc(100vw - 48px)",maxHeight:"60vh",backgroundColor:w.white,borderRadius:Oe.xl,boxShadow:Rt["2xl"],overflow:"hidden",display:"flex",flexDirection:"column",...s},children:[(0,Qe.jsx)("div",{style:{padding:"12px",borderBottom:`1px solid ${w.gray[200]}`},children:(0,Qe.jsxs)("div",{style:{position:"relative"},children:[(0,Qe.jsx)(xe,{name:"search",size:18,tone:"subtle",style:{position:"absolute",left:"12px",top:"50%",transform:"translateY(-50%)"}}),(0,Qe.jsx)("input",{type:"text",value:u,onChange:y=>c(y.target.value),placeholder:n,autoFocus:!0,style:{width:"100%",padding:"12px 12px 12px 42px",border:"none",fontSize:U.base,outline:"none",backgroundColor:"transparent"}})]})}),(0,Qe.jsx)("div",{style:{flex:1,overflowY:"auto",padding:"8px"},children:a?(0,Qe.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"32px"},children:(0,Qe.jsx)(kt,{size:24})}):m.length===0?(0,Qe.jsx)("div",{style:{textAlign:"center",padding:"32px",color:w.gray[500]},children:"No commands found"}):Array.from(f.entries()).map(([y,h])=>(0,Qe.jsxs)("div",{style:{marginBottom:"8px"},children:[(0,Qe.jsx)("div",{style:{padding:"8px 12px",fontSize:U.xs,fontWeight:W.semibold,color:w.gray[500],textTransform:"uppercase",letterSpacing:"0.05em"},children:y}),h.map($=>{let S=b++===p;return(0,Qe.jsxs)("button",{onClick:()=>{$.disabled||(o($),t())},disabled:$.disabled,style:{display:"flex",alignItems:"center",gap:"12px",width:"100%",padding:"10px 12px",border:"none",borderRadius:Oe.md,backgroundColor:S?w.gray[100]:"transparent",color:$.disabled?w.gray[400]:w.gray[900],textAlign:"left",cursor:$.disabled?"not-allowed":"pointer"},children:[$.icon&&(0,Qe.jsx)("span",{style:{display:"flex",color:w.gray[500]},children:$.icon}),(0,Qe.jsxs)("div",{style:{flex:1},children:[(0,Qe.jsx)("div",{style:{fontSize:U.sm},children:$.label}),$.description&&(0,Qe.jsx)("div",{style:{fontSize:U.xs,color:w.gray[500]},children:$.description})]}),$.shortcut&&(0,Qe.jsx)("kbd",{style:{padding:"2px 6px",backgroundColor:w.gray[100],borderRadius:Oe.sm,fontSize:U.xs,color:w.gray[500],fontFamily:"inherit"},children:$.shortcut})]},$.id)})]},y))}),(0,Qe.jsxs)("div",{style:{padding:"8px 12px",borderTop:`1px solid ${w.gray[200]}`,display:"flex",alignItems:"center",gap:"16px",fontSize:U.xs,color:w.gray[500]},children:[(0,Qe.jsx)("span",{children:"\u2191\u2193 Navigate"}),(0,Qe.jsx)("span",{children:"\u21B5 Select"}),(0,Qe.jsx)("span",{children:"Esc Close"})]})]})]})}var Qe,xn,b9=x(()=>{"use strict";Qe=C(B(),1),xn=C(G(),1);co();Hr();tt();Lt();ut()});function x9({brand:e,columns:t,socialLinks:r,bottomText:o,bottomLinks:n,background:i,bordered:a=!0,style:s,className:l}){return(0,vr.jsxs)("footer",{className:l,role:"contentinfo",style:{backgroundColor:i||w.gray[50],borderTop:a?`1px solid ${w.gray[200]}`:void 0,...s},children:[(0,vr.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"48px",padding:"48px 24px",maxWidth:"1280px",margin:"0 auto"},children:[e&&(0,vr.jsx)("div",{style:{flex:"1 1 280px",minWidth:"200px"},children:e}),t?.map((u,c)=>(0,vr.jsxs)("div",{style:{flex:"0 1 180px",minWidth:"140px"},children:[u.title&&(0,vr.jsx)("h4",{style:{fontSize:U.sm,fontWeight:W.semibold,color:w.gray[900],lineHeight:Xe.normal,margin:"0 0 16px 0",padding:0},children:u.title}),(0,vr.jsx)("ul",{style:{listStyle:"none",margin:0,padding:0,display:"flex",flexDirection:"column",gap:"10px"},children:u.links.map((p,d)=>(0,vr.jsx)("li",{children:(0,vr.jsx)("a",{href:p.href,onClick:p.onClick?f=>{f.preventDefault(),p.onClick?.()}:void 0,style:{fontSize:U.sm,color:w.gray[600],textDecoration:"none",transition:"color 0.15s",lineHeight:Xe.normal},"aria-label":p.label,children:p.label})},d))})]},c))]}),(o||n||r)&&(0,vr.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"space-between",gap:"16px",padding:"20px 24px",maxWidth:"1280px",margin:"0 auto",borderTop:`1px solid ${w.gray[200]}`},children:[o&&(0,vr.jsx)("span",{style:{fontSize:U.sm,color:w.gray[500],lineHeight:Xe.normal},children:o}),(0,vr.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"20px"},children:[r?.map((u,c)=>(0,vr.jsx)("a",{href:u.href,"aria-label":u.label,style:{display:"flex",alignItems:"center",justifyContent:"center",color:w.gray[500],transition:"color 0.15s"},children:u.icon},c)),n?.map((u,c)=>(0,vr.jsx)("a",{href:u.href,onClick:u.onClick?p=>{p.preventDefault(),u.onClick?.()}:void 0,style:{fontSize:U.sm,color:w.gray[500],textDecoration:"none",transition:"color 0.15s"},children:u.label},c))]})]})]})}var vr,k9=x(()=>{"use strict";vr=C(B(),1);tt();ut()});function _9({heading:e,description:t,primaryAction:r,secondaryAction:o,media:n,align:i="center",size:a="md",background:s,backgroundImage:l,overlay:u=!1,style:c,className:p}){let d={sm:{padding:"48px 24px",headingSize:U["3xl"],descSize:U.lg},md:{padding:"80px 24px",headingSize:U["4xl"],descSize:U.xl},lg:{padding:"120px 24px",headingSize:U["5xl"],descSize:U.xl}},f=d[a]||d.md,m=!!l,v=m&&u;return(0,kn.jsxs)("section",{className:p,style:{position:"relative",backgroundColor:s||(m?void 0:w.white),...m&&{backgroundImage:`url(${l})`,backgroundSize:"cover",backgroundPosition:"center"},overflow:"hidden",...c},children:[v&&(0,kn.jsx)("div",{"aria-hidden":"true",style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.5)"}}),(0,kn.jsxs)("div",{style:{position:"relative",maxWidth:"1280px",margin:"0 auto",padding:f.padding,display:"flex",flexDirection:i==="center"?"column":"row",alignItems:"center",gap:"48px",textAlign:i==="center"?"center":"left"},children:[(0,kn.jsxs)("div",{style:{flex:i==="left"&&n?"1 1 50%":void 0,maxWidth:i==="center"?"800px":void 0},children:[e&&(0,kn.jsx)("h1",{style:{fontSize:f.headingSize,fontWeight:W.bold,lineHeight:Xe.tight,letterSpacing:Dn.tight,color:v?w.white:w.gray[900],margin:"0 0 16px 0",padding:0},children:e}),t&&(0,kn.jsx)("p",{style:{fontSize:f.descSize,lineHeight:Xe.relaxed,color:v?"rgba(255,255,255,0.9)":w.gray[600],margin:"0 0 32px 0",padding:0,maxWidth:i==="center"?"640px":void 0,...i==="center"&&{marginLeft:"auto",marginRight:"auto"}},children:t}),(r||o)&&(0,kn.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px",justifyContent:i==="center"?"center":"flex-start"},children:[r&&(0,kn.jsx)("button",{onClick:r.onClick,style:{padding:"12px 28px",fontSize:U.base,fontWeight:W.semibold,color:w.white,backgroundColor:w.primary[600],border:"none",borderRadius:"8px",cursor:"pointer",transition:"background-color 0.15s",lineHeight:Xe.normal},children:r.label}),o&&(0,kn.jsx)("button",{onClick:o.onClick,style:{padding:"12px 28px",fontSize:U.base,fontWeight:W.semibold,color:v?w.white:w.gray[700],backgroundColor:"transparent",border:`1px solid ${v?"rgba(255,255,255,0.3)":w.gray[300]}`,borderRadius:"8px",cursor:"pointer",transition:"all 0.15s",lineHeight:Xe.normal},children:o.label})]})]}),n&&(0,kn.jsx)("div",{style:{flex:i==="left"?"1 1 50%":void 0,display:"flex",justifyContent:"center",alignItems:"center",...i==="center"&&{marginTop:"16px"}},children:n})]})]})}var kn,S9=x(()=>{"use strict";kn=C(B(),1);tt();ut()});function w9(e){return`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`}function pw(e){return e.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function gQ(e){return new Date(e).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"})}function hQ(e){return e.some(t=>t.severity==="critical")?"critical":e.some(t=>t.severity==="major")?"major":e.some(t=>t.severity==="minor")?"minor":null}function T9({severity:e}){let r={width:"12px",height:"12px",borderRadius:"var(--ggui-shape-radius-sm, 4px)",backgroundColor:e?E9[e].dot:"var(--ggui-color-success-500, #22c55e)",flexShrink:0};return(0,ce.jsx)("div",{style:r})}function yQ({severity:e}){let t=E9[e],r={display:"inline-flex",alignItems:"center",gap:"4px",fontSize:"var(--ggui-font-size-xs, 12px)",fontWeight:500,padding:"2px 8px",borderRadius:"var(--ggui-shape-radius-full, 9999px)",backgroundColor:t.bg,color:t.text,textTransform:"capitalize"};return(0,ce.jsx)("span",{style:r,children:e})}function vQ({status:e}){let t=e==="resolved";return(0,ce.jsx)("span",{style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:t?"var(--ggui-color-success-600, #16a34a)":"var(--ggui-color-onSurfaceVariant, #52525b)",fontWeight:t?500:400},children:M9[e]})}function $Q({incident:e,compact:t}){let[r,o]=(0,I9.useState)(!1),n={border:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderRadius:"var(--ggui-shape-radius-md, 8px)",overflow:"hidden",backgroundColor:"var(--ggui-color-surface, #ffffff)"},i={display:"flex",alignItems:"center",justifyContent:"space-between",padding:"12px 16px",cursor:t?"default":"pointer",gap:"8px"},a={fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:500,color:"var(--ggui-color-onSurface, #18181b)",margin:0,flex:1,minWidth:0};return(0,ce.jsxs)("div",{style:n,children:[(0,ce.jsxs)("div",{style:i,onClick:t?void 0:()=>o(!r),role:t?void 0:"button",tabIndex:t?void 0:0,onKeyDown:t?void 0:s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),o(!r))},children:[(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flex:1,minWidth:0},children:[(0,ce.jsx)(yQ,{severity:e.severity}),(0,ce.jsx)("p",{style:a,children:e.title})]}),(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0},children:[(0,ce.jsx)(vQ,{status:e.status}),!t&&(0,ce.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"var(--ggui-color-outline, #d4d4d8)",strokeWidth:"2",style:{transform:r?"rotate(180deg)":"none",transition:"transform 200ms cubic-bezier(0.4, 0, 0.2, 1)"},children:(0,ce.jsx)("path",{d:"M6 9l6 6 6-6"})})]})]}),e.affectedServices&&e.affectedServices.length>0&&(0,ce.jsx)("div",{style:{padding:"0 16px 8px",display:"flex",gap:"4px",flexWrap:"wrap"},children:e.affectedServices.map(s=>(0,ce.jsx)("span",{style:{fontSize:"11px",padding:"1px 6px",borderRadius:"var(--ggui-shape-radius-sm, 4px)",backgroundColor:"var(--ggui-color-surfaceVariant, #f4f4f5)",color:"var(--ggui-color-onSurfaceVariant, #52525b)"},children:s},s))}),!t&&r&&e.updates.length>0&&(0,ce.jsx)("div",{style:{borderTop:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",padding:"12px 16px"},children:(0,ce.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:e.updates.map(s=>(0,ce.jsxs)("div",{style:{display:"flex",gap:"8px",fontSize:"12px"},children:[(0,ce.jsx)("span",{style:{color:"var(--ggui-color-outline, #d4d4d8)",flexShrink:0,fontVariantNumeric:"tabular-nums"},children:gQ(s.timestamp)}),(0,ce.jsx)("span",{style:{fontWeight:500,color:"var(--ggui-color-onSurfaceVariant, #52525b)",flexShrink:0,textTransform:"capitalize"},children:M9[s.status]}),(0,ce.jsx)("span",{style:{color:"var(--ggui-color-onSurface, #18181b)"},children:s.message})]},s.id))})})]})}function C9({incidents:e,days:t=14,emptyText:r="All systems operational",compact:o=!1,style:n,className:i}){let a=new Date,s=[];for(let c=0;c<t;c++){let p=new Date(a);p.setDate(p.getDate()-c);let d=w9(p),f=e.filter(m=>{let v=new Date(m.createdAt);return w9(v)===d});s.push({date:p,key:d,incidents:f})}let l=e.length>0,u={fontFamily:"var(--ggui-font-family-sans, Inter, system-ui, sans-serif)",...n};return(0,ce.jsxs)("div",{style:u,className:i,children:[(0,ce.jsxs)("div",{style:{marginBottom:"24px"},children:[(0,ce.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"8px"},children:[(0,ce.jsxs)("span",{style:{fontSize:"var(--ggui-font-size-sm, 14px)",fontWeight:500,color:"var(--ggui-color-onSurface, #18181b)"},children:[t,"-Day History"]}),!l&&(0,ce.jsxs)("span",{style:{fontSize:"var(--ggui-font-size-xs, 12px)",color:"var(--ggui-color-success-600, #16a34a)",display:"flex",alignItems:"center",gap:"4px"},children:[(0,ce.jsx)(T9,{severity:null}),r]})]}),(0,ce.jsx)("div",{style:{display:"flex",gap:"3px",flexDirection:"row-reverse",justifyContent:"flex-end"},children:s.map(c=>{let p=hQ(c.incidents);return(0,ce.jsx)("div",{title:`${pw(c.date)}: ${c.incidents.length===0?"No incidents":`${c.incidents.length} incident(s)`}`,children:(0,ce.jsx)(T9,{severity:p})},c.key)})}),(0,ce.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginTop:"4px",fontSize:"10px",color:"var(--ggui-color-outline, #d4d4d8)"},children:[(0,ce.jsx)("span",{children:pw(s[s.length-1]?.date??a)}),(0,ce.jsx)("span",{children:"Today"})]})]}),l&&(0,ce.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:s.filter(c=>c.incidents.length>0).map(c=>(0,ce.jsxs)("div",{children:[(0,ce.jsx)("div",{style:{fontSize:"var(--ggui-font-size-xs, 12px)",fontWeight:500,color:"var(--ggui-color-onSurfaceVariant, #52525b)",marginBottom:"8px",textTransform:"uppercase",letterSpacing:"0.05em"},children:pw(c.date)}),(0,ce.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:c.incidents.map(p=>(0,ce.jsx)($Q,{incident:p,compact:o},p.id))})]},c.key))})]})}var ce,I9,E9,M9,R9=x(()=>{"use strict";ce=C(B(),1),I9=C(G(),1),E9={minor:{bg:"var(--ggui-color-warning-50, #fffbeb)",text:"var(--ggui-color-warning-700, #b45309)",dot:"var(--ggui-color-warning-500, #f59e0b)"},major:{bg:"var(--ggui-color-error-50, #fef2f2)",text:"var(--ggui-color-error-700, #b91c1c)",dot:"var(--ggui-color-error-500, #ef4444)"},critical:{bg:"var(--ggui-color-error-100, #fee2e2)",text:"var(--ggui-color-error-800, #991b1b)",dot:"var(--ggui-color-error-700, #b91c1c)"}},M9={investigating:"Investigating",identified:"Identified",monitoring:"Monitoring",resolved:"Resolved"}});function z9({chat:e,canvas:t,chatWidth:r="400px",style:o,className:n}){return(0,Vd.jsxs)("div",{className:n,style:{display:"flex",height:"100%",minHeight:0,...o},children:[(0,Vd.jsx)("div",{style:{width:r,minWidth:"320px",maxWidth:"50%",flexShrink:0,borderRight:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",display:"flex",flexDirection:"column",overflow:"hidden"},children:e}),(0,Vd.jsx)("div",{style:{flex:1,minWidth:0,display:"flex",flexDirection:"column",overflow:"hidden"},children:t})]})}var Vd,P9=x(()=>{"use strict";Vd=C(B(),1)});function A9({headline:e,subheadline:t,primaryAction:r,secondaryAction:o,variant:n="default",media:i,style:a,className:s}){let l={default:{backgroundColor:"var(--ggui-color-surface, #ffffff)"},gradient:{background:"linear-gradient(135deg, var(--ggui-color-primary-50, #f0f9ff) 0%, var(--ggui-color-surface, #ffffff) 50%, var(--ggui-color-primary-100, #e0f2fe) 100%)"},pattern:{backgroundColor:"var(--ggui-color-primary-900, #0c4a6e)",backgroundImage:"radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%)"}},u=n==="pattern";return(0,Zr.jsx)("section",{className:s,style:{position:"relative",overflow:"hidden",...l[n],...a},children:(0,Zr.jsxs)("div",{style:{maxWidth:"1280px",margin:"0 auto",padding:"96px 24px",display:"flex",alignItems:"center",gap:"64px",flexWrap:"wrap"},children:[(0,Zr.jsxs)("div",{style:{flex:"1 1 480px",minWidth:0},children:[(0,Zr.jsx)("h1",{style:{fontSize:"var(--ggui-font-size-5xl, 48px)",fontWeight:"var(--ggui-font-weight-bold, 700)",lineHeight:1.1,letterSpacing:"-0.025em",color:u?"#ffffff":"var(--ggui-color-onSurface, #18181b)",margin:"0 0 24px 0"},children:e}),t&&(0,Zr.jsx)("p",{style:{fontSize:"var(--ggui-font-size-xl, 20px)",lineHeight:1.6,color:u?"rgba(255, 255, 255, 0.85)":"var(--ggui-color-onSurfaceVariant, #52525b)",margin:"0 0 40px 0",maxWidth:"560px"},children:t}),(r||o)&&(0,Zr.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"16px"},children:[r&&(0,Zr.jsx)(O9,{action:r,variant:"primary",dark:u}),o&&(0,Zr.jsx)(O9,{action:o,variant:"secondary",dark:u})]})]}),i&&(0,Zr.jsx)("div",{style:{flex:"1 1 400px",display:"flex",justifyContent:"center",alignItems:"center",minWidth:0},children:i})]})})}function O9({action:e,variant:t,dark:r}){let s={...{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"14px 32px",fontSize:"var(--ggui-font-size-lg, 18px)",fontWeight:600,borderRadius:"var(--ggui-shape-radius-lg, 12px)",cursor:"pointer",transition:"all 0.2s ease",textDecoration:"none",border:"none",lineHeight:"1.5"},...t==="primary"?r?{backgroundColor:"#ffffff",color:"var(--ggui-color-primary-900, #0c4a6e)"}:{backgroundColor:"var(--ggui-color-primary-600, #0284c7)",color:"#ffffff"}:r?{backgroundColor:"transparent",color:"#ffffff",border:"2px solid rgba(255, 255, 255, 0.3)"}:{backgroundColor:"transparent",color:"var(--ggui-color-onSurface, #18181b)",border:"2px solid var(--ggui-color-outline, #d4d4d8)"}};return e.href?(0,Zr.jsx)("a",{href:e.href,onClick:e.onClick,style:s,role:"button",children:e.label}):(0,Zr.jsx)("button",{type:"button",onClick:e.onClick,style:s,children:e.label})}var Zr,N9=x(()=>{"use strict";Zr=C(B(),1)});function D9({heading:e,subheading:t,features:r,columns:o=3,style:n,className:i}){return(0,zr.jsxs)("section",{className:i,style:{backgroundColor:"var(--ggui-color-surface, #ffffff)",...n},children:[(0,zr.jsxs)("div",{style:{maxWidth:"1280px",margin:"0 auto",padding:"80px 24px"},children:[(e||t)&&(0,zr.jsxs)("div",{style:{textAlign:"center",marginBottom:"64px"},children:[e&&(0,zr.jsx)("h2",{style:{fontSize:"var(--ggui-font-size-3xl, 30px)",fontWeight:"var(--ggui-font-weight-bold, 700)",lineHeight:1.2,color:"var(--ggui-color-onSurface, #18181b)",margin:"0 0 16px 0"},children:e}),t&&(0,zr.jsx)("p",{style:{fontSize:"var(--ggui-font-size-lg, 18px)",lineHeight:1.6,color:"var(--ggui-color-onSurfaceVariant, #52525b)",margin:0,maxWidth:"640px",marginLeft:"auto",marginRight:"auto"},children:t})]}),(0,zr.jsx)("div",{className:"ggui-features-grid",style:{display:"grid",gridTemplateColumns:`repeat(${o}, 1fr)`,gap:"32px"},children:r.map((a,s)=>(0,zr.jsx)(bQ,{feature:a},s))})]}),(0,zr.jsx)("style",{children:`
178
+ @media (max-width: 768px) {
179
+ .ggui-features-grid {
180
+ grid-template-columns: 1fr !important;
181
+ }
182
+ }
183
+ `})]})}function bQ({feature:e}){return(0,zr.jsxs)("div",{style:{padding:"var(--ggui-spacing-6, 24px)",borderRadius:"var(--ggui-shape-radius-xl, 16px)",backgroundColor:"var(--ggui-color-surface, #ffffff)",border:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",transition:"box-shadow 0.2s ease, transform 0.2s ease",cursor:"default"},onMouseEnter:t=>{t.currentTarget.style.boxShadow="var(--ggui-shape-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))",t.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:t=>{t.currentTarget.style.boxShadow="none",t.currentTarget.style.transform="translateY(0)"},children:[e.icon&&(0,zr.jsx)("div",{style:{fontSize:"32px",marginBottom:"var(--ggui-spacing-4, 16px)",lineHeight:1},children:e.icon}),(0,zr.jsx)("h3",{style:{fontSize:"var(--ggui-font-size-xl, 20px)",fontWeight:"var(--ggui-font-weight-semibold, 600)",lineHeight:1.3,color:"var(--ggui-color-onSurface, #18181b)",margin:"0 0 8px 0"},children:e.title}),(0,zr.jsx)("p",{style:{fontSize:"var(--ggui-font-size-base, 16px)",lineHeight:1.6,color:"var(--ggui-color-onSurfaceVariant, #52525b)",margin:0},children:e.description})]})}var zr,j9=x(()=>{"use strict";zr=C(B(),1)});function U9({headline:e,description:t,action:r,variant:o="filled",style:n,className:i}){let a=o==="filled";return(0,ii.jsx)("section",{className:i,style:{backgroundColor:a?"var(--ggui-color-primary-600, #0284c7)":"var(--ggui-color-surface, #ffffff)",...a?{}:{borderTop:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)",borderBottom:"1px solid var(--ggui-color-outlineVariant, #e4e4e7)"},...n},children:(0,ii.jsxs)("div",{style:{maxWidth:"800px",margin:"0 auto",padding:"80px 24px",textAlign:"center"},children:[(0,ii.jsx)("h2",{style:{fontSize:"var(--ggui-font-size-3xl, 30px)",fontWeight:"var(--ggui-font-weight-bold, 700)",lineHeight:1.2,color:a?"#ffffff":"var(--ggui-color-onSurface, #18181b)",margin:"0 0 16px 0"},children:e}),t&&(0,ii.jsx)("p",{style:{fontSize:"var(--ggui-font-size-lg, 18px)",lineHeight:1.6,color:a?"rgba(255, 255, 255, 0.85)":"var(--ggui-color-onSurfaceVariant, #52525b)",margin:"0 0 32px 0",maxWidth:"560px",marginLeft:"auto",marginRight:"auto"},children:t}),(0,ii.jsx)(xQ,{action:r,filled:a})]})})}function xQ({action:e,filled:t}){let r={display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"14px 36px",fontSize:"var(--ggui-font-size-lg, 18px)",fontWeight:600,borderRadius:"var(--ggui-shape-radius-lg, 12px)",cursor:"pointer",transition:"all 0.2s ease",textDecoration:"none",border:"none",lineHeight:"1.5",...t?{backgroundColor:"#ffffff",color:"var(--ggui-color-primary-700, #0369a1)"}:{backgroundColor:"var(--ggui-color-primary-600, #0284c7)",color:"#ffffff"}};return e.href?(0,ii.jsx)("a",{href:e.href,onClick:e.onClick,style:r,role:"button",children:e.label}):(0,ii.jsx)("button",{type:"button",onClick:e.onClick,style:r,children:e.label})}var ii,L9=x(()=>{"use strict";ii=C(B(),1)});var q9=x(()=>{"use strict";N9();j9();L9()});var dw={};ct(dw,{CardGrid:()=>Q7,ChatWindow:()=>a9,CommandPalette:()=>$9,CommentThread:()=>r9,DataTable:()=>o9,FileUploader:()=>p9,Footer:()=>x9,Header:()=>Z7,Hero:()=>_9,IncidentTimeline:()=>C9,MakeTabLayout:()=>z9,MarketingCTA:()=>U9,MarketingFeatures:()=>D9,MarketingHero:()=>A9,Modal:()=>y9,NavigationBar:()=>l9,NotificationCenter:()=>g9,Sidebar:()=>J7,UserProfileCard:()=>f9});var fw=x(()=>{"use strict";F7();Y7();e9();n9();i9();s9();u9();d9();m9();h9();v9();b9();k9();S9();R9();P9();q9()});var B9,Hd,V9,H9=x(()=>{"use strict";B9=C(B(),1),Hd=C(G(),1),V9=(0,Hd.forwardRef)(function({children:t,onClick:r,onDoubleClick:o,hoverStyle:n,activeStyle:i,cursor:a,transition:s="all 200ms ease",disabled:l=!1,role:u,"aria-label":c,tabIndex:p,style:d,className:f,...m},v){let[b,y]=(0,Hd.useState)(!1),[h,$]=(0,Hd.useState)(!1),_=!!r,S=l?"not-allowed":a??(_?"pointer":void 0),O=u??(_?"button":void 0),k=p??(_?0:void 0),T=M=>{l||!r||(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),r(M))},I={...d,cursor:S,transition:s,opacity:l?.5:void 0,...b&&!l?n:{},...h&&!l?i:{}};return(0,B9.jsx)("div",{ref:v,className:f,style:I,onClick:l?void 0:r,onDoubleClick:l?void 0:o,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),$(!1)},onMouseDown:()=>$(!0),onMouseUp:()=>$(!1),onKeyDown:T,role:O,"aria-label":c,"aria-disabled":l||void 0,tabIndex:k,...m,children:t})})});var G9,Uh,Z9,F9=x(()=>{"use strict";G9=C(B(),1),Uh=C(G(),1),Z9=(0,Uh.forwardRef)(function({children:t,hoverStyle:r,onHoverChange:o,transition:n="all 200ms ease",style:i,className:a,...s},l){let[u,c]=(0,Uh.useState)(!1),p={...i,transition:n,...u?r:{}};return(0,G9.jsx)("div",{ref:l,className:a,style:p,onMouseEnter:()=>{c(!0),o?.(!0)},onMouseLeave:()=>{c(!1),o?.(!1)},...s,children:t})})});var W9,Uu,K9,J9=x(()=>{"use strict";W9=C(B(),1),Uu=C(G(),1),K9=(0,Uu.forwardRef)(function({children:t,onPress:r,onLongPress:o,longPressDelay:n=500,hoverStyle:i,pressStyle:a,disabled:s=!1,transition:l="all 150ms ease",role:u,"aria-label":c,tabIndex:p,style:d,className:f,...m},v){let[b,y]=(0,Uu.useState)(!1),[h,$]=(0,Uu.useState)(!1),[_,S]=(0,Uu.useState)(null),O=!!r||!!o,k=A=>{if(!s&&($(!0),o)){let H=setTimeout(()=>{o(A)},n);S(H)}},T=A=>{s||($(!1),_?(clearTimeout(_),S(null),r?.(A)):o||r?.(A))},I=A=>{s||!r||(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),r(A))},M={...d,cursor:s?"not-allowed":O?"pointer":void 0,transition:l,opacity:s?.5:void 0,userSelect:O?"none":void 0,...b&&!s?i:{},...h&&!s?a:{}},z=typeof t=="function"?t({pressed:h,hovered:b}):t;return(0,W9.jsx)("div",{ref:v,className:f,style:M,onMouseDown:k,onMouseUp:T,onMouseEnter:()=>y(!0),onMouseLeave:()=>{y(!1),$(!1),_&&clearTimeout(_)},onKeyDown:I,role:u??(O?"button":void 0),"aria-label":c,"aria-disabled":s||void 0,tabIndex:p??(O?0:void 0),...m,children:z})})});var mw={};ct(mw,{Clickable:()=>V9,Hoverable:()=>Z9,Pressable:()=>K9});var gw=x(()=>{"use strict";H9();F9();J9()});var kQ,_Q,Y9,X9,Lu,SQ,Q9,eD,tD,wQ,rD=x(()=>{"use strict";kQ={primary50:"#f0f9ff",primary100:"#e0f2fe",primary200:"#bae6fd",primary300:"#7dd3fc",primary400:"#38bdf8",primary500:"#0ea5e9",primary600:"#0284c7",primary700:"#0369a1",primary800:"#075985",primary900:"#0c4a6e",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",info50:"#ecfeff",info100:"#cffafe",info200:"#a5f3fc",info500:"#06b6d4",info600:"#0891b2",info700:"#0e7490",info800:"#155e75",success50:"#f0fdf4",success100:"#dcfce7",success200:"#bbf7d0",success500:"#22c55e",success600:"#16a34a",success700:"#15803d",success800:"#166534",warning50:"#fffbeb",warning100:"#fef3c7",warning200:"#fde68a",warning500:"#f59e0b",warning600:"#d97706",warning700:"#b45309",warning800:"#92400e",error50:"#fef2f2",error100:"#fee2e2",error200:"#fecaca",error500:"#ef4444",error600:"#dc2626",error700:"#b91c1c",error800:"#991b1b",background:"#ffffff",surface:"#ffffff",textPrimary:"#111827",textSecondary:"#6b7280",textDisabled:"#d1d5db",white:"#ffffff",black:"#000000"},_Q={primary50:"#0c4a6e",primary100:"#075985",primary200:"#0369a1",primary300:"#0284c7",primary400:"#0ea5e9",primary500:"#38bdf8",primary600:"#7dd3fc",primary700:"#bae6fd",primary800:"#e0f2fe",primary900:"#f0f9ff",gray50:"#111827",gray100:"#1f2937",gray200:"#374151",gray300:"#4b5563",gray400:"#6b7280",gray500:"#9ca3af",gray600:"#d1d5db",gray700:"#e5e7eb",gray800:"#f3f4f6",gray900:"#f9fafb",info50:"#083344",info100:"#164e63",info200:"#155e75",info500:"#06b6d4",info600:"#22d3ee",info700:"#67e8f9",info800:"#a5f3fc",success50:"#052e16",success100:"#14532d",success200:"#166534",success500:"#22c55e",success600:"#4ade80",success700:"#86efac",success800:"#bbf7d0",warning50:"#451a03",warning100:"#78350f",warning200:"#92400e",warning500:"#f59e0b",warning600:"#fbbf24",warning700:"#fcd34d",warning800:"#fde68a",error50:"#450a0a",error100:"#7f1d1d",error200:"#991b1b",error500:"#ef4444",error600:"#f87171",error700:"#fca5a5",error800:"#fecaca",background:"#0f172a",surface:"#1e293b",textPrimary:"#f1f5f9",textSecondary:"#94a3b8",textDisabled:"#475569",white:"#ffffff",black:"#000000"},Y9={xs:4,sm:8,md:16,lg:24,xl:32,"2xl":48,"3xl":64},X9={fontFamily:{sans:"System",mono:"Courier"},fontSize:{xs:12,sm:14,base:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},lineHeight:{tight:20,normal:24,relaxed:28}},Lu={sm:{shadowColor:"#000000",shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:2,elevation:1},md:{shadowColor:"#000000",shadowOffset:{width:0,height:4},shadowOpacity:.1,shadowRadius:6,elevation:3},lg:{shadowColor:"#000000",shadowOffset:{width:0,height:10},shadowOpacity:.1,shadowRadius:15,elevation:6},xl:{shadowColor:"#000000",shadowOffset:{width:0,height:20},shadowOpacity:.1,shadowRadius:25,elevation:10},"2xl":{shadowColor:"#000000",shadowOffset:{width:0,height:25},shadowOpacity:.25,shadowRadius:50,elevation:15}},SQ={sm:{...Lu.sm,shadowOpacity:.3},md:{...Lu.md,shadowOpacity:.4},lg:{...Lu.lg,shadowOpacity:.4},xl:{...Lu.xl,shadowOpacity:.5},"2xl":{...Lu["2xl"],shadowOpacity:.6}},Q9={instant:0,fast:100,normal:200,slow:300,slower:500},eD={linear:[0,0,1,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.175,.885,.32,1.275]},tD={none:0,sm:4,md:8,lg:12,xl:16,"2xl":24,full:9999},wQ={light:{colors:kQ,spacing:Y9,typography:X9,shadows:Lu,radius:tD,duration:Q9,easing:eD},dark:{colors:_Q,spacing:Y9,typography:X9,shadows:SQ,radius:tD,duration:Q9,easing:eD}}});var nD,oD,iD,hw,yw=x(()=>{"use strict";nD={color:"#0284c7",width:"2px",offset:"2px",style:"solid"},oD={duration:"0ms",transition:"none"},iD={borderWidth:"2px",textColor:"#000000",backgroundColor:"#ffffff",linkColor:"#0369a1"},hw={focusRing:nD,reducedMotion:oD,highContrast:iD}});var vw,$w=x(()=>{"use strict";Lt();Lt();vw={level0:{shadow:"none",zIndex:0},level1:{shadow:Rt.sm,zIndex:"auto"},level2:{shadow:Rt.md,zIndex:xt.dropdown},level3:{shadow:Rt.lg,zIndex:xt.banner},level4:{shadow:Rt.xl,zIndex:xt.modal},level5:{shadow:Rt["2xl"],zIndex:xt.tooltip}}});var bw,xw=x(()=>{"use strict";bw={success:"var(--ggui-color-success-500, #10b981)",error:"var(--ggui-color-error-500, #ef4444)",warning:"var(--ggui-color-warning-500, #f59e0b)",info:"var(--ggui-color-info-500, #06b6d4)",primary:"var(--ggui-color-primary-600, #0284c7)",gray:"var(--ggui-color-neutral-400, #9ca3af)",grayLight:"var(--ggui-color-neutral-200, #e5e7eb)",grayDark:"var(--ggui-color-neutral-600, #4b5563)"}});var kw={};ct(kw,{THINKING_DEFAULT_STYLE:()=>FS,accessibility:()=>hw,animation:()=>ya,chartColors:()=>bw,colors:()=>w,duration:()=>Y,easing:()=>K,elevation:()=>vw,error:()=>aw,focusRing:()=>nD,fontFamily:()=>bh,fontSize:()=>U,fontSizeValues:()=>WA,fontWeight:()=>W,gray:()=>bn,headingStyles:()=>zd,highContrast:()=>iD,info:()=>sw,keyframes:()=>_s,letterSpacing:()=>Dn,lineHeight:()=>Xe,maxWidth:()=>hn,motionSafe:()=>_X,nativeTokens:()=>wQ,primary:()=>Bd,radius:()=>Oe,reducedMotion:()=>oD,reducedMotionCSS:()=>Nd,semantic:()=>Oh,shadow:()=>Rt,spacing:()=>CS,spacingValues:()=>KY,success:()=>ow,textStyles:()=>Pd,thinkingAnimation:()=>St,thinkingKeyframes:()=>_t,thinkingPresets:()=>ZS,tokens:()=>TQ,transition:()=>jS,typography:()=>DS,warning:()=>iw,zIndex:()=>xt});var TQ,_w=x(()=>{"use strict";tt();Lt();ut();jn();rD();yw();$w();xw();Cu();tt();Lt();ut();jn();yw();$w();xw();Cu();TQ={colors:w,semantic:Oh,spacing:CS,radius:Oe,shadow:Rt,maxWidth:hn,zIndex:xt,typography:DS,fontFamily:bh,fontSize:U,fontWeight:W,lineHeight:Xe,duration:Y,easing:K,transition:jS,accessibility:hw,elevation:vw,chartColors:bw,keyframes:_s,animation:ya,reducedMotionCSS:Nd,thinkingKeyframes:_t,thinkingAnimation:St,thinkingPresets:ZS,THINKING_DEFAULT_STYLE:FS}});var ww={};ct(ww,{CachingGadgetCatalog:()=>CQ,InMemoryGadgetCatalog:()=>uD,WrapperConformanceError:()=>Sw,createGguiGadget:()=>IQ,defineGadgetPackage:()=>EQ,getPublicEnv:()=>RQ,useCamera:()=>BQ,useClipboardPaste:()=>NQ,useClipboardWrite:()=>OQ,useFilePicker:()=>UQ,useGeolocation:()=>zQ,useMicrophone:()=>qQ,useNotifications:()=>DQ});function IQ(e){let{hookImpl:t,hook:r,description:o,usage:n,example:i,gotchas:a,permission:s,required:l,...u}=e,c=[];typeof t!="function"&&c.push({path:["hookImpl"],message:"`hookImpl` MUST be a React hook function"});let p={hook:r,description:o,usage:n,example:i,...a!==void 0?{gotchas:a}:{},...s!==void 0?{permission:s}:{},...l!==void 0?{required:l}:{}},d={...u,exports:[p]},f=Oc.safeParse(d);if(!f.success)for(let b of f.error.issues)c.push({path:b.path.map(y=>typeof y=="symbol"?y.toString():y),message:b.message});if(!f.success||c.length>0)throw new Sw(typeof e.hook=="string"?e.hook:void 0,c);let m=f.data;return Object.assign((b=>t(b)),{descriptor:Object.freeze(m)})}function EQ(e){let{exports:t,...r}=e,o=[];t.length===0&&o.push({path:["exports"],message:"a gadget package MUST declare at least one export"});let n=t.map((a,s)=>{typeof a.impl!="function"&&o.push({path:["exports",s,"impl"],message:"`impl` MUST be a function (a React hook or component)"});let l={description:a.description,usage:a.usage,example:a.example,...a.gotchas!==void 0?{gotchas:a.gotchas}:{},...a.permission!==void 0?{permission:a.permission}:{},...a.required!==void 0?{required:a.required}:{}};return"hook"in a?{hook:a.hook,...l}:{component:a.component,...l}}),i=Oc.safeParse({...r,exports:n});if(!i.success)for(let a of i.error.issues)o.push({path:a.path.map(s=>typeof s=="symbol"?s.toString():s),message:a.message});if(!i.success||o.length>0)throw new Sw(e.package,o);return i.data}function RQ(e,t,r=globalThis){let o=r.__ggui__;if(!o)throw new Error(`getPublicEnv('${e}'): globalThis.__ggui__ is not initialized. This function must be invoked from inside a ggui-rendered component or wrapper hook, after the iframe runtime has booted.`);let n=o.publicEnv??{};if(Object.prototype.hasOwnProperty.call(n,e))return n[e];if(t?.optional)return;let i=Object.keys(n);throw new Error(`getPublicEnv('${e}'): not provided in App.publicEnv. Available: [${i.join(", ")||"(none)"}]. Operators set this on the App record; gadget authors declare the key in 'requires' so the push gate verifies it before mount.`)}function aD(e){let t=e.coords;return{...{latitude:t.latitude,longitude:t.longitude,accuracy:t.accuracy,timestamp:e.timestamp},...t.altitude!==null&&{altitude:t.altitude},...t.altitudeAccuracy!==null&&{altitudeAccuracy:t.altitudeAccuracy},...t.heading!==null&&{heading:t.heading},...t.speed!==null&&{speed:t.speed}}}function sD(e){return e.code===e.PERMISSION_DENIED?{code:"permission_denied",message:e.message}:e.code===e.TIMEOUT?{code:"timeout",message:e.message}:{code:"unknown",message:e.message}}function PQ(e){return e instanceof Error?e.name==="NotAllowedError"?{code:"permission_denied",message:e.message}:{code:"unknown",message:e.message}:{code:"unknown",message:String(e)}}function AQ(e){return e instanceof Error?e.name==="NotAllowedError"?{code:"permission_denied",message:e.message}:{code:"unknown",message:e.message}:{code:"unknown",message:String(e)}}function jQ(e){return{name:e.name,size:e.size,type:e.type,_file:e}}function LQ(e){return e instanceof Error?e.name==="NotAllowedError"?{code:"permission_denied",message:e.message}:e.name==="NotFoundError"||e.name==="OverconstrainedError"?{code:"not_supported",message:e.message}:{code:"unknown",message:e.message}:{code:"unknown",message:String(e)}}function lD(e){return e instanceof Error?e.name==="NotAllowedError"?{code:"permission_denied",message:e.message}:e.name==="NotFoundError"||e.name==="OverconstrainedError"?{code:"not_supported",message:e.message}:{code:"unknown",message:e.message}:{code:"unknown",message:String(e)}}var ai,qu,Bu,Vu,Hu,_n,si,Sw,uD,MQ,CQ,zQ,OQ,NQ,DQ,UQ,qQ,BQ,Tw=x(()=>{"use strict";To();To();ai=C(G(),1),qu=C(G(),1),Bu=C(G(),1),Vu=C(G(),1),Hu=C(G(),1),_n=C(G(),1),si=C(G(),1),Sw=class extends Error{code="wrapper_conformance";violations;constructor(e,t){let r=e?` (${e})`:"",o=t.map(n=>` - ${n.path.join(".")||"<root>"}: ${n.message}`).join(`
184
+ `);super(`gadget spec conformance failed${r}
185
+ ${o}`),this.name="WrapperConformanceError",this.violations=t}};uD=class{#e;constructor(e){this.#e=e}static withDefault(e,t){let r=new Map;if(t)for(let[o,n]of t)r.set(o,n);return new MQ(r,e)}async list(e){return this.#e.get(e)??[]}},MQ=class extends uD{#e;constructor(e,t){super(e),this.#e=t}async list(e){let t=await super.list(e);return t.length>0?t:this.#e}},CQ=class{#e;#r;#n;#t=new Map;#o=new Map;constructor(e,t={}){this.#e=e,this.#r=t.ttlMs??3e4,this.#n=t.now??Date.now}async list(e){let t=this.#n(),r=this.#t.get(e);if(r!==void 0&&r.expiresAt>t)return r.entries;let o=this.#o.get(e);if(o!==void 0)return o;let n=(async()=>{try{let i=await this.#e.list(e);return this.#r>0&&this.#t.set(e,{entries:i,expiresAt:this.#n()+this.#r}),i}finally{this.#o.delete(e)}})();return this.#o.set(e,n),n}invalidate(e){if(e===void 0){this.#t.clear();return}this.#t.delete(e)}};zQ=e=>{let[t,r]=(0,ai.useState)(void 0),[o,n]=(0,ai.useState)("idle"),[i,a]=(0,ai.useState)(void 0),s=(0,ai.useRef)(null),l=(0,ai.useCallback)(async()=>{if(typeof navigator>"u"||!navigator.geolocation){a({code:"not_supported",message:"Geolocation API unavailable in this environment."}),n("error");return}n("prompting"),a(void 0);let c={enableHighAccuracy:e?.enableHighAccuracy??!1,maximumAge:e?.maximumAge??0,timeout:e?.timeout??Number.POSITIVE_INFINITY};return e?.watch?new Promise(p=>{let d=!1;s.current=navigator.geolocation.watchPosition(f=>{let m=aD(f);r(m),n("active"),d||(d=!0,p(m))},f=>{let m=sD(f);a(m),n(m.code==="permission_denied"?"denied":"error"),d||(d=!0,p(void 0))},c)}):new Promise(p=>{navigator.geolocation.getCurrentPosition(d=>{let f=aD(d);r(f),n("completed"),p(f)},d=>{let f=sD(d);a(f),n(f.code==="permission_denied"?"denied":"error"),p(void 0)},c)})},[e?.enableHighAccuracy,e?.maximumAge,e?.timeout,e?.watch]),u=(0,ai.useCallback)(()=>{s.current!==null&&typeof navigator<"u"&&(navigator.geolocation.clearWatch(s.current),s.current=null),n("completed")},[]);return{value:t,status:o,...i!==void 0?{error:i}:{},start:l,stop:u}};OQ=e=>{let[t,r]=(0,qu.useState)(void 0),[o,n]=(0,qu.useState)("idle"),[i,a]=(0,qu.useState)(void 0),s=(0,qu.useCallback)(async()=>{if(typeof navigator>"u"||!navigator.clipboard||typeof navigator.clipboard.writeText!="function"){a({code:"not_supported",message:"Clipboard write API unavailable in this environment."}),n("error");return}let l=e?.text;if(typeof l!="string"){a({code:"unknown",message:"useClipboardWrite: `text` option is required at start() time."}),n("error");return}n("prompting"),a(void 0);try{return await navigator.clipboard.writeText(l),r(l),n("completed"),l}catch(u){let c=PQ(u);a(c),n(c.code==="permission_denied"?"denied":"error");return}},[e?.text]);return{value:t,status:o,...i!==void 0?{error:i}:{},start:s}};NQ=()=>{let[e,t]=(0,Bu.useState)(void 0),[r,o]=(0,Bu.useState)("idle"),[n,i]=(0,Bu.useState)(void 0),a=(0,Bu.useCallback)(async()=>{if(typeof navigator>"u"||!navigator.clipboard||typeof navigator.clipboard.readText!="function"){i({code:"not_supported",message:"Clipboard read API unavailable in this environment."}),o("error");return}o("prompting"),i(void 0);try{let s=await navigator.clipboard.readText();return t(s),o("completed"),s}catch(s){let l=AQ(s);i(l),o(l.code==="permission_denied"?"denied":"error");return}},[]);return{value:e,status:r,...n!==void 0?{error:n}:{},start:a}},DQ=e=>{let[t,r]=(0,Vu.useState)(void 0),[o,n]=(0,Vu.useState)("idle"),[i,a]=(0,Vu.useState)(void 0),s=(0,Vu.useCallback)(async()=>{if(typeof Notification>"u"){a({code:"not_supported",message:"Notification API unavailable in this environment."}),n("error");return}if(!e?.title){a({code:"unknown",message:"useNotifications: `title` option required at start()."}),n("error");return}n("prompting"),a(void 0);let l=Notification.permission;if(l==="default")try{l=await Notification.requestPermission()}catch(u){let c={code:"unknown",message:u instanceof Error?u.message:String(u)};a(c),n("error");return}if(l!=="granted"){a({code:"permission_denied",message:"Notification permission not granted."}),n("denied");return}return new Promise(u=>{let c=new Notification(e.title,{...e.body!==void 0?{body:e.body}:{},...e.icon!==void 0?{icon:e.icon}:{},...e.tag!==void 0?{tag:e.tag}:{}}),p=d=>{let f={outcome:d,...e.tag!==void 0?{tag:e.tag}:{}};r(f),n("completed"),u(f)};c.onclick=()=>p("clicked"),c.onclose=()=>p("closed")})},[e?.title,e?.body,e?.icon,e?.tag]);return{value:t,status:o,...i!==void 0?{error:i}:{},start:s}};UQ=e=>{let[t,r]=(0,Hu.useState)(void 0),[o,n]=(0,Hu.useState)("idle"),[i,a]=(0,Hu.useState)(void 0),s=(0,Hu.useCallback)(async()=>{if(typeof document>"u"){a({code:"not_supported",message:"File picker requires a DOM environment."}),n("error");return}return n("prompting"),a(void 0),new Promise(l=>{let u=document.createElement("input");u.type="file",e?.multiple&&(u.multiple=!0),e?.accept&&(u.accept=e.accept),u.onchange=()=>{let c=u.files?Array.from(u.files):[];if(c.length===0){a({code:"aborted",message:"File picker cancelled by user."}),n("denied"),l(void 0);return}let p={files:c.map(jQ)};r(p),n("completed"),l(p)},u.click()})},[e?.multiple,e?.accept]);return{value:t,status:o,...i!==void 0?{error:i}:{},start:s}};qQ=e=>{let[t,r]=(0,_n.useState)(void 0),[o,n]=(0,_n.useState)("idle"),[i,a]=(0,_n.useState)(void 0),s=(0,_n.useRef)(null),l=(0,_n.useRef)(null),u=(0,_n.useRef)(0),c=(0,_n.useRef)(null),p=(0,_n.useCallback)(async()=>{if(typeof navigator>"u"||!navigator.mediaDevices||typeof navigator.mediaDevices.getUserMedia!="function"||typeof MediaRecorder>"u"){a({code:"not_supported",message:"MediaRecorder / getUserMedia unavailable."}),n("error");return}n("prompting"),a(void 0);let f;try{f=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(y){let h=LQ(y);a(h),n(h.code==="permission_denied"?"denied":"error");return}l.current=f;let m=e?.mimeType??"audio/webm",v;try{v=new MediaRecorder(f,{mimeType:m})}catch{v=new MediaRecorder(f)}s.current=v;let b=[];return v.ondataavailable=y=>{y.data&&y.data.size>0&&b.push(y.data)},new Promise(y=>{c.current=y,v.onstop=()=>{let h=new Blob(b,{type:v.mimeType}),$=Date.now()-u.current,_={blob:h,durationMs:$,mimeType:v.mimeType};r(_),n("completed"),l.current?.getTracks().forEach(S=>S.stop()),l.current=null,s.current=null,c.current=null,y(_)},u.current=Date.now(),v.start(),n("active")})},[e?.mimeType]),d=(0,_n.useCallback)(()=>{s.current&&s.current.state==="recording"?s.current.stop():n("completed")},[]);return{value:t,status:o,...i!==void 0?{error:i}:{},start:p,stop:d}};BQ=e=>{let[t,r]=(0,si.useState)(void 0),[o,n]=(0,si.useState)("idle"),[i,a]=(0,si.useState)(void 0),s=(0,si.useRef)(null),l=(0,si.useCallback)(()=>{s.current&&(s.current.getTracks().forEach(c=>c.stop()),s.current=null),n("completed")},[]),u=(0,si.useCallback)(async()=>{if(typeof navigator>"u"||!navigator.mediaDevices||typeof navigator.mediaDevices.getUserMedia!="function"||typeof document>"u"){a({code:"not_supported",message:"getUserMedia / DOM unavailable."}),n("error");return}n("prompting"),a(void 0);let c;try{c=await navigator.mediaDevices.getUserMedia({video:e?.facingMode?{facingMode:e.facingMode}:!0})}catch(p){let d=lD(p);a(d),n(d.code==="permission_denied"?"denied":"error");return}s.current=c,n("active");try{let p=document.createElement("video");p.srcObject=c,p.muted=!0,await p.play(),await new Promise($=>requestAnimationFrame(()=>$()));let d=document.createElement("canvas"),f=p.videoWidth||640,m=p.videoHeight||480;d.width=f,d.height=m;let v=d.getContext("2d");if(!v){a({code:"unknown",message:"2D canvas context unavailable."}),n("error"),l();return}v.drawImage(p,0,0,f,m);let b=e?.mimeType??"image/png",h={dataUrl:e?.quality!==void 0?d.toDataURL(b,e.quality):d.toDataURL(b),width:f,height:m,mimeType:b};return r(h),n("completed"),l(),h}catch(p){let d=lD(p);a(d),n("error"),l();return}},[e?.facingMode,e?.mimeType,e?.quality,l]);return{value:t,status:o,...i!==void 0?{error:i}:{},start:u,stop:l}}});var Iw={};ct(Iw,{getGlobalRegistry:()=>HQ,installGlobalRegistry:()=>VQ});function VQ(e,t=globalThis){let o=t.__ggui__?.contexts??{},n={react:e.react,reactDom:e.reactDom,primitives:e.primitives,components:e.components,compositions:e.compositions,interact:e.interact,wire:e.wire,tokens:e.tokens,gadgets:e.gadgets??{},publicEnv:e.publicEnv??{},contexts:o};t.__ggui__=n;let i=t;return i[Sa.react]=e.react,i[Sa.primitives]=e.primitives,i[Sa.components]=e.components,i[Sa.compositions]=e.compositions,i[Sa.interact]=e.interact,i[Sa.tokens]=e.tokens,i[Sa.gadgets]=n.gadgets,i[Sa.publicEnv]=n.publicEnv,n}function HQ(e=globalThis){return e.__ggui__}var Sa,Ew=x(()=>{"use strict";Sa={react:"__REACT",primitives:"__GGUI_PRIMITIVES",components:"__GGUI_COMPONENTS",compositions:"__GGUI_COMPOSITIONS",interact:"__GGUI_INTERACT",tokens:"__GGUI_TOKENS",gadgets:"__GGUI_CLIENT_LIBRARIES",publicEnv:"__GGUI_PUBLIC_ENV"}});var Mw={};ct(Mw,{loadGadgetRegistry:()=>FQ});async function FQ(e,t,r={}){let o=r.importer??GQ,n=r.integrityLoader??ZQ,i=r.logger??console,a={"@ggui-ai/gadgets":e};for(let s of t){if(s.package in a)continue;let l=s.bundleUrl??s.package;if(l.length===0){i.warn(`[gadgets] package '${s.package}' has an empty load target \u2014 skipping.`);continue}let u=s.bundleUrl!==void 0&&typeof s.bundleSri=="string"&&s.bundleSri.length>0?{url:s.bundleUrl,integrity:s.bundleSri}:void 0;try{let c=u!==void 0?await n({url:u.url,integrity:u.integrity,name:s.package}):await o(l);a[s.package]=c}catch(c){i.warn(`[gadgets] Failed to load package '${s.package}' from '${l}':`,c)}}return a}var GQ,ZQ,Cw=x(()=>{"use strict";GQ=e=>import(e),ZQ=({url:e,integrity:t,name:r})=>new Promise((o,n)=>{if(typeof document>"u"){n(new Error(`[gadgets] SRI loader requires a document; cannot load '${r}' from '${e}' in this runtime.`));return}let i=document.createElement("link");i.rel="modulepreload",i.href=e,i.integrity=t,i.crossOrigin="anonymous",i.addEventListener("load",()=>{import(e).then(a=>o(a),a=>n(a instanceof Error?a:new Error(`[gadgets] post-preload import failed for '${r}' from '${e}'`)))},{once:!0}),i.addEventListener("error",()=>{n(new Error(`[gadgets] integrity-load failed for '${r}' from '${e}' (likely SRI mismatch or network failure)`))},{once:!0}),document.head.appendChild(i)})});function WQ(e,t){switch(e.kind){case"ready":return t;case"handshake":return`Negotiating: ${e.intent}`;case"constructing":return`Building: ${e.intent}`;case"listening":return"Listening\u2026";case"content":switch(e.substate.kind){case"idle":return e.activeItemId;case"handshake":return`Negotiating: ${e.substate.intent}`;case"constructing":return`Building: ${e.substate.intent}`;case"listening":return"Listening\u2026"}case"error":return`Error: ${e.message}`;case"offline":return"Offline \u2014 reconnecting\u2026"}}function KQ(e){switch(e.kind){case"ready":return"ggui-animator-dot--ready";case"handshake":return"ggui-animator-dot--handshake";case"constructing":return"ggui-animator-dot--constructing";case"listening":return"ggui-animator-dot--listening";case"content":switch(e.substate.kind){case"idle":return"ggui-animator-dot--content-idle";case"handshake":return"ggui-animator-dot--handshake";case"constructing":return"ggui-animator-dot--constructing";case"listening":return"ggui-animator-dot--listening"}case"error":return"ggui-animator-dot--error";case"offline":return"ggui-animator-dot--offline"}}function cD({state:e,layout:t,readyLabel:r="ggui"}){let o=WQ(e,r),n=KQ(e),i={...Lh.dot,...e.kind==="error"?Lh.errorDot:{}};return(0,Gd.jsxs)("div",{role:"status","aria-live":e.kind==="error"?"assertive":"polite","aria-label":o,style:t==="centered"?Lh.centered:Lh.navbar,"data-ggui-animator-state":e.kind,"data-ggui-animator-layout":t,children:[(0,Gd.jsx)("span",{className:n,style:i,"aria-hidden":"true"}),(0,Gd.jsx)("span",{children:o})]})}var Gd,Lh,pD=x(()=>{"use strict";Gd=C(B(),1);Lh={centered:{position:"absolute",top:"40%",left:"50%",transform:"translate(-50%, -50%)",display:"inline-flex",alignItems:"center",gap:8,padding:"8px 16px",borderRadius:9999,background:"var(--ggui-color-surface, rgba(245, 245, 245, 0.95))",border:"1px solid var(--ggui-color-outlineVariant, rgba(148, 163, 184, 0.3))",fontSize:13,color:"var(--ggui-color-onSurface, #1a1a1a)",fontFamily:"inherit"},navbar:{display:"inline-flex",alignItems:"center",gap:6,padding:"4px 12px",borderRadius:9999,background:"var(--ggui-color-surface, rgba(245, 245, 245, 0.95))",border:"1px solid var(--ggui-color-outlineVariant, rgba(148, 163, 184, 0.3))",fontSize:12,color:"var(--ggui-color-onSurface, #1a1a1a)",fontFamily:"inherit"},dot:{width:8,height:8,borderRadius:"50%",background:"var(--ggui-color-primary, #2563eb)",flexShrink:0},errorDot:{background:"var(--ggui-color-error, #b91c1c)"}}});function dD(e,t){if(t.kind==="contract_error")return{kind:"error",message:t.message,recoveryTo:e.kind==="error"?e.recoveryTo:e};if(t.kind==="error_dismissed")return e.kind==="error"?e.recoveryTo:e;if(t.kind==="transport_offline")return e.kind==="offline"?e:{kind:"offline"};if(t.kind==="transport_online")return e.kind==="offline"?Es:e;if(e.kind==="content")switch(t.kind){case"handshake_started":return{...e,substate:{kind:"handshake",intent:t.payload.intent}};case"handshake_completed":return{...e,substate:{kind:"idle"}};case"push_started":return{...e,substate:{kind:"constructing",intent:t.payload.intent,stackItemId:t.payload.stackItemId}};case"consume_polling":return{...e,substate:{kind:"listening",stackItemId:t.payload.stackItemId}};case"stack_item_appended":return{kind:"content",activeItemId:t.stackItemId,substate:{kind:"idle"}};case"action_drained":return e.substate.kind==="listening"&&e.substate.stackItemId===t.stackItemId?{...e,substate:{kind:"idle"}}:e;case"stack_emptied":return Es}switch(t.kind){case"handshake_started":return{kind:"handshake",handshakeId:t.payload.handshakeId,intent:t.payload.intent};case"handshake_completed":return e.kind!=="handshake"||e.handshakeId!==t.payload.handshakeId?e:Es;case"push_started":return{kind:"constructing",stackItemId:t.payload.stackItemId,intent:t.payload.intent};case"consume_polling":return{kind:"listening",stackItemId:t.payload.stackItemId};case"stack_item_appended":return{kind:"content",activeItemId:t.stackItemId,substate:{kind:"idle"}};case"action_drained":return e.kind==="listening"&&e.stackItemId===t.stackItemId?Es:e;case"stack_emptied":return Es}}var Es,fD=x(()=>{"use strict";Es={kind:"ready"}});function Rw({events:e,layout:t,readyLabel:r,handshakeFlickerMs:o=150}){let[n,i]=(0,Gu.useReducer)(dD,Es),a=(0,Gu.useRef)(null);return(0,Gu.useEffect)(()=>{let s=e.subscribe(l=>{if(o>0&&l.kind==="handshake_started"){a.current&&clearTimeout(a.current.timer);let u=l.payload.handshakeId,c=setTimeout(()=>{i(l),a.current=null},o);a.current={handshakeId:u,timer:c,event:l};return}if(l.kind==="handshake_completed"&&a.current&&a.current.handshakeId===l.payload.handshakeId){clearTimeout(a.current.timer),a.current=null;return}i(l)});return()=>{s(),a.current&&(clearTimeout(a.current.timer),a.current=null)}},[e,o]),(0,mD.jsx)(cD,{state:n,layout:t,readyLabel:r})}var Gu,mD,gD=x(()=>{"use strict";Gu=C(G(),1);pD();fD();mD=C(B(),1)});function hD({navStack:e,events:t,onBackGesture:r,renderActiveItem:o}){let[,n]=(0,qh.useState)(e.version());(0,qh.useEffect)(()=>e.onMutation(()=>{n(e.version())}),[e]);let i=e.size()===0?"empty":"has-content",a=e.peek(),s=()=>{let d=e.peek();if(!d)return;let f=e.pop();r({previousActiveItemId:d.id,activeItemId:f?.id??null})},l={position:"relative",width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},u={flexShrink:0,display:"flex",alignItems:"center",gap:8,padding:"8px 12px",borderBottom:"1px solid var(--ggui-color-outlineVariant, rgba(148, 163, 184, 0.2))",background:"var(--ggui-color-surface, rgba(255, 255, 255, 0.98))"},c={flex:1,overflow:"auto",position:"relative"},p={flex:1,position:"relative"};return i==="empty"?(0,go.jsx)("div",{style:l,"data-ggui-canvas-shell":"empty",children:(0,go.jsx)("div",{style:p,children:(0,go.jsx)(Rw,{events:t,layout:"centered"})})}):(0,go.jsxs)("div",{style:l,"data-ggui-canvas-shell":"content",children:[(0,go.jsxs)("div",{style:u,"data-ggui-canvas-navbar":"true",children:[e.size()>1?(0,go.jsx)("button",{type:"button",onClick:s,"aria-label":"Go back","data-ggui-canvas-back":"true",style:{background:"transparent",border:"none",cursor:"pointer",padding:"4px 8px",fontSize:16,color:"var(--ggui-color-onSurface, #1a1a1a)"},children:"\u2190"}):null,(0,go.jsx)(Rw,{events:t,layout:"navbar"})]}),(0,go.jsx)("div",{style:c,"data-ggui-canvas-content":"true",children:o(a)})]})}var qh,go,yD=x(()=>{"use strict";qh=C(G(),1);gD();go=C(B(),1)});var Bh,vD=x(()=>{"use strict";Bh=class{items=[];mutationListener=null;navChangeListener=null;versionCounter=0;reset(t){let r=this.peek();this.items=[...t],this.versionCounter+=1,this.mutationListener?.(),this.navChangeListener?.({direction:"forward",activeItemId:this.peek()?.id??null,previousActiveItemId:r?.id??null})}push(t){let r=this.items.findIndex(n=>n.id===t.id);if(r>=0){this.items[r]=t,this.versionCounter+=1,this.mutationListener?.();return}let o=this.peek();this.items.push(t),this.versionCounter+=1,this.mutationListener?.(),this.navChangeListener?.({direction:"forward",activeItemId:t.id,previousActiveItemId:o?.id??null})}pop(){if(this.items.length===0)return null;let t=this.items.pop()??null;this.versionCounter+=1;let r=this.peek();return this.mutationListener?.(),this.navChangeListener?.({direction:"back",activeItemId:r?.id??null,previousActiveItemId:t?.id??null}),r}peek(){return this.items[this.items.length-1]??null}snapshot(){return this.items}size(){return this.items.length}version(){return this.versionCounter}onMutation(t){return this.mutationListener=t,()=>{this.mutationListener===t&&(this.mutationListener=null)}}onNavChange(t){return this.navChangeListener=t,()=>{this.navChangeListener===t&&(this.navChangeListener=null)}}}});var $D={};ct($D,{AnimatorEventBus:()=>Vh,mountCanvas:()=>JQ});function JQ(e,t,r={}){let o=new Bh,n=new Vh,i=[],a=e.ownerDocument.createElement("div");a.setAttribute("data-ggui-canvas-content-slot","true"),a.style.width="100%",a.style.height="100%";let s,l,u=null,c=()=>{u?.({available:s,current:l})},{react:p,reactDomClient:d}=t,f=d.createRoot(e);function m(){let[b,y]=p.useState({available:s,current:l});p.useEffect(()=>(u=y,()=>{u===y&&(u=null)}),[]);let h={navStack:o,events:n,...b.available!==void 0?{availableDisplayModes:b.available}:{},...b.current!==void 0?{currentDisplayMode:b.current}:{},onRequestDisplayMode:$=>{r.onRequestDisplayMode?.($)},onBackGesture:$=>{r.onBackGesture?.($)},renderActiveItem:()=>p.createElement(v,{node:a})};return p.createElement(hD,h)}function v({node:b}){let y=p.useRef(null);return p.useEffect(()=>{let h=y.current;if(h!==null)return h.appendChild(b),()=>{b.parentNode===h&&h.removeChild(b)}},[b]),p.createElement("div",{ref:y,style:{width:"100%",height:"100%"}})}return f.render(p.createElement(m,null)),{navStack:o,events:n,contentEl:a,setStack(b){o.reset(b)},pushItem(b){o.push(b)},setDisplayMode(b){l=b,c()},setAvailableDisplayModes(b){s=b,c()},registerCleanup(b){i.push(b)},dispose(){for(;i.length>0;){let b=i.shift();try{b?.()}catch{}}try{f.unmount()}catch{}}}}var Vh,bD=x(()=>{"use strict";yD();vD();Vh=class{listeners=new Set;subscribe=t=>(this.listeners.add(t),()=>{this.listeners.delete(t)});publish(t){for(let r of this.listeners)r(t)}publishLifecycle(t){switch(t.kind){case"handshake_started":this.publish({kind:"handshake_started",payload:t});return;case"handshake_completed":this.publish({kind:"handshake_completed",payload:t});return;case"push_started":this.publish({kind:"push_started",payload:t});return;case"consume_polling":this.publish({kind:"consume_polling",payload:t});return}}}});To();function It(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function pr(e){return typeof e=="string"&&e.length>0}function fk(e){if(!It(e))return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};let t=e.sessionId,r=e.appId,o=e.runtimeUrl;if(!pr(t)||!pr(r)||!pr(o))return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};let n=e.wsUrl,i=e.token,a=e.codeUrl,s=e.kind,l=pr(n),u=pr(i),c=pr(a),p=pr(s);if(l!==u)return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};if(!l&&!c&&!p)return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};if(p&&c)return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};let d=e.expiresAt,f,m=!1;if(d===void 0)f="9999-12-31T23:59:59.999Z";else{if(!pr(d))return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};let qe=Date.parse(d);if(Number.isNaN(qe))return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};if(qe<=Date.now()){if(!c&&!p)return{ok:!1,reason:"EXPIRED_BOOTSTRAP"};m=!0,f=void 0}else f=d}let v=e.stackItemId,b=typeof v=="string"&&v.length>0?v:void 0,y=e.themeId,h=typeof y=="string"&&y.length>0?y:void 0,$=e.themeMode,_=$==="dark"||$==="light"?$:void 0,S=e.propsJson,O=typeof S=="string"?S:void 0,k=c?a:void 0,T=e.codeHash,I=typeof T=="string"&&T.length>0?T:void 0,z=e.canvasMode===!0?!0:void 0,A=e.appCallableTools,H=Array.isArray(A)&&A.every(qe=>typeof qe=="string")?A:[],ee=e.actionNextSteps,Ie={};It(ee)&&Object.values(ee).every(qe=>typeof qe=="string")&&(Ie=ee);let He=e.contextSlots,J=(()=>{if(!Array.isArray(He))return[];let qe=[];for(let Tt of He){if(!It(Tt))return[];let Sn=Tt.name,yo=Tt.contextName,ui=Tt.schema;if(!pr(Sn))return[];if(!pr(yo))return[];if(!It(ui))return[];let Vn=Tt.debounceMs;if(Vn!==void 0&&typeof Vn!="number")return[];if(!("default"in Tt))return[];let wa={name:Sn,contextName:yo,schema:ui,default:Tt.default,...Vn!==void 0?{debounceMs:Vn}:{}};qe.push(wa)}return qe})(),Se=e.permissionsPolicy,yt;Array.isArray(Se)&&Se.every(qe=>typeof qe=="string"&&qe.length>0)&&(yt=Se);let Fr=e.publicEnv,Pr=(()=>{if(Fr===void 0||!It(Fr))return;let qe={};for(let[Tt,Sn]of Object.entries(Fr)){if(!qm.test(Tt)||typeof Sn!="string")return;qe[Tt]=Sn}return qe})(),we=e.gadgets,Ge=(()=>{if(we===void 0||!Array.isArray(we))return;let qe=[];for(let Tt of we){if(!It(Tt))return;let Sn=Tt.package;if(!pr(Sn))return;let yo=Tt.bundleUrl,ui=Tt.bundleSri,Vn=pr(yo)?yo:void 0,wa=pr(ui)&&Vn!==void 0?ui:void 0;qe.push({package:Sn,...Vn!==void 0?{bundleUrl:Vn}:{},...wa!==void 0?{bundleSri:wa}:{}})}return qe})(),wt=e.compiledValidators,Bn=(()=>{if(wt===void 0||!It(wt))return;let qe={},Tt=wt.props;if(Tt!==void 0){if(!pr(Tt))return;qe.props=Tt}for(let Sn of["actions","streams","context"]){let yo=wt[Sn];if(yo===void 0)continue;if(!It(yo))return;let ui={};for(let[Vn,wa]of Object.entries(yo)){if(!pr(wa))return;ui[Vn]=wa}qe[Sn]=ui}return Object.keys(qe).length>0?qe:void 0})(),li=e.streamWebSocketLocalTools,Fh;return Array.isArray(li)&&li.every(qe=>typeof qe=="string"&&qe.length>0)&&(Fh=li),{ok:!0,bootstrap:{sessionId:t,appId:r,runtimeUrl:o,...f!==void 0?{expiresAt:f}:{},appCallableTools:H,actionNextSteps:Ie,contextSlots:J,...l&&u&&!m?{wsUrl:n,token:i}:{},...p?{kind:s}:{},...b!==void 0?{stackItemId:b}:{},...h!==void 0?{themeId:h}:{},..._!==void 0?{themeMode:_}:{},...O!==void 0?{propsJson:O}:{},...k!==void 0?{codeUrl:k}:{},...I!==void 0?{codeHash:I}:{},...yt!==void 0?{permissionsPolicy:yt}:{},...Fh!==void 0?{streamWebSocketLocalTools:Fh}:{},...Ge!==void 0?{gadgets:Ge}:{},...Pr!==void 0?{publicEnv:Pr}:{},...z!==void 0?{canvasMode:z}:{},...Bn!==void 0?{compiledValidators:Bn}:{}}}}function zF(e){if(!It(e))return{ok:!1,reason:"MISSING_TOOL_OUTPUT"};let t=e.toolOutput;if(!It(t))return{ok:!1,reason:"MISSING_TOOL_OUTPUT"};let r=t._meta;if(!It(r))return{ok:!1,reason:"MISSING_META_GGUI_BOOTSTRAP"};let o=r.ggui;if(!It(o))return{ok:!1,reason:"MISSING_META_GGUI_BOOTSTRAP"};let n=o.bootstrap;if(!It(n))return{ok:!1,reason:"MISSING_META_GGUI_BOOTSTRAP"};let i=fk(n);if(!i.ok)return i;let a=Vm(e.hostContext);return a!==void 0?{ok:!0,bootstrap:i.bootstrap,hostContext:a}:i}var NC=zF;function DC(){if(typeof globalThis>"u")return{ok:!1,reason:"MALFORMED_BOOTSTRAP"};let e=globalThis.__GGUI_BOOTSTRAP__;return fk(e)}function jC(e){if(!It(e))return{ok:!1,reason:"MISSING_TOOL_OUTPUT"};let t,r=e._meta;if(It(r))t=r;else{let i=e.toolOutput;if(It(i)){let a=i._meta;It(a)&&(t=a)}}if(t===void 0)return{ok:!1,reason:"MISSING_META_GGUI_BOOTSTRAP"};let o=t.ggui;if(!It(o))return{ok:!1,reason:"MISSING_META_GGUI_BOOTSTRAP"};let n=o.bootstrap;return It(n)?fk(n):{ok:!1,reason:"MISSING_META_GGUI_BOOTSTRAP"}}var vp=class{items=[];filterToItemId;constructor(t={}){this.filterToItemId=t.filterToItemId}setAll(t){if(this.filterToItemId!==void 0){let r=this.filterToItemId;this.items=t.filter(o=>o.id===r);return}this.items=[...t]}upsert(t){if(this.filterToItemId!==void 0&&t.id!==this.filterToItemId)return;let r=this.items.findIndex(o=>o.id===t.id);if(r>=0){let o=[...this.items];o[r]=t,this.items=o;return}this.items=[...this.items,t]}snapshot(){return this.items}size(){return this.items.length}};function PF(e){return typeof e.description=="string"&&e.description.length>0?e.description:e.type!=="mcpApps"&&e.type!=="system"&&typeof e.prompt=="string"&&e.prompt.length>0?e.prompt:"(untitled stack item)"}function UC(e,t){e.replaceChildren();let r=t.snapshot();if(r.length===0){let o=e.ownerDocument.createElement("li");o.textContent="(no stack items yet)",o.setAttribute("data-ggui-empty","true"),e.appendChild(o);return}for(let o of r){let n=e.ownerDocument.createElement("li");n.setAttribute("data-ggui-stack-item",o.id);let i=e.ownerDocument.createElement("span");i.className="id",i.textContent=o.id,n.appendChild(i);let a=e.ownerDocument.createElement("span");a.className="label",a.textContent=PF(o),n.appendChild(a),e.appendChild(n)}}To();var Ot=null;function qC(e){if(Ot===null){Ot={sessionId:e.sessionId,send:e.send,current:e.initial,listener:null},gk();return}px(Ot.current,e.initial)||(Ot.current=e.initial,gk())}function BC(e=window){if(Ot===null||Ot.listener!==null)return;let t=r=>{OF(r.data)};Ot.listener=t,e.addEventListener("message",t)}var mk=new Set;function VC(e){return mk.add(e),Ot!==null&&e(Ot.current),()=>{mk.delete(e)}}function LC(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function OF(e){if(Ot===null||!LC(e)||e.method!=="ui/notifications/host-context-changed")return;let t=e.params;if(!LC(t))return;let r=Vm(t);if(r===void 0)return;let o={...Ot.current,...r};px(Ot.current,o)||(Ot.current=o,gk())}function gk(){if(Ot!==null){try{Ot.send({type:"host_context_observed",payload:{sessionId:Ot.sessionId,hostContext:Ot.current}})}catch{}for(let e of mk)try{e(Ot.current)}catch{}}}$p();To();var Pl;function Ek(e){Pl=e}var Mk={valid:!0,violations:[]};function jg(e,t){try{return t()}catch(r){return typeof console<"u"&&console.warn(`[ggui:validation] ${e}: validator unavailable (no precompiled validator + CSP blocks in-iframe compile) \u2014 allowing through`,r),Mk}}function IR(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;let r=new Map(e);for(let[o,n]of t)r.set(o,n);return r}function ER(e,t){return jg("outbound-action",()=>Cg(t,e,Pl?.actions))}function MR(e,t,r,o){return jg("inbound-stream",()=>El(t)?Ml(t,r,e??{},o.reservedValidators,Pl?.streams):e?Ml(t,r,e,o.reservedValidators,Pl?.streams):Mk)}function CR(e,t){return e?jg("inbound-props",()=>Mg(t,e,Pl?.props)):Mk}function RR(e,t,r){return jg("context-slot",()=>vC(t,r,e,Pl?.context))}function zR(e){console.warn("[ggui:protocol-error]",e)}function PR(e){return{kind:"protocol",code:"CLIENT_CONTRACT_VIOLATION",message:e.message,details:{direction:e.direction,violations:e.violations}}}function Ck(e){let t=e.observedVersion===void 0?void 0:typeof e.observedVersion=="string"?e.observedVersion:e.observedVersion.join(", ");return{kind:"version",...t!==void 0?{serverVersion:t}:{},clientSupports:e.acceptedVersions,message:e.message}}function OR(e,t){return{kind:"bootstrap",reason:e,message:t}}function Ug(e,t,r){return{kind:"transport",code:e,retryable:t,...r!==void 0?{message:r}:{}}}function Rk(e,t){return{kind:"auth",code:e,...t!==void 0?{message:t}:{}}}var AR="_ggui:",QF=256,Lg=class{listeners=new Map;reservedReplay=new Map;subscribe(t,r){let o=this.listeners.get(t);if(o===void 0&&(o=new Set,this.listeners.set(t,o)),o.add(r),t.startsWith(AR)){let n=this.reservedReplay.get(t);if(n!==void 0)for(let i of n)r(i)}return()=>{let n=this.listeners.get(t);n!==void 0&&(n.delete(r),n.size===0&&this.listeners.delete(t))}}emit(t){if(t.channel.startsWith(AR)){let o=this.reservedReplay.get(t.channel);o===void 0&&(o=[],this.reservedReplay.set(t.channel,o)),o.push(t),o.length>QF&&o.shift()}let r=this.listeners.get(t.channel);if(r!==void 0)for(let o of r)o(t)}};function NR(e){let t={current:0};function r(){return t.current+=1,t.current}let o=e.onProtocolError??zR,n=e.onObserve??(()=>{});function i(u){e.onContractViolation?e.onContractViolation(u):e.onProtocolError===void 0&&console.warn("[ggui:contract] "+u.message,{direction:u.direction,violations:u.violations}),o(PR(u))}function a(u,c,p){let d=Dg({sessionId:e.sessionId,type:"data:submit",payload:{action:u,data:c,...p.tool?{tool:p.tool}:{}},stackIndex:p.stackIndex,...p.stackItemId?{stackItemId:p.stackItemId}:{},clientSeq:r()}),f=ER(p.actionSpec,d);if(!f.valid){i(new zl("outbound-action",f.violations));return}tW(e.manager,d),p.tool!==void 0&&n({kind:"wired-tool-invoked",toolName:p.tool,actionName:u,dispatchedAt:new Date().toISOString()})}let s={app:{appId:e.appId,appName:e.appId},session:{sessionId:e.sessionId,isConnected:!0},auth:{isAuthenticated:!1},dispatch:(u,c)=>{let p=e.getStack(),d=p[p.length-1],f=p.length>0?p.length-1:0,m=d!==void 0&&d.type!=="mcpApps"&&d.type!=="system"?d.actionSpec:void 0,b=m?.[u]?.nextStep;a(u,c,{stackItemId:d?.id,stackIndex:f,...b!==void 0?{tool:b}:{},...m!==void 0?{actionSpec:m}:{}})},subscribe:(u,c)=>e.streamBus.subscribe(u,p=>{c({payload:p.payload,mode:p.mode,...p.complete!==void 0?{complete:p.complete}:{}})})};return{config:s,buildScopedConfig:u=>eW(s,u,{getStack:e.getStack,dispatchByItem:a})}}function eW(e,t,r){return{...e,dispatch:(o,n)=>{let a=t.actionSpec?.[o]?.nextStep,l=r.getStack().findIndex(u=>u.id===t.stackItemId);r.dispatchByItem(o,n,{...t.stackItemId!==void 0?{stackItemId:t.stackItemId}:{},stackIndex:l>=0?l:0,...a!==void 0?{tool:a}:{},...t.actionSpec!==void 0?{actionSpec:t.actionSpec}:{}})}}}function tW(e,t){e.send({type:"action",payload:t})}function DR(e){let t=new Map,r=new Set(e.streamWebSocketLocalTools??[]),o=e.defaultPollIntervalMs??1e4,n="connected",i=!1,a=e.onObserve??(()=>{});function s(m,v){return`${m}:${v}`}function l(m){m.pollTimer!==null&&(clearInterval(m.pollTimer),m.pollTimer=null)}function u(m,v,b){let y={sessionId:e.sessionId,channel:m.channelName,mode:m.mode,payload:v,...b===!0?{complete:!0}:{}};e.streamBus.emit(y)}function c(m){if(m.pollTimer!==null)return;let v=async()=>{if(!i)try{let b=await e.toolsCall({toolName:m.toolName,args:{...m.args??{}}});if(i)return;u(m,b)}catch{}};v(),m.pollTimer=setInterval(()=>{v()},o)}function p(m){e.send({type:"channel_subscribe",payload:{sessionId:e.sessionId,appId:e.appId,stackItemId:m.stackItemId,channelName:m.channelName,...m.args!==void 0?{args:{...m.args}}:{}}})}function d(m){n==="connected"&&e.send({type:"channel_unsubscribe",payload:{sessionId:e.sessionId,appId:e.appId,stackItemId:m.stackItemId,channelName:m.channelName}})}function f(m){if(m.preferWs&&!m.permanentPollFallback){if(n==="connected"){p(m),a({kind:"channel-transport-picked",stackItemId:m.stackItemId,channelName:m.channelName,transport:"ws"});return}c(m),a({kind:"channel-transport-picked",stackItemId:m.stackItemId,channelName:m.channelName,transport:"poll"});return}c(m),a({kind:"channel-transport-picked",stackItemId:m.stackItemId,channelName:m.channelName,transport:"poll"})}return{applyStackItem:m=>{if(i)return;let v=new Set,b=m.streamSpec??{};for(let[y,h]of Object.entries(b)){let $=h.source;if($==null||typeof $!="object"||typeof $.tool!="string"||$.tool.length===0)continue;let _=$.tool,S=$.args!==void 0&&$.args!==null?$.args:void 0,O=s(m.stackItemId,y);if(v.add(O),t.get(O)!==void 0)continue;let T={stackItemId:m.stackItemId,channelName:y,toolName:_,...S!==void 0?{args:S}:{},mode:h.mode??"append",preferWs:r.has(_),pollTimer:null,hasReceivedWsPayload:!1,permanentPollFallback:!1};t.set(O,T),f(T)}for(let[y,h]of t)h.stackItemId===m.stackItemId&&!v.has(y)&&(l(h),d(h),t.delete(y))},handleWsFrame:m=>{if(i)return!1;if(m.type==="channel_payload"){let v=m.payload,b=s(v.stackItemId,v.channelName),y=t.get(b);return y===void 0?!1:(!y.hasReceivedWsPayload&&y.pollTimer!==null&&l(y),y.hasReceivedWsPayload=!0,u(y,v.payload,v.complete),!0)}if(m.type==="channel_error"){let v=m.payload;for(let b of t.values())b.channelName===v.channelName&&(v.code==="CHANNEL_NOT_LOCAL"||v.code==="CHANNEL_UNKNOWN"||v.code==="STACK_ITEM_NOT_FOUND")&&(b.permanentPollFallback=!0,c(b),a({kind:"channel-transport-fallback",stackItemId:b.stackItemId,channelName:b.channelName,reason:"channel-not-local"}));return!0}return!1},onWsStatusChange:m=>{if(i)return;let v=n;if(n=m,m==="disconnected"||m==="reconnecting"){for(let b of t.values())b.preferWs&&(b.permanentPollFallback||(b.hasReceivedWsPayload&&(b.hasReceivedWsPayload=!1),b.pollTimer===null&&(c(b),a({kind:"channel-transport-fallback",stackItemId:b.stackItemId,channelName:b.channelName,reason:"ws-disconnect"}))));return}if(m==="connected"&&(v==="disconnected"||v==="reconnecting"))for(let b of t.values())b.preferWs&&(b.permanentPollFallback||(p(b),a({kind:"channel-transport-resubscribed",stackItemId:b.stackItemId,channelName:b.channelName})))},dispose:()=>{if(!i){i=!0;for(let m of t.values())l(m);t.clear()}}}}var Ol=class{opts;kind="polling";pollers=[];disposed=!1;currentStatus="connecting";constructor(t){this.opts=t}get status(){return this.currentStatus}start(){if(this.disposed)return;let t=this.opts.minPollIntervalMs??500;for(let r of this.opts.handlers.values()){if(!r.polling)continue;let o=Math.max(r.polling.intervalMs,t),n={type:r.type,url:r.polling.url,intervalMs:o,timer:null,cancelled:!1};this.pollers.push(n),this.tick(n,r),n.timer=setInterval(()=>{this.tick(n,r)},o)}this.currentStatus="open"}async dispose(){if(!this.disposed){this.disposed=!0;for(let t of this.pollers)t.cancelled=!0,t.timer!==null&&(clearInterval(t.timer),t.timer=null);this.pollers.length=0,this.currentStatus="closed"}}async tick(t,r){if(this.disposed||t.cancelled)return;let o=this.opts.fetchImpl??globalThis.fetch;if(typeof o!="function"){this.opts.logger?.warn?.("channel_polling_no_fetch",{type:t.type});return}let n;try{let a=await o(t.url);if(!a.ok){this.opts.logger?.debug?.("channel_polling_non_ok",{type:t.type,status:a.status});return}if(a.status===204)return;(a.headers.get("content-type")??"").includes("application/json")?n=await a.json():n=await a.text()}catch(a){this.opts.logger?.debug?.("channel_polling_fetch_failed",{type:t.type,error:a instanceof Error?a.message:String(a)});return}if(this.disposed||t.cancelled)return;let i=r.polling?.parse(n);if(i!=null)try{let a=r.onMessage(i);a instanceof Promise&&a.catch(s=>{this.opts.logger?.warn?.("channel_handler_throw",{type:t.type,error:s instanceof Error?s.message:String(s)})})}catch(a){this.opts.logger?.warn?.("channel_handler_throw",{type:t.type,error:a instanceof Error?a.message:String(a)})}}};var zk=class{limit;items=[];constructor(t){this.limit=t}push(t){this.items.length>=this.limit&&this.items.shift(),this.items.push(t)}drain(){return this.items.splice(0)}},Ga=class{opts;kind="ws";socket=null;queue=new zk(500);reconnectAttempts=0;reconnectTimer=null;pingInterval=null;disposed=!1;currentStatus="connecting";wasOpenedThisAttempt=!1;consecutiveNeverOpenedCloses=0;constructor(t){this.opts=t}get status(){return this.currentStatus}start(){if(this.disposed)return;this.setStatus("connecting"),this.wasOpenedThisAttempt=!1;let t=this.opts.webSocketFactory??(o=>new WebSocket(o)),r;try{r=t(this.opts.url)}catch(o){this.opts.logger?.warn?.("channel_ws_construct_failed",{url:this.opts.url,error:o instanceof Error?o.message:String(o)}),this.setStatus("failed");return}this.socket=r,r.onopen=()=>{if(!this.disposed){this.reconnectAttempts=0,this.wasOpenedThisAttempt=!0,this.consecutiveNeverOpenedCloses=0;try{r.send(JSON.stringify(this.opts.subscribeFrame()))}catch(o){this.opts.logger?.warn?.("channel_ws_subscribe_send_failed",{error:o instanceof Error?o.message:String(o)})}this.setStatus("open"),this.flushQueue(),this.startPing()}},r.onmessage=o=>{if(this.disposed)return;let n;try{n=JSON.parse(o.data)}catch{return}n.type!=="pong"&&this.dispatch(n)},r.onclose=o=>{if(this.disposed)return;if(this.stopPing(),this.setStatus("closed"),!this.wasOpenedThisAttempt&&(this.consecutiveNeverOpenedCloses+=1,this.consecutiveNeverOpenedCloses>=2)){this.opts.logger?.warn?.("channel_ws_fail_fast",{url:this.opts.url,consecutive_never_opened:this.consecutiveNeverOpenedCloses,close_code:o?.code,reason:"WS never opened on consecutive attempts \u2014 assumed structurally blocked (CSP / sandbox). Bailing out of retry ladder."}),this.setStatus("failed");return}let i=o?.code===1012&&this.reconnectAttempts===0;if(this.reconnectAttempts<10){this.reconnectAttempts+=1;let a=i?100:Math.min(1e3*2**(this.reconnectAttempts-1),6e4);this.reconnectTimer=setTimeout(()=>{this.disposed||this.start()},a)}else this.setStatus("failed")},r.onerror=()=>{}}send(t){if(!this.disposed){if(this.socket&&this.socket.readyState===WebSocket.OPEN){try{this.socket.send(JSON.stringify(t))}catch(r){this.opts.logger?.warn?.("channel_ws_send_failed",{error:r instanceof Error?r.message:String(r)})}return}this.queue.push(t)}}async dispose(){if(!this.disposed){if(this.disposed=!0,this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopPing(),this.socket&&this.socket.readyState!==WebSocket.CLOSED)try{this.socket.close()}catch{}this.socket=null,this.setStatus("closed")}}dispatch(t){let r=this.opts.handlers.get(t.type);if(r)try{let o=r.onMessage(t.payload);o instanceof Promise&&o.catch(n=>{this.opts.logger?.warn?.("channel_handler_throw",{type:t.type,error:n instanceof Error?n.message:String(n)})})}catch(o){this.opts.logger?.warn?.("channel_handler_throw",{type:t.type,error:o instanceof Error?o.message:String(o)})}}flushQueue(){if(!this.socket||this.socket.readyState!==WebSocket.OPEN)return;let t=this.queue.drain();for(let r of t)try{this.socket.send(JSON.stringify(r))}catch{this.queue.push(r);return}}startPing(){this.pingInterval===null&&(this.pingInterval=setInterval(()=>{if(this.socket&&this.socket.readyState===WebSocket.OPEN)try{this.socket.send(JSON.stringify({type:"ping",payload:{}}))}catch{}},3e4))}stopPing(){this.pingInterval!==null&&(clearInterval(this.pingInterval),this.pingInterval=null)}setStatus(t){if(this.currentStatus!==t){this.currentStatus=t;try{this.opts.onStatusChange?.(t)}catch(r){this.opts.logger?.warn?.("channel_status_listener_throw",{error:r instanceof Error?r.message:String(r)})}}}};var Za=class{opts;handlers=new Map;bound=!1;constructor(t){this.opts=t}register(t){if(this.bound)throw new Error(`ChannelRegistry: cannot register("${t.type}") after bind() \u2014 handler set is frozen at bind time.`);if(this.handlers.has(t.type))throw new Error(`ChannelRegistry: handler for type "${t.type}" already registered.`);return this.handlers.set(t.type,t),()=>{this.handlers.delete(t.type)}}async bind(t){if(this.bound)throw new Error("ChannelRegistry: already bound \u2014 dispose the previous transport before re-binding.");this.bound=!0;let r=this.selectTransport(t);return r.start(),r}buildPollingTransport(t){let{logger:r}=t,o={handlers:this.handlers,...r!==void 0?{logger:r}:{},...t.minPollIntervalMs!==void 0?{minPollIntervalMs:t.minPollIntervalMs}:{},...this.opts.fetchImpl!==void 0?{fetchImpl:this.opts.fetchImpl}:{}};return new Ol(o)}inspectHandlers(){return new Map(this.handlers)}selectTransport(t){let{bootstrap:r,logger:o}=t;return typeof r.wsUrl=="string"&&r.wsUrl.length>0&&typeof r.token=="string"&&r.token.length>0?new Pk({wsUrl:r.wsUrl,subscribeFrame:this.opts.subscribeFrameBuilder,handlers:this.handlers,webSocketFactory:this.opts.webSocketFactory,buildPolling:()=>this.buildPollingTransport(t),...o!==void 0?{logger:o}:{},...t.onStatusChange!==void 0?{onStatusChange:t.onStatusChange}:{}}):this.buildPollingTransport(t)}},Pk=class{opts;kind="ws";active;swapped=!1;disposed=!1;constructor(t){this.opts=t;let r={url:t.wsUrl,subscribeFrame:t.subscribeFrame,handlers:t.handlers,onStatusChange:o=>this.onInnerStatus(o),...t.logger!==void 0?{logger:t.logger}:{},...t.webSocketFactory!==void 0?{webSocketFactory:t.webSocketFactory}:{}};this.active=new Ga(r)}get status(){return this.active.status}start(){this.disposed||this.active.start()}async dispose(){this.disposed||(this.disposed=!0,await this.active.dispose())}send(t){if(this.active instanceof Ga){this.active.send(t);return}this.opts.logger?.debug?.("channel_failover_send_dropped_post_swap",{reason:"PollingTransport has no outbound channel"})}get hasSwapped(){return this.swapped}onInnerStatus(t){if(this.disposed)return;if(t!=="failed"||this.swapped){this.opts.onStatusChange?.(t);return}this.swapped=!0,this.opts.logger?.warn?.("channel_failover_swap",{from:"ws",to:"polling",reason:"WSTransport reached status=failed (never-opened or retry-ladder exhausted) \u2014 swapping to PollingTransport."}),this.active.dispose();let r=this.opts.buildPolling();this.active=r,this.opts.onStatusChange?.("connecting"),r.start()}};var rW=2e3;function nW(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=t+((t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24))>>>0;return t.toString(16)}function Ok(e){let t=oW(e);return{type:"props_update",onMessage:async r=>{let{stackItemId:o,props:n}=r;if(typeof o!="string"||o.length===0||n===null||typeof n!="object")return;let i=e.stackModel.snapshot().find(l=>l.id===o);if(i===void 0||i.type==="mcpApps"||i.type==="system"||!CR(i.propsSpec,n).valid)return;let s=e.stackModel.snapshot().map(l=>l.id!==o||l.type==="mcpApps"||l.type==="system"?l:{...l,props:n});e.stackModel.setAll(s),await e.getStackRenderer().applyStack(e.stackModel.snapshot())},...t!==void 0?{polling:t}:{}}}function oW(e){let{pollingUrl:t}=e;if(typeof t!="string"||t.length===0)return;let r=t,o=null,n=null;return{url:r,intervalMs:e.pollingIntervalMs??rW,parse:i=>{if(i===null||typeof i!="object")return null;let a=i.propsJson,s=i.stackItemId;if(typeof a!="string"||typeof s!="string"||s.length===0)return null;let l=nW(a);if(l===o&&s===n)return null;o=l,n=s;let u;try{u=JSON.parse(a)}catch{return null}return u===null||typeof u!="object"||Array.isArray(u)?null:{stackItemId:s,props:u}}}}function Ak(e){return{type:"drain_ack",onMessage:t=>{e.dispatch(t)}}}function jR(e){let t=e.querySelector("[data-ggui-status]"),r=e.querySelector("[data-ggui-stack]");if(t!==null&&r!==null)return{status:t,stack:r};let o=e.body,n=e.createElement("div");n.setAttribute("data-ggui-status","idle"),n.textContent="Initializing renderer\u2026";let i=e.createElement("ul");return i.setAttribute("data-ggui-stack",""),o.appendChild(n),o.appendChild(i),{status:n,stack:i}}function Io(e,t,r){e.status.textContent=t,e.status.setAttribute("data-ggui-status",r)}function qg(e,t){let r=t.size();Io(e,`Connected (${r} item${r===1?"":"s"}).`,"connected")}function bp(e,t){UC(e.stack,t)}function Bg(e){return{type:"push",onMessage:async t=>{e.stackModel.upsert(t.stackItem),bp(e.statusRefs,e.stackModel),qg(e.statusRefs,e.stackModel);let r=e.getStackRenderer?.(),o=e.getChannelTransport?.();if(r===void 0)return;let n=e.stackModel.snapshot();if(await r.applyStack(n),o===void 0)return;let i=n[n.length-1];i!==void 0&&i.type!=="mcpApps"&&i.type!=="system"&&o.applyStackItem({stackItemId:i.id,...i.streamSpec!==void 0?{streamSpec:i.streamSpec}:{}})}}}To();function Nk(e){return{type:"data",onMessage:t=>{if(t==null||typeof t.channel!="string")return;if(t.channel===hp&&e.onObserve!==void 0&&iW(t,e.onObserve),t.channel===yp&&e.onCanvasLifecycle!==void 0){let a=t.payload;a!==null&&typeof a=="object"&&!Array.isArray(a)&&typeof a.kind=="string"&&e.onCanvasLifecycle(a)}let r=e.stackModel.snapshot(),o=r[r.length-1],n=o!==void 0&&o.type!=="mcpApps"&&o.type!=="system"?o.streamSpec:void 0;MR(n,t.channel,t.payload,e.validatorCtx).valid&&e.streamBus.emit(t)}}}function iW(e,t){let r=e.payload;if(r===null||typeof r!="object"||Array.isArray(r))return;let o=r,n=o.error!==void 0&&o.error!==null&&typeof o.error=="object"&&typeof o.error.code=="string"?o.error.code:void 0,i=typeof o.toolName=="string"?o.toolName:void 0;if(n===void 0||i===void 0)return;let a={kind:"contract-error-emitted",code:n,toolName:i,...typeof o.actionName=="string"?{actionName:o.actionName}:{}};t(a)}function Dk(){return{type:"feedback",onMessage:()=>{}}}function jk(e){return{type:"channel_payload",onMessage:t=>{e.getChannelTransport().handleWsFrame({type:"channel_payload",payload:t})}}}function Uk(e){return{type:"channel_error",onMessage:t=>{e.getChannelTransport().handleWsFrame({type:"channel_error",payload:t})}}}function Lk(e){return{type:"system",onMessage:t=>{e.onObserve!==void 0&&aW(t,e.onObserve)}}}function aW(e,t){if(e.action!=="auth_required"||typeof e.consentUrl!="string"||e.consentUrl.length===0)return;let r={kind:"auth-required",provider:e.serviceId,authUrl:e.consentUrl,...e.displayName!==void 0?{displayName:e.displayName}:{},...e.scopes!==void 0?{scopes:e.scopes}:{},...e.message!==void 0?{message:e.message}:{}};t(r)}Fu();dx();function sW(e,t){let r=e.indexOf("?")>=0?"&":"?";return`${e}${r}bootstrap=${encodeURIComponent(t)}`}function lW(e){if(e.code!==Fd)return null;let t=e.details,r;return t!==null&&typeof t=="object"&&!Array.isArray(t)&&typeof t.serverVersion=="string"&&(r=t.serverVersion),new Nc({...r!==void 0?{observedVersion:r}:{},acceptedVersions:Zu,observedBy:"server"})}function uW(e){return e===void 0?"unknown":typeof e=="string"?e:e.join(", ")}function cW(e){return e.code==="SESSION_NOT_FOUND"||e.code==="AUTH_REJECTED"?Rk(e.code,e.message):e.code==="TOKEN_EXPIRED"?Rk("TOKEN_EXPIRED",e.message):{kind:"protocol",code:e.code,...e.message!==void 0?{message:e.message}:{},...e.details!==void 0?{details:e.details}:{}}}function qk(e){return new Promise((t,r)=>{let o=!1,n=!1,i=!1,a=e.onProtocolError??(()=>{}),s=e.onObserve??(()=>{}),l=e.bootstrap.wsUrl,u=e.bootstrap.token;if(typeof l!="string"||l.length===0||typeof u!="string"||u.length===0){let f=new Error("connectViaRegistry: bootstrap missing wsUrl/token \u2014 live-mode required");a(Ug("DISCONNECTED",!1,f.message)),r(f);return}e.registry.register({type:"ack",onMessage:f=>{let m=f;if(n){e.onResubscribeAck?.(m);return}let v=m.serverVersion;if(typeof v=="string"&&!Zu.includes(v)){n=!0,o=!0;let b=new Nc({observedVersion:v,acceptedVersions:Zu,observedBy:"client"});a(Ck(b)),s({kind:"schema-version-mismatch",observedVersion:v,acceptedVersions:Zu,observedBy:"client"}),r(b);return}n=!0,o=!0,c.payload=m,c.onAck?.()}}),e.registry.register({type:"error",onMessage:f=>{if(n)return;let m=f,v=lW(m);if(v!==null){n=!0,a(Ck(v)),s({kind:"schema-version-mismatch",observedVersion:uW(v.observedVersion),acceptedVersions:v.acceptedVersions,observedBy:"server"}),r(v);return}n=!0,a(cW(m)),r(new Error(m.message??m.code))}});let c={payload:null,onAck:null},p=f=>{if(f==="connecting"){i?(e.onStatusChange("reconnecting"),s({kind:"subscribe-failed",reason:"transport-reconnecting",message:"renderer WebSocket dropped; reconnect ladder running"})):e.onStatusChange("connecting");return}if(f==="open"){i=!0,e.onStatusChange("connected");return}if(f==="closed"){e.onStatusChange("disconnected");return}e.onStatusChange("disconnected"),a(Ug("DISCONNECTED",!1,"transport went to failed state")),!n&&!o&&(n=!0,r(new Error("connectViaRegistry: transport went to failed state before ack")))},d=sW(l,u);e.registry.bind({bootstrap:{wsUrl:d,token:u,sessionId:e.bootstrap.sessionId,appId:e.bootstrap.appId},onStatusChange:p}).then(f=>{if(f.kind!=="ws"){n||(n=!0,r(new Error("connectViaRegistry: registry returned non-ws transport despite wsUrl+token bootstrap")));return}let m=f;if(c.payload!==null){t({handle:m,ack:c.payload});return}c.onAck=()=>{let v=c.payload;v!==null&&t({handle:m,ack:v})}}).catch(f=>{if(n)return;n=!0;let m=f instanceof Error?f.message:String(f);a(Ug("DISCONNECTED",!1,m)),r(f instanceof Error?f:new Error(m))})})}Bk();var pW={actions:new Map,streams:new Map,context:new Map};function dW(e){return typeof e=="function"}async function LR(e,t,r){try{let o=await Vg(e),n=o.default;if(!dW(n)){r?.(`[ggui:validators] ${t}: module has no default-export function`,o);return}return n}catch(o){r?.(`[ggui:validators] ${t}: failed to load precompiled validator`,o);return}}async function Vk(e,t){if(e===void 0)return pW;let r=async(s,l)=>{let u=new Map;return s===void 0||await Promise.all(Object.entries(s).map(async([c,p])=>{let d=await LR(p,`${l}.${c}`,t);d!==void 0&&u.set(c,d)})),u},[o,n,i,a]=await Promise.all([e.props!==void 0?LR(e.props,"props",t):Promise.resolve(void 0),r(e.actions,"action"),r(e.streams,"stream"),r(e.context,"context")]);return{...o!==void 0?{props:o}:{},actions:n,streams:i,context:a}}var t7=C(G(),1);$p();IS();var de=C(G(),1),JN=C(xu(),1);Wn();var gn=g.object({id:g.string().min(1)}),yh=g.string().min(1),RA=g.enum(["start","center","end","stretch"]),zA=g.enum(["start","center","end","between","around","evenly"]),RY=gn.extend({component:g.literal("Row"),children:g.array(yh).optional(),gap:g.string().optional(),align:RA.optional(),justify:zA.optional()}),zY=gn.extend({component:g.literal("Column"),children:g.array(yh).optional(),gap:g.string().optional(),align:RA.optional(),justify:zA.optional()}),PY=gn.extend({component:g.literal("Card"),child:yh.optional()}),OY=gn.extend({component:g.literal("List"),children:g.array(yh).optional()}),AY=gn.extend({component:g.literal("Divider"),orientation:g.enum(["horizontal","vertical"]).optional()}),NY=gn.extend({component:g.literal("Text"),text:g.string(),variant:g.string().optional()}),DY=gn.extend({component:g.literal("Image"),src:g.string().min(1),alt:g.string().optional()}),jY=gn.extend({component:g.literal("Icon"),name:g.string().min(1)}),UY=gn.extend({component:g.literal("Button"),label:g.string()}),LY=gn.extend({component:g.literal("TextField"),label:g.string().optional(),placeholder:g.string().optional(),value:g.string().optional()}),qY=gn.extend({component:g.literal("CheckBox"),label:g.string().optional(),checked:g.boolean().optional()}),BY=g.object({label:g.string(),value:g.string()}),VY=gn.extend({component:g.literal("ChoicePicker"),label:g.string().optional(),options:g.array(BY).optional(),value:g.string().optional()}),PA=g.discriminatedUnion("component",[RY,zY,PY,OY,AY,NY,DY,jY,UY,LY,qY,VY]);Wn();var HY="v0.9",ES=g.literal(HY),MS=g.string().min(1),GY=g.object({version:ES,createSurface:g.object({surfaceId:MS,catalogId:g.string().min(1)})}),ZY=g.object({version:ES,updateComponents:g.object({surfaceId:MS,components:g.array(PA)})}),FY=g.object({version:ES,deleteSurface:g.object({surfaceId:MS})}),WY=g.union([GY,ZY,FY]);function OA(e){let t=WY.safeParse(e);return t.success?{ok:!0,value:t.data}:{ok:!1,issues:t.error.issues.map(r=>({path:r.path,message:r.message}))}}Ru();var Mh="ggui-preview-keyframes",qN=`@keyframes ggui-preview-shimmer {
186
+ 0% { transform: translateX(-100%); }
187
+ 100% { transform: translateX(100%); }
188
+ }`,BN=`@keyframes ggui-preview-caret {
189
+ 0%, 45% { opacity: 1; }
190
+ 55%, 100% { opacity: 0; }
191
+ }`,VN=`@keyframes ggui-preview-fragment-enter {
192
+ from { opacity: 0; transform: scale(0.97); }
193
+ to { opacity: 1; transform: scale(1); }
194
+ }`,HN=`@media (prefers-reduced-motion: reduce) {
195
+ [data-ggui-preview] *,
196
+ [data-ggui-preview]::before,
197
+ [data-ggui-preview]::after {
198
+ animation-duration: 0.01ms !important;
199
+ animation-iteration-count: 1 !important;
200
+ transition-duration: 0.01ms !important;
201
+ }
202
+ }`,KS=[qN,BN,VN,HN].join(`
203
+
204
+ `);var Dd=C(B(),1),GN=C(G(),1);function IX(){if(typeof document>"u"||document.getElementById(Mh))return;let e=document.createElement("style");e.id=Mh,e.textContent=KS,document.head.appendChild(e)}function JS({children:e,frozen:t=!1,className:r,style:o}){(0,GN.useEffect)(()=>{IX()},[]);let n={position:"relative",cursor:"progress",backgroundColor:"var(--ggui-color-surface-subtle, rgba(148, 163, 184, 0.08))",borderRadius:"var(--ggui-shape-radius-md, 8px)",overflow:"hidden",...o},i={position:"absolute",inset:0,backgroundImage:"linear-gradient(110deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%, transparent 100%)",backgroundSize:"200% 100%",animation:t?"none":"ggui-preview-shimmer 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite",pointerEvents:"none",mixBlendMode:"overlay"};return(0,Dd.jsxs)("div",{"data-ggui-preview":"","data-ggui-preview-frozen":t?"":void 0,className:r,style:n,"aria-busy":"true",children:[(0,Dd.jsx)("div",{style:{position:"relative",pointerEvents:"none"},children:e}),(0,Dd.jsx)("div",{"aria-hidden":"true",style:i})]})}var ZN=C(B(),1);function YS({children:e,delayMs:t=0,className:r,style:o}){let n={animation:"ggui-preview-fragment-enter 220ms cubic-bezier(0, 0, 0.2, 1) both",animationDelay:`${Math.max(0,t)}ms`,...o};return(0,ZN.jsx)("div",{className:r,style:n,children:e})}var Ch=C(B(),1);function Rh({children:e,streaming:t=!1,className:r,style:o}){let n={display:"inline",...o};return(0,Ch.jsxs)("span",{className:r,"data-ggui-preview-streaming":t?"":void 0,style:n,children:[e,t?(0,Ch.jsx)("span",{"aria-hidden":"true",style:{display:"inline-block",width:"0.5ch",height:"1em",marginLeft:"0.1em",verticalAlign:"text-bottom",borderRight:"0.08em solid currentColor",animation:"ggui-preview-caret 900ms steps(1, end) infinite"}}):null]})}var FN=C(B(),1),WN=C(G(),1);var EX="_ggui:preview",MX="root",YN={surfaceId:null,fragments:new Map};function CX(e,t){if("createSurface"in t)return{surfaceId:t.createSurface.surfaceId,fragments:new Map};if("updateComponents"in t){if(e.surfaceId!==t.updateComponents.surfaceId)return e;let r=new Map(e.fragments);for(let o of t.updateComponents.components)r.set(o.id,o);return{...e,fragments:r}}return"deleteSurface"in t?e.surfaceId!==t.deleteSurface.surfaceId?e:YN:e}function RX(e){let t=YN;for(let r of e){let o=OA(r.payload);o.ok&&(t=CX(t,o.value))}return t}function KN(){return(0,de.createElement)("div",{style:{minHeight:24,minWidth:32,borderRadius:"var(--ggui-shape-radius-sm, 4px)",backgroundColor:"var(--ggui-color-outlineVariant, rgba(148, 163, 184, 0.18))"},"aria-hidden":"true"})}function zX({name:e}){return(0,de.createElement)(vn,{padding:12,shadow:"none",border:!0},(0,de.createElement)(it,{variant:"caption"},`[${e}]`))}function XS(){}function QS(e,t){let r=i=>i?i.map(a=>{let s=t.get(a);return s?QS(s,t):(0,de.createElement)(KN,{key:a})}):[],{id:o}=e,n=i=>(0,de.createElement)(YS,{key:o,children:i});switch(e.component){case"Row":return n((0,de.createElement)(ys,{gap:e.gap,align:e.align??"stretch",justify:e.justify??"start"},...r(e.children)));case"Column":return n((0,de.createElement)(zt,{direction:"vertical",gap:e.gap,align:e.align??"stretch",justify:e.justify??"start"},...r(e.children)));case"List":return n((0,de.createElement)(zt,{direction:"vertical",gap:8},...r(e.children)));case"Card":{let i=e.child?t.get(e.child):void 0,a=e.child&&!i?(0,de.createElement)(KN):i?QS(i,t):null;return n((0,de.createElement)(vn,{padding:16,shadow:"sm"},a))}case"Divider":return n((0,de.createElement)($h,{orientation:e.orientation??"horizontal"}));case"Text":{let i=e.variant??"body",a=/^h([1-6])$/.exec(i);if(a){let l=Number(a[1]);return n((0,de.createElement)(Vr,{level:l},(0,de.createElement)(Rh,null,e.text)))}return n((0,de.createElement)(it,{variant:i==="label"||i==="caption"?i:"body"},(0,de.createElement)(Rh,null,e.text)))}case"Image":return n((0,de.createElement)(wh,{src:e.src,alt:e.alt??""}));case"Icon":return n((0,de.createElement)(xe,{name:e.name}));case"Button":return n((0,de.createElement)(Ae,{disabled:!0},e.label));case"TextField":return n((0,de.createElement)(Tu,{disabled:!0,label:e.label,placeholder:e.placeholder,value:e.value??"",onChange:XS}));case"CheckBox":return n((0,de.createElement)(bs,{disabled:!0,label:e.label??"",checked:e.checked??!1,onChange:XS}));case"ChoicePicker":{let i=e.options??[];return n((0,de.createElement)(_h,{disabled:!0,label:e.label,value:e.value??"",options:i,onChange:XS}))}default:return n((0,de.createElement)(zX,{name:e.component}))}}function PX({envelopes:e,suspended:t,fallback:r}){let o=RX(e);if(t)return null;let n=o.fragments.get(MX);return n?(0,de.createElement)(JS,null,QS(n,o.fragments)):(0,de.createElement)(de.Fragment,null,r??(0,de.createElement)(OX))}function OX(){return(0,de.createElement)("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:80}},(0,de.createElement)(kt))}function AX({controlRef:e,onAttach:t,fallback:r}){let[o,n]=(0,de.useState)([]),[i,a]=(0,de.useState)(!1);return(0,de.useEffect)(()=>(e.current={pushEnvelope:s=>{s.channel===EX&&n(l=>[...l,s])},suspend:()=>a(!0),resume:()=>a(!1)},t?.(),()=>{e.current=null}),[e,t]),(0,de.createElement)(PX,{envelopes:o,suspended:i,...r!==void 0?{fallback:r}:{}})}function XN(e,t={}){e.replaceChildren();let r=(0,JN.createRoot)(e),o={current:null},n=[],i=null;function a(){let s=o.current;if(s!==null){for(let l of n)s.pushEnvelope(l);n.length=0,i===!0&&s.suspend(),i===!1&&s.resume(),i=null}}return r.render((0,de.createElement)(AX,{controlRef:o,onAttach:a,...t.fallback!==void 0?{fallback:t.fallback}:{}})),{pushEnvelope(s){if(o.current===null){n.push(s);return}o.current.pushEnvelope(s)},suspend(){if(o.current===null){i=!0;return}o.current.suspend()},resume(){if(o.current===null){i=!1;return}o.current.resume()},unmount(){r.unmount(),e.replaceChildren()}}}var NX={"--color-primary":"#0284c7","--color-surface":"#ffffff","--color-text":"#111111","--font-family":"system-ui, -apple-system, sans-serif","--border-radius-md":"8px"};function DX(e){let t=e.serverBaseUrl.replace(/\/$/,""),r=new URLSearchParams({session:e.sessionId,item:e.itemId});return`${t}/mcp-apps/resource?${r.toString()}`}function jX(e){return`${e.replace(/\/$/,"")}/mcp-apps/tools-call`}function UX(){return"allow-scripts allow-forms"}function LX(e){let t=e.permissions;if(!t)return;let r=[];return t.camera&&r.push("camera 'self'"),t.microphone&&r.push("microphone 'self'"),t.geolocation&&r.push("geolocation 'self'"),t.clipboardWrite&&r.push("clipboard-write 'self'"),r.length>0?r.join("; "):void 0}function QN(e,t){e.replaceChildren();let r=t.serverBaseUrl??"",o=DX({serverBaseUrl:r,sessionId:t.sessionId,itemId:t.stackItem.id}),n=jX(r),i={width:t.stackItem.containerDimensions?.width,height:t.stackItem.containerDimensions?.height,maxWidth:t.stackItem.containerDimensions?.maxWidth,maxHeight:t.stackItem.containerDimensions?.maxHeight},a=e.ownerDocument.createElement("iframe");a.setAttribute("data-ggui-mcp-apps","iframe"),a.setAttribute("data-ggui-stack-item-id",t.stackItem.id),a.setAttribute("data-ggui-connector-id",t.stackItem.source.connectorId),a.src=o,a.title=t.stackItem.description??"MCP App",a.setAttribute("sandbox",UX());let s=LX(t.stackItem);s!==void 0&&a.setAttribute("allow",s),a.style.width=i.width!==void 0?`${i.width}px`:"100%",a.style.height=i.height!==void 0?`${i.height}px`:"480px",a.style.maxWidth=i.maxWidth!==void 0?`${i.maxWidth}px`:"100%",i.maxHeight!==void 0&&(a.style.maxHeight=`${i.maxHeight}px`),a.style.border="1px solid #e5e5e5",a.style.borderRadius="8px",a.style.display="block",e.appendChild(a);let l=a.contentWindow,u=p=>{c(p)};async function c(p){if(a.contentWindow===null||p.source!==a.contentWindow)return;let d=p.data;if(d===null||typeof d!="object"||d.jsonrpc!=="2.0"||typeof d.method!="string")return;let f=d.id??0,m;switch(d.method){case"ui/initialize":{m={jsonrpc:"2.0",id:f,result:{theme:t.theme??NX,containerDimensions:i,locale:t.locale??(typeof navigator<"u"?navigator.language:"en-US")}};break}case"tools/call":{let v=typeof d.params?.name=="string"?d.params.name:"",b=d.params?.arguments,y=b!==null&&typeof b=="object"&&!Array.isArray(b)?b:{};if(v.length===0){m={jsonrpc:"2.0",id:f,error:{code:-32602,message:"tools/call requires params.name"}};break}try{let h=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session:t.sessionId,item:t.stackItem.id,tool:v,arguments:y})});if(h.ok){let $=await h.json();m={jsonrpc:"2.0",id:f,result:$}}else{let $=await h.json().catch(()=>({}));m={jsonrpc:"2.0",id:f,error:{code:h.status===403?-32003:-32e3,message:$.error??`proxy_error_${h.status}`}}}}catch(h){m={jsonrpc:"2.0",id:f,error:{code:-32e3,message:`proxy_fetch_failed: ${String(h)}`}}}break}default:m={jsonrpc:"2.0",id:f,error:{code:-32601,message:"method_not_supported"}}}a.contentWindow?.postMessage(m,"*")}return window.addEventListener("message",u),{element:a,unmount(){window.removeEventListener("message",u);let p=a.contentWindow??l;try{p?.postMessage({jsonrpc:"2.0",method:"ui/resource-teardown",params:{reason:"host_unmount"}},"*")}catch{}l=null,a.parentNode!==null&&a.parentNode.removeChild(a)}}}function e7(e){if(e.type==="mcpApps")return"mcpApps";if(e.type==="system")return"provisional";let t=e.componentCode;return typeof t=="string"&&t.trim().length>0?"react":"provisional"}async function qX(e,t){let r=t,o="none",n=null,i=null,a=null,s=null;function l(){n!==null&&(n.unmount(),n=null),i!==null&&(i.unmount(),i=null),a!==null&&(a.unmount(),a=null),s!==null&&(s(),s=null),o="none"}async function u(d){if(d==="mcpApps"){let v=r.stackItem;a=QN(e,{stackItem:v,sessionId:r.sessionId,...r.mcpAppsServerBaseUrl!==void 0?{serverBaseUrl:r.mcpAppsServerBaseUrl}:{}}),o="mcpApps";return}if(d==="provisional"){i=XN(e),s=r.streamBus.subscribe("_ggui:preview",v=>{i?.pushEnvelope(v)}),o="provisional";return}let f=r.stackItem;if(f.type==="mcpApps"||f.type==="system")return;let m="gadgetDescriptors"in f&&f.gadgetDescriptors!==void 0?f.gadgetDescriptors.map(v=>v.package):void 0;n=await TS(e,{stackItem:{...f.id!==void 0?{id:f.id}:{},componentCode:f.componentCode??"",...f.props!==void 0?{props:f.props}:{}},...m!==void 0?{gadgetPackages:m}:{},...r.themeId!==void 0?{themeId:r.themeId}:{},...r.themeMode!==void 0?{themeMode:r.themeMode}:{},...r.cssOverrides!==void 0?{cssOverrides:r.cssOverrides}:{},...r.onError!==void 0?{onError:r.onError}:{},...r.onRequestRepair!==void 0?{onRequestRepair:r.onRequestRepair}:{},renderWrapper:c}),o="react"}function c(d){let f=r.scopedWireConfig===null?d:(0,t7.createElement)(Og,{config:r.scopedWireConfig,children:d});return r.wrapOuter!==void 0?r.wrapOuter(f):f}let p=e7(t.stackItem);return await u(p),{get kind(){return o},async update(d){let f=o;r=d;let m=e7(d.stackItem);if(m!==f){l(),await u(m);return}if(m==="react"&&n!==null){let v=d.stackItem;if(v.type==="mcpApps"||v.type==="system")return;await n.update({stackItem:{...v.id!==void 0?{id:v.id}:{},componentCode:v.componentCode??"",...v.props!==void 0?{props:v.props}:{}},...d.themeId!==void 0?{themeId:d.themeId}:{},...d.themeMode!==void 0?{themeMode:d.themeMode}:{},...d.cssOverrides!==void 0?{cssOverrides:d.cssOverrides}:{},...d.onError!==void 0?{onError:d.onError}:{},...d.onRequestRepair!==void 0?{onRequestRepair:d.onRequestRepair}:{},renderWrapper:c})}},unmount:l}}var zh=class{constructor(t){this.ctx=t}handles=new Map;async applyStack(t){let r=new Set(t.map(o=>o.id));for(let[o,n]of this.handles)r.has(o)||(n.unmount(),this.handles.delete(o));for(let o of t){let n=this.ctx.containerFor(o.id),i=this.ctx.getScopedWireConfig(o),a=this.ctx.getOuterWrapper?.(o),s={stackItem:o,scopedWireConfig:i,streamBus:this.ctx.streamBus,sessionId:this.ctx.sessionId,...this.ctx.mcpAppsServerBaseUrl!==void 0?{mcpAppsServerBaseUrl:this.ctx.mcpAppsServerBaseUrl}:{},...this.ctx.themeId!==void 0?{themeId:this.ctx.themeId}:{},...this.ctx.themeMode!==void 0?{themeMode:this.ctx.themeMode}:{},...this.ctx.onError!==void 0?{onError:this.ctx.onError}:{},...this.ctx.onRequestRepair!==void 0?{onRequestRepair:this.ctx.onRequestRepair}:{},...a!==void 0?{wrapOuter:a}:{}},l=this.handles.get(o.id);if(l===void 0){let u=await qX(n,s);this.handles.set(o.id,u)}else await l.update(s)}}unmountAll(){for(let t of this.handles.values())t.unmount();this.handles.clear()}};function r7(e){if(typeof window>"u"||window.parent===null)return;let t={type:"ggui:observe",event:e};try{window.parent.postMessage(t,"*")}catch{}}function zu(e){if(typeof window>"u"||window.parent===null)return;let t={type:"ggui:lifecycle",event:e};try{window.parent.postMessage(t,"*")}catch{}}function va(e,t){if(t===void 0)return{state:e};let{stackItemId:r,error:o}=t;return{state:e,...typeof r=="string"&&r.length>0?{stackItemId:r}:{},...o!==void 0?{error:o}:{}}}To();var $a=new Map;function BX(e,t,r){let o=e[r.contextName],n;return o!==void 0?n=o:(n=t.createContext([r.default,()=>{}]),n.displayName=r.contextName,e[r.contextName]=n),{name:r.name,contextName:r.contextName,schema:r.schema,debounceMs:r.debounceMs??sI,default:r.default,contextRef:n}}function ew(e,t,r){let o=[];for(let n of r)o.push(BX(e,t,n)),$a.set(n.name,n.default);return o}function VX(e){return{[e.name]:{schema:e.schema}}}function n7(e,t,r){let o=`[ggui:context] ${JSON.stringify(t)}`;e({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"ui/update-model-context",params:{content:[{type:"text",text:o}]}}),r&&e({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"tools/call",params:{name:"ggui_runtime_sync_context",arguments:{sessionId:r.sessionId,appId:r.appId,stackItemId:r.stackItemId,snapshot:t}}})}function o7(){let e={};for(let[t,r]of $a)e[t]=r;return e}function HX(e){let{react:t,postToParent:r,consoleWarn:o,identity:n}=e;return a=>{let{slot:s,children:l}=a,[u,c]=t.useState(s.default),p=t.useRef(null);return t.useEffect(()=>{p.current!==null&&(clearTimeout(p.current),p.current=null);let d=()=>{let f=RR(VX(s),s.name,u);if(!f.valid){o!==void 0&&o(`[ggui:context] slot '${s.name}' value rejected:`,f.violations);return}$a.set(s.name,u),n7(r,o7(),n)};return s.debounceMs<=0?d():p.current=setTimeout(d,s.debounceMs),()=>{p.current!==null&&(clearTimeout(p.current),p.current=null)}},[u,s.name,s.debounceMs,s.schema]),t.createElement(s.contextRef.Provider,{value:[u,c]},l)}}function tw(e){let t=HX(e);return o=>{let{slots:n,children:i}=o;return n.length===0?e.react.createElement(e.react.Fragment,null,i):n.reduceRight((a,s)=>e.react.createElement(t,{key:s.contextName,slot:s},a),e.react.createElement(e.react.Fragment,null,i))}}function i7(e,t,r){if(t!==void 0)for(let o of Array.from($a.keys()))t.has(o)||$a.delete(o);$a.size>0&&n7(e,o7(),r)}var TD="0.1.0",zw=new Set;function YQ(e){return zw.add(e),()=>{zw.delete(e)}}function XQ(e){for(let t of zw)try{if(t(e)===!0)return}catch{}}function QQ(){let e=1,t=new Map;return window.addEventListener("message",r=>{let o=r.data;if(o===null||typeof o!="object")return;let n=o.id;if(typeof n!="number"||!("result"in o)&&!("error"in o))return;let i=t.get(n);i!==void 0&&(t.delete(n),i(o))}),(r,o)=>new Promise(n=>{let i=e;e+=1,t.set(i,n);try{window.parent.postMessage({jsonrpc:"2.0",id:i,method:r,params:o??{}},"*")}catch(a){t.delete(i),n({error:{message:a instanceof Error?a.message:String(a)}})}})}function ID(){try{window.parent.postMessage({type:"ggui:renderer-ready",version:TD},"*")}catch{}}function ED(e,t){try{let r={type:"ggui:bootstrap-failed",reason:e,message:t};window.parent.postMessage(r,"*")}catch{}}async function eee(e){let{doc:t,callUiInitialize:r,notifyParent:o,triadWiring:n,onProtocolError:i,onObserve:a,onLifecycle:s}=e,l=e.connectFn??qk,u=(k,T)=>{o({type:"ggui:bootstrap-failed",reason:k,message:T}),i?.(OR(k,T)),s?.(va("error",{error:{code:k,message:T}}))},c=jR(t),p=new vp;bp(c,p),Io(c,"Negotiating with host\u2026","connecting"),o({type:"ggui:renderer-ready",version:TD}),s?.(va("mounting"));let d=await r();if(d.error!==void 0||d.result===void 0){let k=d.error?.message??"ui/initialize returned no result";return Io(c,`ui/initialize failed: ${k}`,"error"),u("UI_INITIALIZE_FAILED",k),{ok:!1,stack:p}}let f=NC(d.result);if(!f.ok){let k=`bootstrap parse failed: ${f.reason}`;return Io(c,k,"error"),u(f.reason,k),{ok:!1,stack:p}}Ek(await Vk(f.bootstrap.compiledValidators)),f.bootstrap.stackItemId!==void 0&&(p=new vp({filterToItemId:f.bootstrap.stackItemId}));let m=null,v=c.stack,b=null;f.bootstrap.canvasMode===!0&&e.canvasMount!==void 0&&(m=e.canvasMount({mountTarget:c.stack,callbacks:{onBackGesture:({previousActiveItemId:k,activeItemId:T})=>{b?.({type:"canvas_navigated",payload:{sessionId:f.bootstrap.sessionId,previousActiveItemId:k,activeItemId:T}})},onRequestDisplayMode:k=>{Aw({toolName:"ggui_canvas_shell",mode:k,sessionId:f.bootstrap.sessionId,appId:f.bootstrap.appId})}}}),v=m.contentEl);let y=m!==null?m.events.publishLifecycle.bind(m.events):void 0,h=n!==void 0?n.setup({bootstrap:f.bootstrap,stackModel:p,renderInto:v,statusRefs:c,...a!==void 0?{onObserve:a}:{},...y!==void 0?{onCanvasLifecycle:y}:{}}):null;Io(c,`Connecting to ${f.bootstrap.sessionId}\u2026`,"connecting");let $=h===null?tee({bootstrap:f.bootstrap,stackModel:p,statusRefs:c}):null,_=h?.channelRegistry??$;if(m!==null&&h!==null&&(b=k=>h.manager.send(k)),m!==null){let k=m,T=VC(I=>{k.setAvailableDisplayModes(I.availableDisplayModes),k.setDisplayMode(I.currentDisplayMode)});k.registerCleanup(T)}let S=async k=>{if(k.stack!==void 0&&(p.setAll(k.stack),bp(c,p),m?.setStack(k.stack),h!==null)){await h.stackRenderer.applyStack(p.snapshot());let T=p.snapshot(),I=T[T.length-1];I!==void 0&&I.type!=="mcpApps"&&I.type!=="system"&&h.channelTransport.applyStackItem({stackItemId:I.id,...I.streamSpec!==void 0?{streamSpec:I.streamSpec}:{}})}},O;try{O=await l({bootstrap:f.bootstrap,registry:_,onStatusChange:k=>{Io(c,k==="connected"?`Connected (${p.size()} item${p.size()===1?"":"s"}).`:`Connection ${k}\u2026`,k),h!==null&&h.channelTransport.onWsStatusChange(k)},...i!==void 0?{onProtocolError:i}:{},...a!==void 0?{onObserve:a}:{},onResubscribeAck:k=>{S(k)}})}catch(k){if(h!==null&&n?.teardown?.(h),ree(k)){let I=k.message;return Io(c,I,"upgrade-required"),u("UPGRADE_REQUIRED",I),{ok:!1,stack:p}}let T=k instanceof Error?k.message:String(k);return Io(c,`WS handshake failed: ${T}`,"error"),u("WS_HANDSHAKE_FAILED",T),{ok:!1,stack:p}}return h!==null&&n?.attachManager!==void 0&&n.attachManager(h,{send:k=>O.handle.send(k)}),f.hostContext!==void 0&&(qC({sessionId:f.bootstrap.sessionId,send:k=>O.handle.send(k),initial:f.hostContext}),BC()),await S(O.ack),qg(c,p),s?.(va("code-ready",{...f.bootstrap.stackItemId!==void 0?{stackItemId:f.bootstrap.stackItemId}:{}})),{ok:!0,stack:p}}function tee(e){let t=new Za({subscribeFrameBuilder:()=>({type:"subscribe",payload:{sessionId:e.bootstrap.sessionId,appId:e.bootstrap.appId,...e.bootstrap.token!==void 0?{bootstrap:e.bootstrap.token}:{}}})});return t.register(Bg({stackModel:e.stackModel,statusRefs:e.statusRefs})),t}function ree(e){return e!==null&&typeof e=="object"&&e.name==="UpgradeRequiredError"&&e.code==="UPGRADE_REQUIRED"&&typeof e.message=="string"}function nee(){return typeof process>"u"?!0:process.env?.GGUI_RENDERER_AUTOSTART!=="false"}function oee(){let e=DC();return e.ok?e.bootstrap:null}function Nw(e){let t=jC(e);return t.ok?t.bootstrap:null}function iee(){if(typeof window>"u")return null;let e=window.__GGUI_PENDING_TOOL_RESULTS__;if(!Array.isArray(e)||e.length===0)return null;for(let t of e){let r=Nw(t);if(r!==null)return r}return null}function aee(e){return typeof window>"u"?Promise.resolve(null):new Promise(t=>{let r=!1,o=a=>{r||(r=!0,window.removeEventListener("message",n),clearTimeout(i),t(a))},n=a=>{let s=a.data;if(s==null||s.jsonrpc!=="2.0"||s.method!=="ui/notifications/tool-result")return;let l=Nw(s.params);l!==null&&o(l)};window.addEventListener("message",n);let i=setTimeout(()=>o(null),e)})}function xD(e){if(typeof window>"u")return;let t=0,r=()=>{let o=window.document.body,n=Math.max(e instanceof HTMLElement?e.scrollHeight:0,o.scrollHeight,200);if(n!==t){t=n;try{window.parent.postMessage({jsonrpc:"2.0",method:"ui/notifications/size-changed",params:{height:n}},"*")}catch{}}};if(r(),typeof ResizeObserver=="function"){let o=new ResizeObserver(r);o.observe(e),o.observe(window.document.body)}else setInterval(r,500)}var kD=!1,Pw=!1,Ow=!1;function Dw(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619);return(t>>>0).toString(16).padStart(8,"0")}function see(e){if(e==null)return"";if(typeof e=="string")return e;if(typeof e=="number"||typeof e=="boolean")return String(e);if(Array.isArray(e)){let o=JSON.stringify(e);return o.length>60?`${o.slice(0,57)}\u2026`:o}if(typeof e!="object")return"";let t=Object.entries(e);return t.length===0?"":t.map(([o,n])=>{if(n===null)return`${o}: null`;if(n===void 0)return`${o}: undefined`;if(typeof n=="string")return`${o}: ${n}`;if(typeof n=="number"||typeof n=="boolean")return`${o}: ${n}`;let i=JSON.stringify(n)??String(n);return`${o}: ${i.length>40?`${i.slice(0,37)}\u2026`:i}`}).join(", ")}function ho(e){if(!(typeof window>"u"))try{window.parent.postMessage(e,"*")}catch{}}var _D=!1,Zh=new Map,SD=1e6;function lee(){_D||typeof window>"u"||(_D=!0,window.addEventListener("message",e=>{let t=e.data;if(t===null||typeof t!="object")return;let r=t.id;if(typeof r!="number"||!("result"in t)&&!("error"in t))return;let o=Zh.get(r);o!==void 0&&(Zh.delete(r),o(t))}))}function MD(e,t){return typeof window>"u"?Promise.resolve({error:{message:"postRpcToParent: no window"}}):(lee(),new Promise(r=>{let o=SD;SD+=1,Zh.set(o,r);try{window.parent.postMessage({jsonrpc:"2.0",id:o,method:e,params:t??{}},"*")}catch(n){Zh.delete(o),r({error:{message:n instanceof Error?n.message:String(n)}})}}))}function CD(e){ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"tools/call",params:{name:e.toolName,arguments:{kind:e.kind,payload:e.payload,sessionId:e.sessionId,...e.stackItemId!==void 0?{stackItemId:e.stackItemId}:{},appId:e.appId,actionId:e.actionId,firedAt:e.firedAt}}})}function uee(e){if(e===null||typeof e!="object"||"error"in e&&e.error!==void 0&&e.error!==null)return"fallback";let t=e.result;if(t===null||typeof t!="object")return"fallback";let r=t;return(r.structuredContent&&typeof r.structuredContent=="object"?r.structuredContent:r).ok===!0?"success":"fallback"}function cee(e){if(e===null||typeof e!="object")return;let t=e.result;if(t===null||typeof t!="object")return;let r=t,n=(r.structuredContent&&typeof r.structuredContent=="object"?r.structuredContent:r).consumerPresent;return typeof n=="boolean"?n:void 0}function Zd(e,t){if(typeof document>"u"||window.__GGUI_TOAST_DISABLED__)return;let o="__ggui-action-toast__",n=document.getElementById(o);n||(n=document.createElement("div"),n.id=o,n.style.cssText=["position:fixed","bottom:16px","left:50%","transform:translateX(-50%)","z-index:2147483647","pointer-events:auto","max-width:90%","padding:8px 14px","border-radius:8px","font:13px/1.4 system-ui,sans-serif","color:#fff","box-shadow:0 4px 12px rgba(0,0,0,.18)","transition:opacity 180ms ease,transform 180ms ease","opacity:0","white-space:nowrap","overflow:hidden","text-overflow:ellipsis","cursor:pointer"].join(";"),document.body.appendChild(n));let i=t==="pending"?"rgba(60,60,68,.92)":t==="success"?"rgba(34,139,84,.94)":t==="fallback"||t==="action_required"?"rgba(110,89,165,.94)":"rgba(178,54,54,.94)";n.style.background=i,n.textContent=e,n.style.opacity="1",n.style.transform="translateX(-50%) translateY(0)";let a=n;a.__toastTimer&&clearTimeout(a.__toastTimer),t==="action_required"?n.onclick=()=>{n&&(n.style.opacity="0",n.style.transform="translateX(-50%) translateY(8px)",n.onclick=null)}:(n.onclick=null,(t==="success"||t==="fallback"||t==="error")&&(a.__toastTimer=window.setTimeout(()=>{n&&(n.style.opacity="0",n.style.transform="translateX(-50%) translateY(8px)")},2500)))}function pee(){if(typeof document>"u")return;let e=document.getElementById("__ggui-action-toast__");if(!e)return;e.style.opacity="0",e.style.transform="translateX(-50%) translateY(8px)";let t=e;t.__toastTimer&&(clearTimeout(t.__toastTimer),t.__toastTimer=void 0)}YQ(e=>typeof e.eventId!="string"||e.eventId.length===0?!1:(pee(),!0));function dee(){let e={};for(let[t,r]of $a)e[t]=r;return e}function fee(e){let t=`User fired ${e.intent} on ${e.stackItemId}`,r=`User fired "${e.intent}" on stack item ${e.stackItemId}. The action pipe was unavailable, so the gesture is inlined on this message instead of queued on the consume pipe. Use the userAction payload to handle it directly; do NOT call ggui_consume for this stack item.`;ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"ui/message",params:{role:"user",content:[{type:"text",text:r}],_meta:{ggui:{userAction:{kind:"inline",description:t,stackItemId:e.stackItemId,actionId:e.actionId,submittedAt:e.submittedAt,intent:e.intent,payload:{actionData:e.actionData??null,uiContext:e.uiContext},...e.nextStep!==void 0?{nextStep:e.nextStep}:{}}}}}})}function mee(e){let t=`User fired ${e.intent} on ${e.stackItemId}`,r=`User fired "${e.intent}" on stack item ${e.stackItemId}. The gesture is queued on the consume pipe but no consumer is active \u2014 call ggui_consume with this stackItemId next to drain the canonical payload.`;ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"ui/message",params:{role:"user",content:[{type:"text",text:r}],_meta:{ggui:{userAction:{kind:"queued",description:t,stackItemId:e.stackItemId,actionId:e.actionId,submittedAt:e.submittedAt,intent:e.intent,nextStep:{tool:"ggui_consume",args:{stackItemId:e.stackItemId}}}}}}})}function gee(e){if(typeof window>"u")return;let{toolName:t,intent:r,data:o,sessionId:n,stackItemId:i,appId:a,nextStep:s}=e,l=new Date().toISOString(),u=Dw(`${r}|${JSON.stringify(o??null)}|${l}`),c=see(o),p=c===""?"":` (${c})`,d=dee();ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"ui/update-model-context",params:{content:[{type:"text",text:`[ggui:pending-action] ${JSON.stringify({actionId:u,intent:r,data:o??null,firedAt:l,sessionId:n,appId:a})}`}]}}),Zd(`\u2192 ${r}${p}`,"pending"),(async()=>{let f=null;try{f=await MD("tools/call",{name:t,arguments:{kind:"dispatch",payload:{intent:r,actionData:o??null,uiContext:d},sessionId:n,...i!==void 0?{stackItemId:i}:{},appId:a,actionId:u,firedAt:l}})}catch{Zd(`\u26A0 ${r} \u2014 transport error`,"error"),f=null}if(f!==null&&uee(f)==="success"){if(cee(f)===!1&&i!==void 0){Zd(`\u{1F4AC} ${r}${p} \u2014 agent not listening, sent to chat`,"action_required"),mee({intent:r,stackItemId:i,actionId:u,submittedAt:l});return}i===void 0&&Zd(`\u2713 ${r} queued for agent`,"success");return}Zd(`\u{1F4AC} ${r}${p} \u2014 press send in chat to forward`,"action_required"),fee({intent:r,actionData:o??null,uiContext:d,actionId:u,stackItemId:i??"",submittedAt:l,...s!==void 0?{nextStep:s}:{}})})()}function hee(e){if(typeof window>"u")return;let{targetToolName:t,data:r}=e;ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"tools/call",params:{name:t,arguments:r??{}}})}function yee(e){let{actionName:t,data:r,bootstrap:o,dispatchToolName:n}=e,i=o.actionNextSteps?.[t];typeof i=="string"&&(o.appCallableTools??[]).includes(i)&&i!==void 0?hee({targetToolName:i,data:r}):gee({toolName:n,intent:t,data:r,sessionId:o.sessionId,stackItemId:o.stackItemId,appId:o.appId,...i!==void 0?{nextStep:i}:{}})}function vee(e){if(typeof window>"u")return;let{toolName:t,url:r,sessionId:o,stackItemId:n,appId:i}=e;if(typeof r!="string"||r.length===0)throw new RangeError("wire.openLink(url): `url` must be a non-empty string.");let a=new Date().toISOString(),s=Dw(`openLink|${r}|${a}`);CD({toolName:t,kind:"openLink",payload:{url:r},sessionId:o,stackItemId:n,appId:i,actionId:s,firedAt:a}),ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"ui/open-link",params:{url:r}})}function Aw(e){if(typeof window>"u")return;let{toolName:t,mode:r,sessionId:o,stackItemId:n,appId:i}=e,a=new Date().toISOString(),s=Dw(`requestDisplayMode|${r}|${a}`);CD({toolName:t,kind:"requestDisplayMode",payload:{mode:r},sessionId:o,stackItemId:n,appId:i,actionId:s,firedAt:a}),ho({jsonrpc:"2.0",id:Math.floor(Math.random()*1e9),method:"ui/request-display-mode",params:{mode:r}})}function $ee(e){if(Pw||typeof window>"u"||typeof document>"u")return;Pw=!0;let{dispatchToolName:t,sessionId:r,stackItemId:o,appId:n}=e,i=a=>{if(a.defaultPrevented)return;let s=a.target;if(s===null||!(s instanceof Element))return;let l=s.closest("a[href]");if(l===null||!(l instanceof HTMLAnchorElement))return;let u=l.getAttribute("href");if(u===null||u.startsWith("#"))return;let c=l.href,p;try{p=new URL(c)}catch{return}if(p.protocol!=="http:"&&p.protocol!=="https:")return;let f=l.getAttribute("target")==="_blank",m=p.origin!==window.location.origin;!f&&!m||(a.preventDefault(),vee({toolName:t,url:c,sessionId:r,stackItemId:o,appId:n}))};document.addEventListener("click",i,{capture:!0})}function bee(e){if(Ow||typeof window>"u"||typeof Element>"u"||typeof Document>"u")return;Ow=!0;let{dispatchToolName:t,sessionId:r,stackItemId:o,appId:n}=e;Element.prototype.requestFullscreen=function(i){return Aw({toolName:t,mode:"fullscreen",sessionId:r,stackItemId:o,appId:n}),Promise.resolve()},Document.prototype.exitFullscreen=function(){return Aw({toolName:t,mode:"inline",sessionId:r,stackItemId:o,appId:n}),Promise.resolve()}}function Sye(){Pw=!1,Ow=!1}function wD(){if(kD||typeof window>"u")return;kD=!0;let e=null,t=r=>{let o=r.data;if(o==null||o.jsonrpc!=="2.0"||o.method!=="ui/notifications/tool-result")return;let n=Nw(o.params);if(n===null)return;let i="codeUrl"in n?n.codeUrl:void 0,a=typeof n.wsUrl=="string"&&n.wsUrl.length>0&&typeof n.token=="string"&&n.token.length>0?"live":"-",s=[n.stackItemId??"-",n.kind??"-",i??"-",n.propsJson??"-",a].join("|");s!==e&&(e=s,Gh(window.document,n).then(()=>{let l=new Set((n.contextSlots??[]).map(c=>c.name)),u=n.stackItemId!==void 0?{sessionId:n.sessionId,appId:n.appId,stackItemId:n.stackItemId}:void 0;i7(ho,l,u)}))};window.addEventListener("message",t)}async function Gh(e,t){ID(),zu(va("mounting"));let r=e.getElementById("ggui-root");r===null&&(r=e.createElement("div"),r.id="ggui-root",e.body.appendChild(r));try{Ek(await Vk(t.compiledValidators));let o;if(t.propsJson!==void 0)try{let z=JSON.parse(t.propsJson);z!==null&&typeof z=="object"&&!Array.isArray(z)&&(o=z)}catch{}if(t.kind!==void 0){let[z,A,H]=await Promise.all([Promise.resolve().then(()=>C(G(),1)),Promise.resolve().then(()=>C(xu(),1)),Promise.resolve().then(()=>(w7(),S7))]);A.createRoot(r).render(z.createElement(H.SystemCardHost,{kind:t.kind,props:o??{},themeId:t.themeId})),zu(va("code-ready",{...t.stackItemId!==void 0?{stackItemId:t.stackItemId}:{}})),xD(r),wD();return}if(t.codeUrl===void 0)throw new Error("bootSelfContained: bootstrap missing codeUrl (static-component mode requires the URL channel)");let n=await fetch(t.codeUrl);if(!n.ok)throw new Error(`bootSelfContained: codeUrl fetch failed (${n.status}): ${t.codeUrl}`);let i=await n.text(),[a,s,l,u,c,p,d,f,m]=await Promise.all([Promise.resolve().then(()=>C(G(),1)),Promise.resolve().then(()=>C(xu(),1)),Promise.resolve().then(()=>(Ru(),WS)),Promise.resolve().then(()=>(cw(),uw)),Promise.resolve().then(()=>(fw(),dw)),Promise.resolve().then(()=>(gw(),mw)),Promise.resolve().then(()=>(_w(),kw)),Promise.resolve().then(()=>($p(),Ik)),Promise.resolve().then(()=>(Tw(),ww))]),[v,b,y]=await Promise.all([Promise.resolve().then(()=>(Ew(),Iw)),Promise.resolve().then(()=>(IS(),CA)),Promise.resolve().then(()=>(Cw(),Mw))]),h=await y.loadGadgetRegistry(m,t.gadgets??[]);v.installGlobalRegistry({react:a,reactDom:s,primitives:l,components:u,compositions:c,interact:p,tokens:d,wire:f,gadgets:h,publicEnv:t.publicEnv??{}});let $=v.getGlobalRegistry(),_=$!==void 0&&t.contextSlots!==void 0?ew($.contexts,a,t.contextSlots):[],S=typeof window<"u"&&typeof window.__GGUI_DISPATCH_TOOL__=="string"?window.__GGUI_DISPATCH_TOOL__:"ggui_runtime_submit_action",O={app:{appId:t.appId,appName:t.appId},session:{sessionId:t.sessionId,isConnected:!0},auth:{isAuthenticated:!1},dispatch:(z,A)=>{yee({actionName:z,data:A,bootstrap:{sessionId:t.sessionId,appId:t.appId,...t.stackItemId!==void 0?{stackItemId:t.stackItemId}:{},...t.appCallableTools!==void 0?{appCallableTools:t.appCallableTools}:{},...t.actionNextSteps!==void 0?{actionNextSteps:t.actionNextSteps}:{}},dispatchToolName:S})},subscribe:()=>()=>{}},k=tw({react:a,postToParent:ho,consoleWarn:typeof console<"u"&&typeof console.warn=="function"?console.warn.bind(console):void 0,...t.stackItemId!==void 0?{identity:{sessionId:t.sessionId,appId:t.appId,stackItemId:t.stackItemId}}:{}}),T=z=>a.createElement(f.GguiWireProvider,{config:O,children:a.createElement(k,{slots:_,children:z})});$ee({dispatchToolName:S,sessionId:t.sessionId,...t.stackItemId!==void 0?{stackItemId:t.stackItemId}:{},appId:t.appId}),bee({dispatchToolName:S,sessionId:t.sessionId,...t.stackItemId!==void 0?{stackItemId:t.stackItemId}:{},appId:t.appId});let I={stackItem:{...t.stackItemId!==void 0?{id:t.stackItemId}:{},componentCode:i,...o!==void 0?{props:o}:{}},renderWrapper:T,...t.themeId!==void 0?{themeId:t.themeId}:{},...t.themeMode!==void 0?{themeMode:t.themeMode}:{},...t.gadgets!==void 0?{gadgetPackages:t.gadgets.map(z=>z.package)}:{}},M=await b.mountReactRoot(r,I);if(zu(va("code-ready",{...t.stackItemId!==void 0?{stackItemId:t.stackItemId}:{}})),xD(r),wD(),typeof t.wsUrl=="string"&&t.wsUrl.length>0&&typeof t.token=="string"&&t.token.length>0&&t.stackItemId!==void 0){let z=t.stackItemId,A=new Za({subscribeFrameBuilder:()=>({type:"subscribe",payload:{sessionId:t.sessionId,appId:t.appId,bootstrap:t.token}})});A.register({type:"props_update",onMessage:H=>{let ee=H;ee.stackItemId===z&&(ee.props===null||typeof ee.props!="object"||M.update({...I,stackItem:{...I.stackItem,props:ee.props}}))}}),qk({bootstrap:t,registry:A,onStatusChange:()=>{}}).catch(H=>{console.warn("[ggui:bootSelfContained] live-update WS subscribe failed; props_update frames will not reach the mount:",H instanceof Error?H.message:String(H))})}}catch(o){let n=o instanceof Error?o.message:String(o);ED("UI_INITIALIZE_FAILED",`self-contained mount failed: ${n}`),zu(va("error",{error:{code:"SELF_CONTAINED_MOUNT_FAILED",message:n}}))}}function xee(){if(typeof window>"u")return!1;let e=window.__GGUI_BOOTSTRAP__;if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=e;return typeof t.wsUrl=="string"&&t.wsUrl.length>0&&typeof t.token=="string"&&t.token.length>0&&typeof t.sessionId=="string"&&t.sessionId.length>0&&typeof t.appId=="string"&&t.appId.length>0}function Hh(){kee({doc:document,callUiInitialize:()=>QQ()("ui/initialize",{appInfo:{name:"ggui-iframe-runtime",version:"1.0.0"},appCapabilities:{availableDisplayModes:["inline","fullscreen","pip"]},protocolVersion:"2026-01-26"}),notifyParent:t=>{if(t.type==="ggui:renderer-ready"){ID();return}ED(t.reason,t.message)},onObserve:r7,onLifecycle:zu})}if(nee()&&typeof window<"u"){let e=oee(),t=e!==null&&(typeof e.codeUrl=="string"||typeof e.kind=="string");if(e!==null&&t)Gh(document,e);else if(e!==null)Hh();else{let r=iee(),o=r!==null&&(typeof r.codeUrl=="string"||typeof r.kind=="string");r!==null&&o?Gh(document,r):r!==null||xee()?Hh():aee(3e4).then(a=>{let s=a!==null&&(typeof a.codeUrl=="string"||typeof a.kind=="string");if(a!==null&&s){Gh(document,a);return}Hh()})}}async function kee(e){let[t,r,o,n,i,a,s,l,u]=await Promise.all([Promise.resolve().then(()=>C(G(),1)),Promise.resolve().then(()=>C(xu(),1)),Promise.resolve().then(()=>(Ru(),WS)),Promise.resolve().then(()=>(cw(),uw)),Promise.resolve().then(()=>(fw(),dw)),Promise.resolve().then(()=>(gw(),mw)),Promise.resolve().then(()=>(_w(),kw)),Promise.resolve().then(()=>($p(),Ik)),Promise.resolve().then(()=>(Tw(),ww))]),[c,p]=await Promise.all([Promise.resolve().then(()=>(Ew(),Iw)),Promise.resolve().then(()=>(Cw(),Mw))]),d={setup:({bootstrap:v,stackModel:b,renderInto:y,statusRefs:h,onObserve:$,onCanvasLifecycle:_})=>{let S=p.loadGadgetRegistry(u,v.gadgets??[]);c.installGlobalRegistry({react:t,reactDom:r,primitives:o,components:n,compositions:i,interact:a,tokens:s,wire:l,gadgets:{"@ggui-ai/gadgets":u},publicEnv:v.publicEnv??{}}),S.then(we=>{let Ge=c.getGlobalRegistry();if(Ge===void 0)return;let wt=Ge.gadgets;for(let[Bn,li]of Object.entries(we))Bn in wt||(wt[Bn]=li)});let O=c.getGlobalRegistry(),k=O!==void 0&&v.contextSlots!==void 0?ew(O.contexts,t,v.contextSlots):[],T=tw({react:t,postToParent:ho,consoleWarn:typeof console<"u"&&typeof console.warn=="function"?console.warn.bind(console):void 0,...v.stackItemId!==void 0?{identity:{sessionId:v.sessionId,appId:v.appId,stackItemId:v.stackItemId}}:{}}),I=new Lg,M=[],z=null,A={send:we=>{if(z!==null){z.send(we);return}M.push(we)},__attachReal(we){for(z=we;M.length>0;){let Ge=M.shift();Ge!==void 0&&we.send(Ge)}}},{config:H,buildScopedConfig:ee}=NR({sessionId:v.sessionId,appId:v.appId,getStack:()=>b.snapshot(),manager:A,streamBus:I,...$!==void 0?{onObserve:$}:{}}),Ie=new Map,J={containerFor:we=>{let Ge=Ie.get(we);if(Ge!==void 0)return Ge;let wt=y.ownerDocument.createElement("div");return wt.setAttribute("data-ggui-stack-item-root",we),y.appendChild(wt),Ie.set(we,wt),wt},getScopedWireConfig:we=>we.type==="mcpApps"||we.type==="system"?null:ee({stackItemId:we.id,...we.actionSpec!==void 0?{actionSpec:we.actionSpec}:{}}),getOuterWrapper:we=>{if(!(we.type==="mcpApps"||we.type==="system"))return Ge=>t.createElement(T,{slots:k,children:Ge})},streamBus:I,sessionId:v.sessionId},Se=new zh(J),yt={reservedValidators:IR(void 0,void 0)},Fr=DR({sessionId:v.sessionId,appId:v.appId,...v.streamWebSocketLocalTools!==void 0?{streamWebSocketLocalTools:v.streamWebSocketLocalTools}:{},send:we=>A.send(we),toolsCall:async({toolName:we,args:Ge})=>{let wt=await MD("tools/call",{name:we,arguments:Ge});if(wt.error!==void 0)throw new Error(wt.error.message??"tools/call failed");let Bn=wt.result;if(Bn===null||typeof Bn!="object")return null;let li=Bn.structuredContent;return li!==void 0?li:Bn},streamBus:I,...$!==void 0?{onObserve:$}:{}}),Pr=new Za({subscribeFrameBuilder:()=>({type:"subscribe",payload:{sessionId:v.sessionId,appId:v.appId,...v.token!==void 0?{bootstrap:v.token}:{}}})});return Pr.register(Bg({stackModel:b,statusRefs:h,getStackRenderer:()=>Se,getChannelTransport:()=>Fr})),Pr.register(Nk({stackModel:b,streamBus:I,validatorCtx:yt,...$!==void 0?{onObserve:$}:{},..._!==void 0?{onCanvasLifecycle:_}:{}})),Pr.register(Ok({stackModel:b,getStackRenderer:()=>Se,...v.pollingUrl!==void 0?{pollingUrl:v.pollingUrl}:{}})),Pr.register(Ak({dispatch:XQ})),Pr.register(Dk()),Pr.register(jk({getChannelTransport:()=>Fr})),Pr.register(Uk({getChannelTransport:()=>Fr})),Pr.register(Lk({...$!==void 0?{onObserve:$}:{}})),{rootWireConfig:H,streamBus:I,stackRenderer:Se,validatorCtx:yt,manager:A,channelTransport:Fr,channelRegistry:Pr}},attachManager:(v,b)=>{let y=v.manager;typeof y.__attachReal=="function"&&y.__attachReal(b)},teardown:v=>{v.stackRenderer.unmountAll(),v.channelTransport.dispose()}},f=await Promise.resolve().then(()=>(bD(),$D)),m=({mountTarget:v,callbacks:b})=>f.mountCanvas(v,{react:t,reactDomClient:r},b);await eee({doc:e.doc,callUiInitialize:e.callUiInitialize,notifyParent:e.notifyParent,triadWiring:d,canvasMount:m,...e.onObserve!==void 0?{onObserve:e.onObserve}:{},...e.onLifecycle!==void 0?{onLifecycle:e.onLifecycle}:{}})}export{Sye as __resetInterceptorsForTest,eee as bootSequence,gee as dispatchWiredAction,CD as emitAudit,Nw as extractBootstrapFromToolResult,hee as fireDirectToolCall,see as formatWiredActionDataInline,$ee as installAnchorClickInterceptor,bee as installFullscreenInterceptors,vee as openLinkInParent,oee as readSelfContainedBootstrap,Aw as requestDisplayModeInParent,yee as routeDispatch,YQ as subscribeDrainAck};
205
+ /*! Bundled license information:
206
+
207
+ react/cjs/react-jsx-runtime.production.js:
208
+ (**
209
+ * @license React
210
+ * react-jsx-runtime.production.js
211
+ *
212
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
213
+ *
214
+ * This source code is licensed under the MIT license found in the
215
+ * LICENSE file in the root directory of this source tree.
216
+ *)
217
+
218
+ react/cjs/react.production.js:
219
+ (**
220
+ * @license React
221
+ * react.production.js
222
+ *
223
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
224
+ *
225
+ * This source code is licensed under the MIT license found in the
226
+ * LICENSE file in the root directory of this source tree.
227
+ *)
228
+
229
+ scheduler/cjs/scheduler.production.js:
230
+ (**
231
+ * @license React
232
+ * scheduler.production.js
233
+ *
234
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
235
+ *
236
+ * This source code is licensed under the MIT license found in the
237
+ * LICENSE file in the root directory of this source tree.
238
+ *)
239
+
240
+ react-dom/cjs/react-dom.production.js:
241
+ (**
242
+ * @license React
243
+ * react-dom.production.js
244
+ *
245
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
246
+ *
247
+ * This source code is licensed under the MIT license found in the
248
+ * LICENSE file in the root directory of this source tree.
249
+ *)
250
+
251
+ react-dom/cjs/react-dom-client.production.js:
252
+ (**
253
+ * @license React
254
+ * react-dom-client.production.js
255
+ *
256
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
257
+ *
258
+ * This source code is licensed under the MIT license found in the
259
+ * LICENSE file in the root directory of this source tree.
260
+ *)
261
+ */