@ensembleapp/client-sdk 0.0.37 → 0.0.38
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/index.js +41 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/widget/widget.global.d.ts +0 -26
- package/dist/widget/widget.global.js +0 -210
- package/dist/widget/widget.global.js.map +0 -1
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
/* Chat Widget - Embeddable chat widget */
|
|
2
|
-
"use strict";var ChatWidgetBundle=(()=>{var SO=Object.create;var gd=Object.defineProperty;var wO=Object.getOwnPropertyDescriptor;var IO=Object.getOwnPropertyNames;var _O=Object.getPrototypeOf,kO=Object.prototype.hasOwnProperty;var Fs=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,a)=>(typeof require<"u"?require:t)[a]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var Jt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hr=(e,t)=>{for(var a in t)gd(e,a,{get:t[a],enumerable:!0})},Ik=(e,t,a,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of IO(t))!kO.call(e,r)&&r!==a&&gd(e,r,{get:()=>t[r],enumerable:!(n=wO(t,r))||n.enumerable});return e};var pe=(e,t,a)=>(a=e!=null?SO(_O(e)):{},Ik(t||!e||!e.__esModule?gd(a,"default",{value:e,enumerable:!0}):a,e)),CO=e=>Ik(gd({},"__esModule",{value:!0}),e);var zk=Jt(pt=>{"use strict";function Ph(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,r=e[n];if(0<vd(r,t))e[n]=t,e[a]=r,a=n;else break e}}function Ar(e){return e.length===0?null:e[0]}function xd(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,r=e.length,o=r>>>1;n<o;){var i=2*(n+1)-1,l=e[i],s=i+1,u=e[s];if(0>vd(l,a))s<r&&0>vd(u,l)?(e[n]=u,e[s]=a,n=s):(e[n]=l,e[i]=a,n=i);else if(s<r&&0>vd(u,a))e[n]=u,e[s]=a,n=s;else break e}}return t}function vd(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}pt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(_k=performance,pt.unstable_now=function(){return _k.now()}):(Dh=Date,kk=Dh.now(),pt.unstable_now=function(){return Dh.now()-kk});var _k,Dh,kk,Kr=[],Dn=[],LO=1,Ja=null,ra=3,Uh=!1,qs=!1,Zs=!1,Nh=!1,Tk=typeof setTimeout=="function"?setTimeout:null,Ak=typeof clearTimeout=="function"?clearTimeout:null,Ck=typeof setImmediate<"u"?setImmediate:null;function yd(e){for(var t=Ar(Dn);t!==null;){if(t.callback===null)xd(Dn);else if(t.startTime<=e)xd(Dn),t.sortIndex=t.expirationTime,Ph(Kr,t);else break;t=Ar(Dn)}}function jh(e){if(Zs=!1,yd(e),!qs)if(Ar(Kr)!==null)qs=!0,Ui||(Ui=!0,Pi());else{var t=Ar(Dn);t!==null&&Bh(jh,t.startTime-e)}}var Ui=!1,Hs=-1,Ek=5,$k=-1;function Mk(){return Nh?!0:!(pt.unstable_now()-$k<Ek)}function Oh(){if(Nh=!1,Ui){var e=pt.unstable_now();$k=e;var t=!0;try{e:{qs=!1,Zs&&(Zs=!1,Ak(Hs),Hs=-1),Uh=!0;var a=ra;try{t:{for(yd(e),Ja=Ar(Kr);Ja!==null&&!(Ja.expirationTime>e&&Mk());){var n=Ja.callback;if(typeof n=="function"){Ja.callback=null,ra=Ja.priorityLevel;var r=n(Ja.expirationTime<=e);if(e=pt.unstable_now(),typeof r=="function"){Ja.callback=r,yd(e),t=!0;break t}Ja===Ar(Kr)&&xd(Kr),yd(e)}else xd(Kr);Ja=Ar(Kr)}if(Ja!==null)t=!0;else{var o=Ar(Dn);o!==null&&Bh(jh,o.startTime-e),t=!1}}break e}finally{Ja=null,ra=a,Uh=!1}t=void 0}}finally{t?Pi():Ui=!1}}}var Pi;typeof Ck=="function"?Pi=function(){Ck(Oh)}:typeof MessageChannel<"u"?(Rh=new MessageChannel,Lk=Rh.port2,Rh.port1.onmessage=Oh,Pi=function(){Lk.postMessage(null)}):Pi=function(){Tk(Oh,0)};var Rh,Lk;function Bh(e,t){Hs=Tk(function(){e(pt.unstable_now())},t)}pt.unstable_IdlePriority=5;pt.unstable_ImmediatePriority=1;pt.unstable_LowPriority=4;pt.unstable_NormalPriority=3;pt.unstable_Profiling=null;pt.unstable_UserBlockingPriority=2;pt.unstable_cancelCallback=function(e){e.callback=null};pt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ek=0<e?Math.floor(1e3/e):5};pt.unstable_getCurrentPriorityLevel=function(){return ra};pt.unstable_next=function(e){switch(ra){case 1:case 2:case 3:var t=3;break;default:t=ra}var a=ra;ra=t;try{return e()}finally{ra=a}};pt.unstable_requestPaint=function(){Nh=!0};pt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=ra;ra=e;try{return t()}finally{ra=a}};pt.unstable_scheduleCallback=function(e,t,a){var n=pt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,e){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3}return r=a+r,e={id:LO++,callback:t,priorityLevel:e,startTime:a,expirationTime:r,sortIndex:-1},a>n?(e.sortIndex=a,Ph(Dn,e),Ar(Kr)===null&&e===Ar(Dn)&&(Zs?(Ak(Hs),Hs=-1):Zs=!0,Bh(jh,a-n))):(e.sortIndex=r,Ph(Kr,e),qs||Uh||(qs=!0,Ui||(Ui=!0,Pi()))),e};pt.unstable_shouldYield=Mk;pt.unstable_wrapCallback=function(e){var t=ra;return function(){var a=ra;ra=t;try{return e.apply(this,arguments)}finally{ra=a}}}});var Ok=Jt((xZ,Dk)=>{"use strict";Dk.exports=zk()});var Vk=Jt(ye=>{"use strict";var Zh=Symbol.for("react.transitional.element"),TO=Symbol.for("react.portal"),AO=Symbol.for("react.fragment"),EO=Symbol.for("react.strict_mode"),$O=Symbol.for("react.profiler"),MO=Symbol.for("react.consumer"),zO=Symbol.for("react.context"),DO=Symbol.for("react.forward_ref"),OO=Symbol.for("react.suspense"),RO=Symbol.for("react.memo"),jk=Symbol.for("react.lazy"),PO=Symbol.for("react.activity"),Rk=Symbol.iterator;function UO(e){return e===null||typeof e!="object"?null:(e=Rk&&e[Rk]||e["@@iterator"],typeof e=="function"?e:null)}var Bk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fk=Object.assign,qk={};function ji(e,t,a){this.props=e,this.context=t,this.refs=qk,this.updater=a||Bk}ji.prototype.isReactComponent={};ji.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ji.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Zk(){}Zk.prototype=ji.prototype;function Hh(e,t,a){this.props=e,this.context=t,this.refs=qk,this.updater=a||Bk}var Vh=Hh.prototype=new Zk;Vh.constructor=Hh;Fk(Vh,ji.prototype);Vh.isPureReactComponent=!0;var Pk=Array.isArray;function qh(){}var ot={H:null,A:null,T:null,S:null},Hk=Object.prototype.hasOwnProperty;function Gh(e,t,a){var n=a.ref;return{$$typeof:Zh,type:e,key:t,ref:n!==void 0?n:null,props:a}}function NO(e,t){return Gh(e.type,t,e.props)}function Wh(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zh}function jO(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var Uk=/\/+/g;function Fh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?jO(""+e.key):t.toString(36)}function BO(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(qh,qh):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Ni(e,t,a,n,r){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Zh:case TO:i=!0;break;case jk:return i=e._init,Ni(i(e._payload),t,a,n,r)}}if(i)return r=r(e),i=n===""?"."+Fh(e,0):n,Pk(r)?(a="",i!=null&&(a=i.replace(Uk,"$&/")+"/"),Ni(r,t,a,"",function(u){return u})):r!=null&&(Wh(r)&&(r=NO(r,a+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(Uk,"$&/")+"/")+i)),t.push(r)),1;i=0;var l=n===""?".":n+":";if(Pk(e))for(var s=0;s<e.length;s++)n=e[s],o=l+Fh(n,s),i+=Ni(n,t,a,o,r);else if(s=UO(e),typeof s=="function")for(e=s.call(e),s=0;!(n=e.next()).done;)n=n.value,o=l+Fh(n,s++),i+=Ni(n,t,a,o,r);else if(o==="object"){if(typeof e.then=="function")return Ni(BO(e),t,a,n,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function bd(e,t,a){if(e==null)return e;var n=[],r=0;return Ni(e,n,"","",function(o){return t.call(a,o,r++)}),n}function FO(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Nk=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},qO={map:bd,forEach:function(e,t,a){bd(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return bd(e,function(){t++}),t},toArray:function(e){return bd(e,function(t){return t})||[]},only:function(e){if(!Wh(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ye.Activity=PO;ye.Children=qO;ye.Component=ji;ye.Fragment=AO;ye.Profiler=$O;ye.PureComponent=Hh;ye.StrictMode=EO;ye.Suspense=OO;ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ot;ye.__COMPILER_RUNTIME={__proto__:null,c:function(e){return ot.H.useMemoCache(e)}};ye.cache=function(e){return function(){return e.apply(null,arguments)}};ye.cacheSignal=function(){return null};ye.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var n=Fk({},e.props),r=e.key;if(t!=null)for(o in t.key!==void 0&&(r=""+t.key),t)!Hk.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(n[o]=t[o]);var o=arguments.length-2;if(o===1)n.children=a;else if(1<o){for(var i=Array(o),l=0;l<o;l++)i[l]=arguments[l+2];n.children=i}return Gh(e.type,r,n)};ye.createContext=function(e){return e={$$typeof:zO,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:MO,_context:e},e};ye.createElement=function(e,t,a){var n,r={},o=null;if(t!=null)for(n in t.key!==void 0&&(o=""+t.key),t)Hk.call(t,n)&&n!=="key"&&n!=="__self"&&n!=="__source"&&(r[n]=t[n]);var i=arguments.length-2;if(i===1)r.children=a;else if(1<i){for(var l=Array(i),s=0;s<i;s++)l[s]=arguments[s+2];r.children=l}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)r[n]===void 0&&(r[n]=i[n]);return Gh(e,o,r)};ye.createRef=function(){return{current:null}};ye.forwardRef=function(e){return{$$typeof:DO,render:e}};ye.isValidElement=Wh;ye.lazy=function(e){return{$$typeof:jk,_payload:{_status:-1,_result:e},_init:FO}};ye.memo=function(e,t){return{$$typeof:RO,type:e,compare:t===void 0?null:t}};ye.startTransition=function(e){var t=ot.T,a={};ot.T=a;try{var n=e(),r=ot.S;r!==null&&r(a,n),typeof n=="object"&&n!==null&&typeof n.then=="function"&&n.then(qh,Nk)}catch(o){Nk(o)}finally{t!==null&&a.types!==null&&(t.types=a.types),ot.T=t}};ye.unstable_useCacheRefresh=function(){return ot.H.useCacheRefresh()};ye.use=function(e){return ot.H.use(e)};ye.useActionState=function(e,t,a){return ot.H.useActionState(e,t,a)};ye.useCallback=function(e,t){return ot.H.useCallback(e,t)};ye.useContext=function(e){return ot.H.useContext(e)};ye.useDebugValue=function(){};ye.useDeferredValue=function(e,t){return ot.H.useDeferredValue(e,t)};ye.useEffect=function(e,t){return ot.H.useEffect(e,t)};ye.useEffectEvent=function(e){return ot.H.useEffectEvent(e)};ye.useId=function(){return ot.H.useId()};ye.useImperativeHandle=function(e,t,a){return ot.H.useImperativeHandle(e,t,a)};ye.useInsertionEffect=function(e,t){return ot.H.useInsertionEffect(e,t)};ye.useLayoutEffect=function(e,t){return ot.H.useLayoutEffect(e,t)};ye.useMemo=function(e,t){return ot.H.useMemo(e,t)};ye.useOptimistic=function(e,t){return ot.H.useOptimistic(e,t)};ye.useReducer=function(e,t,a){return ot.H.useReducer(e,t,a)};ye.useRef=function(e){return ot.H.useRef(e)};ye.useState=function(e){return ot.H.useState(e)};ye.useSyncExternalStore=function(e,t,a){return ot.H.useSyncExternalStore(e,t,a)};ye.useTransition=function(){return ot.H.useTransition()};ye.version="19.2.4"});var Ct=Jt((SZ,Gk)=>{"use strict";Gk.exports=Vk()});var Jk=Jt(ua=>{"use strict";var ZO=Ct();function Wk(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function On(){}var sa={d:{f:On,r:function(){throw Error(Wk(522))},D:On,C:On,L:On,m:On,X:On,S:On,M:On},p:0,findDOMNode:null},HO=Symbol.for("react.portal");function VO(e,t,a){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:HO,key:n==null?null:""+n,children:e,containerInfo:t,implementation:a}}var Vs=ZO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Sd(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ua.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=sa;ua.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Wk(299));return VO(e,t,null,a)};ua.flushSync=function(e){var t=Vs.T,a=sa.p;try{if(Vs.T=null,sa.p=2,e)return e()}finally{Vs.T=t,sa.p=a,sa.d.f()}};ua.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,sa.d.C(e,t))};ua.prefetchDNS=function(e){typeof e=="string"&&sa.d.D(e)};ua.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,n=Sd(a,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?sa.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:n,integrity:r,fetchPriority:o}):a==="script"&&sa.d.X(e,{crossOrigin:n,integrity:r,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ua.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Sd(t.as,t.crossOrigin);sa.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&sa.d.M(e)};ua.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,n=Sd(a,t.crossOrigin);sa.d.L(e,a,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ua.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Sd(t.as,t.crossOrigin);sa.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else sa.d.m(e)};ua.requestFormReset=function(e){sa.d.r(e)};ua.unstable_batchedUpdates=function(e,t){return e(t)};ua.useFormState=function(e,t,a){return Vs.H.useFormState(e,t,a)};ua.useFormStatus=function(){return Vs.H.useHostTransitionStatus()};ua.version="19.2.4"});var Yk=Jt((IZ,Kk)=>{"use strict";function Xk(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Xk)}catch(e){console.error(e)}}Xk(),Kk.exports=Jk()});var cT=Jt(Gf=>{"use strict";var Ut=Ok(),_C=Ct(),GO=Yk();function N(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function kC(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mu(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function CC(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function LC(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Qk(e){if(Mu(e)!==e)throw Error(N(188))}function WO(e){var t=e.alternate;if(!t){if(t=Mu(e),t===null)throw Error(N(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var o=r.alternate;if(o===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===o.child){for(o=r.child;o;){if(o===a)return Qk(r),e;if(o===n)return Qk(r),t;o=o.sibling}throw Error(N(188))}if(a.return!==n.return)a=r,n=o;else{for(var i=!1,l=r.child;l;){if(l===a){i=!0,a=r,n=o;break}if(l===n){i=!0,n=r,a=o;break}l=l.sibling}if(!i){for(l=o.child;l;){if(l===a){i=!0,a=o,n=r;break}if(l===n){i=!0,n=o,a=r;break}l=l.sibling}if(!i)throw Error(N(189))}}if(a.alternate!==n)throw Error(N(190))}if(a.tag!==3)throw Error(N(188));return a.stateNode.current===a?e:t}function TC(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=TC(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,JO=Symbol.for("react.element"),wd=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),Vi=Symbol.for("react.fragment"),AC=Symbol.for("react.strict_mode"),Tg=Symbol.for("react.profiler"),EC=Symbol.for("react.consumer"),on=Symbol.for("react.context"),Iv=Symbol.for("react.forward_ref"),Ag=Symbol.for("react.suspense"),Eg=Symbol.for("react.suspense_list"),_v=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),$g=Symbol.for("react.activity"),XO=Symbol.for("react.memo_cache_sentinel"),e0=Symbol.iterator;function Gs(e){return e===null||typeof e!="object"?null:(e=e0&&e[e0]||e["@@iterator"],typeof e=="function"?e:null)}var KO=Symbol.for("react.client.reference");function Mg(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===KO?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vi:return"Fragment";case Tg:return"Profiler";case AC:return"StrictMode";case Ag:return"Suspense";case Eg:return"SuspenseList";case $g:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case eu:return"Portal";case on:return e.displayName||"Context";case EC:return(e._context.displayName||"Context")+".Consumer";case Iv:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _v:return t=e.displayName||null,t!==null?t:Mg(e.type)||"Memo";case Rn:t=e._payload,e=e._init;try{return Mg(e(t))}catch{}}return null}var tu=Array.isArray,ge=_C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be=GO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qo={pending:!1,data:null,method:null,action:null},zg=[],Gi=-1;function Dr(e){return{current:e}}function Ht(e){0>Gi||(e.current=zg[Gi],zg[Gi]=null,Gi--)}function nt(e,t){Gi++,zg[Gi]=e.current,e.current=t}var zr=Dr(null),yu=Dr(null),Gn=Dr(null),tf=Dr(null);function af(e,t){switch(nt(Gn,t),nt(yu,e),nt(zr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lC(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lC(t),e=XL(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ht(zr),nt(zr,e)}function dl(){Ht(zr),Ht(yu),Ht(Gn)}function Dg(e){e.memoizedState!==null&&nt(tf,e);var t=zr.current,a=XL(t,e.type);t!==a&&(nt(yu,e),nt(zr,a))}function rf(e){yu.current===e&&(Ht(zr),Ht(yu)),tf.current===e&&(Ht(tf),Au._currentValue=qo)}var Jh,t0;function No(e){if(Jh===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Jh=t&&t[1]||"",t0=-1<a.stack.indexOf(`
|
|
3
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+Jh+e+t0}var Xh=!1;function Kh(e,t){if(!e||Xh)return"";Xh=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var f=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){f=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){f=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&f&&typeof p.stack=="string")return[p.stack,f.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=n.DetermineComponentFrameRoot(),i=o[0],l=o[1];if(i&&l){var s=i.split(`
|
|
5
|
-
`),u=l.split(`
|
|
6
|
-
`);for(r=n=0;n<s.length&&!s[n].includes("DetermineComponentFrameRoot");)n++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(n===s.length||r===u.length)for(n=s.length-1,r=u.length-1;1<=n&&0<=r&&s[n]!==u[r];)r--;for(;1<=n&&0<=r;n--,r--)if(s[n]!==u[r]){if(n!==1||r!==1)do if(n--,r--,0>r||s[n]!==u[r]){var c=`
|
|
7
|
-
`+s[n].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=n&&0<=r);break}}}finally{Xh=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?No(a):""}function YO(e,t){switch(e.tag){case 26:case 27:case 5:return No(e.type);case 16:return No("Lazy");case 13:return e.child!==t&&t!==null?No("Suspense Fallback"):No("Suspense");case 19:return No("SuspenseList");case 0:case 15:return Kh(e.type,!1);case 11:return Kh(e.type.render,!1);case 1:return Kh(e.type,!0);case 31:return No("Activity");default:return""}}function a0(e){try{var t="",a=null;do t+=YO(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
8
|
-
Error generating stack: `+n.message+`
|
|
9
|
-
`+n.stack}}var Og=Object.prototype.hasOwnProperty,kv=Ut.unstable_scheduleCallback,Yh=Ut.unstable_cancelCallback,QO=Ut.unstable_shouldYield,eR=Ut.unstable_requestPaint,Oa=Ut.unstable_now,tR=Ut.unstable_getCurrentPriorityLevel,$C=Ut.unstable_ImmediatePriority,MC=Ut.unstable_UserBlockingPriority,nf=Ut.unstable_NormalPriority,aR=Ut.unstable_LowPriority,zC=Ut.unstable_IdlePriority,rR=Ut.log,nR=Ut.unstable_setDisableYieldValue,zu=null,Ra=null;function Fn(e){if(typeof rR=="function"&&nR(e),Ra&&typeof Ra.setStrictMode=="function")try{Ra.setStrictMode(zu,e)}catch{}}var Pa=Math.clz32?Math.clz32:lR,oR=Math.log,iR=Math.LN2;function lR(e){return e>>>=0,e===0?32:31-(oR(e)/iR|0)|0}var Id=256,_d=262144,kd=4194304;function jo(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function $f(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=n&134217727;return l!==0?(n=l&~o,n!==0?r=jo(n):(i&=l,i!==0?r=jo(i):a||(a=l&~e,a!==0&&(r=jo(a))))):(l=n&~o,l!==0?r=jo(l):i!==0?r=jo(i):a||(a=n&~e,a!==0&&(r=jo(a)))),r===0?0:t!==0&&t!==r&&(t&o)===0&&(o=r&-r,a=t&-t,o>=a||o===32&&(a&4194048)!==0)?t:r}function Du(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sR(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function DC(){var e=kd;return kd<<=1,(kd&62914560)===0&&(kd=4194304),e}function Qh(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ou(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uR(e,t,a,n,r,o){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(a=i&~a;0<a;){var c=31-Pa(a),d=1<<c;l[c]=0,s[c]=-1;var f=u[c];if(f!==null)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];p!==null&&(p.lane&=-536870913)}a&=~d}n!==0&&OC(e,n,0),o!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=o&~(i&~t))}function OC(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-Pa(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function RC(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-Pa(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function PC(e,t){var a=t&-t;return a=(a&42)!==0?1:Cv(a),(a&(e.suspendedLanes|t))!==0?0:a}function Cv(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Lv(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function UC(){var e=Be.p;return e!==0?e:(e=window.event,e===void 0?32:lT(e.type))}function r0(e,t){var a=Be.p;try{return Be.p=e,t()}finally{Be.p=a}}var io=Math.random().toString(36).slice(2),Kt="__reactFiber$"+io,wa="__reactProps$"+io,wl="__reactContainer$"+io,Rg="__reactEvents$"+io,cR="__reactListeners$"+io,dR="__reactHandles$"+io,n0="__reactResources$"+io,Ru="__reactMarker$"+io;function Tv(e){delete e[Kt],delete e[wa],delete e[Rg],delete e[cR],delete e[dR]}function Wi(e){var t=e[Kt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[wl]||a[Kt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=fC(e);e!==null;){if(a=e[Kt])return a;e=fC(e)}return t}e=a,a=e.parentNode}return null}function Il(e){if(e=e[Kt]||e[wl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function au(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(N(33))}function nl(e){var t=e[n0];return t||(t=e[n0]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Zt(e){e[Ru]=!0}var NC=new Set,jC={};function Qo(e,t){fl(e,t),fl(e+"Capture",t)}function fl(e,t){for(jC[e]=t,e=0;e<t.length;e++)NC.add(t[e])}var fR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),o0={},i0={};function pR(e){return Og.call(i0,e)?!0:Og.call(o0,e)?!1:fR.test(e)?i0[e]=!0:(o0[e]=!0,!1)}function jd(e,t,a){if(pR(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Cd(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Yr(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function Ka(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function BC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mR(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){a=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pg(e){if(!e._valueTracker){var t=BC(e)?"checked":"value";e._valueTracker=mR(e,t,""+e[t])}}function FC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=BC(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function of(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hR=/[\n"\\]/g;function er(e){return e.replace(hR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ug(e,t,a,n,r,o,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ka(t)):e.value!==""+Ka(t)&&(e.value=""+Ka(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?Ng(e,i,Ka(t)):a!=null?Ng(e,i,Ka(a)):n!=null&&e.removeAttribute("value"),r==null&&o!=null&&(e.defaultChecked=!!o),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Ka(l):e.removeAttribute("name")}function qC(e,t,a,n,r,o,i,l){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||a!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Pg(e);return}a=a!=null?""+Ka(a):"",t=t!=null?""+Ka(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),Pg(e)}function Ng(e,t,a){t==="number"&&of(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ol(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+Ka(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function ZC(e,t,a){if(t!=null&&(t=""+Ka(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ka(a):""}function HC(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(N(92));if(tu(n)){if(1<n.length)throw Error(N(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=Ka(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),Pg(e)}function pl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var gR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function l0(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||gR.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function VC(e,t,a){if(t!=null&&typeof t!="object")throw Error(N(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&l0(e,r,n)}else for(var o in t)t.hasOwnProperty(o)&&l0(e,o,t[o])}function Av(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Bd(e){return yR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ln(){}var jg=null;function Ev(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ji=null,il=null;function s0(e){var t=Il(e);if(t&&(e=t.stateNode)){var a=e[wa]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ug(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+er(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[wa]||null;if(!r)throw Error(N(90));Ug(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&FC(n)}break e;case"textarea":ZC(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ol(e,!!a.multiple,t,!1)}}}var eg=!1;function GC(e,t,a){if(eg)return e(t,a);eg=!0;try{var n=e(t);return n}finally{if(eg=!1,(Ji!==null||il!==null)&&(qf(),Ji&&(t=Ji,e=il,il=Ji=null,s0(t),e)))for(t=0;t<e.length;t++)s0(e[t])}}function xu(e,t){var a=e.stateNode;if(a===null)return null;var n=a[wa]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(N(231,t,typeof a));return a}var fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bg=!1;if(fn)try{Bi={},Object.defineProperty(Bi,"passive",{get:function(){Bg=!0}}),window.addEventListener("test",Bi,Bi),window.removeEventListener("test",Bi,Bi)}catch{Bg=!1}var Bi,qn=null,$v=null,Fd=null;function WC(){if(Fd)return Fd;var e,t=$v,a=t.length,n,r="value"in qn?qn.value:qn.textContent,o=r.length;for(e=0;e<a&&t[e]===r[e];e++);var i=a-e;for(n=1;n<=i&&t[a-n]===r[o-n];n++);return Fd=r.slice(e,1<n?1-n:void 0)}function qd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ld(){return!0}function u0(){return!1}function Ia(e){function t(a,n,r,o,i){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Ld:u0,this.isPropagationStopped=u0,this}return st(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Ld)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Ld)},persist:function(){},isPersistent:Ld}),t}var ei={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Mf=Ia(ei),Pu=st({},ei,{view:0,detail:0}),xR=Ia(Pu),tg,ag,Ws,zf=st({},Pu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mv,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ws&&(Ws&&e.type==="mousemove"?(tg=e.screenX-Ws.screenX,ag=e.screenY-Ws.screenY):ag=tg=0,Ws=e),tg)},movementY:function(e){return"movementY"in e?e.movementY:ag}}),c0=Ia(zf),bR=st({},zf,{dataTransfer:0}),SR=Ia(bR),wR=st({},Pu,{relatedTarget:0}),rg=Ia(wR),IR=st({},ei,{animationName:0,elapsedTime:0,pseudoElement:0}),_R=Ia(IR),kR=st({},ei,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CR=Ia(kR),LR=st({},ei,{data:0}),d0=Ia(LR),TR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ER={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $R(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ER[e])?!!t[e]:!1}function Mv(){return $R}var MR=st({},Pu,{key:function(e){if(e.key){var t=TR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mv,charCode:function(e){return e.type==="keypress"?qd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zR=Ia(MR),DR=st({},zf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),f0=Ia(DR),OR=st({},Pu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mv}),RR=Ia(OR),PR=st({},ei,{propertyName:0,elapsedTime:0,pseudoElement:0}),UR=Ia(PR),NR=st({},zf,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),jR=Ia(NR),BR=st({},ei,{newState:0,oldState:0}),FR=Ia(BR),qR=[9,13,27,32],zv=fn&&"CompositionEvent"in window,ou=null;fn&&"documentMode"in document&&(ou=document.documentMode);var ZR=fn&&"TextEvent"in window&&!ou,JC=fn&&(!zv||ou&&8<ou&&11>=ou),p0=" ",m0=!1;function XC(e,t){switch(e){case"keyup":return qR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function KC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xi=!1;function HR(e,t){switch(e){case"compositionend":return KC(t);case"keypress":return t.which!==32?null:(m0=!0,p0);case"textInput":return e=t.data,e===p0&&m0?null:e;default:return null}}function VR(e,t){if(Xi)return e==="compositionend"||!zv&&XC(e,t)?(e=WC(),Fd=$v=qn=null,Xi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return JC&&t.locale!=="ko"?null:t.data;default:return null}}var GR={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function h0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!GR[e.type]:t==="textarea"}function YC(e,t,a,n){Ji?il?il.push(n):il=[n]:Ji=n,t=_f(t,"onChange"),0<t.length&&(a=new Mf("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var iu=null,bu=null;function WR(e){GL(e,0)}function Df(e){var t=au(e);if(FC(t))return e}function g0(e,t){if(e==="change")return t}var QC=!1;fn&&(fn?(Ad="oninput"in document,Ad||(ng=document.createElement("div"),ng.setAttribute("oninput","return;"),Ad=typeof ng.oninput=="function"),Td=Ad):Td=!1,QC=Td&&(!document.documentMode||9<document.documentMode));var Td,Ad,ng;function v0(){iu&&(iu.detachEvent("onpropertychange",e1),bu=iu=null)}function e1(e){if(e.propertyName==="value"&&Df(bu)){var t=[];YC(t,bu,e,Ev(e)),GC(WR,t)}}function JR(e,t,a){e==="focusin"?(v0(),iu=t,bu=a,iu.attachEvent("onpropertychange",e1)):e==="focusout"&&v0()}function XR(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Df(bu)}function KR(e,t){if(e==="click")return Df(t)}function YR(e,t){if(e==="input"||e==="change")return Df(t)}function QR(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Na=typeof Object.is=="function"?Object.is:QR;function Su(e,t){if(Na(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Og.call(t,r)||!Na(e[r],t[r]))return!1}return!0}function y0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function x0(e,t){var a=y0(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=y0(a)}}function t1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?t1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function a1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=of(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=of(e.document)}return t}function Dv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var e4=fn&&"documentMode"in document&&11>=document.documentMode,Ki=null,Fg=null,lu=null,qg=!1;function b0(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;qg||Ki==null||Ki!==of(n)||(n=Ki,"selectionStart"in n&&Dv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),lu&&Su(lu,n)||(lu=n,n=_f(Fg,"onSelect"),0<n.length&&(t=new Mf("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Ki)))}function Uo(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Yi={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionrun:Uo("Transition","TransitionRun"),transitionstart:Uo("Transition","TransitionStart"),transitioncancel:Uo("Transition","TransitionCancel"),transitionend:Uo("Transition","TransitionEnd")},og={},r1={};fn&&(r1=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function ti(e){if(og[e])return og[e];if(!Yi[e])return e;var t=Yi[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in r1)return og[e]=t[a];return e}var n1=ti("animationend"),o1=ti("animationiteration"),i1=ti("animationstart"),t4=ti("transitionrun"),a4=ti("transitionstart"),r4=ti("transitioncancel"),l1=ti("transitionend"),s1=new Map,Zg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Zg.push("scrollEnd");function xr(e,t){s1.set(e,t),Qo(t,[e])}var lf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xa=[],Qi=0,Ov=0;function Of(){for(var e=Qi,t=Ov=Qi=0;t<e;){var a=Xa[t];Xa[t++]=null;var n=Xa[t];Xa[t++]=null;var r=Xa[t];Xa[t++]=null;var o=Xa[t];if(Xa[t++]=null,n!==null&&r!==null){var i=n.pending;i===null?r.next=r:(r.next=i.next,i.next=r),n.pending=r}o!==0&&u1(a,r,o)}}function Rf(e,t,a,n){Xa[Qi++]=e,Xa[Qi++]=t,Xa[Qi++]=a,Xa[Qi++]=n,Ov|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Rv(e,t,a,n){return Rf(e,t,a,n),sf(e)}function ai(e,t){return Rf(e,null,null,t),sf(e)}function u1(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,o=e.return;o!==null;)o.childLanes|=a,n=o.alternate,n!==null&&(n.childLanes|=a),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(r=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,r&&t!==null&&(r=31-Pa(a),e=o.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),o):null}function sf(e){if(50<gu)throw gu=0,dv=null,Error(N(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var el={};function n4(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function za(e,t,a,n){return new n4(e,t,a,n)}function Pv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var a=e.alternate;return a===null?(a=za(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function c1(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zd(e,t,a,n,r,o){var i=0;if(n=e,typeof e=="function")Pv(e)&&(i=1);else if(typeof e=="string")i=lP(e,a,zr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case $g:return e=za(31,a,t,r),e.elementType=$g,e.lanes=o,e;case Vi:return Zo(a.children,r,o,t);case AC:i=8,r|=24;break;case Tg:return e=za(12,a,t,r|2),e.elementType=Tg,e.lanes=o,e;case Ag:return e=za(13,a,t,r),e.elementType=Ag,e.lanes=o,e;case Eg:return e=za(19,a,t,r),e.elementType=Eg,e.lanes=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case on:i=10;break e;case EC:i=9;break e;case Iv:i=11;break e;case _v:i=14;break e;case Rn:i=16,n=null;break e}i=29,a=Error(N(130,e===null?"null":typeof e,"")),n=null}return t=za(i,a,t,r),t.elementType=e,t.type=n,t.lanes=o,t}function Zo(e,t,a,n){return e=za(7,e,n,t),e.lanes=a,e}function ig(e,t,a){return e=za(6,e,null,t),e.lanes=a,e}function d1(e){var t=za(18,null,null,0);return t.stateNode=e,t}function lg(e,t,a){return t=za(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var S0=new WeakMap;function tr(e,t){if(typeof e=="object"&&e!==null){var a=S0.get(e);return a!==void 0?a:(t={value:e,source:t,stack:a0(t)},S0.set(e,t),t)}return{value:e,source:t,stack:a0(t)}}var tl=[],al=0,uf=null,wu=0,Ya=[],Qa=0,ao=null,Er=1,$r="";function rn(e,t){tl[al++]=wu,tl[al++]=uf,uf=e,wu=t}function f1(e,t,a){Ya[Qa++]=Er,Ya[Qa++]=$r,Ya[Qa++]=ao,ao=e;var n=Er;e=$r;var r=32-Pa(n)-1;n&=~(1<<r),a+=1;var o=32-Pa(t)+r;if(30<o){var i=r-r%5;o=(n&(1<<i)-1).toString(32),n>>=i,r-=i,Er=1<<32-Pa(t)+r|a<<r|n,$r=o+e}else Er=1<<o|a<<r|n,$r=e}function Uv(e){e.return!==null&&(rn(e,1),f1(e,1,0))}function Nv(e){for(;e===uf;)uf=tl[--al],tl[al]=null,wu=tl[--al],tl[al]=null;for(;e===ao;)ao=Ya[--Qa],Ya[Qa]=null,$r=Ya[--Qa],Ya[Qa]=null,Er=Ya[--Qa],Ya[Qa]=null}function p1(e,t){Ya[Qa++]=Er,Ya[Qa++]=$r,Ya[Qa++]=ao,Er=t.id,$r=t.overflow,ao=e}var Yt=null,lt=null,Re=!1,Wn=null,ar=!1,Hg=Error(N(519));function ro(e){var t=Error(N(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Iu(tr(t,e)),Hg}function w0(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Kt]=e,t[wa]=n,a){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(a=0;a<Lu.length;a++)Ee(Lu[a],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),qC(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),HC(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||JL(t.textContent,a)?(n.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),n.onScroll!=null&&Ee("scroll",t),n.onScrollEnd!=null&&Ee("scrollend",t),n.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||ro(e,!0)}function I0(e){for(Yt=e.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:ar=!1;return;case 27:case 3:ar=!0;return;default:Yt=Yt.return}}function Fi(e){if(e!==Yt)return!1;if(!Re)return I0(e),Re=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||gv(e.type,e.memoizedProps)),a=!a),a&<&&ro(e),I0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));lt=dC(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));lt=dC(e)}else t===27?(t=lt,lo(e.type)?(e=bv,bv=null,lt=e):lt=t):lt=Yt?nr(e.stateNode.nextSibling):null;return!0}function Wo(){lt=Yt=null,Re=!1}function sg(){var e=Wn;return e!==null&&(ba===null?ba=e:ba.push.apply(ba,e),Wn=null),e}function Iu(e){Wn===null?Wn=[e]:Wn.push(e)}var Vg=Dr(null),ri=null,sn=null;function Un(e,t,a){nt(Vg,t._currentValue),t._currentValue=a}function cn(e){e._currentValue=Vg.current,Ht(Vg)}function Gg(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Wg(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var o=r.dependencies;if(o!==null){var i=r.child;o=o.firstContext;e:for(;o!==null;){var l=o;o=r;for(var s=0;s<t.length;s++)if(l.context===t[s]){o.lanes|=a,l=o.alternate,l!==null&&(l.lanes|=a),Gg(o.return,a,e),n||(i=null);break e}o=l.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(N(341));i.lanes|=a,o=i.alternate,o!==null&&(o.lanes|=a),Gg(i,a,e),i=null}else i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function _l(e,t,a,n){e=null;for(var r=t,o=!1;r!==null;){if(!o){if((r.flags&524288)!==0)o=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(N(387));if(i=i.memoizedProps,i!==null){var l=r.type;Na(r.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(r===tf.current){if(i=r.alternate,i===null)throw Error(N(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Au):e=[Au])}r=r.return}e!==null&&Wg(t,e,a,n),t.flags|=262144}function cf(e){for(e=e.firstContext;e!==null;){if(!Na(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Jo(e){ri=e,sn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qt(e){return m1(ri,e)}function Ed(e,t){return ri===null&&Jo(e),m1(e,t)}function m1(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},sn===null){if(e===null)throw Error(N(308));sn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sn=sn.next=t;return a}var o4=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},i4=Ut.unstable_scheduleCallback,l4=Ut.unstable_NormalPriority,Dt={$$typeof:on,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function jv(){return{controller:new o4,data:new Map,refCount:0}}function Uu(e){e.refCount--,e.refCount===0&&i4(l4,function(){e.controller.abort()})}var su=null,Jg=0,ml=0,ll=null;function s4(e,t){if(su===null){var a=su=[];Jg=0,ml=dy(),ll={status:"pending",value:void 0,then:function(n){a.push(n)}}}return Jg++,t.then(_0,_0),t}function _0(){if(--Jg===0&&su!==null){ll!==null&&(ll.status="fulfilled");var e=su;su=null,ml=0,ll=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function u4(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var k0=ge.S;ge.S=function(e,t){TL=Oa(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&s4(e,t),k0!==null&&k0(e,t)};var Ho=Dr(null);function Bv(){var e=Ho.current;return e!==null?e:at.pooledCache}function Hd(e,t){t===null?nt(Ho,Ho.current):nt(Ho,t.pool)}function h1(){var e=Bv();return e===null?null:{parent:Dt._currentValue,pool:e}}var kl=Error(N(460)),Fv=Error(N(474)),Pf=Error(N(542)),df={then:function(){}};function C0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function g1(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ln,ln),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,T0(e),e;default:if(typeof t.status=="string")t.then(ln,ln);else{if(e=at,e!==null&&100<e.shellSuspendCounter)throw Error(N(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,T0(e),e}throw Vo=t,kl}}function Bo(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Vo=a,kl):a}}var Vo=null;function L0(){if(Vo===null)throw Error(N(459));var e=Vo;return Vo=null,e}function T0(e){if(e===kl||e===Pf)throw Error(N(483))}var sl=null,_u=0;function $d(e){var t=_u;return _u+=1,sl===null&&(sl=[]),g1(sl,e,t)}function Js(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Md(e,t){throw t.$$typeof===JO?Error(N(525)):(e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function v1(e){function t(h,y){if(e){var g=h.deletions;g===null?(h.deletions=[y],h.flags|=16):g.push(y)}}function a(h,y){if(!e)return null;for(;y!==null;)t(h,y),y=y.sibling;return null}function n(h){for(var y=new Map;h!==null;)h.key!==null?y.set(h.key,h):y.set(h.index,h),h=h.sibling;return y}function r(h,y){return h=un(h,y),h.index=0,h.sibling=null,h}function o(h,y,g){return h.index=g,e?(g=h.alternate,g!==null?(g=g.index,g<y?(h.flags|=67108866,y):g):(h.flags|=67108866,y)):(h.flags|=1048576,y)}function i(h){return e&&h.alternate===null&&(h.flags|=67108866),h}function l(h,y,g,b){return y===null||y.tag!==6?(y=ig(g,h.mode,b),y.return=h,y):(y=r(y,g),y.return=h,y)}function s(h,y,g,b){var L=g.type;return L===Vi?c(h,y,g.props.children,b,g.key):y!==null&&(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Rn&&Bo(L)===y.type)?(y=r(y,g.props),Js(y,g),y.return=h,y):(y=Zd(g.type,g.key,g.props,null,h.mode,b),Js(y,g),y.return=h,y)}function u(h,y,g,b){return y===null||y.tag!==4||y.stateNode.containerInfo!==g.containerInfo||y.stateNode.implementation!==g.implementation?(y=lg(g,h.mode,b),y.return=h,y):(y=r(y,g.children||[]),y.return=h,y)}function c(h,y,g,b,L){return y===null||y.tag!==7?(y=Zo(g,h.mode,b,L),y.return=h,y):(y=r(y,g),y.return=h,y)}function d(h,y,g){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=ig(""+y,h.mode,g),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case wd:return g=Zd(y.type,y.key,y.props,null,h.mode,g),Js(g,y),g.return=h,g;case eu:return y=lg(y,h.mode,g),y.return=h,y;case Rn:return y=Bo(y),d(h,y,g)}if(tu(y)||Gs(y))return y=Zo(y,h.mode,g,null),y.return=h,y;if(typeof y.then=="function")return d(h,$d(y),g);if(y.$$typeof===on)return d(h,Ed(h,y),g);Md(h,y)}return null}function f(h,y,g,b){var L=y!==null?y.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return L!==null?null:l(h,y,""+g,b);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case wd:return g.key===L?s(h,y,g,b):null;case eu:return g.key===L?u(h,y,g,b):null;case Rn:return g=Bo(g),f(h,y,g,b)}if(tu(g)||Gs(g))return L!==null?null:c(h,y,g,b,null);if(typeof g.then=="function")return f(h,y,$d(g),b);if(g.$$typeof===on)return f(h,y,Ed(h,g),b);Md(h,g)}return null}function p(h,y,g,b,L){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return h=h.get(g)||null,l(y,h,""+b,L);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case wd:return h=h.get(b.key===null?g:b.key)||null,s(y,h,b,L);case eu:return h=h.get(b.key===null?g:b.key)||null,u(y,h,b,L);case Rn:return b=Bo(b),p(h,y,g,b,L)}if(tu(b)||Gs(b))return h=h.get(g)||null,c(y,h,b,L,null);if(typeof b.then=="function")return p(h,y,g,$d(b),L);if(b.$$typeof===on)return p(h,y,g,Ed(y,b),L);Md(y,b)}return null}function m(h,y,g,b){for(var L=null,x=null,w=y,I=y=0,E=null;w!==null&&I<g.length;I++){w.index>I?(E=w,w=null):E=w.sibling;var k=f(h,w,g[I],b);if(k===null){w===null&&(w=E);break}e&&w&&k.alternate===null&&t(h,w),y=o(k,y,I),x===null?L=k:x.sibling=k,x=k,w=E}if(I===g.length)return a(h,w),Re&&rn(h,I),L;if(w===null){for(;I<g.length;I++)w=d(h,g[I],b),w!==null&&(y=o(w,y,I),x===null?L=w:x.sibling=w,x=w);return Re&&rn(h,I),L}for(w=n(w);I<g.length;I++)E=p(w,h,I,g[I],b),E!==null&&(e&&E.alternate!==null&&w.delete(E.key===null?I:E.key),y=o(E,y,I),x===null?L=E:x.sibling=E,x=E);return e&&w.forEach(function(F){return t(h,F)}),Re&&rn(h,I),L}function S(h,y,g,b){if(g==null)throw Error(N(151));for(var L=null,x=null,w=y,I=y=0,E=null,k=g.next();w!==null&&!k.done;I++,k=g.next()){w.index>I?(E=w,w=null):E=w.sibling;var F=f(h,w,k.value,b);if(F===null){w===null&&(w=E);break}e&&w&&F.alternate===null&&t(h,w),y=o(F,y,I),x===null?L=F:x.sibling=F,x=F,w=E}if(k.done)return a(h,w),Re&&rn(h,I),L;if(w===null){for(;!k.done;I++,k=g.next())k=d(h,k.value,b),k!==null&&(y=o(k,y,I),x===null?L=k:x.sibling=k,x=k);return Re&&rn(h,I),L}for(w=n(w);!k.done;I++,k=g.next())k=p(w,h,I,k.value,b),k!==null&&(e&&k.alternate!==null&&w.delete(k.key===null?I:k.key),y=o(k,y,I),x===null?L=k:x.sibling=k,x=k);return e&&w.forEach(function(O){return t(h,O)}),Re&&rn(h,I),L}function C(h,y,g,b){if(typeof g=="object"&&g!==null&&g.type===Vi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wd:e:{for(var L=g.key;y!==null;){if(y.key===L){if(L=g.type,L===Vi){if(y.tag===7){a(h,y.sibling),b=r(y,g.props.children),b.return=h,h=b;break e}}else if(y.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Rn&&Bo(L)===y.type){a(h,y.sibling),b=r(y,g.props),Js(b,g),b.return=h,h=b;break e}a(h,y);break}else t(h,y);y=y.sibling}g.type===Vi?(b=Zo(g.props.children,h.mode,b,g.key),b.return=h,h=b):(b=Zd(g.type,g.key,g.props,null,h.mode,b),Js(b,g),b.return=h,h=b)}return i(h);case eu:e:{for(L=g.key;y!==null;){if(y.key===L)if(y.tag===4&&y.stateNode.containerInfo===g.containerInfo&&y.stateNode.implementation===g.implementation){a(h,y.sibling),b=r(y,g.children||[]),b.return=h,h=b;break e}else{a(h,y);break}else t(h,y);y=y.sibling}b=lg(g,h.mode,b),b.return=h,h=b}return i(h);case Rn:return g=Bo(g),C(h,y,g,b)}if(tu(g))return m(h,y,g,b);if(Gs(g)){if(L=Gs(g),typeof L!="function")throw Error(N(150));return g=L.call(g),S(h,y,g,b)}if(typeof g.then=="function")return C(h,y,$d(g),b);if(g.$$typeof===on)return C(h,y,Ed(h,g),b);Md(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,y!==null&&y.tag===6?(a(h,y.sibling),b=r(y,g),b.return=h,h=b):(a(h,y),b=ig(g,h.mode,b),b.return=h,h=b),i(h)):a(h,y)}return function(h,y,g,b){try{_u=0;var L=C(h,y,g,b);return sl=null,L}catch(w){if(w===kl||w===Pf)throw w;var x=za(29,w,null,h.mode);return x.lanes=b,x.return=h,x}}}var Xo=v1(!0),y1=v1(!1),Pn=!1;function qv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xn(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(je&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=sf(e),u1(e,null,a),t}return Rf(e,n,t,a),sf(e)}function uu(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,RC(e,a)}}function ug(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,o=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};o===null?r=o=i:o=o.next=i,a=a.next}while(a!==null);o===null?r=o=t:o=o.next=t}else r=o=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:o,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Kg=!1;function cu(){if(Kg){var e=ll;if(e!==null)throw e}}function du(e,t,a,n){Kg=!1;var r=e.updateQueue;Pn=!1;var o=r.firstBaseUpdate,i=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var s=l,u=s.next;s.next=null,i===null?o=u:i.next=u,i=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==i&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(o!==null){var d=r.baseState;i=0,c=u=s=null,l=o;do{var f=l.lane&-536870913,p=f!==l.lane;if(p?(De&f)===f:(n&f)===f){f!==0&&f===ml&&(Kg=!0),c!==null&&(c=c.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var m=e,S=l;f=t;var C=a;switch(S.tag){case 1:if(m=S.payload,typeof m=="function"){d=m.call(C,d,f);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=S.payload,f=typeof m=="function"?m.call(C,d,f):m,f==null)break e;d=st({},d,f);break e;case 2:Pn=!0}}f=l.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=r.callbacks,p===null?r.callbacks=[f]:p.push(f))}else p={lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=p,s=d):c=c.next=p,i|=f;if(l=l.next,l===null){if(l=r.shared.pending,l===null)break;p=l,l=p.next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}while(!0);c===null&&(s=d),r.baseState=s,r.firstBaseUpdate=u,r.lastBaseUpdate=c,o===null&&(r.shared.lanes=0),oo|=i,e.lanes=i,e.memoizedState=d}}function x1(e,t){if(typeof e!="function")throw Error(N(191,e));e.call(t)}function b1(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)x1(a[e],t)}var hl=Dr(null),ff=Dr(0);function A0(e,t){e=gn,nt(ff,e),nt(hl,t),gn=e|t.baseLanes}function Yg(){nt(ff,gn),nt(hl,hl.current)}function Zv(){gn=ff.current,Ht(hl),Ht(ff)}var ja=Dr(null),rr=null;function Nn(e){var t=e.alternate;nt(Lt,Lt.current&1),nt(ja,e),rr===null&&(t===null||hl.current!==null||t.memoizedState!==null)&&(rr=e)}function Qg(e){nt(Lt,Lt.current),nt(ja,e),rr===null&&(rr=e)}function S1(e){e.tag===22?(nt(Lt,Lt.current),nt(ja,e),rr===null&&(rr=e)):jn(e)}function jn(){nt(Lt,Lt.current),nt(ja,ja.current)}function Ma(e){Ht(ja),rr===e&&(rr=null),Ht(Lt)}var Lt=Dr(0);function pf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||yv(a)||xv(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pn=0,Se=null,Je=null,Mt=null,mf=!1,ul=!1,Ko=!1,hf=0,ku=0,cl=null,c4=0;function xt(){throw Error(N(321))}function Hv(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Na(e[a],t[a]))return!1;return!0}function Vv(e,t,a,n,r,o){return pn=o,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?Y1:ry,Ko=!1,o=a(n,r),Ko=!1,ul&&(o=I1(t,a,n,r)),w1(e),o}function w1(e){ge.H=Cu;var t=Je!==null&&Je.next!==null;if(pn=0,Mt=Je=Se=null,mf=!1,ku=0,cl=null,t)throw Error(N(300));e===null||Ot||(e=e.dependencies,e!==null&&cf(e)&&(Ot=!0))}function I1(e,t,a,n){Se=e;var r=0;do{if(ul&&(cl=null),ku=0,ul=!1,25<=r)throw Error(N(301));if(r+=1,Mt=Je=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}ge.H=Q1,o=t(a,n)}while(ul);return o}function d4(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Nu(t):t,e=e.useState()[0],(Je!==null?Je.memoizedState:null)!==e&&(Se.flags|=1024),t}function Gv(){var e=hf!==0;return hf=0,e}function Wv(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Jv(e){if(mf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mf=!1}pn=0,Mt=Je=Se=null,ul=!1,ku=hf=0,cl=null}function ca(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Se.memoizedState=Mt=e:Mt=Mt.next=e,Mt}function Tt(){if(Je===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=Mt===null?Se.memoizedState:Mt.next;if(t!==null)Mt=t,Je=e;else{if(e===null)throw Se.alternate===null?Error(N(467)):Error(N(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Mt===null?Se.memoizedState=Mt=e:Mt=Mt.next=e}return Mt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nu(e){var t=ku;return ku+=1,cl===null&&(cl=[]),e=g1(cl,e,t),t=Se,(Mt===null?t.memoizedState:Mt.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?Y1:ry),e}function Nf(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nu(e);if(e.$$typeof===on)return Qt(e)}throw Error(N(438,String(e)))}function Xv(e){var t=null,a=Se.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=Se.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Uf(),Se.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=XO;return t.index++,a}function mn(e,t){return typeof t=="function"?t(e):t}function Vd(e){var t=Tt();return Kv(t,Je,e)}function Kv(e,t,a){var n=e.queue;if(n===null)throw Error(N(311));n.lastRenderedReducer=a;var r=e.baseQueue,o=n.pending;if(o!==null){if(r!==null){var i=r.next;r.next=o.next,o.next=i}t.baseQueue=r=o,n.pending=null}if(o=e.baseState,r===null)e.memoizedState=o;else{t=r.next;var l=i=null,s=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(De&d)===d:(pn&d)===d){var f=u.revertLane;if(f===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===ml&&(c=!0);else if((pn&f)===f){u=u.next,f===ml&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=d,i=o):s=s.next=d,Se.lanes|=f,oo|=f;d=u.action,Ko&&a(o,d),o=u.hasEagerState?u.eagerState:a(o,d)}else f={lane:d,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=f,i=o):s=s.next=f,Se.lanes|=d,oo|=d;u=u.next}while(u!==null&&u!==t);if(s===null?i=o:s.next=l,!Na(o,e.memoizedState)&&(Ot=!0,c&&(a=ll,a!==null)))throw a;e.memoizedState=o,e.baseState=i,e.baseQueue=s,n.lastRenderedState=o}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function cg(e){var t=Tt(),a=t.queue;if(a===null)throw Error(N(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,o=t.memoizedState;if(r!==null){a.pending=null;var i=r=r.next;do o=e(o,i.action),i=i.next;while(i!==r);Na(o,t.memoizedState)||(Ot=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),a.lastRenderedState=o}return[o,n]}function _1(e,t,a){var n=Se,r=Tt(),o=Re;if(o){if(a===void 0)throw Error(N(407));a=a()}else a=t();var i=!Na((Je||r).memoizedState,a);if(i&&(r.memoizedState=a,Ot=!0),r=r.queue,Yv(L1.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Mt!==null&&Mt.memoizedState.tag&1){if(n.flags|=2048,gl(9,{destroy:void 0},C1.bind(null,n,r,a,t),null),at===null)throw Error(N(349));o||(pn&127)!==0||k1(n,t,a)}return a}function k1(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Se.updateQueue,t===null?(t=Uf(),Se.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function C1(e,t,a,n){t.value=a,t.getSnapshot=n,T1(t)&&A1(e)}function L1(e,t,a){return a(function(){T1(t)&&A1(e)})}function T1(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Na(e,a)}catch{return!0}}function A1(e){var t=ai(e,2);t!==null&&Sa(t,e,2)}function ev(e){var t=ca();if(typeof e=="function"){var a=e;if(e=a(),Ko){Fn(!0);try{a()}finally{Fn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:e},t}function E1(e,t,a,n){return e.baseState=a,Kv(e,Je,typeof n=="function"?n:mn)}function f4(e,t,a,n,r){if(Bf(e))throw Error(N(485));if(e=t.action,e!==null){var o={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){o.listeners.push(i)}};ge.T!==null?a(!0):o.isTransition=!1,n(o),a=t.pending,a===null?(o.next=t.pending=o,$1(t,o)):(o.next=a.next,t.pending=a.next=o)}}function $1(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var o=ge.T,i={};ge.T=i;try{var l=a(r,n),s=ge.S;s!==null&&s(i,l),E0(e,t,l)}catch(u){tv(e,t,u)}finally{o!==null&&i.types!==null&&(o.types=i.types),ge.T=o}}else try{o=a(r,n),E0(e,t,o)}catch(u){tv(e,t,u)}}function E0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){$0(e,t,n)},function(n){return tv(e,t,n)}):$0(e,t,a)}function $0(e,t,a){t.status="fulfilled",t.value=a,M1(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,$1(e,a)))}function tv(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,M1(t),t=t.next;while(t!==n)}e.action=null}function M1(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function z1(e,t){return t}function M0(e,t){if(Re){var a=at.formState;if(a!==null){e:{var n=Se;if(Re){if(lt){t:{for(var r=lt,o=ar;r.nodeType!==8;){if(!o){r=null;break t}if(r=nr(r.nextSibling),r===null){r=null;break t}}o=r.data,r=o==="F!"||o==="F"?r:null}if(r){lt=nr(r.nextSibling),n=r.data==="F!";break e}}ro(n)}n=!1}n&&(t=a[0])}}return a=ca(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:z1,lastRenderedState:t},a.queue=n,a=J1.bind(null,Se,n),n.dispatch=a,n=ev(!1),o=ay.bind(null,Se,!1,n.queue),n=ca(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=f4.bind(null,Se,r,o,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function z0(e){var t=Tt();return D1(t,Je,e)}function D1(e,t,a){if(t=Kv(e,t,z1)[0],e=Vd(mn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=Nu(t)}catch(i){throw i===kl?Pf:i}else n=t;t=Tt();var r=t.queue,o=r.dispatch;return a!==t.memoizedState&&(Se.flags|=2048,gl(9,{destroy:void 0},p4.bind(null,r,a),null)),[n,o,e]}function p4(e,t){e.action=t}function D0(e){var t=Tt(),a=Je;if(a!==null)return D1(t,a,e);Tt(),t=t.memoizedState,a=Tt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function gl(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=Se.updateQueue,t===null&&(t=Uf(),Se.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function O1(){return Tt().memoizedState}function Gd(e,t,a,n){var r=ca();Se.flags|=e,r.memoizedState=gl(1|t,{destroy:void 0},a,n===void 0?null:n)}function jf(e,t,a,n){var r=Tt();n=n===void 0?null:n;var o=r.memoizedState.inst;Je!==null&&n!==null&&Hv(n,Je.memoizedState.deps)?r.memoizedState=gl(t,o,a,n):(Se.flags|=e,r.memoizedState=gl(1|t,o,a,n))}function O0(e,t){Gd(8390656,8,e,t)}function Yv(e,t){jf(2048,8,e,t)}function m4(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=Uf(),Se.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function R1(e){var t=Tt().memoizedState;return m4({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(N(440));return t.impl.apply(void 0,arguments)}}function P1(e,t){return jf(4,2,e,t)}function U1(e,t){return jf(4,4,e,t)}function N1(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function j1(e,t,a){a=a!=null?a.concat([e]):null,jf(4,4,N1.bind(null,t,e),a)}function Qv(){}function B1(e,t){var a=Tt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Hv(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function F1(e,t){var a=Tt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Hv(t,n[1]))return n[0];if(n=e(),Ko){Fn(!0);try{e()}finally{Fn(!1)}}return a.memoizedState=[n,t],n}function ey(e,t,a){return a===void 0||(pn&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=EL(),Se.lanes|=e,oo|=e,a)}function q1(e,t,a,n){return Na(a,t)?a:hl.current!==null?(e=ey(e,a,n),Na(e,t)||(Ot=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(De&261930)===0?(Ot=!0,e.memoizedState=a):(e=EL(),Se.lanes|=e,oo|=e,t)}function Z1(e,t,a,n,r){var o=Be.p;Be.p=o!==0&&8>o?o:8;var i=ge.T,l={};ge.T=l,ay(e,!1,t,a);try{var s=r(),u=ge.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=u4(s,n);fu(e,t,c,Ua(e))}else fu(e,t,n,Ua(e))}catch(d){fu(e,t,{then:function(){},status:"rejected",reason:d},Ua())}finally{Be.p=o,i!==null&&l.types!==null&&(i.types=l.types),ge.T=i}}function h4(){}function av(e,t,a,n){if(e.tag!==5)throw Error(N(476));var r=H1(e).queue;Z1(e,r,t,qo,a===null?h4:function(){return V1(e),a(n)})}function H1(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qo,baseState:qo,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:qo},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:mn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function V1(e){var t=H1(e);t.next===null&&(t=e.alternate.memoizedState),fu(e,t.next.queue,{},Ua())}function ty(){return Qt(Au)}function G1(){return Tt().memoizedState}function W1(){return Tt().memoizedState}function g4(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ua();e=Jn(a);var n=Xn(t,e,a);n!==null&&(Sa(n,t,a),uu(n,t,a)),t={cache:jv()},e.payload=t;return}t=t.return}}function v4(e,t,a){var n=Ua();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bf(e)?X1(t,a):(a=Rv(e,t,a,n),a!==null&&(Sa(a,e,n),K1(a,t,n)))}function J1(e,t,a){var n=Ua();fu(e,t,a,n)}function fu(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(e))X1(t,r);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,l=o(i,a);if(r.hasEagerState=!0,r.eagerState=l,Na(l,i))return Rf(e,t,r,0),at===null&&Of(),!1}catch{}if(a=Rv(e,t,r,n),a!==null)return Sa(a,e,n),K1(a,t,n),!0}return!1}function ay(e,t,a,n){if(n={lane:2,revertLane:dy(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bf(e)){if(t)throw Error(N(479))}else t=Rv(e,a,n,2),t!==null&&Sa(t,e,2)}function Bf(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function X1(e,t){ul=mf=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function K1(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,RC(e,a)}}var Cu={readContext:Qt,use:Nf,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt};Cu.useEffectEvent=xt;var Y1={readContext:Qt,use:Nf,useCallback:function(e,t){return ca().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:O0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Gd(4194308,4,N1.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Gd(4194308,4,e,t)},useInsertionEffect:function(e,t){Gd(4,2,e,t)},useMemo:function(e,t){var a=ca();t=t===void 0?null:t;var n=e();if(Ko){Fn(!0);try{e()}finally{Fn(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=ca();if(a!==void 0){var r=a(t);if(Ko){Fn(!0);try{a(t)}finally{Fn(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=v4.bind(null,Se,e),[n.memoizedState,e]},useRef:function(e){var t=ca();return e={current:e},t.memoizedState=e},useState:function(e){e=ev(e);var t=e.queue,a=J1.bind(null,Se,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Qv,useDeferredValue:function(e,t){var a=ca();return ey(a,e,t)},useTransition:function(){var e=ev(!1);return e=Z1.bind(null,Se,e.queue,!0,!1),ca().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=Se,r=ca();if(Re){if(a===void 0)throw Error(N(407));a=a()}else{if(a=t(),at===null)throw Error(N(349));(De&127)!==0||k1(n,t,a)}r.memoizedState=a;var o={value:a,getSnapshot:t};return r.queue=o,O0(L1.bind(null,n,o,e),[e]),n.flags|=2048,gl(9,{destroy:void 0},C1.bind(null,n,o,a,t),null),a},useId:function(){var e=ca(),t=at.identifierPrefix;if(Re){var a=$r,n=Er;a=(n&~(1<<32-Pa(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=hf++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=c4++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ty,useFormState:M0,useActionState:M0,useOptimistic:function(e){var t=ca();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ay.bind(null,Se,!0,a),a.dispatch=t,[e,t]},useMemoCache:Xv,useCacheRefresh:function(){return ca().memoizedState=g4.bind(null,Se)},useEffectEvent:function(e){var t=ca(),a={impl:e};return t.memoizedState=a,function(){if((je&2)!==0)throw Error(N(440));return a.impl.apply(void 0,arguments)}}},ry={readContext:Qt,use:Nf,useCallback:B1,useContext:Qt,useEffect:Yv,useImperativeHandle:j1,useInsertionEffect:P1,useLayoutEffect:U1,useMemo:F1,useReducer:Vd,useRef:O1,useState:function(){return Vd(mn)},useDebugValue:Qv,useDeferredValue:function(e,t){var a=Tt();return q1(a,Je.memoizedState,e,t)},useTransition:function(){var e=Vd(mn)[0],t=Tt().memoizedState;return[typeof e=="boolean"?e:Nu(e),t]},useSyncExternalStore:_1,useId:G1,useHostTransitionStatus:ty,useFormState:z0,useActionState:z0,useOptimistic:function(e,t){var a=Tt();return E1(a,Je,e,t)},useMemoCache:Xv,useCacheRefresh:W1};ry.useEffectEvent=R1;var Q1={readContext:Qt,use:Nf,useCallback:B1,useContext:Qt,useEffect:Yv,useImperativeHandle:j1,useInsertionEffect:P1,useLayoutEffect:U1,useMemo:F1,useReducer:cg,useRef:O1,useState:function(){return cg(mn)},useDebugValue:Qv,useDeferredValue:function(e,t){var a=Tt();return Je===null?ey(a,e,t):q1(a,Je.memoizedState,e,t)},useTransition:function(){var e=cg(mn)[0],t=Tt().memoizedState;return[typeof e=="boolean"?e:Nu(e),t]},useSyncExternalStore:_1,useId:G1,useHostTransitionStatus:ty,useFormState:D0,useActionState:D0,useOptimistic:function(e,t){var a=Tt();return Je!==null?E1(a,Je,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Xv,useCacheRefresh:W1};Q1.useEffectEvent=R1;function dg(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:st({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var rv={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ua(),r=Jn(n);r.payload=t,a!=null&&(r.callback=a),t=Xn(e,r,n),t!==null&&(Sa(t,e,n),uu(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ua(),r=Jn(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=Xn(e,r,n),t!==null&&(Sa(t,e,n),uu(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ua(),n=Jn(a);n.tag=2,t!=null&&(n.callback=t),t=Xn(e,n,a),t!==null&&(Sa(t,e,a),uu(t,e,a))}};function R0(e,t,a,n,r,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,i):t.prototype&&t.prototype.isPureReactComponent?!Su(a,n)||!Su(r,o):!0}function P0(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&rv.enqueueReplaceState(t,t.state,null)}function Yo(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=st({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function eL(e){lf(e)}function tL(e){console.error(e)}function aL(e){lf(e)}function gf(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function U0(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function nv(e,t,a){return a=Jn(a),a.tag=3,a.payload={element:null},a.callback=function(){gf(e,t)},a}function rL(e){return e=Jn(e),e.tag=3,e}function nL(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var o=n.value;e.payload=function(){return r(o)},e.callback=function(){U0(t,a,n)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){U0(t,a,n),typeof r!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})})}function y4(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&_l(t,a,r,!0),a=ja.current,a!==null){switch(a.tag){case 31:case 13:return rr===null?Sf():a.alternate===null&&bt===0&&(bt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===df?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),wg(e,n,r)),!1;case 22:return a.flags|=65536,n===df?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),wg(e,n,r)),!1}throw Error(N(435,a.tag))}return wg(e,n,r),Sf(),!1}if(Re)return t=ja.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Hg&&(e=Error(N(422),{cause:n}),Iu(tr(e,a)))):(n!==Hg&&(t=Error(N(423),{cause:n}),Iu(tr(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=tr(n,a),r=nv(e.stateNode,n,r),ug(e,r),bt!==4&&(bt=2)),!1;var o=Error(N(520),{cause:n});if(o=tr(o,a),hu===null?hu=[o]:hu.push(o),bt!==4&&(bt=2),t===null)return!0;n=tr(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=nv(a.stateNode,n,e),ug(a,e),!1;case 1:if(t=a.type,o=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Kn===null||!Kn.has(o))))return a.flags|=65536,r&=-r,a.lanes|=r,r=rL(r),nL(r,e,a,n),ug(a,r),!1}a=a.return}while(a!==null);return!1}var ny=Error(N(461)),Ot=!1;function Xt(e,t,a,n){t.child=e===null?y1(t,null,a,n):Xo(t,e.child,a,n)}function N0(e,t,a,n,r){a=a.render;var o=t.ref;if("ref"in n){var i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}else i=n;return Jo(t),n=Vv(e,t,a,i,o,r),l=Gv(),e!==null&&!Ot?(Wv(e,t,r),hn(e,t,r)):(Re&&l&&Uv(t),t.flags|=1,Xt(e,t,n,r),t.child)}function j0(e,t,a,n,r){if(e===null){var o=a.type;return typeof o=="function"&&!Pv(o)&&o.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=o,oL(e,t,o,n,r)):(e=Zd(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!oy(e,r)){var i=o.memoizedProps;if(a=a.compare,a=a!==null?a:Su,a(i,n)&&e.ref===t.ref)return hn(e,t,r)}return t.flags|=1,e=un(o,n),e.ref=t.ref,e.return=t,t.child=e}function oL(e,t,a,n,r){if(e!==null){var o=e.memoizedProps;if(Su(o,n)&&e.ref===t.ref)if(Ot=!1,t.pendingProps=n=o,oy(e,r))(e.flags&131072)!==0&&(Ot=!0);else return t.lanes=e.lanes,hn(e,t,r)}return ov(e,t,a,n,r)}function iL(e,t,a,n){var r=n.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~o}else n=0,t.child=null;return B0(e,t,o,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hd(t,o!==null?o.cachePool:null),o!==null?A0(t,o):Yg(),S1(t);else return n=t.lanes=536870912,B0(e,t,o!==null?o.baseLanes|a:a,a,n)}else o!==null?(Hd(t,o.cachePool),A0(t,o),jn(t),t.memoizedState=null):(e!==null&&Hd(t,null),Yg(),jn(t));return Xt(e,t,r,a),t.child}function ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function B0(e,t,a,n,r){var o=Bv();return o=o===null?null:{parent:Dt._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Hd(t,null),Yg(),S1(t),e!==null&&_l(e,t,n,!0),t.childLanes=r,null}function Wd(e,t){return t=vf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function F0(e,t,a){return Xo(t,e.child,null,a),e=Wd(t,t.pendingProps),e.flags|=2,Ma(t),t.memoizedState=null,e}function x4(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Re){if(n.mode==="hidden")return e=Wd(t,n),t.lanes=536870912,ru(null,e);if(Qg(t),(e=lt)?(e=YL(e,ar),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ao!==null?{id:Er,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},a=d1(e),a.return=t,t.child=a,Yt=t,lt=null)):e=null,e===null)throw ro(t);return t.lanes=536870912,null}return Wd(t,n)}var o=e.memoizedState;if(o!==null){var i=o.dehydrated;if(Qg(t),r)if(t.flags&256)t.flags&=-257,t=F0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(N(558));else if(Ot||_l(e,t,a,!1),r=(a&e.childLanes)!==0,Ot||r){if(n=at,n!==null&&(i=PC(n,a),i!==0&&i!==o.retryLane))throw o.retryLane=i,ai(e,i),Sa(n,e,i),ny;Sf(),t=F0(e,t,a)}else e=o.treeContext,lt=nr(i.nextSibling),Yt=t,Re=!0,Wn=null,ar=!1,e!==null&&p1(t,e),t=Wd(t,n),t.flags|=4096;return t}return e=un(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Jd(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(N(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ov(e,t,a,n,r){return Jo(t),a=Vv(e,t,a,n,void 0,r),n=Gv(),e!==null&&!Ot?(Wv(e,t,r),hn(e,t,r)):(Re&&n&&Uv(t),t.flags|=1,Xt(e,t,a,r),t.child)}function q0(e,t,a,n,r,o){return Jo(t),t.updateQueue=null,a=I1(t,n,a,r),w1(e),n=Gv(),e!==null&&!Ot?(Wv(e,t,o),hn(e,t,o)):(Re&&n&&Uv(t),t.flags|=1,Xt(e,t,a,o),t.child)}function Z0(e,t,a,n,r){if(Jo(t),t.stateNode===null){var o=el,i=a.contextType;typeof i=="object"&&i!==null&&(o=Qt(i)),o=new a(n,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=rv,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=n,o.state=t.memoizedState,o.refs={},qv(t),i=a.contextType,o.context=typeof i=="object"&&i!==null?Qt(i):el,o.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(dg(t,a,i,n),o.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(i=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),i!==o.state&&rv.enqueueReplaceState(o,o.state,null),du(t,n,o,r),cu(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){o=t.stateNode;var l=t.memoizedProps,s=Yo(a,l);o.props=s;var u=o.context,c=a.contextType;i=el,typeof c=="object"&&c!==null&&(i=Qt(c));var d=a.getDerivedStateFromProps;c=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l||u!==i)&&P0(t,o,n,i),Pn=!1;var f=t.memoizedState;o.state=f,du(t,n,o,r),cu(),u=t.memoizedState,l||f!==u||Pn?(typeof d=="function"&&(dg(t,a,d,n),u=t.memoizedState),(s=Pn||R0(t,a,s,n,f,u,i))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=i,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Xg(e,t),i=t.memoizedProps,c=Yo(a,i),o.props=c,d=t.pendingProps,f=o.context,u=a.contextType,s=el,typeof u=="object"&&u!==null&&(s=Qt(u)),l=a.getDerivedStateFromProps,(u=typeof l=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(i!==d||f!==s)&&P0(t,o,n,s),Pn=!1,f=t.memoizedState,o.state=f,du(t,n,o,r),cu();var p=t.memoizedState;i!==d||f!==p||Pn||e!==null&&e.dependencies!==null&&cf(e.dependencies)?(typeof l=="function"&&(dg(t,a,l,n),p=t.memoizedState),(c=Pn||R0(t,a,c,n,f,p,s)||e!==null&&e.dependencies!==null&&cf(e.dependencies))?(u||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=s,n=c):(typeof o.componentDidUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),n=!1)}return o=n,Jd(e,t),n=(t.flags&128)!==0,o||n?(o=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&n?(t.child=Xo(t,e.child,null,r),t.child=Xo(t,null,a,r)):Xt(e,t,a,r),t.memoizedState=o.state,e=t.child):e=hn(e,t,r),e}function H0(e,t,a,n){return Wo(),t.flags|=256,Xt(e,t,a,n),t.child}var fg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pg(e){return{baseLanes:e,cachePool:h1()}}function mg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Da),e}function lL(e,t,a){var n=t.pendingProps,r=!1,o=(t.flags&128)!==0,i;if((i=o)||(i=e!==null&&e.memoizedState===null?!1:(Lt.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Re){if(r?Nn(t):jn(t),(e=lt)?(e=YL(e,ar),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ao!==null?{id:Er,overflow:$r}:null,retryLane:536870912,hydrationErrors:null},a=d1(e),a.return=t,t.child=a,Yt=t,lt=null)):e=null,e===null)throw ro(t);return xv(e)?t.lanes=32:t.lanes=536870912,null}var l=n.children;return n=n.fallback,r?(jn(t),r=t.mode,l=vf({mode:"hidden",children:l},r),n=Zo(n,r,a,null),l.return=t,n.return=t,l.sibling=n,t.child=l,n=t.child,n.memoizedState=pg(a),n.childLanes=mg(e,i,a),t.memoizedState=fg,ru(null,n)):(Nn(t),iv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(o)t.flags&256?(Nn(t),t.flags&=-257,t=hg(e,t,a)):t.memoizedState!==null?(jn(t),t.child=e.child,t.flags|=128,t=null):(jn(t),l=n.fallback,r=t.mode,n=vf({mode:"visible",children:n.children},r),l=Zo(l,r,a,null),l.flags|=2,n.return=t,l.return=t,n.sibling=l,t.child=n,Xo(t,e.child,null,a),n=t.child,n.memoizedState=pg(a),n.childLanes=mg(e,i,a),t.memoizedState=fg,t=ru(null,n));else if(Nn(t),xv(l)){if(i=l.nextSibling&&l.nextSibling.dataset,i)var u=i.dgst;i=u,n=Error(N(419)),n.stack="",n.digest=i,Iu({value:n,source:null,stack:null}),t=hg(e,t,a)}else if(Ot||_l(e,t,a,!1),i=(a&e.childLanes)!==0,Ot||i){if(i=at,i!==null&&(n=PC(i,a),n!==0&&n!==s.retryLane))throw s.retryLane=n,ai(e,n),Sa(i,e,n),ny;yv(l)||Sf(),t=hg(e,t,a)}else yv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,lt=nr(l.nextSibling),Yt=t,Re=!0,Wn=null,ar=!1,e!==null&&p1(t,e),t=iv(t,n.children),t.flags|=4096);return t}return r?(jn(t),l=n.fallback,r=t.mode,s=e.child,u=s.sibling,n=un(s,{mode:"hidden",children:n.children}),n.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=un(u,l):(l=Zo(l,r,a,null),l.flags|=2),l.return=t,n.return=t,n.sibling=l,t.child=n,ru(null,n),n=t.child,l=e.child.memoizedState,l===null?l=pg(a):(r=l.cachePool,r!==null?(s=Dt._currentValue,r=r.parent!==s?{parent:s,pool:s}:r):r=h1(),l={baseLanes:l.baseLanes|a,cachePool:r}),n.memoizedState=l,n.childLanes=mg(e,i,a),t.memoizedState=fg,ru(e.child,n)):(Nn(t),a=e.child,e=a.sibling,a=un(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function iv(e,t){return t=vf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vf(e,t){return e=za(22,e,null,t),e.lanes=0,e}function hg(e,t,a){return Xo(t,e.child,null,a),e=iv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function V0(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Gg(e.return,t,a)}function gg(e,t,a,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=a,i.tailMode=r,i.treeForkCount=o)}function sL(e,t,a){var n=t.pendingProps,r=n.revealOrder,o=n.tail;n=n.children;var i=Lt.current,l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,nt(Lt,i),Xt(e,t,n,a),n=Re?wu:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&V0(e,a,t);else if(e.tag===19)V0(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&pf(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),gg(t,!1,r,a,o,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&pf(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}gg(t,!0,a,null,o,n);break;case"together":gg(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function hn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),oo|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(_l(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,a=un(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=un(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function oy(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&cf(e)))}function b4(e,t,a){switch(t.tag){case 3:af(t,t.stateNode.containerInfo),Un(t,Dt,e.memoizedState.cache),Wo();break;case 27:case 5:Dg(t);break;case 4:af(t,t.stateNode.containerInfo);break;case 10:Un(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qg(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(Nn(t),t.flags|=128,null):(a&t.child.childLanes)!==0?lL(e,t,a):(Nn(t),e=hn(e,t,a),e!==null?e.sibling:null);Nn(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(_l(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return sL(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),nt(Lt,Lt.current),n)break;return null;case 22:return t.lanes=0,iL(e,t,a,t.pendingProps);case 24:Un(t,Dt,e.memoizedState.cache)}return hn(e,t,a)}function uL(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ot=!0;else{if(!oy(e,a)&&(t.flags&128)===0)return Ot=!1,b4(e,t,a);Ot=(e.flags&131072)!==0}else Ot=!1,Re&&(t.flags&1048576)!==0&&f1(t,wu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=Bo(t.elementType),t.type=e,typeof e=="function")Pv(e)?(n=Yo(e,n),t.tag=1,t=Z0(null,t,e,n,a)):(t.tag=0,t=ov(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===Iv){t.tag=11,t=N0(null,t,e,n,a);break e}else if(r===_v){t.tag=14,t=j0(null,t,e,n,a);break e}}throw t=Mg(e)||e,Error(N(306,t,""))}}return t;case 0:return ov(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=Yo(n,t.pendingProps),Z0(e,t,n,r,a);case 3:e:{if(af(t,t.stateNode.containerInfo),e===null)throw Error(N(387));n=t.pendingProps;var o=t.memoizedState;r=o.element,Xg(e,t),du(t,n,null,a);var i=t.memoizedState;if(n=i.cache,Un(t,Dt,n),n!==o.cache&&Wg(t,[Dt],a,!0),cu(),n=i.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=H0(e,t,n,a);break e}else if(n!==r){r=tr(Error(N(424)),t),Iu(r),t=H0(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,lt=nr(e.firstChild),Yt=t,Re=!0,Wn=null,ar=!0,a=y1(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Wo(),n===r){t=hn(e,t,a);break e}Xt(e,t,n,a)}t=t.child}return t;case 26:return Jd(e,t),e===null?(a=mC(t.type,null,t.pendingProps,null))?t.memoizedState=a:Re||(a=t.type,e=t.pendingProps,n=kf(Gn.current).createElement(a),n[Kt]=t,n[wa]=e,ea(n,a,e),Zt(n),t.stateNode=n):t.memoizedState=mC(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Dg(t),e===null&&Re&&(n=t.stateNode=QL(t.type,t.pendingProps,Gn.current),Yt=t,ar=!0,r=lt,lo(t.type)?(bv=r,lt=nr(n.firstChild)):lt=r),Xt(e,t,t.pendingProps.children,a),Jd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Re&&((r=n=lt)&&(n=W4(n,t.type,t.pendingProps,ar),n!==null?(t.stateNode=n,Yt=t,lt=nr(n.firstChild),ar=!1,r=!0):r=!1),r||ro(t)),Dg(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,n=o.children,gv(r,o)?n=null:i!==null&&gv(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=Vv(e,t,d4,null,null,a),Au._currentValue=r),Jd(e,t),Xt(e,t,n,a),t.child;case 6:return e===null&&Re&&((e=a=lt)&&(a=J4(a,t.pendingProps,ar),a!==null?(t.stateNode=a,Yt=t,lt=null,e=!0):e=!1),e||ro(t)),null;case 13:return lL(e,t,a);case 4:return af(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Xo(t,null,n,a):Xt(e,t,n,a),t.child;case 11:return N0(e,t,t.type,t.pendingProps,a);case 7:return Xt(e,t,t.pendingProps,a),t.child;case 8:return Xt(e,t,t.pendingProps.children,a),t.child;case 12:return Xt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,Un(t,t.type,n.value),Xt(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,Jo(t),r=Qt(r),n=n(r),t.flags|=1,Xt(e,t,n,a),t.child;case 14:return j0(e,t,t.type,t.pendingProps,a);case 15:return oL(e,t,t.type,t.pendingProps,a);case 19:return sL(e,t,a);case 31:return x4(e,t,a);case 22:return iL(e,t,a,t.pendingProps);case 24:return Jo(t),n=Qt(Dt),e===null?(r=Bv(),r===null&&(r=at,o=jv(),r.pooledCache=o,o.refCount++,o!==null&&(r.pooledCacheLanes|=a),r=o),t.memoizedState={parent:n,cache:r},qv(t),Un(t,Dt,r)):((e.lanes&a)!==0&&(Xg(e,t),du(t,null,null,a),cu()),r=e.memoizedState,o=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Un(t,Dt,n)):(n=o.cache,Un(t,Dt,n),n!==r.cache&&Wg(t,[Dt],a,!0))),Xt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(N(156,t.tag))}function Qr(e){e.flags|=4}function vg(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(zL())e.flags|=8192;else throw Vo=df,Fv}else e.flags&=-16777217}function G0(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!aT(t))if(zL())e.flags|=8192;else throw Vo=df,Fv}function zd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?DC():536870912,e.lanes|=t,vl|=t)}function Xs(e,t){if(!Re)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function it(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function S4(e,t,a){var n=t.pendingProps;switch(Nv(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(t),null;case 1:return it(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),cn(Dt),dl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?Qr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sg())),it(t),null;case 26:var r=t.type,o=t.memoizedState;return e===null?(Qr(t),o!==null?(it(t),G0(t,o)):(it(t),vg(t,r,null,n,a))):o?o!==e.memoizedState?(Qr(t),it(t),G0(t,o)):(it(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&Qr(t),it(t),vg(t,r,e,n,a)),null;case 27:if(rf(t),a=Gn.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Qr(t);else{if(!n){if(t.stateNode===null)throw Error(N(166));return it(t),null}e=zr.current,Fi(t)?w0(t,e):(e=QL(r,n,a),t.stateNode=e,Qr(t))}return it(t),null;case 5:if(rf(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&Qr(t);else{if(!n){if(t.stateNode===null)throw Error(N(166));return it(t),null}if(o=zr.current,Fi(t))w0(t,o);else{var i=kf(Gn.current);switch(o){case 1:o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":o=i.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":o=i.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":o=i.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?o.multiple=!0:n.size&&(o.size=n.size);break;default:o=typeof n.is=="string"?i.createElement(r,{is:n.is}):i.createElement(r)}}o[Kt]=t,o[wa]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)o.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=o;e:switch(ea(o,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Qr(t)}}return it(t),vg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&Qr(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(N(166));if(e=Gn.current,Fi(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=Yt,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[Kt]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||JL(e.nodeValue,a)),e||ro(t,!0)}else e=kf(e).createTextNode(n),e[Kt]=t,t.stateNode=e}return it(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Fi(t),a!==null){if(e===null){if(!n)throw Error(N(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(557));e[Kt]=t}else Wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),e=!1}else a=sg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ma(t),t):(Ma(t),null);if((t.flags&128)!==0)throw Error(N(558))}return it(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Fi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(N(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(N(317));r[Kt]=t}else Wo(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;it(t),r=!1}else r=sg(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ma(t),t):(Ma(t),null)}return Ma(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),o=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),o!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),zd(t,t.updateQueue),it(t),null);case 4:return dl(),e===null&&fy(t.stateNode.containerInfo),it(t),null;case 10:return cn(t.type),it(t),null;case 19:if(Ht(Lt),n=t.memoizedState,n===null)return it(t),null;if(r=(t.flags&128)!==0,o=n.rendering,o===null)if(r)Xs(n,!1);else{if(bt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=pf(e),o!==null){for(t.flags|=128,Xs(n,!1),e=o.updateQueue,t.updateQueue=e,zd(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)c1(a,e),a=a.sibling;return nt(Lt,Lt.current&1|2),Re&&rn(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Oa()>xf&&(t.flags|=128,r=!0,Xs(n,!1),t.lanes=4194304)}else{if(!r)if(e=pf(o),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,zd(t,e),Xs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Re)return it(t),null}else 2*Oa()-n.renderingStartTime>xf&&a!==536870912&&(t.flags|=128,r=!0,Xs(n,!1),t.lanes=4194304);n.isBackwards?(o.sibling=t.child,t.child=o):(e=n.last,e!==null?e.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Oa(),e.sibling=null,a=Lt.current,nt(Lt,r?a&1|2:a&1),Re&&rn(t,n.treeForkCount),e):(it(t),null);case 22:case 23:return Ma(t),Zv(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(it(t),t.subtreeFlags&6&&(t.flags|=8192)):it(t),a=t.updateQueue,a!==null&&zd(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Ht(Ho),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),cn(Dt),it(t),null;case 25:return null;case 30:return null}throw Error(N(156,t.tag))}function w4(e,t){switch(Nv(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return cn(Dt),dl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rf(t),null;case 31:if(t.memoizedState!==null){if(Ma(t),t.alternate===null)throw Error(N(340));Wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ma(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));Wo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(Lt),null;case 4:return dl(),null;case 10:return cn(t.type),null;case 22:case 23:return Ma(t),Zv(),e!==null&&Ht(Ho),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return cn(Dt),null;case 25:return null;default:return null}}function cL(e,t){switch(Nv(t),t.tag){case 3:cn(Dt),dl();break;case 26:case 27:case 5:rf(t);break;case 4:dl();break;case 31:t.memoizedState!==null&&Ma(t);break;case 13:Ma(t);break;case 19:Ht(Lt);break;case 10:cn(t.type);break;case 22:case 23:Ma(t),Zv(),e!==null&&Ht(Ho);break;case 24:cn(Dt)}}function ju(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var o=a.create,i=a.inst;n=o(),i.destroy=n}a=a.next}while(a!==r)}}catch(l){Ze(t,t.return,l)}}function no(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var o=r.next;n=o;do{if((n.tag&e)===e){var i=n.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,r=t;var s=a,u=l;try{u()}catch(c){Ze(r,s,c)}}}n=n.next}while(n!==o)}}catch(c){Ze(t,t.return,c)}}function dL(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{b1(t,a)}catch(n){Ze(e,e.return,n)}}}function fL(e,t,a){a.props=Yo(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ze(e,t,n)}}function pu(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){Ze(e,t,r)}}function Mr(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ze(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ze(e,t,r)}else a.current=null}function pL(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Ze(e,e.return,r)}}function yg(e,t,a){try{var n=e.stateNode;F4(n,e.type,a,t),n[wa]=t}catch(r){Ze(e,e.return,r)}}function mL(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&lo(e.type)||e.tag===4}function xg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mL(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&lo(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lv(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ln));else if(n!==4&&(n===27&&lo(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(lv(e,t,a),e=e.sibling;e!==null;)lv(e,t,a),e=e.sibling}function yf(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&lo(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(yf(e,t,a),e=e.sibling;e!==null;)yf(e,t,a),e=e.sibling}function hL(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);ea(t,n,a),t[Kt]=e,t[wa]=a}catch(o){Ze(e,e.return,o)}}var nn=!1,zt=!1,bg=!1,W0=typeof WeakSet=="function"?WeakSet:Set,qt=null;function I4(e,t){if(e=e.containerInfo,mv=Af,e=a1(e),Dv(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{a.nodeType,o.nodeType}catch{a=null;break e}var i=0,l=-1,s=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var p;d!==a||r!==0&&d.nodeType!==3||(l=i+r),d!==o||n!==0&&d.nodeType!==3||(s=i+n),d.nodeType===3&&(i+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break t;if(f===a&&++u===r&&(l=i),f===o&&++c===n&&(s=i),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}a=l===-1||s===-1?null:{start:l,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(hv={focusedElem:e,selectionRange:a},Af=!1,qt=t;qt!==null;)if(t=qt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,qt=e;else for(;qt!==null;){switch(t=qt,o=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&o!==null){e=void 0,a=t,r=o.memoizedProps,o=o.memoizedState,n=a.stateNode;try{var m=Yo(a.type,r);e=n.getSnapshotBeforeUpdate(m,o),n.__reactInternalSnapshotBeforeUpdate=e}catch(S){Ze(a,a.return,S)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)vv(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":vv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(N(163))}if(e=t.sibling,e!==null){e.return=t.return,qt=e;break}qt=t.return}}function gL(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:tn(e,a),n&4&&ju(5,a);break;case 1:if(tn(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Ze(a,a.return,i)}else{var r=Yo(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Ze(a,a.return,i)}}n&64&&dL(a),n&512&&pu(a,a.return);break;case 3:if(tn(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{b1(e,t)}catch(i){Ze(a,a.return,i)}}break;case 27:t===null&&n&4&&hL(a);case 26:case 5:tn(e,a),t===null&&n&4&&pL(a),n&512&&pu(a,a.return);break;case 12:tn(e,a);break;case 31:tn(e,a),n&4&&xL(e,a);break;case 13:tn(e,a),n&4&&bL(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=M4.bind(null,a),X4(e,a))));break;case 22:if(n=a.memoizedState!==null||nn,!n){t=t!==null&&t.memoizedState!==null||zt,r=nn;var o=zt;nn=n,(zt=t)&&!o?an(e,a,(a.subtreeFlags&8772)!==0):tn(e,a),nn=r,zt=o}break;case 30:break;default:tn(e,a)}}function vL(e){var t=e.alternate;t!==null&&(e.alternate=null,vL(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Tv(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var mt=null,xa=!1;function en(e,t,a){for(a=a.child;a!==null;)yL(e,t,a),a=a.sibling}function yL(e,t,a){if(Ra&&typeof Ra.onCommitFiberUnmount=="function")try{Ra.onCommitFiberUnmount(zu,a)}catch{}switch(a.tag){case 26:zt||Mr(a,t),en(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:zt||Mr(a,t);var n=mt,r=xa;lo(a.type)&&(mt=a.stateNode,xa=!1),en(e,t,a),vu(a.stateNode),mt=n,xa=r;break;case 5:zt||Mr(a,t);case 6:if(n=mt,r=xa,mt=null,en(e,t,a),mt=n,xa=r,mt!==null)if(xa)try{(mt.nodeType===9?mt.body:mt.nodeName==="HTML"?mt.ownerDocument.body:mt).removeChild(a.stateNode)}catch(o){Ze(a,t,o)}else try{mt.removeChild(a.stateNode)}catch(o){Ze(a,t,o)}break;case 18:mt!==null&&(xa?(e=mt,uC(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Sl(e)):uC(mt,a.stateNode));break;case 4:n=mt,r=xa,mt=a.stateNode.containerInfo,xa=!0,en(e,t,a),mt=n,xa=r;break;case 0:case 11:case 14:case 15:no(2,a,t),zt||no(4,a,t),en(e,t,a);break;case 1:zt||(Mr(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&fL(a,t,n)),en(e,t,a);break;case 21:en(e,t,a);break;case 22:zt=(n=zt)||a.memoizedState!==null,en(e,t,a),zt=n;break;default:en(e,t,a)}}function xL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Sl(e)}catch(a){Ze(t,t.return,a)}}}function bL(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Sl(e)}catch(a){Ze(t,t.return,a)}}function _4(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new W0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new W0),t;default:throw Error(N(435,e.tag))}}function Dd(e,t){var a=_4(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=z4.bind(null,e,n);n.then(r,r)}})}function va(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],o=e,i=t,l=i;e:for(;l!==null;){switch(l.tag){case 27:if(lo(l.type)){mt=l.stateNode,xa=!1;break e}break;case 5:mt=l.stateNode,xa=!1;break e;case 3:case 4:mt=l.stateNode.containerInfo,xa=!0;break e}l=l.return}if(mt===null)throw Error(N(160));yL(o,i,r),mt=null,xa=!1,o=r.alternate,o!==null&&(o.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)SL(t,e),t=t.sibling}var yr=null;function SL(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:va(t,e),ya(e),n&4&&(no(3,e,e.return),ju(3,e),no(5,e,e.return));break;case 1:va(t,e),ya(e),n&512&&(zt||a===null||Mr(a,a.return)),n&64&&nn&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var r=yr;if(va(t,e),ya(e),n&512&&(zt||a===null||Mr(a,a.return)),n&4){var o=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":o=r.getElementsByTagName("title")[0],(!o||o[Ru]||o[Kt]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=r.createElement(n),r.head.insertBefore(o,r.querySelector("head > title"))),ea(o,n,a),o[Kt]=e,Zt(o),n=o;break e;case"link":var i=gC("link","href",r).get(n+(a.href||""));if(i){for(var l=0;l<i.length;l++)if(o=i[l],o.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&o.getAttribute("rel")===(a.rel==null?null:a.rel)&&o.getAttribute("title")===(a.title==null?null:a.title)&&o.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){i.splice(l,1);break t}}o=r.createElement(n),ea(o,n,a),r.head.appendChild(o);break;case"meta":if(i=gC("meta","content",r).get(n+(a.content||""))){for(l=0;l<i.length;l++)if(o=i[l],o.getAttribute("content")===(a.content==null?null:""+a.content)&&o.getAttribute("name")===(a.name==null?null:a.name)&&o.getAttribute("property")===(a.property==null?null:a.property)&&o.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&o.getAttribute("charset")===(a.charSet==null?null:a.charSet)){i.splice(l,1);break t}}o=r.createElement(n),ea(o,n,a),r.head.appendChild(o);break;default:throw Error(N(468,n))}o[Kt]=e,Zt(o),n=o}e.stateNode=n}else vC(r,e.type,e.stateNode);else e.stateNode=hC(r,n,e.memoizedProps);else o!==n?(o===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):o.count--,n===null?vC(r,e.type,e.stateNode):hC(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&yg(e,e.memoizedProps,a.memoizedProps)}break;case 27:va(t,e),ya(e),n&512&&(zt||a===null||Mr(a,a.return)),a!==null&&n&4&&yg(e,e.memoizedProps,a.memoizedProps);break;case 5:if(va(t,e),ya(e),n&512&&(zt||a===null||Mr(a,a.return)),e.flags&32){r=e.stateNode;try{pl(r,"")}catch(m){Ze(e,e.return,m)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,yg(e,r,a!==null?a.memoizedProps:r)),n&1024&&(bg=!0);break;case 6:if(va(t,e),ya(e),n&4){if(e.stateNode===null)throw Error(N(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(m){Ze(e,e.return,m)}}break;case 3:if(Yd=null,r=yr,yr=Cf(t.containerInfo),va(t,e),yr=r,ya(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{Sl(t.containerInfo)}catch(m){Ze(e,e.return,m)}bg&&(bg=!1,wL(e));break;case 4:n=yr,yr=Cf(e.stateNode.containerInfo),va(t,e),ya(e),yr=n;break;case 12:va(t,e),ya(e);break;case 31:va(t,e),ya(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Dd(e,n)));break;case 13:va(t,e),ya(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Ff=Oa()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Dd(e,n)));break;case 22:r=e.memoizedState!==null;var s=a!==null&&a.memoizedState!==null,u=nn,c=zt;if(nn=u||r,zt=c||s,va(t,e),zt=c,nn=u,ya(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||s||nn||zt||Fo(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){s=a=t;try{if(o=s.stateNode,r)i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{l=s.stateNode;var d=s.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;l.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(m){Ze(s,s.return,m)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=r?"":s.memoizedProps}catch(m){Ze(s,s.return,m)}}}else if(t.tag===18){if(a===null){s=t;try{var p=s.stateNode;r?cC(p,!0):cC(s.stateNode,!1)}catch(m){Ze(s,s.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Dd(e,a))));break;case 19:va(t,e),ya(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Dd(e,n)));break;case 30:break;case 21:break;default:va(t,e),ya(e)}}function ya(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(mL(n)){a=n;break}n=n.return}if(a==null)throw Error(N(160));switch(a.tag){case 27:var r=a.stateNode,o=xg(e);yf(e,o,r);break;case 5:var i=a.stateNode;a.flags&32&&(pl(i,""),a.flags&=-33);var l=xg(e);yf(e,l,i);break;case 3:case 4:var s=a.stateNode.containerInfo,u=xg(e);lv(e,u,s);break;default:throw Error(N(161))}}catch(c){Ze(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wL(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;wL(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function tn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gL(e,t.alternate,t),t=t.sibling}function Fo(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:no(4,t,t.return),Fo(t);break;case 1:Mr(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&fL(t,t.return,a),Fo(t);break;case 27:vu(t.stateNode);case 26:case 5:Mr(t,t.return),Fo(t);break;case 22:t.memoizedState===null&&Fo(t);break;case 30:Fo(t);break;default:Fo(t)}e=e.sibling}}function an(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,o=t,i=o.flags;switch(o.tag){case 0:case 11:case 15:an(r,o,a),ju(4,o);break;case 1:if(an(r,o,a),n=o,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Ze(n,n.return,u)}if(n=o,r=n.updateQueue,r!==null){var l=n.stateNode;try{var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)x1(s[r],l)}catch(u){Ze(n,n.return,u)}}a&&i&64&&dL(o),pu(o,o.return);break;case 27:hL(o);case 26:case 5:an(r,o,a),a&&n===null&&i&4&&pL(o),pu(o,o.return);break;case 12:an(r,o,a);break;case 31:an(r,o,a),a&&i&4&&xL(r,o);break;case 13:an(r,o,a),a&&i&4&&bL(r,o);break;case 22:o.memoizedState===null&&an(r,o,a),pu(o,o.return);break;case 30:break;default:an(r,o,a)}t=t.sibling}}function iy(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Uu(a))}function ly(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Uu(e))}function vr(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)IL(e,t,a,n),t=t.sibling}function IL(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:vr(e,t,a,n),r&2048&&ju(9,t);break;case 1:vr(e,t,a,n);break;case 3:vr(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Uu(e)));break;case 12:if(r&2048){vr(e,t,a,n),e=t.stateNode;try{var o=t.memoizedProps,i=o.id,l=o.onPostCommit;typeof l=="function"&&l(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Ze(t,t.return,s)}}else vr(e,t,a,n);break;case 31:vr(e,t,a,n);break;case 13:vr(e,t,a,n);break;case 23:break;case 22:o=t.stateNode,i=t.alternate,t.memoizedState!==null?o._visibility&2?vr(e,t,a,n):mu(e,t):o._visibility&2?vr(e,t,a,n):(o._visibility|=2,Zi(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&iy(i,t);break;case 24:vr(e,t,a,n),r&2048&&ly(t.alternate,t);break;default:vr(e,t,a,n)}}function Zi(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,i=t,l=a,s=n,u=i.flags;switch(i.tag){case 0:case 11:case 15:Zi(o,i,l,s,r),ju(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Zi(o,i,l,s,r):mu(o,i):(c._visibility|=2,Zi(o,i,l,s,r)),r&&u&2048&&iy(i.alternate,i);break;case 24:Zi(o,i,l,s,r),r&&u&2048&&ly(i.alternate,i);break;default:Zi(o,i,l,s,r)}t=t.sibling}}function mu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:mu(a,n),r&2048&&iy(n.alternate,n);break;case 24:mu(a,n),r&2048&&ly(n.alternate,n);break;default:mu(a,n)}t=t.sibling}}var nu=8192;function qi(e,t,a){if(e.subtreeFlags&nu)for(e=e.child;e!==null;)_L(e,t,a),e=e.sibling}function _L(e,t,a){switch(e.tag){case 26:qi(e,t,a),e.flags&nu&&e.memoizedState!==null&&sP(a,yr,e.memoizedState,e.memoizedProps);break;case 5:qi(e,t,a);break;case 3:case 4:var n=yr;yr=Cf(e.stateNode.containerInfo),qi(e,t,a),yr=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=nu,nu=16777216,qi(e,t,a),nu=n):qi(e,t,a));break;default:qi(e,t,a)}}function kL(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ks(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];qt=n,LL(n,e)}kL(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)CL(e),e=e.sibling}function CL(e){switch(e.tag){case 0:case 11:case 15:Ks(e),e.flags&2048&&no(9,e,e.return);break;case 3:Ks(e);break;case 12:Ks(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xd(e)):Ks(e);break;default:Ks(e)}}function Xd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];qt=n,LL(n,e)}kL(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:no(8,t,t.return),Xd(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Xd(t));break;default:Xd(t)}e=e.sibling}}function LL(e,t){for(;qt!==null;){var a=qt;switch(a.tag){case 0:case 11:case 15:no(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:Uu(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,qt=n;else e:for(a=e;qt!==null;){n=qt;var r=n.sibling,o=n.return;if(vL(n),n===a){qt=null;break e}if(r!==null){r.return=o,qt=r;break e}qt=o}}}var k4={getCacheForType:function(e){var t=Qt(Dt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(Dt).controller.signal}},C4=typeof WeakMap=="function"?WeakMap:Map,je=0,at=null,$e=null,De=0,qe=0,$a=null,Zn=!1,Cl=!1,sy=!1,gn=0,bt=0,oo=0,Go=0,uy=0,Da=0,vl=0,hu=null,ba=null,sv=!1,Ff=0,TL=0,xf=1/0,bf=null,Kn=null,Pt=0,Yn=null,yl=null,dn=0,uv=0,cv=null,AL=null,gu=0,dv=null;function Ua(){return(je&2)!==0&&De!==0?De&-De:ge.T!==null?dy():UC()}function EL(){if(Da===0)if((De&536870912)===0||Re){var e=_d;_d<<=1,(_d&3932160)===0&&(_d=262144),Da=e}else Da=536870912;return e=ja.current,e!==null&&(e.flags|=32),Da}function Sa(e,t,a){(e===at&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Hn(e,De,Da,!1)),Ou(e,a),((je&2)===0||e!==at)&&(e===at&&((je&2)===0&&(Go|=a),bt===4&&Hn(e,De,Da,!1)),Or(e))}function $L(e,t,a){if((je&6)!==0)throw Error(N(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Du(e,t),r=n?A4(e,t):Sg(e,t,!0),o=n;do{if(r===0){Cl&&!n&&Hn(e,t,0,!1);break}else{if(a=e.current.alternate,o&&!L4(a)){r=Sg(e,t,!1),o=!1;continue}if(r===2){if(o=t,e.errorRecoveryDisabledLanes&o)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;r=hu;var s=l.current.memoizedState.isDehydrated;if(s&&(xl(l,i).flags|=256),i=Sg(l,i,!1),i!==2){if(sy&&!s){l.errorRecoveryDisabledLanes|=o,Go|=o,r=4;break e}o=ba,ba=r,o!==null&&(ba===null?ba=o:ba.push.apply(ba,o))}r=i}if(o=!1,r!==2)continue}}if(r===1){xl(e,0),Hn(e,t,0,!0);break}e:{switch(n=e,o=r,o){case 0:case 1:throw Error(N(345));case 4:if((t&4194048)!==t)break;case 6:Hn(n,t,Da,!Zn);break e;case 2:ba=null;break;case 3:case 5:break;default:throw Error(N(329))}if((t&62914560)===t&&(r=Ff+300-Oa(),10<r)){if(Hn(n,t,Da,!Zn),$f(n,0,!0)!==0)break e;dn=t,n.timeoutHandle=KL(J0.bind(null,n,a,ba,bf,sv,t,Da,Go,vl,Zn,o,"Throttled",-0,0),r);break e}J0(n,a,ba,bf,sv,t,Da,Go,vl,Zn,o,null,-0,0)}}break}while(!0);Or(e)}function J0(e,t,a,n,r,o,i,l,s,u,c,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},_L(t,o,d);var m=(o&62914560)===o?Ff-Oa():(o&4194048)===o?TL-Oa():0;if(m=uP(d,m),m!==null){dn=o,e.cancelPendingCommit=m(K0.bind(null,e,t,o,a,n,r,i,l,s,c,d,null,f,p)),Hn(e,o,i,!u);return}}K0(e,t,o,a,n,r,i,l,s)}function L4(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],o=r.getSnapshot;r=r.value;try{if(!Na(o(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Hn(e,t,a,n){t&=~uy,t&=~Go,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var o=31-Pa(r),i=1<<o;n[o]=-1,r&=~i}a!==0&&OC(e,a,t)}function qf(){return(je&6)===0?(Bu(0,!1),!1):!0}function cy(){if($e!==null){if(qe===0)var e=$e.return;else e=$e,sn=ri=null,Jv(e),sl=null,_u=0,e=$e;for(;e!==null;)cL(e.alternate,e),e=e.return;$e=null}}function xl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,H4(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),dn=0,cy(),at=e,$e=a=un(e.current,null),De=t,qe=0,$a=null,Zn=!1,Cl=Du(e,t),sy=!1,vl=Da=uy=Go=oo=bt=0,ba=hu=null,sv=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Pa(n),o=1<<r;t|=e[r],n&=~o}return gn=t,Of(),a}function ML(e,t){Se=null,ge.H=Cu,t===kl||t===Pf?(t=L0(),qe=3):t===Fv?(t=L0(),qe=4):qe=t===ny?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,$a=t,$e===null&&(bt=1,gf(e,tr(t,e.current)))}function zL(){var e=ja.current;return e===null?!0:(De&4194048)===De?rr===null:(De&62914560)===De||(De&536870912)!==0?e===rr:!1}function DL(){var e=ge.H;return ge.H=Cu,e===null?Cu:e}function OL(){var e=ge.A;return ge.A=k4,e}function Sf(){bt=4,Zn||(De&4194048)!==De&&ja.current!==null||(Cl=!0),(oo&134217727)===0&&(Go&134217727)===0||at===null||Hn(at,De,Da,!1)}function Sg(e,t,a){var n=je;je|=2;var r=DL(),o=OL();(at!==e||De!==t)&&(bf=null,xl(e,t)),t=!1;var i=bt;e:do try{if(qe!==0&&$e!==null){var l=$e,s=$a;switch(qe){case 8:cy(),i=6;break e;case 3:case 2:case 9:case 6:ja.current===null&&(t=!0);var u=qe;if(qe=0,$a=null,rl(e,l,s,u),a&&Cl){i=0;break e}break;default:u=qe,qe=0,$a=null,rl(e,l,s,u)}}T4(),i=bt;break}catch(c){ML(e,c)}while(!0);return t&&e.shellSuspendCounter++,sn=ri=null,je=n,ge.H=r,ge.A=o,$e===null&&(at=null,De=0,Of()),i}function T4(){for(;$e!==null;)RL($e)}function A4(e,t){var a=je;je|=2;var n=DL(),r=OL();at!==e||De!==t?(bf=null,xf=Oa()+500,xl(e,t)):Cl=Du(e,t);e:do try{if(qe!==0&&$e!==null){t=$e;var o=$a;t:switch(qe){case 1:qe=0,$a=null,rl(e,t,o,1);break;case 2:case 9:if(C0(o)){qe=0,$a=null,X0(t);break}t=function(){qe!==2&&qe!==9||at!==e||(qe=7),Or(e)},o.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:C0(o)?(qe=0,$a=null,X0(t)):(qe=0,$a=null,rl(e,t,o,7));break;case 5:var i=null;switch($e.tag){case 26:i=$e.memoizedState;case 5:case 27:var l=$e;if(i?aT(i):l.stateNode.complete){qe=0,$a=null;var s=l.sibling;if(s!==null)$e=s;else{var u=l.return;u!==null?($e=u,Zf(u)):$e=null}break t}}qe=0,$a=null,rl(e,t,o,5);break;case 6:qe=0,$a=null,rl(e,t,o,6);break;case 8:cy(),bt=6;break e;default:throw Error(N(462))}}E4();break}catch(c){ML(e,c)}while(!0);return sn=ri=null,ge.H=n,ge.A=r,je=a,$e!==null?0:(at=null,De=0,Of(),bt)}function E4(){for(;$e!==null&&!QO();)RL($e)}function RL(e){var t=uL(e.alternate,e,gn);e.memoizedProps=e.pendingProps,t===null?Zf(e):$e=t}function X0(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=q0(a,t,t.pendingProps,t.type,void 0,De);break;case 11:t=q0(a,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:Jv(t);default:cL(a,t),t=$e=c1(t,gn),t=uL(a,t,gn)}e.memoizedProps=e.pendingProps,t===null?Zf(e):$e=t}function rl(e,t,a,n){sn=ri=null,Jv(t),sl=null,_u=0;var r=t.return;try{if(y4(e,r,t,a,De)){bt=1,gf(e,tr(a,e.current)),$e=null;return}}catch(o){if(r!==null)throw $e=r,o;bt=1,gf(e,tr(a,e.current)),$e=null;return}t.flags&32768?(Re||n===1?e=!0:Cl||(De&536870912)!==0?e=!1:(Zn=e=!0,(n===2||n===9||n===3||n===6)&&(n=ja.current,n!==null&&n.tag===13&&(n.flags|=16384))),PL(t,e)):Zf(t)}function Zf(e){var t=e;do{if((t.flags&32768)!==0){PL(t,Zn);return}e=t.return;var a=S4(t.alternate,t,gn);if(a!==null){$e=a;return}if(t=t.sibling,t!==null){$e=t;return}$e=t=e}while(t!==null);bt===0&&(bt=5)}function PL(e,t){do{var a=w4(e.alternate,e);if(a!==null){a.flags&=32767,$e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){$e=e;return}$e=e=a}while(e!==null);bt=6,$e=null}function K0(e,t,a,n,r,o,i,l,s){e.cancelPendingCommit=null;do Hf();while(Pt!==0);if((je&6)!==0)throw Error(N(327));if(t!==null){if(t===e.current)throw Error(N(177));if(o=t.lanes|t.childLanes,o|=Ov,uR(e,a,o,i,l,s),e===at&&($e=at=null,De=0),yl=t,Yn=e,dn=a,uv=o,cv=r,AL=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,D4(nf,function(){return FL(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=ge.T,ge.T=null,r=Be.p,Be.p=2,i=je,je|=4;try{I4(e,t,a)}finally{je=i,Be.p=r,ge.T=n}}Pt=1,UL(),NL(),jL()}}function UL(){if(Pt===1){Pt=0;var e=Yn,t=yl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=ge.T,ge.T=null;var n=Be.p;Be.p=2;var r=je;je|=4;try{SL(t,e);var o=hv,i=a1(e.containerInfo),l=o.focusedElem,s=o.selectionRange;if(i!==l&&l&&l.ownerDocument&&t1(l.ownerDocument.documentElement,l)){if(s!==null&&Dv(l)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(c,l.value.length);else{var d=l.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=l.textContent.length,S=Math.min(s.start,m),C=s.end===void 0?S:Math.min(s.end,m);!p.extend&&S>C&&(i=C,C=S,S=i);var h=x0(l,S),y=x0(l,C);if(h&&y&&(p.rangeCount!==1||p.anchorNode!==h.node||p.anchorOffset!==h.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var g=d.createRange();g.setStart(h.node,h.offset),p.removeAllRanges(),S>C?(p.addRange(g),p.extend(y.node,y.offset)):(g.setEnd(y.node,y.offset),p.addRange(g))}}}}for(d=[],p=l;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<d.length;l++){var b=d[l];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Af=!!mv,hv=mv=null}finally{je=r,Be.p=n,ge.T=a}}e.current=t,Pt=2}}function NL(){if(Pt===2){Pt=0;var e=Yn,t=yl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=ge.T,ge.T=null;var n=Be.p;Be.p=2;var r=je;je|=4;try{gL(e,t.alternate,t)}finally{je=r,Be.p=n,ge.T=a}}Pt=3}}function jL(){if(Pt===4||Pt===3){Pt=0,eR();var e=Yn,t=yl,a=dn,n=AL;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Pt=5:(Pt=0,yl=Yn=null,BL(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Kn=null),Lv(a),t=t.stateNode,Ra&&typeof Ra.onCommitFiberRoot=="function")try{Ra.onCommitFiberRoot(zu,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=ge.T,r=Be.p,Be.p=2,ge.T=null;try{for(var o=e.onRecoverableError,i=0;i<n.length;i++){var l=n[i];o(l.value,{componentStack:l.stack})}}finally{ge.T=t,Be.p=r}}(dn&3)!==0&&Hf(),Or(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===dv?gu++:(gu=0,dv=e):gu=0,Bu(0,!1)}}function BL(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Uu(t)))}function Hf(){return UL(),NL(),jL(),FL()}function FL(){if(Pt!==5)return!1;var e=Yn,t=uv;uv=0;var a=Lv(dn),n=ge.T,r=Be.p;try{Be.p=32>a?32:a,ge.T=null,a=cv,cv=null;var o=Yn,i=dn;if(Pt=0,yl=Yn=null,dn=0,(je&6)!==0)throw Error(N(331));var l=je;if(je|=4,CL(o.current),IL(o,o.current,i,a),je=l,Bu(0,!1),Ra&&typeof Ra.onPostCommitFiberRoot=="function")try{Ra.onPostCommitFiberRoot(zu,o)}catch{}return!0}finally{Be.p=r,ge.T=n,BL(e,t)}}function Y0(e,t,a){t=tr(a,t),t=nv(e.stateNode,t,2),e=Xn(e,t,2),e!==null&&(Ou(e,2),Or(e))}function Ze(e,t,a){if(e.tag===3)Y0(e,e,a);else for(;t!==null;){if(t.tag===3){Y0(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Kn===null||!Kn.has(n))){e=tr(a,e),a=rL(2),n=Xn(t,a,2),n!==null&&(nL(a,n,t,e),Ou(n,2),Or(n));break}}t=t.return}}function wg(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new C4;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(sy=!0,r.add(a),e=$4.bind(null,e,t,a),t.then(e,e))}function $4(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,at===e&&(De&a)===a&&(bt===4||bt===3&&(De&62914560)===De&&300>Oa()-Ff?(je&2)===0&&xl(e,0):uy|=a,vl===De&&(vl=0)),Or(e)}function qL(e,t){t===0&&(t=DC()),e=ai(e,t),e!==null&&(Ou(e,t),Or(e))}function M4(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),qL(e,a)}function z4(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(N(314))}n!==null&&n.delete(t),qL(e,a)}function D4(e,t){return kv(e,t)}var wf=null,Hi=null,fv=!1,If=!1,Ig=!1,Vn=0;function Or(e){e!==Hi&&e.next===null&&(Hi===null?wf=Hi=e:Hi=Hi.next=e),If=!0,fv||(fv=!0,R4())}function Bu(e,t){if(!Ig&&If){Ig=!0;do for(var a=!1,n=wf;n!==null;){if(!t)if(e!==0){var r=n.pendingLanes;if(r===0)var o=0;else{var i=n.suspendedLanes,l=n.pingedLanes;o=(1<<31-Pa(42|e)+1)-1,o&=r&~(i&~l),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(a=!0,Q0(n,o))}else o=De,o=$f(n,n===at?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(o&3)===0||Du(n,o)||(a=!0,Q0(n,o));n=n.next}while(a);Ig=!1}}function O4(){ZL()}function ZL(){If=fv=!1;var e=0;Vn!==0&&Z4()&&(e=Vn);for(var t=Oa(),a=null,n=wf;n!==null;){var r=n.next,o=HL(n,t);o===0?(n.next=null,a===null?wf=r:a.next=r,r===null&&(Hi=a)):(a=n,(e!==0||(o&3)!==0)&&(If=!0)),n=r}Pt!==0&&Pt!==5||Bu(e,!1),Vn!==0&&(Vn=0)}function HL(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var i=31-Pa(o),l=1<<i,s=r[i];s===-1?((l&a)===0||(l&n)!==0)&&(r[i]=sR(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}if(t=at,a=De,a=$f(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Yh(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Du(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Yh(n),Lv(a)){case 2:case 8:a=MC;break;case 32:a=nf;break;case 268435456:a=zC;break;default:a=nf}return n=VL.bind(null,e),a=kv(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Yh(n),e.callbackPriority=2,e.callbackNode=null,2}function VL(e,t){if(Pt!==0&&Pt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Hf()&&e.callbackNode!==a)return null;var n=De;return n=$f(e,e===at?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:($L(e,n,t),HL(e,Oa()),e.callbackNode!=null&&e.callbackNode===a?VL.bind(null,e):null)}function Q0(e,t){if(Hf())return null;$L(e,t,!0)}function R4(){V4(function(){(je&6)!==0?kv($C,O4):ZL()})}function dy(){if(Vn===0){var e=ml;e===0&&(e=Id,Id<<=1,(Id&261888)===0&&(Id=256)),Vn=e}return Vn}function eC(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Bd(""+e)}function tC(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function P4(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var o=eC((r[wa]||null).action),i=n.submitter;i&&(t=(t=i[wa]||null)?eC(t.formAction):i.getAttribute("formAction"),t!==null&&(o=t,i=null));var l=new Mf("action","action",null,n,r);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(Vn!==0){var s=i?tC(r,i):new FormData(r);av(a,{pending:!0,data:s,method:r.method,action:o},null,s)}}else typeof o=="function"&&(l.preventDefault(),s=i?tC(r,i):new FormData(r),av(a,{pending:!0,data:s,method:r.method,action:o},o,s))},currentTarget:r}]})}}for(Od=0;Od<Zg.length;Od++)Rd=Zg[Od],aC=Rd.toLowerCase(),rC=Rd[0].toUpperCase()+Rd.slice(1),xr(aC,"on"+rC);var Rd,aC,rC,Od;xr(n1,"onAnimationEnd");xr(o1,"onAnimationIteration");xr(i1,"onAnimationStart");xr("dblclick","onDoubleClick");xr("focusin","onFocus");xr("focusout","onBlur");xr(t4,"onTransitionRun");xr(a4,"onTransitionStart");xr(r4,"onTransitionCancel");xr(l1,"onTransitionEnd");fl("onMouseEnter",["mouseout","mouseover"]);fl("onMouseLeave",["mouseout","mouseover"]);fl("onPointerEnter",["pointerout","pointerover"]);fl("onPointerLeave",["pointerout","pointerover"]);Qo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qo("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),U4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lu));function GL(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var i=n.length-1;0<=i;i--){var l=n[i],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){lf(c)}r.currentTarget=null,o=s}else for(i=0;i<n.length;i++){if(l=n[i],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&r.isPropagationStopped())break e;o=l,r.currentTarget=u;try{o(r)}catch(c){lf(c)}r.currentTarget=null,o=s}}}}function Ee(e,t){var a=t[Rg];a===void 0&&(a=t[Rg]=new Set);var n=e+"__bubble";a.has(n)||(WL(t,e,2,!1),a.add(n))}function _g(e,t,a){var n=0;t&&(n|=4),WL(a,e,n,t)}var Pd="_reactListening"+Math.random().toString(36).slice(2);function fy(e){if(!e[Pd]){e[Pd]=!0,NC.forEach(function(a){a!=="selectionchange"&&(U4.has(a)||_g(a,!1,e),_g(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pd]||(t[Pd]=!0,_g("selectionchange",!1,t))}}function WL(e,t,a,n){switch(lT(t)){case 2:var r=fP;break;case 8:r=pP;break;default:r=gy}a=r.bind(null,t,a,e),r=void 0,!Bg||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function kg(e,t,a,n,r){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var l=n.stateNode.containerInfo;if(l===r)break;if(i===4)for(i=n.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;l!==null;){if(i=Wi(l),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){n=o=i;continue e}l=l.parentNode}}n=n.return}GC(function(){var u=o,c=Ev(a),d=[];e:{var f=s1.get(e);if(f!==void 0){var p=Mf,m=e;switch(e){case"keypress":if(qd(a)===0)break e;case"keydown":case"keyup":p=zR;break;case"focusin":m="focus",p=rg;break;case"focusout":m="blur",p=rg;break;case"beforeblur":case"afterblur":p=rg;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=c0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=SR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=RR;break;case n1:case o1:case i1:p=_R;break;case l1:p=UR;break;case"scroll":case"scrollend":p=xR;break;case"wheel":p=jR;break;case"copy":case"cut":case"paste":p=CR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=f0;break;case"toggle":case"beforetoggle":p=FR}var S=(t&4)!==0,C=!S&&(e==="scroll"||e==="scrollend"),h=S?f!==null?f+"Capture":null:f;S=[];for(var y=u,g;y!==null;){var b=y;if(g=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||g===null||h===null||(b=xu(y,h),b!=null&&S.push(Tu(y,b,g))),C)break;y=y.return}0<S.length&&(f=new p(f,m,null,a,c),d.push({event:f,listeners:S}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&a!==jg&&(m=a.relatedTarget||a.fromElement)&&(Wi(m)||m[wl]))break e;if((p||f)&&(f=c.window===c?c:(f=c.ownerDocument)?f.defaultView||f.parentWindow:window,p?(m=a.relatedTarget||a.toElement,p=u,m=m?Wi(m):null,m!==null&&(C=Mu(m),S=m.tag,m!==C||S!==5&&S!==27&&S!==6)&&(m=null)):(p=null,m=u),p!==m)){if(S=c0,b="onMouseLeave",h="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(S=f0,b="onPointerLeave",h="onPointerEnter",y="pointer"),C=p==null?f:au(p),g=m==null?f:au(m),f=new S(b,y+"leave",p,a,c),f.target=C,f.relatedTarget=g,b=null,Wi(c)===u&&(S=new S(h,y+"enter",m,a,c),S.target=g,S.relatedTarget=C,b=S),C=b,p&&m)t:{for(S=N4,h=p,y=m,g=0,b=h;b;b=S(b))g++;b=0;for(var L=y;L;L=S(L))b++;for(;0<g-b;)h=S(h),g--;for(;0<b-g;)y=S(y),b--;for(;g--;){if(h===y||y!==null&&h===y.alternate){S=h;break t}h=S(h),y=S(y)}S=null}else S=null;p!==null&&nC(d,f,p,S,!1),m!==null&&C!==null&&nC(d,C,m,S,!0)}}e:{if(f=u?au(u):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var x=g0;else if(h0(f))if(QC)x=YR;else{x=XR;var w=JR}else p=f.nodeName,!p||p.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&Av(u.elementType)&&(x=g0):x=KR;if(x&&(x=x(e,u))){YC(d,x,a,c);break e}w&&w(e,f,u),e==="focusout"&&u&&f.type==="number"&&u.memoizedProps.value!=null&&Ng(f,"number",f.value)}switch(w=u?au(u):window,e){case"focusin":(h0(w)||w.contentEditable==="true")&&(Ki=w,Fg=u,lu=null);break;case"focusout":lu=Fg=Ki=null;break;case"mousedown":qg=!0;break;case"contextmenu":case"mouseup":case"dragend":qg=!1,b0(d,a,c);break;case"selectionchange":if(e4)break;case"keydown":case"keyup":b0(d,a,c)}var I;if(zv)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Xi?XC(e,a)&&(E="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(E="onCompositionStart");E&&(JC&&a.locale!=="ko"&&(Xi||E!=="onCompositionStart"?E==="onCompositionEnd"&&Xi&&(I=WC()):(qn=c,$v="value"in qn?qn.value:qn.textContent,Xi=!0)),w=_f(u,E),0<w.length&&(E=new d0(E,e,null,a,c),d.push({event:E,listeners:w}),I?E.data=I:(I=KC(a),I!==null&&(E.data=I)))),(I=ZR?HR(e,a):VR(e,a))&&(E=_f(u,"onBeforeInput"),0<E.length&&(w=new d0("onBeforeInput","beforeinput",null,a,c),d.push({event:w,listeners:E}),w.data=I)),P4(d,e,u,a,c)}GL(d,t)})}function Tu(e,t,a){return{instance:e,listener:t,currentTarget:a}}function _f(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,o=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||o===null||(r=xu(e,a),r!=null&&n.unshift(Tu(e,r,o)),r=xu(e,t),r!=null&&n.push(Tu(e,r,o))),e.tag===3)return n;e=e.return}return[]}function N4(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function nC(e,t,a,n,r){for(var o=t._reactName,i=[];a!==null&&a!==n;){var l=a,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===n)break;l!==5&&l!==26&&l!==27||u===null||(s=u,r?(u=xu(a,o),u!=null&&i.unshift(Tu(a,u,s))):r||(u=xu(a,o),u!=null&&i.push(Tu(a,u,s)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var j4=/\r\n?/g,B4=/\u0000|\uFFFD/g;function oC(e){return(typeof e=="string"?e:""+e).replace(j4,`
|
|
10
|
-
`).replace(B4,"")}function JL(e,t){return t=oC(t),oC(e)===t}function We(e,t,a,n,r,o){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||pl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&pl(e,""+n);break;case"className":Cd(e,"class",n);break;case"tabIndex":Cd(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":Cd(e,a,n);break;case"style":VC(e,n,o);break;case"data":if(t!=="object"){Cd(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Bd(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(a==="formAction"?(t!=="input"&&We(e,t,"name",r.name,r,null),We(e,t,"formEncType",r.formEncType,r,null),We(e,t,"formMethod",r.formMethod,r,null),We(e,t,"formTarget",r.formTarget,r,null)):(We(e,t,"encType",r.encType,r,null),We(e,t,"method",r.method,r,null),We(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=Bd(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=ln);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(N(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(N(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=Bd(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),jd(e,"popover",n);break;case"xlinkActuate":Yr(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Yr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Yr(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Yr(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Yr(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Yr(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Yr(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Yr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Yr(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":jd(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=vR.get(a)||a,jd(e,a,n))}}function pv(e,t,a,n,r,o){switch(a){case"style":VC(e,n,o);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(N(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(N(60));e.innerHTML=a}}break;case"children":typeof n=="string"?pl(e,n):(typeof n=="number"||typeof n=="bigint")&&pl(e,""+n);break;case"onScroll":n!=null&&Ee("scroll",e);break;case"onScrollEnd":n!=null&&Ee("scrollend",e);break;case"onClick":n!=null&&(e.onclick=ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jC.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),o=e[wa]||null,o=o!=null?o[a]:null,typeof o=="function"&&e.removeEventListener(t,o,r),typeof n=="function")){typeof o!="function"&&o!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):jd(e,a,n)}}}function ea(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var n=!1,r=!1,o;for(o in a)if(a.hasOwnProperty(o)){var i=a[o];if(i!=null)switch(o){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:We(e,t,o,i,a,null)}}r&&We(e,t,"srcSet",a.srcSet,a,null),n&&We(e,t,"src",a.src,a,null);return;case"input":Ee("invalid",e);var l=o=i=r=null,s=null,u=null;for(n in a)if(a.hasOwnProperty(n)){var c=a[n];if(c!=null)switch(n){case"name":r=c;break;case"type":i=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":o=c;break;case"defaultValue":l=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(N(137,t));break;default:We(e,t,n,c,a,null)}}qC(e,o,l,s,u,i,r,!1);return;case"select":Ee("invalid",e),n=i=o=null;for(r in a)if(a.hasOwnProperty(r)&&(l=a[r],l!=null))switch(r){case"value":o=l;break;case"defaultValue":i=l;break;case"multiple":n=l;default:We(e,t,r,l,a,null)}t=o,a=i,e.multiple=!!n,t!=null?ol(e,!!n,t,!1):a!=null&&ol(e,!!n,a,!0);return;case"textarea":Ee("invalid",e),o=r=n=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":n=l;break;case"defaultValue":r=l;break;case"children":o=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(N(91));break;default:We(e,t,i,l,a,null)}HC(e,n,r,o);return;case"option":for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null)&&(s==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":We(e,t,s,n,a,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(n=0;n<Lu.length;n++)Ee(Lu[n],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in a)if(a.hasOwnProperty(u)&&(n=a[u],n!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(N(137,t));default:We(e,t,u,n,a,null)}return;default:if(Av(t)){for(c in a)a.hasOwnProperty(c)&&(n=a[c],n!==void 0&&pv(e,t,c,n,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null&&We(e,t,l,n,a,null))}function F4(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,o=null,i=null,l=null,s=null,u=null,c=null;for(p in a){var d=a[p];if(a.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=d;default:n.hasOwnProperty(p)||We(e,t,p,null,n,d)}}for(var f in n){var p=n[f];if(d=a[f],n.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case"type":o=p;break;case"name":r=p;break;case"checked":u=p;break;case"defaultChecked":c=p;break;case"value":i=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(N(137,t));break;default:p!==d&&We(e,t,f,p,n,d)}}Ug(e,i,l,s,u,c,o,r);return;case"select":p=i=l=f=null;for(o in a)if(s=a[o],a.hasOwnProperty(o)&&s!=null)switch(o){case"value":break;case"multiple":p=s;default:n.hasOwnProperty(o)||We(e,t,o,null,n,s)}for(r in n)if(o=n[r],s=a[r],n.hasOwnProperty(r)&&(o!=null||s!=null))switch(r){case"value":f=o;break;case"defaultValue":l=o;break;case"multiple":i=o;default:o!==s&&We(e,t,r,o,n,s)}t=l,a=i,n=p,f!=null?ol(e,!!a,f,!1):!!n!=!!a&&(t!=null?ol(e,!!a,t,!0):ol(e,!!a,a?[]:"",!1));return;case"textarea":p=f=null;for(l in a)if(r=a[l],a.hasOwnProperty(l)&&r!=null&&!n.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:We(e,t,l,null,n,r)}for(i in n)if(r=n[i],o=a[i],n.hasOwnProperty(i)&&(r!=null||o!=null))switch(i){case"value":f=r;break;case"defaultValue":p=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(N(91));break;default:r!==o&&We(e,t,i,r,n,o)}ZC(e,f,p);return;case"option":for(var m in a)f=a[m],a.hasOwnProperty(m)&&f!=null&&!n.hasOwnProperty(m)&&(m==="selected"?e.selected=!1:We(e,t,m,null,n,f));for(s in n)f=n[s],p=a[s],n.hasOwnProperty(s)&&f!==p&&(f!=null||p!=null)&&(s==="selected"?e.selected=f&&typeof f!="function"&&typeof f!="symbol":We(e,t,s,f,n,p));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var S in a)f=a[S],a.hasOwnProperty(S)&&f!=null&&!n.hasOwnProperty(S)&&We(e,t,S,null,n,f);for(u in n)if(f=n[u],p=a[u],n.hasOwnProperty(u)&&f!==p&&(f!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(N(137,t));break;default:We(e,t,u,f,n,p)}return;default:if(Av(t)){for(var C in a)f=a[C],a.hasOwnProperty(C)&&f!==void 0&&!n.hasOwnProperty(C)&&pv(e,t,C,void 0,n,f);for(c in n)f=n[c],p=a[c],!n.hasOwnProperty(c)||f===p||f===void 0&&p===void 0||pv(e,t,c,f,n,p);return}}for(var h in a)f=a[h],a.hasOwnProperty(h)&&f!=null&&!n.hasOwnProperty(h)&&We(e,t,h,null,n,f);for(d in n)f=n[d],p=a[d],!n.hasOwnProperty(d)||f===p||f==null&&p==null||We(e,t,d,f,n,p)}function iC(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function q4(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],o=r.transferSize,i=r.initiatorType,l=r.duration;if(o&&l&&iC(i)){for(i=0,l=r.responseEnd,n+=1;n<a.length;n++){var s=a[n],u=s.startTime;if(u>l)break;var c=s.transferSize,d=s.initiatorType;c&&iC(d)&&(s=s.responseEnd,i+=c*(s<l?1:(l-u)/(s-u)))}if(--n,t+=8*(o+i)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var mv=null,hv=null;function kf(e){return e.nodeType===9?e:e.ownerDocument}function lC(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function XL(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function gv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cg=null;function Z4(){var e=window.event;return e&&e.type==="popstate"?e===Cg?!1:(Cg=e,!0):(Cg=null,!1)}var KL=typeof setTimeout=="function"?setTimeout:void 0,H4=typeof clearTimeout=="function"?clearTimeout:void 0,sC=typeof Promise=="function"?Promise:void 0,V4=typeof queueMicrotask=="function"?queueMicrotask:typeof sC<"u"?function(e){return sC.resolve(null).then(e).catch(G4)}:KL;function G4(e){setTimeout(function(){throw e})}function lo(e){return e==="head"}function uC(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),Sl(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")vu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,vu(a);for(var o=a.firstChild;o;){var i=o.nextSibling,l=o.nodeName;o[Ru]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&o.rel.toLowerCase()==="stylesheet"||a.removeChild(o),o=i}}else a==="body"&&vu(e.ownerDocument.body);a=r}while(a);Sl(t)}function cC(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function vv(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":vv(a),Tv(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function W4(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Ru])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=nr(e.nextSibling),e===null)break}return null}function J4(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=nr(e.nextSibling),e===null))return null;return e}function YL(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=nr(e.nextSibling),e===null))return null;return e}function yv(e){return e.data==="$?"||e.data==="$~"}function xv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function X4(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function nr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var bv=null;function dC(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return nr(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function fC(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function QL(e,t,a){switch(t=kf(a),e){case"html":if(e=t.documentElement,!e)throw Error(N(452));return e;case"head":if(e=t.head,!e)throw Error(N(453));return e;case"body":if(e=t.body,!e)throw Error(N(454));return e;default:throw Error(N(451))}}function vu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Tv(e)}var or=new Map,pC=new Set;function Cf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var vn=Be.d;Be.d={f:K4,r:Y4,D:Q4,C:eP,L:tP,m:aP,X:nP,S:rP,M:oP};function K4(){var e=vn.f(),t=qf();return e||t}function Y4(e){var t=Il(e);t!==null&&t.tag===5&&t.type==="form"?V1(t):vn.r(e)}var Ll=typeof document>"u"?null:document;function eT(e,t,a){var n=Ll;if(n&&typeof t=="string"&&t){var r=er(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),pC.has(r)||(pC.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),ea(t,"link",e),Zt(t),n.head.appendChild(t)))}}function Q4(e){vn.D(e),eT("dns-prefetch",e,null)}function eP(e,t){vn.C(e,t),eT("preconnect",e,t)}function tP(e,t,a){vn.L(e,t,a);var n=Ll;if(n&&e&&t){var r='link[rel="preload"][as="'+er(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+er(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+er(a.imageSizes)+'"]')):r+='[href="'+er(e)+'"]';var o=r;switch(t){case"style":o=bl(e);break;case"script":o=Tl(e)}or.has(o)||(e=st({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),or.set(o,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Fu(o))||t==="script"&&n.querySelector(qu(o))||(t=n.createElement("link"),ea(t,"link",e),Zt(t),n.head.appendChild(t)))}}function aP(e,t){vn.m(e,t);var a=Ll;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+er(n)+'"][href="'+er(e)+'"]',o=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Tl(e)}if(!or.has(o)&&(e=st({rel:"modulepreload",href:e},t),or.set(o,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(qu(o)))return}n=a.createElement("link"),ea(n,"link",e),Zt(n),a.head.appendChild(n)}}}function rP(e,t,a){vn.S(e,t,a);var n=Ll;if(n&&e){var r=nl(n).hoistableStyles,o=bl(e);t=t||"default";var i=r.get(o);if(!i){var l={loading:0,preload:null};if(i=n.querySelector(Fu(o)))l.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},a),(a=or.get(o))&&py(e,a);var s=i=n.createElement("link");Zt(s),ea(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Kd(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:l},r.set(o,i)}}}function nP(e,t){vn.X(e,t);var a=Ll;if(a&&e){var n=nl(a).hoistableScripts,r=Tl(e),o=n.get(r);o||(o=a.querySelector(qu(r)),o||(e=st({src:e,async:!0},t),(t=or.get(r))&&my(e,t),o=a.createElement("script"),Zt(o),ea(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function oP(e,t){vn.M(e,t);var a=Ll;if(a&&e){var n=nl(a).hoistableScripts,r=Tl(e),o=n.get(r);o||(o=a.querySelector(qu(r)),o||(e=st({src:e,async:!0,type:"module"},t),(t=or.get(r))&&my(e,t),o=a.createElement("script"),Zt(o),ea(o,"link",e),a.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},n.set(r,o))}}function mC(e,t,a,n){var r=(r=Gn.current)?Cf(r):null;if(!r)throw Error(N(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=bl(a.href),a=nl(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=bl(a.href);var o=nl(r).hoistableStyles,i=o.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,i),(o=r.querySelector(Fu(e)))&&!o._p&&(i.instance=o,i.state.loading=5),or.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},or.set(e,a),o||iP(r,e,a,i.state))),t&&n===null)throw Error(N(528,""));return i}if(t&&n!==null)throw Error(N(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Tl(a),a=nl(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(N(444,e))}}function bl(e){return'href="'+er(e)+'"'}function Fu(e){return'link[rel="stylesheet"]['+e+"]"}function tT(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function iP(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),ea(t,"link",a),Zt(t),e.head.appendChild(t))}function Tl(e){return'[src="'+er(e)+'"]'}function qu(e){return"script[async]"+e}function hC(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+er(a.href)+'"]');if(n)return t.instance=n,Zt(n),n;var r=st({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Zt(n),ea(n,"style",r),Kd(n,a.precedence,e),t.instance=n;case"stylesheet":r=bl(a.href);var o=e.querySelector(Fu(r));if(o)return t.state.loading|=4,t.instance=o,Zt(o),o;n=tT(a),(r=or.get(r))&&py(n,r),o=(e.ownerDocument||e).createElement("link"),Zt(o);var i=o;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),ea(o,"link",n),t.state.loading|=4,Kd(o,a.precedence,e),t.instance=o;case"script":return o=Tl(a.src),(r=e.querySelector(qu(o)))?(t.instance=r,Zt(r),r):(n=a,(r=or.get(o))&&(n=st({},a),my(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),Zt(r),ea(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(N(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,Kd(n,a.precedence,e));return t.instance}function Kd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,o=r,i=0;i<n.length;i++){var l=n[i];if(l.dataset.precedence===t)o=l;else if(o!==r)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function py(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function my(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yd=null;function gC(e,t,a){if(Yd===null){var n=new Map,r=Yd=new Map;r.set(a,n)}else r=Yd,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var o=a[r];if(!(o[Ru]||o[Kt]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var i=o.getAttribute(t)||"";i=e+i;var l=n.get(i);l?l.push(o):n.set(i,[o])}}return n}function vC(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function lP(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function aT(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function sP(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=bl(n.href),o=t.querySelector(Fu(r));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Lf.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=o,Zt(o);return}o=t.ownerDocument||t,n=tT(n),(r=or.get(r))&&py(n,r),o=o.createElement("link"),Zt(o);var i=o;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),ea(o,"link",n),a.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Lf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Lg=0;function uP(e,t){return e.stylesheets&&e.count===0&&Qd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&Lg===0&&(Lg=62500*q4());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>Lg?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function Lf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tf=null;function Qd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tf=new Map,t.forEach(cP,e),Tf=null,Lf.call(e))}function cP(e,t){if(!(t.state.loading&4)){var a=Tf.get(e);if(a)var n=a.get(null);else{a=new Map,Tf.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<r.length;o++){var i=r[o];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),n=i)}n&&a.set(null,n)}r=t.instance,i=r.getAttribute("data-precedence"),o=a.get(i)||n,o===n&&a.set(null,r),a.set(i,r),this.count++,n=Lf.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),o?o.parentNode.insertBefore(r,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Au={$$typeof:on,Provider:null,Consumer:null,_currentValue:qo,_currentValue2:qo,_threadCount:0};function dP(e,t,a,n,r,o,i,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qh(0),this.hiddenUpdates=Qh(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=o,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function rT(e,t,a,n,r,o,i,l,s,u,c,d){return e=new dP(e,t,a,i,s,u,c,d,l),t=1,o===!0&&(t|=24),o=za(3,null,null,t),e.current=o,o.stateNode=e,t=jv(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:n,isDehydrated:a,cache:t},qv(o),e}function nT(e){return e?(e=el,e):el}function oT(e,t,a,n,r,o){r=nT(r),n.context===null?n.context=r:n.pendingContext=r,n=Jn(t),n.payload={element:a},o=o===void 0?null:o,o!==null&&(n.callback=o),a=Xn(e,n,t),a!==null&&(Sa(a,e,t),uu(a,e,t))}function yC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hy(e,t){yC(e,t),(e=e.alternate)&&yC(e,t)}function iT(e){if(e.tag===13||e.tag===31){var t=ai(e,67108864);t!==null&&Sa(t,e,67108864),hy(e,67108864)}}function xC(e){if(e.tag===13||e.tag===31){var t=Ua();t=Cv(t);var a=ai(e,t);a!==null&&Sa(a,e,t),hy(e,t)}}var Af=!0;function fP(e,t,a,n){var r=ge.T;ge.T=null;var o=Be.p;try{Be.p=2,gy(e,t,a,n)}finally{Be.p=o,ge.T=r}}function pP(e,t,a,n){var r=ge.T;ge.T=null;var o=Be.p;try{Be.p=8,gy(e,t,a,n)}finally{Be.p=o,ge.T=r}}function gy(e,t,a,n){if(Af){var r=Sv(n);if(r===null)kg(e,t,n,Ef,a),bC(e,n);else if(hP(r,e,t,a,n))n.stopPropagation();else if(bC(e,n),t&4&&-1<mP.indexOf(e)){for(;r!==null;){var o=Il(r);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var i=jo(o.pendingLanes);if(i!==0){var l=o;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-Pa(i);l.entanglements[1]|=s,i&=~s}Or(o),(je&6)===0&&(xf=Oa()+500,Bu(0,!1))}}break;case 31:case 13:l=ai(o,2),l!==null&&Sa(l,o,2),qf(),hy(o,2)}if(o=Sv(n),o===null&&kg(e,t,n,Ef,a),o===r)break;r=o}r!==null&&n.stopPropagation()}else kg(e,t,n,null,a)}}function Sv(e){return e=Ev(e),vy(e)}var Ef=null;function vy(e){if(Ef=null,e=Wi(e),e!==null){var t=Mu(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=CC(t),e!==null)return e;e=null}else if(a===31){if(e=LC(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ef=e,null}function lT(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(tR()){case $C:return 2;case MC:return 8;case nf:case aR:return 32;case zC:return 268435456;default:return 32}default:return 32}}var wv=!1,Qn=null,eo=null,to=null,Eu=new Map,$u=new Map,Bn=[],mP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function bC(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":eo=null;break;case"mouseover":case"mouseout":to=null;break;case"pointerover":case"pointerout":Eu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":$u.delete(t.pointerId)}}function Ys(e,t,a,n,r,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:o,targetContainers:[r]},t!==null&&(t=Il(t),t!==null&&iT(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function hP(e,t,a,n,r){switch(t){case"focusin":return Qn=Ys(Qn,e,t,a,n,r),!0;case"dragenter":return eo=Ys(eo,e,t,a,n,r),!0;case"mouseover":return to=Ys(to,e,t,a,n,r),!0;case"pointerover":var o=r.pointerId;return Eu.set(o,Ys(Eu.get(o)||null,e,t,a,n,r)),!0;case"gotpointercapture":return o=r.pointerId,$u.set(o,Ys($u.get(o)||null,e,t,a,n,r)),!0}return!1}function sT(e){var t=Wi(e.target);if(t!==null){var a=Mu(t);if(a!==null){if(t=a.tag,t===13){if(t=CC(a),t!==null){e.blockedOn=t,r0(e.priority,function(){xC(a)});return}}else if(t===31){if(t=LC(a),t!==null){e.blockedOn=t,r0(e.priority,function(){xC(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ef(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Sv(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);jg=n,a.target.dispatchEvent(n),jg=null}else return t=Il(a),t!==null&&iT(t),e.blockedOn=a,!1;t.shift()}return!0}function SC(e,t,a){ef(e)&&a.delete(t)}function gP(){wv=!1,Qn!==null&&ef(Qn)&&(Qn=null),eo!==null&&ef(eo)&&(eo=null),to!==null&&ef(to)&&(to=null),Eu.forEach(SC),$u.forEach(SC)}function Ud(e,t){e.blockedOn===t&&(e.blockedOn=null,wv||(wv=!0,Ut.unstable_scheduleCallback(Ut.unstable_NormalPriority,gP)))}var Nd=null;function wC(e){Nd!==e&&(Nd=e,Ut.unstable_scheduleCallback(Ut.unstable_NormalPriority,function(){Nd===e&&(Nd=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(vy(n||a)===null)continue;break}var o=Il(a);o!==null&&(e.splice(t,3),t-=3,av(o,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function Sl(e){function t(s){return Ud(s,e)}Qn!==null&&Ud(Qn,e),eo!==null&&Ud(eo,e),to!==null&&Ud(to,e),Eu.forEach(t),$u.forEach(t);for(var a=0;a<Bn.length;a++){var n=Bn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Bn.length&&(a=Bn[0],a.blockedOn===null);)sT(a),a.blockedOn===null&&Bn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],o=a[n+1],i=r[wa]||null;if(typeof o=="function")i||wC(a);else if(i){var l=null;if(o&&o.hasAttribute("formAction")){if(r=o,i=o[wa]||null)l=i.formAction;else if(vy(r)!==null)continue}else l=i.action;typeof l=="function"?a[n+1]=l:(a.splice(n,3),n-=3),wC(a)}}}function uT(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(i){return r=i})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function yy(e){this._internalRoot=e}Vf.prototype.render=yy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));var a=t.current,n=Ua();oT(a,n,e,t,null,null)};Vf.prototype.unmount=yy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;oT(e.current,2,null,e,null,null),qf(),t[wl]=null}};function Vf(e){this._internalRoot=e}Vf.prototype.unstable_scheduleHydration=function(e){if(e){var t=UC();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Bn.length&&t!==0&&t<Bn[a].priority;a++);Bn.splice(a,0,e),a===0&&sT(e)}};var IC=_C.version;if(IC!=="19.2.4")throw Error(N(527,IC,"19.2.4"));Be.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=WO(t),e=e!==null?TC(e):null,e=e===null?null:e.stateNode,e};var vP={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Qs=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Qs.isDisabled&&Qs.supportsFiber))try{zu=Qs.inject(vP),Ra=Qs}catch{}var Qs;Gf.createRoot=function(e,t){if(!kC(e))throw Error(N(299));var a=!1,n="",r=eL,o=tL,i=aL;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=rT(e,1,!1,null,null,a,n,null,r,o,i,uT),e[wl]=t.current,fy(e),new yy(t)};Gf.hydrateRoot=function(e,t,a){if(!kC(e))throw Error(N(299));var n=!1,r="",o=eL,i=tL,l=aL,s=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(o=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(s=a.formState)),t=rT(e,1,!0,t,a??null,n,r,s,o,i,l,uT),t.context=nT(null),a=t.current,n=Ua(),n=Cv(n),r=Jn(n),r.callback=null,Xn(a,r,n),a=n,t.current.lanes=a,Ou(t,a),Or(t),e[wl]=t.current,fy(e),new Vf(t)};Gf.version="19.2.4"});var pT=Jt((kZ,fT)=>{"use strict";function dT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(dT)}catch(e){console.error(e)}}dT(),fT.exports=cT()});var W$=Jt((qJ,G$)=>{"use strict";function XB(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let a,n=0;return function(...o){clearTimeout(a);let i=Date.now(),l=i-n,s=t-l;s<=0?(n=i,e.apply(this,o)):a=setTimeout(()=>{n=Date.now(),e.apply(this,o)},s)}}G$.exports=XB});var fM=Jt(Gm=>{"use strict";var $F=Symbol.for("react.transitional.element"),MF=Symbol.for("react.fragment");function dM(e,t,a){var n=null;if(a!==void 0&&(n=""+a),t.key!==void 0&&(n=""+t.key),"key"in t){a={};for(var r in t)r!=="key"&&(a[r]=t[r])}else a=t;return t=a.ref,{$$typeof:$F,type:e,key:n,ref:t!==void 0?t:null,props:a}}Gm.Fragment=MF;Gm.jsx=dM;Gm.jsxs=dM});var Ye=Jt((lX,pM)=>{"use strict";pM.exports=fM()});var zM=Jt((vK,MM)=>{"use strict";var TM=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,qF=/\n/g,ZF=/^\s*/,HF=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,VF=/^:\s*/,GF=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,WF=/^[;\s]*/,JF=/^\s+|\s+$/g,XF=`
|
|
11
|
-
`,AM="/",EM="*",wi="",KF="comment",YF="declaration";function QF(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var a=1,n=1;function r(m){var S=m.match(qF);S&&(a+=S.length);var C=m.lastIndexOf(XF);n=~C?m.length-C:n+m.length}function o(){var m={line:a,column:n};return function(S){return S.position=new i(m),u(),S}}function i(m){this.start=m,this.end={line:a,column:n},this.source=t.source}i.prototype.content=e;function l(m){var S=new Error(t.source+":"+a+":"+n+": "+m);if(S.reason=m,S.filename=t.source,S.line=a,S.column=n,S.source=e,!t.silent)throw S}function s(m){var S=m.exec(e);if(S){var C=S[0];return r(C),e=e.slice(C.length),S}}function u(){s(ZF)}function c(m){var S;for(m=m||[];S=d();)S!==!1&&m.push(S);return m}function d(){var m=o();if(!(AM!=e.charAt(0)||EM!=e.charAt(1))){for(var S=2;wi!=e.charAt(S)&&(EM!=e.charAt(S)||AM!=e.charAt(S+1));)++S;if(S+=2,wi===e.charAt(S-1))return l("End of comment missing");var C=e.slice(2,S-2);return n+=2,r(C),e=e.slice(S),n+=2,m({type:KF,comment:C})}}function f(){var m=o(),S=s(HF);if(S){if(d(),!s(VF))return l("property missing ':'");var C=s(GF),h=m({type:YF,property:$M(S[0].replace(TM,wi)),value:C?$M(C[0].replace(TM,wi)):wi});return s(WF),h}}function p(){var m=[];c(m);for(var S;S=f();)S!==!1&&(m.push(S),c(m));return m}return u(),p()}function $M(e){return e?e.replace(JF,wi):wi}MM.exports=QF});var DM=Jt(td=>{"use strict";var e5=td&&td.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(td,"__esModule",{value:!0});td.default=a5;var t5=e5(zM());function a5(e,t){let a=null;if(!e||typeof e!="string")return a;let n=(0,t5.default)(e),r=typeof t=="function";return n.forEach(o=>{if(o.type!=="declaration")return;let{property:i,value:l}=o;r?t(i,l,o):l&&(a=a||{},a[i]=l)}),a}});var RM=Jt(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.camelCase=void 0;var r5=/^--[a-zA-Z0-9_-]+$/,n5=/-([a-z])/g,o5=/^[^-]+$/,i5=/^-(webkit|moz|ms|o|khtml)-/,l5=/^-(ms)-/,s5=function(e){return!e||o5.test(e)||r5.test(e)},u5=function(e,t){return t.toUpperCase()},OM=function(e,t){return"".concat(t,"-")},c5=function(e,t){return t===void 0&&(t={}),s5(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(l5,OM):e=e.replace(i5,OM),e.replace(n5,u5))};Qm.camelCase=c5});var UM=Jt((KI,PM)=>{"use strict";var d5=KI&&KI.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},f5=d5(DM()),p5=RM();function XI(e,t){var a={};return!e||typeof e!="string"||(0,f5.default)(e,function(n,r){n&&r&&(a[(0,p5.camelCase)(n,t)]=r)}),a}XI.default=XI;PM.exports=XI});var sD=Jt((Gae,lD)=>{"use strict";var Ih=Object.prototype.hasOwnProperty,iD=Object.prototype.toString,eD=Object.defineProperty,tD=Object.getOwnPropertyDescriptor,aD=function(t){return typeof Array.isArray=="function"?Array.isArray(t):iD.call(t)==="[object Array]"},rD=function(t){if(!t||iD.call(t)!=="[object Object]")return!1;var a=Ih.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&Ih.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!a&&!n)return!1;var r;for(r in t);return typeof r>"u"||Ih.call(t,r)},nD=function(t,a){eD&&a.name==="__proto__"?eD(t,a.name,{enumerable:!0,configurable:!0,value:a.newValue,writable:!0}):t[a.name]=a.newValue},oD=function(t,a){if(a==="__proto__")if(Ih.call(t,a)){if(tD)return tD(t,a).value}else return;return t[a]};lD.exports=function e(){var t,a,n,r,o,i,l=arguments[0],s=1,u=arguments.length,c=!1;for(typeof l=="boolean"&&(c=l,l=arguments[1]||{},s=2),(l==null||typeof l!="object"&&typeof l!="function")&&(l={});s<u;++s)if(t=arguments[s],t!=null)for(a in t)n=oD(l,a),r=oD(t,a),l!==r&&(c&&r&&(rD(r)||(o=aD(r)))?(o?(o=!1,i=n&&aD(n)?n:[]):i=n&&rD(n)?n:{},nD(l,{name:a,newValue:e(c,i,r)})):typeof r<"u"&&nD(l,{name:a,newValue:r}));return l}});var pO=Jt((dO,fO)=>{"use strict";(function(e){var t;typeof dO=="object"?fO.exports=e():typeof define=="function"&&define.amd?define(e):(typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"&&(t=self),t.objectHash=e())})(function(){return(function e(t,a,n){function r(l,s){if(!a[l]){if(!t[l]){var u=typeof Fs=="function"&&Fs;if(!s&&u)return u(l,!0);if(o)return o(l,!0);throw new Error("Cannot find module '"+l+"'")}s=a[l]={exports:{}},t[l][0].call(s.exports,function(c){var d=t[l][1][c];return r(d||c)},s,s.exports,e,t,a,n)}return a[l].exports}for(var o=typeof Fs=="function"&&Fs,i=0;i<n.length;i++)r(n[i]);return r})({1:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){"use strict";var f=e("crypto");function p(b,L){L=C(b,L);var x;return(x=L.algorithm!=="passthrough"?f.createHash(L.algorithm):new g).write===void 0&&(x.write=x.update,x.end=x.update),y(L,x).dispatch(b),x.update||x.end(""),x.digest?x.digest(L.encoding==="buffer"?void 0:L.encoding):(b=x.read(),L.encoding!=="buffer"?b.toString(L.encoding):b)}(a=t.exports=p).sha1=function(b){return p(b)},a.keys=function(b){return p(b,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},a.MD5=function(b){return p(b,{algorithm:"md5",encoding:"hex"})},a.keysMD5=function(b){return p(b,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var m=f.getHashes?f.getHashes().slice():["sha1","md5"],S=(m.push("passthrough"),["buffer","hex","binary","base64"]);function C(b,L){var x={};if(x.algorithm=(L=L||{}).algorithm||"sha1",x.encoding=L.encoding||"hex",x.excludeValues=!!L.excludeValues,x.algorithm=x.algorithm.toLowerCase(),x.encoding=x.encoding.toLowerCase(),x.ignoreUnknown=L.ignoreUnknown===!0,x.respectType=L.respectType!==!1,x.respectFunctionNames=L.respectFunctionNames!==!1,x.respectFunctionProperties=L.respectFunctionProperties!==!1,x.unorderedArrays=L.unorderedArrays===!0,x.unorderedSets=L.unorderedSets!==!1,x.unorderedObjects=L.unorderedObjects!==!1,x.replacer=L.replacer||void 0,x.excludeKeys=L.excludeKeys||void 0,b===void 0)throw new Error("Object argument required.");for(var w=0;w<m.length;++w)m[w].toLowerCase()===x.algorithm.toLowerCase()&&(x.algorithm=m[w]);if(m.indexOf(x.algorithm)===-1)throw new Error('Algorithm "'+x.algorithm+'" not supported. supported values: '+m.join(", "));if(S.indexOf(x.encoding)===-1&&x.algorithm!=="passthrough")throw new Error('Encoding "'+x.encoding+'" not supported. supported values: '+S.join(", "));return x}function h(b){if(typeof b=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(b))!=null}function y(b,L,x){x=x||[];function w(I){return L.update?L.update(I,"utf8"):L.write(I,"utf8")}return{dispatch:function(I){return this["_"+((I=b.replacer?b.replacer(I):I)===null?"null":typeof I)](I)},_object:function(I){var E,k=Object.prototype.toString.call(I),F=/\[object (.*)\]/i.exec(k);if(F=(F=F?F[1]:"unknown:["+k+"]").toLowerCase(),0<=(k=x.indexOf(I)))return this.dispatch("[CIRCULAR:"+k+"]");if(x.push(I),o!==void 0&&o.isBuffer&&o.isBuffer(I))return w("buffer:"),w(I);if(F==="object"||F==="function"||F==="asyncfunction")return k=Object.keys(I),b.unorderedObjects&&(k=k.sort()),b.respectType===!1||h(I)||k.splice(0,0,"prototype","__proto__","constructor"),b.excludeKeys&&(k=k.filter(function(O){return!b.excludeKeys(O)})),w("object:"+k.length+":"),E=this,k.forEach(function(O){E.dispatch(O),w(":"),b.excludeValues||E.dispatch(I[O]),w(",")});if(!this["_"+F]){if(b.ignoreUnknown)return w("["+F+"]");throw new Error('Unknown object type "'+F+'"')}this["_"+F](I)},_array:function(I,O){O=O!==void 0?O:b.unorderedArrays!==!1;var k=this;if(w("array:"+I.length+":"),!O||I.length<=1)return I.forEach(function(U){return k.dispatch(U)});var F=[],O=I.map(function(U){var P=new g,Q=x.slice();return y(b,P,Q).dispatch(U),F=F.concat(Q.slice(x.length)),P.read().toString()});return x=x.concat(F),O.sort(),this._array(O,!1)},_date:function(I){return w("date:"+I.toJSON())},_symbol:function(I){return w("symbol:"+I.toString())},_error:function(I){return w("error:"+I.toString())},_boolean:function(I){return w("bool:"+I.toString())},_string:function(I){w("string:"+I.length+":"),w(I.toString())},_function:function(I){w("fn:"),h(I)?this.dispatch("[native]"):this.dispatch(I.toString()),b.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(I.name)),b.respectFunctionProperties&&this._object(I)},_number:function(I){return w("number:"+I.toString())},_xml:function(I){return w("xml:"+I.toString())},_null:function(){return w("Null")},_undefined:function(){return w("Undefined")},_regexp:function(I){return w("regex:"+I.toString())},_uint8array:function(I){return w("uint8array:"),this.dispatch(Array.prototype.slice.call(I))},_uint8clampedarray:function(I){return w("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(I))},_int8array:function(I){return w("int8array:"),this.dispatch(Array.prototype.slice.call(I))},_uint16array:function(I){return w("uint16array:"),this.dispatch(Array.prototype.slice.call(I))},_int16array:function(I){return w("int16array:"),this.dispatch(Array.prototype.slice.call(I))},_uint32array:function(I){return w("uint32array:"),this.dispatch(Array.prototype.slice.call(I))},_int32array:function(I){return w("int32array:"),this.dispatch(Array.prototype.slice.call(I))},_float32array:function(I){return w("float32array:"),this.dispatch(Array.prototype.slice.call(I))},_float64array:function(I){return w("float64array:"),this.dispatch(Array.prototype.slice.call(I))},_arraybuffer:function(I){return w("arraybuffer:"),this.dispatch(new Uint8Array(I))},_url:function(I){return w("url:"+I.toString())},_map:function(I){return w("map:"),I=Array.from(I),this._array(I,b.unorderedSets!==!1)},_set:function(I){return w("set:"),I=Array.from(I),this._array(I,b.unorderedSets!==!1)},_file:function(I){return w("file:"),this.dispatch([I.name,I.size,I.type,I.lastModfied])},_blob:function(){if(b.ignoreUnknown)return w("[blob]");throw Error(`Hashing Blob objects is currently not supported
|
|
12
|
-
(see https://github.com/puleos/object-hash/issues/26)
|
|
13
|
-
Use "options.replacer" or "options.ignoreUnknown"
|
|
14
|
-
`)},_domwindow:function(){return w("domwindow")},_bigint:function(I){return w("bigint:"+I.toString())},_process:function(){return w("process")},_timer:function(){return w("timer")},_pipe:function(){return w("pipe")},_tcp:function(){return w("tcp")},_udp:function(){return w("udp")},_tty:function(){return w("tty")},_statwatcher:function(){return w("statwatcher")},_securecontext:function(){return w("securecontext")},_connection:function(){return w("connection")},_zlib:function(){return w("zlib")},_context:function(){return w("context")},_nodescript:function(){return w("nodescript")},_httpparser:function(){return w("httpparser")},_dataview:function(){return w("dataview")},_signal:function(){return w("signal")},_fsevent:function(){return w("fsevent")},_tlswrap:function(){return w("tlswrap")}}}function g(){return{buf:"",write:function(b){this.buf+=b},end:function(b){this.buf+=b},read:function(){return this.buf}}}a.writeToStream=function(b,L,x){return x===void 0&&(x=L,L={}),y(L=C(b,L),x).dispatch(b)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){(function(f){"use strict";var p=typeof Uint8Array<"u"?Uint8Array:Array,m=43,S=47,C=48,h=97,y=65,g=45,b=95;function L(x){return x=x.charCodeAt(0),x===m||x===g?62:x===S||x===b?63:x<C?-1:x<C+10?x-C+26+26:x<y+26?x-y:x<h+26?x-h+26:void 0}f.toByteArray=function(x){var w,I;if(0<x.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var E=x.length,E=x.charAt(E-2)==="="?2:x.charAt(E-1)==="="?1:0,k=new p(3*x.length/4-E),F=0<E?x.length-4:x.length,O=0;function U(P){k[O++]=P}for(w=0;w<F;w+=4,0)U((16711680&(I=L(x.charAt(w))<<18|L(x.charAt(w+1))<<12|L(x.charAt(w+2))<<6|L(x.charAt(w+3))))>>16),U((65280&I)>>8),U(255&I);return E==2?U(255&(I=L(x.charAt(w))<<2|L(x.charAt(w+1))>>4)):E==1&&(U((I=L(x.charAt(w))<<10|L(x.charAt(w+1))<<4|L(x.charAt(w+2))>>2)>>8&255),U(255&I)),k},f.fromByteArray=function(x){var w,I,E,k,F=x.length%3,O="";function U(P){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P)}for(w=0,E=x.length-F;w<E;w+=3)I=(x[w]<<16)+(x[w+1]<<8)+x[w+2],O+=U((k=I)>>18&63)+U(k>>12&63)+U(k>>6&63)+U(63&k);switch(F){case 1:O=(O+=U((I=x[x.length-1])>>2))+U(I<<4&63)+"==";break;case 2:O=(O=(O+=U((I=(x[x.length-2]<<8)+x[x.length-1])>>10))+U(I>>4&63))+U(I<<2&63)+"="}return O}})(a===void 0?this.base64js={}:a)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(e,t,a){(function(n,r,m,i,l,s,u,c,d){var f=e("base64-js"),p=e("ieee754");function m(_,A,M){if(!(this instanceof m))return new m(_,A,M);var j,B,Y,ke,Qe=typeof _;if(A==="base64"&&Qe=="string")for(_=(ke=_).trim?ke.trim():ke.replace(/^\s+|\s+$/g,"");_.length%4!=0;)_+="=";if(Qe=="number")j=ie(_);else if(Qe=="string")j=m.byteLength(_,A);else{if(Qe!="object")throw new Error("First argument needs to be a number, array or string.");j=ie(_.length)}if(m._useTypedArrays?B=m._augment(new Uint8Array(j)):((B=this).length=j,B._isBuffer=!0),m._useTypedArrays&&typeof _.byteLength=="number")B._set(_);else if(ne(ke=_)||m.isBuffer(ke)||ke&&typeof ke=="object"&&typeof ke.length=="number")for(Y=0;Y<j;Y++)m.isBuffer(_)?B[Y]=_.readUInt8(Y):B[Y]=_[Y];else if(Qe=="string")B.write(_,0,A);else if(Qe=="number"&&!m._useTypedArrays&&!M)for(Y=0;Y<j;Y++)B[Y]=0;return B}function S(_,A,M,j){return m._charsWritten=ce((function(B){for(var Y=[],ke=0;ke<B.length;ke++)Y.push(255&B.charCodeAt(ke));return Y})(A),_,M,j)}function C(_,A,M,j){return m._charsWritten=ce((function(B){for(var Y,ke,Qe=[],gt=0;gt<B.length;gt++)ke=B.charCodeAt(gt),Y=ke>>8,ke=ke%256,Qe.push(ke),Qe.push(Y);return Qe})(A),_,M,j)}function h(_,A,M){var j="";M=Math.min(_.length,M);for(var B=A;B<M;B++)j+=String.fromCharCode(_[B]);return j}function y(_,A,M,Y){Y||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+1<_.length,"Trying to read beyond buffer length"));var B,Y=_.length;if(!(Y<=A))return M?(B=_[A],A+1<Y&&(B|=_[A+1]<<8)):(B=_[A]<<8,A+1<Y&&(B|=_[A+1])),B}function g(_,A,M,Y){Y||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+3<_.length,"Trying to read beyond buffer length"));var B,Y=_.length;if(!(Y<=A))return M?(A+2<Y&&(B=_[A+2]<<16),A+1<Y&&(B|=_[A+1]<<8),B|=_[A],A+3<Y&&(B+=_[A+3]<<24>>>0)):(A+1<Y&&(B=_[A+1]<<16),A+2<Y&&(B|=_[A+2]<<8),A+3<Y&&(B|=_[A+3]),B+=_[A]<<24>>>0),B}function b(_,A,M,j){if(j||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+1<_.length,"Trying to read beyond buffer length")),!(_.length<=A))return j=y(_,A,M,!0),32768&j?-1*(65535-j+1):j}function L(_,A,M,j){if(j||(K(typeof M=="boolean","missing or invalid endian"),K(A!=null,"missing offset"),K(A+3<_.length,"Trying to read beyond buffer length")),!(_.length<=A))return j=g(_,A,M,!0),2147483648&j?-1*(4294967295-j+1):j}function x(_,A,M,j){return j||(K(typeof M=="boolean","missing or invalid endian"),K(A+3<_.length,"Trying to read beyond buffer length")),p.read(_,A,M,23,4)}function w(_,A,M,j){return j||(K(typeof M=="boolean","missing or invalid endian"),K(A+7<_.length,"Trying to read beyond buffer length")),p.read(_,A,M,52,8)}function I(_,A,M,j,B){if(B||(K(A!=null,"missing value"),K(typeof j=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+1<_.length,"trying to write beyond buffer length"),T(A,65535)),B=_.length,!(B<=M))for(var Y=0,ke=Math.min(B-M,2);Y<ke;Y++)_[M+Y]=(A&255<<8*(j?Y:1-Y))>>>8*(j?Y:1-Y)}function E(_,A,M,j,B){if(B||(K(A!=null,"missing value"),K(typeof j=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<_.length,"trying to write beyond buffer length"),T(A,4294967295)),B=_.length,!(B<=M))for(var Y=0,ke=Math.min(B-M,4);Y<ke;Y++)_[M+Y]=A>>>8*(j?Y:3-Y)&255}function k(_,A,M,j,B){B||(K(A!=null,"missing value"),K(typeof j=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+1<_.length,"Trying to write beyond buffer length"),ze(A,32767,-32768)),_.length<=M||I(_,0<=A?A:65535+A+1,M,j,B)}function F(_,A,M,j,B){B||(K(A!=null,"missing value"),K(typeof j=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<_.length,"Trying to write beyond buffer length"),ze(A,2147483647,-2147483648)),_.length<=M||E(_,0<=A?A:4294967295+A+1,M,j,B)}function O(_,A,M,j,B){B||(K(A!=null,"missing value"),K(typeof j=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+3<_.length,"Trying to write beyond buffer length"),aa(A,34028234663852886e22,-34028234663852886e22)),_.length<=M||p.write(_,A,M,j,23,4)}function U(_,A,M,j,B){B||(K(A!=null,"missing value"),K(typeof j=="boolean","missing or invalid endian"),K(M!=null,"missing offset"),K(M+7<_.length,"Trying to write beyond buffer length"),aa(A,17976931348623157e292,-17976931348623157e292)),_.length<=M||p.write(_,A,M,j,52,8)}a.Buffer=m,a.SlowBuffer=m,a.INSPECT_MAX_BYTES=50,m.poolSize=8192,m._useTypedArrays=(function(){try{var _=new ArrayBuffer(0),A=new Uint8Array(_);return A.foo=function(){return 42},A.foo()===42&&typeof A.subarray=="function"}catch{return!1}})(),m.isEncoding=function(_){switch(String(_).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},m.isBuffer=function(_){return!(_==null||!_._isBuffer)},m.byteLength=function(_,A){var M;switch(_+="",A||"utf8"){case"hex":M=_.length/2;break;case"utf8":case"utf-8":M=Me(_).length;break;case"ascii":case"binary":case"raw":M=_.length;break;case"base64":M=$(_).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":M=2*_.length;break;default:throw new Error("Unknown encoding")}return M},m.concat=function(_,A){if(K(ne(_),`Usage: Buffer.concat(list, [totalLength])
|
|
15
|
-
list should be an Array.`),_.length===0)return new m(0);if(_.length===1)return _[0];if(typeof A!="number")for(B=A=0;B<_.length;B++)A+=_[B].length;for(var M=new m(A),j=0,B=0;B<_.length;B++){var Y=_[B];Y.copy(M,j),j+=Y.length}return M},m.prototype.write=function(_,A,M,j){isFinite(A)?isFinite(M)||(j=M,M=void 0):(gt=j,j=A,A=M,M=gt),A=Number(A)||0;var B,Y,ke,Qe,gt=this.length-A;switch((!M||gt<(M=Number(M)))&&(M=gt),j=String(j||"utf8").toLowerCase()){case"hex":B=(function(Bt,kt,Ft,vt){Ft=Number(Ft)||0;var et=Bt.length-Ft;(!vt||et<(vt=Number(vt)))&&(vt=et),K((et=kt.length)%2==0,"Invalid hex string"),et/2<vt&&(vt=et/2);for(var Tr=0;Tr<vt;Tr++){var Oi=parseInt(kt.substr(2*Tr,2),16);K(!isNaN(Oi),"Invalid hex string"),Bt[Ft+Tr]=Oi}return m._charsWritten=2*Tr,Tr})(this,_,A,M);break;case"utf8":case"utf-8":Y=this,ke=A,Qe=M,B=m._charsWritten=ce(Me(_),Y,ke,Qe);break;case"ascii":case"binary":B=S(this,_,A,M);break;case"base64":Y=this,ke=A,Qe=M,B=m._charsWritten=ce($(_),Y,ke,Qe);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":B=C(this,_,A,M);break;default:throw new Error("Unknown encoding")}return B},m.prototype.toString=function(_,A,M){var j,B,Y,ke,Qe=this;if(_=String(_||"utf8").toLowerCase(),A=Number(A)||0,(M=M!==void 0?Number(M):Qe.length)===A)return"";switch(_){case"hex":j=(function(gt,Bt,kt){var Ft=gt.length;(!Bt||Bt<0)&&(Bt=0),(!kt||kt<0||Ft<kt)&&(kt=Ft);for(var vt="",et=Bt;et<kt;et++)vt+=ue(gt[et]);return vt})(Qe,A,M);break;case"utf8":case"utf-8":j=(function(gt,Bt,kt){var Ft="",vt="";kt=Math.min(gt.length,kt);for(var et=Bt;et<kt;et++)gt[et]<=127?(Ft+=_t(vt)+String.fromCharCode(gt[et]),vt=""):vt+="%"+gt[et].toString(16);return Ft+_t(vt)})(Qe,A,M);break;case"ascii":case"binary":j=h(Qe,A,M);break;case"base64":B=Qe,ke=M,j=(Y=A)===0&&ke===B.length?f.fromByteArray(B):f.fromByteArray(B.slice(Y,ke));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":j=(function(gt,Bt,kt){for(var Ft=gt.slice(Bt,kt),vt="",et=0;et<Ft.length;et+=2)vt+=String.fromCharCode(Ft[et]+256*Ft[et+1]);return vt})(Qe,A,M);break;default:throw new Error("Unknown encoding")}return j},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},m.prototype.copy=function(_,A,M,j){if(A=A||0,(j=j||j===0?j:this.length)!==(M=M||0)&&_.length!==0&&this.length!==0){K(M<=j,"sourceEnd < sourceStart"),K(0<=A&&A<_.length,"targetStart out of bounds"),K(0<=M&&M<this.length,"sourceStart out of bounds"),K(0<=j&&j<=this.length,"sourceEnd out of bounds"),j>this.length&&(j=this.length);var B=(j=_.length-A<j-M?_.length-A+M:j)-M;if(B<100||!m._useTypedArrays)for(var Y=0;Y<B;Y++)_[Y+A]=this[Y+M];else _._set(this.subarray(M,M+B),A)}},m.prototype.slice=function(_,A){var M=this.length;if(_=Q(_,M,0),A=Q(A,M,M),m._useTypedArrays)return m._augment(this.subarray(_,A));for(var j=A-_,B=new m(j,void 0,!0),Y=0;Y<j;Y++)B[Y]=this[Y+_];return B},m.prototype.get=function(_){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(_)},m.prototype.set=function(_,A){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(_,A)},m.prototype.readUInt8=function(_,A){if(A||(K(_!=null,"missing offset"),K(_<this.length,"Trying to read beyond buffer length")),!(_>=this.length))return this[_]},m.prototype.readUInt16LE=function(_,A){return y(this,_,!0,A)},m.prototype.readUInt16BE=function(_,A){return y(this,_,!1,A)},m.prototype.readUInt32LE=function(_,A){return g(this,_,!0,A)},m.prototype.readUInt32BE=function(_,A){return g(this,_,!1,A)},m.prototype.readInt8=function(_,A){if(A||(K(_!=null,"missing offset"),K(_<this.length,"Trying to read beyond buffer length")),!(_>=this.length))return 128&this[_]?-1*(255-this[_]+1):this[_]},m.prototype.readInt16LE=function(_,A){return b(this,_,!0,A)},m.prototype.readInt16BE=function(_,A){return b(this,_,!1,A)},m.prototype.readInt32LE=function(_,A){return L(this,_,!0,A)},m.prototype.readInt32BE=function(_,A){return L(this,_,!1,A)},m.prototype.readFloatLE=function(_,A){return x(this,_,!0,A)},m.prototype.readFloatBE=function(_,A){return x(this,_,!1,A)},m.prototype.readDoubleLE=function(_,A){return w(this,_,!0,A)},m.prototype.readDoubleBE=function(_,A){return w(this,_,!1,A)},m.prototype.writeUInt8=function(_,A,M){M||(K(_!=null,"missing value"),K(A!=null,"missing offset"),K(A<this.length,"trying to write beyond buffer length"),T(_,255)),A>=this.length||(this[A]=_)},m.prototype.writeUInt16LE=function(_,A,M){I(this,_,A,!0,M)},m.prototype.writeUInt16BE=function(_,A,M){I(this,_,A,!1,M)},m.prototype.writeUInt32LE=function(_,A,M){E(this,_,A,!0,M)},m.prototype.writeUInt32BE=function(_,A,M){E(this,_,A,!1,M)},m.prototype.writeInt8=function(_,A,M){M||(K(_!=null,"missing value"),K(A!=null,"missing offset"),K(A<this.length,"Trying to write beyond buffer length"),ze(_,127,-128)),A>=this.length||(0<=_?this.writeUInt8(_,A,M):this.writeUInt8(255+_+1,A,M))},m.prototype.writeInt16LE=function(_,A,M){k(this,_,A,!0,M)},m.prototype.writeInt16BE=function(_,A,M){k(this,_,A,!1,M)},m.prototype.writeInt32LE=function(_,A,M){F(this,_,A,!0,M)},m.prototype.writeInt32BE=function(_,A,M){F(this,_,A,!1,M)},m.prototype.writeFloatLE=function(_,A,M){O(this,_,A,!0,M)},m.prototype.writeFloatBE=function(_,A,M){O(this,_,A,!1,M)},m.prototype.writeDoubleLE=function(_,A,M){U(this,_,A,!0,M)},m.prototype.writeDoubleBE=function(_,A,M){U(this,_,A,!1,M)},m.prototype.fill=function(_,A,M){if(A=A||0,M=M||this.length,K(typeof(_=typeof(_=_||0)=="string"?_.charCodeAt(0):_)=="number"&&!isNaN(_),"value is not a number"),K(A<=M,"end < start"),M!==A&&this.length!==0){K(0<=A&&A<this.length,"start out of bounds"),K(0<=M&&M<=this.length,"end out of bounds");for(var j=A;j<M;j++)this[j]=_}},m.prototype.inspect=function(){for(var _=[],A=this.length,M=0;M<A;M++)if(_[M]=ue(this[M]),M===a.INSPECT_MAX_BYTES){_[M+1]="...";break}return"<Buffer "+_.join(" ")+">"},m.prototype.toArrayBuffer=function(){if(typeof Uint8Array>"u")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(m._useTypedArrays)return new m(this).buffer;for(var _=new Uint8Array(this.length),A=0,M=_.length;A<M;A+=1)_[A]=this[A];return _.buffer};var P=m.prototype;function Q(_,A,M){return typeof _!="number"?M:A<=(_=~~_)?A:0<=_||0<=(_+=A)?_:0}function ie(_){return(_=~~Math.ceil(+_))<0?0:_}function ne(_){return(Array.isArray||function(A){return Object.prototype.toString.call(A)==="[object Array]"})(_)}function ue(_){return _<16?"0"+_.toString(16):_.toString(16)}function Me(_){for(var A=[],M=0;M<_.length;M++){var j=_.charCodeAt(M);if(j<=127)A.push(_.charCodeAt(M));else for(var B=M,Y=(55296<=j&&j<=57343&&M++,encodeURIComponent(_.slice(B,M+1)).substr(1).split("%")),ke=0;ke<Y.length;ke++)A.push(parseInt(Y[ke],16))}return A}function $(_){return f.toByteArray(_)}function ce(_,A,M,j){for(var B=0;B<j&&!(B+M>=A.length||B>=_.length);B++)A[B+M]=_[B];return B}function _t(_){try{return decodeURIComponent(_)}catch{return"\uFFFD"}}function T(_,A){K(typeof _=="number","cannot write a non-number as a number"),K(0<=_,"specified a negative value for writing an unsigned value"),K(_<=A,"value is larger than maximum value for type"),K(Math.floor(_)===_,"value has a fractional component")}function ze(_,A,M){K(typeof _=="number","cannot write a non-number as a number"),K(_<=A,"value larger than maximum allowed value"),K(M<=_,"value smaller than minimum allowed value"),K(Math.floor(_)===_,"value has a fractional component")}function aa(_,A,M){K(typeof _=="number","cannot write a non-number as a number"),K(_<=A,"value larger than maximum allowed value"),K(M<=_,"value smaller than minimum allowed value")}function K(_,A){if(!_)throw new Error(A||"Failed assertion")}m._augment=function(_){return _._isBuffer=!0,_._get=_.get,_._set=_.set,_.get=P.get,_.set=P.set,_.write=P.write,_.toString=P.toString,_.toLocaleString=P.toString,_.toJSON=P.toJSON,_.copy=P.copy,_.slice=P.slice,_.readUInt8=P.readUInt8,_.readUInt16LE=P.readUInt16LE,_.readUInt16BE=P.readUInt16BE,_.readUInt32LE=P.readUInt32LE,_.readUInt32BE=P.readUInt32BE,_.readInt8=P.readInt8,_.readInt16LE=P.readInt16LE,_.readInt16BE=P.readInt16BE,_.readInt32LE=P.readInt32LE,_.readInt32BE=P.readInt32BE,_.readFloatLE=P.readFloatLE,_.readFloatBE=P.readFloatBE,_.readDoubleLE=P.readDoubleLE,_.readDoubleBE=P.readDoubleBE,_.writeUInt8=P.writeUInt8,_.writeUInt16LE=P.writeUInt16LE,_.writeUInt16BE=P.writeUInt16BE,_.writeUInt32LE=P.writeUInt32LE,_.writeUInt32BE=P.writeUInt32BE,_.writeInt8=P.writeInt8,_.writeInt16LE=P.writeInt16LE,_.writeInt16BE=P.writeInt16BE,_.writeInt32LE=P.writeInt32LE,_.writeInt32BE=P.writeInt32BE,_.writeFloatLE=P.writeFloatLE,_.writeFloatBE=P.writeFloatBE,_.writeDoubleLE=P.writeDoubleLE,_.writeDoubleBE=P.writeDoubleBE,_.fill=P.fill,_.inspect=P.inspect,_.toArrayBuffer=P.toArrayBuffer,_}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(e,t,a){(function(n,r,f,i,l,s,u,c,d){var f=e("buffer").Buffer,p=4,m=new f(p);m.fill(0),t.exports={hash:function(S,C,h,y){for(var g=C((function(I,E){I.length%p!=0&&(k=I.length+(p-I.length%p),I=f.concat([I,m],k));for(var k,F=[],O=E?I.readInt32BE:I.readInt32LE,U=0;U<I.length;U+=p)F.push(O.call(I,U));return F})(S=f.isBuffer(S)?S:new f(S),y),8*S.length),C=y,b=new f(h),L=C?b.writeInt32BE:b.writeInt32LE,x=0;x<g.length;x++)L.call(b,g[x],4*x,!0);return b}}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(e,t,a){(function(n,r,f,i,l,s,u,c,d){var f=e("buffer").Buffer,p=e("./sha"),m=e("./sha256"),S=e("./rng"),C={sha1:p,sha256:m,md5:e("./md5")},h=64,y=new f(h);function g(I,E){var k=C[I=I||"sha1"],F=[];return k||b("algorithm:",I,"is not yet supported"),{update:function(O){return f.isBuffer(O)||(O=new f(O)),F.push(O),O.length,this},digest:function(O){var U=f.concat(F),U=E?(function(P,Q,ie){f.isBuffer(Q)||(Q=new f(Q)),f.isBuffer(ie)||(ie=new f(ie)),Q.length>h?Q=P(Q):Q.length<h&&(Q=f.concat([Q,y],h));for(var ne=new f(h),ue=new f(h),Me=0;Me<h;Me++)ne[Me]=54^Q[Me],ue[Me]=92^Q[Me];return ie=P(f.concat([ne,ie])),P(f.concat([ue,ie]))})(k,E,U):k(U);return F=null,O?U.toString(O):U}}}function b(){var I=[].slice.call(arguments).join(" ");throw new Error([I,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
16
|
-
`))}y.fill(0),a.createHash=function(I){return g(I)},a.createHmac=g,a.randomBytes=function(I,E){if(!E||!E.call)return new f(S(I));try{E.call(this,void 0,new f(S(I)))}catch(k){E(k)}};var L,x=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],w=function(I){a[I]=function(){b("sorry,",I,"is not implemented yet")}};for(L in x)w(x[L],L)}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var f=e("./helpers");function p(b,L){b[L>>5]|=128<<L%32,b[14+(L+64>>>9<<4)]=L;for(var x=1732584193,w=-271733879,I=-1732584194,E=271733878,k=0;k<b.length;k+=16){var F=x,O=w,U=I,P=E,x=S(x,w,I,E,b[k+0],7,-680876936),E=S(E,x,w,I,b[k+1],12,-389564586),I=S(I,E,x,w,b[k+2],17,606105819),w=S(w,I,E,x,b[k+3],22,-1044525330);x=S(x,w,I,E,b[k+4],7,-176418897),E=S(E,x,w,I,b[k+5],12,1200080426),I=S(I,E,x,w,b[k+6],17,-1473231341),w=S(w,I,E,x,b[k+7],22,-45705983),x=S(x,w,I,E,b[k+8],7,1770035416),E=S(E,x,w,I,b[k+9],12,-1958414417),I=S(I,E,x,w,b[k+10],17,-42063),w=S(w,I,E,x,b[k+11],22,-1990404162),x=S(x,w,I,E,b[k+12],7,1804603682),E=S(E,x,w,I,b[k+13],12,-40341101),I=S(I,E,x,w,b[k+14],17,-1502002290),x=C(x,w=S(w,I,E,x,b[k+15],22,1236535329),I,E,b[k+1],5,-165796510),E=C(E,x,w,I,b[k+6],9,-1069501632),I=C(I,E,x,w,b[k+11],14,643717713),w=C(w,I,E,x,b[k+0],20,-373897302),x=C(x,w,I,E,b[k+5],5,-701558691),E=C(E,x,w,I,b[k+10],9,38016083),I=C(I,E,x,w,b[k+15],14,-660478335),w=C(w,I,E,x,b[k+4],20,-405537848),x=C(x,w,I,E,b[k+9],5,568446438),E=C(E,x,w,I,b[k+14],9,-1019803690),I=C(I,E,x,w,b[k+3],14,-187363961),w=C(w,I,E,x,b[k+8],20,1163531501),x=C(x,w,I,E,b[k+13],5,-1444681467),E=C(E,x,w,I,b[k+2],9,-51403784),I=C(I,E,x,w,b[k+7],14,1735328473),x=h(x,w=C(w,I,E,x,b[k+12],20,-1926607734),I,E,b[k+5],4,-378558),E=h(E,x,w,I,b[k+8],11,-2022574463),I=h(I,E,x,w,b[k+11],16,1839030562),w=h(w,I,E,x,b[k+14],23,-35309556),x=h(x,w,I,E,b[k+1],4,-1530992060),E=h(E,x,w,I,b[k+4],11,1272893353),I=h(I,E,x,w,b[k+7],16,-155497632),w=h(w,I,E,x,b[k+10],23,-1094730640),x=h(x,w,I,E,b[k+13],4,681279174),E=h(E,x,w,I,b[k+0],11,-358537222),I=h(I,E,x,w,b[k+3],16,-722521979),w=h(w,I,E,x,b[k+6],23,76029189),x=h(x,w,I,E,b[k+9],4,-640364487),E=h(E,x,w,I,b[k+12],11,-421815835),I=h(I,E,x,w,b[k+15],16,530742520),x=y(x,w=h(w,I,E,x,b[k+2],23,-995338651),I,E,b[k+0],6,-198630844),E=y(E,x,w,I,b[k+7],10,1126891415),I=y(I,E,x,w,b[k+14],15,-1416354905),w=y(w,I,E,x,b[k+5],21,-57434055),x=y(x,w,I,E,b[k+12],6,1700485571),E=y(E,x,w,I,b[k+3],10,-1894986606),I=y(I,E,x,w,b[k+10],15,-1051523),w=y(w,I,E,x,b[k+1],21,-2054922799),x=y(x,w,I,E,b[k+8],6,1873313359),E=y(E,x,w,I,b[k+15],10,-30611744),I=y(I,E,x,w,b[k+6],15,-1560198380),w=y(w,I,E,x,b[k+13],21,1309151649),x=y(x,w,I,E,b[k+4],6,-145523070),E=y(E,x,w,I,b[k+11],10,-1120210379),I=y(I,E,x,w,b[k+2],15,718787259),w=y(w,I,E,x,b[k+9],21,-343485551),x=g(x,F),w=g(w,O),I=g(I,U),E=g(E,P)}return Array(x,w,I,E)}function m(b,L,x,w,I,E){return g((L=g(g(L,b),g(w,E)))<<I|L>>>32-I,x)}function S(b,L,x,w,I,E,k){return m(L&x|~L&w,b,L,I,E,k)}function C(b,L,x,w,I,E,k){return m(L&w|x&~w,b,L,I,E,k)}function h(b,L,x,w,I,E,k){return m(L^x^w,b,L,I,E,k)}function y(b,L,x,w,I,E,k){return m(x^(L|~w),b,L,I,E,k)}function g(b,L){var x=(65535&b)+(65535&L);return(b>>16)+(L>>16)+(x>>16)<<16|65535&x}t.exports=function(b){return f.hash(b,p,16)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var f;t.exports=f||function(p){for(var m,S=new Array(p),C=0;C<p;C++)(3&C)==0&&(m=4294967296*Math.random()),S[C]=m>>>((3&C)<<3)&255;return S}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var f=e("./helpers");function p(C,h){C[h>>5]|=128<<24-h%32,C[15+(h+64>>9<<4)]=h;for(var y,g,b,L=Array(80),x=1732584193,w=-271733879,I=-1732584194,E=271733878,k=-1009589776,F=0;F<C.length;F+=16){for(var O=x,U=w,P=I,Q=E,ie=k,ne=0;ne<80;ne++){L[ne]=ne<16?C[F+ne]:S(L[ne-3]^L[ne-8]^L[ne-14]^L[ne-16],1);var ue=m(m(S(x,5),(ue=w,g=I,b=E,(y=ne)<20?ue&g|~ue&b:!(y<40)&&y<60?ue&g|ue&b|g&b:ue^g^b)),m(m(k,L[ne]),(y=ne)<20?1518500249:y<40?1859775393:y<60?-1894007588:-899497514)),k=E,E=I,I=S(w,30),w=x,x=ue}x=m(x,O),w=m(w,U),I=m(I,P),E=m(E,Q),k=m(k,ie)}return Array(x,w,I,E,k)}function m(C,h){var y=(65535&C)+(65535&h);return(C>>16)+(h>>16)+(y>>16)<<16|65535&y}function S(C,h){return C<<h|C>>>32-h}t.exports=function(C){return f.hash(C,p,20,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){function f(h,y){var g=(65535&h)+(65535&y);return(h>>16)+(y>>16)+(g>>16)<<16|65535&g}function p(h,y){var g,b=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),L=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);h[y>>5]|=128<<24-y%32,h[15+(y+64>>9<<4)]=y;for(var w,I,E=0;E<h.length;E+=16){for(var k=L[0],F=L[1],O=L[2],U=L[3],P=L[4],Q=L[5],ie=L[6],ne=L[7],ue=0;ue<64;ue++)x[ue]=ue<16?h[ue+E]:f(f(f((I=x[ue-2],S(I,17)^S(I,19)^C(I,10)),x[ue-7]),(I=x[ue-15],S(I,7)^S(I,18)^C(I,3))),x[ue-16]),g=f(f(f(f(ne,S(I=P,6)^S(I,11)^S(I,25)),P&Q^~P&ie),b[ue]),x[ue]),w=f(S(w=k,2)^S(w,13)^S(w,22),k&F^k&O^F&O),ne=ie,ie=Q,Q=P,P=f(U,g),U=O,O=F,F=k,k=f(g,w);L[0]=f(k,L[0]),L[1]=f(F,L[1]),L[2]=f(O,L[2]),L[3]=f(U,L[3]),L[4]=f(P,L[4]),L[5]=f(Q,L[5]),L[6]=f(ie,L[6]),L[7]=f(ne,L[7])}return L}var m=e("./helpers"),S=function(h,y){return h>>>y|h<<32-y},C=function(h,y){return h>>>y};t.exports=function(h){return m.hash(h,p,32,!0)}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){a.read=function(f,p,m,S,E){var h,y,g=8*E-S-1,b=(1<<g)-1,L=b>>1,x=-7,w=m?E-1:0,I=m?-1:1,E=f[p+w];for(w+=I,h=E&(1<<-x)-1,E>>=-x,x+=g;0<x;h=256*h+f[p+w],w+=I,x-=8);for(y=h&(1<<-x)-1,h>>=-x,x+=S;0<x;y=256*y+f[p+w],w+=I,x-=8);if(h===0)h=1-L;else{if(h===b)return y?NaN:1/0*(E?-1:1);y+=Math.pow(2,S),h-=L}return(E?-1:1)*y*Math.pow(2,h-S)},a.write=function(f,p,m,S,C,k){var y,g,b=8*k-C-1,L=(1<<b)-1,x=L>>1,w=C===23?Math.pow(2,-24)-Math.pow(2,-77):0,I=S?0:k-1,E=S?1:-1,k=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===1/0?(g=isNaN(p)?1:0,y=L):(y=Math.floor(Math.log(p)/Math.LN2),p*(S=Math.pow(2,-y))<1&&(y--,S*=2),2<=(p+=1<=y+x?w/S:w*Math.pow(2,1-x))*S&&(y++,S/=2),L<=y+x?(g=0,y=L):1<=y+x?(g=(p*S-1)*Math.pow(2,C),y+=x):(g=p*Math.pow(2,x-1)*Math.pow(2,C),y=0));8<=C;f[m+I]=255&g,I+=E,g/=256,C-=8);for(y=y<<C|g,b+=C;0<b;f[m+I]=255&y,I+=E,y/=256,b-=8);f[m+I-E]|=128*k}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,t,a){(function(n,r,o,i,l,s,u,c,d){var f,p,m;function S(){}(n=t.exports={}).nextTick=(p=typeof window<"u"&&window.setImmediate,m=typeof window<"u"&&window.postMessage&&window.addEventListener,p?function(C){return window.setImmediate(C)}:m?(f=[],window.addEventListener("message",function(C){var h=C.source;h!==window&&h!==null||C.data!=="process-tick"||(C.stopPropagation(),0<f.length&&f.shift()())},!0),function(C){f.push(C),window.postMessage("process-tick","*")}):function(C){setTimeout(C,0)}),n.title="browser",n.browser=!0,n.env={},n.argv=[],n.on=S,n.addListener=S,n.once=S,n.off=S,n.removeListener=S,n.removeAllListeners=S,n.emit=S,n.binding=function(C){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(C){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),typeof self<"u"?self:typeof window<"u"?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})});var mZ={};function gr(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&a.firstChild?a.insertBefore(n,a.firstChild):a.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}gr(`:root[data-chat-widget],[data-chat-widget]{--chat-primary: #3b82f6;--chat-primary-text: #ffffff;--chat-primary-hover: #2563eb;--chat-background: #ffffff;--chat-border: #e5e7eb;--chat-header-text: #ffffff;--chat-user-text: #ffffff;--chat-assistant-bg: transparent;--chat-assistant-text: #111827;--chat-font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;--chat-radius: .75rem;--chat-input-bg: #ffffff;--chat-input-text: #111827;--chat-input-placeholder: #6b7280;--chat-thought-border: #d1d5db;--chat-font-size: .925rem;--chat-thought-font-size: .75rem}.chat-widget{display:flex;flex-direction:column;width:100%;height:100%;min-height:24rem;background:var(--chat-background);border:1px solid var(--chat-border);border-radius:var(--chat-radius);box-shadow:0 20px 45px #0f172a1f;overflow:hidden;font-family:var(--chat-font-family);color:var(--chat-assistant-text)}.chat-widget__header{display:flex;align-items:center;justify-content:space-between;height:40px;padding:.75rem 1rem;background:var(--chat-primary);color:var(--chat-header-text)}.chat-widget__title{margin:0;font-size:.875rem;font-weight:600}.chat-widget__messages{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:1rem}.chat-widget__message{display:flex;flex-direction:column;gap:0}.chat-widget__message-row{display:flex}.chat-widget__message-row--user{justify-content:flex-end}.chat-widget__message-row--assistant{justify-content:flex-start}.chat-widget__bubble{max-width:90%;padding:.5rem .25rem;border-radius:calc(var(--chat-radius) * .65);font-size:var(--chat-font-size)}.chat-widget__bubble--user{background:var(--chat-primary);color:var(--chat-user-text);border-bottom-right-radius:.35rem}.chat-widget__bubble--assistant{width:90%;background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-bottom-left-radius:.35rem}.chat-widget__widget{width:100%}.chat-widget__markdown{white-space:normal;font-size:var(--chat-font-size)}.chat-widget__markdown h1{font-size:calc(var(--chat-font-size) * 1.4)}.chat-widget__markdown h2{font-size:calc(var(--chat-font-size) * 1.25)}.chat-widget__markdown h3{font-size:calc(var(--chat-font-size) * 1.1)}.chat-widget__markdown h4{font-size:calc(var(--chat-font-size) * 1.05)}.chat-widget__markdown h5{font-size:calc(var(--chat-font-size) * 1)}.chat-widget__markdown h6{font-size:calc(var(--chat-font-size) * .95)}.chat-widget__anchor-button{position:fixed;bottom:20px;right:20px;display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:0 10px 25px #0f172a33;cursor:pointer;font-weight:600;z-index:99999}.chat-widget__anchor-button:hover{background:var(--chat-primary-hover)}.chat-widget__anchor--left{right:auto;left:20px}.chat-widget__anchor-icon{width:1.1rem;height:1.1rem}.chat-widget__popup{position:fixed;bottom:80px;right:20px;z-index:99998}.chat-widget__anchor--left.chat-widget__popup{right:auto;left:20px}.chat-widget__popup-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:0 20px 45px #0f172a1f;border-radius:12px;overflow:hidden}.chat-widget__markdown table{width:100%;border-collapse:collapse;margin:.5rem 0}.chat-widget__markdown th,.chat-widget__markdown td{border:1px solid var(--chat-border);padding:.5rem;text-align:left;vertical-align:top}.chat-widget__markdown thead th{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);font-weight:600}.chat-widget__thoughts{min-width:0;--chat-font-size: var(--chat-thought-font-size)}.chat-widget__details{border:0}.chat-widget__thoughts-summary{list-style:none;display:flex;align-items:center;gap:.35rem;cursor:pointer;color:#6b7280;font-size:.8125rem}.chat-widget__thoughts-summary:hover{color:var(--chat-assistant-text)}.chat-widget__thoughts-icon-container{display:flex;border:1px solid #d1d5db;border-radius:999px;align-items:center;justify-content:center;width:1rem;height:1rem}.chat-widget__thoughts-icon{width:.75rem;height:.75rem;transition:transform .2s ease}.chat-widget__details[open] .chat-widget__thoughts-icon{transform:rotate(90deg)}.chat-widget__thoughts-content{margin-top:.5rem;margin-left:.4rem;padding:.75rem;border-left:2px solid var(--chat-thought-border);border-color:var(--chat-primary);max-width:100%;overflow-x:auto}.chat-widget__thoughts-text{margin:0;line-height:1.5;color:#4b5563;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;display:block}.chat-widget__loading{display:flex;justify-content:flex-start}.chat-widget__loading-bubble{background:var(--chat-assistant-bg);color:var(--chat-assistant-text);border-radius:calc(var(--chat-radius) * .65);border-bottom-left-radius:.35rem;padding:.5rem .75rem}.chat-widget__loading-dots{display:flex;gap:.35rem}.chat-widget__loading-dot{width:.5rem;height:.5rem;border-radius:999px;background:#9ca3af;animation:chat-widget-bounce 1s infinite ease-in-out}.chat-widget__loading-dot[data-delay="1"]{animation-delay:.1s}.chat-widget__loading-dot[data-delay="2"]{animation-delay:.2s}@keyframes chat-widget-bounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}.chat-widget__input{border-top:1px solid var(--chat-border);padding:.25rem 0 .75rem;background:var(--chat-input-bg)}.chat-widget__form{position:relative}.chat-widget__textarea{width:100%;border:0;padding:.75rem 5.25rem .75rem .75rem;background:transparent;font-size:.925rem;resize:none;color:var(--chat-input-text);font-family:inherit}.chat-widget__textarea::-moz-placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea::placeholder{color:var(--chat-input-placeholder)}.chat-widget__textarea:focus-visible{outline:none}.chat-widget__textarea:disabled{opacity:.5;cursor:not-allowed}.chat-widget__toolbar{position:absolute;top:0;right:3.75rem;height:100%;display:flex;align-items:center;padding:0 .5rem;border-right:1px solid var(--chat-border)}.chat-widget__submit{position:absolute;top:50%;right:.75rem;transform:translateY(-50%);background:transparent;border:0;width:2.5rem;height:2.5rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer}.chat-widget__submit:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__submit:not(:disabled):hover{color:var(--chat-primary-hover)}.chat-widget__send-icon{width:1.2rem;height:1.2rem}.chat-widget__mic-button{position:relative;border:none;background:transparent;width:2.25rem;height:2.25rem;display:grid;place-items:center;color:var(--chat-primary);cursor:pointer;border-radius:999px}.chat-widget__mic-button:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__mic-button--active{color:var(--chat-primary-hover);background:#3b82f614}.chat-widget__mic-icon{width:1rem;height:1rem}.chat-widget__mic-bar{position:absolute;bottom:.1rem;left:50%;width:16px;height:2px;border-radius:999px;background:#94a3b866;overflow:hidden;display:block;transform:translate(-50%);pointer-events:none}.chat-widget__mic-bar-fill{display:block;width:100%;height:100%;background:currentColor;transform-origin:left;transition:transform .12s linear}.chat-widget__voice{display:flex;margin-top:.25rem}.chat-widget__voice-button{border:none;background:none;display:inline-flex;align-items:center;gap:.35rem;padding:.1rem 0;font-size:.8rem;font-weight:500;color:var(--chat-primary);cursor:pointer}.chat-widget__voice-button:disabled{color:#9ca3af;cursor:not-allowed}.chat-widget__voice-button--active{color:var(--chat-primary-hover)}.chat-widget__voice-icon{width:.95rem;height:.95rem}.chat-widget__voice-icon--spin{animation:chat-widget-spin 1s linear infinite}@keyframes chat-widget-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-widget__collapsed{position:relative;margin-bottom:.25rem}.chat-widget__collapsed-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease-out}.chat-widget__collapsed-content--expanded{grid-template-rows:1fr}.chat-widget__collapsed-content-inner{overflow:hidden}.chat-widget__collapsed-preview{position:relative;max-height:1.5em;overflow:hidden;opacity:.6;pointer-events:none;transition:opacity .3s ease-out,max-height .3s ease-out}.chat-widget__collapsed-preview--hidden{opacity:0;max-height:0;pointer-events:none}.chat-widget__collapsed-gradient{position:absolute;top:0;right:0;width:70%;height:100%;background:linear-gradient(to right,transparent 0%,var(--chat-background) 90%);pointer-events:none}.chat-widget__collapsed-toggle{display:inline-block;padding:0;font-size:.75rem;font-weight:500;color:var(--chat-primary);background:transparent;border:none;cursor:pointer}.chat-widget__collapsed-toggle:hover{text-decoration:underline}@keyframes chat-widget-slide-up{0%{opacity:1;transform:translateY(0);max-height:200px}to{opacity:.6;transform:translateY(-8px);max-height:1.5em}}.chat-widget__collapsed--animating .chat-widget__collapsed-preview{animation:chat-widget-slide-up .3s ease-out forwards}
|
|
17
|
-
`);var bO=pe(pT(),1);var FT="vercel.ai.error",yP=Symbol.for(FT),mT,hT,Pe=class qT extends(hT=Error,mT=yP,hT){constructor({name:t,message:a,cause:n}){super(a),this[mT]=!0,this.name=t,this.cause=n}static isInstance(t){return qT.hasMarker(t,FT)}static hasMarker(t,a){let n=Symbol.for(a);return t!=null&&typeof t=="object"&&n in t&&typeof t[n]=="boolean"&&t[n]===!0}},ZT="AI_APICallError",HT=`vercel.ai.error.${ZT}`,xP=Symbol.for(HT),gT,vT,CZ=class extends(vT=Pe,gT=xP,vT){constructor({message:e,url:t,requestBodyValues:a,statusCode:n,responseHeaders:r,responseBody:o,cause:i,isRetryable:l=n!=null&&(n===408||n===409||n===429||n>=500),data:s}){super({name:ZT,message:e,cause:i}),this[gT]=!0,this.url=t,this.requestBodyValues=a,this.statusCode=n,this.responseHeaders=r,this.responseBody=o,this.isRetryable=l,this.data=s}static isInstance(e){return Pe.hasMarker(e,HT)}},VT="AI_EmptyResponseBodyError",GT=`vercel.ai.error.${VT}`,bP=Symbol.for(GT),yT,xT,LZ=class extends(xT=Pe,yT=bP,xT){constructor({message:e="Empty response body"}={}){super({name:VT,message:e}),this[yT]=!0}static isInstance(e){return Pe.hasMarker(e,GT)}};function WT(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var JT="AI_InvalidArgumentError",XT=`vercel.ai.error.${JT}`,SP=Symbol.for(XT),bT,ST,KT=class extends(ST=Pe,bT=SP,ST){constructor({message:e,cause:t,argument:a}){super({name:JT,message:e,cause:t}),this[bT]=!0,this.argument=a}static isInstance(e){return Pe.hasMarker(e,XT)}},YT="AI_InvalidPromptError",QT=`vercel.ai.error.${YT}`,wP=Symbol.for(QT),wT,IT,TZ=class extends(IT=Pe,wT=wP,IT){constructor({prompt:e,message:t,cause:a}){super({name:YT,message:`Invalid prompt: ${t}`,cause:a}),this[wT]=!0,this.prompt=e}static isInstance(e){return Pe.hasMarker(e,QT)}},eA="AI_InvalidResponseDataError",tA=`vercel.ai.error.${eA}`,IP=Symbol.for(tA),_T,kT,AZ=class extends(kT=Pe,_T=IP,kT){constructor({data:e,message:t=`Invalid response data: ${JSON.stringify(e)}.`}){super({name:eA,message:t}),this[_T]=!0,this.data=e}static isInstance(e){return Pe.hasMarker(e,tA)}},aA="AI_JSONParseError",rA=`vercel.ai.error.${aA}`,_P=Symbol.for(rA),CT,LT,by=class extends(LT=Pe,CT=_P,LT){constructor({text:e,cause:t}){super({name:aA,message:`JSON parsing failed: Text: ${e}.
|
|
18
|
-
Error message: ${WT(t)}`,cause:t}),this[CT]=!0,this.text=e}static isInstance(e){return Pe.hasMarker(e,rA)}},nA="AI_LoadAPIKeyError",oA=`vercel.ai.error.${nA}`,kP=Symbol.for(oA),TT,AT,EZ=class extends(AT=Pe,TT=kP,AT){constructor({message:e}){super({name:nA,message:e}),this[TT]=!0}static isInstance(e){return Pe.hasMarker(e,oA)}},iA="AI_LoadSettingError",lA=`vercel.ai.error.${iA}`,CP=Symbol.for(lA),ET,$T,$Z=class extends($T=Pe,ET=CP,$T){constructor({message:e}){super({name:iA,message:e}),this[ET]=!0}static isInstance(e){return Pe.hasMarker(e,lA)}},sA="AI_NoContentGeneratedError",uA=`vercel.ai.error.${sA}`,LP=Symbol.for(uA),MT,zT,MZ=class extends(zT=Pe,MT=LP,zT){constructor({message:e="No content generated."}={}){super({name:sA,message:e}),this[MT]=!0}static isInstance(e){return Pe.hasMarker(e,uA)}},cA="AI_NoSuchModelError",dA=`vercel.ai.error.${cA}`,TP=Symbol.for(dA),DT,OT,zZ=class extends(OT=Pe,DT=TP,OT){constructor({errorName:e=cA,modelId:t,modelType:a,message:n=`No such ${a}: ${t}`}){super({name:e,message:n}),this[DT]=!0,this.modelId=t,this.modelType=a}static isInstance(e){return Pe.hasMarker(e,dA)}},fA="AI_TooManyEmbeddingValuesForCallError",pA=`vercel.ai.error.${fA}`,AP=Symbol.for(pA),RT,PT,DZ=class extends(PT=Pe,RT=AP,PT){constructor(e){super({name:fA,message:`Too many values for a single embedding call. The ${e.provider} model "${e.modelId}" can only embed up to ${e.maxEmbeddingsPerCall} values per call, but ${e.values.length} values were provided.`}),this[RT]=!0,this.provider=e.provider,this.modelId=e.modelId,this.maxEmbeddingsPerCall=e.maxEmbeddingsPerCall,this.values=e.values}static isInstance(e){return Pe.hasMarker(e,pA)}},mA="AI_TypeValidationError",hA=`vercel.ai.error.${mA}`,EP=Symbol.for(hA),UT,NT,Rr=class xy extends(NT=Pe,UT=EP,NT){constructor({value:t,cause:a,context:n}){let r="Type validation failed";if(n?.field&&(r+=` for ${n.field}`),n?.entityName||n?.entityId){r+=" (";let o=[];n.entityName&&o.push(n.entityName),n.entityId&&o.push(`id: "${n.entityId}"`),r+=o.join(", "),r+=")"}super({name:mA,message:`${r}: Value: ${JSON.stringify(t)}.
|
|
19
|
-
Error message: ${WT(a)}`,cause:a}),this[UT]=!0,this.value=t,this.context=n}static isInstance(t){return Pe.hasMarker(t,hA)}static wrap({value:t,cause:a,context:n}){var r,o,i;return xy.isInstance(a)&&a.value===t&&((r=a.context)==null?void 0:r.field)===n?.field&&((o=a.context)==null?void 0:o.entityName)===n?.entityName&&((i=a.context)==null?void 0:i.entityId)===n?.entityId?a:new xy({value:t,cause:a,context:n})}},gA="AI_UnsupportedFunctionalityError",vA=`vercel.ai.error.${gA}`,$P=Symbol.for(vA),jT,BT,OZ=class extends(BT=Pe,jT=$P,BT){constructor({functionality:e,message:t=`'${e}' functionality not supported.`}){super({name:gA,message:t}),this[jT]=!0,this.functionality=e}static isInstance(e){return Pe.hasMarker(e,vA)}};var v={};hr(v,{$brand:()=>Wf,$input:()=>jb,$output:()=>Nb,NEVER:()=>Sy,TimePrecision:()=>Zb,ZodAny:()=>Mw,ZodArray:()=>Rw,ZodBase64:()=>bm,ZodBase64URL:()=>Sm,ZodBigInt:()=>os,ZodBigIntFormat:()=>_m,ZodBoolean:()=>ns,ZodCIDRv4:()=>ym,ZodCIDRv6:()=>xm,ZodCUID:()=>dm,ZodCUID2:()=>fm,ZodCatch:()=>nI,ZodCodec:()=>Mm,ZodCustom:()=>wc,ZodCustomStringFormat:()=>as,ZodDate:()=>vc,ZodDefault:()=>Yw,ZodDiscriminatedUnion:()=>Uw,ZodE164:()=>wm,ZodEmail:()=>sm,ZodEmoji:()=>um,ZodEnum:()=>es,ZodError:()=>oN,ZodExactOptional:()=>Jw,ZodFile:()=>Gw,ZodFirstPartyTypeKind:()=>gI,ZodFunction:()=>pI,ZodGUID:()=>fc,ZodIPv4:()=>gm,ZodIPv6:()=>vm,ZodISODate:()=>am,ZodISODateTime:()=>tm,ZodISODuration:()=>nm,ZodISOTime:()=>rm,ZodIntersection:()=>Nw,ZodIssueCode:()=>lN,ZodJWT:()=>Im,ZodKSUID:()=>hm,ZodLazy:()=>cI,ZodLiteral:()=>Vw,ZodMAC:()=>kw,ZodMap:()=>Zw,ZodNaN:()=>iI,ZodNanoID:()=>cm,ZodNever:()=>Dw,ZodNonOptional:()=>Em,ZodNull:()=>Ew,ZodNullable:()=>Kw,ZodNumber:()=>rs,ZodNumberFormat:()=>di,ZodObject:()=>xc,ZodOptional:()=>Am,ZodPipe:()=>$m,ZodPrefault:()=>eI,ZodPromise:()=>fI,ZodReadonly:()=>lI,ZodRealError:()=>Ca,ZodRecord:()=>Sc,ZodSet:()=>Hw,ZodString:()=>ts,ZodStringFormat:()=>Ke,ZodSuccess:()=>rI,ZodSymbol:()=>Tw,ZodTemplateLiteral:()=>uI,ZodTransform:()=>Ww,ZodTuple:()=>Bw,ZodType:()=>we,ZodULID:()=>pm,ZodURL:()=>gc,ZodUUID:()=>jr,ZodUndefined:()=>Aw,ZodUnion:()=>bc,ZodUnknown:()=>zw,ZodVoid:()=>Ow,ZodXID:()=>mm,ZodXor:()=>Pw,_ZodString:()=>lm,_default:()=>Qw,_function:()=>X2,any:()=>T2,array:()=>yc,base64:()=>d2,base64url:()=>f2,bigint:()=>I2,boolean:()=>Lw,catch:()=>oI,check:()=>K2,cidrv4:()=>u2,cidrv6:()=>c2,clone:()=>da,codec:()=>G2,coerce:()=>vI,config:()=>St,core:()=>bn,cuid:()=>t2,cuid2:()=>a2,custom:()=>Y2,date:()=>E2,decode:()=>yw,decodeAsync:()=>bw,describe:()=>Q2,discriminatedUnion:()=>R2,e164:()=>p2,email:()=>HE,emoji:()=>QE,encode:()=>vw,encodeAsync:()=>xw,endsWith:()=>ql,enum:()=>Lm,exactOptional:()=>Xw,file:()=>q2,flattenError:()=>Yu,float32:()=>x2,float64:()=>b2,formatError:()=>Qu,fromJSONSchema:()=>i$,function:()=>X2,getErrorMap:()=>uN,globalRegistry:()=>ta,gt:()=>Ur,gte:()=>fa,guid:()=>VE,hash:()=>y2,hex:()=>v2,hostname:()=>g2,httpUrl:()=>YE,includes:()=>Bl,instanceof:()=>t$,int:()=>im,int32:()=>S2,int64:()=>_2,intersection:()=>jw,ipv4:()=>i2,ipv6:()=>s2,iso:()=>Ql,json:()=>r$,jwt:()=>m2,keyof:()=>$2,ksuid:()=>o2,lazy:()=>dI,length:()=>ui,literal:()=>F2,locales:()=>lc,looseObject:()=>D2,looseRecord:()=>U2,lowercase:()=>Nl,lt:()=>Pr,lte:()=>Fa,mac:()=>l2,map:()=>N2,maxLength:()=>si,maxSize:()=>ho,meta:()=>e$,mime:()=>Zl,minLength:()=>xn,minSize:()=>Nr,multipleOf:()=>mo,nan:()=>V2,nanoid:()=>e2,nativeEnum:()=>B2,negative:()=>Vp,never:()=>km,nonnegative:()=>Wp,nonoptional:()=>aI,nonpositive:()=>Gp,normalize:()=>Hl,null:()=>$w,nullable:()=>mc,nullish:()=>Z2,number:()=>Cw,object:()=>M2,optional:()=>pc,overwrite:()=>Sr,parse:()=>mw,parseAsync:()=>hw,partialRecord:()=>P2,pipe:()=>hc,positive:()=>Hp,prefault:()=>tI,preprocess:()=>n$,prettifyError:()=>zy,promise:()=>J2,property:()=>Jp,readonly:()=>sI,record:()=>qw,refine:()=>mI,regex:()=>Ul,regexes:()=>lr,registry:()=>_p,safeDecode:()=>ww,safeDecodeAsync:()=>_w,safeEncode:()=>Sw,safeEncodeAsync:()=>Iw,safeParse:()=>gw,safeParseAsync:()=>dc,set:()=>j2,setErrorMap:()=>sN,size:()=>li,slugify:()=>Jl,startsWith:()=>Fl,strictObject:()=>z2,string:()=>om,stringFormat:()=>h2,stringbool:()=>a$,success:()=>H2,superRefine:()=>hI,symbol:()=>C2,templateLiteral:()=>W2,toJSONSchema:()=>Yl,toLowerCase:()=>Gl,toUpperCase:()=>Wl,transform:()=>Tm,treeifyError:()=>My,trim:()=>Vl,tuple:()=>Fw,uint32:()=>w2,uint64:()=>k2,ulid:()=>r2,undefined:()=>L2,union:()=>Cm,unknown:()=>ci,uppercase:()=>jl,url:()=>KE,util:()=>V,uuid:()=>GE,uuidv4:()=>WE,uuidv6:()=>JE,uuidv7:()=>XE,void:()=>A2,xid:()=>n2,xor:()=>O2});var bn={};hr(bn,{$ZodAny:()=>lb,$ZodArray:()=>fb,$ZodAsyncError:()=>br,$ZodBase64:()=>Kx,$ZodBase64URL:()=>Yx,$ZodBigInt:()=>vp,$ZodBigIntFormat:()=>rb,$ZodBoolean:()=>rc,$ZodCIDRv4:()=>Wx,$ZodCIDRv6:()=>Jx,$ZodCUID:()=>Rx,$ZodCUID2:()=>Px,$ZodCatch:()=>Eb,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>fx,$ZodCheckEndsWith:()=>_x,$ZodCheckGreaterThan:()=>cp,$ZodCheckIncludes:()=>wx,$ZodCheckLengthEquals:()=>yx,$ZodCheckLessThan:()=>up,$ZodCheckLowerCase:()=>bx,$ZodCheckMaxLength:()=>gx,$ZodCheckMaxSize:()=>px,$ZodCheckMimeType:()=>Cx,$ZodCheckMinLength:()=>vx,$ZodCheckMinSize:()=>mx,$ZodCheckMultipleOf:()=>cx,$ZodCheckNumberFormat:()=>dx,$ZodCheckOverwrite:()=>Lx,$ZodCheckProperty:()=>kx,$ZodCheckRegex:()=>xx,$ZodCheckSizeEquals:()=>hx,$ZodCheckStartsWith:()=>Ix,$ZodCheckStringFormat:()=>Rl,$ZodCheckUpperCase:()=>Sx,$ZodCodec:()=>oc,$ZodCustom:()=>Ub,$ZodCustomStringFormat:()=>tb,$ZodDate:()=>db,$ZodDefault:()=>Cb,$ZodDiscriminatedUnion:()=>hb,$ZodE164:()=>Qx,$ZodEmail:()=>Mx,$ZodEmoji:()=>Dx,$ZodEncodeError:()=>so,$ZodEnum:()=>bb,$ZodError:()=>Ku,$ZodExactOptional:()=>_b,$ZodFile:()=>wb,$ZodFunction:()=>Ob,$ZodGUID:()=>Ex,$ZodIPv4:()=>Hx,$ZodIPv6:()=>Vx,$ZodISODate:()=>Fx,$ZodISODateTime:()=>Bx,$ZodISODuration:()=>Zx,$ZodISOTime:()=>qx,$ZodIntersection:()=>gb,$ZodJWT:()=>eb,$ZodKSUID:()=>jx,$ZodLazy:()=>Pb,$ZodLiteral:()=>Sb,$ZodMAC:()=>Gx,$ZodMap:()=>yb,$ZodNaN:()=>$b,$ZodNanoID:()=>Ox,$ZodNever:()=>ub,$ZodNonOptional:()=>Tb,$ZodNull:()=>ib,$ZodNullable:()=>kb,$ZodNumber:()=>gp,$ZodNumberFormat:()=>ab,$ZodObject:()=>ZA,$ZodObjectJIT:()=>pb,$ZodOptional:()=>xp,$ZodPipe:()=>Mb,$ZodPrefault:()=>Lb,$ZodPromise:()=>Rb,$ZodReadonly:()=>zb,$ZodRealError:()=>ka,$ZodRecord:()=>vb,$ZodRegistry:()=>Ip,$ZodSet:()=>xb,$ZodString:()=>ii,$ZodStringFormat:()=>Xe,$ZodSuccess:()=>Ab,$ZodSymbol:()=>nb,$ZodTemplateLiteral:()=>Db,$ZodTransform:()=>Ib,$ZodTuple:()=>yp,$ZodType:()=>ve,$ZodULID:()=>Ux,$ZodURL:()=>zx,$ZodUUID:()=>$x,$ZodUndefined:()=>ob,$ZodUnion:()=>nc,$ZodUnknown:()=>sb,$ZodVoid:()=>cb,$ZodXID:()=>Nx,$ZodXor:()=>mb,$brand:()=>Wf,$constructor:()=>z,$input:()=>jb,$output:()=>Nb,Doc:()=>ac,JSONSchema:()=>qE,JSONSchemaGenerator:()=>Qp,NEVER:()=>Sy,TimePrecision:()=>Zb,_any:()=>dS,_array:()=>yS,_base64:()=>Bp,_base64url:()=>Fp,_bigint:()=>nS,_boolean:()=>aS,_catch:()=>KU,_check:()=>FE,_cidrv4:()=>Np,_cidrv6:()=>jp,_coercedBigint:()=>oS,_coercedBoolean:()=>rS,_coercedDate:()=>gS,_coercedNumber:()=>Xb,_coercedString:()=>Fb,_cuid:()=>Mp,_cuid2:()=>zp,_custom:()=>bS,_date:()=>hS,_decode:()=>ep,_decodeAsync:()=>ap,_default:()=>WU,_discriminatedUnion:()=>RU,_e164:()=>qp,_email:()=>kp,_emoji:()=>Ep,_encode:()=>Qf,_encodeAsync:()=>tp,_endsWith:()=>ql,_enum:()=>FU,_file:()=>xS,_float32:()=>Yb,_float64:()=>Qb,_gt:()=>Ur,_gte:()=>fa,_guid:()=>sc,_includes:()=>Bl,_int:()=>Kb,_int32:()=>eS,_int64:()=>iS,_intersection:()=>PU,_ipv4:()=>Pp,_ipv6:()=>Up,_isoDate:()=>Vb,_isoDateTime:()=>Hb,_isoDuration:()=>Wb,_isoTime:()=>Gb,_jwt:()=>Zp,_ksuid:()=>Rp,_lazy:()=>tN,_length:()=>ui,_literal:()=>ZU,_lowercase:()=>Nl,_lt:()=>Pr,_lte:()=>Fa,_mac:()=>qb,_map:()=>jU,_max:()=>Fa,_maxLength:()=>si,_maxSize:()=>ho,_mime:()=>Zl,_min:()=>fa,_minLength:()=>xn,_minSize:()=>Nr,_multipleOf:()=>mo,_nan:()=>vS,_nanoid:()=>$p,_nativeEnum:()=>qU,_negative:()=>Vp,_never:()=>pS,_nonnegative:()=>Wp,_nonoptional:()=>JU,_nonpositive:()=>Gp,_normalize:()=>Hl,_null:()=>cS,_nullable:()=>GU,_number:()=>Jb,_optional:()=>VU,_overwrite:()=>Sr,_parse:()=>Ml,_parseAsync:()=>zl,_pipe:()=>YU,_positive:()=>Hp,_promise:()=>aN,_property:()=>Jp,_readonly:()=>QU,_record:()=>NU,_refine:()=>SS,_regex:()=>Ul,_safeDecode:()=>np,_safeDecodeAsync:()=>ip,_safeEncode:()=>rp,_safeEncodeAsync:()=>op,_safeParse:()=>Dl,_safeParseAsync:()=>Ol,_set:()=>BU,_size:()=>li,_slugify:()=>Jl,_startsWith:()=>Fl,_string:()=>Bb,_stringFormat:()=>Xl,_stringbool:()=>kS,_success:()=>XU,_superRefine:()=>wS,_symbol:()=>sS,_templateLiteral:()=>eN,_toLowerCase:()=>Gl,_toUpperCase:()=>Wl,_transform:()=>HU,_trim:()=>Vl,_tuple:()=>UU,_uint32:()=>tS,_uint64:()=>lS,_ulid:()=>Dp,_undefined:()=>uS,_union:()=>DU,_unknown:()=>fS,_uppercase:()=>jl,_url:()=>uc,_uuid:()=>Cp,_uuidv4:()=>Lp,_uuidv6:()=>Tp,_uuidv7:()=>Ap,_void:()=>mS,_xid:()=>Op,_xor:()=>OU,clone:()=>da,config:()=>St,createStandardJSONSchemaMethod:()=>Kl,createToJSONSchemaMethod:()=>CS,decode:()=>o6,decodeAsync:()=>l6,describe:()=>IS,encode:()=>n6,encodeAsync:()=>i6,extractDefs:()=>vo,finalize:()=>yo,flattenError:()=>Yu,formatError:()=>Qu,globalConfig:()=>Zu,globalRegistry:()=>ta,initializeContext:()=>go,isValidBase64:()=>Xx,isValidBase64URL:()=>jA,isValidJWT:()=>BA,locales:()=>lc,meta:()=>_S,parse:()=>Kf,parseAsync:()=>Yf,prettifyError:()=>zy,process:()=>Fe,regexes:()=>lr,registry:()=>_p,safeDecode:()=>u6,safeDecodeAsync:()=>d6,safeEncode:()=>s6,safeEncodeAsync:()=>c6,safeParse:()=>Dy,safeParseAsync:()=>Oy,toDotPath:()=>wA,toJSONSchema:()=>Yl,treeifyError:()=>My,util:()=>V,version:()=>Tx});var Sy=Object.freeze({status:"aborted"});function z(e,t,a){function n(l,s){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:s,constr:i,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,s);let u=i.prototype,c=Object.keys(u);for(let d=0;d<c.length;d++){let f=c[d];f in l||(l[f]=u[f].bind(l))}}let r=a?.Parent??Object;class o extends r{}Object.defineProperty(o,"name",{value:e});function i(l){var s;let u=a?.Parent?new o:this;n(u,l),(s=u._zod).deferred??(s.deferred=[]);for(let c of u._zod.deferred)c();return u}return Object.defineProperty(i,"init",{value:n}),Object.defineProperty(i,Symbol.hasInstance,{value:l=>a?.Parent&&l instanceof a.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(i,"name",{value:e}),i}var Wf=Symbol("zod_brand"),br=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},so=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Zu={};function St(e){return e&&Object.assign(Zu,e),Zu}var V={};hr(V,{BIGINT_FORMAT_RANGES:()=>$y,Class:()=>Iy,NUMBER_FORMAT_RANGES:()=>Ey,aborted:()=>po,allowsEval:()=>Cy,assert:()=>RP,assertEqual:()=>MP,assertIs:()=>DP,assertNever:()=>OP,assertNotEqual:()=>zP,assignProp:()=>co,base64ToUint8Array:()=>xA,base64urlToUint8Array:()=>QP,cached:()=>El,captureStackTrace:()=>Xf,cleanEnum:()=>YP,cleanRegex:()=>Gu,clone:()=>da,cloneDef:()=>UP,createTransparentProxy:()=>ZP,defineLazy:()=>Le,esc:()=>Jf,escapeRegex:()=>ir,extend:()=>GP,finalizeIssue:()=>_a,floatSafeRemainder:()=>_y,getElementAtPath:()=>NP,getEnumValues:()=>Vu,getLengthableOrigin:()=>Xu,getParsedType:()=>qP,getSizableOrigin:()=>Ju,hexToUint8Array:()=>t6,isObject:()=>ni,isPlainObject:()=>fo,issue:()=>$l,joinValues:()=>D,jsonStringifyReplacer:()=>Al,merge:()=>JP,mergeDefs:()=>yn,normalizeParams:()=>J,nullish:()=>uo,numKeys:()=>FP,objectClone:()=>PP,omit:()=>VP,optionalKeys:()=>Ay,parsedType:()=>H,partial:()=>XP,pick:()=>HP,prefixIssues:()=>Ba,primitiveTypes:()=>Ty,promiseAllObject:()=>jP,propertyKeyTypes:()=>Wu,randomString:()=>BP,required:()=>KP,safeExtend:()=>WP,shallowClone:()=>Ly,slugify:()=>ky,stringifyPrimitive:()=>q,uint8ArrayToBase64:()=>bA,uint8ArrayToBase64url:()=>e6,uint8ArrayToHex:()=>a6,unwrapMessage:()=>Hu});function MP(e){return e}function zP(e){return e}function DP(e){}function OP(e){throw new Error("Unexpected value in exhaustive check")}function RP(e){}function Vu(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function D(e,t="|"){return e.map(a=>q(a)).join(t)}function Al(e,t){return typeof t=="bigint"?t.toString():t}function El(e){return{get value(){{let a=e();return Object.defineProperty(this,"value",{value:a}),a}throw new Error("cached value already set")}}}function uo(e){return e==null}function Gu(e){let t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}function _y(e,t){let a=(e.toString().split(".")[1]||"").length,n=t.toString(),r=(n.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(n)){let s=n.match(/\d?e-(\d?)/);s?.[1]&&(r=Number.parseInt(s[1]))}let o=a>r?a:r,i=Number.parseInt(e.toFixed(o).replace(".","")),l=Number.parseInt(t.toFixed(o).replace(".",""));return i%l/10**o}var yA=Symbol("evaluating");function Le(e,t,a){let n;Object.defineProperty(e,t,{get(){if(n!==yA)return n===void 0&&(n=yA,n=a()),n},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function PP(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function co(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function yn(...e){let t={};for(let a of e){let n=Object.getOwnPropertyDescriptors(a);Object.assign(t,n)}return Object.defineProperties({},t)}function UP(e){return yn(e._zod.def)}function NP(e,t){return t?t.reduce((a,n)=>a?.[n],e):e}function jP(e){let t=Object.keys(e),a=t.map(n=>e[n]);return Promise.all(a).then(n=>{let r={};for(let o=0;o<t.length;o++)r[t[o]]=n[o];return r})}function BP(e=10){let t="abcdefghijklmnopqrstuvwxyz",a="";for(let n=0;n<e;n++)a+=t[Math.floor(Math.random()*t.length)];return a}function Jf(e){return JSON.stringify(e)}function ky(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Xf="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ni(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Cy=El(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function fo(e){if(ni(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let a=t.prototype;return!(ni(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function Ly(e){return fo(e)?{...e}:Array.isArray(e)?[...e]:e}function FP(e){let t=0;for(let a in e)Object.prototype.hasOwnProperty.call(e,a)&&t++;return t}var qP=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Wu=new Set(["string","number","symbol"]),Ty=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ir(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function da(e,t,a){let n=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(n._zod.parent=e),n}function J(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function ZP(e){let t;return new Proxy({},{get(a,n,r){return t??(t=e()),Reflect.get(t,n,r)},set(a,n,r,o){return t??(t=e()),Reflect.set(t,n,r,o)},has(a,n){return t??(t=e()),Reflect.has(t,n)},deleteProperty(a,n){return t??(t=e()),Reflect.deleteProperty(t,n)},ownKeys(a){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(a,n){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,n)},defineProperty(a,n,r){return t??(t=e()),Reflect.defineProperty(t,n,r)}})}function q(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ay(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}var Ey={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]},$y={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function HP(e,t){let a=e._zod.def,n=a.checks;if(n&&n.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let o=yn(e._zod.def,{get shape(){let i={};for(let l in t){if(!(l in a.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(i[l]=a.shape[l])}return co(this,"shape",i),i},checks:[]});return da(e,o)}function VP(e,t){let a=e._zod.def,n=a.checks;if(n&&n.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let o=yn(e._zod.def,{get shape(){let i={...e._zod.def.shape};for(let l in t){if(!(l in a.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete i[l]}return co(this,"shape",i),i},checks:[]});return da(e,o)}function GP(e,t){if(!fo(t))throw new Error("Invalid input to extend: expected a plain object");let a=e._zod.def.checks;if(a&&a.length>0){let o=e._zod.def.shape;for(let i in t)if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let r=yn(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return co(this,"shape",o),o}});return da(e,r)}function WP(e,t){if(!fo(t))throw new Error("Invalid input to safeExtend: expected a plain object");let a=yn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return co(this,"shape",n),n}});return da(e,a)}function JP(e,t){let a=yn(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return co(this,"shape",n),n},get catchall(){return t._zod.def.catchall},checks:[]});return da(e,a)}function XP(e,t,a){let r=t._zod.def.checks;if(r&&r.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let i=yn(t._zod.def,{get shape(){let l=t._zod.def.shape,s={...l};if(a)for(let u in a){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(s[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(let u in l)s[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return co(this,"shape",s),s},checks:[]});return da(t,i)}function KP(e,t,a){let n=yn(t._zod.def,{get shape(){let r=t._zod.def.shape,o={...r};if(a)for(let i in a){if(!(i in o))throw new Error(`Unrecognized key: "${i}"`);a[i]&&(o[i]=new e({type:"nonoptional",innerType:r[i]}))}else for(let i in r)o[i]=new e({type:"nonoptional",innerType:r[i]});return co(this,"shape",o),o}});return da(t,n)}function po(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function Ba(e,t){return t.map(a=>{var n;return(n=a).path??(n.path=[]),a.path.unshift(e),a})}function Hu(e){return typeof e=="string"?e:e?.message}function _a(e,t,a){let n={...e,path:e.path??[]};if(!e.message){let r=Hu(e.inst?._zod.def?.error?.(e))??Hu(t?.error?.(e))??Hu(a.customError?.(e))??Hu(a.localeError?.(e))??"Invalid input";n.message=r}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}function Ju(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Xu(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function H(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let a=e;if(a&&Object.getPrototypeOf(a)!==Object.prototype&&"constructor"in a&&a.constructor)return a.constructor.name}}return t}function $l(...e){let[t,a,n]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:n}:{...t}}function YP(e){return Object.entries(e).filter(([t,a])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function xA(e){let t=atob(e),a=new Uint8Array(t.length);for(let n=0;n<t.length;n++)a[n]=t.charCodeAt(n);return a}function bA(e){let t="";for(let a=0;a<e.length;a++)t+=String.fromCharCode(e[a]);return btoa(t)}function QP(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),a="=".repeat((4-t.length%4)%4);return xA(t+a)}function e6(e){return bA(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function t6(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let a=new Uint8Array(t.length/2);for(let n=0;n<t.length;n+=2)a[n/2]=Number.parseInt(t.slice(n,n+2),16);return a}function a6(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var Iy=class{constructor(...t){}};var SA=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Al,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Ku=z("$ZodError",SA),ka=z("$ZodError",SA,{Parent:Error});function Yu(e,t=a=>a.message){let a={},n=[];for(let r of e.issues)r.path.length>0?(a[r.path[0]]=a[r.path[0]]||[],a[r.path[0]].push(t(r))):n.push(t(r));return{formErrors:n,fieldErrors:a}}function Qu(e,t=a=>a.message){let a={_errors:[]},n=r=>{for(let o of r.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(i=>n({issues:i}));else if(o.code==="invalid_key")n({issues:o.issues});else if(o.code==="invalid_element")n({issues:o.issues});else if(o.path.length===0)a._errors.push(t(o));else{let i=a,l=0;for(;l<o.path.length;){let s=o.path[l];l===o.path.length-1?(i[s]=i[s]||{_errors:[]},i[s]._errors.push(t(o))):i[s]=i[s]||{_errors:[]},i=i[s],l++}}};return n(e),a}function My(e,t=a=>a.message){let a={errors:[]},n=(r,o=[])=>{var i,l;for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>n({issues:u},s.path));else if(s.code==="invalid_key")n({issues:s.issues},s.path);else if(s.code==="invalid_element")n({issues:s.issues},s.path);else{let u=[...o,...s.path];if(u.length===0){a.errors.push(t(s));continue}let c=a,d=0;for(;d<u.length;){let f=u[d],p=d===u.length-1;typeof f=="string"?(c.properties??(c.properties={}),(i=c.properties)[f]??(i[f]={errors:[]}),c=c.properties[f]):(c.items??(c.items=[]),(l=c.items)[f]??(l[f]={errors:[]}),c=c.items[f]),p&&c.errors.push(t(s)),d++}}};return n(e),a}function wA(e){let t=[],a=e.map(n=>typeof n=="object"?n.key:n);for(let n of a)typeof n=="number"?t.push(`[${n}]`):typeof n=="symbol"?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function zy(e){let t=[],a=[...e.issues].sort((n,r)=>(n.path??[]).length-(r.path??[]).length);for(let n of a)t.push(`\u2716 ${n.message}`),n.path?.length&&t.push(` \u2192 at ${wA(n.path)}`);return t.join(`
|
|
20
|
-
`)}var Ml=e=>(t,a,n,r)=>{let o=n?Object.assign(n,{async:!1}):{async:!1},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise)throw new br;if(i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>_a(s,o,St())));throw Xf(l,r?.callee),l}return i.value},Kf=Ml(ka),zl=e=>async(t,a,n,r)=>{let o=n?Object.assign(n,{async:!0}):{async:!0},i=t._zod.run({value:a,issues:[]},o);if(i instanceof Promise&&(i=await i),i.issues.length){let l=new(r?.Err??e)(i.issues.map(s=>_a(s,o,St())));throw Xf(l,r?.callee),l}return i.value},Yf=zl(ka),Dl=e=>(t,a,n)=>{let r=n?{...n,async:!1}:{async:!1},o=t._zod.run({value:a,issues:[]},r);if(o instanceof Promise)throw new br;return o.issues.length?{success:!1,error:new(e??Ku)(o.issues.map(i=>_a(i,r,St())))}:{success:!0,data:o.value}},Dy=Dl(ka),Ol=e=>async(t,a,n)=>{let r=n?Object.assign(n,{async:!0}):{async:!0},o=t._zod.run({value:a,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(i=>_a(i,r,St())))}:{success:!0,data:o.value}},Oy=Ol(ka),Qf=e=>(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ml(e)(t,a,r)},n6=Qf(ka),ep=e=>(t,a,n)=>Ml(e)(t,a,n),o6=ep(ka),tp=e=>async(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return zl(e)(t,a,r)},i6=tp(ka),ap=e=>async(t,a,n)=>zl(e)(t,a,n),l6=ap(ka),rp=e=>(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Dl(e)(t,a,r)},s6=rp(ka),np=e=>(t,a,n)=>Dl(e)(t,a,n),u6=np(ka),op=e=>async(t,a,n)=>{let r=n?Object.assign(n,{direction:"backward"}):{direction:"backward"};return Ol(e)(t,a,r)},c6=op(ka),ip=e=>async(t,a,n)=>Ol(e)(t,a,n),d6=ip(ka);var lr={};hr(lr,{base64:()=>Ky,base64url:()=>lp,bigint:()=>rx,boolean:()=>ox,browserEmail:()=>x6,cidrv4:()=>Jy,cidrv6:()=>Xy,cuid:()=>Ry,cuid2:()=>Py,date:()=>Qy,datetime:()=>tx,domain:()=>w6,duration:()=>Fy,e164:()=>Yy,email:()=>Zy,emoji:()=>Hy,extendedDuration:()=>f6,guid:()=>qy,hex:()=>I6,hostname:()=>S6,html5Email:()=>g6,idnEmail:()=>y6,integer:()=>nx,ipv4:()=>Vy,ipv6:()=>Gy,ksuid:()=>jy,lowercase:()=>sx,mac:()=>Wy,md5_base64:()=>k6,md5_base64url:()=>C6,md5_hex:()=>_6,nanoid:()=>By,null:()=>ix,number:()=>sp,rfc5322Email:()=>v6,sha1_base64:()=>T6,sha1_base64url:()=>A6,sha1_hex:()=>L6,sha256_base64:()=>$6,sha256_base64url:()=>M6,sha256_hex:()=>E6,sha384_base64:()=>D6,sha384_base64url:()=>O6,sha384_hex:()=>z6,sha512_base64:()=>P6,sha512_base64url:()=>U6,sha512_hex:()=>R6,string:()=>ax,time:()=>ex,ulid:()=>Uy,undefined:()=>lx,unicodeEmail:()=>IA,uppercase:()=>ux,uuid:()=>oi,uuid4:()=>p6,uuid6:()=>m6,uuid7:()=>h6,xid:()=>Ny});var Ry=/^[cC][^\s-]{8,}$/,Py=/^[0-9a-z]+$/,Uy=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ny=/^[0-9a-vA-V]{20}$/,jy=/^[A-Za-z0-9]{27}$/,By=/^[a-zA-Z0-9_-]{21}$/,Fy=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,f6=/^[-+]?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)?)??$/,qy=/^([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})$/,oi=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)$/,p6=oi(4),m6=oi(6),h6=oi(7),Zy=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,g6=/^[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])?)*$/,v6=/^(([^<>()\[\]\\.,;:\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,}))$/,IA=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,y6=IA,x6=/^[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])?)*$/,b6="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Hy(){return new RegExp(b6,"u")}var Vy=/^(?:(?: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])$/,Gy=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Wy=e=>{let t=ir(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Jy=/^((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])$/,Xy=/^(([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])$/,Ky=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lp=/^[A-Za-z0-9_-]*$/,S6=/^(?=.{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])?)*\.?$/,w6=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Yy=/^\+[1-9]\d{6,14}$/,_A="(?:(?:\\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])))",Qy=new RegExp(`^${_A}$`);function kA(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ex(e){return new RegExp(`^${kA(e)}$`)}function tx(e){let t=kA({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${t}(?:${a.join("|")})`;return new RegExp(`^${_A}T(?:${n})$`)}var ax=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},rx=/^-?\d+n?$/,nx=/^-?\d+$/,sp=/^-?\d+(?:\.\d+)?$/,ox=/^(?:true|false)$/i,ix=/^null$/i;var lx=/^undefined$/i;var sx=/^[^A-Z]*$/,ux=/^[^a-z]*$/,I6=/^[0-9a-fA-F]*$/;function ec(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tc(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var _6=/^[0-9a-fA-F]{32}$/,k6=ec(22,"=="),C6=tc(22),L6=/^[0-9a-fA-F]{40}$/,T6=ec(27,"="),A6=tc(27),E6=/^[0-9a-fA-F]{64}$/,$6=ec(43,"="),M6=tc(43),z6=/^[0-9a-fA-F]{96}$/,D6=ec(64,""),O6=tc(64),R6=/^[0-9a-fA-F]{128}$/,P6=ec(86,"=="),U6=tc(86);var rt=z("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),LA={number:"number",bigint:"bigint",object:"date"},up=z("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);let a=LA[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.maximum:r.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value<=t.value:n.value<t.value)||n.issues.push({origin:a,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cp=z("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);let a=LA[typeof t.value];e._zod.onattach.push(n=>{let r=n._zod.bag,o=(t.inclusive?r.minimum:r.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=n=>{(t.inclusive?n.value>=t.value:n.value>t.value)||n.issues.push({origin:a,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:n.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),cx=z("$ZodCheckMultipleOf",(e,t)=>{rt.init(e,t),e._zod.onattach.push(a=>{var n;(n=a._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=a=>{if(typeof a.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%t.value===BigInt(0):_y(a.value,t.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:t.value,input:a.value,inst:e,continue:!t.abort})}}),dx=z("$ZodCheckNumberFormat",(e,t)=>{rt.init(e,t),t.format=t.format||"float64";let a=t.format?.includes("int"),n=a?"int":"number",[r,o]=Ey[t.format];e._zod.onattach.push(i=>{let l=i._zod.bag;l.format=t.format,l.minimum=r,l.maximum=o,a&&(l.pattern=nx)}),e._zod.check=i=>{let l=i.value;if(a){if(!Number.isInteger(l)){i.issues.push({expected:n,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?i.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort}):i.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:n,inclusive:!0,continue:!t.abort});return}}l<r&&i.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>o&&i.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),fx=z("$ZodCheckBigIntFormat",(e,t)=>{rt.init(e,t);let[a,n]=$y[t.format];e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,o.minimum=a,o.maximum=n}),e._zod.check=r=>{let o=r.value;o<a&&r.issues.push({origin:"bigint",input:o,code:"too_small",minimum:a,inclusive:!0,inst:e,continue:!t.abort}),o>n&&r.issues.push({origin:"bigint",input:o,code:"too_big",maximum:n,inclusive:!0,inst:e,continue:!t.abort})}}),px=z("$ZodCheckMaxSize",(e,t)=>{var a;rt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Ju(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mx=z("$ZodCheckMinSize",(e,t)=>{var a;rt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Ju(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),hx=z("$ZodCheckSizeEquals",(e,t)=>{var a;rt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(r)&&r.size!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.size,r.maximum=t.size,r.size=t.size}),e._zod.check=n=>{let r=n.value,o=r.size;if(o===t.size)return;let i=o>t.size;n.issues.push({origin:Ju(r),...i?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),gx=z("$ZodCheckMaxLength",(e,t)=>{var a;rt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Xu(r);n.issues.push({origin:i,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),vx=z("$ZodCheckMinLength",(e,t)=>{var a;rt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Xu(r);n.issues.push({origin:i,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),yx=z("$ZodCheckLengthEquals",(e,t)=>{var a;rt.init(e,t),(a=e._zod.def).when??(a.when=n=>{let r=n.value;return!uo(r)&&r.length!==void 0}),e._zod.onattach.push(n=>{let r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{let r=n.value,o=r.length;if(o===t.length)return;let i=Xu(r),l=o>t.length;n.issues.push({origin:i,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Rl=z("$ZodCheckStringFormat",(e,t)=>{var a,n;rt.init(e,t),e._zod.onattach.push(r=>{let o=r._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),xx=z("$ZodCheckRegex",(e,t)=>{Rl.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),bx=z("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=sx),Rl.init(e,t)}),Sx=z("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=ux),Rl.init(e,t)}),wx=z("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);let a=ir(t.includes),n=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=n,e._zod.onattach.push(r=>{let o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Ix=z("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);let a=new RegExp(`^${ir(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),_x=z("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);let a=new RegExp(`.*${ir(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(n=>{let r=n._zod.bag;r.patterns??(r.patterns=new Set),r.patterns.add(a)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}});function CA(e,t,a){e.issues.length&&t.issues.push(...Ba(a,e.issues))}var kx=z("$ZodCheckProperty",(e,t)=>{rt.init(e,t),e._zod.check=a=>{let n=t.schema._zod.run({value:a.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(r=>CA(r,a,t.property));CA(n,a,t.property)}}),Cx=z("$ZodCheckMimeType",(e,t)=>{rt.init(e,t);let a=new Set(t.mime);e._zod.onattach.push(n=>{n._zod.bag.mime=t.mime}),e._zod.check=n=>{a.has(n.value.type)||n.issues.push({code:"invalid_value",values:t.mime,input:n.value.type,inst:e,continue:!t.abort})}}),Lx=z("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});var ac=class{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let n=t.split(`
|
|
21
|
-
`).filter(i=>i),r=Math.min(...n.map(i=>i.length-i.trimStart().length)),o=n.map(i=>i.slice(r)).map(i=>" ".repeat(this.indent*2)+i);for(let i of o)this.content.push(i)}compile(){let t=Function,a=this?.args,r=[...(this?.content??[""]).map(o=>` ${o}`)];return new t(...a,r.join(`
|
|
22
|
-
`))}};var Tx={major:4,minor:3,patch:6};var ve=z("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Tx;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let r of n)for(let o of r._zod.onattach)o(e);if(n.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let r=(i,l,s)=>{let u=po(i),c;for(let d of l){if(d._zod.def.when){if(!d._zod.def.when(i))continue}else if(u)continue;let f=i.issues.length,p=d._zod.check(i);if(p instanceof Promise&&s?.async===!1)throw new br;if(c||p instanceof Promise)c=(c??Promise.resolve()).then(async()=>{await p,i.issues.length!==f&&(u||(u=po(i,f)))});else{if(i.issues.length===f)continue;u||(u=po(i,f))}}return c?c.then(()=>i):i},o=(i,l,s)=>{if(po(i))return i.aborted=!0,i;let u=r(l,n,s);if(u instanceof Promise){if(s.async===!1)throw new br;return u.then(c=>e._zod.parse(c,s))}return e._zod.parse(u,s)};e._zod.run=(i,l)=>{if(l.skipChecks)return e._zod.parse(i,l);if(l.direction==="backward"){let u=e._zod.parse({value:i.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(c=>o(c,i,l)):o(u,i,l)}let s=e._zod.parse(i,l);if(s instanceof Promise){if(l.async===!1)throw new br;return s.then(u=>r(u,n,l))}return r(s,n,l)}}Le(e,"~standard",()=>({validate:r=>{try{let o=Dy(e,r);return o.success?{value:o.data}:{issues:o.error?.issues}}catch{return Oy(e,r).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}))}),ii=z("$ZodString",(e,t)=>{ve.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ax(e._zod.bag),e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Xe=z("$ZodStringFormat",(e,t)=>{Rl.init(e,t),ii.init(e,t)}),Ex=z("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=qy),Xe.init(e,t)}),$x=z("$ZodUUID",(e,t)=>{if(t.version){let n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=oi(n))}else t.pattern??(t.pattern=oi());Xe.init(e,t)}),Mx=z("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Zy),Xe.init(e,t)}),zx=z("$ZodURL",(e,t)=>{Xe.init(e,t),e._zod.check=a=>{try{let n=a.value.trim(),r=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=r.href:a.value=n;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),Dx=z("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Hy()),Xe.init(e,t)}),Ox=z("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=By),Xe.init(e,t)}),Rx=z("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ry),Xe.init(e,t)}),Px=z("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Py),Xe.init(e,t)}),Ux=z("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Uy),Xe.init(e,t)}),Nx=z("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Ny),Xe.init(e,t)}),jx=z("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=jy),Xe.init(e,t)}),Bx=z("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=tx(t)),Xe.init(e,t)}),Fx=z("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Qy),Xe.init(e,t)}),qx=z("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ex(t)),Xe.init(e,t)}),Zx=z("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Fy),Xe.init(e,t)}),Hx=z("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Vy),Xe.init(e,t),e._zod.bag.format="ipv4"}),Vx=z("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Gy),Xe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),Gx=z("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Wy(t.delimiter)),Xe.init(e,t),e._zod.bag.format="mac"}),Wx=z("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Jy),Xe.init(e,t)}),Jx=z("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Xy),Xe.init(e,t),e._zod.check=a=>{let n=a.value.split("/");try{if(n.length!==2)throw new Error;let[r,o]=n;if(!o)throw new Error;let i=Number(o);if(`${i}`!==o)throw new Error;if(i<0||i>128)throw new Error;new URL(`http://[${r}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function Xx(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Kx=z("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ky),Xe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=a=>{Xx(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function jA(e){if(!lp.test(e))return!1;let t=e.replace(/[-_]/g,n=>n==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xx(a)}var Yx=z("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lp),Xe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=a=>{jA(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),Qx=z("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Yy),Xe.init(e,t)});function BA(e,t=null){try{let a=e.split(".");if(a.length!==3)return!1;let[n]=a;if(!n)return!1;let r=JSON.parse(atob(n));return!("typ"in r&&r?.typ!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch{return!1}}var eb=z("$ZodJWT",(e,t)=>{Xe.init(e,t),e._zod.check=a=>{BA(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),tb=z("$ZodCustomStringFormat",(e,t)=>{Xe.init(e,t),e._zod.check=a=>{t.fn(a.value)||a.issues.push({code:"invalid_format",format:t.format,input:a.value,inst:e,continue:!t.abort})}}),gp=z("$ZodNumber",(e,t)=>{ve.init(e,t),e._zod.pattern=e._zod.bag.pattern??sp,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=Number(a.value)}catch{}let r=a.value;if(typeof r=="number"&&!Number.isNaN(r)&&Number.isFinite(r))return a;let o=typeof r=="number"?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:r,inst:e,...o?{received:o}:{}}),a}}),ab=z("$ZodNumberFormat",(e,t)=>{dx.init(e,t),gp.init(e,t)}),rc=z("$ZodBoolean",(e,t)=>{ve.init(e,t),e._zod.pattern=ox,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=!!a.value}catch{}let r=a.value;return typeof r=="boolean"||a.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),a}}),vp=z("$ZodBigInt",(e,t)=>{ve.init(e,t),e._zod.pattern=rx,e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=BigInt(a.value)}catch{}return typeof a.value=="bigint"||a.issues.push({expected:"bigint",code:"invalid_type",input:a.value,inst:e}),a}}),rb=z("$ZodBigIntFormat",(e,t)=>{fx.init(e,t),vp.init(e,t)}),nb=z("$ZodSymbol",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return typeof r=="symbol"||a.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),a}}),ob=z("$ZodUndefined",(e,t)=>{ve.init(e,t),e._zod.pattern=lx,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(a,n)=>{let r=a.value;return typeof r>"u"||a.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),a}}),ib=z("$ZodNull",(e,t)=>{ve.init(e,t),e._zod.pattern=ix,e._zod.values=new Set([null]),e._zod.parse=(a,n)=>{let r=a.value;return r===null||a.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),a}}),lb=z("$ZodAny",(e,t)=>{ve.init(e,t),e._zod.parse=a=>a}),sb=z("$ZodUnknown",(e,t)=>{ve.init(e,t),e._zod.parse=a=>a}),ub=z("$ZodNever",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)}),cb=z("$ZodVoid",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return typeof r>"u"||a.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),a}}),db=z("$ZodDate",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{if(t.coerce)try{a.value=new Date(a.value)}catch{}let r=a.value,o=r instanceof Date;return o&&!Number.isNaN(r.getTime())||a.issues.push({expected:"date",code:"invalid_type",input:r,...o?{received:"Invalid Date"}:{},inst:e}),a}});function AA(e,t,a){e.issues.length&&t.issues.push(...Ba(a,e.issues)),t.value[a]=e.value}var fb=z("$ZodArray",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!Array.isArray(r))return a.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),a;a.value=Array(r.length);let o=[];for(let i=0;i<r.length;i++){let l=r[i],s=t.element._zod.run({value:l,issues:[]},n);s instanceof Promise?o.push(s.then(u=>AA(u,a,i))):AA(s,a,i)}return o.length?Promise.all(o).then(()=>a):a}});function hp(e,t,a,n,r){if(e.issues.length){if(r&&!(a in n))return;t.issues.push(...Ba(a,e.issues))}e.value===void 0?a in n&&(t.value[a]=void 0):t.value[a]=e.value}function FA(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let a=Ay(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function qA(e,t,a,n,r,o){let i=[],l=r.keySet,s=r.catchall._zod,u=s.def.type,c=s.optout==="optional";for(let d in t){if(l.has(d))continue;if(u==="never"){i.push(d);continue}let f=s.run({value:t[d],issues:[]},n);f instanceof Promise?e.push(f.then(p=>hp(p,a,d,t,c))):hp(f,a,d,t,c)}return i.length&&a.issues.push({code:"unrecognized_keys",keys:i,input:t,inst:o}),e.length?Promise.all(e).then(()=>a):a}var ZA=z("$ZodObject",(e,t)=>{if(ve.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let l=t.shape;Object.defineProperty(t,"shape",{get:()=>{let s={...l};return Object.defineProperty(t,"shape",{value:s}),s}})}let n=El(()=>FA(t));Le(e._zod,"propValues",()=>{let l=t.shape,s={};for(let u in l){let c=l[u]._zod;if(c.values){s[u]??(s[u]=new Set);for(let d of c.values)s[u].add(d)}}return s});let r=ni,o=t.catchall,i;e._zod.parse=(l,s)=>{i??(i=n.value);let u=l.value;if(!r(u))return l.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),l;l.value={};let c=[],d=i.shape;for(let f of i.keys){let p=d[f],m=p._zod.optout==="optional",S=p._zod.run({value:u[f],issues:[]},s);S instanceof Promise?c.push(S.then(C=>hp(C,l,f,u,m))):hp(S,l,f,u,m)}return o?qA(c,u,l,s,n.value,e):c.length?Promise.all(c).then(()=>l):l}}),pb=z("$ZodObjectJIT",(e,t)=>{ZA.init(e,t);let a=e._zod.parse,n=El(()=>FA(t)),r=f=>{let p=new ac(["shape","payload","ctx"]),m=n.value,S=g=>{let b=Jf(g);return`shape[${b}]._zod.run({ value: input[${b}], issues: [] }, ctx)`};p.write("const input = payload.value;");let C=Object.create(null),h=0;for(let g of m.keys)C[g]=`key_${h++}`;p.write("const newResult = {};");for(let g of m.keys){let b=C[g],L=Jf(g),w=f[g]?._zod?.optout==="optional";p.write(`const ${b} = ${S(g)};`),w?p.write(`
|
|
23
|
-
if (${b}.issues.length) {
|
|
24
|
-
if (${L} in input) {
|
|
25
|
-
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
26
|
-
...iss,
|
|
27
|
-
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
28
|
-
})));
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
if (${b}.value === undefined) {
|
|
33
|
-
if (${L} in input) {
|
|
34
|
-
newResult[${L}] = undefined;
|
|
35
|
-
}
|
|
36
|
-
} else {
|
|
37
|
-
newResult[${L}] = ${b}.value;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
`):p.write(`
|
|
41
|
-
if (${b}.issues.length) {
|
|
42
|
-
payload.issues = payload.issues.concat(${b}.issues.map(iss => ({
|
|
43
|
-
...iss,
|
|
44
|
-
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
45
|
-
})));
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (${b}.value === undefined) {
|
|
49
|
-
if (${L} in input) {
|
|
50
|
-
newResult[${L}] = undefined;
|
|
51
|
-
}
|
|
52
|
-
} else {
|
|
53
|
-
newResult[${L}] = ${b}.value;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
`)}p.write("payload.value = newResult;"),p.write("return payload;");let y=p.compile();return(g,b)=>y(f,g,b)},o,i=ni,l=!Zu.jitless,u=l&&Cy.value,c=t.catchall,d;e._zod.parse=(f,p)=>{d??(d=n.value);let m=f.value;return i(m)?l&&u&&p?.async===!1&&p.jitless!==!0?(o||(o=r(t.shape)),f=o(f,p),c?qA([],m,f,p,d,e):f):a(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),f)}});function EA(e,t,a,n){for(let o of e)if(o.issues.length===0)return t.value=o.value,t;let r=e.filter(o=>!po(o));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(o=>o.issues.map(i=>_a(i,n,St())))}),t)}var nc=z("$ZodUnion",(e,t)=>{ve.init(e,t),Le(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),Le(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),Le(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),Le(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(o=>o._zod.pattern);return new RegExp(`^(${r.map(o=>Gu(o.source)).join("|")})$`)}});let a=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(a)return n(r,o);let i=!1,l=[];for(let s of t.options){let u=s._zod.run({value:r.value,issues:[]},o);if(u instanceof Promise)l.push(u),i=!0;else{if(u.issues.length===0)return u;l.push(u)}}return i?Promise.all(l).then(s=>EA(s,r,e,o)):EA(l,r,e,o)}});function $A(e,t,a,n){let r=e.filter(o=>o.issues.length===0);return r.length===1?(t.value=r[0].value,t):(r.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(o=>o.issues.map(i=>_a(i,n,St())))}):t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:[],inclusive:!1}),t)}var mb=z("$ZodXor",(e,t)=>{nc.init(e,t),t.inclusive=!1;let a=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(r,o)=>{if(a)return n(r,o);let i=!1,l=[];for(let s of t.options){let u=s._zod.run({value:r.value,issues:[]},o);u instanceof Promise?(l.push(u),i=!0):l.push(u)}return i?Promise.all(l).then(s=>$A(s,r,e,o)):$A(l,r,e,o)}}),hb=z("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,nc.init(e,t);let a=e._zod.parse;Le(e._zod,"propValues",()=>{let r={};for(let o of t.options){let i=o._zod.propValues;if(!i||Object.keys(i).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(let[l,s]of Object.entries(i)){r[l]||(r[l]=new Set);for(let u of s)r[l].add(u)}}return r});let n=El(()=>{let r=t.options,o=new Map;for(let i of r){let l=i._zod.propValues?.[t.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(i)}"`);for(let s of l){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,i)}}return o});e._zod.parse=(r,o)=>{let i=r.value;if(!ni(i))return r.issues.push({code:"invalid_type",expected:"object",input:i,inst:e}),r;let l=n.value.get(i?.[t.discriminator]);return l?l._zod.run(r,o):t.unionFallback?a(r,o):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:i,path:[t.discriminator],inst:e}),r)}}),gb=z("$ZodIntersection",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value,o=t.left._zod.run({value:r,issues:[]},n),i=t.right._zod.run({value:r,issues:[]},n);return o instanceof Promise||i instanceof Promise?Promise.all([o,i]).then(([s,u])=>MA(a,s,u)):MA(a,o,i)}});function Ax(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fo(e)&&fo(t)){let a=Object.keys(t),n=Object.keys(e).filter(o=>a.indexOf(o)!==-1),r={...e,...t};for(let o of n){let i=Ax(e[o],t[o]);if(!i.valid)return{valid:!1,mergeErrorPath:[o,...i.mergeErrorPath]};r[o]=i.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let a=[];for(let n=0;n<e.length;n++){let r=e[n],o=t[n],i=Ax(r,o);if(!i.valid)return{valid:!1,mergeErrorPath:[n,...i.mergeErrorPath]};a.push(i.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function MA(e,t,a){let n=new Map,r;for(let l of t.issues)if(l.code==="unrecognized_keys"){r??(r=l);for(let s of l.keys)n.has(s)||n.set(s,{}),n.get(s).l=!0}else e.issues.push(l);for(let l of a.issues)if(l.code==="unrecognized_keys")for(let s of l.keys)n.has(s)||n.set(s,{}),n.get(s).r=!0;else e.issues.push(l);let o=[...n].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(o.length&&r&&e.issues.push({...r,keys:o}),po(e))return e;let i=Ax(t.value,a.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}var yp=z("$ZodTuple",(e,t)=>{ve.init(e,t);let a=t.items;e._zod.parse=(n,r)=>{let o=n.value;if(!Array.isArray(o))return n.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),n;n.value=[];let i=[],l=[...a].reverse().findIndex(c=>c._zod.optin!=="optional"),s=l===-1?0:a.length-l;if(!t.rest){let c=o.length>a.length,d=o.length<s-1;if(c||d)return n.issues.push({...c?{code:"too_big",maximum:a.length,inclusive:!0}:{code:"too_small",minimum:a.length},input:o,inst:e,origin:"array"}),n}let u=-1;for(let c of a){if(u++,u>=o.length&&u>=s)continue;let d=c._zod.run({value:o[u],issues:[]},r);d instanceof Promise?i.push(d.then(f=>dp(f,n,u))):dp(d,n,u)}if(t.rest){let c=o.slice(a.length);for(let d of c){u++;let f=t.rest._zod.run({value:d,issues:[]},r);f instanceof Promise?i.push(f.then(p=>dp(p,n,u))):dp(f,n,u)}}return i.length?Promise.all(i).then(()=>n):n}});function dp(e,t,a){e.issues.length&&t.issues.push(...Ba(a,e.issues)),t.value[a]=e.value}var vb=z("$ZodRecord",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!fo(r))return a.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),a;let o=[],i=t.keyType._zod.values;if(i){a.value={};let l=new Set;for(let u of i)if(typeof u=="string"||typeof u=="number"||typeof u=="symbol"){l.add(typeof u=="number"?u.toString():u);let c=t.valueType._zod.run({value:r[u],issues:[]},n);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&a.issues.push(...Ba(u,d.issues)),a.value[u]=d.value})):(c.issues.length&&a.issues.push(...Ba(u,c.issues)),a.value[u]=c.value)}let s;for(let u in r)l.has(u)||(s=s??[],s.push(u));s&&s.length>0&&a.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:s})}else{a.value={};for(let l of Reflect.ownKeys(r)){if(l==="__proto__")continue;let s=t.keyType._zod.run({value:l,issues:[]},n);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof l=="string"&&sp.test(l)&&s.issues.length){let d=t.keyType._zod.run({value:Number(l),issues:[]},n);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(s=d)}if(s.issues.length){t.mode==="loose"?a.value[l]=r[l]:a.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(d=>_a(d,n,St())),input:l,path:[l],inst:e});continue}let c=t.valueType._zod.run({value:r[l],issues:[]},n);c instanceof Promise?o.push(c.then(d=>{d.issues.length&&a.issues.push(...Ba(l,d.issues)),a.value[s.value]=d.value})):(c.issues.length&&a.issues.push(...Ba(l,c.issues)),a.value[s.value]=c.value)}}return o.length?Promise.all(o).then(()=>a):a}}),yb=z("$ZodMap",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Map))return a.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),a;let o=[];a.value=new Map;for(let[i,l]of r){let s=t.keyType._zod.run({value:i,issues:[]},n),u=t.valueType._zod.run({value:l,issues:[]},n);s instanceof Promise||u instanceof Promise?o.push(Promise.all([s,u]).then(([c,d])=>{zA(c,d,a,i,r,e,n)})):zA(s,u,a,i,r,e,n)}return o.length?Promise.all(o).then(()=>a):a}});function zA(e,t,a,n,r,o,i){e.issues.length&&(Wu.has(typeof n)?a.issues.push(...Ba(n,e.issues)):a.issues.push({code:"invalid_key",origin:"map",input:r,inst:o,issues:e.issues.map(l=>_a(l,i,St()))})),t.issues.length&&(Wu.has(typeof n)?a.issues.push(...Ba(n,t.issues)):a.issues.push({origin:"map",code:"invalid_element",input:r,inst:o,key:n,issues:t.issues.map(l=>_a(l,i,St()))})),a.value.set(e.value,t.value)}var xb=z("$ZodSet",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;if(!(r instanceof Set))return a.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),a;let o=[];a.value=new Set;for(let i of r){let l=t.valueType._zod.run({value:i,issues:[]},n);l instanceof Promise?o.push(l.then(s=>DA(s,a))):DA(l,a)}return o.length?Promise.all(o).then(()=>a):a}});function DA(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var bb=z("$ZodEnum",(e,t)=>{ve.init(e,t);let a=Vu(t.entries),n=new Set(a);e._zod.values=n,e._zod.pattern=new RegExp(`^(${a.filter(r=>Wu.has(typeof r)).map(r=>typeof r=="string"?ir(r):r.toString()).join("|")})$`),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:a,input:i,inst:e}),r}}),Sb=z("$ZodLiteral",(e,t)=>{if(ve.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let a=new Set(t.values);e._zod.values=a,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?ir(n):n?ir(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,r)=>{let o=n.value;return a.has(o)||n.issues.push({code:"invalid_value",values:t.values,input:o,inst:e}),n}}),wb=z("$ZodFile",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{let r=a.value;return r instanceof File||a.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),a}}),Ib=z("$ZodTransform",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new so(e.constructor.name);let r=t.transform(a.value,a);if(n.async)return(r instanceof Promise?r:Promise.resolve(r)).then(i=>(a.value=i,a));if(r instanceof Promise)throw new br;return a.value=r,a}});function OA(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var xp=z("$ZodOptional",(e,t)=>{ve.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Le(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Le(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Gu(a.source)})?$`):void 0}),e._zod.parse=(a,n)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>OA(o,a.value)):OA(r,a.value)}return a.value===void 0?a:t.innerType._zod.run(a,n)}}),_b=z("$ZodExactOptional",(e,t)=>{xp.init(e,t),Le(e._zod,"values",()=>t.innerType._zod.values),Le(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(a,n)=>t.innerType._zod.run(a,n)}),kb=z("$ZodNullable",(e,t)=>{ve.init(e,t),Le(e._zod,"optin",()=>t.innerType._zod.optin),Le(e._zod,"optout",()=>t.innerType._zod.optout),Le(e._zod,"pattern",()=>{let a=t.innerType._zod.pattern;return a?new RegExp(`^(${Gu(a.source)}|null)$`):void 0}),Le(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,n)=>a.value===null?a:t.innerType._zod.run(a,n)}),Cb=z("$ZodDefault",(e,t)=>{ve.init(e,t),e._zod.optin="optional",Le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{if(n.direction==="backward")return t.innerType._zod.run(a,n);if(a.value===void 0)return a.value=t.defaultValue,a;let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>RA(o,t)):RA(r,t)}});function RA(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Lb=z("$ZodPrefault",(e,t)=>{ve.init(e,t),e._zod.optin="optional",Le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>(n.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,n))}),Tb=z("$ZodNonOptional",(e,t)=>{ve.init(e,t),Le(e._zod,"values",()=>{let a=t.innerType._zod.values;return a?new Set([...a].filter(n=>n!==void 0)):void 0}),e._zod.parse=(a,n)=>{let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>PA(o,e)):PA(r,e)}});function PA(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var Ab=z("$ZodSuccess",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new so("ZodSuccess");let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.issues.length===0,a)):(a.value=r.issues.length===0,a)}}),Eb=z("$ZodCatch",(e,t)=>{ve.init(e,t),Le(e._zod,"optin",()=>t.innerType._zod.optin),Le(e._zod,"optout",()=>t.innerType._zod.optout),Le(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,n)=>{if(n.direction==="backward")return t.innerType._zod.run(a,n);let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(o=>(a.value=o.value,o.issues.length&&(a.value=t.catchValue({...a,error:{issues:o.issues.map(i=>_a(i,n,St()))},input:a.value}),a.issues=[]),a)):(a.value=r.value,r.issues.length&&(a.value=t.catchValue({...a,error:{issues:r.issues.map(o=>_a(o,n,St()))},input:a.value}),a.issues=[]),a)}}),$b=z("$ZodNaN",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>((typeof a.value!="number"||!Number.isNaN(a.value))&&a.issues.push({input:a.value,inst:e,expected:"nan",code:"invalid_type"}),a)}),Mb=z("$ZodPipe",(e,t)=>{ve.init(e,t),Le(e._zod,"values",()=>t.in._zod.values),Le(e._zod,"optin",()=>t.in._zod.optin),Le(e._zod,"optout",()=>t.out._zod.optout),Le(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,n)=>{if(n.direction==="backward"){let o=t.out._zod.run(a,n);return o instanceof Promise?o.then(i=>fp(i,t.in,n)):fp(o,t.in,n)}let r=t.in._zod.run(a,n);return r instanceof Promise?r.then(o=>fp(o,t.out,n)):fp(r,t.out,n)}});function fp(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}var oc=z("$ZodCodec",(e,t)=>{ve.init(e,t),Le(e._zod,"values",()=>t.in._zod.values),Le(e._zod,"optin",()=>t.in._zod.optin),Le(e._zod,"optout",()=>t.out._zod.optout),Le(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,n)=>{if((n.direction||"forward")==="forward"){let o=t.in._zod.run(a,n);return o instanceof Promise?o.then(i=>pp(i,t,n)):pp(o,t,n)}else{let o=t.out._zod.run(a,n);return o instanceof Promise?o.then(i=>pp(i,t,n)):pp(o,t,n)}}});function pp(e,t,a){if(e.issues.length)return e.aborted=!0,e;if((a.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(o=>mp(e,o,t.out,a)):mp(e,r,t.out,a)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(o=>mp(e,o,t.in,a)):mp(e,r,t.in,a)}}function mp(e,t,a,n){return e.issues.length?(e.aborted=!0,e):a._zod.run({value:t,issues:e.issues},n)}var zb=z("$ZodReadonly",(e,t)=>{ve.init(e,t),Le(e._zod,"propValues",()=>t.innerType._zod.propValues),Le(e._zod,"values",()=>t.innerType._zod.values),Le(e._zod,"optin",()=>t.innerType?._zod?.optin),Le(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(a,n)=>{if(n.direction==="backward")return t.innerType._zod.run(a,n);let r=t.innerType._zod.run(a,n);return r instanceof Promise?r.then(UA):UA(r)}});function UA(e){return e.value=Object.freeze(e.value),e}var Db=z("$ZodTemplateLiteral",(e,t)=>{ve.init(e,t);let a=[];for(let n of t.parts)if(typeof n=="object"&&n!==null){if(!n._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...n._zod.traits].shift()}`);let r=n._zod.pattern instanceof RegExp?n._zod.pattern.source:n._zod.pattern;if(!r)throw new Error(`Invalid template literal part: ${n._zod.traits}`);let o=r.startsWith("^")?1:0,i=r.endsWith("$")?r.length-1:r.length;a.push(r.slice(o,i))}else if(n===null||Ty.has(typeof n))a.push(ir(`${n}`));else throw new Error(`Invalid template literal part: ${n}`);e._zod.pattern=new RegExp(`^${a.join("")}$`),e._zod.parse=(n,r)=>typeof n.value!="string"?(n.issues.push({input:n.value,inst:e,expected:"string",code:"invalid_type"}),n):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),n)}),Ob=z("$ZodFunction",(e,t)=>(ve.init(e,t),e._def=t,e._zod.def=t,e.implement=a=>{if(typeof a!="function")throw new Error("implement() must be called with a function");return function(...n){let r=e._def.input?Kf(e._def.input,n):n,o=Reflect.apply(a,this,r);return e._def.output?Kf(e._def.output,o):o}},e.implementAsync=a=>{if(typeof a!="function")throw new Error("implementAsync() must be called with a function");return async function(...n){let r=e._def.input?await Yf(e._def.input,n):n,o=await Reflect.apply(a,this,r);return e._def.output?await Yf(e._def.output,o):o}},e._zod.parse=(a,n)=>typeof a.value!="function"?(a.issues.push({code:"invalid_type",expected:"function",input:a.value,inst:e}),a):(e._def.output&&e._def.output._zod.def.type==="promise"?a.value=e.implementAsync(a.value):a.value=e.implement(a.value),a),e.input=(...a)=>{let n=e.constructor;return Array.isArray(a[0])?new n({type:"function",input:new yp({type:"tuple",items:a[0],rest:a[1]}),output:e._def.output}):new n({type:"function",input:a[0],output:e._def.output})},e.output=a=>{let n=e.constructor;return new n({type:"function",input:e._def.input,output:a})},e)),Rb=z("$ZodPromise",(e,t)=>{ve.init(e,t),e._zod.parse=(a,n)=>Promise.resolve(a.value).then(r=>t.innerType._zod.run({value:r,issues:[]},n))}),Pb=z("$ZodLazy",(e,t)=>{ve.init(e,t),Le(e._zod,"innerType",()=>t.getter()),Le(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),Le(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),Le(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),Le(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(a,n)=>e._zod.innerType._zod.run(a,n)}),Ub=z("$ZodCustom",(e,t)=>{rt.init(e,t),ve.init(e,t),e._zod.parse=(a,n)=>a,e._zod.check=a=>{let n=a.value,r=t.fn(n);if(r instanceof Promise)return r.then(o=>NA(o,a,n,e));NA(r,a,n,e)}});function NA(e,t,a,n){if(!e){let r={code:"custom",input:a,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(r.params=n._zod.def.params),t.issues.push($l(r))}}var lc={};hr(lc,{ar:()=>HA,az:()=>VA,be:()=>WA,bg:()=>JA,ca:()=>XA,cs:()=>KA,da:()=>YA,de:()=>QA,en:()=>bp,eo:()=>eE,es:()=>tE,fa:()=>aE,fi:()=>rE,fr:()=>nE,frCA:()=>oE,he:()=>iE,hu:()=>lE,hy:()=>uE,id:()=>cE,is:()=>dE,it:()=>fE,ja:()=>pE,ka:()=>mE,kh:()=>hE,km:()=>Sp,ko:()=>gE,lt:()=>yE,mk:()=>xE,ms:()=>bE,nl:()=>SE,no:()=>wE,ota:()=>IE,pl:()=>kE,ps:()=>_E,pt:()=>CE,ru:()=>TE,sl:()=>AE,sv:()=>EE,ta:()=>$E,th:()=>ME,tr:()=>zE,ua:()=>DE,uk:()=>wp,ur:()=>OE,uz:()=>RE,vi:()=>PE,yo:()=>jE,zhCN:()=>UE,zhTW:()=>NE});var j6=()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(r){return e[r]??null}let a={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${r.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${o}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${l}`}case"invalid_value":return r.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${q(r.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${r.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()} ${i.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${r.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${r.prefix}"`:o.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${o.suffix}"`:o.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${o.includes}"`:o.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${o.pattern}`:`${a[o.format]??r.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${r.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${r.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${r.keys.length>1?"\u0629":""}: ${D(r.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${r.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function HA(){return{localeError:j6()}}var B6=()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${r.expected}, daxil olan ${l}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${o}, daxil olan ${l}`}case"invalid_value":return r.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${q(r.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()} ${i.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${r.origin??"d\u0259y\u0259r"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${o.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:o.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${o.suffix}" il\u0259 bitm\u0259lidir`:o.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${o.includes}" daxil olmal\u0131d\u0131r`:o.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${o.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${a[o.format]??r.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${r.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${r.keys.length>1?"lar":""}: ${D(r.keys,", ")}`;case"invalid_key":return`${r.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${r.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function VA(){return{localeError:B6()}}function GA(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var F6=()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(r){return e[r]??null}let a={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},n={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${r.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${o}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${q(r.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=GA(l,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.maximum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=GA(l,i.unit.one,i.unit.few,i.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${i.verb} ${o}${r.minimum.toString()} ${s}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${r.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${a[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${D(r.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${r.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function WA(){return{localeError:F6()}}var q6=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(r){return e[r]??null}let a={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${q(r.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${o}${r.minimum.toString()} ${i.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${r.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;if(o.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${o.prefix}"`;if(o.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${o.suffix}"`;if(o.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${o.includes}"`;if(o.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${o.pattern}`;let i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return o.format==="emoji"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="datetime"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="date"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),o.format==="time"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),o.format==="duration"&&(i="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${i} ${a[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${r.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u043E\u0432\u0435":""}: ${D(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function JA(){return{localeError:q6()}}var Z6=()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(r){return e[r]??null}let a={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${r.expected}, s'ha rebut ${l}`:`Tipus inv\xE0lid: s'esperava ${o}, s'ha rebut ${l}`}case"invalid_value":return r.values.length===1?`Valor inv\xE0lid: s'esperava ${q(r.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${D(r.values," o ")}`;case"too_big":{let o=r.inclusive?"com a m\xE0xim":"menys de",i=t(r.origin);return i?`Massa gran: s'esperava que ${r.origin??"el valor"} contingu\xE9s ${o} ${r.maximum.toString()} ${i.unit??"elements"}`:`Massa gran: s'esperava que ${r.origin??"el valor"} fos ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"com a m\xEDnim":"m\xE9s de",i=t(r.origin);return i?`Massa petit: s'esperava que ${r.origin} contingu\xE9s ${o} ${r.minimum.toString()} ${i.unit}`:`Massa petit: s'esperava que ${r.origin} fos ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${o.prefix}"`:o.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format inv\xE0lid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${o.pattern}`:`Format inv\xE0lid per a ${a[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${r.divisor}`;case"unrecognized_keys":return`Clau${r.keys.length>1?"s":""} no reconeguda${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${r.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${r.origin}`;default:return"Entrada inv\xE0lida"}}};function XA(){return{localeError:Z6()}}var H6=()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(r){return e[r]??null}let a={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},n={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${r.expected}, obdr\u017Eeno ${l}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${o}, obdr\u017Eeno ${l}`}case"invalid_value":return r.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${q(r.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.maximum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED m\xEDt ${o}${r.minimum.toString()} ${i.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${r.origin??"hodnota"} mus\xED b\xFDt ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${o.prefix}"`:o.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${o.suffix}"`:o.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${o.includes}"`:o.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${o.pattern}`:`Neplatn\xFD form\xE1t ${a[o.format]??r.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${r.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${D(r.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${r.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${r.origin}`;default:return"Neplatn\xFD vstup"}}};function KA(){return{localeError:H6()}}var V6=()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(r){return e[r]??null}let 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\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ugyldigt input: forventede instanceof ${r.expected}, fik ${l}`:`Ugyldigt input: forventede ${o}, fik ${l}`}case"invalid_value":return r.values.length===1?`Ugyldig v\xE6rdi: forventede ${q(r.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin),l=n[r.origin]??r.origin;return i?`For stor: forventede ${l??"value"} ${i.verb} ${o} ${r.maximum.toString()} ${i.unit??"elementer"}`:`For stor: forventede ${l??"value"} havde ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin),l=n[r.origin]??r.origin;return i?`For lille: forventede ${l} ${i.verb} ${o} ${r.minimum.toString()} ${i.unit}`:`For lille: forventede ${l} havde ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${a[o.format]??r.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${D(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${r.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${r.origin}`;default:return"Ugyldigt input"}}};function YA(){return{localeError:V6()}}var G6=()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"Zahl",array:"Array"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${r.expected}, erhalten ${l}`:`Ung\xFCltige Eingabe: erwartet ${o}, erhalten ${l}`}case"invalid_value":return r.values.length===1?`Ung\xFCltige Eingabe: erwartet ${q(r.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ${i.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${r.origin??"Wert"} ${o}${r.maximum.toString()} ist`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ${i.unit} hat`:`Zu klein: erwartet, dass ${r.origin} ${o}${r.minimum.toString()} ist`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ung\xFCltiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ung\xFCltiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ung\xFCltiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${o.pattern} entsprechen`:`Ung\xFCltig: ${a[o.format]??r.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${r.divisor} sein`;case"unrecognized_keys":return`${r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${D(r.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${r.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${r.origin}`;default:return"Ung\xFCltige Eingabe"}}};function QA(){return{localeError:G6()}}var W6=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(r){return e[r]??null}let a={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return`Invalid input: expected ${o}, received ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${q(r.values[0])}`:`Invalid option: expected one of ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Too big: expected ${r.origin??"value"} to have ${o}${r.maximum.toString()} ${i.unit??"elements"}`:`Too big: expected ${r.origin??"value"} to be ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Too small: expected ${r.origin} to have ${o}${r.minimum.toString()} ${i.unit}`:`Too small: expected ${r.origin} to be ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${a[o.format]??r.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${r.divisor}`;case"unrecognized_keys":return`Unrecognized key${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Invalid key in ${r.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${r.origin}`;default:return"Invalid input"}}};function bp(){return{localeError:W6()}}var J6=()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(r){return e[r]??null}let a={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},n={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${r.expected}, ricevi\u011Dis ${l}`:`Nevalida enigo: atendi\u011Dis ${o}, ricevi\u011Dis ${l}`}case"invalid_value":return r.values.length===1?`Nevalida enigo: atendi\u011Dis ${q(r.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()} ${i.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${r.origin??"valoro"} havu ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Tro malgranda: atendi\u011Dis ke ${r.origin} havu ${o}${r.minimum.toString()} ${i.unit}`:`Tro malgranda: atendi\u011Dis ke ${r.origin} estu ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${a[o.format]??r.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${r.divisor}`;case"unrecognized_keys":return`Nekonata${r.keys.length>1?"j":""} \u015Dlosilo${r.keys.length>1?"j":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${r.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${r.origin}`;default:return"Nevalida enigo"}}};function eE(){return{localeError:J6()}}var X6=()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(r){return e[r]??null}let a={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${r.expected}, recibido ${l}`:`Entrada inv\xE1lida: se esperaba ${o}, recibido ${l}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: se esperaba ${q(r.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin),l=n[r.origin]??r.origin;return i?`Demasiado grande: se esperaba que ${l??"valor"} tuviera ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Demasiado grande: se esperaba que ${l??"valor"} fuera ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin),l=n[r.origin]??r.origin;return i?`Demasiado peque\xF1o: se esperaba que ${l} tuviera ${o}${r.minimum.toString()} ${i.unit}`:`Demasiado peque\xF1o: se esperaba que ${l} fuera ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inv\xE1lida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${o.pattern}`:`Inv\xE1lido ${a[o.format]??r.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Llave${r.keys.length>1?"s":""} desconocida${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${n[r.origin]??r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${n[r.origin]??r.origin}`;default:return"Entrada inv\xE1lida"}}};function tE(){return{localeError:X6()}}var K6=()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(r){return e[r]??null}let a={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${r.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${o} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${l} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return r.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${q(r.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${D(r.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${r.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:o.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${o.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:o.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${o.includes}" \u0628\u0627\u0634\u062F`:o.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${o.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${a[o.format]??r.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${r.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${r.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${D(r.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${r.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${r.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function aE(){return{localeError:K6()}}var Y6=()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(r){return e[r]??null}let a={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Virheellinen tyyppi: odotettiin instanceof ${r.expected}, oli ${l}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${l}`}case"invalid_value":return r.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${q(r.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Liian suuri: ${i.subject} t\xE4ytyy olla ${o}${r.maximum.toString()} ${i.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Liian pieni: ${i.subject} t\xE4ytyy olla ${o}${r.minimum.toString()} ${i.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${o.includes}"`:o.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${o.pattern}`:`Virheellinen ${a[o.format]??r.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${r.divisor} monikerta`;case"unrecognized_keys":return`${r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${D(r.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function rE(){return{localeError:Y6()}}var Q6=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let a={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN",number:"nombre",array:"tableau"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : instanceof ${r.expected} attendu, ${l} re\xE7u`:`Entr\xE9e invalide : ${o} attendu, ${l} re\xE7u`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : ${q(r.values[0])} attendu`:`Option invalide : une valeur parmi ${D(r.values,"|")} attendue`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Trop grand : ${r.origin??"valeur"} doit ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${r.origin??"valeur"} doit \xEAtre ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Trop petit : ${r.origin} doit ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : ${r.origin} doit \xEAtre ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${o.pattern}`:`${a[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${D(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function nE(){return{localeError:Q6()}}var eU=()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(r){return e[r]??null}let a={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Entr\xE9e invalide : attendu instanceof ${r.expected}, re\xE7u ${l}`:`Entr\xE9e invalide : attendu ${o}, re\xE7u ${l}`}case"invalid_value":return r.values.length===1?`Entr\xE9e invalide : attendu ${q(r.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u2264":"<",i=t(r.origin);return i?`Trop grand : attendu que ${r.origin??"la valeur"} ait ${o}${r.maximum.toString()} ${i.unit}`:`Trop grand : attendu que ${r.origin??"la valeur"} soit ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u2265":">",i=t(r.origin);return i?`Trop petit : attendu que ${r.origin} ait ${o}${r.minimum.toString()} ${i.unit}`:`Trop petit : attendu que ${r.origin} soit ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Cha\xEEne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${o.pattern}`:`${a[o.format]??r.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${r.divisor}`;case"unrecognized_keys":return`Cl\xE9${r.keys.length>1?"s":""} non reconnue${r.keys.length>1?"s":""} : ${D(r.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${r.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${r.origin}`;default:return"Entr\xE9e invalide"}}};function oE(){return{localeError:eU()}}var tU=()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},a=u=>u?e[u]:void 0,n=u=>{let c=a(u);return c?c.label:u??e.unknown.label},r=u=>`\u05D4${n(u)}`,o=u=>(a(u)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA",i=u=>u?t[u]??null:null,l={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},s={nan:"NaN"};return u=>{switch(u.code){case"invalid_type":{let c=u.expected,d=s[c??""]??n(c),f=H(u.input),p=s[f]??e[f]?.label??f;return/^[A-Z]/.test(u.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${u.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${d}, \u05D4\u05EA\u05E7\u05D1\u05DC ${p}`}case"invalid_value":{if(u.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${q(u.values[0])}`;let c=u.values.map(p=>q(p));if(u.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c[0]} \u05D0\u05D5 ${c[1]}`;let d=c[c.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${c.slice(0,-1).join(", ")} \u05D0\u05D5 ${d}`}case"too_big":{let c=i(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${c?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.maximum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${u.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",S=u.inclusive?`${u.maximum} ${c?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${u.maximum} ${c?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`.trim()}let f=u.inclusive?"<=":"<",p=o(u.origin??"value");return c?.unit?`${c.longLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()} ${c.unit}`:`${c?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.maximum.toString()}`}case"too_small":{let c=i(u.origin),d=r(u.origin??"value");if(u.origin==="string")return`${c?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${u.minimum.toString()} ${c?.unit??""} ${u.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(u.origin==="number"){let m=u.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${u.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${u.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${m}`}if(u.origin==="array"||u.origin==="set"){let m=u.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(u.minimum===1&&u.inclusive){let C=(u.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${C}`}let S=u.inclusive?`${u.minimum} ${c?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${u.minimum} ${c?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${d} ${m} \u05DC\u05D4\u05DB\u05D9\u05DC ${S}`.trim()}let f=u.inclusive?">=":">",p=o(u.origin??"value");return c?.unit?`${c.shortLabel} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()} ${c.unit}`:`${c?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${d} ${p} ${f}${u.minimum.toString()}`}case"invalid_format":{let c=u;if(c.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${c.prefix}"`;if(c.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${c.suffix}"`;if(c.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${c.includes}"`;if(c.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${c.pattern}`;let d=l[c.format],f=d?.label??c.format,m=(d?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${f} \u05DC\u05D0 ${m}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${u.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${u.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${u.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${D(u.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${r(u.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function iE(){return{localeError:tU()}}var aU=()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(r){return e[r]??null}let a={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},n={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${r.expected}, a kapott \xE9rt\xE9k ${l}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${o}, a kapott \xE9rt\xE9k ${l}`}case"invalid_value":return r.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${q(r.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`T\xFAl nagy: ${r.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${o}${r.maximum.toString()} ${i.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${r.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} m\xE9rete t\xFAl kicsi ${o}${r.minimum.toString()} ${i.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${r.origin} t\xFAl kicsi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xC9rv\xE9nytelen string: "${o.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:o.format==="ends_with"?`\xC9rv\xE9nytelen string: "${o.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:o.format==="includes"?`\xC9rv\xE9nytelen string: "${o.includes}" \xE9rt\xE9ket kell tartalmaznia`:o.format==="regex"?`\xC9rv\xE9nytelen string: ${o.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${a[o.format]??r.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${r.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${r.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${r.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function lE(){return{localeError:aU()}}function sE(e,t,a){return Math.abs(e)===1?t:a}function Pl(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],a=e[e.length-1];return e+(t.includes(a)?"\u0576":"\u0568")}var rU=()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(r){return e[r]??null}let a={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},n={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${r.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${o}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${l}`}case"invalid_value":return r.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${q(r.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=sE(l,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Pl(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.maximum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Pl(r.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=sE(l,i.unit.one,i.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Pl(r.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${o}${r.minimum.toString()} ${s}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Pl(r.origin)} \u056C\u056B\u0576\u056B ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${o.prefix}"-\u0578\u057E`:o.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${o.suffix}"-\u0578\u057E`:o.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${o.includes}"`:o.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${o.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${a[o.format]??r.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${r.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${r.keys.length>1?"\u0576\u0565\u0580":""}. ${D(r.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Pl(r.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Pl(r.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function uE(){return{localeError:rU()}}var nU=()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Input tidak valid: diharapkan instanceof ${r.expected}, diterima ${l}`:`Input tidak valid: diharapkan ${o}, diterima ${l}`}case"invalid_value":return r.values.length===1?`Input tidak valid: diharapkan ${q(r.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: diharapkan ${r.origin??"value"} memiliki ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: diharapkan ${r.origin??"value"} menjadi ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: diharapkan ${r.origin} memiliki ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: diharapkan ${r.origin} menjadi ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${a[o.format]??r.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${r.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${r.origin}`;default:return"Input tidak valid"}}};function cE(){return{localeError:nU()}}var oU=()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(r){return e[r]??null}let a={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},n={nan:"NaN",number:"n\xFAmer",array:"fylki"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera instanceof ${r.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${l} \xFEar sem \xE1 a\xF0 vera ${o}`}case"invalid_value":return r.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${q(r.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} hafi ${o}${r.maximum.toString()} ${i.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin??"gildi"} s\xE9 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} hafi ${o}${r.minimum.toString()} ${i.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${r.origin} s\xE9 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${o.prefix}"`:o.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${o.suffix}"`:o.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${o.includes}"`:o.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${o.pattern}`:`Rangt ${a[o.format]??r.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${r.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${r.keys.length>1?"ir lyklar":"ur lykill"}: ${D(r.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${r.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${r.origin}`;default:return"Rangt gildi"}}};function dE(){return{localeError:oU()}}var iU=()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"numero",array:"vettore"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Input non valido: atteso instanceof ${r.expected}, ricevuto ${l}`:`Input non valido: atteso ${o}, ricevuto ${l}`}case"invalid_value":return r.values.length===1?`Input non valido: atteso ${q(r.values[0])}`:`Opzione non valida: atteso uno tra ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Troppo grande: ${r.origin??"valore"} deve avere ${o}${r.maximum.toString()} ${i.unit??"elementi"}`:`Troppo grande: ${r.origin??"valore"} deve essere ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Troppo piccolo: ${r.origin} deve avere ${o}${r.minimum.toString()} ${i.unit}`:`Troppo piccolo: ${r.origin} deve essere ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Invalid ${a[o.format]??r.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${r.divisor}`;case"unrecognized_keys":return`Chiav${r.keys.length>1?"i":"e"} non riconosciut${r.keys.length>1?"e":"a"}: ${D(r.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${r.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${r.origin}`;default:return"Input non valido"}}};function fE(){return{localeError:iU()}}var lU=()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(r){return e[r]??null}let a={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},n={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${r.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${o}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${l}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return r.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${q(r.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${D(r.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let o=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",i=t(r.origin);return i?`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${i.unit??"\u8981\u7D20"}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${r.origin??"\u5024"}\u306F${r.maximum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let o=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",i=t(r.origin);return i?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${i.unit}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${r.origin}\u306F${r.minimum.toString()}${o}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${o.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:o.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${o.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${a[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${r.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${r.keys.length>1?"\u7FA4":""}: ${D(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${r.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function pE(){return{localeError:lU()}}var sU=()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(r){return e[r]??null}let a={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},n={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${r.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${o}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${l}`}case"invalid_value":return r.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${q(r.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${D(r.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${r.origin} \u10D8\u10E7\u10DD\u10E1 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.prefix}"-\u10D8\u10D7`:o.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${o.suffix}"-\u10D8\u10D7`:o.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${o.includes}"-\u10E1`:o.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${o.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${r.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${r.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${D(r.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${r.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${r.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function mE(){return{localeError:sU()}}var uU=()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(r){return e[r]??null}let a={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},n={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${r.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${o} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${l}`}case"invalid_value":return r.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${q(r.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()} ${i.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()} ${i.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${r.origin} ${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${o.prefix}"`:o.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${o.suffix}"`:o.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${o.includes}"`:o.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${o.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${r.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${D(r.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${r.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function Sp(){return{localeError:uU()}}function hE(){return Sp()}var cU=()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(r){return e[r]??null}let a={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${r.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${o}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${l}\uC785\uB2C8\uB2E4`}case"invalid_value":return r.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${q(r.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${D(r.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let o=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",i=o==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${r.maximum.toString()} ${o}${i}`}case"too_small":{let o=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",i=o==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",l=t(r.origin),s=l?.unit??"\uC694\uC18C";return l?`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()}${s} ${o}${i}`:`${r.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${r.minimum.toString()} ${o}${i}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:o.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${o.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:o.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${o.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${a[o.format]??r.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${r.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${D(r.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${r.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${r.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function gE(){return{localeError:cU()}}var ic=e=>e.charAt(0).toUpperCase()+e.slice(1);function vE(e){let t=Math.abs(e),a=t%10,n=t%100;return n>=11&&n<=19||a===0?"many":a===1?"one":"few"}var dU=()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(r,o,i,l){let s=e[r]??null;return s===null?s:{unit:s.unit[o],verb:s.verb[l][i?"inclusive":"notInclusive"]}}let a={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},n={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Gautas tipas ${l}, o tik\u0117tasi - instanceof ${r.expected}`:`Gautas tipas ${l}, o tik\u0117tasi - ${o}`}case"invalid_value":return r.values.length===1?`Privalo b\u016Bti ${q(r.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${D(r.values,"|")} pasirinkim\u0173`;case"too_big":{let o=n[r.origin]??r.origin,i=t(r.origin,vE(Number(r.maximum)),r.inclusive??!1,"smaller");if(i?.verb)return`${ic(o??r.origin??"reik\u0161m\u0117")} ${i.verb} ${r.maximum.toString()} ${i.unit??"element\u0173"}`;let l=r.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${ic(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${r.maximum.toString()} ${i?.unit}`}case"too_small":{let o=n[r.origin]??r.origin,i=t(r.origin,vE(Number(r.minimum)),r.inclusive??!1,"bigger");if(i?.verb)return`${ic(o??r.origin??"reik\u0161m\u0117")} ${i.verb} ${r.minimum.toString()} ${i.unit??"element\u0173"}`;let l=r.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${ic(o??r.origin??"reik\u0161m\u0117")} turi b\u016Bti ${l} ${r.minimum.toString()} ${i?.unit}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${o.prefix}"`:o.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${o.includes}"`:o.format==="regex"?`Eilut\u0117 privalo atitikti ${o.pattern}`:`Neteisingas ${a[o.format]??r.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${r.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${r.keys.length>1?"i":"as"} rakt${r.keys.length>1?"ai":"as"}: ${D(r.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let o=n[r.origin]??r.origin;return`${ic(o??r.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function yE(){return{localeError:dU()}}var fU=()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(r){return e[r]??null}let a={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},n={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${r.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${o}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`Invalid input: expected ${q(r.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0438\u043C\u0430 ${o}${r.minimum.toString()} ${i.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${r.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${o.pattern}`:`Invalid ${a[o.format]??r.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${D(r.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${r.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${r.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function xE(){return{localeError:fU()}}var pU=()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"nombor"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Input tidak sah: dijangka instanceof ${r.expected}, diterima ${l}`:`Input tidak sah: dijangka ${o}, diterima ${l}`}case"invalid_value":return r.values.length===1?`Input tidak sah: dijangka ${q(r.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Terlalu besar: dijangka ${r.origin??"nilai"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"elemen"}`:`Terlalu besar: dijangka ${r.origin??"nilai"} adalah ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Terlalu kecil: dijangka ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Terlalu kecil: dijangka ${r.origin} adalah ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${a[o.format]??r.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${r.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${D(r.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${r.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${r.origin}`;default:return"Input tidak sah"}}};function bE(){return{localeError:pU()}}var mU=()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(r){return e[r]??null}let a={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"},n={nan:"NaN",number:"getal"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ongeldige invoer: verwacht instanceof ${r.expected}, ontving ${l}`:`Ongeldige invoer: verwacht ${o}, ontving ${l}`}case"invalid_value":return r.values.length===1?`Ongeldige invoer: verwacht ${q(r.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin),l=r.origin==="date"?"laat":r.origin==="string"?"lang":"groot";return i?`Te ${l}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} ${i.unit??"elementen"} ${i.verb}`:`Te ${l}: verwacht dat ${r.origin??"waarde"} ${o}${r.maximum.toString()} is`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin),l=r.origin==="date"?"vroeg":r.origin==="string"?"kort":"klein";return i?`Te ${l}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} ${i.unit} ${i.verb}`:`Te ${l}: verwacht dat ${r.origin} ${o}${r.minimum.toString()} is`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${a[o.format]??r.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${r.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${r.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${r.origin}`;default:return"Ongeldige invoer"}}};function SE(){return{localeError:mU()}}var hU=()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(r){return e[r]??null}let a={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"tall",array:"liste"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ugyldig input: forventet instanceof ${r.expected}, fikk ${l}`:`Ugyldig input: forventet ${o}, fikk ${l}`}case"invalid_value":return r.values.length===1?`Ugyldig verdi: forventet ${q(r.values[0])}`:`Ugyldig valg: forventet en av ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()} ${i.unit??"elementer"}`:`For stor(t): forventet ${r.origin??"value"} til \xE5 ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()} ${i.unit}`:`For lite(n): forventet ${r.origin} til \xE5 ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${o.pattern}`:`Ugyldig ${a[o.format]??r.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${D(r.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${r.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${r.origin}`;default:return"Ugyldig input"}}};function wE(){return{localeError:hU()}}var gU=()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(r){return e[r]??null}let a={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},n={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`F\xE2sit giren: umulan instanceof ${r.expected}, al\u0131nan ${l}`:`F\xE2sit giren: umulan ${o}, al\u0131nan ${l}`}case"invalid_value":return r.values.length===1?`F\xE2sit giren: umulan ${q(r.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} ${i.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${r.origin??"value"}, ${o}${r.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} ${i.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${r.origin}, ${o}${r.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let o=r;return o.format==="starts_with"?`F\xE2sit metin: "${o.prefix}" ile ba\u015Flamal\u0131.`:o.format==="ends_with"?`F\xE2sit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`F\xE2sit metin: "${o.includes}" ihtiv\xE2 etmeli.`:o.format==="regex"?`F\xE2sit metin: ${o.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${a[o.format]??r.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${r.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${r.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function IE(){return{localeError:gU()}}var vU=()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(r){return e[r]??null}let a={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},n={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${r.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${o} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${l} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return r.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${q(r.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${D(r.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${r.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${o}${r.maximum.toString()} \u0648\u064A`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} ${i.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${r.origin} \u0628\u0627\u06CC\u062F ${o}${r.minimum.toString()} \u0648\u064A`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:o.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${o.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:o.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${o.includes}" \u0648\u0644\u0631\u064A`:o.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${o.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${a[o.format]??r.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${r.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${D(r.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${r.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${r.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function _E(){return{localeError:vU()}}var yU=()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(r){return e[r]??null}let a={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},n={nan:"NaN",number:"liczba",array:"tablica"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${r.expected}, otrzymano ${l}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${o}, otrzymano ${l}`}case"invalid_value":return r.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${q(r.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.maximum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${o}${r.minimum.toString()} ${i.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${r.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${o.prefix}"`:o.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${o.suffix}"`:o.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${o.includes}"`:o.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${o.pattern}`:`Nieprawid\u0142ow(y/a/e) ${a[o.format]??r.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${r.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${r.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${r.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function kE(){return{localeError:yU()}}var xU=()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(r){return e[r]??null}let a={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},n={nan:"NaN",number:"n\xFAmero",null:"nulo"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Tipo inv\xE1lido: esperado instanceof ${r.expected}, recebido ${l}`:`Tipo inv\xE1lido: esperado ${o}, recebido ${l}`}case"invalid_value":return r.values.length===1?`Entrada inv\xE1lida: esperado ${q(r.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Muito grande: esperado que ${r.origin??"valor"} tivesse ${o}${r.maximum.toString()} ${i.unit??"elementos"}`:`Muito grande: esperado que ${r.origin??"valor"} fosse ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Muito pequeno: esperado que ${r.origin} tivesse ${o}${r.minimum.toString()} ${i.unit}`:`Muito pequeno: esperado que ${r.origin} fosse ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${o.prefix}"`:o.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inv\xE1lido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${o.pattern}`:`${a[o.format]??r.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${r.divisor}`;case"unrecognized_keys":return`Chave${r.keys.length>1?"s":""} desconhecida${r.keys.length>1?"s":""}: ${D(r.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${r.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${r.origin}`;default:return"Campo inv\xE1lido"}}};function CE(){return{localeError:xU()}}function LE(e,t,a,n){let r=Math.abs(e),o=r%10,i=r%100;return i>=11&&i<=19?n:o===1?t:o>=2&&o<=4?a:n}var bU=()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(r){return e[r]??null}let a={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${r.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${o}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${q(r.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);if(i){let l=Number(r.maximum),s=LE(l,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.maximum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);if(i){let l=Number(r.minimum),s=LE(l,i.unit.one,i.unit.few,i.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${o}${r.minimum.toString()} ${s}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${r.origin} \u0431\u0443\u0434\u0435\u0442 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${r.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0438":""}: ${D(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${r.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function TE(){return{localeError:bU()}}var SU=()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(r){return e[r]??null}let a={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},n={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${r.expected}, prejeto ${l}`:`Neveljaven vnos: pri\u010Dakovano ${o}, prejeto ${l}`}case"invalid_value":return r.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${q(r.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} imelo ${o}${r.maximum.toString()} ${i.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${r.origin??"vrednost"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Premajhno: pri\u010Dakovano, da bo ${r.origin} imelo ${o}${r.minimum.toString()} ${i.unit}`:`Premajhno: pri\u010Dakovano, da bo ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${a[o.format]??r.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${r.divisor}`;case"unrecognized_keys":return`Neprepoznan${r.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${D(r.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${r.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${r.origin}`;default:return"Neveljaven vnos"}}};function AE(){return{localeError:SU()}}var wU=()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(r){return e[r]??null}let a={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},n={nan:"NaN",number:"antal",array:"lista"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${r.expected}, fick ${l}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${o}, fick ${l}`}case"invalid_value":return r.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${q(r.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`F\xF6r stor(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()} ${i.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${r.origin??"v\xE4rdet"} att ha ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()} ${i.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${r.origin??"v\xE4rdet"} att ha ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${o.includes}"`:o.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${o.pattern}"`:`Ogiltig(t) ${a[o.format]??r.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${r.divisor}`;case"unrecognized_keys":return`${r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${D(r.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${r.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${r.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}};function EE(){return{localeError:wU()}}var IU=()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(r){return e[r]??null}let a={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},n={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${r.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${o}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${l}`}case"invalid_value":return r.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${q(r.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${D(r.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} ${i.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${o}${r.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} ${i.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${r.origin} ${o}${r.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${o.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:o.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${o.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${r.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${r.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${D(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${r.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function $E(){return{localeError:IU()}}var _U=()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(r){return e[r]??null}let a={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},n={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${r.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${o} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${l}`}case"invalid_value":return r.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${q(r.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()} ${i.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",i=t(r.origin);return i?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()} ${i.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${r.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${o} ${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${o.prefix}"`:o.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${o.suffix}"`:o.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${o.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:o.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${o.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${a[o.format]??r.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${r.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${D(r.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${r.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function ME(){return{localeError:_U()}}var kU=()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(r){return e[r]??null}let a={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${r.expected}, al\u0131nan ${l}`:`Ge\xE7ersiz de\u011Fer: beklenen ${o}, al\u0131nan ${l}`}case"invalid_value":return r.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${q(r.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()} ${i.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${r.origin??"de\u011Fer"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Ge\xE7ersiz metin: "${o.prefix}" ile ba\u015Flamal\u0131`:o.format==="ends_with"?`Ge\xE7ersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Ge\xE7ersiz metin: "${o.includes}" i\xE7ermeli`:o.format==="regex"?`Ge\xE7ersiz metin: ${o.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${a[o.format]??r.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${r.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${r.keys.length>1?"lar":""}: ${D(r.keys,", ")}`;case"invalid_key":return`${r.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${r.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function zE(){return{localeError:kU()}}var CU=()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(r){return e[r]??null}let a={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},n={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${r.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${o}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${l}`}case"invalid_value":return r.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${q(r.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${r.origin} \u0431\u0443\u0434\u0435 ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${o.prefix}"`:o.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${o.suffix}"`:o.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${o.includes}"`:o.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${o.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${r.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${r.keys.length>1?"\u0456":""}: ${D(r.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${r.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${r.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function wp(){return{localeError:CU()}}function DE(){return wp()}var LU=()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(r){return e[r]??null}let a={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},n={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${r.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${o} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${l} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return r.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${q(r.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${D(r.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${o}${r.maximum.toString()} ${i.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${r.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${o}${r.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u06D2 ${o}${r.minimum.toString()} ${i.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${r.origin} \u06A9\u0627 ${o}${r.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${o.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:o.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${o.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${r.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${r.keys.length>1?"\u0632":""}: ${D(r.keys,"\u060C ")}`;case"invalid_key":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${r.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function OE(){return{localeError:LU()}}var TU=()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(r){return e[r]??null}let a={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},n={nan:"NaN",number:"raqam",array:"massiv"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${r.expected}, qabul qilingan ${l}`:`Noto\u2018g\u2018ri kirish: kutilgan ${o}, qabul qilingan ${l}`}case"invalid_value":return r.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${q(r.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()} ${i.unit} ${i.verb}`:`Juda katta: kutilgan ${r.origin??"qiymat"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()} ${i.unit} ${i.verb}`:`Juda kichik: kutilgan ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto\u2018g\u2018ri satr: "${o.includes}" ni o\u2018z ichiga olishi kerak`:o.format==="regex"?`Noto\u2018g\u2018ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${a[o.format]??r.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${r.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${r.keys.length>1?"lar":""}: ${D(r.keys,", ")}`;case"invalid_key":return`${r.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${r.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function RE(){return{localeError:TU()}}var AU=()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(r){return e[r]??null}let a={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},n={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${r.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${o}, nh\u1EADn \u0111\u01B0\u1EE3c ${l}`}case"invalid_value":return r.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${q(r.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${i.verb} ${o}${r.maximum.toString()} ${i.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${r.origin??"gi\xE1 tr\u1ECB"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${i.verb} ${o}${r.minimum.toString()} ${i.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${o.prefix}"`:o.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${o.suffix}"`:o.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${o.includes}"`:o.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${o.pattern}`:`${a[o.format]??r.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${r.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${D(r.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${r.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function PE(){return{localeError:AU()}}var EU=()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(r){return e[r]??null}let a={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},n={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${r.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${o}\uFF0C\u5B9E\u9645\u63A5\u6536 ${l}`}case"invalid_value":return r.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${q(r.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()} ${i.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${r.origin??"\u503C"} ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()} ${i.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${r.origin} ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.prefix}" \u5F00\u5934`:o.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${o.suffix}" \u7ED3\u5C3E`:o.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${o.pattern}`:`\u65E0\u6548${a[o.format]??r.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${r.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${D(r.keys,", ")}`;case"invalid_key":return`${r.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${r.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function UE(){return{localeError:EU()}}var $U=()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(r){return e[r]??null}let a={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},n={nan:"NaN"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${r.expected}\uFF0C\u4F46\u6536\u5230 ${l}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${o}\uFF0C\u4F46\u6536\u5230 ${l}`}case"invalid_value":return r.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${q(r.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()} ${i.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${r.origin??"\u503C"} \u61C9\u70BA ${o}${r.maximum.toString()}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()} ${i.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${r.origin} \u61C9\u70BA ${o}${r.minimum.toString()}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.prefix}" \u958B\u982D`:o.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${o.suffix}" \u7D50\u5C3E`:o.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${o.includes}"`:o.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${o.pattern}`:`\u7121\u6548\u7684 ${a[o.format]??r.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${r.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${r.keys.length>1?"\u5011":""}\uFF1A${D(r.keys,"\u3001")}`;case"invalid_key":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${r.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function NE(){return{localeError:$U()}}var MU=()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(r){return e[r]??null}let a={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},n={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return r=>{switch(r.code){case"invalid_type":{let o=n[r.expected]??r.expected,i=H(r.input),l=n[i]??i;return/^[A-Z]/.test(r.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${r.expected}, \xE0m\u1ECD\u0300 a r\xED ${l}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${o}, \xE0m\u1ECD\u0300 a r\xED ${l}`}case"invalid_value":return r.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${q(r.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${D(r.values,"|")}`;case"too_big":{let o=r.inclusive?"<=":"<",i=t(r.origin);return i?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin??"iye"} ${i.verb} ${o}${r.maximum} ${i.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.maximum}`}case"too_small":{let o=r.inclusive?">=":">",i=t(r.origin);return i?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${r.origin} ${i.verb} ${o}${r.minimum} ${i.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${o}${r.minimum}`}case"invalid_format":{let o=r;return o.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${o.prefix}"`:o.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${o.suffix}"`:o.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${o.includes}"`:o.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${o.pattern}`:`A\u1E63\xEC\u1E63e: ${a[o.format]??r.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${r.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${D(r.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${r.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function jE(){return{localeError:MU()}}var BE,Nb=Symbol("ZodOutput"),jb=Symbol("ZodInput"),Ip=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){let n=a[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){let a=t._zod.parent;if(a){let n={...this.get(a)??{}};delete n.id;let r={...n,...this._map.get(t)};return Object.keys(r).length?r:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function _p(){return new Ip}(BE=globalThis).__zod_globalRegistry??(BE.__zod_globalRegistry=_p());var ta=globalThis.__zod_globalRegistry;function Bb(e,t){return new e({type:"string",...J(t)})}function Fb(e,t){return new e({type:"string",coerce:!0,...J(t)})}function kp(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...J(t)})}function sc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...J(t)})}function Cp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...J(t)})}function Lp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...J(t)})}function Tp(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...J(t)})}function Ap(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...J(t)})}function uc(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...J(t)})}function Ep(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...J(t)})}function $p(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...J(t)})}function Mp(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...J(t)})}function zp(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...J(t)})}function Dp(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...J(t)})}function Op(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...J(t)})}function Rp(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...J(t)})}function Pp(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...J(t)})}function Up(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...J(t)})}function qb(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...J(t)})}function Np(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...J(t)})}function jp(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...J(t)})}function Bp(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...J(t)})}function Fp(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...J(t)})}function qp(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...J(t)})}function Zp(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...J(t)})}var Zb={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hb(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...J(t)})}function Vb(e,t){return new e({type:"string",format:"date",check:"string_format",...J(t)})}function Gb(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...J(t)})}function Wb(e,t){return new e({type:"string",format:"duration",check:"string_format",...J(t)})}function Jb(e,t){return new e({type:"number",checks:[],...J(t)})}function Xb(e,t){return new e({type:"number",coerce:!0,checks:[],...J(t)})}function Kb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...J(t)})}function Yb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...J(t)})}function Qb(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...J(t)})}function eS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...J(t)})}function tS(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...J(t)})}function aS(e,t){return new e({type:"boolean",...J(t)})}function rS(e,t){return new e({type:"boolean",coerce:!0,...J(t)})}function nS(e,t){return new e({type:"bigint",...J(t)})}function oS(e,t){return new e({type:"bigint",coerce:!0,...J(t)})}function iS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...J(t)})}function lS(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...J(t)})}function sS(e,t){return new e({type:"symbol",...J(t)})}function uS(e,t){return new e({type:"undefined",...J(t)})}function cS(e,t){return new e({type:"null",...J(t)})}function dS(e){return new e({type:"any"})}function fS(e){return new e({type:"unknown"})}function pS(e,t){return new e({type:"never",...J(t)})}function mS(e,t){return new e({type:"void",...J(t)})}function hS(e,t){return new e({type:"date",...J(t)})}function gS(e,t){return new e({type:"date",coerce:!0,...J(t)})}function vS(e,t){return new e({type:"nan",...J(t)})}function Pr(e,t){return new up({check:"less_than",...J(t),value:e,inclusive:!1})}function Fa(e,t){return new up({check:"less_than",...J(t),value:e,inclusive:!0})}function Ur(e,t){return new cp({check:"greater_than",...J(t),value:e,inclusive:!1})}function fa(e,t){return new cp({check:"greater_than",...J(t),value:e,inclusive:!0})}function Hp(e){return Ur(0,e)}function Vp(e){return Pr(0,e)}function Gp(e){return Fa(0,e)}function Wp(e){return fa(0,e)}function mo(e,t){return new cx({check:"multiple_of",...J(t),value:e})}function ho(e,t){return new px({check:"max_size",...J(t),maximum:e})}function Nr(e,t){return new mx({check:"min_size",...J(t),minimum:e})}function li(e,t){return new hx({check:"size_equals",...J(t),size:e})}function si(e,t){return new gx({check:"max_length",...J(t),maximum:e})}function xn(e,t){return new vx({check:"min_length",...J(t),minimum:e})}function ui(e,t){return new yx({check:"length_equals",...J(t),length:e})}function Ul(e,t){return new xx({check:"string_format",format:"regex",...J(t),pattern:e})}function Nl(e){return new bx({check:"string_format",format:"lowercase",...J(e)})}function jl(e){return new Sx({check:"string_format",format:"uppercase",...J(e)})}function Bl(e,t){return new wx({check:"string_format",format:"includes",...J(t),includes:e})}function Fl(e,t){return new Ix({check:"string_format",format:"starts_with",...J(t),prefix:e})}function ql(e,t){return new _x({check:"string_format",format:"ends_with",...J(t),suffix:e})}function Jp(e,t,a){return new kx({check:"property",property:e,schema:t,...J(a)})}function Zl(e,t){return new Cx({check:"mime_type",mime:e,...J(t)})}function Sr(e){return new Lx({check:"overwrite",tx:e})}function Hl(e){return Sr(t=>t.normalize(e))}function Vl(){return Sr(e=>e.trim())}function Gl(){return Sr(e=>e.toLowerCase())}function Wl(){return Sr(e=>e.toUpperCase())}function Jl(){return Sr(e=>ky(e))}function yS(e,t,a){return new e({type:"array",element:t,...J(a)})}function DU(e,t,a){return new e({type:"union",options:t,...J(a)})}function OU(e,t,a){return new e({type:"union",options:t,inclusive:!1,...J(a)})}function RU(e,t,a,n){return new e({type:"union",options:a,discriminator:t,...J(n)})}function PU(e,t,a){return new e({type:"intersection",left:t,right:a})}function UU(e,t,a,n){let r=a instanceof ve,o=r?n:a,i=r?a:null;return new e({type:"tuple",items:t,rest:i,...J(o)})}function NU(e,t,a,n){return new e({type:"record",keyType:t,valueType:a,...J(n)})}function jU(e,t,a,n){return new e({type:"map",keyType:t,valueType:a,...J(n)})}function BU(e,t,a){return new e({type:"set",valueType:t,...J(a)})}function FU(e,t,a){let n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e({type:"enum",entries:n,...J(a)})}function qU(e,t,a){return new e({type:"enum",entries:t,...J(a)})}function ZU(e,t,a){return new e({type:"literal",values:Array.isArray(t)?t:[t],...J(a)})}function xS(e,t){return new e({type:"file",...J(t)})}function HU(e,t){return new e({type:"transform",transform:t})}function VU(e,t){return new e({type:"optional",innerType:t})}function GU(e,t){return new e({type:"nullable",innerType:t})}function WU(e,t,a){return new e({type:"default",innerType:t,get defaultValue(){return typeof a=="function"?a():Ly(a)}})}function JU(e,t,a){return new e({type:"nonoptional",innerType:t,...J(a)})}function XU(e,t){return new e({type:"success",innerType:t})}function KU(e,t,a){return new e({type:"catch",innerType:t,catchValue:typeof a=="function"?a:()=>a})}function YU(e,t,a){return new e({type:"pipe",in:t,out:a})}function QU(e,t){return new e({type:"readonly",innerType:t})}function eN(e,t,a){return new e({type:"template_literal",parts:t,...J(a)})}function tN(e,t){return new e({type:"lazy",getter:t})}function aN(e,t){return new e({type:"promise",innerType:t})}function bS(e,t,a){let n=J(a);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}function SS(e,t,a){return new e({type:"custom",check:"custom",fn:t,...J(a)})}function wS(e){let t=FE(a=>(a.addIssue=n=>{if(typeof n=="string")a.issues.push($l(n,a.value,t._zod.def));else{let r=n;r.fatal&&(r.continue=!1),r.code??(r.code="custom"),r.input??(r.input=a.value),r.inst??(r.inst=t),r.continue??(r.continue=!t._zod.def.abort),a.issues.push($l(r))}},e(a.value,a)));return t}function FE(e,t){let a=new rt({check:"custom",...J(t)});return a._zod.check=e,a}function IS(e){let t=new rt({check:"describe"});return t._zod.onattach=[a=>{let n=ta.get(a)??{};ta.add(a,{...n,description:e})}],t._zod.check=()=>{},t}function _S(e){let t=new rt({check:"meta"});return t._zod.onattach=[a=>{let n=ta.get(a)??{};ta.add(a,{...n,...e})}],t._zod.check=()=>{},t}function kS(e,t){let a=J(t),n=a.truthy??["true","1","yes","on","y","enabled"],r=a.falsy??["false","0","no","off","n","disabled"];a.case!=="sensitive"&&(n=n.map(p=>typeof p=="string"?p.toLowerCase():p),r=r.map(p=>typeof p=="string"?p.toLowerCase():p));let o=new Set(n),i=new Set(r),l=e.Codec??oc,s=e.Boolean??rc,u=e.String??ii,c=new u({type:"string",error:a.error}),d=new s({type:"boolean",error:a.error}),f=new l({type:"pipe",in:c,out:d,transform:((p,m)=>{let S=p;return a.case!=="sensitive"&&(S=S.toLowerCase()),o.has(S)?!0:i.has(S)?!1:(m.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...i],input:m.value,inst:f,continue:!1}),{})}),reverseTransform:((p,m)=>p===!0?n[0]||"true":r[0]||"false"),error:a.error});return f}function Xl(e,t,a,n={}){let r=J(n),o={...J(n),check:"string_format",type:"string",format:t,fn:typeof a=="function"?a:l=>a.test(l),...r};return a instanceof RegExp&&(o.pattern=a),new e(o)}function go(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ta,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function Fe(e,t,a={path:[],schemaPath:[]}){var n;let r=e._zod.def,o=t.seen.get(e);if(o)return o.count++,a.schemaPath.includes(e)&&(o.cycle=a.path),o.schema;let i={schema:{},count:1,cycle:void 0,path:a.path};t.seen.set(e,i);let l=e._zod.toJSONSchema?.();if(l)i.schema=l;else{let c={...a,schemaPath:[...a.schemaPath,e],path:a.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,c);else{let f=i.schema,p=t.processors[r.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${r.type}`);p(e,t,f,c)}let d=e._zod.parent;d&&(i.ref||(i.ref=d),Fe(d,t,c),t.seen.get(d).isParent=!0)}let s=t.metadataRegistry.get(e);return s&&Object.assign(i.schema,s),t.io==="input"&&pa(e)&&(delete i.schema.examples,delete i.schema.default),t.io==="input"&&i.schema._prefault&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,t.seen.get(e).schema}function vo(e,t){let a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=new Map;for(let i of e.seen.entries()){let l=e.metadataRegistry.get(i[0])?.id;if(l){let s=n.get(l);if(s&&s!==i[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);n.set(l,i[0])}}let r=i=>{let l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(i[0])?.id,f=e.external.uri??(m=>m);if(d)return{ref:f(d)};let p=i[1].defId??i[1].schema.id??`schema${e.counter++}`;return i[1].defId=p,{defId:p,ref:`${f("__shared")}#/${l}/${p}`}}if(i[1]===a)return{ref:"#"};let u=`#/${l}/`,c=i[1].schema.id??`__schema${e.counter++}`;return{defId:c,ref:u+c}},o=i=>{if(i[1].schema.$ref)return;let l=i[1],{ref:s,defId:u}=r(i);l.def={...l.schema},u&&(l.defId=u);let c=l.schema;for(let d in c)delete c[d];c.$ref=s};if(e.cycles==="throw")for(let i of e.seen.entries()){let l=i[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
|
|
57
|
-
|
|
58
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let i of e.seen.entries()){let l=i[1];if(t===i[0]){o(i);continue}if(e.external){let u=e.external.registry.get(i[0])?.id;if(t!==i[0]&&u){o(i);continue}}if(e.metadataRegistry.get(i[0])?.id){o(i);continue}if(l.cycle){o(i);continue}if(l.count>1&&e.reused==="ref"){o(i);continue}}}function yo(e,t){let a=e.seen.get(t);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");let n=i=>{let l=e.seen.get(i);if(l.ref===null)return;let s=l.def??l.schema,u={...s},c=l.ref;if(l.ref=null,c){n(c);let f=e.seen.get(c),p=f.schema;if(p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(s.allOf=s.allOf??[],s.allOf.push(p)):Object.assign(s,p),Object.assign(s,u),i._zod.parent===c)for(let S in s)S==="$ref"||S==="allOf"||S in u||delete s[S];if(p.$ref&&f.def)for(let S in s)S==="$ref"||S==="allOf"||S in f.def&&JSON.stringify(s[S])===JSON.stringify(f.def[S])&&delete s[S]}let d=i._zod.parent;if(d&&d!==c){n(d);let f=e.seen.get(d);if(f?.schema.$ref&&(s.$ref=f.schema.$ref,f.def))for(let p in s)p==="$ref"||p==="allOf"||p in f.def&&JSON.stringify(s[p])===JSON.stringify(f.def[p])&&delete s[p]}e.override({zodSchema:i,jsonSchema:s,path:l.path??[]})};for(let i of[...e.seen.entries()].reverse())n(i[0]);let r={};if(e.target==="draft-2020-12"?r.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?r.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?r.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let i=e.external.registry.get(t)?.id;if(!i)throw new Error("Schema is missing an `id` property");r.$id=e.external.uri(i)}Object.assign(r,a.def??a.schema);let o=e.external?.defs??{};for(let i of e.seen.entries()){let l=i[1];l.def&&l.defId&&(o[l.defId]=l.def)}e.external||Object.keys(o).length>0&&(e.target==="draft-2020-12"?r.$defs=o:r.definitions=o);try{let i=JSON.parse(JSON.stringify(r));return Object.defineProperty(i,"~standard",{value:{...t["~standard"],jsonSchema:{input:Kl(t,"input",e.processors),output:Kl(t,"output",e.processors)}},enumerable:!1,writable:!1}),i}catch{throw new Error("Error converting schema to JSON.")}}function pa(e,t){let a=t??{seen:new Set};if(a.seen.has(e))return!1;a.seen.add(e);let n=e._zod.def;if(n.type==="transform")return!0;if(n.type==="array")return pa(n.element,a);if(n.type==="set")return pa(n.valueType,a);if(n.type==="lazy")return pa(n.getter(),a);if(n.type==="promise"||n.type==="optional"||n.type==="nonoptional"||n.type==="nullable"||n.type==="readonly"||n.type==="default"||n.type==="prefault")return pa(n.innerType,a);if(n.type==="intersection")return pa(n.left,a)||pa(n.right,a);if(n.type==="record"||n.type==="map")return pa(n.keyType,a)||pa(n.valueType,a);if(n.type==="pipe")return pa(n.in,a)||pa(n.out,a);if(n.type==="object"){for(let r in n.shape)if(pa(n.shape[r],a))return!0;return!1}if(n.type==="union"){for(let r of n.options)if(pa(r,a))return!0;return!1}if(n.type==="tuple"){for(let r of n.items)if(pa(r,a))return!0;return!!(n.rest&&pa(n.rest,a))}return!1}var CS=(e,t={})=>a=>{let n=go({...a,processors:t});return Fe(e,n),vo(n,e),yo(n,e)},Kl=(e,t,a={})=>n=>{let{libraryOptions:r,target:o}=n??{},i=go({...r??{},target:o,io:t,processors:a});return Fe(e,i),vo(i,e),yo(i,e)};var rN={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},LS=(e,t,a,n)=>{let r=a;r.type="string";let{minimum:o,maximum:i,format:l,patterns:s,contentEncoding:u}=e._zod.bag;if(typeof o=="number"&&(r.minLength=o),typeof i=="number"&&(r.maxLength=i),l&&(r.format=rN[l]??l,r.format===""&&delete r.format,l==="time"&&delete r.format),u&&(r.contentEncoding=u),s&&s.size>0){let c=[...s];c.length===1?r.pattern=c[0].source:c.length>1&&(r.allOf=[...c.map(d=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},TS=(e,t,a,n)=>{let r=a,{minimum:o,maximum:i,format:l,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:c}=e._zod.bag;typeof l=="string"&&l.includes("int")?r.type="integer":r.type="number",typeof c=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.minimum=c,r.exclusiveMinimum=!0):r.exclusiveMinimum=c),typeof o=="number"&&(r.minimum=o,typeof c=="number"&&t.target!=="draft-04"&&(c>=o?delete r.minimum:delete r.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(r.maximum=u,r.exclusiveMaximum=!0):r.exclusiveMaximum=u),typeof i=="number"&&(r.maximum=i,typeof u=="number"&&t.target!=="draft-04"&&(u<=i?delete r.maximum:delete r.exclusiveMaximum)),typeof s=="number"&&(r.multipleOf=s)},AS=(e,t,a,n)=>{a.type="boolean"},ES=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},$S=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},MS=(e,t,a,n)=>{t.target==="openapi-3.0"?(a.type="string",a.nullable=!0,a.enum=[null]):a.type="null"},zS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},DS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},OS=(e,t,a,n)=>{a.not={}},RS=(e,t,a,n)=>{},PS=(e,t,a,n)=>{},US=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},NS=(e,t,a,n)=>{let r=e._zod.def,o=Vu(r.entries);o.every(i=>typeof i=="number")&&(a.type="number"),o.every(i=>typeof i=="string")&&(a.type="string"),a.enum=o},jS=(e,t,a,n)=>{let r=e._zod.def,o=[];for(let i of r.values)if(i===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof i=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(i))}else o.push(i);if(o.length!==0)if(o.length===1){let i=o[0];a.type=i===null?"null":typeof i,t.target==="draft-04"||t.target==="openapi-3.0"?a.enum=[i]:a.const=i}else o.every(i=>typeof i=="number")&&(a.type="number"),o.every(i=>typeof i=="string")&&(a.type="string"),o.every(i=>typeof i=="boolean")&&(a.type="boolean"),o.every(i=>i===null)&&(a.type="null"),a.enum=o},BS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},FS=(e,t,a,n)=>{let r=a,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");r.type="string",r.pattern=o.source},qS=(e,t,a,n)=>{let r=a,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:i,maximum:l,mime:s}=e._zod.bag;i!==void 0&&(o.minLength=i),l!==void 0&&(o.maxLength=l),s?s.length===1?(o.contentMediaType=s[0],Object.assign(r,o)):(Object.assign(r,o),r.anyOf=s.map(u=>({contentMediaType:u}))):Object.assign(r,o)},ZS=(e,t,a,n)=>{a.type="boolean"},HS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},VS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},GS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},WS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},JS=(e,t,a,n)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},XS=(e,t,a,n)=>{let r=a,o=e._zod.def,{minimum:i,maximum:l}=e._zod.bag;typeof i=="number"&&(r.minItems=i),typeof l=="number"&&(r.maxItems=l),r.type="array",r.items=Fe(o.element,t,{...n,path:[...n.path,"items"]})},KS=(e,t,a,n)=>{let r=a,o=e._zod.def;r.type="object",r.properties={};let i=o.shape;for(let u in i)r.properties[u]=Fe(i[u],t,{...n,path:[...n.path,"properties",u]});let l=new Set(Object.keys(i)),s=new Set([...l].filter(u=>{let c=o.shape[u]._zod;return t.io==="input"?c.optin===void 0:c.optout===void 0}));s.size>0&&(r.required=Array.from(s)),o.catchall?._zod.def.type==="never"?r.additionalProperties=!1:o.catchall?o.catchall&&(r.additionalProperties=Fe(o.catchall,t,{...n,path:[...n.path,"additionalProperties"]})):t.io==="output"&&(r.additionalProperties=!1)},Kp=(e,t,a,n)=>{let r=e._zod.def,o=r.inclusive===!1,i=r.options.map((l,s)=>Fe(l,t,{...n,path:[...n.path,o?"oneOf":"anyOf",s]}));o?a.oneOf=i:a.anyOf=i},YS=(e,t,a,n)=>{let r=e._zod.def,o=Fe(r.left,t,{...n,path:[...n.path,"allOf",0]}),i=Fe(r.right,t,{...n,path:[...n.path,"allOf",1]}),l=u=>"allOf"in u&&Object.keys(u).length===1,s=[...l(o)?o.allOf:[o],...l(i)?i.allOf:[i]];a.allOf=s},QS=(e,t,a,n)=>{let r=a,o=e._zod.def;r.type="array";let i=t.target==="draft-2020-12"?"prefixItems":"items",l=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",s=o.items.map((f,p)=>Fe(f,t,{...n,path:[...n.path,i,p]})),u=o.rest?Fe(o.rest,t,{...n,path:[...n.path,l,...t.target==="openapi-3.0"?[o.items.length]:[]]}):null;t.target==="draft-2020-12"?(r.prefixItems=s,u&&(r.items=u)):t.target==="openapi-3.0"?(r.items={anyOf:s},u&&r.items.anyOf.push(u),r.minItems=s.length,u||(r.maxItems=s.length)):(r.items=s,u&&(r.additionalItems=u));let{minimum:c,maximum:d}=e._zod.bag;typeof c=="number"&&(r.minItems=c),typeof d=="number"&&(r.maxItems=d)},ew=(e,t,a,n)=>{let r=a,o=e._zod.def;r.type="object";let i=o.keyType,s=i._zod.bag?.patterns;if(o.mode==="loose"&&s&&s.size>0){let c=Fe(o.valueType,t,{...n,path:[...n.path,"patternProperties","*"]});r.patternProperties={};for(let d of s)r.patternProperties[d.source]=c}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(r.propertyNames=Fe(o.keyType,t,{...n,path:[...n.path,"propertyNames"]})),r.additionalProperties=Fe(o.valueType,t,{...n,path:[...n.path,"additionalProperties"]});let u=i._zod.values;if(u){let c=[...u].filter(d=>typeof d=="string"||typeof d=="number");c.length>0&&(r.required=c)}},tw=(e,t,a,n)=>{let r=e._zod.def,o=Fe(r.innerType,t,n),i=t.seen.get(e);t.target==="openapi-3.0"?(i.ref=r.innerType,a.nullable=!0):a.anyOf=[o,{type:"null"}]},aw=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},rw=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,a.default=JSON.parse(JSON.stringify(r.defaultValue))},nw=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,t.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(r.defaultValue)))},ow=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType;let i;try{i=r.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=i},iw=(e,t,a,n)=>{let r=e._zod.def,o=t.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;Fe(o,t,n);let i=t.seen.get(e);i.ref=o},lw=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType,a.readOnly=!0},sw=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},Yp=(e,t,a,n)=>{let r=e._zod.def;Fe(r.innerType,t,n);let o=t.seen.get(e);o.ref=r.innerType},uw=(e,t,a,n)=>{let r=e._zod.innerType;Fe(r,t,n);let o=t.seen.get(e);o.ref=r},Xp={string:LS,number:TS,boolean:AS,bigint:ES,symbol:$S,null:MS,undefined:zS,void:DS,never:OS,any:RS,unknown:PS,date:US,enum:NS,literal:jS,nan:BS,template_literal:FS,file:qS,success:ZS,custom:HS,function:VS,transform:GS,map:WS,set:JS,array:XS,object:KS,union:Kp,intersection:YS,tuple:QS,record:ew,nullable:tw,nonoptional:aw,default:rw,prefault:nw,catch:ow,pipe:iw,readonly:lw,promise:sw,optional:Yp,lazy:uw};function Yl(e,t){if("_idmap"in e){let n=e,r=go({...t,processors:Xp}),o={};for(let s of n._idmap.entries()){let[u,c]=s;Fe(c,r)}let i={},l={registry:n,uri:t?.uri,defs:o};r.external=l;for(let s of n._idmap.entries()){let[u,c]=s;vo(r,c),i[u]=yo(r,c)}if(Object.keys(o).length>0){let s=r.target==="draft-2020-12"?"$defs":"definitions";i.__shared={[s]:o}}return{schemas:i}}let a=go({...t,processors:Xp});return Fe(e,a),vo(a,e),yo(a,e)}var Qp=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let a=t?.target??"draft-2020-12";a==="draft-4"&&(a="draft-04"),a==="draft-7"&&(a="draft-07"),this.ctx=go({processors:Xp,target:a,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,a={path:[],schemaPath:[]}){return Fe(t,this.ctx,a)}emit(t,a){a&&(a.cycles&&(this.ctx.cycles=a.cycles),a.reused&&(this.ctx.reused=a.reused),a.external&&(this.ctx.external=a.external)),vo(this.ctx,t);let n=yo(this.ctx,t),{"~standard":r,...o}=n;return o}};var qE={};var cc={};hr(cc,{ZodAny:()=>Mw,ZodArray:()=>Rw,ZodBase64:()=>bm,ZodBase64URL:()=>Sm,ZodBigInt:()=>os,ZodBigIntFormat:()=>_m,ZodBoolean:()=>ns,ZodCIDRv4:()=>ym,ZodCIDRv6:()=>xm,ZodCUID:()=>dm,ZodCUID2:()=>fm,ZodCatch:()=>nI,ZodCodec:()=>Mm,ZodCustom:()=>wc,ZodCustomStringFormat:()=>as,ZodDate:()=>vc,ZodDefault:()=>Yw,ZodDiscriminatedUnion:()=>Uw,ZodE164:()=>wm,ZodEmail:()=>sm,ZodEmoji:()=>um,ZodEnum:()=>es,ZodExactOptional:()=>Jw,ZodFile:()=>Gw,ZodFunction:()=>pI,ZodGUID:()=>fc,ZodIPv4:()=>gm,ZodIPv6:()=>vm,ZodIntersection:()=>Nw,ZodJWT:()=>Im,ZodKSUID:()=>hm,ZodLazy:()=>cI,ZodLiteral:()=>Vw,ZodMAC:()=>kw,ZodMap:()=>Zw,ZodNaN:()=>iI,ZodNanoID:()=>cm,ZodNever:()=>Dw,ZodNonOptional:()=>Em,ZodNull:()=>Ew,ZodNullable:()=>Kw,ZodNumber:()=>rs,ZodNumberFormat:()=>di,ZodObject:()=>xc,ZodOptional:()=>Am,ZodPipe:()=>$m,ZodPrefault:()=>eI,ZodPromise:()=>fI,ZodReadonly:()=>lI,ZodRecord:()=>Sc,ZodSet:()=>Hw,ZodString:()=>ts,ZodStringFormat:()=>Ke,ZodSuccess:()=>rI,ZodSymbol:()=>Tw,ZodTemplateLiteral:()=>uI,ZodTransform:()=>Ww,ZodTuple:()=>Bw,ZodType:()=>we,ZodULID:()=>pm,ZodURL:()=>gc,ZodUUID:()=>jr,ZodUndefined:()=>Aw,ZodUnion:()=>bc,ZodUnknown:()=>zw,ZodVoid:()=>Ow,ZodXID:()=>mm,ZodXor:()=>Pw,_ZodString:()=>lm,_default:()=>Qw,_function:()=>X2,any:()=>T2,array:()=>yc,base64:()=>d2,base64url:()=>f2,bigint:()=>I2,boolean:()=>Lw,catch:()=>oI,check:()=>K2,cidrv4:()=>u2,cidrv6:()=>c2,codec:()=>G2,cuid:()=>t2,cuid2:()=>a2,custom:()=>Y2,date:()=>E2,describe:()=>Q2,discriminatedUnion:()=>R2,e164:()=>p2,email:()=>HE,emoji:()=>QE,enum:()=>Lm,exactOptional:()=>Xw,file:()=>q2,float32:()=>x2,float64:()=>b2,function:()=>X2,guid:()=>VE,hash:()=>y2,hex:()=>v2,hostname:()=>g2,httpUrl:()=>YE,instanceof:()=>t$,int:()=>im,int32:()=>S2,int64:()=>_2,intersection:()=>jw,ipv4:()=>i2,ipv6:()=>s2,json:()=>r$,jwt:()=>m2,keyof:()=>$2,ksuid:()=>o2,lazy:()=>dI,literal:()=>F2,looseObject:()=>D2,looseRecord:()=>U2,mac:()=>l2,map:()=>N2,meta:()=>e$,nan:()=>V2,nanoid:()=>e2,nativeEnum:()=>B2,never:()=>km,nonoptional:()=>aI,null:()=>$w,nullable:()=>mc,nullish:()=>Z2,number:()=>Cw,object:()=>M2,optional:()=>pc,partialRecord:()=>P2,pipe:()=>hc,prefault:()=>tI,preprocess:()=>n$,promise:()=>J2,readonly:()=>sI,record:()=>qw,refine:()=>mI,set:()=>j2,strictObject:()=>z2,string:()=>om,stringFormat:()=>h2,stringbool:()=>a$,success:()=>H2,superRefine:()=>hI,symbol:()=>C2,templateLiteral:()=>W2,transform:()=>Tm,tuple:()=>Fw,uint32:()=>w2,uint64:()=>k2,ulid:()=>r2,undefined:()=>L2,union:()=>Cm,unknown:()=>ci,url:()=>KE,uuid:()=>GE,uuidv4:()=>WE,uuidv6:()=>JE,uuidv7:()=>XE,void:()=>A2,xid:()=>n2,xor:()=>O2});var em={};hr(em,{endsWith:()=>ql,gt:()=>Ur,gte:()=>fa,includes:()=>Bl,length:()=>ui,lowercase:()=>Nl,lt:()=>Pr,lte:()=>Fa,maxLength:()=>si,maxSize:()=>ho,mime:()=>Zl,minLength:()=>xn,minSize:()=>Nr,multipleOf:()=>mo,negative:()=>Vp,nonnegative:()=>Wp,nonpositive:()=>Gp,normalize:()=>Hl,overwrite:()=>Sr,positive:()=>Hp,property:()=>Jp,regex:()=>Ul,size:()=>li,slugify:()=>Jl,startsWith:()=>Fl,toLowerCase:()=>Gl,toUpperCase:()=>Wl,trim:()=>Vl,uppercase:()=>jl});var Ql={};hr(Ql,{ZodISODate:()=>am,ZodISODateTime:()=>tm,ZodISODuration:()=>nm,ZodISOTime:()=>rm,date:()=>dw,datetime:()=>cw,duration:()=>pw,time:()=>fw});var tm=z("ZodISODateTime",(e,t)=>{Bx.init(e,t),Ke.init(e,t)});function cw(e){return Hb(tm,e)}var am=z("ZodISODate",(e,t)=>{Fx.init(e,t),Ke.init(e,t)});function dw(e){return Vb(am,e)}var rm=z("ZodISOTime",(e,t)=>{qx.init(e,t),Ke.init(e,t)});function fw(e){return Gb(rm,e)}var nm=z("ZodISODuration",(e,t)=>{Zx.init(e,t),Ke.init(e,t)});function pw(e){return Wb(nm,e)}var ZE=(e,t)=>{Ku.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>Qu(e,a)},flatten:{value:a=>Yu(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,Al,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,Al,2)}},isEmpty:{get(){return e.issues.length===0}}})},oN=z("ZodError",ZE),Ca=z("ZodError",ZE,{Parent:Error});var mw=Ml(Ca),hw=zl(Ca),gw=Dl(Ca),dc=Ol(Ca),vw=Qf(Ca),yw=ep(Ca),xw=tp(Ca),bw=ap(Ca),Sw=rp(Ca),ww=np(Ca),Iw=op(Ca),_w=ip(Ca);var we=z("ZodType",(e,t)=>(ve.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Kl(e,"input"),output:Kl(e,"output")}}),e.toJSONSchema=CS(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(V.mergeDefs(t,{checks:[...t.checks??[],...a.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0}),e.with=e.check,e.clone=(a,n)=>da(e,a,n),e.brand=()=>e,e.register=((a,n)=>(a.add(e,n),e)),e.parse=(a,n)=>mw(e,a,n,{callee:e.parse}),e.safeParse=(a,n)=>gw(e,a,n),e.parseAsync=async(a,n)=>hw(e,a,n,{callee:e.parseAsync}),e.safeParseAsync=async(a,n)=>dc(e,a,n),e.spa=e.safeParseAsync,e.encode=(a,n)=>vw(e,a,n),e.decode=(a,n)=>yw(e,a,n),e.encodeAsync=async(a,n)=>xw(e,a,n),e.decodeAsync=async(a,n)=>bw(e,a,n),e.safeEncode=(a,n)=>Sw(e,a,n),e.safeDecode=(a,n)=>ww(e,a,n),e.safeEncodeAsync=async(a,n)=>Iw(e,a,n),e.safeDecodeAsync=async(a,n)=>_w(e,a,n),e.refine=(a,n)=>e.check(mI(a,n)),e.superRefine=a=>e.check(hI(a)),e.overwrite=a=>e.check(Sr(a)),e.optional=()=>pc(e),e.exactOptional=()=>Xw(e),e.nullable=()=>mc(e),e.nullish=()=>pc(mc(e)),e.nonoptional=a=>aI(e,a),e.array=()=>yc(e),e.or=a=>Cm([e,a]),e.and=a=>jw(e,a),e.transform=a=>hc(e,Tm(a)),e.default=a=>Qw(e,a),e.prefault=a=>tI(e,a),e.catch=a=>oI(e,a),e.pipe=a=>hc(e,a),e.readonly=()=>sI(e),e.describe=a=>{let n=e.clone();return ta.add(n,{description:a}),n},Object.defineProperty(e,"description",{get(){return ta.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return ta.get(e);let n=e.clone();return ta.add(n,a[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=a=>a(e),e)),lm=z("_ZodString",(e,t)=>{ii.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>LS(e,n,r,o);let a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...n)=>e.check(Ul(...n)),e.includes=(...n)=>e.check(Bl(...n)),e.startsWith=(...n)=>e.check(Fl(...n)),e.endsWith=(...n)=>e.check(ql(...n)),e.min=(...n)=>e.check(xn(...n)),e.max=(...n)=>e.check(si(...n)),e.length=(...n)=>e.check(ui(...n)),e.nonempty=(...n)=>e.check(xn(1,...n)),e.lowercase=n=>e.check(Nl(n)),e.uppercase=n=>e.check(jl(n)),e.trim=()=>e.check(Vl()),e.normalize=(...n)=>e.check(Hl(...n)),e.toLowerCase=()=>e.check(Gl()),e.toUpperCase=()=>e.check(Wl()),e.slugify=()=>e.check(Jl())}),ts=z("ZodString",(e,t)=>{ii.init(e,t),lm.init(e,t),e.email=a=>e.check(kp(sm,a)),e.url=a=>e.check(uc(gc,a)),e.jwt=a=>e.check(Zp(Im,a)),e.emoji=a=>e.check(Ep(um,a)),e.guid=a=>e.check(sc(fc,a)),e.uuid=a=>e.check(Cp(jr,a)),e.uuidv4=a=>e.check(Lp(jr,a)),e.uuidv6=a=>e.check(Tp(jr,a)),e.uuidv7=a=>e.check(Ap(jr,a)),e.nanoid=a=>e.check($p(cm,a)),e.guid=a=>e.check(sc(fc,a)),e.cuid=a=>e.check(Mp(dm,a)),e.cuid2=a=>e.check(zp(fm,a)),e.ulid=a=>e.check(Dp(pm,a)),e.base64=a=>e.check(Bp(bm,a)),e.base64url=a=>e.check(Fp(Sm,a)),e.xid=a=>e.check(Op(mm,a)),e.ksuid=a=>e.check(Rp(hm,a)),e.ipv4=a=>e.check(Pp(gm,a)),e.ipv6=a=>e.check(Up(vm,a)),e.cidrv4=a=>e.check(Np(ym,a)),e.cidrv6=a=>e.check(jp(xm,a)),e.e164=a=>e.check(qp(wm,a)),e.datetime=a=>e.check(cw(a)),e.date=a=>e.check(dw(a)),e.time=a=>e.check(fw(a)),e.duration=a=>e.check(pw(a))});function om(e){return Bb(ts,e)}var Ke=z("ZodStringFormat",(e,t)=>{Xe.init(e,t),lm.init(e,t)}),sm=z("ZodEmail",(e,t)=>{Mx.init(e,t),Ke.init(e,t)});function HE(e){return kp(sm,e)}var fc=z("ZodGUID",(e,t)=>{Ex.init(e,t),Ke.init(e,t)});function VE(e){return sc(fc,e)}var jr=z("ZodUUID",(e,t)=>{$x.init(e,t),Ke.init(e,t)});function GE(e){return Cp(jr,e)}function WE(e){return Lp(jr,e)}function JE(e){return Tp(jr,e)}function XE(e){return Ap(jr,e)}var gc=z("ZodURL",(e,t)=>{zx.init(e,t),Ke.init(e,t)});function KE(e){return uc(gc,e)}function YE(e){return uc(gc,{protocol:/^https?$/,hostname:lr.domain,...V.normalizeParams(e)})}var um=z("ZodEmoji",(e,t)=>{Dx.init(e,t),Ke.init(e,t)});function QE(e){return Ep(um,e)}var cm=z("ZodNanoID",(e,t)=>{Ox.init(e,t),Ke.init(e,t)});function e2(e){return $p(cm,e)}var dm=z("ZodCUID",(e,t)=>{Rx.init(e,t),Ke.init(e,t)});function t2(e){return Mp(dm,e)}var fm=z("ZodCUID2",(e,t)=>{Px.init(e,t),Ke.init(e,t)});function a2(e){return zp(fm,e)}var pm=z("ZodULID",(e,t)=>{Ux.init(e,t),Ke.init(e,t)});function r2(e){return Dp(pm,e)}var mm=z("ZodXID",(e,t)=>{Nx.init(e,t),Ke.init(e,t)});function n2(e){return Op(mm,e)}var hm=z("ZodKSUID",(e,t)=>{jx.init(e,t),Ke.init(e,t)});function o2(e){return Rp(hm,e)}var gm=z("ZodIPv4",(e,t)=>{Hx.init(e,t),Ke.init(e,t)});function i2(e){return Pp(gm,e)}var kw=z("ZodMAC",(e,t)=>{Gx.init(e,t),Ke.init(e,t)});function l2(e){return qb(kw,e)}var vm=z("ZodIPv6",(e,t)=>{Vx.init(e,t),Ke.init(e,t)});function s2(e){return Up(vm,e)}var ym=z("ZodCIDRv4",(e,t)=>{Wx.init(e,t),Ke.init(e,t)});function u2(e){return Np(ym,e)}var xm=z("ZodCIDRv6",(e,t)=>{Jx.init(e,t),Ke.init(e,t)});function c2(e){return jp(xm,e)}var bm=z("ZodBase64",(e,t)=>{Kx.init(e,t),Ke.init(e,t)});function d2(e){return Bp(bm,e)}var Sm=z("ZodBase64URL",(e,t)=>{Yx.init(e,t),Ke.init(e,t)});function f2(e){return Fp(Sm,e)}var wm=z("ZodE164",(e,t)=>{Qx.init(e,t),Ke.init(e,t)});function p2(e){return qp(wm,e)}var Im=z("ZodJWT",(e,t)=>{eb.init(e,t),Ke.init(e,t)});function m2(e){return Zp(Im,e)}var as=z("ZodCustomStringFormat",(e,t)=>{tb.init(e,t),Ke.init(e,t)});function h2(e,t,a={}){return Xl(as,e,t,a)}function g2(e){return Xl(as,"hostname",lr.hostname,e)}function v2(e){return Xl(as,"hex",lr.hex,e)}function y2(e,t){let a=t?.enc??"hex",n=`${e}_${a}`,r=lr[n];if(!r)throw new Error(`Unrecognized hash format: ${n}`);return Xl(as,n,r,t)}var rs=z("ZodNumber",(e,t)=>{gp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>TS(e,n,r,o),e.gt=(n,r)=>e.check(Ur(n,r)),e.gte=(n,r)=>e.check(fa(n,r)),e.min=(n,r)=>e.check(fa(n,r)),e.lt=(n,r)=>e.check(Pr(n,r)),e.lte=(n,r)=>e.check(Fa(n,r)),e.max=(n,r)=>e.check(Fa(n,r)),e.int=n=>e.check(im(n)),e.safe=n=>e.check(im(n)),e.positive=n=>e.check(Ur(0,n)),e.nonnegative=n=>e.check(fa(0,n)),e.negative=n=>e.check(Pr(0,n)),e.nonpositive=n=>e.check(Fa(0,n)),e.multipleOf=(n,r)=>e.check(mo(n,r)),e.step=(n,r)=>e.check(mo(n,r)),e.finite=()=>e;let a=e._zod.bag;e.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),e.isFinite=!0,e.format=a.format??null});function Cw(e){return Jb(rs,e)}var di=z("ZodNumberFormat",(e,t)=>{ab.init(e,t),rs.init(e,t)});function im(e){return Kb(di,e)}function x2(e){return Yb(di,e)}function b2(e){return Qb(di,e)}function S2(e){return eS(di,e)}function w2(e){return tS(di,e)}var ns=z("ZodBoolean",(e,t)=>{rc.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>AS(e,a,n,r)});function Lw(e){return aS(ns,e)}var os=z("ZodBigInt",(e,t)=>{vp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ES(e,n,r,o),e.gte=(n,r)=>e.check(fa(n,r)),e.min=(n,r)=>e.check(fa(n,r)),e.gt=(n,r)=>e.check(Ur(n,r)),e.gte=(n,r)=>e.check(fa(n,r)),e.min=(n,r)=>e.check(fa(n,r)),e.lt=(n,r)=>e.check(Pr(n,r)),e.lte=(n,r)=>e.check(Fa(n,r)),e.max=(n,r)=>e.check(Fa(n,r)),e.positive=n=>e.check(Ur(BigInt(0),n)),e.negative=n=>e.check(Pr(BigInt(0),n)),e.nonpositive=n=>e.check(Fa(BigInt(0),n)),e.nonnegative=n=>e.check(fa(BigInt(0),n)),e.multipleOf=(n,r)=>e.check(mo(n,r));let a=e._zod.bag;e.minValue=a.minimum??null,e.maxValue=a.maximum??null,e.format=a.format??null});function I2(e){return nS(os,e)}var _m=z("ZodBigIntFormat",(e,t)=>{rb.init(e,t),os.init(e,t)});function _2(e){return iS(_m,e)}function k2(e){return lS(_m,e)}var Tw=z("ZodSymbol",(e,t)=>{nb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>$S(e,a,n,r)});function C2(e){return sS(Tw,e)}var Aw=z("ZodUndefined",(e,t)=>{ob.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>zS(e,a,n,r)});function L2(e){return uS(Aw,e)}var Ew=z("ZodNull",(e,t)=>{ib.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>MS(e,a,n,r)});function $w(e){return cS(Ew,e)}var Mw=z("ZodAny",(e,t)=>{lb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>RS(e,a,n,r)});function T2(){return dS(Mw)}var zw=z("ZodUnknown",(e,t)=>{sb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>PS(e,a,n,r)});function ci(){return fS(zw)}var Dw=z("ZodNever",(e,t)=>{ub.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>OS(e,a,n,r)});function km(e){return pS(Dw,e)}var Ow=z("ZodVoid",(e,t)=>{cb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>DS(e,a,n,r)});function A2(e){return mS(Ow,e)}var vc=z("ZodDate",(e,t)=>{db.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>US(e,n,r,o),e.min=(n,r)=>e.check(fa(n,r)),e.max=(n,r)=>e.check(Fa(n,r));let a=e._zod.bag;e.minDate=a.minimum?new Date(a.minimum):null,e.maxDate=a.maximum?new Date(a.maximum):null});function E2(e){return hS(vc,e)}var Rw=z("ZodArray",(e,t)=>{fb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>XS(e,a,n,r),e.element=t.element,e.min=(a,n)=>e.check(xn(a,n)),e.nonempty=a=>e.check(xn(1,a)),e.max=(a,n)=>e.check(si(a,n)),e.length=(a,n)=>e.check(ui(a,n)),e.unwrap=()=>e.element});function yc(e,t){return yS(Rw,e,t)}function $2(e){let t=e._zod.def.shape;return Lm(Object.keys(t))}var xc=z("ZodObject",(e,t)=>{pb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>KS(e,a,n,r),V.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>Lm(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:ci()}),e.loose=()=>e.clone({...e._zod.def,catchall:ci()}),e.strict=()=>e.clone({...e._zod.def,catchall:km()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>V.extend(e,a),e.safeExtend=a=>V.safeExtend(e,a),e.merge=a=>V.merge(e,a),e.pick=a=>V.pick(e,a),e.omit=a=>V.omit(e,a),e.partial=(...a)=>V.partial(Am,e,a[0]),e.required=(...a)=>V.required(Em,e,a[0])});function M2(e,t){let a={type:"object",shape:e??{},...V.normalizeParams(t)};return new xc(a)}function z2(e,t){return new xc({type:"object",shape:e,catchall:km(),...V.normalizeParams(t)})}function D2(e,t){return new xc({type:"object",shape:e,catchall:ci(),...V.normalizeParams(t)})}var bc=z("ZodUnion",(e,t)=>{nc.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Kp(e,a,n,r),e.options=t.options});function Cm(e,t){return new bc({type:"union",options:e,...V.normalizeParams(t)})}var Pw=z("ZodXor",(e,t)=>{bc.init(e,t),mb.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Kp(e,a,n,r),e.options=t.options});function O2(e,t){return new Pw({type:"union",options:e,inclusive:!1,...V.normalizeParams(t)})}var Uw=z("ZodDiscriminatedUnion",(e,t)=>{bc.init(e,t),hb.init(e,t)});function R2(e,t,a){return new Uw({type:"union",options:t,discriminator:e,...V.normalizeParams(a)})}var Nw=z("ZodIntersection",(e,t)=>{gb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>YS(e,a,n,r)});function jw(e,t){return new Nw({type:"intersection",left:e,right:t})}var Bw=z("ZodTuple",(e,t)=>{yp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>QS(e,a,n,r),e.rest=a=>e.clone({...e._zod.def,rest:a})});function Fw(e,t,a){let n=t instanceof ve,r=n?a:t,o=n?t:null;return new Bw({type:"tuple",items:e,rest:o,...V.normalizeParams(r)})}var Sc=z("ZodRecord",(e,t)=>{vb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ew(e,a,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function qw(e,t,a){return new Sc({type:"record",keyType:e,valueType:t,...V.normalizeParams(a)})}function P2(e,t,a){let n=da(e);return n._zod.values=void 0,new Sc({type:"record",keyType:n,valueType:t,...V.normalizeParams(a)})}function U2(e,t,a){return new Sc({type:"record",keyType:e,valueType:t,mode:"loose",...V.normalizeParams(a)})}var Zw=z("ZodMap",(e,t)=>{yb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>WS(e,a,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...a)=>e.check(Nr(...a)),e.nonempty=a=>e.check(Nr(1,a)),e.max=(...a)=>e.check(ho(...a)),e.size=(...a)=>e.check(li(...a))});function N2(e,t,a){return new Zw({type:"map",keyType:e,valueType:t,...V.normalizeParams(a)})}var Hw=z("ZodSet",(e,t)=>{xb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>JS(e,a,n,r),e.min=(...a)=>e.check(Nr(...a)),e.nonempty=a=>e.check(Nr(1,a)),e.max=(...a)=>e.check(ho(...a)),e.size=(...a)=>e.check(li(...a))});function j2(e,t){return new Hw({type:"set",valueType:e,...V.normalizeParams(t)})}var es=z("ZodEnum",(e,t)=>{bb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(n,r,o)=>NS(e,n,r,o),e.enum=t.entries,e.options=Object.values(t.entries);let a=new Set(Object.keys(t.entries));e.extract=(n,r)=>{let o={};for(let i of n)if(a.has(i))o[i]=t.entries[i];else throw new Error(`Key ${i} not found in enum`);return new es({...t,checks:[],...V.normalizeParams(r),entries:o})},e.exclude=(n,r)=>{let o={...t.entries};for(let i of n)if(a.has(i))delete o[i];else throw new Error(`Key ${i} not found in enum`);return new es({...t,checks:[],...V.normalizeParams(r),entries:o})}});function Lm(e,t){let a=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new es({type:"enum",entries:a,...V.normalizeParams(t)})}function B2(e,t){return new es({type:"enum",entries:e,...V.normalizeParams(t)})}var Vw=z("ZodLiteral",(e,t)=>{Sb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>jS(e,a,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function F2(e,t){return new Vw({type:"literal",values:Array.isArray(e)?e:[e],...V.normalizeParams(t)})}var Gw=z("ZodFile",(e,t)=>{wb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>qS(e,a,n,r),e.min=(a,n)=>e.check(Nr(a,n)),e.max=(a,n)=>e.check(ho(a,n)),e.mime=(a,n)=>e.check(Zl(Array.isArray(a)?a:[a],n))});function q2(e){return xS(Gw,e)}var Ww=z("ZodTransform",(e,t)=>{Ib.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>GS(e,a,n,r),e._zod.parse=(a,n)=>{if(n.direction==="backward")throw new so(e.constructor.name);a.addIssue=o=>{if(typeof o=="string")a.issues.push(V.issue(o,a.value,t));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=a.value),i.inst??(i.inst=e),a.issues.push(V.issue(i))}};let r=t.transform(a.value,a);return r instanceof Promise?r.then(o=>(a.value=o,a)):(a.value=r,a)}});function Tm(e){return new Ww({type:"transform",transform:e})}var Am=z("ZodOptional",(e,t)=>{xp.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Yp(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function pc(e){return new Am({type:"optional",innerType:e})}var Jw=z("ZodExactOptional",(e,t)=>{_b.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>Yp(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function Xw(e){return new Jw({type:"optional",innerType:e})}var Kw=z("ZodNullable",(e,t)=>{kb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>tw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function mc(e){return new Kw({type:"nullable",innerType:e})}function Z2(e){return pc(mc(e))}var Yw=z("ZodDefault",(e,t)=>{Cb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>rw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Qw(e,t){return new Yw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():V.shallowClone(t)}})}var eI=z("ZodPrefault",(e,t)=>{Lb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>nw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function tI(e,t){return new eI({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():V.shallowClone(t)}})}var Em=z("ZodNonOptional",(e,t)=>{Tb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>aw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function aI(e,t){return new Em({type:"nonoptional",innerType:e,...V.normalizeParams(t)})}var rI=z("ZodSuccess",(e,t)=>{Ab.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ZS(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function H2(e){return new rI({type:"success",innerType:e})}var nI=z("ZodCatch",(e,t)=>{Eb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>ow(e,a,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function oI(e,t){return new nI({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}var iI=z("ZodNaN",(e,t)=>{$b.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>BS(e,a,n,r)});function V2(e){return vS(iI,e)}var $m=z("ZodPipe",(e,t)=>{Mb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>iw(e,a,n,r),e.in=t.in,e.out=t.out});function hc(e,t){return new $m({type:"pipe",in:e,out:t})}var Mm=z("ZodCodec",(e,t)=>{$m.init(e,t),oc.init(e,t)});function G2(e,t,a){return new Mm({type:"pipe",in:e,out:t,transform:a.decode,reverseTransform:a.encode})}var lI=z("ZodReadonly",(e,t)=>{zb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>lw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function sI(e){return new lI({type:"readonly",innerType:e})}var uI=z("ZodTemplateLiteral",(e,t)=>{Db.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>FS(e,a,n,r)});function W2(e,t){return new uI({type:"template_literal",parts:e,...V.normalizeParams(t)})}var cI=z("ZodLazy",(e,t)=>{Pb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>uw(e,a,n,r),e.unwrap=()=>e._zod.def.getter()});function dI(e){return new cI({type:"lazy",getter:e})}var fI=z("ZodPromise",(e,t)=>{Rb.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>sw(e,a,n,r),e.unwrap=()=>e._zod.def.innerType});function J2(e){return new fI({type:"promise",innerType:e})}var pI=z("ZodFunction",(e,t)=>{Ob.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>VS(e,a,n,r)});function X2(e){return new pI({type:"function",input:Array.isArray(e?.input)?Fw(e?.input):e?.input??yc(ci()),output:e?.output??ci()})}var wc=z("ZodCustom",(e,t)=>{Ub.init(e,t),we.init(e,t),e._zod.processJSONSchema=(a,n,r)=>HS(e,a,n,r)});function K2(e){let t=new rt({check:"custom"});return t._zod.check=e,t}function Y2(e,t){return bS(wc,e??(()=>!0),t)}function mI(e,t={}){return SS(wc,e,t)}function hI(e){return wS(e)}var Q2=IS,e$=_S;function t$(e,t={}){let a=new wc({type:"custom",check:"custom",fn:n=>n instanceof e,abort:!0,...V.normalizeParams(t)});return a._zod.bag.Class=e,a._zod.check=n=>{n.value instanceof e||n.issues.push({code:"invalid_type",expected:e.name,input:n.value,inst:a,path:[...a._zod.def.path??[]]})},a}var a$=(...e)=>kS({Codec:Mm,Boolean:ns,String:ts},...e);function r$(e){let t=dI(()=>Cm([om(e),Cw(),Lw(),$w(),yc(t),qw(om(),t)]));return t}function n$(e,t){return hc(Tm(e),t)}var lN={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 sN(e){St({customError:e})}function uN(){return St().customError}var gI;gI||(gI={});var ee={...cc,...em,iso:Ql},cN=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function dN(e,t){let a=e.$schema;return a==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":a==="http://json-schema.org/draft-07/schema#"?"draft-7":a==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function fN(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let a=e.slice(1).split("/").filter(Boolean);if(a.length===0)return t.rootSchema;let n=t.version==="draft-2020-12"?"$defs":"definitions";if(a[0]===n){let r=a[1];if(!r||!t.defs[r])throw new Error(`Reference not found: ${e}`);return t.defs[r]}throw new Error(`Reference not found: ${e}`)}function o$(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return ee.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let r=e.$ref;if(t.refs.has(r))return t.refs.get(r);if(t.processing.has(r))return ee.lazy(()=>{if(!t.refs.has(r))throw new Error(`Circular reference not resolved: ${r}`);return t.refs.get(r)});t.processing.add(r);let o=fN(r,t),i=na(o,t);return t.refs.set(r,i),t.processing.delete(r),i}if(e.enum!==void 0){let r=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&r.length===1&&r[0]===null)return ee.null();if(r.length===0)return ee.never();if(r.length===1)return ee.literal(r[0]);if(r.every(i=>typeof i=="string"))return ee.enum(r);let o=r.map(i=>ee.literal(i));return o.length<2?o[0]:ee.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return ee.literal(e.const);let a=e.type;if(Array.isArray(a)){let r=a.map(o=>{let i={...e,type:o};return o$(i,t)});return r.length===0?ee.never():r.length===1?r[0]:ee.union(r)}if(!a)return ee.any();let n;switch(a){case"string":{let r=ee.string();if(e.format){let o=e.format;o==="email"?r=r.check(ee.email()):o==="uri"||o==="uri-reference"?r=r.check(ee.url()):o==="uuid"||o==="guid"?r=r.check(ee.uuid()):o==="date-time"?r=r.check(ee.iso.datetime()):o==="date"?r=r.check(ee.iso.date()):o==="time"?r=r.check(ee.iso.time()):o==="duration"?r=r.check(ee.iso.duration()):o==="ipv4"?r=r.check(ee.ipv4()):o==="ipv6"?r=r.check(ee.ipv6()):o==="mac"?r=r.check(ee.mac()):o==="cidr"?r=r.check(ee.cidrv4()):o==="cidr-v6"?r=r.check(ee.cidrv6()):o==="base64"?r=r.check(ee.base64()):o==="base64url"?r=r.check(ee.base64url()):o==="e164"?r=r.check(ee.e164()):o==="jwt"?r=r.check(ee.jwt()):o==="emoji"?r=r.check(ee.emoji()):o==="nanoid"?r=r.check(ee.nanoid()):o==="cuid"?r=r.check(ee.cuid()):o==="cuid2"?r=r.check(ee.cuid2()):o==="ulid"?r=r.check(ee.ulid()):o==="xid"?r=r.check(ee.xid()):o==="ksuid"&&(r=r.check(ee.ksuid()))}typeof e.minLength=="number"&&(r=r.min(e.minLength)),typeof e.maxLength=="number"&&(r=r.max(e.maxLength)),e.pattern&&(r=r.regex(new RegExp(e.pattern))),n=r;break}case"number":case"integer":{let r=a==="integer"?ee.number().int():ee.number();typeof e.minimum=="number"&&(r=r.min(e.minimum)),typeof e.maximum=="number"&&(r=r.max(e.maximum)),typeof e.exclusiveMinimum=="number"?r=r.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(r=r.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?r=r.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(r=r.lt(e.maximum)),typeof e.multipleOf=="number"&&(r=r.multipleOf(e.multipleOf)),n=r;break}case"boolean":{n=ee.boolean();break}case"null":{n=ee.null();break}case"object":{let r={},o=e.properties||{},i=new Set(e.required||[]);for(let[s,u]of Object.entries(o)){let c=na(u,t);r[s]=i.has(s)?c:c.optional()}if(e.propertyNames){let s=na(e.propertyNames,t),u=e.additionalProperties&&typeof e.additionalProperties=="object"?na(e.additionalProperties,t):ee.any();if(Object.keys(r).length===0){n=ee.record(s,u);break}let c=ee.object(r).passthrough(),d=ee.looseRecord(s,u);n=ee.intersection(c,d);break}if(e.patternProperties){let s=e.patternProperties,u=Object.keys(s),c=[];for(let f of u){let p=na(s[f],t),m=ee.string().regex(new RegExp(f));c.push(ee.looseRecord(m,p))}let d=[];if(Object.keys(r).length>0&&d.push(ee.object(r).passthrough()),d.push(...c),d.length===0)n=ee.object({}).passthrough();else if(d.length===1)n=d[0];else{let f=ee.intersection(d[0],d[1]);for(let p=2;p<d.length;p++)f=ee.intersection(f,d[p]);n=f}break}let l=ee.object(r);e.additionalProperties===!1?n=l.strict():typeof e.additionalProperties=="object"?n=l.catchall(na(e.additionalProperties,t)):n=l.passthrough();break}case"array":{let r=e.prefixItems,o=e.items;if(r&&Array.isArray(r)){let i=r.map(s=>na(s,t)),l=o&&typeof o=="object"&&!Array.isArray(o)?na(o,t):void 0;l?n=ee.tuple(i).rest(l):n=ee.tuple(i),typeof e.minItems=="number"&&(n=n.check(ee.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(ee.maxLength(e.maxItems)))}else if(Array.isArray(o)){let i=o.map(s=>na(s,t)),l=e.additionalItems&&typeof e.additionalItems=="object"?na(e.additionalItems,t):void 0;l?n=ee.tuple(i).rest(l):n=ee.tuple(i),typeof e.minItems=="number"&&(n=n.check(ee.minLength(e.minItems))),typeof e.maxItems=="number"&&(n=n.check(ee.maxLength(e.maxItems)))}else if(o!==void 0){let i=na(o,t),l=ee.array(i);typeof e.minItems=="number"&&(l=l.min(e.minItems)),typeof e.maxItems=="number"&&(l=l.max(e.maxItems)),n=l}else n=ee.array(ee.any());break}default:throw new Error(`Unsupported type: ${a}`)}return e.description&&(n=n.describe(e.description)),e.default!==void 0&&(n=n.default(e.default)),n}function na(e,t){if(typeof e=="boolean")return e?ee.any():ee.never();let a=o$(e,t),n=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let l=e.anyOf.map(u=>na(u,t)),s=ee.union(l);a=n?ee.intersection(a,s):s}if(e.oneOf&&Array.isArray(e.oneOf)){let l=e.oneOf.map(u=>na(u,t)),s=ee.xor(l);a=n?ee.intersection(a,s):s}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)a=n?a:ee.any();else{let l=n?a:na(e.allOf[0],t),s=n?0:1;for(let u=s;u<e.allOf.length;u++)l=ee.intersection(l,na(e.allOf[u],t));a=l}e.nullable===!0&&t.version==="openapi-3.0"&&(a=ee.nullable(a)),e.readOnly===!0&&(a=ee.readonly(a));let r={},o=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let l of o)l in e&&(r[l]=e[l]);let i=["contentEncoding","contentMediaType","contentSchema"];for(let l of i)l in e&&(r[l]=e[l]);for(let l of Object.keys(e))cN.has(l)||(r[l]=e[l]);return Object.keys(r).length>0&&t.registry.add(a,r),a}function i$(e,t){if(typeof e=="boolean")return e?ee.any():ee.never();let a=dN(e,t?.defaultTarget),n=e.$defs||e.definitions||{},r={version:a,defs:n,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??ta};return na(e,r)}var vI={};hr(vI,{bigint:()=>gN,boolean:()=>hN,date:()=>vN,number:()=>mN,string:()=>pN});function pN(e){return Fb(ts,e)}function mN(e){return Xb(rs,e)}function hN(e){return rS(ns,e)}function gN(e){return oS(os,e)}function vN(e){return gS(vc,e)}St(bp());var Oe;(function(e){e.assertEqual=r=>{};function t(r){}e.assertIs=t;function a(r){throw new Error}e.assertNever=a,e.arrayToEnum=r=>{let o={};for(let i of r)o[i]=i;return o},e.getValidEnumValues=r=>{let o=e.objectKeys(r).filter(l=>typeof r[r[l]]!="number"),i={};for(let l of o)i[l]=r[l];return e.objectValues(i)},e.objectValues=r=>e.objectKeys(r).map(function(o){return r[o]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let o=[];for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&o.push(i);return o},e.find=(r,o)=>{for(let i of r)if(o(i))return i},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function n(r,o=" | "){return r.map(i=>typeof i=="string"?`'${i}'`:i).join(o)}e.joinValues=n,e.jsonStringifyReplacer=(r,o)=>typeof o=="bigint"?o.toString():o})(Oe||(Oe={}));var l$;(function(e){e.mergeShapes=(t,a)=>({...t,...a})})(l$||(l$={}));var re=Oe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Sn=e=>{switch(typeof e){case"undefined":return re.undefined;case"string":return re.string;case"number":return Number.isNaN(e)?re.nan:re.number;case"boolean":return re.boolean;case"function":return re.function;case"bigint":return re.bigint;case"symbol":return re.symbol;case"object":return Array.isArray(e)?re.array:e===null?re.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?re.promise:typeof Map<"u"&&e instanceof Map?re.map:typeof Set<"u"&&e instanceof Set?re.set:typeof Date<"u"&&e instanceof Date?re.date:re.object;default:return re.unknown}};var Z=Oe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var qa=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let a=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,a):this.__proto__=a,this.name="ZodError",this.issues=t}format(t){let a=t||function(o){return o.message},n={_errors:[]},r=o=>{for(let i of o.issues)if(i.code==="invalid_union")i.unionErrors.map(r);else if(i.code==="invalid_return_type")r(i.returnTypeError);else if(i.code==="invalid_arguments")r(i.argumentsError);else if(i.path.length===0)n._errors.push(a(i));else{let l=n,s=0;for(;s<i.path.length;){let u=i.path[s];s===i.path.length-1?(l[u]=l[u]||{_errors:[]},l[u]._errors.push(a(i))):l[u]=l[u]||{_errors:[]},l=l[u],s++}}};return r(this),n}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Oe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=a=>a.message){let a=Object.create(null),n=[];for(let r of this.issues)if(r.path.length>0){let o=r.path[0];a[o]=a[o]||[],a[o].push(t(r))}else n.push(t(r));return{formErrors:n,fieldErrors:a}}get formErrors(){return this.flatten()}};qa.create=e=>new qa(e);var xN=(e,t)=>{let a;switch(e.code){case Z.invalid_type:e.received===re.undefined?a="Required":a=`Expected ${e.expected}, received ${e.received}`;break;case Z.invalid_literal:a=`Invalid literal value, expected ${JSON.stringify(e.expected,Oe.jsonStringifyReplacer)}`;break;case Z.unrecognized_keys:a=`Unrecognized key(s) in object: ${Oe.joinValues(e.keys,", ")}`;break;case Z.invalid_union:a="Invalid input";break;case Z.invalid_union_discriminator:a=`Invalid discriminator value. Expected ${Oe.joinValues(e.options)}`;break;case Z.invalid_enum_value:a=`Invalid enum value. Expected ${Oe.joinValues(e.options)}, received '${e.received}'`;break;case Z.invalid_arguments:a="Invalid function arguments";break;case Z.invalid_return_type:a="Invalid function return type";break;case Z.invalid_date:a="Invalid date";break;case Z.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(a=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(a=`${a} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?a=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?a=`Invalid input: must end with "${e.validation.endsWith}"`:Oe.assertNever(e.validation):e.validation!=="regex"?a=`Invalid ${e.validation}`:a="Invalid";break;case Z.too_small:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?a=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:a="Invalid input";break;case Z.too_big:e.type==="array"?a=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?a=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?a=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?a=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?a=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:a="Invalid input";break;case Z.custom:a="Invalid input";break;case Z.invalid_intersection_types:a="Intersection results could not be merged";break;case Z.not_multiple_of:a=`Number must be a multiple of ${e.multipleOf}`;break;case Z.not_finite:a="Number must be finite";break;default:a=t.defaultError,Oe.assertNever(e)}return{message:a}},xo=xN;var bN=xo;function Ic(){return bN}var zm=e=>{let{data:t,path:a,errorMaps:n,issueData:r}=e,o=[...a,...r.path||[]],i={...r,path:o};if(r.message!==void 0)return{...r,path:o,message:r.message};let l="",s=n.filter(u=>!!u).slice().reverse();for(let u of s)l=u(i,{data:t,defaultError:l}).message;return{...r,path:o,message:l}};function te(e,t){let a=Ic(),n=zm({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,a,a===xo?void 0:xo].filter(r=>!!r)});e.common.issues.push(n)}var oa=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,a){let n=[];for(let r of a){if(r.status==="aborted")return me;r.status==="dirty"&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,a){let n=[];for(let r of a){let o=await r.key,i=await r.value;n.push({key:o,value:i})}return e.mergeObjectSync(t,n)}static mergeObjectSync(t,a){let n={};for(let r of a){let{key:o,value:i}=r;if(o.status==="aborted"||i.status==="aborted")return me;o.status==="dirty"&&t.dirty(),i.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof i.value<"u"||r.alwaysSet)&&(n[o.value]=i.value)}return{status:t.value,value:n}}},me=Object.freeze({status:"aborted"}),is=e=>({status:"dirty",value:e}),ma=e=>({status:"valid",value:e}),yI=e=>e.status==="aborted",xI=e=>e.status==="dirty",fi=e=>e.status==="valid",_c=e=>typeof Promise<"u"&&e instanceof Promise;var oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(oe||(oe={}));var sr=class{constructor(t,a,n,r){this._cachedPath=[],this.parent=t,this.data=a,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},s$=(e,t)=>{if(fi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let a=new qa(e.common.issues);return this._error=a,this._error}}};function Ie(e){if(!e)return{};let{errorMap:t,invalid_type_error:a,required_error:n,description:r}=e;if(t&&(a||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(i,l)=>{let{message:s}=e;return i.code==="invalid_enum_value"?{message:s??l.defaultError}:typeof l.data>"u"?{message:s??n??l.defaultError}:i.code!=="invalid_type"?{message:l.defaultError}:{message:s??a??l.defaultError}},description:r}}var Te=class{get description(){return this._def.description}_getType(t){return Sn(t.data)}_getOrReturnCtx(t,a){return a||{common:t.parent.common,data:t.data,parsedType:Sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new oa,ctx:{common:t.parent.common,data:t.data,parsedType:Sn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let a=this._parse(t);if(_c(a))throw new Error("Synchronous parse encountered promise.");return a}_parseAsync(t){let a=this._parse(t);return Promise.resolve(a)}parse(t,a){let n=this.safeParse(t,a);if(n.success)return n.data;throw n.error}safeParse(t,a){let n={common:{issues:[],async:a?.async??!1,contextualErrorMap:a?.errorMap},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sn(t)},r=this._parseSync({data:t,path:n.path,parent:n});return s$(n,r)}"~validate"(t){let a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sn(t)};if(!this["~standard"].async)try{let n=this._parseSync({data:t,path:[],parent:a});return fi(n)?{value:n.value}:{issues:a.common.issues}}catch(n){n?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(n=>fi(n)?{value:n.value}:{issues:a.common.issues})}async parseAsync(t,a){let n=await this.safeParseAsync(t,a);if(n.success)return n.data;throw n.error}async safeParseAsync(t,a){let n={common:{issues:[],contextualErrorMap:a?.errorMap,async:!0},path:a?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Sn(t)},r=this._parse({data:t,path:n.path,parent:n}),o=await(_c(r)?r:Promise.resolve(r));return s$(n,o)}refine(t,a){let n=r=>typeof a=="string"||typeof a>"u"?{message:a}:typeof a=="function"?a(r):a;return this._refinement((r,o)=>{let i=t(r),l=()=>o.addIssue({code:Z.custom,...n(r)});return typeof Promise<"u"&&i instanceof Promise?i.then(s=>s?!0:(l(),!1)):i?!0:(l(),!1)})}refinement(t,a){return this._refinement((n,r)=>t(n)?!0:(r.addIssue(typeof a=="function"?a(n,r):a),!1))}_refinement(t){return new Ir({schema:this,typeName:W.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:a=>this["~validate"](a)}}optional(){return wr.create(this,this._def)}nullable(){return _n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return So.create(this)}promise(){return pi.create(this,this._def)}or(t){return ds.create([this,t],this._def)}and(t){return fs.create(this,t,this._def)}transform(t){return new Ir({...Ie(this._def),schema:this,typeName:W.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let a=typeof t=="function"?t:()=>t;return new vs({...Ie(this._def),innerType:this,defaultValue:a,typeName:W.ZodDefault})}brand(){return new Dm({typeName:W.ZodBranded,type:this,...Ie(this._def)})}catch(t){let a=typeof t=="function"?t:()=>t;return new ys({...Ie(this._def),innerType:this,catchValue:a,typeName:W.ZodCatch})}describe(t){let a=this.constructor;return new a({...this._def,description:t})}pipe(t){return Om.create(this,t)}readonly(){return xs.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},SN=/^c[^\s-]{8,}$/i,wN=/^[0-9a-z]+$/,IN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,_N=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,kN=/^[a-z0-9_-]{21}$/i,CN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,LN=/^[-+]?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)?)??$/,TN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,AN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",bI,EN=/^(?:(?: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])$/,$N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,MN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,zN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,DN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ON=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,u$="((\\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])))",RN=new RegExp(`^${u$}$`);function c$(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let a=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${a}`}function PN(e){return new RegExp(`^${c$(e)}$`)}function UN(e){let t=`${u$}T${c$(e)}`,a=[];return a.push(e.local?"Z?":"Z"),e.offset&&a.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${a.join("|")})`,new RegExp(`^${t}$`)}function NN(e,t){return!!((t==="v4"||!t)&&EN.test(e)||(t==="v6"||!t)&&MN.test(e))}function jN(e,t){if(!CN.test(e))return!1;try{let[a]=e.split(".");if(!a)return!1;let n=a.replace(/-/g,"+").replace(/_/g,"/").padEnd(a.length+(4-a.length%4)%4,"="),r=JSON.parse(atob(n));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}function BN(e,t){return!!((t==="v4"||!t)&&$N.test(e)||(t==="v6"||!t)&&zN.test(e))}var ss=class e extends Te{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==re.string){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_type,expected:re.string,received:o.parsedType}),me}let n=new oa,r;for(let o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="max")t.data.length>o.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),n.dirty());else if(o.kind==="length"){let i=t.data.length>o.value,l=t.data.length<o.value;(i||l)&&(r=this._getOrReturnCtx(t,r),i?te(r,{code:Z.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):l&&te(r,{code:Z.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),n.dirty())}else if(o.kind==="email")TN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"email",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="emoji")bI||(bI=new RegExp(AN,"u")),bI.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"emoji",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="uuid")_N.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"uuid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="nanoid")kN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"nanoid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid")SN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="cuid2")wN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cuid2",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="ulid")IN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ulid",code:Z.invalid_string,message:o.message}),n.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),te(r,{validation:"url",code:Z.invalid_string,message:o.message}),n.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"regex",code:Z.invalid_string,message:o.message}),n.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),n.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:{startsWith:o.value},message:o.message}),n.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:{endsWith:o.value},message:o.message}),n.dirty()):o.kind==="datetime"?UN(o).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:"datetime",message:o.message}),n.dirty()):o.kind==="date"?RN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:"date",message:o.message}),n.dirty()):o.kind==="time"?PN(o).test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{code:Z.invalid_string,validation:"time",message:o.message}),n.dirty()):o.kind==="duration"?LN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"duration",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="ip"?NN(t.data,o.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"ip",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="jwt"?jN(t.data,o.alg)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"jwt",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="cidr"?BN(t.data,o.version)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"cidr",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="base64"?DN.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64",code:Z.invalid_string,message:o.message}),n.dirty()):o.kind==="base64url"?ON.test(t.data)||(r=this._getOrReturnCtx(t,r),te(r,{validation:"base64url",code:Z.invalid_string,message:o.message}),n.dirty()):Oe.assertNever(o);return{status:n.value,value:t.data}}_regex(t,a,n){return this.refinement(r=>t.test(r),{validation:a,code:Z.invalid_string,...oe.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...oe.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...oe.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...oe.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...oe.errToObj(t)})}regex(t,a){return this._addCheck({kind:"regex",regex:t,...oe.errToObj(a)})}includes(t,a){return this._addCheck({kind:"includes",value:t,position:a?.position,...oe.errToObj(a?.message)})}startsWith(t,a){return this._addCheck({kind:"startsWith",value:t,...oe.errToObj(a)})}endsWith(t,a){return this._addCheck({kind:"endsWith",value:t,...oe.errToObj(a)})}min(t,a){return this._addCheck({kind:"min",value:t,...oe.errToObj(a)})}max(t,a){return this._addCheck({kind:"max",value:t,...oe.errToObj(a)})}length(t,a){return this._addCheck({kind:"length",value:t,...oe.errToObj(a)})}nonempty(t){return this.min(1,oe.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxLength(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};ss.create=e=>new ss({checks:[],typeName:W.ZodString,coerce:e?.coerce??!1,...Ie(e)});function FN(e,t){let a=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,r=a>n?a:n,o=Number.parseInt(e.toFixed(r).replace(".","")),i=Number.parseInt(t.toFixed(r).replace(".",""));return o%i/10**r}var kc=class e extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==re.number){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_type,expected:re.number,received:o.parsedType}),me}let n,r=new oa;for(let o of this._def.checks)o.kind==="int"?Oe.isInteger(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:Z.invalid_type,expected:"integer",received:"float",message:o.message}),r.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),r.dirty()):o.kind==="multipleOf"?FN(t.data,o.value)!==0&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(n=this._getOrReturnCtx(t,n),te(n,{code:Z.not_finite,message:o.message}),r.dirty()):Oe.assertNever(o);return{status:r.value,value:t.data}}gte(t,a){return this.setLimit("min",t,!0,oe.toString(a))}gt(t,a){return this.setLimit("min",t,!1,oe.toString(a))}lte(t,a){return this.setLimit("max",t,!0,oe.toString(a))}lt(t,a){return this.setLimit("max",t,!1,oe.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:oe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:oe.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:oe.toString(a)})}finite(t){return this._addCheck({kind:"finite",message:oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:oe.toString(t)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Oe.isInteger(t.value))}get isFinite(){let t=null,a=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(a===null||n.value>a)&&(a=n.value):n.kind==="max"&&(t===null||n.value<t)&&(t=n.value)}return Number.isFinite(a)&&Number.isFinite(t)}};kc.create=e=>new kc({checks:[],typeName:W.ZodNumber,coerce:e?.coerce||!1,...Ie(e)});var Cc=class e extends Te{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==re.bigint)return this._getInvalidInput(t);let n,r=new oa;for(let o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),r.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(n=this._getOrReturnCtx(t,n),te(n,{code:Z.not_multiple_of,multipleOf:o.value,message:o.message}),r.dirty()):Oe.assertNever(o);return{status:r.value,value:t.data}}_getInvalidInput(t){let a=this._getOrReturnCtx(t);return te(a,{code:Z.invalid_type,expected:re.bigint,received:a.parsedType}),me}gte(t,a){return this.setLimit("min",t,!0,oe.toString(a))}gt(t,a){return this.setLimit("min",t,!1,oe.toString(a))}lte(t,a){return this.setLimit("max",t,!0,oe.toString(a))}lt(t,a){return this.setLimit("max",t,!1,oe.toString(a))}setLimit(t,a,n,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:a,inclusive:n,message:oe.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:oe.toString(t)})}multipleOf(t,a){return this._addCheck({kind:"multipleOf",value:t,message:oe.toString(a)})}get minValue(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t}get maxValue(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t}};Cc.create=e=>new Cc({checks:[],typeName:W.ZodBigInt,coerce:e?.coerce??!1,...Ie(e)});var Lc=class extends Te{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==re.boolean){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.boolean,received:n.parsedType}),me}return ma(t.data)}};Lc.create=e=>new Lc({typeName:W.ZodBoolean,coerce:e?.coerce||!1,...Ie(e)});var Tc=class e extends Te{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==re.date){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_type,expected:re.date,received:o.parsedType}),me}if(Number.isNaN(t.data.getTime())){let o=this._getOrReturnCtx(t);return te(o,{code:Z.invalid_date}),me}let n=new oa,r;for(let o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:Z.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),n.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(r=this._getOrReturnCtx(t,r),te(r,{code:Z.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),n.dirty()):Oe.assertNever(o);return{status:n.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,a){return this._addCheck({kind:"min",value:t.getTime(),message:oe.toString(a)})}max(t,a){return this._addCheck({kind:"max",value:t.getTime(),message:oe.toString(a)})}get minDate(){let t=null;for(let a of this._def.checks)a.kind==="min"&&(t===null||a.value>t)&&(t=a.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let a of this._def.checks)a.kind==="max"&&(t===null||a.value<t)&&(t=a.value);return t!=null?new Date(t):null}};Tc.create=e=>new Tc({checks:[],coerce:e?.coerce||!1,typeName:W.ZodDate,...Ie(e)});var Ac=class extends Te{_parse(t){if(this._getType(t)!==re.symbol){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.symbol,received:n.parsedType}),me}return ma(t.data)}};Ac.create=e=>new Ac({typeName:W.ZodSymbol,...Ie(e)});var us=class extends Te{_parse(t){if(this._getType(t)!==re.undefined){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.undefined,received:n.parsedType}),me}return ma(t.data)}};us.create=e=>new us({typeName:W.ZodUndefined,...Ie(e)});var cs=class extends Te{_parse(t){if(this._getType(t)!==re.null){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.null,received:n.parsedType}),me}return ma(t.data)}};cs.create=e=>new cs({typeName:W.ZodNull,...Ie(e)});var Ec=class extends Te{constructor(){super(...arguments),this._any=!0}_parse(t){return ma(t.data)}};Ec.create=e=>new Ec({typeName:W.ZodAny,...Ie(e)});var bo=class extends Te{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ma(t.data)}};bo.create=e=>new bo({typeName:W.ZodUnknown,...Ie(e)});var Br=class extends Te{_parse(t){let a=this._getOrReturnCtx(t);return te(a,{code:Z.invalid_type,expected:re.never,received:a.parsedType}),me}};Br.create=e=>new Br({typeName:W.ZodNever,...Ie(e)});var $c=class extends Te{_parse(t){if(this._getType(t)!==re.undefined){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.void,received:n.parsedType}),me}return ma(t.data)}};$c.create=e=>new $c({typeName:W.ZodVoid,...Ie(e)});var So=class e extends Te{_parse(t){let{ctx:a,status:n}=this._processInputParams(t),r=this._def;if(a.parsedType!==re.array)return te(a,{code:Z.invalid_type,expected:re.array,received:a.parsedType}),me;if(r.exactLength!==null){let i=a.data.length>r.exactLength.value,l=a.data.length<r.exactLength.value;(i||l)&&(te(a,{code:i?Z.too_big:Z.too_small,minimum:l?r.exactLength.value:void 0,maximum:i?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(r.minLength!==null&&a.data.length<r.minLength.value&&(te(a,{code:Z.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),r.maxLength!==null&&a.data.length>r.maxLength.value&&(te(a,{code:Z.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),a.common.async)return Promise.all([...a.data].map((i,l)=>r.type._parseAsync(new sr(a,i,a.path,l)))).then(i=>oa.mergeArray(n,i));let o=[...a.data].map((i,l)=>r.type._parseSync(new sr(a,i,a.path,l)));return oa.mergeArray(n,o)}get element(){return this._def.type}min(t,a){return new e({...this._def,minLength:{value:t,message:oe.toString(a)}})}max(t,a){return new e({...this._def,maxLength:{value:t,message:oe.toString(a)}})}length(t,a){return new e({...this._def,exactLength:{value:t,message:oe.toString(a)}})}nonempty(t){return this.min(1,t)}};So.create=(e,t)=>new So({type:e,minLength:null,maxLength:null,exactLength:null,typeName:W.ZodArray,...Ie(t)});function ls(e){if(e instanceof Za){let t={};for(let a in e.shape){let n=e.shape[a];t[a]=wr.create(ls(n))}return new Za({...e._def,shape:()=>t})}else return e instanceof So?new So({...e._def,type:ls(e.element)}):e instanceof wr?wr.create(ls(e.unwrap())):e instanceof _n?_n.create(ls(e.unwrap())):e instanceof In?In.create(e.items.map(t=>ls(t))):e}var Za=class e extends Te{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),a=Oe.objectKeys(t);return this._cached={shape:t,keys:a},this._cached}_parse(t){if(this._getType(t)!==re.object){let u=this._getOrReturnCtx(t);return te(u,{code:Z.invalid_type,expected:re.object,received:u.parsedType}),me}let{status:n,ctx:r}=this._processInputParams(t),{shape:o,keys:i}=this._getCached(),l=[];if(!(this._def.catchall instanceof Br&&this._def.unknownKeys==="strip"))for(let u in r.data)i.includes(u)||l.push(u);let s=[];for(let u of i){let c=o[u],d=r.data[u];s.push({key:{status:"valid",value:u},value:c._parse(new sr(r,d,r.path,u)),alwaysSet:u in r.data})}if(this._def.catchall instanceof Br){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of l)s.push({key:{status:"valid",value:c},value:{status:"valid",value:r.data[c]}});else if(u==="strict")l.length>0&&(te(r,{code:Z.unrecognized_keys,keys:l}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of l){let d=r.data[c];s.push({key:{status:"valid",value:c},value:u._parse(new sr(r,d,r.path,c)),alwaysSet:c in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of s){let d=await c.key,f=await c.value;u.push({key:d,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>oa.mergeObjectSync(n,u)):oa.mergeObjectSync(n,s)}get shape(){return this._def.shape()}strict(t){return oe.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(a,n)=>{let r=this._def.errorMap?.(a,n).message??n.defaultError;return a.code==="unrecognized_keys"?{message:oe.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:W.ZodObject})}setKey(t,a){return this.augment({[t]:a})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let a={};for(let n of Oe.objectKeys(t))t[n]&&this.shape[n]&&(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}omit(t){let a={};for(let n of Oe.objectKeys(this.shape))t[n]||(a[n]=this.shape[n]);return new e({...this._def,shape:()=>a})}deepPartial(){return ls(this)}partial(t){let a={};for(let n of Oe.objectKeys(this.shape)){let r=this.shape[n];t&&!t[n]?a[n]=r:a[n]=r.optional()}return new e({...this._def,shape:()=>a})}required(t){let a={};for(let n of Oe.objectKeys(this.shape))if(t&&!t[n])a[n]=this.shape[n];else{let o=this.shape[n];for(;o instanceof wr;)o=o._def.innerType;a[n]=o}return new e({...this._def,shape:()=>a})}keyof(){return d$(Oe.objectKeys(this.shape))}};Za.create=(e,t)=>new Za({shape:()=>e,unknownKeys:"strip",catchall:Br.create(),typeName:W.ZodObject,...Ie(t)});Za.strictCreate=(e,t)=>new Za({shape:()=>e,unknownKeys:"strict",catchall:Br.create(),typeName:W.ZodObject,...Ie(t)});Za.lazycreate=(e,t)=>new Za({shape:e,unknownKeys:"strip",catchall:Br.create(),typeName:W.ZodObject,...Ie(t)});var ds=class extends Te{_parse(t){let{ctx:a}=this._processInputParams(t),n=this._def.options;function r(o){for(let l of o)if(l.result.status==="valid")return l.result;for(let l of o)if(l.result.status==="dirty")return a.common.issues.push(...l.ctx.common.issues),l.result;let i=o.map(l=>new qa(l.ctx.common.issues));return te(a,{code:Z.invalid_union,unionErrors:i}),me}if(a.common.async)return Promise.all(n.map(async o=>{let i={...a,common:{...a.common,issues:[]},parent:null};return{result:await o._parseAsync({data:a.data,path:a.path,parent:i}),ctx:i}})).then(r);{let o,i=[];for(let s of n){let u={...a,common:{...a.common,issues:[]},parent:null},c=s._parseSync({data:a.data,path:a.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!o&&(o={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(o)return a.common.issues.push(...o.ctx.common.issues),o.result;let l=i.map(s=>new qa(s));return te(a,{code:Z.invalid_union,unionErrors:l}),me}}get options(){return this._def.options}};ds.create=(e,t)=>new ds({options:e,typeName:W.ZodUnion,...Ie(t)});var wn=e=>e instanceof ps?wn(e.schema):e instanceof Ir?wn(e.innerType()):e instanceof ms?[e.value]:e instanceof hs?e.options:e instanceof gs?Oe.objectValues(e.enum):e instanceof vs?wn(e._def.innerType):e instanceof us?[void 0]:e instanceof cs?[null]:e instanceof wr?[void 0,...wn(e.unwrap())]:e instanceof _n?[null,...wn(e.unwrap())]:e instanceof Dm||e instanceof xs?wn(e.unwrap()):e instanceof ys?wn(e._def.innerType):[],SI=class e extends Te{_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==re.object)return te(a,{code:Z.invalid_type,expected:re.object,received:a.parsedType}),me;let n=this.discriminator,r=a.data[n],o=this.optionsMap.get(r);return o?a.common.async?o._parseAsync({data:a.data,path:a.path,parent:a}):o._parseSync({data:a.data,path:a.path,parent:a}):(te(a,{code:Z.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,a,n){let r=new Map;for(let o of a){let i=wn(o.shape[t]);if(!i.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let l of i){if(r.has(l))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(l)}`);r.set(l,o)}}return new e({typeName:W.ZodDiscriminatedUnion,discriminator:t,options:a,optionsMap:r,...Ie(n)})}};function wI(e,t){let a=Sn(e),n=Sn(t);if(e===t)return{valid:!0,data:e};if(a===re.object&&n===re.object){let r=Oe.objectKeys(t),o=Oe.objectKeys(e).filter(l=>r.indexOf(l)!==-1),i={...e,...t};for(let l of o){let s=wI(e[l],t[l]);if(!s.valid)return{valid:!1};i[l]=s.data}return{valid:!0,data:i}}else if(a===re.array&&n===re.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let o=0;o<e.length;o++){let i=e[o],l=t[o],s=wI(i,l);if(!s.valid)return{valid:!1};r.push(s.data)}return{valid:!0,data:r}}else return a===re.date&&n===re.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var fs=class extends Te{_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=(o,i)=>{if(yI(o)||yI(i))return me;let l=wI(o.value,i.value);return l.valid?((xI(o)||xI(i))&&a.dirty(),{status:a.value,value:l.data}):(te(n,{code:Z.invalid_intersection_types}),me)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([o,i])=>r(o,i)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};fs.create=(e,t,a)=>new fs({left:e,right:t,typeName:W.ZodIntersection,...Ie(a)});var In=class e extends Te{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==re.array)return te(n,{code:Z.invalid_type,expected:re.array,received:n.parsedType}),me;if(n.data.length<this._def.items.length)return te(n,{code:Z.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),me;!this._def.rest&&n.data.length>this._def.items.length&&(te(n,{code:Z.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),a.dirty());let o=[...n.data].map((i,l)=>{let s=this._def.items[l]||this._def.rest;return s?s._parse(new sr(n,i,n.path,l)):null}).filter(i=>!!i);return n.common.async?Promise.all(o).then(i=>oa.mergeArray(a,i)):oa.mergeArray(a,o)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};In.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new In({items:e,typeName:W.ZodTuple,rest:null,...Ie(t)})};var II=class e extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==re.object)return te(n,{code:Z.invalid_type,expected:re.object,received:n.parsedType}),me;let r=[],o=this._def.keyType,i=this._def.valueType;for(let l in n.data)r.push({key:o._parse(new sr(n,l,n.path,l)),value:i._parse(new sr(n,n.data[l],n.path,l)),alwaysSet:l in n.data});return n.common.async?oa.mergeObjectAsync(a,r):oa.mergeObjectSync(a,r)}get element(){return this._def.valueType}static create(t,a,n){return a instanceof Te?new e({keyType:t,valueType:a,typeName:W.ZodRecord,...Ie(n)}):new e({keyType:ss.create(),valueType:t,typeName:W.ZodRecord,...Ie(a)})}},Mc=class extends Te{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==re.map)return te(n,{code:Z.invalid_type,expected:re.map,received:n.parsedType}),me;let r=this._def.keyType,o=this._def.valueType,i=[...n.data.entries()].map(([l,s],u)=>({key:r._parse(new sr(n,l,n.path,[u,"key"])),value:o._parse(new sr(n,s,n.path,[u,"value"]))}));if(n.common.async){let l=new Map;return Promise.resolve().then(async()=>{for(let s of i){let u=await s.key,c=await s.value;if(u.status==="aborted"||c.status==="aborted")return me;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}})}else{let l=new Map;for(let s of i){let u=s.key,c=s.value;if(u.status==="aborted"||c.status==="aborted")return me;(u.status==="dirty"||c.status==="dirty")&&a.dirty(),l.set(u.value,c.value)}return{status:a.value,value:l}}}};Mc.create=(e,t,a)=>new Mc({valueType:t,keyType:e,typeName:W.ZodMap,...Ie(a)});var zc=class e extends Te{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.parsedType!==re.set)return te(n,{code:Z.invalid_type,expected:re.set,received:n.parsedType}),me;let r=this._def;r.minSize!==null&&n.data.size<r.minSize.value&&(te(n,{code:Z.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),a.dirty()),r.maxSize!==null&&n.data.size>r.maxSize.value&&(te(n,{code:Z.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),a.dirty());let o=this._def.valueType;function i(s){let u=new Set;for(let c of s){if(c.status==="aborted")return me;c.status==="dirty"&&a.dirty(),u.add(c.value)}return{status:a.value,value:u}}let l=[...n.data.values()].map((s,u)=>o._parse(new sr(n,s,n.path,u)));return n.common.async?Promise.all(l).then(s=>i(s)):i(l)}min(t,a){return new e({...this._def,minSize:{value:t,message:oe.toString(a)}})}max(t,a){return new e({...this._def,maxSize:{value:t,message:oe.toString(a)}})}size(t,a){return this.min(t,a).max(t,a)}nonempty(t){return this.min(1,t)}};zc.create=(e,t)=>new zc({valueType:e,minSize:null,maxSize:null,typeName:W.ZodSet,...Ie(t)});var _I=class e extends Te{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==re.function)return te(a,{code:Z.invalid_type,expected:re.function,received:a.parsedType}),me;function n(l,s){return zm({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Ic(),xo].filter(u=>!!u),issueData:{code:Z.invalid_arguments,argumentsError:s}})}function r(l,s){return zm({data:l,path:a.path,errorMaps:[a.common.contextualErrorMap,a.schemaErrorMap,Ic(),xo].filter(u=>!!u),issueData:{code:Z.invalid_return_type,returnTypeError:s}})}let o={errorMap:a.common.contextualErrorMap},i=a.data;if(this._def.returns instanceof pi){let l=this;return ma(async function(...s){let u=new qa([]),c=await l._def.args.parseAsync(s,o).catch(p=>{throw u.addIssue(n(s,p)),u}),d=await Reflect.apply(i,this,c);return await l._def.returns._def.type.parseAsync(d,o).catch(p=>{throw u.addIssue(r(d,p)),u})})}else{let l=this;return ma(function(...s){let u=l._def.args.safeParse(s,o);if(!u.success)throw new qa([n(s,u.error)]);let c=Reflect.apply(i,this,u.data),d=l._def.returns.safeParse(c,o);if(!d.success)throw new qa([r(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:In.create(t).rest(bo.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,a,n){return new e({args:t||In.create([]).rest(bo.create()),returns:a||bo.create(),typeName:W.ZodFunction,...Ie(n)})}},ps=class extends Te{get schema(){return this._def.getter()}_parse(t){let{ctx:a}=this._processInputParams(t);return this._def.getter()._parse({data:a.data,path:a.path,parent:a})}};ps.create=(e,t)=>new ps({getter:e,typeName:W.ZodLazy,...Ie(t)});var ms=class extends Te{_parse(t){if(t.data!==this._def.value){let a=this._getOrReturnCtx(t);return te(a,{received:a.data,code:Z.invalid_literal,expected:this._def.value}),me}return{status:"valid",value:t.data}}get value(){return this._def.value}};ms.create=(e,t)=>new ms({value:e,typeName:W.ZodLiteral,...Ie(t)});function d$(e,t){return new hs({values:e,typeName:W.ZodEnum,...Ie(t)})}var hs=class e extends Te{_parse(t){if(typeof t.data!="string"){let a=this._getOrReturnCtx(t),n=this._def.values;return te(a,{expected:Oe.joinValues(n),received:a.parsedType,code:Z.invalid_type}),me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let a=this._getOrReturnCtx(t),n=this._def.values;return te(a,{received:a.data,code:Z.invalid_enum_value,options:n}),me}return ma(t.data)}get options(){return this._def.values}get enum(){let t={};for(let a of this._def.values)t[a]=a;return t}get Values(){let t={};for(let a of this._def.values)t[a]=a;return t}get Enum(){let t={};for(let a of this._def.values)t[a]=a;return t}extract(t,a=this._def){return e.create(t,{...this._def,...a})}exclude(t,a=this._def){return e.create(this.options.filter(n=>!t.includes(n)),{...this._def,...a})}};hs.create=d$;var gs=class extends Te{_parse(t){let a=Oe.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==re.string&&n.parsedType!==re.number){let r=Oe.objectValues(a);return te(n,{expected:Oe.joinValues(r),received:n.parsedType,code:Z.invalid_type}),me}if(this._cache||(this._cache=new Set(Oe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Oe.objectValues(a);return te(n,{received:n.data,code:Z.invalid_enum_value,options:r}),me}return ma(t.data)}get enum(){return this._def.values}};gs.create=(e,t)=>new gs({values:e,typeName:W.ZodNativeEnum,...Ie(t)});var pi=class extends Te{unwrap(){return this._def.type}_parse(t){let{ctx:a}=this._processInputParams(t);if(a.parsedType!==re.promise&&a.common.async===!1)return te(a,{code:Z.invalid_type,expected:re.promise,received:a.parsedType}),me;let n=a.parsedType===re.promise?a.data:Promise.resolve(a.data);return ma(n.then(r=>this._def.type.parseAsync(r,{path:a.path,errorMap:a.common.contextualErrorMap})))}};pi.create=(e,t)=>new pi({type:e,typeName:W.ZodPromise,...Ie(t)});var Ir=class extends Te{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===W.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:a,ctx:n}=this._processInputParams(t),r=this._def.effect||null,o={addIssue:i=>{te(n,i),i.fatal?a.abort():a.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),r.type==="preprocess"){let i=r.transform(n.data,o);if(n.common.async)return Promise.resolve(i).then(async l=>{if(a.value==="aborted")return me;let s=await this._def.schema._parseAsync({data:l,path:n.path,parent:n});return s.status==="aborted"?me:s.status==="dirty"?is(s.value):a.value==="dirty"?is(s.value):s});{if(a.value==="aborted")return me;let l=this._def.schema._parseSync({data:i,path:n.path,parent:n});return l.status==="aborted"?me:l.status==="dirty"?is(l.value):a.value==="dirty"?is(l.value):l}}if(r.type==="refinement"){let i=l=>{let s=r.refinement(l,o);if(n.common.async)return Promise.resolve(s);if(s instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(n.common.async===!1){let l=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return l.status==="aborted"?me:(l.status==="dirty"&&a.dirty(),i(l.value),{status:a.value,value:l.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(l=>l.status==="aborted"?me:(l.status==="dirty"&&a.dirty(),i(l.value).then(()=>({status:a.value,value:l.value}))))}if(r.type==="transform")if(n.common.async===!1){let i=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!fi(i))return me;let l=r.transform(i.value,o);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:a.value,value:l}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(i=>fi(i)?Promise.resolve(r.transform(i.value,o)).then(l=>({status:a.value,value:l})):me);Oe.assertNever(r)}};Ir.create=(e,t,a)=>new Ir({schema:e,typeName:W.ZodEffects,effect:t,...Ie(a)});Ir.createWithPreprocess=(e,t,a)=>new Ir({schema:t,effect:{type:"preprocess",transform:e},typeName:W.ZodEffects,...Ie(a)});var wr=class extends Te{_parse(t){return this._getType(t)===re.undefined?ma(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};wr.create=(e,t)=>new wr({innerType:e,typeName:W.ZodOptional,...Ie(t)});var _n=class extends Te{_parse(t){return this._getType(t)===re.null?ma(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};_n.create=(e,t)=>new _n({innerType:e,typeName:W.ZodNullable,...Ie(t)});var vs=class extends Te{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return a.parsedType===re.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:a.path,parent:a})}removeDefault(){return this._def.innerType}};vs.create=(e,t)=>new vs({innerType:e,typeName:W.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ie(t)});var ys=class extends Te{_parse(t){let{ctx:a}=this._processInputParams(t),n={...a,common:{...a.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return _c(r)?r.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new qa(n.common.issues)},input:n.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new qa(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};ys.create=(e,t)=>new ys({innerType:e,typeName:W.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ie(t)});var Dc=class extends Te{_parse(t){if(this._getType(t)!==re.nan){let n=this._getOrReturnCtx(t);return te(n,{code:Z.invalid_type,expected:re.nan,received:n.parsedType}),me}return{status:"valid",value:t.data}}};Dc.create=e=>new Dc({typeName:W.ZodNaN,...Ie(e)});var Dm=class extends Te{_parse(t){let{ctx:a}=this._processInputParams(t),n=a.data;return this._def.type._parse({data:n,path:a.path,parent:a})}unwrap(){return this._def.type}},Om=class e extends Te{_parse(t){let{status:a,ctx:n}=this._processInputParams(t);if(n.common.async)return(async()=>{let o=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?me:o.status==="dirty"?(a.dirty(),is(o.value)):this._def.out._parseAsync({data:o.value,path:n.path,parent:n})})();{let r=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return r.status==="aborted"?me:r.status==="dirty"?(a.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:n.path,parent:n})}}static create(t,a){return new e({in:t,out:a,typeName:W.ZodPipeline})}},xs=class extends Te{_parse(t){let a=this._def.innerType._parse(t),n=r=>(fi(r)&&(r.value=Object.freeze(r.value)),r);return _c(a)?a.then(r=>n(r)):n(a)}unwrap(){return this._def.innerType}};xs.create=(e,t)=>new xs({innerType:e,typeName:W.ZodReadonly,...Ie(t)});var nG={object:Za.lazycreate},W;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(W||(W={}));var oG=ss.create,iG=kc.create,lG=Dc.create,sG=Cc.create,uG=Lc.create,cG=Tc.create,dG=Ac.create,fG=us.create,pG=cs.create,mG=Ec.create,hG=bo.create,gG=Br.create,vG=$c.create,yG=So.create,xG=Za.create,bG=Za.strictCreate,SG=ds.create,wG=SI.create,IG=fs.create,_G=In.create,kG=II.create,CG=Mc.create,LG=zc.create,TG=_I.create,AG=ps.create,EG=ms.create,$G=hs.create,MG=gs.create,zG=pi.create,DG=Ir.create,OG=wr.create,RG=_n.create,PG=Ir.createWithPreprocess,UG=Om.create;var Rm=class extends Error{constructor(t,a){super(t),this.name="ParseError",this.type=a.type,this.field=a.field,this.value=a.value,this.line=a.line}};function kI(e){}function f$(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");let{onEvent:t=kI,onError:a=kI,onRetry:n=kI,onComment:r}=e,o="",i=!0,l,s="",u="";function c(S){let C=i?S.replace(/^\xEF\xBB\xBF/,""):S,[h,y]=ZN(`${o}${C}`);for(let g of h)d(g);o=y,i=!1}function d(S){if(S===""){p();return}if(S.startsWith(":")){r&&r(S.slice(S.startsWith(": ")?2:1));return}let C=S.indexOf(":");if(C!==-1){let h=S.slice(0,C),y=S[C+1]===" "?2:1,g=S.slice(C+y);f(h,g,S);return}f(S,"",S)}function f(S,C,h){switch(S){case"event":u=C;break;case"data":s=`${s}${C}
|
|
59
|
-
`;break;case"id":l=C.includes("\0")?void 0:C;break;case"retry":/^\d+$/.test(C)?n(parseInt(C,10)):a(new Rm(`Invalid \`retry\` value: "${C}"`,{type:"invalid-retry",value:C,line:h}));break;default:a(new Rm(`Unknown field "${S.length>20?`${S.slice(0,20)}\u2026`:S}"`,{type:"unknown-field",field:S,value:C,line:h}));break}}function p(){s.length>0&&t({id:l,event:u||void 0,data:s.endsWith(`
|
|
60
|
-
`)?s.slice(0,-1):s}),l=void 0,s="",u=""}function m(S={}){o&&S.consume&&d(o),i=!0,l=void 0,s="",u="",o=""}return{feed:c,reset:m}}function ZN(e){let t=[],a="",n=0;for(;n<e.length;){let r=e.indexOf("\r",n),o=e.indexOf(`
|
|
61
|
-
`,n),i=-1;if(r!==-1&&o!==-1?i=Math.min(r,o):r!==-1?r===e.length-1?i=-1:i=r:o!==-1&&(i=o),i===-1){a=e.slice(n);break}else{let l=e.slice(n,i);t.push(l),n=i+1,e[n-1]==="\r"&&e[n]===`
|
|
62
|
-
`&&n++}}return[t,a]}var Pm=class extends TransformStream{constructor({onError:t,onRetry:a,onComment:n}={}){let r;super({start(o){r=f$({onEvent:i=>{o.enqueue(i)},onError(i){t==="terminate"?o.error(i):typeof t=="function"&&t(i)},onRetry:a,onComment:n})},transform(o){r.feed(o)}})}};var{btoa:KG,atob:YG}=globalThis;var y$="AI_DownloadError",x$=`vercel.ai.error.${y$}`,HN=Symbol.for(x$),p$,m$,ur=class extends(m$=Pe,p$=HN,m$){constructor({url:e,statusCode:t,statusText:a,cause:n,message:r=n==null?`Failed to download ${e}: ${t} ${a}`:`Failed to download ${e}: ${n}`}){super({name:y$,message:r,cause:n}),this[p$]=!0,this.url=e,this.statusCode=t,this.statusText=a}static isInstance(e){return Pe.hasMarker(e,x$)}},$I=2*1024*1024*1024;async function b$({response:e,url:t,maxBytes:a=$I}){let n=e.headers.get("content-length");if(n!=null){let c=parseInt(n,10);if(!isNaN(c)&&c>a)throw new ur({url:t,message:`Download of ${t} exceeded maximum size of ${a} bytes (Content-Length: ${c}).`})}let r=e.body;if(r==null)return new Uint8Array(0);let o=r.getReader(),i=[],l=0;try{for(;;){let{done:c,value:d}=await o.read();if(c)break;if(l+=d.length,l>a)throw new ur({url:t,message:`Download of ${t} exceeded maximum size of ${a} bytes.`});i.push(d)}}finally{try{await o.cancel()}finally{o.releaseLock()}}let s=new Uint8Array(l),u=0;for(let c of i)s.set(c,u),u+=c.length;return s}function S$(e){let t;try{t=new URL(e)}catch{throw new ur({url:e,message:`Invalid URL: ${e}`})}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new ur({url:e,message:`URL scheme must be http or https, got ${t.protocol}`});let a=t.hostname;if(!a)throw new ur({url:e,message:"URL must have a hostname"});if(a==="localhost"||a.endsWith(".local")||a.endsWith(".localhost"))throw new ur({url:e,message:`URL with hostname ${a} is not allowed`});if(a.startsWith("[")&&a.endsWith("]")){let n=a.slice(1,-1);if(VN(n))throw new ur({url:e,message:`URL with IPv6 address ${a} is not allowed`});return}if(w$(a)){if(TI(a))throw new ur({url:e,message:`URL with IP address ${a} is not allowed`});return}}function w$(e){let t=e.split(".");return t.length!==4?!1:t.every(a=>{let n=Number(a);return Number.isInteger(n)&&n>=0&&n<=255&&String(n)===a})}function TI(e){let t=e.split(".").map(Number),[a,n]=t;return a===0||a===10||a===127||a===169&&n===254||a===172&&n>=16&&n<=31||a===192&&n===168}function VN(e){let t=e.toLowerCase();if(t==="::1"||t==="::")return!0;if(t.startsWith("::ffff:")){let a=t.slice(7);if(w$(a))return TI(a);let n=a.split(":");if(n.length===2){let r=parseInt(n[0],16),o=parseInt(n[1],16);if(!isNaN(r)&&!isNaN(o)){let i=r>>8&255,l=r&255,s=o>>8&255,u=o&255;return TI(`${i}.${l}.${s}.${u}`)}}}return!!(t.startsWith("fc")||t.startsWith("fd")||t.startsWith("fe80"))}var kn=({prefix:e,size:t=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:n="-"}={})=>{let r=()=>{let o=a.length,i=new Array(t);for(let l=0;l<t;l++)i[l]=a[Math.random()*o|0];return i.join("")};if(e==null)return r;if(a.includes(n))throw new KT({argument:"separator",message:`The separator "${n}" must not be part of the alphabet "${a}".`});return()=>`${e}${n}${r()}`},I$=kn();function Oc(e=globalThis){var t,a,n;return e.window?"runtime/browser":(t=e.navigator)!=null&&t.userAgent?`runtime/${e.navigator.userAgent.toLowerCase()}`:(n=(a=e.process)==null?void 0:a.versions)!=null&&n.node?`runtime/node.js/${e.process.version.substring(0)}`:e.EdgeRuntime?"runtime/vercel-edge":"runtime/unknown"}function wo(e){if(e==null)return{};let t={};if(e instanceof Headers)e.forEach((a,n)=>{t[n.toLowerCase()]=a});else{Array.isArray(e)||(e=Object.entries(e));for(let[a,n]of e)n!=null&&(t[a.toLowerCase()]=n)}return t}function hi(e,...t){let a=new Headers(wo(e)),n=a.get("user-agent")||"";return a.set("user-agent",[n,...t].filter(Boolean).join(" ")),Object.fromEntries(a.entries())}var GN=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,WN=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function h$(e){let t=JSON.parse(e);return t===null||typeof t!="object"||GN.test(e)===!1&&WN.test(e)===!1?t:JN(t)}function JN(e){let t=[e];for(;t.length;){let a=t;t=[];for(let n of a){if(Object.prototype.hasOwnProperty.call(n,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor!==null&&typeof n.constructor=="object"&&Object.prototype.hasOwnProperty.call(n.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(let r in n){let o=n[r];o&&typeof o=="object"&&t.push(o)}}}return e}function XN(e){let{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return h$(e)}try{return h$(e)}finally{Error.stackTraceLimit=t}}function MI(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;let{properties:a}=e;if(a!=null)for(let n of Object.keys(a))a[n]=mi(a[n])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(mi):mi(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(mi)),e.allOf!=null&&(e.allOf=e.allOf.map(mi)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(mi));let{definitions:t}=e;if(t!=null)for(let a of Object.keys(t))t[a]=mi(t[a]);return e}function mi(e){return typeof e=="boolean"?e:MI(e)}var KN=Symbol("Let zodToJsonSchema decide on which parser to use"),g$={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},YN=e=>typeof e=="string"?{...g$,name:e}:{...g$,...e};function Ha(){return{}}function QN(e,t){var a,n,r;let o={type:"array"};return(a=e.type)!=null&&a._def&&((r=(n=e.type)==null?void 0:n._def)==null?void 0:r.typeName)!==W.ZodAny&&(o.items=He(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function e3(e){let t={type:"integer",format:"int64"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function t3(){return{type:"boolean"}}function _$(e,t){return He(e.type._def,t)}var a3=(e,t)=>He(e.innerType._def,t);function k$(e,t,a){let n=a??t.dateStrategy;if(Array.isArray(n))return{anyOf:n.map((r,o)=>k$(e,t,r))};switch(n){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return r3(e)}}var r3=e=>{let t={type:"integer",format:"unix-time"};for(let a of e.checks)switch(a.kind){case"min":t.minimum=a.value;break;case"max":t.maximum=a.value;break}return t};function n3(e,t){return{...He(e.innerType._def,t),default:e.defaultValue()}}function o3(e,t){return t.effectStrategy==="input"?He(e.schema._def,t):Ha()}function i3(e){return{type:"string",enum:Array.from(e.values)}}var l3=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function s3(e,t){let a=[He(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),He(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(r=>!!r),n=[];return a.forEach(r=>{if(l3(r))n.push(...r.allOf);else{let o=r;if("additionalProperties"in r&&r.additionalProperties===!1){let{additionalProperties:i,...l}=r;o=l}n.push(o)}}),n.length?{allOf:n}:void 0}function u3(e){let t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var CI=void 0,_r={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(CI===void 0&&(CI=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),CI),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?: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])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function C$(e,t){let a={type:"string"};if(e.checks)for(let n of e.checks)switch(n.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"email":switch(t.emailStrategy){case"format:email":kr(a,"email",n.message,t);break;case"format:idn-email":kr(a,"idn-email",n.message,t);break;case"pattern:zod":ha(a,_r.email,n.message,t);break}break;case"url":kr(a,"uri",n.message,t);break;case"uuid":kr(a,"uuid",n.message,t);break;case"regex":ha(a,n.regex,n.message,t);break;case"cuid":ha(a,_r.cuid,n.message,t);break;case"cuid2":ha(a,_r.cuid2,n.message,t);break;case"startsWith":ha(a,RegExp(`^${LI(n.value,t)}`),n.message,t);break;case"endsWith":ha(a,RegExp(`${LI(n.value,t)}$`),n.message,t);break;case"datetime":kr(a,"date-time",n.message,t);break;case"date":kr(a,"date",n.message,t);break;case"time":kr(a,"time",n.message,t);break;case"duration":kr(a,"duration",n.message,t);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,n.value):n.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,n.value):n.value;break;case"includes":{ha(a,RegExp(LI(n.value,t)),n.message,t);break}case"ip":{n.version!=="v6"&&kr(a,"ipv4",n.message,t),n.version!=="v4"&&kr(a,"ipv6",n.message,t);break}case"base64url":ha(a,_r.base64url,n.message,t);break;case"jwt":ha(a,_r.jwt,n.message,t);break;case"cidr":{n.version!=="v6"&&ha(a,_r.ipv4Cidr,n.message,t),n.version!=="v4"&&ha(a,_r.ipv6Cidr,n.message,t);break}case"emoji":ha(a,_r.emoji(),n.message,t);break;case"ulid":{ha(a,_r.ulid,n.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{kr(a,"binary",n.message,t);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{ha(a,_r.base64,n.message,t);break}}break}case"nanoid":ha(a,_r.nanoid,n.message,t);case"toLowerCase":case"toUpperCase":case"trim":break;default:}return a}function LI(e,t){return t.patternStrategy==="escape"?d3(e):e}var c3=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function d3(e){let t="";for(let a=0;a<e.length;a++)c3.has(e[a])||(t+="\\"),t+=e[a];return t}function kr(e,t,a,n){var r;e.format||(r=e.anyOf)!=null&&r.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...a&&n.errorMessages&&{errorMessage:{format:a}}})):e.format=t}function ha(e,t,a,n){var r;e.pattern||(r=e.allOf)!=null&&r.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:v$(t,n),...a&&n.errorMessages&&{errorMessage:{pattern:a}}})):e.pattern=v$(t,n)}function v$(e,t){var a;if(!t.applyRegexFlags||!e.flags)return e.source;let n={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},r=n.i?e.source.toLowerCase():e.source,o="",i=!1,l=!1,s=!1;for(let u=0;u<r.length;u++){if(i){o+=r[u],i=!1;continue}if(n.i){if(l){if(r[u].match(/[a-z]/)){s?(o+=r[u],o+=`${r[u-2]}-${r[u]}`.toUpperCase(),s=!1):r[u+1]==="-"&&((a=r[u+2])!=null&&a.match(/[a-z]/))?(o+=r[u],s=!0):o+=`${r[u]}${r[u].toUpperCase()}`;continue}}else if(r[u].match(/[a-z]/)){o+=`[${r[u]}${r[u].toUpperCase()}]`;continue}}if(n.m){if(r[u]==="^"){o+=`(^|(?<=[\r
|
|
63
|
-
]))`;continue}else if(r[u]==="$"){o+=`($|(?=[\r
|
|
64
|
-
]))`;continue}}if(n.s&&r[u]==="."){o+=l?`${r[u]}\r
|
|
65
|
-
`:`[${r[u]}\r
|
|
66
|
-
]`;continue}o+=r[u],r[u]==="\\"?i=!0:l&&r[u]==="]"?l=!1:!l&&r[u]==="["&&(l=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function L$(e,t){var a,n,r,o,i,l;let s={type:"object",additionalProperties:(a=He(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?a:t.allowedAdditionalProperties};if(((n=e.keyType)==null?void 0:n._def.typeName)===W.ZodString&&((r=e.keyType._def.checks)!=null&&r.length)){let{type:u,...c}=C$(e.keyType._def,t);return{...s,propertyNames:c}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===W.ZodEnum)return{...s,propertyNames:{enum:e.keyType._def.values}};if(((i=e.keyType)==null?void 0:i._def.typeName)===W.ZodBranded&&e.keyType._def.type._def.typeName===W.ZodString&&((l=e.keyType._def.type._def.checks)!=null&&l.length)){let{type:u,...c}=_$(e.keyType._def,t);return{...s,propertyNames:c}}}return s}function f3(e,t){if(t.mapStrategy==="record")return L$(e,t);let a=He(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Ha(),n=He(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Ha();return{type:"array",maxItems:125,items:{type:"array",items:[a,n],minItems:2,maxItems:2}}}function p3(e){let t=e.values,n=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),r=Array.from(new Set(n.map(o=>typeof o)));return{type:r.length===1?r[0]==="string"?"string":"number":["string","number"],enum:n}}function m3(){return{not:Ha()}}function h3(){return{type:"null"}}var AI={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function g3(e,t){let a=e.options instanceof Map?Array.from(e.options.values()):e.options;if(a.every(n=>n._def.typeName in AI&&(!n._def.checks||!n._def.checks.length))){let n=a.reduce((r,o)=>{let i=AI[o._def.typeName];return i&&!r.includes(i)?[...r,i]:r},[]);return{type:n.length>1?n:n[0]}}else if(a.every(n=>n._def.typeName==="ZodLiteral"&&!n.description)){let n=a.reduce((r,o)=>{let i=typeof o._def.value;switch(i){case"string":case"number":case"boolean":return[...r,i];case"bigint":return[...r,"integer"];case"object":if(o._def.value===null)return[...r,"null"];default:return r}},[]);if(n.length===a.length){let r=n.filter((o,i,l)=>l.indexOf(o)===i);return{type:r.length>1?r:r[0],enum:a.reduce((o,i)=>o.includes(i._def.value)?o:[...o,i._def.value],[])}}}else if(a.every(n=>n._def.typeName==="ZodEnum"))return{type:"string",enum:a.reduce((n,r)=>[...n,...r._def.values.filter(o=>!n.includes(o))],[])};return v3(e,t)}var v3=(e,t)=>{let a=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((n,r)=>He(n._def,{...t,currentPath:[...t.currentPath,"anyOf",`${r}`]})).filter(n=>!!n&&(!t.strictUnions||typeof n=="object"&&Object.keys(n).length>0));return a.length?{anyOf:a}:void 0};function y3(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[AI[e.innerType._def.typeName],"null"]};let a=He(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return a&&{anyOf:[a,{type:"null"}]}}function x3(e){let t={type:"number"};if(!e.checks)return t;for(let a of e.checks)switch(a.kind){case"int":t.type="integer";break;case"min":a.inclusive?t.minimum=a.value:t.exclusiveMinimum=a.value;break;case"max":a.inclusive?t.maximum=a.value:t.exclusiveMaximum=a.value;break;case"multipleOf":t.multipleOf=a.value;break}return t}function b3(e,t){let a={type:"object",properties:{}},n=[],r=e.shape();for(let i in r){let l=r[i];if(l===void 0||l._def===void 0)continue;let s=w3(l),u=He(l._def,{...t,currentPath:[...t.currentPath,"properties",i],propertyPath:[...t.currentPath,"properties",i]});u!==void 0&&(a.properties[i]=u,s||n.push(i))}n.length&&(a.required=n);let o=S3(e,t);return o!==void 0&&(a.additionalProperties=o),a}function S3(e,t){if(e.catchall._def.typeName!=="ZodNever")return He(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function w3(e){try{return e.isOptional()}catch{return!0}}var I3=(e,t)=>{var a;if(t.currentPath.toString()===((a=t.propertyPath)==null?void 0:a.toString()))return He(e.innerType._def,t);let n=He(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return n?{anyOf:[{not:Ha()},n]}:Ha()},_3=(e,t)=>{if(t.pipeStrategy==="input")return He(e.in._def,t);if(t.pipeStrategy==="output")return He(e.out._def,t);let a=He(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),n=He(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",a?"1":"0"]});return{allOf:[a,n].filter(r=>r!==void 0)}};function k3(e,t){return He(e.type._def,t)}function C3(e,t){let n={type:"array",uniqueItems:!0,items:He(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(n.minItems=e.minSize.value),e.maxSize&&(n.maxItems=e.maxSize.value),n}function L3(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((a,n)=>He(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[]),additionalItems:He(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((a,n)=>He(a._def,{...t,currentPath:[...t.currentPath,"items",`${n}`]})).reduce((a,n)=>n===void 0?a:[...a,n],[])}}function T3(){return{not:Ha()}}function A3(){return Ha()}var E3=(e,t)=>He(e.innerType._def,t),$3=(e,t,a)=>{switch(t){case W.ZodString:return C$(e,a);case W.ZodNumber:return x3(e);case W.ZodObject:return b3(e,a);case W.ZodBigInt:return e3(e);case W.ZodBoolean:return t3();case W.ZodDate:return k$(e,a);case W.ZodUndefined:return T3();case W.ZodNull:return h3();case W.ZodArray:return QN(e,a);case W.ZodUnion:case W.ZodDiscriminatedUnion:return g3(e,a);case W.ZodIntersection:return s3(e,a);case W.ZodTuple:return L3(e,a);case W.ZodRecord:return L$(e,a);case W.ZodLiteral:return u3(e);case W.ZodEnum:return i3(e);case W.ZodNativeEnum:return p3(e);case W.ZodNullable:return y3(e,a);case W.ZodOptional:return I3(e,a);case W.ZodMap:return f3(e,a);case W.ZodSet:return C3(e,a);case W.ZodLazy:return()=>e.getter()._def;case W.ZodPromise:return k3(e,a);case W.ZodNaN:case W.ZodNever:return m3();case W.ZodEffects:return o3(e,a);case W.ZodAny:return Ha();case W.ZodUnknown:return A3();case W.ZodDefault:return n3(e,a);case W.ZodBranded:return _$(e,a);case W.ZodReadonly:return E3(e,a);case W.ZodCatch:return a3(e,a);case W.ZodPipeline:return _3(e,a);case W.ZodFunction:case W.ZodVoid:case W.ZodSymbol:return;default:return(n=>{})(t)}},M3=(e,t)=>{let a=0;for(;a<e.length&&a<t.length&&e[a]===t[a];a++);return[(e.length-a).toString(),...t.slice(a)].join("/")};function He(e,t,a=!1){var n;let r=t.seen.get(e);if(t.override){let s=(n=t.override)==null?void 0:n.call(t,e,t,r,a);if(s!==KN)return s}if(r&&!a){let s=z3(r,t);if(s!==void 0)return s}let o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);let i=$3(e,e.typeName,t),l=typeof i=="function"?He(i(),t):i;if(l&&D3(e,t,l),t.postProcess){let s=t.postProcess(l,e,t);return o.jsonSchema=l,s}return o.jsonSchema=l,l}var z3=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:M3(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((a,n)=>t.currentPath[n]===a)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),Ha()):t.$refStrategy==="seen"?Ha():void 0}},D3=(e,t,a)=>(e.description&&(a.description=e.description),a),O3=e=>{let t=YN(e),a=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:a,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([n,r])=>[r._def,{def:r._def,path:[...t.basePath,t.definitionPath,n],jsonSchema:void 0}]))}},R3=(e,t)=>{var a;let n=O3(t),r=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[c,d])=>{var f;return{...u,[c]:(f=He(d._def,{...n,currentPath:[...n.basePath,n.definitionPath,c]},!0))!=null?f:Ha()}},{}):void 0,o=typeof t=="string"?t:t?.nameStrategy==="title"?void 0:t?.name,i=(a=He(e._def,o===void 0?n:{...n,currentPath:[...n.basePath,n.definitionPath,o]},!1))!=null?a:Ha(),l=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;l!==void 0&&(i.title=l);let s=o===void 0?r?{...i,[n.definitionPath]:r}:i:{$ref:[...n.$refStrategy==="relative"?[]:n.basePath,n.definitionPath,o].join("/"),[n.definitionPath]:{...r,[o]:i}};return s.$schema="http://json-schema.org/draft-07/schema#",s},EI=Symbol.for("vercel.ai.schema");function Um(e){let t;return()=>(t==null&&(t=e()),t)}function bs(e,{validate:t}={}){return{[EI]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function P3(e){return typeof e=="object"&&e!==null&&EI in e&&e[EI]===!0&&"jsonSchema"in e&&"validate"in e}function Ss(e){return e==null?bs({properties:{},additionalProperties:!1}):P3(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?Rc(e):U3(e):e()}function U3(e){return bs(()=>MI(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{let a=await e["~standard"].validate(t);return"value"in a?{success:!0,value:a.value}:{success:!1,error:new Rr({value:t,cause:a.issues})}}})}function N3(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return bs(()=>R3(e,{$refStrategy:n?"root":"none"}),{validate:async r=>{let o=await e.safeParseAsync(r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function j3(e,t){var a;let n=(a=t?.useReferences)!=null?a:!1;return bs(()=>MI(Yl(e,{target:"draft-7",io:"input",reused:n?"ref":"inline"})),{validate:async r=>{let o=await dc(e,r);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function B3(e){return"_zod"in e}function Rc(e,t){return B3(e)?j3(e,t):N3(e,t)}async function Nm({value:e,schema:t,context:a}){let n=await ws({value:e,schema:t,context:a});if(!n.success)throw Rr.wrap({value:e,cause:n.error,context:a});return n.value}async function ws({value:e,schema:t,context:a}){let n=Ss(t);try{if(n.validate==null)return{success:!0,value:e,rawValue:e};let r=await n.validate(e);return r.success?{success:!0,value:r.value,rawValue:e}:{success:!1,error:Rr.wrap({value:e,cause:r.error,context:a}),rawValue:e}}catch(r){return{success:!1,error:Rr.wrap({value:e,cause:r,context:a}),rawValue:e}}}async function Cn({text:e,schema:t}){try{let a=XN(e);return t==null?{success:!0,value:a,rawValue:a}:await ws({value:a,schema:t})}catch(a){return{success:!1,error:by.isInstance(a)?a:new by({text:e,cause:a}),rawValue:void 0}}}function T$({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new Pm).pipeThrough(new TransformStream({async transform({data:a},n){a!=="[DONE]"&&n.enqueue(await Cn({text:a,schema:t}))}}))}async function Fr(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}async function F3(e,t){let n=await Ss(e).jsonSchema,r={...n,properties:{...n.properties,widgetType:{type:"string",const:t}},required:[...n.required||[],"widgetType"]};if(!r.properties||Object.keys(r.properties).length<=1)throw new Error(`Invalid schema for widget "${t}". Expected a schema with properties, but got: ${JSON.stringify(r)}. Make sure you're passing a valid schema (JSON Schema, zod v3, or zod v4).`);return r}async function jm({api:e,threadId:t,widgets:a,onAuthError:n}){let r=await Promise.all(a.map(async({widgetType:u,schema:c,enrich:d})=>{let f=await F3(c,u);return{widgetType:u,schema:f,enrich:d}})),{baseUrl:o,headers:i={}}=e,l=u=>fetch(`${o}/api/chat/widgets`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${u}`,"thread-id":t,...i},body:JSON.stringify({widgetSchemas:r})}),s=await l(e.token);if(s.status===401&&n){let u=await n();u&&(s=await l(u))}if(!s.ok){let u=await s.text().catch(()=>s.statusText);throw new Error(`Failed to register chat widgets: ${s.status} ${u}`)}}var Fm=pe(Ct());var A$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q3=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,n)=>n?n.toUpperCase():a.toLowerCase()),zI=e=>{let t=q3(e);return t.charAt(0).toUpperCase()+t.slice(1)},Bm=(...e)=>e.filter((t,a,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===a).join(" ").trim(),E$=e=>{for(let t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Pc=pe(Ct());var $$={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var M$=(0,Pc.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:n,className:r="",children:o,iconNode:i,...l},s)=>(0,Pc.createElement)("svg",{ref:s,...$$,width:t,height:t,stroke:e,strokeWidth:n?Number(a)*24/Number(t):a,className:Bm("lucide",r),...!o&&!E$(l)&&{"aria-hidden":"true"},...l},[...i.map(([u,c])=>(0,Pc.createElement)(u,c)),...Array.isArray(o)?o:[o]]));var Rt=(e,t)=>{let a=(0,Fm.forwardRef)(({className:n,...r},o)=>(0,Fm.createElement)(M$,{ref:o,iconNode:t,className:Bm(`lucide-${A$(zI(e))}`,`lucide-${e}`,n),...r}));return a.displayName=zI(e),a};var Z3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Uc=Rt("chevron-right",Z3);var H3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",key:"1ssd4o"}]],Io=Rt("circle-stop",H3);var V3=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],gi=Rt("message-square-text",V3);var G3=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ln=Rt("message-square",G3);var W3=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],Nc=Rt("mic-off",W3);var J3=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],jc=Rt("mic",J3);var X3=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Bc=Rt("send",X3);var K3=[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]],vi=Rt("thumbs-up",K3);var Y3=[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]],yi=Rt("thumbs-down",Y3);var Q3=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Fc=Rt("x",Q3);var Ue=pe(Ct(),1);var dr=pe(Ct(),1);var qr=v;var tj=Object.defineProperty,aj=(e,t)=>{for(var a in t)tj(e,a,{get:t[a],enumerable:!0})},rj="AI_InvalidArgumentError",nj=`vercel.ai.error.${rj}`,oj=Symbol.for(nj),ij;ij=oj;var lj="AI_InvalidStreamPartError",sj=`vercel.ai.error.${lj}`,uj=Symbol.for(sj),cj;cj=uj;var dj="AI_InvalidToolApprovalError",fj=`vercel.ai.error.${dj}`,pj=Symbol.for(fj),mj;mj=pj;var hj="AI_InvalidToolInputError",gj=`vercel.ai.error.${hj}`,vj=Symbol.for(gj),yj;yj=vj;var xj="AI_ToolCallNotFoundForApprovalError",bj=`vercel.ai.error.${xj}`,Sj=Symbol.for(bj),wj;wj=Sj;var Ij="AI_MissingToolResultsError",_j=`vercel.ai.error.${Ij}`,kj=Symbol.for(_j),Cj;Cj=kj;var Lj="AI_NoImageGeneratedError",Tj=`vercel.ai.error.${Lj}`,Aj=Symbol.for(Tj),Ej;Ej=Aj;var D$="AI_NoObjectGeneratedError",O$=`vercel.ai.error.${D$}`,$j=Symbol.for(O$),R$,_o=class extends Pe{constructor({message:e="No object generated.",cause:t,text:a,response:n,usage:r,finishReason:o}){super({name:D$,message:e,cause:t}),this[R$]=!0,this.text=a,this.response=n,this.usage=r,this.finishReason=o}static isInstance(e){return Pe.hasMarker(e,O$)}};R$=$j;var Mj="AI_NoOutputGeneratedError",zj=`vercel.ai.error.${Mj}`,Dj=Symbol.for(zj),Oj;Oj=Dj;var Rj="AI_NoSpeechGeneratedError",Pj=`vercel.ai.error.${Rj}`,Uj=Symbol.for(Pj),Nj;Nj=Uj;var jj="AI_NoTranscriptGeneratedError",Bj=`vercel.ai.error.${jj}`,Fj=Symbol.for(Bj),qj;qj=Fj;var Zj="AI_NoVideoGeneratedError",Hj=`vercel.ai.error.${Zj}`,Vj=Symbol.for(Hj),Gj;Gj=Vj;var Wj="AI_NoSuchToolError",Jj=`vercel.ai.error.${Wj}`,Xj=Symbol.for(Jj),Kj;Kj=Xj;var Yj="AI_ToolCallRepairError",Qj=`vercel.ai.error.${Yj}`,eB=Symbol.for(Qj),tB;tB=eB;var P$="AI_UIMessageStreamError",U$=`vercel.ai.error.${P$}`,aB=Symbol.for(U$),N$,Is=class extends Pe{constructor({chunkType:e,chunkId:t,message:a}){super({name:P$,message:a}),this[N$]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return Pe.hasMarker(e,U$)}};N$=aB;var rB="AI_InvalidDataContentError",nB=`vercel.ai.error.${rB}`,oB=Symbol.for(nB),iB;iB=oB;var lB="AI_InvalidMessageRoleError",sB=`vercel.ai.error.${lB}`,uB=Symbol.for(sB),cB;cB=uB;var dB="AI_MessageConversionError",fB=`vercel.ai.error.${dB}`,pB=Symbol.for(fB),mB;mB=pB;var hB="AI_RetryError",gB=`vercel.ai.error.${hB}`,vB=Symbol.for(gB),yB;yB=vB;var DI="6.0.116",xB=async({url:e,maxBytes:t,abortSignal:a})=>{var n;let r=e.toString();S$(r);try{let o=await fetch(r,{headers:hi({},`ai-sdk/${DI}`,Oc()),signal:a});if(!o.ok)throw new ur({url:r,statusCode:o.status,statusText:o.statusText});return{data:await b$({response:o,url:r,maxBytes:t??$I}),mediaType:(n=o.headers.get("content-type"))!=null?n:void 0}}catch(o){throw ur.isInstance(o)?o:new ur({url:r,cause:o})}};var j$=v.union([v.string(),v.instanceof(Uint8Array),v.instanceof(ArrayBuffer),v.custom(e=>{var t,a;return(a=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?a:!1},{message:"Must be a Buffer"})]);var qc=v.lazy(()=>v.union([v.null(),v.string(),v.number(),v.boolean(),v.record(v.string(),qc.optional()),v.array(qc)])),le=v.record(v.string(),v.record(v.string(),qc.optional())),B$=v.object({type:v.literal("text"),text:v.string(),providerOptions:le.optional()}),bB=v.object({type:v.literal("image"),image:v.union([j$,v.instanceof(URL)]),mediaType:v.string().optional(),providerOptions:le.optional()}),F$=v.object({type:v.literal("file"),data:v.union([j$,v.instanceof(URL)]),filename:v.string().optional(),mediaType:v.string(),providerOptions:le.optional()}),SB=v.object({type:v.literal("reasoning"),text:v.string(),providerOptions:le.optional()}),wB=v.object({type:v.literal("tool-call"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerOptions:le.optional(),providerExecuted:v.boolean().optional()}),IB=v.discriminatedUnion("type",[v.object({type:v.literal("text"),value:v.string(),providerOptions:le.optional()}),v.object({type:v.literal("json"),value:qc,providerOptions:le.optional()}),v.object({type:v.literal("execution-denied"),reason:v.string().optional(),providerOptions:le.optional()}),v.object({type:v.literal("error-text"),value:v.string(),providerOptions:le.optional()}),v.object({type:v.literal("error-json"),value:qc,providerOptions:le.optional()}),v.object({type:v.literal("content"),value:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),providerOptions:le.optional()}),v.object({type:v.literal("media"),data:v.string(),mediaType:v.string()}),v.object({type:v.literal("file-data"),data:v.string(),mediaType:v.string(),filename:v.string().optional(),providerOptions:le.optional()}),v.object({type:v.literal("file-url"),url:v.string(),providerOptions:le.optional()}),v.object({type:v.literal("file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:le.optional()}),v.object({type:v.literal("image-data"),data:v.string(),mediaType:v.string(),providerOptions:le.optional()}),v.object({type:v.literal("image-url"),url:v.string(),providerOptions:le.optional()}),v.object({type:v.literal("image-file-id"),fileId:v.union([v.string(),v.record(v.string(),v.string())]),providerOptions:le.optional()}),v.object({type:v.literal("custom"),providerOptions:le.optional()})]))})]),q$=v.object({type:v.literal("tool-result"),toolCallId:v.string(),toolName:v.string(),output:IB,providerOptions:le.optional()}),_B=v.object({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),kB=v.object({type:v.literal("tool-approval-response"),approvalId:v.string(),approved:v.boolean(),reason:v.string().optional()}),CB=v.object({role:v.literal("system"),content:v.string(),providerOptions:le.optional()}),LB=v.object({role:v.literal("user"),content:v.union([v.string(),v.array(v.union([B$,bB,F$]))]),providerOptions:le.optional()}),TB=v.object({role:v.literal("assistant"),content:v.union([v.string(),v.array(v.union([B$,F$,SB,wB,q$,_B]))]),providerOptions:le.optional()}),AB=v.object({role:v.literal("tool"),content:v.array(v.union([q$,kB])),providerOptions:le.optional()}),fJ=v.union([CB,LB,TB,AB]);function Z$(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;let a={...e};for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n];if(r===void 0)continue;let o=n in e?e[n]:void 0,i=r!==null&&typeof r=="object"&&!Array.isArray(r)&&!(r instanceof Date)&&!(r instanceof RegExp),l=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);i&&l?a[n]=Z$(o,r):a[n]=r}return a}var EB={};aj(EB,{array:()=>DB,choice:()=>OB,json:()=>RB,object:()=>zB,text:()=>MB});function $B(e){let t=["ROOT"],a=-1,n=null;function r(s,u,c){switch(s){case'"':{a=u,t.pop(),t.push(c),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{a=u,n=u,t.pop(),t.push(c),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=u,t.pop(),t.push(c),t.push("INSIDE_NUMBER");break}case"{":{a=u,t.pop(),t.push(c),t.push("INSIDE_OBJECT_START");break}case"[":{a=u,t.pop(),t.push(c),t.push("INSIDE_ARRAY_START");break}}}function o(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{a=u,t.pop();break}}}function i(s,u){switch(s){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=u,t.pop();break}}}for(let s=0;s<e.length;s++){let u=e[s];switch(t[t.length-1]){case"ROOT":r(u,s,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{a=s,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_KEY"));break}case"INSIDE_OBJECT_KEY":{u==='"'&&(t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY"));break}case"INSIDE_OBJECT_AFTER_KEY":{u===":"&&(t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE"));break}case"INSIDE_OBJECT_BEFORE_VALUE":{r(u,s,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,s);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),a=s;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:a=s}break}case"INSIDE_ARRAY_START":{u==="]"?(a=s,t.pop()):(a=s,r(u,s,"INSIDE_ARRAY_AFTER_VALUE"));break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{a=s,t.pop();break}default:{a=s;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{r(u,s,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),a=s;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{a=s;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,s);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{let d=e.substring(n,s+1);!"false".startsWith(d)&&!"true".startsWith(d)&&!"null".startsWith(d)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,s):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&i(u,s)):a=s;break}}}let l=e.slice(0,a+1);for(let s=t.length-1;s>=0;s--)switch(t[s]){case"INSIDE_STRING":{l+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{l+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{l+="]";break}case"INSIDE_LITERAL":{let c=e.substring(n,e.length);"true".startsWith(c)?l+="true".slice(c.length):"false".startsWith(c)?l+="false".slice(c.length):"null".startsWith(c)&&(l+="null".slice(c.length))}}return l}async function Zc(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Cn({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Cn({text:$B(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var MB=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),zB=({schema:e,name:t,description:a})=>{let n=Ss(e);return{name:"object",responseFormat:Fr(n.jsonSchema).then(r=>({type:"json",schema:r,...t!=null&&{name:t},...a!=null&&{description:a}})),async parseCompleteOutput({text:r},o){let i=await Cn({text:r});if(!i.success)throw new _o({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=await ws({value:i.value,schema:n});if(!l.success)throw new _o({message:"No object generated: response did not match schema.",cause:l.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});return l.value},async parsePartialOutput({text:r}){let o=await Zc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},DB=({element:e,name:t,description:a})=>{let n=Ss(e);return{name:"array",responseFormat:Fr(n.jsonSchema).then(r=>{let{$schema:o,...i}=r;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:i}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}}),async parseCompleteOutput({text:r},o){let i=await Cn({text:r});if(!i.success)throw new _o({message:"No object generated: could not parse the response.",cause:i.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});let l=i.value;if(l==null||typeof l!="object"||!("elements"in l)||!Array.isArray(l.elements))throw new _o({message:"No object generated: response did not match schema.",cause:new Rr({value:l,cause:"response must be an object with an elements array"}),text:r,response:o.response,usage:o.usage,finishReason:o.finishReason});for(let s of l.elements){let u=await ws({value:s,schema:n});if(!u.success)throw new _o({message:"No object generated: response did not match schema.",cause:u.error,text:r,response:o.response,usage:o.usage,finishReason:o.finishReason})}return l.elements},async parsePartialOutput({text:r}){let o=await Zc(r);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let i=o.value;if(i==null||typeof i!="object"||!("elements"in i)||!Array.isArray(i.elements))return;let l=o.state==="repaired-parse"&&i.elements.length>0?i.elements.slice(0,-1):i.elements,s=[];for(let u of l){let c=await ws({value:u,schema:n});c.success&&s.push(c.value)}return{partial:s}}}},createElementStreamTransform(){let r=0;return new TransformStream({transform({partialOutput:o},i){if(o!=null)for(;r<o.length;r++)i.enqueue(o[r])}})}}},OB=({options:e,name:t,description:a})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...a!=null&&{description:a}}),async parseCompleteOutput({text:n},r){let o=await Cn({text:n});if(!o.success)throw new _o({message:"No object generated: could not parse the response.",cause:o.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});let i=o.value;if(i==null||typeof i!="object"||!("result"in i)||typeof i.result!="string"||!e.includes(i.result))throw new _o({message:"No object generated: response did not match schema.",cause:new Rr({value:i,cause:"response must be an object that contains a choice value."}),text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.result},async parsePartialOutput({text:n}){let r=await Zc(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{let o=r.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;let i=e.filter(l=>l.startsWith(o.result));return r.state==="successful-parse"?i.includes(o.result)?{partial:o.result}:void 0:i.length===1?{partial:i[0]}:void 0}}},createElementStreamTransform(){}}),RB=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:a},n){let r=await Cn({text:a});if(!r.success)throw new _o({message:"No object generated: could not parse the response.",cause:r.error,text:a,response:n.response,usage:n.usage,finishReason:n.finishReason});return r.value},async parsePartialOutput({text:a}){let n=await Zc(a);switch(n.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return n.value===void 0?void 0:{partial:n.value}}},createElementStreamTransform(){}});var gJ=kn({prefix:"aitxt",size:24});var yJ=class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)}
|
|
67
|
-
|
|
68
|
-
`)},flush(e){e.enqueue(`data: [DONE]
|
|
69
|
-
|
|
70
|
-
`)}})}};var PB=Um(()=>Rc(v.union([v.strictObject({type:v.literal("text-start"),id:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("text-delta"),id:v.string(),delta:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("text-end"),id:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("error"),errorText:v.string()}),v.strictObject({type:v.literal("tool-input-start"),toolCallId:v.string(),toolName:v.string(),providerExecuted:v.boolean().optional(),providerMetadata:le.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-delta"),toolCallId:v.string(),inputTextDelta:v.string()}),v.strictObject({type:v.literal("tool-input-available"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:le.optional(),dynamic:v.boolean().optional(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-input-error"),toolCallId:v.string(),toolName:v.string(),input:v.unknown(),providerExecuted:v.boolean().optional(),providerMetadata:le.optional(),dynamic:v.boolean().optional(),errorText:v.string(),title:v.string().optional()}),v.strictObject({type:v.literal("tool-approval-request"),approvalId:v.string(),toolCallId:v.string()}),v.strictObject({type:v.literal("tool-output-available"),toolCallId:v.string(),output:v.unknown(),providerExecuted:v.boolean().optional(),dynamic:v.boolean().optional(),preliminary:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-error"),toolCallId:v.string(),errorText:v.string(),providerExecuted:v.boolean().optional(),dynamic:v.boolean().optional()}),v.strictObject({type:v.literal("tool-output-denied"),toolCallId:v.string()}),v.strictObject({type:v.literal("reasoning-start"),id:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("reasoning-delta"),id:v.string(),delta:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("reasoning-end"),id:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:le.optional()}),v.strictObject({type:v.literal("file"),url:v.string(),mediaType:v.string(),providerMetadata:le.optional()}),v.strictObject({type:v.custom(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:v.string().optional(),data:v.unknown(),transient:v.boolean().optional()}),v.strictObject({type:v.literal("start-step")}),v.strictObject({type:v.literal("finish-step")}),v.strictObject({type:v.literal("start"),messageId:v.string().optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("finish"),finishReason:v.enum(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:v.unknown().optional()}),v.strictObject({type:v.literal("abort"),reason:v.string().optional()}),v.strictObject({type:v.literal("message-metadata"),messageMetadata:v.unknown()})])));function UB(e){return e.type.startsWith("data-")}function OI(e){return e.type.startsWith("tool-")}function NB(e){return e.type==="dynamic-tool"}function qm(e){return OI(e)||NB(e)}function z$(e){return e.type.split("-").slice(1).join("-")}function jB({lastMessage:e,messageId:t}){return{message:e?.role==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}function BB({stream:e,messageMetadataSchema:t,dataPartSchemas:a,runUpdateMessageJob:n,onError:r,onToolCall:o,onData:i}){return e.pipeThrough(new TransformStream({async transform(l,s){await n(async({state:u,write:c})=>{var d,f,p,m;function S(g){let L=u.message.parts.filter(qm).find(x=>x.toolCallId===g);if(L==null)throw new Is({chunkType:"tool-invocation",chunkId:g,message:`No tool invocation found for tool call ID "${g}".`});return L}function C(g){var b;let L=u.message.parts.find(I=>OI(I)&&I.toolCallId===g.toolCallId),x=g,w=L;L!=null?(L.state=g.state,w.input=x.input,w.output=x.output,w.errorText=x.errorText,w.rawInput=x.rawInput,w.preliminary=x.preliminary,g.title!==void 0&&(w.title=g.title),w.providerExecuted=(b=x.providerExecuted)!=null?b:L.providerExecuted,x.providerMetadata!=null&&(L.callProviderMetadata=x.providerMetadata)):u.message.parts.push({type:`tool-${g.toolName}`,toolCallId:g.toolCallId,state:g.state,title:g.title,input:x.input,output:x.output,rawInput:x.rawInput,errorText:x.errorText,providerExecuted:x.providerExecuted,preliminary:x.preliminary,...x.providerMetadata!=null?{callProviderMetadata:x.providerMetadata}:{}})}function h(g){var b,L;let x=u.message.parts.find(E=>E.type==="dynamic-tool"&&E.toolCallId===g.toolCallId),w=g,I=x;x!=null?(x.state=g.state,I.toolName=g.toolName,I.input=w.input,I.output=w.output,I.errorText=w.errorText,I.rawInput=(b=w.rawInput)!=null?b:I.rawInput,I.preliminary=w.preliminary,g.title!==void 0&&(I.title=g.title),I.providerExecuted=(L=w.providerExecuted)!=null?L:x.providerExecuted,w.providerMetadata!=null&&(x.callProviderMetadata=w.providerMetadata)):u.message.parts.push({type:"dynamic-tool",toolName:g.toolName,toolCallId:g.toolCallId,state:g.state,input:w.input,output:w.output,errorText:w.errorText,preliminary:w.preliminary,providerExecuted:w.providerExecuted,title:g.title,...w.providerMetadata!=null?{callProviderMetadata:w.providerMetadata}:{}})}async function y(g){if(g!=null){let b=u.message.metadata!=null?Z$(u.message.metadata,g):g;t!=null&&await Nm({value:b,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=b}}switch(l.type){case"text-start":{let g={type:"text",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeTextParts[l.id]=g,u.message.parts.push(g),c();break}case"text-delta":{let g=u.activeTextParts[l.id];if(g==null)throw new Is({chunkType:"text-delta",chunkId:l.id,message:`Received text-delta for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});g.text+=l.delta,g.providerMetadata=(d=l.providerMetadata)!=null?d:g.providerMetadata,c();break}case"text-end":{let g=u.activeTextParts[l.id];if(g==null)throw new Is({chunkType:"text-end",chunkId:l.id,message:`Received text-end for missing text part with ID "${l.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});g.state="done",g.providerMetadata=(f=l.providerMetadata)!=null?f:g.providerMetadata,delete u.activeTextParts[l.id],c();break}case"reasoning-start":{let g={type:"reasoning",text:"",providerMetadata:l.providerMetadata,state:"streaming"};u.activeReasoningParts[l.id]=g,u.message.parts.push(g),c();break}case"reasoning-delta":{let g=u.activeReasoningParts[l.id];if(g==null)throw new Is({chunkType:"reasoning-delta",chunkId:l.id,message:`Received reasoning-delta for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});g.text+=l.delta,g.providerMetadata=(p=l.providerMetadata)!=null?p:g.providerMetadata,c();break}case"reasoning-end":{let g=u.activeReasoningParts[l.id];if(g==null)throw new Is({chunkType:"reasoning-end",chunkId:l.id,message:`Received reasoning-end for missing reasoning part with ID "${l.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});g.providerMetadata=(m=l.providerMetadata)!=null?m:g.providerMetadata,g.state="done",delete u.activeReasoningParts[l.id],c();break}case"file":{u.message.parts.push({type:"file",mediaType:l.mediaType,url:l.url,...l.providerMetadata!=null?{providerMetadata:l.providerMetadata}:{}}),c();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:l.sourceId,url:l.url,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:l.sourceId,mediaType:l.mediaType,title:l.title,filename:l.filename,providerMetadata:l.providerMetadata}),c();break}case"tool-input-start":{let g=u.message.parts.filter(OI);u.partialToolCalls[l.toolCallId]={text:"",toolName:l.toolName,index:g.length,dynamic:l.dynamic,title:l.title},l.dynamic?h({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}):C({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-streaming",input:void 0,providerExecuted:l.providerExecuted,title:l.title,providerMetadata:l.providerMetadata}),c();break}case"tool-input-delta":{let g=u.partialToolCalls[l.toolCallId];if(g==null)throw new Is({chunkType:"tool-input-delta",chunkId:l.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${l.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});g.text+=l.inputTextDelta;let{value:b}=await Zc(g.text);g.dynamic?h({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:b,title:g.title}):C({toolCallId:l.toolCallId,toolName:g.toolName,state:"input-streaming",input:b,title:g.title}),c();break}case"tool-input-available":{l.dynamic?h({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}):C({toolCallId:l.toolCallId,toolName:l.toolName,state:"input-available",input:l.input,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata,title:l.title}),c(),o&&!l.providerExecuted&&await o({toolCall:l});break}case"tool-input-error":{let g=u.message.parts.filter(qm).find(L=>L.toolCallId===l.toolCallId);(g!=null?g.type==="dynamic-tool":!!l.dynamic)?h({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}):C({toolCallId:l.toolCallId,toolName:l.toolName,state:"output-error",input:void 0,rawInput:l.input,errorText:l.errorText,providerExecuted:l.providerExecuted,providerMetadata:l.providerMetadata}),c();break}case"tool-approval-request":{let g=S(l.toolCallId);g.state="approval-requested",g.approval={id:l.approvalId},c();break}case"tool-output-denied":{let g=S(l.toolCallId);g.state="output-denied",c();break}case"tool-output-available":{let g=S(l.toolCallId);g.type==="dynamic-tool"?h({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-available",input:g.input,output:l.output,preliminary:l.preliminary,providerExecuted:l.providerExecuted,title:g.title}):C({toolCallId:l.toolCallId,toolName:z$(g),state:"output-available",input:g.input,output:l.output,providerExecuted:l.providerExecuted,preliminary:l.preliminary,title:g.title}),c();break}case"tool-output-error":{let g=S(l.toolCallId);g.type==="dynamic-tool"?h({toolCallId:l.toolCallId,toolName:g.toolName,state:"output-error",input:g.input,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}):C({toolCallId:l.toolCallId,toolName:z$(g),state:"output-error",input:g.input,rawInput:g.rawInput,errorText:l.errorText,providerExecuted:l.providerExecuted,title:g.title}),c();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{l.messageId!=null&&(u.message.id=l.messageId),await y(l.messageMetadata),(l.messageId!=null||l.messageMetadata!=null)&&c();break}case"finish":{l.finishReason!=null&&(u.finishReason=l.finishReason),await y(l.messageMetadata),l.messageMetadata!=null&&c();break}case"message-metadata":{await y(l.messageMetadata),l.messageMetadata!=null&&c();break}case"error":{r?.(new Error(l.errorText));break}default:if(UB(l)){if(a?.[l.type]!=null){let L=u.message.parts.findIndex(w=>"id"in w&&"data"in w&&w.id===l.id&&w.type===l.type),x=L>=0?L:u.message.parts.length;await Nm({value:l.data,schema:a[l.type],context:{field:`message.parts[${x}].data`,entityName:l.type,entityId:l.id}})}let g=l;if(g.transient){i?.(g);break}let b=g.id!=null?u.message.parts.find(L=>g.type===L.type&&g.id===L.id):void 0;b!=null?b.data=g.data:u.message.parts.push(g),i?.(g),c()}}s.enqueue(l)})}}))}async function FB({stream:e,onError:t}){let a=e.getReader();try{for(;;){let{done:n}=await a.read();if(n)break}}catch(n){t?.(n)}finally{a.releaseLock()}}var wJ=kn({prefix:"aitxt",size:24});var kJ=Um(()=>Rc(v.array(v.object({id:v.string(),role:v.enum(["system","user","assistant"]),metadata:v.unknown().optional(),parts:v.array(v.union([v.object({type:v.literal("text"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:le.optional()}),v.object({type:v.literal("reasoning"),text:v.string(),state:v.enum(["streaming","done"]).optional(),providerMetadata:le.optional()}),v.object({type:v.literal("source-url"),sourceId:v.string(),url:v.string(),title:v.string().optional(),providerMetadata:le.optional()}),v.object({type:v.literal("source-document"),sourceId:v.string(),mediaType:v.string(),title:v.string(),filename:v.string().optional(),providerMetadata:le.optional()}),v.object({type:v.literal("file"),mediaType:v.string(),filename:v.string().optional(),url:v.string(),providerMetadata:le.optional()}),v.object({type:v.literal("step-start")}),v.object({type:v.string().startsWith("data-"),id:v.string().optional(),data:v.unknown()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("input-streaming"),input:v.unknown().optional(),providerExecuted:v.boolean().optional(),callProviderMetadata:le.optional(),output:v.never().optional(),errorText:v.never().optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("input-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.never().optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.never().optional(),reason:v.never().optional()})}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.boolean(),reason:v.string().optional()})}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("output-available"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:le.optional(),preliminary:v.boolean().optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("output-error"),input:v.unknown(),rawInput:v.unknown().optional(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.string(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.literal("dynamic-tool"),toolName:v.string(),toolCallId:v.string(),state:v.literal("output-denied"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("input-streaming"),providerExecuted:v.boolean().optional(),callProviderMetadata:le.optional(),input:v.unknown().optional(),output:v.never().optional(),errorText:v.never().optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("input-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.never().optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("approval-requested"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.never().optional(),reason:v.never().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("approval-responded"),input:v.unknown(),providerExecuted:v.boolean().optional(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.boolean(),reason:v.string().optional()})}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("output-available"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.unknown(),errorText:v.never().optional(),callProviderMetadata:le.optional(),preliminary:v.boolean().optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("output-error"),providerExecuted:v.boolean().optional(),input:v.unknown(),rawInput:v.unknown().optional(),output:v.never().optional(),errorText:v.string(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.literal(!0),reason:v.string().optional()}).optional()}),v.object({type:v.string().startsWith("tool-"),toolCallId:v.string(),state:v.literal("output-denied"),providerExecuted:v.boolean().optional(),input:v.unknown(),output:v.never().optional(),errorText:v.never().optional(),callProviderMetadata:le.optional(),approval:v.object({id:v.string(),approved:v.literal(!1),reason:v.string().optional()})})])).nonempty("Message must contain at least one part")})).nonempty("Messages array must not be empty")));var LJ=kn({prefix:"aiobj",size:24});function H$(e){return({url:t,abortSignal:a})=>xB({url:t,maxBytes:e?.maxBytes,abortSignal:a})}var qB=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,a)=>{this.queue.push(async()=>{try{await e(),t()}catch(n){a(n)}}),this.processQueue()})}};var AJ=kn({prefix:"aiobj",size:24});var EJ=H$();var ZB="AI_NoSuchProviderError",HB=`vercel.ai.error.${ZB}`,VB=Symbol.for(HB),GB;GB=VB;var $J=H$();async function WB(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{let{name:a,type:n}=t,r=await new Promise((o,i)=>{let l=new FileReader;l.onload=s=>{var u;o((u=s.target)==null?void 0:u.result)},l.onerror=s=>i(s),l.readAsDataURL(t)});return{type:"file",mediaType:n,filename:a,url:r}}))}var JB=class{constructor({api:e="/api/chat",credentials:t,headers:a,body:n,fetch:r,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:i}){this.api=e,this.credentials=t,this.headers=a,this.body=n,this.fetch=r,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=i}async sendMessages({abortSignal:e,...t}){var a,n,r,o,i;let l=await Fr(this.body),s=await Fr(this.headers),u=await Fr(this.credentials),c={...wo(s),...wo(t.headers)},d=await((a=this.prepareSendMessagesRequest)==null?void 0:a.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...l,...t.body},headers:c,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),f=(n=d?.api)!=null?n:this.api,p=d?.headers!==void 0?wo(d.headers):c,m=d?.body!==void 0?d.body:{...l,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},S=(r=d?.credentials)!=null?r:u,h=await((o=this.fetch)!=null?o:globalThis.fetch)(f,{method:"POST",headers:hi({"Content-Type":"application/json",...p},`ai-sdk/${DI}`,Oc()),body:JSON.stringify(m),credentials:S,signal:e});if(!h.ok)throw new Error((i=await h.text())!=null?i:"Failed to fetch the chat response.");if(!h.body)throw new Error("The response body is empty.");return this.processResponseStream(h.body)}async reconnectToStream(e){var t,a,n,r,o;let i=await Fr(this.body),l=await Fr(this.headers),s=await Fr(this.credentials),u={...wo(l),...wo(e.headers)},c=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...i,...e.body},headers:u,credentials:s,requestMetadata:e.metadata})),d=(a=c?.api)!=null?a:`${this.api}/${e.chatId}/stream`,f=c?.headers!==void 0?wo(c.headers):u,p=(n=c?.credentials)!=null?n:s,S=await((r=this.fetch)!=null?r:globalThis.fetch)(d,{method:"GET",headers:hi(f,`ai-sdk/${DI}`,Oc()),credentials:p});if(S.status===204)return null;if(!S.ok)throw new Error((o=await S.text())!=null?o:"Failed to fetch the chat response.");if(!S.body)throw new Error("The response body is empty.");return this.processResponseStream(S.body)}},RI=class extends JB{constructor(e={}){super(e)}processResponseStream(e){return T$({stream:e,schema:PB}).pipeThrough(new TransformStream({async transform(t,a){if(!t.success)throw t.error;a.enqueue(t.value)}}))}},V$=class{constructor({generateId:e=I$,id:t=e(),transport:a=new RI,messageMetadataSchema:n,dataPartSchemas:r,state:o,onError:i,onToolCall:l,onFinish:s,onData:u,sendAutomaticallyWhen:c}){this.activeResponse=void 0,this.jobExecutor=new qB,this.sendMessage=async(d,f)=>{var p,m,S,C;if(d==null){await this.makeRequest({trigger:"submit-message",messageId:(p=this.lastMessage)==null?void 0:p.id,...f});return}let h;if("text"in d||"files"in d?h={parts:[...Array.isArray(d.files)?d.files:await WB(d.files),..."text"in d&&d.text!=null?[{type:"text",text:d.text}]:[]]}:h=d,d.messageId!=null){let y=this.state.messages.findIndex(g=>g.id===d.messageId);if(y===-1)throw new Error(`message with id ${d.messageId} not found`);if(this.state.messages[y].role!=="user")throw new Error(`message with id ${d.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,y+1),this.state.replaceMessage(y,{...h,id:d.messageId,role:(m=h.role)!=null?m:"user",metadata:d.metadata})}else this.state.pushMessage({...h,id:(S=h.id)!=null?S:this.generateId(),role:(C=h.role)!=null?C:"user",metadata:d.metadata});await this.makeRequest({trigger:"submit-message",messageId:d.messageId,...f})},this.regenerate=async({messageId:d,...f}={})=>{let p=d==null?this.state.messages.length-1:this.state.messages.findIndex(m=>m.id===d);if(p===-1)throw new Error(`message ${d} not found`);this.state.messages=this.state.messages.slice(0,this.messages[p].role==="assistant"?p:p+1),await this.makeRequest({trigger:"regenerate-message",messageId:d,...f})},this.resumeStream=async(d={})=>{await this.makeRequest({trigger:"resume-stream",...d})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:d,approved:f,reason:p})=>this.jobExecutor.run(async()=>{let m=this.state.messages,S=m[m.length-1],C=h=>qm(h)&&h.state==="approval-requested"&&h.approval.id===d?{...h,state:"approval-responded",approval:{id:d,approved:f,reason:p}}:h;this.state.replaceMessage(m.length-1,{...S,parts:S.parts.map(C)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(C)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(h=>{var y;h&&this.makeRequest({trigger:"submit-message",messageId:(y=this.lastMessage)==null?void 0:y.id})})}),this.addToolOutput=async({state:d="output-available",tool:f,toolCallId:p,output:m,errorText:S})=>this.jobExecutor.run(async()=>{let C=this.state.messages,h=C[C.length-1],y=g=>qm(g)&&g.toolCallId===p?{...g,state:d,output:m,errorText:S}:g;this.state.replaceMessage(C.length-1,{...h,parts:h.parts.map(y)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(y)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(g=>{var b;g&&this.makeRequest({trigger:"submit-message",messageId:(b=this.lastMessage)==null?void 0:b.id})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var d;this.status!=="streaming"&&this.status!=="submitted"||(d=this.activeResponse)!=null&&d.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=a,this.generateId=e,this.messageMetadataSchema=n,this.dataPartSchemas=r,this.state=o,this.onError=i,this.onToolCall=l,this.onFinish=s,this.onData=u,this.sendAutomaticallyWhen=c}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;let e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:a,body:n,messageId:r}){var o,i,l;let s;if(e==="resume-stream")try{let p=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:a,body:n});if(p==null)return;s=p}catch(p){this.onError&&p instanceof Error&&this.onError(p),this.setStatus({status:"error",error:p});return}this.setStatus({status:"submitted",error:void 0});let u=this.lastMessage,c=!1,d=!1,f=!1;try{let p={state:jB({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};p.abortController.signal.addEventListener("abort",()=>{c=!0}),this.activeResponse=p;let m;e==="resume-stream"?m=s:m=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:p.abortController.signal,metadata:t,headers:a,body:n,trigger:e,messageId:r});let S=C=>this.jobExecutor.run(()=>C({state:p.state,write:()=>{var h;this.setStatus({status:"streaming"}),p.state.message.id===((h=this.lastMessage)==null?void 0:h.id)?this.state.replaceMessage(this.state.messages.length-1,p.state.message):this.state.pushMessage(p.state.message)}}));await FB({stream:BB({stream:m,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:S,onError:C=>{throw C}}),onError:C=>{throw C}}),this.setStatus({status:"ready"})}catch(p){if(c||p.name==="AbortError")return c=!0,this.setStatus({status:"ready"}),null;f=!0,p instanceof TypeError&&(p.message.toLowerCase().includes("fetch")||p.message.toLowerCase().includes("network"))&&(d=!0),this.onError&&p instanceof Error&&this.onError(p),this.setStatus({status:"error",error:p})}finally{try{(i=this.onFinish)==null||i.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:c,isDisconnect:d,isError:f,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(p){console.error(p)}this.activeResponse=void 0}!f&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(l=this.lastMessage)==null?void 0:l.id,metadata:t,headers:a,body:n})}};var K$=pe(W$(),1);var Wc=pe(Ct(),1);var Vm=pe(Ct(),1);var X$=(e,t,a)=>{if(!t.has(e))throw TypeError("Cannot "+a)},ut=(e,t,a)=>(X$(e,t,"read from private field"),a?a.call(e):t.get(e)),Zr=(e,t,a)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,a)},ko=(e,t,a,n)=>(X$(e,t,"write to private field"),n?n.call(e,a):t.set(e,a),a);function KB(e,t){return t!=null?(0,K$.default)(e,t):e}var cr,Zm,Hm,Hc,Vc,Gc,_s,PI,UI,YB=class{constructor(e=[]){Zr(this,cr,void 0),Zr(this,Zm,"ready"),Zr(this,Hm,void 0),Zr(this,Hc,new Set),Zr(this,Vc,new Set),Zr(this,Gc,new Set),this.pushMessage=t=>{ko(this,cr,ut(this,cr).concat(t)),ut(this,_s).call(this)},this.popMessage=()=>{ko(this,cr,ut(this,cr).slice(0,-1)),ut(this,_s).call(this)},this.replaceMessage=(t,a)=>{ko(this,cr,[...ut(this,cr).slice(0,t),this.snapshot(a),...ut(this,cr).slice(t+1)]),ut(this,_s).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,a)=>{let n=a?KB(t,a):t;return ut(this,Hc).add(n),()=>{ut(this,Hc).delete(n)}},this["~registerStatusCallback"]=t=>(ut(this,Vc).add(t),()=>{ut(this,Vc).delete(t)}),this["~registerErrorCallback"]=t=>(ut(this,Gc).add(t),()=>{ut(this,Gc).delete(t)}),Zr(this,_s,()=>{ut(this,Hc).forEach(t=>t())}),Zr(this,PI,()=>{ut(this,Vc).forEach(t=>t())}),Zr(this,UI,()=>{ut(this,Gc).forEach(t=>t())}),ko(this,cr,e)}get status(){return ut(this,Zm)}set status(e){ko(this,Zm,e),ut(this,PI).call(this)}get error(){return ut(this,Hm)}set error(e){ko(this,Hm,e),ut(this,UI).call(this)}get messages(){return ut(this,cr)}set messages(e){ko(this,cr,[...e]),ut(this,_s).call(this)}};cr=new WeakMap;Zm=new WeakMap;Hm=new WeakMap;Hc=new WeakMap;Vc=new WeakMap;Gc=new WeakMap;_s=new WeakMap;PI=new WeakMap;UI=new WeakMap;var ks,J$=class extends V${constructor({messages:e,...t}){let a=new YB(e);super({...t,state:a}),Zr(this,ks,void 0),this["~registerMessagesCallback"]=(n,r)=>ut(this,ks)["~registerMessagesCallback"](n,r),this["~registerStatusCallback"]=n=>ut(this,ks)["~registerStatusCallback"](n),this["~registerErrorCallback"]=n=>ut(this,ks)["~registerErrorCallback"](n),ko(this,ks,a)}};ks=new WeakMap;function Y$({experimental_throttle:e,resume:t=!1,...a}={}){let n=(0,dr.useRef)("chat"in a?{}:{onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});"chat"in a||(n.current={onToolCall:a.onToolCall,onData:a.onData,onFinish:a.onFinish,onError:a.onError,sendAutomaticallyWhen:a.sendAutomaticallyWhen});let r={...a,onToolCall:f=>{var p,m;return(m=(p=n.current).onToolCall)==null?void 0:m.call(p,f)},onData:f=>{var p,m;return(m=(p=n.current).onData)==null?void 0:m.call(p,f)},onFinish:f=>{var p,m;return(m=(p=n.current).onFinish)==null?void 0:m.call(p,f)},onError:f=>{var p,m;return(m=(p=n.current).onError)==null?void 0:m.call(p,f)},sendAutomaticallyWhen:f=>{var p,m,S;return(S=(m=(p=n.current).sendAutomaticallyWhen)==null?void 0:m.call(p,f))!=null?S:!1}},o=(0,dr.useRef)("chat"in a?a.chat:new J$(r));("chat"in a&&a.chat!==o.current||"id"in a&&o.current.id!==a.id)&&(o.current="chat"in a?a.chat:new J$(r));let l=(0,dr.useCallback)(f=>o.current["~registerMessagesCallback"](f,e),[e,o.current.id]),s=(0,dr.useSyncExternalStore)(l,()=>o.current.messages,()=>o.current.messages),u=(0,dr.useSyncExternalStore)(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),c=(0,dr.useSyncExternalStore)(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),d=(0,dr.useCallback)(f=>{typeof f=="function"&&(f=f(o.current.messages)),o.current.messages=f},[o]);return(0,dr.useEffect)(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:s,setMessages:d,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:c,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}var Va=pe(Ct(),1);function Q$(e){let t=[],a=[],n=[],r=()=>{a.length>0&&(t.push({type:"step",parts:a}),a=[])};for(e.parts.forEach(o=>{if(o.type==="step-start"){n.length===0&&r();return}if(o.type==="data-tag-start"){n.length===0&&r();let l=o.data?.tagId??"unknown";n.push({groupName:l,parts:[]});return}if(o.type==="data-tag-end"){let i=n.pop();i&&t.push({type:"group",groupName:i.groupName,parts:i.parts});return}o.type==="data-thoughts"||o.type==="data-transfer"||(n.length>0?n[n.length-1].parts.push(o):a.push(o))});n.length>0;){let o=n.pop();t.push({type:"group",groupName:o.groupName,parts:o.parts})}return r(),{id:e.id,role:e.role,metadata:e.metadata,sections:t}}function QB(e,t){return async(a,n)=>{let r=i=>fetch(a,{...n,headers:{...n?.headers,Authorization:`Bearer ${i}`}}),o=await r(e.current);if(o.status===401&&t){let i=await t();if(i)return e.current=i,r(i)}return o}}function eM({api:e,threadId:t,agentId:a,agentVersion:n,agentExecutionId:r,dataContext:o,onError:i,onAuthError:l,onFinish:s,onData:u,onMessage:c}){let{baseUrl:d,token:f,headers:p={}}=e,m=(0,Va.useRef)(o);m.current=o;let S=(0,Va.useRef)(f);S.current=f;let C=(0,Va.useRef)(l);C.current=l;let h=(0,Va.useMemo)(()=>QB(S,async()=>C.current?.()??null),[]),y=(0,Va.useMemo)(()=>new RI({api:`${d}/chat`,fetch:h,headers:{"Content-Type":"application/json","thread-id":t,...a?{"agent-id":a}:{},...n!==void 0?{version:String(n)}:{},...r?{"agent-execution-id":r}:{},...p},prepareSendMessagesRequest({messages:F,id:O}){return{body:{id:O,message:F[F.length-1],dataContext:m.current}}}}),[d,h,t,a,n,r,p]),{messages:g,status:b,sendMessage:L,stop:x,setMessages:w}=Y$({id:t,transport:y,onError:F=>{console.error("Chat error:",F),i?.(F)},onFinish:F=>{s?.(F)},onData:F=>{u?.(F)}}),[I,E]=(0,Va.useState)(!0);return(0,Va.useEffect)(()=>{(async()=>{try{let O=await h(`${d}/chat/messages`,{method:"GET",headers:{"thread-id":t}});if(!O.ok)throw new Error(`Failed to fetch messages: ${O.statusText}`);let P=(await O.json()).messages||[];P.length>0&&w(P)}catch(O){console.error("Error fetching initial messages:",O),i?.(O)}finally{E(!1)}})()},[r,a,h,d,i,w,t]),(0,Va.useEffect)(()=>{if(!c||g.length===0)return;let F=g[g.length-1];F&&c(F)},[g,c]),{messages:(0,Va.useMemo)(()=>g.map(F=>Q$(F)),[g]),status:b,isLoadingInitial:I,sendMessage:L,stop:x,setMessages:w}}var Co=pe(Ct(),1);function tM({api:e,threadId:t,agentId:a,agentVersion:n}){let{baseUrl:r,token:o}=e,[i,l]=(0,Co.useState)({}),[s,u]=(0,Co.useState)(null),[c,d]=(0,Co.useState)(null),f=(0,Co.useCallback)(async(S,{rating:C,improvementText:h,notes:y})=>{u(S),d(null);try{let g={agentId:a,agentVersion:n,threadId:t,messageId:S,rating:C,improvementText:h,notes:y},b=await fetch(`${r}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`},body:JSON.stringify(g)});if(!b.ok){let w=await b.json().catch(()=>({}));throw new Error(w.error||`Failed to submit feedback: ${b.statusText}`)}let{data:L}=await b.json();if(L.deleted||!C)return l(w=>{let I={...w};return delete I[S],I}),null;let x={rating:L.rating,improvementText:L.improvementText,notes:L.notes};return l(w=>({...w,[S]:x})),x}catch(g){let b=g instanceof Error?g:new Error("Unknown error");return d(b),console.error("Failed to submit feedback:",b),null}finally{u(null)}},[r,o,t,a,n]),p=(0,Co.useCallback)(S=>i[S],[i]),m=(0,Co.useCallback)(S=>S in i,[i]);return{submitFeedback:f,getFeedbackForMessage:p,hasFeedback:m,isSubmitting:s,error:c}}function aM(e){var t,a,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(a=aM(e[t]))&&(n&&(n+=" "),n+=a)}else for(a in e)e[a]&&(n&&(n+=" "),n+=a);return n}function rM(){for(var e,t,a=0,n="",r=arguments.length;a<r;a++)(e=arguments[a])&&(t=aM(e))&&(n&&(n+=" "),n+=t);return n}var eF=e=>{let t=aF(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{let l=i.split("-");return l[0]===""&&l.length!==1&&l.shift(),iM(l,t)||tF(i)},getConflictingClassGroupIds:(i,l)=>{let s=a[i]||[];return l&&n[i]?[...s,...n[i]]:s}}},iM=(e,t)=>{if(e.length===0)return t.classGroupId;let a=e[0],n=t.nextPart.get(a),r=n?iM(e.slice(1),n):void 0;if(r)return r;if(t.validators.length===0)return;let o=e.join("-");return t.validators.find(({validator:i})=>i(o))?.classGroupId},nM=/^\[(.+)\]$/,tF=e=>{if(nM.test(e)){let t=nM.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},aF=e=>{let{theme:t,prefix:a}=e,n={nextPart:new Map,validators:[]};return nF(Object.entries(e.classGroups),a).forEach(([o,i])=>{jI(i,n,o,t)}),n},jI=(e,t,a,n)=>{e.forEach(r=>{if(typeof r=="string"){let o=r===""?t:oM(t,r);o.classGroupId=a;return}if(typeof r=="function"){if(rF(r)){jI(r(n),t,a,n);return}t.validators.push({validator:r,classGroupId:a});return}Object.entries(r).forEach(([o,i])=>{jI(i,oM(t,o),a,n)})})},oM=(e,t)=>{let a=e;return t.split("-").forEach(n=>{a.nextPart.has(n)||a.nextPart.set(n,{nextPart:new Map,validators:[]}),a=a.nextPart.get(n)}),a},rF=e=>e.isThemeGetter,nF=(e,t)=>t?e.map(([a,n])=>{let r=n.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([i,l])=>[t+i,l])):o);return[a,r]}):e,oF=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,n=new Map,r=(o,i)=>{a.set(o,i),t++,t>e&&(t=0,n=a,a=new Map)};return{get(o){let i=a.get(o);if(i!==void 0)return i;if((i=n.get(o))!==void 0)return r(o,i),i},set(o,i){a.has(o)?a.set(o,i):r(o,i)}}};var iF=e=>{let{separator:t,experimentalParseClassName:a}=e,n=t.length===1,r=t[0],o=t.length,i=l=>{let s=[],u=0,c=0,d;for(let C=0;C<l.length;C++){let h=l[C];if(u===0){if(h===r&&(n||l.slice(C,C+o)===t)){s.push(l.slice(c,C)),c=C+o;continue}if(h==="/"){d=C;continue}}h==="["?u++:h==="]"&&u--}let f=s.length===0?l:l.substring(c),p=f.startsWith("!"),m=p?f.substring(1):f,S=d&&d>c?d-c:void 0;return{modifiers:s,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:S}};return a?l=>a({className:l,parseClassName:i}):i},lF=e=>{if(e.length<=1)return e;let t=[],a=[];return e.forEach(n=>{n[0]==="["?(t.push(...a.sort(),n),a=[]):a.push(n)}),t.push(...a.sort()),t},sF=e=>({cache:oF(e.cacheSize),parseClassName:iF(e),...eF(e)}),uF=/\s+/,cF=(e,t)=>{let{parseClassName:a,getClassGroupId:n,getConflictingClassGroupIds:r}=t,o=[],i=e.trim().split(uF),l="";for(let s=i.length-1;s>=0;s-=1){let u=i[s],{modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=a(u),m=!!p,S=n(m?f.substring(0,p):f);if(!S){if(!m){l=u+(l.length>0?" "+l:l);continue}if(S=n(f),!S){l=u+(l.length>0?" "+l:l);continue}m=!1}let C=lF(c).join(":"),h=d?C+"!":C,y=h+S;if(o.includes(y))continue;o.push(y);let g=r(S,m);for(let b=0;b<g.length;++b){let L=g[b];o.push(h+L)}l=u+(l.length>0?" "+l:l)}return l};function dF(){let e=0,t,a,n="";for(;e<arguments.length;)(t=arguments[e++])&&(a=lM(t))&&(n&&(n+=" "),n+=a);return n}var lM=e=>{if(typeof e=="string")return e;let t,a="";for(let n=0;n<e.length;n++)e[n]&&(t=lM(e[n]))&&(a&&(a+=" "),a+=t);return a};function fF(e,...t){let a,n,r,o=i;function i(s){let u=t.reduce((c,d)=>d(c),e());return a=sF(u),n=a.cache.get,r=a.cache.set,o=l,l(s)}function l(s){let u=n(s);if(u)return u;let c=cF(s,a);return r(s,c),c}return function(){return o(dF.apply(null,arguments))}}var ct=e=>{let t=a=>a[e]||[];return t.isThemeGetter=!0,t},sM=/^\[(?:([a-z-]+):)?(.+)\]$/i,pF=/^\d+\/\d+$/,mF=new Set(["px","full","screen"]),hF=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gF=/\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$/,vF=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yF=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xF=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tn=e=>Cs(e)||mF.has(e)||pF.test(e),Lo=e=>Ls(e,"length",LF),Cs=e=>!!e&&!Number.isNaN(Number(e)),NI=e=>Ls(e,"number",Cs),Jc=e=>!!e&&Number.isInteger(Number(e)),bF=e=>e.endsWith("%")&&Cs(e.slice(0,-1)),_e=e=>sM.test(e),To=e=>hF.test(e),SF=new Set(["length","size","percentage"]),wF=e=>Ls(e,SF,uM),IF=e=>Ls(e,"position",uM),_F=new Set(["image","url"]),kF=e=>Ls(e,_F,AF),CF=e=>Ls(e,"",TF),Xc=()=>!0,Ls=(e,t,a)=>{let n=sM.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):a(n[2]):!1},LF=e=>gF.test(e)&&!vF.test(e),uM=()=>!1,TF=e=>yF.test(e),AF=e=>xF.test(e);var EF=()=>{let e=ct("colors"),t=ct("spacing"),a=ct("blur"),n=ct("brightness"),r=ct("borderColor"),o=ct("borderRadius"),i=ct("borderSpacing"),l=ct("borderWidth"),s=ct("contrast"),u=ct("grayscale"),c=ct("hueRotate"),d=ct("invert"),f=ct("gap"),p=ct("gradientColorStops"),m=ct("gradientColorStopPositions"),S=ct("inset"),C=ct("margin"),h=ct("opacity"),y=ct("padding"),g=ct("saturate"),b=ct("scale"),L=ct("sepia"),x=ct("skew"),w=ct("space"),I=ct("translate"),E=()=>["auto","contain","none"],k=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto",_e,t],O=()=>[_e,t],U=()=>["",Tn,Lo],P=()=>["auto",Cs,_e],Q=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],ie=()=>["solid","dashed","dotted","double","none"],ne=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>["start","end","center","between","around","evenly","stretch"],Me=()=>["","0",_e],$=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Cs,_e];return{cacheSize:500,separator:":",theme:{colors:[Xc],spacing:[Tn,Lo],blur:["none","",To,_e],brightness:ce(),borderColor:[e],borderRadius:["none","","full",To,_e],borderSpacing:O(),borderWidth:U(),contrast:ce(),grayscale:Me(),hueRotate:ce(),invert:Me(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[bF,Lo],inset:F(),margin:F(),opacity:ce(),padding:O(),saturate:ce(),scale:ce(),sepia:Me(),skew:ce(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",_e]}],container:["container"],columns:[{columns:[To]}],"break-after":[{"break-after":$()}],"break-before":[{"break-before":$()}],"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"],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:[...Q(),_e]}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Jc,_e]}],basis:[{basis:F()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",_e]}],grow:[{grow:Me()}],shrink:[{shrink:Me()}],order:[{order:["first","last","none",Jc,_e]}],"grid-cols":[{"grid-cols":[Xc]}],"col-start-end":[{col:["auto",{span:["full",Jc,_e]},_e]}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":[Xc]}],"row-start-end":[{row:["auto",{span:[Jc,_e]},_e]}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",_e]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",_e]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...ue()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ue(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ue(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[C]}],mx:[{mx:[C]}],my:[{my:[C]}],ms:[{ms:[C]}],me:[{me:[C]}],mt:[{mt:[C]}],mr:[{mr:[C]}],mb:[{mb:[C]}],ml:[{ml:[C]}],"space-x":[{"space-x":[w]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[w]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",_e,t]}],"min-w":[{"min-w":[_e,t,"min","max","fit"]}],"max-w":[{"max-w":[_e,t,"none","full","min","max","fit","prose",{screen:[To]},To]}],h:[{h:[_e,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[_e,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[_e,t,"auto","min","max","fit"]}],"font-size":[{text:["base",To,Lo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",NI]}],"font-family":[{font:[Xc]}],"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:["tighter","tight","normal","wide","wider","widest",_e]}],"line-clamp":[{"line-clamp":["none",Cs,NI]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Tn,_e]}],"list-image":[{"list-image":["none",_e]}],"list-style-type":[{list:["none","disc","decimal",_e]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ie(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Tn,Lo]}],"underline-offset":[{"underline-offset":["auto",Tn,_e]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",_e]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Q(),IF]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",wF]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kF]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...ie(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:ie()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...ie()]}],"outline-offset":[{"outline-offset":[Tn,_e]}],"outline-w":[{outline:[Tn,Lo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Tn,Lo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",To,CF]}],"shadow-color":[{shadow:[Xc]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...ne(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ne()}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[n]}],contrast:[{contrast:[s]}],"drop-shadow":[{"drop-shadow":["","none",To,_e]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[g]}],sepia:[{sepia:[L]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[s]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[g]}],"backdrop-sepia":[{"backdrop-sepia":[L]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",_e]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",_e]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",_e]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[Jc,_e]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",_e]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],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",_e]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",_e]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Tn,Lo,NI]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"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-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-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"],"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"]}}};var cM=fF(EF);function Hr(...e){return cM(rM(e))}var Ne=pe(Ct(),1);var xi=pe(Ye(),1),mM=()=>{if(typeof window>"u")return null;let e=window;return e.SpeechRecognition||e.webkitSpeechRecognition||null},hM=e=>Math.max(0,Math.min(1,e)),gM=(...e)=>e.map(t=>t.trim()).filter(Boolean).join(" ");function vM({onInterim:e,onFinal:t,onError:a,onListeningChange:n,silenceTimeout:r=3e3,finalDelay:o=1500,language:i,disabled:l,className:s}){let[u,c]=(0,Ne.useState)(!1),[d,f]=(0,Ne.useState)(!1),[p,m]=(0,Ne.useState)(0),S=(0,Ne.useRef)(null),[C,h]=(0,Ne.useState)(!1),y=(0,Ne.useRef)(null),g=(0,Ne.useRef)(null),b=(0,Ne.useRef)(""),L=(0,Ne.useRef)(null),x=(0,Ne.useRef)(0),w=i??"en-US",I=(0,Ne.useCallback)(()=>{y.current&&(clearTimeout(y.current),y.current=null)},[]),E=(0,Ne.useCallback)(()=>{L.current&&(cancelAnimationFrame(L.current),L.current=null)},[]),k=(0,Ne.useCallback)(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),F=(0,Ne.useCallback)(()=>{I(),k(),E(),m(0),h(!1),x.current=0,S.current?.stop()},[I,k,E]),O=(0,Ne.useCallback)(T=>{console.error("Speech recognition error:",T),a?.(T)},[a]),U=(0,Ne.useCallback)(()=>{r&&(I(),y.current=setTimeout(F,r))},[r,I,F]),P=(0,Ne.useCallback)(T=>{T&&e?.(T)},[e]),Q=(0,Ne.useCallback)(T=>{T&&t?.(T)},[t]),ie=(0,Ne.useCallback)(()=>{let T=b.current.trim();T&&Q(T),b.current="",k()},[Q,k]),ne=(0,Ne.useCallback)(()=>{if(!x.current||!o){m(0),h(!1),L.current=null;return}let T=x.current-Date.now(),ze=hM(T/o);if(m(ze),T<=0){h(!1),L.current=null;return}L.current=requestAnimationFrame(ne)},[o]),ue=(0,Ne.useCallback)(()=>{if(!o){m(0),h(!1);return}x.current=Date.now()+o,m(1),h(!0),E(),L.current=requestAnimationFrame(ne)},[o,E,ne]),Me=(0,Ne.useCallback)(()=>{if(k(),!o){ie();return}ue(),g.current=setTimeout(ie,o)},[k,o,ie,ue]),$=(0,Ne.useCallback)(T=>{T.continuous=!0,T.interimResults=!0,T.lang=w,T.onresult=ze=>{let aa="",K="";for(let M=ze.resultIndex;M<ze.results.length;M++){let j=ze.results[M];if(!j)continue;let B=j[0]?.transcript??"";j.isFinal?K+=B:aa+=B}let _=aa.trim();if(_){ue();let M=gM(b.current,_);P(M)}else{let M=b.current.trim();M&&P(M)}let A=K.trim();A&&(b.current=gM(b.current,A),P(b.current),Me(),T.stop()),U()},T.onerror=ze=>{if(ze.error==="no-speech"){U();return}O(ze.error)},T.onstart=()=>{c(!0),n?.(!0),U()},T.onend=()=>{c(!1),n?.(!1),I(),g.current||ie()}},[w,U,ue,P,Me,O,n,I,ie,C]),ce=(0,Ne.useCallback)(()=>{if(typeof window>"u")return null;let T=mM();return T?(S.current||(S.current=new T),$(S.current),S.current):(O("Speech recognition is not supported in this browser."),null)},[$,O]),_t=(0,Ne.useCallback)(()=>{if(l)return;if(u){F();return}let T=ce();if(T)try{T.start()}catch{O("Microphone permission denied or unavailable.")}},[l,u,F,ce,O]);return(0,Ne.useEffect)(()=>{l&&u&&F()},[l,u,F]),(0,Ne.useEffect)(()=>{f(typeof window<"u"&&!!mM())},[]),(0,Ne.useEffect)(()=>()=>{I(),k(),E(),S.current?.stop(),S.current=null},[I,k,E]),d?(0,xi.jsxs)("button",{type:"button",className:Hr("chat-widget__mic-button",u&&"chat-widget__mic-button--active",s),onClick:_t,disabled:l,"aria-pressed":u,"aria-label":"Toggle microphone",children:[u?(0,xi.jsx)(jc,{className:"chat-widget__mic-icon"}):(0,xi.jsx)(Nc,{className:"chat-widget__mic-icon"}),o>0&&u&&C&&(0,xi.jsx)("span",{className:"chat-widget__mic-bar","aria-hidden":"true",children:(0,xi.jsx)("span",{className:"chat-widget__mic-bar-fill",style:{transform:`scaleX(${hM(p)})`}})})]}):null}var La=pe(Ct(),1),Nt=pe(Ye(),1);function yM({collapsed:e,renderPart:t,itemKey:a}){let[n,r]=(0,La.useState)(!1),[o,i]=(0,La.useState)(!1),l=(0,La.useRef)(null),s=(0,La.useRef)(e.parts.length);(0,La.useEffect)(()=>{if(e.parts.length>s.current&&!n){i(!0);let d=setTimeout(()=>i(!1),300);return()=>clearTimeout(d)}s.current=e.parts.length},[e.parts.length,n]);let u=(0,La.useCallback)(()=>{r(d=>!d)},[]),c=["chat-widget__collapsed",o?"chat-widget__collapsed--animating":""].filter(Boolean).join(" ");return(0,Nt.jsxs)("div",{className:c,children:[(0,Nt.jsx)("div",{className:`chat-widget__collapsed-content ${n?"chat-widget__collapsed-content--expanded":""}`,children:(0,Nt.jsx)("div",{ref:l,className:"chat-widget__collapsed-content-inner",children:e.parts.map((d,f)=>(0,Nt.jsx)("div",{children:t(d,`${a}-expanded-${f}`)},`${a}-expanded-${f}`))})}),(0,Nt.jsxs)("div",{className:`chat-widget__collapsed-preview ${n?"chat-widget__collapsed-preview--hidden":""}`,children:[t(e.lastPart,`${a}-preview`),(0,Nt.jsx)("div",{className:"chat-widget__collapsed-gradient"})]}),(0,Nt.jsx)("button",{type:"button",className:"chat-widget__collapsed-toggle",onClick:u,children:n?"Show less":"Show more"})]})}function zF(e,t){let a=[],n=[];e.forEach((i,l)=>{n.push({type:i.type,index:l})});let r=-1;for(let i=e.length-1;i>=0;i--)if(e[i]?.type==="step"){r=i;break}let o=[];if(e.forEach((i,l)=>{if(i.type==="step")if(l<r)o.push(...i.parts);else{if(o.length>0){let s=o[o.length-1];a.push({type:"collapsed",collapsed:{parts:[...o],lastPart:s},key:`${t}-collapsed-${a.length}`}),o.length=0}a.push({type:"parts",parts:i.parts,key:`${t}-step-${l}`})}else if(i.type==="group"){if(o.length>0){let d=o[o.length-1];a.push({type:"collapsed",collapsed:{parts:[...o],lastPart:d},key:`${t}-collapsed-${a.length}`}),o.length=0}let s=i.parts,u=null,c=[];if(s.length>1){let d=s.slice(0,-1),f=d[d.length-1];u={parts:d,lastPart:f},c=[s[s.length-1]]}else c=s;a.push({type:"group",groupName:i.groupName,collapsedParts:u,currentParts:c,key:`${t}-group-${i.groupName}`})}}),o.length>0){let i=o[o.length-1];a.push({type:"collapsed",collapsed:{parts:[...o],lastPart:i},key:`${t}-collapsed-${a.length}`})}return a}function Kc({sections:e,messageId:t,renderPart:a,renderGroup:n}){let r=(0,La.useMemo)(()=>zF(e,t),[e,t]);return(0,Nt.jsx)(Nt.Fragment,{children:r.map(o=>{if(o.type==="collapsed")return(0,Nt.jsx)(yM,{collapsed:o.collapsed,renderPart:a,itemKey:o.key},o.key);if(o.type==="parts")return(0,Nt.jsx)(La.default.Fragment,{children:o.parts.map((i,l)=>(0,Nt.jsx)("div",{children:a(i,`${o.key}-part-${l}`)},`${o.key}-part-${l}`))},o.key);if(o.type==="group"){let i=(0,Nt.jsxs)(Nt.Fragment,{children:[o.collapsedParts&&(0,Nt.jsx)(yM,{collapsed:o.collapsedParts,renderPart:a,itemKey:`${o.key}-collapsed`}),o.currentParts.map((l,s)=>(0,Nt.jsx)("div",{children:a(l,`${o.key}-current-${s}`)},`${o.key}-current-${s}`))]});return n(o.groupName,o.key,i)}return null})})}var xM=pe(Ct(),1),An=pe(Ye(),1);function Yc({sections:e,messageId:t,renderPart:a,renderGroup:n}){return(0,An.jsx)(An.Fragment,{children:e.map((r,o)=>{let i=`${t}-section-${o}`;if(r.type==="step")return(0,An.jsx)(xM.default.Fragment,{children:r.parts.map((l,s)=>(0,An.jsx)("div",{children:a(l,`${i}-part-${s}`)},`${i}-part-${s}`))},i);if(r.type==="group"){let l=`${t}-group-${r.groupName}`,s=r.parts.map((u,c)=>(0,An.jsx)("div",{children:a(u,`${l}-part-${c}`)},`${l}-part-${c}`));return n(r.groupName,l,(0,An.jsx)(An.Fragment,{children:s}))}return null})})}var zn=pe(Ct(),1);function bM(e,t){let a=t||{};return(e[e.length-1]===""?[...e,""]:e).join((a.padRight?" ":"")+","+(a.padLeft===!1?"":" ")).trim()}var DF=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,OF=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,RF={};function Wm(e,t){return((t||RF).jsx?OF:DF).test(e)}var PF=/[ \t\n\f\r]/g;function BI(e){return typeof e=="object"?e.type==="text"?SM(e.value):!1:SM(e)}function SM(e){return e.replace(PF,"")===""}var En=class{constructor(t,a,n){this.normal=a,this.property=t,n&&(this.space=n)}};En.prototype.normal={};En.prototype.property={};En.prototype.space=void 0;function FI(e,t){let a={},n={};for(let r of e)Object.assign(a,r.property),Object.assign(n,r.normal);return new En(a,n,t)}function Qc(e){return e.toLowerCase()}var Vt=class{constructor(t,a){this.attribute=a,this.property=t}};Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;var ed={};hr(ed,{boolean:()=>xe,booleanish:()=>wt,commaOrSpaceSeparated:()=>Ta,commaSeparated:()=>Ao,number:()=>G,overloadedBoolean:()=>Jm,spaceSeparated:()=>Ve});var UF=0,xe=bi(),wt=bi(),Jm=bi(),G=bi(),Ve=bi(),Ao=bi(),Ta=bi();function bi(){return 2**++UF}var qI=Object.keys(ed),Si=class extends Vt{constructor(t,a,n,r){let o=-1;if(super(t,a),wM(this,"space",r),typeof n=="number")for(;++o<qI.length;){let i=qI[o];wM(this,qI[o],(n&ed[i])===ed[i])}}};Si.prototype.defined=!0;function wM(e,t,a){a&&(e[t]=a)}function fr(e){let t={},a={};for(let[n,r]of Object.entries(e.properties)){let o=new Si(n,e.transform(e.attributes||{},n),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,a[Qc(n)]=n,a[Qc(o.attribute)]=n}return new En(t,a,e.space)}var ZI=fr({properties:{ariaActiveDescendant:null,ariaAtomic:wt,ariaAutoComplete:null,ariaBusy:wt,ariaChecked:wt,ariaColCount:G,ariaColIndex:G,ariaColSpan:G,ariaControls:Ve,ariaCurrent:null,ariaDescribedBy:Ve,ariaDetails:null,ariaDisabled:wt,ariaDropEffect:Ve,ariaErrorMessage:null,ariaExpanded:wt,ariaFlowTo:Ve,ariaGrabbed:wt,ariaHasPopup:null,ariaHidden:wt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ve,ariaLevel:G,ariaLive:null,ariaModal:wt,ariaMultiLine:wt,ariaMultiSelectable:wt,ariaOrientation:null,ariaOwns:Ve,ariaPlaceholder:null,ariaPosInSet:G,ariaPressed:wt,ariaReadOnly:wt,ariaRelevant:null,ariaRequired:wt,ariaRoleDescription:Ve,ariaRowCount:G,ariaRowIndex:G,ariaRowSpan:G,ariaSelected:wt,ariaSetSize:G,ariaSort:null,ariaValueMax:G,ariaValueMin:G,ariaValueNow:G,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Xm(e,t){return t in e?e[t]:t}function Km(e,t){return Xm(e,t.toLowerCase())}var IM=fr({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ao,acceptCharset:Ve,accessKey:Ve,action:null,allow:null,allowFullScreen:xe,allowPaymentRequest:xe,allowUserMedia:xe,alt:null,as:null,async:xe,autoCapitalize:null,autoComplete:Ve,autoFocus:xe,autoPlay:xe,blocking:Ve,capture:null,charSet:null,checked:xe,cite:null,className:Ve,cols:G,colSpan:null,content:null,contentEditable:wt,controls:xe,controlsList:Ve,coords:G|Ao,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xe,defer:xe,dir:null,dirName:null,disabled:xe,download:Jm,draggable:wt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xe,formTarget:null,headers:Ve,height:G,hidden:Jm,high:G,href:null,hrefLang:null,htmlFor:Ve,httpEquiv:Ve,id:null,imageSizes:null,imageSrcSet:null,inert:xe,inputMode:null,integrity:null,is:null,isMap:xe,itemId:null,itemProp:Ve,itemRef:Ve,itemScope:xe,itemType:Ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xe,low:G,manifest:null,max:null,maxLength:G,media:null,method:null,min:null,minLength:G,multiple:xe,muted:xe,name:null,nonce:null,noModule:xe,noValidate:xe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xe,optimum:G,pattern:null,ping:Ve,placeholder:null,playsInline:xe,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xe,referrerPolicy:null,rel:Ve,required:xe,reversed:xe,rows:G,rowSpan:G,sandbox:Ve,scope:null,scoped:xe,seamless:xe,selected:xe,shadowRootClonable:xe,shadowRootDelegatesFocus:xe,shadowRootMode:null,shape:null,size:G,sizes:null,slot:null,span:G,spellCheck:wt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:G,step:null,style:null,tabIndex:G,target:null,title:null,translate:null,type:null,typeMustMatch:xe,useMap:null,value:wt,width:G,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ve,axis:null,background:null,bgColor:null,border:G,borderColor:null,bottomMargin:G,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xe,declare:xe,event:null,face:null,frame:null,frameBorder:null,hSpace:G,leftMargin:G,link:null,longDesc:null,lowSrc:null,marginHeight:G,marginWidth:G,noResize:xe,noHref:xe,noShade:xe,noWrap:xe,object:null,profile:null,prompt:null,rev:null,rightMargin:G,rules:null,scheme:null,scrolling:wt,standby:null,summary:null,text:null,topMargin:G,valueType:null,version:null,vAlign:null,vLink:null,vSpace:G,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xe,disableRemotePlayback:xe,prefix:null,property:null,results:G,security:null,unselectable:null},space:"html",transform:Km});var _M=fr({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ta,accentHeight:G,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:G,amplitude:G,arabicForm:null,ascent:G,attributeName:null,attributeType:null,azimuth:G,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:G,by:null,calcMode:null,capHeight:G,className:Ve,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:G,diffuseConstant:G,direction:null,display:null,dur:null,divisor:G,dominantBaseline:null,download:xe,dx:null,dy:null,edgeMode:null,editable:null,elevation:G,enableBackground:null,end:null,event:null,exponent:G,externalResourcesRequired:null,fill:null,fillOpacity:G,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ao,g2:Ao,glyphName:Ao,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:G,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:G,horizOriginX:G,horizOriginY:G,id:null,ideographic:G,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:G,k:G,k1:G,k2:G,k3:G,k4:G,kernelMatrix:Ta,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:G,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:G,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:G,overlineThickness:G,paintOrder:null,panose1:null,path:null,pathLength:G,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:G,pointsAtY:G,pointsAtZ:G,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ta,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ta,rev:Ta,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ta,requiredFeatures:Ta,requiredFonts:Ta,requiredFormats:Ta,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:G,specularExponent:G,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:G,strikethroughThickness:G,string:null,stroke:null,strokeDashArray:Ta,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:G,strokeOpacity:G,strokeWidth:null,style:null,surfaceScale:G,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ta,tabIndex:G,tableValues:null,target:null,targetX:G,targetY:G,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ta,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:G,underlineThickness:G,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:G,values:null,vAlphabetic:G,vMathematical:G,vectorEffect:null,vHanging:G,vIdeographic:G,version:null,vertAdvY:G,vertOriginX:G,vertOriginY:G,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:G,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Xm});var HI=fr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}});var VI=fr({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Km});var GI=fr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}});var WI={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var NF=/[A-Z]/g,kM=/-[a-z]/g,jF=/^data[-\w.:]+$/i;function JI(e,t){let a=Qc(t),n=t,r=Vt;if(a in e.normal)return e.property[e.normal[a]];if(a.length>4&&a.slice(0,4)==="data"&&jF.test(t)){if(t.charAt(4)==="-"){let o=t.slice(5).replace(kM,FF);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=t.slice(4);if(!kM.test(o)){let i=o.replace(NF,BF);i.charAt(0)!=="-"&&(i="-"+i),t="data"+i}}r=Si}return new r(n,t)}function BF(e){return"-"+e.toLowerCase()}function FF(e){return e.charAt(1).toUpperCase()}var CM=FI([ZI,IM,HI,VI,GI],"html"),Ym=FI([ZI,_M,HI,VI,GI],"svg");function LM(e){return e.join(" ").trim()}var FM=pe(UM(),1);var eh=NM("end"),Ts=NM("start");function NM(e){return t;function t(a){let n=a&&a.position&&a.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function YI(e){let t=Ts(e),a=eh(e);if(t&&a)return{start:t,end:a}}function Eo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?jM(e.position):"start"in e||"end"in e?jM(e):"line"in e||"column"in e?QI(e):""}function QI(e){return BM(e&&e.line)+":"+BM(e&&e.column)}function jM(e){return QI(e&&e.start)+"-"+QI(e&&e.end)}function BM(e){return e&&typeof e=="number"?e:1}var At=class extends Error{constructor(t,a,n){super(),typeof a=="string"&&(n=a,a=void 0);let r="",o={},i=!1;if(a&&("line"in a&&"column"in a?o={place:a}:"start"in a&&"end"in a?o={place:a}:"type"in a?o={ancestors:[a],place:a.position}:o={...a}),typeof t=="string"?r=t:!o.cause&&t&&(i=!0,r=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){let s=n.indexOf(":");s===-1?o.ruleId=n:(o.source=n.slice(0,s),o.ruleId=n.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){let s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}let l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Eo(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};At.prototype.file="";At.prototype.name="";At.prototype.reason="";At.prototype.message="";At.prototype.stack="";At.prototype.column=void 0;At.prototype.line=void 0;At.prototype.ancestors=void 0;At.prototype.cause=void 0;At.prototype.fatal=void 0;At.prototype.place=void 0;At.prototype.ruleId=void 0;At.prototype.source=void 0;var e_={}.hasOwnProperty,m5=new Map,h5=/[A-Z]/g,g5=new Set(["table","tbody","thead","tfoot","tr"]),v5=new Set(["td","th"]),qM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function t_(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let a=t.filePath||void 0,n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=k5(a,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=_5(a,t.jsx,t.jsxs)}let r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ym:CM,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=ZM(r,e,void 0);return o&&typeof o!="string"?o:r.create(e,r.Fragment,{children:o||void 0},void 0)}function ZM(e,t,a){if(t.type==="element")return y5(e,t,a);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return x5(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return S5(e,t,a);if(t.type==="mdxjsEsm")return b5(e,t);if(t.type==="root")return w5(e,t,a);if(t.type==="text")return I5(e,t)}function y5(e,t,a){let n=e.schema,r=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ym,e.schema=r),e.ancestors.push(t);let o=VM(e,t.tagName,!1),i=C5(e,t),l=r_(e,t);return g5.has(t.tagName)&&(l=l.filter(function(s){return typeof s=="string"?!BI(s):!0})),HM(e,i,o,t),a_(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function x5(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}ad(e,t.position)}function b5(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ad(e,t.position)}function S5(e,t,a){let n=e.schema,r=n;t.name==="svg"&&n.space==="html"&&(r=Ym,e.schema=r),e.ancestors.push(t);let o=t.name===null?e.Fragment:VM(e,t.name,!0),i=L5(e,t),l=r_(e,t);return HM(e,i,o,t),a_(i,l),e.ancestors.pop(),e.schema=n,e.create(t,o,i,a)}function w5(e,t,a){let n={};return a_(n,r_(e,t)),e.create(t,e.Fragment,n,a)}function I5(e,t){return t.value}function HM(e,t,a,n){typeof a!="string"&&a!==e.Fragment&&e.passNode&&(t.node=n)}function a_(e,t){if(t.length>0){let a=t.length>1?t:t[0];a&&(e.children=a)}}function _5(e,t,a){return n;function n(r,o,i,l){let u=Array.isArray(i.children)?a:t;return l?u(o,i,l):u(o,i)}}function k5(e,t){return a;function a(n,r,o,i){let l=Array.isArray(o.children),s=Ts(n);return t(r,o,i,l,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function C5(e,t){let a={},n,r;for(r in t.properties)if(r!=="children"&&e_.call(t.properties,r)){let o=T5(e,r,t.properties[r]);if(o){let[i,l]=o;e.tableCellAlignToStyle&&i==="align"&&typeof l=="string"&&v5.has(t.tagName)?n=l:a[i]=l}}if(n){let o=a.style||(a.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return a}function L5(e,t){let a={};for(let n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){let o=n.data.estree.body[0];o.type;let i=o.expression;i.type;let l=i.properties[0];l.type,Object.assign(a,e.evaluater.evaluateExpression(l.argument))}else ad(e,t.position);else{let r=n.name,o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){let l=n.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else ad(e,t.position);else o=n.value===null?!0:n.value;a[r]=o}return a}function r_(e,t){let a=[],n=-1,r=e.passKeys?new Map:m5;for(;++n<t.children.length;){let o=t.children[n],i;if(e.passKeys){let s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){let u=r.get(s)||0;i=s+"-"+u,r.set(s,u+1)}}let l=ZM(e,o,i);l!==void 0&&a.push(l)}return a}function T5(e,t,a){let n=JI(e.schema,t);if(!(a==null||typeof a=="number"&&Number.isNaN(a))){if(Array.isArray(a)&&(a=n.commaSeparated?bM(a):LM(a)),n.property==="style"){let r=typeof a=="object"?a:A5(e,String(a));return e.stylePropertyNameCase==="css"&&(r=E5(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&n.space?WI[n.property]||n.property:n.attribute,a]}}function A5(e,t){try{return(0,FM.default)(t,{reactCompat:!0})}catch(a){if(e.ignoreInvalidStyle)return{};let n=a,r=new At("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=qM+"#cannot-parse-style-attribute",r}}function VM(e,t,a){let n;if(!a)n={type:"Literal",value:t};else if(t.includes(".")){let r=t.split("."),o=-1,i;for(;++o<r.length;){let l=Wm(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};i=i?{type:"MemberExpression",object:i,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}n=i}else n=Wm(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){let r=n.value;return e_.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(n);ad(e)}function ad(e,t){let a=new At("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=qM+"#cannot-handle-mdx-estrees-without-createevaluater",a}function E5(e){let t={},a;for(a in e)e_.call(e,a)&&(t[$5(a)]=e[a]);return t}function $5(e){let t=e.replace(h5,M5);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function M5(e){return"-"+e.toLowerCase()}var rd={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var zs=pe(Ye(),1),yD=pe(Ct(),1);var z5={};function Ii(e,t){let a=t||z5,n=typeof a.includeImageAlt=="boolean"?a.includeImageAlt:!0,r=typeof a.includeHtml=="boolean"?a.includeHtml:!0;return WM(e,n,r)}function WM(e,t,a){if(D5(e)){if("value"in e)return e.type==="html"&&!a?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return GM(e.children,t,a)}return Array.isArray(e)?GM(e,t,a):""}function GM(e,t,a){let n=[],r=-1;for(;++r<e.length;)n[r]=WM(e[r],t,a);return n.join("")}function D5(e){return!!(e&&typeof e=="object")}var JM=document.createElement("i");function As(e){let t="&"+e+";";JM.innerHTML=t;let a=JM.textContent;return a.charCodeAt(a.length-1)===59&&e!=="semi"||a===t?!1:a}function Et(e,t,a,n){let r=e.length,o=0,i;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,a=a>0?a:0,n.length<1e4)i=Array.from(n),i.unshift(t,a),e.splice(...i);else for(a&&e.splice(t,a);o<n.length;)i=n.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function ga(e,t){return e.length>0?(Et(e,e.length,0,t),e):t}var XM={}.hasOwnProperty;function th(e){let t={},a=-1;for(;++a<e.length;)O5(t,e[a]);return t}function O5(e,t){let a;for(a in t){let r=(XM.call(e,a)?e[a]:void 0)||(e[a]={}),o=t[a],i;if(o)for(i in o){XM.call(r,i)||(r[i]=[]);let l=o[i];R5(r[i],Array.isArray(l)?l:l?[l]:[])}}}function R5(e,t){let a=-1,n=[];for(;++a<t.length;)(t[a].add==="after"?e:n).push(t[a]);Et(e,0,0,n)}function ah(e,t){let a=Number.parseInt(e,t);return a<9||a===11||a>13&&a<32||a>126&&a<160||a>55295&&a<57344||a>64975&&a<65008||(a&65535)===65535||(a&65535)===65534||a>1114111?"\uFFFD":String.fromCodePoint(a)}function ia(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var jt=$o(/[A-Za-z]/),It=$o(/[\dA-Za-z]/),KM=$o(/[#-'*+\--9=?A-Z^-~]/);function _i(e){return e!==null&&(e<32||e===127)}var nd=$o(/\d/),YM=$o(/[\dA-Fa-f]/),QM=$o(/[!-/:-@[-`{-~]/);function ae(e){return e!==null&&e<-2}function Ae(e){return e!==null&&(e<0||e===32)}function de(e){return e===-2||e===-1||e===32}var ki=$o(/\p{P}|\p{S}/u),Vr=$o(/\s/);function $o(e){return t;function t(a){return a!==null&&a>-1&&e.test(String.fromCharCode(a))}}function pr(e){let t=[],a=-1,n=0,r=0;for(;++a<e.length;){let o=e.charCodeAt(a),i="";if(o===37&&It(e.charCodeAt(a+1))&&It(e.charCodeAt(a+2)))r=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(i=String.fromCharCode(o));else if(o>55295&&o<57344){let l=e.charCodeAt(a+1);o<56320&&l>56319&&l<57344?(i=String.fromCharCode(o,l),r=1):i="\uFFFD"}else i=String.fromCharCode(o);i&&(t.push(e.slice(n,a),encodeURIComponent(i)),n=a+r+1,i=""),r&&(a+=r,r=0)}return t.join("")+e.slice(n)}function se(e,t,a,n){let r=n?n-1:Number.POSITIVE_INFINITY,o=0;return i;function i(s){return de(s)?(e.enter(a),l(s)):t(s)}function l(s){return de(s)&&o++<r?(e.consume(s),l):(e.exit(a),t(s))}}var ez={tokenize:P5};function P5(e){let t=e.attempt(this.parser.constructs.contentInitial,n,r),a;return t;function n(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),se(e,t,"linePrefix")}function r(l){return e.enter("paragraph"),o(l)}function o(l){let s=e.enter("chunkText",{contentType:"text",previous:a});return a&&(a.next=s),a=s,i(l)}function i(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return ae(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),i)}}var az={tokenize:U5},tz={tokenize:N5};function U5(e){let t=this,a=[],n=0,r,o,i;return l;function l(g){if(n<a.length){let b=a[n];return t.containerState=b[1],e.attempt(b[0].continuation,s,u)(g)}return u(g)}function s(g){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();let b=t.events.length,L=b,x;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){x=t.events[L][1].end;break}h(n);let w=b;for(;w<t.events.length;)t.events[w][1].end={...x},w++;return Et(t.events,L+1,0,t.events.slice(b)),t.events.length=w,u(g)}return l(g)}function u(g){if(n===a.length){if(!r)return f(g);if(r.currentConstruct&&r.currentConstruct.concrete)return m(g);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(tz,c,d)(g)}function c(g){return r&&y(),h(n),f(g)}function d(g){return t.parser.lazy[t.now().line]=n!==a.length,i=t.now().offset,m(g)}function f(g){return t.containerState={},e.attempt(tz,p,m)(g)}function p(g){return n++,a.push([t.currentConstruct,t.containerState]),f(g)}function m(g){if(g===null){r&&y(),h(0),e.consume(g);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),S(g)}function S(g){if(g===null){C(e.exit("chunkFlow"),!0),h(0),e.consume(g);return}return ae(g)?(e.consume(g),C(e.exit("chunkFlow")),n=0,t.interrupt=void 0,l):(e.consume(g),S)}function C(g,b){let L=t.sliceStream(g);if(b&&L.push(null),g.previous=o,o&&(o.next=g),o=g,r.defineSkip(g.start),r.write(L),t.parser.lazy[g.start.line]){let x=r.events.length;for(;x--;)if(r.events[x][1].start.offset<i&&(!r.events[x][1].end||r.events[x][1].end.offset>i))return;let w=t.events.length,I=w,E,k;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(E){k=t.events[I][1].end;break}E=!0}for(h(n),x=w;x<t.events.length;)t.events[x][1].end={...k},x++;Et(t.events,I+1,0,t.events.slice(w)),t.events.length=x}}function h(g){let b=a.length;for(;b-- >g;){let L=a[b];t.containerState=L[1],L[0].exit.call(t,e)}a.length=g}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}function N5(e,t,a){return se(e,e.attempt(this.parser.constructs.document,t,a),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function $n(e){if(e===null||Ae(e)||Vr(e))return 1;if(ki(e))return 2}function Mo(e,t,a){let n=[],r=-1;for(;++r<e.length;){let o=e[r].resolveAll;o&&!n.includes(o)&&(t=o(t,a),n.push(o))}return t}var od={name:"attention",resolveAll:j5,tokenize:B5};function j5(e,t){let a=-1,n,r,o,i,l,s,u,c;for(;++a<e.length;)if(e[a][0]==="enter"&&e[a][1].type==="attentionSequence"&&e[a][1]._close){for(n=a;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[a][1]).charCodeAt(0)){if((e[n][1]._close||e[a][1]._open)&&(e[a][1].end.offset-e[a][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[a][1].end.offset-e[a][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[a][1].end.offset-e[a][1].start.offset>1?2:1;let d={...e[n][1].end},f={...e[a][1].start};rz(d,-s),rz(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},l={type:s>1?"strongSequence":"emphasisSequence",start:{...e[a][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[a][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...l.end}},e[n][1].end={...i.start},e[a][1].start={...l.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=ga(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ga(u,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),u=ga(u,Mo(t.parser.constructs.insideSpan.null,e.slice(n+1,a),t)),u=ga(u,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",r,t]]),e[a][1].end.offset-e[a][1].start.offset?(c=2,u=ga(u,[["enter",e[a][1],t],["exit",e[a][1],t]])):c=0,Et(e,n-1,a-n+3,u),a=n+u.length-c-2;break}}for(a=-1;++a<e.length;)e[a][1].type==="attentionSequence"&&(e[a][1].type="data");return e}function B5(e,t){let a=this.parser.constructs.attentionMarkers.null,n=this.previous,r=$n(n),o;return i;function i(s){return o=s,e.enter("attentionSequence"),l(s)}function l(s){if(s===o)return e.consume(s),l;let u=e.exit("attentionSequence"),c=$n(s),d=!c||c===2&&r||a.includes(s),f=!r||r===2&&c||a.includes(n);return u._open=!!(o===42?d:d&&(r||!f)),u._close=!!(o===42?f:f&&(c||!d)),t(s)}}function rz(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var n_={name:"autolink",tokenize:F5};function F5(e,t,a){let n=0;return r;function r(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return jt(p)?(e.consume(p),i):p===64?a(p):u(p)}function i(p){return p===43||p===45||p===46||It(p)?(n=1,l(p)):u(p)}function l(p){return p===58?(e.consume(p),n=0,s):(p===43||p===45||p===46||It(p))&&n++<32?(e.consume(p),l):(n=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||_i(p)?a(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),c):KM(p)?(e.consume(p),u):a(p)}function c(p){return It(p)?d(p):a(p)}function d(p){return p===46?(e.consume(p),n=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):f(p)}function f(p){if((p===45||It(p))&&n++<63){let m=p===45?f:d;return e.consume(p),m}return a(p)}}var Gr={partial:!0,tokenize:q5};function q5(e,t,a){return n;function n(o){return de(o)?se(e,r,"linePrefix")(o):r(o)}function r(o){return o===null||ae(o)?t(o):a(o)}}var rh={continuation:{tokenize:H5},exit:V5,name:"blockQuote",tokenize:Z5};function Z5(e,t,a){let n=this;return r;function r(i){if(i===62){let l=n.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(i),e.exit("blockQuoteMarker"),o}return a(i)}function o(i){return de(i)?(e.enter("blockQuotePrefixWhitespace"),e.consume(i),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(i))}}function H5(e,t,a){let n=this;return r;function r(i){return de(i)?se(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):o(i)}function o(i){return e.attempt(rh,t,a)(i)}}function V5(e){e.exit("blockQuote")}var nh={name:"characterEscape",tokenize:G5};function G5(e,t,a){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),r}function r(o){return QM(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):a(o)}}var oh={name:"characterReference",tokenize:W5};function W5(e,t,a){let n=this,r=0,o,i;return l;function l(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),s}function s(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,i=It,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=YM,c):(e.enter("characterReferenceValue"),o=7,i=nd,c(d))}function c(d){if(d===59&&r){let f=e.exit("characterReferenceValue");return i===It&&!As(n.sliceSerialize(f))?a(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return i(d)&&r++<o?(e.consume(d),c):a(d)}}var nz={partial:!0,tokenize:X5},ih={concrete:!0,name:"codeFenced",tokenize:J5};function J5(e,t,a){let n=this,r={partial:!0,tokenize:L},o=0,i=0,l;return s;function s(x){return u(x)}function u(x){let w=n.events[n.events.length-1];return o=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,l=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(x)}function c(x){return x===l?(i++,e.consume(x),c):i<3?a(x):(e.exit("codeFencedFenceSequence"),de(x)?se(e,d,"whitespace")(x):d(x))}function d(x){return x===null||ae(x)?(e.exit("codeFencedFence"),n.interrupt?t(x):e.check(nz,S,b)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===null||ae(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(x)):de(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),se(e,p,"whitespace")(x)):x===96&&x===l?a(x):(e.consume(x),f)}function p(x){return x===null||ae(x)?d(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(x))}function m(x){return x===null||ae(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(x)):x===96&&x===l?a(x):(e.consume(x),m)}function S(x){return e.attempt(r,b,C)(x)}function C(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h}function h(x){return o>0&&de(x)?se(e,y,"linePrefix",o+1)(x):y(x)}function y(x){return x===null||ae(x)?e.check(nz,S,b)(x):(e.enter("codeFlowValue"),g(x))}function g(x){return x===null||ae(x)?(e.exit("codeFlowValue"),y(x)):(e.consume(x),g)}function b(x){return e.exit("codeFenced"),t(x)}function L(x,w,I){let E=0;return k;function k(Q){return x.enter("lineEnding"),x.consume(Q),x.exit("lineEnding"),F}function F(Q){return x.enter("codeFencedFence"),de(Q)?se(x,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Q):O(Q)}function O(Q){return Q===l?(x.enter("codeFencedFenceSequence"),U(Q)):I(Q)}function U(Q){return Q===l?(E++,x.consume(Q),U):E>=i?(x.exit("codeFencedFenceSequence"),de(Q)?se(x,P,"whitespace")(Q):P(Q)):I(Q)}function P(Q){return Q===null||ae(Q)?(x.exit("codeFencedFence"),w(Q)):I(Q)}}}function X5(e,t,a){let n=this;return r;function r(i){return i===null?a(i):(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}var id={name:"codeIndented",tokenize:Y5},K5={partial:!0,tokenize:Q5};function Y5(e,t,a){let n=this;return r;function r(u){return e.enter("codeIndented"),se(e,o,"linePrefix",5)(u)}function o(u){let c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?i(u):a(u)}function i(u){return u===null?s(u):ae(u)?e.attempt(K5,i,s)(u):(e.enter("codeFlowValue"),l(u))}function l(u){return u===null||ae(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),l)}function s(u){return e.exit("codeIndented"),t(u)}}function Q5(e,t,a){let n=this;return r;function r(i){return n.parser.lazy[n.now().line]?a(i):ae(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r):se(e,o,"linePrefix",5)(i)}function o(i){let l=n.events[n.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):ae(i)?r(i):a(i)}}var o_={name:"codeText",previous:tq,resolve:eq,tokenize:aq};function eq(e){let t=e.length-4,a=3,n,r;if((e[a][1].type==="lineEnding"||e[a][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=a;++n<t;)if(e[n][1].type==="codeTextData"){e[a][1].type="codeTextPadding",e[t][1].type="codeTextPadding",a+=2,t-=2;break}}for(n=a-1,t++;++n<=t;)r===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(r=n):(n===t||e[n][1].type==="lineEnding")&&(e[r][1].type="codeTextData",n!==r+2&&(e[r][1].end=e[n-1][1].end,e.splice(r+2,n-r-2),t-=n-r-2,n=r+2),r=void 0);return e}function tq(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function aq(e,t,a){let n=this,r=0,o,i;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?a(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(i=e.enter("codeTextSequence"),o=0,d(f)):ae(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||ae(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),c)}function d(f){return f===96?(e.consume(f),o++,d):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}var lh=class{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,a){let n=a??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,a,n){let r=a||0;this.setCursor(Math.trunc(t));let o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&ld(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ld(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ld(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){let a=this.left.splice(t,Number.POSITIVE_INFINITY);ld(this.right,a.reverse())}else{let a=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ld(this.left,a.reverse())}}};function ld(e,t){let a=0;if(t.length<1e4)e.push(...t);else for(;a<t.length;)e.push(...t.slice(a,a+1e4)),a+=1e4}function sh(e){let t={},a=-1,n,r,o,i,l,s,u,c=new lh(e);for(;++a<c.length;){for(;a in t;)a=t[a];if(n=c.get(a),a&&n[1].type==="chunkFlow"&&c.get(a-1)[1].type==="listItemPrefix"&&(s=n[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,rq(c,a)),a=t[a],u=!0);else if(n[1]._container){for(o=a,r=void 0;o--;)if(i=c.get(o),i[1].type==="lineEnding"||i[1].type==="lineEndingBlank")i[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if(!(i[1].type==="linePrefix"||i[1].type==="listItemIndent"))break;r&&(n[1].end={...c.get(r)[1].start},l=c.slice(r,a),l.unshift(n),c.splice(r,a-r+1,l))}}return Et(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function rq(e,t){let a=e.get(t)[1],n=e.get(t)[2],r=t-1,o=[],i=a._tokenizer;i||(i=n.parser[a.contentType](a.start),a._contentTypeTextTrailing&&(i._contentTypeTextTrailing=!0));let l=i.events,s=[],u={},c,d,f=-1,p=a,m=0,S=0,C=[S];for(;p;){for(;e.get(++r)[1]!==p;);o.push(r),p._tokenizer||(c=n.sliceStream(p),p.next||c.push(null),d&&i.defineSkip(p.start),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=!0),i.write(c),p._isInFirstContentOfListItem&&(i._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=a;++f<l.length;)l[f][0]==="exit"&&l[f-1][0]==="enter"&&l[f][1].type===l[f-1][1].type&&l[f][1].start.line!==l[f][1].end.line&&(S=f+1,C.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(i.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),f=C.length;f--;){let h=l.slice(C[f],C[f+1]),y=o.pop();s.push([y,y+h.length-1]),e.splice(y,2,h)}for(s.reverse(),f=-1;++f<s.length;)u[m+s[f][0]]=m+s[f][1],m+=s[f][1]-s[f][0]-1;return u}var i_={resolve:oq,tokenize:iq},nq={partial:!0,tokenize:lq};function oq(e){return sh(e),e}function iq(e,t){let a;return n;function n(l){return e.enter("content"),a=e.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?o(l):ae(l)?e.check(nq,i,o)(l):(e.consume(l),r)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function i(l){return e.consume(l),e.exit("chunkContent"),a.next=e.enter("chunkContent",{contentType:"content",previous:a}),a=a.next,r}}function lq(e,t,a){let n=this;return r;function r(i){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),se(e,o,"linePrefix")}function o(i){if(i===null||ae(i))return a(i);let l=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(n.parser.constructs.flow,a,t)(i)}}function uh(e,t,a,n,r,o,i,l,s){let u=s||Number.POSITIVE_INFINITY,c=0;return d;function d(h){return h===60?(e.enter(n),e.enter(r),e.enter(o),e.consume(h),e.exit(o),f):h===null||h===32||h===41||_i(h)?a(h):(e.enter(n),e.enter(i),e.enter(l),e.enter("chunkString",{contentType:"string"}),S(h))}function f(h){return h===62?(e.enter(o),e.consume(h),e.exit(o),e.exit(r),e.exit(n),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===62?(e.exit("chunkString"),e.exit(l),f(h)):h===null||h===60||ae(h)?a(h):(e.consume(h),h===92?m:p)}function m(h){return h===60||h===62||h===92?(e.consume(h),p):p(h)}function S(h){return!c&&(h===null||h===41||Ae(h))?(e.exit("chunkString"),e.exit(l),e.exit(i),e.exit(n),t(h)):c<u&&h===40?(e.consume(h),c++,S):h===41?(e.consume(h),c--,S):h===null||h===32||h===40||_i(h)?a(h):(e.consume(h),h===92?C:S)}function C(h){return h===40||h===41||h===92?(e.consume(h),S):S(h)}}function ch(e,t,a,n,r,o){let i=this,l=0,s;return u;function u(p){return e.enter(n),e.enter(r),e.consume(p),e.exit(r),e.enter(o),c}function c(p){return l>999||p===null||p===91||p===93&&!s||p===94&&!l&&"_hiddenFootnoteSupport"in i.parser.constructs?a(p):p===93?(e.exit(o),e.enter(r),e.consume(p),e.exit(r),e.exit(n),t):ae(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||ae(p)||l++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!de(p)),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),l++,d):d(p)}}function dh(e,t,a,n,r,o){let i;return l;function l(f){return f===34||f===39||f===40?(e.enter(n),e.enter(r),e.consume(f),e.exit(r),i=f===40?41:f,s):a(f)}function s(f){return f===i?(e.enter(r),e.consume(f),e.exit(r),e.exit(n),t):(e.enter(o),u(f))}function u(f){return f===i?(e.exit(o),s(i)):f===null?a(f):ae(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),se(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===i||f===null||ae(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===i||f===92?(e.consume(f),c):c(f)}}function Ci(e,t){let a;return n;function n(r){return ae(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),a=!0,n):de(r)?se(e,n,a?"linePrefix":"lineSuffix")(r):t(r)}}var l_={name:"definition",tokenize:uq},sq={partial:!0,tokenize:cq};function uq(e,t,a){let n=this,r;return o;function o(p){return e.enter("definition"),i(p)}function i(p){return ch.call(n,e,l,a,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function l(p){return r=ia(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):a(p)}function s(p){return Ae(p)?Ci(e,u)(p):u(p)}function u(p){return uh(e,c,a,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(sq,d,d)(p)}function d(p){return de(p)?se(e,f,"whitespace")(p):f(p)}function f(p){return p===null||ae(p)?(e.exit("definition"),n.parser.defined.push(r),t(p)):a(p)}}function cq(e,t,a){return n;function n(l){return Ae(l)?Ci(e,r)(l):a(l)}function r(l){return dh(e,o,a,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return de(l)?se(e,i,"whitespace")(l):i(l)}function i(l){return l===null||ae(l)?t(l):a(l)}}var s_={name:"hardBreakEscape",tokenize:dq};function dq(e,t,a){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),r}function r(o){return ae(o)?(e.exit("hardBreakEscape"),t(o)):a(o)}}var u_={name:"headingAtx",resolve:fq,tokenize:pq};function fq(e,t){let a=e.length-2,n=3,r,o;return e[n][1].type==="whitespace"&&(n+=2),a-2>n&&e[a][1].type==="whitespace"&&(a-=2),e[a][1].type==="atxHeadingSequence"&&(n===a-1||a-4>n&&e[a-2][1].type==="whitespace")&&(a-=n+1===a?2:4),a>n&&(r={type:"atxHeadingText",start:e[n][1].start,end:e[a][1].end},o={type:"chunkText",start:e[n][1].start,end:e[a][1].end,contentType:"text"},Et(e,n,a-n+1,[["enter",r,t],["enter",o,t],["exit",o,t],["exit",r,t]])),e}function pq(e,t,a){let n=0;return r;function r(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),i(c)}function i(c){return c===35&&n++<6?(e.consume(c),i):c===null||Ae(c)?(e.exit("atxHeadingSequence"),l(c)):a(c)}function l(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||ae(c)?(e.exit("atxHeading"),t(c)):de(c)?se(e,l,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),l(c))}function u(c){return c===null||c===35||Ae(c)?(e.exit("atxHeadingText"),l(c)):(e.consume(c),u)}}var oz=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],c_=["pre","script","style","textarea"];var d_={concrete:!0,name:"htmlFlow",resolveTo:gq,tokenize:vq},mq={partial:!0,tokenize:xq},hq={partial:!0,tokenize:yq};function gq(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function vq(e,t,a){let n=this,r,o,i,l,s;return u;function u(T){return c(T)}function c(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),d}function d(T){return T===33?(e.consume(T),f):T===47?(e.consume(T),o=!0,S):T===63?(e.consume(T),r=3,n.interrupt?t:$):jt(T)?(e.consume(T),i=String.fromCharCode(T),C):a(T)}function f(T){return T===45?(e.consume(T),r=2,p):T===91?(e.consume(T),r=5,l=0,m):jt(T)?(e.consume(T),r=4,n.interrupt?t:$):a(T)}function p(T){return T===45?(e.consume(T),n.interrupt?t:$):a(T)}function m(T){let ze="CDATA[";return T===ze.charCodeAt(l++)?(e.consume(T),l===ze.length?n.interrupt?t:O:m):a(T)}function S(T){return jt(T)?(e.consume(T),i=String.fromCharCode(T),C):a(T)}function C(T){if(T===null||T===47||T===62||Ae(T)){let ze=T===47,aa=i.toLowerCase();return!ze&&!o&&c_.includes(aa)?(r=1,n.interrupt?t(T):O(T)):oz.includes(i.toLowerCase())?(r=6,ze?(e.consume(T),h):n.interrupt?t(T):O(T)):(r=7,n.interrupt&&!n.parser.lazy[n.now().line]?a(T):o?y(T):g(T))}return T===45||It(T)?(e.consume(T),i+=String.fromCharCode(T),C):a(T)}function h(T){return T===62?(e.consume(T),n.interrupt?t:O):a(T)}function y(T){return de(T)?(e.consume(T),y):k(T)}function g(T){return T===47?(e.consume(T),k):T===58||T===95||jt(T)?(e.consume(T),b):de(T)?(e.consume(T),g):k(T)}function b(T){return T===45||T===46||T===58||T===95||It(T)?(e.consume(T),b):L(T)}function L(T){return T===61?(e.consume(T),x):de(T)?(e.consume(T),L):g(T)}function x(T){return T===null||T===60||T===61||T===62||T===96?a(T):T===34||T===39?(e.consume(T),s=T,w):de(T)?(e.consume(T),x):I(T)}function w(T){return T===s?(e.consume(T),s=null,E):T===null||ae(T)?a(T):(e.consume(T),w)}function I(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ae(T)?L(T):(e.consume(T),I)}function E(T){return T===47||T===62||de(T)?g(T):a(T)}function k(T){return T===62?(e.consume(T),F):a(T)}function F(T){return T===null||ae(T)?O(T):de(T)?(e.consume(T),F):a(T)}function O(T){return T===45&&r===2?(e.consume(T),ie):T===60&&r===1?(e.consume(T),ne):T===62&&r===4?(e.consume(T),ce):T===63&&r===3?(e.consume(T),$):T===93&&r===5?(e.consume(T),Me):ae(T)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(mq,_t,U)(T)):T===null||ae(T)?(e.exit("htmlFlowData"),U(T)):(e.consume(T),O)}function U(T){return e.check(hq,P,_t)(T)}function P(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),Q}function Q(T){return T===null||ae(T)?U(T):(e.enter("htmlFlowData"),O(T))}function ie(T){return T===45?(e.consume(T),$):O(T)}function ne(T){return T===47?(e.consume(T),i="",ue):O(T)}function ue(T){if(T===62){let ze=i.toLowerCase();return c_.includes(ze)?(e.consume(T),ce):O(T)}return jt(T)&&i.length<8?(e.consume(T),i+=String.fromCharCode(T),ue):O(T)}function Me(T){return T===93?(e.consume(T),$):O(T)}function $(T){return T===62?(e.consume(T),ce):T===45&&r===2?(e.consume(T),$):O(T)}function ce(T){return T===null||ae(T)?(e.exit("htmlFlowData"),_t(T)):(e.consume(T),ce)}function _t(T){return e.exit("htmlFlow"),t(T)}}function yq(e,t,a){let n=this;return r;function r(i){return ae(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),o):a(i)}function o(i){return n.parser.lazy[n.now().line]?a(i):t(i)}}function xq(e,t,a){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Gr,t,a)}}var f_={name:"htmlText",tokenize:bq};function bq(e,t,a){let n=this,r,o,i;return l;function l($){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume($),s}function s($){return $===33?(e.consume($),u):$===47?(e.consume($),L):$===63?(e.consume($),g):jt($)?(e.consume($),I):a($)}function u($){return $===45?(e.consume($),c):$===91?(e.consume($),o=0,m):jt($)?(e.consume($),y):a($)}function c($){return $===45?(e.consume($),p):a($)}function d($){return $===null?a($):$===45?(e.consume($),f):ae($)?(i=d,ne($)):(e.consume($),d)}function f($){return $===45?(e.consume($),p):d($)}function p($){return $===62?ie($):$===45?f($):d($)}function m($){let ce="CDATA[";return $===ce.charCodeAt(o++)?(e.consume($),o===ce.length?S:m):a($)}function S($){return $===null?a($):$===93?(e.consume($),C):ae($)?(i=S,ne($)):(e.consume($),S)}function C($){return $===93?(e.consume($),h):S($)}function h($){return $===62?ie($):$===93?(e.consume($),h):S($)}function y($){return $===null||$===62?ie($):ae($)?(i=y,ne($)):(e.consume($),y)}function g($){return $===null?a($):$===63?(e.consume($),b):ae($)?(i=g,ne($)):(e.consume($),g)}function b($){return $===62?ie($):g($)}function L($){return jt($)?(e.consume($),x):a($)}function x($){return $===45||It($)?(e.consume($),x):w($)}function w($){return ae($)?(i=w,ne($)):de($)?(e.consume($),w):ie($)}function I($){return $===45||It($)?(e.consume($),I):$===47||$===62||Ae($)?E($):a($)}function E($){return $===47?(e.consume($),ie):$===58||$===95||jt($)?(e.consume($),k):ae($)?(i=E,ne($)):de($)?(e.consume($),E):ie($)}function k($){return $===45||$===46||$===58||$===95||It($)?(e.consume($),k):F($)}function F($){return $===61?(e.consume($),O):ae($)?(i=F,ne($)):de($)?(e.consume($),F):E($)}function O($){return $===null||$===60||$===61||$===62||$===96?a($):$===34||$===39?(e.consume($),r=$,U):ae($)?(i=O,ne($)):de($)?(e.consume($),O):(e.consume($),P)}function U($){return $===r?(e.consume($),r=void 0,Q):$===null?a($):ae($)?(i=U,ne($)):(e.consume($),U)}function P($){return $===null||$===34||$===39||$===60||$===61||$===96?a($):$===47||$===62||Ae($)?E($):(e.consume($),P)}function Q($){return $===47||$===62||Ae($)?E($):a($)}function ie($){return $===62?(e.consume($),e.exit("htmlTextData"),e.exit("htmlText"),t):a($)}function ne($){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),ue}function ue($){return de($)?se(e,Me,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):Me($)}function Me($){return e.enter("htmlTextData"),i($)}}var Li={name:"labelEnd",resolveAll:_q,resolveTo:kq,tokenize:Cq},Sq={tokenize:Lq},wq={tokenize:Tq},Iq={tokenize:Aq};function _q(e){let t=-1,a=[];for(;++t<e.length;){let n=e[t][1];if(a.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){let r=n.type==="labelImage"?4:2;n.type="data",t+=r}}return e.length!==a.length&&Et(e,0,e.length,a),e}function kq(e,t){let a=e.length,n=0,r,o,i,l;for(;a--;)if(r=e[a][1],o){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[a][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(i){if(e[a][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(o=a,r.type!=="labelLink")){n=2;break}}else r.type==="labelEnd"&&(i=a);let s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[i][1].end}},c={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[i-2][1].start}};return l=[["enter",s,t],["enter",u,t]],l=ga(l,e.slice(o+1,o+n+3)),l=ga(l,[["enter",c,t]]),l=ga(l,Mo(t.parser.constructs.insideSpan.null,e.slice(o+n+4,i-3),t)),l=ga(l,[["exit",c,t],e[i-2],e[i-1],["exit",u,t]]),l=ga(l,e.slice(i+1)),l=ga(l,[["exit",s,t]]),Et(e,o,e.length,l),e}function Cq(e,t,a){let n=this,r=n.events.length,o,i;for(;r--;)if((n.events[r][1].type==="labelImage"||n.events[r][1].type==="labelLink")&&!n.events[r][1]._balanced){o=n.events[r][1];break}return l;function l(f){return o?o._inactive?d(f):(i=n.parser.defined.includes(ia(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),s):a(f)}function s(f){return f===40?e.attempt(Sq,c,i?c:d)(f):f===91?e.attempt(wq,c,i?u:d)(f):i?c(f):d(f)}function u(f){return e.attempt(Iq,c,d)(f)}function c(f){return t(f)}function d(f){return o._balanced=!0,a(f)}}function Lq(e,t,a){return n;function n(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),r}function r(d){return Ae(d)?Ci(e,o)(d):o(d)}function o(d){return d===41?c(d):uh(e,i,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function i(d){return Ae(d)?Ci(e,s)(d):c(d)}function l(d){return a(d)}function s(d){return d===34||d===39||d===40?dh(e,u,a,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Ae(d)?Ci(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):a(d)}}function Tq(e,t,a){let n=this;return r;function r(l){return ch.call(n,e,o,i,"reference","referenceMarker","referenceString")(l)}function o(l){return n.parser.defined.includes(ia(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(l):a(l)}function i(l){return a(l)}}function Aq(e,t,a){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),r}function r(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):a(o)}}var p_={name:"labelStartImage",resolveAll:Li.resolveAll,tokenize:Eq};function Eq(e,t,a){let n=this;return r;function r(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),i):a(l)}function i(l){return l===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(l):t(l)}}var m_={name:"labelStartLink",resolveAll:Li.resolveAll,tokenize:$q};function $q(e,t,a){let n=this;return r;function r(i){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelLink"),o}function o(i){return i===94&&"_hiddenFootnoteSupport"in n.parser.constructs?a(i):t(i)}}var sd={name:"lineEnding",tokenize:Mq};function Mq(e,t){return a;function a(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),se(e,t,"linePrefix")}}var Ti={name:"thematicBreak",tokenize:zq};function zq(e,t,a){let n=0,r;return o;function o(u){return e.enter("thematicBreak"),i(u)}function i(u){return r=u,l(u)}function l(u){return u===r?(e.enter("thematicBreakSequence"),s(u)):n>=3&&(u===null||ae(u))?(e.exit("thematicBreak"),t(u)):a(u)}function s(u){return u===r?(e.consume(u),n++,s):(e.exit("thematicBreakSequence"),de(u)?se(e,l,"whitespace")(u):l(u))}}var la={continuation:{tokenize:Pq},exit:Nq,name:"list",tokenize:Rq},Dq={partial:!0,tokenize:jq},Oq={partial:!0,tokenize:Uq};function Rq(e,t,a){let n=this,r=n.events[n.events.length-1],o=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,i=0;return l;function l(p){let m=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:nd(p)){if(n.containerState.type||(n.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Ti,a,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return a(p)}function s(p){return nd(p)&&++i<10?(e.consume(p),s):(!n.interrupt||i<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):a(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(Gr,n.interrupt?a:c,e.attempt(Dq,f,d))}function c(p){return n.containerState.initialBlankLine=!0,o++,f(p)}function d(p){return de(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),f):a(p)}function f(p){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Pq(e,t,a){let n=this;return n.containerState._closeFlow=void 0,e.check(Gr,r,o);function r(l){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,se(e,t,"listItemIndent",n.containerState.size+1)(l)}function o(l){return n.containerState.furtherBlankLines||!de(l)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,i(l)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(Oq,t,i)(l))}function i(l){return n.containerState._closeFlow=!0,n.interrupt=void 0,se(e,e.attempt(la,t,a),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Uq(e,t,a){let n=this;return se(e,r,"listItemIndent",n.containerState.size+1);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===n.containerState.size?t(o):a(o)}}function Nq(e){e.exit(this.containerState.type)}function jq(e,t,a){let n=this;return se(e,r,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(o){let i=n.events[n.events.length-1];return!de(o)&&i&&i[1].type==="listItemPrefixWhitespace"?t(o):a(o)}}var fh={name:"setextUnderline",resolveTo:Bq,tokenize:Fq};function Bq(e,t){let a=e.length,n,r,o;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){n=a;break}e[a][1].type==="paragraph"&&(r=a)}else e[a][1].type==="content"&&e.splice(a,1),!o&&e[a][1].type==="definition"&&(o=a);let i={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=i,e.push(["exit",i,t]),e}function Fq(e,t,a){let n=this,r;return o;function o(u){let c=n.events.length,d;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){d=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||d)?(e.enter("setextHeadingLine"),r=u,i(u)):a(u)}function i(u){return e.enter("setextHeadingLineSequence"),l(u)}function l(u){return u===r?(e.consume(u),l):(e.exit("setextHeadingLineSequence"),de(u)?se(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||ae(u)?(e.exit("setextHeadingLine"),t(u)):a(u)}}var iz={tokenize:qq};function qq(e){let t=this,a=e.attempt(Gr,n,e.attempt(this.parser.constructs.flowInitial,r,se(e,e.attempt(this.parser.constructs.flow,r,e.attempt(i_,r)),"linePrefix")));return a;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,a}function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,a}}var lz={resolveAll:dz()},sz=cz("string"),uz=cz("text");function cz(e){return{resolveAll:dz(e==="text"?Zq:void 0),tokenize:t};function t(a){let n=this,r=this.parser.constructs[e],o=a.attempt(r,i,l);return i;function i(c){return u(c)?o(c):l(c)}function l(c){if(c===null){a.consume(c);return}return a.enter("data"),a.consume(c),s}function s(c){return u(c)?(a.exit("data"),o(c)):(a.consume(c),s)}function u(c){if(c===null)return!0;let d=r[c],f=-1;if(d)for(;++f<d.length;){let p=d[f];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function dz(e){return t;function t(a,n){let r=-1,o;for(;++r<=a.length;)o===void 0?a[r]&&a[r][1].type==="data"&&(o=r,r++):(!a[r]||a[r][1].type!=="data")&&(r!==o+2&&(a[o][1].end=a[r-1][1].end,a.splice(o+2,r-o-2),r=o+2),o=void 0);return e?e(a,n):a}}function Zq(e,t){let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){let n=e[a-1][1],r=t.sliceStream(n),o=r.length,i=-1,l=0,s;for(;o--;){let u=r[o];if(typeof u=="string"){for(i=u.length;u.charCodeAt(i-1)===32;)l++,i--;if(i)break;i=-1}else if(u===-2)s=!0,l++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&a===e.length&&(l=0),l){let u={type:a===e.length||s||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?i:n.start._bufferIndex+i,_index:n.start._index+o,line:n.end.line,column:n.end.column-l,offset:n.end.offset-l},end:{...n.end}};n.end={...u.start},n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(a,0,["enter",u,t],["exit",u,t]),a+=2)}a++}return e}var h_={};hr(h_,{attentionMarkers:()=>Yq,contentInitial:()=>Vq,disable:()=>Qq,document:()=>Hq,flow:()=>Wq,flowInitial:()=>Gq,insideSpan:()=>Kq,string:()=>Jq,text:()=>Xq});var Hq={42:la,43:la,45:la,48:la,49:la,50:la,51:la,52:la,53:la,54:la,55:la,56:la,57:la,62:rh},Vq={91:l_},Gq={[-2]:id,[-1]:id,32:id},Wq={35:u_,42:Ti,45:[fh,Ti],60:d_,61:fh,95:Ti,96:ih,126:ih},Jq={38:oh,92:nh},Xq={[-5]:sd,[-4]:sd,[-3]:sd,33:p_,38:oh,42:od,60:[n_,f_],91:m_,92:[s_,nh],93:Li,95:od,96:o_},Kq={null:[od,lz]},Yq={null:[42,95]},Qq={null:[]};function fz(e,t,a){let n={_bufferIndex:-1,_index:0,line:a&&a.line||1,column:a&&a.column||1,offset:a&&a.offset||0},r={},o=[],i=[],l=[],s=!0,u={attempt:E(w),check:E(I),consume:b,enter:L,exit:x,interrupt:E(I,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,events:[],now:C,parser:e,previous:null,sliceSerialize:m,sliceStream:S,write:p},d=t.tokenize.call(c,u),f;return t.resolveAll&&o.push(t),c;function p(U){return i=ga(i,U),y(),i[i.length-1]!==null?[]:(k(t,0),c.events=Mo(o,c.events,c),c.events)}function m(U,P){return t9(S(U),P)}function S(U){return e9(i,U)}function C(){let{_bufferIndex:U,_index:P,line:Q,column:ie,offset:ne}=n;return{_bufferIndex:U,_index:P,line:Q,column:ie,offset:ne}}function h(U){r[U.line]=U.column,O()}function y(){let U;for(;n._index<i.length;){let P=i[n._index];if(typeof P=="string")for(U=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===U&&n._bufferIndex<P.length;)g(P.charCodeAt(n._bufferIndex));else g(P)}}function g(U){s=void 0,f=U,d=d(U)}function b(U){ae(U)?(n.line++,n.column=1,n.offset+=U===-3?2:1,O()):U!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===i[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=U,s=!0}function L(U,P){let Q=P||{};return Q.type=U,Q.start=C(),c.events.push(["enter",Q,c]),l.push(Q),Q}function x(U){let P=l.pop();return P.end=C(),c.events.push(["exit",P,c]),P}function w(U,P){k(U,P.from)}function I(U,P){P.restore()}function E(U,P){return Q;function Q(ie,ne,ue){let Me,$,ce,_t;return Array.isArray(ie)?ze(ie):"tokenize"in ie?ze([ie]):T(ie);function T(A){return M;function M(j){let B=j!==null&&A[j],Y=j!==null&&A.null,ke=[...Array.isArray(B)?B:B?[B]:[],...Array.isArray(Y)?Y:Y?[Y]:[]];return ze(ke)(j)}}function ze(A){return Me=A,$=0,A.length===0?ue:aa(A[$])}function aa(A){return M;function M(j){return _t=F(),ce=A,A.partial||(c.currentConstruct=A),A.name&&c.parser.constructs.disable.null.includes(A.name)?_(j):A.tokenize.call(P?Object.assign(Object.create(c),P):c,u,K,_)(j)}}function K(A){return s=!0,U(ce,_t),ne}function _(A){return s=!0,_t.restore(),++$<Me.length?aa(Me[$]):ue}}}function k(U,P){U.resolveAll&&!o.includes(U)&&o.push(U),U.resolve&&Et(c.events,P,c.events.length-P,U.resolve(c.events.slice(P),c)),U.resolveTo&&(c.events=U.resolveTo(c.events,c))}function F(){let U=C(),P=c.previous,Q=c.currentConstruct,ie=c.events.length,ne=Array.from(l);return{from:ie,restore:ue};function ue(){n=U,c.previous=P,c.currentConstruct=Q,c.events.length=ie,l=ne,O()}}function O(){n.line in r&&n.column<2&&(n.column=r[n.line],n.offset+=r[n.line]-1)}}function e9(e,t){let a=t.start._index,n=t.start._bufferIndex,r=t.end._index,o=t.end._bufferIndex,i;if(a===r)i=[e[a].slice(n,o)];else{if(i=e.slice(a,r),n>-1){let l=i[0];typeof l=="string"?i[0]=l.slice(n):i.shift()}o>0&&i.push(e[r].slice(0,o))}return i}function t9(e,t){let a=-1,n=[],r;for(;++a<e.length;){let o=e[a],i;if(typeof o=="string")i=o;else switch(o){case-5:{i="\r";break}case-4:{i=`
|
|
71
|
-
`;break}case-3:{i=`\r
|
|
72
|
-
`;break}case-2:{i=t?" ":" ";break}case-1:{if(!t&&r)continue;i=" ";break}default:i=String.fromCharCode(o)}r=o===-2,n.push(i)}return n.join("")}function g_(e){let n={constructs:th([h_,...(e||{}).extensions||[]]),content:r(ez),defined:[],document:r(az),flow:r(iz),lazy:{},string:r(sz),text:r(uz)};return n;function r(o){return i;function i(l){return fz(n,o,l)}}}function v_(e){for(;!sh(e););return e}var pz=/[\0\t\n\r]/g;function y_(){let e=1,t="",a=!0,n;return r;function r(o,i,l){let s=[],u,c,d,f,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(i||void 0).decode(o)),d=0,t="",a&&(o.charCodeAt(0)===65279&&d++,a=void 0);d<o.length;){if(pz.lastIndex=d,u=pz.exec(o),f=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(f),!u){t=o.slice(d);break}if(p===10&&d===f&&n)s.push(-3),n=void 0;else switch(n&&(s.push(-5),n=void 0),d<f&&(s.push(o.slice(d,f)),e+=f-d),p){case 0:{s.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,s.push(-2);e++<c;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:n=!0,e=1}d=f+1}return l&&(n&&s.push(-5),t&&s.push(t),s.push(null)),s}}var a9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mz(e){return e.replace(a9,r9)}function r9(e,t,a){if(t)return t;if(a.charCodeAt(0)===35){let r=a.charCodeAt(1),o=r===120||r===88;return ah(a.slice(o?2:1),o?16:10)}return As(a)||e}var gz={}.hasOwnProperty;function x_(e,t,a){return t&&typeof t=="object"&&(a=t,t=void 0),n9(a)(v_(g_(a).document().write(y_()(e,t,!0))))}function n9(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(vt),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(gt),blockQuote:o(j),characterEscape:E,characterReference:E,codeFenced:o(B),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:o(B,i),codeText:o(Y,i),codeTextData:E,data:E,codeFlowValue:E,definition:o(ke),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:o(Qe),hardBreakEscape:o(Bt),hardBreakTrailing:o(Bt),htmlFlow:o(kt,i),htmlFlowData:E,htmlText:o(kt,i),htmlTextData:E,image:o(Ft),label:i,link:o(vt),listItem:o(Tr),listItemValue:f,listOrdered:o(et,d),listUnordered:o(et),paragraph:o(Oi),reference:T,referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:o(gt),strong:o(Ns),thematicBreak:o($t)},exit:{atxHeading:s(),atxHeadingSequence:L,autolink:s(),autolinkEmail:M,autolinkProtocol:A,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:aa,characterReferenceMarkerNumeric:aa,characterReferenceValue:K,characterReference:_,codeFenced:s(C),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:k,codeIndented:s(h),codeText:s(Q),codeTextData:k,data:k,definition:s(),definitionDestinationString:b,definitionLabelString:y,definitionTitleString:g,emphasis:s(),hardBreakEscape:s(O),hardBreakTrailing:s(O),htmlFlow:s(U),htmlFlowData:k,htmlText:s(P),htmlTextData:k,image:s(ne),label:Me,labelText:ue,lineEnding:F,link:s(ie),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ze,resourceDestinationString:$,resourceTitleString:ce,resource:_t,setextHeading:s(I),setextHeadingLineSequence:w,setextHeadingText:x,strong:s(),thematicBreak:s()}};vz(t,(e||{}).mdastExtensions||[]);let a={};return n;function n(R){let X={type:"root",children:[]},he={stack:[X],tokenStack:[],config:t,enter:l,exit:u,buffer:i,resume:c,data:a},be=[],tt=-1;for(;++tt<R.length;)if(R[tt][1].type==="listOrdered"||R[tt][1].type==="listUnordered")if(R[tt][0]==="enter")be.push(tt);else{let mr=be.pop();tt=r(R,mr,tt)}for(tt=-1;++tt<R.length;){let mr=t[R[tt][0]];gz.call(mr,R[tt][1].type)&&mr[R[tt][1].type].call(Object.assign({sliceSerialize:R[tt][2].sliceSerialize},he),R[tt][1])}if(he.tokenStack.length>0){let mr=he.tokenStack[he.tokenStack.length-1];(mr[1]||hz).call(he,void 0,mr[0])}for(X.position={start:zo(R.length>0?R[0][1].start:{line:1,column:1,offset:0}),end:zo(R.length>0?R[R.length-2][1].end:{line:1,column:1,offset:0})},tt=-1;++tt<t.transforms.length;)X=t.transforms[tt](X)||X;return X}function r(R,X,he){let be=X-1,tt=-1,mr=!1,Po,Jr,js,Bs;for(;++be<=he;){let Ea=R[be];switch(Ea[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ea[0]==="enter"?tt++:tt--,Bs=void 0;break}case"lineEndingBlank":{Ea[0]==="enter"&&(Po&&!Bs&&!tt&&!js&&(js=be),Bs=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Bs=void 0}if(!tt&&Ea[0]==="enter"&&Ea[1].type==="listItemPrefix"||tt===-1&&Ea[0]==="exit"&&(Ea[1].type==="listUnordered"||Ea[1].type==="listOrdered")){if(Po){let Ri=be;for(Jr=void 0;Ri--;){let Xr=R[Ri];if(Xr[1].type==="lineEnding"||Xr[1].type==="lineEndingBlank"){if(Xr[0]==="exit")continue;Jr&&(R[Jr][1].type="lineEndingBlank",mr=!0),Xr[1].type="lineEnding",Jr=Ri}else if(!(Xr[1].type==="linePrefix"||Xr[1].type==="blockQuotePrefix"||Xr[1].type==="blockQuotePrefixWhitespace"||Xr[1].type==="blockQuoteMarker"||Xr[1].type==="listItemIndent"))break}js&&(!Jr||js<Jr)&&(Po._spread=!0),Po.end=Object.assign({},Jr?R[Jr][1].start:Ea[1].end),R.splice(Jr||be,0,["exit",Po,Ea[2]]),be++,he++}if(Ea[1].type==="listItemPrefix"){let Ri={type:"listItem",_spread:!1,start:Object.assign({},Ea[1].start),end:void 0};Po=Ri,R.splice(be,0,["enter",Ri,Ea[2]]),be++,he++,js=void 0,Bs=!0}}}return R[X][1]._spread=mr,he}function o(R,X){return he;function he(be){l.call(this,R(be),be),X&&X.call(this,be)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(R,X,he){this.stack[this.stack.length-1].children.push(R),this.stack.push(R),this.tokenStack.push([X,he||void 0]),R.position={start:zo(X.start),end:void 0}}function s(R){return X;function X(he){R&&R.call(this,he),u.call(this,he)}}function u(R,X){let he=this.stack.pop(),be=this.tokenStack.pop();if(be)be[0].type!==R.type&&(X?X.call(this,R,be[0]):(be[1]||hz).call(this,R,be[0]));else throw new Error("Cannot close `"+R.type+"` ("+Eo({start:R.start,end:R.end})+"): it\u2019s not open");he.position.end=zo(R.end)}function c(){return Ii(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(R){if(this.data.expectingFirstListItemValue){let X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(R),10),this.data.expectingFirstListItemValue=void 0}}function p(){let R=this.resume(),X=this.stack[this.stack.length-1];X.lang=R}function m(){let R=this.resume(),X=this.stack[this.stack.length-1];X.meta=R}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){let R=this.resume(),X=this.stack[this.stack.length-1];X.value=R.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function h(){let R=this.resume(),X=this.stack[this.stack.length-1];X.value=R.replace(/(\r?\n|\r)$/g,"")}function y(R){let X=this.resume(),he=this.stack[this.stack.length-1];he.label=X,he.identifier=ia(this.sliceSerialize(R)).toLowerCase()}function g(){let R=this.resume(),X=this.stack[this.stack.length-1];X.title=R}function b(){let R=this.resume(),X=this.stack[this.stack.length-1];X.url=R}function L(R){let X=this.stack[this.stack.length-1];if(!X.depth){let he=this.sliceSerialize(R).length;X.depth=he}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function w(R){let X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(R).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function E(R){let he=this.stack[this.stack.length-1].children,be=he[he.length-1];(!be||be.type!=="text")&&(be=Ce(),be.position={start:zo(R.start),end:void 0},he.push(be)),this.stack.push(be)}function k(R){let X=this.stack.pop();X.value+=this.sliceSerialize(R),X.position.end=zo(R.end)}function F(R){let X=this.stack[this.stack.length-1];if(this.data.atHardBreak){let he=X.children[X.children.length-1];he.position.end=zo(R.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(X.type)&&(E.call(this,R),k.call(this,R))}function O(){this.data.atHardBreak=!0}function U(){let R=this.resume(),X=this.stack[this.stack.length-1];X.value=R}function P(){let R=this.resume(),X=this.stack[this.stack.length-1];X.value=R}function Q(){let R=this.resume(),X=this.stack[this.stack.length-1];X.value=R}function ie(){let R=this.stack[this.stack.length-1];if(this.data.inReference){let X=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=X,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function ne(){let R=this.stack[this.stack.length-1];if(this.data.inReference){let X=this.data.referenceType||"shortcut";R.type+="Reference",R.referenceType=X,delete R.url,delete R.title}else delete R.identifier,delete R.label;this.data.referenceType=void 0}function ue(R){let X=this.sliceSerialize(R),he=this.stack[this.stack.length-2];he.label=mz(X),he.identifier=ia(X).toLowerCase()}function Me(){let R=this.stack[this.stack.length-1],X=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){let be=R.children;he.children=be}else he.alt=X}function $(){let R=this.resume(),X=this.stack[this.stack.length-1];X.url=R}function ce(){let R=this.resume(),X=this.stack[this.stack.length-1];X.title=R}function _t(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function ze(R){let X=this.resume(),he=this.stack[this.stack.length-1];he.label=X,he.identifier=ia(this.sliceSerialize(R)).toLowerCase(),this.data.referenceType="full"}function aa(R){this.data.characterReferenceType=R.type}function K(R){let X=this.sliceSerialize(R),he=this.data.characterReferenceType,be;he?(be=ah(X,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):be=As(X);let tt=this.stack[this.stack.length-1];tt.value+=be}function _(R){let X=this.stack.pop();X.position.end=zo(R.end)}function A(R){k.call(this,R);let X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(R)}function M(R){k.call(this,R);let X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(R)}function j(){return{type:"blockquote",children:[]}}function B(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Qe(){return{type:"emphasis",children:[]}}function gt(){return{type:"heading",depth:0,children:[]}}function Bt(){return{type:"break"}}function kt(){return{type:"html",value:""}}function Ft(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function et(R){return{type:"list",ordered:R.type==="listOrdered",start:null,spread:R._spread,children:[]}}function Tr(R){return{type:"listItem",spread:R._spread,checked:null,children:[]}}function Oi(){return{type:"paragraph",children:[]}}function Ns(){return{type:"strong",children:[]}}function Ce(){return{type:"text",value:""}}function $t(){return{type:"thematicBreak"}}}function zo(e){return{line:e.line,column:e.column,offset:e.offset}}function vz(e,t){let a=-1;for(;++a<t.length;){let n=t[a];Array.isArray(n)?vz(e,n):o9(e,n)}}function o9(e,t){let a;for(a in t)if(gz.call(t,a))switch(a){case"canContainEols":{let n=t[a];n&&e[a].push(...n);break}case"transforms":{let n=t[a];n&&e[a].push(...n);break}case"enter":case"exit":{let n=t[a];n&&Object.assign(e[a],n);break}}}function hz(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Eo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Eo({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Eo({start:t.start,end:t.end})+") is still open")}function ph(e){let t=this;t.parser=a;function a(n){return x_(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function yz(e,t){let a={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,a),e.applyData(t,a)}function xz(e,t){let a={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,a),[e.applyData(t,a),{type:"text",value:`
|
|
73
|
-
`}]}function bz(e,t){let a=t.value?t.value+`
|
|
74
|
-
`:"",n={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(n.className=["language-"+r[0]]);let o={type:"element",tagName:"code",properties:n,children:[{type:"text",value:a}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Sz(e,t){let a={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function wz(e,t){let a={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Iz(e,t){let a=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),r=pr(n.toLowerCase()),o=e.footnoteOrder.indexOf(n),i,l=e.footnoteCounts.get(n);l===void 0?(l=0,e.footnoteOrder.push(n),i=e.footnoteOrder.length):i=o+1,l+=1,e.footnoteCounts.set(n,l);let s={type:"element",tagName:"a",properties:{href:"#"+a+"fn-"+r,id:a+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function _z(e,t){let a={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function kz(e,t){if(e.options.allowDangerousHtml){let a={type:"raw",value:t.value};return e.patch(t,a),e.applyData(t,a)}}function mh(e,t){let a=t.referenceType,n="]";if(a==="collapsed"?n+="[]":a==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];let r=e.all(t),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift({type:"text",value:"["});let i=r[r.length-1];return i&&i.type==="text"?i.value+=n:r.push({type:"text",value:n}),r}function Cz(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return mh(e,t);let r={src:pr(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)}function Lz(e,t){let a={src:pr(t.url)};t.alt!==null&&t.alt!==void 0&&(a.alt=t.alt),t.title!==null&&t.title!==void 0&&(a.title=t.title);let n={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,n),e.applyData(t,n)}function Tz(e,t){let a={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,a);let n={type:"element",tagName:"code",properties:{},children:[a]};return e.patch(t,n),e.applyData(t,n)}function Az(e,t){let a=String(t.identifier).toUpperCase(),n=e.definitionById.get(a);if(!n)return mh(e,t);let r={href:pr(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);let o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Ez(e,t){let a={href:pr(t.url)};t.title!==null&&t.title!==void 0&&(a.title=t.title);let n={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $z(e,t,a){let n=e.all(t),r=a?i9(a):Mz(t),o={},i=[];if(typeof t.checked=="boolean"){let c=n[0],d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},n.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<n.length;){let c=n[l];(r||l!==0||c.type!=="element"||c.tagName!=="p")&&i.push({type:"text",value:`
|
|
75
|
-
`}),c.type==="element"&&c.tagName==="p"&&!r?i.push(...c.children):i.push(c)}let s=n[n.length-1];s&&(r||s.type!=="element"||s.tagName!=="p")&&i.push({type:"text",value:`
|
|
76
|
-
`});let u={type:"element",tagName:"li",properties:o,children:i};return e.patch(t,u),e.applyData(t,u)}function i9(e){let t=!1;if(e.type==="list"){t=e.spread||!1;let a=e.children,n=-1;for(;!t&&++n<a.length;)t=Mz(a[n])}return t}function Mz(e){let t=e.spread;return t??e.children.length>1}function zz(e,t){let a={},n=e.all(t),r=-1;for(typeof t.start=="number"&&t.start!==1&&(a.start=t.start);++r<n.length;){let i=n[r];if(i.type==="element"&&i.tagName==="li"&&i.properties&&Array.isArray(i.properties.className)&&i.properties.className.includes("task-list-item")){a.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:a,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function Dz(e,t){let a={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Oz(e,t){let a={type:"root",children:e.wrap(e.all(t))};return e.patch(t,a),e.applyData(t,a)}function Rz(e,t){let a={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Pz(e,t){let a=e.all(t),n=a.shift(),r=[];if(n){let i={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],i),r.push(i)}if(a.length>0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(a,!0)},l=Ts(t.children[1]),s=eh(t.children[t.children.length-1]);l&&s&&(i.position={start:l,end:s}),r.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Uz(e,t,a){let n=a?a.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",i=a&&a.type==="table"?a.align:void 0,l=i?i.length:t.children.length,s=-1,u=[];for(;++s<l;){let d=t.children[s],f={},p=i?i[s]:void 0;p&&(f.align=p);let m={type:"element",tagName:o,properties:f,children:[]};d&&(m.children=e.all(d),e.patch(d,m),m=e.applyData(d,m)),u.push(m)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function Nz(e,t){let a={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Bz(e){let t=String(e),a=/\r?\n|\r/g,n=a.exec(t),r=0,o=[];for(;n;)o.push(jz(t.slice(r,n.index),r>0,!0),n[0]),r=n.index+n[0].length,n=a.exec(t);return o.push(jz(t.slice(r),r>0,!1)),o.join("")}function jz(e,t,a){let n=0,r=e.length;if(t){let o=e.codePointAt(n);for(;o===9||o===32;)n++,o=e.codePointAt(n)}if(a){let o=e.codePointAt(r-1);for(;o===9||o===32;)r--,o=e.codePointAt(r-1)}return r>n?e.slice(n,r):""}function Fz(e,t){let a={type:"text",value:Bz(String(t.value))};return e.patch(t,a),e.applyData(t,a)}function qz(e,t){let a={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,a),e.applyData(t,a)}var Zz={blockquote:yz,break:xz,code:bz,delete:Sz,emphasis:wz,footnoteReference:Iz,heading:_z,html:kz,imageReference:Cz,image:Lz,inlineCode:Tz,linkReference:Az,link:Ez,listItem:$z,list:zz,paragraph:Dz,root:Oz,strong:Rz,table:Pz,tableCell:Nz,tableRow:Uz,text:Fz,thematicBreak:qz,toml:hh,yaml:hh,definition:hh,footnoteDefinition:hh};function hh(){}var Hz=typeof self=="object"?self:globalThis,c9=(e,t)=>{let a=(r,o)=>(e.set(o,r),r),n=r=>{if(e.has(r))return e.get(r);let[o,i]=t[r];switch(o){case 0:case-1:return a(i,r);case 1:{let l=a([],r);for(let s of i)l.push(n(s));return l}case 2:{let l=a({},r);for(let[s,u]of i)l[n(s)]=n(u);return l}case 3:return a(new Date(i),r);case 4:{let{source:l,flags:s}=i;return a(new RegExp(l,s),r)}case 5:{let l=a(new Map,r);for(let[s,u]of i)l.set(n(s),n(u));return l}case 6:{let l=a(new Set,r);for(let s of i)l.add(n(s));return l}case 7:{let{name:l,message:s}=i;return a(new Hz[l](s),r)}case 8:return a(BigInt(i),r);case"BigInt":return a(Object(BigInt(i)),r);case"ArrayBuffer":return a(new Uint8Array(i).buffer,i);case"DataView":{let{buffer:l}=new Uint8Array(i);return a(new DataView(l),i)}}return a(new Hz[o](i),r)};return n},w_=e=>c9(new Map,e)(0);var Es="",{toString:d9}={},{keys:f9}=Object,ud=e=>{let t=typeof e;if(t!=="object"||!e)return[0,t];let a=d9.call(e).slice(8,-1);switch(a){case"Array":return[1,Es];case"Object":return[2,Es];case"Date":return[3,Es];case"RegExp":return[4,Es];case"Map":return[5,Es];case"Set":return[6,Es];case"DataView":return[1,a]}return a.includes("Array")?[1,a]:a.includes("Error")?[7,a]:[2,a]},vh=([e,t])=>e===0&&(t==="function"||t==="symbol"),p9=(e,t,a,n)=>{let r=(i,l)=>{let s=n.push(i)-1;return a.set(l,s),s},o=i=>{if(a.has(i))return a.get(i);let[l,s]=ud(i);switch(l){case 0:{let c=i;switch(s){case"bigint":l=8,c=i.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return r([-1],i)}return r([l,c],i)}case 1:{if(s){let f=i;return s==="DataView"?f=new Uint8Array(i.buffer):s==="ArrayBuffer"&&(f=new Uint8Array(i)),r([s,[...f]],i)}let c=[],d=r([l,c],i);for(let f of i)c.push(o(f));return d}case 2:{if(s)switch(s){case"BigInt":return r([s,i.toString()],i);case"Boolean":case"Number":case"String":return r([s,i.valueOf()],i)}if(t&&"toJSON"in i)return o(i.toJSON());let c=[],d=r([l,c],i);for(let f of f9(i))(e||!vh(ud(i[f])))&&c.push([o(f),o(i[f])]);return d}case 3:return r([l,i.toISOString()],i);case 4:{let{source:c,flags:d}=i;return r([l,{source:c,flags:d}],i)}case 5:{let c=[],d=r([l,c],i);for(let[f,p]of i)(e||!(vh(ud(f))||vh(ud(p))))&&c.push([o(f),o(p)]);return d}case 6:{let c=[],d=r([l,c],i);for(let f of i)(e||!vh(ud(f)))&&c.push(o(f));return d}}let{message:u}=i;return r([l,{name:s,message:u}],i)};return o},I_=(e,{json:t,lossy:a}={})=>{let n=[];return p9(!(t||a),!!t,new Map,n)(e),n};var $s=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?w_(I_(e,t)):structuredClone(e):(e,t)=>w_(I_(e,t));function m9(e,t){let a=[{type:"text",value:"\u21A9"}];return t>1&&a.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),a}function h9(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Xz(e){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=e.options.footnoteBackContent||m9,n=e.options.footnoteBackLabel||h9,r=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",i=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],s=-1;for(;++s<e.footnoteOrder.length;){let u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;let c=e.all(u),d=String(u.identifier).toUpperCase(),f=pr(d.toLowerCase()),p=0,m=[],S=e.footnoteCounts.get(d);for(;S!==void 0&&++p<=S;){m.length>0&&m.push({type:"text",value:" "});let y=typeof a=="string"?a:a(s,p);typeof y=="string"&&(y={type:"text",value:y}),m.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(s,p),className:["data-footnote-backref"]},children:Array.isArray(y)?y:[y]})}let C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){let y=C.children[C.children.length-1];y&&y.type==="text"?y.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...m)}else c.push(...m);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,h),l.push(h)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...$s(i),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
|
|
77
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
|
|
78
|
-
`}]}}var Do=(function(e){if(e==null)return x9;if(typeof e=="function")return yh(e);if(typeof e=="object")return Array.isArray(e)?g9(e):v9(e);if(typeof e=="string")return y9(e);throw new Error("Expected function, string, or object as test")});function g9(e){let t=[],a=-1;for(;++a<e.length;)t[a]=Do(e[a]);return yh(n);function n(...r){let o=-1;for(;++o<t.length;)if(t[o].apply(this,r))return!0;return!1}}function v9(e){let t=e;return yh(a);function a(n){let r=n,o;for(o in e)if(r[o]!==t[o])return!1;return!0}}function y9(e){return yh(t);function t(a){return a&&a.type===e}}function yh(e){return t;function t(a,n,r){return!!(b9(a)&&e.call(this,a,typeof n=="number"?n:void 0,r||void 0))}}function x9(){return!0}function b9(e){return e!==null&&typeof e=="object"&&"type"in e}var Kz=[],xh=!0,Ai=!1,bh="skip";function cd(e,t,a,n){let r;typeof t=="function"&&typeof a!="function"?(n=a,a=t):r=t;let o=Do(r),i=n?-1:1;l(e,void 0,[])();function l(s,u,c){let d=s&&typeof s=="object"?s:{};if(typeof d.type=="string"){let p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return f;function f(){let p=Kz,m,S,C;if((!t||o(s,u,c[c.length-1]||void 0))&&(p=S9(a(s,c)),p[0]===Ai))return p;if("children"in s&&s.children){let h=s;if(h.children&&p[0]!==bh)for(S=(n?h.children.length:-1)+i,C=c.concat(h);S>-1&&S<h.children.length;){let y=h.children[S];if(m=l(y,S,C)(),m[0]===Ai)return m;S=typeof m[1]=="number"?m[1]:S+i}}return p}}}function S9(e){return Array.isArray(e)?e:typeof e=="number"?[xh,e]:e==null?Kz:[e]}function Ei(e,t,a,n){let r,o,i;typeof t=="function"&&typeof a!="function"?(o=void 0,i=t,r=a):(o=t,i=a,r=n),cd(e,o,l,r);function l(s,u){let c=u[u.length-1],d=c?c.children.indexOf(s):void 0;return i(s,d,c)}}var __={}.hasOwnProperty,w9={};function Qz(e,t){let a=t||w9,n=new Map,r=new Map,o=new Map,i={...Zz,...a.handlers},l={all:u,applyData:_9,definitionById:n,footnoteById:r,footnoteCounts:o,footnoteOrder:[],handlers:i,one:s,options:a,patch:I9,wrap:C9};return Ei(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){let d=c.type==="definition"?n:r,f=String(c.identifier).toUpperCase();d.has(f)||d.set(f,c)}}),l;function s(c,d){let f=c.type,p=l.handlers[f];if(__.call(l.handlers,f)&&p)return p(l,c,d);if(l.options.passThrough&&l.options.passThrough.includes(f)){if("children"in c){let{children:S,...C}=c,h=$s(C);return h.children=l.all(c),h}return $s(c)}return(l.options.unknownHandler||k9)(l,c,d)}function u(c){let d=[];if("children"in c){let f=c.children,p=-1;for(;++p<f.length;){let m=l.one(f[p],c);if(m){if(p&&f[p-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Yz(m.value)),!Array.isArray(m)&&m.type==="element")){let S=m.children[0];S&&S.type==="text"&&(S.value=Yz(S.value))}Array.isArray(m)?d.push(...m):d.push(m)}}}return d}}function I9(e,t){e.position&&(t.position=YI(e))}function _9(e,t){let a=t;if(e&&e.data){let n=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(a.type==="element")a.tagName=n;else{let i="children"in a?a.children:[a];a={type:"element",tagName:n,properties:{},children:i}}a.type==="element"&&o&&Object.assign(a.properties,$s(o)),"children"in a&&a.children&&r!==null&&r!==void 0&&(a.children=r)}return a}function k9(e,t){let a=t.data||{},n="value"in t&&!(__.call(a,"hProperties")||__.call(a,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function C9(e,t){let a=[],n=-1;for(t&&a.push({type:"text",value:`
|
|
79
|
-
`});++n<e.length;)n&&a.push({type:"text",value:`
|
|
80
|
-
`}),a.push(e[n]);return t&&e.length>0&&a.push({type:"text",value:`
|
|
81
|
-
`}),a}function Yz(e){let t=0,a=e.charCodeAt(t);for(;a===9||a===32;)t++,a=e.charCodeAt(t);return e.slice(t)}function Sh(e,t){let a=Qz(e,t),n=a.one(e,void 0),r=Xz(a),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return r&&("children"in o,o.children.push({type:"text",value:`
|
|
82
|
-
`},r)),o}function wh(e,t){return e&&"run"in e?async function(a,n){let r=Sh(a,{file:n,...t});await e.run(r,n)}:function(a,n){return Sh(a,{file:n,...e||t})}}function k_(e){if(e)throw e}var kh=pe(sD(),1);function dd(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function C_(){let e=[],t={run:a,use:n};return t;function a(...r){let o=-1,i=r.pop();if(typeof i!="function")throw new TypeError("Expected function as last argument, not "+i);l(null,...r);function l(s,...u){let c=e[++o],d=-1;if(s){i(s);return}for(;++d<r.length;)(u[d]===null||u[d]===void 0)&&(u[d]=r[d]);r=u,c?uD(c,l)(...u):i(null,...u)}}function n(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function uD(e,t){let a;return n;function n(...i){let l=e.length>i.length,s;l&&i.push(r);try{s=e.apply(this,i)}catch(u){let c=u;if(l&&a)throw c;return r(c)}l||(s&&s.then&&typeof s.then=="function"?s.then(o,r):s instanceof Error?r(s):o(s))}function r(i,...l){a||(a=!0,t(i,...l))}function o(i){r(null,i)}}var Cr={basename:L9,dirname:T9,extname:A9,join:E9,sep:"/"};function L9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');fd(e);let a=0,n=-1,r=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else n<0&&(o=!0,n=r+1);return n<0?"":e.slice(a,n)}if(t===e)return"";let i=-1,l=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(o){a=r+1;break}}else i<0&&(o=!0,i=r+1),l>-1&&(e.codePointAt(r)===t.codePointAt(l--)?l<0&&(n=r):(l=-1,n=i));return a===n?n=i:n<0&&(n=e.length),e.slice(a,n)}function T9(e){if(fd(e),e.length===0)return".";let t=-1,a=e.length,n;for(;--a;)if(e.codePointAt(a)===47){if(n){t=a;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function A9(e){fd(e);let t=e.length,a=-1,n=0,r=-1,o=0,i;for(;t--;){let l=e.codePointAt(t);if(l===47){if(i){n=t+1;break}continue}a<0&&(i=!0,a=t+1),l===46?r<0?r=t:o!==1&&(o=1):r>-1&&(o=-1)}return r<0||a<0||o===0||o===1&&r===a-1&&r===n+1?"":e.slice(r,a)}function E9(...e){let t=-1,a;for(;++t<e.length;)fd(e[t]),e[t]&&(a=a===void 0?e[t]:a+"/"+e[t]);return a===void 0?".":$9(a)}function $9(e){fd(e);let t=e.codePointAt(0)===47,a=M9(e,!t);return a.length===0&&!t&&(a="."),a.length>0&&e.codePointAt(e.length-1)===47&&(a+="/"),t?"/"+a:a}function M9(e,t){let a="",n=0,r=-1,o=0,i=-1,l,s;for(;++i<=e.length;){if(i<e.length)l=e.codePointAt(i);else{if(l===47)break;l=47}if(l===47){if(!(r===i-1||o===1))if(r!==i-1&&o===2){if(a.length<2||n!==2||a.codePointAt(a.length-1)!==46||a.codePointAt(a.length-2)!==46){if(a.length>2){if(s=a.lastIndexOf("/"),s!==a.length-1){s<0?(a="",n=0):(a=a.slice(0,s),n=a.length-1-a.lastIndexOf("/")),r=i,o=0;continue}}else if(a.length>0){a="",n=0,r=i,o=0;continue}}t&&(a=a.length>0?a+"/..":"..",n=2)}else a.length>0?a+="/"+e.slice(r+1,i):a=e.slice(r+1,i),n=i-r-1;r=i,o=0}else l===46&&o>-1?o++:o=-1}return a}function fd(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var cD={cwd:z9};function z9(){return"/"}function Ms(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dD(e){if(typeof e=="string")e=new URL(e);else if(!Ms(e)){let t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){let t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return D9(e)}function D9(e){if(e.hostname!==""){let n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}let t=e.pathname,a=-1;for(;++a<t.length;)if(t.codePointAt(a)===37&&t.codePointAt(a+1)===50){let n=t.codePointAt(a+2);if(n===70||n===102){let r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}var L_=["history","path","basename","stem","extname","dirname"],$i=class{constructor(t){let a;t?Ms(t)?a={path:t}:typeof t=="string"||O9(t)?a={value:t}:a=t:a={},this.cwd="cwd"in a?"":cD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<L_.length;){let o=L_[n];o in a&&a[o]!==void 0&&a[o]!==null&&(this[o]=o==="history"?[...a[o]]:a[o])}let r;for(r in a)L_.includes(r)||(this[r]=a[r])}get basename(){return typeof this.path=="string"?Cr.basename(this.path):void 0}set basename(t){A_(t,"basename"),T_(t,"basename"),this.path=Cr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Cr.dirname(this.path):void 0}set dirname(t){fD(this.basename,"dirname"),this.path=Cr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Cr.extname(this.path):void 0}set extname(t){if(T_(t,"extname"),fD(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Cr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ms(t)&&(t=dD(t)),A_(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Cr.basename(this.path,this.extname):void 0}set stem(t){A_(t,"stem"),T_(t,"stem"),this.path=Cr.join(this.dirname||"",t+(this.extname||""))}fail(t,a,n){let r=this.message(t,a,n);throw r.fatal=!0,r}info(t,a,n){let r=this.message(t,a,n);return r.fatal=void 0,r}message(t,a,n){let r=new At(t,a,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}};function T_(e,t){if(e&&e.includes(Cr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Cr.sep+"`")}function A_(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fD(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function O9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var pD=(function(e){let n=this.constructor.prototype,r=n[e],o=function(){return r.apply(o,arguments)};return Object.setPrototypeOf(o,n),o});var R9={}.hasOwnProperty,z_=class e extends pD{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=C_()}copy(){let t=new e,a=-1;for(;++a<this.attachers.length;){let n=this.attachers[a];t.use(...n)}return t.data((0,kh.default)(!0,{},this.namespace)),t}data(t,a){return typeof t=="string"?arguments.length===2?(M_("data",this.frozen),this.namespace[t]=a,this):R9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(M_("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;let t=this;for(;++this.freezeIndex<this.attachers.length;){let[a,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=a.call(t,...n);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();let a=_h(t),n=this.parser||this.Parser;return E_("parse",n),n(String(a),a)}process(t,a){let n=this;return this.freeze(),E_("process",this.parser||this.Parser),$_("process",this.compiler||this.Compiler),a?r(void 0,a):new Promise(r);function r(o,i){let l=_h(t),s=n.parse(l);n.run(s,l,function(c,d,f){if(c||!d||!f)return u(c);let p=d,m=n.stringify(p,f);U9(m)?f.value=m:f.result=m,u(c,f)});function u(c,d){c||!d?i(c):o?o(d):a(void 0,d)}}}processSync(t){let a=!1,n;return this.freeze(),E_("processSync",this.parser||this.Parser),$_("processSync",this.compiler||this.Compiler),this.process(t,r),hD("processSync","process",a),n;function r(o,i){a=!0,k_(o),n=i}}run(t,a,n){mD(t),this.freeze();let r=this.transformers;return!n&&typeof a=="function"&&(n=a,a=void 0),n?o(void 0,n):new Promise(o);function o(i,l){let s=_h(a);r.run(t,s,u);function u(c,d,f){let p=d||t;c?l(c):i?i(p):n(void 0,p,f)}}}runSync(t,a){let n=!1,r;return this.run(t,a,o),hD("runSync","run",n),r;function o(i,l){k_(i),r=l,n=!0}}stringify(t,a){this.freeze();let n=_h(a),r=this.compiler||this.Compiler;return $_("stringify",r),mD(t),r(t,n)}use(t,...a){let n=this.attachers,r=this.namespace;if(M_("use",this.frozen),t!=null)if(typeof t=="function")s(t,a);else if(typeof t=="object")Array.isArray(t)?l(t):i(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){let[c,...d]=u;s(c,d)}else i(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function i(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(u.plugins),u.settings&&(r.settings=(0,kh.default)(!0,r.settings,u.settings))}function l(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){let d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,c){let d=-1,f=-1;for(;++d<n.length;)if(n[d][0]===u){f=d;break}if(f===-1)n.push([u,...c]);else if(c.length>0){let[p,...m]=c,S=n[f][1];dd(S)&&dd(p)&&(p=(0,kh.default)(!0,S,p)),n[f]=[u,p,...m]}}}},D_=new z_().freeze();function E_(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function $_(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function M_(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mD(e){if(!dd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hD(e,t,a){if(!a)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function _h(e){return P9(e)?e:new $i(e)}function P9(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function U9(e){return typeof e=="string"||N9(e)}function N9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var j9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gD=[],vD={allowDangerousHtml:!0},B9=/^(https?|ircs?|mailto|xmpp)$/i,F9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function O_(e){let t=q9(e),a=Z9(e);return H9(t.runSync(t.parse(a),a),e)}function q9(e){let t=e.rehypePlugins||gD,a=e.remarkPlugins||gD,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...vD}:vD;return D_().use(ph).use(a).use(wh,n).use(t)}function Z9(e){let t=e.children||"",a=new $i;return typeof t=="string"?a.value=t:(""+t,void 0),a}function H9(e,t){let a=t.allowedElements,n=t.allowElement,r=t.components,o=t.disallowedElements,i=t.skipHtml,l=t.unwrapDisallowed,s=t.urlTransform||xD;for(let c of F9)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+j9+c.id,void 0);return a&&o&&void 0,Ei(e,u),t_(e,{Fragment:zs.Fragment,components:r,ignoreInvalidStyle:!0,jsx:zs.jsx,jsxs:zs.jsxs,passKeys:!0,passNode:!0});function u(c,d,f){if(c.type==="raw"&&f&&typeof d=="number")return i?f.children.splice(d,1):f.children[d]={type:"text",value:c.value},d;if(c.type==="element"){let p;for(p in rd)if(Object.hasOwn(rd,p)&&Object.hasOwn(c.properties,p)){let m=c.properties[p],S=rd[p];(S===null||S.includes(c.tagName))&&(c.properties[p]=s(String(m||""),p,c))}}if(c.type==="element"){let p=a?!a.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&n&&typeof d=="number"&&(p=!n(c,d,f)),p&&f&&typeof d=="number")return l&&c.children?f.children.splice(d,1,...c.children):f.children.splice(d,1),d}}}function xD(e){let t=e.indexOf(":"),a=e.indexOf("?"),n=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||a!==-1&&t>a||n!==-1&&t>n||B9.test(e.slice(0,t))?e:""}function R_(e,t){let a=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,r=a.indexOf(t);for(;r!==-1;)n++,r=a.indexOf(t,r+t.length);return n}function P_(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function U_(e,t,a){let r=Do((a||{}).ignore||[]),o=V9(t),i=-1;for(;++i<o.length;)cd(e,"text",l);function l(u,c){let d=-1,f;for(;++d<c.length;){let p=c[d],m=f?f.children:void 0;if(r(p,m?m.indexOf(p):void 0,f))return;f=p}if(f)return s(u,c)}function s(u,c){let d=c[c.length-1],f=o[i][0],p=o[i][1],m=0,C=d.children.indexOf(u),h=!1,y=[];f.lastIndex=0;let g=f.exec(u.value);for(;g;){let b=g.index,L={index:g.index,input:g.input,stack:[...c,u]},x=p(...g,L);if(typeof x=="string"&&(x=x.length>0?{type:"text",value:x}:void 0),x===!1?f.lastIndex=b+1:(m!==b&&y.push({type:"text",value:u.value.slice(m,b)}),Array.isArray(x)?y.push(...x):x&&y.push(x),m=b+g[0].length,h=!0),!f.global)break;g=f.exec(u.value)}return h?(m<u.value.length&&y.push({type:"text",value:u.value.slice(m)}),d.children.splice(C,1,...y)):y=[u],C+y.length}}function V9(e){let t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");let a=!e[0]||Array.isArray(e[0])?e:[e],n=-1;for(;++n<a.length;){let r=a[n];t.push([G9(r[0]),W9(r[1])])}return t}function G9(e){return typeof e=="string"?new RegExp(P_(e),"g"):e}function W9(e){return typeof e=="function"?e:function(){return e}}var N_="phrasing",j_=["autolink","link","image","label"];function F_(){return{transforms:[e8],enter:{literalAutolink:J9,literalAutolinkEmail:B_,literalAutolinkHttp:B_,literalAutolinkWww:B_},exit:{literalAutolink:Q9,literalAutolinkEmail:Y9,literalAutolinkHttp:X9,literalAutolinkWww:K9}}}function q_(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:N_,notInConstruct:j_},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:N_,notInConstruct:j_},{character:":",before:"[ps]",after:"\\/",inConstruct:N_,notInConstruct:j_}]}}function J9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function B_(e){this.config.enter.autolinkProtocol.call(this,e)}function X9(e){this.config.exit.autolinkProtocol.call(this,e)}function K9(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Y9(e){this.config.exit.autolinkEmail.call(this,e)}function Q9(e){this.exit(e)}function e8(e){U_(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,t8],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,a8]],{ignore:["link","linkReference"]})}function t8(e,t,a,n,r){let o="";if(!bD(r)||(/^w/i.test(t)&&(a=t+a,t="",o="http://"),!r8(a)))return!1;let i=n8(a+n);if(!i[0])return!1;let l={type:"link",title:null,url:o+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[l,{type:"text",value:i[1]}]:l}function a8(e,t,a,n){return!bD(n,!0)||/[-\d_]$/.test(a)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+a,children:[{type:"text",value:t+"@"+a}]}}function r8(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function n8(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let a=t[0],n=a.indexOf(")"),r=R_(e,"("),o=R_(e,")");for(;n!==-1&&r>o;)e+=a.slice(0,n+1),a=a.slice(n+1),n=a.indexOf(")"),o++;return[e,a]}function bD(e,t){let a=e.input.charCodeAt(e.index-1);return(e.index===0||Vr(a)||ki(a))&&(!t||a!==47)}SD.peek=p8;function o8(){this.buffer()}function i8(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function l8(){this.buffer()}function s8(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function u8(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=ia(this.sliceSerialize(e)).toLowerCase(),a.label=t}function c8(e){this.exit(e)}function d8(e){let t=this.resume(),a=this.stack[this.stack.length-1];a.type,a.identifier=ia(this.sliceSerialize(e)).toLowerCase(),a.label=t}function f8(e){this.exit(e)}function p8(){return"["}function SD(e,t,a,n){let r=a.createTracker(n),o=r.move("[^"),i=a.enter("footnoteReference"),l=a.enter("reference");return o+=r.move(a.safe(a.associationId(e),{after:"]",before:o})),l(),i(),o+=r.move("]"),o}function Z_(){return{enter:{gfmFootnoteCallString:o8,gfmFootnoteCall:i8,gfmFootnoteDefinitionLabelString:l8,gfmFootnoteDefinition:s8},exit:{gfmFootnoteCallString:u8,gfmFootnoteCall:c8,gfmFootnoteDefinitionLabelString:d8,gfmFootnoteDefinition:f8}}}function H_(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:a,footnoteReference:SD},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function a(n,r,o,i){let l=o.createTracker(i),s=l.move("[^"),u=o.enter("footnoteDefinition"),c=o.enter("label");return s+=l.move(o.safe(o.associationId(n),{before:s,after:"]"})),c(),s+=l.move("]:"),n.children&&n.children.length>0&&(l.shift(4),s+=l.move((t?`
|
|
83
|
-
`:" ")+o.indentLines(o.containerFlow(n,l.current()),t?wD:m8))),u(),s}}function m8(e,t,a){return t===0?e:wD(e,t,a)}function wD(e,t,a){return(a?"":" ")+e}var h8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ID.peek=y8;function V_(){return{canContainEols:["delete"],enter:{strikethrough:g8},exit:{strikethrough:v8}}}function G_(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h8}],handlers:{delete:ID}}}function g8(e){this.enter({type:"delete",children:[]},e)}function v8(e){this.exit(e)}function ID(e,t,a,n){let r=a.createTracker(n),o=a.enter("strikethrough"),i=r.move("~~");return i+=a.containerPhrasing(e,{...r.current(),before:i,after:"~"}),i+=r.move("~~"),o(),i}function y8(){return"~"}function x8(e){return e.length}function kD(e,t){let a=t||{},n=(a.align||[]).concat(),r=a.stringLength||x8,o=[],i=[],l=[],s=[],u=0,c=-1;for(;++c<e.length;){let S=[],C=[],h=-1;for(e[c].length>u&&(u=e[c].length);++h<e[c].length;){let y=b8(e[c][h]);if(a.alignDelimiters!==!1){let g=r(y);C[h]=g,(s[h]===void 0||g>s[h])&&(s[h]=g)}S.push(y)}i[c]=S,l[c]=C}let d=-1;if(typeof n=="object"&&"length"in n)for(;++d<u;)o[d]=_D(n[d]);else{let S=_D(n);for(;++d<u;)o[d]=S}d=-1;let f=[],p=[];for(;++d<u;){let S=o[d],C="",h="";S===99?(C=":",h=":"):S===108?C=":":S===114&&(h=":");let y=a.alignDelimiters===!1?1:Math.max(1,s[d]-C.length-h.length),g=C+"-".repeat(y)+h;a.alignDelimiters!==!1&&(y=C.length+y+h.length,y>s[d]&&(s[d]=y),p[d]=y),f[d]=g}i.splice(1,0,f),l.splice(1,0,p),c=-1;let m=[];for(;++c<i.length;){let S=i[c],C=l[c];d=-1;let h=[];for(;++d<u;){let y=S[d]||"",g="",b="";if(a.alignDelimiters!==!1){let L=s[d]-(C[d]||0),x=o[d];x===114?g=" ".repeat(L):x===99?L%2?(g=" ".repeat(L/2+.5),b=" ".repeat(L/2-.5)):(g=" ".repeat(L/2),b=g):b=" ".repeat(L)}a.delimiterStart!==!1&&!d&&h.push("|"),a.padding!==!1&&!(a.alignDelimiters===!1&&y==="")&&(a.delimiterStart!==!1||d)&&h.push(" "),a.alignDelimiters!==!1&&h.push(g),h.push(y),a.alignDelimiters!==!1&&h.push(b),a.padding!==!1&&h.push(" "),(a.delimiterEnd!==!1||d!==u-1)&&h.push("|")}m.push(a.delimiterEnd===!1?h.join("").replace(/ +$/,""):h.join(""))}return m.join(`
|
|
84
|
-
`)}function b8(e){return e==null?"":String(e)}function _D(e){let t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function CD(e,t,a,n){let r=a.enter("blockquote"),o=a.createTracker(n);o.move("> "),o.shift(2);let i=a.indentLines(a.containerFlow(e,o.current()),S8);return r(),i}function S8(e,t,a){return">"+(a?"":" ")+e}function TD(e,t){return LD(e,t.inConstruct,!0)&&!LD(e,t.notInConstruct,!1)}function LD(e,t,a){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return a;let n=-1;for(;++n<t.length;)if(e.includes(t[n]))return!0;return!1}function W_(e,t,a,n){let r=-1;for(;++r<a.unsafe.length;)if(a.unsafe[r].character===`
|
|
85
|
-
`&&TD(a.stack,a.unsafe[r]))return/[ \t]/.test(n.before)?"":" ";return`\\
|
|
86
|
-
`}function AD(e,t){let a=String(e),n=a.indexOf(t),r=n,o=0,i=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;n!==-1;)n===r?++o>i&&(i=o):o=1,r=n+t.length,n=a.indexOf(t,r);return i}function ED(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function $D(e){let t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function MD(e,t,a,n){let r=$D(a),o=e.value||"",i=r==="`"?"GraveAccent":"Tilde";if(ED(e,a)){let d=a.enter("codeIndented"),f=a.indentLines(o,w8);return d(),f}let l=a.createTracker(n),s=r.repeat(Math.max(AD(o,r)+1,3)),u=a.enter("codeFenced"),c=l.move(s);if(e.lang){let d=a.enter(`codeFencedLang${i}`);c+=l.move(a.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){let d=a.enter(`codeFencedMeta${i}`);c+=l.move(" "),c+=l.move(a.safe(e.meta,{before:c,after:`
|
|
87
|
-
`,encode:["`"],...l.current()})),d()}return c+=l.move(`
|
|
88
|
-
`),o&&(c+=l.move(o+`
|
|
89
|
-
`)),c+=l.move(s),u(),c}function w8(e,t,a){return(a?"":" ")+e}function Ds(e){let t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function zD(e,t,a,n){let r=Ds(a),o=r==='"'?"Quote":"Apostrophe",i=a.enter("definition"),l=a.enter("label"),s=a.createTracker(n),u=s.move("[");return u+=s.move(a.safe(a.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=a.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(a.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=a.enter("destinationRaw"),u+=s.move(a.safe(e.url,{before:u,after:e.title?" ":`
|
|
90
|
-
`,...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),i(),u}function DD(e){let t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Oo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Os(e,t,a){let n=$n(e),r=$n(t);return n===void 0?r===void 0?a==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:n===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}J_.peek=I8;function J_(e,t,a,n){let r=DD(a),o=a.enter("emphasis"),i=a.createTracker(n),l=i.move(r),s=i.move(a.containerPhrasing(e,{after:r,before:l,...i.current()})),u=s.charCodeAt(0),c=Os(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=Oo(u)+s.slice(1));let d=s.charCodeAt(s.length-1),f=Os(n.after.charCodeAt(0),d,r);f.inside&&(s=s.slice(0,-1)+Oo(d));let p=i.move(r);return o(),a.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},l+s+p}function I8(e,t,a){return a.options.emphasis||"*"}function OD(e,t){let a=!1;return Ei(e,function(n){if("value"in n&&/\r?\n|\r/.test(n.value)||n.type==="break")return a=!0,Ai}),!!((!e.depth||e.depth<3)&&Ii(e)&&(t.options.setext||a))}function RD(e,t,a,n){let r=Math.max(Math.min(6,e.depth||1),1),o=a.createTracker(n);if(OD(e,a)){let c=a.enter("headingSetext"),d=a.enter("phrasing"),f=a.containerPhrasing(e,{...o.current(),before:`
|
|
91
|
-
`,after:`
|
|
92
|
-
`});return d(),c(),f+`
|
|
93
|
-
`+(r===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
94
|
-
`))+1))}let i="#".repeat(r),l=a.enter("headingAtx"),s=a.enter("phrasing");o.move(i+" ");let u=a.containerPhrasing(e,{before:"# ",after:`
|
|
95
|
-
`,...o.current()});return/^[\t ]/.test(u)&&(u=Oo(u.charCodeAt(0))+u.slice(1)),u=u?i+" "+u:i,a.options.closeAtx&&(u+=" "+i),s(),l(),u}X_.peek=_8;function X_(e){return e.value||""}function _8(){return"<"}K_.peek=k8;function K_(e,t,a,n){let r=Ds(a),o=r==='"'?"Quote":"Apostrophe",i=a.enter("image"),l=a.enter("label"),s=a.createTracker(n),u=s.move("![");return u+=s.move(a.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=a.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(a.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=a.enter("destinationRaw"),u+=s.move(a.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=a.enter(`title${o}`),u+=s.move(" "+r),u+=s.move(a.safe(e.title,{before:u,after:r,...s.current()})),u+=s.move(r),l()),u+=s.move(")"),i(),u}function k8(){return"!"}Y_.peek=C8;function Y_(e,t,a,n){let r=e.referenceType,o=a.enter("imageReference"),i=a.enter("label"),l=a.createTracker(n),s=l.move("!["),u=a.safe(e.alt,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),i();let c=a.stack;a.stack=[],i=a.enter("reference");let d=a.safe(a.associationId(e),{before:s,after:"]",...l.current()});return i(),a.stack=c,o(),r==="full"||!u||u!==d?s+=l.move(d+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function C8(){return"!"}Q_.peek=L8;function Q_(e,t,a){let n=e.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++o<a.unsafe.length;){let i=a.unsafe[o],l=a.compilePattern(i),s;if(i.atBreak)for(;s=l.exec(n);){let u=s.index;n.charCodeAt(u)===10&&n.charCodeAt(u-1)===13&&u--,n=n.slice(0,u)+" "+n.slice(s.index+1)}}return r+n+r}function L8(){return"`"}function ek(e,t){let a=Ii(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(a===e.url||"mailto:"+a===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}tk.peek=T8;function tk(e,t,a,n){let r=Ds(a),o=r==='"'?"Quote":"Apostrophe",i=a.createTracker(n),l,s;if(ek(e,a)){let c=a.stack;a.stack=[],l=a.enter("autolink");let d=i.move("<");return d+=i.move(a.containerPhrasing(e,{before:d,after:">",...i.current()})),d+=i.move(">"),l(),a.stack=c,d}l=a.enter("link"),s=a.enter("label");let u=i.move("[");return u+=i.move(a.containerPhrasing(e,{before:u,after:"](",...i.current()})),u+=i.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=a.enter("destinationLiteral"),u+=i.move("<"),u+=i.move(a.safe(e.url,{before:u,after:">",...i.current()})),u+=i.move(">")):(s=a.enter("destinationRaw"),u+=i.move(a.safe(e.url,{before:u,after:e.title?" ":")",...i.current()}))),s(),e.title&&(s=a.enter(`title${o}`),u+=i.move(" "+r),u+=i.move(a.safe(e.title,{before:u,after:r,...i.current()})),u+=i.move(r),s()),u+=i.move(")"),l(),u}function T8(e,t,a){return ek(e,a)?"<":"["}ak.peek=A8;function ak(e,t,a,n){let r=e.referenceType,o=a.enter("linkReference"),i=a.enter("label"),l=a.createTracker(n),s=l.move("["),u=a.containerPhrasing(e,{before:s,after:"]",...l.current()});s+=l.move(u+"]["),i();let c=a.stack;a.stack=[],i=a.enter("reference");let d=a.safe(a.associationId(e),{before:s,after:"]",...l.current()});return i(),a.stack=c,o(),r==="full"||!u||u!==d?s+=l.move(d+"]"):r==="shortcut"?s=s.slice(0,-1):s+=l.move("]"),s}function A8(){return"["}function Rs(e){let t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function PD(e){let t=Rs(e),a=e.options.bulletOther;if(!a)return t==="*"?"-":"*";if(a!=="*"&&a!=="+"&&a!=="-")throw new Error("Cannot serialize items with `"+a+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(a===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+a+"`) to be different");return a}function UD(e){let t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ch(e){let t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ND(e,t,a,n){let r=a.enter("list"),o=a.bulletCurrent,i=e.ordered?UD(a):Rs(a),l=e.ordered?i==="."?")":".":PD(a),s=t&&a.bulletLastUsed?i===a.bulletLastUsed:!1;if(!e.ordered){let c=e.children?e.children[0]:void 0;if((i==="*"||i==="-")&&c&&(!c.children||!c.children[0])&&a.stack[a.stack.length-1]==="list"&&a.stack[a.stack.length-2]==="listItem"&&a.stack[a.stack.length-3]==="list"&&a.stack[a.stack.length-4]==="listItem"&&a.indexStack[a.indexStack.length-1]===0&&a.indexStack[a.indexStack.length-2]===0&&a.indexStack[a.indexStack.length-3]===0&&(s=!0),Ch(a)===i&&c){let d=-1;for(;++d<e.children.length;){let f=e.children[d];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(i=l),a.bulletCurrent=i;let u=a.containerFlow(e,n);return a.bulletLastUsed=i,a.bulletCurrent=o,r(),u}function jD(e){let t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function BD(e,t,a,n){let r=jD(a),o=a.bulletCurrent||Rs(a);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(a.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let i=o.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(i=Math.ceil(i/4)*4);let l=a.createTracker(n);l.move(o+" ".repeat(i-o.length)),l.shift(i);let s=a.enter("listItem"),u=a.indentLines(a.containerFlow(e,l.current()),c);return s(),u;function c(d,f,p){return f?(p?"":" ".repeat(i))+d:(p?o:o+" ".repeat(i-o.length))+d}}function FD(e,t,a,n){let r=a.enter("paragraph"),o=a.enter("phrasing"),i=a.containerPhrasing(e,n);return o(),r(),i}var rk=Do(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function qD(e,t,a,n){return(e.children.some(function(i){return rk(i)})?a.containerPhrasing:a.containerFlow).call(a,e,n)}function ZD(e){let t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}nk.peek=E8;function nk(e,t,a,n){let r=ZD(a),o=a.enter("strong"),i=a.createTracker(n),l=i.move(r+r),s=i.move(a.containerPhrasing(e,{after:r,before:l,...i.current()})),u=s.charCodeAt(0),c=Os(n.before.charCodeAt(n.before.length-1),u,r);c.inside&&(s=Oo(u)+s.slice(1));let d=s.charCodeAt(s.length-1),f=Os(n.after.charCodeAt(0),d,r);f.inside&&(s=s.slice(0,-1)+Oo(d));let p=i.move(r+r);return o(),a.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},l+s+p}function E8(e,t,a){return a.options.strong||"*"}function HD(e,t,a,n){return a.safe(e.value,n)}function VD(e){let t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function GD(e,t,a){let n=(Ch(a)+(a.options.ruleSpaces?" ":"")).repeat(VD(a));return a.options.ruleSpaces?n.slice(0,-1):n}var pd={blockquote:CD,break:W_,code:MD,definition:zD,emphasis:J_,hardBreak:W_,heading:RD,html:X_,image:K_,imageReference:Y_,inlineCode:Q_,link:tk,linkReference:ak,list:ND,listItem:BD,paragraph:FD,root:qD,strong:nk,text:HD,thematicBreak:GD};function ik(){return{enter:{table:$8,tableData:WD,tableHeader:WD,tableRow:z8},exit:{codeText:D8,table:M8,tableData:ok,tableHeader:ok,tableRow:ok}}}function $8(e){let t=e._align;this.enter({type:"table",align:t.map(function(a){return a==="none"?null:a}),children:[]},e),this.data.inTable=!0}function M8(e){this.exit(e),this.data.inTable=void 0}function z8(e){this.enter({type:"tableRow",children:[]},e)}function ok(e){this.exit(e)}function WD(e){this.enter({type:"tableCell",children:[]},e)}function D8(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,O8));let a=this.stack[this.stack.length-1];a.type,a.value=t,this.exit(e)}function O8(e,t){return t==="|"?t:e}function lk(e){let t=e||{},a=t.tableCellPadding,n=t.tablePipeAlign,r=t.stringLength,o=a?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
96
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:i,tableCell:s,tableRow:l}};function i(p,m,S,C){return u(c(p,S,C),p.align)}function l(p,m,S,C){let h=d(p,S,C),y=u([h]);return y.slice(0,y.indexOf(`
|
|
97
|
-
`))}function s(p,m,S,C){let h=S.enter("tableCell"),y=S.enter("phrasing"),g=S.containerPhrasing(p,{...C,before:o,after:o});return y(),h(),g}function u(p,m){return kD(p,{align:m,alignDelimiters:n,padding:a,stringLength:r})}function c(p,m,S){let C=p.children,h=-1,y=[],g=m.enter("table");for(;++h<C.length;)y[h]=d(C[h],m,S);return g(),y}function d(p,m,S){let C=p.children,h=-1,y=[],g=m.enter("tableRow");for(;++h<C.length;)y[h]=s(C[h],p,m,S);return g(),y}function f(p,m,S){let C=pd.inlineCode(p,m,S);return S.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function sk(){return{exit:{taskListCheckValueChecked:JD,taskListCheckValueUnchecked:JD,paragraph:R8}}}function uk(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:P8}}}function JD(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function R8(e){let t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){let a=this.stack[this.stack.length-1];a.type;let n=a.children[0];if(n&&n.type==="text"){let r=t.children,o=-1,i;for(;++o<r.length;){let l=r[o];if(l.type==="paragraph"){i=l;break}}i===a&&(n.value=n.value.slice(1),n.value.length===0?a.children.shift():a.position&&n.position&&typeof n.position.start.offset=="number"&&(n.position.start.column++,n.position.start.offset++,a.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function P8(e,t,a,n){let r=e.children[0],o=typeof e.checked=="boolean"&&r&&r.type==="paragraph",i="["+(e.checked?"x":" ")+"] ",l=a.createTracker(n);o&&l.move(i);let s=pd.listItem(e,t,a,{...n,...l.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(c){return c+i}}function ck(){return[F_(),Z_(),V_(),ik(),sk()]}function dk(e){return{extensions:[q_(),H_(e),G_(),lk(e),uk()]}}var U8={tokenize:q8,partial:!0},XD={tokenize:Z8,partial:!0},KD={tokenize:H8,partial:!0},YD={tokenize:V8,partial:!0},N8={tokenize:G8,partial:!0},QD={name:"wwwAutolink",tokenize:B8,previous:tO},eO={name:"protocolAutolink",tokenize:F8,previous:aO},Mn={name:"emailAutolink",tokenize:j8,previous:rO},Wr={};function pk(){return{text:Wr}}var Mi=48;for(;Mi<123;)Wr[Mi]=Mn,Mi++,Mi===58?Mi=65:Mi===91&&(Mi=97);Wr[43]=Mn;Wr[45]=Mn;Wr[46]=Mn;Wr[95]=Mn;Wr[72]=[Mn,eO];Wr[104]=[Mn,eO];Wr[87]=[Mn,QD];Wr[119]=[Mn,QD];function j8(e,t,a){let n=this,r,o;return i;function i(d){return!fk(d)||!rO.call(n,n.previous)||mk(n.events)?a(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),l(d))}function l(d){return fk(d)?(e.consume(d),l):d===64?(e.consume(d),s):a(d)}function s(d){return d===46?e.check(N8,c,u)(d):d===45||d===95||It(d)?(o=!0,e.consume(d),s):c(d)}function u(d){return e.consume(d),r=!0,s}function c(d){return o&&r&&jt(n.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):a(d)}}function B8(e,t,a){let n=this;return r;function r(i){return i!==87&&i!==119||!tO.call(n,n.previous)||mk(n.events)?a(i):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(U8,e.attempt(XD,e.attempt(KD,o),a),a)(i))}function o(i){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(i)}}function F8(e,t,a){let n=this,r="",o=!1;return i;function i(d){return(d===72||d===104)&&aO.call(n,n.previous)&&!mk(n.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(d),e.consume(d),l):a(d)}function l(d){if(jt(d)&&r.length<5)return r+=String.fromCodePoint(d),e.consume(d),l;if(d===58){let f=r.toLowerCase();if(f==="http"||f==="https")return e.consume(d),s}return a(d)}function s(d){return d===47?(e.consume(d),o?u:(o=!0,s)):a(d)}function u(d){return d===null||_i(d)||Ae(d)||Vr(d)||ki(d)?a(d):e.attempt(XD,e.attempt(KD,c),a)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function q8(e,t,a){let n=0;return r;function r(i){return(i===87||i===119)&&n<3?(n++,e.consume(i),r):i===46&&n===3?(e.consume(i),o):a(i)}function o(i){return i===null?a(i):t(i)}}function Z8(e,t,a){let n,r,o;return i;function i(u){return u===46||u===95?e.check(YD,s,l)(u):u===null||Ae(u)||Vr(u)||u!==45&&ki(u)?s(u):(o=!0,e.consume(u),i)}function l(u){return u===95?n=!0:(r=n,n=void 0),e.consume(u),i}function s(u){return r||n||!o?a(u):t(u)}}function H8(e,t){let a=0,n=0;return r;function r(i){return i===40?(a++,e.consume(i),r):i===41&&n<a?o(i):i===33||i===34||i===38||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===60||i===63||i===93||i===95||i===126?e.check(YD,t,o)(i):i===null||Ae(i)||Vr(i)?t(i):(e.consume(i),r)}function o(i){return i===41&&n++,e.consume(i),r}}function V8(e,t,a){return n;function n(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(e.consume(l),n):l===38?(e.consume(l),o):l===93?(e.consume(l),r):l===60||l===null||Ae(l)||Vr(l)?t(l):a(l)}function r(l){return l===null||l===40||l===91||Ae(l)||Vr(l)?t(l):n(l)}function o(l){return jt(l)?i(l):a(l)}function i(l){return l===59?(e.consume(l),n):jt(l)?(e.consume(l),i):a(l)}}function G8(e,t,a){return n;function n(o){return e.consume(o),r}function r(o){return It(o)?a(o):t(o)}}function tO(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ae(e)}function aO(e){return!jt(e)}function rO(e){return!(e===47||fk(e))}function fk(e){return e===43||e===45||e===46||e===95||It(e)}function mk(e){let t=e.length,a=!1;for(;t--;){let n=e[t][1];if((n.type==="labelLink"||n.type==="labelImage")&&!n._balanced){a=!0;break}if(n._gfmAutolinkLiteralWalkedInto){a=!1;break}}return e.length>0&&!a&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),a}var W8={tokenize:tZ,partial:!0};function hk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Y8,continuation:{tokenize:Q8},exit:eZ}},text:{91:{name:"gfmFootnoteCall",tokenize:K8},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:J8,resolveTo:X8}}}}function J8(e,t,a){let n=this,r=n.events.length,o=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),i;for(;r--;){let s=n.events[r][1];if(s.type==="labelImage"){i=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return l;function l(s){if(!i||!i._balanced)return a(s);let u=ia(n.sliceSerialize({start:i.end,end:n.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?a(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function X8(e,t){let a=e.length,n;for(;a--;)if(e[a][1].type==="labelImage"&&e[a][0]==="enter"){n=e[a][1];break}e[a+1][1].type="data",e[a+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[a+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[a+3][1].end),end:Object.assign({},e[a+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;let i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[a+1],e[a+2],["enter",r,t],e[a+3],e[a+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(a,e.length-a+1,...s),e}function K8(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o=0,i;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),s}function s(d){return d!==94?a(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!i||d===null||d===91||Ae(d))return a(d);if(d===93){e.exit("chunkString");let f=e.exit("gfmFootnoteCallString");return r.includes(ia(n.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):a(d)}return Ae(d)||(i=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function Y8(e,t,a){let n=this,r=n.parser.gfmFootnotes||(n.parser.gfmFootnotes=[]),o,i=0,l;return s;function s(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):a(m)}function c(m){if(i>999||m===93&&!l||m===null||m===91||Ae(m))return a(m);if(m===93){e.exit("chunkString");let S=e.exit("gfmFootnoteDefinitionLabelString");return o=ia(n.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Ae(m)||(l=!0),i++,e.consume(m),m===92?d:c}function d(m){return m===91||m===92||m===93?(e.consume(m),i++,c):c(m)}function f(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),r.includes(o)||r.push(o),se(e,p,"gfmFootnoteDefinitionWhitespace")):a(m)}function p(m){return t(m)}}function Q8(e,t,a){return e.check(Gr,t,e.attempt(W8,t,a))}function eZ(e){e.exit("gfmFootnoteDefinition")}function tZ(e,t,a){let n=this;return se(e,r,"gfmFootnoteDefinitionIndent",5);function r(o){let i=n.events[n.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?t(o):a(o)}}function gk(e){let a=(e||{}).singleTilde,n={name:"strikethrough",tokenize:o,resolveAll:r};return a==null&&(a=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(i,l){let s=-1;for(;++s<i.length;)if(i[s][0]==="enter"&&i[s][1].type==="strikethroughSequenceTemporary"&&i[s][1]._close){let u=s;for(;u--;)if(i[u][0]==="exit"&&i[u][1].type==="strikethroughSequenceTemporary"&&i[u][1]._open&&i[s][1].end.offset-i[s][1].start.offset===i[u][1].end.offset-i[u][1].start.offset){i[s][1].type="strikethroughSequence",i[u][1].type="strikethroughSequence";let c={type:"strikethrough",start:Object.assign({},i[u][1].start),end:Object.assign({},i[s][1].end)},d={type:"strikethroughText",start:Object.assign({},i[u][1].end),end:Object.assign({},i[s][1].start)},f=[["enter",c,l],["enter",i[u][1],l],["exit",i[u][1],l],["enter",d,l]],p=l.parser.constructs.insideSpan.null;p&&Et(f,f.length,0,Mo(p,i.slice(u+1,s),l)),Et(f,f.length,0,[["exit",d,l],["enter",i[s][1],l],["exit",i[s][1],l],["exit",c,l]]),Et(i,u-1,s-u+3,f),s=u+f.length-2;break}}for(s=-1;++s<i.length;)i[s][1].type==="strikethroughSequenceTemporary"&&(i[s][1].type="data");return i}function o(i,l,s){let u=this.previous,c=this.events,d=0;return f;function f(m){return u===126&&c[c.length-1][1].type!=="characterEscape"?s(m):(i.enter("strikethroughSequenceTemporary"),p(m))}function p(m){let S=$n(u);if(m===126)return d>1?s(m):(i.consume(m),d++,p);if(d<2&&!a)return s(m);let C=i.exit("strikethroughSequenceTemporary"),h=$n(m);return C._open=!h||h===2&&!!S,C._close=!S||S===2&&!!h,l(m)}}}var Lh=class{constructor(){this.map=[]}add(t,a,n){aZ(this,t,a,n)}consume(t){if(this.map.sort(function(o,i){return o[0]-i[0]}),this.map.length===0)return;let a=this.map.length,n=[];for(;a>0;)a-=1,n.push(t.slice(this.map[a][0]+this.map[a][1]),this.map[a][2]),t.length=this.map[a][0];n.push(t.slice()),t.length=0;let r=n.pop();for(;r;){for(let o of r)t.push(o);r=n.pop()}this.map.length=0}};function aZ(e,t,a,n){let r=0;if(!(a===0&&n.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=a,e.map[r][2].push(...n);return}r+=1}e.map.push([t,a,n])}}function nO(e,t){let a=!1,n=[];for(;t<e.length;){let r=e[t];if(a){if(r[0]==="enter")r[1].type==="tableContent"&&n.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){let o=n.length-1;n[o]=n[o]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(a=!0);t+=1}return n}function vk(){return{flow:{null:{name:"table",tokenize:rZ,resolveAll:nZ}}}}function rZ(e,t,a){let n=this,r=0,o=0,i;return l;function l(k){let F=n.events.length-1;for(;F>-1;){let P=n.events[F][1].type;if(P==="lineEnding"||P==="linePrefix")F--;else break}let O=F>-1?n.events[F][1].type:null,U=O==="tableHead"||O==="tableRow"?x:s;return U===x&&n.parser.lazy[n.now().line]?a(k):U(k)}function s(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(i=!0,o+=1),c(k)}function c(k){return k===null?a(k):ae(k)?o>1?(o=0,n.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),p):a(k):de(k)?se(e,c,"whitespace")(k):(o+=1,i&&(i=!1,r+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),d(k)))}function d(k){return k===null||k===124||Ae(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?f:d)}function f(k){return k===92||k===124?(e.consume(k),d):d(k)}function p(k){return n.interrupt=!1,n.parser.lazy[n.now().line]?a(k):(e.enter("tableDelimiterRow"),i=!1,de(k)?se(e,m,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):m(k))}function m(k){return k===45||k===58?C(k):k===124?(i=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),S):L(k)}function S(k){return de(k)?se(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),h):k===45?(o+=1,h(k)):k===null||ae(k)?b(k):L(k)}function h(k){return k===45?(e.enter("tableDelimiterFiller"),y(k)):L(k)}function y(k){return k===45?(e.consume(k),y):k===58?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(k))}function g(k){return de(k)?se(e,b,"whitespace")(k):b(k)}function b(k){return k===124?m(k):k===null||ae(k)?!i||r!==o?L(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):L(k)}function L(k){return a(k)}function x(k){return e.enter("tableRow"),w(k)}function w(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):k===null||ae(k)?(e.exit("tableRow"),t(k)):de(k)?se(e,w,"whitespace")(k):(e.enter("data"),I(k))}function I(k){return k===null||k===124||Ae(k)?(e.exit("data"),w(k)):(e.consume(k),k===92?E:I)}function E(k){return k===92||k===124?(e.consume(k),I):I(k)}}function nZ(e,t){let a=-1,n=!0,r=0,o=[0,0,0,0],i=[0,0,0,0],l=!1,s=0,u,c,d,f=new Lh;for(;++a<e.length;){let p=e[a],m=p[1];p[0]==="enter"?m.type==="tableHead"?(l=!1,s!==0&&(oO(f,t,s,u,c),c=void 0,s=0),u={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(a,0,[["enter",u,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(n=!0,d=void 0,o=[0,0,0,0],i=[0,a+1,0,0],l&&(l=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(a,0,[["enter",c,t]])),r=m.type==="tableDelimiterRow"?2:c?3:1):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(n=!1,i[2]===0&&(o[1]!==0&&(i[0]=i[1],d=Th(f,t,o,r,void 0,d),o=[0,0,0,0]),i[2]=a)):m.type==="tableCellDivider"&&(n?n=!1:(o[1]!==0&&(i[0]=i[1],d=Th(f,t,o,r,void 0,d)),o=i,i=[o[1],a,0,0])):m.type==="tableHead"?(l=!0,s=a):m.type==="tableRow"||m.type==="tableDelimiterRow"?(s=a,o[1]!==0?(i[0]=i[1],d=Th(f,t,o,r,a,d)):i[1]!==0&&(d=Th(f,t,i,r,a,d)),r=0):r&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(i[3]=a)}for(s!==0&&oO(f,t,s,u,c),f.consume(t.events),a=-1;++a<t.events.length;){let p=t.events[a];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=nO(t.events,a))}return e}function Th(e,t,a,n,r,o){let i=n===1?"tableHeader":n===2?"tableDelimiter":"tableData",l="tableContent";a[0]!==0&&(o.end=Object.assign({},Ps(t.events,a[0])),e.add(a[0],0,[["exit",o,t]]));let s=Ps(t.events,a[1]);if(o={type:i,start:Object.assign({},s),end:Object.assign({},s)},e.add(a[1],0,[["enter",o,t]]),a[2]!==0){let u=Ps(t.events,a[2]),c=Ps(t.events,a[3]),d={type:l,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(a[2],0,[["enter",d,t]]),n!==2){let f=t.events[a[2]],p=t.events[a[3]];if(f[1].end=Object.assign({},p[1].end),f[1].type="chunkText",f[1].contentType="text",a[3]>a[2]+1){let m=a[2]+1,S=a[3]-a[2]-1;e.add(m,S,[])}}e.add(a[3]+1,0,[["exit",d,t]])}return r!==void 0&&(o.end=Object.assign({},Ps(t.events,r)),e.add(r,0,[["exit",o,t]]),o=void 0),o}function oO(e,t,a,n,r){let o=[],i=Ps(t.events,a);r&&(r.end=Object.assign({},i),o.push(["exit",r,t])),n.end=Object.assign({},i),o.push(["exit",n,t]),e.add(a+1,0,o)}function Ps(e,t){let a=e[t],n=a[0]==="enter"?"start":"end";return a[1][n]}var oZ={name:"tasklistCheck",tokenize:iZ};function yk(){return{text:{91:oZ}}}function iZ(e,t,a){let n=this;return r;function r(s){return n.previous!==null||!n._gfmTasklistFirstContentOfListItem?a(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return Ae(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),i):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),i):a(s)}function i(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):a(s)}function l(s){return ae(s)?t(s):de(s)?e.check({tokenize:lZ},t,a)(s):a(s)}}function lZ(e,t,a){return se(e,n,"whitespace");function n(r){return r===null?a(r):t(r)}}function iO(e){return th([pk(),hk(),gk(e),vk(),yk()])}var sZ={};function Ah(e){let t=this,a=e||sZ,n=t.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),o=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(iO(a)),o.push(ck()),i.push(dk(a))}gr(`.chat-widget__feedback{display:flex;align-items:center;gap:.25rem;margin-top:.35rem}.chat-widget__feedback-button{border:none;background:transparent;display:inline-flex;align-items:center;justify-content:center;width:1.75rem;height:1.75rem;padding:0;color:#9ca3af;cursor:pointer;border-radius:.35rem;transition:all .15s ease}.chat-widget__feedback-button:hover:not(:disabled){background:#0000000d;color:#6b7280}.chat-widget__feedback-button:disabled{cursor:default;opacity:.5}.chat-widget__feedback-button--positive.chat-widget__feedback-button--selected{color:#22c55e;background:#22c55e1a}.chat-widget__feedback-button--negative.chat-widget__feedback-button--selected{color:#ef4444;background:#ef44441a}.chat-widget__feedback-button--comment.chat-widget__feedback-button--selected{background:#0000000d}.chat-widget__feedback-button--comment.chat-widget__feedback-button--has-content{color:#3b82f6}.chat-widget__feedback-icon{width:1rem;height:1rem}.chat-widget__feedback-comment-section{margin-top:.75rem;background:var(--chat-background, #ffffff);border:1px solid var(--chat-border, #e5e7eb);border-radius:.5rem;padding:.75rem;width:100%;max-width:400px}.chat-widget__feedback-comment-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;font-size:.8125rem;font-weight:600;color:var(--chat-assistant-text, #111827)}.chat-widget__feedback-comment-required{font-size:.6875rem;font-weight:500;color:#ef4444;background:#ef44441a;padding:.125rem .375rem;border-radius:.25rem}.chat-widget__feedback-comment-body{display:flex;gap:.5rem;align-items:flex-start}.chat-widget__feedback-textarea{flex:1;min-height:60px;padding:.625rem;border:1px solid var(--chat-border, #e5e7eb);border-radius:.35rem;font-size:.875rem;font-family:inherit;resize:vertical;color:var(--chat-input-text, #111827);background:var(--chat-input-bg, #ffffff);line-height:1.5}.chat-widget__feedback-textarea:focus{outline:none;border-color:var(--chat-primary, #3b82f6);box-shadow:0 0 0 2px #3b82f61a}.chat-widget__feedback-textarea::-moz-placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-textarea::placeholder{color:var(--chat-input-placeholder, #6b7280)}.chat-widget__feedback-actions{display:flex;flex-direction:column;gap:.375rem}.chat-widget__feedback-cancel,.chat-widget__feedback-submit{padding:.35rem .75rem;font-size:.75rem;font-weight:500;border-radius:.3rem;cursor:pointer;transition:all .15s ease}.chat-widget__feedback-cancel{background:transparent;border:none;color:#9ca3af;padding:.25rem .5rem}.chat-widget__feedback-cancel:hover{color:#6b7280}.chat-widget__feedback-submit{background:var(--chat-primary, #3b82f6);border:none;color:var(--chat-primary-text, #ffffff)}.chat-widget__feedback-submit:hover:not(:disabled){background:var(--chat-primary-hover, #2563eb)}.chat-widget__feedback-submit:disabled{opacity:.5;cursor:not-allowed}.chat-widget__feedback-wrapper{position:relative}
|
|
98
|
-
`);var Aa=pe(Ct(),1),Gt=pe(Ye(),1),yt={wrapper:"chat-widget__feedback-wrapper",container:"chat-widget__feedback",button:"chat-widget__feedback-button",buttonPositive:"chat-widget__feedback-button--positive",buttonNegative:"chat-widget__feedback-button--negative",commentBody:"chat-widget__feedback-comment-body",buttonComment:"chat-widget__feedback-button--comment",buttonSelected:"chat-widget__feedback-button--selected",buttonHasContent:"chat-widget__feedback-button--has-content",icon:"chat-widget__feedback-icon",commentSection:"chat-widget__feedback-comment-section",commentHeader:"chat-widget__feedback-comment-header",commentRequired:"chat-widget__feedback-comment-required",textarea:"chat-widget__feedback-textarea",actions:"chat-widget__feedback-actions",cancelButton:"chat-widget__feedback-cancel",submitButton:"chat-widget__feedback-submit"},lO=({messageId:e,existingRating:t,existingComment:a,isSubmitting:n,requireCommentForNegative:r=!1,onSubmit:o})=>{let[i,l]=(0,Aa.useState)(t??null),[s,u]=(0,Aa.useState)(a??""),[c,d]=(0,Aa.useState)(null),[f,p]=(0,Aa.useState)(!1),[m,S]=(0,Aa.useState)(a??"");(0,Aa.useEffect)(()=>{t&&l(t),a!==void 0&&(u(a),S(a))},[t,a]);let C=(0,Aa.useCallback)(()=>{i==="positive"?(l(null),u(""),S(""),d(null),o(e,{rating:null,improvementText:null})):(l("positive"),d(null),o(e,{rating:"positive"}))},[e,i,o]),h=(0,Aa.useCallback)(()=>{i==="negative"?(l(null),u(""),S(""),d(null),o(e,{rating:null,improvementText:null})):r?(d("negative"),p(!0)):(l("negative"),d(null),o(e,{rating:"negative"}))},[e,i,r,o]),y=(0,Aa.useCallback)(()=>{f?(p(!1),c==="negative"&&r&&d(null),S(s)):p(!0)},[f,c,r,s]),g=(0,Aa.useCallback)(()=>{p(!1),S(s),c==="negative"&&r&&d(null)},[c,r,s]),b=(0,Aa.useCallback)(()=>{let O=c??i;if(O==="negative"&&r&&!m.trim())return;let U=s.length>0;if(!O&&!m.trim()&&!U)return;let P=m.trim()||(U?null:void 0);o(e,{rating:O,improvementText:P}),O&&l(O),u(m.trim()),d(null),p(!1)},[e,c,i,s,m,r,o]),L=c??i,x=L==="positive",w=L==="negative",I=w&&r,E=s.length>0,k=(!I||m.trim().length>0)&&(L||m.trim().length>0||E),F=E?gi:Ln;return(0,Gt.jsxs)("div",{className:yt.wrapper,children:[(0,Gt.jsxs)("div",{className:yt.container,children:[(0,Gt.jsx)("button",{type:"button",className:`${yt.button} ${yt.buttonPositive} ${x?yt.buttonSelected:""}`,onClick:C,disabled:n,title:"Good response","aria-label":"Mark as good response",children:(0,Gt.jsx)(vi,{className:yt.icon})}),(0,Gt.jsx)("button",{type:"button",className:`${yt.button} ${yt.buttonNegative} ${w?yt.buttonSelected:""}`,onClick:h,disabled:n,title:"Could be improved","aria-label":"Mark as could be improved",children:(0,Gt.jsx)(yi,{className:yt.icon})}),(0,Gt.jsx)("button",{type:"button",className:`${yt.button} ${yt.buttonComment} ${f?yt.buttonSelected:""} ${E?yt.buttonHasContent:""}`,onClick:y,disabled:n,title:"Add comment","aria-label":"Add comment",children:(0,Gt.jsx)(F,{className:yt.icon})})]}),f&&(0,Gt.jsxs)("div",{className:yt.commentSection,children:[(0,Gt.jsx)("div",{className:yt.commentHeader,children:I&&(0,Gt.jsx)("span",{className:yt.commentRequired,children:"Required"})}),(0,Gt.jsxs)("div",{className:yt.commentBody,children:[(0,Gt.jsx)("textarea",{className:yt.textarea,placeholder:w?"What could be improved?":"Share your thoughts...",value:m,onChange:O=>S(O.target.value),rows:3}),(0,Gt.jsxs)("div",{className:yt.actions,children:[(0,Gt.jsx)("button",{type:"button",className:yt.submitButton,onClick:b,disabled:n||!k,children:"Save"}),(0,Gt.jsx)("button",{type:"button",className:yt.cancelButton,onClick:g,children:"Cancel"})]})]})]})]})};gr(`.tag-group{margin:6px 0}.tag-group-header{display:inline-flex;align-items:center;gap:4px;background:none;border:none;padding:2px 6px 2px 2px;cursor:pointer;font-size:13px;color:#666;border-radius:4px;transition:background-color .15s ease}.tag-group-header:hover{background:#f5f5f5}.tag-group-chevron{width:14px;height:14px;flex-shrink:0;transition:transform .15s ease;color:#999}.tag-group-chevron--expanded{transform:rotate(90deg)}.tag-group-label{font-weight:500;color:#555}.tag-group-content{margin-left:7px;padding-left:12px;border-left:2px solid #e0e0e0;margin-top:4px}.tag-group-item{margin:4px 0;font-size:13px;color:#444}.tag-group-item--text{display:flex;align-items:flex-start;gap:6px}.tag-group-item--text:before{content:"\\2022";color:#999;font-size:14px;line-height:1.4;flex-shrink:0}.tag-group-item .tool-call-item{margin:0}.tag-group-item--widget{display:block;margin:8px 0}.tag-group-item .chat-widget__markdown,.tag-group-item .chat-widget__markdown p{margin:0}
|
|
99
|
-
`);var zi=pe(Ye(),1);function sO({tagId:e,isExpanded:t,onToggle:a,children:n}){return(0,zi.jsxs)("div",{className:"tag-group",children:[(0,zi.jsxs)("button",{className:"tag-group-header",onClick:a,"aria-expanded":t,type:"button",children:[(0,zi.jsx)(Uc,{className:`tag-group-chevron ${t?"tag-group-chevron--expanded":""}`,"aria-hidden":"true"}),(0,zi.jsx)("span",{className:"tag-group-label",children:e})]}),t&&(0,zi.jsx)("div",{className:"tag-group-content",role:"region",children:n})]})}gr(`.tool-call-item{font-size:13px;color:#666;margin:4px 0}.tool-call-header{display:flex;align-items:center;gap:6px;margin-top:4px;margin-bottom:4px}.tool-call-spinner{width:12px;height:12px;border:2px solid #e0e0e0;border-top-color:#666;border-radius:50%;animation:tool-call-spin .8s linear infinite;flex-shrink:0}@keyframes tool-call-spin{to{transform:rotate(360deg)}}.tool-call-status-icon{width:12px;height:12px;border:2px solid #e0e0e0;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}.tool-call-status-icon--error{border-color:#dc2626}.tool-call-status-icon__inner{width:8px;height:8px}.tool-call-status-icon__inner--success{color:#9ca3af}.tool-call-status-icon__inner--error{color:#dc2626}.tool-call-label{color:#888}.tool-call-label code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;background:#f5f5f5;padding:2px 6px;border-radius:4px;color:#555}.tool-call-toggle{font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;background:transparent;border:1px solid #d1d5db;border-radius:3px;cursor:pointer;padding:2px 6px;margin-left:4px;transition:all .15s ease}.tool-call-toggle:hover{color:#374151;border-color:#9ca3af;background:#f9fafb}.tool-call-details{margin-top:8px;margin-left:16px;display:flex;flex-direction:column;gap:8px}.tool-call-section{display:flex;gap:4px}.tool-call-section-label{flex-shrink:0;font-size:10px;font-weight:600;color:#6b7280;width:28px;padding-top:8px;text-align:right}.tool-call-section-content-wrapper{flex:1;position:relative;min-width:0}.tool-call-section-toggle{position:absolute;top:4px;right:4px;font-size:9px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;background:#ffffffe6;border:1px solid #d1d5db;border-radius:3px;cursor:pointer;padding:2px 6px;transition:all .15s ease;opacity:0;z-index:1}.tool-call-section-content-wrapper:hover .tool-call-section-toggle{opacity:1}.tool-call-section-toggle:hover{color:#374151;border-color:#9ca3af;background:#f9fafb}.tool-call-section-content{padding:8px 12px;background:#f8f9fa;border-radius:6px;border:1px solid #e9ecef;overflow-x:auto}.tool-call-section-content.collapsed{max-height:2.4em;overflow:hidden;padding-top:4px;padding-bottom:4px}.tool-call-section-content.collapsed pre{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.tool-call-section-content pre{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;color:#333;white-space:pre-wrap;word-break:break-word}.tool-call-error{color:#dc2626;font-weight:600;font-size:9px;letter-spacing:.5px;margin-left:auto}
|
|
100
|
-
`);var xk=pe(Ct(),1),ht=pe(Ye(),1);function uO({label:e,content:t}){let[a,n]=(0,xk.useState)(!1);return(0,ht.jsxs)("div",{className:"tool-call-section",children:[(0,ht.jsx)("div",{className:"tool-call-section-label",children:e}),(0,ht.jsxs)("div",{className:"tool-call-section-content-wrapper",children:[(0,ht.jsx)("button",{className:"tool-call-section-toggle",onClick:()=>n(!a),type:"button",children:a?"SHOW":"HIDE"}),(0,ht.jsx)("div",{className:`tool-call-section-content ${a?"collapsed":""}`,children:(0,ht.jsx)("pre",{children:uZ(t)})})]})]})}function cO({toolPart:e,className:t=""}){let[a,n]=(0,xk.useState)(!1),r="toolName"in e?e.toolName:e.type.replace("tool-",""),o="state"in e?e.state:"pending",i=o==="output-available"&&"output"in e&&e.output!==void 0,l=o==="input-streaming"||o==="input-available"||o==="approval-requested",s=o==="output-error"||o==="output-denied",u="input"in e?e.input:void 0,c="output"in e?e.output:void 0,d=u!=null&&!(typeof u=="object"&&Object.keys(u).length===0),f=d||i,p=()=>l?(0,ht.jsx)("span",{className:"tool-call-spinner"}):(0,ht.jsx)("span",{className:`tool-call-status-icon ${s?"tool-call-status-icon--error":""}`,children:s?(0,ht.jsxs)("svg",{className:"tool-call-status-icon__inner tool-call-status-icon__inner--error",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",children:[(0,ht.jsx)("line",{x1:"5",y1:"5",x2:"11",y2:"11"}),(0,ht.jsx)("line",{x1:"11",y1:"5",x2:"5",y2:"11"})]}):(0,ht.jsx)("svg",{className:"tool-call-status-icon__inner tool-call-status-icon__inner--success",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:(0,ht.jsx)("polyline",{points:"4,8 7,11 12,5"})})});return(0,ht.jsxs)("div",{className:`tool-call-item ${t}`,children:[(0,ht.jsxs)("div",{className:"tool-call-header",children:[p(),(0,ht.jsxs)("span",{className:"tool-call-label",children:[l?"Calling":"Called"," ",(0,ht.jsx)("code",{children:r})]}),f&&(0,ht.jsx)("button",{className:"tool-call-toggle",onClick:()=>n(!a),type:"button",children:a?"HIDE":"SHOW"}),s&&(0,ht.jsx)("span",{className:"tool-call-error",children:"ERROR"})]}),a&&f&&(0,ht.jsxs)("div",{className:"tool-call-details",children:[d&&(0,ht.jsx)(uO,{label:"IN",content:u}),i&&(0,ht.jsx)(uO,{label:"OUT",content:c})]})]})}function uZ(e){if(e==null)return"";if(typeof e=="string")try{let t=JSON.parse(e);return JSON.stringify(t,null,2)}catch{return e}return JSON.stringify(e,null,2)}var Sk=pe(pO(),1),Lr=pe(Ct(),1);var bk=Symbol("__isSDKWidget");function mO(e){return bk in e&&e[bk]===!0}function Eh(e){return{...e,[bk]:!0}}var hO=e=>e;var Di=pe(Ye(),1);function md(e,t){e.innerHTML="";let a=document.createElement("div");a.style.cssText="color: red; padding: 8px;",a.textContent=t,e.appendChild(a)}function gO({widget:e,payload:t,enriched:a,messageContext:n}){let r=(0,Lr.useRef)(null),o=(0,Lr.useRef)(null),i=(0,Lr.useRef)(void 0),l=(0,Lr.useRef)(!1),s=mO(e);s||(i.current=e.reactDOM);let u=(0,Lr.useMemo)(()=>(0,Sk.default)(t??{}),[t]),c=(0,Lr.useMemo)(()=>(0,Sk.default)(a??{}),[a]);if((0,Lr.useEffect)(()=>()=>{o.current?(o.current.unmount(),o.current=null):l.current&&r.current&&i.current&&(i.current.unmountComponentAtNode?i.current.unmountComponentAtNode(r.current):console.warn("Widget unmounting but unmountComponentAtNode is missing. This may cause a memory leak.")),l.current=!1},[]),(0,Lr.useEffect)(()=>{if(!s)try{if(!r.current){console.error(`WidgetRenderer: Container ref is null for widget "${e.widgetType}"`);return}let d;try{d=e.render(t,a,{messageContext:n})}catch(p){console.error(`Widget "${e.widgetType}" render function threw:`,p),md(r.current,`Widget render error: ${e.widgetType}`);return}let f=e.reactDOM;if(!f){console.error(`Widget "${e.widgetType}" requires reactDOM to render.
|
|
101
|
-
|
|
102
|
-
Custom widgets must provide their ReactDOM instance for cross-React version compatibility.
|
|
103
|
-
|
|
104
|
-
To fix, add your ReactDOM to the widget config:
|
|
105
|
-
|
|
106
|
-
import ReactDOM from 'react-dom'; // React 16/17
|
|
107
|
-
// or
|
|
108
|
-
import ReactDOM from 'react-dom/client'; // React 18+
|
|
109
|
-
|
|
110
|
-
{
|
|
111
|
-
widgetType: '${e.widgetType}',
|
|
112
|
-
schema: yourSchema,
|
|
113
|
-
reactDOM: ReactDOM, // <-- Add this
|
|
114
|
-
render: (payload) => <YourComponent {...payload} />
|
|
115
|
-
}`),md(r.current,`Widget "${e.widgetType}" requires reactDOM`);return}if(typeof f!="object"){console.error(`Widget "${e.widgetType}" reactDOM must be an object`),md(r.current,`Widget "${e.widgetType}" has invalid reactDOM`);return}if(f.createRoot){if(typeof f.createRoot!="function")throw new Error("createRoot must be a function");o.current||(o.current=f.createRoot(r.current)),o.current.render(d),l.current=!0}else if(f.render){if(typeof f.render!="function")throw new Error("render must be a function");f.render(d,r.current),l.current=!0}else console.error(`Widget "${e.widgetType}" reactDOM must have either 'render' (React 16/17) or 'createRoot' (React 18)`),md(r.current,`Widget "${e.widgetType}" has incompatible reactDOM`)}catch(d){console.error(`Unexpected error in WidgetRenderer for "${e.widgetType}":`,d),r.current&&md(r.current,`Widget system error: ${e.widgetType}`)}},[s,e,t,a,u,c,n]),s)try{let d=e.render(t,a,{messageContext:n});return(0,Di.jsx)(Di.Fragment,{children:d})}catch(d){console.error(`SDK widget "${e.widgetType}" render threw:`,d);let f=d instanceof Error?d.message:String(d);return(0,Di.jsxs)("div",{className:"widget-error",title:f,children:["Widget error: ",e.widgetType]})}return(0,Di.jsx)("div",{ref:r,className:"widget-customer-root"})}var Wt=pe(Ye(),1);function cZ({children:e}){return(0,Wt.jsx)(O_,{remarkPlugins:[Ah],children:e.replace(/\n\n/gi,`
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
`)})}var dZ=zn.default.memo(cZ);function hd({message:e,widgets:t,readonly:a=!1,displayMode:n="brief",tagExpansion:r,className:o,feedback:i}){let l=(0,zn.useMemo)(()=>{if(i)return{messageId:e.id,getFeedback:i.getFeedback,submitFeedback:i.submitFeedback}},[e.id,i]),s=(0,zn.useMemo)(()=>i?.getFeedback()??null,[i]),u=(0,zn.useCallback)((f,p)=>{if(f==null)return null;if(f.type==="text"){let m=f.text?.trim();return m?(0,Wt.jsx)("div",{className:"chat-widget__markdown",children:(0,Wt.jsx)(dZ,{children:m})},p):null}if(f.type.startsWith("tool-")||f.type==="dynamic-tool")return(0,Wt.jsx)(cO,{toolPart:f},p);if(f.type==="data-ui"){let S=f.data;return Array.isArray(S)?!t||t.length===0?(0,Wt.jsxs)("div",{className:"text-muted-foreground text-sm italic",children:["[UI Widget: ",S.map(C=>C.widgetType||"unknown").join(", "),"]"]},p):(0,Wt.jsx)(zn.default.Fragment,{children:S.map((C,h)=>{let y=t.find(g=>g.widgetType===C.widgetType);return y?(0,Wt.jsx)("div",{className:"chat-widget__widget",inert:a?!0:void 0,children:(0,Wt.jsx)(gO,{widget:y,payload:C.payload,enriched:C.enriched??{},messageContext:l??void 0})},`${p}-widget-${h}`):(0,Wt.jsxs)("span",{children:["[Unknown widget: ",C.widgetType,"]"]},`${p}-widget-${h}`)})},p):null}return null},[t,a,l]),c=(0,zn.useCallback)((f,p,m)=>{let S=r?.state.get(p)??!0;return(0,Wt.jsx)(sO,{tagId:f,isExpanded:S,onToggle:()=>r?.onToggle(f),children:m},p)},[r]);return(0,Wt.jsxs)(Wt.Fragment,{children:[(0,Wt.jsx)("div",{className:o,children:(0,Wt.jsx)(n==="brief"?Kc:Yc,{sections:e.sections,messageId:e.id,renderPart:u,renderGroup:c})}),!a&&i&&(0,Wt.jsx)(lO,{messageId:e.id,existingRating:s?.rating,existingComment:s?.improvementText,isSubmitting:i.loading,requireCommentForNegative:i.requireCommentForNegative,onSubmit:(f,p)=>i.submitFeedback(p)})]})}var ft=pe(Ye(),1),dt={container:"chat-widget",header:"chat-widget__header",headerTitle:"chat-widget__title",messagesContainer:"chat-widget__messages",messageWrapper:"chat-widget__message",messageRow:"chat-widget__message-row",userMessageRow:"chat-widget__message-row--user",assistantMessageRow:"chat-widget__message-row--assistant",messageBubble:"chat-widget__bubble",userMessage:"chat-widget__bubble--user",assistantMessage:"chat-widget__bubble--assistant",thoughtsContainer:"chat-widget__thoughts",thoughtsSummary:"chat-widget__thoughts-summary",thoughtsIconContainer:"chat-widget__thoughts-icon-container",thoughtsIcon:"chat-widget__thoughts-icon",thoughtsContent:"chat-widget__thoughts-content",thoughtsText:"chat-widget__thoughts-text",loadingContainer:"chat-widget__loading",loadingBubble:"chat-widget__loading-bubble",loadingDots:"chat-widget__loading-dots",loadingDot:"chat-widget__loading-dot",inputContainer:"chat-widget__input",inputForm:"chat-widget__form",textarea:"chat-widget__textarea",toolbar:"chat-widget__toolbar",submitButton:"chat-widget__submit",sendIcon:"chat-widget__send-icon",voiceControl:"chat-widget__voice",micButton:"chat-widget__mic-button"},fZ={primaryColor:"#3b82f6",primaryTextColor:"#ffffff",backgroundColor:"#ffffff",borderColor:"#e5e7eb",headerTextColor:"#ffffff",userBubbleTextColor:"#ffffff",assistantBubbleBackground:"transparent",assistantBubbleTextColor:"#111827",fontFamily:"'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif",borderRadius:"0.75rem",inputBackground:"#ffffff",inputTextColor:"#111827",inputPlaceholderColor:"#6b7280",thoughtsBorderColor:"#d1d5db"},pZ=(e,t=.15)=>{let a=e.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(a))return e;let n=parseInt(a.slice(0,2),16),r=parseInt(a.slice(2,4),16),o=parseInt(a.slice(4,6),16),i=l=>Math.round(l*(1-t));return`#${i(n).toString(16).padStart(2,"0")}${i(r).toString(16).padStart(2,"0")}${i(o).toString(16).padStart(2,"0")}`},Us=(0,Ue.forwardRef)(function({api:t,threadId:a,agentId:n,agentVersion:r,agentExecutionId:o,dataContext:i,displayMode:l="brief",onError:s,onAuthError:u,onFinish:c,onMessage:d,title:f,initialAssistantMessage:p,initialUserMessage:m,inputPlaceholder:S,className:C,styles:h,voice:y,speechToText:g,widgets:b,feedback:L},x){let w=(0,Ue.useMemo)(()=>({...fZ,...h||{}}),[h]),I=(0,Ue.useMemo)(()=>({"--chat-primary":w.primaryColor,"--chat-primary-text":w.primaryTextColor,"--chat-primary-hover":pZ(w.primaryColor,.2),"--chat-background":w.backgroundColor,"--chat-border":w.borderColor,"--chat-header-text":w.headerTextColor,"--chat-user-text":w.userBubbleTextColor,"--chat-assistant-bg":w.assistantBubbleBackground,"--chat-assistant-text":w.assistantBubbleTextColor,"--chat-font-family":w.fontFamily,"--chat-radius":w.borderRadius,"--chat-input-bg":w.inputBackground,"--chat-input-text":w.inputTextColor,"--chat-input-placeholder":w.inputPlaceholderColor,"--chat-thought-border":w.thoughtsBorderColor}),[w]),[E,k]=(0,Ue.useState)(""),[F,O]=(0,Ue.useState)(!1),[U,P]=(0,Ue.useState)(!1),Q=(0,Ue.useRef)(null),ie=(0,Ue.useRef)(null),ne=(0,Ue.useRef)(!0),ue=(0,Ue.useRef)(null),Me=(0,Ue.useRef)(!1),{messages:$,status:ce,isLoadingInitial:_t,sendMessage:T,stop:ze,setMessages:aa}=eM({api:t,threadId:a,agentId:n,agentVersion:r,agentExecutionId:o??void 0,dataContext:i,onError:s,onAuthError:u,onFinish:c,onMessage:d});(0,Ue.useImperativeHandle)(x,()=>({sendMessage:Ce=>{Ce.trim()&&ce==="ready"&&T({text:Ce})}}),[T,ce]);let K=L?.enabled!==!1,{submitFeedback:_,getFeedbackForMessage:A,isSubmitting:M}=tM({api:t,threadId:a,agentId:n,agentVersion:r}),[j,B]=(0,Ue.useState)(new Map),Y=(0,Ue.useCallback)((Ce,$t,R)=>{Me.current=!0,B(X=>{let he=new Map(X),be=`${Ce}-group-${$t}`;return he.set(be,!R),he})},[]),ke=(0,Ue.useMemo)(()=>{if(!y||y.enabled===!1||!y.url)return null;let Ce=y.payload,$t=R=>Ce?typeof Ce=="function"?Ce(R):{message:R,...Ce}:{message:R};return{url:y.url,method:y.method??"POST",autoplayLatest:y.autoplayLatest??!0,headers:{...y.headers??{}},buildPayload:$t}},[y]);(0,Ue.useEffect)(()=>{p&&!m&&!_t&&$.length===0&&aa([{id:"welcome-message",role:"assistant",parts:[{type:"text",text:p}]}])},[p,m,_t,$.length,aa]);let Qe=(0,Ue.useRef)(!1);(0,Ue.useEffect)(()=>{m&&!Qe.current&&!_t&&ce==="ready"&&$.length===0&&(Qe.current=!0,T({text:m}))},[m,_t,ce,$.length,T]);let gt=(0,Ue.useCallback)(()=>{if(!ie.current)return;let{scrollTop:Ce,scrollHeight:$t,clientHeight:R}=ie.current,X=$t-Ce-R;ne.current=X<100},[]);(0,Ue.useEffect)(()=>{if(Me.current){Me.current=!1;return}let $t=$[$.length-1]?.role==="user";(ne.current||$t)&&Q.current?.scrollIntoView({behavior:"smooth"})},[$,ce]),(0,Ue.useEffect)(()=>{let Ce=setTimeout(()=>{ue.current?.focus()},150);return()=>clearTimeout(Ce)},[]),(0,Ue.useEffect)(()=>{ce==="ready"&&ue.current?.focus(),ce!=="streaming"&&P(!1)},[ce]);let Bt=(0,Ue.useCallback)(Ce=>{let $t=(Ce??E).trim();return!$t||ce!=="ready"?!1:(T({text:$t}),k(""),!0)},[E,ce,T,k]),kt=()=>{Bt()},Ft=Ce=>{Ce.preventDefault(),kt()},vt=Ce=>{Ce.key==="Enter"&&!Ce.shiftKey&&(Ce.preventDefault(),kt())},et=g?.enabled!==!1,Tr=(0,Ue.useCallback)(Ce=>{k(Ce)},[k]),Oi=(0,Ue.useCallback)(Ce=>{let $t=Ce?.trim();if(!$t||U)return;k($t),Bt($t)&&P(!0)},[Bt,k,U]);(0,Ue.useEffect)(()=>{et||O(!1)},[et]);let Ns=(0,Ue.useRef)({threadId:"",widgets:null});return(0,Ue.useEffect)(()=>{!b||b.length===0||Ns.current.threadId===a&&Ns.current.widgets===b||jm({api:t,threadId:a,widgets:b,onAuthError:u}).then(()=>{Ns.current={threadId:a,widgets:b}}).catch($t=>{console.error("Failed to register chat widgets",$t)})},[t,a,b,u]),(0,ft.jsxs)("div",{className:Hr(dt.container,C),style:I,"data-chat-widget":"",children:[f&&(0,ft.jsx)("div",{className:dt.header,children:(0,ft.jsx)("h3",{className:dt.headerTitle,children:f})}),(0,ft.jsxs)("div",{className:dt.messagesContainer,ref:ie,onScroll:gt,children:[$.map((Ce,$t)=>{let R=Ce.role==="user",X=$t===$.length-1,he=K&&!R&&!(ce==="streaming"&&X);return(0,ft.jsx)("div",{className:dt.messageWrapper,children:(0,ft.jsx)("div",{className:Hr(dt.messageRow,R?dt.userMessageRow:dt.assistantMessageRow),children:(0,ft.jsx)("div",{className:Hr(dt.messageBubble,R?dt.userMessage:dt.assistantMessage),children:(0,ft.jsx)(hd,{message:Ce,widgets:b,displayMode:l,tagExpansion:{state:j,onToggle:be=>Y(Ce.id,be,j.get(`${Ce.id}-group-${be}`)??!0)},feedback:he?{loading:M===Ce.id,requireCommentForNegative:L?.requireCommentForNegative,getFeedback:()=>A(Ce.id),submitFeedback:be=>_(Ce.id,be)}:void 0})})})},Ce.id)}),ce==="streaming"&&(0,ft.jsx)("div",{className:dt.loadingContainer,children:(0,ft.jsx)("div",{className:dt.loadingBubble,children:(0,ft.jsxs)("div",{className:dt.loadingDots,children:[(0,ft.jsx)("div",{className:dt.loadingDot}),(0,ft.jsx)("div",{className:dt.loadingDot,"data-delay":"1"}),(0,ft.jsx)("div",{className:dt.loadingDot,"data-delay":"2"})]})})}),(0,ft.jsx)("div",{ref:Q})]}),(0,ft.jsx)("div",{className:dt.inputContainer,children:(0,ft.jsxs)("form",{onSubmit:Ft,className:dt.inputForm,children:[(0,ft.jsx)("textarea",{ref:ue,value:E,onChange:Ce=>k(Ce.target.value),onKeyDown:vt,placeholder:S,disabled:ce!=="ready",rows:1,className:dt.textarea}),(0,ft.jsx)("div",{className:dt.toolbar,children:et&&(0,ft.jsx)(vM,{className:dt.micButton,disabled:ce!=="ready",silenceTimeout:g?.silenceTimeout,language:g?.language,finalDelay:g?.finalDelay,onInterim:Tr,onFinal:Oi,onError:g?.onError,onListeningChange:O})}),(0,ft.jsx)("button",{type:"button",onClick:ce==="streaming"?ze:kt,disabled:ce==="streaming"?!1:!E.trim()||ce!=="ready",className:dt.submitButton,children:ce==="streaming"?(0,ft.jsx)(Io,{className:dt.sendIcon}):(0,ft.jsx)(Bc,{className:dt.sendIcon})})]})})]})});gr(`.chat-popup__anchor{position:fixed;inset-block-end:20px;inset-inline-end:20px}.chat-popup--start{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__anchor-button{display:inline-flex;align-items:center;gap:.5rem;padding:.65rem .85rem;background:var(--chat-primary);color:var(--chat-primary-text);border:none;border-radius:999px;box-shadow:0 10px 25px #0f172a33;cursor:pointer;font-weight:600;z-index:99999}.chat-popup__anchor-button:hover{background:var(--chat-primary-hover)}.chat-popup__anchor-icon{width:1.1rem;height:1.1rem}.chat-popup__panel{position:fixed;inset-block-end:20px;inset-inline-end:20px;z-index:99998;transition:opacity .15s ease,visibility .15s ease}.chat-popup--start.chat-popup__panel{inset-inline-end:auto;inset-inline-start:20px}.chat-popup__panel--open{opacity:1;visibility:visible;pointer-events:auto}.chat-popup__panel--closed{opacity:0;visibility:hidden;pointer-events:none}.chat-popup__panel-inner{width:384px;max-width:calc(100vw - 40px);height:500px;max-height:calc(100vh - 140px);box-shadow:0 20px 45px #0f172a1f;border-radius:12px;overflow:visible;background:var(--chat-background);border:1px solid var(--chat-border);position:relative}.chat-popup__close{position:absolute;top:0;z-index:10;transform:translate(30%,-40%)}.chat-popup__close--end{inset-inline-end:0}.chat-popup__close--start{inset-inline-start:0}.chat-popup__close-button{border:none;background:var(--chat-primary);color:var(--chat-primary-text);width:32px;height:32px;border-radius:999px;cursor:pointer;display:grid;place-items:center;box-shadow:0 10px 25px #0f172a33}.chat-popup__close-button:hover{background:var(--chat-primary-hover)}.chat-popup__close-icon{width:16px;height:16px}
|
|
120
|
-
`);var Ro=pe(Ct(),1);var Ga=pe(Ye(),1);function $h({anchor:e,...t}){let[a,n]=(0,Ro.useState)(e?.initiallyOpen??!1),[r,o]=(0,Ro.useState)(e?.initiallyOpen??!1),i=t.openOverride??a;(0,Ro.useEffect)(()=>{t.openOverride!==void 0&&(n(t.openOverride),t.openOverride&&o(!0))},[t.openOverride]);let l=()=>{let p=!i;p&&o(!0),t.onToggleOpen?t.onToggleOpen(p):n(p)},s=e?.position==="bottom-start"?"chat-popup--start":"chat-popup--end",u=e?.closeButton??t.closeButton,c=u?.show!==!1,d=(0,Ro.useMemo)(()=>{let p=t.styles?.primaryColor??"#3b82f6",m=t.styles?.primaryTextColor??"#ffffff",S=t.styles?.backgroundColor??"#ffffff",C=t.styles?.borderColor??"#e5e7eb",h=t.styles?.headerTextColor??"#ffffff";return{"--chat-primary":p,"--chat-primary-hover":((g,b=.15)=>{let L=g.replace("#","");if(!/^[0-9a-fA-F]{6}$/.test(L))return g;let x=parseInt(L.slice(0,2),16),w=parseInt(L.slice(2,4),16),I=parseInt(L.slice(4,6),16),E=k=>Math.round(k*(1-b));return`#${E(x).toString(16).padStart(2,"0")}${E(w).toString(16).padStart(2,"0")}${E(I).toString(16).padStart(2,"0")}`})(p,.2),"--chat-primary-text":m,"--chat-background":S,"--chat-border":C,"--chat-header-text":h}},[t.styles]),f=(0,Ro.useMemo)(()=>{let p=t.popupSize??{};return{width:p.width??"600px",height:p.height??"500px",maxWidth:p.maxWidth??"calc(100vw - 40px)",maxHeight:p.maxHeight??"calc(100vh - 140px)"}},[t.popupSize]);return(0,Ga.jsxs)("div",{style:d,children:[(0,Ga.jsx)("div",{className:Hr("chat-popup__anchor",s),children:e?.render?e.render({isOpen:i,toggle:l}):!i&&(0,Ga.jsxs)("button",{type:"button",className:"chat-popup__anchor-button",onClick:l,"aria-expanded":a,"aria-label":e?.label??"Open chat",children:[(0,Ga.jsx)(Ln,{className:"chat-popup__anchor-icon"}),(0,Ga.jsx)("span",{children:e?.label??"Chat"})]})}),(0,Ga.jsx)("div",{className:Hr("chat-popup__panel",s,i?"chat-popup__panel--open":"chat-popup__panel--closed"),children:(0,Ga.jsxs)("div",{className:"chat-popup__panel-inner",style:f,children:[c&&(0,Ga.jsx)("div",{className:Hr("chat-popup__close",u?.position==="top-start"?"chat-popup__close--start":"chat-popup__close--end"),children:u?.render?u.render({toggle:l}):(0,Ga.jsx)("button",{type:"button",className:"chat-popup__close-button",onClick:l,"aria-label":"Close chat",children:(0,Ga.jsx)(Fc,{className:"chat-popup__close-icon"})})}),r&&(0,Ga.jsx)(Us,{...t})]})})]})}var Mh=pe(Ct(),1),fe=pe(Ye(),1),vO=bs({type:"object",description:"displaying a list of vendor cards. Use this widget to represent data from CareNetwork vendor search tool.",properties:{fromLocation:{type:"string",description:"The location the user is searching for"},fromCoordinates:{type:"object",description:"The location's lat/lng coordinates. This must come from the previous geocoding tool as-is - do NOT guess",properties:{latitude:{type:"number"},longitude:{type:"number"}},required:["latitude","longitude"]},vendors:{type:"array",items:{type:"object",properties:{vendor_id:{type:"string"},notes:{type:"string",description:"Give 7-10 words on why this vendor was recommended"},vendorCoordinates:{type:"object",description:"The lat/lng coordinates of this vendor. This must come from the vendor's location.coordinates from the previous vendor search tool - do NOT guess",properties:{latitude:{type:"number"},longitude:{type:"number"}},required:["latitude","longitude"]}},required:["vendor_id","vendorCoordinates"]}}},required:["fromLocation","fromCoordinates","vendors"]});function yO({payload:e,enriched:t,onAddToList:a,onFeedback:n,existingFeedback:r}){let[o,i]=Mh.default.useState({}),l=Mh.default.useRef(!1);Mh.default.useEffect(()=>{if(!l.current&&r&&r.length>0){l.current=!0;let C={};for(let h of r)h.noteId&&(C[h.noteId]={rating:h.rating??null,commentText:h.comment??null,showComment:!1});i(C)}},[r]);let s=C=>o[C]||{rating:null,commentText:null,showComment:!1},u=(C,h)=>{i(y=>({...y,[C]:{...s(C),...h}}))},c=C=>{i(h=>{let{[C]:y,...g}=h;return g})};if(!t||!t.vendorDetails||!t.distanceMatrix)return(0,fe.jsx)("div",{children:"Outdated vendor-cards widget"});let{vendorDetails:d,distanceMatrix:f}=t,p=d?.data??{},m=f?.data??[],S=C=>{let h=C/1609.34;return h<.1?"< 0.1 mi":`${h.toFixed(1)} mi`};return(0,fe.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:e.vendors.map((C,h)=>{let y=p[C.vendor_id],g=y?.names?.[0]?.value??"Unknown",b=y?.location?.address,L=m.find(ne=>ne.destinationIndex===h),x=L&&L.distanceMeters?S(L.distanceMeters):void 0,w=y?.financials?.fees?.find(ne=>ne.fee_type?.includes("Hourly"))?.amount,I=y?.avg_rating,E=y?.review_count,k=y?.booleans,F=y?.verification,O=y?.quality_scores?.completeness_score,U=y?.subtype??[],P=U.includes("In-Home")?"In-Home":U.includes("In-Center")?"In-Center":null,Q=y?.references_and_background_check?.background_check_status?.toLowerCase(),ie=Q==="clear"||Q==="completed";return(0,fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.2rem",padding:"1rem",background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1)",fontSize:"0.875rem",position:"relative"},children:[(0,fe.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[(0,fe.jsx)("div",{style:{width:"2rem",height:"2rem",borderRadius:"9999px",background:"#bfd1f5",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"0.875rem",color:"#374151"},children:g.charAt(0).toUpperCase()}),(0,fe.jsx)("span",{style:{fontWeight:600,fontSize:"1rem",color:"#111827"},children:g})]}),a&&(0,fe.jsx)("button",{onClick:()=>a(C.vendor_id),style:{background:"none",border:"none",color:"#3b82f6",fontSize:"0.875rem",cursor:"pointer",padding:0},children:"Add to list"})]}),(E!=null||O!=null)&&(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem",color:"#6b7280"},children:[I!=null&&(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("span",{style:{color:"#facc15"},children:"\u2605"}),(0,fe.jsx)("span",{children:I.toFixed(1)}),E!=null&&(0,fe.jsxs)("span",{style:{color:"#9ca3af"},children:["(",E," reviews)"]})]}),I!=null&&O!=null?(0,fe.jsx)("span",{style:{color:"#9ca3af"},children:"\u2022"}):null,O!=null?(0,fe.jsxs)("span",{children:["CN Score: ",O]}):null]}),P&&(0,fe.jsx)("div",{style:{color:"#6b7280"},children:P}),b&&(0,fe.jsx)("div",{style:{color:"#6b7280"},children:b}),x&&(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280"},children:[(0,fe.jsx)("span",{children:"\u{1F4CD}"}),(0,fe.jsxs)("span",{children:[x," from ",e.fromLocation]})]}),w&&(0,fe.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#6b7280"},children:[(0,fe.jsx)("span",{children:"\u{1F4B0}"}),(0,fe.jsxs)("span",{children:["Rate: $",w,"/hr"]})]}),C.notes&&(0,fe.jsxs)("div",{style:{color:"#374151",marginTop:"0.4rem"},children:[(0,fe.jsx)("span",{style:{marginRight:"0.25rem"},children:"\u2728"}),(0,fe.jsx)("strong",{children:"Recommendation notes"}),(0,fe.jsx)("div",{style:{marginLeft:"1.25rem",marginTop:"0.25rem",color:"#6b7280"},children:C.notes})]}),(()=>{let ne=s(C.vendor_id),ue=ne.rating==="positive",Me=ne.rating==="negative",$=T=>{s(C.vendor_id).rating===T?(c(C.vendor_id),n?.(C.vendor_id,{})):(u(C.vendor_id,{rating:T}),n?.(C.vendor_id,{rating:T,vendorId:C.vendor_id,vendorName:g}))},ce=()=>{let T=s(C.vendor_id);u(C.vendor_id,{showComment:!T.showComment})},_t=()=>{let ze=s(C.vendor_id).commentText?.trim();ze&&(u(C.vendor_id,{showComment:!1,commentText:ze}),n?.(C.vendor_id,{comment:ze,vendorId:C.vendor_id,vendorName:g}))};return(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:"0.5rem",alignItems:"center",minHeight:"1.75rem"},children:[F?.verified&&(0,fe.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,fe.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Wellthy Verified"]}),ie&&(0,fe.jsxs)("span",{style:{display:"flex",alignItems:"center",gap:"0.25rem",color:"#22c55e",fontSize:"0.75rem"},children:[(0,fe.jsx)("span",{style:{fontSize:"0.875rem"},children:"\u2713"})," Background check"]}),n&&(0,fe.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:"0.25rem",alignItems:"center"},children:[(0,fe.jsx)("button",{onClick:()=>$("positive"),style:{background:ue?"rgba(34, 197, 94, 0.1)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:ue?"#22c55e":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:"This vendor was helpful",children:(0,fe.jsx)(vi,{style:{width:"1rem",height:"1rem"}})}),(0,fe.jsx)("button",{onClick:()=>$("negative"),style:{background:Me?"rgba(239, 68, 68, 0.1)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:Me?"#ef4444":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:"This vendor was not helpful",children:(0,fe.jsx)(yi,{style:{width:"1rem",height:"1rem"}})}),(()=>{let T=!!ne.commentText?.trim(),ze=T?gi:Ln;return(0,fe.jsx)("button",{onClick:ce,style:{background:ne.showComment?"rgba(0, 0, 0, 0.05)":"transparent",border:"none",borderRadius:"0.35rem",padding:"0.25rem",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",color:T?"#3b82f6":ne.showComment?"#6b7280":"#9ca3af",width:"1.75rem",height:"1.75rem"},title:T?"Edit comment":"Add comment",children:(0,fe.jsx)(ze,{style:{width:"1rem",height:"1rem"}})})})()]})]}),ne.showComment&&(0,fe.jsx)("div",{style:{position:"absolute",bottom:0,left:0,right:0,background:"#ffffff",borderTop:"1px solid #e5e7eb",borderRadius:"0 0 0.5rem 0.5rem",padding:"0.75rem 1rem",boxShadow:"0 -2px 8px rgba(0, 0, 0, 0.1)"},children:(0,fe.jsxs)("div",{style:{display:"flex",gap:"0.5rem",alignItems:"flex-start"},children:[(0,fe.jsx)("textarea",{placeholder:"Share your thoughts about this vendor...",value:ne.commentText??"",onChange:T=>u(C.vendor_id,{commentText:T.target.value}),rows:2,style:{flex:1,padding:"0.5rem",border:"1px solid #e5e7eb",borderRadius:"0.35rem",fontSize:"0.875rem",fontFamily:"inherit",resize:"none",minHeight:"50px"}}),(0,fe.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:"0.375rem"},children:[(0,fe.jsx)("button",{onClick:_t,disabled:!ne.commentText?.trim(),style:{padding:"0.35rem 0.75rem",fontSize:"0.75rem",fontWeight:500,borderRadius:"0.3rem",cursor:ne.commentText?.trim()?"pointer":"not-allowed",background:"#3b82f6",border:"none",color:"#ffffff",opacity:ne.commentText?.trim()?1:.5},children:"Save"}),(0,fe.jsx)("button",{onClick:ce,style:{padding:"0.25rem 0.5rem",fontSize:"0.75rem",fontWeight:500,background:"transparent",border:"none",color:"#9ca3af",cursor:"pointer"},children:"Cancel"})]})]})})]})})()]},C.vendor_id)})})}var Wa=pe(Ye(),1),lse=[Eh({widgetType:"person-card",schema:qr.object({name:qr.string(),photoUri:qr.string().optional().describe("URL to a photo of the person"),details:qr.record(qr.string(),qr.any()).optional()}).describe("showing a person card with name, photo and additional details"),render:e=>(0,Wa.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"1rem",background:"#ffffff",border:"1px solid #e5e7eb",borderRadius:"0.5rem",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"},children:(0,Wa.jsxs)("div",{style:{display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[e.photoUri&&(0,Wa.jsx)("img",{src:e.photoUri,alt:e.name,style:{width:"3rem",height:"3rem",borderRadius:"9999px",objectFit:"cover",flexShrink:0},loading:"lazy"}),(0,Wa.jsxs)("div",{style:{flex:1,minWidth:0},children:[(0,Wa.jsx)("div",{style:{fontWeight:600,fontSize:"1rem",color:"#111827",marginBottom:"0.25rem"},children:e.name}),e.details?(0,Wa.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Object.entries(e.details).map(([t,a])=>(0,Wa.jsxs)("div",{style:{display:"flex",gap:"0.5rem",fontSize:"0.875rem"},children:[(0,Wa.jsxs)("span",{style:{color:"#6b7280",fontWeight:500,minWidth:"fit-content"},children:[t,":"]}),(0,Wa.jsx)("span",{style:{color:"#374151"},children:String(a)})]},t))}):null]})]})})}),Eh({widgetType:"link",schema:qr.object({uri:qr.string().url(),text:qr.string().optional()}).describe("rendering a clickable link"),render:e=>(0,Wa.jsx)("a",{href:e.uri,target:"_blank",rel:"noreferrer",style:{display:"inline-flex",alignItems:"center",padding:"0.5rem 0.75rem",background:"#f3f4f6",border:"1px solid #d1d5db",borderRadius:"0.375rem",color:"#3b82f6",textDecoration:"none",fontSize:"0.875rem",fontWeight:500,transition:"all 0.2s ease"},onMouseEnter:t=>{t.currentTarget.style.background="#e5e7eb",t.currentTarget.style.borderColor="#9ca3af",t.currentTarget.style.color="#2563eb"},onMouseLeave:t=>{t.currentTarget.style.background="#f3f4f6",t.currentTarget.style.borderColor="#d1d5db",t.currentTarget.style.color="#3b82f6"},children:e.text||e.uri})})],xO=e=>[Eh({widgetType:"vendor-cards",schema:vO,enrich:{vendorDetails:{toolId:e?"86dc78e28f933225750d9bcff7c94b18-CPgsswom7FkUYvplmy6H":"CPgsswom7FkUYvplmy6H",inputs:{vendorIds:"${vendors|map('vendor_id')|join(',')}"}},distanceMatrix:{toolId:e?"82a0f402ed32bf51cfcb2c3baeb67d57-DwsbeKAxOctXSGgghvW8":"DwsbeKAxOctXSGgghvW8",inputs:{origin:"${fromCoordinates}",destinations:"${vendors|map('vendorCoordinates')}"}}},render:(n,r,{messageContext:o})=>(0,Wa.jsx)(yO,{payload:n,enriched:r,existingFeedback:o?.getFeedback?.()?.notes,onAddToList:i=>{window.dispatchEvent(new CustomEvent("vendor-selected",{detail:{vendorId:i}}))},onFeedback:(i,l)=>{o?.submitFeedback?.({notes:[{noteId:i,...l}]})}})})];var zh=pe(Ye(),1),wk=class{constructor(t){this.container=null;this.root=null;this.config=t}async init(){if(await this.registerWidgetsIfNeeded(),this.container&&this.config.containerId&&this.container.id!==this.config.containerId&&this.destroy(),this.root&&this.container)return;if(this.config.containerId){if(this.container=document.getElementById(this.config.containerId),!this.container){console.error(`Container with id "${this.config.containerId}" not found`);return}}else this.config.anchor?.enabled?(this.container=document.createElement("div"),document.body.appendChild(this.container)):(this.container=document.createElement("div"),this.container.id="chat-widget-container",this.container.style.cssText=`
|
|
121
|
-
position: fixed;
|
|
122
|
-
bottom: 20px;
|
|
123
|
-
right: 20px;
|
|
124
|
-
width: 384px;
|
|
125
|
-
height: 500px;
|
|
126
|
-
z-index: 999999;
|
|
127
|
-
box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
|
|
128
|
-
border-radius: 12px;
|
|
129
|
-
overflow: hidden;
|
|
130
|
-
`,document.body.appendChild(this.container));this.container&&(this.container.style.display="block"),this.root=(0,bO.createRoot)(this.container);let{containerId:t,...a}=this.config,n=a.anchor?.enabled?$h:Us;this.root.render((0,zh.jsx)(n,{...a,openOverride:this.openOverride,onToggleOpen:r=>{this.openOverride=r,this.updateConfig({})}}))}destroy(){this.root&&(this.root.unmount(),this.root=null),this.container&&this.container.parentNode&&!this.config.containerId&&this.container.parentNode.removeChild(this.container),this.container&&this.config.containerId&&(this.container.innerHTML=""),this.container=null}updateConfig(t){let a=t.api?{...this.config.api,...t.api}:this.config.api;if(this.config={...this.config,...t,api:a},this.registerWidgetsIfNeeded(),this.root){let{containerId:n,...r}=this.config,o=r.anchor?.enabled?$h:Us;this.root.render((0,zh.jsx)(o,{...r,openOverride:this.openOverride,onToggleOpen:i=>{this.openOverride=i,this.updateConfig({})}}))}}updateToken(t){this.updateConfig({api:{...this.config.api||{baseUrl:"",token:""},token:t}})}async registerWidgetsIfNeeded(){let t=this.config.widgets;if(!(!t||t.length===0)&&!(this.lastRegistered&&this.lastRegistered.threadId===this.config.threadId&&this.lastRegistered.widgets===t))try{await jm({api:this.config.api,threadId:this.config.threadId,widgets:t,onAuthError:this.config.onAuthError}),this.lastRegistered={threadId:this.config.threadId,widgets:t}}catch(a){console.error("Failed to register chat widgets",a)}}},Ge=null;window.ChatWidget={init:async e=>{Ge?Ge.updateConfig(e):Ge=new wk(e),await Ge.init()},destroy:()=>{Ge&&(Ge.destroy(),Ge=null)},hide:()=>{Ge&&(Ge.openOverride=!1,Ge.container&&(Ge.container.style.display="block"),Ge.updateConfig({}))},show:()=>{if(Ge){if(Ge.openOverride=!0,Ge.container&&(Ge.container.style.display="block"),Ge.container&&Ge.container.children.length===0&&Ge.root){let{containerId:e,...t}=Ge.config,a=t.anchor?.enabled?$h:Us;Ge.root.render((0,zh.jsx)(a,{...t,openOverride:Ge.openOverride,onToggleOpen:n=>{Ge.openOverride=n,Ge.updateConfig({})}}))}Ge.updateConfig({})}},updateConfig:e=>{Ge&&Ge.updateConfig(e)},updateToken:e=>{Ge&&Ge.updateToken(e)},getVendorCardsWidget:xO,createWidget:hO};if(typeof window<"u"){let e=window.chatWidgetConfig;e&&window.ChatWidget.init(e).catch(console.error);let t=document.currentScript;if(t&&t.hasAttribute("data-config"))try{let a=JSON.parse(t.getAttribute("data-config")||"{}");window.ChatWidget.init(a).catch(console.error)}catch(a){console.error("Failed to parse chat widget config from data-config attribute:",a)}if(t&&t.hasAttribute("data-api-base-url")&&t.hasAttribute("data-token")&&t.hasAttribute("data-thread-id")&&t.hasAttribute("data-agent-id")){let a=t.getAttribute("data-agent-id"),n={api:{baseUrl:t.getAttribute("data-api-base-url")||"",token:t.getAttribute("data-token")||""},agentId:a,threadId:t.getAttribute("data-thread-id")||"",containerId:t.getAttribute("data-container-id")||void 0,title:t.getAttribute("data-title")||void 0,initialAssistantMessage:t.getAttribute("data-initial-assistant-message")||void 0,initialUserMessage:t.getAttribute("data-initial-user-message")||void 0},r=t.getAttribute("data-agent-version")||void 0,o=t.getAttribute("data-agent-execution-id")||void 0;if(r)if(r==="latest"||r==="published")n.agentVersion=r;else{let i=parseInt(r,10);isNaN(i)||(n.agentVersion=i)}if(o&&(n.agentExecutionId=o),t.getAttribute("data-anchor")==="true"&&(n.anchor={enabled:!0}),t.hasAttribute("data-headers"))try{let i=JSON.parse(t.getAttribute("data-headers")||"{}");n.api.headers=i}catch(i){console.error("Failed to parse headers from data-headers attribute:",i)}window.ChatWidget.init(n).catch(console.error)}}return CO(mZ);})();
|
|
131
|
-
/*! Bundled license information:
|
|
132
|
-
|
|
133
|
-
scheduler/cjs/scheduler.production.js:
|
|
134
|
-
(**
|
|
135
|
-
* @license React
|
|
136
|
-
* scheduler.production.js
|
|
137
|
-
*
|
|
138
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
139
|
-
*
|
|
140
|
-
* This source code is licensed under the MIT license found in the
|
|
141
|
-
* LICENSE file in the root directory of this source tree.
|
|
142
|
-
*)
|
|
143
|
-
|
|
144
|
-
react/cjs/react.production.js:
|
|
145
|
-
(**
|
|
146
|
-
* @license React
|
|
147
|
-
* react.production.js
|
|
148
|
-
*
|
|
149
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the MIT license found in the
|
|
152
|
-
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*)
|
|
154
|
-
|
|
155
|
-
react-dom/cjs/react-dom.production.js:
|
|
156
|
-
(**
|
|
157
|
-
* @license React
|
|
158
|
-
* react-dom.production.js
|
|
159
|
-
*
|
|
160
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
161
|
-
*
|
|
162
|
-
* This source code is licensed under the MIT license found in the
|
|
163
|
-
* LICENSE file in the root directory of this source tree.
|
|
164
|
-
*)
|
|
165
|
-
|
|
166
|
-
react-dom/cjs/react-dom-client.production.js:
|
|
167
|
-
(**
|
|
168
|
-
* @license React
|
|
169
|
-
* react-dom-client.production.js
|
|
170
|
-
*
|
|
171
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the MIT license found in the
|
|
174
|
-
* LICENSE file in the root directory of this source tree.
|
|
175
|
-
*)
|
|
176
|
-
|
|
177
|
-
react/cjs/react-jsx-runtime.production.js:
|
|
178
|
-
(**
|
|
179
|
-
* @license React
|
|
180
|
-
* react-jsx-runtime.production.js
|
|
181
|
-
*
|
|
182
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the MIT license found in the
|
|
185
|
-
* LICENSE file in the root directory of this source tree.
|
|
186
|
-
*)
|
|
187
|
-
|
|
188
|
-
lucide-react/dist/esm/shared/src/utils.js:
|
|
189
|
-
lucide-react/dist/esm/defaultAttributes.js:
|
|
190
|
-
lucide-react/dist/esm/Icon.js:
|
|
191
|
-
lucide-react/dist/esm/createLucideIcon.js:
|
|
192
|
-
lucide-react/dist/esm/icons/chevron-right.js:
|
|
193
|
-
lucide-react/dist/esm/icons/circle-stop.js:
|
|
194
|
-
lucide-react/dist/esm/icons/message-square-text.js:
|
|
195
|
-
lucide-react/dist/esm/icons/message-square.js:
|
|
196
|
-
lucide-react/dist/esm/icons/mic-off.js:
|
|
197
|
-
lucide-react/dist/esm/icons/mic.js:
|
|
198
|
-
lucide-react/dist/esm/icons/send.js:
|
|
199
|
-
lucide-react/dist/esm/icons/thumbs-up.js:
|
|
200
|
-
lucide-react/dist/esm/icons/thumbs-down.js:
|
|
201
|
-
lucide-react/dist/esm/icons/x.js:
|
|
202
|
-
lucide-react/dist/esm/lucide-react.js:
|
|
203
|
-
(**
|
|
204
|
-
* @license lucide-react v0.553.0 - ISC
|
|
205
|
-
*
|
|
206
|
-
* This source code is licensed under the ISC license.
|
|
207
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*)
|
|
209
|
-
*/
|
|
210
|
-
//# sourceMappingURL=widget.global.js.map
|