@mappedin/events 6.9.0-beta.0 → 6.9.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/esm/index.js +1 -1
  2. package/package.json +2 -2
package/lib/esm/index.js CHANGED
@@ -1 +1 @@
1
- var iT=Object.create;var Ms=Object.defineProperty,oT=Object.defineProperties,sT=Object.getOwnPropertyDescriptor,aT=Object.getOwnPropertyDescriptors,cT=Object.getOwnPropertyNames,uc=Object.getOwnPropertySymbols,uT=Object.getPrototypeOf,vf=Object.prototype.hasOwnProperty,y_=Object.prototype.propertyIsEnumerable;var cc=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),_f=e=>{throw TypeError(e)};var xf=(e,t,n)=>t in e?Ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))vf.call(t,n)&&xf(e,n,t[n]);if(uc)for(var n of uc(t))y_.call(t,n)&&xf(e,n,t[n]);return e},L=(e,t)=>oT(e,aT(t)),o=(e,t)=>Ms(e,"name",{value:t,configurable:!0});var lc=e=>typeof e=="symbol"?e:e+"",Es=(e,t)=>{var n={};for(var i in e)vf.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&uc)for(var i of uc(e))t.indexOf(i)<0&&y_.call(e,i)&&(n[i]=e[i]);return n};var lT=(e,t)=>()=>(e&&(t=e(e=0)),t);var x_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),un=(e,t)=>{for(var n in t)Ms(e,n,{get:t[n],enumerable:!0})},fT=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cT(t))!vf.call(e,r)&&r!==n&&Ms(e,r,{get:()=>t[r],enumerable:!(i=sT(t,r))||i.enumerable});return e};var dT=(e,t,n)=>(n=e!=null?iT(uT(e)):{},fT(t||!e||!e.__esModule?Ms(n,"default",{value:e,enumerable:!0}):n,e));var Xe=(e,t,n)=>xf(e,typeof t!="symbol"?t+"":t,n),bf=(e,t,n)=>t.has(e)||_f("Cannot "+n);var W=(e,t,n)=>(bf(e,t,"read from private field"),n?n.call(e):t.get(e)),It=(e,t,n)=>t.has(e)?_f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ot=(e,t,n,i)=>(bf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ci=(e,t,n)=>(bf(e,t,"access private method"),n);var v_=function(e,t){this[0]=e,this[1]=t},__=(e,t,n)=>{var i=(a,u,l,c)=>{try{var d=n[a](u),h=(u=d.value)instanceof v_,m=d.done;Promise.resolve(h?u[0]:u).then(y=>h?i(a==="return"?a:"next",u[1]?{done:y.done,value:y.value}:y,l,c):l({value:y,done:m})).catch(y=>i("throw",y,l,c))}catch(y){c(y)}},r=a=>s[a]=u=>new Promise((l,c)=>i(a,u,l,c)),s={};return n=n.apply(e,t),s[cc("asyncIterator")]=()=>s,r("next"),r("throw"),r("return"),s},k=e=>{var t=e[cc("asyncIterator")],n=!1,i,r={};return t==null?(t=e[cc("iterator")](),i=s=>r[s]=a=>t[s](a)):(t=t.call(e),i=s=>r[s]=a=>{if(n){if(n=!1,s==="throw")throw a;return a}return n=!0,{done:!1,value:new v_(new Promise(u=>{var l=t[s](a);l instanceof Object||_f("Object expected"),u(l)}),1)}}),r[cc("iterator")]=()=>r,i("next"),"throw"in t?i("throw"):r.throw=s=>{throw s},"return"in t&&i("return"),r};var g,f=lT(()=>{g={env:{NODE_ENV:"production",npm_package_version:"6.9.0-beta.0"}}});var VE=x_((d_,p_)=>{f();(function(e,t){typeof d_=="object"&&typeof p_<"u"?p_.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.TinyQueue=t())})(d_,function(){"use strict";var e=o(function(i,r){if(i===void 0&&(i=[]),r===void 0&&(r=t),this.data=i,this.length=this.data.length,this.compare=r,this.length>0)for(var s=(this.length>>1)-1;s>=0;s--)this._down(s)},"TinyQueue");e.prototype.push=o(function(i){this.data.push(i),this.length++,this._up(this.length-1)},"push"),e.prototype.pop=o(function(){if(this.length!==0){var i=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),i}},"pop"),e.prototype.peek=o(function(){return this.data[0]},"peek"),e.prototype._up=o(function(i){for(var r=this,s=r.data,a=r.compare,u=s[i];i>0;){var l=i-1>>1,c=s[l];if(a(u,c)>=0)break;s[i]=c,i=l}s[i]=u},"_up"),e.prototype._down=o(function(i){for(var r=this,s=r.data,a=r.compare,u=this.length>>1,l=s[i];i<u;){var c=(i<<1)+1,d=s[c],h=c+1;if(h<this.length&&a(s[h],d)<0&&(c=h,d=s[h]),a(d,l)>=0)break;s[i]=d,i=c}s[i]=l},"_down");function t(n,i){return n<i?-1:n>i?1:0}return o(t,"defaultCompare"),e})});var GE=x_((b0e,h_)=>{"use strict";f();var gf=VE();gf.default&&(gf=gf.default);h_.exports=jE;h_.exports.default=jE;function jE(e,t,n){t=t||1;for(var i,r,s,a,u=0;u<e[0].length;u++){var l=e[0][u];(!u||l[0]<i)&&(i=l[0]),(!u||l[1]<r)&&(r=l[1]),(!u||l[0]>s)&&(s=l[0]),(!u||l[1]>a)&&(a=l[1])}var c=s-i,d=a-r,h=Math.min(c,d),m=h/2;if(h===0){var y=[i,r];return y.distance=0,y}for(var v=new gf(void 0,VB),I=i;I<s;I+=h)for(var T=r;T<a;T+=h)v.push(new Ci(I+m,T+m,m,e));var U=GB(e),D=new Ci(i+c/2,r+d/2,0,e);D.d>U.d&&(U=D);for(var w=v.length;v.length;){var S=v.pop();S.d>U.d&&(U=S,n&&console.log("found best %d after %d probes",Math.round(1e4*S.d)/1e4,w)),!(S.max-U.d<=t)&&(m=S.h/2,v.push(new Ci(S.x-m,S.y-m,m,e)),v.push(new Ci(S.x+m,S.y-m,m,e)),v.push(new Ci(S.x-m,S.y+m,m,e)),v.push(new Ci(S.x+m,S.y+m,m,e)),w+=4)}n&&(console.log("num probes: "+w),console.log("best distance: "+U.d));var A=[U.x,U.y];return A.distance=U.d,A}o(jE,"polylabel");function VB(e,t){return t.max-e.max}o(VB,"compareMax");function Ci(e,t,n,i){this.x=e,this.y=t,this.h=n,this.d=jB(e,t,i),this.max=this.d+this.h*Math.SQRT2}o(Ci,"Cell");function jB(e,t,n){for(var i=!1,r=1/0,s=0;s<n.length;s++)for(var a=n[s],u=0,l=a.length,c=l-1;u<l;c=u++){var d=a[u],h=a[c];d[1]>t!=h[1]>t&&e<(h[0]-d[0])*(t-d[1])/(h[1]-d[1])+d[0]&&(i=!i),r=Math.min(r,HB(e,t,d,h))}return r===0?0:(i?1:-1)*Math.sqrt(r)}o(jB,"pointToPolygonDist");function GB(e){for(var t=0,n=0,i=0,r=e[0],s=0,a=r.length,u=a-1;s<a;u=s++){var l=r[s],c=r[u],d=l[0]*c[1]-c[0]*l[1];n+=(l[0]+c[0])*d,i+=(l[1]+c[1])*d,t+=d*3}return t===0?new Ci(r[0][0],r[0][1],0,e):new Ci(n/t,i/t,0,e)}o(GB,"getCentroidCell");function HB(e,t,n,i){var r=n[0],s=n[1],a=i[0]-r,u=i[1]-s;if(a!==0||u!==0){var l=((e-r)*a+(t-s)*u)/(a*a+u*u);l>1?(r=i[0],s=i[1]):l>0&&(r+=a*l,s+=u*l)}return a=e-r,u=t-s,a*a+u*u}o(HB,"getSegDistSq")});f();f();f();f();var b_="[MappedinJS]";function hT(e="",{prefix:t=b_}={}){let n="".concat(t).concat(e?"-".concat(e):""),i=o((r,s)=>{if(typeof window<"u"&&window.rnDebug){let a=s.map(u=>u instanceof Error&&u.stack?"".concat(u.message,"\n").concat(u.stack):u);window.rnDebug("".concat(e," ").concat(r,": ").concat(a.join(" ")))}},"rnDebug");return{logState:g.env.NODE_ENV==="test"?3:0,log(...r){this.logState<=0&&(console.log(n,...r),i("log",r))},warn(...r){this.logState<=1&&(console.warn(n,...r),i("warn",r))},error(...r){this.logState<=2&&(console.error(n,...r),i("error",r))},assert(...r){console.assert(...r)},time(r){console.time(r)},timeEnd(r){console.timeEnd(r)},setLevel(r){0<=r&&r<=3&&(this.logState=r)}}}o(hT,"createLogger");var mT=hT();var io=mT;f();f();f();var If=class If extends Error{};o(If,"InvalidTokenError");var Sf=If;Sf.prototype.name="InvalidTokenError";f();f();f();var qf="173";var Kf=0,Yf=1,Jf=2,Qf=3,ed=4,td=5,nd=6,rd=7;var k_=300;var Cf=1e3,As=1001,Of=1002;var D_=1006;var L_=1008;var $_=1009;var z_=1023;var gc=2300,Uf=2301,wf=2302,S_=2400,I_=2401,w_=2402;var id="",Fn="srgb",Ff="srgb-linear",Nf="linear",mc="srgb";var Ps=2e3,M_=2001;var cd=class cd{addEventListener(t,n){this._listeners===void 0&&(this._listeners={});let i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(n)===-1&&i[t].push(n)}hasEventListener(t,n){let i=this._listeners;return i===void 0?!1:i[t]!==void 0&&i[t].indexOf(n)!==-1}removeEventListener(t,n){let i=this._listeners;if(i===void 0)return;let r=i[t];if(r!==void 0){let s=r.indexOf(n);s!==-1&&r.splice(s,1)}}dispatchEvent(t){let n=this._listeners;if(n===void 0)return;let i=n[t.type];if(i!==void 0){t.target=this;let r=i.slice(0);for(let s=0,a=r.length;s<a;s++)r[s].call(this,t);t.target=null}}};o(cd,"EventDispatcher");var Cs=cd,Gt=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];var p4=Math.PI/180,gT=180/Math.PI;function od(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(Gt[e&255]+Gt[e>>8&255]+Gt[e>>16&255]+Gt[e>>24&255]+"-"+Gt[t&255]+Gt[t>>8&255]+"-"+Gt[t>>16&15|64]+Gt[t>>24&255]+"-"+Gt[n&63|128]+Gt[n>>8&255]+"-"+Gt[n>>16&255]+Gt[n>>24&255]+Gt[i&255]+Gt[i>>8&255]+Gt[i>>16&255]+Gt[i>>24&255]).toLowerCase()}o(od,"generateUUID");function Ye(e,t,n){return Math.max(t,Math.min(n,e))}o(Ye,"clamp");function yT(e,t){return(e%t+t)%t}o(yT,"euclideanModulo");function Mf(e,t,n){return(1-n)*e+n*t}o(Mf,"lerp");var vc=class vc{constructor(t=0,n=0){vc.prototype.isVector2=!0,this.x=t,this.y=n}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,n){return this.x=t,this.y=n,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){let n=this.x,i=this.y,r=t.elements;return this.x=r[0]*n+r[3]*i+r[6],this.y=r[1]*n+r[4]*i+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,n){return this.x=Ye(this.x,t.x,n.x),this.y=Ye(this.y,t.y,n.y),this}clampScalar(t,n){return this.x=Ye(this.x,t,n),this.y=Ye(this.y,t,n),this}clampLength(t,n){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Ye(i,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){let n=Math.sqrt(this.lengthSq()*t.lengthSq());if(n===0)return Math.PI/2;let i=this.dot(t)/n;return Math.acos(Ye(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let n=this.x-t.x,i=this.y-t.y;return n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this}lerpVectors(t,n,i){return this.x=t.x+(n.x-t.x)*i,this.y=t.y+(n.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this}rotateAround(t,n){let i=Math.cos(n),r=Math.sin(n),s=this.x-t.x,a=this.y-t.y;return this.x=s*i-a*r+t.x,this.y=s*r+a*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}};o(vc,"Vector2");var Qn=vc,_c=class _c{constructor(t,n,i,r,s,a,u,l,c){_c.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,n,i,r,s,a,u,l,c)}set(t,n,i,r,s,a,u,l,c){let d=this.elements;return d[0]=t,d[1]=r,d[2]=u,d[3]=n,d[4]=s,d[5]=l,d[6]=i,d[7]=a,d[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){let n=this.elements,i=t.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(t,n,i){return t.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){let n=t.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,n){let i=t.elements,r=n.elements,s=this.elements,a=i[0],u=i[3],l=i[6],c=i[1],d=i[4],h=i[7],m=i[2],y=i[5],v=i[8],I=r[0],T=r[3],U=r[6],D=r[1],w=r[4],S=r[7],A=r[2],j=r[5],N=r[8];return s[0]=a*I+u*D+l*A,s[3]=a*T+u*w+l*j,s[6]=a*U+u*S+l*N,s[1]=c*I+d*D+h*A,s[4]=c*T+d*w+h*j,s[7]=c*U+d*S+h*N,s[2]=m*I+y*D+v*A,s[5]=m*T+y*w+v*j,s[8]=m*U+y*S+v*N,this}multiplyScalar(t){let n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=t,n[4]*=t,n[7]*=t,n[2]*=t,n[5]*=t,n[8]*=t,this}determinant(){let t=this.elements,n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],u=t[5],l=t[6],c=t[7],d=t[8];return n*a*d-n*u*c-i*s*d+i*u*l+r*s*c-r*a*l}invert(){let t=this.elements,n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],u=t[5],l=t[6],c=t[7],d=t[8],h=d*a-u*c,m=u*l-d*s,y=c*s-a*l,v=n*h+i*m+r*y;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);let I=1/v;return t[0]=h*I,t[1]=(r*c-d*i)*I,t[2]=(u*i-r*a)*I,t[3]=m*I,t[4]=(d*n-r*l)*I,t[5]=(r*s-u*n)*I,t[6]=y*I,t[7]=(i*l-c*n)*I,t[8]=(a*n-i*s)*I,this}transpose(){let t,n=this.elements;return t=n[1],n[1]=n[3],n[3]=t,t=n[2],n[2]=n[6],n[6]=t,t=n[5],n[5]=n[7],n[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){let n=this.elements;return t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8],this}setUvTransform(t,n,i,r,s,a,u){let l=Math.cos(s),c=Math.sin(s);return this.set(i*l,i*c,-i*(l*a+c*u)+a+t,-r*c,r*l,-r*(-c*a+l*u)+u+n,0,0,1),this}scale(t,n){return this.premultiply(Ef.makeScale(t,n)),this}rotate(t){return this.premultiply(Ef.makeRotation(-t)),this}translate(t,n){return this.premultiply(Ef.makeTranslation(t,n)),this}makeTranslation(t,n){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,n,0,0,1),this}makeRotation(t){let n=Math.cos(t),i=Math.sin(t);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(t,n){return this.set(t,0,0,0,n,0,0,0,1),this}equals(t){let n=this.elements,i=t.elements;for(let r=0;r<9;r++)if(n[r]!==i[r])return!1;return!0}fromArray(t,n=0){for(let i=0;i<9;i++)this.elements[i]=t[i+n];return this}toArray(t=[],n=0){let i=this.elements;return t[n]=i[0],t[n+1]=i[1],t[n+2]=i[2],t[n+3]=i[3],t[n+4]=i[4],t[n+5]=i[5],t[n+6]=i[6],t[n+7]=i[7],t[n+8]=i[8],t}clone(){return new this.constructor().fromArray(this.elements)}};o(_c,"Matrix3");var me=_c,Ef=new me;function kf(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}o(kf,"createElementNS");var E_=new me().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),T_=new me().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function xT(){let e={enabled:!0,workingColorSpace:Ff,spaces:{},convert:o(function(r,s,a){return this.enabled===!1||s===a||!s||!a||(this.spaces[s].transfer===mc&&(r.r=Nr(r.r),r.g=Nr(r.g),r.b=Nr(r.b)),this.spaces[s].primaries!==this.spaces[a].primaries&&(r.applyMatrix3(this.spaces[s].toXYZ),r.applyMatrix3(this.spaces[a].fromXYZ)),this.spaces[a].transfer===mc&&(r.r=fo(r.r),r.g=fo(r.g),r.b=fo(r.b))),r},"convert"),fromWorkingColorSpace:o(function(r,s){return this.convert(r,this.workingColorSpace,s)},"fromWorkingColorSpace"),toWorkingColorSpace:o(function(r,s){return this.convert(r,s,this.workingColorSpace)},"toWorkingColorSpace"),getPrimaries:o(function(r){return this.spaces[r].primaries},"getPrimaries"),getTransfer:o(function(r){return r===id?Nf:this.spaces[r].transfer},"getTransfer"),getLuminanceCoefficients:o(function(r,s=this.workingColorSpace){return r.fromArray(this.spaces[s].luminanceCoefficients)},"getLuminanceCoefficients"),define:o(function(r){Object.assign(this.spaces,r)},"define"),_getMatrix:o(function(r,s,a){return r.copy(this.spaces[s].toXYZ).multiply(this.spaces[a].fromXYZ)},"_getMatrix"),_getDrawingBufferColorSpace:o(function(r){return this.spaces[r].outputColorSpaceConfig.drawingBufferColorSpace},"_getDrawingBufferColorSpace"),_getUnpackColorSpace:o(function(r=this.workingColorSpace){return this.spaces[r].workingColorSpaceConfig.unpackColorSpace},"_getUnpackColorSpace")},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],i=[.3127,.329];return e.define({[Ff]:{primaries:t,whitePoint:i,transfer:Nf,toXYZ:E_,fromXYZ:T_,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Fn},outputColorSpaceConfig:{drawingBufferColorSpace:Fn}},[Fn]:{primaries:t,whitePoint:i,transfer:mc,toXYZ:E_,fromXYZ:T_,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Fn}}}),e}o(xT,"createColorManagement");var Un=xT();function Nr(e){return e<.04045?e*.0773993808:Math.pow(e*.9478672986+.0521327014,2.4)}o(Nr,"SRGBToLinear");function fo(e){return e<.0031308?e*12.92:1.055*Math.pow(e,.41666)-.055}o(fo,"LinearToSRGB");var oo,ud=class ud{static getDataURL(t){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let n;if(t instanceof HTMLCanvasElement)n=t;else{oo===void 0&&(oo=kf("canvas")),oo.width=t.width,oo.height=t.height;let i=oo.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),n=oo}return n.toDataURL("image/png")}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){let n=kf("canvas");n.width=t.width,n.height=t.height;let i=n.getContext("2d");i.drawImage(t,0,0,t.width,t.height);let r=i.getImageData(0,0,t.width,t.height),s=r.data;for(let a=0;a<s.length;a++)s[a]=Nr(s[a]/255)*255;return i.putImageData(r,0,0),n}else if(t.data){let n=t.data.slice(0);for(let i=0;i<n.length;i++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[i]=Math.floor(Nr(n[i]/255)*255):n[i]=Nr(n[i]);return{data:n,width:t.width,height:t.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}};o(ud,"ImageUtils");var Df=ud,vT=0,ld=class ld{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:vT++}),this.uuid=od(),this.data=t,this.dataReady=!0,this.version=0}set needsUpdate(t){t===!0&&this.version++}toJSON(t){let n=t===void 0||typeof t=="string";if(!n&&t.images[this.uuid]!==void 0)return t.images[this.uuid];let i={uuid:this.uuid,url:""},r=this.data;if(r!==null){let s;if(Array.isArray(r)){s=[];for(let a=0,u=r.length;a<u;a++)r[a].isDataTexture?s.push(Tf(r[a].image)):s.push(Tf(r[a]))}else s=Tf(r);i.url=s}return n||(t.images[this.uuid]=i),i}};o(ld,"Source");var Lf=ld;function Tf(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap?Df.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}o(Tf,"serializeImage");var _T=0,uo=class uo extends Cs{constructor(t=uo.DEFAULT_IMAGE,n=uo.DEFAULT_MAPPING,i=As,r=As,s=D_,a=L_,u=z_,l=$_,c=uo.DEFAULT_ANISOTROPY,d=id){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:_T++}),this.uuid=od(),this.name="",this.source=new Lf(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=r,this.magFilter=s,this.minFilter=a,this.anisotropy=c,this.format=u,this.internalFormat=null,this.type=l,this.offset=new Qn(0,0),this.repeat=new Qn(1,1),this.center=new Qn(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new me,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=d,this.userData={},this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.renderTarget=t.renderTarget,this.isRenderTargetTexture=t.isRenderTargetTexture,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){let n=t===void 0||typeof t=="string";if(!n&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];let i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==k_)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Cf:t.x=t.x-Math.floor(t.x);break;case As:t.x=t.x<0?0:1;break;case Of:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case Cf:t.y=t.y-Math.floor(t.y);break;case As:t.y=t.y<0?0:1;break;case Of:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}};o(uo,"Texture");var po=uo;po.DEFAULT_IMAGE=null;po.DEFAULT_MAPPING=k_;po.DEFAULT_ANISOTROPY=1;var fd=class fd{constructor(t=0,n=0,i=0,r=1){this.isQuaternion=!0,this._x=t,this._y=n,this._z=i,this._w=r}static slerpFlat(t,n,i,r,s,a,u){let l=i[r+0],c=i[r+1],d=i[r+2],h=i[r+3],m=s[a+0],y=s[a+1],v=s[a+2],I=s[a+3];if(u===0){t[n+0]=l,t[n+1]=c,t[n+2]=d,t[n+3]=h;return}if(u===1){t[n+0]=m,t[n+1]=y,t[n+2]=v,t[n+3]=I;return}if(h!==I||l!==m||c!==y||d!==v){let T=1-u,U=l*m+c*y+d*v+h*I,D=U>=0?1:-1,w=1-U*U;if(w>Number.EPSILON){let A=Math.sqrt(w),j=Math.atan2(A,U*D);T=Math.sin(T*j)/A,u=Math.sin(u*j)/A}let S=u*D;if(l=l*T+m*S,c=c*T+y*S,d=d*T+v*S,h=h*T+I*S,T===1-u){let A=1/Math.sqrt(l*l+c*c+d*d+h*h);l*=A,c*=A,d*=A,h*=A}}t[n]=l,t[n+1]=c,t[n+2]=d,t[n+3]=h}static multiplyQuaternionsFlat(t,n,i,r,s,a){let u=i[r],l=i[r+1],c=i[r+2],d=i[r+3],h=s[a],m=s[a+1],y=s[a+2],v=s[a+3];return t[n]=u*v+d*h+l*y-c*m,t[n+1]=l*v+d*m+c*h-u*y,t[n+2]=c*v+d*y+u*m-l*h,t[n+3]=d*v-u*h-l*m-c*y,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,n,i,r){return this._x=t,this._y=n,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,n=!0){let i=t._x,r=t._y,s=t._z,a=t._order,u=Math.cos,l=Math.sin,c=u(i/2),d=u(r/2),h=u(s/2),m=l(i/2),y=l(r/2),v=l(s/2);switch(a){case"XYZ":this._x=m*d*h+c*y*v,this._y=c*y*h-m*d*v,this._z=c*d*v+m*y*h,this._w=c*d*h-m*y*v;break;case"YXZ":this._x=m*d*h+c*y*v,this._y=c*y*h-m*d*v,this._z=c*d*v-m*y*h,this._w=c*d*h+m*y*v;break;case"ZXY":this._x=m*d*h-c*y*v,this._y=c*y*h+m*d*v,this._z=c*d*v+m*y*h,this._w=c*d*h-m*y*v;break;case"ZYX":this._x=m*d*h-c*y*v,this._y=c*y*h+m*d*v,this._z=c*d*v-m*y*h,this._w=c*d*h+m*y*v;break;case"YZX":this._x=m*d*h+c*y*v,this._y=c*y*h+m*d*v,this._z=c*d*v-m*y*h,this._w=c*d*h-m*y*v;break;case"XZY":this._x=m*d*h-c*y*v,this._y=c*y*h-m*d*v,this._z=c*d*v+m*y*h,this._w=c*d*h+m*y*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,n){let i=n/2,r=Math.sin(i);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){let n=t.elements,i=n[0],r=n[4],s=n[8],a=n[1],u=n[5],l=n[9],c=n[2],d=n[6],h=n[10],m=i+u+h;if(m>0){let y=.5/Math.sqrt(m+1);this._w=.25/y,this._x=(d-l)*y,this._y=(s-c)*y,this._z=(a-r)*y}else if(i>u&&i>h){let y=2*Math.sqrt(1+i-u-h);this._w=(d-l)/y,this._x=.25*y,this._y=(r+a)/y,this._z=(s+c)/y}else if(u>h){let y=2*Math.sqrt(1+u-i-h);this._w=(s-c)/y,this._x=(r+a)/y,this._y=.25*y,this._z=(l+d)/y}else{let y=2*Math.sqrt(1+h-i-u);this._w=(a-r)/y,this._x=(s+c)/y,this._y=(l+d)/y,this._z=.25*y}return this._onChangeCallback(),this}setFromUnitVectors(t,n){let i=t.dot(n)+1;return i<Number.EPSILON?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*n.z-t.z*n.y,this._y=t.z*n.x-t.x*n.z,this._z=t.x*n.y-t.y*n.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Ye(this.dot(t),-1,1)))}rotateTowards(t,n){let i=this.angleTo(t);if(i===0)return this;let r=Math.min(1,n/i);return this.slerp(t,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,n){let i=t._x,r=t._y,s=t._z,a=t._w,u=n._x,l=n._y,c=n._z,d=n._w;return this._x=i*d+a*u+r*c-s*l,this._y=r*d+a*l+s*u-i*c,this._z=s*d+a*c+i*l-r*u,this._w=a*d-i*u-r*l-s*c,this._onChangeCallback(),this}slerp(t,n){if(n===0)return this;if(n===1)return this.copy(t);let i=this._x,r=this._y,s=this._z,a=this._w,u=a*t._w+i*t._x+r*t._y+s*t._z;if(u<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,u=-u):this.copy(t),u>=1)return this._w=a,this._x=i,this._y=r,this._z=s,this;let l=1-u*u;if(l<=Number.EPSILON){let y=1-n;return this._w=y*a+n*this._w,this._x=y*i+n*this._x,this._y=y*r+n*this._y,this._z=y*s+n*this._z,this.normalize(),this}let c=Math.sqrt(l),d=Math.atan2(c,u),h=Math.sin((1-n)*d)/c,m=Math.sin(n*d)/c;return this._w=a*h+this._w*m,this._x=i*h+this._x*m,this._y=r*h+this._y*m,this._z=s*h+this._z*m,this._onChangeCallback(),this}slerpQuaternions(t,n,i){return this.copy(t).slerp(n,i)}random(){let t=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),i=Math.random(),r=Math.sqrt(1-i),s=Math.sqrt(i);return this.set(r*Math.sin(t),r*Math.cos(t),s*Math.sin(n),s*Math.cos(n))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,n=0){return this._x=t[n],this._y=t[n+1],this._z=t[n+2],this._w=t[n+3],this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._w,t}fromBufferAttribute(t,n){return this._x=t.getX(n),this._y=t.getY(n),this._z=t.getZ(n),this._w=t.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}};o(fd,"Quaternion");var di=fd,bc=class bc{constructor(t=0,n=0,i=0){bc.prototype.isVector3=!0,this.x=t,this.y=n,this.z=i}set(t,n,i){return i===void 0&&(i=this.z),this.x=t,this.y=n,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this.z=t.z+n.z,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this.z+=t.z*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this.z=t.z-n.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,n){return this.x=t.x*n.x,this.y=t.y*n.y,this.z=t.z*n.z,this}applyEuler(t){return this.applyQuaternion(A_.setFromEuler(t))}applyAxisAngle(t,n){return this.applyQuaternion(A_.setFromAxisAngle(t,n))}applyMatrix3(t){let n=this.x,i=this.y,r=this.z,s=t.elements;return this.x=s[0]*n+s[3]*i+s[6]*r,this.y=s[1]*n+s[4]*i+s[7]*r,this.z=s[2]*n+s[5]*i+s[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){let n=this.x,i=this.y,r=this.z,s=t.elements,a=1/(s[3]*n+s[7]*i+s[11]*r+s[15]);return this.x=(s[0]*n+s[4]*i+s[8]*r+s[12])*a,this.y=(s[1]*n+s[5]*i+s[9]*r+s[13])*a,this.z=(s[2]*n+s[6]*i+s[10]*r+s[14])*a,this}applyQuaternion(t){let n=this.x,i=this.y,r=this.z,s=t.x,a=t.y,u=t.z,l=t.w,c=2*(a*r-u*i),d=2*(u*n-s*r),h=2*(s*i-a*n);return this.x=n+l*c+a*h-u*d,this.y=i+l*d+u*c-s*h,this.z=r+l*h+s*d-a*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){let n=this.x,i=this.y,r=this.z,s=t.elements;return this.x=s[0]*n+s[4]*i+s[8]*r,this.y=s[1]*n+s[5]*i+s[9]*r,this.z=s[2]*n+s[6]*i+s[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,n){return this.x=Ye(this.x,t.x,n.x),this.y=Ye(this.y,t.y,n.y),this.z=Ye(this.z,t.z,n.z),this}clampScalar(t,n){return this.x=Ye(this.x,t,n),this.y=Ye(this.y,t,n),this.z=Ye(this.z,t,n),this}clampLength(t,n){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Ye(i,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this.z+=(t.z-this.z)*n,this}lerpVectors(t,n,i){return this.x=t.x+(n.x-t.x)*i,this.y=t.y+(n.y-t.y)*i,this.z=t.z+(n.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,n){let i=t.x,r=t.y,s=t.z,a=n.x,u=n.y,l=n.z;return this.x=r*l-s*u,this.y=s*a-i*l,this.z=i*u-r*a,this}projectOnVector(t){let n=t.lengthSq();if(n===0)return this.set(0,0,0);let i=t.dot(this)/n;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return Af.copy(this).projectOnVector(t),this.sub(Af)}reflect(t){return this.sub(Af.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){let n=Math.sqrt(this.lengthSq()*t.lengthSq());if(n===0)return Math.PI/2;let i=this.dot(t)/n;return Math.acos(Ye(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let n=this.x-t.x,i=this.y-t.y,r=this.z-t.z;return n*n+i*i+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,n,i){let r=Math.sin(n)*t;return this.x=r*Math.sin(i),this.y=Math.cos(n)*t,this.z=r*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,n,i){return this.x=t*Math.sin(n),this.y=i,this.z=t*Math.cos(n),this}setFromMatrixPosition(t){let n=t.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(t){let n=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=n,this.y=i,this.z=r,this}setFromMatrixColumn(t,n){return this.fromArray(t.elements,n*4)}setFromMatrix3Column(t,n){return this.fromArray(t.elements,n*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this.z=t[n+2],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t[n+2]=this.z,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this.z=t.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let t=Math.random()*Math.PI*2,n=Math.random()*2-1,i=Math.sqrt(1-n*n);return this.x=i*Math.cos(t),this.y=n,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};o(bc,"Vector3");var ke=bc,Af=new ke,A_=new di;var Rs=class Rs{constructor(t,n,i,r,s,a,u,l,c,d,h,m,y,v,I,T){Rs.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,n,i,r,s,a,u,l,c,d,h,m,y,v,I,T)}set(t,n,i,r,s,a,u,l,c,d,h,m,y,v,I,T){let U=this.elements;return U[0]=t,U[4]=n,U[8]=i,U[12]=r,U[1]=s,U[5]=a,U[9]=u,U[13]=l,U[2]=c,U[6]=d,U[10]=h,U[14]=m,U[3]=y,U[7]=v,U[11]=I,U[15]=T,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rs().fromArray(this.elements)}copy(t){let n=this.elements,i=t.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(t){let n=this.elements,i=t.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(t){let n=t.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(t,n,i){return t.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,n,i){return this.set(t.x,n.x,i.x,0,t.y,n.y,i.y,0,t.z,n.z,i.z,0,0,0,0,1),this}extractRotation(t){let n=this.elements,i=t.elements,r=1/so.setFromMatrixColumn(t,0).length(),s=1/so.setFromMatrixColumn(t,1).length(),a=1/so.setFromMatrixColumn(t,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*s,n[5]=i[5]*s,n[6]=i[6]*s,n[7]=0,n[8]=i[8]*a,n[9]=i[9]*a,n[10]=i[10]*a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(t){let n=this.elements,i=t.x,r=t.y,s=t.z,a=Math.cos(i),u=Math.sin(i),l=Math.cos(r),c=Math.sin(r),d=Math.cos(s),h=Math.sin(s);if(t.order==="XYZ"){let m=a*d,y=a*h,v=u*d,I=u*h;n[0]=l*d,n[4]=-l*h,n[8]=c,n[1]=y+v*c,n[5]=m-I*c,n[9]=-u*l,n[2]=I-m*c,n[6]=v+y*c,n[10]=a*l}else if(t.order==="YXZ"){let m=l*d,y=l*h,v=c*d,I=c*h;n[0]=m+I*u,n[4]=v*u-y,n[8]=a*c,n[1]=a*h,n[5]=a*d,n[9]=-u,n[2]=y*u-v,n[6]=I+m*u,n[10]=a*l}else if(t.order==="ZXY"){let m=l*d,y=l*h,v=c*d,I=c*h;n[0]=m-I*u,n[4]=-a*h,n[8]=v+y*u,n[1]=y+v*u,n[5]=a*d,n[9]=I-m*u,n[2]=-a*c,n[6]=u,n[10]=a*l}else if(t.order==="ZYX"){let m=a*d,y=a*h,v=u*d,I=u*h;n[0]=l*d,n[4]=v*c-y,n[8]=m*c+I,n[1]=l*h,n[5]=I*c+m,n[9]=y*c-v,n[2]=-c,n[6]=u*l,n[10]=a*l}else if(t.order==="YZX"){let m=a*l,y=a*c,v=u*l,I=u*c;n[0]=l*d,n[4]=I-m*h,n[8]=v*h+y,n[1]=h,n[5]=a*d,n[9]=-u*d,n[2]=-c*d,n[6]=y*h+v,n[10]=m-I*h}else if(t.order==="XZY"){let m=a*l,y=a*c,v=u*l,I=u*c;n[0]=l*d,n[4]=-h,n[8]=c*d,n[1]=m*h+I,n[5]=a*d,n[9]=y*h-v,n[2]=v*h-y,n[6]=u*d,n[10]=I*h+m}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(t){return this.compose(bT,t,ST)}lookAt(t,n,i){let r=this.elements;return xn.subVectors(t,n),xn.lengthSq()===0&&(xn.z=1),xn.normalize(),ui.crossVectors(i,xn),ui.lengthSq()===0&&(Math.abs(i.z)===1?xn.x+=1e-4:xn.z+=1e-4,xn.normalize(),ui.crossVectors(i,xn)),ui.normalize(),fc.crossVectors(xn,ui),r[0]=ui.x,r[4]=fc.x,r[8]=xn.x,r[1]=ui.y,r[5]=fc.y,r[9]=xn.y,r[2]=ui.z,r[6]=fc.z,r[10]=xn.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,n){let i=t.elements,r=n.elements,s=this.elements,a=i[0],u=i[4],l=i[8],c=i[12],d=i[1],h=i[5],m=i[9],y=i[13],v=i[2],I=i[6],T=i[10],U=i[14],D=i[3],w=i[7],S=i[11],A=i[15],j=r[0],N=r[4],H=r[8],G=r[12],ce=r[1],ue=r[5],he=r[9],Ge=r[13],Oe=r[2],Ue=r[6],V=r[10],ne=r[14],le=r[3],oe=r[7],Me=r[11],pt=r[15];return s[0]=a*j+u*ce+l*Oe+c*le,s[4]=a*N+u*ue+l*Ue+c*oe,s[8]=a*H+u*he+l*V+c*Me,s[12]=a*G+u*Ge+l*ne+c*pt,s[1]=d*j+h*ce+m*Oe+y*le,s[5]=d*N+h*ue+m*Ue+y*oe,s[9]=d*H+h*he+m*V+y*Me,s[13]=d*G+h*Ge+m*ne+y*pt,s[2]=v*j+I*ce+T*Oe+U*le,s[6]=v*N+I*ue+T*Ue+U*oe,s[10]=v*H+I*he+T*V+U*Me,s[14]=v*G+I*Ge+T*ne+U*pt,s[3]=D*j+w*ce+S*Oe+A*le,s[7]=D*N+w*ue+S*Ue+A*oe,s[11]=D*H+w*he+S*V+A*Me,s[15]=D*G+w*Ge+S*ne+A*pt,this}multiplyScalar(t){let n=this.elements;return n[0]*=t,n[4]*=t,n[8]*=t,n[12]*=t,n[1]*=t,n[5]*=t,n[9]*=t,n[13]*=t,n[2]*=t,n[6]*=t,n[10]*=t,n[14]*=t,n[3]*=t,n[7]*=t,n[11]*=t,n[15]*=t,this}determinant(){let t=this.elements,n=t[0],i=t[4],r=t[8],s=t[12],a=t[1],u=t[5],l=t[9],c=t[13],d=t[2],h=t[6],m=t[10],y=t[14],v=t[3],I=t[7],T=t[11],U=t[15];return v*(+s*l*h-r*c*h-s*u*m+i*c*m+r*u*y-i*l*y)+I*(+n*l*y-n*c*m+s*a*m-r*a*y+r*c*d-s*l*d)+T*(+n*c*h-n*u*y-s*a*h+i*a*y+s*u*d-i*c*d)+U*(-r*u*d-n*l*h+n*u*m+r*a*h-i*a*m+i*l*d)}transpose(){let t=this.elements,n;return n=t[1],t[1]=t[4],t[4]=n,n=t[2],t[2]=t[8],t[8]=n,n=t[6],t[6]=t[9],t[9]=n,n=t[3],t[3]=t[12],t[12]=n,n=t[7],t[7]=t[13],t[13]=n,n=t[11],t[11]=t[14],t[14]=n,this}setPosition(t,n,i){let r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=n,r[14]=i),this}invert(){let t=this.elements,n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],u=t[5],l=t[6],c=t[7],d=t[8],h=t[9],m=t[10],y=t[11],v=t[12],I=t[13],T=t[14],U=t[15],D=h*T*c-I*m*c+I*l*y-u*T*y-h*l*U+u*m*U,w=v*m*c-d*T*c-v*l*y+a*T*y+d*l*U-a*m*U,S=d*I*c-v*h*c+v*u*y-a*I*y-d*u*U+a*h*U,A=v*h*l-d*I*l-v*u*m+a*I*m+d*u*T-a*h*T,j=n*D+i*w+r*S+s*A;if(j===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let N=1/j;return t[0]=D*N,t[1]=(I*m*s-h*T*s-I*r*y+i*T*y+h*r*U-i*m*U)*N,t[2]=(u*T*s-I*l*s+I*r*c-i*T*c-u*r*U+i*l*U)*N,t[3]=(h*l*s-u*m*s-h*r*c+i*m*c+u*r*y-i*l*y)*N,t[4]=w*N,t[5]=(d*T*s-v*m*s+v*r*y-n*T*y-d*r*U+n*m*U)*N,t[6]=(v*l*s-a*T*s-v*r*c+n*T*c+a*r*U-n*l*U)*N,t[7]=(a*m*s-d*l*s+d*r*c-n*m*c-a*r*y+n*l*y)*N,t[8]=S*N,t[9]=(v*h*s-d*I*s-v*i*y+n*I*y+d*i*U-n*h*U)*N,t[10]=(a*I*s-v*u*s+v*i*c-n*I*c-a*i*U+n*u*U)*N,t[11]=(d*u*s-a*h*s-d*i*c+n*h*c+a*i*y-n*u*y)*N,t[12]=A*N,t[13]=(d*I*r-v*h*r+v*i*m-n*I*m-d*i*T+n*h*T)*N,t[14]=(v*u*r-a*I*r-v*i*l+n*I*l+a*i*T-n*u*T)*N,t[15]=(a*h*r-d*u*r+d*i*l-n*h*l-a*i*m+n*u*m)*N,this}scale(t){let n=this.elements,i=t.x,r=t.y,s=t.z;return n[0]*=i,n[4]*=r,n[8]*=s,n[1]*=i,n[5]*=r,n[9]*=s,n[2]*=i,n[6]*=r,n[10]*=s,n[3]*=i,n[7]*=r,n[11]*=s,this}getMaxScaleOnAxis(){let t=this.elements,n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(n,i,r))}makeTranslation(t,n,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(t){let n=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(t){let n=Math.cos(t),i=Math.sin(t);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(t){let n=Math.cos(t),i=Math.sin(t);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,n){let i=Math.cos(n),r=Math.sin(n),s=1-i,a=t.x,u=t.y,l=t.z,c=s*a,d=s*u;return this.set(c*a+i,c*u-r*l,c*l+r*u,0,c*u+r*l,d*u+i,d*l-r*a,0,c*l-r*u,d*l+r*a,s*l*l+i,0,0,0,0,1),this}makeScale(t,n,i){return this.set(t,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,n,i,r,s,a){return this.set(1,i,s,0,t,1,a,0,n,r,1,0,0,0,0,1),this}compose(t,n,i){let r=this.elements,s=n._x,a=n._y,u=n._z,l=n._w,c=s+s,d=a+a,h=u+u,m=s*c,y=s*d,v=s*h,I=a*d,T=a*h,U=u*h,D=l*c,w=l*d,S=l*h,A=i.x,j=i.y,N=i.z;return r[0]=(1-(I+U))*A,r[1]=(y+S)*A,r[2]=(v-w)*A,r[3]=0,r[4]=(y-S)*j,r[5]=(1-(m+U))*j,r[6]=(T+D)*j,r[7]=0,r[8]=(v+w)*N,r[9]=(T-D)*N,r[10]=(1-(m+I))*N,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,n,i){let r=this.elements,s=so.set(r[0],r[1],r[2]).length(),a=so.set(r[4],r[5],r[6]).length(),u=so.set(r[8],r[9],r[10]).length();this.determinant()<0&&(s=-s),t.x=r[12],t.y=r[13],t.z=r[14],Jn.copy(this);let c=1/s,d=1/a,h=1/u;return Jn.elements[0]*=c,Jn.elements[1]*=c,Jn.elements[2]*=c,Jn.elements[4]*=d,Jn.elements[5]*=d,Jn.elements[6]*=d,Jn.elements[8]*=h,Jn.elements[9]*=h,Jn.elements[10]*=h,n.setFromRotationMatrix(Jn),i.x=s,i.y=a,i.z=u,this}makePerspective(t,n,i,r,s,a,u=Ps){let l=this.elements,c=2*s/(n-t),d=2*s/(i-r),h=(n+t)/(n-t),m=(i+r)/(i-r),y,v;if(u===Ps)y=-(a+s)/(a-s),v=-2*a*s/(a-s);else if(u===M_)y=-a/(a-s),v=-a*s/(a-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+u);return l[0]=c,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=m,l[13]=0,l[2]=0,l[6]=0,l[10]=y,l[14]=v,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,n,i,r,s,a,u=Ps){let l=this.elements,c=1/(n-t),d=1/(i-r),h=1/(a-s),m=(n+t)*c,y=(i+r)*d,v,I;if(u===Ps)v=(a+s)*h,I=-2*h;else if(u===M_)v=s*h,I=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+u);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-m,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-y,l[2]=0,l[6]=0,l[10]=I,l[14]=-v,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){let n=this.elements,i=t.elements;for(let r=0;r<16;r++)if(n[r]!==i[r])return!1;return!0}fromArray(t,n=0){for(let i=0;i<16;i++)this.elements[i]=t[i+n];return this}toArray(t=[],n=0){let i=this.elements;return t[n]=i[0],t[n+1]=i[1],t[n+2]=i[2],t[n+3]=i[3],t[n+4]=i[4],t[n+5]=i[5],t[n+6]=i[6],t[n+7]=i[7],t[n+8]=i[8],t[n+9]=i[9],t[n+10]=i[10],t[n+11]=i[11],t[n+12]=i[12],t[n+13]=i[13],t[n+14]=i[14],t[n+15]=i[15],t}};o(Rs,"Matrix4");var kr=Rs,so=new ke,Jn=new kr,bT=new ke(0,0,0),ST=new ke(1,1,1),ui=new ke,fc=new ke,xn=new ke,P_=new kr,R_=new di,Sc=class Sc{constructor(t=0,n=0,i=0,r=Sc.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=i,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,n,i,r=this._order){return this._x=t,this._y=n,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,n=this._order,i=!0){let r=t.elements,s=r[0],a=r[4],u=r[8],l=r[1],c=r[5],d=r[9],h=r[2],m=r[6],y=r[10];switch(n){case"XYZ":this._y=Math.asin(Ye(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(-d,y),this._z=Math.atan2(-a,s)):(this._x=Math.atan2(m,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Ye(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(u,y),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,s),this._z=0);break;case"ZXY":this._x=Math.asin(Ye(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-h,y),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-Ye(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(m,y),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(Ye(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,c),this._y=Math.atan2(-h,s)):(this._x=0,this._y=Math.atan2(u,y));break;case"XZY":this._z=Math.asin(-Ye(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(m,c),this._y=Math.atan2(u,s)):(this._x=Math.atan2(-d,y),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(t,n,i){return P_.makeRotationFromQuaternion(t),this.setFromRotationMatrix(P_,n,i)}setFromVector3(t,n=this._order){return this.set(t.x,t.y,t.z,n)}reorder(t){return R_.setFromEuler(this),this.setFromQuaternion(R_,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};o(Sc,"Euler");var Os=Sc;Os.DEFAULT_ORDER="XYZ";var dd=class dd{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return(this.mask&t.mask)!==0}isEnabled(t){return(this.mask&(1<<t|0))!==0}};o(dd,"Layers");var yc=dd,IT=0,C_=new ke,ao=new di,Fr=new kr,dc=new ke,Ts=new ke,wT=new ke,MT=new di,O_=new ke(1,0,0),U_=new ke(0,1,0),F_=new ke(0,0,1),N_={type:"added"},ET={type:"removed"},co={type:"childadded",child:null},Pf={type:"childremoved",child:null},lo=class lo extends Cs{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:IT++}),this.uuid=od(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=lo.DEFAULT_UP.clone();let t=new ke,n=new Os,i=new di,r=new ke(1,1,1);function s(){i.setFromEuler(n,!1)}o(s,"onRotationChange");function a(){n.setFromQuaternion(i,void 0,!1)}o(a,"onQuaternionChange"),n._onChange(s),i._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new kr},normalMatrix:{value:new me}}),this.matrix=new kr,this.matrixWorld=new kr,this.matrixAutoUpdate=lo.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=lo.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new yc,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,n){this.quaternion.setFromAxisAngle(t,n)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,n){return ao.setFromAxisAngle(t,n),this.quaternion.multiply(ao),this}rotateOnWorldAxis(t,n){return ao.setFromAxisAngle(t,n),this.quaternion.premultiply(ao),this}rotateX(t){return this.rotateOnAxis(O_,t)}rotateY(t){return this.rotateOnAxis(U_,t)}rotateZ(t){return this.rotateOnAxis(F_,t)}translateOnAxis(t,n){return C_.copy(t).applyQuaternion(this.quaternion),this.position.add(C_.multiplyScalar(n)),this}translateX(t){return this.translateOnAxis(O_,t)}translateY(t){return this.translateOnAxis(U_,t)}translateZ(t){return this.translateOnAxis(F_,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Fr.copy(this.matrixWorld).invert())}lookAt(t,n,i){t.isVector3?dc.copy(t):dc.set(t,n,i);let r=this.parent;this.updateWorldMatrix(!0,!1),Ts.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Fr.lookAt(Ts,dc,this.up):Fr.lookAt(dc,Ts,this.up),this.quaternion.setFromRotationMatrix(Fr),r&&(Fr.extractRotation(r.matrixWorld),ao.setFromRotationMatrix(Fr),this.quaternion.premultiply(ao.invert()))}add(t){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(N_),co.child=t,this.dispatchEvent(co),co.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}let n=this.children.indexOf(t);return n!==-1&&(t.parent=null,this.children.splice(n,1),t.dispatchEvent(ET),Pf.child=t,this.dispatchEvent(Pf),Pf.child=null),this}removeFromParent(){let t=this.parent;return t!==null&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),Fr.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Fr.multiply(t.parent.matrixWorld)),t.applyMatrix4(Fr),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(N_),co.child=t,this.dispatchEvent(co),co.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,n){if(this[t]===n)return this;for(let i=0,r=this.children.length;i<r;i++){let a=this.children[i].getObjectByProperty(t,n);if(a!==void 0)return a}}getObjectsByProperty(t,n,i=[]){this[t]===n&&i.push(this);let r=this.children;for(let s=0,a=r.length;s<a;s++)r[s].getObjectsByProperty(t,n,i);return i}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ts,t,wT),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ts,MT,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);let n=this.matrixWorld.elements;return t.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(t){t(this);let n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverse(t)}traverseVisible(t){if(this.visible===!1)return;t(this);let n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverseVisible(t)}traverseAncestors(t){let n=this.parent;n!==null&&(t(n),n.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,t=!0);let n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].updateMatrixWorld(t)}updateWorldMatrix(t,n){let i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),n===!0){let r=this.children;for(let s=0,a=r.length;s<a;s++)r[s].updateWorldMatrix(!1,!0)}}toJSON(t){let n=t===void 0||typeof t=="string",i={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});let r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(u=>({boxInitialized:u.boxInitialized,boxMin:u.box.min.toArray(),boxMax:u.box.max.toArray(),sphereInitialized:u.sphereInitialized,sphereRadius:u.sphere.radius,sphereCenter:u.sphere.center.toArray()})),r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(t),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function s(u,l){return u[l.uuid]===void 0&&(u[l.uuid]=l.toJSON(t)),l.uuid}if(o(s,"serialize"),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(t.geometries,this.geometry);let u=this.geometry.parameters;if(u!==void 0&&u.shapes!==void 0){let l=u.shapes;if(Array.isArray(l))for(let c=0,d=l.length;c<d;c++){let h=l[c];s(t.shapes,h)}else s(t.shapes,l)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(t.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let u=[];for(let l=0,c=this.material.length;l<c;l++)u.push(s(t.materials,this.material[l]));r.material=u}else r.material=s(t.materials,this.material);if(this.children.length>0){r.children=[];for(let u=0;u<this.children.length;u++)r.children.push(this.children[u].toJSON(t).object)}if(this.animations.length>0){r.animations=[];for(let u=0;u<this.animations.length;u++){let l=this.animations[u];r.animations.push(s(t.animations,l))}}if(n){let u=a(t.geometries),l=a(t.materials),c=a(t.textures),d=a(t.images),h=a(t.shapes),m=a(t.skeletons),y=a(t.animations),v=a(t.nodes);u.length>0&&(i.geometries=u),l.length>0&&(i.materials=l),c.length>0&&(i.textures=c),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),m.length>0&&(i.skeletons=m),y.length>0&&(i.animations=y),v.length>0&&(i.nodes=v)}return i.object=r,i;function a(u){let l=[];for(let c in u){let d=u[c];delete d.metadata,l.push(d)}return l}o(a,"extractFromCache")}clone(t){return new this.constructor().copy(this,t)}copy(t,n=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),n===!0)for(let i=0;i<t.children.length;i++){let r=t.children[i];this.add(r.clone())}return this}};o(lo,"Object3D");var Us=lo;Us.DEFAULT_UP=new ke(0,1,0);Us.DEFAULT_MATRIX_AUTO_UPDATE=!0;Us.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var B_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},li={h:0,s:0,l:0},pc={h:0,s:0,l:0};function Rf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}o(Rf,"hue2rgb");var pd=class pd{constructor(t,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,n,i)}set(t,n,i){if(n===void 0&&i===void 0){let r=t;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(t,n,i);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,n=Fn){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,Un.toWorkingColorSpace(this,n),this}setRGB(t,n,i,r=Un.workingColorSpace){return this.r=t,this.g=n,this.b=i,Un.toWorkingColorSpace(this,r),this}setHSL(t,n,i,r=Un.workingColorSpace){if(t=yT(t,1),n=Ye(n,0,1),i=Ye(i,0,1),n===0)this.r=this.g=this.b=i;else{let s=i<=.5?i*(1+n):i+n-i*n,a=2*i-s;this.r=Rf(a,s,t+1/3),this.g=Rf(a,s,t),this.b=Rf(a,s,t-1/3)}return Un.toWorkingColorSpace(this,r),this}setStyle(t,n=Fn){function i(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}o(i,"handleAlpha");let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(t)){let s,a=r[1],u=r[2];switch(a){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(u))return i(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,n);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(u))return i(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,n);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(u))return i(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(t)){let s=r[1],a=s.length;if(a===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,n);if(a===6)return this.setHex(parseInt(s,16),n);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,n);return this}setColorName(t,n=Fn){let i=B_[t.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Nr(t.r),this.g=Nr(t.g),this.b=Nr(t.b),this}copyLinearToSRGB(t){return this.r=fo(t.r),this.g=fo(t.g),this.b=fo(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Fn){return Un.fromWorkingColorSpace(Ht.copy(this),t),Math.round(Ye(Ht.r*255,0,255))*65536+Math.round(Ye(Ht.g*255,0,255))*256+Math.round(Ye(Ht.b*255,0,255))}getHexString(t=Fn){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,n=Un.workingColorSpace){Un.fromWorkingColorSpace(Ht.copy(this),n);let i=Ht.r,r=Ht.g,s=Ht.b,a=Math.max(i,r,s),u=Math.min(i,r,s),l,c,d=(u+a)/2;if(u===a)l=0,c=0;else{let h=a-u;switch(c=d<=.5?h/(a+u):h/(2-a-u),a){case i:l=(r-s)/h+(r<s?6:0);break;case r:l=(s-i)/h+2;break;case s:l=(i-r)/h+4;break}l/=6}return t.h=l,t.s=c,t.l=d,t}getRGB(t,n=Un.workingColorSpace){return Un.fromWorkingColorSpace(Ht.copy(this),n),t.r=Ht.r,t.g=Ht.g,t.b=Ht.b,t}getStyle(t=Fn){Un.fromWorkingColorSpace(Ht.copy(this),t);let n=Ht.r,i=Ht.g,r=Ht.b;return t!==Fn?"color(".concat(t," ").concat(n.toFixed(3)," ").concat(i.toFixed(3)," ").concat(r.toFixed(3),")"):"rgb(".concat(Math.round(n*255),",").concat(Math.round(i*255),",").concat(Math.round(r*255),")")}offsetHSL(t,n,i){return this.getHSL(li),this.setHSL(li.h+t,li.s+n,li.l+i)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,n){return this.r=t.r+n.r,this.g=t.g+n.g,this.b=t.b+n.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,n){return this.r+=(t.r-this.r)*n,this.g+=(t.g-this.g)*n,this.b+=(t.b-this.b)*n,this}lerpColors(t,n,i){return this.r=t.r+(n.r-t.r)*i,this.g=t.g+(n.g-t.g)*i,this.b=t.b+(n.b-t.b)*i,this}lerpHSL(t,n){this.getHSL(li),t.getHSL(pc);let i=Mf(li.h,pc.h,n),r=Mf(li.s,pc.s,n),s=Mf(li.l,pc.l,n);return this.setHSL(i,r,s),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){let n=this.r,i=this.g,r=this.b,s=t.elements;return this.r=s[0]*n+s[3]*i+s[6]*r,this.g=s[1]*n+s[4]*i+s[7]*r,this.b=s[2]*n+s[5]*i+s[8]*r,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,n=0){return this.r=t[n],this.g=t[n+1],this.b=t[n+2],this}toArray(t=[],n=0){return t[n]=this.r,t[n+1]=this.g,t[n+2]=this.b,t}fromBufferAttribute(t,n){return this.r=t.getX(n),this.g=t.getY(n),this.b=t.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}};o(pd,"Color");var _t=pd,Ht=new _t;_t.NAMES=B_;function V_(e){let t={};for(let n in e){t[n]={};for(let i in e[n]){let r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][i]=null):t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}}return t}o(V_,"cloneUniforms");function tn(e){let t={};for(let n=0;n<e.length;n++){let i=V_(e[n]);for(let r in i)t[r]=i[r]}return t}o(tn,"mergeUniforms");function hc(e,t,n){return!e||!n&&e.constructor===t?e:typeof t.BYTES_PER_ELEMENT=="number"?new t(e):Array.prototype.slice.call(e)}o(hc,"convertArray");function TT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}o(TT,"isTypedArray");var hd=class hd{constructor(t,n,i,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new n.constructor(i),this.sampleValues=n,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(t){let n=this.parameterPositions,i=this._cachedIndex,r=n[i],s=n[i-1];n:{e:{let a;t:{r:if(!(t<r)){for(let u=i+2;;){if(r===void 0){if(t<s)break r;return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===u)break;if(s=r,r=n[++i],t<r)break e}a=n.length;break t}if(!(t>=s)){let u=n[1];t<u&&(i=2,s=u);for(let l=i-2;;){if(s===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===l)break;if(r=s,s=n[--i-1],t>=s)break e}a=i,i=0;break t}break n}for(;i<a;){let u=i+a>>>1;t<n[u]?a=u:i=u+1}if(r=n[i],s=n[i-1],s===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,s,r)}return this.interpolate_(i,s,t,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){let n=this.resultBuffer,i=this.sampleValues,r=this.valueSize,s=t*r;for(let a=0;a!==r;++a)n[a]=i[s+a];return n}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}};o(hd,"Interpolant");var ho=hd,md=class md extends ho{constructor(t,n,i,r){super(t,n,i,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:S_,endingEnd:S_}}intervalChanged_(t,n,i){let r=this.parameterPositions,s=t-2,a=t+1,u=r[s],l=r[a];if(u===void 0)switch(this.getSettings_().endingStart){case I_:s=t,u=2*n-i;break;case w_:s=r.length-2,u=n+r[s]-r[s+1];break;default:s=t,u=i}if(l===void 0)switch(this.getSettings_().endingEnd){case I_:a=t,l=2*i-n;break;case w_:a=1,l=i+r[1]-r[0];break;default:a=t-1,l=n}let c=(i-n)*.5,d=this.valueSize;this._weightPrev=c/(n-u),this._weightNext=c/(l-i),this._offsetPrev=s*d,this._offsetNext=a*d}interpolate_(t,n,i,r){let s=this.resultBuffer,a=this.sampleValues,u=this.valueSize,l=t*u,c=l-u,d=this._offsetPrev,h=this._offsetNext,m=this._weightPrev,y=this._weightNext,v=(i-n)/(r-n),I=v*v,T=I*v,U=-m*T+2*m*I-m*v,D=(1+m)*T+(-1.5-2*m)*I+(-.5+m)*v+1,w=(-1-y)*T+(1.5+y)*I+.5*v,S=y*T-y*I;for(let A=0;A!==u;++A)s[A]=U*a[d+A]+D*a[c+A]+w*a[l+A]+S*a[h+A];return s}};o(md,"CubicInterpolant");var $f=md,gd=class gd extends ho{constructor(t,n,i,r){super(t,n,i,r)}interpolate_(t,n,i,r){let s=this.resultBuffer,a=this.sampleValues,u=this.valueSize,l=t*u,c=l-u,d=(i-n)/(r-n),h=1-d;for(let m=0;m!==u;++m)s[m]=a[c+m]*h+a[l+m]*d;return s}};o(gd,"LinearInterpolant");var zf=gd,yd=class yd extends ho{constructor(t,n,i,r){super(t,n,i,r)}interpolate_(t){return this.copySampleValue_(t-1)}};o(yd,"DiscreteInterpolant");var Bf=yd,xd=class xd{constructor(t,n,i,r){if(t===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(n===void 0||n.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=hc(n,this.TimeBufferType),this.values=hc(i,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(t){let n=t.constructor,i;if(n.toJSON!==this.toJSON)i=n.toJSON(t);else{i={name:t.name,times:hc(t.times,Array),values:hc(t.values,Array)};let r=t.getInterpolation();r!==t.DefaultInterpolation&&(i.interpolation=r)}return i.type=t.ValueTypeName,i}InterpolantFactoryMethodDiscrete(t){return new Bf(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new zf(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new $f(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let n;switch(t){case gc:n=this.InterpolantFactoryMethodDiscrete;break;case Uf:n=this.InterpolantFactoryMethodLinear;break;case wf:n=this.InterpolantFactoryMethodSmooth;break}if(n===void 0){let i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(i);return console.warn("THREE.KeyframeTrack:",i),this}return this.createInterpolant=n,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return gc;case this.InterpolantFactoryMethodLinear:return Uf;case this.InterpolantFactoryMethodSmooth:return wf}}getValueSize(){return this.values.length/this.times.length}shift(t){if(t!==0){let n=this.times;for(let i=0,r=n.length;i!==r;++i)n[i]+=t}return this}scale(t){if(t!==1){let n=this.times;for(let i=0,r=n.length;i!==r;++i)n[i]*=t}return this}trim(t,n){let i=this.times,r=i.length,s=0,a=r-1;for(;s!==r&&i[s]<t;)++s;for(;a!==-1&&i[a]>n;)--a;if(++a,s!==0||a!==r){s>=a&&(a=Math.max(a,1),s=a-1);let u=this.getValueSize();this.times=i.slice(s,a),this.values=this.values.slice(s*u,a*u)}return this}validate(){let t=!0,n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);let i=this.times,r=this.values,s=i.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let a=null;for(let u=0;u!==s;u++){let l=i[u];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,u,l),t=!1;break}if(a!==null&&a>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,u,l,a),t=!1;break}a=l}if(r!==void 0&&TT(r))for(let u=0,l=r.length;u!==l;++u){let c=r[u];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,u,c),t=!1;break}}return t}optimize(){let t=this.times.slice(),n=this.values.slice(),i=this.getValueSize(),r=this.getInterpolation()===wf,s=t.length-1,a=1;for(let u=1;u<s;++u){let l=!1,c=t[u],d=t[u+1];if(c!==d&&(u!==1||c!==t[0]))if(r)l=!0;else{let h=u*i,m=h-i,y=h+i;for(let v=0;v!==i;++v){let I=n[h+v];if(I!==n[m+v]||I!==n[y+v]){l=!0;break}}}if(l){if(u!==a){t[a]=t[u];let h=u*i,m=a*i;for(let y=0;y!==i;++y)n[m+y]=n[h+y]}++a}}if(s>0){t[a]=t[s];for(let u=s*i,l=a*i,c=0;c!==i;++c)n[l+c]=n[u+c];++a}return a!==t.length?(this.times=t.slice(0,a),this.values=n.slice(0,a*i)):(this.times=t,this.values=n),this}clone(){let t=this.times.slice(),n=this.values.slice(),i=this.constructor,r=new i(this.name,t,n);return r.createInterpolant=this.createInterpolant,r}};o(xd,"KeyframeTrack");var er=xd;er.prototype.TimeBufferType=Float32Array;er.prototype.ValueBufferType=Float32Array;er.prototype.DefaultInterpolation=Uf;var vd=class vd extends er{constructor(t,n,i){super(t,n,i)}};o(vd,"BooleanKeyframeTrack");var Oi=vd;Oi.prototype.ValueTypeName="bool";Oi.prototype.ValueBufferType=Array;Oi.prototype.DefaultInterpolation=gc;Oi.prototype.InterpolantFactoryMethodLinear=void 0;Oi.prototype.InterpolantFactoryMethodSmooth=void 0;var _d=class _d extends er{};o(_d,"ColorKeyframeTrack");var Vf=_d;Vf.prototype.ValueTypeName="color";var bd=class bd extends er{};o(bd,"NumberKeyframeTrack");var jf=bd;jf.prototype.ValueTypeName="number";var Sd=class Sd extends ho{constructor(t,n,i,r){super(t,n,i,r)}interpolate_(t,n,i,r){let s=this.resultBuffer,a=this.sampleValues,u=this.valueSize,l=(i-n)/(r-n),c=t*u;for(let d=c+u;c!==d;c+=4)di.slerpFlat(s,0,a,c-u,a,c,l);return s}};o(Sd,"QuaternionLinearInterpolant");var Gf=Sd,Id=class Id extends er{InterpolantFactoryMethodLinear(t){return new Gf(this.times,this.values,this.getValueSize(),t)}};o(Id,"QuaternionKeyframeTrack");var xc=Id;xc.prototype.ValueTypeName="quaternion";xc.prototype.InterpolantFactoryMethodSmooth=void 0;var wd=class wd extends er{constructor(t,n,i){super(t,n,i)}};o(wd,"StringKeyframeTrack");var Ui=wd;Ui.prototype.ValueTypeName="string";Ui.prototype.ValueBufferType=Array;Ui.prototype.DefaultInterpolation=gc;Ui.prototype.InterpolantFactoryMethodLinear=void 0;Ui.prototype.InterpolantFactoryMethodSmooth=void 0;var Md=class Md extends er{};o(Md,"VectorKeyframeTrack");var Hf=Md;Hf.prototype.ValueTypeName="vector";var Ed=class Ed{constructor(t,n,i){let r=this,s=!1,a=0,u=0,l,c=[];this.onStart=void 0,this.onLoad=t,this.onProgress=n,this.onError=i,this.itemStart=function(d){u++,s===!1&&r.onStart!==void 0&&r.onStart(d,a,u),s=!0},this.itemEnd=function(d){a++,r.onProgress!==void 0&&r.onProgress(d,a,u),a===u&&(s=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(d){r.onError!==void 0&&r.onError(d)},this.resolveURL=function(d){return l?l(d):d},this.setURLModifier=function(d){return l=d,this},this.addHandler=function(d,h){return c.push(d,h),this},this.removeHandler=function(d){let h=c.indexOf(d);return h!==-1&&c.splice(h,2),this},this.getHandler=function(d){for(let h=0,m=c.length;h<m;h+=2){let y=c[h],v=c[h+1];if(y.global&&(y.lastIndex=0),y.test(d))return v}return null}}};o(Ed,"LoadingManager");var Wf=Ed,AT=new Wf,Td=class Td{constructor(t){this.manager=t!==void 0?t:AT,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,n){let i=this;return new Promise(function(r,s){i.load(t,r,n,s)})}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}};o(Td,"Loader");var Zf=Td;Zf.DEFAULT_MATERIAL_NAME="__DEFAULT";var sd="\\[\\]\\.:\\/",PT=new RegExp("["+sd+"]","g"),ad="[^"+sd+"]",RT="[^"+sd.replace("\\.","")+"]",CT=/((?:WC+[\/:])*)/.source.replace("WC",ad),OT=/(WCOD+)?/.source.replace("WCOD",RT),UT=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",ad),FT=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",ad),NT=new RegExp("^"+CT+OT+UT+FT+"$"),kT=["material","materials","bones","map"],Ad=class Ad{constructor(t,n,i){let r=i||at.parseTrackName(n);this._targetGroup=t,this._bindings=t.subscribe_(n,r)}getValue(t,n){this.bind();let i=this._targetGroup.nCachedObjects_,r=this._bindings[i];r!==void 0&&r.getValue(t,n)}setValue(t,n){let i=this._bindings;for(let r=this._targetGroup.nCachedObjects_,s=i.length;r!==s;++r)i[r].setValue(t,n)}bind(){let t=this._bindings;for(let n=this._targetGroup.nCachedObjects_,i=t.length;n!==i;++n)t[n].bind()}unbind(){let t=this._bindings;for(let n=this._targetGroup.nCachedObjects_,i=t.length;n!==i;++n)t[n].unbind()}};o(Ad,"Composite");var Xf=Ad,fi=class fi{constructor(t,n,i){this.path=n,this.parsedPath=i||fi.parseTrackName(n),this.node=fi.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,i){return t&&t.isAnimationObjectGroup?new fi.Composite(t,n,i):new fi(t,n,i)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(PT,"")}static parseTrackName(t){let n=NT.exec(t);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+t);let i={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},r=i.nodeName&&i.nodeName.lastIndexOf(".");if(r!==void 0&&r!==-1){let s=i.nodeName.substring(r+1);kT.indexOf(s)!==-1&&(i.nodeName=i.nodeName.substring(0,r),i.objectName=s)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return i}static findNode(t,n){if(n===void 0||n===""||n==="."||n===-1||n===t.name||n===t.uuid)return t;if(t.skeleton){let i=t.skeleton.getBoneByName(n);if(i!==void 0)return i}if(t.children){let i=o(function(s){for(let a=0;a<s.length;a++){let u=s[a];if(u.name===n||u.uuid===n)return u;let l=i(u.children);if(l)return l}return null},"searchNodeSubtree"),r=i(t.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,n){t[n]=this.targetObject[this.propertyName]}_getValue_array(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)t[n++]=i[r]}_getValue_arrayElement(t,n){t[n]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,n){this.resolvedProperty.toArray(t,n)}_setValue_direct(t,n){this.targetObject[this.propertyName]=t[n]}_setValue_direct_setNeedsUpdate(t,n){this.targetObject[this.propertyName]=t[n],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,n){this.targetObject[this.propertyName]=t[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)i[r]=t[n++]}_setValue_array_setNeedsUpdate(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)i[r]=t[n++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)i[r]=t[n++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,n){this.resolvedProperty[this.propertyIndex]=t[n]}_setValue_arrayElement_setNeedsUpdate(t,n){this.resolvedProperty[this.propertyIndex]=t[n],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,n){this.resolvedProperty[this.propertyIndex]=t[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,n){this.resolvedProperty.fromArray(t,n)}_setValue_fromArray_setNeedsUpdate(t,n){this.resolvedProperty.fromArray(t,n),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,n){this.resolvedProperty.fromArray(t,n),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,n){this.bind(),this.getValue(t,n)}_setValue_unbound(t,n){this.bind(),this.setValue(t,n)}bind(){let t=this.node,n=this.parsedPath,i=n.objectName,r=n.propertyName,s=n.propertyIndex;if(t||(t=fi.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(i){let c=n.objectIndex;switch(i){case"materials":if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}t=t.skeleton.bones;for(let d=0;d<t.length;d++)if(t[d].name===c){c=d;break}break;case"map":if("map"in t){t=t.map;break}if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}t=t.material.map;break;default:if(t[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}t=t[i]}if(c!==void 0){if(t[c]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);return}t=t[c]}}let a=t[r];if(a===void 0){let c=n.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+c+"."+r+" but it wasn't found.",t);return}let u=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?u=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(u=this.Versioning.MatrixWorldNeedsUpdate);let l=this.BindingType.Direct;if(s!==void 0){if(r==="morphTargetInfluences"){if(!t.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!t.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}t.morphTargetDictionary[s]!==void 0&&(s=t.morphTargetDictionary[s])}l=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=s}else a.fromArray!==void 0&&a.toArray!==void 0?(l=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(l=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=r;this.getValue=this.GetterByBindingType[l],this.setValue=this.SetterByBindingTypeAndVersioning[l][u]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};o(fi,"PropertyBinding");var at=fi;at.Composite=Xf;at.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};at.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};at.prototype.GetterByBindingType=[at.prototype._getValue_direct,at.prototype._getValue_array,at.prototype._getValue_arrayElement,at.prototype._getValue_toArray];at.prototype.SetterByBindingTypeAndVersioning=[[at.prototype._setValue_direct,at.prototype._setValue_direct_setNeedsUpdate,at.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[at.prototype._setValue_array,at.prototype._setValue_array_setNeedsUpdate,at.prototype._setValue_array_setMatrixWorldNeedsUpdate],[at.prototype._setValue_arrayElement,at.prototype._setValue_arrayElement_setNeedsUpdate,at.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[at.prototype._setValue_fromArray,at.prototype._setValue_fromArray_setNeedsUpdate,at.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];var h4=new Float32Array(1);typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:qf}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=qf);var DT="#ifdef USE_ALPHAHASH\n if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",LT="#ifdef USE_ALPHAHASH\n const float ALPHA_HASH_SCALE = 0.05;\n float hash2D( vec2 value ) {\n return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n }\n float hash3D( vec3 value ) {\n return hash2D( vec2( hash2D( value.xy ), value.z ) );\n }\n float getAlphaHashThreshold( vec3 position ) {\n float maxDeriv = max(\n length( dFdx( position.xyz ) ),\n length( dFdy( position.xyz ) )\n );\n float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n vec2 pixScales = vec2(\n exp2( floor( log2( pixScale ) ) ),\n exp2( ceil( log2( pixScale ) ) )\n );\n vec2 alpha = vec2(\n hash3D( floor( pixScales.x * position.xyz ) ),\n hash3D( floor( pixScales.y * position.xyz ) )\n );\n float lerpFactor = fract( log2( pixScale ) );\n float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n float a = min( lerpFactor, 1.0 - lerpFactor );\n vec3 cases = vec3(\n x * x / ( 2.0 * a * ( 1.0 - a ) ),\n ( x - 0.5 * a ) / ( 1.0 - a ),\n 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n );\n float threshold = ( x < ( 1.0 - a ) )\n ? ( ( x < a ) ? cases.x : cases.y )\n : cases.z;\n return clamp( threshold , 1.0e-6, 1.0 );\n }\n#endif",$T="#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",zT="#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",BT="#ifdef USE_ALPHATEST\n #ifdef ALPHA_TO_COVERAGE\n diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n if ( diffuseColor.a < alphaTest ) discard;\n #endif\n#endif",VT="#ifdef USE_ALPHATEST\n uniform float alphaTest;\n#endif",jT="#ifdef USE_AOMAP\n float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n reflectedLight.indirectDiffuse *= ambientOcclusion;\n #if defined( USE_CLEARCOAT ) \n clearcoatSpecularIndirect *= ambientOcclusion;\n #endif\n #if defined( USE_SHEEN ) \n sheenSpecularIndirect *= ambientOcclusion;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD )\n float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n #endif\n#endif",GT="#ifdef USE_AOMAP\n uniform sampler2D aoMap;\n uniform float aoMapIntensity;\n#endif",HT="#ifdef USE_BATCHING\n #if ! defined( GL_ANGLE_multi_draw )\n #define gl_DrawID _gl_DrawID\n uniform int _gl_DrawID;\n #endif\n uniform highp sampler2D batchingTexture;\n uniform highp usampler2D batchingIdTexture;\n mat4 getBatchingMatrix( const in float i ) {\n int size = textureSize( batchingTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n float getIndirectIndex( const in int i ) {\n int size = textureSize( batchingIdTexture, 0 ).x;\n int x = i % size;\n int y = i / size;\n return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );\n }\n#endif\n#ifdef USE_BATCHING_COLOR\n uniform sampler2D batchingColorTexture;\n vec3 getBatchingColor( const in float i ) {\n int size = textureSize( batchingColorTexture, 0 ).x;\n int j = int( i );\n int x = j % size;\n int y = j / size;\n return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;\n }\n#endif",WT="#ifdef USE_BATCHING\n mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );\n#endif",ZT="vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n vPosition = vec3( position );\n#endif",XT="vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n vec3 objectTangent = vec3( tangent.xyz );\n#endif",qT="float G_BlinnPhong_Implicit( ) {\n return 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( specularColor, 1.0, dotVH );\n float G = G_BlinnPhong_Implicit( );\n float D = D_BlinnPhong( shininess, dotNH );\n return F * ( G * D );\n} // validated",KT="#ifdef USE_IRIDESCENCE\n const mat3 XYZ_TO_REC709 = mat3(\n 3.2404542, -0.9692660, 0.0556434,\n -1.5371385, 1.8760108, -0.2040259,\n -0.4985314, 0.0415560, 1.0572252\n );\n vec3 Fresnel0ToIor( vec3 fresnel0 ) {\n vec3 sqrtF0 = sqrt( fresnel0 );\n return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n }\n vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n }\n float IorToFresnel0( float transmittedIor, float incidentIor ) {\n return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n }\n vec3 evalSensitivity( float OPD, vec3 shift ) {\n float phase = 2.0 * PI * OPD * 1.0e-9;\n vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n xyz /= 1.0685e-7;\n vec3 rgb = XYZ_TO_REC709 * xyz;\n return rgb;\n }\n vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n vec3 I;\n float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n float cosTheta2Sq = 1.0 - sinTheta2Sq;\n if ( cosTheta2Sq < 0.0 ) {\n return vec3( 1.0 );\n }\n float cosTheta2 = sqrt( cosTheta2Sq );\n float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n float R12 = F_Schlick( R0, 1.0, cosTheta1 );\n float T121 = 1.0 - R12;\n float phi12 = 0.0;\n if ( iridescenceIOR < outsideIOR ) phi12 = PI;\n float phi21 = PI - phi12;\n vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n vec3 phi23 = vec3( 0.0 );\n if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n vec3 phi = vec3( phi21 ) + phi23;\n vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n vec3 r123 = sqrt( R123 );\n vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n vec3 C0 = R12 + Rs;\n I = C0;\n vec3 Cm = Rs - T121;\n for ( int m = 1; m <= 2; ++ m ) {\n Cm *= r123;\n vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n I += Cm * Sm;\n }\n return max( I, vec3( 0.0 ) );\n }\n#endif",YT="#ifdef USE_BUMPMAP\n uniform sampler2D bumpMap;\n uniform float bumpScale;\n vec2 dHdxy_fwd() {\n vec2 dSTdx = dFdx( vBumpMapUv );\n vec2 dSTdy = dFdy( vBumpMapUv );\n float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n return vec2( dBx, dBy );\n }\n vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n vec3 vN = surf_norm;\n vec3 R1 = cross( vSigmaY, vN );\n vec3 R2 = cross( vN, vSigmaX );\n float fDet = dot( vSigmaX, R1 ) * faceDirection;\n vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n return normalize( abs( fDet ) * surf_norm - vGrad );\n }\n#endif",JT="#if NUM_CLIPPING_PLANES > 0\n vec4 plane;\n #ifdef ALPHA_TO_COVERAGE\n float distanceToPlane, distanceGradient;\n float clipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n if ( clipOpacity == 0.0 ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n float unionClipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n }\n #pragma unroll_loop_end\n clipOpacity *= 1.0 - unionClipOpacity;\n #endif\n diffuseColor.a *= clipOpacity;\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n bool clipped = true;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n }\n #pragma unroll_loop_end\n if ( clipped ) discard;\n #endif\n #endif\n#endif",QT="#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",eA="#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n#endif",tA="#if NUM_CLIPPING_PLANES > 0\n vClipPosition = - mvPosition.xyz;\n#endif",nA="#if defined( USE_COLOR_ALPHA )\n diffuseColor *= vColor;\n#elif defined( USE_COLOR )\n diffuseColor.rgb *= vColor;\n#endif",rA="#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR )\n varying vec3 vColor;\n#endif",iA="#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n varying vec3 vColor;\n#endif",oA="#if defined( USE_COLOR_ALPHA )\n vColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n vColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n vColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n vColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );\n vColor.xyz *= batchingColor.xyz;\n#endif",sA="#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n return fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n float precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n float precisionSafeLength( vec3 v ) {\n float maxComponent = max3( abs( v ) );\n return length( v / maxComponent ) * maxComponent;\n }\n#endif\nstruct IncidentLight {\n vec3 color;\n vec3 direction;\n bool visible;\n};\nstruct ReflectedLight {\n vec3 directDiffuse;\n vec3 directSpecular;\n vec3 indirectDiffuse;\n vec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n varying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n mat3 tmp;\n tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n return tmp;\n}\nbool isPerspectiveMatrix( mat4 m ) {\n return m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n return vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n return RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",aA="#ifdef ENVMAP_TYPE_CUBE_UV\n #define cubeUV_minMipLevel 4.0\n #define cubeUV_minTileSize 16.0\n float getFace( vec3 direction ) {\n vec3 absDirection = abs( direction );\n float face = - 1.0;\n if ( absDirection.x > absDirection.z ) {\n if ( absDirection.x > absDirection.y )\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if ( absDirection.z > absDirection.y )\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n }\n vec2 getUV( vec3 direction, float face ) {\n vec2 uv;\n if ( face == 0.0 ) {\n uv = vec2( direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 1.0 ) {\n uv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n } else if ( face == 2.0 ) {\n uv = vec2( - direction.x, direction.y ) / abs( direction.z );\n } else if ( face == 3.0 ) {\n uv = vec2( - direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 4.0 ) {\n uv = vec2( - direction.x, direction.z ) / abs( direction.y );\n } else {\n uv = vec2( direction.x, direction.y ) / abs( direction.z );\n }\n return 0.5 * ( uv + 1.0 );\n }\n vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n float face = getFace( direction );\n float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n mipInt = max( mipInt, cubeUV_minMipLevel );\n float faceSize = exp2( mipInt );\n highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n if ( face > 2.0 ) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n uv.x += filterInt * 3.0 * cubeUV_minTileSize;\n uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n uv.x *= CUBEUV_TEXEL_WIDTH;\n uv.y *= CUBEUV_TEXEL_HEIGHT;\n #ifdef texture2DGradEXT\n return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n #else\n return texture2D( envMap, uv ).rgb;\n #endif\n }\n #define cubeUV_r0 1.0\n #define cubeUV_m0 - 2.0\n #define cubeUV_r1 0.8\n #define cubeUV_m1 - 1.0\n #define cubeUV_r4 0.4\n #define cubeUV_m4 2.0\n #define cubeUV_r5 0.305\n #define cubeUV_m5 3.0\n #define cubeUV_r6 0.21\n #define cubeUV_m6 4.0\n float roughnessToMip( float roughness ) {\n float mip = 0.0;\n if ( roughness >= cubeUV_r1 ) {\n mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n } else if ( roughness >= cubeUV_r4 ) {\n mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n } else if ( roughness >= cubeUV_r5 ) {\n mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n } else if ( roughness >= cubeUV_r6 ) {\n mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n } else {\n mip = - 2.0 * log2( 1.16 * roughness ); }\n return mip;\n }\n vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n float mipF = fract( mip );\n float mipInt = floor( mip );\n vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n if ( mipF == 0.0 ) {\n return vec4( color0, 1.0 );\n } else {\n vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n return vec4( mix( color0, color1, mipF ), 1.0 );\n }\n }\n#endif",cA="vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n vec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n mat3 bm = mat3( batchingMatrix );\n transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n transformedNormal = bm * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = bm * transformedTangent;\n #endif\n#endif\n#ifdef USE_INSTANCING\n mat3 im = mat3( instanceMatrix );\n transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n transformedNormal = im * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = im * transformedTangent;\n #endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n transformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n #ifdef FLIP_SIDED\n transformedTangent = - transformedTangent;\n #endif\n#endif",uA="#ifdef USE_DISPLACEMENTMAP\n uniform sampler2D displacementMap;\n uniform float displacementScale;\n uniform float displacementBias;\n#endif",lA="#ifdef USE_DISPLACEMENTMAP\n transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",fA="#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE\n emissiveColor = sRGBTransferEOTF( emissiveColor );\n #endif\n totalEmissiveRadiance *= emissiveColor.rgb;\n#endif",dA="#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n#endif",pA="gl_FragColor = linearToOutputTexel( gl_FragColor );",hA="vec4 LinearTransferOETF( in vec4 value ) {\n return value;\n}\nvec4 sRGBTransferEOTF( in vec4 value ) {\n return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",mA="#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vec3 cameraToFrag;\n if ( isOrthographic ) {\n cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToFrag = normalize( vWorldPosition - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vec3 reflectVec = reflect( cameraToFrag, worldNormal );\n #else\n vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n #endif\n #else\n vec3 reflectVec = vReflect;\n #endif\n #ifdef ENVMAP_TYPE_CUBE\n vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n #else\n vec4 envColor = vec4( 0.0 );\n #endif\n #ifdef ENVMAP_BLENDING_MULTIPLY\n outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_MIX )\n outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_ADD )\n outgoingLight += envColor.xyz * specularStrength * reflectivity;\n #endif\n#endif",gA="#ifdef USE_ENVMAP\n uniform float envMapIntensity;\n uniform float flipEnvMap;\n uniform mat3 envMapRotation;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n #else\n uniform sampler2D envMap;\n #endif\n \n#endif",yA="#ifdef USE_ENVMAP\n uniform float reflectivity;\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n varying vec3 vWorldPosition;\n uniform float refractionRatio;\n #else\n varying vec3 vReflect;\n #endif\n#endif",xA="#ifdef USE_ENVMAP\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n \n varying vec3 vWorldPosition;\n #else\n varying vec3 vReflect;\n uniform float refractionRatio;\n #endif\n#endif",vA="#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vWorldPosition = worldPosition.xyz;\n #else\n vec3 cameraToVertex;\n if ( isOrthographic ) {\n cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vReflect = reflect( cameraToVertex, worldNormal );\n #else\n vReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n #endif\n #endif\n#endif",_A="#ifdef USE_FOG\n vFogDepth = - mvPosition.z;\n#endif",bA="#ifdef USE_FOG\n varying float vFogDepth;\n#endif",SA="#ifdef USE_FOG\n #ifdef FOG_EXP2\n float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n #else\n float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n #endif\n gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",IA="#ifdef USE_FOG\n uniform vec3 fogColor;\n varying float vFogDepth;\n #ifdef FOG_EXP2\n uniform float fogDensity;\n #else\n uniform float fogNear;\n uniform float fogFar;\n #endif\n#endif",wA="#ifdef USE_GRADIENTMAP\n uniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n float dotNL = dot( normal, lightDirection );\n vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n #ifdef USE_GRADIENTMAP\n return vec3( texture2D( gradientMap, coord ).r );\n #else\n vec2 fw = fwidth( coord ) * 0.5;\n return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n #endif\n}",MA="#ifdef USE_LIGHTMAP\n uniform sampler2D lightMap;\n uniform float lightMapIntensity;\n#endif",EA="LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",TA="varying vec3 vViewPosition;\nstruct LambertMaterial {\n vec3 diffuseColor;\n float specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Lambert\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert",AA="uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n uniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n float x = normal.x, y = normal.y, z = normal.z;\n vec3 result = shCoefficients[ 0 ] * 0.886227;\n result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n return result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n return irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n vec3 irradiance = ambientLightColor;\n return irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n if ( cutoffDistance > 0.0 ) {\n distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n }\n return distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n return smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n struct DirectionalLight {\n vec3 direction;\n vec3 color;\n };\n uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n light.color = directionalLight.color;\n light.direction = directionalLight.direction;\n light.visible = true;\n }\n#endif\n#if NUM_POINT_LIGHTS > 0\n struct PointLight {\n vec3 position;\n vec3 color;\n float distance;\n float decay;\n };\n uniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = pointLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float lightDistance = length( lVector );\n light.color = pointLight.color;\n light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n }\n#endif\n#if NUM_SPOT_LIGHTS > 0\n struct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 color;\n float distance;\n float decay;\n float coneCos;\n float penumbraCos;\n };\n uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = spotLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float angleCos = dot( light.direction, spotLight.direction );\n float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n if ( spotAttenuation > 0.0 ) {\n float lightDistance = length( lVector );\n light.color = spotLight.color * spotAttenuation;\n light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n } else {\n light.color = vec3( 0.0 );\n light.visible = false;\n }\n }\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n struct RectAreaLight {\n vec3 color;\n vec3 position;\n vec3 halfWidth;\n vec3 halfHeight;\n };\n uniform sampler2D ltc_1; uniform sampler2D ltc_2;\n uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n struct HemisphereLight {\n vec3 direction;\n vec3 skyColor;\n vec3 groundColor;\n };\n uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n float dotNL = dot( normal, hemiLight.direction );\n float hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n return irradiance;\n }\n#endif",PA="#ifdef USE_ENVMAP\n vec3 getIBLIrradiance( const in vec3 normal ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n return PI * envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 reflectVec = reflect( - viewDir, normal );\n reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n reflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n return envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n #ifdef USE_ANISOTROPY\n vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 bentNormal = cross( bitangent, viewDir );\n bentNormal = normalize( cross( bentNormal, bitangent ) );\n bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n return getIBLRadiance( viewDir, bentNormal, roughness );\n #else\n return vec3( 0.0 );\n #endif\n }\n #endif\n#endif",RA="ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",CA="varying vec3 vViewPosition;\nstruct ToonMaterial {\n vec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Toon\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon",OA="BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",UA="varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n vec3 diffuseColor;\n vec3 specularColor;\n float specularShininess;\n float specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_BlinnPhong\n#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong",FA="PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n material.ior = ior;\n #ifdef USE_SPECULAR\n float specularIntensityFactor = specularIntensity;\n vec3 specularColorFactor = specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n #endif\n material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n #else\n float specularIntensityFactor = 1.0;\n vec3 specularColorFactor = vec3( 1.0 );\n material.specularF90 = 1.0;\n #endif\n material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n material.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n material.clearcoat = clearcoat;\n material.clearcoatRoughness = clearcoatRoughness;\n material.clearcoatF0 = vec3( 0.04 );\n material.clearcoatF90 = 1.0;\n #ifdef USE_CLEARCOATMAP\n material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n #endif\n #ifdef USE_CLEARCOAT_ROUGHNESSMAP\n material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n #endif\n material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n material.clearcoatRoughness += geometryRoughness;\n material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n material.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n material.iridescence = iridescence;\n material.iridescenceIOR = iridescenceIOR;\n #ifdef USE_IRIDESCENCEMAP\n material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n #endif\n #ifdef USE_IRIDESCENCE_THICKNESSMAP\n material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n #else\n material.iridescenceThickness = iridescenceThicknessMaximum;\n #endif\n#endif\n#ifdef USE_SHEEN\n material.sheenColor = sheenColor;\n #ifdef USE_SHEEN_COLORMAP\n material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n #endif\n material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n #ifdef USE_SHEEN_ROUGHNESSMAP\n material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n #ifdef USE_ANISOTROPYMAP\n mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n #else\n vec2 anisotropyV = anisotropyVector;\n #endif\n material.anisotropy = length( anisotropyV );\n if( material.anisotropy == 0.0 ) {\n anisotropyV = vec2( 1.0, 0.0 );\n } else {\n anisotropyV /= material.anisotropy;\n material.anisotropy = saturate( material.anisotropy );\n }\n material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",NA="struct PhysicalMaterial {\n vec3 diffuseColor;\n float roughness;\n vec3 specularColor;\n float specularF90;\n float dispersion;\n #ifdef USE_CLEARCOAT\n float clearcoat;\n float clearcoatRoughness;\n vec3 clearcoatF0;\n float clearcoatF90;\n #endif\n #ifdef USE_IRIDESCENCE\n float iridescence;\n float iridescenceIOR;\n float iridescenceThickness;\n vec3 iridescenceFresnel;\n vec3 iridescenceF0;\n #endif\n #ifdef USE_SHEEN\n vec3 sheenColor;\n float sheenRoughness;\n #endif\n #ifdef IOR\n float ior;\n #endif\n #ifdef USE_TRANSMISSION\n float transmission;\n float transmissionAlpha;\n float thickness;\n float attenuationDistance;\n vec3 attenuationColor;\n #endif\n #ifdef USE_ANISOTROPY\n float anisotropy;\n float alphaT;\n vec3 anisotropyT;\n vec3 anisotropyB;\n #endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n float a2 = pow2( alpha );\n float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n return 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n float a2 = pow2( alpha );\n float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n return RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n float v = 0.5 / ( gv + gl );\n return saturate(v);\n }\n float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n float a2 = alphaT * alphaB;\n highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n highp float v2 = dot( v, v );\n float w2 = a2 / v2;\n return RECIPROCAL_PI * a2 * pow2 ( w2 );\n }\n#endif\n#ifdef USE_CLEARCOAT\n vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n vec3 f0 = material.clearcoatF0;\n float f90 = material.clearcoatF90;\n float roughness = material.clearcoatRoughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n return F * ( V * D );\n }\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n vec3 f0 = material.specularColor;\n float f90 = material.specularF90;\n float roughness = material.roughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n #ifdef USE_IRIDESCENCE\n F = mix( F, material.iridescenceFresnel, material.iridescence );\n #endif\n #ifdef USE_ANISOTROPY\n float dotTL = dot( material.anisotropyT, lightDir );\n float dotTV = dot( material.anisotropyT, viewDir );\n float dotTH = dot( material.anisotropyT, halfDir );\n float dotBL = dot( material.anisotropyB, lightDir );\n float dotBV = dot( material.anisotropyB, viewDir );\n float dotBH = dot( material.anisotropyB, halfDir );\n float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n #else\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n #endif\n return F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n const float LUT_SIZE = 64.0;\n const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n const float LUT_BIAS = 0.5 / LUT_SIZE;\n float dotNV = saturate( dot( N, V ) );\n vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n uv = uv * LUT_SCALE + LUT_BIAS;\n return uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n float l = length( f );\n return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n float x = dot( v1, v2 );\n float y = abs( x );\n float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n float b = 3.4175940 + ( 4.1616724 + y ) * y;\n float v = a / b;\n float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n return cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n vec3 lightNormal = cross( v1, v2 );\n if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n vec3 T1, T2;\n T1 = normalize( V - N * dot( V, N ) );\n T2 = - cross( N, T1 );\n mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n vec3 coords[ 4 ];\n coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n coords[ 0 ] = normalize( coords[ 0 ] );\n coords[ 1 ] = normalize( coords[ 1 ] );\n coords[ 2 ] = normalize( coords[ 2 ] );\n coords[ 3 ] = normalize( coords[ 3 ] );\n vec3 vectorFormFactor = vec3( 0.0 );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n float result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n return vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n float alpha = pow2( roughness );\n float invAlpha = 1.0 / alpha;\n float cos2h = dotNH * dotNH;\n float sin2h = max( 1.0 - cos2h, 0.0078125 );\n return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float D = D_Charlie( sheenRoughness, dotNH );\n float V = V_Neubelt( dotNV, dotNL );\n return sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n float r2 = roughness * roughness;\n float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n return saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n return fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n return specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n #ifdef USE_IRIDESCENCE\n vec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n #else\n vec3 Fr = specularColor;\n #endif\n vec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n float Ess = fab.x + fab.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 normal = geometryNormal;\n vec3 viewDir = geometryViewDir;\n vec3 position = geometryPosition;\n vec3 lightPos = rectAreaLight.position;\n vec3 halfWidth = rectAreaLight.halfWidth;\n vec3 halfHeight = rectAreaLight.halfHeight;\n vec3 lightColor = rectAreaLight.color;\n float roughness = material.roughness;\n vec3 rectCoords[ 4 ];\n rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n vec2 uv = LTC_Uv( normal, viewDir, roughness );\n vec4 t1 = texture2D( ltc_1, uv );\n vec4 t2 = texture2D( ltc_2, uv );\n mat3 mInv = mat3(\n vec3( t1.x, 0, t1.y ),\n vec3( 0, 1, 0 ),\n vec3( t1.z, 0, t1.w )\n );\n vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n }\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n #ifdef USE_CLEARCOAT\n float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n vec3 ccIrradiance = dotNLcc * directLight.color;\n clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n #endif\n reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n #ifdef USE_CLEARCOAT\n clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n #endif\n vec3 singleScattering = vec3( 0.0 );\n vec3 multiScattering = vec3( 0.0 );\n vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n #ifdef USE_IRIDESCENCE\n computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n #else\n computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n #endif\n vec3 totalScattering = singleScattering + multiScattering;\n vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n reflectedLight.indirectSpecular += radiance * singleScattering;\n reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct RE_Direct_Physical\n#define RE_Direct_RectArea RE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular RE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",kA="\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n geometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n float dotNVi = saturate( dot( normal, geometryViewDir ) );\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n if ( material.iridescence > 0.0 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometryPosition, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n vec4 spotColor;\n vec3 spotLightCoord;\n bool inSpotLightMap;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometryPosition, directLight );\n #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n #else\n #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #endif\n #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n #endif\n #undef SPOT_LIGHT_MAP_INDEX\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n #if defined( USE_LIGHT_PROBES )\n irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n #endif\n #if ( NUM_HEMI_LIGHTS > 0 )\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n#endif",DA="#if defined( RE_IndirectDiffuse )\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n irradiance += lightMapIrradiance;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n iblIrradiance += getIBLIrradiance( geometryNormal );\n #endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n #ifdef USE_ANISOTROPY\n radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n #else\n radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n #endif\n #ifdef USE_CLEARCOAT\n clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n #endif\n#endif",LA="#if defined( RE_IndirectDiffuse )\n RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",$A="#if defined( USE_LOGDEPTHBUF )\n gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",zA="#if defined( USE_LOGDEPTHBUF )\n uniform float logDepthBufFC;\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",BA="#ifdef USE_LOGDEPTHBUF\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",VA="#ifdef USE_LOGDEPTHBUF\n vFragDepth = 1.0 + gl_Position.w;\n vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",jA="#ifdef USE_MAP\n vec4 sampledDiffuseColor = texture2D( map, vMapUv );\n #ifdef DECODE_VIDEO_TEXTURE\n sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );\n #endif\n diffuseColor *= sampledDiffuseColor;\n#endif",GA="#ifdef USE_MAP\n uniform sampler2D map;\n#endif",HA="#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n #if defined( USE_POINTS_UV )\n vec2 uv = vUv;\n #else\n vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n #endif\n#endif\n#ifdef USE_MAP\n diffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",WA="#if defined( USE_POINTS_UV )\n varying vec2 vUv;\n#else\n #if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n uniform mat3 uvTransform;\n #endif\n#endif\n#ifdef USE_MAP\n uniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",ZA="float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n metalnessFactor *= texelMetalness.b;\n#endif",XA="#ifdef USE_METALNESSMAP\n uniform sampler2D metalnessMap;\n#endif",qA="#ifdef USE_INSTANCING_MORPH\n float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n }\n#endif",KA="#if defined( USE_MORPHCOLORS )\n vColor *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n #if defined( USE_COLOR_ALPHA )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n #elif defined( USE_COLOR )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n #endif\n }\n#endif",YA="#ifdef USE_MORPHNORMALS\n objectNormal *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n }\n#endif",JA="#ifdef USE_MORPHTARGETS\n #ifndef USE_INSTANCING_MORPH\n uniform float morphTargetBaseInfluence;\n uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n #endif\n uniform sampler2DArray morphTargetsTexture;\n uniform ivec2 morphTargetsTextureSize;\n vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n int y = texelIndex / morphTargetsTextureSize.x;\n int x = texelIndex - y * morphTargetsTextureSize.x;\n ivec3 morphUV = ivec3( x, y, morphTargetIndex );\n return texelFetch( morphTargetsTexture, morphUV, 0 );\n }\n#endif",QA="#ifdef USE_MORPHTARGETS\n transformed *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n }\n#endif",e1="float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n vec3 fdx = dFdx( vViewPosition );\n vec3 fdy = dFdy( vViewPosition );\n vec3 normal = normalize( cross( fdx, fdy ) );\n#else\n vec3 normal = normalize( vNormal );\n #ifdef DOUBLE_SIDED\n normal *= faceDirection;\n #endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n #ifdef USE_TANGENT\n mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn = getTangentFrame( - vViewPosition, normal,\n #if defined( USE_NORMALMAP )\n vNormalMapUv\n #elif defined( USE_CLEARCOAT_NORMALMAP )\n vClearcoatNormalMapUv\n #else\n vUv\n #endif\n );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn[0] *= faceDirection;\n tbn[1] *= faceDirection;\n #endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n #ifdef USE_TANGENT\n mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn2[0] *= faceDirection;\n tbn2[1] *= faceDirection;\n #endif\n#endif\nvec3 nonPerturbedNormal = normal;",t1="#ifdef USE_NORMALMAP_OBJECTSPACE\n normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n #ifdef FLIP_SIDED\n normal = - normal;\n #endif\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n normal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n mapN.xy *= normalScale;\n normal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",n1="#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",r1="#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",i1="#ifndef FLAT_SHADED\n vNormal = normalize( transformedNormal );\n #ifdef USE_TANGENT\n vTangent = normalize( transformedTangent );\n vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n #endif\n#endif",o1="#ifdef USE_NORMALMAP\n uniform sampler2D normalMap;\n uniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n uniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n vec3 q0 = dFdx( eye_pos.xyz );\n vec3 q1 = dFdy( eye_pos.xyz );\n vec2 st0 = dFdx( uv.st );\n vec2 st1 = dFdy( uv.st );\n vec3 N = surf_norm;\n vec3 q1perp = cross( q1, N );\n vec3 q0perp = cross( N, q0 );\n vec3 T = q1perp * st0.x + q0perp * st1.x;\n vec3 B = q1perp * st0.y + q0perp * st1.y;\n float det = max( dot( T, T ), dot( B, B ) );\n float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n return mat3( T * scale, B * scale, N );\n }\n#endif",s1="#ifdef USE_CLEARCOAT\n vec3 clearcoatNormal = nonPerturbedNormal;\n#endif",a1="#ifdef USE_CLEARCOAT_NORMALMAP\n vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n clearcoatMapN.xy *= clearcoatNormalScale;\n clearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",c1="#ifdef USE_CLEARCOATMAP\n uniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform sampler2D clearcoatNormalMap;\n uniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform sampler2D clearcoatRoughnessMap;\n#endif",u1="#ifdef USE_IRIDESCENCEMAP\n uniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform sampler2D iridescenceThicknessMap;\n#endif",l1="#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",f1="vec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;\nconst float Inv255 = 1. / 255.;\nconst vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );\nconst vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );\nconst vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );\nconst vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );\nvec4 packDepthToRGBA( const in float v ) {\n if( v <= 0.0 )\n return vec4( 0., 0., 0., 0. );\n if( v >= 1.0 )\n return vec4( 1., 1., 1., 1. );\n float vuf;\n float af = modf( v * PackFactors.a, vuf );\n float bf = modf( vuf * ShiftRight8, vuf );\n float gf = modf( vuf * ShiftRight8, vuf );\n return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );\n}\nvec3 packDepthToRGB( const in float v ) {\n if( v <= 0.0 )\n return vec3( 0., 0., 0. );\n if( v >= 1.0 )\n return vec3( 1., 1., 1. );\n float vuf;\n float bf = modf( v * PackFactors.b, vuf );\n float gf = modf( vuf * ShiftRight8, vuf );\n return vec3( vuf * Inv255, gf * PackUpscale, bf );\n}\nvec2 packDepthToRG( const in float v ) {\n if( v <= 0.0 )\n return vec2( 0., 0. );\n if( v >= 1.0 )\n return vec2( 1., 1. );\n float vuf;\n float gf = modf( v * 256., vuf );\n return vec2( vuf * Inv255, gf );\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors4 );\n}\nfloat unpackRGBToDepth( const in vec3 v ) {\n return dot( v, UnpackFactors3 );\n}\nfloat unpackRGToDepth( const in vec2 v ) {\n return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;\n}\nvec4 pack2HalfToRGBA( const in vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( const in vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * depth - far );\n}",d1="#ifdef PREMULTIPLIED_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif",p1="vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n mvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n mvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",h1="#ifdef DITHERING\n gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",m1="#ifdef DITHERING\n vec3 dithering( vec3 color ) {\n float grid_position = rand( gl_FragCoord.xy );\n vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n return color + dither_shift_RGB;\n }\n#endif",g1="float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n roughnessFactor *= texelRoughness.g;\n#endif",y1="#ifdef USE_ROUGHNESSMAP\n uniform sampler2D roughnessMap;\n#endif",x1="#if NUM_SPOT_LIGHT_COORDS > 0\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n }\n vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n return unpackRGBATo2Half( texture2D( shadow, uv ) );\n }\n float VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n float occlusion = 1.0;\n vec2 distribution = texture2DDistribution( shadow, uv );\n float hard_shadow = step( compare , distribution.x );\n if (hard_shadow != 1.0 ) {\n float distance = compare - distribution.x ;\n float variance = max( 0.00000, distribution.y * distribution.y );\n float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n }\n return occlusion;\n }\n float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n float shadow = 1.0;\n shadowCoord.xyz /= shadowCoord.w;\n shadowCoord.z += shadowBias;\n bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n bool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n if ( frustumTest ) {\n #if defined( SHADOWMAP_TYPE_PCF )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx0 = - texelSize.x * shadowRadius;\n float dy0 = - texelSize.y * shadowRadius;\n float dx1 = + texelSize.x * shadowRadius;\n float dy1 = + texelSize.y * shadowRadius;\n float dx2 = dx0 / 2.0;\n float dy2 = dy0 / 2.0;\n float dx3 = dx1 / 2.0;\n float dy3 = dy1 / 2.0;\n shadow = (\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n ) * ( 1.0 / 17.0 );\n #elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx = texelSize.x;\n float dy = texelSize.y;\n vec2 uv = shadowCoord.xy;\n vec2 f = fract( uv * shadowMapSize + 0.5 );\n uv -= f * texelSize;\n shadow = (\n texture2DCompare( shadowMap, uv, shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n f.x ),\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n f.x ),\n f.y )\n ) * ( 1.0 / 9.0 );\n #elif defined( SHADOWMAP_TYPE_VSM )\n shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n #else\n shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n #endif\n }\n return mix( 1.0, shadow, shadowIntensity );\n }\n vec2 cubeToUV( vec3 v, float texelSizeY ) {\n vec3 absV = abs( v );\n float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n absV *= scaleToCube;\n v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n vec2 planar = v.xy;\n float almostATexel = 1.5 * texelSizeY;\n float almostOne = 1.0 - almostATexel;\n if ( absV.z >= almostOne ) {\n if ( v.z > 0.0 )\n planar.x = 4.0 - v.x;\n } else if ( absV.x >= almostOne ) {\n float signX = sign( v.x );\n planar.x = v.z * signX + 2.0 * signX;\n } else if ( absV.y >= almostOne ) {\n float signY = sign( v.y );\n planar.x = v.x + 2.0 * signY + 2.0;\n planar.y = v.z * signY - 2.0;\n }\n return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n }\n float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n float shadow = 1.0;\n vec3 lightToPosition = shadowCoord.xyz;\n \n float lightToPositionLength = length( lightToPosition );\n if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;\n vec3 bd3D = normalize( lightToPosition );\n vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n shadow = (\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n ) * ( 1.0 / 9.0 );\n #else\n shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n #endif\n }\n return mix( 1.0, shadow, shadowIntensity );\n }\n#endif",v1="#if NUM_SPOT_LIGHT_COORDS > 0\n uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n struct SpotLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n#endif",_1="#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n vec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n #if NUM_DIR_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n shadowWorldPosition = worldPosition;\n #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n #endif\n vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n#endif",b1="float getShadowMask() {\n float shadow = 1.0;\n #ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n directionalLight = directionalLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n spotLight = spotLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n pointLight = pointLightShadows[ i ];\n shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #endif\n return shadow;\n}",S1="#ifdef USE_SKINNING\n mat4 boneMatX = getBoneMatrix( skinIndex.x );\n mat4 boneMatY = getBoneMatrix( skinIndex.y );\n mat4 boneMatZ = getBoneMatrix( skinIndex.z );\n mat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",I1="#ifdef USE_SKINNING\n uniform mat4 bindMatrix;\n uniform mat4 bindMatrixInverse;\n uniform highp sampler2D boneTexture;\n mat4 getBoneMatrix( const in float i ) {\n int size = textureSize( boneTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n#endif",w1="#ifdef USE_SKINNING\n vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n vec4 skinned = vec4( 0.0 );\n skinned += boneMatX * skinVertex * skinWeight.x;\n skinned += boneMatY * skinVertex * skinWeight.y;\n skinned += boneMatZ * skinVertex * skinWeight.z;\n skinned += boneMatW * skinVertex * skinWeight.w;\n transformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",M1="#ifdef USE_SKINNING\n mat4 skinMatrix = mat4( 0.0 );\n skinMatrix += skinWeight.x * boneMatX;\n skinMatrix += skinWeight.y * boneMatY;\n skinMatrix += skinWeight.z * boneMatZ;\n skinMatrix += skinWeight.w * boneMatW;\n skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n #ifdef USE_TANGENT\n objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n #endif\n#endif",E1="float specularStrength;\n#ifdef USE_SPECULARMAP\n vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n specularStrength = texelSpecular.r;\n#else\n specularStrength = 1.0;\n#endif",T1="#ifdef USE_SPECULARMAP\n uniform sampler2D specularMap;\n#endif",A1="#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",P1="#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n return saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n return saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 CineonToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n color = max( vec3( 0.0 ), color - 0.004 );\n return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n vec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n return a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n const mat3 ACESInputMat = mat3(\n vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),\n vec3( 0.04823, 0.01566, 0.83777 )\n );\n const mat3 ACESOutputMat = mat3(\n vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),\n vec3( -0.07367, -0.00605, 1.07602 )\n );\n color *= toneMappingExposure / 0.6;\n color = ACESInputMat * color;\n color = RRTAndODTFit( color );\n color = ACESOutputMat * color;\n return saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n vec3( 1.6605, - 0.1246, - 0.0182 ),\n vec3( - 0.5876, 1.1329, - 0.1006 ),\n vec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n vec3( 0.6274, 0.0691, 0.0164 ),\n vec3( 0.3293, 0.9195, 0.0880 ),\n vec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n vec3 x2 = x * x;\n vec3 x4 = x2 * x2;\n return + 15.5 * x4 * x2\n - 40.14 * x4 * x\n + 31.96 * x4\n - 6.868 * x2 * x\n + 0.4298 * x2\n + 0.1191 * x\n - 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n const mat3 AgXInsetMatrix = mat3(\n vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n );\n const mat3 AgXOutsetMatrix = mat3(\n vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n );\n const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069;\n color *= toneMappingExposure;\n color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n color = AgXInsetMatrix * color;\n color = max( color, 1e-10 ); color = log2( color );\n color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n color = clamp( color, 0.0, 1.0 );\n color = agxDefaultContrastApprox( color );\n color = AgXOutsetMatrix * color;\n color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n color = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n color = clamp( color, 0.0, 1.0 );\n return color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n const float StartCompression = 0.8 - 0.04;\n const float Desaturation = 0.15;\n color *= toneMappingExposure;\n float x = min( color.r, min( color.g, color.b ) );\n float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n color -= offset;\n float peak = max( color.r, max( color.g, color.b ) );\n if ( peak < StartCompression ) return color;\n float d = 1. - StartCompression;\n float newPeak = 1. - d * d / ( peak + d - StartCompression );\n color *= newPeak / peak;\n float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n return mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",R1="#ifdef USE_TRANSMISSION\n material.transmission = transmission;\n material.transmissionAlpha = 1.0;\n material.thickness = thickness;\n material.attenuationDistance = attenuationDistance;\n material.attenuationColor = attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n #endif\n #ifdef USE_THICKNESSMAP\n material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n #endif\n vec3 pos = vWorldPosition;\n vec3 v = normalize( cameraPosition - pos );\n vec3 n = inverseTransformDirection( normal, viewMatrix );\n vec4 transmitted = getIBLVolumeRefraction(\n n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n material.attenuationColor, material.attenuationDistance );\n material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",C1="#ifdef USE_TRANSMISSION\n uniform float transmission;\n uniform float thickness;\n uniform float attenuationDistance;\n uniform vec3 attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n uniform sampler2D transmissionMap;\n #endif\n #ifdef USE_THICKNESSMAP\n uniform sampler2D thicknessMap;\n #endif\n uniform vec2 transmissionSamplerSize;\n uniform sampler2D transmissionSamplerMap;\n uniform mat4 modelMatrix;\n uniform mat4 projectionMatrix;\n varying vec3 vWorldPosition;\n float w0( float a ) {\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n }\n float w1( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n }\n float w2( float a ){\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n }\n float w3( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * a );\n }\n float g0( float a ) {\n return w0( a ) + w1( a );\n }\n float g1( float a ) {\n return w2( a ) + w3( a );\n }\n float h0( float a ) {\n return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n }\n float h1( float a ) {\n return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n }\n vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n uv = uv * texelSize.zw + 0.5;\n vec2 iuv = floor( uv );\n vec2 fuv = fract( uv );\n float g0x = g0( fuv.x );\n float g1x = g1( fuv.x );\n float h0x = h0( fuv.x );\n float h1x = h1( fuv.x );\n float h0y = h0( fuv.y );\n float h1y = h1( fuv.y );\n vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n }\n vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n vec2 fLodSizeInv = 1.0 / fLodSize;\n vec2 cLodSizeInv = 1.0 / cLodSize;\n vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n return mix( fSample, cSample, fract( lod ) );\n }\n vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n vec3 modelScale;\n modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n return normalize( refractionVector ) * thickness * modelScale;\n }\n float applyIorToRoughness( const in float roughness, const in float ior ) {\n return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n }\n vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n }\n vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n if ( isinf( attenuationDistance ) ) {\n return vec3( 1.0 );\n } else {\n vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;\n }\n }\n vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n const in vec3 attenuationColor, const in float attenuationDistance ) {\n vec4 transmittedLight;\n vec3 transmittance;\n #ifdef USE_DISPERSION\n float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n for ( int i = 0; i < 3; i ++ ) {\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n transmittedLight[ i ] = transmissionSample[ i ];\n transmittedLight.a += transmissionSample.a;\n transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n }\n transmittedLight.a /= 3.0;\n #else\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n #endif\n vec3 attenuatedColor = transmittance * transmittedLight.rgb;\n vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n }\n#endif",O1="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",U1="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n uniform mat3 mapTransform;\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n uniform mat3 alphaMapTransform;\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n uniform mat3 lightMapTransform;\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n uniform mat3 aoMapTransform;\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n uniform mat3 bumpMapTransform;\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n uniform mat3 normalMapTransform;\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n uniform mat3 displacementMapTransform;\n varying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n uniform mat3 emissiveMapTransform;\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n uniform mat3 metalnessMapTransform;\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n uniform mat3 roughnessMapTransform;\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n uniform mat3 anisotropyMapTransform;\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n uniform mat3 clearcoatMapTransform;\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform mat3 clearcoatNormalMapTransform;\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform mat3 clearcoatRoughnessMapTransform;\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n uniform mat3 sheenColorMapTransform;\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n uniform mat3 sheenRoughnessMapTransform;\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n uniform mat3 iridescenceMapTransform;\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform mat3 iridescenceThicknessMapTransform;\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n uniform mat3 specularMapTransform;\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n uniform mat3 specularColorMapTransform;\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n uniform mat3 specularIntensityMapTransform;\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",F1="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n vUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",N1="#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n vec4 worldPosition = vec4( transformed, 1.0 );\n #ifdef USE_BATCHING\n worldPosition = batchingMatrix * worldPosition;\n #endif\n #ifdef USE_INSTANCING\n worldPosition = instanceMatrix * worldPosition;\n #endif\n worldPosition = modelMatrix * worldPosition;\n#endif",k1="varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n gl_Position = vec4( position.xy, 1.0, 1.0 );\n}",D1="uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n vec4 texColor = texture2D( t2D, vUv );\n #ifdef DECODE_VIDEO_TEXTURE\n texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",L1="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n gl_Position.z = gl_Position.w;\n}",$1="#ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n uniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n #ifdef ENVMAP_TYPE_CUBE\n vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n #elif defined( ENVMAP_TYPE_CUBE_UV )\n vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n #else\n vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",z1="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n gl_Position.z = gl_Position.w;\n}",B1="uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n gl_FragColor = texColor;\n gl_FragColor.a *= opacity;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",V1="#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <skinbase_vertex>\n #include <morphinstance_vertex>\n #ifdef USE_DISPLACEMENTMAP\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vHighPrecisionZW = gl_Position.zw;\n}",j1="#if DEPTH_PACKING == 3200\n uniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n vec4 diffuseColor = vec4( 1.0 );\n #include <clipping_planes_fragment>\n #if DEPTH_PACKING == 3200\n diffuseColor.a = opacity;\n #endif\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <logdepthbuf_fragment>\n float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n #if DEPTH_PACKING == 3200\n gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n #elif DEPTH_PACKING == 3201\n gl_FragColor = packDepthToRGBA( fragCoordZ );\n #elif DEPTH_PACKING == 3202\n gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );\n #elif DEPTH_PACKING == 3203\n gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );\n #endif\n}",G1="#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <skinbase_vertex>\n #include <morphinstance_vertex>\n #ifdef USE_DISPLACEMENTMAP\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <worldpos_vertex>\n #include <clipping_planes_vertex>\n vWorldPosition = worldPosition.xyz;\n}",H1="#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n vec4 diffuseColor = vec4( 1.0 );\n #include <clipping_planes_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n float dist = length( vWorldPosition - referencePosition );\n dist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n dist = saturate( dist );\n gl_FragColor = packDepthToRGBA( dist );\n}",W1="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n}",Z1="uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vec3 direction = normalize( vWorldDirection );\n vec2 sampleUV = equirectUv( direction );\n gl_FragColor = texture2D( tEquirect, sampleUV );\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",X1="uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n vLineDistance = scale * lineDistance;\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n}",q1="uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n discard;\n }\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n}",K1="#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <fog_vertex>\n}",Y1="uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n varying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n #else\n reflectedLight.indirectDiffuse += vec3( 1.0 );\n #endif\n #include <aomap_fragment>\n reflectedLight.indirectDiffuse *= diffuseColor.rgb;\n vec3 outgoingLight = reflectedLight.indirectDiffuse;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",J1="#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",Q1="#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_lambert_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",eP="#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n vViewPosition = - mvPosition.xyz;\n}",tP="#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n vec3 viewDir = normalize( vViewPosition );\n vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n vec3 y = cross( viewDir, x );\n vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n #ifdef USE_MATCAP\n vec4 matcapColor = texture2D( matcap, uv );\n #else\n vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n #endif\n vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",nP="#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n vViewPosition = - mvPosition.xyz;\n#endif\n}",rP="#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n #ifdef OPAQUE\n gl_FragColor.a = 1.0;\n #endif\n}",iP="#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",oP="#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_phong_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",sP="#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n varying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n#ifdef USE_TRANSMISSION\n vWorldPosition = worldPosition.xyz;\n#endif\n}",aP="#define STANDARD\n#ifdef PHYSICAL\n #define IOR\n #define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n uniform float ior;\n#endif\n#ifdef USE_SPECULAR\n uniform float specularIntensity;\n uniform vec3 specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n uniform sampler2D specularColorMap;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n uniform sampler2D specularIntensityMap;\n #endif\n#endif\n#ifdef USE_CLEARCOAT\n uniform float clearcoat;\n uniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n uniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n uniform float iridescence;\n uniform float iridescenceIOR;\n uniform float iridescenceThicknessMinimum;\n uniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n uniform vec3 sheenColor;\n uniform float sheenRoughness;\n #ifdef USE_SHEEN_COLORMAP\n uniform sampler2D sheenColorMap;\n #endif\n #ifdef USE_SHEEN_ROUGHNESSMAP\n uniform sampler2D sheenRoughnessMap;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n uniform vec2 anisotropyVector;\n #ifdef USE_ANISOTROPYMAP\n uniform sampler2D anisotropyMap;\n #endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <roughnessmap_fragment>\n #include <metalnessmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <clearcoat_normal_fragment_begin>\n #include <clearcoat_normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_physical_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n #include <transmission_fragment>\n vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n #ifdef USE_SHEEN\n float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n #endif\n #ifdef USE_CLEARCOAT\n float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n #endif\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",cP="#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",uP="#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_toon_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",lP="uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n varying vec2 vUv;\n uniform mat3 uvTransform;\n#endif\nvoid main() {\n #ifdef USE_POINTS_UV\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n #endif\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n gl_PointSize = size;\n #ifdef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n #endif\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <worldpos_vertex>\n #include <fog_vertex>\n}",fP="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_particle_fragment>\n #include <color_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n}",dP="#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",pP="uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n #include <logdepthbuf_fragment>\n gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}",hP="uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n vec4 mvPosition = modelViewMatrix[ 3 ];\n vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );\n #ifndef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) scale *= - mvPosition.z;\n #endif\n vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n vec2 rotatedPosition;\n rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n mvPosition.xy += rotatedPosition;\n gl_Position = projectionMatrix * mvPosition;\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n}",mP="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}",ve={alphahash_fragment:DT,alphahash_pars_fragment:LT,alphamap_fragment:$T,alphamap_pars_fragment:zT,alphatest_fragment:BT,alphatest_pars_fragment:VT,aomap_fragment:jT,aomap_pars_fragment:GT,batching_pars_vertex:HT,batching_vertex:WT,begin_vertex:ZT,beginnormal_vertex:XT,bsdfs:qT,iridescence_fragment:KT,bumpmap_pars_fragment:YT,clipping_planes_fragment:JT,clipping_planes_pars_fragment:QT,clipping_planes_pars_vertex:eA,clipping_planes_vertex:tA,color_fragment:nA,color_pars_fragment:rA,color_pars_vertex:iA,color_vertex:oA,common:sA,cube_uv_reflection_fragment:aA,defaultnormal_vertex:cA,displacementmap_pars_vertex:uA,displacementmap_vertex:lA,emissivemap_fragment:fA,emissivemap_pars_fragment:dA,colorspace_fragment:pA,colorspace_pars_fragment:hA,envmap_fragment:mA,envmap_common_pars_fragment:gA,envmap_pars_fragment:yA,envmap_pars_vertex:xA,envmap_physical_pars_fragment:PA,envmap_vertex:vA,fog_vertex:_A,fog_pars_vertex:bA,fog_fragment:SA,fog_pars_fragment:IA,gradientmap_pars_fragment:wA,lightmap_pars_fragment:MA,lights_lambert_fragment:EA,lights_lambert_pars_fragment:TA,lights_pars_begin:AA,lights_toon_fragment:RA,lights_toon_pars_fragment:CA,lights_phong_fragment:OA,lights_phong_pars_fragment:UA,lights_physical_fragment:FA,lights_physical_pars_fragment:NA,lights_fragment_begin:kA,lights_fragment_maps:DA,lights_fragment_end:LA,logdepthbuf_fragment:$A,logdepthbuf_pars_fragment:zA,logdepthbuf_pars_vertex:BA,logdepthbuf_vertex:VA,map_fragment:jA,map_pars_fragment:GA,map_particle_fragment:HA,map_particle_pars_fragment:WA,metalnessmap_fragment:ZA,metalnessmap_pars_fragment:XA,morphinstance_vertex:qA,morphcolor_vertex:KA,morphnormal_vertex:YA,morphtarget_pars_vertex:JA,morphtarget_vertex:QA,normal_fragment_begin:e1,normal_fragment_maps:t1,normal_pars_fragment:n1,normal_pars_vertex:r1,normal_vertex:i1,normalmap_pars_fragment:o1,clearcoat_normal_fragment_begin:s1,clearcoat_normal_fragment_maps:a1,clearcoat_pars_fragment:c1,iridescence_pars_fragment:u1,opaque_fragment:l1,packing:f1,premultiplied_alpha_fragment:d1,project_vertex:p1,dithering_fragment:h1,dithering_pars_fragment:m1,roughnessmap_fragment:g1,roughnessmap_pars_fragment:y1,shadowmap_pars_fragment:x1,shadowmap_pars_vertex:v1,shadowmap_vertex:_1,shadowmask_pars_fragment:b1,skinbase_vertex:S1,skinning_pars_vertex:I1,skinning_vertex:w1,skinnormal_vertex:M1,specularmap_fragment:E1,specularmap_pars_fragment:T1,tonemapping_fragment:A1,tonemapping_pars_fragment:P1,transmission_fragment:R1,transmission_pars_fragment:C1,uv_pars_fragment:O1,uv_pars_vertex:U1,uv_vertex:F1,worldpos_vertex:N1,background_vert:k1,background_frag:D1,backgroundCube_vert:L1,backgroundCube_frag:$1,cube_vert:z1,cube_frag:B1,depth_vert:V1,depth_frag:j1,distanceRGBA_vert:G1,distanceRGBA_frag:H1,equirect_vert:W1,equirect_frag:Z1,linedashed_vert:X1,linedashed_frag:q1,meshbasic_vert:K1,meshbasic_frag:Y1,meshlambert_vert:J1,meshlambert_frag:Q1,meshmatcap_vert:eP,meshmatcap_frag:tP,meshnormal_vert:nP,meshnormal_frag:rP,meshphong_vert:iP,meshphong_frag:oP,meshphysical_vert:sP,meshphysical_frag:aP,meshtoon_vert:cP,meshtoon_frag:uP,points_vert:lP,points_frag:fP,shadow_vert:dP,shadow_frag:pP,sprite_vert:hP,sprite_frag:mP},K={common:{diffuse:{value:new _t(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new me},alphaMap:{value:null},alphaMapTransform:{value:new me},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new me}},envmap:{envMap:{value:null},envMapRotation:{value:new me},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new me}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new me}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new me},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new me},normalScale:{value:new Qn(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new me},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new me}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new me}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new me}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new _t(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new _t(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new me},alphaTest:{value:0},uvTransform:{value:new me}},sprite:{diffuse:{value:new _t(16777215)},opacity:{value:1},center:{value:new Qn(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new me},alphaMap:{value:null},alphaMapTransform:{value:new me},alphaTest:{value:0}}},j_={basic:{uniforms:tn([K.common,K.specularmap,K.envmap,K.aomap,K.lightmap,K.fog]),vertexShader:ve.meshbasic_vert,fragmentShader:ve.meshbasic_frag},lambert:{uniforms:tn([K.common,K.specularmap,K.envmap,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.fog,K.lights,{emissive:{value:new _t(0)}}]),vertexShader:ve.meshlambert_vert,fragmentShader:ve.meshlambert_frag},phong:{uniforms:tn([K.common,K.specularmap,K.envmap,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.fog,K.lights,{emissive:{value:new _t(0)},specular:{value:new _t(1118481)},shininess:{value:30}}]),vertexShader:ve.meshphong_vert,fragmentShader:ve.meshphong_frag},standard:{uniforms:tn([K.common,K.envmap,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.roughnessmap,K.metalnessmap,K.fog,K.lights,{emissive:{value:new _t(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ve.meshphysical_vert,fragmentShader:ve.meshphysical_frag},toon:{uniforms:tn([K.common,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.gradientmap,K.fog,K.lights,{emissive:{value:new _t(0)}}]),vertexShader:ve.meshtoon_vert,fragmentShader:ve.meshtoon_frag},matcap:{uniforms:tn([K.common,K.bumpmap,K.normalmap,K.displacementmap,K.fog,{matcap:{value:null}}]),vertexShader:ve.meshmatcap_vert,fragmentShader:ve.meshmatcap_frag},points:{uniforms:tn([K.points,K.fog]),vertexShader:ve.points_vert,fragmentShader:ve.points_frag},dashed:{uniforms:tn([K.common,K.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ve.linedashed_vert,fragmentShader:ve.linedashed_frag},depth:{uniforms:tn([K.common,K.displacementmap]),vertexShader:ve.depth_vert,fragmentShader:ve.depth_frag},normal:{uniforms:tn([K.common,K.bumpmap,K.normalmap,K.displacementmap,{opacity:{value:1}}]),vertexShader:ve.meshnormal_vert,fragmentShader:ve.meshnormal_frag},sprite:{uniforms:tn([K.sprite,K.fog]),vertexShader:ve.sprite_vert,fragmentShader:ve.sprite_frag},background:{uniforms:{uvTransform:{value:new me},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ve.background_vert,fragmentShader:ve.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new me}},vertexShader:ve.backgroundCube_vert,fragmentShader:ve.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ve.cube_vert,fragmentShader:ve.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ve.equirect_vert,fragmentShader:ve.equirect_frag},distanceRGBA:{uniforms:tn([K.common,K.displacementmap,{referencePosition:{value:new ke},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ve.distanceRGBA_vert,fragmentShader:ve.distanceRGBA_frag},shadow:{uniforms:tn([K.lights,K.fog,{color:{value:new _t(0)},opacity:{value:1}}]),vertexShader:ve.shadow_vert,fragmentShader:ve.shadow_frag}};j_.physical={uniforms:tn([j_.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new me},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new me},clearcoatNormalScale:{value:new Qn(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new me},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new me},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new me},sheen:{value:0},sheenColor:{value:new _t(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new me},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new me},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new me},transmissionSamplerSize:{value:new Qn},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new me},attenuationDistance:{value:0},attenuationColor:{value:new _t(0)},specularColor:{value:new _t(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new me},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new me},anisotropyVector:{value:new Qn},anisotropyMap:{value:null},anisotropyMapTransform:{value:new me}}]),vertexShader:ve.meshphysical_vert,fragmentShader:ve.meshphysical_frag};var Fi=(1+Math.sqrt(5))/2,mo=1/Fi,fj=[new ke(-Fi,mo,0),new ke(Fi,mo,0),new ke(-mo,0,Fi),new ke(mo,0,Fi),new ke(0,Fi,-mo),new ke(0,Fi,mo),new ke(-1,1,-1),new ke(1,1,-1),new ke(-1,1,1),new ke(1,1,1)];var dj=new Float32Array(16),pj=new Float32Array(9),hj=new Float32Array(4);var mj={[Kf]:Yf,[Jf]:nd,[ed]:rd,[Qf]:td,[Yf]:Kf,[nd]:Jf,[rd]:ed,[td]:Qf};f();f();f();f();f();f();f();f();var tG=new Set(Object.keys(_t.NAMES));f();f();var pr,yo,Ni,Fs,go=class go{constructor(t,n){It(this,Ni);Xe(this,"__type",go.__type);It(this,pr);It(this,yo);Xe(this,"id");Xe(this,"type");Ot(this,pr,t),Ot(this,yo,n),this.id="ev_".concat(t.id),this.type=t.type}static is(t){return t!=null&&typeof t=="object"&&"__type"in t&&t.__type===go.__type}get name(){var t;return(t=ci(this,Ni,Fs).call(this,"name"))!=null?t:""}get startDate(){return new Date(W(this,pr).startDate)}get endDate(){return new Date(W(this,pr).endDate)}get externalId(){return W(this,pr).externalId}get description(){return ci(this,Ni,Fs).call(this,"description")}get location(){let t=W(this,pr).location,n=t!=null&&t.startsWith("el_")?t:"el_".concat(t);return W(this,yo).getById("enterprise-location",n)}get image(){let t=ci(this,Ni,Fs).call(this,"image");if(t!=null)return x({url:t.original},t)}get video(){let t=ci(this,Ni,Fs).call(this,"video");if(t!=null)return{url:t.original,thumbnail:t.thumbnail,width:t.width,height:t.height}}};pr=new WeakMap,yo=new WeakMap,Ni=new WeakSet,Fs=o(function(t){var n,i,r,s,a;return(a=(s=(r=W(this,pr)._locale)==null?void 0:r[(i=(n=W(this,yo).currentLanguage)==null?void 0:n.code)!=null?i:"en"])==null?void 0:s[t])!=null?a:W(this,pr)[t]},"#getLocalizedResource"),o(go,"EventMetaData"),Xe(go,"__type","event");var Ic=go;f();f();var Fe={};un(Fe,{$brand:()=>wc,$input:()=>zm,$output:()=>$m,NEVER:()=>Pd,TimePrecision:()=>Gm,ZodAny:()=>Pb,ZodArray:()=>Ub,ZodBase64:()=>uy,ZodBase64URL:()=>ly,ZodBigInt:()=>Sa,ZodBigIntFormat:()=>py,ZodBoolean:()=>ba,ZodCIDRv4:()=>ay,ZodCIDRv6:()=>cy,ZodCUID:()=>ey,ZodCUID2:()=>ty,ZodCatch:()=>Jb,ZodCodec:()=>Iy,ZodCustom:()=>Au,ZodCustomStringFormat:()=>va,ZodDate:()=>Mu,ZodDefault:()=>Wb,ZodDiscriminatedUnion:()=>Fb,ZodE164:()=>fy,ZodEmail:()=>Yg,ZodEmoji:()=>Jg,ZodEnum:()=>ya,ZodError:()=>GC,ZodFile:()=>jb,ZodFirstPartyTypeKind:()=>wy,ZodFunction:()=>a0,ZodGUID:()=>_u,ZodIPv4:()=>oy,ZodIPv6:()=>sy,ZodISODate:()=>yu,ZodISODateTime:()=>gu,ZodISODuration:()=>vu,ZodISOTime:()=>xu,ZodIntersection:()=>Nb,ZodIssueCode:()=>tU,ZodJWT:()=>dy,ZodKSUID:()=>iy,ZodLazy:()=>i0,ZodLiteral:()=>Vb,ZodMap:()=>zb,ZodNaN:()=>e0,ZodNanoID:()=>Qg,ZodNever:()=>Cb,ZodNonOptional:()=>by,ZodNull:()=>Tb,ZodNullable:()=>Hb,ZodNumber:()=>_a,ZodNumberFormat:()=>Oo,ZodObject:()=>Tu,ZodOptional:()=>_y,ZodPipe:()=>Sy,ZodPrefault:()=>Xb,ZodPromise:()=>s0,ZodReadonly:()=>t0,ZodRealError:()=>dn,ZodRecord:()=>yy,ZodSet:()=>Bb,ZodString:()=>xa,ZodStringFormat:()=>Je,ZodSuccess:()=>Yb,ZodSymbol:()=>Mb,ZodTemplateLiteral:()=>r0,ZodTransform:()=>Gb,ZodTuple:()=>Db,ZodType:()=>de,ZodULID:()=>ny,ZodURL:()=>wu,ZodUUID:()=>zr,ZodUndefined:()=>Eb,ZodUnion:()=>my,ZodUnknown:()=>Rb,ZodVoid:()=>Ob,ZodXID:()=>ry,_ZodString:()=>Kg,_default:()=>Zb,_function:()=>XO,any:()=>AO,array:()=>Eu,base64:()=>fO,base64url:()=>dO,bigint:()=>IO,boolean:()=>wb,catch:()=>Qb,check:()=>qO,cidrv4:()=>uO,cidrv6:()=>lO,clone:()=>nn,codec:()=>HO,coerce:()=>Pu,config:()=>xt,core:()=>gr,cuid:()=>nO,cuid2:()=>rO,custom:()=>KO,date:()=>RO,decode:()=>Bg,decodeAsync:()=>jg,discriminatedUnion:()=>NO,e164:()=>pO,email:()=>WC,emoji:()=>eO,encode:()=>zg,encodeAsync:()=>Vg,endsWith:()=>ua,enum:()=>xy,file:()=>BO,flattenError:()=>js,float32:()=>vO,float64:()=>_O,formatError:()=>Gs,function:()=>XO,getErrorMap:()=>rU,globalRegistry:()=>mr,gt:()=>Lr,gte:()=>fn,guid:()=>ZC,hash:()=>xO,hex:()=>yO,hostname:()=>gO,httpUrl:()=>QC,includes:()=>aa,instanceof:()=>YO,int:()=>qg,int32:()=>bO,int64:()=>wO,intersection:()=>kb,ipv4:()=>aO,ipv6:()=>cO,iso:()=>ga,json:()=>QO,jwt:()=>hO,keyof:()=>CO,ksuid:()=>sO,lazy:()=>o0,length:()=>Po,literal:()=>zO,locales:()=>$i,looseObject:()=>FO,lowercase:()=>oa,lt:()=>Dr,lte:()=>Nn,map:()=>DO,maxLength:()=>Ao,maxSize:()=>To,mime:()=>la,minLength:()=>vi,minSize:()=>Bi,multipleOf:()=>zi,nan:()=>GO,nanoid:()=>tO,nativeEnum:()=>$O,negative:()=>vg,never:()=>hy,nonnegative:()=>bg,nonoptional:()=>Kb,nonpositive:()=>_g,normalize:()=>fa,null:()=>Ab,nullable:()=>Su,nullish:()=>VO,number:()=>Ib,object:()=>OO,optional:()=>bu,overwrite:()=>$r,parse:()=>kg,parseAsync:()=>Dg,partialRecord:()=>kO,pipe:()=>Iu,positive:()=>xg,prefault:()=>qb,preprocess:()=>eU,prettifyError:()=>jd,promise:()=>ZO,property:()=>Sg,readonly:()=>n0,record:()=>$b,refine:()=>c0,regex:()=>ia,regexes:()=>bn,registry:()=>qc,safeDecode:()=>Hg,safeDecodeAsync:()=>Zg,safeEncode:()=>Gg,safeEncodeAsync:()=>Wg,safeParse:()=>Lg,safeParseAsync:()=>$g,set:()=>LO,setErrorMap:()=>nU,size:()=>ra,startsWith:()=>ca,strictObject:()=>UO,string:()=>Xg,stringFormat:()=>mO,stringbool:()=>JO,success:()=>jO,superRefine:()=>u0,symbol:()=>EO,templateLiteral:()=>WO,toJSONSchema:()=>Pg,toLowerCase:()=>pa,toUpperCase:()=>ha,transform:()=>vy,treeifyError:()=>Vd,trim:()=>da,tuple:()=>Lb,uint32:()=>SO,uint64:()=>MO,ulid:()=>iO,undefined:()=>TO,union:()=>gy,unknown:()=>Co,uppercase:()=>sa,url:()=>JC,util:()=>z,uuid:()=>XC,uuidv4:()=>qC,uuidv6:()=>KC,uuidv7:()=>YC,void:()=>PO,xid:()=>oO});f();var gr={};un(gr,{$ZodAny:()=>xh,$ZodArray:()=>Ih,$ZodAsyncError:()=>tr,$ZodBase64:()=>ch,$ZodBase64URL:()=>uh,$ZodBigInt:()=>Wc,$ZodBigIntFormat:()=>hh,$ZodBoolean:()=>Xs,$ZodCIDRv4:()=>oh,$ZodCIDRv6:()=>sh,$ZodCUID:()=>Xp,$ZodCUID2:()=>qp,$ZodCatch:()=>zh,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Ip,$ZodCheckEndsWith:()=>Np,$ZodCheckGreaterThan:()=>$c,$ZodCheckIncludes:()=>Up,$ZodCheckLengthEquals:()=>Pp,$ZodCheckLessThan:()=>Lc,$ZodCheckLowerCase:()=>Cp,$ZodCheckMaxLength:()=>Tp,$ZodCheckMaxSize:()=>wp,$ZodCheckMimeType:()=>Dp,$ZodCheckMinLength:()=>Ap,$ZodCheckMinSize:()=>Mp,$ZodCheckMultipleOf:()=>bp,$ZodCheckNumberFormat:()=>Sp,$ZodCheckOverwrite:()=>Lp,$ZodCheckProperty:()=>kp,$ZodCheckRegex:()=>Rp,$ZodCheckSizeEquals:()=>Ep,$ZodCheckStartsWith:()=>Fp,$ZodCheckStringFormat:()=>Mo,$ZodCheckUpperCase:()=>Op,$ZodCodec:()=>qs,$ZodCustom:()=>Xh,$ZodCustomStringFormat:()=>dh,$ZodDate:()=>Sh,$ZodDefault:()=>kh,$ZodDiscriminatedUnion:()=>Mh,$ZodE164:()=>lh,$ZodEmail:()=>Gp,$ZodEmoji:()=>Wp,$ZodEncodeError:()=>pi,$ZodEnum:()=>Rh,$ZodError:()=>Vs,$ZodFile:()=>Oh,$ZodFunction:()=>Hh,$ZodGUID:()=>Vp,$ZodIPv4:()=>rh,$ZodIPv6:()=>ih,$ZodISODate:()=>eh,$ZodISODateTime:()=>Qp,$ZodISODuration:()=>nh,$ZodISOTime:()=>th,$ZodIntersection:()=>Eh,$ZodJWT:()=>fh,$ZodKSUID:()=>Jp,$ZodLazy:()=>Zh,$ZodLiteral:()=>Ch,$ZodMap:()=>Ah,$ZodNaN:()=>Bh,$ZodNanoID:()=>Zp,$ZodNever:()=>_h,$ZodNonOptional:()=>Lh,$ZodNull:()=>yh,$ZodNullable:()=>Nh,$ZodNumber:()=>Hc,$ZodNumberFormat:()=>ph,$ZodObject:()=>gb,$ZodObjectJIT:()=>wh,$ZodOptional:()=>Fh,$ZodPipe:()=>Vh,$ZodPrefault:()=>Dh,$ZodPromise:()=>Wh,$ZodReadonly:()=>jh,$ZodRealError:()=>ln,$ZodRecord:()=>Th,$ZodRegistry:()=>Eo,$ZodSet:()=>Ph,$ZodString:()=>Li,$ZodStringFormat:()=>qe,$ZodSuccess:()=>$h,$ZodSymbol:()=>mh,$ZodTemplateLiteral:()=>Gh,$ZodTransform:()=>Uh,$ZodTuple:()=>Xc,$ZodType:()=>se,$ZodULID:()=>Kp,$ZodURL:()=>Hp,$ZodUUID:()=>jp,$ZodUndefined:()=>gh,$ZodUnion:()=>Zc,$ZodUnknown:()=>vh,$ZodVoid:()=>bh,$ZodXID:()=>Yp,$brand:()=>wc,$constructor:()=>M,$input:()=>zm,$output:()=>$m,Doc:()=>Zs,JSONSchema:()=>Cg,JSONSchemaGenerator:()=>ma,NEVER:()=>Pd,TimePrecision:()=>Gm,_any:()=>fg,_array:()=>Ig,_base64:()=>du,_base64url:()=>pu,_bigint:()=>ig,_boolean:()=>ng,_catch:()=>DC,_check:()=>_b,_cidrv4:()=>lu,_cidrv6:()=>fu,_coercedBigint:()=>og,_coercedBoolean:()=>rg,_coercedDate:()=>gg,_coercedNumber:()=>Km,_coercedString:()=>jm,_cuid:()=>ru,_cuid2:()=>iu,_custom:()=>Mg,_date:()=>mg,_decode:()=>Rc,_decodeAsync:()=>Oc,_default:()=>FC,_discriminatedUnion:()=>SC,_e164:()=>hu,_email:()=>Kc,_emoji:()=>tu,_encode:()=>Pc,_encodeAsync:()=>Cc,_endsWith:()=>ua,_enum:()=>AC,_file:()=>wg,_float32:()=>Jm,_float64:()=>Qm,_gt:()=>Lr,_gte:()=>fn,_guid:()=>ta,_includes:()=>aa,_int:()=>Ym,_int32:()=>eg,_int64:()=>sg,_intersection:()=>IC,_ipv4:()=>cu,_ipv6:()=>uu,_isoDate:()=>Wm,_isoDateTime:()=>Hm,_isoDuration:()=>Xm,_isoTime:()=>Zm,_jwt:()=>mu,_ksuid:()=>au,_lazy:()=>BC,_length:()=>Po,_literal:()=>RC,_lowercase:()=>oa,_lt:()=>Dr,_lte:()=>Nn,_map:()=>EC,_max:()=>Nn,_maxLength:()=>Ao,_maxSize:()=>To,_mime:()=>la,_min:()=>fn,_minLength:()=>vi,_minSize:()=>Bi,_multipleOf:()=>zi,_nan:()=>yg,_nanoid:()=>nu,_nativeEnum:()=>PC,_negative:()=>vg,_never:()=>pg,_nonnegative:()=>bg,_nonoptional:()=>NC,_nonpositive:()=>_g,_normalize:()=>fa,_null:()=>lg,_nullable:()=>UC,_number:()=>qm,_optional:()=>OC,_overwrite:()=>$r,_parse:()=>bo,_parseAsync:()=>So,_pipe:()=>LC,_positive:()=>xg,_promise:()=>VC,_property:()=>Sg,_readonly:()=>$C,_record:()=>MC,_refine:()=>Eg,_regex:()=>ia,_safeDecode:()=>Fc,_safeDecodeAsync:()=>kc,_safeEncode:()=>Uc,_safeEncodeAsync:()=>Nc,_safeParse:()=>Io,_safeParseAsync:()=>wo,_set:()=>TC,_size:()=>ra,_startsWith:()=>ca,_string:()=>Vm,_stringFormat:()=>Ro,_stringbool:()=>Ag,_success:()=>kC,_superRefine:()=>Tg,_symbol:()=>cg,_templateLiteral:()=>zC,_toLowerCase:()=>pa,_toUpperCase:()=>ha,_transform:()=>CC,_trim:()=>da,_tuple:()=>wC,_uint32:()=>tg,_uint64:()=>ag,_ulid:()=>ou,_undefined:()=>ug,_union:()=>bC,_unknown:()=>dg,_uppercase:()=>sa,_url:()=>na,_uuid:()=>Yc,_uuidv4:()=>Jc,_uuidv6:()=>Qc,_uuidv7:()=>eu,_void:()=>hg,_xid:()=>su,clone:()=>nn,config:()=>xt,decode:()=>jP,decodeAsync:()=>HP,encode:()=>VP,encodeAsync:()=>GP,flattenError:()=>js,formatError:()=>Gs,globalConfig:()=>Ns,globalRegistry:()=>mr,isValidBase64:()=>ah,isValidBase64URL:()=>db,isValidJWT:()=>pb,locales:()=>$i,parse:()=>Tc,parseAsync:()=>Ac,prettifyError:()=>jd,regexes:()=>bn,registry:()=>qc,safeDecode:()=>ZP,safeDecodeAsync:()=>qP,safeEncode:()=>WP,safeEncodeAsync:()=>XP,safeParse:()=>Gd,safeParseAsync:()=>Hd,toDotPath:()=>q_,toJSONSchema:()=>Pg,treeifyError:()=>Vd,util:()=>z,version:()=>zp});f();f();var Pd=Object.freeze({status:"aborted"});function M(e,t,n){var u;function i(c,d){var m,y;var h;Object.defineProperty(c,"_zod",{value:(m=c._zod)!=null?m:{},enumerable:!1}),(y=(h=c._zod).traits)!=null||(h.traits=new Set),c._zod.traits.add(e),t(c,d);for(let v in a.prototype)v in c||Object.defineProperty(c,v,{value:a.prototype[v].bind(c)});c._zod.constr=a,c._zod.def=d}o(i,"init");let r=(u=n==null?void 0:n.Parent)!=null?u:Object,l=class l extends r{};o(l,"Definition");let s=l;Object.defineProperty(s,"name",{value:e});function a(c){var m;var d;let h=n!=null&&n.Parent?new s:this;i(h,c),(m=(d=h._zod).deferred)!=null||(d.deferred=[]);for(let y of h._zod.deferred)y();return h}return o(a,"_"),Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:o(c=>{var d,h;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(h=(d=c==null?void 0:c._zod)==null?void 0:d.traits)==null?void 0:h.has(e)},"value")}),Object.defineProperty(a,"name",{value:e}),a}o(M,"$constructor");var wc=Symbol("zod_brand"),Cd=class Cd extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};o(Cd,"$ZodAsyncError");var tr=Cd,Od=class Od extends Error{constructor(t){super("Encountered unidirectional transform during encode: ".concat(t)),this.name="ZodEncodeError"}};o(Od,"$ZodEncodeError");var pi=Od,Ns={};function xt(e){return e&&Object.assign(Ns,e),Ns}o(xt,"config");f();f();var z={};un(z,{BIGINT_FORMAT_RANGES:()=>zd,Class:()=>Ud,NUMBER_FORMAT_RANGES:()=>$d,aborted:()=>xi,allowsEval:()=>Nd,assert:()=>_P,assertEqual:()=>gP,assertIs:()=>xP,assertNever:()=>vP,assertNotEqual:()=>yP,assignProp:()=>mi,base64ToUint8Array:()=>W_,base64urlToUint8Array:()=>DP,cached:()=>vo,captureStackTrace:()=>Ec,cleanEnum:()=>kP,cleanRegex:()=>Ls,clone:()=>nn,cloneDef:()=>SP,createTransparentProxy:()=>AP,defineLazy:()=>ge,esc:()=>Mc,escapeRegex:()=>hr,extend:()=>CP,finalizeIssue:()=>_n,floatSafeRemainder:()=>Fd,getElementAtPath:()=>IP,getEnumValues:()=>Ds,getLengthableOrigin:()=>Bs,getParsedType:()=>TP,getSizableOrigin:()=>zs,hexToUint8Array:()=>$P,isObject:()=>ki,isPlainObject:()=>yi,issue:()=>_o,joinValues:()=>C,jsonStringifyReplacer:()=>xo,merge:()=>UP,mergeDefs:()=>gi,normalizeParams:()=>B,nullish:()=>hi,numKeys:()=>EP,objectClone:()=>bP,omit:()=>RP,optionalKeys:()=>Ld,partial:()=>FP,pick:()=>PP,prefixIssues:()=>vn,primitiveTypes:()=>Dd,promiseAllObject:()=>wP,propertyKeyTypes:()=>$s,randomString:()=>MP,required:()=>NP,safeExtend:()=>OP,shallowClone:()=>kd,stringifyPrimitive:()=>$,uint8ArrayToBase64:()=>Z_,uint8ArrayToBase64url:()=>LP,uint8ArrayToHex:()=>zP,unwrapMessage:()=>ks});f();function gP(e){return e}o(gP,"assertEqual");function yP(e){return e}o(yP,"assertNotEqual");function xP(e){}o(xP,"assertIs");function vP(e){throw new Error}o(vP,"assertNever");function _P(e){}o(_P,"assert");function Ds(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}o(Ds,"getEnumValues");function C(e,t="|"){return e.map(n=>$(n)).join(t)}o(C,"joinValues");function xo(e,t){return typeof t=="bigint"?t.toString():t}o(xo,"jsonStringifyReplacer");function vo(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}o(vo,"cached");function hi(e){return e==null}o(hi,"nullish");function Ls(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}o(Ls,"cleanRegex");function Fd(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let l=i.match(/\d?e-(\d?)/);l!=null&&l[1]&&(r=Number.parseInt(l[1]))}let s=n>r?n:r,a=Number.parseInt(e.toFixed(s).replace(".","")),u=Number.parseInt(t.toFixed(s).replace(".",""));return a%u/10**s}o(Fd,"floatSafeRemainder");var H_=Symbol("evaluating");function ge(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==H_)return i===void 0&&(i=H_,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}o(ge,"defineLazy");function bP(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}o(bP,"objectClone");function mi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}o(mi,"assignProp");function gi(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}o(gi,"mergeDefs");function SP(e){return gi(e._zod.def)}o(SP,"cloneDef");function IP(e,t){return t?t.reduce((n,i)=>n==null?void 0:n[i],e):e}o(IP,"getElementAtPath");function wP(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let s=0;s<t.length;s++)r[t[s]]=i[s];return r})}o(wP,"promiseAllObject");function MP(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}o(MP,"randomString");function Mc(e){return JSON.stringify(e)}o(Mc,"esc");var Ec="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ki(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(ki,"isObject");var Nd=vo(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let t=Function;return new t(""),!0}catch(t){return!1}});function yi(e){if(ki(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(ki(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}o(yi,"isPlainObject");function kd(e){return yi(e)?x({},e):Array.isArray(e)?[...e]:e}o(kd,"shallowClone");function EP(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}o(EP,"numKeys");var TP=o(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: ".concat(t))}},"getParsedType"),$s=new Set(["string","number","symbol"]),Dd=new Set(["string","number","bigint","boolean","symbol","undefined"]);function hr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(hr,"escapeRegex");function nn(e,t,n){let i=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}o(nn,"clone");function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0: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"?L(x({},t),{error:o(()=>t.error,"error")}):t}o(B,"normalizeParams");function AP(e){let t;return new Proxy({},{get(n,i,r){return t!=null||(t=e()),Reflect.get(t,i,r)},set(n,i,r,s){return t!=null||(t=e()),Reflect.set(t,i,r,s)},has(n,i){return t!=null||(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t!=null||(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t!=null||(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t!=null||(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t!=null||(t=e()),Reflect.defineProperty(t,i,r)}})}o(AP,"createTransparentProxy");function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?'"'.concat(e,'"'):"".concat(e)}o($,"stringifyPrimitive");function Ld(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(Ld,"optionalKeys");var $d={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]},zd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PP(e,t){let n=e._zod.def,i=gi(e._zod.def,{get shape(){let r={};for(let s in t){if(!(s in n.shape))throw new Error('Unrecognized key: "'.concat(s,'"'));t[s]&&(r[s]=n.shape[s])}return mi(this,"shape",r),r},checks:[]});return nn(e,i)}o(PP,"pick");function RP(e,t){let n=e._zod.def,i=gi(e._zod.def,{get shape(){let r=x({},e._zod.def.shape);for(let s in t){if(!(s in n.shape))throw new Error('Unrecognized key: "'.concat(s,'"'));t[s]&&delete r[s]}return mi(this,"shape",r),r},checks:[]});return nn(e,i)}o(RP,"omit");function CP(e,t){if(!yi(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let r=gi(e._zod.def,{get shape(){let s=x(x({},e._zod.def.shape),t);return mi(this,"shape",s),s},checks:[]});return nn(e,r)}o(CP,"extend");function OP(e,t){if(!yi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=L(x({},e._zod.def),{get shape(){let i=x(x({},e._zod.def.shape),t);return mi(this,"shape",i),i},checks:e._zod.def.checks});return nn(e,n)}o(OP,"safeExtend");function UP(e,t){let n=gi(e._zod.def,{get shape(){let i=x(x({},e._zod.def.shape),t._zod.def.shape);return mi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return nn(e,n)}o(UP,"merge");function FP(e,t,n){let i=gi(t._zod.def,{get shape(){let r=t._zod.def.shape,s=x({},r);if(n)for(let a in n){if(!(a in r))throw new Error('Unrecognized key: "'.concat(a,'"'));n[a]&&(s[a]=e?new e({type:"optional",innerType:r[a]}):r[a])}else for(let a in r)s[a]=e?new e({type:"optional",innerType:r[a]}):r[a];return mi(this,"shape",s),s},checks:[]});return nn(t,i)}o(FP,"partial");function NP(e,t,n){let i=gi(t._zod.def,{get shape(){let r=t._zod.def.shape,s=x({},r);if(n)for(let a in n){if(!(a in s))throw new Error('Unrecognized key: "'.concat(a,'"'));n[a]&&(s[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)s[a]=new e({type:"nonoptional",innerType:r[a]});return mi(this,"shape",s),s},checks:[]});return nn(t,i)}o(NP,"required");function xi(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}o(xi,"aborted");function vn(e,t){return t.map(n=>{var r;var i;return(r=(i=n).path)!=null||(i.path=[]),n.path.unshift(e),n})}o(vn,"prefixIssues");function ks(e){return typeof e=="string"?e:e==null?void 0:e.message}o(ks,"unwrapMessage");function _n(e,t,n){var r,s,a,u,l,c,d,h,m,y,v;let i=L(x({},e),{path:(r=e.path)!=null?r:[]});if(!e.message){let I=(v=(y=(h=(c=ks((u=(a=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:a.error)==null?void 0:u.call(a,e)))!=null?c:ks((l=t==null?void 0:t.error)==null?void 0:l.call(t,e)))!=null?h:ks((d=n.customError)==null?void 0:d.call(n,e)))!=null?y:ks((m=n.localeError)==null?void 0:m.call(n,e)))!=null?v:"Invalid input";i.message=I}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}o(_n,"finalizeIssue");function zs(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}o(zs,"getSizableOrigin");function Bs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Bs,"getLengthableOrigin");function _o(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:x({},t)}o(_o,"issue");function kP(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}o(kP,"cleanEnum");function W_(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}o(W_,"base64ToUint8Array");function Z_(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}o(Z_,"uint8ArrayToBase64");function DP(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return W_(t+n)}o(DP,"base64urlToUint8Array");function LP(e){return Z_(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}o(LP,"uint8ArrayToBase64url");function $P(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}o($P,"hexToUint8Array");function zP(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}o(zP,"uint8ArrayToHex");var Bd=class Bd{constructor(...t){}};o(Bd,"Class");var Ud=Bd;var X_=o((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,xo,2),Object.defineProperty(e,"toString",{value:o(()=>e.message,"value"),enumerable:!1})},"initializer"),Vs=M("$ZodError",X_),ln=M("$ZodError",X_,{Parent:Error});function js(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}o(js,"flattenError");function Gs(e,t=n=>n.message){let n={_errors:[]},i=o(r=>{for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>i({issues:a}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let a=n,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}},"processError");return i(e),n}o(Gs,"formatError");function Vd(e,t=n=>n.message){let n={errors:[]},i=o((r,s=[])=>{var l,c,d,h;var a,u;for(let m of r.issues)if(m.code==="invalid_union"&&m.errors.length)m.errors.map(y=>i({issues:y},m.path));else if(m.code==="invalid_key")i({issues:m.issues},m.path);else if(m.code==="invalid_element")i({issues:m.issues},m.path);else{let y=[...s,...m.path];if(y.length===0){n.errors.push(t(m));continue}let v=n,I=0;for(;I<y.length;){let T=y[I],U=I===y.length-1;typeof T=="string"?((l=v.properties)!=null||(v.properties={}),(c=(a=v.properties)[T])!=null||(a[T]={errors:[]}),v=v.properties[T]):((d=v.items)!=null||(v.items=[]),(h=(u=v.items)[T])!=null||(u[T]={errors:[]}),v=v.items[T]),U&&v.errors.push(t(m)),I++}}},"processError");return i(e),n}o(Vd,"treeifyError");function q_(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push("[".concat(i,"]")):typeof i=="symbol"?t.push("[".concat(JSON.stringify(String(i)),"]")):/[^\w$]/.test(i)?t.push("[".concat(JSON.stringify(i),"]")):(t.length&&t.push("."),t.push(i));return t.join("")}o(q_,"toDotPath");function jd(e){var i;let t=[],n=[...e.issues].sort((r,s)=>{var a,u;return((a=r.path)!=null?a:[]).length-((u=s.path)!=null?u:[]).length});for(let r of n)t.push("\u2716 ".concat(r.message)),(i=r.path)!=null&&i.length&&t.push(" \u2192 at ".concat(q_(r.path)));return t.join("\n")}o(jd,"prettifyError");var bo=o(e=>(t,n,i,r)=>{var u;let s=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise)throw new tr;if(a.issues.length){let l=new((u=r==null?void 0:r.Err)!=null?u:e)(a.issues.map(c=>_n(c,s,xt())));throw Ec(l,r==null?void 0:r.callee),l}return a.value},"_parse"),Tc=bo(ln),So=o(e=>async(t,n,i,r)=>{var u;let s=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new((u=r==null?void 0:r.Err)!=null?u:e)(a.issues.map(c=>_n(c,s,xt())));throw Ec(l,r==null?void 0:r.callee),l}return a.value},"_parseAsync"),Ac=So(ln),Io=o(e=>(t,n,i)=>{let r=i?L(x({},i),{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new tr;return s.issues.length?{success:!1,error:new(e!=null?e:Vs)(s.issues.map(a=>_n(a,r,xt())))}:{success:!0,data:s.value}},"_safeParse"),Gd=Io(ln),wo=o(e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>_n(a,r,xt())))}:{success:!0,data:s.value}},"_safeParseAsync"),Hd=wo(ln),Pc=o(e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bo(e)(t,n,r)},"_encode"),VP=Pc(ln),Rc=o(e=>(t,n,i)=>bo(e)(t,n,i),"_decode"),jP=Rc(ln),Cc=o(e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return So(e)(t,n,r)},"_encodeAsync"),GP=Cc(ln),Oc=o(e=>async(t,n,i)=>So(e)(t,n,i),"_decodeAsync"),HP=Oc(ln),Uc=o(e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Io(e)(t,n,r)},"_safeEncode"),WP=Uc(ln),Fc=o(e=>(t,n,i)=>Io(e)(t,n,i),"_safeDecode"),ZP=Fc(ln),Nc=o(e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return wo(e)(t,n,r)},"_safeEncodeAsync"),XP=Nc(ln),kc=o(e=>async(t,n,i)=>wo(e)(t,n,i),"_safeDecodeAsync"),qP=kc(ln);f();f();var bn={};un(bn,{base64:()=>sp,base64url:()=>Dc,bigint:()=>pp,boolean:()=>gp,browserEmail:()=>rR,cidrv4:()=>ip,cidrv6:()=>op,cuid:()=>Wd,cuid2:()=>Zd,date:()=>up,datetime:()=>fp,domain:()=>oR,duration:()=>Jd,e164:()=>cp,email:()=>ep,emoji:()=>tp,extendedDuration:()=>KP,guid:()=>Qd,hex:()=>sR,hostname:()=>ap,html5Email:()=>eR,idnEmail:()=>nR,integer:()=>hp,ipv4:()=>np,ipv6:()=>rp,ksuid:()=>Kd,lowercase:()=>vp,md5_base64:()=>cR,md5_base64url:()=>uR,md5_hex:()=>aR,nanoid:()=>Yd,null:()=>yp,number:()=>mp,rfc5322Email:()=>tR,sha1_base64:()=>fR,sha1_base64url:()=>dR,sha1_hex:()=>lR,sha256_base64:()=>hR,sha256_base64url:()=>mR,sha256_hex:()=>pR,sha384_base64:()=>yR,sha384_base64url:()=>xR,sha384_hex:()=>gR,sha512_base64:()=>_R,sha512_base64url:()=>bR,sha512_hex:()=>vR,string:()=>dp,time:()=>lp,ulid:()=>Xd,undefined:()=>xp,unicodeEmail:()=>K_,uppercase:()=>_p,uuid:()=>Di,uuid4:()=>YP,uuid6:()=>JP,uuid7:()=>QP,xid:()=>qd});f();var Wd=/^[cC][^\s-]{8,}$/,Zd=/^[0-9a-z]+$/,Xd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qd=/^[0-9a-vA-V]{20}$/,Kd=/^[A-Za-z0-9]{27}$/,Yd=/^[a-zA-Z0-9_-]{21}$/,Jd=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,KP=/^[-+]?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)?)??$/,Qd=/^([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})$/,Di=o(e=>e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(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)$/,"uuid"),YP=Di(4),JP=Di(6),QP=Di(7),ep=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eR=/^[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])?)*$/,tR=/^(([^<>()\[\]\\.,;:\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,}))$/,K_=new RegExp('^[^\\s@"]{1,64}@[^\\s@]{1,255}$',"u"),nR=K_,rR=/^[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])?)*$/,iR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tp(){return new RegExp(iR,"u")}o(tp,"emoji");var np=/^(?:(?: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])$/,rp=/^(([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}|:))$/,ip=/^((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])$/,op=/^(([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])$/,sp=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dc=/^[A-Za-z0-9_-]*$/,ap=/^(?=.{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])?)*\.?$/,oR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,cp=/^\+(?:[0-9]){6,14}[0-9]$/,Y_="(?:(?:\\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])))",up=new RegExp("^".concat(Y_,"$"));function J_(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(t):e.precision===0?"".concat(t,":[0-5]\\d"):"".concat(t,":[0-5]\\d\\.\\d{").concat(e.precision,"}"):"".concat(t,"(?::[0-5]\\d(?:\\.\\d+)?)?")}o(J_,"timeSource");function lp(e){return new RegExp("^".concat(J_(e),"$"))}o(lp,"time");function fp(e){let t=J_({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i="".concat(t,"(?:").concat(n.join("|"),")");return new RegExp("^".concat(Y_,"T(?:").concat(i,")$"))}o(fp,"datetime");var dp=o(e=>{var n,i;let t=e?"[\\s\\S]{".concat((n=e==null?void 0:e.minimum)!=null?n:0,",").concat((i=e==null?void 0:e.maximum)!=null?i:"","}"):"[\\s\\S]*";return new RegExp("^".concat(t,"$"))},"string"),pp=/^-?\d+n?$/,hp=/^-?\d+$/,mp=/^-?\d+(?:\.\d+)?/,gp=/^(?:true|false)$/i,yp=/^null$/i;var xp=/^undefined$/i;var vp=/^[^A-Z]*$/,_p=/^[^a-z]*$/,sR=/^[0-9a-fA-F]*$/;function Hs(e,t){return new RegExp("^[A-Za-z0-9+/]{".concat(e,"}").concat(t,"$"))}o(Hs,"fixedBase64");function Ws(e){return new RegExp("^[A-Za-z0-9_-]{".concat(e,"}$"))}o(Ws,"fixedBase64url");var aR=/^[0-9a-fA-F]{32}$/,cR=Hs(22,"=="),uR=Ws(22),lR=/^[0-9a-fA-F]{40}$/,fR=Hs(27,"="),dR=Ws(27),pR=/^[0-9a-fA-F]{64}$/,hR=Hs(43,"="),mR=Ws(43),gR=/^[0-9a-fA-F]{96}$/,yR=Hs(64,""),xR=Ws(64),vR=/^[0-9a-fA-F]{128}$/,_R=Hs(86,"=="),bR=Ws(86);var rt=M("$ZodCheck",(e,t)=>{var i,r;var n;(i=e._zod)!=null||(e._zod={}),e._zod.def=t,(r=(n=e._zod).onattach)!=null||(n.onattach=[])}),eb={number:"number",bigint:"bigint",object:"date"},Lc=M("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);let n=eb[typeof t.value];e._zod.onattach.push(i=>{var a;let r=i._zod.bag,s=(a=t.inclusive?r.maximum:r.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$c=M("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);let n=eb[typeof t.value];e._zod.onattach.push(i=>{var a;let r=i._zod.bag,s=(a=t.inclusive?r.minimum:r.exclusiveMinimum)!=null?a:Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bp=M("$ZodCheckMultipleOf",(e,t)=>{rt.init(e,t),e._zod.onattach.push(n=>{var r;var i;(r=(i=n._zod.bag).multipleOf)!=null||(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Fd(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Sp=M("$ZodCheckNumberFormat",(e,t)=>{var a;rt.init(e,t),t.format=t.format||"float64";let n=(a=t.format)==null?void 0:a.includes("int"),i=n?"int":"number",[r,s]=$d[t.format];e._zod.onattach.push(u=>{let l=u._zod.bag;l.format=t.format,l.minimum=r,l.maximum=s,n&&(l.pattern=hp)}),e._zod.check=u=>{let l=u.value;if(n){if(!Number.isInteger(l)){u.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):u.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}l<r&&u.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>s&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:s,inst:e})}}),Ip=M("$ZodCheckBigIntFormat",(e,t)=>{rt.init(e,t);let[n,i]=zd[t.format];e._zod.onattach.push(r=>{let s=r._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i}),e._zod.check=r=>{let s=r.value;s<n&&r.issues.push({origin:"bigint",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&r.issues.push({origin:"bigint",input:s,code:"too_big",maximum:i,inst:e})}}),wp=M("$ZodCheckMaxSize",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.size!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let s=r.value;s.size<=t.maximum||r.issues.push({origin:zs(s),code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Mp=M("$ZodCheckMinSize",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.size!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let s=r.value;s.size>=t.minimum||r.issues.push({origin:zs(s),code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Ep=M("$ZodCheckSizeEquals",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.size!==void 0}),e._zod.onattach.push(r=>{let s=r._zod.bag;s.minimum=t.size,s.maximum=t.size,s.size=t.size}),e._zod.check=r=>{let s=r.value,a=s.size;if(a===t.size)return;let u=a>t.size;r.issues.push(L(x({origin:zs(s)},u?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size}),{inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort}))}}),Tp=M("$ZodCheckMaxLength",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let s=r.value;if(s.length<=t.maximum)return;let u=Bs(s);r.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Ap=M("$ZodCheckMinLength",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let s=r.value;if(s.length>=t.minimum)return;let u=Bs(s);r.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Pp=M("$ZodCheckLengthEquals",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{let s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{let s=r.value,a=s.length;if(a===t.length)return;let u=Bs(s),l=a>t.length;r.issues.push(L(x({origin:u},l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}),{inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort}))}}),Mo=M("$ZodCheckStringFormat",(e,t)=>{var r,s;var n,i;rt.init(e,t),e._zod.onattach.push(a=>{var l;let u=a._zod.bag;u.format=t.format,t.pattern&&((l=u.patterns)!=null||(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(r=(n=e._zod).check)!=null||(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push(L(x({origin:"string",code:"invalid_format",format:t.format,input:a.value},t.pattern?{pattern:t.pattern.toString()}:{}),{inst:e,continue:!t.abort}))}):(s=(i=e._zod).check)!=null||(i.check=()=>{})}),Rp=M("$ZodCheckRegex",(e,t)=>{Mo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Cp=M("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=vp),Mo.init(e,t)}),Op=M("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=_p),Mo.init(e,t)}),Up=M("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);let n=hr(t.includes),i=new RegExp(typeof t.position=="number"?"^.{".concat(t.position,"}").concat(n):n);t.pattern=i,e._zod.onattach.push(r=>{var a;let s=r._zod.bag;(a=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(i)}),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})}}),Fp=M("$ZodCheckStartsWith",(e,t)=>{var i;rt.init(e,t);let n=new RegExp("^".concat(hr(t.prefix),".*"));(i=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(r=>{var a;let s=r._zod.bag;(a=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Np=M("$ZodCheckEndsWith",(e,t)=>{var i;rt.init(e,t);let n=new RegExp(".*".concat(hr(t.suffix),"$"));(i=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(r=>{var a;let s=r._zod.bag;(a=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function Q_(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues))}o(Q_,"handleCheckPropertyResult");var kp=M("$ZodCheckProperty",(e,t)=>{rt.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Q_(r,n,t.property));Q_(i,n,t.property)}}),Dp=M("$ZodCheckMimeType",(e,t)=>{rt.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Lp=M("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});f();var $p=class $p{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 i=t.split("\n").filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),s=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of s)this.content.push(a)}compile(){var s;let t=Function,n=this==null?void 0:this.args,r=[...((s=this==null?void 0:this.content)!=null?s:[""]).map(a=>" ".concat(a))];return new t(...n,r.join("\n"))}};o($p,"Doc");var Zs=$p;f();var zp={major:4,minor:1,patch:12};var se=M("$ZodType",(e,t)=>{var r,s,a;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zp;let i=[...(r=e._zod.def.checks)!=null?r:[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let u of i)for(let l of u._zod.onattach)l(e);if(i.length===0)(s=(n=e._zod).deferred)!=null||(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{let u=o((c,d,h)=>{let m=xi(c),y;for(let v of d){if(v._zod.def.when){if(!v._zod.def.when(c))continue}else if(m)continue;let I=c.issues.length,T=v._zod.check(c);if(T instanceof Promise&&(h==null?void 0:h.async)===!1)throw new tr;if(y||T instanceof Promise)y=(y!=null?y:Promise.resolve()).then(async()=>{await T,c.issues.length!==I&&(m||(m=xi(c,I)))});else{if(c.issues.length===I)continue;m||(m=xi(c,I))}}return y?y.then(()=>c):c},"runChecks"),l=o((c,d,h)=>{if(xi(c))return c.aborted=!0,c;let m=u(d,i,h);if(m instanceof Promise){if(h.async===!1)throw new tr;return m.then(y=>e._zod.parse(y,h))}return e._zod.parse(m,h)},"handleCanaryResult");e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){let m=e._zod.parse({value:c.value,issues:[]},L(x({},d),{skipChecks:!0}));return m instanceof Promise?m.then(y=>l(y,c,d)):l(m,c,d)}let h=e._zod.parse(c,d);if(h instanceof Promise){if(d.async===!1)throw new tr;return h.then(m=>u(m,i,d))}return u(h,i,d)}}e["~standard"]={validate:o(u=>{var l;try{let c=Gd(e,u);return c.success?{value:c.data}:{issues:(l=c.error)==null?void 0:l.issues}}catch(c){return Hd(e,u).then(d=>{var h;return d.success?{value:d.data}:{issues:(h=d.error)==null?void 0:h.issues}})}},"validate"),vendor:"zod",version:1}}),Li=M("$ZodString",(e,t)=>{var n,i,r;se.init(e,t),e._zod.pattern=(r=[...(i=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?i:[]].pop())!=null?r:dp(e._zod.bag),e._zod.parse=(s,a)=>{if(t.coerce)try{s.value=String(s.value)}catch(u){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:e}),s}}),qe=M("$ZodStringFormat",(e,t)=>{Mo.init(e,t),Li.init(e,t)}),Vp=M("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Qd),qe.init(e,t)}),jp=M("$ZodUUID",(e,t)=>{var n,i;if(t.version){let s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error('Invalid UUID version: "'.concat(t.version,'"'));(n=t.pattern)!=null||(t.pattern=Di(s))}else(i=t.pattern)!=null||(t.pattern=Di());qe.init(e,t)}),Gp=M("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ep),qe.init(e,t)}),Hp=M("$ZodURL",(e,t)=>{qe.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ap.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Wp=M("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=tp()),qe.init(e,t)}),Zp=M("$ZodNanoID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Yd),qe.init(e,t)}),Xp=M("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Wd),qe.init(e,t)}),qp=M("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Zd),qe.init(e,t)}),Kp=M("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Xd),qe.init(e,t)}),Yp=M("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=qd),qe.init(e,t)}),Jp=M("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Kd),qe.init(e,t)}),Qp=M("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=fp(t)),qe.init(e,t)}),eh=M("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=up),qe.init(e,t)}),th=M("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=lp(t)),qe.init(e,t)}),nh=M("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Jd),qe.init(e,t)}),rh=M("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=np),qe.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format="ipv4"})}),ih=M("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=rp),qe.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format="ipv6"}),e._zod.check=i=>{try{new URL("http://[".concat(i.value,"]"))}catch(r){i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),oh=M("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ip),qe.init(e,t)}),sh=M("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=op),qe.init(e,t),e._zod.check=i=>{let r=i.value.split("/");try{if(r.length!==2)throw new Error;let[s,a]=r;if(!a)throw new Error;let u=Number(a);if("".concat(u)!==a)throw new Error;if(u<0||u>128)throw new Error;new URL("http://[".concat(s,"]"))}catch(s){i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function ah(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(t){return!1}}o(ah,"isValidBase64");var ch=M("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=sp),qe.init(e,t),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64"}),e._zod.check=i=>{ah(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}});function db(e){if(!Dc.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ah(n)}o(db,"isValidBase64URL");var uh=M("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Dc),qe.init(e,t),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64url"}),e._zod.check=i=>{db(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),lh=M("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=cp),qe.init(e,t)});function pb(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch(n){return!1}}o(pb,"isValidJWT");var fh=M("$ZodJWT",(e,t)=>{qe.init(e,t),e._zod.check=n=>{pb(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),dh=M("$ZodCustomStringFormat",(e,t)=>{qe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Hc=M("$ZodNumber",(e,t)=>{var n;se.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:mp,e._zod.parse=(i,r)=>{if(t.coerce)try{i.value=Number(i.value)}catch(u){}let s=i.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return i;let a=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return i.issues.push(x({expected:"number",code:"invalid_type",input:s,inst:e},a?{received:a}:{})),i}}),ph=M("$ZodNumber",(e,t)=>{Sp.init(e,t),Hc.init(e,t)}),Xs=M("$ZodBoolean",(e,t)=>{se.init(e,t),e._zod.pattern=gp,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch(s){}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Wc=M("$ZodBigInt",(e,t)=>{se.init(e,t),e._zod.pattern=pp,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(r){}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),hh=M("$ZodBigInt",(e,t)=>{Ip.init(e,t),Wc.init(e,t)}),mh=M("$ZodSymbol",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),gh=M("$ZodUndefined",(e,t)=>{se.init(e,t),e._zod.pattern=xp,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),yh=M("$ZodNull",(e,t)=>{se.init(e,t),e._zod.pattern=yp,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),xh=M("$ZodAny",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),vh=M("$ZodUnknown",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),_h=M("$ZodNever",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),bh=M("$ZodVoid",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Sh=M("$ZodDate",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(u){}let r=n.value,s=r instanceof Date;return s&&!Number.isNaN(r.getTime())||n.issues.push(L(x({expected:"date",code:"invalid_type",input:r},s?{received:"Invalid Date"}:{}),{inst:e})),n}});function nb(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues)),t.value[n]=e.value}o(nb,"handleArrayResult");var Ih=M("$ZodArray",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let s=[];for(let a=0;a<r.length;a++){let u=r[a],l=t.element._zod.run({value:u,issues:[]},i);l instanceof Promise?s.push(l.then(c=>nb(c,n,a))):nb(l,n,a)}return s.length?Promise.all(s).then(()=>n):n}});function Gc(e,t,n,i){e.issues.length&&t.issues.push(...vn(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}o(Gc,"handlePropertyResult");function hb(e){var i,r,s,a;let t=Object.keys(e.shape);for(let u of t)if(!((a=(s=(r=(i=e.shape)==null?void 0:i[u])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&a.has("$ZodType")))throw new Error('Invalid element at key "'.concat(u,'": expected a Zod schema'));let n=Ld(e.shape);return L(x({},e),{keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)})}o(hb,"normalizeDef");function mb(e,t,n,i,r,s){let a=[],u=r.keySet,l=r.catchall._zod,c=l.def.type;for(let d of Object.keys(t)){if(u.has(d))continue;if(c==="never"){a.push(d);continue}let h=l.run({value:t[d],issues:[]},i);h instanceof Promise?e.push(h.then(m=>Gc(m,n,d,t))):Gc(h,n,d,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}o(mb,"handleCatchall");var gb=M("$ZodObject",(e,t)=>{se.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){let u=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let l=x({},u);return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let i=vo(()=>hb(t));ge(e._zod,"propValues",()=>{var c;let u=t.shape,l={};for(let d in u){let h=u[d]._zod;if(h.values){(c=l[d])!=null||(l[d]=new Set);for(let m of h.values)l[d].add(m)}}return l});let r=ki,s=t.catchall,a;e._zod.parse=(u,l)=>{a!=null||(a=i.value);let c=u.value;if(!r(c))return u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u;u.value={};let d=[],h=a.shape;for(let m of a.keys){let v=h[m]._zod.run({value:c[m],issues:[]},l);v instanceof Promise?d.push(v.then(I=>Gc(I,u,m,c))):Gc(v,u,m,c)}return s?mb(d,c,u,l,i.value,e):d.length?Promise.all(d).then(()=>u):u}}),wh=M("$ZodObjectJIT",(e,t)=>{gb.init(e,t);let n=e._zod.parse,i=vo(()=>hb(t)),r=o(m=>{let y=new Zs(["shape","payload","ctx"]),v=i.value,I=o(w=>{let S=Mc(w);return"shape[".concat(S,"]._zod.run({ value: input[").concat(S,"], issues: [] }, ctx)")},"parseStr");y.write("const input = payload.value;");let T=Object.create(null),U=0;for(let w of v.keys)T[w]="key_".concat(U++);y.write("const newResult = {};");for(let w of v.keys){let S=T[w],A=Mc(w);y.write("const ".concat(S," = ").concat(I(w),";")),y.write("\n if (".concat(S,".issues.length) {\n payload.issues = payload.issues.concat(").concat(S,".issues.map(iss => ({\n ...iss,\n path: iss.path ? [").concat(A,", ...iss.path] : [").concat(A,"]\n })));\n }\n \n \n if (").concat(S,".value === undefined) {\n if (").concat(A," in input) {\n newResult[").concat(A,"] = undefined;\n }\n } else {\n newResult[").concat(A,"] = ").concat(S,".value;\n }\n \n "))}y.write("payload.value = newResult;"),y.write("return payload;");let D=y.compile();return(w,S)=>D(m,w,S)},"generateFastpass"),s,a=ki,u=!Ns.jitless,c=u&&Nd.value,d=t.catchall,h;e._zod.parse=(m,y)=>{h!=null||(h=i.value);let v=m.value;return a(v)?u&&c&&(y==null?void 0:y.async)===!1&&y.jitless!==!0?(s||(s=r(t.shape)),m=s(m,y),d?mb([],v,m,y,h,e):m):n(m,y):(m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m)}});function rb(e,t,n,i){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let r=e.filter(s=>!xi(s));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(a=>_n(a,i,xt())))}),t)}o(rb,"handleUnionResults");var Zc=M("$ZodUnion",(e,t)=>{se.init(e,t),ge(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ge(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ge(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ge(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(s=>s._zod.pattern);return new RegExp("^(".concat(r.map(s=>Ls(s.source)).join("|"),")$"))}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,s)=>{if(n)return i(r,s);let a=!1,u=[];for(let l of t.options){let c=l._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)u.push(c),a=!0;else{if(c.issues.length===0)return c;u.push(c)}}return a?Promise.all(u).then(l=>rb(l,r,e,s)):rb(u,r,e,s)}}),Mh=M("$ZodDiscriminatedUnion",(e,t)=>{Zc.init(e,t);let n=e._zod.parse;ge(e._zod,"propValues",()=>{let r={};for(let s of t.options){let a=s._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(s),'"'));for(let[u,l]of Object.entries(a)){r[u]||(r[u]=new Set);for(let c of l)r[u].add(c)}}return r});let i=vo(()=>{var a;let r=t.options,s=new Map;for(let u of r){let l=(a=u._zod.propValues)==null?void 0:a[t.discriminator];if(!l||l.size===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(u),'"'));for(let c of l){if(s.has(c))throw new Error('Duplicate discriminator value "'.concat(String(c),'"'));s.set(c,u)}}return s});e._zod.parse=(r,s)=>{let a=r.value;if(!ki(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let u=i.value.get(a==null?void 0:a[t.discriminator]);return u?u._zod.run(r,s):t.unionFallback?n(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),Eh=M("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,s=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([l,c])=>ib(n,l,c)):ib(n,s,a)}});function Bp(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(yi(e)&&yi(t)){let n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),r=x(x({},e),t);for(let s of i){let a=Bp(e[s],t[s]);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};r[s]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],s=t[i],a=Bp(r,s);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}o(Bp,"mergeValues");function ib(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),xi(e))return e;let i=Bp(t.value,n.value);if(!i.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(i.mergeErrorPath)));return e.value=i.data,e}o(ib,"handleIntersectionResults");var Xc=M("$ZodTuple",(e,t)=>{se.init(e,t);let n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,s)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let u=[];if(!t.rest){let c=a.length>n.length,d=a.length<i-1;if(c||d)return r.issues.push(L(x({},c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}),{input:a,inst:e,origin:"array"})),r}let l=-1;for(let c of n){if(l++,l>=a.length&&l>=i)continue;let d=c._zod.run({value:a[l],issues:[]},s);d instanceof Promise?u.push(d.then(h=>zc(h,r,l))):zc(d,r,l)}if(t.rest){let c=a.slice(n.length);for(let d of c){l++;let h=t.rest._zod.run({value:d,issues:[]},s);h instanceof Promise?u.push(h.then(m=>zc(m,r,l))):zc(h,r,l)}}return u.length?Promise.all(u).then(()=>r):r}});function zc(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues)),t.value[n]=e.value}o(zc,"handleTupleResult");var Th=M("$ZodRecord",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!yi(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let s=[];if(t.keyType._zod.values){let a=t.keyType._zod.values;n.value={};for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){let c=t.valueType._zod.run({value:r[l],issues:[]},i);c instanceof Promise?s.push(c.then(d=>{d.issues.length&&n.issues.push(...vn(l,d.issues)),n.value[l]=d.value})):(c.issues.length&&n.issues.push(...vn(l,c.issues)),n.value[l]=c.value)}let u;for(let l in r)a.has(l)||(u=u!=null?u:[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(let a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let u=t.keyType._zod.run({value:a,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(c=>_n(c,i,xt())),input:a,path:[a],inst:e}),n.value[u.value]=u.value;continue}let l=t.valueType._zod.run({value:r[a],issues:[]},i);l instanceof Promise?s.push(l.then(c=>{c.issues.length&&n.issues.push(...vn(a,c.issues)),n.value[u.value]=c.value})):(l.issues.length&&n.issues.push(...vn(a,l.issues)),n.value[u.value]=l.value)}}return s.length?Promise.all(s).then(()=>n):n}}),Ah=M("$ZodMap",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let s=[];n.value=new Map;for(let[a,u]of r){let l=t.keyType._zod.run({value:a,issues:[]},i),c=t.valueType._zod.run({value:u,issues:[]},i);l instanceof Promise||c instanceof Promise?s.push(Promise.all([l,c]).then(([d,h])=>{ob(d,h,n,a,r,e,i)})):ob(l,c,n,a,r,e,i)}return s.length?Promise.all(s).then(()=>n):n}});function ob(e,t,n,i,r,s,a){e.issues.length&&($s.has(typeof i)?n.issues.push(...vn(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:s,issues:e.issues.map(u=>_n(u,a,xt()))})),t.issues.length&&($s.has(typeof i)?n.issues.push(...vn(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:s,key:i,issues:t.issues.map(u=>_n(u,a,xt()))})),n.value.set(e.value,t.value)}o(ob,"handleMapResult");var Ph=M("$ZodSet",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let s=[];n.value=new Set;for(let a of r){let u=t.valueType._zod.run({value:a,issues:[]},i);u instanceof Promise?s.push(u.then(l=>sb(l,n))):sb(u,n)}return s.length?Promise.all(s).then(()=>n):n}});function sb(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}o(sb,"handleSetResult");var Rh=M("$ZodEnum",(e,t)=>{se.init(e,t);let n=Ds(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp("^(".concat(n.filter(r=>$s.has(typeof r)).map(r=>typeof r=="string"?hr(r):r.toString()).join("|"),")$")),e._zod.parse=(r,s)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Ch=M("$ZodLiteral",(e,t)=>{if(se.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp("^(".concat(t.values.map(n=>typeof n=="string"?hr(n):n?hr(n.toString()):String(n)).join("|"),")$")),e._zod.parse=(n,i)=>{let r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),Oh=M("$ZodFile",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Uh=M("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pi(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new tr;return n.value=r,n}});function ab(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(ab,"handleOptionalResult");var Fh=M("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ge(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(Ls(n.source),")?$")):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>ab(s,n.value)):ab(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Nh=M("$ZodNullable",(e,t)=>{se.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(Ls(n.source),"|null)$")):void 0}),ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),kh=M("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>cb(s,t)):cb(r,t)}});function cb(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}o(cb,"handleDefaultResult");var Dh=M("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Lh=M("$ZodNonOptional",(e,t)=>{se.init(e,t),ge(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>ub(s,e)):ub(r,e)}});function ub(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}o(ub,"handleNonOptionalResult");var $h=M("$ZodSuccess",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pi("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>(n.value=s.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),zh=M("$ZodCatch",(e,t)=>{se.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue(L(x({},n),{error:{issues:s.issues.map(a=>_n(a,i,xt()))},input:n.value})),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue(L(x({},n),{error:{issues:r.issues.map(s=>_n(s,i,xt()))},input:n.value})),n.issues=[]),n)}}),Bh=M("$ZodNaN",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Vh=M("$ZodPipe",(e,t)=>{se.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let s=t.out._zod.run(n,i);return s instanceof Promise?s.then(a=>Bc(a,t.in,i)):Bc(s,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(s=>Bc(s,t.out,i)):Bc(r,t.out,i)}});function Bc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}o(Bc,"handlePipeResult");var qs=M("$ZodCodec",(e,t)=>{se.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let s=t.in._zod.run(n,i);return s instanceof Promise?s.then(a=>Vc(a,t,i)):Vc(s,t,i)}else{let s=t.out._zod.run(n,i);return s instanceof Promise?s.then(a=>Vc(a,t,i)):Vc(s,t,i)}}});function Vc(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(s=>jc(e,s,t.out,n)):jc(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(s=>jc(e,s,t.in,n)):jc(e,r,t.in,n)}}o(Vc,"handleCodecAResult");function jc(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}o(jc,"handleCodecTxResult");var jh=M("$ZodReadonly",(e,t)=>{se.init(e,t),ge(e._zod,"propValues",()=>t.innerType._zod.propValues),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(lb):lb(r)}});function lb(e){return e.value=Object.freeze(e.value),e}o(lb,"handleReadonlyResult");var Gh=M("$ZodTemplateLiteral",(e,t)=>{se.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error("Invalid template literal part, no pattern found: ".concat([...i._zod.traits].shift()));let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error("Invalid template literal part: ".concat(i._zod.traits));let s=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(s,a))}else if(i===null||Dd.has(typeof i))n.push(hr("".concat(i)));else throw new Error("Invalid template literal part: ".concat(i));e._zod.pattern=new RegExp("^".concat(n.join(""),"$")),e._zod.parse=(i,r)=>{var s;return typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:(s=t.format)!=null?s:"template_literal",pattern:e._zod.pattern.source}),i)}}),Hh=M("$ZodFunction",(e,t)=>(se.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?Tc(e._def.input,i):i,s=Reflect.apply(n,this,r);return e._def.output?Tc(e._def.output,s):s}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Ac(e._def.input,i):i,s=await Reflect.apply(n,this,r);return e._def.output?await Ac(e._def.output,s):s}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Xc({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Wh=M("$ZodPromise",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Zh=M("$ZodLazy",(e,t)=>{se.init(e,t),ge(e._zod,"innerType",()=>t.getter()),ge(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ge(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ge(e._zod,"optin",()=>{var n;return(n=e._zod.innerType._zod.optin)!=null?n:void 0}),ge(e._zod,"optout",()=>{var n;return(n=e._zod.innerType._zod.optout)!=null?n:void 0}),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Xh=M("$ZodCustom",(e,t)=>{rt.init(e,t),se.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(s=>fb(s,n,i,e));fb(r,n,i,e)}});function fb(e,t,n,i){var r;if(!e){let s={code:"custom",input:n,inst:i,path:[...(r=i._zod.def.path)!=null?r:[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),t.issues.push(_o(s))}}o(fb,"handleRefineResult");var $i={};un($i,{ar:()=>qh,az:()=>Kh,be:()=>Yh,bg:()=>Jh,ca:()=>Qh,cs:()=>em,da:()=>tm,de:()=>nm,en:()=>Ks,eo:()=>rm,es:()=>im,fa:()=>om,fi:()=>sm,fr:()=>am,frCA:()=>cm,he:()=>um,hu:()=>lm,id:()=>fm,is:()=>dm,it:()=>pm,ja:()=>hm,ka:()=>mm,kh:()=>gm,km:()=>Ys,ko:()=>ym,lt:()=>xm,mk:()=>vm,ms:()=>_m,nl:()=>bm,no:()=>Sm,ota:()=>Im,pl:()=>Mm,ps:()=>wm,pt:()=>Em,ru:()=>Tm,sl:()=>Am,sv:()=>Pm,ta:()=>Rm,th:()=>Cm,tr:()=>Om,ua:()=>Um,uk:()=>ea,ur:()=>Fm,vi:()=>Nm,yo:()=>Lm,zhCN:()=>km,zhTW:()=>Dm});f();f();var IR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected,"\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ").concat(n(r.input));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 ".concat($(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: ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?" \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ".concat((s=r.origin)!=null?s:"\u0627\u0644\u0642\u064A\u0645\u0629"," ").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0627\u0644\u0642\u064A\u0645\u0629"," ").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ".concat(r.origin," \u0623\u0646 \u064A\u0643\u0648\u0646 ").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ".concat(r.origin," \u0623\u0646 \u064A\u0643\u0648\u0646 ").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(r.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"\u0645\u0639\u0631\u0641".concat(r.keys.length>1?"\u0627\u062A":""," \u063A\u0631\u064A\u0628").concat(r.keys.length>1?"\u0629":"",": ").concat(C(r.keys,"\u060C "));case"invalid_key":return"\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ".concat(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 ".concat(r.origin);default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function qh(){return{localeError:IR()}}o(qh,"default");f();var wR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ".concat(r.expected,", daxil olan ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ".concat($(r.values[0])):"Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ".concat((s=r.origin)!=null?s:"d\u0259y\u0259r"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"element"):"\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ".concat((u=r.origin)!=null?u:"d\u0259y\u0259r"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Yanl\u0131\u015F m\u0259tn: "'.concat(c.prefix,'" il\u0259 ba\u015Flamal\u0131d\u0131r'):c.format==="ends_with"?'Yanl\u0131\u015F m\u0259tn: "'.concat(c.suffix,'" il\u0259 bitm\u0259lidir'):c.format==="includes"?'Yanl\u0131\u015F m\u0259tn: "'.concat(c.includes,'" daxil olmal\u0131d\u0131r'):c.format==="regex"?"Yanl\u0131\u015F m\u0259tn: ".concat(c.pattern," \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r"):"Yanl\u0131\u015F ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Yanl\u0131\u015F \u0259d\u0259d: ".concat(r.divisor," il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r");case"unrecognized_keys":return"Tan\u0131nmayan a\xE7ar".concat(r.keys.length>1?"lar":"",": ").concat(C(r.keys,", "));case"invalid_key":return"".concat(r.origin," daxilind\u0259 yanl\u0131\u015F a\xE7ar");case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return"".concat(r.origin," daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r");default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Kh(){return{localeError:wR()}}o(Kh,"default");f();function yb(e,t,n,i){let r=Math.abs(e),s=r%10,a=r%100;return a>=11&&a<=19?i:s===1?t:s>=2&&s<=4?n:i}o(yb,"getBelarusianPlural");var MR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u;switch(r.code){case"invalid_type":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ".concat(r.expected,", \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let l=r.inclusive?"<=":"<",c=t(r.origin);if(c){let d=Number(r.maximum),h=yb(d,c.unit.one,c.unit.few,c.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 ".concat((s=r.origin)!=null?s:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ").concat(c.verb," ").concat(l).concat(r.maximum.toString()," ").concat(h)}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 ".concat((a=r.origin)!=null?a:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ").concat(l).concat(r.maximum.toString())}case"too_small":{let l=r.inclusive?">=":">",c=t(r.origin);if(c){let d=Number(r.minimum),h=yb(d,c.unit.one,c.unit.few,c.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 ".concat(r.origin," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ").concat(c.verb," ").concat(l).concat(r.minimum.toString()," ").concat(h)}return"\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ".concat(r.origin," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ").concat(l).concat(r.minimum.toString())}case"invalid_format":{let l=r;return l.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 "'.concat(l.prefix,'"'):l.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 "'.concat(l.suffix,'"'):l.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 "'.concat(l.includes,'"'):l.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 ".concat(l.pattern):"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ".concat((u=i[l.format])!=null?u: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 ".concat(r.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ".concat(r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447",": ").concat(C(r.keys,", "));case"invalid_key":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ".concat(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 ".concat(r.origin);default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Yh(){return{localeError:MR()}}o(Yh,"default");f();var ER=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),TR=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ".concat(i.expected,", \u043F\u043E\u043B\u0443\u0447\u0435\u043D ").concat(ER(i.input));case"invalid_value":return i.values.length===1?"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ".concat($(i.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 ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ".concat((r=i.origin)!=null?r:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"," \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"\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 ".concat((a=i.origin)!=null?a:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"," \u0434\u0430 \u0431\u044A\u0434\u0435 ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ".concat(i.origin," \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ".concat(i.origin," \u0434\u0430 \u0431\u044A\u0434\u0435 ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;if(l.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 "'.concat(l.prefix,'"');if(l.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 "'.concat(l.suffix,'"');if(l.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 "'.concat(l.includes,'"');if(l.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 ".concat(l.pattern);let c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return l.format==="emoji"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="datetime"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="date"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),l.format==="time"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="duration"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),"".concat(c," ").concat((u=n[l.format])!=null?u:i.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 ".concat(i.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442".concat(i.keys.length>1?"\u0438":""," \u043A\u043B\u044E\u0447").concat(i.keys.length>1?"\u043E\u0432\u0435":"",": ").concat(C(i.keys,", "));case"invalid_key":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ".concat(i.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 ".concat(i.origin);default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Jh(){return{localeError:TR()}}o(Jh,"default");f();var AR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Tipus inv\xE0lid: s'esperava ".concat(r.expected,", s'ha rebut ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Valor inv\xE0lid: s'esperava ".concat($(r.values[0])):"Opci\xF3 inv\xE0lida: s'esperava una de ".concat(C(r.values," o "));case"too_big":{let c=r.inclusive?"com a m\xE0xim":"menys de",d=t(r.origin);return d?"Massa gran: s'esperava que ".concat((s=r.origin)!=null?s:"el valor"," contingu\xE9s ").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elements"):"Massa gran: s'esperava que ".concat((u=r.origin)!=null?u:"el valor"," fos ").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?"com a m\xEDnim":"m\xE9s de",d=t(r.origin);return d?"Massa petit: s'esperava que ".concat(r.origin," contingu\xE9s ").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"Massa petit: s'esperava que ".concat(r.origin," fos ").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Format inv\xE0lid: ha de comen\xE7ar amb "'.concat(c.prefix,'"'):c.format==="ends_with"?"Format inv\xE0lid: ha d'acabar amb \"".concat(c.suffix,'"'):c.format==="includes"?"Format inv\xE0lid: ha d'incloure \"".concat(c.includes,'"'):c.format==="regex"?"Format inv\xE0lid: ha de coincidir amb el patr\xF3 ".concat(c.pattern):"Format inv\xE0lid per a ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ".concat(r.divisor);case"unrecognized_keys":return"Clau".concat(r.keys.length>1?"s":""," no reconeguda").concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Clau inv\xE0lida a ".concat(r.origin);case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return"Element inv\xE0lid a ".concat(r.origin);default:return"Entrada inv\xE0lida"}}},"error");function Qh(){return{localeError:AR()}}o(Qh,"default");f();var PR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h;switch(r.code){case"invalid_type":return"Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ".concat(r.expected,", obdr\u017Eeno ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ".concat($(r.values[0])):"Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ".concat(C(r.values,"|"));case"too_big":{let m=r.inclusive?"<=":"<",y=t(r.origin);return y?"Hodnota je p\u0159\xEDli\u0161 velk\xE1: ".concat((s=r.origin)!=null?s:"hodnota"," mus\xED m\xEDt ").concat(m).concat(r.maximum.toString()," ").concat((a=y.unit)!=null?a:"prvk\u016F"):"Hodnota je p\u0159\xEDli\u0161 velk\xE1: ".concat((u=r.origin)!=null?u:"hodnota"," mus\xED b\xFDt ").concat(m).concat(r.maximum.toString())}case"too_small":{let m=r.inclusive?">=":">",y=t(r.origin);return y?"Hodnota je p\u0159\xEDli\u0161 mal\xE1: ".concat((l=r.origin)!=null?l:"hodnota"," mus\xED m\xEDt ").concat(m).concat(r.minimum.toString()," ").concat((c=y.unit)!=null?c:"prvk\u016F"):"Hodnota je p\u0159\xEDli\u0161 mal\xE1: ".concat((d=r.origin)!=null?d:"hodnota"," mus\xED b\xFDt ").concat(m).concat(r.minimum.toString())}case"invalid_format":{let m=r;return m.format==="starts_with"?'Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "'.concat(m.prefix,'"'):m.format==="ends_with"?'Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "'.concat(m.suffix,'"'):m.format==="includes"?'Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "'.concat(m.includes,'"'):m.format==="regex"?"Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ".concat(m.pattern):"Neplatn\xFD form\xE1t ".concat((h=i[m.format])!=null?h:r.format)}case"not_multiple_of":return"Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ".concat(r.divisor);case"unrecognized_keys":return"Nezn\xE1m\xE9 kl\xED\u010De: ".concat(C(r.keys,", "));case"invalid_key":return"Neplatn\xFD kl\xED\u010D v ".concat(r.origin);case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return"Neplatn\xE1 hodnota v ".concat(r.origin);default:return"Neplatn\xFD vstup"}}},"error");function em(){return{localeError:PR()}}o(em,"default");f();var RR=o(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function n(a){var u;return(u=e[a])!=null?u:null}o(n,"getSizing");function i(a){var u;return(u=t[a])!=null?u:a}o(i,"getTypeName");let r=o(a=>{let u=typeof a;switch(u){case"number":return Number.isNaN(a)?"NaN":"tal";case"object":return Array.isArray(a)?"liste":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype&&a.constructor?a.constructor.name:"objekt"}return u},"parsedType"),s={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"};return a=>{var u,l;switch(a.code){case"invalid_type":return"Ugyldigt input: forventede ".concat(i(a.expected),", fik ").concat(i(r(a.input)));case"invalid_value":return a.values.length===1?"Ugyldig v\xE6rdi: forventede ".concat($(a.values[0])):"Ugyldigt valg: forventede en af f\xF8lgende ".concat(C(a.values,"|"));case"too_big":{let c=a.inclusive?"<=":"<",d=n(a.origin),h=i(a.origin);return d?"For stor: forventede ".concat(h!=null?h:"value"," ").concat(d.verb," ").concat(c," ").concat(a.maximum.toString()," ").concat((u=d.unit)!=null?u:"elementer"):"For stor: forventede ".concat(h!=null?h:"value"," havde ").concat(c," ").concat(a.maximum.toString())}case"too_small":{let c=a.inclusive?">=":">",d=n(a.origin),h=i(a.origin);return d?"For lille: forventede ".concat(h," ").concat(d.verb," ").concat(c," ").concat(a.minimum.toString()," ").concat(d.unit):"For lille: forventede ".concat(h," havde ").concat(c," ").concat(a.minimum.toString())}case"invalid_format":{let c=a;return c.format==="starts_with"?'Ugyldig streng: skal starte med "'.concat(c.prefix,'"'):c.format==="ends_with"?'Ugyldig streng: skal ende med "'.concat(c.suffix,'"'):c.format==="includes"?'Ugyldig streng: skal indeholde "'.concat(c.includes,'"'):c.format==="regex"?"Ugyldig streng: skal matche m\xF8nsteret ".concat(c.pattern):"Ugyldig ".concat((l=s[c.format])!=null?l:a.format)}case"not_multiple_of":return"Ugyldigt tal: skal v\xE6re deleligt med ".concat(a.divisor);case"unrecognized_keys":return"".concat(a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle",": ").concat(C(a.keys,", "));case"invalid_key":return"Ugyldig n\xF8gle i ".concat(a.origin);case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return"Ugyldig v\xE6rdi i ".concat(a.origin);default:return"Ugyldigt input"}}},"error");function tm(){return{localeError:RR()}}o(tm,"default");f();var CR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Ung\xFCltige Eingabe: erwartet ".concat(r.expected,", erhalten ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ung\xFCltige Eingabe: erwartet ".concat($(r.values[0])):"Ung\xFCltige Option: erwartet eine von ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Zu gro\xDF: erwartet, dass ".concat((s=r.origin)!=null?s:"Wert"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"Elemente"," hat"):"Zu gro\xDF: erwartet, dass ".concat((u=r.origin)!=null?u:"Wert"," ").concat(c).concat(r.maximum.toString()," ist")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Zu klein: erwartet, dass ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," hat"):"Zu klein: erwartet, dass ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ist")}case"invalid_format":{let c=r;return c.format==="starts_with"?'Ung\xFCltiger String: muss mit "'.concat(c.prefix,'" beginnen'):c.format==="ends_with"?'Ung\xFCltiger String: muss mit "'.concat(c.suffix,'" enden'):c.format==="includes"?'Ung\xFCltiger String: muss "'.concat(c.includes,'" enthalten'):c.format==="regex"?"Ung\xFCltiger String: muss dem Muster ".concat(c.pattern," entsprechen"):"Ung\xFCltig: ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Ung\xFCltige Zahl: muss ein Vielfaches von ".concat(r.divisor," sein");case"unrecognized_keys":return"".concat(r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel",": ").concat(C(r.keys,", "));case"invalid_key":return"Ung\xFCltiger Schl\xFCssel in ".concat(r.origin);case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return"Ung\xFCltiger Wert in ".concat(r.origin);default:return"Ung\xFCltige Eingabe"}}},"error");function nm(){return{localeError:CR()}}o(nm,"default");f();var OR=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),UR=o(()=>{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"}};function t(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Invalid input: expected ".concat(i.expected,", received ").concat(OR(i.input));case"invalid_value":return i.values.length===1?"Invalid input: expected ".concat($(i.values[0])):"Invalid option: expected one of ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"Too big: expected ".concat((r=i.origin)!=null?r:"value"," to have ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"elements"):"Too big: expected ".concat((a=i.origin)!=null?a:"value"," to be ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"Too small: expected ".concat(i.origin," to have ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"Too small: expected ".concat(i.origin," to be ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'Invalid string: must start with "'.concat(l.prefix,'"'):l.format==="ends_with"?'Invalid string: must end with "'.concat(l.suffix,'"'):l.format==="includes"?'Invalid string: must include "'.concat(l.includes,'"'):l.format==="regex"?"Invalid string: must match pattern ".concat(l.pattern):"Invalid ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"Invalid number: must be a multiple of ".concat(i.divisor);case"unrecognized_keys":return"Unrecognized key".concat(i.keys.length>1?"s":"",": ").concat(C(i.keys,", "));case"invalid_key":return"Invalid key in ".concat(i.origin);case"invalid_union":return"Invalid input";case"invalid_element":return"Invalid value in ".concat(i.origin);default:return"Invalid input"}}},"error");function Ks(){return{localeError:UR()}}o(Ks,"default");f();var FR=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),NR=o(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Nevalida enigo: atendi\u011Dis ".concat(i.expected,", ricevi\u011Dis ").concat(FR(i.input));case"invalid_value":return i.values.length===1?"Nevalida enigo: atendi\u011Dis ".concat($(i.values[0])):"Nevalida opcio: atendi\u011Dis unu el ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"Tro granda: atendi\u011Dis ke ".concat((r=i.origin)!=null?r:"valoro"," havu ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"elementojn"):"Tro granda: atendi\u011Dis ke ".concat((a=i.origin)!=null?a:"valoro"," havu ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"Tro malgranda: atendi\u011Dis ke ".concat(i.origin," havu ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"Tro malgranda: atendi\u011Dis ke ".concat(i.origin," estu ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'Nevalida karaktraro: devas komenci\u011Di per "'.concat(l.prefix,'"'):l.format==="ends_with"?'Nevalida karaktraro: devas fini\u011Di per "'.concat(l.suffix,'"'):l.format==="includes"?'Nevalida karaktraro: devas inkluzivi "'.concat(l.includes,'"'):l.format==="regex"?"Nevalida karaktraro: devas kongrui kun la modelo ".concat(l.pattern):"Nevalida ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"Nevalida nombro: devas esti oblo de ".concat(i.divisor);case"unrecognized_keys":return"Nekonata".concat(i.keys.length>1?"j":""," \u015Dlosilo").concat(i.keys.length>1?"j":"",": ").concat(C(i.keys,", "));case"invalid_key":return"Nevalida \u015Dlosilo en ".concat(i.origin);case"invalid_union":return"Nevalida enigo";case"invalid_element":return"Nevalida valoro en ".concat(i.origin);default:return"Nevalida enigo"}}},"error");function rm(){return{localeError:NR()}}o(rm,"default");f();var kR=o(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={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"};function n(a){var u;return(u=e[a])!=null?u:null}o(n,"getSizing");function i(a){var u;return(u=t[a])!=null?u:a}o(i,"getTypeName");let r=o(a=>{let u=typeof a;switch(u){case"number":return Number.isNaN(a)?"NaN":"number";case"object":return Array.isArray(a)?"array":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype?a.constructor.name:"object"}return u},"parsedType"),s={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"};return a=>{var u,l;switch(a.code){case"invalid_type":return"Entrada inv\xE1lida: se esperaba ".concat(i(a.expected),", recibido ").concat(i(r(a.input)));case"invalid_value":return a.values.length===1?"Entrada inv\xE1lida: se esperaba ".concat($(a.values[0])):"Opci\xF3n inv\xE1lida: se esperaba una de ".concat(C(a.values,"|"));case"too_big":{let c=a.inclusive?"<=":"<",d=n(a.origin),h=i(a.origin);return d?"Demasiado grande: se esperaba que ".concat(h!=null?h:"valor"," tuviera ").concat(c).concat(a.maximum.toString()," ").concat((u=d.unit)!=null?u:"elementos"):"Demasiado grande: se esperaba que ".concat(h!=null?h:"valor"," fuera ").concat(c).concat(a.maximum.toString())}case"too_small":{let c=a.inclusive?">=":">",d=n(a.origin),h=i(a.origin);return d?"Demasiado peque\xF1o: se esperaba que ".concat(h," tuviera ").concat(c).concat(a.minimum.toString()," ").concat(d.unit):"Demasiado peque\xF1o: se esperaba que ".concat(h," fuera ").concat(c).concat(a.minimum.toString())}case"invalid_format":{let c=a;return c.format==="starts_with"?'Cadena inv\xE1lida: debe comenzar con "'.concat(c.prefix,'"'):c.format==="ends_with"?'Cadena inv\xE1lida: debe terminar en "'.concat(c.suffix,'"'):c.format==="includes"?'Cadena inv\xE1lida: debe incluir "'.concat(c.includes,'"'):c.format==="regex"?"Cadena inv\xE1lida: debe coincidir con el patr\xF3n ".concat(c.pattern):"Inv\xE1lido ".concat((l=s[c.format])!=null?l:a.format)}case"not_multiple_of":return"N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ".concat(a.divisor);case"unrecognized_keys":return"Llave".concat(a.keys.length>1?"s":""," desconocida").concat(a.keys.length>1?"s":"",": ").concat(C(a.keys,", "));case"invalid_key":return"Llave inv\xE1lida en ".concat(i(a.origin));case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return"Valor inv\xE1lido en ".concat(i(a.origin));default:return"Entrada inv\xE1lida"}}},"error");function im(){return{localeError:kR()}}o(im,"default");f();var DR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ".concat(r.expected," \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ").concat(n(r.input)," \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 ".concat($(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 ".concat(C(r.values,"|")," \u0645\u06CC\u200C\u0628\u0648\u062F");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ".concat((s=r.origin)!=null?s:"\u0645\u0642\u062F\u0627\u0631"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0639\u0646\u0635\u0631"," \u0628\u0627\u0634\u062F"):"\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ".concat((u=r.origin)!=null?u:"\u0645\u0642\u062F\u0627\u0631"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," \u0628\u0627\u0634\u062F")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," \u0628\u0627\u0634\u062F"):"\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," \u0628\u0627\u0634\u062F")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "'.concat(c.prefix,'" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F'):c.format==="ends_with"?'\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "'.concat(c.suffix,'" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F'):c.format==="includes"?'\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "'.concat(c.includes,'" \u0628\u0627\u0634\u062F'):c.format==="regex"?"\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ".concat(c.pattern," \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor," \u0628\u0627\u0634\u062F");case"unrecognized_keys":return"\u06A9\u0644\u06CC\u062F".concat(r.keys.length>1?"\u0647\u0627\u06CC":""," \u0646\u0627\u0634\u0646\u0627\u0633: ").concat(C(r.keys,", "));case"invalid_key":return"\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ".concat(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 ".concat(r.origin);default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function om(){return{localeError:DR()}}o(om,"default");f();var LR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s;switch(r.code){case"invalid_type":return"Virheellinen tyyppi: odotettiin ".concat(r.expected,", oli ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Virheellinen sy\xF6te: t\xE4ytyy olla ".concat($(r.values[0])):"Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ".concat(C(r.values,"|"));case"too_big":{let a=r.inclusive?"<=":"<",u=t(r.origin);return u?"Liian suuri: ".concat(u.subject," t\xE4ytyy olla ").concat(a).concat(r.maximum.toString()," ").concat(u.unit).trim():"Liian suuri: arvon t\xE4ytyy olla ".concat(a).concat(r.maximum.toString())}case"too_small":{let a=r.inclusive?">=":">",u=t(r.origin);return u?"Liian pieni: ".concat(u.subject," t\xE4ytyy olla ").concat(a).concat(r.minimum.toString()," ").concat(u.unit).trim():"Liian pieni: arvon t\xE4ytyy olla ".concat(a).concat(r.minimum.toString())}case"invalid_format":{let a=r;return a.format==="starts_with"?'Virheellinen sy\xF6te: t\xE4ytyy alkaa "'.concat(a.prefix,'"'):a.format==="ends_with"?'Virheellinen sy\xF6te: t\xE4ytyy loppua "'.concat(a.suffix,'"'):a.format==="includes"?'Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "'.concat(a.includes,'"'):a.format==="regex"?"Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ".concat(a.pattern):"Virheellinen ".concat((s=i[a.format])!=null?s:r.format)}case"not_multiple_of":return"Virheellinen luku: t\xE4ytyy olla luvun ".concat(r.divisor," monikerta");case"unrecognized_keys":return"".concat(r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain",": ").concat(C(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"}}},"error");function sm(){return{localeError:LR()}}o(sm,"default");f();var $R=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Entr\xE9e invalide : ".concat(r.expected," attendu, ").concat(n(r.input)," re\xE7u");case"invalid_value":return r.values.length===1?"Entr\xE9e invalide : ".concat($(r.values[0])," attendu"):"Option invalide : une valeur parmi ".concat(C(r.values,"|")," attendue");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Trop grand : ".concat((s=r.origin)!=null?s:"valeur"," doit ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\xE9l\xE9ment(s)"):"Trop grand : ".concat((u=r.origin)!=null?u:"valeur"," doit \xEAtre ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Trop petit : ".concat(r.origin," doit ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Trop petit : ".concat(r.origin," doit \xEAtre ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Cha\xEEne invalide : doit commencer par "'.concat(c.prefix,'"'):c.format==="ends_with"?'Cha\xEEne invalide : doit se terminer par "'.concat(c.suffix,'"'):c.format==="includes"?'Cha\xEEne invalide : doit inclure "'.concat(c.includes,'"'):c.format==="regex"?"Cha\xEEne invalide : doit correspondre au mod\xE8le ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \xEAtre un multiple de ".concat(r.divisor);case"unrecognized_keys":return"Cl\xE9".concat(r.keys.length>1?"s":""," non reconnue").concat(r.keys.length>1?"s":""," : ").concat(C(r.keys,", "));case"invalid_key":return"Cl\xE9 invalide dans ".concat(r.origin);case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(r.origin);default:return"Entr\xE9e invalide"}}},"error");function am(){return{localeError:$R()}}o(am,"default");f();var zR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u;switch(r.code){case"invalid_type":return"Entr\xE9e invalide : attendu ".concat(r.expected,", re\xE7u ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Entr\xE9e invalide : attendu ".concat($(r.values[0])):"Option invalide : attendu l'une des valeurs suivantes ".concat(C(r.values,"|"));case"too_big":{let l=r.inclusive?"\u2264":"<",c=t(r.origin);return c?"Trop grand : attendu que ".concat((s=r.origin)!=null?s:"la valeur"," ait ").concat(l).concat(r.maximum.toString()," ").concat(c.unit):"Trop grand : attendu que ".concat((a=r.origin)!=null?a:"la valeur"," soit ").concat(l).concat(r.maximum.toString())}case"too_small":{let l=r.inclusive?"\u2265":">",c=t(r.origin);return c?"Trop petit : attendu que ".concat(r.origin," ait ").concat(l).concat(r.minimum.toString()," ").concat(c.unit):"Trop petit : attendu que ".concat(r.origin," soit ").concat(l).concat(r.minimum.toString())}case"invalid_format":{let l=r;return l.format==="starts_with"?'Cha\xEEne invalide : doit commencer par "'.concat(l.prefix,'"'):l.format==="ends_with"?'Cha\xEEne invalide : doit se terminer par "'.concat(l.suffix,'"'):l.format==="includes"?'Cha\xEEne invalide : doit inclure "'.concat(l.includes,'"'):l.format==="regex"?"Cha\xEEne invalide : doit correspondre au motif ".concat(l.pattern):"".concat((u=i[l.format])!=null?u:r.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \xEAtre un multiple de ".concat(r.divisor);case"unrecognized_keys":return"Cl\xE9".concat(r.keys.length>1?"s":""," non reconnue").concat(r.keys.length>1?"s":""," : ").concat(C(r.keys,", "));case"invalid_key":return"Cl\xE9 invalide dans ".concat(r.origin);case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(r.origin);default:return"Entr\xE9e invalide"}}},"error");function cm(){return{localeError:zR()}}o(cm,"default");f();var BR=o(()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ".concat(r.expected,", \u05D4\u05EA\u05E7\u05D1\u05DC ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ".concat($(r.values[0])):"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ".concat((s=r.origin)!=null?s:"value"," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elements"):"\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ".concat((u=r.origin)!=null?u:"value"," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(r.origin," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(r.origin," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"'.concat(c.prefix,'"'):c.format==="ends_with"?'\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "'.concat(c.suffix,'"'):c.format==="includes"?'\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "'.concat(c.includes,'"'):c.format==="regex"?"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF")}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 ".concat(r.divisor);case"unrecognized_keys":return"\u05DE\u05E4\u05EA\u05D7".concat(r.keys.length>1?"\u05D5\u05EA":""," \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4").concat(r.keys.length>1?"\u05D9\u05DD":"\u05D4",": ").concat(C(r.keys,", "));case"invalid_key":return"\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1".concat(r.origin);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".concat(r.origin);default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function um(){return{localeError:BR()}}o(um,"default");f();var VR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ".concat(r.expected,", a kapott \xE9rt\xE9k ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ".concat($(r.values[0])):"\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"T\xFAl nagy: ".concat((s=r.origin)!=null?s:"\xE9rt\xE9k"," m\xE9rete t\xFAl nagy ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elem"):"T\xFAl nagy: a bemeneti \xE9rt\xE9k ".concat((u=r.origin)!=null?u:"\xE9rt\xE9k"," t\xFAl nagy: ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"T\xFAl kicsi: a bemeneti \xE9rt\xE9k ".concat(r.origin," m\xE9rete t\xFAl kicsi ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"T\xFAl kicsi: a bemeneti \xE9rt\xE9k ".concat(r.origin," t\xFAl kicsi ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\xC9rv\xE9nytelen string: "'.concat(c.prefix,'" \xE9rt\xE9kkel kell kezd\u0151dnie'):c.format==="ends_with"?'\xC9rv\xE9nytelen string: "'.concat(c.suffix,'" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie'):c.format==="includes"?'\xC9rv\xE9nytelen string: "'.concat(c.includes,'" \xE9rt\xE9ket kell tartalmaznia'):c.format==="regex"?"\xC9rv\xE9nytelen string: ".concat(c.pattern," mint\xE1nak kell megfelelnie"):"\xC9rv\xE9nytelen ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\xC9rv\xE9nytelen sz\xE1m: ".concat(r.divisor," t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie");case"unrecognized_keys":return"Ismeretlen kulcs".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"\xC9rv\xE9nytelen kulcs ".concat(r.origin);case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return"\xC9rv\xE9nytelen \xE9rt\xE9k: ".concat(r.origin);default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function lm(){return{localeError:VR()}}o(lm,"default");f();var jR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Input tidak valid: diharapkan ".concat(r.expected,", diterima ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Input tidak valid: diharapkan ".concat($(r.values[0])):"Pilihan tidak valid: diharapkan salah satu dari ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Terlalu besar: diharapkan ".concat((s=r.origin)!=null?s:"value"," memiliki ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elemen"):"Terlalu besar: diharapkan ".concat((u=r.origin)!=null?u:"value"," menjadi ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Terlalu kecil: diharapkan ".concat(r.origin," memiliki ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Terlalu kecil: diharapkan ".concat(r.origin," menjadi ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'String tidak valid: harus dimulai dengan "'.concat(c.prefix,'"'):c.format==="ends_with"?'String tidak valid: harus berakhir dengan "'.concat(c.suffix,'"'):c.format==="includes"?'String tidak valid: harus menyertakan "'.concat(c.includes,'"'):c.format==="regex"?"String tidak valid: harus sesuai pola ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," tidak valid")}case"not_multiple_of":return"Angka tidak valid: harus kelipatan dari ".concat(r.divisor);case"unrecognized_keys":return"Kunci tidak dikenali ".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Kunci tidak valid di ".concat(r.origin);case"invalid_union":return"Input tidak valid";case"invalid_element":return"Nilai tidak valid di ".concat(r.origin);default:return"Input tidak valid"}}},"error");function fm(){return{localeError:jR()}}o(fm,"default");f();var GR=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),HR=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Rangt gildi: \xDE\xFA sl\xF3st inn ".concat(GR(i.input)," \xFEar sem \xE1 a\xF0 vera ").concat(i.expected);case"invalid_value":return i.values.length===1?"Rangt gildi: gert r\xE1\xF0 fyrir ".concat($(i.values[0])):"\xD3gilt val: m\xE1 vera eitt af eftirfarandi ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ".concat((r=i.origin)!=null?r:"gildi"," hafi ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"hluti"):"Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ".concat((a=i.origin)!=null?a:"gildi"," s\xE9 ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ".concat(i.origin," hafi ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ".concat(i.origin," s\xE9 ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "'.concat(l.prefix,'"'):l.format==="ends_with"?'\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "'.concat(l.suffix,'"'):l.format==="includes"?'\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "'.concat(l.includes,'"'):l.format==="regex"?"\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ".concat(l.pattern):"Rangt ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ".concat(i.divisor);case"unrecognized_keys":return"\xD3\xFEekkt ".concat(i.keys.length>1?"ir lyklar":"ur lykill",": ").concat(C(i.keys,", "));case"invalid_key":return"Rangur lykill \xED ".concat(i.origin);case"invalid_union":return"Rangt gildi";case"invalid_element":return"Rangt gildi \xED ".concat(i.origin);default:return"Rangt gildi"}}},"error");function dm(){return{localeError:HR()}}o(dm,"default");f();var WR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Input non valido: atteso ".concat(r.expected,", ricevuto ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Input non valido: atteso ".concat($(r.values[0])):"Opzione non valida: atteso uno tra ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Troppo grande: ".concat((s=r.origin)!=null?s:"valore"," deve avere ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementi"):"Troppo grande: ".concat((u=r.origin)!=null?u:"valore"," deve essere ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Troppo piccolo: ".concat(r.origin," deve avere ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Troppo piccolo: ".concat(r.origin," deve essere ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Stringa non valida: deve iniziare con "'.concat(c.prefix,'"'):c.format==="ends_with"?'Stringa non valida: deve terminare con "'.concat(c.suffix,'"'):c.format==="includes"?'Stringa non valida: deve includere "'.concat(c.includes,'"'):c.format==="regex"?"Stringa non valida: deve corrispondere al pattern ".concat(c.pattern):"Invalid ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Numero non valido: deve essere un multiplo di ".concat(r.divisor);case"unrecognized_keys":return"Chiav".concat(r.keys.length>1?"i":"e"," non riconosciut").concat(r.keys.length>1?"e":"a",": ").concat(C(r.keys,", "));case"invalid_key":return"Chiave non valida in ".concat(r.origin);case"invalid_union":return"Input non valido";case"invalid_element":return"Valore non valido in ".concat(r.origin);default:return"Input non valido"}}},"error");function pm(){return{localeError:WR()}}o(pm,"default");f();var ZR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u7121\u52B9\u306A\u5165\u529B: ".concat(r.expected,"\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001").concat(n(r.input),"\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F");case"invalid_value":return r.values.length===1?"\u7121\u52B9\u306A\u5165\u529B: ".concat($(r.values[0]),"\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F"):"\u7121\u52B9\u306A\u9078\u629E: ".concat(C(r.values,"\u3001"),"\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059");case"too_big":{let c=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",d=t(r.origin);return d?"\u5927\u304D\u3059\u304E\u308B\u5024: ".concat((s=r.origin)!=null?s:"\u5024","\u306F").concat(r.maximum.toString()).concat((a=d.unit)!=null?a:"\u8981\u7D20").concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"):"\u5927\u304D\u3059\u304E\u308B\u5024: ".concat((u=r.origin)!=null?u:"\u5024","\u306F").concat(r.maximum.toString()).concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059")}case"too_small":{let c=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",d=t(r.origin);return d?"\u5C0F\u3055\u3059\u304E\u308B\u5024: ".concat(r.origin,"\u306F").concat(r.minimum.toString()).concat(d.unit).concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"):"\u5C0F\u3055\u3059\u304E\u308B\u5024: ".concat(r.origin,"\u306F").concat(r.minimum.toString()).concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u7121\u52B9\u306A\u6587\u5B57\u5217: "'.concat(c.prefix,'"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059'):c.format==="ends_with"?'\u7121\u52B9\u306A\u6587\u5B57\u5217: "'.concat(c.suffix,'"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059'):c.format==="includes"?'\u7121\u52B9\u306A\u6587\u5B57\u5217: "'.concat(c.includes,'"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059'):c.format==="regex"?"\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3".concat(c.pattern,"\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"):"\u7121\u52B9\u306A".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u7121\u52B9\u306A\u6570\u5024: ".concat(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".concat(r.keys.length>1?"\u7FA4":"",": ").concat(C(r.keys,"\u3001"));case"invalid_key":return"".concat(r.origin,"\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC");case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return"".concat(r.origin,"\u5185\u306E\u7121\u52B9\u306A\u5024");default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function hm(){return{localeError:ZR()}}o(hm,"default");f();var XR=o(e=>{var i;let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";case"object":{if(Array.isArray(e))return"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return(i={string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"}[t])!=null?i:t},"parsedType"),qR=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a;switch(i.code){case"invalid_type":return"\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 ".concat(i.expected,", \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ").concat(XR(i.input));case"invalid_value":return i.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 ".concat($(i.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 ".concat(C(i.values,"|"),"-\u10D3\u10D0\u10DC");case"too_big":{let u=i.inclusive?"<=":"<",l=t(i.origin);return l?"\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ".concat((r=i.origin)!=null?r:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"," ").concat(l.verb," ").concat(u).concat(i.maximum.toString()," ").concat(l.unit):"\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ".concat((s=i.origin)!=null?s:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"," \u10D8\u10E7\u10DD\u10E1 ").concat(u).concat(i.maximum.toString())}case"too_small":{let u=i.inclusive?">=":">",l=t(i.origin);return l?"\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 ".concat(i.origin," ").concat(l.verb," ").concat(u).concat(i.minimum.toString()," ").concat(l.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 ".concat(i.origin," \u10D8\u10E7\u10DD\u10E1 ").concat(u).concat(i.minimum.toString())}case"invalid_format":{let u=i;return u.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 "'.concat(u.prefix,'"-\u10D8\u10D7'):u.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 "'.concat(u.suffix,'"-\u10D8\u10D7'):u.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 "'.concat(u.includes,'"-\u10E1'):u.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 ".concat(u.pattern):"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ".concat((a=n[u.format])!=null?a:i.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 ".concat(i.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".concat(i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8",": ").concat(C(i.keys,", "));case"invalid_key":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ".concat(i.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 ".concat(i.origin,"-\u10E8\u10D8");default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function mm(){return{localeError:qR()}}o(mm,"default");f();f();var KR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected," \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat((s=r.origin)!=null?s:"\u178F\u1798\u17D2\u179B\u17C3"," ").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u1792\u17B6\u178F\u17BB"):"\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat((u=r.origin)!=null?u:"\u178F\u1798\u17D2\u179B\u17C3"," ").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat(r.origin," ").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat(r.origin," ").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ".concat(C(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 ".concat(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 ".concat(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"}}},"error");function Ys(){return{localeError:KR()}}o(Ys,"default");function gm(){return Ys()}o(gm,"default");f();var YR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h;switch(r.code){case"invalid_type":return"\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ".concat(r.expected,", \uBC1B\uC740 \uD0C0\uC785\uC740 ").concat(n(r.input),"\uC785\uB2C8\uB2E4");case"invalid_value":return r.values.length===1?"\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ".concat($(r.values[0])," \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4"):"\uC798\uBABB\uB41C \uC635\uC158: ".concat(C(r.values,"\uB610\uB294 ")," \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4");case"too_big":{let m=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",y=m==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",v=t(r.origin),I=(s=v==null?void 0:v.unit)!=null?s:"\uC694\uC18C";return v?"".concat((a=r.origin)!=null?a:"\uAC12","\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ").concat(r.maximum.toString()).concat(I," ").concat(m).concat(y):"".concat((u=r.origin)!=null?u:"\uAC12","\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ").concat(r.maximum.toString()," ").concat(m).concat(y)}case"too_small":{let m=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",y=m==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",v=t(r.origin),I=(l=v==null?void 0:v.unit)!=null?l:"\uC694\uC18C";return v?"".concat((c=r.origin)!=null?c:"\uAC12","\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ").concat(r.minimum.toString()).concat(I," ").concat(m).concat(y):"".concat((d=r.origin)!=null?d:"\uAC12","\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ").concat(r.minimum.toString()," ").concat(m).concat(y)}case"invalid_format":{let m=r;return m.format==="starts_with"?'\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "'.concat(m.prefix,'"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4'):m.format==="ends_with"?'\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "'.concat(m.suffix,'"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4'):m.format==="includes"?'\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "'.concat(m.includes,'"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4'):m.format==="regex"?"\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ".concat(m.pattern," \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4"):"\uC798\uBABB\uB41C ".concat((h=i[m.format])!=null?h:r.format)}case"not_multiple_of":return"\uC798\uBABB\uB41C \uC22B\uC790: ".concat(r.divisor,"\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4");case"unrecognized_keys":return"\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ".concat(C(r.keys,", "));case"invalid_key":return"\uC798\uBABB\uB41C \uD0A4: ".concat(r.origin);case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return"\uC798\uBABB\uB41C \uAC12: ".concat(r.origin);default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function ym(){return{localeError:YR()}}o(ym,"default");f();var JR=o(e=>Qs(typeof e,e),"parsedType"),Qs=o((e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skai\u010Dius";case"bigint":return"sveikasis skai\u010Dius";case"string":return"eilut\u0117";case"boolean":return"login\u0117 reik\u0161m\u0117";case"undefined":case"void":return"neapibr\u0117\u017Eta reik\u0161m\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"ne\u017Einomas objektas":t===null?"nulin\u0117 reik\u0161m\u0117":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulin\u0117 reik\u0161m\u0117"}return e},"parsedTypeFromType"),Js=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function xb(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}o(xb,"getUnitTypeFromNumber");var QR=o(()=>{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(i,r,s,a){var l;let u=(l=e[i])!=null?l:null;return u===null?u:{unit:u.unit[r],verb:u.verb[a][s?"inclusive":"notInclusive"]}}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u,l,c,d,h,m,y;switch(i.code){case"invalid_type":return"Gautas tipas ".concat(JR(i.input),", o tik\u0117tasi - ").concat(Qs(i.expected));case"invalid_value":return i.values.length===1?"Privalo b\u016Bti ".concat($(i.values[0])):"Privalo b\u016Bti vienas i\u0161 ".concat(C(i.values,"|")," pasirinkim\u0173");case"too_big":{let v=Qs(i.origin),I=t(i.origin,xb(Number(i.maximum)),(r=i.inclusive)!=null?r:!1,"smaller");if(I!=null&&I.verb)return"".concat(Js((s=v!=null?v:i.origin)!=null?s:"reik\u0161m\u0117")," ").concat(I.verb," ").concat(i.maximum.toString()," ").concat((a=I.unit)!=null?a:"element\u0173");let T=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return"".concat(Js((u=v!=null?v:i.origin)!=null?u:"reik\u0161m\u0117")," turi b\u016Bti ").concat(T," ").concat(i.maximum.toString()," ").concat(I==null?void 0:I.unit)}case"too_small":{let v=Qs(i.origin),I=t(i.origin,xb(Number(i.minimum)),(l=i.inclusive)!=null?l:!1,"bigger");if(I!=null&&I.verb)return"".concat(Js((c=v!=null?v:i.origin)!=null?c:"reik\u0161m\u0117")," ").concat(I.verb," ").concat(i.minimum.toString()," ").concat((d=I.unit)!=null?d:"element\u0173");let T=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return"".concat(Js((h=v!=null?v:i.origin)!=null?h:"reik\u0161m\u0117")," turi b\u016Bti ").concat(T," ").concat(i.minimum.toString()," ").concat(I==null?void 0:I.unit)}case"invalid_format":{let v=i;return v.format==="starts_with"?'Eilut\u0117 privalo prasid\u0117ti "'.concat(v.prefix,'"'):v.format==="ends_with"?'Eilut\u0117 privalo pasibaigti "'.concat(v.suffix,'"'):v.format==="includes"?'Eilut\u0117 privalo \u012Ftraukti "'.concat(v.includes,'"'):v.format==="regex"?"Eilut\u0117 privalo atitikti ".concat(v.pattern):"Neteisingas ".concat((m=n[v.format])!=null?m:i.format)}case"not_multiple_of":return"Skai\u010Dius privalo b\u016Bti ".concat(i.divisor," kartotinis.");case"unrecognized_keys":return"Neatpa\u017Eint".concat(i.keys.length>1?"i":"as"," rakt").concat(i.keys.length>1?"ai":"as",": ").concat(C(i.keys,", "));case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let v=Qs(i.origin);return"".concat(Js((y=v!=null?v:i.origin)!=null?y:"reik\u0161m\u0117")," turi klaiding\u0105 \u012Fvest\u012F")}default:return"Klaidinga \u012Fvestis"}}},"error");function xm(){return{localeError:QR()}}o(xm,"default");f();var eC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat(r.expected,", \u043F\u0440\u0438\u043C\u0435\u043D\u043E ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Invalid input: expected ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat((s=r.origin)!=null?s:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"," \u0434\u0430 \u0438\u043C\u0430 ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"," \u0434\u0430 \u0431\u0438\u0434\u0435 ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat(r.origin," \u0434\u0430 \u0438\u043C\u0430 ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat(r.origin," \u0434\u0430 \u0431\u0438\u0434\u0435 ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"Invalid ".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"".concat(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",": ").concat(C(r.keys,", "));case"invalid_key":return"\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ".concat(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 ".concat(r.origin);default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function vm(){return{localeError:eC()}}o(vm,"default");f();var tC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Input tidak sah: dijangka ".concat(r.expected,", diterima ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Input tidak sah: dijangka ".concat($(r.values[0])):"Pilihan tidak sah: dijangka salah satu daripada ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Terlalu besar: dijangka ".concat((s=r.origin)!=null?s:"nilai"," ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elemen"):"Terlalu besar: dijangka ".concat((u=r.origin)!=null?u:"nilai"," adalah ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Terlalu kecil: dijangka ".concat(r.origin," ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Terlalu kecil: dijangka ".concat(r.origin," adalah ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'String tidak sah: mesti bermula dengan "'.concat(c.prefix,'"'):c.format==="ends_with"?'String tidak sah: mesti berakhir dengan "'.concat(c.suffix,'"'):c.format==="includes"?'String tidak sah: mesti mengandungi "'.concat(c.includes,'"'):c.format==="regex"?"String tidak sah: mesti sepadan dengan corak ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," tidak sah")}case"not_multiple_of":return"Nombor tidak sah: perlu gandaan ".concat(r.divisor);case"unrecognized_keys":return"Kunci tidak dikenali: ".concat(C(r.keys,", "));case"invalid_key":return"Kunci tidak sah dalam ".concat(r.origin);case"invalid_union":return"Input tidak sah";case"invalid_element":return"Nilai tidak sah dalam ".concat(r.origin);default:return"Input tidak sah"}}},"error");function _m(){return{localeError:tC()}}o(_m,"default");f();var nC=o(()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Ongeldige invoer: verwacht ".concat(r.expected,", ontving ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ongeldige invoer: verwacht ".concat($(r.values[0])):"Ongeldige optie: verwacht \xE9\xE9n van ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Te lang: verwacht dat ".concat((s=r.origin)!=null?s:"waarde"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementen"," bevat"):"Te lang: verwacht dat ".concat((u=r.origin)!=null?u:"waarde"," ").concat(c).concat(r.maximum.toString()," is")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Te kort: verwacht dat ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," bevat"):"Te kort: verwacht dat ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," is")}case"invalid_format":{let c=r;return c.format==="starts_with"?'Ongeldige tekst: moet met "'.concat(c.prefix,'" beginnen'):c.format==="ends_with"?'Ongeldige tekst: moet op "'.concat(c.suffix,'" eindigen'):c.format==="includes"?'Ongeldige tekst: moet "'.concat(c.includes,'" bevatten'):c.format==="regex"?"Ongeldige tekst: moet overeenkomen met patroon ".concat(c.pattern):"Ongeldig: ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Ongeldig getal: moet een veelvoud van ".concat(r.divisor," zijn");case"unrecognized_keys":return"Onbekende key".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Ongeldige key in ".concat(r.origin);case"invalid_union":return"Ongeldige invoer";case"invalid_element":return"Ongeldige waarde in ".concat(r.origin);default:return"Ongeldige invoer"}}},"error");function bm(){return{localeError:nC()}}o(bm,"default");f();var rC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Ugyldig input: forventet ".concat(r.expected,", fikk ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ugyldig verdi: forventet ".concat($(r.values[0])):"Ugyldig valg: forventet en av ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"For stor(t): forventet ".concat((s=r.origin)!=null?s:"value"," til \xE5 ha ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementer"):"For stor(t): forventet ".concat((u=r.origin)!=null?u:"value"," til \xE5 ha ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"For lite(n): forventet ".concat(r.origin," til \xE5 ha ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"For lite(n): forventet ".concat(r.origin," til \xE5 ha ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Ugyldig streng: m\xE5 starte med "'.concat(c.prefix,'"'):c.format==="ends_with"?'Ugyldig streng: m\xE5 ende med "'.concat(c.suffix,'"'):c.format==="includes"?'Ugyldig streng: m\xE5 inneholde "'.concat(c.includes,'"'):c.format==="regex"?"Ugyldig streng: m\xE5 matche m\xF8nsteret ".concat(c.pattern):"Ugyldig ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Ugyldig tall: m\xE5 v\xE6re et multiplum av ".concat(r.divisor);case"unrecognized_keys":return"".concat(r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel",": ").concat(C(r.keys,", "));case"invalid_key":return"Ugyldig n\xF8kkel i ".concat(r.origin);case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i ".concat(r.origin);default:return"Ugyldig input"}}},"error");function Sm(){return{localeError:rC()}}o(Sm,"default");f();var iC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"F\xE2sit giren: umulan ".concat(r.expected,", al\u0131nan ").concat(n(r.input));case"invalid_value":return r.values.length===1?"F\xE2sit giren: umulan ".concat($(r.values[0])):"F\xE2sit tercih: m\xFBteberler ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Fazla b\xFCy\xFCk: ".concat((s=r.origin)!=null?s:"value",", ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elements"," sahip olmal\u0131yd\u0131."):"Fazla b\xFCy\xFCk: ".concat((u=r.origin)!=null?u:"value",", ").concat(c).concat(r.maximum.toString()," olmal\u0131yd\u0131.")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Fazla k\xFC\xE7\xFCk: ".concat(r.origin,", ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," sahip olmal\u0131yd\u0131."):"Fazla k\xFC\xE7\xFCk: ".concat(r.origin,", ").concat(c).concat(r.minimum.toString()," olmal\u0131yd\u0131.")}case"invalid_format":{let c=r;return c.format==="starts_with"?'F\xE2sit metin: "'.concat(c.prefix,'" ile ba\u015Flamal\u0131.'):c.format==="ends_with"?'F\xE2sit metin: "'.concat(c.suffix,'" ile bitmeli.'):c.format==="includes"?'F\xE2sit metin: "'.concat(c.includes,'" ihtiv\xE2 etmeli.'):c.format==="regex"?"F\xE2sit metin: ".concat(c.pattern," nak\u015F\u0131na uymal\u0131."):"F\xE2sit ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"F\xE2sit say\u0131: ".concat(r.divisor," kat\u0131 olmal\u0131yd\u0131.");case"unrecognized_keys":return"Tan\u0131nmayan anahtar ".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"".concat(r.origin," i\xE7in tan\u0131nmayan anahtar var.");case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return"".concat(r.origin," i\xE7in tan\u0131nmayan k\u0131ymet var.");default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function Im(){return{localeError:iC()}}o(Im,"default");f();var oC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0627\u0631\u06D0";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ".concat(r.expected," \u0648\u0627\u06CC, \u0645\u06AB\u0631 ").concat(n(r.input)," \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 ".concat($(r.values[0])," \u0648\u0627\u06CC"):"\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ".concat(C(r.values,"|")," \u0685\u062E\u0647 \u0648\u0627\u06CC");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u0689\u06CC\u0631 \u0644\u0648\u06CC: ".concat((s=r.origin)!=null?s:"\u0627\u0631\u0632\u069A\u062A"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"," \u0648\u0644\u0631\u064A"):"\u0689\u06CC\u0631 \u0644\u0648\u06CC: ".concat((u=r.origin)!=null?u:"\u0627\u0631\u0632\u069A\u062A"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," \u0648\u064A")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," \u0648\u0644\u0631\u064A"):"\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," \u0648\u064A")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "'.concat(c.prefix,'" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A'):c.format==="ends_with"?'\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "'.concat(c.suffix,'" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A'):c.format==="includes"?'\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "'.concat(c.includes,'" \u0648\u0644\u0631\u064A'):c.format==="regex"?"\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ".concat(c.pattern," \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A"):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor," \u0645\u0636\u0631\u0628 \u0648\u064A");case"unrecognized_keys":return"\u0646\u0627\u0633\u0645 ".concat(r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689",": ").concat(C(r.keys,", "));case"invalid_key":return"\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ".concat(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 ".concat(r.origin," \u06A9\u06D0");default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function wm(){return{localeError:oC()}}o(wm,"default");f();var sC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h;switch(r.code){case"invalid_type":return"Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ".concat(r.expected,", otrzymano ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ".concat($(r.values[0])):"Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ".concat(C(r.values,"|"));case"too_big":{let m=r.inclusive?"<=":"<",y=t(r.origin);return y?"Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ".concat((s=r.origin)!=null?s:"warto\u015B\u0107"," b\u0119dzie mie\u0107 ").concat(m).concat(r.maximum.toString()," ").concat((a=y.unit)!=null?a:"element\xF3w"):"Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ".concat((u=r.origin)!=null?u:"warto\u015B\u0107"," b\u0119dzie wynosi\u0107 ").concat(m).concat(r.maximum.toString())}case"too_small":{let m=r.inclusive?">=":">",y=t(r.origin);return y?"Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ".concat((l=r.origin)!=null?l:"warto\u015B\u0107"," b\u0119dzie mie\u0107 ").concat(m).concat(r.minimum.toString()," ").concat((c=y.unit)!=null?c:"element\xF3w"):"Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ".concat((d=r.origin)!=null?d:"warto\u015B\u0107"," b\u0119dzie wynosi\u0107 ").concat(m).concat(r.minimum.toString())}case"invalid_format":{let m=r;return m.format==="starts_with"?'Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "'.concat(m.prefix,'"'):m.format==="ends_with"?'Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "'.concat(m.suffix,'"'):m.format==="includes"?'Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "'.concat(m.includes,'"'):m.format==="regex"?"Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ".concat(m.pattern):"Nieprawid\u0142ow(y/a/e) ".concat((h=i[m.format])!=null?h:r.format)}case"not_multiple_of":return"Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ".concat(r.divisor);case"unrecognized_keys":return"Nierozpoznane klucze".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Nieprawid\u0142owy klucz w ".concat(r.origin);case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return"Nieprawid\u0142owa warto\u015B\u0107 w ".concat(r.origin);default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function Mm(){return{localeError:sC()}}o(Mm,"default");f();var aC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Tipo inv\xE1lido: esperado ".concat(r.expected,", recebido ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Entrada inv\xE1lida: esperado ".concat($(r.values[0])):"Op\xE7\xE3o inv\xE1lida: esperada uma das ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Muito grande: esperado que ".concat((s=r.origin)!=null?s:"valor"," tivesse ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementos"):"Muito grande: esperado que ".concat((u=r.origin)!=null?u:"valor"," fosse ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Muito pequeno: esperado que ".concat(r.origin," tivesse ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Muito pequeno: esperado que ".concat(r.origin," fosse ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Texto inv\xE1lido: deve come\xE7ar com "'.concat(c.prefix,'"'):c.format==="ends_with"?'Texto inv\xE1lido: deve terminar com "'.concat(c.suffix,'"'):c.format==="includes"?'Texto inv\xE1lido: deve incluir "'.concat(c.includes,'"'):c.format==="regex"?"Texto inv\xE1lido: deve corresponder ao padr\xE3o ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," inv\xE1lido")}case"not_multiple_of":return"N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ".concat(r.divisor);case"unrecognized_keys":return"Chave".concat(r.keys.length>1?"s":""," desconhecida").concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Chave inv\xE1lida em ".concat(r.origin);case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return"Valor inv\xE1lido em ".concat(r.origin);default:return"Campo inv\xE1lido"}}},"error");function Em(){return{localeError:aC()}}o(Em,"default");f();function vb(e,t,n,i){let r=Math.abs(e),s=r%10,a=r%100;return a>=11&&a<=19?i:s===1?t:s>=2&&s<=4?n:i}o(vb,"getRussianPlural");var cC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u;switch(r.code){case"invalid_type":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ".concat(r.expected,", \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let l=r.inclusive?"<=":"<",c=t(r.origin);if(c){let d=Number(r.maximum),h=vb(d,c.unit.one,c.unit.few,c.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 ".concat((s=r.origin)!=null?s:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"," \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ").concat(l).concat(r.maximum.toString()," ").concat(h)}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 ".concat((a=r.origin)!=null?a:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"," \u0431\u0443\u0434\u0435\u0442 ").concat(l).concat(r.maximum.toString())}case"too_small":{let l=r.inclusive?">=":">",c=t(r.origin);if(c){let d=Number(r.minimum),h=vb(d,c.unit.one,c.unit.few,c.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 ".concat(r.origin," \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ").concat(l).concat(r.minimum.toString()," ").concat(h)}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 ".concat(r.origin," \u0431\u0443\u0434\u0435\u0442 ").concat(l).concat(r.minimum.toString())}case"invalid_format":{let l=r;return l.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 "'.concat(l.prefix,'"'):l.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 "'.concat(l.suffix,'"'):l.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 "'.concat(l.includes,'"'):l.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 ".concat(l.pattern):"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ".concat((u=i[l.format])!=null?u: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 ".concat(r.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D".concat(r.keys.length>1?"\u044B\u0435":"\u044B\u0439"," \u043A\u043B\u044E\u0447").concat(r.keys.length>1?"\u0438":"",": ").concat(C(r.keys,", "));case"invalid_key":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ".concat(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 ".concat(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"}}},"error");function Tm(){return{localeError:cC()}}o(Tm,"default");f();var uC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Neveljaven vnos: pri\u010Dakovano ".concat(r.expected,", prejeto ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Neveljaven vnos: pri\u010Dakovano ".concat($(r.values[0])):"Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Preveliko: pri\u010Dakovano, da bo ".concat((s=r.origin)!=null?s:"vrednost"," imelo ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementov"):"Preveliko: pri\u010Dakovano, da bo ".concat((u=r.origin)!=null?u:"vrednost"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Premajhno: pri\u010Dakovano, da bo ".concat(r.origin," imelo ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Premajhno: pri\u010Dakovano, da bo ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Neveljaven niz: mora se za\u010Deti z "'.concat(c.prefix,'"'):c.format==="ends_with"?'Neveljaven niz: mora se kon\u010Dati z "'.concat(c.suffix,'"'):c.format==="includes"?'Neveljaven niz: mora vsebovati "'.concat(c.includes,'"'):c.format==="regex"?"Neveljaven niz: mora ustrezati vzorcu ".concat(c.pattern):"Neveljaven ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ".concat(r.divisor);case"unrecognized_keys":return"Neprepoznan".concat(r.keys.length>1?"i klju\u010Di":" klju\u010D",": ").concat(C(r.keys,", "));case"invalid_key":return"Neveljaven klju\u010D v ".concat(r.origin);case"invalid_union":return"Neveljaven vnos";case"invalid_element":return"Neveljavna vrednost v ".concat(r.origin);default:return"Neveljaven vnos"}}},"error");function Am(){return{localeError:uC()}}o(Am,"default");f();var lC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h,m;switch(r.code){case"invalid_type":return"Ogiltig inmatning: f\xF6rv\xE4ntat ".concat(r.expected,", fick ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ogiltig inmatning: f\xF6rv\xE4ntat ".concat($(r.values[0])):"Ogiltigt val: f\xF6rv\xE4ntade en av ".concat(C(r.values,"|"));case"too_big":{let y=r.inclusive?"<=":"<",v=t(r.origin);return v?"F\xF6r stor(t): f\xF6rv\xE4ntade ".concat((s=r.origin)!=null?s:"v\xE4rdet"," att ha ").concat(y).concat(r.maximum.toString()," ").concat((a=v.unit)!=null?a:"element"):"F\xF6r stor(t): f\xF6rv\xE4ntat ".concat((u=r.origin)!=null?u:"v\xE4rdet"," att ha ").concat(y).concat(r.maximum.toString())}case"too_small":{let y=r.inclusive?">=":">",v=t(r.origin);return v?"F\xF6r lite(t): f\xF6rv\xE4ntade ".concat((l=r.origin)!=null?l:"v\xE4rdet"," att ha ").concat(y).concat(r.minimum.toString()," ").concat(v.unit):"F\xF6r lite(t): f\xF6rv\xE4ntade ".concat((c=r.origin)!=null?c:"v\xE4rdet"," att ha ").concat(y).concat(r.minimum.toString())}case"invalid_format":{let y=r;return y.format==="starts_with"?'Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "'.concat(y.prefix,'"'):y.format==="ends_with"?'Ogiltig str\xE4ng: m\xE5ste sluta med "'.concat(y.suffix,'"'):y.format==="includes"?'Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "'.concat(y.includes,'"'):y.format==="regex"?'Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "'.concat(y.pattern,'"'):"Ogiltig(t) ".concat((d=i[y.format])!=null?d:r.format)}case"not_multiple_of":return"Ogiltigt tal: m\xE5ste vara en multipel av ".concat(r.divisor);case"unrecognized_keys":return"".concat(r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel",": ").concat(C(r.keys,", "));case"invalid_key":return"Ogiltig nyckel i ".concat((h=r.origin)!=null?h:"v\xE4rdet");case"invalid_union":return"Ogiltig input";case"invalid_element":return"Ogiltigt v\xE4rde i ".concat((m=r.origin)!=null?m:"v\xE4rdet");default:return"Ogiltig input"}}},"error");function Pm(){return{localeError:lC()}}o(Pm,"default");f();var fC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected,", \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|")," \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\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 ".concat((s=r.origin)!=null?s:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"," ").concat(c).concat(r.maximum.toString()," \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\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 ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.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 ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "'.concat(c.prefix,'" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD'):c.format==="ends_with"?'\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "'.concat(c.suffix,'" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD'):c.format==="includes"?'\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "'.concat(c.includes,'" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD'):c.format==="regex"?"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ".concat(c.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 ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ".concat(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".concat(r.keys.length>1?"\u0B95\u0BB3\u0BCD":"",": ").concat(C(r.keys,", "));case"invalid_key":return"".concat(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"".concat(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"}}},"error");function Rm(){return{localeError:fC()}}o(Rm,"default");f();var dC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected," \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",d=t(r.origin);return d?"\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat((s=r.origin)!=null?s:"\u0E04\u0E48\u0E32"," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"):"\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat((u=r.origin)!=null?u:"\u0E04\u0E48\u0E32"," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",d=t(r.origin);return d?"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat(r.origin," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat(r.origin," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21'):c.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 ".concat(c.pattern):"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ".concat((l=i[c.format])!=null?l: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 ".concat(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: ".concat(C(r.keys,", "));case"invalid_key":return"\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ".concat(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 ".concat(r.origin);default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Cm(){return{localeError:dC()}}o(Cm,"default");f();var pC=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),hC=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Ge\xE7ersiz de\u011Fer: beklenen ".concat(i.expected,", al\u0131nan ").concat(pC(i.input));case"invalid_value":return i.values.length===1?"Ge\xE7ersiz de\u011Fer: beklenen ".concat($(i.values[0])):"Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"\xC7ok b\xFCy\xFCk: beklenen ".concat((r=i.origin)!=null?r:"de\u011Fer"," ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"\xF6\u011Fe"):"\xC7ok b\xFCy\xFCk: beklenen ".concat((a=i.origin)!=null?a:"de\u011Fer"," ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"\xC7ok k\xFC\xE7\xFCk: beklenen ".concat(i.origin," ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"\xC7ok k\xFC\xE7\xFCk: beklenen ".concat(i.origin," ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'Ge\xE7ersiz metin: "'.concat(l.prefix,'" ile ba\u015Flamal\u0131'):l.format==="ends_with"?'Ge\xE7ersiz metin: "'.concat(l.suffix,'" ile bitmeli'):l.format==="includes"?'Ge\xE7ersiz metin: "'.concat(l.includes,'" i\xE7ermeli'):l.format==="regex"?"Ge\xE7ersiz metin: ".concat(l.pattern," desenine uymal\u0131"):"Ge\xE7ersiz ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"Ge\xE7ersiz say\u0131: ".concat(i.divisor," ile tam b\xF6l\xFCnebilmeli");case"unrecognized_keys":return"Tan\u0131nmayan anahtar".concat(i.keys.length>1?"lar":"",": ").concat(C(i.keys,", "));case"invalid_key":return"".concat(i.origin," i\xE7inde ge\xE7ersiz anahtar");case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return"".concat(i.origin," i\xE7inde ge\xE7ersiz de\u011Fer");default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Om(){return{localeError:hC()}}o(Om,"default");f();f();var mC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected,", \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\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 ".concat((s=r.origin)!=null?s:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"," ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"," \u0431\u0443\u0434\u0435 ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ".concat(r.origin," ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ".concat(r.origin," \u0431\u0443\u0434\u0435 ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447".concat(r.keys.length>1?"\u0456":"",": ").concat(C(r.keys,", "));case"invalid_key":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ".concat(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 ".concat(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"}}},"error");function ea(){return{localeError:mC()}}o(ea,"default");function Um(){return ea()}o(Um,"default");f();var gC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ".concat(r.expected," \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ").concat(n(r.input)," \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627");case"invalid_value":return r.values.length===1?"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ".concat($(r.values[0])," \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627"):"\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ".concat(C(r.values,"|")," \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u0628\u06C1\u062A \u0628\u0691\u0627: ".concat((s=r.origin)!=null?s:"\u0648\u06CC\u0644\u06CC\u0648"," \u06A9\u06D2 ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0639\u0646\u0627\u0635\u0631"," \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2"):"\u0628\u06C1\u062A \u0628\u0691\u0627: ".concat((u=r.origin)!=null?u:"\u0648\u06CC\u0644\u06CC\u0648"," \u06A9\u0627 ").concat(c).concat(r.maximum.toString()," \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ".concat(r.origin," \u06A9\u06D2 ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2"):"\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ".concat(r.origin," \u06A9\u0627 ").concat(c).concat(r.minimum.toString()," \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "'.concat(c.prefix,'" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2'):c.format==="ends_with"?'\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "'.concat(c.suffix,'" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2'):c.format==="includes"?'\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "'.concat(c.includes,'" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2'):c.format==="regex"?"\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ".concat(c.pattern," \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2"):"\u063A\u0644\u0637 ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ".concat(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".concat(r.keys.length>1?"\u0632":"",": ").concat(C(r.keys,"\u060C "));case"invalid_key":return"".concat(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"".concat(r.origin," \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648");default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Fm(){return{localeError:gC()}}o(Fm,"default");f();var yC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ".concat(r.expected,", nh\u1EADn \u0111\u01B0\u1EE3c ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ".concat((s=r.origin)!=null?s:"gi\xE1 tr\u1ECB"," ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"ph\u1EA7n t\u1EED"):"Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ".concat((u=r.origin)!=null?u:"gi\xE1 tr\u1ECB"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ".concat(r.origin," ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "'.concat(c.prefix,'"'):c.format==="ends_with"?'Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "'.concat(c.suffix,'"'):c.format==="includes"?'Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "'.concat(c.includes,'"'):c.format==="regex"?"Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ".concat(c.pattern):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ".concat(C(r.keys,", "));case"invalid_key":return"Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ".concat(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 ".concat(r.origin);default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Nm(){return{localeError:yC()}}o(Nm,"default");f();var xC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ".concat(r.expected,"\uFF0C\u5B9E\u9645\u63A5\u6536 ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ".concat($(r.values[0])):"\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ".concat((s=r.origin)!=null?s:"\u503C"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u4E2A\u5143\u7D20"):"\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ".concat((u=r.origin)!=null?u:"\u503C"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "'.concat(c.prefix,'" \u5F00\u5934'):c.format==="ends_with"?'\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "'.concat(c.suffix,'" \u7ED3\u5C3E'):c.format==="includes"?'\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "'.concat(c.includes,'"'):c.format==="regex"?"\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ".concat(c.pattern):"\u65E0\u6548".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ".concat(r.divisor," \u7684\u500D\u6570");case"unrecognized_keys":return"\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ".concat(C(r.keys,", "));case"invalid_key":return"".concat(r.origin," \u4E2D\u7684\u952E(key)\u65E0\u6548");case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return"".concat(r.origin," \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)");default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function km(){return{localeError:xC()}}o(km,"default");f();var vC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ".concat(r.expected,"\uFF0C\u4F46\u6536\u5230 ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ".concat($(r.values[0])):"\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ".concat((s=r.origin)!=null?s:"\u503C"," \u61C9\u70BA ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u500B\u5143\u7D20"):"\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ".concat((u=r.origin)!=null?u:"\u503C"," \u61C9\u70BA ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ".concat(r.origin," \u61C9\u70BA ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ".concat(r.origin," \u61C9\u70BA ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "'.concat(c.prefix,'" \u958B\u982D'):c.format==="ends_with"?'\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "'.concat(c.suffix,'" \u7D50\u5C3E'):c.format==="includes"?'\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "'.concat(c.includes,'"'):c.format==="regex"?"\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ".concat(c.pattern):"\u7121\u6548\u7684 ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ".concat(r.divisor," \u7684\u500D\u6578");case"unrecognized_keys":return"\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C".concat(r.keys.length>1?"\u5011":"","\uFF1A").concat(C(r.keys,"\u3001"));case"invalid_key":return"".concat(r.origin," \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C");case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return"".concat(r.origin," \u4E2D\u6709\u7121\u6548\u7684\u503C");default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Dm(){return{localeError:vC()}}o(Dm,"default");f();var _C=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(r))return"akop\u1ECD";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a;switch(r.code){case"invalid_type":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ".concat(r.expected,", \xE0m\u1ECD\u0300 a r\xED ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ".concat($(r.values[0])):"\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ".concat(C(r.values,"|"));case"too_big":{let u=r.inclusive?"<=":"<",l=t(r.origin);return l?"T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ".concat((s=r.origin)!=null?s:"iye"," ").concat(l.verb," ").concat(u).concat(r.maximum," ").concat(l.unit):"T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ".concat(u).concat(r.maximum)}case"too_small":{let u=r.inclusive?">=":">",l=t(r.origin);return l?"K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ".concat(r.origin," ").concat(l.verb," ").concat(u).concat(r.minimum," ").concat(l.unit):"K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ".concat(u).concat(r.minimum)}case"invalid_format":{let u=r;return u.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 "'.concat(u.prefix,'"'):u.format==="ends_with"?'\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "'.concat(u.suffix,'"'):u.format==="includes"?'\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "'.concat(u.includes,'"'):u.format==="regex"?"\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ".concat(u.pattern):"A\u1E63\xEC\u1E63e: ".concat((a=i[u.format])!=null?a: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 ".concat(r.divisor);case"unrecognized_keys":return"B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ".concat(C(r.keys,", "));case"invalid_key":return"B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ".concat(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 ".concat(r.origin);default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Lm(){return{localeError:_C()}}o(Lm,"default");f();var $m=Symbol("ZodOutput"),zm=Symbol("ZodInput"),Bm=class Bm{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error("ID ".concat(i.id," already exists in the registry"));this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var i;let n=t._zod.parent;if(n){let r=x({},(i=this.get(n))!=null?i:{});delete r.id;let s=x(x({},r),this._map.get(t));return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};o(Bm,"$ZodRegistry");var Eo=Bm;function qc(){return new Eo}o(qc,"registry");var mr=qc();f();function Vm(e,t){return new e(x({type:"string"},B(t)))}o(Vm,"_string");function jm(e,t){return new e(x({type:"string",coerce:!0},B(t)))}o(jm,"_coercedString");function Kc(e,t){return new e(x({type:"string",format:"email",check:"string_format",abort:!1},B(t)))}o(Kc,"_email");function ta(e,t){return new e(x({type:"string",format:"guid",check:"string_format",abort:!1},B(t)))}o(ta,"_guid");function Yc(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1},B(t)))}o(Yc,"_uuid");function Jc(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},B(t)))}o(Jc,"_uuidv4");function Qc(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},B(t)))}o(Qc,"_uuidv6");function eu(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},B(t)))}o(eu,"_uuidv7");function na(e,t){return new e(x({type:"string",format:"url",check:"string_format",abort:!1},B(t)))}o(na,"_url");function tu(e,t){return new e(x({type:"string",format:"emoji",check:"string_format",abort:!1},B(t)))}o(tu,"_emoji");function nu(e,t){return new e(x({type:"string",format:"nanoid",check:"string_format",abort:!1},B(t)))}o(nu,"_nanoid");function ru(e,t){return new e(x({type:"string",format:"cuid",check:"string_format",abort:!1},B(t)))}o(ru,"_cuid");function iu(e,t){return new e(x({type:"string",format:"cuid2",check:"string_format",abort:!1},B(t)))}o(iu,"_cuid2");function ou(e,t){return new e(x({type:"string",format:"ulid",check:"string_format",abort:!1},B(t)))}o(ou,"_ulid");function su(e,t){return new e(x({type:"string",format:"xid",check:"string_format",abort:!1},B(t)))}o(su,"_xid");function au(e,t){return new e(x({type:"string",format:"ksuid",check:"string_format",abort:!1},B(t)))}o(au,"_ksuid");function cu(e,t){return new e(x({type:"string",format:"ipv4",check:"string_format",abort:!1},B(t)))}o(cu,"_ipv4");function uu(e,t){return new e(x({type:"string",format:"ipv6",check:"string_format",abort:!1},B(t)))}o(uu,"_ipv6");function lu(e,t){return new e(x({type:"string",format:"cidrv4",check:"string_format",abort:!1},B(t)))}o(lu,"_cidrv4");function fu(e,t){return new e(x({type:"string",format:"cidrv6",check:"string_format",abort:!1},B(t)))}o(fu,"_cidrv6");function du(e,t){return new e(x({type:"string",format:"base64",check:"string_format",abort:!1},B(t)))}o(du,"_base64");function pu(e,t){return new e(x({type:"string",format:"base64url",check:"string_format",abort:!1},B(t)))}o(pu,"_base64url");function hu(e,t){return new e(x({type:"string",format:"e164",check:"string_format",abort:!1},B(t)))}o(hu,"_e164");function mu(e,t){return new e(x({type:"string",format:"jwt",check:"string_format",abort:!1},B(t)))}o(mu,"_jwt");var Gm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hm(e,t){return new e(x({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},B(t)))}o(Hm,"_isoDateTime");function Wm(e,t){return new e(x({type:"string",format:"date",check:"string_format"},B(t)))}o(Wm,"_isoDate");function Zm(e,t){return new e(x({type:"string",format:"time",check:"string_format",precision:null},B(t)))}o(Zm,"_isoTime");function Xm(e,t){return new e(x({type:"string",format:"duration",check:"string_format"},B(t)))}o(Xm,"_isoDuration");function qm(e,t){return new e(x({type:"number",checks:[]},B(t)))}o(qm,"_number");function Km(e,t){return new e(x({type:"number",coerce:!0,checks:[]},B(t)))}o(Km,"_coercedNumber");function Ym(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"safeint"},B(t)))}o(Ym,"_int");function Jm(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"float32"},B(t)))}o(Jm,"_float32");function Qm(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"float64"},B(t)))}o(Qm,"_float64");function eg(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"int32"},B(t)))}o(eg,"_int32");function tg(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"uint32"},B(t)))}o(tg,"_uint32");function ng(e,t){return new e(x({type:"boolean"},B(t)))}o(ng,"_boolean");function rg(e,t){return new e(x({type:"boolean",coerce:!0},B(t)))}o(rg,"_coercedBoolean");function ig(e,t){return new e(x({type:"bigint"},B(t)))}o(ig,"_bigint");function og(e,t){return new e(x({type:"bigint",coerce:!0},B(t)))}o(og,"_coercedBigint");function sg(e,t){return new e(x({type:"bigint",check:"bigint_format",abort:!1,format:"int64"},B(t)))}o(sg,"_int64");function ag(e,t){return new e(x({type:"bigint",check:"bigint_format",abort:!1,format:"uint64"},B(t)))}o(ag,"_uint64");function cg(e,t){return new e(x({type:"symbol"},B(t)))}o(cg,"_symbol");function ug(e,t){return new e(x({type:"undefined"},B(t)))}o(ug,"_undefined");function lg(e,t){return new e(x({type:"null"},B(t)))}o(lg,"_null");function fg(e){return new e({type:"any"})}o(fg,"_any");function dg(e){return new e({type:"unknown"})}o(dg,"_unknown");function pg(e,t){return new e(x({type:"never"},B(t)))}o(pg,"_never");function hg(e,t){return new e(x({type:"void"},B(t)))}o(hg,"_void");function mg(e,t){return new e(x({type:"date"},B(t)))}o(mg,"_date");function gg(e,t){return new e(x({type:"date",coerce:!0},B(t)))}o(gg,"_coercedDate");function yg(e,t){return new e(x({type:"nan"},B(t)))}o(yg,"_nan");function Dr(e,t){return new Lc(L(x({check:"less_than"},B(t)),{value:e,inclusive:!1}))}o(Dr,"_lt");function Nn(e,t){return new Lc(L(x({check:"less_than"},B(t)),{value:e,inclusive:!0}))}o(Nn,"_lte");function Lr(e,t){return new $c(L(x({check:"greater_than"},B(t)),{value:e,inclusive:!1}))}o(Lr,"_gt");function fn(e,t){return new $c(L(x({check:"greater_than"},B(t)),{value:e,inclusive:!0}))}o(fn,"_gte");function xg(e){return Lr(0,e)}o(xg,"_positive");function vg(e){return Dr(0,e)}o(vg,"_negative");function _g(e){return Nn(0,e)}o(_g,"_nonpositive");function bg(e){return fn(0,e)}o(bg,"_nonnegative");function zi(e,t){return new bp(L(x({check:"multiple_of"},B(t)),{value:e}))}o(zi,"_multipleOf");function To(e,t){return new wp(L(x({check:"max_size"},B(t)),{maximum:e}))}o(To,"_maxSize");function Bi(e,t){return new Mp(L(x({check:"min_size"},B(t)),{minimum:e}))}o(Bi,"_minSize");function ra(e,t){return new Ep(L(x({check:"size_equals"},B(t)),{size:e}))}o(ra,"_size");function Ao(e,t){return new Tp(L(x({check:"max_length"},B(t)),{maximum:e}))}o(Ao,"_maxLength");function vi(e,t){return new Ap(L(x({check:"min_length"},B(t)),{minimum:e}))}o(vi,"_minLength");function Po(e,t){return new Pp(L(x({check:"length_equals"},B(t)),{length:e}))}o(Po,"_length");function ia(e,t){return new Rp(L(x({check:"string_format",format:"regex"},B(t)),{pattern:e}))}o(ia,"_regex");function oa(e){return new Cp(x({check:"string_format",format:"lowercase"},B(e)))}o(oa,"_lowercase");function sa(e){return new Op(x({check:"string_format",format:"uppercase"},B(e)))}o(sa,"_uppercase");function aa(e,t){return new Up(L(x({check:"string_format",format:"includes"},B(t)),{includes:e}))}o(aa,"_includes");function ca(e,t){return new Fp(L(x({check:"string_format",format:"starts_with"},B(t)),{prefix:e}))}o(ca,"_startsWith");function ua(e,t){return new Np(L(x({check:"string_format",format:"ends_with"},B(t)),{suffix:e}))}o(ua,"_endsWith");function Sg(e,t,n){return new kp(x({check:"property",property:e,schema:t},B(n)))}o(Sg,"_property");function la(e,t){return new Dp(x({check:"mime_type",mime:e},B(t)))}o(la,"_mime");function $r(e){return new Lp({check:"overwrite",tx:e})}o($r,"_overwrite");function fa(e){return $r(t=>t.normalize(e))}o(fa,"_normalize");function da(){return $r(e=>e.trim())}o(da,"_trim");function pa(){return $r(e=>e.toLowerCase())}o(pa,"_toLowerCase");function ha(){return $r(e=>e.toUpperCase())}o(ha,"_toUpperCase");function Ig(e,t,n){return new e(x({type:"array",element:t},B(n)))}o(Ig,"_array");function bC(e,t,n){return new e(x({type:"union",options:t},B(n)))}o(bC,"_union");function SC(e,t,n,i){return new e(x({type:"union",options:n,discriminator:t},B(i)))}o(SC,"_discriminatedUnion");function IC(e,t,n){return new e({type:"intersection",left:t,right:n})}o(IC,"_intersection");function wC(e,t,n,i){let r=n instanceof se,s=r?i:n,a=r?n:null;return new e(x({type:"tuple",items:t,rest:a},B(s)))}o(wC,"_tuple");function MC(e,t,n,i){return new e(x({type:"record",keyType:t,valueType:n},B(i)))}o(MC,"_record");function EC(e,t,n,i){return new e(x({type:"map",keyType:t,valueType:n},B(i)))}o(EC,"_map");function TC(e,t,n){return new e(x({type:"set",valueType:t},B(n)))}o(TC,"_set");function AC(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e(x({type:"enum",entries:i},B(n)))}o(AC,"_enum");function PC(e,t,n){return new e(x({type:"enum",entries:t},B(n)))}o(PC,"_nativeEnum");function RC(e,t,n){return new e(x({type:"literal",values:Array.isArray(t)?t:[t]},B(n)))}o(RC,"_literal");function wg(e,t){return new e(x({type:"file"},B(t)))}o(wg,"_file");function CC(e,t){return new e({type:"transform",transform:t})}o(CC,"_transform");function OC(e,t){return new e({type:"optional",innerType:t})}o(OC,"_optional");function UC(e,t){return new e({type:"nullable",innerType:t})}o(UC,"_nullable");function FC(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():kd(n)}})}o(FC,"_default");function NC(e,t,n){return new e(x({type:"nonoptional",innerType:t},B(n)))}o(NC,"_nonoptional");function kC(e,t){return new e({type:"success",innerType:t})}o(kC,"_success");function DC(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}o(DC,"_catch");function LC(e,t,n){return new e({type:"pipe",in:t,out:n})}o(LC,"_pipe");function $C(e,t){return new e({type:"readonly",innerType:t})}o($C,"_readonly");function zC(e,t,n){return new e(x({type:"template_literal",parts:t},B(n)))}o(zC,"_templateLiteral");function BC(e,t){return new e({type:"lazy",getter:t})}o(BC,"_lazy");function VC(e,t){return new e({type:"promise",innerType:t})}o(VC,"_promise");function Mg(e,t,n){var s;let i=B(n);return(s=i.abort)!=null||(i.abort=!0),new e(x({type:"custom",check:"custom",fn:t},i))}o(Mg,"_custom");function Eg(e,t,n){return new e(x({type:"custom",check:"custom",fn:t},B(n)))}o(Eg,"_refine");function Tg(e){let t=_b(n=>(n.addIssue=i=>{var r,s,a,u;if(typeof i=="string")n.issues.push(_o(i,n.value,t._zod.def));else{let l=i;l.fatal&&(l.continue=!1),(r=l.code)!=null||(l.code="custom"),(s=l.input)!=null||(l.input=n.value),(a=l.inst)!=null||(l.inst=t),(u=l.continue)!=null||(l.continue=!t._zod.def.abort),n.issues.push(_o(l))}},e(n.value,n)));return t}o(Tg,"_superRefine");function _b(e,t){let n=new rt(x({check:"custom"},B(t)));return n._zod.check=e,n}o(_b,"_check");function Ag(e,t){var y,v,I,T,U;let n=B(t),i=(y=n.truthy)!=null?y:["true","1","yes","on","y","enabled"],r=(v=n.falsy)!=null?v:["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(D=>typeof D=="string"?D.toLowerCase():D),r=r.map(D=>typeof D=="string"?D.toLowerCase():D));let s=new Set(i),a=new Set(r),u=(I=e.Codec)!=null?I:qs,l=(T=e.Boolean)!=null?T:Xs,c=(U=e.String)!=null?U:Li,d=new c({type:"string",error:n.error}),h=new l({type:"boolean",error:n.error}),m=new u({type:"pipe",in:d,out:h,transform:o((D,w)=>{let S=D;return n.case!=="sensitive"&&(S=S.toLowerCase()),s.has(S)?!0:a.has(S)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...a],input:w.value,inst:m,continue:!1}),{})},"transform"),reverseTransform:o((D,w)=>D===!0?i[0]||"true":r[0]||"false","reverseTransform"),error:n.error});return m}o(Ag,"_stringbool");function Ro(e,t,n,i={}){let r=B(i),s=x(L(x({},B(i)),{check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:u=>n.test(u)}),r);return n instanceof RegExp&&(s.pattern=n),new e(s)}o(Ro,"_stringFormat");f();var Rg=class Rg{constructor(t){var n,i,r,s,a;this.counter=0,this.metadataRegistry=(n=t==null?void 0:t.metadata)!=null?n:mr,this.target=(i=t==null?void 0:t.target)!=null?i:"draft-2020-12",this.unrepresentable=(r=t==null?void 0:t.unrepresentable)!=null?r:"throw",this.override=(s=t==null?void 0:t.override)!=null?s:()=>{},this.io=(a=t==null?void 0:t.io)!=null?a:"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var h,m,y,v,I;var i;let r=t._zod.def,s={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;let u={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,u);let l=(m=(h=t._zod).toJSONSchema)==null?void 0:m.call(h);if(l)u.schema=l;else{let T=L(x({},n),{schemaPath:[...n.schemaPath,t],path:n.path}),U=t._zod.parent;if(U)u.ref=U,this.process(U,T),this.seen.get(U).isParent=!0;else{let D=u.schema;switch(r.type){case"string":{let w=D;w.type="string";let{minimum:S,maximum:A,format:j,patterns:N,contentEncoding:H}=t._zod.bag;if(typeof S=="number"&&(w.minLength=S),typeof A=="number"&&(w.maxLength=A),j&&(w.format=(y=s[j])!=null?y:j,w.format===""&&delete w.format),H&&(w.contentEncoding=H),N&&N.size>0){let G=[...N];G.length===1?w.pattern=G[0].source:G.length>1&&(u.schema.allOf=[...G.map(ce=>L(x({},this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{}),{pattern:ce.source}))])}break}case"number":{let w=D,{minimum:S,maximum:A,format:j,multipleOf:N,exclusiveMaximum:H,exclusiveMinimum:G}=t._zod.bag;typeof j=="string"&&j.includes("int")?w.type="integer":w.type="number",typeof G=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(w.minimum=G,w.exclusiveMinimum=!0):w.exclusiveMinimum=G),typeof S=="number"&&(w.minimum=S,typeof G=="number"&&this.target!=="draft-4"&&(G>=S?delete w.minimum:delete w.exclusiveMinimum)),typeof H=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(w.maximum=H,w.exclusiveMaximum=!0):w.exclusiveMaximum=H),typeof A=="number"&&(w.maximum=A,typeof H=="number"&&this.target!=="draft-4"&&(H<=A?delete w.maximum:delete w.exclusiveMaximum)),typeof N=="number"&&(w.multipleOf=N);break}case"boolean":{let w=D;w.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(D.type="string",D.nullable=!0,D.enum=[null]):D.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{D.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let w=D,{minimum:S,maximum:A}=t._zod.bag;typeof S=="number"&&(w.minItems=S),typeof A=="number"&&(w.maxItems=A),w.type="array",w.items=this.process(r.element,L(x({},T),{path:[...T.path,"items"]}));break}case"object":{let w=D;w.type="object",w.properties={};let S=r.shape;for(let N in S)w.properties[N]=this.process(S[N],L(x({},T),{path:[...T.path,"properties",N]}));let A=new Set(Object.keys(S)),j=new Set([...A].filter(N=>{let H=r.shape[N]._zod;return this.io==="input"?H.optin===void 0:H.optout===void 0}));j.size>0&&(w.required=Array.from(j)),((v=r.catchall)==null?void 0:v._zod.def.type)==="never"?w.additionalProperties=!1:r.catchall?r.catchall&&(w.additionalProperties=this.process(r.catchall,L(x({},T),{path:[...T.path,"additionalProperties"]}))):this.io==="output"&&(w.additionalProperties=!1);break}case"union":{let w=D,S=r.options.map((A,j)=>this.process(A,L(x({},T),{path:[...T.path,"anyOf",j]})));w.anyOf=S;break}case"intersection":{let w=D,S=this.process(r.left,L(x({},T),{path:[...T.path,"allOf",0]})),A=this.process(r.right,L(x({},T),{path:[...T.path,"allOf",1]})),j=o(H=>"allOf"in H&&Object.keys(H).length===1,"isSimpleIntersection"),N=[...j(S)?S.allOf:[S],...j(A)?A.allOf:[A]];w.allOf=N;break}case"tuple":{let w=D;w.type="array";let S=this.target==="draft-2020-12"?"prefixItems":"items",A=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",j=r.items.map((ce,ue)=>this.process(ce,L(x({},T),{path:[...T.path,S,ue]}))),N=r.rest?this.process(r.rest,L(x({},T),{path:[...T.path,A,...this.target==="openapi-3.0"?[r.items.length]:[]]})):null;this.target==="draft-2020-12"?(w.prefixItems=j,N&&(w.items=N)):this.target==="openapi-3.0"?(w.items={anyOf:j},N&&w.items.anyOf.push(N),w.minItems=j.length,N||(w.maxItems=j.length)):(w.items=j,N&&(w.additionalItems=N));let{minimum:H,maximum:G}=t._zod.bag;typeof H=="number"&&(w.minItems=H),typeof G=="number"&&(w.maxItems=G);break}case"record":{let w=D;w.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(w.propertyNames=this.process(r.keyType,L(x({},T),{path:[...T.path,"propertyNames"]}))),w.additionalProperties=this.process(r.valueType,L(x({},T),{path:[...T.path,"additionalProperties"]}));break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let w=D,S=Ds(r.entries);S.every(A=>typeof A=="number")&&(w.type="number"),S.every(A=>typeof A=="string")&&(w.type="string"),w.enum=S;break}case"literal":{let w=D,S=[];for(let A of r.values)if(A===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof A=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");S.push(Number(A))}else S.push(A);if(S.length!==0)if(S.length===1){let A=S[0];w.type=A===null?"null":typeof A,this.target==="draft-4"||this.target==="openapi-3.0"?w.enum=[A]:w.const=A}else S.every(A=>typeof A=="number")&&(w.type="number"),S.every(A=>typeof A=="string")&&(w.type="string"),S.every(A=>typeof A=="boolean")&&(w.type="string"),S.every(A=>A===null)&&(w.type="null"),w.enum=S;break}case"file":{let w=D,S={type:"string",format:"binary",contentEncoding:"binary"},{minimum:A,maximum:j,mime:N}=t._zod.bag;A!==void 0&&(S.minLength=A),j!==void 0&&(S.maxLength=j),N?N.length===1?(S.contentMediaType=N[0],Object.assign(w,S)):w.anyOf=N.map(H=>L(x({},S),{contentMediaType:H})):Object.assign(w,S);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let w=this.process(r.innerType,T);this.target==="openapi-3.0"?(u.ref=r.innerType,D.nullable=!0):D.anyOf=[w,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,T),u.ref=r.innerType;break}case"success":{let w=D;w.type="boolean";break}case"default":{this.process(r.innerType,T),u.ref=r.innerType,D.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,T),u.ref=r.innerType,this.io==="input"&&(D._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,T),u.ref=r.innerType;let w;try{w=r.catchValue(void 0)}catch(S){throw new Error("Dynamic catch values are not supported in JSON Schema")}D.default=w;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let w=D,S=t._zod.pattern;if(!S)throw new Error("Pattern not found in template literal");w.type="string",w.pattern=S.source;break}case"pipe":{let w=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(w,T),u.ref=w;break}case"readonly":{this.process(r.innerType,T),u.ref=r.innerType,D.readOnly=!0;break}case"promise":{this.process(r.innerType,T),u.ref=r.innerType;break}case"optional":{this.process(r.innerType,T),u.ref=r.innerType;break}case"lazy":{let w=t._zod.innerType;this.process(w,T),u.ref=w;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}default:}}}let c=this.metadataRegistry.get(t);return c&&Object.assign(u.schema,c),this.io==="input"&&wt(t)&&(delete u.schema.examples,delete u.schema.default),this.io==="input"&&u.schema._prefault&&((I=(i=u.schema).default)!=null||(i.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(t).schema}emit(t,n){var d,h,m,y,v,I,T,U,D,w;let i={cycles:(d=n==null?void 0:n.cycles)!=null?d:"ref",reused:(h=n==null?void 0:n.reused)!=null?h:"inline",external:(m=n==null?void 0:n.external)!=null?m:void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=o(S=>{var G,ce,ue,he,Ge;let A=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let Oe=(G=i.external.registry.get(S[0]))==null?void 0:G.id,Ue=(ce=i.external.uri)!=null?ce:ne=>ne;if(Oe)return{ref:Ue(Oe)};let V=(he=(ue=S[1].defId)!=null?ue:S[1].schema.id)!=null?he:"schema".concat(this.counter++);return S[1].defId=V,{defId:V,ref:"".concat(Ue("__shared"),"#/").concat(A,"/").concat(V)}}if(S[1]===r)return{ref:"#"};let N="".concat("#","/").concat(A,"/"),H=(Ge=S[1].schema.id)!=null?Ge:"__schema".concat(this.counter++);return{defId:H,ref:N+H}},"makeURI"),a=o(S=>{if(S[1].schema.$ref)return;let A=S[1],{ref:j,defId:N}=s(S);A.def=x({},A.schema),N&&(A.defId=N);let H=A.schema;for(let G in H)delete H[G];H.$ref=j},"extractToDef");if(i.cycles==="throw")for(let S of this.seen.entries()){let A=S[1];if(A.cycle)throw new Error("Cycle detected: "+"#/".concat((y=A.cycle)==null?void 0:y.join("/"),"/<root>")+'\n\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.')}for(let S of this.seen.entries()){let A=S[1];if(t===S[0]){a(S);continue}if(i.external){let N=(v=i.external.registry.get(S[0]))==null?void 0:v.id;if(t!==S[0]&&N){a(S);continue}}if((I=this.metadataRegistry.get(S[0]))==null?void 0:I.id){a(S);continue}if(A.cycle){a(S);continue}if(A.count>1&&i.reused==="ref"){a(S);continue}}let u=o((S,A)=>{var ce,ue,he;let j=this.seen.get(S),N=(ce=j.def)!=null?ce:j.schema,H=x({},N);if(j.ref===null)return;let G=j.ref;if(j.ref=null,G){u(G,A);let Ge=this.seen.get(G).schema;Ge.$ref&&(A.target==="draft-7"||A.target==="draft-4"||A.target==="openapi-3.0")?(N.allOf=(ue=N.allOf)!=null?ue:[],N.allOf.push(Ge)):(Object.assign(N,Ge),Object.assign(N,H))}j.isParent||this.override({zodSchema:S,jsonSchema:N,path:(he=j.path)!=null?he:[]})},"flattenRef");for(let S of[...this.seen.entries()].reverse())u(S[0],{target:this.target});let l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?l.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(T=i.external)!=null&&T.uri){let S=(U=i.external.registry.get(t))==null?void 0:U.id;if(!S)throw new Error("Schema is missing an `id` property");l.$id=i.external.uri(S)}Object.assign(l,r.def);let c=(w=(D=i.external)==null?void 0:D.defs)!=null?w:{};for(let S of this.seen.entries()){let A=S[1];A.def&&A.defId&&(c[A.defId]=A.def)}i.external||Object.keys(c).length>0&&(this.target==="draft-2020-12"?l.$defs=c:l.definitions=c);try{return JSON.parse(JSON.stringify(l))}catch(S){throw new Error("Error converting schema to JSON.")}}};o(Rg,"JSONSchemaGenerator");var ma=Rg;function Pg(e,t){if(e instanceof Eo){let i=new ma(t),r={};for(let u of e._idmap.entries()){let[l,c]=u;i.process(c)}let s={},a={registry:e,uri:t==null?void 0:t.uri,defs:r};for(let u of e._idmap.entries()){let[l,c]=u;s[l]=i.emit(c,L(x({},t),{external:a}))}if(Object.keys(r).length>0){let u=i.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[u]:r}}return{schemas:s}}let n=new ma(t);return n.process(e),n.emit(e,t)}o(Pg,"toJSONSchema");function wt(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return wt(r.element,n);case"object":{for(let s in r.shape)if(wt(r.shape[s],n))return!0;return!1}case"union":{for(let s of r.options)if(wt(s,n))return!0;return!1}case"intersection":return wt(r.left,n)||wt(r.right,n);case"tuple":{for(let s of r.items)if(wt(s,n))return!0;return!!(r.rest&&wt(r.rest,n))}case"record":return wt(r.keyType,n)||wt(r.valueType,n);case"map":return wt(r.keyType,n)||wt(r.valueType,n);case"set":return wt(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return wt(r.innerType,n);case"lazy":return wt(r.getter(),n);case"default":return wt(r.innerType,n);case"prefault":return wt(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return wt(r.in,n)||wt(r.out,n);case"success":return!1;case"catch":return!1;case"function":return!1;default:}throw new Error("Unknown schema type: ".concat(r.type))}o(wt,"isTransforming");var Cg={};f();f();f();var ga={};un(ga,{ZodISODate:()=>yu,ZodISODateTime:()=>gu,ZodISODuration:()=>vu,ZodISOTime:()=>xu,date:()=>Ug,datetime:()=>Og,duration:()=>Ng,time:()=>Fg});f();var gu=M("ZodISODateTime",(e,t)=>{Qp.init(e,t),Je.init(e,t)});function Og(e){return Hm(gu,e)}o(Og,"datetime");var yu=M("ZodISODate",(e,t)=>{eh.init(e,t),Je.init(e,t)});function Ug(e){return Wm(yu,e)}o(Ug,"date");var xu=M("ZodISOTime",(e,t)=>{th.init(e,t),Je.init(e,t)});function Fg(e){return Zm(xu,e)}o(Fg,"time");var vu=M("ZodISODuration",(e,t)=>{nh.init(e,t),Je.init(e,t)});function Ng(e){return Xm(vu,e)}o(Ng,"duration");f();f();var Sb=o((e,t)=>{Vs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:o(n=>Gs(e,n),"value")},flatten:{value:o(n=>js(e,n),"value")},addIssue:{value:o(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xo,2)},"value")},addIssues:{value:o(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xo,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),GC=M("ZodError",Sb),dn=M("ZodError",Sb,{Parent:Error});var kg=bo(dn),Dg=So(dn),Lg=Io(dn),$g=wo(dn),zg=Pc(dn),Bg=Rc(dn),Vg=Cc(dn),jg=Oc(dn),Gg=Uc(dn),Hg=Fc(dn),Wg=Nc(dn),Zg=kc(dn);var de=M("ZodType",(e,t)=>(se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>{var i;return e.clone(z.mergeDefs(t,{checks:[...(i=t.checks)!=null?i:[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}))},e.clone=(n,i)=>nn(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>kg(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Lg(e,n,i),e.parseAsync=async(n,i)=>Dg(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>$g(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>zg(e,n,i),e.decode=(n,i)=>Bg(e,n,i),e.encodeAsync=async(n,i)=>Vg(e,n,i),e.decodeAsync=async(n,i)=>jg(e,n,i),e.safeEncode=(n,i)=>Gg(e,n,i),e.safeDecode=(n,i)=>Hg(e,n,i),e.safeEncodeAsync=async(n,i)=>Wg(e,n,i),e.safeDecodeAsync=async(n,i)=>Zg(e,n,i),e.refine=(n,i)=>e.check(c0(n,i)),e.superRefine=n=>e.check(u0(n)),e.overwrite=n=>e.check($r(n)),e.optional=()=>bu(e),e.nullable=()=>Su(e),e.nullish=()=>bu(Su(e)),e.nonoptional=n=>Kb(e,n),e.array=()=>Eu(e),e.or=n=>gy([e,n]),e.and=n=>kb(e,n),e.transform=n=>Iu(e,vy(n)),e.default=n=>Zb(e,n),e.prefault=n=>qb(e,n),e.catch=n=>Qb(e,n),e.pipe=n=>Iu(e,n),e.readonly=()=>n0(e),e.describe=n=>{let i=e.clone();return mr.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=mr.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return mr.get(e);let i=e.clone();return mr.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Kg=M("_ZodString",(e,t)=>{var i,r,s;Li.init(e,t),de.init(e,t);let n=e._zod.bag;e.format=(i=n.format)!=null?i:null,e.minLength=(r=n.minimum)!=null?r:null,e.maxLength=(s=n.maximum)!=null?s:null,e.regex=(...a)=>e.check(ia(...a)),e.includes=(...a)=>e.check(aa(...a)),e.startsWith=(...a)=>e.check(ca(...a)),e.endsWith=(...a)=>e.check(ua(...a)),e.min=(...a)=>e.check(vi(...a)),e.max=(...a)=>e.check(Ao(...a)),e.length=(...a)=>e.check(Po(...a)),e.nonempty=(...a)=>e.check(vi(1,...a)),e.lowercase=a=>e.check(oa(a)),e.uppercase=a=>e.check(sa(a)),e.trim=()=>e.check(da()),e.normalize=(...a)=>e.check(fa(...a)),e.toLowerCase=()=>e.check(pa()),e.toUpperCase=()=>e.check(ha())}),xa=M("ZodString",(e,t)=>{Li.init(e,t),Kg.init(e,t),e.email=n=>e.check(Kc(Yg,n)),e.url=n=>e.check(na(wu,n)),e.jwt=n=>e.check(mu(dy,n)),e.emoji=n=>e.check(tu(Jg,n)),e.guid=n=>e.check(ta(_u,n)),e.uuid=n=>e.check(Yc(zr,n)),e.uuidv4=n=>e.check(Jc(zr,n)),e.uuidv6=n=>e.check(Qc(zr,n)),e.uuidv7=n=>e.check(eu(zr,n)),e.nanoid=n=>e.check(nu(Qg,n)),e.guid=n=>e.check(ta(_u,n)),e.cuid=n=>e.check(ru(ey,n)),e.cuid2=n=>e.check(iu(ty,n)),e.ulid=n=>e.check(ou(ny,n)),e.base64=n=>e.check(du(uy,n)),e.base64url=n=>e.check(pu(ly,n)),e.xid=n=>e.check(su(ry,n)),e.ksuid=n=>e.check(au(iy,n)),e.ipv4=n=>e.check(cu(oy,n)),e.ipv6=n=>e.check(uu(sy,n)),e.cidrv4=n=>e.check(lu(ay,n)),e.cidrv6=n=>e.check(fu(cy,n)),e.e164=n=>e.check(hu(fy,n)),e.datetime=n=>e.check(Og(n)),e.date=n=>e.check(Ug(n)),e.time=n=>e.check(Fg(n)),e.duration=n=>e.check(Ng(n))});function Xg(e){return Vm(xa,e)}o(Xg,"string");var Je=M("ZodStringFormat",(e,t)=>{qe.init(e,t),Kg.init(e,t)}),Yg=M("ZodEmail",(e,t)=>{Gp.init(e,t),Je.init(e,t)});function WC(e){return Kc(Yg,e)}o(WC,"email");var _u=M("ZodGUID",(e,t)=>{Vp.init(e,t),Je.init(e,t)});function ZC(e){return ta(_u,e)}o(ZC,"guid");var zr=M("ZodUUID",(e,t)=>{jp.init(e,t),Je.init(e,t)});function XC(e){return Yc(zr,e)}o(XC,"uuid");function qC(e){return Jc(zr,e)}o(qC,"uuidv4");function KC(e){return Qc(zr,e)}o(KC,"uuidv6");function YC(e){return eu(zr,e)}o(YC,"uuidv7");var wu=M("ZodURL",(e,t)=>{Hp.init(e,t),Je.init(e,t)});function JC(e){return na(wu,e)}o(JC,"url");function QC(e){return na(wu,x({protocol:/^https?$/,hostname:bn.domain},z.normalizeParams(e)))}o(QC,"httpUrl");var Jg=M("ZodEmoji",(e,t)=>{Wp.init(e,t),Je.init(e,t)});function eO(e){return tu(Jg,e)}o(eO,"emoji");var Qg=M("ZodNanoID",(e,t)=>{Zp.init(e,t),Je.init(e,t)});function tO(e){return nu(Qg,e)}o(tO,"nanoid");var ey=M("ZodCUID",(e,t)=>{Xp.init(e,t),Je.init(e,t)});function nO(e){return ru(ey,e)}o(nO,"cuid");var ty=M("ZodCUID2",(e,t)=>{qp.init(e,t),Je.init(e,t)});function rO(e){return iu(ty,e)}o(rO,"cuid2");var ny=M("ZodULID",(e,t)=>{Kp.init(e,t),Je.init(e,t)});function iO(e){return ou(ny,e)}o(iO,"ulid");var ry=M("ZodXID",(e,t)=>{Yp.init(e,t),Je.init(e,t)});function oO(e){return su(ry,e)}o(oO,"xid");var iy=M("ZodKSUID",(e,t)=>{Jp.init(e,t),Je.init(e,t)});function sO(e){return au(iy,e)}o(sO,"ksuid");var oy=M("ZodIPv4",(e,t)=>{rh.init(e,t),Je.init(e,t)});function aO(e){return cu(oy,e)}o(aO,"ipv4");var sy=M("ZodIPv6",(e,t)=>{ih.init(e,t),Je.init(e,t)});function cO(e){return uu(sy,e)}o(cO,"ipv6");var ay=M("ZodCIDRv4",(e,t)=>{oh.init(e,t),Je.init(e,t)});function uO(e){return lu(ay,e)}o(uO,"cidrv4");var cy=M("ZodCIDRv6",(e,t)=>{sh.init(e,t),Je.init(e,t)});function lO(e){return fu(cy,e)}o(lO,"cidrv6");var uy=M("ZodBase64",(e,t)=>{ch.init(e,t),Je.init(e,t)});function fO(e){return du(uy,e)}o(fO,"base64");var ly=M("ZodBase64URL",(e,t)=>{uh.init(e,t),Je.init(e,t)});function dO(e){return pu(ly,e)}o(dO,"base64url");var fy=M("ZodE164",(e,t)=>{lh.init(e,t),Je.init(e,t)});function pO(e){return hu(fy,e)}o(pO,"e164");var dy=M("ZodJWT",(e,t)=>{fh.init(e,t),Je.init(e,t)});function hO(e){return mu(dy,e)}o(hO,"jwt");var va=M("ZodCustomStringFormat",(e,t)=>{dh.init(e,t),Je.init(e,t)});function mO(e,t,n={}){return Ro(va,e,t,n)}o(mO,"stringFormat");function gO(e){return Ro(va,"hostname",bn.hostname,e)}o(gO,"hostname");function yO(e){return Ro(va,"hex",bn.hex,e)}o(yO,"hex");function xO(e,t){var s;let n=(s=t==null?void 0:t.enc)!=null?s:"hex",i="".concat(e,"_").concat(n),r=bn[i];if(!r)throw new Error("Unrecognized hash format: ".concat(i));return Ro(va,i,r,t)}o(xO,"hash");var _a=M("ZodNumber",(e,t)=>{var i,r,s,a,u,l,c,d,h;Hc.init(e,t),de.init(e,t),e.gt=(m,y)=>e.check(Lr(m,y)),e.gte=(m,y)=>e.check(fn(m,y)),e.min=(m,y)=>e.check(fn(m,y)),e.lt=(m,y)=>e.check(Dr(m,y)),e.lte=(m,y)=>e.check(Nn(m,y)),e.max=(m,y)=>e.check(Nn(m,y)),e.int=m=>e.check(qg(m)),e.safe=m=>e.check(qg(m)),e.positive=m=>e.check(Lr(0,m)),e.nonnegative=m=>e.check(fn(0,m)),e.negative=m=>e.check(Dr(0,m)),e.nonpositive=m=>e.check(Nn(0,m)),e.multipleOf=(m,y)=>e.check(zi(m,y)),e.step=(m,y)=>e.check(zi(m,y)),e.finite=()=>e;let n=e._zod.bag;e.minValue=(s=Math.max((i=n.minimum)!=null?i:Number.NEGATIVE_INFINITY,(r=n.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,e.maxValue=(l=Math.min((a=n.maximum)!=null?a:Number.POSITIVE_INFINITY,(u=n.exclusiveMaximum)!=null?u:Number.POSITIVE_INFINITY))!=null?l:null,e.isInt=((c=n.format)!=null?c:"").includes("int")||Number.isSafeInteger((d=n.multipleOf)!=null?d:.5),e.isFinite=!0,e.format=(h=n.format)!=null?h:null});function Ib(e){return qm(_a,e)}o(Ib,"number");var Oo=M("ZodNumberFormat",(e,t)=>{ph.init(e,t),_a.init(e,t)});function qg(e){return Ym(Oo,e)}o(qg,"int");function vO(e){return Jm(Oo,e)}o(vO,"float32");function _O(e){return Qm(Oo,e)}o(_O,"float64");function bO(e){return eg(Oo,e)}o(bO,"int32");function SO(e){return tg(Oo,e)}o(SO,"uint32");var ba=M("ZodBoolean",(e,t)=>{Xs.init(e,t),de.init(e,t)});function wb(e){return ng(ba,e)}o(wb,"boolean");var Sa=M("ZodBigInt",(e,t)=>{var i,r,s;Wc.init(e,t),de.init(e,t),e.gte=(a,u)=>e.check(fn(a,u)),e.min=(a,u)=>e.check(fn(a,u)),e.gt=(a,u)=>e.check(Lr(a,u)),e.gte=(a,u)=>e.check(fn(a,u)),e.min=(a,u)=>e.check(fn(a,u)),e.lt=(a,u)=>e.check(Dr(a,u)),e.lte=(a,u)=>e.check(Nn(a,u)),e.max=(a,u)=>e.check(Nn(a,u)),e.positive=a=>e.check(Lr(BigInt(0),a)),e.negative=a=>e.check(Dr(BigInt(0),a)),e.nonpositive=a=>e.check(Nn(BigInt(0),a)),e.nonnegative=a=>e.check(fn(BigInt(0),a)),e.multipleOf=(a,u)=>e.check(zi(a,u));let n=e._zod.bag;e.minValue=(i=n.minimum)!=null?i:null,e.maxValue=(r=n.maximum)!=null?r:null,e.format=(s=n.format)!=null?s:null});function IO(e){return ig(Sa,e)}o(IO,"bigint");var py=M("ZodBigIntFormat",(e,t)=>{hh.init(e,t),Sa.init(e,t)});function wO(e){return sg(py,e)}o(wO,"int64");function MO(e){return ag(py,e)}o(MO,"uint64");var Mb=M("ZodSymbol",(e,t)=>{mh.init(e,t),de.init(e,t)});function EO(e){return cg(Mb,e)}o(EO,"symbol");var Eb=M("ZodUndefined",(e,t)=>{gh.init(e,t),de.init(e,t)});function TO(e){return ug(Eb,e)}o(TO,"_undefined");var Tb=M("ZodNull",(e,t)=>{yh.init(e,t),de.init(e,t)});function Ab(e){return lg(Tb,e)}o(Ab,"_null");var Pb=M("ZodAny",(e,t)=>{xh.init(e,t),de.init(e,t)});function AO(){return fg(Pb)}o(AO,"any");var Rb=M("ZodUnknown",(e,t)=>{vh.init(e,t),de.init(e,t)});function Co(){return dg(Rb)}o(Co,"unknown");var Cb=M("ZodNever",(e,t)=>{_h.init(e,t),de.init(e,t)});function hy(e){return pg(Cb,e)}o(hy,"never");var Ob=M("ZodVoid",(e,t)=>{bh.init(e,t),de.init(e,t)});function PO(e){return hg(Ob,e)}o(PO,"_void");var Mu=M("ZodDate",(e,t)=>{Sh.init(e,t),de.init(e,t),e.min=(i,r)=>e.check(fn(i,r)),e.max=(i,r)=>e.check(Nn(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function RO(e){return mg(Mu,e)}o(RO,"date");var Ub=M("ZodArray",(e,t)=>{Ih.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(vi(n,i)),e.nonempty=n=>e.check(vi(1,n)),e.max=(n,i)=>e.check(Ao(n,i)),e.length=(n,i)=>e.check(Po(n,i)),e.unwrap=()=>e.element});function Eu(e,t){return Ig(Ub,e,t)}o(Eu,"array");function CO(e){let t=e._zod.def.shape;return xy(Object.keys(t))}o(CO,"keyof");var Tu=M("ZodObject",(e,t)=>{wh.init(e,t),de.init(e,t),z.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>xy(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone(L(x({},e._zod.def),{catchall:n})),e.passthrough=()=>e.clone(L(x({},e._zod.def),{catchall:Co()})),e.loose=()=>e.clone(L(x({},e._zod.def),{catchall:Co()})),e.strict=()=>e.clone(L(x({},e._zod.def),{catchall:hy()})),e.strip=()=>e.clone(L(x({},e._zod.def),{catchall:void 0})),e.extend=n=>z.extend(e,n),e.safeExtend=n=>z.safeExtend(e,n),e.merge=n=>z.merge(e,n),e.pick=n=>z.pick(e,n),e.omit=n=>z.omit(e,n),e.partial=(...n)=>z.partial(_y,e,n[0]),e.required=(...n)=>z.required(by,e,n[0])});function OO(e,t){let n=x({type:"object",shape:e!=null?e:{}},z.normalizeParams(t));return new Tu(n)}o(OO,"object");function UO(e,t){return new Tu(x({type:"object",shape:e,catchall:hy()},z.normalizeParams(t)))}o(UO,"strictObject");function FO(e,t){return new Tu(x({type:"object",shape:e,catchall:Co()},z.normalizeParams(t)))}o(FO,"looseObject");var my=M("ZodUnion",(e,t)=>{Zc.init(e,t),de.init(e,t),e.options=t.options});function gy(e,t){return new my(x({type:"union",options:e},z.normalizeParams(t)))}o(gy,"union");var Fb=M("ZodDiscriminatedUnion",(e,t)=>{my.init(e,t),Mh.init(e,t)});function NO(e,t,n){return new Fb(x({type:"union",options:t,discriminator:e},z.normalizeParams(n)))}o(NO,"discriminatedUnion");var Nb=M("ZodIntersection",(e,t)=>{Eh.init(e,t),de.init(e,t)});function kb(e,t){return new Nb({type:"intersection",left:e,right:t})}o(kb,"intersection");var Db=M("ZodTuple",(e,t)=>{Xc.init(e,t),de.init(e,t),e.rest=n=>e.clone(L(x({},e._zod.def),{rest:n}))});function Lb(e,t,n){let i=t instanceof se,r=i?n:t,s=i?t:null;return new Db(x({type:"tuple",items:e,rest:s},z.normalizeParams(r)))}o(Lb,"tuple");var yy=M("ZodRecord",(e,t)=>{Th.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function $b(e,t,n){return new yy(x({type:"record",keyType:e,valueType:t},z.normalizeParams(n)))}o($b,"record");function kO(e,t,n){let i=nn(e);return i._zod.values=void 0,new yy(x({type:"record",keyType:i,valueType:t},z.normalizeParams(n)))}o(kO,"partialRecord");var zb=M("ZodMap",(e,t)=>{Ah.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function DO(e,t,n){return new zb(x({type:"map",keyType:e,valueType:t},z.normalizeParams(n)))}o(DO,"map");var Bb=M("ZodSet",(e,t)=>{Ph.init(e,t),de.init(e,t),e.min=(...n)=>e.check(Bi(...n)),e.nonempty=n=>e.check(Bi(1,n)),e.max=(...n)=>e.check(To(...n)),e.size=(...n)=>e.check(ra(...n))});function LO(e,t){return new Bb(x({type:"set",valueType:e},z.normalizeParams(t)))}o(LO,"set");var ya=M("ZodEnum",(e,t)=>{Rh.init(e,t),de.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let s={};for(let a of i)if(n.has(a))s[a]=t.entries[a];else throw new Error("Key ".concat(a," not found in enum"));return new ya(L(x(L(x({},t),{checks:[]}),z.normalizeParams(r)),{entries:s}))},e.exclude=(i,r)=>{let s=x({},t.entries);for(let a of i)if(n.has(a))delete s[a];else throw new Error("Key ".concat(a," not found in enum"));return new ya(L(x(L(x({},t),{checks:[]}),z.normalizeParams(r)),{entries:s}))}});function xy(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ya(x({type:"enum",entries:n},z.normalizeParams(t)))}o(xy,"_enum");function $O(e,t){return new ya(x({type:"enum",entries:e},z.normalizeParams(t)))}o($O,"nativeEnum");var Vb=M("ZodLiteral",(e,t)=>{Ch.init(e,t),de.init(e,t),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 zO(e,t){return new Vb(x({type:"literal",values:Array.isArray(e)?e:[e]},z.normalizeParams(t)))}o(zO,"literal");var jb=M("ZodFile",(e,t)=>{Oh.init(e,t),de.init(e,t),e.min=(n,i)=>e.check(Bi(n,i)),e.max=(n,i)=>e.check(To(n,i)),e.mime=(n,i)=>e.check(la(Array.isArray(n)?n:[n],i))});function BO(e){return wg(jb,e)}o(BO,"file");var Gb=M("ZodTransform",(e,t)=>{Uh.init(e,t),de.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pi(e.constructor.name);n.addIssue=s=>{var a,u,l;if(typeof s=="string")n.issues.push(z.issue(s,n.value,t));else{let c=s;c.fatal&&(c.continue=!1),(a=c.code)!=null||(c.code="custom"),(u=c.input)!=null||(c.input=n.value),(l=c.inst)!=null||(c.inst=e),n.issues.push(z.issue(c))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(s=>(n.value=s,n)):(n.value=r,n)}});function vy(e){return new Gb({type:"transform",transform:e})}o(vy,"transform");var _y=M("ZodOptional",(e,t)=>{Fh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bu(e){return new _y({type:"optional",innerType:e})}o(bu,"optional");var Hb=M("ZodNullable",(e,t)=>{Nh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Su(e){return new Hb({type:"nullable",innerType:e})}o(Su,"nullable");function VO(e){return bu(Su(e))}o(VO,"nullish");var Wb=M("ZodDefault",(e,t)=>{kh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Zb(e,t){return new Wb({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}o(Zb,"_default");var Xb=M("ZodPrefault",(e,t)=>{Dh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function qb(e,t){return new Xb({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}o(qb,"prefault");var by=M("ZodNonOptional",(e,t)=>{Lh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Kb(e,t){return new by(x({type:"nonoptional",innerType:e},z.normalizeParams(t)))}o(Kb,"nonoptional");var Yb=M("ZodSuccess",(e,t)=>{$h.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function jO(e){return new Yb({type:"success",innerType:e})}o(jO,"success");var Jb=M("ZodCatch",(e,t)=>{zh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qb(e,t){return new Jb({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}o(Qb,"_catch");var e0=M("ZodNaN",(e,t)=>{Bh.init(e,t),de.init(e,t)});function GO(e){return yg(e0,e)}o(GO,"nan");var Sy=M("ZodPipe",(e,t)=>{Vh.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function Iu(e,t){return new Sy({type:"pipe",in:e,out:t})}o(Iu,"pipe");var Iy=M("ZodCodec",(e,t)=>{Sy.init(e,t),qs.init(e,t)});function HO(e,t,n){return new Iy({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}o(HO,"codec");var t0=M("ZodReadonly",(e,t)=>{jh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function n0(e){return new t0({type:"readonly",innerType:e})}o(n0,"readonly");var r0=M("ZodTemplateLiteral",(e,t)=>{Gh.init(e,t),de.init(e,t)});function WO(e,t){return new r0(x({type:"template_literal",parts:e},z.normalizeParams(t)))}o(WO,"templateLiteral");var i0=M("ZodLazy",(e,t)=>{Zh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.getter()});function o0(e){return new i0({type:"lazy",getter:e})}o(o0,"lazy");var s0=M("ZodPromise",(e,t)=>{Wh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ZO(e){return new s0({type:"promise",innerType:e})}o(ZO,"promise");var a0=M("ZodFunction",(e,t)=>{Hh.init(e,t),de.init(e,t)});function XO(e){var t,n;return new a0({type:"function",input:Array.isArray(e==null?void 0:e.input)?Lb(e==null?void 0:e.input):(t=e==null?void 0:e.input)!=null?t:Eu(Co()),output:(n=e==null?void 0:e.output)!=null?n:Co()})}o(XO,"_function");var Au=M("ZodCustom",(e,t)=>{Xh.init(e,t),de.init(e,t)});function qO(e){let t=new rt({check:"custom"});return t._zod.check=e,t}o(qO,"check");function KO(e,t){return Mg(Au,e!=null?e:()=>!0,t)}o(KO,"custom");function c0(e,t={}){return Eg(Au,e,t)}o(c0,"refine");function u0(e){return Tg(e)}o(u0,"superRefine");function YO(e,t={error:"Input not instance of ".concat(e.name)}){let n=new Au(x({type:"custom",check:"custom",fn:o(i=>i instanceof e,"fn"),abort:!0},z.normalizeParams(t)));return n._zod.bag.Class=e,n}o(YO,"_instanceof");var JO=o((...e)=>Ag({Codec:Iy,Boolean:ba,String:xa},...e),"stringbool");function QO(e){let t=o0(()=>gy([Xg(e),Ib(),wb(),Ab(),Eu(t),$b(Xg(),t)]));return t}o(QO,"json");function eU(e,t){return Iu(vy(e),t)}o(eU,"preprocess");f();var tU={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 nU(e){xt({customError:e})}o(nU,"setErrorMap");function rU(){return xt().customError}o(rU,"getErrorMap");var wy;wy||(wy={});var Pu={};un(Pu,{bigint:()=>aU,boolean:()=>sU,date:()=>cU,number:()=>oU,string:()=>iU});f();function iU(e){return jm(xa,e)}o(iU,"string");function oU(e){return Km(_a,e)}o(oU,"number");function sU(e){return rg(ba,e)}o(sU,"boolean");function aU(e){return og(Sa,e)}o(aU,"bigint");function cU(e){return gg(Mu,e)}o(cU,"date");xt(Ks());f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();var be={};un(be,{HasPropertyKey:()=>uU,IsArray:()=>Wt,IsAsyncIterator:()=>My,IsBigInt:()=>Ia,IsBoolean:()=>_i,IsDate:()=>Vi,IsFunction:()=>Ey,IsIterator:()=>Ty,IsNull:()=>Ay,IsNumber:()=>nr,IsObject:()=>He,IsRegExp:()=>wa,IsString:()=>Qe,IsSymbol:()=>Py,IsUint8Array:()=>Br,IsUndefined:()=>ct});f();function uU(e,t){return t in e}o(uU,"HasPropertyKey");function My(e){return He(e)&&!Wt(e)&&!Br(e)&&Symbol.asyncIterator in e}o(My,"IsAsyncIterator");function Wt(e){return Array.isArray(e)}o(Wt,"IsArray");function Ia(e){return typeof e=="bigint"}o(Ia,"IsBigInt");function _i(e){return typeof e=="boolean"}o(_i,"IsBoolean");function Vi(e){return e instanceof globalThis.Date}o(Vi,"IsDate");function Ey(e){return typeof e=="function"}o(Ey,"IsFunction");function Ty(e){return He(e)&&!Wt(e)&&!Br(e)&&Symbol.iterator in e}o(Ty,"IsIterator");function Ay(e){return e===null}o(Ay,"IsNull");function nr(e){return typeof e=="number"}o(nr,"IsNumber");function He(e){return typeof e=="object"&&e!==null}o(He,"IsObject");function wa(e){return e instanceof globalThis.RegExp}o(wa,"IsRegExp");function Qe(e){return typeof e=="string"}o(Qe,"IsString");function Py(e){return typeof e=="symbol"}o(Py,"IsSymbol");function Br(e){return e instanceof globalThis.Uint8Array}o(Br,"IsUint8Array");function ct(e){return e===void 0}o(ct,"IsUndefined");function lU(e){return e.map(t=>Ru(t))}o(lU,"ArrayType");function fU(e){return new Date(e.getTime())}o(fU,"DateType");function dU(e){return new Uint8Array(e)}o(dU,"Uint8ArrayType");function pU(e){return new RegExp(e.source,e.flags)}o(pU,"RegExpType");function hU(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Ru(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Ru(e[n]);return t}o(hU,"ObjectType");function Ru(e){return Wt(e)?lU(e):Vi(e)?fU(e):Br(e)?dU(e):wa(e)?pU(e):He(e)?hU(e):e}o(Ru,"Visit");function it(e){return Ru(e)}o(it,"Clone");function l0(e){return e.map(t=>Ma(t))}o(l0,"CloneRest");function Ma(e,t){return t===void 0?it(e):it(x(x({},t),e))}o(Ma,"CloneType");f();f();f();function Cu(e){return fe(e)&&Symbol.asyncIterator in e}o(Cu,"IsAsyncIterator");function Ou(e){return fe(e)&&Symbol.iterator in e}o(Ou,"IsIterator");function Ry(e){return fe(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}o(Ry,"IsStandardObject");function Uu(e){return e instanceof Promise}o(Uu,"IsPromise");function rn(e){return e instanceof Date&&Number.isFinite(e.getTime())}o(rn,"IsDate");function f0(e){return e instanceof globalThis.Map}o(f0,"IsMap");function d0(e){return e instanceof globalThis.Set}o(d0,"IsSet");function kn(e){return ArrayBuffer.isView(e)}o(kn,"IsTypedArray");function Uo(e){return e instanceof globalThis.Uint8Array}o(Uo,"IsUint8Array");function ie(e,t){return t in e}o(ie,"HasPropertyKey");function fe(e){return e!==null&&typeof e=="object"}o(fe,"IsObject");function ae(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}o(ae,"IsArray");function ut(e){return e===void 0}o(ut,"IsUndefined");function Vr(e){return e===null}o(Vr,"IsNull");function yr(e){return typeof e=="boolean"}o(yr,"IsBoolean");function ee(e){return typeof e=="number"}o(ee,"IsNumber");function Fu(e){return Number.isInteger(e)}o(Fu,"IsInteger");function Ut(e){return typeof e=="bigint"}o(Ut,"IsBigInt");function Se(e){return typeof e=="string"}o(Se,"IsString");function bi(e){return typeof e=="function"}o(bi,"IsFunction");function jr(e){return typeof e=="symbol"}o(jr,"IsSymbol");function Ft(e){return Ut(e)||yr(e)||Vr(e)||ee(e)||Se(e)||jr(e)||ut(e)}o(Ft,"IsValueType");var Le;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(a,u){return e.ExactOptionalPropertyTypes?u in a:a[u]!==void 0}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function n(a){let u=fe(a);return e.AllowArrayObject?u:u&&!ae(a)}o(n,"IsObjectLike"),e.IsObjectLike=n;function i(a){return n(a)&&!(a instanceof Date)&&!(a instanceof Uint8Array)}o(i,"IsRecordLike"),e.IsRecordLike=i;function r(a){return e.AllowNaN?ee(a):Number.isFinite(a)}o(r,"IsNumberLike"),e.IsNumberLike=r;function s(a){let u=ut(a);return e.AllowNullVoid?u||a===null:u}o(s,"IsVoidLike"),e.IsVoidLike=s})(Le||(Le={}));f();function mU(e){return globalThis.Object.freeze(e).map(t=>Ea(t))}o(mU,"ImmutableArray");function gU(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Ea(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Ea(e[n]);return globalThis.Object.freeze(t)}o(gU,"ImmutableObject");function Ea(e){return Wt(e)?mU(e):Vi(e)?e:Br(e)?e:wa(e)?e:He(e)?gU(e):e}o(Ea,"Immutable");function F(e,t){let n=t!==void 0?x(x({},t),e):e;switch(Le.InstanceMode){case"freeze":return Ea(n);case"clone":return it(n);default:return n}}o(F,"CreateType");f();var Cy=class Cy extends Error{constructor(t){super(t)}};o(Cy,"TypeBoxError");var re=Cy;f();f();f();var ot=Symbol.for("TypeBox.Transform"),Gr=Symbol.for("TypeBox.Readonly"),on=Symbol.for("TypeBox.Optional"),Dn=Symbol.for("TypeBox.Hint"),P=Symbol.for("TypeBox.Kind");function p0(e){return He(e)&&e[Gr]==="Readonly"}o(p0,"IsReadonly");function xr(e){return He(e)&&e[on]==="Optional"}o(xr,"IsOptional");function Oy(e){return Ee(e,"Any")}o(Oy,"IsAny");function Hr(e){return Ee(e,"Array")}o(Hr,"IsArray");function Ta(e){return Ee(e,"AsyncIterator")}o(Ta,"IsAsyncIterator");function Uy(e){return Ee(e,"BigInt")}o(Uy,"IsBigInt");function Fy(e){return Ee(e,"Boolean")}o(Fy,"IsBoolean");function Aa(e){return Ee(e,"Constructor")}o(Aa,"IsConstructor");function yU(e){return Ee(e,"Date")}o(yU,"IsDate");function Pa(e){return Ee(e,"Function")}o(Pa,"IsFunction");function ji(e){return Ee(e,"Integer")}o(ji,"IsInteger");function vt(e){return Ee(e,"Intersect")}o(vt,"IsIntersect");function Ra(e){return Ee(e,"Iterator")}o(Ra,"IsIterator");function Ee(e,t){return He(e)&&P in e&&e[P]===t}o(Ee,"IsKindOf");function Wr(e){return Ee(e,"Literal")}o(Wr,"IsLiteral");function Sn(e){return Ee(e,"MappedKey")}o(Sn,"IsMappedKey");function st(e){return Ee(e,"MappedResult")}o(st,"IsMappedResult");function Si(e){return Ee(e,"Never")}o(Si,"IsNever");function xU(e){return Ee(e,"Not")}o(xU,"IsNot");function vU(e){return Ee(e,"Null")}o(vU,"IsNull");function Gi(e){return Ee(e,"Number")}o(Gi,"IsNumber");function Mt(e){return Ee(e,"Object")}o(Mt,"IsObject");function Hi(e){return Ee(e,"Promise")}o(Hi,"IsPromise");function Ny(e){return Ee(e,"Record")}o(Ny,"IsRecord");function ky(e){return Ee(e,"Ref")}o(ky,"IsRef");function Dy(e){return Ee(e,"RegExp")}o(Dy,"IsRegExp");function Ca(e){return Ee(e,"String")}o(Ca,"IsString");function _U(e){return Ee(e,"Symbol")}o(_U,"IsSymbol");function In(e){return Ee(e,"TemplateLiteral")}o(In,"IsTemplateLiteral");function bU(e){return Ee(e,"This")}o(bU,"IsThis");function Fo(e){return He(e)&&ot in e}o(Fo,"IsTransform");function rr(e){return Ee(e,"Tuple")}o(rr,"IsTuple");function SU(e){return Ee(e,"Undefined")}o(SU,"IsUndefined");function Ce(e){return Ee(e,"Union")}o(Ce,"IsUnion");function IU(e){return Ee(e,"Uint8Array")}o(IU,"IsUint8Array");function wU(e){return Ee(e,"Unknown")}o(wU,"IsUnknown");function MU(e){return Ee(e,"Unsafe")}o(MU,"IsUnsafe");function EU(e){return Ee(e,"Void")}o(EU,"IsVoid");function Ii(e){return He(e)&&P in e&&Qe(e[P])}o(Ii,"IsKind");function ir(e){return Oy(e)||Hr(e)||Fy(e)||Uy(e)||Ta(e)||Aa(e)||yU(e)||Pa(e)||ji(e)||vt(e)||Ra(e)||Wr(e)||Sn(e)||st(e)||Si(e)||xU(e)||vU(e)||Gi(e)||Mt(e)||Hi(e)||Ny(e)||ky(e)||Dy(e)||Ca(e)||_U(e)||In(e)||bU(e)||rr(e)||SU(e)||Ce(e)||IU(e)||wU(e)||MU(e)||EU(e)||Ii(e)}o(ir,"IsSchema");var _={};un(_,{IsAny:()=>y0,IsArray:()=>x0,IsAsyncIterator:()=>v0,IsBigInt:()=>_0,IsBoolean:()=>b0,IsConstructor:()=>S0,IsDate:()=>I0,IsFunction:()=>w0,IsInteger:()=>M0,IsIntersect:()=>E0,IsIterator:()=>T0,IsKind:()=>Y0,IsKindOf:()=>we,IsLiteral:()=>Ua,IsLiteralBoolean:()=>OU,IsLiteralNumber:()=>P0,IsLiteralString:()=>A0,IsLiteralValue:()=>R0,IsMappedKey:()=>C0,IsMappedResult:()=>O0,IsNever:()=>U0,IsNot:()=>F0,IsNull:()=>N0,IsNumber:()=>k0,IsObject:()=>D0,IsOptional:()=>CU,IsPromise:()=>L0,IsProperties:()=>By,IsReadonly:()=>RU,IsRecord:()=>$0,IsRecursive:()=>UU,IsRef:()=>z0,IsRegExp:()=>B0,IsSchema:()=>Ie,IsString:()=>V0,IsSymbol:()=>j0,IsTemplateLiteral:()=>G0,IsThis:()=>H0,IsTransform:()=>et,IsTuple:()=>W0,IsUint8Array:()=>Z0,IsUndefined:()=>No,IsUnion:()=>Vy,IsUnionLiteral:()=>FU,IsUnknown:()=>X0,IsUnsafe:()=>q0,IsVoid:()=>K0,TypeGuardUnknownTypeError:()=>Ly});f();var jy=class jy extends re{};o(jy,"TypeGuardUnknownTypeError");var Ly=jy,TU=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function h0(e){try{return new RegExp(e),!0}catch(t){return!1}}o(h0,"IsPattern");function $y(e){if(!Qe(e))return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}o($y,"IsControlCharacterFree");function m0(e){return zy(e)||Ie(e)}o(m0,"IsAdditionalProperties");function Oa(e){return ct(e)||Ia(e)}o(Oa,"IsOptionalBigInt");function Ke(e){return ct(e)||nr(e)}o(Ke,"IsOptionalNumber");function zy(e){return ct(e)||_i(e)}o(zy,"IsOptionalBoolean");function ze(e){return ct(e)||Qe(e)}o(ze,"IsOptionalString");function AU(e){return ct(e)||Qe(e)&&$y(e)&&h0(e)}o(AU,"IsOptionalPattern");function PU(e){return ct(e)||Qe(e)&&$y(e)}o(PU,"IsOptionalFormat");function g0(e){return ct(e)||Ie(e)}o(g0,"IsOptionalSchema");function RU(e){return He(e)&&e[Gr]==="Readonly"}o(RU,"IsReadonly");function CU(e){return He(e)&&e[on]==="Optional"}o(CU,"IsOptional");function y0(e){return we(e,"Any")&&ze(e.$id)}o(y0,"IsAny");function x0(e){return we(e,"Array")&&e.type==="array"&&ze(e.$id)&&Ie(e.items)&&Ke(e.minItems)&&Ke(e.maxItems)&&zy(e.uniqueItems)&&g0(e.contains)&&Ke(e.minContains)&&Ke(e.maxContains)}o(x0,"IsArray");function v0(e){return we(e,"AsyncIterator")&&e.type==="AsyncIterator"&&ze(e.$id)&&Ie(e.items)}o(v0,"IsAsyncIterator");function _0(e){return we(e,"BigInt")&&e.type==="bigint"&&ze(e.$id)&&Oa(e.exclusiveMaximum)&&Oa(e.exclusiveMinimum)&&Oa(e.maximum)&&Oa(e.minimum)&&Oa(e.multipleOf)}o(_0,"IsBigInt");function b0(e){return we(e,"Boolean")&&e.type==="boolean"&&ze(e.$id)}o(b0,"IsBoolean");function S0(e){return we(e,"Constructor")&&e.type==="Constructor"&&ze(e.$id)&&Wt(e.parameters)&&e.parameters.every(t=>Ie(t))&&Ie(e.returns)}o(S0,"IsConstructor");function I0(e){return we(e,"Date")&&e.type==="Date"&&ze(e.$id)&&Ke(e.exclusiveMaximumTimestamp)&&Ke(e.exclusiveMinimumTimestamp)&&Ke(e.maximumTimestamp)&&Ke(e.minimumTimestamp)&&Ke(e.multipleOfTimestamp)}o(I0,"IsDate");function w0(e){return we(e,"Function")&&e.type==="Function"&&ze(e.$id)&&Wt(e.parameters)&&e.parameters.every(t=>Ie(t))&&Ie(e.returns)}o(w0,"IsFunction");function M0(e){return we(e,"Integer")&&e.type==="integer"&&ze(e.$id)&&Ke(e.exclusiveMaximum)&&Ke(e.exclusiveMinimum)&&Ke(e.maximum)&&Ke(e.minimum)&&Ke(e.multipleOf)}o(M0,"IsInteger");function By(e){return He(e)&&Object.entries(e).every(([t,n])=>$y(t)&&Ie(n))}o(By,"IsProperties");function E0(e){return we(e,"Intersect")&&!(Qe(e.type)&&e.type!=="object")&&Wt(e.allOf)&&e.allOf.every(t=>Ie(t)&&!et(t))&&ze(e.type)&&(zy(e.unevaluatedProperties)||g0(e.unevaluatedProperties))&&ze(e.$id)}o(E0,"IsIntersect");function T0(e){return we(e,"Iterator")&&e.type==="Iterator"&&ze(e.$id)&&Ie(e.items)}o(T0,"IsIterator");function we(e,t){return He(e)&&P in e&&e[P]===t}o(we,"IsKindOf");function A0(e){return Ua(e)&&Qe(e.const)}o(A0,"IsLiteralString");function P0(e){return Ua(e)&&nr(e.const)}o(P0,"IsLiteralNumber");function OU(e){return Ua(e)&&_i(e.const)}o(OU,"IsLiteralBoolean");function Ua(e){return we(e,"Literal")&&ze(e.$id)&&R0(e.const)}o(Ua,"IsLiteral");function R0(e){return _i(e)||nr(e)||Qe(e)}o(R0,"IsLiteralValue");function C0(e){return we(e,"MappedKey")&&Wt(e.keys)&&e.keys.every(t=>nr(t)||Qe(t))}o(C0,"IsMappedKey");function O0(e){return we(e,"MappedResult")&&By(e.properties)}o(O0,"IsMappedResult");function U0(e){return we(e,"Never")&&He(e.not)&&Object.getOwnPropertyNames(e.not).length===0}o(U0,"IsNever");function F0(e){return we(e,"Not")&&Ie(e.not)}o(F0,"IsNot");function N0(e){return we(e,"Null")&&e.type==="null"&&ze(e.$id)}o(N0,"IsNull");function k0(e){return we(e,"Number")&&e.type==="number"&&ze(e.$id)&&Ke(e.exclusiveMaximum)&&Ke(e.exclusiveMinimum)&&Ke(e.maximum)&&Ke(e.minimum)&&Ke(e.multipleOf)}o(k0,"IsNumber");function D0(e){return we(e,"Object")&&e.type==="object"&&ze(e.$id)&&By(e.properties)&&m0(e.additionalProperties)&&Ke(e.minProperties)&&Ke(e.maxProperties)}o(D0,"IsObject");function L0(e){return we(e,"Promise")&&e.type==="Promise"&&ze(e.$id)&&Ie(e.item)}o(L0,"IsPromise");function $0(e){return we(e,"Record")&&e.type==="object"&&ze(e.$id)&&m0(e.additionalProperties)&&He(e.patternProperties)&&(t=>{let n=Object.getOwnPropertyNames(t.patternProperties);return n.length===1&&h0(n[0])&&He(t.patternProperties)&&Ie(t.patternProperties[n[0]])})(e)}o($0,"IsRecord");function UU(e){return He(e)&&Dn in e&&e[Dn]==="Recursive"}o(UU,"IsRecursive");function z0(e){return we(e,"Ref")&&ze(e.$id)&&Qe(e.$ref)}o(z0,"IsRef");function B0(e){return we(e,"RegExp")&&ze(e.$id)&&Qe(e.source)&&Qe(e.flags)&&Ke(e.maxLength)&&Ke(e.minLength)}o(B0,"IsRegExp");function V0(e){return we(e,"String")&&e.type==="string"&&ze(e.$id)&&Ke(e.minLength)&&Ke(e.maxLength)&&AU(e.pattern)&&PU(e.format)}o(V0,"IsString");function j0(e){return we(e,"Symbol")&&e.type==="symbol"&&ze(e.$id)}o(j0,"IsSymbol");function G0(e){return we(e,"TemplateLiteral")&&e.type==="string"&&Qe(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}o(G0,"IsTemplateLiteral");function H0(e){return we(e,"This")&&ze(e.$id)&&Qe(e.$ref)}o(H0,"IsThis");function et(e){return He(e)&&ot in e}o(et,"IsTransform");function W0(e){return we(e,"Tuple")&&e.type==="array"&&ze(e.$id)&&nr(e.minItems)&&nr(e.maxItems)&&e.minItems===e.maxItems&&(ct(e.items)&&ct(e.additionalItems)&&e.minItems===0||Wt(e.items)&&e.items.every(t=>Ie(t)))}o(W0,"IsTuple");function No(e){return we(e,"Undefined")&&e.type==="undefined"&&ze(e.$id)}o(No,"IsUndefined");function FU(e){return Vy(e)&&e.anyOf.every(t=>A0(t)||P0(t))}o(FU,"IsUnionLiteral");function Vy(e){return we(e,"Union")&&ze(e.$id)&&He(e)&&Wt(e.anyOf)&&e.anyOf.every(t=>Ie(t))}o(Vy,"IsUnion");function Z0(e){return we(e,"Uint8Array")&&e.type==="Uint8Array"&&ze(e.$id)&&Ke(e.minByteLength)&&Ke(e.maxByteLength)}o(Z0,"IsUint8Array");function X0(e){return we(e,"Unknown")&&ze(e.$id)}o(X0,"IsUnknown");function q0(e){return we(e,"Unsafe")}o(q0,"IsUnsafe");function K0(e){return we(e,"Void")&&e.type==="void"&&ze(e.$id)}o(K0,"IsVoid");function Y0(e){return He(e)&&P in e&&Qe(e[P])&&!TU.includes(e[P])}o(Y0,"IsKind");function Ie(e){return He(e)&&(y0(e)||x0(e)||b0(e)||_0(e)||v0(e)||S0(e)||I0(e)||w0(e)||M0(e)||E0(e)||T0(e)||Ua(e)||C0(e)||O0(e)||U0(e)||F0(e)||N0(e)||k0(e)||D0(e)||L0(e)||$0(e)||z0(e)||B0(e)||V0(e)||j0(e)||G0(e)||H0(e)||W0(e)||No(e)||Vy(e)||Z0(e)||X0(e)||q0(e)||K0(e)||Y0(e))}o(Ie,"IsSchema");f();var Gy="(true|false)",Fa="(0|[1-9][0-9]*)",Hy="(.*)",NU="(?!.*)",Y9="^".concat(Gy,"$"),Zr="^".concat(Fa,"$"),Xr="^".concat(Hy,"$"),J0="^".concat(NU,"$");f();var sn={};un(sn,{Clear:()=>DU,Delete:()=>LU,Entries:()=>kU,Get:()=>BU,Has:()=>$U,Set:()=>zU});f();var ko=new Map;function kU(){return new Map(ko)}o(kU,"Entries");function DU(){return ko.clear()}o(DU,"Clear");function LU(e){return ko.delete(e)}o(LU,"Delete");function $U(e){return ko.has(e)}o($U,"Has");function zU(e,t){ko.set(e,t)}o(zU,"Set");function BU(e){return ko.get(e)}o(BU,"Get");var Et={};un(Et,{Clear:()=>jU,Delete:()=>GU,Entries:()=>VU,Get:()=>ZU,Has:()=>HU,Set:()=>WU});f();var Do=new Map;function VU(){return new Map(Do)}o(VU,"Entries");function jU(){return Do.clear()}o(jU,"Clear");function GU(e){return Do.delete(e)}o(GU,"Delete");function HU(e){return Do.has(e)}o(HU,"Has");function WU(e,t){Do.set(e,t)}o(WU,"Set");function ZU(e){return Do.get(e)}o(ZU,"Get");f();function Q0(e,t){return e.includes(t)}o(Q0,"SetIncludes");function eS(e){return[...new Set(e)]}o(eS,"SetDistinct");function XU(e,t){return e.filter(n=>t.includes(n))}o(XU,"SetIntersect");function qU(e,t){return e.reduce((n,i)=>XU(n,i),t)}o(qU,"SetIntersectManyResolve");function tS(e){return e.length===1?e[0]:e.length>1?qU(e.slice(1),e[0]):[]}o(tS,"SetIntersectMany");function nS(e){let t=[];for(let n of e)t.push(...n);return t}o(nS,"SetUnionMany");f();function wi(e){return F({[P]:"Any"},e)}o(wi,"Any");f();function Nu(e,t){return F({[P]:"Array",type:"array",items:e},t)}o(Nu,"Array");f();function ku(e,t){return F({[P]:"AsyncIterator",type:"AsyncIterator",items:e},t)}o(ku,"AsyncIterator");f();f();f();function KU(e,t){let r=e,{[t]:n}=r;return Es(r,[lc(t)])}o(KU,"DiscardKey");function ht(e,t){return t.reduce((n,i)=>KU(n,i),e)}o(ht,"Discard");f();function Be(e){return F({[P]:"Never",not:{}},e)}o(Be,"Never");f();f();function Te(e){return F({[P]:"MappedResult",properties:e})}o(Te,"MappedResult");f();f();function Du(e,t,n){return F({[P]:"Constructor",type:"Constructor",parameters:e,returns:t},n)}o(Du,"Constructor");f();function Mi(e,t,n){return F({[P]:"Function",type:"Function",parameters:e,returns:t},n)}o(Mi,"Function");f();f();f();f();function Na(e,t){return F({[P]:"Union",anyOf:e},t)}o(Na,"UnionCreate");function YU(e){return e.some(t=>xr(t))}o(YU,"IsUnionOptional");function rS(e){return e.map(t=>xr(t)?JU(t):t)}o(rS,"RemoveOptionalFromRest");function JU(e){return ht(e,[on])}o(JU,"RemoveOptionalFromType");function QU(e,t){return YU(e)?pn(Na(rS(e),t)):Na(rS(e),t)}o(QU,"ResolveUnion");function vr(e,t){return e.length===0?Be(t):e.length===1?F(e[0],t):QU(e,t)}o(vr,"UnionEvaluated");f();function Ve(e,t){return e.length===0?Be(t):e.length===1?F(e[0],t):Na(e,t)}o(Ve,"Union");f();f();f();var Zy=class Zy extends re{};o(Zy,"TemplateLiteralParserError");var Lu=Zy;function eF(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}o(eF,"Unescape");function Wy(e,t,n){return e[t]===n&&e.charCodeAt(t-1)!==92}o(Wy,"IsNonEscaped");function qr(e,t){return Wy(e,t,"(")}o(qr,"IsOpenParen");function ka(e,t){return Wy(e,t,")")}o(ka,"IsCloseParen");function iS(e,t){return Wy(e,t,"|")}o(iS,"IsSeparator");function tF(e){if(!(qr(e,0)&&ka(e,e.length-1)))return!1;let t=0;for(let n=0;n<e.length;n++)if(qr(e,n)&&(t+=1),ka(e,n)&&(t-=1),t===0&&n!==e.length-1)return!1;return!0}o(tF,"IsGroup");function nF(e){return e.slice(1,e.length-1)}o(nF,"InGroup");function rF(e){let t=0;for(let n=0;n<e.length;n++)if(qr(e,n)&&(t+=1),ka(e,n)&&(t-=1),iS(e,n)&&t===0)return!0;return!1}o(rF,"IsPrecedenceOr");function iF(e){for(let t=0;t<e.length;t++)if(qr(e,t))return!0;return!1}o(iF,"IsPrecedenceAnd");function oF(e){let[t,n]=[0,0],i=[];for(let s=0;s<e.length;s++)if(qr(e,s)&&(t+=1),ka(e,s)&&(t-=1),iS(e,s)&&t===0){let a=e.slice(n,s);a.length>0&&i.push(Lo(a)),n=s+1}let r=e.slice(n);return r.length>0&&i.push(Lo(r)),i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"or",expr:i}}o(oF,"Or");function sF(e){function t(r,s){if(!qr(r,s))throw new Lu("TemplateLiteralParser: Index must point to open parens");let a=0;for(let u=s;u<r.length;u++)if(qr(r,u)&&(a+=1),ka(r,u)&&(a-=1),a===0)return[s,u];throw new Lu("TemplateLiteralParser: Unclosed group parens in expression")}o(t,"Group");function n(r,s){for(let a=s;a<r.length;a++)if(qr(r,a))return[s,a];return[s,r.length]}o(n,"Range");let i=[];for(let r=0;r<e.length;r++)if(qr(e,r)){let[s,a]=t(e,r),u=e.slice(s,a+1);i.push(Lo(u)),r=a}else{let[s,a]=n(e,r),u=e.slice(s,a);u.length>0&&i.push(Lo(u)),r=a-1}return i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"and",expr:i}}o(sF,"And");function Lo(e){return tF(e)?Lo(nF(e)):rF(e)?oF(e):iF(e)?sF(e):{type:"const",const:eF(e)}}o(Lo,"TemplateLiteralParse");function $o(e){return Lo(e.slice(1,e.length-1))}o($o,"TemplateLiteralParseExact");var qy=class qy extends re{};o(qy,"TemplateLiteralFiniteError");var Xy=qy;function aF(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}o(aF,"IsNumberExpression");function cF(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}o(cF,"IsBooleanExpression");function uF(e){return e.type==="const"&&e.const===".*"}o(uF,"IsStringExpression");function Wi(e){return aF(e)||uF(e)?!1:cF(e)?!0:e.type==="and"?e.expr.every(t=>Wi(t)):e.type==="or"?e.expr.every(t=>Wi(t)):e.type==="const"?!0:(()=>{throw new Xy("Unknown expression type")})()}o(Wi,"IsTemplateLiteralExpressionFinite");function $u(e){let t=$o(e.pattern);return Wi(t)}o($u,"IsTemplateLiteralFinite");f();var Yy=class Yy extends re{};o(Yy,"TemplateLiteralGenerateError");var Ky=Yy;function*oS(e){if(e.length===1)return yield*k(e[0]);for(let t of e[0])for(let n of oS(e.slice(1)))yield"".concat(t).concat(n)}o(oS,"GenerateReduce");function*lF(e){return yield*k(oS(e.expr.map(t=>[...Da(t)])))}o(lF,"GenerateAnd");function*fF(e){for(let t of e.expr)yield*k(Da(t))}o(fF,"GenerateOr");function*dF(e){return yield e.const}o(dF,"GenerateConst");function*Da(e){return e.type==="and"?yield*k(lF(e)):e.type==="or"?yield*k(fF(e)):e.type==="const"?yield*k(dF(e)):(()=>{throw new Ky("Unknown expression")})()}o(Da,"TemplateLiteralExpressionGenerate");function zo(e){let t=$o(e.pattern);return Wi(t)?[...Da(t)]:[]}o(zo,"TemplateLiteralGenerate");f();f();function Ne(e,t){return F({[P]:"Literal",const:e,type:typeof e},t)}o(Ne,"Literal");f();function zu(e){return F({[P]:"Boolean",type:"boolean"},e)}o(zu,"Boolean");f();function Bo(e){return F({[P]:"BigInt",type:"bigint"},e)}o(Bo,"BigInt");f();function _r(e){return F({[P]:"Number",type:"number"},e)}o(_r,"Number");f();function Ln(e){return F({[P]:"String",type:"string"},e)}o(Ln,"String");function*pF(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield zu():t==="number"?yield _r():t==="bigint"?yield Bo():t==="string"?yield Ln():yield(()=>{let n=t.split("|").map(i=>Ne(i.trim()));return n.length===0?Be():n.length===1?n[0]:vr(n)})()}o(pF,"FromUnion");function*hF(e){if(e[1]!=="{"){let t=Ne("$"),n=Jy(e.slice(1));return yield*k([t,...n])}for(let t=2;t<e.length;t++)if(e[t]==="}"){let n=pF(e.slice(2,t)),i=Jy(e.slice(t+1));return yield*k([...n,...i])}yield Ne(e)}o(hF,"FromTerminal");function*Jy(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let n=Ne(e.slice(0,t)),i=hF(e.slice(t));return yield*k([n,...i])}yield Ne(e)}o(Jy,"FromSyntax");function sS(e){return[...Jy(e)]}o(sS,"TemplateLiteralSyntax");f();var tx=class tx extends re{};o(tx,"TemplateLiteralPatternError");var Qy=tx;function mF(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(mF,"Escape");function aS(e,t){return In(e)?e.pattern.slice(1,e.pattern.length-1):Ce(e)?"(".concat(e.anyOf.map(n=>aS(n,t)).join("|"),")"):Gi(e)?"".concat(t).concat(Fa):ji(e)?"".concat(t).concat(Fa):Uy(e)?"".concat(t).concat(Fa):Ca(e)?"".concat(t).concat(Hy):Wr(e)?"".concat(t).concat(mF(e.const.toString())):Fy(e)?"".concat(t).concat(Gy):(()=>{throw new Qy("Unexpected Kind '".concat(e[P],"'"))})()}o(aS,"Visit");function ex(e){return"^".concat(e.map(t=>aS(t,"")).join(""),"$")}o(ex,"TemplateLiteralPattern");f();function Zi(e){let n=zo(e).map(i=>Ne(i));return vr(n)}o(Zi,"TemplateLiteralToUnion");f();function Bu(e,t){let n=Qe(e)?ex(sS(e)):ex(e);return F({[P]:"TemplateLiteral",type:"string",pattern:n},t)}o(Bu,"TemplateLiteral");function gF(e){return zo(e).map(n=>n.toString())}o(gF,"FromTemplateLiteral");function yF(e){let t=[];for(let n of e)t.push(...hn(n));return t}o(yF,"FromUnion");function xF(e){return[e.toString()]}o(xF,"FromLiteral");function hn(e){return[...new Set(In(e)?gF(e):Ce(e)?yF(e.anyOf):Wr(e)?xF(e.const):Gi(e)?["[number]"]:ji(e)?["[number]"]:[])]}o(hn,"IndexPropertyKeys");f();function vF(e,t,n){let i={};for(let r of Object.getOwnPropertyNames(t))i[r]=Vo(e,hn(t[r]),n);return i}o(vF,"FromProperties");function _F(e,t,n){return vF(e,t.properties,n)}o(_F,"FromMappedResult");function cS(e,t,n){let i=_F(e,t,n);return Te(i)}o(cS,"IndexFromMappedResult");function lS(e,t){return e.map(n=>fS(n,t))}o(lS,"FromRest");function bF(e){return e.filter(t=>!Si(t))}o(bF,"FromIntersectRest");function SF(e,t){return Vu(bF(lS(e,t)))}o(SF,"FromIntersect");function IF(e){return e.some(t=>Si(t))?[]:e}o(IF,"FromUnionRest");function wF(e,t){return vr(IF(lS(e,t)))}o(wF,"FromUnion");function MF(e,t){return t in e?e[t]:t==="[number]"?vr(e):Be()}o(MF,"FromTuple");function EF(e,t){return t==="[number]"?e:Be()}o(EF,"FromArray");function TF(e,t){return t in e?e[t]:Be()}o(TF,"FromProperty");function fS(e,t){var n;return vt(e)?SF(e.allOf,t):Ce(e)?wF(e.anyOf,t):rr(e)?MF((n=e.items)!=null?n:[],t):Hr(e)?EF(e.items,t):Mt(e)?TF(e.properties,t):Be()}o(fS,"IndexFromPropertyKey");function La(e,t){return t.map(n=>fS(e,n))}o(La,"IndexFromPropertyKeys");function uS(e,t){return vr(La(e,t))}o(uS,"FromSchema");function Vo(e,t,n){return st(t)?cS(e,t,n):Sn(t)?dS(e,t,n):F(ir(t)?uS(e,hn(t)):uS(e,t),n)}o(Vo,"Index");function AF(e,t,n){return{[t]:Vo(e,[t],it(n))}}o(AF,"MappedIndexPropertyKey");function PF(e,t,n){return t.reduce((i,r)=>x(x({},i),AF(e,r,n)),{})}o(PF,"MappedIndexPropertyKeys");function RF(e,t,n){return PF(e,t.keys,n)}o(RF,"MappedIndexProperties");function dS(e,t,n){let i=RF(e,t,n);return Te(i)}o(dS,"IndexFromMappedKey");f();function ju(e,t){return F({[P]:"Iterator",type:"Iterator",items:e},t)}o(ju,"Iterator");f();function CF(e){let t=[];for(let n in e)xr(e[n])||t.push(n);return t}o(CF,"RequiredKeys");function OF(e,t){let n=CF(e),i=n.length>0?{[P]:"Object",type:"object",properties:e,required:n}:{[P]:"Object",type:"object",properties:e};return F(i,t)}o(OF,"_Object");var We=OF;f();function Gu(e,t){return F({[P]:"Promise",type:"Promise",item:e},t)}o(Gu,"Promise");f();f();function UF(e){return F(ht(e,[Gr]))}o(UF,"RemoveReadonly");function FF(e){return F(L(x({},e),{[Gr]:"Readonly"}))}o(FF,"AddReadonly");function NF(e,t){return t===!1?UF(e):FF(e)}o(NF,"ReadonlyWithFlag");function $n(e,t){let n=t!=null?t:!0;return st(e)?pS(e,n):NF(e,n)}o($n,"Readonly");function kF(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=$n(e[i],t);return n}o(kF,"FromProperties");function DF(e,t){return kF(e.properties,t)}o(DF,"FromMappedResult");function pS(e,t){let n=DF(e,t);return Te(n)}o(pS,"ReadonlyFromMappedResult");f();function br(e,t){return F(e.length>0?{[P]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[P]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}o(br,"Tuple");function hS(e,t){return e in t?zn(e,t[e]):Te(t)}o(hS,"FromMappedResult");function LF(e){return{[e]:Ne(e)}}o(LF,"MappedKeyToKnownMappedResultProperties");function $F(e){let t={};for(let n of e)t[n]=Ne(n);return t}o($F,"MappedKeyToUnknownMappedResultProperties");function zF(e,t){return Q0(t,e)?LF(e):$F(t)}o(zF,"MappedKeyToMappedResultProperties");function BF(e,t){let n=zF(e,t);return hS(e,n)}o(BF,"FromMappedKey");function $a(e,t){return t.map(n=>zn(e,n))}o($a,"FromRest");function VF(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=zn(e,t[i]);return n}o(VF,"FromProperties");function zn(e,t){var i;let n=x({},t);return xr(t)?pn(zn(e,ht(t,[on]))):p0(t)?$n(zn(e,ht(t,[Gr]))):st(t)?hS(e,t.properties):Sn(t)?BF(e,t.keys):Aa(t)?Du($a(e,t.parameters),zn(e,t.returns),n):Pa(t)?Mi($a(e,t.parameters),zn(e,t.returns),n):Ta(t)?ku(zn(e,t.items),n):Ra(t)?ju(zn(e,t.items),n):vt(t)?mn($a(e,t.allOf),n):Ce(t)?Ve($a(e,t.anyOf),n):rr(t)?br($a(e,(i=t.items)!=null?i:[]),n):Mt(t)?We(VF(e,t.properties),n):Hr(t)?Nu(zn(e,t.items),n):Hi(t)?Gu(zn(e,t.item),n):t}o(zn,"FromSchemaType");function jF(e,t){let n={};for(let i of e)n[i]=zn(i,t);return n}o(jF,"MappedFunctionReturnType");function mS(e,t,n){let i=ir(e)?hn(e):e,r=t({[P]:"MappedKey",keys:i}),s=jF(i,r);return We(s,n)}o(mS,"Mapped");f();function GF(e){return F(ht(e,[on]))}o(GF,"RemoveOptional");function HF(e){return F(L(x({},e),{[on]:"Optional"}))}o(HF,"AddOptional");function WF(e,t){return t===!1?GF(e):HF(e)}o(WF,"OptionalWithFlag");function pn(e,t){let n=t!=null?t:!0;return st(e)?gS(e,n):WF(e,n)}o(pn,"Optional");function ZF(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=pn(e[i],t);return n}o(ZF,"FromProperties");function XF(e,t){return ZF(e.properties,t)}o(XF,"FromMappedResult");function gS(e,t){let n=XF(e,t);return Te(n)}o(gS,"OptionalFromMappedResult");f();function za(e,t={}){let n=e.every(r=>Mt(r)),i=ir(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return F(t.unevaluatedProperties===!1||ir(t.unevaluatedProperties)||n?L(x({},i),{[P]:"Intersect",type:"object",allOf:e}):L(x({},i),{[P]:"Intersect",allOf:e}),t)}o(za,"IntersectCreate");function qF(e){return e.every(t=>xr(t))}o(qF,"IsIntersectOptional");function KF(e){return ht(e,[on])}o(KF,"RemoveOptionalFromType");function yS(e){return e.map(t=>xr(t)?KF(t):t)}o(yS,"RemoveOptionalFromRest");function YF(e,t){return qF(e)?pn(za(yS(e),t)):za(yS(e),t)}o(YF,"ResolveIntersect");function Vu(e,t={}){if(e.length===0)return Be(t);if(e.length===1)return F(e[0],t);if(e.some(n=>Fo(n)))throw new Error("Cannot intersect transform types");return YF(e,t)}o(Vu,"IntersectEvaluated");f();function mn(e,t){if(e.length===0)return Be(t);if(e.length===1)return F(e[0],t);if(e.some(n=>Fo(n)))throw new Error("Cannot intersect transform types");return za(e,t)}o(mn,"Intersect");function xS(e){return e.map(t=>nx(t))}o(xS,"FromRest");function JF(e){return mn(xS(e))}o(JF,"FromIntersect");function QF(e){return Ve(xS(e))}o(QF,"FromUnion");function eN(e){return nx(e)}o(eN,"FromPromise");function nx(e){return vt(e)?JF(e.allOf):Ce(e)?QF(e.anyOf):Hi(e)?eN(e.item):e}o(nx,"AwaitedResolve");function vS(e,t){return F(nx(e),t)}o(vS,"Awaited");f();f();f();f();function _S(e){let t=[];for(let n of e)t.push(Pt(n));return t}o(_S,"FromRest");function tN(e){let t=_S(e);return nS(t)}o(tN,"FromIntersect");function nN(e){let t=_S(e);return tS(t)}o(nN,"FromUnion");function rN(e){return e.map((t,n)=>n.toString())}o(rN,"FromTuple");function iN(e){return["[number]"]}o(iN,"FromArray");function oN(e){return globalThis.Object.getOwnPropertyNames(e)}o(oN,"FromProperties");function sN(e){return rx?globalThis.Object.getOwnPropertyNames(e).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}o(sN,"FromPatternProperties");function Pt(e){var t;return vt(e)?tN(e.allOf):Ce(e)?nN(e.anyOf):rr(e)?rN((t=e.items)!=null?t:[]):Hr(e)?iN(e.items):Mt(e)?oN(e.properties):Ny(e)?sN(e.patternProperties):[]}o(Pt,"KeyOfPropertyKeys");var rx=!1;function Kr(e){rx=!0;let t=Pt(e);rx=!1;let n=t.map(i=>"(".concat(i,")"));return"^(".concat(n.join("|"),")$")}o(Kr,"KeyOfPattern");function aN(e){return e.map(t=>t==="[number]"?_r():Ne(t))}o(aN,"KeyOfPropertyKeysToRest");function Hu(e,t){if(st(e))return bS(e,t);{let n=Pt(e),i=aN(n),r=vr(i);return F(r,t)}}o(Hu,"KeyOf");function cN(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Hu(e[i],it(t));return n}o(cN,"FromProperties");function uN(e,t){return cN(e.properties,t)}o(uN,"FromMappedResult");function bS(e,t){let n=uN(e,t);return Te(n)}o(bS,"KeyOfFromMappedResult");f();function Ei(e){let t=Pt(e),n=La(e,t);return t.map((i,r)=>[t[r],n[r]])}o(Ei,"KeyOfPropertyEntries");function lN(e){let t=[];for(let n of e)t.push(...Pt(n));return eS(t)}o(lN,"CompositeKeys");function fN(e){return e.filter(t=>!Si(t))}o(fN,"FilterNever");function dN(e,t){let n=[];for(let i of e)n.push(...La(i,[t]));return fN(n)}o(dN,"CompositeProperty");function pN(e,t){let n={};for(let i of t)n[i]=Vu(dN(e,i));return n}o(pN,"CompositeProperties");function SS(e,t){let n=lN(e),i=pN(e,n);return We(i,t)}o(SS,"Composite");f();f();function Wu(e){return F({[P]:"Date",type:"Date"},e)}o(Wu,"Date");f();function Zu(e){return F({[P]:"Null",type:"null"},e)}o(Zu,"Null");f();function Xu(e){return F({[P]:"Symbol",type:"symbol"},e)}o(Xu,"Symbol");f();function qu(e){return F({[P]:"Undefined",type:"undefined"},e)}o(qu,"Undefined");f();function Ku(e){return F({[P]:"Uint8Array",type:"Uint8Array"},e)}o(Ku,"Uint8Array");f();function Yr(e){return F({[P]:"Unknown"},e)}o(Yr,"Unknown");function hN(e){return e.map(t=>ix(t,!1))}o(hN,"FromArray");function mN(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=$n(ix(e[n],!1));return t}o(mN,"FromProperties");function Yu(e,t){return t===!0?e:$n(e)}o(Yu,"ConditionalReadonly");function ix(e,t){return My(e)?Yu(wi(),t):Ty(e)?Yu(wi(),t):Wt(e)?$n(br(hN(e))):Br(e)?Ku():Vi(e)?Wu():He(e)?Yu(We(mN(e)),t):Ey(e)?Yu(Mi([],Yr()),t):ct(e)?qu():Ay(e)?Zu():Py(e)?Xu():Ia(e)?Bo():nr(e)?Ne(e):_i(e)?Ne(e):Qe(e)?Ne(e):We({})}o(ix,"FromValue");function IS(e,t){return F(ix(e,!0),t)}o(IS,"Const");f();function wS(e,t){return br(e.parameters,t)}o(wS,"ConstructorParameters");f();function Ba(e,t){return e.map(n=>or(n,t))}o(Ba,"FromRest");function gN(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=or(e[i],t);return n}o(gN,"FromProperties");function yN(e,t){return e.parameters=Ba(e.parameters,t),e.returns=or(e.returns,t),e}o(yN,"FromConstructor");function xN(e,t){return e.parameters=Ba(e.parameters,t),e.returns=or(e.returns,t),e}o(xN,"FromFunction");function vN(e,t){return e.allOf=Ba(e.allOf,t),e}o(vN,"FromIntersect");function _N(e,t){return e.anyOf=Ba(e.anyOf,t),e}o(_N,"FromUnion");function bN(e,t){return ct(e.items)||(e.items=Ba(e.items,t)),e}o(bN,"FromTuple");function SN(e,t){return e.items=or(e.items,t),e}o(SN,"FromArray");function IN(e,t){return e.properties=gN(e.properties,t),e}o(IN,"FromObject");function wN(e,t){return e.item=or(e.item,t),e}o(wN,"FromPromise");function MN(e,t){return e.items=or(e.items,t),e}o(MN,"FromAsyncIterator");function EN(e,t){return e.items=or(e.items,t),e}o(EN,"FromIterator");function TN(e,t){let n=t.find(r=>r.$id===e.$ref);if(n===void 0)throw Error("Unable to dereference schema with $id ".concat(e.$ref));let i=ht(n,["$id"]);return or(i,t)}o(TN,"FromRef");function AN(e,t){return Aa(e)?yN(e,t):Pa(e)?xN(e,t):vt(e)?vN(e,t):Ce(e)?_N(e,t):rr(e)?bN(e,t):Hr(e)?SN(e,t):Mt(e)?IN(e,t):Hi(e)?wN(e,t):Ta(e)?MN(e,t):Ra(e)?EN(e,t):ky(e)?TN(e,t):e}o(AN,"DerefResolve");function or(e,t){return AN(Ma(e),l0(t))}o(or,"Deref");f();function MS(e,t){if(ct(e))throw new Error("Enum undefined or empty");let n=globalThis.Object.getOwnPropertyNames(e).filter(s=>isNaN(s)).map(s=>e[s]),r=[...new Set(n)].map(s=>Ne(s));return Ve(r,L(x({},t),{[Dn]:"Enum"}))}o(MS,"Enum");f();f();f();var fx=class fx extends re{};o(fx,"ExtendsResolverError");var sx=fx,O;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(O||(O={}));function Bn(e){return e===O.False?e:O.True}o(Bn,"IntoBooleanResult");function jo(e){throw new sx(e)}o(jo,"Throw");function bt(e){return _.IsNever(e)||_.IsIntersect(e)||_.IsUnion(e)||_.IsUnknown(e)||_.IsAny(e)}o(bt,"IsStructuralRight");function St(e,t){return _.IsNever(t)?OS(e,t):_.IsIntersect(t)?Ju(e,t):_.IsUnion(t)?lx(e,t):_.IsUnknown(t)?kS(e,t):_.IsAny(t)?ux(e,t):jo("StructuralRight")}o(St,"StructuralRight");function ux(e,t){return O.True}o(ux,"FromAnyRight");function PN(e,t){return _.IsIntersect(t)?Ju(e,t):_.IsUnion(t)&&t.anyOf.some(n=>_.IsAny(n)||_.IsUnknown(n))?O.True:_.IsUnion(t)?O.Union:_.IsUnknown(t)||_.IsAny(t)?O.True:O.Union}o(PN,"FromAny");function RN(e,t){return _.IsUnknown(e)?O.False:_.IsAny(e)?O.Union:_.IsNever(e)?O.True:O.False}o(RN,"FromArrayRight");function CN(e,t){return _.IsObject(t)&&Qu(t)?O.True:bt(t)?St(e,t):_.IsArray(t)?Bn(je(e.items,t.items)):O.False}o(CN,"FromArray");function ON(e,t){return bt(t)?St(e,t):_.IsAsyncIterator(t)?Bn(je(e.items,t.items)):O.False}o(ON,"FromAsyncIterator");function UN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsBigInt(t)?O.True:O.False}o(UN,"FromBigInt");function RS(e,t){return _.IsLiteralBoolean(e)||_.IsBoolean(e)?O.True:O.False}o(RS,"FromBooleanRight");function FN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsBoolean(t)?O.True:O.False}o(FN,"FromBoolean");function NN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsConstructor(t)?e.parameters.length>t.parameters.length?O.False:e.parameters.every((n,i)=>Bn(je(t.parameters[i],n))===O.True)?Bn(je(e.returns,t.returns)):O.False:O.False}o(NN,"FromConstructor");function kN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsDate(t)?O.True:O.False}o(kN,"FromDate");function DN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsFunction(t)?e.parameters.length>t.parameters.length?O.False:e.parameters.every((n,i)=>Bn(je(t.parameters[i],n))===O.True)?Bn(je(e.returns,t.returns)):O.False:O.False}o(DN,"FromFunction");function CS(e,t){return _.IsLiteral(e)&&be.IsNumber(e.const)||_.IsNumber(e)||_.IsInteger(e)?O.True:O.False}o(CS,"FromIntegerRight");function LN(e,t){return _.IsInteger(t)||_.IsNumber(t)?O.True:bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):O.False}o(LN,"FromInteger");function Ju(e,t){return t.allOf.every(n=>je(e,n)===O.True)?O.True:O.False}o(Ju,"FromIntersectRight");function $N(e,t){return e.allOf.some(n=>je(n,t)===O.True)?O.True:O.False}o($N,"FromIntersect");function zN(e,t){return bt(t)?St(e,t):_.IsIterator(t)?Bn(je(e.items,t.items)):O.False}o(zN,"FromIterator");function BN(e,t){return _.IsLiteral(t)&&t.const===e.const?O.True:bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsString(t)?NS(e,t):_.IsNumber(t)?US(e,t):_.IsInteger(t)?CS(e,t):_.IsBoolean(t)?RS(e,t):O.False}o(BN,"FromLiteral");function OS(e,t){return O.False}o(OS,"FromNeverRight");function VN(e,t){return O.True}o(VN,"FromNever");function ES(e){let[t,n]=[e,0];for(;_.IsNot(t);)t=t.not,n+=1;return n%2===0?t:Yr()}o(ES,"UnwrapTNot");function jN(e,t){return _.IsNot(e)?je(ES(e),t):_.IsNot(t)?je(e,ES(t)):jo("Invalid fallthrough for Not")}o(jN,"FromNot");function GN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsNull(t)?O.True:O.False}o(GN,"FromNull");function US(e,t){return _.IsLiteralNumber(e)||_.IsNumber(e)||_.IsInteger(e)?O.True:O.False}o(US,"FromNumberRight");function HN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsInteger(t)||_.IsNumber(t)?O.True:O.False}o(HN,"FromNumber");function gn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}o(gn,"IsObjectPropertyCount");function TS(e){return Qu(e)}o(TS,"IsObjectStringLike");function AS(e){return gn(e,0)||gn(e,1)&&"description"in e.properties&&_.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(_.IsString(e.properties.description.anyOf[0])&&_.IsUndefined(e.properties.description.anyOf[1])||_.IsString(e.properties.description.anyOf[1])&&_.IsUndefined(e.properties.description.anyOf[0]))}o(AS,"IsObjectSymbolLike");function ox(e){return gn(e,0)}o(ox,"IsObjectNumberLike");function PS(e){return gn(e,0)}o(PS,"IsObjectBooleanLike");function WN(e){return gn(e,0)}o(WN,"IsObjectBigIntLike");function ZN(e){return gn(e,0)}o(ZN,"IsObjectDateLike");function XN(e){return Qu(e)}o(XN,"IsObjectUint8ArrayLike");function qN(e){let t=_r();return gn(e,0)||gn(e,1)&&"length"in e.properties&&Bn(je(e.properties.length,t))===O.True}o(qN,"IsObjectFunctionLike");function KN(e){return gn(e,0)}o(KN,"IsObjectConstructorLike");function Qu(e){let t=_r();return gn(e,0)||gn(e,1)&&"length"in e.properties&&Bn(je(e.properties.length,t))===O.True}o(Qu,"IsObjectArrayLike");function YN(e){let t=Mi([wi()],wi());return gn(e,0)||gn(e,1)&&"then"in e.properties&&Bn(je(e.properties.then,t))===O.True}o(YN,"IsObjectPromiseLike");function FS(e,t){return je(e,t)===O.False||_.IsOptional(e)&&!_.IsOptional(t)?O.False:O.True}o(FS,"Property");function Zt(e,t){return _.IsUnknown(e)?O.False:_.IsAny(e)?O.Union:_.IsNever(e)||_.IsLiteralString(e)&&TS(t)||_.IsLiteralNumber(e)&&ox(t)||_.IsLiteralBoolean(e)&&PS(t)||_.IsSymbol(e)&&AS(t)||_.IsBigInt(e)&&WN(t)||_.IsString(e)&&TS(t)||_.IsSymbol(e)&&AS(t)||_.IsNumber(e)&&ox(t)||_.IsInteger(e)&&ox(t)||_.IsBoolean(e)&&PS(t)||_.IsUint8Array(e)&&XN(t)||_.IsDate(e)&&ZN(t)||_.IsConstructor(e)&&KN(t)||_.IsFunction(e)&&qN(t)?O.True:_.IsRecord(e)&&_.IsString(ax(e))?t[Dn]==="Record"?O.True:O.False:_.IsRecord(e)&&_.IsNumber(ax(e))?gn(t,0)?O.True:O.False:O.False}o(Zt,"FromObjectRight");function JN(e,t){return bt(t)?St(e,t):_.IsRecord(t)?Vn(e,t):_.IsObject(t)?(()=>{for(let n of Object.getOwnPropertyNames(t.properties)){if(!(n in e.properties)&&!_.IsOptional(t.properties[n]))return O.False;if(_.IsOptional(t.properties[n]))return O.True;if(FS(e.properties[n],t.properties[n])===O.False)return O.False}return O.True})():O.False}o(JN,"FromObject");function QN(e,t){return bt(t)?St(e,t):_.IsObject(t)&&YN(t)?O.True:_.IsPromise(t)?Bn(je(e.item,t.item)):O.False}o(QN,"FromPromise");function ax(e){return Zr in e.patternProperties?_r():Xr in e.patternProperties?Ln():jo("Unknown record key pattern")}o(ax,"RecordKey");function cx(e){return Zr in e.patternProperties?e.patternProperties[Zr]:Xr in e.patternProperties?e.patternProperties[Xr]:jo("Unable to get record value schema")}o(cx,"RecordValue");function Vn(e,t){let[n,i]=[ax(t),cx(t)];return _.IsLiteralString(e)&&_.IsNumber(n)&&Bn(je(e,i))===O.True?O.True:_.IsUint8Array(e)&&_.IsNumber(n)||_.IsString(e)&&_.IsNumber(n)||_.IsArray(e)&&_.IsNumber(n)?je(e,i):_.IsObject(e)?(()=>{for(let r of Object.getOwnPropertyNames(e.properties))if(FS(i,e.properties[r])===O.False)return O.False;return O.True})():O.False}o(Vn,"FromRecordRight");function ek(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?je(cx(e),cx(t)):O.False}o(ek,"FromRecord");function tk(e,t){let n=_.IsRegExp(e)?Ln():e,i=_.IsRegExp(t)?Ln():t;return je(n,i)}o(tk,"FromRegExp");function NS(e,t){return _.IsLiteral(e)&&be.IsString(e.const)||_.IsString(e)?O.True:O.False}o(NS,"FromStringRight");function nk(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsString(t)?O.True:O.False}o(nk,"FromString");function rk(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsSymbol(t)?O.True:O.False}o(rk,"FromSymbol");function ik(e,t){return _.IsTemplateLiteral(e)?je(Zi(e),t):_.IsTemplateLiteral(t)?je(e,Zi(t)):jo("Invalid fallthrough for TemplateLiteral")}o(ik,"FromTemplateLiteral");function ok(e,t){return _.IsArray(t)&&e.items!==void 0&&e.items.every(n=>je(n,t.items)===O.True)}o(ok,"IsArrayOfTuple");function sk(e,t){return _.IsNever(e)?O.True:_.IsUnknown(e)?O.False:_.IsAny(e)?O.Union:O.False}o(sk,"FromTupleRight");function ak(e,t){return bt(t)?St(e,t):_.IsObject(t)&&Qu(t)||_.IsArray(t)&&ok(e,t)?O.True:_.IsTuple(t)?be.IsUndefined(e.items)&&!be.IsUndefined(t.items)||!be.IsUndefined(e.items)&&be.IsUndefined(t.items)?O.False:be.IsUndefined(e.items)&&!be.IsUndefined(t.items)||e.items.every((n,i)=>je(n,t.items[i])===O.True)?O.True:O.False:O.False}o(ak,"FromTuple");function ck(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsUint8Array(t)?O.True:O.False}o(ck,"FromUint8Array");function uk(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsVoid(t)?dk(e,t):_.IsUndefined(t)?O.True:O.False}o(uk,"FromUndefined");function lx(e,t){return t.anyOf.some(n=>je(e,n)===O.True)?O.True:O.False}o(lx,"FromUnionRight");function lk(e,t){return e.anyOf.every(n=>je(n,t)===O.True)?O.True:O.False}o(lk,"FromUnion");function kS(e,t){return O.True}o(kS,"FromUnknownRight");function fk(e,t){return _.IsNever(t)?OS(e,t):_.IsIntersect(t)?Ju(e,t):_.IsUnion(t)?lx(e,t):_.IsAny(t)?ux(e,t):_.IsString(t)?NS(e,t):_.IsNumber(t)?US(e,t):_.IsInteger(t)?CS(e,t):_.IsBoolean(t)?RS(e,t):_.IsArray(t)?RN(e,t):_.IsTuple(t)?sk(e,t):_.IsObject(t)?Zt(e,t):_.IsUnknown(t)?O.True:O.False}o(fk,"FromUnknown");function dk(e,t){return _.IsUndefined(e)||_.IsUndefined(e)?O.True:O.False}o(dk,"FromVoidRight");function pk(e,t){return _.IsIntersect(t)?Ju(e,t):_.IsUnion(t)?lx(e,t):_.IsUnknown(t)?kS(e,t):_.IsAny(t)?ux(e,t):_.IsObject(t)?Zt(e,t):_.IsVoid(t)?O.True:O.False}o(pk,"FromVoid");function je(e,t){return _.IsTemplateLiteral(e)||_.IsTemplateLiteral(t)?ik(e,t):_.IsRegExp(e)||_.IsRegExp(t)?tk(e,t):_.IsNot(e)||_.IsNot(t)?jN(e,t):_.IsAny(e)?PN(e,t):_.IsArray(e)?CN(e,t):_.IsBigInt(e)?UN(e,t):_.IsBoolean(e)?FN(e,t):_.IsAsyncIterator(e)?ON(e,t):_.IsConstructor(e)?NN(e,t):_.IsDate(e)?kN(e,t):_.IsFunction(e)?DN(e,t):_.IsInteger(e)?LN(e,t):_.IsIntersect(e)?$N(e,t):_.IsIterator(e)?zN(e,t):_.IsLiteral(e)?BN(e,t):_.IsNever(e)?VN(e,t):_.IsNull(e)?GN(e,t):_.IsNumber(e)?HN(e,t):_.IsObject(e)?JN(e,t):_.IsRecord(e)?ek(e,t):_.IsString(e)?nk(e,t):_.IsSymbol(e)?rk(e,t):_.IsTuple(e)?ak(e,t):_.IsPromise(e)?QN(e,t):_.IsUint8Array(e)?ck(e,t):_.IsUndefined(e)?uk(e,t):_.IsUnion(e)?lk(e,t):_.IsUnknown(e)?fk(e,t):_.IsVoid(e)?pk(e,t):jo("Unknown left type operand '".concat(e[P],"'"))}o(je,"Visit");function Ti(e,t){return je(e,t)}o(Ti,"ExtendsCheck");f();f();f();function hk(e,t,n,i,r){let s={};for(let a of globalThis.Object.getOwnPropertyNames(e))s[a]=Go(e[a],t,n,i,it(r));return s}o(hk,"FromProperties");function mk(e,t,n,i,r){return hk(e.properties,t,n,i,r)}o(mk,"FromMappedResult");function DS(e,t,n,i,r){let s=mk(e,t,n,i,r);return Te(s)}o(DS,"ExtendsFromMappedResult");function gk(e,t,n,i){let r=Ti(e,t);return r===O.Union?Ve([n,i]):r===O.True?n:i}o(gk,"ExtendsResolve");function Go(e,t,n,i,r){return st(e)?DS(e,t,n,i,r):Sn(e)?F(LS(e,t,n,i,r)):F(gk(e,t,n,i),r)}o(Go,"Extends");function yk(e,t,n,i,r){return{[e]:Go(Ne(e),t,n,i,it(r))}}o(yk,"FromPropertyKey");function xk(e,t,n,i,r){return e.reduce((s,a)=>x(x({},s),yk(a,t,n,i,r)),{})}o(xk,"FromPropertyKeys");function vk(e,t,n,i,r){return xk(e.keys,t,n,i,r)}o(vk,"FromMappedKey");function LS(e,t,n,i,r){let s=vk(e,t,n,i,r);return Te(s)}o(LS,"ExtendsFromMappedKey");f();function _k(e){return e.allOf.every(t=>Jr(t))}o(_k,"Intersect");function bk(e){return e.anyOf.some(t=>Jr(t))}o(bk,"Union");function Sk(e){return!Jr(e.not)}o(Sk,"Not");function Jr(e){return e[P]==="Intersect"?_k(e):e[P]==="Union"?bk(e):e[P]==="Not"?Sk(e):e[P]==="Undefined"}o(Jr,"ExtendsUndefinedCheck");f();function $S(e,t){return Ho(Zi(e),t)}o($S,"ExcludeFromTemplateLiteral");function Ik(e,t){let n=e.filter(i=>Ti(i,t)===O.False);return n.length===1?n[0]:Ve(n)}o(Ik,"ExcludeRest");function Ho(e,t,n={}){return In(e)?F($S(e,t),n):st(e)?F(zS(e,t),n):F(Ce(e)?Ik(e.anyOf,t):Ti(e,t)!==O.False?Be():e,n)}o(Ho,"Exclude");function wk(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Ho(e[i],t);return n}o(wk,"FromProperties");function Mk(e,t){return wk(e.properties,t)}o(Mk,"FromMappedResult");function zS(e,t){let n=Mk(e,t);return Te(n)}o(zS,"ExcludeFromMappedResult");f();f();f();function BS(e,t){return Wo(Zi(e),t)}o(BS,"ExtractFromTemplateLiteral");function Ek(e,t){let n=e.filter(i=>Ti(i,t)!==O.False);return n.length===1?n[0]:Ve(n)}o(Ek,"ExtractRest");function Wo(e,t,n){return In(e)?F(BS(e,t),n):st(e)?F(VS(e,t),n):F(Ce(e)?Ek(e.anyOf,t):Ti(e,t)!==O.False?e:Be(),n)}o(Wo,"Extract");function Tk(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Wo(e[i],t);return n}o(Tk,"FromProperties");function Ak(e,t){return Tk(e.properties,t)}o(Ak,"FromMappedResult");function VS(e,t){let n=Ak(e,t);return Te(n)}o(VS,"ExtractFromMappedResult");f();function jS(e,t){return F(e.returns,t)}o(jS,"InstanceType");f();function GS(e){return F({[P]:"Integer",type:"integer"},e)}o(GS,"Integer");f();f();f();function Pk(e,t,n){return{[e]:sr(Ne(e),t,it(n))}}o(Pk,"MappedIntrinsicPropertyKey");function Rk(e,t,n){return e.reduce((r,s)=>x(x({},r),Pk(s,t,n)),{})}o(Rk,"MappedIntrinsicPropertyKeys");function Ck(e,t,n){return Rk(e.keys,t,n)}o(Ck,"MappedIntrinsicProperties");function HS(e,t,n){let i=Ck(e,t,n);return Te(i)}o(HS,"IntrinsicFromMappedKey");function Ok(e){let[t,n]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),n].join("")}o(Ok,"ApplyUncapitalize");function Uk(e){let[t,n]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),n].join("")}o(Uk,"ApplyCapitalize");function Fk(e){return e.toUpperCase()}o(Fk,"ApplyUppercase");function Nk(e){return e.toLowerCase()}o(Nk,"ApplyLowercase");function kk(e,t,n){let i=$o(e.pattern);if(!Wi(i))return L(x({},e),{pattern:WS(e.pattern,t)});let a=[...Da(i)].map(c=>Ne(c)),u=ZS(a,t),l=Ve(u);return Bu([l],n)}o(kk,"FromTemplateLiteral");function WS(e,t){return typeof e=="string"?t==="Uncapitalize"?Ok(e):t==="Capitalize"?Uk(e):t==="Uppercase"?Fk(e):t==="Lowercase"?Nk(e):e:e.toString()}o(WS,"FromLiteralValue");function ZS(e,t){return e.map(n=>sr(n,t))}o(ZS,"FromRest");function sr(e,t,n={}){return Sn(e)?HS(e,t,n):In(e)?kk(e,t,n):Ce(e)?Ve(ZS(e.anyOf,t),n):Wr(e)?Ne(WS(e.const,t),n):F(e,n)}o(sr,"Intrinsic");function XS(e,t={}){return sr(e,"Capitalize",t)}o(XS,"Capitalize");f();function qS(e,t={}){return sr(e,"Lowercase",t)}o(qS,"Lowercase");f();function KS(e,t={}){return sr(e,"Uncapitalize",t)}o(KS,"Uncapitalize");f();function YS(e,t={}){return sr(e,"Uppercase",t)}o(YS,"Uppercase");f();function JS(e,t){return F({[P]:"Not",not:e},t)}o(JS,"Not");f();f();f();function Dk(e,t,n){let i={};for(let r of globalThis.Object.getOwnPropertyNames(e))i[r]=Zo(e[r],t,it(n));return i}o(Dk,"FromProperties");function Lk(e,t,n){return Dk(e.properties,t,n)}o(Lk,"FromMappedResult");function QS(e,t,n){let i=Lk(e,t,n);return Te(i)}o(QS,"OmitFromMappedResult");function $k(e,t){return e.map(n=>dx(n,t))}o($k,"FromIntersect");function zk(e,t){return e.map(n=>dx(n,t))}o(zk,"FromUnion");function Bk(e,t){let r=e,{[t]:n}=r;return Es(r,[lc(t)])}o(Bk,"FromProperty");function Vk(e,t){return t.reduce((n,i)=>Bk(n,i),e)}o(Vk,"FromProperties");function jk(e,t){let n=ht(e,[ot,"$id","required","properties"]),i=Vk(e.properties,t);return We(i,n)}o(jk,"FromObject");function dx(e,t){return vt(e)?mn($k(e.allOf,t)):Ce(e)?Ve(zk(e.anyOf,t)):Mt(e)?jk(e,t):We({})}o(dx,"OmitResolve");function Zo(e,t,n){if(Sn(t))return eI(e,t,n);if(st(e))return QS(e,t,n);let i=ir(t)?hn(t):t;return F(x(x({},dx(e,i)),n))}o(Zo,"Omit");function Gk(e,t,n){return{[t]:Zo(e,[t],it(n))}}o(Gk,"FromPropertyKey");function Hk(e,t,n){return t.reduce((i,r)=>x(x({},i),Gk(e,r,n)),{})}o(Hk,"FromPropertyKeys");function Wk(e,t,n){return Hk(e,t.keys,n)}o(Wk,"FromMappedKey");function eI(e,t,n){let i=Wk(e,t,n);return Te(i)}o(eI,"OmitFromMappedKey");f();function tI(e,t){return br(e.parameters,t)}o(tI,"Parameters");f();f();function nI(e){return e.map(t=>rI(t))}o(nI,"FromRest");function Zk(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=pn(e[n]);return t}o(Zk,"FromProperties");function Xk(e){let t=ht(e,[ot,"$id","required","properties"]),n=Zk(e.properties);return We(n,t)}o(Xk,"FromObject");function rI(e){return vt(e)?mn(nI(e.allOf)):Ce(e)?Ve(nI(e.anyOf)):Mt(e)?Xk(e):We({})}o(rI,"PartialResolve");function el(e,t){return st(e)?iI(e,t):F(x(x({},rI(e)),t))}o(el,"Partial");function qk(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=el(e[i],it(t));return n}o(qk,"FromProperties");function Kk(e,t){return qk(e.properties,t)}o(Kk,"FromMappedResult");function iI(e,t){let n=Kk(e,t);return Te(n)}o(iI,"PartialFromMappedResult");f();f();f();function Yk(e,t,n){let i={};for(let r of globalThis.Object.getOwnPropertyNames(e))i[r]=Xo(e[r],t,it(n));return i}o(Yk,"FromProperties");function Jk(e,t,n){return Yk(e.properties,t,n)}o(Jk,"FromMappedResult");function oI(e,t,n){let i=Jk(e,t,n);return Te(i)}o(oI,"PickFromMappedResult");function Qk(e,t){return e.map(n=>px(n,t))}o(Qk,"FromIntersect");function eD(e,t){return e.map(n=>px(n,t))}o(eD,"FromUnion");function tD(e,t){let n={};for(let i of t)i in e&&(n[i]=e[i]);return n}o(tD,"FromProperties");function nD(e,t){let n=ht(e,[ot,"$id","required","properties"]),i=tD(e.properties,t);return We(i,n)}o(nD,"FromObject");function px(e,t){return vt(e)?mn(Qk(e.allOf,t)):Ce(e)?Ve(eD(e.anyOf,t)):Mt(e)?nD(e,t):We({})}o(px,"PickResolve");function Xo(e,t,n){if(Sn(t))return sI(e,t,n);if(st(e))return oI(e,t,n);let i=ir(t)?hn(t):t;return F(x(x({},px(e,i)),n))}o(Xo,"Pick");function rD(e,t,n){return{[t]:Xo(e,[t],it(n))}}o(rD,"FromPropertyKey");function iD(e,t,n){return t.reduce((i,r)=>x(x({},i),rD(e,r,n)),{})}o(iD,"FromPropertyKeys");function oD(e,t,n){return iD(e,t.keys,n)}o(oD,"FromMappedKey");function sI(e,t,n){let i=oD(e,t,n);return Te(i)}o(sI,"PickFromMappedKey");f();function aI(e){return $n(pn(e))}o(aI,"ReadonlyOptional");f();function Xi(e,t,n){return F({[P]:"Record",type:"object",patternProperties:{[e]:t}},n)}o(Xi,"RecordCreateFromPattern");function hx(e,t,n){let i={};for(let r of e)i[r]=t;return We(i,L(x({},n),{[Dn]:"Record"}))}o(hx,"RecordCreateFromKeys");function sD(e,t,n){return $u(e)?hx(hn(e),t,n):Xi(e.pattern,t,n)}o(sD,"FromTemplateLiteralKey");function aD(e,t,n){return hx(hn(Ve(e)),t,n)}o(aD,"FromUnionKey");function cD(e,t,n){return hx([e.toString()],t,n)}o(cD,"FromLiteralKey");function uD(e,t,n){return Xi(e.source,t,n)}o(uD,"FromRegExpKey");function lD(e,t,n){let i=ct(e.pattern)?Xr:e.pattern;return Xi(i,t,n)}o(lD,"FromStringKey");function fD(e,t,n){return Xi(Xr,t,n)}o(fD,"FromAnyKey");function dD(e,t,n){return Xi(J0,t,n)}o(dD,"FromNeverKey");function pD(e,t,n){return Xi(Zr,t,n)}o(pD,"FromIntegerKey");function hD(e,t,n){return Xi(Zr,t,n)}o(hD,"FromNumberKey");function cI(e,t,n={}){return Ce(e)?aD(e.anyOf,t,n):In(e)?sD(e,t,n):Wr(e)?cD(e.const,t,n):ji(e)?pD(e,t,n):Gi(e)?hD(e,t,n):Dy(e)?uD(e,t,n):Ca(e)?lD(e,t,n):Oy(e)?fD(e,t,n):Si(e)?dD(e,t,n):Be(n)}o(cI,"Record");f();var mD=0;function uI(e,t={}){ct(t.$id)&&(t.$id="T".concat(mD++));let n=Ma(e({[P]:"This",$ref:"".concat(t.$id)}));return n.$id=t.$id,F(x({[Dn]:"Recursive"},n),t)}o(uI,"Recursive");f();function lI(e,t){if(Qe(e))return F({[P]:"Ref",$ref:e},t);if(ct(e.$id))throw new Error("Reference target type must specify an $id");return F({[P]:"Ref",$ref:e.$id},t)}o(lI,"Ref");f();function fI(e,t){let n=Qe(e)?new globalThis.RegExp(e):e;return F({[P]:"RegExp",type:"RegExp",source:n.source,flags:n.flags},t)}o(fI,"RegExp");f();f();function dI(e){return e.map(t=>pI(t))}o(dI,"FromRest");function gD(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=ht(e[n],[on]);return t}o(gD,"FromProperties");function yD(e){let t=ht(e,[ot,"$id","required","properties"]),n=gD(e.properties);return We(n,t)}o(yD,"FromObject");function pI(e){return vt(e)?mn(dI(e.allOf)):Ce(e)?Ve(dI(e.anyOf)):Mt(e)?yD(e):We({})}o(pI,"RequiredResolve");function tl(e,t){return st(e)?hI(e,t):F(x(x({},pI(e)),t))}o(tl,"Required");function xD(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=tl(e[i],t);return n}o(xD,"FromProperties");function vD(e,t){return xD(e.properties,t)}o(vD,"FromMappedResult");function hI(e,t){let n=vD(e,t);return Te(n)}o(hI,"RequiredFromMappedResult");f();function _D(e){var t;return vt(e)?e.allOf:Ce(e)?e.anyOf:rr(e)?(t=e.items)!=null?t:[]:[]}o(_D,"RestResolve");function mI(e){return _D(e)}o(mI,"Rest");f();function gI(e,t){return F(e.returns,t)}o(gI,"ReturnType");f();function yI(e){return JSON.parse(JSON.stringify(e))}o(yI,"Strict");f();var yx=class yx{constructor(t){this.schema=t}Decode(t){return new gx(this.schema,t)}};o(yx,"TransformDecodeBuilder");var mx=yx,xx=class xx{constructor(t,n){this.schema=t,this.decode=n}EncodeTransform(t,n){let s={Encode:o(a=>n[ot].Encode(t(a)),"Encode"),Decode:o(a=>this.decode(n[ot].Decode(a)),"Decode")};return L(x({},n),{[ot]:s})}EncodeSchema(t,n){let i={Decode:this.decode,Encode:t};return L(x({},n),{[ot]:i})}Encode(t){return Fo(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};o(xx,"TransformEncodeBuilder");var gx=xx;function xI(e){return new mx(e)}o(xI,"Transform");f();function nl(e={}){var t;return F({[P]:(t=e[P])!=null?t:"Unsafe"},e)}o(nl,"Unsafe");f();function vI(e){return F({[P]:"Void",type:"void"},e)}o(vI,"Void");f();var vx={};un(vx,{Any:()=>wi,Array:()=>Nu,AsyncIterator:()=>ku,Awaited:()=>vS,BigInt:()=>Bo,Boolean:()=>zu,Capitalize:()=>XS,Composite:()=>SS,Const:()=>IS,Constructor:()=>Du,ConstructorParameters:()=>wS,Date:()=>Wu,Deref:()=>or,Enum:()=>MS,Exclude:()=>Ho,Extends:()=>Go,Extract:()=>Wo,Function:()=>Mi,Index:()=>Vo,InstanceType:()=>jS,Integer:()=>GS,Intersect:()=>mn,Iterator:()=>ju,KeyOf:()=>Hu,Literal:()=>Ne,Lowercase:()=>qS,Mapped:()=>mS,Never:()=>Be,Not:()=>JS,Null:()=>Zu,Number:()=>_r,Object:()=>We,Omit:()=>Zo,Optional:()=>pn,Parameters:()=>tI,Partial:()=>el,Pick:()=>Xo,Promise:()=>Gu,Readonly:()=>$n,ReadonlyOptional:()=>aI,Record:()=>cI,Recursive:()=>uI,Ref:()=>lI,RegExp:()=>fI,Required:()=>tl,Rest:()=>mI,ReturnType:()=>gI,Strict:()=>yI,String:()=>Ln,Symbol:()=>Xu,TemplateLiteral:()=>Bu,Transform:()=>xI,Tuple:()=>br,Uint8Array:()=>Ku,Uncapitalize:()=>KS,Undefined:()=>qu,Union:()=>Ve,Unknown:()=>Yr,Unsafe:()=>nl,Uppercase:()=>YS,Void:()=>vI});f();var p=vx;f();var Va=p.Object({externalId:p.String({description:"An identifier that can be used to link this entity to data outside of the MVF."}),name:p.String({description:"The name of the entity."}),shortName:p.String({description:"A short name for the entity."}),description:p.String({description:"A description of the entity."}),icon:p.String({format:"uri",description:"A URL to an icon for the entity."})},{$id:"BaseDetails",description:"Additional information about a given entity."}),_x=p.Partial(Va,{$id:"Details",description:"Additional information about a given entity."}),wn=p.Object({details:p.Optional(p.Ref(_x))},{$id:"WithDetails"}),qi=o(e=>{let t=[...e].sort(),n=p.Pick(Va,e),i=p.Omit(Va,e);return p.Object({details:p.Intersect([n,p.Partial(i)])},{$id:"WithRequiredDetails_".concat(t.join("_"))})},"WithRequiredDetails"),bx=[Va,_x];f();var qo=p.Number({$id:"Longitude",minimum:-180,maximum:180,description:"A WGS 84-compatible longitude coordinate value."}),Ko=p.Number({$id:"Latitude",minimum:-90,maximum:90,description:"A WGS 84-compatible latitude coordinate value."}),Ki=p.Tuple([p.Ref(qo),p.Ref(Ko)],{$id:"Position",minItems:2,maxItems:2,description:"A valid WGS 84 position consisting of a longitude value, followed by a latitude value."}),Xt=p.Object({type:p.Literal("Point"),coordinates:p.Ref(Ki)},{$id:"Point",description:"An RFC-7946 compatible GeoJSON Point geometry."}),rl=p.Object({type:p.Literal("MultiPoint"),coordinates:p.Array(p.Ref(Ki))},{$id:"MultiPoint",description:"An RFC-7946 compatible GeoJSON MultiPoint geometry."}),il=p.Object({type:p.Literal("LineString"),coordinates:p.Array(p.Ref(Ki),{minItems:2,description:"At least two positions are required."})},{$id:"LineString",description:"An RFC-7946 compatible GeoJSON LineString geometry."}),ol=p.Object({type:p.Literal("MultiLineString"),coordinates:p.Array(p.Array(p.Ref(Ki),{minItems:2}))},{$id:"MultiLineString",description:"An RFC-7946 compatible GeoJSON MultiLineString geometry."}),_I=p.Array(p.Ref(Ki),{$id:"LinearRing",minItems:4,description:"A linear ring is a building block of a polygon or multi-polygon."}),Sx=p.Array(p.Ref(_I),{$id:"LinearRings",minItems:1,description:"A collection of linear rings, at least one of which is the exterior ring of a polygon."}),Yo=p.Object({type:p.Literal("Polygon"),coordinates:p.Ref(Sx)},{$id:"Polygon",description:"An RFC-7946 compatible GeoJSON Polygon geometry."}),Jo=p.Object({type:p.Literal("MultiPolygon"),coordinates:p.Array(p.Ref(Sx))},{$id:"MultiPolygon",description:"An RFC-7946 compatible GeoJSON MultiPolygon geometry."}),Nt=o((e,t,n)=>p.Object({type:p.Literal("Feature"),geometry:e,properties:t},n),"Feature"),an=o((e,t,n)=>p.Object({type:p.Literal("FeatureCollection"),features:p.Array(e,n)},t),"FeatureCollection"),Ix=[qo,Ko,Ki,Xt,rl,il,ol,_I,Sx,Yo,Jo];f();var mt=o((e,t)=>p.Unsafe(p.String({$id:t,pattern:"^".concat(e,"_[A-Za-z0-9-]+$")})),"Ident"),qt=mt("g","GeometryId"),_e=mt("f","FloorId"),wx=[qt,_e];f();f();f();var Mx=class Mx{constructor(t){Xe(this,"_value");this._value=t}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let t=this._value;return this._value=null,{done:!1,value:t}}};o(Mx,"OptionIterator");var sl=Mx,Ex=class Ex{constructor(t){Xe(this,"_tag","Some");Xe(this,"_value");this._value=t}get value(){return this._value}isSome(){return!0}isSomeAnd(t){return t(this.value)}isNone(){return!1}equals(t){return t.isSome()&&t.value===this.value}expect(t){return this.value}unwrap(){return this.value}unwrapOr(t){return this.value}unwrapOrElse(t){return this.value}inspect(t){return t(this.value),this}inspectNone(t){return this}map(t){return bI(t(this.value))}mapAsync(t){return t(this.value).then(n=>bI(n))}mapOr(t,n){return this.map(t).unwrapOr(n)}mapOrAsync(t,n){return this.mapAsync(t).then(i=>i.unwrapOr(n))}mapOrElse(t,n){return this.map(t).unwrapOrElse(n)}mapOrElseAsync(t,n){return this.mapAsync(t).then(i=>i.unwrapOrElse(n))}and(t){return t}andThen(t){return t(this.value)}andThenAsync(t){return t(this.value)}filter(t){return t(this.value)?this:Ai()}or(t){return this}orElse(t){return this}xor(t){return t.isSome()?Ai():this}toString(){return"Some(".concat(this.value,")")}okOr(t){return Y(this.value)}okOrElse(t){return Y(this.value)}iter(){return new sl(this.value)}[Symbol.iterator](){return this.iter()}zip(t){return t.isSome()?Qo([this.value,t.value]):Ai()}zipWith(t,n){return t.isSome()?Qo(n(this.value,t.value)):Ai()}get[Symbol.toStringTag](){return"Some"}};o(Ex,"Some");var al=Ex,Tx=class Tx{constructor(){Xe(this,"_tag","None")}get value(){return null}isSome(){return!1}isSomeAnd(t){return!1}isNone(){return!0}equals(t){return t.isNone()}expect(t){throw new Error(t)}unwrap(){throw new Error("Tried to unwrap a None value!")}unwrapOr(t){return t}unwrapOrElse(t){return t()}inspect(t){return this}inspectNone(t){return t(),this}map(t){return this}mapAsync(t){return Promise.resolve(this)}mapOr(t,n){return n}mapOrAsync(t,n){return Promise.resolve(n)}mapOrElse(t,n){return n()}mapOrElseAsync(t,n){return n()}and(t){return this}andThen(t){return this}andThenAsync(t){return Promise.resolve(this)}filter(t){return this}or(t){return t}orElse(t){return t()}xor(t){return t}toString(){return"None"}okOr(t){return J(t)}okOrElse(t){return J(t())}iter(){return new sl(null)}[Symbol.iterator](){return this.iter()}zip(t){return this}zipWith(t,n){return this}get[Symbol.toStringTag](){return"None"}};o(Tx,"None");var cl=Tx,Qo=o(e=>new al(e),"some"),Ai=o(()=>new cl,"none"),bI=o(e=>e instanceof al||e instanceof cl?e:e==null?Ai():Qo(e),"option");var Rx=class Rx{constructor(t){Xe(this,"_value");this._value=t}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let t=this._value;return this._value=null,{done:!1,value:t}}};o(Rx,"ResultIterator");var ul=Rx,Cx=class Cx{constructor(t){Xe(this,"_tag","Ok");Xe(this,"_value");this._value=t}get value(){return this._value}get error(){return null}isOk(){return!0}isOkAnd(t){return t(this.value)}isErr(){return!1}isErrAnd(t){return!1}ok(){return Qo(this.value)}err(){return Ai()}expect(t){return this.value}expectErr(t){throw new Error(t)}unwrap(){return this.value}unwrapOr(t){return this.value}unwrapOrElse(t){return this.value}inspect(t){return t(this.value),this}inspectErr(){return this}map(t){return Y(t(this.value))}async mapAsync(t){return t(this.value).then(Y)}mapOr(t,n){return t(this.value)}async mapOrAsync(t,n){return t(this.value)}mapOrElse(t,n){return t(this.value)}async mapOrElseAsync(t,n){return t(this.value)}mapErr(t){return this}iter(){return new ul(this.value)}[Symbol.iterator](){return this.iter()}and(t){return t}andThen(t){return t(this.value)}or(t){return this}orElse(t){return this}async andThenAsync(t){return t(this.value)}toString(){return"Ok(".concat(this.value,")")}get[Symbol.toStringTag](){return"Ok"}};o(Cx,"Ok");var Ax=Cx,ll=class ll{constructor(t){Xe(this,"_tag","Err");Xe(this,"_error");this._error=t}get value(){return null}get error(){return this._error}isOk(){return!1}isOkAnd(t){return!1}isErr(){return!0}isErrAnd(t){return t(this.error)}ok(){return Ai()}err(){return Qo(this.error)}expect(t){throw new Error(t)}expectErr(t){return this.error}unwrap(){throw this.error}unwrapOr(t){return t}unwrapOrElse(t){return t()}inspect(){return this}inspectErr(t){return t(this.error),this}map(t){return this}iter(){return new ul(null)}[Symbol.iterator](){return this.iter()}async mapAsync(t){return this}mapOr(t,n){return n}async mapOrAsync(t,n){return n}mapOrElse(t,n){return n()}async mapOrElseAsync(t,n){return n()}mapErr(t){return new ll(t(this.error))}and(t){return this}andThen(t){return this}async andThenAsync(t){return this}or(t){return t}orElse(t){return t(this.error)}toString(){return"Err(".concat(this.error,")")}get[Symbol.toStringTag](){return"Err"}};o(ll,"Err");var Px=ll,Y=o(e=>new Ax(e),"ok"),J=o(e=>new Px(e),"err");f();var yn;(function(e){e.GeometryMissingError="GeometryMissingError",e.FloorMissingError="FloorMissingError",e.UnknownFloorError="UnknownFloorError",e.UnknownGeometryError="UnknownGeometryError",e.DuplicateIdError="DuplicateIdError"})(yn||(yn={}));f();f();f();f();var Ux=class Ux extends re{constructor(t){super("Duplicate type kind '".concat(t,"' detected"))}};o(Ux,"TypeSystemDuplicateTypeKind");var Ox=Ux,Fx=class Fx extends re{constructor(t){super("Duplicate string format '".concat(t,"' detected"))}};o(Fx,"TypeSystemDuplicateFormat");var ja=Fx,fl;(function(e){function t(i,r){if(Et.Has(i))throw new Ox(i);return Et.Set(i,r),(s={})=>nl(L(x({},s),{[P]:i}))}o(t,"Type"),e.Type=t;function n(i,r){if(sn.Has(i))throw new ja(i);return sn.Set(i,r),i}o(n,"Format"),e.Format=n})(fl||(fl={}));f();function bD(e){switch(e.errorType){case R.ArrayContains:return"Expected array to contain at least one matching value";case R.ArrayMaxContains:return"Expected array to contain no more than ".concat(e.schema.maxContains," matching values");case R.ArrayMinContains:return"Expected array to contain at least ".concat(e.schema.minContains," matching values");case R.ArrayMaxItems:return"Expected array length to be less or equal to ".concat(e.schema.maxItems);case R.ArrayMinItems:return"Expected array length to be greater or equal to ".concat(e.schema.minItems);case R.ArrayUniqueItems:return"Expected array elements to be unique";case R.Array:return"Expected array";case R.AsyncIterator:return"Expected AsyncIterator";case R.BigIntExclusiveMaximum:return"Expected bigint to be less than ".concat(e.schema.exclusiveMaximum);case R.BigIntExclusiveMinimum:return"Expected bigint to be greater than ".concat(e.schema.exclusiveMinimum);case R.BigIntMaximum:return"Expected bigint to be less or equal to ".concat(e.schema.maximum);case R.BigIntMinimum:return"Expected bigint to be greater or equal to ".concat(e.schema.minimum);case R.BigIntMultipleOf:return"Expected bigint to be a multiple of ".concat(e.schema.multipleOf);case R.BigInt:return"Expected bigint";case R.Boolean:return"Expected boolean";case R.DateExclusiveMinimumTimestamp:return"Expected Date timestamp to be greater than ".concat(e.schema.exclusiveMinimumTimestamp);case R.DateExclusiveMaximumTimestamp:return"Expected Date timestamp to be less than ".concat(e.schema.exclusiveMaximumTimestamp);case R.DateMinimumTimestamp:return"Expected Date timestamp to be greater or equal to ".concat(e.schema.minimumTimestamp);case R.DateMaximumTimestamp:return"Expected Date timestamp to be less or equal to ".concat(e.schema.maximumTimestamp);case R.DateMultipleOfTimestamp:return"Expected Date timestamp to be a multiple of ".concat(e.schema.multipleOfTimestamp);case R.Date:return"Expected Date";case R.Function:return"Expected function";case R.IntegerExclusiveMaximum:return"Expected integer to be less than ".concat(e.schema.exclusiveMaximum);case R.IntegerExclusiveMinimum:return"Expected integer to be greater than ".concat(e.schema.exclusiveMinimum);case R.IntegerMaximum:return"Expected integer to be less or equal to ".concat(e.schema.maximum);case R.IntegerMinimum:return"Expected integer to be greater or equal to ".concat(e.schema.minimum);case R.IntegerMultipleOf:return"Expected integer to be a multiple of ".concat(e.schema.multipleOf);case R.Integer:return"Expected integer";case R.IntersectUnevaluatedProperties:return"Unexpected property";case R.Intersect:return"Expected all values to match";case R.Iterator:return"Expected Iterator";case R.Literal:return"Expected ".concat(typeof e.schema.const=="string"?"'".concat(e.schema.const,"'"):e.schema.const);case R.Never:return"Never";case R.Not:return"Value should not match";case R.Null:return"Expected null";case R.NumberExclusiveMaximum:return"Expected number to be less than ".concat(e.schema.exclusiveMaximum);case R.NumberExclusiveMinimum:return"Expected number to be greater than ".concat(e.schema.exclusiveMinimum);case R.NumberMaximum:return"Expected number to be less or equal to ".concat(e.schema.maximum);case R.NumberMinimum:return"Expected number to be greater or equal to ".concat(e.schema.minimum);case R.NumberMultipleOf:return"Expected number to be a multiple of ".concat(e.schema.multipleOf);case R.Number:return"Expected number";case R.Object:return"Expected object";case R.ObjectAdditionalProperties:return"Unexpected property";case R.ObjectMaxProperties:return"Expected object to have no more than ".concat(e.schema.maxProperties," properties");case R.ObjectMinProperties:return"Expected object to have at least ".concat(e.schema.minProperties," properties");case R.ObjectRequiredProperty:return"Expected required property";case R.Promise:return"Expected Promise";case R.RegExp:return"Expected string to match regular expression";case R.StringFormatUnknown:return"Unknown format '".concat(e.schema.format,"'");case R.StringFormat:return"Expected string to match '".concat(e.schema.format,"' format");case R.StringMaxLength:return"Expected string length less or equal to ".concat(e.schema.maxLength);case R.StringMinLength:return"Expected string length greater or equal to ".concat(e.schema.minLength);case R.StringPattern:return"Expected string to match '".concat(e.schema.pattern,"'");case R.String:return"Expected string";case R.Symbol:return"Expected symbol";case R.TupleLength:return"Expected tuple to have ".concat(e.schema.maxItems||0," elements");case R.Tuple:return"Expected tuple";case R.Uint8ArrayMaxByteLength:return"Expected byte length less or equal to ".concat(e.schema.maxByteLength);case R.Uint8ArrayMinByteLength:return"Expected byte length greater or equal to ".concat(e.schema.minByteLength);case R.Uint8Array:return"Expected Uint8Array";case R.Undefined:return"Expected undefined";case R.Union:return"Expected union value";case R.Void:return"Expected void";case R.Kind:return"Expected kind '".concat(e.schema[P],"'");default:return"Unknown error type"}}o(bD,"DefaultErrorFunction");var SD=bD;function SI(){return SD}o(SI,"GetErrorFunction");f();var kx=class kx extends re{constructor(t){super("Unable to dereference schema with $id '".concat(t.$ref,"'")),this.schema=t}};o(kx,"TypeDereferenceError");var Nx=kx;function ID(e,t){let n=t.find(i=>i.$id===e.$ref);if(n===void 0)throw new Nx(e);return Ae(n,t)}o(ID,"Resolve");function jn(e,t){return!Se(e.$id)||t.some(n=>n.$id===e.$id)||t.push(e),t}o(jn,"Pushref");function Ae(e,t){return e[P]==="This"||e[P]==="Ref"?ID(e,t):e}o(Ae,"Deref");f();var Lx=class Lx extends re{constructor(t){super("Unable to hash value"),this.value=t}};o(Lx,"ValueHashError");var Dx=Lx,Mn;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(Mn||(Mn={}));var es=BigInt("14695981039346656037"),[wD,MD]=[BigInt("1099511628211"),BigInt("18446744073709551616")],ED=Array.from({length:256}).map((e,t)=>BigInt(t)),II=new Float64Array(1),wI=new DataView(II.buffer),MI=new Uint8Array(II.buffer);function*TD(e){let t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let n=0;n<t;n++)yield e>>8*(t-1-n)&255}o(TD,"NumberToBytes");function AD(e){Kt(Mn.Array);for(let t of e)ts(t)}o(AD,"ArrayType");function PD(e){Kt(Mn.Boolean),Kt(e?1:0)}o(PD,"BooleanType");function RD(e){Kt(Mn.BigInt),wI.setBigInt64(0,e);for(let t of MI)Kt(t)}o(RD,"BigIntType");function CD(e){Kt(Mn.Date),ts(e.getTime())}o(CD,"DateType");function OD(e){Kt(Mn.Null)}o(OD,"NullType");function UD(e){Kt(Mn.Number),wI.setFloat64(0,e);for(let t of MI)Kt(t)}o(UD,"NumberType");function FD(e){Kt(Mn.Object);for(let t of globalThis.Object.getOwnPropertyNames(e).sort())ts(t),ts(e[t])}o(FD,"ObjectType");function ND(e){Kt(Mn.String);for(let t=0;t<e.length;t++)for(let n of TD(e.charCodeAt(t)))Kt(n)}o(ND,"StringType");function kD(e){Kt(Mn.Symbol),ts(e.description)}o(kD,"SymbolType");function DD(e){Kt(Mn.Uint8Array);for(let t=0;t<e.length;t++)Kt(e[t])}o(DD,"Uint8ArrayType");function LD(e){return Kt(Mn.Undefined)}o(LD,"UndefinedType");function ts(e){if(ae(e))return AD(e);if(yr(e))return PD(e);if(Ut(e))return RD(e);if(rn(e))return CD(e);if(Vr(e))return OD(e);if(ee(e))return UD(e);if(fe(e))return FD(e);if(Se(e))return ND(e);if(jr(e))return kD(e);if(Uo(e))return DD(e);if(ut(e))return LD(e);throw new Dx(e)}o(ts,"Visit");function Kt(e){es=es^ED[e],es=es*wD%MD}o(Kt,"FNV1A64");function Pi(e){return es=BigInt("14695981039346656037"),ts(e),es}o(Pi,"Hash");f();var zx=class zx extends re{constructor(t){super("Unknown type"),this.schema=t}};o(zx,"ValueCheckUnknownTypeError");var $x=zx;function $D(e){return e[P]==="Any"||e[P]==="Unknown"}o($D,"IsAnyOrUnknown");function ye(e){return e!==void 0}o(ye,"IsDefined");function zD(e,t,n){return!0}o(zD,"FromAny");function BD(e,t,n){if(!ae(n)||ye(e.minItems)&&!(n.length>=e.minItems)||ye(e.maxItems)&&!(n.length<=e.maxItems)||!n.every(s=>kt(e.items,t,s))||e.uniqueItems===!0&&!function(){let s=new Set;for(let a of n){let u=Pi(a);if(s.has(u))return!1;s.add(u)}return!0}())return!1;if(!(ye(e.contains)||ee(e.minContains)||ee(e.maxContains)))return!0;let i=ye(e.contains)?e.contains:Be(),r=n.reduce((s,a)=>kt(i,t,a)?s+1:s,0);return!(r===0||ee(e.minContains)&&r<e.minContains||ee(e.maxContains)&&r>e.maxContains)}o(BD,"FromArray");function VD(e,t,n){return Cu(n)}o(VD,"FromAsyncIterator");function jD(e,t,n){return!(!Ut(n)||ye(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||ye(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||ye(e.maximum)&&!(n<=e.maximum)||ye(e.minimum)&&!(n>=e.minimum)||ye(e.multipleOf)&&n%e.multipleOf!==BigInt(0))}o(jD,"FromBigInt");function GD(e,t,n){return yr(n)}o(GD,"FromBoolean");function HD(e,t,n){return kt(e.returns,t,n.prototype)}o(HD,"FromConstructor");function WD(e,t,n){return!(!rn(n)||ye(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)||ye(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)||ye(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)||ye(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)||ye(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0)}o(WD,"FromDate");function ZD(e,t,n){return bi(n)}o(ZD,"FromFunction");function XD(e,t,n){return!(!Fu(n)||ye(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||ye(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||ye(e.maximum)&&!(n<=e.maximum)||ye(e.minimum)&&!(n>=e.minimum)||ye(e.multipleOf)&&n%e.multipleOf!==0)}o(XD,"FromInteger");function qD(e,t,n){let i=e.allOf.every(r=>kt(r,t,n));if(e.unevaluatedProperties===!1){let r=new RegExp(Kr(e)),s=Object.getOwnPropertyNames(n).every(a=>r.test(a));return i&&s}else if(Ie(e.unevaluatedProperties)){let r=new RegExp(Kr(e)),s=Object.getOwnPropertyNames(n).every(a=>r.test(a)||kt(e.unevaluatedProperties,t,n[a]));return i&&s}else return i}o(qD,"FromIntersect");function KD(e,t,n){return Ou(n)}o(KD,"FromIterator");function YD(e,t,n){return n===e.const}o(YD,"FromLiteral");function JD(e,t,n){return!1}o(JD,"FromNever");function QD(e,t,n){return!kt(e.not,t,n)}o(QD,"FromNot");function eL(e,t,n){return Vr(n)}o(eL,"FromNull");function tL(e,t,n){return!(!Le.IsNumberLike(n)||ye(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||ye(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||ye(e.minimum)&&!(n>=e.minimum)||ye(e.maximum)&&!(n<=e.maximum)||ye(e.multipleOf)&&n%e.multipleOf!==0)}o(tL,"FromNumber");function nL(e,t,n){if(!Le.IsObjectLike(n)||ye(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||ye(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;let i=Object.getOwnPropertyNames(e.properties);for(let r of i){let s=e.properties[r];if(e.required&&e.required.includes(r)){if(!kt(s,t,n[r])||(Jr(s)||$D(s))&&!(r in n))return!1}else if(Le.IsExactOptionalProperty(n,r)&&!kt(s,t,n[r]))return!1}if(e.additionalProperties===!1){let r=Object.getOwnPropertyNames(n);return e.required&&e.required.length===i.length&&r.length===i.length?!0:r.every(s=>i.includes(s))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(n).every(s=>i.includes(s)||kt(e.additionalProperties,t,n[s])):!0}o(nL,"FromObject");function rL(e,t,n){return Uu(n)}o(rL,"FromPromise");function iL(e,t,n){if(!Le.IsRecordLike(n)||ye(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||ye(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;let[i,r]=Object.entries(e.patternProperties)[0],s=new RegExp(i),a=Object.entries(n).every(([c,d])=>s.test(c)?kt(r,t,d):!0),u=typeof e.additionalProperties=="object"?Object.entries(n).every(([c,d])=>s.test(c)?!0:kt(e.additionalProperties,t,d)):!0,l=e.additionalProperties===!1?Object.getOwnPropertyNames(n).every(c=>s.test(c)):!0;return a&&u&&l}o(iL,"FromRecord");function oL(e,t,n){return kt(Ae(e,t),t,n)}o(oL,"FromRef");function sL(e,t,n){let i=new RegExp(e.source,e.flags);return ye(e.minLength)&&!(n.length>=e.minLength)||ye(e.maxLength)&&!(n.length<=e.maxLength)?!1:i.test(n)}o(sL,"FromRegExp");function aL(e,t,n){return!Se(n)||ye(e.minLength)&&!(n.length>=e.minLength)||ye(e.maxLength)&&!(n.length<=e.maxLength)||ye(e.pattern)&&!new RegExp(e.pattern).test(n)?!1:ye(e.format)?sn.Has(e.format)?sn.Get(e.format)(n):!1:!0}o(aL,"FromString");function cL(e,t,n){return jr(n)}o(cL,"FromSymbol");function uL(e,t,n){return Se(n)&&new RegExp(e.pattern).test(n)}o(uL,"FromTemplateLiteral");function lL(e,t,n){return kt(Ae(e,t),t,n)}o(lL,"FromThis");function fL(e,t,n){if(!ae(n)||e.items===void 0&&n.length!==0||n.length!==e.maxItems)return!1;if(!e.items)return!0;for(let i=0;i<e.items.length;i++)if(!kt(e.items[i],t,n[i]))return!1;return!0}o(fL,"FromTuple");function dL(e,t,n){return ut(n)}o(dL,"FromUndefined");function pL(e,t,n){return e.anyOf.some(i=>kt(i,t,n))}o(pL,"FromUnion");function hL(e,t,n){return!(!Uo(n)||ye(e.maxByteLength)&&!(n.length<=e.maxByteLength)||ye(e.minByteLength)&&!(n.length>=e.minByteLength))}o(hL,"FromUint8Array");function mL(e,t,n){return!0}o(mL,"FromUnknown");function gL(e,t,n){return Le.IsVoidLike(n)}o(gL,"FromVoid");function yL(e,t,n){return Et.Has(e[P])?Et.Get(e[P])(e,n):!1}o(yL,"FromKind");function kt(e,t,n){let i=ye(e.$id)?[...t,e]:t,r=e;switch(r[P]){case"Any":return zD(r,i,n);case"Array":return BD(r,i,n);case"AsyncIterator":return VD(r,i,n);case"BigInt":return jD(r,i,n);case"Boolean":return GD(r,i,n);case"Constructor":return HD(r,i,n);case"Date":return WD(r,i,n);case"Function":return ZD(r,i,n);case"Integer":return XD(r,i,n);case"Intersect":return qD(r,i,n);case"Iterator":return KD(r,i,n);case"Literal":return YD(r,i,n);case"Never":return JD(r,i,n);case"Not":return QD(r,i,n);case"Null":return eL(r,i,n);case"Number":return tL(r,i,n);case"Object":return nL(r,i,n);case"Promise":return rL(r,i,n);case"Record":return iL(r,i,n);case"Ref":return oL(r,i,n);case"RegExp":return sL(r,i,n);case"String":return aL(r,i,n);case"Symbol":return cL(r,i,n);case"TemplateLiteral":return uL(r,i,n);case"This":return lL(r,i,n);case"Tuple":return fL(r,i,n);case"Undefined":return dL(r,i,n);case"Union":return pL(r,i,n);case"Uint8Array":return hL(r,i,n);case"Unknown":return mL(r,i,n);case"Void":return gL(r,i,n);default:if(!Et.Has(r[P]))throw new $x(r);return yL(r,i,n)}}o(kt,"Visit");function pe(...e){return e.length===3?kt(e[0],e[1],e[2]):kt(e[0],[],e[1])}o(pe,"Check");var R;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(R||(R={}));var Vx=class Vx extends re{constructor(t){super("Unknown type"),this.schema=t}};o(Vx,"ValueErrorsUnknownTypeError");var Bx=Vx;function Qr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Qr,"EscapeKey");function xe(e){return e!==void 0}o(xe,"IsDefined");var jx=class jx{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){let t=this.iterator.next();return t.done?void 0:t.value}};o(jx,"ValueErrorIterator");var Gn=jx;function Z(e,t,n,i,r=[]){return{type:e,schema:t,path:n,value:i,message:SI()({errorType:e,path:n,schema:t,value:i,errors:r}),errors:r}}o(Z,"Create");function*xL(e,t,n,i){}o(xL,"FromAny");function*vL(e,t,n,i){if(!ae(i))return yield Z(R.Array,e,n,i);xe(e.minItems)&&!(i.length>=e.minItems)&&(yield Z(R.ArrayMinItems,e,n,i)),xe(e.maxItems)&&!(i.length<=e.maxItems)&&(yield Z(R.ArrayMaxItems,e,n,i));for(let a=0;a<i.length;a++)yield*k(Dt(e.items,t,"".concat(n,"/").concat(a),i[a]));if(e.uniqueItems===!0&&!function(){let a=new Set;for(let u of i){let l=Pi(u);if(a.has(l))return!1;a.add(l)}return!0}()&&(yield Z(R.ArrayUniqueItems,e,n,i)),!(xe(e.contains)||xe(e.minContains)||xe(e.maxContains)))return;let r=xe(e.contains)?e.contains:Be(),s=i.reduce((a,u,l)=>Dt(r,t,"".concat(n).concat(l),u).next().done===!0?a+1:a,0);s===0&&(yield Z(R.ArrayContains,e,n,i)),ee(e.minContains)&&s<e.minContains&&(yield Z(R.ArrayMinContains,e,n,i)),ee(e.maxContains)&&s>e.maxContains&&(yield Z(R.ArrayMaxContains,e,n,i))}o(vL,"FromArray");function*_L(e,t,n,i){Cu(i)||(yield Z(R.AsyncIterator,e,n,i))}o(_L,"FromAsyncIterator");function*bL(e,t,n,i){if(!Ut(i))return yield Z(R.BigInt,e,n,i);xe(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)&&(yield Z(R.BigIntExclusiveMaximum,e,n,i)),xe(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)&&(yield Z(R.BigIntExclusiveMinimum,e,n,i)),xe(e.maximum)&&!(i<=e.maximum)&&(yield Z(R.BigIntMaximum,e,n,i)),xe(e.minimum)&&!(i>=e.minimum)&&(yield Z(R.BigIntMinimum,e,n,i)),xe(e.multipleOf)&&i%e.multipleOf!==BigInt(0)&&(yield Z(R.BigIntMultipleOf,e,n,i))}o(bL,"FromBigInt");function*SL(e,t,n,i){yr(i)||(yield Z(R.Boolean,e,n,i))}o(SL,"FromBoolean");function*IL(e,t,n,i){yield*k(Dt(e.returns,t,n,i.prototype))}o(IL,"FromConstructor");function*wL(e,t,n,i){if(!rn(i))return yield Z(R.Date,e,n,i);xe(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)&&(yield Z(R.DateExclusiveMaximumTimestamp,e,n,i)),xe(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)&&(yield Z(R.DateExclusiveMinimumTimestamp,e,n,i)),xe(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)&&(yield Z(R.DateMaximumTimestamp,e,n,i)),xe(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)&&(yield Z(R.DateMinimumTimestamp,e,n,i)),xe(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0&&(yield Z(R.DateMultipleOfTimestamp,e,n,i))}o(wL,"FromDate");function*ML(e,t,n,i){bi(i)||(yield Z(R.Function,e,n,i))}o(ML,"FromFunction");function*EL(e,t,n,i){if(!Fu(i))return yield Z(R.Integer,e,n,i);xe(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)&&(yield Z(R.IntegerExclusiveMaximum,e,n,i)),xe(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)&&(yield Z(R.IntegerExclusiveMinimum,e,n,i)),xe(e.maximum)&&!(i<=e.maximum)&&(yield Z(R.IntegerMaximum,e,n,i)),xe(e.minimum)&&!(i>=e.minimum)&&(yield Z(R.IntegerMinimum,e,n,i)),xe(e.multipleOf)&&i%e.multipleOf!==0&&(yield Z(R.IntegerMultipleOf,e,n,i))}o(EL,"FromInteger");function*TL(e,t,n,i){let r=!1;for(let s of e.allOf)for(let a of Dt(s,t,n,i))r=!0,yield a;if(r)return yield Z(R.Intersect,e,n,i);if(e.unevaluatedProperties===!1){let s=new RegExp(Kr(e));for(let a of Object.getOwnPropertyNames(i))s.test(a)||(yield Z(R.IntersectUnevaluatedProperties,e,"".concat(n,"/").concat(a),i))}if(typeof e.unevaluatedProperties=="object"){let s=new RegExp(Kr(e));for(let a of Object.getOwnPropertyNames(i))if(!s.test(a)){let u=Dt(e.unevaluatedProperties,t,"".concat(n,"/").concat(a),i[a]).next();u.done||(yield u.value)}}}o(TL,"FromIntersect");function*AL(e,t,n,i){Ou(i)||(yield Z(R.Iterator,e,n,i))}o(AL,"FromIterator");function*PL(e,t,n,i){i!==e.const&&(yield Z(R.Literal,e,n,i))}o(PL,"FromLiteral");function*RL(e,t,n,i){yield Z(R.Never,e,n,i)}o(RL,"FromNever");function*CL(e,t,n,i){Dt(e.not,t,n,i).next().done===!0&&(yield Z(R.Not,e,n,i))}o(CL,"FromNot");function*OL(e,t,n,i){Vr(i)||(yield Z(R.Null,e,n,i))}o(OL,"FromNull");function*UL(e,t,n,i){if(!Le.IsNumberLike(i))return yield Z(R.Number,e,n,i);xe(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)&&(yield Z(R.NumberExclusiveMaximum,e,n,i)),xe(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)&&(yield Z(R.NumberExclusiveMinimum,e,n,i)),xe(e.maximum)&&!(i<=e.maximum)&&(yield Z(R.NumberMaximum,e,n,i)),xe(e.minimum)&&!(i>=e.minimum)&&(yield Z(R.NumberMinimum,e,n,i)),xe(e.multipleOf)&&i%e.multipleOf!==0&&(yield Z(R.NumberMultipleOf,e,n,i))}o(UL,"FromNumber");function*FL(e,t,n,i){if(!Le.IsObjectLike(i))return yield Z(R.Object,e,n,i);xe(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)&&(yield Z(R.ObjectMinProperties,e,n,i)),xe(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties)&&(yield Z(R.ObjectMaxProperties,e,n,i));let r=Array.isArray(e.required)?e.required:[],s=Object.getOwnPropertyNames(e.properties),a=Object.getOwnPropertyNames(i);for(let u of r)a.includes(u)||(yield Z(R.ObjectRequiredProperty,e.properties[u],"".concat(n,"/").concat(Qr(u)),void 0));if(e.additionalProperties===!1)for(let u of a)s.includes(u)||(yield Z(R.ObjectAdditionalProperties,e,"".concat(n,"/").concat(Qr(u)),i[u]));if(typeof e.additionalProperties=="object")for(let u of a)s.includes(u)||(yield*k(Dt(e.additionalProperties,t,"".concat(n,"/").concat(Qr(u)),i[u])));for(let u of s){let l=e.properties[u];e.required&&e.required.includes(u)?(yield*k(Dt(l,t,"".concat(n,"/").concat(Qr(u)),i[u])),Jr(e)&&!(u in i)&&(yield Z(R.ObjectRequiredProperty,l,"".concat(n,"/").concat(Qr(u)),void 0))):Le.IsExactOptionalProperty(i,u)&&(yield*k(Dt(l,t,"".concat(n,"/").concat(Qr(u)),i[u])))}}o(FL,"FromObject");function*NL(e,t,n,i){Uu(i)||(yield Z(R.Promise,e,n,i))}o(NL,"FromPromise");function*kL(e,t,n,i){if(!Le.IsRecordLike(i))return yield Z(R.Object,e,n,i);xe(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)&&(yield Z(R.ObjectMinProperties,e,n,i)),xe(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties)&&(yield Z(R.ObjectMaxProperties,e,n,i));let[r,s]=Object.entries(e.patternProperties)[0],a=new RegExp(r);for(let[u,l]of Object.entries(i))a.test(u)&&(yield*k(Dt(s,t,"".concat(n,"/").concat(Qr(u)),l)));if(typeof e.additionalProperties=="object")for(let[u,l]of Object.entries(i))a.test(u)||(yield*k(Dt(e.additionalProperties,t,"".concat(n,"/").concat(Qr(u)),l)));if(e.additionalProperties===!1){for(let[u,l]of Object.entries(i))if(!a.test(u))return yield Z(R.ObjectAdditionalProperties,e,"".concat(n,"/").concat(Qr(u)),l)}}o(kL,"FromRecord");function*DL(e,t,n,i){yield*k(Dt(Ae(e,t),t,n,i))}o(DL,"FromRef");function*LL(e,t,n,i){if(!Se(i))return yield Z(R.String,e,n,i);if(xe(e.minLength)&&!(i.length>=e.minLength)&&(yield Z(R.StringMinLength,e,n,i)),xe(e.maxLength)&&!(i.length<=e.maxLength)&&(yield Z(R.StringMaxLength,e,n,i)),!new RegExp(e.source,e.flags).test(i))return yield Z(R.RegExp,e,n,i)}o(LL,"FromRegExp");function*$L(e,t,n,i){if(!Se(i))return yield Z(R.String,e,n,i);xe(e.minLength)&&!(i.length>=e.minLength)&&(yield Z(R.StringMinLength,e,n,i)),xe(e.maxLength)&&!(i.length<=e.maxLength)&&(yield Z(R.StringMaxLength,e,n,i)),Se(e.pattern)&&(new RegExp(e.pattern).test(i)||(yield Z(R.StringPattern,e,n,i))),Se(e.format)&&(sn.Has(e.format)?sn.Get(e.format)(i)||(yield Z(R.StringFormat,e,n,i)):yield Z(R.StringFormatUnknown,e,n,i))}o($L,"FromString");function*zL(e,t,n,i){jr(i)||(yield Z(R.Symbol,e,n,i))}o(zL,"FromSymbol");function*BL(e,t,n,i){if(!Se(i))return yield Z(R.String,e,n,i);new RegExp(e.pattern).test(i)||(yield Z(R.StringPattern,e,n,i))}o(BL,"FromTemplateLiteral");function*VL(e,t,n,i){yield*k(Dt(Ae(e,t),t,n,i))}o(VL,"FromThis");function*jL(e,t,n,i){if(!ae(i))return yield Z(R.Tuple,e,n,i);if(e.items===void 0&&i.length!==0)return yield Z(R.TupleLength,e,n,i);if(i.length!==e.maxItems)return yield Z(R.TupleLength,e,n,i);if(e.items)for(let r=0;r<e.items.length;r++)yield*k(Dt(e.items[r],t,"".concat(n,"/").concat(r),i[r]))}o(jL,"FromTuple");function*GL(e,t,n,i){ut(i)||(yield Z(R.Undefined,e,n,i))}o(GL,"FromUndefined");function*HL(e,t,n,i){if(pe(e,t,i))return;let r=e.anyOf.map(s=>new Gn(Dt(s,t,n,i)));yield Z(R.Union,e,n,i,r)}o(HL,"FromUnion");function*WL(e,t,n,i){if(!Uo(i))return yield Z(R.Uint8Array,e,n,i);xe(e.maxByteLength)&&!(i.length<=e.maxByteLength)&&(yield Z(R.Uint8ArrayMaxByteLength,e,n,i)),xe(e.minByteLength)&&!(i.length>=e.minByteLength)&&(yield Z(R.Uint8ArrayMinByteLength,e,n,i))}o(WL,"FromUint8Array");function*ZL(e,t,n,i){}o(ZL,"FromUnknown");function*XL(e,t,n,i){Le.IsVoidLike(i)||(yield Z(R.Void,e,n,i))}o(XL,"FromVoid");function*qL(e,t,n,i){Et.Get(e[P])(e,i)||(yield Z(R.Kind,e,n,i))}o(qL,"FromKind");function*Dt(e,t,n,i){let r=xe(e.$id)?[...t,e]:t,s=e;switch(s[P]){case"Any":return yield*k(xL(s,r,n,i));case"Array":return yield*k(vL(s,r,n,i));case"AsyncIterator":return yield*k(_L(s,r,n,i));case"BigInt":return yield*k(bL(s,r,n,i));case"Boolean":return yield*k(SL(s,r,n,i));case"Constructor":return yield*k(IL(s,r,n,i));case"Date":return yield*k(wL(s,r,n,i));case"Function":return yield*k(ML(s,r,n,i));case"Integer":return yield*k(EL(s,r,n,i));case"Intersect":return yield*k(TL(s,r,n,i));case"Iterator":return yield*k(AL(s,r,n,i));case"Literal":return yield*k(PL(s,r,n,i));case"Never":return yield*k(RL(s,r,n,i));case"Not":return yield*k(CL(s,r,n,i));case"Null":return yield*k(OL(s,r,n,i));case"Number":return yield*k(UL(s,r,n,i));case"Object":return yield*k(FL(s,r,n,i));case"Promise":return yield*k(NL(s,r,n,i));case"Record":return yield*k(kL(s,r,n,i));case"Ref":return yield*k(DL(s,r,n,i));case"RegExp":return yield*k(LL(s,r,n,i));case"String":return yield*k($L(s,r,n,i));case"Symbol":return yield*k(zL(s,r,n,i));case"TemplateLiteral":return yield*k(BL(s,r,n,i));case"This":return yield*k(VL(s,r,n,i));case"Tuple":return yield*k(jL(s,r,n,i));case"Undefined":return yield*k(GL(s,r,n,i));case"Union":return yield*k(HL(s,r,n,i));case"Uint8Array":return yield*k(WL(s,r,n,i));case"Unknown":return yield*k(ZL(s,r,n,i));case"Void":return yield*k(XL(s,r,n,i));default:if(!Et.Has(s[P]))throw new Bx(e);return yield*k(qL(s,r,n,i))}}o(Dt,"Visit");function Sr(...e){let t=e.length===3?Dt(e[0],e[1],"",e[2]):Dt(e[0],[],"",e[1]);return new Gn(t)}o(Sr,"Errors");f();f();var KL=function(e,t,n,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n},TI=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},Gx,dl,AI,Wx=class Wx extends re{constructor(t){let n=t.First();super(n===void 0?"Invalid Value":n.message),Gx.add(this),dl.set(this,void 0),KL(this,dl,t,"f"),this.error=n}Errors(){return new Gn(TI(this,Gx,"m",AI).call(this))}};o(Wx,"AssertError");var Hx=Wx;dl=new WeakMap,Gx=new WeakSet,AI=o(function*(){this.error&&(yield this.error),yield*k(TI(this,dl,"f"))},"_AssertError_Iterator");function EI(e,t,n){if(!pe(e,t,n))throw new Hx(Sr(e,t,n))}o(EI,"AssertValue");function pl(...e){return e.length===3?EI(e[0],e[1],e[2]):EI(e[0],[],e[1])}o(pl,"Assert");f();f();f();function YL(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Pe(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Pe(e[n]);return t}o(YL,"FromObject");function JL(e){return e.map(t=>Pe(t))}o(JL,"FromArray");function QL(e){return e.slice()}o(QL,"FromTypedArray");function e$(e){return new Map(Pe([...e.entries()]))}o(e$,"FromMap");function t$(e){return new Set(Pe([...e.entries()]))}o(t$,"FromSet");function n$(e){return new Date(e.toISOString())}o(n$,"FromDate");function Pe(e){if(ae(e))return JL(e);if(rn(e))return n$(e);if(kn(e))return QL(e);if(f0(e))return e$(e);if(d0(e))return t$(e);if(fe(e))return YL(e);if(Ft(e))return e;throw new Error("ValueClone: Unable to clone value")}o(Pe,"Clone");var Zx=class Zx extends re{constructor(t,n){super(n),this.schema=t}};o(Zx,"ValueCreateError");var En=Zx;function Re(e){return bi(e)?e():Pe(e)}o(Re,"FromDefault");function r$(e,t){return ie(e,"default")?Re(e.default):{}}o(r$,"FromAny");function i$(e,t){if(e.uniqueItems===!0&&!ie(e,"default"))throw new En(e,"Array with the uniqueItems constraint requires a default value");if("contains"in e&&!ie(e,"default"))throw new En(e,"Array with the contains constraint requires a default value");return"default"in e?Re(e.default):e.minItems!==void 0?Array.from({length:e.minItems}).map(n=>Tn(e.items,t)):[]}o(i$,"FromArray");function o$(e,t){return ie(e,"default")?Re(e.default):function(){return __(this,null,function*(){})}()}o(o$,"FromAsyncIterator");function s$(e,t){return ie(e,"default")?Re(e.default):BigInt(0)}o(s$,"FromBigInt");function a$(e,t){return ie(e,"default")?Re(e.default):!1}o(a$,"FromBoolean");function c$(e,t){if(ie(e,"default"))return Re(e.default);{let n=Tn(e.returns,t);return typeof n=="object"&&!Array.isArray(n)?class{constructor(){for(let[i,r]of Object.entries(n)){let s=this;s[i]=r}}}:class{}}}o(c$,"FromConstructor");function u$(e,t){return ie(e,"default")?Re(e.default):e.minimumTimestamp!==void 0?new Date(e.minimumTimestamp):new Date}o(u$,"FromDate");function l$(e,t){return ie(e,"default")?Re(e.default):()=>Tn(e.returns,t)}o(l$,"FromFunction");function f$(e,t){return ie(e,"default")?Re(e.default):e.minimum!==void 0?e.minimum:0}o(f$,"FromInteger");function d$(e,t){if(ie(e,"default"))return Re(e.default);{let n=e.allOf.reduce((i,r)=>{let s=Tn(r,t);return typeof s=="object"?x(x({},i),s):s},{});if(!pe(e,t,n))throw new En(e,"Intersect produced invalid value. Consider using a default value.");return n}}o(d$,"FromIntersect");function p$(e,t){return ie(e,"default")?Re(e.default):function*(){}()}o(p$,"FromIterator");function h$(e,t){return ie(e,"default")?Re(e.default):e.const}o(h$,"FromLiteral");function m$(e,t){if(ie(e,"default"))return Re(e.default);throw new En(e,"Never types cannot be created. Consider using a default value.")}o(m$,"FromNever");function g$(e,t){if(ie(e,"default"))return Re(e.default);throw new En(e,"Not types must have a default value")}o(g$,"FromNot");function y$(e,t){return ie(e,"default")?Re(e.default):null}o(y$,"FromNull");function x$(e,t){return ie(e,"default")?Re(e.default):e.minimum!==void 0?e.minimum:0}o(x$,"FromNumber");function v$(e,t){if(ie(e,"default"))return Re(e.default);{let n=new Set(e.required),i={};for(let[r,s]of Object.entries(e.properties))n.has(r)&&(i[r]=Tn(s,t));return i}}o(v$,"FromObject");function _$(e,t){return ie(e,"default")?Re(e.default):Promise.resolve(Tn(e.item,t))}o(_$,"FromPromise");function b$(e,t){let[n,i]=Object.entries(e.patternProperties)[0];if(ie(e,"default"))return Re(e.default);if(n===Xr||n===Zr)return{};{let r=n.slice(1,n.length-1).split("|"),s={};for(let a of r)s[a]=Tn(i,t);return s}}o(b$,"FromRecord");function S$(e,t){return ie(e,"default")?Re(e.default):Tn(Ae(e,t),t)}o(S$,"FromRef");function I$(e,t){if(ie(e,"default"))return Re(e.default);throw new En(e,"RegExp types cannot be created. Consider using a default value.")}o(I$,"FromRegExp");function w$(e,t){if(e.pattern!==void 0){if(ie(e,"default"))return Re(e.default);throw new En(e,"String types with patterns must specify a default value")}else if(e.format!==void 0){if(ie(e,"default"))return Re(e.default);throw new En(e,"String types with formats must specify a default value")}else return ie(e,"default")?Re(e.default):e.minLength!==void 0?Array.from({length:e.minLength}).map(()=>" ").join(""):""}o(w$,"FromString");function M$(e,t){return ie(e,"default")?Re(e.default):"value"in e?Symbol.for(e.value):Symbol()}o(M$,"FromSymbol");function E$(e,t){if(ie(e,"default"))return Re(e.default);if(!$u(e))throw new En(e,"Can only create template literals that produce a finite variants. Consider using a default value.");return zo(e)[0]}o(E$,"FromTemplateLiteral");function T$(e,t){if(PI++>N$)throw new En(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");return ie(e,"default")?Re(e.default):Tn(Ae(e,t),t)}o(T$,"FromThis");function A$(e,t){return ie(e,"default")?Re(e.default):e.items===void 0?[]:Array.from({length:e.minItems}).map((n,i)=>Tn(e.items[i],t))}o(A$,"FromTuple");function P$(e,t){if(ie(e,"default"))return Re(e.default)}o(P$,"FromUndefined");function R$(e,t){if(ie(e,"default"))return Re(e.default);if(e.anyOf.length===0)throw new Error("ValueCreate.Union: Cannot create Union with zero variants");return Tn(e.anyOf[0],t)}o(R$,"FromUnion");function C$(e,t){return ie(e,"default")?Re(e.default):e.minByteLength!==void 0?new Uint8Array(e.minByteLength):new Uint8Array(0)}o(C$,"FromUint8Array");function O$(e,t){return ie(e,"default")?Re(e.default):{}}o(O$,"FromUnknown");function U$(e,t){if(ie(e,"default"))return Re(e.default)}o(U$,"FromVoid");function F$(e,t){if(ie(e,"default"))return Re(e.default);throw new Error("User defined types must specify a default value")}o(F$,"FromKind");function Tn(e,t){let n=jn(e,t),i=e;switch(i[P]){case"Any":return r$(i,n);case"Array":return i$(i,n);case"AsyncIterator":return o$(i,n);case"BigInt":return s$(i,n);case"Boolean":return a$(i,n);case"Constructor":return c$(i,n);case"Date":return u$(i,n);case"Function":return l$(i,n);case"Integer":return f$(i,n);case"Intersect":return d$(i,n);case"Iterator":return p$(i,n);case"Literal":return h$(i,n);case"Never":return m$(i,n);case"Not":return g$(i,n);case"Null":return y$(i,n);case"Number":return x$(i,n);case"Object":return v$(i,n);case"Promise":return _$(i,n);case"Record":return b$(i,n);case"Ref":return S$(i,n);case"RegExp":return I$(i,n);case"String":return w$(i,n);case"Symbol":return M$(i,n);case"TemplateLiteral":return E$(i,n);case"This":return T$(i,n);case"Tuple":return A$(i,n);case"Undefined":return P$(i,n);case"Union":return R$(i,n);case"Uint8Array":return C$(i,n);case"Unknown":return O$(i,n);case"Void":return U$(i,n);default:if(!Et.Has(i[P]))throw new En(i,"Unknown type");return F$(i,n)}}o(Tn,"Visit");var N$=512,PI=0;function Hn(...e){return PI=0,e.length===2?Tn(e[0],e[1]):Tn(e[0],[])}o(Hn,"Create");var qx=class qx extends re{constructor(t,n){super(n),this.schema=t}};o(qx,"ValueCastError");var hl=qx;function k$(e,t,n){if(e[P]==="Object"&&typeof n=="object"&&!Vr(n)){let i=e,r=Object.getOwnPropertyNames(n),s=Object.entries(i.properties),[a,u]=[1/s.length,s.length];return s.reduce((l,[c,d])=>{let h=d[P]==="Literal"&&d.const===n[c]?u:0,m=pe(d,t,n[c])?a:0,y=r.includes(c)?a:0;return l+(h+m+y)},0)}else return pe(e,t,n)?1:0}o(k$,"ScoreUnion");function D$(e,t,n){let i=e.anyOf.map(a=>Ae(a,t)),[r,s]=[i[0],0];for(let a of i){let u=k$(a,t,n);u>s&&(r=a,s=u)}return r}o(D$,"SelectUnion");function L$(e,t,n){if("default"in e)return typeof n=="function"?e.default:Pe(e.default);{let i=D$(e,t,n);return Xx(i,t,n)}}o(L$,"CastUnion");function $$(e,t,n){return pe(e,t,n)?Pe(n):Hn(e,t)}o($$,"DefaultClone");function z$(e,t,n){return pe(e,t,n)?n:Hn(e,t)}o(z$,"Default");function B$(e,t,n){if(pe(e,t,n))return Pe(n);let i=ae(n)?Pe(n):Hn(e,t),r=ee(e.minItems)&&i.length<e.minItems?[...i,...Array.from({length:e.minItems-i.length},()=>null)]:i,a=(ee(e.maxItems)&&r.length>e.maxItems?r.slice(0,e.maxItems):r).map(l=>Ir(e.items,t,l));if(e.uniqueItems!==!0)return a;let u=[...new Set(a)];if(!pe(e,t,u))throw new hl(e,"Array cast produced invalid data due to uniqueItems constraint");return u}o(B$,"FromArray");function V$(e,t,n){if(pe(e,t,n))return Hn(e,t);let i=new Set(e.returns.required||[]),r=o(function(){},"result");for(let[s,a]of Object.entries(e.returns.properties))!i.has(s)&&n.prototype[s]===void 0||(r.prototype[s]=Ir(a,t,n.prototype[s]));return r}o(V$,"FromConstructor");function j$(e,t,n){let i=Hn(e,t),r=fe(i)&&fe(n)?x(x({},i),n):n;return pe(e,t,r)?r:Hn(e,t)}o(j$,"FromIntersect");function G$(e,t,n){throw new hl(e,"Never types cannot be cast")}o(G$,"FromNever");function H$(e,t,n){if(pe(e,t,n))return n;if(n===null||typeof n!="object")return Hn(e,t);let i=new Set(e.required||[]),r={};for(let[s,a]of Object.entries(e.properties))!i.has(s)&&n[s]===void 0||(r[s]=Ir(a,t,n[s]));if(typeof e.additionalProperties=="object"){let s=Object.getOwnPropertyNames(e.properties);for(let a of Object.getOwnPropertyNames(n))s.includes(a)||(r[a]=Ir(e.additionalProperties,t,n[a]))}return r}o(H$,"FromObject");function W$(e,t,n){if(pe(e,t,n))return Pe(n);if(n===null||typeof n!="object"||Array.isArray(n)||n instanceof Date)return Hn(e,t);let i=Object.getOwnPropertyNames(e.patternProperties)[0],r=e.patternProperties[i],s={};for(let[a,u]of Object.entries(n))s[a]=Ir(r,t,u);return s}o(W$,"FromRecord");function Z$(e,t,n){return Ir(Ae(e,t),t,n)}o(Z$,"FromRef");function X$(e,t,n){return Ir(Ae(e,t),t,n)}o(X$,"FromThis");function q$(e,t,n){return pe(e,t,n)?Pe(n):ae(n)?e.items===void 0?[]:e.items.map((i,r)=>Ir(i,t,n[r])):Hn(e,t)}o(q$,"FromTuple");function K$(e,t,n){return pe(e,t,n)?Pe(n):L$(e,t,n)}o(K$,"FromUnion");function Ir(e,t,n){let i=Se(e.$id)?[...t,e]:t,r=e;switch(e[P]){case"Array":return B$(r,i,n);case"Constructor":return V$(r,i,n);case"Intersect":return j$(r,i,n);case"Never":return G$(r,i,n);case"Object":return H$(r,i,n);case"Record":return W$(r,i,n);case"Ref":return Z$(r,i,n);case"This":return X$(r,i,n);case"Tuple":return q$(r,i,n);case"Union":return K$(r,i,n);case"Date":case"Symbol":case"Uint8Array":return $$(e,t,n);default:return z$(r,i,n)}}o(Ir,"Visit");function Xx(...e){return e.length===3?Ir(e[0],e[1],e[2]):Ir(e[0],[],e[1])}o(Xx,"Cast");f();function Y$(e){return Ii(e)&&e[P]!=="Unsafe"}o(Y$,"IsCheckable");function J$(e,t,n){return ae(n)?n.map(i=>An(e.items,t,i)):n}o(J$,"FromArray");function Q$(e,t,n){let i=e.unevaluatedProperties,s=e.allOf.map(u=>An(u,t,Pe(n))).reduce((u,l)=>fe(l)?x(x({},u),l):l,{});if(!fe(n)||!fe(s)||!Ii(i))return s;let a=Pt(e);for(let u of Object.getOwnPropertyNames(n))a.includes(u)||pe(i,t,n[u])&&(s[u]=An(i,t,n[u]));return s}o(Q$,"FromIntersect");function e2(e,t,n){if(!fe(n)||ae(n))return n;let i=e.additionalProperties;for(let r of Object.getOwnPropertyNames(n)){if(ie(e.properties,r)){n[r]=An(e.properties[r],t,n[r]);continue}if(Ii(i)&&pe(i,t,n[r])){n[r]=An(i,t,n[r]);continue}delete n[r]}return n}o(e2,"FromObject");function t2(e,t,n){if(!fe(n))return n;let i=e.additionalProperties,r=Object.getOwnPropertyNames(n),[s,a]=Object.entries(e.patternProperties)[0],u=new RegExp(s);for(let l of r){if(u.test(l)){n[l]=An(a,t,n[l]);continue}if(Ii(i)&&pe(i,t,n[l])){n[l]=An(i,t,n[l]);continue}delete n[l]}return n}o(t2,"FromRecord");function n2(e,t,n){return An(Ae(e,t),t,n)}o(n2,"FromRef");function r2(e,t,n){return An(Ae(e,t),t,n)}o(r2,"FromThis");function i2(e,t,n){if(!ae(n))return n;if(ut(e.items))return[];let i=Math.min(n.length,e.items.length);for(let r=0;r<i;r++)n[r]=An(e.items[r],t,n[r]);return n.length>i?n.slice(0,i):n}o(i2,"FromTuple");function o2(e,t,n){for(let i of e.anyOf)if(Y$(i)&&pe(i,t,n))return An(i,t,n);return n}o(o2,"FromUnion");function An(e,t,n){let i=Se(e.$id)?[...t,e]:t,r=e;switch(r[P]){case"Array":return J$(r,i,n);case"Intersect":return Q$(r,i,n);case"Object":return e2(r,i,n);case"Record":return t2(r,i,n);case"Ref":return n2(r,i,n);case"This":return r2(r,i,n);case"Tuple":return i2(r,i,n);case"Union":return o2(r,i,n);default:return n}}o(An,"Visit");function ml(...e){return e.length===3?An(e[0],e[1],e[2]):An(e[0],[],e[1])}o(ml,"Clean");f();function gl(e){return Se(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}o(gl,"IsStringNumeric");function s2(e){return Ut(e)||yr(e)||ee(e)}o(s2,"IsValueToString");function Ga(e){return e===!0||ee(e)&&e===1||Ut(e)&&e===BigInt("1")||Se(e)&&(e.toLowerCase()==="true"||e==="1")}o(Ga,"IsValueTrue");function Ha(e){return e===!1||ee(e)&&(e===0||Object.is(e,-0))||Ut(e)&&e===BigInt("0")||Se(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}o(Ha,"IsValueFalse");function a2(e){return Se(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(a2,"IsTimeStringWithTimeZone");function c2(e){return Se(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(c2,"IsTimeStringWithoutTimeZone");function u2(e){return Se(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(u2,"IsDateTimeStringWithTimeZone");function l2(e){return Se(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(l2,"IsDateTimeStringWithoutTimeZone");function f2(e){return Se(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}o(f2,"IsDateString");function d2(e,t){let n=CI(e);return n===t?n:e}o(d2,"TryConvertLiteralString");function p2(e,t){let n=OI(e);return n===t?n:e}o(p2,"TryConvertLiteralNumber");function h2(e,t){let n=RI(e);return n===t?n:e}o(h2,"TryConvertLiteralBoolean");function m2(e,t){return Se(e.const)?d2(t,e.const):ee(e.const)?p2(t,e.const):yr(e.const)?h2(t,e.const):t}o(m2,"TryConvertLiteral");function RI(e){return Ga(e)?!0:Ha(e)?!1:e}o(RI,"TryConvertBoolean");function g2(e){let t=o(n=>n.split(".")[0],"truncateInteger");return gl(e)?BigInt(t(e)):ee(e)?BigInt(Math.trunc(e)):Ha(e)?BigInt(0):Ga(e)?BigInt(1):e}o(g2,"TryConvertBigInt");function CI(e){return s2(e)?e.toString():jr(e)&&e.description!==void 0?e.description.toString():e}o(CI,"TryConvertString");function OI(e){return gl(e)?parseFloat(e):Ga(e)?1:Ha(e)?0:e}o(OI,"TryConvertNumber");function y2(e){return gl(e)?parseInt(e):ee(e)?e|0:Ga(e)?1:Ha(e)?0:e}o(y2,"TryConvertInteger");function x2(e){return Se(e)&&e.toLowerCase()==="null"?null:e}o(x2,"TryConvertNull");function v2(e){return Se(e)&&e==="undefined"?void 0:e}o(v2,"TryConvertUndefined");function _2(e){return rn(e)?e:ee(e)?new Date(e):Ga(e)?new Date(1):Ha(e)?new Date(0):gl(e)?new Date(parseInt(e)):c2(e)?new Date("1970-01-01T".concat(e,".000Z")):a2(e)?new Date("1970-01-01T".concat(e)):l2(e)?new Date("".concat(e,".000Z")):u2(e)?new Date(e):f2(e)?new Date("".concat(e,"T00:00:00.000Z")):e}o(_2,"TryConvertDate");function b2(e,t,n){return(ae(n)?n:[n]).map(r=>wr(e.items,t,r))}o(b2,"FromArray");function S2(e,t,n){return g2(n)}o(S2,"FromBigInt");function I2(e,t,n){return RI(n)}o(I2,"FromBoolean");function w2(e,t,n){return _2(n)}o(w2,"FromDate");function M2(e,t,n){return y2(n)}o(M2,"FromInteger");function E2(e,t,n){return e.allOf.reduce((i,r)=>wr(r,t,i),n)}o(E2,"FromIntersect");function T2(e,t,n){return m2(e,n)}o(T2,"FromLiteral");function A2(e,t,n){return x2(n)}o(A2,"FromNull");function P2(e,t,n){return OI(n)}o(P2,"FromNumber");function R2(e,t,n){if(!fe(n))return n;for(let i of Object.getOwnPropertyNames(e.properties))ie(n,i)&&(n[i]=wr(e.properties[i],t,n[i]));return n}o(R2,"FromObject");function C2(e,t,n){if(!fe(n))return n;let r=Object.getOwnPropertyNames(e.patternProperties)[0],s=e.patternProperties[r];for(let[a,u]of Object.entries(n))n[a]=wr(s,t,u);return n}o(C2,"FromRecord");function O2(e,t,n){return wr(Ae(e,t),t,n)}o(O2,"FromRef");function U2(e,t,n){return CI(n)}o(U2,"FromString");function F2(e,t,n){return Se(n)||ee(n)?Symbol(n):n}o(F2,"FromSymbol");function N2(e,t,n){return wr(Ae(e,t),t,n)}o(N2,"FromThis");function k2(e,t,n){return ae(n)&&!ut(e.items)?n.map((r,s)=>s<e.items.length?wr(e.items[s],t,r):r):n}o(k2,"FromTuple");function D2(e,t,n){return v2(n)}o(D2,"FromUndefined");function L2(e,t,n){for(let i of e.anyOf){let r=wr(i,t,Pe(n));if(pe(i,t,r))return r}return n}o(L2,"FromUnion");function wr(e,t,n){let i=jn(e,t),r=e;switch(e[P]){case"Array":return b2(r,i,n);case"BigInt":return S2(r,i,n);case"Boolean":return I2(r,i,n);case"Date":return w2(r,i,n);case"Integer":return M2(r,i,n);case"Intersect":return E2(r,i,n);case"Literal":return T2(r,i,n);case"Null":return A2(r,i,n);case"Number":return P2(r,i,n);case"Object":return R2(r,i,n);case"Record":return C2(r,i,n);case"Ref":return O2(r,i,n);case"String":return U2(r,i,n);case"Symbol":return F2(r,i,n);case"This":return N2(r,i,n);case"Tuple":return k2(r,i,n);case"Undefined":return D2(r,i,n);case"Union":return L2(r,i,n);default:return n}}o(wr,"Visit");function yl(...e){return e.length===3?wr(e[0],e[1],e[2]):wr(e[0],[],e[1])}o(yl,"Convert");f();f();var Kx=class Kx extends re{constructor(t,n,i){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=n,this.error=i}};o(Kx,"TransformDecodeCheckError");var ns=Kx,Yx=class Yx extends re{constructor(t,n,i,r){super(r instanceof Error?r.message:"Unknown error"),this.schema=t,this.path=n,this.value=i,this.error=r}};o(Yx,"TransformDecodeError");var Yi=Yx;function lt(e,t,n){try{return et(e)?e[ot].Decode(n):n}catch(i){throw new Yi(e,t,n,i)}}o(lt,"Default");function $2(e,t,n,i){return ae(i)?lt(e,n,i.map((r,s)=>Mr(e.items,t,"".concat(n,"/").concat(s),r))):lt(e,n,i)}o($2,"FromArray");function z2(e,t,n,i){if(!fe(i)||Ft(i))return lt(e,n,i);let r=Ei(e),s=r.map(d=>d[0]),a=x({},i);for(let[d,h]of r)d in a&&(a[d]=Mr(h,t,"".concat(n,"/").concat(d),a[d]));if(!et(e.unevaluatedProperties))return lt(e,n,a);let u=Object.getOwnPropertyNames(a),l=e.unevaluatedProperties,c=x({},a);for(let d of u)s.includes(d)||(c[d]=lt(l,"".concat(n,"/").concat(d),c[d]));return lt(e,n,c)}o(z2,"FromIntersect");function B2(e,t,n,i){return lt(e,n,Mr(e.not,t,n,i))}o(B2,"FromNot");function V2(e,t,n,i){if(!fe(i))return lt(e,n,i);let r=Pt(e),s=x({},i);for(let c of r)ie(s,c)&&(ut(s[c])&&(!No(e.properties[c])||Le.IsExactOptionalProperty(s,c))||(s[c]=Mr(e.properties[c],t,"".concat(n,"/").concat(c),s[c])));if(!Ie(e.additionalProperties))return lt(e,n,s);let a=Object.getOwnPropertyNames(s),u=e.additionalProperties,l=x({},s);for(let c of a)r.includes(c)||(l[c]=lt(u,"".concat(n,"/").concat(c),l[c]));return lt(e,n,l)}o(V2,"FromObject");function j2(e,t,n,i){if(!fe(i))return lt(e,n,i);let r=Object.getOwnPropertyNames(e.patternProperties)[0],s=new RegExp(r),a=x({},i);for(let d of Object.getOwnPropertyNames(i))s.test(d)&&(a[d]=Mr(e.patternProperties[r],t,"".concat(n,"/").concat(d),a[d]));if(!Ie(e.additionalProperties))return lt(e,n,a);let u=Object.getOwnPropertyNames(a),l=e.additionalProperties,c=x({},a);for(let d of u)s.test(d)||(c[d]=lt(l,"".concat(n,"/").concat(d),c[d]));return lt(e,n,c)}o(j2,"FromRecord");function G2(e,t,n,i){let r=Ae(e,t);return lt(e,n,Mr(r,t,n,i))}o(G2,"FromRef");function H2(e,t,n,i){let r=Ae(e,t);return lt(e,n,Mr(r,t,n,i))}o(H2,"FromThis");function W2(e,t,n,i){return ae(i)&&ae(e.items)?lt(e,n,e.items.map((r,s)=>Mr(r,t,"".concat(n,"/").concat(s),i[s]))):lt(e,n,i)}o(W2,"FromTuple");function Z2(e,t,n,i){for(let r of e.anyOf){if(!pe(r,t,i))continue;let s=Mr(r,t,n,i);return lt(e,n,s)}return lt(e,n,i)}o(Z2,"FromUnion");function Mr(e,t,n,i){let r=jn(e,t),s=e;switch(e[P]){case"Array":return $2(s,r,n,i);case"Intersect":return z2(s,r,n,i);case"Not":return B2(s,r,n,i);case"Object":return V2(s,r,n,i);case"Record":return j2(s,r,n,i);case"Ref":return G2(s,r,n,i);case"Symbol":return lt(s,n,i);case"This":return H2(s,r,n,i);case"Tuple":return W2(s,r,n,i);case"Union":return Z2(s,r,n,i);default:return lt(s,n,i)}}o(Mr,"Visit");function rs(e,t,n){return Mr(e,t,"",n)}o(rs,"TransformDecode");f();var Jx=class Jx extends re{constructor(t,n,i){super("The encoded value does not match the expected schema"),this.schema=t,this.value=n,this.error=i}};o(Jx,"TransformEncodeCheckError");var is=Jx,Qx=class Qx extends re{constructor(t,n,i,r){super("".concat(r instanceof Error?r.message:"Unknown error")),this.schema=t,this.path=n,this.value=i,this.error=r}};o(Qx,"TransformEncodeError");var Ji=Qx;function Yt(e,t,n){try{return et(e)?e[ot].Encode(n):n}catch(i){throw new Ji(e,t,n,i)}}o(Yt,"Default");function X2(e,t,n,i){let r=Yt(e,n,i);return ae(r)?r.map((s,a)=>Er(e.items,t,"".concat(n,"/").concat(a),s)):r}o(X2,"FromArray");function q2(e,t,n,i){let r=Yt(e,n,i);if(!fe(i)||Ft(i))return r;let s=Ei(e),a=s.map(h=>h[0]),u=x({},r);for(let[h,m]of s)h in u&&(u[h]=Er(m,t,"".concat(n,"/").concat(h),u[h]));if(!et(e.unevaluatedProperties))return u;let l=Object.getOwnPropertyNames(u),c=e.unevaluatedProperties,d=x({},u);for(let h of l)a.includes(h)||(d[h]=Yt(c,"".concat(n,"/").concat(h),d[h]));return d}o(q2,"FromIntersect");function K2(e,t,n,i){return Yt(e.not,n,Yt(e,n,i))}o(K2,"FromNot");function Y2(e,t,n,i){let r=Yt(e,n,i);if(!fe(r))return r;let s=Pt(e),a=x({},r);for(let d of s)ie(a,d)&&(ut(a[d])&&(!No(e.properties[d])||Le.IsExactOptionalProperty(a,d))||(a[d]=Er(e.properties[d],t,"".concat(n,"/").concat(d),a[d])));if(!Ie(e.additionalProperties))return a;let u=Object.getOwnPropertyNames(a),l=e.additionalProperties,c=x({},a);for(let d of u)s.includes(d)||(c[d]=Yt(l,"".concat(n,"/").concat(d),c[d]));return c}o(Y2,"FromObject");function J2(e,t,n,i){let r=Yt(e,n,i);if(!fe(i))return r;let s=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(s),u=x({},r);for(let h of Object.getOwnPropertyNames(i))a.test(h)&&(u[h]=Er(e.patternProperties[s],t,"".concat(n,"/").concat(h),u[h]));if(!Ie(e.additionalProperties))return u;let l=Object.getOwnPropertyNames(u),c=e.additionalProperties,d=x({},u);for(let h of l)a.test(h)||(d[h]=Yt(c,"".concat(n,"/").concat(h),d[h]));return d}o(J2,"FromRecord");function Q2(e,t,n,i){let r=Ae(e,t),s=Er(r,t,n,i);return Yt(e,n,s)}o(Q2,"FromRef");function ez(e,t,n,i){let r=Ae(e,t),s=Er(r,t,n,i);return Yt(e,n,s)}o(ez,"FromThis");function tz(e,t,n,i){let r=Yt(e,n,i);return ae(e.items)?e.items.map((s,a)=>Er(s,t,"".concat(n,"/").concat(a),r[a])):[]}o(tz,"FromTuple");function nz(e,t,n,i){for(let r of e.anyOf){if(!pe(r,t,i))continue;let s=Er(r,t,n,i);return Yt(e,n,s)}for(let r of e.anyOf){let s=Er(r,t,n,i);if(pe(e,t,s))return Yt(e,n,s)}return Yt(e,n,i)}o(nz,"FromUnion");function Er(e,t,n,i){let r=jn(e,t),s=e;switch(e[P]){case"Array":return X2(s,r,n,i);case"Intersect":return q2(s,r,n,i);case"Not":return K2(s,r,n,i);case"Object":return Y2(s,r,n,i);case"Record":return J2(s,r,n,i);case"Ref":return Q2(s,r,n,i);case"This":return ez(s,r,n,i);case"Tuple":return tz(s,r,n,i);case"Union":return nz(s,r,n,i);default:return Yt(s,n,i)}}o(Er,"Visit");function xl(e,t,n){return Er(e,t,"",n)}o(xl,"TransformEncode");f();function rz(e,t){return et(e)||Rt(e.items,t)}o(rz,"FromArray");function iz(e,t){return et(e)||Rt(e.items,t)}o(iz,"FromAsyncIterator");function oz(e,t){return et(e)||Rt(e.returns,t)||e.parameters.some(n=>Rt(n,t))}o(oz,"FromConstructor");function sz(e,t){return et(e)||Rt(e.returns,t)||e.parameters.some(n=>Rt(n,t))}o(sz,"FromFunction");function az(e,t){return et(e)||et(e.unevaluatedProperties)||e.allOf.some(n=>Rt(n,t))}o(az,"FromIntersect");function cz(e,t){return et(e)||Rt(e.items,t)}o(cz,"FromIterator");function uz(e,t){return et(e)||Rt(e.not,t)}o(uz,"FromNot");function lz(e,t){return et(e)||Object.values(e.properties).some(n=>Rt(n,t))||Ie(e.additionalProperties)&&Rt(e.additionalProperties,t)}o(lz,"FromObject");function fz(e,t){return et(e)||Rt(e.item,t)}o(fz,"FromPromise");function dz(e,t){let n=Object.getOwnPropertyNames(e.patternProperties)[0],i=e.patternProperties[n];return et(e)||Rt(i,t)||Ie(e.additionalProperties)&&et(e.additionalProperties)}o(dz,"FromRecord");function pz(e,t){return et(e)?!0:Rt(Ae(e,t),t)}o(pz,"FromRef");function hz(e,t){return et(e)?!0:Rt(Ae(e,t),t)}o(hz,"FromThis");function mz(e,t){return et(e)||!ut(e.items)&&e.items.some(n=>Rt(n,t))}o(mz,"FromTuple");function gz(e,t){return et(e)||e.anyOf.some(n=>Rt(n,t))}o(gz,"FromUnion");function Rt(e,t){let n=jn(e,t),i=e;if(e.$id&&ev.has(e.$id))return!1;switch(e.$id&&ev.add(e.$id),e[P]){case"Array":return rz(i,n);case"AsyncIterator":return iz(i,n);case"Constructor":return oz(i,n);case"Function":return sz(i,n);case"Intersect":return az(i,n);case"Iterator":return cz(i,n);case"Not":return uz(i,n);case"Object":return lz(i,n);case"Promise":return fz(i,n);case"Record":return dz(i,n);case"Ref":return pz(i,n);case"This":return hz(i,n);case"Tuple":return mz(i,n);case"Union":return gz(i,n);default:return et(e)}}o(Rt,"Visit");var ev=new Set;function Tr(e,t){return ev.clear(),Rt(e,t)}o(Tr,"HasTransform");function UI(...e){let[t,n,i]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!pe(t,n,i))throw new ns(t,i,Sr(t,n,i).First());return Tr(t,n)?rs(t,n,i):i}o(UI,"Decode");f();function ei(e,t){let n=ie(e,"default")?e.default:void 0,i=bi(n)?n():Pe(n);return ut(t)?i:fe(t)&&fe(i)?Object.assign(i,t):t}o(ei,"ValueOrDefault");function tv(e){return Ii(e)&&"default"in e}o(tv,"HasDefaultProperty");function yz(e,t,n){let i=ei(e,n);if(!ae(i))return i;for(let r=0;r<i.length;r++)i[r]=Pn(e.items,t,i[r]);return i}o(yz,"FromArray");function xz(e,t,n){return rn(n)?n:ei(e,n)}o(xz,"FromDate");function vz(e,t,n){let i=ei(e,n);return e.allOf.reduce((r,s)=>{let a=Pn(s,t,i);return fe(a)?x(x({},r),a):a},{})}o(vz,"FromIntersect");function _z(e,t,n){let i=ei(e,n);if(!fe(i))return i;let r=Object.getOwnPropertyNames(e.properties);for(let s of r){let a=Pn(e.properties[s],t,i[s]);ut(a)||(i[s]=Pn(e.properties[s],t,i[s]))}if(!tv(e.additionalProperties))return i;for(let s of Object.getOwnPropertyNames(i))r.includes(s)||(i[s]=Pn(e.additionalProperties,t,i[s]));return i}o(_z,"FromObject");function bz(e,t,n){let i=ei(e,n);if(!fe(i))return i;let r=e.additionalProperties,[s,a]=Object.entries(e.patternProperties)[0],u=new RegExp(s);for(let l of Object.getOwnPropertyNames(i))u.test(l)&&tv(a)&&(i[l]=Pn(a,t,i[l]));if(!tv(r))return i;for(let l of Object.getOwnPropertyNames(i))u.test(l)||(i[l]=Pn(r,t,i[l]));return i}o(bz,"FromRecord");function Sz(e,t,n){return Pn(Ae(e,t),t,ei(e,n))}o(Sz,"FromRef");function Iz(e,t,n){return Pn(Ae(e,t),t,n)}o(Iz,"FromThis");function wz(e,t,n){let i=ei(e,n);if(!ae(i)||ut(e.items))return i;let[r,s]=[e.items,Math.max(e.items.length,i.length)];for(let a=0;a<s;a++)a<r.length&&(i[a]=Pn(r[a],t,i[a]));return i}o(wz,"FromTuple");function Mz(e,t,n){let i=ei(e,n);for(let r of e.anyOf){let s=Pn(r,t,Pe(i));if(pe(r,t,s))return s}return i}o(Mz,"FromUnion");function Pn(e,t,n){let i=jn(e,t),r=e;switch(r[P]){case"Array":return yz(r,i,n);case"Date":return xz(r,i,n);case"Intersect":return vz(r,i,n);case"Object":return _z(r,i,n);case"Record":return bz(r,i,n);case"Ref":return Sz(r,i,n);case"This":return Iz(r,i,n);case"Tuple":return wz(r,i,n);case"Union":return Mz(r,i,n);default:return ei(r,n)}}o(Pn,"Visit");function vl(...e){return e.length===3?Pn(e[0],e[1],e[2]):Pn(e[0],[],e[1])}o(vl,"Default");f();f();var Wn={};un(Wn,{Delete:()=>Tz,Format:()=>Wa,Get:()=>Pz,Has:()=>Az,Set:()=>Ez,ValuePointerRootDeleteError:()=>bl,ValuePointerRootSetError:()=>_l});f();var nv=class nv extends re{constructor(t,n,i){super("Cannot set root value"),this.value=t,this.path=n,this.update=i}};o(nv,"ValuePointerRootSetError");var _l=nv,rv=class rv extends re{constructor(t,n){super("Cannot delete root value"),this.value=t,this.path=n}};o(rv,"ValuePointerRootDeleteError");var bl=rv;function FI(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}o(FI,"Escape");function*Wa(e){if(e==="")return;let[t,n]=[0,0];for(let i=0;i<e.length;i++)e.charAt(i)==="/"?(i===0||(n=i,yield FI(e.slice(t,n))),t=i+1):n=i;yield FI(e.slice(t))}o(Wa,"Format");function Ez(e,t,n){if(t==="")throw new _l(e,t,n);let[i,r,s]=[null,e,""];for(let a of Wa(t))r[a]===void 0&&(r[a]={}),i=r,r=r[a],s=a;i[s]=n}o(Ez,"Set");function Tz(e,t){if(t==="")throw new bl(e,t);let[n,i,r]=[null,e,""];for(let s of Wa(t)){if(i[s]===void 0||i[s]===null)return;n=i,i=i[s],r=s}if(Array.isArray(n)){let s=parseInt(r);n.splice(s,1)}else delete n[r]}o(Tz,"Delete");function Az(e,t){if(t==="")return!0;let[n,i,r]=[null,e,""];for(let s of Wa(t)){if(i[s]===void 0)return!1;n=i,i=i[s],r=s}return Object.getOwnPropertyNames(n).includes(r)}o(Az,"Has");function Pz(e,t){if(t==="")return e;let n=e;for(let i of Wa(t)){if(n[i]===void 0)return;n=n[i]}return n}o(Pz,"Get");f();function Rz(e,t){if(!fe(t))return!1;let n=[...Object.keys(e),...Object.getOwnPropertySymbols(e)],i=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];return n.length!==i.length?!1:n.every(r=>Qi(e[r],t[r]))}o(Rz,"ObjectType");function Cz(e,t){return rn(t)&&e.getTime()===t.getTime()}o(Cz,"DateType");function Oz(e,t){return!ae(t)||e.length!==t.length?!1:e.every((n,i)=>Qi(n,t[i]))}o(Oz,"ArrayType");function Uz(e,t){return!kn(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name?!1:e.every((n,i)=>Qi(n,t[i]))}o(Uz,"TypedArrayType");function Fz(e,t){return e===t}o(Fz,"ValueType");function Qi(e,t){if(rn(e))return Cz(e,t);if(kn(e))return Uz(e,t);if(ae(e))return Oz(e,t);if(fe(e))return Rz(e,t);if(Ft(e))return Fz(e,t);throw new Error("ValueEquals: Unable to compare value")}o(Qi,"Equal");var Nz=We({type:Ne("insert"),path:Ln(),value:Yr()}),kz=We({type:Ne("update"),path:Ln(),value:Yr()}),Dz=We({type:Ne("delete"),path:Ln()}),kI=Ve([Nz,kz,Dz]),iv=class iv extends re{constructor(t,n){super(n),this.value=t}};o(iv,"ValueDiffError");var Sl=iv;function Il(e,t){return{type:"update",path:e,value:t}}o(Il,"CreateUpdate");function DI(e,t){return{type:"insert",path:e,value:t}}o(DI,"CreateInsert");function LI(e){return{type:"delete",path:e}}o(LI,"CreateDelete");function NI(e){if(globalThis.Object.getOwnPropertySymbols(e).length>0)throw new Sl(e,"Cannot diff objects with symbols")}o(NI,"AssertDiffable");function*Lz(e,t,n){if(NI(t),NI(n),!Ry(n))return yield Il(e,n);let i=globalThis.Object.getOwnPropertyNames(t),r=globalThis.Object.getOwnPropertyNames(n);for(let s of r)ie(t,s)||(yield DI("".concat(e,"/").concat(s),n[s]));for(let s of i)ie(n,s)&&(Qi(t,n)||(yield*k(wl("".concat(e,"/").concat(s),t[s],n[s]))));for(let s of i)ie(n,s)||(yield LI("".concat(e,"/").concat(s)))}o(Lz,"ObjectType");function*$z(e,t,n){if(!ae(n))return yield Il(e,n);for(let i=0;i<Math.min(t.length,n.length);i++)yield*k(wl("".concat(e,"/").concat(i),t[i],n[i]));for(let i=0;i<n.length;i++)i<t.length||(yield DI("".concat(e,"/").concat(i),n[i]));for(let i=t.length-1;i>=0;i--)i<n.length||(yield LI("".concat(e,"/").concat(i)))}o($z,"ArrayType");function*zz(e,t,n){if(!kn(n)||t.length!==n.length||globalThis.Object.getPrototypeOf(t).constructor.name!==globalThis.Object.getPrototypeOf(n).constructor.name)return yield Il(e,n);for(let i=0;i<Math.min(t.length,n.length);i++)yield*k(wl("".concat(e,"/").concat(i),t[i],n[i]))}o(zz,"TypedArrayType");function*Bz(e,t,n){t!==n&&(yield Il(e,n))}o(Bz,"ValueType");function*wl(e,t,n){if(Ry(t))return yield*k(Lz(e,t,n));if(ae(t))return yield*k($z(e,t,n));if(kn(t))return yield*k(zz(e,t,n));if(Ft(t))return yield*k(Bz(e,t,n));throw new Sl(t,"Unable to diff value")}o(wl,"Visit");function $I(e,t){return[...wl("",e,t)]}o($I,"Diff");function Vz(e){return e.length>0&&e[0].path===""&&e[0].type==="update"}o(Vz,"IsRootUpdate");function jz(e){return e.length===0}o(jz,"IsIdentity");function zI(e,t){if(Vz(t))return Pe(t[0].value);if(jz(t))return Pe(e);let n=Pe(e);for(let i of t)switch(i.type){case"insert":{Wn.Set(n,i.path,i.value);break}case"update":{Wn.Set(n,i.path,i.value);break}case"delete":{Wn.Delete(n,i.path);break}}return n}o(zI,"Patch");f();function BI(...e){let[t,n,i]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]],r=Tr(t,n)?xl(t,n,i):i;if(!pe(t,n,r))throw new is(t,r,Sr(t,n,r).First());return r}o(BI,"Encode");f();var sv=class sv extends re{constructor(t){super(t)}};o(sv,"ValueMutateError");var Ml=sv;function Gz(e,t,n,i){if(!fe(n))Wn.Set(e,t,Pe(i));else{let r=Object.getOwnPropertyNames(n),s=Object.getOwnPropertyNames(i);for(let a of r)s.includes(a)||delete n[a];for(let a of s)r.includes(a)||(n[a]=null);for(let a of s)ov(e,"".concat(t,"/").concat(a),n[a],i[a])}}o(Gz,"ObjectType");function Hz(e,t,n,i){if(!ae(n))Wn.Set(e,t,Pe(i));else{for(let r=0;r<i.length;r++)ov(e,"".concat(t,"/").concat(r),n[r],i[r]);n.splice(i.length)}}o(Hz,"ArrayType");function Wz(e,t,n,i){if(kn(n)&&n.length===i.length)for(let r=0;r<n.length;r++)n[r]=i[r];else Wn.Set(e,t,Pe(i))}o(Wz,"TypedArrayType");function Zz(e,t,n,i){n!==i&&Wn.Set(e,t,i)}o(Zz,"ValueType");function ov(e,t,n,i){if(ae(i))return Hz(e,t,n,i);if(kn(i))return Wz(e,t,n,i);if(fe(i))return Gz(e,t,n,i);if(Ft(i))return Zz(e,t,n,i)}o(ov,"Visit");function VI(e){return kn(e)||Ft(e)}o(VI,"IsNonMutableValue");function Xz(e,t){return fe(e)&&ae(t)||ae(e)&&fe(t)}o(Xz,"IsMismatchedValue");function jI(e,t){if(VI(e)||VI(t))throw new Ml("Only object and array types can be mutated at the root level");if(Xz(e,t))throw new Ml("Cannot assign due type mismatch of assignable values");ov(e,"",e,t)}o(jI,"Mutate");f();var qz=[(e,t,n)=>Pe(n),(e,t,n)=>vl(e,t,n),(e,t,n)=>ml(e,t,n),(e,t,n)=>yl(e,t,n),(e,t,n)=>(pl(e,t,n),n),(e,t,n)=>Tr(e,t)?rs(e,t,n):n];function GI(e,t,n){return qz.reduce((i,r)=>r(e,t,i),n)}o(GI,"ParseValue");function HI(...e){return e.length===3?GI(e[0],e[1],e[2]):GI(e[0],[],e[1])}o(HI,"Parse");f();var Zn={};un(Zn,{Assert:()=>pl,Cast:()=>Xx,Check:()=>pe,Clean:()=>ml,Clone:()=>Pe,Convert:()=>yl,Create:()=>Hn,Decode:()=>UI,Default:()=>vl,Diff:()=>$I,Edit:()=>kI,Encode:()=>BI,Equal:()=>Qi,Errors:()=>Sr,Hash:()=>Pi,Mutate:()=>jI,Parse:()=>HI,Patch:()=>zI,ValueErrorIterator:()=>Gn});f();f();var WI={},Kz=o(function(e,t,n,i,r){var s=new Worker(WI[t]||(WI[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(a){var u=a.data,l=u.$e$;if(l){var c=new Error(l[0]);c.code=l[1],c.stack=l[2],r(c,null)}else r(null,u)},s.postMessage(n,i),s},"wk"),Ze=Uint8Array,cn=Uint16Array,Ka=Int32Array,us=new Ze([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ls=new Ze([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Za=new Ze([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qI=o(function(e,t){for(var n=new cn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var r=new Ka(n[30]),i=1;i<30;++i)for(var s=n[i];s<n[i+1];++s)r[s]=s-n[i]<<5|i;return{b:n,r}},"freb"),KI=qI(us,2),dv=KI.b,Rl=KI.r;dv[28]=258,Rl[258]=28;var YI=qI(ls,0),JI=YI.b,cv=YI.r,Xa=new cn(32768);for(De=0;De<32768;++De)ti=(De&43690)>>1|(De&21845)<<1,ti=(ti&52428)>>2|(ti&13107)<<2,ti=(ti&61680)>>4|(ti&3855)<<4,Xa[De]=((ti&65280)>>8|(ti&255)<<8)>>1;var ti,De,qn=o(function(e,t,n){for(var i=e.length,r=0,s=new cn(t);r<i;++r)e[r]&&++s[e[r]-1];var a=new cn(t);for(r=1;r<t;++r)a[r]=a[r-1]+s[r-1]<<1;var u;if(n){u=new cn(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],d=t-e[r],h=a[e[r]-1]++<<d,m=h|(1<<d)-1;h<=m;++h)u[Xa[h]>>l]=c}else for(u=new cn(i),r=0;r<i;++r)e[r]&&(u[r]=Xa[a[e[r]-1]++]>>15-e[r]);return u},"hMap"),ni=new Ze(288);for(De=0;De<144;++De)ni[De]=8;var De;for(De=144;De<256;++De)ni[De]=9;var De;for(De=256;De<280;++De)ni[De]=7;var De;for(De=280;De<288;++De)ni[De]=8;var De,as=new Ze(32);for(De=0;De<32;++De)as[De]=5;var De,QI=qn(ni,9,0),ew=qn(ni,9,1),tw=qn(as,5,0),nw=qn(as,5,1),Tl=o(function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},"max"),Xn=o(function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},"bits"),Al=o(function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},"bits16"),Ya=o(function(e){return(e+7)/8|0},"shft"),Ri=o(function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Ze(e.subarray(t,n))},"slc"),Fl={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},rw=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ft=o(function(e,t,n){var i=new Error(t||rw[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,ft),!n)throw i;return i},"err"),iw=o(function(e,t,n,i){var r=e.length,s=i?i.length:0;if(!r||t.f&&!t.l)return n||new Ze(0);var a=!n,u=a||t.i!=2,l=t.i;a&&(n=new Ze(r*3));var c=o(function(E){var te=n.length;if(E>te){var q=new Ze(Math.max(te*2,E));q.set(n),n=q}},"cbuf"),d=t.f||0,h=t.p||0,m=t.b||0,y=t.l,v=t.d,I=t.m,T=t.n,U=r*8;do{if(!y){d=Xn(e,h,1);var D=Xn(e,h+1,3);if(h+=3,D)if(D==1)y=ew,v=nw,I=9,T=5;else if(D==2){var j=Xn(e,h,31)+257,N=Xn(e,h+10,15)+4,H=j+Xn(e,h+5,31)+1;h+=14;for(var G=new Ze(H),ce=new Ze(19),ue=0;ue<N;++ue)ce[Za[ue]]=Xn(e,h+ue*3,7);h+=N*3;for(var he=Tl(ce),Ge=(1<<he)-1,Oe=qn(ce,he,1),ue=0;ue<H;){var Ue=Oe[Xn(e,h,Ge)];h+=Ue&15;var w=Ue>>4;if(w<16)G[ue++]=w;else{var V=0,ne=0;for(w==16?(ne=3+Xn(e,h,3),h+=2,V=G[ue-1]):w==17?(ne=3+Xn(e,h,7),h+=3):w==18&&(ne=11+Xn(e,h,127),h+=7);ne--;)G[ue++]=V}}var le=G.subarray(0,j),oe=G.subarray(j);I=Tl(le),T=Tl(oe),y=qn(le,I,1),v=qn(oe,T,1)}else ft(1);else{var w=Ya(h)+4,S=e[w-4]|e[w-3]<<8,A=w+S;if(A>r){l&&ft(0);break}u&&c(m+S),n.set(e.subarray(w,A),m),t.b=m+=S,t.p=h=A*8,t.f=d;continue}if(h>U){l&&ft(0);break}}u&&c(m+131072);for(var Me=(1<<I)-1,pt=(1<<T)-1,Vt=h;;Vt=h){var V=y[Al(e,h)&Me],jt=V>>4;if(h+=V&15,h>U){l&&ft(0);break}if(V||ft(2),jt<256)n[m++]=jt;else if(jt==256){Vt=h,y=null;break}else{var At=jt-254;if(jt>264){var ue=jt-257,tt=us[ue];At=Xn(e,h,(1<<tt)-1)+dv[ue],h+=tt}var On=v[Al(e,h)&pt],Or=On>>4;On||ft(3),h+=On&15;var oe=JI[Or];if(Or>3){var tt=ls[Or];oe+=Al(e,h)&(1<<tt)-1,h+=tt}if(h>U){l&&ft(0);break}u&&c(m+131072);var ai=m+At;if(m<oe){var b=s-oe,X=Math.min(oe,ai);for(b+m<0&&ft(3);m<X;++m)n[m]=i[b+m]}for(;m<ai;++m)n[m]=n[m-oe]}}t.l=y,t.p=Vt,t.b=m,t.f=d,y&&(d=1,t.m=I,t.d=v,t.n=T)}while(!d);return m!=n.length&&a?Ri(n,0,m):n.subarray(0,m)},"inflt"),Ar=o(function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},"wbits"),os=o(function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},"wbits16"),Pl=o(function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,s=n.slice();if(!r)return{t:hv,l:0};if(r==1){var a=new Ze(n[0].s+1);return a[n[0].s]=1,{t:a,l:1}}n.sort(function(A,j){return A.f-j.f}),n.push({s:-1,f:25001});var u=n[0],l=n[1],c=0,d=1,h=2;for(n[0]={s:-1,f:u.f+l.f,l:u,r:l};d!=r-1;)u=n[n[c].f<n[h].f?c++:h++],l=n[c!=d&&n[c].f<n[h].f?c++:h++],n[d++]={s:-1,f:u.f+l.f,l:u,r:l};for(var m=s[0].s,i=1;i<r;++i)s[i].s>m&&(m=s[i].s);var y=new cn(m+1),v=Cl(n[d-1],y,0);if(v>t){var i=0,I=0,T=v-t,U=1<<T;for(s.sort(function(j,N){return y[N.s]-y[j.s]||j.f-N.f});i<r;++i){var D=s[i].s;if(y[D]>t)I+=U-(1<<v-y[D]),y[D]=t;else break}for(I>>=T;I>0;){var w=s[i].s;y[w]<t?I-=1<<t-y[w]++-1:++i}for(;i>=0&&I;--i){var S=s[i].s;y[S]==t&&(--y[S],++I)}v=t}return{t:new Ze(y),l:v}},"hTree"),Cl=o(function(e,t,n){return e.s==-1?Math.max(Cl(e.l,t,n+1),Cl(e.r,t,n+1)):t[e.s]=n},"ln"),uv=o(function(e){for(var t=e.length;t&&!e[--t];);for(var n=new cn(++t),i=0,r=e[0],s=1,a=o(function(l){n[i++]=l},"w"),u=1;u<=t;++u)if(e[u]==r&&u!=t)++s;else{if(!r&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(r),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(r);s=1,r=e[u]}return{c:n.subarray(0,i),n:t}},"lc"),ss=o(function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},"clen"),pv=o(function(e,t,n){var i=n.length,r=Ya(t+2);e[r]=i&255,e[r+1]=i>>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var s=0;s<i;++s)e[r+s+4]=n[s];return(r+4+i)*8},"wfblk"),lv=o(function(e,t,n,i,r,s,a,u,l,c,d){Ar(t,d++,n),++r[256];for(var h=Pl(r,15),m=h.t,y=h.l,v=Pl(s,15),I=v.t,T=v.l,U=uv(m),D=U.c,w=U.n,S=uv(I),A=S.c,j=S.n,N=new cn(19),H=0;H<D.length;++H)++N[D[H]&31];for(var H=0;H<A.length;++H)++N[A[H]&31];for(var G=Pl(N,7),ce=G.t,ue=G.l,he=19;he>4&&!ce[Za[he-1]];--he);var Ge=c+5<<3,Oe=ss(r,ni)+ss(s,as)+a,Ue=ss(r,m)+ss(s,I)+a+14+3*he+ss(N,ce)+2*N[16]+3*N[17]+7*N[18];if(l>=0&&Ge<=Oe&&Ge<=Ue)return pv(t,d,e.subarray(l,l+c));var V,ne,le,oe;if(Ar(t,d,1+(Ue<Oe)),d+=2,Ue<Oe){V=qn(m,y,0),ne=m,le=qn(I,T,0),oe=I;var Me=qn(ce,ue,0);Ar(t,d,w-257),Ar(t,d+5,j-1),Ar(t,d+10,he-4),d+=14;for(var H=0;H<he;++H)Ar(t,d+3*H,ce[Za[H]]);d+=3*he;for(var pt=[D,A],Vt=0;Vt<2;++Vt)for(var jt=pt[Vt],H=0;H<jt.length;++H){var At=jt[H]&31;Ar(t,d,Me[At]),d+=ce[At],At>15&&(Ar(t,d,jt[H]>>5&127),d+=jt[H]>>12)}}else V=QI,ne=ni,le=tw,oe=as;for(var H=0;H<u;++H){var tt=i[H];if(tt>255){var At=tt>>18&31;os(t,d,V[At+257]),d+=ne[At+257],At>7&&(Ar(t,d,tt>>23&31),d+=us[At]);var On=tt&31;os(t,d,le[On]),d+=oe[On],On>3&&(os(t,d,tt>>5&8191),d+=ls[On])}else os(t,d,V[tt]),d+=ne[tt]}return os(t,d,V[256]),d+ne[256]},"wblk"),ow=new Ka([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hv=new Ze(0),sw=o(function(e,t,n,i,r,s){var a=s.z||e.length,u=new Ze(i+a+5*(1+Math.ceil(a/7e3))+r),l=u.subarray(i,u.length-r),c=s.l,d=(s.r||0)&7;if(t){d&&(l[0]=s.r>>3);for(var h=ow[t-1],m=h>>13,y=h&8191,v=(1<<n)-1,I=s.p||new cn(32768),T=s.h||new cn(v+1),U=Math.ceil(n/3),D=2*U,w=o(function(Q){return(e[Q]^e[Q+1]<<U^e[Q+2]<<D)&v},"hsh"),S=new Ka(25e3),A=new cn(288),j=new cn(32),N=0,H=0,G=s.i||0,ce=0,ue=s.w||0,he=0;G+2<a;++G){var Ge=w(G),Oe=G&32767,Ue=T[Ge];if(I[Oe]=Ue,T[Ge]=Oe,ue<=G){var V=a-G;if((N>7e3||ce>24576)&&(V>423||!c)){d=lv(e,l,0,S,A,j,H,ce,he,G-he,d),ce=N=H=0,he=G;for(var ne=0;ne<286;++ne)A[ne]=0;for(var ne=0;ne<30;++ne)j[ne]=0}var le=2,oe=0,Me=y,pt=Oe-Ue&32767;if(V>2&&Ge==w(G-pt))for(var Vt=Math.min(m,V)-1,jt=Math.min(32767,G),At=Math.min(258,V);pt<=jt&&--Me&&Oe!=Ue;){if(e[G+le]==e[G+le-pt]){for(var tt=0;tt<At&&e[G+tt]==e[G+tt-pt];++tt);if(tt>le){if(le=tt,oe=pt,tt>Vt)break;for(var On=Math.min(pt,tt-2),Or=0,ne=0;ne<On;++ne){var ai=G-pt+ne&32767,b=I[ai],X=ai-b&32767;X>Or&&(Or=X,Ue=ai)}}}Oe=Ue,Ue=I[Oe],pt+=Oe-Ue&32767}if(oe){S[ce++]=268435456|Rl[le]<<18|cv[oe];var E=Rl[le]&31,te=cv[oe]&31;H+=us[E]+ls[te],++A[257+E],++j[te],ue=G+le,++N}else S[ce++]=e[G],++A[e[G]]}}for(G=Math.max(G,ue);G<a;++G)S[ce++]=e[G],++A[e[G]];d=lv(e,l,c,S,A,j,H,ce,he,G-he,d),c||(s.r=d&7|l[d/8|0]<<3,d-=7,s.h=T,s.p=I,s.i=G,s.w=ue)}else{for(var G=s.w||0;G<a+c;G+=65535){var q=G+65535;q>=a&&(l[d/8|0]=c,q=a),d=pv(l,d+1,e.subarray(G,q))}s.i=a}return Ri(u,0,i+Ya(d)+r)},"dflt"),Yz=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e}(),aw=o(function(){var e=-1;return{p:o(function(t){for(var n=e,i=0;i<t.length;++i)n=Yz[n&255^t[i]]^n>>>8;e=n},"p"),d:o(function(){return~e},"d")}},"crc");var cw=o(function(e,t,n,i,r){if(!r&&(r={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),a=new Ze(s.length+e.length);a.set(s),a.set(e,s.length),e=a,r.w=s.length}return sw(e,t.level==null?6:t.level,t.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,i,r)},"dopt"),Nl=o(function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},"mrg"),ZI=o(function(e,t,n){for(var i=e(),r=e.toString(),s=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<i.length;++a){var u=i[a],l=s[a];if(typeof u=="function"){t+=";"+l+"=";var c=u.toString();if(u.prototype)if(c.indexOf("[native code]")!=-1){var d=c.indexOf(" ",8)+1;t+=c.slice(d,c.indexOf("(",d))}else{t+=c;for(var h in u.prototype)t+=";"+l+".prototype."+h+"="+u.prototype[h].toString()}else t+=c}else n[l]=u}return t},"wcln"),El=[],Jz=o(function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},"cbfs"),Qz=o(function(e,t,n,i){if(!El[n]){for(var r="",s={},a=e.length-1,u=0;u<a;++u)r=ZI(e[u],r,s);El[n]={c:ZI(e[a],r,s),e:s}}var l=Nl({},El[n].e);return Kz(El[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,l,Jz(l),i)},"wrkr"),e3=o(function(){return[Ze,cn,Ka,us,ls,Za,dv,JI,ew,nw,Xa,rw,qn,Tl,Xn,Al,Ya,Ri,ft,iw,Ll,kl,uw]},"bInflt"),t3=o(function(){return[Ze,cn,Ka,us,ls,Za,Rl,cv,QI,ni,tw,as,Xa,ow,hv,qn,Ar,os,Pl,Cl,uv,ss,pv,lv,Ya,Ri,sw,cw,Dl,kl]},"bDflt");var kl=o(function(e){return postMessage(e,[e.buffer])},"pbf"),uw=o(function(e){return e&&{out:e.size&&new Ze(e.size),dictionary:e.dictionary}},"gopt"),lw=o(function(e,t,n,i,r,s){var a=Qz(n,i,r,function(u,l){a.terminate(),s(u,l)});return a.postMessage([e,t],t.consume?[e.buffer]:[]),function(){a.terminate()}},"cbify");var ar=o(function(e,t){return e[t]|e[t+1]<<8},"b2"),$t=o(function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},"b4"),av=o(function(e,t){return $t(e,t)+$t(e,t+4)*4294967296},"b8"),Lt=o(function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},"wbytes");function n3(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ft(7),lw(e,t,[t3],function(i){return kl(Dl(i.data[0],i.data[1]))},0,n)}o(n3,"deflate");function Dl(e,t){return cw(e,t||{},0,0)}o(Dl,"deflateSync");function r3(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ft(7),lw(e,t,[e3],function(i){return kl(Ll(i.data[0],uw(i.data[1])))},1,n)}o(r3,"inflate");function Ll(e,t){return iw(e,{i:2},t&&t.out,t&&t.dictionary)}o(Ll,"inflateSync");var mv=o(function(e,t,n,i){for(var r in e){var s=e[r],a=t+r,u=i;Array.isArray(s)&&(u=Nl(i,s[1]),s=s[0]),s instanceof Ze?n[a]=[s,u]:(n[a+="/"]=[new Ze(0),u],mv(s,a,n,i))}},"fltn"),XI=typeof TextEncoder<"u"&&new TextEncoder,fv=typeof TextDecoder<"u"&&new TextDecoder,i3=0;try{fv.decode(hv,{stream:!0}),i3=1}catch(e){}var o3=o(function(e){for(var t="",n=0;;){var i=e[n++],r=(i>127)+(i>223)+(i>239);if(n+r>e.length)return{s:t,r:Ri(e,n-1)};r?r==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):r&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}},"dutf8");function cs(e,t){if(t){for(var n=new Ze(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if(XI)return XI.encode(e);for(var r=e.length,s=new Ze(e.length+(e.length>>1)),a=0,u=o(function(d){s[a++]=d},"w"),i=0;i<r;++i){if(a+5>s.length){var l=new Ze(a+8+(r-i<<1));l.set(s),s=l}var c=e.charCodeAt(i);c<128||t?u(c):c<2048?(u(192|c>>6),u(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|e.charCodeAt(++i)&1023,u(240|c>>18),u(128|c>>12&63),u(128|c>>6&63),u(128|c&63)):(u(224|c>>12),u(128|c>>6&63),u(128|c&63))}return Ri(s,0,a)}o(cs,"strToU8");function gv(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(fv)return fv.decode(e);var r=o3(e),s=r.s,n=r.r;return n.length&&ft(8),s}}o(gv,"strFromU8");var fw=o(function(e,t){return t+30+ar(e,t+26)+ar(e,t+28)},"slzh"),dw=o(function(e,t,n){var i=ar(e,t+28),r=gv(e.subarray(t+46,t+46+i),!(ar(e,t+8)&2048)),s=t+46+i,a=$t(e,t+20),u=n&&a==4294967295?s3(e,s):[a,$t(e,t+24),$t(e,t+42)],l=u[0],c=u[1],d=u[2];return[ar(e,t+10),l,c,r,s+ar(e,t+30)+ar(e,t+32),d]},"zh"),s3=o(function(e,t){for(;ar(e,t)!=1;t+=4+ar(e,t+2));return[av(e,t+12),av(e,t+4),av(e,t+20)]},"z64e"),qa=o(function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&ft(9),t+=i+4}return t},"exfl"),Ol=o(function(e,t,n,i,r,s,a,u){var l=i.length,c=n.extra,d=u&&u.length,h=qa(c);Lt(e,t,a!=null?33639248:67324752),t+=4,a!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(s<0&&8),e[t++]=r&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var m=new Date(n.mtime==null?Date.now():n.mtime),y=m.getFullYear()-1980;if((y<0||y>119)&&ft(10),Lt(e,t,y<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),t+=4,s!=-1&&(Lt(e,t,n.crc),Lt(e,t+4,s<0?-s-2:s),Lt(e,t+8,n.size)),Lt(e,t+12,l),Lt(e,t+14,h),t+=16,a!=null&&(Lt(e,t,d),Lt(e,t+6,n.attrs),Lt(e,t+10,a),t+=14),e.set(i,t),t+=l,h)for(var v in c){var I=c[v],T=I.length;Lt(e,t,+v),Lt(e,t+2,T),e.set(I,t+4),t+=4+T}return d&&(e.set(u,t),t+=d),t},"wzh"),pw=o(function(e,t,n,i,r){Lt(e,t,101010256),Lt(e,t+8,n),Lt(e,t+10,n),Lt(e,t+12,i),Lt(e,t+16,r)},"wzf");function hw(e,t,n){n||(n=t,t={}),typeof n!="function"&&ft(7);var i={};mv(e,"",i,t);var r=Object.keys(i),s=r.length,a=0,u=0,l=s,c=new Array(s),d=[],h=o(function(){for(var T=0;T<d.length;++T)d[T]()},"tAll"),m=o(function(T,U){Ul(function(){n(T,U)})},"cbd");Ul(function(){m=n});var y=o(function(){var T=new Ze(u+22),U=a,D=u-a;u=0;for(var w=0;w<l;++w){var S=c[w];try{var A=S.c.length;Ol(T,u,S,S.f,S.u,A);var j=30+S.f.length+qa(S.extra),N=u+j;T.set(S.c,N),Ol(T,a,S,S.f,S.u,A,u,S.m),a+=16+j+(S.m?S.m.length:0),u=N+A}catch(H){return m(H,null)}}pw(T,a,c.length,D,U),m(null,T)},"cbf");s||y();for(var v=o(function(T){var U=r[T],D=i[U],w=D[0],S=D[1],A=aw(),j=w.length;A.p(w);var N=cs(U),H=N.length,G=S.comment,ce=G&&cs(G),ue=ce&&ce.length,he=qa(S.extra),Ge=S.level==0?0:8,Oe=o(function(Ue,V){if(Ue)h(),m(Ue,null);else{var ne=V.length;c[T]=Nl(S,{size:j,crc:A.d(),c:V,f:N,m:ce,u:H!=U.length||ce&&G.length!=ue,compression:Ge}),a+=30+H+he+ne,u+=76+2*(H+he)+(ue||0)+ne,--s||y()}},"cbl");if(H>65535&&Oe(ft(11,0,1),null),!Ge)Oe(null,w);else if(j<16e4)try{Oe(null,Dl(w,S))}catch(Ue){Oe(Ue,null)}else d.push(n3(w,S,Oe))},"_loop_1"),I=0;I<l;++I)v(I);return h}o(hw,"zip");function mw(e,t){t||(t={});var n={},i=[];mv(e,"",n,t);var r=0,s=0;for(var a in n){var u=n[a],l=u[0],c=u[1],d=c.level==0?0:8,h=cs(a),m=h.length,y=c.comment,v=y&&cs(y),I=v&&v.length,T=qa(c.extra);m>65535&&ft(11);var U=d?Dl(l,c):l,D=U.length,w=aw();w.p(l),i.push(Nl(c,{size:l.length,crc:w.d(),c:U,f:h,m:v,u:m!=a.length||v&&y.length!=I,o:r,compression:d})),r+=30+m+T+D,s+=76+2*(m+T)+(I||0)+D}for(var S=new Ze(s+22),A=r,j=s-r,N=0;N<i.length;++N){var h=i[N];Ol(S,h.o,h,h.f,h.u,h.c.length);var H=30+h.f.length+qa(h.extra);S.set(h.c,h.o+H),Ol(S,r,h,h.f,h.u,h.c.length,h.o,h.m),r+=16+H+(h.m?h.m.length:0)}return pw(S,r,i.length,j,A),S}o(mw,"zipSync");var Ul=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function gw(e,t,n){n||(n=t,t={}),typeof n!="function"&&ft(7);var i=[],r=o(function(){for(var T=0;T<i.length;++T)i[T]()},"tAll"),s={},a=o(function(T,U){Ul(function(){n(T,U)})},"cbd");Ul(function(){a=n});for(var u=e.length-22;$t(e,u)!=101010256;--u)if(!u||e.length-u>65558)return a(ft(13,0,1),null),r;var l=ar(e,u+8);if(l){var c=l,d=$t(e,u+16),h=d==4294967295||c==65535;if(h){var m=$t(e,u-12);h=$t(e,m)==101075792,h&&(c=l=$t(e,m+32),d=$t(e,m+48))}for(var y=t&&t.filter,v=o(function(T){var U=dw(e,d,h),D=U[0],w=U[1],S=U[2],A=U[3],j=U[4],N=U[5],H=fw(e,N);d=j;var G=o(function(ue,he){ue?(r(),a(ue,null)):(he&&(s[A]=he),--l||a(null,s))},"cbl");if(!y||y({name:A,size:w,originalSize:S,compression:D}))if(!D)G(null,Ri(e,H,H+w));else if(D==8){var ce=e.subarray(H,H+w);if(S<524288||w>.8*S)try{G(null,Ll(ce,{out:new Ze(S)}))}catch(ue){G(ue,null)}else i.push(r3(ce,{size:S},G))}else G(ft(14,"unknown compression type "+D,1),null);else G(null,null)},"_loop_3"),I=0;I<c;++I)v(I)}else a(null,{});return r}o(gw,"unzip");function yw(e,t){for(var n={},i=e.length-22;$t(e,i)!=101010256;--i)(!i||e.length-i>65558)&&ft(13);var r=ar(e,i+8);if(!r)return{};var s=$t(e,i+16),a=s==4294967295||r==65535;if(a){var u=$t(e,i-12);a=$t(e,u)==101075792,a&&(r=$t(e,u+32),s=$t(e,u+48))}for(var l=t&&t.filter,c=0;c<r;++c){var d=dw(e,s,a),h=d[0],m=d[1],y=d[2],v=d[3],I=d[4],T=d[5],U=fw(e,T);s=I,(!l||l({name:v,size:m,originalSize:y,compression:h}))&&(h?h==8?n[v]=Ll(e.subarray(U,U+m),{out:new Ze(y)}):ft(14,"unknown compression type "+h):n[v]=Ri(e,U,U+m))}return n}o(yw,"unzipSync");f();var a3=o(e=>{if(e!=null)return e.trim()===""?void 0:e},"maybePath"),c3=o(e=>e!=null,"notNull"),$l=o((e,t,n=0)=>{var i;if(_.IsNull(e))return"null";if(_.IsUndefined(e))return"undefined";if(_.IsString(e))return"<string>";if(_.IsNumber(e))return"<number>";if(_.IsBoolean(e))return"<boolean>";if(_.IsLiteral(e))return typeof e.const=="string"?"'".concat(e.const,"'"):"".concat(e.const);if(_.IsRef(e)){let r=t.find(s=>s.$id===e.$ref);return r==null?e.$ref:$l(r,t,n)}if(_.IsArray(e))return"".concat($l(e.items,t,n+1),"[]");if(_.IsUnion(e)&&(!(e.anyOf.length>5)||e.$id==null)){let s="".concat(e.anyOf.map(a=>$l(a,t,n+1)).filter(c3).join(" | "));return n>0?"(".concat(s,")"):s}return(i=e.$id)!=null?i:""},"resolveSchemaIdent"),u3=o((e,t,n)=>{var s;let i=t.message;_.IsUnion(t.schema)&&(i="Expected one of: ".concat($l(t.schema,n)));let r="#/definitions/".concat(e).concat((s=a3(t.path))!=null?s:"");return"".concat(r,": ").concat(i)},"errorHandler"),zl=o((e,t,n)=>{let i=t.First();if(i!=null)return u3(e,i,n)},"shortError");var fs;(function(e){e.Archive="Archive",e.Validate="Validate",e.Encode="Encode",e.Unknown="Unknown"})(fs||(fs={}));var yv=class yv extends Error{constructor(n,i){super(i);Xe(this,"name");Xe(this,"kind");this.name="CompressError",this.kind=n}};o(yv,"CompressError");var ds=yv,l3=o(e=>new ds(fs.Archive,e.message),"flateErrorIntoCompressError"),f3=o(e=>{let t=Object.values(Fl);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},"isFlateError"),d3=o((e,t,n)=>{var i;return new ds(fs.Validate,(i=zl(e,t,n))!=null?i:"Unknown validate error")},"checkErrorIntoCompressError"),p3=o(e=>new ds(fs.Encode,e.message),"encodeErrorIntoCompressError"),h3=o(e=>new ds(fs.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoCompressError"),Ja=o((e,t,n)=>t instanceof Ji?p3(t):t instanceof Gn?d3(e,t,n):f3(t)?l3(t):h3(t),"intoCompressError");f();var ps;(function(e){e.Unarchive="Unarchive",e.Validate="Validate",e.Decode="Decode",e.Unknown="Unknown"})(ps||(ps={}));var xv=class xv extends Error{constructor(n,i){super(i);Xe(this,"name");Xe(this,"kind");this.name="DecompressError",this.kind=n}};o(xv,"DecompressError");var hs=xv,m3=o(e=>new hs(ps.Unarchive,e.message),"flateErrorIntoDecompressError"),g3=o(e=>{let t=Object.values(Fl);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},"isFlateError"),y3=o((e,t,n)=>{var i;return new hs(ps.Validate,(i=zl(e,t,n))!=null?i:"Unknown validate error")},"checkErrorIntoDecompressError"),x3=o(e=>new hs(ps.Decode,e.message),"decodeErrorIntoDecompressError"),v3=o(e=>new hs(ps.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoDecompressError"),Qa=o((e,t,n)=>t instanceof Yi?x3(t):t instanceof Gn?y3(e,t,n):g3(t)?m3(t):v3(t),"intoDecompressError");var xw=o(function*(e,t=""){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)yield[t+"[".concat(n,"]"),e[n]];return}if("features"in e){for(let n=0;n<e.features.length;n++)yield[t===""?"features[".concat(n,"]"):"".concat(t,".features[").concat(n,"]"),e.features[n]];return}for(let[n,i]of Object.entries(e)){let r=t===""?n:"".concat(t,".").concat(n);yield*k(xw(i,r))}}},"iterRecord"),_3=o((e,t)=>e===""?t:t.startsWith("[")?"".concat(e).concat(t):"".concat(e,".").concat(t),"getPath"),gt=o((e,t,n)=>{let i=new Set;for(let[r,s]of xw(e)){let a=t(s);if(i.has(a))return J({kind:yn.DuplicateIdError,properties:{id:a,path:_3(n,r)}});i.add(a)}return Y(!0)},"ensureUniqueIds");var vw=o(e=>e.floors==null?J({kind:yn.FloorMissingError,properties:null}):gt(e.floors.features,t=>t.properties.id,"floors"),"validateFloors");var _w=p.Intersect([p.Object({id:p.Ref(_e),elevation:p.Integer({description:"An ordinal representing the elevation of this map relative to other maps in the stack."}),subtitle:p.Optional(p.String({description:"The subtitle of the floor."})),maxHeight:p.Optional(p.Number({description:"The maximum height of the floor in meters. This includes the thickness of the floor itself, up to the tallest point on any wall. If the floor does not have a consistent height (eg, one room on the floor has a vaulted ceiling, the rest do not), this value represents the highest point anywhere on the floor. Must be a positive number, or undefined.",minimum:0}))}),wn],{$id:"FloorProperties"}),bw=Nt(p.Union([p.Ref(Yo),p.Ref(Jo),p.Null()]),p.Ref(_w),{$id:"FloorFeature"}),Sw=an(p.Ref(bw),{$id:"FloorCollection"}),b3=p.Object({floors:p.Ref(Sw)}),Iw={name:"core:floors",intoBundle:o(function*(e){e.floors!=null&&(yield{path:"floors.geojson",contents:e.floors})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="floors.geojson")return{floors:n(t)}},"fromBundle"),integrityCheck:vw,schema:b3,references:[_w,bw,Sw]};f();f();var yt=o(e=>p.Unsafe(e),"PartialRecord");f();var $e=o(e=>Object.keys(e),"typedKeys");f();f();var S3=o(e=>{var t,n;return new Map((n=(t=e.floors)==null?void 0:t.features.map(i=>[i.properties.id,i]))!=null?n:[])},"createFloorMap"),cr=o(e=>{let t=S3(e);return o(i=>{let r=t.get(i);return r==null?J({kind:yn.UnknownFloorError,properties:{floorId:i}}):Y(r)},"floorLookup")},"createFloorLookup");var ww=o(e=>{if(e.floors==null)return J({kind:yn.FloorMissingError,properties:null});if(e.geometry==null)return J({kind:yn.GeometryMissingError,properties:null});let t=gt(e.geometry,i=>i.properties.id,"geometry");if(t.isErr())return t;let n=cr(e);for(let i of $e(e.geometry)){let r=n(i);if(r.isErr())return r}return Y(!0)},"validateGeometry");var Mw=p.Intersect([p.Object({id:p.Ref(qt)}),wn],{$id:"GeometryProperties"}),Ew=Nt(p.Union([p.Ref(Xt),p.Ref(rl),p.Ref(il),p.Ref(ol),p.Ref(Yo),p.Ref(Jo)]),p.Ref(Mw),{$id:"GeometryFeature"}),Tw=an(p.Ref(Ew),{$id:"GeometryCollection"}),I3=p.Object({geometry:yt(p.Record(_e,p.Ref(Tw),{additionalProperties:!1}))},{$id:"GeometrySchema"}),w3=/^geometry\/(.*)\.geojson$/,Aw={name:"core:geometry",schema:I3,intoBundle:o(function*(e){if(e.geometry!=null)for(let t of $e(e.geometry))yield{path:"geometry/".concat(t,".geojson"),contents:e.geometry[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(w3))==null?void 0:r[1];if(i)return{geometry:{[i]:n(t)}}},"fromBundle"),references:[Mw,Ew,Tw],integrityCheck:ww};f();var vv=p.Object({type:p.Literal("file"),name:p.String({description:"The name of the file."})},{$id:"ManifestFile"}),Pw=p.Recursive(e=>p.Object({type:p.Literal("folder"),name:p.String({description:"The name of the folder."}),children:p.Array(p.Union([e,p.Ref(vv)]),{minItems:1,description:"The children of the folder."})}),{$id:"ManifestFolder"}),Rw=p.Object({name:p.String({description:"The name of the map."}),version:p.Literal("3.0.0",{description:"The version of the manifest."}),orgId:p.Optional(p.String({description:"The identifier of the organization that the map this MVF is for belongs to."})),mapId:p.Optional(p.String({description:"The identifier of the map that this MVF is for."})),contents:p.Array(p.Union([p.Ref(Pw),p.Ref(vv)]),{minItems:1,description:"The contents of the MVF bundle."}),time:p.String({format:"date-time",description:"An ISO 8601 date-time string, including timezone offset."}),tzid:p.Optional(p.Unsafe(p.String({description:"A valid IANA timezone identifier.",pattern:"^[A-Za-z0-9_-]+/[A-Za-z0-9_-]+$"}))),naturalBearing:p.Optional(p.Number({minimum:0,maximum:360,description:'The angle, in degrees, the map is considered to be "naturally oriented" as, rather than facing directly north. 90 degrees means East is "up"'})),defaultFloor:p.Optional(p.Ref(_e,{description:"The default floor ID of the map."})),language:p.Optional(p.String({description:"The language code of the map."}))},{$id:"ManifestProperties"}),Cw=an(Nt(Xt,p.Ref(Rw)),{$id:"ManifestCollection"},{minItems:1,maxItems:1}),M3=p.Object({manifest:p.Ref(Cw)}),Ow={name:"core:manifest",intoBundle:o(function*(e){e.manifest!=null&&(yield{path:"manifest.geojson",contents:e.manifest})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="manifest.geojson")return{manifest:n(t)}},"fromBundle"),schema:M3,references:[vv,Pw,Rw,Cw]};f();f();f();f();var bv=class bv extends re{constructor(n){super("Unable to dereference schema with $id '".concat(n.$ref,"'"));Xe(this,"schema");this.schema=n}};o(bv,"TypeDereferenceError");var _v=bv;function E3(e,t){let n=t.find(i=>i.$id===e.$ref);if(n===void 0)throw new _v(e);return eo(n,t)}o(E3,"Resolve");function Bl(e,t){return!be.IsString(e.$id)||t.some(n=>n.$id===e.$id)||t.push(e),t}o(Bl,"Pushref");function eo(e,t){return e[P]==="This"||e[P]==="Ref"?E3(e,t):e}o(eo,"Deref");f();function T3(e,t,n){let i=e.get(t);if(i!==void 0)return i;let r=Tr(t,n);return e.set(t,r),r}o(T3,"HasTransformCached");function Vl(){let e=new WeakMap;return{HasTransform:o((t,n)=>T3(e,t,n),"HasTransform")}}o(Vl,"CreateTransformCache");function dt(e,t,n){try{return _.IsTransform(e)?e[ot].Decode(n):n}catch(i){throw new Yi(e,t,n,i)}}o(dt,"Default");function A3(e,t,n,i,r){return be.IsArray(i)?dt(e,n,i.map((s,a)=>Pr(e.items,t,"".concat(n,"/").concat(a),s,r))):dt(e,n,i)}o(A3,"FromArray");function P3(e,t,n,i,r){if(!be.IsObject(i)||Ft(i))return dt(e,n,i);let s=Ei(e),a=s.map(h=>h[0]),u=x({},i);for(let[h,m]of s)h in u&&(u[h]=Pr(m,t,"".concat(n,"/").concat(h),u[h],r));if(!_.IsTransform(e.unevaluatedProperties))return dt(e,n,u);let l=Object.getOwnPropertyNames(u),c=e.unevaluatedProperties,d=x({},u);for(let h of l)a.includes(h)||(d[h]=dt(c,"".concat(n,"/").concat(h),d[h]));return dt(e,n,d)}o(P3,"FromIntersect");function R3(e,t,n,i,r){return dt(e,n,Pr(e.not,t,n,i,r))}o(R3,"FromNot");function C3(e,t,n,i,r){if(!be.IsObject(i))return dt(e,n,i);let s=Pt(e),a=x({},i);for(let d of s)be.HasPropertyKey(a,d)&&(be.IsUndefined(a[d])&&(!_.IsUndefined(e.properties[d])||Le.IsExactOptionalProperty(a,d))||(a[d]=Pr(e.properties[d],t,"".concat(n,"/").concat(d),a[d],r)));if(!_.IsSchema(e.additionalProperties))return dt(e,n,a);let u=Object.getOwnPropertyNames(a),l=e.additionalProperties,c=x({},a);for(let d of u)s.includes(d)||(c[d]=dt(l,"".concat(n,"/").concat(d),c[d]));return dt(e,n,c)}o(C3,"FromObject");function O3(e,t,n,i,r){if(!be.IsObject(i))return dt(e,n,i);let s=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(s),u=x({},i);for(let h of Object.getOwnPropertyNames(i))a.test(h)&&(u[h]=Pr(e.patternProperties[s],t,"".concat(n,"/").concat(h),u[h],r));if(!_.IsSchema(e.additionalProperties))return dt(e,n,u);let l=Object.getOwnPropertyNames(u),c=e.additionalProperties,d=x({},u);for(let h of l)a.test(h)||(d[h]=dt(c,"".concat(n,"/").concat(h),d[h]));return dt(e,n,d)}o(O3,"FromRecord");function U3(e,t,n,i,r){let s=eo(e,t);return dt(e,n,Pr(s,t,n,i,r))}o(U3,"FromRef");function F3(e,t,n,i,r){let s=eo(e,t);return dt(e,n,Pr(s,t,n,i,r))}o(F3,"FromThis");function N3(e,t,n,i,r){return be.IsArray(i)&&be.IsArray(e.items)?dt(e,n,e.items.map((s,a)=>Pr(s,t,"".concat(n,"/").concat(a),i[a],r))):dt(e,n,i)}o(N3,"FromTuple");function k3(e,t,n,i,r){for(let s of e.anyOf){if(!Zn.Check(s,t,i))continue;let a=Pr(s,t,n,i,r);return dt(e,n,a)}return dt(e,n,i)}o(k3,"FromUnion");function Pr(e,t,n,i,r){if(!r.HasTransform(e,t))return i;let s=Bl(e,t),a=e;switch(e[P]){case"Array":return A3(a,s,n,i,r);case"Intersect":return P3(a,s,n,i,r);case"Not":return R3(a,s,n,i,r);case"Object":return C3(a,s,n,i,r);case"Record":return O3(a,s,n,i,r);case"Ref":return U3(a,s,n,i,r);case"Symbol":return dt(a,n,i);case"This":return F3(a,s,n,i,r);case"Tuple":return N3(a,s,n,i,r);case"Union":return k3(a,s,n,i,r);default:return dt(a,n,i)}}o(Pr,"Visit");function Uw(e,t,n){let i=Vl();return Pr(e,t,"",n,i)}o(Uw,"FastTransformDecode");f();function Jt(e,t,n){try{return _.IsTransform(e)?e[ot].Encode(n):n}catch(i){throw new Ji(e,t,n,i)}}o(Jt,"Default");function D3(e,t,n,i,r){let s=Jt(e,n,i);return be.IsArray(s)?s.map((a,u)=>Rr(e.items,t,"".concat(n,"/").concat(u),a,r)):s}o(D3,"FromArray");function L3(e,t,n,i,r){let s=Jt(e,n,i);if(!be.IsObject(i)||Ft(i))return s;let a=Ei(e),u=a.map(m=>m[0]),l=x({},s);for(let[m,y]of a)m in l&&(l[m]=Rr(y,t,"".concat(n,"/").concat(m),l[m],r));if(!_.IsTransform(e.unevaluatedProperties))return l;let c=Object.getOwnPropertyNames(l),d=e.unevaluatedProperties,h=x({},l);for(let m of c)u.includes(m)||(h[m]=Jt(d,"".concat(n,"/").concat(m),h[m]));return h}o(L3,"FromIntersect");function $3(e,t,n,i){return Jt(e.not,n,Jt(e,n,i))}o($3,"FromNot");function z3(e,t,n,i,r){let s=Jt(e,n,i);if(!be.IsObject(s))return s;let a=Pt(e),u=x({},s);for(let h of a)be.HasPropertyKey(u,h)&&(be.IsUndefined(u[h])&&(!_.IsUndefined(e.properties[h])||Le.IsExactOptionalProperty(u,h))||(u[h]=Rr(e.properties[h],t,"".concat(n,"/").concat(h),u[h],r)));if(!_.IsSchema(e.additionalProperties))return u;let l=Object.getOwnPropertyNames(u),c=e.additionalProperties,d=x({},u);for(let h of l)a.includes(h)||(d[h]=Jt(c,"".concat(n,"/").concat(h),d[h]));return d}o(z3,"FromObject");function B3(e,t,n,i,r){let s=Jt(e,n,i);if(!be.IsObject(i))return s;let a=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(a),l=x({},s);for(let m of Object.getOwnPropertyNames(i))u.test(m)&&(l[m]=Rr(e.patternProperties[a],t,"".concat(n,"/").concat(m),l[m],r));if(!_.IsSchema(e.additionalProperties))return l;let c=Object.getOwnPropertyNames(l),d=e.additionalProperties,h=x({},l);for(let m of c)u.test(m)||(h[m]=Jt(d,"".concat(n,"/").concat(m),h[m]));return h}o(B3,"FromRecord");function V3(e,t,n,i,r){let s=eo(e,t),a=Rr(s,t,n,i,r);return Jt(e,n,a)}o(V3,"FromRef");function j3(e,t,n,i,r){let s=eo(e,t),a=Rr(s,t,n,i,r);return Jt(e,n,a)}o(j3,"FromThis");function G3(e,t,n,i,r){let s=Jt(e,n,i);return be.IsArray(e.items)?e.items.map((a,u)=>Rr(a,t,"".concat(n,"/").concat(u),s[u],r)):[]}o(G3,"FromTuple");function H3(e,t,n,i,r){for(let s of e.anyOf){if(!Zn.Check(s,t,i))continue;let a=Rr(s,t,n,i,r);return Jt(e,n,a)}for(let s of e.anyOf){let a=Rr(s,t,n,i,r);if(Zn.Check(e,t,a))return Jt(e,n,a)}return Jt(e,n,i)}o(H3,"FromUnion");function Rr(e,t,n,i,r){if(!r.HasTransform(e,t))return i;let s=Bl(e,t),a=e;switch(e[P]){case"Array":return D3(a,s,n,i,r);case"Intersect":return L3(a,s,n,i,r);case"Not":return $3(a,s,n,i);case"Object":return z3(a,s,n,i,r);case"Record":return B3(a,s,n,i,r);case"Ref":return V3(a,s,n,i,r);case"This":return j3(a,s,n,i,r);case"Tuple":return G3(a,s,n,i,r);case"Union":return H3(a,s,n,i,r);default:return Jt(a,n,i)}}o(Rr,"Visit");function Fw(e,t,n){let i=Vl();return Rr(e,t,"",n,i)}o(Fw,"FastTransformEncode");f();var Ev=class Ev{constructor(t,n,i,r){this.schema=t,this.references=n,this.checkFunc=i,this.code=r,this.hasTransform=Tr(t,n)}Code(){return this.code}Errors(t){return Sr(this.schema,this.references,t)}Check(t){return this.checkFunc(t)}Decode(t){if(!this.checkFunc(t))throw new ns(this.schema,t,this.Errors(t).First());return this.hasTransform?rs(this.schema,this.references,t):t}Encode(t){let n=this.hasTransform?xl(this.schema,this.references,t):t;if(!this.checkFunc(n))throw new is(this.schema,t,this.Errors(t).First());return n}};o(Ev,"TypeCheck");var Sv=Ev,ri;(function(e){function t(s){return s===36}o(t,"DollarSign"),e.DollarSign=t;function n(s){return s===95}o(n,"IsUnderscore"),e.IsUnderscore=n;function i(s){return s>=65&&s<=90||s>=97&&s<=122}o(i,"IsAlpha"),e.IsAlpha=i;function r(s){return s>=48&&s<=57}o(r,"IsNumeric"),e.IsNumeric=r})(ri||(ri={}));var jl;(function(e){function t(s){return s.length===0?!1:ri.IsNumeric(s.charCodeAt(0))}o(t,"IsFirstCharacterNumeric");function n(s){if(t(s))return!1;for(let a=0;a<s.length;a++){let u=s.charCodeAt(a);if(!(ri.IsAlpha(u)||ri.IsNumeric(u)||ri.DollarSign(u)||ri.IsUnderscore(u)))return!1}return!0}o(n,"IsAccessor");function i(s){return s.replace(/'/g,"\\'")}o(i,"EscapeHyphen");function r(s,a){return n(a)?"".concat(s,".").concat(a):"".concat(s,"['").concat(i(a),"']")}o(r,"Encode"),e.Encode=r})(jl||(jl={}));var Iv;(function(e){function t(n){let i=[];for(let r=0;r<n.length;r++){let s=n.charCodeAt(r);ri.IsNumeric(s)||ri.IsAlpha(s)?i.push(n.charAt(r)):i.push("_".concat(s,"_"))}return i.join("").replace(/__/g,"_")}o(t,"Encode"),e.Encode=t})(Iv||(Iv={}));var wv;(function(e){function t(n){return n.replace(/'/g,"\\'")}o(t,"Escape"),e.Escape=t})(wv||(wv={}));var Tv=class Tv extends re{constructor(t){super("Unknown type"),this.schema=t}};o(Tv,"TypeCompilerUnknownTypeError");var Mv=Tv,Av=class Av extends re{constructor(t){super("Preflight validation check failed to guard for the given schema"),this.schema=t}};o(Av,"TypeCompilerTypeGuardError");var Gl=Av,to;(function(e){function t(a,u,l){return Le.ExactOptionalPropertyTypes?"('".concat(u,"' in ").concat(a," ? ").concat(l," : true)"):"(".concat(jl.Encode(a,u)," !== undefined ? ").concat(l," : true)")}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function n(a){return Le.AllowArrayObject?"(typeof ".concat(a," === 'object' && ").concat(a," !== null)"):"(typeof ".concat(a," === 'object' && ").concat(a," !== null && !Array.isArray(").concat(a,"))")}o(n,"IsObjectLike"),e.IsObjectLike=n;function i(a){return Le.AllowArrayObject?"(typeof ".concat(a," === 'object' && ").concat(a," !== null && !(").concat(a," instanceof Date) && !(").concat(a," instanceof Uint8Array))"):"(typeof ".concat(a," === 'object' && ").concat(a," !== null && !Array.isArray(").concat(a,") && !(").concat(a," instanceof Date) && !(").concat(a," instanceof Uint8Array))")}o(i,"IsRecordLike"),e.IsRecordLike=i;function r(a){return Le.AllowNaN?"typeof ".concat(a," === 'number'"):"Number.isFinite(".concat(a,")")}o(r,"IsNumberLike"),e.IsNumberLike=r;function s(a){return Le.AllowNullVoid?"(".concat(a," === undefined || ").concat(a," === null)"):"".concat(a," === undefined")}o(s,"IsVoidLike"),e.IsVoidLike=s})(to||(to={}));var Hl;(function(e){function t(b){return b[P]==="Any"||b[P]==="Unknown"}o(t,"IsAnyOrUnknown");function*n(b,X,E){yield"true"}o(n,"FromAny");function*i(b,X,E){yield"Array.isArray(".concat(E,")");let[te,q]=[At("value","any"),At("acc","number")];ee(b.maxItems)&&(yield"".concat(E,".length <= ").concat(b.maxItems)),ee(b.minItems)&&(yield"".concat(E,".length >= ").concat(b.minItems));let Q=Me(b.items,X,"value");if(yield"".concat(E,".every((").concat(te,") => ").concat(Q,")"),Ie(b.contains)||ee(b.minContains)||ee(b.maxContains)){let nt=Ie(b.contains)?b.contains:Be(),en=Me(nt,X,"value"),Ur=ee(b.minContains)?["(count >= ".concat(b.minContains,")")]:[],Yn=ee(b.maxContains)?["(count <= ".concat(b.maxContains,")")]:[],dr="const count = value.reduce((".concat(q,", ").concat(te,") => ").concat(en," ? acc + 1 : acc, 0)"),ac=["(count > 0)",...Ur,...Yn].join(" && ");yield"((".concat(te,") => { ").concat(dr,"; return ").concat(ac,"})(").concat(E,")")}if(b.uniqueItems===!0){let en="const set = new Set(); for(const element of value) { ".concat("const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true"," }");yield"((".concat(te,") => { ").concat(en," )(").concat(E,")")}}o(i,"FromArray");function*r(b,X,E){yield"(typeof value === 'object' && Symbol.asyncIterator in ".concat(E,")")}o(r,"FromAsyncIterator");function*s(b,X,E){yield"(typeof ".concat(E," === 'bigint')"),Ut(b.exclusiveMaximum)&&(yield"".concat(E," < BigInt(").concat(b.exclusiveMaximum,")")),Ut(b.exclusiveMinimum)&&(yield"".concat(E," > BigInt(").concat(b.exclusiveMinimum,")")),Ut(b.maximum)&&(yield"".concat(E," <= BigInt(").concat(b.maximum,")")),Ut(b.minimum)&&(yield"".concat(E," >= BigInt(").concat(b.minimum,")")),Ut(b.multipleOf)&&(yield"(".concat(E," % BigInt(").concat(b.multipleOf,")) === 0"))}o(s,"FromBigInt");function*a(b,X,E){yield"(typeof ".concat(E," === 'boolean')")}o(a,"FromBoolean");function*u(b,X,E){yield*k(le(b.returns,X,"".concat(E,".prototype")))}o(u,"FromConstructor");function*l(b,X,E){yield"(".concat(E," instanceof Date) && Number.isFinite(").concat(E,".getTime())"),ee(b.exclusiveMaximumTimestamp)&&(yield"".concat(E,".getTime() < ").concat(b.exclusiveMaximumTimestamp)),ee(b.exclusiveMinimumTimestamp)&&(yield"".concat(E,".getTime() > ").concat(b.exclusiveMinimumTimestamp)),ee(b.maximumTimestamp)&&(yield"".concat(E,".getTime() <= ").concat(b.maximumTimestamp)),ee(b.minimumTimestamp)&&(yield"".concat(E,".getTime() >= ").concat(b.minimumTimestamp)),ee(b.multipleOfTimestamp)&&(yield"(".concat(E,".getTime() % ").concat(b.multipleOfTimestamp,") === 0"))}o(l,"FromDate");function*c(b,X,E){yield"(typeof ".concat(E," === 'function')")}o(c,"FromFunction");function*d(b,X,E){yield"Number.isInteger(".concat(E,")"),ee(b.exclusiveMaximum)&&(yield"".concat(E," < ").concat(b.exclusiveMaximum)),ee(b.exclusiveMinimum)&&(yield"".concat(E," > ").concat(b.exclusiveMinimum)),ee(b.maximum)&&(yield"".concat(E," <= ").concat(b.maximum)),ee(b.minimum)&&(yield"".concat(E," >= ").concat(b.minimum)),ee(b.multipleOf)&&(yield"(".concat(E," % ").concat(b.multipleOf,") === 0"))}o(d,"FromInteger");function*h(b,X,E){let te=b.allOf.map(q=>Me(q,X,E)).join(" && ");if(b.unevaluatedProperties===!1){let q=Vt("".concat(new RegExp(Kr(b)),";")),Q="Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(q,".test(key))");yield"(".concat(te," && ").concat(Q,")")}else if(Ie(b.unevaluatedProperties)){let q=Vt("".concat(new RegExp(Kr(b)),";")),Q="Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(q,".test(key) || ").concat(Me(b.unevaluatedProperties,X,"".concat(E,"[key]")),")");yield"(".concat(te," && ").concat(Q,")")}else yield"(".concat(te,")")}o(h,"FromIntersect");function*m(b,X,E){yield"(typeof value === 'object' && Symbol.iterator in ".concat(E,")")}o(m,"FromIterator");function*y(b,X,E){typeof b.const=="number"||typeof b.const=="boolean"?yield"(".concat(E," === ").concat(b.const,")"):yield"(".concat(E," === '").concat(wv.Escape(b.const),"')")}o(y,"FromLiteral");function*v(b,X,E){yield"false"}o(v,"FromNever");function*I(b,X,E){let te=Me(b.not,X,E);yield"(!".concat(te,")")}o(I,"FromNot");function*T(b,X,E){yield"(".concat(E," === null)")}o(T,"FromNull");function*U(b,X,E){yield to.IsNumberLike(E),ee(b.exclusiveMaximum)&&(yield"".concat(E," < ").concat(b.exclusiveMaximum)),ee(b.exclusiveMinimum)&&(yield"".concat(E," > ").concat(b.exclusiveMinimum)),ee(b.maximum)&&(yield"".concat(E," <= ").concat(b.maximum)),ee(b.minimum)&&(yield"".concat(E," >= ").concat(b.minimum)),ee(b.multipleOf)&&(yield"(".concat(E," % ").concat(b.multipleOf,") === 0"))}o(U,"FromNumber");function*D(b,X,E){yield to.IsObjectLike(E),ee(b.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length >= ").concat(b.minProperties)),ee(b.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length <= ").concat(b.maxProperties));let te=Object.getOwnPropertyNames(b.properties);for(let q of te){let Q=jl.Encode(E,q),nt=b.properties[q];if(b.required&&b.required.includes(q))yield*k(le(nt,X,Q)),(Jr(nt)||t(nt))&&(yield"('".concat(q,"' in ").concat(E,")"));else{let en=Me(nt,X,Q);yield to.IsExactOptionalProperty(E,q,en)}}if(b.additionalProperties===!1)if(b.required&&b.required.length===te.length)yield"Object.getOwnPropertyNames(".concat(E,").length === ").concat(te.length);else{let q="[".concat(te.map(Q=>"'".concat(Q,"'")).join(", "),"]");yield"Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(q,".includes(key))")}if(typeof b.additionalProperties=="object"){let q=Me(b.additionalProperties,X,"".concat(E,"[key]")),Q="[".concat(te.map(nt=>"'".concat(nt,"'")).join(", "),"]");yield"(Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(Q,".includes(key) || ").concat(q,"))")}}o(D,"FromObject");function*w(b,X,E){yield"(typeof value === 'object' && typeof ".concat(E,".then === 'function')")}o(w,"FromPromise");function*S(b,X,E){yield to.IsRecordLike(E),ee(b.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length >= ").concat(b.minProperties)),ee(b.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length <= ").concat(b.maxProperties));let[te,q]=Object.entries(b.patternProperties)[0],Q=Vt("".concat(new RegExp(te))),nt=Me(q,X,"value"),en=Ie(b.additionalProperties)?Me(b.additionalProperties,X,E):b.additionalProperties===!1?"false":"true",Ur="(".concat(Q,".test(key) ? ").concat(nt," : ").concat(en,")");yield"(Object.entries(".concat(E,").every(([key, value]) => ").concat(Ur,"))")}o(S,"FromRecord");function*A(b,X,E){let te=Ae(b,X);if(oe.functions.has(b.$ref))return yield"".concat(pt(b.$ref),"(").concat(E,")");yield*k(le(te,X,E))}o(A,"FromRef");function*j(b,X,E){let te=Vt("".concat(new RegExp(b.source,b.flags),";"));yield"(typeof ".concat(E," === 'string')"),ee(b.maxLength)&&(yield"".concat(E,".length <= ").concat(b.maxLength)),ee(b.minLength)&&(yield"".concat(E,".length >= ").concat(b.minLength)),yield"".concat(te,".test(").concat(E,")")}o(j,"FromRegExp");function*N(b,X,E){if(yield"(typeof ".concat(E," === 'string')"),ee(b.maxLength)&&(yield"".concat(E,".length <= ").concat(b.maxLength)),ee(b.minLength)&&(yield"".concat(E,".length >= ").concat(b.minLength)),b.pattern!==void 0){let te=Vt("".concat(new RegExp(b.pattern),";"));yield"".concat(te,".test(").concat(E,")")}b.format!==void 0&&(yield"format('".concat(b.format,"', ").concat(E,")"))}o(N,"FromString");function*H(b,X,E){yield"(typeof ".concat(E," === 'symbol')")}o(H,"FromSymbol");function*G(b,X,E){yield"(typeof ".concat(E," === 'string')");let te=Vt("".concat(new RegExp(b.pattern),";"));yield"".concat(te,".test(").concat(E,")")}o(G,"FromTemplateLiteral");function*ce(b,X,E){yield"".concat(pt(b.$ref),"(").concat(E,")")}o(ce,"FromThis");function*ue(b,X,E){if(yield"Array.isArray(".concat(E,")"),b.items===void 0)return yield"".concat(E,".length === 0");yield"(".concat(E,".length === ").concat(b.maxItems,")");for(let te=0;te<b.items.length;te++){let q=Me(b.items[te],X,"".concat(E,"[").concat(te,"]"));yield"".concat(q)}}o(ue,"FromTuple");function*he(b,X,E){yield"".concat(E," === undefined")}o(he,"FromUndefined");function*Ge(b,X,E){let te=b.anyOf.map(q=>Me(q,X,E));yield"(".concat(te.join(" || "),")")}o(Ge,"FromUnion");function*Oe(b,X,E){yield"".concat(E," instanceof Uint8Array"),ee(b.maxByteLength)&&(yield"(".concat(E,".length <= ").concat(b.maxByteLength,")")),ee(b.minByteLength)&&(yield"(".concat(E,".length >= ").concat(b.minByteLength,")"))}o(Oe,"FromUint8Array");function*Ue(b,X,E){yield"true"}o(Ue,"FromUnknown");function*V(b,X,E){yield to.IsVoidLike(E)}o(V,"FromVoid");function*ne(b,X,E){let te=oe.instances.size;oe.instances.set(te,b),yield"kind('".concat(b[P],"', ").concat(te,", ").concat(E,")")}o(ne,"FromKind");function*le(b,X,E,te=!0){let q=Se(b.$id)?[...X,b]:X,Q=b;if(te&&Se(b.$id)){let nt=pt(b.$id);if(oe.functions.has(nt))return yield"".concat(nt,"(").concat(E,")");{let en=jt(nt,b,X,"value",!1);return oe.functions.set(nt,en),yield"".concat(nt,"(").concat(E,")")}}switch(Q[P]){case"Any":return yield*k(n(Q,q,E));case"Array":return yield*k(i(Q,q,E));case"AsyncIterator":return yield*k(r(Q,q,E));case"BigInt":return yield*k(s(Q,q,E));case"Boolean":return yield*k(a(Q,q,E));case"Constructor":return yield*k(u(Q,q,E));case"Date":return yield*k(l(Q,q,E));case"Function":return yield*k(c(Q,q,E));case"Integer":return yield*k(d(Q,q,E));case"Intersect":return yield*k(h(Q,q,E));case"Iterator":return yield*k(m(Q,q,E));case"Literal":return yield*k(y(Q,q,E));case"Never":return yield*k(v(Q,q,E));case"Not":return yield*k(I(Q,q,E));case"Null":return yield*k(T(Q,q,E));case"Number":return yield*k(U(Q,q,E));case"Object":return yield*k(D(Q,q,E));case"Promise":return yield*k(w(Q,q,E));case"Record":return yield*k(S(Q,q,E));case"Ref":return yield*k(A(Q,q,E));case"RegExp":return yield*k(j(Q,q,E));case"String":return yield*k(N(Q,q,E));case"Symbol":return yield*k(H(Q,q,E));case"TemplateLiteral":return yield*k(G(Q,q,E));case"This":return yield*k(ce(Q,q,E));case"Tuple":return yield*k(ue(Q,q,E));case"Undefined":return yield*k(he(Q,q,E));case"Union":return yield*k(Ge(Q,q,E));case"Uint8Array":return yield*k(Oe(Q,q,E));case"Unknown":return yield*k(Ue(Q,q,E));case"Void":return yield*k(V(Q,q,E));default:if(!Et.Has(Q[P]))throw new Mv(b);return yield*k(ne(Q,q,E))}}o(le,"Visit");let oe={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function Me(b,X,E,te=!0){return"(".concat([...le(b,X,E,te)].join(" && "),")")}o(Me,"CreateExpression");function pt(b){return"check_".concat(Iv.Encode(b))}o(pt,"CreateFunctionName");function Vt(b){let X="local_".concat(oe.variables.size);return oe.variables.set(X,"const ".concat(X," = ").concat(b)),X}o(Vt,"CreateVariable");function jt(b,X,E,te,q=!0){let[Q,nt]=["\n",dr=>"".padStart(dr," ")],en=At("value","any"),Ur=tt("boolean"),Yn=[...le(X,E,te,q)].map(dr=>"".concat(nt(4)).concat(dr)).join(" &&".concat(Q));return"function ".concat(b,"(").concat(en,")").concat(Ur," {").concat(Q).concat(nt(2),"return (").concat(Q).concat(Yn).concat(Q).concat(nt(2),")\n}")}o(jt,"CreateFunction");function At(b,X){let E=oe.language==="typescript"?": ".concat(X):"";return"".concat(b).concat(E)}o(At,"CreateParameter");function tt(b){return oe.language==="typescript"?": ".concat(b):""}o(tt,"CreateReturns");function On(b,X,E){let te=jt("check",b,X,"value"),q=At("value","any"),Q=tt("boolean"),nt=[...oe.functions.values()],en=[...oe.variables.values()],Ur=Se(b.$id)?"return function check(".concat(q,")").concat(Q," {\n return ").concat(pt(b.$id),"(value)\n}"):"return ".concat(te);return[...en,...nt,Ur].join("\n")}o(On,"Build");function Or(...b){let X={language:"javascript"},[E,te,q]=b.length===2&&ae(b[1])?[b[0],b[1],X]:b.length===2&&!ae(b[1])?[b[0],[],b[1]]:b.length===3?[b[0],b[1],b[2]]:b.length===1?[b[0],[],X]:[null,[],X];if(oe.language=q.language,oe.variables.clear(),oe.functions.clear(),oe.instances.clear(),!Ie(E))throw new Gl(E);for(let Q of te)if(!Ie(Q))throw new Gl(Q);return On(E,te,q)}o(Or,"Code"),e.Code=Or;function ai(b,X=[]){let E=Or(b,X,{language:"javascript"}),te=globalThis.Function("kind","format","hash",E),q=new Map(oe.instances);function Q(Yn,dr,ac){if(!Et.Has(Yn)||!q.has(dr))return!1;let nT=Et.Get(Yn),rT=q.get(dr);return nT(rT,ac)}o(Q,"typeRegistryFunction");function nt(Yn,dr){return sn.Has(Yn)?sn.Get(Yn)(dr):!1}o(nt,"formatRegistryFunction");function en(Yn){return Pi(Yn)}o(en,"hashFunction");let Ur=te(Q,nt,en);return new Sv(b,X,Ur,E)}o(ai,"Compile"),e.Compile=ai})(Hl||(Hl={}));f();f();f();var W3=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Z3=[0,31,28,31,30,31,30,31,31,30,31,30,31],X3=o(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Wl=o(e=>{let t=W3.exec(e);if(!t)return!1;let n=+t[1],i=+t[2],r=+t[3];return i>=1&&i<=12&&r>=1&&r<=(i===2&&X3(n)?29:Z3[i])},"isDate");f();var q3=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i,Zl=o(e=>{let t=q3.exec(e);if(!t)return!1;let n=+t[1],i=+t[2],r=+t[3],s=t[4],a=t[5]==="-"?-1:1,u=+(t[6]||0),l=+(t[7]||0);if(u>23||l>59||!s)return!1;if(n<=23&&i<=59&&r<60)return!0;let c=i-l*a,d=n-u*a-(c<0?1:0);return(d===23||d===-1)&&(c===59||c===-1)&&r<61},"isTime");var K3=/t|\s/i,Nw=o(e=>{let t=e.split(K3);return t.length===2&&Wl(t[0])&&Zl(t[1])},"isDateTime");f();var Y3=/\/|:/,J3=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,kw=o(e=>Y3.test(e)&&J3.test(e),"isUri");var Q3=[["date",Wl],["time",Zl],["date-time",Nw],["uri",kw]],Dw=o(()=>{for(let[e,t]of Q3)try{fl.Format(e,t)}catch(n){if(n instanceof ja)continue;throw n}},"registerFormats");f();var Pv=p.Record(p.String(),p.Unknown(),{$id:"Extra"}),ur=p.Object({extra:p.Optional(p.Ref(Pv))}),Rv=[Pv];f();f();f();f();f();f();var Qt=o(e=>Object.entries(e),"typedEntries");var eB=o(e=>{var n;let t=new Map;for(let[i,r]of Qt((n=e.geometry)!=null?n:{}))t.set(i,new Map(r==null?void 0:r.features.map(s=>[s.properties.id,s])));return t},"createLookupMap"),Tt=o(e=>{let t=eB(e);return o((i,r)=>{let s=t.get(i);if(s==null)return J({kind:yn.UnknownFloorError,properties:{floorId:i}});let a=s.get(r);return a==null?J({kind:yn.UnknownGeometryError,properties:{floorId:i,geometryId:r}}):Y(a)},"geometryLookup")},"createGeometryLookup");f();var Kn=p.Object({geometryId:p.Ref(qt)},{$id:"WithGeometryId"}),ms=p.Object({geometryIds:p.Array(p.Ref(qt))},{$id:"WithGeometryIds"}),Cv=[Kn,ms];f();f();f();var Lw=o(e=>e instanceof Error?e:new Error(String(e)),"asError");var gs=o(e=>(...t)=>{try{return Y(e(...t))}catch(n){return J(Lw(n))}},"safeFn");var $w=gs((e,t)=>{let n={};for(let i of t)for(let r of i.intoBundle(e))n[r.path]=cs(JSON.stringify(r.contents));return n}),Ov=o(async(e,t,n)=>$w(e,t).andThenAsync(i=>new Promise(r=>{hw(i,L(x({},n),{consume:!0}),(s,a)=>{r(s?J(s):Y(a))})})),"compress"),tB=gs(mw),Uv=o((e,t,n)=>$w(e,t).andThen(i=>tB(i,n)),"compressSync");f();f();function Xl(e,t,n=[]){let i=x({},e);for(let[r,s]of Object.entries(t))if(s!==void 0)if(r in i){let a=r;if(Array.isArray(s)&&s.length>0){let u=nB(s[0],n);if(u){let l=i[a];if(!Array.isArray(l))throw new Error("Expected array at ".concat(r,", got ").concat(typeof l));let c=new Map(s.map(m=>[zw(m,u),m])),h=l.map(m=>{let y=c.get(zw(m,u));return y?Xl(m,y,n):m});i[a]=h}else i[a]=s}else{let u=i[a];typeof u=="object"&&u!==null&&typeof s=="object"&&s!==null?Object.keys(s).length===0?i[a]=s:i[a]=Xl(u,s,n):i[r]=s}}else i[r]=s;return i}o(Xl,"deepMergeOn");function nB(e,t){function n(i){if(typeof i!="object"||i===null)return null;for(let r of t)if(r in i&&typeof i[r]<"u")return[r];if(Array.isArray(i))return null;for(let[r,s]of Object.entries(i)){let a=n(s);if(a)return[r,...a]}return null}return o(n,"search"),n(e)}o(nB,"findIdentifierKey");function zw(e,t){return t.reduce((n,i)=>{if(n&&typeof n=="object")return n[i]},e)}o(zw,"getValueByKeyPath");var rB=o(e=>e,"identity"),iB=o(e=>JSON.parse(gv(e)),"jsonDecode"),Bw=o((e,t)=>t.some(n=>n.fromBundle(e.name,new Uint8Array,rB)!==void 0),"isFileExpected"),Vw=gs((e,t)=>{let n={};for(let i of Object.keys(e)){let r=e[i];for(let s of t){let a=s.fromBundle(i,r,iB);if(a){n=Xl(n,a,[]);break}}}return n}),Fv=o(async(e,t)=>new Promise(n=>gw(e,{filter:o(i=>Bw(i,t),"filter")},(i,r)=>{n(i?J(i):Y(r))})).then(n=>n.andThen(i=>Vw(i,t))),"decompress"),oB=gs(yw),Nv=o((e,t)=>oB(e,{filter:o(n=>Bw(n,t),"filter")}).andThen(n=>Vw(n,t)),"decompressSync");f();var sB=o(e=>typeof e=="object"&&e!=null&&"$ref"in e&&typeof e.$ref=="string","isRef"),aB=o(e=>{if(e.length<2)return!1;let t=e.filter(sB);if(t.length!==e.length)return!1;let n=t[0].$ref;return t.slice(1).every(i=>i.$ref===n)},"isDuplicateRef"),ql=o(e=>typeof e=="object"&&e!=null&&"allOf"in e&&Array.isArray(e.allOf)&&aB(e.allOf)?e.allOf[0]:typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,ql(n)])):Array.isArray(e)?e.map(ql):e,"fixDuplicateAllOf");f();var Kl=o(e=>typeof e=="object"&&e!=null&&"$ref"in e?L(x({},e),{$ref:"#/definitions/".concat(e.$ref)}):typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Kl(n)])):Array.isArray(e)?e.map(Kl):e,"prefixReferences");var ys;(function(e){e.InvalidTypeboxSchema="InvalidTypeboxSchema",e.MissingReferenceId="MissingReferenceId",e.DuplicateReferenceId="DuplicateReferenceId",e.TypeboxError="TypeboxError",e.UnknownError="UnknownError"})(ys||(ys={}));var cB=o(e=>({next(){for(let n of e){let i=n.next();if(!i.done)return i}return{done:!0,value:void 0}},[Symbol.iterator](){return this}}),"join"),uB=o((...e)=>{let t=new Map;for(let n of cB(e)){if(!n.$id)continue;let i=t.get(n.$id);if(i!=null&&i!==n)return J({kind:ys.DuplicateReferenceId,message:"Failed to register a reference for a schema with an $id that has already been used",schema:n});t.set(n.$id,n)}return Y(t)},"computeReferenceMap"),Ct,xs,Rn,zt,Jl=class Jl{constructor(t,n,i,r){It(this,Ct);It(this,xs);It(this,Rn,[]);It(this,zt);Ot(this,Ct,t),Ot(this,xs,n),Ot(this,Rn,i),Ot(this,zt,r),this.is=this.is.bind(this),this.parse=this.parse.bind(this),this.verify=this.verify.bind(this),this.jsonSchema=this.jsonSchema.bind(this),this.compress=this.compress.bind(this),this.decompress=this.decompress.bind(this)}static create(t,n="CoreMVF",i=!1){let r=p.Composite(t.extensions.map(a=>a.schema),{$id:n});if(!_.IsSchema(r))return J({kind:ys.InvalidTypeboxSchema,message:"Attempting to merge schemas produced an invalid schema",schema:r});let s=uB(Ix.values(),wx.values(),bx.values(),Rv.values(),kv.values(),Cv.values(),t.extensions.flatMap(a=>{var u;return(u=a.references)!=null?u:[]}).values());if(!s.isOk())return s;try{Dw();let a=i?null:Hl.Compile(r,[...s.value.values()]);return Y(new Jl(r,a,t.extensions,s.value))}catch(a){return a instanceof re?J({kind:ys.TypeboxError,message:a.message,original:a}):J({kind:ys.UnknownError,message:"An unknown error occurred while compiling the schema",original:a})}}is(t){var n,i;return(i=(n=W(this,xs))==null?void 0:n.Check(t))!=null?i:Zn.Check(W(this,Ct),[...W(this,zt).values()],t)}parse(t){var n,i;return this.is(t)?Y(t):J((i=(n=W(this,xs))==null?void 0:n.Errors(t))!=null?i:Zn.Errors(W(this,Ct),[...W(this,zt).values()],t))}decode(t){try{return Y(Uw(W(this,Ct),[...W(this,zt).values()],t))}catch(n){return J(n)}}encode(t){try{return Y(Fw(W(this,Ct),[...W(this,zt).values()],t))}catch(n){return J(n)}}verify(t){for(let n of W(this,Rn))if(n.integrityCheck){let i=n.integrityCheck(t);if(i.isErr())return J(i.error)}return Y(!0)}jsonSchema(){var i;let t=JSON.parse(JSON.stringify([W(this,Ct),...W(this,zt).values()])),n=ql(Kl({$id:"#/definitions/".concat((i=W(this,Ct).$id)!=null?i:"CoreMVF"),$schema:"http://json-schema.org/draft-07/schema#",references:t}));return JSON.stringify(n,null,2)}async compress(t){return this.encode(t).andThen(n=>this.parse(n)).andThenAsync(n=>Ov(n,W(this,Rn))).then(n=>n.mapErr(i=>{var r;return Ja((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}async compressUnsafe(t){return this.encode(t).andThenAsync(n=>Ov(n,W(this,Rn))).then(n=>n.mapErr(i=>{var r;return Ja((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}compressSync(t){return this.encode(t).andThen(n=>this.parse(n)).andThen(n=>Uv(n,W(this,Rn))).mapErr(n=>{var i;return Ja((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}compressUnsafeSync(t){return this.encode(t).andThen(n=>Uv(n,W(this,Rn))).mapErr(n=>{var i;return Ja((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}async decompress(t){return Fv(t,W(this,Rn)).then(n=>n.andThen(i=>this.parse(i)).andThen(i=>this.decode(i)).mapErr(i=>{var r;return Qa((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}async decompressUnsafe(t){return Fv(t,W(this,Rn)).then(n=>n.andThen(i=>this.decode(i)).mapErr(i=>{var r;return Qa((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}decompressSync(t){return Nv(t,W(this,Rn)).andThen(n=>this.parse(n)).andThen(n=>this.decode(n)).mapErr(n=>{var i;return Qa((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}decompressUnsafeSync(t){return Nv(t,W(this,Rn)).andThen(n=>this.decode(n)).mapErr(n=>{var i;return Qa((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}};Ct=new WeakMap,xs=new WeakMap,Rn=new WeakMap,zt=new WeakMap,o(Jl,"MVFParser");var Yl=Jl;var vs,Dv=class Dv{constructor(){It(this,vs,[]);this.extend=this.extend.bind(this)}extend(t){return W(this,vs).push(t),this}extendOptional(t){let n=L(x({},t),{schema:p.Partial(t.schema)});return W(this,vs).push(n),this}build(t){return Yl.create(this,void 0,t==null?void 0:t.cspSafe)}get extensions(){return W(this,vs)}};vs=new WeakMap,o(Dv,"MVFParserBuilder");var Ql=Dv;f();f();f();f();var _s=p.Object({geometryId:p.Ref(qt),floorId:p.Ref(_e)},{$id:"GeometryAnchor"}),lB=p.Object({geometryAnchor:p.Ref(_s)}),ec=o((e,t)=>p.Object({geometryAnchors:p.Array(p.Ref(_s),e)},t),"WithGeometryAnchors"),kv=[_s];f();f();f();var jw=o((e,t)=>p.Unsafe(p.Transform(p.String(t)).Decode(n=>e.includes(n)?n:"unknown").Encode(n=>n)),"SafeStringEnumSchema"),Bt=o((e,t)=>{let n=jw(e,t),i=[...e,"unknown"],r=Object.freeze(Object.fromEntries([...e,"unknown"].map(a=>[a,a])));return{schema:n,values:i,record:r,is:o(a=>Object.hasOwn(r,a),"is")}},"SafeStringEnum");var Gw=o(()=>new Ql().extend(Iw).extend(Aw).extend(Ow),"createParser");f();f();f();f();f();f();var tc;(function(e){e.AnnotationNonPointGeometryError="AnnotationNonPointGeometryError",e.AnnotationUnknownSymbolError="AnnotationUnknownSymbolError"})(tc||(tc={}));var Hw=o(e=>{var r;if(e.annotations==null)return Y(!0);let t=gt(e.annotations,s=>s.id,"annotations");if(t.isErr())return t;let n=Tt(e),i=new Set($e((r=e.annotationSymbols)!=null?r:{}));for(let s of $e(e.annotations)){let a=e.annotations[s];if(a!=null)for(let u of a){if(!i.has(u.symbolKey))return J({kind:tc.AnnotationUnknownSymbolError,properties:{annotationId:u.id,symbolKey:u.symbolKey}});let l=n(s,u.geometryId);if(l.isErr())return l;if(l.value.geometry.type!=="Point")return J({kind:tc.AnnotationNonPointGeometryError,properties:{annotationId:u.id,floorId:s,geometryId:u.geometryId}})}}return Y(!0)},"validateAnnotations");var Ww=mt("a","AnnotationId"),Lv=p.Intersect([Kn,p.Object({id:p.Ref(Ww,{description:"The unique identifier for the annotation."}),externalId:p.Optional(p.String({description:"The external identifier for the annotation."})),symbolKey:p.String({description:"The symbol identifier for the annotation."})})],{$id:"AnnotationProperties"}),Zw=p.Object({url:p.String({format:"uri",description:"The URL for the symbol."}),name:p.String({description:"The name of the symbol."})},{$id:"AnnotationSymbol"}),fB=p.Object({annotations:yt(p.Record(_e,p.Array(p.Ref(Lv)),{additionalProperties:!1})),annotationSymbols:yt(p.Record(p.Index(Lv,["symbolKey"]),p.Ref(Zw)))},{$id:"AnnotationsSchema"}),dB=/^annotations\/(.*)\.json$/,Xw={name:"ext:mvf-annotations",schema:fB,intoBundle:o(function*(e){if(e.annotations!=null)for(let t of $e(e.annotations))yield{path:"annotations/".concat(t,".json"),contents:e.annotations[t]};e.annotationSymbols!=null&&(yield{path:"annotation-symbols.json",contents:e.annotationSymbols})},"intoBundle"),fromBundle:o((e,t,n)=>{var r;if(e==="annotation-symbols.json")return{annotationSymbols:n(t)};let i=(r=e.match(dB))==null?void 0:r[1];if(i)return{annotations:{[i]:n(t)}}},"fromBundle"),references:[Ww,Lv,Zw],integrityCheck:Hw};f();f();f();var ii=mt("lcat","LocationCategoryId"),$v=p.Intersect([p.Object({id:p.Ref(ii),parent:p.Optional(p.Ref(ii))}),qi(["name"]),ur],{$id:"LocationCategory"}),qw=[ii,$v];f();f();var no;(function(e){e.UnknownCategoryError="UnknownCategoryError",e.UnknownParentCategoryError="UnknownParentCategoryError",e.UnknownParentLocationError="UnknownParentLocationError"})(no||(no={}));var Kw=o(e=>{var r,s,a,u,l,c,d,h,m;if(e.locationCategories==null&&e.locations==null)return Y(!0);if(e.locationCategories!=null){let y=gt(e.locationCategories,v=>v.id,"locationCategories");if(y.isErr())return y}if(e.locations!=null){let y=gt(e.locations,v=>v.id,"locations");if(y.isErr())return y}if(e.locationInstances!=null){let y=gt(e.locationInstances,v=>v.id,"locationInstances");if(y.isErr())return y}let t=new Set((s=(r=e.locationCategories)==null?void 0:r.map(y=>y.id))!=null?s:[]);for(let y of(a=e.locationCategories)!=null?a:[])if(y.parent!=null&&!t.has(y.parent))return J({kind:no.UnknownParentCategoryError,properties:{categoryId:y.id,parentCategoryId:y.parent}});let n=Tt(e);for(let y of(u=e.locations)!=null?u:[]){for(let v of y.categories)if(!t.has(v))return J({kind:no.UnknownCategoryError,properties:{locationId:y.id,categoryId:v}});for(let v of y.geometryAnchors){let I=n(v.floorId,v.geometryId);if(I.isErr())return I}}let i=new Set((c=(l=e.locations)==null?void 0:l.map(y=>y.id))!=null?c:[]);for(let y of(d=e.locationInstances)!=null?d:[]){if(!i.has(y.parentId))return J({kind:no.UnknownParentLocationError,properties:{locationInstanceId:y.id,parentLocationId:y.parentId}});for(let v of(h=y.categories)!=null?h:[])if(!t.has(v))return J({kind:no.UnknownCategoryError,properties:{locationId:y.id,categoryId:v}});for(let v of(m=y.geometryAnchors)!=null?m:[]){let I=n(v.floorId,v.geometryId);if(I.isErr())return I}}return Y(!0)},"validateLocations");f();var oi=mt("loc","LocationId"),ef=mt("loci","LocationInstanceId"),Yw=p.Object({name:p.String(),url:p.String({format:"uri"})},{$id:"LocationSocial"}),Jw=p.Object({url:p.String({format:"uri"})},{$id:"LocationImage"}),zv=p.Object({label:p.String(),url:p.String({format:"uri"})},{$id:"LocationLink"}),Bv=p.String({pattern:"^[0-2][0-9]:[0-6][0-9](:[0-6][0-9])?$",$id:"OpeningHoursTime"}),Qw=p.Union([p.Literal("Sunday"),p.Literal("Monday"),p.Literal("Tuesday"),p.Literal("Wednesday"),p.Literal("Thursday"),p.Literal("Friday"),p.Literal("Saturday")],{$id:"OpeningHoursDay"}),pB="PublicHolidays",Vv=p.Union([Qw,p.Literal(pB)],{$id:"OpeningHoursDayOrPublicHoliday"}),tf=p.Object({"@type":p.Optional(p.Literal("OpeningHoursSpecification",{description:"The type of opening hours"})),opens:p.Optional(p.Ref(Bv,{description:"The time the opening hours start"})),closes:p.Optional(p.Ref(Bv,{description:"The time the opening hours end"})),dayOfWeek:p.Optional(p.Union([p.Ref(Vv),p.Array(p.Ref(Vv))],{description:"The days of the week the opening hours apply to"})),validFrom:p.Optional(p.String({format:"date",description:"The date the opening hours start, in ISO 8601 format"})),validThrough:p.Optional(p.String({format:"date",description:"The date the opening hours end, in ISO 8601 format"}))},{$id:"OpeningHoursSpecification"}),nf=p.Intersect([p.Object({id:p.Ref(oi),categories:p.Array(p.Ref(ii)),logo:p.Optional(p.String({format:"uri"})),phone:p.Optional(p.String()),social:p.Array(p.Ref(Yw)),images:p.Array(p.Ref(Jw)),links:p.Array(p.Ref(zv)),website:p.Optional(p.Ref(zv)),openingHours:p.Optional(p.Array(p.Ref(tf)))}),qi(["name"]),ec(),ur],{$id:"Location"}),jv=p.Intersect([p.Object({id:p.Ref(ef),parentId:p.Ref(oi)}),p.Partial(p.Omit(nf,["id","parentId","details"])),wn],{$id:"LocationInstance",description:"A location instance is a particular instance of an location that has some properties different from the parent."}),rf=[oi,ef,Yw,Jw,zv,Bv,Qw,Vv,tf,nf,jv];var hB=p.Object({locations:p.Array(p.Ref(nf)),locationCategories:p.Array(p.Ref($v)),locationInstances:p.Optional(p.Array(p.Ref(jv)))},{$id:"LocationsExtensionSchema"}),eM="locations.json",tM="location-categories.json",nM="location-instances.json",rM={name:"ext:locations",schema:hB,intoBundle:o(function*(e){e.locations!=null&&(yield{path:eM,contents:e.locations}),e.locationCategories!=null&&(yield{path:tM,contents:e.locationCategories}),e.locationInstances!=null&&(yield{path:nM,contents:e.locationInstances})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===eM)return{locations:n(t)};if(e===tM)return{locationCategories:n(t)};if(e===nM)return{locationInstances:n(t)}},"fromBundle"),references:[...qw,...rf],integrityCheck:Kw};f();f();var lr;(function(e){e.EnterpriseLocationWithUnknownLocationError="EnterpriseLocationWithUnknownLocationError",e.EnterpriseCategoryWithUnknownLocationCategoryError="EnterpriseCategoryWithUnknownLocationCategoryError",e.InstanceWithUnknownLocationInstanceError="InstanceWithUnknownLocationInstanceError",e.InstanceWithUnknownEnterpriseLocationError="InstanceWithUnknownEnterpriseLocationError",e.EnterpriseLocationWithUnknownSibling="EnterpriseLocationWithUnknownSibling",e.EnterpriseLocationInstanceWithUnknownSibling="EnterpriseLocationInstanceWithUnknownSibling",e.EnterpriseVenueWithUnknownTopLocationError="EnterpriseVenueWithUnknownTopLocationError",e.EnterpriseLocationWithInvalidPrimaryCategory="EnterpriseLocationWithInvalidPrimaryCategory"})(lr||(lr={}));var iM=o(e=>{var m,y,v,I,T,U,D,w,S,A,j,N,H,G,ce,ue,he,Ge,Oe,Ue;if(e.cms==null)return Y(!0);let t=e.cms,n=gt(e.cms.categories,V=>V.id,"cms.categories");if(n.isErr())return n;let i=new Set((y=(m=e.locationCategories)==null?void 0:m.map(V=>V.id))!=null?y:[]);for(let V of(v=t.categories)!=null?v:[])if(!i.has(V.categoryId))return J({kind:lr.EnterpriseCategoryWithUnknownLocationCategoryError,properties:{enterpriseCategoryId:V.id,locationCategoryId:V.categoryId}});let r=gt(e.cms.locations,V=>V.id,"cms.locations");if(r.isErr())return r;let s=new Map((T=(I=e.locations)==null?void 0:I.map(V=>[V.id,V]))!=null?T:[]);for(let V of(U=t.locations)!=null?U:[]){if(!s.has(V.locationId))return J({kind:lr.EnterpriseLocationWithUnknownLocationError,properties:{enterpriseLocationId:V.id,locationId:V.locationId}});for(let ne of(D=V.siblingGroups)!=null?D:[])for(let le of(w=ne.siblings)!=null?w:[])if(!s.has(le))return J({kind:lr.EnterpriseLocationWithUnknownSibling,properties:{enterpriseLocationId:V.id,siblingLocationId:le,label:ne.label}});if(V.primaryCategory!=null){let ne=s.get(V.locationId);if(ne!=null&&!ne.categories.includes(V.primaryCategory))return J({kind:lr.EnterpriseLocationWithInvalidPrimaryCategory,properties:{enterpriseLocationId:V.id,locationId:V.locationId,primaryCategory:V.primaryCategory}})}}if(((S=t.venue)==null?void 0:S.topLocations)!=null){for(let V of t.venue.topLocations)if(!s.has(V))return J({kind:lr.EnterpriseVenueWithUnknownTopLocationError,properties:{locationId:V}})}let a=new Set((j=(A=e.cms.locations)==null?void 0:A.map(V=>V.id))!=null?j:[]),u=gt(e.cms.locationInstances,V=>V.id,"cms.locationInstances");if(u.isErr())return u;let l=new Set((H=(N=e.locationInstances)==null?void 0:N.map(V=>V.id))!=null?H:[]);for(let V of(G=t.locationInstances)!=null?G:[]){if(!a.has(V.parentId))return J({kind:lr.InstanceWithUnknownEnterpriseLocationError,properties:{enterpriseLocationInstanceId:V.id,enterpriseLocationId:V.parentId}});if(!l.has(V.locationInstanceId))return J({kind:lr.InstanceWithUnknownLocationInstanceError,properties:{enterpriseLocationInstanceId:V.id,locationInstanceId:V.locationInstanceId}});for(let ne of(ce=V.siblingGroups)!=null?ce:[])for(let le of(ue=ne.siblings)!=null?ue:[])if(!s.has(le))return J({kind:lr.EnterpriseLocationInstanceWithUnknownSibling,properties:{enterpriseLocationInstanceId:V.id,siblingLocationId:le,label:ne.label}})}let c=cr(e),d=Tt(e),h=gt(e.cms.floorText,V=>V.properties.id,"cms.floorText");if(h.isErr())return h;for(let[V,ne]of Qt((he=t.floorText)!=null?he:{})){let le=c(V);if(le.isErr())return le;for(let oe of ne.features){if(!("geometryId"in oe.properties))continue;let Me=d(V,oe.properties.geometryId);if(Me.isErr())return Me}}for(let[V,ne]of Qt((Ge=t.textures)!=null?Ge:{})){let le=c(V);if(le.isErr())return le;for(let oe of ne){let Me=d(V,oe.geometryId);if(Me.isErr())return Me}}for(let[V,ne]of Qt((Oe=t.layers)!=null?Oe:{})){let le=c(V);if(le.isErr())return le;for(let oe of $e(ne!=null?ne:{})){let Me=d(V,oe);if(Me.isErr())return Me}}for(let[V,ne]of Qt((Ue=t.textAreas)!=null?Ue:{})){let le=c(V);if(le.isErr())return le;for(let oe of ne.features)if("geometryId"in oe.properties){let Me=d(V,oe.properties.geometryId);if(Me.isErr())return Me}}return Y(!0)},"validateCMS");f();f();var nc=mt("el","EnterpriseLocationId"),Gv=mt("ec","EnterpriseCategoryId"),Hv=mt("eli","EnterpriseLocationInstanceId"),Wv=mt("ev","EnterpriseVenueId"),Zv=mt("eft","EnterpriseFloorTextId"),oM=[nc,Gv,Hv,Wv,Zv];var sM=p.Object({id:p.Ref(Gv),categoryId:p.Ref(ii),color:p.Optional(p.String()),sortOrder:p.Number(),iconFromDefaultList:p.Optional(p.Union([p.String(),p.Null()])),picture:p.Optional(p.String({format:"uri",description:"The category's picture"}))},{$id:"EnterpriseCategory"}),Xv=p.Object({categories:p.Optional(p.Array(p.Ref(sM)))},{$id:"EnterpriseCategoriesSchema"}),aM=[sM,Xv];f();var of=Bt(["left","center","right"]),mB=of.schema,iye=of.values,oye=of.record,sye=of.is,qv=p.Object({id:p.Ref(Zv),text:p.String(),visible:p.Boolean({default:!0}),fontSize:p.Number({default:12,exclusiveMinimum:0}),fontFamily:p.String({default:"Droid Sans"}),color:p.String({default:"black"}),rotation:p.Number({minimum:0,maximum:360}),align:mB},{$id:"FloorTextCommonProperties"}),Kv=p.Intersect([p.Ref(qv),Kn],{$id:"AnchoredFloorTextProperties"}),Yv=p.Intersect([p.Ref(qv),p.Object({verticalOffset:p.Number()})],{$id:"FloatingFloorTextProperties"}),cM=p.Union([p.Ref(Kv),p.Ref(Yv)],{$id:"FloorTextProperties"}),uM=Nt(Xt,p.Ref(cM),{$id:"FloorTextFeature"}),gB=Nt(Xt,p.Ref(Kv),{$id:"AnchoredFloorTextFeature"}),yB=Nt(Xt,p.Ref(Yv),{$id:"FloatingFloorTextFeature"}),lM=an(p.Ref(uM),{$id:"EnterpriseFloorTextFeatureCollection"}),fM=p.Record(_e,p.Ref(lM),{$id:"EnterpriseFloorTextCollectionsByFloor",additionalProperties:!1}),Jv=p.Object({floorText:p.Optional(p.Ref(fM))},{$id:"EnterpriseFloorTextSchema"}),dM=[qv,Kv,Yv,cM,uM,gB,yB,lM,fM,Jv];f();var pM=yt(p.Record(qt,p.String({minLength:1}),{additionalProperties:!1,$id:"EnterpriseLayers"})),hM=yt(p.Record(_e,p.Ref(pM),{additionalProperties:!1,$id:"EnterpriseLayersByFloor"})),Qv=p.Object({layers:p.Optional(p.Ref(hM))},{$id:"EnterpriseLayersSchema"}),mM=[pM,hM,Qv];f();f();f();var{schema:gM,values:yye,record:xye,is:vye}=Bt(["reference-point","checkpoint","checkpoint-passport","parent"],{$id:"EnterpriseSiblingGroupType"}),sf=Bt(["closed-temporarily","new","pop-up","coming-soon","relocated"]),xB=sf.schema,_ye=sf.values,bye=sf.record,Sye=sf.is,e_=p.Object({type:xB,start:p.Optional(p.String({format:"date",description:"The start date of the state"})),end:p.Optional(p.String({format:"date",description:"The end date of the state"}))},{$id:"LocationState",description:"The state of a location. Start and end dates are optional."}),t_=p.Object({label:p.String(),siblings:p.Array(p.Ref(oi)),type:p.Optional(p.Ref(gM)),subtype:p.Optional(p.String())},{$id:"SiblingGroup"}),af=p.Object({name:p.String(),code:p.String()},{$id:"Language"}),yM=[e_,t_,af,gM];var cf=p.Object({id:p.Ref(nc),locationId:p.Ref(oi),cmsId:p.String(),type:p.String(),sortOrder:p.Number(),tags:p.Optional(p.Array(p.String())),picture:p.Optional(p.String({format:"uri",description:"The picture of the location"})),states:p.Optional(p.Array(p.Ref(e_),{description:"The location's state. No more than one state should be active at a time, and all but at most one should have dates set"})),siblingGroups:p.Optional(p.Array(p.Ref(t_))),gallery:p.Optional(p.Array(p.Object({caption:p.Optional(p.String()),image:p.String({format:"uri"}),embeddedUrl:p.Optional(p.String({format:"uri",description:"The URL to link from the image"}))},{description:"The location's image gallery"}),{description:"The location's image gallery"})),showFloatingLabelWhenImagePresent:p.Optional(p.Boolean({description:"Whether to show the flat label when an image is present"})),amenity:p.Optional(p.String({description:"The location's amenity type. Only set if the location is an amenity"})),showLogo:p.Optional(p.Boolean({description:"Whether to show the logo of the location"})),primaryCategory:p.Optional(p.Ref(ii)),headerImage:p.Optional(p.String({format:"uri",description:"The location's header image"}))},{$id:"EnterpriseLocation"}),n_=p.Object({locations:p.Optional(p.Array(p.Ref(cf)))},{$id:"EnterpriseLocationsSchema"}),xM=[cf,n_];var vM=p.Intersect([p.Object({id:p.Ref(Hv),parentId:p.Ref(nc),locationInstanceId:p.Ref(ef)}),p.Partial(p.Omit(cf,["id","parentId","locationId"]))],{$id:"EnterpriseLocationInstance",description:"A locationInstance is a particular instance of an Enterprise Location that has some properties different from the parent."}),r_=p.Object({locationInstances:p.Optional(p.Array(p.Ref(vM)))},{$id:"EnterpriseLocationInstancesSchema"}),_M=[vM,r_];f();var uf=Bt(["near","center"],{$id:"EnterpriseTextAreaAlignment"}),bM=uf.schema,Bye=uf.values,Vye=uf.record,jye=uf.is,i_=p.Object({maxWidth:p.Number({exclusiveMinimum:0,description:"The maximum width of the label, in meters."}),maxHeight:p.Number({exclusiveMinimum:0,description:"The maximum height of the label, in meters."}),align:p.Ref(bM),rotation:p.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"EnterpriseBaseTextAreaProperties"}),SM=p.Intersect([p.Ref(i_),Kn],{$id:"EnterpriseAnchoredTextAreaProperties"}),IM=p.Intersect([p.Ref(i_),p.Object({verticalOffset:p.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"EnterpriseFloatingTextAreaProperties"}),wM=p.Union([SM,IM],{$id:"EnterpriseTextAreaProperties"}),MM=Nt(p.Ref(Xt),wM,{$id:"EnterpriseTextAreaFeature"}),EM=an(p.Ref(MM),{$id:"EnterpriseTextAreaCollection"}),TM=p.Record(_e,p.Ref(EM),{$id:"EnterpriseTextAreasByFloor",additionalProperties:!1}),AM=p.Object({textAreas:p.Optional(p.Ref(TM))},{$id:"EnterpriseTextAreasSchema"}),PM=[bM,i_,SM,IM,wM,MM,EM,TM];f();var o_=p.Object({u:p.Number(),v:p.Number()},{$id:"EnterpriseTextureUV"}),lf=Bt(["top","side"],{$id:"EnterpriseTextureFace"}),RM=lf.schema,Xye=lf.values,qye=lf.record,Kye=lf.is,ff=Bt(["inside","outside","both"],{$id:"EnterpriseTextureSurface"}),CM=ff.schema,Yye=ff.values,Jye=ff.record,Qye=ff.is,OM=p.Tuple([qo,Ko,qo,Ko],{$id:"EnterpriseTextureBounds"}),UM=p.Intersect([p.Object({repeat:p.Ref(o_),offset:p.Ref(o_),rotation:p.Number({minimum:0,maximum:360}),path:p.String({format:"uri"}),face:p.Ref(RM),surface:p.Ref(CM),bounds:p.Ref(OM)},{$id:"EnterpriseTextureProperties"}),Kn],{$id:"EnterpriseTexture"}),FM=p.Array(p.Ref(UM),{$id:"EnterpriseTextures"}),NM=p.Record(_e,p.Ref(FM),{$id:"EnterpriseTexturesByFloor",additionalProperties:!1}),s_=p.Object({textures:p.Optional(p.Ref(NM))},{$id:"EnterpriseTexturesSchema"}),kM=[UM,FM,s_,o_,RM,CM,OM,NM];f();var{schema:DM,values:axe,record:cxe,is:uxe}=Bt(["agriculture","airport","casino","city-district","convention-center","entertainment","event-centre","first-responder-building","government-building","grocery-store","healthcare","higher-education","hotel","library","manufacturing","medical-centre","mixed-use","multifamily","museum","office-building","oil-and-energy","other","parking-facility","religious-institution","resort","retail-store","schools-k-12","shopping-mall","stadium-or-arena","storage-facility","theme-park","transit","transportation-hub","warehousing"],{$id:"EnterpriseVenueType"}),LM=p.Intersect([p.Object({id:p.Ref(Wv),slug:p.String(),defaultLanguage:p.Ref(af),languages:p.Array(p.Ref(af)),countrycode:p.Optional(p.String()),logo:p.Optional(p.String({format:"uri"})),mappedinWebUrl:p.Optional(p.String({format:"uri"})),topLocations:p.Optional(p.Array(p.Ref(oi))),operationHours:p.Optional(p.Array(p.Ref(tf))),coverImage:p.Optional(p.String({format:"uri"})),type:p.Optional(p.Ref(DM))}),qi(["name"]),ur],{$id:"EnterpriseVenue"}),a_=p.Object({venue:p.Optional(p.Ref(LM))},{$id:"EnterpriseVenueSchema"}),$M=[LM,a_,DM];var BM=p.Intersect([a_,n_,r_,Xv,s_,Jv,Qv,AM],{$id:"CMSProperties"}),zM=p.Object({cms:p.Optional(p.Ref(BM))},{$id:"CMSExtensionSchema"}),vB=/^cms\/(?:([^/]+)\/)?([^/]+)\.(?:json|geojson)$/,VM={name:"ext:cms",schema:zM,intoBundle:o(function*(e){var n,i,r,s,a,u;if(e.cms==null)return;let t=e.cms;for(let l of $e(t))switch(l){case"floorText":for(let c of $e((n=t.floorText)!=null?n:{}))yield{path:"cms/floorText/".concat(c,".geojson"),contents:((i=t.floorText)!=null?i:{})[c]};continue;case"textures":for(let c of $e((r=t.textures)!=null?r:{}))yield{path:"cms/textures/".concat(c,".json"),contents:((s=t.textures)!=null?s:{})[c]};continue;case"textAreas":for(let c of $e((a=t.textAreas)!=null?a:{}))yield{path:"cms/textAreas/".concat(c,".geojson"),contents:((u=t.textAreas)!=null?u:{})[c]};continue;default:yield{path:"cms/".concat(l,".json"),contents:t[l]};continue}},"intoBundle"),fromBundle:o((e,t,n)=>{let i=e.match(vB);if(!i)return;let[,r,s]=i,a=n(t);switch(r){case"floorText":case"textures":case"textAreas":return{cms:{[r]:{[s]:a}}};default:return{cms:{[s]:a}}}},"fromBundle"),references:[BM,zM,...$M,...xM,..._M,...aM,...kM,...mM,...dM,...PM,...oM,...yM,...rf],integrityCheck:iM};f();f();f();f();var fr;(function(e){e.NavigationFlagMissingDeclaration="NavigationFlagMissingDeclaration",e.NavigationFlagDuplicateBit="NavigationFlagDuplicateBit",e.NavigationFlagIncorrectFlagsLength="NavigationFlagIncorrectFlagsLength",e.NavigationFlagValueTooBig="NavigationFlagValueTooBig"})(fr||(fr={}));var jM=o(e=>{let{navigationFlags:t}=e;if(!t||Object.keys(t).length===0)return Y(!0);let n=Object.entries(t).map(([s,a])=>x({key:s},a)).sort((s,a)=>s.index!==a.index?s.index-a.index:s.bit-a.bit),i=0,r=-1;for(let s of n){if(s.bit===r)return J({kind:fr.NavigationFlagDuplicateBit,properties:{index:s.index,bit:s.bit,path:"navigationFlags.".concat(s.key)}});if(s.index!=i){if(r!=31)return J({kind:fr.NavigationFlagMissingDeclaration,properties:{index:i,bit:r+1,path:"navigationFlags"}});if(s.index!=i+1||s.bit!=0)return J({kind:fr.NavigationFlagMissingDeclaration,properties:{index:i+1,bit:0,path:"navigationFlags"}});i=s.index,r=0}else{if(s.bit!==r+1)return J({kind:fr.NavigationFlagMissingDeclaration,properties:{index:s.index,bit:r+1,path:"navigationFlags"}});r=s.bit}}return Y(!0)},"validateNavigationFlags");f();var GM=2**32-1,rc=o(e=>{var r;let t=Object.keys((r=e.navigationFlags)!=null?r:{}).length;if(t===0)return{index:-1,flag:0};let n=Math.floor(t/32),i=t%32;return{index:n,flag:2**i-1}},"determineMaxNavigationFlags"),bs=o((e,t,n)=>{if(t.index==-1&&e.length===0)return Y(!0);let i=t.flag>0||t.index===-1?t.index+1:t.index;if(e.length!==i)return J({kind:fr.NavigationFlagIncorrectFlagsLength,properties:{expected:i,actual:e.length,path:n}});for(let r=0;r<e.length;r++){let s=e[r];if(r<t.index){if(s>GM)return J({kind:fr.NavigationFlagValueTooBig,properties:{index:r,flagValue:s,expectedMaxFlagValue:GM,path:n}});continue}else if(s>t.flag)return J({kind:fr.NavigationFlagValueTooBig,properties:{index:r,flagValue:s,expectedMaxFlagValue:t.flag,path:n}})}return Y(!0)},"validateFlags");var _B=p.Object({index:p.Integer({description:"The index of the flag in a flags array.",minimum:0}),bit:p.Integer({description:"The bit position of the flag in a flag's bitfield.",minimum:0,maximum:31})},{$id:"NavigationFlagDeclarationCore"}),HM=p.Intersect([_B,wn],{$id:"NavigationFlagDeclaration",description:'A NavigationFlagDeclaration describes the relationship between a "key" that a developer might use to wayfind using that flag, and the index and bit position in an object\'s `flags` array.'});var WM=p.Record(p.String(),HM,{$id:"NavigationFlagDeclarations",description:"Any well known and custom flags present in the MVF"}),bB=p.Object({navigationFlags:p.Ref(WM)},{$id:"NavigationFlagsSchema"}),df=p.Array(p.Integer({minimum:0,maximum:Math.pow(2,32)-1}),{$id:"Flags"}),c_=p.Object({flags:p.Ref(df)},{$id:"WithFlags"}),ro=p.Intersect([_s,c_],{$id:"FlaggedGeometryAnchor"}),SB=p.Object({geometryAnchor:ro},{$id:"WithFlaggedGeometryAnchor"}),IB=p.Object({geometryAnchors:p.Array(ro)},{$id:"WithFlaggedGeometryAnchors"}),ZM={name:"ext:mvf-navigation-flags",schema:bB,intoBundle:o(function*(e){e.navigationFlags!=null&&(yield{path:"navigationFlags.json",contents:e.navigationFlags})},"intoBundle"),fromBundle:o((e,t,n)=>e!=="navigationFlags.json"?void 0:{navigationFlags:n(t)},"fromBundle"),references:[HM,WM,df,ro,SB,IB],integrityCheck:jM};f();var XM=o(e=>{if(e.connections==null)return Y(!0);let t=gt(e.connections,r=>r.id,"connections");if(t.isErr())return t;let n=Tt(e),i=rc(e);for(let[r,s]of e.connections.entries()){for(let[a,u]of s.entrances.entries()){let l=n(u.floorId,u.geometryId);if(l.isErr())return l;let c=bs(u.flags,i,"connections[".concat(r,"].entrances[").concat(a,"]"));if(c.isErr())return c}for(let[a,u]of s.exits.entries()){let l=n(u.floorId,u.geometryId);if(l.isErr())return l;let c=bs(u.flags,i,"connections[".concat(r,"].exits[").concat(a,"]"));if(c.isErr())return c}}return Y(!0)},"validateConnections");var KM=mt("c","ConnectionId"),{schema:wB,values:ave,record:cve,is:uve}=Bt(["elevator","escalator","travelator","stairs","door","ramp","ladder"],{$id:"ConnectionType"}),YM=wB;var JM=p.Intersect([p.Object({id:p.Ref(KM,{description:"The unique identifier for the connection."}),entrances:p.Array(p.Ref(ro)),exits:p.Array(p.Ref(ro)),entryCost:p.Number({description:"The cost to enter the connection.",minimum:0}),floorCostMultiplier:p.Number({description:"The cost multiplier for each floor transitioned.",minimum:1}),type:p.Ref(YM,{description:"The type of connection."})}),wn,ur],{$id:"ConnectionsProperties"}),QM=p.Array(p.Ref(JM),{$id:"ConnectionsCollection"}),MB=p.Object({connections:p.Ref(QM)},{$id:"ConnectionsExtensionSchema"}),qM="connections.json",eE={name:"ext:connections",schema:MB,intoBundle:o(function*(e){e.connections!=null&&(yield{path:qM,contents:e.connections})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===qM)return{connections:n(t)}},"fromBundle"),references:[JM,QM,YM,KM,ro,df],integrityCheck:XM};f();f();var tE=o(e=>{if(e.defaultStyle==null)return Y(!0);let t=Tt(e);for(let n of Object.values(e.defaultStyle))if(n!=null)for(let i of n.geometryAnchors){let r=t(i.floorId,i.geometryId);if(r.isErr())return r}return Y(!0)},"validateDefaultStyle");var nE=p.Intersect([ec(),ur,p.Object({altitude:p.Number({description:"How far off the bottom of the floor the objects with this style should be drawn, in meters."}),color:p.String({pattern:"^#[0-9a-fA-F]{6}$",description:"Color should be represented with a hash (#), followed by 6 hexadecimal digits. ex: #RRGGBB"}),height:p.Number({minimum:0,description:"The height of the objects belonging to this layer, in meters."}),opacity:p.Number({minimum:0,maximum:1,description:"The opacity of the objects belonging to this layer, from 0 to 1."}),buffer:p.Number({description:"The buffer amount to apply to the geometry, in meters. This can be used to inflate line string geometry for walls, but might also be applicable as a way to grow or shrink polygon geometry for aesthetic purposes. Can be negative."}),hidden:p.Optional(p.Boolean({description:"Whether or not the objects with this style should be hidden."}))})],{$id:"DefaultStyle"}),rE=p.Record(p.String(),p.Ref(nE),{$id:"DefaultStyleCollection",additionalProperties:!1}),EB=p.Object({defaultStyle:p.Ref(rE)},{$id:"DefaultStyleSchema"}),iE={name:"ext:mvf-default-style",schema:EB,intoBundle:o(function*(e){e.defaultStyle!=null&&(yield{path:"default-style.json",contents:e.defaultStyle})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="default-style.json")return{defaultStyle:n(t)}},"fromBundle"),references:[nE,rE],integrityCheck:tE};f();f();f();f();var pf;(function(e){e.InvalidDefaultFloorError="InvalidDefaultFloorError"})(pf||(pf={}));var oE=o(e=>{if(e.floorStacks==null)return Y(!0);let t=gt(e.floorStacks,i=>i.id,"floorStacks");if(t.isErr())return t;let n=cr(e);for(let i of e.floorStacks){for(let r of i.floors){let s=n(r);if(s.isErr())return s}if(i.defaultFloor!=null&&!i.floors.includes(i.defaultFloor))return J({kind:pf.InvalidDefaultFloorError,properties:{floorStackId:i.id,floorId:i.defaultFloor}})}return Y(!0)},"validateFloorStacks");var ic=mt("fs","FloorStackId"),aE=p.Intersect([p.Object({id:p.Ref(ic,{description:"The unique identifier for the floor stack."}),floors:p.Array(p.Ref(_e),{uniqueItems:!0,minItems:1,description:"The floors that are part of this floor stack."}),defaultFloor:p.Optional(p.Ref(_e,{description:"The default floor for the floor stack."}))}),wn],{$id:"FloorStacksProperties"}),cE=p.Array(p.Ref(aE),{$id:"FloorStackCollection"}),TB=p.Object({floorStacks:p.Ref(cE)},{$id:"FloorStackExtensionSchema"}),sE="floor-stacks.json",uE={name:"ext:floor-stacks",schema:TB,intoBundle:o(function*(e){e.floorStacks!=null&&(yield{path:sE,contents:e.floorStacks})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===sE)return{floorStacks:n(t)}},"fromBundle"),references:[ic,aE,cE],integrityCheck:oE};f();f();var oc;(function(e){e.MissingFloorStackError="MissingFloorStackError",e.UnknownFloorStackError="UnknownFloorStackError"})(oc||(oc={}));var lE=o(e=>{if(e.facade==null)return Y(!0);if(e.floorStacks==null)return J({kind:oc.MissingFloorStackError,properties:null});let t=new Set(e.floorStacks.map(r=>r.id)),n=Tt(e),i=cr(e);for(let[r,s]of Qt(e.facade)){if(s==null)continue;let a=i(r);if(a.isErr())return a;for(let u of s){let{floorStackId:l,geometryIds:c}=u;if(!t.has(l))return J({kind:oc.UnknownFloorStackError,properties:{floorStackId:l}});for(let d of c){let h=n(r,d);if(h.isErr())return h}}}return Y(!0)},"validateFacade");var fE=p.Intersect([p.Object({floorStackId:p.Ref(ic)}),ms],{$id:"Facade"}),AB=p.Object({facade:yt(p.Record(_e,p.Array(p.Ref(fE)),{additionalProperties:!1}))},{$id:"FacadeExtensionSchema"}),PB=/^facade\/(.*)\.json$/,dE={name:"ext:facade",schema:AB,intoBundle:o(function*(e){if(e.facade!=null)for(let t of $e(e.facade))yield{path:"facade/".concat(t,".json"),contents:e.facade[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(PB))==null?void 0:r[1];if(i)return{facade:{[i]:n(t)}}},"fromBundle"),references:[ic,fE],integrityCheck:lE};f();f();var pE=o(e=>{if(e.floorImages==null)return Y(!0);let t=Tt(e);for(let[n,i]of Qt(e.floorImages))if(i!=null)for(let r of i.features){if(!("geometryId"in r.properties))continue;let s=r.properties.geometryId,a=t(n,s);if(a.isErr())return a}return Y(!0)},"validateFloorImages");var u_=p.Object({path:p.String({format:"uri",description:"The path to the image. This will be a remote URL."}),width:p.Number({minimum:0,description:"The width of the image when represented on the map, in meters."}),height:p.Number({minimum:0,description:"The height of the image when represented on the map, in meters."}),rotation:p.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"BaseFloorImageProperties"}),hE=p.Intersect([p.Ref(u_),Kn],{$id:"AnchoredFloorImageProperties"}),mE=p.Intersect([p.Ref(u_),p.Object({verticalOffset:p.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"FloatingFloorImageProperties"}),gE=p.Union([hE,mE],{$id:"FloorImageProperties"}),yE=Nt(p.Ref(Xt),gE,{$id:"FloorImageFeature"}),xE=an(p.Ref(yE),{$id:"FloorImageCollection"}),RB=p.Object({floorImages:yt(p.Record(_e,p.Ref(xE),{additionalProperties:!1}))},{$id:"FloorImagesExtensionSchema"}),CB=/^floorImages\/(.*)\.geojson$/,vE={name:"ext:floor-images",schema:RB,intoBundle:o(function*(e){if(e.floorImages!=null)for(let t of $e(e.floorImages))yield{path:"floorImages/".concat(t,".geojson"),contents:e.floorImages[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(CB))==null?void 0:r[1];if(i)return{floorImages:{[i]:n(t)}}},"fromBundle"),references:[u_,hE,mE,gE,yE,xE],integrityCheck:pE};f();f();var _E=o(e=>{if(e.kinds==null)return Y(!0);let t=Tt(e);for(let[n,i]of Qt(e.kinds))if(i!=null)for(let r of $e(i)){let s=t(n,r);if(s.isErr())return s}return Y(!0)},"validateKinds");var{values:C_e,schema:OB,record:O_e,is:U_e}=Bt(["room","hallway","wall","object","poi","area","window"],{$id:"Kind"}),bE=OB;var SE=yt(p.Record(qt,p.Ref(bE),{additionalProperties:!1,$id:"GeometryKinds"})),UB=p.Object({kinds:yt(p.Record(_e,p.Ref(SE),{additionalProperties:!1}))},{$id:"KindsExtensionSchema"}),FB=/^kinds\/(.*)\.json$/,IE={name:"ext:kinds",schema:UB,intoBundle:o(function*(e){if(e.kinds!=null)for(let t of $e(e.kinds))yield{path:"kinds/".concat(t,".json"),contents:e.kinds[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(FB))==null?void 0:r[1];if(i)return{kinds:{[i]:n(t)}}},"fromBundle"),references:[bE,SE],integrityCheck:_E};f();f();f();var sc;(function(e){e.UnknownNeighbor="UnknownNeighbor",e.SelfReference="SelfReference"})(sc||(sc={}));var wE=o(e=>{if(e.nodes==null)return Y(!0);let t=gt(e.nodes,r=>r.properties.id,"nodes");if(t.isErr())return t;let n=Tt(e),i=rc(e);for(let[r,s]of Qt(e.nodes)){if(s==null)continue;let a=new Set(s.features.map(u=>u.properties.id));for(let[u,l]of s.features.entries()){for(let c of l.properties.geometryIds){let d=n(r,c);if(d.isErr())return d}for(let[c,d]of l.properties.neighbors.entries()){if(!a.has(d.id))return J({kind:sc.UnknownNeighbor,properties:{floorId:r,nodeId:l.properties.id,neighborId:d.id}});if(d.id===l.properties.id)return J({kind:sc.SelfReference,properties:{floorId:r,nodeId:l.properties.id}});let h=bs(d.flags,i,'nodes["'.concat(r,'"].features[').concat(u,"].properties.neighbors[").concat(c,"]"));if(h.isErr())return h}}}return Y(!0)},"validateNodes");var l_=mt("n","NodeId"),ME=p.Intersect([p.Object({id:p.Ref(l_,{description:"The unique identifier for the node."}),extraCost:p.Number({minimum:0,description:"The extra cost to traverse to the node, above the straight-line distance."})}),c_],{$id:"NodeNeighbor"}),EE=p.Intersect([p.Object({id:p.Ref(l_,{description:"The unique identifier for the node."}),neighbors:p.Array(p.Ref(ME),{description:"The neighbors of the node."})}),ms],{$id:"NodeProperties"}),TE=Nt(p.Ref(Xt),EE,{$id:"NodeFeature"}),AE=an(p.Ref(TE),{$id:"NodeCollection"}),NB=p.Object({nodes:yt(p.Record(_e,p.Ref(AE),{additionalProperties:!1}))},{$id:"NodesExtensionSchema"}),kB=/^nodes\/(.*)\.(geo)?json$/,PE={name:"ext:nodes",schema:NB,intoBundle:o(function*(e){if(e.nodes!=null)for(let t of $e(e.nodes))yield{path:"nodes/".concat(t,".geojson"),contents:e.nodes[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(kB))==null?void 0:r[1];if(i)return{nodes:{[i]:n(t)}}},"fromBundle"),references:[l_,ME,EE,TE,AE],integrityCheck:wE};f();f();f();var hf;(function(e){e.FloorInFloorStackError="FloorInFloorStackError"})(hf||(hf={}));var RE=o(e=>{if(e.outdoors==null)return Y(!0);let t=cr(e);for(let n of e.outdoors.floors){let i=t(n);if(i.isErr())return i;if(e.floorStacks!=null){for(let r of e.floorStacks)if(r.floors.includes(n))return J({kind:hf.FloorInFloorStackError,properties:{floorId:n,floorStackId:r.id}})}}return Y(!0)},"validateOutdoors");var OE=p.Object({floors:p.Array(p.Ref(_e),{uniqueItems:!0,description:"A list of floor IDs that should be considered to contain outdoor features."})},{$id:"Outdoors"}),DB=p.Object({outdoors:p.Ref(OE)},{$id:"OutdoorsExtensionSchema"}),CE="outdoors.json",UE={name:"ext:outdoors",schema:DB,intoBundle:o(function*(e){e.outdoors!=null&&(yield{path:CE,contents:e.outdoors})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===CE)return{outdoors:n(t)}},"fromBundle"),references:[OE],integrityCheck:RE};f();f();f();var mf;(function(e){e.TilesetDuplicateKeyError="TilesetDuplicateKeyError"})(mf||(mf={}));var FE=o(e=>{if(e.tileset==null)return Y(!0);let t=new Set;if(t.add(e.tileset.default.key),e.tileset.others)for(let n of e.tileset.others){if(t.has(n.key))return J({kind:mf.TilesetDuplicateKeyError,properties:{key:n.key}});t.add(n.key)}return Y(!0)},"validateTilesets");var f_=p.Object({key:p.String({minLength:1,description:"Unique identifier for the tileset style."}),name:p.String({minLength:1,description:"Display name of the tileset style."}),url:p.String({format:"uri",description:"URL of the tileset style."})},{$id:"TilesetStyle",description:"A tileset style definition."}),NE=p.Object({default:p.Ref(f_,{description:"The default tileset style, which should be used."}),others:p.Optional(p.Array(p.Ref(f_,{description:"Additional tileset styles that can be used."})))},{$id:"TilesetCollection"}),LB=p.Object({tileset:p.Ref(NE)},{$id:"TilesetExtensionSchema"}),kE={name:"ext:mvf-tileset",schema:LB,intoBundle:o(function*(e){e.tileset!=null&&(yield{path:"tileset.json",contents:e.tileset})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="tileset.json")return{tileset:n(t)}},"fromBundle"),references:[f_,NE],integrityCheck:FE};f();var DE=p.Object({},{$id:"WalkableProperties"}),LE=p.Object({},{$id:"NonWalkableProperties"}),$E=yt(p.Record(qt,p.Ref(DE),{$id:"WalkableGeometries",additionalProperties:!1})),zE=yt(p.Record(qt,p.Ref(LE),{$id:"NonWalkableGeometries",additionalProperties:!1})),$B=p.Object({walkable:yt(p.Record(_e,p.Ref($E),{additionalProperties:!1})),nonwalkable:yt(p.Record(_e,p.Ref(zE),{additionalProperties:!1}))},{$id:"TraversabilitySchema"}),zB=/^walkable\/(.*)\.json$/,BB=/^nonwalkable\/(.*)\.json$/,BE={name:"ext:mvf-traversability",schema:$B,intoBundle:o(function*(e){if(e.walkable!=null)for(let t of $e(e.walkable))yield{path:"walkable/".concat(t,".json"),contents:e.walkable[t]};if(e.nonwalkable!=null)for(let t of $e(e.nonwalkable))yield{path:"nonwalkable/".concat(t,".json"),contents:e.nonwalkable[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var s,a;let i=(s=e.match(zB))==null?void 0:s[1];if(i!=null)return{walkable:{[i]:n(t)}};let r=(a=e.match(BB))==null?void 0:a[1];if(r!=null)return{nonwalkable:{[r]:n(t)}}},"fromBundle"),references:[DE,LE,$E,zE]};f();f();f();f();f();f();f();f();f();f();f();var WB=dT(GE(),1);f();f();f();f();var HE=Gw().extendOptional(ZM).extendOptional(PE).extendOptional(eE).extendOptional(IE).extendOptional(BE).extendOptional(iE).extendOptional(uE).extendOptional(UE).extendOptional(kE).extendOptional(vE).extendOptional(dE).extendOptional(Xw).extendOptional(rM).extendOptional(VM).build({cspSafe:!0}).expect("Invalid parser, this should never happen. Likely a bug in the MVFv2 library, or one of the extensions.");f();f();var qB=Object.freeze({baseUri:"https://app.mappedin.com/",baseAuthUri:"https://app.mappedin.com/",analyticsBaseUri:"https://api-gateway.mappedin.com/track-analytics/a/",tileServerUri:"https://tiles-cdn.mappedin.com/styles/mappedin/style.json"}),iIe=Object.freeze(L(x({},qB),{baseUri:"https://api-gateway.mappedin.com/",baseAuthUri:"https://auth.mappedin.com/"})),oIe=Object.freeze({baseUri:"https://api-gateway.eu.mappedin.com/",baseAuthUri:"https://auth.eu.mappedin.com/",analyticsBaseUri:"https://api-gateway.eu.mappedin.com/track-analytics/a/",tileServerUri:"https://tiles-cdn.eu.mappedin.com/styles/mappedin/style.json"}),sIe=Object.freeze({baseUri:"https://api-gateway-staging.mappedin.net/",baseAuthUri:"https://auth-staging.mappedin.net/",analyticsBaseUri:"https://api-gateway-staging.mappedin.net/track-analytics/a/",tileServerUri:"https://tiles-cdn.mappedin.com/styles/mappedin/style.json"}),aIe=Object.freeze({baseUri:"https://app-staging.mappedin.net/",baseAuthUri:"https://app-staging.mappedin.net/",analyticsBaseUri:"https://api-gateway-staging.mappedin.net/track-analytics/a/",tileServerUri:"https://tiles-cdn.mappedin.com/styles/mappedin/style.json"});f();f();var YB=10,_Ie=YB*60*1e3;f();var JB=10,PIe=JB*60*1e3;var XE=globalThis.fetch,qE,LIe=(qE=g==null?void 0:g.env)==null?void 0:qE.npm_package_version;function yf(){if(XE==null)throw new Error("fetch is not available in your environment. Pass your own function into `setFetchFn` (node-fetch, etc)");return XE}o(yf,"isomorphicFetch");var KE={id:Fe.string(),name:Fe.string(),type:Fe.string(),startDate:Fe.number(),endDate:Fe.number(),externalId:Fe.string().optional(),description:Fe.string().optional(),location:Fe.string().optional(),image:Fe.object({original:Fe.string(),xxsmall:Fe.string().optional(),xsmall:Fe.string().optional(),small:Fe.string().optional(),medium:Fe.string().optional(),large:Fe.string().optional(),xlarge:Fe.string().optional(),xxlarge:Fe.string().optional()}).optional(),video:Fe.object({width:Fe.number(),height:Fe.number(),thumbnail:Fe.string(),content:Fe.string(),original:Fe.string()}).optional(),_locale:Fe.record(Fe.string(),Fe.record(Fe.string(),Fe.unknown())).optional()},YE=Fe.object(KE),JE=Object.keys(KE),QE=o(async(e,t,n,i={})=>{let r=new URLSearchParams(i),s=new URL("/public/1/event/".concat(e),t);return s.search=r.toString(),await(await yf()(s.toString(),{headers:{Authorization:"Bearer ".concat(n)}})).json()},"fetchEvents");var si,Cn,Cr,Ss,Is,ws,eT,tT,g_=class g_{constructor(t,n={}){It(this,ws);It(this,si);It(this,Cn,{eventsById:new Map,eventsByLocationId:new Map});It(this,Cr,null);It(this,Ss,!1);It(this,Is);var i;Ot(this,si,t),Ot(this,Is,L(x({includeExpired:!1},n),{fields:JE.concat((i=n.fields)!=null?i:[])}))}async load(){return W(this,Cr)!=null?W(this,Cr):(Ot(this,Cr,(async()=>{let t=await ci(this,ws,eT).call(this);W(this,Cr)!=null&&(await ci(this,ws,tT).call(this,t),Ot(this,Ss,!0),Ot(this,Cr,null))})()),W(this,Cr))}get ready(){return W(this,Ss)}get events(){return Array.from(W(this,Cn).eventsById.values())}getById(t){return W(this,Cn).eventsById.get(t)}getByLocationId(t){var n;return(n=W(this,Cn).eventsByLocationId.get(t))!=null?n:[]}destroy(){W(this,Cn).eventsById.clear(),W(this,Cn).eventsByLocationId.clear(),Ot(this,Cr,null),Ot(this,Ss,!1)}};si=new WeakMap,Cn=new WeakMap,Cr=new WeakMap,Ss=new WeakMap,Is=new WeakMap,ws=new WeakSet,eT=o(async function(){if(!W(this,si).internal.enterpriseMode)return io.warn("Events are currently only supported for CMS maps!"),[];let t=W(this,si).mapId;if(t==null)throw new Error("Failed to fetch events! Map ID was not specified in getMapData.");let n=W(this,si).getAccessToken();if(n==null)throw new Error("Failed to fetch events! Could not get access token from MapData.");let i={fields:W(this,Is).fields.join(","),lang:"all"};W(this,Is).includeExpired||(i.activeAtOrAfter="now");let r=await QE(t,W(this,si).getEnv().baseUri,n,i);if(!Array.isArray(r))throw new Error("Failed to fetch events! Invalid response format.");return r.filter(s=>{let a=YE.safeParse(s);return a.success||io.warn("Failed to parse event!",s,a.error),a.success})},"#fetchEvents"),tT=o(async function(t){var n,i;W(this,Cn).eventsById.clear(),W(this,Cn).eventsByLocationId.clear();for(let r of t){let s=new Ic(r,W(this,si));W(this,Cn).eventsById.set(s.id,s);let a=(n=s.location)==null?void 0:n.id;a!=null&&W(this,Cn).eventsByLocationId.set(a,[...(i=W(this,Cn).eventsByLocationId.get(a))!=null?i:[],s])}},"#createEvents"),o(g_,"EventsManager");var m_=g_;export{m_ as EventsManager};
1
+ var iT=Object.create;var Ms=Object.defineProperty,oT=Object.defineProperties,sT=Object.getOwnPropertyDescriptor,aT=Object.getOwnPropertyDescriptors,cT=Object.getOwnPropertyNames,uc=Object.getOwnPropertySymbols,uT=Object.getPrototypeOf,vf=Object.prototype.hasOwnProperty,y_=Object.prototype.propertyIsEnumerable;var cc=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),_f=e=>{throw TypeError(e)};var xf=(e,t,n)=>t in e?Ms(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,x=(e,t)=>{for(var n in t||(t={}))vf.call(t,n)&&xf(e,n,t[n]);if(uc)for(var n of uc(t))y_.call(t,n)&&xf(e,n,t[n]);return e},L=(e,t)=>oT(e,aT(t)),o=(e,t)=>Ms(e,"name",{value:t,configurable:!0});var lc=e=>typeof e=="symbol"?e:e+"",Es=(e,t)=>{var n={};for(var i in e)vf.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&uc)for(var i of uc(e))t.indexOf(i)<0&&y_.call(e,i)&&(n[i]=e[i]);return n};var lT=(e,t)=>()=>(e&&(t=e(e=0)),t);var x_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),un=(e,t)=>{for(var n in t)Ms(e,n,{get:t[n],enumerable:!0})},fT=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cT(t))!vf.call(e,r)&&r!==n&&Ms(e,r,{get:()=>t[r],enumerable:!(i=sT(t,r))||i.enumerable});return e};var dT=(e,t,n)=>(n=e!=null?iT(uT(e)):{},fT(t||!e||!e.__esModule?Ms(n,"default",{value:e,enumerable:!0}):n,e));var Xe=(e,t,n)=>xf(e,typeof t!="symbol"?t+"":t,n),bf=(e,t,n)=>t.has(e)||_f("Cannot "+n);var W=(e,t,n)=>(bf(e,t,"read from private field"),n?n.call(e):t.get(e)),It=(e,t,n)=>t.has(e)?_f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ot=(e,t,n,i)=>(bf(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),ci=(e,t,n)=>(bf(e,t,"access private method"),n);var v_=function(e,t){this[0]=e,this[1]=t},__=(e,t,n)=>{var i=(a,u,l,c)=>{try{var d=n[a](u),h=(u=d.value)instanceof v_,m=d.done;Promise.resolve(h?u[0]:u).then(y=>h?i(a==="return"?a:"next",u[1]?{done:y.done,value:y.value}:y,l,c):l({value:y,done:m})).catch(y=>i("throw",y,l,c))}catch(y){c(y)}},r=a=>s[a]=u=>new Promise((l,c)=>i(a,u,l,c)),s={};return n=n.apply(e,t),s[cc("asyncIterator")]=()=>s,r("next"),r("throw"),r("return"),s},k=e=>{var t=e[cc("asyncIterator")],n=!1,i,r={};return t==null?(t=e[cc("iterator")](),i=s=>r[s]=a=>t[s](a)):(t=t.call(e),i=s=>r[s]=a=>{if(n){if(n=!1,s==="throw")throw a;return a}return n=!0,{done:!1,value:new v_(new Promise(u=>{var l=t[s](a);l instanceof Object||_f("Object expected"),u(l)}),1)}}),r[cc("iterator")]=()=>r,i("next"),"throw"in t?i("throw"):r.throw=s=>{throw s},"return"in t&&i("return"),r};var g,f=lT(()=>{g={env:{NODE_ENV:"production",npm_package_version:"6.9.1-beta.0"}}});var VE=x_((d_,p_)=>{f();(function(e,t){typeof d_=="object"&&typeof p_<"u"?p_.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self,e.TinyQueue=t())})(d_,function(){"use strict";var e=o(function(i,r){if(i===void 0&&(i=[]),r===void 0&&(r=t),this.data=i,this.length=this.data.length,this.compare=r,this.length>0)for(var s=(this.length>>1)-1;s>=0;s--)this._down(s)},"TinyQueue");e.prototype.push=o(function(i){this.data.push(i),this.length++,this._up(this.length-1)},"push"),e.prototype.pop=o(function(){if(this.length!==0){var i=this.data[0],r=this.data.pop();return this.length--,this.length>0&&(this.data[0]=r,this._down(0)),i}},"pop"),e.prototype.peek=o(function(){return this.data[0]},"peek"),e.prototype._up=o(function(i){for(var r=this,s=r.data,a=r.compare,u=s[i];i>0;){var l=i-1>>1,c=s[l];if(a(u,c)>=0)break;s[i]=c,i=l}s[i]=u},"_up"),e.prototype._down=o(function(i){for(var r=this,s=r.data,a=r.compare,u=this.length>>1,l=s[i];i<u;){var c=(i<<1)+1,d=s[c],h=c+1;if(h<this.length&&a(s[h],d)<0&&(c=h,d=s[h]),a(d,l)>=0)break;s[i]=d,i=c}s[i]=l},"_down");function t(n,i){return n<i?-1:n>i?1:0}return o(t,"defaultCompare"),e})});var GE=x_((b0e,h_)=>{"use strict";f();var gf=VE();gf.default&&(gf=gf.default);h_.exports=jE;h_.exports.default=jE;function jE(e,t,n){t=t||1;for(var i,r,s,a,u=0;u<e[0].length;u++){var l=e[0][u];(!u||l[0]<i)&&(i=l[0]),(!u||l[1]<r)&&(r=l[1]),(!u||l[0]>s)&&(s=l[0]),(!u||l[1]>a)&&(a=l[1])}var c=s-i,d=a-r,h=Math.min(c,d),m=h/2;if(h===0){var y=[i,r];return y.distance=0,y}for(var v=new gf(void 0,VB),I=i;I<s;I+=h)for(var T=r;T<a;T+=h)v.push(new Ci(I+m,T+m,m,e));var U=GB(e),D=new Ci(i+c/2,r+d/2,0,e);D.d>U.d&&(U=D);for(var w=v.length;v.length;){var S=v.pop();S.d>U.d&&(U=S,n&&console.log("found best %d after %d probes",Math.round(1e4*S.d)/1e4,w)),!(S.max-U.d<=t)&&(m=S.h/2,v.push(new Ci(S.x-m,S.y-m,m,e)),v.push(new Ci(S.x+m,S.y-m,m,e)),v.push(new Ci(S.x-m,S.y+m,m,e)),v.push(new Ci(S.x+m,S.y+m,m,e)),w+=4)}n&&(console.log("num probes: "+w),console.log("best distance: "+U.d));var A=[U.x,U.y];return A.distance=U.d,A}o(jE,"polylabel");function VB(e,t){return t.max-e.max}o(VB,"compareMax");function Ci(e,t,n,i){this.x=e,this.y=t,this.h=n,this.d=jB(e,t,i),this.max=this.d+this.h*Math.SQRT2}o(Ci,"Cell");function jB(e,t,n){for(var i=!1,r=1/0,s=0;s<n.length;s++)for(var a=n[s],u=0,l=a.length,c=l-1;u<l;c=u++){var d=a[u],h=a[c];d[1]>t!=h[1]>t&&e<(h[0]-d[0])*(t-d[1])/(h[1]-d[1])+d[0]&&(i=!i),r=Math.min(r,HB(e,t,d,h))}return r===0?0:(i?1:-1)*Math.sqrt(r)}o(jB,"pointToPolygonDist");function GB(e){for(var t=0,n=0,i=0,r=e[0],s=0,a=r.length,u=a-1;s<a;u=s++){var l=r[s],c=r[u],d=l[0]*c[1]-c[0]*l[1];n+=(l[0]+c[0])*d,i+=(l[1]+c[1])*d,t+=d*3}return t===0?new Ci(r[0][0],r[0][1],0,e):new Ci(n/t,i/t,0,e)}o(GB,"getCentroidCell");function HB(e,t,n,i){var r=n[0],s=n[1],a=i[0]-r,u=i[1]-s;if(a!==0||u!==0){var l=((e-r)*a+(t-s)*u)/(a*a+u*u);l>1?(r=i[0],s=i[1]):l>0&&(r+=a*l,s+=u*l)}return a=e-r,u=t-s,a*a+u*u}o(HB,"getSegDistSq")});f();f();f();f();var b_="[MappedinJS]";function hT(e="",{prefix:t=b_}={}){let n="".concat(t).concat(e?"-".concat(e):""),i=o((r,s)=>{if(typeof window<"u"&&window.rnDebug){let a=s.map(u=>u instanceof Error&&u.stack?"".concat(u.message,"\n").concat(u.stack):u);window.rnDebug("".concat(e," ").concat(r,": ").concat(a.join(" ")))}},"rnDebug");return{logState:g.env.NODE_ENV==="test"?3:0,log(...r){this.logState<=0&&(console.log(n,...r),i("log",r))},warn(...r){this.logState<=1&&(console.warn(n,...r),i("warn",r))},error(...r){this.logState<=2&&(console.error(n,...r),i("error",r))},assert(...r){console.assert(...r)},time(r){console.time(r)},timeEnd(r){console.timeEnd(r)},setLevel(r){0<=r&&r<=3&&(this.logState=r)}}}o(hT,"createLogger");var mT=hT();var io=mT;f();f();f();var If=class If extends Error{};o(If,"InvalidTokenError");var Sf=If;Sf.prototype.name="InvalidTokenError";f();f();f();var qf="173";var Kf=0,Yf=1,Jf=2,Qf=3,ed=4,td=5,nd=6,rd=7;var k_=300;var Cf=1e3,As=1001,Of=1002;var D_=1006;var L_=1008;var $_=1009;var z_=1023;var gc=2300,Uf=2301,wf=2302,S_=2400,I_=2401,w_=2402;var id="",Fn="srgb",Ff="srgb-linear",Nf="linear",mc="srgb";var Ps=2e3,M_=2001;var cd=class cd{addEventListener(t,n){this._listeners===void 0&&(this._listeners={});let i=this._listeners;i[t]===void 0&&(i[t]=[]),i[t].indexOf(n)===-1&&i[t].push(n)}hasEventListener(t,n){let i=this._listeners;return i===void 0?!1:i[t]!==void 0&&i[t].indexOf(n)!==-1}removeEventListener(t,n){let i=this._listeners;if(i===void 0)return;let r=i[t];if(r!==void 0){let s=r.indexOf(n);s!==-1&&r.splice(s,1)}}dispatchEvent(t){let n=this._listeners;if(n===void 0)return;let i=n[t.type];if(i!==void 0){t.target=this;let r=i.slice(0);for(let s=0,a=r.length;s<a;s++)r[s].call(this,t);t.target=null}}};o(cd,"EventDispatcher");var Cs=cd,Gt=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"];var p4=Math.PI/180,gT=180/Math.PI;function od(){let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,n=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(Gt[e&255]+Gt[e>>8&255]+Gt[e>>16&255]+Gt[e>>24&255]+"-"+Gt[t&255]+Gt[t>>8&255]+"-"+Gt[t>>16&15|64]+Gt[t>>24&255]+"-"+Gt[n&63|128]+Gt[n>>8&255]+"-"+Gt[n>>16&255]+Gt[n>>24&255]+Gt[i&255]+Gt[i>>8&255]+Gt[i>>16&255]+Gt[i>>24&255]).toLowerCase()}o(od,"generateUUID");function Ye(e,t,n){return Math.max(t,Math.min(n,e))}o(Ye,"clamp");function yT(e,t){return(e%t+t)%t}o(yT,"euclideanModulo");function Mf(e,t,n){return(1-n)*e+n*t}o(Mf,"lerp");var vc=class vc{constructor(t=0,n=0){vc.prototype.isVector2=!0,this.x=t,this.y=n}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,n){return this.x=t,this.y=n,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){let n=this.x,i=this.y,r=t.elements;return this.x=r[0]*n+r[3]*i+r[6],this.y=r[1]*n+r[4]*i+r[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,n){return this.x=Ye(this.x,t.x,n.x),this.y=Ye(this.y,t.y,n.y),this}clampScalar(t,n){return this.x=Ye(this.x,t,n),this.y=Ye(this.y,t,n),this}clampLength(t,n){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Ye(i,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){let n=Math.sqrt(this.lengthSq()*t.lengthSq());if(n===0)return Math.PI/2;let i=this.dot(t)/n;return Math.acos(Ye(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let n=this.x-t.x,i=this.y-t.y;return n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this}lerpVectors(t,n,i){return this.x=t.x+(n.x-t.x)*i,this.y=t.y+(n.y-t.y)*i,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this}rotateAround(t,n){let i=Math.cos(n),r=Math.sin(n),s=this.x-t.x,a=this.y-t.y;return this.x=s*i-a*r+t.x,this.y=s*r+a*i+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}};o(vc,"Vector2");var Qn=vc,_c=class _c{constructor(t,n,i,r,s,a,u,l,c){_c.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],t!==void 0&&this.set(t,n,i,r,s,a,u,l,c)}set(t,n,i,r,s,a,u,l,c){let d=this.elements;return d[0]=t,d[1]=r,d[2]=u,d[3]=n,d[4]=s,d[5]=l,d[6]=i,d[7]=a,d[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){let n=this.elements,i=t.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(t,n,i){return t.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(t){let n=t.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,n){let i=t.elements,r=n.elements,s=this.elements,a=i[0],u=i[3],l=i[6],c=i[1],d=i[4],h=i[7],m=i[2],y=i[5],v=i[8],I=r[0],T=r[3],U=r[6],D=r[1],w=r[4],S=r[7],A=r[2],j=r[5],N=r[8];return s[0]=a*I+u*D+l*A,s[3]=a*T+u*w+l*j,s[6]=a*U+u*S+l*N,s[1]=c*I+d*D+h*A,s[4]=c*T+d*w+h*j,s[7]=c*U+d*S+h*N,s[2]=m*I+y*D+v*A,s[5]=m*T+y*w+v*j,s[8]=m*U+y*S+v*N,this}multiplyScalar(t){let n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=t,n[4]*=t,n[7]*=t,n[2]*=t,n[5]*=t,n[8]*=t,this}determinant(){let t=this.elements,n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],u=t[5],l=t[6],c=t[7],d=t[8];return n*a*d-n*u*c-i*s*d+i*u*l+r*s*c-r*a*l}invert(){let t=this.elements,n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],u=t[5],l=t[6],c=t[7],d=t[8],h=d*a-u*c,m=u*l-d*s,y=c*s-a*l,v=n*h+i*m+r*y;if(v===0)return this.set(0,0,0,0,0,0,0,0,0);let I=1/v;return t[0]=h*I,t[1]=(r*c-d*i)*I,t[2]=(u*i-r*a)*I,t[3]=m*I,t[4]=(d*n-r*l)*I,t[5]=(r*s-u*n)*I,t[6]=y*I,t[7]=(i*l-c*n)*I,t[8]=(a*n-i*s)*I,this}transpose(){let t,n=this.elements;return t=n[1],n[1]=n[3],n[3]=t,t=n[2],n[2]=n[6],n[6]=t,t=n[5],n[5]=n[7],n[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){let n=this.elements;return t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8],this}setUvTransform(t,n,i,r,s,a,u){let l=Math.cos(s),c=Math.sin(s);return this.set(i*l,i*c,-i*(l*a+c*u)+a+t,-r*c,r*l,-r*(-c*a+l*u)+u+n,0,0,1),this}scale(t,n){return this.premultiply(Ef.makeScale(t,n)),this}rotate(t){return this.premultiply(Ef.makeRotation(-t)),this}translate(t,n){return this.premultiply(Ef.makeTranslation(t,n)),this}makeTranslation(t,n){return t.isVector2?this.set(1,0,t.x,0,1,t.y,0,0,1):this.set(1,0,t,0,1,n,0,0,1),this}makeRotation(t){let n=Math.cos(t),i=Math.sin(t);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(t,n){return this.set(t,0,0,0,n,0,0,0,1),this}equals(t){let n=this.elements,i=t.elements;for(let r=0;r<9;r++)if(n[r]!==i[r])return!1;return!0}fromArray(t,n=0){for(let i=0;i<9;i++)this.elements[i]=t[i+n];return this}toArray(t=[],n=0){let i=this.elements;return t[n]=i[0],t[n+1]=i[1],t[n+2]=i[2],t[n+3]=i[3],t[n+4]=i[4],t[n+5]=i[5],t[n+6]=i[6],t[n+7]=i[7],t[n+8]=i[8],t}clone(){return new this.constructor().fromArray(this.elements)}};o(_c,"Matrix3");var me=_c,Ef=new me;function kf(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}o(kf,"createElementNS");var E_=new me().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),T_=new me().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function xT(){let e={enabled:!0,workingColorSpace:Ff,spaces:{},convert:o(function(r,s,a){return this.enabled===!1||s===a||!s||!a||(this.spaces[s].transfer===mc&&(r.r=Nr(r.r),r.g=Nr(r.g),r.b=Nr(r.b)),this.spaces[s].primaries!==this.spaces[a].primaries&&(r.applyMatrix3(this.spaces[s].toXYZ),r.applyMatrix3(this.spaces[a].fromXYZ)),this.spaces[a].transfer===mc&&(r.r=fo(r.r),r.g=fo(r.g),r.b=fo(r.b))),r},"convert"),fromWorkingColorSpace:o(function(r,s){return this.convert(r,this.workingColorSpace,s)},"fromWorkingColorSpace"),toWorkingColorSpace:o(function(r,s){return this.convert(r,s,this.workingColorSpace)},"toWorkingColorSpace"),getPrimaries:o(function(r){return this.spaces[r].primaries},"getPrimaries"),getTransfer:o(function(r){return r===id?Nf:this.spaces[r].transfer},"getTransfer"),getLuminanceCoefficients:o(function(r,s=this.workingColorSpace){return r.fromArray(this.spaces[s].luminanceCoefficients)},"getLuminanceCoefficients"),define:o(function(r){Object.assign(this.spaces,r)},"define"),_getMatrix:o(function(r,s,a){return r.copy(this.spaces[s].toXYZ).multiply(this.spaces[a].fromXYZ)},"_getMatrix"),_getDrawingBufferColorSpace:o(function(r){return this.spaces[r].outputColorSpaceConfig.drawingBufferColorSpace},"_getDrawingBufferColorSpace"),_getUnpackColorSpace:o(function(r=this.workingColorSpace){return this.spaces[r].workingColorSpaceConfig.unpackColorSpace},"_getUnpackColorSpace")},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],i=[.3127,.329];return e.define({[Ff]:{primaries:t,whitePoint:i,transfer:Nf,toXYZ:E_,fromXYZ:T_,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:Fn},outputColorSpaceConfig:{drawingBufferColorSpace:Fn}},[Fn]:{primaries:t,whitePoint:i,transfer:mc,toXYZ:E_,fromXYZ:T_,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:Fn}}}),e}o(xT,"createColorManagement");var Un=xT();function Nr(e){return e<.04045?e*.0773993808:Math.pow(e*.9478672986+.0521327014,2.4)}o(Nr,"SRGBToLinear");function fo(e){return e<.0031308?e*12.92:1.055*Math.pow(e,.41666)-.055}o(fo,"LinearToSRGB");var oo,ud=class ud{static getDataURL(t){if(/^data:/i.test(t.src)||typeof HTMLCanvasElement>"u")return t.src;let n;if(t instanceof HTMLCanvasElement)n=t;else{oo===void 0&&(oo=kf("canvas")),oo.width=t.width,oo.height=t.height;let i=oo.getContext("2d");t instanceof ImageData?i.putImageData(t,0,0):i.drawImage(t,0,0,t.width,t.height),n=oo}return n.toDataURL("image/png")}static sRGBToLinear(t){if(typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap){let n=kf("canvas");n.width=t.width,n.height=t.height;let i=n.getContext("2d");i.drawImage(t,0,0,t.width,t.height);let r=i.getImageData(0,0,t.width,t.height),s=r.data;for(let a=0;a<s.length;a++)s[a]=Nr(s[a]/255)*255;return i.putImageData(r,0,0),n}else if(t.data){let n=t.data.slice(0);for(let i=0;i<n.length;i++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[i]=Math.floor(Nr(n[i]/255)*255):n[i]=Nr(n[i]);return{data:n,width:t.width,height:t.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),t}};o(ud,"ImageUtils");var Df=ud,vT=0,ld=class ld{constructor(t=null){this.isSource=!0,Object.defineProperty(this,"id",{value:vT++}),this.uuid=od(),this.data=t,this.dataReady=!0,this.version=0}set needsUpdate(t){t===!0&&this.version++}toJSON(t){let n=t===void 0||typeof t=="string";if(!n&&t.images[this.uuid]!==void 0)return t.images[this.uuid];let i={uuid:this.uuid,url:""},r=this.data;if(r!==null){let s;if(Array.isArray(r)){s=[];for(let a=0,u=r.length;a<u;a++)r[a].isDataTexture?s.push(Tf(r[a].image)):s.push(Tf(r[a]))}else s=Tf(r);i.url=s}return n||(t.images[this.uuid]=i),i}};o(ld,"Source");var Lf=ld;function Tf(e){return typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap?Df.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}o(Tf,"serializeImage");var _T=0,uo=class uo extends Cs{constructor(t=uo.DEFAULT_IMAGE,n=uo.DEFAULT_MAPPING,i=As,r=As,s=D_,a=L_,u=z_,l=$_,c=uo.DEFAULT_ANISOTROPY,d=id){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:_T++}),this.uuid=od(),this.name="",this.source=new Lf(t),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=r,this.magFilter=s,this.minFilter=a,this.anisotropy=c,this.format=u,this.internalFormat=null,this.type=l,this.offset=new Qn(0,0),this.repeat=new Qn(1,1),this.center=new Qn(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new me,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=d,this.userData={},this.version=0,this.onUpdate=null,this.renderTarget=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(t=null){this.source.data=t}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(t){return this.name=t.name,this.source=t.source,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.channel=t.channel,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.internalFormat=t.internalFormat,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.colorSpace=t.colorSpace,this.renderTarget=t.renderTarget,this.isRenderTargetTexture=t.isRenderTargetTexture,this.userData=JSON.parse(JSON.stringify(t.userData)),this.needsUpdate=!0,this}toJSON(t){let n=t===void 0||typeof t=="string";if(!n&&t.textures[this.uuid]!==void 0)return t.textures[this.uuid];let i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(t).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(t.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==k_)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Cf:t.x=t.x-Math.floor(t.x);break;case As:t.x=t.x<0?0:1;break;case Of:Math.abs(Math.floor(t.x)%2)===1?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);break}if(t.y<0||t.y>1)switch(this.wrapT){case Cf:t.y=t.y-Math.floor(t.y);break;case As:t.y=t.y<0?0:1;break;case Of:Math.abs(Math.floor(t.y)%2)===1?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);break}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){t===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(t){t===!0&&this.pmremVersion++}};o(uo,"Texture");var po=uo;po.DEFAULT_IMAGE=null;po.DEFAULT_MAPPING=k_;po.DEFAULT_ANISOTROPY=1;var fd=class fd{constructor(t=0,n=0,i=0,r=1){this.isQuaternion=!0,this._x=t,this._y=n,this._z=i,this._w=r}static slerpFlat(t,n,i,r,s,a,u){let l=i[r+0],c=i[r+1],d=i[r+2],h=i[r+3],m=s[a+0],y=s[a+1],v=s[a+2],I=s[a+3];if(u===0){t[n+0]=l,t[n+1]=c,t[n+2]=d,t[n+3]=h;return}if(u===1){t[n+0]=m,t[n+1]=y,t[n+2]=v,t[n+3]=I;return}if(h!==I||l!==m||c!==y||d!==v){let T=1-u,U=l*m+c*y+d*v+h*I,D=U>=0?1:-1,w=1-U*U;if(w>Number.EPSILON){let A=Math.sqrt(w),j=Math.atan2(A,U*D);T=Math.sin(T*j)/A,u=Math.sin(u*j)/A}let S=u*D;if(l=l*T+m*S,c=c*T+y*S,d=d*T+v*S,h=h*T+I*S,T===1-u){let A=1/Math.sqrt(l*l+c*c+d*d+h*h);l*=A,c*=A,d*=A,h*=A}}t[n]=l,t[n+1]=c,t[n+2]=d,t[n+3]=h}static multiplyQuaternionsFlat(t,n,i,r,s,a){let u=i[r],l=i[r+1],c=i[r+2],d=i[r+3],h=s[a],m=s[a+1],y=s[a+2],v=s[a+3];return t[n]=u*v+d*h+l*y-c*m,t[n+1]=l*v+d*m+c*h-u*y,t[n+2]=c*v+d*y+u*m-l*h,t[n+3]=d*v-u*h-l*m-c*y,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,n,i,r){return this._x=t,this._y=n,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,n=!0){let i=t._x,r=t._y,s=t._z,a=t._order,u=Math.cos,l=Math.sin,c=u(i/2),d=u(r/2),h=u(s/2),m=l(i/2),y=l(r/2),v=l(s/2);switch(a){case"XYZ":this._x=m*d*h+c*y*v,this._y=c*y*h-m*d*v,this._z=c*d*v+m*y*h,this._w=c*d*h-m*y*v;break;case"YXZ":this._x=m*d*h+c*y*v,this._y=c*y*h-m*d*v,this._z=c*d*v-m*y*h,this._w=c*d*h+m*y*v;break;case"ZXY":this._x=m*d*h-c*y*v,this._y=c*y*h+m*d*v,this._z=c*d*v+m*y*h,this._w=c*d*h-m*y*v;break;case"ZYX":this._x=m*d*h-c*y*v,this._y=c*y*h+m*d*v,this._z=c*d*v-m*y*h,this._w=c*d*h+m*y*v;break;case"YZX":this._x=m*d*h+c*y*v,this._y=c*y*h+m*d*v,this._z=c*d*v-m*y*h,this._w=c*d*h-m*y*v;break;case"XZY":this._x=m*d*h-c*y*v,this._y=c*y*h-m*d*v,this._z=c*d*v+m*y*h,this._w=c*d*h+m*y*v;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+a)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(t,n){let i=n/2,r=Math.sin(i);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(t){let n=t.elements,i=n[0],r=n[4],s=n[8],a=n[1],u=n[5],l=n[9],c=n[2],d=n[6],h=n[10],m=i+u+h;if(m>0){let y=.5/Math.sqrt(m+1);this._w=.25/y,this._x=(d-l)*y,this._y=(s-c)*y,this._z=(a-r)*y}else if(i>u&&i>h){let y=2*Math.sqrt(1+i-u-h);this._w=(d-l)/y,this._x=.25*y,this._y=(r+a)/y,this._z=(s+c)/y}else if(u>h){let y=2*Math.sqrt(1+u-i-h);this._w=(s-c)/y,this._x=(r+a)/y,this._y=.25*y,this._z=(l+d)/y}else{let y=2*Math.sqrt(1+h-i-u);this._w=(a-r)/y,this._x=(s+c)/y,this._y=(l+d)/y,this._z=.25*y}return this._onChangeCallback(),this}setFromUnitVectors(t,n){let i=t.dot(n)+1;return i<Number.EPSILON?(i=0,Math.abs(t.x)>Math.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=i):(this._x=0,this._y=-t.z,this._z=t.y,this._w=i)):(this._x=t.y*n.z-t.z*n.y,this._y=t.z*n.x-t.x*n.z,this._z=t.x*n.y-t.y*n.x,this._w=i),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Ye(this.dot(t),-1,1)))}rotateTowards(t,n){let i=this.angleTo(t);if(i===0)return this;let r=Math.min(1,n/i);return this.slerp(t,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return t===0?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,n){let i=t._x,r=t._y,s=t._z,a=t._w,u=n._x,l=n._y,c=n._z,d=n._w;return this._x=i*d+a*u+r*c-s*l,this._y=r*d+a*l+s*u-i*c,this._z=s*d+a*c+i*l-r*u,this._w=a*d-i*u-r*l-s*c,this._onChangeCallback(),this}slerp(t,n){if(n===0)return this;if(n===1)return this.copy(t);let i=this._x,r=this._y,s=this._z,a=this._w,u=a*t._w+i*t._x+r*t._y+s*t._z;if(u<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,u=-u):this.copy(t),u>=1)return this._w=a,this._x=i,this._y=r,this._z=s,this;let l=1-u*u;if(l<=Number.EPSILON){let y=1-n;return this._w=y*a+n*this._w,this._x=y*i+n*this._x,this._y=y*r+n*this._y,this._z=y*s+n*this._z,this.normalize(),this}let c=Math.sqrt(l),d=Math.atan2(c,u),h=Math.sin((1-n)*d)/c,m=Math.sin(n*d)/c;return this._w=a*h+this._w*m,this._x=i*h+this._x*m,this._y=r*h+this._y*m,this._z=s*h+this._z*m,this._onChangeCallback(),this}slerpQuaternions(t,n,i){return this.copy(t).slerp(n,i)}random(){let t=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),i=Math.random(),r=Math.sqrt(1-i),s=Math.sqrt(i);return this.set(r*Math.sin(t),r*Math.cos(t),s*Math.sin(n),s*Math.cos(n))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,n=0){return this._x=t[n],this._y=t[n+1],this._z=t[n+2],this._w=t[n+3],this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._w,t}fromBufferAttribute(t,n){return this._x=t.getX(n),this._y=t.getY(n),this._z=t.getZ(n),this._w=t.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}};o(fd,"Quaternion");var di=fd,bc=class bc{constructor(t=0,n=0,i=0){bc.prototype.isVector3=!0,this.x=t,this.y=n,this.z=i}set(t,n,i){return i===void 0&&(i=this.z),this.x=t,this.y=n,this.z=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,n){switch(t){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+t)}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,n){return this.x=t.x+n.x,this.y=t.y+n.y,this.z=t.z+n.z,this}addScaledVector(t,n){return this.x+=t.x*n,this.y+=t.y*n,this.z+=t.z*n,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,n){return this.x=t.x-n.x,this.y=t.y-n.y,this.z=t.z-n.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,n){return this.x=t.x*n.x,this.y=t.y*n.y,this.z=t.z*n.z,this}applyEuler(t){return this.applyQuaternion(A_.setFromEuler(t))}applyAxisAngle(t,n){return this.applyQuaternion(A_.setFromAxisAngle(t,n))}applyMatrix3(t){let n=this.x,i=this.y,r=this.z,s=t.elements;return this.x=s[0]*n+s[3]*i+s[6]*r,this.y=s[1]*n+s[4]*i+s[7]*r,this.z=s[2]*n+s[5]*i+s[8]*r,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){let n=this.x,i=this.y,r=this.z,s=t.elements,a=1/(s[3]*n+s[7]*i+s[11]*r+s[15]);return this.x=(s[0]*n+s[4]*i+s[8]*r+s[12])*a,this.y=(s[1]*n+s[5]*i+s[9]*r+s[13])*a,this.z=(s[2]*n+s[6]*i+s[10]*r+s[14])*a,this}applyQuaternion(t){let n=this.x,i=this.y,r=this.z,s=t.x,a=t.y,u=t.z,l=t.w,c=2*(a*r-u*i),d=2*(u*n-s*r),h=2*(s*i-a*n);return this.x=n+l*c+a*h-u*d,this.y=i+l*d+u*c-s*h,this.z=r+l*h+s*d-a*c,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){let n=this.x,i=this.y,r=this.z,s=t.elements;return this.x=s[0]*n+s[4]*i+s[8]*r,this.y=s[1]*n+s[5]*i+s[9]*r,this.z=s[2]*n+s[6]*i+s[10]*r,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,n){return this.x=Ye(this.x,t.x,n.x),this.y=Ye(this.y,t.y,n.y),this.z=Ye(this.z,t.z,n.z),this}clampScalar(t,n){return this.x=Ye(this.x,t,n),this.y=Ye(this.y,t,n),this.z=Ye(this.z,t,n),this}clampLength(t,n){let i=this.length();return this.divideScalar(i||1).multiplyScalar(Ye(i,t,n))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,n){return this.x+=(t.x-this.x)*n,this.y+=(t.y-this.y)*n,this.z+=(t.z-this.z)*n,this}lerpVectors(t,n,i){return this.x=t.x+(n.x-t.x)*i,this.y=t.y+(n.y-t.y)*i,this.z=t.z+(n.z-t.z)*i,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,n){let i=t.x,r=t.y,s=t.z,a=n.x,u=n.y,l=n.z;return this.x=r*l-s*u,this.y=s*a-i*l,this.z=i*u-r*a,this}projectOnVector(t){let n=t.lengthSq();if(n===0)return this.set(0,0,0);let i=t.dot(this)/n;return this.copy(t).multiplyScalar(i)}projectOnPlane(t){return Af.copy(this).projectOnVector(t),this.sub(Af)}reflect(t){return this.sub(Af.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){let n=Math.sqrt(this.lengthSq()*t.lengthSq());if(n===0)return Math.PI/2;let i=this.dot(t)/n;return Math.acos(Ye(i,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){let n=this.x-t.x,i=this.y-t.y,r=this.z-t.z;return n*n+i*i+r*r}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,n,i){let r=Math.sin(n)*t;return this.x=r*Math.sin(i),this.y=Math.cos(n)*t,this.z=r*Math.cos(i),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,n,i){return this.x=t*Math.sin(n),this.y=i,this.z=t*Math.cos(n),this}setFromMatrixPosition(t){let n=t.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(t){let n=this.setFromMatrixColumn(t,0).length(),i=this.setFromMatrixColumn(t,1).length(),r=this.setFromMatrixColumn(t,2).length();return this.x=n,this.y=i,this.z=r,this}setFromMatrixColumn(t,n){return this.fromArray(t.elements,n*4)}setFromMatrix3Column(t,n){return this.fromArray(t.elements,n*3)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,n=0){return this.x=t[n],this.y=t[n+1],this.z=t[n+2],this}toArray(t=[],n=0){return t[n]=this.x,t[n+1]=this.y,t[n+2]=this.z,t}fromBufferAttribute(t,n){return this.x=t.getX(n),this.y=t.getY(n),this.z=t.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let t=Math.random()*Math.PI*2,n=Math.random()*2-1,i=Math.sqrt(1-n*n);return this.x=i*Math.cos(t),this.y=n,this.z=i*Math.sin(t),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}};o(bc,"Vector3");var ke=bc,Af=new ke,A_=new di;var Rs=class Rs{constructor(t,n,i,r,s,a,u,l,c,d,h,m,y,v,I,T){Rs.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],t!==void 0&&this.set(t,n,i,r,s,a,u,l,c,d,h,m,y,v,I,T)}set(t,n,i,r,s,a,u,l,c,d,h,m,y,v,I,T){let U=this.elements;return U[0]=t,U[4]=n,U[8]=i,U[12]=r,U[1]=s,U[5]=a,U[9]=u,U[13]=l,U[2]=c,U[6]=d,U[10]=h,U[14]=m,U[3]=y,U[7]=v,U[11]=I,U[15]=T,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rs().fromArray(this.elements)}copy(t){let n=this.elements,i=t.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(t){let n=this.elements,i=t.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(t){let n=t.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(t,n,i){return t.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(t,n,i){return this.set(t.x,n.x,i.x,0,t.y,n.y,i.y,0,t.z,n.z,i.z,0,0,0,0,1),this}extractRotation(t){let n=this.elements,i=t.elements,r=1/so.setFromMatrixColumn(t,0).length(),s=1/so.setFromMatrixColumn(t,1).length(),a=1/so.setFromMatrixColumn(t,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*s,n[5]=i[5]*s,n[6]=i[6]*s,n[7]=0,n[8]=i[8]*a,n[9]=i[9]*a,n[10]=i[10]*a,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(t){let n=this.elements,i=t.x,r=t.y,s=t.z,a=Math.cos(i),u=Math.sin(i),l=Math.cos(r),c=Math.sin(r),d=Math.cos(s),h=Math.sin(s);if(t.order==="XYZ"){let m=a*d,y=a*h,v=u*d,I=u*h;n[0]=l*d,n[4]=-l*h,n[8]=c,n[1]=y+v*c,n[5]=m-I*c,n[9]=-u*l,n[2]=I-m*c,n[6]=v+y*c,n[10]=a*l}else if(t.order==="YXZ"){let m=l*d,y=l*h,v=c*d,I=c*h;n[0]=m+I*u,n[4]=v*u-y,n[8]=a*c,n[1]=a*h,n[5]=a*d,n[9]=-u,n[2]=y*u-v,n[6]=I+m*u,n[10]=a*l}else if(t.order==="ZXY"){let m=l*d,y=l*h,v=c*d,I=c*h;n[0]=m-I*u,n[4]=-a*h,n[8]=v+y*u,n[1]=y+v*u,n[5]=a*d,n[9]=I-m*u,n[2]=-a*c,n[6]=u,n[10]=a*l}else if(t.order==="ZYX"){let m=a*d,y=a*h,v=u*d,I=u*h;n[0]=l*d,n[4]=v*c-y,n[8]=m*c+I,n[1]=l*h,n[5]=I*c+m,n[9]=y*c-v,n[2]=-c,n[6]=u*l,n[10]=a*l}else if(t.order==="YZX"){let m=a*l,y=a*c,v=u*l,I=u*c;n[0]=l*d,n[4]=I-m*h,n[8]=v*h+y,n[1]=h,n[5]=a*d,n[9]=-u*d,n[2]=-c*d,n[6]=y*h+v,n[10]=m-I*h}else if(t.order==="XZY"){let m=a*l,y=a*c,v=u*l,I=u*c;n[0]=l*d,n[4]=-h,n[8]=c*d,n[1]=m*h+I,n[5]=a*d,n[9]=y*h-v,n[2]=v*h-y,n[6]=u*d,n[10]=I*h+m}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(t){return this.compose(bT,t,ST)}lookAt(t,n,i){let r=this.elements;return xn.subVectors(t,n),xn.lengthSq()===0&&(xn.z=1),xn.normalize(),ui.crossVectors(i,xn),ui.lengthSq()===0&&(Math.abs(i.z)===1?xn.x+=1e-4:xn.z+=1e-4,xn.normalize(),ui.crossVectors(i,xn)),ui.normalize(),fc.crossVectors(xn,ui),r[0]=ui.x,r[4]=fc.x,r[8]=xn.x,r[1]=ui.y,r[5]=fc.y,r[9]=xn.y,r[2]=ui.z,r[6]=fc.z,r[10]=xn.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,n){let i=t.elements,r=n.elements,s=this.elements,a=i[0],u=i[4],l=i[8],c=i[12],d=i[1],h=i[5],m=i[9],y=i[13],v=i[2],I=i[6],T=i[10],U=i[14],D=i[3],w=i[7],S=i[11],A=i[15],j=r[0],N=r[4],H=r[8],G=r[12],ce=r[1],ue=r[5],he=r[9],Ge=r[13],Oe=r[2],Ue=r[6],V=r[10],ne=r[14],le=r[3],oe=r[7],Me=r[11],pt=r[15];return s[0]=a*j+u*ce+l*Oe+c*le,s[4]=a*N+u*ue+l*Ue+c*oe,s[8]=a*H+u*he+l*V+c*Me,s[12]=a*G+u*Ge+l*ne+c*pt,s[1]=d*j+h*ce+m*Oe+y*le,s[5]=d*N+h*ue+m*Ue+y*oe,s[9]=d*H+h*he+m*V+y*Me,s[13]=d*G+h*Ge+m*ne+y*pt,s[2]=v*j+I*ce+T*Oe+U*le,s[6]=v*N+I*ue+T*Ue+U*oe,s[10]=v*H+I*he+T*V+U*Me,s[14]=v*G+I*Ge+T*ne+U*pt,s[3]=D*j+w*ce+S*Oe+A*le,s[7]=D*N+w*ue+S*Ue+A*oe,s[11]=D*H+w*he+S*V+A*Me,s[15]=D*G+w*Ge+S*ne+A*pt,this}multiplyScalar(t){let n=this.elements;return n[0]*=t,n[4]*=t,n[8]*=t,n[12]*=t,n[1]*=t,n[5]*=t,n[9]*=t,n[13]*=t,n[2]*=t,n[6]*=t,n[10]*=t,n[14]*=t,n[3]*=t,n[7]*=t,n[11]*=t,n[15]*=t,this}determinant(){let t=this.elements,n=t[0],i=t[4],r=t[8],s=t[12],a=t[1],u=t[5],l=t[9],c=t[13],d=t[2],h=t[6],m=t[10],y=t[14],v=t[3],I=t[7],T=t[11],U=t[15];return v*(+s*l*h-r*c*h-s*u*m+i*c*m+r*u*y-i*l*y)+I*(+n*l*y-n*c*m+s*a*m-r*a*y+r*c*d-s*l*d)+T*(+n*c*h-n*u*y-s*a*h+i*a*y+s*u*d-i*c*d)+U*(-r*u*d-n*l*h+n*u*m+r*a*h-i*a*m+i*l*d)}transpose(){let t=this.elements,n;return n=t[1],t[1]=t[4],t[4]=n,n=t[2],t[2]=t[8],t[8]=n,n=t[6],t[6]=t[9],t[9]=n,n=t[3],t[3]=t[12],t[12]=n,n=t[7],t[7]=t[13],t[13]=n,n=t[11],t[11]=t[14],t[14]=n,this}setPosition(t,n,i){let r=this.elements;return t.isVector3?(r[12]=t.x,r[13]=t.y,r[14]=t.z):(r[12]=t,r[13]=n,r[14]=i),this}invert(){let t=this.elements,n=t[0],i=t[1],r=t[2],s=t[3],a=t[4],u=t[5],l=t[6],c=t[7],d=t[8],h=t[9],m=t[10],y=t[11],v=t[12],I=t[13],T=t[14],U=t[15],D=h*T*c-I*m*c+I*l*y-u*T*y-h*l*U+u*m*U,w=v*m*c-d*T*c-v*l*y+a*T*y+d*l*U-a*m*U,S=d*I*c-v*h*c+v*u*y-a*I*y-d*u*U+a*h*U,A=v*h*l-d*I*l-v*u*m+a*I*m+d*u*T-a*h*T,j=n*D+i*w+r*S+s*A;if(j===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);let N=1/j;return t[0]=D*N,t[1]=(I*m*s-h*T*s-I*r*y+i*T*y+h*r*U-i*m*U)*N,t[2]=(u*T*s-I*l*s+I*r*c-i*T*c-u*r*U+i*l*U)*N,t[3]=(h*l*s-u*m*s-h*r*c+i*m*c+u*r*y-i*l*y)*N,t[4]=w*N,t[5]=(d*T*s-v*m*s+v*r*y-n*T*y-d*r*U+n*m*U)*N,t[6]=(v*l*s-a*T*s-v*r*c+n*T*c+a*r*U-n*l*U)*N,t[7]=(a*m*s-d*l*s+d*r*c-n*m*c-a*r*y+n*l*y)*N,t[8]=S*N,t[9]=(v*h*s-d*I*s-v*i*y+n*I*y+d*i*U-n*h*U)*N,t[10]=(a*I*s-v*u*s+v*i*c-n*I*c-a*i*U+n*u*U)*N,t[11]=(d*u*s-a*h*s-d*i*c+n*h*c+a*i*y-n*u*y)*N,t[12]=A*N,t[13]=(d*I*r-v*h*r+v*i*m-n*I*m-d*i*T+n*h*T)*N,t[14]=(v*u*r-a*I*r-v*i*l+n*I*l+a*i*T-n*u*T)*N,t[15]=(a*h*r-d*u*r+d*i*l-n*h*l-a*i*m+n*u*m)*N,this}scale(t){let n=this.elements,i=t.x,r=t.y,s=t.z;return n[0]*=i,n[4]*=r,n[8]*=s,n[1]*=i,n[5]*=r,n[9]*=s,n[2]*=i,n[6]*=r,n[10]*=s,n[3]*=i,n[7]*=r,n[11]*=s,this}getMaxScaleOnAxis(){let t=this.elements,n=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(n,i,r))}makeTranslation(t,n,i){return t.isVector3?this.set(1,0,0,t.x,0,1,0,t.y,0,0,1,t.z,0,0,0,1):this.set(1,0,0,t,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(t){let n=Math.cos(t),i=Math.sin(t);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(t){let n=Math.cos(t),i=Math.sin(t);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(t){let n=Math.cos(t),i=Math.sin(t);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,n){let i=Math.cos(n),r=Math.sin(n),s=1-i,a=t.x,u=t.y,l=t.z,c=s*a,d=s*u;return this.set(c*a+i,c*u-r*l,c*l+r*u,0,c*u+r*l,d*u+i,d*l-r*a,0,c*l-r*u,d*l+r*a,s*l*l+i,0,0,0,0,1),this}makeScale(t,n,i){return this.set(t,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(t,n,i,r,s,a){return this.set(1,i,s,0,t,1,a,0,n,r,1,0,0,0,0,1),this}compose(t,n,i){let r=this.elements,s=n._x,a=n._y,u=n._z,l=n._w,c=s+s,d=a+a,h=u+u,m=s*c,y=s*d,v=s*h,I=a*d,T=a*h,U=u*h,D=l*c,w=l*d,S=l*h,A=i.x,j=i.y,N=i.z;return r[0]=(1-(I+U))*A,r[1]=(y+S)*A,r[2]=(v-w)*A,r[3]=0,r[4]=(y-S)*j,r[5]=(1-(m+U))*j,r[6]=(T+D)*j,r[7]=0,r[8]=(v+w)*N,r[9]=(T-D)*N,r[10]=(1-(m+I))*N,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this}decompose(t,n,i){let r=this.elements,s=so.set(r[0],r[1],r[2]).length(),a=so.set(r[4],r[5],r[6]).length(),u=so.set(r[8],r[9],r[10]).length();this.determinant()<0&&(s=-s),t.x=r[12],t.y=r[13],t.z=r[14],Jn.copy(this);let c=1/s,d=1/a,h=1/u;return Jn.elements[0]*=c,Jn.elements[1]*=c,Jn.elements[2]*=c,Jn.elements[4]*=d,Jn.elements[5]*=d,Jn.elements[6]*=d,Jn.elements[8]*=h,Jn.elements[9]*=h,Jn.elements[10]*=h,n.setFromRotationMatrix(Jn),i.x=s,i.y=a,i.z=u,this}makePerspective(t,n,i,r,s,a,u=Ps){let l=this.elements,c=2*s/(n-t),d=2*s/(i-r),h=(n+t)/(n-t),m=(i+r)/(i-r),y,v;if(u===Ps)y=-(a+s)/(a-s),v=-2*a*s/(a-s);else if(u===M_)y=-a/(a-s),v=-a*s/(a-s);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+u);return l[0]=c,l[4]=0,l[8]=h,l[12]=0,l[1]=0,l[5]=d,l[9]=m,l[13]=0,l[2]=0,l[6]=0,l[10]=y,l[14]=v,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(t,n,i,r,s,a,u=Ps){let l=this.elements,c=1/(n-t),d=1/(i-r),h=1/(a-s),m=(n+t)*c,y=(i+r)*d,v,I;if(u===Ps)v=(a+s)*h,I=-2*h;else if(u===M_)v=s*h,I=-1*h;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+u);return l[0]=2*c,l[4]=0,l[8]=0,l[12]=-m,l[1]=0,l[5]=2*d,l[9]=0,l[13]=-y,l[2]=0,l[6]=0,l[10]=I,l[14]=-v,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(t){let n=this.elements,i=t.elements;for(let r=0;r<16;r++)if(n[r]!==i[r])return!1;return!0}fromArray(t,n=0){for(let i=0;i<16;i++)this.elements[i]=t[i+n];return this}toArray(t=[],n=0){let i=this.elements;return t[n]=i[0],t[n+1]=i[1],t[n+2]=i[2],t[n+3]=i[3],t[n+4]=i[4],t[n+5]=i[5],t[n+6]=i[6],t[n+7]=i[7],t[n+8]=i[8],t[n+9]=i[9],t[n+10]=i[10],t[n+11]=i[11],t[n+12]=i[12],t[n+13]=i[13],t[n+14]=i[14],t[n+15]=i[15],t}};o(Rs,"Matrix4");var kr=Rs,so=new ke,Jn=new kr,bT=new ke(0,0,0),ST=new ke(1,1,1),ui=new ke,fc=new ke,xn=new ke,P_=new kr,R_=new di,Sc=class Sc{constructor(t=0,n=0,i=0,r=Sc.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=n,this._z=i,this._order=r}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,n,i,r=this._order){return this._x=t,this._y=n,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,n=this._order,i=!0){let r=t.elements,s=r[0],a=r[4],u=r[8],l=r[1],c=r[5],d=r[9],h=r[2],m=r[6],y=r[10];switch(n){case"XYZ":this._y=Math.asin(Ye(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(-d,y),this._z=Math.atan2(-a,s)):(this._x=Math.atan2(m,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Ye(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(u,y),this._z=Math.atan2(l,c)):(this._y=Math.atan2(-h,s),this._z=0);break;case"ZXY":this._x=Math.asin(Ye(m,-1,1)),Math.abs(m)<.9999999?(this._y=Math.atan2(-h,y),this._z=Math.atan2(-a,c)):(this._y=0,this._z=Math.atan2(l,s));break;case"ZYX":this._y=Math.asin(-Ye(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(m,y),this._z=Math.atan2(l,s)):(this._x=0,this._z=Math.atan2(-a,c));break;case"YZX":this._z=Math.asin(Ye(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-d,c),this._y=Math.atan2(-h,s)):(this._x=0,this._y=Math.atan2(u,y));break;case"XZY":this._z=Math.asin(-Ye(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(m,c),this._y=Math.atan2(u,s)):(this._x=Math.atan2(-d,y),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(t,n,i){return P_.makeRotationFromQuaternion(t),this.setFromRotationMatrix(P_,n,i)}setFromVector3(t,n=this._order){return this.set(t.x,t.y,t.z,n)}reorder(t){return R_.setFromEuler(this),this.setFromQuaternion(R_,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],t[3]!==void 0&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],n=0){return t[n]=this._x,t[n+1]=this._y,t[n+2]=this._z,t[n+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}};o(Sc,"Euler");var Os=Sc;Os.DEFAULT_ORDER="XYZ";var dd=class dd{constructor(){this.mask=1}set(t){this.mask=(1<<t|0)>>>0}enable(t){this.mask|=1<<t|0}enableAll(){this.mask=-1}toggle(t){this.mask^=1<<t|0}disable(t){this.mask&=~(1<<t|0)}disableAll(){this.mask=0}test(t){return(this.mask&t.mask)!==0}isEnabled(t){return(this.mask&(1<<t|0))!==0}};o(dd,"Layers");var yc=dd,IT=0,C_=new ke,ao=new di,Fr=new kr,dc=new ke,Ts=new ke,wT=new ke,MT=new di,O_=new ke(1,0,0),U_=new ke(0,1,0),F_=new ke(0,0,1),N_={type:"added"},ET={type:"removed"},co={type:"childadded",child:null},Pf={type:"childremoved",child:null},lo=class lo extends Cs{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:IT++}),this.uuid=od(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=lo.DEFAULT_UP.clone();let t=new ke,n=new Os,i=new di,r=new ke(1,1,1);function s(){i.setFromEuler(n,!1)}o(s,"onRotationChange");function a(){n.setFromQuaternion(i,void 0,!1)}o(a,"onQuaternionChange"),n._onChange(s),i._onChange(a),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new kr},normalMatrix:{value:new me}}),this.matrix=new kr,this.matrixWorld=new kr,this.matrixAutoUpdate=lo.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=lo.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new yc,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(t){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(t),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(t){return this.quaternion.premultiply(t),this}setRotationFromAxisAngle(t,n){this.quaternion.setFromAxisAngle(t,n)}setRotationFromEuler(t){this.quaternion.setFromEuler(t,!0)}setRotationFromMatrix(t){this.quaternion.setFromRotationMatrix(t)}setRotationFromQuaternion(t){this.quaternion.copy(t)}rotateOnAxis(t,n){return ao.setFromAxisAngle(t,n),this.quaternion.multiply(ao),this}rotateOnWorldAxis(t,n){return ao.setFromAxisAngle(t,n),this.quaternion.premultiply(ao),this}rotateX(t){return this.rotateOnAxis(O_,t)}rotateY(t){return this.rotateOnAxis(U_,t)}rotateZ(t){return this.rotateOnAxis(F_,t)}translateOnAxis(t,n){return C_.copy(t).applyQuaternion(this.quaternion),this.position.add(C_.multiplyScalar(n)),this}translateX(t){return this.translateOnAxis(O_,t)}translateY(t){return this.translateOnAxis(U_,t)}translateZ(t){return this.translateOnAxis(F_,t)}localToWorld(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(this.matrixWorld)}worldToLocal(t){return this.updateWorldMatrix(!0,!1),t.applyMatrix4(Fr.copy(this.matrixWorld).invert())}lookAt(t,n,i){t.isVector3?dc.copy(t):dc.set(t,n,i);let r=this.parent;this.updateWorldMatrix(!0,!1),Ts.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Fr.lookAt(Ts,dc,this.up):Fr.lookAt(dc,Ts,this.up),this.quaternion.setFromRotationMatrix(Fr),r&&(Fr.extractRotation(r.matrixWorld),ao.setFromRotationMatrix(Fr),this.quaternion.premultiply(ao.invert()))}add(t){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(t.removeFromParent(),t.parent=this,this.children.push(t),t.dispatchEvent(N_),co.child=t,this.dispatchEvent(co),co.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)}remove(t){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}let n=this.children.indexOf(t);return n!==-1&&(t.parent=null,this.children.splice(n,1),t.dispatchEvent(ET),Pf.child=t,this.dispatchEvent(Pf),Pf.child=null),this}removeFromParent(){let t=this.parent;return t!==null&&t.remove(this),this}clear(){return this.remove(...this.children)}attach(t){return this.updateWorldMatrix(!0,!1),Fr.copy(this.matrixWorld).invert(),t.parent!==null&&(t.parent.updateWorldMatrix(!0,!1),Fr.multiply(t.parent.matrixWorld)),t.applyMatrix4(Fr),t.removeFromParent(),t.parent=this,this.children.push(t),t.updateWorldMatrix(!1,!0),t.dispatchEvent(N_),co.child=t,this.dispatchEvent(co),co.child=null,this}getObjectById(t){return this.getObjectByProperty("id",t)}getObjectByName(t){return this.getObjectByProperty("name",t)}getObjectByProperty(t,n){if(this[t]===n)return this;for(let i=0,r=this.children.length;i<r;i++){let a=this.children[i].getObjectByProperty(t,n);if(a!==void 0)return a}}getObjectsByProperty(t,n,i=[]){this[t]===n&&i.push(this);let r=this.children;for(let s=0,a=r.length;s<a;s++)r[s].getObjectsByProperty(t,n,i);return i}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ts,t,wT),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Ts,MT,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);let n=this.matrixWorld.elements;return t.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(t){t(this);let n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverse(t)}traverseVisible(t){if(this.visible===!1)return;t(this);let n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverseVisible(t)}traverseAncestors(t){let n=this.parent;n!==null&&(t(n),n.traverseAncestors(t))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,t=!0);let n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].updateMatrixWorld(t)}updateWorldMatrix(t,n){let i=this.parent;if(t===!0&&i!==null&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.matrixWorldAutoUpdate===!0&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),n===!0){let r=this.children;for(let s=0,a=r.length;s<a;s++)r[s].updateWorldMatrix(!1,!0)}}toJSON(t){let n=t===void 0||typeof t=="string",i={};n&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});let r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(u=>({boxInitialized:u.boxInitialized,boxMin:u.box.min.toArray(),boxMax:u.box.max.toArray(),sphereInitialized:u.sphereInitialized,sphereRadius:u.sphere.radius,sphereCenter:u.sphere.center.toArray()})),r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(t),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(t)),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function s(u,l){return u[l.uuid]===void 0&&(u[l.uuid]=l.toJSON(t)),l.uuid}if(o(s,"serialize"),this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=s(t.geometries,this.geometry);let u=this.geometry.parameters;if(u!==void 0&&u.shapes!==void 0){let l=u.shapes;if(Array.isArray(l))for(let c=0,d=l.length;c<d;c++){let h=l[c];s(t.shapes,h)}else s(t.shapes,l)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(s(t.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){let u=[];for(let l=0,c=this.material.length;l<c;l++)u.push(s(t.materials,this.material[l]));r.material=u}else r.material=s(t.materials,this.material);if(this.children.length>0){r.children=[];for(let u=0;u<this.children.length;u++)r.children.push(this.children[u].toJSON(t).object)}if(this.animations.length>0){r.animations=[];for(let u=0;u<this.animations.length;u++){let l=this.animations[u];r.animations.push(s(t.animations,l))}}if(n){let u=a(t.geometries),l=a(t.materials),c=a(t.textures),d=a(t.images),h=a(t.shapes),m=a(t.skeletons),y=a(t.animations),v=a(t.nodes);u.length>0&&(i.geometries=u),l.length>0&&(i.materials=l),c.length>0&&(i.textures=c),d.length>0&&(i.images=d),h.length>0&&(i.shapes=h),m.length>0&&(i.skeletons=m),y.length>0&&(i.animations=y),v.length>0&&(i.nodes=v)}return i.object=r,i;function a(u){let l=[];for(let c in u){let d=u[c];delete d.metadata,l.push(d)}return l}o(a,"extractFromCache")}clone(t){return new this.constructor().copy(this,t)}copy(t,n=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.animations=t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),n===!0)for(let i=0;i<t.children.length;i++){let r=t.children[i];this.add(r.clone())}return this}};o(lo,"Object3D");var Us=lo;Us.DEFAULT_UP=new ke(0,1,0);Us.DEFAULT_MATRIX_AUTO_UPDATE=!0;Us.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var B_={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},li={h:0,s:0,l:0},pc={h:0,s:0,l:0};function Rf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}o(Rf,"hue2rgb");var pd=class pd{constructor(t,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(t,n,i)}set(t,n,i){if(n===void 0&&i===void 0){let r=t;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(t,n,i);return this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,n=Fn){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(t&255)/255,Un.toWorkingColorSpace(this,n),this}setRGB(t,n,i,r=Un.workingColorSpace){return this.r=t,this.g=n,this.b=i,Un.toWorkingColorSpace(this,r),this}setHSL(t,n,i,r=Un.workingColorSpace){if(t=yT(t,1),n=Ye(n,0,1),i=Ye(i,0,1),n===0)this.r=this.g=this.b=i;else{let s=i<=.5?i*(1+n):i+n-i*n,a=2*i-s;this.r=Rf(a,s,t+1/3),this.g=Rf(a,s,t),this.b=Rf(a,s,t-1/3)}return Un.toWorkingColorSpace(this,r),this}setStyle(t,n=Fn){function i(s){s!==void 0&&parseFloat(s)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}o(i,"handleAlpha");let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(t)){let s,a=r[1],u=r[2];switch(a){case"rgb":case"rgba":if(s=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(u))return i(s[4]),this.setRGB(Math.min(255,parseInt(s[1],10))/255,Math.min(255,parseInt(s[2],10))/255,Math.min(255,parseInt(s[3],10))/255,n);if(s=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(u))return i(s[4]),this.setRGB(Math.min(100,parseInt(s[1],10))/100,Math.min(100,parseInt(s[2],10))/100,Math.min(100,parseInt(s[3],10))/100,n);break;case"hsl":case"hsla":if(s=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(u))return i(s[4]),this.setHSL(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+t)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(t)){let s=r[1],a=s.length;if(a===3)return this.setRGB(parseInt(s.charAt(0),16)/15,parseInt(s.charAt(1),16)/15,parseInt(s.charAt(2),16)/15,n);if(a===6)return this.setHex(parseInt(s,16),n);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,n);return this}setColorName(t,n=Fn){let i=B_[t.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Nr(t.r),this.g=Nr(t.g),this.b=Nr(t.b),this}copyLinearToSRGB(t){return this.r=fo(t.r),this.g=fo(t.g),this.b=fo(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Fn){return Un.fromWorkingColorSpace(Ht.copy(this),t),Math.round(Ye(Ht.r*255,0,255))*65536+Math.round(Ye(Ht.g*255,0,255))*256+Math.round(Ye(Ht.b*255,0,255))}getHexString(t=Fn){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,n=Un.workingColorSpace){Un.fromWorkingColorSpace(Ht.copy(this),n);let i=Ht.r,r=Ht.g,s=Ht.b,a=Math.max(i,r,s),u=Math.min(i,r,s),l,c,d=(u+a)/2;if(u===a)l=0,c=0;else{let h=a-u;switch(c=d<=.5?h/(a+u):h/(2-a-u),a){case i:l=(r-s)/h+(r<s?6:0);break;case r:l=(s-i)/h+2;break;case s:l=(i-r)/h+4;break}l/=6}return t.h=l,t.s=c,t.l=d,t}getRGB(t,n=Un.workingColorSpace){return Un.fromWorkingColorSpace(Ht.copy(this),n),t.r=Ht.r,t.g=Ht.g,t.b=Ht.b,t}getStyle(t=Fn){Un.fromWorkingColorSpace(Ht.copy(this),t);let n=Ht.r,i=Ht.g,r=Ht.b;return t!==Fn?"color(".concat(t," ").concat(n.toFixed(3)," ").concat(i.toFixed(3)," ").concat(r.toFixed(3),")"):"rgb(".concat(Math.round(n*255),",").concat(Math.round(i*255),",").concat(Math.round(r*255),")")}offsetHSL(t,n,i){return this.getHSL(li),this.setHSL(li.h+t,li.s+n,li.l+i)}add(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this}addColors(t,n){return this.r=t.r+n.r,this.g=t.g+n.g,this.b=t.b+n.b,this}addScalar(t){return this.r+=t,this.g+=t,this.b+=t,this}sub(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this}multiply(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this}multiplyScalar(t){return this.r*=t,this.g*=t,this.b*=t,this}lerp(t,n){return this.r+=(t.r-this.r)*n,this.g+=(t.g-this.g)*n,this.b+=(t.b-this.b)*n,this}lerpColors(t,n,i){return this.r=t.r+(n.r-t.r)*i,this.g=t.g+(n.g-t.g)*i,this.b=t.b+(n.b-t.b)*i,this}lerpHSL(t,n){this.getHSL(li),t.getHSL(pc);let i=Mf(li.h,pc.h,n),r=Mf(li.s,pc.s,n),s=Mf(li.l,pc.l,n);return this.setHSL(i,r,s),this}setFromVector3(t){return this.r=t.x,this.g=t.y,this.b=t.z,this}applyMatrix3(t){let n=this.r,i=this.g,r=this.b,s=t.elements;return this.r=s[0]*n+s[3]*i+s[6]*r,this.g=s[1]*n+s[4]*i+s[7]*r,this.b=s[2]*n+s[5]*i+s[8]*r,this}equals(t){return t.r===this.r&&t.g===this.g&&t.b===this.b}fromArray(t,n=0){return this.r=t[n],this.g=t[n+1],this.b=t[n+2],this}toArray(t=[],n=0){return t[n]=this.r,t[n+1]=this.g,t[n+2]=this.b,t}fromBufferAttribute(t,n){return this.r=t.getX(n),this.g=t.getY(n),this.b=t.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}};o(pd,"Color");var _t=pd,Ht=new _t;_t.NAMES=B_;function V_(e){let t={};for(let n in e){t[n]={};for(let i in e[n]){let r=e[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),t[n][i]=null):t[n][i]=r.clone():Array.isArray(r)?t[n][i]=r.slice():t[n][i]=r}}return t}o(V_,"cloneUniforms");function tn(e){let t={};for(let n=0;n<e.length;n++){let i=V_(e[n]);for(let r in i)t[r]=i[r]}return t}o(tn,"mergeUniforms");function hc(e,t,n){return!e||!n&&e.constructor===t?e:typeof t.BYTES_PER_ELEMENT=="number"?new t(e):Array.prototype.slice.call(e)}o(hc,"convertArray");function TT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}o(TT,"isTypedArray");var hd=class hd{constructor(t,n,i,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=r!==void 0?r:new n.constructor(i),this.sampleValues=n,this.valueSize=i,this.settings=null,this.DefaultSettings_={}}evaluate(t){let n=this.parameterPositions,i=this._cachedIndex,r=n[i],s=n[i-1];n:{e:{let a;t:{r:if(!(t<r)){for(let u=i+2;;){if(r===void 0){if(t<s)break r;return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}if(i===u)break;if(s=r,r=n[++i],t<r)break e}a=n.length;break t}if(!(t>=s)){let u=n[1];t<u&&(i=2,s=u);for(let l=i-2;;){if(s===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(i===l)break;if(r=s,s=n[--i-1],t>=s)break e}a=i,i=0;break t}break n}for(;i<a;){let u=i+a>>>1;t<n[u]?a=u:i=u+1}if(r=n[i],s=n[i-1],s===void 0)return this._cachedIndex=0,this.copySampleValue_(0);if(r===void 0)return i=n.length,this._cachedIndex=i,this.copySampleValue_(i-1)}this._cachedIndex=i,this.intervalChanged_(i,s,r)}return this.interpolate_(i,s,t,r)}getSettings_(){return this.settings||this.DefaultSettings_}copySampleValue_(t){let n=this.resultBuffer,i=this.sampleValues,r=this.valueSize,s=t*r;for(let a=0;a!==r;++a)n[a]=i[s+a];return n}interpolate_(){throw new Error("call to abstract method")}intervalChanged_(){}};o(hd,"Interpolant");var ho=hd,md=class md extends ho{constructor(t,n,i,r){super(t,n,i,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0,this.DefaultSettings_={endingStart:S_,endingEnd:S_}}intervalChanged_(t,n,i){let r=this.parameterPositions,s=t-2,a=t+1,u=r[s],l=r[a];if(u===void 0)switch(this.getSettings_().endingStart){case I_:s=t,u=2*n-i;break;case w_:s=r.length-2,u=n+r[s]-r[s+1];break;default:s=t,u=i}if(l===void 0)switch(this.getSettings_().endingEnd){case I_:a=t,l=2*i-n;break;case w_:a=1,l=i+r[1]-r[0];break;default:a=t-1,l=n}let c=(i-n)*.5,d=this.valueSize;this._weightPrev=c/(n-u),this._weightNext=c/(l-i),this._offsetPrev=s*d,this._offsetNext=a*d}interpolate_(t,n,i,r){let s=this.resultBuffer,a=this.sampleValues,u=this.valueSize,l=t*u,c=l-u,d=this._offsetPrev,h=this._offsetNext,m=this._weightPrev,y=this._weightNext,v=(i-n)/(r-n),I=v*v,T=I*v,U=-m*T+2*m*I-m*v,D=(1+m)*T+(-1.5-2*m)*I+(-.5+m)*v+1,w=(-1-y)*T+(1.5+y)*I+.5*v,S=y*T-y*I;for(let A=0;A!==u;++A)s[A]=U*a[d+A]+D*a[c+A]+w*a[l+A]+S*a[h+A];return s}};o(md,"CubicInterpolant");var $f=md,gd=class gd extends ho{constructor(t,n,i,r){super(t,n,i,r)}interpolate_(t,n,i,r){let s=this.resultBuffer,a=this.sampleValues,u=this.valueSize,l=t*u,c=l-u,d=(i-n)/(r-n),h=1-d;for(let m=0;m!==u;++m)s[m]=a[c+m]*h+a[l+m]*d;return s}};o(gd,"LinearInterpolant");var zf=gd,yd=class yd extends ho{constructor(t,n,i,r){super(t,n,i,r)}interpolate_(t){return this.copySampleValue_(t-1)}};o(yd,"DiscreteInterpolant");var Bf=yd,xd=class xd{constructor(t,n,i,r){if(t===void 0)throw new Error("THREE.KeyframeTrack: track name is undefined");if(n===void 0||n.length===0)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=hc(n,this.TimeBufferType),this.values=hc(i,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation)}static toJSON(t){let n=t.constructor,i;if(n.toJSON!==this.toJSON)i=n.toJSON(t);else{i={name:t.name,times:hc(t.times,Array),values:hc(t.values,Array)};let r=t.getInterpolation();r!==t.DefaultInterpolation&&(i.interpolation=r)}return i.type=t.ValueTypeName,i}InterpolantFactoryMethodDiscrete(t){return new Bf(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodLinear(t){return new zf(this.times,this.values,this.getValueSize(),t)}InterpolantFactoryMethodSmooth(t){return new $f(this.times,this.values,this.getValueSize(),t)}setInterpolation(t){let n;switch(t){case gc:n=this.InterpolantFactoryMethodDiscrete;break;case Uf:n=this.InterpolantFactoryMethodLinear;break;case wf:n=this.InterpolantFactoryMethodSmooth;break}if(n===void 0){let i="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(this.createInterpolant===void 0)if(t!==this.DefaultInterpolation)this.setInterpolation(this.DefaultInterpolation);else throw new Error(i);return console.warn("THREE.KeyframeTrack:",i),this}return this.createInterpolant=n,this}getInterpolation(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return gc;case this.InterpolantFactoryMethodLinear:return Uf;case this.InterpolantFactoryMethodSmooth:return wf}}getValueSize(){return this.values.length/this.times.length}shift(t){if(t!==0){let n=this.times;for(let i=0,r=n.length;i!==r;++i)n[i]+=t}return this}scale(t){if(t!==1){let n=this.times;for(let i=0,r=n.length;i!==r;++i)n[i]*=t}return this}trim(t,n){let i=this.times,r=i.length,s=0,a=r-1;for(;s!==r&&i[s]<t;)++s;for(;a!==-1&&i[a]>n;)--a;if(++a,s!==0||a!==r){s>=a&&(a=Math.max(a,1),s=a-1);let u=this.getValueSize();this.times=i.slice(s,a),this.values=this.values.slice(s*u,a*u)}return this}validate(){let t=!0,n=this.getValueSize();n-Math.floor(n)!==0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);let i=this.times,r=this.values,s=i.length;s===0&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let a=null;for(let u=0;u!==s;u++){let l=i[u];if(typeof l=="number"&&isNaN(l)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,u,l),t=!1;break}if(a!==null&&a>l){console.error("THREE.KeyframeTrack: Out of order keys.",this,u,l,a),t=!1;break}a=l}if(r!==void 0&&TT(r))for(let u=0,l=r.length;u!==l;++u){let c=r[u];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,u,c),t=!1;break}}return t}optimize(){let t=this.times.slice(),n=this.values.slice(),i=this.getValueSize(),r=this.getInterpolation()===wf,s=t.length-1,a=1;for(let u=1;u<s;++u){let l=!1,c=t[u],d=t[u+1];if(c!==d&&(u!==1||c!==t[0]))if(r)l=!0;else{let h=u*i,m=h-i,y=h+i;for(let v=0;v!==i;++v){let I=n[h+v];if(I!==n[m+v]||I!==n[y+v]){l=!0;break}}}if(l){if(u!==a){t[a]=t[u];let h=u*i,m=a*i;for(let y=0;y!==i;++y)n[m+y]=n[h+y]}++a}}if(s>0){t[a]=t[s];for(let u=s*i,l=a*i,c=0;c!==i;++c)n[l+c]=n[u+c];++a}return a!==t.length?(this.times=t.slice(0,a),this.values=n.slice(0,a*i)):(this.times=t,this.values=n),this}clone(){let t=this.times.slice(),n=this.values.slice(),i=this.constructor,r=new i(this.name,t,n);return r.createInterpolant=this.createInterpolant,r}};o(xd,"KeyframeTrack");var er=xd;er.prototype.TimeBufferType=Float32Array;er.prototype.ValueBufferType=Float32Array;er.prototype.DefaultInterpolation=Uf;var vd=class vd extends er{constructor(t,n,i){super(t,n,i)}};o(vd,"BooleanKeyframeTrack");var Oi=vd;Oi.prototype.ValueTypeName="bool";Oi.prototype.ValueBufferType=Array;Oi.prototype.DefaultInterpolation=gc;Oi.prototype.InterpolantFactoryMethodLinear=void 0;Oi.prototype.InterpolantFactoryMethodSmooth=void 0;var _d=class _d extends er{};o(_d,"ColorKeyframeTrack");var Vf=_d;Vf.prototype.ValueTypeName="color";var bd=class bd extends er{};o(bd,"NumberKeyframeTrack");var jf=bd;jf.prototype.ValueTypeName="number";var Sd=class Sd extends ho{constructor(t,n,i,r){super(t,n,i,r)}interpolate_(t,n,i,r){let s=this.resultBuffer,a=this.sampleValues,u=this.valueSize,l=(i-n)/(r-n),c=t*u;for(let d=c+u;c!==d;c+=4)di.slerpFlat(s,0,a,c-u,a,c,l);return s}};o(Sd,"QuaternionLinearInterpolant");var Gf=Sd,Id=class Id extends er{InterpolantFactoryMethodLinear(t){return new Gf(this.times,this.values,this.getValueSize(),t)}};o(Id,"QuaternionKeyframeTrack");var xc=Id;xc.prototype.ValueTypeName="quaternion";xc.prototype.InterpolantFactoryMethodSmooth=void 0;var wd=class wd extends er{constructor(t,n,i){super(t,n,i)}};o(wd,"StringKeyframeTrack");var Ui=wd;Ui.prototype.ValueTypeName="string";Ui.prototype.ValueBufferType=Array;Ui.prototype.DefaultInterpolation=gc;Ui.prototype.InterpolantFactoryMethodLinear=void 0;Ui.prototype.InterpolantFactoryMethodSmooth=void 0;var Md=class Md extends er{};o(Md,"VectorKeyframeTrack");var Hf=Md;Hf.prototype.ValueTypeName="vector";var Ed=class Ed{constructor(t,n,i){let r=this,s=!1,a=0,u=0,l,c=[];this.onStart=void 0,this.onLoad=t,this.onProgress=n,this.onError=i,this.itemStart=function(d){u++,s===!1&&r.onStart!==void 0&&r.onStart(d,a,u),s=!0},this.itemEnd=function(d){a++,r.onProgress!==void 0&&r.onProgress(d,a,u),a===u&&(s=!1,r.onLoad!==void 0&&r.onLoad())},this.itemError=function(d){r.onError!==void 0&&r.onError(d)},this.resolveURL=function(d){return l?l(d):d},this.setURLModifier=function(d){return l=d,this},this.addHandler=function(d,h){return c.push(d,h),this},this.removeHandler=function(d){let h=c.indexOf(d);return h!==-1&&c.splice(h,2),this},this.getHandler=function(d){for(let h=0,m=c.length;h<m;h+=2){let y=c[h],v=c[h+1];if(y.global&&(y.lastIndex=0),y.test(d))return v}return null}}};o(Ed,"LoadingManager");var Wf=Ed,AT=new Wf,Td=class Td{constructor(t){this.manager=t!==void 0?t:AT,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(t,n){let i=this;return new Promise(function(r,s){i.load(t,r,n,s)})}parse(){}setCrossOrigin(t){return this.crossOrigin=t,this}setWithCredentials(t){return this.withCredentials=t,this}setPath(t){return this.path=t,this}setResourcePath(t){return this.resourcePath=t,this}setRequestHeader(t){return this.requestHeader=t,this}};o(Td,"Loader");var Zf=Td;Zf.DEFAULT_MATERIAL_NAME="__DEFAULT";var sd="\\[\\]\\.:\\/",PT=new RegExp("["+sd+"]","g"),ad="[^"+sd+"]",RT="[^"+sd.replace("\\.","")+"]",CT=/((?:WC+[\/:])*)/.source.replace("WC",ad),OT=/(WCOD+)?/.source.replace("WCOD",RT),UT=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",ad),FT=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",ad),NT=new RegExp("^"+CT+OT+UT+FT+"$"),kT=["material","materials","bones","map"],Ad=class Ad{constructor(t,n,i){let r=i||at.parseTrackName(n);this._targetGroup=t,this._bindings=t.subscribe_(n,r)}getValue(t,n){this.bind();let i=this._targetGroup.nCachedObjects_,r=this._bindings[i];r!==void 0&&r.getValue(t,n)}setValue(t,n){let i=this._bindings;for(let r=this._targetGroup.nCachedObjects_,s=i.length;r!==s;++r)i[r].setValue(t,n)}bind(){let t=this._bindings;for(let n=this._targetGroup.nCachedObjects_,i=t.length;n!==i;++n)t[n].bind()}unbind(){let t=this._bindings;for(let n=this._targetGroup.nCachedObjects_,i=t.length;n!==i;++n)t[n].unbind()}};o(Ad,"Composite");var Xf=Ad,fi=class fi{constructor(t,n,i){this.path=n,this.parsedPath=i||fi.parseTrackName(n),this.node=fi.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,i){return t&&t.isAnimationObjectGroup?new fi.Composite(t,n,i):new fi(t,n,i)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(PT,"")}static parseTrackName(t){let n=NT.exec(t);if(n===null)throw new Error("PropertyBinding: Cannot parse trackName: "+t);let i={nodeName:n[2],objectName:n[3],objectIndex:n[4],propertyName:n[5],propertyIndex:n[6]},r=i.nodeName&&i.nodeName.lastIndexOf(".");if(r!==void 0&&r!==-1){let s=i.nodeName.substring(r+1);kT.indexOf(s)!==-1&&(i.nodeName=i.nodeName.substring(0,r),i.objectName=s)}if(i.propertyName===null||i.propertyName.length===0)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return i}static findNode(t,n){if(n===void 0||n===""||n==="."||n===-1||n===t.name||n===t.uuid)return t;if(t.skeleton){let i=t.skeleton.getBoneByName(n);if(i!==void 0)return i}if(t.children){let i=o(function(s){for(let a=0;a<s.length;a++){let u=s[a];if(u.name===n||u.uuid===n)return u;let l=i(u.children);if(l)return l}return null},"searchNodeSubtree"),r=i(t.children);if(r)return r}return null}_getValue_unavailable(){}_setValue_unavailable(){}_getValue_direct(t,n){t[n]=this.targetObject[this.propertyName]}_getValue_array(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)t[n++]=i[r]}_getValue_arrayElement(t,n){t[n]=this.resolvedProperty[this.propertyIndex]}_getValue_toArray(t,n){this.resolvedProperty.toArray(t,n)}_setValue_direct(t,n){this.targetObject[this.propertyName]=t[n]}_setValue_direct_setNeedsUpdate(t,n){this.targetObject[this.propertyName]=t[n],this.targetObject.needsUpdate=!0}_setValue_direct_setMatrixWorldNeedsUpdate(t,n){this.targetObject[this.propertyName]=t[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_array(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)i[r]=t[n++]}_setValue_array_setNeedsUpdate(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)i[r]=t[n++];this.targetObject.needsUpdate=!0}_setValue_array_setMatrixWorldNeedsUpdate(t,n){let i=this.resolvedProperty;for(let r=0,s=i.length;r!==s;++r)i[r]=t[n++];this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_arrayElement(t,n){this.resolvedProperty[this.propertyIndex]=t[n]}_setValue_arrayElement_setNeedsUpdate(t,n){this.resolvedProperty[this.propertyIndex]=t[n],this.targetObject.needsUpdate=!0}_setValue_arrayElement_setMatrixWorldNeedsUpdate(t,n){this.resolvedProperty[this.propertyIndex]=t[n],this.targetObject.matrixWorldNeedsUpdate=!0}_setValue_fromArray(t,n){this.resolvedProperty.fromArray(t,n)}_setValue_fromArray_setNeedsUpdate(t,n){this.resolvedProperty.fromArray(t,n),this.targetObject.needsUpdate=!0}_setValue_fromArray_setMatrixWorldNeedsUpdate(t,n){this.resolvedProperty.fromArray(t,n),this.targetObject.matrixWorldNeedsUpdate=!0}_getValue_unbound(t,n){this.bind(),this.getValue(t,n)}_setValue_unbound(t,n){this.bind(),this.setValue(t,n)}bind(){let t=this.node,n=this.parsedPath,i=n.objectName,r=n.propertyName,s=n.propertyIndex;if(t||(t=fi.findNode(this.rootNode,n.nodeName),this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t){console.warn("THREE.PropertyBinding: No target node found for track: "+this.path+".");return}if(i){let c=n.objectIndex;switch(i){case"materials":if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.materials){console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);return}t=t.material.materials;break;case"bones":if(!t.skeleton){console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);return}t=t.skeleton.bones;for(let d=0;d<t.length;d++)if(t[d].name===c){c=d;break}break;case"map":if("map"in t){t=t.map;break}if(!t.material){console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);return}if(!t.material.map){console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.",this);return}t=t.material.map;break;default:if(t[i]===void 0){console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);return}t=t[i]}if(c!==void 0){if(t[c]===void 0){console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);return}t=t[c]}}let a=t[r];if(a===void 0){let c=n.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+c+"."+r+" but it wasn't found.",t);return}let u=this.Versioning.None;this.targetObject=t,t.isMaterial===!0?u=this.Versioning.NeedsUpdate:t.isObject3D===!0&&(u=this.Versioning.MatrixWorldNeedsUpdate);let l=this.BindingType.Direct;if(s!==void 0){if(r==="morphTargetInfluences"){if(!t.geometry){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);return}if(!t.geometry.morphAttributes){console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);return}t.morphTargetDictionary[s]!==void 0&&(s=t.morphTargetDictionary[s])}l=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=s}else a.fromArray!==void 0&&a.toArray!==void 0?(l=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(l=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=r;this.getValue=this.GetterByBindingType[l],this.setValue=this.SetterByBindingTypeAndVersioning[l][u]}unbind(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}};o(fi,"PropertyBinding");var at=fi;at.Composite=Xf;at.prototype.BindingType={Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3};at.prototype.Versioning={None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2};at.prototype.GetterByBindingType=[at.prototype._getValue_direct,at.prototype._getValue_array,at.prototype._getValue_arrayElement,at.prototype._getValue_toArray];at.prototype.SetterByBindingTypeAndVersioning=[[at.prototype._setValue_direct,at.prototype._setValue_direct_setNeedsUpdate,at.prototype._setValue_direct_setMatrixWorldNeedsUpdate],[at.prototype._setValue_array,at.prototype._setValue_array_setNeedsUpdate,at.prototype._setValue_array_setMatrixWorldNeedsUpdate],[at.prototype._setValue_arrayElement,at.prototype._setValue_arrayElement_setNeedsUpdate,at.prototype._setValue_arrayElement_setMatrixWorldNeedsUpdate],[at.prototype._setValue_fromArray,at.prototype._setValue_fromArray_setNeedsUpdate,at.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate]];var h4=new Float32Array(1);typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:qf}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=qf);var DT="#ifdef USE_ALPHAHASH\n if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",LT="#ifdef USE_ALPHAHASH\n const float ALPHA_HASH_SCALE = 0.05;\n float hash2D( vec2 value ) {\n return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n }\n float hash3D( vec3 value ) {\n return hash2D( vec2( hash2D( value.xy ), value.z ) );\n }\n float getAlphaHashThreshold( vec3 position ) {\n float maxDeriv = max(\n length( dFdx( position.xyz ) ),\n length( dFdy( position.xyz ) )\n );\n float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n vec2 pixScales = vec2(\n exp2( floor( log2( pixScale ) ) ),\n exp2( ceil( log2( pixScale ) ) )\n );\n vec2 alpha = vec2(\n hash3D( floor( pixScales.x * position.xyz ) ),\n hash3D( floor( pixScales.y * position.xyz ) )\n );\n float lerpFactor = fract( log2( pixScale ) );\n float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n float a = min( lerpFactor, 1.0 - lerpFactor );\n vec3 cases = vec3(\n x * x / ( 2.0 * a * ( 1.0 - a ) ),\n ( x - 0.5 * a ) / ( 1.0 - a ),\n 1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n );\n float threshold = ( x < ( 1.0 - a ) )\n ? ( ( x < a ) ? cases.x : cases.y )\n : cases.z;\n return clamp( threshold , 1.0e-6, 1.0 );\n }\n#endif",$T="#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",zT="#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",BT="#ifdef USE_ALPHATEST\n #ifdef ALPHA_TO_COVERAGE\n diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n if ( diffuseColor.a < alphaTest ) discard;\n #endif\n#endif",VT="#ifdef USE_ALPHATEST\n uniform float alphaTest;\n#endif",jT="#ifdef USE_AOMAP\n float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n reflectedLight.indirectDiffuse *= ambientOcclusion;\n #if defined( USE_CLEARCOAT ) \n clearcoatSpecularIndirect *= ambientOcclusion;\n #endif\n #if defined( USE_SHEEN ) \n sheenSpecularIndirect *= ambientOcclusion;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD )\n float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n #endif\n#endif",GT="#ifdef USE_AOMAP\n uniform sampler2D aoMap;\n uniform float aoMapIntensity;\n#endif",HT="#ifdef USE_BATCHING\n #if ! defined( GL_ANGLE_multi_draw )\n #define gl_DrawID _gl_DrawID\n uniform int _gl_DrawID;\n #endif\n uniform highp sampler2D batchingTexture;\n uniform highp usampler2D batchingIdTexture;\n mat4 getBatchingMatrix( const in float i ) {\n int size = textureSize( batchingTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n float getIndirectIndex( const in int i ) {\n int size = textureSize( batchingIdTexture, 0 ).x;\n int x = i % size;\n int y = i / size;\n return float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );\n }\n#endif\n#ifdef USE_BATCHING_COLOR\n uniform sampler2D batchingColorTexture;\n vec3 getBatchingColor( const in float i ) {\n int size = textureSize( batchingColorTexture, 0 ).x;\n int j = int( i );\n int x = j % size;\n int y = j / size;\n return texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;\n }\n#endif",WT="#ifdef USE_BATCHING\n mat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );\n#endif",ZT="vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n vPosition = vec3( position );\n#endif",XT="vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n vec3 objectTangent = vec3( tangent.xyz );\n#endif",qT="float G_BlinnPhong_Implicit( ) {\n return 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( specularColor, 1.0, dotVH );\n float G = G_BlinnPhong_Implicit( );\n float D = D_BlinnPhong( shininess, dotNH );\n return F * ( G * D );\n} // validated",KT="#ifdef USE_IRIDESCENCE\n const mat3 XYZ_TO_REC709 = mat3(\n 3.2404542, -0.9692660, 0.0556434,\n -1.5371385, 1.8760108, -0.2040259,\n -0.4985314, 0.0415560, 1.0572252\n );\n vec3 Fresnel0ToIor( vec3 fresnel0 ) {\n vec3 sqrtF0 = sqrt( fresnel0 );\n return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n }\n vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n }\n float IorToFresnel0( float transmittedIor, float incidentIor ) {\n return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n }\n vec3 evalSensitivity( float OPD, vec3 shift ) {\n float phase = 2.0 * PI * OPD * 1.0e-9;\n vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n xyz /= 1.0685e-7;\n vec3 rgb = XYZ_TO_REC709 * xyz;\n return rgb;\n }\n vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n vec3 I;\n float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n float cosTheta2Sq = 1.0 - sinTheta2Sq;\n if ( cosTheta2Sq < 0.0 ) {\n return vec3( 1.0 );\n }\n float cosTheta2 = sqrt( cosTheta2Sq );\n float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n float R12 = F_Schlick( R0, 1.0, cosTheta1 );\n float T121 = 1.0 - R12;\n float phi12 = 0.0;\n if ( iridescenceIOR < outsideIOR ) phi12 = PI;\n float phi21 = PI - phi12;\n vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) ); vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n vec3 phi23 = vec3( 0.0 );\n if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n vec3 phi = vec3( phi21 ) + phi23;\n vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n vec3 r123 = sqrt( R123 );\n vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n vec3 C0 = R12 + Rs;\n I = C0;\n vec3 Cm = Rs - T121;\n for ( int m = 1; m <= 2; ++ m ) {\n Cm *= r123;\n vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n I += Cm * Sm;\n }\n return max( I, vec3( 0.0 ) );\n }\n#endif",YT="#ifdef USE_BUMPMAP\n uniform sampler2D bumpMap;\n uniform float bumpScale;\n vec2 dHdxy_fwd() {\n vec2 dSTdx = dFdx( vBumpMapUv );\n vec2 dSTdy = dFdy( vBumpMapUv );\n float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n return vec2( dBx, dBy );\n }\n vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n vec3 vN = surf_norm;\n vec3 R1 = cross( vSigmaY, vN );\n vec3 R2 = cross( vN, vSigmaX );\n float fDet = dot( vSigmaX, R1 ) * faceDirection;\n vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n return normalize( abs( fDet ) * surf_norm - vGrad );\n }\n#endif",JT="#if NUM_CLIPPING_PLANES > 0\n vec4 plane;\n #ifdef ALPHA_TO_COVERAGE\n float distanceToPlane, distanceGradient;\n float clipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n if ( clipOpacity == 0.0 ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n float unionClipOpacity = 1.0;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n distanceGradient = fwidth( distanceToPlane ) / 2.0;\n unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n }\n #pragma unroll_loop_end\n clipOpacity *= 1.0 - unionClipOpacity;\n #endif\n diffuseColor.a *= clipOpacity;\n if ( diffuseColor.a == 0.0 ) discard;\n #else\n #pragma unroll_loop_start\n for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n }\n #pragma unroll_loop_end\n #if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n bool clipped = true;\n #pragma unroll_loop_start\n for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n plane = clippingPlanes[ i ];\n clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n }\n #pragma unroll_loop_end\n if ( clipped ) discard;\n #endif\n #endif\n#endif",QT="#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",eA="#if NUM_CLIPPING_PLANES > 0\n varying vec3 vClipPosition;\n#endif",tA="#if NUM_CLIPPING_PLANES > 0\n vClipPosition = - mvPosition.xyz;\n#endif",nA="#if defined( USE_COLOR_ALPHA )\n diffuseColor *= vColor;\n#elif defined( USE_COLOR )\n diffuseColor.rgb *= vColor;\n#endif",rA="#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR )\n varying vec3 vColor;\n#endif",iA="#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n varying vec3 vColor;\n#endif",oA="#if defined( USE_COLOR_ALPHA )\n vColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n vColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n vColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n vColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n vec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );\n vColor.xyz *= batchingColor.xyz;\n#endif",sA="#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n return fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n float precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n float precisionSafeLength( vec3 v ) {\n float maxComponent = max3( abs( v ) );\n return length( v / maxComponent ) * maxComponent;\n }\n#endif\nstruct IncidentLight {\n vec3 color;\n vec3 direction;\n bool visible;\n};\nstruct ReflectedLight {\n vec3 directDiffuse;\n vec3 directSpecular;\n vec3 indirectDiffuse;\n vec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n varying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n mat3 tmp;\n tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n return tmp;\n}\nbool isPerspectiveMatrix( mat4 m ) {\n return m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n return vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n return RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",aA="#ifdef ENVMAP_TYPE_CUBE_UV\n #define cubeUV_minMipLevel 4.0\n #define cubeUV_minTileSize 16.0\n float getFace( vec3 direction ) {\n vec3 absDirection = abs( direction );\n float face = - 1.0;\n if ( absDirection.x > absDirection.z ) {\n if ( absDirection.x > absDirection.y )\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if ( absDirection.z > absDirection.y )\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n }\n vec2 getUV( vec3 direction, float face ) {\n vec2 uv;\n if ( face == 0.0 ) {\n uv = vec2( direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 1.0 ) {\n uv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n } else if ( face == 2.0 ) {\n uv = vec2( - direction.x, direction.y ) / abs( direction.z );\n } else if ( face == 3.0 ) {\n uv = vec2( - direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 4.0 ) {\n uv = vec2( - direction.x, direction.z ) / abs( direction.y );\n } else {\n uv = vec2( direction.x, direction.y ) / abs( direction.z );\n }\n return 0.5 * ( uv + 1.0 );\n }\n vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n float face = getFace( direction );\n float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n mipInt = max( mipInt, cubeUV_minMipLevel );\n float faceSize = exp2( mipInt );\n highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n if ( face > 2.0 ) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n uv.x += filterInt * 3.0 * cubeUV_minTileSize;\n uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n uv.x *= CUBEUV_TEXEL_WIDTH;\n uv.y *= CUBEUV_TEXEL_HEIGHT;\n #ifdef texture2DGradEXT\n return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n #else\n return texture2D( envMap, uv ).rgb;\n #endif\n }\n #define cubeUV_r0 1.0\n #define cubeUV_m0 - 2.0\n #define cubeUV_r1 0.8\n #define cubeUV_m1 - 1.0\n #define cubeUV_r4 0.4\n #define cubeUV_m4 2.0\n #define cubeUV_r5 0.305\n #define cubeUV_m5 3.0\n #define cubeUV_r6 0.21\n #define cubeUV_m6 4.0\n float roughnessToMip( float roughness ) {\n float mip = 0.0;\n if ( roughness >= cubeUV_r1 ) {\n mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n } else if ( roughness >= cubeUV_r4 ) {\n mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n } else if ( roughness >= cubeUV_r5 ) {\n mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n } else if ( roughness >= cubeUV_r6 ) {\n mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n } else {\n mip = - 2.0 * log2( 1.16 * roughness ); }\n return mip;\n }\n vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n float mipF = fract( mip );\n float mipInt = floor( mip );\n vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n if ( mipF == 0.0 ) {\n return vec4( color0, 1.0 );\n } else {\n vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n return vec4( mix( color0, color1, mipF ), 1.0 );\n }\n }\n#endif",cA="vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n vec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n mat3 bm = mat3( batchingMatrix );\n transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n transformedNormal = bm * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = bm * transformedTangent;\n #endif\n#endif\n#ifdef USE_INSTANCING\n mat3 im = mat3( instanceMatrix );\n transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n transformedNormal = im * transformedNormal;\n #ifdef USE_TANGENT\n transformedTangent = im * transformedTangent;\n #endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n transformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n #ifdef FLIP_SIDED\n transformedTangent = - transformedTangent;\n #endif\n#endif",uA="#ifdef USE_DISPLACEMENTMAP\n uniform sampler2D displacementMap;\n uniform float displacementScale;\n uniform float displacementBias;\n#endif",lA="#ifdef USE_DISPLACEMENTMAP\n transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",fA="#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n #ifdef DECODE_VIDEO_TEXTURE_EMISSIVE\n emissiveColor = sRGBTransferEOTF( emissiveColor );\n #endif\n totalEmissiveRadiance *= emissiveColor.rgb;\n#endif",dA="#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n#endif",pA="gl_FragColor = linearToOutputTexel( gl_FragColor );",hA="vec4 LinearTransferOETF( in vec4 value ) {\n return value;\n}\nvec4 sRGBTransferEOTF( in vec4 value ) {\n return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",mA="#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vec3 cameraToFrag;\n if ( isOrthographic ) {\n cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToFrag = normalize( vWorldPosition - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vec3 reflectVec = reflect( cameraToFrag, worldNormal );\n #else\n vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n #endif\n #else\n vec3 reflectVec = vReflect;\n #endif\n #ifdef ENVMAP_TYPE_CUBE\n vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n #else\n vec4 envColor = vec4( 0.0 );\n #endif\n #ifdef ENVMAP_BLENDING_MULTIPLY\n outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_MIX )\n outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_ADD )\n outgoingLight += envColor.xyz * specularStrength * reflectivity;\n #endif\n#endif",gA="#ifdef USE_ENVMAP\n uniform float envMapIntensity;\n uniform float flipEnvMap;\n uniform mat3 envMapRotation;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n #else\n uniform sampler2D envMap;\n #endif\n \n#endif",yA="#ifdef USE_ENVMAP\n uniform float reflectivity;\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n varying vec3 vWorldPosition;\n uniform float refractionRatio;\n #else\n varying vec3 vReflect;\n #endif\n#endif",xA="#ifdef USE_ENVMAP\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n \n varying vec3 vWorldPosition;\n #else\n varying vec3 vReflect;\n uniform float refractionRatio;\n #endif\n#endif",vA="#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vWorldPosition = worldPosition.xyz;\n #else\n vec3 cameraToVertex;\n if ( isOrthographic ) {\n cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vReflect = reflect( cameraToVertex, worldNormal );\n #else\n vReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n #endif\n #endif\n#endif",_A="#ifdef USE_FOG\n vFogDepth = - mvPosition.z;\n#endif",bA="#ifdef USE_FOG\n varying float vFogDepth;\n#endif",SA="#ifdef USE_FOG\n #ifdef FOG_EXP2\n float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n #else\n float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n #endif\n gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",IA="#ifdef USE_FOG\n uniform vec3 fogColor;\n varying float vFogDepth;\n #ifdef FOG_EXP2\n uniform float fogDensity;\n #else\n uniform float fogNear;\n uniform float fogFar;\n #endif\n#endif",wA="#ifdef USE_GRADIENTMAP\n uniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n float dotNL = dot( normal, lightDirection );\n vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n #ifdef USE_GRADIENTMAP\n return vec3( texture2D( gradientMap, coord ).r );\n #else\n vec2 fw = fwidth( coord ) * 0.5;\n return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n #endif\n}",MA="#ifdef USE_LIGHTMAP\n uniform sampler2D lightMap;\n uniform float lightMapIntensity;\n#endif",EA="LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",TA="varying vec3 vViewPosition;\nstruct LambertMaterial {\n vec3 diffuseColor;\n float specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Lambert\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert",AA="uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n uniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n float x = normal.x, y = normal.y, z = normal.z;\n vec3 result = shCoefficients[ 0 ] * 0.886227;\n result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n return result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n return irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n vec3 irradiance = ambientLightColor;\n return irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n if ( cutoffDistance > 0.0 ) {\n distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n }\n return distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n return smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n struct DirectionalLight {\n vec3 direction;\n vec3 color;\n };\n uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n light.color = directionalLight.color;\n light.direction = directionalLight.direction;\n light.visible = true;\n }\n#endif\n#if NUM_POINT_LIGHTS > 0\n struct PointLight {\n vec3 position;\n vec3 color;\n float distance;\n float decay;\n };\n uniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = pointLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float lightDistance = length( lVector );\n light.color = pointLight.color;\n light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n }\n#endif\n#if NUM_SPOT_LIGHTS > 0\n struct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 color;\n float distance;\n float decay;\n float coneCos;\n float penumbraCos;\n };\n uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n vec3 lVector = spotLight.position - geometryPosition;\n light.direction = normalize( lVector );\n float angleCos = dot( light.direction, spotLight.direction );\n float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n if ( spotAttenuation > 0.0 ) {\n float lightDistance = length( lVector );\n light.color = spotLight.color * spotAttenuation;\n light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n } else {\n light.color = vec3( 0.0 );\n light.visible = false;\n }\n }\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n struct RectAreaLight {\n vec3 color;\n vec3 position;\n vec3 halfWidth;\n vec3 halfHeight;\n };\n uniform sampler2D ltc_1; uniform sampler2D ltc_2;\n uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n struct HemisphereLight {\n vec3 direction;\n vec3 skyColor;\n vec3 groundColor;\n };\n uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n float dotNL = dot( normal, hemiLight.direction );\n float hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n return irradiance;\n }\n#endif",PA="#ifdef USE_ENVMAP\n vec3 getIBLIrradiance( const in vec3 normal ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n return PI * envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 reflectVec = reflect( - viewDir, normal );\n reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n reflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n return envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n #ifdef USE_ANISOTROPY\n vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n #ifdef ENVMAP_TYPE_CUBE_UV\n vec3 bentNormal = cross( bitangent, viewDir );\n bentNormal = normalize( cross( bentNormal, bitangent ) );\n bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n return getIBLRadiance( viewDir, bentNormal, roughness );\n #else\n return vec3( 0.0 );\n #endif\n }\n #endif\n#endif",RA="ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",CA="varying vec3 vViewPosition;\nstruct ToonMaterial {\n vec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Toon\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon",OA="BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",UA="varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n vec3 diffuseColor;\n vec3 specularColor;\n float specularShininess;\n float specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_BlinnPhong\n#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong",FA="PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n material.ior = ior;\n #ifdef USE_SPECULAR\n float specularIntensityFactor = specularIntensity;\n vec3 specularColorFactor = specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n #endif\n material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n #else\n float specularIntensityFactor = 1.0;\n vec3 specularColorFactor = vec3( 1.0 );\n material.specularF90 = 1.0;\n #endif\n material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n material.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n material.clearcoat = clearcoat;\n material.clearcoatRoughness = clearcoatRoughness;\n material.clearcoatF0 = vec3( 0.04 );\n material.clearcoatF90 = 1.0;\n #ifdef USE_CLEARCOATMAP\n material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n #endif\n #ifdef USE_CLEARCOAT_ROUGHNESSMAP\n material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n #endif\n material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n material.clearcoatRoughness += geometryRoughness;\n material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n material.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n material.iridescence = iridescence;\n material.iridescenceIOR = iridescenceIOR;\n #ifdef USE_IRIDESCENCEMAP\n material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n #endif\n #ifdef USE_IRIDESCENCE_THICKNESSMAP\n material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n #else\n material.iridescenceThickness = iridescenceThicknessMaximum;\n #endif\n#endif\n#ifdef USE_SHEEN\n material.sheenColor = sheenColor;\n #ifdef USE_SHEEN_COLORMAP\n material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n #endif\n material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n #ifdef USE_SHEEN_ROUGHNESSMAP\n material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n #ifdef USE_ANISOTROPYMAP\n mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n #else\n vec2 anisotropyV = anisotropyVector;\n #endif\n material.anisotropy = length( anisotropyV );\n if( material.anisotropy == 0.0 ) {\n anisotropyV = vec2( 1.0, 0.0 );\n } else {\n anisotropyV /= material.anisotropy;\n material.anisotropy = saturate( material.anisotropy );\n }\n material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",NA="struct PhysicalMaterial {\n vec3 diffuseColor;\n float roughness;\n vec3 specularColor;\n float specularF90;\n float dispersion;\n #ifdef USE_CLEARCOAT\n float clearcoat;\n float clearcoatRoughness;\n vec3 clearcoatF0;\n float clearcoatF90;\n #endif\n #ifdef USE_IRIDESCENCE\n float iridescence;\n float iridescenceIOR;\n float iridescenceThickness;\n vec3 iridescenceFresnel;\n vec3 iridescenceF0;\n #endif\n #ifdef USE_SHEEN\n vec3 sheenColor;\n float sheenRoughness;\n #endif\n #ifdef IOR\n float ior;\n #endif\n #ifdef USE_TRANSMISSION\n float transmission;\n float transmissionAlpha;\n float thickness;\n float attenuationDistance;\n vec3 attenuationColor;\n #endif\n #ifdef USE_ANISOTROPY\n float anisotropy;\n float alphaT;\n vec3 anisotropyT;\n vec3 anisotropyB;\n #endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n float a2 = pow2( alpha );\n float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n return 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n float a2 = pow2( alpha );\n float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n return RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n float v = 0.5 / ( gv + gl );\n return saturate(v);\n }\n float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n float a2 = alphaT * alphaB;\n highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n highp float v2 = dot( v, v );\n float w2 = a2 / v2;\n return RECIPROCAL_PI * a2 * pow2 ( w2 );\n }\n#endif\n#ifdef USE_CLEARCOAT\n vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n vec3 f0 = material.clearcoatF0;\n float f90 = material.clearcoatF90;\n float roughness = material.clearcoatRoughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n return F * ( V * D );\n }\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n vec3 f0 = material.specularColor;\n float f90 = material.specularF90;\n float roughness = material.roughness;\n float alpha = pow2( roughness );\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float dotVH = saturate( dot( viewDir, halfDir ) );\n vec3 F = F_Schlick( f0, f90, dotVH );\n #ifdef USE_IRIDESCENCE\n F = mix( F, material.iridescenceFresnel, material.iridescence );\n #endif\n #ifdef USE_ANISOTROPY\n float dotTL = dot( material.anisotropyT, lightDir );\n float dotTV = dot( material.anisotropyT, viewDir );\n float dotTH = dot( material.anisotropyT, halfDir );\n float dotBL = dot( material.anisotropyB, lightDir );\n float dotBV = dot( material.anisotropyB, viewDir );\n float dotBH = dot( material.anisotropyB, halfDir );\n float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n #else\n float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n float D = D_GGX( alpha, dotNH );\n #endif\n return F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n const float LUT_SIZE = 64.0;\n const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n const float LUT_BIAS = 0.5 / LUT_SIZE;\n float dotNV = saturate( dot( N, V ) );\n vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n uv = uv * LUT_SCALE + LUT_BIAS;\n return uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n float l = length( f );\n return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n float x = dot( v1, v2 );\n float y = abs( x );\n float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n float b = 3.4175940 + ( 4.1616724 + y ) * y;\n float v = a / b;\n float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n return cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n vec3 lightNormal = cross( v1, v2 );\n if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n vec3 T1, T2;\n T1 = normalize( V - N * dot( V, N ) );\n T2 = - cross( N, T1 );\n mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n vec3 coords[ 4 ];\n coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n coords[ 0 ] = normalize( coords[ 0 ] );\n coords[ 1 ] = normalize( coords[ 1 ] );\n coords[ 2 ] = normalize( coords[ 2 ] );\n coords[ 3 ] = normalize( coords[ 3 ] );\n vec3 vectorFormFactor = vec3( 0.0 );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n float result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n return vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n float alpha = pow2( roughness );\n float invAlpha = 1.0 / alpha;\n float cos2h = dotNH * dotNH;\n float sin2h = max( 1.0 - cos2h, 0.0078125 );\n return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n vec3 halfDir = normalize( lightDir + viewDir );\n float dotNL = saturate( dot( normal, lightDir ) );\n float dotNV = saturate( dot( normal, viewDir ) );\n float dotNH = saturate( dot( normal, halfDir ) );\n float D = D_Charlie( sheenRoughness, dotNH );\n float V = V_Neubelt( dotNV, dotNL );\n return sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n float r2 = roughness * roughness;\n float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n return saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n return fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n return specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n #ifdef USE_IRIDESCENCE\n vec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n #else\n vec3 Fr = specularColor;\n #endif\n vec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n float Ess = fab.x + fab.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 normal = geometryNormal;\n vec3 viewDir = geometryViewDir;\n vec3 position = geometryPosition;\n vec3 lightPos = rectAreaLight.position;\n vec3 halfWidth = rectAreaLight.halfWidth;\n vec3 halfHeight = rectAreaLight.halfHeight;\n vec3 lightColor = rectAreaLight.color;\n float roughness = material.roughness;\n vec3 rectCoords[ 4 ];\n rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n vec2 uv = LTC_Uv( normal, viewDir, roughness );\n vec4 t1 = texture2D( ltc_1, uv );\n vec4 t2 = texture2D( ltc_2, uv );\n mat3 mInv = mat3(\n vec3( t1.x, 0, t1.y ),\n vec3( 0, 1, 0 ),\n vec3( t1.z, 0, t1.w )\n );\n vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n }\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n #ifdef USE_CLEARCOAT\n float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n vec3 ccIrradiance = dotNLcc * directLight.color;\n clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n #endif\n reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n #ifdef USE_CLEARCOAT\n clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n #endif\n vec3 singleScattering = vec3( 0.0 );\n vec3 multiScattering = vec3( 0.0 );\n vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n #ifdef USE_IRIDESCENCE\n computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n #else\n computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n #endif\n vec3 totalScattering = singleScattering + multiScattering;\n vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n reflectedLight.indirectSpecular += radiance * singleScattering;\n reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct RE_Direct_Physical\n#define RE_Direct_RectArea RE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular RE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",kA="\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n geometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n float dotNVi = saturate( dot( normal, geometryViewDir ) );\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n if ( material.iridescence > 0.0 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometryPosition, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n vec4 spotColor;\n vec3 spotLightCoord;\n bool inSpotLightMap;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometryPosition, directLight );\n #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n #else\n #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #endif\n #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n #endif\n #undef SPOT_LIGHT_MAP_INDEX\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n #if defined( USE_LIGHT_PROBES )\n irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n #endif\n #if ( NUM_HEMI_LIGHTS > 0 )\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n#endif",DA="#if defined( RE_IndirectDiffuse )\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n irradiance += lightMapIrradiance;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n iblIrradiance += getIBLIrradiance( geometryNormal );\n #endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n #ifdef USE_ANISOTROPY\n radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n #else\n radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n #endif\n #ifdef USE_CLEARCOAT\n clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n #endif\n#endif",LA="#if defined( RE_IndirectDiffuse )\n RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",$A="#if defined( USE_LOGDEPTHBUF )\n gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",zA="#if defined( USE_LOGDEPTHBUF )\n uniform float logDepthBufFC;\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",BA="#ifdef USE_LOGDEPTHBUF\n varying float vFragDepth;\n varying float vIsPerspective;\n#endif",VA="#ifdef USE_LOGDEPTHBUF\n vFragDepth = 1.0 + gl_Position.w;\n vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",jA="#ifdef USE_MAP\n vec4 sampledDiffuseColor = texture2D( map, vMapUv );\n #ifdef DECODE_VIDEO_TEXTURE\n sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );\n #endif\n diffuseColor *= sampledDiffuseColor;\n#endif",GA="#ifdef USE_MAP\n uniform sampler2D map;\n#endif",HA="#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n #if defined( USE_POINTS_UV )\n vec2 uv = vUv;\n #else\n vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n #endif\n#endif\n#ifdef USE_MAP\n diffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n diffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",WA="#if defined( USE_POINTS_UV )\n varying vec2 vUv;\n#else\n #if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n uniform mat3 uvTransform;\n #endif\n#endif\n#ifdef USE_MAP\n uniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n uniform sampler2D alphaMap;\n#endif",ZA="float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n metalnessFactor *= texelMetalness.b;\n#endif",XA="#ifdef USE_METALNESSMAP\n uniform sampler2D metalnessMap;\n#endif",qA="#ifdef USE_INSTANCING_MORPH\n float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n morphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n }\n#endif",KA="#if defined( USE_MORPHCOLORS )\n vColor *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n #if defined( USE_COLOR_ALPHA )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n #elif defined( USE_COLOR )\n if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n #endif\n }\n#endif",YA="#ifdef USE_MORPHNORMALS\n objectNormal *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n }\n#endif",JA="#ifdef USE_MORPHTARGETS\n #ifndef USE_INSTANCING_MORPH\n uniform float morphTargetBaseInfluence;\n uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n #endif\n uniform sampler2DArray morphTargetsTexture;\n uniform ivec2 morphTargetsTextureSize;\n vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n int y = texelIndex / morphTargetsTextureSize.x;\n int x = texelIndex - y * morphTargetsTextureSize.x;\n ivec3 morphUV = ivec3( x, y, morphTargetIndex );\n return texelFetch( morphTargetsTexture, morphUV, 0 );\n }\n#endif",QA="#ifdef USE_MORPHTARGETS\n transformed *= morphTargetBaseInfluence;\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n }\n#endif",e1="float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n vec3 fdx = dFdx( vViewPosition );\n vec3 fdy = dFdy( vViewPosition );\n vec3 normal = normalize( cross( fdx, fdy ) );\n#else\n vec3 normal = normalize( vNormal );\n #ifdef DOUBLE_SIDED\n normal *= faceDirection;\n #endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n #ifdef USE_TANGENT\n mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn = getTangentFrame( - vViewPosition, normal,\n #if defined( USE_NORMALMAP )\n vNormalMapUv\n #elif defined( USE_CLEARCOAT_NORMALMAP )\n vClearcoatNormalMapUv\n #else\n vUv\n #endif\n );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn[0] *= faceDirection;\n tbn[1] *= faceDirection;\n #endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n #ifdef USE_TANGENT\n mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n #else\n mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n #endif\n #if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n tbn2[0] *= faceDirection;\n tbn2[1] *= faceDirection;\n #endif\n#endif\nvec3 nonPerturbedNormal = normal;",t1="#ifdef USE_NORMALMAP_OBJECTSPACE\n normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n #ifdef FLIP_SIDED\n normal = - normal;\n #endif\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n normal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n mapN.xy *= normalScale;\n normal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",n1="#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",r1="#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif",i1="#ifndef FLAT_SHADED\n vNormal = normalize( transformedNormal );\n #ifdef USE_TANGENT\n vTangent = normalize( transformedTangent );\n vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n #endif\n#endif",o1="#ifdef USE_NORMALMAP\n uniform sampler2D normalMap;\n uniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n uniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n vec3 q0 = dFdx( eye_pos.xyz );\n vec3 q1 = dFdy( eye_pos.xyz );\n vec2 st0 = dFdx( uv.st );\n vec2 st1 = dFdy( uv.st );\n vec3 N = surf_norm;\n vec3 q1perp = cross( q1, N );\n vec3 q0perp = cross( N, q0 );\n vec3 T = q1perp * st0.x + q0perp * st1.x;\n vec3 B = q1perp * st0.y + q0perp * st1.y;\n float det = max( dot( T, T ), dot( B, B ) );\n float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n return mat3( T * scale, B * scale, N );\n }\n#endif",s1="#ifdef USE_CLEARCOAT\n vec3 clearcoatNormal = nonPerturbedNormal;\n#endif",a1="#ifdef USE_CLEARCOAT_NORMALMAP\n vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n clearcoatMapN.xy *= clearcoatNormalScale;\n clearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",c1="#ifdef USE_CLEARCOATMAP\n uniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform sampler2D clearcoatNormalMap;\n uniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform sampler2D clearcoatRoughnessMap;\n#endif",u1="#ifdef USE_IRIDESCENCEMAP\n uniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform sampler2D iridescenceThicknessMap;\n#endif",l1="#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",f1="vec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;const float ShiftRight8 = 1. / 256.;\nconst float Inv255 = 1. / 255.;\nconst vec4 PackFactors = vec4( 1.0, 256.0, 256.0 * 256.0, 256.0 * 256.0 * 256.0 );\nconst vec2 UnpackFactors2 = vec2( UnpackDownscale, 1.0 / PackFactors.g );\nconst vec3 UnpackFactors3 = vec3( UnpackDownscale / PackFactors.rg, 1.0 / PackFactors.b );\nconst vec4 UnpackFactors4 = vec4( UnpackDownscale / PackFactors.rgb, 1.0 / PackFactors.a );\nvec4 packDepthToRGBA( const in float v ) {\n if( v <= 0.0 )\n return vec4( 0., 0., 0., 0. );\n if( v >= 1.0 )\n return vec4( 1., 1., 1., 1. );\n float vuf;\n float af = modf( v * PackFactors.a, vuf );\n float bf = modf( vuf * ShiftRight8, vuf );\n float gf = modf( vuf * ShiftRight8, vuf );\n return vec4( vuf * Inv255, gf * PackUpscale, bf * PackUpscale, af );\n}\nvec3 packDepthToRGB( const in float v ) {\n if( v <= 0.0 )\n return vec3( 0., 0., 0. );\n if( v >= 1.0 )\n return vec3( 1., 1., 1. );\n float vuf;\n float bf = modf( v * PackFactors.b, vuf );\n float gf = modf( vuf * ShiftRight8, vuf );\n return vec3( vuf * Inv255, gf * PackUpscale, bf );\n}\nvec2 packDepthToRG( const in float v ) {\n if( v <= 0.0 )\n return vec2( 0., 0. );\n if( v >= 1.0 )\n return vec2( 1., 1. );\n float vuf;\n float gf = modf( v * 256., vuf );\n return vec2( vuf * Inv255, gf );\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors4 );\n}\nfloat unpackRGBToDepth( const in vec3 v ) {\n return dot( v, UnpackFactors3 );\n}\nfloat unpackRGToDepth( const in vec2 v ) {\n return v.r * UnpackFactors2.r + v.g * UnpackFactors2.g;\n}\nvec4 pack2HalfToRGBA( const in vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( const in vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * depth - far );\n}",d1="#ifdef PREMULTIPLIED_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif",p1="vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n mvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n mvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",h1="#ifdef DITHERING\n gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",m1="#ifdef DITHERING\n vec3 dithering( vec3 color ) {\n float grid_position = rand( gl_FragCoord.xy );\n vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n return color + dither_shift_RGB;\n }\n#endif",g1="float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n roughnessFactor *= texelRoughness.g;\n#endif",y1="#ifdef USE_ROUGHNESSMAP\n uniform sampler2D roughnessMap;\n#endif",x1="#if NUM_SPOT_LIGHT_COORDS > 0\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n }\n vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n return unpackRGBATo2Half( texture2D( shadow, uv ) );\n }\n float VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n float occlusion = 1.0;\n vec2 distribution = texture2DDistribution( shadow, uv );\n float hard_shadow = step( compare , distribution.x );\n if (hard_shadow != 1.0 ) {\n float distance = compare - distribution.x ;\n float variance = max( 0.00000, distribution.y * distribution.y );\n float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n }\n return occlusion;\n }\n float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n float shadow = 1.0;\n shadowCoord.xyz /= shadowCoord.w;\n shadowCoord.z += shadowBias;\n bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n bool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n if ( frustumTest ) {\n #if defined( SHADOWMAP_TYPE_PCF )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx0 = - texelSize.x * shadowRadius;\n float dy0 = - texelSize.y * shadowRadius;\n float dx1 = + texelSize.x * shadowRadius;\n float dy1 = + texelSize.y * shadowRadius;\n float dx2 = dx0 / 2.0;\n float dy2 = dy0 / 2.0;\n float dx3 = dx1 / 2.0;\n float dy3 = dy1 / 2.0;\n shadow = (\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n ) * ( 1.0 / 17.0 );\n #elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx = texelSize.x;\n float dy = texelSize.y;\n vec2 uv = shadowCoord.xy;\n vec2 f = fract( uv * shadowMapSize + 0.5 );\n uv -= f * texelSize;\n shadow = (\n texture2DCompare( shadowMap, uv, shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n f.x ),\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n f.x ),\n f.y )\n ) * ( 1.0 / 9.0 );\n #elif defined( SHADOWMAP_TYPE_VSM )\n shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n #else\n shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n #endif\n }\n return mix( 1.0, shadow, shadowIntensity );\n }\n vec2 cubeToUV( vec3 v, float texelSizeY ) {\n vec3 absV = abs( v );\n float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n absV *= scaleToCube;\n v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n vec2 planar = v.xy;\n float almostATexel = 1.5 * texelSizeY;\n float almostOne = 1.0 - almostATexel;\n if ( absV.z >= almostOne ) {\n if ( v.z > 0.0 )\n planar.x = 4.0 - v.x;\n } else if ( absV.x >= almostOne ) {\n float signX = sign( v.x );\n planar.x = v.z * signX + 2.0 * signX;\n } else if ( absV.y >= almostOne ) {\n float signY = sign( v.y );\n planar.x = v.x + 2.0 * signY + 2.0;\n planar.y = v.z * signY - 2.0;\n }\n return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n }\n float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n float shadow = 1.0;\n vec3 lightToPosition = shadowCoord.xyz;\n \n float lightToPositionLength = length( lightToPosition );\n if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;\n vec3 bd3D = normalize( lightToPosition );\n vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n shadow = (\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n ) * ( 1.0 / 9.0 );\n #else\n shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n #endif\n }\n return mix( 1.0, shadow, shadowIntensity );\n }\n#endif",v1="#if NUM_SPOT_LIGHT_COORDS > 0\n uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n struct SpotLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowIntensity;\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n#endif",_1="#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n vec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n #if NUM_DIR_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n shadowWorldPosition = worldPosition;\n #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n #endif\n vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n#endif",b1="float getShadowMask() {\n float shadow = 1.0;\n #ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n directionalLight = directionalLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n spotLight = spotLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n pointLight = pointLightShadows[ i ];\n shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #endif\n return shadow;\n}",S1="#ifdef USE_SKINNING\n mat4 boneMatX = getBoneMatrix( skinIndex.x );\n mat4 boneMatY = getBoneMatrix( skinIndex.y );\n mat4 boneMatZ = getBoneMatrix( skinIndex.z );\n mat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",I1="#ifdef USE_SKINNING\n uniform mat4 bindMatrix;\n uniform mat4 bindMatrixInverse;\n uniform highp sampler2D boneTexture;\n mat4 getBoneMatrix( const in float i ) {\n int size = textureSize( boneTexture, 0 ).x;\n int j = int( i ) * 4;\n int x = j % size;\n int y = j / size;\n vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n return mat4( v1, v2, v3, v4 );\n }\n#endif",w1="#ifdef USE_SKINNING\n vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n vec4 skinned = vec4( 0.0 );\n skinned += boneMatX * skinVertex * skinWeight.x;\n skinned += boneMatY * skinVertex * skinWeight.y;\n skinned += boneMatZ * skinVertex * skinWeight.z;\n skinned += boneMatW * skinVertex * skinWeight.w;\n transformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",M1="#ifdef USE_SKINNING\n mat4 skinMatrix = mat4( 0.0 );\n skinMatrix += skinWeight.x * boneMatX;\n skinMatrix += skinWeight.y * boneMatY;\n skinMatrix += skinWeight.z * boneMatZ;\n skinMatrix += skinWeight.w * boneMatW;\n skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n #ifdef USE_TANGENT\n objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n #endif\n#endif",E1="float specularStrength;\n#ifdef USE_SPECULARMAP\n vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n specularStrength = texelSpecular.r;\n#else\n specularStrength = 1.0;\n#endif",T1="#ifdef USE_SPECULARMAP\n uniform sampler2D specularMap;\n#endif",A1="#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",P1="#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n return saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n return saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 CineonToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n color = max( vec3( 0.0 ), color - 0.004 );\n return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n vec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n return a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n const mat3 ACESInputMat = mat3(\n vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),\n vec3( 0.04823, 0.01566, 0.83777 )\n );\n const mat3 ACESOutputMat = mat3(\n vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),\n vec3( -0.07367, -0.00605, 1.07602 )\n );\n color *= toneMappingExposure / 0.6;\n color = ACESInputMat * color;\n color = RRTAndODTFit( color );\n color = ACESOutputMat * color;\n return saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n vec3( 1.6605, - 0.1246, - 0.0182 ),\n vec3( - 0.5876, 1.1329, - 0.1006 ),\n vec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n vec3( 0.6274, 0.0691, 0.0164 ),\n vec3( 0.3293, 0.9195, 0.0880 ),\n vec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n vec3 x2 = x * x;\n vec3 x4 = x2 * x2;\n return + 15.5 * x4 * x2\n - 40.14 * x4 * x\n + 31.96 * x4\n - 6.868 * x2 * x\n + 0.4298 * x2\n + 0.1191 * x\n - 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n const mat3 AgXInsetMatrix = mat3(\n vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n );\n const mat3 AgXOutsetMatrix = mat3(\n vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n );\n const float AgxMinEv = - 12.47393; const float AgxMaxEv = 4.026069;\n color *= toneMappingExposure;\n color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n color = AgXInsetMatrix * color;\n color = max( color, 1e-10 ); color = log2( color );\n color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n color = clamp( color, 0.0, 1.0 );\n color = agxDefaultContrastApprox( color );\n color = AgXOutsetMatrix * color;\n color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n color = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n color = clamp( color, 0.0, 1.0 );\n return color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n const float StartCompression = 0.8 - 0.04;\n const float Desaturation = 0.15;\n color *= toneMappingExposure;\n float x = min( color.r, min( color.g, color.b ) );\n float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n color -= offset;\n float peak = max( color.r, max( color.g, color.b ) );\n if ( peak < StartCompression ) return color;\n float d = 1. - StartCompression;\n float newPeak = 1. - d * d / ( peak + d - StartCompression );\n color *= newPeak / peak;\n float g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n return mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",R1="#ifdef USE_TRANSMISSION\n material.transmission = transmission;\n material.transmissionAlpha = 1.0;\n material.thickness = thickness;\n material.attenuationDistance = attenuationDistance;\n material.attenuationColor = attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n #endif\n #ifdef USE_THICKNESSMAP\n material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n #endif\n vec3 pos = vWorldPosition;\n vec3 v = normalize( cameraPosition - pos );\n vec3 n = inverseTransformDirection( normal, viewMatrix );\n vec4 transmitted = getIBLVolumeRefraction(\n n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n pos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n material.attenuationColor, material.attenuationDistance );\n material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",C1="#ifdef USE_TRANSMISSION\n uniform float transmission;\n uniform float thickness;\n uniform float attenuationDistance;\n uniform vec3 attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n uniform sampler2D transmissionMap;\n #endif\n #ifdef USE_THICKNESSMAP\n uniform sampler2D thicknessMap;\n #endif\n uniform vec2 transmissionSamplerSize;\n uniform sampler2D transmissionSamplerMap;\n uniform mat4 modelMatrix;\n uniform mat4 projectionMatrix;\n varying vec3 vWorldPosition;\n float w0( float a ) {\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n }\n float w1( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n }\n float w2( float a ){\n return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n }\n float w3( float a ) {\n return ( 1.0 / 6.0 ) * ( a * a * a );\n }\n float g0( float a ) {\n return w0( a ) + w1( a );\n }\n float g1( float a ) {\n return w2( a ) + w3( a );\n }\n float h0( float a ) {\n return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n }\n float h1( float a ) {\n return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n }\n vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n uv = uv * texelSize.zw + 0.5;\n vec2 iuv = floor( uv );\n vec2 fuv = fract( uv );\n float g0x = g0( fuv.x );\n float g1x = g1( fuv.x );\n float h0x = h0( fuv.x );\n float h1x = h1( fuv.x );\n float h0y = h0( fuv.y );\n float h1y = h1( fuv.y );\n vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n }\n vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n vec2 fLodSizeInv = 1.0 / fLodSize;\n vec2 cLodSizeInv = 1.0 / cLodSize;\n vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n return mix( fSample, cSample, fract( lod ) );\n }\n vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n vec3 modelScale;\n modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n return normalize( refractionVector ) * thickness * modelScale;\n }\n float applyIorToRoughness( const in float roughness, const in float ior ) {\n return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n }\n vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n }\n vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n if ( isinf( attenuationDistance ) ) {\n return vec3( 1.0 );\n } else {\n vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance;\n }\n }\n vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n const in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n const in vec3 attenuationColor, const in float attenuationDistance ) {\n vec4 transmittedLight;\n vec3 transmittance;\n #ifdef USE_DISPERSION\n float halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n vec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n for ( int i = 0; i < 3; i ++ ) {\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n vec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n transmittedLight[ i ] = transmissionSample[ i ];\n transmittedLight.a += transmissionSample.a;\n transmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n }\n transmittedLight.a /= 3.0;\n #else\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n #endif\n vec3 attenuatedColor = transmittance * transmittedLight.rgb;\n vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n }\n#endif",O1="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",U1="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n varying vec2 vUv;\n#endif\n#ifdef USE_MAP\n uniform mat3 mapTransform;\n varying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n uniform mat3 alphaMapTransform;\n varying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n uniform mat3 lightMapTransform;\n varying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n uniform mat3 aoMapTransform;\n varying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n uniform mat3 bumpMapTransform;\n varying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n uniform mat3 normalMapTransform;\n varying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n uniform mat3 displacementMapTransform;\n varying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n uniform mat3 emissiveMapTransform;\n varying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n uniform mat3 metalnessMapTransform;\n varying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n uniform mat3 roughnessMapTransform;\n varying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n uniform mat3 anisotropyMapTransform;\n varying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n uniform mat3 clearcoatMapTransform;\n varying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform mat3 clearcoatNormalMapTransform;\n varying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform mat3 clearcoatRoughnessMapTransform;\n varying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n uniform mat3 sheenColorMapTransform;\n varying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n uniform mat3 sheenRoughnessMapTransform;\n varying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n uniform mat3 iridescenceMapTransform;\n varying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform mat3 iridescenceThicknessMapTransform;\n varying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n uniform mat3 specularMapTransform;\n varying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n uniform mat3 specularColorMapTransform;\n varying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n uniform mat3 specularIntensityMapTransform;\n varying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n uniform mat3 transmissionMapTransform;\n varying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n uniform mat3 thicknessMapTransform;\n varying vec2 vThicknessMapUv;\n#endif",F1="#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n vUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",N1="#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n vec4 worldPosition = vec4( transformed, 1.0 );\n #ifdef USE_BATCHING\n worldPosition = batchingMatrix * worldPosition;\n #endif\n #ifdef USE_INSTANCING\n worldPosition = instanceMatrix * worldPosition;\n #endif\n worldPosition = modelMatrix * worldPosition;\n#endif",k1="varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n gl_Position = vec4( position.xy, 1.0, 1.0 );\n}",D1="uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n vec4 texColor = texture2D( t2D, vUv );\n #ifdef DECODE_VIDEO_TEXTURE\n texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",L1="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n gl_Position.z = gl_Position.w;\n}",$1="#ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n uniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n #ifdef ENVMAP_TYPE_CUBE\n vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n #elif defined( ENVMAP_TYPE_CUBE_UV )\n vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n #else\n vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n #endif\n texColor.rgb *= backgroundIntensity;\n gl_FragColor = texColor;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",z1="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n gl_Position.z = gl_Position.w;\n}",B1="uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n gl_FragColor = texColor;\n gl_FragColor.a *= opacity;\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",V1="#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <skinbase_vertex>\n #include <morphinstance_vertex>\n #ifdef USE_DISPLACEMENTMAP\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vHighPrecisionZW = gl_Position.zw;\n}",j1="#if DEPTH_PACKING == 3200\n uniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n vec4 diffuseColor = vec4( 1.0 );\n #include <clipping_planes_fragment>\n #if DEPTH_PACKING == 3200\n diffuseColor.a = opacity;\n #endif\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <logdepthbuf_fragment>\n float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n #if DEPTH_PACKING == 3200\n gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n #elif DEPTH_PACKING == 3201\n gl_FragColor = packDepthToRGBA( fragCoordZ );\n #elif DEPTH_PACKING == 3202\n gl_FragColor = vec4( packDepthToRGB( fragCoordZ ), 1.0 );\n #elif DEPTH_PACKING == 3203\n gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );\n #endif\n}",G1="#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <skinbase_vertex>\n #include <morphinstance_vertex>\n #ifdef USE_DISPLACEMENTMAP\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <worldpos_vertex>\n #include <clipping_planes_vertex>\n vWorldPosition = worldPosition.xyz;\n}",H1="#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n vec4 diffuseColor = vec4( 1.0 );\n #include <clipping_planes_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n float dist = length( vWorldPosition - referencePosition );\n dist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n dist = saturate( dist );\n gl_FragColor = packDepthToRGBA( dist );\n}",W1="varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include <begin_vertex>\n #include <project_vertex>\n}",Z1="uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n vec3 direction = normalize( vWorldDirection );\n vec2 sampleUV = equirectUv( direction );\n gl_FragColor = texture2D( tEquirect, sampleUV );\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n}",X1="uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n vLineDistance = scale * lineDistance;\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n}",q1="uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n discard;\n }\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n}",K1="#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #endif\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <fog_vertex>\n}",Y1="uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n varying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n #else\n reflectedLight.indirectDiffuse += vec3( 1.0 );\n #endif\n #include <aomap_fragment>\n reflectedLight.indirectDiffuse *= diffuseColor.rgb;\n vec3 outgoingLight = reflectedLight.indirectDiffuse;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",J1="#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",Q1="#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_lambert_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",eP="#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n vViewPosition = - mvPosition.xyz;\n}",tP="#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n vec3 viewDir = normalize( vViewPosition );\n vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n vec3 y = cross( viewDir, x );\n vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n #ifdef USE_MATCAP\n vec4 matcapColor = texture2D( matcap, uv );\n #else\n vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n #endif\n vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",nP="#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n vViewPosition = - mvPosition.xyz;\n#endif\n}",rP="#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n varying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n #include <clipping_planes_fragment>\n #include <logdepthbuf_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n #ifdef OPAQUE\n gl_FragColor.a = 1.0;\n #endif\n}",iP="#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <envmap_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",oP="#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <specularmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_phong_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n #include <envmap_fragment>\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",sP="#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n varying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n#ifdef USE_TRANSMISSION\n vWorldPosition = worldPosition.xyz;\n#endif\n}",aP="#define STANDARD\n#ifdef PHYSICAL\n #define IOR\n #define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n uniform float ior;\n#endif\n#ifdef USE_SPECULAR\n uniform float specularIntensity;\n uniform vec3 specularColor;\n #ifdef USE_SPECULAR_COLORMAP\n uniform sampler2D specularColorMap;\n #endif\n #ifdef USE_SPECULAR_INTENSITYMAP\n uniform sampler2D specularIntensityMap;\n #endif\n#endif\n#ifdef USE_CLEARCOAT\n uniform float clearcoat;\n uniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n uniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n uniform float iridescence;\n uniform float iridescenceIOR;\n uniform float iridescenceThicknessMinimum;\n uniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n uniform vec3 sheenColor;\n uniform float sheenRoughness;\n #ifdef USE_SHEEN_COLORMAP\n uniform sampler2D sheenColorMap;\n #endif\n #ifdef USE_SHEEN_ROUGHNESSMAP\n uniform sampler2D sheenRoughnessMap;\n #endif\n#endif\n#ifdef USE_ANISOTROPY\n uniform vec2 anisotropyVector;\n #ifdef USE_ANISOTROPYMAP\n uniform sampler2D anisotropyMap;\n #endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <roughnessmap_fragment>\n #include <metalnessmap_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <clearcoat_normal_fragment_begin>\n #include <clearcoat_normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_physical_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n #include <transmission_fragment>\n vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n #ifdef USE_SHEEN\n float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n #endif\n #ifdef USE_CLEARCOAT\n float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n #endif\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",cP="#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <normal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <displacementmap_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n vViewPosition = - mvPosition.xyz;\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",uP="#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <color_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n #include <normal_fragment_begin>\n #include <normal_fragment_maps>\n #include <emissivemap_fragment>\n #include <lights_toon_fragment>\n #include <lights_fragment_begin>\n #include <lights_fragment_maps>\n #include <lights_fragment_end>\n #include <aomap_fragment>\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n #include <dithering_fragment>\n}",lP="uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n varying vec2 vUv;\n uniform mat3 uvTransform;\n#endif\nvoid main() {\n #ifdef USE_POINTS_UV\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n #endif\n #include <color_vertex>\n #include <morphinstance_vertex>\n #include <morphcolor_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <project_vertex>\n gl_PointSize = size;\n #ifdef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n #endif\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <worldpos_vertex>\n #include <fog_vertex>\n}",fP="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_particle_fragment>\n #include <color_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n}",dP="#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n #include <batching_vertex>\n #include <beginnormal_vertex>\n #include <morphinstance_vertex>\n #include <morphnormal_vertex>\n #include <skinbase_vertex>\n #include <skinnormal_vertex>\n #include <defaultnormal_vertex>\n #include <begin_vertex>\n #include <morphtarget_vertex>\n #include <skinning_vertex>\n #include <project_vertex>\n #include <logdepthbuf_vertex>\n #include <worldpos_vertex>\n #include <shadowmap_vertex>\n #include <fog_vertex>\n}",pP="uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n #include <logdepthbuf_fragment>\n gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}",hP="uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n #include <uv_vertex>\n vec4 mvPosition = modelViewMatrix[ 3 ];\n vec2 scale = vec2( length( modelMatrix[ 0 ].xyz ), length( modelMatrix[ 1 ].xyz ) );\n #ifndef USE_SIZEATTENUATION\n bool isPerspective = isPerspectiveMatrix( projectionMatrix );\n if ( isPerspective ) scale *= - mvPosition.z;\n #endif\n vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n vec2 rotatedPosition;\n rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n mvPosition.xy += rotatedPosition;\n gl_Position = projectionMatrix * mvPosition;\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n}",mP="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include <clipping_planes_fragment>\n vec3 outgoingLight = vec3( 0.0 );\n #include <logdepthbuf_fragment>\n #include <map_fragment>\n #include <alphamap_fragment>\n #include <alphatest_fragment>\n #include <alphahash_fragment>\n outgoingLight = diffuseColor.rgb;\n #include <opaque_fragment>\n #include <tonemapping_fragment>\n #include <colorspace_fragment>\n #include <fog_fragment>\n}",ve={alphahash_fragment:DT,alphahash_pars_fragment:LT,alphamap_fragment:$T,alphamap_pars_fragment:zT,alphatest_fragment:BT,alphatest_pars_fragment:VT,aomap_fragment:jT,aomap_pars_fragment:GT,batching_pars_vertex:HT,batching_vertex:WT,begin_vertex:ZT,beginnormal_vertex:XT,bsdfs:qT,iridescence_fragment:KT,bumpmap_pars_fragment:YT,clipping_planes_fragment:JT,clipping_planes_pars_fragment:QT,clipping_planes_pars_vertex:eA,clipping_planes_vertex:tA,color_fragment:nA,color_pars_fragment:rA,color_pars_vertex:iA,color_vertex:oA,common:sA,cube_uv_reflection_fragment:aA,defaultnormal_vertex:cA,displacementmap_pars_vertex:uA,displacementmap_vertex:lA,emissivemap_fragment:fA,emissivemap_pars_fragment:dA,colorspace_fragment:pA,colorspace_pars_fragment:hA,envmap_fragment:mA,envmap_common_pars_fragment:gA,envmap_pars_fragment:yA,envmap_pars_vertex:xA,envmap_physical_pars_fragment:PA,envmap_vertex:vA,fog_vertex:_A,fog_pars_vertex:bA,fog_fragment:SA,fog_pars_fragment:IA,gradientmap_pars_fragment:wA,lightmap_pars_fragment:MA,lights_lambert_fragment:EA,lights_lambert_pars_fragment:TA,lights_pars_begin:AA,lights_toon_fragment:RA,lights_toon_pars_fragment:CA,lights_phong_fragment:OA,lights_phong_pars_fragment:UA,lights_physical_fragment:FA,lights_physical_pars_fragment:NA,lights_fragment_begin:kA,lights_fragment_maps:DA,lights_fragment_end:LA,logdepthbuf_fragment:$A,logdepthbuf_pars_fragment:zA,logdepthbuf_pars_vertex:BA,logdepthbuf_vertex:VA,map_fragment:jA,map_pars_fragment:GA,map_particle_fragment:HA,map_particle_pars_fragment:WA,metalnessmap_fragment:ZA,metalnessmap_pars_fragment:XA,morphinstance_vertex:qA,morphcolor_vertex:KA,morphnormal_vertex:YA,morphtarget_pars_vertex:JA,morphtarget_vertex:QA,normal_fragment_begin:e1,normal_fragment_maps:t1,normal_pars_fragment:n1,normal_pars_vertex:r1,normal_vertex:i1,normalmap_pars_fragment:o1,clearcoat_normal_fragment_begin:s1,clearcoat_normal_fragment_maps:a1,clearcoat_pars_fragment:c1,iridescence_pars_fragment:u1,opaque_fragment:l1,packing:f1,premultiplied_alpha_fragment:d1,project_vertex:p1,dithering_fragment:h1,dithering_pars_fragment:m1,roughnessmap_fragment:g1,roughnessmap_pars_fragment:y1,shadowmap_pars_fragment:x1,shadowmap_pars_vertex:v1,shadowmap_vertex:_1,shadowmask_pars_fragment:b1,skinbase_vertex:S1,skinning_pars_vertex:I1,skinning_vertex:w1,skinnormal_vertex:M1,specularmap_fragment:E1,specularmap_pars_fragment:T1,tonemapping_fragment:A1,tonemapping_pars_fragment:P1,transmission_fragment:R1,transmission_pars_fragment:C1,uv_pars_fragment:O1,uv_pars_vertex:U1,uv_vertex:F1,worldpos_vertex:N1,background_vert:k1,background_frag:D1,backgroundCube_vert:L1,backgroundCube_frag:$1,cube_vert:z1,cube_frag:B1,depth_vert:V1,depth_frag:j1,distanceRGBA_vert:G1,distanceRGBA_frag:H1,equirect_vert:W1,equirect_frag:Z1,linedashed_vert:X1,linedashed_frag:q1,meshbasic_vert:K1,meshbasic_frag:Y1,meshlambert_vert:J1,meshlambert_frag:Q1,meshmatcap_vert:eP,meshmatcap_frag:tP,meshnormal_vert:nP,meshnormal_frag:rP,meshphong_vert:iP,meshphong_frag:oP,meshphysical_vert:sP,meshphysical_frag:aP,meshtoon_vert:cP,meshtoon_frag:uP,points_vert:lP,points_frag:fP,shadow_vert:dP,shadow_frag:pP,sprite_vert:hP,sprite_frag:mP},K={common:{diffuse:{value:new _t(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new me},alphaMap:{value:null},alphaMapTransform:{value:new me},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new me}},envmap:{envMap:{value:null},envMapRotation:{value:new me},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new me}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new me}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new me},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new me},normalScale:{value:new Qn(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new me},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new me}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new me}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new me}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new _t(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new _t(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new me},alphaTest:{value:0},uvTransform:{value:new me}},sprite:{diffuse:{value:new _t(16777215)},opacity:{value:1},center:{value:new Qn(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new me},alphaMap:{value:null},alphaMapTransform:{value:new me},alphaTest:{value:0}}},j_={basic:{uniforms:tn([K.common,K.specularmap,K.envmap,K.aomap,K.lightmap,K.fog]),vertexShader:ve.meshbasic_vert,fragmentShader:ve.meshbasic_frag},lambert:{uniforms:tn([K.common,K.specularmap,K.envmap,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.fog,K.lights,{emissive:{value:new _t(0)}}]),vertexShader:ve.meshlambert_vert,fragmentShader:ve.meshlambert_frag},phong:{uniforms:tn([K.common,K.specularmap,K.envmap,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.fog,K.lights,{emissive:{value:new _t(0)},specular:{value:new _t(1118481)},shininess:{value:30}}]),vertexShader:ve.meshphong_vert,fragmentShader:ve.meshphong_frag},standard:{uniforms:tn([K.common,K.envmap,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.roughnessmap,K.metalnessmap,K.fog,K.lights,{emissive:{value:new _t(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:ve.meshphysical_vert,fragmentShader:ve.meshphysical_frag},toon:{uniforms:tn([K.common,K.aomap,K.lightmap,K.emissivemap,K.bumpmap,K.normalmap,K.displacementmap,K.gradientmap,K.fog,K.lights,{emissive:{value:new _t(0)}}]),vertexShader:ve.meshtoon_vert,fragmentShader:ve.meshtoon_frag},matcap:{uniforms:tn([K.common,K.bumpmap,K.normalmap,K.displacementmap,K.fog,{matcap:{value:null}}]),vertexShader:ve.meshmatcap_vert,fragmentShader:ve.meshmatcap_frag},points:{uniforms:tn([K.points,K.fog]),vertexShader:ve.points_vert,fragmentShader:ve.points_frag},dashed:{uniforms:tn([K.common,K.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:ve.linedashed_vert,fragmentShader:ve.linedashed_frag},depth:{uniforms:tn([K.common,K.displacementmap]),vertexShader:ve.depth_vert,fragmentShader:ve.depth_frag},normal:{uniforms:tn([K.common,K.bumpmap,K.normalmap,K.displacementmap,{opacity:{value:1}}]),vertexShader:ve.meshnormal_vert,fragmentShader:ve.meshnormal_frag},sprite:{uniforms:tn([K.sprite,K.fog]),vertexShader:ve.sprite_vert,fragmentShader:ve.sprite_frag},background:{uniforms:{uvTransform:{value:new me},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:ve.background_vert,fragmentShader:ve.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new me}},vertexShader:ve.backgroundCube_vert,fragmentShader:ve.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:ve.cube_vert,fragmentShader:ve.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:ve.equirect_vert,fragmentShader:ve.equirect_frag},distanceRGBA:{uniforms:tn([K.common,K.displacementmap,{referencePosition:{value:new ke},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:ve.distanceRGBA_vert,fragmentShader:ve.distanceRGBA_frag},shadow:{uniforms:tn([K.lights,K.fog,{color:{value:new _t(0)},opacity:{value:1}}]),vertexShader:ve.shadow_vert,fragmentShader:ve.shadow_frag}};j_.physical={uniforms:tn([j_.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new me},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new me},clearcoatNormalScale:{value:new Qn(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new me},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new me},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new me},sheen:{value:0},sheenColor:{value:new _t(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new me},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new me},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new me},transmissionSamplerSize:{value:new Qn},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new me},attenuationDistance:{value:0},attenuationColor:{value:new _t(0)},specularColor:{value:new _t(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new me},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new me},anisotropyVector:{value:new Qn},anisotropyMap:{value:null},anisotropyMapTransform:{value:new me}}]),vertexShader:ve.meshphysical_vert,fragmentShader:ve.meshphysical_frag};var Fi=(1+Math.sqrt(5))/2,mo=1/Fi,fj=[new ke(-Fi,mo,0),new ke(Fi,mo,0),new ke(-mo,0,Fi),new ke(mo,0,Fi),new ke(0,Fi,-mo),new ke(0,Fi,mo),new ke(-1,1,-1),new ke(1,1,-1),new ke(-1,1,1),new ke(1,1,1)];var dj=new Float32Array(16),pj=new Float32Array(9),hj=new Float32Array(4);var mj={[Kf]:Yf,[Jf]:nd,[ed]:rd,[Qf]:td,[Yf]:Kf,[nd]:Jf,[rd]:ed,[td]:Qf};f();f();f();f();f();f();f();f();var tG=new Set(Object.keys(_t.NAMES));f();f();var pr,yo,Ni,Fs,go=class go{constructor(t,n){It(this,Ni);Xe(this,"__type",go.__type);It(this,pr);It(this,yo);Xe(this,"id");Xe(this,"type");Ot(this,pr,t),Ot(this,yo,n),this.id="ev_".concat(t.id),this.type=t.type}static is(t){return t!=null&&typeof t=="object"&&"__type"in t&&t.__type===go.__type}get name(){var t;return(t=ci(this,Ni,Fs).call(this,"name"))!=null?t:""}get startDate(){return new Date(W(this,pr).startDate)}get endDate(){return new Date(W(this,pr).endDate)}get externalId(){return W(this,pr).externalId}get description(){return ci(this,Ni,Fs).call(this,"description")}get location(){let t=W(this,pr).location,n=t!=null&&t.startsWith("el_")?t:"el_".concat(t);return W(this,yo).getById("enterprise-location",n)}get image(){let t=ci(this,Ni,Fs).call(this,"image");if(t!=null)return x({url:t.original},t)}get video(){let t=ci(this,Ni,Fs).call(this,"video");if(t!=null)return{url:t.original,thumbnail:t.thumbnail,width:t.width,height:t.height}}};pr=new WeakMap,yo=new WeakMap,Ni=new WeakSet,Fs=o(function(t){var n,i,r,s,a;return(a=(s=(r=W(this,pr)._locale)==null?void 0:r[(i=(n=W(this,yo).currentLanguage)==null?void 0:n.code)!=null?i:"en"])==null?void 0:s[t])!=null?a:W(this,pr)[t]},"#getLocalizedResource"),o(go,"EventMetaData"),Xe(go,"__type","event");var Ic=go;f();f();var Fe={};un(Fe,{$brand:()=>wc,$input:()=>zm,$output:()=>$m,NEVER:()=>Pd,TimePrecision:()=>Gm,ZodAny:()=>Pb,ZodArray:()=>Ub,ZodBase64:()=>uy,ZodBase64URL:()=>ly,ZodBigInt:()=>Sa,ZodBigIntFormat:()=>py,ZodBoolean:()=>ba,ZodCIDRv4:()=>ay,ZodCIDRv6:()=>cy,ZodCUID:()=>ey,ZodCUID2:()=>ty,ZodCatch:()=>Jb,ZodCodec:()=>Iy,ZodCustom:()=>Au,ZodCustomStringFormat:()=>va,ZodDate:()=>Mu,ZodDefault:()=>Wb,ZodDiscriminatedUnion:()=>Fb,ZodE164:()=>fy,ZodEmail:()=>Yg,ZodEmoji:()=>Jg,ZodEnum:()=>ya,ZodError:()=>GC,ZodFile:()=>jb,ZodFirstPartyTypeKind:()=>wy,ZodFunction:()=>a0,ZodGUID:()=>_u,ZodIPv4:()=>oy,ZodIPv6:()=>sy,ZodISODate:()=>yu,ZodISODateTime:()=>gu,ZodISODuration:()=>vu,ZodISOTime:()=>xu,ZodIntersection:()=>Nb,ZodIssueCode:()=>tU,ZodJWT:()=>dy,ZodKSUID:()=>iy,ZodLazy:()=>i0,ZodLiteral:()=>Vb,ZodMap:()=>zb,ZodNaN:()=>e0,ZodNanoID:()=>Qg,ZodNever:()=>Cb,ZodNonOptional:()=>by,ZodNull:()=>Tb,ZodNullable:()=>Hb,ZodNumber:()=>_a,ZodNumberFormat:()=>Oo,ZodObject:()=>Tu,ZodOptional:()=>_y,ZodPipe:()=>Sy,ZodPrefault:()=>Xb,ZodPromise:()=>s0,ZodReadonly:()=>t0,ZodRealError:()=>dn,ZodRecord:()=>yy,ZodSet:()=>Bb,ZodString:()=>xa,ZodStringFormat:()=>Je,ZodSuccess:()=>Yb,ZodSymbol:()=>Mb,ZodTemplateLiteral:()=>r0,ZodTransform:()=>Gb,ZodTuple:()=>Db,ZodType:()=>de,ZodULID:()=>ny,ZodURL:()=>wu,ZodUUID:()=>zr,ZodUndefined:()=>Eb,ZodUnion:()=>my,ZodUnknown:()=>Rb,ZodVoid:()=>Ob,ZodXID:()=>ry,_ZodString:()=>Kg,_default:()=>Zb,_function:()=>XO,any:()=>AO,array:()=>Eu,base64:()=>fO,base64url:()=>dO,bigint:()=>IO,boolean:()=>wb,catch:()=>Qb,check:()=>qO,cidrv4:()=>uO,cidrv6:()=>lO,clone:()=>nn,codec:()=>HO,coerce:()=>Pu,config:()=>xt,core:()=>gr,cuid:()=>nO,cuid2:()=>rO,custom:()=>KO,date:()=>RO,decode:()=>Bg,decodeAsync:()=>jg,discriminatedUnion:()=>NO,e164:()=>pO,email:()=>WC,emoji:()=>eO,encode:()=>zg,encodeAsync:()=>Vg,endsWith:()=>ua,enum:()=>xy,file:()=>BO,flattenError:()=>js,float32:()=>vO,float64:()=>_O,formatError:()=>Gs,function:()=>XO,getErrorMap:()=>rU,globalRegistry:()=>mr,gt:()=>Lr,gte:()=>fn,guid:()=>ZC,hash:()=>xO,hex:()=>yO,hostname:()=>gO,httpUrl:()=>QC,includes:()=>aa,instanceof:()=>YO,int:()=>qg,int32:()=>bO,int64:()=>wO,intersection:()=>kb,ipv4:()=>aO,ipv6:()=>cO,iso:()=>ga,json:()=>QO,jwt:()=>hO,keyof:()=>CO,ksuid:()=>sO,lazy:()=>o0,length:()=>Po,literal:()=>zO,locales:()=>$i,looseObject:()=>FO,lowercase:()=>oa,lt:()=>Dr,lte:()=>Nn,map:()=>DO,maxLength:()=>Ao,maxSize:()=>To,mime:()=>la,minLength:()=>vi,minSize:()=>Bi,multipleOf:()=>zi,nan:()=>GO,nanoid:()=>tO,nativeEnum:()=>$O,negative:()=>vg,never:()=>hy,nonnegative:()=>bg,nonoptional:()=>Kb,nonpositive:()=>_g,normalize:()=>fa,null:()=>Ab,nullable:()=>Su,nullish:()=>VO,number:()=>Ib,object:()=>OO,optional:()=>bu,overwrite:()=>$r,parse:()=>kg,parseAsync:()=>Dg,partialRecord:()=>kO,pipe:()=>Iu,positive:()=>xg,prefault:()=>qb,preprocess:()=>eU,prettifyError:()=>jd,promise:()=>ZO,property:()=>Sg,readonly:()=>n0,record:()=>$b,refine:()=>c0,regex:()=>ia,regexes:()=>bn,registry:()=>qc,safeDecode:()=>Hg,safeDecodeAsync:()=>Zg,safeEncode:()=>Gg,safeEncodeAsync:()=>Wg,safeParse:()=>Lg,safeParseAsync:()=>$g,set:()=>LO,setErrorMap:()=>nU,size:()=>ra,startsWith:()=>ca,strictObject:()=>UO,string:()=>Xg,stringFormat:()=>mO,stringbool:()=>JO,success:()=>jO,superRefine:()=>u0,symbol:()=>EO,templateLiteral:()=>WO,toJSONSchema:()=>Pg,toLowerCase:()=>pa,toUpperCase:()=>ha,transform:()=>vy,treeifyError:()=>Vd,trim:()=>da,tuple:()=>Lb,uint32:()=>SO,uint64:()=>MO,ulid:()=>iO,undefined:()=>TO,union:()=>gy,unknown:()=>Co,uppercase:()=>sa,url:()=>JC,util:()=>z,uuid:()=>XC,uuidv4:()=>qC,uuidv6:()=>KC,uuidv7:()=>YC,void:()=>PO,xid:()=>oO});f();var gr={};un(gr,{$ZodAny:()=>xh,$ZodArray:()=>Ih,$ZodAsyncError:()=>tr,$ZodBase64:()=>ch,$ZodBase64URL:()=>uh,$ZodBigInt:()=>Wc,$ZodBigIntFormat:()=>hh,$ZodBoolean:()=>Xs,$ZodCIDRv4:()=>oh,$ZodCIDRv6:()=>sh,$ZodCUID:()=>Xp,$ZodCUID2:()=>qp,$ZodCatch:()=>zh,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>Ip,$ZodCheckEndsWith:()=>Np,$ZodCheckGreaterThan:()=>$c,$ZodCheckIncludes:()=>Up,$ZodCheckLengthEquals:()=>Pp,$ZodCheckLessThan:()=>Lc,$ZodCheckLowerCase:()=>Cp,$ZodCheckMaxLength:()=>Tp,$ZodCheckMaxSize:()=>wp,$ZodCheckMimeType:()=>Dp,$ZodCheckMinLength:()=>Ap,$ZodCheckMinSize:()=>Mp,$ZodCheckMultipleOf:()=>bp,$ZodCheckNumberFormat:()=>Sp,$ZodCheckOverwrite:()=>Lp,$ZodCheckProperty:()=>kp,$ZodCheckRegex:()=>Rp,$ZodCheckSizeEquals:()=>Ep,$ZodCheckStartsWith:()=>Fp,$ZodCheckStringFormat:()=>Mo,$ZodCheckUpperCase:()=>Op,$ZodCodec:()=>qs,$ZodCustom:()=>Xh,$ZodCustomStringFormat:()=>dh,$ZodDate:()=>Sh,$ZodDefault:()=>kh,$ZodDiscriminatedUnion:()=>Mh,$ZodE164:()=>lh,$ZodEmail:()=>Gp,$ZodEmoji:()=>Wp,$ZodEncodeError:()=>pi,$ZodEnum:()=>Rh,$ZodError:()=>Vs,$ZodFile:()=>Oh,$ZodFunction:()=>Hh,$ZodGUID:()=>Vp,$ZodIPv4:()=>rh,$ZodIPv6:()=>ih,$ZodISODate:()=>eh,$ZodISODateTime:()=>Qp,$ZodISODuration:()=>nh,$ZodISOTime:()=>th,$ZodIntersection:()=>Eh,$ZodJWT:()=>fh,$ZodKSUID:()=>Jp,$ZodLazy:()=>Zh,$ZodLiteral:()=>Ch,$ZodMap:()=>Ah,$ZodNaN:()=>Bh,$ZodNanoID:()=>Zp,$ZodNever:()=>_h,$ZodNonOptional:()=>Lh,$ZodNull:()=>yh,$ZodNullable:()=>Nh,$ZodNumber:()=>Hc,$ZodNumberFormat:()=>ph,$ZodObject:()=>gb,$ZodObjectJIT:()=>wh,$ZodOptional:()=>Fh,$ZodPipe:()=>Vh,$ZodPrefault:()=>Dh,$ZodPromise:()=>Wh,$ZodReadonly:()=>jh,$ZodRealError:()=>ln,$ZodRecord:()=>Th,$ZodRegistry:()=>Eo,$ZodSet:()=>Ph,$ZodString:()=>Li,$ZodStringFormat:()=>qe,$ZodSuccess:()=>$h,$ZodSymbol:()=>mh,$ZodTemplateLiteral:()=>Gh,$ZodTransform:()=>Uh,$ZodTuple:()=>Xc,$ZodType:()=>se,$ZodULID:()=>Kp,$ZodURL:()=>Hp,$ZodUUID:()=>jp,$ZodUndefined:()=>gh,$ZodUnion:()=>Zc,$ZodUnknown:()=>vh,$ZodVoid:()=>bh,$ZodXID:()=>Yp,$brand:()=>wc,$constructor:()=>M,$input:()=>zm,$output:()=>$m,Doc:()=>Zs,JSONSchema:()=>Cg,JSONSchemaGenerator:()=>ma,NEVER:()=>Pd,TimePrecision:()=>Gm,_any:()=>fg,_array:()=>Ig,_base64:()=>du,_base64url:()=>pu,_bigint:()=>ig,_boolean:()=>ng,_catch:()=>DC,_check:()=>_b,_cidrv4:()=>lu,_cidrv6:()=>fu,_coercedBigint:()=>og,_coercedBoolean:()=>rg,_coercedDate:()=>gg,_coercedNumber:()=>Km,_coercedString:()=>jm,_cuid:()=>ru,_cuid2:()=>iu,_custom:()=>Mg,_date:()=>mg,_decode:()=>Rc,_decodeAsync:()=>Oc,_default:()=>FC,_discriminatedUnion:()=>SC,_e164:()=>hu,_email:()=>Kc,_emoji:()=>tu,_encode:()=>Pc,_encodeAsync:()=>Cc,_endsWith:()=>ua,_enum:()=>AC,_file:()=>wg,_float32:()=>Jm,_float64:()=>Qm,_gt:()=>Lr,_gte:()=>fn,_guid:()=>ta,_includes:()=>aa,_int:()=>Ym,_int32:()=>eg,_int64:()=>sg,_intersection:()=>IC,_ipv4:()=>cu,_ipv6:()=>uu,_isoDate:()=>Wm,_isoDateTime:()=>Hm,_isoDuration:()=>Xm,_isoTime:()=>Zm,_jwt:()=>mu,_ksuid:()=>au,_lazy:()=>BC,_length:()=>Po,_literal:()=>RC,_lowercase:()=>oa,_lt:()=>Dr,_lte:()=>Nn,_map:()=>EC,_max:()=>Nn,_maxLength:()=>Ao,_maxSize:()=>To,_mime:()=>la,_min:()=>fn,_minLength:()=>vi,_minSize:()=>Bi,_multipleOf:()=>zi,_nan:()=>yg,_nanoid:()=>nu,_nativeEnum:()=>PC,_negative:()=>vg,_never:()=>pg,_nonnegative:()=>bg,_nonoptional:()=>NC,_nonpositive:()=>_g,_normalize:()=>fa,_null:()=>lg,_nullable:()=>UC,_number:()=>qm,_optional:()=>OC,_overwrite:()=>$r,_parse:()=>bo,_parseAsync:()=>So,_pipe:()=>LC,_positive:()=>xg,_promise:()=>VC,_property:()=>Sg,_readonly:()=>$C,_record:()=>MC,_refine:()=>Eg,_regex:()=>ia,_safeDecode:()=>Fc,_safeDecodeAsync:()=>kc,_safeEncode:()=>Uc,_safeEncodeAsync:()=>Nc,_safeParse:()=>Io,_safeParseAsync:()=>wo,_set:()=>TC,_size:()=>ra,_startsWith:()=>ca,_string:()=>Vm,_stringFormat:()=>Ro,_stringbool:()=>Ag,_success:()=>kC,_superRefine:()=>Tg,_symbol:()=>cg,_templateLiteral:()=>zC,_toLowerCase:()=>pa,_toUpperCase:()=>ha,_transform:()=>CC,_trim:()=>da,_tuple:()=>wC,_uint32:()=>tg,_uint64:()=>ag,_ulid:()=>ou,_undefined:()=>ug,_union:()=>bC,_unknown:()=>dg,_uppercase:()=>sa,_url:()=>na,_uuid:()=>Yc,_uuidv4:()=>Jc,_uuidv6:()=>Qc,_uuidv7:()=>eu,_void:()=>hg,_xid:()=>su,clone:()=>nn,config:()=>xt,decode:()=>jP,decodeAsync:()=>HP,encode:()=>VP,encodeAsync:()=>GP,flattenError:()=>js,formatError:()=>Gs,globalConfig:()=>Ns,globalRegistry:()=>mr,isValidBase64:()=>ah,isValidBase64URL:()=>db,isValidJWT:()=>pb,locales:()=>$i,parse:()=>Tc,parseAsync:()=>Ac,prettifyError:()=>jd,regexes:()=>bn,registry:()=>qc,safeDecode:()=>ZP,safeDecodeAsync:()=>qP,safeEncode:()=>WP,safeEncodeAsync:()=>XP,safeParse:()=>Gd,safeParseAsync:()=>Hd,toDotPath:()=>q_,toJSONSchema:()=>Pg,treeifyError:()=>Vd,util:()=>z,version:()=>zp});f();f();var Pd=Object.freeze({status:"aborted"});function M(e,t,n){var u;function i(c,d){var m,y;var h;Object.defineProperty(c,"_zod",{value:(m=c._zod)!=null?m:{},enumerable:!1}),(y=(h=c._zod).traits)!=null||(h.traits=new Set),c._zod.traits.add(e),t(c,d);for(let v in a.prototype)v in c||Object.defineProperty(c,v,{value:a.prototype[v].bind(c)});c._zod.constr=a,c._zod.def=d}o(i,"init");let r=(u=n==null?void 0:n.Parent)!=null?u:Object,l=class l extends r{};o(l,"Definition");let s=l;Object.defineProperty(s,"name",{value:e});function a(c){var m;var d;let h=n!=null&&n.Parent?new s:this;i(h,c),(m=(d=h._zod).deferred)!=null||(d.deferred=[]);for(let y of h._zod.deferred)y();return h}return o(a,"_"),Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:o(c=>{var d,h;return n!=null&&n.Parent&&c instanceof n.Parent?!0:(h=(d=c==null?void 0:c._zod)==null?void 0:d.traits)==null?void 0:h.has(e)},"value")}),Object.defineProperty(a,"name",{value:e}),a}o(M,"$constructor");var wc=Symbol("zod_brand"),Cd=class Cd extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}};o(Cd,"$ZodAsyncError");var tr=Cd,Od=class Od extends Error{constructor(t){super("Encountered unidirectional transform during encode: ".concat(t)),this.name="ZodEncodeError"}};o(Od,"$ZodEncodeError");var pi=Od,Ns={};function xt(e){return e&&Object.assign(Ns,e),Ns}o(xt,"config");f();f();var z={};un(z,{BIGINT_FORMAT_RANGES:()=>zd,Class:()=>Ud,NUMBER_FORMAT_RANGES:()=>$d,aborted:()=>xi,allowsEval:()=>Nd,assert:()=>_P,assertEqual:()=>gP,assertIs:()=>xP,assertNever:()=>vP,assertNotEqual:()=>yP,assignProp:()=>mi,base64ToUint8Array:()=>W_,base64urlToUint8Array:()=>DP,cached:()=>vo,captureStackTrace:()=>Ec,cleanEnum:()=>kP,cleanRegex:()=>Ls,clone:()=>nn,cloneDef:()=>SP,createTransparentProxy:()=>AP,defineLazy:()=>ge,esc:()=>Mc,escapeRegex:()=>hr,extend:()=>CP,finalizeIssue:()=>_n,floatSafeRemainder:()=>Fd,getElementAtPath:()=>IP,getEnumValues:()=>Ds,getLengthableOrigin:()=>Bs,getParsedType:()=>TP,getSizableOrigin:()=>zs,hexToUint8Array:()=>$P,isObject:()=>ki,isPlainObject:()=>yi,issue:()=>_o,joinValues:()=>C,jsonStringifyReplacer:()=>xo,merge:()=>UP,mergeDefs:()=>gi,normalizeParams:()=>B,nullish:()=>hi,numKeys:()=>EP,objectClone:()=>bP,omit:()=>RP,optionalKeys:()=>Ld,partial:()=>FP,pick:()=>PP,prefixIssues:()=>vn,primitiveTypes:()=>Dd,promiseAllObject:()=>wP,propertyKeyTypes:()=>$s,randomString:()=>MP,required:()=>NP,safeExtend:()=>OP,shallowClone:()=>kd,stringifyPrimitive:()=>$,uint8ArrayToBase64:()=>Z_,uint8ArrayToBase64url:()=>LP,uint8ArrayToHex:()=>zP,unwrapMessage:()=>ks});f();function gP(e){return e}o(gP,"assertEqual");function yP(e){return e}o(yP,"assertNotEqual");function xP(e){}o(xP,"assertIs");function vP(e){throw new Error}o(vP,"assertNever");function _P(e){}o(_P,"assert");function Ds(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}o(Ds,"getEnumValues");function C(e,t="|"){return e.map(n=>$(n)).join(t)}o(C,"joinValues");function xo(e,t){return typeof t=="bigint"?t.toString():t}o(xo,"jsonStringifyReplacer");function vo(e){return{get value(){{let n=e();return Object.defineProperty(this,"value",{value:n}),n}throw new Error("cached value already set")}}}o(vo,"cached");function hi(e){return e==null}o(hi,"nullish");function Ls(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}o(Ls,"cleanRegex");function Fd(e,t){let n=(e.toString().split(".")[1]||"").length,i=t.toString(),r=(i.split(".")[1]||"").length;if(r===0&&/\d?e-\d?/.test(i)){let l=i.match(/\d?e-(\d?)/);l!=null&&l[1]&&(r=Number.parseInt(l[1]))}let s=n>r?n:r,a=Number.parseInt(e.toFixed(s).replace(".","")),u=Number.parseInt(t.toFixed(s).replace(".",""));return a%u/10**s}o(Fd,"floatSafeRemainder");var H_=Symbol("evaluating");function ge(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==H_)return i===void 0&&(i=H_,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}o(ge,"defineLazy");function bP(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}o(bP,"objectClone");function mi(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}o(mi,"assignProp");function gi(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}o(gi,"mergeDefs");function SP(e){return gi(e._zod.def)}o(SP,"cloneDef");function IP(e,t){return t?t.reduce((n,i)=>n==null?void 0:n[i],e):e}o(IP,"getElementAtPath");function wP(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let s=0;s<t.length;s++)r[t[s]]=i[s];return r})}o(wP,"promiseAllObject");function MP(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}o(MP,"randomString");function Mc(e){return JSON.stringify(e)}o(Mc,"esc");var Ec="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ki(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(ki,"isObject");var Nd=vo(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{let t=Function;return new t(""),!0}catch(t){return!1}});function yi(e){if(ki(e)===!1)return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(ki(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}o(yi,"isPlainObject");function kd(e){return yi(e)?x({},e):Array.isArray(e)?[...e]:e}o(kd,"shallowClone");function EP(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}o(EP,"numKeys");var TP=o(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: ".concat(t))}},"getParsedType"),$s=new Set(["string","number","symbol"]),Dd=new Set(["string","number","bigint","boolean","symbol","undefined"]);function hr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(hr,"escapeRegex");function nn(e,t,n){let i=new e._zod.constr(t!=null?t:e._zod.def);return(!t||n!=null&&n.parent)&&(i._zod.parent=e),i}o(nn,"clone");function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0: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"?L(x({},t),{error:o(()=>t.error,"error")}):t}o(B,"normalizeParams");function AP(e){let t;return new Proxy({},{get(n,i,r){return t!=null||(t=e()),Reflect.get(t,i,r)},set(n,i,r,s){return t!=null||(t=e()),Reflect.set(t,i,r,s)},has(n,i){return t!=null||(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t!=null||(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t!=null||(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t!=null||(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t!=null||(t=e()),Reflect.defineProperty(t,i,r)}})}o(AP,"createTransparentProxy");function $(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?'"'.concat(e,'"'):"".concat(e)}o($,"stringifyPrimitive");function Ld(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(Ld,"optionalKeys");var $d={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]},zd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function PP(e,t){let n=e._zod.def,i=gi(e._zod.def,{get shape(){let r={};for(let s in t){if(!(s in n.shape))throw new Error('Unrecognized key: "'.concat(s,'"'));t[s]&&(r[s]=n.shape[s])}return mi(this,"shape",r),r},checks:[]});return nn(e,i)}o(PP,"pick");function RP(e,t){let n=e._zod.def,i=gi(e._zod.def,{get shape(){let r=x({},e._zod.def.shape);for(let s in t){if(!(s in n.shape))throw new Error('Unrecognized key: "'.concat(s,'"'));t[s]&&delete r[s]}return mi(this,"shape",r),r},checks:[]});return nn(e,i)}o(RP,"omit");function CP(e,t){if(!yi(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");let r=gi(e._zod.def,{get shape(){let s=x(x({},e._zod.def.shape),t);return mi(this,"shape",s),s},checks:[]});return nn(e,r)}o(CP,"extend");function OP(e,t){if(!yi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let n=L(x({},e._zod.def),{get shape(){let i=x(x({},e._zod.def.shape),t);return mi(this,"shape",i),i},checks:e._zod.def.checks});return nn(e,n)}o(OP,"safeExtend");function UP(e,t){let n=gi(e._zod.def,{get shape(){let i=x(x({},e._zod.def.shape),t._zod.def.shape);return mi(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return nn(e,n)}o(UP,"merge");function FP(e,t,n){let i=gi(t._zod.def,{get shape(){let r=t._zod.def.shape,s=x({},r);if(n)for(let a in n){if(!(a in r))throw new Error('Unrecognized key: "'.concat(a,'"'));n[a]&&(s[a]=e?new e({type:"optional",innerType:r[a]}):r[a])}else for(let a in r)s[a]=e?new e({type:"optional",innerType:r[a]}):r[a];return mi(this,"shape",s),s},checks:[]});return nn(t,i)}o(FP,"partial");function NP(e,t,n){let i=gi(t._zod.def,{get shape(){let r=t._zod.def.shape,s=x({},r);if(n)for(let a in n){if(!(a in s))throw new Error('Unrecognized key: "'.concat(a,'"'));n[a]&&(s[a]=new e({type:"nonoptional",innerType:r[a]}))}else for(let a in r)s[a]=new e({type:"nonoptional",innerType:r[a]});return mi(this,"shape",s),s},checks:[]});return nn(t,i)}o(NP,"required");function xi(e,t=0){var n;if(e.aborted===!0)return!0;for(let i=t;i<e.issues.length;i++)if(((n=e.issues[i])==null?void 0:n.continue)!==!0)return!0;return!1}o(xi,"aborted");function vn(e,t){return t.map(n=>{var r;var i;return(r=(i=n).path)!=null||(i.path=[]),n.path.unshift(e),n})}o(vn,"prefixIssues");function ks(e){return typeof e=="string"?e:e==null?void 0:e.message}o(ks,"unwrapMessage");function _n(e,t,n){var r,s,a,u,l,c,d,h,m,y,v;let i=L(x({},e),{path:(r=e.path)!=null?r:[]});if(!e.message){let I=(v=(y=(h=(c=ks((u=(a=(s=e.inst)==null?void 0:s._zod.def)==null?void 0:a.error)==null?void 0:u.call(a,e)))!=null?c:ks((l=t==null?void 0:t.error)==null?void 0:l.call(t,e)))!=null?h:ks((d=n.customError)==null?void 0:d.call(n,e)))!=null?y:ks((m=n.localeError)==null?void 0:m.call(n,e)))!=null?v:"Invalid input";i.message=I}return delete i.inst,delete i.continue,t!=null&&t.reportInput||delete i.input,i}o(_n,"finalizeIssue");function zs(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}o(zs,"getSizableOrigin");function Bs(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Bs,"getLengthableOrigin");function _o(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:x({},t)}o(_o,"issue");function kP(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}o(kP,"cleanEnum");function W_(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}o(W_,"base64ToUint8Array");function Z_(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}o(Z_,"uint8ArrayToBase64");function DP(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return W_(t+n)}o(DP,"base64urlToUint8Array");function LP(e){return Z_(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}o(LP,"uint8ArrayToBase64url");function $P(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}o($P,"hexToUint8Array");function zP(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}o(zP,"uint8ArrayToHex");var Bd=class Bd{constructor(...t){}};o(Bd,"Class");var Ud=Bd;var X_=o((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,xo,2),Object.defineProperty(e,"toString",{value:o(()=>e.message,"value"),enumerable:!1})},"initializer"),Vs=M("$ZodError",X_),ln=M("$ZodError",X_,{Parent:Error});function js(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):i.push(t(r));return{formErrors:i,fieldErrors:n}}o(js,"flattenError");function Gs(e,t=n=>n.message){let n={_errors:[]},i=o(r=>{for(let s of r.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>i({issues:a}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let a=n,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}},"processError");return i(e),n}o(Gs,"formatError");function Vd(e,t=n=>n.message){let n={errors:[]},i=o((r,s=[])=>{var l,c,d,h;var a,u;for(let m of r.issues)if(m.code==="invalid_union"&&m.errors.length)m.errors.map(y=>i({issues:y},m.path));else if(m.code==="invalid_key")i({issues:m.issues},m.path);else if(m.code==="invalid_element")i({issues:m.issues},m.path);else{let y=[...s,...m.path];if(y.length===0){n.errors.push(t(m));continue}let v=n,I=0;for(;I<y.length;){let T=y[I],U=I===y.length-1;typeof T=="string"?((l=v.properties)!=null||(v.properties={}),(c=(a=v.properties)[T])!=null||(a[T]={errors:[]}),v=v.properties[T]):((d=v.items)!=null||(v.items=[]),(h=(u=v.items)[T])!=null||(u[T]={errors:[]}),v=v.items[T]),U&&v.errors.push(t(m)),I++}}},"processError");return i(e),n}o(Vd,"treeifyError");function q_(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push("[".concat(i,"]")):typeof i=="symbol"?t.push("[".concat(JSON.stringify(String(i)),"]")):/[^\w$]/.test(i)?t.push("[".concat(JSON.stringify(i),"]")):(t.length&&t.push("."),t.push(i));return t.join("")}o(q_,"toDotPath");function jd(e){var i;let t=[],n=[...e.issues].sort((r,s)=>{var a,u;return((a=r.path)!=null?a:[]).length-((u=s.path)!=null?u:[]).length});for(let r of n)t.push("\u2716 ".concat(r.message)),(i=r.path)!=null&&i.length&&t.push(" \u2192 at ".concat(q_(r.path)));return t.join("\n")}o(jd,"prettifyError");var bo=o(e=>(t,n,i,r)=>{var u;let s=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise)throw new tr;if(a.issues.length){let l=new((u=r==null?void 0:r.Err)!=null?u:e)(a.issues.map(c=>_n(c,s,xt())));throw Ec(l,r==null?void 0:r.callee),l}return a.value},"_parse"),Tc=bo(ln),So=o(e=>async(t,n,i,r)=>{var u;let s=i?Object.assign(i,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let l=new((u=r==null?void 0:r.Err)!=null?u:e)(a.issues.map(c=>_n(c,s,xt())));throw Ec(l,r==null?void 0:r.callee),l}return a.value},"_parseAsync"),Ac=So(ln),Io=o(e=>(t,n,i)=>{let r=i?L(x({},i),{async:!1}):{async:!1},s=t._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new tr;return s.issues.length?{success:!1,error:new(e!=null?e:Vs)(s.issues.map(a=>_n(a,r,xt())))}:{success:!0,data:s.value}},"_safeParse"),Gd=Io(ln),wo=o(e=>async(t,n,i)=>{let r=i?Object.assign(i,{async:!0}):{async:!0},s=t._zod.run({value:n,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>_n(a,r,xt())))}:{success:!0,data:s.value}},"_safeParseAsync"),Hd=wo(ln),Pc=o(e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bo(e)(t,n,r)},"_encode"),VP=Pc(ln),Rc=o(e=>(t,n,i)=>bo(e)(t,n,i),"_decode"),jP=Rc(ln),Cc=o(e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return So(e)(t,n,r)},"_encodeAsync"),GP=Cc(ln),Oc=o(e=>async(t,n,i)=>So(e)(t,n,i),"_decodeAsync"),HP=Oc(ln),Uc=o(e=>(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Io(e)(t,n,r)},"_safeEncode"),WP=Uc(ln),Fc=o(e=>(t,n,i)=>Io(e)(t,n,i),"_safeDecode"),ZP=Fc(ln),Nc=o(e=>async(t,n,i)=>{let r=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return wo(e)(t,n,r)},"_safeEncodeAsync"),XP=Nc(ln),kc=o(e=>async(t,n,i)=>wo(e)(t,n,i),"_safeDecodeAsync"),qP=kc(ln);f();f();var bn={};un(bn,{base64:()=>sp,base64url:()=>Dc,bigint:()=>pp,boolean:()=>gp,browserEmail:()=>rR,cidrv4:()=>ip,cidrv6:()=>op,cuid:()=>Wd,cuid2:()=>Zd,date:()=>up,datetime:()=>fp,domain:()=>oR,duration:()=>Jd,e164:()=>cp,email:()=>ep,emoji:()=>tp,extendedDuration:()=>KP,guid:()=>Qd,hex:()=>sR,hostname:()=>ap,html5Email:()=>eR,idnEmail:()=>nR,integer:()=>hp,ipv4:()=>np,ipv6:()=>rp,ksuid:()=>Kd,lowercase:()=>vp,md5_base64:()=>cR,md5_base64url:()=>uR,md5_hex:()=>aR,nanoid:()=>Yd,null:()=>yp,number:()=>mp,rfc5322Email:()=>tR,sha1_base64:()=>fR,sha1_base64url:()=>dR,sha1_hex:()=>lR,sha256_base64:()=>hR,sha256_base64url:()=>mR,sha256_hex:()=>pR,sha384_base64:()=>yR,sha384_base64url:()=>xR,sha384_hex:()=>gR,sha512_base64:()=>_R,sha512_base64url:()=>bR,sha512_hex:()=>vR,string:()=>dp,time:()=>lp,ulid:()=>Xd,undefined:()=>xp,unicodeEmail:()=>K_,uppercase:()=>_p,uuid:()=>Di,uuid4:()=>YP,uuid6:()=>JP,uuid7:()=>QP,xid:()=>qd});f();var Wd=/^[cC][^\s-]{8,}$/,Zd=/^[0-9a-z]+$/,Xd=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,qd=/^[0-9a-vA-V]{20}$/,Kd=/^[A-Za-z0-9]{27}$/,Yd=/^[a-zA-Z0-9_-]{21}$/,Jd=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,KP=/^[-+]?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)?)??$/,Qd=/^([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})$/,Di=o(e=>e?new RegExp("^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-".concat(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)$/,"uuid"),YP=Di(4),JP=Di(6),QP=Di(7),ep=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,eR=/^[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])?)*$/,tR=/^(([^<>()\[\]\\.,;:\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,}))$/,K_=new RegExp('^[^\\s@"]{1,64}@[^\\s@]{1,255}$',"u"),nR=K_,rR=/^[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])?)*$/,iR="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function tp(){return new RegExp(iR,"u")}o(tp,"emoji");var np=/^(?:(?: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])$/,rp=/^(([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}|:))$/,ip=/^((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])$/,op=/^(([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])$/,sp=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Dc=/^[A-Za-z0-9_-]*$/,ap=/^(?=.{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])?)*\.?$/,oR=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,cp=/^\+(?:[0-9]){6,14}[0-9]$/,Y_="(?:(?:\\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])))",up=new RegExp("^".concat(Y_,"$"));function J_(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?"".concat(t):e.precision===0?"".concat(t,":[0-5]\\d"):"".concat(t,":[0-5]\\d\\.\\d{").concat(e.precision,"}"):"".concat(t,"(?::[0-5]\\d(?:\\.\\d+)?)?")}o(J_,"timeSource");function lp(e){return new RegExp("^".concat(J_(e),"$"))}o(lp,"time");function fp(e){let t=J_({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let i="".concat(t,"(?:").concat(n.join("|"),")");return new RegExp("^".concat(Y_,"T(?:").concat(i,")$"))}o(fp,"datetime");var dp=o(e=>{var n,i;let t=e?"[\\s\\S]{".concat((n=e==null?void 0:e.minimum)!=null?n:0,",").concat((i=e==null?void 0:e.maximum)!=null?i:"","}"):"[\\s\\S]*";return new RegExp("^".concat(t,"$"))},"string"),pp=/^-?\d+n?$/,hp=/^-?\d+$/,mp=/^-?\d+(?:\.\d+)?/,gp=/^(?:true|false)$/i,yp=/^null$/i;var xp=/^undefined$/i;var vp=/^[^A-Z]*$/,_p=/^[^a-z]*$/,sR=/^[0-9a-fA-F]*$/;function Hs(e,t){return new RegExp("^[A-Za-z0-9+/]{".concat(e,"}").concat(t,"$"))}o(Hs,"fixedBase64");function Ws(e){return new RegExp("^[A-Za-z0-9_-]{".concat(e,"}$"))}o(Ws,"fixedBase64url");var aR=/^[0-9a-fA-F]{32}$/,cR=Hs(22,"=="),uR=Ws(22),lR=/^[0-9a-fA-F]{40}$/,fR=Hs(27,"="),dR=Ws(27),pR=/^[0-9a-fA-F]{64}$/,hR=Hs(43,"="),mR=Ws(43),gR=/^[0-9a-fA-F]{96}$/,yR=Hs(64,""),xR=Ws(64),vR=/^[0-9a-fA-F]{128}$/,_R=Hs(86,"=="),bR=Ws(86);var rt=M("$ZodCheck",(e,t)=>{var i,r;var n;(i=e._zod)!=null||(e._zod={}),e._zod.def=t,(r=(n=e._zod).onattach)!=null||(n.onattach=[])}),eb={number:"number",bigint:"bigint",object:"date"},Lc=M("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);let n=eb[typeof t.value];e._zod.onattach.push(i=>{var a;let r=i._zod.bag,s=(a=t.inclusive?r.maximum:r.exclusiveMaximum)!=null?a:Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?r.maximum=t.value:r.exclusiveMaximum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:n,code:"too_big",maximum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$c=M("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);let n=eb[typeof t.value];e._zod.onattach.push(i=>{var a;let r=i._zod.bag,s=(a=t.inclusive?r.minimum:r.exclusiveMinimum)!=null?a:Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?r.minimum=t.value:r.exclusiveMinimum=t.value)}),e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:n,code:"too_small",minimum:t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),bp=M("$ZodCheckMultipleOf",(e,t)=>{rt.init(e,t),e._zod.onattach.push(n=>{var r;var i;(r=(i=n._zod.bag).multipleOf)!=null||(i.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Fd(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Sp=M("$ZodCheckNumberFormat",(e,t)=>{var a;rt.init(e,t),t.format=t.format||"float64";let n=(a=t.format)==null?void 0:a.includes("int"),i=n?"int":"number",[r,s]=$d[t.format];e._zod.onattach.push(u=>{let l=u._zod.bag;l.format=t.format,l.minimum=r,l.maximum=s,n&&(l.pattern=hp)}),e._zod.check=u=>{let l=u.value;if(n){if(!Number.isInteger(l)){u.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?u.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort}):u.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,continue:!t.abort});return}}l<r&&u.issues.push({origin:"number",input:l,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),l>s&&u.issues.push({origin:"number",input:l,code:"too_big",maximum:s,inst:e})}}),Ip=M("$ZodCheckBigIntFormat",(e,t)=>{rt.init(e,t);let[n,i]=zd[t.format];e._zod.onattach.push(r=>{let s=r._zod.bag;s.format=t.format,s.minimum=n,s.maximum=i}),e._zod.check=r=>{let s=r.value;s<n&&r.issues.push({origin:"bigint",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&r.issues.push({origin:"bigint",input:s,code:"too_big",maximum:i,inst:e})}}),wp=M("$ZodCheckMaxSize",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.size!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let s=r.value;s.size<=t.maximum||r.issues.push({origin:zs(s),code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Mp=M("$ZodCheckMinSize",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.size!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let s=r.value;s.size>=t.minimum||r.issues.push({origin:zs(s),code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Ep=M("$ZodCheckSizeEquals",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.size!==void 0}),e._zod.onattach.push(r=>{let s=r._zod.bag;s.minimum=t.size,s.maximum=t.size,s.size=t.size}),e._zod.check=r=>{let s=r.value,a=s.size;if(a===t.size)return;let u=a>t.size;r.issues.push(L(x({origin:zs(s)},u?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size}),{inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort}))}}),Tp=M("$ZodCheckMaxLength",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.maximum)!=null?a:Number.POSITIVE_INFINITY;t.maximum<s&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{let s=r.value;if(s.length<=t.maximum)return;let u=Bs(s);r.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Ap=M("$ZodCheckMinLength",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{var a;let s=(a=r._zod.bag.minimum)!=null?a:Number.NEGATIVE_INFINITY;t.minimum>s&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{let s=r.value;if(s.length>=t.minimum)return;let u=Bs(s);r.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),Pp=M("$ZodCheckLengthEquals",(e,t)=>{var i;var n;rt.init(e,t),(i=(n=e._zod.def).when)!=null||(n.when=r=>{let s=r.value;return!hi(s)&&s.length!==void 0}),e._zod.onattach.push(r=>{let s=r._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=r=>{let s=r.value,a=s.length;if(a===t.length)return;let u=Bs(s),l=a>t.length;r.issues.push(L(x({origin:u},l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length}),{inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort}))}}),Mo=M("$ZodCheckStringFormat",(e,t)=>{var r,s;var n,i;rt.init(e,t),e._zod.onattach.push(a=>{var l;let u=a._zod.bag;u.format=t.format,t.pattern&&((l=u.patterns)!=null||(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(r=(n=e._zod).check)!=null||(n.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push(L(x({origin:"string",code:"invalid_format",format:t.format,input:a.value},t.pattern?{pattern:t.pattern.toString()}:{}),{inst:e,continue:!t.abort}))}):(s=(i=e._zod).check)!=null||(i.check=()=>{})}),Rp=M("$ZodCheckRegex",(e,t)=>{Mo.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Cp=M("$ZodCheckLowerCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=vp),Mo.init(e,t)}),Op=M("$ZodCheckUpperCase",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=_p),Mo.init(e,t)}),Up=M("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);let n=hr(t.includes),i=new RegExp(typeof t.position=="number"?"^.{".concat(t.position,"}").concat(n):n);t.pattern=i,e._zod.onattach.push(r=>{var a;let s=r._zod.bag;(a=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(i)}),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})}}),Fp=M("$ZodCheckStartsWith",(e,t)=>{var i;rt.init(e,t);let n=new RegExp("^".concat(hr(t.prefix),".*"));(i=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(r=>{var a;let s=r._zod.bag;(a=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Np=M("$ZodCheckEndsWith",(e,t)=>{var i;rt.init(e,t);let n=new RegExp(".*".concat(hr(t.suffix),"$"));(i=t.pattern)!=null||(t.pattern=n),e._zod.onattach.push(r=>{var a;let s=r._zod.bag;(a=s.patterns)!=null||(s.patterns=new Set),s.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function Q_(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues))}o(Q_,"handleCheckPropertyResult");var kp=M("$ZodCheckProperty",(e,t)=>{rt.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Q_(r,n,t.property));Q_(i,n,t.property)}}),Dp=M("$ZodCheckMimeType",(e,t)=>{rt.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=t.mime}),e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Lp=M("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});f();var $p=class $p{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 i=t.split("\n").filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),s=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of s)this.content.push(a)}compile(){var s;let t=Function,n=this==null?void 0:this.args,r=[...((s=this==null?void 0:this.content)!=null?s:[""]).map(a=>" ".concat(a))];return new t(...n,r.join("\n"))}};o($p,"Doc");var Zs=$p;f();var zp={major:4,minor:1,patch:12};var se=M("$ZodType",(e,t)=>{var r,s,a;var n;e!=null||(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zp;let i=[...(r=e._zod.def.checks)!=null?r:[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(let u of i)for(let l of u._zod.onattach)l(e);if(i.length===0)(s=(n=e._zod).deferred)!=null||(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{let u=o((c,d,h)=>{let m=xi(c),y;for(let v of d){if(v._zod.def.when){if(!v._zod.def.when(c))continue}else if(m)continue;let I=c.issues.length,T=v._zod.check(c);if(T instanceof Promise&&(h==null?void 0:h.async)===!1)throw new tr;if(y||T instanceof Promise)y=(y!=null?y:Promise.resolve()).then(async()=>{await T,c.issues.length!==I&&(m||(m=xi(c,I)))});else{if(c.issues.length===I)continue;m||(m=xi(c,I))}}return y?y.then(()=>c):c},"runChecks"),l=o((c,d,h)=>{if(xi(c))return c.aborted=!0,c;let m=u(d,i,h);if(m instanceof Promise){if(h.async===!1)throw new tr;return m.then(y=>e._zod.parse(y,h))}return e._zod.parse(m,h)},"handleCanaryResult");e._zod.run=(c,d)=>{if(d.skipChecks)return e._zod.parse(c,d);if(d.direction==="backward"){let m=e._zod.parse({value:c.value,issues:[]},L(x({},d),{skipChecks:!0}));return m instanceof Promise?m.then(y=>l(y,c,d)):l(m,c,d)}let h=e._zod.parse(c,d);if(h instanceof Promise){if(d.async===!1)throw new tr;return h.then(m=>u(m,i,d))}return u(h,i,d)}}e["~standard"]={validate:o(u=>{var l;try{let c=Gd(e,u);return c.success?{value:c.data}:{issues:(l=c.error)==null?void 0:l.issues}}catch(c){return Hd(e,u).then(d=>{var h;return d.success?{value:d.data}:{issues:(h=d.error)==null?void 0:h.issues}})}},"validate"),vendor:"zod",version:1}}),Li=M("$ZodString",(e,t)=>{var n,i,r;se.init(e,t),e._zod.pattern=(r=[...(i=(n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)!=null?i:[]].pop())!=null?r:dp(e._zod.bag),e._zod.parse=(s,a)=>{if(t.coerce)try{s.value=String(s.value)}catch(u){}return typeof s.value=="string"||s.issues.push({expected:"string",code:"invalid_type",input:s.value,inst:e}),s}}),qe=M("$ZodStringFormat",(e,t)=>{Mo.init(e,t),Li.init(e,t)}),Vp=M("$ZodGUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Qd),qe.init(e,t)}),jp=M("$ZodUUID",(e,t)=>{var n,i;if(t.version){let s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(s===void 0)throw new Error('Invalid UUID version: "'.concat(t.version,'"'));(n=t.pattern)!=null||(t.pattern=Di(s))}else(i=t.pattern)!=null||(t.pattern=Di());qe.init(e,t)}),Gp=M("$ZodEmail",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ep),qe.init(e,t)}),Hp=M("$ZodURL",(e,t)=>{qe.init(e,t),e._zod.check=n=>{try{let i=n.value.trim(),r=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ap.source,input:n.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)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=r.href:n.value=i;return}catch(i){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Wp=M("$ZodEmoji",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=tp()),qe.init(e,t)}),Zp=M("$ZodNanoID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Yd),qe.init(e,t)}),Xp=M("$ZodCUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Wd),qe.init(e,t)}),qp=M("$ZodCUID2",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Zd),qe.init(e,t)}),Kp=M("$ZodULID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Xd),qe.init(e,t)}),Yp=M("$ZodXID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=qd),qe.init(e,t)}),Jp=M("$ZodKSUID",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Kd),qe.init(e,t)}),Qp=M("$ZodISODateTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=fp(t)),qe.init(e,t)}),eh=M("$ZodISODate",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=up),qe.init(e,t)}),th=M("$ZodISOTime",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=lp(t)),qe.init(e,t)}),nh=M("$ZodISODuration",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Jd),qe.init(e,t)}),rh=M("$ZodIPv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=np),qe.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format="ipv4"})}),ih=M("$ZodIPv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=rp),qe.init(e,t),e._zod.onattach.push(i=>{let r=i._zod.bag;r.format="ipv6"}),e._zod.check=i=>{try{new URL("http://[".concat(i.value,"]"))}catch(r){i.issues.push({code:"invalid_format",format:"ipv6",input:i.value,inst:e,continue:!t.abort})}}}),oh=M("$ZodCIDRv4",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=ip),qe.init(e,t)}),sh=M("$ZodCIDRv6",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=op),qe.init(e,t),e._zod.check=i=>{let r=i.value.split("/");try{if(r.length!==2)throw new Error;let[s,a]=r;if(!a)throw new Error;let u=Number(a);if("".concat(u)!==a)throw new Error;if(u<0||u>128)throw new Error;new URL("http://[".concat(s,"]"))}catch(s){i.issues.push({code:"invalid_format",format:"cidrv6",input:i.value,inst:e,continue:!t.abort})}}});function ah(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch(t){return!1}}o(ah,"isValidBase64");var ch=M("$ZodBase64",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=sp),qe.init(e,t),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64"}),e._zod.check=i=>{ah(i.value)||i.issues.push({code:"invalid_format",format:"base64",input:i.value,inst:e,continue:!t.abort})}});function db(e){if(!Dc.test(e))return!1;let t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ah(n)}o(db,"isValidBase64URL");var uh=M("$ZodBase64URL",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=Dc),qe.init(e,t),e._zod.onattach.push(i=>{i._zod.bag.contentEncoding="base64url"}),e._zod.check=i=>{db(i.value)||i.issues.push({code:"invalid_format",format:"base64url",input:i.value,inst:e,continue:!t.abort})}}),lh=M("$ZodE164",(e,t)=>{var n;(n=t.pattern)!=null||(t.pattern=cp),qe.init(e,t)});function pb(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[i]=n;if(!i)return!1;let r=JSON.parse(atob(i));return!("typ"in r&&(r==null?void 0:r.typ)!=="JWT"||!r.alg||t&&(!("alg"in r)||r.alg!==t))}catch(n){return!1}}o(pb,"isValidJWT");var fh=M("$ZodJWT",(e,t)=>{qe.init(e,t),e._zod.check=n=>{pb(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),dh=M("$ZodCustomStringFormat",(e,t)=>{qe.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Hc=M("$ZodNumber",(e,t)=>{var n;se.init(e,t),e._zod.pattern=(n=e._zod.bag.pattern)!=null?n:mp,e._zod.parse=(i,r)=>{if(t.coerce)try{i.value=Number(i.value)}catch(u){}let s=i.value;if(typeof s=="number"&&!Number.isNaN(s)&&Number.isFinite(s))return i;let a=typeof s=="number"?Number.isNaN(s)?"NaN":Number.isFinite(s)?void 0:"Infinity":void 0;return i.issues.push(x({expected:"number",code:"invalid_type",input:s,inst:e},a?{received:a}:{})),i}}),ph=M("$ZodNumber",(e,t)=>{Sp.init(e,t),Hc.init(e,t)}),Xs=M("$ZodBoolean",(e,t)=>{se.init(e,t),e._zod.pattern=gp,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=!!n.value}catch(s){}let r=n.value;return typeof r=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:r,inst:e}),n}}),Wc=M("$ZodBigInt",(e,t)=>{se.init(e,t),e._zod.pattern=pp,e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch(r){}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),hh=M("$ZodBigInt",(e,t)=>{Ip.init(e,t),Wc.init(e,t)}),mh=M("$ZodSymbol",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:r,inst:e}),n}}),gh=M("$ZodUndefined",(e,t)=>{se.init(e,t),e._zod.pattern=xp,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:r,inst:e}),n}}),yh=M("$ZodNull",(e,t)=>{se.init(e,t),e._zod.pattern=yp,e._zod.values=new Set([null]),e._zod.parse=(n,i)=>{let r=n.value;return r===null||n.issues.push({expected:"null",code:"invalid_type",input:r,inst:e}),n}}),xh=M("$ZodAny",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),vh=M("$ZodUnknown",(e,t)=>{se.init(e,t),e._zod.parse=n=>n}),_h=M("$ZodNever",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),bh=M("$ZodVoid",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return typeof r>"u"||n.issues.push({expected:"void",code:"invalid_type",input:r,inst:e}),n}}),Sh=M("$ZodDate",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{if(t.coerce)try{n.value=new Date(n.value)}catch(u){}let r=n.value,s=r instanceof Date;return s&&!Number.isNaN(r.getTime())||n.issues.push(L(x({expected:"date",code:"invalid_type",input:r},s?{received:"Invalid Date"}:{}),{inst:e})),n}});function nb(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues)),t.value[n]=e.value}o(nb,"handleArrayResult");var Ih=M("$ZodArray",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:e}),n;n.value=Array(r.length);let s=[];for(let a=0;a<r.length;a++){let u=r[a],l=t.element._zod.run({value:u,issues:[]},i);l instanceof Promise?s.push(l.then(c=>nb(c,n,a))):nb(l,n,a)}return s.length?Promise.all(s).then(()=>n):n}});function Gc(e,t,n,i){e.issues.length&&t.issues.push(...vn(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}o(Gc,"handlePropertyResult");function hb(e){var i,r,s,a;let t=Object.keys(e.shape);for(let u of t)if(!((a=(s=(r=(i=e.shape)==null?void 0:i[u])==null?void 0:r._zod)==null?void 0:s.traits)!=null&&a.has("$ZodType")))throw new Error('Invalid element at key "'.concat(u,'": expected a Zod schema'));let n=Ld(e.shape);return L(x({},e),{keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)})}o(hb,"normalizeDef");function mb(e,t,n,i,r,s){let a=[],u=r.keySet,l=r.catchall._zod,c=l.def.type;for(let d of Object.keys(t)){if(u.has(d))continue;if(c==="never"){a.push(d);continue}let h=l.run({value:t[d],issues:[]},i);h instanceof Promise?e.push(h.then(m=>Gc(m,n,d,t))):Gc(h,n,d,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}o(mb,"handleCatchall");var gb=M("$ZodObject",(e,t)=>{se.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){let u=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let l=x({},u);return Object.defineProperty(t,"shape",{value:l}),l},"get")})}let i=vo(()=>hb(t));ge(e._zod,"propValues",()=>{var c;let u=t.shape,l={};for(let d in u){let h=u[d]._zod;if(h.values){(c=l[d])!=null||(l[d]=new Set);for(let m of h.values)l[d].add(m)}}return l});let r=ki,s=t.catchall,a;e._zod.parse=(u,l)=>{a!=null||(a=i.value);let c=u.value;if(!r(c))return u.issues.push({expected:"object",code:"invalid_type",input:c,inst:e}),u;u.value={};let d=[],h=a.shape;for(let m of a.keys){let v=h[m]._zod.run({value:c[m],issues:[]},l);v instanceof Promise?d.push(v.then(I=>Gc(I,u,m,c))):Gc(v,u,m,c)}return s?mb(d,c,u,l,i.value,e):d.length?Promise.all(d).then(()=>u):u}}),wh=M("$ZodObjectJIT",(e,t)=>{gb.init(e,t);let n=e._zod.parse,i=vo(()=>hb(t)),r=o(m=>{let y=new Zs(["shape","payload","ctx"]),v=i.value,I=o(w=>{let S=Mc(w);return"shape[".concat(S,"]._zod.run({ value: input[").concat(S,"], issues: [] }, ctx)")},"parseStr");y.write("const input = payload.value;");let T=Object.create(null),U=0;for(let w of v.keys)T[w]="key_".concat(U++);y.write("const newResult = {};");for(let w of v.keys){let S=T[w],A=Mc(w);y.write("const ".concat(S," = ").concat(I(w),";")),y.write("\n if (".concat(S,".issues.length) {\n payload.issues = payload.issues.concat(").concat(S,".issues.map(iss => ({\n ...iss,\n path: iss.path ? [").concat(A,", ...iss.path] : [").concat(A,"]\n })));\n }\n \n \n if (").concat(S,".value === undefined) {\n if (").concat(A," in input) {\n newResult[").concat(A,"] = undefined;\n }\n } else {\n newResult[").concat(A,"] = ").concat(S,".value;\n }\n \n "))}y.write("payload.value = newResult;"),y.write("return payload;");let D=y.compile();return(w,S)=>D(m,w,S)},"generateFastpass"),s,a=ki,u=!Ns.jitless,c=u&&Nd.value,d=t.catchall,h;e._zod.parse=(m,y)=>{h!=null||(h=i.value);let v=m.value;return a(v)?u&&c&&(y==null?void 0:y.async)===!1&&y.jitless!==!0?(s||(s=r(t.shape)),m=s(m,y),d?mb([],v,m,y,h,e):m):n(m,y):(m.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),m)}});function rb(e,t,n,i){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let r=e.filter(s=>!xi(s));return r.length===1?(t.value=r[0].value,r[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(a=>_n(a,i,xt())))}),t)}o(rb,"handleUnionResults");var Zc=M("$ZodUnion",(e,t)=>{se.init(e,t),ge(e._zod,"optin",()=>t.options.some(r=>r._zod.optin==="optional")?"optional":void 0),ge(e._zod,"optout",()=>t.options.some(r=>r._zod.optout==="optional")?"optional":void 0),ge(e._zod,"values",()=>{if(t.options.every(r=>r._zod.values))return new Set(t.options.flatMap(r=>Array.from(r._zod.values)))}),ge(e._zod,"pattern",()=>{if(t.options.every(r=>r._zod.pattern)){let r=t.options.map(s=>s._zod.pattern);return new RegExp("^(".concat(r.map(s=>Ls(s.source)).join("|"),")$"))}});let n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(r,s)=>{if(n)return i(r,s);let a=!1,u=[];for(let l of t.options){let c=l._zod.run({value:r.value,issues:[]},s);if(c instanceof Promise)u.push(c),a=!0;else{if(c.issues.length===0)return c;u.push(c)}}return a?Promise.all(u).then(l=>rb(l,r,e,s)):rb(u,r,e,s)}}),Mh=M("$ZodDiscriminatedUnion",(e,t)=>{Zc.init(e,t);let n=e._zod.parse;ge(e._zod,"propValues",()=>{let r={};for(let s of t.options){let a=s._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(s),'"'));for(let[u,l]of Object.entries(a)){r[u]||(r[u]=new Set);for(let c of l)r[u].add(c)}}return r});let i=vo(()=>{var a;let r=t.options,s=new Map;for(let u of r){let l=(a=u._zod.propValues)==null?void 0:a[t.discriminator];if(!l||l.size===0)throw new Error('Invalid discriminated union option at index "'.concat(t.options.indexOf(u),'"'));for(let c of l){if(s.has(c))throw new Error('Duplicate discriminator value "'.concat(String(c),'"'));s.set(c,u)}}return s});e._zod.parse=(r,s)=>{let a=r.value;if(!ki(a))return r.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),r;let u=i.value.get(a==null?void 0:a[t.discriminator]);return u?u._zod.run(r,s):t.unionFallback?n(r,s):(r.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),r)}}),Eh=M("$ZodIntersection",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value,s=t.left._zod.run({value:r,issues:[]},i),a=t.right._zod.run({value:r,issues:[]},i);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([l,c])=>ib(n,l,c)):ib(n,s,a)}});function Bp(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(yi(e)&&yi(t)){let n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),r=x(x({},e),t);for(let s of i){let a=Bp(e[s],t[s]);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};r[s]=a.data}return{valid:!0,data:r}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let i=0;i<e.length;i++){let r=e[i],s=t[i],a=Bp(r,s);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}o(Bp,"mergeValues");function ib(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),xi(e))return e;let i=Bp(t.value,n.value);if(!i.valid)throw new Error("Unmergable intersection. Error path: "+"".concat(JSON.stringify(i.mergeErrorPath)));return e.value=i.data,e}o(ib,"handleIntersectionResults");var Xc=M("$ZodTuple",(e,t)=>{se.init(e,t);let n=t.items,i=n.length-[...n].reverse().findIndex(r=>r._zod.optin!=="optional");e._zod.parse=(r,s)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:"tuple",code:"invalid_type"}),r;r.value=[];let u=[];if(!t.rest){let c=a.length>n.length,d=a.length<i-1;if(c||d)return r.issues.push(L(x({},c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length}),{input:a,inst:e,origin:"array"})),r}let l=-1;for(let c of n){if(l++,l>=a.length&&l>=i)continue;let d=c._zod.run({value:a[l],issues:[]},s);d instanceof Promise?u.push(d.then(h=>zc(h,r,l))):zc(d,r,l)}if(t.rest){let c=a.slice(n.length);for(let d of c){l++;let h=t.rest._zod.run({value:d,issues:[]},s);h instanceof Promise?u.push(h.then(m=>zc(m,r,l))):zc(h,r,l)}}return u.length?Promise.all(u).then(()=>r):r}});function zc(e,t,n){e.issues.length&&t.issues.push(...vn(n,e.issues)),t.value[n]=e.value}o(zc,"handleTupleResult");var Th=M("$ZodRecord",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!yi(r))return n.issues.push({expected:"record",code:"invalid_type",input:r,inst:e}),n;let s=[];if(t.keyType._zod.values){let a=t.keyType._zod.values;n.value={};for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){let c=t.valueType._zod.run({value:r[l],issues:[]},i);c instanceof Promise?s.push(c.then(d=>{d.issues.length&&n.issues.push(...vn(l,d.issues)),n.value[l]=d.value})):(c.issues.length&&n.issues.push(...vn(l,c.issues)),n.value[l]=c.value)}let u;for(let l in r)a.has(l)||(u=u!=null?u:[],u.push(l));u&&u.length>0&&n.issues.push({code:"unrecognized_keys",input:r,inst:e,keys:u})}else{n.value={};for(let a of Reflect.ownKeys(r)){if(a==="__proto__")continue;let u=t.keyType._zod.run({value:a,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(u.issues.length){n.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(c=>_n(c,i,xt())),input:a,path:[a],inst:e}),n.value[u.value]=u.value;continue}let l=t.valueType._zod.run({value:r[a],issues:[]},i);l instanceof Promise?s.push(l.then(c=>{c.issues.length&&n.issues.push(...vn(a,c.issues)),n.value[u.value]=c.value})):(l.issues.length&&n.issues.push(...vn(a,l.issues)),n.value[u.value]=l.value)}}return s.length?Promise.all(s).then(()=>n):n}}),Ah=M("$ZodMap",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:r,inst:e}),n;let s=[];n.value=new Map;for(let[a,u]of r){let l=t.keyType._zod.run({value:a,issues:[]},i),c=t.valueType._zod.run({value:u,issues:[]},i);l instanceof Promise||c instanceof Promise?s.push(Promise.all([l,c]).then(([d,h])=>{ob(d,h,n,a,r,e,i)})):ob(l,c,n,a,r,e,i)}return s.length?Promise.all(s).then(()=>n):n}});function ob(e,t,n,i,r,s,a){e.issues.length&&($s.has(typeof i)?n.issues.push(...vn(i,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:r,inst:s,issues:e.issues.map(u=>_n(u,a,xt()))})),t.issues.length&&($s.has(typeof i)?n.issues.push(...vn(i,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:r,inst:s,key:i,issues:t.issues.map(u=>_n(u,a,xt()))})),n.value.set(e.value,t.value)}o(ob,"handleMapResult");var Ph=M("$ZodSet",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;if(!(r instanceof Set))return n.issues.push({input:r,inst:e,expected:"set",code:"invalid_type"}),n;let s=[];n.value=new Set;for(let a of r){let u=t.valueType._zod.run({value:a,issues:[]},i);u instanceof Promise?s.push(u.then(l=>sb(l,n))):sb(u,n)}return s.length?Promise.all(s).then(()=>n):n}});function sb(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}o(sb,"handleSetResult");var Rh=M("$ZodEnum",(e,t)=>{se.init(e,t);let n=Ds(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp("^(".concat(n.filter(r=>$s.has(typeof r)).map(r=>typeof r=="string"?hr(r):r.toString()).join("|"),")$")),e._zod.parse=(r,s)=>{let a=r.value;return i.has(a)||r.issues.push({code:"invalid_value",values:n,input:a,inst:e}),r}}),Ch=M("$ZodLiteral",(e,t)=>{if(se.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");e._zod.values=new Set(t.values),e._zod.pattern=new RegExp("^(".concat(t.values.map(n=>typeof n=="string"?hr(n):n?hr(n.toString()):String(n)).join("|"),")$")),e._zod.parse=(n,i)=>{let r=n.value;return e._zod.values.has(r)||n.issues.push({code:"invalid_value",values:t.values,input:r,inst:e}),n}}),Oh=M("$ZodFile",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{let r=n.value;return r instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:r,inst:e}),n}}),Uh=M("$ZodTransform",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pi(e.constructor.name);let r=t.transform(n.value,n);if(i.async)return(r instanceof Promise?r:Promise.resolve(r)).then(a=>(n.value=a,n));if(r instanceof Promise)throw new tr;return n.value=r,n}});function ab(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(ab,"handleOptionalResult");var Fh=M("$ZodOptional",(e,t)=>{se.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ge(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(Ls(n.source),")?$")):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>ab(s,n.value)):ab(r,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Nh=M("$ZodNullable",(e,t)=>{se.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"pattern",()=>{let n=t.innerType._zod.pattern;return n?new RegExp("^(".concat(Ls(n.source),"|null)$")):void 0}),ge(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),kh=M("$ZodDefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>cb(s,t)):cb(r,t)}});function cb(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}o(cb,"handleDefaultResult");var Dh=M("$ZodPrefault",(e,t)=>{se.init(e,t),e._zod.optin="optional",ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Lh=M("$ZodNonOptional",(e,t)=>{se.init(e,t),ge(e._zod,"values",()=>{let n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>ub(s,e)):ub(r,e)}});function ub(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}o(ub,"handleNonOptionalResult");var $h=M("$ZodSuccess",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pi("ZodSuccess");let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>(n.value=s.issues.length===0,n)):(n.value=r.issues.length===0,n)}}),zh=M("$ZodCatch",(e,t)=>{se.init(e,t),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),ge(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue(L(x({},n),{error:{issues:s.issues.map(a=>_n(a,i,xt()))},input:n.value})),n.issues=[]),n)):(n.value=r.value,r.issues.length&&(n.value=t.catchValue(L(x({},n),{error:{issues:r.issues.map(s=>_n(s,i,xt()))},input:n.value})),n.issues=[]),n)}}),Bh=M("$ZodNaN",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Vh=M("$ZodPipe",(e,t)=>{se.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){let s=t.out._zod.run(n,i);return s instanceof Promise?s.then(a=>Bc(a,t.in,i)):Bc(s,t.in,i)}let r=t.in._zod.run(n,i);return r instanceof Promise?r.then(s=>Bc(s,t.out,i)):Bc(r,t.out,i)}});function Bc(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}o(Bc,"handlePipeResult");var qs=M("$ZodCodec",(e,t)=>{se.init(e,t),ge(e._zod,"values",()=>t.in._zod.values),ge(e._zod,"optin",()=>t.in._zod.optin),ge(e._zod,"optout",()=>t.out._zod.optout),ge(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if((i.direction||"forward")==="forward"){let s=t.in._zod.run(n,i);return s instanceof Promise?s.then(a=>Vc(a,t,i)):Vc(s,t,i)}else{let s=t.out._zod.run(n,i);return s instanceof Promise?s.then(a=>Vc(a,t,i)):Vc(s,t,i)}}});function Vc(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let r=t.transform(e.value,e);return r instanceof Promise?r.then(s=>jc(e,s,t.out,n)):jc(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(s=>jc(e,s,t.in,n)):jc(e,r,t.in,n)}}o(Vc,"handleCodecAResult");function jc(e,t,n,i){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},i)}o(jc,"handleCodecTxResult");var jh=M("$ZodReadonly",(e,t)=>{se.init(e,t),ge(e._zod,"propValues",()=>t.innerType._zod.propValues),ge(e._zod,"values",()=>t.innerType._zod.values),ge(e._zod,"optin",()=>t.innerType._zod.optin),ge(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);let r=t.innerType._zod.run(n,i);return r instanceof Promise?r.then(lb):lb(r)}});function lb(e){return e.value=Object.freeze(e.value),e}o(lb,"handleReadonlyResult");var Gh=M("$ZodTemplateLiteral",(e,t)=>{se.init(e,t);let n=[];for(let i of t.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error("Invalid template literal part, no pattern found: ".concat([...i._zod.traits].shift()));let r=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!r)throw new Error("Invalid template literal part: ".concat(i._zod.traits));let s=r.startsWith("^")?1:0,a=r.endsWith("$")?r.length-1:r.length;n.push(r.slice(s,a))}else if(i===null||Dd.has(typeof i))n.push(hr("".concat(i)));else throw new Error("Invalid template literal part: ".concat(i));e._zod.pattern=new RegExp("^".concat(n.join(""),"$")),e._zod.parse=(i,r)=>{var s;return typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"template_literal",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:(s=t.format)!=null?s:"template_literal",pattern:e._zod.pattern.source}),i)}}),Hh=M("$ZodFunction",(e,t)=>(se.init(e,t),e._def=t,e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return function(...i){let r=e._def.input?Tc(e._def.input,i):i,s=Reflect.apply(n,this,r);return e._def.output?Tc(e._def.output,s):s}},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){let r=e._def.input?await Ac(e._def.input,i):i,s=await Reflect.apply(n,this,r);return e._def.output?await Ac(e._def.output,s):s}},e._zod.parse=(n,i)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let i=e.constructor;return Array.isArray(n[0])?new i({type:"function",input:new Xc({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new i({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let i=e.constructor;return new i({type:"function",input:e._def.input,output:n})},e)),Wh=M("$ZodPromise",(e,t)=>{se.init(e,t),e._zod.parse=(n,i)=>Promise.resolve(n.value).then(r=>t.innerType._zod.run({value:r,issues:[]},i))}),Zh=M("$ZodLazy",(e,t)=>{se.init(e,t),ge(e._zod,"innerType",()=>t.getter()),ge(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),ge(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),ge(e._zod,"optin",()=>{var n;return(n=e._zod.innerType._zod.optin)!=null?n:void 0}),ge(e._zod,"optout",()=>{var n;return(n=e._zod.innerType._zod.optout)!=null?n:void 0}),e._zod.parse=(n,i)=>e._zod.innerType._zod.run(n,i)}),Xh=M("$ZodCustom",(e,t)=>{rt.init(e,t),se.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{let i=n.value,r=t.fn(i);if(r instanceof Promise)return r.then(s=>fb(s,n,i,e));fb(r,n,i,e)}});function fb(e,t,n,i){var r;if(!e){let s={code:"custom",input:n,inst:i,path:[...(r=i._zod.def.path)!=null?r:[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),t.issues.push(_o(s))}}o(fb,"handleRefineResult");var $i={};un($i,{ar:()=>qh,az:()=>Kh,be:()=>Yh,bg:()=>Jh,ca:()=>Qh,cs:()=>em,da:()=>tm,de:()=>nm,en:()=>Ks,eo:()=>rm,es:()=>im,fa:()=>om,fi:()=>sm,fr:()=>am,frCA:()=>cm,he:()=>um,hu:()=>lm,id:()=>fm,is:()=>dm,it:()=>pm,ja:()=>hm,ka:()=>mm,kh:()=>gm,km:()=>Ys,ko:()=>ym,lt:()=>xm,mk:()=>vm,ms:()=>_m,nl:()=>bm,no:()=>Sm,ota:()=>Im,pl:()=>Mm,ps:()=>wm,pt:()=>Em,ru:()=>Tm,sl:()=>Am,sv:()=>Pm,ta:()=>Rm,th:()=>Cm,tr:()=>Om,ua:()=>Um,uk:()=>ea,ur:()=>Fm,vi:()=>Nm,yo:()=>Lm,zhCN:()=>km,zhTW:()=>Dm});f();f();var IR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected,"\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ").concat(n(r.input));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 ".concat($(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: ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?" \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ".concat((s=r.origin)!=null?s:"\u0627\u0644\u0642\u064A\u0645\u0629"," ").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0627\u0644\u0642\u064A\u0645\u0629"," ").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ".concat(r.origin," \u0623\u0646 \u064A\u0643\u0648\u0646 ").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ".concat(r.origin," \u0623\u0646 \u064A\u0643\u0648\u0646 ").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(r.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"\u0645\u0639\u0631\u0641".concat(r.keys.length>1?"\u0627\u062A":""," \u063A\u0631\u064A\u0628").concat(r.keys.length>1?"\u0629":"",": ").concat(C(r.keys,"\u060C "));case"invalid_key":return"\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ".concat(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 ".concat(r.origin);default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function qh(){return{localeError:IR()}}o(qh,"default");f();var wR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ".concat(r.expected,", daxil olan ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ".concat($(r.values[0])):"Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ".concat((s=r.origin)!=null?s:"d\u0259y\u0259r"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"element"):"\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ".concat((u=r.origin)!=null?u:"d\u0259y\u0259r"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Yanl\u0131\u015F m\u0259tn: "'.concat(c.prefix,'" il\u0259 ba\u015Flamal\u0131d\u0131r'):c.format==="ends_with"?'Yanl\u0131\u015F m\u0259tn: "'.concat(c.suffix,'" il\u0259 bitm\u0259lidir'):c.format==="includes"?'Yanl\u0131\u015F m\u0259tn: "'.concat(c.includes,'" daxil olmal\u0131d\u0131r'):c.format==="regex"?"Yanl\u0131\u015F m\u0259tn: ".concat(c.pattern," \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r"):"Yanl\u0131\u015F ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Yanl\u0131\u015F \u0259d\u0259d: ".concat(r.divisor," il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r");case"unrecognized_keys":return"Tan\u0131nmayan a\xE7ar".concat(r.keys.length>1?"lar":"",": ").concat(C(r.keys,", "));case"invalid_key":return"".concat(r.origin," daxilind\u0259 yanl\u0131\u015F a\xE7ar");case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return"".concat(r.origin," daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r");default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function Kh(){return{localeError:wR()}}o(Kh,"default");f();function yb(e,t,n,i){let r=Math.abs(e),s=r%10,a=r%100;return a>=11&&a<=19?i:s===1?t:s>=2&&s<=4?n:i}o(yb,"getBelarusianPlural");var MR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u043B\u0456\u043A";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0456\u045E";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u;switch(r.code){case"invalid_type":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ".concat(r.expected,", \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let l=r.inclusive?"<=":"<",c=t(r.origin);if(c){let d=Number(r.maximum),h=yb(d,c.unit.one,c.unit.few,c.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 ".concat((s=r.origin)!=null?s:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ").concat(c.verb," ").concat(l).concat(r.maximum.toString()," ").concat(h)}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 ".concat((a=r.origin)!=null?a:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ").concat(l).concat(r.maximum.toString())}case"too_small":{let l=r.inclusive?">=":">",c=t(r.origin);if(c){let d=Number(r.minimum),h=yb(d,c.unit.one,c.unit.few,c.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 ".concat(r.origin," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ").concat(c.verb," ").concat(l).concat(r.minimum.toString()," ").concat(h)}return"\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ".concat(r.origin," \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ").concat(l).concat(r.minimum.toString())}case"invalid_format":{let l=r;return l.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 "'.concat(l.prefix,'"'):l.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 "'.concat(l.suffix,'"'):l.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 "'.concat(l.includes,'"'):l.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 ".concat(l.pattern):"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ".concat((u=i[l.format])!=null?u: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 ".concat(r.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ".concat(r.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447",": ").concat(C(r.keys,", "));case"invalid_key":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ".concat(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 ".concat(r.origin);default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function Yh(){return{localeError:MR()}}o(Yh,"default");f();var ER=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(e))return"\u043C\u0430\u0441\u0438\u0432";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),TR=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ".concat(i.expected,", \u043F\u043E\u043B\u0443\u0447\u0435\u043D ").concat(ER(i.input));case"invalid_value":return i.values.length===1?"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ".concat($(i.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 ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ".concat((r=i.origin)!=null?r:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"," \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"\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 ".concat((a=i.origin)!=null?a:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"," \u0434\u0430 \u0431\u044A\u0434\u0435 ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ".concat(i.origin," \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ".concat(i.origin," \u0434\u0430 \u0431\u044A\u0434\u0435 ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;if(l.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 "'.concat(l.prefix,'"');if(l.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 "'.concat(l.suffix,'"');if(l.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 "'.concat(l.includes,'"');if(l.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 ".concat(l.pattern);let c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return l.format==="emoji"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="datetime"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="date"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),l.format==="time"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),l.format==="duration"&&(c="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),"".concat(c," ").concat((u=n[l.format])!=null?u:i.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 ".concat(i.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442".concat(i.keys.length>1?"\u0438":""," \u043A\u043B\u044E\u0447").concat(i.keys.length>1?"\u043E\u0432\u0435":"",": ").concat(C(i.keys,", "));case"invalid_key":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ".concat(i.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 ".concat(i.origin);default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function Jh(){return{localeError:TR()}}o(Jh,"default");f();var AR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Tipus inv\xE0lid: s'esperava ".concat(r.expected,", s'ha rebut ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Valor inv\xE0lid: s'esperava ".concat($(r.values[0])):"Opci\xF3 inv\xE0lida: s'esperava una de ".concat(C(r.values," o "));case"too_big":{let c=r.inclusive?"com a m\xE0xim":"menys de",d=t(r.origin);return d?"Massa gran: s'esperava que ".concat((s=r.origin)!=null?s:"el valor"," contingu\xE9s ").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elements"):"Massa gran: s'esperava que ".concat((u=r.origin)!=null?u:"el valor"," fos ").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?"com a m\xEDnim":"m\xE9s de",d=t(r.origin);return d?"Massa petit: s'esperava que ".concat(r.origin," contingu\xE9s ").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"Massa petit: s'esperava que ".concat(r.origin," fos ").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Format inv\xE0lid: ha de comen\xE7ar amb "'.concat(c.prefix,'"'):c.format==="ends_with"?"Format inv\xE0lid: ha d'acabar amb \"".concat(c.suffix,'"'):c.format==="includes"?"Format inv\xE0lid: ha d'incloure \"".concat(c.includes,'"'):c.format==="regex"?"Format inv\xE0lid: ha de coincidir amb el patr\xF3 ".concat(c.pattern):"Format inv\xE0lid per a ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ".concat(r.divisor);case"unrecognized_keys":return"Clau".concat(r.keys.length>1?"s":""," no reconeguda").concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Clau inv\xE0lida a ".concat(r.origin);case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return"Element inv\xE0lid a ".concat(r.origin);default:return"Entrada inv\xE0lida"}}},"error");function Qh(){return{localeError:AR()}}o(Qh,"default");f();var PR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u010D\xEDslo";case"string":return"\u0159et\u011Bzec";case"boolean":return"boolean";case"bigint":return"bigint";case"function":return"funkce";case"symbol":return"symbol";case"undefined":return"undefined";case"object":{if(Array.isArray(r))return"pole";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h;switch(r.code){case"invalid_type":return"Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ".concat(r.expected,", obdr\u017Eeno ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ".concat($(r.values[0])):"Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ".concat(C(r.values,"|"));case"too_big":{let m=r.inclusive?"<=":"<",y=t(r.origin);return y?"Hodnota je p\u0159\xEDli\u0161 velk\xE1: ".concat((s=r.origin)!=null?s:"hodnota"," mus\xED m\xEDt ").concat(m).concat(r.maximum.toString()," ").concat((a=y.unit)!=null?a:"prvk\u016F"):"Hodnota je p\u0159\xEDli\u0161 velk\xE1: ".concat((u=r.origin)!=null?u:"hodnota"," mus\xED b\xFDt ").concat(m).concat(r.maximum.toString())}case"too_small":{let m=r.inclusive?">=":">",y=t(r.origin);return y?"Hodnota je p\u0159\xEDli\u0161 mal\xE1: ".concat((l=r.origin)!=null?l:"hodnota"," mus\xED m\xEDt ").concat(m).concat(r.minimum.toString()," ").concat((c=y.unit)!=null?c:"prvk\u016F"):"Hodnota je p\u0159\xEDli\u0161 mal\xE1: ".concat((d=r.origin)!=null?d:"hodnota"," mus\xED b\xFDt ").concat(m).concat(r.minimum.toString())}case"invalid_format":{let m=r;return m.format==="starts_with"?'Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "'.concat(m.prefix,'"'):m.format==="ends_with"?'Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "'.concat(m.suffix,'"'):m.format==="includes"?'Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "'.concat(m.includes,'"'):m.format==="regex"?"Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ".concat(m.pattern):"Neplatn\xFD form\xE1t ".concat((h=i[m.format])!=null?h:r.format)}case"not_multiple_of":return"Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ".concat(r.divisor);case"unrecognized_keys":return"Nezn\xE1m\xE9 kl\xED\u010De: ".concat(C(r.keys,", "));case"invalid_key":return"Neplatn\xFD kl\xED\u010D v ".concat(r.origin);case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return"Neplatn\xE1 hodnota v ".concat(r.origin);default:return"Neplatn\xFD vstup"}}},"error");function em(){return{localeError:PR()}}o(em,"default");f();var RR=o(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}},t={string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};function n(a){var u;return(u=e[a])!=null?u:null}o(n,"getSizing");function i(a){var u;return(u=t[a])!=null?u:a}o(i,"getTypeName");let r=o(a=>{let u=typeof a;switch(u){case"number":return Number.isNaN(a)?"NaN":"tal";case"object":return Array.isArray(a)?"liste":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype&&a.constructor?a.constructor.name:"objekt"}return u},"parsedType"),s={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"};return a=>{var u,l;switch(a.code){case"invalid_type":return"Ugyldigt input: forventede ".concat(i(a.expected),", fik ").concat(i(r(a.input)));case"invalid_value":return a.values.length===1?"Ugyldig v\xE6rdi: forventede ".concat($(a.values[0])):"Ugyldigt valg: forventede en af f\xF8lgende ".concat(C(a.values,"|"));case"too_big":{let c=a.inclusive?"<=":"<",d=n(a.origin),h=i(a.origin);return d?"For stor: forventede ".concat(h!=null?h:"value"," ").concat(d.verb," ").concat(c," ").concat(a.maximum.toString()," ").concat((u=d.unit)!=null?u:"elementer"):"For stor: forventede ".concat(h!=null?h:"value"," havde ").concat(c," ").concat(a.maximum.toString())}case"too_small":{let c=a.inclusive?">=":">",d=n(a.origin),h=i(a.origin);return d?"For lille: forventede ".concat(h," ").concat(d.verb," ").concat(c," ").concat(a.minimum.toString()," ").concat(d.unit):"For lille: forventede ".concat(h," havde ").concat(c," ").concat(a.minimum.toString())}case"invalid_format":{let c=a;return c.format==="starts_with"?'Ugyldig streng: skal starte med "'.concat(c.prefix,'"'):c.format==="ends_with"?'Ugyldig streng: skal ende med "'.concat(c.suffix,'"'):c.format==="includes"?'Ugyldig streng: skal indeholde "'.concat(c.includes,'"'):c.format==="regex"?"Ugyldig streng: skal matche m\xF8nsteret ".concat(c.pattern):"Ugyldig ".concat((l=s[c.format])!=null?l:a.format)}case"not_multiple_of":return"Ugyldigt tal: skal v\xE6re deleligt med ".concat(a.divisor);case"unrecognized_keys":return"".concat(a.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle",": ").concat(C(a.keys,", "));case"invalid_key":return"Ugyldig n\xF8gle i ".concat(a.origin);case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return"Ugyldig v\xE6rdi i ".concat(a.origin);default:return"Ugyldigt input"}}},"error");function tm(){return{localeError:RR()}}o(tm,"default");f();var CR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"Zahl";case"object":{if(Array.isArray(r))return"Array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Ung\xFCltige Eingabe: erwartet ".concat(r.expected,", erhalten ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ung\xFCltige Eingabe: erwartet ".concat($(r.values[0])):"Ung\xFCltige Option: erwartet eine von ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Zu gro\xDF: erwartet, dass ".concat((s=r.origin)!=null?s:"Wert"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"Elemente"," hat"):"Zu gro\xDF: erwartet, dass ".concat((u=r.origin)!=null?u:"Wert"," ").concat(c).concat(r.maximum.toString()," ist")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Zu klein: erwartet, dass ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," hat"):"Zu klein: erwartet, dass ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ist")}case"invalid_format":{let c=r;return c.format==="starts_with"?'Ung\xFCltiger String: muss mit "'.concat(c.prefix,'" beginnen'):c.format==="ends_with"?'Ung\xFCltiger String: muss mit "'.concat(c.suffix,'" enden'):c.format==="includes"?'Ung\xFCltiger String: muss "'.concat(c.includes,'" enthalten'):c.format==="regex"?"Ung\xFCltiger String: muss dem Muster ".concat(c.pattern," entsprechen"):"Ung\xFCltig: ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Ung\xFCltige Zahl: muss ein Vielfaches von ".concat(r.divisor," sein");case"unrecognized_keys":return"".concat(r.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel",": ").concat(C(r.keys,", "));case"invalid_key":return"Ung\xFCltiger Schl\xFCssel in ".concat(r.origin);case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return"Ung\xFCltiger Wert in ".concat(r.origin);default:return"Ung\xFCltige Eingabe"}}},"error");function nm(){return{localeError:CR()}}o(nm,"default");f();var OR=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),UR=o(()=>{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"}};function t(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Invalid input: expected ".concat(i.expected,", received ").concat(OR(i.input));case"invalid_value":return i.values.length===1?"Invalid input: expected ".concat($(i.values[0])):"Invalid option: expected one of ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"Too big: expected ".concat((r=i.origin)!=null?r:"value"," to have ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"elements"):"Too big: expected ".concat((a=i.origin)!=null?a:"value"," to be ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"Too small: expected ".concat(i.origin," to have ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"Too small: expected ".concat(i.origin," to be ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'Invalid string: must start with "'.concat(l.prefix,'"'):l.format==="ends_with"?'Invalid string: must end with "'.concat(l.suffix,'"'):l.format==="includes"?'Invalid string: must include "'.concat(l.includes,'"'):l.format==="regex"?"Invalid string: must match pattern ".concat(l.pattern):"Invalid ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"Invalid number: must be a multiple of ".concat(i.divisor);case"unrecognized_keys":return"Unrecognized key".concat(i.keys.length>1?"s":"",": ").concat(C(i.keys,", "));case"invalid_key":return"Invalid key in ".concat(i.origin);case"invalid_union":return"Invalid input";case"invalid_element":return"Invalid value in ".concat(i.origin);default:return"Invalid input"}}},"error");function Ks(){return{localeError:UR()}}o(Ks,"default");f();var FR=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"nombro";case"object":{if(Array.isArray(e))return"tabelo";if(e===null)return"senvalora";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),NR=o(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Nevalida enigo: atendi\u011Dis ".concat(i.expected,", ricevi\u011Dis ").concat(FR(i.input));case"invalid_value":return i.values.length===1?"Nevalida enigo: atendi\u011Dis ".concat($(i.values[0])):"Nevalida opcio: atendi\u011Dis unu el ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"Tro granda: atendi\u011Dis ke ".concat((r=i.origin)!=null?r:"valoro"," havu ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"elementojn"):"Tro granda: atendi\u011Dis ke ".concat((a=i.origin)!=null?a:"valoro"," havu ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"Tro malgranda: atendi\u011Dis ke ".concat(i.origin," havu ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"Tro malgranda: atendi\u011Dis ke ".concat(i.origin," estu ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'Nevalida karaktraro: devas komenci\u011Di per "'.concat(l.prefix,'"'):l.format==="ends_with"?'Nevalida karaktraro: devas fini\u011Di per "'.concat(l.suffix,'"'):l.format==="includes"?'Nevalida karaktraro: devas inkluzivi "'.concat(l.includes,'"'):l.format==="regex"?"Nevalida karaktraro: devas kongrui kun la modelo ".concat(l.pattern):"Nevalida ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"Nevalida nombro: devas esti oblo de ".concat(i.divisor);case"unrecognized_keys":return"Nekonata".concat(i.keys.length>1?"j":""," \u015Dlosilo").concat(i.keys.length>1?"j":"",": ").concat(C(i.keys,", "));case"invalid_key":return"Nevalida \u015Dlosilo en ".concat(i.origin);case"invalid_union":return"Nevalida enigo";case"invalid_element":return"Nevalida valoro en ".concat(i.origin);default:return"Nevalida enigo"}}},"error");function rm(){return{localeError:NR()}}o(rm,"default");f();var kR=o(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}},t={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"};function n(a){var u;return(u=e[a])!=null?u:null}o(n,"getSizing");function i(a){var u;return(u=t[a])!=null?u:a}o(i,"getTypeName");let r=o(a=>{let u=typeof a;switch(u){case"number":return Number.isNaN(a)?"NaN":"number";case"object":return Array.isArray(a)?"array":a===null?"null":Object.getPrototypeOf(a)!==Object.prototype?a.constructor.name:"object"}return u},"parsedType"),s={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"};return a=>{var u,l;switch(a.code){case"invalid_type":return"Entrada inv\xE1lida: se esperaba ".concat(i(a.expected),", recibido ").concat(i(r(a.input)));case"invalid_value":return a.values.length===1?"Entrada inv\xE1lida: se esperaba ".concat($(a.values[0])):"Opci\xF3n inv\xE1lida: se esperaba una de ".concat(C(a.values,"|"));case"too_big":{let c=a.inclusive?"<=":"<",d=n(a.origin),h=i(a.origin);return d?"Demasiado grande: se esperaba que ".concat(h!=null?h:"valor"," tuviera ").concat(c).concat(a.maximum.toString()," ").concat((u=d.unit)!=null?u:"elementos"):"Demasiado grande: se esperaba que ".concat(h!=null?h:"valor"," fuera ").concat(c).concat(a.maximum.toString())}case"too_small":{let c=a.inclusive?">=":">",d=n(a.origin),h=i(a.origin);return d?"Demasiado peque\xF1o: se esperaba que ".concat(h," tuviera ").concat(c).concat(a.minimum.toString()," ").concat(d.unit):"Demasiado peque\xF1o: se esperaba que ".concat(h," fuera ").concat(c).concat(a.minimum.toString())}case"invalid_format":{let c=a;return c.format==="starts_with"?'Cadena inv\xE1lida: debe comenzar con "'.concat(c.prefix,'"'):c.format==="ends_with"?'Cadena inv\xE1lida: debe terminar en "'.concat(c.suffix,'"'):c.format==="includes"?'Cadena inv\xE1lida: debe incluir "'.concat(c.includes,'"'):c.format==="regex"?"Cadena inv\xE1lida: debe coincidir con el patr\xF3n ".concat(c.pattern):"Inv\xE1lido ".concat((l=s[c.format])!=null?l:a.format)}case"not_multiple_of":return"N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ".concat(a.divisor);case"unrecognized_keys":return"Llave".concat(a.keys.length>1?"s":""," desconocida").concat(a.keys.length>1?"s":"",": ").concat(C(a.keys,", "));case"invalid_key":return"Llave inv\xE1lida en ".concat(i(a.origin));case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return"Valor inv\xE1lido en ".concat(i(a.origin));default:return"Entrada inv\xE1lida"}}},"error");function im(){return{localeError:kR()}}o(im,"default");f();var DR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0622\u0631\u0627\u06CC\u0647";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ".concat(r.expected," \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ").concat(n(r.input)," \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 ".concat($(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 ".concat(C(r.values,"|")," \u0645\u06CC\u200C\u0628\u0648\u062F");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ".concat((s=r.origin)!=null?s:"\u0645\u0642\u062F\u0627\u0631"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0639\u0646\u0635\u0631"," \u0628\u0627\u0634\u062F"):"\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ".concat((u=r.origin)!=null?u:"\u0645\u0642\u062F\u0627\u0631"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," \u0628\u0627\u0634\u062F")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," \u0628\u0627\u0634\u062F"):"\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," \u0628\u0627\u0634\u062F")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "'.concat(c.prefix,'" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F'):c.format==="ends_with"?'\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "'.concat(c.suffix,'" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F'):c.format==="includes"?'\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "'.concat(c.includes,'" \u0628\u0627\u0634\u062F'):c.format==="regex"?"\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ".concat(c.pattern," \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor," \u0628\u0627\u0634\u062F");case"unrecognized_keys":return"\u06A9\u0644\u06CC\u062F".concat(r.keys.length>1?"\u0647\u0627\u06CC":""," \u0646\u0627\u0634\u0646\u0627\u0633: ").concat(C(r.keys,", "));case"invalid_key":return"\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ".concat(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 ".concat(r.origin);default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function om(){return{localeError:DR()}}o(om,"default");f();var LR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s;switch(r.code){case"invalid_type":return"Virheellinen tyyppi: odotettiin ".concat(r.expected,", oli ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Virheellinen sy\xF6te: t\xE4ytyy olla ".concat($(r.values[0])):"Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ".concat(C(r.values,"|"));case"too_big":{let a=r.inclusive?"<=":"<",u=t(r.origin);return u?"Liian suuri: ".concat(u.subject," t\xE4ytyy olla ").concat(a).concat(r.maximum.toString()," ").concat(u.unit).trim():"Liian suuri: arvon t\xE4ytyy olla ".concat(a).concat(r.maximum.toString())}case"too_small":{let a=r.inclusive?">=":">",u=t(r.origin);return u?"Liian pieni: ".concat(u.subject," t\xE4ytyy olla ").concat(a).concat(r.minimum.toString()," ").concat(u.unit).trim():"Liian pieni: arvon t\xE4ytyy olla ".concat(a).concat(r.minimum.toString())}case"invalid_format":{let a=r;return a.format==="starts_with"?'Virheellinen sy\xF6te: t\xE4ytyy alkaa "'.concat(a.prefix,'"'):a.format==="ends_with"?'Virheellinen sy\xF6te: t\xE4ytyy loppua "'.concat(a.suffix,'"'):a.format==="includes"?'Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "'.concat(a.includes,'"'):a.format==="regex"?"Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ".concat(a.pattern):"Virheellinen ".concat((s=i[a.format])!=null?s:r.format)}case"not_multiple_of":return"Virheellinen luku: t\xE4ytyy olla luvun ".concat(r.divisor," monikerta");case"unrecognized_keys":return"".concat(r.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain",": ").concat(C(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"}}},"error");function sm(){return{localeError:LR()}}o(sm,"default");f();var $R=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"nombre";case"object":{if(Array.isArray(r))return"tableau";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Entr\xE9e invalide : ".concat(r.expected," attendu, ").concat(n(r.input)," re\xE7u");case"invalid_value":return r.values.length===1?"Entr\xE9e invalide : ".concat($(r.values[0])," attendu"):"Option invalide : une valeur parmi ".concat(C(r.values,"|")," attendue");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Trop grand : ".concat((s=r.origin)!=null?s:"valeur"," doit ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\xE9l\xE9ment(s)"):"Trop grand : ".concat((u=r.origin)!=null?u:"valeur"," doit \xEAtre ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Trop petit : ".concat(r.origin," doit ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Trop petit : ".concat(r.origin," doit \xEAtre ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Cha\xEEne invalide : doit commencer par "'.concat(c.prefix,'"'):c.format==="ends_with"?'Cha\xEEne invalide : doit se terminer par "'.concat(c.suffix,'"'):c.format==="includes"?'Cha\xEEne invalide : doit inclure "'.concat(c.includes,'"'):c.format==="regex"?"Cha\xEEne invalide : doit correspondre au mod\xE8le ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \xEAtre un multiple de ".concat(r.divisor);case"unrecognized_keys":return"Cl\xE9".concat(r.keys.length>1?"s":""," non reconnue").concat(r.keys.length>1?"s":""," : ").concat(C(r.keys,", "));case"invalid_key":return"Cl\xE9 invalide dans ".concat(r.origin);case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(r.origin);default:return"Entr\xE9e invalide"}}},"error");function am(){return{localeError:$R()}}o(am,"default");f();var zR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u;switch(r.code){case"invalid_type":return"Entr\xE9e invalide : attendu ".concat(r.expected,", re\xE7u ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Entr\xE9e invalide : attendu ".concat($(r.values[0])):"Option invalide : attendu l'une des valeurs suivantes ".concat(C(r.values,"|"));case"too_big":{let l=r.inclusive?"\u2264":"<",c=t(r.origin);return c?"Trop grand : attendu que ".concat((s=r.origin)!=null?s:"la valeur"," ait ").concat(l).concat(r.maximum.toString()," ").concat(c.unit):"Trop grand : attendu que ".concat((a=r.origin)!=null?a:"la valeur"," soit ").concat(l).concat(r.maximum.toString())}case"too_small":{let l=r.inclusive?"\u2265":">",c=t(r.origin);return c?"Trop petit : attendu que ".concat(r.origin," ait ").concat(l).concat(r.minimum.toString()," ").concat(c.unit):"Trop petit : attendu que ".concat(r.origin," soit ").concat(l).concat(r.minimum.toString())}case"invalid_format":{let l=r;return l.format==="starts_with"?'Cha\xEEne invalide : doit commencer par "'.concat(l.prefix,'"'):l.format==="ends_with"?'Cha\xEEne invalide : doit se terminer par "'.concat(l.suffix,'"'):l.format==="includes"?'Cha\xEEne invalide : doit inclure "'.concat(l.includes,'"'):l.format==="regex"?"Cha\xEEne invalide : doit correspondre au motif ".concat(l.pattern):"".concat((u=i[l.format])!=null?u:r.format," invalide")}case"not_multiple_of":return"Nombre invalide : doit \xEAtre un multiple de ".concat(r.divisor);case"unrecognized_keys":return"Cl\xE9".concat(r.keys.length>1?"s":""," non reconnue").concat(r.keys.length>1?"s":""," : ").concat(C(r.keys,", "));case"invalid_key":return"Cl\xE9 invalide dans ".concat(r.origin);case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return"Valeur invalide dans ".concat(r.origin);default:return"Entr\xE9e invalide"}}},"error");function cm(){return{localeError:zR()}}o(cm,"default");f();var BR=o(()=>{let e={string:{unit:"\u05D0\u05D5\u05EA\u05D9\u05D5\u05EA",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",verb:"\u05DC\u05DB\u05DC\u05D5\u05DC"}};function t(r){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"\u05E7\u05DC\u05D8",email:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",url:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",emoji:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",date:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",time:"\u05D6\u05DE\u05DF ISO",duration:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",ipv4:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",ipv6:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",cidrv4:"\u05D8\u05D5\u05D5\u05D7 IPv4",cidrv6:"\u05D8\u05D5\u05D5\u05D7 IPv6",base64:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",base64url:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",json_string:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",e164:"\u05DE\u05E1\u05E4\u05E8 E.164",jwt:"JWT",template_literal:"\u05E7\u05DC\u05D8"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ".concat(r.expected,", \u05D4\u05EA\u05E7\u05D1\u05DC ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA ".concat($(r.values[0])):"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05D0\u05D7\u05EA \u05DE\u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ".concat((s=r.origin)!=null?s:"value"," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elements"):"\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ".concat((u=r.origin)!=null?u:"value"," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(r.origin," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ".concat(r.origin," \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1"'.concat(c.prefix,'"'):c.format==="ends_with"?'\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "'.concat(c.suffix,'"'):c.format==="includes"?'\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "'.concat(c.includes,'"'):c.format==="regex"?"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05E0\u05D4: \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF")}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 ".concat(r.divisor);case"unrecognized_keys":return"\u05DE\u05E4\u05EA\u05D7".concat(r.keys.length>1?"\u05D5\u05EA":""," \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4").concat(r.keys.length>1?"\u05D9\u05DD":"\u05D4",": ").concat(C(r.keys,", "));case"invalid_key":return"\u05DE\u05E4\u05EA\u05D7 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1".concat(r.origin);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".concat(r.origin);default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function um(){return{localeError:BR()}}o(um,"default");f();var VR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"sz\xE1m";case"object":{if(Array.isArray(r))return"t\xF6mb";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ".concat(r.expected,", a kapott \xE9rt\xE9k ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ".concat($(r.values[0])):"\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"T\xFAl nagy: ".concat((s=r.origin)!=null?s:"\xE9rt\xE9k"," m\xE9rete t\xFAl nagy ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elem"):"T\xFAl nagy: a bemeneti \xE9rt\xE9k ".concat((u=r.origin)!=null?u:"\xE9rt\xE9k"," t\xFAl nagy: ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"T\xFAl kicsi: a bemeneti \xE9rt\xE9k ".concat(r.origin," m\xE9rete t\xFAl kicsi ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"T\xFAl kicsi: a bemeneti \xE9rt\xE9k ".concat(r.origin," t\xFAl kicsi ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\xC9rv\xE9nytelen string: "'.concat(c.prefix,'" \xE9rt\xE9kkel kell kezd\u0151dnie'):c.format==="ends_with"?'\xC9rv\xE9nytelen string: "'.concat(c.suffix,'" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie'):c.format==="includes"?'\xC9rv\xE9nytelen string: "'.concat(c.includes,'" \xE9rt\xE9ket kell tartalmaznia'):c.format==="regex"?"\xC9rv\xE9nytelen string: ".concat(c.pattern," mint\xE1nak kell megfelelnie"):"\xC9rv\xE9nytelen ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\xC9rv\xE9nytelen sz\xE1m: ".concat(r.divisor," t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie");case"unrecognized_keys":return"Ismeretlen kulcs".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"\xC9rv\xE9nytelen kulcs ".concat(r.origin);case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return"\xC9rv\xE9nytelen \xE9rt\xE9k: ".concat(r.origin);default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function lm(){return{localeError:VR()}}o(lm,"default");f();var jR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Input tidak valid: diharapkan ".concat(r.expected,", diterima ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Input tidak valid: diharapkan ".concat($(r.values[0])):"Pilihan tidak valid: diharapkan salah satu dari ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Terlalu besar: diharapkan ".concat((s=r.origin)!=null?s:"value"," memiliki ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elemen"):"Terlalu besar: diharapkan ".concat((u=r.origin)!=null?u:"value"," menjadi ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Terlalu kecil: diharapkan ".concat(r.origin," memiliki ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Terlalu kecil: diharapkan ".concat(r.origin," menjadi ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'String tidak valid: harus dimulai dengan "'.concat(c.prefix,'"'):c.format==="ends_with"?'String tidak valid: harus berakhir dengan "'.concat(c.suffix,'"'):c.format==="includes"?'String tidak valid: harus menyertakan "'.concat(c.includes,'"'):c.format==="regex"?"String tidak valid: harus sesuai pola ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," tidak valid")}case"not_multiple_of":return"Angka tidak valid: harus kelipatan dari ".concat(r.divisor);case"unrecognized_keys":return"Kunci tidak dikenali ".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Kunci tidak valid di ".concat(r.origin);case"invalid_union":return"Input tidak valid";case"invalid_element":return"Nilai tidak valid di ".concat(r.origin);default:return"Input tidak valid"}}},"error");function fm(){return{localeError:jR()}}o(fm,"default");f();var GR=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"n\xFAmer";case"object":{if(Array.isArray(e))return"fylki";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),HR=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Rangt gildi: \xDE\xFA sl\xF3st inn ".concat(GR(i.input)," \xFEar sem \xE1 a\xF0 vera ").concat(i.expected);case"invalid_value":return i.values.length===1?"Rangt gildi: gert r\xE1\xF0 fyrir ".concat($(i.values[0])):"\xD3gilt val: m\xE1 vera eitt af eftirfarandi ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ".concat((r=i.origin)!=null?r:"gildi"," hafi ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"hluti"):"Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ".concat((a=i.origin)!=null?a:"gildi"," s\xE9 ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ".concat(i.origin," hafi ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ".concat(i.origin," s\xE9 ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "'.concat(l.prefix,'"'):l.format==="ends_with"?'\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "'.concat(l.suffix,'"'):l.format==="includes"?'\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "'.concat(l.includes,'"'):l.format==="regex"?"\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ".concat(l.pattern):"Rangt ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ".concat(i.divisor);case"unrecognized_keys":return"\xD3\xFEekkt ".concat(i.keys.length>1?"ir lyklar":"ur lykill",": ").concat(C(i.keys,", "));case"invalid_key":return"Rangur lykill \xED ".concat(i.origin);case"invalid_union":return"Rangt gildi";case"invalid_element":return"Rangt gildi \xED ".concat(i.origin);default:return"Rangt gildi"}}},"error");function dm(){return{localeError:HR()}}o(dm,"default");f();var WR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"numero";case"object":{if(Array.isArray(r))return"vettore";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Input non valido: atteso ".concat(r.expected,", ricevuto ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Input non valido: atteso ".concat($(r.values[0])):"Opzione non valida: atteso uno tra ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Troppo grande: ".concat((s=r.origin)!=null?s:"valore"," deve avere ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementi"):"Troppo grande: ".concat((u=r.origin)!=null?u:"valore"," deve essere ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Troppo piccolo: ".concat(r.origin," deve avere ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Troppo piccolo: ".concat(r.origin," deve essere ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Stringa non valida: deve iniziare con "'.concat(c.prefix,'"'):c.format==="ends_with"?'Stringa non valida: deve terminare con "'.concat(c.suffix,'"'):c.format==="includes"?'Stringa non valida: deve includere "'.concat(c.includes,'"'):c.format==="regex"?"Stringa non valida: deve corrispondere al pattern ".concat(c.pattern):"Invalid ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Numero non valido: deve essere un multiplo di ".concat(r.divisor);case"unrecognized_keys":return"Chiav".concat(r.keys.length>1?"i":"e"," non riconosciut").concat(r.keys.length>1?"e":"a",": ").concat(C(r.keys,", "));case"invalid_key":return"Chiave non valida in ".concat(r.origin);case"invalid_union":return"Input non valido";case"invalid_element":return"Valore non valido in ".concat(r.origin);default:return"Input non valido"}}},"error");function pm(){return{localeError:WR()}}o(pm,"default");f();var ZR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u6570\u5024";case"object":{if(Array.isArray(r))return"\u914D\u5217";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u7121\u52B9\u306A\u5165\u529B: ".concat(r.expected,"\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001").concat(n(r.input),"\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F");case"invalid_value":return r.values.length===1?"\u7121\u52B9\u306A\u5165\u529B: ".concat($(r.values[0]),"\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F"):"\u7121\u52B9\u306A\u9078\u629E: ".concat(C(r.values,"\u3001"),"\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059");case"too_big":{let c=r.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",d=t(r.origin);return d?"\u5927\u304D\u3059\u304E\u308B\u5024: ".concat((s=r.origin)!=null?s:"\u5024","\u306F").concat(r.maximum.toString()).concat((a=d.unit)!=null?a:"\u8981\u7D20").concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"):"\u5927\u304D\u3059\u304E\u308B\u5024: ".concat((u=r.origin)!=null?u:"\u5024","\u306F").concat(r.maximum.toString()).concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059")}case"too_small":{let c=r.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",d=t(r.origin);return d?"\u5C0F\u3055\u3059\u304E\u308B\u5024: ".concat(r.origin,"\u306F").concat(r.minimum.toString()).concat(d.unit).concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"):"\u5C0F\u3055\u3059\u304E\u308B\u5024: ".concat(r.origin,"\u306F").concat(r.minimum.toString()).concat(c,"\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u7121\u52B9\u306A\u6587\u5B57\u5217: "'.concat(c.prefix,'"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059'):c.format==="ends_with"?'\u7121\u52B9\u306A\u6587\u5B57\u5217: "'.concat(c.suffix,'"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059'):c.format==="includes"?'\u7121\u52B9\u306A\u6587\u5B57\u5217: "'.concat(c.includes,'"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059'):c.format==="regex"?"\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3".concat(c.pattern,"\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"):"\u7121\u52B9\u306A".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u7121\u52B9\u306A\u6570\u5024: ".concat(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".concat(r.keys.length>1?"\u7FA4":"",": ").concat(C(r.keys,"\u3001"));case"invalid_key":return"".concat(r.origin,"\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC");case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return"".concat(r.origin,"\u5185\u306E\u7121\u52B9\u306A\u5024");default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function hm(){return{localeError:ZR()}}o(hm,"default");f();var XR=o(e=>{var i;let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8";case"object":{if(Array.isArray(e))return"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return(i={string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",undefined:"undefined",bigint:"bigint",symbol:"symbol",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0"}[t])!=null?i:t},"parsedType"),qR=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a;switch(i.code){case"invalid_type":return"\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 ".concat(i.expected,", \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ").concat(XR(i.input));case"invalid_value":return i.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 ".concat($(i.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 ".concat(C(i.values,"|"),"-\u10D3\u10D0\u10DC");case"too_big":{let u=i.inclusive?"<=":"<",l=t(i.origin);return l?"\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ".concat((r=i.origin)!=null?r:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"," ").concat(l.verb," ").concat(u).concat(i.maximum.toString()," ").concat(l.unit):"\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ".concat((s=i.origin)!=null?s:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"," \u10D8\u10E7\u10DD\u10E1 ").concat(u).concat(i.maximum.toString())}case"too_small":{let u=i.inclusive?">=":">",l=t(i.origin);return l?"\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 ".concat(i.origin," ").concat(l.verb," ").concat(u).concat(i.minimum.toString()," ").concat(l.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 ".concat(i.origin," \u10D8\u10E7\u10DD\u10E1 ").concat(u).concat(i.minimum.toString())}case"invalid_format":{let u=i;return u.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 "'.concat(u.prefix,'"-\u10D8\u10D7'):u.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 "'.concat(u.suffix,'"-\u10D8\u10D7'):u.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 "'.concat(u.includes,'"-\u10E1'):u.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 ".concat(u.pattern):"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ".concat((a=n[u.format])!=null?a:i.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 ".concat(i.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".concat(i.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8",": ").concat(C(i.keys,", "));case"invalid_key":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ".concat(i.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 ".concat(i.origin,"-\u10E8\u10D8");default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function mm(){return{localeError:qR()}}o(mm,"default");f();f();var KR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u1798\u17B7\u1793\u1798\u17C2\u1793\u1787\u17B6\u179B\u17C1\u1781 (NaN)":"\u179B\u17C1\u1781";case"object":{if(Array.isArray(r))return"\u17A2\u17B6\u179A\u17C1 (Array)";if(r===null)return"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected," \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat((s=r.origin)!=null?s:"\u178F\u1798\u17D2\u179B\u17C3"," ").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u1792\u17B6\u178F\u17BB"):"\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat((u=r.origin)!=null?u:"\u178F\u1798\u17D2\u179B\u17C3"," ").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat(r.origin," ").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ".concat(r.origin," ").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ".concat(C(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 ".concat(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 ".concat(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"}}},"error");function Ys(){return{localeError:KR()}}o(Ys,"default");function gm(){return Ys()}o(gm,"default");f();var YR=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h;switch(r.code){case"invalid_type":return"\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ".concat(r.expected,", \uBC1B\uC740 \uD0C0\uC785\uC740 ").concat(n(r.input),"\uC785\uB2C8\uB2E4");case"invalid_value":return r.values.length===1?"\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ".concat($(r.values[0])," \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4"):"\uC798\uBABB\uB41C \uC635\uC158: ".concat(C(r.values,"\uB610\uB294 ")," \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4");case"too_big":{let m=r.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",y=m==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",v=t(r.origin),I=(s=v==null?void 0:v.unit)!=null?s:"\uC694\uC18C";return v?"".concat((a=r.origin)!=null?a:"\uAC12","\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ").concat(r.maximum.toString()).concat(I," ").concat(m).concat(y):"".concat((u=r.origin)!=null?u:"\uAC12","\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ").concat(r.maximum.toString()," ").concat(m).concat(y)}case"too_small":{let m=r.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",y=m==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",v=t(r.origin),I=(l=v==null?void 0:v.unit)!=null?l:"\uC694\uC18C";return v?"".concat((c=r.origin)!=null?c:"\uAC12","\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ").concat(r.minimum.toString()).concat(I," ").concat(m).concat(y):"".concat((d=r.origin)!=null?d:"\uAC12","\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ").concat(r.minimum.toString()," ").concat(m).concat(y)}case"invalid_format":{let m=r;return m.format==="starts_with"?'\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "'.concat(m.prefix,'"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4'):m.format==="ends_with"?'\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "'.concat(m.suffix,'"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4'):m.format==="includes"?'\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "'.concat(m.includes,'"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4'):m.format==="regex"?"\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ".concat(m.pattern," \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4"):"\uC798\uBABB\uB41C ".concat((h=i[m.format])!=null?h:r.format)}case"not_multiple_of":return"\uC798\uBABB\uB41C \uC22B\uC790: ".concat(r.divisor,"\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4");case"unrecognized_keys":return"\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ".concat(C(r.keys,", "));case"invalid_key":return"\uC798\uBABB\uB41C \uD0A4: ".concat(r.origin);case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return"\uC798\uBABB\uB41C \uAC12: ".concat(r.origin);default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function ym(){return{localeError:YR()}}o(ym,"default");f();var JR=o(e=>Qs(typeof e,e),"parsedType"),Qs=o((e,t=void 0)=>{switch(e){case"number":return Number.isNaN(t)?"NaN":"skai\u010Dius";case"bigint":return"sveikasis skai\u010Dius";case"string":return"eilut\u0117";case"boolean":return"login\u0117 reik\u0161m\u0117";case"undefined":case"void":return"neapibr\u0117\u017Eta reik\u0161m\u0117";case"function":return"funkcija";case"symbol":return"simbolis";case"object":return t===void 0?"ne\u017Einomas objektas":t===null?"nulin\u0117 reik\u0161m\u0117":Array.isArray(t)?"masyvas":Object.getPrototypeOf(t)!==Object.prototype&&t.constructor?t.constructor.name:"objektas";case"null":return"nulin\u0117 reik\u0161m\u0117"}return e},"parsedTypeFromType"),Js=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function xb(e){let t=Math.abs(e),n=t%10,i=t%100;return i>=11&&i<=19||n===0?"many":n===1?"one":"few"}o(xb,"getUnitTypeFromNumber");var QR=o(()=>{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(i,r,s,a){var l;let u=(l=e[i])!=null?l:null;return u===null?u:{unit:u.unit[r],verb:u.verb[a][s?"inclusive":"notInclusive"]}}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u,l,c,d,h,m,y;switch(i.code){case"invalid_type":return"Gautas tipas ".concat(JR(i.input),", o tik\u0117tasi - ").concat(Qs(i.expected));case"invalid_value":return i.values.length===1?"Privalo b\u016Bti ".concat($(i.values[0])):"Privalo b\u016Bti vienas i\u0161 ".concat(C(i.values,"|")," pasirinkim\u0173");case"too_big":{let v=Qs(i.origin),I=t(i.origin,xb(Number(i.maximum)),(r=i.inclusive)!=null?r:!1,"smaller");if(I!=null&&I.verb)return"".concat(Js((s=v!=null?v:i.origin)!=null?s:"reik\u0161m\u0117")," ").concat(I.verb," ").concat(i.maximum.toString()," ").concat((a=I.unit)!=null?a:"element\u0173");let T=i.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return"".concat(Js((u=v!=null?v:i.origin)!=null?u:"reik\u0161m\u0117")," turi b\u016Bti ").concat(T," ").concat(i.maximum.toString()," ").concat(I==null?void 0:I.unit)}case"too_small":{let v=Qs(i.origin),I=t(i.origin,xb(Number(i.minimum)),(l=i.inclusive)!=null?l:!1,"bigger");if(I!=null&&I.verb)return"".concat(Js((c=v!=null?v:i.origin)!=null?c:"reik\u0161m\u0117")," ").concat(I.verb," ").concat(i.minimum.toString()," ").concat((d=I.unit)!=null?d:"element\u0173");let T=i.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return"".concat(Js((h=v!=null?v:i.origin)!=null?h:"reik\u0161m\u0117")," turi b\u016Bti ").concat(T," ").concat(i.minimum.toString()," ").concat(I==null?void 0:I.unit)}case"invalid_format":{let v=i;return v.format==="starts_with"?'Eilut\u0117 privalo prasid\u0117ti "'.concat(v.prefix,'"'):v.format==="ends_with"?'Eilut\u0117 privalo pasibaigti "'.concat(v.suffix,'"'):v.format==="includes"?'Eilut\u0117 privalo \u012Ftraukti "'.concat(v.includes,'"'):v.format==="regex"?"Eilut\u0117 privalo atitikti ".concat(v.pattern):"Neteisingas ".concat((m=n[v.format])!=null?m:i.format)}case"not_multiple_of":return"Skai\u010Dius privalo b\u016Bti ".concat(i.divisor," kartotinis.");case"unrecognized_keys":return"Neatpa\u017Eint".concat(i.keys.length>1?"i":"as"," rakt").concat(i.keys.length>1?"ai":"as",": ").concat(C(i.keys,", "));case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let v=Qs(i.origin);return"".concat(Js((y=v!=null?v:i.origin)!=null?y:"reik\u0161m\u0117")," turi klaiding\u0105 \u012Fvest\u012F")}default:return"Klaidinga \u012Fvestis"}}},"error");function xm(){return{localeError:QR()}}o(xm,"default");f();var eC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0431\u0440\u043E\u0458";case"object":{if(Array.isArray(r))return"\u043D\u0438\u0437\u0430";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat(r.expected,", \u043F\u0440\u0438\u043C\u0435\u043D\u043E ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Invalid input: expected ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat((s=r.origin)!=null?s:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"," \u0434\u0430 \u0438\u043C\u0430 ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"," \u0434\u0430 \u0431\u0438\u0434\u0435 ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat(r.origin," \u0434\u0430 \u0438\u043C\u0430 ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ".concat(r.origin," \u0434\u0430 \u0431\u0438\u0434\u0435 ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"Invalid ".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"".concat(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",": ").concat(C(r.keys,", "));case"invalid_key":return"\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ".concat(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 ".concat(r.origin);default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function vm(){return{localeError:eC()}}o(vm,"default");f();var tC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"nombor";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Input tidak sah: dijangka ".concat(r.expected,", diterima ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Input tidak sah: dijangka ".concat($(r.values[0])):"Pilihan tidak sah: dijangka salah satu daripada ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Terlalu besar: dijangka ".concat((s=r.origin)!=null?s:"nilai"," ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elemen"):"Terlalu besar: dijangka ".concat((u=r.origin)!=null?u:"nilai"," adalah ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Terlalu kecil: dijangka ".concat(r.origin," ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Terlalu kecil: dijangka ".concat(r.origin," adalah ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'String tidak sah: mesti bermula dengan "'.concat(c.prefix,'"'):c.format==="ends_with"?'String tidak sah: mesti berakhir dengan "'.concat(c.suffix,'"'):c.format==="includes"?'String tidak sah: mesti mengandungi "'.concat(c.includes,'"'):c.format==="regex"?"String tidak sah: mesti sepadan dengan corak ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," tidak sah")}case"not_multiple_of":return"Nombor tidak sah: perlu gandaan ".concat(r.divisor);case"unrecognized_keys":return"Kunci tidak dikenali: ".concat(C(r.keys,", "));case"invalid_key":return"Kunci tidak sah dalam ".concat(r.origin);case"invalid_union":return"Input tidak sah";case"invalid_element":return"Nilai tidak sah dalam ".concat(r.origin);default:return"Input tidak sah"}}},"error");function _m(){return{localeError:tC()}}o(_m,"default");f();var nC=o(()=>{let e={string:{unit:"tekens"},file:{unit:"bytes"},array:{unit:"elementen"},set:{unit:"elementen"}};function t(r){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"getal";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Ongeldige invoer: verwacht ".concat(r.expected,", ontving ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ongeldige invoer: verwacht ".concat($(r.values[0])):"Ongeldige optie: verwacht \xE9\xE9n van ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Te lang: verwacht dat ".concat((s=r.origin)!=null?s:"waarde"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementen"," bevat"):"Te lang: verwacht dat ".concat((u=r.origin)!=null?u:"waarde"," ").concat(c).concat(r.maximum.toString()," is")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Te kort: verwacht dat ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," bevat"):"Te kort: verwacht dat ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," is")}case"invalid_format":{let c=r;return c.format==="starts_with"?'Ongeldige tekst: moet met "'.concat(c.prefix,'" beginnen'):c.format==="ends_with"?'Ongeldige tekst: moet op "'.concat(c.suffix,'" eindigen'):c.format==="includes"?'Ongeldige tekst: moet "'.concat(c.includes,'" bevatten'):c.format==="regex"?"Ongeldige tekst: moet overeenkomen met patroon ".concat(c.pattern):"Ongeldig: ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Ongeldig getal: moet een veelvoud van ".concat(r.divisor," zijn");case"unrecognized_keys":return"Onbekende key".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Ongeldige key in ".concat(r.origin);case"invalid_union":return"Ongeldige invoer";case"invalid_element":return"Ongeldige waarde in ".concat(r.origin);default:return"Ongeldige invoer"}}},"error");function bm(){return{localeError:nC()}}o(bm,"default");f();var rC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"tall";case"object":{if(Array.isArray(r))return"liste";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Ugyldig input: forventet ".concat(r.expected,", fikk ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ugyldig verdi: forventet ".concat($(r.values[0])):"Ugyldig valg: forventet en av ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"For stor(t): forventet ".concat((s=r.origin)!=null?s:"value"," til \xE5 ha ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementer"):"For stor(t): forventet ".concat((u=r.origin)!=null?u:"value"," til \xE5 ha ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"For lite(n): forventet ".concat(r.origin," til \xE5 ha ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"For lite(n): forventet ".concat(r.origin," til \xE5 ha ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Ugyldig streng: m\xE5 starte med "'.concat(c.prefix,'"'):c.format==="ends_with"?'Ugyldig streng: m\xE5 ende med "'.concat(c.suffix,'"'):c.format==="includes"?'Ugyldig streng: m\xE5 inneholde "'.concat(c.includes,'"'):c.format==="regex"?"Ugyldig streng: m\xE5 matche m\xF8nsteret ".concat(c.pattern):"Ugyldig ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Ugyldig tall: m\xE5 v\xE6re et multiplum av ".concat(r.divisor);case"unrecognized_keys":return"".concat(r.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel",": ").concat(C(r.keys,", "));case"invalid_key":return"Ugyldig n\xF8kkel i ".concat(r.origin);case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i ".concat(r.origin);default:return"Ugyldig input"}}},"error");function Sm(){return{localeError:rC()}}o(Sm,"default");f();var iC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"numara";case"object":{if(Array.isArray(r))return"saf";if(r===null)return"gayb";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"F\xE2sit giren: umulan ".concat(r.expected,", al\u0131nan ").concat(n(r.input));case"invalid_value":return r.values.length===1?"F\xE2sit giren: umulan ".concat($(r.values[0])):"F\xE2sit tercih: m\xFBteberler ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Fazla b\xFCy\xFCk: ".concat((s=r.origin)!=null?s:"value",", ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elements"," sahip olmal\u0131yd\u0131."):"Fazla b\xFCy\xFCk: ".concat((u=r.origin)!=null?u:"value",", ").concat(c).concat(r.maximum.toString()," olmal\u0131yd\u0131.")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Fazla k\xFC\xE7\xFCk: ".concat(r.origin,", ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," sahip olmal\u0131yd\u0131."):"Fazla k\xFC\xE7\xFCk: ".concat(r.origin,", ").concat(c).concat(r.minimum.toString()," olmal\u0131yd\u0131.")}case"invalid_format":{let c=r;return c.format==="starts_with"?'F\xE2sit metin: "'.concat(c.prefix,'" ile ba\u015Flamal\u0131.'):c.format==="ends_with"?'F\xE2sit metin: "'.concat(c.suffix,'" ile bitmeli.'):c.format==="includes"?'F\xE2sit metin: "'.concat(c.includes,'" ihtiv\xE2 etmeli.'):c.format==="regex"?"F\xE2sit metin: ".concat(c.pattern," nak\u015F\u0131na uymal\u0131."):"F\xE2sit ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"F\xE2sit say\u0131: ".concat(r.divisor," kat\u0131 olmal\u0131yd\u0131.");case"unrecognized_keys":return"Tan\u0131nmayan anahtar ".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"".concat(r.origin," i\xE7in tan\u0131nmayan anahtar var.");case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return"".concat(r.origin," i\xE7in tan\u0131nmayan k\u0131ymet var.");default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function Im(){return{localeError:iC()}}o(Im,"default");f();var oC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0639\u062F\u062F";case"object":{if(Array.isArray(r))return"\u0627\u0631\u06D0";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ".concat(r.expected," \u0648\u0627\u06CC, \u0645\u06AB\u0631 ").concat(n(r.input)," \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 ".concat($(r.values[0])," \u0648\u0627\u06CC"):"\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ".concat(C(r.values,"|")," \u0685\u062E\u0647 \u0648\u0627\u06CC");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u0689\u06CC\u0631 \u0644\u0648\u06CC: ".concat((s=r.origin)!=null?s:"\u0627\u0631\u0632\u069A\u062A"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"," \u0648\u0644\u0631\u064A"):"\u0689\u06CC\u0631 \u0644\u0648\u06CC: ".concat((u=r.origin)!=null?u:"\u0627\u0631\u0632\u069A\u062A"," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.maximum.toString()," \u0648\u064A")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," \u0648\u0644\u0631\u064A"):"\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ".concat(r.origin," \u0628\u0627\u06CC\u062F ").concat(c).concat(r.minimum.toString()," \u0648\u064A")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "'.concat(c.prefix,'" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A'):c.format==="ends_with"?'\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "'.concat(c.suffix,'" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A'):c.format==="includes"?'\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "'.concat(c.includes,'" \u0648\u0644\u0631\u064A'):c.format==="regex"?"\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ".concat(c.pattern," \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A"):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor," \u0645\u0636\u0631\u0628 \u0648\u064A");case"unrecognized_keys":return"\u0646\u0627\u0633\u0645 ".concat(r.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689",": ").concat(C(r.keys,", "));case"invalid_key":return"\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ".concat(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 ".concat(r.origin," \u06A9\u06D0");default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function wm(){return{localeError:oC()}}o(wm,"default");f();var sC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"liczba";case"object":{if(Array.isArray(r))return"tablica";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h;switch(r.code){case"invalid_type":return"Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ".concat(r.expected,", otrzymano ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ".concat($(r.values[0])):"Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ".concat(C(r.values,"|"));case"too_big":{let m=r.inclusive?"<=":"<",y=t(r.origin);return y?"Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ".concat((s=r.origin)!=null?s:"warto\u015B\u0107"," b\u0119dzie mie\u0107 ").concat(m).concat(r.maximum.toString()," ").concat((a=y.unit)!=null?a:"element\xF3w"):"Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ".concat((u=r.origin)!=null?u:"warto\u015B\u0107"," b\u0119dzie wynosi\u0107 ").concat(m).concat(r.maximum.toString())}case"too_small":{let m=r.inclusive?">=":">",y=t(r.origin);return y?"Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ".concat((l=r.origin)!=null?l:"warto\u015B\u0107"," b\u0119dzie mie\u0107 ").concat(m).concat(r.minimum.toString()," ").concat((c=y.unit)!=null?c:"element\xF3w"):"Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ".concat((d=r.origin)!=null?d:"warto\u015B\u0107"," b\u0119dzie wynosi\u0107 ").concat(m).concat(r.minimum.toString())}case"invalid_format":{let m=r;return m.format==="starts_with"?'Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "'.concat(m.prefix,'"'):m.format==="ends_with"?'Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "'.concat(m.suffix,'"'):m.format==="includes"?'Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "'.concat(m.includes,'"'):m.format==="regex"?"Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ".concat(m.pattern):"Nieprawid\u0142ow(y/a/e) ".concat((h=i[m.format])!=null?h:r.format)}case"not_multiple_of":return"Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ".concat(r.divisor);case"unrecognized_keys":return"Nierozpoznane klucze".concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Nieprawid\u0142owy klucz w ".concat(r.origin);case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return"Nieprawid\u0142owa warto\u015B\u0107 w ".concat(r.origin);default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function Mm(){return{localeError:sC()}}o(Mm,"default");f();var aC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"n\xFAmero";case"object":{if(Array.isArray(r))return"array";if(r===null)return"nulo";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Tipo inv\xE1lido: esperado ".concat(r.expected,", recebido ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Entrada inv\xE1lida: esperado ".concat($(r.values[0])):"Op\xE7\xE3o inv\xE1lida: esperada uma das ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Muito grande: esperado que ".concat((s=r.origin)!=null?s:"valor"," tivesse ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementos"):"Muito grande: esperado que ".concat((u=r.origin)!=null?u:"valor"," fosse ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Muito pequeno: esperado que ".concat(r.origin," tivesse ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Muito pequeno: esperado que ".concat(r.origin," fosse ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Texto inv\xE1lido: deve come\xE7ar com "'.concat(c.prefix,'"'):c.format==="ends_with"?'Texto inv\xE1lido: deve terminar com "'.concat(c.suffix,'"'):c.format==="includes"?'Texto inv\xE1lido: deve incluir "'.concat(c.includes,'"'):c.format==="regex"?"Texto inv\xE1lido: deve corresponder ao padr\xE3o ".concat(c.pattern):"".concat((l=i[c.format])!=null?l:r.format," inv\xE1lido")}case"not_multiple_of":return"N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ".concat(r.divisor);case"unrecognized_keys":return"Chave".concat(r.keys.length>1?"s":""," desconhecida").concat(r.keys.length>1?"s":"",": ").concat(C(r.keys,", "));case"invalid_key":return"Chave inv\xE1lida em ".concat(r.origin);case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return"Valor inv\xE1lido em ".concat(r.origin);default:return"Campo inv\xE1lido"}}},"error");function Em(){return{localeError:aC()}}o(Em,"default");f();function vb(e,t,n,i){let r=Math.abs(e),s=r%10,a=r%100;return a>=11&&a<=19?i:s===1?t:s>=2&&s<=4?n:i}o(vb,"getRussianPlural");var cC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u;switch(r.code){case"invalid_type":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ".concat(r.expected,", \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let l=r.inclusive?"<=":"<",c=t(r.origin);if(c){let d=Number(r.maximum),h=vb(d,c.unit.one,c.unit.few,c.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 ".concat((s=r.origin)!=null?s:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"," \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ").concat(l).concat(r.maximum.toString()," ").concat(h)}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 ".concat((a=r.origin)!=null?a:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"," \u0431\u0443\u0434\u0435\u0442 ").concat(l).concat(r.maximum.toString())}case"too_small":{let l=r.inclusive?">=":">",c=t(r.origin);if(c){let d=Number(r.minimum),h=vb(d,c.unit.one,c.unit.few,c.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 ".concat(r.origin," \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ").concat(l).concat(r.minimum.toString()," ").concat(h)}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 ".concat(r.origin," \u0431\u0443\u0434\u0435\u0442 ").concat(l).concat(r.minimum.toString())}case"invalid_format":{let l=r;return l.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 "'.concat(l.prefix,'"'):l.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 "'.concat(l.suffix,'"'):l.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 "'.concat(l.includes,'"'):l.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 ".concat(l.pattern):"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ".concat((u=i[l.format])!=null?u: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 ".concat(r.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D".concat(r.keys.length>1?"\u044B\u0435":"\u044B\u0439"," \u043A\u043B\u044E\u0447").concat(r.keys.length>1?"\u0438":"",": ").concat(C(r.keys,", "));case"invalid_key":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ".concat(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 ".concat(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"}}},"error");function Tm(){return{localeError:cC()}}o(Tm,"default");f();var uC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0161tevilo";case"object":{if(Array.isArray(r))return"tabela";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"Neveljaven vnos: pri\u010Dakovano ".concat(r.expected,", prejeto ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Neveljaven vnos: pri\u010Dakovano ".concat($(r.values[0])):"Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Preveliko: pri\u010Dakovano, da bo ".concat((s=r.origin)!=null?s:"vrednost"," imelo ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"elementov"):"Preveliko: pri\u010Dakovano, da bo ".concat((u=r.origin)!=null?u:"vrednost"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Premajhno: pri\u010Dakovano, da bo ".concat(r.origin," imelo ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Premajhno: pri\u010Dakovano, da bo ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Neveljaven niz: mora se za\u010Deti z "'.concat(c.prefix,'"'):c.format==="ends_with"?'Neveljaven niz: mora se kon\u010Dati z "'.concat(c.suffix,'"'):c.format==="includes"?'Neveljaven niz: mora vsebovati "'.concat(c.includes,'"'):c.format==="regex"?"Neveljaven niz: mora ustrezati vzorcu ".concat(c.pattern):"Neveljaven ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ".concat(r.divisor);case"unrecognized_keys":return"Neprepoznan".concat(r.keys.length>1?"i klju\u010Di":" klju\u010D",": ").concat(C(r.keys,", "));case"invalid_key":return"Neveljaven klju\u010D v ".concat(r.origin);case"invalid_union":return"Neveljaven vnos";case"invalid_element":return"Neveljavna vrednost v ".concat(r.origin);default:return"Neveljaven vnos"}}},"error");function Am(){return{localeError:uC()}}o(Am,"default");f();var lC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"antal";case"object":{if(Array.isArray(r))return"lista";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l,c,d,h,m;switch(r.code){case"invalid_type":return"Ogiltig inmatning: f\xF6rv\xE4ntat ".concat(r.expected,", fick ").concat(n(r.input));case"invalid_value":return r.values.length===1?"Ogiltig inmatning: f\xF6rv\xE4ntat ".concat($(r.values[0])):"Ogiltigt val: f\xF6rv\xE4ntade en av ".concat(C(r.values,"|"));case"too_big":{let y=r.inclusive?"<=":"<",v=t(r.origin);return v?"F\xF6r stor(t): f\xF6rv\xE4ntade ".concat((s=r.origin)!=null?s:"v\xE4rdet"," att ha ").concat(y).concat(r.maximum.toString()," ").concat((a=v.unit)!=null?a:"element"):"F\xF6r stor(t): f\xF6rv\xE4ntat ".concat((u=r.origin)!=null?u:"v\xE4rdet"," att ha ").concat(y).concat(r.maximum.toString())}case"too_small":{let y=r.inclusive?">=":">",v=t(r.origin);return v?"F\xF6r lite(t): f\xF6rv\xE4ntade ".concat((l=r.origin)!=null?l:"v\xE4rdet"," att ha ").concat(y).concat(r.minimum.toString()," ").concat(v.unit):"F\xF6r lite(t): f\xF6rv\xE4ntade ".concat((c=r.origin)!=null?c:"v\xE4rdet"," att ha ").concat(y).concat(r.minimum.toString())}case"invalid_format":{let y=r;return y.format==="starts_with"?'Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "'.concat(y.prefix,'"'):y.format==="ends_with"?'Ogiltig str\xE4ng: m\xE5ste sluta med "'.concat(y.suffix,'"'):y.format==="includes"?'Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "'.concat(y.includes,'"'):y.format==="regex"?'Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "'.concat(y.pattern,'"'):"Ogiltig(t) ".concat((d=i[y.format])!=null?d:r.format)}case"not_multiple_of":return"Ogiltigt tal: m\xE5ste vara en multipel av ".concat(r.divisor);case"unrecognized_keys":return"".concat(r.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel",": ").concat(C(r.keys,", "));case"invalid_key":return"Ogiltig nyckel i ".concat((h=r.origin)!=null?h:"v\xE4rdet");case"invalid_union":return"Ogiltig input";case"invalid_element":return"Ogiltigt v\xE4rde i ".concat((m=r.origin)!=null?m:"v\xE4rdet");default:return"Ogiltig input"}}},"error");function Pm(){return{localeError:lC()}}o(Pm,"default");f();var fC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u0B8E\u0BA3\u0BCD \u0B85\u0BB2\u0BCD\u0BB2\u0BBE\u0BA4\u0BA4\u0BC1":"\u0B8E\u0BA3\u0BCD";case"object":{if(Array.isArray(r))return"\u0B85\u0BA3\u0BBF";if(r===null)return"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected,", \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|")," \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\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 ".concat((s=r.origin)!=null?s:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"," ").concat(c).concat(r.maximum.toString()," \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\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 ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.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 ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "'.concat(c.prefix,'" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD'):c.format==="ends_with"?'\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "'.concat(c.suffix,'" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD'):c.format==="includes"?'\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "'.concat(c.includes,'" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD'):c.format==="regex"?"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ".concat(c.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 ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ".concat(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".concat(r.keys.length>1?"\u0B95\u0BB3\u0BCD":"",": ").concat(C(r.keys,", "));case"invalid_key":return"".concat(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"".concat(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"}}},"error");function Rm(){return{localeError:fC()}}o(Rm,"default");f();var dC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02 (NaN)":"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02";case"object":{if(Array.isArray(r))return"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)";if(r===null)return"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected," \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",d=t(r.origin);return d?"\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat((s=r.origin)!=null?s:"\u0E04\u0E48\u0E32"," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"):"\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat((u=r.origin)!=null?u:"\u0E04\u0E48\u0E32"," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",d=t(r.origin);return d?"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat(r.origin," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.minimum.toString()," ").concat(d.unit):"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ".concat(r.origin," \u0E04\u0E27\u0E23\u0E21\u0E35").concat(c," ").concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21'):c.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 ".concat(c.pattern):"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ".concat((l=i[c.format])!=null?l: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 ".concat(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: ".concat(C(r.keys,", "));case"invalid_key":return"\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ".concat(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 ".concat(r.origin);default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function Cm(){return{localeError:dC()}}o(Cm,"default");f();var pC=o(e=>{let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":"number";case"object":{if(Array.isArray(e))return"array";if(e===null)return"null";if(Object.getPrototypeOf(e)!==Object.prototype&&e.constructor)return e.constructor.name}}return t},"parsedType"),hC=o(()=>{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(i){var r;return(r=e[i])!=null?r:null}o(t,"getSizing");let n={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"};return i=>{var r,s,a,u;switch(i.code){case"invalid_type":return"Ge\xE7ersiz de\u011Fer: beklenen ".concat(i.expected,", al\u0131nan ").concat(pC(i.input));case"invalid_value":return i.values.length===1?"Ge\xE7ersiz de\u011Fer: beklenen ".concat($(i.values[0])):"Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ".concat(C(i.values,"|"));case"too_big":{let l=i.inclusive?"<=":"<",c=t(i.origin);return c?"\xC7ok b\xFCy\xFCk: beklenen ".concat((r=i.origin)!=null?r:"de\u011Fer"," ").concat(l).concat(i.maximum.toString()," ").concat((s=c.unit)!=null?s:"\xF6\u011Fe"):"\xC7ok b\xFCy\xFCk: beklenen ".concat((a=i.origin)!=null?a:"de\u011Fer"," ").concat(l).concat(i.maximum.toString())}case"too_small":{let l=i.inclusive?">=":">",c=t(i.origin);return c?"\xC7ok k\xFC\xE7\xFCk: beklenen ".concat(i.origin," ").concat(l).concat(i.minimum.toString()," ").concat(c.unit):"\xC7ok k\xFC\xE7\xFCk: beklenen ".concat(i.origin," ").concat(l).concat(i.minimum.toString())}case"invalid_format":{let l=i;return l.format==="starts_with"?'Ge\xE7ersiz metin: "'.concat(l.prefix,'" ile ba\u015Flamal\u0131'):l.format==="ends_with"?'Ge\xE7ersiz metin: "'.concat(l.suffix,'" ile bitmeli'):l.format==="includes"?'Ge\xE7ersiz metin: "'.concat(l.includes,'" i\xE7ermeli'):l.format==="regex"?"Ge\xE7ersiz metin: ".concat(l.pattern," desenine uymal\u0131"):"Ge\xE7ersiz ".concat((u=n[l.format])!=null?u:i.format)}case"not_multiple_of":return"Ge\xE7ersiz say\u0131: ".concat(i.divisor," ile tam b\xF6l\xFCnebilmeli");case"unrecognized_keys":return"Tan\u0131nmayan anahtar".concat(i.keys.length>1?"lar":"",": ").concat(C(i.keys,", "));case"invalid_key":return"".concat(i.origin," i\xE7inde ge\xE7ersiz anahtar");case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return"".concat(i.origin," i\xE7inde ge\xE7ersiz de\u011Fer");default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function Om(){return{localeError:hC()}}o(Om,"default");f();f();var mC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0447\u0438\u0441\u043B\u043E";case"object":{if(Array.isArray(r))return"\u043C\u0430\u0441\u0438\u0432";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\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 ".concat(r.expected,", \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ").concat(n(r.input));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 ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\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 ".concat((s=r.origin)!=null?s:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"," ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\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 ".concat((u=r.origin)!=null?u:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"," \u0431\u0443\u0434\u0435 ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ".concat(r.origin," ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ".concat(r.origin," \u0431\u0443\u0434\u0435 ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.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 "'.concat(c.prefix,'"'):c.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 "'.concat(c.suffix,'"'):c.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 "'.concat(c.includes,'"'):c.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 ".concat(c.pattern):"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447".concat(r.keys.length>1?"\u0456":"",": ").concat(C(r.keys,", "));case"invalid_key":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ".concat(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 ".concat(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"}}},"error");function ea(){return{localeError:mC()}}o(ea,"default");function Um(){return ea()}o(Um,"default");f();var gC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"\u0646\u0645\u0628\u0631";case"object":{if(Array.isArray(r))return"\u0622\u0631\u06D2";if(r===null)return"\u0646\u0644";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ".concat(r.expected," \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ").concat(n(r.input)," \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627");case"invalid_value":return r.values.length===1?"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ".concat($(r.values[0])," \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627"):"\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ".concat(C(r.values,"|")," \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627");case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u0628\u06C1\u062A \u0628\u0691\u0627: ".concat((s=r.origin)!=null?s:"\u0648\u06CC\u0644\u06CC\u0648"," \u06A9\u06D2 ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u0639\u0646\u0627\u0635\u0631"," \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2"):"\u0628\u06C1\u062A \u0628\u0691\u0627: ".concat((u=r.origin)!=null?u:"\u0648\u06CC\u0644\u06CC\u0648"," \u06A9\u0627 ").concat(c).concat(r.maximum.toString()," \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627")}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ".concat(r.origin," \u06A9\u06D2 ").concat(c).concat(r.minimum.toString()," ").concat(d.unit," \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2"):"\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ".concat(r.origin," \u06A9\u0627 ").concat(c).concat(r.minimum.toString()," \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627")}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "'.concat(c.prefix,'" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2'):c.format==="ends_with"?'\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "'.concat(c.suffix,'" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2'):c.format==="includes"?'\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "'.concat(c.includes,'" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2'):c.format==="regex"?"\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ".concat(c.pattern," \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2"):"\u063A\u0644\u0637 ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ".concat(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".concat(r.keys.length>1?"\u0632":"",": ").concat(C(r.keys,"\u060C "));case"invalid_key":return"".concat(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"".concat(r.origin," \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648");default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function Fm(){return{localeError:gC()}}o(Fm,"default");f();var yC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"s\u1ED1";case"object":{if(Array.isArray(r))return"m\u1EA3ng";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ".concat(r.expected,", nh\u1EADn \u0111\u01B0\u1EE3c ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ".concat($(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 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ".concat((s=r.origin)!=null?s:"gi\xE1 tr\u1ECB"," ").concat(d.verb," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"ph\u1EA7n t\u1EED"):"Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ".concat((u=r.origin)!=null?u:"gi\xE1 tr\u1ECB"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ".concat(r.origin," ").concat(d.verb," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "'.concat(c.prefix,'"'):c.format==="ends_with"?'Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "'.concat(c.suffix,'"'):c.format==="includes"?'Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "'.concat(c.includes,'"'):c.format==="regex"?"Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ".concat(c.pattern):"".concat((l=i[c.format])!=null?l: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 ".concat(r.divisor);case"unrecognized_keys":return"Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ".concat(C(r.keys,", "));case"invalid_key":return"Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ".concat(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 ".concat(r.origin);default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function Nm(){return{localeError:yC()}}o(Nm,"default");f();var xC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"\u975E\u6570\u5B57(NaN)":"\u6570\u5B57";case"object":{if(Array.isArray(r))return"\u6570\u7EC4";if(r===null)return"\u7A7A\u503C(null)";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ".concat(r.expected,"\uFF0C\u5B9E\u9645\u63A5\u6536 ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ".concat($(r.values[0])):"\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ".concat((s=r.origin)!=null?s:"\u503C"," ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u4E2A\u5143\u7D20"):"\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ".concat((u=r.origin)!=null?u:"\u503C"," ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ".concat(r.origin," ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ".concat(r.origin," ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "'.concat(c.prefix,'" \u5F00\u5934'):c.format==="ends_with"?'\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "'.concat(c.suffix,'" \u7ED3\u5C3E'):c.format==="includes"?'\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "'.concat(c.includes,'"'):c.format==="regex"?"\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ".concat(c.pattern):"\u65E0\u6548".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ".concat(r.divisor," \u7684\u500D\u6570");case"unrecognized_keys":return"\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ".concat(C(r.keys,", "));case"invalid_key":return"".concat(r.origin," \u4E2D\u7684\u952E(key)\u65E0\u6548");case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return"".concat(r.origin," \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)");default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function km(){return{localeError:xC()}}o(km,"default");f();var vC=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"number";case"object":{if(Array.isArray(r))return"array";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a,u,l;switch(r.code){case"invalid_type":return"\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ".concat(r.expected,"\uFF0C\u4F46\u6536\u5230 ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ".concat($(r.values[0])):"\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ".concat(C(r.values,"|"));case"too_big":{let c=r.inclusive?"<=":"<",d=t(r.origin);return d?"\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ".concat((s=r.origin)!=null?s:"\u503C"," \u61C9\u70BA ").concat(c).concat(r.maximum.toString()," ").concat((a=d.unit)!=null?a:"\u500B\u5143\u7D20"):"\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ".concat((u=r.origin)!=null?u:"\u503C"," \u61C9\u70BA ").concat(c).concat(r.maximum.toString())}case"too_small":{let c=r.inclusive?">=":">",d=t(r.origin);return d?"\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ".concat(r.origin," \u61C9\u70BA ").concat(c).concat(r.minimum.toString()," ").concat(d.unit):"\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ".concat(r.origin," \u61C9\u70BA ").concat(c).concat(r.minimum.toString())}case"invalid_format":{let c=r;return c.format==="starts_with"?'\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "'.concat(c.prefix,'" \u958B\u982D'):c.format==="ends_with"?'\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "'.concat(c.suffix,'" \u7D50\u5C3E'):c.format==="includes"?'\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "'.concat(c.includes,'"'):c.format==="regex"?"\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ".concat(c.pattern):"\u7121\u6548\u7684 ".concat((l=i[c.format])!=null?l:r.format)}case"not_multiple_of":return"\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ".concat(r.divisor," \u7684\u500D\u6578");case"unrecognized_keys":return"\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C".concat(r.keys.length>1?"\u5011":"","\uFF1A").concat(C(r.keys,"\u3001"));case"invalid_key":return"".concat(r.origin," \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C");case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return"".concat(r.origin," \u4E2D\u6709\u7121\u6548\u7684\u503C");default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function Dm(){return{localeError:vC()}}o(Dm,"default");f();var _C=o(()=>{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){var s;return(s=e[r])!=null?s:null}o(t,"getSizing");let n=o(r=>{let s=typeof r;switch(s){case"number":return Number.isNaN(r)?"NaN":"n\u1ECD\u0301mb\xE0";case"object":{if(Array.isArray(r))return"akop\u1ECD";if(r===null)return"null";if(Object.getPrototypeOf(r)!==Object.prototype&&r.constructor)return r.constructor.name}}return s},"parsedType"),i={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"};return r=>{var s,a;switch(r.code){case"invalid_type":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ".concat(r.expected,", \xE0m\u1ECD\u0300 a r\xED ").concat(n(r.input));case"invalid_value":return r.values.length===1?"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ".concat($(r.values[0])):"\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ".concat(C(r.values,"|"));case"too_big":{let u=r.inclusive?"<=":"<",l=t(r.origin);return l?"T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ".concat((s=r.origin)!=null?s:"iye"," ").concat(l.verb," ").concat(u).concat(r.maximum," ").concat(l.unit):"T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ".concat(u).concat(r.maximum)}case"too_small":{let u=r.inclusive?">=":">",l=t(r.origin);return l?"K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ".concat(r.origin," ").concat(l.verb," ").concat(u).concat(r.minimum," ").concat(l.unit):"K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ".concat(u).concat(r.minimum)}case"invalid_format":{let u=r;return u.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 "'.concat(u.prefix,'"'):u.format==="ends_with"?'\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "'.concat(u.suffix,'"'):u.format==="includes"?'\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "'.concat(u.includes,'"'):u.format==="regex"?"\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ".concat(u.pattern):"A\u1E63\xEC\u1E63e: ".concat((a=i[u.format])!=null?a: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 ".concat(r.divisor);case"unrecognized_keys":return"B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ".concat(C(r.keys,", "));case"invalid_key":return"B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ".concat(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 ".concat(r.origin);default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function Lm(){return{localeError:_C()}}o(Lm,"default");f();var $m=Symbol("ZodOutput"),zm=Symbol("ZodInput"),Bm=class Bm{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error("ID ".concat(i.id," already exists in the registry"));this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){var i;let n=t._zod.parent;if(n){let r=x({},(i=this.get(n))!=null?i:{});delete r.id;let s=x(x({},r),this._map.get(t));return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};o(Bm,"$ZodRegistry");var Eo=Bm;function qc(){return new Eo}o(qc,"registry");var mr=qc();f();function Vm(e,t){return new e(x({type:"string"},B(t)))}o(Vm,"_string");function jm(e,t){return new e(x({type:"string",coerce:!0},B(t)))}o(jm,"_coercedString");function Kc(e,t){return new e(x({type:"string",format:"email",check:"string_format",abort:!1},B(t)))}o(Kc,"_email");function ta(e,t){return new e(x({type:"string",format:"guid",check:"string_format",abort:!1},B(t)))}o(ta,"_guid");function Yc(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1},B(t)))}o(Yc,"_uuid");function Jc(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4"},B(t)))}o(Jc,"_uuidv4");function Qc(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6"},B(t)))}o(Qc,"_uuidv6");function eu(e,t){return new e(x({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7"},B(t)))}o(eu,"_uuidv7");function na(e,t){return new e(x({type:"string",format:"url",check:"string_format",abort:!1},B(t)))}o(na,"_url");function tu(e,t){return new e(x({type:"string",format:"emoji",check:"string_format",abort:!1},B(t)))}o(tu,"_emoji");function nu(e,t){return new e(x({type:"string",format:"nanoid",check:"string_format",abort:!1},B(t)))}o(nu,"_nanoid");function ru(e,t){return new e(x({type:"string",format:"cuid",check:"string_format",abort:!1},B(t)))}o(ru,"_cuid");function iu(e,t){return new e(x({type:"string",format:"cuid2",check:"string_format",abort:!1},B(t)))}o(iu,"_cuid2");function ou(e,t){return new e(x({type:"string",format:"ulid",check:"string_format",abort:!1},B(t)))}o(ou,"_ulid");function su(e,t){return new e(x({type:"string",format:"xid",check:"string_format",abort:!1},B(t)))}o(su,"_xid");function au(e,t){return new e(x({type:"string",format:"ksuid",check:"string_format",abort:!1},B(t)))}o(au,"_ksuid");function cu(e,t){return new e(x({type:"string",format:"ipv4",check:"string_format",abort:!1},B(t)))}o(cu,"_ipv4");function uu(e,t){return new e(x({type:"string",format:"ipv6",check:"string_format",abort:!1},B(t)))}o(uu,"_ipv6");function lu(e,t){return new e(x({type:"string",format:"cidrv4",check:"string_format",abort:!1},B(t)))}o(lu,"_cidrv4");function fu(e,t){return new e(x({type:"string",format:"cidrv6",check:"string_format",abort:!1},B(t)))}o(fu,"_cidrv6");function du(e,t){return new e(x({type:"string",format:"base64",check:"string_format",abort:!1},B(t)))}o(du,"_base64");function pu(e,t){return new e(x({type:"string",format:"base64url",check:"string_format",abort:!1},B(t)))}o(pu,"_base64url");function hu(e,t){return new e(x({type:"string",format:"e164",check:"string_format",abort:!1},B(t)))}o(hu,"_e164");function mu(e,t){return new e(x({type:"string",format:"jwt",check:"string_format",abort:!1},B(t)))}o(mu,"_jwt");var Gm={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hm(e,t){return new e(x({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null},B(t)))}o(Hm,"_isoDateTime");function Wm(e,t){return new e(x({type:"string",format:"date",check:"string_format"},B(t)))}o(Wm,"_isoDate");function Zm(e,t){return new e(x({type:"string",format:"time",check:"string_format",precision:null},B(t)))}o(Zm,"_isoTime");function Xm(e,t){return new e(x({type:"string",format:"duration",check:"string_format"},B(t)))}o(Xm,"_isoDuration");function qm(e,t){return new e(x({type:"number",checks:[]},B(t)))}o(qm,"_number");function Km(e,t){return new e(x({type:"number",coerce:!0,checks:[]},B(t)))}o(Km,"_coercedNumber");function Ym(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"safeint"},B(t)))}o(Ym,"_int");function Jm(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"float32"},B(t)))}o(Jm,"_float32");function Qm(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"float64"},B(t)))}o(Qm,"_float64");function eg(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"int32"},B(t)))}o(eg,"_int32");function tg(e,t){return new e(x({type:"number",check:"number_format",abort:!1,format:"uint32"},B(t)))}o(tg,"_uint32");function ng(e,t){return new e(x({type:"boolean"},B(t)))}o(ng,"_boolean");function rg(e,t){return new e(x({type:"boolean",coerce:!0},B(t)))}o(rg,"_coercedBoolean");function ig(e,t){return new e(x({type:"bigint"},B(t)))}o(ig,"_bigint");function og(e,t){return new e(x({type:"bigint",coerce:!0},B(t)))}o(og,"_coercedBigint");function sg(e,t){return new e(x({type:"bigint",check:"bigint_format",abort:!1,format:"int64"},B(t)))}o(sg,"_int64");function ag(e,t){return new e(x({type:"bigint",check:"bigint_format",abort:!1,format:"uint64"},B(t)))}o(ag,"_uint64");function cg(e,t){return new e(x({type:"symbol"},B(t)))}o(cg,"_symbol");function ug(e,t){return new e(x({type:"undefined"},B(t)))}o(ug,"_undefined");function lg(e,t){return new e(x({type:"null"},B(t)))}o(lg,"_null");function fg(e){return new e({type:"any"})}o(fg,"_any");function dg(e){return new e({type:"unknown"})}o(dg,"_unknown");function pg(e,t){return new e(x({type:"never"},B(t)))}o(pg,"_never");function hg(e,t){return new e(x({type:"void"},B(t)))}o(hg,"_void");function mg(e,t){return new e(x({type:"date"},B(t)))}o(mg,"_date");function gg(e,t){return new e(x({type:"date",coerce:!0},B(t)))}o(gg,"_coercedDate");function yg(e,t){return new e(x({type:"nan"},B(t)))}o(yg,"_nan");function Dr(e,t){return new Lc(L(x({check:"less_than"},B(t)),{value:e,inclusive:!1}))}o(Dr,"_lt");function Nn(e,t){return new Lc(L(x({check:"less_than"},B(t)),{value:e,inclusive:!0}))}o(Nn,"_lte");function Lr(e,t){return new $c(L(x({check:"greater_than"},B(t)),{value:e,inclusive:!1}))}o(Lr,"_gt");function fn(e,t){return new $c(L(x({check:"greater_than"},B(t)),{value:e,inclusive:!0}))}o(fn,"_gte");function xg(e){return Lr(0,e)}o(xg,"_positive");function vg(e){return Dr(0,e)}o(vg,"_negative");function _g(e){return Nn(0,e)}o(_g,"_nonpositive");function bg(e){return fn(0,e)}o(bg,"_nonnegative");function zi(e,t){return new bp(L(x({check:"multiple_of"},B(t)),{value:e}))}o(zi,"_multipleOf");function To(e,t){return new wp(L(x({check:"max_size"},B(t)),{maximum:e}))}o(To,"_maxSize");function Bi(e,t){return new Mp(L(x({check:"min_size"},B(t)),{minimum:e}))}o(Bi,"_minSize");function ra(e,t){return new Ep(L(x({check:"size_equals"},B(t)),{size:e}))}o(ra,"_size");function Ao(e,t){return new Tp(L(x({check:"max_length"},B(t)),{maximum:e}))}o(Ao,"_maxLength");function vi(e,t){return new Ap(L(x({check:"min_length"},B(t)),{minimum:e}))}o(vi,"_minLength");function Po(e,t){return new Pp(L(x({check:"length_equals"},B(t)),{length:e}))}o(Po,"_length");function ia(e,t){return new Rp(L(x({check:"string_format",format:"regex"},B(t)),{pattern:e}))}o(ia,"_regex");function oa(e){return new Cp(x({check:"string_format",format:"lowercase"},B(e)))}o(oa,"_lowercase");function sa(e){return new Op(x({check:"string_format",format:"uppercase"},B(e)))}o(sa,"_uppercase");function aa(e,t){return new Up(L(x({check:"string_format",format:"includes"},B(t)),{includes:e}))}o(aa,"_includes");function ca(e,t){return new Fp(L(x({check:"string_format",format:"starts_with"},B(t)),{prefix:e}))}o(ca,"_startsWith");function ua(e,t){return new Np(L(x({check:"string_format",format:"ends_with"},B(t)),{suffix:e}))}o(ua,"_endsWith");function Sg(e,t,n){return new kp(x({check:"property",property:e,schema:t},B(n)))}o(Sg,"_property");function la(e,t){return new Dp(x({check:"mime_type",mime:e},B(t)))}o(la,"_mime");function $r(e){return new Lp({check:"overwrite",tx:e})}o($r,"_overwrite");function fa(e){return $r(t=>t.normalize(e))}o(fa,"_normalize");function da(){return $r(e=>e.trim())}o(da,"_trim");function pa(){return $r(e=>e.toLowerCase())}o(pa,"_toLowerCase");function ha(){return $r(e=>e.toUpperCase())}o(ha,"_toUpperCase");function Ig(e,t,n){return new e(x({type:"array",element:t},B(n)))}o(Ig,"_array");function bC(e,t,n){return new e(x({type:"union",options:t},B(n)))}o(bC,"_union");function SC(e,t,n,i){return new e(x({type:"union",options:n,discriminator:t},B(i)))}o(SC,"_discriminatedUnion");function IC(e,t,n){return new e({type:"intersection",left:t,right:n})}o(IC,"_intersection");function wC(e,t,n,i){let r=n instanceof se,s=r?i:n,a=r?n:null;return new e(x({type:"tuple",items:t,rest:a},B(s)))}o(wC,"_tuple");function MC(e,t,n,i){return new e(x({type:"record",keyType:t,valueType:n},B(i)))}o(MC,"_record");function EC(e,t,n,i){return new e(x({type:"map",keyType:t,valueType:n},B(i)))}o(EC,"_map");function TC(e,t,n){return new e(x({type:"set",valueType:t},B(n)))}o(TC,"_set");function AC(e,t,n){let i=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new e(x({type:"enum",entries:i},B(n)))}o(AC,"_enum");function PC(e,t,n){return new e(x({type:"enum",entries:t},B(n)))}o(PC,"_nativeEnum");function RC(e,t,n){return new e(x({type:"literal",values:Array.isArray(t)?t:[t]},B(n)))}o(RC,"_literal");function wg(e,t){return new e(x({type:"file"},B(t)))}o(wg,"_file");function CC(e,t){return new e({type:"transform",transform:t})}o(CC,"_transform");function OC(e,t){return new e({type:"optional",innerType:t})}o(OC,"_optional");function UC(e,t){return new e({type:"nullable",innerType:t})}o(UC,"_nullable");function FC(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():kd(n)}})}o(FC,"_default");function NC(e,t,n){return new e(x({type:"nonoptional",innerType:t},B(n)))}o(NC,"_nonoptional");function kC(e,t){return new e({type:"success",innerType:t})}o(kC,"_success");function DC(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}o(DC,"_catch");function LC(e,t,n){return new e({type:"pipe",in:t,out:n})}o(LC,"_pipe");function $C(e,t){return new e({type:"readonly",innerType:t})}o($C,"_readonly");function zC(e,t,n){return new e(x({type:"template_literal",parts:t},B(n)))}o(zC,"_templateLiteral");function BC(e,t){return new e({type:"lazy",getter:t})}o(BC,"_lazy");function VC(e,t){return new e({type:"promise",innerType:t})}o(VC,"_promise");function Mg(e,t,n){var s;let i=B(n);return(s=i.abort)!=null||(i.abort=!0),new e(x({type:"custom",check:"custom",fn:t},i))}o(Mg,"_custom");function Eg(e,t,n){return new e(x({type:"custom",check:"custom",fn:t},B(n)))}o(Eg,"_refine");function Tg(e){let t=_b(n=>(n.addIssue=i=>{var r,s,a,u;if(typeof i=="string")n.issues.push(_o(i,n.value,t._zod.def));else{let l=i;l.fatal&&(l.continue=!1),(r=l.code)!=null||(l.code="custom"),(s=l.input)!=null||(l.input=n.value),(a=l.inst)!=null||(l.inst=t),(u=l.continue)!=null||(l.continue=!t._zod.def.abort),n.issues.push(_o(l))}},e(n.value,n)));return t}o(Tg,"_superRefine");function _b(e,t){let n=new rt(x({check:"custom"},B(t)));return n._zod.check=e,n}o(_b,"_check");function Ag(e,t){var y,v,I,T,U;let n=B(t),i=(y=n.truthy)!=null?y:["true","1","yes","on","y","enabled"],r=(v=n.falsy)!=null?v:["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(i=i.map(D=>typeof D=="string"?D.toLowerCase():D),r=r.map(D=>typeof D=="string"?D.toLowerCase():D));let s=new Set(i),a=new Set(r),u=(I=e.Codec)!=null?I:qs,l=(T=e.Boolean)!=null?T:Xs,c=(U=e.String)!=null?U:Li,d=new c({type:"string",error:n.error}),h=new l({type:"boolean",error:n.error}),m=new u({type:"pipe",in:d,out:h,transform:o((D,w)=>{let S=D;return n.case!=="sensitive"&&(S=S.toLowerCase()),s.has(S)?!0:a.has(S)?!1:(w.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...a],input:w.value,inst:m,continue:!1}),{})},"transform"),reverseTransform:o((D,w)=>D===!0?i[0]||"true":r[0]||"false","reverseTransform"),error:n.error});return m}o(Ag,"_stringbool");function Ro(e,t,n,i={}){let r=B(i),s=x(L(x({},B(i)),{check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:u=>n.test(u)}),r);return n instanceof RegExp&&(s.pattern=n),new e(s)}o(Ro,"_stringFormat");f();var Rg=class Rg{constructor(t){var n,i,r,s,a;this.counter=0,this.metadataRegistry=(n=t==null?void 0:t.metadata)!=null?n:mr,this.target=(i=t==null?void 0:t.target)!=null?i:"draft-2020-12",this.unrepresentable=(r=t==null?void 0:t.unrepresentable)!=null?r:"throw",this.override=(s=t==null?void 0:t.override)!=null?s:()=>{},this.io=(a=t==null?void 0:t.io)!=null?a:"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var h,m,y,v,I;var i;let r=t._zod.def,s={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;let u={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,u);let l=(m=(h=t._zod).toJSONSchema)==null?void 0:m.call(h);if(l)u.schema=l;else{let T=L(x({},n),{schemaPath:[...n.schemaPath,t],path:n.path}),U=t._zod.parent;if(U)u.ref=U,this.process(U,T),this.seen.get(U).isParent=!0;else{let D=u.schema;switch(r.type){case"string":{let w=D;w.type="string";let{minimum:S,maximum:A,format:j,patterns:N,contentEncoding:H}=t._zod.bag;if(typeof S=="number"&&(w.minLength=S),typeof A=="number"&&(w.maxLength=A),j&&(w.format=(y=s[j])!=null?y:j,w.format===""&&delete w.format),H&&(w.contentEncoding=H),N&&N.size>0){let G=[...N];G.length===1?w.pattern=G[0].source:G.length>1&&(u.schema.allOf=[...G.map(ce=>L(x({},this.target==="draft-7"||this.target==="draft-4"||this.target==="openapi-3.0"?{type:"string"}:{}),{pattern:ce.source}))])}break}case"number":{let w=D,{minimum:S,maximum:A,format:j,multipleOf:N,exclusiveMaximum:H,exclusiveMinimum:G}=t._zod.bag;typeof j=="string"&&j.includes("int")?w.type="integer":w.type="number",typeof G=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(w.minimum=G,w.exclusiveMinimum=!0):w.exclusiveMinimum=G),typeof S=="number"&&(w.minimum=S,typeof G=="number"&&this.target!=="draft-4"&&(G>=S?delete w.minimum:delete w.exclusiveMinimum)),typeof H=="number"&&(this.target==="draft-4"||this.target==="openapi-3.0"?(w.maximum=H,w.exclusiveMaximum=!0):w.exclusiveMaximum=H),typeof A=="number"&&(w.maximum=A,typeof H=="number"&&this.target!=="draft-4"&&(H<=A?delete w.maximum:delete w.exclusiveMaximum)),typeof N=="number"&&(w.multipleOf=N);break}case"boolean":{let w=D;w.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{this.target==="openapi-3.0"?(D.type="string",D.nullable=!0,D.enum=[null]):D.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{D.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{let w=D,{minimum:S,maximum:A}=t._zod.bag;typeof S=="number"&&(w.minItems=S),typeof A=="number"&&(w.maxItems=A),w.type="array",w.items=this.process(r.element,L(x({},T),{path:[...T.path,"items"]}));break}case"object":{let w=D;w.type="object",w.properties={};let S=r.shape;for(let N in S)w.properties[N]=this.process(S[N],L(x({},T),{path:[...T.path,"properties",N]}));let A=new Set(Object.keys(S)),j=new Set([...A].filter(N=>{let H=r.shape[N]._zod;return this.io==="input"?H.optin===void 0:H.optout===void 0}));j.size>0&&(w.required=Array.from(j)),((v=r.catchall)==null?void 0:v._zod.def.type)==="never"?w.additionalProperties=!1:r.catchall?r.catchall&&(w.additionalProperties=this.process(r.catchall,L(x({},T),{path:[...T.path,"additionalProperties"]}))):this.io==="output"&&(w.additionalProperties=!1);break}case"union":{let w=D,S=r.options.map((A,j)=>this.process(A,L(x({},T),{path:[...T.path,"anyOf",j]})));w.anyOf=S;break}case"intersection":{let w=D,S=this.process(r.left,L(x({},T),{path:[...T.path,"allOf",0]})),A=this.process(r.right,L(x({},T),{path:[...T.path,"allOf",1]})),j=o(H=>"allOf"in H&&Object.keys(H).length===1,"isSimpleIntersection"),N=[...j(S)?S.allOf:[S],...j(A)?A.allOf:[A]];w.allOf=N;break}case"tuple":{let w=D;w.type="array";let S=this.target==="draft-2020-12"?"prefixItems":"items",A=this.target==="draft-2020-12"||this.target==="openapi-3.0"?"items":"additionalItems",j=r.items.map((ce,ue)=>this.process(ce,L(x({},T),{path:[...T.path,S,ue]}))),N=r.rest?this.process(r.rest,L(x({},T),{path:[...T.path,A,...this.target==="openapi-3.0"?[r.items.length]:[]]})):null;this.target==="draft-2020-12"?(w.prefixItems=j,N&&(w.items=N)):this.target==="openapi-3.0"?(w.items={anyOf:j},N&&w.items.anyOf.push(N),w.minItems=j.length,N||(w.maxItems=j.length)):(w.items=j,N&&(w.additionalItems=N));let{minimum:H,maximum:G}=t._zod.bag;typeof H=="number"&&(w.minItems=H),typeof G=="number"&&(w.maxItems=G);break}case"record":{let w=D;w.type="object",(this.target==="draft-7"||this.target==="draft-2020-12")&&(w.propertyNames=this.process(r.keyType,L(x({},T),{path:[...T.path,"propertyNames"]}))),w.additionalProperties=this.process(r.valueType,L(x({},T),{path:[...T.path,"additionalProperties"]}));break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{let w=D,S=Ds(r.entries);S.every(A=>typeof A=="number")&&(w.type="number"),S.every(A=>typeof A=="string")&&(w.type="string"),w.enum=S;break}case"literal":{let w=D,S=[];for(let A of r.values)if(A===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof A=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");S.push(Number(A))}else S.push(A);if(S.length!==0)if(S.length===1){let A=S[0];w.type=A===null?"null":typeof A,this.target==="draft-4"||this.target==="openapi-3.0"?w.enum=[A]:w.const=A}else S.every(A=>typeof A=="number")&&(w.type="number"),S.every(A=>typeof A=="string")&&(w.type="string"),S.every(A=>typeof A=="boolean")&&(w.type="string"),S.every(A=>A===null)&&(w.type="null"),w.enum=S;break}case"file":{let w=D,S={type:"string",format:"binary",contentEncoding:"binary"},{minimum:A,maximum:j,mime:N}=t._zod.bag;A!==void 0&&(S.minLength=A),j!==void 0&&(S.maxLength=j),N?N.length===1?(S.contentMediaType=N[0],Object.assign(w,S)):w.anyOf=N.map(H=>L(x({},S),{contentMediaType:H})):Object.assign(w,S);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{let w=this.process(r.innerType,T);this.target==="openapi-3.0"?(u.ref=r.innerType,D.nullable=!0):D.anyOf=[w,{type:"null"}];break}case"nonoptional":{this.process(r.innerType,T),u.ref=r.innerType;break}case"success":{let w=D;w.type="boolean";break}case"default":{this.process(r.innerType,T),u.ref=r.innerType,D.default=JSON.parse(JSON.stringify(r.defaultValue));break}case"prefault":{this.process(r.innerType,T),u.ref=r.innerType,this.io==="input"&&(D._prefault=JSON.parse(JSON.stringify(r.defaultValue)));break}case"catch":{this.process(r.innerType,T),u.ref=r.innerType;let w;try{w=r.catchValue(void 0)}catch(S){throw new Error("Dynamic catch values are not supported in JSON Schema")}D.default=w;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{let w=D,S=t._zod.pattern;if(!S)throw new Error("Pattern not found in template literal");w.type="string",w.pattern=S.source;break}case"pipe":{let w=this.io==="input"?r.in._zod.def.type==="transform"?r.out:r.in:r.out;this.process(w,T),u.ref=w;break}case"readonly":{this.process(r.innerType,T),u.ref=r.innerType,D.readOnly=!0;break}case"promise":{this.process(r.innerType,T),u.ref=r.innerType;break}case"optional":{this.process(r.innerType,T),u.ref=r.innerType;break}case"lazy":{let w=t._zod.innerType;this.process(w,T),u.ref=w;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}case"function":{if(this.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema");break}default:}}}let c=this.metadataRegistry.get(t);return c&&Object.assign(u.schema,c),this.io==="input"&&wt(t)&&(delete u.schema.examples,delete u.schema.default),this.io==="input"&&u.schema._prefault&&((I=(i=u.schema).default)!=null||(i.default=u.schema._prefault)),delete u.schema._prefault,this.seen.get(t).schema}emit(t,n){var d,h,m,y,v,I,T,U,D,w;let i={cycles:(d=n==null?void 0:n.cycles)!=null?d:"ref",reused:(h=n==null?void 0:n.reused)!=null?h:"inline",external:(m=n==null?void 0:n.external)!=null?m:void 0},r=this.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let s=o(S=>{var G,ce,ue,he,Ge;let A=this.target==="draft-2020-12"?"$defs":"definitions";if(i.external){let Oe=(G=i.external.registry.get(S[0]))==null?void 0:G.id,Ue=(ce=i.external.uri)!=null?ce:ne=>ne;if(Oe)return{ref:Ue(Oe)};let V=(he=(ue=S[1].defId)!=null?ue:S[1].schema.id)!=null?he:"schema".concat(this.counter++);return S[1].defId=V,{defId:V,ref:"".concat(Ue("__shared"),"#/").concat(A,"/").concat(V)}}if(S[1]===r)return{ref:"#"};let N="".concat("#","/").concat(A,"/"),H=(Ge=S[1].schema.id)!=null?Ge:"__schema".concat(this.counter++);return{defId:H,ref:N+H}},"makeURI"),a=o(S=>{if(S[1].schema.$ref)return;let A=S[1],{ref:j,defId:N}=s(S);A.def=x({},A.schema),N&&(A.defId=N);let H=A.schema;for(let G in H)delete H[G];H.$ref=j},"extractToDef");if(i.cycles==="throw")for(let S of this.seen.entries()){let A=S[1];if(A.cycle)throw new Error("Cycle detected: "+"#/".concat((y=A.cycle)==null?void 0:y.join("/"),"/<root>")+'\n\nSet the `cycles` parameter to `"ref"` to resolve cyclical schemas with defs.')}for(let S of this.seen.entries()){let A=S[1];if(t===S[0]){a(S);continue}if(i.external){let N=(v=i.external.registry.get(S[0]))==null?void 0:v.id;if(t!==S[0]&&N){a(S);continue}}if((I=this.metadataRegistry.get(S[0]))==null?void 0:I.id){a(S);continue}if(A.cycle){a(S);continue}if(A.count>1&&i.reused==="ref"){a(S);continue}}let u=o((S,A)=>{var ce,ue,he;let j=this.seen.get(S),N=(ce=j.def)!=null?ce:j.schema,H=x({},N);if(j.ref===null)return;let G=j.ref;if(j.ref=null,G){u(G,A);let Ge=this.seen.get(G).schema;Ge.$ref&&(A.target==="draft-7"||A.target==="draft-4"||A.target==="openapi-3.0")?(N.allOf=(ue=N.allOf)!=null?ue:[],N.allOf.push(Ge)):(Object.assign(N,Ge),Object.assign(N,H))}j.isParent||this.override({zodSchema:S,jsonSchema:N,path:(he=j.path)!=null?he:[]})},"flattenRef");for(let S of[...this.seen.entries()].reverse())u(S[0],{target:this.target});let l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":this.target==="draft-4"?l.$schema="http://json-schema.org/draft-04/schema#":this.target==="openapi-3.0"||console.warn("Invalid target: ".concat(this.target)),(T=i.external)!=null&&T.uri){let S=(U=i.external.registry.get(t))==null?void 0:U.id;if(!S)throw new Error("Schema is missing an `id` property");l.$id=i.external.uri(S)}Object.assign(l,r.def);let c=(w=(D=i.external)==null?void 0:D.defs)!=null?w:{};for(let S of this.seen.entries()){let A=S[1];A.def&&A.defId&&(c[A.defId]=A.def)}i.external||Object.keys(c).length>0&&(this.target==="draft-2020-12"?l.$defs=c:l.definitions=c);try{return JSON.parse(JSON.stringify(l))}catch(S){throw new Error("Error converting schema to JSON.")}}};o(Rg,"JSONSchemaGenerator");var ma=Rg;function Pg(e,t){if(e instanceof Eo){let i=new ma(t),r={};for(let u of e._idmap.entries()){let[l,c]=u;i.process(c)}let s={},a={registry:e,uri:t==null?void 0:t.uri,defs:r};for(let u of e._idmap.entries()){let[l,c]=u;s[l]=i.emit(c,L(x({},t),{external:a}))}if(Object.keys(r).length>0){let u=i.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[u]:r}}return{schemas:s}}let n=new ma(t);return n.process(e),n.emit(e,t)}o(Pg,"toJSONSchema");function wt(e,t){let n=t!=null?t:{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;switch(r.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return wt(r.element,n);case"object":{for(let s in r.shape)if(wt(r.shape[s],n))return!0;return!1}case"union":{for(let s of r.options)if(wt(s,n))return!0;return!1}case"intersection":return wt(r.left,n)||wt(r.right,n);case"tuple":{for(let s of r.items)if(wt(s,n))return!0;return!!(r.rest&&wt(r.rest,n))}case"record":return wt(r.keyType,n)||wt(r.valueType,n);case"map":return wt(r.keyType,n)||wt(r.valueType,n);case"set":return wt(r.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return wt(r.innerType,n);case"lazy":return wt(r.getter(),n);case"default":return wt(r.innerType,n);case"prefault":return wt(r.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return wt(r.in,n)||wt(r.out,n);case"success":return!1;case"catch":return!1;case"function":return!1;default:}throw new Error("Unknown schema type: ".concat(r.type))}o(wt,"isTransforming");var Cg={};f();f();f();var ga={};un(ga,{ZodISODate:()=>yu,ZodISODateTime:()=>gu,ZodISODuration:()=>vu,ZodISOTime:()=>xu,date:()=>Ug,datetime:()=>Og,duration:()=>Ng,time:()=>Fg});f();var gu=M("ZodISODateTime",(e,t)=>{Qp.init(e,t),Je.init(e,t)});function Og(e){return Hm(gu,e)}o(Og,"datetime");var yu=M("ZodISODate",(e,t)=>{eh.init(e,t),Je.init(e,t)});function Ug(e){return Wm(yu,e)}o(Ug,"date");var xu=M("ZodISOTime",(e,t)=>{th.init(e,t),Je.init(e,t)});function Fg(e){return Zm(xu,e)}o(Fg,"time");var vu=M("ZodISODuration",(e,t)=>{nh.init(e,t),Je.init(e,t)});function Ng(e){return Xm(vu,e)}o(Ng,"duration");f();f();var Sb=o((e,t)=>{Vs.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:o(n=>Gs(e,n),"value")},flatten:{value:o(n=>js(e,n),"value")},addIssue:{value:o(n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xo,2)},"value")},addIssues:{value:o(n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xo,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),GC=M("ZodError",Sb),dn=M("ZodError",Sb,{Parent:Error});var kg=bo(dn),Dg=So(dn),Lg=Io(dn),$g=wo(dn),zg=Pc(dn),Bg=Rc(dn),Vg=Cc(dn),jg=Oc(dn),Gg=Uc(dn),Hg=Fc(dn),Wg=Nc(dn),Zg=kc(dn);var de=M("ZodType",(e,t)=>(se.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>{var i;return e.clone(z.mergeDefs(t,{checks:[...(i=t.checks)!=null?i:[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}))},e.clone=(n,i)=>nn(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>kg(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Lg(e,n,i),e.parseAsync=async(n,i)=>Dg(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>$g(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>zg(e,n,i),e.decode=(n,i)=>Bg(e,n,i),e.encodeAsync=async(n,i)=>Vg(e,n,i),e.decodeAsync=async(n,i)=>jg(e,n,i),e.safeEncode=(n,i)=>Gg(e,n,i),e.safeDecode=(n,i)=>Hg(e,n,i),e.safeEncodeAsync=async(n,i)=>Wg(e,n,i),e.safeDecodeAsync=async(n,i)=>Zg(e,n,i),e.refine=(n,i)=>e.check(c0(n,i)),e.superRefine=n=>e.check(u0(n)),e.overwrite=n=>e.check($r(n)),e.optional=()=>bu(e),e.nullable=()=>Su(e),e.nullish=()=>bu(Su(e)),e.nonoptional=n=>Kb(e,n),e.array=()=>Eu(e),e.or=n=>gy([e,n]),e.and=n=>kb(e,n),e.transform=n=>Iu(e,vy(n)),e.default=n=>Zb(e,n),e.prefault=n=>qb(e,n),e.catch=n=>Qb(e,n),e.pipe=n=>Iu(e,n),e.readonly=()=>n0(e),e.describe=n=>{let i=e.clone();return mr.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){var n;return(n=mr.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return mr.get(e);let i=e.clone();return mr.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Kg=M("_ZodString",(e,t)=>{var i,r,s;Li.init(e,t),de.init(e,t);let n=e._zod.bag;e.format=(i=n.format)!=null?i:null,e.minLength=(r=n.minimum)!=null?r:null,e.maxLength=(s=n.maximum)!=null?s:null,e.regex=(...a)=>e.check(ia(...a)),e.includes=(...a)=>e.check(aa(...a)),e.startsWith=(...a)=>e.check(ca(...a)),e.endsWith=(...a)=>e.check(ua(...a)),e.min=(...a)=>e.check(vi(...a)),e.max=(...a)=>e.check(Ao(...a)),e.length=(...a)=>e.check(Po(...a)),e.nonempty=(...a)=>e.check(vi(1,...a)),e.lowercase=a=>e.check(oa(a)),e.uppercase=a=>e.check(sa(a)),e.trim=()=>e.check(da()),e.normalize=(...a)=>e.check(fa(...a)),e.toLowerCase=()=>e.check(pa()),e.toUpperCase=()=>e.check(ha())}),xa=M("ZodString",(e,t)=>{Li.init(e,t),Kg.init(e,t),e.email=n=>e.check(Kc(Yg,n)),e.url=n=>e.check(na(wu,n)),e.jwt=n=>e.check(mu(dy,n)),e.emoji=n=>e.check(tu(Jg,n)),e.guid=n=>e.check(ta(_u,n)),e.uuid=n=>e.check(Yc(zr,n)),e.uuidv4=n=>e.check(Jc(zr,n)),e.uuidv6=n=>e.check(Qc(zr,n)),e.uuidv7=n=>e.check(eu(zr,n)),e.nanoid=n=>e.check(nu(Qg,n)),e.guid=n=>e.check(ta(_u,n)),e.cuid=n=>e.check(ru(ey,n)),e.cuid2=n=>e.check(iu(ty,n)),e.ulid=n=>e.check(ou(ny,n)),e.base64=n=>e.check(du(uy,n)),e.base64url=n=>e.check(pu(ly,n)),e.xid=n=>e.check(su(ry,n)),e.ksuid=n=>e.check(au(iy,n)),e.ipv4=n=>e.check(cu(oy,n)),e.ipv6=n=>e.check(uu(sy,n)),e.cidrv4=n=>e.check(lu(ay,n)),e.cidrv6=n=>e.check(fu(cy,n)),e.e164=n=>e.check(hu(fy,n)),e.datetime=n=>e.check(Og(n)),e.date=n=>e.check(Ug(n)),e.time=n=>e.check(Fg(n)),e.duration=n=>e.check(Ng(n))});function Xg(e){return Vm(xa,e)}o(Xg,"string");var Je=M("ZodStringFormat",(e,t)=>{qe.init(e,t),Kg.init(e,t)}),Yg=M("ZodEmail",(e,t)=>{Gp.init(e,t),Je.init(e,t)});function WC(e){return Kc(Yg,e)}o(WC,"email");var _u=M("ZodGUID",(e,t)=>{Vp.init(e,t),Je.init(e,t)});function ZC(e){return ta(_u,e)}o(ZC,"guid");var zr=M("ZodUUID",(e,t)=>{jp.init(e,t),Je.init(e,t)});function XC(e){return Yc(zr,e)}o(XC,"uuid");function qC(e){return Jc(zr,e)}o(qC,"uuidv4");function KC(e){return Qc(zr,e)}o(KC,"uuidv6");function YC(e){return eu(zr,e)}o(YC,"uuidv7");var wu=M("ZodURL",(e,t)=>{Hp.init(e,t),Je.init(e,t)});function JC(e){return na(wu,e)}o(JC,"url");function QC(e){return na(wu,x({protocol:/^https?$/,hostname:bn.domain},z.normalizeParams(e)))}o(QC,"httpUrl");var Jg=M("ZodEmoji",(e,t)=>{Wp.init(e,t),Je.init(e,t)});function eO(e){return tu(Jg,e)}o(eO,"emoji");var Qg=M("ZodNanoID",(e,t)=>{Zp.init(e,t),Je.init(e,t)});function tO(e){return nu(Qg,e)}o(tO,"nanoid");var ey=M("ZodCUID",(e,t)=>{Xp.init(e,t),Je.init(e,t)});function nO(e){return ru(ey,e)}o(nO,"cuid");var ty=M("ZodCUID2",(e,t)=>{qp.init(e,t),Je.init(e,t)});function rO(e){return iu(ty,e)}o(rO,"cuid2");var ny=M("ZodULID",(e,t)=>{Kp.init(e,t),Je.init(e,t)});function iO(e){return ou(ny,e)}o(iO,"ulid");var ry=M("ZodXID",(e,t)=>{Yp.init(e,t),Je.init(e,t)});function oO(e){return su(ry,e)}o(oO,"xid");var iy=M("ZodKSUID",(e,t)=>{Jp.init(e,t),Je.init(e,t)});function sO(e){return au(iy,e)}o(sO,"ksuid");var oy=M("ZodIPv4",(e,t)=>{rh.init(e,t),Je.init(e,t)});function aO(e){return cu(oy,e)}o(aO,"ipv4");var sy=M("ZodIPv6",(e,t)=>{ih.init(e,t),Je.init(e,t)});function cO(e){return uu(sy,e)}o(cO,"ipv6");var ay=M("ZodCIDRv4",(e,t)=>{oh.init(e,t),Je.init(e,t)});function uO(e){return lu(ay,e)}o(uO,"cidrv4");var cy=M("ZodCIDRv6",(e,t)=>{sh.init(e,t),Je.init(e,t)});function lO(e){return fu(cy,e)}o(lO,"cidrv6");var uy=M("ZodBase64",(e,t)=>{ch.init(e,t),Je.init(e,t)});function fO(e){return du(uy,e)}o(fO,"base64");var ly=M("ZodBase64URL",(e,t)=>{uh.init(e,t),Je.init(e,t)});function dO(e){return pu(ly,e)}o(dO,"base64url");var fy=M("ZodE164",(e,t)=>{lh.init(e,t),Je.init(e,t)});function pO(e){return hu(fy,e)}o(pO,"e164");var dy=M("ZodJWT",(e,t)=>{fh.init(e,t),Je.init(e,t)});function hO(e){return mu(dy,e)}o(hO,"jwt");var va=M("ZodCustomStringFormat",(e,t)=>{dh.init(e,t),Je.init(e,t)});function mO(e,t,n={}){return Ro(va,e,t,n)}o(mO,"stringFormat");function gO(e){return Ro(va,"hostname",bn.hostname,e)}o(gO,"hostname");function yO(e){return Ro(va,"hex",bn.hex,e)}o(yO,"hex");function xO(e,t){var s;let n=(s=t==null?void 0:t.enc)!=null?s:"hex",i="".concat(e,"_").concat(n),r=bn[i];if(!r)throw new Error("Unrecognized hash format: ".concat(i));return Ro(va,i,r,t)}o(xO,"hash");var _a=M("ZodNumber",(e,t)=>{var i,r,s,a,u,l,c,d,h;Hc.init(e,t),de.init(e,t),e.gt=(m,y)=>e.check(Lr(m,y)),e.gte=(m,y)=>e.check(fn(m,y)),e.min=(m,y)=>e.check(fn(m,y)),e.lt=(m,y)=>e.check(Dr(m,y)),e.lte=(m,y)=>e.check(Nn(m,y)),e.max=(m,y)=>e.check(Nn(m,y)),e.int=m=>e.check(qg(m)),e.safe=m=>e.check(qg(m)),e.positive=m=>e.check(Lr(0,m)),e.nonnegative=m=>e.check(fn(0,m)),e.negative=m=>e.check(Dr(0,m)),e.nonpositive=m=>e.check(Nn(0,m)),e.multipleOf=(m,y)=>e.check(zi(m,y)),e.step=(m,y)=>e.check(zi(m,y)),e.finite=()=>e;let n=e._zod.bag;e.minValue=(s=Math.max((i=n.minimum)!=null?i:Number.NEGATIVE_INFINITY,(r=n.exclusiveMinimum)!=null?r:Number.NEGATIVE_INFINITY))!=null?s:null,e.maxValue=(l=Math.min((a=n.maximum)!=null?a:Number.POSITIVE_INFINITY,(u=n.exclusiveMaximum)!=null?u:Number.POSITIVE_INFINITY))!=null?l:null,e.isInt=((c=n.format)!=null?c:"").includes("int")||Number.isSafeInteger((d=n.multipleOf)!=null?d:.5),e.isFinite=!0,e.format=(h=n.format)!=null?h:null});function Ib(e){return qm(_a,e)}o(Ib,"number");var Oo=M("ZodNumberFormat",(e,t)=>{ph.init(e,t),_a.init(e,t)});function qg(e){return Ym(Oo,e)}o(qg,"int");function vO(e){return Jm(Oo,e)}o(vO,"float32");function _O(e){return Qm(Oo,e)}o(_O,"float64");function bO(e){return eg(Oo,e)}o(bO,"int32");function SO(e){return tg(Oo,e)}o(SO,"uint32");var ba=M("ZodBoolean",(e,t)=>{Xs.init(e,t),de.init(e,t)});function wb(e){return ng(ba,e)}o(wb,"boolean");var Sa=M("ZodBigInt",(e,t)=>{var i,r,s;Wc.init(e,t),de.init(e,t),e.gte=(a,u)=>e.check(fn(a,u)),e.min=(a,u)=>e.check(fn(a,u)),e.gt=(a,u)=>e.check(Lr(a,u)),e.gte=(a,u)=>e.check(fn(a,u)),e.min=(a,u)=>e.check(fn(a,u)),e.lt=(a,u)=>e.check(Dr(a,u)),e.lte=(a,u)=>e.check(Nn(a,u)),e.max=(a,u)=>e.check(Nn(a,u)),e.positive=a=>e.check(Lr(BigInt(0),a)),e.negative=a=>e.check(Dr(BigInt(0),a)),e.nonpositive=a=>e.check(Nn(BigInt(0),a)),e.nonnegative=a=>e.check(fn(BigInt(0),a)),e.multipleOf=(a,u)=>e.check(zi(a,u));let n=e._zod.bag;e.minValue=(i=n.minimum)!=null?i:null,e.maxValue=(r=n.maximum)!=null?r:null,e.format=(s=n.format)!=null?s:null});function IO(e){return ig(Sa,e)}o(IO,"bigint");var py=M("ZodBigIntFormat",(e,t)=>{hh.init(e,t),Sa.init(e,t)});function wO(e){return sg(py,e)}o(wO,"int64");function MO(e){return ag(py,e)}o(MO,"uint64");var Mb=M("ZodSymbol",(e,t)=>{mh.init(e,t),de.init(e,t)});function EO(e){return cg(Mb,e)}o(EO,"symbol");var Eb=M("ZodUndefined",(e,t)=>{gh.init(e,t),de.init(e,t)});function TO(e){return ug(Eb,e)}o(TO,"_undefined");var Tb=M("ZodNull",(e,t)=>{yh.init(e,t),de.init(e,t)});function Ab(e){return lg(Tb,e)}o(Ab,"_null");var Pb=M("ZodAny",(e,t)=>{xh.init(e,t),de.init(e,t)});function AO(){return fg(Pb)}o(AO,"any");var Rb=M("ZodUnknown",(e,t)=>{vh.init(e,t),de.init(e,t)});function Co(){return dg(Rb)}o(Co,"unknown");var Cb=M("ZodNever",(e,t)=>{_h.init(e,t),de.init(e,t)});function hy(e){return pg(Cb,e)}o(hy,"never");var Ob=M("ZodVoid",(e,t)=>{bh.init(e,t),de.init(e,t)});function PO(e){return hg(Ob,e)}o(PO,"_void");var Mu=M("ZodDate",(e,t)=>{Sh.init(e,t),de.init(e,t),e.min=(i,r)=>e.check(fn(i,r)),e.max=(i,r)=>e.check(Nn(i,r));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function RO(e){return mg(Mu,e)}o(RO,"date");var Ub=M("ZodArray",(e,t)=>{Ih.init(e,t),de.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(vi(n,i)),e.nonempty=n=>e.check(vi(1,n)),e.max=(n,i)=>e.check(Ao(n,i)),e.length=(n,i)=>e.check(Po(n,i)),e.unwrap=()=>e.element});function Eu(e,t){return Ig(Ub,e,t)}o(Eu,"array");function CO(e){let t=e._zod.def.shape;return xy(Object.keys(t))}o(CO,"keyof");var Tu=M("ZodObject",(e,t)=>{wh.init(e,t),de.init(e,t),z.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>xy(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone(L(x({},e._zod.def),{catchall:n})),e.passthrough=()=>e.clone(L(x({},e._zod.def),{catchall:Co()})),e.loose=()=>e.clone(L(x({},e._zod.def),{catchall:Co()})),e.strict=()=>e.clone(L(x({},e._zod.def),{catchall:hy()})),e.strip=()=>e.clone(L(x({},e._zod.def),{catchall:void 0})),e.extend=n=>z.extend(e,n),e.safeExtend=n=>z.safeExtend(e,n),e.merge=n=>z.merge(e,n),e.pick=n=>z.pick(e,n),e.omit=n=>z.omit(e,n),e.partial=(...n)=>z.partial(_y,e,n[0]),e.required=(...n)=>z.required(by,e,n[0])});function OO(e,t){let n=x({type:"object",shape:e!=null?e:{}},z.normalizeParams(t));return new Tu(n)}o(OO,"object");function UO(e,t){return new Tu(x({type:"object",shape:e,catchall:hy()},z.normalizeParams(t)))}o(UO,"strictObject");function FO(e,t){return new Tu(x({type:"object",shape:e,catchall:Co()},z.normalizeParams(t)))}o(FO,"looseObject");var my=M("ZodUnion",(e,t)=>{Zc.init(e,t),de.init(e,t),e.options=t.options});function gy(e,t){return new my(x({type:"union",options:e},z.normalizeParams(t)))}o(gy,"union");var Fb=M("ZodDiscriminatedUnion",(e,t)=>{my.init(e,t),Mh.init(e,t)});function NO(e,t,n){return new Fb(x({type:"union",options:t,discriminator:e},z.normalizeParams(n)))}o(NO,"discriminatedUnion");var Nb=M("ZodIntersection",(e,t)=>{Eh.init(e,t),de.init(e,t)});function kb(e,t){return new Nb({type:"intersection",left:e,right:t})}o(kb,"intersection");var Db=M("ZodTuple",(e,t)=>{Xc.init(e,t),de.init(e,t),e.rest=n=>e.clone(L(x({},e._zod.def),{rest:n}))});function Lb(e,t,n){let i=t instanceof se,r=i?n:t,s=i?t:null;return new Db(x({type:"tuple",items:e,rest:s},z.normalizeParams(r)))}o(Lb,"tuple");var yy=M("ZodRecord",(e,t)=>{Th.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function $b(e,t,n){return new yy(x({type:"record",keyType:e,valueType:t},z.normalizeParams(n)))}o($b,"record");function kO(e,t,n){let i=nn(e);return i._zod.values=void 0,new yy(x({type:"record",keyType:i,valueType:t},z.normalizeParams(n)))}o(kO,"partialRecord");var zb=M("ZodMap",(e,t)=>{Ah.init(e,t),de.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function DO(e,t,n){return new zb(x({type:"map",keyType:e,valueType:t},z.normalizeParams(n)))}o(DO,"map");var Bb=M("ZodSet",(e,t)=>{Ph.init(e,t),de.init(e,t),e.min=(...n)=>e.check(Bi(...n)),e.nonempty=n=>e.check(Bi(1,n)),e.max=(...n)=>e.check(To(...n)),e.size=(...n)=>e.check(ra(...n))});function LO(e,t){return new Bb(x({type:"set",valueType:e},z.normalizeParams(t)))}o(LO,"set");var ya=M("ZodEnum",(e,t)=>{Rh.init(e,t),de.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(i,r)=>{let s={};for(let a of i)if(n.has(a))s[a]=t.entries[a];else throw new Error("Key ".concat(a," not found in enum"));return new ya(L(x(L(x({},t),{checks:[]}),z.normalizeParams(r)),{entries:s}))},e.exclude=(i,r)=>{let s=x({},t.entries);for(let a of i)if(n.has(a))delete s[a];else throw new Error("Key ".concat(a," not found in enum"));return new ya(L(x(L(x({},t),{checks:[]}),z.normalizeParams(r)),{entries:s}))}});function xy(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ya(x({type:"enum",entries:n},z.normalizeParams(t)))}o(xy,"_enum");function $O(e,t){return new ya(x({type:"enum",entries:e},z.normalizeParams(t)))}o($O,"nativeEnum");var Vb=M("ZodLiteral",(e,t)=>{Ch.init(e,t),de.init(e,t),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 zO(e,t){return new Vb(x({type:"literal",values:Array.isArray(e)?e:[e]},z.normalizeParams(t)))}o(zO,"literal");var jb=M("ZodFile",(e,t)=>{Oh.init(e,t),de.init(e,t),e.min=(n,i)=>e.check(Bi(n,i)),e.max=(n,i)=>e.check(To(n,i)),e.mime=(n,i)=>e.check(la(Array.isArray(n)?n:[n],i))});function BO(e){return wg(jb,e)}o(BO,"file");var Gb=M("ZodTransform",(e,t)=>{Uh.init(e,t),de.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new pi(e.constructor.name);n.addIssue=s=>{var a,u,l;if(typeof s=="string")n.issues.push(z.issue(s,n.value,t));else{let c=s;c.fatal&&(c.continue=!1),(a=c.code)!=null||(c.code="custom"),(u=c.input)!=null||(c.input=n.value),(l=c.inst)!=null||(c.inst=e),n.issues.push(z.issue(c))}};let r=t.transform(n.value,n);return r instanceof Promise?r.then(s=>(n.value=s,n)):(n.value=r,n)}});function vy(e){return new Gb({type:"transform",transform:e})}o(vy,"transform");var _y=M("ZodOptional",(e,t)=>{Fh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bu(e){return new _y({type:"optional",innerType:e})}o(bu,"optional");var Hb=M("ZodNullable",(e,t)=>{Nh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Su(e){return new Hb({type:"nullable",innerType:e})}o(Su,"nullable");function VO(e){return bu(Su(e))}o(VO,"nullish");var Wb=M("ZodDefault",(e,t)=>{kh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Zb(e,t){return new Wb({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}o(Zb,"_default");var Xb=M("ZodPrefault",(e,t)=>{Dh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function qb(e,t){return new Xb({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():z.shallowClone(t)}})}o(qb,"prefault");var by=M("ZodNonOptional",(e,t)=>{Lh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Kb(e,t){return new by(x({type:"nonoptional",innerType:e},z.normalizeParams(t)))}o(Kb,"nonoptional");var Yb=M("ZodSuccess",(e,t)=>{$h.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function jO(e){return new Yb({type:"success",innerType:e})}o(jO,"success");var Jb=M("ZodCatch",(e,t)=>{zh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Qb(e,t){return new Jb({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}o(Qb,"_catch");var e0=M("ZodNaN",(e,t)=>{Bh.init(e,t),de.init(e,t)});function GO(e){return yg(e0,e)}o(GO,"nan");var Sy=M("ZodPipe",(e,t)=>{Vh.init(e,t),de.init(e,t),e.in=t.in,e.out=t.out});function Iu(e,t){return new Sy({type:"pipe",in:e,out:t})}o(Iu,"pipe");var Iy=M("ZodCodec",(e,t)=>{Sy.init(e,t),qs.init(e,t)});function HO(e,t,n){return new Iy({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}o(HO,"codec");var t0=M("ZodReadonly",(e,t)=>{jh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function n0(e){return new t0({type:"readonly",innerType:e})}o(n0,"readonly");var r0=M("ZodTemplateLiteral",(e,t)=>{Gh.init(e,t),de.init(e,t)});function WO(e,t){return new r0(x({type:"template_literal",parts:e},z.normalizeParams(t)))}o(WO,"templateLiteral");var i0=M("ZodLazy",(e,t)=>{Zh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.getter()});function o0(e){return new i0({type:"lazy",getter:e})}o(o0,"lazy");var s0=M("ZodPromise",(e,t)=>{Wh.init(e,t),de.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ZO(e){return new s0({type:"promise",innerType:e})}o(ZO,"promise");var a0=M("ZodFunction",(e,t)=>{Hh.init(e,t),de.init(e,t)});function XO(e){var t,n;return new a0({type:"function",input:Array.isArray(e==null?void 0:e.input)?Lb(e==null?void 0:e.input):(t=e==null?void 0:e.input)!=null?t:Eu(Co()),output:(n=e==null?void 0:e.output)!=null?n:Co()})}o(XO,"_function");var Au=M("ZodCustom",(e,t)=>{Xh.init(e,t),de.init(e,t)});function qO(e){let t=new rt({check:"custom"});return t._zod.check=e,t}o(qO,"check");function KO(e,t){return Mg(Au,e!=null?e:()=>!0,t)}o(KO,"custom");function c0(e,t={}){return Eg(Au,e,t)}o(c0,"refine");function u0(e){return Tg(e)}o(u0,"superRefine");function YO(e,t={error:"Input not instance of ".concat(e.name)}){let n=new Au(x({type:"custom",check:"custom",fn:o(i=>i instanceof e,"fn"),abort:!0},z.normalizeParams(t)));return n._zod.bag.Class=e,n}o(YO,"_instanceof");var JO=o((...e)=>Ag({Codec:Iy,Boolean:ba,String:xa},...e),"stringbool");function QO(e){let t=o0(()=>gy([Xg(e),Ib(),wb(),Ab(),Eu(t),$b(Xg(),t)]));return t}o(QO,"json");function eU(e,t){return Iu(vy(e),t)}o(eU,"preprocess");f();var tU={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 nU(e){xt({customError:e})}o(nU,"setErrorMap");function rU(){return xt().customError}o(rU,"getErrorMap");var wy;wy||(wy={});var Pu={};un(Pu,{bigint:()=>aU,boolean:()=>sU,date:()=>cU,number:()=>oU,string:()=>iU});f();function iU(e){return jm(xa,e)}o(iU,"string");function oU(e){return Km(_a,e)}o(oU,"number");function sU(e){return rg(ba,e)}o(sU,"boolean");function aU(e){return og(Sa,e)}o(aU,"bigint");function cU(e){return gg(Mu,e)}o(cU,"date");xt(Ks());f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();f();var be={};un(be,{HasPropertyKey:()=>uU,IsArray:()=>Wt,IsAsyncIterator:()=>My,IsBigInt:()=>Ia,IsBoolean:()=>_i,IsDate:()=>Vi,IsFunction:()=>Ey,IsIterator:()=>Ty,IsNull:()=>Ay,IsNumber:()=>nr,IsObject:()=>He,IsRegExp:()=>wa,IsString:()=>Qe,IsSymbol:()=>Py,IsUint8Array:()=>Br,IsUndefined:()=>ct});f();function uU(e,t){return t in e}o(uU,"HasPropertyKey");function My(e){return He(e)&&!Wt(e)&&!Br(e)&&Symbol.asyncIterator in e}o(My,"IsAsyncIterator");function Wt(e){return Array.isArray(e)}o(Wt,"IsArray");function Ia(e){return typeof e=="bigint"}o(Ia,"IsBigInt");function _i(e){return typeof e=="boolean"}o(_i,"IsBoolean");function Vi(e){return e instanceof globalThis.Date}o(Vi,"IsDate");function Ey(e){return typeof e=="function"}o(Ey,"IsFunction");function Ty(e){return He(e)&&!Wt(e)&&!Br(e)&&Symbol.iterator in e}o(Ty,"IsIterator");function Ay(e){return e===null}o(Ay,"IsNull");function nr(e){return typeof e=="number"}o(nr,"IsNumber");function He(e){return typeof e=="object"&&e!==null}o(He,"IsObject");function wa(e){return e instanceof globalThis.RegExp}o(wa,"IsRegExp");function Qe(e){return typeof e=="string"}o(Qe,"IsString");function Py(e){return typeof e=="symbol"}o(Py,"IsSymbol");function Br(e){return e instanceof globalThis.Uint8Array}o(Br,"IsUint8Array");function ct(e){return e===void 0}o(ct,"IsUndefined");function lU(e){return e.map(t=>Ru(t))}o(lU,"ArrayType");function fU(e){return new Date(e.getTime())}o(fU,"DateType");function dU(e){return new Uint8Array(e)}o(dU,"Uint8ArrayType");function pU(e){return new RegExp(e.source,e.flags)}o(pU,"RegExpType");function hU(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Ru(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Ru(e[n]);return t}o(hU,"ObjectType");function Ru(e){return Wt(e)?lU(e):Vi(e)?fU(e):Br(e)?dU(e):wa(e)?pU(e):He(e)?hU(e):e}o(Ru,"Visit");function it(e){return Ru(e)}o(it,"Clone");function l0(e){return e.map(t=>Ma(t))}o(l0,"CloneRest");function Ma(e,t){return t===void 0?it(e):it(x(x({},t),e))}o(Ma,"CloneType");f();f();f();function Cu(e){return fe(e)&&Symbol.asyncIterator in e}o(Cu,"IsAsyncIterator");function Ou(e){return fe(e)&&Symbol.iterator in e}o(Ou,"IsIterator");function Ry(e){return fe(e)&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}o(Ry,"IsStandardObject");function Uu(e){return e instanceof Promise}o(Uu,"IsPromise");function rn(e){return e instanceof Date&&Number.isFinite(e.getTime())}o(rn,"IsDate");function f0(e){return e instanceof globalThis.Map}o(f0,"IsMap");function d0(e){return e instanceof globalThis.Set}o(d0,"IsSet");function kn(e){return ArrayBuffer.isView(e)}o(kn,"IsTypedArray");function Uo(e){return e instanceof globalThis.Uint8Array}o(Uo,"IsUint8Array");function ie(e,t){return t in e}o(ie,"HasPropertyKey");function fe(e){return e!==null&&typeof e=="object"}o(fe,"IsObject");function ae(e){return Array.isArray(e)&&!ArrayBuffer.isView(e)}o(ae,"IsArray");function ut(e){return e===void 0}o(ut,"IsUndefined");function Vr(e){return e===null}o(Vr,"IsNull");function yr(e){return typeof e=="boolean"}o(yr,"IsBoolean");function ee(e){return typeof e=="number"}o(ee,"IsNumber");function Fu(e){return Number.isInteger(e)}o(Fu,"IsInteger");function Ut(e){return typeof e=="bigint"}o(Ut,"IsBigInt");function Se(e){return typeof e=="string"}o(Se,"IsString");function bi(e){return typeof e=="function"}o(bi,"IsFunction");function jr(e){return typeof e=="symbol"}o(jr,"IsSymbol");function Ft(e){return Ut(e)||yr(e)||Vr(e)||ee(e)||Se(e)||jr(e)||ut(e)}o(Ft,"IsValueType");var Le;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(a,u){return e.ExactOptionalPropertyTypes?u in a:a[u]!==void 0}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function n(a){let u=fe(a);return e.AllowArrayObject?u:u&&!ae(a)}o(n,"IsObjectLike"),e.IsObjectLike=n;function i(a){return n(a)&&!(a instanceof Date)&&!(a instanceof Uint8Array)}o(i,"IsRecordLike"),e.IsRecordLike=i;function r(a){return e.AllowNaN?ee(a):Number.isFinite(a)}o(r,"IsNumberLike"),e.IsNumberLike=r;function s(a){let u=ut(a);return e.AllowNullVoid?u||a===null:u}o(s,"IsVoidLike"),e.IsVoidLike=s})(Le||(Le={}));f();function mU(e){return globalThis.Object.freeze(e).map(t=>Ea(t))}o(mU,"ImmutableArray");function gU(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Ea(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Ea(e[n]);return globalThis.Object.freeze(t)}o(gU,"ImmutableObject");function Ea(e){return Wt(e)?mU(e):Vi(e)?e:Br(e)?e:wa(e)?e:He(e)?gU(e):e}o(Ea,"Immutable");function F(e,t){let n=t!==void 0?x(x({},t),e):e;switch(Le.InstanceMode){case"freeze":return Ea(n);case"clone":return it(n);default:return n}}o(F,"CreateType");f();var Cy=class Cy extends Error{constructor(t){super(t)}};o(Cy,"TypeBoxError");var re=Cy;f();f();f();var ot=Symbol.for("TypeBox.Transform"),Gr=Symbol.for("TypeBox.Readonly"),on=Symbol.for("TypeBox.Optional"),Dn=Symbol.for("TypeBox.Hint"),P=Symbol.for("TypeBox.Kind");function p0(e){return He(e)&&e[Gr]==="Readonly"}o(p0,"IsReadonly");function xr(e){return He(e)&&e[on]==="Optional"}o(xr,"IsOptional");function Oy(e){return Ee(e,"Any")}o(Oy,"IsAny");function Hr(e){return Ee(e,"Array")}o(Hr,"IsArray");function Ta(e){return Ee(e,"AsyncIterator")}o(Ta,"IsAsyncIterator");function Uy(e){return Ee(e,"BigInt")}o(Uy,"IsBigInt");function Fy(e){return Ee(e,"Boolean")}o(Fy,"IsBoolean");function Aa(e){return Ee(e,"Constructor")}o(Aa,"IsConstructor");function yU(e){return Ee(e,"Date")}o(yU,"IsDate");function Pa(e){return Ee(e,"Function")}o(Pa,"IsFunction");function ji(e){return Ee(e,"Integer")}o(ji,"IsInteger");function vt(e){return Ee(e,"Intersect")}o(vt,"IsIntersect");function Ra(e){return Ee(e,"Iterator")}o(Ra,"IsIterator");function Ee(e,t){return He(e)&&P in e&&e[P]===t}o(Ee,"IsKindOf");function Wr(e){return Ee(e,"Literal")}o(Wr,"IsLiteral");function Sn(e){return Ee(e,"MappedKey")}o(Sn,"IsMappedKey");function st(e){return Ee(e,"MappedResult")}o(st,"IsMappedResult");function Si(e){return Ee(e,"Never")}o(Si,"IsNever");function xU(e){return Ee(e,"Not")}o(xU,"IsNot");function vU(e){return Ee(e,"Null")}o(vU,"IsNull");function Gi(e){return Ee(e,"Number")}o(Gi,"IsNumber");function Mt(e){return Ee(e,"Object")}o(Mt,"IsObject");function Hi(e){return Ee(e,"Promise")}o(Hi,"IsPromise");function Ny(e){return Ee(e,"Record")}o(Ny,"IsRecord");function ky(e){return Ee(e,"Ref")}o(ky,"IsRef");function Dy(e){return Ee(e,"RegExp")}o(Dy,"IsRegExp");function Ca(e){return Ee(e,"String")}o(Ca,"IsString");function _U(e){return Ee(e,"Symbol")}o(_U,"IsSymbol");function In(e){return Ee(e,"TemplateLiteral")}o(In,"IsTemplateLiteral");function bU(e){return Ee(e,"This")}o(bU,"IsThis");function Fo(e){return He(e)&&ot in e}o(Fo,"IsTransform");function rr(e){return Ee(e,"Tuple")}o(rr,"IsTuple");function SU(e){return Ee(e,"Undefined")}o(SU,"IsUndefined");function Ce(e){return Ee(e,"Union")}o(Ce,"IsUnion");function IU(e){return Ee(e,"Uint8Array")}o(IU,"IsUint8Array");function wU(e){return Ee(e,"Unknown")}o(wU,"IsUnknown");function MU(e){return Ee(e,"Unsafe")}o(MU,"IsUnsafe");function EU(e){return Ee(e,"Void")}o(EU,"IsVoid");function Ii(e){return He(e)&&P in e&&Qe(e[P])}o(Ii,"IsKind");function ir(e){return Oy(e)||Hr(e)||Fy(e)||Uy(e)||Ta(e)||Aa(e)||yU(e)||Pa(e)||ji(e)||vt(e)||Ra(e)||Wr(e)||Sn(e)||st(e)||Si(e)||xU(e)||vU(e)||Gi(e)||Mt(e)||Hi(e)||Ny(e)||ky(e)||Dy(e)||Ca(e)||_U(e)||In(e)||bU(e)||rr(e)||SU(e)||Ce(e)||IU(e)||wU(e)||MU(e)||EU(e)||Ii(e)}o(ir,"IsSchema");var _={};un(_,{IsAny:()=>y0,IsArray:()=>x0,IsAsyncIterator:()=>v0,IsBigInt:()=>_0,IsBoolean:()=>b0,IsConstructor:()=>S0,IsDate:()=>I0,IsFunction:()=>w0,IsInteger:()=>M0,IsIntersect:()=>E0,IsIterator:()=>T0,IsKind:()=>Y0,IsKindOf:()=>we,IsLiteral:()=>Ua,IsLiteralBoolean:()=>OU,IsLiteralNumber:()=>P0,IsLiteralString:()=>A0,IsLiteralValue:()=>R0,IsMappedKey:()=>C0,IsMappedResult:()=>O0,IsNever:()=>U0,IsNot:()=>F0,IsNull:()=>N0,IsNumber:()=>k0,IsObject:()=>D0,IsOptional:()=>CU,IsPromise:()=>L0,IsProperties:()=>By,IsReadonly:()=>RU,IsRecord:()=>$0,IsRecursive:()=>UU,IsRef:()=>z0,IsRegExp:()=>B0,IsSchema:()=>Ie,IsString:()=>V0,IsSymbol:()=>j0,IsTemplateLiteral:()=>G0,IsThis:()=>H0,IsTransform:()=>et,IsTuple:()=>W0,IsUint8Array:()=>Z0,IsUndefined:()=>No,IsUnion:()=>Vy,IsUnionLiteral:()=>FU,IsUnknown:()=>X0,IsUnsafe:()=>q0,IsVoid:()=>K0,TypeGuardUnknownTypeError:()=>Ly});f();var jy=class jy extends re{};o(jy,"TypeGuardUnknownTypeError");var Ly=jy,TU=["Any","Array","AsyncIterator","BigInt","Boolean","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function h0(e){try{return new RegExp(e),!0}catch(t){return!1}}o(h0,"IsPattern");function $y(e){if(!Qe(e))return!1;for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n>=7&&n<=13||n===27||n===127)return!1}return!0}o($y,"IsControlCharacterFree");function m0(e){return zy(e)||Ie(e)}o(m0,"IsAdditionalProperties");function Oa(e){return ct(e)||Ia(e)}o(Oa,"IsOptionalBigInt");function Ke(e){return ct(e)||nr(e)}o(Ke,"IsOptionalNumber");function zy(e){return ct(e)||_i(e)}o(zy,"IsOptionalBoolean");function ze(e){return ct(e)||Qe(e)}o(ze,"IsOptionalString");function AU(e){return ct(e)||Qe(e)&&$y(e)&&h0(e)}o(AU,"IsOptionalPattern");function PU(e){return ct(e)||Qe(e)&&$y(e)}o(PU,"IsOptionalFormat");function g0(e){return ct(e)||Ie(e)}o(g0,"IsOptionalSchema");function RU(e){return He(e)&&e[Gr]==="Readonly"}o(RU,"IsReadonly");function CU(e){return He(e)&&e[on]==="Optional"}o(CU,"IsOptional");function y0(e){return we(e,"Any")&&ze(e.$id)}o(y0,"IsAny");function x0(e){return we(e,"Array")&&e.type==="array"&&ze(e.$id)&&Ie(e.items)&&Ke(e.minItems)&&Ke(e.maxItems)&&zy(e.uniqueItems)&&g0(e.contains)&&Ke(e.minContains)&&Ke(e.maxContains)}o(x0,"IsArray");function v0(e){return we(e,"AsyncIterator")&&e.type==="AsyncIterator"&&ze(e.$id)&&Ie(e.items)}o(v0,"IsAsyncIterator");function _0(e){return we(e,"BigInt")&&e.type==="bigint"&&ze(e.$id)&&Oa(e.exclusiveMaximum)&&Oa(e.exclusiveMinimum)&&Oa(e.maximum)&&Oa(e.minimum)&&Oa(e.multipleOf)}o(_0,"IsBigInt");function b0(e){return we(e,"Boolean")&&e.type==="boolean"&&ze(e.$id)}o(b0,"IsBoolean");function S0(e){return we(e,"Constructor")&&e.type==="Constructor"&&ze(e.$id)&&Wt(e.parameters)&&e.parameters.every(t=>Ie(t))&&Ie(e.returns)}o(S0,"IsConstructor");function I0(e){return we(e,"Date")&&e.type==="Date"&&ze(e.$id)&&Ke(e.exclusiveMaximumTimestamp)&&Ke(e.exclusiveMinimumTimestamp)&&Ke(e.maximumTimestamp)&&Ke(e.minimumTimestamp)&&Ke(e.multipleOfTimestamp)}o(I0,"IsDate");function w0(e){return we(e,"Function")&&e.type==="Function"&&ze(e.$id)&&Wt(e.parameters)&&e.parameters.every(t=>Ie(t))&&Ie(e.returns)}o(w0,"IsFunction");function M0(e){return we(e,"Integer")&&e.type==="integer"&&ze(e.$id)&&Ke(e.exclusiveMaximum)&&Ke(e.exclusiveMinimum)&&Ke(e.maximum)&&Ke(e.minimum)&&Ke(e.multipleOf)}o(M0,"IsInteger");function By(e){return He(e)&&Object.entries(e).every(([t,n])=>$y(t)&&Ie(n))}o(By,"IsProperties");function E0(e){return we(e,"Intersect")&&!(Qe(e.type)&&e.type!=="object")&&Wt(e.allOf)&&e.allOf.every(t=>Ie(t)&&!et(t))&&ze(e.type)&&(zy(e.unevaluatedProperties)||g0(e.unevaluatedProperties))&&ze(e.$id)}o(E0,"IsIntersect");function T0(e){return we(e,"Iterator")&&e.type==="Iterator"&&ze(e.$id)&&Ie(e.items)}o(T0,"IsIterator");function we(e,t){return He(e)&&P in e&&e[P]===t}o(we,"IsKindOf");function A0(e){return Ua(e)&&Qe(e.const)}o(A0,"IsLiteralString");function P0(e){return Ua(e)&&nr(e.const)}o(P0,"IsLiteralNumber");function OU(e){return Ua(e)&&_i(e.const)}o(OU,"IsLiteralBoolean");function Ua(e){return we(e,"Literal")&&ze(e.$id)&&R0(e.const)}o(Ua,"IsLiteral");function R0(e){return _i(e)||nr(e)||Qe(e)}o(R0,"IsLiteralValue");function C0(e){return we(e,"MappedKey")&&Wt(e.keys)&&e.keys.every(t=>nr(t)||Qe(t))}o(C0,"IsMappedKey");function O0(e){return we(e,"MappedResult")&&By(e.properties)}o(O0,"IsMappedResult");function U0(e){return we(e,"Never")&&He(e.not)&&Object.getOwnPropertyNames(e.not).length===0}o(U0,"IsNever");function F0(e){return we(e,"Not")&&Ie(e.not)}o(F0,"IsNot");function N0(e){return we(e,"Null")&&e.type==="null"&&ze(e.$id)}o(N0,"IsNull");function k0(e){return we(e,"Number")&&e.type==="number"&&ze(e.$id)&&Ke(e.exclusiveMaximum)&&Ke(e.exclusiveMinimum)&&Ke(e.maximum)&&Ke(e.minimum)&&Ke(e.multipleOf)}o(k0,"IsNumber");function D0(e){return we(e,"Object")&&e.type==="object"&&ze(e.$id)&&By(e.properties)&&m0(e.additionalProperties)&&Ke(e.minProperties)&&Ke(e.maxProperties)}o(D0,"IsObject");function L0(e){return we(e,"Promise")&&e.type==="Promise"&&ze(e.$id)&&Ie(e.item)}o(L0,"IsPromise");function $0(e){return we(e,"Record")&&e.type==="object"&&ze(e.$id)&&m0(e.additionalProperties)&&He(e.patternProperties)&&(t=>{let n=Object.getOwnPropertyNames(t.patternProperties);return n.length===1&&h0(n[0])&&He(t.patternProperties)&&Ie(t.patternProperties[n[0]])})(e)}o($0,"IsRecord");function UU(e){return He(e)&&Dn in e&&e[Dn]==="Recursive"}o(UU,"IsRecursive");function z0(e){return we(e,"Ref")&&ze(e.$id)&&Qe(e.$ref)}o(z0,"IsRef");function B0(e){return we(e,"RegExp")&&ze(e.$id)&&Qe(e.source)&&Qe(e.flags)&&Ke(e.maxLength)&&Ke(e.minLength)}o(B0,"IsRegExp");function V0(e){return we(e,"String")&&e.type==="string"&&ze(e.$id)&&Ke(e.minLength)&&Ke(e.maxLength)&&AU(e.pattern)&&PU(e.format)}o(V0,"IsString");function j0(e){return we(e,"Symbol")&&e.type==="symbol"&&ze(e.$id)}o(j0,"IsSymbol");function G0(e){return we(e,"TemplateLiteral")&&e.type==="string"&&Qe(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}o(G0,"IsTemplateLiteral");function H0(e){return we(e,"This")&&ze(e.$id)&&Qe(e.$ref)}o(H0,"IsThis");function et(e){return He(e)&&ot in e}o(et,"IsTransform");function W0(e){return we(e,"Tuple")&&e.type==="array"&&ze(e.$id)&&nr(e.minItems)&&nr(e.maxItems)&&e.minItems===e.maxItems&&(ct(e.items)&&ct(e.additionalItems)&&e.minItems===0||Wt(e.items)&&e.items.every(t=>Ie(t)))}o(W0,"IsTuple");function No(e){return we(e,"Undefined")&&e.type==="undefined"&&ze(e.$id)}o(No,"IsUndefined");function FU(e){return Vy(e)&&e.anyOf.every(t=>A0(t)||P0(t))}o(FU,"IsUnionLiteral");function Vy(e){return we(e,"Union")&&ze(e.$id)&&He(e)&&Wt(e.anyOf)&&e.anyOf.every(t=>Ie(t))}o(Vy,"IsUnion");function Z0(e){return we(e,"Uint8Array")&&e.type==="Uint8Array"&&ze(e.$id)&&Ke(e.minByteLength)&&Ke(e.maxByteLength)}o(Z0,"IsUint8Array");function X0(e){return we(e,"Unknown")&&ze(e.$id)}o(X0,"IsUnknown");function q0(e){return we(e,"Unsafe")}o(q0,"IsUnsafe");function K0(e){return we(e,"Void")&&e.type==="void"&&ze(e.$id)}o(K0,"IsVoid");function Y0(e){return He(e)&&P in e&&Qe(e[P])&&!TU.includes(e[P])}o(Y0,"IsKind");function Ie(e){return He(e)&&(y0(e)||x0(e)||b0(e)||_0(e)||v0(e)||S0(e)||I0(e)||w0(e)||M0(e)||E0(e)||T0(e)||Ua(e)||C0(e)||O0(e)||U0(e)||F0(e)||N0(e)||k0(e)||D0(e)||L0(e)||$0(e)||z0(e)||B0(e)||V0(e)||j0(e)||G0(e)||H0(e)||W0(e)||No(e)||Vy(e)||Z0(e)||X0(e)||q0(e)||K0(e)||Y0(e))}o(Ie,"IsSchema");f();var Gy="(true|false)",Fa="(0|[1-9][0-9]*)",Hy="(.*)",NU="(?!.*)",Y9="^".concat(Gy,"$"),Zr="^".concat(Fa,"$"),Xr="^".concat(Hy,"$"),J0="^".concat(NU,"$");f();var sn={};un(sn,{Clear:()=>DU,Delete:()=>LU,Entries:()=>kU,Get:()=>BU,Has:()=>$U,Set:()=>zU});f();var ko=new Map;function kU(){return new Map(ko)}o(kU,"Entries");function DU(){return ko.clear()}o(DU,"Clear");function LU(e){return ko.delete(e)}o(LU,"Delete");function $U(e){return ko.has(e)}o($U,"Has");function zU(e,t){ko.set(e,t)}o(zU,"Set");function BU(e){return ko.get(e)}o(BU,"Get");var Et={};un(Et,{Clear:()=>jU,Delete:()=>GU,Entries:()=>VU,Get:()=>ZU,Has:()=>HU,Set:()=>WU});f();var Do=new Map;function VU(){return new Map(Do)}o(VU,"Entries");function jU(){return Do.clear()}o(jU,"Clear");function GU(e){return Do.delete(e)}o(GU,"Delete");function HU(e){return Do.has(e)}o(HU,"Has");function WU(e,t){Do.set(e,t)}o(WU,"Set");function ZU(e){return Do.get(e)}o(ZU,"Get");f();function Q0(e,t){return e.includes(t)}o(Q0,"SetIncludes");function eS(e){return[...new Set(e)]}o(eS,"SetDistinct");function XU(e,t){return e.filter(n=>t.includes(n))}o(XU,"SetIntersect");function qU(e,t){return e.reduce((n,i)=>XU(n,i),t)}o(qU,"SetIntersectManyResolve");function tS(e){return e.length===1?e[0]:e.length>1?qU(e.slice(1),e[0]):[]}o(tS,"SetIntersectMany");function nS(e){let t=[];for(let n of e)t.push(...n);return t}o(nS,"SetUnionMany");f();function wi(e){return F({[P]:"Any"},e)}o(wi,"Any");f();function Nu(e,t){return F({[P]:"Array",type:"array",items:e},t)}o(Nu,"Array");f();function ku(e,t){return F({[P]:"AsyncIterator",type:"AsyncIterator",items:e},t)}o(ku,"AsyncIterator");f();f();f();function KU(e,t){let r=e,{[t]:n}=r;return Es(r,[lc(t)])}o(KU,"DiscardKey");function ht(e,t){return t.reduce((n,i)=>KU(n,i),e)}o(ht,"Discard");f();function Be(e){return F({[P]:"Never",not:{}},e)}o(Be,"Never");f();f();function Te(e){return F({[P]:"MappedResult",properties:e})}o(Te,"MappedResult");f();f();function Du(e,t,n){return F({[P]:"Constructor",type:"Constructor",parameters:e,returns:t},n)}o(Du,"Constructor");f();function Mi(e,t,n){return F({[P]:"Function",type:"Function",parameters:e,returns:t},n)}o(Mi,"Function");f();f();f();f();function Na(e,t){return F({[P]:"Union",anyOf:e},t)}o(Na,"UnionCreate");function YU(e){return e.some(t=>xr(t))}o(YU,"IsUnionOptional");function rS(e){return e.map(t=>xr(t)?JU(t):t)}o(rS,"RemoveOptionalFromRest");function JU(e){return ht(e,[on])}o(JU,"RemoveOptionalFromType");function QU(e,t){return YU(e)?pn(Na(rS(e),t)):Na(rS(e),t)}o(QU,"ResolveUnion");function vr(e,t){return e.length===0?Be(t):e.length===1?F(e[0],t):QU(e,t)}o(vr,"UnionEvaluated");f();function Ve(e,t){return e.length===0?Be(t):e.length===1?F(e[0],t):Na(e,t)}o(Ve,"Union");f();f();f();var Zy=class Zy extends re{};o(Zy,"TemplateLiteralParserError");var Lu=Zy;function eF(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}o(eF,"Unescape");function Wy(e,t,n){return e[t]===n&&e.charCodeAt(t-1)!==92}o(Wy,"IsNonEscaped");function qr(e,t){return Wy(e,t,"(")}o(qr,"IsOpenParen");function ka(e,t){return Wy(e,t,")")}o(ka,"IsCloseParen");function iS(e,t){return Wy(e,t,"|")}o(iS,"IsSeparator");function tF(e){if(!(qr(e,0)&&ka(e,e.length-1)))return!1;let t=0;for(let n=0;n<e.length;n++)if(qr(e,n)&&(t+=1),ka(e,n)&&(t-=1),t===0&&n!==e.length-1)return!1;return!0}o(tF,"IsGroup");function nF(e){return e.slice(1,e.length-1)}o(nF,"InGroup");function rF(e){let t=0;for(let n=0;n<e.length;n++)if(qr(e,n)&&(t+=1),ka(e,n)&&(t-=1),iS(e,n)&&t===0)return!0;return!1}o(rF,"IsPrecedenceOr");function iF(e){for(let t=0;t<e.length;t++)if(qr(e,t))return!0;return!1}o(iF,"IsPrecedenceAnd");function oF(e){let[t,n]=[0,0],i=[];for(let s=0;s<e.length;s++)if(qr(e,s)&&(t+=1),ka(e,s)&&(t-=1),iS(e,s)&&t===0){let a=e.slice(n,s);a.length>0&&i.push(Lo(a)),n=s+1}let r=e.slice(n);return r.length>0&&i.push(Lo(r)),i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"or",expr:i}}o(oF,"Or");function sF(e){function t(r,s){if(!qr(r,s))throw new Lu("TemplateLiteralParser: Index must point to open parens");let a=0;for(let u=s;u<r.length;u++)if(qr(r,u)&&(a+=1),ka(r,u)&&(a-=1),a===0)return[s,u];throw new Lu("TemplateLiteralParser: Unclosed group parens in expression")}o(t,"Group");function n(r,s){for(let a=s;a<r.length;a++)if(qr(r,a))return[s,a];return[s,r.length]}o(n,"Range");let i=[];for(let r=0;r<e.length;r++)if(qr(e,r)){let[s,a]=t(e,r),u=e.slice(s,a+1);i.push(Lo(u)),r=a}else{let[s,a]=n(e,r),u=e.slice(s,a);u.length>0&&i.push(Lo(u)),r=a-1}return i.length===0?{type:"const",const:""}:i.length===1?i[0]:{type:"and",expr:i}}o(sF,"And");function Lo(e){return tF(e)?Lo(nF(e)):rF(e)?oF(e):iF(e)?sF(e):{type:"const",const:eF(e)}}o(Lo,"TemplateLiteralParse");function $o(e){return Lo(e.slice(1,e.length-1))}o($o,"TemplateLiteralParseExact");var qy=class qy extends re{};o(qy,"TemplateLiteralFiniteError");var Xy=qy;function aF(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}o(aF,"IsNumberExpression");function cF(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}o(cF,"IsBooleanExpression");function uF(e){return e.type==="const"&&e.const===".*"}o(uF,"IsStringExpression");function Wi(e){return aF(e)||uF(e)?!1:cF(e)?!0:e.type==="and"?e.expr.every(t=>Wi(t)):e.type==="or"?e.expr.every(t=>Wi(t)):e.type==="const"?!0:(()=>{throw new Xy("Unknown expression type")})()}o(Wi,"IsTemplateLiteralExpressionFinite");function $u(e){let t=$o(e.pattern);return Wi(t)}o($u,"IsTemplateLiteralFinite");f();var Yy=class Yy extends re{};o(Yy,"TemplateLiteralGenerateError");var Ky=Yy;function*oS(e){if(e.length===1)return yield*k(e[0]);for(let t of e[0])for(let n of oS(e.slice(1)))yield"".concat(t).concat(n)}o(oS,"GenerateReduce");function*lF(e){return yield*k(oS(e.expr.map(t=>[...Da(t)])))}o(lF,"GenerateAnd");function*fF(e){for(let t of e.expr)yield*k(Da(t))}o(fF,"GenerateOr");function*dF(e){return yield e.const}o(dF,"GenerateConst");function*Da(e){return e.type==="and"?yield*k(lF(e)):e.type==="or"?yield*k(fF(e)):e.type==="const"?yield*k(dF(e)):(()=>{throw new Ky("Unknown expression")})()}o(Da,"TemplateLiteralExpressionGenerate");function zo(e){let t=$o(e.pattern);return Wi(t)?[...Da(t)]:[]}o(zo,"TemplateLiteralGenerate");f();f();function Ne(e,t){return F({[P]:"Literal",const:e,type:typeof e},t)}o(Ne,"Literal");f();function zu(e){return F({[P]:"Boolean",type:"boolean"},e)}o(zu,"Boolean");f();function Bo(e){return F({[P]:"BigInt",type:"bigint"},e)}o(Bo,"BigInt");f();function _r(e){return F({[P]:"Number",type:"number"},e)}o(_r,"Number");f();function Ln(e){return F({[P]:"String",type:"string"},e)}o(Ln,"String");function*pF(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield zu():t==="number"?yield _r():t==="bigint"?yield Bo():t==="string"?yield Ln():yield(()=>{let n=t.split("|").map(i=>Ne(i.trim()));return n.length===0?Be():n.length===1?n[0]:vr(n)})()}o(pF,"FromUnion");function*hF(e){if(e[1]!=="{"){let t=Ne("$"),n=Jy(e.slice(1));return yield*k([t,...n])}for(let t=2;t<e.length;t++)if(e[t]==="}"){let n=pF(e.slice(2,t)),i=Jy(e.slice(t+1));return yield*k([...n,...i])}yield Ne(e)}o(hF,"FromTerminal");function*Jy(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let n=Ne(e.slice(0,t)),i=hF(e.slice(t));return yield*k([n,...i])}yield Ne(e)}o(Jy,"FromSyntax");function sS(e){return[...Jy(e)]}o(sS,"TemplateLiteralSyntax");f();var tx=class tx extends re{};o(tx,"TemplateLiteralPatternError");var Qy=tx;function mF(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(mF,"Escape");function aS(e,t){return In(e)?e.pattern.slice(1,e.pattern.length-1):Ce(e)?"(".concat(e.anyOf.map(n=>aS(n,t)).join("|"),")"):Gi(e)?"".concat(t).concat(Fa):ji(e)?"".concat(t).concat(Fa):Uy(e)?"".concat(t).concat(Fa):Ca(e)?"".concat(t).concat(Hy):Wr(e)?"".concat(t).concat(mF(e.const.toString())):Fy(e)?"".concat(t).concat(Gy):(()=>{throw new Qy("Unexpected Kind '".concat(e[P],"'"))})()}o(aS,"Visit");function ex(e){return"^".concat(e.map(t=>aS(t,"")).join(""),"$")}o(ex,"TemplateLiteralPattern");f();function Zi(e){let n=zo(e).map(i=>Ne(i));return vr(n)}o(Zi,"TemplateLiteralToUnion");f();function Bu(e,t){let n=Qe(e)?ex(sS(e)):ex(e);return F({[P]:"TemplateLiteral",type:"string",pattern:n},t)}o(Bu,"TemplateLiteral");function gF(e){return zo(e).map(n=>n.toString())}o(gF,"FromTemplateLiteral");function yF(e){let t=[];for(let n of e)t.push(...hn(n));return t}o(yF,"FromUnion");function xF(e){return[e.toString()]}o(xF,"FromLiteral");function hn(e){return[...new Set(In(e)?gF(e):Ce(e)?yF(e.anyOf):Wr(e)?xF(e.const):Gi(e)?["[number]"]:ji(e)?["[number]"]:[])]}o(hn,"IndexPropertyKeys");f();function vF(e,t,n){let i={};for(let r of Object.getOwnPropertyNames(t))i[r]=Vo(e,hn(t[r]),n);return i}o(vF,"FromProperties");function _F(e,t,n){return vF(e,t.properties,n)}o(_F,"FromMappedResult");function cS(e,t,n){let i=_F(e,t,n);return Te(i)}o(cS,"IndexFromMappedResult");function lS(e,t){return e.map(n=>fS(n,t))}o(lS,"FromRest");function bF(e){return e.filter(t=>!Si(t))}o(bF,"FromIntersectRest");function SF(e,t){return Vu(bF(lS(e,t)))}o(SF,"FromIntersect");function IF(e){return e.some(t=>Si(t))?[]:e}o(IF,"FromUnionRest");function wF(e,t){return vr(IF(lS(e,t)))}o(wF,"FromUnion");function MF(e,t){return t in e?e[t]:t==="[number]"?vr(e):Be()}o(MF,"FromTuple");function EF(e,t){return t==="[number]"?e:Be()}o(EF,"FromArray");function TF(e,t){return t in e?e[t]:Be()}o(TF,"FromProperty");function fS(e,t){var n;return vt(e)?SF(e.allOf,t):Ce(e)?wF(e.anyOf,t):rr(e)?MF((n=e.items)!=null?n:[],t):Hr(e)?EF(e.items,t):Mt(e)?TF(e.properties,t):Be()}o(fS,"IndexFromPropertyKey");function La(e,t){return t.map(n=>fS(e,n))}o(La,"IndexFromPropertyKeys");function uS(e,t){return vr(La(e,t))}o(uS,"FromSchema");function Vo(e,t,n){return st(t)?cS(e,t,n):Sn(t)?dS(e,t,n):F(ir(t)?uS(e,hn(t)):uS(e,t),n)}o(Vo,"Index");function AF(e,t,n){return{[t]:Vo(e,[t],it(n))}}o(AF,"MappedIndexPropertyKey");function PF(e,t,n){return t.reduce((i,r)=>x(x({},i),AF(e,r,n)),{})}o(PF,"MappedIndexPropertyKeys");function RF(e,t,n){return PF(e,t.keys,n)}o(RF,"MappedIndexProperties");function dS(e,t,n){let i=RF(e,t,n);return Te(i)}o(dS,"IndexFromMappedKey");f();function ju(e,t){return F({[P]:"Iterator",type:"Iterator",items:e},t)}o(ju,"Iterator");f();function CF(e){let t=[];for(let n in e)xr(e[n])||t.push(n);return t}o(CF,"RequiredKeys");function OF(e,t){let n=CF(e),i=n.length>0?{[P]:"Object",type:"object",properties:e,required:n}:{[P]:"Object",type:"object",properties:e};return F(i,t)}o(OF,"_Object");var We=OF;f();function Gu(e,t){return F({[P]:"Promise",type:"Promise",item:e},t)}o(Gu,"Promise");f();f();function UF(e){return F(ht(e,[Gr]))}o(UF,"RemoveReadonly");function FF(e){return F(L(x({},e),{[Gr]:"Readonly"}))}o(FF,"AddReadonly");function NF(e,t){return t===!1?UF(e):FF(e)}o(NF,"ReadonlyWithFlag");function $n(e,t){let n=t!=null?t:!0;return st(e)?pS(e,n):NF(e,n)}o($n,"Readonly");function kF(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=$n(e[i],t);return n}o(kF,"FromProperties");function DF(e,t){return kF(e.properties,t)}o(DF,"FromMappedResult");function pS(e,t){let n=DF(e,t);return Te(n)}o(pS,"ReadonlyFromMappedResult");f();function br(e,t){return F(e.length>0?{[P]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[P]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}o(br,"Tuple");function hS(e,t){return e in t?zn(e,t[e]):Te(t)}o(hS,"FromMappedResult");function LF(e){return{[e]:Ne(e)}}o(LF,"MappedKeyToKnownMappedResultProperties");function $F(e){let t={};for(let n of e)t[n]=Ne(n);return t}o($F,"MappedKeyToUnknownMappedResultProperties");function zF(e,t){return Q0(t,e)?LF(e):$F(t)}o(zF,"MappedKeyToMappedResultProperties");function BF(e,t){let n=zF(e,t);return hS(e,n)}o(BF,"FromMappedKey");function $a(e,t){return t.map(n=>zn(e,n))}o($a,"FromRest");function VF(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(t))n[i]=zn(e,t[i]);return n}o(VF,"FromProperties");function zn(e,t){var i;let n=x({},t);return xr(t)?pn(zn(e,ht(t,[on]))):p0(t)?$n(zn(e,ht(t,[Gr]))):st(t)?hS(e,t.properties):Sn(t)?BF(e,t.keys):Aa(t)?Du($a(e,t.parameters),zn(e,t.returns),n):Pa(t)?Mi($a(e,t.parameters),zn(e,t.returns),n):Ta(t)?ku(zn(e,t.items),n):Ra(t)?ju(zn(e,t.items),n):vt(t)?mn($a(e,t.allOf),n):Ce(t)?Ve($a(e,t.anyOf),n):rr(t)?br($a(e,(i=t.items)!=null?i:[]),n):Mt(t)?We(VF(e,t.properties),n):Hr(t)?Nu(zn(e,t.items),n):Hi(t)?Gu(zn(e,t.item),n):t}o(zn,"FromSchemaType");function jF(e,t){let n={};for(let i of e)n[i]=zn(i,t);return n}o(jF,"MappedFunctionReturnType");function mS(e,t,n){let i=ir(e)?hn(e):e,r=t({[P]:"MappedKey",keys:i}),s=jF(i,r);return We(s,n)}o(mS,"Mapped");f();function GF(e){return F(ht(e,[on]))}o(GF,"RemoveOptional");function HF(e){return F(L(x({},e),{[on]:"Optional"}))}o(HF,"AddOptional");function WF(e,t){return t===!1?GF(e):HF(e)}o(WF,"OptionalWithFlag");function pn(e,t){let n=t!=null?t:!0;return st(e)?gS(e,n):WF(e,n)}o(pn,"Optional");function ZF(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=pn(e[i],t);return n}o(ZF,"FromProperties");function XF(e,t){return ZF(e.properties,t)}o(XF,"FromMappedResult");function gS(e,t){let n=XF(e,t);return Te(n)}o(gS,"OptionalFromMappedResult");f();function za(e,t={}){let n=e.every(r=>Mt(r)),i=ir(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return F(t.unevaluatedProperties===!1||ir(t.unevaluatedProperties)||n?L(x({},i),{[P]:"Intersect",type:"object",allOf:e}):L(x({},i),{[P]:"Intersect",allOf:e}),t)}o(za,"IntersectCreate");function qF(e){return e.every(t=>xr(t))}o(qF,"IsIntersectOptional");function KF(e){return ht(e,[on])}o(KF,"RemoveOptionalFromType");function yS(e){return e.map(t=>xr(t)?KF(t):t)}o(yS,"RemoveOptionalFromRest");function YF(e,t){return qF(e)?pn(za(yS(e),t)):za(yS(e),t)}o(YF,"ResolveIntersect");function Vu(e,t={}){if(e.length===0)return Be(t);if(e.length===1)return F(e[0],t);if(e.some(n=>Fo(n)))throw new Error("Cannot intersect transform types");return YF(e,t)}o(Vu,"IntersectEvaluated");f();function mn(e,t){if(e.length===0)return Be(t);if(e.length===1)return F(e[0],t);if(e.some(n=>Fo(n)))throw new Error("Cannot intersect transform types");return za(e,t)}o(mn,"Intersect");function xS(e){return e.map(t=>nx(t))}o(xS,"FromRest");function JF(e){return mn(xS(e))}o(JF,"FromIntersect");function QF(e){return Ve(xS(e))}o(QF,"FromUnion");function eN(e){return nx(e)}o(eN,"FromPromise");function nx(e){return vt(e)?JF(e.allOf):Ce(e)?QF(e.anyOf):Hi(e)?eN(e.item):e}o(nx,"AwaitedResolve");function vS(e,t){return F(nx(e),t)}o(vS,"Awaited");f();f();f();f();function _S(e){let t=[];for(let n of e)t.push(Pt(n));return t}o(_S,"FromRest");function tN(e){let t=_S(e);return nS(t)}o(tN,"FromIntersect");function nN(e){let t=_S(e);return tS(t)}o(nN,"FromUnion");function rN(e){return e.map((t,n)=>n.toString())}o(rN,"FromTuple");function iN(e){return["[number]"]}o(iN,"FromArray");function oN(e){return globalThis.Object.getOwnPropertyNames(e)}o(oN,"FromProperties");function sN(e){return rx?globalThis.Object.getOwnPropertyNames(e).map(n=>n[0]==="^"&&n[n.length-1]==="$"?n.slice(1,n.length-1):n):[]}o(sN,"FromPatternProperties");function Pt(e){var t;return vt(e)?tN(e.allOf):Ce(e)?nN(e.anyOf):rr(e)?rN((t=e.items)!=null?t:[]):Hr(e)?iN(e.items):Mt(e)?oN(e.properties):Ny(e)?sN(e.patternProperties):[]}o(Pt,"KeyOfPropertyKeys");var rx=!1;function Kr(e){rx=!0;let t=Pt(e);rx=!1;let n=t.map(i=>"(".concat(i,")"));return"^(".concat(n.join("|"),")$")}o(Kr,"KeyOfPattern");function aN(e){return e.map(t=>t==="[number]"?_r():Ne(t))}o(aN,"KeyOfPropertyKeysToRest");function Hu(e,t){if(st(e))return bS(e,t);{let n=Pt(e),i=aN(n),r=vr(i);return F(r,t)}}o(Hu,"KeyOf");function cN(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Hu(e[i],it(t));return n}o(cN,"FromProperties");function uN(e,t){return cN(e.properties,t)}o(uN,"FromMappedResult");function bS(e,t){let n=uN(e,t);return Te(n)}o(bS,"KeyOfFromMappedResult");f();function Ei(e){let t=Pt(e),n=La(e,t);return t.map((i,r)=>[t[r],n[r]])}o(Ei,"KeyOfPropertyEntries");function lN(e){let t=[];for(let n of e)t.push(...Pt(n));return eS(t)}o(lN,"CompositeKeys");function fN(e){return e.filter(t=>!Si(t))}o(fN,"FilterNever");function dN(e,t){let n=[];for(let i of e)n.push(...La(i,[t]));return fN(n)}o(dN,"CompositeProperty");function pN(e,t){let n={};for(let i of t)n[i]=Vu(dN(e,i));return n}o(pN,"CompositeProperties");function SS(e,t){let n=lN(e),i=pN(e,n);return We(i,t)}o(SS,"Composite");f();f();function Wu(e){return F({[P]:"Date",type:"Date"},e)}o(Wu,"Date");f();function Zu(e){return F({[P]:"Null",type:"null"},e)}o(Zu,"Null");f();function Xu(e){return F({[P]:"Symbol",type:"symbol"},e)}o(Xu,"Symbol");f();function qu(e){return F({[P]:"Undefined",type:"undefined"},e)}o(qu,"Undefined");f();function Ku(e){return F({[P]:"Uint8Array",type:"Uint8Array"},e)}o(Ku,"Uint8Array");f();function Yr(e){return F({[P]:"Unknown"},e)}o(Yr,"Unknown");function hN(e){return e.map(t=>ix(t,!1))}o(hN,"FromArray");function mN(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=$n(ix(e[n],!1));return t}o(mN,"FromProperties");function Yu(e,t){return t===!0?e:$n(e)}o(Yu,"ConditionalReadonly");function ix(e,t){return My(e)?Yu(wi(),t):Ty(e)?Yu(wi(),t):Wt(e)?$n(br(hN(e))):Br(e)?Ku():Vi(e)?Wu():He(e)?Yu(We(mN(e)),t):Ey(e)?Yu(Mi([],Yr()),t):ct(e)?qu():Ay(e)?Zu():Py(e)?Xu():Ia(e)?Bo():nr(e)?Ne(e):_i(e)?Ne(e):Qe(e)?Ne(e):We({})}o(ix,"FromValue");function IS(e,t){return F(ix(e,!0),t)}o(IS,"Const");f();function wS(e,t){return br(e.parameters,t)}o(wS,"ConstructorParameters");f();function Ba(e,t){return e.map(n=>or(n,t))}o(Ba,"FromRest");function gN(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=or(e[i],t);return n}o(gN,"FromProperties");function yN(e,t){return e.parameters=Ba(e.parameters,t),e.returns=or(e.returns,t),e}o(yN,"FromConstructor");function xN(e,t){return e.parameters=Ba(e.parameters,t),e.returns=or(e.returns,t),e}o(xN,"FromFunction");function vN(e,t){return e.allOf=Ba(e.allOf,t),e}o(vN,"FromIntersect");function _N(e,t){return e.anyOf=Ba(e.anyOf,t),e}o(_N,"FromUnion");function bN(e,t){return ct(e.items)||(e.items=Ba(e.items,t)),e}o(bN,"FromTuple");function SN(e,t){return e.items=or(e.items,t),e}o(SN,"FromArray");function IN(e,t){return e.properties=gN(e.properties,t),e}o(IN,"FromObject");function wN(e,t){return e.item=or(e.item,t),e}o(wN,"FromPromise");function MN(e,t){return e.items=or(e.items,t),e}o(MN,"FromAsyncIterator");function EN(e,t){return e.items=or(e.items,t),e}o(EN,"FromIterator");function TN(e,t){let n=t.find(r=>r.$id===e.$ref);if(n===void 0)throw Error("Unable to dereference schema with $id ".concat(e.$ref));let i=ht(n,["$id"]);return or(i,t)}o(TN,"FromRef");function AN(e,t){return Aa(e)?yN(e,t):Pa(e)?xN(e,t):vt(e)?vN(e,t):Ce(e)?_N(e,t):rr(e)?bN(e,t):Hr(e)?SN(e,t):Mt(e)?IN(e,t):Hi(e)?wN(e,t):Ta(e)?MN(e,t):Ra(e)?EN(e,t):ky(e)?TN(e,t):e}o(AN,"DerefResolve");function or(e,t){return AN(Ma(e),l0(t))}o(or,"Deref");f();function MS(e,t){if(ct(e))throw new Error("Enum undefined or empty");let n=globalThis.Object.getOwnPropertyNames(e).filter(s=>isNaN(s)).map(s=>e[s]),r=[...new Set(n)].map(s=>Ne(s));return Ve(r,L(x({},t),{[Dn]:"Enum"}))}o(MS,"Enum");f();f();f();var fx=class fx extends re{};o(fx,"ExtendsResolverError");var sx=fx,O;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(O||(O={}));function Bn(e){return e===O.False?e:O.True}o(Bn,"IntoBooleanResult");function jo(e){throw new sx(e)}o(jo,"Throw");function bt(e){return _.IsNever(e)||_.IsIntersect(e)||_.IsUnion(e)||_.IsUnknown(e)||_.IsAny(e)}o(bt,"IsStructuralRight");function St(e,t){return _.IsNever(t)?OS(e,t):_.IsIntersect(t)?Ju(e,t):_.IsUnion(t)?lx(e,t):_.IsUnknown(t)?kS(e,t):_.IsAny(t)?ux(e,t):jo("StructuralRight")}o(St,"StructuralRight");function ux(e,t){return O.True}o(ux,"FromAnyRight");function PN(e,t){return _.IsIntersect(t)?Ju(e,t):_.IsUnion(t)&&t.anyOf.some(n=>_.IsAny(n)||_.IsUnknown(n))?O.True:_.IsUnion(t)?O.Union:_.IsUnknown(t)||_.IsAny(t)?O.True:O.Union}o(PN,"FromAny");function RN(e,t){return _.IsUnknown(e)?O.False:_.IsAny(e)?O.Union:_.IsNever(e)?O.True:O.False}o(RN,"FromArrayRight");function CN(e,t){return _.IsObject(t)&&Qu(t)?O.True:bt(t)?St(e,t):_.IsArray(t)?Bn(je(e.items,t.items)):O.False}o(CN,"FromArray");function ON(e,t){return bt(t)?St(e,t):_.IsAsyncIterator(t)?Bn(je(e.items,t.items)):O.False}o(ON,"FromAsyncIterator");function UN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsBigInt(t)?O.True:O.False}o(UN,"FromBigInt");function RS(e,t){return _.IsLiteralBoolean(e)||_.IsBoolean(e)?O.True:O.False}o(RS,"FromBooleanRight");function FN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsBoolean(t)?O.True:O.False}o(FN,"FromBoolean");function NN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsConstructor(t)?e.parameters.length>t.parameters.length?O.False:e.parameters.every((n,i)=>Bn(je(t.parameters[i],n))===O.True)?Bn(je(e.returns,t.returns)):O.False:O.False}o(NN,"FromConstructor");function kN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsDate(t)?O.True:O.False}o(kN,"FromDate");function DN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsFunction(t)?e.parameters.length>t.parameters.length?O.False:e.parameters.every((n,i)=>Bn(je(t.parameters[i],n))===O.True)?Bn(je(e.returns,t.returns)):O.False:O.False}o(DN,"FromFunction");function CS(e,t){return _.IsLiteral(e)&&be.IsNumber(e.const)||_.IsNumber(e)||_.IsInteger(e)?O.True:O.False}o(CS,"FromIntegerRight");function LN(e,t){return _.IsInteger(t)||_.IsNumber(t)?O.True:bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):O.False}o(LN,"FromInteger");function Ju(e,t){return t.allOf.every(n=>je(e,n)===O.True)?O.True:O.False}o(Ju,"FromIntersectRight");function $N(e,t){return e.allOf.some(n=>je(n,t)===O.True)?O.True:O.False}o($N,"FromIntersect");function zN(e,t){return bt(t)?St(e,t):_.IsIterator(t)?Bn(je(e.items,t.items)):O.False}o(zN,"FromIterator");function BN(e,t){return _.IsLiteral(t)&&t.const===e.const?O.True:bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsString(t)?NS(e,t):_.IsNumber(t)?US(e,t):_.IsInteger(t)?CS(e,t):_.IsBoolean(t)?RS(e,t):O.False}o(BN,"FromLiteral");function OS(e,t){return O.False}o(OS,"FromNeverRight");function VN(e,t){return O.True}o(VN,"FromNever");function ES(e){let[t,n]=[e,0];for(;_.IsNot(t);)t=t.not,n+=1;return n%2===0?t:Yr()}o(ES,"UnwrapTNot");function jN(e,t){return _.IsNot(e)?je(ES(e),t):_.IsNot(t)?je(e,ES(t)):jo("Invalid fallthrough for Not")}o(jN,"FromNot");function GN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsNull(t)?O.True:O.False}o(GN,"FromNull");function US(e,t){return _.IsLiteralNumber(e)||_.IsNumber(e)||_.IsInteger(e)?O.True:O.False}o(US,"FromNumberRight");function HN(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsInteger(t)||_.IsNumber(t)?O.True:O.False}o(HN,"FromNumber");function gn(e,t){return Object.getOwnPropertyNames(e.properties).length===t}o(gn,"IsObjectPropertyCount");function TS(e){return Qu(e)}o(TS,"IsObjectStringLike");function AS(e){return gn(e,0)||gn(e,1)&&"description"in e.properties&&_.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(_.IsString(e.properties.description.anyOf[0])&&_.IsUndefined(e.properties.description.anyOf[1])||_.IsString(e.properties.description.anyOf[1])&&_.IsUndefined(e.properties.description.anyOf[0]))}o(AS,"IsObjectSymbolLike");function ox(e){return gn(e,0)}o(ox,"IsObjectNumberLike");function PS(e){return gn(e,0)}o(PS,"IsObjectBooleanLike");function WN(e){return gn(e,0)}o(WN,"IsObjectBigIntLike");function ZN(e){return gn(e,0)}o(ZN,"IsObjectDateLike");function XN(e){return Qu(e)}o(XN,"IsObjectUint8ArrayLike");function qN(e){let t=_r();return gn(e,0)||gn(e,1)&&"length"in e.properties&&Bn(je(e.properties.length,t))===O.True}o(qN,"IsObjectFunctionLike");function KN(e){return gn(e,0)}o(KN,"IsObjectConstructorLike");function Qu(e){let t=_r();return gn(e,0)||gn(e,1)&&"length"in e.properties&&Bn(je(e.properties.length,t))===O.True}o(Qu,"IsObjectArrayLike");function YN(e){let t=Mi([wi()],wi());return gn(e,0)||gn(e,1)&&"then"in e.properties&&Bn(je(e.properties.then,t))===O.True}o(YN,"IsObjectPromiseLike");function FS(e,t){return je(e,t)===O.False||_.IsOptional(e)&&!_.IsOptional(t)?O.False:O.True}o(FS,"Property");function Zt(e,t){return _.IsUnknown(e)?O.False:_.IsAny(e)?O.Union:_.IsNever(e)||_.IsLiteralString(e)&&TS(t)||_.IsLiteralNumber(e)&&ox(t)||_.IsLiteralBoolean(e)&&PS(t)||_.IsSymbol(e)&&AS(t)||_.IsBigInt(e)&&WN(t)||_.IsString(e)&&TS(t)||_.IsSymbol(e)&&AS(t)||_.IsNumber(e)&&ox(t)||_.IsInteger(e)&&ox(t)||_.IsBoolean(e)&&PS(t)||_.IsUint8Array(e)&&XN(t)||_.IsDate(e)&&ZN(t)||_.IsConstructor(e)&&KN(t)||_.IsFunction(e)&&qN(t)?O.True:_.IsRecord(e)&&_.IsString(ax(e))?t[Dn]==="Record"?O.True:O.False:_.IsRecord(e)&&_.IsNumber(ax(e))?gn(t,0)?O.True:O.False:O.False}o(Zt,"FromObjectRight");function JN(e,t){return bt(t)?St(e,t):_.IsRecord(t)?Vn(e,t):_.IsObject(t)?(()=>{for(let n of Object.getOwnPropertyNames(t.properties)){if(!(n in e.properties)&&!_.IsOptional(t.properties[n]))return O.False;if(_.IsOptional(t.properties[n]))return O.True;if(FS(e.properties[n],t.properties[n])===O.False)return O.False}return O.True})():O.False}o(JN,"FromObject");function QN(e,t){return bt(t)?St(e,t):_.IsObject(t)&&YN(t)?O.True:_.IsPromise(t)?Bn(je(e.item,t.item)):O.False}o(QN,"FromPromise");function ax(e){return Zr in e.patternProperties?_r():Xr in e.patternProperties?Ln():jo("Unknown record key pattern")}o(ax,"RecordKey");function cx(e){return Zr in e.patternProperties?e.patternProperties[Zr]:Xr in e.patternProperties?e.patternProperties[Xr]:jo("Unable to get record value schema")}o(cx,"RecordValue");function Vn(e,t){let[n,i]=[ax(t),cx(t)];return _.IsLiteralString(e)&&_.IsNumber(n)&&Bn(je(e,i))===O.True?O.True:_.IsUint8Array(e)&&_.IsNumber(n)||_.IsString(e)&&_.IsNumber(n)||_.IsArray(e)&&_.IsNumber(n)?je(e,i):_.IsObject(e)?(()=>{for(let r of Object.getOwnPropertyNames(e.properties))if(FS(i,e.properties[r])===O.False)return O.False;return O.True})():O.False}o(Vn,"FromRecordRight");function ek(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?je(cx(e),cx(t)):O.False}o(ek,"FromRecord");function tk(e,t){let n=_.IsRegExp(e)?Ln():e,i=_.IsRegExp(t)?Ln():t;return je(n,i)}o(tk,"FromRegExp");function NS(e,t){return _.IsLiteral(e)&&be.IsString(e.const)||_.IsString(e)?O.True:O.False}o(NS,"FromStringRight");function nk(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsString(t)?O.True:O.False}o(nk,"FromString");function rk(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsSymbol(t)?O.True:O.False}o(rk,"FromSymbol");function ik(e,t){return _.IsTemplateLiteral(e)?je(Zi(e),t):_.IsTemplateLiteral(t)?je(e,Zi(t)):jo("Invalid fallthrough for TemplateLiteral")}o(ik,"FromTemplateLiteral");function ok(e,t){return _.IsArray(t)&&e.items!==void 0&&e.items.every(n=>je(n,t.items)===O.True)}o(ok,"IsArrayOfTuple");function sk(e,t){return _.IsNever(e)?O.True:_.IsUnknown(e)?O.False:_.IsAny(e)?O.Union:O.False}o(sk,"FromTupleRight");function ak(e,t){return bt(t)?St(e,t):_.IsObject(t)&&Qu(t)||_.IsArray(t)&&ok(e,t)?O.True:_.IsTuple(t)?be.IsUndefined(e.items)&&!be.IsUndefined(t.items)||!be.IsUndefined(e.items)&&be.IsUndefined(t.items)?O.False:be.IsUndefined(e.items)&&!be.IsUndefined(t.items)||e.items.every((n,i)=>je(n,t.items[i])===O.True)?O.True:O.False:O.False}o(ak,"FromTuple");function ck(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsUint8Array(t)?O.True:O.False}o(ck,"FromUint8Array");function uk(e,t){return bt(t)?St(e,t):_.IsObject(t)?Zt(e,t):_.IsRecord(t)?Vn(e,t):_.IsVoid(t)?dk(e,t):_.IsUndefined(t)?O.True:O.False}o(uk,"FromUndefined");function lx(e,t){return t.anyOf.some(n=>je(e,n)===O.True)?O.True:O.False}o(lx,"FromUnionRight");function lk(e,t){return e.anyOf.every(n=>je(n,t)===O.True)?O.True:O.False}o(lk,"FromUnion");function kS(e,t){return O.True}o(kS,"FromUnknownRight");function fk(e,t){return _.IsNever(t)?OS(e,t):_.IsIntersect(t)?Ju(e,t):_.IsUnion(t)?lx(e,t):_.IsAny(t)?ux(e,t):_.IsString(t)?NS(e,t):_.IsNumber(t)?US(e,t):_.IsInteger(t)?CS(e,t):_.IsBoolean(t)?RS(e,t):_.IsArray(t)?RN(e,t):_.IsTuple(t)?sk(e,t):_.IsObject(t)?Zt(e,t):_.IsUnknown(t)?O.True:O.False}o(fk,"FromUnknown");function dk(e,t){return _.IsUndefined(e)||_.IsUndefined(e)?O.True:O.False}o(dk,"FromVoidRight");function pk(e,t){return _.IsIntersect(t)?Ju(e,t):_.IsUnion(t)?lx(e,t):_.IsUnknown(t)?kS(e,t):_.IsAny(t)?ux(e,t):_.IsObject(t)?Zt(e,t):_.IsVoid(t)?O.True:O.False}o(pk,"FromVoid");function je(e,t){return _.IsTemplateLiteral(e)||_.IsTemplateLiteral(t)?ik(e,t):_.IsRegExp(e)||_.IsRegExp(t)?tk(e,t):_.IsNot(e)||_.IsNot(t)?jN(e,t):_.IsAny(e)?PN(e,t):_.IsArray(e)?CN(e,t):_.IsBigInt(e)?UN(e,t):_.IsBoolean(e)?FN(e,t):_.IsAsyncIterator(e)?ON(e,t):_.IsConstructor(e)?NN(e,t):_.IsDate(e)?kN(e,t):_.IsFunction(e)?DN(e,t):_.IsInteger(e)?LN(e,t):_.IsIntersect(e)?$N(e,t):_.IsIterator(e)?zN(e,t):_.IsLiteral(e)?BN(e,t):_.IsNever(e)?VN(e,t):_.IsNull(e)?GN(e,t):_.IsNumber(e)?HN(e,t):_.IsObject(e)?JN(e,t):_.IsRecord(e)?ek(e,t):_.IsString(e)?nk(e,t):_.IsSymbol(e)?rk(e,t):_.IsTuple(e)?ak(e,t):_.IsPromise(e)?QN(e,t):_.IsUint8Array(e)?ck(e,t):_.IsUndefined(e)?uk(e,t):_.IsUnion(e)?lk(e,t):_.IsUnknown(e)?fk(e,t):_.IsVoid(e)?pk(e,t):jo("Unknown left type operand '".concat(e[P],"'"))}o(je,"Visit");function Ti(e,t){return je(e,t)}o(Ti,"ExtendsCheck");f();f();f();function hk(e,t,n,i,r){let s={};for(let a of globalThis.Object.getOwnPropertyNames(e))s[a]=Go(e[a],t,n,i,it(r));return s}o(hk,"FromProperties");function mk(e,t,n,i,r){return hk(e.properties,t,n,i,r)}o(mk,"FromMappedResult");function DS(e,t,n,i,r){let s=mk(e,t,n,i,r);return Te(s)}o(DS,"ExtendsFromMappedResult");function gk(e,t,n,i){let r=Ti(e,t);return r===O.Union?Ve([n,i]):r===O.True?n:i}o(gk,"ExtendsResolve");function Go(e,t,n,i,r){return st(e)?DS(e,t,n,i,r):Sn(e)?F(LS(e,t,n,i,r)):F(gk(e,t,n,i),r)}o(Go,"Extends");function yk(e,t,n,i,r){return{[e]:Go(Ne(e),t,n,i,it(r))}}o(yk,"FromPropertyKey");function xk(e,t,n,i,r){return e.reduce((s,a)=>x(x({},s),yk(a,t,n,i,r)),{})}o(xk,"FromPropertyKeys");function vk(e,t,n,i,r){return xk(e.keys,t,n,i,r)}o(vk,"FromMappedKey");function LS(e,t,n,i,r){let s=vk(e,t,n,i,r);return Te(s)}o(LS,"ExtendsFromMappedKey");f();function _k(e){return e.allOf.every(t=>Jr(t))}o(_k,"Intersect");function bk(e){return e.anyOf.some(t=>Jr(t))}o(bk,"Union");function Sk(e){return!Jr(e.not)}o(Sk,"Not");function Jr(e){return e[P]==="Intersect"?_k(e):e[P]==="Union"?bk(e):e[P]==="Not"?Sk(e):e[P]==="Undefined"}o(Jr,"ExtendsUndefinedCheck");f();function $S(e,t){return Ho(Zi(e),t)}o($S,"ExcludeFromTemplateLiteral");function Ik(e,t){let n=e.filter(i=>Ti(i,t)===O.False);return n.length===1?n[0]:Ve(n)}o(Ik,"ExcludeRest");function Ho(e,t,n={}){return In(e)?F($S(e,t),n):st(e)?F(zS(e,t),n):F(Ce(e)?Ik(e.anyOf,t):Ti(e,t)!==O.False?Be():e,n)}o(Ho,"Exclude");function wk(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Ho(e[i],t);return n}o(wk,"FromProperties");function Mk(e,t){return wk(e.properties,t)}o(Mk,"FromMappedResult");function zS(e,t){let n=Mk(e,t);return Te(n)}o(zS,"ExcludeFromMappedResult");f();f();f();function BS(e,t){return Wo(Zi(e),t)}o(BS,"ExtractFromTemplateLiteral");function Ek(e,t){let n=e.filter(i=>Ti(i,t)!==O.False);return n.length===1?n[0]:Ve(n)}o(Ek,"ExtractRest");function Wo(e,t,n){return In(e)?F(BS(e,t),n):st(e)?F(VS(e,t),n):F(Ce(e)?Ek(e.anyOf,t):Ti(e,t)!==O.False?e:Be(),n)}o(Wo,"Extract");function Tk(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Wo(e[i],t);return n}o(Tk,"FromProperties");function Ak(e,t){return Tk(e.properties,t)}o(Ak,"FromMappedResult");function VS(e,t){let n=Ak(e,t);return Te(n)}o(VS,"ExtractFromMappedResult");f();function jS(e,t){return F(e.returns,t)}o(jS,"InstanceType");f();function GS(e){return F({[P]:"Integer",type:"integer"},e)}o(GS,"Integer");f();f();f();function Pk(e,t,n){return{[e]:sr(Ne(e),t,it(n))}}o(Pk,"MappedIntrinsicPropertyKey");function Rk(e,t,n){return e.reduce((r,s)=>x(x({},r),Pk(s,t,n)),{})}o(Rk,"MappedIntrinsicPropertyKeys");function Ck(e,t,n){return Rk(e.keys,t,n)}o(Ck,"MappedIntrinsicProperties");function HS(e,t,n){let i=Ck(e,t,n);return Te(i)}o(HS,"IntrinsicFromMappedKey");function Ok(e){let[t,n]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),n].join("")}o(Ok,"ApplyUncapitalize");function Uk(e){let[t,n]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),n].join("")}o(Uk,"ApplyCapitalize");function Fk(e){return e.toUpperCase()}o(Fk,"ApplyUppercase");function Nk(e){return e.toLowerCase()}o(Nk,"ApplyLowercase");function kk(e,t,n){let i=$o(e.pattern);if(!Wi(i))return L(x({},e),{pattern:WS(e.pattern,t)});let a=[...Da(i)].map(c=>Ne(c)),u=ZS(a,t),l=Ve(u);return Bu([l],n)}o(kk,"FromTemplateLiteral");function WS(e,t){return typeof e=="string"?t==="Uncapitalize"?Ok(e):t==="Capitalize"?Uk(e):t==="Uppercase"?Fk(e):t==="Lowercase"?Nk(e):e:e.toString()}o(WS,"FromLiteralValue");function ZS(e,t){return e.map(n=>sr(n,t))}o(ZS,"FromRest");function sr(e,t,n={}){return Sn(e)?HS(e,t,n):In(e)?kk(e,t,n):Ce(e)?Ve(ZS(e.anyOf,t),n):Wr(e)?Ne(WS(e.const,t),n):F(e,n)}o(sr,"Intrinsic");function XS(e,t={}){return sr(e,"Capitalize",t)}o(XS,"Capitalize");f();function qS(e,t={}){return sr(e,"Lowercase",t)}o(qS,"Lowercase");f();function KS(e,t={}){return sr(e,"Uncapitalize",t)}o(KS,"Uncapitalize");f();function YS(e,t={}){return sr(e,"Uppercase",t)}o(YS,"Uppercase");f();function JS(e,t){return F({[P]:"Not",not:e},t)}o(JS,"Not");f();f();f();function Dk(e,t,n){let i={};for(let r of globalThis.Object.getOwnPropertyNames(e))i[r]=Zo(e[r],t,it(n));return i}o(Dk,"FromProperties");function Lk(e,t,n){return Dk(e.properties,t,n)}o(Lk,"FromMappedResult");function QS(e,t,n){let i=Lk(e,t,n);return Te(i)}o(QS,"OmitFromMappedResult");function $k(e,t){return e.map(n=>dx(n,t))}o($k,"FromIntersect");function zk(e,t){return e.map(n=>dx(n,t))}o(zk,"FromUnion");function Bk(e,t){let r=e,{[t]:n}=r;return Es(r,[lc(t)])}o(Bk,"FromProperty");function Vk(e,t){return t.reduce((n,i)=>Bk(n,i),e)}o(Vk,"FromProperties");function jk(e,t){let n=ht(e,[ot,"$id","required","properties"]),i=Vk(e.properties,t);return We(i,n)}o(jk,"FromObject");function dx(e,t){return vt(e)?mn($k(e.allOf,t)):Ce(e)?Ve(zk(e.anyOf,t)):Mt(e)?jk(e,t):We({})}o(dx,"OmitResolve");function Zo(e,t,n){if(Sn(t))return eI(e,t,n);if(st(e))return QS(e,t,n);let i=ir(t)?hn(t):t;return F(x(x({},dx(e,i)),n))}o(Zo,"Omit");function Gk(e,t,n){return{[t]:Zo(e,[t],it(n))}}o(Gk,"FromPropertyKey");function Hk(e,t,n){return t.reduce((i,r)=>x(x({},i),Gk(e,r,n)),{})}o(Hk,"FromPropertyKeys");function Wk(e,t,n){return Hk(e,t.keys,n)}o(Wk,"FromMappedKey");function eI(e,t,n){let i=Wk(e,t,n);return Te(i)}o(eI,"OmitFromMappedKey");f();function tI(e,t){return br(e.parameters,t)}o(tI,"Parameters");f();f();function nI(e){return e.map(t=>rI(t))}o(nI,"FromRest");function Zk(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=pn(e[n]);return t}o(Zk,"FromProperties");function Xk(e){let t=ht(e,[ot,"$id","required","properties"]),n=Zk(e.properties);return We(n,t)}o(Xk,"FromObject");function rI(e){return vt(e)?mn(nI(e.allOf)):Ce(e)?Ve(nI(e.anyOf)):Mt(e)?Xk(e):We({})}o(rI,"PartialResolve");function el(e,t){return st(e)?iI(e,t):F(x(x({},rI(e)),t))}o(el,"Partial");function qk(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=el(e[i],it(t));return n}o(qk,"FromProperties");function Kk(e,t){return qk(e.properties,t)}o(Kk,"FromMappedResult");function iI(e,t){let n=Kk(e,t);return Te(n)}o(iI,"PartialFromMappedResult");f();f();f();function Yk(e,t,n){let i={};for(let r of globalThis.Object.getOwnPropertyNames(e))i[r]=Xo(e[r],t,it(n));return i}o(Yk,"FromProperties");function Jk(e,t,n){return Yk(e.properties,t,n)}o(Jk,"FromMappedResult");function oI(e,t,n){let i=Jk(e,t,n);return Te(i)}o(oI,"PickFromMappedResult");function Qk(e,t){return e.map(n=>px(n,t))}o(Qk,"FromIntersect");function eD(e,t){return e.map(n=>px(n,t))}o(eD,"FromUnion");function tD(e,t){let n={};for(let i of t)i in e&&(n[i]=e[i]);return n}o(tD,"FromProperties");function nD(e,t){let n=ht(e,[ot,"$id","required","properties"]),i=tD(e.properties,t);return We(i,n)}o(nD,"FromObject");function px(e,t){return vt(e)?mn(Qk(e.allOf,t)):Ce(e)?Ve(eD(e.anyOf,t)):Mt(e)?nD(e,t):We({})}o(px,"PickResolve");function Xo(e,t,n){if(Sn(t))return sI(e,t,n);if(st(e))return oI(e,t,n);let i=ir(t)?hn(t):t;return F(x(x({},px(e,i)),n))}o(Xo,"Pick");function rD(e,t,n){return{[t]:Xo(e,[t],it(n))}}o(rD,"FromPropertyKey");function iD(e,t,n){return t.reduce((i,r)=>x(x({},i),rD(e,r,n)),{})}o(iD,"FromPropertyKeys");function oD(e,t,n){return iD(e,t.keys,n)}o(oD,"FromMappedKey");function sI(e,t,n){let i=oD(e,t,n);return Te(i)}o(sI,"PickFromMappedKey");f();function aI(e){return $n(pn(e))}o(aI,"ReadonlyOptional");f();function Xi(e,t,n){return F({[P]:"Record",type:"object",patternProperties:{[e]:t}},n)}o(Xi,"RecordCreateFromPattern");function hx(e,t,n){let i={};for(let r of e)i[r]=t;return We(i,L(x({},n),{[Dn]:"Record"}))}o(hx,"RecordCreateFromKeys");function sD(e,t,n){return $u(e)?hx(hn(e),t,n):Xi(e.pattern,t,n)}o(sD,"FromTemplateLiteralKey");function aD(e,t,n){return hx(hn(Ve(e)),t,n)}o(aD,"FromUnionKey");function cD(e,t,n){return hx([e.toString()],t,n)}o(cD,"FromLiteralKey");function uD(e,t,n){return Xi(e.source,t,n)}o(uD,"FromRegExpKey");function lD(e,t,n){let i=ct(e.pattern)?Xr:e.pattern;return Xi(i,t,n)}o(lD,"FromStringKey");function fD(e,t,n){return Xi(Xr,t,n)}o(fD,"FromAnyKey");function dD(e,t,n){return Xi(J0,t,n)}o(dD,"FromNeverKey");function pD(e,t,n){return Xi(Zr,t,n)}o(pD,"FromIntegerKey");function hD(e,t,n){return Xi(Zr,t,n)}o(hD,"FromNumberKey");function cI(e,t,n={}){return Ce(e)?aD(e.anyOf,t,n):In(e)?sD(e,t,n):Wr(e)?cD(e.const,t,n):ji(e)?pD(e,t,n):Gi(e)?hD(e,t,n):Dy(e)?uD(e,t,n):Ca(e)?lD(e,t,n):Oy(e)?fD(e,t,n):Si(e)?dD(e,t,n):Be(n)}o(cI,"Record");f();var mD=0;function uI(e,t={}){ct(t.$id)&&(t.$id="T".concat(mD++));let n=Ma(e({[P]:"This",$ref:"".concat(t.$id)}));return n.$id=t.$id,F(x({[Dn]:"Recursive"},n),t)}o(uI,"Recursive");f();function lI(e,t){if(Qe(e))return F({[P]:"Ref",$ref:e},t);if(ct(e.$id))throw new Error("Reference target type must specify an $id");return F({[P]:"Ref",$ref:e.$id},t)}o(lI,"Ref");f();function fI(e,t){let n=Qe(e)?new globalThis.RegExp(e):e;return F({[P]:"RegExp",type:"RegExp",source:n.source,flags:n.flags},t)}o(fI,"RegExp");f();f();function dI(e){return e.map(t=>pI(t))}o(dI,"FromRest");function gD(e){let t={};for(let n of globalThis.Object.getOwnPropertyNames(e))t[n]=ht(e[n],[on]);return t}o(gD,"FromProperties");function yD(e){let t=ht(e,[ot,"$id","required","properties"]),n=gD(e.properties);return We(n,t)}o(yD,"FromObject");function pI(e){return vt(e)?mn(dI(e.allOf)):Ce(e)?Ve(dI(e.anyOf)):Mt(e)?yD(e):We({})}o(pI,"RequiredResolve");function tl(e,t){return st(e)?hI(e,t):F(x(x({},pI(e)),t))}o(tl,"Required");function xD(e,t){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=tl(e[i],t);return n}o(xD,"FromProperties");function vD(e,t){return xD(e.properties,t)}o(vD,"FromMappedResult");function hI(e,t){let n=vD(e,t);return Te(n)}o(hI,"RequiredFromMappedResult");f();function _D(e){var t;return vt(e)?e.allOf:Ce(e)?e.anyOf:rr(e)?(t=e.items)!=null?t:[]:[]}o(_D,"RestResolve");function mI(e){return _D(e)}o(mI,"Rest");f();function gI(e,t){return F(e.returns,t)}o(gI,"ReturnType");f();function yI(e){return JSON.parse(JSON.stringify(e))}o(yI,"Strict");f();var yx=class yx{constructor(t){this.schema=t}Decode(t){return new gx(this.schema,t)}};o(yx,"TransformDecodeBuilder");var mx=yx,xx=class xx{constructor(t,n){this.schema=t,this.decode=n}EncodeTransform(t,n){let s={Encode:o(a=>n[ot].Encode(t(a)),"Encode"),Decode:o(a=>this.decode(n[ot].Decode(a)),"Decode")};return L(x({},n),{[ot]:s})}EncodeSchema(t,n){let i={Decode:this.decode,Encode:t};return L(x({},n),{[ot]:i})}Encode(t){return Fo(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};o(xx,"TransformEncodeBuilder");var gx=xx;function xI(e){return new mx(e)}o(xI,"Transform");f();function nl(e={}){var t;return F({[P]:(t=e[P])!=null?t:"Unsafe"},e)}o(nl,"Unsafe");f();function vI(e){return F({[P]:"Void",type:"void"},e)}o(vI,"Void");f();var vx={};un(vx,{Any:()=>wi,Array:()=>Nu,AsyncIterator:()=>ku,Awaited:()=>vS,BigInt:()=>Bo,Boolean:()=>zu,Capitalize:()=>XS,Composite:()=>SS,Const:()=>IS,Constructor:()=>Du,ConstructorParameters:()=>wS,Date:()=>Wu,Deref:()=>or,Enum:()=>MS,Exclude:()=>Ho,Extends:()=>Go,Extract:()=>Wo,Function:()=>Mi,Index:()=>Vo,InstanceType:()=>jS,Integer:()=>GS,Intersect:()=>mn,Iterator:()=>ju,KeyOf:()=>Hu,Literal:()=>Ne,Lowercase:()=>qS,Mapped:()=>mS,Never:()=>Be,Not:()=>JS,Null:()=>Zu,Number:()=>_r,Object:()=>We,Omit:()=>Zo,Optional:()=>pn,Parameters:()=>tI,Partial:()=>el,Pick:()=>Xo,Promise:()=>Gu,Readonly:()=>$n,ReadonlyOptional:()=>aI,Record:()=>cI,Recursive:()=>uI,Ref:()=>lI,RegExp:()=>fI,Required:()=>tl,Rest:()=>mI,ReturnType:()=>gI,Strict:()=>yI,String:()=>Ln,Symbol:()=>Xu,TemplateLiteral:()=>Bu,Transform:()=>xI,Tuple:()=>br,Uint8Array:()=>Ku,Uncapitalize:()=>KS,Undefined:()=>qu,Union:()=>Ve,Unknown:()=>Yr,Unsafe:()=>nl,Uppercase:()=>YS,Void:()=>vI});f();var p=vx;f();var Va=p.Object({externalId:p.String({description:"An identifier that can be used to link this entity to data outside of the MVF."}),name:p.String({description:"The name of the entity."}),shortName:p.String({description:"A short name for the entity."}),description:p.String({description:"A description of the entity."}),icon:p.String({format:"uri",description:"A URL to an icon for the entity."})},{$id:"BaseDetails",description:"Additional information about a given entity."}),_x=p.Partial(Va,{$id:"Details",description:"Additional information about a given entity."}),wn=p.Object({details:p.Optional(p.Ref(_x))},{$id:"WithDetails"}),qi=o(e=>{let t=[...e].sort(),n=p.Pick(Va,e),i=p.Omit(Va,e);return p.Object({details:p.Intersect([n,p.Partial(i)])},{$id:"WithRequiredDetails_".concat(t.join("_"))})},"WithRequiredDetails"),bx=[Va,_x];f();var qo=p.Number({$id:"Longitude",minimum:-180,maximum:180,description:"A WGS 84-compatible longitude coordinate value."}),Ko=p.Number({$id:"Latitude",minimum:-90,maximum:90,description:"A WGS 84-compatible latitude coordinate value."}),Ki=p.Tuple([p.Ref(qo),p.Ref(Ko)],{$id:"Position",minItems:2,maxItems:2,description:"A valid WGS 84 position consisting of a longitude value, followed by a latitude value."}),Xt=p.Object({type:p.Literal("Point"),coordinates:p.Ref(Ki)},{$id:"Point",description:"An RFC-7946 compatible GeoJSON Point geometry."}),rl=p.Object({type:p.Literal("MultiPoint"),coordinates:p.Array(p.Ref(Ki))},{$id:"MultiPoint",description:"An RFC-7946 compatible GeoJSON MultiPoint geometry."}),il=p.Object({type:p.Literal("LineString"),coordinates:p.Array(p.Ref(Ki),{minItems:2,description:"At least two positions are required."})},{$id:"LineString",description:"An RFC-7946 compatible GeoJSON LineString geometry."}),ol=p.Object({type:p.Literal("MultiLineString"),coordinates:p.Array(p.Array(p.Ref(Ki),{minItems:2}))},{$id:"MultiLineString",description:"An RFC-7946 compatible GeoJSON MultiLineString geometry."}),_I=p.Array(p.Ref(Ki),{$id:"LinearRing",minItems:4,description:"A linear ring is a building block of a polygon or multi-polygon."}),Sx=p.Array(p.Ref(_I),{$id:"LinearRings",minItems:1,description:"A collection of linear rings, at least one of which is the exterior ring of a polygon."}),Yo=p.Object({type:p.Literal("Polygon"),coordinates:p.Ref(Sx)},{$id:"Polygon",description:"An RFC-7946 compatible GeoJSON Polygon geometry."}),Jo=p.Object({type:p.Literal("MultiPolygon"),coordinates:p.Array(p.Ref(Sx))},{$id:"MultiPolygon",description:"An RFC-7946 compatible GeoJSON MultiPolygon geometry."}),Nt=o((e,t,n)=>p.Object({type:p.Literal("Feature"),geometry:e,properties:t},n),"Feature"),an=o((e,t,n)=>p.Object({type:p.Literal("FeatureCollection"),features:p.Array(e,n)},t),"FeatureCollection"),Ix=[qo,Ko,Ki,Xt,rl,il,ol,_I,Sx,Yo,Jo];f();var mt=o((e,t)=>p.Unsafe(p.String({$id:t,pattern:"^".concat(e,"_[A-Za-z0-9-]+$")})),"Ident"),qt=mt("g","GeometryId"),_e=mt("f","FloorId"),wx=[qt,_e];f();f();f();var Mx=class Mx{constructor(t){Xe(this,"_value");this._value=t}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let t=this._value;return this._value=null,{done:!1,value:t}}};o(Mx,"OptionIterator");var sl=Mx,Ex=class Ex{constructor(t){Xe(this,"_tag","Some");Xe(this,"_value");this._value=t}get value(){return this._value}isSome(){return!0}isSomeAnd(t){return t(this.value)}isNone(){return!1}equals(t){return t.isSome()&&t.value===this.value}expect(t){return this.value}unwrap(){return this.value}unwrapOr(t){return this.value}unwrapOrElse(t){return this.value}inspect(t){return t(this.value),this}inspectNone(t){return this}map(t){return bI(t(this.value))}mapAsync(t){return t(this.value).then(n=>bI(n))}mapOr(t,n){return this.map(t).unwrapOr(n)}mapOrAsync(t,n){return this.mapAsync(t).then(i=>i.unwrapOr(n))}mapOrElse(t,n){return this.map(t).unwrapOrElse(n)}mapOrElseAsync(t,n){return this.mapAsync(t).then(i=>i.unwrapOrElse(n))}and(t){return t}andThen(t){return t(this.value)}andThenAsync(t){return t(this.value)}filter(t){return t(this.value)?this:Ai()}or(t){return this}orElse(t){return this}xor(t){return t.isSome()?Ai():this}toString(){return"Some(".concat(this.value,")")}okOr(t){return Y(this.value)}okOrElse(t){return Y(this.value)}iter(){return new sl(this.value)}[Symbol.iterator](){return this.iter()}zip(t){return t.isSome()?Qo([this.value,t.value]):Ai()}zipWith(t,n){return t.isSome()?Qo(n(this.value,t.value)):Ai()}get[Symbol.toStringTag](){return"Some"}};o(Ex,"Some");var al=Ex,Tx=class Tx{constructor(){Xe(this,"_tag","None")}get value(){return null}isSome(){return!1}isSomeAnd(t){return!1}isNone(){return!0}equals(t){return t.isNone()}expect(t){throw new Error(t)}unwrap(){throw new Error("Tried to unwrap a None value!")}unwrapOr(t){return t}unwrapOrElse(t){return t()}inspect(t){return this}inspectNone(t){return t(),this}map(t){return this}mapAsync(t){return Promise.resolve(this)}mapOr(t,n){return n}mapOrAsync(t,n){return Promise.resolve(n)}mapOrElse(t,n){return n()}mapOrElseAsync(t,n){return n()}and(t){return this}andThen(t){return this}andThenAsync(t){return Promise.resolve(this)}filter(t){return this}or(t){return t}orElse(t){return t()}xor(t){return t}toString(){return"None"}okOr(t){return J(t)}okOrElse(t){return J(t())}iter(){return new sl(null)}[Symbol.iterator](){return this.iter()}zip(t){return this}zipWith(t,n){return this}get[Symbol.toStringTag](){return"None"}};o(Tx,"None");var cl=Tx,Qo=o(e=>new al(e),"some"),Ai=o(()=>new cl,"none"),bI=o(e=>e instanceof al||e instanceof cl?e:e==null?Ai():Qo(e),"option");var Rx=class Rx{constructor(t){Xe(this,"_value");this._value=t}[Symbol.iterator](){return this}next(){if(this._value==null)return{done:!0,value:void 0};let t=this._value;return this._value=null,{done:!1,value:t}}};o(Rx,"ResultIterator");var ul=Rx,Cx=class Cx{constructor(t){Xe(this,"_tag","Ok");Xe(this,"_value");this._value=t}get value(){return this._value}get error(){return null}isOk(){return!0}isOkAnd(t){return t(this.value)}isErr(){return!1}isErrAnd(t){return!1}ok(){return Qo(this.value)}err(){return Ai()}expect(t){return this.value}expectErr(t){throw new Error(t)}unwrap(){return this.value}unwrapOr(t){return this.value}unwrapOrElse(t){return this.value}inspect(t){return t(this.value),this}inspectErr(){return this}map(t){return Y(t(this.value))}async mapAsync(t){return t(this.value).then(Y)}mapOr(t,n){return t(this.value)}async mapOrAsync(t,n){return t(this.value)}mapOrElse(t,n){return t(this.value)}async mapOrElseAsync(t,n){return t(this.value)}mapErr(t){return this}iter(){return new ul(this.value)}[Symbol.iterator](){return this.iter()}and(t){return t}andThen(t){return t(this.value)}or(t){return this}orElse(t){return this}async andThenAsync(t){return t(this.value)}toString(){return"Ok(".concat(this.value,")")}get[Symbol.toStringTag](){return"Ok"}};o(Cx,"Ok");var Ax=Cx,ll=class ll{constructor(t){Xe(this,"_tag","Err");Xe(this,"_error");this._error=t}get value(){return null}get error(){return this._error}isOk(){return!1}isOkAnd(t){return!1}isErr(){return!0}isErrAnd(t){return t(this.error)}ok(){return Ai()}err(){return Qo(this.error)}expect(t){throw new Error(t)}expectErr(t){return this.error}unwrap(){throw this.error}unwrapOr(t){return t}unwrapOrElse(t){return t()}inspect(){return this}inspectErr(t){return t(this.error),this}map(t){return this}iter(){return new ul(null)}[Symbol.iterator](){return this.iter()}async mapAsync(t){return this}mapOr(t,n){return n}async mapOrAsync(t,n){return n}mapOrElse(t,n){return n()}async mapOrElseAsync(t,n){return n()}mapErr(t){return new ll(t(this.error))}and(t){return this}andThen(t){return this}async andThenAsync(t){return this}or(t){return t}orElse(t){return t(this.error)}toString(){return"Err(".concat(this.error,")")}get[Symbol.toStringTag](){return"Err"}};o(ll,"Err");var Px=ll,Y=o(e=>new Ax(e),"ok"),J=o(e=>new Px(e),"err");f();var yn;(function(e){e.GeometryMissingError="GeometryMissingError",e.FloorMissingError="FloorMissingError",e.UnknownFloorError="UnknownFloorError",e.UnknownGeometryError="UnknownGeometryError",e.DuplicateIdError="DuplicateIdError"})(yn||(yn={}));f();f();f();f();var Ux=class Ux extends re{constructor(t){super("Duplicate type kind '".concat(t,"' detected"))}};o(Ux,"TypeSystemDuplicateTypeKind");var Ox=Ux,Fx=class Fx extends re{constructor(t){super("Duplicate string format '".concat(t,"' detected"))}};o(Fx,"TypeSystemDuplicateFormat");var ja=Fx,fl;(function(e){function t(i,r){if(Et.Has(i))throw new Ox(i);return Et.Set(i,r),(s={})=>nl(L(x({},s),{[P]:i}))}o(t,"Type"),e.Type=t;function n(i,r){if(sn.Has(i))throw new ja(i);return sn.Set(i,r),i}o(n,"Format"),e.Format=n})(fl||(fl={}));f();function bD(e){switch(e.errorType){case R.ArrayContains:return"Expected array to contain at least one matching value";case R.ArrayMaxContains:return"Expected array to contain no more than ".concat(e.schema.maxContains," matching values");case R.ArrayMinContains:return"Expected array to contain at least ".concat(e.schema.minContains," matching values");case R.ArrayMaxItems:return"Expected array length to be less or equal to ".concat(e.schema.maxItems);case R.ArrayMinItems:return"Expected array length to be greater or equal to ".concat(e.schema.minItems);case R.ArrayUniqueItems:return"Expected array elements to be unique";case R.Array:return"Expected array";case R.AsyncIterator:return"Expected AsyncIterator";case R.BigIntExclusiveMaximum:return"Expected bigint to be less than ".concat(e.schema.exclusiveMaximum);case R.BigIntExclusiveMinimum:return"Expected bigint to be greater than ".concat(e.schema.exclusiveMinimum);case R.BigIntMaximum:return"Expected bigint to be less or equal to ".concat(e.schema.maximum);case R.BigIntMinimum:return"Expected bigint to be greater or equal to ".concat(e.schema.minimum);case R.BigIntMultipleOf:return"Expected bigint to be a multiple of ".concat(e.schema.multipleOf);case R.BigInt:return"Expected bigint";case R.Boolean:return"Expected boolean";case R.DateExclusiveMinimumTimestamp:return"Expected Date timestamp to be greater than ".concat(e.schema.exclusiveMinimumTimestamp);case R.DateExclusiveMaximumTimestamp:return"Expected Date timestamp to be less than ".concat(e.schema.exclusiveMaximumTimestamp);case R.DateMinimumTimestamp:return"Expected Date timestamp to be greater or equal to ".concat(e.schema.minimumTimestamp);case R.DateMaximumTimestamp:return"Expected Date timestamp to be less or equal to ".concat(e.schema.maximumTimestamp);case R.DateMultipleOfTimestamp:return"Expected Date timestamp to be a multiple of ".concat(e.schema.multipleOfTimestamp);case R.Date:return"Expected Date";case R.Function:return"Expected function";case R.IntegerExclusiveMaximum:return"Expected integer to be less than ".concat(e.schema.exclusiveMaximum);case R.IntegerExclusiveMinimum:return"Expected integer to be greater than ".concat(e.schema.exclusiveMinimum);case R.IntegerMaximum:return"Expected integer to be less or equal to ".concat(e.schema.maximum);case R.IntegerMinimum:return"Expected integer to be greater or equal to ".concat(e.schema.minimum);case R.IntegerMultipleOf:return"Expected integer to be a multiple of ".concat(e.schema.multipleOf);case R.Integer:return"Expected integer";case R.IntersectUnevaluatedProperties:return"Unexpected property";case R.Intersect:return"Expected all values to match";case R.Iterator:return"Expected Iterator";case R.Literal:return"Expected ".concat(typeof e.schema.const=="string"?"'".concat(e.schema.const,"'"):e.schema.const);case R.Never:return"Never";case R.Not:return"Value should not match";case R.Null:return"Expected null";case R.NumberExclusiveMaximum:return"Expected number to be less than ".concat(e.schema.exclusiveMaximum);case R.NumberExclusiveMinimum:return"Expected number to be greater than ".concat(e.schema.exclusiveMinimum);case R.NumberMaximum:return"Expected number to be less or equal to ".concat(e.schema.maximum);case R.NumberMinimum:return"Expected number to be greater or equal to ".concat(e.schema.minimum);case R.NumberMultipleOf:return"Expected number to be a multiple of ".concat(e.schema.multipleOf);case R.Number:return"Expected number";case R.Object:return"Expected object";case R.ObjectAdditionalProperties:return"Unexpected property";case R.ObjectMaxProperties:return"Expected object to have no more than ".concat(e.schema.maxProperties," properties");case R.ObjectMinProperties:return"Expected object to have at least ".concat(e.schema.minProperties," properties");case R.ObjectRequiredProperty:return"Expected required property";case R.Promise:return"Expected Promise";case R.RegExp:return"Expected string to match regular expression";case R.StringFormatUnknown:return"Unknown format '".concat(e.schema.format,"'");case R.StringFormat:return"Expected string to match '".concat(e.schema.format,"' format");case R.StringMaxLength:return"Expected string length less or equal to ".concat(e.schema.maxLength);case R.StringMinLength:return"Expected string length greater or equal to ".concat(e.schema.minLength);case R.StringPattern:return"Expected string to match '".concat(e.schema.pattern,"'");case R.String:return"Expected string";case R.Symbol:return"Expected symbol";case R.TupleLength:return"Expected tuple to have ".concat(e.schema.maxItems||0," elements");case R.Tuple:return"Expected tuple";case R.Uint8ArrayMaxByteLength:return"Expected byte length less or equal to ".concat(e.schema.maxByteLength);case R.Uint8ArrayMinByteLength:return"Expected byte length greater or equal to ".concat(e.schema.minByteLength);case R.Uint8Array:return"Expected Uint8Array";case R.Undefined:return"Expected undefined";case R.Union:return"Expected union value";case R.Void:return"Expected void";case R.Kind:return"Expected kind '".concat(e.schema[P],"'");default:return"Unknown error type"}}o(bD,"DefaultErrorFunction");var SD=bD;function SI(){return SD}o(SI,"GetErrorFunction");f();var kx=class kx extends re{constructor(t){super("Unable to dereference schema with $id '".concat(t.$ref,"'")),this.schema=t}};o(kx,"TypeDereferenceError");var Nx=kx;function ID(e,t){let n=t.find(i=>i.$id===e.$ref);if(n===void 0)throw new Nx(e);return Ae(n,t)}o(ID,"Resolve");function jn(e,t){return!Se(e.$id)||t.some(n=>n.$id===e.$id)||t.push(e),t}o(jn,"Pushref");function Ae(e,t){return e[P]==="This"||e[P]==="Ref"?ID(e,t):e}o(Ae,"Deref");f();var Lx=class Lx extends re{constructor(t){super("Unable to hash value"),this.value=t}};o(Lx,"ValueHashError");var Dx=Lx,Mn;(function(e){e[e.Undefined=0]="Undefined",e[e.Null=1]="Null",e[e.Boolean=2]="Boolean",e[e.Number=3]="Number",e[e.String=4]="String",e[e.Object=5]="Object",e[e.Array=6]="Array",e[e.Date=7]="Date",e[e.Uint8Array=8]="Uint8Array",e[e.Symbol=9]="Symbol",e[e.BigInt=10]="BigInt"})(Mn||(Mn={}));var es=BigInt("14695981039346656037"),[wD,MD]=[BigInt("1099511628211"),BigInt("18446744073709551616")],ED=Array.from({length:256}).map((e,t)=>BigInt(t)),II=new Float64Array(1),wI=new DataView(II.buffer),MI=new Uint8Array(II.buffer);function*TD(e){let t=e===0?1:Math.ceil(Math.floor(Math.log2(e)+1)/8);for(let n=0;n<t;n++)yield e>>8*(t-1-n)&255}o(TD,"NumberToBytes");function AD(e){Kt(Mn.Array);for(let t of e)ts(t)}o(AD,"ArrayType");function PD(e){Kt(Mn.Boolean),Kt(e?1:0)}o(PD,"BooleanType");function RD(e){Kt(Mn.BigInt),wI.setBigInt64(0,e);for(let t of MI)Kt(t)}o(RD,"BigIntType");function CD(e){Kt(Mn.Date),ts(e.getTime())}o(CD,"DateType");function OD(e){Kt(Mn.Null)}o(OD,"NullType");function UD(e){Kt(Mn.Number),wI.setFloat64(0,e);for(let t of MI)Kt(t)}o(UD,"NumberType");function FD(e){Kt(Mn.Object);for(let t of globalThis.Object.getOwnPropertyNames(e).sort())ts(t),ts(e[t])}o(FD,"ObjectType");function ND(e){Kt(Mn.String);for(let t=0;t<e.length;t++)for(let n of TD(e.charCodeAt(t)))Kt(n)}o(ND,"StringType");function kD(e){Kt(Mn.Symbol),ts(e.description)}o(kD,"SymbolType");function DD(e){Kt(Mn.Uint8Array);for(let t=0;t<e.length;t++)Kt(e[t])}o(DD,"Uint8ArrayType");function LD(e){return Kt(Mn.Undefined)}o(LD,"UndefinedType");function ts(e){if(ae(e))return AD(e);if(yr(e))return PD(e);if(Ut(e))return RD(e);if(rn(e))return CD(e);if(Vr(e))return OD(e);if(ee(e))return UD(e);if(fe(e))return FD(e);if(Se(e))return ND(e);if(jr(e))return kD(e);if(Uo(e))return DD(e);if(ut(e))return LD(e);throw new Dx(e)}o(ts,"Visit");function Kt(e){es=es^ED[e],es=es*wD%MD}o(Kt,"FNV1A64");function Pi(e){return es=BigInt("14695981039346656037"),ts(e),es}o(Pi,"Hash");f();var zx=class zx extends re{constructor(t){super("Unknown type"),this.schema=t}};o(zx,"ValueCheckUnknownTypeError");var $x=zx;function $D(e){return e[P]==="Any"||e[P]==="Unknown"}o($D,"IsAnyOrUnknown");function ye(e){return e!==void 0}o(ye,"IsDefined");function zD(e,t,n){return!0}o(zD,"FromAny");function BD(e,t,n){if(!ae(n)||ye(e.minItems)&&!(n.length>=e.minItems)||ye(e.maxItems)&&!(n.length<=e.maxItems)||!n.every(s=>kt(e.items,t,s))||e.uniqueItems===!0&&!function(){let s=new Set;for(let a of n){let u=Pi(a);if(s.has(u))return!1;s.add(u)}return!0}())return!1;if(!(ye(e.contains)||ee(e.minContains)||ee(e.maxContains)))return!0;let i=ye(e.contains)?e.contains:Be(),r=n.reduce((s,a)=>kt(i,t,a)?s+1:s,0);return!(r===0||ee(e.minContains)&&r<e.minContains||ee(e.maxContains)&&r>e.maxContains)}o(BD,"FromArray");function VD(e,t,n){return Cu(n)}o(VD,"FromAsyncIterator");function jD(e,t,n){return!(!Ut(n)||ye(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||ye(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||ye(e.maximum)&&!(n<=e.maximum)||ye(e.minimum)&&!(n>=e.minimum)||ye(e.multipleOf)&&n%e.multipleOf!==BigInt(0))}o(jD,"FromBigInt");function GD(e,t,n){return yr(n)}o(GD,"FromBoolean");function HD(e,t,n){return kt(e.returns,t,n.prototype)}o(HD,"FromConstructor");function WD(e,t,n){return!(!rn(n)||ye(e.exclusiveMaximumTimestamp)&&!(n.getTime()<e.exclusiveMaximumTimestamp)||ye(e.exclusiveMinimumTimestamp)&&!(n.getTime()>e.exclusiveMinimumTimestamp)||ye(e.maximumTimestamp)&&!(n.getTime()<=e.maximumTimestamp)||ye(e.minimumTimestamp)&&!(n.getTime()>=e.minimumTimestamp)||ye(e.multipleOfTimestamp)&&n.getTime()%e.multipleOfTimestamp!==0)}o(WD,"FromDate");function ZD(e,t,n){return bi(n)}o(ZD,"FromFunction");function XD(e,t,n){return!(!Fu(n)||ye(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||ye(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||ye(e.maximum)&&!(n<=e.maximum)||ye(e.minimum)&&!(n>=e.minimum)||ye(e.multipleOf)&&n%e.multipleOf!==0)}o(XD,"FromInteger");function qD(e,t,n){let i=e.allOf.every(r=>kt(r,t,n));if(e.unevaluatedProperties===!1){let r=new RegExp(Kr(e)),s=Object.getOwnPropertyNames(n).every(a=>r.test(a));return i&&s}else if(Ie(e.unevaluatedProperties)){let r=new RegExp(Kr(e)),s=Object.getOwnPropertyNames(n).every(a=>r.test(a)||kt(e.unevaluatedProperties,t,n[a]));return i&&s}else return i}o(qD,"FromIntersect");function KD(e,t,n){return Ou(n)}o(KD,"FromIterator");function YD(e,t,n){return n===e.const}o(YD,"FromLiteral");function JD(e,t,n){return!1}o(JD,"FromNever");function QD(e,t,n){return!kt(e.not,t,n)}o(QD,"FromNot");function eL(e,t,n){return Vr(n)}o(eL,"FromNull");function tL(e,t,n){return!(!Le.IsNumberLike(n)||ye(e.exclusiveMaximum)&&!(n<e.exclusiveMaximum)||ye(e.exclusiveMinimum)&&!(n>e.exclusiveMinimum)||ye(e.minimum)&&!(n>=e.minimum)||ye(e.maximum)&&!(n<=e.maximum)||ye(e.multipleOf)&&n%e.multipleOf!==0)}o(tL,"FromNumber");function nL(e,t,n){if(!Le.IsObjectLike(n)||ye(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||ye(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;let i=Object.getOwnPropertyNames(e.properties);for(let r of i){let s=e.properties[r];if(e.required&&e.required.includes(r)){if(!kt(s,t,n[r])||(Jr(s)||$D(s))&&!(r in n))return!1}else if(Le.IsExactOptionalProperty(n,r)&&!kt(s,t,n[r]))return!1}if(e.additionalProperties===!1){let r=Object.getOwnPropertyNames(n);return e.required&&e.required.length===i.length&&r.length===i.length?!0:r.every(s=>i.includes(s))}else return typeof e.additionalProperties=="object"?Object.getOwnPropertyNames(n).every(s=>i.includes(s)||kt(e.additionalProperties,t,n[s])):!0}o(nL,"FromObject");function rL(e,t,n){return Uu(n)}o(rL,"FromPromise");function iL(e,t,n){if(!Le.IsRecordLike(n)||ye(e.minProperties)&&!(Object.getOwnPropertyNames(n).length>=e.minProperties)||ye(e.maxProperties)&&!(Object.getOwnPropertyNames(n).length<=e.maxProperties))return!1;let[i,r]=Object.entries(e.patternProperties)[0],s=new RegExp(i),a=Object.entries(n).every(([c,d])=>s.test(c)?kt(r,t,d):!0),u=typeof e.additionalProperties=="object"?Object.entries(n).every(([c,d])=>s.test(c)?!0:kt(e.additionalProperties,t,d)):!0,l=e.additionalProperties===!1?Object.getOwnPropertyNames(n).every(c=>s.test(c)):!0;return a&&u&&l}o(iL,"FromRecord");function oL(e,t,n){return kt(Ae(e,t),t,n)}o(oL,"FromRef");function sL(e,t,n){let i=new RegExp(e.source,e.flags);return ye(e.minLength)&&!(n.length>=e.minLength)||ye(e.maxLength)&&!(n.length<=e.maxLength)?!1:i.test(n)}o(sL,"FromRegExp");function aL(e,t,n){return!Se(n)||ye(e.minLength)&&!(n.length>=e.minLength)||ye(e.maxLength)&&!(n.length<=e.maxLength)||ye(e.pattern)&&!new RegExp(e.pattern).test(n)?!1:ye(e.format)?sn.Has(e.format)?sn.Get(e.format)(n):!1:!0}o(aL,"FromString");function cL(e,t,n){return jr(n)}o(cL,"FromSymbol");function uL(e,t,n){return Se(n)&&new RegExp(e.pattern).test(n)}o(uL,"FromTemplateLiteral");function lL(e,t,n){return kt(Ae(e,t),t,n)}o(lL,"FromThis");function fL(e,t,n){if(!ae(n)||e.items===void 0&&n.length!==0||n.length!==e.maxItems)return!1;if(!e.items)return!0;for(let i=0;i<e.items.length;i++)if(!kt(e.items[i],t,n[i]))return!1;return!0}o(fL,"FromTuple");function dL(e,t,n){return ut(n)}o(dL,"FromUndefined");function pL(e,t,n){return e.anyOf.some(i=>kt(i,t,n))}o(pL,"FromUnion");function hL(e,t,n){return!(!Uo(n)||ye(e.maxByteLength)&&!(n.length<=e.maxByteLength)||ye(e.minByteLength)&&!(n.length>=e.minByteLength))}o(hL,"FromUint8Array");function mL(e,t,n){return!0}o(mL,"FromUnknown");function gL(e,t,n){return Le.IsVoidLike(n)}o(gL,"FromVoid");function yL(e,t,n){return Et.Has(e[P])?Et.Get(e[P])(e,n):!1}o(yL,"FromKind");function kt(e,t,n){let i=ye(e.$id)?[...t,e]:t,r=e;switch(r[P]){case"Any":return zD(r,i,n);case"Array":return BD(r,i,n);case"AsyncIterator":return VD(r,i,n);case"BigInt":return jD(r,i,n);case"Boolean":return GD(r,i,n);case"Constructor":return HD(r,i,n);case"Date":return WD(r,i,n);case"Function":return ZD(r,i,n);case"Integer":return XD(r,i,n);case"Intersect":return qD(r,i,n);case"Iterator":return KD(r,i,n);case"Literal":return YD(r,i,n);case"Never":return JD(r,i,n);case"Not":return QD(r,i,n);case"Null":return eL(r,i,n);case"Number":return tL(r,i,n);case"Object":return nL(r,i,n);case"Promise":return rL(r,i,n);case"Record":return iL(r,i,n);case"Ref":return oL(r,i,n);case"RegExp":return sL(r,i,n);case"String":return aL(r,i,n);case"Symbol":return cL(r,i,n);case"TemplateLiteral":return uL(r,i,n);case"This":return lL(r,i,n);case"Tuple":return fL(r,i,n);case"Undefined":return dL(r,i,n);case"Union":return pL(r,i,n);case"Uint8Array":return hL(r,i,n);case"Unknown":return mL(r,i,n);case"Void":return gL(r,i,n);default:if(!Et.Has(r[P]))throw new $x(r);return yL(r,i,n)}}o(kt,"Visit");function pe(...e){return e.length===3?kt(e[0],e[1],e[2]):kt(e[0],[],e[1])}o(pe,"Check");var R;(function(e){e[e.ArrayContains=0]="ArrayContains",e[e.ArrayMaxContains=1]="ArrayMaxContains",e[e.ArrayMaxItems=2]="ArrayMaxItems",e[e.ArrayMinContains=3]="ArrayMinContains",e[e.ArrayMinItems=4]="ArrayMinItems",e[e.ArrayUniqueItems=5]="ArrayUniqueItems",e[e.Array=6]="Array",e[e.AsyncIterator=7]="AsyncIterator",e[e.BigIntExclusiveMaximum=8]="BigIntExclusiveMaximum",e[e.BigIntExclusiveMinimum=9]="BigIntExclusiveMinimum",e[e.BigIntMaximum=10]="BigIntMaximum",e[e.BigIntMinimum=11]="BigIntMinimum",e[e.BigIntMultipleOf=12]="BigIntMultipleOf",e[e.BigInt=13]="BigInt",e[e.Boolean=14]="Boolean",e[e.DateExclusiveMaximumTimestamp=15]="DateExclusiveMaximumTimestamp",e[e.DateExclusiveMinimumTimestamp=16]="DateExclusiveMinimumTimestamp",e[e.DateMaximumTimestamp=17]="DateMaximumTimestamp",e[e.DateMinimumTimestamp=18]="DateMinimumTimestamp",e[e.DateMultipleOfTimestamp=19]="DateMultipleOfTimestamp",e[e.Date=20]="Date",e[e.Function=21]="Function",e[e.IntegerExclusiveMaximum=22]="IntegerExclusiveMaximum",e[e.IntegerExclusiveMinimum=23]="IntegerExclusiveMinimum",e[e.IntegerMaximum=24]="IntegerMaximum",e[e.IntegerMinimum=25]="IntegerMinimum",e[e.IntegerMultipleOf=26]="IntegerMultipleOf",e[e.Integer=27]="Integer",e[e.IntersectUnevaluatedProperties=28]="IntersectUnevaluatedProperties",e[e.Intersect=29]="Intersect",e[e.Iterator=30]="Iterator",e[e.Kind=31]="Kind",e[e.Literal=32]="Literal",e[e.Never=33]="Never",e[e.Not=34]="Not",e[e.Null=35]="Null",e[e.NumberExclusiveMaximum=36]="NumberExclusiveMaximum",e[e.NumberExclusiveMinimum=37]="NumberExclusiveMinimum",e[e.NumberMaximum=38]="NumberMaximum",e[e.NumberMinimum=39]="NumberMinimum",e[e.NumberMultipleOf=40]="NumberMultipleOf",e[e.Number=41]="Number",e[e.ObjectAdditionalProperties=42]="ObjectAdditionalProperties",e[e.ObjectMaxProperties=43]="ObjectMaxProperties",e[e.ObjectMinProperties=44]="ObjectMinProperties",e[e.ObjectRequiredProperty=45]="ObjectRequiredProperty",e[e.Object=46]="Object",e[e.Promise=47]="Promise",e[e.RegExp=48]="RegExp",e[e.StringFormatUnknown=49]="StringFormatUnknown",e[e.StringFormat=50]="StringFormat",e[e.StringMaxLength=51]="StringMaxLength",e[e.StringMinLength=52]="StringMinLength",e[e.StringPattern=53]="StringPattern",e[e.String=54]="String",e[e.Symbol=55]="Symbol",e[e.TupleLength=56]="TupleLength",e[e.Tuple=57]="Tuple",e[e.Uint8ArrayMaxByteLength=58]="Uint8ArrayMaxByteLength",e[e.Uint8ArrayMinByteLength=59]="Uint8ArrayMinByteLength",e[e.Uint8Array=60]="Uint8Array",e[e.Undefined=61]="Undefined",e[e.Union=62]="Union",e[e.Void=63]="Void"})(R||(R={}));var Vx=class Vx extends re{constructor(t){super("Unknown type"),this.schema=t}};o(Vx,"ValueErrorsUnknownTypeError");var Bx=Vx;function Qr(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}o(Qr,"EscapeKey");function xe(e){return e!==void 0}o(xe,"IsDefined");var jx=class jx{constructor(t){this.iterator=t}[Symbol.iterator](){return this.iterator}First(){let t=this.iterator.next();return t.done?void 0:t.value}};o(jx,"ValueErrorIterator");var Gn=jx;function Z(e,t,n,i,r=[]){return{type:e,schema:t,path:n,value:i,message:SI()({errorType:e,path:n,schema:t,value:i,errors:r}),errors:r}}o(Z,"Create");function*xL(e,t,n,i){}o(xL,"FromAny");function*vL(e,t,n,i){if(!ae(i))return yield Z(R.Array,e,n,i);xe(e.minItems)&&!(i.length>=e.minItems)&&(yield Z(R.ArrayMinItems,e,n,i)),xe(e.maxItems)&&!(i.length<=e.maxItems)&&(yield Z(R.ArrayMaxItems,e,n,i));for(let a=0;a<i.length;a++)yield*k(Dt(e.items,t,"".concat(n,"/").concat(a),i[a]));if(e.uniqueItems===!0&&!function(){let a=new Set;for(let u of i){let l=Pi(u);if(a.has(l))return!1;a.add(l)}return!0}()&&(yield Z(R.ArrayUniqueItems,e,n,i)),!(xe(e.contains)||xe(e.minContains)||xe(e.maxContains)))return;let r=xe(e.contains)?e.contains:Be(),s=i.reduce((a,u,l)=>Dt(r,t,"".concat(n).concat(l),u).next().done===!0?a+1:a,0);s===0&&(yield Z(R.ArrayContains,e,n,i)),ee(e.minContains)&&s<e.minContains&&(yield Z(R.ArrayMinContains,e,n,i)),ee(e.maxContains)&&s>e.maxContains&&(yield Z(R.ArrayMaxContains,e,n,i))}o(vL,"FromArray");function*_L(e,t,n,i){Cu(i)||(yield Z(R.AsyncIterator,e,n,i))}o(_L,"FromAsyncIterator");function*bL(e,t,n,i){if(!Ut(i))return yield Z(R.BigInt,e,n,i);xe(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)&&(yield Z(R.BigIntExclusiveMaximum,e,n,i)),xe(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)&&(yield Z(R.BigIntExclusiveMinimum,e,n,i)),xe(e.maximum)&&!(i<=e.maximum)&&(yield Z(R.BigIntMaximum,e,n,i)),xe(e.minimum)&&!(i>=e.minimum)&&(yield Z(R.BigIntMinimum,e,n,i)),xe(e.multipleOf)&&i%e.multipleOf!==BigInt(0)&&(yield Z(R.BigIntMultipleOf,e,n,i))}o(bL,"FromBigInt");function*SL(e,t,n,i){yr(i)||(yield Z(R.Boolean,e,n,i))}o(SL,"FromBoolean");function*IL(e,t,n,i){yield*k(Dt(e.returns,t,n,i.prototype))}o(IL,"FromConstructor");function*wL(e,t,n,i){if(!rn(i))return yield Z(R.Date,e,n,i);xe(e.exclusiveMaximumTimestamp)&&!(i.getTime()<e.exclusiveMaximumTimestamp)&&(yield Z(R.DateExclusiveMaximumTimestamp,e,n,i)),xe(e.exclusiveMinimumTimestamp)&&!(i.getTime()>e.exclusiveMinimumTimestamp)&&(yield Z(R.DateExclusiveMinimumTimestamp,e,n,i)),xe(e.maximumTimestamp)&&!(i.getTime()<=e.maximumTimestamp)&&(yield Z(R.DateMaximumTimestamp,e,n,i)),xe(e.minimumTimestamp)&&!(i.getTime()>=e.minimumTimestamp)&&(yield Z(R.DateMinimumTimestamp,e,n,i)),xe(e.multipleOfTimestamp)&&i.getTime()%e.multipleOfTimestamp!==0&&(yield Z(R.DateMultipleOfTimestamp,e,n,i))}o(wL,"FromDate");function*ML(e,t,n,i){bi(i)||(yield Z(R.Function,e,n,i))}o(ML,"FromFunction");function*EL(e,t,n,i){if(!Fu(i))return yield Z(R.Integer,e,n,i);xe(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)&&(yield Z(R.IntegerExclusiveMaximum,e,n,i)),xe(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)&&(yield Z(R.IntegerExclusiveMinimum,e,n,i)),xe(e.maximum)&&!(i<=e.maximum)&&(yield Z(R.IntegerMaximum,e,n,i)),xe(e.minimum)&&!(i>=e.minimum)&&(yield Z(R.IntegerMinimum,e,n,i)),xe(e.multipleOf)&&i%e.multipleOf!==0&&(yield Z(R.IntegerMultipleOf,e,n,i))}o(EL,"FromInteger");function*TL(e,t,n,i){let r=!1;for(let s of e.allOf)for(let a of Dt(s,t,n,i))r=!0,yield a;if(r)return yield Z(R.Intersect,e,n,i);if(e.unevaluatedProperties===!1){let s=new RegExp(Kr(e));for(let a of Object.getOwnPropertyNames(i))s.test(a)||(yield Z(R.IntersectUnevaluatedProperties,e,"".concat(n,"/").concat(a),i))}if(typeof e.unevaluatedProperties=="object"){let s=new RegExp(Kr(e));for(let a of Object.getOwnPropertyNames(i))if(!s.test(a)){let u=Dt(e.unevaluatedProperties,t,"".concat(n,"/").concat(a),i[a]).next();u.done||(yield u.value)}}}o(TL,"FromIntersect");function*AL(e,t,n,i){Ou(i)||(yield Z(R.Iterator,e,n,i))}o(AL,"FromIterator");function*PL(e,t,n,i){i!==e.const&&(yield Z(R.Literal,e,n,i))}o(PL,"FromLiteral");function*RL(e,t,n,i){yield Z(R.Never,e,n,i)}o(RL,"FromNever");function*CL(e,t,n,i){Dt(e.not,t,n,i).next().done===!0&&(yield Z(R.Not,e,n,i))}o(CL,"FromNot");function*OL(e,t,n,i){Vr(i)||(yield Z(R.Null,e,n,i))}o(OL,"FromNull");function*UL(e,t,n,i){if(!Le.IsNumberLike(i))return yield Z(R.Number,e,n,i);xe(e.exclusiveMaximum)&&!(i<e.exclusiveMaximum)&&(yield Z(R.NumberExclusiveMaximum,e,n,i)),xe(e.exclusiveMinimum)&&!(i>e.exclusiveMinimum)&&(yield Z(R.NumberExclusiveMinimum,e,n,i)),xe(e.maximum)&&!(i<=e.maximum)&&(yield Z(R.NumberMaximum,e,n,i)),xe(e.minimum)&&!(i>=e.minimum)&&(yield Z(R.NumberMinimum,e,n,i)),xe(e.multipleOf)&&i%e.multipleOf!==0&&(yield Z(R.NumberMultipleOf,e,n,i))}o(UL,"FromNumber");function*FL(e,t,n,i){if(!Le.IsObjectLike(i))return yield Z(R.Object,e,n,i);xe(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)&&(yield Z(R.ObjectMinProperties,e,n,i)),xe(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties)&&(yield Z(R.ObjectMaxProperties,e,n,i));let r=Array.isArray(e.required)?e.required:[],s=Object.getOwnPropertyNames(e.properties),a=Object.getOwnPropertyNames(i);for(let u of r)a.includes(u)||(yield Z(R.ObjectRequiredProperty,e.properties[u],"".concat(n,"/").concat(Qr(u)),void 0));if(e.additionalProperties===!1)for(let u of a)s.includes(u)||(yield Z(R.ObjectAdditionalProperties,e,"".concat(n,"/").concat(Qr(u)),i[u]));if(typeof e.additionalProperties=="object")for(let u of a)s.includes(u)||(yield*k(Dt(e.additionalProperties,t,"".concat(n,"/").concat(Qr(u)),i[u])));for(let u of s){let l=e.properties[u];e.required&&e.required.includes(u)?(yield*k(Dt(l,t,"".concat(n,"/").concat(Qr(u)),i[u])),Jr(e)&&!(u in i)&&(yield Z(R.ObjectRequiredProperty,l,"".concat(n,"/").concat(Qr(u)),void 0))):Le.IsExactOptionalProperty(i,u)&&(yield*k(Dt(l,t,"".concat(n,"/").concat(Qr(u)),i[u])))}}o(FL,"FromObject");function*NL(e,t,n,i){Uu(i)||(yield Z(R.Promise,e,n,i))}o(NL,"FromPromise");function*kL(e,t,n,i){if(!Le.IsRecordLike(i))return yield Z(R.Object,e,n,i);xe(e.minProperties)&&!(Object.getOwnPropertyNames(i).length>=e.minProperties)&&(yield Z(R.ObjectMinProperties,e,n,i)),xe(e.maxProperties)&&!(Object.getOwnPropertyNames(i).length<=e.maxProperties)&&(yield Z(R.ObjectMaxProperties,e,n,i));let[r,s]=Object.entries(e.patternProperties)[0],a=new RegExp(r);for(let[u,l]of Object.entries(i))a.test(u)&&(yield*k(Dt(s,t,"".concat(n,"/").concat(Qr(u)),l)));if(typeof e.additionalProperties=="object")for(let[u,l]of Object.entries(i))a.test(u)||(yield*k(Dt(e.additionalProperties,t,"".concat(n,"/").concat(Qr(u)),l)));if(e.additionalProperties===!1){for(let[u,l]of Object.entries(i))if(!a.test(u))return yield Z(R.ObjectAdditionalProperties,e,"".concat(n,"/").concat(Qr(u)),l)}}o(kL,"FromRecord");function*DL(e,t,n,i){yield*k(Dt(Ae(e,t),t,n,i))}o(DL,"FromRef");function*LL(e,t,n,i){if(!Se(i))return yield Z(R.String,e,n,i);if(xe(e.minLength)&&!(i.length>=e.minLength)&&(yield Z(R.StringMinLength,e,n,i)),xe(e.maxLength)&&!(i.length<=e.maxLength)&&(yield Z(R.StringMaxLength,e,n,i)),!new RegExp(e.source,e.flags).test(i))return yield Z(R.RegExp,e,n,i)}o(LL,"FromRegExp");function*$L(e,t,n,i){if(!Se(i))return yield Z(R.String,e,n,i);xe(e.minLength)&&!(i.length>=e.minLength)&&(yield Z(R.StringMinLength,e,n,i)),xe(e.maxLength)&&!(i.length<=e.maxLength)&&(yield Z(R.StringMaxLength,e,n,i)),Se(e.pattern)&&(new RegExp(e.pattern).test(i)||(yield Z(R.StringPattern,e,n,i))),Se(e.format)&&(sn.Has(e.format)?sn.Get(e.format)(i)||(yield Z(R.StringFormat,e,n,i)):yield Z(R.StringFormatUnknown,e,n,i))}o($L,"FromString");function*zL(e,t,n,i){jr(i)||(yield Z(R.Symbol,e,n,i))}o(zL,"FromSymbol");function*BL(e,t,n,i){if(!Se(i))return yield Z(R.String,e,n,i);new RegExp(e.pattern).test(i)||(yield Z(R.StringPattern,e,n,i))}o(BL,"FromTemplateLiteral");function*VL(e,t,n,i){yield*k(Dt(Ae(e,t),t,n,i))}o(VL,"FromThis");function*jL(e,t,n,i){if(!ae(i))return yield Z(R.Tuple,e,n,i);if(e.items===void 0&&i.length!==0)return yield Z(R.TupleLength,e,n,i);if(i.length!==e.maxItems)return yield Z(R.TupleLength,e,n,i);if(e.items)for(let r=0;r<e.items.length;r++)yield*k(Dt(e.items[r],t,"".concat(n,"/").concat(r),i[r]))}o(jL,"FromTuple");function*GL(e,t,n,i){ut(i)||(yield Z(R.Undefined,e,n,i))}o(GL,"FromUndefined");function*HL(e,t,n,i){if(pe(e,t,i))return;let r=e.anyOf.map(s=>new Gn(Dt(s,t,n,i)));yield Z(R.Union,e,n,i,r)}o(HL,"FromUnion");function*WL(e,t,n,i){if(!Uo(i))return yield Z(R.Uint8Array,e,n,i);xe(e.maxByteLength)&&!(i.length<=e.maxByteLength)&&(yield Z(R.Uint8ArrayMaxByteLength,e,n,i)),xe(e.minByteLength)&&!(i.length>=e.minByteLength)&&(yield Z(R.Uint8ArrayMinByteLength,e,n,i))}o(WL,"FromUint8Array");function*ZL(e,t,n,i){}o(ZL,"FromUnknown");function*XL(e,t,n,i){Le.IsVoidLike(i)||(yield Z(R.Void,e,n,i))}o(XL,"FromVoid");function*qL(e,t,n,i){Et.Get(e[P])(e,i)||(yield Z(R.Kind,e,n,i))}o(qL,"FromKind");function*Dt(e,t,n,i){let r=xe(e.$id)?[...t,e]:t,s=e;switch(s[P]){case"Any":return yield*k(xL(s,r,n,i));case"Array":return yield*k(vL(s,r,n,i));case"AsyncIterator":return yield*k(_L(s,r,n,i));case"BigInt":return yield*k(bL(s,r,n,i));case"Boolean":return yield*k(SL(s,r,n,i));case"Constructor":return yield*k(IL(s,r,n,i));case"Date":return yield*k(wL(s,r,n,i));case"Function":return yield*k(ML(s,r,n,i));case"Integer":return yield*k(EL(s,r,n,i));case"Intersect":return yield*k(TL(s,r,n,i));case"Iterator":return yield*k(AL(s,r,n,i));case"Literal":return yield*k(PL(s,r,n,i));case"Never":return yield*k(RL(s,r,n,i));case"Not":return yield*k(CL(s,r,n,i));case"Null":return yield*k(OL(s,r,n,i));case"Number":return yield*k(UL(s,r,n,i));case"Object":return yield*k(FL(s,r,n,i));case"Promise":return yield*k(NL(s,r,n,i));case"Record":return yield*k(kL(s,r,n,i));case"Ref":return yield*k(DL(s,r,n,i));case"RegExp":return yield*k(LL(s,r,n,i));case"String":return yield*k($L(s,r,n,i));case"Symbol":return yield*k(zL(s,r,n,i));case"TemplateLiteral":return yield*k(BL(s,r,n,i));case"This":return yield*k(VL(s,r,n,i));case"Tuple":return yield*k(jL(s,r,n,i));case"Undefined":return yield*k(GL(s,r,n,i));case"Union":return yield*k(HL(s,r,n,i));case"Uint8Array":return yield*k(WL(s,r,n,i));case"Unknown":return yield*k(ZL(s,r,n,i));case"Void":return yield*k(XL(s,r,n,i));default:if(!Et.Has(s[P]))throw new Bx(e);return yield*k(qL(s,r,n,i))}}o(Dt,"Visit");function Sr(...e){let t=e.length===3?Dt(e[0],e[1],"",e[2]):Dt(e[0],[],"",e[1]);return new Gn(t)}o(Sr,"Errors");f();f();var KL=function(e,t,n,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,n):r?r.value=n:t.set(e,n),n},TI=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},Gx,dl,AI,Wx=class Wx extends re{constructor(t){let n=t.First();super(n===void 0?"Invalid Value":n.message),Gx.add(this),dl.set(this,void 0),KL(this,dl,t,"f"),this.error=n}Errors(){return new Gn(TI(this,Gx,"m",AI).call(this))}};o(Wx,"AssertError");var Hx=Wx;dl=new WeakMap,Gx=new WeakSet,AI=o(function*(){this.error&&(yield this.error),yield*k(TI(this,dl,"f"))},"_AssertError_Iterator");function EI(e,t,n){if(!pe(e,t,n))throw new Hx(Sr(e,t,n))}o(EI,"AssertValue");function pl(...e){return e.length===3?EI(e[0],e[1],e[2]):EI(e[0],[],e[1])}o(pl,"Assert");f();f();f();function YL(e){let t={};for(let n of Object.getOwnPropertyNames(e))t[n]=Pe(e[n]);for(let n of Object.getOwnPropertySymbols(e))t[n]=Pe(e[n]);return t}o(YL,"FromObject");function JL(e){return e.map(t=>Pe(t))}o(JL,"FromArray");function QL(e){return e.slice()}o(QL,"FromTypedArray");function e$(e){return new Map(Pe([...e.entries()]))}o(e$,"FromMap");function t$(e){return new Set(Pe([...e.entries()]))}o(t$,"FromSet");function n$(e){return new Date(e.toISOString())}o(n$,"FromDate");function Pe(e){if(ae(e))return JL(e);if(rn(e))return n$(e);if(kn(e))return QL(e);if(f0(e))return e$(e);if(d0(e))return t$(e);if(fe(e))return YL(e);if(Ft(e))return e;throw new Error("ValueClone: Unable to clone value")}o(Pe,"Clone");var Zx=class Zx extends re{constructor(t,n){super(n),this.schema=t}};o(Zx,"ValueCreateError");var En=Zx;function Re(e){return bi(e)?e():Pe(e)}o(Re,"FromDefault");function r$(e,t){return ie(e,"default")?Re(e.default):{}}o(r$,"FromAny");function i$(e,t){if(e.uniqueItems===!0&&!ie(e,"default"))throw new En(e,"Array with the uniqueItems constraint requires a default value");if("contains"in e&&!ie(e,"default"))throw new En(e,"Array with the contains constraint requires a default value");return"default"in e?Re(e.default):e.minItems!==void 0?Array.from({length:e.minItems}).map(n=>Tn(e.items,t)):[]}o(i$,"FromArray");function o$(e,t){return ie(e,"default")?Re(e.default):function(){return __(this,null,function*(){})}()}o(o$,"FromAsyncIterator");function s$(e,t){return ie(e,"default")?Re(e.default):BigInt(0)}o(s$,"FromBigInt");function a$(e,t){return ie(e,"default")?Re(e.default):!1}o(a$,"FromBoolean");function c$(e,t){if(ie(e,"default"))return Re(e.default);{let n=Tn(e.returns,t);return typeof n=="object"&&!Array.isArray(n)?class{constructor(){for(let[i,r]of Object.entries(n)){let s=this;s[i]=r}}}:class{}}}o(c$,"FromConstructor");function u$(e,t){return ie(e,"default")?Re(e.default):e.minimumTimestamp!==void 0?new Date(e.minimumTimestamp):new Date}o(u$,"FromDate");function l$(e,t){return ie(e,"default")?Re(e.default):()=>Tn(e.returns,t)}o(l$,"FromFunction");function f$(e,t){return ie(e,"default")?Re(e.default):e.minimum!==void 0?e.minimum:0}o(f$,"FromInteger");function d$(e,t){if(ie(e,"default"))return Re(e.default);{let n=e.allOf.reduce((i,r)=>{let s=Tn(r,t);return typeof s=="object"?x(x({},i),s):s},{});if(!pe(e,t,n))throw new En(e,"Intersect produced invalid value. Consider using a default value.");return n}}o(d$,"FromIntersect");function p$(e,t){return ie(e,"default")?Re(e.default):function*(){}()}o(p$,"FromIterator");function h$(e,t){return ie(e,"default")?Re(e.default):e.const}o(h$,"FromLiteral");function m$(e,t){if(ie(e,"default"))return Re(e.default);throw new En(e,"Never types cannot be created. Consider using a default value.")}o(m$,"FromNever");function g$(e,t){if(ie(e,"default"))return Re(e.default);throw new En(e,"Not types must have a default value")}o(g$,"FromNot");function y$(e,t){return ie(e,"default")?Re(e.default):null}o(y$,"FromNull");function x$(e,t){return ie(e,"default")?Re(e.default):e.minimum!==void 0?e.minimum:0}o(x$,"FromNumber");function v$(e,t){if(ie(e,"default"))return Re(e.default);{let n=new Set(e.required),i={};for(let[r,s]of Object.entries(e.properties))n.has(r)&&(i[r]=Tn(s,t));return i}}o(v$,"FromObject");function _$(e,t){return ie(e,"default")?Re(e.default):Promise.resolve(Tn(e.item,t))}o(_$,"FromPromise");function b$(e,t){let[n,i]=Object.entries(e.patternProperties)[0];if(ie(e,"default"))return Re(e.default);if(n===Xr||n===Zr)return{};{let r=n.slice(1,n.length-1).split("|"),s={};for(let a of r)s[a]=Tn(i,t);return s}}o(b$,"FromRecord");function S$(e,t){return ie(e,"default")?Re(e.default):Tn(Ae(e,t),t)}o(S$,"FromRef");function I$(e,t){if(ie(e,"default"))return Re(e.default);throw new En(e,"RegExp types cannot be created. Consider using a default value.")}o(I$,"FromRegExp");function w$(e,t){if(e.pattern!==void 0){if(ie(e,"default"))return Re(e.default);throw new En(e,"String types with patterns must specify a default value")}else if(e.format!==void 0){if(ie(e,"default"))return Re(e.default);throw new En(e,"String types with formats must specify a default value")}else return ie(e,"default")?Re(e.default):e.minLength!==void 0?Array.from({length:e.minLength}).map(()=>" ").join(""):""}o(w$,"FromString");function M$(e,t){return ie(e,"default")?Re(e.default):"value"in e?Symbol.for(e.value):Symbol()}o(M$,"FromSymbol");function E$(e,t){if(ie(e,"default"))return Re(e.default);if(!$u(e))throw new En(e,"Can only create template literals that produce a finite variants. Consider using a default value.");return zo(e)[0]}o(E$,"FromTemplateLiteral");function T$(e,t){if(PI++>N$)throw new En(e,"Cannot create recursive type as it appears possibly infinite. Consider using a default.");return ie(e,"default")?Re(e.default):Tn(Ae(e,t),t)}o(T$,"FromThis");function A$(e,t){return ie(e,"default")?Re(e.default):e.items===void 0?[]:Array.from({length:e.minItems}).map((n,i)=>Tn(e.items[i],t))}o(A$,"FromTuple");function P$(e,t){if(ie(e,"default"))return Re(e.default)}o(P$,"FromUndefined");function R$(e,t){if(ie(e,"default"))return Re(e.default);if(e.anyOf.length===0)throw new Error("ValueCreate.Union: Cannot create Union with zero variants");return Tn(e.anyOf[0],t)}o(R$,"FromUnion");function C$(e,t){return ie(e,"default")?Re(e.default):e.minByteLength!==void 0?new Uint8Array(e.minByteLength):new Uint8Array(0)}o(C$,"FromUint8Array");function O$(e,t){return ie(e,"default")?Re(e.default):{}}o(O$,"FromUnknown");function U$(e,t){if(ie(e,"default"))return Re(e.default)}o(U$,"FromVoid");function F$(e,t){if(ie(e,"default"))return Re(e.default);throw new Error("User defined types must specify a default value")}o(F$,"FromKind");function Tn(e,t){let n=jn(e,t),i=e;switch(i[P]){case"Any":return r$(i,n);case"Array":return i$(i,n);case"AsyncIterator":return o$(i,n);case"BigInt":return s$(i,n);case"Boolean":return a$(i,n);case"Constructor":return c$(i,n);case"Date":return u$(i,n);case"Function":return l$(i,n);case"Integer":return f$(i,n);case"Intersect":return d$(i,n);case"Iterator":return p$(i,n);case"Literal":return h$(i,n);case"Never":return m$(i,n);case"Not":return g$(i,n);case"Null":return y$(i,n);case"Number":return x$(i,n);case"Object":return v$(i,n);case"Promise":return _$(i,n);case"Record":return b$(i,n);case"Ref":return S$(i,n);case"RegExp":return I$(i,n);case"String":return w$(i,n);case"Symbol":return M$(i,n);case"TemplateLiteral":return E$(i,n);case"This":return T$(i,n);case"Tuple":return A$(i,n);case"Undefined":return P$(i,n);case"Union":return R$(i,n);case"Uint8Array":return C$(i,n);case"Unknown":return O$(i,n);case"Void":return U$(i,n);default:if(!Et.Has(i[P]))throw new En(i,"Unknown type");return F$(i,n)}}o(Tn,"Visit");var N$=512,PI=0;function Hn(...e){return PI=0,e.length===2?Tn(e[0],e[1]):Tn(e[0],[])}o(Hn,"Create");var qx=class qx extends re{constructor(t,n){super(n),this.schema=t}};o(qx,"ValueCastError");var hl=qx;function k$(e,t,n){if(e[P]==="Object"&&typeof n=="object"&&!Vr(n)){let i=e,r=Object.getOwnPropertyNames(n),s=Object.entries(i.properties),[a,u]=[1/s.length,s.length];return s.reduce((l,[c,d])=>{let h=d[P]==="Literal"&&d.const===n[c]?u:0,m=pe(d,t,n[c])?a:0,y=r.includes(c)?a:0;return l+(h+m+y)},0)}else return pe(e,t,n)?1:0}o(k$,"ScoreUnion");function D$(e,t,n){let i=e.anyOf.map(a=>Ae(a,t)),[r,s]=[i[0],0];for(let a of i){let u=k$(a,t,n);u>s&&(r=a,s=u)}return r}o(D$,"SelectUnion");function L$(e,t,n){if("default"in e)return typeof n=="function"?e.default:Pe(e.default);{let i=D$(e,t,n);return Xx(i,t,n)}}o(L$,"CastUnion");function $$(e,t,n){return pe(e,t,n)?Pe(n):Hn(e,t)}o($$,"DefaultClone");function z$(e,t,n){return pe(e,t,n)?n:Hn(e,t)}o(z$,"Default");function B$(e,t,n){if(pe(e,t,n))return Pe(n);let i=ae(n)?Pe(n):Hn(e,t),r=ee(e.minItems)&&i.length<e.minItems?[...i,...Array.from({length:e.minItems-i.length},()=>null)]:i,a=(ee(e.maxItems)&&r.length>e.maxItems?r.slice(0,e.maxItems):r).map(l=>Ir(e.items,t,l));if(e.uniqueItems!==!0)return a;let u=[...new Set(a)];if(!pe(e,t,u))throw new hl(e,"Array cast produced invalid data due to uniqueItems constraint");return u}o(B$,"FromArray");function V$(e,t,n){if(pe(e,t,n))return Hn(e,t);let i=new Set(e.returns.required||[]),r=o(function(){},"result");for(let[s,a]of Object.entries(e.returns.properties))!i.has(s)&&n.prototype[s]===void 0||(r.prototype[s]=Ir(a,t,n.prototype[s]));return r}o(V$,"FromConstructor");function j$(e,t,n){let i=Hn(e,t),r=fe(i)&&fe(n)?x(x({},i),n):n;return pe(e,t,r)?r:Hn(e,t)}o(j$,"FromIntersect");function G$(e,t,n){throw new hl(e,"Never types cannot be cast")}o(G$,"FromNever");function H$(e,t,n){if(pe(e,t,n))return n;if(n===null||typeof n!="object")return Hn(e,t);let i=new Set(e.required||[]),r={};for(let[s,a]of Object.entries(e.properties))!i.has(s)&&n[s]===void 0||(r[s]=Ir(a,t,n[s]));if(typeof e.additionalProperties=="object"){let s=Object.getOwnPropertyNames(e.properties);for(let a of Object.getOwnPropertyNames(n))s.includes(a)||(r[a]=Ir(e.additionalProperties,t,n[a]))}return r}o(H$,"FromObject");function W$(e,t,n){if(pe(e,t,n))return Pe(n);if(n===null||typeof n!="object"||Array.isArray(n)||n instanceof Date)return Hn(e,t);let i=Object.getOwnPropertyNames(e.patternProperties)[0],r=e.patternProperties[i],s={};for(let[a,u]of Object.entries(n))s[a]=Ir(r,t,u);return s}o(W$,"FromRecord");function Z$(e,t,n){return Ir(Ae(e,t),t,n)}o(Z$,"FromRef");function X$(e,t,n){return Ir(Ae(e,t),t,n)}o(X$,"FromThis");function q$(e,t,n){return pe(e,t,n)?Pe(n):ae(n)?e.items===void 0?[]:e.items.map((i,r)=>Ir(i,t,n[r])):Hn(e,t)}o(q$,"FromTuple");function K$(e,t,n){return pe(e,t,n)?Pe(n):L$(e,t,n)}o(K$,"FromUnion");function Ir(e,t,n){let i=Se(e.$id)?[...t,e]:t,r=e;switch(e[P]){case"Array":return B$(r,i,n);case"Constructor":return V$(r,i,n);case"Intersect":return j$(r,i,n);case"Never":return G$(r,i,n);case"Object":return H$(r,i,n);case"Record":return W$(r,i,n);case"Ref":return Z$(r,i,n);case"This":return X$(r,i,n);case"Tuple":return q$(r,i,n);case"Union":return K$(r,i,n);case"Date":case"Symbol":case"Uint8Array":return $$(e,t,n);default:return z$(r,i,n)}}o(Ir,"Visit");function Xx(...e){return e.length===3?Ir(e[0],e[1],e[2]):Ir(e[0],[],e[1])}o(Xx,"Cast");f();function Y$(e){return Ii(e)&&e[P]!=="Unsafe"}o(Y$,"IsCheckable");function J$(e,t,n){return ae(n)?n.map(i=>An(e.items,t,i)):n}o(J$,"FromArray");function Q$(e,t,n){let i=e.unevaluatedProperties,s=e.allOf.map(u=>An(u,t,Pe(n))).reduce((u,l)=>fe(l)?x(x({},u),l):l,{});if(!fe(n)||!fe(s)||!Ii(i))return s;let a=Pt(e);for(let u of Object.getOwnPropertyNames(n))a.includes(u)||pe(i,t,n[u])&&(s[u]=An(i,t,n[u]));return s}o(Q$,"FromIntersect");function e2(e,t,n){if(!fe(n)||ae(n))return n;let i=e.additionalProperties;for(let r of Object.getOwnPropertyNames(n)){if(ie(e.properties,r)){n[r]=An(e.properties[r],t,n[r]);continue}if(Ii(i)&&pe(i,t,n[r])){n[r]=An(i,t,n[r]);continue}delete n[r]}return n}o(e2,"FromObject");function t2(e,t,n){if(!fe(n))return n;let i=e.additionalProperties,r=Object.getOwnPropertyNames(n),[s,a]=Object.entries(e.patternProperties)[0],u=new RegExp(s);for(let l of r){if(u.test(l)){n[l]=An(a,t,n[l]);continue}if(Ii(i)&&pe(i,t,n[l])){n[l]=An(i,t,n[l]);continue}delete n[l]}return n}o(t2,"FromRecord");function n2(e,t,n){return An(Ae(e,t),t,n)}o(n2,"FromRef");function r2(e,t,n){return An(Ae(e,t),t,n)}o(r2,"FromThis");function i2(e,t,n){if(!ae(n))return n;if(ut(e.items))return[];let i=Math.min(n.length,e.items.length);for(let r=0;r<i;r++)n[r]=An(e.items[r],t,n[r]);return n.length>i?n.slice(0,i):n}o(i2,"FromTuple");function o2(e,t,n){for(let i of e.anyOf)if(Y$(i)&&pe(i,t,n))return An(i,t,n);return n}o(o2,"FromUnion");function An(e,t,n){let i=Se(e.$id)?[...t,e]:t,r=e;switch(r[P]){case"Array":return J$(r,i,n);case"Intersect":return Q$(r,i,n);case"Object":return e2(r,i,n);case"Record":return t2(r,i,n);case"Ref":return n2(r,i,n);case"This":return r2(r,i,n);case"Tuple":return i2(r,i,n);case"Union":return o2(r,i,n);default:return n}}o(An,"Visit");function ml(...e){return e.length===3?An(e[0],e[1],e[2]):An(e[0],[],e[1])}o(ml,"Clean");f();function gl(e){return Se(e)&&!isNaN(e)&&!isNaN(parseFloat(e))}o(gl,"IsStringNumeric");function s2(e){return Ut(e)||yr(e)||ee(e)}o(s2,"IsValueToString");function Ga(e){return e===!0||ee(e)&&e===1||Ut(e)&&e===BigInt("1")||Se(e)&&(e.toLowerCase()==="true"||e==="1")}o(Ga,"IsValueTrue");function Ha(e){return e===!1||ee(e)&&(e===0||Object.is(e,-0))||Ut(e)&&e===BigInt("0")||Se(e)&&(e.toLowerCase()==="false"||e==="0"||e==="-0")}o(Ha,"IsValueFalse");function a2(e){return Se(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(a2,"IsTimeStringWithTimeZone");function c2(e){return Se(e)&&/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(c2,"IsTimeStringWithoutTimeZone");function u2(e){return Se(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i.test(e)}o(u2,"IsDateTimeStringWithTimeZone");function l2(e){return Se(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)?$/i.test(e)}o(l2,"IsDateTimeStringWithoutTimeZone");function f2(e){return Se(e)&&/^\d\d\d\d-[0-1]\d-[0-3]\d$/i.test(e)}o(f2,"IsDateString");function d2(e,t){let n=CI(e);return n===t?n:e}o(d2,"TryConvertLiteralString");function p2(e,t){let n=OI(e);return n===t?n:e}o(p2,"TryConvertLiteralNumber");function h2(e,t){let n=RI(e);return n===t?n:e}o(h2,"TryConvertLiteralBoolean");function m2(e,t){return Se(e.const)?d2(t,e.const):ee(e.const)?p2(t,e.const):yr(e.const)?h2(t,e.const):t}o(m2,"TryConvertLiteral");function RI(e){return Ga(e)?!0:Ha(e)?!1:e}o(RI,"TryConvertBoolean");function g2(e){let t=o(n=>n.split(".")[0],"truncateInteger");return gl(e)?BigInt(t(e)):ee(e)?BigInt(Math.trunc(e)):Ha(e)?BigInt(0):Ga(e)?BigInt(1):e}o(g2,"TryConvertBigInt");function CI(e){return s2(e)?e.toString():jr(e)&&e.description!==void 0?e.description.toString():e}o(CI,"TryConvertString");function OI(e){return gl(e)?parseFloat(e):Ga(e)?1:Ha(e)?0:e}o(OI,"TryConvertNumber");function y2(e){return gl(e)?parseInt(e):ee(e)?e|0:Ga(e)?1:Ha(e)?0:e}o(y2,"TryConvertInteger");function x2(e){return Se(e)&&e.toLowerCase()==="null"?null:e}o(x2,"TryConvertNull");function v2(e){return Se(e)&&e==="undefined"?void 0:e}o(v2,"TryConvertUndefined");function _2(e){return rn(e)?e:ee(e)?new Date(e):Ga(e)?new Date(1):Ha(e)?new Date(0):gl(e)?new Date(parseInt(e)):c2(e)?new Date("1970-01-01T".concat(e,".000Z")):a2(e)?new Date("1970-01-01T".concat(e)):l2(e)?new Date("".concat(e,".000Z")):u2(e)?new Date(e):f2(e)?new Date("".concat(e,"T00:00:00.000Z")):e}o(_2,"TryConvertDate");function b2(e,t,n){return(ae(n)?n:[n]).map(r=>wr(e.items,t,r))}o(b2,"FromArray");function S2(e,t,n){return g2(n)}o(S2,"FromBigInt");function I2(e,t,n){return RI(n)}o(I2,"FromBoolean");function w2(e,t,n){return _2(n)}o(w2,"FromDate");function M2(e,t,n){return y2(n)}o(M2,"FromInteger");function E2(e,t,n){return e.allOf.reduce((i,r)=>wr(r,t,i),n)}o(E2,"FromIntersect");function T2(e,t,n){return m2(e,n)}o(T2,"FromLiteral");function A2(e,t,n){return x2(n)}o(A2,"FromNull");function P2(e,t,n){return OI(n)}o(P2,"FromNumber");function R2(e,t,n){if(!fe(n))return n;for(let i of Object.getOwnPropertyNames(e.properties))ie(n,i)&&(n[i]=wr(e.properties[i],t,n[i]));return n}o(R2,"FromObject");function C2(e,t,n){if(!fe(n))return n;let r=Object.getOwnPropertyNames(e.patternProperties)[0],s=e.patternProperties[r];for(let[a,u]of Object.entries(n))n[a]=wr(s,t,u);return n}o(C2,"FromRecord");function O2(e,t,n){return wr(Ae(e,t),t,n)}o(O2,"FromRef");function U2(e,t,n){return CI(n)}o(U2,"FromString");function F2(e,t,n){return Se(n)||ee(n)?Symbol(n):n}o(F2,"FromSymbol");function N2(e,t,n){return wr(Ae(e,t),t,n)}o(N2,"FromThis");function k2(e,t,n){return ae(n)&&!ut(e.items)?n.map((r,s)=>s<e.items.length?wr(e.items[s],t,r):r):n}o(k2,"FromTuple");function D2(e,t,n){return v2(n)}o(D2,"FromUndefined");function L2(e,t,n){for(let i of e.anyOf){let r=wr(i,t,Pe(n));if(pe(i,t,r))return r}return n}o(L2,"FromUnion");function wr(e,t,n){let i=jn(e,t),r=e;switch(e[P]){case"Array":return b2(r,i,n);case"BigInt":return S2(r,i,n);case"Boolean":return I2(r,i,n);case"Date":return w2(r,i,n);case"Integer":return M2(r,i,n);case"Intersect":return E2(r,i,n);case"Literal":return T2(r,i,n);case"Null":return A2(r,i,n);case"Number":return P2(r,i,n);case"Object":return R2(r,i,n);case"Record":return C2(r,i,n);case"Ref":return O2(r,i,n);case"String":return U2(r,i,n);case"Symbol":return F2(r,i,n);case"This":return N2(r,i,n);case"Tuple":return k2(r,i,n);case"Undefined":return D2(r,i,n);case"Union":return L2(r,i,n);default:return n}}o(wr,"Visit");function yl(...e){return e.length===3?wr(e[0],e[1],e[2]):wr(e[0],[],e[1])}o(yl,"Convert");f();f();var Kx=class Kx extends re{constructor(t,n,i){super("Unable to decode value as it does not match the expected schema"),this.schema=t,this.value=n,this.error=i}};o(Kx,"TransformDecodeCheckError");var ns=Kx,Yx=class Yx extends re{constructor(t,n,i,r){super(r instanceof Error?r.message:"Unknown error"),this.schema=t,this.path=n,this.value=i,this.error=r}};o(Yx,"TransformDecodeError");var Yi=Yx;function lt(e,t,n){try{return et(e)?e[ot].Decode(n):n}catch(i){throw new Yi(e,t,n,i)}}o(lt,"Default");function $2(e,t,n,i){return ae(i)?lt(e,n,i.map((r,s)=>Mr(e.items,t,"".concat(n,"/").concat(s),r))):lt(e,n,i)}o($2,"FromArray");function z2(e,t,n,i){if(!fe(i)||Ft(i))return lt(e,n,i);let r=Ei(e),s=r.map(d=>d[0]),a=x({},i);for(let[d,h]of r)d in a&&(a[d]=Mr(h,t,"".concat(n,"/").concat(d),a[d]));if(!et(e.unevaluatedProperties))return lt(e,n,a);let u=Object.getOwnPropertyNames(a),l=e.unevaluatedProperties,c=x({},a);for(let d of u)s.includes(d)||(c[d]=lt(l,"".concat(n,"/").concat(d),c[d]));return lt(e,n,c)}o(z2,"FromIntersect");function B2(e,t,n,i){return lt(e,n,Mr(e.not,t,n,i))}o(B2,"FromNot");function V2(e,t,n,i){if(!fe(i))return lt(e,n,i);let r=Pt(e),s=x({},i);for(let c of r)ie(s,c)&&(ut(s[c])&&(!No(e.properties[c])||Le.IsExactOptionalProperty(s,c))||(s[c]=Mr(e.properties[c],t,"".concat(n,"/").concat(c),s[c])));if(!Ie(e.additionalProperties))return lt(e,n,s);let a=Object.getOwnPropertyNames(s),u=e.additionalProperties,l=x({},s);for(let c of a)r.includes(c)||(l[c]=lt(u,"".concat(n,"/").concat(c),l[c]));return lt(e,n,l)}o(V2,"FromObject");function j2(e,t,n,i){if(!fe(i))return lt(e,n,i);let r=Object.getOwnPropertyNames(e.patternProperties)[0],s=new RegExp(r),a=x({},i);for(let d of Object.getOwnPropertyNames(i))s.test(d)&&(a[d]=Mr(e.patternProperties[r],t,"".concat(n,"/").concat(d),a[d]));if(!Ie(e.additionalProperties))return lt(e,n,a);let u=Object.getOwnPropertyNames(a),l=e.additionalProperties,c=x({},a);for(let d of u)s.test(d)||(c[d]=lt(l,"".concat(n,"/").concat(d),c[d]));return lt(e,n,c)}o(j2,"FromRecord");function G2(e,t,n,i){let r=Ae(e,t);return lt(e,n,Mr(r,t,n,i))}o(G2,"FromRef");function H2(e,t,n,i){let r=Ae(e,t);return lt(e,n,Mr(r,t,n,i))}o(H2,"FromThis");function W2(e,t,n,i){return ae(i)&&ae(e.items)?lt(e,n,e.items.map((r,s)=>Mr(r,t,"".concat(n,"/").concat(s),i[s]))):lt(e,n,i)}o(W2,"FromTuple");function Z2(e,t,n,i){for(let r of e.anyOf){if(!pe(r,t,i))continue;let s=Mr(r,t,n,i);return lt(e,n,s)}return lt(e,n,i)}o(Z2,"FromUnion");function Mr(e,t,n,i){let r=jn(e,t),s=e;switch(e[P]){case"Array":return $2(s,r,n,i);case"Intersect":return z2(s,r,n,i);case"Not":return B2(s,r,n,i);case"Object":return V2(s,r,n,i);case"Record":return j2(s,r,n,i);case"Ref":return G2(s,r,n,i);case"Symbol":return lt(s,n,i);case"This":return H2(s,r,n,i);case"Tuple":return W2(s,r,n,i);case"Union":return Z2(s,r,n,i);default:return lt(s,n,i)}}o(Mr,"Visit");function rs(e,t,n){return Mr(e,t,"",n)}o(rs,"TransformDecode");f();var Jx=class Jx extends re{constructor(t,n,i){super("The encoded value does not match the expected schema"),this.schema=t,this.value=n,this.error=i}};o(Jx,"TransformEncodeCheckError");var is=Jx,Qx=class Qx extends re{constructor(t,n,i,r){super("".concat(r instanceof Error?r.message:"Unknown error")),this.schema=t,this.path=n,this.value=i,this.error=r}};o(Qx,"TransformEncodeError");var Ji=Qx;function Yt(e,t,n){try{return et(e)?e[ot].Encode(n):n}catch(i){throw new Ji(e,t,n,i)}}o(Yt,"Default");function X2(e,t,n,i){let r=Yt(e,n,i);return ae(r)?r.map((s,a)=>Er(e.items,t,"".concat(n,"/").concat(a),s)):r}o(X2,"FromArray");function q2(e,t,n,i){let r=Yt(e,n,i);if(!fe(i)||Ft(i))return r;let s=Ei(e),a=s.map(h=>h[0]),u=x({},r);for(let[h,m]of s)h in u&&(u[h]=Er(m,t,"".concat(n,"/").concat(h),u[h]));if(!et(e.unevaluatedProperties))return u;let l=Object.getOwnPropertyNames(u),c=e.unevaluatedProperties,d=x({},u);for(let h of l)a.includes(h)||(d[h]=Yt(c,"".concat(n,"/").concat(h),d[h]));return d}o(q2,"FromIntersect");function K2(e,t,n,i){return Yt(e.not,n,Yt(e,n,i))}o(K2,"FromNot");function Y2(e,t,n,i){let r=Yt(e,n,i);if(!fe(r))return r;let s=Pt(e),a=x({},r);for(let d of s)ie(a,d)&&(ut(a[d])&&(!No(e.properties[d])||Le.IsExactOptionalProperty(a,d))||(a[d]=Er(e.properties[d],t,"".concat(n,"/").concat(d),a[d])));if(!Ie(e.additionalProperties))return a;let u=Object.getOwnPropertyNames(a),l=e.additionalProperties,c=x({},a);for(let d of u)s.includes(d)||(c[d]=Yt(l,"".concat(n,"/").concat(d),c[d]));return c}o(Y2,"FromObject");function J2(e,t,n,i){let r=Yt(e,n,i);if(!fe(i))return r;let s=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(s),u=x({},r);for(let h of Object.getOwnPropertyNames(i))a.test(h)&&(u[h]=Er(e.patternProperties[s],t,"".concat(n,"/").concat(h),u[h]));if(!Ie(e.additionalProperties))return u;let l=Object.getOwnPropertyNames(u),c=e.additionalProperties,d=x({},u);for(let h of l)a.test(h)||(d[h]=Yt(c,"".concat(n,"/").concat(h),d[h]));return d}o(J2,"FromRecord");function Q2(e,t,n,i){let r=Ae(e,t),s=Er(r,t,n,i);return Yt(e,n,s)}o(Q2,"FromRef");function ez(e,t,n,i){let r=Ae(e,t),s=Er(r,t,n,i);return Yt(e,n,s)}o(ez,"FromThis");function tz(e,t,n,i){let r=Yt(e,n,i);return ae(e.items)?e.items.map((s,a)=>Er(s,t,"".concat(n,"/").concat(a),r[a])):[]}o(tz,"FromTuple");function nz(e,t,n,i){for(let r of e.anyOf){if(!pe(r,t,i))continue;let s=Er(r,t,n,i);return Yt(e,n,s)}for(let r of e.anyOf){let s=Er(r,t,n,i);if(pe(e,t,s))return Yt(e,n,s)}return Yt(e,n,i)}o(nz,"FromUnion");function Er(e,t,n,i){let r=jn(e,t),s=e;switch(e[P]){case"Array":return X2(s,r,n,i);case"Intersect":return q2(s,r,n,i);case"Not":return K2(s,r,n,i);case"Object":return Y2(s,r,n,i);case"Record":return J2(s,r,n,i);case"Ref":return Q2(s,r,n,i);case"This":return ez(s,r,n,i);case"Tuple":return tz(s,r,n,i);case"Union":return nz(s,r,n,i);default:return Yt(s,n,i)}}o(Er,"Visit");function xl(e,t,n){return Er(e,t,"",n)}o(xl,"TransformEncode");f();function rz(e,t){return et(e)||Rt(e.items,t)}o(rz,"FromArray");function iz(e,t){return et(e)||Rt(e.items,t)}o(iz,"FromAsyncIterator");function oz(e,t){return et(e)||Rt(e.returns,t)||e.parameters.some(n=>Rt(n,t))}o(oz,"FromConstructor");function sz(e,t){return et(e)||Rt(e.returns,t)||e.parameters.some(n=>Rt(n,t))}o(sz,"FromFunction");function az(e,t){return et(e)||et(e.unevaluatedProperties)||e.allOf.some(n=>Rt(n,t))}o(az,"FromIntersect");function cz(e,t){return et(e)||Rt(e.items,t)}o(cz,"FromIterator");function uz(e,t){return et(e)||Rt(e.not,t)}o(uz,"FromNot");function lz(e,t){return et(e)||Object.values(e.properties).some(n=>Rt(n,t))||Ie(e.additionalProperties)&&Rt(e.additionalProperties,t)}o(lz,"FromObject");function fz(e,t){return et(e)||Rt(e.item,t)}o(fz,"FromPromise");function dz(e,t){let n=Object.getOwnPropertyNames(e.patternProperties)[0],i=e.patternProperties[n];return et(e)||Rt(i,t)||Ie(e.additionalProperties)&&et(e.additionalProperties)}o(dz,"FromRecord");function pz(e,t){return et(e)?!0:Rt(Ae(e,t),t)}o(pz,"FromRef");function hz(e,t){return et(e)?!0:Rt(Ae(e,t),t)}o(hz,"FromThis");function mz(e,t){return et(e)||!ut(e.items)&&e.items.some(n=>Rt(n,t))}o(mz,"FromTuple");function gz(e,t){return et(e)||e.anyOf.some(n=>Rt(n,t))}o(gz,"FromUnion");function Rt(e,t){let n=jn(e,t),i=e;if(e.$id&&ev.has(e.$id))return!1;switch(e.$id&&ev.add(e.$id),e[P]){case"Array":return rz(i,n);case"AsyncIterator":return iz(i,n);case"Constructor":return oz(i,n);case"Function":return sz(i,n);case"Intersect":return az(i,n);case"Iterator":return cz(i,n);case"Not":return uz(i,n);case"Object":return lz(i,n);case"Promise":return fz(i,n);case"Record":return dz(i,n);case"Ref":return pz(i,n);case"This":return hz(i,n);case"Tuple":return mz(i,n);case"Union":return gz(i,n);default:return et(e)}}o(Rt,"Visit");var ev=new Set;function Tr(e,t){return ev.clear(),Rt(e,t)}o(Tr,"HasTransform");function UI(...e){let[t,n,i]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]];if(!pe(t,n,i))throw new ns(t,i,Sr(t,n,i).First());return Tr(t,n)?rs(t,n,i):i}o(UI,"Decode");f();function ei(e,t){let n=ie(e,"default")?e.default:void 0,i=bi(n)?n():Pe(n);return ut(t)?i:fe(t)&&fe(i)?Object.assign(i,t):t}o(ei,"ValueOrDefault");function tv(e){return Ii(e)&&"default"in e}o(tv,"HasDefaultProperty");function yz(e,t,n){let i=ei(e,n);if(!ae(i))return i;for(let r=0;r<i.length;r++)i[r]=Pn(e.items,t,i[r]);return i}o(yz,"FromArray");function xz(e,t,n){return rn(n)?n:ei(e,n)}o(xz,"FromDate");function vz(e,t,n){let i=ei(e,n);return e.allOf.reduce((r,s)=>{let a=Pn(s,t,i);return fe(a)?x(x({},r),a):a},{})}o(vz,"FromIntersect");function _z(e,t,n){let i=ei(e,n);if(!fe(i))return i;let r=Object.getOwnPropertyNames(e.properties);for(let s of r){let a=Pn(e.properties[s],t,i[s]);ut(a)||(i[s]=Pn(e.properties[s],t,i[s]))}if(!tv(e.additionalProperties))return i;for(let s of Object.getOwnPropertyNames(i))r.includes(s)||(i[s]=Pn(e.additionalProperties,t,i[s]));return i}o(_z,"FromObject");function bz(e,t,n){let i=ei(e,n);if(!fe(i))return i;let r=e.additionalProperties,[s,a]=Object.entries(e.patternProperties)[0],u=new RegExp(s);for(let l of Object.getOwnPropertyNames(i))u.test(l)&&tv(a)&&(i[l]=Pn(a,t,i[l]));if(!tv(r))return i;for(let l of Object.getOwnPropertyNames(i))u.test(l)||(i[l]=Pn(r,t,i[l]));return i}o(bz,"FromRecord");function Sz(e,t,n){return Pn(Ae(e,t),t,ei(e,n))}o(Sz,"FromRef");function Iz(e,t,n){return Pn(Ae(e,t),t,n)}o(Iz,"FromThis");function wz(e,t,n){let i=ei(e,n);if(!ae(i)||ut(e.items))return i;let[r,s]=[e.items,Math.max(e.items.length,i.length)];for(let a=0;a<s;a++)a<r.length&&(i[a]=Pn(r[a],t,i[a]));return i}o(wz,"FromTuple");function Mz(e,t,n){let i=ei(e,n);for(let r of e.anyOf){let s=Pn(r,t,Pe(i));if(pe(r,t,s))return s}return i}o(Mz,"FromUnion");function Pn(e,t,n){let i=jn(e,t),r=e;switch(r[P]){case"Array":return yz(r,i,n);case"Date":return xz(r,i,n);case"Intersect":return vz(r,i,n);case"Object":return _z(r,i,n);case"Record":return bz(r,i,n);case"Ref":return Sz(r,i,n);case"This":return Iz(r,i,n);case"Tuple":return wz(r,i,n);case"Union":return Mz(r,i,n);default:return ei(r,n)}}o(Pn,"Visit");function vl(...e){return e.length===3?Pn(e[0],e[1],e[2]):Pn(e[0],[],e[1])}o(vl,"Default");f();f();var Wn={};un(Wn,{Delete:()=>Tz,Format:()=>Wa,Get:()=>Pz,Has:()=>Az,Set:()=>Ez,ValuePointerRootDeleteError:()=>bl,ValuePointerRootSetError:()=>_l});f();var nv=class nv extends re{constructor(t,n,i){super("Cannot set root value"),this.value=t,this.path=n,this.update=i}};o(nv,"ValuePointerRootSetError");var _l=nv,rv=class rv extends re{constructor(t,n){super("Cannot delete root value"),this.value=t,this.path=n}};o(rv,"ValuePointerRootDeleteError");var bl=rv;function FI(e){return e.indexOf("~")===-1?e:e.replace(/~1/g,"/").replace(/~0/g,"~")}o(FI,"Escape");function*Wa(e){if(e==="")return;let[t,n]=[0,0];for(let i=0;i<e.length;i++)e.charAt(i)==="/"?(i===0||(n=i,yield FI(e.slice(t,n))),t=i+1):n=i;yield FI(e.slice(t))}o(Wa,"Format");function Ez(e,t,n){if(t==="")throw new _l(e,t,n);let[i,r,s]=[null,e,""];for(let a of Wa(t))r[a]===void 0&&(r[a]={}),i=r,r=r[a],s=a;i[s]=n}o(Ez,"Set");function Tz(e,t){if(t==="")throw new bl(e,t);let[n,i,r]=[null,e,""];for(let s of Wa(t)){if(i[s]===void 0||i[s]===null)return;n=i,i=i[s],r=s}if(Array.isArray(n)){let s=parseInt(r);n.splice(s,1)}else delete n[r]}o(Tz,"Delete");function Az(e,t){if(t==="")return!0;let[n,i,r]=[null,e,""];for(let s of Wa(t)){if(i[s]===void 0)return!1;n=i,i=i[s],r=s}return Object.getOwnPropertyNames(n).includes(r)}o(Az,"Has");function Pz(e,t){if(t==="")return e;let n=e;for(let i of Wa(t)){if(n[i]===void 0)return;n=n[i]}return n}o(Pz,"Get");f();function Rz(e,t){if(!fe(t))return!1;let n=[...Object.keys(e),...Object.getOwnPropertySymbols(e)],i=[...Object.keys(t),...Object.getOwnPropertySymbols(t)];return n.length!==i.length?!1:n.every(r=>Qi(e[r],t[r]))}o(Rz,"ObjectType");function Cz(e,t){return rn(t)&&e.getTime()===t.getTime()}o(Cz,"DateType");function Oz(e,t){return!ae(t)||e.length!==t.length?!1:e.every((n,i)=>Qi(n,t[i]))}o(Oz,"ArrayType");function Uz(e,t){return!kn(t)||e.length!==t.length||Object.getPrototypeOf(e).constructor.name!==Object.getPrototypeOf(t).constructor.name?!1:e.every((n,i)=>Qi(n,t[i]))}o(Uz,"TypedArrayType");function Fz(e,t){return e===t}o(Fz,"ValueType");function Qi(e,t){if(rn(e))return Cz(e,t);if(kn(e))return Uz(e,t);if(ae(e))return Oz(e,t);if(fe(e))return Rz(e,t);if(Ft(e))return Fz(e,t);throw new Error("ValueEquals: Unable to compare value")}o(Qi,"Equal");var Nz=We({type:Ne("insert"),path:Ln(),value:Yr()}),kz=We({type:Ne("update"),path:Ln(),value:Yr()}),Dz=We({type:Ne("delete"),path:Ln()}),kI=Ve([Nz,kz,Dz]),iv=class iv extends re{constructor(t,n){super(n),this.value=t}};o(iv,"ValueDiffError");var Sl=iv;function Il(e,t){return{type:"update",path:e,value:t}}o(Il,"CreateUpdate");function DI(e,t){return{type:"insert",path:e,value:t}}o(DI,"CreateInsert");function LI(e){return{type:"delete",path:e}}o(LI,"CreateDelete");function NI(e){if(globalThis.Object.getOwnPropertySymbols(e).length>0)throw new Sl(e,"Cannot diff objects with symbols")}o(NI,"AssertDiffable");function*Lz(e,t,n){if(NI(t),NI(n),!Ry(n))return yield Il(e,n);let i=globalThis.Object.getOwnPropertyNames(t),r=globalThis.Object.getOwnPropertyNames(n);for(let s of r)ie(t,s)||(yield DI("".concat(e,"/").concat(s),n[s]));for(let s of i)ie(n,s)&&(Qi(t,n)||(yield*k(wl("".concat(e,"/").concat(s),t[s],n[s]))));for(let s of i)ie(n,s)||(yield LI("".concat(e,"/").concat(s)))}o(Lz,"ObjectType");function*$z(e,t,n){if(!ae(n))return yield Il(e,n);for(let i=0;i<Math.min(t.length,n.length);i++)yield*k(wl("".concat(e,"/").concat(i),t[i],n[i]));for(let i=0;i<n.length;i++)i<t.length||(yield DI("".concat(e,"/").concat(i),n[i]));for(let i=t.length-1;i>=0;i--)i<n.length||(yield LI("".concat(e,"/").concat(i)))}o($z,"ArrayType");function*zz(e,t,n){if(!kn(n)||t.length!==n.length||globalThis.Object.getPrototypeOf(t).constructor.name!==globalThis.Object.getPrototypeOf(n).constructor.name)return yield Il(e,n);for(let i=0;i<Math.min(t.length,n.length);i++)yield*k(wl("".concat(e,"/").concat(i),t[i],n[i]))}o(zz,"TypedArrayType");function*Bz(e,t,n){t!==n&&(yield Il(e,n))}o(Bz,"ValueType");function*wl(e,t,n){if(Ry(t))return yield*k(Lz(e,t,n));if(ae(t))return yield*k($z(e,t,n));if(kn(t))return yield*k(zz(e,t,n));if(Ft(t))return yield*k(Bz(e,t,n));throw new Sl(t,"Unable to diff value")}o(wl,"Visit");function $I(e,t){return[...wl("",e,t)]}o($I,"Diff");function Vz(e){return e.length>0&&e[0].path===""&&e[0].type==="update"}o(Vz,"IsRootUpdate");function jz(e){return e.length===0}o(jz,"IsIdentity");function zI(e,t){if(Vz(t))return Pe(t[0].value);if(jz(t))return Pe(e);let n=Pe(e);for(let i of t)switch(i.type){case"insert":{Wn.Set(n,i.path,i.value);break}case"update":{Wn.Set(n,i.path,i.value);break}case"delete":{Wn.Delete(n,i.path);break}}return n}o(zI,"Patch");f();function BI(...e){let[t,n,i]=e.length===3?[e[0],e[1],e[2]]:[e[0],[],e[1]],r=Tr(t,n)?xl(t,n,i):i;if(!pe(t,n,r))throw new is(t,r,Sr(t,n,r).First());return r}o(BI,"Encode");f();var sv=class sv extends re{constructor(t){super(t)}};o(sv,"ValueMutateError");var Ml=sv;function Gz(e,t,n,i){if(!fe(n))Wn.Set(e,t,Pe(i));else{let r=Object.getOwnPropertyNames(n),s=Object.getOwnPropertyNames(i);for(let a of r)s.includes(a)||delete n[a];for(let a of s)r.includes(a)||(n[a]=null);for(let a of s)ov(e,"".concat(t,"/").concat(a),n[a],i[a])}}o(Gz,"ObjectType");function Hz(e,t,n,i){if(!ae(n))Wn.Set(e,t,Pe(i));else{for(let r=0;r<i.length;r++)ov(e,"".concat(t,"/").concat(r),n[r],i[r]);n.splice(i.length)}}o(Hz,"ArrayType");function Wz(e,t,n,i){if(kn(n)&&n.length===i.length)for(let r=0;r<n.length;r++)n[r]=i[r];else Wn.Set(e,t,Pe(i))}o(Wz,"TypedArrayType");function Zz(e,t,n,i){n!==i&&Wn.Set(e,t,i)}o(Zz,"ValueType");function ov(e,t,n,i){if(ae(i))return Hz(e,t,n,i);if(kn(i))return Wz(e,t,n,i);if(fe(i))return Gz(e,t,n,i);if(Ft(i))return Zz(e,t,n,i)}o(ov,"Visit");function VI(e){return kn(e)||Ft(e)}o(VI,"IsNonMutableValue");function Xz(e,t){return fe(e)&&ae(t)||ae(e)&&fe(t)}o(Xz,"IsMismatchedValue");function jI(e,t){if(VI(e)||VI(t))throw new Ml("Only object and array types can be mutated at the root level");if(Xz(e,t))throw new Ml("Cannot assign due type mismatch of assignable values");ov(e,"",e,t)}o(jI,"Mutate");f();var qz=[(e,t,n)=>Pe(n),(e,t,n)=>vl(e,t,n),(e,t,n)=>ml(e,t,n),(e,t,n)=>yl(e,t,n),(e,t,n)=>(pl(e,t,n),n),(e,t,n)=>Tr(e,t)?rs(e,t,n):n];function GI(e,t,n){return qz.reduce((i,r)=>r(e,t,i),n)}o(GI,"ParseValue");function HI(...e){return e.length===3?GI(e[0],e[1],e[2]):GI(e[0],[],e[1])}o(HI,"Parse");f();var Zn={};un(Zn,{Assert:()=>pl,Cast:()=>Xx,Check:()=>pe,Clean:()=>ml,Clone:()=>Pe,Convert:()=>yl,Create:()=>Hn,Decode:()=>UI,Default:()=>vl,Diff:()=>$I,Edit:()=>kI,Encode:()=>BI,Equal:()=>Qi,Errors:()=>Sr,Hash:()=>Pi,Mutate:()=>jI,Parse:()=>HI,Patch:()=>zI,ValueErrorIterator:()=>Gn});f();f();var WI={},Kz=o(function(e,t,n,i,r){var s=new Worker(WI[t]||(WI[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(a){var u=a.data,l=u.$e$;if(l){var c=new Error(l[0]);c.code=l[1],c.stack=l[2],r(c,null)}else r(null,u)},s.postMessage(n,i),s},"wk"),Ze=Uint8Array,cn=Uint16Array,Ka=Int32Array,us=new Ze([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ls=new Ze([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Za=new Ze([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qI=o(function(e,t){for(var n=new cn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var r=new Ka(n[30]),i=1;i<30;++i)for(var s=n[i];s<n[i+1];++s)r[s]=s-n[i]<<5|i;return{b:n,r}},"freb"),KI=qI(us,2),dv=KI.b,Rl=KI.r;dv[28]=258,Rl[258]=28;var YI=qI(ls,0),JI=YI.b,cv=YI.r,Xa=new cn(32768);for(De=0;De<32768;++De)ti=(De&43690)>>1|(De&21845)<<1,ti=(ti&52428)>>2|(ti&13107)<<2,ti=(ti&61680)>>4|(ti&3855)<<4,Xa[De]=((ti&65280)>>8|(ti&255)<<8)>>1;var ti,De,qn=o(function(e,t,n){for(var i=e.length,r=0,s=new cn(t);r<i;++r)e[r]&&++s[e[r]-1];var a=new cn(t);for(r=1;r<t;++r)a[r]=a[r-1]+s[r-1]<<1;var u;if(n){u=new cn(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var c=r<<4|e[r],d=t-e[r],h=a[e[r]-1]++<<d,m=h|(1<<d)-1;h<=m;++h)u[Xa[h]>>l]=c}else for(u=new cn(i),r=0;r<i;++r)e[r]&&(u[r]=Xa[a[e[r]-1]++]>>15-e[r]);return u},"hMap"),ni=new Ze(288);for(De=0;De<144;++De)ni[De]=8;var De;for(De=144;De<256;++De)ni[De]=9;var De;for(De=256;De<280;++De)ni[De]=7;var De;for(De=280;De<288;++De)ni[De]=8;var De,as=new Ze(32);for(De=0;De<32;++De)as[De]=5;var De,QI=qn(ni,9,0),ew=qn(ni,9,1),tw=qn(as,5,0),nw=qn(as,5,1),Tl=o(function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},"max"),Xn=o(function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},"bits"),Al=o(function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},"bits16"),Ya=o(function(e){return(e+7)/8|0},"shft"),Ri=o(function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new Ze(e.subarray(t,n))},"slc"),Fl={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},rw=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ft=o(function(e,t,n){var i=new Error(t||rw[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,ft),!n)throw i;return i},"err"),iw=o(function(e,t,n,i){var r=e.length,s=i?i.length:0;if(!r||t.f&&!t.l)return n||new Ze(0);var a=!n,u=a||t.i!=2,l=t.i;a&&(n=new Ze(r*3));var c=o(function(E){var te=n.length;if(E>te){var q=new Ze(Math.max(te*2,E));q.set(n),n=q}},"cbuf"),d=t.f||0,h=t.p||0,m=t.b||0,y=t.l,v=t.d,I=t.m,T=t.n,U=r*8;do{if(!y){d=Xn(e,h,1);var D=Xn(e,h+1,3);if(h+=3,D)if(D==1)y=ew,v=nw,I=9,T=5;else if(D==2){var j=Xn(e,h,31)+257,N=Xn(e,h+10,15)+4,H=j+Xn(e,h+5,31)+1;h+=14;for(var G=new Ze(H),ce=new Ze(19),ue=0;ue<N;++ue)ce[Za[ue]]=Xn(e,h+ue*3,7);h+=N*3;for(var he=Tl(ce),Ge=(1<<he)-1,Oe=qn(ce,he,1),ue=0;ue<H;){var Ue=Oe[Xn(e,h,Ge)];h+=Ue&15;var w=Ue>>4;if(w<16)G[ue++]=w;else{var V=0,ne=0;for(w==16?(ne=3+Xn(e,h,3),h+=2,V=G[ue-1]):w==17?(ne=3+Xn(e,h,7),h+=3):w==18&&(ne=11+Xn(e,h,127),h+=7);ne--;)G[ue++]=V}}var le=G.subarray(0,j),oe=G.subarray(j);I=Tl(le),T=Tl(oe),y=qn(le,I,1),v=qn(oe,T,1)}else ft(1);else{var w=Ya(h)+4,S=e[w-4]|e[w-3]<<8,A=w+S;if(A>r){l&&ft(0);break}u&&c(m+S),n.set(e.subarray(w,A),m),t.b=m+=S,t.p=h=A*8,t.f=d;continue}if(h>U){l&&ft(0);break}}u&&c(m+131072);for(var Me=(1<<I)-1,pt=(1<<T)-1,Vt=h;;Vt=h){var V=y[Al(e,h)&Me],jt=V>>4;if(h+=V&15,h>U){l&&ft(0);break}if(V||ft(2),jt<256)n[m++]=jt;else if(jt==256){Vt=h,y=null;break}else{var At=jt-254;if(jt>264){var ue=jt-257,tt=us[ue];At=Xn(e,h,(1<<tt)-1)+dv[ue],h+=tt}var On=v[Al(e,h)&pt],Or=On>>4;On||ft(3),h+=On&15;var oe=JI[Or];if(Or>3){var tt=ls[Or];oe+=Al(e,h)&(1<<tt)-1,h+=tt}if(h>U){l&&ft(0);break}u&&c(m+131072);var ai=m+At;if(m<oe){var b=s-oe,X=Math.min(oe,ai);for(b+m<0&&ft(3);m<X;++m)n[m]=i[b+m]}for(;m<ai;++m)n[m]=n[m-oe]}}t.l=y,t.p=Vt,t.b=m,t.f=d,y&&(d=1,t.m=I,t.d=v,t.n=T)}while(!d);return m!=n.length&&a?Ri(n,0,m):n.subarray(0,m)},"inflt"),Ar=o(function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},"wbits"),os=o(function(e,t,n){n<<=t&7;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},"wbits16"),Pl=o(function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,s=n.slice();if(!r)return{t:hv,l:0};if(r==1){var a=new Ze(n[0].s+1);return a[n[0].s]=1,{t:a,l:1}}n.sort(function(A,j){return A.f-j.f}),n.push({s:-1,f:25001});var u=n[0],l=n[1],c=0,d=1,h=2;for(n[0]={s:-1,f:u.f+l.f,l:u,r:l};d!=r-1;)u=n[n[c].f<n[h].f?c++:h++],l=n[c!=d&&n[c].f<n[h].f?c++:h++],n[d++]={s:-1,f:u.f+l.f,l:u,r:l};for(var m=s[0].s,i=1;i<r;++i)s[i].s>m&&(m=s[i].s);var y=new cn(m+1),v=Cl(n[d-1],y,0);if(v>t){var i=0,I=0,T=v-t,U=1<<T;for(s.sort(function(j,N){return y[N.s]-y[j.s]||j.f-N.f});i<r;++i){var D=s[i].s;if(y[D]>t)I+=U-(1<<v-y[D]),y[D]=t;else break}for(I>>=T;I>0;){var w=s[i].s;y[w]<t?I-=1<<t-y[w]++-1:++i}for(;i>=0&&I;--i){var S=s[i].s;y[S]==t&&(--y[S],++I)}v=t}return{t:new Ze(y),l:v}},"hTree"),Cl=o(function(e,t,n){return e.s==-1?Math.max(Cl(e.l,t,n+1),Cl(e.r,t,n+1)):t[e.s]=n},"ln"),uv=o(function(e){for(var t=e.length;t&&!e[--t];);for(var n=new cn(++t),i=0,r=e[0],s=1,a=o(function(l){n[i++]=l},"w"),u=1;u<=t;++u)if(e[u]==r&&u!=t)++s;else{if(!r&&s>2){for(;s>138;s-=138)a(32754);s>2&&(a(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(a(r),--s;s>6;s-=6)a(8304);s>2&&(a(s-3<<5|8208),s=0)}for(;s--;)a(r);s=1,r=e[u]}return{c:n.subarray(0,i),n:t}},"lc"),ss=o(function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},"clen"),pv=o(function(e,t,n){var i=n.length,r=Ya(t+2);e[r]=i&255,e[r+1]=i>>8,e[r+2]=e[r]^255,e[r+3]=e[r+1]^255;for(var s=0;s<i;++s)e[r+s+4]=n[s];return(r+4+i)*8},"wfblk"),lv=o(function(e,t,n,i,r,s,a,u,l,c,d){Ar(t,d++,n),++r[256];for(var h=Pl(r,15),m=h.t,y=h.l,v=Pl(s,15),I=v.t,T=v.l,U=uv(m),D=U.c,w=U.n,S=uv(I),A=S.c,j=S.n,N=new cn(19),H=0;H<D.length;++H)++N[D[H]&31];for(var H=0;H<A.length;++H)++N[A[H]&31];for(var G=Pl(N,7),ce=G.t,ue=G.l,he=19;he>4&&!ce[Za[he-1]];--he);var Ge=c+5<<3,Oe=ss(r,ni)+ss(s,as)+a,Ue=ss(r,m)+ss(s,I)+a+14+3*he+ss(N,ce)+2*N[16]+3*N[17]+7*N[18];if(l>=0&&Ge<=Oe&&Ge<=Ue)return pv(t,d,e.subarray(l,l+c));var V,ne,le,oe;if(Ar(t,d,1+(Ue<Oe)),d+=2,Ue<Oe){V=qn(m,y,0),ne=m,le=qn(I,T,0),oe=I;var Me=qn(ce,ue,0);Ar(t,d,w-257),Ar(t,d+5,j-1),Ar(t,d+10,he-4),d+=14;for(var H=0;H<he;++H)Ar(t,d+3*H,ce[Za[H]]);d+=3*he;for(var pt=[D,A],Vt=0;Vt<2;++Vt)for(var jt=pt[Vt],H=0;H<jt.length;++H){var At=jt[H]&31;Ar(t,d,Me[At]),d+=ce[At],At>15&&(Ar(t,d,jt[H]>>5&127),d+=jt[H]>>12)}}else V=QI,ne=ni,le=tw,oe=as;for(var H=0;H<u;++H){var tt=i[H];if(tt>255){var At=tt>>18&31;os(t,d,V[At+257]),d+=ne[At+257],At>7&&(Ar(t,d,tt>>23&31),d+=us[At]);var On=tt&31;os(t,d,le[On]),d+=oe[On],On>3&&(os(t,d,tt>>5&8191),d+=ls[On])}else os(t,d,V[tt]),d+=ne[tt]}return os(t,d,V[256]),d+ne[256]},"wblk"),ow=new Ka([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),hv=new Ze(0),sw=o(function(e,t,n,i,r,s){var a=s.z||e.length,u=new Ze(i+a+5*(1+Math.ceil(a/7e3))+r),l=u.subarray(i,u.length-r),c=s.l,d=(s.r||0)&7;if(t){d&&(l[0]=s.r>>3);for(var h=ow[t-1],m=h>>13,y=h&8191,v=(1<<n)-1,I=s.p||new cn(32768),T=s.h||new cn(v+1),U=Math.ceil(n/3),D=2*U,w=o(function(Q){return(e[Q]^e[Q+1]<<U^e[Q+2]<<D)&v},"hsh"),S=new Ka(25e3),A=new cn(288),j=new cn(32),N=0,H=0,G=s.i||0,ce=0,ue=s.w||0,he=0;G+2<a;++G){var Ge=w(G),Oe=G&32767,Ue=T[Ge];if(I[Oe]=Ue,T[Ge]=Oe,ue<=G){var V=a-G;if((N>7e3||ce>24576)&&(V>423||!c)){d=lv(e,l,0,S,A,j,H,ce,he,G-he,d),ce=N=H=0,he=G;for(var ne=0;ne<286;++ne)A[ne]=0;for(var ne=0;ne<30;++ne)j[ne]=0}var le=2,oe=0,Me=y,pt=Oe-Ue&32767;if(V>2&&Ge==w(G-pt))for(var Vt=Math.min(m,V)-1,jt=Math.min(32767,G),At=Math.min(258,V);pt<=jt&&--Me&&Oe!=Ue;){if(e[G+le]==e[G+le-pt]){for(var tt=0;tt<At&&e[G+tt]==e[G+tt-pt];++tt);if(tt>le){if(le=tt,oe=pt,tt>Vt)break;for(var On=Math.min(pt,tt-2),Or=0,ne=0;ne<On;++ne){var ai=G-pt+ne&32767,b=I[ai],X=ai-b&32767;X>Or&&(Or=X,Ue=ai)}}}Oe=Ue,Ue=I[Oe],pt+=Oe-Ue&32767}if(oe){S[ce++]=268435456|Rl[le]<<18|cv[oe];var E=Rl[le]&31,te=cv[oe]&31;H+=us[E]+ls[te],++A[257+E],++j[te],ue=G+le,++N}else S[ce++]=e[G],++A[e[G]]}}for(G=Math.max(G,ue);G<a;++G)S[ce++]=e[G],++A[e[G]];d=lv(e,l,c,S,A,j,H,ce,he,G-he,d),c||(s.r=d&7|l[d/8|0]<<3,d-=7,s.h=T,s.p=I,s.i=G,s.w=ue)}else{for(var G=s.w||0;G<a+c;G+=65535){var q=G+65535;q>=a&&(l[d/8|0]=c,q=a),d=pv(l,d+1,e.subarray(G,q))}s.i=a}return Ri(u,0,i+Ya(d)+r)},"dflt"),Yz=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(n&1&&-306674912)^n>>>1;e[t]=n}return e}(),aw=o(function(){var e=-1;return{p:o(function(t){for(var n=e,i=0;i<t.length;++i)n=Yz[n&255^t[i]]^n>>>8;e=n},"p"),d:o(function(){return~e},"d")}},"crc");var cw=o(function(e,t,n,i,r){if(!r&&(r={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),a=new Ze(s.length+e.length);a.set(s),a.set(e,s.length),e=a,r.w=s.length}return sw(e,t.level==null?6:t.level,t.mem==null?r.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,n,i,r)},"dopt"),Nl=o(function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},"mrg"),ZI=o(function(e,t,n){for(var i=e(),r=e.toString(),s=r.slice(r.indexOf("[")+1,r.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<i.length;++a){var u=i[a],l=s[a];if(typeof u=="function"){t+=";"+l+"=";var c=u.toString();if(u.prototype)if(c.indexOf("[native code]")!=-1){var d=c.indexOf(" ",8)+1;t+=c.slice(d,c.indexOf("(",d))}else{t+=c;for(var h in u.prototype)t+=";"+l+".prototype."+h+"="+u.prototype[h].toString()}else t+=c}else n[l]=u}return t},"wcln"),El=[],Jz=o(function(e){var t=[];for(var n in e)e[n].buffer&&t.push((e[n]=new e[n].constructor(e[n])).buffer);return t},"cbfs"),Qz=o(function(e,t,n,i){if(!El[n]){for(var r="",s={},a=e.length-1,u=0;u<a;++u)r=ZI(e[u],r,s);El[n]={c:ZI(e[a],r,s),e:s}}var l=Nl({},El[n].e);return Kz(El[n].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",n,l,Jz(l),i)},"wrkr"),e3=o(function(){return[Ze,cn,Ka,us,ls,Za,dv,JI,ew,nw,Xa,rw,qn,Tl,Xn,Al,Ya,Ri,ft,iw,Ll,kl,uw]},"bInflt"),t3=o(function(){return[Ze,cn,Ka,us,ls,Za,Rl,cv,QI,ni,tw,as,Xa,ow,hv,qn,Ar,os,Pl,Cl,uv,ss,pv,lv,Ya,Ri,sw,cw,Dl,kl]},"bDflt");var kl=o(function(e){return postMessage(e,[e.buffer])},"pbf"),uw=o(function(e){return e&&{out:e.size&&new Ze(e.size),dictionary:e.dictionary}},"gopt"),lw=o(function(e,t,n,i,r,s){var a=Qz(n,i,r,function(u,l){a.terminate(),s(u,l)});return a.postMessage([e,t],t.consume?[e.buffer]:[]),function(){a.terminate()}},"cbify");var ar=o(function(e,t){return e[t]|e[t+1]<<8},"b2"),$t=o(function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},"b4"),av=o(function(e,t){return $t(e,t)+$t(e,t+4)*4294967296},"b8"),Lt=o(function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},"wbytes");function n3(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ft(7),lw(e,t,[t3],function(i){return kl(Dl(i.data[0],i.data[1]))},0,n)}o(n3,"deflate");function Dl(e,t){return cw(e,t||{},0,0)}o(Dl,"deflateSync");function r3(e,t,n){return n||(n=t,t={}),typeof n!="function"&&ft(7),lw(e,t,[e3],function(i){return kl(Ll(i.data[0],uw(i.data[1])))},1,n)}o(r3,"inflate");function Ll(e,t){return iw(e,{i:2},t&&t.out,t&&t.dictionary)}o(Ll,"inflateSync");var mv=o(function(e,t,n,i){for(var r in e){var s=e[r],a=t+r,u=i;Array.isArray(s)&&(u=Nl(i,s[1]),s=s[0]),s instanceof Ze?n[a]=[s,u]:(n[a+="/"]=[new Ze(0),u],mv(s,a,n,i))}},"fltn"),XI=typeof TextEncoder<"u"&&new TextEncoder,fv=typeof TextDecoder<"u"&&new TextDecoder,i3=0;try{fv.decode(hv,{stream:!0}),i3=1}catch(e){}var o3=o(function(e){for(var t="",n=0;;){var i=e[n++],r=(i>127)+(i>223)+(i>239);if(n+r>e.length)return{s:t,r:Ri(e,n-1)};r?r==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):r&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}},"dutf8");function cs(e,t){if(t){for(var n=new Ze(e.length),i=0;i<e.length;++i)n[i]=e.charCodeAt(i);return n}if(XI)return XI.encode(e);for(var r=e.length,s=new Ze(e.length+(e.length>>1)),a=0,u=o(function(d){s[a++]=d},"w"),i=0;i<r;++i){if(a+5>s.length){var l=new Ze(a+8+(r-i<<1));l.set(s),s=l}var c=e.charCodeAt(i);c<128||t?u(c):c<2048?(u(192|c>>6),u(128|c&63)):c>55295&&c<57344?(c=65536+(c&1047552)|e.charCodeAt(++i)&1023,u(240|c>>18),u(128|c>>12&63),u(128|c>>6&63),u(128|c&63)):(u(224|c>>12),u(128|c>>6&63),u(128|c&63))}return Ri(s,0,a)}o(cs,"strToU8");function gv(e,t){if(t){for(var n="",i=0;i<e.length;i+=16384)n+=String.fromCharCode.apply(null,e.subarray(i,i+16384));return n}else{if(fv)return fv.decode(e);var r=o3(e),s=r.s,n=r.r;return n.length&&ft(8),s}}o(gv,"strFromU8");var fw=o(function(e,t){return t+30+ar(e,t+26)+ar(e,t+28)},"slzh"),dw=o(function(e,t,n){var i=ar(e,t+28),r=gv(e.subarray(t+46,t+46+i),!(ar(e,t+8)&2048)),s=t+46+i,a=$t(e,t+20),u=n&&a==4294967295?s3(e,s):[a,$t(e,t+24),$t(e,t+42)],l=u[0],c=u[1],d=u[2];return[ar(e,t+10),l,c,r,s+ar(e,t+30)+ar(e,t+32),d]},"zh"),s3=o(function(e,t){for(;ar(e,t)!=1;t+=4+ar(e,t+2));return[av(e,t+12),av(e,t+4),av(e,t+20)]},"z64e"),qa=o(function(e){var t=0;if(e)for(var n in e){var i=e[n].length;i>65535&&ft(9),t+=i+4}return t},"exfl"),Ol=o(function(e,t,n,i,r,s,a,u){var l=i.length,c=n.extra,d=u&&u.length,h=qa(c);Lt(e,t,a!=null?33639248:67324752),t+=4,a!=null&&(e[t++]=20,e[t++]=n.os),e[t]=20,t+=2,e[t++]=n.flag<<1|(s<0&&8),e[t++]=r&&8,e[t++]=n.compression&255,e[t++]=n.compression>>8;var m=new Date(n.mtime==null?Date.now():n.mtime),y=m.getFullYear()-1980;if((y<0||y>119)&&ft(10),Lt(e,t,y<<25|m.getMonth()+1<<21|m.getDate()<<16|m.getHours()<<11|m.getMinutes()<<5|m.getSeconds()>>1),t+=4,s!=-1&&(Lt(e,t,n.crc),Lt(e,t+4,s<0?-s-2:s),Lt(e,t+8,n.size)),Lt(e,t+12,l),Lt(e,t+14,h),t+=16,a!=null&&(Lt(e,t,d),Lt(e,t+6,n.attrs),Lt(e,t+10,a),t+=14),e.set(i,t),t+=l,h)for(var v in c){var I=c[v],T=I.length;Lt(e,t,+v),Lt(e,t+2,T),e.set(I,t+4),t+=4+T}return d&&(e.set(u,t),t+=d),t},"wzh"),pw=o(function(e,t,n,i,r){Lt(e,t,101010256),Lt(e,t+8,n),Lt(e,t+10,n),Lt(e,t+12,i),Lt(e,t+16,r)},"wzf");function hw(e,t,n){n||(n=t,t={}),typeof n!="function"&&ft(7);var i={};mv(e,"",i,t);var r=Object.keys(i),s=r.length,a=0,u=0,l=s,c=new Array(s),d=[],h=o(function(){for(var T=0;T<d.length;++T)d[T]()},"tAll"),m=o(function(T,U){Ul(function(){n(T,U)})},"cbd");Ul(function(){m=n});var y=o(function(){var T=new Ze(u+22),U=a,D=u-a;u=0;for(var w=0;w<l;++w){var S=c[w];try{var A=S.c.length;Ol(T,u,S,S.f,S.u,A);var j=30+S.f.length+qa(S.extra),N=u+j;T.set(S.c,N),Ol(T,a,S,S.f,S.u,A,u,S.m),a+=16+j+(S.m?S.m.length:0),u=N+A}catch(H){return m(H,null)}}pw(T,a,c.length,D,U),m(null,T)},"cbf");s||y();for(var v=o(function(T){var U=r[T],D=i[U],w=D[0],S=D[1],A=aw(),j=w.length;A.p(w);var N=cs(U),H=N.length,G=S.comment,ce=G&&cs(G),ue=ce&&ce.length,he=qa(S.extra),Ge=S.level==0?0:8,Oe=o(function(Ue,V){if(Ue)h(),m(Ue,null);else{var ne=V.length;c[T]=Nl(S,{size:j,crc:A.d(),c:V,f:N,m:ce,u:H!=U.length||ce&&G.length!=ue,compression:Ge}),a+=30+H+he+ne,u+=76+2*(H+he)+(ue||0)+ne,--s||y()}},"cbl");if(H>65535&&Oe(ft(11,0,1),null),!Ge)Oe(null,w);else if(j<16e4)try{Oe(null,Dl(w,S))}catch(Ue){Oe(Ue,null)}else d.push(n3(w,S,Oe))},"_loop_1"),I=0;I<l;++I)v(I);return h}o(hw,"zip");function mw(e,t){t||(t={});var n={},i=[];mv(e,"",n,t);var r=0,s=0;for(var a in n){var u=n[a],l=u[0],c=u[1],d=c.level==0?0:8,h=cs(a),m=h.length,y=c.comment,v=y&&cs(y),I=v&&v.length,T=qa(c.extra);m>65535&&ft(11);var U=d?Dl(l,c):l,D=U.length,w=aw();w.p(l),i.push(Nl(c,{size:l.length,crc:w.d(),c:U,f:h,m:v,u:m!=a.length||v&&y.length!=I,o:r,compression:d})),r+=30+m+T+D,s+=76+2*(m+T)+(I||0)+D}for(var S=new Ze(s+22),A=r,j=s-r,N=0;N<i.length;++N){var h=i[N];Ol(S,h.o,h,h.f,h.u,h.c.length);var H=30+h.f.length+qa(h.extra);S.set(h.c,h.o+H),Ol(S,r,h,h.f,h.u,h.c.length,h.o,h.m),r+=16+H+(h.m?h.m.length:0)}return pw(S,r,i.length,j,A),S}o(mw,"zipSync");var Ul=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(e){e()};function gw(e,t,n){n||(n=t,t={}),typeof n!="function"&&ft(7);var i=[],r=o(function(){for(var T=0;T<i.length;++T)i[T]()},"tAll"),s={},a=o(function(T,U){Ul(function(){n(T,U)})},"cbd");Ul(function(){a=n});for(var u=e.length-22;$t(e,u)!=101010256;--u)if(!u||e.length-u>65558)return a(ft(13,0,1),null),r;var l=ar(e,u+8);if(l){var c=l,d=$t(e,u+16),h=d==4294967295||c==65535;if(h){var m=$t(e,u-12);h=$t(e,m)==101075792,h&&(c=l=$t(e,m+32),d=$t(e,m+48))}for(var y=t&&t.filter,v=o(function(T){var U=dw(e,d,h),D=U[0],w=U[1],S=U[2],A=U[3],j=U[4],N=U[5],H=fw(e,N);d=j;var G=o(function(ue,he){ue?(r(),a(ue,null)):(he&&(s[A]=he),--l||a(null,s))},"cbl");if(!y||y({name:A,size:w,originalSize:S,compression:D}))if(!D)G(null,Ri(e,H,H+w));else if(D==8){var ce=e.subarray(H,H+w);if(S<524288||w>.8*S)try{G(null,Ll(ce,{out:new Ze(S)}))}catch(ue){G(ue,null)}else i.push(r3(ce,{size:S},G))}else G(ft(14,"unknown compression type "+D,1),null);else G(null,null)},"_loop_3"),I=0;I<c;++I)v(I)}else a(null,{});return r}o(gw,"unzip");function yw(e,t){for(var n={},i=e.length-22;$t(e,i)!=101010256;--i)(!i||e.length-i>65558)&&ft(13);var r=ar(e,i+8);if(!r)return{};var s=$t(e,i+16),a=s==4294967295||r==65535;if(a){var u=$t(e,i-12);a=$t(e,u)==101075792,a&&(r=$t(e,u+32),s=$t(e,u+48))}for(var l=t&&t.filter,c=0;c<r;++c){var d=dw(e,s,a),h=d[0],m=d[1],y=d[2],v=d[3],I=d[4],T=d[5],U=fw(e,T);s=I,(!l||l({name:v,size:m,originalSize:y,compression:h}))&&(h?h==8?n[v]=Ll(e.subarray(U,U+m),{out:new Ze(y)}):ft(14,"unknown compression type "+h):n[v]=Ri(e,U,U+m))}return n}o(yw,"unzipSync");f();var a3=o(e=>{if(e!=null)return e.trim()===""?void 0:e},"maybePath"),c3=o(e=>e!=null,"notNull"),$l=o((e,t,n=0)=>{var i;if(_.IsNull(e))return"null";if(_.IsUndefined(e))return"undefined";if(_.IsString(e))return"<string>";if(_.IsNumber(e))return"<number>";if(_.IsBoolean(e))return"<boolean>";if(_.IsLiteral(e))return typeof e.const=="string"?"'".concat(e.const,"'"):"".concat(e.const);if(_.IsRef(e)){let r=t.find(s=>s.$id===e.$ref);return r==null?e.$ref:$l(r,t,n)}if(_.IsArray(e))return"".concat($l(e.items,t,n+1),"[]");if(_.IsUnion(e)&&(!(e.anyOf.length>5)||e.$id==null)){let s="".concat(e.anyOf.map(a=>$l(a,t,n+1)).filter(c3).join(" | "));return n>0?"(".concat(s,")"):s}return(i=e.$id)!=null?i:""},"resolveSchemaIdent"),u3=o((e,t,n)=>{var s;let i=t.message;_.IsUnion(t.schema)&&(i="Expected one of: ".concat($l(t.schema,n)));let r="#/definitions/".concat(e).concat((s=a3(t.path))!=null?s:"");return"".concat(r,": ").concat(i)},"errorHandler"),zl=o((e,t,n)=>{let i=t.First();if(i!=null)return u3(e,i,n)},"shortError");var fs;(function(e){e.Archive="Archive",e.Validate="Validate",e.Encode="Encode",e.Unknown="Unknown"})(fs||(fs={}));var yv=class yv extends Error{constructor(n,i){super(i);Xe(this,"name");Xe(this,"kind");this.name="CompressError",this.kind=n}};o(yv,"CompressError");var ds=yv,l3=o(e=>new ds(fs.Archive,e.message),"flateErrorIntoCompressError"),f3=o(e=>{let t=Object.values(Fl);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},"isFlateError"),d3=o((e,t,n)=>{var i;return new ds(fs.Validate,(i=zl(e,t,n))!=null?i:"Unknown validate error")},"checkErrorIntoCompressError"),p3=o(e=>new ds(fs.Encode,e.message),"encodeErrorIntoCompressError"),h3=o(e=>new ds(fs.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoCompressError"),Ja=o((e,t,n)=>t instanceof Ji?p3(t):t instanceof Gn?d3(e,t,n):f3(t)?l3(t):h3(t),"intoCompressError");f();var ps;(function(e){e.Unarchive="Unarchive",e.Validate="Validate",e.Decode="Decode",e.Unknown="Unknown"})(ps||(ps={}));var xv=class xv extends Error{constructor(n,i){super(i);Xe(this,"name");Xe(this,"kind");this.name="DecompressError",this.kind=n}};o(xv,"DecompressError");var hs=xv,m3=o(e=>new hs(ps.Unarchive,e.message),"flateErrorIntoDecompressError"),g3=o(e=>{let t=Object.values(Fl);return e instanceof Error&&"code"in e&&typeof e.code=="number"&&t.includes(e.code)},"isFlateError"),y3=o((e,t,n)=>{var i;return new hs(ps.Validate,(i=zl(e,t,n))!=null?i:"Unknown validate error")},"checkErrorIntoDecompressError"),x3=o(e=>new hs(ps.Decode,e.message),"decodeErrorIntoDecompressError"),v3=o(e=>new hs(ps.Unknown,e instanceof Error?e.message:String(e)),"unknownErrorIntoDecompressError"),Qa=o((e,t,n)=>t instanceof Yi?x3(t):t instanceof Gn?y3(e,t,n):g3(t)?m3(t):v3(t),"intoDecompressError");var xw=o(function*(e,t=""){if(e!=null){if(Array.isArray(e)){for(let n=0;n<e.length;n++)yield[t+"[".concat(n,"]"),e[n]];return}if("features"in e){for(let n=0;n<e.features.length;n++)yield[t===""?"features[".concat(n,"]"):"".concat(t,".features[").concat(n,"]"),e.features[n]];return}for(let[n,i]of Object.entries(e)){let r=t===""?n:"".concat(t,".").concat(n);yield*k(xw(i,r))}}},"iterRecord"),_3=o((e,t)=>e===""?t:t.startsWith("[")?"".concat(e).concat(t):"".concat(e,".").concat(t),"getPath"),gt=o((e,t,n)=>{let i=new Set;for(let[r,s]of xw(e)){let a=t(s);if(i.has(a))return J({kind:yn.DuplicateIdError,properties:{id:a,path:_3(n,r)}});i.add(a)}return Y(!0)},"ensureUniqueIds");var vw=o(e=>e.floors==null?J({kind:yn.FloorMissingError,properties:null}):gt(e.floors.features,t=>t.properties.id,"floors"),"validateFloors");var _w=p.Intersect([p.Object({id:p.Ref(_e),elevation:p.Integer({description:"An ordinal representing the elevation of this map relative to other maps in the stack."}),subtitle:p.Optional(p.String({description:"The subtitle of the floor."})),maxHeight:p.Optional(p.Number({description:"The maximum height of the floor in meters. This includes the thickness of the floor itself, up to the tallest point on any wall. If the floor does not have a consistent height (eg, one room on the floor has a vaulted ceiling, the rest do not), this value represents the highest point anywhere on the floor. Must be a positive number, or undefined.",minimum:0}))}),wn],{$id:"FloorProperties"}),bw=Nt(p.Union([p.Ref(Yo),p.Ref(Jo),p.Null()]),p.Ref(_w),{$id:"FloorFeature"}),Sw=an(p.Ref(bw),{$id:"FloorCollection"}),b3=p.Object({floors:p.Ref(Sw)}),Iw={name:"core:floors",intoBundle:o(function*(e){e.floors!=null&&(yield{path:"floors.geojson",contents:e.floors})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="floors.geojson")return{floors:n(t)}},"fromBundle"),integrityCheck:vw,schema:b3,references:[_w,bw,Sw]};f();f();var yt=o(e=>p.Unsafe(e),"PartialRecord");f();var $e=o(e=>Object.keys(e),"typedKeys");f();f();var S3=o(e=>{var t,n;return new Map((n=(t=e.floors)==null?void 0:t.features.map(i=>[i.properties.id,i]))!=null?n:[])},"createFloorMap"),cr=o(e=>{let t=S3(e);return o(i=>{let r=t.get(i);return r==null?J({kind:yn.UnknownFloorError,properties:{floorId:i}}):Y(r)},"floorLookup")},"createFloorLookup");var ww=o(e=>{if(e.floors==null)return J({kind:yn.FloorMissingError,properties:null});if(e.geometry==null)return J({kind:yn.GeometryMissingError,properties:null});let t=gt(e.geometry,i=>i.properties.id,"geometry");if(t.isErr())return t;let n=cr(e);for(let i of $e(e.geometry)){let r=n(i);if(r.isErr())return r}return Y(!0)},"validateGeometry");var Mw=p.Intersect([p.Object({id:p.Ref(qt)}),wn],{$id:"GeometryProperties"}),Ew=Nt(p.Union([p.Ref(Xt),p.Ref(rl),p.Ref(il),p.Ref(ol),p.Ref(Yo),p.Ref(Jo)]),p.Ref(Mw),{$id:"GeometryFeature"}),Tw=an(p.Ref(Ew),{$id:"GeometryCollection"}),I3=p.Object({geometry:yt(p.Record(_e,p.Ref(Tw),{additionalProperties:!1}))},{$id:"GeometrySchema"}),w3=/^geometry\/(.*)\.geojson$/,Aw={name:"core:geometry",schema:I3,intoBundle:o(function*(e){if(e.geometry!=null)for(let t of $e(e.geometry))yield{path:"geometry/".concat(t,".geojson"),contents:e.geometry[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(w3))==null?void 0:r[1];if(i)return{geometry:{[i]:n(t)}}},"fromBundle"),references:[Mw,Ew,Tw],integrityCheck:ww};f();var vv=p.Object({type:p.Literal("file"),name:p.String({description:"The name of the file."})},{$id:"ManifestFile"}),Pw=p.Recursive(e=>p.Object({type:p.Literal("folder"),name:p.String({description:"The name of the folder."}),children:p.Array(p.Union([e,p.Ref(vv)]),{minItems:1,description:"The children of the folder."})}),{$id:"ManifestFolder"}),Rw=p.Object({name:p.String({description:"The name of the map."}),version:p.Literal("3.0.0",{description:"The version of the manifest."}),orgId:p.Optional(p.String({description:"The identifier of the organization that the map this MVF is for belongs to."})),mapId:p.Optional(p.String({description:"The identifier of the map that this MVF is for."})),contents:p.Array(p.Union([p.Ref(Pw),p.Ref(vv)]),{minItems:1,description:"The contents of the MVF bundle."}),time:p.String({format:"date-time",description:"An ISO 8601 date-time string, including timezone offset."}),tzid:p.Optional(p.Unsafe(p.String({description:"A valid IANA timezone identifier.",pattern:"^[A-Za-z0-9_-]+/[A-Za-z0-9_-]+$"}))),naturalBearing:p.Optional(p.Number({minimum:0,maximum:360,description:'The angle, in degrees, the map is considered to be "naturally oriented" as, rather than facing directly north. 90 degrees means East is "up"'})),defaultFloor:p.Optional(p.Ref(_e,{description:"The default floor ID of the map."})),language:p.Optional(p.String({description:"The language code of the map."}))},{$id:"ManifestProperties"}),Cw=an(Nt(Xt,p.Ref(Rw)),{$id:"ManifestCollection"},{minItems:1,maxItems:1}),M3=p.Object({manifest:p.Ref(Cw)}),Ow={name:"core:manifest",intoBundle:o(function*(e){e.manifest!=null&&(yield{path:"manifest.geojson",contents:e.manifest})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="manifest.geojson")return{manifest:n(t)}},"fromBundle"),schema:M3,references:[vv,Pw,Rw,Cw]};f();f();f();f();var bv=class bv extends re{constructor(n){super("Unable to dereference schema with $id '".concat(n.$ref,"'"));Xe(this,"schema");this.schema=n}};o(bv,"TypeDereferenceError");var _v=bv;function E3(e,t){let n=t.find(i=>i.$id===e.$ref);if(n===void 0)throw new _v(e);return eo(n,t)}o(E3,"Resolve");function Bl(e,t){return!be.IsString(e.$id)||t.some(n=>n.$id===e.$id)||t.push(e),t}o(Bl,"Pushref");function eo(e,t){return e[P]==="This"||e[P]==="Ref"?E3(e,t):e}o(eo,"Deref");f();function T3(e,t,n){let i=e.get(t);if(i!==void 0)return i;let r=Tr(t,n);return e.set(t,r),r}o(T3,"HasTransformCached");function Vl(){let e=new WeakMap;return{HasTransform:o((t,n)=>T3(e,t,n),"HasTransform")}}o(Vl,"CreateTransformCache");function dt(e,t,n){try{return _.IsTransform(e)?e[ot].Decode(n):n}catch(i){throw new Yi(e,t,n,i)}}o(dt,"Default");function A3(e,t,n,i,r){return be.IsArray(i)?dt(e,n,i.map((s,a)=>Pr(e.items,t,"".concat(n,"/").concat(a),s,r))):dt(e,n,i)}o(A3,"FromArray");function P3(e,t,n,i,r){if(!be.IsObject(i)||Ft(i))return dt(e,n,i);let s=Ei(e),a=s.map(h=>h[0]),u=x({},i);for(let[h,m]of s)h in u&&(u[h]=Pr(m,t,"".concat(n,"/").concat(h),u[h],r));if(!_.IsTransform(e.unevaluatedProperties))return dt(e,n,u);let l=Object.getOwnPropertyNames(u),c=e.unevaluatedProperties,d=x({},u);for(let h of l)a.includes(h)||(d[h]=dt(c,"".concat(n,"/").concat(h),d[h]));return dt(e,n,d)}o(P3,"FromIntersect");function R3(e,t,n,i,r){return dt(e,n,Pr(e.not,t,n,i,r))}o(R3,"FromNot");function C3(e,t,n,i,r){if(!be.IsObject(i))return dt(e,n,i);let s=Pt(e),a=x({},i);for(let d of s)be.HasPropertyKey(a,d)&&(be.IsUndefined(a[d])&&(!_.IsUndefined(e.properties[d])||Le.IsExactOptionalProperty(a,d))||(a[d]=Pr(e.properties[d],t,"".concat(n,"/").concat(d),a[d],r)));if(!_.IsSchema(e.additionalProperties))return dt(e,n,a);let u=Object.getOwnPropertyNames(a),l=e.additionalProperties,c=x({},a);for(let d of u)s.includes(d)||(c[d]=dt(l,"".concat(n,"/").concat(d),c[d]));return dt(e,n,c)}o(C3,"FromObject");function O3(e,t,n,i,r){if(!be.IsObject(i))return dt(e,n,i);let s=Object.getOwnPropertyNames(e.patternProperties)[0],a=new RegExp(s),u=x({},i);for(let h of Object.getOwnPropertyNames(i))a.test(h)&&(u[h]=Pr(e.patternProperties[s],t,"".concat(n,"/").concat(h),u[h],r));if(!_.IsSchema(e.additionalProperties))return dt(e,n,u);let l=Object.getOwnPropertyNames(u),c=e.additionalProperties,d=x({},u);for(let h of l)a.test(h)||(d[h]=dt(c,"".concat(n,"/").concat(h),d[h]));return dt(e,n,d)}o(O3,"FromRecord");function U3(e,t,n,i,r){let s=eo(e,t);return dt(e,n,Pr(s,t,n,i,r))}o(U3,"FromRef");function F3(e,t,n,i,r){let s=eo(e,t);return dt(e,n,Pr(s,t,n,i,r))}o(F3,"FromThis");function N3(e,t,n,i,r){return be.IsArray(i)&&be.IsArray(e.items)?dt(e,n,e.items.map((s,a)=>Pr(s,t,"".concat(n,"/").concat(a),i[a],r))):dt(e,n,i)}o(N3,"FromTuple");function k3(e,t,n,i,r){for(let s of e.anyOf){if(!Zn.Check(s,t,i))continue;let a=Pr(s,t,n,i,r);return dt(e,n,a)}return dt(e,n,i)}o(k3,"FromUnion");function Pr(e,t,n,i,r){if(!r.HasTransform(e,t))return i;let s=Bl(e,t),a=e;switch(e[P]){case"Array":return A3(a,s,n,i,r);case"Intersect":return P3(a,s,n,i,r);case"Not":return R3(a,s,n,i,r);case"Object":return C3(a,s,n,i,r);case"Record":return O3(a,s,n,i,r);case"Ref":return U3(a,s,n,i,r);case"Symbol":return dt(a,n,i);case"This":return F3(a,s,n,i,r);case"Tuple":return N3(a,s,n,i,r);case"Union":return k3(a,s,n,i,r);default:return dt(a,n,i)}}o(Pr,"Visit");function Uw(e,t,n){let i=Vl();return Pr(e,t,"",n,i)}o(Uw,"FastTransformDecode");f();function Jt(e,t,n){try{return _.IsTransform(e)?e[ot].Encode(n):n}catch(i){throw new Ji(e,t,n,i)}}o(Jt,"Default");function D3(e,t,n,i,r){let s=Jt(e,n,i);return be.IsArray(s)?s.map((a,u)=>Rr(e.items,t,"".concat(n,"/").concat(u),a,r)):s}o(D3,"FromArray");function L3(e,t,n,i,r){let s=Jt(e,n,i);if(!be.IsObject(i)||Ft(i))return s;let a=Ei(e),u=a.map(m=>m[0]),l=x({},s);for(let[m,y]of a)m in l&&(l[m]=Rr(y,t,"".concat(n,"/").concat(m),l[m],r));if(!_.IsTransform(e.unevaluatedProperties))return l;let c=Object.getOwnPropertyNames(l),d=e.unevaluatedProperties,h=x({},l);for(let m of c)u.includes(m)||(h[m]=Jt(d,"".concat(n,"/").concat(m),h[m]));return h}o(L3,"FromIntersect");function $3(e,t,n,i){return Jt(e.not,n,Jt(e,n,i))}o($3,"FromNot");function z3(e,t,n,i,r){let s=Jt(e,n,i);if(!be.IsObject(s))return s;let a=Pt(e),u=x({},s);for(let h of a)be.HasPropertyKey(u,h)&&(be.IsUndefined(u[h])&&(!_.IsUndefined(e.properties[h])||Le.IsExactOptionalProperty(u,h))||(u[h]=Rr(e.properties[h],t,"".concat(n,"/").concat(h),u[h],r)));if(!_.IsSchema(e.additionalProperties))return u;let l=Object.getOwnPropertyNames(u),c=e.additionalProperties,d=x({},u);for(let h of l)a.includes(h)||(d[h]=Jt(c,"".concat(n,"/").concat(h),d[h]));return d}o(z3,"FromObject");function B3(e,t,n,i,r){let s=Jt(e,n,i);if(!be.IsObject(i))return s;let a=Object.getOwnPropertyNames(e.patternProperties)[0],u=new RegExp(a),l=x({},s);for(let m of Object.getOwnPropertyNames(i))u.test(m)&&(l[m]=Rr(e.patternProperties[a],t,"".concat(n,"/").concat(m),l[m],r));if(!_.IsSchema(e.additionalProperties))return l;let c=Object.getOwnPropertyNames(l),d=e.additionalProperties,h=x({},l);for(let m of c)u.test(m)||(h[m]=Jt(d,"".concat(n,"/").concat(m),h[m]));return h}o(B3,"FromRecord");function V3(e,t,n,i,r){let s=eo(e,t),a=Rr(s,t,n,i,r);return Jt(e,n,a)}o(V3,"FromRef");function j3(e,t,n,i,r){let s=eo(e,t),a=Rr(s,t,n,i,r);return Jt(e,n,a)}o(j3,"FromThis");function G3(e,t,n,i,r){let s=Jt(e,n,i);return be.IsArray(e.items)?e.items.map((a,u)=>Rr(a,t,"".concat(n,"/").concat(u),s[u],r)):[]}o(G3,"FromTuple");function H3(e,t,n,i,r){for(let s of e.anyOf){if(!Zn.Check(s,t,i))continue;let a=Rr(s,t,n,i,r);return Jt(e,n,a)}for(let s of e.anyOf){let a=Rr(s,t,n,i,r);if(Zn.Check(e,t,a))return Jt(e,n,a)}return Jt(e,n,i)}o(H3,"FromUnion");function Rr(e,t,n,i,r){if(!r.HasTransform(e,t))return i;let s=Bl(e,t),a=e;switch(e[P]){case"Array":return D3(a,s,n,i,r);case"Intersect":return L3(a,s,n,i,r);case"Not":return $3(a,s,n,i);case"Object":return z3(a,s,n,i,r);case"Record":return B3(a,s,n,i,r);case"Ref":return V3(a,s,n,i,r);case"This":return j3(a,s,n,i,r);case"Tuple":return G3(a,s,n,i,r);case"Union":return H3(a,s,n,i,r);default:return Jt(a,n,i)}}o(Rr,"Visit");function Fw(e,t,n){let i=Vl();return Rr(e,t,"",n,i)}o(Fw,"FastTransformEncode");f();var Ev=class Ev{constructor(t,n,i,r){this.schema=t,this.references=n,this.checkFunc=i,this.code=r,this.hasTransform=Tr(t,n)}Code(){return this.code}Errors(t){return Sr(this.schema,this.references,t)}Check(t){return this.checkFunc(t)}Decode(t){if(!this.checkFunc(t))throw new ns(this.schema,t,this.Errors(t).First());return this.hasTransform?rs(this.schema,this.references,t):t}Encode(t){let n=this.hasTransform?xl(this.schema,this.references,t):t;if(!this.checkFunc(n))throw new is(this.schema,t,this.Errors(t).First());return n}};o(Ev,"TypeCheck");var Sv=Ev,ri;(function(e){function t(s){return s===36}o(t,"DollarSign"),e.DollarSign=t;function n(s){return s===95}o(n,"IsUnderscore"),e.IsUnderscore=n;function i(s){return s>=65&&s<=90||s>=97&&s<=122}o(i,"IsAlpha"),e.IsAlpha=i;function r(s){return s>=48&&s<=57}o(r,"IsNumeric"),e.IsNumeric=r})(ri||(ri={}));var jl;(function(e){function t(s){return s.length===0?!1:ri.IsNumeric(s.charCodeAt(0))}o(t,"IsFirstCharacterNumeric");function n(s){if(t(s))return!1;for(let a=0;a<s.length;a++){let u=s.charCodeAt(a);if(!(ri.IsAlpha(u)||ri.IsNumeric(u)||ri.DollarSign(u)||ri.IsUnderscore(u)))return!1}return!0}o(n,"IsAccessor");function i(s){return s.replace(/'/g,"\\'")}o(i,"EscapeHyphen");function r(s,a){return n(a)?"".concat(s,".").concat(a):"".concat(s,"['").concat(i(a),"']")}o(r,"Encode"),e.Encode=r})(jl||(jl={}));var Iv;(function(e){function t(n){let i=[];for(let r=0;r<n.length;r++){let s=n.charCodeAt(r);ri.IsNumeric(s)||ri.IsAlpha(s)?i.push(n.charAt(r)):i.push("_".concat(s,"_"))}return i.join("").replace(/__/g,"_")}o(t,"Encode"),e.Encode=t})(Iv||(Iv={}));var wv;(function(e){function t(n){return n.replace(/'/g,"\\'")}o(t,"Escape"),e.Escape=t})(wv||(wv={}));var Tv=class Tv extends re{constructor(t){super("Unknown type"),this.schema=t}};o(Tv,"TypeCompilerUnknownTypeError");var Mv=Tv,Av=class Av extends re{constructor(t){super("Preflight validation check failed to guard for the given schema"),this.schema=t}};o(Av,"TypeCompilerTypeGuardError");var Gl=Av,to;(function(e){function t(a,u,l){return Le.ExactOptionalPropertyTypes?"('".concat(u,"' in ").concat(a," ? ").concat(l," : true)"):"(".concat(jl.Encode(a,u)," !== undefined ? ").concat(l," : true)")}o(t,"IsExactOptionalProperty"),e.IsExactOptionalProperty=t;function n(a){return Le.AllowArrayObject?"(typeof ".concat(a," === 'object' && ").concat(a," !== null)"):"(typeof ".concat(a," === 'object' && ").concat(a," !== null && !Array.isArray(").concat(a,"))")}o(n,"IsObjectLike"),e.IsObjectLike=n;function i(a){return Le.AllowArrayObject?"(typeof ".concat(a," === 'object' && ").concat(a," !== null && !(").concat(a," instanceof Date) && !(").concat(a," instanceof Uint8Array))"):"(typeof ".concat(a," === 'object' && ").concat(a," !== null && !Array.isArray(").concat(a,") && !(").concat(a," instanceof Date) && !(").concat(a," instanceof Uint8Array))")}o(i,"IsRecordLike"),e.IsRecordLike=i;function r(a){return Le.AllowNaN?"typeof ".concat(a," === 'number'"):"Number.isFinite(".concat(a,")")}o(r,"IsNumberLike"),e.IsNumberLike=r;function s(a){return Le.AllowNullVoid?"(".concat(a," === undefined || ").concat(a," === null)"):"".concat(a," === undefined")}o(s,"IsVoidLike"),e.IsVoidLike=s})(to||(to={}));var Hl;(function(e){function t(b){return b[P]==="Any"||b[P]==="Unknown"}o(t,"IsAnyOrUnknown");function*n(b,X,E){yield"true"}o(n,"FromAny");function*i(b,X,E){yield"Array.isArray(".concat(E,")");let[te,q]=[At("value","any"),At("acc","number")];ee(b.maxItems)&&(yield"".concat(E,".length <= ").concat(b.maxItems)),ee(b.minItems)&&(yield"".concat(E,".length >= ").concat(b.minItems));let Q=Me(b.items,X,"value");if(yield"".concat(E,".every((").concat(te,") => ").concat(Q,")"),Ie(b.contains)||ee(b.minContains)||ee(b.maxContains)){let nt=Ie(b.contains)?b.contains:Be(),en=Me(nt,X,"value"),Ur=ee(b.minContains)?["(count >= ".concat(b.minContains,")")]:[],Yn=ee(b.maxContains)?["(count <= ".concat(b.maxContains,")")]:[],dr="const count = value.reduce((".concat(q,", ").concat(te,") => ").concat(en," ? acc + 1 : acc, 0)"),ac=["(count > 0)",...Ur,...Yn].join(" && ");yield"((".concat(te,") => { ").concat(dr,"; return ").concat(ac,"})(").concat(E,")")}if(b.uniqueItems===!0){let en="const set = new Set(); for(const element of value) { ".concat("const hashed = hash(element); if(set.has(hashed)) { return false } else { set.add(hashed) } } return true"," }");yield"((".concat(te,") => { ").concat(en," )(").concat(E,")")}}o(i,"FromArray");function*r(b,X,E){yield"(typeof value === 'object' && Symbol.asyncIterator in ".concat(E,")")}o(r,"FromAsyncIterator");function*s(b,X,E){yield"(typeof ".concat(E," === 'bigint')"),Ut(b.exclusiveMaximum)&&(yield"".concat(E," < BigInt(").concat(b.exclusiveMaximum,")")),Ut(b.exclusiveMinimum)&&(yield"".concat(E," > BigInt(").concat(b.exclusiveMinimum,")")),Ut(b.maximum)&&(yield"".concat(E," <= BigInt(").concat(b.maximum,")")),Ut(b.minimum)&&(yield"".concat(E," >= BigInt(").concat(b.minimum,")")),Ut(b.multipleOf)&&(yield"(".concat(E," % BigInt(").concat(b.multipleOf,")) === 0"))}o(s,"FromBigInt");function*a(b,X,E){yield"(typeof ".concat(E," === 'boolean')")}o(a,"FromBoolean");function*u(b,X,E){yield*k(le(b.returns,X,"".concat(E,".prototype")))}o(u,"FromConstructor");function*l(b,X,E){yield"(".concat(E," instanceof Date) && Number.isFinite(").concat(E,".getTime())"),ee(b.exclusiveMaximumTimestamp)&&(yield"".concat(E,".getTime() < ").concat(b.exclusiveMaximumTimestamp)),ee(b.exclusiveMinimumTimestamp)&&(yield"".concat(E,".getTime() > ").concat(b.exclusiveMinimumTimestamp)),ee(b.maximumTimestamp)&&(yield"".concat(E,".getTime() <= ").concat(b.maximumTimestamp)),ee(b.minimumTimestamp)&&(yield"".concat(E,".getTime() >= ").concat(b.minimumTimestamp)),ee(b.multipleOfTimestamp)&&(yield"(".concat(E,".getTime() % ").concat(b.multipleOfTimestamp,") === 0"))}o(l,"FromDate");function*c(b,X,E){yield"(typeof ".concat(E," === 'function')")}o(c,"FromFunction");function*d(b,X,E){yield"Number.isInteger(".concat(E,")"),ee(b.exclusiveMaximum)&&(yield"".concat(E," < ").concat(b.exclusiveMaximum)),ee(b.exclusiveMinimum)&&(yield"".concat(E," > ").concat(b.exclusiveMinimum)),ee(b.maximum)&&(yield"".concat(E," <= ").concat(b.maximum)),ee(b.minimum)&&(yield"".concat(E," >= ").concat(b.minimum)),ee(b.multipleOf)&&(yield"(".concat(E," % ").concat(b.multipleOf,") === 0"))}o(d,"FromInteger");function*h(b,X,E){let te=b.allOf.map(q=>Me(q,X,E)).join(" && ");if(b.unevaluatedProperties===!1){let q=Vt("".concat(new RegExp(Kr(b)),";")),Q="Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(q,".test(key))");yield"(".concat(te," && ").concat(Q,")")}else if(Ie(b.unevaluatedProperties)){let q=Vt("".concat(new RegExp(Kr(b)),";")),Q="Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(q,".test(key) || ").concat(Me(b.unevaluatedProperties,X,"".concat(E,"[key]")),")");yield"(".concat(te," && ").concat(Q,")")}else yield"(".concat(te,")")}o(h,"FromIntersect");function*m(b,X,E){yield"(typeof value === 'object' && Symbol.iterator in ".concat(E,")")}o(m,"FromIterator");function*y(b,X,E){typeof b.const=="number"||typeof b.const=="boolean"?yield"(".concat(E," === ").concat(b.const,")"):yield"(".concat(E," === '").concat(wv.Escape(b.const),"')")}o(y,"FromLiteral");function*v(b,X,E){yield"false"}o(v,"FromNever");function*I(b,X,E){let te=Me(b.not,X,E);yield"(!".concat(te,")")}o(I,"FromNot");function*T(b,X,E){yield"(".concat(E," === null)")}o(T,"FromNull");function*U(b,X,E){yield to.IsNumberLike(E),ee(b.exclusiveMaximum)&&(yield"".concat(E," < ").concat(b.exclusiveMaximum)),ee(b.exclusiveMinimum)&&(yield"".concat(E," > ").concat(b.exclusiveMinimum)),ee(b.maximum)&&(yield"".concat(E," <= ").concat(b.maximum)),ee(b.minimum)&&(yield"".concat(E," >= ").concat(b.minimum)),ee(b.multipleOf)&&(yield"(".concat(E," % ").concat(b.multipleOf,") === 0"))}o(U,"FromNumber");function*D(b,X,E){yield to.IsObjectLike(E),ee(b.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length >= ").concat(b.minProperties)),ee(b.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length <= ").concat(b.maxProperties));let te=Object.getOwnPropertyNames(b.properties);for(let q of te){let Q=jl.Encode(E,q),nt=b.properties[q];if(b.required&&b.required.includes(q))yield*k(le(nt,X,Q)),(Jr(nt)||t(nt))&&(yield"('".concat(q,"' in ").concat(E,")"));else{let en=Me(nt,X,Q);yield to.IsExactOptionalProperty(E,q,en)}}if(b.additionalProperties===!1)if(b.required&&b.required.length===te.length)yield"Object.getOwnPropertyNames(".concat(E,").length === ").concat(te.length);else{let q="[".concat(te.map(Q=>"'".concat(Q,"'")).join(", "),"]");yield"Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(q,".includes(key))")}if(typeof b.additionalProperties=="object"){let q=Me(b.additionalProperties,X,"".concat(E,"[key]")),Q="[".concat(te.map(nt=>"'".concat(nt,"'")).join(", "),"]");yield"(Object.getOwnPropertyNames(".concat(E,").every(key => ").concat(Q,".includes(key) || ").concat(q,"))")}}o(D,"FromObject");function*w(b,X,E){yield"(typeof value === 'object' && typeof ".concat(E,".then === 'function')")}o(w,"FromPromise");function*S(b,X,E){yield to.IsRecordLike(E),ee(b.minProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length >= ").concat(b.minProperties)),ee(b.maxProperties)&&(yield"Object.getOwnPropertyNames(".concat(E,").length <= ").concat(b.maxProperties));let[te,q]=Object.entries(b.patternProperties)[0],Q=Vt("".concat(new RegExp(te))),nt=Me(q,X,"value"),en=Ie(b.additionalProperties)?Me(b.additionalProperties,X,E):b.additionalProperties===!1?"false":"true",Ur="(".concat(Q,".test(key) ? ").concat(nt," : ").concat(en,")");yield"(Object.entries(".concat(E,").every(([key, value]) => ").concat(Ur,"))")}o(S,"FromRecord");function*A(b,X,E){let te=Ae(b,X);if(oe.functions.has(b.$ref))return yield"".concat(pt(b.$ref),"(").concat(E,")");yield*k(le(te,X,E))}o(A,"FromRef");function*j(b,X,E){let te=Vt("".concat(new RegExp(b.source,b.flags),";"));yield"(typeof ".concat(E," === 'string')"),ee(b.maxLength)&&(yield"".concat(E,".length <= ").concat(b.maxLength)),ee(b.minLength)&&(yield"".concat(E,".length >= ").concat(b.minLength)),yield"".concat(te,".test(").concat(E,")")}o(j,"FromRegExp");function*N(b,X,E){if(yield"(typeof ".concat(E," === 'string')"),ee(b.maxLength)&&(yield"".concat(E,".length <= ").concat(b.maxLength)),ee(b.minLength)&&(yield"".concat(E,".length >= ").concat(b.minLength)),b.pattern!==void 0){let te=Vt("".concat(new RegExp(b.pattern),";"));yield"".concat(te,".test(").concat(E,")")}b.format!==void 0&&(yield"format('".concat(b.format,"', ").concat(E,")"))}o(N,"FromString");function*H(b,X,E){yield"(typeof ".concat(E," === 'symbol')")}o(H,"FromSymbol");function*G(b,X,E){yield"(typeof ".concat(E," === 'string')");let te=Vt("".concat(new RegExp(b.pattern),";"));yield"".concat(te,".test(").concat(E,")")}o(G,"FromTemplateLiteral");function*ce(b,X,E){yield"".concat(pt(b.$ref),"(").concat(E,")")}o(ce,"FromThis");function*ue(b,X,E){if(yield"Array.isArray(".concat(E,")"),b.items===void 0)return yield"".concat(E,".length === 0");yield"(".concat(E,".length === ").concat(b.maxItems,")");for(let te=0;te<b.items.length;te++){let q=Me(b.items[te],X,"".concat(E,"[").concat(te,"]"));yield"".concat(q)}}o(ue,"FromTuple");function*he(b,X,E){yield"".concat(E," === undefined")}o(he,"FromUndefined");function*Ge(b,X,E){let te=b.anyOf.map(q=>Me(q,X,E));yield"(".concat(te.join(" || "),")")}o(Ge,"FromUnion");function*Oe(b,X,E){yield"".concat(E," instanceof Uint8Array"),ee(b.maxByteLength)&&(yield"(".concat(E,".length <= ").concat(b.maxByteLength,")")),ee(b.minByteLength)&&(yield"(".concat(E,".length >= ").concat(b.minByteLength,")"))}o(Oe,"FromUint8Array");function*Ue(b,X,E){yield"true"}o(Ue,"FromUnknown");function*V(b,X,E){yield to.IsVoidLike(E)}o(V,"FromVoid");function*ne(b,X,E){let te=oe.instances.size;oe.instances.set(te,b),yield"kind('".concat(b[P],"', ").concat(te,", ").concat(E,")")}o(ne,"FromKind");function*le(b,X,E,te=!0){let q=Se(b.$id)?[...X,b]:X,Q=b;if(te&&Se(b.$id)){let nt=pt(b.$id);if(oe.functions.has(nt))return yield"".concat(nt,"(").concat(E,")");{let en=jt(nt,b,X,"value",!1);return oe.functions.set(nt,en),yield"".concat(nt,"(").concat(E,")")}}switch(Q[P]){case"Any":return yield*k(n(Q,q,E));case"Array":return yield*k(i(Q,q,E));case"AsyncIterator":return yield*k(r(Q,q,E));case"BigInt":return yield*k(s(Q,q,E));case"Boolean":return yield*k(a(Q,q,E));case"Constructor":return yield*k(u(Q,q,E));case"Date":return yield*k(l(Q,q,E));case"Function":return yield*k(c(Q,q,E));case"Integer":return yield*k(d(Q,q,E));case"Intersect":return yield*k(h(Q,q,E));case"Iterator":return yield*k(m(Q,q,E));case"Literal":return yield*k(y(Q,q,E));case"Never":return yield*k(v(Q,q,E));case"Not":return yield*k(I(Q,q,E));case"Null":return yield*k(T(Q,q,E));case"Number":return yield*k(U(Q,q,E));case"Object":return yield*k(D(Q,q,E));case"Promise":return yield*k(w(Q,q,E));case"Record":return yield*k(S(Q,q,E));case"Ref":return yield*k(A(Q,q,E));case"RegExp":return yield*k(j(Q,q,E));case"String":return yield*k(N(Q,q,E));case"Symbol":return yield*k(H(Q,q,E));case"TemplateLiteral":return yield*k(G(Q,q,E));case"This":return yield*k(ce(Q,q,E));case"Tuple":return yield*k(ue(Q,q,E));case"Undefined":return yield*k(he(Q,q,E));case"Union":return yield*k(Ge(Q,q,E));case"Uint8Array":return yield*k(Oe(Q,q,E));case"Unknown":return yield*k(Ue(Q,q,E));case"Void":return yield*k(V(Q,q,E));default:if(!Et.Has(Q[P]))throw new Mv(b);return yield*k(ne(Q,q,E))}}o(le,"Visit");let oe={language:"javascript",functions:new Map,variables:new Map,instances:new Map};function Me(b,X,E,te=!0){return"(".concat([...le(b,X,E,te)].join(" && "),")")}o(Me,"CreateExpression");function pt(b){return"check_".concat(Iv.Encode(b))}o(pt,"CreateFunctionName");function Vt(b){let X="local_".concat(oe.variables.size);return oe.variables.set(X,"const ".concat(X," = ").concat(b)),X}o(Vt,"CreateVariable");function jt(b,X,E,te,q=!0){let[Q,nt]=["\n",dr=>"".padStart(dr," ")],en=At("value","any"),Ur=tt("boolean"),Yn=[...le(X,E,te,q)].map(dr=>"".concat(nt(4)).concat(dr)).join(" &&".concat(Q));return"function ".concat(b,"(").concat(en,")").concat(Ur," {").concat(Q).concat(nt(2),"return (").concat(Q).concat(Yn).concat(Q).concat(nt(2),")\n}")}o(jt,"CreateFunction");function At(b,X){let E=oe.language==="typescript"?": ".concat(X):"";return"".concat(b).concat(E)}o(At,"CreateParameter");function tt(b){return oe.language==="typescript"?": ".concat(b):""}o(tt,"CreateReturns");function On(b,X,E){let te=jt("check",b,X,"value"),q=At("value","any"),Q=tt("boolean"),nt=[...oe.functions.values()],en=[...oe.variables.values()],Ur=Se(b.$id)?"return function check(".concat(q,")").concat(Q," {\n return ").concat(pt(b.$id),"(value)\n}"):"return ".concat(te);return[...en,...nt,Ur].join("\n")}o(On,"Build");function Or(...b){let X={language:"javascript"},[E,te,q]=b.length===2&&ae(b[1])?[b[0],b[1],X]:b.length===2&&!ae(b[1])?[b[0],[],b[1]]:b.length===3?[b[0],b[1],b[2]]:b.length===1?[b[0],[],X]:[null,[],X];if(oe.language=q.language,oe.variables.clear(),oe.functions.clear(),oe.instances.clear(),!Ie(E))throw new Gl(E);for(let Q of te)if(!Ie(Q))throw new Gl(Q);return On(E,te,q)}o(Or,"Code"),e.Code=Or;function ai(b,X=[]){let E=Or(b,X,{language:"javascript"}),te=globalThis.Function("kind","format","hash",E),q=new Map(oe.instances);function Q(Yn,dr,ac){if(!Et.Has(Yn)||!q.has(dr))return!1;let nT=Et.Get(Yn),rT=q.get(dr);return nT(rT,ac)}o(Q,"typeRegistryFunction");function nt(Yn,dr){return sn.Has(Yn)?sn.Get(Yn)(dr):!1}o(nt,"formatRegistryFunction");function en(Yn){return Pi(Yn)}o(en,"hashFunction");let Ur=te(Q,nt,en);return new Sv(b,X,Ur,E)}o(ai,"Compile"),e.Compile=ai})(Hl||(Hl={}));f();f();f();var W3=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Z3=[0,31,28,31,30,31,30,31,31,30,31,30,31],X3=o(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),Wl=o(e=>{let t=W3.exec(e);if(!t)return!1;let n=+t[1],i=+t[2],r=+t[3];return i>=1&&i<=12&&r>=1&&r<=(i===2&&X3(n)?29:Z3[i])},"isDate");f();var q3=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i,Zl=o(e=>{let t=q3.exec(e);if(!t)return!1;let n=+t[1],i=+t[2],r=+t[3],s=t[4],a=t[5]==="-"?-1:1,u=+(t[6]||0),l=+(t[7]||0);if(u>23||l>59||!s)return!1;if(n<=23&&i<=59&&r<60)return!0;let c=i-l*a,d=n-u*a-(c<0?1:0);return(d===23||d===-1)&&(c===59||c===-1)&&r<61},"isTime");var K3=/t|\s/i,Nw=o(e=>{let t=e.split(K3);return t.length===2&&Wl(t[0])&&Zl(t[1])},"isDateTime");f();var Y3=/\/|:/,J3=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,kw=o(e=>Y3.test(e)&&J3.test(e),"isUri");var Q3=[["date",Wl],["time",Zl],["date-time",Nw],["uri",kw]],Dw=o(()=>{for(let[e,t]of Q3)try{fl.Format(e,t)}catch(n){if(n instanceof ja)continue;throw n}},"registerFormats");f();var Pv=p.Record(p.String(),p.Unknown(),{$id:"Extra"}),ur=p.Object({extra:p.Optional(p.Ref(Pv))}),Rv=[Pv];f();f();f();f();f();f();var Qt=o(e=>Object.entries(e),"typedEntries");var eB=o(e=>{var n;let t=new Map;for(let[i,r]of Qt((n=e.geometry)!=null?n:{}))t.set(i,new Map(r==null?void 0:r.features.map(s=>[s.properties.id,s])));return t},"createLookupMap"),Tt=o(e=>{let t=eB(e);return o((i,r)=>{let s=t.get(i);if(s==null)return J({kind:yn.UnknownFloorError,properties:{floorId:i}});let a=s.get(r);return a==null?J({kind:yn.UnknownGeometryError,properties:{floorId:i,geometryId:r}}):Y(a)},"geometryLookup")},"createGeometryLookup");f();var Kn=p.Object({geometryId:p.Ref(qt)},{$id:"WithGeometryId"}),ms=p.Object({geometryIds:p.Array(p.Ref(qt))},{$id:"WithGeometryIds"}),Cv=[Kn,ms];f();f();f();var Lw=o(e=>e instanceof Error?e:new Error(String(e)),"asError");var gs=o(e=>(...t)=>{try{return Y(e(...t))}catch(n){return J(Lw(n))}},"safeFn");var $w=gs((e,t)=>{let n={};for(let i of t)for(let r of i.intoBundle(e))n[r.path]=cs(JSON.stringify(r.contents));return n}),Ov=o(async(e,t,n)=>$w(e,t).andThenAsync(i=>new Promise(r=>{hw(i,L(x({},n),{consume:!0}),(s,a)=>{r(s?J(s):Y(a))})})),"compress"),tB=gs(mw),Uv=o((e,t,n)=>$w(e,t).andThen(i=>tB(i,n)),"compressSync");f();f();function Xl(e,t,n=[]){let i=x({},e);for(let[r,s]of Object.entries(t))if(s!==void 0)if(r in i){let a=r;if(Array.isArray(s)&&s.length>0){let u=nB(s[0],n);if(u){let l=i[a];if(!Array.isArray(l))throw new Error("Expected array at ".concat(r,", got ").concat(typeof l));let c=new Map(s.map(m=>[zw(m,u),m])),h=l.map(m=>{let y=c.get(zw(m,u));return y?Xl(m,y,n):m});i[a]=h}else i[a]=s}else{let u=i[a];typeof u=="object"&&u!==null&&typeof s=="object"&&s!==null?Object.keys(s).length===0?i[a]=s:i[a]=Xl(u,s,n):i[r]=s}}else i[r]=s;return i}o(Xl,"deepMergeOn");function nB(e,t){function n(i){if(typeof i!="object"||i===null)return null;for(let r of t)if(r in i&&typeof i[r]<"u")return[r];if(Array.isArray(i))return null;for(let[r,s]of Object.entries(i)){let a=n(s);if(a)return[r,...a]}return null}return o(n,"search"),n(e)}o(nB,"findIdentifierKey");function zw(e,t){return t.reduce((n,i)=>{if(n&&typeof n=="object")return n[i]},e)}o(zw,"getValueByKeyPath");var rB=o(e=>e,"identity"),iB=o(e=>JSON.parse(gv(e)),"jsonDecode"),Bw=o((e,t)=>t.some(n=>n.fromBundle(e.name,new Uint8Array,rB)!==void 0),"isFileExpected"),Vw=gs((e,t)=>{let n={};for(let i of Object.keys(e)){let r=e[i];for(let s of t){let a=s.fromBundle(i,r,iB);if(a){n=Xl(n,a,[]);break}}}return n}),Fv=o(async(e,t)=>new Promise(n=>gw(e,{filter:o(i=>Bw(i,t),"filter")},(i,r)=>{n(i?J(i):Y(r))})).then(n=>n.andThen(i=>Vw(i,t))),"decompress"),oB=gs(yw),Nv=o((e,t)=>oB(e,{filter:o(n=>Bw(n,t),"filter")}).andThen(n=>Vw(n,t)),"decompressSync");f();var sB=o(e=>typeof e=="object"&&e!=null&&"$ref"in e&&typeof e.$ref=="string","isRef"),aB=o(e=>{if(e.length<2)return!1;let t=e.filter(sB);if(t.length!==e.length)return!1;let n=t[0].$ref;return t.slice(1).every(i=>i.$ref===n)},"isDuplicateRef"),ql=o(e=>typeof e=="object"&&e!=null&&"allOf"in e&&Array.isArray(e.allOf)&&aB(e.allOf)?e.allOf[0]:typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,ql(n)])):Array.isArray(e)?e.map(ql):e,"fixDuplicateAllOf");f();var Kl=o(e=>typeof e=="object"&&e!=null&&"$ref"in e?L(x({},e),{$ref:"#/definitions/".concat(e.$ref)}):typeof e=="object"&&e!=null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).map(([t,n])=>[t,Kl(n)])):Array.isArray(e)?e.map(Kl):e,"prefixReferences");var ys;(function(e){e.InvalidTypeboxSchema="InvalidTypeboxSchema",e.MissingReferenceId="MissingReferenceId",e.DuplicateReferenceId="DuplicateReferenceId",e.TypeboxError="TypeboxError",e.UnknownError="UnknownError"})(ys||(ys={}));var cB=o(e=>({next(){for(let n of e){let i=n.next();if(!i.done)return i}return{done:!0,value:void 0}},[Symbol.iterator](){return this}}),"join"),uB=o((...e)=>{let t=new Map;for(let n of cB(e)){if(!n.$id)continue;let i=t.get(n.$id);if(i!=null&&i!==n)return J({kind:ys.DuplicateReferenceId,message:"Failed to register a reference for a schema with an $id that has already been used",schema:n});t.set(n.$id,n)}return Y(t)},"computeReferenceMap"),Ct,xs,Rn,zt,Jl=class Jl{constructor(t,n,i,r){It(this,Ct);It(this,xs);It(this,Rn,[]);It(this,zt);Ot(this,Ct,t),Ot(this,xs,n),Ot(this,Rn,i),Ot(this,zt,r),this.is=this.is.bind(this),this.parse=this.parse.bind(this),this.verify=this.verify.bind(this),this.jsonSchema=this.jsonSchema.bind(this),this.compress=this.compress.bind(this),this.decompress=this.decompress.bind(this)}static create(t,n="CoreMVF",i=!1){let r=p.Composite(t.extensions.map(a=>a.schema),{$id:n});if(!_.IsSchema(r))return J({kind:ys.InvalidTypeboxSchema,message:"Attempting to merge schemas produced an invalid schema",schema:r});let s=uB(Ix.values(),wx.values(),bx.values(),Rv.values(),kv.values(),Cv.values(),t.extensions.flatMap(a=>{var u;return(u=a.references)!=null?u:[]}).values());if(!s.isOk())return s;try{Dw();let a=i?null:Hl.Compile(r,[...s.value.values()]);return Y(new Jl(r,a,t.extensions,s.value))}catch(a){return a instanceof re?J({kind:ys.TypeboxError,message:a.message,original:a}):J({kind:ys.UnknownError,message:"An unknown error occurred while compiling the schema",original:a})}}is(t){var n,i;return(i=(n=W(this,xs))==null?void 0:n.Check(t))!=null?i:Zn.Check(W(this,Ct),[...W(this,zt).values()],t)}parse(t){var n,i;return this.is(t)?Y(t):J((i=(n=W(this,xs))==null?void 0:n.Errors(t))!=null?i:Zn.Errors(W(this,Ct),[...W(this,zt).values()],t))}decode(t){try{return Y(Uw(W(this,Ct),[...W(this,zt).values()],t))}catch(n){return J(n)}}encode(t){try{return Y(Fw(W(this,Ct),[...W(this,zt).values()],t))}catch(n){return J(n)}}verify(t){for(let n of W(this,Rn))if(n.integrityCheck){let i=n.integrityCheck(t);if(i.isErr())return J(i.error)}return Y(!0)}jsonSchema(){var i;let t=JSON.parse(JSON.stringify([W(this,Ct),...W(this,zt).values()])),n=ql(Kl({$id:"#/definitions/".concat((i=W(this,Ct).$id)!=null?i:"CoreMVF"),$schema:"http://json-schema.org/draft-07/schema#",references:t}));return JSON.stringify(n,null,2)}async compress(t){return this.encode(t).andThen(n=>this.parse(n)).andThenAsync(n=>Ov(n,W(this,Rn))).then(n=>n.mapErr(i=>{var r;return Ja((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}async compressUnsafe(t){return this.encode(t).andThenAsync(n=>Ov(n,W(this,Rn))).then(n=>n.mapErr(i=>{var r;return Ja((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}compressSync(t){return this.encode(t).andThen(n=>this.parse(n)).andThen(n=>Uv(n,W(this,Rn))).mapErr(n=>{var i;return Ja((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}compressUnsafeSync(t){return this.encode(t).andThen(n=>Uv(n,W(this,Rn))).mapErr(n=>{var i;return Ja((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}async decompress(t){return Fv(t,W(this,Rn)).then(n=>n.andThen(i=>this.parse(i)).andThen(i=>this.decode(i)).mapErr(i=>{var r;return Qa((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}async decompressUnsafe(t){return Fv(t,W(this,Rn)).then(n=>n.andThen(i=>this.decode(i)).mapErr(i=>{var r;return Qa((r=W(this,Ct).$id)!=null?r:"CoreMVF",i,[...W(this,zt).values()])}))}decompressSync(t){return Nv(t,W(this,Rn)).andThen(n=>this.parse(n)).andThen(n=>this.decode(n)).mapErr(n=>{var i;return Qa((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}decompressUnsafeSync(t){return Nv(t,W(this,Rn)).andThen(n=>this.decode(n)).mapErr(n=>{var i;return Qa((i=W(this,Ct).$id)!=null?i:"CoreMVF",n,[...W(this,zt).values()])})}};Ct=new WeakMap,xs=new WeakMap,Rn=new WeakMap,zt=new WeakMap,o(Jl,"MVFParser");var Yl=Jl;var vs,Dv=class Dv{constructor(){It(this,vs,[]);this.extend=this.extend.bind(this)}extend(t){return W(this,vs).push(t),this}extendOptional(t){let n=L(x({},t),{schema:p.Partial(t.schema)});return W(this,vs).push(n),this}build(t){return Yl.create(this,void 0,t==null?void 0:t.cspSafe)}get extensions(){return W(this,vs)}};vs=new WeakMap,o(Dv,"MVFParserBuilder");var Ql=Dv;f();f();f();f();var _s=p.Object({geometryId:p.Ref(qt),floorId:p.Ref(_e)},{$id:"GeometryAnchor"}),lB=p.Object({geometryAnchor:p.Ref(_s)}),ec=o((e,t)=>p.Object({geometryAnchors:p.Array(p.Ref(_s),e)},t),"WithGeometryAnchors"),kv=[_s];f();f();f();var jw=o((e,t)=>p.Unsafe(p.Transform(p.String(t)).Decode(n=>e.includes(n)?n:"unknown").Encode(n=>n)),"SafeStringEnumSchema"),Bt=o((e,t)=>{let n=jw(e,t),i=[...e,"unknown"],r=Object.freeze(Object.fromEntries([...e,"unknown"].map(a=>[a,a])));return{schema:n,values:i,record:r,is:o(a=>Object.hasOwn(r,a),"is")}},"SafeStringEnum");var Gw=o(()=>new Ql().extend(Iw).extend(Aw).extend(Ow),"createParser");f();f();f();f();f();f();var tc;(function(e){e.AnnotationNonPointGeometryError="AnnotationNonPointGeometryError",e.AnnotationUnknownSymbolError="AnnotationUnknownSymbolError"})(tc||(tc={}));var Hw=o(e=>{var r;if(e.annotations==null)return Y(!0);let t=gt(e.annotations,s=>s.id,"annotations");if(t.isErr())return t;let n=Tt(e),i=new Set($e((r=e.annotationSymbols)!=null?r:{}));for(let s of $e(e.annotations)){let a=e.annotations[s];if(a!=null)for(let u of a){if(!i.has(u.symbolKey))return J({kind:tc.AnnotationUnknownSymbolError,properties:{annotationId:u.id,symbolKey:u.symbolKey}});let l=n(s,u.geometryId);if(l.isErr())return l;if(l.value.geometry.type!=="Point")return J({kind:tc.AnnotationNonPointGeometryError,properties:{annotationId:u.id,floorId:s,geometryId:u.geometryId}})}}return Y(!0)},"validateAnnotations");var Ww=mt("a","AnnotationId"),Lv=p.Intersect([Kn,p.Object({id:p.Ref(Ww,{description:"The unique identifier for the annotation."}),externalId:p.Optional(p.String({description:"The external identifier for the annotation."})),symbolKey:p.String({description:"The symbol identifier for the annotation."})})],{$id:"AnnotationProperties"}),Zw=p.Object({url:p.String({format:"uri",description:"The URL for the symbol."}),name:p.String({description:"The name of the symbol."})},{$id:"AnnotationSymbol"}),fB=p.Object({annotations:yt(p.Record(_e,p.Array(p.Ref(Lv)),{additionalProperties:!1})),annotationSymbols:yt(p.Record(p.Index(Lv,["symbolKey"]),p.Ref(Zw)))},{$id:"AnnotationsSchema"}),dB=/^annotations\/(.*)\.json$/,Xw={name:"ext:mvf-annotations",schema:fB,intoBundle:o(function*(e){if(e.annotations!=null)for(let t of $e(e.annotations))yield{path:"annotations/".concat(t,".json"),contents:e.annotations[t]};e.annotationSymbols!=null&&(yield{path:"annotation-symbols.json",contents:e.annotationSymbols})},"intoBundle"),fromBundle:o((e,t,n)=>{var r;if(e==="annotation-symbols.json")return{annotationSymbols:n(t)};let i=(r=e.match(dB))==null?void 0:r[1];if(i)return{annotations:{[i]:n(t)}}},"fromBundle"),references:[Ww,Lv,Zw],integrityCheck:Hw};f();f();f();var ii=mt("lcat","LocationCategoryId"),$v=p.Intersect([p.Object({id:p.Ref(ii),parent:p.Optional(p.Ref(ii))}),qi(["name"]),ur],{$id:"LocationCategory"}),qw=[ii,$v];f();f();var no;(function(e){e.UnknownCategoryError="UnknownCategoryError",e.UnknownParentCategoryError="UnknownParentCategoryError",e.UnknownParentLocationError="UnknownParentLocationError"})(no||(no={}));var Kw=o(e=>{var r,s,a,u,l,c,d,h,m;if(e.locationCategories==null&&e.locations==null)return Y(!0);if(e.locationCategories!=null){let y=gt(e.locationCategories,v=>v.id,"locationCategories");if(y.isErr())return y}if(e.locations!=null){let y=gt(e.locations,v=>v.id,"locations");if(y.isErr())return y}if(e.locationInstances!=null){let y=gt(e.locationInstances,v=>v.id,"locationInstances");if(y.isErr())return y}let t=new Set((s=(r=e.locationCategories)==null?void 0:r.map(y=>y.id))!=null?s:[]);for(let y of(a=e.locationCategories)!=null?a:[])if(y.parent!=null&&!t.has(y.parent))return J({kind:no.UnknownParentCategoryError,properties:{categoryId:y.id,parentCategoryId:y.parent}});let n=Tt(e);for(let y of(u=e.locations)!=null?u:[]){for(let v of y.categories)if(!t.has(v))return J({kind:no.UnknownCategoryError,properties:{locationId:y.id,categoryId:v}});for(let v of y.geometryAnchors){let I=n(v.floorId,v.geometryId);if(I.isErr())return I}}let i=new Set((c=(l=e.locations)==null?void 0:l.map(y=>y.id))!=null?c:[]);for(let y of(d=e.locationInstances)!=null?d:[]){if(!i.has(y.parentId))return J({kind:no.UnknownParentLocationError,properties:{locationInstanceId:y.id,parentLocationId:y.parentId}});for(let v of(h=y.categories)!=null?h:[])if(!t.has(v))return J({kind:no.UnknownCategoryError,properties:{locationId:y.id,categoryId:v}});for(let v of(m=y.geometryAnchors)!=null?m:[]){let I=n(v.floorId,v.geometryId);if(I.isErr())return I}}return Y(!0)},"validateLocations");f();var oi=mt("loc","LocationId"),ef=mt("loci","LocationInstanceId"),Yw=p.Object({name:p.String(),url:p.String({format:"uri"})},{$id:"LocationSocial"}),Jw=p.Object({url:p.String({format:"uri"})},{$id:"LocationImage"}),zv=p.Object({label:p.String(),url:p.String({format:"uri"})},{$id:"LocationLink"}),Bv=p.String({pattern:"^[0-2][0-9]:[0-6][0-9](:[0-6][0-9])?$",$id:"OpeningHoursTime"}),Qw=p.Union([p.Literal("Sunday"),p.Literal("Monday"),p.Literal("Tuesday"),p.Literal("Wednesday"),p.Literal("Thursday"),p.Literal("Friday"),p.Literal("Saturday")],{$id:"OpeningHoursDay"}),pB="PublicHolidays",Vv=p.Union([Qw,p.Literal(pB)],{$id:"OpeningHoursDayOrPublicHoliday"}),tf=p.Object({"@type":p.Optional(p.Literal("OpeningHoursSpecification",{description:"The type of opening hours"})),opens:p.Optional(p.Ref(Bv,{description:"The time the opening hours start"})),closes:p.Optional(p.Ref(Bv,{description:"The time the opening hours end"})),dayOfWeek:p.Optional(p.Union([p.Ref(Vv),p.Array(p.Ref(Vv))],{description:"The days of the week the opening hours apply to"})),validFrom:p.Optional(p.String({format:"date",description:"The date the opening hours start, in ISO 8601 format"})),validThrough:p.Optional(p.String({format:"date",description:"The date the opening hours end, in ISO 8601 format"}))},{$id:"OpeningHoursSpecification"}),nf=p.Intersect([p.Object({id:p.Ref(oi),categories:p.Array(p.Ref(ii)),logo:p.Optional(p.String({format:"uri"})),phone:p.Optional(p.String()),social:p.Array(p.Ref(Yw)),images:p.Array(p.Ref(Jw)),links:p.Array(p.Ref(zv)),website:p.Optional(p.Ref(zv)),openingHours:p.Optional(p.Array(p.Ref(tf)))}),qi(["name"]),ec(),ur],{$id:"Location"}),jv=p.Intersect([p.Object({id:p.Ref(ef),parentId:p.Ref(oi)}),p.Partial(p.Omit(nf,["id","parentId","details"])),wn],{$id:"LocationInstance",description:"A location instance is a particular instance of an location that has some properties different from the parent."}),rf=[oi,ef,Yw,Jw,zv,Bv,Qw,Vv,tf,nf,jv];var hB=p.Object({locations:p.Array(p.Ref(nf)),locationCategories:p.Array(p.Ref($v)),locationInstances:p.Optional(p.Array(p.Ref(jv)))},{$id:"LocationsExtensionSchema"}),eM="locations.json",tM="location-categories.json",nM="location-instances.json",rM={name:"ext:locations",schema:hB,intoBundle:o(function*(e){e.locations!=null&&(yield{path:eM,contents:e.locations}),e.locationCategories!=null&&(yield{path:tM,contents:e.locationCategories}),e.locationInstances!=null&&(yield{path:nM,contents:e.locationInstances})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===eM)return{locations:n(t)};if(e===tM)return{locationCategories:n(t)};if(e===nM)return{locationInstances:n(t)}},"fromBundle"),references:[...qw,...rf],integrityCheck:Kw};f();f();var lr;(function(e){e.EnterpriseLocationWithUnknownLocationError="EnterpriseLocationWithUnknownLocationError",e.EnterpriseCategoryWithUnknownLocationCategoryError="EnterpriseCategoryWithUnknownLocationCategoryError",e.InstanceWithUnknownLocationInstanceError="InstanceWithUnknownLocationInstanceError",e.InstanceWithUnknownEnterpriseLocationError="InstanceWithUnknownEnterpriseLocationError",e.EnterpriseLocationWithUnknownSibling="EnterpriseLocationWithUnknownSibling",e.EnterpriseLocationInstanceWithUnknownSibling="EnterpriseLocationInstanceWithUnknownSibling",e.EnterpriseVenueWithUnknownTopLocationError="EnterpriseVenueWithUnknownTopLocationError",e.EnterpriseLocationWithInvalidPrimaryCategory="EnterpriseLocationWithInvalidPrimaryCategory"})(lr||(lr={}));var iM=o(e=>{var m,y,v,I,T,U,D,w,S,A,j,N,H,G,ce,ue,he,Ge,Oe,Ue;if(e.cms==null)return Y(!0);let t=e.cms,n=gt(e.cms.categories,V=>V.id,"cms.categories");if(n.isErr())return n;let i=new Set((y=(m=e.locationCategories)==null?void 0:m.map(V=>V.id))!=null?y:[]);for(let V of(v=t.categories)!=null?v:[])if(!i.has(V.categoryId))return J({kind:lr.EnterpriseCategoryWithUnknownLocationCategoryError,properties:{enterpriseCategoryId:V.id,locationCategoryId:V.categoryId}});let r=gt(e.cms.locations,V=>V.id,"cms.locations");if(r.isErr())return r;let s=new Map((T=(I=e.locations)==null?void 0:I.map(V=>[V.id,V]))!=null?T:[]);for(let V of(U=t.locations)!=null?U:[]){if(!s.has(V.locationId))return J({kind:lr.EnterpriseLocationWithUnknownLocationError,properties:{enterpriseLocationId:V.id,locationId:V.locationId}});for(let ne of(D=V.siblingGroups)!=null?D:[])for(let le of(w=ne.siblings)!=null?w:[])if(!s.has(le))return J({kind:lr.EnterpriseLocationWithUnknownSibling,properties:{enterpriseLocationId:V.id,siblingLocationId:le,label:ne.label}});if(V.primaryCategory!=null){let ne=s.get(V.locationId);if(ne!=null&&!ne.categories.includes(V.primaryCategory))return J({kind:lr.EnterpriseLocationWithInvalidPrimaryCategory,properties:{enterpriseLocationId:V.id,locationId:V.locationId,primaryCategory:V.primaryCategory}})}}if(((S=t.venue)==null?void 0:S.topLocations)!=null){for(let V of t.venue.topLocations)if(!s.has(V))return J({kind:lr.EnterpriseVenueWithUnknownTopLocationError,properties:{locationId:V}})}let a=new Set((j=(A=e.cms.locations)==null?void 0:A.map(V=>V.id))!=null?j:[]),u=gt(e.cms.locationInstances,V=>V.id,"cms.locationInstances");if(u.isErr())return u;let l=new Set((H=(N=e.locationInstances)==null?void 0:N.map(V=>V.id))!=null?H:[]);for(let V of(G=t.locationInstances)!=null?G:[]){if(!a.has(V.parentId))return J({kind:lr.InstanceWithUnknownEnterpriseLocationError,properties:{enterpriseLocationInstanceId:V.id,enterpriseLocationId:V.parentId}});if(!l.has(V.locationInstanceId))return J({kind:lr.InstanceWithUnknownLocationInstanceError,properties:{enterpriseLocationInstanceId:V.id,locationInstanceId:V.locationInstanceId}});for(let ne of(ce=V.siblingGroups)!=null?ce:[])for(let le of(ue=ne.siblings)!=null?ue:[])if(!s.has(le))return J({kind:lr.EnterpriseLocationInstanceWithUnknownSibling,properties:{enterpriseLocationInstanceId:V.id,siblingLocationId:le,label:ne.label}})}let c=cr(e),d=Tt(e),h=gt(e.cms.floorText,V=>V.properties.id,"cms.floorText");if(h.isErr())return h;for(let[V,ne]of Qt((he=t.floorText)!=null?he:{})){let le=c(V);if(le.isErr())return le;for(let oe of ne.features){if(!("geometryId"in oe.properties))continue;let Me=d(V,oe.properties.geometryId);if(Me.isErr())return Me}}for(let[V,ne]of Qt((Ge=t.textures)!=null?Ge:{})){let le=c(V);if(le.isErr())return le;for(let oe of ne){let Me=d(V,oe.geometryId);if(Me.isErr())return Me}}for(let[V,ne]of Qt((Oe=t.layers)!=null?Oe:{})){let le=c(V);if(le.isErr())return le;for(let oe of $e(ne!=null?ne:{})){let Me=d(V,oe);if(Me.isErr())return Me}}for(let[V,ne]of Qt((Ue=t.textAreas)!=null?Ue:{})){let le=c(V);if(le.isErr())return le;for(let oe of ne.features)if("geometryId"in oe.properties){let Me=d(V,oe.properties.geometryId);if(Me.isErr())return Me}}return Y(!0)},"validateCMS");f();f();var nc=mt("el","EnterpriseLocationId"),Gv=mt("ec","EnterpriseCategoryId"),Hv=mt("eli","EnterpriseLocationInstanceId"),Wv=mt("ev","EnterpriseVenueId"),Zv=mt("eft","EnterpriseFloorTextId"),oM=[nc,Gv,Hv,Wv,Zv];var sM=p.Object({id:p.Ref(Gv),categoryId:p.Ref(ii),color:p.Optional(p.String()),sortOrder:p.Number(),iconFromDefaultList:p.Optional(p.Union([p.String(),p.Null()])),picture:p.Optional(p.String({format:"uri",description:"The category's picture"}))},{$id:"EnterpriseCategory"}),Xv=p.Object({categories:p.Optional(p.Array(p.Ref(sM)))},{$id:"EnterpriseCategoriesSchema"}),aM=[sM,Xv];f();var of=Bt(["left","center","right"]),mB=of.schema,iye=of.values,oye=of.record,sye=of.is,qv=p.Object({id:p.Ref(Zv),text:p.String(),visible:p.Boolean({default:!0}),fontSize:p.Number({default:12,exclusiveMinimum:0}),fontFamily:p.String({default:"Droid Sans"}),color:p.String({default:"black"}),rotation:p.Number({minimum:0,maximum:360}),align:mB},{$id:"FloorTextCommonProperties"}),Kv=p.Intersect([p.Ref(qv),Kn],{$id:"AnchoredFloorTextProperties"}),Yv=p.Intersect([p.Ref(qv),p.Object({verticalOffset:p.Number()})],{$id:"FloatingFloorTextProperties"}),cM=p.Union([p.Ref(Kv),p.Ref(Yv)],{$id:"FloorTextProperties"}),uM=Nt(Xt,p.Ref(cM),{$id:"FloorTextFeature"}),gB=Nt(Xt,p.Ref(Kv),{$id:"AnchoredFloorTextFeature"}),yB=Nt(Xt,p.Ref(Yv),{$id:"FloatingFloorTextFeature"}),lM=an(p.Ref(uM),{$id:"EnterpriseFloorTextFeatureCollection"}),fM=p.Record(_e,p.Ref(lM),{$id:"EnterpriseFloorTextCollectionsByFloor",additionalProperties:!1}),Jv=p.Object({floorText:p.Optional(p.Ref(fM))},{$id:"EnterpriseFloorTextSchema"}),dM=[qv,Kv,Yv,cM,uM,gB,yB,lM,fM,Jv];f();var pM=yt(p.Record(qt,p.String({minLength:1}),{additionalProperties:!1,$id:"EnterpriseLayers"})),hM=yt(p.Record(_e,p.Ref(pM),{additionalProperties:!1,$id:"EnterpriseLayersByFloor"})),Qv=p.Object({layers:p.Optional(p.Ref(hM))},{$id:"EnterpriseLayersSchema"}),mM=[pM,hM,Qv];f();f();f();var{schema:gM,values:yye,record:xye,is:vye}=Bt(["reference-point","checkpoint","checkpoint-passport","parent"],{$id:"EnterpriseSiblingGroupType"}),sf=Bt(["closed-temporarily","new","pop-up","coming-soon","relocated"]),xB=sf.schema,_ye=sf.values,bye=sf.record,Sye=sf.is,e_=p.Object({type:xB,start:p.Optional(p.String({format:"date",description:"The start date of the state"})),end:p.Optional(p.String({format:"date",description:"The end date of the state"}))},{$id:"LocationState",description:"The state of a location. Start and end dates are optional."}),t_=p.Object({label:p.String(),siblings:p.Array(p.Ref(oi)),type:p.Optional(p.Ref(gM)),subtype:p.Optional(p.String())},{$id:"SiblingGroup"}),af=p.Object({name:p.String(),code:p.String()},{$id:"Language"}),yM=[e_,t_,af,gM];var cf=p.Object({id:p.Ref(nc),locationId:p.Ref(oi),cmsId:p.String(),type:p.String(),sortOrder:p.Number(),tags:p.Optional(p.Array(p.String())),picture:p.Optional(p.String({format:"uri",description:"The picture of the location"})),states:p.Optional(p.Array(p.Ref(e_),{description:"The location's state. No more than one state should be active at a time, and all but at most one should have dates set"})),siblingGroups:p.Optional(p.Array(p.Ref(t_))),gallery:p.Optional(p.Array(p.Object({caption:p.Optional(p.String()),image:p.String({format:"uri"}),embeddedUrl:p.Optional(p.String({format:"uri",description:"The URL to link from the image"}))},{description:"The location's image gallery"}),{description:"The location's image gallery"})),showFloatingLabelWhenImagePresent:p.Optional(p.Boolean({description:"Whether to show the flat label when an image is present"})),amenity:p.Optional(p.String({description:"The location's amenity type. Only set if the location is an amenity"})),showLogo:p.Optional(p.Boolean({description:"Whether to show the logo of the location"})),primaryCategory:p.Optional(p.Ref(ii)),headerImage:p.Optional(p.String({format:"uri",description:"The location's header image"}))},{$id:"EnterpriseLocation"}),n_=p.Object({locations:p.Optional(p.Array(p.Ref(cf)))},{$id:"EnterpriseLocationsSchema"}),xM=[cf,n_];var vM=p.Intersect([p.Object({id:p.Ref(Hv),parentId:p.Ref(nc),locationInstanceId:p.Ref(ef)}),p.Partial(p.Omit(cf,["id","parentId","locationId"]))],{$id:"EnterpriseLocationInstance",description:"A locationInstance is a particular instance of an Enterprise Location that has some properties different from the parent."}),r_=p.Object({locationInstances:p.Optional(p.Array(p.Ref(vM)))},{$id:"EnterpriseLocationInstancesSchema"}),_M=[vM,r_];f();var uf=Bt(["near","center"],{$id:"EnterpriseTextAreaAlignment"}),bM=uf.schema,Bye=uf.values,Vye=uf.record,jye=uf.is,i_=p.Object({maxWidth:p.Number({exclusiveMinimum:0,description:"The maximum width of the label, in meters."}),maxHeight:p.Number({exclusiveMinimum:0,description:"The maximum height of the label, in meters."}),align:p.Ref(bM),rotation:p.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"EnterpriseBaseTextAreaProperties"}),SM=p.Intersect([p.Ref(i_),Kn],{$id:"EnterpriseAnchoredTextAreaProperties"}),IM=p.Intersect([p.Ref(i_),p.Object({verticalOffset:p.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"EnterpriseFloatingTextAreaProperties"}),wM=p.Union([SM,IM],{$id:"EnterpriseTextAreaProperties"}),MM=Nt(p.Ref(Xt),wM,{$id:"EnterpriseTextAreaFeature"}),EM=an(p.Ref(MM),{$id:"EnterpriseTextAreaCollection"}),TM=p.Record(_e,p.Ref(EM),{$id:"EnterpriseTextAreasByFloor",additionalProperties:!1}),AM=p.Object({textAreas:p.Optional(p.Ref(TM))},{$id:"EnterpriseTextAreasSchema"}),PM=[bM,i_,SM,IM,wM,MM,EM,TM];f();var o_=p.Object({u:p.Number(),v:p.Number()},{$id:"EnterpriseTextureUV"}),lf=Bt(["top","side"],{$id:"EnterpriseTextureFace"}),RM=lf.schema,Xye=lf.values,qye=lf.record,Kye=lf.is,ff=Bt(["inside","outside","both"],{$id:"EnterpriseTextureSurface"}),CM=ff.schema,Yye=ff.values,Jye=ff.record,Qye=ff.is,OM=p.Tuple([qo,Ko,qo,Ko],{$id:"EnterpriseTextureBounds"}),UM=p.Intersect([p.Object({repeat:p.Ref(o_),offset:p.Ref(o_),rotation:p.Number({minimum:0,maximum:360}),path:p.String({format:"uri"}),face:p.Ref(RM),surface:p.Ref(CM),bounds:p.Ref(OM)},{$id:"EnterpriseTextureProperties"}),Kn],{$id:"EnterpriseTexture"}),FM=p.Array(p.Ref(UM),{$id:"EnterpriseTextures"}),NM=p.Record(_e,p.Ref(FM),{$id:"EnterpriseTexturesByFloor",additionalProperties:!1}),s_=p.Object({textures:p.Optional(p.Ref(NM))},{$id:"EnterpriseTexturesSchema"}),kM=[UM,FM,s_,o_,RM,CM,OM,NM];f();var{schema:DM,values:axe,record:cxe,is:uxe}=Bt(["agriculture","airport","casino","city-district","convention-center","entertainment","event-centre","first-responder-building","government-building","grocery-store","healthcare","higher-education","hotel","library","manufacturing","medical-centre","mixed-use","multifamily","museum","office-building","oil-and-energy","other","parking-facility","religious-institution","resort","retail-store","schools-k-12","shopping-mall","stadium-or-arena","storage-facility","theme-park","transit","transportation-hub","warehousing"],{$id:"EnterpriseVenueType"}),LM=p.Intersect([p.Object({id:p.Ref(Wv),slug:p.String(),defaultLanguage:p.Ref(af),languages:p.Array(p.Ref(af)),countrycode:p.Optional(p.String()),logo:p.Optional(p.String({format:"uri"})),mappedinWebUrl:p.Optional(p.String({format:"uri"})),topLocations:p.Optional(p.Array(p.Ref(oi))),operationHours:p.Optional(p.Array(p.Ref(tf))),coverImage:p.Optional(p.String({format:"uri"})),type:p.Optional(p.Ref(DM))}),qi(["name"]),ur],{$id:"EnterpriseVenue"}),a_=p.Object({venue:p.Optional(p.Ref(LM))},{$id:"EnterpriseVenueSchema"}),$M=[LM,a_,DM];var BM=p.Intersect([a_,n_,r_,Xv,s_,Jv,Qv,AM],{$id:"CMSProperties"}),zM=p.Object({cms:p.Optional(p.Ref(BM))},{$id:"CMSExtensionSchema"}),vB=/^cms\/(?:([^/]+)\/)?([^/]+)\.(?:json|geojson)$/,VM={name:"ext:cms",schema:zM,intoBundle:o(function*(e){var n,i,r,s,a,u;if(e.cms==null)return;let t=e.cms;for(let l of $e(t))switch(l){case"floorText":for(let c of $e((n=t.floorText)!=null?n:{}))yield{path:"cms/floorText/".concat(c,".geojson"),contents:((i=t.floorText)!=null?i:{})[c]};continue;case"textures":for(let c of $e((r=t.textures)!=null?r:{}))yield{path:"cms/textures/".concat(c,".json"),contents:((s=t.textures)!=null?s:{})[c]};continue;case"textAreas":for(let c of $e((a=t.textAreas)!=null?a:{}))yield{path:"cms/textAreas/".concat(c,".geojson"),contents:((u=t.textAreas)!=null?u:{})[c]};continue;default:yield{path:"cms/".concat(l,".json"),contents:t[l]};continue}},"intoBundle"),fromBundle:o((e,t,n)=>{let i=e.match(vB);if(!i)return;let[,r,s]=i,a=n(t);switch(r){case"floorText":case"textures":case"textAreas":return{cms:{[r]:{[s]:a}}};default:return{cms:{[s]:a}}}},"fromBundle"),references:[BM,zM,...$M,...xM,..._M,...aM,...kM,...mM,...dM,...PM,...oM,...yM,...rf],integrityCheck:iM};f();f();f();f();var fr;(function(e){e.NavigationFlagMissingDeclaration="NavigationFlagMissingDeclaration",e.NavigationFlagDuplicateBit="NavigationFlagDuplicateBit",e.NavigationFlagIncorrectFlagsLength="NavigationFlagIncorrectFlagsLength",e.NavigationFlagValueTooBig="NavigationFlagValueTooBig"})(fr||(fr={}));var jM=o(e=>{let{navigationFlags:t}=e;if(!t||Object.keys(t).length===0)return Y(!0);let n=Object.entries(t).map(([s,a])=>x({key:s},a)).sort((s,a)=>s.index!==a.index?s.index-a.index:s.bit-a.bit),i=0,r=-1;for(let s of n){if(s.bit===r)return J({kind:fr.NavigationFlagDuplicateBit,properties:{index:s.index,bit:s.bit,path:"navigationFlags.".concat(s.key)}});if(s.index!=i){if(r!=31)return J({kind:fr.NavigationFlagMissingDeclaration,properties:{index:i,bit:r+1,path:"navigationFlags"}});if(s.index!=i+1||s.bit!=0)return J({kind:fr.NavigationFlagMissingDeclaration,properties:{index:i+1,bit:0,path:"navigationFlags"}});i=s.index,r=0}else{if(s.bit!==r+1)return J({kind:fr.NavigationFlagMissingDeclaration,properties:{index:s.index,bit:r+1,path:"navigationFlags"}});r=s.bit}}return Y(!0)},"validateNavigationFlags");f();var GM=2**32-1,rc=o(e=>{var r;let t=Object.keys((r=e.navigationFlags)!=null?r:{}).length;if(t===0)return{index:-1,flag:0};let n=Math.floor(t/32),i=t%32;return{index:n,flag:2**i-1}},"determineMaxNavigationFlags"),bs=o((e,t,n)=>{if(t.index==-1&&e.length===0)return Y(!0);let i=t.flag>0||t.index===-1?t.index+1:t.index;if(e.length!==i)return J({kind:fr.NavigationFlagIncorrectFlagsLength,properties:{expected:i,actual:e.length,path:n}});for(let r=0;r<e.length;r++){let s=e[r];if(r<t.index){if(s>GM)return J({kind:fr.NavigationFlagValueTooBig,properties:{index:r,flagValue:s,expectedMaxFlagValue:GM,path:n}});continue}else if(s>t.flag)return J({kind:fr.NavigationFlagValueTooBig,properties:{index:r,flagValue:s,expectedMaxFlagValue:t.flag,path:n}})}return Y(!0)},"validateFlags");var _B=p.Object({index:p.Integer({description:"The index of the flag in a flags array.",minimum:0}),bit:p.Integer({description:"The bit position of the flag in a flag's bitfield.",minimum:0,maximum:31})},{$id:"NavigationFlagDeclarationCore"}),HM=p.Intersect([_B,wn],{$id:"NavigationFlagDeclaration",description:'A NavigationFlagDeclaration describes the relationship between a "key" that a developer might use to wayfind using that flag, and the index and bit position in an object\'s `flags` array.'});var WM=p.Record(p.String(),HM,{$id:"NavigationFlagDeclarations",description:"Any well known and custom flags present in the MVF"}),bB=p.Object({navigationFlags:p.Ref(WM)},{$id:"NavigationFlagsSchema"}),df=p.Array(p.Integer({minimum:0,maximum:Math.pow(2,32)-1}),{$id:"Flags"}),c_=p.Object({flags:p.Ref(df)},{$id:"WithFlags"}),ro=p.Intersect([_s,c_],{$id:"FlaggedGeometryAnchor"}),SB=p.Object({geometryAnchor:ro},{$id:"WithFlaggedGeometryAnchor"}),IB=p.Object({geometryAnchors:p.Array(ro)},{$id:"WithFlaggedGeometryAnchors"}),ZM={name:"ext:mvf-navigation-flags",schema:bB,intoBundle:o(function*(e){e.navigationFlags!=null&&(yield{path:"navigationFlags.json",contents:e.navigationFlags})},"intoBundle"),fromBundle:o((e,t,n)=>e!=="navigationFlags.json"?void 0:{navigationFlags:n(t)},"fromBundle"),references:[HM,WM,df,ro,SB,IB],integrityCheck:jM};f();var XM=o(e=>{if(e.connections==null)return Y(!0);let t=gt(e.connections,r=>r.id,"connections");if(t.isErr())return t;let n=Tt(e),i=rc(e);for(let[r,s]of e.connections.entries()){for(let[a,u]of s.entrances.entries()){let l=n(u.floorId,u.geometryId);if(l.isErr())return l;let c=bs(u.flags,i,"connections[".concat(r,"].entrances[").concat(a,"]"));if(c.isErr())return c}for(let[a,u]of s.exits.entries()){let l=n(u.floorId,u.geometryId);if(l.isErr())return l;let c=bs(u.flags,i,"connections[".concat(r,"].exits[").concat(a,"]"));if(c.isErr())return c}}return Y(!0)},"validateConnections");var KM=mt("c","ConnectionId"),{schema:wB,values:ave,record:cve,is:uve}=Bt(["elevator","escalator","travelator","stairs","door","ramp","ladder"],{$id:"ConnectionType"}),YM=wB;var JM=p.Intersect([p.Object({id:p.Ref(KM,{description:"The unique identifier for the connection."}),entrances:p.Array(p.Ref(ro)),exits:p.Array(p.Ref(ro)),entryCost:p.Number({description:"The cost to enter the connection.",minimum:0}),floorCostMultiplier:p.Number({description:"The cost multiplier for each floor transitioned.",minimum:1}),type:p.Ref(YM,{description:"The type of connection."})}),wn,ur],{$id:"ConnectionsProperties"}),QM=p.Array(p.Ref(JM),{$id:"ConnectionsCollection"}),MB=p.Object({connections:p.Ref(QM)},{$id:"ConnectionsExtensionSchema"}),qM="connections.json",eE={name:"ext:connections",schema:MB,intoBundle:o(function*(e){e.connections!=null&&(yield{path:qM,contents:e.connections})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===qM)return{connections:n(t)}},"fromBundle"),references:[JM,QM,YM,KM,ro,df],integrityCheck:XM};f();f();var tE=o(e=>{if(e.defaultStyle==null)return Y(!0);let t=Tt(e);for(let n of Object.values(e.defaultStyle))if(n!=null)for(let i of n.geometryAnchors){let r=t(i.floorId,i.geometryId);if(r.isErr())return r}return Y(!0)},"validateDefaultStyle");var nE=p.Intersect([ec(),ur,p.Object({altitude:p.Number({description:"How far off the bottom of the floor the objects with this style should be drawn, in meters."}),color:p.String({pattern:"^#[0-9a-fA-F]{6}$",description:"Color should be represented with a hash (#), followed by 6 hexadecimal digits. ex: #RRGGBB"}),height:p.Number({minimum:0,description:"The height of the objects belonging to this layer, in meters."}),opacity:p.Number({minimum:0,maximum:1,description:"The opacity of the objects belonging to this layer, from 0 to 1."}),buffer:p.Number({description:"The buffer amount to apply to the geometry, in meters. This can be used to inflate line string geometry for walls, but might also be applicable as a way to grow or shrink polygon geometry for aesthetic purposes. Can be negative."}),hidden:p.Optional(p.Boolean({description:"Whether or not the objects with this style should be hidden."}))})],{$id:"DefaultStyle"}),rE=p.Record(p.String(),p.Ref(nE),{$id:"DefaultStyleCollection",additionalProperties:!1}),EB=p.Object({defaultStyle:p.Ref(rE)},{$id:"DefaultStyleSchema"}),iE={name:"ext:mvf-default-style",schema:EB,intoBundle:o(function*(e){e.defaultStyle!=null&&(yield{path:"default-style.json",contents:e.defaultStyle})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="default-style.json")return{defaultStyle:n(t)}},"fromBundle"),references:[nE,rE],integrityCheck:tE};f();f();f();f();var pf;(function(e){e.InvalidDefaultFloorError="InvalidDefaultFloorError"})(pf||(pf={}));var oE=o(e=>{if(e.floorStacks==null)return Y(!0);let t=gt(e.floorStacks,i=>i.id,"floorStacks");if(t.isErr())return t;let n=cr(e);for(let i of e.floorStacks){for(let r of i.floors){let s=n(r);if(s.isErr())return s}if(i.defaultFloor!=null&&!i.floors.includes(i.defaultFloor))return J({kind:pf.InvalidDefaultFloorError,properties:{floorStackId:i.id,floorId:i.defaultFloor}})}return Y(!0)},"validateFloorStacks");var ic=mt("fs","FloorStackId"),aE=p.Intersect([p.Object({id:p.Ref(ic,{description:"The unique identifier for the floor stack."}),floors:p.Array(p.Ref(_e),{uniqueItems:!0,minItems:1,description:"The floors that are part of this floor stack."}),defaultFloor:p.Optional(p.Ref(_e,{description:"The default floor for the floor stack."}))}),wn],{$id:"FloorStacksProperties"}),cE=p.Array(p.Ref(aE),{$id:"FloorStackCollection"}),TB=p.Object({floorStacks:p.Ref(cE)},{$id:"FloorStackExtensionSchema"}),sE="floor-stacks.json",uE={name:"ext:floor-stacks",schema:TB,intoBundle:o(function*(e){e.floorStacks!=null&&(yield{path:sE,contents:e.floorStacks})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===sE)return{floorStacks:n(t)}},"fromBundle"),references:[ic,aE,cE],integrityCheck:oE};f();f();var oc;(function(e){e.MissingFloorStackError="MissingFloorStackError",e.UnknownFloorStackError="UnknownFloorStackError"})(oc||(oc={}));var lE=o(e=>{if(e.facade==null)return Y(!0);if(e.floorStacks==null)return J({kind:oc.MissingFloorStackError,properties:null});let t=new Set(e.floorStacks.map(r=>r.id)),n=Tt(e),i=cr(e);for(let[r,s]of Qt(e.facade)){if(s==null)continue;let a=i(r);if(a.isErr())return a;for(let u of s){let{floorStackId:l,geometryIds:c}=u;if(!t.has(l))return J({kind:oc.UnknownFloorStackError,properties:{floorStackId:l}});for(let d of c){let h=n(r,d);if(h.isErr())return h}}}return Y(!0)},"validateFacade");var fE=p.Intersect([p.Object({floorStackId:p.Ref(ic)}),ms],{$id:"Facade"}),AB=p.Object({facade:yt(p.Record(_e,p.Array(p.Ref(fE)),{additionalProperties:!1}))},{$id:"FacadeExtensionSchema"}),PB=/^facade\/(.*)\.json$/,dE={name:"ext:facade",schema:AB,intoBundle:o(function*(e){if(e.facade!=null)for(let t of $e(e.facade))yield{path:"facade/".concat(t,".json"),contents:e.facade[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(PB))==null?void 0:r[1];if(i)return{facade:{[i]:n(t)}}},"fromBundle"),references:[ic,fE],integrityCheck:lE};f();f();var pE=o(e=>{if(e.floorImages==null)return Y(!0);let t=Tt(e);for(let[n,i]of Qt(e.floorImages))if(i!=null)for(let r of i.features){if(!("geometryId"in r.properties))continue;let s=r.properties.geometryId,a=t(n,s);if(a.isErr())return a}return Y(!0)},"validateFloorImages");var u_=p.Object({path:p.String({format:"uri",description:"The path to the image. This will be a remote URL."}),width:p.Number({minimum:0,description:"The width of the image when represented on the map, in meters."}),height:p.Number({minimum:0,description:"The height of the image when represented on the map, in meters."}),rotation:p.Number({minimum:0,maximum:360,description:"Rotation in degrees, about the center of the image. North is 0, east is 90."})},{$id:"BaseFloorImageProperties"}),hE=p.Intersect([p.Ref(u_),Kn],{$id:"AnchoredFloorImageProperties"}),mE=p.Intersect([p.Ref(u_),p.Object({verticalOffset:p.Number({minimum:0,description:"How high to position the image, in meters, relative to the ground plane."})})],{$id:"FloatingFloorImageProperties"}),gE=p.Union([hE,mE],{$id:"FloorImageProperties"}),yE=Nt(p.Ref(Xt),gE,{$id:"FloorImageFeature"}),xE=an(p.Ref(yE),{$id:"FloorImageCollection"}),RB=p.Object({floorImages:yt(p.Record(_e,p.Ref(xE),{additionalProperties:!1}))},{$id:"FloorImagesExtensionSchema"}),CB=/^floorImages\/(.*)\.geojson$/,vE={name:"ext:floor-images",schema:RB,intoBundle:o(function*(e){if(e.floorImages!=null)for(let t of $e(e.floorImages))yield{path:"floorImages/".concat(t,".geojson"),contents:e.floorImages[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(CB))==null?void 0:r[1];if(i)return{floorImages:{[i]:n(t)}}},"fromBundle"),references:[u_,hE,mE,gE,yE,xE],integrityCheck:pE};f();f();var _E=o(e=>{if(e.kinds==null)return Y(!0);let t=Tt(e);for(let[n,i]of Qt(e.kinds))if(i!=null)for(let r of $e(i)){let s=t(n,r);if(s.isErr())return s}return Y(!0)},"validateKinds");var{values:C_e,schema:OB,record:O_e,is:U_e}=Bt(["room","hallway","wall","object","poi","area","window"],{$id:"Kind"}),bE=OB;var SE=yt(p.Record(qt,p.Ref(bE),{additionalProperties:!1,$id:"GeometryKinds"})),UB=p.Object({kinds:yt(p.Record(_e,p.Ref(SE),{additionalProperties:!1}))},{$id:"KindsExtensionSchema"}),FB=/^kinds\/(.*)\.json$/,IE={name:"ext:kinds",schema:UB,intoBundle:o(function*(e){if(e.kinds!=null)for(let t of $e(e.kinds))yield{path:"kinds/".concat(t,".json"),contents:e.kinds[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(FB))==null?void 0:r[1];if(i)return{kinds:{[i]:n(t)}}},"fromBundle"),references:[bE,SE],integrityCheck:_E};f();f();f();var sc;(function(e){e.UnknownNeighbor="UnknownNeighbor",e.SelfReference="SelfReference"})(sc||(sc={}));var wE=o(e=>{if(e.nodes==null)return Y(!0);let t=gt(e.nodes,r=>r.properties.id,"nodes");if(t.isErr())return t;let n=Tt(e),i=rc(e);for(let[r,s]of Qt(e.nodes)){if(s==null)continue;let a=new Set(s.features.map(u=>u.properties.id));for(let[u,l]of s.features.entries()){for(let c of l.properties.geometryIds){let d=n(r,c);if(d.isErr())return d}for(let[c,d]of l.properties.neighbors.entries()){if(!a.has(d.id))return J({kind:sc.UnknownNeighbor,properties:{floorId:r,nodeId:l.properties.id,neighborId:d.id}});if(d.id===l.properties.id)return J({kind:sc.SelfReference,properties:{floorId:r,nodeId:l.properties.id}});let h=bs(d.flags,i,'nodes["'.concat(r,'"].features[').concat(u,"].properties.neighbors[").concat(c,"]"));if(h.isErr())return h}}}return Y(!0)},"validateNodes");var l_=mt("n","NodeId"),ME=p.Intersect([p.Object({id:p.Ref(l_,{description:"The unique identifier for the node."}),extraCost:p.Number({minimum:0,description:"The extra cost to traverse to the node, above the straight-line distance."})}),c_],{$id:"NodeNeighbor"}),EE=p.Intersect([p.Object({id:p.Ref(l_,{description:"The unique identifier for the node."}),neighbors:p.Array(p.Ref(ME),{description:"The neighbors of the node."})}),ms],{$id:"NodeProperties"}),TE=Nt(p.Ref(Xt),EE,{$id:"NodeFeature"}),AE=an(p.Ref(TE),{$id:"NodeCollection"}),NB=p.Object({nodes:yt(p.Record(_e,p.Ref(AE),{additionalProperties:!1}))},{$id:"NodesExtensionSchema"}),kB=/^nodes\/(.*)\.(geo)?json$/,PE={name:"ext:nodes",schema:NB,intoBundle:o(function*(e){if(e.nodes!=null)for(let t of $e(e.nodes))yield{path:"nodes/".concat(t,".geojson"),contents:e.nodes[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var r;let i=(r=e.match(kB))==null?void 0:r[1];if(i)return{nodes:{[i]:n(t)}}},"fromBundle"),references:[l_,ME,EE,TE,AE],integrityCheck:wE};f();f();f();var hf;(function(e){e.FloorInFloorStackError="FloorInFloorStackError"})(hf||(hf={}));var RE=o(e=>{if(e.outdoors==null)return Y(!0);let t=cr(e);for(let n of e.outdoors.floors){let i=t(n);if(i.isErr())return i;if(e.floorStacks!=null){for(let r of e.floorStacks)if(r.floors.includes(n))return J({kind:hf.FloorInFloorStackError,properties:{floorId:n,floorStackId:r.id}})}}return Y(!0)},"validateOutdoors");var OE=p.Object({floors:p.Array(p.Ref(_e),{uniqueItems:!0,description:"A list of floor IDs that should be considered to contain outdoor features."})},{$id:"Outdoors"}),DB=p.Object({outdoors:p.Ref(OE)},{$id:"OutdoorsExtensionSchema"}),CE="outdoors.json",UE={name:"ext:outdoors",schema:DB,intoBundle:o(function*(e){e.outdoors!=null&&(yield{path:CE,contents:e.outdoors})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e===CE)return{outdoors:n(t)}},"fromBundle"),references:[OE],integrityCheck:RE};f();f();f();var mf;(function(e){e.TilesetDuplicateKeyError="TilesetDuplicateKeyError"})(mf||(mf={}));var FE=o(e=>{if(e.tileset==null)return Y(!0);let t=new Set;if(t.add(e.tileset.default.key),e.tileset.others)for(let n of e.tileset.others){if(t.has(n.key))return J({kind:mf.TilesetDuplicateKeyError,properties:{key:n.key}});t.add(n.key)}return Y(!0)},"validateTilesets");var f_=p.Object({key:p.String({minLength:1,description:"Unique identifier for the tileset style."}),name:p.String({minLength:1,description:"Display name of the tileset style."}),url:p.String({format:"uri",description:"URL of the tileset style."})},{$id:"TilesetStyle",description:"A tileset style definition."}),NE=p.Object({default:p.Ref(f_,{description:"The default tileset style, which should be used."}),others:p.Optional(p.Array(p.Ref(f_,{description:"Additional tileset styles that can be used."})))},{$id:"TilesetCollection"}),LB=p.Object({tileset:p.Ref(NE)},{$id:"TilesetExtensionSchema"}),kE={name:"ext:mvf-tileset",schema:LB,intoBundle:o(function*(e){e.tileset!=null&&(yield{path:"tileset.json",contents:e.tileset})},"intoBundle"),fromBundle:o((e,t,n)=>{if(e==="tileset.json")return{tileset:n(t)}},"fromBundle"),references:[f_,NE],integrityCheck:FE};f();var DE=p.Object({},{$id:"WalkableProperties"}),LE=p.Object({},{$id:"NonWalkableProperties"}),$E=yt(p.Record(qt,p.Ref(DE),{$id:"WalkableGeometries",additionalProperties:!1})),zE=yt(p.Record(qt,p.Ref(LE),{$id:"NonWalkableGeometries",additionalProperties:!1})),$B=p.Object({walkable:yt(p.Record(_e,p.Ref($E),{additionalProperties:!1})),nonwalkable:yt(p.Record(_e,p.Ref(zE),{additionalProperties:!1}))},{$id:"TraversabilitySchema"}),zB=/^walkable\/(.*)\.json$/,BB=/^nonwalkable\/(.*)\.json$/,BE={name:"ext:mvf-traversability",schema:$B,intoBundle:o(function*(e){if(e.walkable!=null)for(let t of $e(e.walkable))yield{path:"walkable/".concat(t,".json"),contents:e.walkable[t]};if(e.nonwalkable!=null)for(let t of $e(e.nonwalkable))yield{path:"nonwalkable/".concat(t,".json"),contents:e.nonwalkable[t]}},"intoBundle"),fromBundle:o((e,t,n)=>{var s,a;let i=(s=e.match(zB))==null?void 0:s[1];if(i!=null)return{walkable:{[i]:n(t)}};let r=(a=e.match(BB))==null?void 0:a[1];if(r!=null)return{nonwalkable:{[r]:n(t)}}},"fromBundle"),references:[DE,LE,$E,zE]};f();f();f();f();f();f();f();f();f();f();f();var WB=dT(GE(),1);f();f();f();f();var HE=Gw().extendOptional(ZM).extendOptional(PE).extendOptional(eE).extendOptional(IE).extendOptional(BE).extendOptional(iE).extendOptional(uE).extendOptional(UE).extendOptional(kE).extendOptional(vE).extendOptional(dE).extendOptional(Xw).extendOptional(rM).extendOptional(VM).build({cspSafe:!0}).expect("Invalid parser, this should never happen. Likely a bug in the MVFv2 library, or one of the extensions.");f();f();var qB=Object.freeze({baseUri:"https://app.mappedin.com/",baseAuthUri:"https://app.mappedin.com/",analyticsBaseUri:"https://api-gateway.mappedin.com/track-analytics/a/",tileServerUri:"https://tiles-cdn.mappedin.com/styles/mappedin/style.json"}),iIe=Object.freeze(L(x({},qB),{baseUri:"https://api-gateway.mappedin.com/",baseAuthUri:"https://auth.mappedin.com/"})),oIe=Object.freeze({baseUri:"https://api-gateway.eu.mappedin.com/",baseAuthUri:"https://auth.eu.mappedin.com/",analyticsBaseUri:"https://api-gateway.eu.mappedin.com/track-analytics/a/",tileServerUri:"https://tiles-cdn.eu.mappedin.com/styles/mappedin/style.json"}),sIe=Object.freeze({baseUri:"https://api-gateway-staging.mappedin.net/",baseAuthUri:"https://auth-staging.mappedin.net/",analyticsBaseUri:"https://api-gateway-staging.mappedin.net/track-analytics/a/",tileServerUri:"https://tiles-cdn.mappedin.com/styles/mappedin/style.json"}),aIe=Object.freeze({baseUri:"https://app-staging.mappedin.net/",baseAuthUri:"https://app-staging.mappedin.net/",analyticsBaseUri:"https://api-gateway-staging.mappedin.net/track-analytics/a/",tileServerUri:"https://tiles-cdn.mappedin.com/styles/mappedin/style.json"});f();f();var YB=10,_Ie=YB*60*1e3;f();var JB=10,PIe=JB*60*1e3;var XE=globalThis.fetch,qE,LIe=(qE=g==null?void 0:g.env)==null?void 0:qE.npm_package_version;function yf(){if(XE==null)throw new Error("fetch is not available in your environment. Pass your own function into `setFetchFn` (node-fetch, etc)");return XE}o(yf,"isomorphicFetch");var KE={id:Fe.string(),name:Fe.string(),type:Fe.string(),startDate:Fe.number(),endDate:Fe.number(),externalId:Fe.string().optional(),description:Fe.string().optional(),location:Fe.string().optional(),image:Fe.object({original:Fe.string(),xxsmall:Fe.string().optional(),xsmall:Fe.string().optional(),small:Fe.string().optional(),medium:Fe.string().optional(),large:Fe.string().optional(),xlarge:Fe.string().optional(),xxlarge:Fe.string().optional()}).optional(),video:Fe.object({width:Fe.number(),height:Fe.number(),thumbnail:Fe.string(),content:Fe.string(),original:Fe.string()}).optional(),_locale:Fe.record(Fe.string(),Fe.record(Fe.string(),Fe.unknown())).optional()},YE=Fe.object(KE),JE=Object.keys(KE),QE=o(async(e,t,n,i={})=>{let r=new URLSearchParams(i),s=new URL("/public/1/event/".concat(e),t);return s.search=r.toString(),await(await yf()(s.toString(),{headers:{Authorization:"Bearer ".concat(n)}})).json()},"fetchEvents");var si,Cn,Cr,Ss,Is,ws,eT,tT,g_=class g_{constructor(t,n={}){It(this,ws);It(this,si);It(this,Cn,{eventsById:new Map,eventsByLocationId:new Map});It(this,Cr,null);It(this,Ss,!1);It(this,Is);var i;Ot(this,si,t),Ot(this,Is,L(x({includeExpired:!1},n),{fields:JE.concat((i=n.fields)!=null?i:[])}))}async load(){return W(this,Cr)!=null?W(this,Cr):(Ot(this,Cr,(async()=>{let t=await ci(this,ws,eT).call(this);W(this,Cr)!=null&&(await ci(this,ws,tT).call(this,t),Ot(this,Ss,!0),Ot(this,Cr,null))})()),W(this,Cr))}get ready(){return W(this,Ss)}get events(){return Array.from(W(this,Cn).eventsById.values())}getById(t){return W(this,Cn).eventsById.get(t)}getByLocationId(t){var n;return(n=W(this,Cn).eventsByLocationId.get(t))!=null?n:[]}destroy(){W(this,Cn).eventsById.clear(),W(this,Cn).eventsByLocationId.clear(),Ot(this,Cr,null),Ot(this,Ss,!1)}};si=new WeakMap,Cn=new WeakMap,Cr=new WeakMap,Ss=new WeakMap,Is=new WeakMap,ws=new WeakSet,eT=o(async function(){if(!W(this,si).internal.enterpriseMode)return io.warn("Events are currently only supported for CMS maps!"),[];let t=W(this,si).mapId;if(t==null)throw new Error("Failed to fetch events! Map ID was not specified in getMapData.");let n=W(this,si).getAccessToken();if(n==null)throw new Error("Failed to fetch events! Could not get access token from MapData.");let i={fields:W(this,Is).fields.join(","),lang:"all"};W(this,Is).includeExpired||(i.activeAtOrAfter="now");let r=await QE(t,W(this,si).getEnv().baseUri,n,i);if(!Array.isArray(r))throw new Error("Failed to fetch events! Invalid response format.");return r.filter(s=>{let a=YE.safeParse(s);return a.success||io.warn("Failed to parse event!",s,a.error),a.success})},"#fetchEvents"),tT=o(async function(t){var n,i;W(this,Cn).eventsById.clear(),W(this,Cn).eventsByLocationId.clear();for(let r of t){let s=new Ic(r,W(this,si));W(this,Cn).eventsById.set(s.id,s);let a=(n=s.location)==null?void 0:n.id;a!=null&&W(this,Cn).eventsByLocationId.set(a,[...(i=W(this,Cn).eventsByLocationId.get(a))!=null?i:[],s])}},"#createEvents"),o(g_,"EventsManager");var m_=g_;export{m_ as EventsManager};