@encatch/ws-react 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ws-react.es.js +69 -69
- package/dist/ws-react.umd.js +10 -10
- package/package.json +1 -1
package/dist/ws-react.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(fr,
|
|
1
|
+
(function(fr,bi){typeof exports=="object"&&typeof module<"u"?bi(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],bi):(fr=typeof globalThis<"u"?globalThis:fr||self,bi(fr.WsReact={},fr.React))})(this,(function(fr,bi){"use strict";function Mh(e,n){for(var o=0;o<n.length;o++){const s=n[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 Lh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var o=function s(){var t=!1;try{t=this instanceof s}catch{}return t?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};o.prototype=n.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 co={exports:{}},yi={};/**
|
|
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 kc;function
|
|
9
|
+
*/var kc;function Ah(){if(kc)return yi;kc=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function o(s,t,a){var d=null;if(a!==void 0&&(d=""+a),t.key!==void 0&&(d=""+t.key),"key"in t){a={};for(var $ in t)$!=="key"&&(a[$]=t[$])}else a=t;return t=a.ref,{$$typeof:e,type:s,key:d,ref:t!==void 0?t:null,props:a}}return yi.Fragment=n,yi.jsx=o,yi.jsxs=o,yi}var $i={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,15 +14,15 @@
|
|
|
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 wc;function
|
|
17
|
+
*/var wc;function Zh(){return wc||(wc=1,process.env.NODE_ENV!=="production"&&(function(){function e(pe){if(pe==null)return null;if(typeof pe=="function")return pe.$$typeof===Eu?null:pe.displayName||pe.name||null;if(typeof pe=="string")return pe;switch(pe){case ze:return"Fragment";case st:return"Profiler";case Ce:return"StrictMode";case Qt:return"Suspense";case Pn:return"SuspenseList";case Ou: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 ot:return(pe.displayName||"Context")+".Provider";case rt:return(pe._context.displayName||"Context")+".Consumer";case ct:var Qe=pe.render;return pe=pe.displayName,pe||(pe=Qe.displayName||Qe.name||"",pe=pe!==""?"ForwardRef("+pe+")":"ForwardRef"),pe;case Tt:return Qe=pe.displayName||null,Qe!==null?Qe:e(pe.type)||"Memo";case Xo:Qe=pe._payload,pe=pe._init;try{return e(pe(Qe))}catch{}}return null}function n(pe){return""+pe}function o(pe){try{n(pe);var Qe=!1}catch{Qe=!0}if(Qe){Qe=console;var gt=Qe.error,St=typeof Symbol=="function"&&Symbol.toStringTag&&pe[Symbol.toStringTag]||pe.constructor.name||"Object";return gt.call(Qe,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",St),n(pe)}}function s(pe){if(pe===ze)return"<>";if(typeof pe=="object"&&pe!==null&&pe.$$typeof===Xo)return"<...>";try{var Qe=e(pe);return Qe?"<"+Qe+">":"<...>"}catch{return"<...>"}}function t(){var pe=Ri.A;return pe===null?null:pe.getOwner()}function a(){return Error("react-stack-top-frame")}function d(pe){if(kr.call(pe,"key")){var Qe=Object.getOwnPropertyDescriptor(pe,"key").get;if(Qe&&Qe.isReactWarning)return!1}return pe.key!==void 0}function $(pe,Qe){function gt(){Sr||(Sr=!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)",Qe))}gt.isReactWarning=!0,Object.defineProperty(pe,"key",{get:gt,configurable:!0})}function A(){var pe=e(this.type);return Un[pe]||(Un[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 B(pe,Qe,gt,St,Ut,gn,xr,Kr){return gt=gn.ref,pe={$$typeof:be,type:pe,key:Qe,props:gn,_owner:Ut},(gt!==void 0?gt:null)!==null?Object.defineProperty(pe,"ref",{enumerable:!1,get:A}):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:xr}),Object.defineProperty(pe,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Kr}),Object.freeze&&(Object.freeze(pe.props),Object.freeze(pe)),pe}function me(pe,Qe,gt,St,Ut,gn,xr,Kr){var Dt=Qe.children;if(Dt!==void 0)if(St)if(Pu(Dt)){for(St=0;St<Dt.length;St++)ae(Dt[St]);Object.freeze&&Object.freeze(Dt)}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 ae(Dt);if(kr.call(Qe,"key")){Dt=e(pe);var zt=Object.keys(Qe).filter(function(Hr){return Hr!=="key"});St=0<zt.length?"{key: someKey, "+zt.join(": ..., ")+": ...}":"{key: someKey}",ea[Dt+St]||(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,Hr)}function ae(pe){typeof pe=="object"&&pe!==null&&pe.$$typeof===be&&pe._store&&(pe._store.validated=1)}var Ze=Qr,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 Rh(){return Sc||(Sc=1,process.env.NODE_ENV==="production"?co.exports=Zh():co.exports=qh()),co.exports}var Fh=Rh();typeof window<"u"&&!customElements.get("encatch-app")&&Promise.resolve().then(()=>Lg).then(({EncatchAppElement:e})=>{customElements.define("encatch-app",e)});const Wh=({formData:e,cssLink:n})=>(Qr.useEffect(()=>{typeof window<"u"&&!customElements.get("encatch-app")&&Promise.resolve().then(()=>Lg).then(({EncatchAppElement:o})=>{customElements.define("encatch-app",o)})},[]),Fh.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 Qh(e){return e}function Gh(e){return e}function Jh(e){}function Vh(e){throw new Error}function Yh(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 Bh(e){return nr(e._zod.def)}function Kh(e,n){return n?n.reduce((o,s)=>o?.[s],e):e}function Hh(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 Xh(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 Gr(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(Gr(e)===!1)return!1;const n=e.constructor;if(n===void 0)return!0;const o=n.prototype;return!(Gr(o)===!1||Object.prototype.hasOwnProperty.call(o,"isPrototypeOf")===!1)}function vo(e){return gr(e)?{...e}:Array.isArray(e)?[...e]:e}function eb(e){let n=0;for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&n++;return n}const tb=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 nb(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 Jr(...e){const[n,o,s]=e;return typeof n=="string"?{message:n,code:"custom",input:o,inst:s}:{...n}}function rb(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 ib(e){const n=e.replace(/-/g,"+").replace(/_/g,"/"),o="=".repeat((4-n.length%4)%4);return qc(n+o)}function ob(e){return Rc(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ab(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 sb(e){return Array.from(e).map(n=>n.toString(16).padStart(2,"0")).join("")}class ub{constructor(...n){}}const Fc=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Pc,Class:ub,NUMBER_FORMAT_RANGES:Ec,aborted:vr,allowsEval:jc,assert:Yh,assertEqual:Qh,assertIs:Jh,assertNever:Vh,assertNotEqual:Gh,assignProp:_n,base64ToUint8Array:qc,base64urlToUint8Array:ib,cached:ki,captureStackTrace:Sa,cleanEnum:rb,cleanRegex:po,clone:mn,cloneDef:Bh,createTransparentProxy:nb,defineLazy:tt,esc:wa,escapeRegex:rr,extend:Dc,finalizeIssue:wn,floatSafeRemainder:zc,getElementAtPath:Kh,getEnumValues:ka,getLengthableOrigin:yo,getParsedType:tb,getSizableOrigin:bo,hexToUint8Array:ab,isObject:Gr,isPlainObject:gr,issue:Jr,joinValues:ve,jsonStringifyReplacer:mo,merge:Lc,mergeDefs:nr,normalizeParams:te,nullish:pr,numKeys:eb,objectClone:go,omit:Cc,optionalKeys:Oc,partial:Ac,pick:Uc,prefixIssues:kn,primitiveTypes:Tc,promiseAllObject:Hh,propertyKeyTypes:ho,randomString:Xh,required:Zc,safeExtend:Mc,shallowClone:vo,stringifyPrimitive:Fe,uint8ArrayToBase64:Rc,uint8ArrayToBase64url:ob,uint8ArrayToHex:sb,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)},cb=Ta(on),Oa=e=>(n,o,s)=>Si(e)(n,o,s),lb=Oa(on),Ea=e=>async(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return xi(e)(n,o,t)},db=Ea(on),Pa=e=>async(n,o,s)=>xi(e)(n,o,s),fb=Pa(on),Ua=e=>(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Ii(e)(n,o,t)},mb=Ua(on),Ca=e=>(n,o,s)=>Ii(e)(n,o,s),pb=Ca(on),Da=e=>async(n,o,s)=>{const t=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return zi(e)(n,o,t)},gb=Da(on),Ma=e=>async(n,o,s)=>zi(e)(n,o,s),vb=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)?)?)$/,hb=/^[-+]?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})$/,Vr=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)$/,bb=Vr(4),yb=Vr(6),$b=Vr(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])?)*$/,kb=/^(([^<>()\[\]\\.,;:\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,wb=ol,Sb=/^[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])?)*$/,xb="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function al(){return new RegExp(xb,"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:Sb,cidrv4:cl,cidrv6:ll,cuid:Bc,cuid2:Kc,date:gl,datetime:bl,domain:fl,duration:nl,e164:ml,email:il,emoji:al,extendedDuration:hb,guid:rl,hex:Nl,hostname:Aa,html5Email:_b,idnEmail:wb,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:kb,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:Vr,uuid4:bb,uuid6:yb,uuid7:$b,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(`
|
|
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
24
|
`).filter(d=>d),t=Math.min(...s.map(d=>d.length-d.trimStart().length)),a=s.map(d=>d.slice(t)).map(d=>" ".repeat(this.indent*2)+d);for(const d of a)this.content.push(d)}compile(){const n=Function,o=this?.args,t=[...(this?.content??[""]).map(a=>` ${a}`)];return new n(...o,t.join(`
|
|
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=Vr(s))}else n.pattern??(n.pattern=Vr());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=Gr,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(`
|
|
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
26
|
if (${ct}.issues.length) {
|
|
27
27
|
payload.issues = payload.issues.concat(${ct}.issues.map(iss => ({
|
|
28
28
|
...iss,
|
|
@@ -39,8 +39,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
39
39
|
newResult[${Qt}] = ${ct}.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=Gr,$=!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(!Gr(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(Jr(t))}}const Ib=()=>{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 zb(){return{localeError:Ib()}}const Nb=()=>{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 jb(){return{localeError:Nb()}}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 Tb=()=>{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 Ob(){return{localeError:Tb()}}const Eb=()=>{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 Pb(){return{localeError:Eb()}}const Ub=()=>{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 Cb(){return{localeError:Ub()}}const Db=()=>{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 Mb(){return{localeError:Db()}}const Lb=()=>{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 Ab(){return{localeError:Lb()}}const Zb=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},qb=()=>{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 ${Zb(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:qb()}}const Rb=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},Fb=()=>{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 ${Rb(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 Wb(){return{localeError:Fb()}}const Qb=()=>{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 Gb(){return{localeError:Qb()}}const Jb=()=>{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 Vb(){return{localeError:Jb()}}const Yb=()=>{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 Bb(){return{localeError:Yb()}}const Kb=()=>{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 Hb(){return{localeError:Kb()}}const Xb=()=>{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 ey(){return{localeError:Xb()}}const ty=()=>{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 ny(){return{localeError:ty()}}const ry=()=>{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 iy(){return{localeError:ry()}}const oy=()=>{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 ay(){return{localeError:oy()}}const sy=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},uy=()=>{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 ${sy(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 cy(){return{localeError:uy()}}const ly=()=>{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 dy(){return{localeError:ly()}}const fy=()=>{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 my(){return{localeError:fy()}}const py=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},gy=()=>{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}, მიღებული ${py(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 vy(){return{localeError:gy()}}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"អារេ (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:hy()}}function by(){return _f()}const yy=()=>{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 $y(){return{localeError:yy()}}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 ky=()=>{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 wy(){return{localeError:ky()}}const Sy=()=>{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 xy(){return{localeError:Sy()}}const Iy=()=>{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 zy(){return{localeError:Iy()}}const Ny=()=>{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 jy(){return{localeError:Ny()}}const Ty=()=>{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 Oy(){return{localeError:Ty()}}const Ey=()=>{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 Py(){return{localeError:Ey()}}const Uy=()=>{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 Cy(){return{localeError:Uy()}}const Dy=()=>{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 My(){return{localeError:Dy()}}const Ly=()=>{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 Ay(){return{localeError:Ly()}}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 Zy=()=>{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 qy(){return{localeError:Zy()}}const Ry=()=>{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 Fy(){return{localeError:Ry()}}const Wy=()=>{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 Qy(){return{localeError:Wy()}}const Gy=()=>{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 Jy(){return{localeError:Gy()}}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:"ช่วง 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 Yy(){return{localeError:Vy()}}const By=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},Ky=()=>{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 ${By(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 Hy(){return{localeError:Ky()}}const Xy=()=>{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:Xy()}}function e$(){return Sf()}const t$=()=>{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 n$(){return{localeError:t$()}}const r$=()=>{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 i$(){return{localeError:r$()}}const o$=()=>{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 a$(){return{localeError:o$()}}const s$=()=>{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 u$(){return{localeError:s$()}}const c$=()=>{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 l$(){return{localeError:c$()}}const xf=Object.freeze(Object.defineProperty({__proto__:null,ar:zb,az:jb,be:Ob,ca:Pb,cs:Cb,da:Mb,de:Ab,en:$f,eo:Wb,es:Gb,fa:Vb,fi:Bb,fr:Hb,frCA:ey,he:ny,hu:iy,id:ay,is:cy,it:dy,ja:my,ka:vy,kh:by,km:_f,ko:$y,lt:wy,mk:xy,ms:zy,nl:jy,no:Oy,ota:Py,pl:My,ps:Cy,pt:Ay,ru:qy,sl:Fy,sv:Qy,ta:Jy,th:Yy,tr:Hy,ua:e$,uk:Sf,ur:n$,vi:i$,yo:l$,zhCN:a$,zhTW:u$},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 Yr(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 d$(e,n,o){return new e({type:"union",options:n,...te(o)})}function f$(e,n,o,s){return new e({type:"union",options:o,discriminator:n,...te(s)})}function m$(e,n,o){return new e({type:"intersection",left:n,right:o})}function p$(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 g$(e,n,o,s){return new e({type:"record",keyType:n,valueType:o,...te(s)})}function v$(e,n,o,s){return new e({type:"map",keyType:n,valueType:o,...te(s)})}function h$(e,n,o){return new e({type:"set",valueType:n,...te(o)})}function b$(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 y$(e,n,o){return new e({type:"enum",entries:n,...te(o)})}function $$(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 k$(e,n){return new e({type:"optional",innerType:n})}function w$(e,n){return new e({type:"nullable",innerType:n})}function S$(e,n,o){return new e({type:"default",innerType:n,get defaultValue(){return typeof o=="function"?o():vo(o)}})}function x$(e,n,o){return new e({type:"nonoptional",innerType:n,...te(o)})}function I$(e,n){return new e({type:"success",innerType:n})}function z$(e,n,o){return new e({type:"catch",innerType:n,catchValue:typeof o=="function"?o:()=>o})}function N$(e,n,o){return new e({type:"pipe",in:n,out:o})}function j$(e,n){return new e({type:"readonly",innerType:n})}function T$(e,n,o){return new e({type:"template_literal",parts:n,...te(o)})}function O$(e,n){return new e({type:"lazy",getter:n})}function E$(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(Jr(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(Jr(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
|
+
`)}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>
|
|
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 P$=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:z$,_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:S$,_discriminatedUnion:f$,_e164:hs,_email:Xa,_emoji:is,_encode:Ta,_encodeAsync:Ea,_endsWith:xs,_enum:b$,_file:lm,_float32:Lf,_float64:Af,_gt:yr,_gte:an,_guid:xo,_includes:ws,_int:Mf,_int32:Zf,_int64:Gf,_intersection:m$,_ipv4:ds,_ipv6:fs,_isoDate:Ef,_isoDateTime:Of,_isoDuration:Uf,_isoTime:Pf,_jwt:bs,_ksuid:ls,_lazy:O$,_length:jo,_literal:$$,_lowercase:_s,_lt:br,_lte:Sn,_map:v$,_max:Sn,_maxLength:No,_maxSize:zo,_mime:Is,_min:an,_minLength:Yr,_minSize:Ci,_multipleOf:Ui,_nan:rm,_nanoid:os,_nativeEnum:y$,_negative:om,_never:Xf,_nonnegative:sm,_nonoptional:x$,_nonpositive:am,_normalize:zs,_null:Bf,_nullable:w$,_number:Cf,_optional:k$,_overwrite:$r,_parse:Si,_parseAsync:xi,_pipe:N$,_positive:im,_promise:E$,_property:um,_readonly:j$,_record:g$,_refine:fm,_regex:$s,_safeDecode:Ca,_safeDecodeAsync:Ma,_safeEncode:Ua,_safeEncodeAsync:Da,_safeParse:Ii,_safeParseAsync:zi,_set:h$,_size:ys,_startsWith:Ss,_string:Nf,_stringFormat:Di,_stringbool:gm,_success:I$,_superRefine:mm,_symbol:Vf,_templateLiteral:T$,_toLowerCase:js,_toUpperCase:Ts,_transform:_$,_trim:Ns,_tuple:p$,_uint32:qf,_uint64:Jf,_ulid:us,_undefined:Yf,_union:d$,_unknown:Hf,_uppercase:ks,_url:Io,_uuid:es,_uuidv4:ts,_uuidv6:ns,_uuidv7:rs,_void:em,_xid:cs,clone:mn,config:Wt,decode:lb,decodeAsync:fb,encode:cb,encodeAsync:db,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:pb,safeDecodeAsync:vb,safeEncode:mb,safeEncodeAsync:gb,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 U$=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}}})},C$=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(Yr(...s)),e.max=(...s)=>e.check(No(...s)),e.length=(...s)=>e.check(jo(...s)),e.nonempty=(...s)=>e.check(Yr(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 D$(e){return Xa(Ms,e)}const Oo=E("ZodGUID",(e,n)=>{Kl.init(e,n),ht.init(e,n)});function M$(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 L$(e){return ts(qn,e)}function A$(e){return ns(qn,e)}function Z$(e){return rs(qn,e)}const Eo=E("ZodURL",(e,n)=>{ed.init(e,n),ht.init(e,n)});function q$(e){return Io(Eo,e)}function R$(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 F$(e){return is(Ls,e)}const As=E("ZodNanoID",(e,n)=>{nd.init(e,n),ht.init(e,n)});function W$(e){return os(As,e)}const Zs=E("ZodCUID",(e,n)=>{rd.init(e,n),ht.init(e,n)});function Q$(e){return as(Zs,e)}const qs=E("ZodCUID2",(e,n)=>{id.init(e,n),ht.init(e,n)});function G$(e){return ss(qs,e)}const Rs=E("ZodULID",(e,n)=>{od.init(e,n),ht.init(e,n)});function J$(e){return us(Rs,e)}const Fs=E("ZodXID",(e,n)=>{ad.init(e,n),ht.init(e,n)});function V$(e){return cs(Fs,e)}const Ws=E("ZodKSUID",(e,n)=>{sd.init(e,n),ht.init(e,n)});function Y$(e){return ls(Ws,e)}const Qs=E("ZodIPv4",(e,n)=>{fd.init(e,n),ht.init(e,n)});function B$(e){return ds(Qs,e)}const Gs=E("ZodIPv6",(e,n)=>{md.init(e,n),ht.init(e,n)});function K$(e){return fs(Gs,e)}const Js=E("ZodCIDRv4",(e,n)=>{pd.init(e,n),ht.init(e,n)});function H$(e){return ms(Js,e)}const Vs=E("ZodCIDRv6",(e,n)=>{gd.init(e,n),ht.init(e,n)});function X$(e){return ps(Vs,e)}const Ys=E("ZodBase64",(e,n)=>{vd.init(e,n),ht.init(e,n)});function e_(e){return gs(Ys,e)}const Bs=E("ZodBase64URL",(e,n)=>{bd.init(e,n),ht.init(e,n)});function t_(e){return vs(Bs,e)}const Ks=E("ZodE164",(e,n)=>{yd.init(e,n),ht.init(e,n)});function n_(e){return hs(Ks,e)}const Hs=E("ZodJWT",(e,n)=>{_d.init(e,n),ht.init(e,n)});function r_(e){return bs(Hs,e)}const Mi=E("ZodCustomStringFormat",(e,n)=>{kd.init(e,n),ht.init(e,n)});function i_(e,n,o={}){return Di(Mi,e,n,o)}function o_(e){return Di(Mi,"hostname",Aa,e)}function a_(e){return Di(Mi,"hex",Nl,e)}function s_(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 Br=E("ZodNumberFormat",(e,n)=>{wd.init(e,n),Po.init(e,n)});function Xs(e){return Mf(Br,e)}function u_(e){return Lf(Br,e)}function c_(e){return Af(Br,e)}function l_(e){return Zf(Br,e)}function d_(e){return qf(Br,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 f_(e){return Wf(Co,e)}const eu=E("ZodBigIntFormat",(e,n)=>{Sd.init(e,n),Co.init(e,n)});function m_(e){return Gf(eu,e)}function p_(e){return Jf(eu,e)}const Cm=E("ZodSymbol",(e,n)=>{xd.init(e,n),Ve.init(e,n)});function g_(e){return Vf(Cm,e)}const Dm=E("ZodUndefined",(e,n)=>{Id.init(e,n),Ve.init(e,n)});function v_(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 h_(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(Yr(o,s)),e.nonempty=o=>e.check(Yr(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 b_(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 y_(e,n){return new Mo({type:"object",get shape(){return _n(this,"shape",go(e)),this.shape},catchall:tu(),...te(n)})}function $_(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 k_(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 w_(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 S_(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 x_(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(Jr(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(Jr(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 I_(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 z_(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 N_(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 j_(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 T_(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 O_(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 E_(e){const n=new kt({check:"custom"});return n._zod.check=e,n}function P_(e,n){return dm(Ro,e??(()=>!0),n)}function vp(e,n={}){return fm(Ro,e,n)}function hp(e){return mm(e)}function U_(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 C_=(...e)=>gm({Codec:lu,Boolean:Uo,String:To},...e);function D_(e){const n=du(()=>Rn([z(e),at(),Ke(),Lm(),lt(n),Pt(z(),n)]));return n}function M_(e,n){return Zo(au(e),n)}const L_={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 A_(e){Wt({customError:e})}function Z_(){return Wt().customError}var fu;fu||(fu={});function q_(e){return jf(To,e)}function R_(e){return Df(Po,e)}function F_(e){return Ff(Uo,e)}function W_(e){return Qf(Co,e)}function Q_(e){return nm(ru,e)}const G_=Object.freeze(Object.defineProperty({__proto__:null,bigint:W_,boolean:F_,date:Q_,number:R_,string:q_},Symbol.toStringTag,{value:"Module"}));Wt($f());const J_=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:C$,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:L_,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:Br,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:e_,base64url:t_,bigint:f_,boolean:Ke,catch:up,check:E_,cidrv4:H$,cidrv6:X$,clone:mn,codec:j_,coerce:G_,config:Wt,core:P$,cuid:Q$,cuid2:G$,custom:P_,date:h_,decode:zm,decodeAsync:jm,discriminatedUnion:Li,e164:n_,email:D$,emoji:F$,encode:Im,encodeAsync:Nm,endsWith:xs,enum:wt,file:x_,flattenError:Ia,float32:u_,float64:c_,formatError:za,function:qo,getErrorMap:Z_,globalRegistry:hr,gt:yr,gte:an,guid:M$,hash:s_,hex:a_,hostname:o_,httpUrl:R$,includes:ws,instanceof:U_,int:Xs,int32:l_,int64:m_,intersection:Gm,ipv4:B$,ipv6:K$,iso:U$,json:D_,jwt:r_,keyof:b_,ksuid:Y$,lazy:du,length:jo,literal:mt,locales:xf,looseObject:$_,lowercase:_s,lt:br,lte:Sn,map:k_,maxLength:No,maxSize:zo,mime:Is,minLength:Yr,minSize:Ci,multipleOf:Ui,nan:N_,nanoid:W$,nativeEnum:S_,negative:om,never:tu,nonnegative:sm,nonoptional:op,nonpositive:am,normalize:zs,null:Lm,nullable:Ao,nullish:I_,number:at,object:$e,optional:Lo,overwrite:$r,parse:km,parseAsync:wm,partialRecord:__,pipe:Zo,positive:im,prefault:ip,preprocess:M_,prettifyError:Jc,promise:O_,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:w_,setErrorMap:A_,size:ys,startsWith:Ss,strictObject:y_,string:z,stringFormat:i_,stringbool:C_,success:z_,superRefine:hp,symbol:g_,templateLiteral:T_,toJSONSchema:vm,toLowerCase:js,toUpperCase:Ts,transform:au,treeifyError:Qc,trim:Ns,tuple:Vm,uint32:d_,uint64:p_,ulid:J$,undefined:v_,union:Rn,unknown:_r,uppercase:ks,url:q$,util:Fc,uuid:Um,uuidv4:L$,uuidv6:A$,uuidv7:Z$,void:nu,xid:V$},Symbol.toStringTag,{value:"Module"}));var V_=Object.defineProperty,Fn=(e,n)=>V_(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"),Y_={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"),B_={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"),K_=wt(["equals","not_equals","contains","not_contains","greater_than","less_than","is_empty","is_not_empty"]).describe("Enumeration of all supported visibility condition operators"),H_={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:K_.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"]),X_={DRAFT:"D",PUBLISHED:"P",ARCHIVED:"A",SUSPENDED:"S"},wp=wt(["star","heart","thumbs-up","diamond","emoji","emoji-exp"]),ek={STAR:"star",HEART:"heart",THUMBS_UP:"thumbs_up",DIAMOND:"diamond",EMOJI:"emoji",EMOJI_EXP:"emoji_exp"},Sp=wt(["small","medium","large"]),tk={SMALL:"small",MEDIUM:"medium",LARGE:"large"},xp=wt(["radio","list","chip","dropdown"]),nk={RADIO:"radio",LIST:"list",CHIP:"chip",DROPDOWN:"dropdown"},Ip=wt(["checkbox","list","chip"]),rk={CHECKBOX:"checkbox",LIST:"list",CHIP:"chip"},zp=wt(["randomize","flip","rotate","ascending","none"]),ik={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"),ok={RECURRING:"R",ONE_TIME:"S"},qp=wt(["Y","N"]).describe("Yes/No enumeration using Y/N values"),ak={YES:"Y",NO:"N"},Rp=wt(["minutes","hours","days","weeks","months","years"]).describe("Time units for recurring feedback schedules"),sk={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"),uk={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"),ck=z().min(2).max(10).describe("Language code (e.g., 'en', 'es', 'hi')"),lk=Pt(ck,tg).describe("Question translations keyed by language code"),ng=Pt(z().uuid(),lk).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)"),dk={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"),fk={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"},mk=wt(["light","dark"]).describe("Available theme modes for the widget"),pk={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"),gk=$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"),vk={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"),hk=$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"),bk={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)"),yk=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"),$k=$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"),kk=$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"),wk=$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"),Sk=$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"),xk=$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 Kr(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)?Kr(d,n):d):t instanceof Uint8Array||t instanceof Date?t:typeof t=="object"?Kr(t,n):t}return o}Fn(Kr,"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 Kr(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 Kr(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 Kr(e,Tu)}Fn(Cg,"objectToPascal");var Dg=wt(["light","dark"]).describe("Current theme mode of the application"),Ik={LIGHT:"light",DARK:"dark"},zk=$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 Nk=Ah(Object.freeze(Object.defineProperty({__proto__:null,AnnotationMarkerSchema:Dp,AnnotationSchema:Mp,AnswerItemSchema:Lp,AnswerSchema:Ap,ChoiceOrderOptions:ik,CurrentModes:Ik,DeviceThemes:vk,DismissBehaviors:dk,EndFieldsTranslationSchema:yu,EndScreenFieldsSchema:hu,LanguageFieldSchema:_u,LanguagesSchema:Qo,MultipleChoiceDisplayStyles:nk,MultipleChoiceMultipleDisplayStyles:rk,OtherFieldsSchema:$u,OtherFieldsTranslationSchema:ku,Positions:fk,PublicationStatuses:uk,QuestionStatuses:X_,QuestionTypes:Y_,RatingDisplayStyles:ek,RatingRepresentationSizes:tk,RecurringUnits:sk,SurveyTypes:ok,ThemeModes:pk,TranslationProvider:ig,UserActions:bk,ValidationRuleTypes:B_,VisibilityConditionOperators:H_,WelcomeFieldsTranslationSchema:bu,WelcomeScreenFieldsSchema:vu,YesNoValues:ak,annotationQuestionSchema:jp,annotationQuestionTranslationSchema:eg,appPropsSchema:zk,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:hk,deviceThemeSchema:$g,dismissBehaviorSchema:ag,endScreenPropertiesSchema:Yo,externalPublishingPropertiesSchema:Wp,featureSettingsSchema:sg,feedbackConfigurationItemSchema:Ng,feedbackConfigurationSchema:Gp,feedbackRequestSchema:yk,fetchConfigurationListResponseSchema:wk,fetchConfigurationListSchema:$k,fetchFeedbackDetailsResponseSchema:kk,fetchFeedbackDetailsSchema:_k,fetchFormConfigSchema:jg,filterConditionSchema:Go,formConfigSchema:Ko,formConfigurationResponseSchema:Tg,formPropertiesSchema:gk,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:Sk,refineTextResponseSchema:xk,responseSchema:Sg,sectionSchema:Fo,sessionInfoSchema:qi,shortAnswerQuestionSchema:Pp,shortAnswerQuestionTranslationSchema:Kp,singleChoiceQuestionTranslationSchema:Vp,submitFeedbackSchema:zg,surveyTypeSchema:Zp,themeColorsSchema:Su,themeConfigurationSchema:Iu,themeModeSchema:mk,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:J_},Symbol.toStringTag,{value:"Module"})));var jk=_i.exports,Mg;function Tk(){return Mg||(Mg=1,(function(e,n){(function(o,s){s(n,Nk)})(jk,(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 Hr(){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,Xr=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,ei=65536,Ag=1<<17,Ek=1<<18,jr=1<<19,Zg=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,ti=8;function qg(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===ti){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 Rg(r){if(!r||r.nodeType!==ti)throw ra(),Pn;return r.data}function Fg(r){return r===this.v}function Wg(r,i){return r!=r?i==i:r!==i||r!==null&&typeof r=="object"||typeof r=="function"}function Qg(r){return!Wg(r,this.v)}let yt=null;function ni(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)pv(c)}return r!==void 0&&(i.x=r),yt=i.p,r??{}}function Qi(){return!t||yt!==null&&yt.l===null}let Er=[];function Gg(){var r=Er;Er=[],xr(r)}function Jn(r){if(Er.length===0&&!Gi){var i=Er;queueMicrotask(()=>{i===Er&&Gg()})}Er.push(r)}function Yk(){for(;Er.length>0;)Gg()}const Bk=new WeakMap;function Jg(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&&Vg(r),r;i.b.error(r)}else ri(r,i)}function ri(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&&Vg(r),r}function Vg(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,Bg(u),Bg(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)si(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),si(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(),Yg(),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;Kg(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??=Hr()).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;Yg()}}finally{Gi=i}}function Yg(){var r=ai;Zu=!0;try{var i=0;for($v(!0);Dn.length>0;){var u=In.ensure();if(i++>1e3){var c,f;Kk()}u.process(Dn),or.clear()}}finally{Zu=!1,$v(r),sa=null}}function Kk(){try{Ak()}catch(r){ri(r,sa)}}let Pr=null;function Bg(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=[],si(c),c.deps===null&&c.first===null&&c.nodes_start===null&&(c.teardown===null&&c.ac===null?hv(c):c.fn=null),Pr?.length>0)){or.clear();for(const f of Pr)si(f);Pr=[]}}Pr=null}}function Kg(r){if(r.reactions!==null)for(const i of r.reactions){const u=i.f;(u&zt)!==0?Kg(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=ei|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&&ii(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===ti&&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),ni(this.#i.ctx);try{return i()}catch(m){return Jg(m),null}finally{hn(u),nn(c),ni(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){ri(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 ri(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 Hg(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&&ri(b,m)}v&&Gt(!1),f?.deactivate(),Xg()}).catch(g=>{ri(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),ni(u),c?.activate(),f&&(Gt(!0),At(m))}}function Xg(){hn(null),nn(null),ni(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:Fg,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=Hr();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,ii(m,N)):((m.f&Tr)!==0&&(m.f^=Tr),ii(m,k)),p&&(c.update_pending_count(-1),h||b.decrement()),Xg()};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 kv(i),i}function ft(r){const i=Ji(r);return i.equals=Qg,i}function ev(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{ev(r),i=zv(r)}finally{hn(u)}return i}function tv(r){var i=qu(r);if(r.equals(i)||(r.v=i,r.wv=xv()),!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:Fg,rv:0,wv:0};return u}function sr(r,i){const u=ar(r);return kv(u),u}function X(r,i=!1,u=!0){const c=ar(r);return i||(c.equals=Qg),t&&u&&yt!==null&&yt.l!==null&&(yt.l.s??=[]).push(c),c}function nv(r,i){return _(r,U(()=>l(r))),i}function _(r,i,u=!1){nt!==null&&(!jn||(nt.f&Ag)!==0)&&Qi()&&(nt.f&(zt|zr|na|Ag))!==0&&!Yn?.includes(r)&&Wk();let c=u?oi(i):i;return ii(r,c)}function ii(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=xv(),iv(r,un),Qi()&&Je!==null&&(Je.f&Lt)!==0&&(Je.f&(Qn|ir))===0&&(bn===null?yw([r]):bn.push(r))}return i}function rv(r,i=1){var u=l(r),c=i===1?u++:u--;return _(r,u),c}function Vi(r){_(r,r.v+1)}function iv(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?iv(p,Gn):g&&((v&zr)!==0&&Pr!==null&&Pr.push(p),Ur(p))}}}function oi(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),Sv(m);var h=v();return nn(g),Sv(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=oi(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?oi(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,oi(b)),u.set(g,I));else{k=I.v!==Tt;var q=p(()=>oi(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 ov(r){try{if(r!==null&&typeof r=="object"&&Cn in r)return r[Cn]}catch{}return r}function sw(r,i){return Object.is(ov(r),ov(i))}var av,sv,uv,cv;function Ru(){if(av===void 0){av=window,sv=/Firefox/.test(navigator.userAgent);var r=Element.prototype,i=Node.prototype,u=Text.prototype;uv=pn(i,"firstChild").get,cv=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 uv.call(r)}function Mn(r){return cv.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 lv=!1;function dv(){lv||(lv=!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 fv(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),dv()}function mv(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{si(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(Xr,null,!1);return Rt(i,Lt),i.teardown=r,i}function Wu(r){mv();var i=Je.f,u=!nt&&(i&Qn)!==0&&(i&Cu)===0;if(u){var c=yt;(c.e??=[]).push(r)}else return pv(r)}function pv(r){return Nn(Ir|Zg,r,!1)}function mw(r){return mv(),Nn(Xr|Zg,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)&&si(u),i.ran=!1}})}function vw(r){return Nn(na|jr,r,!0)}function Cr(r,i=0){return Nn(Xr|i,r,!0)}function we(r,i=[],u=[]){Hg(i,u,c=>{Nn(Xr,()=>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 gv(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 vv(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),vv(r,i&&!u),da(r,0),Rt(r,Nr);var c=r.transitions;if(c!==null)for(const m of c)m.stop();gv(r);var f=r.parent;f!==null&&f.first!==null&&hv(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 hv(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),bv(u,()=>{Mt(r),i&&i()})}function bv(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&ei)!==0||(c.f&Qn)!==0;Gu(c,i,m?u:!1),c=f}}}function la(r){yv(r,!0)}function yv(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&ei)!==0||(u.f&Qn)!==0;yv(u,f?i:!1),u=c}if(r.transitions!==null)for(const m of r.transitions)(m.is_global||i)&&m.in()}}let ai=!1;function $v(r){ai=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 kv(r){nt!==null&&(Yn===null?Yn=[r]:Yn.push(r))}let Jt=null,cn=0,bn=null;function yw(r){bn=r}let wv=1,Yi=0,Ar=Yi;function Sv(r){Ar=r}let ur=!1;function xv(){return++wv}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)&&tv(m),m.wv>r.wv)return!0}(!c||Je!==null&&!ur)&&Rt(r,Lt)}return!1}function Iv(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?Iv(m,i,!1):i===m&&(u?Rt(m,un):(m.f&Lt)!==0&&Rt(m,Gn),Ur(m))}}function zv(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||!ai||nt===null),nt=(h&(Qn|ir))===0?r:null,Yn=null,ni(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++)Iv(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 Jg(q)}finally{r.f^=Du,Jt=i,cn=u,bn=c,nt=f,ur=m,Yn=p,ni(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),ev(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 si(r){var i=r.f;if((i&Nr)===0){Rt(r,Lt);var u=Je,c=ai;Je=r,ai=!0;try{(i&zr)!==0?hw(r):vv(r),gv(r);var f=zv(r);r.teardown=typeof f=="function"?f:null,r.wv=wv;var m;Ri&&a&&(r.f&un)!==0&&r.deps}finally{ai=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||Nv(p))&&(g=qu(p)),or.set(p,g),g}}else u&&(p=r,Bi(p)&&tv(p));if((r.f&Tr)!==0)throw r.v;return r.v}function Nv(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&&Nv(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 jv=new Set,Vu=new Set;function Tv(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=Tv(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++)jv.add(r[i]);for(var u of Vu)u(r)}let Ov=null;function Ki(r){var i=this,u=i.ownerDocument,c=r.type,f=r.composedPath?.()||[],m=f[0]||r.target;Ov=r;var p=0,v=Ov===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 Ev(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=Ev(m?r:"<!>"+r),u||(f=zn(f)));var p=c||sv?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=Ev(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 Pv(r,i){return Uv(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!==ti||m.data!==ot);)m=Mn(m);if(!m)throw Pn;Gt(!0),At(m);const p=Uv(r,{...i,anchor:m});return Gt(!1),p}catch(p){if(p instanceof Error&&p.message.split(`
|
|
45
|
-
`).some(v=>v.startsWith("https://svelte.dev/e/")))throw p;return p!==Pn&&console.warn("Failed to hydrate: ",p),i.recover===!1&&Zk(),Ru(),Fu(u),Gt(!1),
|
|
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||Av.includes(c[p-1]))&&(v===c.length||Av.includes(c[v]))?c=(p===0?"":c.substring(0,p))+c.substring(v+1):p=v}}return c===""?null:c}function Zv(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+=Zv(c)),f&&(u+=Zv(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 ci(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(qv(c));return}for(c of r.options){var f=qv(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 qv(r){return"__value"in r?r.__value:r.value}const Hi=Symbol("class"),Xi=Symbol("style"),Rv=Symbol("is custom element"),Fv=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),dv()}}function Wv(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 Qv(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"&&Jv(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[Rv],h=!g[Fv];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=Jv(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"){ci(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]=Tv(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){Hg(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??={[Rv]:r.nodeName.includes("-"),[Fv]:r.namespaceURI===Xo}}var Gv=new Map;function Jv(r){var i=r.getAttribute("is")||r.nodeName,u=Gv.get(i);if(u)return u;Gv.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;fv(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){fv(r,"change",()=>{u(r.files)}),qe&&r.files&&u(r.files),Cr(()=>{r.files=i()})}function Vv(r,i){return r===i||r?.[Cn]===i}function li(r={},i,u,c){return Qu(()=>{var f,m;return Cr(()=>{f=m,m=[],U(()=>{r!==u(...m)&&(i(r,...m),f&&Vv(u(...f),r)&&i(null,...f))})}),()=>{Jn(()=>{m&&Vv(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(()=>{Yv(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(()=>{Yv(i,c),xr(u.a)})}function Yv(r,i){if(r.l.s)for(const u of r.l.s)l(u);i()}function Bv(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 di=[];function Vw(r,i=Ut){let u=null;const c=new Set;function f(v){if(Wg(r,v)&&(r=v,u)){const g=!di.length;for(const b of c)b[1](),di.push(b,r);if(g){for(let b=0;b<di.length;b+=2)di[b][0](di[b+1]);di.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 Bv(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=Bv(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),rv(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),rv(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?oi(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:Pv)(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 Kv;typeof HTMLElement=="function"&&(Kv=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 Hv(r,i,u,c,f,m){let p=class extends Kv{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 Xv(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 eh(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 th(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 nh(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 rh(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 ih(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}]}})},fi=(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:[]}))},oh=r=>{Tn.update(i=>({...i,questionsData:r}))},ah=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=>{eh(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(),sh(m,i)||U0(f)},getConflictingClassGroupIds:(f,m)=>{const p=u[f]||[];return m&&c[f]?[...p,...c[f]]:p}}},sh=(r,i)=>{if(r.length===0)return i.classGroupId;const u=r[0],c=i.nextPart.get(u),f=c?sh(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},uh=/^\[(.+)\]$/,U0=r=>{if(uh.test(r)){const i=uh.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:ch(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,ch(i,m),u,c)})})},ch=(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=lh(i))&&(c&&(c+=" "),c+=u);return c}const lh=r=>{if(typeof r=="string")return r;let i,u="";for(let c=0;c<r.length;c++)r[c]&&(i=lh(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},dh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fh=/^\((?:(\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)\(.+\)$/,mi=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),mh=()=>!1,eS=r=>B0.test(r),tS=r=>K0.test(r),nS=r=>!Te(r)&&!Oe(r),rS=r=>pi(r,bh,mh),Te=r=>dh.test(r),Rr=r=>pi(r,yh,X0),vc=r=>pi(r,uS,He),ph=r=>pi(r,vh,mh),iS=r=>pi(r,hh,tS),ha=r=>pi(r,$h,eS),Oe=r=>fh.test(r),to=r=>gi(r,yh),oS=r=>gi(r,cS),gh=r=>gi(r,vh),aS=r=>gi(r,bh),sS=r=>gi(r,hh),ba=r=>gi(r,$h,!0),pi=(r,i,u)=>{const c=dh.exec(r);return c?c[1]?i(c[1]):u(c[2]):!1},gi=(r,i,u=!1)=>{const c=fh.exec(r);return c?c[1]?i(c[1]):u:!1},vh=r=>r==="position"||r==="percentage",hh=r=>r==="image"||r==="url",bh=r=>r==="length"||r==="size"||r==="bg-size",yh=r=>r==="length",uS=r=>r==="number",cS=r=>r==="family-name",$h=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=()=>[mi,"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=()=>[mi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],y=()=>[r,Oe,Te],w=()=>[...G(),gh,ph,{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,gh,ph],Ge=()=>["","none",j,Oe,Te],ke=()=>["none",He,Oe,Te],ge=()=>["none",He,Oe,Te],De=()=>[He,Oe,Te],Re=()=>[mi,"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",mi,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:[mi,"full","auto",v,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[He,mi,"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),kh=pc(hc);function ro(...r){return kh(Lv(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)]),li(p,v=>u(v),()=>u()),rc(p,c),Z(r,p),jt()}function wh(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 Sh(r,i,u){let c=r;i(c);const f=setInterval(()=>{c--,i(c),c<=0&&(clearInterval(f),u())},1e3);return f}function xh(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 Ih(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 Ih({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}=wh(ne.message);D==="1001"&&ee!==void 0&&O(ee),_(p,xh(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&&fi(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=Sh(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),fi(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);rh(it,{size:16}),T(Me);var en=ye(Me,2);{var En=tr=>{var Wr=xS(),$n=et(Wr);{var vi=Zt=>{var vt=wS(),Ot=P(vt);Ot.__click=[_S,ee,ce];var so=P(Ot);th(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(vi)})}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);Xv(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),li(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),li(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 Ih({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}=wh(ne.message);D==="1001"&&ee!==void 0&&O(ee),_(f,xh(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&&fi(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=Sh(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),fi(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);rh(it,{size:16}),T(Me);var en=ye(Me,2);{var En=tr=>{var Wr=QS(),$n=et(Wr);{var vi=Zt=>{var vt=FS(),Ot=P(vt);Ot.__click=[qS,ee,J];var so=P(Ot);th(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(vi)})}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);Xv(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))),Wv(y,(l(F),U(()=>l(F).value))),Qv(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)))),ci(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&&fi(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=>{eh(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))),Wv(de,(l(oe),U(()=>l(oe).value))),Qv(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&&fi(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);nh(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);nh(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);ih(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()),oh),()=>{f()&&Object.keys(f()).length>0&&oh(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(ah),l(Ae),U(()=>ah(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 vi=dt(),oo=et(vi);{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 Ch=dt(),ZI=et(Ch);{var qI=hi=>{Sx(hi,Ft(()=>l(bt),{get question(){return l(Ee)}}))},RI=hi=>{var Dh=dt(),FI=et(Dh);{var WI=bi=>{Zx(bi,Ft(()=>l(bt),{get question(){return l(Ee)}}))},QI=bi=>{var Mh=dt(),GI=et(Mh);{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(bi,Mh)};ue(FI,bi=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.MULTIPLE_CHOICE_MULTIPLE)?bi(WI):bi(QI,!1)},!0)}Z(hi,Dh)};ue(ZI,hi=>{S(l(Ee)),S(s.QuestionTypes),U(()=>l(Ee).type===s.QuestionTypes.RATING)?hi(qI):hi(RI,!1)},!0)}Z(Zn,Ch)};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,vi)};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},zh=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},Nh=(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},jh=(r,i)=>{for(let u=0;u<r.length;u++){let c=r[u];Array.isArray(c)?jh(c,i):c&&i.push(c)}},Th=(...r)=>{let i=[];jh(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]=Th(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:Nh({...f?.slots},rn(q)?{base:u?.base}:q),K=rn(f?.compoundVariants)?v:Th(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=zh(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:zh(oe),Se=y[de||"false"];return typeof le=="object"&&typeof W=="string"&&le[W]?Nh(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)?kh: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 Oh=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(Oh({variant:u(),size:c()}),i.class)]);var j=P(N);Cv(j,()=>i.children??Ut),T(N),li(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(Oh({variant:u(),size:c()}),i.class)]);var j=P(N);Cv(j,()=>i.children??Ut),T(N),li(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(()=>ci(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 Eh(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")||nv(D,l(D).style.transition="height 0.5s cubic-bezier(0.4, 0, 0.2, 1)"),nv(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(()=>ci(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);ih(de,{size:20,stroke:2}),T(le),we(()=>ci(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),li(C,oe=>_(D,oe),()=>l(D)),we(oe=>ci(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 Ph(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 Eh(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",Hv(Ph,{themeMode:{},feedbackConfiguration:{},apiKey:{},hostUrl:{},deviceInfo:{},sessionId:{},userInfo:{},language:{},configurationData:{},onClose:{},trackPopupHeight:{},feedbackConfigId:{},identifier:{}},[],[],!0));var MI=H('<link rel="stylesheet"/> <!>',1);function Uh(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",Hv(Uh,{theme:{},currentMode:{},currentLanguage:{},questions:{},questionLanguages:{},otherConfigurationProperties:{},welcomeScreenProperties:{},endScreenProperties:{},translations:{},sections:{},themeSettings:{},onClose:{},onSectionChange:{},apiKey:{},hostUrl:{},feedbackConfigId:{},identifier:{},cssLink:{}},[],[],!0));const LI=Ph,AI=Uh;o.App=$c,o.EncatchAppElement=AI,o.EncatchFormElement=LI,o.PopupUi=Eh,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}))})(_i,_i.exports)),_i.exports}var Ok=Tk();const Lg=Lh({__proto__:null},[Ok]);fr.EncatchPreview=Wh,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 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(v=>v.startsWith("https://svelte.dev/e/")))throw p;return p!==Pn&&console.warn("Failed to hydrate: ",p),i.recover===!1&&Zk(),Ru(),Fu(u),Gt(!1),Ev(r,i)}finally{Gt(c),At(f)}}const si=new Map;function Pv(r,{target:i,anchor:u,props:c={},events:f,context:m,intro:p=!0}){Ru();var v=new Set,g=I=>{for(var k=0;k<I.length;k++){var N=I[k];if(!v.has(N)){v.add(N);var j=Ow(N);i.addEventListener(N,Ki,{passive:j});var q=si.get(N);q===void 0?(document.addEventListener(N,Ki,{passive:j}),si.set(N,1)):si.set(N,q+1)}}};g(wr(Nv)),Vu.add(g);var b=void 0,h=gw(()=>{var I=u??i.appendChild(Vn());return ew(I,{pending:()=>{}},k=>{if(m){Nt({});var N=yt;N.c=m}if(f&&(c.$$events=f),qe&&Kn(k,null),b=r(k,c)||{},qe&&(Je.nodes_end=Xe,Xe===null||Xe.nodeType!==ei||Xe.data!==Qt))throw ra(),Pn;m&&jt()}),()=>{for(var k of v){i.removeEventListener(k,Ki);var N=si.get(k);--N===0?(document.removeEventListener(k,Ki),si.delete(k)):si.set(k,N)}Vu.delete(g),I!==u&&I.parentNode?.removeChild(I)}});return Bu.set(b,h),b}let Bu=new WeakMap;function Cw(r,i){const u=Bu.get(r);return u?(Bu.delete(r),u(i)):Promise.resolve()}function Uv(r,i,...u){var c=r,f=Ut,m;Dr(()=>{f!==(f=i())&&(m&&(Mt(m),m=null),m=qt(()=>f(c,...u)))},Xr),qe&&(c=Xe)}function Zr(r){yt===null&&Zg(),t&&yt.l!==null?Dw(yt).m.push(r):Wu(()=>{const i=U(r);if(typeof i=="function")return i})}function fa(r){yt===null&&Zg(),Zr(()=>()=>U(r))}function Dw(r){var i=r.l;return i.u??={a:[],b:[],m:[]}}function ue(r,i,u=!1){qe&&Or();var c=r,f=null,m=null,p=Tt,v=u?Xr:0,g=!1;const b=(k,N=!0)=>{g=!0,I(N,k)};function h(){var k=p?f:m,N=p?m:f;k&&la(k),N&&Mr(N,()=>{p?m=null:f=null})}const I=(k,N)=>{if(p===(p=k))return;let j=!1;if(qe){const K=qg(c)===ct;!!p===K&&(c=ia(),At(c),Gt(!1),j=!0)}var q=uw(),O=c;p?f??=N&&qt(()=>N(O)):m??=N&&qt(()=>N(O)),q||h(),j&&Gt(!0)};Dr(()=>{g=!1,i(b),g||I(null,null)},v),qe&&(c=Xe)}function yn(r,i){return i}function Mw(r,i,u){for(var c=r.items,f=[],m=i.length,p=0;p<m;p++)Gu(i[p].e,f,!0);var v=m>0&&f.length===0&&u!==null;if(v){var g=u.parentNode;Fu(g),g.append(u),c.clear(),Ln(r,i[0].prev,i[m-1].next)}hv(f,()=>{for(var b=0;b<m;b++){var h=i[b];v||(c.delete(h.k),Ln(r,h.prev,h.next)),Mt(h.e,!v)}})}function ln(r,i,u,c,f,m=null){var p=r,v={flags:i,items:new Map,first:null},g=(i&B)!==0;if(g){var b=r;p=qe?At(zn(b)):b.appendChild(Vn())}qe&&Or();var h=null,I=!1,k=new Map,N=ft(()=>{var K=u();return kr(K)?K:K==null?[]:wr(K)}),j,q;function O(){Lw(q,j,v,k,p,f,i,c,u),m!==null&&(j.length===0?h?la(h):h=qt(()=>m(p)):h!==null&&Mr(h,()=>{h=null}))}Dr(()=>{q??=Je,j=l(N);var K=j.length;if(I&&K===0)return;I=K===0;let ne=!1;if(qe){var D=qg(p)===ct;D!==(K===0)&&(p=ia(),At(p),Gt(!1),ne=!0)}if(qe){for(var G=null,ee,V=0;V<K;V++){if(Xe.nodeType===ei&&Xe.data===Qt){p=Xe,ne=!0,Gt(!1);break}var ie=j[V],L=c(ie,V);ee=Cv(Xe,v,G,null,ie,L,V,f,i,u),v.items.set(L,ee),G=ee}K>0&&At(ia())}qe?K===0&&m&&(h=qt(()=>m(p))):O(),ne&&Gt(!0),l(N)}),qe&&(p=Xe)}function Lw(r,i,u,c,f,m,p,v,g){var b=(p&me)!==0,h=(p&($|A))!==0,I=i.length,k=u.items,N=u.first,j=N,q,O=null,K,ne=[],D=[],G,ee,V,ie;if(b)for(ie=0;ie<I;ie+=1)G=i[ie],ee=v(G,ie),V=k.get(ee),V!==void 0&&(V.a?.measure(),(K??=new Set).add(V));for(ie=0;ie<I;ie+=1){if(G=i[ie],ee=v(G,ie),V=k.get(ee),V===void 0){var L=c.get(ee);if(L!==void 0){c.delete(ee),k.set(ee,L);var Ue=O?O.next:j;Ln(u,O,L),Ln(u,L,Ue),Ku(L,Ue,f),O=L}else{var Pe=j?j.e.nodes_start:f;O=Cv(Pe,u,O,O===null?u.first:O.next,G,ee,ie,m,p,g)}k.set(ee,O),ne=[],D=[],j=O.next;continue}if(h&&Aw(V,G,ie,p),(V.e.f&xn)!==0&&(la(V.e),b&&(V.a?.unfix(),(K??=new Set).delete(V))),V!==j){if(q!==void 0&&q.has(V)){if(ne.length<D.length){var Be=D[0],_e;O=Be.prev;var xe=ne[0],re=ne[ne.length-1];for(_e=0;_e<ne.length;_e+=1)Ku(ne[_e],Be,f);for(_e=0;_e<D.length;_e+=1)q.delete(D[_e]);Ln(u,xe.prev,re.next),Ln(u,O,xe),Ln(u,re,Be),j=Be,O=re,ie-=1,ne=[],D=[]}else q.delete(V),Ku(V,j,f),Ln(u,V.prev,V.next),Ln(u,V,O===null?u.first:O.next),Ln(u,O,V),O=V;continue}for(ne=[],D=[];j!==null&&j.k!==ee;)(j.e.f&xn)===0&&(q??=new Set).add(j),D.push(j),j=j.next;if(j===null)continue;V=j}ne.push(V),O=V,j=V.next}if(j!==null||q!==void 0){for(var F=q===void 0?[]:wr(q);j!==null;)(j.e.f&xn)===0&&F.push(j),j=j.next;var W=F.length;if(W>0){var C=(p&B)!==0&&I===0?f:null;if(b){for(ie=0;ie<W;ie+=1)F[ie].a?.measure();for(ie=0;ie<W;ie+=1)F[ie].a?.fix()}Mw(u,F,C)}}b&&Jn(()=>{if(K!==void 0)for(V of K)V.a?.apply()}),r.first=u.first&&u.first.e,r.last=O&&O.e;for(var y of c.values())Mt(y.e);c.clear()}function Aw(r,i,u,c){(c&$)!==0&&ri(r.v,i),(c&A)!==0?ri(r.i,u):r.i=u}function Cv(r,i,u,c,f,m,p,v,g,b,h){var I=(g&$)!==0,k=(g&ae)===0,N=I?k?X(f,!1,!1):ar(f):f,j=(g&A)===0?p:ar(p),q={i:j,v:N,k:m,a:null,e:null,prev:u,next:c};try{if(r===null){var O=document.createDocumentFragment();O.append(r=Vn())}return q.e=qt(()=>v(r,N,j,b),qe),q.e.prev=u&&u.e,q.e.next=c&&c.e,u===null?h||(i.first=q):(u.next=q,u.e.next=q.e),c!==null&&(c.prev=q,c.e.prev=q.e),q}finally{}}function Ku(r,i,u){for(var c=r.next?r.next.e.nodes_start:u,f=i?i.e.nodes_start:u,m=r.e.nodes_start;m!==null&&m!==c;){var p=Mn(m);f.before(m),m=p}}function Ln(r,i,u){i===null?r.first=u:(i.next=u,i.e.next=u&&u.e),u!==null&&(u.prev=i,u.e.prev=i&&i.e)}function Hn(r,i,u,c,f){qe&&Or();var m=i.$$slots?.[u],p=!1;m===!0&&(m=i.children,p=!0),m===void 0||m(r,p?()=>c:c)}function Zw(r,i,u,c,f,m){let p=qe;qe&&Or();var v,g,b=null;qe&&Xe.nodeType===Uk&&(b=Xe,Or());var h=qe?Xe:r,I;Dr(()=>{const k=i()||null;var N=Ou;k!==v&&(I&&(k===null?Mr(I,()=>{I=null,g=null}):k===g?la(I):Mt(I)),k&&k!==g&&(I=qt(()=>{if(b=qe?b:document.createElementNS(N,k),Kn(b,b),c){qe&&Pw(k)&&b.append(document.createComment(""));var j=qe?zn(b):b.appendChild(Vn());qe&&(j===null?Gt(!1):At(j)),c(b,j)}Je.nodes_end=b,h.before(b)})),v=k,v&&(g=v))},Xr),p&&(Gt(!0),At(h))}function qw(r,i){var u=void 0,c;Dr(()=>{u!==(u=i())&&(c&&(Mt(c),c=null),u&&(c=qt(()=>{Qu(()=>u(r))})))})}function Dv(r){var i,u,c="";if(typeof r=="string"||typeof r=="number")c+=r;else if(typeof r=="object")if(Array.isArray(r)){var f=r.length;for(i=0;i<f;i++)r[i]&&(u=Dv(r[i]))&&(c&&(c+=" "),c+=u)}else for(u in r)r[u]&&(c&&(c+=" "),c+=u);return c}function Mv(){for(var r,i,u=0,c="",f=arguments.length;u<f;u++)(r=arguments[u])&&(i=Dv(r))&&(c&&(c+=" "),c+=i);return c}function Hu(r){return typeof r=="object"?Mv(r):r??""}const Lv=[...`
|
|
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"})}));
|