@encatch/ws-react 0.0.5 → 0.0.7
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.
- package/dist/EncatchPreview.d.ts +2 -0
- package/dist/web-form-engine-core.umd-Cf_eJa3j.js +17655 -0
- package/dist/ws-react.es.js +11 -10
- package/dist/ws-react.umd.js +250 -18
- package/package.json +1 -1
- package/dist/web-form-engine-core.umd-BsgK5u9q.js +0 -16191
package/dist/ws-react.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Nn,Ti){typeof exports=="object"&&typeof module<"u"?Ti(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],Ti):(Nn=typeof globalThis<"u"?globalThis:Nn||self,Ti(Nn.WsReact={},Nn.React))})(this,(function(Nn,Ti){"use strict";function Pb(e,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const t in s)if(t!=="default"&&!(t in e)){const a=Object.getOwnPropertyDescriptor(s,t);a&&Object.defineProperty(e,t,a.get?a:{enumerable:!0,get:()=>s[t]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Cb(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var o=function s(){var t=!1;try{t=this instanceof s}catch{}return t?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};o.prototype=r.prototype}else o={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var t=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(o,s,t.get?t:{enumerable:!0,get:function(){return e[s]}})}),o}var So={exports:{}},Oi={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ic;function Ub(){if(ic)return Oi;ic=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,t,a){var f=null;if(a!==void 0&&(f=""+a),t.key!==void 0&&(f=""+t.key),"key"in t){a={};for(var w in t)w!=="key"&&(a[w]=t[w])}else a=t;return t=a.ref,{$$typeof:e,type:s,key:f,ref:t!==void 0?t:null,props:a}}return Oi.Fragment=r,Oi.jsx=o,Oi.jsxs=o,Oi}var Ei={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,33 +14,265 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var oc;function Ab(){return oc||(oc=1,process.env.NODE_ENV!=="production"&&(function(){function e(pe){if(pe==null)return null;if(typeof pe=="function")return pe.$$typeof===ga?null:pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case Ie:return"Fragment";case pt:return"Profiler";case Ae:return"StrictMode";case or:return"Suspense";case Wr:return"SuspenseList";case rl:return"Activity"}if(typeof pe=="object")switch(typeof pe.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),pe.$$typeof){case Y:return"Portal";case ct:return(pe.displayName||"Context")+".Provider";case ut:return(pe._context.displayName||"Context")+".Consumer";case vt:var Be=pe.render;return pe=pe.displayName,pe||(pe=Be.displayName||Be.name||"",pe=pe!==""?"ForwardRef("+pe+")":"ForwardRef"),pe;case Ft:return Be=pe.displayName||null,Be!==null?Be:e(pe.type)||"Memo";case pa:Be=pe._payload,pe=pe._init;try{return e(pe(Be))}catch{}}return null}function r(pe){return""+pe}function o(pe){try{r(pe);var Be=!1}catch{Be=!0}if(Be){Be=console;var zt=Be.error,At=typeof Symbol=="function"&&Symbol.toStringTag&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return zt.call(Be,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",At),r(pe)}}function s(pe){if(pe===Ie)return"<>";if(typeof pe=="object"&&pe!==null&&pe.$$typeof===pa)return"<...>";try{var Be=e(pe);return Be?"<"+Be+">":"<...>"}catch{return"<...>"}}function t(){var pe=eo.A;return pe===null?null:pe.getOwner()}function a(){return Error("react-stack-top-frame")}function f(pe){if(pn.call(pe,"key")){var Be=Object.getOwnPropertyDescriptor(pe,"key").get;if(Be&&Be.isReactWarning)return!1}return pe.key!==void 0}function w(pe,Be){function zt(){Mn||(Mn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Be))}zt.isReactWarning=!0,Object.defineProperty(pe,"key",{get:zt,configurable:!0})}function q(){var pe=e(this.type);return Vr[pe]||(Vr[pe]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),pe=this.props.ref,pe!==void 0?pe:null}function K(pe,Be,zt,At,gt,Ir,Zn,di){return zt=Ir.ref,pe={$$typeof:he,type:pe,key:Be,props:Ir,_owner:gt},(zt!==void 0?zt:null)!==null?Object.defineProperty(pe,"ref",{enumerable:!1,get:q}):Object.defineProperty(pe,"ref",{enumerable:!1,value:null}),pe._store={},Object.defineProperty(pe._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(pe,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(pe,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Zn}),Object.defineProperty(pe,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:di}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe}function me(pe,Be,zt,At,gt,Ir,Zn,di){var Gt=Be.children;if(Gt!==void 0)if(At)if(nl(Gt)){for(At=0;At<Gt.length;At++)le(Gt[At]);Object.freeze&&Object.freeze(Gt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else le(Gt);if(pn.call(Be,"key")){Gt=e(pe);var Zt=Object.keys(Be).filter(function(fi){return fi!=="key"});At=0<Zt.length?"{key: someKey, "+Zt.join(": ..., ")+": ...}":"{key: someKey}",ro[Gt+At]||(Zt=0<Zt.length?"{"+Zt.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,St,Dt,zt,Dt),ea[Dt+St]=!0)}if(Dt=null,gt!==void 0&&(o(gt),Dt=""+gt),d(Qe)&&(o(Qe.key),Dt=""+Qe.key),"key"in Qe){gt={};for(var Ir in Qe)Ir!=="key"&&(gt[Ir]=Qe[Ir])}else gt=Qe;return Dt&&$(gt,typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe),B(pe,Dt,gn,Ut,t(),gt,xr,Kr)}function ae(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===be&&pe._store&&(pe._store.validated=1)}var Ze=bi,be=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),ze=Symbol.for("react.fragment"),Ce=Symbol.for("react.strict_mode"),st=Symbol.for("react.profiler"),rt=Symbol.for("react.consumer"),ot=Symbol.for("react.context"),ct=Symbol.for("react.forward_ref"),Qt=Symbol.for("react.suspense"),Pn=Symbol.for("react.suspense_list"),Tt=Symbol.for("react.memo"),Xo=Symbol.for("react.lazy"),Ou=Symbol.for("react.activity"),Eu=Symbol.for("react.client.reference"),Ri=Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kr=Object.prototype.hasOwnProperty,Pu=Array.isArray,wr=console.createTask?console.createTask:function(){return null};Ze={react_stack_bottom_frame:function(pe){return pe()}};var Sr,Un={},pn=Ze.react_stack_bottom_frame.bind(Ze,a)(),Fi=wr(s(a)),ea={};$i.Fragment=ze,$i.jsx=function(pe,Qe,gt,St,Ut){var gn=1e4>Ri.recentlyCreatedOwnerStacks++;return me(pe,Qe,gt,!1,St,Ut,gn?Error("react-stack-top-frame"):pn,gn?wr(s(pe)):Fi)},$i.jsxs=function(pe,Qe,gt,St,Ut){var gn=1e4>Ri.recentlyCreatedOwnerStacks++;return me(pe,Qe,gt,!0,St,Ut,gn?Error("react-stack-top-frame"):pn,gn?wr(s(pe)):Fi)}})()),$i}var Sc;function qh(){return Sc||(Sc=1,process.env.NODE_ENV==="production"?co.exports=Ah():co.exports=Zh()),co.exports}var Rh=qh();typeof window<"u"&&Promise.resolve().then(()=>Ok).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(n){console.debug("Custom element registration:",n)}});const Fh=({formData:e,cssLink:n})=>Rh.jsx("encatch-app",{...e,cssLink:n});var _i={exports:{}};const xc=Object.freeze({status:"aborted"});function E(e,n,o){function s($,A){var B;Object.defineProperty($,"_zod",{value:$._zod??{},enumerable:!1}),(B=$._zod).traits??(B.traits=new Set),$._zod.traits.add(e),n($,A);for(const me in d.prototype)me in $||Object.defineProperty($,me,{value:d.prototype[me].bind($)});$._zod.constr=d,$._zod.def=A}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function d($){var A;const B=o?.Parent?new a:this;s(B,$),(A=B._zod).deferred??(A.deferred=[]);for(const me of B._zod.deferred)me();return B}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:$=>o?.Parent&&$ instanceof o.Parent?!0:$?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}const Ic=Symbol("zod_brand");class mr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class lo extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const fo={};function Wt(e){return e&&Object.assign(fo,e),fo}function Wh(e){return e}function Qh(e){return e}function Gh(e){}function Jh(e){throw new Error}function Vh(e){}function ka(e){const n=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,t])=>n.indexOf(+s)===-1).map(([s,t])=>t)}function ve(e,n="|"){return e.map(o=>Fe(o)).join(n)}function mo(e,n){return typeof n=="bigint"?n.toString():n}function ki(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function pr(e){return e==null}function po(e){const n=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(n,o)}function zc(e,n){const o=(e.toString().split(".")[1]||"").length,s=n.toString();let t=(s.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(s)){const A=s.match(/\d?e-(\d?)/);A?.[1]&&(t=Number.parseInt(A[1]))}const a=o>t?o:t,d=Number.parseInt(e.toFixed(a).replace(".","")),$=Number.parseInt(n.toFixed(a).replace(".",""));return d%$/10**a}const Nc=Symbol("evaluating");function tt(e,n,o){let s;Object.defineProperty(e,n,{get(){if(s!==Nc)return s===void 0&&(s=Nc,s=o()),s},set(t){Object.defineProperty(e,n,{value:t})},configurable:!0})}function go(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function _n(e,n,o){Object.defineProperty(e,n,{value:o,writable:!0,enumerable:!0,configurable:!0})}function nr(...e){const n={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(n,s)}return Object.defineProperties({},n)}function Yh(e){return nr(e._zod.def)}function Bh(e,n){return n?n.reduce((o,s)=>o?.[s],e):e}function Kh(e){const n=Object.keys(e),o=n.map(s=>e[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<n.length;a++)t[n[a]]=s[a];return t})}function Hh(e=10){const n="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<e;s++)o+=n[Math.floor(Math.random()*n.length)];return o}function wa(e){return JSON.stringify(e)}const Sa="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Qr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const jc=ki(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function gr(e){if(Qr(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const o=n.prototype;return!(Qr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function vo(e){return gr(e)?{...e}:Array.isArray(e)?[...e]:e}function Xh(e){let n=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&n++;return n}const eb=e=>{const n=typeof e;switch(n){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: ${n}`)}},ho=new Set(["string","number","symbol"]),Tc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function rr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function mn(e,n,o){const s=new e._zod.constr(n??e._zod.def);return(!n||o?.parent)&&(s._zod.parent=e),s}function te(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function tb(e){let n;return new Proxy({},{get(o,s,t){return n??(n=e()),Reflect.get(n,s,t)},set(o,s,t,a){return n??(n=e()),Reflect.set(n,s,t,a)},has(o,s){return n??(n=e()),Reflect.has(n,s)},deleteProperty(o,s){return n??(n=e()),Reflect.deleteProperty(n,s)},ownKeys(o){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(o,s){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,s)},defineProperty(o,s,t){return n??(n=e()),Reflect.defineProperty(n,s,t)}})}function Fe(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Oc(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const Ec={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]},Pc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Uc(e,n){const o=e._zod.def,s=nr(e._zod.def,{get shape(){const t={};for(const a in n){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(t[a]=o.shape[a])}return _n(this,"shape",t),t},checks:[]});return mn(e,s)}function Cc(e,n){const o=e._zod.def,s=nr(e._zod.def,{get shape(){const t={...e._zod.def.shape};for(const a in n){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);n[a]&&delete t[a]}return _n(this,"shape",t),t},checks:[]});return mn(e,s)}function Dc(e,n){if(!gr(n))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const t=nr(e._zod.def,{get shape(){const a={...e._zod.def.shape,...n};return _n(this,"shape",a),a},checks:[]});return mn(e,t)}function Mc(e,n){if(!gr(n))throw new Error("Invalid input to safeExtend: expected a plain object");const o={...e._zod.def,get shape(){const s={...e._zod.def.shape,...n};return _n(this,"shape",s),s},checks:e._zod.def.checks};return mn(e,o)}function Lc(e,n){const o=nr(e._zod.def,{get shape(){const s={...e._zod.def.shape,...n._zod.def.shape};return _n(this,"shape",s),s},get catchall(){return n._zod.def.catchall},checks:[]});return mn(e,o)}function Ac(e,n,o){const s=nr(n._zod.def,{get shape(){const t=n._zod.def.shape,a={...t};if(o)for(const d in o){if(!(d in t))throw new Error(`Unrecognized key: "${d}"`);o[d]&&(a[d]=e?new e({type:"optional",innerType:t[d]}):t[d])}else for(const d in t)a[d]=e?new e({type:"optional",innerType:t[d]}):t[d];return _n(this,"shape",a),a},checks:[]});return mn(n,s)}function Zc(e,n,o){const s=nr(n._zod.def,{get shape(){const t=n._zod.def.shape,a={...t};if(o)for(const d in o){if(!(d in a))throw new Error(`Unrecognized key: "${d}"`);o[d]&&(a[d]=new e({type:"nonoptional",innerType:t[d]}))}else for(const d in t)a[d]=new e({type:"nonoptional",innerType:t[d]});return _n(this,"shape",a),a},checks:[]});return mn(n,s)}function vr(e,n=0){if(e.aborted===!0)return!0;for(let o=n;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function kn(e,n){return n.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function wi(e){return typeof e=="string"?e:e?.message}function wn(e,n,o){const s={...e,path:e.path??[]};if(!e.message){const t=wi(e.inst?._zod.def?.error?.(e))??wi(n?.error?.(e))??wi(o.customError?.(e))??wi(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,n?.reportInput||delete s.input,s}function bo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function yo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Gr(...e){const[n,o,s]=e;return typeof n=="string"?{message:n,code:"custom",input:o,inst:s}:{...n}}function nb(e){return Object.entries(e).filter(([n,o])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}function qc(e){const n=atob(e),o=new Uint8Array(n.length);for(let s=0;s<n.length;s++)o[s]=n.charCodeAt(s);return o}function Rc(e){let n="";for(let o=0;o<e.length;o++)n+=String.fromCharCode(e[o]);return btoa(n)}function rb(e){const n=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-n.length%4)%4);return qc(n+o)}function ib(e){return Rc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ob(e){const n=e.replace(/^0x/,"");if(n.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(n.length/2);for(let s=0;s<n.length;s+=2)o[s/2]=Number.parseInt(n.slice(s,s+2),16);return o}function ab(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}class sb{constructor(...n){}}const Fc=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Pc,Class:sb,NUMBER_FORMAT_RANGES:Ec,aborted:vr,allowsEval:jc,assert:Vh,assertEqual:Wh,assertIs:Gh,assertNever:Jh,assertNotEqual:Qh,assignProp:_n,base64ToUint8Array:qc,base64urlToUint8Array:rb,cached:ki,captureStackTrace:Sa,cleanEnum:nb,cleanRegex:po,clone:mn,cloneDef:Yh,createTransparentProxy:tb,defineLazy:tt,esc:wa,escapeRegex:rr,extend:Dc,finalizeIssue:wn,floatSafeRemainder:zc,getElementAtPath:Bh,getEnumValues:ka,getLengthableOrigin:yo,getParsedType:eb,getSizableOrigin:bo,hexToUint8Array:ob,isObject:Qr,isPlainObject:gr,issue:Gr,joinValues:ve,jsonStringifyReplacer:mo,merge:Lc,mergeDefs:nr,normalizeParams:te,nullish:pr,numKeys:Xh,objectClone:go,omit:Cc,optionalKeys:Oc,partial:Ac,pick:Uc,prefixIssues:kn,primitiveTypes:Tc,promiseAllObject:Kh,propertyKeyTypes:ho,randomString:Hh,required:Zc,safeExtend:Mc,shallowClone:vo,stringifyPrimitive:Fe,uint8ArrayToBase64:Rc,uint8ArrayToBase64url:ib,uint8ArrayToHex:ab,unwrapMessage:wi},Symbol.toStringTag,{value:"Module"})),Wc=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,mo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},xa=E("$ZodError",Wc),on=E("$ZodError",Wc,{Parent:Error});function Ia(e,n=o=>o.message){const o={},s=[];for(const t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(n(t))):s.push(n(t));return{formErrors:s,fieldErrors:o}}function za(e,n){const o=n||function(a){return a.message},s={_errors:[]},t=a=>{for(const d of a.issues)if(d.code==="invalid_union"&&d.errors.length)d.errors.map($=>t({issues:$}));else if(d.code==="invalid_key")t({issues:d.issues});else if(d.code==="invalid_element")t({issues:d.issues});else if(d.path.length===0)s._errors.push(o(d));else{let $=s,A=0;for(;A<d.path.length;){const B=d.path[A];A===d.path.length-1?($[B]=$[B]||{_errors:[]},$[B]._errors.push(o(d))):$[B]=$[B]||{_errors:[]},$=$[B],A++}}};return t(e),s}function Qc(e,n){const o=n||function(a){return a.message},s={errors:[]},t=(a,d=[])=>{var $,A;for(const B of a.issues)if(B.code==="invalid_union"&&B.errors.length)B.errors.map(me=>t({issues:me},B.path));else if(B.code==="invalid_key")t({issues:B.issues},B.path);else if(B.code==="invalid_element")t({issues:B.issues},B.path);else{const me=[...d,...B.path];if(me.length===0){s.errors.push(o(B));continue}let ae=s,Ze=0;for(;Ze<me.length;){const be=me[Ze],Y=Ze===me.length-1;typeof be=="string"?(ae.properties??(ae.properties={}),($=ae.properties)[be]??($[be]={errors:[]}),ae=ae.properties[be]):(ae.items??(ae.items=[]),(A=ae.items)[be]??(A[be]={errors:[]}),ae=ae.items[be]),Y&&ae.errors.push(o(B)),Ze++}}};return t(e),s}function Gc(e){const n=[],o=e.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?n.push(`[${s}]`):typeof s=="symbol"?n.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?n.push(`[${JSON.stringify(s)}]`):(n.length&&n.push("."),n.push(s));return n.join("")}function Jc(e){const n=[],o=[...e.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)n.push(`✖ ${s.message}`),s.path?.length&&n.push(` → at ${Gc(s.path)}`);return n.join(`
|
|
23
|
-
`)}const Si=e=>(n,o,s,t)=>{const a=s?Object.assign(s,{async:!1}):{async:!1},d=n._zod.run({value:o,issues:[]},a);if(d instanceof Promise)throw new mr;if(d.issues.length){const $=new(t?.Err??e)(d.issues.map(A=>wn(A,a,Wt())));throw Sa($,t?.callee),$}return d.value},Na=Si(on),xi=e=>async(n,o,s,t)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let d=n._zod.run({value:o,issues:[]},a);if(d instanceof Promise&&(d=await d),d.issues.length){const $=new(t?.Err??e)(d.issues.map(A=>wn(A,a,Wt())));throw Sa($,t?.callee),$}return d.value},ja=xi(on),Ii=e=>(n,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=n._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new mr;return a.issues.length?{success:!1,error:new(e??xa)(a.issues.map(d=>wn(d,t,Wt())))}:{success:!0,data:a.value}},Vc=Ii(on),zi=e=>async(n,o,s)=>{const t=s?Object.assign(s,{async:!0}):{async:!0};let a=n._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(d=>wn(d,t,Wt())))}:{success:!0,data:a.value}},Yc=zi(on),Ta=e=>(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Si(e)(n,o,t)},ub=Ta(on),Oa=e=>(n,o,s)=>Si(e)(n,o,s),cb=Oa(on),Ea=e=>async(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return xi(e)(n,o,t)},lb=Ea(on),Pa=e=>async(n,o,s)=>xi(e)(n,o,s),db=Pa(on),Ua=e=>(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ii(e)(n,o,t)},fb=Ua(on),Ca=e=>(n,o,s)=>Ii(e)(n,o,s),mb=Ca(on),Da=e=>async(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return zi(e)(n,o,t)},pb=Da(on),Ma=e=>async(n,o,s)=>zi(e)(n,o,s),gb=Ma(on),Bc=/^[cC][^\s-]{8,}$/,Kc=/^[0-9a-z]+$/,Hc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Xc=/^[0-9a-vA-V]{20}$/,el=/^[A-Za-z0-9]{27}$/,tl=/^[a-zA-Z0-9_-]{21}$/,nl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,vb=/^[-+]?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)?)??$/,rl=/^([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})$/,Jr=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)$/,hb=Jr(4),bb=Jr(6),yb=Jr(7),il=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$b=/^[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])?)*$/,_b=/^(([^<>()\[\]\\.,;:\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,}))$/,ol=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,kb=ol,wb=/^[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])?)*$/,Sb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function al(){return new RegExp(Sb,"u")}const sl=/^(?:(?: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])$/,ul=/^(([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}|:))$/,cl=/^((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])$/,ll=/^(([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])$/,dl=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,La=/^[A-Za-z0-9_-]*$/,Aa=/^(?=.{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])?)*\.?$/,fl=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ml=/^\+(?:[0-9]){6,14}[0-9]$/,pl="(?:(?:\\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])))",gl=new RegExp(`^${pl}$`);function vl(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function hl(e){return new RegExp(`^${vl(e)}$`)}function bl(e){const n=vl({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${n}(?:${o.join("|")})`;return new RegExp(`^${pl}T(?:${s})$`)}const yl=e=>{const n=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},$l=/^-?\d+n?$/,_l=/^-?\d+$/,kl=/^-?\d+(?:\.\d+)?/,wl=/^(?:true|false)$/i,Sl=/^null$/i,xl=/^undefined$/i,Il=/^[^A-Z]*$/,zl=/^[^a-z]*$/,Nl=/^[0-9a-fA-F]*$/;function Ni(e,n){return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`)}function ji(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const Za=Object.freeze(Object.defineProperty({__proto__:null,base64:dl,base64url:La,bigint:$l,boolean:wl,browserEmail:wb,cidrv4:cl,cidrv6:ll,cuid:Bc,cuid2:Kc,date:gl,datetime:bl,domain:fl,duration:nl,e164:ml,email:il,emoji:al,extendedDuration:vb,guid:rl,hex:Nl,hostname:Aa,html5Email:$b,idnEmail:kb,integer:_l,ipv4:sl,ipv6:ul,ksuid:el,lowercase:Il,md5_base64:Ni(22,"=="),md5_base64url:ji(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:tl,null:Sl,number:kl,rfc5322Email:_b,sha1_base64:Ni(27,"="),sha1_base64url:ji(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Ni(43,"="),sha256_base64url:ji(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Ni(64,""),sha384_base64url:ji(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Ni(86,"=="),sha512_base64url:ji(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:yl,time:hl,ulid:Hc,undefined:xl,unicodeEmail:ol,uppercase:zl,uuid:Jr,uuid4:hb,uuid6:bb,uuid7:yb,xid:Xc},Symbol.toStringTag,{value:"Module"})),kt=E("$ZodCheck",(e,n)=>{var o;e._zod??(e._zod={}),e._zod.def=n,(o=e._zod).onattach??(o.onattach=[])}),jl={number:"number",bigint:"bigint",object:"date"},qa=E("$ZodCheckLessThan",(e,n)=>{kt.init(e,n);const o=jl[typeof n.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(n.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<a&&(n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value)}),e._zod.check=s=>{(n.inclusive?s.value<=n.value:s.value<n.value)||s.issues.push({origin:o,code:"too_big",maximum:n.value,input:s.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Ra=E("$ZodCheckGreaterThan",(e,n)=>{kt.init(e,n);const o=jl[typeof n.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(n.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>a&&(n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value)}),e._zod.check=s=>{(n.inclusive?s.value>=n.value:s.value>n.value)||s.issues.push({origin:o,code:"too_small",minimum:n.value,input:s.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Tl=E("$ZodCheckMultipleOf",(e,n)=>{kt.init(e,n),e._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=n.value)}),e._zod.check=o=>{if(typeof o.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%n.value===BigInt(0):zc(o.value,n.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:n.value,input:o.value,inst:e,continue:!n.abort})}}),Ol=E("$ZodCheckNumberFormat",(e,n)=>{kt.init(e,n),n.format=n.format||"float64";const o=n.format?.includes("int"),s=o?"int":"number",[t,a]=Ec[n.format];e._zod.onattach.push(d=>{const $=d._zod.bag;$.format=n.format,$.minimum=t,$.maximum=a,o&&($.pattern=_l)}),e._zod.check=d=>{const $=d.value;if(o){if(!Number.isInteger($)){d.issues.push({expected:s,format:n.format,code:"invalid_type",continue:!1,input:$,inst:e});return}if(!Number.isSafeInteger($)){$>0?d.issues.push({input:$,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!n.abort}):d.issues.push({input:$,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!n.abort});return}}$<t&&d.issues.push({origin:"number",input:$,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!n.abort}),$>a&&d.issues.push({origin:"number",input:$,code:"too_big",maximum:a,inst:e})}}),El=E("$ZodCheckBigIntFormat",(e,n)=>{kt.init(e,n);const[o,s]=Pc[n.format];e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=n.format,a.minimum=o,a.maximum=s}),e._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!n.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inst:e})}}),Pl=E("$ZodCheckMaxSize",(e,n)=>{var o;kt.init(e,n),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!pr(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(s._zod.bag.maximum=n.maximum)}),e._zod.check=s=>{const t=s.value;t.size<=n.maximum||s.issues.push({origin:bo(t),code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),Ul=E("$ZodCheckMinSize",(e,n)=>{var o;kt.init(e,n),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!pr(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(s._zod.bag.minimum=n.minimum)}),e._zod.check=s=>{const t=s.value;t.size>=n.minimum||s.issues.push({origin:bo(t),code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),Cl=E("$ZodCheckSizeEquals",(e,n)=>{var o;kt.init(e,n),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!pr(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=n.size,t.maximum=n.size,t.size=n.size}),e._zod.check=s=>{const t=s.value,a=t.size;if(a===n.size)return;const d=a>n.size;s.issues.push({origin:bo(t),...d?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!n.abort})}}),Dl=E("$ZodCheckMaxLength",(e,n)=>{var o;kt.init(e,n),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!pr(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<t&&(s._zod.bag.maximum=n.maximum)}),e._zod.check=s=>{const t=s.value;if(t.length<=n.maximum)return;const d=yo(t);s.issues.push({origin:d,code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),Ml=E("$ZodCheckMinLength",(e,n)=>{var o;kt.init(e,n),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!pr(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(s._zod.bag.minimum=n.minimum)}),e._zod.check=s=>{const t=s.value;if(t.length>=n.minimum)return;const d=yo(t);s.issues.push({origin:d,code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),Ll=E("$ZodCheckLengthEquals",(e,n)=>{var o;kt.init(e,n),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!pr(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=n.length,t.maximum=n.length,t.length=n.length}),e._zod.check=s=>{const t=s.value,a=t.length;if(a===n.length)return;const d=yo(t),$=a>n.length;s.issues.push({origin:d,...$?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!n.abort})}}),Ti=E("$ZodCheckStringFormat",(e,n)=>{var o,s;kt.init(e,n),e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=n.format,n.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(n.pattern))}),n.pattern?(o=e._zod).check??(o.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:n.format,input:t.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(s=e._zod).check??(s.check=()=>{})}),Al=E("$ZodCheckRegex",(e,n)=>{Ti.init(e,n),e._zod.check=o=>{n.pattern.lastIndex=0,!n.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),Zl=E("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=Il),Ti.init(e,n)}),ql=E("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=zl),Ti.init(e,n)}),Rl=E("$ZodCheckIncludes",(e,n)=>{kt.init(e,n);const o=rr(n.includes),s=new RegExp(typeof n.position=="number"?`^.{${n.position}}${o}`:o);n.pattern=s,e._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=t=>{t.value.includes(n.includes,n.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:t.value,inst:e,continue:!n.abort})}}),Fl=E("$ZodCheckStartsWith",(e,n)=>{kt.init(e,n);const o=new RegExp(`^${rr(n.prefix)}.*`);n.pattern??(n.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(n.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:s.value,inst:e,continue:!n.abort})}}),Wl=E("$ZodCheckEndsWith",(e,n)=>{kt.init(e,n);const o=new RegExp(`.*${rr(n.suffix)}$`);n.pattern??(n.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(n.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:s.value,inst:e,continue:!n.abort})}});function Ql(e,n,o){e.issues.length&&n.issues.push(...kn(o,e.issues))}const Gl=E("$ZodCheckProperty",(e,n)=>{kt.init(e,n),e._zod.check=o=>{const s=n.schema._zod.run({value:o.value[n.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>Ql(t,o,n.property));Ql(s,o,n.property)}}),Jl=E("$ZodCheckMimeType",(e,n)=>{kt.init(e,n);const o=new Set(n.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=n.mime}),e._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:n.mime,input:s.value.type,inst:e,continue:!n.abort})}}),Vl=E("$ZodCheckOverwrite",(e,n)=>{kt.init(e,n),e._zod.check=o=>{o.value=n.tx(o.value)}});class Yl{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const s=n.split(`
|
|
24
|
-
`).filter(
|
|
25
|
-
`))}}const Bl={major:4,minor:1,patch:8},We=E("$ZodType",(e,n)=>{var o;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=Bl;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const t of s)for(const a of t._zod.onattach)a(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(d,$,A)=>{let B=vr(d),me;for(const ae of $){if(ae._zod.def.when){if(!ae._zod.def.when(d))continue}else if(B)continue;const Ze=d.issues.length,be=ae._zod.check(d);if(be instanceof Promise&&A?.async===!1)throw new mr;if(me||be instanceof Promise)me=(me??Promise.resolve()).then(async()=>{await be,d.issues.length!==Ze&&(B||(B=vr(d,Ze)))});else{if(d.issues.length===Ze)continue;B||(B=vr(d,Ze))}}return me?me.then(()=>d):d},a=(d,$,A)=>{if(vr(d))return d.aborted=!0,d;const B=t($,s,A);if(B instanceof Promise){if(A.async===!1)throw new mr;return B.then(me=>e._zod.parse(me,A))}return e._zod.parse(B,A)};e._zod.run=(d,$)=>{if($.skipChecks)return e._zod.parse(d,$);if($.direction==="backward"){const B=e._zod.parse({value:d.value,issues:[]},{...$,skipChecks:!0});return B instanceof Promise?B.then(me=>a(me,d,$)):a(B,d,$)}const A=e._zod.parse(d,$);if(A instanceof Promise){if($.async===!1)throw new mr;return A.then(B=>t(B,s,$))}return t(A,s,$)}}e["~standard"]={validate:t=>{try{const a=Vc(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Yc(e,t).then(d=>d.success?{value:d.data}:{issues:d.error?.issues})}},vendor:"zod",version:1}}),Oi=E("$ZodString",(e,n)=>{We.init(e,n),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??yl(e._zod.bag),e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),pt=E("$ZodStringFormat",(e,n)=>{Ti.init(e,n),Oi.init(e,n)}),Kl=E("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=rl),pt.init(e,n)}),Hl=E("$ZodUUID",(e,n)=>{if(n.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(s===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Jr(s))}else n.pattern??(n.pattern=Jr());pt.init(e,n)}),Xl=E("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=il),pt.init(e,n)}),ed=E("$ZodURL",(e,n)=>{pt.init(e,n),e._zod.check=o=>{try{const s=o.value.trim(),t=new URL(s);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Aa.source,input:o.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:o.value,inst:e,continue:!n.abort})),n.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!n.abort})}}}),td=E("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=al()),pt.init(e,n)}),nd=E("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=tl),pt.init(e,n)}),rd=E("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=Bc),pt.init(e,n)}),id=E("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=Kc),pt.init(e,n)}),od=E("$ZodULID",(e,n)=>{n.pattern??(n.pattern=Hc),pt.init(e,n)}),ad=E("$ZodXID",(e,n)=>{n.pattern??(n.pattern=Xc),pt.init(e,n)}),sd=E("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=el),pt.init(e,n)}),ud=E("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=bl(n)),pt.init(e,n)}),cd=E("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=gl),pt.init(e,n)}),ld=E("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=hl(n)),pt.init(e,n)}),dd=E("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=nl),pt.init(e,n)}),fd=E("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=sl),pt.init(e,n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),md=E("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=ul),pt.init(e,n),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv6"}),e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!n.abort})}}}),pd=E("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=cl),pt.init(e,n)}),gd=E("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=ll),pt.init(e,n),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const d=Number(a);if(`${d}`!==a)throw new Error;if(d<0||d>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!n.abort})}}});function Fa(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const vd=E("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=dl),pt.init(e,n),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{Fa(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!n.abort})}});function hd(e){if(!La.test(e))return!1;const n=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=n.padEnd(Math.ceil(n.length/4)*4,"=");return Fa(o)}const bd=E("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=La),pt.init(e,n),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{hd(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!n.abort})}}),yd=E("$ZodE164",(e,n)=>{n.pattern??(n.pattern=ml),pt.init(e,n)});function $d(e,n=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||n&&(!("alg"in t)||t.alg!==n))}catch{return!1}}const _d=E("$ZodJWT",(e,n)=>{pt.init(e,n),e._zod.check=o=>{$d(o.value,n.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!n.abort})}}),kd=E("$ZodCustomStringFormat",(e,n)=>{pt.init(e,n),e._zod.check=o=>{n.fn(o.value)||o.issues.push({code:"invalid_format",format:n.format,input:o.value,inst:e,continue:!n.abort})}}),Wa=E("$ZodNumber",(e,n)=>{We.init(e,n),e._zod.pattern=e._zod.bag.pattern??kl,e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),wd=E("$ZodNumber",(e,n)=>{Ol.init(e,n),Wa.init(e,n)}),Qa=E("$ZodBoolean",(e,n)=>{We.init(e,n),e._zod.pattern=wl,e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),Ga=E("$ZodBigInt",(e,n)=>{We.init(e,n),e._zod.pattern=$l,e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),Sd=E("$ZodBigInt",(e,n)=>{El.init(e,n),Ga.init(e,n)}),xd=E("$ZodSymbol",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),Id=E("$ZodUndefined",(e,n)=>{We.init(e,n),e._zod.pattern=xl,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),zd=E("$ZodNull",(e,n)=>{We.init(e,n),e._zod.pattern=Sl,e._zod.values=new Set([null]),e._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),Nd=E("$ZodAny",(e,n)=>{We.init(e,n),e._zod.parse=o=>o}),jd=E("$ZodUnknown",(e,n)=>{We.init(e,n),e._zod.parse=o=>o}),Td=E("$ZodNever",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),Od=E("$ZodVoid",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),Ed=E("$ZodDate",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{if(n.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function Pd(e,n,o){e.issues.length&&n.issues.push(...kn(o,e.issues)),n.value[o]=e.value}const Ud=E("$ZodArray",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);const a=[];for(let d=0;d<t.length;d++){const $=t[d],A=n.element._zod.run({value:$,issues:[]},s);A instanceof Promise?a.push(A.then(B=>Pd(B,o,d))):Pd(A,o,d)}return a.length?Promise.all(a).then(()=>o):o}});function $o(e,n,o,s){e.issues.length&&n.issues.push(...kn(o,e.issues)),e.value===void 0?o in s&&(n.value[o]=void 0):n.value[o]=e.value}function Cd(e){const n=Object.keys(e.shape);for(const s of n)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=Oc(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(o)}}function Dd(e,n,o,s,t,a){const d=[],$=t.keySet,A=t.catchall._zod,B=A.def.type;for(const me of Object.keys(n)){if($.has(me))continue;if(B==="never"){d.push(me);continue}const ae=A.run({value:n[me],issues:[]},s);ae instanceof Promise?e.push(ae.then(Ze=>$o(Ze,o,me,n))):$o(ae,o,me,n)}return d.length&&o.issues.push({code:"unrecognized_keys",keys:d,input:n,inst:a}),e.length?Promise.all(e).then(()=>o):o}const Md=E("$ZodObject",(e,n)=>{We.init(e,n);const o=ki(()=>Cd(n));tt(e._zod,"propValues",()=>{const d=n.shape,$={};for(const A in d){const B=d[A]._zod;if(B.values){$[A]??($[A]=new Set);for(const me of B.values)$[A].add(me)}}return $});const s=Qr,t=n.catchall;let a;e._zod.parse=(d,$)=>{a??(a=o.value);const A=d.value;if(!s(A))return d.issues.push({expected:"object",code:"invalid_type",input:A,inst:e}),d;d.value={};const B=[],me=a.shape;for(const ae of a.keys){const be=me[ae]._zod.run({value:A[ae],issues:[]},$);be instanceof Promise?B.push(be.then(Y=>$o(Y,d,ae,A))):$o(be,d,ae,A)}return t?Dd(B,A,d,$,o.value,e):B.length?Promise.all(B).then(()=>d):d}}),Ld=E("$ZodObjectJIT",(e,n)=>{Md.init(e,n);const o=e._zod.parse,s=ki(()=>Cd(n)),t=Ze=>{const be=new Yl(["shape","payload","ctx"]),Y=s.value,ze=ot=>{const ct=wa(ot);return`shape[${ct}]._zod.run({ value: input[${ct}], issues: [] }, ctx)`};be.write("const input = payload.value;");const Ce=Object.create(null);let st=0;for(const ot of Y.keys)Ce[ot]=`key_${st++}`;be.write("const newResult = {};");for(const ot of Y.keys){const ct=Ce[ot],Qt=wa(ot);be.write(`const ${ct} = ${ze(ot)};`),be.write(`
|
|
26
|
-
if (${
|
|
27
|
-
payload.issues = payload.issues.concat(${
|
|
22
|
+
<%s key={someKey} {...props} />`,At,Gt,Zt,Gt),ro[Gt+At]=!0)}if(Gt=null,zt!==void 0&&(o(zt),Gt=""+zt),f(Be)&&(o(Be.key),Gt=""+Be.key),"key"in Be){zt={};for(var Rn in Be)Rn!=="key"&&(zt[Rn]=Be[Rn])}else zt=Be;return Gt&&w(zt,typeof pe=="function"?pe.displayName||pe.name||"Unknown":pe),K(pe,Gt,Ir,gt,t(),zt,Zn,di)}function le(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===he&&pe._store&&(pe._store.validated=1)}var Re=Ti,he=Symbol.for("react.transitional.element"),Y=Symbol.for("react.portal"),Ie=Symbol.for("react.fragment"),Ae=Symbol.for("react.strict_mode"),pt=Symbol.for("react.profiler"),ut=Symbol.for("react.consumer"),ct=Symbol.for("react.context"),vt=Symbol.for("react.forward_ref"),or=Symbol.for("react.suspense"),Wr=Symbol.for("react.suspense_list"),Ft=Symbol.for("react.memo"),pa=Symbol.for("react.lazy"),rl=Symbol.for("react.activity"),ga=Symbol.for("react.client.reference"),eo=Re.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pn=Object.prototype.hasOwnProperty,nl=Array.isArray,Ln=console.createTask?console.createTask:function(){return null};Re={react_stack_bottom_frame:function(pe){return pe()}};var Mn,Vr={},Sr=Re.react_stack_bottom_frame.bind(Re,a)(),to=Ln(s(a)),ro={};Ei.Fragment=Ie,Ei.jsx=function(pe,Be,zt,At,gt){var Ir=1e4>eo.recentlyCreatedOwnerStacks++;return me(pe,Be,zt,!1,At,gt,Ir?Error("react-stack-top-frame"):Sr,Ir?Ln(s(pe)):to)},Ei.jsxs=function(pe,Be,zt,At,gt){var Ir=1e4>eo.recentlyCreatedOwnerStacks++;return me(pe,Be,zt,!0,At,gt,Ir?Error("react-stack-top-frame"):Sr,Ir?Ln(s(pe)):to)}})()),Ei}var ac;function Db(){return ac||(ac=1,process.env.NODE_ENV==="production"?So.exports=Ub():So.exports=Ab()),So.exports}var Lb=Db();typeof window<"u"&&Promise.resolve().then(()=>zk).then(({EncatchAppElement:e})=>{try{customElements.get("encatch-app")||customElements.define("encatch-app",e)}catch(r){console.debug("Custom element registration:",r)}});const Mb=({formData:e,cssLink:r,scale:o=1})=>Lb.jsx("encatch-app",{...e,cssLink:r,scale:o});var Pi={exports:{}};const sc=Object.freeze({status:"aborted"});function A(e,r,o){function s(w,q){var K;Object.defineProperty(w,"_zod",{value:w._zod??{},enumerable:!1}),(K=w._zod).traits??(K.traits=new Set),w._zod.traits.add(e),r(w,q);for(const me in f.prototype)me in w||Object.defineProperty(w,me,{value:f.prototype[me].bind(w)});w._zod.constr=f,w._zod.def=q}const t=o?.Parent??Object;class a extends t{}Object.defineProperty(a,"name",{value:e});function f(w){var q;const K=o?.Parent?new a:this;s(K,w),(q=K._zod).deferred??(q.deferred=[]);for(const me of K._zod.deferred)me();return K}return Object.defineProperty(f,"init",{value:s}),Object.defineProperty(f,Symbol.hasInstance,{value:w=>o?.Parent&&w instanceof o.Parent?!0:w?._zod?.traits?.has(e)}),Object.defineProperty(f,"name",{value:e}),f}const uc=Symbol("zod_brand");class jn extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Io extends Error{constructor(r){super(`Encountered unidirectional transform during encode: ${r}`),this.name="ZodEncodeError"}}const zo={};function ir(e){return e&&Object.assign(zo,e),zo}function Zb(e){return e}function Rb(e){return e}function qb(e){}function Fb(e){throw new Error}function Wb(e){}function Ga(e){const r=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,t])=>r.indexOf(+s)===-1).map(([s,t])=>t)}function ge(e,r="|"){return e.map(o=>Ve(o)).join(r)}function No(e,r){return typeof r=="bigint"?r.toString():r}function Ci(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function Tn(e){return e==null}function jo(e){const r=e.startsWith("^")?1:0,o=e.endsWith("$")?e.length-1:e.length;return e.slice(r,o)}function lc(e,r){const o=(e.toString().split(".")[1]||"").length,s=r.toString();let t=(s.split(".")[1]||"").length;if(t===0&&/\d?e-\d?/.test(s)){const q=s.match(/\d?e-(\d?)/);q?.[1]&&(t=Number.parseInt(q[1]))}const a=o>t?o:t,f=Number.parseInt(e.toFixed(a).replace(".","")),w=Number.parseInt(r.toFixed(a).replace(".",""));return f%w/10**a}const cc=Symbol("evaluating");function it(e,r,o){let s;Object.defineProperty(e,r,{get(){if(s!==cc)return s===void 0&&(s=cc,s=o()),s},set(t){Object.defineProperty(e,r,{value:t})},configurable:!0})}function To(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Er(e,r,o){Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0})}function fn(...e){const r={};for(const o of e){const s=Object.getOwnPropertyDescriptors(o);Object.assign(r,s)}return Object.defineProperties({},r)}function Vb(e){return fn(e._zod.def)}function Qb(e,r){return r?r.reduce((o,s)=>o?.[s],e):e}function Gb(e){const r=Object.keys(e),o=r.map(s=>e[s]);return Promise.all(o).then(s=>{const t={};for(let a=0;a<r.length;a++)t[r[a]]=s[a];return t})}function Jb(e=10){const r="abcdefghijklmnopqrstuvwxyz";let o="";for(let s=0;s<e;s++)o+=r[Math.floor(Math.random()*r.length)];return o}function Ja(e){return JSON.stringify(e)}const Ba="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function oi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const dc=Ci(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function On(e){if(oi(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const o=r.prototype;return!(oi(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function Oo(e){return On(e)?{...e}:Array.isArray(e)?[...e]:e}function Bb(e){let r=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&r++;return r}const Yb=e=>{const r=typeof e;switch(r){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: ${r}`)}},Eo=new Set(["string","number","symbol"]),fc=new Set(["string","number","bigint","boolean","symbol","undefined"]);function mn(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function xr(e,r,o){const s=new e._zod.constr(r??e._zod.def);return(!r||o?.parent)&&(s._zod.parent=e),s}function ae(e){const r=e;if(!r)return{};if(typeof r=="string")return{error:()=>r};if(r?.message!==void 0){if(r?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");r.error=r.message}return delete r.message,typeof r.error=="string"?{...r,error:()=>r.error}:r}function Kb(e){let r;return new Proxy({},{get(o,s,t){return r??(r=e()),Reflect.get(r,s,t)},set(o,s,t,a){return r??(r=e()),Reflect.set(r,s,t,a)},has(o,s){return r??(r=e()),Reflect.has(r,s)},deleteProperty(o,s){return r??(r=e()),Reflect.deleteProperty(r,s)},ownKeys(o){return r??(r=e()),Reflect.ownKeys(r)},getOwnPropertyDescriptor(o,s){return r??(r=e()),Reflect.getOwnPropertyDescriptor(r,s)},defineProperty(o,s,t){return r??(r=e()),Reflect.defineProperty(r,s,t)}})}function Ve(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function mc(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}const pc={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]},gc={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function vc(e,r){const o=e._zod.def,s=fn(e._zod.def,{get shape(){const t={};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(t[a]=o.shape[a])}return Er(this,"shape",t),t},checks:[]});return xr(e,s)}function hc(e,r){const o=e._zod.def,s=fn(e._zod.def,{get shape(){const t={...e._zod.def.shape};for(const a in r){if(!(a in o.shape))throw new Error(`Unrecognized key: "${a}"`);r[a]&&delete t[a]}return Er(this,"shape",t),t},checks:[]});return xr(e,s)}function bc(e,r){if(!On(r))throw new Error("Invalid input to extend: expected a plain object");const o=e._zod.def.checks;if(o&&o.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const t=fn(e._zod.def,{get shape(){const a={...e._zod.def.shape,...r};return Er(this,"shape",a),a},checks:[]});return xr(e,t)}function yc(e,r){if(!On(r))throw new Error("Invalid input to safeExtend: expected a plain object");const o={...e._zod.def,get shape(){const s={...e._zod.def.shape,...r};return Er(this,"shape",s),s},checks:e._zod.def.checks};return xr(e,o)}function $c(e,r){const o=fn(e._zod.def,{get shape(){const s={...e._zod.def.shape,...r._zod.def.shape};return Er(this,"shape",s),s},get catchall(){return r._zod.def.catchall},checks:[]});return xr(e,o)}function _c(e,r,o){const s=fn(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in t))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=e?new e({type:"optional",innerType:t[f]}):t[f])}else for(const f in t)a[f]=e?new e({type:"optional",innerType:t[f]}):t[f];return Er(this,"shape",a),a},checks:[]});return xr(r,s)}function wc(e,r,o){const s=fn(r._zod.def,{get shape(){const t=r._zod.def.shape,a={...t};if(o)for(const f in o){if(!(f in a))throw new Error(`Unrecognized key: "${f}"`);o[f]&&(a[f]=new e({type:"nonoptional",innerType:t[f]}))}else for(const f in t)a[f]=new e({type:"nonoptional",innerType:t[f]});return Er(this,"shape",a),a},checks:[]});return xr(r,s)}function En(e,r=0){if(e.aborted===!0)return!0;for(let o=r;o<e.issues.length;o++)if(e.issues[o]?.continue!==!0)return!0;return!1}function Pr(e,r){return r.map(o=>{var s;return(s=o).path??(s.path=[]),o.path.unshift(e),o})}function Ui(e){return typeof e=="string"?e:e?.message}function Cr(e,r,o){const s={...e,path:e.path??[]};if(!e.message){const t=Ui(e.inst?._zod.def?.error?.(e))??Ui(r?.error?.(e))??Ui(o.customError?.(e))??Ui(o.localeError?.(e))??"Invalid input";s.message=t}return delete s.inst,delete s.continue,r?.reportInput||delete s.input,s}function Po(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Co(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ai(...e){const[r,o,s]=e;return typeof r=="string"?{message:r,code:"custom",input:o,inst:s}:{...r}}function Hb(e){return Object.entries(e).filter(([r,o])=>Number.isNaN(Number.parseInt(r,10))).map(r=>r[1])}function kc(e){const r=atob(e),o=new Uint8Array(r.length);for(let s=0;s<r.length;s++)o[s]=r.charCodeAt(s);return o}function xc(e){let r="";for(let o=0;o<e.length;o++)r+=String.fromCharCode(e[o]);return btoa(r)}function Xb(e){const r=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-r.length%4)%4);return kc(r+o)}function ey(e){return xc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ty(e){const r=e.replace(/^0x/,"");if(r.length%2!==0)throw new Error("Invalid hex string length");const o=new Uint8Array(r.length/2);for(let s=0;s<r.length;s+=2)o[s/2]=Number.parseInt(r.slice(s,s+2),16);return o}function ry(e){return Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}class ny{constructor(...r){}}const Sc=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:gc,Class:ny,NUMBER_FORMAT_RANGES:pc,aborted:En,allowsEval:dc,assert:Wb,assertEqual:Zb,assertIs:qb,assertNever:Fb,assertNotEqual:Rb,assignProp:Er,base64ToUint8Array:kc,base64urlToUint8Array:Xb,cached:Ci,captureStackTrace:Ba,cleanEnum:Hb,cleanRegex:jo,clone:xr,cloneDef:Vb,createTransparentProxy:Kb,defineLazy:it,esc:Ja,escapeRegex:mn,extend:bc,finalizeIssue:Cr,floatSafeRemainder:lc,getElementAtPath:Qb,getEnumValues:Ga,getLengthableOrigin:Co,getParsedType:Yb,getSizableOrigin:Po,hexToUint8Array:ty,isObject:oi,isPlainObject:On,issue:ai,joinValues:ge,jsonStringifyReplacer:No,merge:$c,mergeDefs:fn,normalizeParams:ae,nullish:Tn,numKeys:Bb,objectClone:To,omit:hc,optionalKeys:mc,partial:_c,pick:vc,prefixIssues:Pr,primitiveTypes:fc,promiseAllObject:Gb,propertyKeyTypes:Eo,randomString:Jb,required:wc,safeExtend:yc,shallowClone:Oo,stringifyPrimitive:Ve,uint8ArrayToBase64:xc,uint8ArrayToBase64url:ey,uint8ArrayToHex:ry,unwrapMessage:Ui},Symbol.toStringTag,{value:"Module"})),Ic=(e,r)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:r,enumerable:!1}),e.message=JSON.stringify(r,No,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ya=A("$ZodError",Ic),gr=A("$ZodError",Ic,{Parent:Error});function Ka(e,r=o=>o.message){const o={},s=[];for(const t of e.issues)t.path.length>0?(o[t.path[0]]=o[t.path[0]]||[],o[t.path[0]].push(r(t))):s.push(r(t));return{formErrors:s,fieldErrors:o}}function Ha(e,r){const o=r||function(a){return a.message},s={_errors:[]},t=a=>{for(const f of a.issues)if(f.code==="invalid_union"&&f.errors.length)f.errors.map(w=>t({issues:w}));else if(f.code==="invalid_key")t({issues:f.issues});else if(f.code==="invalid_element")t({issues:f.issues});else if(f.path.length===0)s._errors.push(o(f));else{let w=s,q=0;for(;q<f.path.length;){const K=f.path[q];q===f.path.length-1?(w[K]=w[K]||{_errors:[]},w[K]._errors.push(o(f))):w[K]=w[K]||{_errors:[]},w=w[K],q++}}};return t(e),s}function zc(e,r){const o=r||function(a){return a.message},s={errors:[]},t=(a,f=[])=>{var w,q;for(const K of a.issues)if(K.code==="invalid_union"&&K.errors.length)K.errors.map(me=>t({issues:me},K.path));else if(K.code==="invalid_key")t({issues:K.issues},K.path);else if(K.code==="invalid_element")t({issues:K.issues},K.path);else{const me=[...f,...K.path];if(me.length===0){s.errors.push(o(K));continue}let le=s,Re=0;for(;Re<me.length;){const he=me[Re],Y=Re===me.length-1;typeof he=="string"?(le.properties??(le.properties={}),(w=le.properties)[he]??(w[he]={errors:[]}),le=le.properties[he]):(le.items??(le.items=[]),(q=le.items)[he]??(q[he]={errors:[]}),le=le.items[he]),Y&&le.errors.push(o(K)),Re++}}};return t(e),s}function Nc(e){const r=[],o=e.map(s=>typeof s=="object"?s.key:s);for(const s of o)typeof s=="number"?r.push(`[${s}]`):typeof s=="symbol"?r.push(`[${JSON.stringify(String(s))}]`):/[^\w$]/.test(s)?r.push(`[${JSON.stringify(s)}]`):(r.length&&r.push("."),r.push(s));return r.join("")}function jc(e){const r=[],o=[...e.issues].sort((s,t)=>(s.path??[]).length-(t.path??[]).length);for(const s of o)r.push(`✖ ${s.message}`),s.path?.length&&r.push(` → at ${Nc(s.path)}`);return r.join(`
|
|
23
|
+
`)}const Ai=e=>(r,o,s,t)=>{const a=s?Object.assign(s,{async:!1}):{async:!1},f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise)throw new jn;if(f.issues.length){const w=new(t?.Err??e)(f.issues.map(q=>Cr(q,a,ir())));throw Ba(w,t?.callee),w}return f.value},Xa=Ai(gr),Di=e=>async(r,o,s,t)=>{const a=s?Object.assign(s,{async:!0}):{async:!0};let f=r._zod.run({value:o,issues:[]},a);if(f instanceof Promise&&(f=await f),f.issues.length){const w=new(t?.Err??e)(f.issues.map(q=>Cr(q,a,ir())));throw Ba(w,t?.callee),w}return f.value},es=Di(gr),Li=e=>(r,o,s)=>{const t=s?{...s,async:!1}:{async:!1},a=r._zod.run({value:o,issues:[]},t);if(a instanceof Promise)throw new jn;return a.issues.length?{success:!1,error:new(e??Ya)(a.issues.map(f=>Cr(f,t,ir())))}:{success:!0,data:a.value}},Tc=Li(gr),Mi=e=>async(r,o,s)=>{const t=s?Object.assign(s,{async:!0}):{async:!0};let a=r._zod.run({value:o,issues:[]},t);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(f=>Cr(f,t,ir())))}:{success:!0,data:a.value}},Oc=Mi(gr),ts=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ai(e)(r,o,t)},iy=ts(gr),rs=e=>(r,o,s)=>Ai(e)(r,o,s),oy=rs(gr),ns=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Di(e)(r,o,t)},ay=ns(gr),is=e=>async(r,o,s)=>Di(e)(r,o,s),sy=is(gr),os=e=>(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Li(e)(r,o,t)},uy=os(gr),as=e=>(r,o,s)=>Li(e)(r,o,s),ly=as(gr),ss=e=>async(r,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Mi(e)(r,o,t)},cy=ss(gr),us=e=>async(r,o,s)=>Mi(e)(r,o,s),dy=us(gr),Ec=/^[cC][^\s-]{8,}$/,Pc=/^[0-9a-z]+$/,Cc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Uc=/^[0-9a-vA-V]{20}$/,Ac=/^[A-Za-z0-9]{27}$/,Dc=/^[a-zA-Z0-9_-]{21}$/,Lc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,fy=/^[-+]?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)?)??$/,Mc=/^([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})$/,si=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)$/,my=si(4),py=si(6),gy=si(7),Zc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,vy=/^[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])?)*$/,hy=/^(([^<>()\[\]\\.,;:\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,}))$/,Rc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,by=Rc,yy=/^[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])?)*$/,$y="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function qc(){return new RegExp($y,"u")}const Fc=/^(?:(?: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])$/,Wc=/^(([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}|:))$/,Vc=/^((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])$/,Qc=/^(([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])$/,Gc=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ls=/^[A-Za-z0-9_-]*$/,cs=/^(?=.{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])?)*\.?$/,Jc=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Bc=/^\+(?:[0-9]){6,14}[0-9]$/,Yc="(?:(?:\\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])))",Kc=new RegExp(`^${Yc}$`);function Hc(e){const r="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${r}`:e.precision===0?`${r}:[0-5]\\d`:`${r}:[0-5]\\d\\.\\d{${e.precision}}`:`${r}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Xc(e){return new RegExp(`^${Hc(e)}$`)}function ed(e){const r=Hc({precision:e.precision}),o=["Z"];e.local&&o.push(""),e.offset&&o.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${r}(?:${o.join("|")})`;return new RegExp(`^${Yc}T(?:${s})$`)}const td=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},rd=/^-?\d+n?$/,nd=/^-?\d+$/,id=/^-?\d+(?:\.\d+)?/,od=/^(?:true|false)$/i,ad=/^null$/i,sd=/^undefined$/i,ud=/^[^A-Z]*$/,ld=/^[^a-z]*$/,cd=/^[0-9a-fA-F]*$/;function Zi(e,r){return new RegExp(`^[A-Za-z0-9+/]{${e}}${r}$`)}function Ri(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const ds=Object.freeze(Object.defineProperty({__proto__:null,base64:Gc,base64url:ls,bigint:rd,boolean:od,browserEmail:yy,cidrv4:Vc,cidrv6:Qc,cuid:Ec,cuid2:Pc,date:Kc,datetime:ed,domain:Jc,duration:Lc,e164:Bc,email:Zc,emoji:qc,extendedDuration:fy,guid:Mc,hex:cd,hostname:cs,html5Email:vy,idnEmail:by,integer:nd,ipv4:Fc,ipv6:Wc,ksuid:Ac,lowercase:ud,md5_base64:Zi(22,"=="),md5_base64url:Ri(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:Dc,null:ad,number:id,rfc5322Email:hy,sha1_base64:Zi(27,"="),sha1_base64url:Ri(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:Zi(43,"="),sha256_base64url:Ri(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:Zi(64,""),sha384_base64url:Ri(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:Zi(86,"=="),sha512_base64url:Ri(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:td,time:Xc,ulid:Cc,undefined:sd,unicodeEmail:Rc,uppercase:ld,uuid:si,uuid4:my,uuid6:py,uuid7:gy,xid:Uc},Symbol.toStringTag,{value:"Module"})),Ct=A("$ZodCheck",(e,r)=>{var o;e._zod??(e._zod={}),e._zod.def=r,(o=e._zod).onattach??(o.onattach=[])}),dd={number:"number",bigint:"bigint",object:"date"},fs=A("$ZodCheckLessThan",(e,r)=>{Ct.init(e,r);const o=dd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;r.value<a&&(r.inclusive?t.maximum=r.value:t.exclusiveMaximum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value<=r.value:s.value<r.value)||s.issues.push({origin:o,code:"too_big",maximum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),ms=A("$ZodCheckGreaterThan",(e,r)=>{Ct.init(e,r);const o=dd[typeof r.value];e._zod.onattach.push(s=>{const t=s._zod.bag,a=(r.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;r.value>a&&(r.inclusive?t.minimum=r.value:t.exclusiveMinimum=r.value)}),e._zod.check=s=>{(r.inclusive?s.value>=r.value:s.value>r.value)||s.issues.push({origin:o,code:"too_small",minimum:r.value,input:s.value,inclusive:r.inclusive,inst:e,continue:!r.abort})}}),fd=A("$ZodCheckMultipleOf",(e,r)=>{Ct.init(e,r),e._zod.onattach.push(o=>{var s;(s=o._zod.bag).multipleOf??(s.multipleOf=r.value)}),e._zod.check=o=>{if(typeof o.value!=typeof r.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof o.value=="bigint"?o.value%r.value===BigInt(0):lc(o.value,r.value)===0)||o.issues.push({origin:typeof o.value,code:"not_multiple_of",divisor:r.value,input:o.value,inst:e,continue:!r.abort})}}),md=A("$ZodCheckNumberFormat",(e,r)=>{Ct.init(e,r),r.format=r.format||"float64";const o=r.format?.includes("int"),s=o?"int":"number",[t,a]=pc[r.format];e._zod.onattach.push(f=>{const w=f._zod.bag;w.format=r.format,w.minimum=t,w.maximum=a,o&&(w.pattern=nd)}),e._zod.check=f=>{const w=f.value;if(o){if(!Number.isInteger(w)){f.issues.push({expected:s,format:r.format,code:"invalid_type",continue:!1,input:w,inst:e});return}if(!Number.isSafeInteger(w)){w>0?f.issues.push({input:w,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort}):f.issues.push({input:w,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,continue:!r.abort});return}}w<t&&f.issues.push({origin:"number",input:w,code:"too_small",minimum:t,inclusive:!0,inst:e,continue:!r.abort}),w>a&&f.issues.push({origin:"number",input:w,code:"too_big",maximum:a,inst:e})}}),pd=A("$ZodCheckBigIntFormat",(e,r)=>{Ct.init(e,r);const[o,s]=gc[r.format];e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,a.minimum=o,a.maximum=s}),e._zod.check=t=>{const a=t.value;a<o&&t.issues.push({origin:"bigint",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!r.abort}),a>s&&t.issues.push({origin:"bigint",input:a,code:"too_big",maximum:s,inst:e})}}),gd=A("$ZodCheckMaxSize",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;t.size<=r.maximum||s.issues.push({origin:Po(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),vd=A("$ZodCheckMinSize",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;t.size>=r.minimum||s.issues.push({origin:Po(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),hd=A("$ZodCheckSizeEquals",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(t)&&t.size!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.size,t.maximum=r.size,t.size=r.size}),e._zod.check=s=>{const t=s.value,a=t.size;if(a===r.size)return;const f=a>r.size;s.issues.push({origin:Po(t),...f?{code:"too_big",maximum:r.size}:{code:"too_small",minimum:r.size},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),bd=A("$ZodCheckMaxLength",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(s._zod.bag.maximum=r.maximum)}),e._zod.check=s=>{const t=s.value;if(t.length<=r.maximum)return;const f=Co(t);s.issues.push({origin:f,code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),yd=A("$ZodCheckMinLength",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(s._zod.bag.minimum=r.minimum)}),e._zod.check=s=>{const t=s.value;if(t.length>=r.minimum)return;const f=Co(t);s.issues.push({origin:f,code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:e,continue:!r.abort})}}),$d=A("$ZodCheckLengthEquals",(e,r)=>{var o;Ct.init(e,r),(o=e._zod.def).when??(o.when=s=>{const t=s.value;return!Tn(t)&&t.length!==void 0}),e._zod.onattach.push(s=>{const t=s._zod.bag;t.minimum=r.length,t.maximum=r.length,t.length=r.length}),e._zod.check=s=>{const t=s.value,a=t.length;if(a===r.length)return;const f=Co(t),w=a>r.length;s.issues.push({origin:f,...w?{code:"too_big",maximum:r.length}:{code:"too_small",minimum:r.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!r.abort})}}),qi=A("$ZodCheckStringFormat",(e,r)=>{var o,s;Ct.init(e,r),e._zod.onattach.push(t=>{const a=t._zod.bag;a.format=r.format,r.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(r.pattern))}),r.pattern?(o=e._zod).check??(o.check=t=>{r.pattern.lastIndex=0,!r.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:r.format,input:t.value,...r.pattern?{pattern:r.pattern.toString()}:{},inst:e,continue:!r.abort})}):(s=e._zod).check??(s.check=()=>{})}),_d=A("$ZodCheckRegex",(e,r)=>{qi.init(e,r),e._zod.check=o=>{r.pattern.lastIndex=0,!r.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:"regex",input:o.value,pattern:r.pattern.toString(),inst:e,continue:!r.abort})}}),wd=A("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=ud),qi.init(e,r)}),kd=A("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=ld),qi.init(e,r)}),xd=A("$ZodCheckIncludes",(e,r)=>{Ct.init(e,r);const o=mn(r.includes),s=new RegExp(typeof r.position=="number"?`^.{${r.position}}${o}`:o);r.pattern=s,e._zod.onattach.push(t=>{const a=t._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=t=>{t.value.includes(r.includes,r.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:r.includes,input:t.value,inst:e,continue:!r.abort})}}),Sd=A("$ZodCheckStartsWith",(e,r)=>{Ct.init(e,r);const o=new RegExp(`^${mn(r.prefix)}.*`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.startsWith(r.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:r.prefix,input:s.value,inst:e,continue:!r.abort})}}),Id=A("$ZodCheckEndsWith",(e,r)=>{Ct.init(e,r);const o=new RegExp(`.*${mn(r.suffix)}$`);r.pattern??(r.pattern=o),e._zod.onattach.push(s=>{const t=s._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(o)}),e._zod.check=s=>{s.value.endsWith(r.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:r.suffix,input:s.value,inst:e,continue:!r.abort})}});function zd(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues))}const Nd=A("$ZodCheckProperty",(e,r)=>{Ct.init(e,r),e._zod.check=o=>{const s=r.schema._zod.run({value:o.value[r.property],issues:[]},{});if(s instanceof Promise)return s.then(t=>zd(t,o,r.property));zd(s,o,r.property)}}),jd=A("$ZodCheckMimeType",(e,r)=>{Ct.init(e,r);const o=new Set(r.mime);e._zod.onattach.push(s=>{s._zod.bag.mime=r.mime}),e._zod.check=s=>{o.has(s.value.type)||s.issues.push({code:"invalid_value",values:r.mime,input:s.value.type,inst:e,continue:!r.abort})}}),Td=A("$ZodCheckOverwrite",(e,r)=>{Ct.init(e,r),e._zod.check=o=>{o.value=r.tx(o.value)}});class Od{constructor(r=[]){this.content=[],this.indent=0,this&&(this.args=r)}indented(r){this.indent+=1,r(this),this.indent-=1}write(r){if(typeof r=="function"){r(this,{execution:"sync"}),r(this,{execution:"async"});return}const s=r.split(`
|
|
24
|
+
`).filter(f=>f),t=Math.min(...s.map(f=>f.length-f.trimStart().length)),a=s.map(f=>f.slice(t)).map(f=>" ".repeat(this.indent*2)+f);for(const f of a)this.content.push(f)}compile(){const r=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new r(...o,t.join(`
|
|
25
|
+
`))}}const Ed={major:4,minor:1,patch:8},Ge=A("$ZodType",(e,r)=>{var o;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=Ed;const s=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&s.unshift(e);for(const t of s)for(const a of t._zod.onattach)a(e);if(s.length===0)(o=e._zod).deferred??(o.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const t=(f,w,q)=>{let K=En(f),me;for(const le of w){if(le._zod.def.when){if(!le._zod.def.when(f))continue}else if(K)continue;const Re=f.issues.length,he=le._zod.check(f);if(he instanceof Promise&&q?.async===!1)throw new jn;if(me||he instanceof Promise)me=(me??Promise.resolve()).then(async()=>{await he,f.issues.length!==Re&&(K||(K=En(f,Re)))});else{if(f.issues.length===Re)continue;K||(K=En(f,Re))}}return me?me.then(()=>f):f},a=(f,w,q)=>{if(En(f))return f.aborted=!0,f;const K=t(w,s,q);if(K instanceof Promise){if(q.async===!1)throw new jn;return K.then(me=>e._zod.parse(me,q))}return e._zod.parse(K,q)};e._zod.run=(f,w)=>{if(w.skipChecks)return e._zod.parse(f,w);if(w.direction==="backward"){const K=e._zod.parse({value:f.value,issues:[]},{...w,skipChecks:!0});return K instanceof Promise?K.then(me=>a(me,f,w)):a(K,f,w)}const q=e._zod.parse(f,w);if(q instanceof Promise){if(w.async===!1)throw new jn;return q.then(K=>t(K,s,w))}return t(q,s,w)}}e["~standard"]={validate:t=>{try{const a=Tc(e,t);return a.success?{value:a.data}:{issues:a.error?.issues}}catch{return Oc(e,t).then(f=>f.success?{value:f.data}:{issues:f.error?.issues})}},vendor:"zod",version:1}}),Fi=A("$ZodString",(e,r)=>{Ge.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??td(e._zod.bag),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=String(o.value)}catch{}return typeof o.value=="string"||o.issues.push({expected:"string",code:"invalid_type",input:o.value,inst:e}),o}}),It=A("$ZodStringFormat",(e,r)=>{qi.init(e,r),Fi.init(e,r)}),Pd=A("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Mc),It.init(e,r)}),Cd=A("$ZodUUID",(e,r)=>{if(r.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[r.version];if(s===void 0)throw new Error(`Invalid UUID version: "${r.version}"`);r.pattern??(r.pattern=si(s))}else r.pattern??(r.pattern=si());It.init(e,r)}),Ud=A("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Zc),It.init(e,r)}),Ad=A("$ZodURL",(e,r)=>{It.init(e,r),e._zod.check=o=>{try{const s=o.value.trim(),t=new URL(s);r.hostname&&(r.hostname.lastIndex=0,r.hostname.test(t.hostname)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:cs.source,input:o.value,inst:e,continue:!r.abort})),r.protocol&&(r.protocol.lastIndex=0,r.protocol.test(t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol)||o.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:r.protocol.source,input:o.value,inst:e,continue:!r.abort})),r.normalize?o.value=t.href:o.value=s;return}catch{o.issues.push({code:"invalid_format",format:"url",input:o.value,inst:e,continue:!r.abort})}}}),Dd=A("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=qc()),It.init(e,r)}),Ld=A("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Dc),It.init(e,r)}),Md=A("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Ec),It.init(e,r)}),Zd=A("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=Pc),It.init(e,r)}),Rd=A("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Cc),It.init(e,r)}),qd=A("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Uc),It.init(e,r)}),Fd=A("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=Ac),It.init(e,r)}),Wd=A("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=ed(r)),It.init(e,r)}),Vd=A("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=Kc),It.init(e,r)}),Qd=A("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=Xc(r)),It.init(e,r)}),Gd=A("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Lc),It.init(e,r)}),Jd=A("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Fc),It.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv4"})}),Bd=A("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Wc),It.init(e,r),e._zod.onattach.push(o=>{const s=o._zod.bag;s.format="ipv6"}),e._zod.check=o=>{try{new URL(`http://[${o.value}]`)}catch{o.issues.push({code:"invalid_format",format:"ipv6",input:o.value,inst:e,continue:!r.abort})}}}),Yd=A("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Vc),It.init(e,r)}),Kd=A("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Qc),It.init(e,r),e._zod.check=o=>{const s=o.value.split("/");try{if(s.length!==2)throw new Error;const[t,a]=s;if(!a)throw new Error;const f=Number(a);if(`${f}`!==a)throw new Error;if(f<0||f>128)throw new Error;new URL(`http://[${t}]`)}catch{o.issues.push({code:"invalid_format",format:"cidrv6",input:o.value,inst:e,continue:!r.abort})}}});function ps(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Hd=A("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=Gc),It.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64"}),e._zod.check=o=>{ps(o.value)||o.issues.push({code:"invalid_format",format:"base64",input:o.value,inst:e,continue:!r.abort})}});function Xd(e){if(!ls.test(e))return!1;const r=e.replace(/[-_]/g,s=>s==="-"?"+":"/"),o=r.padEnd(Math.ceil(r.length/4)*4,"=");return ps(o)}const ef=A("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=ls),It.init(e,r),e._zod.onattach.push(o=>{o._zod.bag.contentEncoding="base64url"}),e._zod.check=o=>{Xd(o.value)||o.issues.push({code:"invalid_format",format:"base64url",input:o.value,inst:e,continue:!r.abort})}}),tf=A("$ZodE164",(e,r)=>{r.pattern??(r.pattern=Bc),It.init(e,r)});function rf(e,r=null){try{const o=e.split(".");if(o.length!==3)return!1;const[s]=o;if(!s)return!1;const t=JSON.parse(atob(s));return!("typ"in t&&t?.typ!=="JWT"||!t.alg||r&&(!("alg"in t)||t.alg!==r))}catch{return!1}}const nf=A("$ZodJWT",(e,r)=>{It.init(e,r),e._zod.check=o=>{rf(o.value,r.alg)||o.issues.push({code:"invalid_format",format:"jwt",input:o.value,inst:e,continue:!r.abort})}}),of=A("$ZodCustomStringFormat",(e,r)=>{It.init(e,r),e._zod.check=o=>{r.fn(o.value)||o.issues.push({code:"invalid_format",format:r.format,input:o.value,inst:e,continue:!r.abort})}}),gs=A("$ZodNumber",(e,r)=>{Ge.init(e,r),e._zod.pattern=e._zod.bag.pattern??id,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=Number(o.value)}catch{}const t=o.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return o;const a=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return o.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...a?{received:a}:{}}),o}}),af=A("$ZodNumber",(e,r)=>{md.init(e,r),gs.init(e,r)}),vs=A("$ZodBoolean",(e,r)=>{Ge.init(e,r),e._zod.pattern=od,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=!!o.value}catch{}const t=o.value;return typeof t=="boolean"||o.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),o}}),hs=A("$ZodBigInt",(e,r)=>{Ge.init(e,r),e._zod.pattern=rd,e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=BigInt(o.value)}catch{}return typeof o.value=="bigint"||o.issues.push({expected:"bigint",code:"invalid_type",input:o.value,inst:e}),o}}),sf=A("$ZodBigInt",(e,r)=>{pd.init(e,r),hs.init(e,r)}),uf=A("$ZodSymbol",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t=="symbol"||o.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),o}}),lf=A("$ZodUndefined",(e,r)=>{Ge.init(e,r),e._zod.pattern=sd,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),o}}),cf=A("$ZodNull",(e,r)=>{Ge.init(e,r),e._zod.pattern=ad,e._zod.values=new Set([null]),e._zod.parse=(o,s)=>{const t=o.value;return t===null||o.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),o}}),df=A("$ZodAny",(e,r)=>{Ge.init(e,r),e._zod.parse=o=>o}),ff=A("$ZodUnknown",(e,r)=>{Ge.init(e,r),e._zod.parse=o=>o}),mf=A("$ZodNever",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>(o.issues.push({expected:"never",code:"invalid_type",input:o.value,inst:e}),o)}),pf=A("$ZodVoid",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return typeof t>"u"||o.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),o}}),gf=A("$ZodDate",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{if(r.coerce)try{o.value=new Date(o.value)}catch{}const t=o.value,a=t instanceof Date;return a&&!Number.isNaN(t.getTime())||o.issues.push({expected:"date",code:"invalid_type",input:t,...a?{received:"Invalid Date"}:{},inst:e}),o}});function vf(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues)),r.value[o]=e.value}const hf=A("$ZodArray",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!Array.isArray(t))return o.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),o;o.value=Array(t.length);const a=[];for(let f=0;f<t.length;f++){const w=t[f],q=r.element._zod.run({value:w,issues:[]},s);q instanceof Promise?a.push(q.then(K=>vf(K,o,f))):vf(q,o,f)}return a.length?Promise.all(a).then(()=>o):o}});function Uo(e,r,o,s){e.issues.length&&r.issues.push(...Pr(o,e.issues)),e.value===void 0?o in s&&(r.value[o]=void 0):r.value[o]=e.value}function bf(e){const r=Object.keys(e.shape);for(const s of r)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const o=mc(e.shape);return{...e,keys:r,keySet:new Set(r),numKeys:r.length,optionalKeys:new Set(o)}}function yf(e,r,o,s,t,a){const f=[],w=t.keySet,q=t.catchall._zod,K=q.def.type;for(const me of Object.keys(r)){if(w.has(me))continue;if(K==="never"){f.push(me);continue}const le=q.run({value:r[me],issues:[]},s);le instanceof Promise?e.push(le.then(Re=>Uo(Re,o,me,r))):Uo(le,o,me,r)}return f.length&&o.issues.push({code:"unrecognized_keys",keys:f,input:r,inst:a}),e.length?Promise.all(e).then(()=>o):o}const $f=A("$ZodObject",(e,r)=>{Ge.init(e,r);const o=Ci(()=>bf(r));it(e._zod,"propValues",()=>{const f=r.shape,w={};for(const q in f){const K=f[q]._zod;if(K.values){w[q]??(w[q]=new Set);for(const me of K.values)w[q].add(me)}}return w});const s=oi,t=r.catchall;let a;e._zod.parse=(f,w)=>{a??(a=o.value);const q=f.value;if(!s(q))return f.issues.push({expected:"object",code:"invalid_type",input:q,inst:e}),f;f.value={};const K=[],me=a.shape;for(const le of a.keys){const he=me[le]._zod.run({value:q[le],issues:[]},w);he instanceof Promise?K.push(he.then(Y=>Uo(Y,f,le,q))):Uo(he,f,le,q)}return t?yf(K,q,f,w,o.value,e):K.length?Promise.all(K).then(()=>f):f}}),_f=A("$ZodObjectJIT",(e,r)=>{$f.init(e,r);const o=e._zod.parse,s=Ci(()=>bf(r)),t=Re=>{const he=new Od(["shape","payload","ctx"]),Y=s.value,Ie=ct=>{const vt=Ja(ct);return`shape[${vt}]._zod.run({ value: input[${vt}], issues: [] }, ctx)`};he.write("const input = payload.value;");const Ae=Object.create(null);let pt=0;for(const ct of Y.keys)Ae[ct]=`key_${pt++}`;he.write("const newResult = {};");for(const ct of Y.keys){const vt=Ae[ct],or=Ja(ct);he.write(`const ${vt} = ${Ie(ct)};`),he.write(`
|
|
26
|
+
if (${vt}.issues.length) {
|
|
27
|
+
payload.issues = payload.issues.concat(${vt}.issues.map(iss => ({
|
|
28
28
|
...iss,
|
|
29
|
-
path: iss.path ? [${
|
|
29
|
+
path: iss.path ? [${or}, ...iss.path] : [${or}]
|
|
30
30
|
})));
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
if (${
|
|
35
|
-
if (${
|
|
36
|
-
newResult[${
|
|
34
|
+
if (${vt}.value === undefined) {
|
|
35
|
+
if (${or} in input) {
|
|
36
|
+
newResult[${or}] = undefined;
|
|
37
37
|
}
|
|
38
38
|
} else {
|
|
39
|
-
newResult[${
|
|
39
|
+
newResult[${or}] = ${vt}.value;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
`)}be.write("payload.value = newResult;"),be.write("return payload;");const rt=be.compile();return(ot,ct)=>rt(Ze,ot,ct)};let a;const d=Qr,$=!fo.jitless,B=$&&jc.value,me=n.catchall;let ae;e._zod.parse=(Ze,be)=>{ae??(ae=s.value);const Y=Ze.value;return d(Y)?$&&B&&be?.async===!1&&be.jitless!==!0?(a||(a=t(n.shape)),Ze=a(Ze,be),me?Dd([],Y,Ze,be,ae,e):Ze):o(Ze,be):(Ze.issues.push({expected:"object",code:"invalid_type",input:Y,inst:e}),Ze)}});function Ad(e,n,o,s){for(const a of e)if(a.issues.length===0)return n.value=a.value,n;const t=e.filter(a=>!vr(a));return t.length===1?(n.value=t[0].value,t[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:o,errors:e.map(a=>a.issues.map(d=>wn(d,s,Wt())))}),n)}const Ja=E("$ZodUnion",(e,n)=>{We.init(e,n),tt(e._zod,"optin",()=>n.options.some(t=>t._zod.optin==="optional")?"optional":void 0),tt(e._zod,"optout",()=>n.options.some(t=>t._zod.optout==="optional")?"optional":void 0),tt(e._zod,"values",()=>{if(n.options.every(t=>t._zod.values))return new Set(n.options.flatMap(t=>Array.from(t._zod.values)))}),tt(e._zod,"pattern",()=>{if(n.options.every(t=>t._zod.pattern)){const t=n.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>po(a.source)).join("|")})$`)}});const o=n.options.length===1,s=n.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return s(t,a);let d=!1;const $=[];for(const A of n.options){const B=A._zod.run({value:t.value,issues:[]},a);if(B instanceof Promise)$.push(B),d=!0;else{if(B.issues.length===0)return B;$.push(B)}}return d?Promise.all($).then(A=>Ad(A,t,e,a)):Ad($,t,e,a)}}),Zd=E("$ZodDiscriminatedUnion",(e,n)=>{Ja.init(e,n);const o=e._zod.parse;tt(e._zod,"propValues",()=>{const t={};for(const a of n.options){const d=a._zod.propValues;if(!d||Object.keys(d).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(a)}"`);for(const[$,A]of Object.entries(d)){t[$]||(t[$]=new Set);for(const B of A)t[$].add(B)}}return t});const s=ki(()=>{const t=n.options,a=new Map;for(const d of t){const $=d._zod.propValues?.[n.discriminator];if(!$||$.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(d)}"`);for(const A of $){if(a.has(A))throw new Error(`Duplicate discriminator value "${String(A)}"`);a.set(A,d)}}return a});e._zod.parse=(t,a)=>{const d=t.value;if(!Qr(d))return t.issues.push({code:"invalid_type",expected:"object",input:d,inst:e}),t;const $=s.value.get(d?.[n.discriminator]);return $?$._zod.run(t,a):n.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,input:d,path:[n.discriminator],inst:e}),t)}}),qd=E("$ZodIntersection",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value,a=n.left._zod.run({value:t,issues:[]},s),d=n.right._zod.run({value:t,issues:[]},s);return a instanceof Promise||d instanceof Promise?Promise.all([a,d]).then(([A,B])=>Rd(o,A,B)):Rd(o,a,d)}});function Va(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(gr(e)&&gr(n)){const o=Object.keys(n),s=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...n};for(const a of s){const d=Va(e[a],n[a]);if(!d.valid)return{valid:!1,mergeErrorPath:[a,...d.mergeErrorPath]};t[a]=d.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const t=e[s],a=n[s],d=Va(t,a);if(!d.valid)return{valid:!1,mergeErrorPath:[s,...d.mergeErrorPath]};o.push(d.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function Rd(e,n,o){if(n.issues.length&&e.issues.push(...n.issues),o.issues.length&&e.issues.push(...o.issues),vr(e))return e;const s=Va(n.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const Ya=E("$ZodTuple",(e,n)=>{We.init(e,n);const o=n.items,s=o.length-[...o].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,a)=>{const d=t.value;if(!Array.isArray(d))return t.issues.push({input:d,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const $=[];if(!n.rest){const B=d.length>o.length,me=d.length<s-1;if(B||me)return t.issues.push({...B?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:d,inst:e,origin:"array"}),t}let A=-1;for(const B of o){if(A++,A>=d.length&&A>=s)continue;const me=B._zod.run({value:d[A],issues:[]},a);me instanceof Promise?$.push(me.then(ae=>_o(ae,t,A))):_o(me,t,A)}if(n.rest){const B=d.slice(o.length);for(const me of B){A++;const ae=n.rest._zod.run({value:me,issues:[]},a);ae instanceof Promise?$.push(ae.then(Ze=>_o(Ze,t,A))):_o(ae,t,A)}}return $.length?Promise.all($).then(()=>t):t}});function _o(e,n,o){e.issues.length&&n.issues.push(...kn(o,e.issues)),n.value[o]=e.value}const Fd=E("$ZodRecord",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;if(!gr(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;const a=[];if(n.keyType._zod.values){const d=n.keyType._zod.values;o.value={};for(const A of d)if(typeof A=="string"||typeof A=="number"||typeof A=="symbol"){const B=n.valueType._zod.run({value:t[A],issues:[]},s);B instanceof Promise?a.push(B.then(me=>{me.issues.length&&o.issues.push(...kn(A,me.issues)),o.value[A]=me.value})):(B.issues.length&&o.issues.push(...kn(A,B.issues)),o.value[A]=B.value)}let $;for(const A in t)d.has(A)||($=$??[],$.push(A));$&&$.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:$})}else{o.value={};for(const d of Reflect.ownKeys(t)){if(d==="__proto__")continue;const $=n.keyType._zod.run({value:d,issues:[]},s);if($ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if($.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:$.issues.map(B=>wn(B,s,Wt())),input:d,path:[d],inst:e}),o.value[$.value]=$.value;continue}const A=n.valueType._zod.run({value:t[d],issues:[]},s);A instanceof Promise?a.push(A.then(B=>{B.issues.length&&o.issues.push(...kn(d,B.issues)),o.value[$.value]=B.value})):(A.issues.length&&o.issues.push(...kn(d,A.issues)),o.value[$.value]=A.value)}}return a.length?Promise.all(a).then(()=>o):o}}),Wd=E("$ZodMap",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;const a=[];o.value=new Map;for(const[d,$]of t){const A=n.keyType._zod.run({value:d,issues:[]},s),B=n.valueType._zod.run({value:$,issues:[]},s);A instanceof Promise||B instanceof Promise?a.push(Promise.all([A,B]).then(([me,ae])=>{Qd(me,ae,o,d,t,e,s)})):Qd(A,B,o,d,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Qd(e,n,o,s,t,a,d){e.issues.length&&(ho.has(typeof s)?o.issues.push(...kn(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map($=>wn($,d,Wt()))})),n.issues.length&&(ho.has(typeof s)?o.issues.push(...kn(s,n.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:n.issues.map($=>wn($,d,Wt()))})),o.value.set(e.value,n.value)}const Gd=E("$ZodSet",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;const a=[];o.value=new Set;for(const d of t){const $=n.valueType._zod.run({value:d,issues:[]},s);$ instanceof Promise?a.push($.then(A=>Jd(A,o))):Jd($,o)}return a.length?Promise.all(a).then(()=>o):o}});function Jd(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}const Vd=E("$ZodEnum",(e,n)=>{We.init(e,n);const o=ka(n.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>ho.has(typeof t)).map(t=>typeof t=="string"?rr(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{const d=t.value;return s.has(d)||t.issues.push({code:"invalid_value",values:o,input:d,inst:e}),t}}),Yd=E("$ZodLiteral",(e,n)=>{if(We.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(n.values),e._zod.pattern=new RegExp(`^(${n.values.map(o=>typeof o=="string"?rr(o):o?rr(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const t=o.value;return e._zod.values.has(t)||o.issues.push({code:"invalid_value",values:n.values,input:t,inst:e}),o}}),Bd=E("$ZodFile",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{const t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),Kd=E("$ZodTransform",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new lo(e.constructor.name);const t=n.transform(o.value,o);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(d=>(o.value=d,o));if(t instanceof Promise)throw new mr;return o.value=t,o}});function Hd(e,n){return e.issues.length&&n===void 0?{issues:[],value:void 0}:e}const Xd=E("$ZodOptional",(e,n)=>{We.init(e,n),e._zod.optin="optional",e._zod.optout="optional",tt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),tt(e._zod,"pattern",()=>{const o=n.innerType._zod.pattern;return o?new RegExp(`^(${po(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(n.innerType._zod.optin==="optional"){const t=n.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Hd(a,o.value)):Hd(t,o.value)}return o.value===void 0?o:n.innerType._zod.run(o,s)}}),ef=E("$ZodNullable",(e,n)=>{We.init(e,n),tt(e._zod,"optin",()=>n.innerType._zod.optin),tt(e._zod,"optout",()=>n.innerType._zod.optout),tt(e._zod,"pattern",()=>{const o=n.innerType._zod.pattern;return o?new RegExp(`^(${po(o.source)}|null)$`):void 0}),tt(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:n.innerType._zod.run(o,s)}),tf=E("$ZodDefault",(e,n)=>{We.init(e,n),e._zod.optin="optional",tt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);if(o.value===void 0)return o.value=n.defaultValue,o;const t=n.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>nf(a,n)):nf(t,n)}});function nf(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const rf=E("$ZodPrefault",(e,n)=>{We.init(e,n),e._zod.optin="optional",tt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=n.defaultValue),n.innerType._zod.run(o,s))}),of=E("$ZodNonOptional",(e,n)=>{We.init(e,n),tt(e._zod,"values",()=>{const o=n.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const t=n.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>af(a,e)):af(t,e)}});function af(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const sf=E("$ZodSuccess",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new lo("ZodSuccess");const t=n.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),uf=E("$ZodCatch",(e,n)=>{We.init(e,n),tt(e._zod,"optin",()=>n.innerType._zod.optin),tt(e._zod,"optout",()=>n.innerType._zod.optout),tt(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);const t=n.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=n.catchValue({...o,error:{issues:a.issues.map(d=>wn(d,s,Wt()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=n.catchValue({...o,error:{issues:t.issues.map(a=>wn(a,s,Wt()))},input:o.value}),o.issues=[]),o)}}),cf=E("$ZodNaN",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),lf=E("$ZodPipe",(e,n)=>{We.init(e,n),tt(e._zod,"values",()=>n.in._zod.values),tt(e._zod,"optin",()=>n.in._zod.optin),tt(e._zod,"optout",()=>n.out._zod.optout),tt(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const a=n.out._zod.run(o,s);return a instanceof Promise?a.then(d=>ko(d,n.in,s)):ko(a,n.in,s)}const t=n.in._zod.run(o,s);return t instanceof Promise?t.then(a=>ko(a,n.out,s)):ko(t,n.out,s)}});function ko(e,n,o){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues},o)}const Ba=E("$ZodCodec",(e,n)=>{We.init(e,n),tt(e._zod,"values",()=>n.in._zod.values),tt(e._zod,"optin",()=>n.in._zod.optin),tt(e._zod,"optout",()=>n.out._zod.optout),tt(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(o,s)=>{if((s.direction||"forward")==="forward"){const a=n.in._zod.run(o,s);return a instanceof Promise?a.then(d=>wo(d,n,s)):wo(a,n,s)}else{const a=n.out._zod.run(o,s);return a instanceof Promise?a.then(d=>wo(d,n,s)):wo(a,n,s)}}});function wo(e,n,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){const t=n.transform(e.value,e);return t instanceof Promise?t.then(a=>So(e,a,n.out,o)):So(e,t,n.out,o)}else{const t=n.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>So(e,a,n.in,o)):So(e,t,n.in,o)}}function So(e,n,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:n,issues:e.issues},s)}const df=E("$ZodReadonly",(e,n)=>{We.init(e,n),tt(e._zod,"propValues",()=>n.innerType._zod.propValues),tt(e._zod,"values",()=>n.innerType._zod.values),tt(e._zod,"optin",()=>n.innerType._zod.optin),tt(e._zod,"optout",()=>n.innerType._zod.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return n.innerType._zod.run(o,s);const t=n.innerType._zod.run(o,s);return t instanceof Promise?t.then(ff):ff(t)}});function ff(e){return e.value=Object.freeze(e.value),e}const mf=E("$ZodTemplateLiteral",(e,n)=>{We.init(e,n);const o=[];for(const s of n.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);const t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);const a=t.startsWith("^")?1:0,d=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,d))}else if(s===null||Tc.has(typeof s))o.push(rr(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"template_literal",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),s)}),pf=E("$ZodFunction",(e,n)=>(We.init(e,n),e._def=n,e._zod.def=n,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...s){const t=e._def.input?Na(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?Na(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){const t=e._def.input?await ja(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await ja(e._def.output,a):a}},e._zod.parse=(o,s)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{const s=e.constructor;return Array.isArray(o[0])?new s({type:"function",input:new Ya({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new s({type:"function",input:o[0],output:e._def.output})},e.output=o=>{const s=e.constructor;return new s({type:"function",input:e._def.input,output:o})},e)),gf=E("$ZodPromise",(e,n)=>{We.init(e,n),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>n.innerType._zod.run({value:t,issues:[]},s))}),vf=E("$ZodLazy",(e,n)=>{We.init(e,n),tt(e._zod,"innerType",()=>n.getter()),tt(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),tt(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),tt(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),tt(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),hf=E("$ZodCustom",(e,n)=>{kt.init(e,n),We.init(e,n),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,t=n.fn(s);if(t instanceof Promise)return t.then(a=>bf(a,o,s,e));bf(t,o,s,e)}});function bf(e,n,o,s){if(!e){const t={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),n.issues.push(Gr(t))}}const xb=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return t=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${o(t.input)}`;case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Fe(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()} ${d.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()} ${d.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${s[a.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${ve(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function Ib(){return{localeError:xb()}}const zb=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${Fe(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()} ${d.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()} ${d.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${s[a.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function Nb(){return{localeError:zb()}}function yf(e,n,o,s){const t=Math.abs(e),a=t%10,d=t%100;return d>=11&&d<=19?s:a===1?n:a>=2&&a<=4?o:s}const jb=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return t=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${Fe(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);if(d){const $=Number(t.maximum),A=yf($,d.unit.one,d.unit.few,d.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${d.verb} ${a}${t.maximum.toString()} ${A}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);if(d){const $=Number(t.minimum),A=yf($,d.unit.one,d.unit.few,d.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${d.verb} ${a}${t.minimum.toString()} ${A}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${s[a.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Tb(){return{localeError:jb()}}const Ob=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${Fe(t.values[0])}`:`Opció invàlida: s'esperava una de ${ve(t.values," o ")}`;case"too_big":{const a=t.inclusive?"com a màxim":"menys de",d=n(t.origin);return d?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${a} ${t.maximum.toString()} ${d.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"com a mínim":"més de",d=n(t.origin);return d?`Massa petit: s'esperava que ${t.origin} contingués ${a} ${t.minimum.toString()} ${d.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${s[a.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Eb(){return{localeError:Ob()}}const Pb=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"regulární výraz",email:"e-mailová 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 čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${Fe(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${a}${t.maximum.toString()} ${d.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${a}${t.minimum.toString()} ${d.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${s[a.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${ve(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function Ub(){return{localeError:Pb()}}const Cb=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},n={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function o(d){return e[d]??null}function s(d){return n[d]??d}const t=d=>{const $=typeof d;switch($){case"number":return Number.isNaN(d)?"NaN":"tal";case"object":return Array.isArray(d)?"liste":d===null?"null":Object.getPrototypeOf(d)!==Object.prototype&&d.constructor?d.constructor.name:"objekt"}return $},a={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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",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"};return d=>{switch(d.code){case"invalid_type":return`Ugyldigt input: forventede ${s(d.expected)}, fik ${s(t(d.input))}`;case"invalid_value":return d.values.length===1?`Ugyldig værdi: forventede ${Fe(d.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ve(d.values,"|")}`;case"too_big":{const $=d.inclusive?"<=":"<",A=o(d.origin),B=s(d.origin);return A?`For stor: forventede ${B??"value"} ${A.verb} ${$} ${d.maximum.toString()} ${A.unit??"elementer"}`:`For stor: forventede ${B??"value"} havde ${$} ${d.maximum.toString()}`}case"too_small":{const $=d.inclusive?">=":">",A=o(d.origin),B=s(d.origin);return A?`For lille: forventede ${B} ${A.verb} ${$} ${d.minimum.toString()} ${A.unit}`:`For lille: forventede ${B} havde ${$} ${d.minimum.toString()}`}case"invalid_format":{const $=d;return $.format==="starts_with"?`Ugyldig streng: skal starte med "${$.prefix}"`:$.format==="ends_with"?`Ugyldig streng: skal ende med "${$.suffix}"`:$.format==="includes"?`Ugyldig streng: skal indeholde "${$.includes}"`:$.format==="regex"?`Ugyldig streng: skal matche mønsteret ${$.pattern}`:`Ugyldig ${a[$.format]??d.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${d.divisor}`;case"unrecognized_keys":return`${d.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${ve(d.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${d.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${d.origin}`;default:return"Ugyldigt input"}}};function Db(){return{localeError:Cb()}}const Mb=()=>{const 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 n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${Fe(t.values[0])}`:`Ungültige Option: erwartet eine von ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${d.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${d.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function Lb(){return{localeError:Mb()}}const Ab=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Zb=()=>{const 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"}};function n(s){return e[s]??null}const o={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"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${Ab(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${Fe(s.values[0])}`:`Invalid option: expected one of ${ve(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=n(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${t}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=n(s.origin);return a?`Too small: expected ${s.origin} to have ${t}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${ve(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function $f(){return{localeError:Zb()}}const qb=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},Rb=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(s){return e[s]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",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ŭro",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"};return s=>{switch(s.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${s.expected}, riceviĝis ${qb(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${Fe(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ve(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=n(s.origin);return a?`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=n(s.origin);return a?`Tro malgranda: atendiĝis ke ${s.origin} havu ${t}${s.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${s.origin} estu ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??s.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${s.divisor}`;case"unrecognized_keys":return`Nekonata${s.keys.length>1?"j":""} ŝlosilo${s.keys.length>1?"j":""}: ${ve(s.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${s.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${s.origin}`;default:return"Nevalida enigo"}}};function Fb(){return{localeError:Rb()}}const Wb=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},n={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(d){return e[d]??null}function s(d){return n[d]??d}const t=d=>{const $=typeof d;switch($){case"number":return Number.isNaN(d)?"NaN":"number";case"object":return Array.isArray(d)?"array":d===null?"null":Object.getPrototypeOf(d)!==Object.prototype?d.constructor.name:"object"}return $},a={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return d=>{switch(d.code){case"invalid_type":return`Entrada inválida: se esperaba ${s(d.expected)}, recibido ${s(t(d.input))}`;case"invalid_value":return d.values.length===1?`Entrada inválida: se esperaba ${Fe(d.values[0])}`:`Opción inválida: se esperaba una de ${ve(d.values,"|")}`;case"too_big":{const $=d.inclusive?"<=":"<",A=o(d.origin),B=s(d.origin);return A?`Demasiado grande: se esperaba que ${B??"valor"} tuviera ${$}${d.maximum.toString()} ${A.unit??"elementos"}`:`Demasiado grande: se esperaba que ${B??"valor"} fuera ${$}${d.maximum.toString()}`}case"too_small":{const $=d.inclusive?">=":">",A=o(d.origin),B=s(d.origin);return A?`Demasiado pequeño: se esperaba que ${B} tuviera ${$}${d.minimum.toString()} ${A.unit}`:`Demasiado pequeño: se esperaba que ${B} fuera ${$}${d.minimum.toString()}`}case"invalid_format":{const $=d;return $.format==="starts_with"?`Cadena inválida: debe comenzar con "${$.prefix}"`:$.format==="ends_with"?`Cadena inválida: debe terminar en "${$.suffix}"`:$.format==="includes"?`Cadena inválida: debe incluir "${$.includes}"`:$.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${$.pattern}`:`Inválido ${a[$.format]??d.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${d.divisor}`;case"unrecognized_keys":return`Llave${d.keys.length>1?"s":""} desconocida${d.keys.length>1?"s":""}: ${ve(d.keys,", ")}`;case"invalid_key":return`Llave inválida en ${s(d.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${s(d.origin)}`;default:return"Entrada inválida"}}};function Qb(){return{localeError:Wb()}}const Gb=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return t=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${t.expected} میبود، ${o(t.input)} دریافت شد`;case"invalid_value":return t.values.length===1?`ورودی نامعتبر: میبایست ${Fe(t.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ve(t.values,"|")} میبود`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} ${d.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} باشد`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} ${d.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} باشد`}case"invalid_format":{const a=t;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${s[a.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${ve(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Jb(){return{localeError:Gb()}}const Vb=()=>{const e={string:{unit:"merkkiä",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äivämäärän"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",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"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${Fe(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Liian suuri: ${d.subject} täytyy olla ${a}${t.maximum.toString()} ${d.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Liian pieni: ${d.subject} täytyy olla ${a}${t.minimum.toString()} ${d.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${s[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ve(t.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öte"}}};function Yb(){return{localeError:Vb()}}const Bb=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${o(t.input)} reçu`;case"invalid_value":return t.values.length===1?`Entrée invalide : ${Fe(t.values[0])} attendu`:`Option invalide : une valeur parmi ${ve(t.values,"|")} attendue`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Trop grand : ${t.origin??"valeur"} doit ${d.verb} ${a}${t.maximum.toString()} ${d.unit??"élément(s)"}`:`Trop grand : ${t.origin??"valeur"} doit être ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Trop petit : ${t.origin} doit ${d.verb} ${a}${t.minimum.toString()} ${d.unit}`:`Trop petit : ${t.origin} doit être ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${ve(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function Kb(){return{localeError:Bb()}}const Hb=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${Fe(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"≤":"<",d=n(t.origin);return d?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${d.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"≥":">",d=n(t.origin);return d?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${d.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${ve(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function Xb(){return{localeError:Hb()}}const ey=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return t=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${o(t.input)}`;case"invalid_value":return t.values.length===1?`קלט לא תקין: צריך ${Fe(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()} ${d.unit??"elements"}`:`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()} ${d.unit}`:`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${s[a.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${ve(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function ty(){return{localeError:ey()}}const ny=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"bemenet",email:"email cím",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őbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${Fe(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${a}${t.maximum.toString()} ${d.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${a}${t.minimum.toString()} ${d.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${s[a.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function ry(){return{localeError:ny()}}const iy=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${Fe(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${d.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${d.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${s[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function oy(){return{localeError:iy()}}const ay=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},sy=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function n(s){return e[s]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",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ölugildi",jwt:"JWT",template_literal:"gildi"};return s=>{switch(s.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${ay(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${Fe(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ve(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=n(s.origin);return a?`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} hafi ${t}${s.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} sé ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=n(s.origin);return a?`Of lítið: gert er ráð fyrir að ${s.origin} hafi ${t}${s.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${s.origin} sé ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format==="ends_with"?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format==="includes"?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??s.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${s.divisor}`;case"unrecognized_keys":return`Óþekkt ${s.keys.length>1?"ir lyklar":"ur lykill"}: ${ve(s.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${s.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${s.origin}`;default:return"Rangt gildi"}}};function uy(){return{localeError:sy()}}const cy=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${Fe(t.values[0])}`:`Opzione non valida: atteso uno tra ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${d.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${d.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function ly(){return{localeError:cy()}}const dy=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return t=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${o(t.input)}が入力されました`;case"invalid_value":return t.values.length===1?`無効な入力: ${Fe(t.values[0])}が期待されました`:`無効な選択: ${ve(t.values,"、")}のいずれかである必要があります`;case"too_big":{const a=t.inclusive?"以下である":"より小さい",d=n(t.origin);return d?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${d.unit??"要素"}${a}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a}必要があります`}case"too_small":{const a=t.inclusive?"以上である":"より大きい",d=n(t.origin);return d?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${d.unit}${a}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${s[a.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${ve(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function fy(){return{localeError:dy()}}const my=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[n]??n},py=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function n(s){return e[s]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return s=>{switch(s.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${s.expected}, მიღებული ${my(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Fe(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ve(s.values,"|")}-დან`;case"too_big":{const t=s.inclusive?"<=":"<",a=n(s.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} ${a.verb} ${t}${s.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} იყოს ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=n(s.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${s.origin} ${a.verb} ${t}${s.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${s.origin} იყოს ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${o[t.format]??s.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${s.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${s.keys.length>1?"ები":"ი"}: ${ve(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function gy(){return{localeError:py()}}const vy=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return t=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Fe(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()} ${d.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()} ${d.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${s[a.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${ve(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function _f(){return{localeError:vy()}}function hy(){return _f()}const by=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return t=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${o(t.input)}입니다`;case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${Fe(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${ve(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",d=a==="미만"?"이어야 합니다":"여야 합니다",$=n(t.origin),A=$?.unit??"요소";return $?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${A} ${a}${d}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${d}`}case"too_small":{const a=t.inclusive?"이상":"초과",d=a==="이상"?"이어야 합니다":"여야 합니다",$=n(t.origin),A=$?.unit??"요소";return $?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${A} ${a}${d}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${a}${d}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${s[a.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${ve(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function yy(){return{localeError:by()}}const $y=e=>Ei(typeof e,e),Ei=(e,n=void 0)=>{switch(e){case"number":return Number.isNaN(n)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return n===void 0?"nežinomas objektas":n===null?"nulinė reikšmė":Array.isArray(n)?"masyvas":Object.getPrototypeOf(n)!==Object.prototype&&n.constructor?n.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Pi=e=>e.charAt(0).toUpperCase()+e.slice(1);function kf(e){const n=Math.abs(e),o=n%10,s=n%100;return s>=11&&s<=19||o===0?"many":o===1?"one":"few"}const _y=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function n(s,t,a,d){const $=e[s]??null;return $===null?$:{unit:$.unit[t],verb:$.verb[d][a?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return s=>{switch(s.code){case"invalid_type":return`Gautas tipas ${$y(s.input)}, o tikėtasi - ${Ei(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${Fe(s.values[0])}`:`Privalo būti vienas iš ${ve(s.values,"|")} pasirinkimų`;case"too_big":{const t=Ei(s.origin),a=n(s.origin,kf(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Pi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const d=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Pi(t??s.origin??"reikšmė")} turi būti ${d} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Ei(s.origin),a=n(s.origin,kf(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Pi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const d=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Pi(t??s.origin??"reikšmė")} turi būti ${d} ${s.minimum.toString()} ${a?.unit}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Eilutė privalo prasidėti "${t.prefix}"`:t.format==="ends_with"?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilutė privalo įtraukti "${t.includes}"`:t.format==="regex"?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??s.format}`}case"not_multiple_of":return`Skaičius privalo būti ${s.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${s.keys.length>1?"i":"as"} rakt${s.keys.length>1?"ai":"as"}: ${ve(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Ei(s.origin);return`${Pi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function ky(){return{localeError:_y()}}const wy=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return t=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${Fe(t.values[0])}`:`Грешана опција: се очекува една ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${a}${t.maximum.toString()} ${d.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Премногу мал: се очекува ${t.origin} да има ${a}${t.minimum.toString()} ${d.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function Sy(){return{localeError:wy()}}const xy=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${Fe(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Terlalu besar: dijangka ${t.origin??"nilai"} ${d.verb} ${a}${t.maximum.toString()} ${d.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Terlalu kecil: dijangka ${t.origin} ${d.verb} ${a}${t.minimum.toString()} ${d.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${s[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ve(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function Iy(){return{localeError:xy()}}const zy=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${Fe(t.values[0])}`:`Ongeldige optie: verwacht één van ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${d.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${d.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function Ny(){return{localeError:zy()}}const jy=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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åde",ipv6:"IPv6-område",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"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${Fe(t.values[0])}`:`Ugyldig valg: forventet en av ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()} ${d.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()} ${d.unit}`:`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${s[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Ty(){return{localeError:jy()}}const Oy=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${Fe(t.values[0])}`:`Fâsit tercih: mûteberler ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${d.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmalıydı.`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} ${d.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${s[a.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Ey(){return{localeError:Oy()}}const Py=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"ارې";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return t=>{switch(t.code){case"invalid_type":return`ناسم ورودي: باید ${t.expected} وای, مګر ${o(t.input)} ترلاسه شو`;case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${Fe(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${ve(t.values,"|")} څخه وای`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} ${d.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} وي`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} ${d.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} وي`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${s[a.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${ve(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function Uy(){return{localeError:Py()}}const Cy=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"wyrażenie",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ąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return t=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Fe(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.maximum.toString()} ${d.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.minimum.toString()} ${d.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${s[a.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function Dy(){return{localeError:Cy()}}const My=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"padrão",email:"endereço 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ção ISO",ipv4:"endereço IPv4",ipv6:"endereço 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úmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${Fe(t.values[0])}`:`Opção inválida: esperada uma das ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${d.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${d.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${s[a.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function Ly(){return{localeError:My()}}function wf(e,n,o,s){const t=Math.abs(e),a=t%10,d=t%100;return d>=11&&d<=19?s:a===1?n:a>=2&&a<=4?o:s}const Ay=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return t=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${Fe(t.values[0])}`:`Неверный вариант: ожидалось одно из ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);if(d){const $=Number(t.maximum),A=wf($,d.unit.one,d.unit.few,d.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${A}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);if(d){const $=Number(t.minimum),A=wf($,d.unit.one,d.unit.few,d.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${A}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${s[a.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function Zy(){return{localeError:Ay()}}const qy=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"vnos",email:"e-poštni 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 čas",date:"ISO datum",time:"ISO čas",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 številka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${Fe(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${d.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Premajhno: pričakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${d.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${s[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Ry(){return{localeError:qy()}}const Fy=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"reguljärt 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äng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${Fe(t.values[0])}`:`Ogiltigt val: förväntade en av ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()} ${d.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()} ${d.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${s[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${ve(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function Wy(){return{localeError:Fy()}}const Qy=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"உள்ளீடு",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:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${o(t.input)}`;case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Fe(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ve(t.values,"|")} இல் ஒன்று`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ${d.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ${d.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=t;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${s[a.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Gy(){return{localeError:Qy()}}const Jy=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return t=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Fe(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"ไม่เกิน":"น้อยกว่า",d=n(t.origin);return d?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()} ${d.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"อย่างน้อย":"มากกว่า",d=n(t.origin);return d?`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()} ${d.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${s[a.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${ve(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Vy(){return{localeError:Jy()}}const Yy=e=>{const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return n},By=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(s){return e[s]??null}const o={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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return s=>{switch(s.code){case"invalid_type":return`Geçersiz değer: beklenen ${s.expected}, alınan ${Yy(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${Fe(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ve(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=n(s.origin);return a?`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=n(s.origin);return a?`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format==="ends_with"?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Geçersiz metin: "${t.includes}" içermeli`:t.format==="regex"?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${o[t.format]??s.format}`}case"not_multiple_of":return`Geçersiz sayı: ${s.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${s.keys.length>1?"lar":""}: ${ve(s.keys,", ")}`;case"invalid_key":return`${s.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${s.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Ky(){return{localeError:By()}}const Hy=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return t=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${Fe(t.values[0])}`:`Неправильна опція: очікується одне з ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Занадто велике: очікується, що ${t.origin??"значення"} ${d.verb} ${a}${t.maximum.toString()} ${d.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Занадто мале: очікується, що ${t.origin} ${d.verb} ${a}${t.minimum.toString()} ${d.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${s[a.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${ve(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function Sf(){return{localeError:Hy()}}function Xy(){return Sf()}const e$=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return t=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${o(t.input)} موصول ہوا`;case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${Fe(t.values[0])} متوقع تھا`:`غلط آپشن: ${ve(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`بہت بڑا: ${t.origin??"ویلیو"} کے ${a}${t.maximum.toString()} ${d.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${a}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`بہت چھوٹا: ${t.origin} کے ${a}${t.minimum.toString()} ${d.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${a}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=t;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${s[a.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${ve(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function t$(){return{localeError:e$()}}const n$=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"đầu vào",email:"địa chỉ 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ày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return t=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Fe(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${d.verb} ${a}${t.maximum.toString()} ${d.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Quá nhỏ: mong đợi ${t.origin} ${d.verb} ${a}${t.minimum.toString()} ${d.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${s[a.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${ve(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function r$(){return{localeError:n$()}}const i$=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return t=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`无效输入:期望 ${Fe(t.values[0])}`:`无效选项:期望以下之一 ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()} ${d.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()} ${d.unit}`:`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${s[a.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${ve(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function o$(){return{localeError:i$()}}const a$=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"輸入",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:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return t=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${Fe(t.values[0])}`:`無效的選項:預期為以下其中之一 ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()} ${d.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()} ${d.unit}`:`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${s[a.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${ve(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function s$(){return{localeError:a$()}}const u$=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function n(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(t))return"akopọ";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return t=>{switch(t.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${t.expected}, àmọ̀ a rí ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Fe(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ve(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",d=n(t.origin);return d?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${d.verb} ${a}${t.maximum} ${d.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${t.maximum}`}case"too_small":{const a=t.inclusive?">=":">",d=n(t.origin);return d?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${d.verb} ${a}${t.minimum} ${d.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${t.minimum}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${s[a.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${ve(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function c$(){return{localeError:u$()}}const xf=Object.freeze(Object.defineProperty({__proto__:null,ar:Ib,az:Nb,be:Tb,ca:Eb,cs:Ub,da:Db,de:Lb,en:$f,eo:Fb,es:Qb,fa:Jb,fi:Yb,fr:Kb,frCA:Xb,he:ty,hu:ry,id:oy,is:uy,it:ly,ja:fy,ka:gy,kh:hy,km:_f,ko:yy,lt:ky,mk:Sy,ms:Iy,nl:Ny,no:Ty,ota:Ey,pl:Dy,ps:Uy,pt:Ly,ru:Zy,sl:Ry,sv:Wy,ta:Gy,th:Vy,tr:Ky,ua:Xy,uk:Sf,ur:t$,vi:r$,yo:c$,zhCN:o$,zhTW:s$},Symbol.toStringTag,{value:"Module"})),If=Symbol("ZodOutput"),zf=Symbol("ZodInput");class Ka{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...o){const s=o[0];if(this._map.set(n,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,n)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const o=this._map.get(n);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(n),this}get(n){const o=n._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const t={...s,...this._map.get(n)};return Object.keys(t).length?t:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function Ha(){return new Ka}const hr=Ha();function Nf(e,n){return new e({type:"string",...te(n)})}function jf(e,n){return new e({type:"string",coerce:!0,...te(n)})}function Xa(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...te(n)})}function xo(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...te(n)})}function es(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...te(n)})}function ts(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...te(n)})}function ns(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...te(n)})}function rs(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...te(n)})}function Io(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...te(n)})}function is(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...te(n)})}function os(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...te(n)})}function as(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...te(n)})}function ss(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...te(n)})}function us(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...te(n)})}function cs(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...te(n)})}function ls(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...te(n)})}function ds(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...te(n)})}function fs(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...te(n)})}function ms(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...te(n)})}function ps(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...te(n)})}function gs(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...te(n)})}function vs(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...te(n)})}function hs(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...te(n)})}function bs(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...te(n)})}const Tf={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Of(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...te(n)})}function Ef(e,n){return new e({type:"string",format:"date",check:"string_format",...te(n)})}function Pf(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...te(n)})}function Uf(e,n){return new e({type:"string",format:"duration",check:"string_format",...te(n)})}function Cf(e,n){return new e({type:"number",checks:[],...te(n)})}function Df(e,n){return new e({type:"number",coerce:!0,checks:[],...te(n)})}function Mf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...te(n)})}function Lf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...te(n)})}function Af(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...te(n)})}function Zf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...te(n)})}function qf(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...te(n)})}function Rf(e,n){return new e({type:"boolean",...te(n)})}function Ff(e,n){return new e({type:"boolean",coerce:!0,...te(n)})}function Wf(e,n){return new e({type:"bigint",...te(n)})}function Qf(e,n){return new e({type:"bigint",coerce:!0,...te(n)})}function Gf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...te(n)})}function Jf(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...te(n)})}function Vf(e,n){return new e({type:"symbol",...te(n)})}function Yf(e,n){return new e({type:"undefined",...te(n)})}function Bf(e,n){return new e({type:"null",...te(n)})}function Kf(e){return new e({type:"any"})}function Hf(e){return new e({type:"unknown"})}function Xf(e,n){return new e({type:"never",...te(n)})}function em(e,n){return new e({type:"void",...te(n)})}function tm(e,n){return new e({type:"date",...te(n)})}function nm(e,n){return new e({type:"date",coerce:!0,...te(n)})}function rm(e,n){return new e({type:"nan",...te(n)})}function br(e,n){return new qa({check:"less_than",...te(n),value:e,inclusive:!1})}function Sn(e,n){return new qa({check:"less_than",...te(n),value:e,inclusive:!0})}function yr(e,n){return new Ra({check:"greater_than",...te(n),value:e,inclusive:!1})}function an(e,n){return new Ra({check:"greater_than",...te(n),value:e,inclusive:!0})}function im(e){return yr(0,e)}function om(e){return br(0,e)}function am(e){return Sn(0,e)}function sm(e){return an(0,e)}function Ui(e,n){return new Tl({check:"multiple_of",...te(n),value:e})}function zo(e,n){return new Pl({check:"max_size",...te(n),maximum:e})}function Ci(e,n){return new Ul({check:"min_size",...te(n),minimum:e})}function ys(e,n){return new Cl({check:"size_equals",...te(n),size:e})}function No(e,n){return new Dl({check:"max_length",...te(n),maximum:e})}function Vr(e,n){return new Ml({check:"min_length",...te(n),minimum:e})}function jo(e,n){return new Ll({check:"length_equals",...te(n),length:e})}function $s(e,n){return new Al({check:"string_format",format:"regex",...te(n),pattern:e})}function _s(e){return new Zl({check:"string_format",format:"lowercase",...te(e)})}function ks(e){return new ql({check:"string_format",format:"uppercase",...te(e)})}function ws(e,n){return new Rl({check:"string_format",format:"includes",...te(n),includes:e})}function Ss(e,n){return new Fl({check:"string_format",format:"starts_with",...te(n),prefix:e})}function xs(e,n){return new Wl({check:"string_format",format:"ends_with",...te(n),suffix:e})}function um(e,n,o){return new Gl({check:"property",property:e,schema:n,...te(o)})}function Is(e,n){return new Jl({check:"mime_type",mime:e,...te(n)})}function $r(e){return new Vl({check:"overwrite",tx:e})}function zs(e){return $r(n=>n.normalize(e))}function Ns(){return $r(e=>e.trim())}function js(){return $r(e=>e.toLowerCase())}function Ts(){return $r(e=>e.toUpperCase())}function cm(e,n,o){return new e({type:"array",element:n,...te(o)})}function l$(e,n,o){return new e({type:"union",options:n,...te(o)})}function d$(e,n,o,s){return new e({type:"union",options:o,discriminator:n,...te(s)})}function f$(e,n,o){return new e({type:"intersection",left:n,right:o})}function m$(e,n,o,s){const t=o instanceof We,a=t?s:o,d=t?o:null;return new e({type:"tuple",items:n,rest:d,...te(a)})}function p$(e,n,o,s){return new e({type:"record",keyType:n,valueType:o,...te(s)})}function g$(e,n,o,s){return new e({type:"map",keyType:n,valueType:o,...te(s)})}function v$(e,n,o){return new e({type:"set",valueType:n,...te(o)})}function h$(e,n,o){const s=Array.isArray(n)?Object.fromEntries(n.map(t=>[t,t])):n;return new e({type:"enum",entries:s,...te(o)})}function b$(e,n,o){return new e({type:"enum",entries:n,...te(o)})}function y$(e,n,o){return new e({type:"literal",values:Array.isArray(n)?n:[n],...te(o)})}function lm(e,n){return new e({type:"file",...te(n)})}function $$(e,n){return new e({type:"transform",transform:n})}function _$(e,n){return new e({type:"optional",innerType:n})}function k$(e,n){return new e({type:"nullable",innerType:n})}function w$(e,n,o){return new e({type:"default",innerType:n,get defaultValue(){return typeof o=="function"?o():vo(o)}})}function S$(e,n,o){return new e({type:"nonoptional",innerType:n,...te(o)})}function x$(e,n){return new e({type:"success",innerType:n})}function I$(e,n,o){return new e({type:"catch",innerType:n,catchValue:typeof o=="function"?o:()=>o})}function z$(e,n,o){return new e({type:"pipe",in:n,out:o})}function N$(e,n){return new e({type:"readonly",innerType:n})}function j$(e,n,o){return new e({type:"template_literal",parts:n,...te(o)})}function T$(e,n){return new e({type:"lazy",getter:n})}function O$(e,n){return new e({type:"promise",innerType:n})}function dm(e,n,o){const s=te(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:n,...s})}function fm(e,n,o){return new e({type:"custom",check:"custom",fn:n,...te(o)})}function mm(e){const n=pm(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(Gr(s,o.value,n._zod.def));else{const t=s;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=n),t.continue??(t.continue=!n._zod.def.abort),o.issues.push(Gr(t))}},e(o.value,o)));return n}function pm(e,n){const o=new kt({check:"custom",...te(n)});return o._zod.check=e,o}function gm(e,n){const o=te(n);let s=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(s=s.map(be=>typeof be=="string"?be.toLowerCase():be),t=t.map(be=>typeof be=="string"?be.toLowerCase():be));const a=new Set(s),d=new Set(t),$=e.Codec??Ba,A=e.Boolean??Qa,B=e.String??Oi,me=new B({type:"string",error:o.error}),ae=new A({type:"boolean",error:o.error}),Ze=new $({type:"pipe",in:me,out:ae,transform:((be,Y)=>{let ze=be;return o.case!=="sensitive"&&(ze=ze.toLowerCase()),a.has(ze)?!0:d.has(ze)?!1:(Y.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...d],input:Y.value,inst:Ze,continue:!1}),{})}),reverseTransform:((be,Y)=>be===!0?s[0]||"true":t[0]||"false"),error:o.error});return Ze}function Di(e,n,o,s={}){const t=te(s),a={...te(s),check:"string_format",type:"string",format:n,fn:typeof o=="function"?o:$=>o.test($),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class Os{constructor(n){this.counter=0,this.metadataRegistry=n?.metadata??hr,this.target=n?.target??"draft-2020-12",this.unrepresentable=n?.unrepresentable??"throw",this.override=n?.override??(()=>{}),this.io=n?.io??"output",this.seen=new Map}process(n,o={path:[],schemaPath:[]}){var s;const t=n._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},d=this.seen.get(n);if(d)return d.count++,o.schemaPath.includes(n)&&(d.cycle=o.path),d.schema;const $={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(n,$);const A=n._zod.toJSONSchema?.();if(A)$.schema=A;else{const ae={...o,schemaPath:[...o.schemaPath,n],path:o.path},Ze=n._zod.parent;if(Ze)$.ref=Ze,this.process(Ze,ae),this.seen.get(Ze).isParent=!0;else{const be=$.schema;switch(t.type){case"string":{const Y=be;Y.type="string";const{minimum:ze,maximum:Ce,format:st,patterns:rt,contentEncoding:ot}=n._zod.bag;if(typeof ze=="number"&&(Y.minLength=ze),typeof Ce=="number"&&(Y.maxLength=Ce),st&&(Y.format=a[st]??st,Y.format===""&&delete Y.format),ot&&(Y.contentEncoding=ot),rt&&rt.size>0){const ct=[...rt];ct.length===1?Y.pattern=ct[0].source:ct.length>1&&($.schema.allOf=[...ct.map(Qt=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:Qt.source}))])}break}case"number":{const Y=be,{minimum:ze,maximum:Ce,format:st,multipleOf:rt,exclusiveMaximum:ot,exclusiveMinimum:ct}=n._zod.bag;typeof st=="string"&&st.includes("int")?Y.type="integer":Y.type="number",typeof ct=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(Y.minimum=ct,Y.exclusiveMinimum=!0):Y.exclusiveMinimum=ct),typeof ze=="number"&&(Y.minimum=ze,typeof ct=="number"&&this.target!=="draft-4"&&(ct>=ze?delete Y.minimum:delete Y.exclusiveMinimum)),typeof ot=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(Y.maximum=ot,Y.exclusiveMaximum=!0):Y.exclusiveMaximum=ot),typeof Ce=="number"&&(Y.maximum=Ce,typeof ot=="number"&&this.target!=="draft-4"&&(ot<=Ce?delete Y.maximum:delete Y.exclusiveMaximum)),typeof rt=="number"&&(Y.multipleOf=rt);break}case"boolean":{const Y=be;Y.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(be.type="string",be.nullable=!0,be.enum=[null]):be.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{be.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const Y=be,{minimum:ze,maximum:Ce}=n._zod.bag;typeof ze=="number"&&(Y.minItems=ze),typeof Ce=="number"&&(Y.maxItems=Ce),Y.type="array",Y.items=this.process(t.element,{...ae,path:[...ae.path,"items"]});break}case"object":{const Y=be;Y.type="object",Y.properties={};const ze=t.shape;for(const rt in ze)Y.properties[rt]=this.process(ze[rt],{...ae,path:[...ae.path,"properties",rt]});const Ce=new Set(Object.keys(ze)),st=new Set([...Ce].filter(rt=>{const ot=t.shape[rt]._zod;return this.io==="input"?ot.optin===void 0:ot.optout===void 0}));st.size>0&&(Y.required=Array.from(st)),t.catchall?._zod.def.type==="never"?Y.additionalProperties=!1:t.catchall?t.catchall&&(Y.additionalProperties=this.process(t.catchall,{...ae,path:[...ae.path,"additionalProperties"]})):this.io==="output"&&(Y.additionalProperties=!1);break}case"union":{const Y=be,ze=t.options.map((Ce,st)=>this.process(Ce,{...ae,path:[...ae.path,"anyOf",st]}));Y.anyOf=ze;break}case"intersection":{const Y=be,ze=this.process(t.left,{...ae,path:[...ae.path,"allOf",0]}),Ce=this.process(t.right,{...ae,path:[...ae.path,"allOf",1]}),st=ot=>"allOf"in ot&&Object.keys(ot).length===1,rt=[...st(ze)?ze.allOf:[ze],...st(Ce)?Ce.allOf:[Ce]];Y.allOf=rt;break}case"tuple":{const Y=be;Y.type="array";const ze=this.target==="draft-2020-12"?"prefixItems":"items",Ce=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",st=t.items.map((Qt,Pn)=>this.process(Qt,{...ae,path:[...ae.path,ze,Pn]})),rt=t.rest?this.process(t.rest,{...ae,path:[...ae.path,Ce,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(Y.prefixItems=st,rt&&(Y.items=rt)):this.target==="openapi-3.0"?(Y.items={anyOf:st},rt&&Y.items.anyOf.push(rt),Y.minItems=st.length,rt||(Y.maxItems=st.length)):(Y.items=st,rt&&(Y.additionalItems=rt));const{minimum:ot,maximum:ct}=n._zod.bag;typeof ot=="number"&&(Y.minItems=ot),typeof ct=="number"&&(Y.maxItems=ct);break}case"record":{const Y=be;Y.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(Y.propertyNames=this.process(t.keyType,{...ae,path:[...ae.path,"propertyNames"]})),Y.additionalProperties=this.process(t.valueType,{...ae,path:[...ae.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const Y=be,ze=ka(t.entries);ze.every(Ce=>typeof Ce=="number")&&(Y.type="number"),ze.every(Ce=>typeof Ce=="string")&&(Y.type="string"),Y.enum=ze;break}case"literal":{const Y=be,ze=[];for(const Ce of t.values)if(Ce===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Ce=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");ze.push(Number(Ce))}else ze.push(Ce);if(ze.length!==0)if(ze.length===1){const Ce=ze[0];Y.type=Ce===null?"null":typeof Ce,this.target==="draft-4"||this.target==="openapi-3.0"?Y.enum=[Ce]:Y.const=Ce}else ze.every(Ce=>typeof Ce=="number")&&(Y.type="number"),ze.every(Ce=>typeof Ce=="string")&&(Y.type="string"),ze.every(Ce=>typeof Ce=="boolean")&&(Y.type="string"),ze.every(Ce=>Ce===null)&&(Y.type="null"),Y.enum=ze;break}case"file":{const Y=be,ze={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Ce,maximum:st,mime:rt}=n._zod.bag;Ce!==void 0&&(ze.minLength=Ce),st!==void 0&&(ze.maxLength=st),rt?rt.length===1?(ze.contentMediaType=rt[0],Object.assign(Y,ze)):Y.anyOf=rt.map(ot=>({...ze,contentMediaType:ot})):Object.assign(Y,ze);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const Y=this.process(t.innerType,ae);this.target==="openapi-3.0"?($.ref=t.innerType,be.nullable=!0):be.anyOf=[Y,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,ae),$.ref=t.innerType;break}case"success":{const Y=be;Y.type="boolean";break}case"default":{this.process(t.innerType,ae),$.ref=t.innerType,be.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,ae),$.ref=t.innerType,this.io==="input"&&(be._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,ae),$.ref=t.innerType;let Y;try{Y=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}be.default=Y;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const Y=be,ze=n._zod.pattern;if(!ze)throw new Error("Pattern not found in template literal");Y.type="string",Y.pattern=ze.source;break}case"pipe":{const Y=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(Y,ae),$.ref=Y;break}case"readonly":{this.process(t.innerType,ae),$.ref=t.innerType,be.readOnly=!0;break}case"promise":{this.process(t.innerType,ae),$.ref=t.innerType;break}case"optional":{this.process(t.innerType,ae),$.ref=t.innerType;break}case"lazy":{const Y=n._zod.innerType;this.process(Y,ae),$.ref=Y;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const B=this.metadataRegistry.get(n);return B&&Object.assign($.schema,B),this.io==="input"&&Et(n)&&(delete $.schema.examples,delete $.schema.default),this.io==="input"&&$.schema._prefault&&((s=$.schema).default??(s.default=$.schema._prefault)),delete $.schema._prefault,this.seen.get(n).schema}emit(n,o){const s={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(n);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=me=>{const ae=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const ze=s.external.registry.get(me[0])?.id,Ce=s.external.uri??(rt=>rt);if(ze)return{ref:Ce(ze)};const st=me[1].defId??me[1].schema.id??`schema${this.counter++}`;return me[1].defId=st,{defId:st,ref:`${Ce("__shared")}#/${ae}/${st}`}}if(me[1]===t)return{ref:"#"};const be=`#/${ae}/`,Y=me[1].schema.id??`__schema${this.counter++}`;return{defId:Y,ref:be+Y}},d=me=>{if(me[1].schema.$ref)return;const ae=me[1],{ref:Ze,defId:be}=a(me);ae.def={...ae.schema},be&&(ae.defId=be);const Y=ae.schema;for(const ze in Y)delete Y[ze];Y.$ref=Ze};if(s.cycles==="throw")for(const me of this.seen.entries()){const ae=me[1];if(ae.cycle)throw new Error(`Cycle detected: #/${ae.cycle?.join("/")}/<root>
|
|
42
|
+
`)}he.write("payload.value = newResult;"),he.write("return payload;");const ut=he.compile();return(ct,vt)=>ut(Re,ct,vt)};let a;const f=oi,w=!zo.jitless,K=w&&dc.value,me=r.catchall;let le;e._zod.parse=(Re,he)=>{le??(le=s.value);const Y=Re.value;return f(Y)?w&&K&&he?.async===!1&&he.jitless!==!0?(a||(a=t(r.shape)),Re=a(Re,he),me?yf([],Y,Re,he,le,e):Re):o(Re,he):(Re.issues.push({expected:"object",code:"invalid_type",input:Y,inst:e}),Re)}});function wf(e,r,o,s){for(const a of e)if(a.issues.length===0)return r.value=a.value,r;const t=e.filter(a=>!En(a));return t.length===1?(r.value=t[0].value,t[0]):(r.issues.push({code:"invalid_union",input:r.value,inst:o,errors:e.map(a=>a.issues.map(f=>Cr(f,s,ir())))}),r)}const bs=A("$ZodUnion",(e,r)=>{Ge.init(e,r),it(e._zod,"optin",()=>r.options.some(t=>t._zod.optin==="optional")?"optional":void 0),it(e._zod,"optout",()=>r.options.some(t=>t._zod.optout==="optional")?"optional":void 0),it(e._zod,"values",()=>{if(r.options.every(t=>t._zod.values))return new Set(r.options.flatMap(t=>Array.from(t._zod.values)))}),it(e._zod,"pattern",()=>{if(r.options.every(t=>t._zod.pattern)){const t=r.options.map(a=>a._zod.pattern);return new RegExp(`^(${t.map(a=>jo(a.source)).join("|")})$`)}});const o=r.options.length===1,s=r.options[0]._zod.run;e._zod.parse=(t,a)=>{if(o)return s(t,a);let f=!1;const w=[];for(const q of r.options){const K=q._zod.run({value:t.value,issues:[]},a);if(K instanceof Promise)w.push(K),f=!0;else{if(K.issues.length===0)return K;w.push(K)}}return f?Promise.all(w).then(q=>wf(q,t,e,a)):wf(w,t,e,a)}}),kf=A("$ZodDiscriminatedUnion",(e,r)=>{bs.init(e,r);const o=e._zod.parse;it(e._zod,"propValues",()=>{const t={};for(const a of r.options){const f=a._zod.propValues;if(!f||Object.keys(f).length===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(a)}"`);for(const[w,q]of Object.entries(f)){t[w]||(t[w]=new Set);for(const K of q)t[w].add(K)}}return t});const s=Ci(()=>{const t=r.options,a=new Map;for(const f of t){const w=f._zod.propValues?.[r.discriminator];if(!w||w.size===0)throw new Error(`Invalid discriminated union option at index "${r.options.indexOf(f)}"`);for(const q of w){if(a.has(q))throw new Error(`Duplicate discriminator value "${String(q)}"`);a.set(q,f)}}return a});e._zod.parse=(t,a)=>{const f=t.value;if(!oi(f))return t.issues.push({code:"invalid_type",expected:"object",input:f,inst:e}),t;const w=s.value.get(f?.[r.discriminator]);return w?w._zod.run(t,a):r.unionFallback?o(t,a):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:r.discriminator,input:f,path:[r.discriminator],inst:e}),t)}}),xf=A("$ZodIntersection",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value,a=r.left._zod.run({value:t,issues:[]},s),f=r.right._zod.run({value:t,issues:[]},s);return a instanceof Promise||f instanceof Promise?Promise.all([a,f]).then(([q,K])=>Sf(o,q,K)):Sf(o,a,f)}});function ys(e,r){if(e===r)return{valid:!0,data:e};if(e instanceof Date&&r instanceof Date&&+e==+r)return{valid:!0,data:e};if(On(e)&&On(r)){const o=Object.keys(r),s=Object.keys(e).filter(a=>o.indexOf(a)!==-1),t={...e,...r};for(const a of s){const f=ys(e[a],r[a]);if(!f.valid)return{valid:!1,mergeErrorPath:[a,...f.mergeErrorPath]};t[a]=f.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(r)){if(e.length!==r.length)return{valid:!1,mergeErrorPath:[]};const o=[];for(let s=0;s<e.length;s++){const t=e[s],a=r[s],f=ys(t,a);if(!f.valid)return{valid:!1,mergeErrorPath:[s,...f.mergeErrorPath]};o.push(f.data)}return{valid:!0,data:o}}return{valid:!1,mergeErrorPath:[]}}function Sf(e,r,o){if(r.issues.length&&e.issues.push(...r.issues),o.issues.length&&e.issues.push(...o.issues),En(e))return e;const s=ys(r.value,o.value);if(!s.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(s.mergeErrorPath)}`);return e.value=s.data,e}const $s=A("$ZodTuple",(e,r)=>{Ge.init(e,r);const o=r.items,s=o.length-[...o].reverse().findIndex(t=>t._zod.optin!=="optional");e._zod.parse=(t,a)=>{const f=t.value;if(!Array.isArray(f))return t.issues.push({input:f,inst:e,expected:"tuple",code:"invalid_type"}),t;t.value=[];const w=[];if(!r.rest){const K=f.length>o.length,me=f.length<s-1;if(K||me)return t.issues.push({...K?{code:"too_big",maximum:o.length}:{code:"too_small",minimum:o.length},input:f,inst:e,origin:"array"}),t}let q=-1;for(const K of o){if(q++,q>=f.length&&q>=s)continue;const me=K._zod.run({value:f[q],issues:[]},a);me instanceof Promise?w.push(me.then(le=>Ao(le,t,q))):Ao(me,t,q)}if(r.rest){const K=f.slice(o.length);for(const me of K){q++;const le=r.rest._zod.run({value:me,issues:[]},a);le instanceof Promise?w.push(le.then(Re=>Ao(Re,t,q))):Ao(le,t,q)}}return w.length?Promise.all(w).then(()=>t):t}});function Ao(e,r,o){e.issues.length&&r.issues.push(...Pr(o,e.issues)),r.value[o]=e.value}const If=A("$ZodRecord",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!On(t))return o.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),o;const a=[];if(r.keyType._zod.values){const f=r.keyType._zod.values;o.value={};for(const q of f)if(typeof q=="string"||typeof q=="number"||typeof q=="symbol"){const K=r.valueType._zod.run({value:t[q],issues:[]},s);K instanceof Promise?a.push(K.then(me=>{me.issues.length&&o.issues.push(...Pr(q,me.issues)),o.value[q]=me.value})):(K.issues.length&&o.issues.push(...Pr(q,K.issues)),o.value[q]=K.value)}let w;for(const q in t)f.has(q)||(w=w??[],w.push(q));w&&w.length>0&&o.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:w})}else{o.value={};for(const f of Reflect.ownKeys(t)){if(f==="__proto__")continue;const w=r.keyType._zod.run({value:f,issues:[]},s);if(w instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(w.issues.length){o.issues.push({code:"invalid_key",origin:"record",issues:w.issues.map(K=>Cr(K,s,ir())),input:f,path:[f],inst:e}),o.value[w.value]=w.value;continue}const q=r.valueType._zod.run({value:t[f],issues:[]},s);q instanceof Promise?a.push(q.then(K=>{K.issues.length&&o.issues.push(...Pr(f,K.issues)),o.value[w.value]=K.value})):(q.issues.length&&o.issues.push(...Pr(f,q.issues)),o.value[w.value]=q.value)}}return a.length?Promise.all(a).then(()=>o):o}}),zf=A("$ZodMap",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Map))return o.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),o;const a=[];o.value=new Map;for(const[f,w]of t){const q=r.keyType._zod.run({value:f,issues:[]},s),K=r.valueType._zod.run({value:w,issues:[]},s);q instanceof Promise||K instanceof Promise?a.push(Promise.all([q,K]).then(([me,le])=>{Nf(me,le,o,f,t,e,s)})):Nf(q,K,o,f,t,e,s)}return a.length?Promise.all(a).then(()=>o):o}});function Nf(e,r,o,s,t,a,f){e.issues.length&&(Eo.has(typeof s)?o.issues.push(...Pr(s,e.issues)):o.issues.push({code:"invalid_key",origin:"map",input:t,inst:a,issues:e.issues.map(w=>Cr(w,f,ir()))})),r.issues.length&&(Eo.has(typeof s)?o.issues.push(...Pr(s,r.issues)):o.issues.push({origin:"map",code:"invalid_element",input:t,inst:a,key:s,issues:r.issues.map(w=>Cr(w,f,ir()))})),o.value.set(e.value,r.value)}const jf=A("$ZodSet",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;if(!(t instanceof Set))return o.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),o;const a=[];o.value=new Set;for(const f of t){const w=r.valueType._zod.run({value:f,issues:[]},s);w instanceof Promise?a.push(w.then(q=>Tf(q,o))):Tf(w,o)}return a.length?Promise.all(a).then(()=>o):o}});function Tf(e,r){e.issues.length&&r.issues.push(...e.issues),r.value.add(e.value)}const Of=A("$ZodEnum",(e,r)=>{Ge.init(e,r);const o=Ga(r.entries),s=new Set(o);e._zod.values=s,e._zod.pattern=new RegExp(`^(${o.filter(t=>Eo.has(typeof t)).map(t=>typeof t=="string"?mn(t):t.toString()).join("|")})$`),e._zod.parse=(t,a)=>{const f=t.value;return s.has(f)||t.issues.push({code:"invalid_value",values:o,input:f,inst:e}),t}}),Ef=A("$ZodLiteral",(e,r)=>{if(Ge.init(e,r),r.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(o=>typeof o=="string"?mn(o):o?mn(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,s)=>{const t=o.value;return e._zod.values.has(t)||o.issues.push({code:"invalid_value",values:r.values,input:t,inst:e}),o}}),Pf=A("$ZodFile",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{const t=o.value;return t instanceof File||o.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),o}}),Cf=A("$ZodTransform",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io(e.constructor.name);const t=r.transform(o.value,o);if(s.async)return(t instanceof Promise?t:Promise.resolve(t)).then(f=>(o.value=f,o));if(t instanceof Promise)throw new jn;return o.value=t,o}});function Uf(e,r){return e.issues.length&&r===void 0?{issues:[],value:void 0}:e}const Af=A("$ZodOptional",(e,r)=>{Ge.init(e,r),e._zod.optin="optional",e._zod.optout="optional",it(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),it(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${jo(o.source)})?$`):void 0}),e._zod.parse=(o,s)=>{if(r.innerType._zod.optin==="optional"){const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Uf(a,o.value)):Uf(t,o.value)}return o.value===void 0?o:r.innerType._zod.run(o,s)}}),Df=A("$ZodNullable",(e,r)=>{Ge.init(e,r),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),it(e._zod,"pattern",()=>{const o=r.innerType._zod.pattern;return o?new RegExp(`^(${jo(o.source)}|null)$`):void 0}),it(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,null]):void 0),e._zod.parse=(o,s)=>o.value===null?o:r.innerType._zod.run(o,s)}),Lf=A("$ZodDefault",(e,r)=>{Ge.init(e,r),e._zod.optin="optional",it(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);if(o.value===void 0)return o.value=r.defaultValue,o;const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>Mf(a,r)):Mf(t,r)}});function Mf(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const Zf=A("$ZodPrefault",(e,r)=>{Ge.init(e,r),e._zod.optin="optional",it(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>(s.direction==="backward"||o.value===void 0&&(o.value=r.defaultValue),r.innerType._zod.run(o,s))}),Rf=A("$ZodNonOptional",(e,r)=>{Ge.init(e,r),it(e._zod,"values",()=>{const o=r.innerType._zod.values;return o?new Set([...o].filter(s=>s!==void 0)):void 0}),e._zod.parse=(o,s)=>{const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>qf(a,e)):qf(t,e)}});function qf(e,r){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:r}),e}const Ff=A("$ZodSuccess",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io("ZodSuccess");const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.issues.length===0,o)):(o.value=t.issues.length===0,o)}}),Wf=A("$ZodCatch",(e,r)=>{Ge.init(e,r),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),it(e._zod,"values",()=>r.innerType._zod.values),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(a=>(o.value=a.value,a.issues.length&&(o.value=r.catchValue({...o,error:{issues:a.issues.map(f=>Cr(f,s,ir()))},input:o.value}),o.issues=[]),o)):(o.value=t.value,t.issues.length&&(o.value=r.catchValue({...o,error:{issues:t.issues.map(a=>Cr(a,s,ir()))},input:o.value}),o.issues=[]),o)}}),Vf=A("$ZodNaN",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>((typeof o.value!="number"||!Number.isNaN(o.value))&&o.issues.push({input:o.value,inst:e,expected:"nan",code:"invalid_type"}),o)}),Qf=A("$ZodPipe",(e,r)=>{Ge.init(e,r),it(e._zod,"values",()=>r.in._zod.values),it(e._zod,"optin",()=>r.in._zod.optin),it(e._zod,"optout",()=>r.out._zod.optout),it(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if(s.direction==="backward"){const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Do(f,r.in,s)):Do(a,r.in,s)}const t=r.in._zod.run(o,s);return t instanceof Promise?t.then(a=>Do(a,r.out,s)):Do(t,r.out,s)}});function Do(e,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:e.value,issues:e.issues},o)}const _s=A("$ZodCodec",(e,r)=>{Ge.init(e,r),it(e._zod,"values",()=>r.in._zod.values),it(e._zod,"optin",()=>r.in._zod.optin),it(e._zod,"optout",()=>r.out._zod.optout),it(e._zod,"propValues",()=>r.in._zod.propValues),e._zod.parse=(o,s)=>{if((s.direction||"forward")==="forward"){const a=r.in._zod.run(o,s);return a instanceof Promise?a.then(f=>Lo(f,r,s)):Lo(a,r,s)}else{const a=r.out._zod.run(o,s);return a instanceof Promise?a.then(f=>Lo(f,r,s)):Lo(a,r,s)}}});function Lo(e,r,o){if(e.issues.length)return e.aborted=!0,e;if((o.direction||"forward")==="forward"){const t=r.transform(e.value,e);return t instanceof Promise?t.then(a=>Mo(e,a,r.out,o)):Mo(e,t,r.out,o)}else{const t=r.reverseTransform(e.value,e);return t instanceof Promise?t.then(a=>Mo(e,a,r.in,o)):Mo(e,t,r.in,o)}}function Mo(e,r,o,s){return e.issues.length?(e.aborted=!0,e):o._zod.run({value:r,issues:e.issues},s)}const Gf=A("$ZodReadonly",(e,r)=>{Ge.init(e,r),it(e._zod,"propValues",()=>r.innerType._zod.propValues),it(e._zod,"values",()=>r.innerType._zod.values),it(e._zod,"optin",()=>r.innerType._zod.optin),it(e._zod,"optout",()=>r.innerType._zod.optout),e._zod.parse=(o,s)=>{if(s.direction==="backward")return r.innerType._zod.run(o,s);const t=r.innerType._zod.run(o,s);return t instanceof Promise?t.then(Jf):Jf(t)}});function Jf(e){return e.value=Object.freeze(e.value),e}const Bf=A("$ZodTemplateLiteral",(e,r)=>{Ge.init(e,r);const o=[];for(const s of r.parts)if(typeof s=="object"&&s!==null){if(!s._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...s._zod.traits].shift()}`);const t=s._zod.pattern instanceof RegExp?s._zod.pattern.source:s._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${s._zod.traits}`);const a=t.startsWith("^")?1:0,f=t.endsWith("$")?t.length-1:t.length;o.push(t.slice(a,f))}else if(s===null||fc.has(typeof s))o.push(mn(`${s}`));else throw new Error(`Invalid template literal part: ${s}`);e._zod.pattern=new RegExp(`^${o.join("")}$`),e._zod.parse=(s,t)=>typeof s.value!="string"?(s.issues.push({input:s.value,inst:e,expected:"template_literal",code:"invalid_type"}),s):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(s.value)||s.issues.push({input:s.value,inst:e,code:"invalid_format",format:r.format??"template_literal",pattern:e._zod.pattern.source}),s)}),Yf=A("$ZodFunction",(e,r)=>(Ge.init(e,r),e._def=r,e._zod.def=r,e.implement=o=>{if(typeof o!="function")throw new Error("implement() must be called with a function");return function(...s){const t=e._def.input?Xa(e._def.input,s):s,a=Reflect.apply(o,this,t);return e._def.output?Xa(e._def.output,a):a}},e.implementAsync=o=>{if(typeof o!="function")throw new Error("implementAsync() must be called with a function");return async function(...s){const t=e._def.input?await es(e._def.input,s):s,a=await Reflect.apply(o,this,t);return e._def.output?await es(e._def.output,a):a}},e._zod.parse=(o,s)=>typeof o.value!="function"?(o.issues.push({code:"invalid_type",expected:"function",input:o.value,inst:e}),o):(e._def.output&&e._def.output._zod.def.type==="promise"?o.value=e.implementAsync(o.value):o.value=e.implement(o.value),o),e.input=(...o)=>{const s=e.constructor;return Array.isArray(o[0])?new s({type:"function",input:new $s({type:"tuple",items:o[0],rest:o[1]}),output:e._def.output}):new s({type:"function",input:o[0],output:e._def.output})},e.output=o=>{const s=e.constructor;return new s({type:"function",input:e._def.input,output:o})},e)),Kf=A("$ZodPromise",(e,r)=>{Ge.init(e,r),e._zod.parse=(o,s)=>Promise.resolve(o.value).then(t=>r.innerType._zod.run({value:t,issues:[]},s))}),Hf=A("$ZodLazy",(e,r)=>{Ge.init(e,r),it(e._zod,"innerType",()=>r.getter()),it(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),it(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),it(e._zod,"optin",()=>e._zod.innerType._zod.optin??void 0),it(e._zod,"optout",()=>e._zod.innerType._zod.optout??void 0),e._zod.parse=(o,s)=>e._zod.innerType._zod.run(o,s)}),Xf=A("$ZodCustom",(e,r)=>{Ct.init(e,r),Ge.init(e,r),e._zod.parse=(o,s)=>o,e._zod.check=o=>{const s=o.value,t=r.fn(s);if(t instanceof Promise)return t.then(a=>em(a,o,s,e));em(t,o,s,e)}});function em(e,r,o,s){if(!e){const t={code:"custom",input:o,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(t.params=s._zod.def.params),r.issues.push(ai(t))}}const _y=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"};return t=>{switch(t.code){case"invalid_type":return`مدخلات غير مقبولة: يفترض إدخال ${t.expected}، ولكن تم إدخال ${o(t.input)}`;case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${Ve(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()} ${f.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()} ${f.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:a.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${a.suffix}"`:a.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${a.includes}"`:a.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${a.pattern}`:`${s[a.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${ge(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function wy(){return{localeError:_y()}}const ky=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Yanlış dəyər: gözlənilən ${t.expected}, daxil olan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${Ve(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()} ${f.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Yanlış mətn: "${a.prefix}" ilə başlamalıdır`:a.format==="ends_with"?`Yanlış mətn: "${a.suffix}" ilə bitməlidir`:a.format==="includes"?`Yanlış mətn: "${a.includes}" daxil olmalıdır`:a.format==="regex"?`Yanlış mətn: ${a.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${s[a.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function xy(){return{localeError:ky()}}function tm(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const Sy=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"лік";case"object":{if(Array.isArray(t))return"масіў";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"};return t=>{switch(t.code){case"invalid_type":return`Няправільны ўвод: чакаўся ${t.expected}, атрымана ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${Ve(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const w=Number(t.maximum),q=tm(w,f.unit.one,f.unit.few,f.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${f.verb} ${a}${t.maximum.toString()} ${q}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const w=Number(t.minimum),q=tm(w,f.unit.one,f.unit.few,f.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${f.verb} ${a}${t.minimum.toString()} ${q}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${a.prefix}"`:a.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${a.suffix}"`:a.format==="includes"?`Няправільны радок: павінен змяшчаць "${a.includes}"`:a.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${a.pattern}`:`Няправільны ${s[a.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function Iy(){return{localeError:Sy()}}const zy=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrada",email:"adreça electrònica",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ça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipus invàlid: s'esperava ${t.expected}, s'ha rebut ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${Ve(t.values[0])}`:`Opció invàlida: s'esperava una de ${ge(t.values," o ")}`;case"too_big":{const a=t.inclusive?"com a màxim":"menys de",f=r(t.origin);return f?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${a} ${t.maximum.toString()} ${f.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"com a mínim":"més de",f=r(t.origin);return f?`Massa petit: s'esperava que ${t.origin} contingués ${a} ${t.minimum.toString()} ${f.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Format invàlid: ha de començar amb "${a.prefix}"`:a.format==="ends_with"?`Format invàlid: ha d'acabar amb "${a.suffix}"`:a.format==="includes"?`Format invàlid: ha d'incloure "${a.includes}"`:a.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${a.pattern}`:`Format invàlid per a ${s[a.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Ny(){return{localeError:zy()}}const jy=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"číslo";case"string":return"řetězec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(t))return"pole";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"regulární výraz",email:"e-mailová 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 čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"};return t=>{switch(t.code){case"invalid_type":return`Neplatný vstup: očekáváno ${t.expected}, obdrženo ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${Ve(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${a}${t.maximum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${a}${t.minimum.toString()} ${f.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neplatný řetězec: musí začínat na "${a.prefix}"`:a.format==="ends_with"?`Neplatný řetězec: musí končit na "${a.suffix}"`:a.format==="includes"?`Neplatný řetězec: musí obsahovat "${a.includes}"`:a.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${a.pattern}`:`Neplatný formát ${s[a.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${ge(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function Ty(){return{localeError:jy()}}const Oy=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},r={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const w=typeof f;switch(w){case"number":return Number.isNaN(f)?"NaN":"tal";case"object":return Array.isArray(f)?"liste":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype&&f.constructor?f.constructor.name:"objekt"}return w},a={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æt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",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"};return f=>{switch(f.code){case"invalid_type":return`Ugyldigt input: forventede ${s(f.expected)}, fik ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Ugyldig værdi: forventede ${Ve(f.values[0])}`:`Ugyldigt valg: forventede en af følgende ${ge(f.values,"|")}`;case"too_big":{const w=f.inclusive?"<=":"<",q=o(f.origin),K=s(f.origin);return q?`For stor: forventede ${K??"value"} ${q.verb} ${w} ${f.maximum.toString()} ${q.unit??"elementer"}`:`For stor: forventede ${K??"value"} havde ${w} ${f.maximum.toString()}`}case"too_small":{const w=f.inclusive?">=":">",q=o(f.origin),K=s(f.origin);return q?`For lille: forventede ${K} ${q.verb} ${w} ${f.minimum.toString()} ${q.unit}`:`For lille: forventede ${K} havde ${w} ${f.minimum.toString()}`}case"invalid_format":{const w=f;return w.format==="starts_with"?`Ugyldig streng: skal starte med "${w.prefix}"`:w.format==="ends_with"?`Ugyldig streng: skal ende med "${w.suffix}"`:w.format==="includes"?`Ugyldig streng: skal indeholde "${w.includes}"`:w.format==="regex"?`Ugyldig streng: skal matche mønsteret ${w.pattern}`:`Ugyldig ${a[w.format]??f.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${f.divisor}`;case"unrecognized_keys":return`${f.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${ge(f.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${f.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${f.origin}`;default:return"Ugyldigt input"}}};function Ey(){return{localeError:Oy()}}const Py=()=>{const 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 r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"Zahl";case"object":{if(Array.isArray(t))return"Array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Ungültige Eingabe: erwartet ${t.expected}, erhalten ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${Ve(t.values[0])}`:`Ungültige Option: erwartet eine von ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ${f.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${a}${t.maximum.toString()} ist`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ${f.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${a}${t.minimum.toString()} ist`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ungültiger String: muss mit "${a.prefix}" beginnen`:a.format==="ends_with"?`Ungültiger String: muss mit "${a.suffix}" enden`:a.format==="includes"?`Ungültiger String: muss "${a.includes}" enthalten`:a.format==="regex"?`Ungültiger String: muss dem Muster ${a.pattern} entsprechen`:`Ungültig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function Cy(){return{localeError:Py()}}const Uy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Ay=()=>{const 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"}};function r(s){return e[s]??null}const o={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"};return s=>{switch(s.code){case"invalid_type":return`Invalid input: expected ${s.expected}, received ${Uy(s.input)}`;case"invalid_value":return s.values.length===1?`Invalid input: expected ${Ve(s.values[0])}`:`Invalid option: expected one of ${ge(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Too big: expected ${s.origin??"value"} to have ${t}${s.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${s.origin??"value"} to be ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Too small: expected ${s.origin} to have ${t}${s.minimum.toString()} ${a.unit}`:`Too small: expected ${s.origin} to be ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Invalid string: must start with "${t.prefix}"`:t.format==="ends_with"?`Invalid string: must end with "${t.suffix}"`:t.format==="includes"?`Invalid string: must include "${t.includes}"`:t.format==="regex"?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${o[t.format]??s.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${s.divisor}`;case"unrecognized_keys":return`Unrecognized key${s.keys.length>1?"s":""}: ${ge(s.keys,", ")}`;case"invalid_key":return`Invalid key in ${s.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${s.origin}`;default:return"Invalid input"}}};function rm(){return{localeError:Ay()}}const Dy=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Ly=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function r(s){return e[s]??null}const o={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",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ŭro",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"};return s=>{switch(s.code){case"invalid_type":return`Nevalida enigo: atendiĝis ${s.expected}, riceviĝis ${Dy(s.input)}`;case"invalid_value":return s.values.length===1?`Nevalida enigo: atendiĝis ${Ve(s.values[0])}`:`Nevalida opcio: atendiĝis unu el ${ge(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${s.origin??"valoro"} havu ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Tro malgranda: atendiĝis ke ${s.origin} havu ${t}${s.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${s.origin} estu ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${o[t.format]??s.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${s.divisor}`;case"unrecognized_keys":return`Nekonata${s.keys.length>1?"j":""} ŝlosilo${s.keys.length>1?"j":""}: ${ge(s.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${s.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${s.origin}`;default:return"Nevalida enigo"}}};function My(){return{localeError:Ly()}}const Zy=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},r={string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};function o(f){return e[f]??null}function s(f){return r[f]??f}const t=f=>{const w=typeof f;switch(w){case"number":return Number.isNaN(f)?"NaN":"number";case"object":return Array.isArray(f)?"array":f===null?"null":Object.getPrototypeOf(f)!==Object.prototype?f.constructor.name:"object"}return w},a={regex:"entrada",email:"dirección de correo electrónico",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ón ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"};return f=>{switch(f.code){case"invalid_type":return`Entrada inválida: se esperaba ${s(f.expected)}, recibido ${s(t(f.input))}`;case"invalid_value":return f.values.length===1?`Entrada inválida: se esperaba ${Ve(f.values[0])}`:`Opción inválida: se esperaba una de ${ge(f.values,"|")}`;case"too_big":{const w=f.inclusive?"<=":"<",q=o(f.origin),K=s(f.origin);return q?`Demasiado grande: se esperaba que ${K??"valor"} tuviera ${w}${f.maximum.toString()} ${q.unit??"elementos"}`:`Demasiado grande: se esperaba que ${K??"valor"} fuera ${w}${f.maximum.toString()}`}case"too_small":{const w=f.inclusive?">=":">",q=o(f.origin),K=s(f.origin);return q?`Demasiado pequeño: se esperaba que ${K} tuviera ${w}${f.minimum.toString()} ${q.unit}`:`Demasiado pequeño: se esperaba que ${K} fuera ${w}${f.minimum.toString()}`}case"invalid_format":{const w=f;return w.format==="starts_with"?`Cadena inválida: debe comenzar con "${w.prefix}"`:w.format==="ends_with"?`Cadena inválida: debe terminar en "${w.suffix}"`:w.format==="includes"?`Cadena inválida: debe incluir "${w.includes}"`:w.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${w.pattern}`:`Inválido ${a[w.format]??f.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${f.divisor}`;case"unrecognized_keys":return`Llave${f.keys.length>1?"s":""} desconocida${f.keys.length>1?"s":""}: ${ge(f.keys,", ")}`;case"invalid_key":return`Llave inválida en ${s(f.origin)}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${s(f.origin)}`;default:return"Entrada inválida"}}};function Ry(){return{localeError:Zy()}}const qy=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"آرایه";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"};return t=>{switch(t.code){case"invalid_type":return`ورودی نامعتبر: میبایست ${t.expected} میبود، ${o(t.input)} دریافت شد`;case"invalid_value":return t.values.length===1?`ورودی نامعتبر: میبایست ${Ve(t.values[0])} میبود`:`گزینه نامعتبر: میبایست یکی از ${ge(t.values,"|")} میبود`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${a}${t.maximum.toString()} باشد`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${a}${t.minimum.toString()} باشد`}case"invalid_format":{const a=t;return a.format==="starts_with"?`رشته نامعتبر: باید با "${a.prefix}" شروع شود`:a.format==="ends_with"?`رشته نامعتبر: باید با "${a.suffix}" تمام شود`:a.format==="includes"?`رشته نامعتبر: باید شامل "${a.includes}" باشد`:a.format==="regex"?`رشته نامعتبر: باید با الگوی ${a.pattern} مطابقت داشته باشد`:`${s[a.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${ge(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function Fy(){return{localeError:qy()}}const Wy=()=>{const e={string:{unit:"merkkiä",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äivämäärän"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"säännöllinen lauseke",email:"sähköpostiosoite",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äivämäärä",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"};return t=>{switch(t.code){case"invalid_type":return`Virheellinen tyyppi: odotettiin ${t.expected}, oli ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${Ve(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Liian suuri: ${f.subject} täytyy olla ${a}${t.maximum.toString()} ${f.unit}`.trim():`Liian suuri: arvon täytyy olla ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Liian pieni: ${f.subject} täytyy olla ${a}${t.minimum.toString()} ${f.unit}`.trim():`Liian pieni: arvon täytyy olla ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${a.prefix}"`:a.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${a.suffix}"`:a.format==="includes"?`Virheellinen syöte: täytyy sisältää "${a.includes}"`:a.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${a.pattern}`:`Virheellinen ${s[a.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${ge(t.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öte"}}};function Vy(){return{localeError:Wy()}}const Qy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombre";case"object":{if(Array.isArray(t))return"tableau";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : ${t.expected} attendu, ${o(t.input)} reçu`;case"invalid_value":return t.values.length===1?`Entrée invalide : ${Ve(t.values[0])} attendu`:`Option invalide : une valeur parmi ${ge(t.values,"|")} attendue`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Trop grand : ${t.origin??"valeur"} doit ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"élément(s)"}`:`Trop grand : ${t.origin??"valeur"} doit être ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Trop petit : ${t.origin} doit ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : ${t.origin} doit être ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${ge(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function Gy(){return{localeError:Qy()}}const Jy=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"entrée",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ée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"};return t=>{switch(t.code){case"invalid_type":return`Entrée invalide : attendu ${t.expected}, reçu ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${Ve(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"≤":"<",f=r(t.origin);return f?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${a}${t.maximum.toString()} ${f.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"≥":">",f=r(t.origin);return f?`Trop petit : attendu que ${t.origin} ait ${a}${t.minimum.toString()} ${f.unit}`:`Trop petit : attendu que ${t.origin} soit ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chaîne invalide : doit commencer par "${a.prefix}"`:a.format==="ends_with"?`Chaîne invalide : doit se terminer par "${a.suffix}"`:a.format==="includes"?`Chaîne invalide : doit inclure "${a.includes}"`:a.format==="regex"?`Chaîne invalide : doit correspondre au motif ${a.pattern}`:`${s[a.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${ge(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function By(){return{localeError:Jy()}}const Yy=()=>{const e={string:{unit:"אותיות",verb:"לכלול"},file:{unit:"בייטים",verb:"לכלול"},array:{unit:"פריטים",verb:"לכלול"},set:{unit:"פריטים",verb:"לכלול"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"קלט",email:"כתובת אימייל",url:"כתובת רשת",emoji:"אימוג'י",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"תאריך וזמן ISO",date:"תאריך ISO",time:"זמן ISO",duration:"משך זמן ISO",ipv4:"כתובת IPv4",ipv6:"כתובת IPv6",cidrv4:"טווח IPv4",cidrv6:"טווח IPv6",base64:"מחרוזת בבסיס 64",base64url:"מחרוזת בבסיס 64 לכתובות רשת",json_string:"מחרוזת JSON",e164:"מספר E.164",jwt:"JWT",template_literal:"קלט"};return t=>{switch(t.code){case"invalid_type":return`קלט לא תקין: צריך ${t.expected}, התקבל ${o(t.input)}`;case"invalid_value":return t.values.length===1?`קלט לא תקין: צריך ${Ve(t.values[0])}`:`קלט לא תקין: צריך אחת מהאפשרויות ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()} ${f.unit??"elements"}`:`גדול מדי: ${t.origin??"value"} צריך להיות ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()} ${f.unit}`:`קטן מדי: ${t.origin} צריך להיות ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`מחרוזת לא תקינה: חייבת להתחיל ב"${a.prefix}"`:a.format==="ends_with"?`מחרוזת לא תקינה: חייבת להסתיים ב "${a.suffix}"`:a.format==="includes"?`מחרוזת לא תקינה: חייבת לכלול "${a.includes}"`:a.format==="regex"?`מחרוזת לא תקינה: חייבת להתאים לתבנית ${a.pattern}`:`${s[a.format]??t.format} לא תקין`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case"unrecognized_keys":return`מפתח${t.keys.length>1?"ות":""} לא מזוה${t.keys.length>1?"ים":"ה"}: ${ge(t.keys,", ")}`;case"invalid_key":return`מפתח לא תקין ב${t.origin}`;case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t.origin}`;default:return"קלט לא תקין"}}};function Ky(){return{localeError:Yy()}}const Hy=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"szám";case"object":{if(Array.isArray(t))return"tömb";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"bemenet",email:"email cím",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őbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"};return t=>{switch(t.code){case"invalid_type":return`Érvénytelen bemenet: a várt érték ${t.expected}, a kapott érték ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${Ve(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${a}${t.maximum.toString()} ${f.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${a}${t.minimum.toString()} ${f.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Érvénytelen string: "${a.prefix}" értékkel kell kezdődnie`:a.format==="ends_with"?`Érvénytelen string: "${a.suffix}" értékkel kell végződnie`:a.format==="includes"?`Érvénytelen string: "${a.includes}" értéket kell tartalmaznia`:a.format==="regex"?`Érvénytelen string: ${a.pattern} mintának kell megfelelnie`:`Érvénytelen ${s[a.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function Xy(){return{localeError:Hy()}}const e$=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Input tidak valid: diharapkan ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${Ve(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: diharapkan ${t.origin} memiliki ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak valid: harus dimulai dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak valid: harus berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak valid: harus menyertakan "${a.includes}"`:a.format==="regex"?`String tidak valid: harus sesuai pola ${a.pattern}`:`${s[a.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function t$(){return{localeError:e$()}}const r$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"númer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},n$=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function r(s){return e[s]??null}const o={regex:"gildi",email:"netfang",url:"vefslóð",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ími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",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ölugildi",jwt:"JWT",template_literal:"gildi"};return s=>{switch(s.code){case"invalid_type":return`Rangt gildi: Þú slóst inn ${r$(s.input)} þar sem á að vera ${s.expected}`;case"invalid_value":return s.values.length===1?`Rangt gildi: gert ráð fyrir ${Ve(s.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${ge(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} hafi ${t}${s.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${s.origin??"gildi"} sé ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Of lítið: gert er ráð fyrir að ${s.origin} hafi ${t}${s.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${s.origin} sé ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format==="ends_with"?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format==="includes"?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${o[t.format]??s.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${s.divisor}`;case"unrecognized_keys":return`Óþekkt ${s.keys.length>1?"ir lyklar":"ur lykill"}: ${ge(s.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${s.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${s.origin}`;default:return"Rangt gildi"}}};function i$(){return{localeError:n$()}}const o$=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numero";case"object":{if(Array.isArray(t))return"vettore";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Input non valido: atteso ${t.expected}, ricevuto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input non valido: atteso ${Ve(t.values[0])}`:`Opzione non valida: atteso uno tra ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Troppo grande: ${t.origin??"valore"} deve avere ${a}${t.maximum.toString()} ${f.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Troppo piccolo: ${t.origin} deve avere ${a}${t.minimum.toString()} ${f.unit}`:`Troppo piccolo: ${t.origin} deve essere ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Stringa non valida: deve iniziare con "${a.prefix}"`:a.format==="ends_with"?`Stringa non valida: deve terminare con "${a.suffix}"`:a.format==="includes"?`Stringa non valida: deve includere "${a.includes}"`:a.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function a$(){return{localeError:o$()}}const s$=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"数値";case"object":{if(Array.isArray(t))return"配列";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"};return t=>{switch(t.code){case"invalid_type":return`無効な入力: ${t.expected}が期待されましたが、${o(t.input)}が入力されました`;case"invalid_value":return t.values.length===1?`無効な入力: ${Ve(t.values[0])}が期待されました`:`無効な選択: ${ge(t.values,"、")}のいずれかである必要があります`;case"too_big":{const a=t.inclusive?"以下である":"より小さい",f=r(t.origin);return f?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${f.unit??"要素"}${a}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a}必要があります`}case"too_small":{const a=t.inclusive?"以上である":"より大きい",f=r(t.origin);return f?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${f.unit}${a}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a}必要があります`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無効な文字列: "${a.prefix}"で始まる必要があります`:a.format==="ends_with"?`無効な文字列: "${a.suffix}"で終わる必要があります`:a.format==="includes"?`無効な文字列: "${a.includes}"を含む必要があります`:a.format==="regex"?`無効な文字列: パターン${a.pattern}に一致する必要があります`:`無効な${s[a.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${ge(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function u$(){return{localeError:s$()}}const l$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"რიცხვი";case"object":{if(Array.isArray(e))return"მასივი";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return{string:"სტრინგი",boolean:"ბულეანი",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"ფუნქცია"}[r]??r},c$=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(s){return e[s]??null}const o={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული სტრინგი",base64url:"base64url-კოდირებული სტრინგი",json_string:"JSON სტრინგი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"};return s=>{switch(s.code){case"invalid_type":return`არასწორი შეყვანა: მოსალოდნელი ${s.expected}, მიღებული ${l$(s.input)}`;case"invalid_value":return s.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${Ve(s.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${ge(s.values,"|")}-დან`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} ${a.verb} ${t}${s.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${s.origin??"მნიშვნელობა"} იყოს ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${s.origin} ${a.verb} ${t}${s.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${s.origin} იყოს ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`არასწორი სტრინგი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format==="ends_with"?`არასწორი სტრინგი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format==="includes"?`არასწორი სტრინგი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format==="regex"?`არასწორი სტრინგი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${o[t.format]??s.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${s.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${s.keys.length>1?"ები":"ი"}: ${ge(s.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${s.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${s.origin}-ში`;default:return"არასწორი შეყვანა"}}};function d$(){return{localeError:c$()}}const f$=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"មិនមែនជាលេខ (NaN)":"លេខ";case"object":{if(Array.isArray(t))return"អារេ (Array)";if(t===null)return"គ្មានតម្លៃ (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"};return t=>{switch(t.code){case"invalid_type":return`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t.expected} ប៉ុន្តែទទួលបាន ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${Ve(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()} ${f.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()} ${f.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${a.prefix}"`:a.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${a.suffix}"`:a.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${a.includes}"`:a.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${a.pattern}`:`មិនត្រឹមត្រូវ៖ ${s[a.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${ge(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function nm(){return{localeError:f$()}}function m$(){return nm()}const p$=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"};return t=>{switch(t.code){case"invalid_type":return`잘못된 입력: 예상 타입은 ${t.expected}, 받은 타입은 ${o(t.input)}입니다`;case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${Ve(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${ge(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const a=t.inclusive?"이하":"미만",f=a==="미만"?"이어야 합니다":"여야 합니다",w=r(t.origin),q=w?.unit??"요소";return w?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${a}${f}`}case"too_small":{const a=t.inclusive?"이상":"초과",f=a==="이상"?"이어야 합니다":"여야 합니다",w=r(t.origin),q=w?.unit??"요소";return w?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${q} ${a}${f}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${a}${f}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`잘못된 문자열: "${a.prefix}"(으)로 시작해야 합니다`:a.format==="ends_with"?`잘못된 문자열: "${a.suffix}"(으)로 끝나야 합니다`:a.format==="includes"?`잘못된 문자열: "${a.includes}"을(를) 포함해야 합니다`:a.format==="regex"?`잘못된 문자열: 정규식 ${a.pattern} 패턴과 일치해야 합니다`:`잘못된 ${s[a.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${ge(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function g$(){return{localeError:p$()}}const v$=e=>Wi(typeof e,e),Wi=(e,r=void 0)=>{switch(e){case"number":return Number.isNaN(r)?"NaN":"skaičius";case"bigint":return"sveikasis skaičius";case"string":return"eilutė";case"boolean":return"loginė reikšmė";case"undefined":case"void":return"neapibrėžta reikšmė";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return r===void 0?"nežinomas objektas":r===null?"nulinė reikšmė":Array.isArray(r)?"masyvas":Object.getPrototypeOf(r)!==Object.prototype&&r.constructor?r.constructor.name:"objektas";case"null":return"nulinė reikšmė"}return e},Vi=e=>e.charAt(0).toUpperCase()+e.slice(1);function im(e){const r=Math.abs(e),o=r%10,s=r%100;return s>=11&&s<=19||o===0?"many":o===1?"one":"few"}const h$=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function r(s,t,a,f){const w=e[s]??null;return w===null?w:{unit:w.unit[t],verb:w.verb[f][a?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto 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ė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"};return s=>{switch(s.code){case"invalid_type":return`Gautas tipas ${v$(s.input)}, o tikėtasi - ${Wi(s.expected)}`;case"invalid_value":return s.values.length===1?`Privalo būti ${Ve(s.values[0])}`:`Privalo būti vienas iš ${ge(s.values,"|")} pasirinkimų`;case"too_big":{const t=Wi(s.origin),a=r(s.origin,im(Number(s.maximum)),s.inclusive??!1,"smaller");if(a?.verb)return`${Vi(t??s.origin??"reikšmė")} ${a.verb} ${s.maximum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${Vi(t??s.origin??"reikšmė")} turi būti ${f} ${s.maximum.toString()} ${a?.unit}`}case"too_small":{const t=Wi(s.origin),a=r(s.origin,im(Number(s.minimum)),s.inclusive??!1,"bigger");if(a?.verb)return`${Vi(t??s.origin??"reikšmė")} ${a.verb} ${s.minimum.toString()} ${a.unit??"elementų"}`;const f=s.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${Vi(t??s.origin??"reikšmė")} turi būti ${f} ${s.minimum.toString()} ${a?.unit}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Eilutė privalo prasidėti "${t.prefix}"`:t.format==="ends_with"?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format==="includes"?`Eilutė privalo įtraukti "${t.includes}"`:t.format==="regex"?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${o[t.format]??s.format}`}case"not_multiple_of":return`Skaičius privalo būti ${s.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${s.keys.length>1?"i":"as"} rakt${s.keys.length>1?"ai":"as"}: ${ge(s.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const t=Wi(s.origin);return`${Vi(t??s.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function b$(){return{localeError:h$()}}const y$=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"број";case"object":{if(Array.isArray(t))return"низа";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"};return t=>{switch(t.code){case"invalid_type":return`Грешен внес: се очекува ${t.expected}, примено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Invalid input: expected ${Ve(t.values[0])}`:`Грешана опција: се очекува една ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${a}${t.maximum.toString()} ${f.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Премногу мал: се очекува ${t.origin} да има ${a}${t.minimum.toString()} ${f.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неважечка низа: мора да започнува со "${a.prefix}"`:a.format==="ends_with"?`Неважечка низа: мора да завршува со "${a.suffix}"`:a.format==="includes"?`Неважечка низа: мора да вклучува "${a.includes}"`:a.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${a.pattern}`:`Invalid ${s[a.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function $$(){return{localeError:y$()}}const _$=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nombor";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Input tidak sah: dijangka ${t.expected}, diterima ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${Ve(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Terlalu besar: dijangka ${t.origin??"nilai"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Terlalu kecil: dijangka ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`String tidak sah: mesti bermula dengan "${a.prefix}"`:a.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${a.suffix}"`:a.format==="includes"?`String tidak sah: mesti mengandungi "${a.includes}"`:a.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${a.pattern}`:`${s[a.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${ge(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function w$(){return{localeError:_$()}}const k$=()=>{const e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"getal";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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"};return t=>{switch(t.code){case"invalid_type":return`Ongeldige invoer: verwacht ${t.expected}, ontving ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${Ve(t.values[0])}`:`Ongeldige optie: verwacht één van ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} ${f.unit??"elementen"} bevat`:`Te lang: verwacht dat ${t.origin??"waarde"} ${a}${t.maximum.toString()} is`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} ${f.unit} bevat`:`Te kort: verwacht dat ${t.origin} ${a}${t.minimum.toString()} is`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ongeldige tekst: moet met "${a.prefix}" beginnen`:a.format==="ends_with"?`Ongeldige tekst: moet op "${a.suffix}" eindigen`:a.format==="includes"?`Ongeldige tekst: moet "${a.includes}" bevatten`:a.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${a.pattern}`:`Ongeldig: ${s[a.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function x$(){return{localeError:k$()}}const S$=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"tall";case"object":{if(Array.isArray(t))return"liste";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={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åde",ipv6:"IPv6-område",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"};return t=>{switch(t.code){case"invalid_type":return`Ugyldig input: forventet ${t.expected}, fikk ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${Ve(t.values[0])}`:`Ugyldig valg: forventet en av ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()} ${f.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()} ${f.unit}`:`For lite(n): forventet ${t.origin} til å ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ugyldig streng: må starte med "${a.prefix}"`:a.format==="ends_with"?`Ugyldig streng: må ende med "${a.suffix}"`:a.format==="includes"?`Ugyldig streng: må inneholde "${a.includes}"`:a.format==="regex"?`Ugyldig streng: må matche mønsteret ${a.pattern}`:`Ugyldig ${s[a.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function I$(){return{localeError:S$()}}const z$=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"numara";case"object":{if(Array.isArray(t))return"saf";if(t===null)return"gayb";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"giren",email:"epostagâh",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âmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"};return t=>{switch(t.code){case"invalid_type":return`Fâsit giren: umulan ${t.expected}, alınan ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${Ve(t.values[0])}`:`Fâsit tercih: mûteberler ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} ${f.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${a}${t.maximum.toString()} olmalıydı.`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} ${f.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${a}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Fâsit metin: "${a.prefix}" ile başlamalı.`:a.format==="ends_with"?`Fâsit metin: "${a.suffix}" ile bitmeli.`:a.format==="includes"?`Fâsit metin: "${a.includes}" ihtivâ etmeli.`:a.format==="regex"?`Fâsit metin: ${a.pattern} nakşına uymalı.`:`Fâsit ${s[a.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function N$(){return{localeError:z$()}}const j$=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"عدد";case"object":{if(Array.isArray(t))return"ارې";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"};return t=>{switch(t.code){case"invalid_type":return`ناسم ورودي: باید ${t.expected} وای, مګر ${o(t.input)} ترلاسه شو`;case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${Ve(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${ge(t.values,"|")} څخه وای`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} ${f.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${a}${t.maximum.toString()} وي`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} ${f.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${a}${t.minimum.toString()} وي`}case"invalid_format":{const a=t;return a.format==="starts_with"?`ناسم متن: باید د "${a.prefix}" سره پیل شي`:a.format==="ends_with"?`ناسم متن: باید د "${a.suffix}" سره پای ته ورسيږي`:a.format==="includes"?`ناسم متن: باید "${a.includes}" ولري`:a.format==="regex"?`ناسم متن: باید د ${a.pattern} سره مطابقت ولري`:`${s[a.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${ge(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function T$(){return{localeError:j$()}}const O$=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"liczba";case"object":{if(Array.isArray(t))return"tablica";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"wyrażenie",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ąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"};return t=>{switch(t.code){case"invalid_type":return`Nieprawidłowe dane wejściowe: oczekiwano ${t.expected}, otrzymano ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${Ve(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.maximum.toString()} ${f.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${a}${t.minimum.toString()} ${f.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${a.prefix}"`:a.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${a.suffix}"`:a.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${a.includes}"`:a.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${a.pattern}`:`Nieprawidłow(y/a/e) ${s[a.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function E$(){return{localeError:O$()}}const P$=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"número";case"object":{if(Array.isArray(t))return"array";if(t===null)return"nulo";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"padrão",email:"endereço 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ção ISO",ipv4:"endereço IPv4",ipv6:"endereço 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úmero E.164",jwt:"JWT",template_literal:"entrada"};return t=>{switch(t.code){case"invalid_type":return`Tipo inválido: esperado ${t.expected}, recebido ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${Ve(t.values[0])}`:`Opção inválida: esperada uma das ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${a}${t.maximum.toString()} ${f.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Muito pequeno: esperado que ${t.origin} tivesse ${a}${t.minimum.toString()} ${f.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Texto inválido: deve começar com "${a.prefix}"`:a.format==="ends_with"?`Texto inválido: deve terminar com "${a.suffix}"`:a.format==="includes"?`Texto inválido: deve incluir "${a.includes}"`:a.format==="regex"?`Texto inválido: deve corresponder ao padrão ${a.pattern}`:`${s[a.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function C$(){return{localeError:P$()}}function om(e,r,o,s){const t=Math.abs(e),a=t%10,f=t%100;return f>=11&&f<=19?s:a===1?r:a>=2&&a<=4?o:s}const U$=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"массив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"};return t=>{switch(t.code){case"invalid_type":return`Неверный ввод: ожидалось ${t.expected}, получено ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${Ve(t.values[0])}`:`Неверный вариант: ожидалось одно из ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);if(f){const w=Number(t.maximum),q=om(w,f.unit.one,f.unit.few,f.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${a}${t.maximum.toString()} ${q}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);if(f){const w=Number(t.minimum),q=om(w,f.unit.one,f.unit.few,f.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${a}${t.minimum.toString()} ${q}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неверная строка: должна начинаться с "${a.prefix}"`:a.format==="ends_with"?`Неверная строка: должна заканчиваться на "${a.suffix}"`:a.format==="includes"?`Неверная строка: должна содержать "${a.includes}"`:a.format==="regex"?`Неверная строка: должна соответствовать шаблону ${a.pattern}`:`Неверный ${s[a.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function A$(){return{localeError:U$()}}const D$=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"število";case"object":{if(Array.isArray(t))return"tabela";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"vnos",email:"e-poštni 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 čas",date:"ISO datum",time:"ISO čas",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 številka",jwt:"JWT",template_literal:"vnos"};return t=>{switch(t.code){case"invalid_type":return`Neveljaven vnos: pričakovano ${t.expected}, prejeto ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${Ve(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${a}${t.maximum.toString()} ${f.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Premajhno: pričakovano, da bo ${t.origin} imelo ${a}${t.minimum.toString()} ${f.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Neveljaven niz: mora se začeti z "${a.prefix}"`:a.format==="ends_with"?`Neveljaven niz: mora se končati z "${a.suffix}"`:a.format==="includes"?`Neveljaven niz: mora vsebovati "${a.includes}"`:a.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${a.pattern}`:`Neveljaven ${s[a.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function L$(){return{localeError:D$()}}const M$=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"antal";case"object":{if(Array.isArray(t))return"lista";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"reguljärt 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äng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"};return t=>{switch(t.code){case"invalid_type":return`Ogiltig inmatning: förväntat ${t.expected}, fick ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${Ve(t.values[0])}`:`Ogiltigt val: förväntade en av ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()} ${f.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()} ${f.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ogiltig sträng: måste börja med "${a.prefix}"`:a.format==="ends_with"?`Ogiltig sträng: måste sluta med "${a.suffix}"`:a.format==="includes"?`Ogiltig sträng: måste innehålla "${a.includes}"`:a.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${a.pattern}"`:`Ogiltig(t) ${s[a.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${ge(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function Z$(){return{localeError:M$()}}const R$=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"எண் அல்லாதது":"எண்";case"object":{if(Array.isArray(t))return"அணி";if(t===null)return"வெறுமை";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"உள்ளீடு",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:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"};return t=>{switch(t.code){case"invalid_type":return`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t.expected}, பெறப்பட்டது ${o(t.input)}`;case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${Ve(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${ge(t.values,"|")} இல் ஒன்று`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ${f.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${a}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ${f.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${a}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const a=t;return a.format==="starts_with"?`தவறான சரம்: "${a.prefix}" இல் தொடங்க வேண்டும்`:a.format==="ends_with"?`தவறான சரம்: "${a.suffix}" இல் முடிவடைய வேண்டும்`:a.format==="includes"?`தவறான சரம்: "${a.includes}" ஐ உள்ளடக்க வேண்டும்`:a.format==="regex"?`தவறான சரம்: ${a.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${s[a.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function q$(){return{localeError:R$()}}const F$=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"ไม่ใช่ตัวเลข (NaN)":"ตัวเลข";case"object":{if(Array.isArray(t))return"อาร์เรย์ (Array)";if(t===null)return"ไม่มีค่า (null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"};return t=>{switch(t.code){case"invalid_type":return`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t.expected} แต่ได้รับ ${o(t.input)}`;case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${Ve(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"ไม่เกิน":"น้อยกว่า",f=r(t.origin);return f?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()} ${f.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${a} ${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?"อย่างน้อย":"มากกว่า",f=r(t.origin);return f?`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()} ${f.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${a} ${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a.prefix}"`:a.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a.suffix}"`:a.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a.includes}" อยู่ในข้อความ`:a.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a.pattern}`:`รูปแบบไม่ถูกต้อง: ${s[a.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${ge(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function W$(){return{localeError:F$()}}const V$=e=>{const r=typeof e;switch(r){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return r},Q$=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function r(s){return e[s]??null}const o={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üre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"};return s=>{switch(s.code){case"invalid_type":return`Geçersiz değer: beklenen ${s.expected}, alınan ${V$(s.input)}`;case"invalid_value":return s.values.length===1?`Geçersiz değer: beklenen ${Ve(s.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${ge(s.values,"|")}`;case"too_big":{const t=s.inclusive?"<=":"<",a=r(s.origin);return a?`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${s.origin??"değer"} ${t}${s.maximum.toString()}`}case"too_small":{const t=s.inclusive?">=":">",a=r(s.origin);return a?`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${s.origin} ${t}${s.minimum.toString()}`}case"invalid_format":{const t=s;return t.format==="starts_with"?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format==="ends_with"?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format==="includes"?`Geçersiz metin: "${t.includes}" içermeli`:t.format==="regex"?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${o[t.format]??s.format}`}case"not_multiple_of":return`Geçersiz sayı: ${s.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${s.keys.length>1?"lar":""}: ${ge(s.keys,", ")}`;case"invalid_key":return`${s.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${s.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function G$(){return{localeError:Q$()}}const J$=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"число";case"object":{if(Array.isArray(t))return"масив";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"};return t=>{switch(t.code){case"invalid_type":return`Неправильні вхідні дані: очікується ${t.expected}, отримано ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${Ve(t.values[0])}`:`Неправильна опція: очікується одне з ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Занадто велике: очікується, що ${t.origin??"значення"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Занадто мале: очікується, що ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Неправильний рядок: повинен починатися з "${a.prefix}"`:a.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${a.suffix}"`:a.format==="includes"?`Неправильний рядок: повинен містити "${a.includes}"`:a.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${a.pattern}`:`Неправильний ${s[a.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${ge(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function am(){return{localeError:J$()}}function B$(){return am()}const Y$=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"نمبر";case"object":{if(Array.isArray(t))return"آرے";if(t===null)return"نل";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"};return t=>{switch(t.code){case"invalid_type":return`غلط ان پٹ: ${t.expected} متوقع تھا، ${o(t.input)} موصول ہوا`;case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${Ve(t.values[0])} متوقع تھا`:`غلط آپشن: ${ge(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`بہت بڑا: ${t.origin??"ویلیو"} کے ${a}${t.maximum.toString()} ${f.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${a}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`بہت چھوٹا: ${t.origin} کے ${a}${t.minimum.toString()} ${f.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${a}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const a=t;return a.format==="starts_with"?`غلط سٹرنگ: "${a.prefix}" سے شروع ہونا چاہیے`:a.format==="ends_with"?`غلط سٹرنگ: "${a.suffix}" پر ختم ہونا چاہیے`:a.format==="includes"?`غلط سٹرنگ: "${a.includes}" شامل ہونا چاہیے`:a.format==="regex"?`غلط سٹرنگ: پیٹرن ${a.pattern} سے میچ ہونا چاہیے`:`غلط ${s[a.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${ge(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function K$(){return{localeError:Y$()}}const H$=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"số";case"object":{if(Array.isArray(t))return"mảng";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"đầu vào",email:"địa chỉ 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ày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"};return t=>{switch(t.code){case"invalid_type":return`Đầu vào không hợp lệ: mong đợi ${t.expected}, nhận được ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${Ve(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${f.verb} ${a}${t.maximum.toString()} ${f.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Quá nhỏ: mong đợi ${t.origin} ${f.verb} ${a}${t.minimum.toString()} ${f.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${a.prefix}"`:a.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${a.suffix}"`:a.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${a.includes}"`:a.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${a.pattern}`:`${s[a.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${ge(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function X$(){return{localeError:H$()}}const e_=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"非数字(NaN)":"数字";case"object":{if(Array.isArray(t))return"数组";if(t===null)return"空值(null)";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"};return t=>{switch(t.code){case"invalid_type":return`无效输入:期望 ${t.expected},实际接收 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`无效输入:期望 ${Ve(t.values[0])}`:`无效选项:期望以下之一 ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()} ${f.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()} ${f.unit}`:`数值过小:期望 ${t.origin} ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`无效字符串:必须以 "${a.prefix}" 开头`:a.format==="ends_with"?`无效字符串:必须以 "${a.suffix}" 结尾`:a.format==="includes"?`无效字符串:必须包含 "${a.includes}"`:a.format==="regex"?`无效字符串:必须满足正则表达式 ${a.pattern}`:`无效${s[a.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${ge(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function t_(){return{localeError:e_()}}const r_=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"number";case"object":{if(Array.isArray(t))return"array";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"輸入",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:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"};return t=>{switch(t.code){case"invalid_type":return`無效的輸入值:預期為 ${t.expected},但收到 ${o(t.input)}`;case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${Ve(t.values[0])}`:`無效的選項:預期為以下其中之一 ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()} ${f.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${a}${t.maximum.toString()}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()} ${f.unit}`:`數值過小:預期 ${t.origin} 應為 ${a}${t.minimum.toString()}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`無效的字串:必須以 "${a.prefix}" 開頭`:a.format==="ends_with"?`無效的字串:必須以 "${a.suffix}" 結尾`:a.format==="includes"?`無效的字串:必須包含 "${a.includes}"`:a.format==="regex"?`無效的字串:必須符合格式 ${a.pattern}`:`無效的 ${s[a.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${ge(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function n_(){return{localeError:r_()}}const i_=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function r(t){return e[t]??null}const o=t=>{const a=typeof t;switch(a){case"number":return Number.isNaN(t)?"NaN":"nọ́mbà";case"object":{if(Array.isArray(t))return"akopọ";if(t===null)return"null";if(Object.getPrototypeOf(t)!==Object.prototype&&t.constructor)return t.constructor.name}}return a},s={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",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:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"};return t=>{switch(t.code){case"invalid_type":return`Ìbáwọlé aṣìṣe: a ní láti fi ${t.expected}, àmọ̀ a rí ${o(t.input)}`;case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${Ve(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${ge(t.values,"|")}`;case"too_big":{const a=t.inclusive?"<=":"<",f=r(t.origin);return f?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${f.verb} ${a}${t.maximum} ${f.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${a}${t.maximum}`}case"too_small":{const a=t.inclusive?">=":">",f=r(t.origin);return f?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${f.verb} ${a}${t.minimum} ${f.unit}`:`Kéré ju: a ní láti jẹ́ ${a}${t.minimum}`}case"invalid_format":{const a=t;return a.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${a.prefix}"`:a.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${a.suffix}"`:a.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${a.includes}"`:a.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${a.pattern}`:`Aṣìṣe: ${s[a.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${ge(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function o_(){return{localeError:i_()}}const sm=Object.freeze(Object.defineProperty({__proto__:null,ar:wy,az:xy,be:Iy,ca:Ny,cs:Ty,da:Ey,de:Cy,en:rm,eo:My,es:Ry,fa:Fy,fi:Vy,fr:Gy,frCA:By,he:Ky,hu:Xy,id:t$,is:i$,it:a$,ja:u$,ka:d$,kh:m$,km:nm,ko:g$,lt:b$,mk:$$,ms:w$,nl:x$,no:I$,ota:N$,pl:E$,ps:T$,pt:C$,ru:A$,sl:L$,sv:Z$,ta:q$,th:W$,tr:G$,ua:B$,uk:am,ur:K$,vi:X$,yo:o_,zhCN:t_,zhTW:n_},Symbol.toStringTag,{value:"Module"})),um=Symbol("ZodOutput"),lm=Symbol("ZodInput");class ws{constructor(){this._map=new WeakMap,this._idmap=new Map}add(r,...o){const s=o[0];if(this._map.set(r,s),s&&typeof s=="object"&&"id"in s){if(this._idmap.has(s.id))throw new Error(`ID ${s.id} already exists in the registry`);this._idmap.set(s.id,r)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(r){const o=this._map.get(r);return o&&typeof o=="object"&&"id"in o&&this._idmap.delete(o.id),this._map.delete(r),this}get(r){const o=r._zod.parent;if(o){const s={...this.get(o)??{}};delete s.id;const t={...s,...this._map.get(r)};return Object.keys(t).length?t:void 0}return this._map.get(r)}has(r){return this._map.has(r)}}function ks(){return new ws}const Pn=ks();function cm(e,r){return new e({type:"string",...ae(r)})}function dm(e,r){return new e({type:"string",coerce:!0,...ae(r)})}function xs(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ae(r)})}function Zo(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ae(r)})}function Ss(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ae(r)})}function Is(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ae(r)})}function zs(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ae(r)})}function Ns(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ae(r)})}function Ro(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ae(r)})}function js(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ae(r)})}function Ts(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ae(r)})}function Os(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ae(r)})}function Es(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ae(r)})}function Ps(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ae(r)})}function Cs(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ae(r)})}function Us(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ae(r)})}function As(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ae(r)})}function Ds(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ae(r)})}function Ls(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ae(r)})}function Ms(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ae(r)})}function Zs(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ae(r)})}function Rs(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ae(r)})}function qs(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ae(r)})}function Fs(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ae(r)})}const fm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function mm(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ae(r)})}function pm(e,r){return new e({type:"string",format:"date",check:"string_format",...ae(r)})}function gm(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...ae(r)})}function vm(e,r){return new e({type:"string",format:"duration",check:"string_format",...ae(r)})}function hm(e,r){return new e({type:"number",checks:[],...ae(r)})}function bm(e,r){return new e({type:"number",coerce:!0,checks:[],...ae(r)})}function ym(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ae(r)})}function $m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...ae(r)})}function _m(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...ae(r)})}function wm(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...ae(r)})}function km(e,r){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...ae(r)})}function xm(e,r){return new e({type:"boolean",...ae(r)})}function Sm(e,r){return new e({type:"boolean",coerce:!0,...ae(r)})}function Im(e,r){return new e({type:"bigint",...ae(r)})}function zm(e,r){return new e({type:"bigint",coerce:!0,...ae(r)})}function Nm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...ae(r)})}function jm(e,r){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...ae(r)})}function Tm(e,r){return new e({type:"symbol",...ae(r)})}function Om(e,r){return new e({type:"undefined",...ae(r)})}function Em(e,r){return new e({type:"null",...ae(r)})}function Pm(e){return new e({type:"any"})}function Cm(e){return new e({type:"unknown"})}function Um(e,r){return new e({type:"never",...ae(r)})}function Am(e,r){return new e({type:"void",...ae(r)})}function Dm(e,r){return new e({type:"date",...ae(r)})}function Lm(e,r){return new e({type:"date",coerce:!0,...ae(r)})}function Mm(e,r){return new e({type:"nan",...ae(r)})}function Cn(e,r){return new fs({check:"less_than",...ae(r),value:e,inclusive:!1})}function Ur(e,r){return new fs({check:"less_than",...ae(r),value:e,inclusive:!0})}function Un(e,r){return new ms({check:"greater_than",...ae(r),value:e,inclusive:!1})}function vr(e,r){return new ms({check:"greater_than",...ae(r),value:e,inclusive:!0})}function Zm(e){return Un(0,e)}function Rm(e){return Cn(0,e)}function qm(e){return Ur(0,e)}function Fm(e){return vr(0,e)}function Qi(e,r){return new fd({check:"multiple_of",...ae(r),value:e})}function qo(e,r){return new gd({check:"max_size",...ae(r),maximum:e})}function Gi(e,r){return new vd({check:"min_size",...ae(r),minimum:e})}function Ws(e,r){return new hd({check:"size_equals",...ae(r),size:e})}function Fo(e,r){return new bd({check:"max_length",...ae(r),maximum:e})}function ui(e,r){return new yd({check:"min_length",...ae(r),minimum:e})}function Wo(e,r){return new $d({check:"length_equals",...ae(r),length:e})}function Vs(e,r){return new _d({check:"string_format",format:"regex",...ae(r),pattern:e})}function Qs(e){return new wd({check:"string_format",format:"lowercase",...ae(e)})}function Gs(e){return new kd({check:"string_format",format:"uppercase",...ae(e)})}function Js(e,r){return new xd({check:"string_format",format:"includes",...ae(r),includes:e})}function Bs(e,r){return new Sd({check:"string_format",format:"starts_with",...ae(r),prefix:e})}function Ys(e,r){return new Id({check:"string_format",format:"ends_with",...ae(r),suffix:e})}function Wm(e,r,o){return new Nd({check:"property",property:e,schema:r,...ae(o)})}function Ks(e,r){return new jd({check:"mime_type",mime:e,...ae(r)})}function An(e){return new Td({check:"overwrite",tx:e})}function Hs(e){return An(r=>r.normalize(e))}function Xs(){return An(e=>e.trim())}function eu(){return An(e=>e.toLowerCase())}function tu(){return An(e=>e.toUpperCase())}function Vm(e,r,o){return new e({type:"array",element:r,...ae(o)})}function a_(e,r,o){return new e({type:"union",options:r,...ae(o)})}function s_(e,r,o,s){return new e({type:"union",options:o,discriminator:r,...ae(s)})}function u_(e,r,o){return new e({type:"intersection",left:r,right:o})}function l_(e,r,o,s){const t=o instanceof Ge,a=t?s:o,f=t?o:null;return new e({type:"tuple",items:r,rest:f,...ae(a)})}function c_(e,r,o,s){return new e({type:"record",keyType:r,valueType:o,...ae(s)})}function d_(e,r,o,s){return new e({type:"map",keyType:r,valueType:o,...ae(s)})}function f_(e,r,o){return new e({type:"set",valueType:r,...ae(o)})}function m_(e,r,o){const s=Array.isArray(r)?Object.fromEntries(r.map(t=>[t,t])):r;return new e({type:"enum",entries:s,...ae(o)})}function p_(e,r,o){return new e({type:"enum",entries:r,...ae(o)})}function g_(e,r,o){return new e({type:"literal",values:Array.isArray(r)?r:[r],...ae(o)})}function Qm(e,r){return new e({type:"file",...ae(r)})}function v_(e,r){return new e({type:"transform",transform:r})}function h_(e,r){return new e({type:"optional",innerType:r})}function b_(e,r){return new e({type:"nullable",innerType:r})}function y_(e,r,o){return new e({type:"default",innerType:r,get defaultValue(){return typeof o=="function"?o():Oo(o)}})}function $_(e,r,o){return new e({type:"nonoptional",innerType:r,...ae(o)})}function __(e,r){return new e({type:"success",innerType:r})}function w_(e,r,o){return new e({type:"catch",innerType:r,catchValue:typeof o=="function"?o:()=>o})}function k_(e,r,o){return new e({type:"pipe",in:r,out:o})}function x_(e,r){return new e({type:"readonly",innerType:r})}function S_(e,r,o){return new e({type:"template_literal",parts:r,...ae(o)})}function I_(e,r){return new e({type:"lazy",getter:r})}function z_(e,r){return new e({type:"promise",innerType:r})}function Gm(e,r,o){const s=ae(o);return s.abort??(s.abort=!0),new e({type:"custom",check:"custom",fn:r,...s})}function Jm(e,r,o){return new e({type:"custom",check:"custom",fn:r,...ae(o)})}function Bm(e){const r=Ym(o=>(o.addIssue=s=>{if(typeof s=="string")o.issues.push(ai(s,o.value,r._zod.def));else{const t=s;t.fatal&&(t.continue=!1),t.code??(t.code="custom"),t.input??(t.input=o.value),t.inst??(t.inst=r),t.continue??(t.continue=!r._zod.def.abort),o.issues.push(ai(t))}},e(o.value,o)));return r}function Ym(e,r){const o=new Ct({check:"custom",...ae(r)});return o._zod.check=e,o}function Km(e,r){const o=ae(r);let s=o.truthy??["true","1","yes","on","y","enabled"],t=o.falsy??["false","0","no","off","n","disabled"];o.case!=="sensitive"&&(s=s.map(he=>typeof he=="string"?he.toLowerCase():he),t=t.map(he=>typeof he=="string"?he.toLowerCase():he));const a=new Set(s),f=new Set(t),w=e.Codec??_s,q=e.Boolean??vs,K=e.String??Fi,me=new K({type:"string",error:o.error}),le=new q({type:"boolean",error:o.error}),Re=new w({type:"pipe",in:me,out:le,transform:((he,Y)=>{let Ie=he;return o.case!=="sensitive"&&(Ie=Ie.toLowerCase()),a.has(Ie)?!0:f.has(Ie)?!1:(Y.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...f],input:Y.value,inst:Re,continue:!1}),{})}),reverseTransform:((he,Y)=>he===!0?s[0]||"true":t[0]||"false"),error:o.error});return Re}function Ji(e,r,o,s={}){const t=ae(s),a={...ae(s),check:"string_format",type:"string",format:r,fn:typeof o=="function"?o:w=>o.test(w),...t};return o instanceof RegExp&&(a.pattern=o),new e(a)}class ru{constructor(r){this.counter=0,this.metadataRegistry=r?.metadata??Pn,this.target=r?.target??"draft-2020-12",this.unrepresentable=r?.unrepresentable??"throw",this.override=r?.override??(()=>{}),this.io=r?.io??"output",this.seen=new Map}process(r,o={path:[],schemaPath:[]}){var s;const t=r._zod.def,a={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},f=this.seen.get(r);if(f)return f.count++,o.schemaPath.includes(r)&&(f.cycle=o.path),f.schema;const w={schema:{},count:1,cycle:void 0,path:o.path};this.seen.set(r,w);const q=r._zod.toJSONSchema?.();if(q)w.schema=q;else{const le={...o,schemaPath:[...o.schemaPath,r],path:o.path},Re=r._zod.parent;if(Re)w.ref=Re,this.process(Re,le),this.seen.get(Re).isParent=!0;else{const he=w.schema;switch(t.type){case"string":{const Y=he;Y.type="string";const{minimum:Ie,maximum:Ae,format:pt,patterns:ut,contentEncoding:ct}=r._zod.bag;if(typeof Ie=="number"&&(Y.minLength=Ie),typeof Ae=="number"&&(Y.maxLength=Ae),pt&&(Y.format=a[pt]??pt,Y.format===""&&delete Y.format),ct&&(Y.contentEncoding=ct),ut&&ut.size>0){const vt=[...ut];vt.length===1?Y.pattern=vt[0].source:vt.length>1&&(w.schema.allOf=[...vt.map(or=>({...this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{},pattern:or.source}))])}break}case"number":{const Y=he,{minimum:Ie,maximum:Ae,format:pt,multipleOf:ut,exclusiveMaximum:ct,exclusiveMinimum:vt}=r._zod.bag;typeof pt=="string"&&pt.includes("int")?Y.type="integer":Y.type="number",typeof vt=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(Y.minimum=vt,Y.exclusiveMinimum=!0):Y.exclusiveMinimum=vt),typeof Ie=="number"&&(Y.minimum=Ie,typeof vt=="number"&&this.target!=="draft-4"&&(vt>=Ie?delete Y.minimum:delete Y.exclusiveMinimum)),typeof ct=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(Y.maximum=ct,Y.exclusiveMaximum=!0):Y.exclusiveMaximum=ct),typeof Ae=="number"&&(Y.maximum=Ae,typeof ct=="number"&&this.target!=="draft-4"&&(ct<=Ae?delete Y.maximum:delete Y.exclusiveMaximum)),typeof ut=="number"&&(Y.multipleOf=ut);break}case"boolean":{const Y=he;Y.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(he.type="string",he.nullable=!0,he.enum=[null]):he.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{he.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const Y=he,{minimum:Ie,maximum:Ae}=r._zod.bag;typeof Ie=="number"&&(Y.minItems=Ie),typeof Ae=="number"&&(Y.maxItems=Ae),Y.type="array",Y.items=this.process(t.element,{...le,path:[...le.path,"items"]});break}case"object":{const Y=he;Y.type="object",Y.properties={};const Ie=t.shape;for(const ut in Ie)Y.properties[ut]=this.process(Ie[ut],{...le,path:[...le.path,"properties",ut]});const Ae=new Set(Object.keys(Ie)),pt=new Set([...Ae].filter(ut=>{const ct=t.shape[ut]._zod;return this.io==="input"?ct.optin===void 0:ct.optout===void 0}));pt.size>0&&(Y.required=Array.from(pt)),t.catchall?._zod.def.type==="never"?Y.additionalProperties=!1:t.catchall?t.catchall&&(Y.additionalProperties=this.process(t.catchall,{...le,path:[...le.path,"additionalProperties"]})):this.io==="output"&&(Y.additionalProperties=!1);break}case"union":{const Y=he,Ie=t.options.map((Ae,pt)=>this.process(Ae,{...le,path:[...le.path,"anyOf",pt]}));Y.anyOf=Ie;break}case"intersection":{const Y=he,Ie=this.process(t.left,{...le,path:[...le.path,"allOf",0]}),Ae=this.process(t.right,{...le,path:[...le.path,"allOf",1]}),pt=ct=>"allOf"in ct&&Object.keys(ct).length===1,ut=[...pt(Ie)?Ie.allOf:[Ie],...pt(Ae)?Ae.allOf:[Ae]];Y.allOf=ut;break}case"tuple":{const Y=he;Y.type="array";const Ie=this.target==="draft-2020-12"?"prefixItems":"items",Ae=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",pt=t.items.map((or,Wr)=>this.process(or,{...le,path:[...le.path,Ie,Wr]})),ut=t.rest?this.process(t.rest,{...le,path:[...le.path,Ae,...this.target==="openapi-3.0"?[t.items.length]:[]]}):null;this.target==="draft-2020-12"?(Y.prefixItems=pt,ut&&(Y.items=ut)):this.target==="openapi-3.0"?(Y.items={anyOf:pt},ut&&Y.items.anyOf.push(ut),Y.minItems=pt.length,ut||(Y.maxItems=pt.length)):(Y.items=pt,ut&&(Y.additionalItems=ut));const{minimum:ct,maximum:vt}=r._zod.bag;typeof ct=="number"&&(Y.minItems=ct),typeof vt=="number"&&(Y.maxItems=vt);break}case"record":{const Y=he;Y.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(Y.propertyNames=this.process(t.keyType,{...le,path:[...le.path,"propertyNames"]})),Y.additionalProperties=this.process(t.valueType,{...le,path:[...le.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const Y=he,Ie=Ga(t.entries);Ie.every(Ae=>typeof Ae=="number")&&(Y.type="number"),Ie.every(Ae=>typeof Ae=="string")&&(Y.type="string"),Y.enum=Ie;break}case"literal":{const Y=he,Ie=[];for(const Ae of t.values)if(Ae===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof Ae=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");Ie.push(Number(Ae))}else Ie.push(Ae);if(Ie.length!==0)if(Ie.length===1){const Ae=Ie[0];Y.type=Ae===null?"null":typeof Ae,this.target==="draft-4"||this.target==="openapi-3.0"?Y.enum=[Ae]:Y.const=Ae}else Ie.every(Ae=>typeof Ae=="number")&&(Y.type="number"),Ie.every(Ae=>typeof Ae=="string")&&(Y.type="string"),Ie.every(Ae=>typeof Ae=="boolean")&&(Y.type="string"),Ie.every(Ae=>Ae===null)&&(Y.type="null"),Y.enum=Ie;break}case"file":{const Y=he,Ie={type:"string",format:"binary",contentEncoding:"binary"},{minimum:Ae,maximum:pt,mime:ut}=r._zod.bag;Ae!==void 0&&(Ie.minLength=Ae),pt!==void 0&&(Ie.maxLength=pt),ut?ut.length===1?(Ie.contentMediaType=ut[0],Object.assign(Y,Ie)):Y.anyOf=ut.map(ct=>({...Ie,contentMediaType:ct})):Object.assign(Y,Ie);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const Y=this.process(t.innerType,le);this.target==="openapi-3.0"?(w.ref=t.innerType,he.nullable=!0):he.anyOf=[Y,{type:"null"}];break}case"nonoptional":{this.process(t.innerType,le),w.ref=t.innerType;break}case"success":{const Y=he;Y.type="boolean";break}case"default":{this.process(t.innerType,le),w.ref=t.innerType,he.default=JSON.parse(JSON.stringify(t.defaultValue));break}case"prefault":{this.process(t.innerType,le),w.ref=t.innerType,this.io==="input"&&(he._prefault=JSON.parse(JSON.stringify(t.defaultValue)));break}case"catch":{this.process(t.innerType,le),w.ref=t.innerType;let Y;try{Y=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}he.default=Y;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const Y=he,Ie=r._zod.pattern;if(!Ie)throw new Error("Pattern not found in template literal");Y.type="string",Y.pattern=Ie.source;break}case"pipe":{const Y=this.io==="input"?t.in._zod.def.type==="transform"?t.out:t.in:t.out;this.process(Y,le),w.ref=Y;break}case"readonly":{this.process(t.innerType,le),w.ref=t.innerType,he.readOnly=!0;break}case"promise":{this.process(t.innerType,le),w.ref=t.innerType;break}case"optional":{this.process(t.innerType,le),w.ref=t.innerType;break}case"lazy":{const Y=r._zod.innerType;this.process(Y,le),w.ref=Y;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}}}}const K=this.metadataRegistry.get(r);return K&&Object.assign(w.schema,K),this.io==="input"&&Vt(r)&&(delete w.schema.examples,delete w.schema.default),this.io==="input"&&w.schema._prefault&&((s=w.schema).default??(s.default=w.schema._prefault)),delete w.schema._prefault,this.seen.get(r).schema}emit(r,o){const s={cycles:o?.cycles??"ref",reused:o?.reused??"inline",external:o?.external??void 0},t=this.seen.get(r);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const a=me=>{const le=this.target==="draft-2020-12"?"$defs":"definitions";if(s.external){const Ie=s.external.registry.get(me[0])?.id,Ae=s.external.uri??(ut=>ut);if(Ie)return{ref:Ae(Ie)};const pt=me[1].defId??me[1].schema.id??`schema${this.counter++}`;return me[1].defId=pt,{defId:pt,ref:`${Ae("__shared")}#/${le}/${pt}`}}if(me[1]===t)return{ref:"#"};const he=`#/${le}/`,Y=me[1].schema.id??`__schema${this.counter++}`;return{defId:Y,ref:he+Y}},f=me=>{if(me[1].schema.$ref)return;const le=me[1],{ref:Re,defId:he}=a(me);le.def={...le.schema},he&&(le.defId=he);const Y=le.schema;for(const Ie in Y)delete Y[Ie];Y.$ref=Re};if(s.cycles==="throw")for(const me of this.seen.entries()){const le=me[1];if(le.cycle)throw new Error(`Cycle detected: #/${le.cycle?.join("/")}/<root>
|
|
43
43
|
|
|
44
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const me of this.seen.entries()){const ae=me[1];if(n===me[0]){d(me);continue}if(s.external){const be=s.external.registry.get(me[0])?.id;if(n!==me[0]&&be){d(me);continue}}if(this.metadataRegistry.get(me[0])?.id){d(me);continue}if(ae.cycle){d(me);continue}if(ae.count>1&&s.reused==="ref"){d(me);continue}}const $=(me,ae)=>{const Ze=this.seen.get(me),be=Ze.def??Ze.schema,Y={...be};if(Ze.ref===null)return;const ze=Ze.ref;if(Ze.ref=null,ze){$(ze,ae);const Ce=this.seen.get(ze).schema;Ce.$ref&&(ae.target==="draft-7"||ae.target==="draft-4"||ae.target==="openapi-3.0")?(be.allOf=be.allOf??[],be.allOf.push(Ce)):(Object.assign(be,Ce),Object.assign(be,Y))}Ze.isParent||this.override({zodSchema:me,jsonSchema:be,path:Ze.path??[]})};for(const me of[...this.seen.entries()].reverse())$(me[0],{target:this.target});const A={};if(this.target==="draft-2020-12"?A.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?A.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?A.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const me=s.external.registry.get(n)?.id;if(!me)throw new Error("Schema is missing an `id` property");A.$id=s.external.uri(me)}Object.assign(A,t.def);const B=s.external?.defs??{};for(const me of this.seen.entries()){const ae=me[1];ae.def&&ae.defId&&(B[ae.defId]=ae.def)}s.external||Object.keys(B).length>0&&(this.target==="draft-2020-12"?A.$defs=B:A.definitions=B);try{return JSON.parse(JSON.stringify(A))}catch{throw new Error("Error converting schema to JSON.")}}}function vm(e,n){if(e instanceof Ka){const s=new Os(n),t={};for(const $ of e._idmap.entries()){const[A,B]=$;s.process(B)}const a={},d={registry:e,uri:n?.uri,defs:t};for(const $ of e._idmap.entries()){const[A,B]=$;a[A]=s.emit(B,{...n,external:d})}if(Object.keys(t).length>0){const $=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[$]:t}}return{schemas:a}}const o=new Os(n);return o.process(e),o.emit(e,n)}function Et(e,n){const o=n??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Et(t.element,o);case"object":{for(const a in t.shape)if(Et(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Et(a,o))return!0;return!1}case"intersection":return Et(t.left,o)||Et(t.right,o);case"tuple":{for(const a of t.items)if(Et(a,o))return!0;return!!(t.rest&&Et(t.rest,o))}case"record":return Et(t.keyType,o)||Et(t.valueType,o);case"map":return Et(t.keyType,o)||Et(t.valueType,o);case"set":return Et(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Et(t.innerType,o);case"lazy":return Et(t.getter(),o);case"default":return Et(t.innerType,o);case"prefault":return Et(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Et(t.in,o)||Et(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const E$=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Nd,$ZodArray:Ud,$ZodAsyncError:mr,$ZodBase64:vd,$ZodBase64URL:bd,$ZodBigInt:Ga,$ZodBigIntFormat:Sd,$ZodBoolean:Qa,$ZodCIDRv4:pd,$ZodCIDRv6:gd,$ZodCUID:rd,$ZodCUID2:id,$ZodCatch:uf,$ZodCheck:kt,$ZodCheckBigIntFormat:El,$ZodCheckEndsWith:Wl,$ZodCheckGreaterThan:Ra,$ZodCheckIncludes:Rl,$ZodCheckLengthEquals:Ll,$ZodCheckLessThan:qa,$ZodCheckLowerCase:Zl,$ZodCheckMaxLength:Dl,$ZodCheckMaxSize:Pl,$ZodCheckMimeType:Jl,$ZodCheckMinLength:Ml,$ZodCheckMinSize:Ul,$ZodCheckMultipleOf:Tl,$ZodCheckNumberFormat:Ol,$ZodCheckOverwrite:Vl,$ZodCheckProperty:Gl,$ZodCheckRegex:Al,$ZodCheckSizeEquals:Cl,$ZodCheckStartsWith:Fl,$ZodCheckStringFormat:Ti,$ZodCheckUpperCase:ql,$ZodCodec:Ba,$ZodCustom:hf,$ZodCustomStringFormat:kd,$ZodDate:Ed,$ZodDefault:tf,$ZodDiscriminatedUnion:Zd,$ZodE164:yd,$ZodEmail:Xl,$ZodEmoji:td,$ZodEncodeError:lo,$ZodEnum:Vd,$ZodError:xa,$ZodFile:Bd,$ZodFunction:pf,$ZodGUID:Kl,$ZodIPv4:fd,$ZodIPv6:md,$ZodISODate:cd,$ZodISODateTime:ud,$ZodISODuration:dd,$ZodISOTime:ld,$ZodIntersection:qd,$ZodJWT:_d,$ZodKSUID:sd,$ZodLazy:vf,$ZodLiteral:Yd,$ZodMap:Wd,$ZodNaN:cf,$ZodNanoID:nd,$ZodNever:Td,$ZodNonOptional:of,$ZodNull:zd,$ZodNullable:ef,$ZodNumber:Wa,$ZodNumberFormat:wd,$ZodObject:Md,$ZodObjectJIT:Ld,$ZodOptional:Xd,$ZodPipe:lf,$ZodPrefault:rf,$ZodPromise:gf,$ZodReadonly:df,$ZodRealError:on,$ZodRecord:Fd,$ZodRegistry:Ka,$ZodSet:Gd,$ZodString:Oi,$ZodStringFormat:pt,$ZodSuccess:sf,$ZodSymbol:xd,$ZodTemplateLiteral:mf,$ZodTransform:Kd,$ZodTuple:Ya,$ZodType:We,$ZodULID:od,$ZodURL:ed,$ZodUUID:Hl,$ZodUndefined:Id,$ZodUnion:Ja,$ZodUnknown:jd,$ZodVoid:Od,$ZodXID:ad,$brand:Ic,$constructor:E,$input:zf,$output:If,Doc:Yl,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:Os,NEVER:xc,TimePrecision:Tf,_any:Kf,_array:cm,_base64:gs,_base64url:vs,_bigint:Wf,_boolean:Rf,_catch:I$,_check:pm,_cidrv4:ms,_cidrv6:ps,_coercedBigint:Qf,_coercedBoolean:Ff,_coercedDate:nm,_coercedNumber:Df,_coercedString:jf,_cuid:as,_cuid2:ss,_custom:dm,_date:tm,_decode:Oa,_decodeAsync:Pa,_default:w$,_discriminatedUnion:d$,_e164:hs,_email:Xa,_emoji:is,_encode:Ta,_encodeAsync:Ea,_endsWith:xs,_enum:h$,_file:lm,_float32:Lf,_float64:Af,_gt:yr,_gte:an,_guid:xo,_includes:ws,_int:Mf,_int32:Zf,_int64:Gf,_intersection:f$,_ipv4:ds,_ipv6:fs,_isoDate:Ef,_isoDateTime:Of,_isoDuration:Uf,_isoTime:Pf,_jwt:bs,_ksuid:ls,_lazy:T$,_length:jo,_literal:y$,_lowercase:_s,_lt:br,_lte:Sn,_map:g$,_max:Sn,_maxLength:No,_maxSize:zo,_mime:Is,_min:an,_minLength:Vr,_minSize:Ci,_multipleOf:Ui,_nan:rm,_nanoid:os,_nativeEnum:b$,_negative:om,_never:Xf,_nonnegative:sm,_nonoptional:S$,_nonpositive:am,_normalize:zs,_null:Bf,_nullable:k$,_number:Cf,_optional:_$,_overwrite:$r,_parse:Si,_parseAsync:xi,_pipe:z$,_positive:im,_promise:O$,_property:um,_readonly:N$,_record:p$,_refine:fm,_regex:$s,_safeDecode:Ca,_safeDecodeAsync:Ma,_safeEncode:Ua,_safeEncodeAsync:Da,_safeParse:Ii,_safeParseAsync:zi,_set:v$,_size:ys,_startsWith:Ss,_string:Nf,_stringFormat:Di,_stringbool:gm,_success:x$,_superRefine:mm,_symbol:Vf,_templateLiteral:j$,_toLowerCase:js,_toUpperCase:Ts,_transform:$$,_trim:Ns,_tuple:m$,_uint32:qf,_uint64:Jf,_ulid:us,_undefined:Yf,_union:l$,_unknown:Hf,_uppercase:ks,_url:Io,_uuid:es,_uuidv4:ts,_uuidv6:ns,_uuidv7:rs,_void:em,_xid:cs,clone:mn,config:Wt,decode:cb,decodeAsync:db,encode:ub,encodeAsync:lb,flattenError:Ia,formatError:za,globalConfig:fo,globalRegistry:hr,isValidBase64:Fa,isValidBase64URL:hd,isValidJWT:$d,locales:xf,parse:Na,parseAsync:ja,prettifyError:Jc,regexes:Za,registry:Ha,safeDecode:mb,safeDecodeAsync:gb,safeEncode:fb,safeEncodeAsync:pb,safeParse:Vc,safeParseAsync:Yc,toDotPath:Gc,toJSONSchema:vm,treeifyError:Qc,util:Fc,version:Bl},Symbol.toStringTag,{value:"Module"})),Es=E("ZodISODateTime",(e,n)=>{ud.init(e,n),ht.init(e,n)});function hm(e){return Of(Es,e)}const Ps=E("ZodISODate",(e,n)=>{cd.init(e,n),ht.init(e,n)});function bm(e){return Ef(Ps,e)}const Us=E("ZodISOTime",(e,n)=>{ld.init(e,n),ht.init(e,n)});function ym(e){return Pf(Us,e)}const Cs=E("ZodISODuration",(e,n)=>{dd.init(e,n),ht.init(e,n)});function $m(e){return Uf(Cs,e)}const P$=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:Ps,ZodISODateTime:Es,ZodISODuration:Cs,ZodISOTime:Us,date:bm,datetime:hm,duration:$m,time:ym},Symbol.toStringTag,{value:"Module"})),_m=(e,n)=>{xa.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>za(e,o)},flatten:{value:o=>Ia(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,mo,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,mo,2)}},isEmpty:{get(){return e.issues.length===0}}})},U$=E("ZodError",_m),sn=E("ZodError",_m,{Parent:Error}),km=Si(sn),wm=xi(sn),Sm=Ii(sn),xm=zi(sn),Im=Ta(sn),zm=Oa(sn),Nm=Ea(sn),jm=Pa(sn),Tm=Ua(sn),Om=Ca(sn),Em=Da(sn),Pm=Ma(sn),Ve=E("ZodType",(e,n)=>(We.init(e,n),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.check=(...o)=>e.clone({...n,checks:[...n.checks??[],...o.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(o,s)=>mn(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>km(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>Sm(e,o,s),e.parseAsync=async(o,s)=>wm(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>xm(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>Im(e,o,s),e.decode=(o,s)=>zm(e,o,s),e.encodeAsync=async(o,s)=>Nm(e,o,s),e.decodeAsync=async(o,s)=>jm(e,o,s),e.safeEncode=(o,s)=>Tm(e,o,s),e.safeDecode=(o,s)=>Om(e,o,s),e.safeEncodeAsync=async(o,s)=>Em(e,o,s),e.safeDecodeAsync=async(o,s)=>Pm(e,o,s),e.refine=(o,s)=>e.check(vp(o,s)),e.superRefine=o=>e.check(hp(o)),e.overwrite=o=>e.check($r(o)),e.optional=()=>Lo(e),e.nullable=()=>Ao(e),e.nullish=()=>Lo(Ao(e)),e.nonoptional=o=>op(e,o),e.array=()=>lt(e),e.or=o=>Rn([e,o]),e.and=o=>Gm(e,o),e.transform=o=>Zo(e,au(o)),e.default=o=>np(e,o),e.prefault=o=>ip(e,o),e.catch=o=>up(e,o),e.pipe=o=>Zo(e,o),e.readonly=()=>dp(e),e.describe=o=>{const s=e.clone();return hr.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return hr.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return hr.get(e);const s=e.clone();return hr.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Ds=E("_ZodString",(e,n)=>{Oi.init(e,n),Ve.init(e,n);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...s)=>e.check($s(...s)),e.includes=(...s)=>e.check(ws(...s)),e.startsWith=(...s)=>e.check(Ss(...s)),e.endsWith=(...s)=>e.check(xs(...s)),e.min=(...s)=>e.check(Vr(...s)),e.max=(...s)=>e.check(No(...s)),e.length=(...s)=>e.check(jo(...s)),e.nonempty=(...s)=>e.check(Vr(1,...s)),e.lowercase=s=>e.check(_s(s)),e.uppercase=s=>e.check(ks(s)),e.trim=()=>e.check(Ns()),e.normalize=(...s)=>e.check(zs(...s)),e.toLowerCase=()=>e.check(js()),e.toUpperCase=()=>e.check(Ts())}),To=E("ZodString",(e,n)=>{Oi.init(e,n),Ds.init(e,n),e.email=o=>e.check(Xa(Ms,o)),e.url=o=>e.check(Io(Eo,o)),e.jwt=o=>e.check(bs(Hs,o)),e.emoji=o=>e.check(is(Ls,o)),e.guid=o=>e.check(xo(Oo,o)),e.uuid=o=>e.check(es(qn,o)),e.uuidv4=o=>e.check(ts(qn,o)),e.uuidv6=o=>e.check(ns(qn,o)),e.uuidv7=o=>e.check(rs(qn,o)),e.nanoid=o=>e.check(os(As,o)),e.guid=o=>e.check(xo(Oo,o)),e.cuid=o=>e.check(as(Zs,o)),e.cuid2=o=>e.check(ss(qs,o)),e.ulid=o=>e.check(us(Rs,o)),e.base64=o=>e.check(gs(Ys,o)),e.base64url=o=>e.check(vs(Bs,o)),e.xid=o=>e.check(cs(Fs,o)),e.ksuid=o=>e.check(ls(Ws,o)),e.ipv4=o=>e.check(ds(Qs,o)),e.ipv6=o=>e.check(fs(Gs,o)),e.cidrv4=o=>e.check(ms(Js,o)),e.cidrv6=o=>e.check(ps(Vs,o)),e.e164=o=>e.check(hs(Ks,o)),e.datetime=o=>e.check(hm(o)),e.date=o=>e.check(bm(o)),e.time=o=>e.check(ym(o)),e.duration=o=>e.check($m(o))});function z(e){return Nf(To,e)}const ht=E("ZodStringFormat",(e,n)=>{pt.init(e,n),Ds.init(e,n)}),Ms=E("ZodEmail",(e,n)=>{Xl.init(e,n),ht.init(e,n)});function C$(e){return Xa(Ms,e)}const Oo=E("ZodGUID",(e,n)=>{Kl.init(e,n),ht.init(e,n)});function D$(e){return xo(Oo,e)}const qn=E("ZodUUID",(e,n)=>{Hl.init(e,n),ht.init(e,n)});function Um(e){return es(qn,e)}function M$(e){return ts(qn,e)}function L$(e){return ns(qn,e)}function A$(e){return rs(qn,e)}const Eo=E("ZodURL",(e,n)=>{ed.init(e,n),ht.init(e,n)});function Z$(e){return Io(Eo,e)}function q$(e){return Io(Eo,{protocol:/^https?$/,hostname:fl,...te(e)})}const Ls=E("ZodEmoji",(e,n)=>{td.init(e,n),ht.init(e,n)});function R$(e){return is(Ls,e)}const As=E("ZodNanoID",(e,n)=>{nd.init(e,n),ht.init(e,n)});function F$(e){return os(As,e)}const Zs=E("ZodCUID",(e,n)=>{rd.init(e,n),ht.init(e,n)});function W$(e){return as(Zs,e)}const qs=E("ZodCUID2",(e,n)=>{id.init(e,n),ht.init(e,n)});function Q$(e){return ss(qs,e)}const Rs=E("ZodULID",(e,n)=>{od.init(e,n),ht.init(e,n)});function G$(e){return us(Rs,e)}const Fs=E("ZodXID",(e,n)=>{ad.init(e,n),ht.init(e,n)});function J$(e){return cs(Fs,e)}const Ws=E("ZodKSUID",(e,n)=>{sd.init(e,n),ht.init(e,n)});function V$(e){return ls(Ws,e)}const Qs=E("ZodIPv4",(e,n)=>{fd.init(e,n),ht.init(e,n)});function Y$(e){return ds(Qs,e)}const Gs=E("ZodIPv6",(e,n)=>{md.init(e,n),ht.init(e,n)});function B$(e){return fs(Gs,e)}const Js=E("ZodCIDRv4",(e,n)=>{pd.init(e,n),ht.init(e,n)});function K$(e){return ms(Js,e)}const Vs=E("ZodCIDRv6",(e,n)=>{gd.init(e,n),ht.init(e,n)});function H$(e){return ps(Vs,e)}const Ys=E("ZodBase64",(e,n)=>{vd.init(e,n),ht.init(e,n)});function X$(e){return gs(Ys,e)}const Bs=E("ZodBase64URL",(e,n)=>{bd.init(e,n),ht.init(e,n)});function e_(e){return vs(Bs,e)}const Ks=E("ZodE164",(e,n)=>{yd.init(e,n),ht.init(e,n)});function t_(e){return hs(Ks,e)}const Hs=E("ZodJWT",(e,n)=>{_d.init(e,n),ht.init(e,n)});function n_(e){return bs(Hs,e)}const Mi=E("ZodCustomStringFormat",(e,n)=>{kd.init(e,n),ht.init(e,n)});function r_(e,n,o={}){return Di(Mi,e,n,o)}function i_(e){return Di(Mi,"hostname",Aa,e)}function o_(e){return Di(Mi,"hex",Nl,e)}function a_(e,n){const o=n?.enc??"hex",s=`${e}_${o}`,t=Za[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Di(Mi,s,t,n)}const Po=E("ZodNumber",(e,n)=>{Wa.init(e,n),Ve.init(e,n),e.gt=(s,t)=>e.check(yr(s,t)),e.gte=(s,t)=>e.check(an(s,t)),e.min=(s,t)=>e.check(an(s,t)),e.lt=(s,t)=>e.check(br(s,t)),e.lte=(s,t)=>e.check(Sn(s,t)),e.max=(s,t)=>e.check(Sn(s,t)),e.int=s=>e.check(Xs(s)),e.safe=s=>e.check(Xs(s)),e.positive=s=>e.check(yr(0,s)),e.nonnegative=s=>e.check(an(0,s)),e.negative=s=>e.check(br(0,s)),e.nonpositive=s=>e.check(Sn(0,s)),e.multipleOf=(s,t)=>e.check(Ui(s,t)),e.step=(s,t)=>e.check(Ui(s,t)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function at(e){return Cf(Po,e)}const Yr=E("ZodNumberFormat",(e,n)=>{wd.init(e,n),Po.init(e,n)});function Xs(e){return Mf(Yr,e)}function s_(e){return Lf(Yr,e)}function u_(e){return Af(Yr,e)}function c_(e){return Zf(Yr,e)}function l_(e){return qf(Yr,e)}const Uo=E("ZodBoolean",(e,n)=>{Qa.init(e,n),Ve.init(e,n)});function Ke(e){return Rf(Uo,e)}const Co=E("ZodBigInt",(e,n)=>{Ga.init(e,n),Ve.init(e,n),e.gte=(s,t)=>e.check(an(s,t)),e.min=(s,t)=>e.check(an(s,t)),e.gt=(s,t)=>e.check(yr(s,t)),e.gte=(s,t)=>e.check(an(s,t)),e.min=(s,t)=>e.check(an(s,t)),e.lt=(s,t)=>e.check(br(s,t)),e.lte=(s,t)=>e.check(Sn(s,t)),e.max=(s,t)=>e.check(Sn(s,t)),e.positive=s=>e.check(yr(BigInt(0),s)),e.negative=s=>e.check(br(BigInt(0),s)),e.nonpositive=s=>e.check(Sn(BigInt(0),s)),e.nonnegative=s=>e.check(an(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Ui(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function d_(e){return Wf(Co,e)}const eu=E("ZodBigIntFormat",(e,n)=>{Sd.init(e,n),Co.init(e,n)});function f_(e){return Gf(eu,e)}function m_(e){return Jf(eu,e)}const Cm=E("ZodSymbol",(e,n)=>{xd.init(e,n),Ve.init(e,n)});function p_(e){return Vf(Cm,e)}const Dm=E("ZodUndefined",(e,n)=>{Id.init(e,n),Ve.init(e,n)});function g_(e){return Yf(Dm,e)}const Mm=E("ZodNull",(e,n)=>{zd.init(e,n),Ve.init(e,n)});function Lm(e){return Bf(Mm,e)}const Am=E("ZodAny",(e,n)=>{Nd.init(e,n),Ve.init(e,n)});function Do(){return Kf(Am)}const Zm=E("ZodUnknown",(e,n)=>{jd.init(e,n),Ve.init(e,n)});function _r(){return Hf(Zm)}const qm=E("ZodNever",(e,n)=>{Td.init(e,n),Ve.init(e,n)});function tu(e){return Xf(qm,e)}const Rm=E("ZodVoid",(e,n)=>{Od.init(e,n),Ve.init(e,n)});function nu(e){return em(Rm,e)}const ru=E("ZodDate",(e,n)=>{Ed.init(e,n),Ve.init(e,n),e.min=(s,t)=>e.check(an(s,t)),e.max=(s,t)=>e.check(Sn(s,t));const o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function v_(e){return tm(ru,e)}const Fm=E("ZodArray",(e,n)=>{Ud.init(e,n),Ve.init(e,n),e.element=n.element,e.min=(o,s)=>e.check(Vr(o,s)),e.nonempty=o=>e.check(Vr(1,o)),e.max=(o,s)=>e.check(No(o,s)),e.length=(o,s)=>e.check(jo(o,s)),e.unwrap=()=>e.element});function lt(e,n){return cm(Fm,e,n)}function h_(e){const n=e._zod.def.shape;return wt(Object.keys(n))}const Mo=E("ZodObject",(e,n)=>{Ld.init(e,n),Ve.init(e,n),tt(e,"shape",()=>n.shape),e.keyof=()=>wt(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:_r()}),e.loose=()=>e.clone({...e._zod.def,catchall:_r()}),e.strict=()=>e.clone({...e._zod.def,catchall:tu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>Dc(e,o),e.safeExtend=o=>Mc(e,o),e.merge=o=>Lc(e,o),e.pick=o=>Uc(e,o),e.omit=o=>Cc(e,o),e.partial=(...o)=>Ac(su,e,o[0]),e.required=(...o)=>Zc(uu,e,o[0])});function $e(e,n){const o={type:"object",get shape(){return _n(this,"shape",e?go(e):{}),this.shape},...te(n)};return new Mo(o)}function b_(e,n){return new Mo({type:"object",get shape(){return _n(this,"shape",go(e)),this.shape},catchall:tu(),...te(n)})}function y_(e,n){return new Mo({type:"object",get shape(){return _n(this,"shape",go(e)),this.shape},catchall:_r(),...te(n)})}const iu=E("ZodUnion",(e,n)=>{Ja.init(e,n),Ve.init(e,n),e.options=n.options});function Rn(e,n){return new iu({type:"union",options:e,...te(n)})}const Wm=E("ZodDiscriminatedUnion",(e,n)=>{iu.init(e,n),Zd.init(e,n)});function Li(e,n,o){return new Wm({type:"union",options:n,discriminator:e,...te(o)})}const Qm=E("ZodIntersection",(e,n)=>{qd.init(e,n),Ve.init(e,n)});function Gm(e,n){return new Qm({type:"intersection",left:e,right:n})}const Jm=E("ZodTuple",(e,n)=>{Ya.init(e,n),Ve.init(e,n),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Vm(e,n,o){const s=n instanceof We,t=s?o:n,a=s?n:null;return new Jm({type:"tuple",items:e,rest:a,...te(t)})}const ou=E("ZodRecord",(e,n)=>{Fd.init(e,n),Ve.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function Pt(e,n,o){return new ou({type:"record",keyType:e,valueType:n,...te(o)})}function $_(e,n,o){const s=mn(e);return s._zod.values=void 0,new ou({type:"record",keyType:s,valueType:n,...te(o)})}const Ym=E("ZodMap",(e,n)=>{Wd.init(e,n),Ve.init(e,n),e.keyType=n.keyType,e.valueType=n.valueType});function __(e,n,o){return new Ym({type:"map",keyType:e,valueType:n,...te(o)})}const Bm=E("ZodSet",(e,n)=>{Gd.init(e,n),Ve.init(e,n),e.min=(...o)=>e.check(Ci(...o)),e.nonempty=o=>e.check(Ci(1,o)),e.max=(...o)=>e.check(zo(...o)),e.size=(...o)=>e.check(ys(...o))});function k_(e,n){return new Bm({type:"set",valueType:e,...te(n)})}const Ai=E("ZodEnum",(e,n)=>{Vd.init(e,n),Ve.init(e,n),e.enum=n.entries,e.options=Object.values(n.entries);const o=new Set(Object.keys(n.entries));e.extract=(s,t)=>{const a={};for(const d of s)if(o.has(d))a[d]=n.entries[d];else throw new Error(`Key ${d} not found in enum`);return new Ai({...n,checks:[],...te(t),entries:a})},e.exclude=(s,t)=>{const a={...n.entries};for(const d of s)if(o.has(d))delete a[d];else throw new Error(`Key ${d} not found in enum`);return new Ai({...n,checks:[],...te(t),entries:a})}});function wt(e,n){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Ai({type:"enum",entries:o,...te(n)})}function w_(e,n){return new Ai({type:"enum",entries:e,...te(n)})}const Km=E("ZodLiteral",(e,n)=>{Yd.init(e,n),Ve.init(e,n),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function mt(e,n){return new Km({type:"literal",values:Array.isArray(e)?e:[e],...te(n)})}const Hm=E("ZodFile",(e,n)=>{Bd.init(e,n),Ve.init(e,n),e.min=(o,s)=>e.check(Ci(o,s)),e.max=(o,s)=>e.check(zo(o,s)),e.mime=(o,s)=>e.check(Is(Array.isArray(o)?o:[o],s))});function S_(e){return lm(Hm,e)}const Xm=E("ZodTransform",(e,n)=>{Kd.init(e,n),Ve.init(e,n),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new lo(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(Gr(a,o.value,n));else{const d=a;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=o.value),d.inst??(d.inst=e),o.issues.push(Gr(d))}};const t=n.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function au(e){return new Xm({type:"transform",transform:e})}const su=E("ZodOptional",(e,n)=>{Xd.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Lo(e){return new su({type:"optional",innerType:e})}const ep=E("ZodNullable",(e,n)=>{ef.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function Ao(e){return new ep({type:"nullable",innerType:e})}function x_(e){return Lo(Ao(e))}const tp=E("ZodDefault",(e,n)=>{tf.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function np(e,n){return new tp({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():vo(n)}})}const rp=E("ZodPrefault",(e,n)=>{rf.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function ip(e,n){return new rp({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():vo(n)}})}const uu=E("ZodNonOptional",(e,n)=>{of.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function op(e,n){return new uu({type:"nonoptional",innerType:e,...te(n)})}const ap=E("ZodSuccess",(e,n)=>{sf.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function I_(e){return new ap({type:"success",innerType:e})}const sp=E("ZodCatch",(e,n)=>{uf.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function up(e,n){return new sp({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const cp=E("ZodNaN",(e,n)=>{cf.init(e,n),Ve.init(e,n)});function z_(e){return rm(cp,e)}const cu=E("ZodPipe",(e,n)=>{lf.init(e,n),Ve.init(e,n),e.in=n.in,e.out=n.out});function Zo(e,n){return new cu({type:"pipe",in:e,out:n})}const lu=E("ZodCodec",(e,n)=>{cu.init(e,n),Ba.init(e,n)});function N_(e,n,o){return new lu({type:"pipe",in:e,out:n,transform:o.decode,reverseTransform:o.encode})}const lp=E("ZodReadonly",(e,n)=>{df.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function dp(e){return new lp({type:"readonly",innerType:e})}const fp=E("ZodTemplateLiteral",(e,n)=>{mf.init(e,n),Ve.init(e,n)});function j_(e,n){return new fp({type:"template_literal",parts:e,...te(n)})}const mp=E("ZodLazy",(e,n)=>{vf.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.getter()});function du(e){return new mp({type:"lazy",getter:e})}const pp=E("ZodPromise",(e,n)=>{gf.init(e,n),Ve.init(e,n),e.unwrap=()=>e._zod.def.innerType});function T_(e){return new pp({type:"promise",innerType:e})}const gp=E("ZodFunction",(e,n)=>{pf.init(e,n),Ve.init(e,n)});function qo(e){return new gp({type:"function",input:Array.isArray(e?.input)?Vm(e?.input):e?.input??lt(_r()),output:e?.output??_r()})}const Ro=E("ZodCustom",(e,n)=>{hf.init(e,n),Ve.init(e,n)});function O_(e){const n=new kt({check:"custom"});return n._zod.check=e,n}function E_(e,n){return dm(Ro,e??(()=>!0),n)}function vp(e,n={}){return fm(Ro,e,n)}function hp(e){return mm(e)}function P_(e,n={error:`Input not instance of ${e.name}`}){const o=new Ro({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...te(n)});return o._zod.bag.Class=e,o}const U_=(...e)=>gm({Codec:lu,Boolean:Uo,String:To},...e);function C_(e){const n=du(()=>Rn([z(e),at(),Ke(),Lm(),lt(n),Pt(z(),n)]));return n}function D_(e,n){return Zo(au(e),n)}const M_={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"};function L_(e){Wt({customError:e})}function A_(){return Wt().customError}var fu;fu||(fu={});function Z_(e){return jf(To,e)}function q_(e){return Df(Po,e)}function R_(e){return Ff(Uo,e)}function F_(e){return Qf(Co,e)}function W_(e){return nm(ru,e)}const Q_=Object.freeze(Object.defineProperty({__proto__:null,bigint:F_,boolean:R_,date:W_,number:q_,string:Z_},Symbol.toStringTag,{value:"Module"}));Wt($f());const G_=Object.freeze(Object.defineProperty({__proto__:null,$brand:Ic,$input:zf,$output:If,NEVER:xc,TimePrecision:Tf,ZodAny:Am,ZodArray:Fm,ZodBase64:Ys,ZodBase64URL:Bs,ZodBigInt:Co,ZodBigIntFormat:eu,ZodBoolean:Uo,ZodCIDRv4:Js,ZodCIDRv6:Vs,ZodCUID:Zs,ZodCUID2:qs,ZodCatch:sp,ZodCodec:lu,ZodCustom:Ro,ZodCustomStringFormat:Mi,ZodDate:ru,ZodDefault:tp,ZodDiscriminatedUnion:Wm,ZodE164:Ks,ZodEmail:Ms,ZodEmoji:Ls,ZodEnum:Ai,ZodError:U$,ZodFile:Hm,get ZodFirstPartyTypeKind(){return fu},ZodFunction:gp,ZodGUID:Oo,ZodIPv4:Qs,ZodIPv6:Gs,ZodISODate:Ps,ZodISODateTime:Es,ZodISODuration:Cs,ZodISOTime:Us,ZodIntersection:Qm,ZodIssueCode:M_,ZodJWT:Hs,ZodKSUID:Ws,ZodLazy:mp,ZodLiteral:Km,ZodMap:Ym,ZodNaN:cp,ZodNanoID:As,ZodNever:qm,ZodNonOptional:uu,ZodNull:Mm,ZodNullable:ep,ZodNumber:Po,ZodNumberFormat:Yr,ZodObject:Mo,ZodOptional:su,ZodPipe:cu,ZodPrefault:rp,ZodPromise:pp,ZodReadonly:lp,ZodRealError:sn,ZodRecord:ou,ZodSet:Bm,ZodString:To,ZodStringFormat:ht,ZodSuccess:ap,ZodSymbol:Cm,ZodTemplateLiteral:fp,ZodTransform:Xm,ZodTuple:Jm,ZodType:Ve,ZodULID:Rs,ZodURL:Eo,ZodUUID:qn,ZodUndefined:Dm,ZodUnion:iu,ZodUnknown:Zm,ZodVoid:Rm,ZodXID:Fs,_ZodString:Ds,_default:np,_function:qo,any:Do,array:lt,base64:X$,base64url:e_,bigint:d_,boolean:Ke,catch:up,check:O_,cidrv4:K$,cidrv6:H$,clone:mn,codec:N_,coerce:Q_,config:Wt,core:E$,cuid:W$,cuid2:Q$,custom:E_,date:v_,decode:zm,decodeAsync:jm,discriminatedUnion:Li,e164:t_,email:C$,emoji:R$,encode:Im,encodeAsync:Nm,endsWith:xs,enum:wt,file:S_,flattenError:Ia,float32:s_,float64:u_,formatError:za,function:qo,getErrorMap:A_,globalRegistry:hr,gt:yr,gte:an,guid:D$,hash:a_,hex:o_,hostname:i_,httpUrl:q$,includes:ws,instanceof:P_,int:Xs,int32:c_,int64:f_,intersection:Gm,ipv4:Y$,ipv6:B$,iso:P$,json:C_,jwt:n_,keyof:h_,ksuid:V$,lazy:du,length:jo,literal:mt,locales:xf,looseObject:y_,lowercase:_s,lt:br,lte:Sn,map:__,maxLength:No,maxSize:zo,mime:Is,minLength:Vr,minSize:Ci,multipleOf:Ui,nan:z_,nanoid:F$,nativeEnum:w_,negative:om,never:tu,nonnegative:sm,nonoptional:op,nonpositive:am,normalize:zs,null:Lm,nullable:Ao,nullish:x_,number:at,object:$e,optional:Lo,overwrite:$r,parse:km,parseAsync:wm,partialRecord:$_,pipe:Zo,positive:im,prefault:ip,preprocess:D_,prettifyError:Jc,promise:T_,property:um,readonly:dp,record:Pt,refine:vp,regex:$s,regexes:Za,registry:Ha,safeDecode:Om,safeDecodeAsync:Pm,safeEncode:Tm,safeEncodeAsync:Em,safeParse:Sm,safeParseAsync:xm,set:k_,setErrorMap:L_,size:ys,startsWith:Ss,strictObject:b_,string:z,stringFormat:r_,stringbool:U_,success:I_,superRefine:hp,symbol:p_,templateLiteral:j_,toJSONSchema:vm,toLowerCase:js,toUpperCase:Ts,transform:au,treeifyError:Qc,trim:Ns,tuple:Vm,uint32:l_,uint64:m_,ulid:G$,undefined:g_,union:Rn,unknown:_r,uppercase:ks,url:Z$,util:Fc,uuid:Um,uuidv4:M$,uuidv6:L$,uuidv7:A$,void:nu,xid:J$},Symbol.toStringTag,{value:"Module"}));var J_=Object.defineProperty,Fn=(e,n)=>J_(e,"name",{value:n,configurable:!0}),bp=wt(["rating","single_choice","nps","nested_selection","multiple_choice_multiple","short_answer","long_text","annotation"]).describe("Enumeration of all supported question types for form fields"),V_={RATING:"rating",SINGLE_CHOICE:"single_choice",NPS:"nps",NESTED_SELECTION:"nested_selection",MULTIPLE_CHOICE_MULTIPLE:"multiple_choice_multiple",SHORT_ANSWER:"short_answer",LONG_TEXT:"long_text",ANNOTATION:"annotation"},yp=wt(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),Y_={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},$p=$e({type:yp.describe("Type of validation rule to apply"),value:Rn([z(),at(),Ke()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:z().optional().describe("Custom error message when validation fails"),describe:z().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),B_=wt(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),K_={EQUALS:"equals",NOT_EQUALS:"not_equals",CONTAINS:"contains",NOT_CONTAINS:"not_contains",GREATER_THAN:"greater_than",LESS_THAN:"less_than",IS_EMPTY:"is_empty",IS_NOT_EMPTY:"is_not_empty"},_p=$e({field:z().describe("ID of the field to check against"),operator:B_.describe("Comparison operator for the condition"),value:Rn([z(),at(),Ke()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:z().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),Fo=$e({id:z().describe("Unique identifier for the section"),title:z().min(1).max(200).describe("Display title for the section"),questionIds:lt(z()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),kp=wt(["D","P","A","S"]),H_={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},wp=wt(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),X_={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},Sp=wt(["small","medium","large"]),ek={SMALL:"small",MEDIUM:"medium",LARGE:"large"},xp=wt(["radio","list","chip","dropdown"]),tk={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},Ip=wt(["checkbox","list","chip"]),nk={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},zp=wt(["randomize","flip","rotate","ascending","none"]),rk={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},Wn=$e({id:z().describe("Unique identifier for the question"),type:bp.describe("The type of question (rating, single_choice, etc.)"),title:z().min(1).max(200).describe("The main title/question text displayed to users"),description:z().max(1e3).optional().describe("Optional detailed description or help text"),describe:z().max(2e3).optional().describe("LLM tool call description for better AI understanding and context"),required:Ke().default(!1).describe("Whether this question must be answered"),errorMessage:z().max(500).optional().describe("Custom error message when validation fails"),validations:lt($p).optional().default([]).describe("Array of validation rules to apply"),visibility:lt(_p).optional().default([]).describe("Conditions that control when this question is shown"),isFixed:Ke().describe("Whether this question position is fixed or can be reordered"),sectionId:z().optional().describe("ID of the section this question belongs to"),status:kp.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),Np=Wn.extend({type:mt("rating").describe("Must be exactly 'rating'"),showLabels:Ke().optional().describe("Whether to show min/max labels"),minLabel:z().max(100).optional().describe("Label for the minimum rating value"),maxLabel:z().max(100).optional().describe("Label for the maximum rating value"),displayStyle:wp.optional().describe("Visual style for rating display"),numberOfRatings:at().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:Sp.optional().describe("Size of rating visual elements"),color:z().regex(/^#[0-9A-F]{6}$/i,"Must be a valid hex color").optional().describe("Hex color for rating elements")}).describe("Schema for rating questions with customizable display options"),jp=Wn.extend({type:mt("annotation").describe("Must be exactly 'annotation'"),annotationText:z().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:z().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),mu=$e({id:z().describe("Unique identifier for this option (system time milliseconds)"),value:z().min(1).max(100).describe("The internal value used for this option"),label:z().min(1).max(200).describe("The display text shown to users for this option"),describe:z().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:z().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),pu=du(()=>$e({id:z().describe("Unique identifier for this nested option (system time milliseconds)"),value:z().min(1).max(100).describe("The internal value used for this nested option"),label:z().min(1).max(200).describe("The display text shown for this nested option"),describe:z().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:z().url().optional().describe("Optional image URL for this nested option"),hint:z().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:lt(pu).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),Tp=Wn.extend({type:mt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:xp.optional().describe("Visual style for displaying options"),randomizeOptions:Ke().optional().default(!1).describe("Whether to randomize the order of options"),options:lt(mu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),Op=Wn.extend({type:mt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:Ip.optional().describe("Visual style for displaying multiple options"),minSelections:at().int().min(0).optional().describe("Minimum number of options that must be selected"),maxSelections:at().int().min(1).optional().describe("Maximum number of options that can be selected"),randomizeOptions:Ke().optional().default(!1).describe("Whether to randomize the order of options"),options:lt(mu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).refine(e=>e.minSelections!==void 0&&e.maxSelections!==void 0?e.minSelections<=e.maxSelections:!0,{message:"minSelections cannot be greater than maxSelections",path:["minSelections"]}).describe("Schema for multiple-choice questions allowing multiple selections"),Ep=Wn.extend({type:mt("nps").describe("Must be exactly 'nps'"),min:mt(0).describe("NPS always starts at 0"),max:mt(10).describe("NPS always ends at 10"),minLabel:z().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:z().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Pt(z().regex(/^\d+$/),z().max(50)).optional().describe("Custom labels for specific NPS values (0-10)"),prepopulatedValue:at().int().min(0).max(10).optional().describe("Default value to pre-select (0-10)")}).refine(e=>e.scaleLabels?Object.keys(e.scaleLabels).every(o=>{const s=Number(o);return!isNaN(s)&&s>=0&&s<=10}):!0,{message:"scaleLabels keys must be between 0 and 10 (inclusive)",path:["scaleLabels"]}).describe("Schema for Net Promoter Score questions with 0-10 scale"),Pp=Wn.extend({type:mt("short_answer").describe("Must be exactly 'short_answer'"),maxCharacters:at().int().min(1).max(1e4).optional().describe("Maximum number of characters allowed"),minCharacters:at().int().min(0).optional().describe("Minimum number of characters required"),placeholder:z().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:Ke().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:z().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:Ke().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:z().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:at().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:at().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:at().int().min(1).max(1e4).optional().describe("Maximum tokens allowed for AI processing"),minCharactersToEnhance:at().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableRegexValidation&&!e.regexPattern),{message:"regexPattern is required when enableRegexValidation is true",path:["regexPattern"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for short answer questions with optional AI enhancement"),Up=Wn.extend({type:mt("long_text").describe("Must be exactly 'long_text'"),maxCharacters:at().int().min(1).max(5e4).optional().describe("Maximum number of characters allowed (higher limit for long text)"),minCharacters:at().int().min(0).optional().describe("Minimum number of characters required"),rows:at().int().min(1).max(20).optional().describe("Number of textarea rows to display (1-20)"),placeholder:z().max(500).optional().describe("Placeholder text for the textarea (longer for long text)"),enableEnhanceWithAi:Ke().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:z().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:at().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:at().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:at().int().min(1).max(25e3).optional().describe("Maximum tokens allowed for AI processing (higher for long text)"),minCharactersToEnhance:at().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for long answer questions with rich text support and AI enhancement"),Cp=Wn.extend({type:mt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:z().max(200).optional().describe("Placeholder text for the nested dropdown"),options:lt(pu).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:mt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:zp.optional().default("none").describe("How to order the nested choices"),preserveLastChoices:at().int().min(0).max(10).optional().describe("Number of choice levels to preserve (0-10)"),prepopulatedValue:z().max(1e3).optional().describe("Default value to pre-populate"),allowOther:Ke().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:z().max(100).optional().describe('Column name for storing custom "other" values'),maxDepth:at().int().min(1).max(10).optional().describe("Maximum nesting depth allowed (1-10)"),cascadeLabels:Ke().optional().default(!1).describe("Whether to cascade labels from parent options")}).refine(e=>!(e.allowOther&&!e.otherColumnName),{message:"otherColumnName is required when allowOther is true",path:["otherColumnName"]}).describe("Schema for nested dropdown questions with hierarchical option structure"),Wo=Li("type",[Np,jp,Tp,Op,Ep,Pp,Up,Cp]),Dp=$e({markerNo:z(),timeline:z(),comment:z()}),Mp=$e({fileType:z(),fileName:z(),markers:lt(Dp)}),Lp=$e({nps:at().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:lt(z()).optional().describe("Array of selected nested option IDs"),longText:z().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:z().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:z().optional().describe("single selected option ID (for single choice questions)"),rating:at().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:lt(z()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:Mp.optional().describe("Annotation object containing file and marker details"),others:z().optional().describe("For multiple choice questions and single choice questions, this is the value of the other option")}).describe("Flexible answer item supporting various question types and custom fields"),Ap=Lp,Zp=wt(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),ik={RECURRING:"R",ONE_TIME:"S"},qp=wt(["Y","N"]).describe("Yes/No enumeration using Y/N values"),ok={YES:"Y",NO:"N"},Rp=wt(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),ak={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Fp=$e({surveyType:Zp.describe("Type of feedback: R for recurring, O for one-time"),showOnce:qp.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:z().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:z().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:Rp.describe("Time unit for recurring schedule"),startDate:z().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Start date and time for the feedback in ISO format"),stopDate:z().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Stop date and time for the feedback in ISO format")}).refine(e=>!(e.surveyType==="S"&&e.showOnce==="N"),{message:"One-time feedback must have showOnce set to 'Y'",path:["showOnce"]}).refine(e=>e.surveyType==="R"?parseInt(e.recurringValue)>0:!0,{message:"Recurring feedback must have a positive recurring value",path:["recurringValue"]}).refine(e=>{const n=new Date(e.startDate);return new Date(e.stopDate)>n},{message:"Stop date must be after start date",path:["stopDate"]}).describe("Schema defining frequency and scheduling properties for feedback"),Wp=$e({isShareable:Ke().describe("Whether the feedback results can be shared externally"),isEmailShareable:Ke().describe("Whether the feedback can be shared via email")}).describe("Schema defining external publishing and sharing properties for feedback"),Qp=wt(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),sk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Gp=$e({formTitle:z().describe("Title of the feedback form"),formDescription:z().describe("Description of the feedback form"),isPublished:Qp.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),Ye=z().min(1).describe("Translated text content"),Jp=$e({type:mt("rating").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),minLabel:Ye.optional().describe("Minimum rating label translation"),maxLabel:Ye.optional().describe("Maximum rating label translation")}).describe("Translation schema for rating questions"),Vp=$e({type:mt("single_choice").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),placeholder:Ye.optional().describe("Input placeholder translation")}).catchall(Ye).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for single choice questions"),Yp=$e({type:mt("multiple_choice_multiple").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),placeholder:Ye.optional().describe("Input placeholder translation")}).catchall(Ye).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for multiple choice questions"),Bp=$e({type:mt("nps").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),minLabel:Ye.optional().describe("Minimum NPS label (0) translation"),maxLabel:Ye.optional().describe("Maximum NPS label (10) translation")}).catchall(Ye).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","minLabel","maxLabel"].includes(o)).every(o=>/^scaleLabel\.\d+$/.test(o)),{message:"Additional keys must follow the pattern 'scaleLabel.{number}'"}).describe("Translation schema for NPS questions"),Kp=$e({type:mt("short_answer").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),placeholder:Ye.optional().describe("Input placeholder translation")}).describe("Translation schema for short answer questions"),Hp=$e({type:mt("long_text").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),placeholder:Ye.optional().describe("Textarea placeholder translation")}).describe("Translation schema for long answer questions"),Xp=$e({type:mt("nested_selection").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),placeholder:Ye.optional().describe("Dropdown placeholder translation")}).catchall(Ye).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^nestedOption\..+\.(label|hint)$/.test(o)),{message:"Additional keys must follow the pattern 'nestedOption.{id}.{label|hint}'"}).describe("Translation schema for nested selection questions"),eg=$e({type:mt("annotation").describe("Question type identifier"),title:Ye.describe("Question title translation"),description:Ye.optional().describe("Question description translation"),errorMessage:Ye.optional().describe("Error message translation"),annotationText:Ye.optional().describe("Annotation display text translation"),noAnnotationText:Ye.optional().describe("No annotation display text translation")}).describe("Translation schema for annotation questions"),tg=Rn([Jp,Vp,Yp,Bp,Kp,Hp,Xp,eg]).describe("Union of all question type translation schemas"),uk=z().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),ck=Pt(uk,tg).describe("Question translations keyed by language code"),ng=Pt(z().uuid(),ck).describe("Question-centric translations keyed by question ID, then by language code"),gu=ng.describe("Question-centric translations at root level"),rg=class{constructor(n,o="en"){this.translations=n,this.defaultLanguage=o}getQuestionTranslations(n,o){const s=this.translations[n];if(!s)return null;let t=s[o];return t||(t=s[this.defaultLanguage]),t||null}getTranslationText(n,o,s){const t=this.getQuestionTranslations(n,o);if(!t)return null;if(s in t){const a=t[s];return typeof a=="string"?a:null}return null}getQuestionLanguages(n){const o=this.translations[n];return o?Object.keys(o):[]}getAvailableLanguages(){const n=new Set;return Object.values(this.translations).forEach(o=>{Object.keys(o).forEach(s=>{n.add(s)})}),Array.from(n)}isLanguageSupportedForQuestion(n,o){const s=this.translations[n];return s?o in s:!1}isLanguageSupported(n){return this.getAvailableLanguages().includes(n)}getDefaultLanguage(){return this.defaultLanguage}getQuestionIds(){return Object.keys(this.translations)}getQuestionType(n,o){const s=o||this.defaultLanguage;return this.getQuestionTranslations(n,s)?.type||null}};Fn(rg,"TranslationProvider");var ig=rg;function og(e,n="en"){return new ig(e,n)}Fn(og,"createTranslationProvider");var ag=wt(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),lk={FADE:"fade",MANUAL:"manual"},vu=$e({title:z().min(1).max(200).describe("The main title displayed on the welcome screen"),description:z().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:z().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),hu=$e({title:z().min(1).max(200).describe("The main title displayed on the end screen"),message:z().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:z().min(1).max(50).describe("Text displayed on the end screen button"),dismissBehavior:ag.describe("How the end screen should be dismissed (fade out or manual dismissal)"),fadeDuration:at().int().min(0).max(1e4).describe("Duration in milliseconds for fade dismissal (0-10000)")}).describe("Schema for end screen configuration fields"),bu=$e({title:z().min(1).max(200).describe("Translated title text for welcome screen"),description:z().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:z().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),yu=$e({buttonLabel:z().min(1).max(50).describe("Translated text for the end button label"),title:z().min(1).max(200).describe("Translated title text for end screen"),message:z().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),$u=$e({pagination:Ke().describe("Whether to show pagination for multi-page forms"),questionNumber:Ke().describe("Whether to display question numbers"),pageTitle:Ke().describe("Whether to show page titles in multi-page forms"),blockerFeedback:Ke().describe("Whether to show blocker feedback for validation errors"),submitButtonLabel:z().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:z().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:z().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:z().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:z().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:z().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),_u=$e({value:z().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:z().min(1).max(50).describe("Display name for the language (e.g., 'English', 'Spanish', 'French')"),isFixed:Ke().default(!1).describe("Whether this language is fixed and cannot be deleted by users")}).describe("Schema for individual language field with value, label, and fixed status"),Qo=lt(_u).describe("Schema for array of available languages"),ku=$e({submitButtonLabel:z().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:z().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:z().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:z().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:z().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:z().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),wu=wt(["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]).describe("Available positions for widget placement"),dk={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},fk=wt(["light","dark"]).describe("Available theme modes for the widget"),mk={LIGHT:"light",DARK:"dark"},sg=$e({darkOverlay:Ke().describe("Whether to show a dark overlay behind the widget"),closeButton:Ke().describe("Whether to display a close button on the widget"),progressBar:Ke().describe("Whether to show a progress bar indicating completion status"),showBranding:Ke().describe("Whether to display branding elements on the widget"),customPosition:Ke().describe("Whether custom positioning is enabled"),customIconPosition:Ke().describe("Whether custom icon positioning is enabled"),customCss:z().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Su=$e({brandColor:z().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #3366CC)").describe("Primary brand color in hex format"),overlayColor:z().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #FFFFFF)").describe("Overlay background color in hex format"),textColor:z().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #333333)").describe("Primary text color in hex format"),backgroundColor:Rn([z().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),z().regex(/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*[01](?:\.\d+)?)?\s*\)$/i)]).describe("Background color in hex format or rgba format (e.g., #1A1A1A or rgba(255,255,255, 1))")}).describe("Color scheme for a single theme"),xu=$e({light:Su,dark:Su}).describe("Complete theme configuration with light and dark variants"),Iu=$e({themes:xu.describe("Color themes for light and dark modes"),featureSettings:sg.describe("UI feature settings controlling widget behavior"),selectedPosition:wu.describe("Selected position for the main widget"),selectedIconPosition:wu.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),ug=$e({name:z().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:z().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),cg=$e({name:z().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:z().describe("Human-readable label for the field"),placeholder:z().describe("Placeholder text for input fields"),operators:lt(ug).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),lg=$e({customEventFields:lt(cg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),dg=$e({query:z().describe("The structured query definition as a JSON string"),naturalLanguage:z().describe("Human-readable description of the query conditions"),jsonLogic:z().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:z().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),fg=$e({id:z().describe("Unique identifier for this condition"),event:z().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:dg.describe("The query conditions to evaluate when the event occurs"),metadata:lg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),mg=$e({triggerType:z().describe("The type of action to perform (e.g., 'delay', 'scroll', 'immediately')"),delay:at().int().min(0).optional().describe("Delay in seconds before performing the action"),scroll:Rn([z(),at()]).optional().describe("Scroll position (percentage as string like '75%' or pixel value as number)")}).describe("Schema defining the action to perform when conditions are met"),pg=$e({if:fg.describe("The condition that must be met"),then:mg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),Go=$e({id:z().describe("Unique identifier for this filter condition"),category:z().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:z().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:z().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:lt(z()).min(1).describe("Array of values to compare against"),tbl_key:z().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),gg=$e({device:lt(Go).optional().describe("Array of device-specific filter conditions"),user:lt(Go).optional().describe("Array of user-specific filter conditions"),geo_location:lt(Go).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),vg=$e({applications:lt(z()).min(1).describe("Array of application names this targeting applies to"),userType:z().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:gg.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),hg=$e({id:z().describe("Unique identifier for the audience segment"),name:z().min(1).max(200).describe("Display name for the audience segment"),isImportant:Ke().describe("Whether this segment is marked as important for targeting"),when:lt(pg).min(1).describe("Array of conditional when clauses with if-then logic"),who:vg.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),zu=$e({isAuto:Ke().describe("Whether automatic triggering is enabled for this audience"),isManual:Ke().describe("Whether manual triggering is enabled for this audience"),segments:lt(hg).min(0).describe("Array of audience segments for targeting conditions")}).refine(e=>e.isAuto||e.isManual,{message:"At least one of isAuto or isManual must be true",path:["isAuto"]}).describe("Schema defining audience trigger properties for form targeting"),Jo=Li("isEnabled",[$e({isEnabled:mt(!1).describe("Whether other configuration properties are enabled"),otherFields:$u.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Pt(z(),ku).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),$e({isEnabled:mt(!0).describe("Whether other configuration properties are enabled"),otherFields:$u.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Pt(z(),ku).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),Vo=Li("isEnabled",[$e({isEnabled:mt(!1).describe("Whether welcome screen is enabled"),welcomeFields:vu.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Pt(z(),bu).optional().describe("Translations for welcome screen content keyed by language code")}),$e({isEnabled:mt(!0).describe("Whether welcome screen is enabled"),welcomeFields:vu.describe("Welcome screen configuration fields including title, description, and button label"),translations:Pt(z(),bu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),Yo=Li("isEnabled",[$e({isEnabled:mt(!1).describe("Whether end screen is enabled"),endFields:hu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Pt(z(),yu).optional().describe("Translations for end screen content keyed by language code")}),$e({isEnabled:mt(!0).describe("Whether end screen is enabled"),endFields:hu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Pt(z(),yu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),bg=$e({themeConfiguration:Iu.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),pk=$e({feedbackConfigurationId:Um().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Gp.describe("Configuration properties for the feedback form"),questionnaireFields:$e({questions:Pt(z(),Wo).describe("Collection of questions keyed by their string identifiers"),sections:lt(Fo).describe("Array of sections that organize questions into logical groups"),selectedLanguages:Qo.describe("Array of languages selected for this questionnaire"),translations:gu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:Fp.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:Wp.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:zu.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:Jo.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:Vo.describe("Welcome screen configuration including content and translations"),endScreenProperties:Yo.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:bg.describe("Appearance configuration including themes, colors, and UI feature settings")}).describe("Complete schema for all feedback-level properties including scheduling, publishing, audience targeting, configuration, screens, and appearance"),yg=$e({mandatoryFetchConfigAtPaths:lt(z()).describe("Array of paths where configuration must be fetched from server when navigated by user"),configSyncIntervalSeconds:at().int().positive().describe("Interval in seconds for configuration synchronization between client and server"),disableAllSurvey:Ke().describe("Flag to disable all surveys globally"),feedbackIntervalDuration:at().int().positive().describe("Duration in seconds for feedback interval between two auto triggered feedbacks")}).describe("Master properties configuration for global survey settings"),$g=wt(["light","dark","system"]).describe("Enumeration of supported theme modes"),gk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},Zi=$e({$deviceType:z().describe("Type of device being used"),$timezone:z().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:$g.describe("Current theme mode preference"),$os:z().describe("Operating system running on the device"),$osVersion:z().describe("Version of the operating system"),$appVersion:z().describe("Version of the application"),$app:z().describe("Browser or application being used"),$language:z().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),qi=$e({$sessionId:z().uuid().describe("Unique session identifier"),$timestamp:z().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),vk=$e({deviceInfo:Zi.describe("Device information"),sessionInfo:qi.describe("Session information")}).describe("Combined device and session information"),_g=$e({$counter:Pt(z(),at().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Pt(z(),Do()).describe("Properties to set for the user").optional(),$setOnce:Pt(z(),Do()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:lt(z()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),Bo=$e({userName:z().email().describe("User's email address as username"),properties:_g.describe("User properties and counters")}).describe("User information including identification and properties"),kg=wt(["V","S"]).describe("User action: V for view, S for submit"),hk={VIEW:"V",SUBMIT:"S"},Ko=$e({feedbackIdentifier:z().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:z().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:at().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:kg.describe("Action performed by the user"),responseLanguageCode:z().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),wg=$e({questionId:z().uuid().describe("Unique identifier for the question"),answer:Ap.describe("The answer provided for this question"),type:z().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:z().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),Sg=$e({questions:lt(wg).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),xg=$e({customEventName:z().nullable().describe("Custom event name that triggered the feedback"),currentPath:z().describe("Current page path where feedback was triggered"),eventType:z().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),Nu=$e({formConfig:Ko.describe("Form configuration information"),deviceInfo:Zi.describe("Device information"),sessionInfo:qi.describe("Session information"),userInfo:Bo.optional().describe("User information (optional)"),matchedTriggerProperties:xg.describe("Properties of the matched trigger"),customProperties:Pt(z(),_r()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),Ig=Nu.extend({formConfig:Ko.extend({userAction:mt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),zg=Nu.extend({formConfig:Ko.extend({userAction:mt("S").describe("Action performed by the user (submit)")}),response:Sg.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),bk=Rn([Ig,zg]).describe("Union schema for both view and submit feedback requests"),Ng=$e({feedbackConfigurationId:z().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:z().describe("Title of the feedback configuration"),triggerProperties:zu.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:$e({themes:$e({light:$e({brandColor:z().describe("Brand color for light theme"),overlayColor:z().describe("Overlay color for light theme"),textColor:z().describe("Text color for light theme"),backgroundColor:z().describe("Background color for light theme")}).describe("Light theme colors"),dark:$e({brandColor:z().describe("Brand color for dark theme"),overlayColor:z().describe("Overlay color for dark theme"),textColor:z().describe("Text color for dark theme"),backgroundColor:z().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:$e({darkOverlay:Ke().describe("Whether to show dark overlay"),closeButton:Ke().describe("Whether to show close button"),progressBar:Ke().describe("Whether to show progress bar"),showBranding:Ke().describe("Whether to show branding"),customPosition:Ke().describe("Whether custom position is enabled"),customIconPosition:Ke().describe("Whether custom icon position is enabled"),customCss:z().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:z().describe("Selected position for the feedback icon"),selectedPosition:z().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),jg=$e({feedbackConfigurationId:z().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:z().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),yk=$e({deviceInfo:Zi.describe("Device information"),sessionInfo:qi.describe("Session information"),userInfo:Bo.optional().describe("User information (optional)"),force:Ke().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),$k=$e({formConfig:jg.describe("Form configuration for the specific feedback"),deviceInfo:Zi.describe("Device information"),sessionInfo:qi.describe("Session information"),userInfo:Bo.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),Tg=$e({formTitle:z().describe("Title of the feedback form"),formDescription:z().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),Og=$e({questions:Pt(z(),Wo).describe("Collection of questions keyed by their string identifiers"),sections:lt(Fo).describe("Array of sections that organize questions into logical groups"),translations:Pt(z(),Do()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:Qo.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),_k=$e({feedbackConfigurationId:z().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:z().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:Tg.describe("Form configuration with title and description"),questionnaireFields:Og.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:Jo.describe("Other configuration properties using existing schema"),welcomeScreenProperties:Vo.describe("Welcome screen properties using existing schema"),endScreenProperties:Yo.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),kk=$e({masterProperties:yg.describe("Master properties for global survey settings"),feedbackConfiguration:lt(Ng).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),wk=$e({questionId:z().describe("Unique identifier for the question"),identifier:z().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:z().uuid().describe("Unique identifier for the feedback configuration"),userText:z().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),Eg=$e({userText:z().describe("Original text input from the user"),refinedText:z().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),Sk=$e({success:Ke().describe("Indicates whether the operation was successful"),code:z().describe("Response code indicating the status"),message:z().describe("Human-readable message describing the result"),messageId:z().describe("Unique identifier for the response message"),data:Eg.describe("Response data containing original and refined text"),error:z().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function Br(e,n){if(e===null||typeof e>"u"||typeof e!="object")return e;const o=Array.isArray(e)?[]:{};for(const[s,t]of Object.entries(e)){let a=s;typeof s=="string"&&!s.includes("-")&&(a=n(s)),o[a]=Array.isArray(t)?t.map(d=>typeof d=="object"&&!(d instanceof Uint8Array)&&!(d instanceof Date)?Br(d,n):d):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?Br(t,n):t}return o}Fn(Br,"convertObject");function Ho(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,n=>n[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,n=>n[1].toUpperCase())}Fn(Ho,"toCamel");function Pg(e){return Br(e,Ho)}Fn(Pg,"objectToCamel");function ju(e){let n=e,o=0;for(;(/([a-z])([0-9])/.exec(n)?.length||0)>2&&o<10;)n=n.replace(/([a-z])([0-9])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;for(;(/(.+?)([A-Z])/.exec(n)?.length||0)>2&&o<10;)n=n.replace(/(.+?)([A-Z])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;return n.toLowerCase()}Fn(ju,"toSnake");function Ug(e){return Br(e,ju)}Fn(Ug,"objectToSnake");function Tu(e){return Ho(e).replace(/^([a-z])/,n=>n[0].toUpperCase())}Fn(Tu,"toPascal");function Cg(e){return Br(e,Tu)}Fn(Cg,"objectToPascal");var Dg=wt(["light","dark"]).describe("Current theme mode of the application"),xk={LIGHT:"light",DARK:"dark"},Ik=$e({theme:xu.describe("Theme configuration including light and dark theme colors"),currentMode:Dg.describe("Current theme mode (light or dark)"),currentLanguage:_u.describe("Currently selected language configuration"),questions:Pt(z(),Wo).describe("Collection of questions keyed by their string identifiers"),questionLanguages:Qo.describe("Available languages for questions"),otherConfigurationProperties:Jo.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:Vo.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:Yo.optional().describe("End screen configuration (optional)"),translations:gu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:qo({input:[at()],output:nu()}).optional().describe("Optional callback function triggered when section changes"),onClose:qo({input:[],output:nu()}).optional().describe("Optional callback function triggered when the form is closed"),sections:lt(Fo).describe("Array of sections that organize questions into logical groups"),themeSettings:Iu.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const zk=Lh(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:Dp,AnnotationSchema:Mp,AnswerItemSchema:Lp,AnswerSchema:Ap,ChoiceOrderOptions:rk,CurrentModes:xk,DeviceThemes:gk,DismissBehaviors:lk,EndFieldsTranslationSchema:yu,EndScreenFieldsSchema:hu,LanguageFieldSchema:_u,LanguagesSchema:Qo,MultipleChoiceDisplayStyles:tk,MultipleChoiceMultipleDisplayStyles:nk,OtherFieldsSchema:$u,OtherFieldsTranslationSchema:ku,Positions:dk,PublicationStatuses:sk,QuestionStatuses:H_,QuestionTypes:V_,RatingDisplayStyles:X_,RatingRepresentationSizes:ek,RecurringUnits:ak,SurveyTypes:ik,ThemeModes:mk,TranslationProvider:ig,UserActions:hk,ValidationRuleTypes:Y_,VisibilityConditionOperators:K_,WelcomeFieldsTranslationSchema:bu,WelcomeScreenFieldsSchema:vu,YesNoValues:ok,annotationQuestionSchema:jp,annotationQuestionTranslationSchema:eg,appPropsSchema:Ik,appearancePropertiesSchema:bg,audienceSegmentSchema:hg,audienceTriggerPropertiesSchema:zu,baseSubmitFeedbackSchema:Nu,categorySpecificFiltersSchema:gg,choiceOrderOptionSchema:zp,combinedQuestionSchema:Wo,conditionalIfMetadataSchema:lg,conditionalIfSchema:fg,conditionalWhenSchema:pg,createTranslationProvider:og,currentModeSchema:Dg,customEventFieldOperatorSchema:ug,customEventFieldSchema:cg,deviceInfoSchema:Zi,deviceSessionInfoSchema:vk,deviceThemeSchema:$g,dismissBehaviorSchema:ag,endScreenPropertiesSchema:Yo,externalPublishingPropertiesSchema:Wp,featureSettingsSchema:sg,feedbackConfigurationItemSchema:Ng,feedbackConfigurationSchema:Gp,feedbackRequestSchema:bk,fetchConfigurationListResponseSchema:kk,fetchConfigurationListSchema:yk,fetchFeedbackDetailsResponseSchema:_k,fetchFeedbackDetailsSchema:$k,fetchFormConfigSchema:jg,filterConditionSchema:Go,formConfigSchema:Ko,formConfigurationResponseSchema:Tg,formPropertiesSchema:pk,frequencyAndSchedulingPropertiesSchema:Fp,longAnswerQuestionSchema:Up,longAnswerQuestionTranslationSchema:Hp,masterPropertiesSchema:yg,matchedTriggerPropertiesSchema:xg,multipleChoiceDisplayStyleSchema:xp,multipleChoiceMultipleDisplayStyleSchema:Ip,multipleChoiceMultipleQuestionSchema:Op,multipleChoiceQuestionTranslationSchema:Yp,multipleChoiceSingleQuestionSchema:Tp,nestedDropdownQuestionSchema:Cp,nestedOptionSchema:pu,nestedSelectionQuestionTranslationSchema:Xp,npsQuestionSchema:Ep,npsQuestionTranslationSchema:Bp,objectToCamel:Pg,objectToPascal:Cg,objectToSnake:Ug,otherConfigurationPropertiesSchema:Jo,positionSchema:wu,publicationStatusSchema:Qp,queryOutputSchema:dg,questionCentricTranslationsSchema:ng,questionOptionSchema:mu,questionResponseSchema:wg,questionSchema:Wn,questionStatusSchema:kp,questionTranslationSchema:tg,questionTypeSchema:bp,questionnaireFieldsResponseSchema:Og,ratingDisplayStyleSchema:wp,ratingQuestionSchema:Np,ratingQuestionTranslationSchema:Jp,ratingRepresentationSizeSchema:Sp,recurringUnitSchema:Rp,refineTextDataSchema:Eg,refineTextParamsSchema:wk,refineTextResponseSchema:Sk,responseSchema:Sg,sectionSchema:Fo,sessionInfoSchema:qi,shortAnswerQuestionSchema:Pp,shortAnswerQuestionTranslationSchema:Kp,singleChoiceQuestionTranslationSchema:Vp,submitFeedbackSchema:zg,surveyTypeSchema:Zp,themeColorsSchema:Su,themeConfigurationSchema:Iu,themeModeSchema:fk,themesSchema:xu,toCamel:Ho,toPascal:Tu,toSnake:ju,translationEntrySchema:Ye,translationsSchema:gu,triggerActionSchema:mg,userActionSchema:kg,userInfoSchema:Bo,userPropertiesSchema:_g,validationRuleSchema:$p,validationRuleTypeSchema:yp,viewFeedbackSchema:Ig,visibilityConditionSchema:_p,welcomeScreenPropertiesSchema:Vo,whoSchema:vg,yesNoSchema:qp,z:G_},Symbol.toStringTag,{value:"Module"})));var Nk=_i.exports,Mg;function jk(){return Mg||(Mg=1,(function(e,n){(function(o,s){s(n,zk)})(Nk,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function d(){t=!0}d();const $=1,A=2,B=4,me=8,ae=16,Ze=1,be=2,Y=4,ze=8,Ce=16,st=1,rt=2,ot="[",ct="[!",Qt="]",Pn={},Tt=Symbol(),Xo="http://www.w3.org/1999/xhtml",Ou="http://www.w3.org/2000/svg",Eu="@attach",Ri=!1;var kr=Array.isArray,Pu=Array.prototype.indexOf,wr=Array.from,Sr=Object.keys,Un=Object.defineProperty,pn=Object.getOwnPropertyDescriptor,Fi=Object.getOwnPropertyDescriptors,ea=Object.prototype,pe=Array.prototype,Qe=Object.getPrototypeOf,gt=Object.isExtensible;function St(r){return typeof r=="function"}const Ut=()=>{};function gn(r){return r()}function xr(r){for(var i=0;i<r.length;i++)r[i]()}function Kr(){var r,i,u=new Promise((c,f)=>{r=c,i=f});return{promise:u,resolve:r,reject:i}}function Dt(r,i){if(Array.isArray(r))return r;if(!(Symbol.iterator in r))return Array.from(r);const u=[];for(const c of r)if(u.push(c),u.length===i)break;return u}const zt=2,Ir=4,Hr=8,zr=16,Qn=32,ir=64,Uu=128,vn=256,ta=512,Lt=1024,un=2048,Gn=4096,xn=8192,Nr=16384,Cu=32768,Xr=65536,Lg=1<<17,Ek=1<<18,jr=1<<19,Ag=1<<20,Du=1<<21,na=1<<22,Tr=1<<23,Cn=Symbol("$state"),Mu=Symbol("legacy props"),Pk=Symbol(""),Wi=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Uk=1,Lu=3,ei=8;function Zg(r){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ck(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Dk(r){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Lk(r){throw new Error("https://svelte.dev/e/effect_orphan")}function Ak(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Zk(){throw new Error("https://svelte.dev/e/hydration_failed")}function qk(r){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Fk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Wk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Qk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ra(r){console.warn("https://svelte.dev/e/hydration_mismatch")}function Gk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Jk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let qe=!1;function Gt(r){qe=r}let Xe;function At(r){if(r===null)throw ra(),Pn;return Xe=r}function Or(){return At(Mn(Xe))}function T(r){if(qe){if(Mn(Xe)!==null)throw ra(),Pn;Xe=r}}function Vk(r=1){if(qe){for(var i=r,u=Xe;i--;)u=Mn(u);Xe=u}}function ia(r=!0){for(var i=0,u=Xe;;){if(u.nodeType===ei){var c=u.data;if(c===Qt){if(i===0)return u;i-=1}else(c===ot||c===ct)&&(i+=1)}var f=Mn(u);r&&u.remove(),u=f}}function qg(r){if(!r||r.nodeType!==ei)throw ra(),Pn;return r.data}function Rg(r){return r===this.v}function Fg(r,i){return r!=r?i==i:r!==i||r!==null&&typeof r=="object"||typeof r=="function"}function Wg(r){return!Fg(r,this.v)}let yt=null;function ti(r){yt=r}function Nt(r,i=!1,u){yt={p:yt,c:null,e:null,s:r,x:null,l:t&&!i?{s:null,u:null,$:[]}:null}}function jt(r){var i=yt,u=i.e;if(u!==null){i.e=null;for(var c of u)mv(c)}return r!==void 0&&(i.x=r),yt=i.p,r??{}}function Qi(){return!t||yt!==null&&yt.l===null}let Er=[];function Qg(){var r=Er;Er=[],xr(r)}function Jn(r){if(Er.length===0&&!Gi){var i=Er;queueMicrotask(()=>{i===Er&&Qg()})}Er.push(r)}function Yk(){for(;Er.length>0;)Qg()}const Bk=new WeakMap;function Gg(r){var i=Je;if(i===null)return nt.f|=Tr,r;if((i.f&Cu)===0){if((i.f&Uu)===0)throw!i.parent&&r instanceof Error&&Jg(r),r;i.b.error(r)}else ni(r,i)}function ni(r,i){for(;i!==null;){if((i.f&Uu)!==0)try{i.b.error(r);return}catch(u){r=u}i=i.parent}throw r instanceof Error&&Jg(r),r}function Jg(r){const i=Bk.get(r);i&&(Un(r,"message",{value:i.message}),Un(r,"stack",{value:i.stack}))}const oa=new Set;let xt=null,aa=null,Au=new Set,Dn=[],sa=null,Zu=!1,Gi=!1;class In{current=new Map;#t=new Map;#e=new Set;#l=0;#o=null;#u=[];#i=[];#r=[];#n=[];#a=[];#c=[];skipped_effects=new Set;process(i){Dn=[],aa=null;for(const f of i)this.#d(f);if(this.#l===0){this.#f();var u=this.#i,c=this.#r;this.#i=[],this.#r=[],this.#n=[],aa=this,xt=null,Yg(u),Yg(c),aa=null,this.#o?.resolve()}else this.#s(this.#i),this.#s(this.#r),this.#s(this.#n);for(const f of this.#u)ai(f);this.#u=[]}#d(i){i.f^=Lt;for(var u=i.first;u!==null;){var c=u.f,f=(c&(Qn|ir))!==0,m=f&&(c&Lt)!==0,p=m||(c&xn)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){f?u.f^=Lt:(c&Ir)!==0?this.#r.push(u):(c&Lt)===0&&((c&na)!==0&&u.b?.is_pending()?this.#u.push(u):Bi(u)&&((u.f&zr)!==0&&this.#n.push(u),ai(u)));var v=u.first;if(v!==null){u=v;continue}}var g=u.parent;for(u=u.next;u===null&&g!==null;)u=g.next,g=g.parent}}#s(i){for(const u of i)((u.f&un)!==0?this.#a:this.#c).push(u),Rt(u,Lt);i.length=0}capture(i,u){this.#t.has(i)||this.#t.set(i,u),this.current.set(i,i.v)}activate(){xt=this}deactivate(){xt=null}flush(){if(Dn.length>0){if(this.activate(),Vg(),xt!==null&&xt!==this)return}else this.#l===0&&this.#f();this.deactivate();for(const i of Au)if(Au.delete(i),i(),xt!==null)break}#f(){for(const i of this.#e)i();if(this.#e.clear(),oa.size>1){this.#t.clear();let i=!0;for(const u of oa){if(u===this){i=!1;continue}for(const[c,f]of this.current){if(u.current.has(c))if(i)u.current.set(c,f);else continue;Bg(c)}if(Dn.length>0){xt=u;for(const c of Dn)u.#d(c);Dn=[]}}xt=null}oa.delete(this)}increment(){this.#l+=1}decrement(){this.#l-=1;for(const i of this.#a)Rt(i,un),Ur(i);for(const i of this.#c)Rt(i,Gn),Ur(i);this.flush()}add_callback(i){this.#e.add(i)}settled(){return(this.#o??=Kr()).promise}static ensure(){if(xt===null){const i=xt=new In;oa.add(xt),Gi||In.enqueue(()=>{xt===i&&i.flush()})}return xt}static enqueue(i){Jn(i)}static apply(i){return Ut}}function ut(r){var i=Gi;Gi=!0;try{for(var u;;){if(Yk(),Dn.length===0&&(xt?.flush(),Dn.length===0))return sa=null,u;Vg()}}finally{Gi=i}}function Vg(){var r=oi;Zu=!0;try{var i=0;for(yv(!0);Dn.length>0;){var u=In.ensure();if(i++>1e3){var c,f;Kk()}u.process(Dn),or.clear()}}finally{Zu=!1,yv(r),sa=null}}function Kk(){try{Ak()}catch(r){ni(r,sa)}}let Pr=null;function Yg(r){var i=r.length;if(i!==0){for(var u=0;u<i;){var c=r[u++];if((c.f&(Nr|xn))===0&&Bi(c)&&(Pr=[],ai(c),c.deps===null&&c.first===null&&c.nodes_start===null&&(c.teardown===null&&c.ac===null?vv(c):c.fn=null),Pr?.length>0)){or.clear();for(const f of Pr)ai(f);Pr=[]}}Pr=null}}function Bg(r){if(r.reactions!==null)for(const i of r.reactions){const u=i.f;(u&zt)!==0?Bg(i):(u&(na|zr))!==0&&(Rt(i,un),Ur(i))}}function Ur(r){for(var i=sa=r;i.parent!==null;){i=i.parent;var u=i.f;if(Zu&&i===Je&&(u&zr)!==0)return;if((u&(ir|Qn))!==0){if((u&Lt)===0)return;i.f^=Lt}}Dn.push(i)}function Hk(r){let i=0,u=ar(0),c;return()=>{fw()&&(l(u),Cr(()=>(i===0&&(c=U(()=>r(()=>Vi(u)))),i+=1,()=>{Jn(()=>{i-=1,i===0&&(c?.(),c=void 0,Vi(u))})})))}}var Xk=Xr|jr|Uu;function ew(r,i,u){new tw(r,i,u)}class tw{parent;#t=!1;#e;#l=qe?Xe:null;#o;#u;#i;#r=null;#n=null;#a=null;#c=null;#d=0;#s=0;#f=!1;#m=null;#h=()=>{this.#m&&ri(this.#m,this.#d)};#b=Hk(()=>(this.#m=ar(this.#d),()=>{this.#m=null}));constructor(i,u,c){this.#e=i,this.#o=u,this.#u=c,this.parent=Je.b,this.#t=!!this.#o.pending,this.#i=Dr(()=>{if(Je.b=this,qe){const f=this.#l;Or(),f.nodeType===ei&&f.data===ct?this.#$():this.#y()}else{try{this.#r=qt(()=>c(this.#e))}catch(f){this.error(f)}this.#s>0?this.#g():this.#t=!1}},Xk),qe&&(this.#e=Xe)}#y(){try{this.#r=qt(()=>this.#u(this.#e))}catch(i){this.error(i)}this.#t=!1}#$(){const i=this.#o.pending;i&&(this.#n=qt(()=>i(this.#e)),In.enqueue(()=>{this.#r=this.#p(()=>(In.ensure(),qt(()=>this.#u(this.#e)))),this.#s>0?this.#g():(Mr(this.#n,()=>{this.#n=null}),this.#t=!1)}))}is_pending(){return this.#t||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#o.pending}#p(i){var u=Je,c=nt,f=yt;hn(this.#i),nn(this.#i),ti(this.#i.ctx);try{return i()}catch(m){return Gg(m),null}finally{hn(u),nn(c),ti(f)}}#g(){const i=this.#o.pending;this.#r!==null&&(this.#c=document.createDocumentFragment(),nw(this.#r,this.#c)),this.#n===null&&(this.#n=qt(()=>i(this.#e)))}#v(i){if(!this.has_pending_snippet()){this.parent&&this.parent.#v(i);return}this.#s+=i,this.#s===0&&(this.#t=!1,this.#n&&Mr(this.#n,()=>{this.#n=null}),this.#c&&(this.#e.before(this.#c),this.#c=null),Jn(()=>{In.ensure().flush()}))}update_pending_count(i){this.#v(i),this.#d+=i,Au.add(this.#h)}get_effect_pending(){return this.#b(),l(this.#m)}error(i){var u=this.#o.onerror;let c=this.#o.failed;if(this.#f||!u&&!c)throw i;this.#r&&(Mt(this.#r),this.#r=null),this.#n&&(Mt(this.#n),this.#n=null),this.#a&&(Mt(this.#a),this.#a=null),qe&&(At(this.#l),Vk(),At(ia()));var f=!1,m=!1;const p=()=>{if(f){Jk();return}f=!0,m&&Qk(),In.ensure(),this.#d=0,this.#a!==null&&Mr(this.#a,()=>{this.#a=null}),this.#t=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,qt(()=>this.#u(this.#e)))),this.#s>0?this.#g():this.#t=!1};var v=nt;try{nn(null),m=!0,u?.(i,p),m=!1}catch(g){ni(g,this.#i&&this.#i.parent)}finally{nn(v)}c&&Jn(()=>{this.#a=this.#p(()=>{this.#f=!0;try{return qt(()=>{c(this.#e,()=>i,()=>p)})}catch(g){return ni(g,this.#i.parent),null}finally{this.#f=!1}})})}}function nw(r,i){for(var u=r.nodes_start,c=r.nodes_end;u!==null;){var f=u===c?null:Mn(u);i.append(u),u=f}}function Kg(r,i,u){const c=Qi()?Ji:ft;if(i.length===0){u(r.map(c));return}var f=xt,m=Je,p=rw(),v=qe;Promise.all(i.map(g=>iw(g))).then(g=>{p();try{u([...r.map(c),...g])}catch(b){(m.f&Nr)===0&&ni(b,m)}v&&Gt(!1),f?.deactivate(),Hg()}).catch(g=>{ni(g,m)})}function rw(){var r=Je,i=nt,u=yt,c=xt,f=qe;if(f)var m=Xe;return function(){hn(r),nn(i),ti(u),c?.activate(),f&&(Gt(!0),At(m))}}function Hg(){hn(null),nn(null),ti(null)}function Ji(r){var i=zt|un,u=nt!==null&&(nt.f&zt)!==0?nt:null;return Je===null||u!==null&&(u.f&vn)!==0?i|=vn:Je.f|=jr,{ctx:yt,deps:null,effects:null,equals:Rg,f:i,fn:r,reactions:null,rv:0,v:Tt,wv:0,parent:u??Je,ac:null}}function iw(r,i){let u=Je;u===null&&Ck();var c=u.b,f=void 0,m=ar(Tt),p=!nt,v=new Map;return vw(()=>{var g=Kr();f=g.promise;try{Promise.resolve(r()).then(g.resolve,g.reject)}catch(k){g.reject(k)}var b=xt,h=c.is_pending();p&&(c.update_pending_count(1),h||(b.increment(),v.get(b)?.reject(Wi),v.set(b,g)));const I=(k,N=void 0)=>{h||b.activate(),N?N!==Wi&&(m.f|=Tr,ri(m,N)):((m.f&Tr)!==0&&(m.f^=Tr),ri(m,k)),p&&(c.update_pending_count(-1),h||b.decrement()),Hg()};g.promise.then(I,k=>I(null,k||"unknown"))}),ca(()=>{for(const g of v.values())g.reject(Wi)}),new Promise(g=>{function b(h){function I(){h===f?g(m):b(f)}h.then(I,I)}b(f)})}function ow(r){const i=Ji(r);return _v(i),i}function ft(r){const i=Ji(r);return i.equals=Wg,i}function Xg(r){var i=r.effects;if(i!==null){r.effects=null;for(var u=0;u<i.length;u+=1)Mt(i[u])}}function aw(r){for(var i=r.parent;i!==null;){if((i.f&zt)===0)return i;i=i.parent}return null}function qu(r){var i,u=Je;hn(aw(r));try{Xg(r),i=Iv(r)}finally{hn(u)}return i}function ev(r){var i=qu(r);if(r.equals(i)||(r.v=i,r.wv=Sv()),!Lr){var u=(ur||(r.f&vn)!==0)&&r.deps!==null?Gn:Lt;Rt(r,u)}}const or=new Map;function ar(r,i){var u={f:0,v:r,reactions:null,equals:Rg,rv:0,wv:0};return u}function sr(r,i){const u=ar(r);return _v(u),u}function X(r,i=!1,u=!0){const c=ar(r);return i||(c.equals=Wg),t&&u&&yt!==null&&yt.l!==null&&(yt.l.s??=[]).push(c),c}function tv(r,i){return _(r,U(()=>l(r))),i}function _(r,i,u=!1){nt!==null&&(!jn||(nt.f&Lg)!==0)&&Qi()&&(nt.f&(zt|zr|na|Lg))!==0&&!Yn?.includes(r)&&Wk();let c=u?ii(i):i;return ri(r,c)}function ri(r,i){if(!r.equals(i)){var u=r.v;Lr?or.set(r,i):or.set(r,u),r.v=i;var c=In.ensure();c.capture(r,u),(r.f&zt)!==0&&((r.f&un)!==0&&qu(r),Rt(r,(r.f&vn)===0?Lt:Gn)),r.wv=Sv(),rv(r,un),Qi()&&Je!==null&&(Je.f&Lt)!==0&&(Je.f&(Qn|ir))===0&&(bn===null?yw([r]):bn.push(r))}return i}function nv(r,i=1){var u=l(r),c=i===1?u++:u--;return _(r,u),c}function Vi(r){_(r,r.v+1)}function rv(r,i){var u=r.reactions;if(u!==null)for(var c=Qi(),f=u.length,m=0;m<f;m++){var p=u[m],v=p.f;if(!(!c&&p===Je)){var g=(v&un)===0;g&&Rt(p,i),(v&zt)!==0?rv(p,Gn):g&&((v&zr)!==0&&Pr!==null&&Pr.push(p),Ur(p))}}}function ii(r){if(typeof r!="object"||r===null||Cn in r)return r;const i=Qe(r);if(i!==ea&&i!==pe)return r;var u=new Map,c=kr(r),f=sr(0),m=Ar,p=v=>{if(Ar===m)return v();var g=nt,b=Ar;nn(null),wv(m);var h=v();return nn(g),wv(b),h};return c&&u.set("length",sr(r.length)),new Proxy(r,{defineProperty(v,g,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Rk();var h=u.get(g);return h===void 0?h=p(()=>{var I=sr(b.value);return u.set(g,I),I}):_(h,b.value,!0),!0},deleteProperty(v,g){var b=u.get(g);if(b===void 0){if(g in v){const h=p(()=>sr(Tt));u.set(g,h),Vi(f)}}else _(b,Tt),Vi(f);return!0},get(v,g,b){if(g===Cn)return r;var h=u.get(g),I=g in v;if(h===void 0&&(!I||pn(v,g)?.writable)&&(h=p(()=>{var N=ii(I?v[g]:Tt),j=sr(N);return j}),u.set(g,h)),h!==void 0){var k=l(h);return k===Tt?void 0:k}return Reflect.get(v,g,b)},getOwnPropertyDescriptor(v,g){var b=Reflect.getOwnPropertyDescriptor(v,g);if(b&&"value"in b){var h=u.get(g);h&&(b.value=l(h))}else if(b===void 0){var I=u.get(g),k=I?.v;if(I!==void 0&&k!==Tt)return{enumerable:!0,configurable:!0,value:k,writable:!0}}return b},has(v,g){if(g===Cn)return!0;var b=u.get(g),h=b!==void 0&&b.v!==Tt||Reflect.has(v,g);if(b!==void 0||Je!==null&&(!h||pn(v,g)?.writable)){b===void 0&&(b=p(()=>{var k=h?ii(v[g]):Tt,N=sr(k);return N}),u.set(g,b));var I=l(b);if(I===Tt)return!1}return h},set(v,g,b,h){var I=u.get(g),k=g in v;if(c&&g==="length")for(var N=b;N<I.v;N+=1){var j=u.get(N+"");j!==void 0?_(j,Tt):N in v&&(j=p(()=>sr(Tt)),u.set(N+"",j))}if(I===void 0)(!k||pn(v,g)?.writable)&&(I=p(()=>sr(void 0)),_(I,ii(b)),u.set(g,I));else{k=I.v!==Tt;var q=p(()=>ii(b));_(I,q)}var O=Reflect.getOwnPropertyDescriptor(v,g);if(O?.set&&O.set.call(h,b),!k){if(c&&typeof g=="string"){var K=u.get("length"),ne=Number(g);Number.isInteger(ne)&&ne>=K.v&&_(K,ne+1)}Vi(f)}return!0},ownKeys(v){l(f);var g=Reflect.ownKeys(v).filter(I=>{var k=u.get(I);return k===void 0||k.v!==Tt});for(var[b,h]of u)h.v!==Tt&&!(b in v)&&g.push(b);return g},setPrototypeOf(){Fk()}})}function iv(r){try{if(r!==null&&typeof r=="object"&&Cn in r)return r[Cn]}catch{}return r}function sw(r,i){return Object.is(iv(r),iv(i))}var ov,av,sv,uv;function Ru(){if(ov===void 0){ov=window,av=/Firefox/.test(navigator.userAgent);var r=Element.prototype,i=Node.prototype,u=Text.prototype;sv=pn(i,"firstChild").get,uv=pn(i,"nextSibling").get,gt(r)&&(r.__click=void 0,r.__className=void 0,r.__attributes=null,r.__style=void 0,r.__e=void 0),gt(u)&&(u.__t=void 0)}}function Vn(r=""){return document.createTextNode(r)}function zn(r){return sv.call(r)}function Mn(r){return uv.call(r)}function P(r,i){if(!qe)return zn(r);var u=zn(Xe);if(u===null)u=Xe.appendChild(Vn());else if(i&&u.nodeType!==Lu){var c=Vn();return u?.before(c),At(c),c}return At(u),u}function et(r,i=!1){if(!qe){var u=zn(r);return u instanceof Comment&&u.data===""?Mn(u):u}if(i&&Xe?.nodeType!==Lu){var c=Vn();return Xe?.before(c),At(c),c}return Xe}function ye(r,i=1,u=!1){let c=qe?Xe:r;for(var f;i--;)f=c,c=Mn(c);if(!qe)return c;if(u&&c?.nodeType!==Lu){var m=Vn();return c===null?f?.after(m):c.before(m),At(m),m}return At(c),c}function Fu(r){r.textContent=""}function uw(){return!1}function cw(r,i){if(i){const u=document.body;r.autofocus=!0,Jn(()=>{document.activeElement===u&&r.focus()})}}function lw(r){qe&&zn(r)!==null&&Fu(r)}let cv=!1;function lv(){cv||(cv=!0,document.addEventListener("reset",r=>{Promise.resolve().then(()=>{if(!r.defaultPrevented)for(const i of r.target.elements)i.__on_r?.()})},{capture:!0}))}function ua(r){var i=nt,u=Je;nn(null),hn(null);try{return r()}finally{nn(i),hn(u)}}function dv(r,i,u,c=u){r.addEventListener(i,()=>ua(u));const f=r.__on_r;f?r.__on_r=()=>{f(),c(!0)}:r.__on_r=()=>c(!0),lv()}function fv(r){Je===null&&nt===null&&Lk(),nt!==null&&(nt.f&vn)!==0&&Je===null&&Mk(),Lr&&Dk()}function dw(r,i){var u=i.last;u===null?i.last=i.first=r:(u.next=r,r.prev=u,i.last=r)}function Nn(r,i,u,c=!0){var f=Je;f!==null&&(f.f&xn)!==0&&(r|=xn);var m={ctx:yt,deps:null,nodes_start:null,nodes_end:null,f:r|un,first:null,fn:i,last:null,next:null,parent:f,b:f&&f.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{ai(m),m.f|=Cu}catch(g){throw Mt(m),g}else i!==null&&Ur(m);if(c){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&jr)===0&&(p=p.first),p!==null&&(p.parent=f,f!==null&&dw(p,f),nt!==null&&(nt.f&zt)!==0&&(r&ir)===0)){var v=nt;(v.effects??=[]).push(p)}}return m}function fw(){return nt!==null&&!jn}function ca(r){const i=Nn(Hr,null,!1);return Rt(i,Lt),i.teardown=r,i}function Wu(r){fv();var i=Je.f,u=!nt&&(i&Qn)!==0&&(i&Cu)===0;if(u){var c=yt;(c.e??=[]).push(r)}else return mv(r)}function mv(r){return Nn(Ir|Ag,r,!1)}function mw(r){return fv(),Nn(Hr|Ag,r,!0)}function pw(r){In.ensure();const i=Nn(ir|jr,r,!0);return()=>{Mt(i)}}function gw(r){In.ensure();const i=Nn(ir|jr,r,!0);return(u={})=>new Promise(c=>{u.outro?Mr(i,()=>{Mt(i),c(void 0)}):(Mt(i),c(void 0))})}function Qu(r){return Nn(Ir,r,!1)}function fe(r,i){var u=yt,c={effect:null,ran:!1,deps:r};u.l.$.push(c),c.effect=Cr(()=>{r(),!c.ran&&(c.ran=!0,U(i))})}function tn(){var r=yt;Cr(()=>{for(var i of r.l.$){i.deps();var u=i.effect;(u.f&Lt)!==0&&Rt(u,Gn),Bi(u)&&ai(u),i.ran=!1}})}function vw(r){return Nn(na|jr,r,!0)}function Cr(r,i=0){return Nn(Hr|i,r,!0)}function we(r,i=[],u=[]){Kg(i,u,c=>{Nn(Hr,()=>r(...c.map(l)),!0)})}function Dr(r,i=0){var u=Nn(zr|i,r,!0);return u}function qt(r,i=!0){return Nn(Qn|jr,r,!0,i)}function pv(r){var i=r.teardown;if(i!==null){const u=Lr,c=nt;$v(!0),nn(null);try{i.call(null)}finally{$v(u),nn(c)}}}function gv(r,i=!1){var u=r.first;for(r.first=r.last=null;u!==null;){const f=u.ac;f!==null&&ua(()=>{f.abort(Wi)});var c=u.next;(u.f&ir)!==0?u.parent=null:Mt(u,i),u=c}}function hw(r){for(var i=r.first;i!==null;){var u=i.next;(i.f&Qn)===0&&Mt(i),i=u}}function Mt(r,i=!0){var u=!1;(i||(r.f&Ek)!==0)&&r.nodes_start!==null&&r.nodes_end!==null&&(bw(r.nodes_start,r.nodes_end),u=!0),gv(r,i&&!u),da(r,0),Rt(r,Nr);var c=r.transitions;if(c!==null)for(const m of c)m.stop();pv(r);var f=r.parent;f!==null&&f.first!==null&&vv(r),r.next=r.prev=r.teardown=r.ctx=r.deps=r.fn=r.nodes_start=r.nodes_end=r.ac=null}function bw(r,i){for(;r!==null;){var u=r===i?null:Mn(r);r.remove(),r=u}}function vv(r){var i=r.parent,u=r.prev,c=r.next;u!==null&&(u.next=c),c!==null&&(c.prev=u),i!==null&&(i.first===r&&(i.first=c),i.last===r&&(i.last=u))}function Mr(r,i){var u=[];Gu(r,u,!0),hv(u,()=>{Mt(r),i&&i()})}function hv(r,i){var u=r.length;if(u>0){var c=()=>--u||i();for(var f of r)f.out(c)}else i()}function Gu(r,i,u){if((r.f&xn)===0){if(r.f^=xn,r.transitions!==null)for(const p of r.transitions)(p.is_global||u)&&i.push(p);for(var c=r.first;c!==null;){var f=c.next,m=(c.f&Xr)!==0||(c.f&Qn)!==0;Gu(c,i,m?u:!1),c=f}}}function la(r){bv(r,!0)}function bv(r,i){if((r.f&xn)!==0){r.f^=xn,(r.f&Lt)===0&&(Rt(r,un),Ur(r));for(var u=r.first;u!==null;){var c=u.next,f=(u.f&Xr)!==0||(u.f&Qn)!==0;bv(u,f?i:!1),u=c}if(r.transitions!==null)for(const m of r.transitions)(m.is_global||i)&&m.in()}}let oi=!1;function yv(r){oi=r}let Lr=!1;function $v(r){Lr=r}let nt=null,jn=!1;function nn(r){nt=r}let Je=null;function hn(r){Je=r}let Yn=null;function _v(r){nt!==null&&(Yn===null?Yn=[r]:Yn.push(r))}let Jt=null,cn=0,bn=null;function yw(r){bn=r}let kv=1,Yi=0,Ar=Yi;function wv(r){Ar=r}let ur=!1;function Sv(){return++kv}function Bi(r){var i=r.f;if((i&un)!==0)return!0;if((i&Gn)!==0){var u=r.deps,c=(i&vn)!==0;if(u!==null){var f,m,p=(i&ta)!==0,v=c&&Je!==null&&!ur,g=u.length;if((p||v)&&(Je===null||(Je.f&Nr)===0)){var b=r,h=b.parent;for(f=0;f<g;f++)m=u[f],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=ta),v&&h!==null&&(h.f&vn)===0&&(b.f^=vn)}for(f=0;f<g;f++)if(m=u[f],Bi(m)&&ev(m),m.wv>r.wv)return!0}(!c||Je!==null&&!ur)&&Rt(r,Lt)}return!1}function xv(r,i,u=!0){var c=r.reactions;if(c!==null&&!Yn?.includes(r))for(var f=0;f<c.length;f++){var m=c[f];(m.f&zt)!==0?xv(m,i,!1):i===m&&(u?Rt(m,un):(m.f&Lt)!==0&&Rt(m,Gn),Ur(m))}}function Iv(r){var i=Jt,u=cn,c=bn,f=nt,m=ur,p=Yn,v=yt,g=jn,b=Ar,h=r.f;Jt=null,cn=0,bn=null,ur=(h&vn)!==0&&(jn||!oi||nt===null),nt=(h&(Qn|ir))===0?r:null,Yn=null,ti(r.ctx),jn=!1,Ar=++Yi,r.ac!==null&&(ua(()=>{r.ac.abort(Wi)}),r.ac=null);try{r.f|=Du;var I=r.fn,k=I(),N=r.deps;if(Jt!==null){var j;if(da(r,cn),N!==null&&cn>0)for(N.length=cn+Jt.length,j=0;j<Jt.length;j++)N[cn+j]=Jt[j];else r.deps=N=Jt;if(!ur||(h&zt)!==0&&r.reactions!==null)for(j=cn;j<N.length;j++)(N[j].reactions??=[]).push(r)}else N!==null&&cn<N.length&&(da(r,cn),N.length=cn);if(Qi()&&bn!==null&&!jn&&N!==null&&(r.f&(zt|Gn|un))===0)for(j=0;j<bn.length;j++)xv(bn[j],r);return f!==null&&f!==r&&(Yi++,bn!==null&&(c===null?c=bn:c.push(...bn))),(r.f&Tr)!==0&&(r.f^=Tr),k}catch(q){return Gg(q)}finally{r.f^=Du,Jt=i,cn=u,bn=c,nt=f,ur=m,Yn=p,ti(v),jn=g,Ar=b}}function $w(r,i){let u=i.reactions;if(u!==null){var c=Pu.call(u,r);if(c!==-1){var f=u.length-1;f===0?u=i.reactions=null:(u[c]=u[f],u.pop())}}u===null&&(i.f&zt)!==0&&(Jt===null||!Jt.includes(i))&&(Rt(i,Gn),(i.f&(vn|ta))===0&&(i.f^=ta),Xg(i),da(i,0))}function da(r,i){var u=r.deps;if(u!==null)for(var c=i;c<u.length;c++)$w(r,u[c])}function ai(r){var i=r.f;if((i&Nr)===0){Rt(r,Lt);var u=Je,c=oi;Je=r,oi=!0;try{(i&zr)!==0?hw(r):gv(r),pv(r);var f=Iv(r);r.teardown=typeof f=="function"?f:null,r.wv=kv;var m;Ri&&a&&(r.f&un)!==0&&r.deps}finally{oi=c,Je=u}}}async function _w(){await Promise.resolve(),ut()}function l(r){var i=r.f,u=(i&zt)!==0;if(nt!==null&&!jn){var c=Je!==null&&(Je.f&Nr)!==0;if(!c&&!Yn?.includes(r)){var f=nt.deps;if((nt.f&Du)!==0)r.rv<Yi&&(r.rv=Yi,Jt===null&&f!==null&&f[cn]===r?cn++:Jt===null?Jt=[r]:(!ur||!Jt.includes(r))&&Jt.push(r));else{(nt.deps??=[]).push(r);var m=r.reactions;m===null?r.reactions=[nt]:m.includes(nt)||m.push(nt)}}}else if(u&&r.deps===null&&r.effects===null){var p=r,v=p.parent;v!==null&&(v.f&vn)===0&&(p.f^=vn)}if(Lr){if(or.has(r))return or.get(r);if(u){p=r;var g=p.v;return((p.f&Lt)===0&&p.reactions!==null||zv(p))&&(g=qu(p)),or.set(p,g),g}}else u&&(p=r,Bi(p)&&ev(p));if((r.f&Tr)!==0)throw r.v;return r.v}function zv(r){if(r.v===Tt)return!0;if(r.deps===null)return!1;for(const i of r.deps)if(or.has(i)||(i.f&zt)!==0&&zv(i))return!0;return!1}function U(r){var i=jn;try{return jn=!0,r()}finally{jn=i}}const kw=-7169;function Rt(r,i){r.f=r.f&kw|i}function S(r){if(!(typeof r!="object"||!r||r instanceof EventTarget)){if(Cn in r)Ju(r);else if(!Array.isArray(r))for(let i in r){const u=r[i];typeof u=="object"&&u&&Cn in u&&Ju(u)}}}function Ju(r,i=new Set){if(typeof r=="object"&&r!==null&&!(r instanceof EventTarget)&&!i.has(r)){i.add(r),r instanceof Date&&r.getTime();for(let c in r)try{Ju(r[c],i)}catch{}const u=Qe(r);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const c=Fi(u);for(let f in c){const m=c[f].get;if(m)try{m.call(r)}catch{}}}}}const Nv=new Set,Vu=new Set;function jv(r,i,u,c={}){function f(m){if(c.capture||Ki.call(i,m),!m.cancelBubble)return ua(()=>u?.call(this,m))}return r.startsWith("pointer")||r.startsWith("touch")||r==="wheel"?Jn(()=>{i.addEventListener(r,f,c)}):i.addEventListener(r,f,c),f}function Yu(r,i,u,c,f){var m={capture:c,passive:f},p=jv(r,i,u,m);(i===document.body||i===window||i===document||i instanceof HTMLMediaElement)&&ca(()=>{i.removeEventListener(r,p,m)})}function Bn(r){for(var i=0;i<r.length;i++)Nv.add(r[i]);for(var u of Vu)u(r)}let Tv=null;function Ki(r){var i=this,u=i.ownerDocument,c=r.type,f=r.composedPath?.()||[],m=f[0]||r.target;Tv=r;var p=0,v=Tv===r&&r.__root;if(v){var g=f.indexOf(v);if(g!==-1&&(i===document||i===window)){r.__root=i;return}var b=f.indexOf(i);if(b===-1)return;g<=b&&(p=g)}if(m=f[p]||r.target,m!==i){Un(r,"currentTarget",{configurable:!0,get(){return m||u}});var h=nt,I=Je;nn(null),hn(null);try{for(var k,N=[];m!==null;){var j=m.assignedSlot||m.parentNode||m.host||null;try{var q=m["__"+c];if(q!=null&&(!m.disabled||r.target===m))if(kr(q)){var[O,...K]=q;O.apply(m,[r,...K])}else q.call(m,r)}catch(ne){k?N.push(ne):k=ne}if(r.cancelBubble||j===i||j===null)break;m=j}if(k){for(let ne of N)queueMicrotask(()=>{throw ne});throw k}}finally{r.__root=i,delete r.currentTarget,nn(h),hn(I)}}}function Ov(r){var i=document.createElement("template");return i.innerHTML=r.replaceAll("<!>","<!---->"),i.content}function Kn(r,i){var u=Je;u.nodes_start===null&&(u.nodes_start=r,u.nodes_end=i)}function H(r,i){var u=(i&st)!==0,c=(i&rt)!==0,f,m=!r.startsWith("<!>");return()=>{if(qe)return Kn(Xe,null),Xe;f===void 0&&(f=Ov(m?r:"<!>"+r),u||(f=zn(f)));var p=c||av?document.importNode(f,!0):f.cloneNode(!0);if(u){var v=zn(p),g=p.lastChild;Kn(v,g)}else Kn(p,p);return p}}function ww(r,i,u="svg"){var c=!r.startsWith("<!>"),f=`<${u}>${c?r:"<!>"+r}</${u}>`,m;return()=>{if(qe)return Kn(Xe,null),Xe;if(!m){var p=Ov(f),v=zn(p);m=zn(v)}var g=m.cloneNode(!0);return Kn(g,g),g}}function Sw(r,i){return ww(r,i,"svg")}function dt(){if(qe)return Kn(Xe,null),Xe;var r=document.createDocumentFragment(),i=document.createComment(""),u=Vn();return r.append(i,u),Kn(i,u),r}function Z(r,i){if(qe){Je.nodes_end=Xe,Or();return}r!==null&&r.before(i)}function xw(r){return r.endsWith("capture")&&r!=="gotpointercapture"&&r!=="lostpointercapture"}const Iw=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function zw(r){return Iw.includes(r)}const Nw={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function jw(r){return r=r.toLowerCase(),Nw[r]??r}const Tw=["touchstart","touchmove"];function Ow(r){return Tw.includes(r)}const Ew=["textarea","script","style","title"];function Pw(r){return Ew.includes(r)}function Ne(r,i){var u=i==null?"":typeof i=="object"?i+"":i;u!==(r.__t??=r.nodeValue)&&(r.__t=u,r.nodeValue=u+"")}function Ev(r,i){return Pv(r,i)}function Uw(r,i){Ru(),i.intro=i.intro??!1;const u=i.target,c=qe,f=Xe;try{for(var m=zn(u);m&&(m.nodeType!==ei||m.data!==ot);)m=Mn(m);if(!m)throw Pn;Gt(!0),At(m);const p=Pv(r,{...i,anchor:m});return Gt(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
-
`).some(
|
|
46
|
-
\r\f \v\uFEFF`];function Rw(r,i,u){var c=r==null?"":""+r;if(i&&(c=c?c+" "+i:i),u){for(var f in u)if(u[f])c=c?c+" "+f:f;else if(c.length)for(var m=f.length,p=0;(p=c.indexOf(f,p))>=0;){var v=p+m;(p===0||Lv.includes(c[p-1]))&&(v===c.length||Lv.includes(c[v]))?c=(p===0?"":c.substring(0,p))+c.substring(v+1):p=v}}return c===""?null:c}function Av(r,i=!1){var u=i?" !important;":";",c="";for(var f in r){var m=r[f];m!=null&&m!==""&&(c+=" "+f+": "+m+u)}return c}function Xu(r){return r[0]!=="-"||r[1]!=="-"?r.toLowerCase():r}function Fw(r,i){if(i){var u="",c,f;if(Array.isArray(i)?(c=i[0],f=i[1]):c=i,r){r=String(r).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,v=!1,g=[];c&&g.push(...Object.keys(c).map(Xu)),f&&g.push(...Object.keys(f).map(Xu));var b=0,h=-1;const q=r.length;for(var I=0;I<q;I++){var k=r[I];if(v?k==="/"&&r[I-1]==="*"&&(v=!1):m?m===k&&(m=!1):k==="/"&&r[I+1]==="*"?v=!0:k==='"'||k==="'"?m=k:k==="("?p++:k===")"&&p--,!v&&m===!1&&p===0){if(k===":"&&h===-1)h=I;else if(k===";"||I===q-1){if(h!==-1){var N=Xu(r.substring(b,h).trim());if(!g.includes(N)){k!==";"&&I++;var j=r.substring(b,I).trim();u+=" "+j+";"}}b=I+1,h=-1}}}}return c&&(u+=Av(c)),f&&(u+=Av(f,!0)),u=u.trim(),u===""?null:u}return r==null?null:String(r)}function he(r,i,u,c,f,m){var p=r.__className;if(qe||p!==u||p===void 0){var v=Rw(u,c,m);(!qe||v!==r.getAttribute("class"))&&(v==null?r.removeAttribute("class"):i?r.className=v:r.setAttribute("class",v)),r.__className=u}else if(m&&f!==m)for(var g in m){var b=!!m[g];(f==null||b!==!!f[g])&&r.classList.toggle(g,b)}return m}function ec(r,i={},u,c){for(var f in u){var m=u[f];i[f]!==m&&(u[f]==null?r.style.removeProperty(f):r.style.setProperty(f,m,c))}}function ui(r,i,u,c){var f=r.__style;if(qe||f!==i){var m=Fw(i,c);(!qe||m!==r.getAttribute("style"))&&(m==null?r.removeAttribute("style"):r.style.cssText=m),r.__style=i}else c&&(Array.isArray(c)?(ec(r,u?.[0],c[0]),ec(r,u?.[1],c[1],"important")):ec(r,u,c));return c}function tc(r,i,u=!1){if(r.multiple){if(i==null)return;if(!kr(i))return Gk();for(var c of r.options)c.selected=i.includes(Zv(c));return}for(c of r.options){var f=Zv(c);if(sw(f,i)){c.selected=!0;return}}(!u||i!==void 0)&&(r.selectedIndex=-1)}function Ww(r){var i=new MutationObserver(()=>{tc(r,r.__value)});i.observe(r,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ca(()=>{i.disconnect()})}function Zv(r){return"__value"in r?r.__value:r.value}const Hi=Symbol("class"),Xi=Symbol("style"),qv=Symbol("is custom element"),Rv=Symbol("is html");function nc(r){if(qe){var i=!1,u=()=>{if(!i){if(i=!0,r.hasAttribute("value")){var c=r.value;cr(r,"value",null),r.value=c}if(r.hasAttribute("checked")){var f=r.checked;cr(r,"checked",null),r.checked=f}}};r.__on_r=u,Jn(u),lv()}}function Fv(r,i){var u=ma(r);u.value===(u.value=i??void 0)||r.value===i&&(i!==0||r.nodeName!=="PROGRESS")||(r.value=i??"")}function Wv(r,i){var u=ma(r);u.checked!==(u.checked=i??void 0)&&(r.checked=i)}function Qw(r,i){i?r.hasAttribute("selected")||r.setAttribute("selected",""):r.removeAttribute("selected")}function cr(r,i,u,c){var f=ma(r);qe&&(f[i]=r.getAttribute(i),i==="src"||i==="srcset"||i==="href"&&r.nodeName==="LINK")||f[i]!==(f[i]=u)&&(i==="loading"&&(r[Pk]=u),u==null?r.removeAttribute(i):typeof u!="string"&&Gv(r).includes(i)?r[i]=u:r.setAttribute(i,u))}function Gw(r,i,u,c,f=!1,m=!1){if(qe&&f&&r.tagName==="INPUT"){var p=r,v=p.type==="checkbox"?"defaultChecked":"defaultValue";v in u||nc(p)}var g=ma(r),b=g[qv],h=!g[Rv];let I=qe&&b;I&&Gt(!1);var k=i||{},N=r.tagName==="OPTION";for(var j in i)j in u||(u[j]=null);u.class?u.class=Hu(u.class):u[Hi]&&(u.class=null),u[Xi]&&(u.style??=null);var q=Gv(r);for(const V in u){let ie=u[V];if(N&&V==="value"&&ie==null){r.value=r.__value="",k[V]=ie;continue}if(V==="class"){var O=r.namespaceURI==="http://www.w3.org/1999/xhtml";he(r,O,ie,c,i?.[Hi],u[Hi]),k[V]=ie,k[Hi]=u[Hi];continue}if(V==="style"){ui(r,ie,i?.[Xi],u[Xi]),k[V]=ie,k[Xi]=u[Xi];continue}var K=k[V];if(!(ie===K&&!(ie===void 0&&r.hasAttribute(V)))){k[V]=ie;var ne=V[0]+V[1];if(ne!=="$$")if(ne==="on"){const L={},Ue="$$"+V;let Pe=V.slice(2);var D=zw(Pe);if(xw(Pe)&&(Pe=Pe.slice(0,-7),L.capture=!0),!D&&K){if(ie!=null)continue;r.removeEventListener(Pe,k[Ue],L),k[Ue]=null}if(ie!=null)if(D)r[`__${Pe}`]=ie,Bn([Pe]);else{let Be=function(_e){k[V].call(this,_e)};k[Ue]=jv(Pe,r,Be,L)}else D&&(r[`__${Pe}`]=void 0)}else if(V==="style")cr(r,V,ie);else if(V==="autofocus")cw(r,!!ie);else if(!b&&(V==="__value"||V==="value"&&ie!=null))r.value=r.__value=ie;else if(V==="selected"&&N)Qw(r,ie);else{var G=V;h||(G=jw(G));var ee=G==="defaultValue"||G==="defaultChecked";if(ie==null&&!b&&!ee)if(g[V]=null,G==="value"||G==="checked"){let L=r;const Ue=i===void 0;if(G==="value"){let Pe=L.defaultValue;L.removeAttribute(G),L.defaultValue=Pe,L.value=L.__value=Ue?Pe:null}else{let Pe=L.defaultChecked;L.removeAttribute(G),L.defaultChecked=Pe,L.checked=Ue?Pe:!1}}else r.removeAttribute(V);else ee||q.includes(G)&&(b||typeof ie!="string")?(r[G]=ie,G in g&&(g[G]=Tt)):typeof ie!="function"&&cr(r,G,ie)}}}return I&&Gt(!0),k}function qr(r,i,u=[],c=[],f,m=!1,p=!1){Kg(u,c,v=>{var g=void 0,b={},h=r.nodeName==="SELECT",I=!1;if(Dr(()=>{var N=i(...v.map(l)),j=Gw(r,g,N,f,m,p);I&&h&&"value"in N&&tc(r,N.value);for(let O of Object.getOwnPropertySymbols(b))N[O]||Mt(b[O]);for(let O of Object.getOwnPropertySymbols(N)){var q=N[O];O.description===Eu&&(!g||q!==g[O])&&(b[O]&&Mt(b[O]),b[O]=qt(()=>qw(r,()=>q))),j[O]=q}g=j}),h){var k=r;Qu(()=>{tc(k,g.value,!0),Ww(k)})}I=!0})}function ma(r){return r.__attributes??={[qv]:r.nodeName.includes("-"),[Rv]:r.namespaceURI===Xo}}var Qv=new Map;function Gv(r){var i=r.getAttribute("is")||r.nodeName,u=Qv.get(i);if(u)return u;Qv.set(i,u=[]);for(var c,f=r,m=Element.prototype;m!==f;){c=Fi(f);for(var p in c)c[p].set&&u.push(p);f=Qe(f)}return u}function rc(r,i,u=i){var c=new WeakSet;dv(r,"input",async f=>{var m=f?r.defaultValue:r.value;if(m=ic(r)?oc(m):m,u(m),xt!==null&&c.add(xt),await _w(),m!==(m=i())){var p=r.selectionStart,v=r.selectionEnd,g=r.value.length;if(r.value=m??"",v!==null){var b=r.value.length;p===v&&v===g&&b>g?(r.selectionStart=b,r.selectionEnd=b):(r.selectionStart=p,r.selectionEnd=Math.min(v,b))}}}),(qe&&r.defaultValue!==r.value||U(i)==null&&r.value)&&(u(ic(r)?oc(r.value):r.value),xt!==null&&c.add(xt)),Cr(()=>{var f=i();if(r===document.activeElement){var m=aa??xt;if(c.has(m))return}ic(r)&&f===oc(r.value)||r.type==="date"&&!f&&!r.value||f!==r.value&&(r.value=f??"")})}function ic(r){var i=r.type;return i==="number"||i==="range"}function oc(r){return r===""?null:+r}function Jw(r,i,u=i){dv(r,"change",()=>{u(r.files)}),qe&&r.files&&u(r.files),Cr(()=>{r.files=i()})}function Jv(r,i){return r===i||r?.[Cn]===i}function ci(r={},i,u,c){return Qu(()=>{var f,m;return Cr(()=>{f=m,m=[],U(()=>{r!==u(...m)&&(i(r,...m),f&&Jv(u(...f),r)&&i(null,...f))})}),()=>{Jn(()=>{m&&Jv(u(...m),r)&&i(null,...m)})}}),r}function Vt(r=!1){const i=yt,u=i.l.u;if(!u)return;let c=()=>S(i.s);if(r){let f=0,m={};const p=Ji(()=>{let v=!1;const g=i.s;for(const b in g)g[b]!==m[b]&&(m[b]=g[b],v=!0);return v&&f++,f});c=()=>l(p)}u.b.length&&mw(()=>{Vv(i,c),xr(u.b)}),Wu(()=>{const f=U(()=>u.m.map(gn));return()=>{for(const m of f)typeof m=="function"&&m()}}),u.a.length&&Wu(()=>{Vv(i,c),xr(u.a)})}function Vv(r,i){if(r.l.s)for(const u of r.l.s)l(u);i()}function Yv(r,i,u){if(r==null)return i(void 0),Ut;const c=U(()=>r.subscribe(i,u));return c.unsubscribe?()=>c.unsubscribe():c}const li=[];function Vw(r,i=Ut){let u=null;const c=new Set;function f(v){if(Fg(r,v)&&(r=v,u)){const g=!li.length;for(const b of c)b[1](),li.push(b,r);if(g){for(let b=0;b<li.length;b+=2)li[b][0](li[b+1]);li.length=0}}}function m(v){f(v(r))}function p(v,g=Ut){const b=[v,g];return c.add(b),c.size===1&&(u=i(f,m)||Ut),v(r),()=>{c.delete(b),c.size===0&&u&&(u(),u=null)}}return{set:f,update:m,subscribe:p}}function eo(r){let i;return Yv(r,u=>i=u)(),i}let pa=!1,ac=Symbol();function Yw(r,i,u){const c=u[i]??={store:null,source:X(void 0),unsubscribe:Ut};if(c.store!==r&&!(ac in u))if(c.unsubscribe(),c.store=r??null,r==null)c.source.v=void 0,c.unsubscribe=Ut;else{var f=!0;c.unsubscribe=Yv(r,m=>{f?c.source.v=m:_(c.source,m)}),f=!1}return r&&ac in u?eo(r):l(c.source)}function Bw(){const r={};function i(){ca(()=>{for(var u in r)r[u].unsubscribe();Un(r,ac,{enumerable:!1,value:!0})})}return[r,i]}function Kw(r){var i=pa;try{return pa=!1,[r(),pa]}finally{pa=i}}const Hw={get(r,i){if(!r.exclude.includes(i))return r.props[i]},set(r,i){return!1},getOwnPropertyDescriptor(r,i){if(!r.exclude.includes(i)&&i in r.props)return{enumerable:!0,configurable:!0,value:r.props[i]}},has(r,i){return r.exclude.includes(i)?!1:i in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(i=>!r.exclude.includes(i))}};function sc(r,i,u){return new Proxy({props:r,exclude:i},Hw)}const Xw={get(r,i){if(!r.exclude.includes(i))return l(r.version),i in r.special?r.special[i]():r.props[i]},set(r,i,u){if(!(i in r.special)){var c=Je;try{hn(r.parent_effect),r.special[i]=x({get[i](){return r.props[i]}},i,Y)}finally{hn(c)}}return r.special[i](u),nv(r.version),!0},getOwnPropertyDescriptor(r,i){if(!r.exclude.includes(i)&&i in r.props)return{enumerable:!0,configurable:!0,value:r.props[i]}},deleteProperty(r,i){return r.exclude.includes(i)||(r.exclude.push(i),nv(r.version)),!0},has(r,i){return r.exclude.includes(i)?!1:i in r.props},ownKeys(r){return Reflect.ownKeys(r.props).filter(i=>!r.exclude.includes(i))}};function An(r,i){return new Proxy({props:r,exclude:i,special:{},version:ar(0),parent_effect:Je},Xw)}const e0={get(r,i){let u=r.props.length;for(;u--;){let c=r.props[u];if(St(c)&&(c=c()),typeof c=="object"&&c!==null&&i in c)return c[i]}},set(r,i,u){let c=r.props.length;for(;c--;){let f=r.props[c];St(f)&&(f=f());const m=pn(f,i);if(m&&m.set)return m.set(u),!0}return!1},getOwnPropertyDescriptor(r,i){let u=r.props.length;for(;u--;){let c=r.props[u];if(St(c)&&(c=c()),typeof c=="object"&&c!==null&&i in c){const f=pn(c,i);return f&&!f.configurable&&(f.configurable=!0),f}}},has(r,i){if(i===Cn||i===Mu)return!1;for(let u of r.props)if(St(u)&&(u=u()),u!=null&&i in u)return!0;return!1},ownKeys(r){const i=[];for(let u of r.props)if(St(u)&&(u=u()),!!u){for(const c in u)i.includes(c)||i.push(c);for(const c of Object.getOwnPropertySymbols(u))i.includes(c)||i.push(c)}return i}};function Ft(...r){return new Proxy({props:r},e0)}function x(r,i,u,c){var f=!t||(u&be)!==0,m=(u&ze)!==0,p=(u&Ce)!==0,v=c,g=!0,b=()=>(g&&(g=!1,v=p?U(c):c),v),h;if(m){var I=Cn in r||Mu in r;h=pn(r,i)?.set??(I&&i in r?D=>r[i]=D:void 0)}var k,N=!1;m?[k,N]=Kw(()=>r[i]):k=r[i],k===void 0&&c!==void 0&&(k=b(),h&&(f&&qk(),h(k)));var j;if(f?j=()=>{var D=r[i];return D===void 0?b():(g=!0,D)}:j=()=>{var D=r[i];return D!==void 0&&(v=void 0),D===void 0?v:D},f&&(u&Y)===0)return j;if(h){var q=r.$$legacy;return(function(D,G){return arguments.length>0?((!f||!G||q||N)&&h(G?j():D),D):j()})}var O=!1,K=((u&Ze)!==0?Ji:ft)(()=>(O=!1,j()));m&&l(K);var ne=Je;return(function(D,G){if(arguments.length>0){const ee=G?l(K):f&&m?ii(D):D;return _(K,ee),O=!0,v!==void 0&&(v=ee),D}return Lr&&O||(ne.f&Nr)!==0?K.v:l(K)})}function t0(r){return new n0(r)}class n0{#t;#e;constructor(i){var u=new Map,c=(m,p)=>{var v=X(p,!1,!1);return u.set(m,v),v};const f=new Proxy({...i.props||{},$$events:{}},{get(m,p){return l(u.get(p)??c(p,Reflect.get(m,p)))},has(m,p){return p===Mu?!0:(l(u.get(p)??c(p,Reflect.get(m,p))),Reflect.has(m,p))},set(m,p,v){return _(u.get(p)??c(p,v),v),Reflect.set(m,p,v)}});this.#e=(i.hydrate?Uw:Ev)(i.component,{target:i.target,anchor:i.anchor,props:f,context:i.context,intro:i.intro??!1,recover:i.recover}),(!i?.props?.$$host||i.sync===!1)&&ut(),this.#t=f.$$events;for(const m of Object.keys(this.#e))m==="$set"||m==="$destroy"||m==="$on"||Un(this,m,{get(){return this.#e[m]},set(p){this.#e[m]=p},enumerable:!0});this.#e.$set=m=>{Object.assign(f,m)},this.#e.$destroy=()=>{Cw(this.#e)}}$set(i){this.#e.$set(i)}$on(i,u){this.#t[i]=this.#t[i]||[];const c=(...f)=>u.call(this,...f);return this.#t[i].push(c),()=>{this.#t[i]=this.#t[i].filter(f=>f!==c)}}$destroy(){this.#e.$destroy()}}let Bv;typeof HTMLElement=="function"&&(Bv=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(r,i,u){super(),this.$$ctor=r,this.$$s=i,u&&this.attachShadow({mode:"open"})}addEventListener(r,i,u){if(this.$$l[r]=this.$$l[r]||[],this.$$l[r].push(i),this.$$c){const c=this.$$c.$on(r,i);this.$$l_u.set(i,c)}super.addEventListener(r,i,u)}removeEventListener(r,i,u){if(super.removeEventListener(r,i,u),this.$$c){const c=this.$$l_u.get(i);c&&(c(),this.$$l_u.delete(i))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let r=function(c){return f=>{const m=document.createElement("slot");c!=="default"&&(m.name=c),Z(f,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const i={},u=r0(this);for(const c of this.$$s)c in u&&(c==="default"&&!this.$$d.children?(this.$$d.children=r(c),i.default=!0):i[c]=r(c));for(const c of this.attributes){const f=this.$$g_p(c.name);f in this.$$d||(this.$$d[f]=ga(f,c.value,this.$$p_d,"toProp"))}for(const c in this.$$p_d)!(c in this.$$d)&&this[c]!==void 0&&(this.$$d[c]=this[c],delete this[c]);this.$$c=t0({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:i,$$host:this}}),this.$$me=pw(()=>{Cr(()=>{this.$$r=!0;for(const c of Sr(this.$$c)){if(!this.$$p_d[c]?.reflect)continue;this.$$d[c]=this.$$c[c];const f=ga(c,this.$$d[c],this.$$p_d,"toAttribute");f==null?this.removeAttribute(this.$$p_d[c].attribute||c):this.setAttribute(this.$$p_d[c].attribute||c,f)}this.$$r=!1})});for(const c in this.$$l)for(const f of this.$$l[c]){const m=this.$$c.$on(c,f);this.$$l_u.set(f,m)}this.$$l={}}}attributeChangedCallback(r,i,u){this.$$r||(r=this.$$g_p(r),this.$$d[r]=ga(r,u,this.$$p_d,"toProp"),this.$$c?.$set({[r]:this.$$d[r]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(r){return Sr(this.$$p_d).find(i=>this.$$p_d[i].attribute===r||!this.$$p_d[i].attribute&&i.toLowerCase()===r)||r}});function ga(r,i,u,c){const f=u[r]?.type;if(i=f==="Boolean"&&typeof i!="boolean"?i!=null:i,!c||!u[r])return i;if(c==="toAttribute")switch(f){case"Object":case"Array":return i==null?null:JSON.stringify(i);case"Boolean":return i?"":null;case"Number":return i??null;default:return i}else switch(f){case"Object":case"Array":return i&&JSON.parse(i);case"Boolean":return i;case"Number":return i!=null?+i:i;default:return i}}function r0(r){const i={};return r.childNodes.forEach(u=>{i[u.slot||"default"]=!0}),i}function Kv(r,i,u,c,f,m){let p=class extends Bv{constructor(){super(r,u,f),this.$$p_d=i}static get observedAttributes(){return Sr(i).map(v=>(i[v].attribute||v).toLowerCase())}};return Sr(i).forEach(v=>{Un(p.prototype,v,{get(){return this.$$c&&v in this.$$c?this.$$c[v]:this.$$d[v]},set(g){g=ga(v,g,i),this.$$d[v]=g;var b=this.$$c;if(b){var h=pn(b,v)?.get;h?b[v]=g:b.$set({[v]:g})}}})}),c.forEach(v=>{Un(p.prototype,v,{get(){return this.$$c?.[v]}})}),r.element=p,p}const i0={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var o0=Sw("<svg><!><!></svg>");function lr(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=An(u,["type","name","color","size","stroke","iconNode"]);Nt(i,!1);let f=x(i,"type",8),m=x(i,"name",8),p=x(i,"color",8,"currentColor"),v=x(i,"size",8,24),g=x(i,"stroke",8,2),b=x(i,"iconNode",8);Vt();var h=o0();qr(h,()=>({...i0[f()],...c,width:v(),height:v(),class:(S(m()),S(u),U(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...f()==="filled"?{fill:p()}:{"stroke-width":g(),stroke:p()}}));var I=P(h);ln(I,1,b,yn,(N,j)=>{var q=ow(()=>Dt(l(j),2));let O=()=>l(q)[0],K=()=>l(q)[1];var ne=dt(),D=et(ne);Zw(D,O,!0,(G,ee)=>{qr(G,()=>({...K()}))}),Z(N,ne)});var k=ye(I);Hn(k,i,"default",{}),T(h),Z(r,h),jt()}function Hv(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];lr(r,Ft({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function Xv(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M5 12l5 5l10 -10"}]];lr(r,Ft({type:"outline",name:"check"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function eh(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 6l-6 6l6 6"}]];lr(r,Ft({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function va(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M9 6l6 6l-6 6"}]];lr(r,Ft({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function a0(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}],["path",{d:"M10 12h4v4h-4z"}]];lr(r,Ft({type:"outline",name:"home-2"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function th(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M15 8h.01"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"}]];lr(r,Ft({type:"outline",name:"photo"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function nh(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}],["path",{d:"M15 6l3 3"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}]];lr(r,Ft({type:"outline",name:"wand"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}function rh(r,i){const u=An(i,["children","$$slots","$$events","$$legacy"]),c=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];lr(r,Ft({type:"outline",name:"x"},()=>u,{get iconNode(){return c},children:(f,m)=>{var p=dt(),v=et(p);Hn(v,i,"default",{}),Z(f,p)},$$slots:{default:!0}}))}const Tn=Vw({questions:[],questionsData:{}}),Yt=(r,i,u,c)=>{if((i==null||i===""||Array.isArray(i)&&i.length===0)&&!c){cc(r);return}let f;switch(u){case"rating":f={rating:i};break;case"nps":f={nps:i};break;case"long_text":f={longText:i};break;case"short_answer":f={shortAnswer:i};break;case"single_choice":f={singleChoice:i};break;case"multiple_choice_multiple":f={multipleChoiceMultiple:Array.isArray(i)?i:[i]};break;case"nested_selection":f={nestedSelection:Array.isArray(i)?i:[i]};break;case"annotation":f={annotation:i};break;default:f=i}Tn.update(m=>{const p=m.questions.findIndex(v=>v.questionId===r);return p!==-1?{...m,questions:m.questions.map((v,g)=>g===p?{...v,answer:f,type:u,error:c}:v)}:{...m,questions:[...m.questions,{questionId:r,answer:f,type:u,error:c}]}})},di=(r,i)=>{u0(r)&&Tn.update(u=>({...u,questions:u.questions.map(c=>c.questionId===r?{...c,error:i}:c)}))},s0=()=>{Tn.update(r=>({...r,questions:r.questions.map(i=>({...i,error:void 0}))}))},uc=()=>eo(Tn).questions.some(r=>r.error!==void 0&&r.error!==null&&r.error!==""),cc=r=>{Tn.update(i=>({...i,questions:i.questions.filter(u=>u.questionId!==r)}))},u0=r=>eo(Tn).questions.find(i=>i.questionId===r),c0=()=>{Tn.update(r=>({...r,questions:[]}))},ih=r=>{Tn.update(i=>({...i,questionsData:r}))},oh=r=>eo(Tn).questionsData[r];var l0=H("<div><span> </span></div>"),d0=H('<span class="required">*</span>'),f0=H("<div> </div>"),m0=(r,i,u)=>i(l(u)),p0=H('<button type="button"> </button>'),g0=H("<span> </span>"),v0=H("<span> </span>"),h0=H("<div> </div>"),b0=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div></div> <div class="scale-container"><div class="scale-buttons"></div> <div class="scale-labels"><!> <!></div></div> <!></div>');function y0(r,i){Nt(i,!1);const u=X(),c=X();let f=x(i,"question",8),m=x(i,"value",24,()=>-1),p=x(i,"onChange",8),v=x(i,"error",8,void 0),g=x(i,"currentMode",8,void 0),b=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0);let h=X(m()??-1);function I(C){l(h)===C?(_(h,-1),p()(-1),cc(f().id)):(_(h,C),p()(C),Yt(f().id,C,s.QuestionTypes.NPS))}fe(()=>S(g()),()=>{_(u,g()==="dark")}),fe(()=>S(m()),()=>{m()!==void 0&&_(h,m())}),fe(()=>S(f()),()=>{_(c,Array.from({length:(f().max??10)-(f().min??0)+1},(C,y)=>y+(f().min??0)))}),tn(),Vt();var k=b0(),N=P(k),j=P(N),q=P(j);{var O=C=>{var y=l0(),w=P(y),J=P(w);T(w),T(y),we(()=>{he(y,1,`question-number ${l(u)?"dark-mode":""}`),Ne(J,`${b()??""}.`)}),Z(C,y)};ue(q,C=>{b()!==void 0&&C(O)})}var K=ye(q,2),ne=P(K),D=P(ne),G=ye(D);{var ee=C=>{var y=d0();Z(C,y)};ue(G,C=>{S(f()),U(()=>f().required)&&C(ee)})}T(ne);var V=ye(ne,2);{var ie=C=>{var y=f0(),w=P(y,!0);T(y),we(()=>{he(y,1,`description ${l(u)?"dark-mode":""}`),Ne(w,(S(f()),U(()=>f().description)))}),Z(C,y)};ue(V,C=>{S(f()),U(()=>f().description)&&C(ie)})}T(K),T(j),T(N);var L=ye(N,2),Ue=P(L);ln(Ue,5,()=>l(c),yn,(C,y)=>{var w=p0();w.__click=[m0,I,y];var J=P(w,!0);T(w),we(()=>{he(w,1,`button-nps nps-scale-button ${l(h)===l(y)?"selected":""} ${l(u)?"dark-mode":""}`),Ne(J,l(y))}),Z(C,w)}),T(Ue);var Pe=ye(Ue,2),Be=P(Pe);{var _e=C=>{var y=g0(),w=P(y,!0);T(y),we(()=>{he(y,1,`rating-label nps-rating-label ${l(u)?"dark-mode":""}`),Ne(w,(S(f()),U(()=>f().minLabel)))}),Z(C,y)};ue(Be,C=>{S(f()),U(()=>f().minLabel)&&C(_e)})}var xe=ye(Be,2);{var re=C=>{var y=v0(),w=P(y,!0);T(y),we(()=>{he(y,1,`rating-label nps-rating-label ${l(u)?"dark-mode":""}`),Ne(w,(S(f()),U(()=>f().maxLabel)))}),Z(C,y)};ue(xe,C=>{S(f()),U(()=>f().maxLabel)&&C(re)})}T(Pe),T(L);var F=ye(L,2);{var W=C=>{var y=h0(),w=P(y,!0);T(y),we(()=>{he(y,1,`error ${l(u)?"dark-mode":""}`),Ne(w,v())}),Z(C,y)};ue(F,C=>{v()&&C(W)})}T(k),we(()=>{he(k,1,`container ${l(u)?"dark-mode":""}`),he(ne,1,`label ${l(u)?"dark-mode":""}`),Ne(D,`${S(f()),U(()=>f().title)??""} `)}),Z(r,k),jt()}Bn(["click"]);var $0=H("<div><span> </span></div>"),_0=H('<span class="required">*</span>'),k0=H("<div> </div>"),w0=(r,i)=>r.key==="Enter"&&i(),S0=(r,i,u)=>i(l(u).index),x0=(r,i,u)=>r.key==="Enter"&&i(l(u).index),I0=H('<div class="breadcrumb-separator-container"><!> <span role="button" tabindex="0"> </span></div>'),z0=(r,i,u,c)=>i(l(u),[...l(c),l(u).value]),N0=H('<button type="button"><span> </span> <!></button>'),j0=H('<div class="empty-message">No options available</div>'),T0=H("<div> </div>"),O0=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div></div> <div><div class="breadcrumb-nav"><span role="button" tabindex="0"><!></span> <!></div> <div class="options-list"><!></div></div> <!></div>');function E0(r,i){Nt(i,!1);const u=X();let c=x(i,"question",8),f=x(i,"value",24,()=>[]),m=x(i,"onChange",8),p=x(i,"error",8,void 0),v=x(i,"currentMode",8,void 0),g=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0);const b=f()?Array.isArray(f())?f():[f()]:[];let h=X(b),I=X(q()),k=X(!1),N=X([]),j=X([]);function q(){return b.length===0?[]:b.slice(0,-1)}function O(ke,ge){console.log("handleChange called",{option:ke,path:ge,hasChildren:ke.children&&ke.children.length>0}),_(k,!0),ke.children&&ke.children.length>0?(console.log("Navigating to children, setting navPath to:",ge),_(I,ge),console.log("navPath is now:",l(I))):(console.log("Leaf node selected, setting selectedValue to:",ge),_(h,ge),m()(ge))}function K(ke){const ge=l(h);return ge.length!==ke.length?!1:ke.every((De,Re)=>ge[Re]===De)}function ne(ke){console.log("getCurrentLevelOptions called with path:",ke);let ge=c().options;for(let De=0;De<ke.length;De++){const Re=ge.find(Ae=>Ae.value===ke[De]);if(Re&&Re.children)ge=Re.children;else return[]}return console.log("Returning options:",ge),ge}function D(ke){console.log("getBreadcrumbs called with path:",ke);const ge=[];let De=c().options;for(let Re=0;Re<ke.length;Re++){const Ae=De.find(Ee=>Ee.value===ke[Re]);Ae&&(ge.push({value:ke[Re],label:Ae.label,index:Re}),Ae.children&&(De=Ae.children))}return console.log("Returning breadcrumbs:",ge),ge}function G(ke){_(k,!0),_(I,l(I).slice(0,ke+1))}function ee(){_(k,!0),_(I,[]),_(h,[]),m()([])}fe(()=>S(v()),()=>{_(u,v()==="dark")}),fe(()=>(S(f()),l(k)),()=>{if(f()!==void 0&&!l(k)){const ke=Array.isArray(f())?f():[f()];_(h,ke),ke.length>0?_(I,ke.slice(0,-1)):_(I,[])}else f()===void 0&&!l(k)&&(_(h,[]),_(I,[]))}),fe(()=>l(I),()=>{_(N,ne(l(I)))}),fe(()=>l(I),()=>{_(j,D(l(I)))}),tn(),Vt();var V=O0(),ie=P(V),L=P(ie),Ue=P(L);{var Pe=ke=>{var ge=$0(),De=P(ge),Re=P(De);T(De),T(ge),we(()=>{he(ge,1,`question-number ${l(u)?"dark-mode":""}`),Ne(Re,`${g()??""}.`)}),Z(ke,ge)};ue(Ue,ke=>{g()!==void 0&&ke(Pe)})}var Be=ye(Ue,2),_e=P(Be),xe=P(_e),re=ye(xe);{var F=ke=>{var ge=_0();Z(ke,ge)};ue(re,ke=>{S(c()),U(()=>c().required)&&ke(F)})}T(_e);var W=ye(_e,2);{var C=ke=>{var ge=k0(),De=P(ge,!0);T(ge),we(()=>{he(ge,1,`description ${l(u)?"dark-mode":""}`),Ne(De,(S(c()),U(()=>c().description)))}),Z(ke,ge)};ue(W,ke=>{S(c()),U(()=>c().description)&&ke(C)})}T(Be),T(L),T(ie);var y=ye(ie,2),w=P(y),J=P(w);J.__click=ee,J.__keydown=[w0,ee];var ce=P(J);a0(ce,{size:16}),T(J);var oe=ye(J,2);ln(oe,1,()=>l(j),yn,(ke,ge)=>{var De=I0(),Re=P(De);va(Re,{size:16});var Ae=ye(Re,2);Ae.__click=[S0,G,ge],Ae.__keydown=[x0,G,ge];var Ee=P(Ae,!0);T(Ae),T(De),we(()=>{he(Ae,1,`breadcrumb-item nested-dropdown-breadcrumb-item ${l(u)?"dark-mode":""}`),Ne(Ee,(l(ge),U(()=>l(ge).label)))}),Z(ke,De)}),T(w);var le=ye(w,2),de=P(le);{var Se=ke=>{var ge=dt(),De=et(ge);ln(De,1,()=>l(N),yn,(Re,Ae)=>{var Ee=N0();Ee.__click=[z0,O,Ae,I];var _t=P(Ee),Bt=P(_t,!0);T(_t);var Kt=ye(_t,2);{var It=$t=>{va($t,{size:16})},Ht=$t=>{var bt=dt(),Xt=et(bt);{var On=dn=>{Xv(dn,{size:16,color:"#22c55e"})};ue(Xt,dn=>{l(I),l(Ae),U(()=>K([...l(I),l(Ae).value]))&&dn(On)},!0)}Z($t,bt)};ue(Kt,$t=>{l(Ae),U(()=>l(Ae).children&&l(Ae).children.length>0)?$t(It):$t(Ht,!1)})}T(Ee),we($t=>{he(Ee,1,$t),Ne(Bt,(l(Ae),U(()=>l(Ae).label)))},[()=>(l(I),l(Ae),l(u),U(()=>`nested-option nested-dropdown-option ${K([...l(I),l(Ae).value])?"selected":""} ${l(u)?"dark-mode":""}`))]),Z(Re,Ee)}),Z(ke,ge)},Le=ke=>{var ge=j0();Z(ke,ge)};ue(de,ke=>{l(N),U(()=>l(N).length>0)?ke(Se):ke(Le,!1)})}T(le),T(y);var je=ye(y,2);{var Ge=ke=>{var ge=T0(),De=P(ge,!0);T(ge),we(()=>{he(ge,1,`error-message ${l(u)?"dark-mode":""}`),Ne(De,p())}),Z(ke,ge)};ue(je,ke=>{p()&&ke(Ge)})}T(V),we(()=>{he(V,1,`container ${l(u)?"dark-mode":""}`),he(_e,1,`label ${l(u)?"dark-mode":""}`),Ne(xe,`${S(c()),U(()=>c().title)??""} `),he(y,1,`nested-dropdown-container ${l(u)?"dark-mode":""}`),he(J,1,`breadcrumb-item home-item nested-dropdown-home-item ${l(u)?"dark-mode":""}`)}),Z(r,V),jt()}Bn(["click","keydown"]);const lc="-",P0=r=>{const i=C0(r),{conflictingClassGroups:u,conflictingClassGroupModifiers:c}=r;return{getClassGroupId:f=>{const m=f.split(lc);return m[0]===""&&m.length!==1&&m.shift(),ah(m,i)||U0(f)},getConflictingClassGroupIds:(f,m)=>{const p=u[f]||[];return m&&c[f]?[...p,...c[f]]:p}}},ah=(r,i)=>{if(r.length===0)return i.classGroupId;const u=r[0],c=i.nextPart.get(u),f=c?ah(r.slice(1),c):void 0;if(f)return f;if(i.validators.length===0)return;const m=r.join(lc);return i.validators.find(({validator:p})=>p(m))?.classGroupId},sh=/^\[(.+)\]$/,U0=r=>{if(sh.test(r)){const i=sh.exec(r)[1],u=i?.substring(0,i.indexOf(":"));if(u)return"arbitrary.."+u}},C0=r=>{const{theme:i,classGroups:u}=r,c={nextPart:new Map,validators:[]};for(const f in u)dc(u[f],c,f,i);return c},dc=(r,i,u,c)=>{r.forEach(f=>{if(typeof f=="string"){const m=f===""?i:uh(i,f);m.classGroupId=u;return}if(typeof f=="function"){if(D0(f)){dc(f(c),i,u,c);return}i.validators.push({validator:f,classGroupId:u});return}Object.entries(f).forEach(([m,p])=>{dc(p,uh(i,m),u,c)})})},uh=(r,i)=>{let u=r;return i.split(lc).forEach(c=>{u.nextPart.has(c)||u.nextPart.set(c,{nextPart:new Map,validators:[]}),u=u.nextPart.get(c)}),u},D0=r=>r.isThemeGetter,M0=r=>{if(r<1)return{get:()=>{},set:()=>{}};let i=0,u=new Map,c=new Map;const f=(m,p)=>{u.set(m,p),i++,i>r&&(i=0,c=u,u=new Map)};return{get(m){let p=u.get(m);if(p!==void 0)return p;if((p=c.get(m))!==void 0)return f(m,p),p},set(m,p){u.has(m)?u.set(m,p):f(m,p)}}},fc="!",mc=":",L0=mc.length,A0=r=>{const{prefix:i,experimentalParseClassName:u}=r;let c=f=>{const m=[];let p=0,v=0,g=0,b;for(let j=0;j<f.length;j++){let q=f[j];if(p===0&&v===0){if(q===mc){m.push(f.slice(g,j)),g=j+L0;continue}if(q==="/"){b=j;continue}}q==="["?p++:q==="]"?p--:q==="("?v++:q===")"&&v--}const h=m.length===0?f:f.substring(g),I=Z0(h),k=I!==h,N=b&&b>g?b-g:void 0;return{modifiers:m,hasImportantModifier:k,baseClassName:I,maybePostfixModifierPosition:N}};if(i){const f=i+mc,m=c;c=p=>p.startsWith(f)?m(p.substring(f.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(u){const f=c;c=m=>u({className:m,parseClassName:f})}return c},Z0=r=>r.endsWith(fc)?r.substring(0,r.length-1):r.startsWith(fc)?r.substring(1):r,q0=r=>{const i=Object.fromEntries(r.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const c=[];let f=[];return u.forEach(m=>{m[0]==="["||i[m]?(c.push(...f.sort(),m),f=[]):f.push(m)}),c.push(...f.sort()),c}},R0=r=>({cache:M0(r.cacheSize),parseClassName:A0(r),sortModifiers:q0(r),...P0(r)}),F0=/\s+/,W0=(r,i)=>{const{parseClassName:u,getClassGroupId:c,getConflictingClassGroupIds:f,sortModifiers:m}=i,p=[],v=r.trim().split(F0);let g="";for(let b=v.length-1;b>=0;b-=1){const h=v[b],{isExternal:I,modifiers:k,hasImportantModifier:N,baseClassName:j,maybePostfixModifierPosition:q}=u(h);if(I){g=h+(g.length>0?" "+g:g);continue}let O=!!q,K=c(O?j.substring(0,q):j);if(!K){if(!O){g=h+(g.length>0?" "+g:g);continue}if(K=c(j),!K){g=h+(g.length>0?" "+g:g);continue}O=!1}const ne=m(k).join(":"),D=N?ne+fc:ne,G=D+K;if(p.includes(G))continue;p.push(G);const ee=f(K,O);for(let V=0;V<ee.length;++V){const ie=ee[V];p.push(D+ie)}g=h+(g.length>0?" "+g:g)}return g};function Q0(){let r=0,i,u,c="";for(;r<arguments.length;)(i=arguments[r++])&&(u=ch(i))&&(c&&(c+=" "),c+=u);return c}const ch=r=>{if(typeof r=="string")return r;let i,u="";for(let c=0;c<r.length;c++)r[c]&&(i=ch(r[c]))&&(u&&(u+=" "),u+=i);return u};function pc(r,...i){let u,c,f,m=p;function p(g){const b=i.reduce((h,I)=>I(h),r());return u=R0(b),c=u.cache.get,f=u.cache.set,m=v,v(g)}function v(g){const b=c(g);if(b)return b;const h=W0(g,u);return f(g,h),h}return function(){return m(Q0.apply(null,arguments))}}const Ct=r=>{const i=u=>u[r]||[];return i.isThemeGetter=!0,i},lh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,G0=/^\d+\/\d+$/,J0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,V0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Y0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,B0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,K0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fi=r=>G0.test(r),He=r=>!!r&&!Number.isNaN(Number(r)),dr=r=>!!r&&Number.isInteger(Number(r)),gc=r=>r.endsWith("%")&&He(r.slice(0,-1)),Xn=r=>J0.test(r),H0=()=>!0,X0=r=>V0.test(r)&&!Y0.test(r),fh=()=>!1,eS=r=>B0.test(r),tS=r=>K0.test(r),nS=r=>!Te(r)&&!Oe(r),rS=r=>mi(r,hh,fh),Te=r=>lh.test(r),Rr=r=>mi(r,bh,X0),vc=r=>mi(r,uS,He),mh=r=>mi(r,gh,fh),iS=r=>mi(r,vh,tS),ha=r=>mi(r,yh,eS),Oe=r=>dh.test(r),to=r=>pi(r,bh),oS=r=>pi(r,cS),ph=r=>pi(r,gh),aS=r=>pi(r,hh),sS=r=>pi(r,vh),ba=r=>pi(r,yh,!0),mi=(r,i,u)=>{const c=lh.exec(r);return c?c[1]?i(c[1]):u(c[2]):!1},pi=(r,i,u=!1)=>{const c=dh.exec(r);return c?c[1]?i(c[1]):u:!1},gh=r=>r==="position"||r==="percentage",vh=r=>r==="image"||r==="url",hh=r=>r==="length"||r==="size"||r==="bg-size",bh=r=>r==="length",uS=r=>r==="number",cS=r=>r==="family-name",yh=r=>r==="shadow",hc=()=>{const r=Ct("color"),i=Ct("font"),u=Ct("text"),c=Ct("font-weight"),f=Ct("tracking"),m=Ct("leading"),p=Ct("breakpoint"),v=Ct("container"),g=Ct("spacing"),b=Ct("radius"),h=Ct("shadow"),I=Ct("inset-shadow"),k=Ct("text-shadow"),N=Ct("drop-shadow"),j=Ct("blur"),q=Ct("perspective"),O=Ct("aspect"),K=Ct("ease"),ne=Ct("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...G(),Oe,Te],V=()=>["auto","hidden","clip","visible","scroll"],ie=()=>["auto","contain","none"],L=()=>[Oe,Te,g],Ue=()=>[fi,"full","auto",...L()],Pe=()=>[dr,"none","subgrid",Oe,Te],Be=()=>["auto",{span:["full",dr,Oe,Te]},dr,Oe,Te],_e=()=>[dr,"auto",Oe,Te],xe=()=>["auto","min","max","fr",Oe,Te],re=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...L()],C=()=>[fi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],y=()=>[r,Oe,Te],w=()=>[...G(),ph,mh,{position:[Oe,Te]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ce=()=>["auto","cover","contain",aS,rS,{size:[Oe,Te]}],oe=()=>[gc,to,Rr],le=()=>["","none","full",b,Oe,Te],de=()=>["",He,to,Rr],Se=()=>["solid","dashed","dotted","double"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],je=()=>[He,gc,ph,mh],Ge=()=>["","none",j,Oe,Te],ke=()=>["none",He,Oe,Te],ge=()=>["none",He,Oe,Te],De=()=>[He,Oe,Te],Re=()=>[fi,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Xn],breakpoint:[Xn],color:[H0],container:[Xn],"drop-shadow":[Xn],ease:["in","out","in-out"],font:[nS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Xn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Xn],shadow:[Xn],spacing:["px",He],text:[Xn],"text-shadow":[Xn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fi,Te,Oe,O]}],container:["container"],columns:[{columns:[He,Te,Oe,v]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:ie()}],"overscroll-x":[{"overscroll-x":ie()}],"overscroll-y":[{"overscroll-y":ie()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Ue()}],"inset-x":[{"inset-x":Ue()}],"inset-y":[{"inset-y":Ue()}],start:[{start:Ue()}],end:[{end:Ue()}],top:[{top:Ue()}],right:[{right:Ue()}],bottom:[{bottom:Ue()}],left:[{left:Ue()}],visibility:["visible","invisible","collapse"],z:[{z:[dr,"auto",Oe,Te]}],basis:[{basis:[fi,"full","auto",v,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[He,fi,"auto","initial","none",Te]}],grow:[{grow:["",He,Oe,Te]}],shrink:[{shrink:["",He,Oe,Te]}],order:[{order:[dr,"first","last","none",Oe,Te]}],"grid-cols":[{"grid-cols":Pe()}],"col-start-end":[{col:Be()}],"col-start":[{"col-start":_e()}],"col-end":[{"col-end":_e()}],"grid-rows":[{"grid-rows":Pe()}],"row-start-end":[{row:Be()}],"row-start":[{"row-start":_e()}],"row-end":[{"row-end":_e()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":xe()}],"auto-rows":[{"auto-rows":xe()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...re(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...re()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":re()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[v,"screen",...C()]}],"min-w":[{"min-w":[v,"screen","none",...C()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[p]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",u,to,Rr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[c,Oe,vc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",gc,Te]}],"font-family":[{font:[oS,Te,i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[f,Oe,Te]}],"line-clamp":[{"line-clamp":[He,"none",Oe,vc]}],leading:[{leading:[m,...L()]}],"list-image":[{"list-image":["none",Oe,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:y()}],"text-color":[{text:y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[He,"from-font","auto",Oe,Rr]}],"text-decoration-color":[{decoration:y()}],"underline-offset":[{"underline-offset":[He,"auto",Oe,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:w()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:ce()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dr,Oe,Te],radial:["",Oe,Te],conic:[dr,Oe,Te]},sS,iS]}],"bg-color":[{bg:y()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:y()}],"gradient-via":[{via:y()}],"gradient-to":[{to:y()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:y()}],"border-color-x":[{"border-x":y()}],"border-color-y":[{"border-y":y()}],"border-color-s":[{"border-s":y()}],"border-color-e":[{"border-e":y()}],"border-color-t":[{"border-t":y()}],"border-color-r":[{"border-r":y()}],"border-color-b":[{"border-b":y()}],"border-color-l":[{"border-l":y()}],"divide-color":[{divide:y()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[He,Oe,Te]}],"outline-w":[{outline:["",He,to,Rr]}],"outline-color":[{outline:y()}],shadow:[{shadow:["","none",h,ba,ha]}],"shadow-color":[{shadow:y()}],"inset-shadow":[{"inset-shadow":["none",I,ba,ha]}],"inset-shadow-color":[{"inset-shadow":y()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:y()}],"ring-offset-w":[{"ring-offset":[He,Rr]}],"ring-offset-color":[{"ring-offset":y()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":y()}],"text-shadow":[{"text-shadow":["none",k,ba,ha]}],"text-shadow-color":[{"text-shadow":y()}],opacity:[{opacity:[He,Oe,Te]}],"mix-blend":[{"mix-blend":[...Le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Le()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[He]}],"mask-image-linear-from-pos":[{"mask-linear-from":je()}],"mask-image-linear-to-pos":[{"mask-linear-to":je()}],"mask-image-linear-from-color":[{"mask-linear-from":y()}],"mask-image-linear-to-color":[{"mask-linear-to":y()}],"mask-image-t-from-pos":[{"mask-t-from":je()}],"mask-image-t-to-pos":[{"mask-t-to":je()}],"mask-image-t-from-color":[{"mask-t-from":y()}],"mask-image-t-to-color":[{"mask-t-to":y()}],"mask-image-r-from-pos":[{"mask-r-from":je()}],"mask-image-r-to-pos":[{"mask-r-to":je()}],"mask-image-r-from-color":[{"mask-r-from":y()}],"mask-image-r-to-color":[{"mask-r-to":y()}],"mask-image-b-from-pos":[{"mask-b-from":je()}],"mask-image-b-to-pos":[{"mask-b-to":je()}],"mask-image-b-from-color":[{"mask-b-from":y()}],"mask-image-b-to-color":[{"mask-b-to":y()}],"mask-image-l-from-pos":[{"mask-l-from":je()}],"mask-image-l-to-pos":[{"mask-l-to":je()}],"mask-image-l-from-color":[{"mask-l-from":y()}],"mask-image-l-to-color":[{"mask-l-to":y()}],"mask-image-x-from-pos":[{"mask-x-from":je()}],"mask-image-x-to-pos":[{"mask-x-to":je()}],"mask-image-x-from-color":[{"mask-x-from":y()}],"mask-image-x-to-color":[{"mask-x-to":y()}],"mask-image-y-from-pos":[{"mask-y-from":je()}],"mask-image-y-to-pos":[{"mask-y-to":je()}],"mask-image-y-from-color":[{"mask-y-from":y()}],"mask-image-y-to-color":[{"mask-y-to":y()}],"mask-image-radial":[{"mask-radial":[Oe,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":je()}],"mask-image-radial-to-pos":[{"mask-radial-to":je()}],"mask-image-radial-from-color":[{"mask-radial-from":y()}],"mask-image-radial-to-color":[{"mask-radial-to":y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[He]}],"mask-image-conic-from-pos":[{"mask-conic-from":je()}],"mask-image-conic-to-pos":[{"mask-conic-to":je()}],"mask-image-conic-from-color":[{"mask-conic-from":y()}],"mask-image-conic-to-color":[{"mask-conic-to":y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:w()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:ce()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,Te]}],filter:[{filter:["","none",Oe,Te]}],blur:[{blur:Ge()}],brightness:[{brightness:[He,Oe,Te]}],contrast:[{contrast:[He,Oe,Te]}],"drop-shadow":[{"drop-shadow":["","none",N,ba,ha]}],"drop-shadow-color":[{"drop-shadow":y()}],grayscale:[{grayscale:["",He,Oe,Te]}],"hue-rotate":[{"hue-rotate":[He,Oe,Te]}],invert:[{invert:["",He,Oe,Te]}],saturate:[{saturate:[He,Oe,Te]}],sepia:[{sepia:["",He,Oe,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,Te]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[He,Oe,Te]}],"backdrop-contrast":[{"backdrop-contrast":[He,Oe,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",He,Oe,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[He,Oe,Te]}],"backdrop-invert":[{"backdrop-invert":["",He,Oe,Te]}],"backdrop-opacity":[{"backdrop-opacity":[He,Oe,Te]}],"backdrop-saturate":[{"backdrop-saturate":[He,Oe,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",He,Oe,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[He,"initial",Oe,Te]}],ease:[{ease:["linear","initial",K,Oe,Te]}],delay:[{delay:[He,Oe,Te]}],animate:[{animate:["none",ne,Oe,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[q,Oe,Te]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:ke()}],"rotate-x":[{"rotate-x":ke()}],"rotate-y":[{"rotate-y":ke()}],"rotate-z":[{"rotate-z":ke()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:De()}],"skew-x":[{"skew-x":De()}],"skew-y":[{"skew-y":De()}],transform:[{transform:[Oe,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Re()}],"translate-x":[{"translate-x":Re()}],"translate-y":[{"translate-y":Re()}],"translate-z":[{"translate-z":Re()}],"translate-none":["translate-none"],accent:[{accent:y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe,Te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe,Te]}],fill:[{fill:["none",...y()]}],"stroke-w":[{stroke:[He,to,Rr,vc]}],stroke:[{stroke:["none",...y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lS=(r,{cacheSize:i,prefix:u,experimentalParseClassName:c,extend:f={},override:m={}})=>(no(r,"cacheSize",i),no(r,"prefix",u),no(r,"experimentalParseClassName",c),ya(r.theme,m.theme),ya(r.classGroups,m.classGroups),ya(r.conflictingClassGroups,m.conflictingClassGroups),ya(r.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),no(r,"orderSensitiveModifiers",m.orderSensitiveModifiers),$a(r.theme,f.theme),$a(r.classGroups,f.classGroups),$a(r.conflictingClassGroups,f.conflictingClassGroups),$a(r.conflictingClassGroupModifiers,f.conflictingClassGroupModifiers),$h(r,f,"orderSensitiveModifiers"),r),no=(r,i,u)=>{u!==void 0&&(r[i]=u)},ya=(r,i)=>{if(i)for(const u in i)no(r,u,i[u])},$a=(r,i)=>{if(i)for(const u in i)$h(r,i,u)},$h=(r,i,u)=>{const c=i[u];c!==void 0&&(r[u]=r[u]?r[u].concat(c):c)},dS=(r,...i)=>typeof r=="function"?pc(hc,r,...i):pc(()=>lS(hc(),r),...i),_h=pc(hc);function ro(...r){return _h(Mv(r))}var fS=H("<textarea></textarea>");function mS(r,i){Nt(i,!0);let u=x(i,"ref",15,null),c=x(i,"value",15),f=x(i,"data-slot",3,"textarea"),m=sc(i,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=fS();lw(p),qr(p,v=>({"data-slot":f(),class:v,...m}),[()=>ro("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",i.class)]),ci(p,v=>u(v),()=>u()),rc(p,c),Z(r,p),jt()}function kh(r){if(!r)return{code:null,message:""};const i=r.split("|").map(u=>u.trim());if(i.length>=2){const u=i[0],c=i.slice(1).join("|").trim(),f=c.match(/(\d+)\s+seconds?/i),m=f?parseInt(f[1],10):void 0;return{code:u,message:c,seconds:m}}return{code:null,message:r}}function wh(r,i,u){let c=r;i(c);const f=setInterval(()=>{c--,i(c),c<=0&&(clearInterval(f),u())},1e3);return f}function Sh(r,i,u,c){if(!u?.otherFields)return i;const{otherFields:f}=u;switch(r){case"1001":{const m=f.aiEnhancementCooldownErrorMessage||i;return c!==void 0?`${m} (${c}s)`:m}case"1002":return f.aiEnhancementMaxReachedErrorMessage||i;default:return i}}async function xh(r){return await window.encatch._internal.refineText({questionId:r.questionId,identifier:r.identifier,feedbackConfigurationId:r.feedbackConfigurationId,userText:r.userText})}async function pS(r,i,u,c,f,m,p,v,g,b,h,I,k,N,j,q,O){if(!i()||!u()||!c())return;const K=l(f);try{_(m,!0),_(p,null);const ne=await xh({questionId:v().id,identifier:u(),feedbackConfigurationId:c(),userText:K});if(ne?.data?.refinedText){const D=ne.data.refinedText;_(g,b()?.otherFields?.aiEnhancementSuccessMessage||ne.message||"Text refined successfully"),l(h)?(_(h,{original:l(h).original,enhanced:[...l(h).enhanced,D]}),_(I,l(h).enhanced.length)):(_(h,{original:K,enhanced:[D]}),_(I,1)),_(f,D),_(k,!0);const G=N(D);_(j,G),q()(D),Yt(v().id,D,s.QuestionTypes.LONG_TEXT,G)}else{if(ne?.message){const{code:D,message:G,seconds:ee}=kh(ne.message);D==="1001"&&ee!==void 0&&O(ee),_(p,Sh(D,G,b(),ee))}_(k,!1)}}catch(ne){console.error("Error enhancing text:",ne),_(p,"An error occurred while enhancing text"),_(k,!1)}finally{_(m,!1)}}function gS(r,i,u,c,f,m,p,v){if(!l(i))return;const g=l(i).original;_(u,g),_(c,0);const b=f(g);_(m,b),p()(g),Yt(v().id,g,s.QuestionTypes.LONG_TEXT,b)}var vS=H("<div><span> </span></div>"),hS=H('<span class="required">*</span>'),bS=H("<div> </div>"),yS=H("<div> </div>"),$S=H("<div> </div>"),_S=(r,i,u)=>{l(i)>0&&u(l(i)-1)},kS=(r,i,u,c)=>{const f=i();l(u)<f-1&&c(l(u)+1)},wS=H('<div class="version-navigation"><button type="button" title="Previous version"><!></button> <button type="button" title="Next version"><!></button></div>'),SS=H('<button type="button" title="Back to original text"><!></button>'),xS=H("<!> <!>",1),IS=H('<div class="refine-text-section"><div class="button-group"><button type="button" title="Enhance with AI"><!></button> <!></div></div>'),zS=H("<div> </div>"),NS=H("<div> </div>"),jS=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div> <!></div> <div class="textarea-container"><!> <!></div> <!> <!> <!></div>');function TS(r,i){Nt(i,!1);const u=X(),c=X(),f=X(),m=X(),p=X(),v=X(),g=X(),b=X();let h=x(i,"question",8),I=x(i,"value",8,""),k=x(i,"onChange",8),N=x(i,"error",8,void 0),j=x(i,"currentMode",8,void 0),q=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0),x(i,"apiKey",8,void 0),x(i,"hostUrl",8,void 0);let O=x(i,"identifier",8,void 0),K=x(i,"feedbackConfigurationId",8,void 0),ne=x(i,"otherConfigurationProperties",8,void 0),D=X(I()??""),G=X(null),ee=X(0),V=X(N()),ie=X(!1),L=X(!1),Ue=X(!1),Pe=X(null),Be=X(null),_e=X(!1),xe=X(!1),re=X(""),F=X(0),W=null,C=X(l(D));Zr(()=>{setTimeout(()=>{const M=w(l(D));_(V,M),M&&di(h().id,M),_(_e,!0)},0)}),fa(()=>{W!==null&&clearInterval(W)});function y(){l(ie)||_(ie,!0)}function w(M){if(h().required&&(!M||M.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&M.length>h().maxCharacters||h().minCharacters!==void 0&&M.length>0&&M.length<h().minCharacters)return h().errorMessage}function J(M){W!==null&&clearInterval(W),W=wh(M,Q=>{_(F,Q)},()=>{W=null,_(Pe,null)})}function ce(M){if(!l(G))return;let Q;if(M===0)Q=l(G).original;else{const Me=M-1;if(Me>=l(G).enhanced.length)return;Q=l(G).enhanced[Me]}_(D,Q),_(ee,M);const Ie=w(Q);_(V,Ie),k()(Q),Yt(h().id,Q,s.QuestionTypes.LONG_TEXT,Ie)}function oe(){return l(G)?l(G).enhanced.length+1:0}function le(){const M=l(D).trim();return M?h().minCharactersToEnhance!==void 0?M.length>=h().minCharactersToEnhance:!0:!1}fe(()=>S(j()),()=>{_(u,j()==="dark")}),fe(()=>(S(I()),l(D),l(ie)),()=>{I()!==void 0&&I()!==l(D)&&!l(ie)&&(_(D,I()),_(C,I()))}),fe(()=>l(D),()=>{_(c,l(D).length)}),fe(()=>S(h()),()=>{_(f,h().minCharacters)}),fe(()=>S(h()),()=>{_(m,h().maxCharacters)}),fe(()=>(l(m),l(c)),()=>{_(p,l(m)!==void 0&&l(c)>l(m))}),fe(()=>(l(f),l(c)),()=>{_(v,l(f)!==void 0&&l(c)<l(f)&&l(c)>0)}),fe(()=>(l(p),l(v)),()=>{_(g,l(p)||l(v))}),fe(()=>(l(f),l(m)),()=>{_(b,l(f)!==void 0||l(m)!==void 0)}),fe(()=>(l(D),S(h())),()=>{const M=l(D).trim();M?h().minCharactersToEnhance!==void 0?_(xe,M.length>=h().minCharactersToEnhance):_(xe,!0):_(xe,!1)}),fe(()=>(l(f),l(m),l(c),S(h())),()=>{l(f)!==void 0&&l(m)!==void 0?_(re,`${l(c)} / (${l(f)} - ${l(m)})`):l(m)!==void 0&&h().required?_(re,`${l(c)} / (1 - ${l(m)})`):l(f)!==void 0?_(re,`${l(c)} / (${l(f)} - 5000)`):_(re,"")}),fe(()=>(l(F),S(ne())),()=>{l(F)>0&&ne()?.otherFields?.aiEnhancementCooldownErrorMessage&&_(Pe,`${ne().otherFields.aiEnhancementCooldownErrorMessage} (${l(F)}s)`)}),fe(()=>S(N()),()=>{N()!==void 0&&_(V,N())}),fe(()=>(l(_e),l(ie),l(D),l(C),S(k()),S(h()),s.QuestionTypes),()=>{if(l(_e)&&l(ie)&&l(D)!==l(C)){_(C,l(D));const M=w(l(D));_(V,M),k()(l(D)),Yt(h().id,l(D),s.QuestionTypes.LONG_TEXT,M)}}),tn(),Vt();var de=jS(),Se=P(de),Le=P(Se),je=P(Le);{var Ge=M=>{var Q=vS(),Ie=P(Q),Me=P(Ie);T(Ie),T(Q),we(()=>{he(Q,1,`question-number ${l(u)?"dark-mode":""}`),Ne(Me,`${q()??""}.`)}),Z(M,Q)};ue(je,M=>{q()!==void 0&&M(Ge)})}var ke=ye(je,2),ge=P(ke),De=P(ge),Re=ye(De);{var Ae=M=>{var Q=hS();Z(M,Q)};ue(Re,M=>{S(h()),U(()=>h().required)&&M(Ae)})}T(ge);var Ee=ye(ge,2);{var _t=M=>{var Q=bS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`description ${l(u)?"dark-mode":""}`),Ne(Ie,(S(h()),U(()=>h().description)))}),Z(M,Q)};ue(Ee,M=>{S(h()),U(()=>h().description)&&M(_t)})}T(ke),T(Le);var Bt=ye(Le,2);{var Kt=M=>{var Q=yS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`error ${l(u)?"dark-mode":""}`),Ne(Ie,l(V))}),Z(M,Q)};ue(Bt,M=>{l(V)&&l(ie)&&M(Kt)})}T(Se);var It=ye(Se,2),Ht=P(It);{let M=ft(()=>`textarea long-answer-textarea ${l(b)?"with-char-count":""} ${l(u)?"dark-mode":""}`),Q=ft(()=>(S(h()),U(()=>h().rows||4)));mS(Ht,{get class(){return l(M)},onfocus:y,get placeholder(){return S(h()),U(()=>h().placeholder)},get rows(){return l(Q)},onblur:()=>{if(l(_e)){const Ie=w(l(D));_(V,Ie),di(h().id,Ie)}},get value(){return l(D)},set value(Ie){_(D,Ie)},$$legacy:!0})}var $t=ye(Ht,2);{var bt=M=>{var Q=$S(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`inner-character-count ${l(u)?"dark-mode":""} ${l(g)?"error":""}`),Ne(Ie,l(re))}),Z(M,Q)};ue($t,M=>{l(b)&&M(bt)})}T(It);var Xt=ye(It,2);{var On=M=>{var Q=IS(),Ie=P(Q),Me=P(Ie);Me.__click=[pS,le,O,K,D,Ue,Pe,h,Be,ne,G,ee,L,w,V,k,J];var it=P(Me);nh(it,{size:16}),T(Me);var en=ye(Me,2);{var En=tr=>{var Wr=xS(),$n=et(Wr);{var gi=Zt=>{var vt=wS(),Ot=P(vt);Ot.__click=[_S,ee,ce];var so=P(Ot);eh(so,{size:12}),T(Ot);var fn=ye(Ot,2);fn.__click=[kS,oe,ee,ce];var uo=P(fn);va(uo,{size:12}),T(fn),T(vt),we(Zn=>{he(Ot,1,`version-nav-button ${l(u)?"dark-mode":""}`),Ot.disabled=l(ee)===0,he(fn,1,`version-nav-button ${l(u)?"dark-mode":""}`),fn.disabled=Zn},[()=>(l(ee),U(()=>l(ee)>=oe()-1))]),Z(Zt,vt)};ue($n,Zt=>{l(G),U(()=>l(G)&&l(G).enhanced&&l(G).enhanced.length>1)&&Zt(gi)})}var oo=ye($n,2);{var ao=Zt=>{var vt=SS();vt.__click=[gS,G,D,ee,w,V,k,h];var Ot=P(vt);Hv(Ot,{size:16}),T(vt),we(()=>he(vt,1,`rollback-button ${l(u)?"dark-mode":""}`)),Z(Zt,vt)};ue(oo,Zt=>{l(ee)!==0&&Zt(ao)})}Z(tr,Wr)};ue(en,tr=>{l(G)&&!l(Ue)&&tr(En)})}T(Ie),T(Q),we(()=>{he(Me,1,`refine-button ${l(u)?"dark-mode":""} ${l(Ue)?"loading":""}`),Me.disabled=l(Ue)||!l(xe)}),Z(M,Q)};ue(Xt,M=>{S(h()),U(()=>h().enableEnhanceWithAi)&&M(On)})}var dn=ye(Xt,2);{var Fr=M=>{var Q=zS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`refine-success ${l(u)?"dark-mode":""}`),Ne(Ie,l(Be))}),Z(M,Q)};ue(dn,M=>{l(L)&&!l(Pe)&&M(Fr)})}var R=ye(dn,2);{var se=M=>{var Q=NS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`refine-error ${l(u)?"dark-mode":""}`),Ne(Ie,l(Pe))}),Z(M,Q)};ue(R,M=>{l(Pe)&&M(se)})}T(de),we(()=>{he(de,1,`container ${l(u)?"dark-mode":""}`),he(ge,1,`label ${l(u)?"dark-mode":""}`),Ne(De,`${S(h()),U(()=>h().title)??""} `)}),Z(r,de),jt()}Bn(["click"]);var OS=H("<input/>"),ES=H("<input/>");function PS(r,i){Nt(i,!0);let u=x(i,"ref",15,null),c=x(i,"value",15),f=x(i,"files",15),m=x(i,"data-slot",3,"input"),p=sc(i,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var v=dt(),g=et(v);{var b=I=>{var k=OS();qr(k,N=>({"data-slot":m(),class:N,type:"file",...p}),[()=>ro("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i.class)],void 0,void 0,!0),ci(k,N=>u(N),()=>u()),Jw(k,f),rc(k,c),Z(I,k)},h=I=>{var k=ES();qr(k,N=>({"data-slot":m(),class:N,type:i.type,...p}),[()=>ro("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i.class)],void 0,void 0,!0),ci(k,N=>u(N),()=>u()),rc(k,c),Z(I,k)};ue(g,I=>{i.type==="file"?I(b):I(h,!1)})}Z(r,v),jt()}async function US(r,i,u,c,f,m,p,v,g,b,h,I,k,N,j,q,O){if(!i())return;const K=l(u);try{_(c,!0),_(f,null);const ne=await xh({questionId:m().id,identifier:p(),feedbackConfigurationId:v(),userText:K});if(ne?.data?.refinedText){const D=ne.data.refinedText;_(g,b()?.otherFields?.aiEnhancementSuccessMessage||ne.message||"Text refined successfully"),l(h)?(_(h,{original:l(h).original,enhanced:[...l(h).enhanced,D]}),_(I,l(h).enhanced.length)):(_(h,{original:K,enhanced:[D]}),_(I,1)),_(u,D),_(k,!0);const G=N(D);_(j,G),q()(D),Yt(m().id,D,s.QuestionTypes.SHORT_ANSWER,G)}else{if(ne?.message){const{code:D,message:G,seconds:ee}=kh(ne.message);D==="1001"&&ee!==void 0&&O(ee),_(f,Sh(D,G,b(),ee))}_(k,!1)}}catch(ne){console.error("Error enhancing text:",ne),_(f,"An error occurred while enhancing text!"),_(k,!1)}finally{_(c,!1)}}function CS(r,i,u,c,f,m,p,v){if(!l(i))return;const g=l(i).original;_(u,g),_(c,0);const b=f(g);_(m,b),p()(g),Yt(v().id,g,s.QuestionTypes.SHORT_ANSWER,b)}var DS=H("<div><span> </span></div>"),MS=H('<span class="required">*</span>'),LS=H("<div> </div>"),AS=H("<div> </div>"),ZS=H("<div> </div>"),qS=(r,i,u)=>{l(i)>0&&u(l(i)-1)},RS=(r,i,u,c)=>{const f=i();l(u)<f-1&&c(l(u)+1)},FS=H('<div class="version-navigation"><button type="button" title="Previous version"><!></button> <button type="button" title="Next version"><!></button></div>'),WS=H('<button type="button" title="Back to original text"><!></button>'),QS=H("<!> <!>",1),GS=H('<div class="refine-text-section"><div class="button-group"><button type="button" title="Enhance with AI"><!></button> <!></div></div>'),JS=H("<div> </div>"),VS=H("<div> </div>"),YS=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div> <!></div> <div class="input-container"><!> <!></div> <!> <!> <!></div>');function BS(r,i){Nt(i,!1);const u=X(),c=X(),f=X(),m=X(),p=X(),v=X(),g=X(),b=X();let h=x(i,"question",8),I=x(i,"value",8,""),k=x(i,"onChange",8),N=x(i,"error",8,void 0),j=x(i,"currentMode",8,void 0),q=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0),x(i,"apiKey",8,void 0),x(i,"hostUrl",8,void 0);let O=x(i,"identifier",8,void 0),K=x(i,"feedbackConfigurationId",8,void 0),ne=x(i,"otherConfigurationProperties",8,void 0),D=X(I()||""),G=X(null),ee=X(0),V=X(N()),ie=X(!1),L=X(!1),Ue=X(!1),Pe=X(null),Be=X(null),_e=X(!1),xe=X(!1),re=X(""),F=X(0),W=null,C=X(l(D));Zr(()=>{setTimeout(()=>{const M=oe(l(D));_(V,M),M&&di(h().id,M),_(_e,!0)},0)}),fa(()=>{W!==null&&clearInterval(W)});function y(){l(ie)||_(ie,!0)}function w(M){W!==null&&clearInterval(W),W=wh(M,Q=>{_(F,Q)},()=>{W=null,_(Pe,null)})}function J(M){if(!l(G))return;let Q;if(M===0)Q=l(G).original;else{const Me=M-1;if(Me>=l(G).enhanced.length)return;Q=l(G).enhanced[Me]}_(D,Q),_(ee,M);const Ie=oe(Q);_(V,Ie),k()(Q),Yt(h().id,Q,s.QuestionTypes.SHORT_ANSWER,Ie)}function ce(){return l(G)?l(G).enhanced.length+1:0}function oe(M){if(h().required&&(!M||M.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&M.length>h().maxCharacters||h().minCharacters!==void 0&&M.length>0&&M.length<h().minCharacters)return h().errorMessage;if(h().enableRegexValidation&&h().regexPattern)try{const Q=new RegExp(h().regexPattern);if(M.length>0&&!Q.test(M))return h().errorMessage||"Input does not match required pattern"}catch{}}function le(){const M=l(D).trim();return M?h().minCharactersToEnhance!==void 0?M.length>=h().minCharactersToEnhance:!0:!1}fe(()=>S(j()),()=>{_(u,j()==="dark")}),fe(()=>(S(I()),l(D),l(ie)),()=>{I()!==void 0&&I()!==l(D)&&!l(ie)&&(_(D,I()),_(C,I()))}),fe(()=>l(D),()=>{_(c,l(D).length)}),fe(()=>S(h()),()=>{_(f,h().minCharacters)}),fe(()=>S(h()),()=>{_(m,h().maxCharacters)}),fe(()=>(l(m),l(c)),()=>{_(p,l(m)!==void 0&&l(c)>l(m))}),fe(()=>(l(f),l(c)),()=>{_(v,l(f)!==void 0&&l(c)<l(f)&&l(c)>0)}),fe(()=>(l(p),l(v)),()=>{_(g,l(p)||l(v))}),fe(()=>(l(f),l(m)),()=>{_(b,l(f)!==void 0||l(m)!==void 0)}),fe(()=>(l(D),S(h())),()=>{const M=l(D).trim();M?h().minCharactersToEnhance!==void 0?_(xe,M.length>=h().minCharactersToEnhance):_(xe,!0):_(xe,!1)}),fe(()=>(l(f),l(m),l(c),S(h())),()=>{l(f)!==void 0&&l(m)!==void 0?_(re,`${l(c)} / (${l(f)} - ${l(m)})`):l(m)!==void 0&&h().required?_(re,`${l(c)} / (1 - ${l(m)})`):l(f)!==void 0?_(re,`${l(c)} / (${l(f)} - 5000)`):_(re,"")}),fe(()=>(l(F),S(ne())),()=>{l(F)>0&&ne()?.otherFields?.aiEnhancementCooldownErrorMessage&&_(Pe,`${ne().otherFields.aiEnhancementCooldownErrorMessage} (${l(F)}s)`)}),fe(()=>S(N()),()=>{N()!==void 0&&_(V,N())}),fe(()=>(l(_e),l(ie),l(D),l(C),S(k()),S(h()),s.QuestionTypes),()=>{if(l(_e)&&l(ie)&&l(D)!==l(C)){_(C,l(D));const M=oe(l(D));_(V,M),k()(l(D)),Yt(h().id,l(D),s.QuestionTypes.SHORT_ANSWER,M)}}),tn(),Vt();var de=YS(),Se=P(de),Le=P(Se),je=P(Le);{var Ge=M=>{var Q=DS(),Ie=P(Q),Me=P(Ie);T(Ie),T(Q),we(()=>{he(Q,1,`question-number ${l(u)?"dark-mode":""}`),Ne(Me,`${q()??""}.`)}),Z(M,Q)};ue(je,M=>{q()!==void 0&&M(Ge)})}var ke=ye(je,2),ge=P(ke),De=P(ge),Re=ye(De);{var Ae=M=>{var Q=MS();Z(M,Q)};ue(Re,M=>{S(h()),U(()=>h().required)&&M(Ae)})}T(ge);var Ee=ye(ge,2);{var _t=M=>{var Q=LS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`description ${l(u)?"dark-mode":""}`),Ne(Ie,(S(h()),U(()=>h().description)))}),Z(M,Q)};ue(Ee,M=>{S(h()),U(()=>h().description)&&M(_t)})}T(ke),T(Le);var Bt=ye(Le,2);{var Kt=M=>{var Q=AS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`error ${l(u)?"dark-mode":""}`),Ne(Ie,l(V))}),Z(M,Q)};ue(Bt,M=>{l(V)&&l(ie)&&M(Kt)})}T(Se);var It=ye(Se,2),Ht=P(It);{let M=ft(()=>`input shortanswer-input ${l(u)?"dark-mode":""} ${l(b)?"has-char-count":""}`);PS(Ht,{get class(){return l(M)},onfocus:y,get placeholder(){return S(h()),U(()=>h().placeholder)},onblur:()=>{if(l(_e)){const Q=oe(l(D));_(V,Q),di(h().id,Q)}},get value(){return l(D)},set value(Q){_(D,Q)},$$legacy:!0})}var $t=ye(Ht,2);{var bt=M=>{var Q=ZS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`inner-character-count ${l(u)?"dark-mode":""} ${l(g)?"error":""}`),Ne(Ie,l(re))}),Z(M,Q)};ue($t,M=>{l(b)&&M(bt)})}T(It);var Xt=ye(It,2);{var On=M=>{var Q=GS(),Ie=P(Q),Me=P(Ie);Me.__click=[US,le,D,Ue,Pe,h,O,K,Be,ne,G,ee,L,oe,V,k,w];var it=P(Me);nh(it,{size:16}),T(Me);var en=ye(Me,2);{var En=tr=>{var Wr=QS(),$n=et(Wr);{var gi=Zt=>{var vt=FS(),Ot=P(vt);Ot.__click=[qS,ee,J];var so=P(Ot);eh(so,{size:12}),T(Ot);var fn=ye(Ot,2);fn.__click=[RS,ce,ee,J];var uo=P(fn);va(uo,{size:12}),T(fn),T(vt),we(Zn=>{he(Ot,1,`version-nav-button ${l(u)?"dark-mode":""}`),Ot.disabled=l(ee)===0,he(fn,1,`version-nav-button ${l(u)?"dark-mode":""}`),fn.disabled=Zn},[()=>(l(ee),U(()=>l(ee)>=ce()-1))]),Z(Zt,vt)};ue($n,Zt=>{l(G),U(()=>l(G)&&l(G).enhanced&&l(G).enhanced.length>1)&&Zt(gi)})}var oo=ye($n,2);{var ao=Zt=>{var vt=WS();vt.__click=[CS,G,D,ee,oe,V,k,h];var Ot=P(vt);Hv(Ot,{size:16}),T(vt),we(()=>he(vt,1,`rollback-button ${l(u)?"dark-mode":""}`)),Z(Zt,vt)};ue(oo,Zt=>{l(ee)!==0&&Zt(ao)})}Z(tr,Wr)};ue(en,tr=>{l(G)&&!l(Ue)&&tr(En)})}T(Ie),T(Q),we(()=>{he(Me,1,`refine-button ${l(u)?"dark-mode":""} ${l(Ue)?"loading":""}`),Me.disabled=l(Ue)||!l(xe)}),Z(M,Q)};ue(Xt,M=>{S(h()),U(()=>h().enableEnhanceWithAi)&&M(On)})}var dn=ye(Xt,2);{var Fr=M=>{var Q=JS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`refine-success ${l(u)?"dark-mode":""}`),Ne(Ie,l(Be))}),Z(M,Q)};ue(dn,M=>{l(L)&&!l(Pe)&&M(Fr)})}var R=ye(dn,2);{var se=M=>{var Q=VS(),Ie=P(Q,!0);T(Q),we(()=>{he(Q,1,`refine-error ${l(u)?"dark-mode":""}`),Ne(Ie,l(Pe))}),Z(M,Q)};ue(R,M=>{l(Pe)&&M(se)})}T(de),we(()=>{he(de,1,`container ${l(u)?"dark-mode":""}`),he(ge,1,`label ${l(u)?"dark-mode":""}`),Ne(De,`${S(h()),U(()=>h().title)??""} `)}),Z(r,de),jt()}Bn(["click"]);var KS=H("<div><span> </span></div>"),HS=H('<span class="required">*</span>'),XS=H("<div> </div>"),ex=(r,i,u)=>i(l(u).value),tx=H('<span class="radio__indicator"></span>'),nx=H('<div><label class="radio mc-single-radio-item"><input type="radio" style="display: none;"/> <span><!></span> <span> </span></label></div>'),rx=H('<div class="radio-group"></div>'),ix=(r,i,u)=>i(l(u).value),ox=H('<button type="button"> </button>'),ax=H('<div class="list-group"></div>'),sx=(r,i,u)=>i(l(u).value),ux=(r,i,u)=>r.key==="Enter"&&i(l(u).value),cx=H('<div role="button" tabindex="0"> </div>'),lx=H('<div class="list-options"></div>'),dx=H("<div> </div>"),fx=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div></div> <!> <!></div>');function mx(r,i){Nt(i,!1);const u=X();let c=x(i,"question",8),f=x(i,"value",8,""),m=x(i,"onChange",8),p=x(i,"error",8,void 0),v=x(i,"currentMode",8,void 0),g=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0);let b=X(f()||"");function h(_e){l(b)===_e?(_(b,""),m()("")):(_(b,_e),m()(_e))}fe(()=>S(v()),()=>{_(u,v()==="dark")}),fe(()=>S(f()),()=>{f()!==void 0&&_(b,f())}),tn(),Vt();var I=fx(),k=P(I),N=P(k),j=P(N);{var q=_e=>{var xe=KS(),re=P(xe),F=P(re);T(re),T(xe),we(()=>{he(xe,1,`question-number ${l(u)?"dark-mode":""}`),Ne(F,`${g()??""}.`)}),Z(_e,xe)};ue(j,_e=>{g()!==void 0&&_e(q)})}var O=ye(j,2),K=P(O),ne=P(K),D=ye(ne);{var G=_e=>{var xe=HS();Z(_e,xe)};ue(D,_e=>{S(c()),U(()=>c().required)&&_e(G)})}T(K);var ee=ye(K,2);{var V=_e=>{var xe=XS(),re=P(xe,!0);T(xe),we(()=>{he(xe,1,`description ${l(u)?"dark-mode":""}`),Ne(re,(S(c()),U(()=>c().description)))}),Z(_e,xe)};ue(ee,_e=>{S(c()),U(()=>c().description)&&_e(V)})}T(O),T(N),T(k);var ie=ye(k,2);{var L=_e=>{var xe=rx();ln(xe,5,()=>(S(c()),U(()=>c().options)),yn,(re,F)=>{var W=nx(),C=P(W),y=P(C);nc(y),y.__change=[ex,h,F];var w=ye(y,2),J=P(w);{var ce=de=>{var Se=tx();Z(de,Se)};ue(J,de=>{l(b),l(F),U(()=>l(b)===l(F).value)&&de(ce)})}T(w);var oe=ye(w,2),le=P(oe,!0);T(oe),T(C),T(W),we(()=>{he(W,1,`${l(u)?"dark-mode":""}`),cr(y,"name",(S(c()),U(()=>c().id))),Fv(y,(l(F),U(()=>l(F).value))),Wv(y,(l(b),l(F),U(()=>l(b)===l(F).value))),he(w,1,(l(b),l(F),U(()=>`radio__control mc-single-radio-control ${l(b)===l(F).value?"selected":""}`))),he(oe,1,`radio__label mc-single-radio-label${l(u)?" dark-mode":""}`),Ne(le,(l(F),U(()=>l(F).label)))}),Z(re,W)}),T(xe),Z(_e,xe)},Ue=_e=>{var xe=dt(),re=et(xe);{var F=C=>{var y=ax();ln(y,5,()=>(S(c()),U(()=>c().options)),yn,(w,J)=>{var ce=ox();ce.__click=[ix,h,J];var oe=P(ce,!0);T(ce),we(()=>{he(ce,1,(l(b),l(J),l(u),U(()=>`list-item mc-single-chip-item ${l(b)===l(J).value?"selected":""} ${l(u)?"dark-mode":""}`))),Ne(oe,(l(J),U(()=>l(J).label)))}),Z(w,ce)}),T(y),Z(C,y)},W=C=>{var y=dt(),w=et(y);{var J=ce=>{var oe=lx();ln(oe,5,()=>(S(c()),U(()=>c().options)),yn,(le,de,Se)=>{var Le=cx();Le.__click=[sx,h,de],Le.__keydown=[ux,h,de];var je=P(Le,!0);T(Le),we(()=>{he(Le,1,(l(b),l(de),S(c()),l(u),U(()=>`mc-single-list-item ${l(b)===l(de).value?"selected":""} ${Se===c().options.length-1?"last-item":""} ${l(u)?"dark-mode":""}`))),Ne(je,(l(de),U(()=>l(de).label)))}),Z(le,Le)}),T(oe),Z(ce,oe)};ue(w,ce=>{S(c()),U(()=>c().displayStyle==="list")&&ce(J)},!0)}Z(C,y)};ue(re,C=>{S(c()),U(()=>c().displayStyle==="chip")?C(F):C(W,!1)},!0)}Z(_e,xe)};ue(ie,_e=>{S(c()),U(()=>c().displayStyle==="radio"||!c().displayStyle)?_e(L):_e(Ue,!1)})}var Pe=ye(ie,2);{var Be=_e=>{var xe=dx(),re=P(xe,!0);T(xe),we(()=>{he(xe,1,`error ${l(u)?"dark-mode":""}`),Ne(re,p())}),Z(_e,xe)};ue(Pe,_e=>{p()&&_e(Be)})}T(I),we(()=>{he(I,1,`container ${l(u)?"dark-mode":""}`),he(K,1,`label ${l(u)?"dark-mode":""}`),Ne(ne,`${S(c()),U(()=>c().title)??""} `)}),Z(r,I),jt()}Bn(["change","click","keydown"]);var px=H("<div><span> </span></div>"),gx=H('<span class="required">*</span>'),vx=H("<div> </div>"),hx=(r,i,u)=>i(l(u)),bx=H('<button type="button" class="rating-button"><span> </span></button>'),yx=H("<span> </span>"),$x=H("<span> </span>"),_x=H('<div class="rating-labels"><!> <!></div>'),kx=H("<div> </div>"),wx=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div></div> <div class="rating-container"><div class="rating-icons"></div> <!></div> <!></div>');function Sx(r,i){Nt(i,!1);const u=X(),c=X();let f=x(i,"question",8),m=x(i,"value",8,0),p=x(i,"onChange",8),v=x(i,"error",8,void 0),g=x(i,"currentMode",8,void 0),b=x(i,"questionNumber",8,void 0),h=x(i,"themeSettings",8,void 0);x(i,"currentLanguage",8,void 0);let I=X(m()??0),k=X(m()??0),N=X(0);function j(y){l(k)===y?(_(I,0),_(k,0),p()(0),cc(f().id)):(_(I,y),_(k,y),p()(y))}function q(y,w,J){const{displayStyle:ce="star",representationSize:oe="medium",numberOfRatings:le=5,color:de}=f(),Se=w>=y,Le=w===y,je=J===y,Ge=`rating-icon ${oe}-size ${Se?"selected":""} ${l(u)?"dark-mode":""}`,ke=ce==="emoji"||ce==="thumbs-up",ge=de??l(c)?.brandColor??"var(--brand-color)";let De="";if(ke){const Ae=l(c)?.brandColor??"var(--brand-color)";De=`background-color: ${Le||je?Ae:""}; border: var(--rating-border-width) solid ${Le||je?ge:"transparent"}; transition: background-color 0.15s ease, border-color 0.15s ease;`}else De=`color: ${Se?ge:l(u)?"#4b5563":"#d1d5db"}; transition: color 0.25s ease;`;if(ce==="emoji"){const Ae=["😡","😞","😕","😐","🙂","😊","😄","😁","🤩","😍"],Ee=Math.floor((y-1)*(Ae.length/le)),_t=Math.min(Math.max(Ee,0),Ae.length-1);return{content:Ae[_t],type:"emoji",style:De,baseClass:`${Ge} rating-${ce}-icon`}}const Re={star:"★",heart:"♥","thumbs-up":"👍",diamond:"◆"}[ce];return Re?{content:Re,type:ce,style:De,baseClass:`${Ge} rating-${ce}-icon`}:null}fe(()=>S(g()),()=>{_(u,g()==="dark")}),fe(()=>(S(h()),S(g())),()=>{_(c,h()?.[g()==="dark"?"dark":"light"]||null)}),fe(()=>S(m()),()=>{m()!==void 0&&(_(I,m()),_(k,m()))}),tn(),Vt();var O=wx(),K=P(O),ne=P(K),D=P(ne);{var G=y=>{var w=px(),J=P(w),ce=P(J);T(J),T(w),we(()=>{he(w,1,`question-number ${l(u)?"dark-mode":""}`),Ne(ce,`${b()??""}.`)}),Z(y,w)};ue(D,y=>{b()!==void 0&&y(G)})}var ee=ye(D,2),V=P(ee),ie=P(V),L=ye(ie);{var Ue=y=>{var w=gx();Z(y,w)};ue(L,y=>{S(f()),U(()=>f().required)&&y(Ue)})}T(V);var Pe=ye(V,2);{var Be=y=>{var w=vx(),J=P(w,!0);T(w),we(()=>{he(w,1,`description ${l(u)?"dark-mode":""}`),Ne(J,(S(f()),U(()=>f().description)))}),Z(y,w)};ue(Pe,y=>{S(f()),U(()=>f().description)&&y(Be)})}T(ee),T(ne),T(K);var _e=ye(K,2),xe=P(_e);ln(xe,5,()=>(S(f()),U(()=>Array.from({length:f().numberOfRatings??5},(y,w)=>w+1))),yn,(y,w)=>{const J=ft(()=>(l(w),l(I),l(N),U(()=>q(l(w),l(I),l(N)))));var ce=dt(),oe=et(ce);{var le=de=>{var Se=bx();Se.__click=[hx,j,w];var Le=P(Se),je=P(Le,!0);T(Le),T(Se),we(()=>{he(Le,1,Hu((S(l(J)),U(()=>l(J).baseClass)))),ui(Le,(S(l(J)),U(()=>l(J).style))),Ne(je,(S(l(J)),U(()=>l(J).content)))}),Yu("mouseenter",Se,()=>{_(I,l(w)),_(N,l(w))}),Yu("mouseleave",Se,()=>{_(N,0),_(I,l(k))}),Z(de,Se)};ue(oe,de=>{l(J)&&de(le)})}Z(y,ce)}),T(xe);var re=ye(xe,2);{var F=y=>{var w=_x(),J=P(w);{var ce=de=>{var Se=yx(),Le=P(Se,!0);T(Se),we(()=>{he(Se,1,`rating-label ${l(u)?"dark-mode":""}`),Ne(Le,(S(f()),U(()=>f().minLabel)))}),Z(de,Se)};ue(J,de=>{S(f()),U(()=>f().minLabel)&&de(ce)})}var oe=ye(J,2);{var le=de=>{var Se=$x(),Le=P(Se,!0);T(Se),we(()=>{he(Se,1,`rating-label ${l(u)?"dark-mode":""}`),Ne(Le,(S(f()),U(()=>f().maxLabel)))}),Z(de,Se)};ue(oe,de=>{S(f()),U(()=>f().maxLabel)&&de(le)})}T(w),Z(y,w)};ue(re,y=>{S(f()),U(()=>f().showLabels)&&y(F)})}T(_e);var W=ye(_e,2);{var C=y=>{var w=kx(),J=P(w,!0);T(w),we(()=>{he(w,1,`error ${l(u)?"dark-mode":""}`),Ne(J,v())}),Z(y,w)};ue(W,y=>{v()&&y(C)})}T(O),we(()=>{he(O,1,`container ${l(u)?"dark-mode":""}`),he(V,1,`label ${l(u)?"dark-mode":""}`),Ne(ie,`${S(f()),U(()=>f().title)??""} `)}),Z(r,O),jt()}Bn(["click"]);var xx=H("<div><span> </span></div>"),Ix=H('<span class="required">*</span>'),zx=H("<div> </div>"),Nx=H("<div> </div>"),jx=H("<div> </div>"),Tx=(r,i,u)=>i(l(u).value),Ox=H('<label class="checkbox"><input type="checkbox" class="checkbox__input"/> <span><!></span> <span> </span></label>'),Ex=H('<div class="checkbox-group"></div>'),Px=(r,i,u)=>i(l(u).value),Ux=H('<button type="button"> </button>'),Cx=H('<div class="list-group"></div>'),Dx=(r,i,u)=>i(l(u).value),Mx=H('<button type="button"> </button>'),Lx=H('<div class="list-options"></div>'),Ax=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><label> <!></label> <!></div></div> <!> <!></div> <!></div>');function Zx(r,i){Nt(i,!1);const u=X();let c=x(i,"question",8),f=x(i,"value",24,()=>[]),m=x(i,"onChange",8),p=x(i,"error",8,void 0),v=x(i,"currentMode",8,void 0),g=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0);let b=X(f()||[]),h=X(p()),I=X(void 0),k=!1,N=X(!1);Zr(()=>{setTimeout(()=>{const w=j(l(b));_(h,w),w&&di(c().id,w),k=!0},0)});function j(w){if(c().required&&(!w||w.length===0))return c().errorMessage;const J=c().maxSelections;if(J!==void 0&&w.length>J)return c().errorMessage;const ce=c().minSelections;if(ce!==void 0&&w.length>0&&w.length<ce)return c().errorMessage}function q(w){if(!k)return;_(N,!0);const J=[...l(b)];if(J.includes(w)){const ce=J.filter(le=>le!==w);_(b,ce),m()(ce),_(I,void 0);const oe=j(ce);_(h,oe),Yt(c().id,ce,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,oe)}else{const ce=c().maxSelections;if(ce!==void 0&&J.length>=ce){const oe=c().errorMessage;_(I,oe),Yt(c().id,J,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const oe=[...J,w];_(b,oe),m()(oe),_(I,void 0);const le=j(oe);_(h,le),Yt(c().id,oe,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,le)}}}fe(()=>S(v()),()=>{_(u,v()==="dark")}),fe(()=>(S(f()),l(N)),()=>{f()!==void 0&&!l(N)&&_(b,f())}),fe(()=>S(p()),()=>{p()!==void 0&&_(h,p())}),tn(),Vt();var O=Ax(),K=P(O),ne=P(K),D=P(ne);{var G=w=>{var J=xx(),ce=P(J),oe=P(ce);T(ce),T(J),we(()=>{he(J,1,`question-number ${l(u)?"dark-mode":""}`),Ne(oe,`${g()??""}.`)}),Z(w,J)};ue(D,w=>{g()!==void 0&&w(G)})}var ee=ye(D,2),V=P(ee),ie=P(V),L=ye(ie);{var Ue=w=>{var J=Ix();Z(w,J)};ue(L,w=>{S(c()),U(()=>c().required)&&w(Ue)})}T(V);var Pe=ye(V,2);{var Be=w=>{var J=zx(),ce=P(J,!0);T(J),we(()=>{he(J,1,`description ${l(u)?"dark-mode":""}`),Ne(ce,(S(c()),U(()=>c().description)))}),Z(w,J)};ue(Pe,w=>{S(c()),U(()=>c().description)&&w(Be)})}T(ee),T(ne);var _e=ye(ne,2);{var xe=w=>{var J=Nx(),ce=P(J,!0);T(J),we(()=>{he(J,1,`error ${l(u)?"dark-mode":""}`),Ne(ce,l(h))}),Z(w,J)};ue(_e,w=>{l(h)&&w(xe)})}var re=ye(_e,2);{var F=w=>{var J=jx(),ce=P(J,!0);T(J),we(()=>{he(J,1,`error ${l(u)?"dark-mode":""}`),Ne(ce,l(I))}),Z(w,J)};ue(re,w=>{l(I)&&w(F)})}T(K);var W=ye(K,2);{var C=w=>{var J=Ex();ln(J,5,()=>(S(c()),U(()=>c().options)),yn,(ce,oe)=>{var le=Ox(),de=P(le);nc(de),de.__change=[Tx,q,oe];var Se=ye(de,2),Le=P(Se);{var je=ge=>{Xv(ge,{size:16,color:"#fff"})};ue(Le,ge=>{l(b),l(oe),U(()=>l(b).includes(l(oe).value))&&ge(je)})}T(Se);var Ge=ye(Se,2),ke=P(Ge,!0);T(Ge),T(le),we((ge,De)=>{cr(de,"name",(S(c()),U(()=>c().id))),Fv(de,(l(oe),U(()=>l(oe).value))),Wv(de,ge),he(Se,1,De),he(Ge,1,`checkbox__label mc-multiple-checkbox-label ${l(u)?"dark-mode":""}`),Ne(ke,(l(oe),U(()=>l(oe).label)))},[()=>(l(b),l(oe),U(()=>l(b).includes(l(oe).value))),()=>(l(b),l(oe),U(()=>`checkbox__control ${l(b).includes(l(oe).value)?"selected":""}`))]),Z(ce,le)}),T(J),Z(w,J)},y=w=>{var J=dt(),ce=et(J);{var oe=de=>{var Se=Cx();ln(Se,5,()=>(S(c()),U(()=>c().options)),yn,(Le,je)=>{var Ge=Ux();Ge.__click=[Px,q,je];var ke=P(Ge,!0);T(Ge),we(ge=>{he(Ge,1,ge),Ne(ke,(l(je),U(()=>l(je).label)))},[()=>(l(b),l(je),l(u),U(()=>`list-item mc-multiple-chip-item ${l(b).includes(l(je).value)?"selected":""} ${l(u)?"dark-mode":""}`))]),Z(Le,Ge)}),T(Se),Z(de,Se)},le=de=>{var Se=dt(),Le=et(Se);{var je=Ge=>{var ke=Lx();ln(ke,5,()=>(S(c()),U(()=>c().options)),yn,(ge,De,Re)=>{var Ae=Mx();Ae.__click=[Dx,q,De];var Ee=P(Ae,!0);T(Ae),we(_t=>{he(Ae,1,_t),Ne(Ee,(l(De),U(()=>l(De).label)))},[()=>(l(b),l(De),S(c()),l(u),U(()=>`list-option-button mc-multiple-list-item ${l(b).includes(l(De).value)?"selected":""} ${Re===c().options.length-1?"last-item":""} ${l(u)?"dark-mode":""}`))]),Z(ge,Ae)}),T(ke),Z(Ge,ke)};ue(Le,Ge=>{S(c()),U(()=>c().displayStyle==="list")&&Ge(je)},!0)}Z(de,Se)};ue(ce,de=>{S(c()),U(()=>c().displayStyle==="chip")?de(oe):de(le,!1)},!0)}Z(w,J)};ue(W,w=>{S(c()),U(()=>c().displayStyle==="checkbox"||!c().displayStyle)?w(C):w(y,!1)})}T(O),we(()=>{he(O,1,`container ${l(u)?"dark-mode":""}`),he(V,1,`label ${l(u)?"dark-mode":""}`),Ne(ie,`${S(c()),U(()=>c().title)??""} `)}),Z(r,O),jt()}Bn(["change","click"]);function qx(r,i,u,c,f,m,p,v){l(i)||_(i,!0),_(u,!1),_(c,void 0),f()(void 0);const g=m(void 0);_(p,g),Yt(v().id,void 0,s.QuestionTypes.ANNOTATION,g)}var Rx=H("<div><span> </span></div>"),Fx=H('<span class="required">*</span>'),Wx=H("<div> </div>"),Qx=H("<div> </div>"),Gx=H('<div><div class="annotation-content"><!> <span class="annotation-title"> </span></div></div>'),Jx=H('<div><div class="annotation-content"><!> <span class="annotation-title"> </span></div> <button type="button" aria-label="Remove annotation"><!></button></div>'),Vx=H('<div><div class="question-header"><div class="question-title-row"><!> <div class="title-and-description"><div> <!></div> <!></div></div> <!></div> <div class="annotation-upload-container"><!> <!></div></div>');function Yx(r,i){Nt(i,!1);const u=X();let c=x(i,"question",8),f=x(i,"value",8,void 0),m=x(i,"onChange",8),p=x(i,"error",8,void 0),v=x(i,"currentMode",8,void 0),g=x(i,"questionNumber",8,void 0);x(i,"themeSettings",8,void 0),x(i,"currentLanguage",8,void 0);let b=X(!1),h=X(void 0),I=X(p()),k=X(!1);Zr(()=>{const C=eo(Tn).questions.find(y=>y.questionId===c().id);if(C?.answer&&"annotation"in C.answer){const y=C.answer.annotation;console.log("Found annotation data in store on mount for question:",c().id,y),_(h,y),_(b,!0),typeof y=="object"&&y!==null&&m()(y)}setTimeout(()=>{const y=l(h),w=N(y);_(I,w),w&&di(c().id,w)},0)});function N(C){let y="";if(typeof C=="string"?y=C:C&&typeof C=="object"&&(y="has_annotation_data"),c().required&&(!y||y.trim()===""))return c().errorMessage??"This field is required"}fe(()=>S(v()),()=>{_(u,v()==="dark")}),fe(()=>(S(f()),S(m())),()=>{if(f()!==void 0){if(console.log("props.value changed:",f()),typeof f()=="string"){const C=f().trim()!=="";_(b,C),_(h,f())}else if(typeof f()=="object"&&f()!==null&&"annotation"in f()){const C=f().annotation;console.log("Extracted annotation from props.value:",C),_(b,!0),_(h,C),m()(C)}}else _(h,void 0),_(b,!1)}),fe(()=>S(p()),()=>{p()!==void 0&&_(I,p())}),tn(),Vt();var j=Vx(),q=P(j),O=P(q),K=P(O);{var ne=C=>{var y=Rx(),w=P(y),J=P(w);T(w),T(y),we(()=>{he(y,1,`question-number ${l(u)?"dark-mode":""}`),Ne(J,`${g()??""}.`)}),Z(C,y)};ue(K,C=>{g()!==void 0&&C(ne)})}var D=ye(K,2),G=P(D),ee=P(G),V=ye(ee);{var ie=C=>{var y=Fx();Z(C,y)};ue(V,C=>{S(c()),U(()=>c().required)&&C(ie)})}T(G);var L=ye(G,2);{var Ue=C=>{var y=Wx(),w=P(y,!0);T(y),we(()=>{he(y,1,`description ${l(u)?"dark-mode":""}`),Ne(w,(S(c()),U(()=>c().description)))}),Z(C,y)};ue(L,C=>{S(c()),U(()=>c().description)&&C(Ue)})}T(D),T(O);var Pe=ye(O,2);{var Be=C=>{var y=Qx(),w=P(y,!0);T(y),we(()=>{he(y,1,`error ${l(u)?"dark-mode":""}`),Ne(w,l(I))}),Z(C,y)};ue(Pe,C=>{l(I)&&l(k)&&C(Be)})}T(q);var _e=ye(q,2),xe=P(_e);{var re=C=>{var y=Gx(),w=P(y),J=P(w);th(J,{size:20,class:"annotation-icon"});var ce=ye(J,2),oe=P(ce,!0);T(ce),T(w),T(y),we(()=>{he(y,1,`annotation-box no-annotation ${l(u)?"dark-mode":""}`),Ne(oe,(S(c()),U(()=>c().noAnnotationText??"No Annotation")))}),Z(C,y)};ue(xe,C=>{l(b)||C(re)})}var F=ye(xe,2);{var W=C=>{var y=Jx(),w=P(y),J=P(w);th(J,{size:20,class:"annotation-icon"});var ce=ye(J,2),oe=P(ce,!0);T(ce),T(w);var le=ye(w,2);le.__click=[qx,k,b,h,m,N,I,c];var de=P(le);rh(de,{size:16}),T(le),T(y),we(()=>{he(y,1,`annotation-box has-annotation ${l(u)?"dark-mode":""}`),Ne(oe,(S(c()),U(()=>c().annotationText??"Annotation"))),he(le,1,`annotation-close-btn ${l(u)?"dark-mode":""}`)}),Z(C,y)};ue(F,C=>{l(b)&&C(W)})}T(_e),T(j),we(()=>{he(j,1,`container ${l(u)?"dark-mode":""}`),he(G,1,`label ${l(u)?"dark-mode":""}`),Ne(ee,`${S(c()),U(()=>c().title)??""} `)}),Z(r,j),jt()}Bn(["click"]);var Bx=H("<p> </p>"),Kx=H('<div><div class="welcome-content"><h2> </h2> <!></div></div>');function Hx(r,i){Nt(i,!1);const u=X(),c=X();let f=x(i,"welcomeScreenProperties",8);x(i,"onStart",8,void 0);let m=x(i,"currentMode",8,void 0),p=x(i,"currentLanguage",8,void 0);x(i,"themeSettings",8,void 0),fe(()=>S(m()),()=>{_(u,m()==="dark")}),fe(()=>(S(f()),S(p())),()=>{_(c,f().translations&&p()&&f().translations[p()]?f().translations[p()]:f().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),tn(),Vt();var v=Kx(),g=P(v),b=P(g),h=P(b,!0);T(b);var I=ye(b,2);{var k=N=>{var j=Bx(),q=P(j,!0);T(j),we(()=>{he(j,1,`welcome-description ${l(u)?"dark-mode":""}`),Ne(q,(l(c),U(()=>l(c).description)))}),Z(N,j)};ue(I,N=>{l(c),U(()=>l(c).description)&&N(k)})}T(g),T(v),we(()=>{he(v,1,`container welcome-container ${l(u)?"dark-mode":""}`),he(b,1,`welcome-title ${l(u)?"dark-mode":""}`),Ne(h,(l(c),U(()=>l(c).title)))}),Z(r,v),jt()}var Xx=H("<p> </p>"),eI=H("<div><div><h2> </h2> <!></div></div>");function tI(r,i){Nt(i,!1);const u=X(),c=X(),f=X(),m=X(),p=X();let v=x(i,"endScreenProperties",8),g=x(i,"onExit",8,void 0),b=x(i,"currentMode",8,void 0),h=x(i,"currentLanguage",8,void 0);x(i,"themeSettings",8,void 0);let I=x(i,"isScreenVisible",8,void 0);console.log("isScreenVisible in end-screen :",I()===!0);let k=X(null);fa(()=>{l(k)!==null&&(clearTimeout(l(k)),console.log("Cleared auto-dismiss timer on destroy"))}),fe(()=>S(b()),()=>{_(u,b()==="dark")}),fe(()=>(S(v()),S(h())),()=>{_(c,v().translations&&h()&&v().translations[h()]?v().translations[h()]:v().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),fe(()=>S(I()),()=>{_(f,I()===!0)}),fe(()=>S(v()),()=>{_(m,v().endFields?.dismissBehavior)}),fe(()=>S(v()),()=>{_(p,v().endFields?.fadeDuration||0)}),fe(()=>(l(k),l(f),l(m),S(g()),l(p)),()=>{l(k)!==null&&(clearTimeout(l(k)),_(k,null),console.log("Cleared auto-dismiss timer")),l(f)&&l(m)==="fade"&&typeof g()=="function"&&l(p)>0?(console.log(`Setting up auto-dismiss timer for ${l(p)} seconds as user has reached end-screen with ${l(m)} behavior`),_(k,setTimeout(()=>{console.log("Auto-dismissing end screen"),g()?.()},l(p)*1e3))):console.log("Not setting up auto-dismiss timer - conditions not met:",{isScreenVisible:l(f),dismissBehavior:l(m),hasOnExit:typeof g()=="function",fadeDuration:l(p)})}),tn(),Vt();var N=eI(),j=P(N),q=P(j),O=P(q,!0);T(q);var K=ye(q,2);{var ne=D=>{var G=Xx(),ee=P(G,!0);T(G),we(()=>{he(G,1,`end-description ${l(u)?"dark-mode":""}`),Ne(ee,(l(c),U(()=>l(c).message)))}),Z(D,G)};ue(K,D=>{l(c),U(()=>l(c).message)&&D(ne)})}T(j),T(N),we(()=>{he(N,1,`container end-container ${l(u)?"dark-mode":""}`),he(j,1,`end-content ${l(u)?"dark-mode":""}`),he(q,1,`end-title ${l(u)?"dark-mode":""}`),Ne(O,(l(c),U(()=>l(c).title)))}),Z(r,N),jt()}var nI=H("<h2> </h2>"),rI=H('<div class="question-wrapper"><div class="question-container"><!></div></div>'),iI=H("<!> <!>",1),oI=H('<div id="section-container"><!> <!> <!></div>');function aI(r,i){Nt(i,!1);const u=X(),c=X();let f=x(i,"questions",8),m=x(i,"sections",8),p=x(i,"formData",8),v=x(i,"errors",8),g=x(i,"onChange",8),b=x(i,"currentMode",8,void 0),h=x(i,"welcomeScreenProperties",8),I=x(i,"otherConfigurationProperties",8),k=x(i,"currentSectionIndex",8),N=x(i,"endScreenProperties",8,void 0),j=x(i,"currentLanguage",8,void 0),q=x(i,"themeSettings",8),O=x(i,"onClose",8,void 0),K=x(i,"isScreenVisible",8,void 0),ne=x(i,"apiKey",8,void 0),D=x(i,"hostUrl",8,void 0),G=x(i,"identifier",8,void 0),ee=x(i,"feedbackConfigurationId",8,void 0);function V(F){return l(u).get(F)??-1}function ie(F){switch(F){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return[];case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return-1;case s.QuestionTypes.SHORT_ANSWER:case s.QuestionTypes.LONG_TEXT:case s.QuestionTypes.SINGLE_CHOICE:return"";default:return}}function L(F){return Array.isArray(F)?F:typeof F=="object"&&F!==null?Object.values(F).filter(W=>W!==void 0):typeof F=="string"?[F]:[]}function Ue(F){return typeof F=="number"?F:typeof F=="string"?Number(F):0}function Pe(F){return typeof F=="string"?F:String(typeof F=="object"&&F!==null?Object.values(F)[0]||"":F||"")}function Be(F,W){if(F==null){const C=ie(W);return C!==void 0?C:F}switch(W){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return L(F);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return Ue(F);case s.QuestionTypes.SINGLE_CHOICE:return Pe(F);default:return F}}fe(()=>(S(f()),ih),()=>{f()&&Object.keys(f()).length>0&&ih(f())}),fe(()=>S(m()),()=>{_(u,(()=>{const F=new Map;let W=0;return m().forEach(C=>{C.id!=="welcome_screen"&&C.id!=="thankyou_screen"&&C.questionIds.forEach(y=>{F.set(y,W++)})}),F})())}),fe(()=>(S(m()),S(k())),()=>{_(c,m()[k()])}),fe(()=>(S(k()),l(c)),()=>{console.log("FormRenderer: currentSectionIndex =",k(),"section =",l(c)?.id)}),tn(),Vt();var _e=dt(),xe=et(_e);{var re=F=>{var W=dt(),C=et(W);ln(C,1,()=>(S(m()),S(k()),U(()=>[m()[k()]])),y=>y.id,(y,w)=>{var J=oI(),ce=P(J);{var oe=je=>{Hx(je,{get welcomeScreenProperties(){return h()},get currentMode(){return b()},get currentLanguage(){return j()},get themeSettings(){return q()}})};ue(ce,je=>{l(w),U(()=>l(w).id==="welcome_screen")&&je(oe)})}var le=ye(ce,2);{var de=je=>{{let Ge=ft(()=>N()?N():{});tI(je,{get endScreenProperties(){return l(Ge)},get onExit(){return O()},get currentMode(){return b()},get currentLanguage(){return j()},get themeSettings(){return q()},get isScreenVisible(){return K()}})}};ue(le,je=>{l(w),U(()=>l(w).id==="thankyou_screen")&&je(de)})}var Se=ye(le,2);{var Le=je=>{var Ge=iI(),ke=et(Ge);{var ge=Re=>{var Ae=nI(),Ee=P(Ae,!0);T(Ae),we(()=>{he(Ae,1,`section-title ${b()==="dark"?"dark-mode":""}`),Ne(Ee,(l(w),U(()=>l(w).title)))}),Z(Re,Ae)};ue(ke,Re=>{S(I()),U(()=>I().isEnabled&&I().otherFields.pageTitle)&&Re(ge)})}var De=ye(ke,2);ln(De,1,()=>(l(w),U(()=>l(w).questionIds)),yn,(Re,Ae)=>{const Ee=ft(()=>(S(oh),l(Ae),U(()=>oh(l(Ae)))));var _t=dt(),Bt=et(_t);{var Kt=It=>{const Ht=ft(()=>(S(I()),U(()=>I()?.isEnabled&&I().otherFields.questionNumber))),$t=ft(()=>(S(l(Ee)),U(()=>V(l(Ee).id)))),bt=ft(()=>(S(l(Ee)),S(p()),S(g()),S(v()),S(b()),S(j()),S(q()),S(l(Ht)),S(l($t)),U(()=>({question:l(Ee),value:Be(p()[l(Ee).id],l(Ee).type),onChange:se=>g()(l(Ee).id,se,l(Ee).type),error:v()[l(Ee).id],currentMode:b(),currentLanguage:j(),themeSettings:q(),questionNumber:l(Ht)?l($t)+1:void 0}))));var Xt=rI(),On=P(Xt),dn=P(On);{var Fr=se=>{y0(se,Ft(()=>l(bt),{get question(){return l(Ee)}}))},R=se=>{var M=dt(),Q=et(M);{var Ie=it=>{E0(it,Ft(()=>l(bt),{get question(){return l(Ee)}}))},Me=it=>{var en=dt(),En=et(en);{var tr=$n=>{TS($n,Ft(()=>l(bt),{get question(){return l(Ee)},get apiKey(){return ne()},get hostUrl(){return D()},get identifier(){return G()},get feedbackConfigurationId(){return ee()},get otherConfigurationProperties(){return I()}}))},Wr=$n=>{var gi=dt(),oo=et(gi);{var ao=vt=>{BS(vt,Ft(()=>l(bt),{get question(){return l(Ee)},get apiKey(){return ne()},get hostUrl(){return D()},get identifier(){return G()},get feedbackConfigurationId(){return ee()},get otherConfigurationProperties(){return I()}}))},Zt=vt=>{var Ot=dt(),so=et(Ot);{var fn=Zn=>{mx(Zn,Ft(()=>l(bt),{get question(){return l(Ee)}}))},uo=Zn=>{var Uh=dt(),ZI=et(Uh);{var qI=vi=>{Sx(vi,Ft(()=>l(bt),{get question(){return l(Ee)}}))},RI=vi=>{var Ch=dt(),FI=et(Ch);{var WI=hi=>{Zx(hi,Ft(()=>l(bt),{get question(){return l(Ee)}}))},QI=hi=>{var Dh=dt(),GI=et(Dh);{var JI=_c=>{Yx(_c,Ft(()=>l(bt),{get question(){return l(Ee)}}))};ue(GI,_c=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.ANNOTATION)&&_c(JI)},!0)}Z(hi,Dh)};ue(FI,hi=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?hi(WI):hi(QI,!1)},!0)}Z(vi,Ch)};ue(ZI,vi=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.RATING)?vi(qI):vi(RI,!1)},!0)}Z(Zn,Uh)};ue(so,Zn=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.SINGLE_CHOICE)?Zn(fn):Zn(uo,!1)},!0)}Z(vt,Ot)};ue(oo,vt=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.SHORT_ANSWER)?vt(ao):vt(Zt,!1)},!0)}Z($n,gi)};ue(En,$n=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.LONG_TEXT)?$n(tr):$n(Wr,!1)},!0)}Z(it,en)};ue(Q,it=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.NESTED_SELECTION)?it(Ie):it(Me,!1)},!0)}Z(se,M)};ue(dn,se=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.NPS)?se(Fr):se(R,!1)})}T(On),T(Xt),Z(It,Xt)};ue(Bt,It=>{l(Ee)&&It(Kt)})}Z(Re,_t)}),Z(je,Ge)};ue(Se,je=>{l(w),U(()=>l(w).id!=="welcome_screen"&&l(w).id!=="thankyou_screen")&&je(Le)})}T(J),Z(y,J)}),Z(F,W)};ue(xe,F=>{S(k()),S(m()),U(()=>k()<m().length&&m().length>0)&&F(re)})}Z(r,_e),jt()}var sI=/\s+/g,bc=r=>typeof r!="string"||!r?r:r.replace(sI," ").trim(),_a=(...r)=>{let i=[],u=c=>{if(!c&&c!==0&&c!==0n)return;if(Array.isArray(c)){for(let m=0,p=c.length;m<p;m++)u(c[m]);return}let f=typeof c;if(f==="string"||f==="number"||f==="bigint"){if(f==="number"&&c!==c)return;i.push(String(c))}else if(f==="object"){let m=Object.keys(c);for(let p=0,v=m.length;p<v;p++){let g=m[p];c[g]&&i.push(g)}}};for(let c=0,f=r.length;c<f;c++){let m=r[c];m!=null&&u(m)}return i.length>0?bc(i.join(" ")):void 0},Ih=r=>r===!1?"false":r===!0?"true":r===0?"0":r,rn=r=>{if(!r||typeof r!="object")return!0;for(let i in r)return!1;return!0},uI=(r,i)=>{if(r===i)return!0;if(!r||!i)return!1;let u=Object.keys(r),c=Object.keys(i);if(u.length!==c.length)return!1;for(let f=0;f<u.length;f++){let m=u[f];if(!c.includes(m)||r[m]!==i[m])return!1}return!0},zh=(r,i)=>{for(let u in i)if(Object.prototype.hasOwnProperty.call(i,u)){let c=i[u];u in r?r[u]=_a(r[u],c):r[u]=c}return r},Nh=(r,i)=>{for(let u=0;u<r.length;u++){let c=r[u];Array.isArray(c)?Nh(c,i):c&&i.push(c)}},jh=(...r)=>{let i=[];Nh(r,i);let u=[];for(let c=0;c<i.length;c++)i[c]&&u.push(i[c]);return u},yc=(r,i)=>{let u={};for(let c in r){let f=r[c];if(c in i){let m=i[c];Array.isArray(f)||Array.isArray(m)?u[c]=jh(m,f):typeof f=="object"&&typeof m=="object"&&f&&m?u[c]=yc(f,m):u[c]=m+" "+f}else u[c]=f}for(let c in i)c in r||(u[c]=i[c]);return u},cI={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function lI(){let r=null,i={},u=!1;return{get cachedTwMerge(){return r},set cachedTwMerge(c){r=c},get cachedTwMergeConfig(){return i},set cachedTwMergeConfig(c){i=c},get didTwMergeConfigChange(){return u},set didTwMergeConfigChange(c){u=c},reset(){r=null,i={},u=!1}}}var er=lI(),dI=r=>{let i=(u,c)=>{let{extend:f=null,slots:m={},variants:p={},compoundVariants:v=[],compoundSlots:g=[],defaultVariants:b={}}=u,h={...cI,...c},I=f?.base?_a(f.base,u?.base):u?.base,k=f?.variants&&!rn(f.variants)?yc(p,f.variants):p,N=f?.defaultVariants&&!rn(f.defaultVariants)?{...f.defaultVariants,...b}:b;!rn(h.twMergeConfig)&&!uI(h.twMergeConfig,er.cachedTwMergeConfig)&&(er.didTwMergeConfigChange=!0,er.cachedTwMergeConfig=h.twMergeConfig);let j=rn(f?.slots),q=rn(m)?{}:{base:_a(u?.base,j&&f?.base),...m},O=j?q:zh({...f?.slots},rn(q)?{base:u?.base}:q),K=rn(f?.compoundVariants)?v:jh(f?.compoundVariants,v),ne=G=>{if(rn(k)&&rn(m)&&j)return r(I,G?.class,G?.className)(h);if(K&&!Array.isArray(K))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof K}`);if(g&&!Array.isArray(g))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof g}`);let ee=(re,F,W=[],C)=>{let y=W;if(typeof F=="string"){let w=bc(F).split(" ");for(let J=0;J<w.length;J++)y.push(`${re}:${w[J]}`)}else if(Array.isArray(F))for(let w=0;w<F.length;w++)y.push(`${re}:${F[w]}`);else if(typeof F=="object"&&typeof C=="string"&&C in F){let w=F[C];if(w&&typeof w=="string"){let J=bc(w).split(" "),ce=[];for(let oe=0;oe<J.length;oe++)ce.push(`${re}:${J[oe]}`);y[C]=y[C]?y[C].concat(ce):ce}else if(Array.isArray(w)&&w.length>0){let J=[];for(let ce=0;ce<w.length;ce++)J.push(`${re}:${w[ce]}`);y[C]=J}}return y},V=(re,F=k,W=null,C=null)=>{let y=F[re];if(!y||rn(y))return null;let w=C?.[re]??G?.[re];if(w===null)return null;let J=Ih(w),ce=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||h.responsiveVariants===!0,oe=N?.[re],le=[];if(typeof J=="object"&&ce)for(let[Le,je]of Object.entries(J)){let Ge=y[je];if(Le==="initial"){oe=je;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(Le)||(le=ee(Le,Ge,le,W))}let de=J!=null&&typeof J!="object"?J:Ih(oe),Se=y[de||"false"];return typeof le=="object"&&typeof W=="string"&&le[W]?zh(le,Se):le.length>0?(le.push(Se),W==="base"?le.join(" "):le):Se},ie=()=>{if(!k)return null;let re=Object.keys(k),F=[];for(let W=0;W<re.length;W++){let C=V(re[W],k);C&&F.push(C)}return F},L=(re,F)=>{if(!k||typeof k!="object")return null;let W=[];for(let C in k){let y=V(C,k,re,F),w=re==="base"&&typeof y=="string"?y:y&&y[re];w&&W.push(w)}return W},Ue={};for(let re in G){let F=G[re];F!==void 0&&(Ue[re]=F)}let Pe=(re,F)=>{let W=typeof G?.[re]=="object"?{[re]:G[re]?.initial}:{};return{...N,...Ue,...W,...F}},Be=(re=[],F)=>{let W=[],C=re.length;for(let y=0;y<C;y++){let{class:w,className:J,...ce}=re[y],oe=!0,le=Pe(null,F);for(let de in ce){let Se=ce[de],Le=le[de];if(Array.isArray(Se)){if(!Se.includes(Le)){oe=!1;break}}else{if((Se==null||Se===!1)&&(Le==null||Le===!1))continue;if(Le!==Se){oe=!1;break}}}oe&&(w&&W.push(w),J&&W.push(J))}return W},_e=re=>{let F=Be(K,re);if(!Array.isArray(F))return F;let W={},C=r;for(let y=0;y<F.length;y++){let w=F[y];if(typeof w=="string")W.base=C(W.base,w)(h);else if(typeof w=="object")for(let J in w)W[J]=C(W[J],w[J])(h)}return W},xe=re=>{if(g.length<1)return null;let F={},W=Pe(null,re);for(let C=0;C<g.length;C++){let{slots:y=[],class:w,className:J,...ce}=g[C];if(!rn(ce)){let oe=!0;for(let le in ce){let de=W[le],Se=ce[le];if(de===void 0||(Array.isArray(Se)?!Se.includes(de):Se!==de)){oe=!1;break}}if(!oe)continue}for(let oe=0;oe<y.length;oe++){let le=y[oe];F[le]||(F[le]=[]),F[le].push([w,J])}}return F};if(!rn(m)||!j){let re={};if(typeof O=="object"&&!rn(O)){let F=r;for(let W in O)re[W]=C=>{let y=_e(C),w=xe(C);return F(O[W],L(W,C),y?y[W]:void 0,w?w[W]:void 0,C?.class,C?.className)(h)}}return re}return r(I,ie(),Be(K),G?.class,G?.className)(h)},D=()=>{if(!(!k||typeof k!="object"))return Object.keys(k)};return ne.variantKeys=D(),ne.extend=f,ne.base=I,ne.slots=O,ne.variants=k,ne.defaultVariants=N,ne.compoundSlots=g,ne.compoundVariants=K,ne};return{tv:i,createTV:u=>(c,f)=>i(c,f?yc(u,f):u)}},fI=r=>rn(r)?_h:dS({...r,extend:{theme:r.theme,classGroups:r.classGroups,conflictingClassGroupModifiers:r.conflictingClassGroupModifiers,conflictingClassGroups:r.conflictingClassGroups,...r.extend}}),mI=(...r)=>i=>{let u=_a(r);return!u||!i.twMerge?u:((!er.cachedTwMerge||er.didTwMergeConfigChange)&&(er.didTwMergeConfigChange=!1,er.cachedTwMerge=fI(er.cachedTwMergeConfig)),er.cachedTwMerge(u)||void 0)},{tv:pI}=dI(mI);const Th=pI({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",outline:"bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var gI=H("<a><!></a>"),vI=H("<button><!></button>");function io(r,i){Nt(i,!0);let u=x(i,"variant",3,"default"),c=x(i,"size",3,"default"),f=x(i,"ref",15,null),m=x(i,"href",3,void 0),p=x(i,"type",3,"button"),v=sc(i,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var g=dt(),b=et(g);{var h=k=>{var N=gI();qr(N,q=>({"data-slot":"button",class:q,href:i.disabled?void 0:m(),"aria-disabled":i.disabled,role:i.disabled?"link":void 0,tabindex:i.disabled?-1:void 0,...v}),[()=>ro(Th({variant:u(),size:c()}),i.class)]);var j=P(N);Uv(j,()=>i.children??Ut),T(N),ci(N,q=>f(q),()=>f()),Z(k,N)},I=k=>{var N=vI();qr(N,q=>({"data-slot":"button",class:q,type:p(),disabled:i.disabled,onclick:i.onclick,...v}),[()=>ro(Th({variant:u(),size:c()}),i.class)]);var j=P(N);Uv(j,()=>i.children??Ut),T(N),ci(N,q=>f(q),()=>f()),Z(k,N)};ue(b,k=>{m()?k(h):k(I,!1)})}Z(r,g),jt()}var hI=H('<span class="button-text svelte-a2vhnq"> </span>'),bI=H('<div class="centered-button-container svelte-a2vhnq"><!></div>'),yI=H('<span class="button-text svelte-a2vhnq"> </span>'),$I=H('<div class="centered-button-container svelte-a2vhnq"><!></div>'),_I=H('<span class="button-text svelte-a2vhnq"> </span>'),kI=H('<div class="button-loading-container svelte-a2vhnq"><div class="button-spinner svelte-a2vhnq"></div></div>'),wI=H('<span class="button-text svelte-a2vhnq"> </span>'),SI=H("<div><!></div>"),xI=H('<span class="button-text svelte-a2vhnq"> </span>'),II=H("<!> <!>",1),zI=H('<div class="navigation-buttons navigation-buttons-container svelte-a2vhnq"><!></div>');function NI(r,i){Nt(i,!1);const u=X(),c=X(),f=X(),m=X(),p=X(),v=X();let g=x(i,"isWelcomeScreen",8),b=x(i,"isThankYouScreen",8),h=x(i,"isFirstSection",8),I=x(i,"isFirstPageAfterWelcome",8,!1),k=x(i,"isLastSection",8),N=x(i,"welcomeScreenProperties",8),j=x(i,"endScreenProperties",8,void 0),q=x(i,"otherConfigurationProperties",8),O=x(i,"currentMode",8),K=x(i,"currentLanguage",8),ne=x(i,"handlePrevious",8),D=x(i,"handleNext",8),G=x(i,"handleSubmit",8),ee=x(i,"onClose",8,void 0);x(i,"themeSettings",8);let V=x(i,"nextButtonDisabled",8,!1),ie=x(i,"submitButtonDisabled",8,!1),L=x(i,"isSinglePageSurvey",8,!1),Ue=X(!1);const Pe=()=>{console.log("Exit button clicked"),ee()&&ee()()},Be=()=>{if(!b()&&!j()?.isEnabled){_(Ue,!0),window.setTimeout(()=>{_(Ue,!1),ee()&&ee()()},3e3);try{G()()}catch(y){console.error("Error during form submission:",y)}}else G()()},_e=()=>{console.log("handlePreviousClick called"),s0(),ne()()},xe=()=>{console.log("handleNextClick called"),D()()};fe(()=>(S(q()),S(K())),()=>{_(u,(()=>{const y={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return q().isEnabled?q().translations&&K()&&q().translations[K()]?q().translations[K()]:q().otherFields??y:y})())}),fe(()=>(S(N()),S(K())),()=>{_(c,N().translations&&K()&&N().translations[K()]?N().translations[K()]:N().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),fe(()=>(S(j()),S(K())),()=>{_(f,j()?.translations&&K()&&j().translations[K()]?j().translations[K()]:j()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),fe(()=>S(O()),()=>{_(m,O()==="dark")}),fe(()=>S(V()),()=>{_(p,uc()||V())}),fe(()=>S(ie()),()=>{_(v,uc()||ie())}),fe(()=>(S(V()),S(ie()),l(p),l(v)),()=>{console.log("NavigationButtons disabled state:",{nextButtonDisabled:V(),submitButtonDisabled:ie(),hasValidationErrors:uc(),isNextDisabled:l(p),isSubmitDisabled:l(v)})}),fe(()=>(S(g()),S(b()),S(k())),()=>{console.log("NavigationButtons: isWelcomeScreen =",g(),"isThankYouScreen =",b(),"isLastSection =",k())}),tn(),Vt();var re=zI(),F=P(re);{var W=y=>{var w=bI(),J=P(w);io(J,{onclick:xe,class:"custom-button nav-button-primary",children:(ce,oe)=>{var le=hI(),de=P(le,!0);T(le),we(()=>Ne(de,(l(c),U(()=>l(c).buttonLabel)))),Z(ce,le)},$$slots:{default:!0}}),T(w),Z(y,w)},C=y=>{var w=dt(),J=et(w);{var ce=le=>{var de=$I(),Se=P(de);io(Se,{onclick:()=>Pe(),class:"custom-button nav-button-primary",children:(Le,je)=>{var Ge=yI(),ke=P(Ge,!0);T(Ge),we(()=>Ne(ke,(l(f),U(()=>l(f).buttonLabel)))),Z(Le,Ge)},$$slots:{default:!0}}),T(de),Z(le,de)},oe=le=>{var de=II(),Se=et(de);{var Le=ge=>{{let De=ft(()=>h()||I()),Re=ft(()=>`custom-button nav-button-secondary ${l(m)?"dark-mode":""}`);io(ge,{onclick:()=>_e(),get disabled(){return l(De)},get class(){return l(Re)},children:(Ae,Ee)=>{var _t=_I(),Bt=P(_t,!0);T(_t),we(()=>Ne(Bt,(l(u),U(()=>l(u).previousButtonLabel)))),Z(Ae,_t)},$$slots:{default:!0}})}};ue(Se,ge=>{L()||ge(Le)})}var je=ye(Se,2);{var Ge=ge=>{var De=SI(),Re=P(De);{let Ae=ft(()=>l(v)||l(Ue));io(Re,{onclick:()=>Be(),get disabled(){return l(Ae)},class:"custom-button nav-button-primary",children:(Ee,_t)=>{var Bt=dt(),Kt=et(Bt);{var It=$t=>{var bt=kI();Z($t,bt)},Ht=$t=>{var bt=wI(),Xt=P(bt,!0);T(bt),we(()=>Ne(Xt,(l(u),U(()=>l(u).submitButtonLabel)))),Z($t,bt)};ue(Kt,$t=>{l(Ue)?$t(It):$t(Ht,!1)})}Z(Ee,Bt)},$$slots:{default:!0}})}T(De),we(()=>he(De,1,Hu(L()?"centered-button-container":"right-aligned-button-container"),"svelte-a2vhnq")),Z(ge,De)},ke=ge=>{var De=dt(),Re=et(De);{var Ae=Ee=>{io(Ee,{onclick:xe,get disabled(){return l(p)},class:"custom-button nav-button-primary",children:(_t,Bt)=>{var Kt=xI(),It=P(Kt,!0);T(Kt),we(()=>Ne(It,(l(u),U(()=>l(u).nextButtonLabel)))),Z(_t,Kt)},$$slots:{default:!0}})};ue(Re,Ee=>{L()||Ee(Ae)},!0)}Z(ge,De)};ue(je,ge=>{k()?ge(Ge):ge(ke,!1)})}Z(le,de)};ue(J,le=>{b()?le(ce):le(oe,!1)},!0)}Z(y,w)};ue(F,y=>{g()?y(W):y(C,!1)})}T(re),Z(r,re),jt()}var jI=H('<div class="progress-container progress-container-styles"><div class="progress-bar progress-bar-styles"></div></div>');function TI(r,i){let u=x(i,"percentage",8);var c=jI(),f=P(c);T(c),we(()=>ui(f,`--progress-width: ${u()??""}%;`)),Z(r,c)}var OI=H('<div class="branding-container"><img alt="encatch Logo" class="branding-logo h-5 w-5"/> <p>Powered by encatch</p></div>'),EI=H('<div id="encatch-form-id"><!> <div class="form-content-container custom-scrollbar"><!></div> <!> <!></div>');function $c(r,i){Nt(i,!1);const u=()=>Yw(Tn,"$formResponses",c),[c,f]=Bw(),m=X(),p=X(),v=X(),g=X(),b=X(),h=X(),I=X(),k=X(),N=X();let j=x(i,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),q=x(i,"currentMode",12,"light"),O=x(i,"currentLanguage",28,()=>({value:"en",label:"en"})),K=x(i,"questions",28,()=>({})),ne=x(i,"questionLanguages",28,()=>[]),D=x(i,"otherConfigurationProperties",12,null),G=x(i,"welcomeScreenProperties",12,null),ee=x(i,"endScreenProperties",12,null),V=x(i,"translations",28,()=>({})),ie=x(i,"sections",24,()=>[]),L=x(i,"themeSettings",12,null),Ue=x(i,"onClose",12,void 0),Pe=x(i,"onSectionChange",8,void 0),Be=x(i,"apiKey",8,void 0),_e=x(i,"hostUrl",8,void 0),xe=x(i,"feedbackConfigId",8,void 0),re=x(i,"identifier",8,void 0),F=X(0),W=X(0),C=X(!1),y=X({}),w=X((()=>{let R=[...ie()||[]];const se=G()?.isEnabled??!0,M=ee()?.isEnabled??!0;return se&&R.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),M&&R.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),R})()),J=X(!1);const ce=()=>{const R=window;return typeof window<"u"&&R.encatchAnnotate!==void 0&&typeof R.encatchAnnotate=="object"&&R.encatchAnnotate!==null&&typeof R.encatchAnnotate.getAnnotation=="function"},oe=()=>{if(ce()){const R=window;console.log("Encatch Annotate plugin is available",ce());const se=R.encatchAnnotate?.getAnnotation?.();console.log("Annotation Data from App.tsx:",se),se?(console.log("Found annotation data in App.tsx:",se),Object.entries(K()).forEach(([M,Q])=>{Q.type===s.QuestionTypes.ANNOTATION&&(console.log(`Updating annotation question ${M} with data:`,se),Yt(M,se,s.QuestionTypes.ANNOTATION))})):(console.log("No annotation data found in App.tsx"),console.log("Annotation Data:",se))}},le=(R,se,M,Q,Ie="")=>R.map(Me=>{let it=Ie?`${Ie}.children.${Me.id}.label`:`option.${Me.id}.label`,en=Q[se]?.[M]?.[it],En={...Me};return en&&(En.label=en),Me.children&&Me.children.length>0&&(En.children=le(Me.children,se,M,Q,Ie?`${Ie}.children.${Me.id}`:`option.${Me.id}`)),En}),de=R=>{const se=V()||{},M=Object.fromEntries(Object.entries(K()).map(([Q,Ie])=>{const Me=se[Q]?.[R]||{};let it={...Ie};return Me.title&&(it.title=Me.title),Me.description&&(it.description=Me.description),Me.errorMessage&&(it.errorMessage=Me.errorMessage),Me.placeholder&&(it.placeholder=Me.placeholder),Me.minLabel&&(it.minLabel=Me.minLabel),Me.maxLabel&&(it.maxLabel=Me.maxLabel),Me.annotationText&&(it.annotationText=Me.annotationText),Me.noAnnotationText&&(it.noAnnotationText=Me.noAnnotationText),Ie.options&&Array.isArray(Ie.options)&&(it.options=le(Ie.options,Q,R,se)),[Q,it]}));K(M)},Se=()=>l(w).reduce((R,se)=>R+se.questionIds.length,0),Le=()=>u().questions.filter(R=>{try{if(R.type===s.QuestionTypes.SHORT_ANSWER){if(!R.answer||typeof R.answer!="object")return!1;const se=R.answer.shortAnswer;if(se==null||typeof se=="string"&&se.trim()==="")return!1}if(R.type===s.QuestionTypes.LONG_TEXT){if(!R.answer||typeof R.answer!="object")return!1;const se=R.answer.longText;if(se==null||typeof se=="string"&&se.trim()==="")return!1}return!0}catch(se){return console.error("Error checking answer:",R.questionId,se),!0}}).length,je=()=>(console.log("answeredQuestions",Le(),"totalQuestions",Se()),Le()/Se()*100),Ge=(R,se,M)=>{let Q=se;Array.isArray(se)&&(Q=[...se]),Yt(R,Q,M),_(y,{...l(y),[R]:""})},ke=()=>{if(l(W)>0){const R=l(W)-1;_(W,R),Pe()?.(R)}},ge=()=>{if(console.log("handleNext called, currentSectionIndex:",l(W)),console.log("internalSections.length:",l(w).length),l(W)<l(w).length-1){const R=l(W)+1;console.log("Setting currentSectionIndex to:",R),_(W,R),console.log("After assignment, currentSectionIndex:",l(W)),Pe()?.(R)}else console.log("Cannot navigate next: already at last section")},De=()=>{console.log("Form submitted:",u().questions);const R=l(w).findIndex(se=>se.id==="thankyou_screen");R!==-1&&(_(W,R),Pe()?.(R)),_(C,!0),window.encatch?._internal?.submitFeedback?(console.log("$formResponses.questions:",JSON.stringify(u().questions,null,2)),console.log("First question answer:",u().questions[0]?.answer),window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:xe()||"",feedbackIdentifier:re()||"",duration:0})):console.error("window.encatch._internal.submitFeedback is not available")},Re=()=>{Ue()?.()},Ae=()=>u().questions.reduce((R,se)=>{if(se.answer)switch(se.type){case s.QuestionTypes.RATING:R[se.questionId]=se.answer.rating;break;case s.QuestionTypes.NPS:R[se.questionId]=se.answer.nps;break;case s.QuestionTypes.LONG_TEXT:R[se.questionId]=se.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:R[se.questionId]=se.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:R[se.questionId]=se.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:R[se.questionId]=[...se.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:R[se.questionId]=[...se.answer.nestedSelection||[]];break;default:R[se.questionId]=se.answer}else R[se.questionId]=null;return R},{}),Ee=()=>l(w)[l(W)]?.id==="thankyou_screen",_t=()=>l(W)===0&&l(w)[0]?.id==="welcome_screen",Bt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",Kt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";Zr(()=>{oe(),window.updateEncatchForm=R=>{if(console.log("updateEncatchForm received props:",R),R.theme&&j(R.theme),R.currentMode&&q(R.currentMode),R.currentLanguage&&(console.log("currentLanguage at App.tsx",R.currentLanguage),O(R.currentLanguage),O()?.value&&de(O().value)),R.questions&&K(R.questions),R.questionLanguages&&ne(R.questionLanguages),R.otherConfigurationProperties&&D(R.otherConfigurationProperties),R.welcomeScreenProperties&&G(R.welcomeScreenProperties),R.endScreenProperties){const se=ee()?.isEnabled,M=R.endScreenProperties.isEnabled;if(se&&!M){const Q=l(w).findIndex(Ie=>Ie.id==="thankyou_screen");Q===l(W)&&_(W,Math.max(0,Q-1))}ee(R.endScreenProperties)}if(R.sections){const se=[...R.sections],M=R.welcomeScreenProperties?.isEnabled??G()?.isEnabled??!0,Q=R.endScreenProperties?.isEnabled??ee()?.isEnabled??!0;M&&!se.some(Ie=>Ie.id==="welcome_screen")&&se.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),Q&&!se.some(Ie=>Ie.id==="thankyou_screen")&&se.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),_(w,se),M&&l(W)===0&&_(W,0)}R.translations&&(V(R.translations),O()?.value&&de(O().value)),R.themeSettings&&L(R.themeSettings),R.onClose&&Ue(R.onClose)}}),fe(()=>(S(L()),S(q())),()=>{if(L()&&L().themes&&q()&&L().themes[q()]){const R=document.documentElement,se=L().themes[q()];se&&(R.style.setProperty("--brand-color",se.brandColor||"#2563eb"),R.style.setProperty("--text-color",se.textColor||"#333"),R.style.setProperty("--background-color",se.backgroundColor||"#ffffff"))}}),fe(()=>S(q()),()=>{_(m,q()==="dark"?Bt:Kt)}),fe(()=>(S(O()),S(G()),S(ee()),S(D())),()=>{if(O()&&O().value){const R=O().value;de(R),G()?.translations?.[R]&&G({...G(),welcomeFields:{...G().welcomeFields,...G().translations[R]}}),ee()?.translations?.[R]&&ee({...ee(),endFields:{...ee().endFields,...ee().translations[R]}}),D()?.translations?.[R]&&D({...D(),otherFields:{...D().otherFields,...D().translations[R]}})}}),fe(()=>(S(ie()),S(G()),S(ee()),l(W),l(J),l(C)),()=>{const R=[...ie()];let se=!1;const M=R.some(it=>it.id==="welcome_screen"),Q=R.some(it=>it.id==="thankyou_screen"),Ie=G()?.isEnabled??!0,Me=ee()?.isEnabled??!0;if(Ie&&!M)R.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),se=!0;else if(!Ie&&M){const it=R.filter(en=>en.id!=="welcome_screen");it.length!==R.length&&(_(w,it),se=!0)}if(Me&&!Q)R.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),se=!0;else if(!Me&&Q){const it=R.filter(en=>en.id!=="thankyou_screen");if(it.length!==R.length){const en=R.findIndex(En=>En.id==="thankyou_screen");(l(W)===en||l(W)>=it.length)&&_(W,Math.max(0,it.length-1)),_(w,it),se=!0}}se&&(console.log("REACTIVE BLOCK: sectionUpdated is true"),_(w,R),l(J)||(console.log("REACTIVE BLOCK: Initial setup, setting currentSectionIndex to 0"),!l(C)&&!(!Me&&Q)&&_(W,0),_(J,!0)))}),fe(()=>(S(ee()),l(W),l(w)),()=>{_(p,ee()?.isEnabled&&l(W)===l(w).length-1)}),fe(()=>l(w),()=>{_(v,l(w).filter(R=>R.id!=="welcome_screen"&&R.id!=="thankyou_screen").length===1)}),fe(()=>(l(W),l(w)),()=>{_(g,l(W)===0&&l(w)[0]?.id==="welcome_screen")}),fe(()=>(l(w),l(W)),()=>{_(b,l(w)[l(W)]?.id==="thankyou_screen")}),fe(()=>l(W),()=>{_(h,l(W)===0)}),fe(()=>(l(w),l(W)),()=>{_(I,l(w)[0]?.id==="welcome_screen"&&l(W)===1)}),fe(()=>(l(w),l(W)),()=>{_(k,(()=>{const R=l(w).findIndex(se=>se.id==="thankyou_screen");return R!==-1?l(W)===R-1:l(W)===l(w).length-1})())}),fe(()=>(l(w),l(W),l(g),l(b),u(),S(K())),()=>{_(N,(()=>{const R=l(w)[l(W)];if(!R||l(g)||l(b))return!1;const se=R.questionIds||[],M=u().questions.reduce((Q,Ie)=>(Q[Ie.questionId]=Ie,Q),{});console.log("=== Validation Check ==="),console.log("Current section:",R.id,R.title),console.log("Question IDs in section:",se),console.log("All responses:",M),console.log("All form responses:",u().questions);for(const Q of se){const Ie=K()[Q],Me=!!M[Q];if(console.log(`Question ${Q}:`,{title:Ie?.title,required:Ie?.required,hasResponse:Me,response:M[Q]}),Ie?.required&&!Me)return console.log(`❌ Required question not answered: ${Q}`,Ie?.title),!0}return console.log("✅ All required questions answered"),!1})())}),fe(()=>l(N),()=>{console.log("App.svelte: _hasUnansweredRequired =",l(N))}),fe(()=>l(W),()=>{console.log("REACTIVE: currentSectionIndex changed to:",l(W))}),fe(()=>u(),()=>{const R=je();_(F,R),console.log("Form Responses Store Updated:",u()),console.log("Questions answered:",u().questions.length)}),fe(()=>S(K()),()=>{K()&&(console.log("Questions changed"),oe())}),fe(()=>l(v),()=>{console.log("Is single page survey:",l(v))}),tn(),Vt();var It=EI(),Ht=P(It);{var $t=R=>{TI(R,{get percentage(){return l(F)}})};ue(Ht,R=>{S(L()),U(()=>L()?.featureSettings?.progressBar&&!_t()&&!Ee())&&R($t)})}var bt=ye(Ht,2),Xt=P(bt);{let R=ft(()=>U(Ae)),se=ft(()=>(S(O()),U(()=>O()?.value||"en"))),M=ft(()=>(S(L()),U(()=>L()?.themes||null))),Q=ft(()=>l(p)===!0);aI(Xt,{get questions(){return K()},get sections(){return l(w)},get formData(){return l(R)},get errors(){return l(y)},onChange:Ge,get currentMode(){return q()},get currentSectionIndex(){return l(W)},get otherConfigurationProperties(){return D()},get welcomeScreenProperties(){return G()},get endScreenProperties(){return ee()},get currentLanguage(){return l(se)},get themeSettings(){return l(M)},onClose:Re,get isScreenVisible(){return l(Q)},get apiKey(){return Be()},get feedbackConfigurationId(){return xe()},get hostUrl(){return _e()},get identifier(){return re()}})}T(bt);var On=ye(bt,2);{let R=ft(()=>(S(O()),U(()=>O()?.value||"en"))),se=ft(()=>(S(L()),U(()=>L()?.themes||null)));NI(On,{get isWelcomeScreen(){return l(g)},get isThankYouScreen(){return l(b)},get isFirstSection(){return l(h)},get isFirstPageAfterWelcome(){return l(I)},get isLastSection(){return l(k)},get welcomeScreenProperties(){return G()},get endScreenProperties(){return ee()},get otherConfigurationProperties(){return D()},get currentMode(){return q()},get currentLanguage(){return l(R)},handlePrevious:ke,handleNext:ge,handleSubmit:De,onClose:Re,get themeSettings(){return l(se)},get nextButtonDisabled(){return l(N)},get submitButtonDisabled(){return l(N)},get isSinglePageSurvey(){return l(v)}})}var dn=ye(On,2);{var Fr=R=>{var se=OI(),M=P(se),Q=ye(M,2);T(se),we(()=>{cr(M,"src",l(m)),he(Q,1,`branding-text ${q()==="dark"?"dark-mode":""}`)}),Z(R,se)};ue(dn,R=>{S(L()),U(()=>L()?.featureSettings?.showBranding)&&R(Fr)})}T(It),we(()=>he(It,1,`encatch-form ${q()==="dark"?"theme-dark dark":"theme-light"}`)),Z(r,It),jt(),f()}var PI=H('<div class="fixed inset-0 transition-opacity duration-300"></div>'),UI=H('<button class="absolute top-3 right-3 bg-transparent border-none cursor-pointer z-10 p-2 flex items-center justify-center transition-opacity duration-200 hover:opacity-80 active:scale-95" aria-label="Close popup"><!></button>'),CI=H('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),DI=H('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function Oh(r,i){Nt(i,!1);const u=X(),c=X();let f=x(i,"themeMode",8,"light"),m=x(i,"feedbackConfiguration",8,null),p=x(i,"apiKey",8,""),v=x(i,"hostUrl",8,"");x(i,"deviceInfo",8,null),x(i,"sessionId",8,""),x(i,"userInfo",8,null);let g=x(i,"language",8,"en"),b=x(i,"configurationData",8,null),h=x(i,"onClose",8,void 0),I=x(i,"trackPopupHeight",8,void 0),k=x(i,"feedbackConfigId",8,void 0),N=x(i,"identifier",8,void 0),j=X(document.documentElement.clientWidth),q=X(!1),O=X(null),K=!1,ne=null,D=X(),G;const ee=()=>{if(l(D)){const xe=l(D).querySelector("#section-container");if(xe){const re=window.innerHeight*.75,F=xe.clientHeight,W=84,C=60,y=Math.min(F+W+C,re);l(D).style.transition.includes("height")||tv(D,l(D).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),tv(D,l(D).style.height=`${y}px`),xe.style.overflowY=F+W+C>re?"auto":"hidden"}}},V=()=>{_(j,document.documentElement.clientWidth)},ie=()=>{c0(),_(q,!1),setTimeout(()=>{h()?.()},300)},L=xe=>{const re={position:"fixed",width:l(u),"max-width":l(u),height:"30%",transition:"transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease","transform-origin":"center center","will-change":"transform, opacity"};switch(xe){case"top-left":return{...re,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...re,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...re,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...re,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...re,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...re,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...re,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...re,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...re,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...re,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...re,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...re,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return re}},Ue=xe=>Object.entries(xe).map(([re,F])=>`${re}: ${F}`).join("; ");Zr(()=>{console.log("[POPUP-UI] onMount called"),console.log("[POPUP-UI] Props on mount:",{feedbackConfiguration:m(),configurationData:b(),themeMode:f(),apiKey:p(),hostUrl:v(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!l(O)}),window.addEventListener("resize",V),setTimeout(()=>{_(q,!0),console.log("[POPUP-UI] isVisible set to true")},100),G=window.setInterval(ee,5e3),I()&&I()(ee),requestAnimationFrame(()=>{setTimeout(()=>ee(),0)}),console.log("[POPUP-UI] loaded")}),fa(()=>{window.removeEventListener("resize",V),G&&window.clearInterval(G)}),fe(()=>l(j),()=>{_(u,l(j)<=768?"95%":"600px")}),fe(()=>S(b()),()=>{_(O,b())}),fe(()=>l(O),()=>{l(O)?.feedbackIdentifier&&console.log("[POPUP-UI] feedback identifier data",l(O)?.feedbackIdentifier)}),fe(()=>l(O),()=>{console.log("[POPUP-UI] Reactive update - details:",l(O),"loading:",K,"error:",ne)}),fe(()=>S(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration:",m())}),fe(()=>S(b()),()=>{console.log("[POPUP-UI] configurationData:",b())}),fe(()=>S(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration?.appearanceProperties:",m()?.appearanceProperties)}),fe(()=>(S(m()),l(O)),()=>{console.log("[POPUP-UI] Render condition check:",{hasFeedbackConfiguration:!!m(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!l(O),shouldRenderApp:!!(m()?.appearanceProperties&&l(O))})}),fe(()=>S(m()),()=>{_(c,m()&&m().appearanceProperties&&m().appearanceProperties.selectedPosition?L(m().appearanceProperties.selectedPosition):{})}),fe(()=>l(q),()=>{console.log("Current visible state (reactive): ",l(q))}),tn(),Vt();var Pe=DI(),Be=ye(et(Pe),2);{var _e=xe=>{var re=CI(),F=et(re);{var W=oe=>{var le=PI();we(()=>ui(le,`background-color: ${S(m()),S(f()),U(()=>m().appearanceProperties.themes[f()].overlayColor)??""}; z-index: 1000; opacity: ${l(q)?"0.4":"0"};`)),Z(oe,le)};ue(F,oe=>{S(m()),U(()=>m()?.appearanceProperties?.featureSettings?.darkOverlay)&&oe(W)})}var C=ye(F,2),y=P(C);{var w=oe=>{var le=UI(),de=P(le);rh(de,{size:20,stroke:2}),T(le),we(()=>ui(le,`color: ${S(m()),S(f()),U(()=>m().appearanceProperties.themes[f()].brandColor)??""}; opacity: 0.4; background-color: rgba(0, 0, 0, 0.1); border-radius: 4px; width: 32px; height: 32px;`)),Yu("click",le,ie),Z(oe,le)};ue(y,oe=>{S(m()),U(()=>m()?.appearanceProperties?.featureSettings?.closeButton)&&oe(w)})}var J=ye(y,2);{var ce=oe=>{{let le=ft(()=>({value:g(),label:g()})),de=ft(()=>(l(O),U(()=>l(O)?.questionnaireFields.questions||{}))),Se=ft(()=>(l(O),U(()=>l(O)?.questionnaireFields.selectedLanguages||[]))),Le=ft(()=>(l(O),U(()=>l(O)?.questionnaireFields.translations||{}))),je=ft(()=>(l(O),U(()=>l(O)?.otherConfigurationProperties))),Ge=ft(()=>(l(O),U(()=>l(O)?.welcomeScreenProperties))),ke=ft(()=>(l(O),U(()=>l(O)?.endScreenProperties))),ge=ft(()=>(l(O),U(()=>l(O)?.questionnaireFields.sections||[])));$c(oe,{get theme(){return S(m()),U(()=>m().appearanceProperties.themes)},get themeSettings(){return S(m()),U(()=>m().appearanceProperties)},get currentMode(){return f()},get currentLanguage(){return l(le)},get questions(){return l(de)},get questionLanguages(){return l(Se)},get translations(){return l(Le)},get otherConfigurationProperties(){return l(je)},get welcomeScreenProperties(){return l(Ge)},get endScreenProperties(){return l(ke)},get sections(){return l(ge)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>ee(),0)})},onClose:ie,get apiKey(){return p()},get hostUrl(){return v()},get feedbackConfigId(){return k()},get identifier(){return N()}})}};ue(J,oe=>{S(m()),l(O),U(()=>m()?.appearanceProperties&&l(O))&&oe(ce)})}T(C),ci(C,oe=>_(D,oe),()=>l(D)),we(oe=>ui(C,`${oe??""}; background-color: ${S(m()),S(f()),U(()=>m()?.appearanceProperties?.themes?.[f()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(l(c),U(()=>Ue(l(c))))]),Z(xe,re)};ue(Be,xe=>{xe(_e)})}Z(r,Pe),jt()}function Eh(r,i){Nt(i,!1);let u=x(i,"themeMode",12,"light"),c=x(i,"feedbackConfiguration",12,null),f=x(i,"apiKey",12,""),m=x(i,"hostUrl",12,""),p=x(i,"deviceInfo",12,null),v=x(i,"sessionId",12,""),g=x(i,"userInfo",12,null),b=x(i,"language",12,"en"),h=x(i,"configurationData",12,null),I=x(i,"onClose",12,void 0),k=x(i,"trackPopupHeight",12,void 0),N=x(i,"feedbackConfigId",12,void 0),j=x(i,"identifier",12,void 0);console.log("[Encatch-Form] Props received:",{themeMode:u(),feedbackConfiguration:c(),apiKey:f(),hostUrl:m(),deviceInfo:p(),sessionId:v(),userInfo:g(),language:b(),configurationData:h(),feedbackConfigId:N(),identifier:j()});var q={get themeMode(){return u()},set themeMode(O){u(O),ut()},get feedbackConfiguration(){return c()},set feedbackConfiguration(O){c(O),ut()},get apiKey(){return f()},set apiKey(O){f(O),ut()},get hostUrl(){return m()},set hostUrl(O){m(O),ut()},get deviceInfo(){return p()},set deviceInfo(O){p(O),ut()},get sessionId(){return v()},set sessionId(O){v(O),ut()},get userInfo(){return g()},set userInfo(O){g(O),ut()},get language(){return b()},set language(O){b(O),ut()},get configurationData(){return h()},set configurationData(O){h(O),ut()},get onClose(){return I()},set onClose(O){I(O),ut()},get trackPopupHeight(){return k()},set trackPopupHeight(O){k(O),ut()},get feedbackConfigId(){return N()},set feedbackConfigId(O){N(O),ut()},get identifier(){return j()},set identifier(O){j(O),ut()}};return Oh(r,{get themeMode(){return u()},get feedbackConfiguration(){return c()},get apiKey(){return f()},get hostUrl(){return m()},get deviceInfo(){return p()},get sessionId(){return v()},get userInfo(){return g()},get language(){return b()},get configurationData(){return h()},get onClose(){return I()},get trackPopupHeight(){return k()},get feedbackConfigId(){return N()},get identifier(){return j()}}),jt(q)}customElements.define("encatch-form",Kv(Eh,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var MI=H('<link rel="stylesheet"/> <!>',1);function Ph(r,i){Nt(i,!1);let u=x(i,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),c=x(i,"currentMode",12,"light"),f=x(i,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),m=x(i,"questions",28,()=>({})),p=x(i,"questionLanguages",28,()=>[]),v=x(i,"otherConfigurationProperties",12,null),g=x(i,"welcomeScreenProperties",12,null),b=x(i,"endScreenProperties",12,null),h=x(i,"translations",28,()=>({})),I=x(i,"sections",28,()=>[]),k=x(i,"themeSettings",12,null),N=x(i,"onClose",12,void 0),j=x(i,"onSectionChange",12,void 0),q=x(i,"apiKey",12,void 0),O=x(i,"hostUrl",12,void 0),K=x(i,"feedbackConfigId",12,void 0),ne=x(i,"identifier",12,void 0),D=x(i,"cssLink",12,void 0);console.log("[EncatchApp] Props received:",{theme:u(),currentMode:c(),currentLanguage:f(),questions:m(),questionLanguages:p(),otherConfigurationProperties:v(),welcomeScreenProperties:g(),endScreenProperties:b(),translations:h(),sections:I(),themeSettings:k(),feedbackConfigId:K(),identifier:ne()});var G={get theme(){return u()},set theme(L){u(L),ut()},get currentMode(){return c()},set currentMode(L){c(L),ut()},get currentLanguage(){return f()},set currentLanguage(L){f(L),ut()},get questions(){return m()},set questions(L){m(L),ut()},get questionLanguages(){return p()},set questionLanguages(L){p(L),ut()},get otherConfigurationProperties(){return v()},set otherConfigurationProperties(L){v(L),ut()},get welcomeScreenProperties(){return g()},set welcomeScreenProperties(L){g(L),ut()},get endScreenProperties(){return b()},set endScreenProperties(L){b(L),ut()},get translations(){return h()},set translations(L){h(L),ut()},get sections(){return I()},set sections(L){I(L),ut()},get themeSettings(){return k()},set themeSettings(L){k(L),ut()},get onClose(){return N()},set onClose(L){N(L),ut()},get onSectionChange(){return j()},set onSectionChange(L){j(L),ut()},get apiKey(){return q()},set apiKey(L){q(L),ut()},get hostUrl(){return O()},set hostUrl(L){O(L),ut()},get feedbackConfigId(){return K()},set feedbackConfigId(L){K(L),ut()},get identifier(){return ne()},set identifier(L){ne(L),ut()},get cssLink(){return D()},set cssLink(L){D(L),ut()}},ee=MI(),V=et(ee),ie=ye(V,2);return $c(ie,{get theme(){return u()},get currentMode(){return c()},get currentLanguage(){return f()},get questions(){return m()},get questionLanguages(){return p()},get otherConfigurationProperties(){return v()},get welcomeScreenProperties(){return g()},get endScreenProperties(){return b()},get translations(){return h()},get sections(){return I()},get themeSettings(){return k()},get onClose(){return N()},get onSectionChange(){return j()},get apiKey(){return q()},get hostUrl(){return O()},get feedbackConfigId(){return K()},get identifier(){return ne()}}),we(()=>cr(V,"href",D())),Z(r,ee),jt(G)}customElements.define("encatch-app",Kv(Ph,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{}},[],[],!0));const LI=Eh,AI=Ph;o.App=$c,o.EncatchAppElement=AI,o.EncatchFormElement=LI,o.PopupUi=Oh,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(_i,_i.exports)),_i.exports}var Tk=jk();const Ok=Mh({__proto__:null},[Tk]);fr.EncatchPreview=Fh,Object.defineProperty(fr,Symbol.toStringTag,{value:"Module"})}));
|
|
44
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const me of this.seen.entries()){const le=me[1];if(r===me[0]){f(me);continue}if(s.external){const he=s.external.registry.get(me[0])?.id;if(r!==me[0]&&he){f(me);continue}}if(this.metadataRegistry.get(me[0])?.id){f(me);continue}if(le.cycle){f(me);continue}if(le.count>1&&s.reused==="ref"){f(me);continue}}const w=(me,le)=>{const Re=this.seen.get(me),he=Re.def??Re.schema,Y={...he};if(Re.ref===null)return;const Ie=Re.ref;if(Re.ref=null,Ie){w(Ie,le);const Ae=this.seen.get(Ie).schema;Ae.$ref&&(le.target==="draft-7"||le.target==="draft-4"||le.target==="openapi-3.0")?(he.allOf=he.allOf??[],he.allOf.push(Ae)):(Object.assign(he,Ae),Object.assign(he,Y))}Re.isParent||this.override({zodSchema:me,jsonSchema:he,path:Re.path??[]})};for(const me of[...this.seen.entries()].reverse())w(me[0],{target:this.target});const q={};if(this.target==="draft-2020-12"?q.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?q.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?q.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn(`Invalid target: ${this.target}`),s.external?.uri){const me=s.external.registry.get(r)?.id;if(!me)throw new Error("Schema is missing an `id` property");q.$id=s.external.uri(me)}Object.assign(q,t.def);const K=s.external?.defs??{};for(const me of this.seen.entries()){const le=me[1];le.def&&le.defId&&(K[le.defId]=le.def)}s.external||Object.keys(K).length>0&&(this.target==="draft-2020-12"?q.$defs=K:q.definitions=K);try{return JSON.parse(JSON.stringify(q))}catch{throw new Error("Error converting schema to JSON.")}}}function Hm(e,r){if(e instanceof ws){const s=new ru(r),t={};for(const w of e._idmap.entries()){const[q,K]=w;s.process(K)}const a={},f={registry:e,uri:r?.uri,defs:t};for(const w of e._idmap.entries()){const[q,K]=w;a[q]=s.emit(K,{...r,external:f})}if(Object.keys(t).length>0){const w=s.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[w]:t}}return{schemas:a}}const o=new ru(r);return o.process(e),o.emit(e,r)}function Vt(e,r){const o=r??{seen:new Set};if(o.seen.has(e))return!1;o.seen.add(e);const t=e._zod.def;switch(t.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return Vt(t.element,o);case"object":{for(const a in t.shape)if(Vt(t.shape[a],o))return!0;return!1}case"union":{for(const a of t.options)if(Vt(a,o))return!0;return!1}case"intersection":return Vt(t.left,o)||Vt(t.right,o);case"tuple":{for(const a of t.items)if(Vt(a,o))return!0;return!!(t.rest&&Vt(t.rest,o))}case"record":return Vt(t.keyType,o)||Vt(t.valueType,o);case"map":return Vt(t.keyType,o)||Vt(t.valueType,o);case"set":return Vt(t.valueType,o);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return Vt(t.innerType,o);case"lazy":return Vt(t.getter(),o);case"default":return Vt(t.innerType,o);case"prefault":return Vt(t.innerType,o);case"custom":return!1;case"transform":return!0;case"pipe":return Vt(t.in,o)||Vt(t.out,o);case"success":return!1;case"catch":return!1;case"function":return!1}throw new Error(`Unknown schema type: ${t.type}`)}const N_=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:df,$ZodArray:hf,$ZodAsyncError:jn,$ZodBase64:Hd,$ZodBase64URL:ef,$ZodBigInt:hs,$ZodBigIntFormat:sf,$ZodBoolean:vs,$ZodCIDRv4:Yd,$ZodCIDRv6:Kd,$ZodCUID:Md,$ZodCUID2:Zd,$ZodCatch:Wf,$ZodCheck:Ct,$ZodCheckBigIntFormat:pd,$ZodCheckEndsWith:Id,$ZodCheckGreaterThan:ms,$ZodCheckIncludes:xd,$ZodCheckLengthEquals:$d,$ZodCheckLessThan:fs,$ZodCheckLowerCase:wd,$ZodCheckMaxLength:bd,$ZodCheckMaxSize:gd,$ZodCheckMimeType:jd,$ZodCheckMinLength:yd,$ZodCheckMinSize:vd,$ZodCheckMultipleOf:fd,$ZodCheckNumberFormat:md,$ZodCheckOverwrite:Td,$ZodCheckProperty:Nd,$ZodCheckRegex:_d,$ZodCheckSizeEquals:hd,$ZodCheckStartsWith:Sd,$ZodCheckStringFormat:qi,$ZodCheckUpperCase:kd,$ZodCodec:_s,$ZodCustom:Xf,$ZodCustomStringFormat:of,$ZodDate:gf,$ZodDefault:Lf,$ZodDiscriminatedUnion:kf,$ZodE164:tf,$ZodEmail:Ud,$ZodEmoji:Dd,$ZodEncodeError:Io,$ZodEnum:Of,$ZodError:Ya,$ZodFile:Pf,$ZodFunction:Yf,$ZodGUID:Pd,$ZodIPv4:Jd,$ZodIPv6:Bd,$ZodISODate:Vd,$ZodISODateTime:Wd,$ZodISODuration:Gd,$ZodISOTime:Qd,$ZodIntersection:xf,$ZodJWT:nf,$ZodKSUID:Fd,$ZodLazy:Hf,$ZodLiteral:Ef,$ZodMap:zf,$ZodNaN:Vf,$ZodNanoID:Ld,$ZodNever:mf,$ZodNonOptional:Rf,$ZodNull:cf,$ZodNullable:Df,$ZodNumber:gs,$ZodNumberFormat:af,$ZodObject:$f,$ZodObjectJIT:_f,$ZodOptional:Af,$ZodPipe:Qf,$ZodPrefault:Zf,$ZodPromise:Kf,$ZodReadonly:Gf,$ZodRealError:gr,$ZodRecord:If,$ZodRegistry:ws,$ZodSet:jf,$ZodString:Fi,$ZodStringFormat:It,$ZodSuccess:Ff,$ZodSymbol:uf,$ZodTemplateLiteral:Bf,$ZodTransform:Cf,$ZodTuple:$s,$ZodType:Ge,$ZodULID:Rd,$ZodURL:Ad,$ZodUUID:Cd,$ZodUndefined:lf,$ZodUnion:bs,$ZodUnknown:ff,$ZodVoid:pf,$ZodXID:qd,$brand:uc,$constructor:A,$input:lm,$output:um,Doc:Od,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:ru,NEVER:sc,TimePrecision:fm,_any:Pm,_array:Vm,_base64:Zs,_base64url:Rs,_bigint:Im,_boolean:xm,_catch:w_,_check:Ym,_cidrv4:Ls,_cidrv6:Ms,_coercedBigint:zm,_coercedBoolean:Sm,_coercedDate:Lm,_coercedNumber:bm,_coercedString:dm,_cuid:Os,_cuid2:Es,_custom:Gm,_date:Dm,_decode:rs,_decodeAsync:is,_default:y_,_discriminatedUnion:s_,_e164:qs,_email:xs,_emoji:js,_encode:ts,_encodeAsync:ns,_endsWith:Ys,_enum:m_,_file:Qm,_float32:$m,_float64:_m,_gt:Un,_gte:vr,_guid:Zo,_includes:Js,_int:ym,_int32:wm,_int64:Nm,_intersection:u_,_ipv4:As,_ipv6:Ds,_isoDate:pm,_isoDateTime:mm,_isoDuration:vm,_isoTime:gm,_jwt:Fs,_ksuid:Us,_lazy:I_,_length:Wo,_literal:g_,_lowercase:Qs,_lt:Cn,_lte:Ur,_map:d_,_max:Ur,_maxLength:Fo,_maxSize:qo,_mime:Ks,_min:vr,_minLength:ui,_minSize:Gi,_multipleOf:Qi,_nan:Mm,_nanoid:Ts,_nativeEnum:p_,_negative:Rm,_never:Um,_nonnegative:Fm,_nonoptional:$_,_nonpositive:qm,_normalize:Hs,_null:Em,_nullable:b_,_number:hm,_optional:h_,_overwrite:An,_parse:Ai,_parseAsync:Di,_pipe:k_,_positive:Zm,_promise:z_,_property:Wm,_readonly:x_,_record:c_,_refine:Jm,_regex:Vs,_safeDecode:as,_safeDecodeAsync:us,_safeEncode:os,_safeEncodeAsync:ss,_safeParse:Li,_safeParseAsync:Mi,_set:f_,_size:Ws,_startsWith:Bs,_string:cm,_stringFormat:Ji,_stringbool:Km,_success:__,_superRefine:Bm,_symbol:Tm,_templateLiteral:S_,_toLowerCase:eu,_toUpperCase:tu,_transform:v_,_trim:Xs,_tuple:l_,_uint32:km,_uint64:jm,_ulid:Ps,_undefined:Om,_union:a_,_unknown:Cm,_uppercase:Gs,_url:Ro,_uuid:Ss,_uuidv4:Is,_uuidv6:zs,_uuidv7:Ns,_void:Am,_xid:Cs,clone:xr,config:ir,decode:oy,decodeAsync:sy,encode:iy,encodeAsync:ay,flattenError:Ka,formatError:Ha,globalConfig:zo,globalRegistry:Pn,isValidBase64:ps,isValidBase64URL:Xd,isValidJWT:rf,locales:sm,parse:Xa,parseAsync:es,prettifyError:jc,regexes:ds,registry:ks,safeDecode:ly,safeDecodeAsync:dy,safeEncode:uy,safeEncodeAsync:cy,safeParse:Tc,safeParseAsync:Oc,toDotPath:Nc,toJSONSchema:Hm,treeifyError:zc,util:Sc,version:Ed},Symbol.toStringTag,{value:"Module"})),nu=A("ZodISODateTime",(e,r)=>{Wd.init(e,r),Nt.init(e,r)});function Xm(e){return mm(nu,e)}const iu=A("ZodISODate",(e,r)=>{Vd.init(e,r),Nt.init(e,r)});function ep(e){return pm(iu,e)}const ou=A("ZodISOTime",(e,r)=>{Qd.init(e,r),Nt.init(e,r)});function tp(e){return gm(ou,e)}const au=A("ZodISODuration",(e,r)=>{Gd.init(e,r),Nt.init(e,r)});function rp(e){return vm(au,e)}const j_=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:iu,ZodISODateTime:nu,ZodISODuration:au,ZodISOTime:ou,date:ep,datetime:Xm,duration:rp,time:tp},Symbol.toStringTag,{value:"Module"})),np=(e,r)=>{Ya.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:o=>Ha(e,o)},flatten:{value:o=>Ka(e,o)},addIssue:{value:o=>{e.issues.push(o),e.message=JSON.stringify(e.issues,No,2)}},addIssues:{value:o=>{e.issues.push(...o),e.message=JSON.stringify(e.issues,No,2)}},isEmpty:{get(){return e.issues.length===0}}})},T_=A("ZodError",np),hr=A("ZodError",np,{Parent:Error}),ip=Ai(hr),op=Di(hr),ap=Li(hr),sp=Mi(hr),up=ts(hr),lp=rs(hr),cp=ns(hr),dp=is(hr),fp=os(hr),mp=as(hr),pp=ss(hr),gp=us(hr),et=A("ZodType",(e,r)=>(Ge.init(e,r),e.def=r,e.type=r.type,Object.defineProperty(e,"_def",{value:r}),e.check=(...o)=>e.clone({...r,checks:[...r.checks??[],...o.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),e.clone=(o,s)=>xr(e,o,s),e.brand=()=>e,e.register=((o,s)=>(o.add(e,s),e)),e.parse=(o,s)=>ip(e,o,s,{callee:e.parse}),e.safeParse=(o,s)=>ap(e,o,s),e.parseAsync=async(o,s)=>op(e,o,s,{callee:e.parseAsync}),e.safeParseAsync=async(o,s)=>sp(e,o,s),e.spa=e.safeParseAsync,e.encode=(o,s)=>up(e,o,s),e.decode=(o,s)=>lp(e,o,s),e.encodeAsync=async(o,s)=>cp(e,o,s),e.decodeAsync=async(o,s)=>dp(e,o,s),e.safeEncode=(o,s)=>fp(e,o,s),e.safeDecode=(o,s)=>mp(e,o,s),e.safeEncodeAsync=async(o,s)=>pp(e,o,s),e.safeDecodeAsync=async(o,s)=>gp(e,o,s),e.refine=(o,s)=>e.check(Hp(o,s)),e.superRefine=o=>e.check(Xp(o)),e.overwrite=o=>e.check(An(o)),e.optional=()=>Xo(e),e.nullable=()=>ea(e),e.nullish=()=>Xo(ea(e)),e.nonoptional=o=>Rp(e,o),e.array=()=>ht(e),e.or=o=>Hr([e,o]),e.and=o=>Np(e,o),e.transform=o=>ta(e,Ou(o)),e.default=o=>Lp(e,o),e.prefault=o=>Zp(e,o),e.catch=o=>Wp(e,o),e.pipe=o=>ta(e,o),e.readonly=()=>Gp(e),e.describe=o=>{const s=e.clone();return Pn.add(s,{description:o}),s},Object.defineProperty(e,"description",{get(){return Pn.get(e)?.description},configurable:!0}),e.meta=(...o)=>{if(o.length===0)return Pn.get(e);const s=e.clone();return Pn.add(s,o[0]),s},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),su=A("_ZodString",(e,r)=>{Fi.init(e,r),et.init(e,r);const o=e._zod.bag;e.format=o.format??null,e.minLength=o.minimum??null,e.maxLength=o.maximum??null,e.regex=(...s)=>e.check(Vs(...s)),e.includes=(...s)=>e.check(Js(...s)),e.startsWith=(...s)=>e.check(Bs(...s)),e.endsWith=(...s)=>e.check(Ys(...s)),e.min=(...s)=>e.check(ui(...s)),e.max=(...s)=>e.check(Fo(...s)),e.length=(...s)=>e.check(Wo(...s)),e.nonempty=(...s)=>e.check(ui(1,...s)),e.lowercase=s=>e.check(Qs(s)),e.uppercase=s=>e.check(Gs(s)),e.trim=()=>e.check(Xs()),e.normalize=(...s)=>e.check(Hs(...s)),e.toLowerCase=()=>e.check(eu()),e.toUpperCase=()=>e.check(tu())}),Vo=A("ZodString",(e,r)=>{Fi.init(e,r),su.init(e,r),e.email=o=>e.check(xs(uu,o)),e.url=o=>e.check(Ro(Go,o)),e.jwt=o=>e.check(Fs(ku,o)),e.emoji=o=>e.check(js(lu,o)),e.guid=o=>e.check(Zo(Qo,o)),e.uuid=o=>e.check(Ss(Kr,o)),e.uuidv4=o=>e.check(Is(Kr,o)),e.uuidv6=o=>e.check(zs(Kr,o)),e.uuidv7=o=>e.check(Ns(Kr,o)),e.nanoid=o=>e.check(Ts(cu,o)),e.guid=o=>e.check(Zo(Qo,o)),e.cuid=o=>e.check(Os(du,o)),e.cuid2=o=>e.check(Es(fu,o)),e.ulid=o=>e.check(Ps(mu,o)),e.base64=o=>e.check(Zs($u,o)),e.base64url=o=>e.check(Rs(_u,o)),e.xid=o=>e.check(Cs(pu,o)),e.ksuid=o=>e.check(Us(gu,o)),e.ipv4=o=>e.check(As(vu,o)),e.ipv6=o=>e.check(Ds(hu,o)),e.cidrv4=o=>e.check(Ls(bu,o)),e.cidrv6=o=>e.check(Ms(yu,o)),e.e164=o=>e.check(qs(wu,o)),e.datetime=o=>e.check(Xm(o)),e.date=o=>e.check(ep(o)),e.time=o=>e.check(tp(o)),e.duration=o=>e.check(rp(o))});function E(e){return cm(Vo,e)}const Nt=A("ZodStringFormat",(e,r)=>{It.init(e,r),su.init(e,r)}),uu=A("ZodEmail",(e,r)=>{Ud.init(e,r),Nt.init(e,r)});function O_(e){return xs(uu,e)}const Qo=A("ZodGUID",(e,r)=>{Pd.init(e,r),Nt.init(e,r)});function E_(e){return Zo(Qo,e)}const Kr=A("ZodUUID",(e,r)=>{Cd.init(e,r),Nt.init(e,r)});function vp(e){return Ss(Kr,e)}function P_(e){return Is(Kr,e)}function C_(e){return zs(Kr,e)}function U_(e){return Ns(Kr,e)}const Go=A("ZodURL",(e,r)=>{Ad.init(e,r),Nt.init(e,r)});function A_(e){return Ro(Go,e)}function D_(e){return Ro(Go,{protocol:/^https?$/,hostname:Jc,...ae(e)})}const lu=A("ZodEmoji",(e,r)=>{Dd.init(e,r),Nt.init(e,r)});function L_(e){return js(lu,e)}const cu=A("ZodNanoID",(e,r)=>{Ld.init(e,r),Nt.init(e,r)});function M_(e){return Ts(cu,e)}const du=A("ZodCUID",(e,r)=>{Md.init(e,r),Nt.init(e,r)});function Z_(e){return Os(du,e)}const fu=A("ZodCUID2",(e,r)=>{Zd.init(e,r),Nt.init(e,r)});function R_(e){return Es(fu,e)}const mu=A("ZodULID",(e,r)=>{Rd.init(e,r),Nt.init(e,r)});function q_(e){return Ps(mu,e)}const pu=A("ZodXID",(e,r)=>{qd.init(e,r),Nt.init(e,r)});function F_(e){return Cs(pu,e)}const gu=A("ZodKSUID",(e,r)=>{Fd.init(e,r),Nt.init(e,r)});function W_(e){return Us(gu,e)}const vu=A("ZodIPv4",(e,r)=>{Jd.init(e,r),Nt.init(e,r)});function V_(e){return As(vu,e)}const hu=A("ZodIPv6",(e,r)=>{Bd.init(e,r),Nt.init(e,r)});function Q_(e){return Ds(hu,e)}const bu=A("ZodCIDRv4",(e,r)=>{Yd.init(e,r),Nt.init(e,r)});function G_(e){return Ls(bu,e)}const yu=A("ZodCIDRv6",(e,r)=>{Kd.init(e,r),Nt.init(e,r)});function J_(e){return Ms(yu,e)}const $u=A("ZodBase64",(e,r)=>{Hd.init(e,r),Nt.init(e,r)});function B_(e){return Zs($u,e)}const _u=A("ZodBase64URL",(e,r)=>{ef.init(e,r),Nt.init(e,r)});function Y_(e){return Rs(_u,e)}const wu=A("ZodE164",(e,r)=>{tf.init(e,r),Nt.init(e,r)});function K_(e){return qs(wu,e)}const ku=A("ZodJWT",(e,r)=>{nf.init(e,r),Nt.init(e,r)});function H_(e){return Fs(ku,e)}const Bi=A("ZodCustomStringFormat",(e,r)=>{of.init(e,r),Nt.init(e,r)});function X_(e,r,o={}){return Ji(Bi,e,r,o)}function ew(e){return Ji(Bi,"hostname",cs,e)}function tw(e){return Ji(Bi,"hex",cd,e)}function rw(e,r){const o=r?.enc??"hex",s=`${e}_${o}`,t=ds[s];if(!t)throw new Error(`Unrecognized hash format: ${s}`);return Ji(Bi,s,t,r)}const Jo=A("ZodNumber",(e,r)=>{gs.init(e,r),et.init(e,r),e.gt=(s,t)=>e.check(Un(s,t)),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.lt=(s,t)=>e.check(Cn(s,t)),e.lte=(s,t)=>e.check(Ur(s,t)),e.max=(s,t)=>e.check(Ur(s,t)),e.int=s=>e.check(xu(s)),e.safe=s=>e.check(xu(s)),e.positive=s=>e.check(Un(0,s)),e.nonnegative=s=>e.check(vr(0,s)),e.negative=s=>e.check(Cn(0,s)),e.nonpositive=s=>e.check(Ur(0,s)),e.multipleOf=(s,t)=>e.check(Qi(s,t)),e.step=(s,t)=>e.check(Qi(s,t)),e.finite=()=>e;const o=e._zod.bag;e.minValue=Math.max(o.minimum??Number.NEGATIVE_INFINITY,o.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(o.maximum??Number.POSITIVE_INFINITY,o.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(o.format??"").includes("int")||Number.isSafeInteger(o.multipleOf??.5),e.isFinite=!0,e.format=o.format??null});function mt(e){return hm(Jo,e)}const li=A("ZodNumberFormat",(e,r)=>{af.init(e,r),Jo.init(e,r)});function xu(e){return ym(li,e)}function nw(e){return $m(li,e)}function iw(e){return _m(li,e)}function ow(e){return wm(li,e)}function aw(e){return km(li,e)}const Bo=A("ZodBoolean",(e,r)=>{vs.init(e,r),et.init(e,r)});function rt(e){return xm(Bo,e)}const Yo=A("ZodBigInt",(e,r)=>{hs.init(e,r),et.init(e,r),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.gt=(s,t)=>e.check(Un(s,t)),e.gte=(s,t)=>e.check(vr(s,t)),e.min=(s,t)=>e.check(vr(s,t)),e.lt=(s,t)=>e.check(Cn(s,t)),e.lte=(s,t)=>e.check(Ur(s,t)),e.max=(s,t)=>e.check(Ur(s,t)),e.positive=s=>e.check(Un(BigInt(0),s)),e.negative=s=>e.check(Cn(BigInt(0),s)),e.nonpositive=s=>e.check(Ur(BigInt(0),s)),e.nonnegative=s=>e.check(vr(BigInt(0),s)),e.multipleOf=(s,t)=>e.check(Qi(s,t));const o=e._zod.bag;e.minValue=o.minimum??null,e.maxValue=o.maximum??null,e.format=o.format??null});function sw(e){return Im(Yo,e)}const Su=A("ZodBigIntFormat",(e,r)=>{sf.init(e,r),Yo.init(e,r)});function uw(e){return Nm(Su,e)}function lw(e){return jm(Su,e)}const hp=A("ZodSymbol",(e,r)=>{uf.init(e,r),et.init(e,r)});function cw(e){return Tm(hp,e)}const bp=A("ZodUndefined",(e,r)=>{lf.init(e,r),et.init(e,r)});function dw(e){return Om(bp,e)}const yp=A("ZodNull",(e,r)=>{cf.init(e,r),et.init(e,r)});function $p(e){return Em(yp,e)}const _p=A("ZodAny",(e,r)=>{df.init(e,r),et.init(e,r)});function Ko(){return Pm(_p)}const wp=A("ZodUnknown",(e,r)=>{ff.init(e,r),et.init(e,r)});function Dn(){return Cm(wp)}const kp=A("ZodNever",(e,r)=>{mf.init(e,r),et.init(e,r)});function Iu(e){return Um(kp,e)}const xp=A("ZodVoid",(e,r)=>{pf.init(e,r),et.init(e,r)});function zu(e){return Am(xp,e)}const Nu=A("ZodDate",(e,r)=>{gf.init(e,r),et.init(e,r),e.min=(s,t)=>e.check(vr(s,t)),e.max=(s,t)=>e.check(Ur(s,t));const o=e._zod.bag;e.minDate=o.minimum?new Date(o.minimum):null,e.maxDate=o.maximum?new Date(o.maximum):null});function fw(e){return Dm(Nu,e)}const Sp=A("ZodArray",(e,r)=>{hf.init(e,r),et.init(e,r),e.element=r.element,e.min=(o,s)=>e.check(ui(o,s)),e.nonempty=o=>e.check(ui(1,o)),e.max=(o,s)=>e.check(Fo(o,s)),e.length=(o,s)=>e.check(Wo(o,s)),e.unwrap=()=>e.element});function ht(e,r){return Vm(Sp,e,r)}function mw(e){const r=e._zod.def.shape;return Ut(Object.keys(r))}const Ho=A("ZodObject",(e,r)=>{_f.init(e,r),et.init(e,r),it(e,"shape",()=>r.shape),e.keyof=()=>Ut(Object.keys(e._zod.def.shape)),e.catchall=o=>e.clone({...e._zod.def,catchall:o}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Dn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Dn()}),e.strict=()=>e.clone({...e._zod.def,catchall:Iu()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=o=>bc(e,o),e.safeExtend=o=>yc(e,o),e.merge=o=>$c(e,o),e.pick=o=>vc(e,o),e.omit=o=>hc(e,o),e.partial=(...o)=>_c(Eu,e,o[0]),e.required=(...o)=>wc(Pu,e,o[0])});function ye(e,r){const o={type:"object",get shape(){return Er(this,"shape",e?To(e):{}),this.shape},...ae(r)};return new Ho(o)}function pw(e,r){return new Ho({type:"object",get shape(){return Er(this,"shape",To(e)),this.shape},catchall:Iu(),...ae(r)})}function gw(e,r){return new Ho({type:"object",get shape(){return Er(this,"shape",To(e)),this.shape},catchall:Dn(),...ae(r)})}const ju=A("ZodUnion",(e,r)=>{bs.init(e,r),et.init(e,r),e.options=r.options});function Hr(e,r){return new ju({type:"union",options:e,...ae(r)})}const Ip=A("ZodDiscriminatedUnion",(e,r)=>{ju.init(e,r),kf.init(e,r)});function Yi(e,r,o){return new Ip({type:"union",options:r,discriminator:e,...ae(o)})}const zp=A("ZodIntersection",(e,r)=>{xf.init(e,r),et.init(e,r)});function Np(e,r){return new zp({type:"intersection",left:e,right:r})}const jp=A("ZodTuple",(e,r)=>{$s.init(e,r),et.init(e,r),e.rest=o=>e.clone({...e._zod.def,rest:o})});function Tp(e,r,o){const s=r instanceof Ge,t=s?o:r,a=s?r:null;return new jp({type:"tuple",items:e,rest:a,...ae(t)})}const Tu=A("ZodRecord",(e,r)=>{If.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function Qt(e,r,o){return new Tu({type:"record",keyType:e,valueType:r,...ae(o)})}function vw(e,r,o){const s=xr(e);return s._zod.values=void 0,new Tu({type:"record",keyType:s,valueType:r,...ae(o)})}const Op=A("ZodMap",(e,r)=>{zf.init(e,r),et.init(e,r),e.keyType=r.keyType,e.valueType=r.valueType});function hw(e,r,o){return new Op({type:"map",keyType:e,valueType:r,...ae(o)})}const Ep=A("ZodSet",(e,r)=>{jf.init(e,r),et.init(e,r),e.min=(...o)=>e.check(Gi(...o)),e.nonempty=o=>e.check(Gi(1,o)),e.max=(...o)=>e.check(qo(...o)),e.size=(...o)=>e.check(Ws(...o))});function bw(e,r){return new Ep({type:"set",valueType:e,...ae(r)})}const Ki=A("ZodEnum",(e,r)=>{Of.init(e,r),et.init(e,r),e.enum=r.entries,e.options=Object.values(r.entries);const o=new Set(Object.keys(r.entries));e.extract=(s,t)=>{const a={};for(const f of s)if(o.has(f))a[f]=r.entries[f];else throw new Error(`Key ${f} not found in enum`);return new Ki({...r,checks:[],...ae(t),entries:a})},e.exclude=(s,t)=>{const a={...r.entries};for(const f of s)if(o.has(f))delete a[f];else throw new Error(`Key ${f} not found in enum`);return new Ki({...r,checks:[],...ae(t),entries:a})}});function Ut(e,r){const o=Array.isArray(e)?Object.fromEntries(e.map(s=>[s,s])):e;return new Ki({type:"enum",entries:o,...ae(r)})}function yw(e,r){return new Ki({type:"enum",entries:e,...ae(r)})}const Pp=A("ZodLiteral",(e,r)=>{Ef.init(e,r),et.init(e,r),e.values=new Set(r.values),Object.defineProperty(e,"value",{get(){if(r.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return r.values[0]}})});function wt(e,r){return new Pp({type:"literal",values:Array.isArray(e)?e:[e],...ae(r)})}const Cp=A("ZodFile",(e,r)=>{Pf.init(e,r),et.init(e,r),e.min=(o,s)=>e.check(Gi(o,s)),e.max=(o,s)=>e.check(qo(o,s)),e.mime=(o,s)=>e.check(Ks(Array.isArray(o)?o:[o],s))});function $w(e){return Qm(Cp,e)}const Up=A("ZodTransform",(e,r)=>{Cf.init(e,r),et.init(e,r),e._zod.parse=(o,s)=>{if(s.direction==="backward")throw new Io(e.constructor.name);o.addIssue=a=>{if(typeof a=="string")o.issues.push(ai(a,o.value,r));else{const f=a;f.fatal&&(f.continue=!1),f.code??(f.code="custom"),f.input??(f.input=o.value),f.inst??(f.inst=e),o.issues.push(ai(f))}};const t=r.transform(o.value,o);return t instanceof Promise?t.then(a=>(o.value=a,o)):(o.value=t,o)}});function Ou(e){return new Up({type:"transform",transform:e})}const Eu=A("ZodOptional",(e,r)=>{Af.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Xo(e){return new Eu({type:"optional",innerType:e})}const Ap=A("ZodNullable",(e,r)=>{Df.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ea(e){return new Ap({type:"nullable",innerType:e})}function _w(e){return Xo(ea(e))}const Dp=A("ZodDefault",(e,r)=>{Lf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Lp(e,r){return new Dp({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():Oo(r)}})}const Mp=A("ZodPrefault",(e,r)=>{Zf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Zp(e,r){return new Mp({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():Oo(r)}})}const Pu=A("ZodNonOptional",(e,r)=>{Rf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Rp(e,r){return new Pu({type:"nonoptional",innerType:e,...ae(r)})}const qp=A("ZodSuccess",(e,r)=>{Ff.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function ww(e){return new qp({type:"success",innerType:e})}const Fp=A("ZodCatch",(e,r)=>{Wf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Wp(e,r){return new Fp({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const Vp=A("ZodNaN",(e,r)=>{Vf.init(e,r),et.init(e,r)});function kw(e){return Mm(Vp,e)}const Cu=A("ZodPipe",(e,r)=>{Qf.init(e,r),et.init(e,r),e.in=r.in,e.out=r.out});function ta(e,r){return new Cu({type:"pipe",in:e,out:r})}const Uu=A("ZodCodec",(e,r)=>{Cu.init(e,r),_s.init(e,r)});function xw(e,r,o){return new Uu({type:"pipe",in:e,out:r,transform:o.decode,reverseTransform:o.encode})}const Qp=A("ZodReadonly",(e,r)=>{Gf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Gp(e){return new Qp({type:"readonly",innerType:e})}const Jp=A("ZodTemplateLiteral",(e,r)=>{Bf.init(e,r),et.init(e,r)});function Sw(e,r){return new Jp({type:"template_literal",parts:e,...ae(r)})}const Bp=A("ZodLazy",(e,r)=>{Hf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.getter()});function Au(e){return new Bp({type:"lazy",getter:e})}const Yp=A("ZodPromise",(e,r)=>{Kf.init(e,r),et.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Iw(e){return new Yp({type:"promise",innerType:e})}const Kp=A("ZodFunction",(e,r)=>{Yf.init(e,r),et.init(e,r)});function ra(e){return new Kp({type:"function",input:Array.isArray(e?.input)?Tp(e?.input):e?.input??ht(Dn()),output:e?.output??Dn()})}const na=A("ZodCustom",(e,r)=>{Xf.init(e,r),et.init(e,r)});function zw(e){const r=new Ct({check:"custom"});return r._zod.check=e,r}function Nw(e,r){return Gm(na,e??(()=>!0),r)}function Hp(e,r={}){return Jm(na,e,r)}function Xp(e){return Bm(e)}function jw(e,r={error:`Input not instance of ${e.name}`}){const o=new na({type:"custom",check:"custom",fn:s=>s instanceof e,abort:!0,...ae(r)});return o._zod.bag.Class=e,o}const Tw=(...e)=>Km({Codec:Uu,Boolean:Bo,String:Vo},...e);function Ow(e){const r=Au(()=>Hr([E(e),mt(),rt(),$p(),ht(r),Qt(E(),r)]));return r}function Ew(e,r){return ta(Ou(e),r)}const Pw={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"};function Cw(e){ir({customError:e})}function Uw(){return ir().customError}var Du;Du||(Du={});function Aw(e){return dm(Vo,e)}function Dw(e){return bm(Jo,e)}function Lw(e){return Sm(Bo,e)}function Mw(e){return zm(Yo,e)}function Zw(e){return Lm(Nu,e)}const Rw=Object.freeze(Object.defineProperty({__proto__:null,bigint:Mw,boolean:Lw,date:Zw,number:Dw,string:Aw},Symbol.toStringTag,{value:"Module"}));ir(rm());const qw=Object.freeze(Object.defineProperty({__proto__:null,$brand:uc,$input:lm,$output:um,NEVER:sc,TimePrecision:fm,ZodAny:_p,ZodArray:Sp,ZodBase64:$u,ZodBase64URL:_u,ZodBigInt:Yo,ZodBigIntFormat:Su,ZodBoolean:Bo,ZodCIDRv4:bu,ZodCIDRv6:yu,ZodCUID:du,ZodCUID2:fu,ZodCatch:Fp,ZodCodec:Uu,ZodCustom:na,ZodCustomStringFormat:Bi,ZodDate:Nu,ZodDefault:Dp,ZodDiscriminatedUnion:Ip,ZodE164:wu,ZodEmail:uu,ZodEmoji:lu,ZodEnum:Ki,ZodError:T_,ZodFile:Cp,get ZodFirstPartyTypeKind(){return Du},ZodFunction:Kp,ZodGUID:Qo,ZodIPv4:vu,ZodIPv6:hu,ZodISODate:iu,ZodISODateTime:nu,ZodISODuration:au,ZodISOTime:ou,ZodIntersection:zp,ZodIssueCode:Pw,ZodJWT:ku,ZodKSUID:gu,ZodLazy:Bp,ZodLiteral:Pp,ZodMap:Op,ZodNaN:Vp,ZodNanoID:cu,ZodNever:kp,ZodNonOptional:Pu,ZodNull:yp,ZodNullable:Ap,ZodNumber:Jo,ZodNumberFormat:li,ZodObject:Ho,ZodOptional:Eu,ZodPipe:Cu,ZodPrefault:Mp,ZodPromise:Yp,ZodReadonly:Qp,ZodRealError:hr,ZodRecord:Tu,ZodSet:Ep,ZodString:Vo,ZodStringFormat:Nt,ZodSuccess:qp,ZodSymbol:hp,ZodTemplateLiteral:Jp,ZodTransform:Up,ZodTuple:jp,ZodType:et,ZodULID:mu,ZodURL:Go,ZodUUID:Kr,ZodUndefined:bp,ZodUnion:ju,ZodUnknown:wp,ZodVoid:xp,ZodXID:pu,_ZodString:su,_default:Lp,_function:ra,any:Ko,array:ht,base64:B_,base64url:Y_,bigint:sw,boolean:rt,catch:Wp,check:zw,cidrv4:G_,cidrv6:J_,clone:xr,codec:xw,coerce:Rw,config:ir,core:N_,cuid:Z_,cuid2:R_,custom:Nw,date:fw,decode:lp,decodeAsync:dp,discriminatedUnion:Yi,e164:K_,email:O_,emoji:L_,encode:up,encodeAsync:cp,endsWith:Ys,enum:Ut,file:$w,flattenError:Ka,float32:nw,float64:iw,formatError:Ha,function:ra,getErrorMap:Uw,globalRegistry:Pn,gt:Un,gte:vr,guid:E_,hash:rw,hex:tw,hostname:ew,httpUrl:D_,includes:Js,instanceof:jw,int:xu,int32:ow,int64:uw,intersection:Np,ipv4:V_,ipv6:Q_,iso:j_,json:Ow,jwt:H_,keyof:mw,ksuid:W_,lazy:Au,length:Wo,literal:wt,locales:sm,looseObject:gw,lowercase:Qs,lt:Cn,lte:Ur,map:hw,maxLength:Fo,maxSize:qo,mime:Ks,minLength:ui,minSize:Gi,multipleOf:Qi,nan:kw,nanoid:M_,nativeEnum:yw,negative:Rm,never:Iu,nonnegative:Fm,nonoptional:Rp,nonpositive:qm,normalize:Hs,null:$p,nullable:ea,nullish:_w,number:mt,object:ye,optional:Xo,overwrite:An,parse:ip,parseAsync:op,partialRecord:vw,pipe:ta,positive:Zm,prefault:Zp,preprocess:Ew,prettifyError:jc,promise:Iw,property:Wm,readonly:Gp,record:Qt,refine:Hp,regex:Vs,regexes:ds,registry:ks,safeDecode:mp,safeDecodeAsync:gp,safeEncode:fp,safeEncodeAsync:pp,safeParse:ap,safeParseAsync:sp,set:bw,setErrorMap:Cw,size:Ws,startsWith:Bs,strictObject:pw,string:E,stringFormat:X_,stringbool:Tw,success:ww,superRefine:Xp,symbol:cw,templateLiteral:Sw,toJSONSchema:Hm,toLowerCase:eu,toUpperCase:tu,transform:Ou,treeifyError:zc,trim:Xs,tuple:Tp,uint32:aw,uint64:lw,ulid:q_,undefined:dw,union:Hr,unknown:Dn,uppercase:Gs,url:A_,util:Sc,uuid:vp,uuidv4:P_,uuidv6:C_,uuidv7:U_,void:zu,xid:F_},Symbol.toStringTag,{value:"Module"}));var Fw=Object.defineProperty,Xr=(e,r)=>Fw(e,"name",{value:r,configurable:!0}),eg=Ut(["rating","single_choice","nps","nested_selection","multiple_choice_multiple","short_answer","long_text","annotation"]).describe("Enumeration of all supported question types for form fields"),Ww={RATING:"rating",SINGLE_CHOICE:"single_choice",NPS:"nps",NESTED_SELECTION:"nested_selection",MULTIPLE_CHOICE_MULTIPLE:"multiple_choice_multiple",SHORT_ANSWER:"short_answer",LONG_TEXT:"long_text",ANNOTATION:"annotation"},tg=Ut(["required","min","max","minLength","maxLength","pattern","email","url","custom"]).describe("Enumeration of all supported validation rule types"),Vw={REQUIRED:"required",MIN:"min",MAX:"max",MIN_LENGTH:"minLength",MAX_LENGTH:"maxLength",PATTERN:"pattern",EMAIL:"email",URL:"url",CUSTOM:"custom"},rg=ye({type:tg.describe("Type of validation rule to apply"),value:Hr([E(),mt(),rt()]).optional().describe("Value for the validation rule (string, number, or boolean)"),message:E().optional().describe("Custom error message when validation fails"),describe:E().max(500).optional().describe("LLM tool call description for this validation rule")}).describe("Schema defining validation rules for question responses"),Qw=Ut(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),Gw={EQUALS:"equals",NOT_EQUALS:"not_equals",CONTAINS:"contains",NOT_CONTAINS:"not_contains",GREATER_THAN:"greater_than",LESS_THAN:"less_than",IS_EMPTY:"is_empty",IS_NOT_EMPTY:"is_not_empty"},ng=ye({field:E().describe("ID of the field to check against"),operator:Qw.describe("Comparison operator for the condition"),value:Hr([E(),mt(),rt()]).optional().describe("Value to compare against (string, number, or boolean)"),describe:E().max(500).optional().describe("LLM tool call description for this visibility condition")}).describe("Schema defining conditions that control when questions are visible"),ia=ye({id:E().describe("Unique identifier for the section"),title:E().min(1).max(200).describe("Display title for the section"),questionIds:ht(E()).min(1).describe("Array of question IDs that belong to this section")}).describe("Schema defining sections that organize questions into logical groups"),ig=Ut(["D","P","A","S"]),Jw={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},og=Ut(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),Bw={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},ag=Ut(["small","medium","large"]),Yw={SMALL:"small",MEDIUM:"medium",LARGE:"large"},sg=Ut(["radio","list","chip","dropdown"]),Kw={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},ug=Ut(["checkbox","list","chip"]),Hw={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},lg=Ut(["randomize","flip","rotate","ascending","none"]),Xw={RANDOMIZE:"randomize",FLIP:"flip",ROTATE:"rotate",ASCENDING:"ascending",NONE:"none"},en=ye({id:E().describe("Unique identifier for the question"),type:eg.describe("The type of question (rating, single_choice, etc.)"),title:E().min(1).max(200).describe("The main title/question text displayed to users"),description:E().max(1e3).optional().describe("Optional detailed description or help text"),describe:E().max(2e3).optional().describe("LLM tool call description for better AI understanding and context"),required:rt().default(!1).describe("Whether this question must be answered"),errorMessage:E().max(500).optional().describe("Custom error message when validation fails"),validations:ht(rg).optional().default([]).describe("Array of validation rules to apply"),visibility:ht(ng).optional().default([]).describe("Conditions that control when this question is shown"),isFixed:rt().describe("Whether this question position is fixed or can be reordered"),sectionId:E().optional().describe("ID of the section this question belongs to"),status:ig.describe("Current status of the question (Draft, Published, etc.)")}).describe("Base schema for all question types with common properties"),cg=en.extend({type:wt("rating").describe("Must be exactly 'rating'"),showLabels:rt().optional().describe("Whether to show min/max labels"),minLabel:E().max(100).optional().describe("Label for the minimum rating value"),maxLabel:E().max(100).optional().describe("Label for the maximum rating value"),displayStyle:og.optional().describe("Visual style for rating display"),numberOfRatings:mt().int().min(1).max(10).describe("Number of rating options (1-10)"),representationSize:ag.optional().describe("Size of rating visual elements"),color:E().regex(/^#[0-9A-F]{6}$/i,"Must be a valid hex color").optional().describe("Hex color for rating elements")}).describe("Schema for rating questions with customizable display options"),dg=en.extend({type:wt("annotation").describe("Must be exactly 'annotation'"),annotationText:E().max(1e3).optional().describe("Text to display when annotation is provided"),noAnnotationText:E().max(500).optional().describe("Text to display when no annotation is provided")}).describe("Schema for annotation questions that provide additional context or instructions"),Lu=ye({id:E().describe("Unique identifier for this option (system time milliseconds)"),value:E().min(1).max(100).describe("The internal value used for this option"),label:E().min(1).max(200).describe("The display text shown to users for this option"),describe:E().max(500).optional().describe("LLM tool call description providing context about this option"),imageUrl:E().url().optional().describe("Optional image URL to display with this option")}).describe("Schema for individual options in choice-based questions"),Mu=Au(()=>ye({id:E().describe("Unique identifier for this nested option (system time milliseconds)"),value:E().min(1).max(100).describe("The internal value used for this nested option"),label:E().min(1).max(200).describe("The display text shown for this nested option"),describe:E().max(500).optional().describe("LLM tool call description for this nested option context"),imageUrl:E().url().optional().describe("Optional image URL for this nested option"),hint:E().max(500).optional().describe("Optional hint text to help users understand this nested option"),children:ht(Mu).optional().default([]).describe("Array of child options for hierarchical structure")}).describe("Schema for nested options with hierarchical structure support")),fg=en.extend({type:wt("single_choice").describe("Must be exactly 'single_choice'"),displayStyle:sg.optional().describe("Visual style for displaying options"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:ht(Lu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).describe("Schema for single-choice multiple selection questions"),mg=en.extend({type:wt("multiple_choice_multiple").describe("Must be exactly 'multiple_choice_multiple'"),displayStyle:ug.optional().describe("Visual style for displaying multiple options"),minSelections:mt().int().min(0).optional().describe("Minimum number of options that must be selected"),maxSelections:mt().int().min(1).optional().describe("Maximum number of options that can be selected"),randomizeOptions:rt().optional().default(!1).describe("Whether to randomize the order of options"),options:ht(Lu).min(1).max(50).describe("Array of options for user selection (1-50 options)")}).refine(e=>e.minSelections!==void 0&&e.maxSelections!==void 0?e.minSelections<=e.maxSelections:!0,{message:"minSelections cannot be greater than maxSelections",path:["minSelections"]}).describe("Schema for multiple-choice questions allowing multiple selections"),pg=en.extend({type:wt("nps").describe("Must be exactly 'nps'"),min:wt(0).describe("NPS always starts at 0"),max:wt(10).describe("NPS always ends at 10"),minLabel:E().max(100).optional().describe("Label for the minimum NPS value (0)"),maxLabel:E().max(100).optional().describe("Label for the maximum NPS value (10)"),scaleLabels:Qt(E().regex(/^\d+$/),E().max(50)).optional().describe("Custom labels for specific NPS values (0-10)"),prepopulatedValue:mt().int().min(0).max(10).optional().describe("Default value to pre-select (0-10)")}).refine(e=>e.scaleLabels?Object.keys(e.scaleLabels).every(o=>{const s=Number(o);return!isNaN(s)&&s>=0&&s<=10}):!0,{message:"scaleLabels keys must be between 0 and 10 (inclusive)",path:["scaleLabels"]}).describe("Schema for Net Promoter Score questions with 0-10 scale"),gg=en.extend({type:wt("short_answer").describe("Must be exactly 'short_answer'"),maxCharacters:mt().int().min(1).max(1e4).optional().describe("Maximum number of characters allowed"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),placeholder:E().max(200).optional().describe("Placeholder text shown in the input field"),enableRegexValidation:rt().optional().default(!1).describe("Whether to enable regex pattern validation"),regexPattern:E().optional().describe("Regular expression pattern for validation"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:E().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(1e4).optional().describe("Maximum tokens allowed for AI processing"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableRegexValidation&&!e.regexPattern),{message:"regexPattern is required when enableRegexValidation is true",path:["regexPattern"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for short answer questions with optional AI enhancement"),vg=en.extend({type:wt("long_text").describe("Must be exactly 'long_text'"),maxCharacters:mt().int().min(1).max(5e4).optional().describe("Maximum number of characters allowed (higher limit for long text)"),minCharacters:mt().int().min(0).optional().describe("Minimum number of characters required"),rows:mt().int().min(1).max(20).optional().describe("Number of textarea rows to display (1-20)"),placeholder:E().max(500).optional().describe("Placeholder text for the textarea (longer for long text)"),enableEnhanceWithAi:rt().optional().default(!1).describe("Whether to enable AI enhancement features"),promptTemplate:E().max(2e3).optional().describe("Template for AI enhancement prompts"),cooldownSeconds:mt().int().min(0).max(3600).optional().describe("Cooldown period between AI enhancements (0-3600 seconds)"),maxEnhancements:mt().int().min(1).max(10).optional().describe("Maximum number of AI enhancements allowed"),maxTokenAllowed:mt().int().min(1).max(25e3).optional().describe("Maximum tokens allowed for AI processing (higher for long text)"),minCharactersToEnhance:mt().int().min(1).optional().describe("Minimum characters needed to trigger AI enhancement")}).refine(e=>e.minCharacters!==void 0&&e.maxCharacters!==void 0?e.minCharacters<=e.maxCharacters:!0,{message:"minCharacters cannot be greater than maxCharacters",path:["minCharacters"]}).refine(e=>!(e.enableEnhanceWithAi&&!e.promptTemplate),{message:"promptTemplate is required when enableEnhanceWithAi is true",path:["promptTemplate"]}).describe("Schema for long answer questions with rich text support and AI enhancement"),hg=en.extend({type:wt("nested_selection").describe("Must be exactly 'nested_selection'"),placeholder:E().max(200).optional().describe("Placeholder text for the nested dropdown"),options:ht(Mu).min(1).max(100).describe("Array of nested options for hierarchical selection (1-100 options)"),displayStyle:wt("list").describe("Fixed display style for nested dropdowns"),choiceOrderOption:lg.optional().default("none").describe("How to order the nested choices"),preserveLastChoices:mt().int().min(0).max(10).optional().describe("Number of choice levels to preserve (0-10)"),prepopulatedValue:E().max(1e3).optional().describe("Default value to pre-populate"),allowOther:rt().optional().default(!1).describe('Whether to allow custom "other" options'),otherColumnName:E().max(100).optional().describe('Column name for storing custom "other" values'),maxDepth:mt().int().min(1).max(10).optional().describe("Maximum nesting depth allowed (1-10)"),cascadeLabels:rt().optional().default(!1).describe("Whether to cascade labels from parent options")}).refine(e=>!(e.allowOther&&!e.otherColumnName),{message:"otherColumnName is required when allowOther is true",path:["otherColumnName"]}).describe("Schema for nested dropdown questions with hierarchical option structure"),oa=Yi("type",[cg,dg,fg,mg,pg,gg,vg,hg]),bg=ye({markerNo:E(),timeline:E(),comment:E()}),yg=ye({fileType:E(),fileName:E(),markers:ht(bg)}),$g=ye({nps:mt().optional().describe("Net Promoter Score value (e.g., 0-10)"),nestedSelection:ht(E()).optional().describe("Array of selected nested option IDs"),longText:E().optional().describe("Long text answer, e.g., paragraph or essay"),shortAnswer:E().optional().describe("Short text answer, e.g., single sentence or word"),singleChoice:E().optional().describe("single selected option ID (for single choice questions)"),rating:mt().optional().describe("Star rating value (e.g., 1-5)"),multipleChoiceMultiple:ht(E()).optional().describe("Array of selected option IDs for multiple choice questions"),annotation:yg.optional().describe("Annotation object containing file and marker details"),others:E().optional().describe("For multiple choice questions and single choice questions, this is the value of the other option")}).describe("Flexible answer item supporting various question types and custom fields"),_g=$g,wg=Ut(["R","S"]).describe("Enumeration of feedback types: R=Recurring, O=One-time"),ek={RECURRING:"R",ONE_TIME:"S"},kg=Ut(["Y","N"]).describe("Yes/No enumeration using Y/N values"),tk={YES:"Y",NO:"N"},xg=Ut(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),rk={MINUTES:"minutes",HOURS:"hours",DAYS:"days",WEEKS:"weeks",MONTHS:"months",YEARS:"years"},Sg=ye({surveyType:wg.describe("Type of feedback: R for recurring, O for one-time"),showOnce:kg.describe("Whether the feedback should be shown only once per user"),stopWhenResponsesCount:E().regex(/^\d+$/,"Must be a valid number string").describe("Stop feedback when this number of responses is reached (as string)"),recurringValue:E().regex(/^\d+$/,"Must be a valid number string").describe("Value for recurring schedule (e.g., every 15 days)"),recurringUnit:xg.describe("Time unit for recurring schedule"),startDate:E().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Start date and time for the feedback in ISO format"),stopDate:E().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(\+|\-)\d{2}:\d{2}$/,"Must be a valid ISO date string with timezone").describe("Stop date and time for the feedback in ISO format")}).refine(e=>!(e.surveyType==="S"&&e.showOnce==="N"),{message:"One-time feedback must have showOnce set to 'Y'",path:["showOnce"]}).refine(e=>e.surveyType==="R"?parseInt(e.recurringValue)>0:!0,{message:"Recurring feedback must have a positive recurring value",path:["recurringValue"]}).refine(e=>{const r=new Date(e.startDate);return new Date(e.stopDate)>r},{message:"Stop date must be after start date",path:["stopDate"]}).describe("Schema defining frequency and scheduling properties for feedback"),Ig=ye({isShareable:rt().describe("Whether the feedback results can be shared externally"),isEmailShareable:rt().describe("Whether the feedback can be shared via email")}).describe("Schema defining external publishing and sharing properties for feedback"),zg=Ut(["P","D","A","S"]).describe("Publication status: P=Published, D=Draft, A=Archived, S=Stopped"),nk={PUBLISHED:"P",DRAFT:"D",ARCHIVED:"A",STOPPED:"S"},Ng=ye({formTitle:E().describe("Title of the feedback form"),formDescription:E().describe("Description of the feedback form"),isPublished:zg.describe("Publication status of the feedback form")}).describe("Schema defining feedback configuration properties"),tt=E().min(1).describe("Translated text content"),jg=ye({type:wt("rating").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum rating label translation"),maxLabel:tt.optional().describe("Maximum rating label translation")}).describe("Translation schema for rating questions"),Tg=ye({type:wt("single_choice").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for single choice questions"),Og=ye({type:wt("multiple_choice_multiple").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^option\..+\.(label|value)$/.test(o)),{message:"Additional keys must follow the pattern 'option.{id}.{label|value}'"}).describe("Translation schema for multiple choice questions"),Eg=ye({type:wt("nps").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),minLabel:tt.optional().describe("Minimum NPS label (0) translation"),maxLabel:tt.optional().describe("Maximum NPS label (10) translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","minLabel","maxLabel"].includes(o)).every(o=>/^scaleLabel\.\d+$/.test(o)),{message:"Additional keys must follow the pattern 'scaleLabel.{number}'"}).describe("Translation schema for NPS questions"),Pg=ye({type:wt("short_answer").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Input placeholder translation")}).describe("Translation schema for short answer questions"),Cg=ye({type:wt("long_text").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Textarea placeholder translation")}).describe("Translation schema for long answer questions"),Ug=ye({type:wt("nested_selection").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),placeholder:tt.optional().describe("Dropdown placeholder translation")}).catchall(tt).refine(e=>Object.keys(e).filter(o=>!["type","title","description","errorMessage","placeholder"].includes(o)).every(o=>/^nestedOption\..+\.(label|hint)$/.test(o)),{message:"Additional keys must follow the pattern 'nestedOption.{id}.{label|hint}'"}).describe("Translation schema for nested selection questions"),Ag=ye({type:wt("annotation").describe("Question type identifier"),title:tt.describe("Question title translation"),description:tt.optional().describe("Question description translation"),errorMessage:tt.optional().describe("Error message translation"),annotationText:tt.optional().describe("Annotation display text translation"),noAnnotationText:tt.optional().describe("No annotation display text translation")}).describe("Translation schema for annotation questions"),Dg=Hr([jg,Tg,Og,Eg,Pg,Cg,Ug,Ag]).describe("Union of all question type translation schemas"),ik=E().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),ok=Qt(ik,Dg).describe("Question translations keyed by language code"),Lg=Qt(E().uuid(),ok).describe("Question-centric translations keyed by question ID, then by language code"),Zu=Lg.describe("Question-centric translations at root level"),Mg=class{constructor(r,o="en"){this.translations=r,this.defaultLanguage=o}getQuestionTranslations(r,o){const s=this.translations[r];if(!s)return null;let t=s[o];return t||(t=s[this.defaultLanguage]),t||null}getTranslationText(r,o,s){const t=this.getQuestionTranslations(r,o);if(!t)return null;if(s in t){const a=t[s];return typeof a=="string"?a:null}return null}getQuestionLanguages(r){const o=this.translations[r];return o?Object.keys(o):[]}getAvailableLanguages(){const r=new Set;return Object.values(this.translations).forEach(o=>{Object.keys(o).forEach(s=>{r.add(s)})}),Array.from(r)}isLanguageSupportedForQuestion(r,o){const s=this.translations[r];return s?o in s:!1}isLanguageSupported(r){return this.getAvailableLanguages().includes(r)}getDefaultLanguage(){return this.defaultLanguage}getQuestionIds(){return Object.keys(this.translations)}getQuestionType(r,o){const s=o||this.defaultLanguage;return this.getQuestionTranslations(r,s)?.type||null}};Xr(Mg,"TranslationProvider");var Zg=Mg;function Rg(e,r="en"){return new Zg(e,r)}Xr(Rg,"createTranslationProvider");var qg=Ut(["fade","manual"]).describe("How the end screen should be dismissed (fade out or manual dismissal)"),ak={FADE:"fade",MANUAL:"manual"},Ru=ye({title:E().min(1).max(200).describe("The main title displayed on the welcome screen"),description:E().min(1).max(1e3).describe("Description text shown on the welcome screen"),buttonLabel:E().min(1).max(50).describe("Text displayed on the welcome screen button")}).describe("Schema for welcome screen configuration fields"),qu=ye({title:E().min(1).max(200).describe("The main title displayed on the end screen"),message:E().min(1).max(1e3).describe("Message text shown on the end screen"),buttonLabel:E().min(1).max(50).describe("Text displayed on the end screen button"),dismissBehavior:qg.describe("How the end screen should be dismissed (fade out or manual dismissal)"),fadeDuration:mt().int().min(0).max(1e4).describe("Duration in milliseconds for fade dismissal (0-10000)")}).describe("Schema for end screen configuration fields"),Fu=ye({title:E().min(1).max(200).describe("Translated title text for welcome screen"),description:E().min(1).max(1e3).describe("Translated description text for welcome screen"),buttonLabel:E().min(1).max(50).describe("Translated text for the welcome button label")}).describe("Schema for welcome screen translation fields"),Wu=ye({buttonLabel:E().min(1).max(50).describe("Translated text for the end button label"),title:E().min(1).max(200).describe("Translated title text for end screen"),message:E().min(1).max(1e3).describe("Translated message text for end screen")}).describe("Schema for end screen translation fields"),Vu=ye({pagination:rt().describe("Whether to show pagination for multi-page forms"),questionNumber:rt().describe("Whether to display question numbers"),pageTitle:rt().describe("Whether to show page titles in multi-page forms"),blockerFeedback:rt().describe("Whether to show blocker feedback for validation errors"),submitButtonLabel:E().min(1).max(50).describe("Text for the submit button"),previousButtonLabel:E().min(1).max(50).describe("Text for the previous button in pagination"),nextButtonLabel:E().min(1).max(50).describe("Text for the next button in pagination"),aiEnhancementSuccessMessage:E().min(1).max(100).describe("Message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:E().min(1).max(100).describe("Message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:E().min(1).max(100).describe("Message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration fields"),Qu=ye({value:E().min(1).max(10).describe("Language code (e.g., 'en', 'es', 'fr')"),label:E().min(1).max(50).describe("Display name for the language (e.g., 'English', 'Spanish', 'French')"),isFixed:rt().default(!1).describe("Whether this language is fixed and cannot be deleted by users")}).describe("Schema for individual language field with value, label, and fixed status"),aa=ht(Qu).describe("Schema for array of available languages"),Gu=ye({submitButtonLabel:E().min(1).max(50).describe("Translated text for the submit button"),previousButtonLabel:E().min(1).max(50).describe("Translated text for the previous button in pagination"),nextButtonLabel:E().min(1).max(50).describe("Translated text for the next button in pagination"),aiEnhancementSuccessMessage:E().min(1).max(100).describe("Translated message shown when AI enhancement is successful (max 100 characters)"),aiEnhancementCooldownErrorMessage:E().min(1).max(100).describe("Translated message shown when AI enhancement is on cooldown (max 100 characters)"),aiEnhancementMaxReachedErrorMessage:E().min(1).max(100).describe("Translated message shown when maximum AI enhancements reached (max 100 characters)")}).describe("Schema for other form configuration field translations"),Ju=Ut(["top-left","top-center","top-right","middle-left","middle-center","middle-right","bottom-left","bottom-center","bottom-right"]).describe("Available positions for widget placement"),sk={TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right",MIDDLE_LEFT:"middle-left",MIDDLE_CENTER:"middle-center",MIDDLE_RIGHT:"middle-right",BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right"},uk=Ut(["light","dark"]).describe("Available theme modes for the widget"),lk={LIGHT:"light",DARK:"dark"},Fg=ye({darkOverlay:rt().describe("Whether to show a dark overlay behind the widget"),closeButton:rt().describe("Whether to display a close button on the widget"),progressBar:rt().describe("Whether to show a progress bar indicating completion status"),showBranding:rt().describe("Whether to display branding elements on the widget"),customPosition:rt().describe("Whether custom positioning is enabled"),customIconPosition:rt().describe("Whether custom icon positioning is enabled"),customCss:E().optional().describe("Custom CSS link to apply for the feedback form")}).describe("Feature settings controlling widget UI behavior and appearance"),Bu=ye({brandColor:E().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #3366CC)").describe("Primary brand color in hex format"),overlayColor:E().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #FFFFFF)").describe("Overlay background color in hex format"),textColor:E().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,"Must be a valid hex color (e.g., #333333)").describe("Primary text color in hex format"),backgroundColor:Hr([E().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i),E().regex(/^rgba?\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*(?:,\s*[01](?:\.\d+)?)?\s*\)$/i)]).describe("Background color in hex format or rgba format (e.g., #1A1A1A or rgba(255,255,255, 1))")}).describe("Color scheme for a single theme"),Yu=ye({light:Bu,dark:Bu}).describe("Complete theme configuration with light and dark variants"),Ku=ye({themes:Yu.describe("Color themes for light and dark modes"),featureSettings:Fg.describe("UI feature settings controlling widget behavior"),selectedPosition:Ju.describe("Selected position for the main widget"),selectedIconPosition:Ju.describe("Selected position for the widget icon")}).describe("Complete theme and UI configuration including colors, features, and positioning"),Wg=ye({name:E().describe("The operator name (e.g., '=', '!=', 'contains', 'beginsWith', 'matches')"),label:E().describe("Human-readable label for the operator (e.g., 'equals', 'not equals', 'contains')")}).describe("Schema defining an operator for custom event fields"),Vg=ye({name:E().describe("The field name (e.g., 'event_name', 'add_to_cart', 'cart_item_number')"),label:E().describe("Human-readable label for the field"),placeholder:E().describe("Placeholder text for input fields"),operators:ht(Wg).min(1).describe("Array of available operators for this field")}).describe("Schema defining a custom event field with its operators"),Qg=ye({customEventFields:ht(Vg).optional().describe("Array of custom event fields with their operators and labels")}).describe("Schema defining metadata for conditional if clauses"),Gg=ye({query:E().describe("The structured query definition as a JSON string"),naturalLanguage:E().describe("Human-readable description of the query conditions"),jsonLogic:E().describe("JSON Logic representation of the query as a JSON string"),sqlQuery:E().describe("SQL representation of the query for database operations")}).describe("Schema defining query output structure with all fields as strings"),Jg=ye({id:E().describe("Unique identifier for this condition"),event:E().describe("The event that triggers evaluation of this condition (e.g., 'pageLoad', 'pageView', 'scroll', 'custom')"),queryOutput:Gg.describe("The query conditions to evaluate when the event occurs"),metadata:Qg.optional().describe("Optional metadata containing custom event fields and their configurations")}).describe("Schema defining the 'if' condition for auto-trigger logic"),Bg=ye({triggerType:E().describe("The type of action to perform (e.g., 'delay', 'scroll', 'immediately')"),delay:mt().int().min(0).optional().describe("Delay in seconds before performing the action"),scroll:Hr([E(),mt()]).optional().describe("Scroll position (percentage as string like '75%' or pixel value as number)")}).describe("Schema defining the action to perform when conditions are met"),Yg=ye({if:Jg.describe("The condition that must be met"),then:Bg.describe("The action to perform when the condition is met")}).describe("Schema defining a conditional when clause with if-then logic"),sa=ye({id:E().describe("Unique identifier for this filter condition"),category:E().describe("The category this filter belongs to (e.g., 'device', 'user', 'geo_location')"),property:E().describe("The property to filter on (e.g., 'device_type', 'age', 'country')"),operator:E().describe("The comparison operator (e.g., 'equals', 'greaterThan', 'lessThan')"),values:ht(E()).min(1).describe("Array of values to compare against"),tbl_key:E().describe("The database table key for this property")}).describe("Schema defining a single filter condition within a category"),Kg=ye({device:ht(sa).optional().describe("Array of device-specific filter conditions"),user:ht(sa).optional().describe("Array of user-specific filter conditions"),geo_location:ht(sa).optional().describe("Array of geo-location specific filter conditions")}).describe("Schema defining category-specific filters for audience targeting"),Hg=ye({applications:ht(E()).min(1).describe("Array of application names this targeting applies to"),userType:E().describe("The type of user this targeting applies to (e.g., 'both', 'new', 'returning')"),categorySpecificFilters:Kg.optional().describe("Optional category-specific filters for more granular targeting")}).describe("Schema defining who the audience targeting applies to"),Xg=ye({id:E().describe("Unique identifier for the audience segment"),name:E().min(1).max(200).describe("Display name for the audience segment"),isImportant:rt().describe("Whether this segment is marked as important for targeting"),when:ht(Yg).min(1).describe("Array of conditional when clauses with if-then logic"),who:Hg.describe("User criteria and conditions defining who belongs to this segment")}).describe("Schema defining an audience segment for targeting with conditional logic"),Hu=ye({isAuto:rt().describe("Whether automatic triggering is enabled for this audience"),isManual:rt().describe("Whether manual triggering is enabled for this audience"),segments:ht(Xg).min(0).describe("Array of audience segments for targeting conditions")}).refine(e=>e.isAuto||e.isManual,{message:"At least one of isAuto or isManual must be true",path:["isAuto"]}).describe("Schema defining audience trigger properties for form targeting"),ua=Yi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Qt(E(),Gu).optional().describe("Translations for other configuration field labels and buttons keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether other configuration properties are enabled"),otherFields:Vu.describe("Other form configuration fields including pagination, buttons, and display options"),translations:Qt(E(),Gu).describe("Translations for other configuration field labels and buttons keyed by language code")})]).describe("Schema for other configuration properties including fields and translations"),la=Yi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether welcome screen is enabled"),welcomeFields:Ru.optional().describe("Welcome screen configuration fields including title, description, and button label"),translations:Qt(E(),Fu).optional().describe("Translations for welcome screen content keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether welcome screen is enabled"),welcomeFields:Ru.describe("Welcome screen configuration fields including title, description, and button label"),translations:Qt(E(),Fu).describe("Translations for welcome screen content keyed by language code")})]).describe("Schema for welcome screen properties including fields and translations"),ca=Yi("isEnabled",[ye({isEnabled:wt(!1).describe("Whether end screen is enabled"),endFields:qu.optional().describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Qt(E(),Wu).optional().describe("Translations for end screen content keyed by language code")}),ye({isEnabled:wt(!0).describe("Whether end screen is enabled"),endFields:qu.describe("End screen configuration fields including title, message, button label, and dismissal behavior"),translations:Qt(E(),Wu).describe("Translations for end screen content keyed by language code")})]).describe("Schema for end screen properties including fields and translations"),ev=ye({themeConfiguration:Ku.describe("Theme configuration including colors, features, and positioning")}).describe("Schema for appearance properties including theme configuration"),ck=ye({feedbackConfigurationId:vp().describe("Unique identifier for the feedback configuration"),feedbackConfiguration:Ng.describe("Configuration properties for the feedback form"),questionnaireFields:ye({questions:Qt(E(),oa).describe("Collection of questions keyed by their string identifiers"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),selectedLanguages:aa.describe("Array of languages selected for this questionnaire"),translations:Zu.describe("Multi-language translations for questions and form content")}).describe("Fields defining the questionnaire structure, questions, sections, selected languages, and translations"),frequencyAndSchedulingProperties:Sg.describe("Properties controlling when and how often the feedback is shown"),externalPublishingProperties:Ig.describe("Properties controlling external sharing and publishing of feedback results"),audienceTriggerProperties:Hu.describe("Properties defining audience targeting and trigger conditions for the feedback form"),otherConfigurationProperties:ua.describe("Additional configuration properties including form display options and translations"),welcomeScreenProperties:la.describe("Welcome screen configuration including content and translations"),endScreenProperties:ca.describe("End screen configuration including content, dismissal behavior, and translations"),appearanceProperties:ev.describe("Appearance configuration including themes, colors, and UI feature settings")}).describe("Complete schema for all feedback-level properties including scheduling, publishing, audience targeting, configuration, screens, and appearance"),tv=ye({mandatoryFetchConfigAtPaths:ht(E()).describe("Array of paths where configuration must be fetched from server when navigated by user"),configSyncIntervalSeconds:mt().int().positive().describe("Interval in seconds for configuration synchronization between client and server"),disableAllSurvey:rt().describe("Flag to disable all surveys globally"),feedbackIntervalDuration:mt().int().positive().describe("Duration in seconds for feedback interval between two auto triggered feedbacks")}).describe("Master properties configuration for global survey settings"),rv=Ut(["light","dark","system"]).describe("Enumeration of supported theme modes"),dk={LIGHT:"light",DARK:"dark",SYSTEM:"system"},Hi=ye({$deviceType:E().describe("Type of device being used"),$timezone:E().describe("Device timezone (e.g., 'Asia/Calcutta')"),$theme:rv.describe("Current theme mode preference"),$os:E().describe("Operating system running on the device"),$osVersion:E().describe("Version of the operating system"),$appVersion:E().describe("Version of the application"),$app:E().describe("Browser or application being used"),$language:E().describe("Language preference (e.g., 'en-GB')")}).describe("Device information collected from the client"),Xi=ye({$sessionId:E().uuid().describe("Unique session identifier"),$timestamp:E().optional().describe("ISO timestamp of the session")}).describe("Session information for tracking user sessions"),fk=ye({deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information")}).describe("Combined device and session information"),nv=ye({$counter:Qt(E(),mt().int()).describe("Counter properties for user tracking (can be positive or negative)").optional(),$set:Qt(E(),Ko()).describe("Properties to set for the user").optional(),$setOnce:Qt(E(),Ko()).describe("Properties to set once for the user (won't overwrite existing values)").optional(),$unset:ht(E()).describe("Array of property names to unset/remove from the user").optional()}).loose().describe("User properties including counters, set operations, and other dynamic data"),da=ye({userName:E().email().describe("User's email address as username"),properties:nv.describe("User properties and counters")}).describe("User information including identification and properties"),iv=Ut(["V","S"]).describe("User action: V for view, S for submit"),mk={VIEW:"V",SUBMIT:"S"},fa=ye({feedbackIdentifier:E().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),completionTimeInSeconds:mt().int().min(0).describe("Time taken to complete the feedback in seconds"),userAction:iv.describe("Action performed by the user"),responseLanguageCode:E().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Configuration information for the feedback form"),ov=ye({questionId:E().uuid().describe("Unique identifier for the question"),answer:_g.describe("The answer provided for this question"),type:E().describe("Type of the question (e.g., 'rating', 'single_choice')"),error:E().optional().describe("Error message if any validation failed")}).describe("Response to a specific question in the feedback form"),av=ye({questions:ht(ov).min(1).describe("Array of question responses")}).describe("User responses to feedback questions"),sv=ye({customEventName:E().nullable().describe("Custom event name that triggered the feedback"),currentPath:E().describe("Current page path where feedback was triggered"),eventType:E().describe("Type of event that triggered the feedback")}).passthrough().describe("Properties of the trigger that matched for this feedback"),Xu=ye({formConfig:fa.describe("Form configuration information"),deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information"),userInfo:da.optional().describe("User information (optional)"),matchedTriggerProperties:sv.describe("Properties of the matched trigger"),customProperties:Qt(E(),Dn()).optional().describe("Custom properties for advanced use cases")}).describe("Base submit feedback request schema"),uv=Xu.extend({formConfig:fa.extend({userAction:wt("V").describe("Action performed by the user (view)")})}).strict().describe("View feedback request schema (no response required)"),lv=Xu.extend({formConfig:fa.extend({userAction:wt("S").describe("Action performed by the user (submit)")}),response:av.describe("User responses (required for submit)")}).strict().describe("Submit feedback request schema (response required)"),pk=Hr([uv,lv]).describe("Union schema for both view and submit feedback requests"),cv=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),feedbackTitle:E().describe("Title of the feedback configuration"),triggerProperties:Hu.describe("Trigger properties including auto/manual settings and audience segments"),appearanceProperties:ye({themes:ye({light:ye({brandColor:E().describe("Brand color for light theme"),overlayColor:E().describe("Overlay color for light theme"),textColor:E().describe("Text color for light theme"),backgroundColor:E().describe("Background color for light theme")}).describe("Light theme colors"),dark:ye({brandColor:E().describe("Brand color for dark theme"),overlayColor:E().describe("Overlay color for dark theme"),textColor:E().describe("Text color for dark theme"),backgroundColor:E().describe("Background color for dark theme")}).describe("Dark theme colors")}).nullable().optional().describe("Theme configuration (optional)"),featureSettings:ye({darkOverlay:rt().describe("Whether to show dark overlay"),closeButton:rt().describe("Whether to show close button"),progressBar:rt().describe("Whether to show progress bar"),showBranding:rt().describe("Whether to show branding"),customPosition:rt().describe("Whether custom position is enabled"),customIconPosition:rt().describe("Whether custom icon position is enabled"),customCss:E().nullable().optional().describe("Custom CSS link (optional)")}).describe("Feature settings for the feedback form"),selectedIconPosition:E().describe("Selected position for the feedback icon"),selectedPosition:E().describe("Selected position for the feedback form")}).describe("Appearance properties for the feedback form")}).describe("Individual feedback configuration item in the list"),dv=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),responseLanguageCode:E().length(2).describe("Language code for the response (e.g., 'en', 'es')")}).describe("Form configuration for fetching feedback details"),gk=ye({deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information"),userInfo:da.optional().describe("User information (optional)"),force:rt().optional().describe("Forcefully fetch eligible feedback list (optional)")}).strict().describe("Request schema for fetching available feedback configurations"),vk=ye({formConfig:dv.describe("Form configuration for the specific feedback"),deviceInfo:Hi.describe("Device information"),sessionInfo:Xi.describe("Session information"),userInfo:da.optional().describe("User information (optional)")}).strict().describe("Request schema for fetching specific feedback form details"),fv=ye({formTitle:E().describe("Title of the feedback form"),formDescription:E().describe("Description of the feedback form")}).describe("Form configuration response with title and description"),mv=ye({questions:Qt(E(),oa).describe("Collection of questions keyed by their string identifiers"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),translations:Qt(E(),Ko()).describe("Translations object (can be empty or contain language-specific translations)"),selectedLanguages:aa.describe("Array of languages selected for this questionnaire")}).describe("Questionnaire fields response including questions, sections, translations, and selected languages"),hk=ye({feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),feedbackIdentifier:E().uuid().describe("Unique identifier for this specific feedback instance"),formConfiguration:fv.describe("Form configuration with title and description"),questionnaireFields:mv.describe("Questionnaire structure including questions, sections, translations, and languages"),otherConfigurationProperties:ua.describe("Other configuration properties using existing schema"),welcomeScreenProperties:la.describe("Welcome screen properties using existing schema"),endScreenProperties:ca.describe("End screen properties using existing schema")}).strict().describe("Complete response schema for fetchFeedbackDetails API using existing field schemas"),bk=ye({masterProperties:tv.describe("Master properties for global survey settings"),feedbackConfiguration:ht(cv).describe("Array of available feedback configurations")}).strict().describe("Response schema for fetchConfigurationList API"),yk=ye({questionId:E().describe("Unique identifier for the question"),identifier:E().uuid().describe("Unique identifier for the feedback instance"),feedbackConfigurationId:E().uuid().describe("Unique identifier for the feedback configuration"),userText:E().describe("Original text input from the user")}).strict().describe("Request schema for refining user text input"),pv=ye({userText:E().describe("Original text input from the user"),refinedText:E().describe("Refined/improved version of the user text")}).describe("Data containing original and refined text"),$k=ye({success:rt().describe("Indicates whether the operation was successful"),code:E().describe("Response code indicating the status"),message:E().describe("Human-readable message describing the result"),messageId:E().describe("Unique identifier for the response message"),data:pv.describe("Response data containing original and refined text"),error:E().optional().describe("Error message if the operation failed (optional)")}).strict().describe("Response schema for refine text API operation");function ci(e,r){if(e===null||typeof e>"u"||typeof e!="object")return e;const o=Array.isArray(e)?[]:{};for(const[s,t]of Object.entries(e)){let a=s;typeof s=="string"&&!s.includes("-")&&(a=r(s)),o[a]=Array.isArray(t)?t.map(f=>typeof f=="object"&&!(f instanceof Uint8Array)&&!(f instanceof Date)?ci(f,r):f):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?ci(t,r):t}return o}Xr(ci,"convertObject");function ma(e){return e.length===1?e.toLowerCase():e.replace(/^([A-Z])/,r=>r[0].toLowerCase()).replace(/[_-]([a-z0-9])/g,r=>r[1].toUpperCase())}Xr(ma,"toCamel");function gv(e){return ci(e,ma)}Xr(gv,"objectToCamel");function el(e){let r=e,o=0;for(;(/([a-z])([0-9])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/([a-z])([0-9])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;for(;(/(.+?)([A-Z])/.exec(r)?.length||0)>2&&o<10;)r=r.replace(/(.+?)([A-Z])/,(s,t,a)=>`${t.toLowerCase()}_${a.toLowerCase()}`),o+=1;return r.toLowerCase()}Xr(el,"toSnake");function vv(e){return ci(e,el)}Xr(vv,"objectToSnake");function tl(e){return ma(e).replace(/^([a-z])/,r=>r[0].toUpperCase())}Xr(tl,"toPascal");function hv(e){return ci(e,tl)}Xr(hv,"objectToPascal");var bv=Ut(["light","dark"]).describe("Current theme mode of the application"),_k={LIGHT:"light",DARK:"dark"},wk=ye({theme:Yu.describe("Theme configuration including light and dark theme colors"),currentMode:bv.describe("Current theme mode (light or dark)"),currentLanguage:Qu.describe("Currently selected language configuration"),questions:Qt(E(),oa).describe("Collection of questions keyed by their string identifiers"),questionLanguages:aa.describe("Available languages for questions"),otherConfigurationProperties:ua.describe("Other configuration properties including form display options and translations"),welcomeScreenProperties:la.optional().describe("Welcome screen configuration (optional)"),endScreenProperties:ca.optional().describe("End screen configuration (optional)"),translations:Zu.optional().describe("Multi-language translations for questions and form content (optional)"),onSectionChange:ra({input:[mt()],output:zu()}).optional().describe("Optional callback function triggered when section changes"),onClose:ra({input:[],output:zu()}).optional().describe("Optional callback function triggered when the form is closed"),sections:ht(ia).describe("Array of sections that organize questions into logical groups"),themeSettings:Ku.describe("Complete theme configuration including colors, features, and positioning")}).describe("Schema for application props interface containing all form configuration and state");const kk=Cb(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:bg,AnnotationSchema:yg,AnswerItemSchema:$g,AnswerSchema:_g,ChoiceOrderOptions:Xw,CurrentModes:_k,DeviceThemes:dk,DismissBehaviors:ak,EndFieldsTranslationSchema:Wu,EndScreenFieldsSchema:qu,LanguageFieldSchema:Qu,LanguagesSchema:aa,MultipleChoiceDisplayStyles:Kw,MultipleChoiceMultipleDisplayStyles:Hw,OtherFieldsSchema:Vu,OtherFieldsTranslationSchema:Gu,Positions:sk,PublicationStatuses:nk,QuestionStatuses:Jw,QuestionTypes:Ww,RatingDisplayStyles:Bw,RatingRepresentationSizes:Yw,RecurringUnits:rk,SurveyTypes:ek,ThemeModes:lk,TranslationProvider:Zg,UserActions:mk,ValidationRuleTypes:Vw,VisibilityConditionOperators:Gw,WelcomeFieldsTranslationSchema:Fu,WelcomeScreenFieldsSchema:Ru,YesNoValues:tk,annotationQuestionSchema:dg,annotationQuestionTranslationSchema:Ag,appPropsSchema:wk,appearancePropertiesSchema:ev,audienceSegmentSchema:Xg,audienceTriggerPropertiesSchema:Hu,baseSubmitFeedbackSchema:Xu,categorySpecificFiltersSchema:Kg,choiceOrderOptionSchema:lg,combinedQuestionSchema:oa,conditionalIfMetadataSchema:Qg,conditionalIfSchema:Jg,conditionalWhenSchema:Yg,createTranslationProvider:Rg,currentModeSchema:bv,customEventFieldOperatorSchema:Wg,customEventFieldSchema:Vg,deviceInfoSchema:Hi,deviceSessionInfoSchema:fk,deviceThemeSchema:rv,dismissBehaviorSchema:qg,endScreenPropertiesSchema:ca,externalPublishingPropertiesSchema:Ig,featureSettingsSchema:Fg,feedbackConfigurationItemSchema:cv,feedbackConfigurationSchema:Ng,feedbackRequestSchema:pk,fetchConfigurationListResponseSchema:bk,fetchConfigurationListSchema:gk,fetchFeedbackDetailsResponseSchema:hk,fetchFeedbackDetailsSchema:vk,fetchFormConfigSchema:dv,filterConditionSchema:sa,formConfigSchema:fa,formConfigurationResponseSchema:fv,formPropertiesSchema:ck,frequencyAndSchedulingPropertiesSchema:Sg,longAnswerQuestionSchema:vg,longAnswerQuestionTranslationSchema:Cg,masterPropertiesSchema:tv,matchedTriggerPropertiesSchema:sv,multipleChoiceDisplayStyleSchema:sg,multipleChoiceMultipleDisplayStyleSchema:ug,multipleChoiceMultipleQuestionSchema:mg,multipleChoiceQuestionTranslationSchema:Og,multipleChoiceSingleQuestionSchema:fg,nestedDropdownQuestionSchema:hg,nestedOptionSchema:Mu,nestedSelectionQuestionTranslationSchema:Ug,npsQuestionSchema:pg,npsQuestionTranslationSchema:Eg,objectToCamel:gv,objectToPascal:hv,objectToSnake:vv,otherConfigurationPropertiesSchema:ua,positionSchema:Ju,publicationStatusSchema:zg,queryOutputSchema:Gg,questionCentricTranslationsSchema:Lg,questionOptionSchema:Lu,questionResponseSchema:ov,questionSchema:en,questionStatusSchema:ig,questionTranslationSchema:Dg,questionTypeSchema:eg,questionnaireFieldsResponseSchema:mv,ratingDisplayStyleSchema:og,ratingQuestionSchema:cg,ratingQuestionTranslationSchema:jg,ratingRepresentationSizeSchema:ag,recurringUnitSchema:xg,refineTextDataSchema:pv,refineTextParamsSchema:yk,refineTextResponseSchema:$k,responseSchema:av,sectionSchema:ia,sessionInfoSchema:Xi,shortAnswerQuestionSchema:gg,shortAnswerQuestionTranslationSchema:Pg,singleChoiceQuestionTranslationSchema:Tg,submitFeedbackSchema:lv,surveyTypeSchema:wg,themeColorsSchema:Bu,themeConfigurationSchema:Ku,themeModeSchema:uk,themesSchema:Yu,toCamel:ma,toPascal:tl,toSnake:el,translationEntrySchema:tt,translationsSchema:Zu,triggerActionSchema:Bg,userActionSchema:iv,userInfoSchema:da,userPropertiesSchema:nv,validationRuleSchema:rg,validationRuleTypeSchema:tg,viewFeedbackSchema:uv,visibilityConditionSchema:ng,welcomeScreenPropertiesSchema:la,whoSchema:Hg,yesNoSchema:kg,z:qw},Symbol.toStringTag,{value:"Module"})));var xk=Pi.exports,yv;function Sk(){return yv||(yv=1,(function(e,r){(function(o,s){s(r,kk)})(xk,(function(o,s){typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");let t=!1,a=!1;function f(){t=!0}f();const w=1,q=2,K=4,me=8,le=16,Re=1,he=2,Y=4,Ie=8,Ae=16,pt=1,ut=2,ct="[",vt="[!",or="]",Wr={},Ft=Symbol(),pa="http://www.w3.org/1999/xhtml",rl="http://www.w3.org/2000/svg",ga="@attach",eo=!1;var pn=Array.isArray,nl=Array.prototype.indexOf,Ln=Array.from,Mn=Object.keys,Vr=Object.defineProperty,Sr=Object.getOwnPropertyDescriptor,to=Object.getOwnPropertyDescriptors,ro=Object.prototype,pe=Array.prototype,Be=Object.getPrototypeOf,zt=Object.isExtensible;function At(i){return typeof i=="function"}const gt=()=>{};function Ir(i){return i()}function Zn(i){for(var n=0;n<i.length;n++)i[n]()}function di(){var i,n,u=new Promise((l,d)=>{i=l,n=d});return{promise:u,resolve:i,reject:n}}function Gt(i,n){if(Array.isArray(i))return i;if(!(Symbol.iterator in i))return Array.from(i);const u=[];for(const l of i)if(u.push(l),u.length===n)break;return u}const Zt=2,Rn=4,fi=8,qn=16,tn=32,gn=64,il=128,zr=256,va=512,er=1024,br=2048,rn=4096,Ar=8192,Fn=16384,ol=32768,Wn=65536,$v=1<<17,Nk=1<<18,Vn=1<<19,_v=1<<20,al=1<<21,ha=1<<22,Qn=1<<23,Qr=Symbol("$state"),sl=Symbol("legacy props"),jk=Symbol(""),no=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Tk=1,ba=3,Gn=8;function ul(i){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ok(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ek(i){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pk(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Ck(i){throw new Error("https://svelte.dev/e/effect_orphan")}function Uk(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ak(){throw new Error("https://svelte.dev/e/hydration_failed")}function Dk(i){throw new Error("https://svelte.dev/e/props_invalid_value")}function Lk(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Mk(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zk(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Rk(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function ya(i){console.warn("https://svelte.dev/e/hydration_mismatch")}function qk(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Fk(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let De=!1;function ar(i){De=i}let Je;function Yt(i){if(i===null)throw ya(),Wr;return Je=i}function nn(){return Yt(Jr(Je))}function L(i){if(De){if(Jr(Je)!==null)throw ya(),Wr;Je=i}}function yr(i=1){if(De){for(var n=i,u=Je;n--;)u=Jr(u);Je=u}}function $a(i=!0){for(var n=0,u=Je;;){if(u.nodeType===Gn){var l=u.data;if(l===or){if(n===0)return u;n-=1}else(l===ct||l===vt)&&(n+=1)}var d=Jr(u);i&&u.remove(),u=d}}function wv(i){if(!i||i.nodeType!==Gn)throw ya(),Wr;return i.data}function kv(i){return i===this.v}function xv(i,n){return i!=i?n==n:i!==n||i!==null&&typeof i=="object"||typeof i=="function"}function Sv(i){return!xv(i,this.v)}const Wk=[];function Vk(i,n=!1,u=!1){return _a(i,new Map,"",Wk,null,u)}function _a(i,n,u,l,d=null,m=!1){if(typeof i=="object"&&i!==null){var p=n.get(i);if(p!==void 0)return p;if(i instanceof Map)return new Map(i);if(i instanceof Set)return new Set(i);if(pn(i)){var g=Array(i.length);n.set(i,g),d!==null&&n.set(d,g);for(var v=0;v<i.length;v+=1){var b=i[v];v in i&&(g[v]=_a(b,n,u,l,null,m))}return g}if(Be(i)===ro){g={},n.set(i,g),d!==null&&n.set(d,g);for(var h in i)g[h]=_a(i[h],n,u,l,null,m);return g}if(i instanceof Date)return structuredClone(i);if(typeof i.toJSON=="function"&&!m)return _a(i.toJSON(),n,u,l,i)}if(i instanceof EventTarget)return i;try{return structuredClone(i)}catch{return i}}let xt=null;function mi(i){xt=i}function Iv(i){return ll().get(i)}function Qk(i,n){return ll().set(i,n),n}function Gk(i){return ll().has(i)}function Ye(i,n=!1,u){xt={p:xt,c:null,e:null,s:i,x:null,l:t&&!n?{s:null,u:null,$:[]}:null}}function Ke(i){var n=xt,u=n.e;if(u!==null){n.e=null;for(var l of u)Kv(l)}return i!==void 0&&(n.x=i),xt=n.p,i??{}}function io(){return!t||xt!==null&&xt.l===null}function ll(i){return xt===null&&ul(),xt.c??=new Map(Jk(xt)||void 0)}function Jk(i){let n=i.p;for(;n!==null;){const u=n.c;if(u!==null)return u;n=n.p}return null}let Jn=[];function zv(){var i=Jn;Jn=[],Zn(i)}function on(i){if(Jn.length===0&&!oo){var n=Jn;queueMicrotask(()=>{n===Jn&&zv()})}Jn.push(i)}function Bk(){for(;Jn.length>0;)zv()}const Yk=new WeakMap;function Nv(i){var n=Xe;if(n===null)return at.f|=Qn,i;if((n.f&ol)===0){if((n.f&il)===0)throw!n.parent&&i instanceof Error&&jv(i),i;n.b.error(i)}else pi(i,n)}function pi(i,n){for(;n!==null;){if((n.f&il)!==0)try{n.b.error(i);return}catch(u){i=u}n=n.parent}throw i instanceof Error&&jv(i),i}function jv(i){const n=Yk.get(i);n&&(Vr(i,"message",{value:n.message}),Vr(i,"stack",{value:n.stack}))}const wa=new Set;let Tt=null,ka=null,cl=new Set,Gr=[],xa=null,dl=!1,oo=!1;class Dr{current=new Map;#e=new Map;#t=new Set;#n=0;#o=null;#i=[];#a=[];#r=[];#s=[];#u=[];#c=[];skipped_effects=new Set;process(n){Gr=[],ka=null;for(const d of n)this.#d(d);if(this.#n===0){this.#f();var u=this.#a,l=this.#r;this.#a=[],this.#r=[],this.#s=[],ka=this,Tt=null,Ov(u),Ov(l),ka=null,this.#o?.resolve()}else this.#l(this.#a),this.#l(this.#r),this.#l(this.#s);for(const d of this.#i)hi(d);this.#i=[]}#d(n){n.f^=er;for(var u=n.first;u!==null;){var l=u.f,d=(l&(tn|gn))!==0,m=d&&(l&er)!==0,p=m||(l&Ar)!==0||this.skipped_effects.has(u);if(!p&&u.fn!==null){d?u.f^=er:(l&Rn)!==0?this.#r.push(u):(l&er)===0&&((l&ha)!==0&&u.b?.is_pending()?this.#i.push(u):co(u)&&((u.f&qn)!==0&&this.#s.push(u),hi(u)));var g=u.first;if(g!==null){u=g;continue}}var v=u.parent;for(u=u.next;u===null&&v!==null;)u=v.next,v=v.parent}}#l(n){for(const u of n)((u.f&br)!==0?this.#u:this.#c).push(u),rr(u,er);n.length=0}capture(n,u){this.#e.has(n)||this.#e.set(n,u),this.current.set(n,n.v)}activate(){Tt=this}deactivate(){Tt=null}flush(){if(Gr.length>0){if(this.activate(),Tv(),Tt!==null&&Tt!==this)return}else this.#n===0&&this.#f();this.deactivate();for(const n of cl)if(cl.delete(n),n(),Tt!==null)break}#f(){for(const n of this.#t)n();if(this.#t.clear(),wa.size>1){this.#e.clear();let n=!0;for(const u of wa){if(u===this){n=!1;continue}for(const[l,d]of this.current){if(u.current.has(l))if(n)u.current.set(l,d);else continue;Ev(l)}if(Gr.length>0){Tt=u;for(const l of Gr)u.#d(l);Gr=[]}}Tt=null}wa.delete(this)}increment(){this.#n+=1}decrement(){this.#n-=1;for(const n of this.#u)rr(n,br),Yn(n);for(const n of this.#c)rr(n,rn),Yn(n);this.flush()}add_callback(n){this.#t.add(n)}settled(){return(this.#o??=di()).promise}static ensure(){if(Tt===null){const n=Tt=new Dr;wa.add(Tt),oo||Dr.enqueue(()=>{Tt===n&&n.flush()})}return Tt}static enqueue(n){on(n)}static apply(n){return gt}}function dt(i){var n=oo;oo=!0;try{for(var u;;){if(Bk(),Gr.length===0&&(Tt?.flush(),Gr.length===0))return xa=null,u;Tv()}}finally{oo=n}}function Tv(){var i=vi;dl=!0;try{var n=0;for(ih(!0);Gr.length>0;){var u=Dr.ensure();if(n++>1e3){var l,d;Kk()}u.process(Gr),vn.clear()}}finally{dl=!1,ih(i),xa=null}}function Kk(){try{Uk()}catch(i){pi(i,xa)}}let Bn=null;function Ov(i){var n=i.length;if(n!==0){for(var u=0;u<n;){var l=i[u++];if((l.f&(Fn|Ar))===0&&co(l)&&(Bn=[],hi(l),l.deps===null&&l.first===null&&l.nodes_start===null&&(l.teardown===null&&l.ac===null?th(l):l.fn=null),Bn?.length>0)){vn.clear();for(const d of Bn)hi(d);Bn=[]}}Bn=null}}function Ev(i){if(i.reactions!==null)for(const n of i.reactions){const u=n.f;(u&Zt)!==0?Ev(n):(u&(ha|qn))!==0&&(rr(n,br),Yn(n))}}function Yn(i){for(var n=xa=i;n.parent!==null;){n=n.parent;var u=n.f;if(dl&&n===Xe&&(u&qn)!==0)return;if((u&(gn|tn))!==0){if((u&er)===0)return;n.f^=er}}Gr.push(n)}function Pv(i){let n=0,u=hn(0),l;return()=>{lx()&&(c(u),Kn(()=>(n===0&&(l=U(()=>i(()=>so(u)))),n+=1,()=>{on(()=>{n-=1,n===0&&(l?.(),l=void 0,so(u))})})))}}var Hk=Wn|Vn|il;function Xk(i,n,u){new ex(i,n,u)}class ex{parent;#e=!1;#t;#n=De?Je:null;#o;#i;#a;#r=null;#s=null;#u=null;#c=null;#d=0;#l=0;#f=!1;#m=null;#h=()=>{this.#m&&gi(this.#m,this.#d)};#b=Pv(()=>(this.#m=hn(this.#d),()=>{this.#m=null}));constructor(n,u,l){this.#t=n,this.#o=u,this.#i=l,this.parent=Xe.b,this.#e=!!this.#o.pending,this.#a=yn(()=>{if(Xe.b=this,De){const d=this.#n;nn(),d.nodeType===Gn&&d.data===vt?this.#$():this.#y()}else{try{this.#r=tr(()=>l(this.#t))}catch(d){this.error(d)}this.#l>0?this.#g():this.#e=!1}},Hk),De&&(this.#t=Je)}#y(){try{this.#r=tr(()=>this.#i(this.#t))}catch(n){this.error(n)}this.#e=!1}#$(){const n=this.#o.pending;n&&(this.#s=tr(()=>n(this.#t)),Dr.enqueue(()=>{this.#r=this.#p(()=>(Dr.ensure(),tr(()=>this.#i(this.#t)))),this.#l>0?this.#g():($n(this.#s,()=>{this.#s=null}),this.#e=!1)}))}is_pending(){return this.#e||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#o.pending}#p(n){var u=Xe,l=at,d=xt;jr(this.#a),cr(this.#a),mi(this.#a.ctx);try{return n()}catch(m){return Nv(m),null}finally{jr(u),cr(l),mi(d)}}#g(){const n=this.#o.pending;this.#r!==null&&(this.#c=document.createDocumentFragment(),tx(this.#r,this.#c)),this.#s===null&&(this.#s=tr(()=>n(this.#t)))}#v(n){if(!this.has_pending_snippet()){this.parent&&this.parent.#v(n);return}this.#l+=n,this.#l===0&&(this.#e=!1,this.#s&&$n(this.#s,()=>{this.#s=null}),this.#c&&(this.#t.before(this.#c),this.#c=null),on(()=>{Dr.ensure().flush()}))}update_pending_count(n){this.#v(n),this.#d+=n,cl.add(this.#h)}get_effect_pending(){return this.#b(),c(this.#m)}error(n){var u=this.#o.onerror;let l=this.#o.failed;if(this.#f||!u&&!l)throw n;this.#r&&(Kt(this.#r),this.#r=null),this.#s&&(Kt(this.#s),this.#s=null),this.#u&&(Kt(this.#u),this.#u=null),De&&(Yt(this.#n),yr(),Yt($a()));var d=!1,m=!1;const p=()=>{if(d){Fk();return}d=!0,m&&Rk(),Dr.ensure(),this.#d=0,this.#u!==null&&$n(this.#u,()=>{this.#u=null}),this.#e=this.has_pending_snippet(),this.#r=this.#p(()=>(this.#f=!1,tr(()=>this.#i(this.#t)))),this.#l>0?this.#g():this.#e=!1};var g=at;try{cr(null),m=!0,u?.(n,p),m=!1}catch(v){pi(v,this.#a&&this.#a.parent)}finally{cr(g)}l&&on(()=>{this.#u=this.#p(()=>{this.#f=!0;try{return tr(()=>{l(this.#t,()=>n,()=>p)})}catch(v){return pi(v,this.#a.parent),null}finally{this.#f=!1}})})}}function tx(i,n){for(var u=i.nodes_start,l=i.nodes_end;u!==null;){var d=u===l?null:Jr(u);n.append(u),u=d}}function Cv(i,n,u){const l=io()?ao:Le;if(n.length===0){u(i.map(l));return}var d=Tt,m=Xe,p=rx(),g=De;Promise.all(n.map(v=>nx(v))).then(v=>{p();try{u([...i.map(l),...v])}catch(b){(m.f&Fn)===0&&pi(b,m)}g&&ar(!1),d?.deactivate(),Uv()}).catch(v=>{pi(v,m)})}function rx(){var i=Xe,n=at,u=xt,l=Tt,d=De;if(d)var m=Je;return function(){jr(i),cr(n),mi(u),l?.activate(),d&&(ar(!0),Yt(m))}}function Uv(){jr(null),cr(null),mi(null)}function ao(i){var n=Zt|br,u=at!==null&&(at.f&Zt)!==0?at:null;return Xe===null||u!==null&&(u.f&zr)!==0?n|=zr:Xe.f|=Vn,{ctx:xt,deps:null,effects:null,equals:kv,f:n,fn:i,reactions:null,rv:0,v:Ft,wv:0,parent:u??Xe,ac:null}}function nx(i,n){let u=Xe;u===null&&Ok();var l=u.b,d=void 0,m=hn(Ft),p=!at,g=new Map;return fx(()=>{var v=di();d=v.promise;try{Promise.resolve(i()).then(v.resolve,v.reject)}catch(y){v.reject(y)}var b=Tt,h=l.is_pending();p&&(l.update_pending_count(1),h||(b.increment(),g.get(b)?.reject(no),g.set(b,v)));const k=(y,I=void 0)=>{h||b.activate(),I?I!==no&&(m.f|=Qn,gi(m,I)):((m.f&Qn)!==0&&(m.f^=Qn),gi(m,y)),p&&(l.update_pending_count(-1),h||b.decrement()),Uv()};v.promise.then(k,y=>k(null,y||"unknown"))}),gl(()=>{for(const v of g.values())v.reject(no)}),new Promise(v=>{function b(h){function k(){h===d?v(m):b(d)}h.then(k,k)}b(d)})}function lt(i){const n=ao(i);return ah(n),n}function Le(i){const n=ao(i);return n.equals=Sv,n}function Av(i){var n=i.effects;if(n!==null){i.effects=null;for(var u=0;u<n.length;u+=1)Kt(n[u])}}function ix(i){for(var n=i.parent;n!==null;){if((n.f&Zt)===0)return n;n=n.parent}return null}function fl(i){var n,u=Xe;jr(ix(i));try{Av(i),n=dh(i)}finally{jr(u)}return n}function Dv(i){var n=fl(i);if(i.equals(n)||(i.v=n,i.wv=lh()),!Hn){var u=(_n||(i.f&zr)!==0)&&i.deps!==null?rn:er;rr(i,u)}}const vn=new Map;function hn(i,n){var u={f:0,v:i,reactions:null,equals:kv,rv:0,wv:0};return u}function Lr(i,n){const u=hn(i);return ah(u),u}function X(i,n=!1,u=!0){const l=hn(i);return n||(l.equals=Sv),t&&u&&xt!==null&&xt.l!==null&&(xt.l.s??=[]).push(l),l}function Lv(i,n){return $(i,U(()=>c(i))),n}function $(i,n,u=!1){at!==null&&(!Rr||(at.f&$v)!==0)&&io()&&(at.f&(Zt|qn|ha|$v))!==0&&!an?.includes(i)&&Zk();let l=u?bn(n):n;return gi(i,l)}function gi(i,n){if(!i.equals(n)){var u=i.v;Hn?vn.set(i,n):vn.set(i,u),i.v=n;var l=Dr.ensure();l.capture(i,u),(i.f&Zt)!==0&&((i.f&br)!==0&&fl(i),rr(i,(i.f&zr)===0?er:rn)),i.wv=lh(),Zv(i,br),io()&&Xe!==null&&(Xe.f&er)!==0&&(Xe.f&(tn|gn))===0&&(Tr===null?gx([i]):Tr.push(i))}return n}function Mv(i,n=1){var u=c(i),l=n===1?u++:u--;return $(i,u),l}function so(i){$(i,i.v+1)}function Zv(i,n){var u=i.reactions;if(u!==null)for(var l=io(),d=u.length,m=0;m<d;m++){var p=u[m],g=p.f;if(!(!l&&p===Xe)){var v=(g&br)===0;v&&rr(p,n),(g&Zt)!==0?Zv(p,rn):v&&((g&qn)!==0&&Bn!==null&&Bn.push(p),Yn(p))}}}function bn(i){if(typeof i!="object"||i===null||Qr in i)return i;const n=Be(i);if(n!==ro&&n!==pe)return i;var u=new Map,l=pn(i),d=Lr(0),m=Xn,p=g=>{if(Xn===m)return g();var v=at,b=Xn;cr(null),uh(m);var h=g();return cr(v),uh(b),h};return l&&u.set("length",Lr(i.length)),new Proxy(i,{defineProperty(g,v,b){(!("value"in b)||b.configurable===!1||b.enumerable===!1||b.writable===!1)&&Lk();var h=u.get(v);return h===void 0?h=p(()=>{var k=Lr(b.value);return u.set(v,k),k}):$(h,b.value,!0),!0},deleteProperty(g,v){var b=u.get(v);if(b===void 0){if(v in g){const h=p(()=>Lr(Ft));u.set(v,h),so(d)}}else $(b,Ft),so(d);return!0},get(g,v,b){if(v===Qr)return i;var h=u.get(v),k=v in g;if(h===void 0&&(!k||Sr(g,v)?.writable)&&(h=p(()=>{var I=bn(k?g[v]:Ft),x=Lr(I);return x}),u.set(v,h)),h!==void 0){var y=c(h);return y===Ft?void 0:y}return Reflect.get(g,v,b)},getOwnPropertyDescriptor(g,v){var b=Reflect.getOwnPropertyDescriptor(g,v);if(b&&"value"in b){var h=u.get(v);h&&(b.value=c(h))}else if(b===void 0){var k=u.get(v),y=k?.v;if(k!==void 0&&y!==Ft)return{enumerable:!0,configurable:!0,value:y,writable:!0}}return b},has(g,v){if(v===Qr)return!0;var b=u.get(v),h=b!==void 0&&b.v!==Ft||Reflect.has(g,v);if(b!==void 0||Xe!==null&&(!h||Sr(g,v)?.writable)){b===void 0&&(b=p(()=>{var y=h?bn(g[v]):Ft,I=Lr(y);return I}),u.set(v,b));var k=c(b);if(k===Ft)return!1}return h},set(g,v,b,h){var k=u.get(v),y=v in g;if(l&&v==="length")for(var I=b;I<k.v;I+=1){var x=u.get(I+"");x!==void 0?$(x,Ft):I in g&&(x=p(()=>Lr(Ft)),u.set(I+"",x))}if(k===void 0)(!y||Sr(g,v)?.writable)&&(k=p(()=>Lr(void 0)),$(k,bn(b)),u.set(v,k));else{y=k.v!==Ft;var O=p(()=>bn(b));$(k,O)}var j=Reflect.getOwnPropertyDescriptor(g,v);if(j?.set&&j.set.call(h,b),!y){if(l&&typeof v=="string"){var J=u.get("length"),re=Number(v);Number.isInteger(re)&&re>=J.v&&$(J,re+1)}so(d)}return!0},ownKeys(g){c(d);var v=Reflect.ownKeys(g).filter(k=>{var y=u.get(k);return y===void 0||y.v!==Ft});for(var[b,h]of u)h.v!==Ft&&!(b in g)&&v.push(b);return v},setPrototypeOf(){Mk()}})}function Rv(i){try{if(i!==null&&typeof i=="object"&&Qr in i)return i[Qr]}catch{}return i}function ox(i,n){return Object.is(Rv(i),Rv(n))}var qv,Fv,Wv,Vv;function ml(){if(qv===void 0){qv=window,Fv=/Firefox/.test(navigator.userAgent);var i=Element.prototype,n=Node.prototype,u=Text.prototype;Wv=Sr(n,"firstChild").get,Vv=Sr(n,"nextSibling").get,zt(i)&&(i.__click=void 0,i.__className=void 0,i.__attributes=null,i.__style=void 0,i.__e=void 0),zt(u)&&(u.__t=void 0)}}function Nr(i=""){return document.createTextNode(i)}function Mr(i){return Wv.call(i)}function Jr(i){return Vv.call(i)}function R(i,n){if(!De)return Mr(i);var u=Mr(Je);if(u===null)u=Je.appendChild(Nr());else if(n&&u.nodeType!==ba){var l=Nr();return u?.before(l),Yt(l),l}return Yt(u),u}function ze(i,n=!1){if(!De){var u=Mr(i);return u instanceof Comment&&u.data===""?Jr(u):u}if(n&&Je?.nodeType!==ba){var l=Nr();return Je?.before(l),Yt(l),l}return Je}function fe(i,n=1,u=!1){let l=De?Je:i;for(var d;n--;)d=l,l=Jr(l);if(!De)return l;if(u&&l?.nodeType!==ba){var m=Nr();return l===null?d?.after(m):l.before(m),Yt(m),m}return Yt(l),l}function pl(i){i.textContent=""}function Qv(){return!1}function ax(i,n){if(n){const u=document.body;i.autofocus=!0,on(()=>{document.activeElement===u&&i.focus()})}}function sx(i){De&&Mr(i)!==null&&pl(i)}let Gv=!1;function Jv(){Gv||(Gv=!0,document.addEventListener("reset",i=>{Promise.resolve().then(()=>{if(!i.defaultPrevented)for(const n of i.target.elements)n.__on_r?.()})},{capture:!0}))}function Sa(i){var n=at,u=Xe;cr(null),jr(null);try{return i()}finally{cr(n),jr(u)}}function Bv(i,n,u,l=u){i.addEventListener(n,()=>Sa(u));const d=i.__on_r;d?i.__on_r=()=>{d(),l(!0)}:i.__on_r=()=>l(!0),Jv()}function Yv(i){Xe===null&&at===null&&Ck(),at!==null&&(at.f&zr)!==0&&Xe===null&&Pk(),Hn&&Ek()}function ux(i,n){var u=n.last;u===null?n.last=n.first=i:(u.next=i,i.prev=u,n.last=i)}function Zr(i,n,u,l=!0){var d=Xe;d!==null&&(d.f&Ar)!==0&&(i|=Ar);var m={ctx:xt,deps:null,nodes_start:null,nodes_end:null,f:i|br,first:null,fn:n,last:null,next:null,parent:d,b:d&&d.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(u)try{hi(m),m.f|=ol}catch(v){throw Kt(m),v}else n!==null&&Yn(m);if(l){var p=m;if(u&&p.deps===null&&p.teardown===null&&p.nodes_start===null&&p.first===p.last&&(p.f&Vn)===0&&(p=p.first),p!==null&&(p.parent=d,d!==null&&ux(p,d),at!==null&&(at.f&Zt)!==0&&(i&gn)===0)){var g=at;(g.effects??=[]).push(p)}}return m}function lx(){return at!==null&&!Rr}function gl(i){const n=Zr(fi,null,!1);return rr(n,er),n.teardown=i,n}function uo(i){Yv();var n=Xe.f,u=!at&&(n&tn)!==0&&(n&ol)===0;if(u){var l=xt;(l.e??=[]).push(i)}else return Kv(i)}function Kv(i){return Zr(Rn|_v,i,!1)}function Hv(i){return Yv(),Zr(fi|_v,i,!0)}function cx(i){Dr.ensure();const n=Zr(gn|Vn,i,!0);return()=>{Kt(n)}}function dx(i){Dr.ensure();const n=Zr(gn|Vn,i,!0);return(u={})=>new Promise(l=>{u.outro?$n(n,()=>{Kt(n),l(void 0)}):(Kt(n),l(void 0))})}function Ia(i){return Zr(Rn,i,!1)}function de(i,n){var u=xt,l={effect:null,ran:!1,deps:i};u.l.$.push(l),l.effect=Kn(()=>{i(),!l.ran&&(l.ran=!0,U(n))})}function sr(){var i=xt;Kn(()=>{for(var n of i.l.$){n.deps();var u=n.effect;(u.f&er)!==0&&rr(u,rn),co(u)&&hi(u),n.ran=!1}})}function fx(i){return Zr(ha|Vn,i,!0)}function Kn(i,n=0){return Zr(fi|n,i,!0)}function xe(i,n=[],u=[]){Cv(n,u,l=>{Zr(fi,()=>i(...l.map(c)),!0)})}function yn(i,n=0){var u=Zr(qn|n,i,!0);return u}function tr(i,n=!0){return Zr(tn|Vn,i,!0,n)}function Xv(i){var n=i.teardown;if(n!==null){const u=Hn,l=at;oh(!0),cr(null);try{n.call(null)}finally{oh(u),cr(l)}}}function eh(i,n=!1){var u=i.first;for(i.first=i.last=null;u!==null;){const d=u.ac;d!==null&&Sa(()=>{d.abort(no)});var l=u.next;(u.f&gn)!==0?u.parent=null:Kt(u,n),u=l}}function mx(i){for(var n=i.first;n!==null;){var u=n.next;(n.f&tn)===0&&Kt(n),n=u}}function Kt(i,n=!0){var u=!1;(n||(i.f&Nk)!==0)&&i.nodes_start!==null&&i.nodes_end!==null&&(px(i.nodes_start,i.nodes_end),u=!0),eh(i,n&&!u),Na(i,0),rr(i,Fn);var l=i.transitions;if(l!==null)for(const m of l)m.stop();Xv(i);var d=i.parent;d!==null&&d.first!==null&&th(i),i.next=i.prev=i.teardown=i.ctx=i.deps=i.fn=i.nodes_start=i.nodes_end=i.ac=null}function px(i,n){for(;i!==null;){var u=i===n?null:Jr(i);i.remove(),i=u}}function th(i){var n=i.parent,u=i.prev,l=i.next;u!==null&&(u.next=l),l!==null&&(l.prev=u),n!==null&&(n.first===i&&(n.first=l),n.last===i&&(n.last=u))}function $n(i,n){var u=[];vl(i,u,!0),rh(u,()=>{Kt(i),n&&n()})}function rh(i,n){var u=i.length;if(u>0){var l=()=>--u||n();for(var d of i)d.out(l)}else n()}function vl(i,n,u){if((i.f&Ar)===0){if(i.f^=Ar,i.transitions!==null)for(const p of i.transitions)(p.is_global||u)&&n.push(p);for(var l=i.first;l!==null;){var d=l.next,m=(l.f&Wn)!==0||(l.f&tn)!==0;vl(l,n,m?u:!1),l=d}}}function za(i){nh(i,!0)}function nh(i,n){if((i.f&Ar)!==0){i.f^=Ar,(i.f&er)===0&&(rr(i,br),Yn(i));for(var u=i.first;u!==null;){var l=u.next,d=(u.f&Wn)!==0||(u.f&tn)!==0;nh(u,d?n:!1),u=l}if(i.transitions!==null)for(const m of i.transitions)(m.is_global||n)&&m.in()}}let vi=!1;function ih(i){vi=i}let Hn=!1;function oh(i){Hn=i}let at=null,Rr=!1;function cr(i){at=i}let Xe=null;function jr(i){Xe=i}let an=null;function ah(i){at!==null&&(an===null?an=[i]:an.push(i))}let ur=null,$r=0,Tr=null;function gx(i){Tr=i}let sh=1,lo=0,Xn=lo;function uh(i){Xn=i}let _n=!1;function lh(){return++sh}function co(i){var n=i.f;if((n&br)!==0)return!0;if((n&rn)!==0){var u=i.deps,l=(n&zr)!==0;if(u!==null){var d,m,p=(n&va)!==0,g=l&&Xe!==null&&!_n,v=u.length;if((p||g)&&(Xe===null||(Xe.f&Fn)===0)){var b=i,h=b.parent;for(d=0;d<v;d++)m=u[d],(p||!m?.reactions?.includes(b))&&(m.reactions??=[]).push(b);p&&(b.f^=va),g&&h!==null&&(h.f&zr)===0&&(b.f^=zr)}for(d=0;d<v;d++)if(m=u[d],co(m)&&Dv(m),m.wv>i.wv)return!0}(!l||Xe!==null&&!_n)&&rr(i,er)}return!1}function ch(i,n,u=!0){var l=i.reactions;if(l!==null&&!an?.includes(i))for(var d=0;d<l.length;d++){var m=l[d];(m.f&Zt)!==0?ch(m,n,!1):n===m&&(u?rr(m,br):(m.f&er)!==0&&rr(m,rn),Yn(m))}}function dh(i){var n=ur,u=$r,l=Tr,d=at,m=_n,p=an,g=xt,v=Rr,b=Xn,h=i.f;ur=null,$r=0,Tr=null,_n=(h&zr)!==0&&(Rr||!vi||at===null),at=(h&(tn|gn))===0?i:null,an=null,mi(i.ctx),Rr=!1,Xn=++lo,i.ac!==null&&(Sa(()=>{i.ac.abort(no)}),i.ac=null);try{i.f|=al;var k=i.fn,y=k(),I=i.deps;if(ur!==null){var x;if(Na(i,$r),I!==null&&$r>0)for(I.length=$r+ur.length,x=0;x<ur.length;x++)I[$r+x]=ur[x];else i.deps=I=ur;if(!_n||(h&Zt)!==0&&i.reactions!==null)for(x=$r;x<I.length;x++)(I[x].reactions??=[]).push(i)}else I!==null&&$r<I.length&&(Na(i,$r),I.length=$r);if(io()&&Tr!==null&&!Rr&&I!==null&&(i.f&(Zt|rn|br))===0)for(x=0;x<Tr.length;x++)ch(Tr[x],i);return d!==null&&d!==i&&(lo++,Tr!==null&&(l===null?l=Tr:l.push(...Tr))),(i.f&Qn)!==0&&(i.f^=Qn),y}catch(O){return Nv(O)}finally{i.f^=al,ur=n,$r=u,Tr=l,at=d,_n=m,an=p,mi(g),Rr=v,Xn=b}}function vx(i,n){let u=n.reactions;if(u!==null){var l=nl.call(u,i);if(l!==-1){var d=u.length-1;d===0?u=n.reactions=null:(u[l]=u[d],u.pop())}}u===null&&(n.f&Zt)!==0&&(ur===null||!ur.includes(n))&&(rr(n,rn),(n.f&(zr|va))===0&&(n.f^=va),Av(n),Na(n,0))}function Na(i,n){var u=i.deps;if(u!==null)for(var l=n;l<u.length;l++)vx(i,u[l])}function hi(i){var n=i.f;if((n&Fn)===0){rr(i,er);var u=Xe,l=vi;Xe=i,vi=!0;try{(n&qn)!==0?mx(i):eh(i),Xv(i);var d=dh(i);i.teardown=typeof d=="function"?d:null,i.wv=sh;var m;eo&&a&&(i.f&br)!==0&&i.deps}finally{vi=l,Xe=u}}}async function hx(){await Promise.resolve(),dt()}function c(i){var n=i.f,u=(n&Zt)!==0;if(at!==null&&!Rr){var l=Xe!==null&&(Xe.f&Fn)!==0;if(!l&&!an?.includes(i)){var d=at.deps;if((at.f&al)!==0)i.rv<lo&&(i.rv=lo,ur===null&&d!==null&&d[$r]===i?$r++:ur===null?ur=[i]:(!_n||!ur.includes(i))&&ur.push(i));else{(at.deps??=[]).push(i);var m=i.reactions;m===null?i.reactions=[at]:m.includes(at)||m.push(at)}}}else if(u&&i.deps===null&&i.effects===null){var p=i,g=p.parent;g!==null&&(g.f&zr)===0&&(p.f^=zr)}if(Hn){if(vn.has(i))return vn.get(i);if(u){p=i;var v=p.v;return((p.f&er)===0&&p.reactions!==null||fh(p))&&(v=fl(p)),vn.set(p,v),v}}else u&&(p=i,co(p)&&Dv(p));if((i.f&Qn)!==0)throw i.v;return i.v}function fh(i){if(i.v===Ft)return!0;if(i.deps===null)return!1;for(const n of i.deps)if(vn.has(n)||(n.f&Zt)!==0&&fh(n))return!0;return!1}function U(i){var n=Rr;try{return Rr=!0,i()}finally{Rr=n}}const bx=-7169;function rr(i,n){i.f=i.f&bx|n}function z(i){if(!(typeof i!="object"||!i||i instanceof EventTarget)){if(Qr in i)hl(i);else if(!Array.isArray(i))for(let n in i){const u=i[n];typeof u=="object"&&u&&Qr in u&&hl(u)}}}function hl(i,n=new Set){if(typeof i=="object"&&i!==null&&!(i instanceof EventTarget)&&!n.has(i)){n.add(i),i instanceof Date&&i.getTime();for(let l in i)try{hl(i[l],n)}catch{}const u=Be(i);if(u!==Object.prototype&&u!==Array.prototype&&u!==Map.prototype&&u!==Set.prototype&&u!==Date.prototype){const l=to(u);for(let d in l){const m=l[d].get;if(m)try{m.call(i)}catch{}}}}}const mh=new Set,bl=new Set;function ph(i,n,u,l={}){function d(m){if(l.capture||fo.call(n,m),!m.cancelBubble)return Sa(()=>u?.call(this,m))}return i.startsWith("pointer")||i.startsWith("touch")||i==="wheel"?on(()=>{n.addEventListener(i,d,l)}):n.addEventListener(i,d,l),d}function gh(i,n,u,l={}){var d=ph(n,i,u,l);return()=>{i.removeEventListener(n,d,l)}}function yl(i){for(var n=0;n<i.length;n++)mh.add(i[n]);for(var u of bl)u(i)}let vh=null;function fo(i){var n=this,u=n.ownerDocument,l=i.type,d=i.composedPath?.()||[],m=d[0]||i.target;vh=i;var p=0,g=vh===i&&i.__root;if(g){var v=d.indexOf(g);if(v!==-1&&(n===document||n===window)){i.__root=n;return}var b=d.indexOf(n);if(b===-1)return;v<=b&&(p=v)}if(m=d[p]||i.target,m!==n){Vr(i,"currentTarget",{configurable:!0,get(){return m||u}});var h=at,k=Xe;cr(null),jr(null);try{for(var y,I=[];m!==null;){var x=m.assignedSlot||m.parentNode||m.host||null;try{var O=m["__"+l];if(O!=null&&(!m.disabled||i.target===m))if(pn(O)){var[j,...J]=O;j.apply(m,[i,...J])}else O.call(m,i)}catch(re){y?I.push(re):y=re}if(i.cancelBubble||x===n||x===null)break;m=x}if(y){for(let re of I)queueMicrotask(()=>{throw re});throw y}}finally{i.__root=n,delete i.currentTarget,cr(h),jr(k)}}}function hh(i){var n=document.createElement("template");return n.innerHTML=i.replaceAll("<!>","<!---->"),n.content}function qr(i,n){var u=Xe;u.nodes_start===null&&(u.nodes_start=i,u.nodes_end=n)}function ee(i,n){var u=(n&pt)!==0,l=(n&ut)!==0,d,m=!i.startsWith("<!>");return()=>{if(De)return qr(Je,null),Je;d===void 0&&(d=hh(m?i:"<!>"+i),u||(d=Mr(d)));var p=l||Fv?document.importNode(d,!0):d.cloneNode(!0);if(u){var g=Mr(p),v=p.lastChild;qr(g,v)}else qr(p,p);return p}}function yx(i,n,u="svg"){var l=!i.startsWith("<!>"),d=`<${u}>${l?i:"<!>"+i}</${u}>`,m;return()=>{if(De)return qr(Je,null),Je;if(!m){var p=hh(d),g=Mr(p);m=Mr(g)}var v=m.cloneNode(!0);return qr(v,v),v}}function wn(i,n){return yx(i,n,"svg")}function kn(i=""){if(!De){var n=Nr(i+"");return qr(n,n),n}var u=Je;return u.nodeType!==ba&&(u.before(u=Nr()),Yt(u)),qr(u,u),u}function Ze(){if(De)return qr(Je,null),Je;var i=document.createDocumentFragment(),n=document.createComment(""),u=Nr();return i.append(n,u),qr(n,u),i}function T(i,n){if(De){Xe.nodes_end=Je,nn();return}i!==null&&i.before(n)}function ja(){if(De&&Je&&Je.nodeType===Gn&&Je.textContent?.startsWith("$")){const i=Je.textContent.substring(1);return nn(),i}return(window.__svelte??={}).uid??=1,`c${window.__svelte.uid++}`}function $x(i){return i.endsWith("capture")&&i!=="gotpointercapture"&&i!=="lostpointercapture"}const _x=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function wx(i){return _x.includes(i)}const kx={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function xx(i){return i=i.toLowerCase(),kx[i]??i}const Sx=["touchstart","touchmove"];function Ix(i){return Sx.includes(i)}const zx=["textarea","script","style","title"];function Nx(i){return zx.includes(i)}function Ne(i,n){var u=n==null?"":typeof n=="object"?n+"":n;u!==(i.__t??=i.nodeValue)&&(i.__t=u,i.nodeValue=u+"")}function bh(i,n){return yh(i,n)}function jx(i,n){ml(),n.intro=n.intro??!1;const u=n.target,l=De,d=Je;try{for(var m=Mr(u);m&&(m.nodeType!==Gn||m.data!==ct);)m=Jr(m);if(!m)throw Wr;ar(!0),Yt(m);const p=yh(i,{...n,anchor:m});return ar(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
+
`).some(g=>g.startsWith("https://svelte.dev/e/")))throw p;return p!==Wr&&console.warn("Failed to hydrate: ",p),n.recover===!1&&Ak(),ml(),pl(u),ar(!1),bh(i,n)}finally{ar(l),Yt(d)}}const bi=new Map;function yh(i,{target:n,anchor:u,props:l={},events:d,context:m,intro:p=!0}){ml();var g=new Set,v=k=>{for(var y=0;y<k.length;y++){var I=k[y];if(!g.has(I)){g.add(I);var x=Ix(I);n.addEventListener(I,fo,{passive:x});var O=bi.get(I);O===void 0?(document.addEventListener(I,fo,{passive:x}),bi.set(I,1)):bi.set(I,O+1)}}};v(Ln(mh)),bl.add(v);var b=void 0,h=dx(()=>{var k=u??n.appendChild(Nr());return Xk(k,{pending:()=>{}},y=>{if(m){Ye({});var I=xt;I.c=m}if(d&&(l.$$events=d),De&&qr(y,null),b=i(y,l)||{},De&&(Xe.nodes_end=Je,Je===null||Je.nodeType!==Gn||Je.data!==or))throw ya(),Wr;m&&Ke()}),()=>{for(var y of g){n.removeEventListener(y,fo);var I=bi.get(y);--I===0?(document.removeEventListener(y,fo),bi.delete(y)):bi.set(y,I)}bl.delete(v),k!==u&&k.parentNode?.removeChild(k)}});return $l.set(b,h),b}let $l=new WeakMap;function Tx(i,n){const u=$l.get(i);return u?($l.delete(i),u(n)):Promise.resolve()}function Rt(i,n,...u){var l=i,d=gt,m;yn(()=>{d!==(d=n())&&(m&&(Kt(m),m=null),m=tr(()=>d(l,...u)))},Wn),De&&(l=Je)}function xn(i){xt===null&&ul(),t&&xt.l!==null?Ox(xt).m.push(i):uo(()=>{const n=U(i);if(typeof n=="function")return n})}function Ta(i){xt===null&&ul(),xn(()=>()=>U(i))}function Ox(i){var n=i.l;return n.u??={a:[],b:[],m:[]}}function Ex(){return Symbol(ga)}function oe(i,n,u=!1){De&&nn();var l=i,d=null,m=null,p=Ft,g=u?Wn:0,v=!1;const b=(y,I=!0)=>{v=!0,k(I,y)};function h(){var y=p?d:m,I=p?m:d;y&&za(y),I&&$n(I,()=>{p?m=null:d=null})}const k=(y,I)=>{if(p===(p=y))return;let x=!1;if(De){const J=wv(l)===vt;!!p===J&&(l=$a(),Yt(l),ar(!1),x=!0)}var O=Qv(),j=l;p?d??=I&&tr(()=>I(j)):m??=I&&tr(()=>I(j)),O||h(),x&&ar(!0)};yn(()=>{v=!1,n(b),v||k(null,null)},g),De&&(l=Je)}function _r(i,n){return n}function Px(i,n,u){for(var l=i.items,d=[],m=n.length,p=0;p<m;p++)vl(n[p].e,d,!0);var g=m>0&&d.length===0&&u!==null;if(g){var v=u.parentNode;pl(v),v.append(u),l.clear(),Br(i,n[0].prev,n[m-1].next)}rh(d,()=>{for(var b=0;b<m;b++){var h=n[b];g||(l.delete(h.k),Br(i,h.prev,h.next)),Kt(h.e,!g)}})}function dr(i,n,u,l,d,m=null){var p=i,g={flags:n,items:new Map,first:null},v=(n&K)!==0;if(v){var b=i;p=De?Yt(Mr(b)):b.appendChild(Nr())}De&&nn();var h=null,k=!1,y=new Map,I=Le(()=>{var J=u();return pn(J)?J:J==null?[]:Ln(J)}),x,O;function j(){Cx(O,x,g,y,p,d,n,l,u),m!==null&&(x.length===0?h?za(h):h=tr(()=>m(p)):h!==null&&$n(h,()=>{h=null}))}yn(()=>{O??=Xe,x=c(I);var J=x.length;if(k&&J===0)return;k=J===0;let re=!1;if(De){var W=wv(p)===vt;W!==(J===0)&&(p=$a(),Yt(p),ar(!1),re=!0)}if(De){for(var G=null,V,M=0;M<J;M++){if(Je.nodeType===Gn&&Je.data===or){p=Je,re=!0,ar(!1);break}var te=x[M],ne=l(te,M);V=$h(Je,g,G,null,te,ne,M,d,n,u),g.items.set(ne,V),G=V}J>0&&Yt($a())}De?J===0&&m&&(h=tr(()=>m(p))):j(),re&&ar(!0),c(I)}),De&&(p=Je)}function Cx(i,n,u,l,d,m,p,g,v){var b=(p&me)!==0,h=(p&(w|q))!==0,k=n.length,y=u.items,I=u.first,x=I,O,j=null,J,re=[],W=[],G,V,M,te;if(b)for(te=0;te<k;te+=1)G=n[te],V=g(G,te),M=y.get(V),M!==void 0&&(M.a?.measure(),(J??=new Set).add(M));for(te=0;te<k;te+=1){if(G=n[te],V=g(G,te),M=y.get(V),M===void 0){var ne=l.get(V);if(ne!==void 0){l.delete(V),y.set(V,ne);var $e=j?j.next:x;Br(u,j,ne),Br(u,ne,$e),_l(ne,$e,d),j=ne}else{var je=x?x.e.nodes_start:d;j=$h(je,u,j,j===null?u.first:j.next,G,V,te,m,p,v)}y.set(V,j),re=[],W=[],x=j.next;continue}if(h&&Ux(M,G,te,p),(M.e.f&Ar)!==0&&(za(M.e),b&&(M.a?.unfix(),(J??=new Set).delete(M))),M!==x){if(O!==void 0&&O.has(M)){if(re.length<W.length){var Se=W[0],ke;j=Se.prev;var ve=re[0],B=re[re.length-1];for(ke=0;ke<re.length;ke+=1)_l(re[ke],Se,d);for(ke=0;ke<W.length;ke+=1)O.delete(W[ke]);Br(u,ve.prev,B.next),Br(u,j,ve),Br(u,B,Se),x=Se,j=B,te-=1,re=[],W=[]}else O.delete(M),_l(M,x,d),Br(u,M.prev,M.next),Br(u,M,j===null?u.first:j.next),Br(u,j,M),j=M;continue}for(re=[],W=[];x!==null&&x.k!==V;)(x.e.f&Ar)===0&&(O??=new Set).add(x),W.push(x),x=x.next;if(x===null)continue;M=x}re.push(M),j=M,x=M.next}if(x!==null||O!==void 0){for(var P=O===void 0?[]:Ln(O);x!==null;)(x.e.f&Ar)===0&&P.push(x),x=x.next;var Z=P.length;if(Z>0){var C=(p&K)!==0&&k===0?d:null;if(b){for(te=0;te<Z;te+=1)P[te].a?.measure();for(te=0;te<Z;te+=1)P[te].a?.fix()}Px(u,P,C)}}b&&on(()=>{if(J!==void 0)for(M of J)M.a?.apply()}),i.first=u.first&&u.first.e,i.last=j&&j.e;for(var S of l.values())Kt(S.e);l.clear()}function Ux(i,n,u,l){(l&w)!==0&&gi(i.v,n),(l&q)!==0?gi(i.i,u):i.i=u}function $h(i,n,u,l,d,m,p,g,v,b,h){var k=(v&w)!==0,y=(v&le)===0,I=k?y?X(d,!1,!1):hn(d):d,x=(v&q)===0?p:hn(p),O={i:x,v:I,k:m,a:null,e:null,prev:u,next:l};try{if(i===null){var j=document.createDocumentFragment();j.append(i=Nr())}return O.e=tr(()=>g(i,I,x,b),De),O.e.prev=u&&u.e,O.e.next=l&&l.e,u===null?h||(n.first=O):(u.next=O,u.e.next=O.e),l!==null&&(l.prev=O,l.e.prev=O.e),O}finally{}}function _l(i,n,u){for(var l=i.next?i.next.e.nodes_start:u,d=n?n.e.nodes_start:u,m=i.e.nodes_start;m!==null&&m!==l;){var p=Jr(m);d.before(m),m=p}}function Br(i,n,u){n===null?i.first=u:(n.next=u,n.e.next=u&&u.e),u!==null&&(u.prev=n,u.e.prev=n&&n.e)}function Sn(i,n,u,l,d){De&&nn();var m=n.$$slots?.[u],p=!1;m===!0&&(m=n.children,p=!0),m===void 0||m(i,p?()=>l:l)}function Oa(i,n,u){De&&nn();var l=i,d,m,p=null,g=null;function v(){m&&($n(m),m=null),p&&(p.lastChild.remove(),l.before(p),p=null),m=g,g=null}yn(()=>{if(d!==(d=n())){var b=Qv();if(d){var h=l;b&&(p=document.createDocumentFragment(),p.append(h=Nr()),m&&Tt.skipped_effects.add(m)),g=tr(()=>u(h,d))}b?Tt.add_callback(v):v()}},Wn),De&&(l=Je)}function _h(i,n,u,l,d,m){let p=De;De&&nn();var g,v,b=null;De&&Je.nodeType===Tk&&(b=Je,nn());var h=De?Je:i,k;yn(()=>{const y=n()||null;var I=rl;y!==g&&(k&&(y===null?$n(k,()=>{k=null,v=null}):y===v?za(k):Kt(k)),y&&y!==v&&(k=tr(()=>{if(b=De?b:document.createElementNS(I,y),qr(b,b),l){De&&Nx(y)&&b.append(document.createComment(""));var x=De?Mr(b):b.appendChild(Nr());De&&(x===null?ar(!1):Yt(x)),l(b,x)}Xe.nodes_end=b,h.before(b)})),g=y,g&&(v=g))},Wn),p&&(ar(!0),Yt(h))}function Ax(i,n){Ia(()=>{var u=i.getRootNode(),l=u.host?u:u.head??u.ownerDocument.head;if(!l.querySelector("#"+n.hash)){const d=document.createElement("style");d.id=n.hash,d.textContent=n.code,l.appendChild(d)}})}function Dx(i,n){var u=void 0,l;yn(()=>{u!==(u=n())&&(l&&(Kt(l),l=null),u&&(l=tr(()=>{Ia(()=>u(i))})))})}function wh(i){var n,u,l="";if(typeof i=="string"||typeof i=="number")l+=i;else if(typeof i=="object")if(Array.isArray(i)){var d=i.length;for(n=0;n<d;n++)i[n]&&(u=wh(i[n]))&&(l&&(l+=" "),l+=u)}else for(u in i)i[u]&&(l&&(l+=" "),l+=u);return l}function mo(){for(var i,n,u=0,l="",d=arguments.length;u<d;u++)(i=arguments[u])&&(n=wh(i))&&(l&&(l+=" "),l+=n);return l}function Lx(i){return typeof i=="object"?mo(i):i??""}const kh=[...`
|
|
46
|
+
\r\f \v\uFEFF`];function Mx(i,n,u){var l=i==null?"":""+i;if(u){for(var d in u)if(u[d])l=l?l+" "+d:d;else if(l.length)for(var m=d.length,p=0;(p=l.indexOf(d,p))>=0;){var g=p+m;(p===0||kh.includes(l[p-1]))&&(g===l.length||kh.includes(l[g]))?l=(p===0?"":l.substring(0,p))+l.substring(g+1):p=g}}return l===""?null:l}function xh(i,n=!1){var u=n?" !important;":";",l="";for(var d in i){var m=i[d];m!=null&&m!==""&&(l+=" "+d+": "+m+u)}return l}function wl(i){return i[0]!=="-"||i[1]!=="-"?i.toLowerCase():i}function Zx(i,n){if(n){var u="",l,d;if(Array.isArray(n)?(l=n[0],d=n[1]):l=n,i){i=String(i).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var m=!1,p=0,g=!1,v=[];l&&v.push(...Object.keys(l).map(wl)),d&&v.push(...Object.keys(d).map(wl));var b=0,h=-1;const O=i.length;for(var k=0;k<O;k++){var y=i[k];if(g?y==="/"&&i[k-1]==="*"&&(g=!1):m?m===y&&(m=!1):y==="/"&&i[k+1]==="*"?g=!0:y==='"'||y==="'"?m=y:y==="("?p++:y===")"&&p--,!g&&m===!1&&p===0){if(y===":"&&h===-1)h=k;else if(y===";"||k===O-1){if(h!==-1){var I=wl(i.substring(b,h).trim());if(!v.includes(I)){y!==";"&&k++;var x=i.substring(b,k).trim();u+=" "+x+";"}}b=k+1,h=-1}}}}return l&&(u+=xh(l)),d&&(u+=xh(d,!0)),u=u.trim(),u===""?null:u}return i==null?null:String(i)}function sn(i,n,u,l,d,m){var p=i.__className;if(De||p!==u||p===void 0){var g=Mx(u,l,m);(!De||g!==i.getAttribute("class"))&&(g==null?i.removeAttribute("class"):n?i.className=g:i.setAttribute("class",g)),i.__className=u}else if(m&&d!==m)for(var v in m){var b=!!m[v];(d==null||b!==!!d[v])&&i.classList.toggle(v,b)}return m}function kl(i,n={},u,l){for(var d in u){var m=u[d];n[d]!==m&&(u[d]==null?i.style.removeProperty(d):i.style.setProperty(d,m,l))}}function yi(i,n,u,l){var d=i.__style;if(De||d!==n){var m=Zx(n,l);(!De||m!==i.getAttribute("style"))&&(m==null?i.removeAttribute("style"):i.style.cssText=m),i.__style=n}else l&&(Array.isArray(l)?(kl(i,u?.[0],l[0]),kl(i,u?.[1],l[1],"important")):kl(i,u,l));return l}function xl(i,n,u=!1){if(i.multiple){if(n==null)return;if(!pn(n))return qk();for(var l of i.options)l.selected=n.includes(Sh(l));return}for(l of i.options){var d=Sh(l);if(ox(d,n)){l.selected=!0;return}}(!u||n!==void 0)&&(i.selectedIndex=-1)}function Rx(i){var n=new MutationObserver(()=>{xl(i,i.__value)});n.observe(i,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),gl(()=>{n.disconnect()})}function Sh(i){return"__value"in i?i.__value:i.value}const po=Symbol("class"),go=Symbol("style"),Ih=Symbol("is custom element"),zh=Symbol("is html");function qx(i){if(De){var n=!1,u=()=>{if(!n){if(n=!0,i.hasAttribute("value")){var l=i.value;ei(i,"value",null),i.value=l}if(i.hasAttribute("checked")){var d=i.checked;ei(i,"checked",null),i.checked=d}}};i.__on_r=u,on(u),Jv()}}function Fx(i,n){n?i.hasAttribute("selected")||i.setAttribute("selected",""):i.removeAttribute("selected")}function ei(i,n,u,l){var d=Nh(i);De&&(d[n]=i.getAttribute(n),n==="src"||n==="srcset"||n==="href"&&i.nodeName==="LINK")||d[n]!==(d[n]=u)&&(n==="loading"&&(i[jk]=u),u==null?i.removeAttribute(n):typeof u!="string"&&Th(i).includes(n)?i[n]=u:i.setAttribute(n,u))}function Wx(i,n,u,l,d=!1,m=!1){if(De&&d&&i.tagName==="INPUT"){var p=i,g=p.type==="checkbox"?"defaultChecked":"defaultValue";g in u||qx(p)}var v=Nh(i),b=v[Ih],h=!v[zh];let k=De&&b;k&&ar(!1);var y=n||{},I=i.tagName==="OPTION";for(var x in n)x in u||(u[x]=null);u.class?u.class=Lx(u.class):u[po]&&(u.class=null),u[go]&&(u.style??=null);var O=Th(i);for(const M in u){let te=u[M];if(I&&M==="value"&&te==null){i.value=i.__value="",y[M]=te;continue}if(M==="class"){var j=i.namespaceURI==="http://www.w3.org/1999/xhtml";sn(i,j,te,l,n?.[po],u[po]),y[M]=te,y[po]=u[po];continue}if(M==="style"){yi(i,te,n?.[go],u[go]),y[M]=te,y[go]=u[go];continue}var J=y[M];if(!(te===J&&!(te===void 0&&i.hasAttribute(M)))){y[M]=te;var re=M[0]+M[1];if(re!=="$$")if(re==="on"){const ne={},$e="$$"+M;let je=M.slice(2);var W=wx(je);if($x(je)&&(je=je.slice(0,-7),ne.capture=!0),!W&&J){if(te!=null)continue;i.removeEventListener(je,y[$e],ne),y[$e]=null}if(te!=null)if(W)i[`__${je}`]=te,yl([je]);else{let Se=function(ke){y[M].call(this,ke)};y[$e]=ph(je,i,Se,ne)}else W&&(i[`__${je}`]=void 0)}else if(M==="style")ei(i,M,te);else if(M==="autofocus")ax(i,!!te);else if(!b&&(M==="__value"||M==="value"&&te!=null))i.value=i.__value=te;else if(M==="selected"&&I)Fx(i,te);else{var G=M;h||(G=xx(G));var V=G==="defaultValue"||G==="defaultChecked";if(te==null&&!b&&!V)if(v[M]=null,G==="value"||G==="checked"){let ne=i;const $e=n===void 0;if(G==="value"){let je=ne.defaultValue;ne.removeAttribute(G),ne.defaultValue=je,ne.value=ne.__value=$e?je:null}else{let je=ne.defaultChecked;ne.removeAttribute(G),ne.defaultChecked=je,ne.checked=$e?je:!1}}else i.removeAttribute(M);else V||O.includes(G)&&(b||typeof te!="string")?(i[G]=te,G in v&&(v[G]=Ft)):typeof te!="function"&&ei(i,G,te)}}}return k&&ar(!0),y}function Wt(i,n,u=[],l=[],d,m=!1,p=!1){Cv(u,l,g=>{var v=void 0,b={},h=i.nodeName==="SELECT",k=!1;if(yn(()=>{var I=n(...g.map(c)),x=Wx(i,v,I,d,m,p);k&&h&&"value"in I&&xl(i,I.value);for(let j of Object.getOwnPropertySymbols(b))I[j]||Kt(b[j]);for(let j of Object.getOwnPropertySymbols(I)){var O=I[j];j.description===ga&&(!v||O!==v[j])&&(b[j]&&Kt(b[j]),b[j]=tr(()=>Dx(i,()=>O))),x[j]=O}v=x}),h){var y=i;Ia(()=>{xl(y,v.value,!0),Rx(y)})}k=!0})}function Nh(i){return i.__attributes??={[Ih]:i.nodeName.includes("-"),[zh]:i.namespaceURI===pa}}var jh=new Map;function Th(i){var n=i.getAttribute("is")||i.nodeName,u=jh.get(n);if(u)return u;jh.set(n,u=[]);for(var l,d=i,m=Element.prototype;m!==d;){l=to(d);for(var p in l)l[p].set&&u.push(p);d=Be(d)}return u}function Ea(i,n,u=n){var l=new WeakSet;Bv(i,"input",async d=>{var m=d?i.defaultValue:i.value;if(m=Sl(i)?Il(m):m,u(m),Tt!==null&&l.add(Tt),await hx(),m!==(m=n())){var p=i.selectionStart,g=i.selectionEnd,v=i.value.length;if(i.value=m??"",g!==null){var b=i.value.length;p===g&&g===v&&b>v?(i.selectionStart=b,i.selectionEnd=b):(i.selectionStart=p,i.selectionEnd=Math.min(g,b))}}}),(De&&i.defaultValue!==i.value||U(n)==null&&i.value)&&(u(Sl(i)?Il(i.value):i.value),Tt!==null&&l.add(Tt)),Kn(()=>{var d=n();if(i===document.activeElement){var m=ka??Tt;if(l.has(m))return}Sl(i)&&d===Il(i.value)||i.type==="date"&&!d&&!i.value||d!==i.value&&(i.value=d??"")})}function Sl(i){var n=i.type;return n==="number"||n==="range"}function Il(i){return i===""?null:+i}function Vx(i,n,u=n){Bv(i,"change",()=>{u(i.files)}),De&&i.files&&u(i.files),Kn(()=>{i.files=n()})}function Oh(i,n){return i===n||i?.[Qr]===n}function Or(i={},n,u,l){return Ia(()=>{var d,m;return Kn(()=>{d=m,m=[],U(()=>{i!==u(...m)&&(n(i,...m),d&&Oh(u(...d),i)&&n(null,...d))})}),()=>{on(()=>{m&&Oh(u(...m),i)&&n(null,...m)})}}),i}function Ht(i=!1){const n=xt,u=n.l.u;if(!u)return;let l=()=>z(n.s);if(i){let d=0,m={};const p=ao(()=>{let g=!1;const v=n.s;for(const b in v)v[b]!==m[b]&&(m[b]=v[b],g=!0);return g&&d++,d});l=()=>c(p)}u.b.length&&Hv(()=>{Eh(n,l),Zn(u.b)}),uo(()=>{const d=U(()=>u.m.map(Ir));return()=>{for(const m of d)typeof m=="function"&&m()}}),u.a.length&&uo(()=>{Eh(n,l),Zn(u.a)})}function Eh(i,n){if(i.l.s)for(const u of i.l.s)c(u);n()}function Ph(i,n,u){if(i==null)return n(void 0),gt;const l=U(()=>i.subscribe(n,u));return l.unsubscribe?()=>l.unsubscribe():l}const $i=[];function Qx(i,n=gt){let u=null;const l=new Set;function d(g){if(xv(i,g)&&(i=g,u)){const v=!$i.length;for(const b of l)b[1](),$i.push(b,i);if(v){for(let b=0;b<$i.length;b+=2)$i[b][0]($i[b+1]);$i.length=0}}}function m(g){d(g(i))}function p(g,v=gt){const b=[g,v];return l.add(b),l.size===1&&(u=n(d,m)||gt),g(i),()=>{l.delete(b),l.size===0&&u&&(u(),u=null)}}return{set:d,update:m,subscribe:p}}function vo(i){let n;return Ph(i,u=>n=u)(),n}let Pa=!1,zl=Symbol();function Gx(i,n,u){const l=u[n]??={store:null,source:X(void 0),unsubscribe:gt};if(l.store!==i&&!(zl in u))if(l.unsubscribe(),l.store=i??null,i==null)l.source.v=void 0,l.unsubscribe=gt;else{var d=!0;l.unsubscribe=Ph(i,m=>{d?l.source.v=m:$(l.source,m)}),d=!1}return i&&zl in u?vo(i):c(l.source)}function Jx(){const i={};function n(){gl(()=>{for(var u in i)i[u].unsubscribe();Vr(i,zl,{enumerable:!1,value:!0})})}return[i,n]}function Bx(i){var n=Pa;try{return Pa=!1,[i(),Pa]}finally{Pa=n}}const Yx={get(i,n){if(!i.exclude.includes(n))return i.props[n]},set(i,n){return!1},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function Dt(i,n,u){return new Proxy({props:i,exclude:n},Yx)}const Kx={get(i,n){if(!i.exclude.includes(n))return c(i.version),n in i.special?i.special[n]():i.props[n]},set(i,n,u){if(!(n in i.special)){var l=Xe;try{jr(i.parent_effect),i.special[n]=_({get[n](){return i.props[n]}},n,Y)}finally{jr(l)}}return i.special[n](u),Mv(i.version),!0},getOwnPropertyDescriptor(i,n){if(!i.exclude.includes(n)&&n in i.props)return{enumerable:!0,configurable:!0,value:i.props[n]}},deleteProperty(i,n){return i.exclude.includes(n)||(i.exclude.push(n),Mv(i.version)),!0},has(i,n){return i.exclude.includes(n)?!1:n in i.props},ownKeys(i){return Reflect.ownKeys(i.props).filter(n=>!i.exclude.includes(n))}};function un(i,n){return new Proxy({props:i,exclude:n,special:{},version:hn(0),parent_effect:Xe},Kx)}const Hx={get(i,n){let u=i.props.length;for(;u--;){let l=i.props[u];if(At(l)&&(l=l()),typeof l=="object"&&l!==null&&n in l)return l[n]}},set(i,n,u){let l=i.props.length;for(;l--;){let d=i.props[l];At(d)&&(d=d());const m=Sr(d,n);if(m&&m.set)return m.set(u),!0}return!1},getOwnPropertyDescriptor(i,n){let u=i.props.length;for(;u--;){let l=i.props[u];if(At(l)&&(l=l()),typeof l=="object"&&l!==null&&n in l){const d=Sr(l,n);return d&&!d.configurable&&(d.configurable=!0),d}}},has(i,n){if(n===Qr||n===sl)return!1;for(let u of i.props)if(At(u)&&(u=u()),u!=null&&n in u)return!0;return!1},ownKeys(i){const n=[];for(let u of i.props)if(At(u)&&(u=u()),!!u){for(const l in u)n.includes(l)||n.push(l);for(const l of Object.getOwnPropertySymbols(u))n.includes(l)||n.push(l)}return n}};function jt(...i){return new Proxy({props:i},Hx)}function _(i,n,u,l){var d=!t||(u&he)!==0,m=(u&Ie)!==0,p=(u&Ae)!==0,g=l,v=!0,b=()=>(v&&(v=!1,g=p?U(l):l),g),h;if(m){var k=Qr in i||sl in i;h=Sr(i,n)?.set??(k&&n in i?W=>i[n]=W:void 0)}var y,I=!1;m?[y,I]=Bx(()=>i[n]):y=i[n],y===void 0&&l!==void 0&&(y=b(),h&&(d&&Dk(),h(y)));var x;if(d?x=()=>{var W=i[n];return W===void 0?b():(v=!0,W)}:x=()=>{var W=i[n];return W!==void 0&&(g=void 0),W===void 0?g:W},d&&(u&Y)===0)return x;if(h){var O=i.$$legacy;return(function(W,G){return arguments.length>0?((!d||!G||O||I)&&h(G?x():W),W):x()})}var j=!1,J=((u&Re)!==0?ao:Le)(()=>(j=!1,x()));m&&c(J);var re=Xe;return(function(W,G){if(arguments.length>0){const V=G?c(J):d&&m?bn(W):W;return $(J,V),j=!0,g!==void 0&&(g=V),W}return Hn&&j||(re.f&Fn)!==0?J.v:c(J)})}function Xx(i){return new e0(i)}class e0{#e;#t;constructor(n){var u=new Map,l=(m,p)=>{var g=X(p,!1,!1);return u.set(m,g),g};const d=new Proxy({...n.props||{},$$events:{}},{get(m,p){return c(u.get(p)??l(p,Reflect.get(m,p)))},has(m,p){return p===sl?!0:(c(u.get(p)??l(p,Reflect.get(m,p))),Reflect.has(m,p))},set(m,p,g){return $(u.get(p)??l(p,g),g),Reflect.set(m,p,g)}});this.#t=(n.hydrate?jx:bh)(n.component,{target:n.target,anchor:n.anchor,props:d,context:n.context,intro:n.intro??!1,recover:n.recover}),(!n?.props?.$$host||n.sync===!1)&&dt(),this.#e=d.$$events;for(const m of Object.keys(this.#t))m==="$set"||m==="$destroy"||m==="$on"||Vr(this,m,{get(){return this.#t[m]},set(p){this.#t[m]=p},enumerable:!0});this.#t.$set=m=>{Object.assign(d,m)},this.#t.$destroy=()=>{Tx(this.#t)}}$set(n){this.#t.$set(n)}$on(n,u){this.#e[n]=this.#e[n]||[];const l=(...d)=>u.call(this,...d);return this.#e[n].push(l),()=>{this.#e[n]=this.#e[n].filter(d=>d!==l)}}$destroy(){this.#t.$destroy()}}let Ch;typeof HTMLElement=="function"&&(Ch=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;constructor(i,n,u){super(),this.$$ctor=i,this.$$s=n,u&&this.attachShadow({mode:"open"})}addEventListener(i,n,u){if(this.$$l[i]=this.$$l[i]||[],this.$$l[i].push(n),this.$$c){const l=this.$$c.$on(i,n);this.$$l_u.set(n,l)}super.addEventListener(i,n,u)}removeEventListener(i,n,u){if(super.removeEventListener(i,n,u),this.$$c){const l=this.$$l_u.get(n);l&&(l(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let i=function(l){return d=>{const m=document.createElement("slot");l!=="default"&&(m.name=l),T(d,m)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const n={},u=t0(this);for(const l of this.$$s)l in u&&(l==="default"&&!this.$$d.children?(this.$$d.children=i(l),n.default=!0):n[l]=i(l));for(const l of this.attributes){const d=this.$$g_p(l.name);d in this.$$d||(this.$$d[d]=Ca(d,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=Xx({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}}),this.$$me=cx(()=>{Kn(()=>{this.$$r=!0;for(const l of Mn(this.$$c)){if(!this.$$p_d[l]?.reflect)continue;this.$$d[l]=this.$$c[l];const d=Ca(l,this.$$d[l],this.$$p_d,"toAttribute");d==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,d)}this.$$r=!1})});for(const l in this.$$l)for(const d of this.$$l[l]){const m=this.$$c.$on(l,d);this.$$l_u.set(d,m)}this.$$l={}}}attributeChangedCallback(i,n,u){this.$$r||(i=this.$$g_p(i),this.$$d[i]=Ca(i,u,this.$$p_d,"toProp"),this.$$c?.$set({[i]:this.$$d[i]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(i){return Mn(this.$$p_d).find(n=>this.$$p_d[n].attribute===i||!this.$$p_d[n].attribute&&n.toLowerCase()===i)||i}});function Ca(i,n,u,l){const d=u[i]?.type;if(n=d==="Boolean"&&typeof n!="boolean"?n!=null:n,!l||!u[i])return n;if(l==="toAttribute")switch(d){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(d){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function t0(i){const n={};return i.childNodes.forEach(u=>{n[u.slot||"default"]=!0}),n}function Uh(i,n,u,l,d,m){let p=class extends Ch{constructor(){super(i,u,d),this.$$p_d=n}static get observedAttributes(){return Mn(n).map(g=>(n[g].attribute||g).toLowerCase())}};return Mn(n).forEach(g=>{Vr(p.prototype,g,{get(){return this.$$c&&g in this.$$c?this.$$c[g]:this.$$d[g]},set(v){v=Ca(g,v,n),this.$$d[g]=v;var b=this.$$c;if(b){var h=Sr(b,g)?.get;h?b[g]=v:b.$set({[g]:v})}}})}),l.forEach(g=>{Vr(p.prototype,g,{get(){return this.$$c?.[g]}})}),i.element=p,p}const r0={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var n0=wn("<svg><!><!></svg>");function ti(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=un(u,["type","name","color","size","stroke","iconNode"]);Ye(n,!1);let d=_(n,"type",8),m=_(n,"name",8),p=_(n,"color",8,"currentColor"),g=_(n,"size",8,24),v=_(n,"stroke",8,2),b=_(n,"iconNode",8);Ht();var h=n0();Wt(h,()=>({...r0[d()],...l,width:g(),height:g(),class:(z(m()),z(u),U(()=>`tabler-icon tabler-icon-${m()} ${u.class??""}`)),...d()==="filled"?{fill:p()}:{"stroke-width":v(),stroke:p()}}));var k=R(h);dr(k,1,b,_r,(I,x)=>{var O=lt(()=>Gt(c(x),2));let j=()=>c(O)[0],J=()=>c(O)[1];var re=Ze(),W=ze(re);_h(W,j,!0,(G,V)=>{Wt(G,()=>({...J()}))}),T(I,re)});var y=fe(k);Sn(y,n,"default",{}),L(h),T(i,h),Ke()}function Ah(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 14l-4 -4l4 -4"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1"}]];ti(i,jt({type:"outline",name:"arrow-back-up"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Dh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M15 6l-6 6l6 6"}]];ti(i,jt({type:"outline",name:"chevron-left"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Ua(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M9 6l6 6l-6 6"}]];ti(i,jt({type:"outline",name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function i0(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M5 12l-2 0l9 -9l9 9l-2 0"}],["path",{d:"M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7"}],["path",{d:"M10 12h4v4h-4z"}]];ti(i,jt({type:"outline",name:"home-2"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Lh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M15 8h.01"}],["path",{d:"M3 6a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v12a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3v-12z"}],["path",{d:"M3 16l5 -5c.928 -.893 2.072 -.893 3 0l5 5"}],["path",{d:"M14 14l1 -1c.928 -.893 2.072 -.893 3 0l3 3"}]];ti(i,jt({type:"outline",name:"photo"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Mh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M6 21l15 -15l-3 -3l-15 15l3 3"}],["path",{d:"M15 6l3 3"}],["path",{d:"M9 3a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}],["path",{d:"M19 13a2 2 0 0 0 2 2a2 2 0 0 0 -2 2a2 2 0 0 0 -2 -2a2 2 0 0 0 2 -2"}]];ti(i,jt({type:"outline",name:"wand"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}function Zh(i,n){const u=un(n,["children","$$slots","$$events","$$legacy"]),l=[["path",{d:"M18 6l-12 12"}],["path",{d:"M6 6l12 12"}]];ti(i,jt({type:"outline",name:"x"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Sn(g,n,"default",{}),T(d,p)},$$slots:{default:!0}}))}const Fr=Qx({questions:[],questionsData:{}}),lr=(i,n,u,l)=>{if((n==null||n===""||Array.isArray(n)&&n.length===0)&&!l){jl(i);return}let d;switch(u){case"rating":d={rating:n};break;case"nps":d={nps:n};break;case"long_text":d={longText:n};break;case"short_answer":d={shortAnswer:n};break;case"single_choice":d={singleChoice:n};break;case"multiple_choice_multiple":d={multipleChoiceMultiple:Array.isArray(n)?n:[n]};break;case"nested_selection":d={nestedSelection:Array.isArray(n)?n:[n]};break;case"annotation":d={annotation:n};break;default:d=n}Fr.update(m=>{const p=m.questions.findIndex(g=>g.questionId===i);return p!==-1?{...m,questions:m.questions.map((g,v)=>v===p?{...g,answer:d,type:u,error:l}:g)}:{...m,questions:[...m.questions,{questionId:i,answer:d,type:u,error:l}]}})},_i=(i,n)=>{a0(i)&&Fr.update(u=>({...u,questions:u.questions.map(l=>l.questionId===i?{...l,error:n}:l)}))},o0=()=>{Fr.update(i=>({...i,questions:i.questions.map(n=>({...n,error:void 0}))}))},Nl=()=>vo(Fr).questions.some(i=>i.error!==void 0&&i.error!==null&&i.error!==""),jl=i=>{Fr.update(n=>({...n,questions:n.questions.filter(u=>u.questionId!==i)}))},a0=i=>vo(Fr).questions.find(n=>n.questionId===i),s0=()=>{Fr.update(i=>({...i,questions:[]}))},Rh=i=>{Fr.update(n=>({...n,questionsData:i}))},qh=i=>vo(Fr).questionsData[i],Tl="-",u0=i=>{const n=c0(i),{conflictingClassGroups:u,conflictingClassGroupModifiers:l}=i;return{getClassGroupId:d=>{const m=d.split(Tl);return m[0]===""&&m.length!==1&&m.shift(),Fh(m,n)||l0(d)},getConflictingClassGroupIds:(d,m)=>{const p=u[d]||[];return m&&l[d]?[...p,...l[d]]:p}}},Fh=(i,n)=>{if(i.length===0)return n.classGroupId;const u=i[0],l=n.nextPart.get(u),d=l?Fh(i.slice(1),l):void 0;if(d)return d;if(n.validators.length===0)return;const m=i.join(Tl);return n.validators.find(({validator:p})=>p(m))?.classGroupId},Wh=/^\[(.+)\]$/,l0=i=>{if(Wh.test(i)){const n=Wh.exec(i)[1],u=n?.substring(0,n.indexOf(":"));if(u)return"arbitrary.."+u}},c0=i=>{const{theme:n,classGroups:u}=i,l={nextPart:new Map,validators:[]};for(const d in u)Ol(u[d],l,d,n);return l},Ol=(i,n,u,l)=>{i.forEach(d=>{if(typeof d=="string"){const m=d===""?n:Vh(n,d);m.classGroupId=u;return}if(typeof d=="function"){if(d0(d)){Ol(d(l),n,u,l);return}n.validators.push({validator:d,classGroupId:u});return}Object.entries(d).forEach(([m,p])=>{Ol(p,Vh(n,m),u,l)})})},Vh=(i,n)=>{let u=i;return n.split(Tl).forEach(l=>{u.nextPart.has(l)||u.nextPart.set(l,{nextPart:new Map,validators:[]}),u=u.nextPart.get(l)}),u},d0=i=>i.isThemeGetter,f0=i=>{if(i<1)return{get:()=>{},set:()=>{}};let n=0,u=new Map,l=new Map;const d=(m,p)=>{u.set(m,p),n++,n>i&&(n=0,l=u,u=new Map)};return{get(m){let p=u.get(m);if(p!==void 0)return p;if((p=l.get(m))!==void 0)return d(m,p),p},set(m,p){u.has(m)?u.set(m,p):d(m,p)}}},El="!",Pl=":",m0=Pl.length,p0=i=>{const{prefix:n,experimentalParseClassName:u}=i;let l=d=>{const m=[];let p=0,g=0,v=0,b;for(let x=0;x<d.length;x++){let O=d[x];if(p===0&&g===0){if(O===Pl){m.push(d.slice(v,x)),v=x+m0;continue}if(O==="/"){b=x;continue}}O==="["?p++:O==="]"?p--:O==="("?g++:O===")"&&g--}const h=m.length===0?d:d.substring(v),k=g0(h),y=k!==h,I=b&&b>v?b-v:void 0;return{modifiers:m,hasImportantModifier:y,baseClassName:k,maybePostfixModifierPosition:I}};if(n){const d=n+Pl,m=l;l=p=>p.startsWith(d)?m(p.substring(d.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(u){const d=l;l=m=>u({className:m,parseClassName:d})}return l},g0=i=>i.endsWith(El)?i.substring(0,i.length-1):i.startsWith(El)?i.substring(1):i,v0=i=>{const n=Object.fromEntries(i.orderSensitiveModifiers.map(u=>[u,!0]));return u=>{if(u.length<=1)return u;const l=[];let d=[];return u.forEach(m=>{m[0]==="["||n[m]?(l.push(...d.sort(),m),d=[]):d.push(m)}),l.push(...d.sort()),l}},h0=i=>({cache:f0(i.cacheSize),parseClassName:p0(i),sortModifiers:v0(i),...u0(i)}),b0=/\s+/,y0=(i,n)=>{const{parseClassName:u,getClassGroupId:l,getConflictingClassGroupIds:d,sortModifiers:m}=n,p=[],g=i.trim().split(b0);let v="";for(let b=g.length-1;b>=0;b-=1){const h=g[b],{isExternal:k,modifiers:y,hasImportantModifier:I,baseClassName:x,maybePostfixModifierPosition:O}=u(h);if(k){v=h+(v.length>0?" "+v:v);continue}let j=!!O,J=l(j?x.substring(0,O):x);if(!J){if(!j){v=h+(v.length>0?" "+v:v);continue}if(J=l(x),!J){v=h+(v.length>0?" "+v:v);continue}j=!1}const re=m(y).join(":"),W=I?re+El:re,G=W+J;if(p.includes(G))continue;p.push(G);const V=d(J,j);for(let M=0;M<V.length;++M){const te=V[M];p.push(W+te)}v=h+(v.length>0?" "+v:v)}return v};function $0(){let i=0,n,u,l="";for(;i<arguments.length;)(n=arguments[i++])&&(u=Qh(n))&&(l&&(l+=" "),l+=u);return l}const Qh=i=>{if(typeof i=="string")return i;let n,u="";for(let l=0;l<i.length;l++)i[l]&&(n=Qh(i[l]))&&(u&&(u+=" "),u+=n);return u};function Cl(i,...n){let u,l,d,m=p;function p(v){const b=n.reduce((h,k)=>k(h),i());return u=h0(b),l=u.cache.get,d=u.cache.set,m=g,g(v)}function g(v){const b=l(v);if(b)return b;const h=y0(v,u);return d(v,h),h}return function(){return m($0.apply(null,arguments))}}const Jt=i=>{const n=u=>u[i]||[];return n.isThemeGetter=!0,n},Gh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_0=/^\d+\/\d+$/,w0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,k0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,x0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,S0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,I0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wi=i=>_0.test(i),nt=i=>!!i&&!Number.isNaN(Number(i)),In=i=>!!i&&Number.isInteger(Number(i)),Ul=i=>i.endsWith("%")&&nt(i.slice(0,-1)),ln=i=>w0.test(i),z0=()=>!0,N0=i=>k0.test(i)&&!x0.test(i),Bh=()=>!1,j0=i=>S0.test(i),T0=i=>I0.test(i),O0=i=>!Te(i)&&!Oe(i),E0=i=>ki(i,eb,Bh),Te=i=>Gh.test(i),ri=i=>ki(i,tb,N0),Al=i=>ki(i,D0,nt),Yh=i=>ki(i,Hh,Bh),P0=i=>ki(i,Xh,T0),Aa=i=>ki(i,rb,j0),Oe=i=>Jh.test(i),ho=i=>xi(i,tb),C0=i=>xi(i,L0),Kh=i=>xi(i,Hh),U0=i=>xi(i,eb),A0=i=>xi(i,Xh),Da=i=>xi(i,rb,!0),ki=(i,n,u)=>{const l=Gh.exec(i);return l?l[1]?n(l[1]):u(l[2]):!1},xi=(i,n,u=!1)=>{const l=Jh.exec(i);return l?l[1]?n(l[1]):u:!1},Hh=i=>i==="position"||i==="percentage",Xh=i=>i==="image"||i==="url",eb=i=>i==="length"||i==="size"||i==="bg-size",tb=i=>i==="length",D0=i=>i==="number",L0=i=>i==="family-name",rb=i=>i==="shadow",Dl=()=>{const i=Jt("color"),n=Jt("font"),u=Jt("text"),l=Jt("font-weight"),d=Jt("tracking"),m=Jt("leading"),p=Jt("breakpoint"),g=Jt("container"),v=Jt("spacing"),b=Jt("radius"),h=Jt("shadow"),k=Jt("inset-shadow"),y=Jt("text-shadow"),I=Jt("drop-shadow"),x=Jt("blur"),O=Jt("perspective"),j=Jt("aspect"),J=Jt("ease"),re=Jt("animate"),W=()=>["auto","avoid","all","avoid-page","page","left","right","column"],G=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],V=()=>[...G(),Oe,Te],M=()=>["auto","hidden","clip","visible","scroll"],te=()=>["auto","contain","none"],ne=()=>[Oe,Te,v],$e=()=>[wi,"full","auto",...ne()],je=()=>[In,"none","subgrid",Oe,Te],Se=()=>["auto",{span:["full",In,Oe,Te]},In,Oe,Te],ke=()=>[In,"auto",Oe,Te],ve=()=>["auto","min","max","fr",Oe,Te],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],Z=()=>["auto",...ne()],C=()=>[wi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ne()],S=()=>[i,Oe,Te],D=()=>[...G(),Kh,Yh,{position:[Oe,Te]}],F=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ue=()=>["auto","cover","contain",U0,E0,{size:[Oe,Te]}],_e=()=>[Ul,ho,ri],ce=()=>["","none","full",b,Oe,Te],we=()=>["",nt,ho,ri],Ee=()=>["solid","dashed","dotted","double"],se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[nt,Ul,Kh,Yh],Pe=()=>["","none",x,Oe,Te],Ue=()=>["none",nt,Oe,Te],qe=()=>["none",nt,Oe,Te],We=()=>[nt,Oe,Te],Qe=()=>[wi,"full",...ne()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ln],breakpoint:[ln],color:[z0],container:[ln],"drop-shadow":[ln],ease:["in","out","in-out"],font:[O0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ln],shadow:[ln],spacing:["px",nt],text:[ln],"text-shadow":[ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wi,Te,Oe,j]}],container:["container"],columns:[{columns:[nt,Te,Oe,g]}],"break-after":[{"break-after":W()}],"break-before":[{"break-before":W()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:V()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$e()}],"inset-x":[{"inset-x":$e()}],"inset-y":[{"inset-y":$e()}],start:[{start:$e()}],end:[{end:$e()}],top:[{top:$e()}],right:[{right:$e()}],bottom:[{bottom:$e()}],left:[{left:$e()}],visibility:["visible","invisible","collapse"],z:[{z:[In,"auto",Oe,Te]}],basis:[{basis:[wi,"full","auto",g,...ne()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,wi,"auto","initial","none",Te]}],grow:[{grow:["",nt,Oe,Te]}],shrink:[{shrink:["",nt,Oe,Te]}],order:[{order:[In,"first","last","none",Oe,Te]}],"grid-cols":[{"grid-cols":je()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":ke()}],"col-end":[{"col-end":ke()}],"grid-rows":[{"grid-rows":je()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":ke()}],"row-end":[{"row-end":ke()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ve()}],"auto-rows":[{"auto-rows":ve()}],gap:[{gap:ne()}],"gap-x":[{"gap-x":ne()}],"gap-y":[{"gap-y":ne()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:ne()}],px:[{px:ne()}],py:[{py:ne()}],ps:[{ps:ne()}],pe:[{pe:ne()}],pt:[{pt:ne()}],pr:[{pr:ne()}],pb:[{pb:ne()}],pl:[{pl:ne()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":ne()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ne()}],"space-y-reverse":["space-y-reverse"],size:[{size:C()}],w:[{w:[g,"screen",...C()]}],"min-w":[{"min-w":[g,"screen","none",...C()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...C()]}],h:[{h:["screen","lh",...C()]}],"min-h":[{"min-h":["screen","lh","none",...C()]}],"max-h":[{"max-h":["screen","lh",...C()]}],"font-size":[{text:["base",u,ho,ri]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,Oe,Al]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ul,Te]}],"font-family":[{font:[C0,Te,n]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[d,Oe,Te]}],"line-clamp":[{"line-clamp":[nt,"none",Oe,Al]}],leading:[{leading:[m,...ne()]}],"list-image":[{"list-image":["none",Oe,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:S()}],"text-color":[{text:S()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Oe,ri]}],"text-decoration-color":[{decoration:S()}],"underline-offset":[{"underline-offset":[nt,"auto",Oe,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ne()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,Te]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:ue()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},In,Oe,Te],radial:["",Oe,Te],conic:[In,Oe,Te]},A0,P0]}],"bg-color":[{bg:S()}],"gradient-from-pos":[{from:_e()}],"gradient-via-pos":[{via:_e()}],"gradient-to-pos":[{to:_e()}],"gradient-from":[{from:S()}],"gradient-via":[{via:S()}],"gradient-to":[{to:S()}],rounded:[{rounded:ce()}],"rounded-s":[{"rounded-s":ce()}],"rounded-e":[{"rounded-e":ce()}],"rounded-t":[{"rounded-t":ce()}],"rounded-r":[{"rounded-r":ce()}],"rounded-b":[{"rounded-b":ce()}],"rounded-l":[{"rounded-l":ce()}],"rounded-ss":[{"rounded-ss":ce()}],"rounded-se":[{"rounded-se":ce()}],"rounded-ee":[{"rounded-ee":ce()}],"rounded-es":[{"rounded-es":ce()}],"rounded-tl":[{"rounded-tl":ce()}],"rounded-tr":[{"rounded-tr":ce()}],"rounded-br":[{"rounded-br":ce()}],"rounded-bl":[{"rounded-bl":ce()}],"border-w":[{border:we()}],"border-w-x":[{"border-x":we()}],"border-w-y":[{"border-y":we()}],"border-w-s":[{"border-s":we()}],"border-w-e":[{"border-e":we()}],"border-w-t":[{"border-t":we()}],"border-w-r":[{"border-r":we()}],"border-w-b":[{"border-b":we()}],"border-w-l":[{"border-l":we()}],"divide-x":[{"divide-x":we()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":we()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:S()}],"border-color-x":[{"border-x":S()}],"border-color-y":[{"border-y":S()}],"border-color-s":[{"border-s":S()}],"border-color-e":[{"border-e":S()}],"border-color-t":[{"border-t":S()}],"border-color-r":[{"border-r":S()}],"border-color-b":[{"border-b":S()}],"border-color-l":[{"border-l":S()}],"divide-color":[{divide:S()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Oe,Te]}],"outline-w":[{outline:["",nt,ho,ri]}],"outline-color":[{outline:S()}],shadow:[{shadow:["","none",h,Da,Aa]}],"shadow-color":[{shadow:S()}],"inset-shadow":[{"inset-shadow":["none",k,Da,Aa]}],"inset-shadow-color":[{"inset-shadow":S()}],"ring-w":[{ring:we()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:S()}],"ring-offset-w":[{"ring-offset":[nt,ri]}],"ring-offset-color":[{"ring-offset":S()}],"inset-ring-w":[{"inset-ring":we()}],"inset-ring-color":[{"inset-ring":S()}],"text-shadow":[{"text-shadow":["none",y,Da,Aa]}],"text-shadow-color":[{"text-shadow":S()}],opacity:[{opacity:[nt,Oe,Te]}],"mix-blend":[{"mix-blend":[...se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":S()}],"mask-image-linear-to-color":[{"mask-linear-to":S()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":S()}],"mask-image-t-to-color":[{"mask-t-to":S()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":S()}],"mask-image-r-to-color":[{"mask-r-to":S()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":S()}],"mask-image-b-to-color":[{"mask-b-to":S()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":S()}],"mask-image-l-to-color":[{"mask-l-to":S()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":S()}],"mask-image-x-to-color":[{"mask-x-to":S()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":S()}],"mask-image-y-to-color":[{"mask-y-to":S()}],"mask-image-radial":[{"mask-radial":[Oe,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":S()}],"mask-image-radial-to-color":[{"mask-radial-to":S()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":G()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":S()}],"mask-image-conic-to-color":[{"mask-conic-to":S()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:ue()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,Te]}],filter:[{filter:["","none",Oe,Te]}],blur:[{blur:Pe()}],brightness:[{brightness:[nt,Oe,Te]}],contrast:[{contrast:[nt,Oe,Te]}],"drop-shadow":[{"drop-shadow":["","none",I,Da,Aa]}],"drop-shadow-color":[{"drop-shadow":S()}],grayscale:[{grayscale:["",nt,Oe,Te]}],"hue-rotate":[{"hue-rotate":[nt,Oe,Te]}],invert:[{invert:["",nt,Oe,Te]}],saturate:[{saturate:[nt,Oe,Te]}],sepia:[{sepia:["",nt,Oe,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,Te]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Oe,Te]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Oe,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Oe,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Oe,Te]}],"backdrop-invert":[{"backdrop-invert":["",nt,Oe,Te]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Oe,Te]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Oe,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Oe,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ne()}],"border-spacing-x":[{"border-spacing-x":ne()}],"border-spacing-y":[{"border-spacing-y":ne()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Oe,Te]}],ease:[{ease:["linear","initial",J,Oe,Te]}],delay:[{delay:[nt,Oe,Te]}],animate:[{animate:["none",re,Oe,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,Oe,Te]}],"perspective-origin":[{"perspective-origin":V()}],rotate:[{rotate:Ue()}],"rotate-x":[{"rotate-x":Ue()}],"rotate-y":[{"rotate-y":Ue()}],"rotate-z":[{"rotate-z":Ue()}],scale:[{scale:qe()}],"scale-x":[{"scale-x":qe()}],"scale-y":[{"scale-y":qe()}],"scale-z":[{"scale-z":qe()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[Oe,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:V()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Qe()}],"translate-x":[{"translate-x":Qe()}],"translate-y":[{"translate-y":Qe()}],"translate-z":[{"translate-z":Qe()}],"translate-none":["translate-none"],accent:[{accent:S()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:S()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Oe,Te]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":ne()}],"scroll-mx":[{"scroll-mx":ne()}],"scroll-my":[{"scroll-my":ne()}],"scroll-ms":[{"scroll-ms":ne()}],"scroll-me":[{"scroll-me":ne()}],"scroll-mt":[{"scroll-mt":ne()}],"scroll-mr":[{"scroll-mr":ne()}],"scroll-mb":[{"scroll-mb":ne()}],"scroll-ml":[{"scroll-ml":ne()}],"scroll-p":[{"scroll-p":ne()}],"scroll-px":[{"scroll-px":ne()}],"scroll-py":[{"scroll-py":ne()}],"scroll-ps":[{"scroll-ps":ne()}],"scroll-pe":[{"scroll-pe":ne()}],"scroll-pt":[{"scroll-pt":ne()}],"scroll-pr":[{"scroll-pr":ne()}],"scroll-pb":[{"scroll-pb":ne()}],"scroll-pl":[{"scroll-pl":ne()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Oe,Te]}],fill:[{fill:["none",...S()]}],"stroke-w":[{stroke:[nt,ho,ri,Al]}],stroke:[{stroke:["none",...S()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},M0=(i,{cacheSize:n,prefix:u,experimentalParseClassName:l,extend:d={},override:m={}})=>(bo(i,"cacheSize",n),bo(i,"prefix",u),bo(i,"experimentalParseClassName",l),La(i.theme,m.theme),La(i.classGroups,m.classGroups),La(i.conflictingClassGroups,m.conflictingClassGroups),La(i.conflictingClassGroupModifiers,m.conflictingClassGroupModifiers),bo(i,"orderSensitiveModifiers",m.orderSensitiveModifiers),Ma(i.theme,d.theme),Ma(i.classGroups,d.classGroups),Ma(i.conflictingClassGroups,d.conflictingClassGroups),Ma(i.conflictingClassGroupModifiers,d.conflictingClassGroupModifiers),nb(i,d,"orderSensitiveModifiers"),i),bo=(i,n,u)=>{u!==void 0&&(i[n]=u)},La=(i,n)=>{if(n)for(const u in n)bo(i,u,n[u])},Ma=(i,n)=>{if(n)for(const u in n)nb(i,n,u)},nb=(i,n,u)=>{const l=n[u];l!==void 0&&(i[u]=i[u]?i[u].concat(l):l)},Z0=(i,...n)=>typeof i=="function"?Cl(Dl,i,...n):Cl(()=>M0(Dl(),i),...n),ib=Cl(Dl);function wr(...i){return ib(mo(i))}var R0=/\s+/g,Ll=i=>typeof i!="string"||!i?i:i.replace(R0," ").trim(),Za=(...i)=>{let n=[],u=l=>{if(!l&&l!==0&&l!==0n)return;if(Array.isArray(l)){for(let m=0,p=l.length;m<p;m++)u(l[m]);return}let d=typeof l;if(d==="string"||d==="number"||d==="bigint"){if(d==="number"&&l!==l)return;n.push(String(l))}else if(d==="object"){let m=Object.keys(l);for(let p=0,g=m.length;p<g;p++){let v=m[p];l[v]&&n.push(v)}}};for(let l=0,d=i.length;l<d;l++){let m=i[l];m!=null&&u(m)}return n.length>0?Ll(n.join(" ")):void 0},ob=i=>i===!1?"false":i===!0?"true":i===0?"0":i,fr=i=>{if(!i||typeof i!="object")return!0;for(let n in i)return!1;return!0},q0=(i,n)=>{if(i===n)return!0;if(!i||!n)return!1;let u=Object.keys(i),l=Object.keys(n);if(u.length!==l.length)return!1;for(let d=0;d<u.length;d++){let m=u[d];if(!l.includes(m)||i[m]!==n[m])return!1}return!0},ab=(i,n)=>{for(let u in n)if(Object.prototype.hasOwnProperty.call(n,u)){let l=n[u];u in i?i[u]=Za(i[u],l):i[u]=l}return i},sb=(i,n)=>{for(let u=0;u<i.length;u++){let l=i[u];Array.isArray(l)?sb(l,n):l&&n.push(l)}},ub=(...i)=>{let n=[];sb(i,n);let u=[];for(let l=0;l<n.length;l++)n[l]&&u.push(n[l]);return u},Ml=(i,n)=>{let u={};for(let l in i){let d=i[l];if(l in n){let m=n[l];Array.isArray(d)||Array.isArray(m)?u[l]=ub(m,d):typeof d=="object"&&typeof m=="object"&&d&&m?u[l]=Ml(d,m):u[l]=m+" "+d}else u[l]=d}for(let l in n)l in i||(u[l]=n[l]);return u},F0={twMerge:!0,twMergeConfig:{},responsiveVariants:!1};function W0(){let i=null,n={},u=!1;return{get cachedTwMerge(){return i},set cachedTwMerge(l){i=l},get cachedTwMergeConfig(){return n},set cachedTwMergeConfig(l){n=l},get didTwMergeConfigChange(){return u},set didTwMergeConfigChange(l){u=l},reset(){i=null,n={},u=!1}}}var cn=W0(),V0=i=>{let n=(u,l)=>{let{extend:d=null,slots:m={},variants:p={},compoundVariants:g=[],compoundSlots:v=[],defaultVariants:b={}}=u,h={...F0,...l},k=d?.base?Za(d.base,u?.base):u?.base,y=d?.variants&&!fr(d.variants)?Ml(p,d.variants):p,I=d?.defaultVariants&&!fr(d.defaultVariants)?{...d.defaultVariants,...b}:b;!fr(h.twMergeConfig)&&!q0(h.twMergeConfig,cn.cachedTwMergeConfig)&&(cn.didTwMergeConfigChange=!0,cn.cachedTwMergeConfig=h.twMergeConfig);let x=fr(d?.slots),O=fr(m)?{}:{base:Za(u?.base,x&&d?.base),...m},j=x?O:ab({...d?.slots},fr(O)?{base:u?.base}:O),J=fr(d?.compoundVariants)?g:ub(d?.compoundVariants,g),re=G=>{if(fr(y)&&fr(m)&&x)return i(k,G?.class,G?.className)(h);if(J&&!Array.isArray(J))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof J}`);if(v&&!Array.isArray(v))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof v}`);let V=(B,P,Z=[],C)=>{let S=Z;if(typeof P=="string"){let D=Ll(P).split(" ");for(let F=0;F<D.length;F++)S.push(`${B}:${D[F]}`)}else if(Array.isArray(P))for(let D=0;D<P.length;D++)S.push(`${B}:${P[D]}`);else if(typeof P=="object"&&typeof C=="string"&&C in P){let D=P[C];if(D&&typeof D=="string"){let F=Ll(D).split(" "),ue=[];for(let _e=0;_e<F.length;_e++)ue.push(`${B}:${F[_e]}`);S[C]=S[C]?S[C].concat(ue):ue}else if(Array.isArray(D)&&D.length>0){let F=[];for(let ue=0;ue<D.length;ue++)F.push(`${B}:${D[ue]}`);S[C]=F}}return S},M=(B,P=y,Z=null,C=null)=>{let S=P[B];if(!S||fr(S))return null;let D=C?.[B]??G?.[B];if(D===null)return null;let F=ob(D),ue=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||h.responsiveVariants===!0,_e=I?.[B],ce=[];if(typeof F=="object"&&ue)for(let[se,ie]of Object.entries(F)){let Pe=S[ie];if(se==="initial"){_e=ie;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(se)||(ce=V(se,Pe,ce,Z))}let we=F!=null&&typeof F!="object"?F:ob(_e),Ee=S[we||"false"];return typeof ce=="object"&&typeof Z=="string"&&ce[Z]?ab(ce,Ee):ce.length>0?(ce.push(Ee),Z==="base"?ce.join(" "):ce):Ee},te=()=>{if(!y)return null;let B=Object.keys(y),P=[];for(let Z=0;Z<B.length;Z++){let C=M(B[Z],y);C&&P.push(C)}return P},ne=(B,P)=>{if(!y||typeof y!="object")return null;let Z=[];for(let C in y){let S=M(C,y,B,P),D=B==="base"&&typeof S=="string"?S:S&&S[B];D&&Z.push(D)}return Z},$e={};for(let B in G){let P=G[B];P!==void 0&&($e[B]=P)}let je=(B,P)=>{let Z=typeof G?.[B]=="object"?{[B]:G[B]?.initial}:{};return{...I,...$e,...Z,...P}},Se=(B=[],P)=>{let Z=[],C=B.length;for(let S=0;S<C;S++){let{class:D,className:F,...ue}=B[S],_e=!0,ce=je(null,P);for(let we in ue){let Ee=ue[we],se=ce[we];if(Array.isArray(Ee)){if(!Ee.includes(se)){_e=!1;break}}else{if((Ee==null||Ee===!1)&&(se==null||se===!1))continue;if(se!==Ee){_e=!1;break}}}_e&&(D&&Z.push(D),F&&Z.push(F))}return Z},ke=B=>{let P=Se(J,B);if(!Array.isArray(P))return P;let Z={},C=i;for(let S=0;S<P.length;S++){let D=P[S];if(typeof D=="string")Z.base=C(Z.base,D)(h);else if(typeof D=="object")for(let F in D)Z[F]=C(Z[F],D[F])(h)}return Z},ve=B=>{if(v.length<1)return null;let P={},Z=je(null,B);for(let C=0;C<v.length;C++){let{slots:S=[],class:D,className:F,...ue}=v[C];if(!fr(ue)){let _e=!0;for(let ce in ue){let we=Z[ce],Ee=ue[ce];if(we===void 0||(Array.isArray(Ee)?!Ee.includes(we):Ee!==we)){_e=!1;break}}if(!_e)continue}for(let _e=0;_e<S.length;_e++){let ce=S[_e];P[ce]||(P[ce]=[]),P[ce].push([D,F])}}return P};if(!fr(m)||!x){let B={};if(typeof j=="object"&&!fr(j)){let P=i;for(let Z in j)B[Z]=C=>{let S=ke(C),D=ve(C);return P(j[Z],ne(Z,C),S?S[Z]:void 0,D?D[Z]:void 0,C?.class,C?.className)(h)}}return B}return i(k,te(),Se(J),G?.class,G?.className)(h)},W=()=>{if(!(!y||typeof y!="object"))return Object.keys(y)};return re.variantKeys=W(),re.extend=d,re.base=k,re.slots=j,re.variants=y,re.defaultVariants=I,re.compoundSlots=v,re.compoundVariants=J,re};return{tv:n,createTV:u=>(l,d)=>n(l,d?Ml(u,d):u)}},Q0=i=>fr(i)?ib:Z0({...i,extend:{theme:i.theme,classGroups:i.classGroups,conflictingClassGroupModifiers:i.conflictingClassGroupModifiers,conflictingClassGroups:i.conflictingClassGroups,...i.extend}}),G0=(...i)=>n=>{let u=Za(i);return!u||!n.twMerge?u:((!cn.cachedTwMerge||cn.didTwMergeConfigChange)&&(cn.didTwMergeConfigChange=!1,cn.cachedTwMerge=Q0(cn.cachedTwMergeConfig)),cn.cachedTwMerge(u)||void 0)},{tv:J0}=V0(G0);const lb=J0({base:"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium outline-none transition-all focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white",outline:"bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});var B0=ee("<a><!></a>"),Y0=ee("<button><!></button>");function qt(i,n){Ye(n,!0);let u=_(n,"variant",3,"default"),l=_(n,"size",3,"default"),d=_(n,"ref",15,null),m=_(n,"href",3,void 0),p=_(n,"type",3,"button"),g=Dt(n,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children","onclick"]);var v=Ze(),b=ze(v);{var h=y=>{var I=B0();Wt(I,O=>({"data-slot":"button",class:O,href:n.disabled?void 0:m(),"aria-disabled":n.disabled,role:n.disabled?"link":void 0,tabindex:n.disabled?-1:void 0,...g}),[()=>wr(lb({variant:u(),size:l()}),n.class)]);var x=R(I);Rt(x,()=>n.children??gt),L(I),Or(I,O=>d(O),()=>d()),T(y,I)},k=y=>{var I=Y0();Wt(I,O=>({"data-slot":"button",class:O,type:p(),disabled:n.disabled,onclick:n.onclick,...g}),[()=>wr(lb({variant:u(),size:l()}),n.class)]);var x=R(I);Rt(x,()=>n.children??gt),L(I),Or(I,O=>d(O),()=>d()),T(y,I)};oe(b,y=>{m()?y(h):y(k,!1)})}T(i,v),Ke()}var K0=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),H0=ee('<span class="text-destructive ml-1">*</span>'),X0=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),eS=ee('<span class="text-[10px] xs:text-xs text-muted-foreground font-medium"> </span>'),tS=ee('<span class="text-[10px] xs:text-xs text-muted-foreground font-medium text-right"> </span>'),rS=ee('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),nS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),iS=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div class="flex gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2 justify-center items-center w-full"></div> <!></div> <!></div>');function oS(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"question",8),m=_(n,"value",24,()=>-1),p=_(n,"onChange",8),g=_(n,"error",8,void 0),v=_(n,"currentMode",8,void 0),b=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let h=X(m()??-1);function k(ve){c(h)===ve?($(h,-1),p()(-1),jl(d().id)):($(h,ve),p()(ve),lr(d().id,ve,s.QuestionTypes.NPS))}de(()=>z(v()),()=>{$(u,v()==="dark")}),de(()=>z(m()),()=>{m()!==void 0&&$(h,m())}),de(()=>z(d()),()=>{$(l,Array.from({length:(d().max??10)-(d().min??0)+1},(ve,B)=>B+(d().min??0)))}),sr(),Ht();var y=iS(),I=R(y),x=R(I);{var O=ve=>{var B=K0(),P=R(B);L(B),xe(()=>Ne(P,`${b()??""}.`)),T(ve,B)};oe(x,ve=>{b()!==void 0&&ve(O)})}var j=fe(x,2),J=R(j),re=R(J),W=fe(re);{var G=ve=>{var B=H0();T(ve,B)};oe(W,ve=>{z(d()),U(()=>d().required)&&ve(G)})}L(J);var V=fe(J,2);{var M=ve=>{var B=X0(),P=R(B,!0);L(B),xe(()=>Ne(P,(z(d()),U(()=>d().description)))),T(ve,B)};oe(V,ve=>{z(d()),U(()=>d().description)&&ve(M)})}L(j),L(I);var te=fe(I,2),ne=R(te);dr(ne,5,()=>c(l),_r,(ve,B)=>{{let P=Le(()=>`flex-1 min-w-0 h-8 xs:h-9 sm:h-10 text-xs xs:text-sm sm:text-base font-semibold transition-all ${c(h)===c(B)?"bg-primary text-primary-foreground border-primary shadow-md hover:bg-primary/90 scale-105 dark:border-primary/90 dark:bg-primary dark:hover:bg-primary dark:hover:text-primary-foreground":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`);qt(ve,{type:"button",variant:"outline",size:"sm",get class(){return c(P)},onclick:()=>k(c(B)),children:(Z,C)=>{yr();var S=kn();xe(()=>Ne(S,c(B))),T(Z,S)},$$slots:{default:!0}})}}),L(ne);var $e=fe(ne,2);{var je=ve=>{var B=rS(),P=R(B);{var Z=D=>{var F=eS(),ue=R(F,!0);L(F),xe(()=>Ne(ue,(z(d()),U(()=>d().minLabel)))),T(D,F)};oe(P,D=>{z(d()),U(()=>d().minLabel)&&D(Z)})}var C=fe(P,2);{var S=D=>{var F=tS(),ue=R(F,!0);L(F),xe(()=>Ne(ue,(z(d()),U(()=>d().maxLabel)))),T(D,F)};oe(C,D=>{z(d()),U(()=>d().maxLabel)&&D(S)})}L(B),T(ve,B)};oe($e,ve=>{z(d()),U(()=>d().minLabel||d().maxLabel)&&ve(je)})}L(te);var Se=fe(te,2);{var ke=ve=>{var B=nS(),P=R(B),Z=R(P,!0);L(P),L(B),xe(()=>Ne(Z,g())),T(ve,B)};oe(Se,ve=>{g()&&ve(ke)})}L(y),xe(()=>Ne(re,`${z(d()),U(()=>d().title)??""} `)),T(i,y),Ke()}var aS=ee("<nav><!></nav>");function sS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=aS();Wt(d,()=>({"data-slot":"breadcrumb",class:n.class,"aria-label":"breadcrumb",...l}));var m=R(d);Rt(m,()=>n.children??gt),L(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}/**
|
|
47
|
+
* @license @lucide/svelte v0.544.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* ISC License
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
|
|
52
|
+
*
|
|
53
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
54
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
55
|
+
* copyright notice and this permission notice appear in all copies.
|
|
56
|
+
*
|
|
57
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
58
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
59
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
60
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
61
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
62
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
63
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
64
|
+
*
|
|
65
|
+
* ---
|
|
66
|
+
*
|
|
67
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) 2013-2023 Cole Bemis
|
|
70
|
+
*
|
|
71
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
72
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
73
|
+
* in the Software without restriction, including without limitation the rights
|
|
74
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
75
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
76
|
+
* furnished to do so, subject to the following conditions:
|
|
77
|
+
*
|
|
78
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
79
|
+
* copies or substantial portions of the Software.
|
|
80
|
+
*
|
|
81
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
82
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
83
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
84
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
85
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
86
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
87
|
+
* SOFTWARE.
|
|
88
|
+
*
|
|
89
|
+
*/const uS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var lS=wn("<svg><!><!></svg>");function Ra(i,n){Ye(n,!0);const u=_(n,"color",3,"currentColor"),l=_(n,"size",3,24),d=_(n,"strokeWidth",3,2),m=_(n,"absoluteStrokeWidth",3,!1),p=_(n,"iconNode",19,()=>[]),g=Dt(n,["$$slots","$$events","$$legacy","name","color","size","strokeWidth","absoluteStrokeWidth","iconNode","children"]);var v=lS();Wt(v,k=>({...uS,...g,width:l(),height:l(),stroke:u(),"stroke-width":k,class:["lucide-icon lucide",n.name&&`lucide-${n.name}`,n.class]}),[()=>m()?Number(d())*24/Number(l()):d()]);var b=R(v);dr(b,17,p,_r,(k,y)=>{var I=lt(()=>Gt(c(y),2));let x=()=>c(I)[0],O=()=>c(I)[1];var j=Ze(),J=ze(j);_h(J,x,!0,(re,W)=>{Wt(re,()=>({...O()}))}),T(k,j)});var h=fe(b);Rt(h,()=>n.children??gt),L(v),T(i,v),Ke()}var cS=ee("<li><!></li>");function cb(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=cS();Wt(d,p=>({"data-slot":"breadcrumb-item",class:p,...l}),[()=>wr("inline-flex items-center gap-1.5",n.class)]);var m=R(d);Rt(m,()=>n.children??gt),L(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}function dS(i,n){Ye(n,!0);/**
|
|
90
|
+
* @license @lucide/svelte v0.544.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* ISC License
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
|
|
95
|
+
*
|
|
96
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
97
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
98
|
+
* copyright notice and this permission notice appear in all copies.
|
|
99
|
+
*
|
|
100
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
101
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
102
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
103
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
104
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
105
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
106
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
107
|
+
*
|
|
108
|
+
* ---
|
|
109
|
+
*
|
|
110
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
111
|
+
*
|
|
112
|
+
* Copyright (c) 2013-2023 Cole Bemis
|
|
113
|
+
*
|
|
114
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
115
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
116
|
+
* in the Software without restriction, including without limitation the rights
|
|
117
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
118
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
119
|
+
* furnished to do so, subject to the following conditions:
|
|
120
|
+
*
|
|
121
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
122
|
+
* copies or substantial portions of the Software.
|
|
123
|
+
*
|
|
124
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
125
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
126
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
127
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
128
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
129
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
130
|
+
* SOFTWARE.
|
|
131
|
+
*
|
|
132
|
+
*/let u=Dt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"m9 18 6-6-6-6"}]];Ra(i,jt({name:"chevron-right"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var fS=ee("<li><!></li>");function mS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=fS();Wt(d,v=>({"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",class:v,...l}),[()=>wr("[&>svg]:size-3.5",n.class)]);var m=R(d);{var p=v=>{var b=Ze(),h=ze(b);Rt(h,()=>n.children??gt),T(v,b)},g=v=>{dS(v,{})};oe(m,v=>{n.children?v(p):v(g,!1)})}L(d),Or(d,v=>u(v),()=>u()),T(i,d),Ke()}var pS=ee("<a><!></a>");function gS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"href",3,void 0),d=Dt(n,["$$slots","$$events","$$legacy","ref","class","href","child","children"]);const m=lt(()=>({"data-slot":"breadcrumb-link",class:wr("hover:text-foreground transition-colors",n.class),href:l(),...d}));var p=Ze(),g=ze(p);{var v=h=>{var k=Ze(),y=ze(k);Rt(y,()=>n.child,()=>({props:c(m)})),T(h,k)},b=h=>{var k=pS();Wt(k,()=>({...c(m)}));var y=R(k);Rt(y,()=>n.children??gt),L(k),Or(k,I=>u(I),()=>u()),T(h,k)};oe(g,h=>{n.child?h(v):h(b,!1)})}T(i,p),Ke()}var vS=ee("<ol><!></ol>");function hS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class","children"]);var d=vS();Wt(d,p=>({"data-slot":"breadcrumb-list",class:p,...l}),[()=>wr("text-muted-foreground flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",n.class)]);var m=R(d);Rt(m,()=>n.children??gt),L(d),Or(d,p=>u(p),()=>u()),T(i,d),Ke()}var bS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),yS=ee('<span class="text-destructive ml-1">*</span>'),$S=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),_S=ee("<!> <!>",1),wS=ee("<!> <!>",1),kS=wn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),xS=ee('<span class="flex items-center gap-3 w-full"><span class="flex-1 text-sm font-medium"> </span> <!></span>'),SS=ee('<div class="p-2 space-y-1"></div>'),IS=ee('<div class="flex flex-col items-center justify-center py-12 px-4"><div class="w-12 h-12 rounded-full bg-muted flex items-center justify-center mb-3"><svg class="w-6 h-6 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm font-medium text-muted-foreground">No options available</p></div>'),zS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),NS=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="border border-border rounded-xl bg-card shadow-sm overflow-hidden"><div class="px-4 py-3 bg-accent/30 border-b border-border backdrop-blur-sm"><!></div> <div class="max-h-[420px] overflow-y-auto scrollbar-thin"><!></div></div> <!></div>');function jS(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",24,()=>[]),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);const b=d()?Array.isArray(d())?d():[d()]:[];let h=X(b),k=X(O()),y=X(!1),I=X([]),x=X([]);function O(){return b.length===0?[]:b.slice(0,-1)}function j(se,ie){console.log("handleChange called",{option:se,path:ie,hasChildren:se.children&&se.children.length>0}),$(y,!0),se.children&&se.children.length>0?(console.log("Navigating to children, setting navPath to:",ie),$(k,ie),console.log("navPath is now:",c(k))):(console.log("Leaf node selected, setting selectedValue to:",ie),$(h,ie),$(k,ie.slice(0,-1)),m()(ie))}function J(se){const ie=c(h);return ie.length!==se.length?!1:se.every((Pe,Ue)=>ie[Ue]===Pe)}function re(se){console.log("getCurrentLevelOptions called with path:",se);let ie=l().options;for(let Pe=0;Pe<se.length;Pe++){const Ue=ie.find(qe=>qe.value===se[Pe]);if(Ue&&Ue.children)ie=Ue.children;else return[]}return console.log("Returning options:",ie),ie}function W(se){console.log("getBreadcrumbs called with path:",se);const ie=[];let Pe=l().options;for(let Ue=0;Ue<se.length;Ue++){const qe=Pe.find(We=>We.value===se[Ue]);qe&&(ie.push({value:se[Ue],label:qe.label,index:Ue}),qe.children&&(Pe=qe.children))}return console.log("Returning breadcrumbs:",ie),ie}function G(se){$(y,!0),$(k,c(k).slice(0,se+1))}function V(){$(y,!0),$(k,[]),$(h,[]),m()([])}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>(z(d()),c(y)),()=>{if(d()!==void 0&&!c(y)){const se=Array.isArray(d())?d():[d()];$(h,se),se.length>0?$(k,se.slice(0,-1)):$(k,[])}else d()===void 0&&!c(y)&&($(h,[]),$(k,[]))}),de(()=>c(k),()=>{$(I,re(c(k)))}),de(()=>c(k),()=>{$(x,W(c(k)))}),sr(),Ht();var M=NS(),te=R(M),ne=R(te);{var $e=se=>{var ie=bS(),Pe=R(ie);L(ie),xe(()=>Ne(Pe,`${v()??""}.`)),T(se,ie)};oe(ne,se=>{v()!==void 0&&se($e)})}var je=fe(ne,2),Se=R(je),ke=R(Se),ve=fe(ke);{var B=se=>{var ie=yS();T(se,ie)};oe(ve,se=>{z(l()),U(()=>l().required)&&se(B)})}L(Se);var P=fe(Se,2);{var Z=se=>{var ie=$S(),Pe=R(ie,!0);L(ie),xe(()=>Ne(Pe,(z(l()),U(()=>l().description)))),T(se,ie)};oe(P,se=>{z(l()),U(()=>l().description)&&se(Z)})}L(je),L(te);var C=fe(te,2),S=R(C),D=R(S);sS(D,{children:(se,ie)=>{hS(se,{class:"flex items-center gap-1.5 flex-wrap",children:(Pe,Ue)=>{var qe=wS(),We=ze(qe);cb(We,{children:(ot,Ce)=>{qt(ot,{type:"button",variant:"ghost",size:"sm",class:"h-8 w-8 p-0 hover:bg-background/80 rounded-md transition-colors",onclick:V,"aria-label":"Home",children:(yt,kt)=>{i0(yt,{size:18,class:"text-muted-foreground hover:text-foreground transition-colors"})},$$slots:{default:!0}})},$$slots:{default:!0}});var Qe=fe(We,2);dr(Qe,1,()=>c(x),_r,(ot,Ce)=>{var yt=_S(),kt=ze(yt);mS(kt,{class:"text-muted-foreground/50",children:(Lt,Mt)=>{Ua(Lt,{size:14})},$$slots:{default:!0}});var Ot=fe(kt,2);cb(Ot,{children:(Lt,Mt)=>{gS(Lt,{onclick:()=>G(c(Ce).index),class:"cursor-pointer text-sm font-medium text-foreground/80 hover:text-primary transition-colors px-2 py-1 rounded-md hover:bg-background/50",children:(Et,st)=>{yr();var Bt=kn();xe(()=>Ne(Bt,(c(Ce),U(()=>c(Ce).label)))),T(Et,Bt)},$$slots:{default:!0}})},$$slots:{default:!0}}),T(ot,yt)}),T(Pe,qe)},$$slots:{default:!0}})},$$slots:{default:!0}}),L(S);var F=fe(S,2),ue=R(F);{var _e=se=>{var ie=SS();dr(ie,5,()=>c(I),_r,(Pe,Ue)=>{const qe=Le(()=>(c(k),c(Ue),U(()=>J([...c(k),c(Ue).value])))),We=Le(()=>(c(Ue),U(()=>c(Ue).children&&c(Ue).children.length>0)));{let Qe=Le(()=>`w-full justify-start px-4 py-3.5 h-auto rounded-lg text-left transition-all relative group ${c(qe)&&!c(We)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:hover:bg-primary":"text-foreground hover:bg-accent/50 hover:border-border/50 border border-transparent"}`);qt(Pe,{type:"button",variant:"ghost",get class(){return c(Qe)},onclick:()=>j(c(Ue),[...c(k),c(Ue).value]),children:(ot,Ce)=>{var yt=xS(),kt=R(yt),Ot=R(kt,!0);L(kt);var Lt=fe(kt,2);{var Mt=st=>{{let Bt=Le(()=>`flex-shrink-0 transition-transform group-hover:translate-x-0.5 ${c(qe)?"text-primary":"text-muted-foreground"}`);Ua(st,{size:18,get class(){return c(Bt)}})}},Et=st=>{var Bt=Ze(),Yr=ze(Bt);{var Q=N=>{var H=kS();T(N,H)};oe(Yr,N=>{c(qe)&&N(Q)},!0)}T(st,Bt)};oe(Lt,st=>{c(We)?st(Mt):st(Et,!1)})}L(yt),xe(()=>Ne(Ot,(c(Ue),U(()=>c(Ue).label)))),T(ot,yt)},$$slots:{default:!0}})}}),L(ie),T(se,ie)},ce=se=>{var ie=IS();T(se,ie)};oe(ue,se=>{c(I),U(()=>c(I).length>0)?se(_e):se(ce,!1)})}L(F),L(C);var we=fe(C,2);{var Ee=se=>{var ie=zS(),Pe=fe(R(ie),2),Ue=R(Pe,!0);L(Pe),L(ie),xe(()=>Ne(Ue,p())),T(se,ie)};oe(we,se=>{p()&&se(Ee)})}L(M),xe(()=>Ne(ke,`${z(l()),U(()=>l().title)??""} `)),T(i,M),Ke()}var TS=ee("<textarea></textarea>");function OS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15),d=_(n,"data-slot",3,"textarea"),m=Dt(n,["$$slots","$$events","$$legacy","ref","value","class","data-slot"]);var p=TS();sx(p),Wt(p,g=>({"data-slot":d(),class:g,...m}),[()=>wr("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 field-sizing-content shadow-xs flex min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n.class)]),Or(p,g=>u(g),()=>u()),Ea(p,l),T(i,p),Ke()}function db(i){if(!i)return{code:null,message:""};const n=i.split("|").map(u=>u.trim());if(n.length>=2){const u=n[0],l=n.slice(1).join("|").trim(),d=l.match(/(\d+)\s+seconds?/i),m=d?parseInt(d[1],10):void 0;return{code:u,message:l,seconds:m}}return{code:null,message:i}}function fb(i,n,u){let l=i;n(l);const d=setInterval(()=>{l--,n(l),l<=0&&(clearInterval(d),u())},1e3);return d}function mb(i,n,u,l){if(!u?.otherFields)return n;const{otherFields:d}=u;switch(i){case"1001":{const m=d.aiEnhancementCooldownErrorMessage||n;return l!==void 0?`${m} (${l}s)`:m}case"1002":return d.aiEnhancementMaxReachedErrorMessage||n;default:return n}}async function pb(i){return await window.encatch._internal.refineText({questionId:i.questionId,identifier:i.identifier,feedbackConfigurationId:i.feedbackConfigurationId,userText:i.userText})}var ES=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),PS=ee('<span class="text-destructive ml-1">*</span>'),CS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),US=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),AS=wn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),DS=ee('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),LS=ee("<!> <span>Reset</span>",1),MS=ee('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),ZS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),RS=ee('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),qS=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function FS(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),v=X(),b=X();let h=_(n,"question",8),k=_(n,"value",8,""),y=_(n,"onChange",8),I=_(n,"error",8,void 0),x=_(n,"currentMode",8,void 0),O=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0),_(n,"apiKey",8,void 0),_(n,"hostUrl",8,void 0);let j=_(n,"identifier",8,void 0),J=_(n,"feedbackConfigurationId",8,void 0),re=_(n,"otherConfigurationProperties",8,void 0),W=X(k()??""),G=X(null),V=X(0),M=X(I()),te=X(!1),ne=X(!1),$e=X(!1),je=X(null),Se=X(null),ke=X(!1),ve=X(!1),B=X(""),P=X(0),Z=null,C=X(c(W));xn(()=>{setTimeout(()=>{const N=D(c(W));$(M,N),N&&_i(h().id,N),$(ke,!0)},0)}),Ta(()=>{Z!==null&&clearInterval(Z)});function S(){c(te)||$(te,!0)}function D(N){if(h().required&&(!N||N.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&N.length>h().maxCharacters||h().minCharacters!==void 0&&N.length>0&&N.length<h().minCharacters)return h().errorMessage}function F(N){Z!==null&&clearInterval(Z),Z=fb(N,H=>{$(P,H)},()=>{Z=null,$(je,null)})}async function ue(){if(!Ee()||!j()||!J())return;const N=c(W);try{$($e,!0),$(je,null);const H=await pb({questionId:h().id,identifier:j(),feedbackConfigurationId:J(),userText:N});if(H?.data?.refinedText){const be=H.data.refinedText;$(Se,re()?.otherFields?.aiEnhancementSuccessMessage||H.message||"Text refined successfully"),c(G)?($(G,{original:c(G).original,enhanced:[...c(G).enhanced,be]}),$(V,c(G).enhanced.length)):($(G,{original:N,enhanced:[be]}),$(V,1)),$(W,be),$(ne,!0);const Me=D(be);$(M,Me),y()(be),lr(h().id,be,s.QuestionTypes.LONG_TEXT,Me)}else{if(H?.message){const{code:be,message:Me,seconds:Fe}=db(H.message);be==="1001"&&Fe!==void 0&&F(Fe),$(je,mb(be,Me,re(),Fe))}$(ne,!1)}}catch(H){console.error("Error enhancing text:",H),$(je,"An error occurred while enhancing text"),$(ne,!1)}finally{$($e,!1)}}function _e(){if(!c(G))return;const N=c(G).original;$(W,N),$(V,0);const H=D(N);$(M,H),y()(N),lr(h().id,N,s.QuestionTypes.LONG_TEXT,H)}function ce(N){if(!c(G))return;let H;if(N===0)H=c(G).original;else{const Me=N-1;if(Me>=c(G).enhanced.length)return;H=c(G).enhanced[Me]}$(W,H),$(V,N);const be=D(H);$(M,be),y()(H),lr(h().id,H,s.QuestionTypes.LONG_TEXT,be)}function we(){return c(G)?c(G).enhanced.length+1:0}function Ee(){const N=c(W).trim();return N?h().minCharactersToEnhance!==void 0?N.length>=h().minCharactersToEnhance:!0:!1}de(()=>z(x()),()=>{$(u,x()==="dark")}),de(()=>(z(k()),c(W),c(te)),()=>{k()!==void 0&&k()!==c(W)&&!c(te)&&($(W,k()),$(C,k()))}),de(()=>c(W),()=>{$(l,c(W).length)}),de(()=>z(h()),()=>{$(d,h().minCharacters)}),de(()=>z(h()),()=>{$(m,h().maxCharacters)}),de(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),de(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),de(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),de(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),de(()=>(c(W),z(h())),()=>{const N=c(W).trim();N?h().minCharactersToEnhance!==void 0?$(ve,N.length>=h().minCharactersToEnhance):$(ve,!0):$(ve,!1)}),de(()=>(c(d),c(m),c(l),z(h())),()=>{c(d)!==void 0&&c(m)!==void 0?$(B,`${c(l)} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(B,`${c(l)} / (1 - ${c(m)})`):c(d)!==void 0?$(B,`${c(l)} / (${c(d)} - 5000)`):$(B,"")}),de(()=>(c(P),z(re())),()=>{c(P)>0&&re()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(je,`${re().otherFields.aiEnhancementCooldownErrorMessage} (${c(P)}s)`)}),de(()=>z(I()),()=>{I()!==void 0&&$(M,I())}),de(()=>(c(ke),c(te),c(W),c(C),z(y()),z(h()),s.QuestionTypes),()=>{if(c(ke)&&c(te)&&c(W)!==c(C)){$(C,c(W));const N=D(c(W));$(M,N),y()(c(W)),lr(h().id,c(W),s.QuestionTypes.LONG_TEXT,N)}}),sr(),Ht();var se=qS(),ie=R(se),Pe=R(ie);{var Ue=N=>{var H=ES(),be=R(H);L(H),xe(()=>Ne(be,`${O()??""}.`)),T(N,H)};oe(Pe,N=>{O()!==void 0&&N(Ue)})}var qe=fe(Pe,2),We=R(qe),Qe=R(We),ot=fe(Qe);{var Ce=N=>{var H=PS();T(N,H)};oe(ot,N=>{z(h()),U(()=>h().required)&&N(Ce)})}L(We);var yt=fe(We,2);{var kt=N=>{var H=CS(),be=R(H,!0);L(H),xe(()=>Ne(be,(z(h()),U(()=>h().description)))),T(N,H)};oe(yt,N=>{z(h()),U(()=>h().description)&&N(kt)})}L(qe),L(ie);var Ot=fe(ie,2);{var Lt=N=>{var H=US(),be=R(H),Me=R(be,!0);L(be),L(H),xe(()=>Ne(Me,c(M))),T(N,H)};oe(Ot,N=>{c(M)&&c(te)&&N(Lt)})}var Mt=fe(Ot,2),Et=R(Mt);{let N=Le(()=>(z(h()),U(()=>h().rows||4)));OS(Et,{class:"w-full min-h-[120px] text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 resize-y",onfocus:S,get placeholder(){return z(h()),U(()=>h().placeholder)},get rows(){return c(N)},onblur:()=>{if(c(ke)){const H=D(c(W));$(M,H),_i(h().id,H)}},get value(){return c(W)},set value(H){$(W,H)},$$legacy:!0})}var st=fe(Et,2),Bt=R(st);L(st),L(Mt);var Yr=fe(Mt,2);{var Q=N=>{var H=RS(),be=ze(H),Me=R(be);{let He=Le(()=>c($e)||!c(ve));qt(Me,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:ue,get disabled(){return c(He)},children:(ft,Pt)=>{var _t=Ze(),kr=ze(_t);{var pr=St=>{var dn=AS();T(St,dn)},Xt=St=>{Mh(St,{size:16})};oe(kr,St=>{c($e)?St(pr):St(Xt,!1)})}T(ft,_t)},$$slots:{default:!0}})}var Fe=fe(Me,2);{var $t=He=>{var ft=DS(),Pt=R(ft);{let Xt=Le(()=>c(V)===0);qt(Pt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(V)>0&&ce(c(V)-1)},get disabled(){return c(Xt)},title:"Previous version",children:(St,dn)=>{Dh(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var _t=fe(Pt,2),kr=R(_t);L(_t);var pr=fe(_t,2);{let Xt=Le(()=>(c(V),U(()=>c(V)>=we()-1)));qt(pr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const St=we();c(V)<St-1&&ce(c(V)+1)},get disabled(){return c(Xt)},title:"Next version",children:(St,dn)=>{Ua(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),xe(Xt=>Ne(kr,`${c(V)+1} / ${Xt??""}`),[()=>U(we)]),T(He,ft)};oe(Fe,He=>{c(G),c($e),U(()=>c(G)&&!c($e)&&c(G).enhanced&&c(G).enhanced.length>1)&&He($t)})}var mr=fe(Fe,2);{var nr=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:_e,title:"Back to original text",children:(ft,Pt)=>{var _t=LS(),kr=ze(_t);Ah(kr,{size:16}),yr(2),T(ft,_t)},$$slots:{default:!0}})};oe(mr,He=>{c(G)&&!c($e)&&c(V)!==0&&He(nr)})}L(be);var zn=fe(be,2);{var wo=He=>{var ft=MS(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(Se))),T(He,ft)};oe(zn,He=>{c(ne)&&!c(je)&&He(wo)})}var ko=fe(zn,2);{var xo=He=>{var ft=ZS(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(je))),T(He,ft)};oe(ko,He=>{c(je)&&He(xo)})}T(N,H)};oe(Yr,N=>{z(h()),U(()=>h().enableEnhanceWithAi)&&N(Q)})}L(se),xe(N=>{Ne(Qe,`${z(h()),U(()=>h().title)??""} `),sn(st,1,`absolute right-3 bottom-3 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${c(v)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Ne(Bt,`${c(W),U(()=>c(W)?.length||0)??""}${N??""}`)},[()=>(c(B),U(()=>c(B)?` ${c(B).split("/")[1]||""}`:""))]),T(i,se),Ke()}var WS=ee("<input/>"),VS=ee("<input/>");function QS(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15),d=_(n,"files",15),m=_(n,"data-slot",3,"input"),p=Dt(n,["$$slots","$$events","$$legacy","ref","value","type","files","class","data-slot"]);var g=Ze(),v=ze(g);{var b=k=>{var y=WS();Wt(y,I=>({"data-slot":m(),class:I,type:"file",...p}),[()=>wr("selection:bg-primary dark:bg-input/30 selection:text-primary-foreground border-input ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 pt-1.5 text-sm font-medium outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Or(y,I=>u(I),()=>u()),Vx(y,d),Ea(y,l),T(k,y)},h=k=>{var y=VS();Wt(y,I=>({"data-slot":m(),class:I,type:n.type,...p}),[()=>wr("border-input bg-background selection:bg-primary dark:bg-input/30 selection:text-primary-foreground ring-offset-background placeholder:text-muted-foreground shadow-xs flex h-9 w-full min-w-0 rounded-md border px-3 py-1 text-base outline-none transition-[color,box-shadow] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n.class)],void 0,void 0,!0),Or(y,I=>u(I),()=>u()),Ea(y,l),T(k,y)};oe(v,k=>{n.type==="file"?k(b):k(h,!1)})}T(i,g),Ke()}var GS=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),JS=ee('<span class="text-destructive ml-1">*</span>'),BS=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),YS=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),KS=wn('<svg class="w-4 h-4 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),HS=ee('<div class="flex items-center gap-1 border border-border rounded-lg p-0.5"><!> <span class="text-xs font-medium text-muted-foreground px-2"> </span> <!></div>'),XS=ee("<!> <span>Reset</span>",1),eI=ee('<div class="flex items-center gap-2 text-sm text-green-700 dark:text-green-400 bg-green-50 dark:bg-green-950/30 px-3 py-2 rounded-md border border-green-200 dark:border-green-900"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg> <span class="font-medium"> </span></div>'),tI=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),rI=ee('<div class="flex items-center gap-2 flex-wrap"><!> <!> <!></div> <!> <!>',1),nI=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <div class="relative"><!> <div> </div></div> <!></div>');function iI(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X(),v=X(),b=X();let h=_(n,"question",8),k=_(n,"value",8,""),y=_(n,"onChange",8),I=_(n,"error",8,void 0),x=_(n,"currentMode",8,void 0),O=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0),_(n,"apiKey",8,void 0),_(n,"hostUrl",8,void 0);let j=_(n,"identifier",8,void 0),J=_(n,"feedbackConfigurationId",8,void 0),re=_(n,"otherConfigurationProperties",8,void 0),W=X(k()||""),G=X(null),V=X(0),M=X(I()),te=X(!1),ne=X(!1),$e=X(!1),je=X(null),Se=X(null),ke=X(!1),ve=X(!1),B=X(""),P=X(0),Z=null,C=X(c(W));xn(()=>{setTimeout(()=>{const N=we(c(W));$(M,N),N&&_i(h().id,N),$(ke,!0)},0)}),Ta(()=>{Z!==null&&clearInterval(Z)});function S(){c(te)||$(te,!0)}function D(N){Z!==null&&clearInterval(Z),Z=fb(N,H=>{$(P,H)},()=>{Z=null,$(je,null)})}async function F(){if(!Ee())return;const N=c(W);try{$($e,!0),$(je,null);const H=await pb({questionId:h().id,identifier:j(),feedbackConfigurationId:J(),userText:N});if(H?.data?.refinedText){const be=H.data.refinedText;$(Se,re()?.otherFields?.aiEnhancementSuccessMessage||H.message||"Text refined successfully"),c(G)?($(G,{original:c(G).original,enhanced:[...c(G).enhanced,be]}),$(V,c(G).enhanced.length)):($(G,{original:N,enhanced:[be]}),$(V,1)),$(W,be),$(ne,!0);const Me=we(be);$(M,Me),y()(be),lr(h().id,be,s.QuestionTypes.SHORT_ANSWER,Me)}else{if(H?.message){const{code:be,message:Me,seconds:Fe}=db(H.message);be==="1001"&&Fe!==void 0&&D(Fe),$(je,mb(be,Me,re(),Fe))}$(ne,!1)}}catch(H){console.error("Error enhancing text:",H),$(je,"An error occurred while enhancing text!"),$(ne,!1)}finally{$($e,!1)}}function ue(){if(!c(G))return;const N=c(G).original;$(W,N),$(V,0);const H=we(N);$(M,H),y()(N),lr(h().id,N,s.QuestionTypes.SHORT_ANSWER,H)}function _e(N){if(!c(G))return;let H;if(N===0)H=c(G).original;else{const Me=N-1;if(Me>=c(G).enhanced.length)return;H=c(G).enhanced[Me]}$(W,H),$(V,N);const be=we(H);$(M,be),y()(H),lr(h().id,H,s.QuestionTypes.SHORT_ANSWER,be)}function ce(){return c(G)?c(G).enhanced.length+1:0}function we(N){if(h().required&&(!N||N.trim()===""))return h().errorMessage||"This field is required";if(h().maxCharacters!==void 0&&N.length>h().maxCharacters||h().minCharacters!==void 0&&N.length>0&&N.length<h().minCharacters)return h().errorMessage;if(h().enableRegexValidation&&h().regexPattern)try{const H=new RegExp(h().regexPattern);if(N.length>0&&!H.test(N))return h().errorMessage||"Input does not match required pattern"}catch{}}function Ee(){const N=c(W).trim();return N?h().minCharactersToEnhance!==void 0?N.length>=h().minCharactersToEnhance:!0:!1}de(()=>z(x()),()=>{$(u,x()==="dark")}),de(()=>(z(k()),c(W),c(te)),()=>{k()!==void 0&&k()!==c(W)&&!c(te)&&($(W,k()),$(C,k()))}),de(()=>c(W),()=>{$(l,c(W).length||0)}),de(()=>z(h()),()=>{$(d,h().minCharacters)}),de(()=>z(h()),()=>{$(m,h().maxCharacters)}),de(()=>(c(m),c(l)),()=>{$(p,c(m)!==void 0&&c(l)>c(m))}),de(()=>(c(d),c(l)),()=>{$(g,c(d)!==void 0&&c(l)<c(d)&&c(l)>0)}),de(()=>(c(p),c(g)),()=>{$(v,c(p)||c(g))}),de(()=>(c(d),c(m)),()=>{$(b,c(d)!==void 0||c(m)!==void 0)}),de(()=>(c(W),z(h())),()=>{const N=c(W).trim();N?h().minCharactersToEnhance!==void 0?$(ve,N.length>=h().minCharactersToEnhance):$(ve,!0):$(ve,!1)}),de(()=>(c(W),c(d),c(m),z(h())),()=>{const N=c(W)?.length||0;c(d)!==void 0&&c(m)!==void 0?$(B,`${N} / (${c(d)} - ${c(m)})`):c(m)!==void 0&&h().required?$(B,`${N} / (1 - ${c(m)})`):c(d)!==void 0?$(B,`${N} / (${c(d)} - 5000)`):$(B,`${N}`)}),de(()=>(c(P),z(re())),()=>{c(P)>0&&re()?.otherFields?.aiEnhancementCooldownErrorMessage&&$(je,`${re().otherFields.aiEnhancementCooldownErrorMessage} (${c(P)}s)`)}),de(()=>z(I()),()=>{I()!==void 0&&$(M,I())}),de(()=>(c(ke),c(te),c(W),c(C),z(y()),z(h()),s.QuestionTypes),()=>{if(c(ke)&&c(te)&&c(W)!==c(C)){$(C,c(W));const N=we(c(W));$(M,N),y()(c(W)),lr(h().id,c(W),s.QuestionTypes.SHORT_ANSWER,N)}}),sr(),Ht();var se=nI(),ie=R(se),Pe=R(ie);{var Ue=N=>{var H=GS(),be=R(H);L(H),xe(()=>Ne(be,`${O()??""}.`)),T(N,H)};oe(Pe,N=>{O()!==void 0&&N(Ue)})}var qe=fe(Pe,2),We=R(qe),Qe=R(We),ot=fe(Qe);{var Ce=N=>{var H=JS();T(N,H)};oe(ot,N=>{z(h()),U(()=>h().required)&&N(Ce)})}L(We);var yt=fe(We,2);{var kt=N=>{var H=BS(),be=R(H,!0);L(H),xe(()=>Ne(be,(z(h()),U(()=>h().description)))),T(N,H)};oe(yt,N=>{z(h()),U(()=>h().description)&&N(kt)})}L(qe),L(ie);var Ot=fe(ie,2);{var Lt=N=>{var H=YS(),be=R(H),Me=R(be,!0);L(be),L(H),xe(()=>Ne(Me,c(M))),T(N,H)};oe(Ot,N=>{c(M)&&c(te)&&N(Lt)})}var Mt=fe(Ot,2),Et=R(Mt);{let N=Le(()=>`w-full pr-20 text-secondary-foreground focus-visible:ring-0 focus-visible:ring-offset-0 ${c(b)?"pr-20":""}`);QS(Et,{get class(){return c(N)},onfocus:S,get placeholder(){return z(h()),U(()=>h().placeholder)},onblur:()=>{if(c(ke)){const H=we(c(W));$(M,H),_i(h().id,H)}},get value(){return c(W)},set value(H){$(W,H)},$$legacy:!0})}var st=fe(Et,2),Bt=R(st,!0);L(st),L(Mt);var Yr=fe(Mt,2);{var Q=N=>{var H=rI(),be=ze(H),Me=R(be);{let He=Le(()=>c($e)||!c(ve));qt(Me,{type:"button",variant:"secondary",size:"sm",class:"gap-2",onclick:F,get disabled(){return c(He)},children:(ft,Pt)=>{var _t=Ze(),kr=ze(_t);{var pr=St=>{var dn=KS();T(St,dn)},Xt=St=>{Mh(St,{size:16})};oe(kr,St=>{c($e)?St(pr):St(Xt,!1)})}T(ft,_t)},$$slots:{default:!0}})}var Fe=fe(Me,2);{var $t=He=>{var ft=HS(),Pt=R(ft);{let Xt=Le(()=>c(V)===0);qt(Pt,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{c(V)>0&&_e(c(V)-1)},get disabled(){return c(Xt)},title:"Previous version",children:(St,dn)=>{Dh(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}var _t=fe(Pt,2),kr=R(_t);L(_t);var pr=fe(_t,2);{let Xt=Le(()=>(c(V),U(()=>c(V)>=ce()-1)));qt(pr,{type:"button",class:"p-1.5 rounded hover:bg-accent disabled:opacity-50 disabled:cursor-not-allowed transition-colors",onclick:()=>{const St=ce();c(V)<St-1&&_e(c(V)+1)},get disabled(){return c(Xt)},title:"Next version",children:(St,dn)=>{Ua(St,{size:14,class:"text-muted-foreground"})},$$slots:{default:!0}})}L(ft),xe(Xt=>Ne(kr,`${c(V)+1} / ${Xt??""}`),[()=>U(ce)]),T(He,ft)};oe(Fe,He=>{c(G),c($e),U(()=>c(G)&&!c($e)&&c(G).enhanced&&c(G).enhanced.length>1)&&He($t)})}var mr=fe(Fe,2);{var nr=He=>{qt(He,{type:"button",variant:"ghost",size:"sm",class:"gap-2",onclick:ue,title:"Back to original text",children:(ft,Pt)=>{var _t=XS(),kr=ze(_t);Ah(kr,{size:16}),yr(2),T(ft,_t)},$$slots:{default:!0}})};oe(mr,He=>{c(G)&&!c($e)&&c(V)!==0&&He(nr)})}L(be);var zn=fe(be,2);{var wo=He=>{var ft=eI(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(Se))),T(He,ft)};oe(zn,He=>{c(ne)&&!c(je)&&He(wo)})}var ko=fe(zn,2);{var xo=He=>{var ft=tI(),Pt=fe(R(ft),2),_t=R(Pt,!0);L(Pt),L(ft),xe(()=>Ne(_t,c(je))),T(He,ft)};oe(ko,He=>{c(je)&&He(xo)})}T(N,H)};oe(Yr,N=>{z(h()),U(()=>h().enableEnhanceWithAi)&&N(Q)})}L(se),xe(()=>{Ne(Qe,`${z(h()),U(()=>h().title)??""} `),sn(st,1,`absolute right-3 top-1/2 -translate-y-1/2 text-xs font-medium px-2 py-1 rounded-full transition-colors whitespace-nowrap ${c(v)?"bg-destructive/10 text-destructive border border-destructive/20":"bg-muted text-muted-foreground"}`),Ne(Bt,(c(W),U(()=>c(W)?.length||0)))}),T(i,se),Ke()}function oI(i){return typeof i=="function"}function aI(i){return i!==null&&typeof i=="object"}const sI=["string","number","bigint","boolean"];function Zl(i){return i==null||sI.includes(typeof i)?!0:Array.isArray(i)?i.every(n=>Zl(n)):typeof i=="object"?Object.getPrototypeOf(i)===Object.prototype:!1}const Si=Symbol("box"),qa=Symbol("is-writable");function bt(i,n){const u=lt(i);return n?{[Si]:!0,[qa]:!0,get current(){return c(u)},set current(l){n(l)}}:{[Si]:!0,get current(){return i()}}}function yo(i){return aI(i)&&Si in i}function Rl(i){return yo(i)&&qa in i}function uI(i){return yo(i)?i:oI(i)?bt(i):dI(i)}function lI(i){return Object.entries(i).reduce((n,[u,l])=>yo(l)?(Rl(l)?Object.defineProperty(n,u,{get(){return l.current},set(d){l.current=d}}):Object.defineProperty(n,u,{get(){return l.current}}),n):Object.assign(n,{[u]:l}),{})}function cI(i){return Rl(i)?{[Si]:!0,get current(){return i.current}}:i}function dI(i){let n=Lr(bn(i));return{[Si]:!0,[qa]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}function ni(i){let n=Lr(bn(i));return{[Si]:!0,[qa]:!0,get current(){return c(n)},set current(u){$(n,u,!0)}}}ni.from=uI,ni.with=bt,ni.flatten=lI,ni.readonly=cI,ni.isBox=yo,ni.isWritableBox=Rl;function fI(...i){return function(n){for(const u of i)if(u){if(n.defaultPrevented)return;typeof u=="function"?u.call(this,n):u.current?.call(this,n)}}}var gb=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,mI=/\n/g,pI=/^\s*/,gI=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,vI=/^:\s*/,hI=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,bI=/^[;\s]*/,yI=/^\s+|\s+$/g,$I=`
|
|
133
|
+
`,vb="/",hb="*",ii="",_I="comment",wI="declaration";function kI(i,n){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];n=n||{};var u=1,l=1;function d(x){var O=x.match(mI);O&&(u+=O.length);var j=x.lastIndexOf($I);l=~j?x.length-j:l+x.length}function m(){var x={line:u,column:l};return function(O){return O.position=new p(x),b(),O}}function p(x){this.start=x,this.end={line:u,column:l},this.source=n.source}p.prototype.content=i;function g(x){var O=new Error(n.source+":"+u+":"+l+": "+x);if(O.reason=x,O.filename=n.source,O.line=u,O.column=l,O.source=i,!n.silent)throw O}function v(x){var O=x.exec(i);if(O){var j=O[0];return d(j),i=i.slice(j.length),O}}function b(){v(pI)}function h(x){var O;for(x=x||[];O=k();)O!==!1&&x.push(O);return x}function k(){var x=m();if(!(vb!=i.charAt(0)||hb!=i.charAt(1))){for(var O=2;ii!=i.charAt(O)&&(hb!=i.charAt(O)||vb!=i.charAt(O+1));)++O;if(O+=2,ii===i.charAt(O-1))return g("End of comment missing");var j=i.slice(2,O-2);return l+=2,d(j),i=i.slice(O),l+=2,x({type:_I,comment:j})}}function y(){var x=m(),O=v(gI);if(O){if(k(),!v(vI))return g("property missing ':'");var j=v(hI),J=x({type:wI,property:bb(O[0].replace(gb,ii)),value:j?bb(j[0].replace(gb,ii)):ii});return v(bI),J}}function I(){var x=[];h(x);for(var O;O=y();)O!==!1&&(x.push(O),h(x));return x}return b(),I()}function bb(i){return i?i.replace(yI,ii):ii}function xI(i,n){let u=null;if(!i||typeof i!="string")return u;const l=kI(i),d=typeof n=="function";return l.forEach(m=>{if(m.type!=="declaration")return;const{property:p,value:g}=m;d?n(p,g,m):g&&(u=u||{},u[p]=g)}),u}const SI=/\d/,II=["-","_","/","."];function zI(i=""){if(!SI.test(i))return i!==i.toLowerCase()}function NI(i){const n=[];let u="",l,d;for(const m of i){const p=II.includes(m);if(p===!0){n.push(u),u="",l=void 0;continue}const g=zI(m);if(d===!1){if(l===!1&&g===!0){n.push(u),u=m,l=g;continue}if(l===!0&&g===!1&&u.length>1){const v=u.at(-1);n.push(u.slice(0,Math.max(0,u.length-1))),u=v+m,l=g;continue}}u+=m,l=g,d=p}return n.push(u),n}function yb(i){return i?NI(i).map(n=>TI(n)).join(""):""}function jI(i){return OI(yb(i||""))}function TI(i){return i?i[0].toUpperCase()+i.slice(1):""}function OI(i){return i?i[0].toLowerCase()+i.slice(1):""}function Fa(i){if(!i)return{};const n={};function u(l,d){if(l.startsWith("-moz-")||l.startsWith("-webkit-")||l.startsWith("-ms-")||l.startsWith("-o-")){n[yb(l)]=d;return}if(l.startsWith("--")){n[l]=d;return}n[jI(l)]=d}return xI(i,u),n}function EI(...i){return(...n)=>{for(const u of i)typeof u=="function"&&u(...n)}}function PI(i,n){const u=RegExp(i,"g");return l=>{if(typeof l!="string")throw new TypeError(`expected an argument of type string, but got ${typeof l}`);return l.match(u)?l.replace(u,n):l}}const CI=PI(/[A-Z]/,i=>`-${i.toLowerCase()}`);function UI(i){if(!i||typeof i!="object"||Array.isArray(i))throw new TypeError(`expected an argument of type object, but got ${typeof i}`);return Object.keys(i).map(n=>`${CI(n)}: ${i[n]};`).join(`
|
|
134
|
+
`)}function $b(i={}){return UI(i).replace(`
|
|
135
|
+
`," ")}const AI=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],DI=new Set(AI);function LI(i){return DI.has(i)}function $o(...i){const n={...i[0]};for(let u=1;u<i.length;u++){const l=i[u];if(l){for(const d of Object.keys(l)){const m=n[d],p=l[d],g=typeof m=="function",v=typeof p=="function";if(g&&LI(d)){const b=m,h=p;n[d]=fI(b,h)}else if(g&&v)n[d]=EI(m,p);else if(d==="class"){const b=Zl(m),h=Zl(p);b&&h?n[d]=mo(m,p):b?n[d]=mo(m):h&&(n[d]=mo(p))}else if(d==="style"){const b=typeof m=="object",h=typeof p=="object",k=typeof m=="string",y=typeof p=="string";if(b&&h)n[d]={...m,...p};else if(b&&y){const I=Fa(p);n[d]={...m,...I}}else if(k&&h){const I=Fa(m);n[d]={...I,...p}}else if(k&&y){const I=Fa(m),x=Fa(p);n[d]={...I,...x}}else b?n[d]=m:h?n[d]=p:k?n[d]=m:y&&(n[d]=p)}else n[d]=p!==void 0?p:m}for(const d of Object.getOwnPropertySymbols(l)){const m=n[d],p=l[d];n[d]=p!==void 0?p:m}}}return typeof n.style=="object"&&(n.style=$b(n.style).replaceAll(`
|
|
136
|
+
`," ")),n.hidden===!1&&(n.hidden=void 0,delete n.hidden),n.disabled===!1&&(n.disabled=void 0,delete n.disabled),n}const MI=$b({position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",transform:"translateX(-100%)"}),ZI=typeof window<"u"?window:void 0;function RI(i){let n=i.activeElement;for(;n?.shadowRoot;){const u=n.shadowRoot.activeElement;if(u===n)break;n=u}return n}class qI{#e;#t;constructor(n={}){const{window:u=ZI,document:l=u?.document}=n;u!==void 0&&(this.#e=l,this.#t=Pv(d=>{const m=gh(u,"focusin",d),p=gh(u,"focusout",d);return()=>{m(),p()}}))}get current(){return this.#t?.(),this.#e?RI(this.#e):null}}new qI;class ql{#e;#t;constructor(n){this.#e=n,this.#t=Symbol(n)}get key(){return this.#t}exists(){return Gk(this.#t)}get(){const n=Iv(this.#t);if(n===void 0)throw new Error(`Context "${this.#e}" not found`);return n}getOr(n){const u=Iv(this.#t);return u===void 0?n:u}set(n){return Qk(this.#t,n)}}function FI(i,n){switch(i){case"post":uo(n);break;case"pre":Hv(n);break}}function _b(i,n,u,l={}){const{lazy:d=!1}=l;let m=!d,p=Array.isArray(i)?[]:void 0;FI(n,()=>{const g=Array.isArray(i)?i.map(b=>b()):i();if(!m){m=!0,p=g;return}const v=U(()=>u(g,p));return p=g,v})}function _o(i,n,u){_b(i,"post",n,u)}function WI(i,n,u){_b(i,"pre",n,u)}_o.pre=WI;function Wa(i,n){return{[Ex()]:u=>yo(i)?(i.current=u,U(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||(i.current=null)}):(i(u),U(()=>n?.(u)),()=>{"isConnected"in u&&u.isConnected||i(null)})}}function Va(i){return i?"true":"false"}function Ii(i){return i?"":void 0}function wb(i,n){return n?"mixed":i?"true":"false"}class VI{#e;#t;attrs;constructor(n){this.#e=n.getVariant?n.getVariant():null,this.#t=this.#e?`data-${this.#e}-`:`data-${n.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(n.parts.map(u=>[u,this.getAttr(u)]))}getAttr(n,u){return u?`data-${u}-${n}`:`${this.#t}${n}`}selector(n,u){return`[${this.getAttr(n,u)}]`}}function Fl(i){const n=new VI(i);return{...n.attrs,selector:n.selector,getAttr:n.getAttr}}const Wl="ArrowDown",Vl="ArrowLeft",Ql="ArrowRight",Gl="ArrowUp",QI="End",GI="Enter",JI="Home",kb=" ";function BI(i){return window.getComputedStyle(i).getPropertyValue("direction")}function YI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Vl:Ql,vertical:Wl}[n]}function KI(i="ltr",n="horizontal"){return{horizontal:i==="rtl"?Ql:Vl,vertical:Gl}[n]}function HI(i="ltr",n="horizontal"){return["ltr","rtl"].includes(i)||(i="ltr"),["horizontal","vertical"].includes(n)||(n="horizontal"),{nextKey:YI(i,n),prevKey:KI(i,n)}}function xb(i){return i instanceof HTMLElement}class XI{#e;#t=ni(null);constructor(n){this.#e=n}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const n=this.getCandidateNodes();n.length&&n[0]?.focus()}handleKeydown(n,u,l=!1){const d=this.#e.rootNode.current;if(!d||!n)return;const m=this.getCandidateNodes();if(!m.length)return;const p=m.indexOf(n),g=BI(d),{nextKey:v,prevKey:b}=HI(g,this.#e.orientation.current),h=this.#e.loop.current,k={[v]:p+1,[b]:p-1,[JI]:0,[QI]:m.length-1};if(l){const x=v===Wl?Ql:Wl,O=b===Gl?Vl:Gl;k[x]=p+1,k[O]=p-1}let y=k[u.key];if(y===void 0)return;u.preventDefault(),y<0&&h?y=m.length-1:y===m.length&&h&&(y=0);const I=m[y];if(I)return I.focus(),this.#t.current=I.id,this.#e.onCandidateFocus?.(I),I}getTabIndex(n){const u=this.getCandidateNodes(),l=this.#t.current!==null;return n&&!l&&u[0]===n?(this.#t.current=n.id,0):n?.id===this.#t.current?0:-1}setCurrentTabStopId(n){this.#t.current=n}focusCurrentTabStop(){const n=this.#t.current;if(!n)return;const u=this.#e.rootNode.current?.querySelector(`#${n}`);!u||!xb(u)||u.focus()}}function e1(){}function Qa(i,n){return`bits-${i}`}const t1=Fl({component:"checkbox",parts:["root","group","group-label","input"]}),r1=new ql("Checkbox.Group"),Sb=new ql("Checkbox.Root");class Jl{static create(n,u=null){return Sb.set(new Jl(n,u))}opts;group;#e=lt(()=>this.group&&this.group.opts.name.current?this.group.opts.name.current:this.opts.name.current);get trueName(){return c(this.#e)}set trueName(n){$(this.#e,n)}#t=lt(()=>this.group&&this.group.opts.required.current?!0:this.opts.required.current);get trueRequired(){return c(this.#t)}set trueRequired(n){$(this.#t,n)}#n=lt(()=>this.group&&this.group.opts.disabled.current?!0:this.opts.disabled.current);get trueDisabled(){return c(this.#n)}set trueDisabled(n){$(this.#n,n)}#o=lt(()=>this.group&&this.group.opts.readonly.current?!0:this.opts.readonly.current);get trueReadonly(){return c(this.#o)}set trueReadonly(n){$(this.#o,n)}attachment;constructor(n,u){this.opts=n,this.group=u,this.attachment=Wa(this.opts.ref),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),_o.pre([()=>Vk(this.group?.opts.value.current),()=>this.opts.value.current],([l,d])=>{!l||!d||(this.opts.checked.current=l.includes(d))}),_o.pre(()=>this.opts.checked.current,l=>{this.group&&(l?this.group?.addValue(this.opts.value.current):this.group?.removeValue(this.opts.value.current))})}onkeydown(n){this.trueDisabled||this.trueReadonly||(n.key===GI&&n.preventDefault(),n.key===kb&&(n.preventDefault(),this.#i()))}#i(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}onclick(n){if(!(this.trueDisabled||this.trueReadonly)){if(this.opts.type.current==="submit"){this.#i();return}n.preventDefault(),this.#i()}}#a=lt(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return c(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,role:"checkbox",type:this.opts.type.current,disabled:this.trueDisabled,"aria-checked":wb(this.opts.checked.current,this.opts.indeterminate.current),"aria-required":Va(this.trueRequired),"aria-readonly":Va(this.trueReadonly),"data-disabled":Ii(this.trueDisabled),"data-readonly":Ii(this.trueReadonly),"data-state":n1(this.opts.checked.current,this.opts.indeterminate.current),[t1.root]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment}));get props(){return c(this.#r)}set props(n){$(this.#r,n)}}class Bl{static create(){return new Bl(Sb.get())}root;#e=lt(()=>this.root.group?!!(this.root.opts.value.current!==void 0&&this.root.group.opts.value.current.includes(this.root.opts.value.current)):this.root.opts.checked.current);get trueChecked(){return c(this.#e)}set trueChecked(n){$(this.#e,n)}#t=lt(()=>!!this.root.trueName);get shouldRender(){return c(this.#t)}set shouldRender(n){$(this.#t,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){xb(this.root.opts.ref.current)&&this.root.opts.ref.current.focus()}#n=lt(()=>({type:"checkbox",checked:this.root.opts.checked.current===!0,disabled:this.root.trueDisabled,required:this.root.trueRequired,name:this.root.trueName,value:this.root.opts.value.current,readonly:this.root.trueReadonly,onfocus:this.onfocus}));get props(){return c(this.#n)}set props(n){$(this.#n,n)}}function n1(i,n){return n?"indeterminate":i?"checked":"unchecked"}var i1=ee("<input/>"),o1=ee("<input/>");function Ib(i,n){Ye(n,!0);let u=_(n,"value",15),l=Dt(n,["$$slots","$$events","$$legacy","value"]);const d=lt(()=>$o(l,{"aria-hidden":"true",tabindex:-1,style:MI}));var m=Ze(),p=ze(m);{var g=b=>{var h=i1();Wt(h,()=>({...c(d),value:u()}),void 0,void 0,void 0,!0),T(b,h)},v=b=>{var h=o1();Wt(h,()=>({...c(d)}),void 0,void 0,void 0,!0),Ea(h,u),T(b,h)};oe(p,b=>{c(d).type==="checkbox"?b(g):b(v,!1)})}T(i,m),Ke()}function a1(i,n){Ye(n,!1);const u=Bl.create();Ht();var l=Ze(),d=ze(l);{var m=p=>{Ib(p,jt(()=>u.props))};oe(d,p=>{u.shouldRender&&p(m)})}T(i,l),Ke()}var s1=ee("<button><!></button>"),u1=ee("<!> <!>",1);function l1(i,n){const u=ja();Ye(n,!0);let l=_(n,"checked",15,!1),d=_(n,"ref",15,null),m=_(n,"disabled",3,!1),p=_(n,"required",3,!1),g=_(n,"name",3,void 0),v=_(n,"value",3,"on"),b=_(n,"id",19,()=>Qa(u)),h=_(n,"indeterminate",15,!1),k=_(n,"type",3,"button"),y=Dt(n,["$$slots","$$events","$$legacy","checked","ref","onCheckedChange","children","disabled","required","name","value","id","indeterminate","onIndeterminateChange","child","type","readonly"]);const I=r1.getOr(null);I&&v()&&(I.opts.value.current.includes(v())?l(!0):l(!1)),_o.pre(()=>v(),()=>{I&&v()&&(I.opts.value.current.includes(v())?l(!0):l(!1))});const x=Jl.create({checked:bt(()=>l(),V=>{l(V),n.onCheckedChange?.(V)}),disabled:bt(()=>m()??!1),required:bt(()=>p()),name:bt(()=>g()),value:bt(()=>v()),id:bt(()=>b()),ref:bt(()=>d(),V=>d(V)),indeterminate:bt(()=>h(),V=>{h(V),n.onIndeterminateChange?.(V)}),type:bt(()=>k()),readonly:bt(()=>!!n.readonly)},I),O=lt(()=>$o({...y},x.props));var j=u1(),J=ze(j);{var re=V=>{var M=Ze(),te=ze(M);{let ne=lt(()=>({props:c(O),...x.snippetProps}));Rt(te,()=>n.child,()=>c(ne))}T(V,M)},W=V=>{var M=s1();Wt(M,()=>({...c(O)}));var te=R(M);Rt(te,()=>n.children??gt,()=>x.snippetProps),L(M),T(V,M)};oe(J,V=>{n.child?V(re):V(W,!1)})}var G=fe(J,2);a1(G,{}),T(i,j),Ke()}const c1=Fl({component:"progress",parts:["root"]});class Yl{static create(n){return new Yl(n)}opts;attachment;constructor(n){this.opts=n,this.attachment=Wa(this.opts.ref)}#e=lt(()=>({role:"progressbar",value:this.opts.value.current,"aria-valuemin":this.opts.min.current,"aria-valuemax":this.opts.max.current,"aria-valuenow":this.opts.value.current===null?void 0:this.opts.value.current,"data-value":this.opts.value.current===null?void 0:this.opts.value.current,"data-state":d1(this.opts.value.current,this.opts.max.current),"data-max":this.opts.max.current,"data-min":this.opts.min.current,"data-indeterminate":this.opts.value.current===null?"":void 0,[c1.root]:"",...this.attachment}));get props(){return c(this.#e)}set props(n){$(this.#e,n)}}function d1(i,n){return i===null?"indeterminate":i===n?"loaded":"loading"}var f1=ee("<div><!></div>");function m1(i,n){const u=ja();Ye(n,!0);let l=_(n,"value",3,0),d=_(n,"max",3,100),m=_(n,"min",3,0),p=_(n,"id",19,()=>Qa(u)),g=_(n,"ref",15,null),v=Dt(n,["$$slots","$$events","$$legacy","child","children","value","max","min","id","ref"]);const b=Yl.create({value:bt(()=>l()),max:bt(()=>d()),min:bt(()=>m()),id:bt(()=>p()),ref:bt(()=>g(),O=>g(O))}),h=lt(()=>$o(v,b.props));var k=Ze(),y=ze(k);{var I=O=>{var j=Ze(),J=ze(j);Rt(J,()=>n.child,()=>({props:c(h)})),T(O,j)},x=O=>{var j=f1();Wt(j,()=>({...c(h)}));var J=R(j);Rt(J,()=>n.children??gt),L(j),T(O,j)};oe(y,O=>{n.child?O(I):O(x,!1)})}T(i,k),Ke()}const Kl=Fl({component:"radio-group",parts:["root","item"]}),Hl=new ql("RadioGroup.Root");class Xl{static create(n){return Hl.set(new Xl(n))}opts;#e=lt(()=>this.opts.value.current!=="");get hasValue(){return c(this.#e)}set hasValue(n){$(this.#e,n)}rovingFocusGroup;attachment;constructor(n){this.opts=n,this.attachment=Wa(this.opts.ref),this.rovingFocusGroup=new XI({rootNode:this.opts.ref,candidateAttr:Kl.item,loop:this.opts.loop,orientation:this.opts.orientation})}isChecked(n){return this.opts.value.current===n}setValue(n){this.opts.value.current=n}#t=lt(()=>({id:this.opts.id.current,role:"radiogroup","aria-required":Va(this.opts.required.current),"aria-disabled":Va(this.opts.disabled.current),"aria-readonly":this.opts.readonly.current?"true":void 0,"data-disabled":Ii(this.opts.disabled.current),"data-readonly":Ii(this.opts.readonly.current),"data-orientation":this.opts.orientation.current,[Kl.root]:"",...this.attachment}));get props(){return c(this.#t)}set props(n){$(this.#t,n)}}class ec{static create(n){return new ec(n,Hl.get())}opts;root;attachment;#e=lt(()=>this.root.opts.value.current===this.opts.value.current);get checked(){return c(this.#e)}set checked(n){$(this.#e,n)}#t=lt(()=>this.opts.disabled.current||this.root.opts.disabled.current);#n=lt(()=>this.root.opts.readonly.current);#o=lt(()=>this.root.isChecked(this.opts.value.current));#i=Lr(-1);constructor(n,u){this.opts=n,this.root=u,this.attachment=Wa(this.opts.ref),this.opts.value.current===this.root.opts.value.current?(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0)):this.root.opts.value.current||$(this.#i,0),uo(()=>{$(this.#i,this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0)}),_o([()=>this.opts.value.current,()=>this.root.opts.value.current],()=>{this.opts.value.current===this.root.opts.value.current&&(this.root.rovingFocusGroup.setCurrentTabStopId(this.opts.id.current),$(this.#i,0))}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onfocus=this.onfocus.bind(this)}onclick(n){this.opts.disabled.current||c(this.#n)||this.root.setValue(this.opts.value.current)}onfocus(n){!this.root.hasValue||c(this.#n)||this.root.setValue(this.opts.value.current)}onkeydown(n){if(!c(this.#t)){if(n.key===kb){n.preventDefault(),c(this.#n)||this.root.setValue(this.opts.value.current);return}this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,n,!0)}}#a=lt(()=>({checked:c(this.#o)}));get snippetProps(){return c(this.#a)}set snippetProps(n){$(this.#a,n)}#r=lt(()=>({id:this.opts.id.current,disabled:c(this.#t)?!0:void 0,"data-value":this.opts.value.current,"data-orientation":this.root.opts.orientation.current,"data-disabled":Ii(c(this.#t)),"data-readonly":Ii(c(this.#n)),"data-state":c(this.#o)?"checked":"unchecked","aria-checked":wb(c(this.#o),!1),[Kl.item]:"",type:"button",role:"radio",tabindex:c(this.#i),onkeydown:this.onkeydown,onfocus:this.onfocus,onclick:this.onclick,...this.attachment}));get props(){return c(this.#r)}set props(n){$(this.#r,n)}}class tc{static create(){return new tc(Hl.get())}root;#e=lt(()=>this.root.opts.name.current!==void 0);get shouldRender(){return c(this.#e)}set shouldRender(n){$(this.#e,n)}constructor(n){this.root=n,this.onfocus=this.onfocus.bind(this)}onfocus(n){this.root.rovingFocusGroup.focusCurrentTabStop()}#t=lt(()=>({name:this.root.opts.name.current,value:this.root.opts.value.current,required:this.root.opts.required.current,disabled:this.root.opts.disabled.current,onfocus:this.onfocus}));get props(){return c(this.#t)}set props(n){$(this.#t,n)}}function p1(i,n){Ye(n,!1);const u=tc.create();Ht();var l=Ze(),d=ze(l);{var m=p=>{Ib(p,jt(()=>u.props))};oe(d,p=>{u.shouldRender&&p(m)})}T(i,l),Ke()}var g1=ee("<div><!></div>"),v1=ee("<!> <!>",1);function h1(i,n){const u=ja();Ye(n,!0);let l=_(n,"disabled",3,!1),d=_(n,"value",15,""),m=_(n,"ref",15,null),p=_(n,"orientation",3,"vertical"),g=_(n,"loop",3,!0),v=_(n,"name",3,void 0),b=_(n,"required",3,!1),h=_(n,"readonly",3,!1),k=_(n,"id",19,()=>Qa(u)),y=_(n,"onValueChange",3,e1),I=Dt(n,["$$slots","$$events","$$legacy","disabled","children","child","value","ref","orientation","loop","name","required","readonly","id","onValueChange"]);const x=Xl.create({orientation:bt(()=>p()),disabled:bt(()=>l()),loop:bt(()=>g()),name:bt(()=>v()),required:bt(()=>b()),readonly:bt(()=>h()),id:bt(()=>k()),value:bt(()=>d(),V=>{V!==d()&&(d(V),y()?.(V))}),ref:bt(()=>m(),V=>m(V))}),O=lt(()=>$o(I,x.props));var j=v1(),J=ze(j);{var re=V=>{var M=Ze(),te=ze(M);Rt(te,()=>n.child,()=>({props:c(O)})),T(V,M)},W=V=>{var M=g1();Wt(M,()=>({...c(O)}));var te=R(M);Rt(te,()=>n.children??gt),L(M),T(V,M)};oe(J,V=>{n.child?V(re):V(W,!1)})}var G=fe(J,2);p1(G,{}),T(i,j),Ke()}var b1=ee("<button><!></button>");function y1(i,n){const u=ja();Ye(n,!0);let l=_(n,"id",19,()=>Qa(u)),d=_(n,"disabled",3,!1),m=_(n,"ref",15,null),p=Dt(n,["$$slots","$$events","$$legacy","id","children","child","value","disabled","ref"]);const g=ec.create({value:bt(()=>n.value),disabled:bt(()=>d()??!1),id:bt(()=>l()),ref:bt(()=>m(),I=>m(I))}),v=lt(()=>$o(p,g.props));var b=Ze(),h=ze(b);{var k=I=>{var x=Ze(),O=ze(x);{let j=lt(()=>({props:c(v),...g.snippetProps}));Rt(O,()=>n.child,()=>c(j))}T(I,x)},y=I=>{var x=b1();Wt(x,()=>({...c(v)}));var O=R(x);Rt(O,()=>n.children??gt,()=>g.snippetProps),L(x),T(I,x)};oe(h,I=>{n.child?I(k):I(y,!1)})}T(i,b),Ke()}function $1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"value",15,""),d=Dt(n,["$$slots","$$events","$$legacy","ref","class","value"]);var m=Ze(),p=ze(m);{let g=lt(()=>wr("grid gap-3",n.class));Oa(p,()=>h1,(v,b)=>{b(v,jt({"data-slot":"radio-group",get class(){return c(g)}},()=>d,{get ref(){return u()},set ref(h){u(h)},get value(){return l()},set value(h){l(h)}}))})}T(i,m),Ke()}function _1(i,n){Ye(n,!0);/**
|
|
137
|
+
* @license @lucide/svelte v0.544.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* ISC License
|
|
140
|
+
*
|
|
141
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
|
|
142
|
+
*
|
|
143
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
144
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
145
|
+
* copyright notice and this permission notice appear in all copies.
|
|
146
|
+
*
|
|
147
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
148
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
149
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
150
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
151
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
152
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
153
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
154
|
+
*
|
|
155
|
+
* ---
|
|
156
|
+
*
|
|
157
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
158
|
+
*
|
|
159
|
+
* Copyright (c) 2013-2023 Cole Bemis
|
|
160
|
+
*
|
|
161
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
162
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
163
|
+
* in the Software without restriction, including without limitation the rights
|
|
164
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
165
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
166
|
+
* furnished to do so, subject to the following conditions:
|
|
167
|
+
*
|
|
168
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
169
|
+
* copies or substantial portions of the Software.
|
|
170
|
+
*
|
|
171
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
172
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
173
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
174
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
175
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
176
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
177
|
+
* SOFTWARE.
|
|
178
|
+
*
|
|
179
|
+
*/let u=Dt(n,["$$slots","$$events","$$legacy"]);const l=[["circle",{cx:"12",cy:"12",r:"10"}]];Ra(i,jt({name:"circle"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var w1=ee('<div data-slot="radio-group-indicator" class="relative flex items-center justify-center"><!></div>');function k1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=Dt(n,["$$slots","$$events","$$legacy","ref","class"]);var d=Ze(),m=ze(d);{const p=(v,b)=>{let h=()=>b?.().checked;var k=w1(),y=R(k);{var I=x=>{_1(x,{class:"fill-primary absolute left-1/2 top-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})};oe(y,x=>{h()&&x(I)})}L(k),T(v,k)};let g=lt(()=>wr("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 shadow-xs aspect-square size-4 shrink-0 rounded-full border outline-none transition-[color,box-shadow] focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Oa(m,()=>y1,(v,b)=>{b(v,jt({"data-slot":"radio-group-item",get class(){return c(g)}},()=>l,{get ref(){return u()},set ref(h){u(h)},children:p,$$slots:{default:!0}}))})}T(i,d),Ke()}var x1=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),S1=ee('<span class="text-destructive ml-1">*</span>'),I1=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),z1=ee('<div class="flex items-center space-x-3"><!> <label class="text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none"> </label></div>'),N1=ee('<div class="flex flex-wrap gap-2"></div>'),j1=wn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),T1=ee('<span class="flex-1"> </span> <!>',1),O1=ee('<div class="flex flex-col gap-2 w-full"></div>'),E1=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),P1=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!></div>');function C1(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",8,""),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=X(d()||"");function h(Se){c(b)===Se?($(b,""),m()("")):($(b,Se),m()(Se))}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>z(d()),()=>{d()!==void 0&&$(b,d())}),sr(),Ht();var k=P1(),y=R(k),I=R(y);{var x=Se=>{var ke=x1(),ve=R(ke);L(ke),xe(()=>Ne(ve,`${v()??""}.`)),T(Se,ke)};oe(I,Se=>{v()!==void 0&&Se(x)})}var O=fe(I,2),j=R(O),J=R(j),re=fe(J);{var W=Se=>{var ke=S1();T(Se,ke)};oe(re,Se=>{z(l()),U(()=>l().required)&&Se(W)})}L(j);var G=fe(j,2);{var V=Se=>{var ke=I1(),ve=R(ke,!0);L(ke),xe(()=>Ne(ve,(z(l()),U(()=>l().description)))),T(Se,ke)};oe(G,Se=>{z(l()),U(()=>l().description)&&Se(V)})}L(O),L(y);var M=fe(y,2);{var te=Se=>{$1(Se,{get value(){return c(b)},class:"flex flex-col gap-3",children:(ke,ve)=>{var B=Ze(),P=ze(B);dr(P,1,()=>(z(l()),U(()=>l().options)),_r,(Z,C)=>{var S=z1(),D=R(S);{let _e=Le(()=>(z(l()),c(C),U(()=>`${l().id}-${c(C).value}`)));k1(D,{get value(){return c(C),U(()=>c(C).value)},get id(){return c(_e)},onclick:()=>h(c(C).value),class:`h-5 w-5 rounded-full border-2 cursor-pointer transition-all
|
|
180
|
+
data-[state=checked]:border-primary
|
|
181
|
+
data-[state=checked]:bg-primary
|
|
182
|
+
dark:data-[state=checked]:bg-primary
|
|
183
|
+
dark:data-[state=checked]:border-primary
|
|
184
|
+
data-[state=unchecked]:border-input
|
|
185
|
+
data-[state=unchecked]:bg-background
|
|
186
|
+
dark:data-[state=unchecked]:border-input
|
|
187
|
+
dark:data-[state=unchecked]:bg-background
|
|
188
|
+
hover:border-primary/50
|
|
189
|
+
[&_[data-slot=radio-group-indicator]_svg]:fill-primary-foreground
|
|
190
|
+
[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground
|
|
191
|
+
dark:[&_[data-slot=radio-group-indicator]_svg]:fill-primary-foreground
|
|
192
|
+
dark:[&_[data-slot=radio-group-indicator]_svg]:stroke-primary-foreground`})}var F=fe(D,2),ue=R(F,!0);L(F),L(S),xe(()=>{ei(F,"for",(z(l()),c(C),U(()=>`${l().id}-${c(C).value}`))),Ne(ue,(c(C),U(()=>c(C).label)))}),T(Z,S)}),T(ke,B)},$$slots:{default:!0}})},ne=Se=>{var ke=Ze(),ve=ze(ke);{var B=Z=>{var C=N1();dr(C,5,()=>(z(l()),U(()=>l().options)),_r,(S,D)=>{{let F=Le(()=>(c(b),c(D),U(()=>`rounded-full px-4 py-2 text-sm font-medium transition-all hover:scale-105 ${c(b)===c(D).value?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground"}`)));qt(S,{type:"button",variant:"outline",get class(){return c(F)},onclick:()=>h(c(D).value),children:(ue,_e)=>{yr();var ce=kn();xe(()=>Ne(ce,(c(D),U(()=>c(D).label)))),T(ue,ce)},$$slots:{default:!0}})}}),L(C),T(Z,C)},P=Z=>{var C=Ze(),S=ze(C);{var D=F=>{var ue=O1();dr(ue,5,()=>(z(l()),U(()=>l().options)),_r,(_e,ce)=>{{let we=Le(()=>(c(b),c(ce),U(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${c(b)===c(ce).value?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 shadow-sm dark:hover:bg-primary/20 dark:hover:text-card-foreground"}`)));qt(_e,{type:"button",variant:"outline",get class(){return c(we)},onclick:()=>h(c(ce).value),onkeydown:Ee=>Ee.key==="Enter"&&h(c(ce).value),children:(Ee,se)=>{var ie=T1(),Pe=ze(ie),Ue=R(Pe,!0);L(Pe);var qe=fe(Pe,2);{var We=Qe=>{var ot=j1();T(Qe,ot)};oe(qe,Qe=>{c(b),c(ce),U(()=>c(b)===c(ce).value)&&Qe(We)})}xe(()=>Ne(Ue,(c(ce),U(()=>c(ce).label)))),T(Ee,ie)},$$slots:{default:!0}})}}),L(ue),T(F,ue)};oe(S,F=>{z(l()),U(()=>l().displayStyle==="list")&&F(D)},!0)}T(Z,C)};oe(ve,Z=>{z(l()),U(()=>l().displayStyle==="chip")?Z(B):Z(P,!1)},!0)}T(Se,ke)};oe(M,Se=>{z(l()),U(()=>l().displayStyle==="radio"||!l().displayStyle)?Se(te):Se(ne,!1)})}var $e=fe(M,2);{var je=Se=>{var ke=E1(),ve=R(ke),B=R(ve,!0);L(ve),L(ke),xe(()=>Ne(B,p())),T(Se,ke)};oe($e,Se=>{p()&&Se(je)})}L(k),xe(()=>Ne(J,`${z(l()),U(()=>l().title)??""} `)),T(i,k),Ke()}var U1=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),A1=ee('<span class="text-destructive ml-1">*</span>'),D1=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),L1=ee("<span> </span>"),M1=ee('<span class="text-[10px] xs:text-xs text-muted-foreground font-medium"> </span>'),Z1=ee('<span class="text-[10px] xs:text-xs text-muted-foreground font-medium text-right"> </span>'),R1=ee('<div class="flex justify-between items-center px-1 sm:px-2"><!> <!></div>'),q1=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),F1=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <div class="flex flex-col gap-3 pt-2"><div></div> <!></div> <!></div>');function W1(i,n){Ye(n,!1);const u=X(),l=X(),d=X();let m=_(n,"question",8),p=_(n,"value",8,0),g=_(n,"onChange",8),v=_(n,"error",8,void 0),b=_(n,"currentMode",8,void 0),h=_(n,"questionNumber",8,void 0),k=_(n,"themeSettings",8,void 0);_(n,"currentLanguage",8,void 0);let y=X(p()??0),I=X(p()??0),x=X(0);function O(S){c(I)===S?($(y,0),$(I,0),g()(0),jl(m().id)):($(y,S),$(I,S),g()(S))}function j(S,D,F){const{displayStyle:ue="star",representationSize:_e="medium",numberOfRatings:ce=5,color:we}=m(),Ee=typeof window<"u"&&window.innerWidth<640?"small":_e,se=D>=S,ie=D===S,Pe=F===S,Ue=F>=S,qe=`rating-icon ${Ee}-size ${se?"selected":""} ${c(l)?"dark-mode":""}`,We=ue==="emoji"||ue==="thumbs-up",Qe=we??c(d)?.brandColor??"var(--brand-color)";let ot="";if(We?ot=`opacity: ${(ue==="thumbs-up"?se||Ue:ie||Pe)?"1":"0.4"}; transform: scale(${ue==="thumbs-up"&&ie||ue==="emoji"&&ie?"1.1":"1"}); transition: opacity 0.2s ease, transform 0.2s ease;`:ot=`color: ${se?Qe:c(l)?"#4b5563":"#d1d5db"}; transition: color 0.25s ease;`,ue==="emoji"){const yt=["😡","😞","😕","😐","🙂","😊","😄","😁","🤩","😍"],kt=Math.floor((S-1)*(yt.length/ce)),Ot=Math.min(Math.max(kt,0),yt.length-1);return{content:yt[Ot],type:"emoji",style:ot,baseClass:`${qe} rating-${ue}-icon`}}const Ce={star:"★",heart:"♥","thumbs-up":"👍",diamond:"◆"}[ue];return Ce?{content:Ce,type:ue,style:ot,baseClass:`${qe} rating-${ue}-icon`}:null}de(()=>z(m()),()=>{$(u,m().displayStyle==="emoji"||m().displayStyle==="thumbs-up")}),de(()=>z(b()),()=>{$(l,b()==="dark")}),de(()=>(z(k()),z(b())),()=>{$(d,k()?.[b()==="dark"?"dark":"light"]||null)}),de(()=>z(p()),()=>{p()!==void 0&&($(y,p()),$(I,p()))}),sr(),Ht();var J=F1(),re=R(J),W=R(re);{var G=S=>{var D=U1(),F=R(D);L(D),xe(()=>Ne(F,`${h()??""}.`)),T(S,D)};oe(W,S=>{h()!==void 0&&S(G)})}var V=fe(W,2),M=R(V),te=R(M),ne=fe(te);{var $e=S=>{var D=A1();T(S,D)};oe(ne,S=>{z(m()),U(()=>m().required)&&S($e)})}L(M);var je=fe(M,2);{var Se=S=>{var D=D1(),F=R(D,!0);L(D),xe(()=>Ne(F,(z(m()),U(()=>m().description)))),T(S,D)};oe(je,S=>{z(m()),U(()=>m().description)&&S(Se)})}L(V),L(re);var ke=fe(re,2),ve=R(ke);dr(ve,5,()=>(z(m()),U(()=>Array.from({length:m().numberOfRatings??5},(S,D)=>D+1))),_r,(S,D)=>{const F=Le(()=>(c(D),c(y),c(x),U(()=>j(c(D),c(y),c(x))))),ue=Le(()=>(z(m()),U(()=>m().numberOfRatings??5))),_e=Le(()=>c(ue)>10?"p-0.5 xs:p-1 sm:p-1.5":c(ue)>7?"p-1 xs:p-1.5 sm:p-2":"p-1.5 xs:p-2 sm:p-2.5"),ce=Le(()=>c(ue)>10?"text-base xs:text-lg sm:text-xl":c(ue)>7?"text-lg xs:text-xl sm:text-2xl":"text-xl xs:text-2xl sm:text-3xl");var we=Ze(),Ee=ze(we);{var se=ie=>{{let Pe=Le(()=>c(_e)),Ue=Le(()=>c(u)?"":"hover:scale-110");qt(ie,{type:"button",variant:"ghost",size:"icon",get class(){return`h-auto w-auto ${c(Pe)??""} rounded-lg hover:bg-accent transition-all flex-shrink-0 ${c(Ue)??""}`},onclick:()=>O(c(D)),onmouseenter:()=>{$(y,c(D)),$(x,c(D))},onmouseleave:()=>{$(x,0),$(y,c(I))},children:(qe,We)=>{var Qe=L1(),ot=R(Qe,!0);L(Qe),xe(()=>{sn(Qe,1,`${z(c(F)),U(()=>c(F).baseClass)??""} ${c(u)?`${c(ce)} leading-none`:""}`),yi(Qe,(z(c(F)),U(()=>c(F).style))),Ne(ot,(z(c(F)),U(()=>c(F).content)))}),T(qe,Qe)},$$slots:{default:!0}})}};oe(Ee,ie=>{c(F)&&ie(se)})}T(S,we)}),L(ve);var B=fe(ve,2);{var P=S=>{var D=R1(),F=R(D);{var ue=we=>{var Ee=M1(),se=R(Ee,!0);L(Ee),xe(()=>Ne(se,(z(m()),U(()=>m().minLabel)))),T(we,Ee)};oe(F,we=>{z(m()),U(()=>m().minLabel)&&we(ue)})}var _e=fe(F,2);{var ce=we=>{var Ee=Z1(),se=R(Ee,!0);L(Ee),xe(()=>Ne(se,(z(m()),U(()=>m().maxLabel)))),T(we,Ee)};oe(_e,we=>{z(m()),U(()=>m().maxLabel)&&we(ce)})}L(D),T(S,D)};oe(B,S=>{z(m()),U(()=>m().showLabels)&&S(P)})}L(ke);var Z=fe(ke,2);{var C=S=>{var D=q1(),F=R(D),ue=R(F,!0);L(F),L(D),xe(()=>Ne(ue,v())),T(S,D)};oe(Z,S=>{v()&&S(C)})}L(J),xe(()=>{Ne(te,`${z(m()),U(()=>m().title)??""} `),sn(ve,1,`flex ${c(u)?"gap-0":"gap-0.5 xs:gap-1 sm:gap-1.5 md:gap-2"} justify-center items-center w-full`)}),T(i,J),Ke()}function V1(i,n){Ye(n,!0);/**
|
|
193
|
+
* @license @lucide/svelte v0.544.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* ISC License
|
|
196
|
+
*
|
|
197
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
|
|
198
|
+
*
|
|
199
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
200
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
201
|
+
* copyright notice and this permission notice appear in all copies.
|
|
202
|
+
*
|
|
203
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
204
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
205
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
206
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
207
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
208
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
209
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
210
|
+
*
|
|
211
|
+
* ---
|
|
212
|
+
*
|
|
213
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
214
|
+
*
|
|
215
|
+
* Copyright (c) 2013-2023 Cole Bemis
|
|
216
|
+
*
|
|
217
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
218
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
219
|
+
* in the Software without restriction, including without limitation the rights
|
|
220
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
221
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
222
|
+
* furnished to do so, subject to the following conditions:
|
|
223
|
+
*
|
|
224
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
225
|
+
* copies or substantial portions of the Software.
|
|
226
|
+
*
|
|
227
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
228
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
229
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
230
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
231
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
232
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
233
|
+
* SOFTWARE.
|
|
234
|
+
*
|
|
235
|
+
*/let u=Dt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M20 6 9 17l-5-5"}]];Ra(i,jt({name:"check"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}function Q1(i,n){Ye(n,!0);/**
|
|
236
|
+
* @license @lucide/svelte v0.544.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* ISC License
|
|
239
|
+
*
|
|
240
|
+
* Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
|
|
241
|
+
*
|
|
242
|
+
* Permission to use, copy, modify, and/or distribute this software for any
|
|
243
|
+
* purpose with or without fee is hereby granted, provided that the above
|
|
244
|
+
* copyright notice and this permission notice appear in all copies.
|
|
245
|
+
*
|
|
246
|
+
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
247
|
+
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
248
|
+
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
249
|
+
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
250
|
+
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
251
|
+
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
252
|
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
253
|
+
*
|
|
254
|
+
* ---
|
|
255
|
+
*
|
|
256
|
+
* The MIT License (MIT) (for portions derived from Feather)
|
|
257
|
+
*
|
|
258
|
+
* Copyright (c) 2013-2023 Cole Bemis
|
|
259
|
+
*
|
|
260
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
261
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
262
|
+
* in the Software without restriction, including without limitation the rights
|
|
263
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
264
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
265
|
+
* furnished to do so, subject to the following conditions:
|
|
266
|
+
*
|
|
267
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
268
|
+
* copies or substantial portions of the Software.
|
|
269
|
+
*
|
|
270
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
271
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
272
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
273
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
274
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
275
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
276
|
+
* SOFTWARE.
|
|
277
|
+
*
|
|
278
|
+
*/let u=Dt(n,["$$slots","$$events","$$legacy"]);const l=[["path",{d:"M5 12h14"}]];Ra(i,jt({name:"minus"},()=>u,{get iconNode(){return l},children:(d,m)=>{var p=Ze(),g=ze(p);Rt(g,()=>n.children??gt),T(d,p)},$$slots:{default:!0}})),Ke()}var G1=ee('<div data-slot="checkbox-indicator" class="text-current transition-none"><!></div>');function J1(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"checked",15,!1),d=_(n,"indeterminate",15,!1),m=Dt(n,["$$slots","$$events","$$legacy","ref","checked","indeterminate","class"]);var p=Ze(),g=ze(p);{const v=(h,k)=>{let y=()=>k?.().checked,I=()=>k?.().indeterminate;var x=G1(),O=R(x);{var j=re=>{V1(re,{class:"size-3.5"})},J=re=>{var W=Ze(),G=ze(W);{var V=M=>{Q1(M,{class:"size-3.5"})};oe(G,M=>{I()&&M(V)},!0)}T(re,W)};oe(O,re=>{y()?re(j):re(J,!1)})}L(x),T(h,x)};let b=lt(()=>wr("border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive shadow-xs peer flex size-4 shrink-0 items-center justify-center rounded-[4px] border outline-none transition-shadow focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n.class));Oa(g,()=>l1,(h,k)=>{k(h,jt({"data-slot":"checkbox",get class(){return c(b)}},()=>m,{get ref(){return u()},set ref(y){u(y)},get checked(){return l()},set checked(y){l(y)},get indeterminate(){return d()},set indeterminate(y){d(y)},children:v,$$slots:{default:!0}}))})}T(i,p),Ke()}var B1=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),Y1=ee('<span class="text-destructive ml-1">*</span>'),K1=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),H1=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><span class="font-medium"> </span></div>'),X1=ee('<div class="flex items-center gap-2 text-sm text-amber-600 bg-amber-50 dark:bg-amber-950/30 dark:text-amber-500 px-3 py-2 rounded-md border border-amber-200 dark:border-amber-900"><span class="font-medium"> </span></div>'),ez=ee('<div class="flex items-center space-x-3"><!> <label> </label></div>'),tz=ee('<div class="flex flex-col gap-3"></div>'),rz=(i,n,u)=>n(c(u).value),nz=ee('<button type="button"> </button>'),iz=ee('<div class="flex flex-wrap gap-2"></div>'),oz=wn('<svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M5 13l4 4L19 7"></path></svg>'),az=ee('<span class="flex-1"> </span> <!>',1),sz=ee('<div class="flex flex-col gap-2 w-full"></div>'),uz=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><label class="text-lg font-semibold text-foreground leading-tight"> <!></label> <!></div></div> <!> <!> <!></div>');function lz(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",24,()=>[]),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=X(d()||[]),h=X(p()),k=X(void 0),y=!1,I=X(!1);xn(()=>{setTimeout(()=>{const S=x(c(b));$(h,S),S&&_i(l().id,S),y=!0},0)});function x(S){if(l().required&&(!S||S.length===0))return l().errorMessage;const D=l().maxSelections;if(D!==void 0&&S.length>D)return l().errorMessage;const F=l().minSelections;if(F!==void 0&&S.length>0&&S.length<F)return l().errorMessage}function O(S){if(!y)return;$(I,!0);const D=[...c(b)];if(D.includes(S)){const F=D.filter(_e=>_e!==S);$(b,F),m()(F),$(k,void 0);const ue=x(F);$(h,ue),lr(l().id,F,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,ue)}else{const F=l().maxSelections;if(F!==void 0&&D.length>=F){const ue=l().errorMessage;$(k,ue),lr(l().id,D,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,void 0)}else{const ue=[...D,S];$(b,ue),m()(ue),$(k,void 0);const _e=x(ue);$(h,_e),lr(l().id,ue,s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE,_e)}}}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>(z(d()),c(I)),()=>{d()!==void 0&&!c(I)&&$(b,d())}),de(()=>z(p()),()=>{p()!==void 0&&$(h,p())}),sr(),Ht();var j=uz(),J=R(j),re=R(J);{var W=S=>{var D=B1(),F=R(D);L(D),xe(()=>Ne(F,`${v()??""}.`)),T(S,D)};oe(re,S=>{v()!==void 0&&S(W)})}var G=fe(re,2),V=R(G),M=R(V),te=fe(M);{var ne=S=>{var D=Y1();T(S,D)};oe(te,S=>{z(l()),U(()=>l().required)&&S(ne)})}L(V);var $e=fe(V,2);{var je=S=>{var D=K1(),F=R(D,!0);L(D),xe(()=>Ne(F,(z(l()),U(()=>l().description)))),T(S,D)};oe($e,S=>{z(l()),U(()=>l().description)&&S(je)})}L(G),L(J);var Se=fe(J,2);{var ke=S=>{var D=H1(),F=R(D),ue=R(F,!0);L(F),L(D),xe(()=>Ne(ue,c(h))),T(S,D)};oe(Se,S=>{c(h)&&S(ke)})}var ve=fe(Se,2);{var B=S=>{var D=X1(),F=R(D),ue=R(F,!0);L(F),L(D),xe(()=>Ne(ue,c(k))),T(S,D)};oe(ve,S=>{c(k)&&S(B)})}var P=fe(ve,2);{var Z=S=>{var D=tz();dr(D,5,()=>(z(l()),U(()=>l().options)),_r,(F,ue)=>{const _e=Le(()=>(c(b),c(ue),U(()=>c(b).includes(c(ue).value)))),ce=Le(()=>(z(l()),c(b),z(c(_e)),U(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(_e))));var we=ez(),Ee=R(we);{let Pe=Le(()=>(z(l()),c(ue),U(()=>`${l().id}-${c(ue).value}`))),Ue=Le(()=>(c(b),c(ue),U(()=>c(b).includes(c(ue).value))));J1(Ee,{get id(){return c(Pe)},get checked(){return c(Ue)},onCheckedChange:()=>O(c(ue).value),get disabled(){return c(ce)},class:"h-5 w-5 rounded border-2 cursor-pointer transition-all data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=unchecked]:border-input data-[state=unchecked]:bg-background data-[state=checked]:text-primary-foreground disabled:opacity-50 disabled:cursor-not-allowed"})}var se=fe(Ee,2),ie=R(se,!0);L(se),L(we),xe(()=>{ei(se,"for",(z(l()),c(ue),U(()=>`${l().id}-${c(ue).value}`))),sn(se,1,`text-sm font-medium cursor-pointer text-foreground hover:text-primary transition-colors select-none ${c(ce)?"opacity-50 cursor-not-allowed":""}`),Ne(ie,(c(ue),U(()=>c(ue).label)))}),T(F,we)}),L(D),T(S,D)},C=S=>{var D=Ze(),F=ze(D);{var ue=ce=>{var we=iz();dr(we,5,()=>(z(l()),U(()=>l().options)),_r,(Ee,se)=>{const ie=Le(()=>(c(b),c(se),U(()=>c(b).includes(c(se).value)))),Pe=Le(()=>(z(l()),c(b),z(c(ie)),U(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(ie))));var Ue=nz();Ue.__click=[rz,O,se];var qe=R(Ue,!0);L(Ue),xe(()=>{Ue.disabled=c(Pe),sn(Ue,1,`rounded-full px-4 py-2 text-sm font-medium transition-all border-2 ${c(ie)?"bg-primary text-primary-foreground border-primary hover:bg-primary/90 shadow-md dark:shadow-primary/20":"bg-card text-card-foreground border-border hover:bg-accent hover:text-accent-foreground hover:border-primary/50"} ${c(Pe)?"opacity-50 cursor-not-allowed":"hover:scale-105 cursor-pointer"}`),Ne(qe,(c(se),U(()=>c(se).label)))}),T(Ee,Ue)}),L(we),T(ce,we)},_e=ce=>{var we=Ze(),Ee=ze(we);{var se=ie=>{var Pe=sz();dr(Pe,5,()=>(z(l()),U(()=>l().options)),_r,(Ue,qe)=>{const We=Le(()=>(c(b),c(qe),U(()=>c(b).includes(c(qe).value)))),Qe=Le(()=>(z(l()),c(b),z(c(We)),U(()=>l().maxSelections!==void 0&&c(b).length>=l().maxSelections&&!c(We))));{let ot=Le(()=>`justify-start text-left px-4 py-3.5 text-sm font-medium transition-all rounded-lg relative ${c(We)?"bg-primary text-primary-foreground border-primary shadow-md hover:shadow-lg hover:bg-primary/90 hover:text-primary-foreground dark:border-primary/90 dark:bg-primary dark:hover:bg-primary":"bg-card text-card-foreground border-border hover:border-primary/50 hover:bg-accent/50 dark:hover:bg-primary/20 dark:hover:text-card-foreground"} ${c(Qe)?"opacity-50 cursor-not-allowed":""}`);qt(Ue,{type:"button",variant:"outline",get disabled(){return c(Qe)},get class(){return c(ot)},onclick:()=>O(c(qe).value),onkeydown:Ce=>Ce.key==="Enter"&&O(c(qe).value),children:(Ce,yt)=>{var kt=az(),Ot=ze(kt),Lt=R(Ot,!0);L(Ot);var Mt=fe(Ot,2);{var Et=st=>{var Bt=oz();T(st,Bt)};oe(Mt,st=>{c(We)&&st(Et)})}xe(()=>Ne(Lt,(c(qe),U(()=>c(qe).label)))),T(Ce,kt)},$$slots:{default:!0}})}}),L(Pe),T(ie,Pe)};oe(Ee,ie=>{z(l()),U(()=>l().displayStyle==="list")&&ie(se)},!0)}T(ce,we)};oe(F,ce=>{z(l()),U(()=>l().displayStyle==="chip")?ce(ue):ce(_e,!1)},!0)}T(S,D)};oe(P,S=>{z(l()),U(()=>l().displayStyle==="checkbox"||!l().displayStyle)?S(Z):S(C,!1)})}L(j),xe(()=>Ne(M,`${z(l()),U(()=>l().title)??""} `)),T(i,j),Ke()}yl(["click"]);function cz(i,n,u,l,d,m,p,g){c(n)||$(n,!0),$(u,!1),$(l,void 0),d()(void 0);const v=m(void 0);$(p,v),lr(g().id,void 0,s.QuestionTypes.ANNOTATION,v)}var dz=ee('<span class="text-lg font-medium text-muted-foreground min-w-[1.25rem]"> </span>'),fz=ee('<span class="text-destructive ml-1">*</span>'),mz=ee('<p class="text-sm text-muted-foreground leading-relaxed"> </p>'),pz=ee('<div class="flex items-center gap-2 text-sm text-destructive bg-destructive/10 px-3 py-2 rounded-md border border-destructive/20"><svg class="w-4 h-4 shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg> <span class="font-medium"> </span></div>'),gz=ee('<div class="group relative border-2 border-dashed border-border hover:border-primary/50 rounded-xl bg-muted/30 hover:bg-muted/50 transition-all cursor-pointer overflow-hidden"><div class="flex items-center justify-center gap-3 px-6 py-8"><div class="w-12 h-12 rounded-full bg-background shadow-sm flex items-center justify-center group-hover:scale-110 transition-transform"><!></div> <div class="flex flex-col"><span class="text-sm font-semibold text-foreground"> </span> <span class="text-xs text-muted-foreground">Click to add annotation</span></div></div></div>'),vz=ee('<div class="relative border-2 border-primary/20 rounded-xl bg-primary/5 overflow-hidden shadow-sm hover:shadow-md transition-all"><div class="flex items-center justify-between gap-3 px-6 py-4"><div class="flex items-center gap-3 flex-1 min-w-0"><div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center flex-shrink-0"><!></div> <div class="flex flex-col flex-1 min-w-0"><span class="text-sm font-semibold text-foreground truncate"> </span> <span class="text-xs text-muted-foreground">Annotation added</span></div></div> <button class="w-8 h-8 rounded-full bg-destructive/10 hover:bg-destructive/20 text-destructive flex items-center justify-center transition-colors flex-shrink-0" type="button" aria-label="Remove annotation"><!></button></div></div>'),hz=ee('<div class="w-full space-y-4"><div class="flex text-left items-start gap-3"><!> <div class="flex-1 space-y-1.5"><div class="text-lg font-semibold text-foreground leading-tight"> <!></div> <!></div></div> <!> <div class="w-full"><!> <!></div></div>');function bz(i,n){Ye(n,!1);const u=X();let l=_(n,"question",8),d=_(n,"value",8,void 0),m=_(n,"onChange",8),p=_(n,"error",8,void 0),g=_(n,"currentMode",8,void 0),v=_(n,"questionNumber",8,void 0);_(n,"themeSettings",8,void 0),_(n,"currentLanguage",8,void 0);let b=X(!1),h=X(void 0),k=X(p()),y=X(!1);xn(()=>{const Z=vo(Fr).questions.find(C=>C.questionId===l().id);if(Z?.answer&&"annotation"in Z.answer){const C=Z.answer.annotation;console.log("Found annotation data in store on mount for question:",l().id,C),$(h,C),$(b,!0),typeof C=="object"&&C!==null&&m()(C)}setTimeout(()=>{const C=c(h),S=I(C);$(k,S),S&&_i(l().id,S)},0)});function I(Z){let C="";if(typeof Z=="string"?C=Z:Z&&typeof Z=="object"&&(C="has_annotation_data"),l().required&&(!C||C.trim()===""))return l().errorMessage??"This field is required"}de(()=>z(g()),()=>{$(u,g()==="dark")}),de(()=>(z(d()),z(m())),()=>{if(d()!==void 0){if(console.log("props.value changed:",d()),typeof d()=="string"){const Z=d().trim()!=="";$(b,Z),$(h,d())}else if(typeof d()=="object"&&d()!==null&&"annotation"in d()){const Z=d().annotation;console.log("Extracted annotation from props.value:",Z),$(b,!0),$(h,Z),m()(Z)}}else $(h,void 0),$(b,!1)}),de(()=>z(p()),()=>{p()!==void 0&&$(k,p())}),sr(),Ht();var x=hz(),O=R(x),j=R(O);{var J=Z=>{var C=dz(),S=R(C);L(C),xe(()=>Ne(S,`${v()??""}.`)),T(Z,C)};oe(j,Z=>{v()!==void 0&&Z(J)})}var re=fe(j,2),W=R(re),G=R(W),V=fe(G);{var M=Z=>{var C=fz();T(Z,C)};oe(V,Z=>{z(l()),U(()=>l().required)&&Z(M)})}L(W);var te=fe(W,2);{var ne=Z=>{var C=mz(),S=R(C,!0);L(C),xe(()=>Ne(S,(z(l()),U(()=>l().description)))),T(Z,C)};oe(te,Z=>{z(l()),U(()=>l().description)&&Z(ne)})}L(re),L(O);var $e=fe(O,2);{var je=Z=>{var C=pz(),S=fe(R(C),2),D=R(S,!0);L(S),L(C),xe(()=>Ne(D,c(k))),T(Z,C)};oe($e,Z=>{c(k)&&c(y)&&Z(je)})}var Se=fe($e,2),ke=R(Se);{var ve=Z=>{var C=gz(),S=R(C),D=R(S),F=R(D);Lh(F,{size:24,class:"text-muted-foreground group-hover:text-primary transition-colors"}),L(D);var ue=fe(D,2),_e=R(ue),ce=R(_e,!0);L(_e),yr(2),L(ue),L(S),L(C),xe(()=>Ne(ce,(z(l()),U(()=>l().noAnnotationText??"No Annotation")))),T(Z,C)};oe(ke,Z=>{c(b)||Z(ve)})}var B=fe(ke,2);{var P=Z=>{var C=vz(),S=R(C),D=R(S),F=R(D),ue=R(F);Lh(ue,{size:20,class:"text-primary"}),L(F);var _e=fe(F,2),ce=R(_e),we=R(ce,!0);L(ce),yr(2),L(_e),L(D);var Ee=fe(D,2);Ee.__click=[cz,y,b,h,m,I,k,l];var se=R(Ee);Zh(se,{size:16}),L(Ee),L(S),L(C),xe(()=>Ne(we,(z(l()),U(()=>l().annotationText??"Annotation")))),T(Z,C)};oe(B,Z=>{c(b)&&Z(P)})}L(Se),L(x),xe(()=>Ne(G,`${z(l()),U(()=>l().title)??""} `)),T(i,x),Ke()}yl(["click"]);var yz=ee('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),$z=ee('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function _z(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"welcomeScreenProperties",8);_(n,"onStart",8,void 0);let m=_(n,"currentMode",8,void 0),p=_(n,"currentLanguage",8,void 0);_(n,"themeSettings",8,void 0),de(()=>z(m()),()=>{$(u,m()==="dark")}),de(()=>(z(d()),z(p())),()=>{$(l,d().translations&&p()&&d().translations[p()]?d().translations[p()]:d().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),sr(),Ht();var g=$z(),v=R(g),b=R(v,!0);L(v);var h=fe(v,2);{var k=y=>{var I=yz(),x=R(I,!0);L(I),xe(()=>Ne(x,(c(l),U(()=>c(l).description)))),T(y,I)};oe(h,y=>{c(l),U(()=>c(l).description)&&y(k)})}L(g),xe(()=>Ne(b,(c(l),U(()=>c(l).title)))),T(i,g),Ke()}var wz=ee('<p class="text-primary text-[1rem] leading-[1.5rem]"> </p>'),kz=ee('<div class="flex flex-col items-center text-center mb-0 w-full mt-[8px]"><h2 class="text-primary font-[600] text-[1.5rem] mb-[1rem]"> </h2> <!></div>');function xz(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X();let g=_(n,"endScreenProperties",8),v=_(n,"onExit",8,void 0),b=_(n,"currentMode",8,void 0),h=_(n,"currentLanguage",8,void 0);_(n,"themeSettings",8,void 0);let k=_(n,"isScreenVisible",8,void 0);console.log("isScreenVisible in end-screen :",k()===!0);let y=X(null);Ta(()=>{c(y)!==null&&(clearTimeout(c(y)),console.log("Cleared auto-dismiss timer on destroy"))}),de(()=>z(b()),()=>{$(u,b()==="dark")}),de(()=>(z(g()),z(h())),()=>{$(l,g().translations&&h()&&g().translations[h()]?g().translations[h()]:g().endFields??{title:"Thank you for participating!",message:"Your feedback is important to us.",buttonLabel:"Exit",dismissBehavior:"close",fadeDuration:300})}),de(()=>z(k()),()=>{$(d,k()===!0)}),de(()=>z(g()),()=>{$(m,g().endFields?.dismissBehavior)}),de(()=>z(g()),()=>{$(p,g().endFields?.fadeDuration||0)}),de(()=>(c(y),c(d),c(m),z(v()),c(p)),()=>{c(y)!==null&&(clearTimeout(c(y)),$(y,null),console.log("Cleared auto-dismiss timer")),c(d)&&c(m)==="fade"&&typeof v()=="function"&&c(p)>0?(console.log(`Setting up auto-dismiss timer for ${c(p)} seconds as user has reached end-screen with ${c(m)} behavior`),$(y,setTimeout(()=>{console.log("Auto-dismissing end screen"),v()?.()},c(p)*1e3))):console.log("Not setting up auto-dismiss timer - conditions not met:",{isScreenVisible:c(d),dismissBehavior:c(m),hasOnExit:typeof v()=="function",fadeDuration:c(p)})}),sr(),Ht();var I=kz(),x=R(I),O=R(x,!0);L(x);var j=fe(x,2);{var J=re=>{var W=wz(),G=R(W,!0);L(W),xe(()=>Ne(G,(c(l),U(()=>c(l).message)))),T(re,W)};oe(j,re=>{c(l),U(()=>c(l).message)&&re(J)})}L(I),xe(()=>Ne(O,(c(l),U(()=>c(l).title)))),T(i,I),Ke()}var Sz=ee("<h2> </h2>"),Iz=ee('<div class="question-wrapper"><div class="question-container"><!></div></div>'),zz=ee("<!> <!>",1),Nz=ee('<div id="section-container"><!> <!> <!></div>');function jz(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"questions",8),m=_(n,"sections",8),p=_(n,"formData",8),g=_(n,"errors",8),v=_(n,"onChange",8),b=_(n,"currentMode",8,void 0),h=_(n,"welcomeScreenProperties",8),k=_(n,"otherConfigurationProperties",8),y=_(n,"currentSectionIndex",8),I=_(n,"endScreenProperties",8,void 0),x=_(n,"currentLanguage",8,void 0),O=_(n,"themeSettings",8),j=_(n,"onClose",8,void 0),J=_(n,"isScreenVisible",8,void 0),re=_(n,"apiKey",8,void 0),W=_(n,"hostUrl",8,void 0),G=_(n,"identifier",8,void 0),V=_(n,"feedbackConfigurationId",8,void 0);function M(P){return c(u).get(P)??-1}function te(P){switch(P){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return[];case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return-1;case s.QuestionTypes.SHORT_ANSWER:case s.QuestionTypes.LONG_TEXT:case s.QuestionTypes.SINGLE_CHOICE:return"";default:return}}function ne(P){return Array.isArray(P)?P:typeof P=="object"&&P!==null?Object.values(P).filter(Z=>Z!==void 0):typeof P=="string"?[P]:[]}function $e(P){return typeof P=="number"?P:typeof P=="string"?Number(P):0}function je(P){return typeof P=="string"?P:String(typeof P=="object"&&P!==null?Object.values(P)[0]||"":P||"")}function Se(P,Z){if(P==null){const C=te(Z);return C!==void 0?C:P}switch(Z){case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:return ne(P);case s.QuestionTypes.NPS:case s.QuestionTypes.RATING:return $e(P);case s.QuestionTypes.SINGLE_CHOICE:return je(P);default:return P}}de(()=>(z(d()),Rh),()=>{d()&&Object.keys(d()).length>0&&Rh(d())}),de(()=>z(m()),()=>{$(u,(()=>{const P=new Map;let Z=0;return m().forEach(C=>{C.id!=="welcome_screen"&&C.id!=="thankyou_screen"&&C.questionIds.forEach(S=>{P.set(S,Z++)})}),P})())}),de(()=>(z(m()),z(y())),()=>{$(l,m()[y()])}),de(()=>(z(y()),c(l)),()=>{console.log("FormRenderer: currentSectionIndex =",y(),"section =",c(l)?.id)}),sr(),Ht();var ke=Ze(),ve=ze(ke);{var B=P=>{var Z=Ze(),C=ze(Z);dr(C,1,()=>(z(m()),z(y()),U(()=>[m()[y()]])),S=>S.id,(S,D)=>{var F=Nz(),ue=R(F);{var _e=ie=>{_z(ie,{get welcomeScreenProperties(){return h()},get currentMode(){return b()},get currentLanguage(){return x()},get themeSettings(){return O()}})};oe(ue,ie=>{c(D),U(()=>c(D).id==="welcome_screen")&&ie(_e)})}var ce=fe(ue,2);{var we=ie=>{{let Pe=Le(()=>I()?I():{});xz(ie,{get endScreenProperties(){return c(Pe)},get onExit(){return j()},get currentMode(){return b()},get currentLanguage(){return x()},get themeSettings(){return O()},get isScreenVisible(){return J()}})}};oe(ce,ie=>{c(D),U(()=>c(D).id==="thankyou_screen")&&ie(we)})}var Ee=fe(ce,2);{var se=ie=>{var Pe=zz(),Ue=ze(Pe);{var qe=Qe=>{var ot=Sz(),Ce=R(ot,!0);L(ot),xe(()=>{sn(ot,1,`section-title ${b()==="dark"?"dark-mode":""}`),Ne(Ce,(c(D),U(()=>c(D).title)))}),T(Qe,ot)};oe(Ue,Qe=>{z(k()),U(()=>k().isEnabled&&k().otherFields.pageTitle)&&Qe(qe)})}var We=fe(Ue,2);dr(We,1,()=>(c(D),U(()=>c(D).questionIds)),_r,(Qe,ot)=>{const Ce=Le(()=>(z(qh),c(ot),U(()=>qh(c(ot)))));var yt=Ze(),kt=ze(yt);{var Ot=Lt=>{const Mt=Le(()=>(z(k()),U(()=>k()?.isEnabled&&k().otherFields.questionNumber))),Et=Le(()=>(z(c(Ce)),U(()=>M(c(Ce).id)))),st=Le(()=>(z(c(Ce)),z(p()),z(v()),z(g()),z(b()),z(x()),z(O()),z(c(Mt)),z(c(Et)),U(()=>({question:c(Ce),value:Se(p()[c(Ce).id],c(Ce).type),onChange:be=>v()(c(Ce).id,be,c(Ce).type),error:g()[c(Ce).id],currentMode:b(),currentLanguage:x(),themeSettings:O(),questionNumber:c(Mt)?c(Et)+1:void 0}))));var Bt=Iz(),Yr=R(Bt),Q=R(Yr);{var N=be=>{oS(be,jt(()=>c(st),{get question(){return c(Ce)}}))},H=be=>{var Me=Ze(),Fe=ze(Me);{var $t=nr=>{jS(nr,jt(()=>c(st),{get question(){return c(Ce)}}))},mr=nr=>{var zn=Ze(),wo=ze(zn);{var ko=He=>{FS(He,jt(()=>c(st),{get question(){return c(Ce)},get apiKey(){return re()},get hostUrl(){return W()},get identifier(){return G()},get feedbackConfigurationId(){return V()},get otherConfigurationProperties(){return k()}}))},xo=He=>{var ft=Ze(),Pt=ze(ft);{var _t=pr=>{iI(pr,jt(()=>c(st),{get question(){return c(Ce)},get apiKey(){return re()},get hostUrl(){return W()},get identifier(){return G()},get feedbackConfigurationId(){return V()},get otherConfigurationProperties(){return k()}}))},kr=pr=>{var Xt=Ze(),St=ze(Xt);{var dn=zi=>{C1(zi,jt(()=>c(st),{get question(){return c(Ce)}}))},Bz=zi=>{var Tb=Ze(),Yz=ze(Tb);{var Kz=Ni=>{W1(Ni,jt(()=>c(st),{get question(){return c(Ce)}}))},Hz=Ni=>{var Ob=Ze(),Xz=ze(Ob);{var eN=ji=>{lz(ji,jt(()=>c(st),{get question(){return c(Ce)}}))},tN=ji=>{var Eb=Ze(),rN=ze(Eb);{var nN=nc=>{bz(nc,jt(()=>c(st),{get question(){return c(Ce)}}))};oe(rN,nc=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.ANNOTATION)&&nc(nN)},!0)}T(ji,Eb)};oe(Xz,ji=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?ji(eN):ji(tN,!1)},!0)}T(Ni,Ob)};oe(Yz,Ni=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.RATING)?Ni(Kz):Ni(Hz,!1)},!0)}T(zi,Tb)};oe(St,zi=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.SINGLE_CHOICE)?zi(dn):zi(Bz,!1)},!0)}T(pr,Xt)};oe(Pt,pr=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.SHORT_ANSWER)?pr(_t):pr(kr,!1)},!0)}T(He,ft)};oe(wo,He=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.LONG_TEXT)?He(ko):He(xo,!1)},!0)}T(nr,zn)};oe(Fe,nr=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.NESTED_SELECTION)?nr($t):nr(mr,!1)},!0)}T(be,Me)};oe(Q,be=>{z(c(Ce)),z(s.QuestionTypes),U(()=>c(Ce).type===s.QuestionTypes.NPS)?be(N):be(H,!1)})}L(Yr),L(Bt),T(Lt,Bt)};oe(kt,Lt=>{c(Ce)&&Lt(Ot)})}T(Qe,yt)}),T(ie,Pe)};oe(Ee,ie=>{c(D),U(()=>c(D).id!=="welcome_screen"&&c(D).id!=="thankyou_screen")&&ie(se)})}L(F),T(S,F)}),T(P,Z)};oe(ve,P=>{z(y()),z(m()),U(()=>y()<m().length&&m().length>0)&&P(B)})}T(i,ke),Ke()}var Tz=ee('<div class="flex justify-center"><!></div>'),Oz=ee('<div class="flex justify-center"><!></div>'),Ez=ee('<div class="flex-1"></div>'),Pz=wn('<svg class="w-5 h-5 animate-spin" fill="none" viewBox="0 0 24 24"><circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle><path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>'),Cz=ee('<div class="flex items-center justify-between gap-3"><!> <!></div>'),Uz=ee('<div class="w-full py-6 px-4"><!></div>');function Az(i,n){Ye(n,!1);const u=X(),l=X(),d=X(),m=X(),p=X(),g=X();let v=_(n,"isWelcomeScreen",8),b=_(n,"isThankYouScreen",8),h=_(n,"isFirstSection",8),k=_(n,"isFirstPageAfterWelcome",8,!1),y=_(n,"isLastSection",8),I=_(n,"welcomeScreenProperties",8),x=_(n,"endScreenProperties",8,void 0),O=_(n,"otherConfigurationProperties",8),j=_(n,"currentMode",8),J=_(n,"currentLanguage",8),re=_(n,"handlePrevious",8),W=_(n,"handleNext",8),G=_(n,"handleSubmit",8),V=_(n,"onClose",8,void 0);_(n,"themeSettings",8);let M=_(n,"nextButtonDisabled",8,!1),te=_(n,"submitButtonDisabled",8,!1),ne=_(n,"isSinglePageSurvey",8,!1),$e=X(!1);const je=()=>{console.log("Exit button clicked"),V()&&V()()},Se=()=>{if(!b()&&!x()?.isEnabled){$($e,!0),window.setTimeout(()=>{$($e,!1),V()&&V()()},3e3);try{G()()}catch(S){console.error("Error during form submission:",S)}}else G()()},ke=()=>{console.log("handlePreviousClick called"),o0(),re()()},ve=()=>{console.log("handleNextClick called"),W()()};de(()=>(z(O()),z(J())),()=>{$(u,(()=>{const S={previousButtonLabel:"Previous",nextButtonLabel:"Next",submitButtonLabel:"Submit"};return O().isEnabled?O().translations&&J()&&O().translations[J()]?O().translations[J()]:O().otherFields??S:S})())}),de(()=>(z(I()),z(J())),()=>{$(l,I().translations&&J()&&I().translations[J()]?I().translations[J()]:I().welcomeFields??{title:"Welcome to our survey!",description:"We value your feedback and appreciate your time.",buttonLabel:"Start"})}),de(()=>(z(x()),z(J())),()=>{$(d,x()?.translations&&J()&&x().translations[J()]?x().translations[J()]:x()?.endFields??{buttonLabel:"Exit",dismissBehavior:"close"})}),de(()=>z(j()),()=>{$(m,j()==="dark")}),de(()=>z(M()),()=>{$(p,Nl()||M())}),de(()=>z(te()),()=>{$(g,Nl()||te())}),de(()=>(z(M()),z(te()),c(p),c(g)),()=>{console.log("NavigationButtons disabled state:",{nextButtonDisabled:M(),submitButtonDisabled:te(),hasValidationErrors:Nl(),isNextDisabled:c(p),isSubmitDisabled:c(g)})}),de(()=>(z(v()),z(b()),z(y())),()=>{console.log("NavigationButtons: isWelcomeScreen =",v(),"isThankYouScreen =",b(),"isLastSection =",y())}),sr(),Ht();var B=Uz(),P=R(B);{var Z=S=>{var D=Tz(),F=R(D);qt(F,{onclick:ve,size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(ue,_e)=>{yr();var ce=kn();xe(()=>Ne(ce,(c(l),U(()=>c(l).buttonLabel)))),T(ue,ce)},$$slots:{default:!0}}),L(D),T(S,D)},C=S=>{var D=Ze(),F=ze(D);{var ue=ce=>{var we=Oz(),Ee=R(we);qt(Ee,{onclick:()=>je(),size:"lg",class:"px-8 py-6 text-base font-semibold min-w-[160px] rounded-lg shadow-md hover:shadow-lg transition-all",children:(se,ie)=>{yr();var Pe=kn();xe(()=>Ne(Pe,(c(d),U(()=>c(d).buttonLabel)))),T(se,Pe)},$$slots:{default:!0}}),L(we),T(ce,we)},_e=ce=>{var we=Cz(),Ee=R(we);{var se=We=>{{let Qe=Le(()=>h()||k());qt(We,{onclick:()=>ke(),get disabled(){return c(Qe)},variant:"outline",size:"lg",class:"px-6 py-5 text-sm text-secondary-foreground min-w-[140px] font-semibold rounded-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(ot,Ce)=>{yr();var yt=kn();xe(()=>Ne(yt,(c(u),U(()=>c(u).previousButtonLabel)))),T(ot,yt)},$$slots:{default:!0}})}},ie=We=>{var Qe=Ez();T(We,Qe)};oe(Ee,We=>{ne()?We(ie,!1):We(se)})}var Pe=fe(Ee,2);{var Ue=We=>{{let Qe=Le(()=>c(g)||c($e)),ot=Le(()=>ne()?"mx-auto":"");qt(We,{onclick:()=>Se(),get disabled(){return c(Qe)},size:"lg",get class(){return`px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed ${c(ot)??""}`},children:(Ce,yt)=>{var kt=Ze(),Ot=ze(kt);{var Lt=Et=>{var st=Pz();T(Et,st)},Mt=Et=>{var st=kn();xe(()=>Ne(st,(c(u),U(()=>c(u).submitButtonLabel)))),T(Et,st)};oe(Ot,Et=>{c($e)?Et(Lt):Et(Mt,!1)})}T(Ce,kt)},$$slots:{default:!0}})}},qe=We=>{var Qe=Ze(),ot=ze(Qe);{var Ce=yt=>{qt(yt,{onclick:ve,get disabled(){return c(p)},size:"lg",class:"px-6 py-5 text-base font-semibold min-w-[140px] rounded-lg shadow-md hover:shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:(kt,Ot)=>{yr();var Lt=kn();xe(()=>Ne(Lt,(c(u),U(()=>c(u).nextButtonLabel)))),T(kt,Lt)},$$slots:{default:!0}})};oe(ot,yt=>{ne()||yt(Ce)},!0)}T(We,Qe)};oe(Pe,We=>{y()?We(Ue):We(qe,!1)})}L(we),T(ce,we)};oe(F,ce=>{b()?ce(ue):ce(_e,!1)},!0)}T(S,D)};oe(P,S=>{v()?S(Z):S(C,!1)})}L(B),T(i,B),Ke()}var Dz=ee('<div data-slot="progress-indicator" class="bg-primary h-full w-full flex-1 transition-all"></div>');function Lz(i,n){Ye(n,!0);let u=_(n,"ref",15,null),l=_(n,"max",3,100),d=Dt(n,["$$slots","$$events","$$legacy","ref","class","max","value"]);var m=Ze(),p=ze(m);{let g=lt(()=>wr("bg-primary/20 relative w-full overflow-hidden rounded-full",n.class));Oa(p,()=>m1,(v,b)=>{b(v,jt({"data-slot":"progress",get class(){return c(g)},get value(){return n.value},get max(){return l()}},()=>d,{get ref(){return u()},set ref(h){u(h)},children:(h,k)=>{var y=Dz();xe(()=>yi(y,`transform: translateX(-${100-100*(n.value??0)/(l()??1)}%)`)),T(h,y)},$$slots:{default:!0}}))})}T(i,m),Ke()}var Mz=ee('<div class="flex-shrink-0" style="height: 3px; min-height: 3px; max-height: 3px;"><!></div>'),Zz=ee('<div class="branding-container"><img alt="encatch Logo" class="mr-2 h-5 w-5"/> <p class="m-0 text-[10px] font-medium text-muted-foreground">Powered by encatch</p></div>'),Rz=ee('<div id="encatch-form-id"><!> <div class="form-content-container custom-scrollbar"><!></div> <!> <!></div>');function rc(i,n){Ye(n,!1);const u=()=>Gx(Fr,"$formResponses",l),[l,d]=Jx(),m=X(),p=X(),g=X(),v=X(),b=X(),h=X(),k=X(),y=X(),I=X(),x=X();let O=_(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),j=_(n,"currentMode",12,"light"),J=_(n,"currentLanguage",28,()=>({value:"en",label:"en"})),re=_(n,"questions",28,()=>({})),W=_(n,"questionLanguages",28,()=>[]),G=_(n,"otherConfigurationProperties",12,null),V=_(n,"welcomeScreenProperties",12,null),M=_(n,"endScreenProperties",12,null),te=_(n,"translations",28,()=>({})),ne=_(n,"sections",24,()=>[]),$e=_(n,"themeSettings",12,null),je=_(n,"onClose",12,void 0),Se=_(n,"onSectionChange",8,void 0),ke=_(n,"apiKey",8,void 0),ve=_(n,"hostUrl",8,void 0),B=_(n,"feedbackConfigId",8,void 0),P=_(n,"identifier",8,void 0),Z=X(0),C=X(0),S=X(!1),D=X({}),F=X((()=>{let Q=[...ne()||[]];const N=V()?.isEnabled??!0,H=M()?.isEnabled??!0;return N&&Q.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),H&&Q.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),Q})()),ue=X(!1);const _e=()=>{const Q=window;return typeof window<"u"&&Q.encatchAnnotate!==void 0&&typeof Q.encatchAnnotate=="object"&&Q.encatchAnnotate!==null&&typeof Q.encatchAnnotate.getAnnotation=="function"},ce=()=>{if(_e()){const Q=window;console.log("Encatch Annotate plugin is available",_e());const N=Q.encatchAnnotate?.getAnnotation?.();console.log("Annotation Data from App.tsx:",N),N?(console.log("Found annotation data in App.tsx:",N),Object.entries(re()).forEach(([H,be])=>{be.type===s.QuestionTypes.ANNOTATION&&(console.log(`Updating annotation question ${H} with data:`,N),lr(H,N,s.QuestionTypes.ANNOTATION))})):(console.log("No annotation data found in App.tsx"),console.log("Annotation Data:",N))}},we=(Q,N,H,be,Me="")=>Q.map(Fe=>{let $t=Me?`${Me}.children.${Fe.id}.label`:`option.${Fe.id}.label`,mr=be[N]?.[H]?.[$t],nr={...Fe};return mr&&(nr.label=mr),Fe.children&&Fe.children.length>0&&(nr.children=we(Fe.children,N,H,be,Me?`${Me}.children.${Fe.id}`:`option.${Fe.id}`)),nr}),Ee=Q=>{const N=te()||{},H=Object.fromEntries(Object.entries(re()).map(([be,Me])=>{const Fe=N[be]?.[Q]||{};let $t={...Me};return Fe.title&&($t.title=Fe.title),Fe.description&&($t.description=Fe.description),Fe.errorMessage&&($t.errorMessage=Fe.errorMessage),Fe.placeholder&&($t.placeholder=Fe.placeholder),Fe.minLabel&&($t.minLabel=Fe.minLabel),Fe.maxLabel&&($t.maxLabel=Fe.maxLabel),Fe.annotationText&&($t.annotationText=Fe.annotationText),Fe.noAnnotationText&&($t.noAnnotationText=Fe.noAnnotationText),Me.options&&Array.isArray(Me.options)&&($t.options=we(Me.options,be,Q,N)),[be,$t]}));re(H)},se=()=>c(F).reduce((Q,N)=>Q+N.questionIds.length,0),ie=()=>u().questions.filter(Q=>{try{if(Q.type===s.QuestionTypes.SHORT_ANSWER){if(!Q.answer||typeof Q.answer!="object")return!1;const N=Q.answer.shortAnswer;if(N==null||typeof N=="string"&&N.trim()==="")return!1}if(Q.type===s.QuestionTypes.LONG_TEXT){if(!Q.answer||typeof Q.answer!="object")return!1;const N=Q.answer.longText;if(N==null||typeof N=="string"&&N.trim()==="")return!1}return!0}catch(N){return console.error("Error checking answer:",Q.questionId,N),!0}}).length,Pe=()=>(console.log("answeredQuestions",ie(),"totalQuestions",se()),ie()/se()*100),Ue=(Q,N,H)=>{let be=N;Array.isArray(N)&&(be=[...N]),lr(Q,be,H),$(D,{...c(D),[Q]:""})},qe=()=>{if(c(C)>0){const Q=c(C)-1;$(C,Q),Se()?.(Q)}},We=()=>{if(console.log("=== handleNext called ==="),console.log("currentSectionIndex BEFORE:",c(C)),console.log("internalSections.length:",c(F).length),console.log("internalSections:",c(F)),c(C)<c(F).length-1){const Q=c(C)+1;console.log("Will set currentSectionIndex to:",Q),$(C,Q),console.log("currentSectionIndex AFTER assignment:",c(C)),Se()?.(Q)}else console.log("❌ Cannot navigate next: already at last section")},Qe=()=>{console.log("Form submitted:",u().questions);const Q=c(F).findIndex(N=>N.id==="thankyou_screen");Q!==-1&&($(C,Q),Se()?.(Q)),$(S,!0),window.encatch?._internal?.submitFeedback?(console.log("$formResponses.questions:",JSON.stringify(u().questions,null,2)),console.log("First question answer:",u().questions[0]?.answer),window.encatch._internal.submitFeedback({response:{questions:u().questions},action:"S",feedbackConfigurationId:B()||"",feedbackIdentifier:P()||"",duration:0})):console.error("window.encatch._internal.submitFeedback is not available")},ot=()=>{je()?.()},Ce="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik00MDQuOCwyMTAuOEMzMDkuMSwyNDEuOSwyMzQsMzE3LjYsMjAzLjIsNDEzLjRjLTYxLjMsMTkwLjEsNDcuOSwzNjguNSwyMTIuNSw0MjBjNS43LDEuOCwxMS42LTIuNSwxMS42LTguNQoJCXYtNjkuN2MwLTMuNi0yLjItNi44LTUuNi04LjJDMzMyLjQsNzEwLjcsMjY5LjMsNjIzLDI2OS4zLDUyMC44YzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45djQ3LjJjMCwxMS4xLDMuOSwyMC42LDE1LDIwLjZsNDUuNi0wLjNoNDEuN3YtMC4yaDM0LjEKCQljNC4yLDAsNy42LTMuNCw3LjYtNy42di0zMy44Qzg0MS4xLDMwNC45LDYzMS40LDEzNy4yLDQwNC44LDIxMC44eiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTI2NSw3MTYuOGwtMTUuNCwxMTYuNmMtMC40LDIuOCwyLjUsNC45LDUsMy43TDM2OCw3ODUuN2MyLjYtMS4yLDIuOC00LjcsMC41LTYuMmwtOTcuOS02NS4yCgkJQzI2OC40LDcxMi44LDI2NS40LDcxNC4xLDI2NSw3MTYuOHoiLz4KCTxwYXRoIGNsYXNzPSJzdDUiIGQ9Ik02NjYuMyw1NjMuM2gtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY3MC45LDU2MS4yLDY2OC44LDU2My4zLDY2Ni4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTQ0NC4yLDU2My4zaC03Ni41Yy0zLjEsMC01LjUtMi41LTUuNS01LjV2LTc2LjVjMC0zLjEsMi41LTUuNSw1LjUtNS41aDc2LjVjMy4xLDAsNS41LDIuNSw1LjUsNS41djc2LjUKCQlDNDQ5LjcsNTYwLjgsNDQ3LjIsNTYzLjMsNDQ0LjIsNTYzLjN6Ii8+Cgk8cGF0aCBjbGFzcz0ic3Q1IiBkPSJNNTU1LjMsNTYzLjNoLTc3LjZjLTIuOCwwLTUtMi4zLTUtNXYtNzcuNmMwLTIuOCwyLjMtNSw1LTVoNzcuNmMyLjgsMCw1LDIuMyw1LDV2NzcuNgoJCUM1NjAuMyw1NjEsNTU4LDU2My4zLDU1NS4zLDU2My4zeiIvPgoJPHBhdGggY2xhc3M9InN0NSIgZD0iTTY4My45LDI1NC45Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZjNjIuNS0xMDEuNiwxODcuNy0xNDEuNCwyOTUuMS0xMDAuMSIvPgo8L2c+Cjwvc3ZnPgo=",yt="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjMuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEwMDAgMTAwMDsiIAogIGhlaWdodD0iMjAiCiAgd2lkdGg9IjIwIgogIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMzODQ4OUQ7fQoJLnN0MXtmaWxsOiMxRjFCNEY7fQoJLnN0MntmaWxsOiNGN0I5Mjg7fQoJLnN0M3tmaWxsOiMwMEI4N0E7fQoJLnN0NHtmaWxsOiNFMDI0NUU7fQoJLnN0NXtmaWxsOiNGRkZGRkY7fQoJLnN0NntmaWxsOiNGOEZFRkY7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0zODEuOSwxOTkuNmMtOTUuNywzMS4xLTE3MC44LDEwNi44LTIwMS43LDIwMi42Yy02MS4zLDE5MC4xLDQ3LjksMzY4LjUsMjEyLjUsNDIwYzUuNywxLjgsMTEuNi0yLjUsMTEuNi04LjUKCQlWNzQ0YzAtMy42LTIuMi02LjgtNS42LTguMmMtODkuMy0zNi4zLTE1Mi40LTEyNC4xLTE1Mi40LTIyNi4yYzAtMTM0LjcsMTA5LjYtMjQ0LjIsMjQ0LjItMjQ0LjJjMTE5LjMsMCwyMTguOCw4NS43LDIzOS45LDE5OC45CgkJYzAuMywxLjktMS4xLDMuNi0zLDMuNmgtMzcuNGMtOC44LDAtMTUuOSw3LjEtMTUuOSwxNS45VjUzMWMwLDExLjEsMy45LDIwLjYsMTUsMjAuNmw0NS42LTAuM2g0MS43di0wLjJoMzQuMQoJCWM0LjIsMCw3LjYtMy40LDcuNi03LjZ2LTMzLjhDODE4LjIsMjkzLjcsNjA4LjUsMTI2LDM4MS45LDE5OS42eiIvPgoJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI0Mi4xLDcwNS42bC0xNS40LDExNi42Yy0wLjQsMi44LDIuNSw0LjksNSwzLjdMMzQ1LDc3NC41YzIuNi0xLjIsMi44LTQuNywwLjUtNi4yTDI0Ny42LDcwMwoJCUMyNDUuNCw3MDEuNiwyNDIuNCw3MDIuOSwyNDIuMSw3MDUuNnoiLz4KCTxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik02NDMuNCw1NTIuMWgtNzguNmMtMi41LDAtNC41LTItNC41LTQuNXYtNzguNmMwLTIuNSwyLTQuNSw0LjUtNC41aDc4LjZjMi41LDAsNC41LDIsNC41LDQuNXY3OC42CgkJQzY0Ny45LDU1MCw2NDUuOSw1NTIuMSw2NDMuNCw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik00MjEuMiw1NTIuMWgtNzYuNWMtMy4xLDAtNS41LTIuNS01LjUtNS41VjQ3MGMwLTMuMSwyLjUtNS41LDUuNS01LjVoNzYuNWMzLjEsMCw1LjUsMi41LDUuNSw1LjV2NzYuNQoJCUM0MjYuOCw1NDkuNiw0MjQuMyw1NTIuMSw0MjEuMiw1NTIuMXoiLz4KCTxwYXRoIGNsYXNzPSJzdDQiIGQ9Ik01MzIuMyw1NTIuMWgtNzcuNmMtMi44LDAtNS0yLjMtNS01di03Ny42YzAtMi44LDIuMy01LDUtNWg3Ny42YzIuOCwwLDUsMi4zLDUsNVY1NDcKCQlDNTM3LjQsNTQ5LjgsNTM1LjEsNTUyLjEsNTMyLjMsNTUyLjF6Ii8+Cgk8cGF0aCBjbGFzcz0ic3QxIiBkPSJNNjYxLDI0My42Yy0xODMuOS0xMTMuMi00MzUuMi0zNi41LTQ5MS4zLDE5NWMtMjMuNyw5Ny44LDEuNSwyMDEuNCw2Ni45LDI3Ny45CgkJYzEyOS44LDE1MS44LDMzOSwxNTIuMyw0NjkuMSwzOS4xYzQuNS0zLjksMy45LTExLjItMS4yLTE0LjNsLTU5LjMtMzYuNWMtMy4xLTEuOS03LTEuNy05LjksMC41Yy03Ny43LDU3LTE4NS41LDY0LjgtMjcyLjUsMTEuMwoJCWMtMTE0LjgtNzAuNi0xNTAuNi0yMjEuMy04MC0zMzZDMzQ1LjIsMjc5LDQ3MC40LDIzOS4yLDU3Ny45LDI4MC41Ii8+CjwvZz4KPC9zdmc+Cg==";xn(()=>{ce(),window.updateEncatchForm=Q=>{if(console.log("updateEncatchForm received props:",Q),Q.theme&&O(Q.theme),Q.currentMode&&j(Q.currentMode),Q.currentLanguage&&(console.log("currentLanguage at App.tsx",Q.currentLanguage),J(Q.currentLanguage),J()?.value&&Ee(J().value)),Q.questions&&re(Q.questions),Q.questionLanguages&&W(Q.questionLanguages),Q.otherConfigurationProperties&&G(Q.otherConfigurationProperties),Q.welcomeScreenProperties&&V(Q.welcomeScreenProperties),Q.endScreenProperties){const N=M()?.isEnabled,H=Q.endScreenProperties.isEnabled;if(N&&!H){const be=c(F).findIndex(Me=>Me.id==="thankyou_screen");be===c(C)&&$(C,Math.max(0,be-1))}M(Q.endScreenProperties)}if(Q.sections){const N=[...Q.sections],H=Q.welcomeScreenProperties?.isEnabled??V()?.isEnabled??!0,be=Q.endScreenProperties?.isEnabled??M()?.isEnabled??!0;H&&!N.some(Me=>Me.id==="welcome_screen")&&N.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),be&&!N.some(Me=>Me.id==="thankyou_screen")&&N.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),$(F,N),H&&c(C)===0&&$(C,0)}Q.translations&&(te(Q.translations),J()?.value&&Ee(J().value)),Q.themeSettings&&$e(Q.themeSettings),Q.onClose&&je(Q.onClose)}}),de(()=>(z($e()),z(j())),()=>{if($e()&&$e().themes&&j()&&$e().themes[j()]){const Q=document.documentElement,N=$e().themes[j()];N&&(Q.style.setProperty("--brand-color",N.brandColor||"#2563eb"),Q.style.setProperty("--text-color",N.textColor||"#333"),Q.style.setProperty("--background-color",N.backgroundColor||"#ffffff"))}}),de(()=>z(j()),()=>{$(m,j()==="dark"?Ce:yt)}),de(()=>(z(J()),z(V()),z(M()),z(G())),()=>{if(J()&&J().value){const Q=J().value;Ee(Q),V()?.translations?.[Q]&&V({...V(),welcomeFields:{...V().welcomeFields,...V().translations[Q]}}),M()?.translations?.[Q]&&M({...M(),endFields:{...M().endFields,...M().translations[Q]}}),G()?.translations?.[Q]&&G({...G(),otherFields:{...G().otherFields,...G().translations[Q]}})}}),de(()=>(z(ne()),z(V()),z(M()),c(C),c(ue),c(S)),()=>{const Q=[...ne()];let N=!1;const H=Q.some($t=>$t.id==="welcome_screen"),be=Q.some($t=>$t.id==="thankyou_screen"),Me=V()?.isEnabled??!0,Fe=M()?.isEnabled??!0;if(Me&&!H)Q.unshift({id:"welcome_screen",title:"Welcome",questionIds:[]}),N=!0;else if(!Me&&H){const $t=Q.filter(mr=>mr.id!=="welcome_screen");$t.length!==Q.length&&($(F,$t),N=!0)}if(Fe&&!be)Q.push({id:"thankyou_screen",title:"Thank You",questionIds:[]}),N=!0;else if(!Fe&&be){const $t=Q.filter(mr=>mr.id!=="thankyou_screen");if($t.length!==Q.length){const mr=Q.findIndex(nr=>nr.id==="thankyou_screen");(c(C)===mr||c(C)>=$t.length)&&$(C,Math.max(0,$t.length-1)),$(F,$t),N=!0}}N&&(console.log("REACTIVE BLOCK: sectionUpdated is true"),$(F,Q),c(ue)||(console.log("REACTIVE BLOCK: Initial setup, setting currentSectionIndex to 0"),!c(S)&&!(!Fe&&be)&&$(C,0),$(ue,!0)))}),de(()=>(z(M()),c(C),c(F)),()=>{$(p,M()?.isEnabled&&c(C)===c(F).length-1)}),de(()=>c(F),()=>{$(g,c(F).filter(Q=>Q.id!=="welcome_screen"&&Q.id!=="thankyou_screen").length===1)}),de(()=>(c(C),c(F)),()=>{$(v,c(C)===0&&c(F)[0]?.id==="welcome_screen")}),de(()=>(c(F),c(C)),()=>{$(b,c(F)[c(C)]?.id==="thankyou_screen")}),de(()=>c(C),()=>{$(h,c(C)===0)}),de(()=>(c(F),c(C)),()=>{$(k,c(F)[0]?.id==="welcome_screen"&&c(C)===1)}),de(()=>(c(F),c(C)),()=>{$(y,(()=>{const Q=c(F).findIndex(N=>N.id==="thankyou_screen");return Q!==-1?c(C)===Q-1:c(C)===c(F).length-1})())}),de(()=>(c(F),c(C),c(v),c(b),u(),z(re())),()=>{$(I,(()=>{const Q=c(F)[c(C)];if(!Q||c(v)||c(b))return!1;const N=Q.questionIds||[],H=u().questions.reduce((be,Me)=>(be[Me.questionId]=Me,be),{});console.log("=== Validation Check ==="),console.log("Current section:",Q.id,Q.title),console.log("Question IDs in section:",N),console.log("All responses:",H),console.log("All form responses:",u().questions);for(const be of N){const Me=re()[be],Fe=!!H[be];if(console.log(`Question ${be}:`,{title:Me?.title,required:Me?.required,hasResponse:Fe,response:H[be]}),Me?.required&&!Fe)return console.log(`❌ Required question not answered: ${be}`,Me?.title),!0}return console.log("✅ All required questions answered"),!1})())}),de(()=>c(I),()=>{console.log("App.svelte: _hasUnansweredRequired =",c(I))}),de(()=>(c(C),c(F)),()=>{console.log("🔄 REACTIVE: currentSectionIndex =",c(C)),c(C)>=0&&c(C)<c(F).length&&console.log("🔄 Current section:",c(F)[c(C)])}),de(()=>(u(),s.QuestionTypes),()=>{$(x,u().questions.reduce((Q,N)=>{if(N.answer)switch(N.type){case s.QuestionTypes.RATING:Q[N.questionId]=N.answer.rating;break;case s.QuestionTypes.NPS:Q[N.questionId]=N.answer.nps;break;case s.QuestionTypes.LONG_TEXT:Q[N.questionId]=N.answer.longText;break;case s.QuestionTypes.SHORT_ANSWER:Q[N.questionId]=N.answer.shortAnswer;break;case s.QuestionTypes.SINGLE_CHOICE:Q[N.questionId]=N.answer.singleChoice;break;case s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE:Q[N.questionId]=[...N.answer.multipleChoiceMultiple||[]];break;case s.QuestionTypes.NESTED_SELECTION:Q[N.questionId]=[...N.answer.nestedSelection||[]];break;default:Q[N.questionId]=N.answer}else Q[N.questionId]=null;return Q},{}))}),de(()=>u(),()=>{const Q=Pe();$(Z,Q),console.log("Form Responses Store Updated:",u()),console.log("Questions answered:",u().questions.length)}),de(()=>z(re()),()=>{re()&&(console.log("Questions changed"),ce())}),de(()=>c(g),()=>{console.log("Is single page survey:",c(g))}),sr(),Ht();var kt=Rz(),Ot=R(kt);{var Lt=Q=>{var N=Mz(),H=R(N);Lz(H,{get value(){return c(Z)},max:100,class:"h-full w-full rounded-none bg-muted/40 [&_[data-slot=progress-indicator]]:bg-primary [&_[data-slot=progress-indicator]]:transition-all [&_[data-slot=progress-indicator]]:duration-300 [&_[data-slot=progress-indicator]]:ease-in-out"}),L(N),T(Q,N)};oe(Ot,Q=>{z($e()),c(v),c(b),U(()=>$e()?.featureSettings?.progressBar&&!c(v)&&!c(b))&&Q(Lt)})}var Mt=fe(Ot,2),Et=R(Mt);{let Q=Le(()=>(z(J()),U(()=>J()?.value||"en"))),N=Le(()=>(z($e()),U(()=>$e()?.themes||null))),H=Le(()=>c(p)===!0);jz(Et,{get questions(){return re()},get sections(){return c(F)},get formData(){return c(x)},get errors(){return c(D)},onChange:Ue,get currentMode(){return j()},get currentSectionIndex(){return c(C)},get otherConfigurationProperties(){return G()},get welcomeScreenProperties(){return V()},get endScreenProperties(){return M()},get currentLanguage(){return c(Q)},get themeSettings(){return c(N)},onClose:ot,get isScreenVisible(){return c(H)},get apiKey(){return ke()},get feedbackConfigurationId(){return B()},get hostUrl(){return ve()},get identifier(){return P()}})}L(Mt);var st=fe(Mt,2);{let Q=Le(()=>(z(J()),U(()=>J()?.value||"en"))),N=Le(()=>(z($e()),U(()=>$e()?.themes||null)));Az(st,{get isWelcomeScreen(){return c(v)},get isThankYouScreen(){return c(b)},get isFirstSection(){return c(h)},get isFirstPageAfterWelcome(){return c(k)},get isLastSection(){return c(y)},get welcomeScreenProperties(){return V()},get endScreenProperties(){return M()},get otherConfigurationProperties(){return G()},get currentMode(){return j()},get currentLanguage(){return c(Q)},handlePrevious:qe,handleNext:We,handleSubmit:Qe,onClose:ot,get themeSettings(){return c(N)},get nextButtonDisabled(){return c(I)},get submitButtonDisabled(){return c(I)},get isSinglePageSurvey(){return c(g)}})}var Bt=fe(st,2);{var Yr=Q=>{var N=Zz(),H=R(N);yr(2),L(N),xe(()=>ei(H,"src",c(m))),T(Q,N)};oe(Bt,Q=>{z($e()),U(()=>$e()?.featureSettings?.showBranding)&&Q(Yr)})}L(kt),xe(()=>sn(kt,1,`encatch-form ${j()==="dark"?"theme-dark dark":"theme-light"}`)),T(i,kt),Ke(),d()}var qz=ee('<div class="fixed inset-0 transition-opacity duration-300"></div>'),Fz=ee('<!> <div id="encatch-feedback-popup" class="rounded-xl shadow-2xl overflow-hidden"><!> <!></div>',1),Wz=ee('<link rel="stylesheet" href="http://127.0.0.1:5500/encatch-typescript/packages/web-sdk/public/web-form-engine-core.css"/> <!>',1);function zb(i,n){Ye(n,!1);const u=X(),l=X();let d=_(n,"themeMode",8,"light"),m=_(n,"feedbackConfiguration",8,null),p=_(n,"apiKey",8,""),g=_(n,"hostUrl",8,"");_(n,"deviceInfo",8,null),_(n,"sessionId",8,""),_(n,"userInfo",8,null);let v=_(n,"language",8,"en"),b=_(n,"configurationData",8,null),h=_(n,"onClose",8,void 0),k=_(n,"trackPopupHeight",8,void 0),y=_(n,"feedbackConfigId",8,void 0),I=_(n,"identifier",8,void 0),x=X(document.documentElement.clientWidth),O=X(!1),j=X(null),J=!1,re=null,W=X(),G;const V=()=>{if(c(W)){const ve=c(W).querySelector("#section-container");if(ve){const B=window.innerHeight*.75,P=ve.clientHeight,Z=84,C=60,S=Math.min(P+Z+C,B);c(W).style.transition.includes("height")||Lv(W,c(W).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),Lv(W,c(W).style.height=`${S}px`),ve.style.overflowY=P+Z+C>B?"auto":"hidden"}}},M=()=>{$(x,document.documentElement.clientWidth)},te=()=>{s0(),$(O,!1),setTimeout(()=>{h()?.()},300)},ne=ve=>{const B={position:"fixed",width:c(u),"max-width":c(u),height:"30%",transition:"transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease","transform-origin":"center center","will-change":"transform, opacity"};switch(ve){case"top-left":return{...B,top:"12px",left:"12px",transform:"translate(0, 0)"};case"top-center":return{...B,top:"12px",left:"50%",transform:"translate(-50%, 0)"};case"top-right":return{...B,top:"12px",right:"12px",transform:"translate(0, 0)"};case"center-left":return{...B,top:"50%",left:"12px",transform:"translateY(-50%)"};case"center":return{...B,top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(1)"};case"center-right":return{...B,top:"50%",right:"12px",transform:"translateY(-50%)"};case"bottom-left":return{...B,bottom:"12px",left:"12px",transform:"translate(0, 0)"};case"bottom-center":return{...B,bottom:"12px",left:"50%",transform:"translate(-50%, 0)"};case"bottom-right":return{...B,bottom:"12px",right:"12px",transform:"translate(0, 0)"};case"bottom-full":return{...B,bottom:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"top-full":return{...B,top:"0",left:"50%",width:"100%","max-width":"100%",transform:"translate(-50%, 0)"};case"full":return{...B,top:"0",left:"0",width:"100%","max-width":"100%",height:"100%",transform:"translate(0, 0)"};default:return B}},$e=ve=>Object.entries(ve).map(([B,P])=>`${B}: ${P}`).join("; ");xn(()=>{console.log("[POPUP-UI] onMount called"),console.log("[POPUP-UI] Props on mount:",{feedbackConfiguration:m(),configurationData:b(),themeMode:d(),apiKey:p(),hostUrl:g(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!c(j)}),window.addEventListener("resize",M),setTimeout(()=>{$(O,!0),console.log("[POPUP-UI] isVisible set to true")},100),G=window.setInterval(V,5e3),k()&&k()(V),requestAnimationFrame(()=>{setTimeout(()=>V(),0)}),console.log("[POPUP-UI] loaded")}),Ta(()=>{window.removeEventListener("resize",M),G&&window.clearInterval(G)}),de(()=>c(x),()=>{$(u,c(x)<=768?"95%":"600px")}),de(()=>z(b()),()=>{$(j,b())}),de(()=>c(j),()=>{c(j)?.feedbackIdentifier&&console.log("[POPUP-UI] feedback identifier data",c(j)?.feedbackIdentifier)}),de(()=>c(j),()=>{console.log("[POPUP-UI] Reactive update - details:",c(j),"loading:",J,"error:",re)}),de(()=>z(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration:",m())}),de(()=>z(b()),()=>{console.log("[POPUP-UI] configurationData:",b())}),de(()=>z(m()),()=>{console.log("[POPUP-UI] feedbackConfiguration?.appearanceProperties:",m()?.appearanceProperties)}),de(()=>(z(m()),c(j)),()=>{console.log("[POPUP-UI] Render condition check:",{hasFeedbackConfiguration:!!m(),hasAppearanceProperties:!!m()?.appearanceProperties,hasDetails:!!c(j),shouldRenderApp:!!(m()?.appearanceProperties&&c(j))})}),de(()=>z(m()),()=>{$(l,m()&&m().appearanceProperties&&m().appearanceProperties.selectedPosition?ne(m().appearanceProperties.selectedPosition):{})}),de(()=>c(O),()=>{console.log("Current visible state (reactive): ",c(O))}),sr(),Ht();var je=Wz(),Se=fe(ze(je),2);{var ke=ve=>{var B=Fz(),P=ze(B);{var Z=_e=>{var ce=qz();xe(()=>yi(ce,`background-color: ${z(m()),z(d()),U(()=>m().appearanceProperties.themes[d()].overlayColor)??""}; z-index: 1000; opacity: ${c(O)?"0.4":"0"};`)),T(_e,ce)};oe(P,_e=>{z(m()),U(()=>m()?.appearanceProperties?.featureSettings?.darkOverlay)&&_e(Z)})}var C=fe(P,2),S=R(C);{var D=_e=>{qt(_e,{variant:"ghost",size:"icon",class:"absolute top-3 right-3 z-10 h-8 w-8 rounded border-none bg-background text-primary hover:bg-accent hover:text-accent-foreground transition-all duration-200 active:scale-95",onclick:te,"aria-label":"Close popup",children:(ce,we)=>{Zh(ce,{size:20,stroke:2})},$$slots:{default:!0}})};oe(S,_e=>{z(m()),U(()=>m()?.appearanceProperties?.featureSettings?.closeButton)&&_e(D)})}var F=fe(S,2);{var ue=_e=>{{let ce=Le(()=>({value:v(),label:v()})),we=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.questions||{}))),Ee=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.selectedLanguages||[]))),se=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.translations||{}))),ie=Le(()=>(c(j),U(()=>c(j)?.otherConfigurationProperties))),Pe=Le(()=>(c(j),U(()=>c(j)?.welcomeScreenProperties))),Ue=Le(()=>(c(j),U(()=>c(j)?.endScreenProperties))),qe=Le(()=>(c(j),U(()=>c(j)?.questionnaireFields.sections||[])));rc(_e,{get theme(){return z(m()),U(()=>m().appearanceProperties.themes)},get themeSettings(){return z(m()),U(()=>m().appearanceProperties)},get currentMode(){return d()},get currentLanguage(){return c(ce)},get questions(){return c(we)},get questionLanguages(){return c(Ee)},get translations(){return c(se)},get otherConfigurationProperties(){return c(ie)},get welcomeScreenProperties(){return c(Pe)},get endScreenProperties(){return c(Ue)},get sections(){return c(qe)},onSectionChange:()=>{requestAnimationFrame(()=>{setTimeout(()=>V(),0)})},onClose:te,get apiKey(){return p()},get hostUrl(){return g()},get feedbackConfigId(){return y()},get identifier(){return I()}})}};oe(F,_e=>{z(m()),c(j),U(()=>m()?.appearanceProperties&&c(j))&&_e(ue)})}L(C),Or(C,_e=>$(W,_e),()=>c(W)),xe(_e=>yi(C,`${_e??""}; background-color: ${z(m()),z(d()),U(()=>m()?.appearanceProperties?.themes?.[d()]?.overlayColor||"transparent")??""}; z-index: 1001;`),[()=>(c(l),U(()=>$e(c(l))))]),T(ve,B)};oe(Se,ve=>{ve(ke)})}T(i,je),Ke()}function Nb(i,n){Ye(n,!1);let u=_(n,"themeMode",12,"light"),l=_(n,"feedbackConfiguration",12,null),d=_(n,"apiKey",12,""),m=_(n,"hostUrl",12,""),p=_(n,"deviceInfo",12,null),g=_(n,"sessionId",12,""),v=_(n,"userInfo",12,null),b=_(n,"language",12,"en"),h=_(n,"configurationData",12,null),k=_(n,"onClose",12,void 0),y=_(n,"trackPopupHeight",12,void 0),I=_(n,"feedbackConfigId",12,void 0),x=_(n,"identifier",12,void 0);console.log("[Encatch-Form] Props received:",{themeMode:u(),feedbackConfiguration:l(),apiKey:d(),hostUrl:m(),deviceInfo:p(),sessionId:g(),userInfo:v(),language:b(),configurationData:h(),feedbackConfigId:I(),identifier:x()});var O={get themeMode(){return u()},set themeMode(j){u(j),dt()},get feedbackConfiguration(){return l()},set feedbackConfiguration(j){l(j),dt()},get apiKey(){return d()},set apiKey(j){d(j),dt()},get hostUrl(){return m()},set hostUrl(j){m(j),dt()},get deviceInfo(){return p()},set deviceInfo(j){p(j),dt()},get sessionId(){return g()},set sessionId(j){g(j),dt()},get userInfo(){return v()},set userInfo(j){v(j),dt()},get language(){return b()},set language(j){b(j),dt()},get configurationData(){return h()},set configurationData(j){h(j),dt()},get onClose(){return k()},set onClose(j){k(j),dt()},get trackPopupHeight(){return y()},set trackPopupHeight(j){y(j),dt()},get feedbackConfigId(){return I()},set feedbackConfigId(j){I(j),dt()},get identifier(){return x()},set identifier(j){x(j),dt()}};return zb(i,{get themeMode(){return u()},get feedbackConfiguration(){return l()},get apiKey(){return d()},get hostUrl(){return m()},get deviceInfo(){return p()},get sessionId(){return g()},get userInfo(){return v()},get language(){return b()},get configurationData(){return h()},get onClose(){return k()},get trackPopupHeight(){return y()},get feedbackConfigId(){return I()},get identifier(){return x()}}),Ke(O)}customElements.define("encatch-form",Uh(Nb,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var Vz=ee('<div class="encatch-scale-wrapper svelte-ycyc1j"><!></div>');const Qz={hash:"svelte-ycyc1j",code:".encatch-scale-wrapper.svelte-ycyc1j {transform-origin:top left;transition:transform 0.2s ease-in-out;}"};function jb(i,n){Ye(n,!1),Ax(i,Qz);const u=X(),l=X();let d=_(n,"theme",28,()=>({dark:{brandColor:"#000",overlayColor:"#000",textColor:"#fff",backgroundColor:"#000"},light:{brandColor:"#fff",overlayColor:"#fff",textColor:"#000",backgroundColor:"#fff"}})),m=_(n,"currentMode",12,"light"),p=_(n,"currentLanguage",28,()=>({value:"en",label:"en",isFixed:!0})),g=_(n,"questions",28,()=>({})),v=_(n,"questionLanguages",28,()=>[]),b=_(n,"otherConfigurationProperties",12,null),h=_(n,"welcomeScreenProperties",12,null),k=_(n,"endScreenProperties",12,null),y=_(n,"translations",28,()=>({})),I=_(n,"sections",28,()=>[]),x=_(n,"themeSettings",12,null),O=_(n,"onClose",12,void 0),j=_(n,"onSectionChange",12,void 0),J=_(n,"apiKey",12,void 0),re=_(n,"hostUrl",12,void 0),W=_(n,"feedbackConfigId",12,void 0),G=_(n,"identifier",12,void 0),V=_(n,"cssLink",12,void 0),M=_(n,"scale",12,1),te=X(!1),ne=X(!1),$e=X();const je=P=>{if(!P)return null;let Z=P;for(;Z;){if(Z instanceof ShadowRoot)return Z;Z=Z.parentNode}return null};xn(()=>{console.log("[EncatchApp] Props received:",{theme:d(),currentMode:m(),currentLanguage:p(),questions:g(),questionLanguages:v(),otherConfigurationProperties:b(),welcomeScreenProperties:h(),endScreenProperties:k(),translations:y(),sections:I(),themeSettings:x(),feedbackConfigId:W(),identifier:G(),scale:M(),cssLink:V()}),V()||(console.log("[EncatchApp] No cssLink provided, rendering immediately"),$(te,!0))}),de(()=>z(M()),()=>{$(u,`scale(${M()})`)}),de(()=>{},()=>{$(l,"top left")}),de(()=>(c($e),z(V()),c(te),c(ne)),()=>{c($e)&&V()&&!c(te)&&!c(ne)&&(console.log("[EncatchApp] Container element bound, loading CSS"),setTimeout(()=>{const P=je(c($e));console.log("[EncatchApp] Shadow root found:",!!P);const Z=document.createElement("link");Z.rel="stylesheet",Z.href=V(),Z.onload=()=>{console.log("[EncatchApp] CSS loaded successfully"),$(te,!0)},Z.onerror=()=>{console.error("[EncatchApp] Failed to load CSS"),$(ne,!0)},P?(console.log("[EncatchApp] Appending CSS to shadow root"),P.appendChild(Z)):(console.log("[EncatchApp] Shadow root not found, appending to document head"),document.head.appendChild(Z))},0))}),sr();var Se={get theme(){return d()},set theme(P){d(P),dt()},get currentMode(){return m()},set currentMode(P){m(P),dt()},get currentLanguage(){return p()},set currentLanguage(P){p(P),dt()},get questions(){return g()},set questions(P){g(P),dt()},get questionLanguages(){return v()},set questionLanguages(P){v(P),dt()},get otherConfigurationProperties(){return b()},set otherConfigurationProperties(P){b(P),dt()},get welcomeScreenProperties(){return h()},set welcomeScreenProperties(P){h(P),dt()},get endScreenProperties(){return k()},set endScreenProperties(P){k(P),dt()},get translations(){return y()},set translations(P){y(P),dt()},get sections(){return I()},set sections(P){I(P),dt()},get themeSettings(){return x()},set themeSettings(P){x(P),dt()},get onClose(){return O()},set onClose(P){O(P),dt()},get onSectionChange(){return j()},set onSectionChange(P){j(P),dt()},get apiKey(){return J()},set apiKey(P){J(P),dt()},get hostUrl(){return re()},set hostUrl(P){re(P),dt()},get feedbackConfigId(){return W()},set feedbackConfigId(P){W(P),dt()},get identifier(){return G()},set identifier(P){G(P),dt()},get cssLink(){return V()},set cssLink(P){V(P),dt()},get scale(){return M()},set scale(P){M(P),dt()}};Ht();var ke=Vz(),ve=R(ke);{var B=P=>{rc(P,{get theme(){return d()},get currentMode(){return m()},get currentLanguage(){return p()},get questions(){return g()},get questionLanguages(){return v()},get otherConfigurationProperties(){return b()},get welcomeScreenProperties(){return h()},get endScreenProperties(){return k()},get translations(){return y()},get sections(){return I()},get themeSettings(){return x()},get onClose(){return O()},get onSectionChange(){return j()},get apiKey(){return J()},get hostUrl(){return re()},get feedbackConfigId(){return W()},get identifier(){return G()}})};oe(ve,P=>{c(te)&&P(B)})}return L(ke),Or(ke,P=>$($e,P),()=>c($e)),xe(()=>yi(ke,`transform: ${c(u)??""}; transform-origin: ${c(l)??""}; width: ${100/M()}%; height: ${100/M()}%;`)),T(i,ke),Ke(Se)}customElements.define("encatch-app",Uh(jb,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{},scale:{}},[],[],!0));const Gz=Nb,Jz=jb;o.App=rc,o.EncatchAppElement=Jz,o.EncatchFormElement=Gz,o.PopupUi=zb,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(Pi,Pi.exports)),Pi.exports}var Ik=Sk();const zk=Pb({__proto__:null},[Ik]);Nn.EncatchPreview=Mb,Object.defineProperty(Nn,Symbol.toStringTag,{value:"Module"})}));
|