repositories

NixDaemon

NixOS pentest workstation as one flake — IceBreaker's successor

clonegit clone https://git.daemon-sec.xyz/NixDaemon.git
extension.jsJavaScript62 lines544.1 KiBraw download
!async function(){for(;!Spicetify.React||!Spicetify.ReactDOM;)await new Promise(e=>setTimeout(e,10));(()=>{var T,L,C=Object.create,Z=Object.defineProperty,R=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,F=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty,e=(e,t)=>{for(var n in t)Z(e,n,{get:t[n],enumerable:!0})},t=(T={"node_modules/.pnpm/dexie@4.4.5/node_modules/dexie/dist/dexie.js"(e,t){var n;n=function(){"use strict";var T=function(e,t){return(T=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function L(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=Object.keys,k=Array.isArray;function o(t,n){return"object"==typeof n&&I(n).forEach(function(e){t[e]=n[e]}),t}"undefined"==typeof Promise||d.Promise||(d.Promise=Promise);var C=Object.getPrototypeOf,Z={}.hasOwnProperty;function g(e,t){return Z.call(e,t)}function R(t,n){"function"==typeof n&&(n=n(C(t))),("undefined"==typeof Reflect?I:Reflect.ownKeys)(n).forEach(function(e){s(t,e,n[e])})}var M=Object.defineProperty;function s(e,t,n,r){M(e,t,o(n&&g(n,"get")&&"function"==typeof n.get?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function F(t){return{from:function(e){return t.prototype=Object.create(e.prototype),s(t.prototype,"constructor",t),{extend:R.bind(null,t.prototype)}}}}var K=Object.getOwnPropertyDescriptor;var V=[].slice;function J(e,t,n){return V.call(e,t,n)}function B(e,t){return t(e)}function q(e){if(!e)throw new Error("Assertion Failed")}function W(e){d.setImmediate?setImmediate(e):setTimeout(e,0)}function l(e,t){if("string"==typeof t&&g(e,t))return e[t];if(!t)return e;if("string"!=typeof t){for(var n=[],r=0,i=t.length;r<i;++r){var a=l(e,t[r]);n.push(a)}return n}var o,s=t.indexOf(".");return-1===s||null==(o=e[t.substr(0,s)])?void 0:l(o,t.substr(s+1))}function y(e,t,n){if(e&&void 0!==t&&!("isFrozen"in Object&&Object.isFrozen(e)))if("string"!=typeof t&&"length"in t){q("string"!=typeof n&&"length"in n);for(var r=0,i=t.length;r<i;++r)y(e,t[r],n[r])}else{var a=t.indexOf(".");if(-1!==a){var o=t.substr(0,a),a=t.substr(a+1);if(""===a)void 0===n?k(e)&&!isNaN(parseInt(o))?e.splice(o,1):delete e[o]:e[o]=n;else{var s=e[o];if(!s||!g(e,o)){if(void 0===n)return;s=e[o]={}}y(s,a,n)}}else void 0===n?k(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function G(e){var t,n={};for(t in e)g(e,t)&&(n[t]=e[t]);return n}var X=[].concat;function Y(e){return X.apply([],e)}var e="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Y([8,16,32,64].map(function(t){return["Int","Uint","Float"].map(function(e){return e+t+"Array"})}))).filter(function(e){return d[e]}),H=new Set(e.map(function(e){return d[e]}));var Q=null;function ee(e){Q=new WeakMap;e=function e(t){if(!t||"object"!=typeof t)return t;var n=Q.get(t);if(n)return n;if(k(t)){n=[],Q.set(t,n);for(var r=0,i=t.length;r<i;++r)n.push(e(t[r]))}else if(H.has(t.constructor))n=t;else{var a,o=C(t);for(a in n=o===Object.prototype?{}:Object.create(o),Q.set(t,n),t)g(t,a)&&(n[a]=e(t[a]))}return n}(e);return Q=null,e}var te={}.toString;function ne(e){return te.call(e).slice(8,-1)}var re="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator",ie="symbol"==typeof re?function(e){var t;return null!=e&&(t=e[re])&&t.apply(e)}:function(){return null};function ae(e,t){t=e.indexOf(t);0<=t&&e.splice(t,1)}var oe={};function n(e){var t,n,r,i;if(1===arguments.length){if(k(e))return e.slice();if(this===oe&&"string"==typeof e)return[e];if(i=ie(e))for(n=[];!(r=i.next()).done;)n.push(r.value);else{if(null==e)return[e];if("number"!=typeof(t=e.length))return[e];for(n=new Array(t);t--;)n[t]=e[t]}}else for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var se="undefined"!=typeof Symbol?function(e){return"AsyncFunction"===e[Symbol.toStringTag]}:function(){return!1},e=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],t=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(e),ue={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function le(e,t){this.name=e,this.message=t}function ce(e,t){return e+". Errors: "+Object.keys(t).map(function(e){return t[e].toString()}).filter(function(e,t,n){return n.indexOf(e)===t}).join("\n")}function de(e,t,n,r){this.failures=t,this.failedKeys=r,this.successCount=n,this.message=ce(e,t)}function fe(e,t){this.name="BulkError",this.failures=Object.keys(t).map(function(e){return t[e]}),this.failuresByPos=t,this.message=ce(e,this.failures)}F(le).from(Error).extend({toString:function(){return this.name+": "+this.message}}),F(de).from(le),F(fe).from(le);var me=t.reduce(function(e,t){return e[t]=t+"Error",e},{}),pe=le,$=t.reduce(function(e,n){var r=n+"Error";function t(e,t){this.name=r,e?"string"==typeof e?(this.message="".concat(e).concat(t?"\n "+t:""),this.inner=t||null):"object"==typeof e&&(this.message="".concat(e.name," ").concat(e.message),this.inner=e):(this.message=ue[n]||r,this.inner=null)}return F(t).from(pe),e[n]=t,e},{}),he=($.Syntax=SyntaxError,$.Type=TypeError,$.Range=RangeError,e.reduce(function(e,t){return e[t+"Error"]=$[t],e},{}));e=t.reduce(function(e,t){return-1===["Syntax","Type","Range"].indexOf(t)&&(e[t+"Error"]=$[t]),e},{});function b(){}function ve(e){return e}function ge(t,n){return null==t||t===ve?n:function(e){return n(t(e))}}function ye(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function be(i,a){return i===b?a:function(){var e=i.apply(this,arguments),t=(void 0!==e&&(arguments[0]=e),this.onsuccess),n=this.onerror,r=(this.onsuccess=null,this.onerror=null,a.apply(this,arguments));return t&&(this.onsuccess=this.onsuccess?ye(t,this.onsuccess):t),n&&(this.onerror=this.onerror?ye(n,this.onerror):n),void 0!==r?r:e}}function _e(n,r){return n===b?r:function(){n.apply(this,arguments);var e=this.onsuccess,t=this.onerror;this.onsuccess=this.onerror=null,r.apply(this,arguments),e&&(this.onsuccess=this.onsuccess?ye(e,this.onsuccess):e),t&&(this.onerror=this.onerror?ye(t,this.onerror):t)}}function we(i,a){return i===b?a:function(e){var t=i.apply(this,arguments),e=(o(e,t),this.onsuccess),n=this.onerror,r=(this.onsuccess=null,this.onerror=null,a.apply(this,arguments));return e&&(this.onsuccess=this.onsuccess?ye(e,this.onsuccess):e),n&&(this.onerror=this.onerror?ye(n,this.onerror):n),void 0===t?void 0===r?void 0:r:o(t,r)}}function ke(e,t){return e===b?t:function(){return!1!==t.apply(this,arguments)&&e.apply(this,arguments)}}function $e(i,a){return i===b?a:function(){var e=i.apply(this,arguments);if(e&&"function"==typeof e.then){for(var t=this,n=arguments.length,r=new Array(n);n--;)r[n]=arguments[n];return e.then(function(){return a.apply(t,r)})}return a.apply(this,arguments)}}e.ModifyError=de,e.DexieError=le,e.BulkError=fe;var c="undefined"!=typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Ie(e){c=e}var xe={},Se=100,Oe="undefined"==typeof Promise?[]:(t=Promise.resolve(),"undefined"!=typeof crypto&&crypto.subtle?[Oe=crypto.subtle.digest("SHA-512",new Uint8Array([0])),C(Oe),t]:[t,C(t),t]),t=Oe[0],ze=Oe[1],ze=ze&&ze.then,Ne=t&&t.constructor,je=!!Oe[2];var Pe=function(e,t){Le.push([e,t]),De&&(queueMicrotask(Be),De=!1)},Ue=!0,De=!0,Ae=[],Ee=[],Te=ve,u={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:b,pgp:!1,env:{},finalize:b},x=u,Le=[],Ce=0,Ze=[];function S(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this._lib=!1;var t=this._PSD=x;if("function"!=typeof e){if(e!==xe)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],!1===this._state&&Fe(this,this._value)}else this._state=null,this._value=null,++t.ref,!function t(r,e){try{e(function(n){if(null===r._state){if(n===r)throw new TypeError("A promise cannot be resolved with itself.");var e=r._lib&&qe();n&&"function"==typeof n.then?t(r,function(e,t){n instanceof S?n._then(e,t):n.then(e,t)}):(r._state=!0,r._value=n,Ke(r)),e&&We()}},Fe.bind(null,r))}catch(e){Fe(r,e)}}(this,e)}var Re={get:function(){var s=x,t=et;function e(n,r){var i=this,a=!s.global&&(s!==x||t!==et),o=a&&!_(),e=new S(function(e,t){Ve(i,new Me(st(n,s,a,o),st(r,s,a,o),e,t,s))});return this._consoleTask&&(e._consoleTask=this._consoleTask),e}return e.prototype=xe,e},set:function(e){s(this,"then",e&&e.prototype===xe?Re:{get:function(){return e},set:Re.set})}};function Me(e,t,n,r,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r,this.psd=i}function Fe(e,t){var n,r;Ee.push(t),null===e._state&&(n=e._lib&&qe(),t=Te(t),e._state=!1,e._value=t,r=e,Ae.some(function(e){return e._value===r._value})||Ae.push(r),Ke(e),n)&&We()}function Ke(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Ve(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),0===Ce&&(++Ce,Pe(function(){0==--Ce&&Ge()},[]))}function Ve(e,t){if(null===e._state)e._listeners.push(t);else{var n=e._state?t.onFulfilled:t.onRejected;if(null===n)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Ce,Pe(Je,[n,e,t])}}function Je(e,t,n){try{var r,i=t._value;!t._state&&Ee.length&&(Ee=[]),r=c&&t._consoleTask?t._consoleTask.run(function(){return e(i)}):e(i),t._state||-1!==Ee.indexOf(i)||!function(e){var t=Ae.length;for(;t;)if(Ae[--t]._value===e._value)return Ae.splice(t,1)}(t),n.resolve(r)}catch(e){n.reject(e)}finally{0==--Ce&&Ge(),--n.psd.ref||n.psd.finalize()}}function Be(){ot(u,function(){qe()&&We()})}function qe(){var e=Ue;return De=Ue=!1,e}function We(){var e,t,n;do{for(;0<Le.length;)for(e=Le,Le=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}}while(0<Le.length);De=Ue=!0}function Ge(){for(var e=Ae,t=(Ae=[],e.forEach(function(e){e._PSD.onunhandled.call(null,e._value,e)}),Ze.slice(0)),n=t.length;n;)t[--n]()}function Xe(e){return new S(xe,!1,e)}function O(n,r){var i=x;return function(){var e=qe(),t=x;try{return f(i,!0),n.apply(this,arguments)}catch(e){r&&r(e)}finally{f(t,!1),e&&We()}}}R(S.prototype,{then:Re,_then:function(e,t){Ve(this,new Me(null,null,e,t,x))},catch:function(e){var t,n;return 1===arguments.length?this.then(null,e):(t=e,n=arguments[1],"function"==typeof t?this.then(null,function(e){return(e instanceof t?n:Xe)(e)}):this.then(null,function(e){return(e&&e.name===t?n:Xe)(e)}))},finally:function(t){return this.then(function(e){return S.resolve(t()).then(function(){return e})},function(e){return S.resolve(t()).then(function(){return Xe(e)})})},timeout:function(r,i){var a=this;return r<1/0?new S(function(e,t){var n=setTimeout(function(){return t(new $.Timeout(i))},r);a.then(e,t).finally(clearTimeout.bind(null,n))}):this}}),"undefined"!=typeof Symbol&&Symbol.toStringTag&&s(S.prototype,Symbol.toStringTag,"Dexie.Promise"),u.env=at(),R(S,{all:function(){var a=n.apply(null,arguments).map(rt);return new S(function(n,r){0===a.length&&n([]);var i=a.length;a.forEach(function(e,t){return S.resolve(e).then(function(e){a[t]=e,--i||n(a)},r)})})},resolve:function(n){return n instanceof S?n:n&&"function"==typeof n.then?new S(function(e,t){n.then(e,t)}):new S(xe,!0,n)},reject:Xe,race:function(){var e=n.apply(null,arguments).map(rt);return new S(function(t,n){e.map(function(e){return S.resolve(e).then(t,n)})})},PSD:{get:function(){return x},set:function(e){return x=e}},totalEchoes:{get:function(){return et}},newPSD:v,usePSD:ot,scheduler:{get:function(){return Pe},set:function(e){Pe=e}},rejectionMapper:{get:function(){return Te},set:function(e){Te=e}},follow:function(i,n){return new S(function(e,t){return v(function(n,r){var e=x;e.unhandleds=[],e.onunhandled=r,e.finalize=ye(function(){var t,e=this;t=function(){0===e.unhandleds.length?n():r(e.unhandleds[0])},Ze.push(function e(){t(),Ze.splice(Ze.indexOf(e),1)}),++Ce,Pe(function(){0==--Ce&&Ge()},[])},e.finalize),i()},n,e,t)})}}),Ne&&(Ne.allSettled&&s(S,"allSettled",function(){var e=n.apply(null,arguments).map(rt);return new S(function(n){0===e.length&&n([]);var r=e.length,i=new Array(r);e.forEach(function(e,t){return S.resolve(e).then(function(e){return i[t]={status:"fulfilled",value:e}},function(e){return i[t]={status:"rejected",reason:e}}).then(function(){return--r||n(i)})})})}),Ne.any&&"undefined"!=typeof AggregateError&&s(S,"any",function(){var e=n.apply(null,arguments).map(rt);return new S(function(n,r){0===e.length&&r(new AggregateError([]));var i=e.length,a=new Array(i);e.forEach(function(e,t){return S.resolve(e).then(function(e){return n(e)},function(e){a[t]=e,--i||r(new AggregateError(a))})})})}),Ne.withResolvers)&&(S.withResolvers=Ne.withResolvers);var a={awaits:0,echoes:0,id:0},Ye=0,He=[],Qe=0,et=0,tt=0;function v(e,t,n,r){var i=x,a=Object.create(i),t=(a.parent=i,a.ref=0,a.global=!1,a.id=++tt,u.env,a.env=je?{Promise:S,PromiseProp:{value:S,configurable:!0,writable:!0},all:S.all,race:S.race,allSettled:S.allSettled,any:S.any,resolve:S.resolve,reject:S.reject}:{},t&&o(a,t),++i.ref,a.finalize=function(){--this.parent.ref||this.parent.finalize()},ot(a,e,n,r));return 0===a.ref&&a.finalize(),t}function nt(){return a.id||(a.id=++Ye),++a.awaits,a.echoes+=Se,a.id}function _(){return!!a.awaits&&(0==--a.awaits&&(a.id=0),a.echoes=a.awaits*Se,!0)}function rt(e){return a.echoes&&e&&e.constructor===Ne?(nt(),e.then(function(e){return _(),e},function(e){return _(),z(e)})):e}function it(){var e=He[He.length-1];He.pop(),f(e,!1)}function f(e,t){var n,r,i=x;(t?!a.echoes||Qe++&&e===x:!Qe||--Qe&&e===x)||queueMicrotask(t?function(e){++et,a.echoes&&0!=--a.echoes||(a.echoes=a.awaits=a.id=0),He.push(x),f(e,!0)}.bind(null,e):it),e!==x&&(x=e,i===u&&(u.env=at()),je)&&(n=u.env.Promise,r=e.env,i.global||e.global)&&(Object.defineProperty(d,"Promise",r.PromiseProp),n.all=r.all,n.race=r.race,n.resolve=r.resolve,n.reject=r.reject,r.allSettled&&(n.allSettled=r.allSettled),r.any)&&(n.any=r.any)}function at(){var e=d.Promise;return je?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(d,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject}:{}}function ot(e,t,n,r,i){var a=x;try{return f(e,!0),t(n,r,i)}finally{f(a,!1)}}function st(t,n,r,i){return"function"!=typeof t?t:function(){var e=x;r&&nt(),f(n,!0);try{return t.apply(this,arguments)}finally{f(e,!1),i&&queueMicrotask(_)}}}function ut(e){Promise===Ne&&0===a.echoes?0===Qe?e():enqueueNativeMicroTask(e):setTimeout(e,0)}-1===(""+ze).indexOf("[native code]")&&(nt=_=b);var z=S.reject;var lt=String.fromCharCode(65535),N="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",ct="String expected.",dt="__dbnames",ft="readonly",mt="readwrite";function pt(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var ht={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function vt(t){return"string"!=typeof t||/\./.test(t)?function(e){return e}:function(e){return void 0===e[t]&&t in e&&delete(e=ee(e))[t],e}}function gt(){throw $.Type("Entity instances must never be new:ed. Instances are generated by the framework bypassing the constructor.")}function j(e,t){try{var n=yt(e),r=yt(t);if(n!==r)return"Array"===n?1:"Array"===r?-1:"binary"===n?1:"binary"===r?-1:"string"===n?1:"string"===r?-1:"Date"===n?1:"Date"!==r?NaN:-1;switch(n){case"number":case"Date":case"string":return t<e?1:e<t?-1:0;case"binary":for(var i=bt(e),a=bt(t),o=i.length,s=a.length,u=o<s?o:s,l=0;l<u;++l)if(i[l]!==a[l])return i[l]<a[l]?-1:1;return o===s?0:o<s?-1:1;case"Array":for(var c=e,d=t,f=c.length,m=d.length,p=f<m?f:m,h=0;h<p;++h){var v=j(c[h],d[h]);if(0!==v)return v}return f===m?0:f<m?-1:1}}catch(e){}return NaN}function yt(e){var t=typeof e;return"object"==t&&(ArrayBuffer.isView(e)||"ArrayBuffer"===(t=ne(e)))?"binary":t}function bt(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}function _t(t,n,r){var e=t.schema.yProps;return e?(n&&0<r.numFailures&&(n=n.filter(function(e,t){return!r.failures[t]})),Promise.all(e.map(function(e){e=e.updatesTable;return n?t.db.table(e).where("k").anyOf(n).delete():t.db.table(e).clear()})).then(function(){return r})):r}kt.prototype.execute=function(e){var t=this["@@propmod"];if(void 0!==t.add){var n=t.add;if(k(n))return L(L([],k(e)?e:[],!0),n,!0).sort();if("number"==typeof n)return(Number(e)||0)+n;if("bigint"==typeof n)try{return BigInt(e)+n}catch(e){return BigInt(0)+n}throw new TypeError("Invalid term ".concat(n))}if(void 0!==t.remove){var r=t.remove;if(k(r))return k(e)?e.filter(function(e){return!r.includes(e)}).sort():[];if("number"==typeof r)return Number(e)-r;if("bigint"==typeof r)try{return BigInt(e)-r}catch(e){return BigInt(0)-r}throw new TypeError("Invalid subtrahend ".concat(r))}n=null==(n=t.replacePrefix)?void 0:n[0];return n&&"string"==typeof e&&e.startsWith(n)?t.replacePrefix[1]+e.substring(n.length):e};var wt=kt;function kt(e){this["@@propmod"]=e}function $t(e,t){for(var n=I(t),r=n.length,i=!1,a=0;a<r;++a){var o=n[a],s=t[o],u=l(e,o);s instanceof wt?(y(e,o,s.execute(u)),i=!0):u!==s&&(y(e,o,s),i=!0)}return i}r.prototype._trans=function(e,r,t){var n=this._tx||x.trans,i=this.name,a=c&&"undefined"!=typeof console&&console.createTask&&console.createTask("Dexie: ".concat("readonly"===e?"read":"write"," ").concat(this.name));function o(e,t,n){if(n.schema[i])return r(n.idbtrans,n);throw new $.NotFound("Table "+i+" not part of transaction")}var s=qe();try{var u=n&&n.db._novip===this.db._novip?n===x.trans?n._promise(e,o,t):v(function(){return n._promise(e,o,t)},{trans:n,transless:x.transless||x}):function t(n,r,i,a){if(n.idbdb&&(n._state.openComplete||x.letThrough||n._vip)){var o=n._createTransaction(r,i,n._dbSchema);try{o.create(),n._state.PR1398_maxLoop=3}catch(e){return e.name===me.InvalidState&&n.isOpen()&&0<--n._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),n.close({disableAutoOpen:!1}),n.open().then(function(){return t(n,r,i,a)})):z(e)}return o._promise(r,function(e,t){return v(function(){return x.trans=o,a(e,t,o)})}).then(function(e){if("readwrite"===r)try{o.idbtrans.commit()}catch(e){}return"readonly"===r?e:o._completion.then(function(){return e})})}if(n._state.openComplete)return z(new $.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._state.autoOpen)return z(new $.DatabaseClosed);n.open().catch(b)}return n._state.dbReadyPromise.then(function(){return t(n,r,i,a)})}(this.db,e,[this.name],o);return a&&(u._consoleTask=a,u=u.catch(function(e){return console.trace(e),z(e)})),u}finally{s&&We()}},r.prototype.get=function(t,e){var n=this;return t&&t.constructor===Object?this.where(t).first(e):null==t?z(new $.Type("Invalid argument to Table.get()")):this._trans("readonly",function(e){return n.core.get({trans:e,key:t}).then(function(e){return n.hook.reading.fire(e)})}).then(e)},r.prototype.where=function(a){if("string"==typeof a)return new this.db.WhereClause(this,a);if(k(a))return new this.db.WhereClause(this,"[".concat(a.join("+"),"]"));var n=I(a);if(1===n.length)return this.where(n[0]).equals(a[n[0]]);var e=this.schema.indexes.concat(this.schema.primKey).filter(function(t){if(t.compound&&n.every(function(e){return 0<=t.keyPath.indexOf(e)})){for(var e=0;e<n.length;++e)if(-1===n.indexOf(t.keyPath[e]))return!1;return!0}return!1}).sort(function(e,t){return e.keyPath.length-t.keyPath.length})[0];if(e&&this.db._maxKey!==lt)return t=e.keyPath.slice(0,n.length),this.where(t).equals(t.map(function(e){return a[e]}));!e&&c&&console.warn("The query ".concat(JSON.stringify(a)," on ").concat(this.name," would benefit from a ")+"compound index [".concat(n.join("+"),"]"));var o=this.schema.idxByName;function s(e,t){return 0===j(e,t)}var t=n.reduce(function(e,t){var n=e[0],e=e[1],r=o[t],i=a[t];return[n||r,n||!r?pt(e,r&&r.multi?function(e){e=l(e,t);return k(e)&&e.some(function(e){return s(i,e)})}:function(e){return s(i,l(e,t))}):e]},[null,null]),r=t[0],t=t[1];return r?this.where(r.name).equals(a[r.keyPath]).filter(t):e?this.filter(t):this.where(n).equals("")},r.prototype.filter=function(e){return this.toCollection().and(e)},r.prototype.count=function(e){return this.toCollection().count(e)},r.prototype.offset=function(e){return this.toCollection().offset(e)},r.prototype.limit=function(e){return this.toCollection().limit(e)},r.prototype.each=function(e){return this.toCollection().each(e)},r.prototype.toArray=function(e){return this.toCollection().toArray(e)},r.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},r.prototype.orderBy=function(e){return new this.db.Collection(new this.db.WhereClause(this,k(e)?"[".concat(e.join("+"),"]"):e))},r.prototype.reverse=function(){return this.toCollection().reverse()},r.prototype.mapToClass=function(r){for(var a=this.db,o=this.name,i=((this.schema.mappedClass=r).prototype instanceof gt&&(r=function(e){var t=i,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}function i(){return null!==e&&e.apply(this,arguments)||this}return T(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r),Object.defineProperty(i.prototype,"db",{get:function(){return a},enumerable:!1,configurable:!0}),i.prototype.table=function(){return o},i}(r)),new Set),e=r.prototype;e;e=C(e))Object.getOwnPropertyNames(e).forEach(function(e){return i.add(e)});function t(e){if(!e)return e;var t,n=Object.create(r.prototype);for(t in e)if(!i.has(t))try{n[t]=e[t]}catch(e){}return n}return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=t,this.hook("reading",t),r},r.prototype.defineClass=function(){return this.mapToClass(function(e){o(this,e)})},r.prototype.add=function(t,n){var r=this,e=this.schema.primKey,i=e.auto,a=e.keyPath,o=t;return a&&i&&(o=vt(a)(t)),this._trans("readwrite",function(e){return r.core.mutate({trans:e,type:"add",keys:null!=n?[n]:null,values:[o]})}).then(function(e){return e.numFailures?S.reject(e.failures[0]):e.lastResult}).then(function(e){if(a)try{y(t,a,e)}catch(e){}return e})},r.prototype.upsert=function(r,i){var a=this,o=this.schema.primKey.keyPath;return this._trans("readwrite",function(n){return a.core.get({trans:n,key:r}).then(function(t){var e=null!=t?t:{};return $t(e,i),o&&y(e,o,r),a.core.mutate({trans:n,type:"put",values:[e],keys:[r],upsert:!0,updates:{keys:[r],changeSpecs:[i]}}).then(function(e){return e.numFailures?S.reject(e.failures[0]):!!t})})})},r.prototype.update=function(e,t){return"object"!=typeof e||k(e)?this.where(":id").equals(e).modify(t):void 0===(e=l(e,this.schema.primKey.keyPath))?z(new $.InvalidArgument("Given object does not contain its primary key")):this.where(":id").equals(e).modify(t)},r.prototype.put=function(t,n){var r=this,e=this.schema.primKey,i=e.auto,a=e.keyPath,o=t;return a&&i&&(o=vt(a)(t)),this._trans("readwrite",function(e){return r.core.mutate({trans:e,type:"put",values:[o],keys:null!=n?[n]:null})}).then(function(e){return e.numFailures?S.reject(e.failures[0]):e.lastResult}).then(function(e){if(a)try{y(t,a,e)}catch(e){}return e})},r.prototype.delete=function(t){var n=this;return this._trans("readwrite",function(e){return n.core.mutate({trans:e,type:"delete",keys:[t]}).then(function(e){return _t(n,[t],e)}).then(function(e){return e.numFailures?S.reject(e.failures[0]):void 0})})},r.prototype.clear=function(){var t=this;return this._trans("readwrite",function(e){return t.core.mutate({trans:e,type:"deleteRange",range:ht}).then(function(e){return _t(t,null,e)})}).then(function(e){return e.numFailures?S.reject(e.failures[0]):void 0})},r.prototype.bulkGet=function(t){var n=this;return this._trans("readonly",function(e){return n.core.getMany({keys:t,trans:e}).then(function(e){return e.map(function(e){return n.hook.reading.fire(e)})})})},r.prototype.bulkAdd=function(r,e,t){var a=this,o=Array.isArray(e)?e:void 0,s=(t=t||(o?void 0:e))?t.allKeys:void 0;return this._trans("readwrite",function(e){var t=a.schema.primKey,n=t.auto,t=t.keyPath;if(t&&o)throw new $.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(o&&o.length!==r.length)throw new $.InvalidArgument("Arguments objects and keys must have the same length");var i=r.length,n=t&&n?r.map(vt(t)):r;return a.core.mutate({trans:e,type:"add",keys:o,values:n,wantResults:s}).then(function(e){var t=e.numFailures,n=e.results,r=e.lastResult,e=e.failures;if(0===t)return s?n:r;throw new fe("".concat(a.name,".bulkAdd(): ").concat(t," of ").concat(i," operations failed"),e)})})},r.prototype.bulkPut=function(r,e,t){var a=this,o=Array.isArray(e)?e:void 0,s=(t=t||(o?void 0:e))?t.allKeys:void 0;return this._trans("readwrite",function(e){var t=a.schema.primKey,n=t.auto,t=t.keyPath;if(t&&o)throw new $.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(o&&o.length!==r.length)throw new $.InvalidArgument("Arguments objects and keys must have the same length");var i=r.length,n=t&&n?r.map(vt(t)):r;return a.core.mutate({trans:e,type:"put",keys:o,values:n,wantResults:s}).then(function(e){var t=e.numFailures,n=e.results,r=e.lastResult,e=e.failures;if(0===t)return s?n:r;throw new fe("".concat(a.name,".bulkPut(): ").concat(t," of ").concat(i," operations failed"),e)})})},r.prototype.bulkUpdate=function(t){var f=this,n=this.core,r=t.map(function(e){return e.key}),i=t.map(function(e){return e.changes}),m=[];return this._trans("readwrite",function(e){return n.getMany({trans:e,keys:r,cache:"clone"}).then(function(l){var c=[],d=[],u=(t.forEach(function(e,t){var n=e.key,r=e.changes,i=l[t];if(i){for(var a=0,o=Object.keys(r);a<o.length;a++){var s=o[a],u=r[s];if(s===f.schema.primKey.keyPath){if(0!==j(u,n))throw new $.Constraint("Cannot update primary key in bulkUpdate()")}else y(i,s,u)}m.push(t),c.push(n),d.push(i)}}),c.length);return n.mutate({trans:e,type:"put",keys:c,values:d,updates:{keys:r,changeSpecs:i}}).then(function(e){var t=e.numFailures,n=e.failures;if(0===t)return u;for(var r=0,i=Object.keys(n);r<i.length;r++){var a,o=i[r],s=m[Number(o)];null!=s&&(a=n[o],delete n[o],n[s]=a)}throw new fe("".concat(f.name,".bulkUpdate(): ").concat(t," of ").concat(u," operations failed"),n)})})})},r.prototype.bulkDelete=function(t){var r=this,i=t.length;return this._trans("readwrite",function(e){return r.core.mutate({trans:e,type:"delete",keys:t}).then(function(e){return _t(r,t,e)})}).then(function(e){var t=e.numFailures,n=e.lastResult,e=e.failures;if(0===t)return n;throw new fe("".concat(r.name,".bulkDelete(): ").concat(t," of ").concat(i," operations failed"),e)})};var It=r;function r(){}function xt(i){function t(e,t){if(t){for(var n=arguments.length,r=new Array(n-1);--n;)r[n-1]=arguments[n];return o[e].subscribe.apply(null,r),i}if("string"==typeof e)return o[e]}var o={};t.addEventType=s;for(var e=1,n=arguments.length;e<n;++e)s(arguments[e]);return t;function s(e,n,r){var i,a;if("object"!=typeof e)return n=n||ke,a={subscribers:[],fire:r=r||b,subscribe:function(e){-1===a.subscribers.indexOf(e)&&(a.subscribers.push(e),a.fire=n(a.fire,e))},unsubscribe:function(t){a.subscribers=a.subscribers.filter(function(e){return e!==t}),a.fire=a.subscribers.reduce(n,r)}},o[e]=t[e]=a;I(i=e).forEach(function(e){var t=i[e];if(k(t))s(e,i[e][0],i[e][1]);else{if("asap"!==t)throw new $.InvalidArgument("Invalid event config");var n=s(e,ve,function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];n.subscribers.forEach(function(e){W(function(){e.apply(null,t)})})})}})}}function St(e,t){return F(t).from({prototype:e}),t}function Ot(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function zt(e,t){e.filter=pt(e.filter,t)}function Nt(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return pt(r(),t())}:t,e.justLimit=n&&!r}function jt(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(n)return n;throw new $.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed")}function Pt(e,t,n){var r=jt(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:"prev"===e.dir,unique:!!e.unique,query:{index:r,range:e.range}})}function Ut(e,a,t,n){var o,r,s=e.replayFilter?pt(e.filter,e.replayFilter()):e.filter;return e.or?(o={},r=function(e,t,n){var r,i;s&&!s(t,n,function(e){return t.stop(e)},function(e){return t.fail(e)})||("[object ArrayBuffer]"===(i=""+(r=t.primaryKey))&&(i=""+new Uint8Array(r)),g(o,i))||(o[i]=!0,a(e,t,n))},Promise.all([e.or._iterate(r,t),Dt(Pt(e,n,t),e.algorithm,r,!e.keysOnly&&e.valueMapper)])):Dt(Pt(e,n,t),pt(e.algorithm,s),a,!e.keysOnly&&e.valueMapper)}function Dt(e,r,i,a){var o=O(a?function(e,t,n){return i(a(e),t,n)}:i);return e.then(function(n){if(n)return n.start(function(){var t=function(){return n.continue()};r&&!r(n,function(e){return t=e},function(e){n.stop(e),t=b},function(e){n.fail(e),t=b})||o(n.value,n,function(e){return t=e}),t()})})}i.prototype._read=function(e,t){var n=this._ctx;return n.error?n.table._trans(null,z.bind(null,n.error)):n.table._trans("readonly",e).then(t)},i.prototype._write=function(e){var t=this._ctx;return t.error?t.table._trans(null,z.bind(null,t.error)):t.table._trans("readwrite",e,"locked")},i.prototype._addAlgorithm=function(e){var t=this._ctx;t.algorithm=pt(t.algorithm,e)},i.prototype._iterate=function(e,t){return Ut(this._ctx,e,t,this._ctx.table.core)},i.prototype.clone=function(e){var t=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return e&&o(n,e),t._ctx=n,t},i.prototype.raw=function(){return this._ctx.valueMapper=null,this},i.prototype.each=function(t){var n=this._ctx;return this._read(function(e){return Ut(n,t,e,n.table.core)})},i.prototype.count=function(e){var i=this;return this._read(function(e){var t,n=i._ctx,r=n.table.core;return Ot(n,!0)?r.count({trans:e,query:{index:jt(n,r.schema),range:n.range}}).then(function(e){return Math.min(e,n.limit)}):(t=0,Ut(n,function(){return++t,!1},e,r).then(function(){return t}))}).then(e)},i.prototype.sortBy=function(e,t){var n=e.split(".").reverse(),r=n[0],i=n.length-1;function a(e,t){return t?a(e[n[t]],t-1):e[r]}var o="next"===this._ctx.dir?1:-1;function s(e,t){return j(a(e,i),a(t,i))*o}return this.toArray(function(e){return e.slice().sort(s)}).then(t)},i.prototype.toArray=function(e){var a=this;return this._read(function(e){var t,n,r,i=a._ctx;return Ot(i,!0)&&0<i.limit?(t=i.valueMapper,n=jt(i,i.table.core.schema),i.table.core.query({trans:e,limit:i.limit,values:!0,direction:"prev"===i.dir?"prev":void 0,query:{index:n,range:i.range}}).then(function(e){e=e.result;return t?e.map(t):e})):(r=[],Ut(i,function(e){return r.push(e)},e,i.table.core).then(function(){return r}))},e)},i.prototype.offset=function(t){var e=this._ctx;return t<=0||(e.offset+=t,Ot(e)?Nt(e,function(){var n=t;return function(e,t){return 0===n||(1===n?--n:t(function(){e.advance(n),n=0}),!1)}}):Nt(e,function(){var e=t;return function(){return--e<0}})),this},i.prototype.limit=function(e){return this._ctx.limit=Math.min(this._ctx.limit,e),Nt(this._ctx,function(){var r=e;return function(e,t,n){return--r<=0&&t(n),0<=r}},!0),this},i.prototype.until=function(r,i){return zt(this._ctx,function(e,t,n){return!r(e.value)||(t(n),i)}),this},i.prototype.first=function(e){return this.limit(1).toArray(function(e){return e[0]}).then(e)},i.prototype.last=function(e){return this.reverse().first(e)},i.prototype.filter=function(t){var e;return zt(this._ctx,function(e){return t(e.value)}),(e=this._ctx).isMatch=pt(e.isMatch,t),this},i.prototype.and=function(e){return this.filter(e)},i.prototype.or=function(e){return new this.db.WhereClause(this._ctx.table,e,this)},i.prototype.reverse=function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},i.prototype.desc=function(){return this.reverse()},i.prototype.eachKey=function(n){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(e,t){n(t.key,t)})},i.prototype.eachUniqueKey=function(e){return this._ctx.unique="unique",this.eachKey(e)},i.prototype.eachPrimaryKey=function(n){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each(function(e,t){n(t.primaryKey,t)})},i.prototype.keys=function(e){var t=this._ctx,n=(t.keysOnly=!t.isMatch,[]);return this.each(function(e,t){n.push(t.key)}).then(function(){return n}).then(e)},i.prototype.primaryKeys=function(e){var n=this._ctx;if(Ot(n,!0)&&0<n.limit)return this._read(function(e){var t=jt(n,n.table.core.schema);return n.table.core.query({trans:e,values:!1,limit:n.limit,direction:"prev"===n.dir?"prev":void 0,query:{index:t,range:n.range}})}).then(function(e){return e.result}).then(e);n.keysOnly=!n.isMatch;var r=[];return this.each(function(e,t){r.push(t.primaryKey)}).then(function(){return r}).then(e)},i.prototype.uniqueKeys=function(e){return this._ctx.unique="unique",this.keys(e)},i.prototype.firstKey=function(e){return this.limit(1).keys(function(e){return e[0]}).then(e)},i.prototype.lastKey=function(e){return this.reverse().firstKey(e)},i.prototype.distinct=function(){var n,e=this._ctx,e=e.index&&e.table.schema.idxByName[e.index];return e&&e.multi&&(n={},zt(this._ctx,function(e){var e=e.primaryKey.toString(),t=g(n,e);return n[e]=!0,!t})),this},i.prototype.modify=function(k){var n=this,$=this._ctx;return this._write(function(p){function h(e,t){var n=t.failures,t=t.numFailures;s+=e-t;for(var r=0,i=I(n);r<i.length;r++){var a=i[r];o.push(n[a])}}var v="function"==typeof k?k:function(e){return $t(e,k)},g=$.table.core,e=g.schema.primaryKey,y=e.outbound,b=e.extractKey,_=200,e=n.db._options.modifyChunkSize,o=(e&&(_="object"==typeof e?e[g.name]||e["*"]||200:e),[]),s=0,t=[],w=k===Et;return n.clone().primaryKeys().then(function(d){function f(u){var l=Math.min(_,d.length-u),c=d.slice(u,u+l);return(w?Promise.resolve([]):g.getMany({trans:p,keys:c,cache:"immutable"})).then(function(e){var n=[],t=[],r=y?[]:null,i=w?c:[];if(!w)for(var a=0;a<l;++a){var o=e[a],s={value:ee(o),primKey:d[u+a]};!1!==v.call(s,s.value,s)&&(null==s.value?i.push(d[u+a]):y||0===j(b(o),b(s.value))?(t.push(s.value),y&&r.push(d[u+a])):(i.push(d[u+a]),n.push(s.value)))}return Promise.resolve(0<n.length&&g.mutate({trans:p,type:"add",values:n}).then(function(e){for(var t in e.failures)i.splice(parseInt(t),1);h(n.length,e)})).then(function(){return(0<t.length||m&&"object"==typeof k)&&g.mutate({trans:p,type:"put",keys:r,values:t,criteria:m,changeSpec:"function"!=typeof k&&k,isAdditionalChunk:0<u}).then(function(e){return h(t.length,e)})}).then(function(){return(0<i.length||m&&w)&&g.mutate({trans:p,type:"delete",keys:i,criteria:m,isAdditionalChunk:0<u}).then(function(e){return _t($.table,i,e)}).then(function(e){return h(i.length,e)})}).then(function(){return d.length>u+l&&f(u+_)})})}var m=Ot($)&&$.limit===1/0&&("function"!=typeof k||w)&&{index:$.index,range:$.range};return f(0).then(function(){if(0<o.length)throw new de("Error modifying one or more objects",o,s,t);return d.length})})})},i.prototype.delete=function(){var i=this._ctx,n=i.range;return!Ot(i)||i.table.schema.yProps||!i.isPrimKey&&3!==n.type?this.modify(Et):this._write(function(e){var t=i.table.core.schema.primaryKey,r=n;return i.table.core.count({trans:e,query:{index:t,range:r}}).then(function(n){return i.table.core.mutate({trans:e,type:"deleteRange",range:r}).then(function(e){var t=e.failures,e=e.numFailures;if(e)throw new de("Could not delete some values",Object.keys(t).map(function(e){return t[e]}),n-e);return n-e})})})};var At=i;function i(){}var Et=function(e,t){return t.value=null};function Tt(e,t){return e<t?-1:e===t?0:1}function Lt(e,t){return t<e?-1:e===t?0:1}function P(e,t,n){e=e instanceof Mt?new e.Collection(e):e;return e._ctx.error=new(n||TypeError)(t),e}function Ct(e){return new e.Collection(e,function(){return Rt("")}).limit(0)}function Zt(e,u,n,r){var i,l,c,d,f,m,p,h=n.length;if(!n.every(function(e){return"string"==typeof e}))return P(e,ct);function t(e){i="next"===e?function(e){return e.toUpperCase()}:function(e){return e.toLowerCase()},l="next"===e?function(e){return e.toLowerCase()}:function(e){return e.toUpperCase()},c="next"===e?Tt:Lt;var t=n.map(function(e){return{lower:l(e),upper:i(e)}}).sort(function(e,t){return c(e.lower,t.lower)});d=t.map(function(e){return e.upper}),f=t.map(function(e){return e.lower}),p="next"===(m=e)?"":r}t("next");var e=new e.Collection(e,function(){return U(d[0],f[h-1]+r)}),v=(e._ondirectionchange=function(e){t(e)},0);return e._addAlgorithm(function(e,t,n){var r=e.key;if("string"==typeof r){var i=l(r);if(u(i,f,v))return!0;for(var a=null,o=v;o<h;++o){var s=function(e,t,n,r,i,a){for(var o=Math.min(e.length,r.length),s=-1,u=0;u<o;++u){var l=t[u];if(l!==r[u])return i(e[u],n[u])<0?e.substr(0,u)+n[u]+n.substr(u+1):i(e[u],r[u])<0?e.substr(0,u)+r[u]+n.substr(u+1):0<=s?e.substr(0,s)+t[s]+n.substr(s+1):null;i(e[u],l)<0&&(s=u)}return o<r.length&&"next"===a?e+n.substr(e.length):o<e.length&&"prev"===a?e.substr(0,n.length):s<0?null:e.substr(0,s)+r[s]+n.substr(s+1)}(r,i,d[o],f[o],c,m);null===s&&null===a?v=o+1:(null===a||0<c(a,s))&&(a=s)}t(null!==a?function(){e.continue(a+p)}:n)}return!1}),e}function U(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Rt(e){return{type:1,lower:e,upper:e}}Object.defineProperty(m.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),m.prototype.between=function(e,t,n,r){n=!1!==n,r=!0===r;try{return 0<this._cmp(e,t)||0===this._cmp(e,t)&&(n||r)&&(!n||!r)?Ct(this):new this.Collection(this,function(){return U(e,t,!n,!r)})}catch(e){return P(this,N)}},m.prototype.equals=function(e){return null==e?P(this,N):new this.Collection(this,function(){return Rt(e)})},m.prototype.above=function(e){return null==e?P(this,N):new this.Collection(this,function(){return U(e,void 0,!0)})},m.prototype.aboveOrEqual=function(e){return null==e?P(this,N):new this.Collection(this,function(){return U(e,void 0,!1)})},m.prototype.below=function(e){return null==e?P(this,N):new this.Collection(this,function(){return U(void 0,e,!1,!0)})},m.prototype.belowOrEqual=function(e){return null==e?P(this,N):new this.Collection(this,function(){return U(void 0,e)})},m.prototype.startsWith=function(e){return"string"!=typeof e?P(this,ct):this.between(e,e+lt,!0,!0)},m.prototype.startsWithIgnoreCase=function(e){return""===e?this.startsWith(e):Zt(this,function(e,t){return 0===e.indexOf(t[0])},[e],lt)},m.prototype.equalsIgnoreCase=function(e){return Zt(this,function(e,t){return e===t[0]},[e],"")},m.prototype.anyOfIgnoreCase=function(){var e=n.apply(oe,arguments);return 0===e.length?Ct(this):Zt(this,function(e,t){return-1!==t.indexOf(e)},e,"")},m.prototype.startsWithAnyOfIgnoreCase=function(){var e=n.apply(oe,arguments);return 0===e.length?Ct(this):Zt(this,function(t,e){return e.some(function(e){return 0===t.indexOf(e)})},e,lt)},m.prototype.anyOf=function(){var e,i,t=this,a=n.apply(oe,arguments),o=this._cmp;try{a.sort(o)}catch(e){return P(this,N)}return 0===a.length?Ct(this):((e=new this.Collection(this,function(){return U(a[0],a[a.length-1])}))._ondirectionchange=function(e){o="next"===e?t._ascending:t._descending,a.sort(o)},i=0,e._addAlgorithm(function(e,t,n){for(var r=e.key;0<o(r,a[i]);)if(++i===a.length)return t(n),!1;return 0===o(r,a[i])||(t(function(){e.continue(a[i])}),!1)}),e)},m.prototype.notEqual=function(e){return this.inAnyRange([[-1/0,e],[e,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},m.prototype.noneOf=function(){var e=n.apply(oe,arguments);if(0===e.length)return new this.Collection(this);try{e.sort(this._ascending)}catch(e){return P(this,N)}var t=e.reduce(function(e,t){return e?e.concat([[e[e.length-1][1],t]]):[[-1/0,t]]},null);return t.push([e[e.length-1],this.db._maxKey]),this.inAnyRange(t,{includeLowers:!1,includeUppers:!1})},m.prototype.inAnyRange=function(e,t){var a=this,o=this._cmp,s=this._ascending,n=this._descending,u=this._min,l=this._max;if(0===e.length)return Ct(this);if(!e.every(function(e){return void 0!==e[0]&&void 0!==e[1]&&s(e[0],e[1])<=0}))return P(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",$.InvalidArgument);var r=!t||!1!==t.includeLowers,i=t&&!0===t.includeUppers;var c,d=s;function f(e,t){return d(e[0],t[0])}try{(c=e.reduce(function(e,t){for(var n=0,r=e.length;n<r;++n){var i=e[n];if(o(t[0],i[1])<0&&0<o(t[1],i[0])){i[0]=u(i[0],t[0]),i[1]=l(i[1],t[1]);break}}return n===r&&e.push(t),e},[])).sort(f)}catch(e){return P(this,N)}var m=0,p=i?function(e){return 0<s(e,c[m][1])}:function(e){return 0<=s(e,c[m][1])},h=r?function(e){return 0<n(e,c[m][0])}:function(e){return 0<=n(e,c[m][0])};var v=p,t=new this.Collection(this,function(){return U(c[0][0],c[c.length-1][1],!r,!i)});return t._ondirectionchange=function(e){d="next"===e?(v=p,s):(v=h,n),c.sort(f)},t._addAlgorithm(function(e,t,n){for(var r,i=e.key;v(i);)if(++m===c.length)return t(n),!1;return!p(r=i)&&!h(r)||(0===a._cmp(i,c[m][1])||0===a._cmp(i,c[m][0])||t(function(){d===s?e.continue(c[m][0]):e.continue(c[m][1])}),!1)}),t},m.prototype.startsWithAnyOf=function(){var e=n.apply(oe,arguments);return e.every(function(e){return"string"==typeof e})?0===e.length?Ct(this):this.inAnyRange(e.map(function(e){return[e,e+lt]})):P(this,"startsWithAnyOf() only works with strings")};var Mt=m;function m(){}function D(t){return O(function(e){return Ft(e),t(e.target.error),!1})}function Ft(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Kt="storagemutated",Vt="x-storagemutated-1",Jt=xt(null,Kt),Bt=(p.prototype._lock=function(){return q(!x.global),++this._reculock,1!==this._reculock||x.global||(x.lockOwnerFor=this),this},p.prototype._unlock=function(){if(q(!x.global),0==--this._reculock)for(x.global||(x.lockOwnerFor=null);0<this._blockedFuncs.length&&!this._locked();){var e=this._blockedFuncs.shift();try{ot(e[1],e[0])}catch(e){}}return this},p.prototype._locked=function(){return this._reculock&&x.lockOwnerFor!==this},p.prototype.create=function(t){var n=this;if(this.mode){var e=this.db.idbdb,r=this.db._state.dbOpenError;if(q(!this.idbtrans),!t&&!e)switch(r&&r.name){case"DatabaseClosedError":throw new $.DatabaseClosed(r);case"MissingAPIError":throw new $.MissingAPI(r.message,r);default:throw new $.OpenFailed(r)}if(!this.active)throw new $.TransactionInactive;q(null===this._completion._state),(t=this.idbtrans=t||(this.db.core||e).transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})).onerror=O(function(e){Ft(e),n._reject(t.error)}),t.onabort=O(function(e){Ft(e),n.active&&n._reject(new $.Abort(t.error)),n.active=!1,n.on("abort").fire(e)}),t.oncomplete=O(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&Jt.storagemutated.fire(t.mutatedParts)})}return this},p.prototype._promise=function(n,r,i){var e,a=this;return"readwrite"===n&&"readwrite"!==this.mode?z(new $.ReadOnly("Transaction is readonly")):this.active?this._locked()?new S(function(e,t){a._blockedFuncs.push([function(){a._promise(n,r,i).then(e,t)},x])}):i?v(function(){var e=new S(function(e,t){a._lock();var n=r(e,t,a);n&&n.then&&n.then(e,t)});return e.finally(function(){return a._unlock()}),e._lib=!0,e}):((e=new S(function(e,t){var n=r(e,t,a);n&&n.then&&n.then(e,t)}))._lib=!0,e):z(new $.TransactionInactive)},p.prototype._root=function(){return this.parent?this.parent._root():this},p.prototype.waitFor=function(e){var t,r=this._root(),i=S.resolve(e),a=(r._waitingFor?r._waitingFor=r._waitingFor.then(function(){return i}):(r._waitingFor=i,r._waitingQueue=[],t=r.idbtrans.objectStore(r.storeNames[0]),function e(){for(++r._spinCount;r._waitingQueue.length;)r._waitingQueue.shift()();r._waitingFor&&(t.get(-1/0).onsuccess=e)}()),r._waitingFor);return new S(function(t,n){i.then(function(e){return r._waitingQueue.push(O(t.bind(null,e)))},function(e){return r._waitingQueue.push(O(n.bind(null,e)))}).finally(function(){r._waitingFor===a&&(r._waitingFor=null)})})},p.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new $.Abort))},p.prototype.table=function(e){var t=this._memoizedTables||(this._memoizedTables={});if(g(t,e))return t[e];var n=this.schema[e];if(n)return(n=new this.db.Table(e,n,this)).core=this.db.core.table(e),t[e]=n;throw new $.NotFound("Table "+e+" not part of transaction")},p);function p(){}function qt(e,t,n,r,i,a,o,s){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:a,src:(n&&!o?"&":"")+(r?"*":"")+(i?"++":"")+Wt(t),type:s}}function Wt(e){return"string"==typeof e?e:e?"["+[].join.call(e,"+")+"]":""}function Gt(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:(r=function(e){return[e.name,e]},n.reduce(function(e,t,n){t=r(t,n);return t&&(e[t[0]]=t[1]),e},{}))};var r}var Xt=function(e){try{return e.only([[]]),Xt=function(){return[[]]},[[]]}catch(e){return Xt=function(){return lt},lt}};function Yt(t){return null==t?function(){}:"string"==typeof t?1===(n=t).split(".").length?function(e){return e[n]}:function(e){return l(e,n)}:function(e){return l(e,t)};var n}function Ht(e){return[].slice.call(e)}var Qt=0;function en(e){return null==e?":id":"string"==typeof e?e:"[".concat(e.join("+"),"]")}function tn(e,i,t){function w(e){if(3===e.type)return null;if(4===e.type)throw new Error("Cannot convert never type to IDBKeyRange");var t=e.lower,n=e.upper,r=e.lowerOpen,e=e.upperOpen;return void 0===t?void 0===n?null:i.upperBound(n,!!e):void 0===n?i.lowerBound(t,!!r):i.bound(t,n,!!r,!!e)}function n(e){var p,h,_=e.name;return{name:_,schema:e,mutate:function(e){var h=e.trans,v=e.type,g=e.keys,y=e.values,b=e.range;return new Promise(function(t,e){t=O(t);var n=h.objectStore(_),r=null==n.keyPath,i="put"===v||"add"===v;if(!i&&"delete"!==v&&"deleteRange"!==v)throw new Error("Invalid operation type: "+v);var a,o=(g||y||{length:1}).length;if(g&&y&&g.length!==y.length)throw new Error("Given keys array must have same length as given values array.");if(0===o)return t({numFailures:0,failures:{},results:[],lastResult:void 0});function s(e){++c,Ft(e)}var u=[],l=[],c=0;if("deleteRange"===v){if(4===b.type)return t({numFailures:c,failures:l,results:[],lastResult:void 0});3===b.type?u.push(a=n.clear()):u.push(a=n.delete(w(b)))}else{var r=i?r?[y,g]:[y,null]:[g,null],d=r[0],f=r[1];if(i)for(var m=0;m<o;++m)u.push(a=f&&void 0!==f[m]?n[v](d[m],f[m]):n[v](d[m])),a.onerror=s;else for(m=0;m<o;++m)u.push(a=n[v](d[m])),a.onerror=s}function p(e){e=e.target.result,u.forEach(function(e,t){return null!=e.error&&(l[t]=e.error)}),t({numFailures:c,failures:l,results:"delete"===v?g:u.map(function(e){return e.result}),lastResult:e})}a.onerror=function(e){s(e),p(e)},a.onsuccess=p})},getMany:function(e){var d=e.trans,f=e.keys;return new Promise(function(t,e){t=O(t);for(var n,r=d.objectStore(_),i=f.length,a=new Array(i),o=0,s=0,u=function(e){e=e.target;a[e._pos]=e.result,++s===o&&t(a)},l=D(e),c=0;c<i;++c)null!=f[c]&&((n=r.get(f[c]))._pos=c,n.onsuccess=u,n.onerror=l,++o);0===o&&t(a)})},get:function(e){var r=e.trans,i=e.key;return new Promise(function(t,e){t=O(t);var n=r.objectStore(_).get(i);n.onsuccess=function(e){return t(e.target.result)},n.onerror=D(e)})},query:(p=o,h=s,function(m){return new Promise(function(t,e){t=O(t);var n,r,i,a,o=m.trans,s=m.values,u=m.limit,l=m.query,c=null!=(c=m.direction)?c:"next",d=u===1/0?void 0:u,f=l.index,l=l.range,o=o.objectStore(_),o=f.isPrimaryKey?o:o.index(f.name),f=w(l);if(0===u)return t({result:[]});h?(l={query:f,count:d,direction:c},(n=s?o.getAll(l):o.getAllKeys(l)).onsuccess=function(e){return t({result:e.target.result})},n.onerror=D(e)):p&&"next"===c?((n=s?o.getAll(f,d):o.getAllKeys(f,d)).onsuccess=function(e){return t({result:e.target.result})},n.onerror=D(e)):(r=0,i=!s&&"openKeyCursor"in o?o.openKeyCursor(f,c):o.openCursor(f,c),a=[],i.onsuccess=function(){var e=i.result;return!e||(a.push(s?e.value:e.primaryKey),++r===u)?t({result:a}):void e.continue()},i.onerror=D(e))})}),openCursor:function(e){var l=e.trans,a=e.values,o=e.query,s=e.reverse,c=e.unique;return new Promise(function(t,n){t=O(t);var e=o.index,r=o.range,i=l.objectStore(_),i=e.isPrimaryKey?i:i.index(e.name),e=s?c?"prevunique":"prev":c?"nextunique":"next",u=!a&&"openKeyCursor"in i?i.openKeyCursor(w(r),e):i.openCursor(w(r),e);u.onerror=D(n),u.onsuccess=O(function(e){var r,i,a,o,s=u.result;s?(s.___id=++Qt,s.done=!1,r=s.continue.bind(s),i=(i=s.continuePrimaryKey)&&i.bind(s),a=s.advance.bind(s),o=function(){throw new Error("Cursor not stopped")},s.trans=l,s.stop=s.continue=s.continuePrimaryKey=s.advance=function(){throw new Error("Cursor not started")},s.fail=O(n),s.next=function(){var e=this,t=1;return this.start(function(){return t--?e.continue():e.stop()}).then(function(){return e})},s.start=function(e){function t(){if(u.result)try{e()}catch(e){s.fail(e)}else s.done=!0,s.start=function(){throw new Error("Cursor behind last entry")},s.stop()}var n=new Promise(function(t,e){t=O(t),u.onerror=D(e),s.fail=e,s.stop=function(e){s.stop=s.continue=s.continuePrimaryKey=s.advance=o,t(e)}});return u.onsuccess=O(function(e){u.onsuccess=t,t()}),s.continue=r,s.continuePrimaryKey=i,s.advance=a,t(),n},t(s)):t(null)},n)})},count:function(e){var t=e.query,i=e.trans,a=t.index,o=t.range;return new Promise(function(t,e){var n=i.objectStore(_),n=a.isPrimaryKey?n:n.index(a.name),r=w(o),r=r?n.count(r):n.count();r.onsuccess=O(function(e){return t(e.target.result)}),r.onerror=D(e)})}}}r=t,a=Ht((t=e).objectStoreNames),u=0<a.length?r.objectStore(a[0]):{};var r,t={schema:{name:t.name,tables:a.map(function(e){return r.objectStore(e)}).map(function(t){var e=t.keyPath,n=t.autoIncrement,r=k(e),i={},r={name:t.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==e,compound:r,keyPath:e,autoIncrement:n,unique:!0,extractKey:Yt(e)},indexes:Ht(t.indexNames).map(function(e){return t.index(e)}).map(function(e){var t=e.name,n=e.unique,r=e.multiEntry,e=e.keyPath,t={name:t,compound:k(e),keyPath:e,unique:n,multiEntry:r,extractKey:Yt(e)};return i[en(e)]=t}),getIndexByKeyPath:function(e){return i[en(e)]}};return i[":id"]=r.primaryKey,null!=e&&(i[en(e)]=r.primaryKey),r})},hasGetAll:0<a.length&&"getAll"in u&&!("undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604),hasIdb3Features:"getAllRecords"in u},a=t.schema,o=t.hasGetAll,s=t.hasIdb3Features,u=a.tables.map(n),l={};return u.forEach(function(e){return l[e.name]=e}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(e){if(l[e])return l[e];throw new Error("Table '".concat(e,"' not found"))},MIN_KEY:-1/0,MAX_KEY:Xt(i),schema:a}}function nn(e,t,n,r){var i=n.IDBKeyRange;return n.indexedDB,n=tn(t,i,r),{dbcore:e.dbcore.reduce(function(e,t){t=t.create;return w(w({},e),t(e))},n)}}function rn(n,e){var t=e.db,t=nn(n._middlewares,t,n._deps,e);n.core=t.dbcore,n.tables.forEach(function(e){var t=e.name;n.core.schema.tables.some(function(e){return e.name===t})&&(e.core=n.core.table(t),n[t]instanceof n.Table)&&(n[t].core=e.core)})}function an(i,e,t,a){t.forEach(function(n){var r=a[n];e.forEach(function(e){var t=function e(t,n){return K(t,n)||(t=C(t))&&e(t,n)}(e,n);(!t||"value"in t&&void 0===t.value)&&(e===i.Transaction.prototype||e instanceof i.Transaction?s(e,n,{get:function(){return this.table(n)},set:function(e){M(this,n,{value:e,writable:!0,configurable:!0,enumerable:!0})}}):e[n]=new i.Table(n,r))})})}function on(n,e){e.forEach(function(e){for(var t in e)e[t]instanceof n.Table&&delete e[t]})}function sn(e,t){return e._cfg.version-t._cfg.version}function un(n,r,i,e){var a=n._dbSchema,o=(i.objectStoreNames.contains("$meta")&&!a.$meta&&(a.$meta=Gt("$meta",vn("")[0],[]),n._storeNames.push("$meta")),n._createTransaction("readwrite",n._storeNames,a)),s=(o.create(i),o._completion.catch(e),o._reject.bind(o)),u=x.transless||x;v(function(){if(x.trans=o,x.transless=u,0!==r)return rn(n,i),t=r,((e=o).storeNames.includes("$meta")?e.table("$meta").get("version").then(function(e){return null!=e?e:t}):S.resolve(t)).then(function(e){var u=n,l=e,c=o,d=i,t=[],e=u._versions,f=u._dbSchema=pn(0,u.idbdb,d);return 0===(e=e.filter(function(e){return e._cfg.version>=l})).length?S.resolve():(e.forEach(function(s){t.push(function(){var t,n,r,i=f,e=s._cfg.dbschema,a=(hn(u,i,d),hn(u,e,d),f=u._dbSchema=e,cn(i,e)),o=(a.add.forEach(function(e){dn(d,e[0],e[1].primKey,e[1].indexes)}),a.change.forEach(function(e){if(e.recreate)throw new $.Upgrade("Not yet support for changing primary key");var t=d.objectStore(e.name);e.add.forEach(function(e){return mn(t,e)}),e.change.forEach(function(e){t.deleteIndex(e.name),mn(t,e)}),e.del.forEach(function(e){return t.deleteIndex(e)})}),s._cfg.contentUpgrade);if(o&&s._cfg.version>l)return rn(u,d),c._memoizedTables={},t=G(e),a.del.forEach(function(e){t[e]=i[e]}),on(u,[u.Transaction.prototype]),an(u,[u.Transaction.prototype],I(t),t),c.schema=t,(n=se(o))&&nt(),e=S.follow(function(){var e;(r=o(c))&&n&&(e=_.bind(null,null),r.then(e,e))}),r&&"function"==typeof r.then?S.resolve(r):e.then(function(){return r})}),t.push(function(e){var t,n,r=s._cfg.dbschema;t=r,n=e,[].slice.call(n.db.objectStoreNames).forEach(function(e){return null==t[e]&&n.db.deleteObjectStore(e)}),on(u,[u.Transaction.prototype]),an(u,[u.Transaction.prototype],u._storeNames,u._dbSchema),c.schema=u._dbSchema}),t.push(function(e){u.idbdb.objectStoreNames.contains("$meta")&&(Math.ceil(u.idbdb.version/10)===s._cfg.version?(u.idbdb.deleteObjectStore("$meta"),delete u._dbSchema.$meta,u._storeNames=u._storeNames.filter(function(e){return"$meta"!==e})):e.objectStore("$meta").put(s._cfg.version,"version"))})}),function e(){return t.length?S.resolve(t.shift()(c.idbtrans)).then(e):S.resolve()}().then(function(){fn(f,d)}))}).catch(s);var e,t;I(a).forEach(function(e){dn(i,e,a[e].primKey,a[e].indexes)}),rn(n,i),S.follow(function(){return n.on.populate.fire(o)}).catch(s)})}function ln(e,r){fn(e._dbSchema,r),r.db.version%10!=0||r.objectStoreNames.contains("$meta")||r.db.createObjectStore("$meta").add(Math.ceil(r.db.version/10-1),"version");var t=pn(0,e.idbdb,r);hn(e,e._dbSchema,r);for(var n=0,i=cn(t,e._dbSchema).change;n<i.length;n++){var a=function(t){if(t.change.length||t.recreate)return console.warn("Unable to patch indexes of table ".concat(t.name," because it has changes on the type of index or primary key.")),{value:void 0};var n=r.objectStore(t.name);t.add.forEach(function(e){c&&console.debug("Dexie upgrade patch: Creating missing index ".concat(t.name,".").concat(e.src)),mn(n,e)})}(i[n]);if("object"==typeof a)return a.value}}function cn(e,t){var n,r={del:[],add:[],change:[]};for(n in e)t[n]||r.del.push(n);for(n in t){var i=e[n],a=t[n];if(i){var o={name:n,def:a,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(a.primKey.keyPath||"")||i.primKey.auto!==a.primKey.auto)o.recreate=!0,r.change.push(o);else{var s=i.idxByName,u=a.idxByName,l=void 0;for(l in s)u[l]||o.del.push(l);for(l in u){var c=s[l],d=u[l];c?c.src!==d.src&&o.change.push(d):o.add.push(d)}(0<o.del.length||0<o.add.length||0<o.change.length)&&r.change.push(o)}}else r.add.push([n,a])}return r}function dn(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});r.forEach(function(e){return mn(i,e)})}function fn(t,n){I(t).forEach(function(e){n.db.objectStoreNames.contains(e)||(c&&console.debug("Dexie: Creating missing table",e),dn(n,e,t[e].primKey,t[e].indexes))})}function mn(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function pn(e,t,s){var u={};return J(t.objectStoreNames,0).forEach(function(e){for(var t=s.objectStore(e),n=qt(Wt(o=t.keyPath),o||"",!0,!1,!!t.autoIncrement,o&&"string"!=typeof o,!0),r=[],i=0;i<t.indexNames.length;++i){var a=t.index(t.indexNames[i]),o=a.keyPath,a=qt(a.name,o,!!a.unique,!!a.multiEntry,!1,o&&"string"!=typeof o,!1);r.push(a)}u[e]=Gt(e,n,r)}),u}function hn(e,t,n){for(var r=n.db.objectStoreNames,i=0;i<r.length;++i){var a=r[i],o=n.objectStore(a);e._hasGetAll="getAll"in o;for(var s=0;s<o.indexNames.length;++s){var u,l=o.indexNames[s],c=o.index(l).keyPath,c="string"==typeof c?c:"["+J(c).join("+")+"]";t[a]&&(u=t[a].idxByName[c])&&(u.name=l,delete t[a].idxByName[c],t[a].idxByName[l]=u)}}"undefined"!=typeof navigator&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&d.WorkerGlobalScope&&d instanceof d.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(e._hasGetAll=!1)}function vn(e){return e.split(",").map(function(e,t){var n=e.split(":"),r=null==(r=n[1])?void 0:r.trim(),n=(e=n[0].trim()).replace(/([&*]|\+\+)/g,""),i=/^\[/.test(n)?n.match(/^\[(.*)\]$/)[1].split("+"):n;return qt(n,i||null,/\&/.test(e),/\*/.test(e),/\+\+/.test(e),k(i),0===t,r)})}yn.prototype._createTableSchema=Gt,yn.prototype._parseIndexSyntax=vn,yn.prototype._parseStoresSpec=function(r,i){var a=this;I(r).forEach(function(e){if(null!==r[e]){var t=a._parseIndexSyntax(r[e]),n=t.shift();if(!n)throw new $.Schema("Invalid schema for table "+e+": "+r[e]);if(n.unique=!0,n.multi)throw new $.Schema("Primary key cannot be multiEntry*");t.forEach(function(e){if(e.auto)throw new $.Schema("Only primary key can be marked as autoIncrement (++)");if(!e.keyPath)throw new $.Schema("Index must have a name and cannot be an empty string")});n=a._createTableSchema(e,n,t);i[e]=n}})},yn.prototype.stores=function(e){var t=this.db,e=(this._cfg.storesSource=this._cfg.storesSource?o(this._cfg.storesSource,e):e,t._versions),n={},r={};return e.forEach(function(e){o(n,e._cfg.storesSource),r=e._cfg.dbschema={},e._parseStoresSpec(n,r)}),t._dbSchema=r,on(t,[t._allTables,t,t.Transaction.prototype]),an(t,[t._allTables,t,t.Transaction.prototype,this._cfg.tables],I(r),r),t._storeNames=I(r),this},yn.prototype.upgrade=function(e){return this._cfg.contentUpgrade=$e(this._cfg.contentUpgrade||b,e),this};var gn=yn;function yn(){}var bn=function(){{var i,a,t;return"undefined"!=typeof FinalizationRegistry&&"undefined"!=typeof WeakRef?(i=new Set,a=new FinalizationRegistry(function(e){i.delete(e)}),{toArray:function(){return Array.from(i).map(function(e){return e.deref()}).filter(function(e){return void 0!==e})},add:function(e){var t=new WeakRef(e._novip);i.add(t),a.register(e._novip,t,t),i.size>e._options.maxConnections&&(t=i.values().next().value,i.delete(t),a.unregister(t))},remove:function(e){if(e)for(var t=i.values(),n=t.next();!n.done;){var r=n.value;if(r.deref()===e._novip)return i.delete(r),void a.unregister(r);n=t.next()}}}):(t=[],{toArray:function(){return t},add:function(e){t.push(e._novip)},remove:function(e){e&&-1!==(e=t.indexOf(e._novip))&&t.splice(e,1)}})}}();function _n(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new h(dt,{addons:[],indexedDB:e,IDBKeyRange:t})).version(1).stores({dbnames:"name"}),n.table("dbnames")}function wn(e){return e&&"function"==typeof e.databases}function kn(e){return v(function(){return x.letThrough=!0,e()})}function $n(e){return!("from"in e)}var A=function(e,t){var n;if(!this)return n=new A,e&&"d"in e&&o(n,e),n;o(this,arguments.length?{d:1,from:e,to:1<arguments.length?t:e}:{d:0})};function In(e,t,n){var r=j(t,n);if(!isNaN(r)){if(0<r)throw RangeError();if($n(e))return o(e,{from:t,to:n,d:1});var r=e.l,i=e.r;if(j(n,e.from)<0)return r?In(r,t,n):e.l={from:t,to:n,d:1,l:null,r:null},zn(e);if(0<j(t,e.to))return i?In(i,t,n):e.r={from:t,to:n,d:1,l:null,r:null},zn(e);j(t,e.from)<0&&(e.from=t,e.l=null,e.d=i?i.d+1:1),0<j(n,e.to)&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);t=!e.r;r&&!e.l&&xn(e,r),i&&t&&xn(e,i)}}function xn(e,t){$n(t)||!function e(t,n){var r=n.from,i=n.to,a=n.l,n=n.r;In(t,r,i),a&&e(t,a),n&&e(t,n)}(e,t)}function Sn(e,t){var n=On(t),r=n.next();if(!r.done)for(var i=r.value,a=On(e),o=a.next(i.from),s=o.value;!r.done&&!o.done;){if(j(s.from,i.to)<=0&&0<=j(s.to,i.from))return!0;j(i.from,s.from)<0?i=(r=n.next(s.from)).value:s=(o=a.next(i.from)).value}return!1}function On(e){var n=$n(e)?null:{s:0,n:e};return{next:function(e){for(var t=0<arguments.length;n;)switch(n.s){case 0:if(n.s=1,t)for(;n.n.l&&j(e,n.n.from)<0;)n={up:n,n:n.n.l,s:1};else for(;n.n.l;)n={up:n,n:n.n.l,s:1};case 1:if(n.s=2,!t||j(e,n.n.to)<=0)return{value:n.n,done:!1};case 2:if(n.n.r){n.s=3,n={up:n,n:n.n.r,s:0};continue}case 3:n=n.up}return{done:!0}}}}function zn(e){var t,n,r,i=((null==(i=e.r)?void 0:i.d)||0)-((null==(i=e.l)?void 0:i.d)||0),i=1<i?"r":i<-1?"l":"";i&&(t="r"==i?"l":"r",n=w({},e),r=e[i],e.from=r.from,e.to=r.to,e[i]=r[i],n[i]=r[t],(e[t]=n).d=Nn(n)),e.d=Nn(e)}function Nn(e){var t=e.r,e=e.l;return(t?e?Math.max(t.d,e.d):t.d:e?e.d:0)+1}function jn(t,n){return I(n).forEach(function(e){t[e]?xn(t[e],n[e]):t[e]=function e(t){var n,r,i={};for(n in t)g(t,n)&&(r=t[n],i[n]=!r||"object"!=typeof r||H.has(r.constructor)?r:e(r));return i}(n[e])}),t}function Pn(t,n){return t.all||n.all||Object.keys(t).some(function(e){return n[e]&&Sn(n[e],t[e])})}R(A.prototype,((t={add:function(e){return xn(this,e),this},addKey:function(e){return In(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(e){return In(t,e,e)}),this},hasKey:function(e){var t=On(this).next(e).value;return t&&j(t.from,e)<=0&&0<=j(t.to,e)}})[re]=function(){return On(this)},t));var Un={},Dn={},An=!1;function En(e){jn(Dn,e),An||(An=!0,setTimeout(function(){An=!1,Tn(Dn,!(Dn={}))},0))}function Tn(e,t){void 0===t&&(t=!1);var n=new Set;if(e.all)for(var r=0,i=Object.values(Un);r<i.length;r++)Ln(s=i[r],e,n,t);else for(var a in e){var o,s,a=/^idb\:\/\/(.*)\/(.*)\//.exec(a);a&&(o=a[1],a=a[2],s=Un["idb://".concat(o,"/").concat(a)])&&Ln(s,e,n,t)}n.forEach(function(e){return e()})}function Ln(e,t,n,r){for(var i=[],a=0,o=Object.entries(e.queries.query);a<o.length;a++){for(var s=o[a],u=s[0],l=[],c=0,d=s[1];c<d.length;c++){var f=d[c];Pn(t,f.obsSet)?f.subscribers.forEach(function(e){return n.add(e)}):r&&l.push(f)}r&&i.push([u,l])}if(r)for(var m=0,p=i;m<p.length;m++){var h=p[m],u=h[0],l=h[1];e.queries.query[u]=l}}function Cn(f){var m=f._state,r=f._deps.indexedDB;if(m.isBeingOpened||f.idbdb)return m.dbReadyPromise.then(function(){return m.dbOpenError?z(m.dbOpenError):f});m.isBeingOpened=!0,m.dbOpenError=null,m.openComplete=!1;var t=m.openCanceller,p=Math.round(10*f.verno),h=!1;function e(){if(m.openCanceller!==t)throw new $.DatabaseClosed("db.open() was cancelled")}function v(){return new S(function(l,n){if(e(),!r)throw new $.MissingAPI;var c=f.name,d=m.autoSchema||!p?r.open(c):r.open(c,p);if(!d)throw new $.MissingAPI;d.onerror=D(n),d.onblocked=O(f._fireOnBlocked),d.onupgradeneeded=O(function(e){var t;g=d.transaction,m.autoSchema&&!f._options.allowEmptyDB?(d.onerror=Ft,g.abort(),d.result.close(),(t=r.deleteDatabase(c)).onsuccess=t.onerror=O(function(){n(new $.NoSuchDatabase("Database ".concat(c," doesnt exist")))})):(g.onerror=D(n),t=e.oldVersion>Math.pow(2,62)?0:e.oldVersion,y=t<1,f.idbdb=d.result,h&&ln(f,g),un(f,t/10,g,n))},n),d.onsuccess=O(function(){g=null;var e,t,n,r,i,a,o=f.idbdb=d.result,s=J(o.objectStoreNames);if(0<s.length)try{var u=o.transaction(1===(i=s).length?i[0]:i,"readonly");if(m.autoSchema)a=o,r=u,(n=f).verno=a.version/10,r=n._dbSchema=pn(0,a,r),n._storeNames=J(a.objectStoreNames,0),an(n,[n._allTables],I(r),r);else if(hn(f,f._dbSchema,u),t=u,((t=cn(pn(0,(e=f).idbdb,t),e._dbSchema)).add.length||t.change.some(function(e){return e.add.length||e.change.length}))&&!h)return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."),o.close(),p=o.version+1,h=!0,l(v());rn(f,u)}catch(e){}bn.add(f),o.onversionchange=O(function(e){m.vcFired=!0,f.on("versionchange").fire(e)}),o.onclose=O(function(){f.close({disableAutoOpen:!1})}),y&&(s=f._deps,i=c,a=s.indexedDB,s=s.IDBKeyRange,wn(a)||i===dt||_n(a,s).put({name:i}).catch(b)),l()},n)}).catch(function(e){switch(null==e?void 0:e.name){case"UnknownError":if(0<m.PR1398_maxLoop)return m.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),v();break;case"VersionError":if(0<p)return p=0,v()}return S.reject(e)})}var n,i=m.dbReadyResolve,g=null,y=!1;return S.race([t,("undefined"==typeof navigator?S.resolve():!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(e){function t(){return indexedDB.databases().finally(e)}n=setInterval(t,100),t()}).finally(function(){return clearInterval(n)}):Promise.resolve()).then(v)]).then(function(){return e(),m.onReadyBeingFired=[],S.resolve(kn(function(){return f.on.ready.fire(f.vip)})).then(function e(){var t;if(0<m.onReadyBeingFired.length)return t=m.onReadyBeingFired.reduce($e,b),m.onReadyBeingFired=[],S.resolve(kn(function(){return t(f.vip)})).then(e)})}).finally(function(){m.openCanceller===t&&(m.onReadyBeingFired=null,m.isBeingOpened=!1)}).catch(function(e){m.dbOpenError=e;try{g&&g.abort()}catch(e){}return t===m.openCanceller&&f._close(),z(e)}).finally(function(){m.openComplete=!0,i()}).then(function(){var n;return y&&(n={},f.tables.forEach(function(t){t.schema.indexes.forEach(function(e){e.name&&(n["idb://".concat(f.name,"/").concat(t.name,"/").concat(e.name)]=new A(-1/0,[[[]]]))}),n["idb://".concat(f.name,"/").concat(t.name,"/")]=n["idb://".concat(f.name,"/").concat(t.name,"/:dels")]=new A(-1/0,[[[]]])}),Jt(Kt).fire(n),Tn(n,!0)),f})}function Zn(t){function e(e){return t.next(e)}var r=n(e),i=n(function(e){return t.throw(e)});function n(n){return function(e){var e=n(e),t=e.value;return e.done?t:t&&"function"==typeof t.then?t.then(r,i):k(t)?Promise.all(t).then(r,i):r(t)}}return n(e)()}function Rn(e,t,n){for(var r=k(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}var Mn={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(d){return w(w({},d),{table:function(e){var o=d.table(e),e=o.schema,s=Object.create(null),u=[];function l(e,t,n){var r=en(e),i=s[r]=s[r]||[],a=null==e?0:"string"==typeof e?1:e.length,o=0<t,r=w(w({},n),{name:o?"".concat(r,"(virtual-from:").concat(n.name,")"):n.name,lowLevelIndex:n,isVirtual:o,keyTail:t,keyLength:a,extractKey:Yt(e),unique:!o&&n.unique});return i.push(r),r.isPrimaryKey||u.push(r),1<a&&l(2===a?e[0]:e.slice(0,a-1),t+1,n),i.sort(function(e,t){return e.keyTail-t.keyTail}),r}var t=l(e.primaryKey.keyPath,0,e.primaryKey);s[":id"]=[t];for(var n=0,r=e.indexes;n<r.length;n++){var i=r[n];l(i.keyPath,0,i)}function c(e){var t,n=e.query.index;return n.isVirtual?w(w({},e),{query:{index:n.lowLevelIndex,range:(t=e.query.range,n=n.keyTail,{type:1===t.type?2:t.type,lower:Rn(t.lower,t.lowerOpen?d.MAX_KEY:d.MIN_KEY,n),lowerOpen:!0,upper:Rn(t.upper,t.upperOpen?d.MIN_KEY:d.MAX_KEY,n),upperOpen:!0})}}):e}return w(w({},o),{schema:w(w({},e),{primaryKey:t,indexes:u,getIndexByKeyPath:function(e){return(e=s[en(e)])&&e[0]}}),count:function(e){return o.count(c(e))},query:function(e){return o.query(c(e))},openCursor:function(t){var e=t.query.index,r=e.keyTail,n=e.isVirtual,i=e.keyLength;return n?o.openCursor(c(t)).then(function(e){return e&&a(e)}):o.openCursor(t);function a(n){return Object.create(n,{continue:{value:function(e){null!=e?n.continue(Rn(e,t.reverse?d.MAX_KEY:d.MIN_KEY,r)):t.unique?n.continue(n.key.slice(0,i).concat(t.reverse?d.MIN_KEY:d.MAX_KEY,r)):n.continue()}},continuePrimaryKey:{value:function(e,t){n.continuePrimaryKey(Rn(e,d.MAX_KEY,r),t)}},primaryKey:{get:function(){return n.primaryKey}},key:{get:function(){var e=n.key;return 1===i?e[0]:e.slice(0,i)}},value:{get:function(){return n.value}}})}}})}})}};function Fn(i,a,o,s){return o=o||{},s=s||"",I(i).forEach(function(e){var t,n,r;g(a,e)?(t=i[e],n=a[e],"object"==typeof t&&"object"==typeof n&&t&&n?(r=ne(t))!==ne(n)?o[s+e]=a[e]:"Object"===r?Fn(t,n,o,s+e+"."):t!==n&&(o[s+e]=a[e]):t!==n&&(o[s+e]=a[e])):o[s+e]=void 0}),I(a).forEach(function(e){g(i,e)||(o[s+e]=a[e])}),o}function Kn(e,t){return"delete"===t.type?t.keys:t.keys||t.values.map(e.extractKey)}var Vn={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return w(w({},e),{table:function(r){var h=e.table(r),v=h.schema.primaryKey;return w(w({},h),{mutate:function(e){var t=x.trans,n=t.table(r).hook,f=n.deleting,m=n.creating,p=n.updating;switch(e.type){case"add":if(m.fire===b)break;return t._promise("readwrite",function(){return o(e)},!0);case"put":if(m.fire===b&&p.fire===b)break;return t._promise("readwrite",function(){return o(e)},!0);case"delete":if(f.fire===b)break;return t._promise("readwrite",function(){return o(e)},!0);case"deleteRange":if(f.fire===b)break;return t._promise("readwrite",function(){return function n(r,i,a){return h.query({trans:r,values:!1,query:{index:v,range:i},limit:a}).then(function(e){var t=e.result;return o({type:"delete",keys:t,trans:r}).then(function(e){return 0<e.numFailures?Promise.reject(e.failures[0]):t.length<a?{failures:[],numFailures:0,lastResult:void 0}:n(r,w(w({},i),{lower:t[t.length-1],lowerOpen:!0}),a)})})}(e.trans,e.range,1e4)},!0)}return h.mutate(e);function o(l){var e,t,n,c=x.trans,d=l.keys||Kn(v,l);if(d)return"delete"!==(l="add"===l.type||"put"===l.type?w(w({},l),{keys:d}):w({},l)).type&&(l.values=L([],l.values,!0)),l.keys&&(l.keys=L([],l.keys,!0)),e=h,n=d,("add"===(t=l).type?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})).then(function(s){var u=d.map(function(e,t){var n,r,i,a=s[t],o={onerror:null,onsuccess:null};return"delete"===l.type?f.fire.call(o,e,a,c):"add"===l.type||void 0===a?(n=m.fire.call(o,e,l.values[t],c),null==e&&null!=n&&(l.keys[t]=e=n,v.outbound||y(l.values[t],v.keyPath,e))):(n=Fn(a,l.values[t]),(r=p.fire.call(o,n,e,a,c))&&(i=l.values[t],Object.keys(r).forEach(function(e){g(i,e)?i[e]=r[e]:y(i,e,r[e])}))),o});return h.mutate(l).then(function(e){for(var t=e.failures,n=e.results,r=e.numFailures,e=e.lastResult,i=0;i<d.length;++i){var a=(n||d)[i],o=u[i];null==a?o.onerror&&o.onerror(t[i]):o.onsuccess&&o.onsuccess("put"===l.type&&s[i]?l.values[i]:a)}return{failures:t,results:n,numFailures:r,lastResult:e}}).catch(function(t){return u.forEach(function(e){return e.onerror&&e.onerror(t)}),Promise.reject(t)})});throw new Error("Keys missing")}}})}})}};function Jn(e,t,n){try{if(!t)return null;if(t.keys.length<e.length)return null;for(var r=[],i=0,a=0;i<t.keys.length&&a<e.length;++i)0===j(t.keys[i],e[a])&&(r.push(n?ee(t.values[i]):t.values[i]),++a);return r.length===e.length?r:null}catch(e){return null}}var Bn={stack:"dbcore",level:-1,create:function(t){return{table:function(e){var n=t.table(e);return w(w({},n),{getMany:function(t){var e;return t.cache?(e=Jn(t.keys,t.trans._cache,"clone"===t.cache))?S.resolve(e):n.getMany(t).then(function(e){return t.trans._cache={keys:t.keys,values:"clone"===t.cache?ee(e):e},e}):n.getMany(t)},mutate:function(e){return"add"!==e.type&&(e.trans._cache=null),n.mutate(e)}})}}}};function qn(e,t){return"readonly"===e.trans.mode&&!!e.subscr&&!e.trans.explicit&&"disabled"!==e.trans.db._options.cache&&!t.schema.primaryKey.outbound}function Wn(e,t){switch(e){case"query":return t.values&&!t.unique;case"get":case"getMany":case"count":case"openCursor":return!1}}var Gn={stack:"dbcore",level:0,name:"Observability",create:function(y){var b=y.schema.name,_=new A(y.MIN_KEY,y.MAX_KEY);return w(w({},y),{transaction:function(e,t,n){if(x.subscr&&"readonly"!==t)throw new $.ReadOnly("Readwrite transaction in liveQuery context. Querier source: ".concat(x.querier));return y.transaction(e,t,n)},table:function(m){function e(e){var t=(e=e.query).index,e=e.range;return[t,new A(null!=(t=e.lower)?t:y.MIN_KEY,null!=(t=e.upper)?t:y.MAX_KEY)]}var p=y.table(m),h=p.schema,v=h.primaryKey,t=h.indexes,l=v.extractKey,c=v.outbound,g=v.autoIncrement&&t.filter(function(e){return e.compound&&e.keyPath.includes(v.keyPath)}),n=w(w({},p),{mutate:function(o){function s(e){return e="idb://".concat(b,"/").concat(m,"/").concat(e),n[e]||(n[e]=new A)}var e,a,u,t=o.trans,n=o.mutatedParts||(o.mutatedParts={}),r=s(""),i=s(":dels"),l=o.type,c="deleteRange"===o.type?[o.range]:"delete"===o.type?[o.keys]:o.values.length<50?[Kn(v,o).filter(function(e){return e}),o.values]:[],d=c[0],c=c[1],f=o.trans._cache;return k(d)?(r.addKeys(d),(l="delete"===l||d.length===c.length?Jn(d,f):null)||i.addKeys(d),(l||c)&&(e=s,a=l,u=c,h.indexes.forEach(function(t){var n=e(t.name||"");function r(e){return null!=e?t.extractKey(e):null}function i(e){t.multiEntry&&k(e)?e.forEach(function(e){return n.addKey(e)}):n.addKey(e)}(a||u).forEach(function(e,t){var n=a&&r(a[t]),t=u&&r(u[t]);0!==j(n,t)&&(null!=n&&i(n),null!=t)&&i(t)})}))):d?(c={from:null!=(f=d.lower)?f:y.MIN_KEY,to:null!=(l=d.upper)?l:y.MAX_KEY},i.add(c),r.add(c)):(r.add(_),i.add(_),h.indexes.forEach(function(e){return s(e.name).add(_)})),p.mutate(o).then(function(a){return!d||"add"!==o.type&&"put"!==o.type||(r.addKeys(a.results),g&&g.forEach(function(t){for(var e=o.values.map(function(e){return t.extractKey(e)}),n=t.keyPath.findIndex(function(e){return e===v.keyPath}),r=0,i=a.results.length;r<i;++r)e[r][n]=a.results[r];s(t.name).addKeys(e)})),t.mutatedParts=jn(t.mutatedParts||{},n),a})}}),d={get:function(e){return[v,new A(e.key)]},getMany:function(e){return[v,(new A).addKeys(e.keys)]},count:e,query:e,openCursor:e};return I(d).forEach(function(u){n[u]=function(i){var e=x.subscr,t=!!e,n=qn(x,p)&&Wn(u,i)?i.obsSet={}:e;if(t){var a,e=function(e){e="idb://".concat(b,"/").concat(m,"/").concat(e);return n[e]||(n[e]=new A)},o=e(""),s=e(":dels"),t=d[u](i),r=t[0],t=t[1];if(("query"===u&&r.isPrimaryKey&&!i.values?s:e(r.name||"")).add(t),!r.isPrimaryKey){if("count"!==u)return a="query"===u&&c&&i.values&&p.query(w(w({},i),{values:!1})),p[u].apply(this,arguments).then(function(t){if("query"===u){if(c&&i.values)return a.then(function(e){e=e.result;return o.addKeys(e),t});var e=i.values?t.result.map(l):t.result;(i.values?o:s).addKeys(e)}else{var n,r;if("openCursor"===u)return r=i.values,(n=t)&&Object.create(n,{key:{get:function(){return s.addKey(n.primaryKey),n.key}},primaryKey:{get:function(){var e=n.primaryKey;return s.addKey(e),e}},value:{get:function(){return r&&o.addKey(n.primaryKey),n.value}}})}return t});s.add(_)}}return p[u].apply(this,arguments)}}),n}})}};function Xn(e,t,n){var r;return 0===n.numFailures?t:"deleteRange"===t.type||(r=t.keys?t.keys.length:"values"in t&&t.values?t.values.length:1,n.numFailures===r)?null:(r=w({},t),k(r.keys)&&(r.keys=r.keys.filter(function(e,t){return!(t in n.failures)})),"values"in r&&k(r.values)&&(r.values=r.values.filter(function(e,t){return!(t in n.failures)})),r)}function Yn(e,t){return n=e,(void 0===(r=t).lower||(r.lowerOpen?0<j(n,r.lower):0<=j(n,r.lower)))&&(n=e,void 0===(r=t).upper||(r.upperOpen?j(n,r.upper)<0:j(n,r.upper)<=0));var n,r}function Hn(e,m,t,n,r,i){var a,p,h,v,g,o,s;return!t||0===t.length||(a=m.query.index,p=a.multiEntry,h=m.query.range,v=n.schema.primaryKey.extractKey,g=a.extractKey,o=(a.lowLevelIndex||a).extractKey,(n=t.reduce(function(e,t){var n=e,r=[];if("add"===t.type||"put"===t.type)for(var i=new A,a=t.values.length-1;0<=a;--a){var o,s=t.values[a],u=v(s);!i.hasKey(u)&&(o=g(s),p&&k(o)?o.some(function(e){return Yn(e,h)}):Yn(o,h))&&(i.addKey(u),r.push(s))}switch(t.type){case"add":var l=(new A).addKeys(m.values?e.map(function(e){return v(e)}):e),n=e.concat(m.values?r.filter(function(e){e=v(e);return!l.hasKey(e)&&(l.addKey(e),!0)}):r.map(function(e){return v(e)}).filter(function(e){return!l.hasKey(e)&&(l.addKey(e),!0)}));break;case"put":var c=(new A).addKeys(t.values.map(function(e){return v(e)}));n=e.filter(function(e){return!c.hasKey(m.values?v(e):e)}).concat(m.values?r:r.map(function(e){return v(e)}));break;case"delete":var d=(new A).addKeys(t.keys);n=e.filter(function(e){return!d.hasKey(m.values?v(e):e)});break;case"deleteRange":var f=t.range;n=e.filter(function(e){return!Yn(v(e),f)})}return n},e))===e)?e:(s=function(e,t){return j(o(e),o(t))||j(v(e),v(t))},n.sort("prev"===m.direction||"prevunique"===m.direction?function(e,t){return s(t,e)}:s),m.limit&&m.limit<1/0&&(n.length>m.limit?n.length=m.limit:e.length===m.limit&&n.length<m.limit&&(r.dirty=!0)),i?Object.freeze(n):n)}function Qn(e,t){return 0===j(e.lower,t.lower)&&0===j(e.upper,t.upper)&&!!e.lowerOpen==!!t.lowerOpen&&!!e.upperOpen==!!t.upperOpen}function er(e,t){return function(e,t,n,r){if(void 0===e)return void 0!==t?-1:0;if(void 0===t)return 1;if(0===(e=j(e,t))){if(n&&r)return 0;if(n)return 1;if(r)return-1}return e}(e.lower,t.lower,e.lowerOpen,t.lowerOpen)<=0&&0<=function(e,t,n,r){if(void 0===e)return void 0!==t?1:0;if(void 0===t)return-1;if(0===(e=j(e,t))){if(n&&r)return 0;if(n)return-1;if(r)return 1}return e}(e.upper,t.upper,e.upperOpen,t.upperOpen)}function tr(n,r,i,e){n.subscribers.add(i),e.addEventListener("abort",function(){var e,t;n.subscribers.delete(i),0===n.subscribers.size&&(e=n,t=r,setTimeout(function(){0===e.subscribers.size&&ae(t,e)},3e3))})}var nr={stack:"dbcore",level:0,name:"Cache",create:function($){var I=$.schema.name;return w(w({},$),{transaction:function(b,_,e){var w,t,k=$.transaction(b,_,e);return"readwrite"===_&&(e=(w=new AbortController).signal,k.addEventListener("abort",(t=function(y){return function(){if(w.abort(),"readwrite"===_){for(var t=new Set,e=0,n=b;e<n.length;e++){var r=n[e],i=Un["idb://".concat(I,"/").concat(r)];if(i){var a=$.table(r),o=i.optimisticOps.filter(function(e){return e.trans===k});if(k._explicit&&y&&k.mutatedParts)for(var s=0,u=Object.values(i.queries.query);s<u.length;s++)for(var l=0,c=(m=u[s]).slice();l<c.length;l++)Pn((p=c[l]).obsSet,k.mutatedParts)&&(ae(m,p),p.subscribers.forEach(function(e){return t.add(e)}));else if(0<o.length){i.optimisticOps=i.optimisticOps.filter(function(e){return e.trans!==k});for(var d=0,f=Object.values(i.queries.query);d<f.length;d++)for(var m,p,h,v=0,g=(m=f[d]).slice();v<g.length;v++)null!=(p=g[v]).res&&k.mutatedParts&&(y&&!p.dirty?(h=Object.isFrozen(p.res),h=Hn(p.res,p.req,o,a,p,h),p.dirty?(ae(m,p),p.subscribers.forEach(function(e){return t.add(e)})):h!==p.res&&(p.res=h,p.promise=S.resolve({result:h}))):(p.dirty&&ae(m,p),p.subscribers.forEach(function(e){return t.add(e)})))}}}t.forEach(function(e){return e()})}}})(!1),{signal:e}),k.addEventListener("error",t(!1),{signal:e}),k.addEventListener("complete",t(!0),{signal:e})),k},table:function(l){var c=$.table(l),i=c.schema.primaryKey;return w(w({},c),{mutate:function(t){var n,e=x.trans;return!i.outbound&&"disabled"!==e.db._options.cache&&!e.explicit&&"readwrite"===e.idbtrans.mode&&(n=Un["idb://".concat(I,"/").concat(l)])?(e=c.mutate(t),"add"!==t.type&&"put"!==t.type||!(50<=t.values.length||Kn(i,t).some(function(e){return null==e}))?(n.optimisticOps.push(t),t.mutatedParts&&En(t.mutatedParts),e.then(function(e){0<e.numFailures&&(ae(n.optimisticOps,t),(e=Xn(0,t,e))&&n.optimisticOps.push(e),t.mutatedParts)&&En(t.mutatedParts)}),e.catch(function(){ae(n.optimisticOps,t),t.mutatedParts&&En(t.mutatedParts)})):e.then(function(r){var e=Xn(0,w(w({},t),{values:t.values.map(function(e,t){var n;return r.failures[t]?e:(y(n=null!=(n=i.keyPath)&&n.includes(".")?ee(e):w({},e),i.keyPath,r.results[t]),n)})}),r);n.optimisticOps.push(e),queueMicrotask(function(){return t.mutatedParts&&En(t.mutatedParts)})}),e):c.mutate(t)},query:function(t){var i,e,n,r,a,o,s,u;return qn(x,c)&&Wn("query",t)?(i="immutable"===(null==(n=x.trans)?void 0:n.db._options.cache),e=(n=x).requery,n=n.signal,s=function(e,t,n,r){var i=Un["idb://".concat(e,"/").concat(t)];if(!i)return[];if(!(e=i.queries[n]))return[null,!1,i,null];var a=e[(r.query?r.query.index.name:null)||""];if(!a)return[null,!1,i,null];switch(n){case"query":var o=null!=(s=r.direction)?s:"next",s=a.find(function(e){var t;return e.req.limit===r.limit&&e.req.values===r.values&&(null!=(t=e.req.direction)?t:"next")===o&&Qn(e.req.query.range,r.query.range)});return s?[s,!0,i,a]:[a.find(function(e){var t;return("limit"in e.req?e.req.limit:1/0)>=r.limit&&(null!=(t=e.req.direction)?t:"next")===o&&(!r.values||e.req.values)&&er(e.req.query.range,r.query.range)}),!1,i,a];case"count":s=a.find(function(e){return Qn(e.req.query.range,r.query.range)});return[s,!!s,i,a]}}(I,l,"query",t),u=s[0],r=s[1],a=s[2],o=s[3],u&&r?u.obsSet=t.obsSet:(s=c.query(t).then(function(e){var t=e.result;if(u&&(u.res=t),i){for(var n=0,r=t.length;n<r;++n)Object.freeze(t[n]);Object.freeze(t)}return e}).catch(function(e){return o&&u&&ae(o,u),Promise.reject(e)}),u={obsSet:t.obsSet,promise:s,subscribers:new Set,type:"query",req:t,dirty:!1},o?o.push(u):(o=[u],(a=a||(Un["idb://".concat(I,"/").concat(l)]={queries:{query:{},count:{}},objs:new Map,optimisticOps:[],unsignaledParts:{}})).queries.query[t.query.index.name||""]=o)),tr(u,o,e,n),u.promise.then(function(e){e=Hn(e.result,t,null==a?void 0:a.optimisticOps,c,u,i);return{result:i?e:ee(e)}})):c.query(t)}})}})}};function rr(e,r){return new Proxy(e,{get:function(e,t,n){return"db"===t?r:Reflect.get(e,t,n)}})}E.prototype.version=function(t){if(isNaN(t)||t<.1)throw new $.Type("Given version is not a positive number");if(t=Math.round(10*t)/10,this.idbdb||this._state.isBeingOpened)throw new $.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var e=this._versions,n=e.filter(function(e){return e._cfg.version===t})[0];return n||(n=new this.Version(t),e.push(n),e.sort(sn),n.stores({}),this._state.autoSchema=!1),n},E.prototype._whenReady=function(e){var n=this;return this.idbdb&&(this._state.openComplete||x.letThrough||this._vip)?e():new S(function(e,t){if(n._state.openComplete)return t(new $.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._state.autoOpen)return void t(new $.DatabaseClosed);n.open().catch(b)}n._state.dbReadyPromise.then(e,t)}).then(e)},E.prototype.use=function(e){var t=e.stack,n=e.create,r=e.level,e=e.name,i=(e&&this.unuse({stack:t,name:e}),this._middlewares[t]||(this._middlewares[t]=[]));return i.push({stack:t,create:n,level:null==r?10:r,name:e}),i.sort(function(e,t){return e.level-t.level}),this},E.prototype.unuse=function(e){var t=e.stack,n=e.name,r=e.create;return t&&this._middlewares[t]&&(this._middlewares[t]=this._middlewares[t].filter(function(e){return r?e.create!==r:!!n&&e.name!==n})),this},E.prototype.open=function(){var e=this;return ot(u,function(){return Cn(e)})},E.prototype._close=function(){this.on.close.fire(new CustomEvent("close"));var n=this._state;if(bn.remove(this),this.idbdb){try{this.idbdb.close()}catch(e){}this.idbdb=null}n.isBeingOpened||(n.dbReadyPromise=new S(function(e){n.dbReadyResolve=e}),n.openCanceller=new S(function(e,t){n.cancelOpen=t}))},E.prototype.close=function(e){var e=(void 0===e?{disableAutoOpen:!0}:e).disableAutoOpen,t=this._state;e?(t.isBeingOpened&&t.cancelOpen(new $.DatabaseClosed),this._close(),t.autoOpen=!1,t.dbOpenError=new $.DatabaseClosed):(this._close(),t.autoOpen=this._options.autoOpen||t.isBeingOpened,t.openComplete=!1,t.dbOpenError=null)},E.prototype.delete=function(n){var i=this,a=(void 0===n&&(n={disableAutoOpen:!0}),0<arguments.length&&"object"!=typeof arguments[0]),o=this._state;return new S(function(r,t){function e(){i.close(n);var e=i._deps.indexedDB.deleteDatabase(i.name);e.onsuccess=O(function(){var e,t,n;e=i._deps,t=i.name,n=e.indexedDB,e=e.IDBKeyRange,wn(n)||t===dt||_n(n,e).delete(t).catch(b),r()}),e.onerror=D(t),e.onblocked=i._fireOnBlocked}if(a)throw new $.InvalidArgument("Invalid closeOptions argument to db.delete()");o.isBeingOpened?o.dbReadyPromise.then(e):e()})},E.prototype.backendDB=function(){return this.idbdb},E.prototype.isOpen=function(){return null!==this.idbdb},E.prototype.hasBeenClosed=function(){var e=this._state.dbOpenError;return e&&"DatabaseClosed"===e.name},E.prototype.hasFailed=function(){return null!==this._state.dbOpenError},E.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(E.prototype,"tables",{get:function(){var t=this;return I(this._allTables).map(function(e){return t._allTables[e]})},enumerable:!1,configurable:!0}),E.prototype.transaction=function(){var e=function(e,t,n){var r=arguments.length;if(r<2)throw new $.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];return n=i.pop(),[e,Y(i),n]}.apply(this,arguments);return this._transaction.apply(this,e)},E.prototype._transaction=function(e,t,n){var r,i,a=this,o=x.trans,s=(o&&o.db===this&&-1===e.indexOf("!")||(o=null),-1!==e.indexOf("?"));e=e.replace("!","").replace("?","");try{if(i=t.map(function(e){e=e instanceof a.Table?e.name:e;if("string"!=typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e}),"r"==e||e===ft)r=ft;else{if("rw"!=e&&e!=mt)throw new $.InvalidArgument("Invalid transaction mode: "+e);r=mt}if(o){if(o.mode===ft&&r===mt){if(!s)throw new $.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");o=null}o&&i.forEach(function(e){if(o&&-1===o.storeNames.indexOf(e)){if(!s)throw new $.SubTransaction("Table "+e+" not included in parent transaction.");o=null}}),s&&o&&!o.active&&(o=null)}}catch(n){return o?o._promise(null,function(e,t){t(n)}):z(n)}var u=function i(a,o,s,u,l){return S.resolve().then(function(){var e=x.transless||x,t=a._createTransaction(o,s,a._dbSchema,u),e=(t.explicit=!0,{trans:t,transless:e});if(u)t.idbtrans=u.idbtrans;else try{t.create(),t.idbtrans._explicit=!0,a._state.PR1398_maxLoop=3}catch(e){return e.name===me.InvalidState&&a.isOpen()&&0<--a._state.PR1398_maxLoop?(console.warn("Dexie: Need to reopen db"),a.close({disableAutoOpen:!1}),a.open().then(function(){return i(a,o,s,null,l)})):z(e)}var n,r=se(l),e=(r&&nt(),S.follow(function(){var e;(n=l.call(t,t))&&(r?(e=_.bind(null,null),n.then(e,e)):"function"==typeof n.next&&"function"==typeof n.throw&&(n=Zn(n)))},e));return(n&&"function"==typeof n.then?S.resolve(n).then(function(e){return t.active?e:z(new $.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):e.then(function(){return n})).then(function(e){return u&&t._resolve(),t._completion.then(function(){return e})}).catch(function(e){return t._reject(e),z(e)})})}.bind(null,this,r,i,o,n);return o?o._promise(r,u,"lock"):x.trans?ot(x.transless,function(){return a._whenReady(u)}):this._whenReady(u)},E.prototype.table=function(e){if(g(this._allTables,e))return this._allTables[e];throw new $.InvalidTable("Table ".concat(e," does not exist"))};var h=E;function E(e,t){var a,r,o,n,i,s=this,u=(this._middlewares={},this.verno=0,E.dependencies),u=(this._options=t=w({addons:E.addons,autoOpen:!0,indexedDB:u.indexedDB,IDBKeyRange:u.IDBKeyRange,cache:"cloned",maxConnections:1e3},t),this._deps={indexedDB:t.indexedDB,IDBKeyRange:t.IDBKeyRange},t.addons),l=(this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this,{dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:b,dbReadyPromise:null,cancelOpen:b,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3,autoOpen:t.autoOpen}),c=(l.dbReadyPromise=new S(function(e){l.dbReadyResolve=e}),l.openCanceller=new S(function(e,t){l.cancelOpen=t}),this._state=l,this.name=e,this.on=xt(this,"populate","blocked","versionchange","close",{ready:[$e,b]}),this.once=function(n,r){var i=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];s.on(n).unsubscribe(i),r.apply(s,e)};return s.on(n,i)},this.on.ready.subscribe=B(this.on.ready.subscribe,function(i){return function(n,r){E.vip(function(){var t,e=s._state;e.openComplete?(e.dbOpenError||S.resolve().then(n),r&&i(n)):e.onReadyBeingFired?(e.onReadyBeingFired.push(n),r&&i(n)):(i(n),t=s,r||i(function e(){t.on.ready.unsubscribe(n),t.on.ready.unsubscribe(e)}))})}}),this.Collection=(a=this,St(At.prototype,function(e,t){this.db=a;var n=ht,r=null;if(t)try{n=t()}catch(e){r=e}var t=e._ctx,e=t.table,i=e.hook.reading.fire;this._ctx={table:e,index:t.index,isPrimKey:!t.index||e.schema.primKey.keyPath&&t.index===e.schema.primKey.name,range:n,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:r,or:t.or,valueMapper:i!==ve?i:null}})),this.Table=(r=this,St(It.prototype,function(e,t,n){this.db=r,this._tx=n,this.name=e,this.schema=t,this.hook=r._allTables[e]?r._allTables[e].hook:xt(null,{creating:[be,b],reading:[ge,ve],updating:[we,b],deleting:[_e,b]})})),this.Transaction=(o=this,St(Bt.prototype,function(e,t,n,r,i){var a=this;"readonly"!==e&&t.forEach(function(e){e=null==(e=n[e])?void 0:e.yProps;e&&(t=t.concat(e.map(function(e){return e.updatesTable})))}),this.db=o,this.mode=e,this.storeNames=t,this.schema=n,this.chromeTransactionDurability=r,this.idbtrans=null,this.on=xt(this,"complete","error","abort"),this.parent=i||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new S(function(e,t){a._resolve=e,a._reject=t}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(e){var t=a.active;return a.active=!1,a.on.error.fire(e),a.parent?a.parent._reject(e):t&&a.idbtrans&&a.idbtrans.abort(),z(e)})})),this.Version=(n=this,St(gn.prototype,function(e){this.db=n,this._cfg={version:e,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})),this.WhereClause=(i=this,St(Mt.prototype,function(e,t,n){if(this.db=i,this._ctx={table:e,index:":id"===t?null:t,or:n},this._cmp=this._ascending=j,this._descending=function(e,t){return j(t,e)},this._max=function(e,t){return 0<j(e,t)?e:t},this._min=function(e,t){return j(e,t)<0?e:t},this._IDBKeyRange=i._deps.IDBKeyRange,!this._IDBKeyRange)throw new $.MissingAPI})),this.on("versionchange",function(e){0<e.newVersion?console.warn("Another connection wants to upgrade database '".concat(s.name,"'. Closing db now to resume the upgrade.")):console.warn("Another connection wants to delete database '".concat(s.name,"'. Closing db now to resume the delete request.")),s.close({disableAutoOpen:!1})}),this.on("blocked",function(e){!e.newVersion||e.newVersion<e.oldVersion?console.warn("Dexie.delete('".concat(s.name,"') was blocked")):console.warn("Upgrade '".concat(s.name,"' blocked by other connection holding version ").concat(e.oldVersion/10))}),this._maxKey=Xt(t.IDBKeyRange),this._createTransaction=function(e,t,n,r){return new s.Transaction(e,t,n,s._options.chromeTransactionDurability,r)},this._fireOnBlocked=function(t){s.on("blocked").fire(t),bn.toArray().filter(function(e){return e.name===s.name&&e!==s&&!e._state.vcFired}).map(function(e){return e.on("versionchange").fire(t)})},this.use(Bn),this.use(nr),this.use(Gn),this.use(Mn),this.use(Vn),new Proxy(this,{get:function(e,t,n){var r;return"_vip"===t||("table"===t?function(e){return rr(s.table(e),c)}:(r=Reflect.get(e,t,n))instanceof It?rr(r,c):"tables"===t?r.map(function(e){return rr(e,c)}):"_createTransaction"===t?function(){return rr(r.apply(this,arguments),c)}:r)}}));this.vip=c,u.forEach(function(e){return e(s)})}var ir,ze="undefined"!=typeof Symbol&&"observable"in Symbol?Symbol.observable:"@@observable",ar=(or.prototype.subscribe=function(e,t,n){return this._subscribe(e&&"function"!=typeof e?e:{next:e,error:t,complete:n})},or.prototype[ze]=function(){return this},or);function or(e){this._subscribe=e}try{ir={indexedDB:d.indexedDB||d.mozIndexedDB||d.webkitIndexedDB||d.msIndexedDB,IDBKeyRange:d.IDBKeyRange||d.webkitIDBKeyRange}}catch(e){ir={indexedDB:null,IDBKeyRange:null}}function sr(m){var p,h=!1,e=new ar(function(r){var i=se(m);var a,o=!1,s={},u={},e={get closed(){return o},unsubscribe:function(){o||(o=!0,a&&a.abort(),l&&Jt.storagemutated.unsubscribe(f))}},l=(r.start&&r.start(e),!1),c=function(){return ut(t)};function d(){return Pn(u,s)}var f=function(e){jn(s,e),d()&&c()},t=function(){var t,n,e;!o&&ir.indexedDB&&(s={},t={},a&&a.abort(),a=new AbortController,e=function(e){var t=qe();try{i&&nt();var n=v(m,e);return n=i?n.finally(_):n}finally{t&&We()}}(n={subscr:t,signal:a.signal,requery:c,querier:m,trans:null}),l||(Jt.storagemutated.subscribe(f),l=!0),Promise.resolve(e).then(function(e){h=!0,p=e,o||n.signal.aborted||(d()||(u=t,d())?c():(s={},ut(function(){return!o&&r.next&&r.next(e)})))},function(e){h=!1,["DatabaseClosedError","AbortError"].includes(null==e?void 0:e.name)||o||ut(function(){o||r.error&&r.error(e)})}))};return setTimeout(c,0),e});return e.hasValue=function(){return h},e.getValue=function(){return p},e}var ur=h;function lr(e){var t=dr;try{dr=!0,Jt.storagemutated.fire(e),Tn(e,!0)}finally{dr=t}}R(ur,w(w({},e),{delete:function(e){return new ur(e,{addons:[]}).delete()},exists:function(e){return new ur(e,{addons:[]}).open().then(function(e){return e.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return t=ur.dependencies,n=t.indexedDB,t=t.IDBKeyRange,(wn(n)?Promise.resolve(n.databases()).then(function(e){return e.map(function(e){return e.name}).filter(function(e){return e!==dt})}):_n(n,t).toCollection().primaryKeys()).then(e)}catch(e){return z(new $.MissingAPI)}var t,n},defineClass:function(){return function(e){o(this,e)}},ignoreTransaction:function(e){return x.trans?ot(x.transless||u,e):e()},vip:kn,async:function(t){return function(){try{var e=Zn(t.apply(this,arguments));return e&&"function"==typeof e.then?e:S.resolve(e)}catch(e){return z(e)}}},spawn:function(e,t,n){try{var r=Zn(e.apply(n,t||[]));return r&&"function"==typeof r.then?r:S.resolve(r)}catch(e){return z(e)}},currentTransaction:{get:function(){return x.trans||null}},waitFor:function(e,t){e=S.resolve("function"==typeof e?ur.ignoreTransaction(e):e).timeout(t||6e4);return x.trans?x.trans.waitFor(e):e},Promise:S,debug:{get:function(){return c},set:function(e){Ie(e)}},derive:F,extend:o,props:R,override:B,Events:xt,on:Jt,liveQuery:sr,extendObservabilitySet:jn,getByKeyPath:l,setByKeyPath:y,delByKeyPath:function(t,e){"string"==typeof e?y(t,e,void 0):"length"in e&&[].map.call(e,function(e){y(t,e,void 0)})},shallowClone:G,deepClone:ee,getObjectDiff:Fn,cmp:j,asap:W,minKey:-1/0,addons:[],connections:{get:bn.toArray},errnames:me,dependencies:ir,cache:Un,semVer:"4.4.5",version:"4.4.5".split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,2*n)})})),ur.maxKey=Xt(ur.dependencies.IDBKeyRange),"undefined"!=typeof dispatchEvent&&"undefined"!=typeof addEventListener&&(Jt(Kt,function(e){dr||(e=new CustomEvent(Vt,{detail:e}),dr=!0,dispatchEvent(e),dr=!1)}),addEventListener(Vt,function(e){e=e.detail;dr||lr(e)}));var cr,dr=!1,fr=function(){};return"undefined"!=typeof BroadcastChannel&&((fr=function(){(cr=new BroadcastChannel(Vt)).onmessage=function(e){return e.data&&lr(e.data)}})(),"function"==typeof cr.unref&&cr.unref(),Jt(Kt,function(e){dr||cr.postMessage(e)})),"undefined"!=typeof addEventListener&&(addEventListener("pagehide",function(e){if(!h.disableBfCache&&e.persisted){c&&console.debug("Dexie: handling persisted pagehide"),null!=cr&&cr.close();for(var t=0,n=bn.toArray();t<n.length;t++)n[t].close({disableAutoOpen:!1})}}),addEventListener("pageshow",function(e){!h.disableBfCache&&e.persisted&&(c&&console.debug("Dexie: handling persisted pageshow"),fr(),lr({all:new A(-1/0,[[]])}))})),S.rejectionMapper=function(e,t){return!e||e instanceof le||e instanceof TypeError||e instanceof SyntaxError||!e.name||!he[e.name]?e:(t=new he[e.name](t||e.message,e),"stack"in e&&s(t,"stack",{get:function(){return this.inner.stack}}),t)},Ie(c),w(h,Object.freeze({__proto__:null,DEFAULT_MAX_CONNECTIONS:1e3,Dexie:h,Entity:gt,PropModification:wt,RangeSet:A,add:function(e){return new wt({add:e})},cmp:j,default:h,liveQuery:sr,mergeRanges:xn,rangesOverlap:Sn,remove:function(e){return new wt({remove:e})},replacePrefix:function(e,t){return new wt({replacePrefix:[e,t]})}}),{default:h}),h},"object"==typeof(e=e)&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).Dexie=n()}},function(){return L||(0,T[M(T)[0]])((L={exports:{}}).exports,L),L.exports}),P=e=>"string"==typeof e,V=()=>{let n,r;var e=new Promise((e,t)=>{n=e,r=t});return e.resolve=n,e.reject=r,e},J=e=>null==e?"":String(e),B=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},q=/###/g,W=e=>e&&e.includes("###")?e.replace(q,"."):e,G=e=>!e||P(e),X=(e,t,n)=>{var r=P(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(G(e))return{};var a=W(r[i]);!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{},++i}return G(e)?{}:{obj:e,k:W(r[i])}},Y=(r,i,a)=>{var{obj:e,k:t}=X(r,i,Object);if(void 0!==e||1===i.length)e[t]=a;else{let e=i[i.length-1],t=i.slice(0,i.length-1),n=X(r,t,Object);for(;void 0===n.obj&&t.length;)e=t[t.length-1]+"."+e,t=t.slice(0,t.length-1),(n=X(r,t,Object))?.obj&&void 0!==n.obj[n.k+"."+e]&&(n.obj=void 0);n.obj[n.k+"."+e]=a}},H=(e,t,n,r)=>{var{obj:e,k:t}=X(e,t,Object);e[t]=e[t]||[],e[t].push(n)},Q=(e,t)=>{var{obj:e,k:t}=X(e,t);if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},ee=(e,t,n)=>{e=Q(e,n);return void 0!==e?e:Q(t,n)},te=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?P(e[r])||e[r]instanceof String||P(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):te(e[r],t[r],n):e[r]=t[r]);return e},ne=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),re={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},ie=e=>P(e)?e.replace(/[&<>"'\/]/g,e=>re[e]):e,ae=[" ",",","?","!",";"],oe=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){var t=this.regExpMap.get(e);return void 0!==t||(t=new RegExp(e),this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,t),this.regExpQueue.push(e)),t}}(20),se=(e,t,n)=>{t=t||"",n=n||"";var r=ae.filter(e=>!t.includes(e)&&!n.includes(e));if(0===r.length)return!0;var i,r=oe.getRegExp(`(${r.map(e=>"?"===e?"\\?":e).join("|")})`);let a=!r.test(e);return a||0<(i=e.indexOf(n))&&!r.test(e.substring(0,i))&&(a=!0),a},ue=(e,t,a=".")=>{if(e){if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;var o=t.split(a);let i=e;for(let r=0;r<o.length;){if(!i||"object"!=typeof i)return;let t,n="";for(let e=r;e<o.length;++e)if(e!==r&&(n+=a),n+=o[e],void 0!==(t=i[n])&&!(["string","number","boolean"].includes(typeof t)&&e<o.length-1)){r+=e-r+1;break}i=t}return i}},le=e=>e?.replace(/_/g,"-"),ce={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}},de=class{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||ce,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>P(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),P(e[0])&&(e[0]=""+n+this.prefix+" "+e[0]),this.logger[t](e))}create(e){return new de(this.logger,{prefix:this.prefix+`:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new de(this.logger,e)}},fe=new de,n=class{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);var t=this.observers[e].get(n)||0;this.observers[e].set(n,t+1)}),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}once(t,n){const r=(...e)=>{n(...e),this.off(t,r)};return this.on(t,r),this}emit(r,...i){this.observers[r]&&Array.from(this.observers[r].entries()).forEach(([t,n])=>{for(let e=0;e<n;e++)t(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([t,n])=>{for(let e=0;e<n;e++)t(r,...i)})}},me=class extends n{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){e=this.options.ns.indexOf(e);-1<e&&this.options.ns.splice(e,1)}getResource(e,t,n,r={}){var i=(void 0!==r.keySeparator?r:this.options).keySeparator,r=(void 0!==r.ignoreJSONStructure?r:this.options).ignoreJSONStructure;let a;e.includes(".")?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):P(n)&&i?a.push(...n.split(i)):a.push(n)));var o=Q(this.data,a);return o||t||n||!e.includes(".")||(e=a[0],t=a[1],n=a.slice(2).join(".")),!o&&r&&P(n)?ue(this.data?.[e]?.[t],n,i):o}addResource(e,t,n,r,i={silent:!1}){var a=(void 0!==i.keySeparator?i:this.options).keySeparator;let o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(".")&&(r=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Y(this.data,o,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(const i in n)(P(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t],s=(e.includes(".")&&(r=n,n=t,t=(o=e.split("."))[1]),this.addNamespaces(t),Q(this.data,o)||{});a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?te(s,n,i):s={...s,...n},Y(this.data,o,s),a.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t=t||this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&0<Object.keys(t[e]).length)}toJSON(){return this.data}},pe={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},he=Symbol("i18next/PATH_KEY");function ve(e,t){var{[he]:e}=e(function(){const n=[],r=Object.create(null);let i;return r.get=(e,t)=>(i?.revoke?.(),t===he?n:(n.push(t),(i=Proxy.revocable(e,r)).proxy)),Proxy.revocable(Object.create(null),r).proxy}()),n=t?.keySeparator??".",r=t?.nsSeparator??":",i="strict"===t?.enableSelector;if(1<e.length&&r){t=t?.ns,t=i?Array.isArray(t)?t:t?[t]:null:Array.isArray(t)?t:null;if(t)if((i?t:1<t.length?t.slice(1):[]).includes(e[0]))return""+e[0]+r+e.slice(1).join(n)}return e.join(n)}var ge=e=>!P(e)&&"boolean"!=typeof e&&"number"!=typeof e,ye=class extends n{constructor(e,t={}){super(),B(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=fe.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){t={...t};return null!=e&&void 0!==(e=this.resolve(e,t))?.res&&(e=ge(e.res),!1!==t.returnObjects||!e)}extractFromKey(e,t){let n=(void 0!==t.nsSeparator?t:this.options).nsSeparator;void 0===n&&(n=":");var r=(void 0!==t.keySeparator?t:this.options).keySeparator;let i=t.ns||this.options.defaultNS||[];var a=n&&e.includes(n),t=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||se(e,n,r));if(a&&!t){a=e.match(this.interpolator.nestingRegexp);if(a&&0<a.length)return{key:e,namespaces:P(i)?[i]:i};t=e.split(n);(n!==r||n===r&&this.options.ns.includes(t[0]))&&(i=t.shift()),e=t.join(r)}return{key:e,namespaces:P(i)?[i]:i}}translate(n,e,r){let i="object"==typeof e?{...e}:e;if(i=(i="object"==typeof(i="object"!=typeof i&&this.options.overloadTranslationOptionHandler?this.options.overloadTranslationOptionHandler(arguments):i)?{...i}:i)||{},null==n)return"";"function"==typeof n&&(n=ve(n,{...this.options,...i})),n=(n=Array.isArray(n)?n:[String(n)]).map(e=>"function"==typeof e?ve(e,{...this.options,...i}):String(e));var e=(void 0!==i.returnDetails?i:this.options).returnDetails,a=(void 0!==i.keySeparator?i:this.options).keySeparator;const{key:o,namespaces:t}=this.extractFromKey(n[n.length-1],i),s=t[t.length-1];let u=(void 0!==i.nsSeparator?i:this.options).nsSeparator;void 0===u&&(u=":");var l=i.lng||this.language,c=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if("cimode"===l?.toLowerCase())return c?e?{res:""+s+u+o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:""+s+u+o:e?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(i)}:o;c=this.resolve(n,i);let d=c?.res;var f=c?.usedKey||o,m=c?.exactUsedKey||o,p=(void 0!==i.joinArrays?i:this.options).joinArrays,h=!this.i18nFormat||this.i18nFormat.handleAsObject,v=void 0!==i.count&&!P(i.count);const g=ye.hasDefaultValue(i);var y=v?this.pluralResolver.getSuffix(l,i.count,i):"",b=i.ordinal&&v?this.pluralResolver.getSuffix(l,i.count,{ordinal:!1}):"";const _=v&&!i.ordinal&&0===i.count,w=_&&i[`defaultValue${this.options.pluralSeparator}zero`]||i["defaultValue"+y]||i["defaultValue"+b]||i.defaultValue;let k=d;h&&!d&&g&&(k=w);var y=ge(k),b=Object.prototype.toString.apply(k);if(!(h&&k&&y)||["[object Number]","[object Function]","[object RegExp]"].includes(b)||P(p)&&Array.isArray(k))if(h&&P(p)&&Array.isArray(d))d=(d=d.join(p))&&this.extendTranslation(d,n,i,r);else{let e=!1,t=!1;!this.isValidLookup(d)&&g&&(e=!0,d=w),this.isValidLookup(d)||(t=!0,d=o);const O=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&t?void 0:d,z=g&&w!==d&&this.options.updateMissing;if(t||e||z){this.logger.log(z?"updateKey":"missingKey",l,s,v&&!z?""+o+this.pluralResolver.getSuffix(l,i.count,i):o,z?w:d),a&&(y=this.resolve(o,{...i,keySeparator:!1}))&&y.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");let t=[];var $=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&$&&$[0])for(let e=0;e<$.length;e++)t.push($[e]);else"all"===this.options.saveMissingTo?t=this.languageUtils.toResolveHierarchy(i.lng||this.language):t.push(i.lng||this.language);const N=(e,t,n)=>{n=g&&n!==d?n:O;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,t,n,z,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,s,t,n,z,i),this.emit("missingKey",e,s,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&v?t.forEach(t=>{var e=this.pluralResolver.getSuffixes(t,i);_&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!e.includes(this.options.pluralSeparator+"zero")&&e.push(this.options.pluralSeparator+"zero"),e.forEach(e=>{N([t],o+e,i["defaultValue"+e]||w)})}):N(t,o,w))}d=this.extendTranslation(d,n,i,c,r),t&&d===o&&this.options.appendNamespaceToMissingKey&&(d=""+s+u+o),(t||e)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?""+s+u+o:o,e?d:void 0,i))}else{if(!i.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),b=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...i,ns:t}):`key '${o} (${this.language})' returned an object instead of string.`,e?(c.res=b,c.usedParams=this.getUsedParamsDetails(i),c):b;if(a){var I,h=Array.isArray(k),x=h?[]:{},S=h?m:f;for(const j in k)Object.prototype.hasOwnProperty.call(k,j)&&(I=""+S+a+j,g&&!d?x[j]=this.translate(I,{...i,defaultValue:ge(w)?w[j]:void 0,joinArrays:!1,ns:t}):x[j]=this.translate(I,{...i,joinArrays:!1,ns:t}),x[j]===I)&&(x[j]=k[j]);d=x}}return e?(c.res=d,c.usedParams=this.getUsedParamsDetails(i),c):d}extendTranslation(n,r,i,a,o){if(this.i18nFormat?.parse)n=this.i18nFormat.parse(n,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});var s=P(n)&&(void 0!==i?.interpolation?.skipOnVariables?i:this.options).interpolation.skipOnVariables;let e,t=(s&&(u=n.match(this.interpolator.nestingRegexp),e=u&&u.length),i.replace&&!P(i.replace)?i.replace:i);this.options.interpolation.defaultVariables&&(t={...this.options.interpolation.defaultVariables,...t}),n=this.interpolator.interpolate(n,t,i.lng||this.language||a.usedLng,i),s&&(s=(u=n.match(this.interpolator.nestingRegexp))&&u.length,e<s)&&(i.nest=!1),!i.lng&&a&&a.res&&(i.lng=this.language||a.usedLng),!1!==i.nest&&(n=this.interpolator.nest(n,(...e)=>o?.[0]!==e[0]||i.context?this.translate(...e,r):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: `+r[0]),null),i)),i.interpolation&&this.interpolator.reset()}var u=i.postProcess||this.options.postProcess,s=P(u)?[u]:u;return n=null!=n&&s?.length&&!1!==i.applyPostProcessor?pe.handle(s,n,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(i)},...i}:i,this):n}resolve(e,d={}){let f,r,m,p,i;return P(e)&&(e=[e]),(e=Array.isArray(e)?e.map(e=>"function"==typeof e?ve(e,{...this.options,...d}):e):e).forEach(t=>{if(!this.isValidLookup(f)){t=this.extractFromKey(t,d);const s=t.key;r=s;let e=t.namespaces;this.options.fallbackNS&&(e=e.concat(this.options.fallbackNS));const u=void 0!==d.count&&!P(d.count),l=u&&!d.ordinal&&0===d.count,c=void 0!==d.context&&(P(d.context)||"number"==typeof d.context)&&""!==d.context,n=d.lngs||this.languageUtils.toResolveHierarchy(d.lng||this.language,d.fallbackLng);e.forEach(o=>{this.isValidLookup(f)||(i=o,this.checkedLoadedFor[n[0]+"-"+o]||!this.utils?.hasLoadedNamespace||this.utils?.hasLoadedNamespace(i)||(this.checkedLoadedFor[n[0]+"-"+o]=!0,this.logger.warn(`key "${r}" for languages "${n.join(", ")}" won't get resolved as namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),n.forEach(t=>{if(!this.isValidLookup(f)){p=t;var e,n=[s];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(n,s,t,o,d);else{let e;u&&(e=this.pluralResolver.getSuffix(t,d.count,d));var r,i=this.options.pluralSeparator+"zero",a=this.options.pluralSeparator+"ordinal"+this.options.pluralSeparator;u&&(d.ordinal&&e.startsWith(a)&&n.push(s+e.replace(a,this.options.pluralSeparator)),n.push(s+e),l)&&n.push(s+i),c&&(r=""+s+(this.options.contextSeparator||"_")+d.context,n.push(r),u)&&(d.ordinal&&e.startsWith(a)&&n.push(r+e.replace(a,this.options.pluralSeparator)),n.push(r+e),l)&&n.push(r+i)}for(;e=n.pop();)this.isValidLookup(f)||(m=e,f=this.getResource(t,o,e,d))}}))})}}),{res:f,usedKey:r,exactUsedKey:m,usedLng:p,usedNS:i}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n,r={}){return(this.i18nFormat?.getResource?this.i18nFormat:this.resourceStore).getResource(e,t,n,r)}getUsedParamsDetails(e={}){var t=e.replace&&!P(e.replace);let n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t){n={...n};for(const r of["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"])delete n[r]}return n}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}},be=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=fe.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(e){return!(e=le(e))||!e.includes("-")||2===(e=e.split("-")).length||(e.pop(),"x"===e[e.length-1].toLowerCase())?null:this.formatLanguageCode(e.join("-"))}getLanguagePartFromCode(e){var t;return(e=le(e))&&e.includes("-")?(t=e.split("-"),this.formatLanguageCode(t[0])):e}formatLanguageCode(t){if(P(t)&&t.includes("-")){let e;try{e=Intl.getCanonicalLocales(t)[0]}catch(e){}return(e=e&&this.options.lowerCaseLng?e.toLowerCase():e)?e:this.options.lowerCaseLng?t.toLowerCase():t}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(e){return"languageOnly"!==this.options.load&&!this.options.nonExplicitSupportedLngs||(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let r;return e.forEach(e=>{r||(e=this.formatLanguageCode(e),this.options.supportedLngs&&!this.isSupportedCode(e))||(r=e)}),!r&&this.options.supportedLngs&&e.forEach(e=>{if(!r){var t=this.getScriptPartFromCode(e);if(this.isSupportedCode(t))return r=t;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return r=n;r=this.options.supportedLngs.find(e=>e===n||!(!e.includes("-")&&!n.includes("-")||(!e.includes("-")||n.includes("-")||e.slice(0,e.indexOf("-"))!==n)&&!(e.startsWith(n)&&1<n.length)))}}),r=r||this.getFallbackCodes(this.options.fallbackLng)[0]}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),P(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return(n=(n=(n=(n=n||e[this.getScriptPartFromCode(t)])||e[this.formatLanguageCode(t)])||e[this.getLanguagePartFromCode(t)])||e.default)||[]}toResolveHierarchy(t,n){var e=this.options.fallbackLng,e=Array.isArray(e)?e.join("|"):e,e=(e!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=e),void 0===n||!1===n||P(n)),r=void 0===n&&"function"==typeof this.options.fallbackLng;let i=null;if(P(t)&&e&&!r){let e;e=void 0===n?"undefined":!1===n?"boolean:false":"string:"+n,i=t.length+`:${t}|`+e}if(null!==i){e=this.resolveHierarchyCache[i];if(void 0!==e)return e.slice()}r=this.getFallbackCodes((!1===n?[]:n)||this.options.fallbackLng||[],t);const a=[],o=e=>{e&&(this.isSupportedCode(e)?a.push(e):this.logger.warn("rejecting language code not found in supportedLngs: "+e))};return P(t)&&(t.includes("-")||t.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(t))):P(t)&&o(this.formatLanguageCode(t)),r.forEach(e=>{a.includes(e)||o(this.formatLanguageCode(e))}),null!==i?(this.resolveHierarchyCache[i]=a).slice():a}},_e={zero:0,one:1,two:2,few:3,many:4,other:5},we={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})},ke=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=fe.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){var r=le("dev"===t?"en":t),e=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:e});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(r,{type:e})}catch(e){if("undefined"==typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),we;if(!t.match(/-|_/))return we;r=this.languageUtils.getLanguagePartFromCode(t);a=this.getRule(r,n)}return this.pluralRulesCache[i]=a}needsPlural(e,t={}){let n=this.getRule(e,t);return 1<(n=n||this.getRule("dev",t))?.resolvedOptions().pluralCategories.length}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>""+t+e)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n=n||this.getRule("dev",t))?n.resolvedOptions().pluralCategories.sort((e,t)=>_e[e]-_e[t]).map(e=>""+this.options.prepend+(t.ordinal?"ordinal"+this.options.prepend:"")+e):[]}getSuffix(e,t,n={}){var r=this.getRule(e,n);return r?""+this.options.prepend+(n.ordinal?"ordinal"+this.options.prepend:"")+r.select(t):(this.logger.warn("no plural rule found for: "+e),this.getSuffix("dev",t,n))}},$e=(e,t,n,r=".",i=!0)=>{let a=ee(e,t,n);return a=!a&&i&&P(n)&&void 0===(a=ue(e,n,r))?ue(t,n,r):a},Ie=e=>e.replace(/\$/g,"$$$$"),xe=class{constructor(e={}){this.logger=fe.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});var{escape:e,escapeValue:t,useRawValueToEscape:n,prefix:r,prefixEscaped:i,suffix:a,suffixEscaped:o,formatSeparator:s,unescapeSuffix:u,unescapePrefix:l,nestingPrefix:c,nestingPrefixEscaped:d,nestingSuffix:f,nestingSuffixEscaped:m,nestingOptionsSeparator:p,maxReplaces:h,alwaysFormat:v}=e.interpolation;this.escape=void 0!==e?e:ie,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==n&&n,this.prefix=r?ne(r):i||"{{",this.suffix=a?ne(a):o||"}}",this.formatSeparator=s||",",this.unescapePrefix=u?"":l?ne(l):"-",this.unescapeSuffix=!this.unescapePrefix&&u?ne(u):"",this.nestingPrefix=c?ne(c):d||ne("$t("),this.nestingSuffix=f?ne(f):m||ne(")"),this.nestingOptionsSeparator=p||",",this.maxReplaces=h||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){var e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,this.prefix+"(.+?)"+this.suffix),this.regexpUnescape=e(this.regexpUnescape,""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix),this.nestingRegexp=e(this.nestingRegexp,this.nestingPrefix+`((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)`+this.nestingSuffix)}interpolate(r,i,a,o){let s,u,l;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{var t,n;return e.includes(this.formatSeparator)?(t=(n=e.split(this.formatSeparator)).shift().trim(),n=n.join(this.formatSeparator).trim(),this.format($e(i,c,t,this.options.keySeparator,this.options.ignoreJSONStructure),n,a,{...o,...i,interpolationkey:t})):(n=$e(i,c,e,this.options.keySeparator,this.options.ignoreJSONStructure),this.alwaysFormat?this.format(n,void 0,a,{...o,...i,interpolationkey:e}):n)},f=(this.resetRegExp(),!this.escapeValue&&"string"==typeof r&&/\$t\([^)]*\{[^}]*\{\{/.test(r)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true."),o?.missingInterpolationHandler||this.options.missingInterpolationHandler),m=(void 0!==o?.interpolation?.skipOnVariables?o:this.options).interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(e=>{for(l=0;s=e.regex.exec(r);){var t=s[1].trim();if(void 0===(u=d(t)))if("function"==typeof f){var n=f(r,s,o);u=P(n)?n:""}else{if(!o||!Object.prototype.hasOwnProperty.call(o,t)){if(m){u=s[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating `+r)}u=""}else P(u)||this.useRawValueToEscape||(u=J(u));n=e.safeValue(u);if(r=r.replace(s[0],Ie(n)),m?(e.regex.lastIndex+=n.length,e.regex.lastIndex-=s[0].length):e.regex.lastIndex=0,++l>=this.maxReplaces)break}}),r}nest(t,n,r={}){let i,a,o;for(var s=(n,e)=>{var r=this.nestingOptionsSeparator;if(n.includes(r)){var i=n.split(new RegExp(ne(r)+"[ ]*{"));let t="{"+i[1];n=i[0];var i=(t=this.interpolate(t,o)).match(/'/g),a=t.match(/"/g);((i?.length??0)%2!=0||a)&&(a?.length??0)%2==0||(t=t.replace(/'/g,'"'));try{o=JSON.parse(t),e&&(o={...e,...o})}catch(e){return this.logger.warn("failed parsing options string in nesting for key "+n,e),""+n+r+t}o.defaultValue&&o.defaultValue.includes(this.prefix)&&delete o.defaultValue}return n};i=this.nestingRegexp.exec(t);){let e=[];(o=(o={...r}).replace&&!P(o.replace)?o.replace:o).applyPostProcessor=!1,delete o.defaultValue;var u=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==u&&(e=i[1].slice(u).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),(a=n(s.call(this,i[1].trim(),o),o))&&i[0]===t&&!P(a))return a;(a=P(a)?a:J(a))||(this.logger.warn(`missed to resolve ${i[1]} for nesting `+t),a=""),e.length&&(a=e.reduce((e,t)=>this.format(e,t,r.lng,{...r,interpolationkey:i[1].trim()}),a.trim())),t=t.replace(i[0],a),this.regexp.lastIndex=0}return t}},Se=e=>{let t=e.toLowerCase().trim();const n={};return e.includes("(")&&(e=e.split("("),t=e[0].toLowerCase().trim(),e=e[1].slice(0,-1),"currency"!==t||e.includes(":")?"relativetime"!==t||e.includes(":")?e.split(";").forEach(e=>{var t;e&&([e,...t]=e.split(":"),t=t.join(":").trim().replace(/^'+|'+$/g,""),e=e.trim(),n[e]||(n[e]=t),"false"===t&&(n[e]=!1),"true"===t&&(n[e]=!0),isNaN(t)||(n[e]=parseInt(t,10)))}):n.range||(n.range=e.trim()):n.currency||(n.currency=e.trim())),{formatName:t,formatOptions:n}},Oe=o=>{const s={};return(e,t,n)=>{let r=n;n&&n.interpolationkey&&n.formatParams&&n.formatParams[n.interpolationkey]&&n[n.interpolationkey]&&(r={...r,[n.interpolationkey]:void 0});var i=t+JSON.stringify(r);let a=s[i];return a||(a=o(le(t),n),s[i]=a),a(e)}},ze=r=>(e,t,n)=>r(le(t),n)(e),Ne=class{constructor(e={}){this.logger=fe.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";t=t.cacheInBuiltFormats?Oe:ze;this.formats={number:t((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:t((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:t((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:t((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:t((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Oe(t)}format(e,t,o,s={}){if(!t)return e;if(null==e)return e;var n=t.split(this.formatSeparator),r=[];for(let t=0;t<n.length;t++){let e=n[t];for(;-1<e.indexOf("(")&&!e.includes(")")&&t+1<n.length;)e=""+e+this.formatSeparator+n[++t];r.push(e)}return r.reduce((t,n)=>{var{formatName:n,formatOptions:r}=Se(n);if(this.formats[n]){let e=t;try{var i=s?.formatParams?.[s.interpolationkey]||{},a=i.locale||i.lng||s.locale||s.lng||o;e=this.formats[n](t,a,{...r,...s,...i})}catch(e){this.logger.warn(e)}return e}return this.logger.warn("there was no format function for "+n),t},e)}},je=(e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)},Pe=class extends n{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=fe.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=0<=r.maxRetries?r.maxRetries:5,this.retryTimeout=1<=r.retryTimeout?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,i,n){const a={},o={},s={},u={};return e.forEach(n=>{let r=!0;t.forEach(e=>{var t=n+"|"+e;!i.reload&&this.store.hasResourceBundle(n,e)?this.state[t]=2:this.state[t]<0||(1===this.state[t]?void 0===o[t]&&(o[t]=!0):(this.state[t]=1,r=!1,void 0===o[t]&&(o[t]=!0),void 0===a[t]&&(a[t]=!0),void 0===u[e]&&(u[e]=!0)))}),r||(s[n]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}loaded(e,t,n){var r=e.split("|");const i=r[0],a=r[1],o=(t&&this.emit("failedLoading",i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0),{});this.queue.forEach(n=>{H(n.loaded,[i],a),je(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(t=>{o[t]||(o[t]={});var e=n.loaded[t];e.length&&e.forEach(e=>{void 0===o[t][e]&&(o[t][e]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(r,i,a,o=0,s=this.retryTimeout,u){if(!r.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:r,ns:i,fcName:a,tried:o,wait:s,callback:u});else{this.readingCalls++;const n=(e,t)=>{var n;this.readingCalls--,0<this.waitingReads.length&&(n=this.waitingReads.shift(),this.read(n.lng,n.ns,n.fcName,n.tried,n.wait,n.callback)),e&&t&&o<this.maxRetries?setTimeout(()=>{this.read(r,i,a,o+1,2*s,u)},s):u(e,t)};var e=this.backend[a].bind(this.backend);if(2!==e.length)return e(r,i,n);try{var t=e(r,i);t&&"function"==typeof t.then?t.then(e=>n(null,e)).catch(n):n(null,t)}catch(e){n(e)}}}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();P(e)&&(e=this.languageUtils.toResolveHierarchy(e)),P(t)&&(t=[t]);e=this.queueLoad(e,t,n,r);if(!e.toLoad.length)return e.pending.length||r(),null;e.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(n,r=""){var e=n.split("|");const i=e[0],a=e[1];this.read(i,a,"read",void 0,void 0,(e,t)=>{e&&this.logger.warn(`${r}loading namespace ${a} for language ${i} failed`,e),!e&&t&&this.logger.log(`${r}loaded namespace ${a} for language `+i,t),this.loaded(n,e,t)})}saveMissing(t,n,r,i,a,o={},s=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n))this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=r&&""!==r){if(this.backend?.create){o={...o,isUpdate:a},a=this.backend.create.bind(this.backend);if(a.length<6)try{let e;(e=5===a.length?a(t,n,r,i,o):a(t,n,r,i))&&"function"==typeof e.then?e.then(e=>s(null,e)).catch(s):s(null,e)}catch(e){s(e)}else a(t,n,r,i,s,o)}t&&t[0]&&this.store.addResource(t[0],n,r,i)}}},Ue=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),P(e[1])&&(t.defaultValue=e[1]),P(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),De=e=>(P(e.ns)&&(e.ns=[e.ns]),P(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),P(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ae=()=>{},Ee=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(e=>{"function"==typeof t[e]&&(t[e]=t[e].bind(t))})},Te=class extends n{constructor(e={},t){if(super(),this.options=De(e),this.services={},this.logger=fe,this.modules={external:[]},Ee(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(t={},n){this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),null==t.defaultNS&&t.ns&&(P(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));var r=Ue(),t=(this.options={...r,...this.options,...De(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),e=>e?"function"==typeof e?new e:e:null);if(!this.options.isClone){this.modules.logger?fe.init(t(this.modules.logger),this.options):fe.init(null,this.options);let e;e=this.modules.formatter||Ne;var r=new be(this.options),i=(this.store=new me(this.options.resources,this.options),this.services);i.logger=fe,i.resourceStore=this.store,i.languageUtils=r,i.pluralResolver=new ke(r,{prepend:this.options.pluralSeparator}),e&&(i.formatter=t(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new xe(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new Pe(t(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=t(this.modules.languageDetector),i.languageDetector.init)&&i.languageDetector.init(i,this.options.detection,this.options),this.modules.i18nFormat&&(i.i18nFormat=t(this.modules.i18nFormat),i.i18nFormat.init)&&i.i18nFormat.init(this),this.translator=new ye(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}this.format=this.options.interpolation.format,n=n||Ae,!this.options.fallbackLng||this.services.languageDetector||this.options.lng||0<(r=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng)).length&&"dev"!==r[0]&&(this.options.lng=r[0]),this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(t=>{this[t]=(...e)=>this.store[t](...e)});["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(t=>{this[t]=(...e)=>(this.store[t](...e),this)});const a=V();t=()=>{var e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(t),n(e,t)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?t():setTimeout(t,0),a}loadResources(e,t=Ae){let n=t;t=P(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if("cimode"===t?.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();const r=[],i=e=>{e&&"cimode"!==e&&this.services.languageUtils.toResolveHierarchy(e).forEach(e=>{"cimode"===e||r.includes(e)||r.push(e)})};t?i(t):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>i(e)),this.options.preload?.forEach?.(e=>i(e)),this.services.backendConnector.load(r,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){const r=V();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e=e||this.languages,t=t||this.options.ns,n=n||Ae,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(e.type)return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&pe.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this;throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()")}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){var t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}this.resolvedLanguage||this.languages.includes(e)||!this.store.hasLanguageSomeTranslations(e)||(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(r,n){this.isLanguageChangingTo=r;const i=V(),a=(this.emit("languageChanging",r),e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)}),o=(e,t)=>{t?this.isLanguageChangingTo===r&&(a(t),this.translator.changeLanguage(t),this.isLanguageChangingTo=void 0,this.emit("languageChanged",t),this.logger.log("languageChanged",t)):this.isLanguageChangingTo=void 0,i.resolve((...e)=>this.t(...e)),n&&n(e,(...e)=>this.t(...e))};var e=e=>{r||e||!this.services.languageDetector||(e=[]);var t=P(e)?e:e&&e[0];const n=this.store.hasLanguageSomeTranslations(t)?t:this.services.languageUtils.getBestMatchFromCodes(P(e)?[e]:e);n&&(this.language||a(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector?.cacheUserLanguage?.(n)),this.loadResources(n,e=>{o(e,n)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(e):this.services.languageDetector.detect(e):e(r):e(this.services.languageDetector.detect()),i}getFixedT(e,t,s,n){const u=n?.scopeNs,l=(e,t,...n)=>{let r;(r="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(n)):{...t}).lng=r.lng||l.lng,r.lngs=r.lngs||l.lngs;n=void 0!==r.ns&&null!==r.ns;r.ns=r.ns||l.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||s||l.keyPrefix);const i={...this.options,...r},a=(Array.isArray(u)&&!n&&(i.ns=u),"function"==typeof r.keyPrefix&&(r.keyPrefix=ve(r.keyPrefix,i)),this.options.keySeparator||".");let o;return o=r.keyPrefix&&Array.isArray(e)?e.map(e=>("function"==typeof e&&(e=ve(e,i)),""+r.keyPrefix+a+e)):("function"==typeof e&&(e=ve(e,i)),r.keyPrefix?""+r.keyPrefix+a+e:e),this.t(o,r)};return P(e)?l.lng=e:l.lngs=e,l.ns=t,l.keyPrefix=s,l}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var a=(e,t)=>{e=this.services.backendConnector.state[e+"|"+t];return-1===e||0===e||2===e};if(t.precheck){t=t.precheck(this,a);if(void 0!==t)return t}return!!this.hasResourceBundle(n,e)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!a(n,e)||r&&!a(i,e)))}loadNamespaces(e,t){const n=V();return this.options.ns?((e=P(e)?[e]:e).forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=V(),r=(P(e)&&(e=[e]),this.options.preload||[]);e=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return e.length?(this.options.preload=r.concat(e),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(!(e=e||this.resolvedLanguage||(0<this.languages?.length?this.languages[0]:this.language)))return"rtl";try{var t=new Intl.Locale(e);if(t&&t.getTextInfo){var n=t.getTextInfo();if(n&&n.direction)return n.direction}}catch(e){}t=this.services?.languageUtils||new be(Ue());return!(1<e.toLowerCase().indexOf("-latn"))&&(["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||1<e.toLowerCase().indexOf("-arab"))?"rtl":"ltr"}static createInstance(e={},t){e=new Te(e,t);return e.createInstance=Te.createInstance,e}cloneInstance(e={},t=Ae){var n=e.forkResourceStore,r=(n&&delete e.forkResourceStore,{...this.options,...e,isClone:!0});const i=new Te(r);void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e));return["store","services","language"].forEach(e=>{i[e]=this[e]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(n=Object.keys(this.store.data).reduce((n,r)=>(n[r]={...this.store.data[r]},n[r]=Object.keys(n[r]).reduce((e,t)=>(e[t]={...n[r][t]},e),n[r]),n),{}),i.store=new me(n,r),i.services.resourceStore=i.store),e.interpolation&&(n={...Ue().interpolation,...this.options.interpolation,...e.interpolation},e={...r,interpolation:n},i.services.interpolator=new xe(e)),i.translator=new ye(i.services,r),i.translator.on("*",(e,...t)=>{i.emit(e,...t)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},n=Te.createInstance(),Le=(n.createInstance,n.dir,n.init,n.loadResources,n.reloadResources,n.use,n.changeLanguage,n.getFixedT,n.t),n=(n.exists,n.setDefaultNamespace,n.hasLoadedNamespace,n.loadNamespaces,n.loadLanguages,"marketplace"),v={installedExtensions:n+":installed-extensions",installedSnippets:n+":installed-snippets",installedThemes:n+":installed-themes",activeTab:n+":active-tab",tabs:n+":tabs",sort:n+":sort",themeInstalled:n+":theme-installed",localTheme:n+":local-theme",albumArtBasedColor:n+":albumArtBasedColors",albumArtBasedColorMode:n+":albumArtBasedColorsMode",albumArtBasedColorVibrancy:n+":albumArtBasedColorsVibrancy",colorShift:n+":colorShift"},Ce=100,n={},Ze=(e(n,{$brand:()=>Et,$input:()=>Ys,$output:()=>Xs,NEVER:()=>Ut,TimePrecision:()=>Yu,ZodAny:()=>rm,ZodArray:()=>mm,ZodBase64:()=>wf,ZodBase64URL:()=>$f,ZodBigInt:()=>Bf,ZodBigIntFormat:()=>Wf,ZodBoolean:()=>Vf,ZodCIDRv4:()=>gf,ZodCIDRv6:()=>bf,ZodCUID:()=>ef,ZodCUID2:()=>nf,ZodCatch:()=>up,ZodCodec:()=>pp,ZodCompileAsyncError:()=>ru,ZodCompileUnsupportedError:()=>N,ZodCreditCard:()=>Of,ZodCustom:()=>zp,ZodCustomStringFormat:()=>Pf,ZodDate:()=>dm,ZodDefault:()=>ep,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>xf,ZodEmail:()=>Cd,ZodEmoji:()=>Xd,ZodEnum:()=>Cm,ZodError:()=>vd,ZodExactOptional:()=>Gm,ZodFile:()=>Km,ZodFirstPartyTypeKind:()=>Rp,ZodFunction:()=>Sp,ZodGUID:()=>Rd,ZodIPv4:()=>df,ZodIPv6:()=>hf,ZodISODate:()=>Ed,ZodISODateTime:()=>Ad,ZodISODuration:()=>Ld,ZodISOTime:()=>Td,ZodIntersection:()=>Sm,ZodIssueCode:()=>Zp,ZodJWT:()=>Nf,ZodKSUID:()=>lf,ZodLazy:()=>kp,ZodLiteral:()=>Mm,ZodMAC:()=>mf,ZodMap:()=>Am,ZodNaN:()=>cp,ZodNanoID:()=>Hd,ZodNever:()=>sm,ZodNonOptional:()=>ip,ZodNull:()=>tm,ZodNullable:()=>Ym,ZodNumber:()=>Tf,ZodNumberFormat:()=>Cf,ZodObject:()=>vm,ZodOptional:()=>qm,ZodPipe:()=>fp,ZodPrefault:()=>np,ZodPreprocess:()=>gp,ZodPromise:()=>Ip,ZodReadonly:()=>yp,ZodRealError:()=>gd,ZodRecord:()=>jm,ZodSet:()=>Tm,ZodString:()=>Ud,ZodStringFormat:()=>c,ZodSuccess:()=>op,ZodSymbol:()=>Yf,ZodTemplateLiteral:()=>_p,ZodTransform:()=>Jm,ZodTuple:()=>zm,ZodType:()=>s,ZodULID:()=>af,ZodURL:()=>qd,ZodUUID:()=>Fd,ZodUndefined:()=>Qf,ZodUnion:()=>_m,ZodUnknown:()=>am,ZodVoid:()=>lm,ZodXID:()=>sf,ZodXor:()=>km,_ZodString:()=>Pd,_default:()=>tp,_function:()=>Op,any:()=>im,array:()=>pm,base64:()=>kf,base64url:()=>If,bigint:()=>qf,boolean:()=>Jf,catch:()=>lp,check:()=>Np,cidrv4:()=>yf,cidrv6:()=>_f,clone:()=>I,codec:()=>hp,coerce:()=>Yp,compile:()=>iu,config:()=>g,core:()=>Ze,creditCard:()=>zf,cuid:()=>tf,cuid2:()=>rf,custom:()=>jp,date:()=>fm,decode:()=>$d,decodeAsync:()=>xd,deepPartial:()=>function(e){return Gp(e,{object:e=>e.partial(),union:e=>{var t=e._zod.def;return void 0===t.discriminator?e:wm(t.options)}})},describe:()=>Dp,discriminatedUnion:()=>xm,e164:()=>Sf,email:()=>Zd,emoji:()=>Yd,encode:()=>kd,encodeAsync:()=>Id,endsWith:()=>Jl,enum:()=>Zm,exactOptional:()=>Xm,file:()=>Vm,flattenError:()=>Bt,float32:()=>Rf,float64:()=>Mf,formatError:()=>qt,fromJSONSchema:()=>function(e,t){if("boolean"==typeof e)return e?S.any():S.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}var e=function(e,t){e=e.$schema;return"https://json-schema.org/draft/2020-12/schema"!==e?"http://json-schema.org/draft-07/schema#"!==e?"http://json-schema.org/draft-04/schema#"!==e?t??"draft-2020-12":"draft-4":"draft-7":"draft-2020-12"}(n,t?.defaultTarget),r=n.$defs||n.definitions||{},e={version:e,defs:r,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??eu};return qp(n,e)},function:()=>Op,getDiscriminatedOption:()=>ja,getErrorMap:()=>function(){return g().customError},globalRegistry:()=>eu,gt:()=>Ol,gte:()=>zl,guid:()=>Md,hash:()=>Ef,hex:()=>Af,hostname:()=>Df,httpUrl:()=>Gd,includes:()=>Kl,input:()=>function(e){return Gp(e,{pipe:e=>{return(e=e._zod.def).in._zod.traits.has("$ZodTransform")?Xp(e):e.in},default:(e,t)=>t?Wm(e._zod.def.innerType):e,catch:(e,t)=>t?e._zod.def.innerType:e})},instanceof:()=>Ep,int:()=>Zf,int32:()=>Ff,int64:()=>Gf,intersection:()=>Om,invertCodec:()=>vp,ipv4:()=>ff,ipv6:()=>vf,iso:()=>Mp,json:()=>Lp,jwt:()=>jf,keyof:()=>hm,ksuid:()=>cf,lazy:()=>$p,length:()=>Zl,literal:()=>Fm,locales:()=>Ao,looseObject:()=>bm,looseRecord:()=>Dm,lowercase:()=>Ml,lt:()=>xl,lte:()=>Sl,mac:()=>pf,map:()=>Em,maxLength:()=>Ll,maxSize:()=>Al,memoizer:()=>Uo,meta:()=>Ap,mime:()=>Wl,minLength:()=>Cl,minSize:()=>El,multipleOf:()=>Dl,nan:()=>dp,nanoid:()=>Qd,nativeEnum:()=>Rm,negative:()=>jl,never:()=>um,nonnegative:()=>Ul,nonoptional:()=>ap,nonpositive:()=>Pl,normalize:()=>Xl,null:()=>nm,nullable:()=>Hm,nullish:()=>Qm,number:()=>Lf,object:()=>gm,optional:()=>Wm,output:()=>function(e){return Gp(e,{pipe:e=>Xp(e._zod.def),prefault:(e,t)=>t?e._zod.def.innerType:e})},overwrite:()=>Gl,parse:()=>yd,parseAsync:()=>bd,partialRecord:()=>Um,pipe:()=>mp,positive:()=>Nl,prefault:()=>rp,preprocess:()=>Cp,prettifyError:()=>Xt,promise:()=>xp,properties:()=>ql,property:()=>Bl,readonly:()=>bp,record:()=>Pm,refine:()=>Pp,regex:()=>Rl,regexes:()=>On,registry:()=>Qs,safeDecode:()=>Od,safeDecodeAsync:()=>Nd,safeEncode:()=>Sd,safeEncodeAsync:()=>zd,safeParse:()=>_d,safeParseAsync:()=>wd,set:()=>Lm,setErrorMap:()=>function(e){g({customError:e})},size:()=>Tl,slugify:()=>ec,startsWith:()=>Vl,strictObject:()=>ym,string:()=>Dd,stringFormat:()=>Uf,stringbool:()=>Tp,success:()=>sp,superRefine:()=>Up,symbol:()=>Hf,templateLiteral:()=>wp,toJSONSchema:()=>dd,toLowerCase:()=>Hl,toUpperCase:()=>Ql,toZod:()=>Re,transform:()=>Bm,treeifyError:()=>Wt,trim:()=>Yl,tuple:()=>Nm,uint32:()=>Kf,uint64:()=>Xf,ulid:()=>of,undefined:()=>em,union:()=>wm,unknown:()=>om,uppercase:()=>Fl,url:()=>Wd,util:()=>o,uuid:()=>Kd,uuidv4:()=>Vd,uuidv6:()=>Jd,uuidv7:()=>Bd,validate:()=>ln,validateAsync:()=>cn,void:()=>cm,xid:()=>uf,xor:()=>$m}),{}),o=(e(Ze,{$ZodAny:()=>fa,$ZodArray:()=>ya,$ZodAsyncError:()=>Tt,$ZodBase64:()=>Wi,$ZodBase64URL:()=>Xi,$ZodBigInt:()=>sa,$ZodBigIntFormat:()=>ua,$ZodBoolean:()=>oa,$ZodCIDRv4:()=>Vi,$ZodCIDRv6:()=>Bi,$ZodCUID:()=>ji,$ZodCUID2:()=>Pi,$ZodCatch:()=>ao,$ZodCheck:()=>u,$ZodCheckBigIntFormat:()=>Wr,$ZodCheckEndsWith:()=>si,$ZodCheckGreaterThan:()=>Jr,$ZodCheckIncludes:()=>ai,$ZodCheckLengthEquals:()=>ei,$ZodCheckLessThan:()=>Vr,$ZodCheckLowerCase:()=>ri,$ZodCheckMaxLength:()=>Hr,$ZodCheckMaxSize:()=>Gr,$ZodCheckMimeType:()=>ci,$ZodCheckMinLength:()=>Qr,$ZodCheckMinSize:()=>Xr,$ZodCheckMultipleOf:()=>Br,$ZodCheckNumberFormat:()=>qr,$ZodCheckOverwrite:()=>di,$ZodCheckProperty:()=>li,$ZodCheckRegex:()=>ni,$ZodCheckSizeEquals:()=>Yr,$ZodCheckStartsWith:()=>oi,$ZodCheckStringFormat:()=>ti,$ZodCheckUpperCase:()=>ii,$ZodCodec:()=>lo,$ZodCreditCard:()=>ea,$ZodCustom:()=>_o,$ZodCustomStringFormat:()=>ra,$ZodCyclicError:()=>ko,$ZodDate:()=>va,$ZodDefault:()=>Ha,$ZodDiscriminatedUnion:()=>Pa,$ZodE164:()=>Yi,$ZodEmail:()=>bi,$ZodEmoji:()=>zi,$ZodEncodeError:()=>Lt,$ZodEnum:()=>Va,$ZodError:()=>Vt,$ZodExactOptional:()=>Xa,$ZodFile:()=>Ba,$ZodFunction:()=>go,$ZodGUID:()=>gi,$ZodIPv4:()=>Zi,$ZodIPv6:()=>Fi,$ZodISODate:()=>Ti,$ZodISODateTime:()=>Ei,$ZodISODuration:()=>Ci,$ZodISOTime:()=>Li,$ZodIntersection:()=>Ua,$ZodJWT:()=>na,$ZodKSUID:()=>Ai,$ZodLazy:()=>bo,$ZodLiteral:()=>Ja,$ZodMAC:()=>Ki,$ZodMap:()=>Ra,$ZodNaN:()=>oo,$ZodNanoID:()=>Ni,$ZodNever:()=>pa,$ZodNonOptional:()=>to,$ZodNull:()=>da,$ZodNullable:()=>Ya,$ZodNumber:()=>ia,$ZodNumberFormat:()=>aa,$ZodObject:()=>Ia,$ZodObjectJIT:()=>xa,$ZodOptional:()=>Ga,$ZodPipe:()=>so,$ZodPrefault:()=>eo,$ZodPreprocess:()=>mo,$ZodPromise:()=>yo,$ZodReadonly:()=>po,$ZodRealError:()=>Jt,$ZodRecord:()=>Za,$ZodRegistry:()=>Hs,$ZodSet:()=>Fa,$ZodString:()=>vi,$ZodStringFormat:()=>a,$ZodSuccess:()=>ro,$ZodSymbol:()=>la,$ZodTemplateLiteral:()=>vo,$ZodTransform:()=>qa,$ZodTuple:()=>Ea,$ZodType:()=>y,$ZodULID:()=>Ui,$ZodURL:()=>Oi,$ZodUUID:()=>yi,$ZodUndefined:()=>ca,$ZodUnion:()=>Oa,$ZodUnknown:()=>ma,$ZodVoid:()=>ha,$ZodXID:()=>Di,$ZodXor:()=>Na,$brand:()=>Et,$constructor:()=>r,$input:()=>Ys,$output:()=>Xs,Doc:()=>fi,INVALID:()=>tu,JSONSchema:()=>md,JSONSchemaGenerator:()=>fd,NEVER:()=>Ut,TimePrecision:()=>Yu,URL_BAD_FORMAT:()=>_i,URL_UNPARSEABLE:()=>wi,ZodCompileAsyncError:()=>ru,ZodCompileUnsupportedError:()=>N,_any:()=>yl,_array:()=>tc,_base64:()=>Bu,_base64url:()=>qu,_bigint:()=>dl,_boolean:()=>ll,_catch:()=>function(e,t,n){return new e({type:"catch",innerType:t,catchValue:"function"==typeof n?n:Pt(n)})},_check:()=>oc,_cidrv4:()=>Vu,_cidrv6:()=>Ju,_coercedBigint:()=>fl,_coercedBoolean:()=>cl,_coercedDate:()=>$l,_coercedNumber:()=>rl,_coercedString:()=>Su,_creditCard:()=>Gu,_cuid:()=>Tu,_cuid2:()=>Lu,_custom:()=>rc,_date:()=>kl,_decode:()=>mn,_decodeAsync:()=>gn,_default:()=>function(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return"function"==typeof n?n():nt(n)}})},_discriminatedUnion:()=>function(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...l(r)})},_e164:()=>Wu,_email:()=>Ou,_emoji:()=>Au,_encode:()=>dn,_encodeAsync:()=>hn,_endsWith:()=>Jl,_enum:()=>function(e,t,n){t=Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t;return new e({type:"enum",entries:t,...l(n)})},_file:()=>nc,_float32:()=>al,_float64:()=>ol,_gt:()=>Ol,_gte:()=>zl,_guid:()=>zu,_includes:()=>Kl,_int:()=>il,_int32:()=>sl,_int64:()=>ml,_intersection:()=>function(e,t,n){return new e({type:"intersection",left:t,right:n})},_ipv4:()=>Mu,_ipv6:()=>Fu,_isoDate:()=>Qu,_isoDateTime:()=>Hu,_isoDuration:()=>tl,_isoTime:()=>el,_jwt:()=>Xu,_ksuid:()=>Ru,_lazy:()=>function(e,t){return new e({type:"lazy",getter:t})},_length:()=>Zl,_literal:()=>function(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...l(n)})},_lowercase:()=>Ml,_lt:()=>xl,_lte:()=>Sl,_mac:()=>Ku,_map:()=>function(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...l(r)})},_max:()=>Sl,_maxLength:()=>Ll,_maxSize:()=>Al,_mime:()=>Wl,_min:()=>zl,_minLength:()=>Cl,_minSize:()=>El,_multipleOf:()=>Dl,_nan:()=>Il,_nanoid:()=>Eu,_nativeEnum:()=>function(e,t,n){return new e({type:"enum",entries:t,...l(n)})},_negative:()=>jl,_never:()=>_l,_nonnegative:()=>Ul,_nonoptional:()=>function(e,t,n){return new e({type:"nonoptional",innerType:t,...l(n)})},_nonpositive:()=>Pl,_normalize:()=>Xl,_null:()=>gl,_nullable:()=>function(e,t){return new e({type:"nullable",innerType:t})},_number:()=>nl,_optional:()=>function(e,t){return new e({type:"optional",innerType:t})},_overwrite:()=>Gl,_parse:()=>Ht,_parseAsync:()=>en,_pipe:()=>function(e,t,n){return new e({type:"pipe",in:t,out:n})},_positive:()=>Nl,_promise:()=>function(e,t){return new e({type:"promise",innerType:t})},_properties:()=>ql,_property:()=>Bl,_readonly:()=>function(e,t){return new e({type:"readonly",innerType:t})},_record:()=>function(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...l(r)})},_refine:()=>ic,_regex:()=>Rl,_safeDecode:()=>wn,_safeDecodeAsync:()=>xn,_safeEncode:()=>bn,_safeEncodeAsync:()=>$n,_safeParse:()=>nn,_safeParseAsync:()=>an,_set:()=>function(e,t,n){return new e({type:"set",valueType:t,...l(n)})},_size:()=>Tl,_slugify:()=>ec,_startsWith:()=>Vl,_string:()=>xu,_stringFormat:()=>cc,_stringbool:()=>lc,_success:()=>function(e,t){return new e({type:"success",innerType:t})},_superRefine:()=>ac,_symbol:()=>hl,_templateLiteral:()=>function(e,t,n){return new e({type:"template_literal",parts:t,...l(n)})},_toLowerCase:()=>Hl,_toUpperCase:()=>Ql,_transform:()=>function(e,t){return new e({type:"transform",transform:t})},_trim:()=>Yl,_tuple:()=>function(e,t,n,r){var i=n instanceof y,r=i?r:n,i=i?n:null;return new e({type:"tuple",items:t,rest:i,...l(r)})},_uint32:()=>ul,_uint64:()=>pl,_ulid:()=>Cu,_undefined:()=>vl,_union:()=>function(e,t,n){return new e({type:"union",options:t,...l(n)})},_unknown:()=>bl,_uppercase:()=>Fl,_url:()=>Du,_uuid:()=>Nu,_uuidv4:()=>ju,_uuidv6:()=>Pu,_uuidv7:()=>Uu,_void:()=>wl,_xid:()=>Zu,_xor:()=>function(e,t,n){return new e({type:"union",options:t,inclusive:!1,...l(n)})},clone:()=>I,compile:()=>iu,compileFn:()=>au,config:()=>g,createStandardJSONSchemaMethod:()=>wc,createToJSONSchemaMethod:()=>_c,decode:()=>pn,decodeAsync:()=>yn,describe:()=>sc,encode:()=>fn,encodeAsync:()=>vn,extractDefs:()=>pc,finalize:()=>bc,flattenError:()=>Bt,formatError:()=>qt,getDiscriminatedOption:()=>ja,globalConfig:()=>Ct,globalRegistry:()=>eu,handleUnrepresentable:()=>b,initializeContext:()=>fc,isBackEdge:()=>Do,isRecursiveSchema:()=>No,isValidBase64:()=>qi,isValidBase64URL:()=>Gi,isValidCIDRv6:()=>Ji,isValidCreditCard:()=>Qi,isValidIPv6:()=>Mi,isValidJWT:()=>ta,locales:()=>Ao,memoizer:()=>Uo,mergeValues:()=>Da,meta:()=>uc,parse:()=>Qt,parseAsync:()=>tn,parseURLObject:()=>ki,prettifyError:()=>Xt,process:()=>_,regexes:()=>On,registry:()=>Qs,safeDecode:()=>kn,safeDecodeAsync:()=>Sn,safeEncode:()=>_n,safeEncodeAsync:()=>In,safeParse:()=>rn,safeParseAsync:()=>on,standardProps:()=>hi,stripTabAndNewline:()=>Ii,toDotPath:()=>Gt,toJSONSchema:()=>dd,toZod:()=>Re,treeifyError:()=>Wt,urlHostnameOk:()=>xi,urlProtocolOk:()=>Si,util:()=>o,validate:()=>ln,validateAsync:()=>cn,version:()=>mi}),{});function Re(){return e=>e}function Me(e){const t=Object.values(e).filter(e=>"number"==typeof e);return Object.entries(e).filter(([e])=>-1===t.indexOf(+e)).map(([,e])=>e)}function f(e,t="|"){return e.map(e=>m(e)).join(t)}function Fe(e,t){return"bigint"==typeof t?t.toString():t}function Ke(t){return{get value(){var e=t();return Object.defineProperty(this,"value",{value:e}),e}}}function Ve(e){return null==e}function Je(e){var t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Be(e,t){var e=e/t,t=Math.round(e),n=4*Number.EPSILON*Math.max(Math.abs(e),1);return Math.abs(e-t)<n?0:e-t}e(o,{BIGINT_FORMAT_RANGES:()=>lt,CONSTANT_CATCH:()=>jt,Class:()=>It,NUMBER_FORMAT_RANGES:()=>ut,aborted:()=>ct,allowsEval:()=>et,assert:()=>function(e){},assertEqual:()=>function(e){return e},assertIs:()=>function(e){},assertNever:()=>function(e){throw new Error("Unexpected value in exhaustive check")},assertNotEqual:()=>function(e){return e},assignProp:()=>x,attachSchema:()=>pt,base64ToUint8Array:()=>wt,base64urlToUint8Array:()=>function(e){var e=e.replace(/-/g,"+").replace(/_/g,"/"),t="=".repeat((4-e.length%4)%4);return wt(e+t)},cached:()=>Ke,captureStackTrace:()=>He,cleanEnum:()=>function(e){return Object.entries(e).filter(([e])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])},cleanRegex:()=>Je,clone:()=>I,cloneDef:()=>function(e){return Ge(e._zod.def)},codePointLength:()=>yt,constantCatch:()=>Pt,createTransparentProxy:()=>function(i){let a;return new Proxy({},{get(e,t,n){return a=a??i(),Reflect.get(a,t,n)},set(e,t,n,r){return a=a??i(),Reflect.set(a,t,n,r)},has(e,t){return a=a??i(),Reflect.has(a,t)},deleteProperty(e,t){return a=a??i(),Reflect.deleteProperty(a,t)},ownKeys(e){return a=a??i(),Reflect.ownKeys(a)},getOwnPropertyDescriptor(e,t){return a=a??i(),Reflect.getOwnPropertyDescriptor(a,t)},defineProperty(e,t,n){return a=a??i(),Reflect.defineProperty(a,t,n)}})},defineLazy:()=>We,defineLazyInternal:()=>h,esc:()=>Xe,escapeRegex:()=>ot,explicitlyAborted:()=>dt,extend:()=>function(t,n){if(!tt(n))throw new Error("Invalid input to extend: expected a plain object");var e=t._zod.def.checks,e=e&&0<e.length;if(e){var r=t._zod.def.shape;for(const i of Reflect.ownKeys(n))if(void 0!==Object.getOwnPropertyDescriptor(r,i))throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}e=Ge(t._zod.def,{get shape(){var e={...t._zod.def.shape,...n};return x(this,"shape",e),e}});return I(t,e)},finalizeIssue:()=>ht,floatSafeRemainder:()=>Be,getElementAtPath:()=>function(e,t){return t?t.reduce((e,t)=>e?.[t],e):e},getEnumValues:()=>Me,getLengthableOrigin:()=>bt,getParsedType:()=>rt,getSizableOrigin:()=>vt,hexToUint8Array:()=>function(e){var t=e.replace(/^0x/,"");if(t.length%2!=0)throw new Error("Invalid hex string length");var n=new Uint8Array(t.length/2);for(let e=0;e<t.length;e+=2)n[e/2]=Number.parseInt(t.slice(e,e+2),16);return n},hide:()=>Ot,installLazyProp:()=>function(e,t,n,r){e=function(e,t){e=Object.getPrototypeOf(e);return t in e?void 0:e}(e,t);e&&Object.defineProperty(e,t,{configurable:!0,get(){var e={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,e),e.value=n(this),Object.defineProperty(this,t,e),e.value},set(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:e})}})},isObject:()=>Qe,isPlainObject:()=>tt,issue:()=>_t,joinValues:()=>f,jsonStringifyReplacer:()=>Fe,members:()=>xt,merge:()=>function(t,n){if(!n?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(t._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");var e=Ge(t._zod.def,{get shape(){var e={...t._zod.def.shape,...n._zod.def.shape};return x(this,"shape",e),e},get catchall(){return n._zod.def.catchall},checks:n._zod.def.checks??[]});return I(t,e)},mergeDefs:()=>Ge,normalizeParams:()=>l,nullish:()=>Ve,numKeys:()=>function(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t},objectClone:()=>function(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))},omit:()=>function(n,r){const i=n._zod.def,e=i.checks,t=e&&0<e.length;if(t)throw new Error(".omit() cannot be used on object schemas containing refinements");var a=Ge(n._zod.def,{get shape(){var e={...n._zod.def.shape};for(const t of Reflect.ownKeys(r)){if(!Object.prototype.hasOwnProperty.call(i.shape,t))throw new Error(`Unrecognized key: "${String(t)}"`);r[t]&&delete e[t]}return x(this,"shape",e),e},checks:[]});return I(n,a)},optionalKeys:()=>st,own:()=>St,parsedType:()=>p,partial:()=>function(i,a,o,e="partial"){var t=a._zod.def,t=t.checks,t=t&&0<t.length;if(t)throw new Error(`.${e}() cannot be used on object schemas containing refinements`);t=Ge(a._zod.def,{get shape(){var e=a._zod.def.shape,t={...e};if(o)for(const n of Reflect.ownKeys(o)){if(!Object.prototype.hasOwnProperty.call(e,n))throw new Error(`Unrecognized key: "${String(n)}"`);o[n]&&(t[n]=i?new i({type:"optional",innerType:e[n]}):e[n])}else for(const r of Reflect.ownKeys(e))t[r]=i?new i({type:"optional",innerType:e[r]}):e[r];return x(this,"shape",t),t},checks:[]});return I(a,t)},pick:()=>function(e,n){const r=e._zod.def,t=r.checks,i=t&&0<t.length;if(i)throw new Error(".pick() cannot be used on object schemas containing refinements");var a=Ge(e._zod.def,{get shape(){var e={};for(const t of Reflect.ownKeys(n)){if(!Object.prototype.hasOwnProperty.call(r.shape,t))throw new Error(`Unrecognized key: "${String(t)}"`);n[t]&&x(e,t,r.shape[t])}return x(this,"shape",e),e},checks:[]});return I(e,a)},prefixIssues:()=>ft,primitiveTypes:()=>at,promiseAllObject:()=>function(t){const r=Object.keys(t),e=r.map(e=>t[e]);return Promise.all(e).then(t=>{var n={};for(let e=0;e<r.length;e++)n[r[e]]=t[e];return n})},propertyKeyTypes:()=>it,randomString:()=>function(t=10){var n="abcdefghijklmnopqrstuvwxyz";let r="";for(let e=0;e<t;e++)r+=n[Math.floor(Math.random()*n.length)];return r},required:()=>function(i,a,o){var e=Ge(a._zod.def,{get shape(){var e=a._zod.def.shape,t={...e};if(o)for(const n of Reflect.ownKeys(o)){if(!Object.prototype.hasOwnProperty.call(t,n))throw new Error(`Unrecognized key: "${String(n)}"`);o[n]&&(t[n]=new i({type:"nonoptional",innerType:e[n]}))}else for(const r of Reflect.ownKeys(e))t[r]=new i({type:"nonoptional",innerType:e[r]});return x(this,"shape",t),t}});return I(a,e)},safeExtend:()=>function(t,n){if(!tt(n))throw new Error("Invalid input to safeExtend: expected a plain object");var e=Ge(t._zod.def,{get shape(){var e={...t._zod.def.shape,...n};return x(this,"shape",e),e}});return I(t,e)},shallowClone:()=>nt,slugify:()=>Ye,stringifyPrimitive:()=>m,toZod:()=>Re,uint8ArrayToBase64:()=>kt,uint8ArrayToBase64url:()=>function(e){return kt(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},uint8ArrayToHex:()=>function(e){return Array.from(e).map(e=>e.toString(16).padStart(2,"0")).join("")},unwrapMessage:()=>mt});var qe=Symbol("evaluating");function We(t,n,e){let r=void 0;Object.defineProperty(t,n,{get(){if(r!==qe)return void 0===r&&(r=qe,r=e()),r},set(e){Object.defineProperty(t,n,{value:e})},configurable:!0})}function x(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ge(...e){var t={};for(const r of e){var n=Object.getOwnPropertyDescriptors(r);Object.assign(t,n)}return Object.defineProperties({},t)}function Xe(e){return JSON.stringify(e)}function Ye(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var He="captureStackTrace"in Error?Error.captureStackTrace:()=>{};function Qe(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var et=Ke(()=>{if(Ct.jitless)return!1;if("undefined"!=typeof navigator&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch(e){return!1}});function tt(e){return!1!==Qe(e)&&(void 0===(e=e.constructor)||"function"!=typeof e||!1!==Qe(e=e.prototype)&&!1!==Object.prototype.hasOwnProperty.call(e,"isPrototypeOf"))}function nt(e){return tt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var rt=e=>{var 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":null===e?"null":e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch?"promise":"undefined"!=typeof Map&&e instanceof Map?"map":"undefined"!=typeof Set&&e instanceof Set?"set":"undefined"!=typeof Date&&e instanceof Date?"date":"undefined"!=typeof File&&e instanceof File?"file":"object";default:throw new Error("Unknown data type: "+t)}},it=new Set(["string","number","symbol"]),at=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function I(e,t,n){var r=new e._zod.constr(t??e._zod.def);return t&&!n?.parent||(r._zod.parent=e),r}function l(e){const t=e;if(!t)return{};if("string"==typeof t)return{error:()=>t};if(void 0!==t?.message){if(void 0!==t?.error)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,"string"==typeof t.error?{...t,error:()=>t.error}:t}function m(e){return"bigint"==typeof e?e.toString()+"n":"string"==typeof e?`"${e}"`:""+e}function st(t){return Object.keys(t).filter(e=>void 0!==t[e]._zod.optin&&"optional"===t[e]._zod.optout)}var ut=(()=>({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]}))(),lt={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function ct(t,n=0){if(!0===t.aborted)return!0;for(let e=n;e<t.issues.length;e++)if(!0!==t.issues[e]?.continue)return!0;return!1}function dt(t,n=0){if(!0===t.aborted)return!0;for(let e=n;e<t.issues.length;e++)if(!1===t.issues[e]?.continue)return!0;return!1}function ft(t,e){return e.map(e=>{return e.path??(e.path=[]),e.path.unshift(t),e})}function mt(e){return"string"==typeof e?e:e?.message}function pt(t,n,r){var i;for(let e=n;e<t.length;e++)(i=t[e]).schema??(i.schema=r)}function ht(e,t,n){var r=e.inst?._zod?.traits,r=(r?.has("$ZodType")&&(r.has("$ZodCheck")?e.schema??(e.schema=e.inst):e.schema=e.inst),e.schema!==e.inst?e.schema?._zod.def?.error:void 0),r=e.message||(mt(e.inst?._zod.def?.error?.(e))??mt(r?.(e))??mt(t?.error?.(e))??mt(n.customError?.(e))??mt(n.localeError?.(e))??"Invalid input");const{inst:i,schema:a,continue:o,input:s,...u}=e;return u.path??(u.path=[]),u.message=r,t?.reportInput&&(u.input=s),u}function vt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var gt=/[\uD800-\uDBFF]/;function yt(t){var n=t.length;if(!gt.test(t))return n;let r=n;for(let e=0;e<n-1;e++)55296==(64512&t.charCodeAt(e))&&56320==(64512&t.charCodeAt(e+1))&&(r--,e++);return r}function bt(e){return Array.isArray(e)?"array":"string"==typeof e?"string":"unknown"}function p(e){var t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":if(null===e)return"null";if(Array.isArray(e))return"array";var n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}return t}function _t(...e){var[e,t,n]=e;return"string"==typeof e?{message:e,code:"custom",input:t,inst:n}:{...e}}function wt(e){var t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function kt(t){let n="";for(let e=0;e<t.length;e++)n+=String.fromCharCode(t[e]);return btoa(n)}var $t,It=class{constructor(){}};function xt(e,t){for(const r in t){var n=Object.getOwnPropertyDescriptor(t,r);n.get?Object.defineProperty(e,r,{...n,enumerable:!1}):function(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return St(this,t,n.bind(this))},set(e){St(this,t,e)}})}(e,r,n.value)}}function St(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Ot(e,t,n){return St(e,t,n,!1)}var zt=!1,Nt={configurable:!0,get(){zt=!0}};function h(e,n,r){var t=Object.getPrototypeOf(e._zod);n in t&&$t!==e._zod?$t=void 0:($t=e._zod,Object.defineProperty(t,n,{configurable:!0,get(){Object.defineProperty(this,n,Nt);var t=zt;zt=!1;try{var e=r(this);return zt?delete this[n]:Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e}),zt=zt||t,e}catch(e){throw delete this[n],zt=zt||t,e}},set(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}}))}var jt="~constantCatch";function Pt(e){var t=()=>e;return t[jt]=!0,t}var Ut=Object.freeze({status:"aborted"}),Dt={value:void 0,enumerable:!1},At="captureStackTrace"in Error?Error:null;function r(a,o,e,r){function s(e){this.def=e,this.constr=d,this.traits=new Set}s.prototype={};const u=e,l=u&&new WeakSet;function i(t,n){if(!t._zod){Dt.value=new s(n);try{Object.defineProperty(t,"_zod",Dt)}finally{Dt.value=void 0}}if(!t._zod.traits.has(a)){if(t._zod.traits.add(a),o(t,n),l){var n=Object.getPrototypeOf(t),r=t._zod.constr.prototype;let e=n;for(;e&&e!==r;)e=Object.getPrototypeOf(e);n=e??n;l.has(n)||(l.add(n),xt(n,u))}var e=d.prototype;for(const i in e)!Object.prototype.hasOwnProperty.call(e,i)||i in t||(t[i]=e[i].bind(t))}}e=r?.Parent??Object;class c extends e{}function d(e){var t=r?.Parent?function(e){var t=At;if(t){var n=t.stackTraceLimit;if("number"==typeof n){try{t.stackTraceLimit=0}catch{return At=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}(c):this,e=(i(t,e),t._zod.deferred);if(e){for(const n of e)n();t._zod.deferred=void 0}e=globalThis.__zod_globalConfig?.postProcessor;return e&&e(t),t}return Object.defineProperty(c,"name",{value:a}),Object.defineProperty(d,"init",{value:i}),Object.defineProperty(d,Symbol.hasInstance,{value:e=>!!(r?.Parent&&e instanceof r.Parent)||e?._zod?.traits?.has(a)}),Object.defineProperty(d,"name",{value:a}),d}var Et=Symbol("zod_brand"),Tt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Lt=class extends Error{constructor(e){super("Encountered unidirectional transform during encode: "+e),this.name="ZodEncodeError"}},Ct=((Kt=globalThis).__zod_globalConfig??(Kt.__zod_globalConfig={}),globalThis.__zod_globalConfig);function g(e){return e&&Object.assign(Ct,e),Ct}var Zt={get:function(){var e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Fe,2)),e.message},set:function(e){this._zod.message=e},enumerable:!0,configurable:!0},Rt={value:void 0,enumerable:!1},Mt={value:void 0,enumerable:!1},Ft=new WeakSet([Object.prototype,Error.prototype]),Kt=(e,t)=>{e.name="$ZodError",Rt.value=e._zod,Object.defineProperty(e,"_zod",Rt),Mt.value=t,Object.defineProperty(e,"issues",Mt),Mt.value=Rt.value=void 0,Object.defineProperty(e,"message",Zt);t=Object.getPrototypeOf(e);Ft.has(t)||(Ft.add(t),Object.defineProperty(t,"toString",{configurable:!0,enumerable:!1,get(){var e=()=>this.message;return Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,"toString",{value:e,configurable:!0,writable:!0})}}))},Vt=r("$ZodError",Kt),Jt=r("$ZodError",Kt,void 0,{Parent:Error});function Bt(e,t=e=>e.message){var n,r,i,a={},o=[];for(const s of e.issues)(0<s.path.length?(n=a,r=s.path[0],i=()=>[],Object.prototype.hasOwnProperty.call(n,r)||("__proto__"===r?Object.defineProperty(n,r,{value:i(),writable:!0,enumerable:!0,configurable:!0}):n[r]=i()),n[r]):o).push(t(s));return{formErrors:o,fieldErrors:a}}function qt(e,o=e=>e.message){const s={_errors:[]},u=(e,t=[])=>{for(const a of e.issues)if("invalid_union"===a.code&&a.errors.length)a.errors.map(e=>u({issues:e},[...t,...a.path]));else if("invalid_key"===a.code)u({issues:a.issues},[...t,...a.path]);else if("invalid_element"===a.code)u({issues:a.issues},[...t,...a.path]);else{var n=[...t,...a.path];if(0===n.length)s._errors.push(o(a));else{let e=s,t=0;for(;t<n.length;){var r=n[t],i=t===n.length-1;"_errors"===r?(i&&e._errors.push(o(a)),t++):(Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0}),r=e[r],i&&r._errors.push(o(a)),e=r,t++)}}}};return u(e),s}function Wt(e,s=e=>e.message){const u={errors:[]},l=(e,t=[])=>{var n;for(const o of e.issues)if("invalid_union"===o.code&&o.errors.length)o.errors.map(e=>l({issues:e},[...t,...o.path]));else if("invalid_key"===o.code)l({issues:o.issues},[...t,...o.path]);else if("invalid_element"===o.code)l({issues:o.issues},[...t,...o.path]);else{var r=[...t,...o.path];if(0===r.length)u.errors.push(s(o));else{let e=u,t=0;for(;t<r.length;){var i=r[t],a=t===r.length-1;e=("string"==typeof i?(e.properties??(e.properties={}),Object.prototype.hasOwnProperty.call(e.properties,i)||Object.defineProperty(e.properties,i,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),e.properties):(e.items??(e.items=[]),(n=e.items)[i]??(n[i]={errors:[]}),e.items))[i],a&&e.errors.push(s(o)),t++}}}};return l(e),u}function Gt(e){var t=[];for(const n of e.map(e=>"object"==typeof e?e.key:e))"number"==typeof n?t.push(`[${n}]`):"symbol"==typeof n?t.push(`[${JSON.stringify(String(n))}]`):/[^\w$]/.test(n)?t.push(`[${JSON.stringify(n)}]`):(t.length&&t.push("."),t.push(n));return t.join("")}function Xt(e){var t=[];for(const n of[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length))t.push("✖ "+n.message),n.path?.length&&t.push("  → at "+Gt(n.path));return t.join("\n")}function Yt(e,t){return{callee:t?.callee??e,Err:t?.Err}}var Ht=a=>{const o=(e,t,n,r)=>{const i=n?{...n,async:!1}:{async:!1};n=e._zod.run({value:t,issues:[]},i);if(n instanceof Promise)throw new Tt;if(n.issues.length)throw e=new(r?.Err??a)(n.issues.map(e=>ht(e,i,g()))),He(e,r?.callee??o),e;return n.value};return o},Qt=Ht(Jt),en=o=>{const s=async(e,t,n,r)=>{const i=n?{...n,async:!0}:{async:!0};let a=e._zod.run({value:t,issues:[]},i);if((a=a instanceof Promise?await a:a).issues.length)throw n=new(r?.Err??o)(a.issues.map(e=>ht(e,i,g()))),He(n,r?.callee??s),n;return a.value};return s},tn=en(Jt),nn=i=>(e,t,n)=>{const r=n?{...n,async:!1}:{async:!1};n=e._zod.run({value:t,issues:[]},r);if(n instanceof Promise)throw new Tt;return n.issues.length?{success:!1,error:new(i??Vt)(n.issues.map(e=>ht(e,r,g())))}:{success:!0,data:n.value}},rn=nn(Jt),an=a=>async(e,t,n)=>{const r=n?{...n,async:!0}:{async:!0};let i=e._zod.run({value:t,issues:[]},r);return(i=i instanceof Promise?await i:i).issues.length?{success:!1,error:new a(i.issues.map(e=>ht(e,r,g())))}:{success:!0,data:i.value}},on=an(Jt),sn=Symbol.for("zod.compile.invalid"),un=Symbol.for("zod.compile.fallback"),ln=(t,n,r)=>{var i=t._zod.bag.validator;if(void 0!==i&&i(n)!==sn)return!0;{i=t;t=n;n=r;n=n?{...n,async:!1}:{async:!1},r=i._zod.bag.fallbackRun;let e;e=r?(n[un]=!0,r({value:t,issues:[]},n)):i._zod.run({value:t,issues:[]},n);if(e instanceof Promise)throw new Tt;return 0===e.issues.length;return}};var cn=async(e,t,n)=>{n=n?{...n,async:!0}:{async:!0};let r=e._zod.run({value:t,issues:[]},n);return 0===(r=r instanceof Promise?await r:r).issues.length},dn=e=>{const i=Ht(e),a=(e,t,n,r)=>{n=n?{...n,direction:"backward"}:{direction:"backward"};return i(e,t,n,Yt(a,r))};return a},fn=dn(Jt),mn=e=>{const i=Ht(e),a=(e,t,n,r)=>i(e,t,n,Yt(a,r));return a},pn=mn(Jt),hn=e=>{const i=en(e),a=async(e,t,n,r)=>{n=n?{...n,direction:"backward"}:{direction:"backward"};return i(e,t,n,Yt(a,r))};return a},vn=hn(Jt),gn=e=>{const i=en(e),a=async(e,t,n,r)=>i(e,t,n,Yt(a,r));return a},yn=gn(Jt),bn=r=>(e,t,n)=>{n=n?{...n,direction:"backward"}:{direction:"backward"};return nn(r)(e,t,n)},_n=bn(Jt),wn=r=>(e,t,n)=>nn(r)(e,t,n),kn=wn(Jt),$n=r=>async(e,t,n)=>{n=n?{...n,direction:"backward"}:{direction:"backward"};return an(r)(e,t,n)},In=$n(Jt),xn=r=>async(e,t,n)=>an(r)(e,t,n),Sn=xn(Jt),On={},zn=(e(On,{base64:()=>tr,base64url:()=>nr,bigint:()=>hr,boolean:()=>yr,browserEmail:()=>qn,cidrv4:()=>Qn,cidrv6:()=>er,creditCard:()=>sr,cuid:()=>zn,cuid2:()=>Nn,date:()=>cr,datetime:()=>mr,domain:()=>ir,duration:()=>En,e164:()=>or,email:()=>Fn,emoji:()=>Gn,extendedDuration:()=>Tn,guid:()=>Ln,hex:()=>$r,hostname:()=>rr,html5Email:()=>Kn,httpProtocol:()=>ar,idnEmail:()=>Bn,integer:()=>vr,ipv4:()=>Xn,ipv6:()=>Yn,ksuid:()=>Un,lowercase:()=>wr,mac:()=>Hn,md5_base64:()=>Or,md5_base64url:()=>zr,md5_hex:()=>Sr,nanoid:()=>Dn,nanoidOfLength:()=>An,null:()=>br,number:()=>gr,rfc5322Email:()=>Vn,sha1_base64:()=>jr,sha1_base64url:()=>Pr,sha1_hex:()=>Nr,sha256_base64:()=>Dr,sha256_base64url:()=>Ar,sha256_hex:()=>Ur,sha384_base64:()=>Tr,sha384_base64url:()=>Lr,sha384_hex:()=>Er,sha512_base64:()=>Zr,sha512_base64url:()=>Rr,sha512_hex:()=>Cr,string:()=>pr,time:()=>fr,ulid:()=>jn,undefined:()=>_r,unicodeEmail:()=>Jn,uppercase:()=>kr,uuid:()=>Cn,uuid4:()=>Zn,uuid6:()=>Rn,uuid7:()=>Mn,xid:()=>Pn}),/^[cC][0-9a-z]{6,}$/),Nn=/^[0-9a-z]+$/,jn=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Pn=/^[0-9a-vA-V]{20}$/,Un=/^[A-Za-z0-9]{27}$/,Dn=/^[a-zA-Z0-9_-]{21}$/;function An(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var En=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Tn=/^[-+]?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)?)??$/,Ln=/^([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})$/,Cn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Zn=Cn(4),Rn=Cn(6),Mn=Cn(7),Fn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Kn=/^[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])?)*$/,Vn=/^(([^<>()\[\]\\.,;:\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,}))$/,Jn=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Bn=Jn,qn=/^[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])?)*$/,Wn="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Gn(){return new RegExp(Wn,"u")}var Xn=/^(?:(?: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])$/,Yn=/^(([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}|:))$/,Hn=e=>{e=ot(e??":");return new RegExp(`^(?:[0-9A-F]{2}${e}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${e}){5}[0-9a-f]{2}$`)},Qn=/^((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])$/,er=/^(([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}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,tr=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,nr=/^[A-Za-z0-9_-]*$/,rr=/^(?=.{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])?)*\.?$/,ir=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ar=/^https?$/,or=/^\+[1-9]\d{6,14}$/,sr=/^\d(?:[ -]?\d){11,18}$/,ur="(?:(?:\\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])))";function lr(e){return new RegExp(`^${e}$`)}var cr=lr(ur);function dr(e){var t="(?:[01]\\d|2[0-3]):[0-5]\\d";return"number"==typeof e.precision?-1===e.precision?t:0===e.precision?t+":[0-5]\\d":t+`:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?t+":[0-5]\\d(?:\\.\\d+)?":t+"(?::[0-5]\\d(?:\\.\\d+)?)?"}function fr(e){return new RegExp(`^${dr(e)}$`)}function mr(e){var t=["Z"],t=(e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"),`${dr({precision:e.precision,seconds:!0})}(?:${t.join("|")})`),e=e.local?t+"|"+dr({precision:e.precision}):t;return new RegExp(`^${ur}T(?:${e})$`)}var pr=e=>{e=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},hr=/^-?\d+n?$/,vr=/^-?\d+$/,gr=/^-?\d+(?:\.\d+)?$/,yr=/^(?:true|false)$/i,br=/^null$/i,_r=/^undefined$/i,wr=/^[^A-Z]*$/,kr=/^[^a-z]*$/,$r=/^[0-9a-fA-F]*$/;function Ir(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function xr(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Sr=/^[0-9a-fA-F]{32}$/,Or=Ir(22,"=="),zr=xr(22),Nr=/^[0-9a-fA-F]{40}$/,jr=Ir(27,"="),Pr=xr(27),Ur=/^[0-9a-fA-F]{64}$/,Dr=Ir(43,"="),Ar=xr(43),Er=/^[0-9a-fA-F]{96}$/,Tr=Ir(64,""),Lr=xr(64),Cr=/^[0-9a-fA-F]{128}$/,Zr=Ir(86,"=="),Rr=xr(86),u=r("$ZodCheck",(e,t)=>{e._zod??(e._zod={}),e._zod.def=t,(t=e._zod).onattach??(t.onattach=[])}),Mr=e=>{e=e.value;return!Ve(e)&&void 0!==e.size},Fr=e=>{e=e.value;return!Ve(e)&&void 0!==e.length},Kr={number:"number",bigint:"bigint",object:"date"},Vr=r("$ZodCheckLessThan",(t,n)=>{u.init(t,n);const r=Kr[typeof n.value];t._zod.onattach.push(e=>{var e=e._zod.bag,t=(n.inclusive?e.maximum:e.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<t&&(n.inclusive?e.maximum=n.value:e.exclusiveMaximum=n.value)}),t._zod.check=e=>{(n.inclusive?e.value<=n.value:e.value<n.value)||e.issues.push({origin:Kr[typeof e.value]??r,code:"too_big",maximum:"object"==typeof n.value?n.value.getTime():n.value,input:e.value,inclusive:n.inclusive,inst:t,continue:!n.abort})}}),Jr=r("$ZodCheckGreaterThan",(t,n)=>{u.init(t,n);const r=Kr[typeof n.value];t._zod.onattach.push(e=>{var e=e._zod.bag,t=(n.inclusive?e.minimum:e.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>t&&(n.inclusive?e.minimum=n.value:e.exclusiveMinimum=n.value)}),t._zod.check=e=>{(n.inclusive?e.value>=n.value:e.value>n.value)||e.issues.push({origin:Kr[typeof e.value]??r,code:"too_small",minimum:"object"==typeof n.value?n.value.getTime():n.value,input:e.value,inclusive:n.inclusive,inst:t,continue:!n.abort})}}),Br=r("$ZodCheckMultipleOf",(t,n)=>{u.init(t,n),t._zod.onattach.push(e=>{(e=e._zod.bag).multipleOf??(e.multipleOf=n.value)}),t._zod.check=e=>{if(typeof e.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");("bigint"==typeof e.value?n.value===BigInt(0)||e.value%n.value!==BigInt(0):0!==Be(e.value,n.value))&&e.issues.push({origin:typeof e.value,code:"not_multiple_of",divisor:n.value,input:e.value,inst:t,continue:!n.abort})}}),qr=r("$ZodCheckNumberFormat",(n,r)=>{u.init(n,r),r.format=r.format||"float64";const i=r.format?.includes("int"),a=i?"int":"number",[o,s]=ut[r.format];n._zod.onattach.push(e=>{e=e._zod.bag;e.format=r.format,e.minimum=o,e.maximum=s,i&&(e.pattern=vr)}),n._zod.check=e=>{var t=e.value;if(i){if(!Number.isInteger(t))return void e.issues.push({expected:a,format:r.format,code:"invalid_type",continue:!1,input:t,inst:n});if(!Number.isSafeInteger(t))return void(0<t?e.issues.push({input:t,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:a,inclusive:!0,continue:!r.abort}):e.issues.push({input:t,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:a,inclusive:!0,continue:!r.abort}))}t<o&&e.issues.push({origin:"number",input:t,code:"too_small",minimum:o,inclusive:!0,inst:n,continue:!r.abort}),t>s&&e.issues.push({origin:"number",input:t,code:"too_big",maximum:s,inclusive:!0,inst:n,continue:!r.abort})}}),Wr=r("$ZodCheckBigIntFormat",(n,r)=>{u.init(n,r);const[i,a]=lt[r.format];n._zod.onattach.push(e=>{e=e._zod.bag;e.format=r.format,e.minimum=i,e.maximum=a}),n._zod.check=e=>{var t=e.value;t<i&&e.issues.push({origin:"bigint",input:t,code:"too_small",minimum:i,inclusive:!0,inst:n,continue:!r.abort}),t>a&&e.issues.push({origin:"bigint",input:t,code:"too_big",maximum:a,inclusive:!0,inst:n,continue:!r.abort})}}),Gr=r("$ZodCheckMaxSize",(n,r)=>{var e;u.init(n,r),(e=n._zod.def).when??(e.when=Mr),n._zod.onattach.push(e=>{var t=e._zod.bag.maximum??Number.POSITIVE_INFINITY;r.maximum<t&&(e._zod.bag.maximum=r.maximum)}),n._zod.check=e=>{var t=e.value;t.size<=r.maximum||e.issues.push({origin:vt(t),code:"too_big",maximum:r.maximum,inclusive:!0,input:t,inst:n,continue:!r.abort})}}),Xr=r("$ZodCheckMinSize",(n,r)=>{var e;u.init(n,r),(e=n._zod.def).when??(e.when=Mr),n._zod.onattach.push(e=>{var t=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;r.minimum>t&&(e._zod.bag.minimum=r.minimum)}),n._zod.check=e=>{var t=e.value;t.size>=r.minimum||e.issues.push({origin:vt(t),code:"too_small",minimum:r.minimum,inclusive:!0,input:t,inst:n,continue:!r.abort})}}),Yr=r("$ZodCheckSizeEquals",(r,i)=>{var e;u.init(r,i),(e=r._zod.def).when??(e.when=Mr),r._zod.onattach.push(e=>{e=e._zod.bag;e.minimum=i.size,e.maximum=i.size,e.size=i.size}),r._zod.check=e=>{var t=e.value,n=t.size;n!==i.size&&(n=n>i.size,e.issues.push({origin:vt(t),...n?{code:"too_big",maximum:i.size}:{code:"too_small",minimum:i.size},inclusive:!0,exact:!0,input:e.value,inst:r,continue:!i.abort}))}}),Hr=r("$ZodCheckMaxLength",(r,i)=>{var e;u.init(r,i),(e=r._zod.def).when??(e.when=Fr),r._zod.onattach.push(e=>{var t=e._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum<t&&(e._zod.bag.maximum=i.maximum)}),r._zod.check=e=>{var t=e.value,n=t.length;("string"==typeof t&&n>i.maximum?yt(t):n)<=i.maximum||(n=bt(t),e.issues.push({origin:n,code:"too_big",maximum:i.maximum,inclusive:!0,input:t,inst:r,continue:!i.abort}))}}),Qr=r("$ZodCheckMinLength",(r,i)=>{var e;u.init(r,i),(e=r._zod.def).when??(e.when=Fr),r._zod.onattach.push(e=>{var t=e._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>t&&(e._zod.bag.minimum=i.minimum)}),r._zod.check=e=>{var t=e.value,n=t.length;("string"==typeof t&&n>=i.minimum&&n<2*i.minimum?yt(t):n)>=i.minimum||(n=bt(t),e.issues.push({origin:n,code:"too_small",minimum:i.minimum,inclusive:!0,input:t,inst:r,continue:!i.abort}))}}),ei=r("$ZodCheckLengthEquals",(r,i)=>{var e;u.init(r,i),(e=r._zod.def).when??(e.when=Fr),r._zod.onattach.push(e=>{e=e._zod.bag;e.minimum=i.length,e.maximum=i.length,e.length=i.length}),r._zod.check=e=>{var t=e.value,n=t.length,n="string"==typeof t&&n>=i.length&&n<=2*i.length?yt(t):n;n!==i.length&&(t=bt(t),n=n>i.length,e.issues.push({origin:t,...n?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:e.value,inst:r,continue:!i.abort}))}}),ti=r("$ZodCheckStringFormat",(t,n)=>{var e;u.init(t,n),t._zod.onattach.push(e=>{e=e._zod.bag;e.format=n.format,n.pattern&&(e.patterns??(e.patterns=new Set),e.patterns.add(n.pattern))}),n.pattern?(e=t._zod).check??(e.check=e=>{n.pattern.lastIndex=0,n.pattern.test(e.value)||e.issues.push({origin:"string",code:"invalid_format",format:n.format,input:e.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:t,continue:!n.abort})}):(e=t._zod).check??(e.check=()=>{})}),ni=r("$ZodCheckRegex",(t,n)=>{ti.init(t,n),t._zod.check=e=>{n.pattern.lastIndex=0,n.pattern.test(e.value)||e.issues.push({origin:"string",code:"invalid_format",format:"regex",input:e.value,pattern:n.pattern.toString(),inst:t,continue:!n.abort})}}),ri=r("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=wr),ti.init(e,t)}),ii=r("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=kr),ti.init(e,t)}),ai=r("$ZodCheckIncludes",(t,n)=>{u.init(t,n);var e=ot(n.includes);const r=new RegExp("number"==typeof n.position?`^.{${n.position},}`+e:e);n.pattern=r,t._zod.onattach.push(e=>{e=e._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(r)}),t._zod.check=e=>{e.value.includes(n.includes,n.position)||e.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:e.value,inst:t,continue:!n.abort})}}),oi=r("$ZodCheckStartsWith",(t,n)=>{u.init(t,n);const r=new RegExp(`^${ot(n.prefix)}.*`);n.pattern??(n.pattern=r),t._zod.onattach.push(e=>{e=e._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(r)}),t._zod.check=e=>{e.value.startsWith(n.prefix)||e.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:e.value,inst:t,continue:!n.abort})}}),si=r("$ZodCheckEndsWith",(t,n)=>{u.init(t,n);const r=new RegExp(`.*${ot(n.suffix)}$`);n.pattern??(n.pattern=r),t._zod.onattach.push(e=>{e=e._zod.bag;e.patterns??(e.patterns=new Set),e.patterns.add(r)}),t._zod.check=e=>{e.value.endsWith(n.suffix)||e.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:e.value,inst:t,continue:!n.abort})}});function ui(e,t,n){e.issues.length&&t.issues.push(...ft(n,e.issues))}var li=r("$ZodCheckProperty",(e,n)=>{u.init(e,n),e._zod.check=t=>{var e=n.schema._zod.run({value:t.value[n.property],issues:[]},{});if(e instanceof Promise)return e.then(e=>ui(e,t,n.property));ui(e,t,n.property)}}),ci=r("$ZodCheckMimeType",(t,n)=>{u.init(t,n);const r=new Set(n.mime);t._zod.onattach.push(e=>{e._zod.bag.mime=n.mime}),t._zod.check=e=>{r.has(e.value.type)||e.issues.push({code:"invalid_value",values:n.mime,input:e.value.type,inst:t,continue:!n.abort})}}),di=r("$ZodCheckOverwrite",(e,t)=>{u.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),fi=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1,e(this),--this.indent}write(e){if("function"==typeof e)e(this,{execution:"sync"}),e(this,{execution:"async"});else{e=e.split("\n").filter(e=>e);const t=Math.min(...e.map(e=>e.length-e.trimStart().length));for(const n of e.map(e=>e.slice(t)).map(e=>" ".repeat(2*this.indent)+e))this.content.push(n)}}compile(){var e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
${t.join("\n")}
};`)(...Object.values(this.closed))}},mi={major:4,minor:5,patch:1},y=r("$ZodType",(u,e)=>{(u=u??{})._zod.def=e,u._zod.bag=u._zod.bag||{},u._zod.version=mi;var e=u._zod.def.checks;const r=u._zod.traits.has("$ZodCheck")?[u,...e??[]]:e?.length?[...e]:[];for(const t of r)for(const n of t._zod.onattach)n(u);if(0===r.length)(e=u._zod).deferred??(e.deferred=[]),u._zod.deferred?.push(()=>{u._zod.run=u._zod.parse});else{const i=(e,t,n)=>{if(e.memo)return e;let r=ct(e),i;for(const a of t){if(a._zod.def.when){if(dt(e))continue;if(!a._zod.def.when(e))continue}else if(r)continue;const o=e.issues.length,s=a._zod.check(e);if(s instanceof Promise&&!1===n?.async)throw new Tt;i||s instanceof Promise?i=(i??Promise.resolve()).then(async()=>{await s,e.issues.length!==o&&(pt(e.issues,o,u),r=r||ct(e,o))}):e.issues.length!==o&&(pt(e.issues,o,u),r=r||ct(e,o))}return i?i.then(()=>e):e},a=(e,t,n)=>{if(ct(e))return e.aborted=!0,e;e=i(t,r,n);if(e instanceof Promise){if(!1===n.async)throw new Tt;return e.then(e=>u._zod.parse(e,n))}return u._zod.parse(e,n)};u._zod.run=(t,n)=>{if(n.skipChecks)return u._zod.parse(t,n);if("backward"===n.direction)return(e=u._zod.parse({value:t.value,issues:[]},{...n,skipChecks:!0}))instanceof Promise?e.then(e=>a(e,t,n)):a(e,t,n);var e=u._zod.parse(t,n);if(e instanceof Promise){if(!1===n.async)throw new Tt;return e.then(e=>i(e,r,n))}return i(e,r,n)}}},{get"~standard"(){return Ot(this,"~standard",hi(this))},set"~standard"(e){St(this,"~standard",e)}}),pi=e=>e.success?{value:e.data}:{issues:e.error?.issues};function hi(n){return{validate:t=>{try{return pi(rn(n,t))}catch(e){return on(n,t).then(pi)}},vendor:"zod",version:1}}var vi=r("$ZodString",(n,r)=>{y.init(n,r),n._zod.pattern=[...n?._zod.bag?.patterns??[]].pop()??pr(n._zod.bag),n._zod.parse=(e,t)=>{if(r.coerce)try{e.value=String(e.value)}catch(e){}return"string"!=typeof e.value&&e.issues.push({expected:"string",code:"invalid_type",input:e.value,inst:n}),e}}),a=r("$ZodStringFormat",(e,t)=>{ti.init(e,t),vi.init(e,t)}),gi=r("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Ln),a.init(e,t)}),yi=r("$ZodUUID",(e,t)=>{if(t.version){var n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(void 0===n)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Cn(n))}else t.pattern??(t.pattern=Cn());a.init(e,t)}),bi=r("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Fn),a.init(e,t)}),_i=1,wi=2;function ki(e,t){if(!t.normalize&&t.protocol?.source===ar.source&&!/^https?:\/\//i.test(e))return _i;try{return new URL(e)}catch{return wi}}var $i=/[\t\n\r]/g;function Ii(e){return e.replace($i,"")}function xi(e,t){return t.lastIndex=0,t.test(e.hostname)}function Si(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Oi=r("$ZodURL",(r,i)=>{a.init(r,i),r._zod.check=t=>{try{var e=t.value.trim(),n=ki(e,i);n===_i?t.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:t.value,inst:r,continue:!i.abort}):n===wi?t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:r,continue:!i.abort}):(i.hostname&&!xi(n,i.hostname)&&t.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:t.value,inst:r,continue:!i.abort}),i.protocol&&!Si(n,i.protocol)&&t.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:t.value,inst:r,continue:!i.abort}),t.value=i.normalize?n.href:Ii(e))}catch(e){t.issues.push({code:"invalid_format",format:"url",input:t.value,inst:r,continue:!i.abort})}}}),zi=r("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Gn()),a.init(e,t)}),Ni=r("$ZodNanoID",(e,t)=>{if(void 0!==t.length&&(!Number.isInteger(t.length)||t.length<1))throw new Error("Invalid nanoid length: "+t.length);t.pattern??(t.pattern=void 0===t.length?Dn:An(t.length)),a.init(e,t)}),ji=r("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=zn),a.init(e,t)}),Pi=r("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Nn),a.init(e,t)}),Ui=r("$ZodULID",(e,t)=>{t.pattern??(t.pattern=jn),a.init(e,t)}),Di=r("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Pn),a.init(e,t)}),Ai=r("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Un),a.init(e,t)}),Ei=r("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=mr(t)),a.init(e,t),!t.local&&-1!==t.precision||(e._zod.bag.laxFormat=!0,e._zod.onattach.push(e=>{e._zod.bag.laxFormat=!0}))}),Ti=r("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=cr),a.init(e,t)}),Li=r("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=fr(t)),a.init(e,t)}),Ci=r("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=En),a.init(e,t)}),Zi=r("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Xn),a.init(e,t),e._zod.bag.format="ipv4"}),Ri=/^[0-9a-fA-F:.]+$/;function Mi(e){if(!Ri.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var Fi=r("$ZodIPv6",(t,n)=>{n.pattern??(n.pattern=Yn),a.init(t,n),t._zod.bag.format="ipv6",t._zod.check=e=>{Mi(e.value)||e.issues.push({code:"invalid_format",format:"ipv6",input:e.value,inst:t,continue:!n.abort})}}),Ki=r("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Hn(t.delimiter)),a.init(e,t),e._zod.bag.format="mac"}),Vi=r("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Qn),a.init(e,t)});function Ji(e){var t,n,e=e.split("/");return 2===e.length&&([e,t]=e,!!t)&&""+(n=Number(t))===t&&!(n<0||128<n)&&Mi(e)}var Bi=r("$ZodCIDRv6",(t,n)=>{n.pattern??(n.pattern=er),a.init(t,n),t._zod.check=e=>{Ji(e.value)||e.issues.push({code:"invalid_format",format:"cidrv6",input:e.value,inst:t,continue:!n.abort})}});function qi(e){if(""===e)return!0;if(/\s/.test(e))return!1;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var Wi=r("$ZodBase64",(t,n)=>{n.pattern??(n.pattern=tr),a.init(t,n),t._zod.bag.contentEncoding="base64",t._zod.check=e=>{qi(e.value)||e.issues.push({code:"invalid_format",format:"base64",input:e.value,inst:t,continue:!n.abort})}});function Gi(e){return!!nr.test(e)&&qi((e=e.replace(/[-_]/g,e=>"-"===e?"+":"/")).padEnd(4*Math.ceil(e.length/4),"="))}var Xi=r("$ZodBase64URL",(t,n)=>{n.pattern??(n.pattern=nr),a.init(t,n),t._zod.bag.contentEncoding="base64url",t._zod.check=e=>{Gi(e.value)||e.issues.push({code:"invalid_format",format:"base64url",input:e.value,inst:t,continue:!n.abort})}}),Yi=r("$ZodE164",(e,t)=>{t.pattern??(t.pattern=or),a.init(e,t)}),Hi=/[- ]/g;function Qi(r){if(sr.test(r)){var i=r.replace(Hi,"");let e=i.length,t=1,n=0;for(;e;){var a=+i[--e];t^=1,n+=t?[0,2,4,6,8,1,3,5,7,9][a]:a}return n%10==0}return!1}var ea=r("$ZodCreditCard",(t,n)=>{n.pattern??(n.pattern=sr),a.init(t,n),t._zod.check=e=>{Qi(e.value)||e.issues.push({code:"invalid_format",format:"credit_card",input:e.value,inst:t,continue:!n.abort})}});function ta(e,t=null){try{var n,r,i=e.split(".");return 3!==i.length?!1:([n]=i,!!n&&!("typ"in(r=JSON.parse(atob(n)))&&"JWT"!==r?.typ||!r.alg||t&&!("alg"in r&&r.alg===t)))}catch{return!1}}var na=r("$ZodJWT",(t,n)=>{a.init(t,n),t._zod.check=e=>{ta(e.value,n.alg)||e.issues.push({code:"invalid_format",format:"jwt",input:e.value,inst:t,continue:!n.abort})}}),ra=r("$ZodCustomStringFormat",(t,n)=>{a.init(t,n),t._zod.check=e=>{n.fn(e.value)||e.issues.push({code:"invalid_format",format:n.format,input:e.value,inst:t,continue:!n.abort})}}),ia=r("$ZodNumber",(i,a)=>{y.init(i,a),i._zod.pattern=i._zod.bag.pattern??gr,i._zod.parse=(e,t)=>{if(a.coerce)try{e.value=Number(e.value)}catch(e){}var n,r=e.value;return"number"==typeof r&&!Number.isNaN(r)&&Number.isFinite(r)||(n="number"==typeof r?Number.isNaN(r)?"NaN":Number.isFinite(r)?void 0:String(r):void 0,e.issues.push({expected:"number",code:"invalid_type",input:r,inst:i,...n?{received:n}:{}})),e}}),aa=r("$ZodNumberFormat",(e,t)=>{qr.init(e,t),ia.init(e,t)}),oa=r("$ZodBoolean",(r,i)=>{y.init(r,i),r._zod.pattern=yr,r._zod.parse=(e,t)=>{if(i.coerce)try{e.value=Boolean(e.value)}catch(e){}var n=e.value;return"boolean"!=typeof n&&e.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:r}),e}}),sa=r("$ZodBigInt",(n,r)=>{y.init(n,r),n._zod.pattern=hr,n._zod.parse=(e,t)=>{if(r.coerce)try{e.value=BigInt(e.value)}catch(e){}return"bigint"!=typeof e.value&&e.issues.push({expected:"bigint",code:"invalid_type",input:e.value,inst:n}),e}}),ua=r("$ZodBigIntFormat",(e,t)=>{Wr.init(e,t),sa.init(e,t)}),la=r("$ZodSymbol",(r,e)=>{y.init(r,e),r._zod.parse=(e,t)=>{var n=e.value;return"symbol"!=typeof n&&e.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:r}),e}}),ca=r("$ZodUndefined",(r,e)=>{y.init(r,e),r._zod.pattern=_r,r._zod.values=new Set([void 0]),r._zod.parse=(e,t)=>{var n=e.value;return void 0!==n&&e.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:r}),e}}),da=r("$ZodNull",(r,e)=>{y.init(r,e),r._zod.pattern=br,r._zod.values=new Set([null]),r._zod.parse=(e,t)=>{var n=e.value;return null!==n&&e.issues.push({expected:"null",code:"invalid_type",input:n,inst:r}),e}}),fa=r("$ZodAny",(e,t)=>{y.init(e,t),e._zod.parse=e=>e}),ma=r("$ZodUnknown",(e,t)=>{y.init(e,t),e._zod.parse=e=>e}),pa=r("$ZodNever",(n,e)=>{y.init(n,e),n._zod.parse=(e,t)=>(e.issues.push({expected:"never",code:"invalid_type",input:e.value,inst:n}),e)}),ha=r("$ZodVoid",(r,e)=>{y.init(r,e),r._zod.parse=(e,t)=>{var n=e.value;return void 0!==n&&e.issues.push({expected:"void",code:"invalid_type",input:n,inst:r}),e}}),va=r("$ZodDate",(i,a)=>{y.init(i,a),i._zod.parse=(e,t)=>{if(a.coerce)try{e.value=new Date(e.value)}catch(e){}var n=e.value,r=n instanceof Date;return r&&!Number.isNaN(n.getTime())||e.issues.push({expected:"date",code:"invalid_type",input:n,...r?{received:"Invalid Date"}:{},inst:i}),e}});function ga(e,t,n){e.issues.length&&t.issues.push(...ft(n,e.issues)),t.value[n]=e.value}var ya=r("$ZodArray",(t,o)=>{y.init(t,o);const s=Ct.memoizer;s?.attach(t),t._zod.parse=(n,e)=>{var r=n.value;if(!Array.isArray(r))return n.issues.push({expected:"array",code:"invalid_type",input:r,inst:t}),n;n.value=s?s.alloc(t,n,Array(r.length),e):Array(r.length);var i=[];for(let t=0;t<r.length;t++){var a=r[t],a=o.element._zod.run({value:a,issues:[]},e);a instanceof Promise?i.push(a.then(e=>ga(e,n,t))):ga(a,n,t)}return i.length?Promise.all(i).then(()=>n):n}});function ba(e,t,n,r,i,a){r=n in r,a="optional"===a;if(r||!a||"optional"!==i){if(e.issues.length){if(void 0!==i&&a&&!r)return;t.issues.push(...ft(n,e.issues))}r||void 0!==i?void 0===e.value?r&&(t.value[n]=void 0):t.value[n]=e.value:e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]})}}var _a=[];function wa(e){var t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),n=n.length?n:_a,r=n.length?[...t,...n]:t;for(const a of r)if(!e.shape?.[a]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(a)}": expected a Zod schema`);var i=st(e.shape);return{...e,allKeys:r,symbolKeys:n,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function ka(e,t,n,r,i,a){var o,s=[],u=i.keySet,l=i.catchall._zod,c=l.def.type;const d=l.optin,f=l.optout;for(const m in t)u.has(m)||("__proto__"===m?"never"===c&&s.push(m):"never"===c?s.push(m):(o=l.run({value:t[m],issues:[]},r))instanceof Promise?e.push(o.then(e=>ba(e,n,m,t,d,f))):ba(o,n,m,t,d,f));return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:t,inst:a,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var $a=new WeakMap,Ia=r("$ZodObject",(l,t)=>{if(y.init(l,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const n=t.shape;$a.set(t,n),Object.defineProperty(t,"shape",{get:()=>{var e={...n};return Object.defineProperty(t,"shape",{value:e}),$a.set(t,e),e}})}const c=Ke(()=>wa(t)),d=(h(l,"propValues",e=>{var t=e.def.shape,n={};for(const i in t){var r=t[i]._zod;if(r.values){Object.prototype.hasOwnProperty.call(n,i)||x(n,i,new Set);for(const a of r.values)n[i].add(a);void 0!==r.optin&&n[i].add(void 0)}}return n}),Qe),f=t.catchall;let m;const p=Ct.memoizer;p?.attach(l),l._zod.parse=(t,e)=>{m=m??c.value;const n=t.value;if(!d(n))return t.issues.push({expected:"object",code:"invalid_type",input:n,inst:l}),t;t.value=p?p.alloc(l,t,{},e):{};var r=[],i=m.shape;for(const o of m.allKeys)if("__proto__"!==o){var a=i[o];const s=a._zod.optin,u=a._zod.optout;a=a._zod.run({value:n[o],issues:[]},e);a instanceof Promise?r.push(a.then(e=>ba(e,t,o,n,s,u))):ba(a,t,o,n,s,u)}return f?ka(r,n,t,e,c.value,l):r.length?Promise.all(r).then(()=>t):t}}),xa=r("$ZodObjectJIT",(v,r)=>{Ia.init(v,r);const i=v._zod.parse,g=Ke(()=>wa(r)),y=Ct.memoizer;let a;const o=Qe,s=!Ct.jitless;const u=s&&et.value,l=r.catchall;let c;v._zod.parse=(e,t)=>{c=c??g.value;var n=e.value;return o(n)?s&&u&&!1===t?.async&&!0!==t.jitless?(e=(a=a||(e=>{var t,n,r,i,a,o,s,u=g.value,l=u.symbolKeys,c=new fi(["payload","ctx"],{shape:e,inst:v,memo:y,syms:l}),d=(e,t)=>`
          for (let i = 0; i < ${e}.issues.length; i++) {
            const iss = ${e}.issues[i];
            iss.path = iss.path ? [${t}, ...iss.path] : [${t}];
            payload.issues.push(iss);
          }`,f=(c.write("const input = payload.value;"),Object.create(null));let m=0;for(const p of u.allKeys)f[p]="key_"+m++;c.write(y?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const h of u.allKeys)"__proto__"!==h&&(t=f[h],r=(n="symbol"==typeof h?`syms[${l.indexOf(h)}]`:Xe(h))+" in input",a=void 0!==(i=(o=e[h])?._zod?.optin),o="optional"===o?._zod?.optout,c.write(`const ${t} = ${s=n,`shape[${s}]._zod.run({ value: input[${s}], issues: [] }, ctx)`};`),a&&o?c.write(`
        const ${t}_present = ${r};
        if (!${t}.issues.length || ${t}_present) {
          if (${t}.issues.length) {${d(t,n)}
          }

          if (${"optional"===i?t+"_present":t+`.value !== undefined || ${t}_present`}) {
            newResult[${n}] = ${t}.value;
          }
        }

      `):a?c.write(`
        if (${t}.issues.length) {${d(t,n)}
        }
        
        if (${t}.value === undefined) {
          if (${r}) {
            newResult[${n}] = undefined;
          }
        } else {
          newResult[${n}] = ${t}.value;
        }

      `):c.write(`
        const ${t}_present = ${r};
        if (${t}.issues.length) {${d(t,n)}
        }
        if (!${t}_present && !${t}.issues.length) {
          payload.issues.push({
            code: "invalid_type",
            expected: "nonoptional",
            input: undefined,
            path: [${n}]
          });
        }

        if (${t}_present) {
          newResult[${n}] = ${t}.value;
        }

      `));return c.write("payload.value = newResult;"),c.write("return payload;"),c.compile()})(r.shape))(e,t),l?ka([],n,e,t,c,v):e):i(e,t):(e.issues.push({expected:"object",code:"invalid_type",input:n,inst:v}),e)}});function Sa(e,t,n,r){for(const a of e)if(0===a.issues.length)return t.value=a.value,t;var i=e.filter(e=>!ct(e));return 1===i.length?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>ht(e,r,g())))}),t)}var Oa=r("$ZodUnion",(o,s)=>{y.init(o,s),h(o,"optin",e=>e.def.options.some(e=>"defaulted"===e._zod.optin)?"defaulted":e.def.options.some(e=>void 0!==e._zod.optin)?"optional":void 0),h(o,"optout",e=>e.def.options.some(e=>"optional"===e._zod.optout)?"optional":void 0),h(o,"values",e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),h(o,"pattern",e=>{if(e.def.options.every(e=>e._zod.pattern))return e=e.def.options.map(e=>e._zod.pattern),new RegExp(`^(${e.map(e=>Je(e.source)).join("|")})$`)});const u=1===s.options.length?s.options[0]._zod.run:null;o._zod.parse=(t,n)=>{if(u)return u(t,n);let e=!1;var r=[];for(const a of s.options){var i=a._zod.run({value:t.value,issues:[]},n);if(i instanceof Promise)r.push(i),e=!0;else{if(0===i.issues.length)return i;r.push(i)}}return e?Promise.all(r).then(e=>Sa(e,t,o,n)):Sa(r,t,o,n)}});function za(t,e,n,r){var i=[];for(let e=0;e<t.length;e++)0===t[e].issues.length&&i.push(e);return 1===i.length?e.value=t[i[0]].value:0===i.length?e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(e=>e.issues.map(e=>ht(e,r,g())))}):e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:[],inclusive:!1,matches:i}),e}var Na=r("$ZodXor",(o,s)=>{Oa.init(o,s),s.inclusive=!1;const u=1===s.options.length?s.options[0]._zod.run:null;o._zod.parse=(t,n)=>{if(u)return u(t,n);let e=!1;var r=[];for(const a of s.options){var i=a._zod.run({value:t.value,issues:[]},n);i instanceof Promise?(r.push(i),e=!0):r.push(i)}return e?Promise.all(r).then(e=>za(e,t,o,n)):za(r,t,o,n)}});function ja(e,t){e=e._zod;let n=e.bag.optionsMap;if(!n){n=new Map;var{options:r,discriminator:i}=e.def;for(const a of r)for(const o of a._zod.propValues?.[i]??[])n.has(o)||n.set(o,a);e.bag.optionsMap=n}return n.get(t)}var Pa=r("$ZodDiscriminatedUnion",(i,a)=>{a.inclusive=!1,Oa.init(i,a);const o=i._zod.parse,s=(h(i,"propValues",e=>{var t={};for(const a of e.def.options){var n,r,i=a._zod.propValues;if(!i||0===Object.keys(i).length)throw new Error(`Invalid discriminated union option at index "${e.def.options.indexOf(a)}"`);for([n,r]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,n)||x(t,n,new Set);for(const o of r)t[n].add(o)}}return t}),a.options.forEach((e,t)=>{e=$a.get(e._zod.def);if(e&&!Object.prototype.hasOwnProperty.call(e,a.discriminator))throw new Error(`Invalid discriminated union option at index "${t}"`)}),Ke(()=>{var e=a.options,t=new Map;for(const r of e){var n=r._zod.propValues?.[a.discriminator];if(!n||0===n.size)throw new Error(`Invalid discriminated union option at index "${a.options.indexOf(r)}"`);for(const i of n){if(t.has(i))throw new Error(`Duplicate discriminator value "${String(i)}"`);t.set(i,r)}}return t}));i._zod.parse=(e,t)=>{var n=e.value;if(Qe(n)){var r=s.value.get(n?.[a.discriminator]);if(r)return r._zod.run(e,t);if(a.unionFallback||"backward"===t.direction)return o(e,t);e.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:a.discriminator,options:Array.from(s.value.keys()),input:n,path:[a.discriminator],inst:i})}else e.issues.push({code:"invalid_type",expected:"object",input:n,inst:i});return e}}),Ua=r("$ZodIntersection",(e,i)=>{y.init(e,i),e._zod.parse=(n,e)=>{var t=n.value,r=i.left._zod.run({value:t,issues:[]},e),t=i.right._zod.run({value:t,issues:[]},e);return r instanceof Promise||t instanceof Promise?Promise.all([r,t]).then(([e,t])=>Aa(n,e,t)):Aa(n,r,t)}});function Da(t,n){if(t===n)return{valid:!0,data:t};if(t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(tt(t)&&tt(n)){const s=Object.keys(n);var e=Object.keys(t).filter(e=>-1!==s.indexOf(e)),r={...t,...n};Object.prototype.hasOwnProperty.call(r,"__proto__")&&delete r.__proto__;for(const u of e)if("__proto__"!==u){var i=Da(t[u],n[u]);if(!i.valid)return{valid:!1,mergeErrorPath:[u,...i.mergeErrorPath]};r[u]=i.data}return{valid:!0,data:r}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};var a=[];for(let e=0;e<t.length;e++){var o=Da(t[e],n[e]);if(!o.valid)return{valid:!1,mergeErrorPath:[e,...o.mergeErrorPath]};a.push(o.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function Aa(e,t,n){const a=new Map;let o;const s=new Map;var r=(e,t)=>{let n;if("unrecognized_keys"!==e.code||e.path?.length){if("invalid_key"!==e.code||"record"!==e.origin||1!==e.path?.length)return!1;var r=String(e.path[0]);s.has(r)||s.set(r,e),n=[r]}else o=o??e,n=e.keys;for(const i of n)a.has(i)||a.set(i,{}),a.get(i)[t]=!0;return!0};for(const l of t.issues)r(l,"l")||e.issues.push(l);for(const c of n.issues)r(c,"r")||e.issues.push(c);var i=[...a].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(i.length){var u=o?i.filter(e=>o.keys.includes(e)):[];u.length&&e.issues.push({...o,keys:u});for(const d of i)!u.includes(d)&&s.has(d)&&e.issues.push(s.get(d))}i=Da(t.value,n.value);if(i.valid)return e.value=i.data,e;if(ct(e))return e;throw new Error("Unmergable intersection. Error path: "+JSON.stringify(i.mergeErrorPath))}var Ea=r("$ZodTuple",(c,d)=>{y.init(c,d);const f=d.items,m=Ct.memoizer;m?.attach(c),c._zod.parse=(n,e)=>{const r=n.value;if(!Array.isArray(r))return n.issues.push({input:r,inst:c,expected:"tuple",code:"invalid_type"}),n;n.value=m?m.alloc(c,n,[],e):[];var i=[],t=Ta(f,"optin");const a=Ta(f,"optout");if(!d.rest){if(r.length<t)return n.issues.push({code:"too_small",minimum:t,inclusive:!0,input:r,inst:c,origin:"array"}),n;r.length>f.length&&n.issues.push({code:"too_big",maximum:f.length,inclusive:!0,input:r,inst:c,origin:"array"})}const o=new Array(f.length);for(let t=0;t<f.length;t++){var s=f[t]._zod.run({value:r[t],issues:[]},e);s instanceof Promise?i.push(s.then(e=>{o[t]=e})):o[t]=s}if(d.rest){let t=f.length-1;for(const l of r.slice(f.length)){t++;var u=d.rest._zod.run({value:l,issues:[]},e);u instanceof Promise?i.push(u.then(e=>La(e,n,t))):La(u,n,t)}}return i.length?Promise.all(i).then(()=>Ca(o,n,f,r,a)):Ca(o,n,f,r,a)}});function Ta(t,n){for(let e=t.length-1;0<=e;e--)if(!("optin"===n?void 0!==t[e]._zod.optin:"optional"===t[e]._zod.optout))return e+1;return 0}function La(e,t,n){e.issues.length&&t.issues.push(...ft(n,e.issues)),t.value[n]=e.value}function Ca(t,n,r,i,a){for(let e=0;e<r.length;e++){var o=t[e],s=e<i.length;if(!s&&e>=a&&"optional"===r[e]._zod.optin){n.value.length=e;break}if(o.issues.length){if(!s&&e>=a){n.value.length=e;break}n.issues.push(...ft(e,o.issues))}n.value[e]=o.value}for(let e=n.value.length-1;e>=i.length&&("optional"===r[e]._zod.optout&&void 0===n.value[e]);e--)n.value.length=e;return n}var Za=r("$ZodRecord",(p,h)=>{y.init(p,h);const v=Ct.memoizer;v?.attach(p),p._zod.parse=(n,r)=>{var i=n.value;if(!tt(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:p}),n;var a=[],o=h.keyType._zod.values;if(o&&!h.partial){n.value=v?v.alloc(p,n,{},r):{};var t=new Set;for(const l of o)if(("string"==typeof l||"number"==typeof l||"symbol"==typeof l)&&(t.add("number"==typeof l?l.toString():l),"__proto__"!==l)){var s=h.keyType._zod.run({value:l,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length)n.issues.push({code:"invalid_key",origin:"record",issues:s.issues.map(e=>ht(e,r,g())),input:l,path:[l],inst:p});else{const c=s.value;"__proto__"!==c&&((s=h.valueType._zod.run({value:i[l],issues:[]},r))instanceof Promise?a.push(s.then(e=>{e.issues.length&&n.issues.push(...ft(l,e.issues)),n.value[c]=e.value})):(s.issues.length&&n.issues.push(...ft(l,s.issues)),n.value[c]=s.value))}}let e;for(const d in i)t.has(d)||("loose"===h.mode?"__proto__"!==d&&(n.value[d]=i[d]):(e=e??[]).push(d));e&&0<e.length&&n.issues.push({code:"unrecognized_keys",input:i,inst:p,keys:e,continue:!0})}else{n.value=v?v.alloc(p,n,{},r):{};let t;for(const f of Reflect.ownKeys(i))if("__proto__"!==f&&Object.prototype.propertyIsEnumerable.call(i,f)){let e=h.keyType._zod.run({value:f,issues:[]},r);if(e instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if("string"==typeof f&&gr.test(f)&&e.issues.length){var u=h.keyType._zod.run({value:Number(f),issues:[]},r);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");0===u.issues.length&&(e=u)}if(e.issues.length)"loose"===h.mode?n.value[f]=i[f]:o?(t=t??[]).push(f):n.issues.push({code:"invalid_key",origin:"record",issues:e.issues.map(e=>ht(e,r,g())),input:f,path:[f],inst:p});else{const m=e.value;"__proto__"!==m&&((u=h.valueType._zod.run({value:i[f],issues:[]},r))instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...ft(f,e.issues)),n.value[m]=e.value})):(u.issues.length&&n.issues.push(...ft(f,u.issues)),n.value[m]=u.value))}}t&&0<t.length&&n.issues.push({code:"unrecognized_keys",input:i,inst:p,keys:t,continue:!0})}return a.length?Promise.all(a).then(()=>n):n}}),Ra=r("$ZodMap",(u,l)=>{y.init(u,l);const c=Ct.memoizer;c?.attach(u),u._zod.parse=(n,r)=>{const i=n.value;if(!(i instanceof Map))return n.issues.push({expected:"map",code:"invalid_type",input:i,inst:u}),n;var e=[];n.value=c?c.alloc(u,n,new Map,r):new Map;for(const[o,s]of i){var t=l.keyType._zod.run({value:o,issues:[]},r),a=l.valueType._zod.run({value:s,issues:[]},r);t instanceof Promise||a instanceof Promise?e.push(Promise.all([t,a]).then(([e,t])=>{Ma(e,t,n,o,i,u,r)})):Ma(t,a,n,o,i,u,r)}return e.length?Promise.all(e).then(()=>n):n}});function Ma(e,t,n,r,i,a,o){e.issues.length&&(it.has(typeof r)?n.issues.push(...ft(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:i,inst:a,issues:e.issues.map(e=>ht(e,o,g()))})),t.issues.length&&(it.has(typeof r)?n.issues.push(...ft(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:i,inst:a,key:r,issues:t.issues.map(e=>ht(e,o,g()))})),n.value.set(e.value,t.value)}var Fa=r("$ZodSet",(o,s)=>{y.init(o,s);const u=Ct.memoizer;u?.attach(o),o._zod.parse=(t,e)=>{var n=t.value;if(!(n instanceof Set))return t.issues.push({input:n,inst:o,expected:"set",code:"invalid_type"}),t;var r=[];t.value=u?u.alloc(o,t,new Set,e):new Set;for(const a of n){var i=s.valueType._zod.run({value:a,issues:[]},e);i instanceof Promise?r.push(i.then(e=>Ka(e,t))):Ka(i,t)}return r.length?Promise.all(r).then(()=>t):t}});function Ka(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Va=r("$ZodEnum",(r,e)=>{y.init(r,e);const i=Me(e.entries),a=new Set(i);r._zod.values=a;e=i.filter(e=>it.has(typeof e));r._zod.pattern=new RegExp(e.length?`^(${e.map(e=>ot(e.toString())).join("|")})$`:"^[^\\s\\S]$"),r._zod.parse=(e,t)=>{var n=e.value;return a.has(n)||e.issues.push({code:"invalid_value",values:i,input:n,inst:r}),e}}),Ja=r("$ZodLiteral",(r,i)=>{y.init(r,i);const a=new Set(i.values);r._zod.values=a,r._zod.pattern=new RegExp(i.values.length?`^(${i.values.map(e=>"string"==typeof e?ot(e):e?ot(e.toString()):String(e)).join("|")})$`:"^[^\\s\\S]$"),r._zod.parse=(e,t)=>{var n=e.value;return a.has(n)||e.issues.push({code:"invalid_value",values:i.values,input:n,inst:r}),e}}),Ba=r("$ZodFile",(r,e)=>{y.init(r,e),r._zod.parse=(e,t)=>{var n=e.value;return n instanceof File||e.issues.push({expected:"file",code:"invalid_type",input:n,inst:r}),e}}),qa=r("$ZodTransform",(r,i)=>{y.init(r,i),r._zod.optin="optional",Ct.memoizer?.guard(r),r._zod.parse=(t,e)=>{if("backward"===e.direction)throw new Lt(r.constructor.name);var n=i.transform(t.value,t);if(e.async)return(n instanceof Promise?n:Promise.resolve(n)).then(e=>(t.value=e,t));if(n instanceof Promise)throw new Tt;return t.value=n,t}});function Wa(e,t){return e.value=t.issues.length?void 0:t.value,e}var Ga=r("$ZodOptional",(e,r)=>{y.init(e,r),h(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),e._zod.optout="optional",h(e,"values",e=>{e=e.def.innerType._zod.values;return e?new Set([...e,void 0]):void 0}),h(e,"pattern",e=>{e=e.def.innerType._zod.pattern;return e?new RegExp(`^(${Je(e.source)})?$`):void 0}),e._zod.parse=(t,e)=>{var n;return void 0===t.value?"defaulted"!==r.innerType._zod.optin?t:(n=r.innerType._zod.run({value:t.value,issues:[]},e))instanceof Promise?n.then(e=>Wa(t,e)):Wa(t,n):r.innerType._zod.run(t,e)}}),Xa=r("$ZodExactOptional",(e,n)=>{Ga.init(e,n),h(e,"values",e=>e.def.innerType._zod.values),h(e,"pattern",e=>e.def.innerType._zod.pattern),e._zod.parse=(e,t)=>n.innerType._zod.run(e,t)}),Ya=r("$ZodNullable",(e,n)=>{y.init(e,n),h(e,"optin",e=>e.def.innerType._zod.optin),h(e,"optout",e=>e.def.innerType._zod.optout),h(e,"pattern",e=>{e=e.def.innerType._zod.pattern;return e?new RegExp(`^(${Je(e.source)}|null)$`):void 0}),h(e,"values",e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,t)=>null===e.value?e:n.innerType._zod.run(e,t)}),Ha=r("$ZodDefault",(e,n)=>{y.init(e,n),e._zod.optin="defaulted",h(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,t)=>{return"backward"===t.direction?n.innerType._zod.run(e,t):void 0===e.value?(e.value=n.defaultValue,e):(e=n.innerType._zod.run(e,t))instanceof Promise?e.then(e=>Qa(e,n)):Qa(e,n)}});function Qa(e,t){return void 0===e.value&&(e.value=t.defaultValue),e}var eo=r("$ZodPrefault",(e,n)=>{y.init(e,n),e._zod.optin="defaulted",h(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(e,t)=>("backward"!==t.direction&&void 0===e.value&&(e.value=n.defaultValue),n.innerType._zod.run(e,t))}),to=r("$ZodNonOptional",(n,r)=>{y.init(n,r),h(n,"values",e=>{e=e.def.innerType._zod.values;return e?new Set([...e].filter(e=>void 0!==e)):void 0}),n._zod.parse=(e,t)=>{e=r.innerType._zod.run(e,t);return e instanceof Promise?e.then(e=>no(e,n)):no(e,n)}});function no(e,t){return e.issues.length||void 0!==e.value||e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var ro=r("$ZodSuccess",(e,n)=>{y.init(e,n),e._zod.parse=(t,e)=>{if("backward"===e.direction)throw new Lt("ZodSuccess");e=n.innerType._zod.run(t,e);return e instanceof Promise?e.then(e=>(t.value=0===e.issues.length,t)):(t.value=0===e.issues.length,t)}});function io(e,t,n,r){return t.issues.length?e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>ht(e,r,g()))},input:e.value}):(e.value=t.value,t.memo&&(e.memo=!0)),e}var ao=r("$ZodCatch",(e,r)=>{y.init(e,r),h(e,"optin",e=>"defaulted"===e.def.innerType._zod.optin?"defaulted":"optional"),h(e,"optout",e=>e.def.innerType._zod.optout),h(e,"values",e=>e.def.innerType._zod.values),e._zod.parse=(t,n)=>{var e;return"backward"===n.direction?r.innerType._zod.run(t,n):(e=r.innerType._zod.run({value:t.value,issues:[]},n))instanceof Promise?e.then(e=>io(t,e,r,n)):io(t,e,r,n)}}),oo=r("$ZodNaN",(n,e)=>{y.init(n,e),n._zod.parse=(e,t)=>("number"==typeof e.value&&Number.isNaN(e.value)||e.issues.push({input:e.value,inst:n,expected:"nan",code:"invalid_type"}),e)}),so=r("$ZodPipe",(e,r)=>{y.init(e,r),h(e,"values",e=>e.def.in._zod.values),h(e,"optin",e=>e.def.in._zod.optin),h(e,"optout",e=>e.def.out._zod.optout),h(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,t)=>{var n;return"backward"===t.direction?(n=r.out._zod.run(e,t))instanceof Promise?n.then(e=>uo(e,r.in,t)):uo(n,r.in,t):(n=r.in._zod.run(e,t))instanceof Promise?n.then(e=>uo(e,r.out,t)):uo(n,r.out,t)}});function uo(e,t,n){return e.issues.some(e=>"unrecognized_keys"!==e.code)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var lo=r("$ZodCodec",(e,r)=>{y.init(e,r),h(e,"values",e=>e.def.in._zod.values),h(e,"optin",e=>e.def.in._zod.optin),h(e,"optout",e=>e.def.out._zod.optout),h(e,"propValues",e=>e.def.in._zod.propValues),e._zod.parse=(e,t)=>{var n;return"forward"===(t.direction||"forward")?(n=r.in._zod.run(e,t))instanceof Promise?n.then(e=>co(e,r,t)):co(n,r,t):(n=r.out._zod.run(e,t))instanceof Promise?n.then(e=>co(e,r,t)):co(n,r,t)}});function co(t,n,r){var e;return t.issues.length?(t.aborted=!0,t):"forward"===(r.direction||"forward")?(e=n.transform(t.value,t))instanceof Promise?e.then(e=>fo(t,e,n.out,r)):fo(t,e,n.out,r):(e=n.reverseTransform(t.value,t))instanceof Promise?e.then(e=>fo(t,e,n.in,r)):fo(t,e,n.in,r)}function fo(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var mo=r("$ZodPreprocess",(e,t)=>{so.init(e,t)}),po=r("$ZodReadonly",(e,n)=>{y.init(e,n),h(e,"propValues",e=>e.def.innerType._zod.propValues),h(e,"values",e=>e.def.innerType._zod.values),h(e,"optin",e=>e.def.innerType?._zod?.optin),h(e,"optout",e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,t)=>{return"backward"===t.direction?n.innerType._zod.run(e,t):(e=n.innerType._zod.run(e,t))instanceof Promise?e.then(ho):ho(e)}});function ho(e){return e.memo||(e.value=Object.freeze(e.value)),e}var vo=r("$ZodTemplateLiteral",(n,r)=>{y.init(n,r);var e=[];for(const o of r.parts)if("object"==typeof o&&null!==o){if(!o._zod.pattern)throw new Error("Invalid template literal part, no pattern found: "+[...o._zod.traits].shift());var t=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!t)throw new Error("Invalid template literal part: "+o._zod.traits);var i=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;e.push(t.slice(i,a))}else{if(null!==o&&!at.has(typeof o))throw new Error("Invalid template literal part: "+o);e.push(ot(""+o))}n._zod.pattern=new RegExp(`^${e.join("")}$`),n._zod.parse=(e,t)=>("string"!=typeof e.value?e.issues.push({input:e.value,inst:n,expected:"string",code:"invalid_type"}):(n._zod.pattern.lastIndex=0,n._zod.pattern.test(e.value)||e.issues.push({input:e.value,inst:n,code:"invalid_format",format:r.format??"template_literal",pattern:n._zod.pattern.source})),e)}),go=r("$ZodFunction",(r,e)=>(y.init(r,e),Object.defineProperty(r,"_def",{value:e}),r._zod.def=e,r.implement=t=>{if("function"!=typeof t)throw new Error("implement() must be called with a function");return Object.defineProperty(function(...e){e=r._def.input?Qt(r._def.input,e):e,e=Reflect.apply(t,this,e);return r._def.output?Qt(r._def.output,e):e},"_zod",{value:r._zod,enumerable:!1})},r.implementAsync=t=>{if("function"!=typeof t)throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...e){e=r._def.input?await tn(r._def.input,e):e,e=await Reflect.apply(t,this,e);return r._def.output?tn(r._def.output,e):e},"_zod",{value:r._zod,enumerable:!1})},r._zod.parse=(e,t)=>{var n;return"function"!=typeof e.value?e.issues.push({code:"invalid_type",expected:"function",input:e.value,inst:r}):(n=r._def.output&&"promise"===r._def.output._zod.def.type,e.value=n?r.implementAsync(e.value):r.implement(e.value)),e},r.input=(...e)=>{var t=r.constructor;return Array.isArray(e[0])?new t({type:"function",input:new Ea({type:"tuple",items:e[0],rest:e[1]}),output:r._def.output}):new t({type:"function",input:e[0],output:r._def.output})},r.output=e=>{return new r.constructor({type:"function",input:r._def.input,output:e})},r)),yo=r("$ZodPromise",(e,n)=>{y.init(e,n),e._zod.parse=(e,t)=>Promise.resolve(e.value).then(e=>n.innerType._zod.run({value:e,issues:[]},t))}),bo=r("$ZodLazy",(n,t)=>{y.init(n,t),We(n._zod,"innerType",()=>{var e=t;return e._cachedInner||(e._cachedInner=t.getter()),e._cachedInner}),h(n,"pattern",e=>e.innerType?._zod?.pattern),h(n,"propValues",e=>e.innerType?._zod?.propValues),h(n,"optin",e=>e.innerType?._zod?.optin??void 0),h(n,"optout",e=>e.innerType?._zod?.optout??void 0),n._zod.parse=(e,t)=>{return n._zod.innerType._zod.run(e,t)}}),_o=r("$ZodCustom",(r,i)=>{u.init(r,i),y.init(r,i),r._zod.parse=(e,t)=>e,r._zod.check=t=>{const n=t.value;var e=i.fn(n);if(e instanceof Promise)return e.then(e=>wo(e,t,n,r));wo(e,t,n,r)}});function wo(e,t,n,r){e||(e={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort},r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(_t(e)))}var ko=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},$o="~memo",Io=[];function xo(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var So,Oo=new WeakMap;function zo(e,t){var n=Oo.get(e);if(void 0!==n)return n;if(t.has(e))return!0;t.add(e);let r=!1;var i=e=>{!r&&e?._zod&&zo(e,t)&&(r=!0)},a=e._zod.def;if("lazy"===a.type)i(e._zod.innerType);else{var o=a.shape;if(o)for(const u of Reflect.ownKeys(o))i(o[u]);for(const l in a){var s=a[l];if(s&&"object"==typeof s)if(s._zod)i(s);else if(Array.isArray(s))for(const c of s)i(c)}}return t.delete(e),Oo.set(e,r),r}function No(e){return zo(e,new Set)}var jo=[],Po={alloc(e,t,n){var r=So;return r&&(So=void 0,r.set(t.value,r={value:n,issues:null}),jo.push(r)),n},guard(t){var e;(e=t._zod).deferred??(e.deferred=[]),t._zod.deferred.push(()=>{const n=t._zod.parse;var e=(e,t)=>{if("backward"!==t.direction&&Do(t,e.value))throw new ko;return n(e,t)};t._zod.parse=e,t._zod.run===n&&(t._zod.run=e)})},attach(u){var e;let l,c,d;(e=u._zod).deferred??(e.deferred=[]),u._zod.deferred.push(()=>{const o=u._zod.parse,s=(e,t)=>{if(void 0===l&&!(l=zo(u,new Set)))return u._zod.parse=o,u._zod.run===s&&(u._zod.run=o),o(e,t);var n=e.value;if(null===n||"object"!=typeof n)return o(e,t);let r=t[$o];r||(r={buckets:new Map,backEdges:void 0},t[$o]=r);let i;c===t?i=d:(i=function(e,t){let n=e.buckets.get(t);return n||(n=new Map,e.buckets.set(t,n)),n}(r,u),c=t,d=i);n=i.get(n);if(n)return e.value=n.value,n.issues?n.issues.length&&e.issues.push(...xo(n.issues)):(e.memo=!0,r.backEdges??(r.backEdges=new Set),r.backEdges.add(n.value)),e;So=i;n=jo.length,e=o(e,t);So=void 0;const a=n<jo.length?jo.pop():void 0;return e instanceof Promise?e.then(e=>(a&&(a.issues=e.issues.length?xo(e.issues):Io),e)):(a&&(a.issues=e.issues.length?xo(e.issues):Io),e)};u._zod.parse=s,u._zod.run===o&&(u._zod.run=s)})}};function Uo(){return Po}function Do(e,t){e=e[$o]?.backEdges;return void 0!==e&&null!==t&&"object"==typeof t&&e.has(t)}var Ao={},Eo=(e(Ao,{ar:()=>function(){return{localeError:Eo()}},az:()=>function(){return{localeError:To()}},be:()=>function(){return{localeError:Co()}},bg:()=>function(){return{localeError:Zo()}},bn:()=>function(){return{localeError:Ro()}},ca:()=>function(){return{localeError:Mo()}},ckb:()=>function(){return{localeError:Fo()}},cs:()=>function(){return{localeError:Ko()}},da:()=>function(){return{localeError:Vo()}},de:()=>function(){return{localeError:Jo()}},el:()=>function(){return{localeError:Bo()}},en:()=>Wo,eo:()=>function(){return{localeError:Go()}},es:()=>function(){return{localeError:Xo()}},fa:()=>function(){return{localeError:Yo()}},fi:()=>function(){return{localeError:Ho()}},fr:()=>function(){return{localeError:Qo()}},frCA:()=>function(){return{localeError:es()}},gu:()=>function(){return{localeError:ts()}},he:()=>function(){return{localeError:ns()}},hi:()=>function(){return{localeError:rs()}},hr:()=>function(){return{localeError:is()}},hu:()=>function(){return{localeError:as()}},hy:()=>function(){return{localeError:us()}},id:()=>function(){return{localeError:ls()}},is:()=>function(){return{localeError:cs()}},it:()=>function(){return{localeError:ds()}},ja:()=>function(){return{localeError:fs()}},ka:()=>function(){return{localeError:ms()}},kh:()=>hs,km:()=>hs,kn:()=>function(){return{localeError:vs()}},ko:()=>function(){return{localeError:gs()}},lt:()=>function(){return{localeError:_s()}},mk:()=>function(){return{localeError:ws()}},ms:()=>function(){return{localeError:ks()}},ne:()=>function(){return{localeError:$s()}},nl:()=>function(){return{localeError:Is()}},nn:()=>function(){return{localeError:xs()}},no:()=>function(){return{localeError:Ss()}},ota:()=>function(){return{localeError:Os()}},pl:()=>function(){return{localeError:Ns()}},ps:()=>function(){return{localeError:zs()}},pt:()=>function(){return{localeError:js()}},ptBR:()=>function(){return{localeError:Ps()}},ro:()=>function(){return{localeError:Us()}},ru:()=>function(){return{localeError:As()}},sk:()=>function(){return{localeError:Es()}},sl:()=>function(){return{localeError:Ts()}},sv:()=>function(){return{localeError:Ls()}},ta:()=>function(){return{localeError:Cs()}},th:()=>function(){return{localeError:Zs()}},tk:()=>function(){return{localeError:Rs()}},tr:()=>function(){return{localeError:Ms()}},ua:()=>Ks,uk:()=>Ks,ur:()=>function(){return{localeError:Vs()}},uz:()=>function(){return{localeError:Js()}},vi:()=>function(){return{localeError:Bs()}},yo:()=>function(){return{localeError:Gs()}},zhCN:()=>function(){return{localeError:qs()}},zhTW:()=>function(){return{localeError:Ws()}}}),()=>{const t={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"},map:{unit:"عنصر",verb:"أن يحوي"}};function r(e){return t[e]??null}const i={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",mac:"عنوان MAC",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",credit_card:"رقم بطاقة الائتمان",jwt:"JWT",template_literal:"مدخل"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال `+n:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال `+n;case"invalid_value":return 1===e.values.length?"مدخلات غير مقبولة: يفترض إدخال "+m(e.values[0]):"اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?` أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${t} ${e.maximum.toString()} `+(n.unit??"عنصر"):`أكبر من اللازم: يفترض أن تكون ${e.origin??"القيمة"} ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} `+t.unit:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:"ends_with"===t.format?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:"includes"===t.format?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:"regex"===t.format?"نَص غير مقبول: يجب أن يطابق النمط "+t.pattern:(i[t.format]??e.format)+" غير مقبول";case"not_multiple_of":return"رقم غير مقبول: يجب أن يكون من مضاعفات "+e.divisor;case"unrecognized_keys":return`معرف${1<e.keys.length?"ات":""} غريب${1<e.keys.length?"ة":""}: `+f(e.keys,"، ");case"invalid_key":return"معرف غير مقبول في "+e.origin;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return"مدخل غير مقبول في "+e.origin;default:return"مدخل غير مقبول"}}});var To=()=>{const t={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"},map:{unit:"element",verb:"olmalıdır"}};function r(e){return t[e]??null}const 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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"kredit kartı nömrəsi",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan `+n:`Yanlış dəyər: gözlənilən ${t}, daxil olan `+n;case"invalid_value":return 1===e.values.length?"Yanlış dəyər: gözlənilən "+m(e.values[0]):"Yanlış seçim: aşağıdakılardan biri olmalıdır: "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Çox böyük: gözlənilən ${e.origin??"dəyər"} ${t}${e.maximum.toString()} `+(n.unit??"element"):`Çox böyük: gözlənilən ${e.origin??"dəyər"} `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} `+t.unit:`Çox kiçik: gözlənilən ${e.origin} `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:"ends_with"===t.format?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:"includes"===t.format?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:"regex"===t.format?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:"Yanlış "+(i[t.format]??e.format);case"not_multiple_of":return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${1<e.keys.length?"lar":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" daxilində yanlış açar";case"invalid_union":return"Yanlış dəyər";case"invalid_element":return e.origin+" daxilində yanlış dəyər";default:return"Yanlış dəyər"}}};function Lo(e,t,n,r){var e=Math.abs(e),i=e%10,e=e%100;return 11<=e&&e<=19?r:1==i?t:2<=i&&i<=4?n:r}var Co=()=>{const t={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},map:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function i(e){return t[e]??null}const a={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",mac:"MAC адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",credit_card:"нумар крэдытнай карты",jwt:"JWT",template_literal:"увод"},o={nan:"NaN",number:"лік",array:"масіў"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,n=p(e.input),n=o[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана `+n:`Няправільны ўвод: чакаўся ${t}, атрымана `+n;case"invalid_value":return 1===e.values.length?"Няправільны ўвод: чакалася "+m(e.values[0]):"Няправільны варыянт: чакаўся адзін з "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=i(e.origin);return n?(r=Lo(Number(e.maximum),n.unit.one,n.unit.few,n.unit.many),`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна ${n.verb} ${t}${e.maximum.toString()} `+r):`Занадта вялікі: чакалася, што ${e.origin??"значэнне"} павінна быць `+t+e.maximum.toString();case"too_small":var n=e.inclusive?">=":">",r=i(e.origin);return r?(t=Lo(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many),`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} `+t):`Занадта малы: чакалася, што ${e.origin} павінна быць `+n+e.minimum.toString();case"invalid_format":r=e;return"starts_with"===r.format?`Няправільны радок: павінен пачынацца з "${r.prefix}"`:"ends_with"===r.format?`Няправільны радок: павінен заканчвацца на "${r.suffix}"`:"includes"===r.format?`Няправільны радок: павінен змяшчаць "${r.includes}"`:"regex"===r.format?"Няправільны радок: павінен адпавядаць шаблону "+r.pattern:"Няправільны "+(a[r.format]??e.format);case"not_multiple_of":return"Няправільны лік: павінен быць кратным "+e.divisor;case"unrecognized_keys":return`Нераспазнаны ${1<e.keys.length?"ключы":"ключ"}: `+f(e.keys,", ");case"invalid_key":return"Няправільны ключ у "+e.origin;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return"Няправільнае значэнне ў "+e.origin;default:return"Няправільны ўвод"}}};var Zo=()=>{const t={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"},map:{unit:"елемента",verb:"да съдържа"}};function r(e){return t[e]??null}const i={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",credit_card:"номер на кредитна карта",jwt:"JWT",template_literal:"вход"},a={nan:"NaN",number:"число",array:"масив"};return t=>{switch(t.code){case"invalid_type":var n=a[t.expected]??t.expected,e=p(t.input),e=a[e]??e;return/^[A-Z]/.test(t.expected)?`Невалиден вход: очакван instanceof ${t.expected}, получен `+e:`Невалиден вход: очакван ${n}, получен `+e;case"invalid_value":return 1===t.values.length?"Невалиден вход: очакван "+m(t.values[0]):"Невалидна опция: очаквано едно от "+f(t.values,"|");case"too_big":n=t.inclusive?"<=":"<",e=r(t.origin);return e?`Твърде голямо: очаква се ${t.origin??"стойност"} да съдържа ${n}${t.maximum.toString()} `+(e.unit??"елемента"):`Твърде голямо: очаква се ${t.origin??"стойност"} да бъде `+n+t.maximum.toString();case"too_small":e=t.inclusive?">=":">",n=r(t.origin);return n?`Твърде малко: очаква се ${t.origin} да съдържа ${e}${t.minimum.toString()} `+n.unit:`Твърде малко: очаква се ${t.origin} да бъде `+e+t.minimum.toString();case"invalid_format":{n=t;if("starts_with"===n.format)return`Невалиден низ: трябва да започва с "${n.prefix}"`;if("ends_with"===n.format)return`Невалиден низ: трябва да завършва с "${n.suffix}"`;if("includes"===n.format)return`Невалиден низ: трябва да включва "${n.includes}"`;if("regex"===n.format)return"Невалиден низ: трябва да съвпада с "+n.pattern;let e="Невалиден";return"emoji"===n.format&&(e="Невалидно"),"datetime"===n.format&&(e="Невалидно"),"date"===n.format&&(e="Невалидна"),"time"===n.format&&(e="Невалидно"),(e="duration"===n.format?"Невалидна":e)+" "+(i[n.format]??t.format)}case"not_multiple_of":return"Невалидно число: трябва да бъде кратно на "+t.divisor;case"unrecognized_keys":return`Неразпознат${1<t.keys.length?"и":""} ключ${1<t.keys.length?"ове":""}: `+f(t.keys,", ");case"invalid_key":return"Невалиден ключ в "+t.origin;case"invalid_union":return"Невалиден вход";case"invalid_element":return"Невалидна стойност в "+t.origin;default:return"Невалиден вход"}}};var Ro=()=>{const t={string:{unit:"অক্ষর",verb:"থাকতে হবে"},file:{unit:"বাইট",verb:"থাকতে হবে"},array:{unit:"আইটেম",verb:"থাকতে হবে"},set:{unit:"আইটেম",verb:"থাকতে হবে"},map:{unit:"এন্ট্রি",verb:"থাকতে হবে"}};function r(e){return t[e]??null}const i={regex:"ইনপুট",email:"ইমেইল ঠিকানা",url:"URL",emoji:"ইমোজি",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO তারিখ ও সময়",date:"ISO তারিখ",time:"ISO সময়",duration:"ISO সময়কাল",ipv4:"IPv4 ঠিকানা",ipv6:"IPv6 ঠিকানা",mac:"MAC ঠিকানা",cidrv4:"IPv4 রেঞ্জ",cidrv6:"IPv6 রেঞ্জ",base64:"base64-এনকোডেড স্ট্রিং",base64url:"base64url-এনকোডেড স্ট্রিং",json_string:"JSON স্ট্রিং",e164:"E.164 নম্বর",credit_card:"ক্রেডিট কার্ড নম্বর",jwt:"JWT",template_literal:"ইনপুট"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`অবৈধ ইনপুট: প্রত্যাশিত ${t}, প্রাপ্ত `+(a[n]??n);case"invalid_value":return 1===e.values.length?"অবৈধ ইনপুট: প্রত্যাশিত "+m(e.values[0]):`অবৈধ অপশন: ${f(e.values," | ")} এর মধ্যে একটি প্রত্যাশিত`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`অনেক বড়: ${e.origin??"মান"} ${t}${e.maximum.toString()} ${n.unit??"এলিমেন্ট"} হতে হবে`:`অনেক বড়: ${e.origin??"মান"} ${t}${e.maximum.toString()} হতে হবে`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`অনেক ছোট: ${e.origin} ${n}${e.minimum.toString()} ${t.unit} হতে হবে`:`অনেক ছোট: ${e.origin} ${n}${e.minimum.toString()} হতে হবে`;case"invalid_format":t=e;return"starts_with"===t.format?`অবৈধ স্ট্রিং: "${t.prefix}" দিয়ে শুরু হতে হবে`:"ends_with"===t.format?`অবৈধ স্ট্রিং: "${t.suffix}" দিয়ে শেষ হতে হবে`:"includes"===t.format?`অবৈধ স্ট্রিং: "${t.includes}" অন্তর্ভুক্ত থাকতে হবে`:"regex"===t.format?`অবৈধ স্ট্রিং: ${t.pattern} প্যাটার্ন মিলতে হবে`:"অবৈধ "+(i[t.format]??e.format);case"not_multiple_of":return`অবৈধ নম্বর: ${e.divisor} এর গুণিতক হতে হবে`;case"unrecognized_keys":return`অচেনা কী${1<e.keys.length?"গুলো":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" এ অবৈধ কী";case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"অবৈধ ডিসক্রিমিনেটর মান। প্রত্যাশিত "+e.options.map(e=>`'${e}'`).join(" | "):"অবৈধ ইনপুট";case"invalid_element":return e.origin+" এ অবৈধ মান";default:return"অবৈধ ইনপুট"}}};var Mo=()=>{const t={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"},map:{unit:"elements",verb:"contenir"}};function r(e){return t[e]??null}const i={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",mac:"adreça MAC",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de targeta de crèdit",jwt:"JWT",template_literal:"entrada"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut `+n:`Tipus invàlid: s'esperava ${t}, s'ha rebut `+n;case"invalid_value":return 1===e.values.length?"Valor invàlid: s'esperava "+m(e.values[0]):"Opció invàlida: s'esperava una de "+f(e.values," o ");case"too_big":t=e.inclusive?"com a màxim":"menys de",n=r(e.origin);return n?`Massa gran: s'esperava que ${e.origin??"el valor"} contingués ${t} ${e.maximum.toString()} `+(n.unit??"elements"):`Massa gran: s'esperava que ${e.origin??"el valor"} fos ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?"com a mínim":"més de",t=r(e.origin);return t?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} `+t.unit:`Massa petit: s'esperava que ${e.origin} fos ${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Format invàlid: ha de començar amb "${t.prefix}"`:"ends_with"===t.format?`Format invàlid: ha d'acabar amb "${t.suffix}"`:"includes"===t.format?`Format invàlid: ha d'incloure "${t.includes}"`:"regex"===t.format?"Format invàlid: ha de coincidir amb el patró "+t.pattern:"Format invàlid per a "+(i[t.format]??e.format);case"not_multiple_of":return"Número invàlid: ha de ser múltiple de "+e.divisor;case"unrecognized_keys":return`Clau${1<e.keys.length?"s":""} no reconeguda${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Clau invàlida a "+e.origin;case"invalid_union":return"Entrada invàlida";case"invalid_element":return"Element invàlid a "+e.origin;default:return"Entrada invàlida"}}};var Fo=()=>{const t={string:{unit:"پیت",verb:"بێت"},file:{unit:"بایت",verb:"بێت"},array:{unit:"دانە",verb:"بێت"},set:{unit:"دانە",verb:"بێت"},map:{unit:"دانە",verb:"بێت"}};function o(e){return t[e]??null}const s={regex:"regex",email:"ئیمەیڵ",url:"بەستەر (URL)",emoji:"ئیمۆجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ڕێکەوت و کات",date:"ڕێکەوت",time:"کات",duration:"ماوە",ipv4:"ناونیشانی IPv4",ipv6:"ناونیشانی IPv6",mac:"ناونیشانی MAC",cidrv4:"مەودای IPv4",cidrv6:"مەودای IPv6",base64:"دەقی base64",base64url:"دەقی base64url",json_string:"دەقی JSON",e164:"ژمارەی E.164",credit_card:"ژمارەی کارتی کرێدیت",jwt:"JWT",template_literal:"تێکردە"},u={nan:"NaN",string:"نووسین",number:"ژمارە",boolean:"boolean",array:"array",object:"object",date:"ڕێکەوت",integer:"ژمارە",float:"ژمارە",null:"null",undefined:"undefined",function:"function",symbol:"symbol",unknown:"unknown",promise:"promise",void:"void",never:"never",map:"map",set:"set"};return e=>{switch(e.code){case"invalid_type":{var t=u[e.expected]??e.expected,n=p(e.input);const a=u[n]??n;var r=["ا","و","ۆ","وو","ە","ی","ێ"].some(e=>a.endsWith(e))?"یە":"ە",i=/^[a-zA-Z]+$/.test(a);return"null"===n||"undefined"===n?"داواکراوە":`چاوەڕوانکراوە ${t} بێت، بەڵام `+a+(i?"":r)}case"invalid_value":return 1===e.values.length?`بەهاکە نادرووستە: چاوەڕوانکراوە ${m(e.values[0])} بێت`:"هەڵبژاردەی نادروست: چاوەڕوانکراوە یەکێک بێت لە "+f(e.values,"|");case"too_big":n=o(e.origin);return n?`پێویستە بە لایەنی زۆرەوە ${e.maximum.toString()} ${n.unit} `+n.verb:`پێویستە بە لایەنی زۆرەوە ${e.maximum.toString()} بێت`;case"too_small":t=o(e.origin);return t?`پێویستە بە لایەنی کەمەوە ${e.minimum.toString()} ${t.unit} `+t.verb:`پێویستە بە لایەنی کەمەوە ${e.minimum.toString()} بێت`;case"invalid_format":i=e;return"starts_with"===i.format?`دەقی نادروست: پێویستە دەستپێبکات بە "${i.prefix}"`:"ends_with"===i.format?`دەقی نادروست: پێویستە کۆتاییبێت بە "${i.suffix}"`:"includes"===i.format?`دەقی نادروست: پێویستە "${i.includes}" لەخۆبگرێت`:"regex"===i.format?`دەقی نادروست: پێویستە لەگەڵ پاتێرنی ${i.pattern} بگونجێت`:`بەهای ${s[i.format]??e.format} نادروستە`;case"not_multiple_of":return"ژمارەی نادروست: دەبێت چەند هێندە بێت بۆ "+e.divisor;case"unrecognized_keys":return"کلیلی نەناسراو: "+f(e.keys,", ");case"invalid_key":return"کلیلی نادروست لە "+e.origin;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"بەهای نەناسراو هەیە. بەهای چاوەڕوانکراو: "+e.options.map(e=>`'${e}'`).join(" | "):"یەکگرتنی نادروست";case"invalid_element":return e.origin+" بەهاکە نادروستە";default:return"تێکردەی نادروست"}}};var Ko=()=>{const t={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"},map:{unit:"prvků",verb:"mít"}};function r(e){return t[e]??null}const i={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",credit_card:"číslo kreditní karty",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo `+n:`Neplatný vstup: očekáváno ${t}, obdrženo `+n;case"invalid_value":return 1===e.values.length?"Neplatný vstup: očekáváno "+m(e.values[0]):"Neplatná možnost: očekávána jedna z hodnot "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Hodnota je příliš velká: ${e.origin??"hodnota"} musí mít ${t}${e.maximum.toString()} `+(n.unit??"prvků"):`Hodnota je příliš velká: ${e.origin??"hodnota"} musí být `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Hodnota je příliš malá: ${e.origin??"hodnota"} musí mít ${n}${e.minimum.toString()} `+(t.unit??"prvků"):`Hodnota je příliš malá: ${e.origin??"hodnota"} musí být `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Neplatný řetězec: musí začínat na "${t.prefix}"`:"ends_with"===t.format?`Neplatný řetězec: musí končit na "${t.suffix}"`:"includes"===t.format?`Neplatný řetězec: musí obsahovat "${t.includes}"`:"regex"===t.format?"Neplatný řetězec: musí odpovídat vzoru "+t.pattern:"Neplatný formát "+(i[t.format]??e.format);case"not_multiple_of":return"Neplatné číslo: musí být násobkem "+e.divisor;case"unrecognized_keys":return"Neznámé klíče: "+f(e.keys,", ");case"invalid_key":return"Neplatný klíč v "+e.origin;case"invalid_union":return"Neplatný vstup";case"invalid_element":return"Neplatná hodnota v "+e.origin;default:return"Neplatný vstup"}}};var Vo=()=>{const t={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"},map:{unit:"elementer",verb:"indeholdt"}};function i(e){return t[e]??null}const a={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kreditkortnummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,n=p(e.input),n=o[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik `+n:`Ugyldigt input: forventede ${t}, fik `+n;case"invalid_value":return 1===e.values.length?"Ugyldig værdi: forventede "+m(e.values[0]):"Ugyldigt valg: forventede en af følgende "+f(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",n=i(e.origin),r=o[e.origin]??e.origin;return n?`For stor: forventede ${r??"value"} ${n.verb} ${t} ${e.maximum.toString()} `+(n.unit??"elementer"):`For stor: forventede ${r??"value"} havde ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",r=i(e.origin),t=o[e.origin]??e.origin;return r?`For lille: forventede ${t} ${r.verb} ${n} ${e.minimum.toString()} `+r.unit:`For lille: forventede ${t} havde ${n} `+e.minimum.toString();case"invalid_format":r=e;return"starts_with"===r.format?`Ugyldig streng: skal starte med "${r.prefix}"`:"ends_with"===r.format?`Ugyldig streng: skal ende med "${r.suffix}"`:"includes"===r.format?`Ugyldig streng: skal indeholde "${r.includes}"`:"regex"===r.format?"Ugyldig streng: skal matche mønsteret "+r.pattern:"Ugyldig "+(a[r.format]??e.format);case"not_multiple_of":return"Ugyldigt tal: skal være deleligt med "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Ukendte nøgler":"Ukendt nøgle"}: `+f(e.keys,", ");case"invalid_key":return"Ugyldig nøgle i "+e.origin;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return"Ugyldig værdi i "+e.origin;default:return"Ugyldigt input"}}};var Jo=()=>{const t={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"},map:{unit:"Elemente",verb:"zu haben"}};function r(e){return t[e]??null}const 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",mac:"MAC-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",credit_card:"Kreditkartennummer",jwt:"JWT",template_literal:"Eingabe"},a={nan:"NaN",number:"Zahl",array:"Array"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten `+n:`Ungültige Eingabe: erwartet ${t}, erhalten `+n;case"invalid_value":return 1===e.values.length?"Ungültige Eingabe: erwartet "+m(e.values[0]):"Ungültige Option: erwartet eine von "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Zu groß: erwartet, dass ${e.origin??"Wert"} ${t}${e.maximum.toString()} ${n.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${e.origin??"Wert"} ${t}${e.maximum.toString()} ist`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${t.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`;case"invalid_format":t=e;return"starts_with"===t.format?`Ungültiger String: muss mit "${t.prefix}" beginnen`:"ends_with"===t.format?`Ungültiger String: muss mit "${t.suffix}" enden`:"includes"===t.format?`Ungültiger String: muss "${t.includes}" enthalten`:"regex"===t.format?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:"Ungültig: "+(i[t.format]??e.format);case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case"unrecognized_keys":return`${1<e.keys.length?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: `+f(e.keys,", ");case"invalid_key":return"Ungültiger Schlüssel in "+e.origin;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return"Ungültiger Wert in "+e.origin;default:return"Ungültige Eingabe"}}};var Bo=()=>{const t={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function r(e){return t[e]??null}const i={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",credit_card:"αριθμός πιστωτικής κάρτας",jwt:"JWT",template_literal:"είσοδος"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return"string"==typeof e.expected&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε `+n:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε `+n;case"invalid_value":return 1===e.values.length?"Μη έγκυρη είσοδος: αναμενόταν "+m(e.values[0]):"Μη έγκυρη επιλογή: αναμενόταν ένα από "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Πολύ μεγάλο: αναμενόταν ${e.origin??"τιμή"} να έχει ${t}${e.maximum.toString()} `+(n.unit??"στοιχεία"):`Πολύ μεγάλο: αναμενόταν ${e.origin??"τιμή"} να είναι `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} `+t.unit:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:"ends_with"===t.format?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:"includes"===t.format?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:"regex"===t.format?"Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο "+t.pattern:"Μη έγκυρο: "+(i[t.format]??e.format);case"not_multiple_of":return"Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του "+e.divisor;case"unrecognized_keys":return`Άγνωστ${1<e.keys.length?"α":"ο"} κλειδ${1<e.keys.length?"ιά":"ί"}: `+f(e.keys,", ");case"invalid_key":return"Μη έγκυρο κλειδί στο "+e.origin;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return"Μη έγκυρη τιμή στο "+e.origin;default:return"Μη έγκυρη είσοδος"}}};var qo=()=>{const t={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function r(e){return t[e]??null}const 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",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",credit_card:"credit card number",jwt:"JWT",template_literal:"input"},n={nan:"NaN"};function a(e,t){return"number"!==e||"number"!=typeof t||Number.isFinite(t)?n[e]??e:String(t)}return e=>{switch(e.code){case"invalid_type":return`Invalid input: expected ${a(e.expected)}, received `+a(p(e.input),e.input);case"invalid_value":return 1===e.values.length?"Invalid input: expected "+m(e.values[0]):"Invalid option: expected one of "+f(e.values,"|");case"too_big":var t=e.exact?"exactly ":e.inclusive?"<=":"<",n=r(e.origin);return n?`Too big: expected ${e.origin??"value"} to have ${t}${e.maximum.toString()} `+(n.unit??"elements"):`Too big: expected ${e.origin??"value"} to be `+t+e.maximum.toString();case"too_small":n=e.exact?"exactly ":e.inclusive?">=":">",t=r(e.origin);return t?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} `+t.unit:`Too small: expected ${e.origin} to be `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Invalid string: must start with "${t.prefix}"`:"ends_with"===t.format?`Invalid string: must end with "${t.suffix}"`:"includes"===t.format?`Invalid string: must include "${t.includes}"`:"regex"===t.format?"Invalid string: must match pattern "+t.pattern:"Invalid "+(i[t.format]??e.format);case"not_multiple_of":return"Invalid number: must be a multiple of "+e.divisor;case"unrecognized_keys":return`Unrecognized key${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Invalid key in "+e.origin;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"Invalid discriminator value. Expected "+e.options.map(e=>`'${e}'`).join(" | "):!1===e.inclusive?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return"Invalid value in "+e.origin;default:return"Invalid input"}}};function Wo(){return{localeError:qo()}}var Go=()=>{const t={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"},map:{unit:"elementojn",verb:"havi"}};function r(e){return t[e]??null}const i={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",mac:"MAC-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",credit_card:"kreditkarta numero",jwt:"JWT",template_literal:"enigo"},a={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis `+n:`Nevalida enigo: atendiĝis ${t}, riceviĝis `+n;case"invalid_value":return 1===e.values.length?"Nevalida enigo: atendiĝis "+m(e.values[0]):"Nevalida opcio: atendiĝis unu el "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu ${t}${e.maximum.toString()} `+(n.unit??"elementojn"):`Tro granda: atendiĝis ke ${e.origin??"valoro"} havu `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} `+t.unit:`Tro malgranda: atendiĝis ke ${e.origin} estu `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:"ends_with"===t.format?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:"includes"===t.format?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:"regex"===t.format?"Nevalida karaktraro: devas kongrui kun la modelo "+t.pattern:"Nevalida "+(i[t.format]??e.format);case"not_multiple_of":return"Nevalida nombro: devas esti oblo de "+e.divisor;case"unrecognized_keys":return`Nekonata${1<e.keys.length?"j":""} ŝlosilo${1<e.keys.length?"j":""}: `+f(e.keys,", ");case"invalid_key":return"Nevalida ŝlosilo en "+e.origin;case"invalid_union":return"Nevalida enigo";case"invalid_element":return"Nevalida valoro en "+e.origin;default:return"Nevalida enigo"}}};var Xo=()=>{const t={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function i(e){return t[e]??null}const a={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",mac:"dirección MAC",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",credit_card:"número de tarjeta de crédito",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,n=p(e.input),n=o[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido `+n:`Entrada inválida: se esperaba ${t}, recibido `+n;case"invalid_value":return 1===e.values.length?"Entrada inválida: se esperaba "+m(e.values[0]):"Opción inválida: se esperaba una de "+f(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",n=i(e.origin),r=o[e.origin]??e.origin;return n?`Demasiado grande: se esperaba que ${r??"valor"} tuviera ${t}${e.maximum.toString()} `+(n.unit??"elementos"):`Demasiado grande: se esperaba que ${r??"valor"} fuera `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",r=i(e.origin),t=o[e.origin]??e.origin;return r?`Demasiado pequeño: se esperaba que ${t} tuviera ${n}${e.minimum.toString()} `+r.unit:`Demasiado pequeño: se esperaba que ${t} fuera `+n+e.minimum.toString();case"invalid_format":r=e;return"starts_with"===r.format?`Cadena inválida: debe comenzar con "${r.prefix}"`:"ends_with"===r.format?`Cadena inválida: debe terminar en "${r.suffix}"`:"includes"===r.format?`Cadena inválida: debe incluir "${r.includes}"`:"regex"===r.format?"Cadena inválida: debe coincidir con el patrón "+r.pattern:"Inválido "+(a[r.format]??e.format);case"not_multiple_of":return"Número inválido: debe ser múltiplo de "+e.divisor;case"unrecognized_keys":return`Llave${1<e.keys.length?"s":""} desconocida${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Llave inválida en "+(o[e.origin]??e.origin);case"invalid_union":return"Entrada inválida";case"invalid_element":return"Valor inválido en "+(o[e.origin]??e.origin);default:return"Entrada inválida"}}};var Yo=()=>{const t={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"},map:{unit:"آیتم",verb:"داشته باشد"}};function r(e){return t[e]??null}const i={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",mac:"MAC آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",credit_card:"شماره کارت اعتباری",jwt:"JWT",template_literal:"ورودی"},a={nan:"NaN",number:"عدد",array:"آرایه"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${n} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${n} دریافت شد`;case"invalid_value":return 1===e.values.length?`ورودی نامعتبر: می‌بایست ${m(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${f(e.values,"|")} می‌بود`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`خیلی بزرگ: ${e.origin??"مقدار"} باید ${t}${e.maximum.toString()} ${n.unit??"عنصر"} باشد`:`خیلی بزرگ: ${e.origin??"مقدار"} باید ${t}${e.maximum.toString()} باشد`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${t.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`;case"invalid_format":t=e;return"starts_with"===t.format?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:"ends_with"===t.format?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:"includes"===t.format?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:"regex"===t.format?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:(i[t.format]??e.format)+" نامعتبر";case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case"unrecognized_keys":return`کلید${1<e.keys.length?"های":""} ناشناس: `+f(e.keys,", ");case"invalid_key":return"کلید ناشناس در "+e.origin;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return"مقدار نامعتبر در "+e.origin;default:return"ورودی نامعتبر"}}};var Ho=()=>{const t={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},map:{unit:"alkiota",subject:"kuvauksen"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function r(e){return t[e]??null}const i={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",mac:"MAC-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",credit_card:"luottokortin numero",jwt:"JWT",template_literal:"templaattimerkkijono"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli `+n:`Virheellinen tyyppi: odotettiin ${t}, oli `+n;case"invalid_value":return 1===e.values.length?"Virheellinen syöte: täytyy olla "+m(e.values[0]):"Virheellinen valinta: täytyy olla yksi seuraavista: "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?(`Liian suuri: ${n.subject} täytyy olla ${t}${e.maximum.toString()} `+n.unit).trim():"Liian suuri: arvon täytyy olla "+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?(`Liian pieni: ${t.subject} täytyy olla ${n}${e.minimum.toString()} `+t.unit).trim():"Liian pieni: arvon täytyy olla "+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:"ends_with"===t.format?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:"includes"===t.format?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:"regex"===t.format?"Virheellinen syöte: täytyy vastata säännöllistä lauseketta "+t.pattern:"Virheellinen "+(i[t.format]??e.format);case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case"unrecognized_keys":return`${1<e.keys.length?"Tuntemattomat avaimet":"Tuntematon avain"}: `+f(e.keys,", ");case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};var Qo=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function r(e){return t[e]??null}const i={regex:"expression régulière",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne de caractères encodée en base64",base64url:"chaîne de caractères encodée en base64url",json_string:"chaîne de caractères JSON",e164:"numéro au format E.164",credit_card:"numéro de carte de crédit",jwt:"JWT",template_literal:"entrée"},a={string:"chaîne de caractères",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"record",map:"map",set:"ensemble",file:"fichier",nonoptional:"non optionnel",nan:"NaN",function:"fonction"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instance de ${e.expected} attendu, ${n} reçu`:`Entrée invalide : ${t} attendu, ${n} reçu`;case"invalid_value":return 1===e.values.length?`Entrée invalide : ${m(e.values[0])} attendu`:`Option invalide : une valeur parmi ${f(e.values,"|")} attendue`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Trop grand : ${a[e.origin]??"valeur"} doit ${n.verb} ${t}${e.maximum.toString()} `+(n.unit??"élément(s)"):`Trop grand : ${a[e.origin]??"valeur"} doit être `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Trop petit : ${a[e.origin]??"valeur"} doit ${t.verb} ${n}${e.minimum.toString()} `+t.unit:`Trop petit : ${a[e.origin]??"valeur"} doit être `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Chaîne de caractères invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne de caractères invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne de caractères invalide : doit inclure "${t.includes}"`:"regex"===t.format?"Chaîne de caractères invalide : doit correspondre au motif "+t.pattern:`${i[t.format]??e.format} invalide`;case"not_multiple_of":return"Nombre invalide : doit être un multiple de "+e.divisor;case"unrecognized_keys":return`Clé${1<e.keys.length?"s":""} non reconnue${1<e.keys.length?"s":""} : `+f(e.keys,", ");case"invalid_key":return"Clé invalide dans "+e.origin;case"invalid_union":return"Entrée invalide";case"invalid_element":return"Valeur invalide dans "+e.origin;default:return"Entrée invalide"}}};var es=()=>{const t={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"},map:{unit:"éléments",verb:"avoir"}};function r(e){return t[e]??null}const i={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",mac:"adresse MAC",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",credit_card:"numéro de carte de crédit",jwt:"JWT",template_literal:"entrée"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu `+n:`Entrée invalide : attendu ${t}, reçu `+n;case"invalid_value":return 1===e.values.length?"Entrée invalide : attendu "+m(e.values[0]):"Option invalide : attendu l'une des valeurs suivantes "+f(e.values,"|");case"too_big":t=e.inclusive?"≤":"<",n=r(e.origin);return n?`Trop grand : attendu que ${e.origin??"la valeur"} ait ${t}${e.maximum.toString()} `+n.unit:`Trop grand : attendu que ${e.origin??"la valeur"} soit `+t+e.maximum.toString();case"too_small":n=e.inclusive?"≥":">",t=r(e.origin);return t?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} `+t.unit:`Trop petit : attendu que ${e.origin} soit `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Chaîne invalide : doit commencer par "${t.prefix}"`:"ends_with"===t.format?`Chaîne invalide : doit se terminer par "${t.suffix}"`:"includes"===t.format?`Chaîne invalide : doit inclure "${t.includes}"`:"regex"===t.format?"Chaîne invalide : doit correspondre au motif "+t.pattern:`${i[t.format]??e.format} invalide`;case"not_multiple_of":return"Nombre invalide : doit être un multiple de "+e.divisor;case"unrecognized_keys":return`Clé${1<e.keys.length?"s":""} non reconnue${1<e.keys.length?"s":""} : `+f(e.keys,", ");case"invalid_key":return"Clé invalide dans "+e.origin;case"invalid_union":return"Entrée invalide";case"invalid_element":return"Valeur invalide dans "+e.origin;default:return"Entrée invalide"}}};var ts=()=>{const t={string:{unit:"અક્ષર",verb:"હોવા જોઈએ"},file:{unit:"બાયટ",verb:"હોવા જોઈએ"},array:{unit:"આઇટમ",verb:"હોવા જોઈએ"},set:{unit:"આઇટમ",verb:"હોવા જોઈએ"},map:{unit:"એન્ટ્રી",verb:"હોવા જોઈએ"}};function r(e){return t[e]??null}const i={regex:"ઇનપુટ",email:"ઈમેઇલ એડ્રેસ",url:"URL",emoji:"ઇમોજી",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO તારીખ અને સમય",date:"ISO તારીખ",time:"ISO સમય",duration:"ISO અવધિ",ipv4:"IPv4 એડ્રેસ",ipv6:"IPv6 એડ્રેસ",mac:"MAC એડ્રેસ",cidrv4:"IPv4 શ્રેણી",cidrv6:"IPv6 શ્રેણી",base64:"base64-એન્કોડેડ સ્ટ્રિંગ",base64url:"base64url-એન્કોડેડ સ્ટ્રિંગ",json_string:"JSON સ્ટ્રિંગ",e164:"E.164 નંબર",credit_card:"ક્રેડિટ કાર્ડ નંબર",jwt:"JWT",template_literal:"ઇનપુટ"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`અમાન્ય ઇનપુટ: અપેક્ષિત ${t}, પ્રાપ્ત `+(a[n]??n);case"invalid_value":return 1===e.values.length?"અમાન્ય ઇનપુટ: અપેક્ષિત "+m(e.values[0]):`અમાન્ય વિકલ્પ: ${f(e.values," | ")} માધ્યમથી એક અપેક્ષિત`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`ખૂબ મોટું: ${e.origin??"મૂલ્ય"} ${t}${e.maximum.toString()} ${n.unit??"એલિમેન્ટ"} હોવા જોઈએ`:`ખૂબ મોટું: ${e.origin??"મૂલ્ય"} ${t}${e.maximum.toString()} હોવું જોઈએ`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`ખૂબ નાનું: ${e.origin} ${n}${e.minimum.toString()} ${t.unit} હોવા જોઈએ`:`ખૂબ નાનું: ${e.origin} ${n}${e.minimum.toString()} હોવું જોઈએ`;case"invalid_format":t=e;return"starts_with"===t.format?`અમાન્ય સ્ટ્રિંગ: "${t.prefix}" થી શરૂ થવું જોઈએ`:"ends_with"===t.format?`અમાન્ય સ્ટ્રિંગ: "${t.suffix}" પર સમાપ્ત થવું જોઈએ`:"includes"===t.format?`અમાન્ય સ્ટ્રિંગ: "${t.includes}" શામેલ હોવું જોઈએ`:"regex"===t.format?`અમાન્ય સ્ટ્રિંગ: પેટર્ન ${t.pattern} સાથે મેળ ખાવું જોઈએ`:"અમાન્ય "+(i[t.format]??e.format);case"not_multiple_of":return`અમાન્ય નંબર: ${e.divisor} નો ગુણાંક હોવો જોઈએ`;case"unrecognized_keys":return`ઓળખી શકાતા નહીં તે કી${1<e.keys.length?"ઓ":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" માં અમાન્ય કી";case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"અમાન્ય ડિસ્ક્રિમિનેટર મૂલ્ય. અપેક્ષિત "+e.options.map(e=>`'${e}'`).join(" | "):"અમાન્ય ઇનપુટ";case"invalid_element":return e.origin+" માં અમાન્ય મૂલ્ય";default:return"અમાન્ય ઇનપુટ"}}};var ns=()=>{const a={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},t={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},n=e=>e?a[e]:void 0,o=e=>{var t=n(e);return t?t.label:e??a.unknown.label},s=e=>"ה"+o(e),u=e=>{return"f"===(n(e)?.gender??"m")?"צריכה להיות":"צריך להיות"},l=e=>e?t[e]??null:null,c={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},uuidv4:{label:"UUIDv4",gender:"m"},uuidv6:{label:"UUIDv6",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},mac:{label:"כתובת MAC",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},credit_card:{label:"מספר כרטיס אשראי",gender:"m"},jwt:{label:"JWT",gender:"m"},template_literal:{label:"קלט",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},d={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=e.expected,t=d[t??""]??o(t),n=p(e.input),n=d[n]??a[n]?.label??n;return/^[A-Z]/.test(e.expected)?`קלט לא תקין: צריך להיות instanceof ${e.expected}, התקבל `+n:`קלט לא תקין: צריך להיות ${t}, התקבל `+n;case"invalid_value":return 1===e.values.length?"ערך לא תקין: הערך חייב להיות "+m(e.values[0]):(t=e.values.map(e=>m(e)),2===e.values.length?`ערך לא תקין: האפשרויות המתאימות הן ${t[0]} או `+t[1]:(n=t[t.length-1],`ערך לא תקין: האפשרויות המתאימות הן ${t.slice(0,-1).join(", ")} או `+n));case"too_big":t=l(e.origin),n=s(e.origin??"value");return"string"===e.origin?(`${t?.longLabel??"ארוך"} מדי: ${n} צריכה להכיל ${e.maximum.toString()} ${t?.unit??""} `+(e.inclusive?"או פחות":"לכל היותר")).trim():"number"===e.origin?`גדול מדי: ${n} צריך להיות `+(e.inclusive?"קטן או שווה ל-"+e.maximum:"קטן מ-"+e.maximum):"array"===e.origin||"set"===e.origin?(`גדול מדי: ${n} ${"set"===e.origin?"צריכה":"צריך"} להכיל `+(e.inclusive?""+e.maximum+` ${t?.unit??""} או פחות`:`פחות מ-${e.maximum} `+(t?.unit??""))).trim():(r=e.inclusive?"<=":"<",i=u(e.origin??"value"),t?.unit?`${t.longLabel} מדי: ${n} ${i} ${r}${e.maximum.toString()} `+t.unit:`${t?.longLabel??"גדול"} מדי: ${n} ${i} `+r+e.maximum.toString());case"too_small":var r,i,t=l(e.origin),n=s(e.origin??"value");return"string"===e.origin?(`${t?.shortLabel??"קצר"} מדי: ${n} צריכה להכיל ${e.minimum.toString()} ${t?.unit??""} `+(e.inclusive?"או יותר":"לפחות")).trim():"number"===e.origin?`קטן מדי: ${n} צריך להיות `+(e.inclusive?"גדול או שווה ל-"+e.minimum:"גדול מ-"+e.minimum):"array"===e.origin||"set"===e.origin?(i="set"===e.origin?"צריכה":"צריך",1===e.minimum&&e.inclusive?(e.origin,`קטן מדי: ${n} ${i} להכיל לפחות פריט אחד`):(`קטן מדי: ${n} ${i} להכיל `+(e.inclusive?""+e.minimum+` ${t?.unit??""} או יותר`:`יותר מ-${e.minimum} `+(t?.unit??""))).trim()):(r=e.inclusive?">=":">",i=u(e.origin??"value"),t?.unit?`${t.shortLabel} מדי: ${n} ${i} ${r}${e.minimum.toString()} `+t.unit:`${t?.shortLabel??"קטן"} מדי: ${n} ${i} `+r+e.minimum.toString());case"invalid_format":t=e;return"starts_with"===t.format?`המחרוזת חייבת להתחיל ב "${t.prefix}"`:"ends_with"===t.format?`המחרוזת חייבת להסתיים ב "${t.suffix}"`:"includes"===t.format?`המחרוזת חייבת לכלול "${t.includes}"`:"regex"===t.format?"המחרוזת חייבת להתאים לתבנית "+t.pattern:((n=c[t.format])?.label??t.format)+" לא "+("f"===(n?.gender??"m")?"תקינה":"תקין");case"not_multiple_of":return"מספר לא תקין: חייב להיות מכפלה של "+e.divisor;case"unrecognized_keys":return`מפתח${1<e.keys.length?"ות":""} לא מזוה${1<e.keys.length?"ים":"ה"}: `+f(e.keys,", ");case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return"ערך לא תקין ב"+s(e.origin??"array");default:return"קלט לא תקין"}}};var rs=()=>{const t={string:{unit:"अक्षर",verb:"रखने के लिए"},file:{unit:"बाइट्स",verb:"रखने के लिए"},array:{unit:"तत्व",verb:"रखने के लिए"},set:{unit:"तत्व",verb:"रखने के लिए"},map:{unit:"प्रविष्टियाँ",verb:"रखने के लिए"}};function r(e){return t[e]??null}const i={regex:"इनपुट",email:"ईमेल पता",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO तिथि और समय",date:"ISO तिथि",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 पता",ipv6:"IPv6 पता",mac:"MAC पता",cidrv4:"IPv4 श्रेणी",cidrv6:"IPv6 श्रेणी",base64:"Base64-एन्कोडेड स्ट्रिंग",base64url:"Base64URL-एन्कोडेड स्ट्रिंग",json_string:"JSON स्ट्रिंग",e164:"E.164 संख्या",credit_card:"क्रेडिट कार्ड संख्या",jwt:"JWT",template_literal:"इनपुट"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`अमान्य इनपुट: अपेक्षित ${t}, प्राप्त `+(a[n]??n);case"invalid_value":return 1===e.values.length?"अमान्य इनपुट: अपेक्षित "+m(e.values[0]):"अमान्य विकल्प: अपेक्षित मानों में से एक "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`बहुत बड़ा: अपेक्षित था कि ${e.origin??"मान"} में ${t}${e.maximum} ${n.unit} हों`:`बहुत बड़ा: अपेक्षित था कि ${e.origin??"मान"} ${t}${e.maximum} हो`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`बहुत छोटा: अपेक्षित था कि ${e.origin} में ${n}${e.minimum} ${t.unit} हों`:`बहुत छोटा: अपेक्षित था कि ${e.origin} ${n}${e.minimum} हो`;case"invalid_format":t=e;return"starts_with"===t.format?`अमान्य स्ट्रिंग: "${t.prefix}" से शुरू होना चाहिए`:"ends_with"===t.format?`अमान्य स्ट्रिंग: "${t.suffix}" पर समाप्त होना चाहिए`:"includes"===t.format?`अमान्य स्ट्रिंग: इसमें "${t.includes}" शामिल होना चाहिए`:"regex"===t.format?`अमान्य स्ट्रिंग: पैटर्न ${t.pattern} से मेल खाना चाहिए`:"अमान्य "+(i[t.format]??e.format);case"not_multiple_of":return`अमान्य संख्या: यह ${e.divisor} का गुणज होना चाहिए`;case"unrecognized_keys":return`अपरिचित कुंजी${1<e.keys.length?"याँ":""}: `+f(e.keys,", ");case"invalid_key":return`अमान्य कुंजी: ${e.origin} में`;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"अमान्य डिस्क्रिमिनेटर मान: अपेक्षित "+e.options.map(e=>`'${e}'`).join(" | "):"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${e.origin} में`;default:return"अमान्य इनपुट"}}};var is=()=>{const t={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function i(e){return t[e]??null}const a={regex:"unos",email:"email 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:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",credit_card:"broj kreditne kartice",jwt:"JWT",template_literal:"unos"},o={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,n=p(e.input),n=o[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je `+n:`Neispravan unos: očekuje se ${t}, a primljeno je `+n;case"invalid_value":return 1===e.values.length?"Neispravna vrijednost: očekivano "+m(e.values[0]):"Neispravna opcija: očekivano jedno od "+f(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",n=i(e.origin),r=o[e.origin]??e.origin;return n?`Preveliko: očekivano da ${r??"vrijednost"} ima ${t}${e.maximum.toString()} `+(n.unit??"elemenata"):`Preveliko: očekivano da ${r??"vrijednost"} bude `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",r=i(e.origin),t=o[e.origin]??e.origin;return r?`Premalo: očekivano da ${t} ima ${n}${e.minimum.toString()} `+r.unit:`Premalo: očekivano da ${t} bude `+n+e.minimum.toString();case"invalid_format":r=e;return"starts_with"===r.format?`Neispravan tekst: mora započinjati s "${r.prefix}"`:"ends_with"===r.format?`Neispravan tekst: mora završavati s "${r.suffix}"`:"includes"===r.format?`Neispravan tekst: mora sadržavati "${r.includes}"`:"regex"===r.format?"Neispravan tekst: mora odgovarati uzorku "+r.pattern:"Neispravna "+(a[r.format]??e.format);case"not_multiple_of":return"Neispravan broj: mora biti višekratnik od "+e.divisor;case"unrecognized_keys":return`Neprepoznat${1<e.keys.length?"i ključevi":" ključ"}: `+f(e.keys,", ");case"invalid_key":return"Neispravan ključ u "+(o[e.origin]??e.origin);case"invalid_union":return"Neispravan unos";case"invalid_element":return"Neispravna vrijednost u "+(o[e.origin]??e.origin);default:return"Neispravan unos"}}};var as=()=>{const t={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"},map:{unit:"elem",verb:"legyen"}};function r(e){return t[e]??null}const i={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",mac:"MAC cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",credit_card:"hitelkártyaszám",jwt:"JWT",template_literal:"bemenet"},a={nan:"NaN",number:"szám",array:"tömb"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték `+n:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték `+n;case"invalid_value":return 1===e.values.length?"Érvénytelen bemenet: a várt érték "+m(e.values[0]):"Érvénytelen opció: valamelyik érték várt "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Túl nagy: ${e.origin??"érték"} mérete túl nagy ${t}${e.maximum.toString()} `+(n.unit??"elem"):`Túl nagy: a bemeneti érték ${e.origin??"érték"} túl nagy: `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} `+t.unit:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:"ends_with"===t.format?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:"includes"===t.format?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:"regex"===t.format?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:"Érvénytelen "+(i[t.format]??e.format);case"not_multiple_of":return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Érvénytelen kulcs "+e.origin;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return"Érvénytelen érték: "+e.origin;default:return"Érvénytelen bemenet"}}};function os(e,t,n){return 1===Math.abs(e)?t:n}function ss(e){var t;return e?(t=e[e.length-1],e+(["ա","ե","ը","ի","ո","ու","օ"].includes(t)?"ն":"ը")):""}var us=()=>{const t={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},map:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function r(e){return t[e]??null}const i={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",mac:"MAC հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",credit_card:"կրեդիտ քարտի համար",jwt:"JWT",template_literal:"մուտք"},a={nan:"NaN",number:"թիվ",array:"զանգված"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է `+n:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է `+n;case"invalid_value":return 1===e.values.length?"Սխալ մուտքագրում․ սպասվում էր "+m(e.values[1]):"Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?(n=os(Number(e.maximum),n.unit.one,n.unit.many),`Չափազանց մեծ արժեք․ սպասվում է, որ ${ss(e.origin??"արժեք")} կունենա ${t}${e.maximum.toString()} `+n):`Չափազանց մեծ արժեք․ սպասվում է, որ ${ss(e.origin??"արժեք")} լինի `+t+e.maximum.toString();case"too_small":var n=e.inclusive?">=":">",t=r(e.origin);return t?(t=os(Number(e.minimum),t.unit.one,t.unit.many),`Չափազանց փոքր արժեք․ սպասվում է, որ ${ss(e.origin)} կունենա ${n}${e.minimum.toString()} `+t):`Չափազանց փոքր արժեք․ սպասվում է, որ ${ss(e.origin)} լինի `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:"ends_with"===t.format?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:"includes"===t.format?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:"regex"===t.format?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:"Սխալ "+(i[t.format]??e.format);case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${1<e.keys.length?"ներ":""}. `+f(e.keys,", ");case"invalid_key":return`Սխալ բանալի ${ss(e.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${ss(e.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};var ls=()=>{const t={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"},map:{unit:"item",verb:"memiliki"}};function r(e){return t[e]??null}const 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",mac:"alamat MAC",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",credit_card:"nomor kartu kredit",jwt:"JWT",template_literal:"input"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima `+n:`Input tidak valid: diharapkan ${t}, diterima `+n;case"invalid_value":return 1===e.values.length?"Input tidak valid: diharapkan "+m(e.values[0]):"Pilihan tidak valid: diharapkan salah satu dari "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Terlalu besar: diharapkan ${e.origin??"value"} memiliki ${t}${e.maximum.toString()} `+(n.unit??"elemen"):`Terlalu besar: diharapkan ${e.origin??"value"} menjadi `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} `+t.unit:`Terlalu kecil: diharapkan ${e.origin} menjadi `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`String tidak valid: harus dimulai dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak valid: harus berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak valid: harus menyertakan "${t.includes}"`:"regex"===t.format?"String tidak valid: harus sesuai pola "+t.pattern:`${i[t.format]??e.format} tidak valid`;case"not_multiple_of":return"Angka tidak valid: harus kelipatan dari "+e.divisor;case"unrecognized_keys":return`Kunci tidak dikenali ${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Kunci tidak valid di "+e.origin;case"invalid_union":return"Input tidak valid";case"invalid_element":return"Nilai tidak valid di "+e.origin;default:return"Input tidak valid"}}};var cs=()=>{const t={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"},map:{unit:"hluti",verb:"að hafa"}};function r(e){return t[e]??null}const i={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",credit_card:"kreditkortanúmer",jwt:"JWT",template_literal:"gildi"},a={nan:"NaN",number:"númer",array:"fylki"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${n} þar sem á að vera instanceof `+e.expected:`Rangt gildi: Þú slóst inn ${n} þar sem á að vera `+t;case"invalid_value":return 1===e.values.length?"Rangt gildi: gert ráð fyrir "+m(e.values[0]):"Ógilt val: má vera eitt af eftirfarandi "+f(e.values,"|");case"too_big":n=e.inclusive?"<=":"<",t=r(e.origin);return t?`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} hafi ${n}${e.maximum.toString()} `+(t.unit??"hluti"):`Of stórt: gert er ráð fyrir að ${e.origin??"gildi"} sé `+n+e.maximum.toString();case"too_small":t=e.inclusive?">=":">",n=r(e.origin);return n?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${t}${e.minimum.toString()} `+n.unit:`Of lítið: gert er ráð fyrir að ${e.origin} sé `+t+e.minimum.toString();case"invalid_format":n=e;return"starts_with"===n.format?`Ógildur strengur: verður að byrja á "${n.prefix}"`:"ends_with"===n.format?`Ógildur strengur: verður að enda á "${n.suffix}"`:"includes"===n.format?`Ógildur strengur: verður að innihalda "${n.includes}"`:"regex"===n.format?"Ógildur strengur: verður að fylgja mynstri "+n.pattern:"Rangt "+(i[n.format]??e.format);case"not_multiple_of":return"Röng tala: verður að vera margfeldi af "+e.divisor;case"unrecognized_keys":return`Óþekkt ${1<e.keys.length?"ir lyklar":"ur lykill"}: `+f(e.keys,", ");case"invalid_key":return"Rangur lykill í "+e.origin;case"invalid_union":return"Rangt gildi";case"invalid_element":return"Rangt gildi í "+e.origin;default:return"Rangt gildi"}}};var ds=()=>{const t={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"},map:{unit:"elementi",verb:"avere"}};function r(e){return t[e]??null}const 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",mac:"indirizzo MAC",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",credit_card:"numero di carta di credito",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"numero",array:"vettore"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto `+n:`Input non valido: atteso ${t}, ricevuto `+n;case"invalid_value":return 1===e.values.length?"Input non valido: atteso "+m(e.values[0]):"Opzione non valida: atteso uno tra "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Troppo grande: ${e.origin??"valore"} deve avere ${t}${e.maximum.toString()} `+(n.unit??"elementi"):`Troppo grande: ${e.origin??"valore"} deve essere `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} `+t.unit:`Troppo piccolo: ${e.origin} deve essere `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Stringa non valida: deve iniziare con "${t.prefix}"`:"ends_with"===t.format?`Stringa non valida: deve terminare con "${t.suffix}"`:"includes"===t.format?`Stringa non valida: deve includere "${t.includes}"`:"regex"===t.format?"Stringa non valida: deve corrispondere al pattern "+t.pattern:"Input non valido: "+(i[t.format]??e.format);case"not_multiple_of":return"Numero non valido: deve essere un multiplo di "+e.divisor;case"unrecognized_keys":return`Chiav${1<e.keys.length?"i":"e"} non riconosciut${1<e.keys.length?"e":"a"}: `+f(e.keys,", ");case"invalid_key":return"Chiave non valida in "+e.origin;case"invalid_union":return"Input non valido";case"invalid_element":return"Valore non valido in "+e.origin;default:return"Input non valido"}}};var fs=()=>{const t={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"},map:{unit:"要素",verb:"である"}};function r(e){return t[e]??null}const i={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",mac:"MACアドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",credit_card:"クレジットカード番号",jwt:"JWT",template_literal:"入力値"},a={nan:"NaN",number:"数値",array:"配列"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${n}が入力されました`:`無効な入力: ${t}が期待されましたが、${n}が入力されました`;case"invalid_value":return 1===e.values.length?`無効な入力: ${m(e.values[0])}が期待されました`:`無効な選択: ${f(e.values,"、")}のいずれかである必要があります`;case"too_big":t=e.inclusive?"以下である":"より小さい",n=r(e.origin);return n?`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${n.unit??"要素"}${t}必要があります`:`大きすぎる値: ${e.origin??"値"}は${e.maximum.toString()}${t}必要があります`;case"too_small":n=e.inclusive?"以上である":"より大きい",t=r(e.origin);return t?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${t.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`;case"invalid_format":t=e;return"starts_with"===t.format?`無効な文字列: "${t.prefix}"で始まる必要があります`:"ends_with"===t.format?`無効な文字列: "${t.suffix}"で終わる必要があります`:"includes"===t.format?`無効な文字列: "${t.includes}"を含む必要があります`:"regex"===t.format?`無効な文字列: パターン${t.pattern}に一致する必要があります`:"無効な"+(i[t.format]??e.format);case"not_multiple_of":return`無効な数値: ${e.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${1<e.keys.length?"群":""}: `+f(e.keys,"、");case"invalid_key":return e.origin+"内の無効なキー";case"invalid_union":return"無効な入力";case"invalid_element":return e.origin+"内の無効な値";default:return"無効な入力"}}};var ms=()=>{const t={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},map:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function r(e){return t[e]??null}const i={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",mac:"MAC მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",credit_card:"საკრედიტო ბარათის ნომერი",jwt:"JWT",template_literal:"შეყვანა"},a={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული `+n:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული `+n;case"invalid_value":return 1===e.values.length?"არასწორი შეყვანა: მოსალოდნელი "+m(e.values[0]):`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${f(e.values,"|")}-დან`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} ${n.verb} ${t}${e.maximum.toString()} `+n.unit:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??"მნიშვნელობა"} იყოს `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${t.verb} ${n}${e.minimum.toString()} `+t.unit:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:"ends_with"===t.format?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:"includes"===t.format?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:"regex"===t.format?"არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს "+t.pattern:"არასწორი "+(i[t.format]??e.format);case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${1<e.keys.length?"ები":"ი"}: `+f(e.keys,", ");case"invalid_key":return`არასწორი გასაღები ${e.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return"არასწორი შეყვანა"}}};var ps=()=>{const t={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"},map:{unit:"ធាតុ",verb:"គួរមាន"}};function r(e){return t[e]??null}const i={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",mac:"អាសយដ្ឋាន MAC",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",credit_card:"លេខប័ណ្ណឥណទាន",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},a={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន `+n:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន `+n;case"invalid_value":return 1===e.values.length?"ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ "+m(e.values[0]):"ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${t} ${e.maximum.toString()} `+(n.unit??"ធាតុ"):`ធំពេក៖ ត្រូវការ ${e.origin??"តម្លៃ"} ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} `+t.unit:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:"ends_with"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:"includes"===t.format?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:"regex"===t.format?"ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ "+t.pattern:"មិនត្រឹមត្រូវ៖ "+(i[t.format]??e.format);case"not_multiple_of":return"លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ "+e.divisor;case"unrecognized_keys":return"រកឃើញសោមិនស្គាល់៖ "+f(e.keys,", ");case"invalid_key":return"សោមិនត្រឹមត្រូវនៅក្នុង "+e.origin;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return"ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង "+e.origin;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function hs(){return{localeError:ps()}}var vs=()=>{const t={string:{unit:"ಅಕ್ಷರಗಳು",verb:"ಹೊಂದಲು"},file:{unit:"ಬೈಟ್‌ಗಳು",verb:"ಹೊಂದಲು"},array:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},set:{unit:"ವಸ್ತುಗಳು",verb:"ಹೊಂದಲು"},map:{unit:"entries",verb:"ಹೊಂದಲು"}};function r(e){return t[e]??null}const i={regex:"ಇನ್ಪುಟ್",email:"email ವಿಳಾಸ",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ದಿನಾಂಕದ ಸಮಯ",date:"ISO ದಿನಾಂಕ",time:"ISO ಸಮಯ",duration:"ISO ಅವಧಿ",ipv4:"IPv4 ವಿಳಾಸ",ipv6:"IPv6 ವಿಳಾಸ",mac:"MAC ವಿಳಾಸ",cidrv4:"IPv4 ವ್ಯಾಪ್ತಿಯ",cidrv6:"IPv6 ವ್ಯಾಪ್ತಿಯ",base64:"base64-encodedಸ್ಟ್ರಿಂಗ್",base64url:"base64url-encodedಸ್ಟ್ರಿಂಗ್",json_string:"JSONಸ್ಟ್ರಿಂಗ್",e164:"E.164 ಸಂಖ್ಯೆ",credit_card:"ಕ್ರೆಡಿಟ್ ಕಾರ್ಡ್ ಸಂಖ್ಯೆ",jwt:"JWT",template_literal:"ಇನ್ಪುಟ್"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${t}, ಸ್ವೀಕರಿಸಿದನು `+(a[n]??n);case"invalid_value":return 1===e.values.length?"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ "+m(e.values[0]):"ಅಮಾನ್ಯ ಆಯ್ಕೆ: ಇವುಗಳಲ್ಲಿ ಒಂದನ್ನು ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin??"value"} ಹೊಂದಲು ${t}${e.maximum.toString()} `+(n.unit??"ಅಂಶಗಳು"):`ತುಂಬಾ ದೊಡ್ಡದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin??"value"} ಎಂದು `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin} ಹೊಂದಲು ${n}${e.minimum.toString()} `+t.unit:`ತುಂಬಾ ಚಿಕ್ಕದು: ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ ${e.origin} ಎಂದು `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಪ್ರಾರಂಭಿಸಬೇಕು "${t.prefix}"`:"ends_with"===t.format?`ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಇದರೊಂದಿಗೆ ಕೊನೆಗೊಳ್ಳಬೇಕು "${t.suffix}"`:"includes"===t.format?`ಅಮಾನ್ಯ ಸ್ಟ್ರಿಂಗ್: ಒಳಗೊಂಡಿರಬೇಕು "${t.includes}"`:"regex"===t.format?"ಅಮಾನ್ಯವಾದ ಸ್ಟ್ರಿಂಗ್: ಮಾದರಿಗೆ ಹೊಂದಿಕೆಯಾಗಬೇಕು "+t.pattern:"ಅಮಾನ್ಯ "+(i[t.format]??e.format);case"not_multiple_of":return"ಅಮಾನ್ಯ ಸಂಖ್ಯೆ: ಬಹುಸಂಖ್ಯೆಯಾಗಿರಬೇಕು "+e.divisor;case"unrecognized_keys":return`ಗುರುತಿಸಲಾಗದ ಕೀ ${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"ಅಮಾನ್ಯವಾದ ಕೀ ಇನ್ "+e.origin;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"ಅಮಾನ್ಯ ತಾರತಮ್ಯ ಮೌಲ್ಯ. ನಿರೀಕ್ಷಿಸಲಾಗಿದೆ "+e.options.map(e=>`'${e}'`).join(" | "):"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್";case"invalid_element":return"ರಲ್ಲಿ ಅಮಾನ್ಯ ಮೌಲ್ಯ "+e.origin;default:return"ಅಮಾನ್ಯ ಇನ್‌ಪುಟ್"}}};var gs=()=>{const t={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"},map:{unit:"개",verb:"to have"}};function a(e){return t[e]??null}const o={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",mac:"MAC 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",credit_card:"신용카드 번호",jwt:"JWT",template_literal:"입력"},s={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=s[e.expected]??e.expected,n=p(e.input),n=s[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${n}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${n}입니다`;case"invalid_value":return 1===e.values.length?`잘못된 입력: 값은 ${m(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${f(e.values,"또는 ")} 중 하나여야 합니다`;case"too_big":var t=e.inclusive?"이하":"미만",n="미만"==t?"이어야 합니다":"여야 합니다",r=a(e.origin),i=r?.unit??"요소";return r?`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()}${i} `+t+n:`${e.origin??"값"}이 너무 큽니다: ${e.maximum.toString()} `+t+n;case"too_small":r=e.inclusive?"이상":"초과",i="이상"==r?"이어야 합니다":"여야 합니다",t=a(e.origin),n=t?.unit??"요소";return t?`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()}${n} `+r+i:`${e.origin??"값"}이 너무 작습니다: ${e.minimum.toString()} `+r+i;case"invalid_format":t=e;return"starts_with"===t.format?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:"ends_with"===t.format?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:"includes"===t.format?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:"regex"===t.format?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:"잘못된 "+(o[t.format]??e.format);case"not_multiple_of":return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case"unrecognized_keys":return"인식할 수 없는 키: "+f(e.keys,", ");case"invalid_key":return"잘못된 키: "+e.origin;case"invalid_union":return"잘못된 입력";case"invalid_element":return"잘못된 값: "+e.origin;default:return"잘못된 입력"}}};var ys=e=>e.charAt(0).toUpperCase()+e.slice(1);function bs(e){var e=Math.abs(e),t=e%10,e=e%100;return 11<=e&&e<=19||0==t?"many":1==t?"one":"few"}var _s=()=>{const i={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function a(e,t,n,r){e=i[e]??null;return null===e?e:{unit:e.unit[t],verb:e.verb[r][n?"inclusive":"notInclusive"]}}const o={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",mac:"MAC adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",credit_card:"kredito kortelės numeris",jwt:"JWT",template_literal:"įvestis"},s={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return e=>{switch(e.code){case"invalid_type":var t=s[e.expected]??e.expected,n=p(e.input),n=s[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${n}, o tikėtasi - instanceof `+e.expected:`Gautas tipas ${n}, o tikėtasi - `+t;case"invalid_value":return 1===e.values.length?"Privalo būti "+m(e.values[0]):`Privalo būti vienas iš ${f(e.values,"|")} pasirinkimų`;case"too_big":n=s[e.origin]??e.origin,t=a(e.origin,bs(Number(e.maximum)),e.inclusive??!1,"smaller");return t?.verb?`${ys(n??e.origin??"reikšmė")} ${t.verb} ${e.maximum.toString()} `+(t.unit??"elementų"):(r=e.inclusive?"ne didesnis kaip":"mažesnis kaip",`${ys(n??e.origin??"reikšmė")} turi būti ${r} ${e.maximum.toString()} `+t?.unit);case"too_small":var n=s[e.origin]??e.origin,r=a(e.origin,bs(Number(e.minimum)),e.inclusive??!1,"bigger");return r?.verb?`${ys(n??e.origin??"reikšmė")} ${r.verb} ${e.minimum.toString()} `+(r.unit??"elementų"):(t=e.inclusive?"ne mažesnis kaip":"didesnis kaip",`${ys(n??e.origin??"reikšmė")} turi būti ${t} ${e.minimum.toString()} `+r?.unit);case"invalid_format":n=e;return"starts_with"===n.format?`Eilutė privalo prasidėti "${n.prefix}"`:"ends_with"===n.format?`Eilutė privalo pasibaigti "${n.suffix}"`:"includes"===n.format?`Eilutė privalo įtraukti "${n.includes}"`:"regex"===n.format?"Eilutė privalo atitikti "+n.pattern:"Neteisingas "+(o[n.format]??e.format);case"not_multiple_of":return`Skaičius privalo būti ${e.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${1<e.keys.length?"i":"as"} rakt${1<e.keys.length?"ai":"as"}: `+f(e.keys,", ");case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":t=s[e.origin]??e.origin;return ys(t??e.origin??"reikšmė")+" turi klaidingą įvestį";default:return"Klaidinga įvestis"}}};var ws=()=>{const t={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"},map:{unit:"ставки",verb:"да имаат"}};function r(e){return t[e]??null}const i={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",mac:"MAC адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",credit_card:"број на кредитна картичка",jwt:"JWT",template_literal:"внес"},a={nan:"NaN",number:"број",array:"низа"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено `+n:`Грешен внес: се очекува ${t}, примено `+n;case"invalid_value":return 1===e.values.length?"Invalid input: expected "+m(e.values[0]):"Грешана опција: се очекува една "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Премногу голем: се очекува ${e.origin??"вредноста"} да има ${t}${e.maximum.toString()} `+(n.unit??"елементи"):`Премногу голем: се очекува ${e.origin??"вредноста"} да биде `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} `+t.unit:`Премногу мал: се очекува ${e.origin} да биде `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Неважечка низа: мора да започнува со "${t.prefix}"`:"ends_with"===t.format?`Неважечка низа: мора да завршува со "${t.suffix}"`:"includes"===t.format?`Неважечка низа: мора да вклучува "${t.includes}"`:"regex"===t.format?"Неважечка низа: мора да одгоара на патернот "+t.pattern:"Invalid "+(i[t.format]??e.format);case"not_multiple_of":return"Грешен број: мора да биде делив со "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Непрепознаени клучеви":"Непрепознаен клуч"}: `+f(e.keys,", ");case"invalid_key":return"Грешен клуч во "+e.origin;case"invalid_union":return"Грешен внес";case"invalid_element":return"Грешна вредност во "+e.origin;default:return"Грешен внес"}}};var ks=()=>{const t={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"},map:{unit:"elemen",verb:"mempunyai"}};function r(e){return t[e]??null}const 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",mac:"alamat MAC",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",credit_card:"nombor kad kredit",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"nombor"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima `+n:`Input tidak sah: dijangka ${t}, diterima `+n;case"invalid_value":return 1===e.values.length?"Input tidak sah: dijangka "+m(e.values[0]):"Pilihan tidak sah: dijangka salah satu daripada "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Terlalu besar: dijangka ${e.origin??"nilai"} ${n.verb} ${t}${e.maximum.toString()} `+(n.unit??"elemen"):`Terlalu besar: dijangka ${e.origin??"nilai"} adalah `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Terlalu kecil: dijangka ${e.origin} ${t.verb} ${n}${e.minimum.toString()} `+t.unit:`Terlalu kecil: dijangka ${e.origin} adalah `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`String tidak sah: mesti bermula dengan "${t.prefix}"`:"ends_with"===t.format?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:"includes"===t.format?`String tidak sah: mesti mengandungi "${t.includes}"`:"regex"===t.format?"String tidak sah: mesti sepadan dengan corak "+t.pattern:`${i[t.format]??e.format} tidak sah`;case"not_multiple_of":return"Nombor tidak sah: perlu gandaan "+e.divisor;case"unrecognized_keys":return"Kunci tidak dikenali: "+f(e.keys,", ");case"invalid_key":return"Kunci tidak sah dalam "+e.origin;case"invalid_union":return"Input tidak sah";case"invalid_element":return"Nilai tidak sah dalam "+e.origin;default:return"Input tidak sah"}}};var $s=()=>{const t={string:{unit:"अक्षर",verb:"हुनुपर्छ"},file:{unit:"बाइट",verb:"हुनुपर्छ"},array:{unit:"तत्व",verb:"हुनुपर्छ"},set:{unit:"तत्व",verb:"हुनुपर्छ"},map:{unit:"प्रविष्टि",verb:"हुनुपर्छ"}};function r(e){return t[e]??null}const i={regex:"इनपुट",email:"इमेल ठेगाना",url:"URL",emoji:"इमोजी",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO मिति र समय",date:"ISO मिति",time:"ISO समय",duration:"ISO अवधि",ipv4:"IPv4 ठेगाना",ipv6:"IPv6 ठेगाना",mac:"MAC ठेगाना",cidrv4:"IPv4 दायरा",cidrv6:"IPv6 दायरा",base64:"base64-इन्कोड गरिएको स्ट्रिङ",base64url:"base64url-इन्कोड गरिएको स्ट्रिङ",json_string:"JSON स्ट्रिङ",e164:"E.164 नम्बर",credit_card:"क्रेडिट कार्ड नम्बर",jwt:"JWT",template_literal:"इनपुट"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`अमान्य इनपुट: अपेक्षित ${t}, प्राप्त `+(a[n]??n);case"invalid_value":return 1===e.values.length?"अमान्य इनपुट: अपेक्षित "+m(e.values[0]):"अमान्य विकल्प: अपेक्षित मानहरू मध्ये एक "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`धेरै ठूलो: ${e.origin??"मान"} मा ${t}${e.maximum.toString()} ${n.unit} `+n.verb:`धेरै ठूलो: ${e.origin??"मान"} ${t}${e.maximum.toString()} हुनुपर्छ`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`धेरै सानो: ${e.origin} मा ${n}${e.minimum.toString()} ${t.unit} `+t.verb:`धेरै सानो: ${e.origin} ${n}${e.minimum.toString()} हुनुपर्छ`;case"invalid_format":t=e;return"starts_with"===t.format?`अमान्य स्ट्रिङ: "${t.prefix}" बाट सुरु हुनुपर्छ`:"ends_with"===t.format?`अमान्य स्ट्रिङ: "${t.suffix}" मा समाप्त हुनुपर्छ`:"includes"===t.format?`अमान्य स्ट्रिङ: "${t.includes}" समावेश हुनुपर्छ`:"regex"===t.format?`अमान्य स्ट्रिङ: ढाँचा ${t.pattern} सँग मेल खानुपर्छ`:"अमान्य "+(i[t.format]??e.format);case"not_multiple_of":return`अमान्य संख्या: ${e.divisor} को गुणज हुनुपर्छ`;case"unrecognized_keys":return`अपरिचित कुञ्जी${1<e.keys.length?"हरू":""}: `+f(e.keys,", ");case"invalid_key":return`अमान्य कुञ्जी: ${e.origin} मा`;case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"अमान्य डिस्क्रिमिनेटर मान: अपेक्षित "+e.options.map(e=>`'${e}'`).join(" | "):"अमान्य इनपुट";case"invalid_element":return`अमान्य मान: ${e.origin} मा`;default:return"अमान्य इनपुट"}}};var Is=()=>{const t={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"},map:{unit:"elementen",verb:"heeft"}};function i(e){return t[e]??null}const a={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",mac:"MAC-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",credit_card:"creditcardnummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return e=>{switch(e.code){case"invalid_type":var t=o[e.expected]??e.expected,n=p(e.input),n=o[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving `+n:`Ongeldige invoer: verwacht ${t}, ontving `+n;case"invalid_value":return 1===e.values.length?"Ongeldige invoer: verwacht "+m(e.values[0]):"Ongeldige optie: verwacht één van "+f(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",n=i(e.origin),r="date"===e.origin?"laat":"string"===e.origin?"lang":"groot";return n?`Te ${r}: verwacht dat ${e.origin??"waarde"} ${t}${e.maximum.toString()} ${n.unit??"elementen"} `+n.verb:`Te ${r}: verwacht dat ${e.origin??"waarde"} ${t}${e.maximum.toString()} is`;case"too_small":n=e.inclusive?">=":">",r=i(e.origin),t="date"===e.origin?"vroeg":"string"===e.origin?"kort":"klein";return r?`Te ${t}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} `+r.verb:`Te ${t}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`;case"invalid_format":r=e;return"starts_with"===r.format?`Ongeldige tekst: moet met "${r.prefix}" beginnen`:"ends_with"===r.format?`Ongeldige tekst: moet op "${r.suffix}" eindigen`:"includes"===r.format?`Ongeldige tekst: moet "${r.includes}" bevatten`:"regex"===r.format?"Ongeldige tekst: moet overeenkomen met patroon "+r.pattern:"Ongeldig: "+(a[r.format]??e.format);case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Ongeldige key in "+e.origin;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return"Ongeldige waarde in "+e.origin;default:return"Ongeldige invoer"}}};var xs=()=>{const t={string:{unit:"teikn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"element",verb:"å innehalde"},set:{unit:"element",verb:"å innehalde"},map:{unit:"element",verb:"å innehalde"}};function r(e){return t[e]??null}const 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-varigheit",ipv4:"IPv4-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkoda streng",base64url:"base64url-enkoda streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tal",array:"liste"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventa instanceof ${e.expected}, fekk `+n:`Ugyldig input: forventa ${t}, fekk `+n;case"invalid_value":return 1===e.values.length?"Ugyldig verdi: forventa "+m(e.values[0]):"Ugyldig val: forventa eitt av "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`For stor(t): forventa ${e.origin??"value"} til å ha ${t}${e.maximum.toString()} `+(n.unit??"element"):`For stor(t): forventa ${e.origin??"value"} til å ha `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`For lite(n): forventa ${e.origin} til å ha ${n}${e.minimum.toString()} `+t.unit:`For lite(n): forventa ${e.origin} til å ha `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må slutte med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må innehalde "${t.includes}"`:"regex"===t.format?"Ugyldig streng: må matche mønsteret "+t.pattern:"Ugyldig "+(i[t.format]??e.format);case"not_multiple_of":return"Ugyldig tal: må vere eit multiplum av "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Ukjende nøklar":"Ukjend nøkkel"}: `+f(e.keys,", ");case"invalid_key":return"Ugyldig nøkkel i "+e.origin;case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i "+e.origin;default:return"Ugyldig input"}}};var Ss=()=>{const t={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"},map:{unit:"elementer",verb:"å inneholde"}};function r(e){return t[e]??null}const 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-adresse",ipv6:"IPv6-adresse",mac:"MAC-adresse",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",credit_card:"kredittkortnummer",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"tall",array:"liste"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk `+n:`Ugyldig input: forventet ${t}, fikk `+n;case"invalid_value":return 1===e.values.length?"Ugyldig verdi: forventet "+m(e.values[0]):"Ugyldig valg: forventet en av "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`For stor(t): forventet ${e.origin??"value"} til å ha ${t}${e.maximum.toString()} `+(n.unit??"elementer"):`For stor(t): forventet ${e.origin??"value"} til å ha `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} `+t.unit:`For lite(n): forventet ${e.origin} til å ha `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Ugyldig streng: må starte med "${t.prefix}"`:"ends_with"===t.format?`Ugyldig streng: må ende med "${t.suffix}"`:"includes"===t.format?`Ugyldig streng: må inneholde "${t.includes}"`:"regex"===t.format?"Ugyldig streng: må matche mønsteret "+t.pattern:"Ugyldig "+(i[t.format]??e.format);case"not_multiple_of":return"Ugyldig tall: må være et multiplum av "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Ukjente nøkler":"Ukjent nøkkel"}: `+f(e.keys,", ");case"invalid_key":return"Ugyldig nøkkel i "+e.origin;case"invalid_union":return"Ugyldig input";case"invalid_element":return"Ugyldig verdi i "+e.origin;default:return"Ugyldig input"}}};var Os=()=>{const t={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"},map:{unit:"unsur",verb:"olmalıdır"}};function r(e){return t[e]??null}const i={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",mac:"MAC nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",credit_card:"i'tibâr kartı numarası",jwt:"JWT",template_literal:"giren"},a={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan `+n:`Fâsit giren: umulan ${t}, alınan `+n;case"invalid_value":return 1===e.values.length?"Fâsit giren: umulan "+m(e.values[0]):"Fâsit tercih: mûteberler "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Fazla büyük: ${e.origin??"value"}, ${t}${e.maximum.toString()} ${n.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${e.origin??"value"}, ${t}${e.maximum.toString()} olmalıydı.`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${t.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`;case"invalid_format":t=e;return"starts_with"===t.format?`Fâsit metin: "${t.prefix}" ile başlamalı.`:"ends_with"===t.format?`Fâsit metin: "${t.suffix}" ile bitmeli.`:"includes"===t.format?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:"regex"===t.format?`Fâsit metin: ${t.pattern} nakşına uymalı.`:"Fâsit "+(i[t.format]??e.format);case"not_multiple_of":return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" için tanınmayan anahtar var.";case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return e.origin+" için tanınmayan kıymet var.";default:return"Kıymet tanınamadı."}}};var zs=()=>{const t={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"},map:{unit:"توکي",verb:"ولري"}};function r(e){return t[e]??null}const i={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",mac:"د MAC پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",credit_card:"د کریډیټ کارت شمیره",jwt:"JWT",template_literal:"ورودي"},a={nan:"NaN",number:"عدد",array:"ارې"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${n} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${n} ترلاسه شو`;case"invalid_value":return 1===e.values.length?`ناسم ورودي: باید ${m(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${f(e.values,"|")} څخه وای`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`ډیر لوی: ${e.origin??"ارزښت"} باید ${t}${e.maximum.toString()} ${n.unit??"عنصرونه"} ولري`:`ډیر لوی: ${e.origin??"ارزښت"} باید ${t}${e.maximum.toString()} وي`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${t.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`;case"invalid_format":t=e;return"starts_with"===t.format?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:"ends_with"===t.format?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:"includes"===t.format?`ناسم متن: باید "${t.includes}" ولري`:"regex"===t.format?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:(i[t.format]??e.format)+" ناسم دی";case"not_multiple_of":return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${1<e.keys.length?"کلیډونه":"کلیډ"}: `+f(e.keys,", ");case"invalid_key":return`ناسم کلیډ په ${e.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${e.origin} کې`;default:return"ناسمه ورودي"}}};var Ns=()=>{const t={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"},map:{unit:"elementów",verb:"mieć"}};function r(e){return t[e]??null}const i={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",mac:"adres MAC",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",credit_card:"numer karty kredytowej",jwt:"JWT",template_literal:"wejście"},a={nan:"NaN",number:"liczba",array:"tablica"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano `+n:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano `+n;case"invalid_value":return 1===e.values.length?"Nieprawidłowe dane wejściowe: oczekiwano "+m(e.values[0]):"Nieprawidłowa opcja: oczekiwano jednej z wartości "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Za duża wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${t}${e.maximum.toString()} `+(n.unit??"elementów"):`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Za mała wartość: oczekiwano, że ${e.origin??"wartość"} będzie mieć ${n}${e.minimum.toString()} `+(t.unit??"elementów"):`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??"wartość"} będzie wynosić `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:"ends_with"===t.format?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:"includes"===t.format?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:"regex"===t.format?"Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi "+t.pattern:"Nieprawidłow(y/a/e) "+(i[t.format]??e.format);case"not_multiple_of":return"Nieprawidłowa liczba: musi być wielokrotnością "+e.divisor;case"unrecognized_keys":return`Nierozpoznane klucze${1<e.keys.length?"s":""}: `+f(e.keys,", ");case"invalid_key":return"Nieprawidłowy klucz w "+e.origin;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return"Nieprawidłowa wartość w "+e.origin;default:return"Nieprawidłowe dane wejściowe"}}};var js=()=>{const t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function r(e){return t[e]??null}const i={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"o intervalo de endereços IPv4",cidrv6:"o intervalo de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",jwt:"o JWT",template_literal:"a entrada"},n={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},a={string:{name:"texto",articles:n.masculine},number:{name:"número",articles:n.masculine},int:{name:"número inteiro",articles:n.masculine},boolean:{name:"valor booleano",articles:n.masculine},bigint:{name:"número bigint",articles:n.masculine},symbol:{name:"símbolo",articles:n.masculine},undefined:{name:'valor "undefined"',articles:n.masculine},null:{name:'valor "nulo"',articles:n.masculine},never:{name:'valor "never"',articles:n.masculine},void:{name:'valor "void"',articles:n.masculine},date:{name:"data",articles:n.feminine},array:{name:"vetor",articles:n.masculine},object:{name:"objeto",articles:n.masculine},tuple:{name:"tuplo",articles:n.masculine},record:{name:"registo",articles:n.masculine},map:{name:"mapa",articles:n.masculine},set:{name:"conjunto",articles:n.masculine},file:{name:"ficheiro",articles:n.masculine},nonoptional:{name:"valor não opcional",articles:n.masculine},nan:{name:'valor "NaN"',articles:n.masculine},function:{name:"função",articles:n.feminine}};function o(e,t){e=a[e]??{name:`valor "${e}"`,articles:n.masculine};return e.articles[t]+" "+e.name}return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: esperava ${o(e.expected,"indefinite")}, recebeu `+o(p(e.input),"indefinite");case"invalid_value":return 1===e.values.length?"Entrada inválida: esperava "+m(e.values[0]):"Opção inválida: esperava uma das seguintes opções: "+f(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Demasiado grande: esperava que ${o(e.origin,"definite")} tivesse ${t} ${e.maximum.toString()} `+(n.unit??"elementos"):`Demasiado grande: esperava que ${o(e.origin,"definite")} fosse ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Demasiado pequeno: esperava que ${o(e.origin,"definite")} tivesse ${n} ${e.minimum.toString()} `+(t.unit??"elementos"):`Demasiado pequeno: esperava que ${o(e.origin,"definite")} fosse ${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Texto inválido: deve começar por "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar em "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?"Texto inválido: deve corresponder ao padrão "+t.pattern:`Formato d${i[t.format]??e.format} inválido`;case"not_multiple_of":return"Número inválido: deve ser múltiplo de "+e.divisor;case"unrecognized_keys":n=1<e.keys.length?"s":"";return`Chave${n} inválida${n}: `+f(e.keys,", ");case"invalid_key":return"Entrada inválida n"+o(e.origin,"definite");case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"Valor de discriminação inválido. Esperava "+e.options.map(e=>`'${e}'`).join(" | "):"Entrada inválida";case"invalid_element":return"Entrada inválida n"+o(e.origin,"definite");default:return"Entrada inválida"}}};var Ps=()=>{const t={string:{unit:"caracteres"},file:{unit:"bytes"},array:{unit:"elementos"},set:{unit:"elementos"},map:{unit:"entradas"}};function r(e){return t[e]??null}const i={regex:"a entrada",email:"o endereço de e-mail",url:"o URL",emoji:"o emoji",uuid:"o UUID",uuidv4:"o UUIDv4",uuidv6:"o UUIDv6",nanoid:"o nanoid",guid:"o GUID",cuid:"o cuid",cuid2:"o cuid2",ulid:"o ULID",xid:"o XID",ksuid:"o KSUID",datetime:"a data e hora ISO",date:"a data ISO",time:"a hora ISO",duration:"a duração ISO",ipv4:"o endereço IPv4",ipv6:"o endereço IPv6",mac:"o endereço MAC",cidrv4:"a faixa de endereços IPv4",cidrv6:"a faixa de endereços IPv6",base64:"o texto codificado em base64",base64url:"o texto codificado em base64url",json_string:"o texto JSON",e164:"o número E.164",credit_card:"o número de cartão de crédito",jwt:"o JWT",template_literal:"a entrada"},n={masculine:{definite:"o",indefinite:"um"},feminine:{definite:"a",indefinite:"uma"}},a={string:{name:"texto",articles:n.masculine},number:{name:"número",articles:n.masculine},int:{name:"número inteiro",articles:n.masculine},boolean:{name:"valor booleano",articles:n.masculine},bigint:{name:"número bigint",articles:n.masculine},symbol:{name:"símbolo",articles:n.masculine},undefined:{name:'valor "undefined"',articles:n.masculine},null:{name:'valor "nulo"',articles:n.masculine},never:{name:'valor "never"',articles:n.masculine},void:{name:'valor "void"',articles:n.masculine},date:{name:"data",articles:n.feminine},array:{name:"vetor",articles:n.masculine},object:{name:"objeto",articles:n.masculine},tuple:{name:"tupla",articles:n.feminine},record:{name:"registro",articles:n.masculine},map:{name:"mapa",articles:n.masculine},set:{name:"conjunto",articles:n.masculine},file:{name:"arquivo",articles:n.masculine},nonoptional:{name:"valor não opcional",articles:n.masculine},nan:{name:'valor "NaN"',articles:n.masculine},function:{name:"função",articles:n.feminine}};function o(e,t){e=a[e]??{name:`valor "${e}"`,articles:n.masculine};return e.articles[t]+" "+e.name}return e=>{switch(e.code){case"invalid_type":return`Entrada inválida: esperava ${o(e.expected,"indefinite")}, recebeu `+o(p(e.input),"indefinite");case"invalid_value":return 1===e.values.length?"Entrada inválida: esperava "+m(e.values[0]):"Opção inválida: esperava uma das seguintes opções: "+f(e.values,"|");case"too_big":var t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Grande demais: esperava que ${o(e.origin,"definite")} tivesse ${t} ${e.maximum.toString()} `+(n.unit??"elementos"):`Grande demais: esperava que ${o(e.origin,"definite")} fosse ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Pequeno demais: esperava que ${o(e.origin,"definite")} tivesse ${n} ${e.minimum.toString()} `+(t.unit??"elementos"):`Pequeno demais: esperava que ${o(e.origin,"definite")} fosse ${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Texto inválido: deve começar com "${t.prefix}"`:"ends_with"===t.format?`Texto inválido: deve terminar com "${t.suffix}"`:"includes"===t.format?`Texto inválido: deve incluir "${t.includes}"`:"regex"===t.format?"Texto inválido: deve corresponder ao padrão "+t.pattern:`Formato d${i[t.format]??e.format} inválido`;case"not_multiple_of":return"Número inválido: deve ser múltiplo de "+e.divisor;case"unrecognized_keys":n=1<e.keys.length?"s":"";return`Chave${n} inválida${n}: `+f(e.keys,", ");case"invalid_key":return"Entrada inválida n"+o(e.origin,"definite");case"invalid_union":return e.options&&Array.isArray(e.options)&&0<e.options.length?"Valor de discriminação inválido. Esperava "+e.options.map(e=>`'${e}'`).join(" | "):"Entrada inválida";case"invalid_element":return"Entrada inválida n"+o(e.origin,"definite");default:return"Entrada inválida"}}};var Us=()=>{const t={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function r(e){return t[e]??null}const i={regex:"intrare",email:"adresă de 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:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",credit_card:"număr de card de credit",jwt:"JWT",template_literal:"intrare"},a={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`Intrare invalidă: așteptat ${t}, primit `+(a[n]??n);case"invalid_value":return 1===e.values.length?"Intrare invalidă: așteptat "+m(e.values[0]):"Opțiune invalidă: așteptat una dintre "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Prea mare: așteptat ca ${e.origin??"valoarea"} ${n.verb} ${t}${e.maximum.toString()} `+(n.unit??"elemente"):`Prea mare: așteptat ca ${e.origin??"valoarea"} să fie `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Prea mic: așteptat ca ${e.origin} ${t.verb} ${n}${e.minimum.toString()} `+t.unit:`Prea mic: așteptat ca ${e.origin} să fie `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:"ends_with"===t.format?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:"includes"===t.format?`Șir invalid: trebuie să includă "${t.includes}"`:"regex"===t.format?"Șir invalid: trebuie să se potrivească cu modelul "+t.pattern:"Format invalid: "+(i[t.format]??e.format);case"not_multiple_of":return"Număr invalid: trebuie să fie multiplu de "+e.divisor;case"unrecognized_keys":return"Chei nerecunoscute: "+f(e.keys,", ");case"invalid_key":return"Cheie invalidă în "+e.origin;case"invalid_union":return"Intrare invalidă";case"invalid_element":return"Valoare invalidă în "+e.origin;default:return"Intrare invalidă"}}};function Ds(e,t,n,r){var e=Math.abs(e),i=e%10,e=e%100;return 11<=e&&e<=19?r:1==i?t:2<=i&&i<=4?n:r}var As=()=>{const t={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},map:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function r(e){return t[e]??null}const i={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",mac:"MAC адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",credit_card:"номер кредитной карты",jwt:"JWT",template_literal:"ввод"},a={nan:"NaN",number:"число",array:"массив"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено `+n:`Неверный ввод: ожидалось ${t}, получено `+n;case"invalid_value":return 1===e.values.length?"Неверный ввод: ожидалось "+m(e.values[0]):"Неверный вариант: ожидалось одно из "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?(n=Ds(Number(e.maximum),n.unit.one,n.unit.few,n.unit.many),`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет иметь ${t}${e.maximum.toString()} `+n):`Слишком большое значение: ожидалось, что ${e.origin??"значение"} будет `+t+e.maximum.toString();case"too_small":var n=e.inclusive?">=":">",t=r(e.origin);return t?(t=Ds(Number(e.minimum),t.unit.one,t.unit.few,t.unit.many),`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} `+t):`Слишком маленькое значение: ожидалось, что ${e.origin} будет `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Неверная строка: должна начинаться с "${t.prefix}"`:"ends_with"===t.format?`Неверная строка: должна заканчиваться на "${t.suffix}"`:"includes"===t.format?`Неверная строка: должна содержать "${t.includes}"`:"regex"===t.format?"Неверная строка: должна соответствовать шаблону "+t.pattern:"Неверный "+(i[t.format]??e.format);case"not_multiple_of":return"Неверное число: должно быть кратным "+e.divisor;case"unrecognized_keys":return`Нераспознанн${1<e.keys.length?"ые":"ый"} ключ${1<e.keys.length?"и":""}: `+f(e.keys,", ");case"invalid_key":return"Неверный ключ в "+e.origin;case"invalid_union":return"Неверные входные данные";case"invalid_element":return"Неверное значение в "+e.origin;default:return"Неверные входные данные"}}};var Es=()=>{const t={string:{unit:"znakov",verb:"mať"},file:{unit:"bajtov",verb:"mať"},array:{unit:"prvkov",verb:"mať"},set:{unit:"prvkov",verb:"mať"},map:{unit:"položiek",verb:"mať"}};function r(e){return t[e]??null}const i={regex:"regulárny výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dátum a čas vo formáte ISO",date:"dátum vo formáte ISO",time:"čas vo formáte ISO",duration:"doba trvania ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",mac:"MAC adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"reťazec zakódovaný vo formáte base64",base64url:"reťazec zakódovaný vo formáte base64url",json_string:"reťazec vo formáte JSON",e164:"číslo E.164",credit_card:"číslo kreditnej karty",jwt:"JWT",template_literal:"vstup"},a={nan:"NaN",number:"číslo",string:"reťazec",function:"funkcia",array:"pole"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očakávané instanceof ${e.expected}, obdržané `+n:`Neplatný vstup: očakávané ${t}, obdržané `+n;case"invalid_value":return 1===e.values.length?"Neplatný vstup: očakávané "+m(e.values[0]):"Neplatný vstup: očakávaná jedna z hodnôt "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Hodnota je príliš veľká: ${e.origin??"hodnota"} musí mať ${t}${e.maximum.toString()} `+(n.unit??"prvkov"):`Hodnota je príliš veľká: ${e.origin??"hodnota"} musí byť `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Hodnota je príliš malá: ${e.origin??"hodnota"} musí mať ${n}${e.minimum.toString()} `+(t.unit??"prvkov"):`Hodnota je príliš malá: ${e.origin??"hodnota"} musí byť `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Neplatný reťazec: musí začínať na "${t.prefix}"`:"ends_with"===t.format?`Neplatný reťazec: musí končiť na "${t.suffix}"`:"includes"===t.format?`Neplatný reťazec: musí obsahovať "${t.includes}"`:"regex"===t.format?"Neplatný reťazec: musí zodpovedať vzoru "+t.pattern:"Neplatný formát "+(i[t.format]??e.format);case"not_multiple_of":return"Neplatné číslo: musí byť násobkom "+e.divisor;case"unrecognized_keys":return"Neznáme klúče: "+f(e.keys,", ");case"invalid_key":return"Neplatný klúč v "+e.origin;case"invalid_union":return"Neplatný vstup";case"invalid_element":return"Neplatná hodnota v "+e.origin;default:return"Neplatný vstup"}}};var Ts=()=>{const t={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"},map:{unit:"elementov",verb:"imeti"}};function r(e){return t[e]??null}const i={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",mac:"MAC naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",credit_card:"številka kreditne kartice",jwt:"JWT",template_literal:"vnos"},a={nan:"NaN",number:"število",array:"tabela"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto `+n:`Neveljaven vnos: pričakovano ${t}, prejeto `+n;case"invalid_value":return 1===e.values.length?"Neveljaven vnos: pričakovano "+m(e.values[0]):"Neveljavna možnost: pričakovano eno izmed "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} imelo ${t}${e.maximum.toString()} `+(n.unit??"elementov"):`Preveliko: pričakovano, da bo ${e.origin??"vrednost"} `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} `+t.unit:`Premajhno: pričakovano, da bo ${e.origin} `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Neveljaven niz: mora se začeti z "${t.prefix}"`:"ends_with"===t.format?`Neveljaven niz: mora se končati z "${t.suffix}"`:"includes"===t.format?`Neveljaven niz: mora vsebovati "${t.includes}"`:"regex"===t.format?"Neveljaven niz: mora ustrezati vzorcu "+t.pattern:"Neveljaven "+(i[t.format]??e.format);case"not_multiple_of":return"Neveljavno število: mora biti večkratnik "+e.divisor;case"unrecognized_keys":return`Neprepoznan${1<e.keys.length?"i ključi":" ključ"}: `+f(e.keys,", ");case"invalid_key":return"Neveljaven ključ v "+e.origin;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return"Neveljavna vrednost v "+e.origin;default:return"Neveljaven vnos"}}};var Ls=()=>{const t={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"},map:{unit:"objekt",verb:"att innehålla"}};function r(e){return t[e]??null}const i={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-adress",ipv6:"IPv6-adress",mac:"MAC-adress",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",credit_card:"kreditkortsnummer",jwt:"JWT",template_literal:"mall-literal"},a={nan:"NaN",number:"antal",array:"lista"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick `+n:`Ogiltig inmatning: förväntat ${t}, fick `+n;case"invalid_value":return 1===e.values.length?"Ogiltig inmatning: förväntat "+m(e.values[0]):"Ogiltigt val: förväntade en av "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`För stor(t): förväntade ${e.origin??"värdet"} att ha ${t}${e.maximum.toString()} `+(n.unit??"element"):`För stor(t): förväntat ${e.origin??"värdet"} att ha `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`För lite(t): förväntade ${e.origin??"värdet"} att ha ${n}${e.minimum.toString()} `+t.unit:`För lite(t): förväntade ${e.origin??"värdet"} att ha `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Ogiltig sträng: måste börja med "${t.prefix}"`:"ends_with"===t.format?`Ogiltig sträng: måste sluta med "${t.suffix}"`:"includes"===t.format?`Ogiltig sträng: måste innehålla "${t.includes}"`:"regex"===t.format?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:"Ogiltig(t) "+(i[t.format]??e.format);case"not_multiple_of":return"Ogiltigt tal: måste vara en multipel av "+e.divisor;case"unrecognized_keys":return`${1<e.keys.length?"Okända nycklar":"Okänd nyckel"}: `+f(e.keys,", ");case"invalid_key":return"Ogiltig nyckel i "+(e.origin??"värdet");case"invalid_union":return"Ogiltig input";case"invalid_element":return"Ogiltigt värde i "+(e.origin??"värdet");default:return"Ogiltig input"}}};var Cs=()=>{const t={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},map:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function r(e){return t[e]??null}const i={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",mac:"MAC முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",credit_card:"கடன் அட்டை எண்",jwt:"JWT",template_literal:"input"},a={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது `+n:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது `+n;case"invalid_value":return 1===e.values.length?"தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது "+m(e.values[0]):`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${f(e.values,"|")} இல் ஒன்று`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${t}${e.maximum.toString()} ${n.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??"மதிப்பு"} ${t}${e.maximum.toString()} ஆக இருக்க வேண்டும்`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${t.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`;case"invalid_format":t=e;return"starts_with"===t.format?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:"ends_with"===t.format?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:"includes"===t.format?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:"regex"===t.format?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:"தவறான "+(i[t.format]??e.format);case"not_multiple_of":return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${1<e.keys.length?"கள்":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" இல் தவறான விசை";case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return e.origin+" இல் தவறான மதிப்பு";default:return"தவறான உள்ளீடு"}}};var Zs=()=>{const t={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"},map:{unit:"รายการ",verb:"ควรมี"}};function r(e){return t[e]??null}const i={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",mac:"ที่อยู่ MAC",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",credit_card:"หมายเลขบัตรเครดิต",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},a={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ `+n:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ `+n;case"invalid_value":return 1===e.values.length?"ค่าไม่ถูกต้อง: ควรเป็น "+m(e.values[0]):"ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน "+f(e.values,"|");case"too_big":t=e.inclusive?"ไม่เกิน":"น้อยกว่า",n=r(e.origin);return n?`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${t} ${e.maximum.toString()} `+(n.unit??"รายการ"):`เกินกำหนด: ${e.origin??"ค่า"} ควรมี${t} `+e.maximum.toString();case"too_small":n=e.inclusive?"อย่างน้อย":"มากกว่า",t=r(e.origin);return t?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} `+t.unit:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:"ends_with"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:"includes"===t.format?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:"regex"===t.format?"รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด "+t.pattern:"รูปแบบไม่ถูกต้อง: "+(i[t.format]??e.format);case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case"unrecognized_keys":return"พบคีย์ที่ไม่รู้จัก: "+f(e.keys,", ");case"invalid_key":return"คีย์ไม่ถูกต้องใน "+e.origin;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return"ข้อมูลไม่ถูกต้องใน "+e.origin;default:return"ข้อมูลไม่ถูกต้อง"}}};var Rs=()=>{const t={string:{unit:"simwol",verb:"bolmaly"},file:{unit:"baýt",verb:"bolmaly"},array:{unit:"elementler",verb:"bolmaly"},set:{unit:"elementler",verb:"bolmaly"},map:{unit:"elementler",verb:"bolmaly"}};function r(e){return t[e]??null}const i={regex:"giriş",email:"e-poçta salgysy",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 sene we wagt",date:"ISO sene",time:"ISO wagt",duration:"ISO wagt aralygy",ipv4:"IPv4 salgysy",ipv6:"IPv6 salgysy",mac:"MAC salgysy",cidrv4:"IPv4 aralygy",cidrv6:"IPv6 aralygy",base64:"base64 bilen şifrlenen setir",base64url:"base64url bilen şifrlenen setir",json_string:"JSON setiri",e164:"E.164 nomeri",credit_card:"kredit kartynyň nomeri",jwt:"JWT",template_literal:"şablon"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input);return`Nädogry baha: garaşylan ${t} ýerine ${a[n]??n} alyndy`;case"invalid_value":return 1===e.values.length?`Nädogry baha: ${m(e.values[0])} bolmaly`:"Nädogry saýlaw: aşakdakylardan biri bolmaly: "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Has uly: garaşylýan ${e.origin??"baha"} ${t} ${e.maximum.toString()} `+(n.unit??"element"):`Has uly: garaşylýan ${e.origin??"baha"} ${t} `+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Has kiçi: garaşylýan ${e.origin} ${n} ${e.minimum.toString()} `+t.unit:`Has kiçi: garaşylýan ${e.origin} ${n} `+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Nädogry setir: "${t.prefix}" bilen başlamaly`:"ends_with"===t.format?`Nädogry setir: "${t.suffix}" bilen gutarmaly`:"includes"===t.format?`Nädogry setir: "${t.includes}" saklamaly`:"regex"===t.format?`Nädogry setir: ${t.pattern} nusga laýyk bolmaly`:"Nädogry "+(i[t.format]??e.format);case"not_multiple_of":return`Nädogry san: ${e.divisor} bilen galyndysyz bölünmeli`;case"unrecognized_keys":return`Tanalmaýan açar${1<e.keys.length?"lar":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" içinde nädogry açar";case"invalid_union":return"Nädogry baha";case"invalid_element":return e.origin+" içinde nädogry baha";default:return"Nädogry baha"}}};var Ms=()=>{const t={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"},map:{unit:"öğe",verb:"olmalı"}};function r(e){return t[e]??null}const i={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",mac:"MAC adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",credit_card:"kredi kartı numarası",jwt:"JWT",template_literal:"Şablon dizesi"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan `+n:`Geçersiz değer: beklenen ${t}, alınan `+n;case"invalid_value":return 1===e.values.length?"Geçersiz değer: beklenen "+m(e.values[0]):"Geçersiz seçenek: aşağıdakilerden biri olmalı: "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Çok büyük: beklenen ${e.origin??"değer"} ${t}${e.maximum.toString()} `+(n.unit??"öğe"):`Çok büyük: beklenen ${e.origin??"değer"} `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} `+t.unit:`Çok küçük: beklenen ${e.origin} `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Geçersiz metin: "${t.prefix}" ile başlamalı`:"ends_with"===t.format?`Geçersiz metin: "${t.suffix}" ile bitmeli`:"includes"===t.format?`Geçersiz metin: "${t.includes}" içermeli`:"regex"===t.format?`Geçersiz metin: ${t.pattern} desenine uymalı`:"Geçersiz "+(i[t.format]??e.format);case"not_multiple_of":return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${1<e.keys.length?"lar":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" içinde geçersiz anahtar";case"invalid_union":return"Geçersiz değer";case"invalid_element":return e.origin+" içinde geçersiz değer";default:return"Geçersiz değer"}}};var Fs=()=>{const t={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"},map:{unit:"елементів",verb:"матиме"}};function r(e){return t[e]??null}const i={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",mac:"адреса MAC",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",credit_card:"номер кредитної картки",jwt:"JWT",template_literal:"вхідні дані"},a={nan:"NaN",number:"число",array:"масив"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано `+n:`Неправильні вхідні дані: очікується ${t}, отримано `+n;case"invalid_value":return 1===e.values.length?"Неправильні вхідні дані: очікується "+m(e.values[0]):"Неправильна опція: очікується одне з "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Занадто велике: очікується, що ${e.origin??"значення"} ${n.verb} ${t}${e.maximum.toString()} `+(n.unit??"елементів"):`Занадто велике: очікується, що ${e.origin??"значення"} буде `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Занадто мале: очікується, що ${e.origin} ${t.verb} ${n}${e.minimum.toString()} `+t.unit:`Занадто мале: очікується, що ${e.origin} буде `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Неправильний рядок: повинен починатися з "${t.prefix}"`:"ends_with"===t.format?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:"includes"===t.format?`Неправильний рядок: повинен містити "${t.includes}"`:"regex"===t.format?"Неправильний рядок: повинен відповідати шаблону "+t.pattern:"Неправильний "+(i[t.format]??e.format);case"not_multiple_of":return"Неправильне число: повинно бути кратним "+e.divisor;case"unrecognized_keys":return`Нерозпізнаний ключ${1<e.keys.length?"і":""}: `+f(e.keys,", ");case"invalid_key":return"Неправильний ключ у "+e.origin;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return"Неправильне значення у "+e.origin;default:return"Неправильні вхідні дані"}}};function Ks(){return{localeError:Fs()}}var Vs=()=>{const t={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"},map:{unit:"آئٹمز",verb:"ہونا"}};function r(e){return t[e]??null}const i={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",mac:"ایم اے سی ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",credit_card:"کریڈٹ کارڈ نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},a={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${n} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${n} موصول ہوا`;case"invalid_value":return 1===e.values.length?`غلط ان پٹ: ${m(e.values[0])} متوقع تھا`:`غلط آپشن: ${f(e.values,"|")} میں سے ایک متوقع تھا`;case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`بہت بڑا: ${e.origin??"ویلیو"} کے ${t}${e.maximum.toString()} ${n.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??"ویلیو"} کا ${t}${e.maximum.toString()} ہونا متوقع تھا`;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${t.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`;case"invalid_format":t=e;return"starts_with"===t.format?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:"ends_with"===t.format?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:"includes"===t.format?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:"regex"===t.format?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:"غلط "+(i[t.format]??e.format);case"not_multiple_of":return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${1<e.keys.length?"ز":""}: `+f(e.keys,"، ");case"invalid_key":return e.origin+" میں غلط کی";case"invalid_union":return"غلط ان پٹ";case"invalid_element":return e.origin+" میں غلط ویلیو";default:return"غلط ان پٹ"}}};var Js=()=>{const t={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function r(e){return t[e]??null}const i={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",credit_card:"kredit karta raqami",jwt:"JWT",template_literal:"kirish"},a={nan:"NaN",number:"raqam",array:"massiv"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan `+n:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan `+n;case"invalid_value":return 1===e.values.length?"Noto‘g‘ri kirish: kutilgan "+m(e.values[0]):"Noto‘g‘ri variant: quyidagilardan biri kutilgan "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Juda katta: kutilgan ${e.origin??"qiymat"} ${t}${e.maximum.toString()} ${n.unit} `+n.verb:`Juda katta: kutilgan ${e.origin??"qiymat"} `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${t.unit} `+t.verb:`Juda kichik: kutilgan ${e.origin} `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:"ends_with"===t.format?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:"includes"===t.format?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:"regex"===t.format?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:"Noto‘g‘ri "+(i[t.format]??e.format);case"not_multiple_of":return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${1<e.keys.length?"lar":""}: `+f(e.keys,", ");case"invalid_key":return e.origin+" dagi kalit noto‘g‘ri";case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return e.origin+" da noto‘g‘ri qiymat";default:return"Noto‘g‘ri kirish"}}};var Bs=()=>{const t={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"},map:{unit:"phần tử",verb:"có"}};function r(e){return t[e]??null}const i={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",mac:"địa chỉ MAC",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",credit_card:"số thẻ tín dụng",jwt:"JWT",template_literal:"đầu vào"},a={nan:"NaN",number:"số",array:"mảng"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được `+n:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được `+n;case"invalid_value":return 1===e.values.length?"Đầu vào không hợp lệ: mong đợi "+m(e.values[0]):"Tùy chọn không hợp lệ: mong đợi một trong các giá trị "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Quá lớn: mong đợi ${e.origin??"giá trị"} ${n.verb} ${t}${e.maximum.toString()} `+(n.unit??"phần tử"):`Quá lớn: mong đợi ${e.origin??"giá trị"} `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Quá nhỏ: mong đợi ${e.origin} ${t.verb} ${n}${e.minimum.toString()} `+t.unit:`Quá nhỏ: mong đợi ${e.origin} `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:"ends_with"===t.format?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:"includes"===t.format?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:"regex"===t.format?"Chuỗi không hợp lệ: phải khớp với mẫu "+t.pattern:(i[t.format]??e.format)+" không hợp lệ";case"not_multiple_of":return"Số không hợp lệ: phải là bội số của "+e.divisor;case"unrecognized_keys":return"Khóa không được nhận dạng: "+f(e.keys,", ");case"invalid_key":return"Khóa không hợp lệ trong "+e.origin;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return"Giá trị không hợp lệ trong "+e.origin;default:return"Đầu vào không hợp lệ"}}};var qs=()=>{const t={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"},map:{unit:"项",verb:"包含"}};function r(e){return t[e]??null}const i={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",mac:"MAC地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",credit_card:"信用卡号",jwt:"JWT",template_literal:"输入"},a={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 `+n:`无效输入:期望 ${t},实际接收 `+n;case"invalid_value":return 1===e.values.length?"无效输入:期望 "+m(e.values[0]):"无效选项:期望以下之一 "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`数值过大:期望 ${e.origin??"值"} ${t}${e.maximum.toString()} `+(n.unit??"个元素"):`数值过大:期望 ${e.origin??"值"} `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} `+t.unit:`数值过小:期望 ${e.origin} `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`无效字符串:必须以 "${t.prefix}" 开头`:"ends_with"===t.format?`无效字符串:必须以 "${t.suffix}" 结尾`:"includes"===t.format?`无效字符串:必须包含 "${t.includes}"`:"regex"===t.format?"无效字符串:必须满足正则表达式 "+t.pattern:"无效"+(i[t.format]??e.format);case"not_multiple_of":return`无效数字:必须是 ${e.divisor} 的倍数`;case"unrecognized_keys":return"出现未知的键(key): "+f(e.keys,", ");case"invalid_key":return e.origin+" 中的键(key)无效";case"invalid_union":return"无效输入";case"invalid_element":return e.origin+" 中包含无效值(value)";default:return"无效输入"}}};var Ws=()=>{const t={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"},map:{unit:"項目",verb:"擁有"}};function r(e){return t[e]??null}const i={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",mac:"MAC 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",credit_card:"信用卡號",jwt:"JWT",template_literal:"輸入"},a={nan:"NaN"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 `+n:`無效的輸入值:預期為 ${t},但收到 `+n;case"invalid_value":return 1===e.values.length?"無效的輸入值:預期為 "+m(e.values[0]):"無效的選項:預期為以下其中之一 "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`數值過大:預期 ${e.origin??"值"} 應為 ${t}${e.maximum.toString()} `+(n.unit??"個元素"):`數值過大:預期 ${e.origin??"值"} 應為 `+t+e.maximum.toString();case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} `+t.unit:`數值過小:預期 ${e.origin} 應為 `+n+e.minimum.toString();case"invalid_format":t=e;return"starts_with"===t.format?`無效的字串:必須以 "${t.prefix}" 開頭`:"ends_with"===t.format?`無效的字串:必須以 "${t.suffix}" 結尾`:"includes"===t.format?`無效的字串:必須包含 "${t.includes}"`:"regex"===t.format?"無效的字串:必須符合格式 "+t.pattern:"無效的 "+(i[t.format]??e.format);case"not_multiple_of":return`無效的數字:必須為 ${e.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${1<e.keys.length?"們":""}:`+f(e.keys,"、");case"invalid_key":return e.origin+" 中有無效的鍵值";case"invalid_union":return"無效的輸入值";case"invalid_element":return e.origin+" 中有無效的值";default:return"無效的輸入值"}}};var Gs=()=>{const t={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"},map:{unit:"nkan",verb:"ní"}};function r(e){return t[e]??null}const i={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",mac:"àdírẹ́sì MAC",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",credit_card:"nọmba kaadi gbese",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},a={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return e=>{switch(e.code){case"invalid_type":var t=a[e.expected]??e.expected,n=p(e.input),n=a[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí `+n:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí `+n;case"invalid_value":return 1===e.values.length?"Ìbáwọlé aṣìṣe: a ní láti fi "+m(e.values[0]):"Àṣàyàn aṣìṣe: yan ọ̀kan lára "+f(e.values,"|");case"too_big":t=e.inclusive?"<=":"<",n=r(e.origin);return n?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??"iye"} ${n.verb} ${t}${e.maximum} `+n.unit:"Tó pọ̀ jù: a ní láti jẹ́ "+t+e.maximum;case"too_small":n=e.inclusive?">=":">",t=r(e.origin);return t?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${t.verb} ${n}${e.minimum} `+t.unit:"Kéré ju: a ní láti jẹ́ "+n+e.minimum;case"invalid_format":t=e;return"starts_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:"ends_with"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:"includes"===t.format?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:"regex"===t.format?"Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu "+t.pattern:"Aṣìṣe: "+(i[t.format]??e.format);case"not_multiple_of":return"Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti "+e.divisor;case"unrecognized_keys":return"Bọtìnì àìmọ̀: "+f(e.keys,", ");case"invalid_key":return"Bọtìnì aṣìṣe nínú "+e.origin;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return"Iye aṣìṣe nínú "+e.origin;default:return"Ìbáwọlé aṣìṣe"}}};var Xs=Symbol("ZodOutput"),Ys=Symbol("ZodInput"),Hs=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){t=t[0];return this._map.set(e,t),t&&"object"==typeof t&&"id"in t&&this._idmap.set(t.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){var t=this._map.get(e);return t&&"object"==typeof t&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){var t=e._zod.parent;return t?(delete(t={...this.get(t)??{}}).id,t={...t,...this._map.get(e)},Object.keys(t).length?t:void 0):this._map.get(e)}has(e){return this._map.has(e)}};function Qs(){return new Hs}(Kt=globalThis).__zod_globalRegistry??(Kt.__zod_globalRegistry=Qs());var eu=globalThis.__zod_globalRegistry,tu=Symbol.for("zod.compile.invalid"),nu=Symbol.for("zod.compile.fallback"),ru=class extends Error{constructor(e="z.compile does not support async refinements, transforms, or checks"){super(e),this.name="ZodCompileAsyncError"}},N=class extends Error{constructor(e,t=!0){super(`z.compile does not support ${e}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=t}};function iu(t,n){try{const u=au(t);var e=I(t),r=t._zod.run;const l=r.__originalRun??r;var i=(e,t)=>{if(!(t?.async||"backward"===t?.direction||t?.skipChecks||t?.[nu]||t&&Do(t,e.value))){var n=u(e.value);if(n!==tu)return e.value=n,e;t&&(t[nu]=!0)}return l(e,t)};if(i.__originalRun=l,e._zod.bag.fallbackRun=l,e._zod.bag.validator=function(e,t){try{return au(e,{assertOnly:!0})}catch{return t}}(t,u),e._zod.run=i,!r.__originalRun){var a=e,o=t,s=u;if("function"==typeof o.safeParse){const c=o.safeParse;a.safeParse=(e,t)=>{var n=s(e);return n!==tu?{success:!0,data:n}:c(e,t)}}if("function"==typeof o.parse){const d=o.parse;a.parse=(e,t)=>{var n=s(e);return n!==tu?n:d(e,t)}}}return e}catch(e){if(n?.strict)throw e;return t}}function au(e,t){let n=!0;try{n=No(e)}catch{}if(n)throw new N("a schema whose subtree contains a reference cycle");var r={constants:new Map,constantCounter:0,varCounter:0},i=new fi(["input"]),e=O(i,r,e,"input",!t?.assertOnly),e=(i.write(null===e?"return true;":`return ${e};`),["INVALID",...r.constants.keys()]),r=[tu,...r.constants.values()],i=i.content.join("\n"),a=t?.debug?0<e.length?`// Constants: ${e.join(", ")}
`+i:i:"",o=Function,i=`return (input) => {
${i}
}`;let s;try{var u=new o(...e,i);s=u(...r)}catch(e){throw new N(`this schema (generated code failed to evaluate: ${e.message})`)}return t?.debug&&(s.code=a),s}function j(e,t){for(var[n,r]of e.constants)if(r===t)return n;var i="c"+e.constantCounter++;return e.constants.set(i,t),i}function U(e){return"v"+e.varCounter++}function ou(e,t){e=e._zod.run({value:t,issues:[]},{});return(!e||"function"!=typeof e.then)&&0===e.issues.length?e.value:tu}function su(t,n,r,i,a=!0){var o=t.content.length,s=n.constants.size,u=n.constantCounter,l=n.varCounter;try{return O(t,n,r,i,a)}catch(e){if(!(e instanceof N&&e.islandable))throw e;if(t.content.length=o,n.constants.size>s)for(const c of Array.from(n.constants.keys()).slice(s))n.constants.delete(c);return n.constantCounter=u,n.varCounter=l,a=t,o=i,u=j(s=n,u=r),l=j(s,ou),s=U(s),a.write(`const ${s} = ${l}(${u}, ${o});`),a.write(`if (${s} === INVALID) return INVALID;`),s}}var uu=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function lu(e,t,n,r){var i,a,n=n._zod.def.checks;if(!n||0===n.length)return r;let o=r;for(const S of n){var s=S._zod.def;if(s.when&&!uu.has(s.check))throw new N('check with a custom "when" condition');switch(s.check){case"greater_than":i=o,a=void 0,a=s.inclusive?"<":"<=",e.write(`if (${i} ${a} ${fu(t,s.value)}) return INVALID;`);break;case"less_than":i=o,a=void 0,a=s.inclusive?">":">=",e.write(`if (${i} ${a} ${fu(t,s.value)}) return INVALID;`);break;case"multiple_of":d=c=l=u=void 0;var u=e,l=t,c=s,d=o;if("bigint"==typeof c.value){if(c.value===BigInt(0))throw new N("multiple_of check with a zero divisor");u.write(`if (${d} % ${c.value}n !== 0n) return INVALID;`)}else{l=j(l,Be);u.write(`if (${l}(${d}, ${du(c.value,"multiple_of")}) !== 0) return INVALID;`)}break;case"number_format":mu(e,s,o);break;case"min_length":u=du(s.minimum,"min_length"),l=cu(e,t,o,`${o}.length >= ${u} && ${o}.length < `+2*s.minimum);e.write(`if (${l} < ${u}) return INVALID;`);break;case"max_length":d=du(s.maximum,"max_length"),c=cu(e,t,o,o+".length > "+d);e.write(`if (${c} > ${d}) return INVALID;`);break;case"length_equals":var f=du(s.length,"length_equals"),m=cu(e,t,o,`${o}.length >= ${f} && ${o}.length <= `+2*s.length);e.write(`if (${m} !== ${f}) return INVALID;`);break;case"min_size":e.write(`if (${o}.size < ${du(s.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${o}.size > ${du(s.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${o}.size !== ${du(s.size,"size_equals")}) return INVALID;`);break;case"string_format":o=gu(e,t,s,o);break;case"custom":o=function(e,t,n,r){var i=n._zod.def;if(i.fn){if($u(i.fn))throw new ru("z.compile: async .refine() predicates are not supported");var i=j(t,i.fn),a=j(t,pu),o=U(t);return e.write(`const ${o} = ${i}(${r});`),e.write(`if (${o} instanceof Promise) ${a}();`),e.write(`if (!${o}) return INVALID;`),r}if(n._zod.check){if($u(n._zod.check))throw new ru("z.compile: async .superRefine() / check functions are not supported");const s=n._zod.check;i=j(t,e=>{e={value:e,issues:[],addIssue:hu};return s(e)instanceof Promise&&pu(),0===e.issues.length?e.value:tu}),a=U(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}throw new N("custom check without a predicate or check function")}(e,t,S,o);break;case"bigint_format":v=h=m=p=void 0;var p=e,m=s,h=o,v=m.format;if(v)switch(v){case"int64":p.write(`if (${h} < -9223372036854775808n || ${h} > 9223372036854775807n) return INVALID;`);break;case"uint64":p.write(`if (${h} < 0n || ${h} > 18446744073709551615n) return INVALID;`);break;default:throw new N("bigint format "+v)}break;case"mime_type":b=y=g=f=void 0;var f=e,g=t,y=s,b=o;(y=y.mime)&&0<y.length&&(g=j(g,new Set(y)),f.write(`if (!${g}.has(${b}.type)) return INVALID;`));break;case"property":_=b=g=y=void 0;var y=e,g=t,b=s,_=o;_=`${_}[${JSON.stringify(b.property)}]`,O(y,g,b.schema,_);break;case"overwrite":var _=U(t),w=(x=I=$=k=w=void 0,e),k=t,$=S,I=o,x=_;if(!($=$._zod.def.tx))throw new N("overwrite check without a transform function");if($u($))throw new ru("z.compile: async overwrite transforms are not supported");k=j(k,$),w.write(`const ${x} = ${k}(${I});`),o=_;break;default:throw new N("check type "+s.check)}}return o}function cu(e,t,n,r){var i=j(t,yt),t=U(t);return e.write(`const ${t} = typeof ${n} === "string" && ${r} ? ${i}(${n}) : ${n}.length;`),t}function du(e,t){if("number"==typeof e&&Number.isFinite(e))return""+e;throw new N(t+" bound of type "+typeof e)}function fu(e,t){if("bigint"==typeof t)return t+"n";if("number"==typeof t){if(Number.isNaN(t))throw new N("comparison check with NaN bound");return""+t}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new N("comparison check with Invalid Date bound");return j(e,t)}throw new N("comparison check bound of type "+typeof t)}function mu(e,t,n){var r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new N("number format "+r)}}function pu(){throw new Tt}function hu(e){this.issues.push(e)}var vu=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function gu(e,t,n,r){var i=n.format;if("base64"===i)a=j(t,qi),e.write(`if (!${a}(${r})) return INVALID;`);else if("base64url"===i)a=j(t,Gi),e.write(`if (!${a}(${r})) return INVALID;`);else if("jwt"===i)a=j(t,ta),s=j(t,n.alg??null),e.write(`if (!${a}(${r}, ${s})) return INVALID;`);else if("ipv6"===i)a=j(t,Mi),e.write(`if (!${a}(${r})) return INVALID;`);else if("cidrv6"===i)s=j(t,Ji),e.write(`if (!${s}(${r})) return INVALID;`);else if("credit_card"===i)a=j(t,Qi),e.write(`if (!${a}(${r})) return INVALID;`);else{var a,o,s=n;if("url"===i||"httpurl"===i||s.normalize||void 0!==s.hostname||void 0!==s.protocol)return a=j(t,ki),o=j(t,n),u=U(t),l=U(t),e.write(`const ${u} = ${r}.trim();`),e.write(`const ${l} = ${a}(${u}, ${o});`),e.write(`if (typeof ${l} === "number") return INVALID;`),void 0!==s.hostname&&(a=j(t,xi),e.write(`if (!${a}(${l}, ${o}.hostname)) return INVALID;`)),void 0!==s.protocol&&(a=j(t,Si),e.write(`if (!${a}(${l}, ${o}.protocol)) return INVALID;`)),a=U(t),o=s.normalize?l+".href":j(t,Ii)+`(${u})`,e.write(`const ${a} = ${o};`),a;var u,s=n.fn;if(s){if($u(s))throw new N("async string format "+i);var l=j(t,s);e.write(`if (!${l}(${r})) return INVALID;`)}else if(vu.has(i)&&n.pattern)u=j(t,n.pattern),e.write(u+".lastIndex = 0;"),e.write(`if (!${u}.test(${r})) return INVALID;`);else{var c=n.format;switch(c){case"regex":throw new N("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${Xe(n.includes)})) return INVALID;`);break;case"starts_with":var d=n.prefix;e.write(`if (${r}.slice(0, ${d.length}) !== ${Xe(d)}) return INVALID;`);break;case"ends_with":d=n.suffix;e.write(`if (${r}.slice(-${d.length}) !== ${Xe(d)}) return INVALID;`);break;default:throw new N("string format "+c)}}}return r}function O(e,t,n,r,i=!0){var a=n._zod.def,o=a.type;if(a.coerce)throw new N(`coercion (z.coerce.${o}())`);var s,u,l,c,d,f,m,p=i||!!a.checks?.length;let h;switch(o){case"string":h=function(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);n=n._zod.def;return void 0===n.format?r:gu(e,t,n,r)}(e,t,n,r);break;case"number":h=function(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);t=t._zod.def;"number_format"===t.check&&t.format&&mu(e,{format:t.format},n);return n}(e,n,r);break;case"boolean":h=(m=r,e.write(`if (typeof ${m} !== "boolean") return INVALID;`),m);break;case"bigint":h=function(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);t=t._zod.def;if(t.format)switch(t.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`)}return n}(e,n,r);break;case"symbol":h=(m=r,e.write(`if (typeof ${m} !== "symbol") return INVALID;`),m);break;case"undefined":h=(f=r,e.write(`if (${f} !== undefined) return INVALID;`),f);break;case"null":h=(f=r,e.write(`if (${f} !== null) return INVALID;`),f);break;case"any":case"unknown":h=r;break;case"never":e.write("return INVALID;"),h=r;break;case"void":h=(d=r,e.write(`if (${d} !== undefined) return INVALID;`),d);break;case"nan":h=(d=r,e.write(`if (typeof ${d} !== "number" || !Number.isNaN(${d})) return INVALID;`),d);break;case"date":h=(v=r,e.write(`if (!(${v} instanceof Date) || Number.isNaN(${v}.getTime())) return INVALID;`),v);break;case"object":h=function(e,n,t,r,i){const a=t._zod.def,o=(e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`),a.shape),s=Object.keys(o),u=Object.getOwnPropertySymbols(o),l=u.length?[...s,...u]:s,c=e=>"symbol"==typeof e?j(n,e):Xe(e),d=o;if(s.includes("__proto__"))throw new N('object shape key "__proto__"');const f=new Map;for(const _ of l){const w=d[_],k=c(_),$=U(n);if(e.write(`const ${$} = ${r}[${k}];`),void 0!==w._zod.optin){const I=U(n);e.write(`let ${I} = (() => {`),e.indented(e=>{var t=su(e,n,w,$);e.write(`return ${t};`)}),e.write("})();"),"optional"===w._zod.optout?(e.write(`if (${I} === INVALID) {`),e.indented(e=>{e.write(`if (${k} in ${r}) return INVALID;`),e.write(I+" = undefined;")}),e.write("}")):e.write(`if (${I} === INVALID) return INVALID;`),f.set(_,I)}else{!function(e){return void 0===e._zod.optin&&yu(e)}(w)||e.write(`if (!(${k} in ${r})) return INVALID;`);var m=su(e,n,w,$,i);null!==m&&f.set(_,m)}}const p=a.catchall;let h="none";if(p){t=p._zod.def.type;if("never"===t){const x=s.map(e=>"k !== "+Xe(e)).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented(e=>{e.write(`if (${x}) return INVALID;`)}),e.write("}")}else h="unknown"!==t&&"any"!==t||p._zod.def.checks?.length?"schema":"passthrough"}const v=U(n),g=l.some(e=>_u(d[e])||bu(d[e]));if(!i){if("schema"===h){const S=0<s.length?j(n,new Set(s)):null;e.write(`for (const k in ${r}) {`),e.indented(e=>{e.write('if (k === "__proto__") continue;'),S&&e.write(`if (${S}.has(k)) continue;`);var t=U(n);e.write(`const ${t} = ${r}[k];`),su(e,n,p,t,!1)}),e.write("}")}return null}if(g){e.write(`const ${v} = {};`);for(const O of l){var y=c(O),b=f.get(O);bu(d[O])?e.write(`if (${y} in ${r}) ${v}[${y}] = ${b};`):_u(d[O])?e.write(`if (${b} !== undefined || ${y} in ${r}) ${v}[${y}] = ${b};`):e.write(v+`[${y}] = ${b};`)}}else{t=l.map(e=>{return`${t=e,"symbol"==typeof t?`[${c(t)}]`:Xe(t)}: `+f.get(e);var t}).join(", ");e.write(`const ${v} = { ${t} };`)}if("none"!==h){const z=0<s.length?j(n,new Set(s)):null;e.write(`for (const k in ${r}) {`),e.indented(e=>{var t;e.write('if (k === "__proto__") continue;'),z&&e.write(`if (${z}.has(k)) continue;`),"passthrough"===h?e.write(v+`[k] = ${r}[k];`):(t=U(n),e.write(`const ${t} = ${r}[k];`),t=su(e,n,p,t),e.write(v+`[k] = ${t};`))}),e.write("}")}return v}(e,t,n,r,p);break;case"optional":h=function(e,n,t,r,i){const a=t._zod.def;if(!0===t._zod.traits?.has("$ZodExactOptional"))return O(e,n,a.innerType,r,i);if("defaulted"===a.innerType._zod.optin){const s=U(n),u=U(n);return e.write(`let ${s};`),e.write(`if (${r} === undefined) {`),e.indented(e=>{e.write(`const ${u} = (() => {`),e.indented(e=>{var t=O(e,n,a.innerType,r);e.write(`return ${t};`)}),e.write("})();"),e.write(`if (${u} !== INVALID) ${s} = ${u};`)}),e.write("} else {"),e.indented(e=>{var t=O(e,n,a.innerType,r);e.write(s+` = ${t};`)}),e.write("}"),s}const o=i?U(n):null;o&&e.write(`let ${o};`);return e.write(`if (${r} !== undefined) {`),e.indented(e=>{var t=O(e,n,a.innerType,r,i);o&&null!==t&&e.write(o+` = ${t};`)}),e.write("}"),o}(e,t,n,r,p);break;case"nullable":h=function(e,n,t,r,i){const a=t._zod.def,o=i?U(n):null;o&&e.write(`let ${o} = null;`);return e.write(`if (${r} !== null) {`),e.indented(e=>{var t=O(e,n,a.innerType,r,i);o&&null!==t&&e.write(o+` = ${t};`)}),e.write("}"),o}(e,t,n,r,p);break;case"array":h=function(e,n,t,r,i){const a=t._zod.def,o=(e.write(`if (!Array.isArray(${r})) return INVALID;`),i?U(n):null),s=U(n),u=U(n);o&&e.write(`const ${o} = new Array(${r}.length);`);return e.write(`for (let ${s} = 0; ${s} < ${r}.length; ${s}++) {`),e.indented(e=>{e.write(`const ${u} = ${r}[${s}];`);var t=su(e,n,a.element,u,i);o&&null!==t&&e.write(`${o}[${s}] = ${t};`)}),e.write("}"),o}(e,t,n,r,p);break;case"literal":h=function(e,t,n,r){n=n._zod.def,n=n.values;if(1!==n.length){var i=j(t,new Set(n));e.write(`if (!${i}.has(${r})) return INVALID;`)}else{i=n[0];if("number"==typeof i&&Number.isNaN(i)){t=j(t,new Set(n));e.write(`if (!${t}.has(${r})) return INVALID;`)}else if("string"==typeof i)e.write(`if (${r} !== ${Xe(i)}) return INVALID;`);else if("number"==typeof i||"boolean"==typeof i)e.write(`if (${r} !== ${i}) return INVALID;`);else if(null===i)e.write(`if (${r} !== null) return INVALID;`);else if(void 0===i)e.write(`if (${r} !== undefined) return INVALID;`);else{if("bigint"!=typeof i)throw new N("literal type "+typeof i);e.write(`if (${r} !== ${i}n) return INVALID;`)}}return r}(e,t,n,r);break;case"enum":h=function(e,t,n,r){n=n._zod.values;if(!n)throw new N("enum schema without enumerated values");t=j(t,n);return e.write(`if (!${t}.has(${r})) return INVALID;`),r}(e,t,n,r);break;case"readonly":var v=wu(e,t,n,r),g=U(t);e.write(`const ${g} = Object.freeze(${v});`),h=g;break;case"success":wu(e,t,n,r),h="true";break;case"default":case"prefault":h=function(e,n,t,r){const i=t._zod.def,a=Object.getOwnPropertyDescriptor(t._zod.def,"defaultValue"),o=a?()=>t._zod.def.defaultValue:void 0;{var s,u;if("prefault"===t._zod.def.type)return o?(s=j(n,o),u=U(n),e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${s}();`),O(e,n,i.innerType,u)):O(e,n,i.innerType,r)}const l=U(n);{if(o){const c=j(n,o),d=j(n,nt);e.write(`let ${l};`),e.write(`if (${r} === undefined) {`),e.indented(e=>{e.write(`${l} = ${d}(${c}());`)}),e.write("} else {"),e.indented(e=>{var t=O(e,n,i.innerType,r);e.write(`${l} = ${t} === undefined ? ${d}(${c}()) : ${t};`)})}else e.write(`let ${l};`),e.write(`if (${r} !== undefined) {`),e.indented(e=>{var t=O(e,n,i.innerType,r);e.write(l+` = ${t};`)});e.write("}")}return l}(e,t,n,r);break;case"nonoptional":h=function(e,t,n,r){n=n._zod.def,n=O(e,t,n.innerType,r),r=U(t);return e.write(`const ${r} = ${n};`),e.write(`if (${r} === undefined) return INVALID;`),r}(e,t,n,r);break;case"tuple":h=function(e,i,t,n){const r=t._zod.def,a=r.items,o=r.rest,s=(e.write(`if (!Array.isArray(${n})) return INVALID;`),ku(a,"optin")),u=ku(a,"optout");o?e.write(`if (${n}.length < ${s}) return INVALID;`):e.write(`if (${n}.length < ${s} || ${n}.length > ${a.length}) return INVALID;`);const l=U(i);e.write(`const ${l} = [];`);for(let r=0;r<a.length;r++){const d=a[r];var c;r>=u?(e.write(`if (${l}.length === ${r}) {`),e.indented(e=>{e.write(`if (${r} < ${n}.length) {`),e.indented(e=>{var t=U(i),t=(e.write(`const ${t} = ${n}[${r}];`),su(e,i,d,t));e.write(`${l}[${r}] = ${t};`)}),e.write("} else {"),e.indented(e=>{if(bu(d))e.write(`${l}.length = ${r};`);else{const n=U(i);var t=U(i);e.write(`const ${n} = undefined;`),e.write(`const ${t} = (() => {`),e.indented(e=>{var t=su(e,i,d,n);e.write(`return ${t};`)}),e.write("})();"),e.write(`if (${t} === INVALID || ${t} === undefined) ${l}.length = ${r};`),e.write(`else ${l}[${r}] = ${t};`)}}),e.write("}")}),e.write("}")):(c=U(i),e.write(`const ${c} = ${n}[${r}];`),c=su(e,i,d,c),e.write(`${l}[${r}] = ${c};`))}if(o){const f=U(i),m=U(i);e.write(`for (let ${f} = ${a.length}; ${f} < ${n}.length; ${f}++) {`),e.indented(e=>{e.write(`const ${m} = ${n}[${f}];`);var t=su(e,i,o,m);e.write(`${l}[${f}] = ${t};`)}),e.write("}")}return l}(e,t,n,r);break;case"union":h=function(t,n,e,r){var e=e._zod.def,i=e.options;if(e.discriminator)return function(e,r,t,n){if(t.unionFallback)throw new N("discriminated union with unionFallback");if(0===t.options.length)return e.write("return INVALID;"),n;const i=U(r),a=U(r);e.write(`const ${i} = ${n}?.[${Xe(t.discriminator)}];`),e.write(`let ${a};`);let o=!0;var s=new Set;for(const c of t.options){var u=c._zod.propValues?.[t.discriminator];if(!u||0===u.size)throw new N("discriminated union option without static discriminator values");for(const d of u){if(s.has(d))throw new N("duplicate discriminator value "+String(d));s.add(d)}var u=Array.from(u,e=>{var t=r,n=i;if("string"==typeof e)return n+" === "+Xe(e);if("number"==typeof e)return Number.isNaN(e)?`Number.isNaN(${n})`:n+" === "+e;if("boolean"==typeof e)return n+" === "+e;if(null===e)return n+" === null";if(void 0===e)return n+" === undefined";if("bigint"==typeof e)return n+` === ${e}n`;if("symbol"!=typeof e)throw new N("literal discriminator value "+String(e));return t=j(t,e),n+" === "+t}),l=o?"if":"else if";e.write(l+` (${u.join(" || ")}) {`),e.indented(e=>{var t=O(e,r,c,n);e.write(a+` = ${t};`)}),e.write("}"),o=!1}return e.write("else { return INVALID; }"),a}(t,n,e,r);if(!1===e.inclusive)throw new N("exclusive unions (z.xor)");if(0===i.length)return t.write("return INVALID;"),r;if(1===i.length)return O(t,n,i[0],r);e=i.every(e=>"literal"===e._zod.def.type&&!e._zod.def.checks?.length);if(e)return e=new Set(i.flatMap(e=>e._zod.def.values)),e=j(n,e),t.write(`if (!${e}.has(${r})) return INVALID;`),r;var a=U(n);t.write(`let ${a};`);for(let e=0;e<i.length;e++){const o=i[e];0===e?t.write(a+" = (() => {"):t.write(`if (${a} === INVALID) ${a} = (() => {`),t.indented(e=>{var t=O(e,n,o,r);e.write(`return ${t};`)}),t.write("})();")}return t.write(`if (${a} === INVALID) return INVALID;`),a}(e,t,n,r);break;case"intersection":h=(g=e,s=t,l=r,u=(u=n)._zod.def,c=su(g,s,u.left,l),u=su(g,s,u.right,l),l=j(s,Da),s=U(s),g.write(`const ${s} = ${l}(${c}, ${u});`),g.write(`if (!${s}.valid) return INVALID;`),s+".data");break;case"record":h=function(e,n,t,r){const i=t._zod.def,a=j(n,tt),o=(e.write(`if (!${a}(${r})) return INVALID;`),U(n)),s=U(n),u=U(n),l=(e.write(`const ${o} = {};`),i),c=l.partial?void 0:i.keyType._zod.values;if(c){var d=[];for(const v of c){if("string"!=typeof v&&"number"!=typeof v&&"symbol"!=typeof v)throw new N("record key value "+String(v));var f="number"==typeof v?v.toString():v;if("__proto__"===f)throw new N('record key "__proto__"');d.push(f);var m=j(n,v),m=O(e,n,i.keyType,m),p=U(n),f=(e.write(`const ${p} = ${r}[${function(e,t){return"string"==typeof t?Xe(t):j(e,t)}(n,f)}];`),su(e,n,i.valueType,p));e.write(o+`[${m}] = ${f};`)}const h=j(n,new Set(d));e.write(`for (const ${s} in ${r}) {`),e.indented(e=>{e.write(`if (${h}.has(${s})) continue;`),"loose"===l.mode?e.write(`if (${s} !== "__proto__") ${o}[${s}] = ${r}[${s}];`):e.write("return INVALID;")})}else{t=i.keyType._zod.def;if("string"===t.type&&void 0===t.format&&!t.coerce&&0===(t.checks?.length??0)){const g=j(n,Object.prototype.propertyIsEnumerable);e.write(`for (const ${s} of Reflect.ownKeys(${r})) {`),e.indented(e=>{e.write(`if (${s} === "__proto__") continue;`),e.write(`if (!${g}.call(${r}, ${s})) continue;`),e.write(`if (typeof ${s} !== "string") return INVALID;`),e.write(`const ${u} = ${r}[${s}];`);var t=su(e,n,i.valueType,u);e.write(`${o}[${s}] = ${t};`)})}else{const y="loose"===i.mode,b=j(n,au(i.keyType)),_=j(n,gr),w=j(n,Object.prototype.propertyIsEnumerable),k=U(n);e.write(`for (const ${s} of Reflect.ownKeys(${r})) {`),e.indented(e=>{e.write(`if (${s} === "__proto__") continue;`),e.write(`if (!${w}.call(${r}, ${s})) continue;`),e.write(`let ${k} = ${b}(${s});`),e.write(`if (${k} === INVALID && typeof ${s} === "string" && ${_}.test(${s})) ${k} = ${b}(Number(${s}));`),y?e.write(`if (${k} === INVALID) { ${o}[${s}] = ${r}[${s}]; continue; }`):e.write(`if (${k} === INVALID) return INVALID;`),e.write(`if (${k} === "__proto__") continue;`);var t=U(n),t=(e.write(`const ${t} = ${r}[${s}];`),su(e,n,i.valueType,t));e.write(`${o}[${k}] = ${t};`)})}}return e.write("}"),o}(e,t,n,r);break;case"map":h=function(e,r,t,n){const i=t._zod.def,a=(e.write(`if (!(${n} instanceof Map)) return INVALID;`),U(r)),o=U(r),s=U(r);return e.write(`const ${a} = new Map();`),e.write(`for (const [${o}, ${s}] of ${n}) {`),e.indented(e=>{var t=O(e,r,i.keyType,o),n=O(e,r,i.valueType,s);e.write(a+`.set(${t}, ${n});`)}),e.write("}"),a}(e,t,n,r);break;case"set":h=function(e,n,t,r){const i=t._zod.def,a=(e.write(`if (!(${r} instanceof Set)) return INVALID;`),U(n)),o=U(n);return e.write(`const ${a} = new Set();`),e.write(`for (const ${o} of ${r}) {`),e.indented(e=>{var t=O(e,n,i.valueType,o);e.write(a+`.add(${t});`)}),e.write("}"),a}(e,t,n,r);break;case"file":h=(l=r,e.write(`if (!(${l} instanceof File)) return INVALID;`),l);break;case"template_literal":h=function(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);n=n._zod.pattern;n&&(t=j(t,n),e.write(t+".lastIndex = 0;"),e.write(`if (!${t}.test(${r})) return INVALID;`));return r}(e,t,n,r);break;case"lazy":h=function(e,t,n,r){const i=n._zod.def,a=j(t,i.getter),o=j(t,{parser:null}),s=(e.write(`if (!${o}.parser) {`),e.indented(e=>{e.write(`const inner = ${a}();`),e.write(o+".parser = function(input) {"),e.indented(e=>{e.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),e.write("return result.issues.length === 0 ? result.value : INVALID;")}),e.write("};")}),e.write("}"),U(t));return e.write(`const ${s} = ${o}.parser(${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}(e,t,n,r);break;case"pipe":h=function(e,t,n,r){n=n._zod.def,r=O(e,t,n.in,r);{if(n.transform){if($u(n.transform))throw new ru("z.compile: async transforms in pipes are not supported");const o=n.transform;var i=j(t,e=>{var t={value:e,issues:[],addIssue:hu},e=o(e,t);return!(e instanceof Promise)&&0===t.issues.length?e:tu}),a=U(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),O(e,t,n.out,a)}return O(e,t,n.out,r)}}(e,t,n,r);break;case"custom":h=function(e,t,n,r){n=n._zod.def;{if(!n.fn)throw new N("custom schema without a predicate function");if($u(n.fn))throw new ru("z.compile: async custom predicates are not supported");var n=j(t,n.fn),i=j(t,pu),t=U(t);e.write(`const ${t} = ${n}(${r});`),e.write(`if (${t} instanceof Promise) ${i}();`),e.write(`if (!${t}) return INVALID;`)}return r}(e,t,n,r);break;case"transform":h=function(e,t,n,r){n=n._zod.def;if(n.transform){if($u(n.transform))throw new ru("z.compile: async transforms are not supported");const i=n.transform;n=j(t,e=>{var t={value:e,issues:[],addIssue:hu},e=i(e,t);return!(e instanceof Promise)&&0===t.issues.length?e:tu}),t=U(t);return e.write(`const ${t} = ${n}(${r});`),e.write(`if (${t} === INVALID) return INVALID;`),t}return r}(e,t,n,r);break;case"catch":h=function(e,n,t,r){const i=t._zod.def;if(!i.catchValue[jt])throw new N("catch with a callback (only a constant catch value compiles)",!1);const a=U(n),o=(e.write(`let ${a} = (() => {`),e.indented(e=>{var t=su(e,n,i.innerType,r);e.write(`return ${t};`)}),e.write("})();"),j(n,i.innerType)),s=j(n,i.catchValue),u=j(n,Iu);return e.write(`if (${a} === INVALID) {`),e.indented(e=>{e.write(`${a} = ${u}(${o}, ${s}, ${r});`),e.write(`if (${a} === INVALID) return INVALID;`)}),e.write("}"),a}(e,t,n,r);break;default:throw new N("schema type "+o)}return null===h?null:lu(e,t,n,h)}function yu(e){if(e._zod.def.coerce)return!0;var t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return!!t.innerType&&yu(t.innerType);case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return!t.innerType||yu(t.innerType);case"catch":return!0;case"union":return!t.options||t.options.some(yu);case"intersection":return t.left&&t.right?yu(t.left)&&yu(t.right):!0;case"pipe":return!t.in||yu(t.in);default:return!0}}function bu(e){return"optional"===e._zod.optin&&"optional"===e._zod.optout}function _u(e){var t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return!t.innerType||_u(t.innerType);case"union":return!t.options||t.options.some(_u);case"intersection":return!t.left||!t.right||_u(t.left)||_u(t.right);case"pipe":return!t.out||_u(t.out);default:return!0}}function wu(e,t,n,r){return O(e,t,n._zod.def.innerType,r)}function ku(t,n){for(let e=t.length-1;0<=e;e--)if(!("optin"===n?void 0!==t[e]._zod.optin:"optional"===t[e]._zod.optout))return e+1;return 0}function $u(e){return"function"==typeof e&&("AsyncFunction"===e.constructor.name||"AsyncFunction"===e[Symbol.toStringTag])}function Iu(e,t,n){e=e._zod.run({value:n,issues:[]},{});return e&&"function"==typeof e.then?tu:0===e.issues.length?e.value:t()}function xu(e,t){return new e({type:"string",...l(t)})}function Su(e,t){return new e({type:"string",coerce:!0,...l(t)})}function Ou(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...l(t)})}function zu(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...l(t)})}function Nu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...l(t)})}function ju(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...l(t)})}function Pu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...l(t)})}function Uu(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...l(t)})}function Du(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...l(t)})}function Au(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...l(t)})}function Eu(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...l(t)})}function Tu(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...l(t)})}function Lu(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...l(t)})}function Cu(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...l(t)})}function Zu(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...l(t)})}function Ru(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...l(t)})}function Mu(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...l(t)})}function Fu(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...l(t)})}function Ku(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...l(t)})}function Vu(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...l(t)})}function Ju(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...l(t)})}function Bu(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...l(t)})}function qu(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...l(t)})}function Wu(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...l(t)})}function Gu(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...l(t)})}function Xu(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...l(t)})}var Yu={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Hu(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...l(t)})}function Qu(e,t){return new e({type:"string",format:"date",check:"string_format",...l(t)})}function el(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...l(t)})}function tl(e,t){return new e({type:"string",format:"duration",check:"string_format",...l(t)})}function nl(e,t){return new e({type:"number",checks:[],...l(t)})}function rl(e,t){return new e({type:"number",coerce:!0,checks:[],...l(t)})}function il(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...l(t)})}function al(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...l(t)})}function ol(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...l(t)})}function sl(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...l(t)})}function ul(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...l(t)})}function ll(e,t){return new e({type:"boolean",...l(t)})}function cl(e,t){return new e({type:"boolean",coerce:!0,...l(t)})}function dl(e,t){return new e({type:"bigint",...l(t)})}function fl(e,t){return new e({type:"bigint",coerce:!0,...l(t)})}function ml(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...l(t)})}function pl(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...l(t)})}function hl(e,t){return new e({type:"symbol",...l(t)})}function vl(e,t){return new e({type:"undefined",...l(t)})}function gl(e,t){return new e({type:"null",...l(t)})}function yl(e){return new e({type:"any"})}function bl(e){return new e({type:"unknown"})}function _l(e,t){return new e({type:"never",...l(t)})}function wl(e,t){return new e({type:"void",...l(t)})}function kl(e,t){return new e({type:"date",...l(t)})}function $l(e,t){return new e({type:"date",coerce:!0,...l(t)})}function Il(e,t){return new e({type:"nan",...l(t)})}function xl(e,t){return new Vr({check:"less_than",...l(t),value:e,inclusive:!1})}function Sl(e,t){return new Vr({check:"less_than",...l(t),value:e,inclusive:!0})}function Ol(e,t){return new Jr({check:"greater_than",...l(t),value:e,inclusive:!1})}function zl(e,t){return new Jr({check:"greater_than",...l(t),value:e,inclusive:!0})}function Nl(e){return Ol(0,e)}function jl(e){return xl(0,e)}function Pl(e){return Sl(0,e)}function Ul(e){return zl(0,e)}function Dl(e,t){return new Br({check:"multiple_of",...l(t),value:e})}function Al(e,t){return new Gr({check:"max_size",...l(t),maximum:e})}function El(e,t){return new Xr({check:"min_size",...l(t),minimum:e})}function Tl(e,t){return new Yr({check:"size_equals",...l(t),size:e})}function Ll(e,t){return new Hr({check:"max_length",...l(t),maximum:e})}function Cl(e,t){return new Qr({check:"min_length",...l(t),minimum:e})}function Zl(e,t){return new ei({check:"length_equals",...l(t),length:e})}function Rl(e,t){return new ni({check:"string_format",format:"regex",...l(t),pattern:e})}function Ml(e){return new ri({check:"string_format",format:"lowercase",...l(e)})}function Fl(e){return new ii({check:"string_format",format:"uppercase",...l(e)})}function Kl(e,t){return new ai({check:"string_format",format:"includes",...l(t),includes:e})}function Vl(e,t){return new oi({check:"string_format",format:"starts_with",...l(t),prefix:e})}function Jl(e,t){return new si({check:"string_format",format:"ends_with",...l(t),suffix:e})}function Bl(e,t,n){return new li({check:"property",property:e,schema:t,...l(n)})}function ql(e){return Object.entries(e).map(([e,t])=>new li({check:"property",property:e,schema:t}))}function Wl(e,t){return new ci({check:"mime_type",mime:e,...l(t)})}function Gl(e){return new di({check:"overwrite",tx:e})}function Xl(t){return Gl(e=>e.normalize(t))}function Yl(){return Gl(e=>e.trim())}function Hl(){return Gl(e=>e.toLowerCase())}function Ql(){return Gl(e=>e.toUpperCase())}function ec(){return Gl(e=>Ye(e))}function tc(e,t,n){return new e({type:"array",element:t,...l(n)})}function nc(e,t){return new e({type:"file",...l(t)})}function rc(e,t,n){n=l(n),n.abort??(n.abort=!0),e=new e({type:"custom",check:"custom",fn:t,...n});return e}function ic(e,t,n){return new e({type:"custom",check:"custom",fn:t,...l(n)})}function ac(e,t){const n=oc(t=>(t.addIssue=e=>{"string"==typeof e?t.issues.push(_t(e,t.value,n._zod.def)):((e=e).fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=n),e.continue??(e.continue=!n._zod.def.abort),t.issues.push(_t(e)))},e(t.value,t)),t);return n}function oc(e,t){t=new u({check:"custom",...l(t)});return t._zod.check=e,t}function sc(n){var e=new u({check:"describe"});return e._zod.onattach=[e=>{var t=eu.get(e)??{};eu.add(e,{...t,description:n})}],e._zod.check=()=>{},e}function uc(n){var e=new u({check:"meta"});return e._zod.onattach=[e=>{var t=eu.get(e)??{};eu.add(e,{...t,...n})}],e._zod.check=()=>{},e}function lc(e,t){const r=l(t);let n=r.truthy??["true","1","yes","on","y","enabled"],i=r.falsy??["false","0","no","off","n","disabled"];"sensitive"!==r.case&&(n=n.map(e=>"string"==typeof e?e.toLowerCase():e),i=i.map(e=>"string"==typeof e?e.toLowerCase():e));const a=new Set(n),o=new Set(i);var t=e.Codec??lo,s=e.Boolean??oa;const u=new t({type:"pipe",in:new(e.String??vi)({type:"string",error:r.error}),out:new s({type:"boolean",error:r.error}),transform:(e,t)=>{let n=e;return"sensitive"!==r.case&&(n=n.toLowerCase()),!!a.has(n)||!o.has(n)&&(t.issues.push({code:"invalid_value",expected:"stringbool",values:[...a,...o],input:t.value,inst:u,continue:!1}),{})},reverseTransform:(e,t)=>!0===e?n[0]||"true":i[0]||"false",error:r.error});return u._zod.bag.truthy=n,u._zod.bag.falsy=i,u._zod.bag.case=r.case??"insensitive",u}function cc(e,t,n,r={}){r=l(r),t={check:"string_format",type:"string",format:t,fn:"function"==typeof n?n:e=>n.test(e),...r},n instanceof RegExp&&(t.pattern=n),r=new e(t);return r}function dc(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&x(e,r,n[r])}function fc(e){let t=e?.target??"draft-2020-12";return"draft-7"===(t="draft-4"===t?"draft-04":t)&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??eu,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],external:e?.external??void 0}}function b(e,t,n,r,i){e="function"==typeof t.unrepresentable?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if("any"===e)return!1;if(void 0===e||"throw"===e)throw new Error(i);return Object.assign(n,e),!0}function _(e,t,n={path:[],schemaPath:[]}){var r=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;var i={schema:{},count:1,cycle:void 0,path:n.path},a=(t.seen.set(e,i),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0,e._zod.toJSONSchema?.());if(a)i.schema=a;else{a={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,i.schema,a);else{var n=i.schema,o=t.processors[r.type];if(!o)throw new Error("[toJSONSchema]: Non-representable type encountered: "+r.type);o(e,t,n,a)}r=e._zod.parent;r&&(i.ref||(i.ref=r),_(r,t,a),t.seen.get(r).isParent=!0)}o=t.metadataRegistry.get(e),o&&dc(i.schema,o),"input"===t.io&&function e(t,n){const r=n??{seen:new Set};if(r.seen.has(t))return!1;r.seen.add(t);const i=t._zod.def;if("transform"===i.type)return!0;if("array"===i.type)return e(i.element,r);if("set"===i.type)return e(i.valueType,r);if("lazy"===i.type)return e(i.getter(),r);if("promise"===i.type||"optional"===i.type||"nonoptional"===i.type||"nullable"===i.type||"readonly"===i.type||"default"===i.type||"prefault"===i.type||"catch"===i.type)return e(i.innerType,r);if("intersection"===i.type)return e(i.left,r)||e(i.right,r);if("record"===i.type||"map"===i.type)return e(i.keyType,r)||e(i.valueType,r);if("pipe"===i.type)return!!t._zod.traits.has("$ZodCodec")||e(i.in,r)||e(i.out,r);if("object"===i.type){for(const a in i.shape)if(e(i.shape[a],r))return!0;return!1}if("union"===i.type){for(const o of i.options)if(e(o,r))return!0;return!1}if("tuple"===i.type){for(const s of i.items)if(e(s,r))return!0;return i.rest&&e(i.rest,r)?!0:!1}return!1}(e)&&(delete i.schema.examples,delete i.schema.default),"input"===t.io&&"_prefault"in i.schema&&((n=i.schema).default??(n.default=i.schema._prefault)),delete i.schema._prefault,a=t.seen.get(e);return a.schema}function mc(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function pc(s,e){const u=s.seen.get(e);if(!u)throw new Error("Unprocessed schema. This is a bug in Zod.");if(!s.external||s.sharedDefsExtractedFor!==s.external){var t=new Map;for(const c of s.seen.entries()){var n=s.metadataRegistry.get(c[0])?.id;if(n){var r=t.get(n);if(r&&r!==c[0])throw new Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);t.set(n,c[0])}}var i=e=>{if(!e[1].schema.$ref){var t,n,r=e[1],{ref:i,defId:e}=(e=e,i="draft-2020-12"===s.target?"$defs":"definitions",s.external?(n=s.external.registry.get(e[0])?.id,t=s.external.uri??(e=>e),n?{ref:t(n)}:(n=e[1].defId??e[1].schema.id??"schema"+s.counter++,{defId:e[1].defId=n,ref:t("__shared")+`#/${i}/`+mc(n)})):(t=`#/${i}/`,e[1]!==u||e[1].schema.id?{defId:n=e[1].schema.id??"__schema"+s.counter++,ref:t+mc(n)}:{ref:"#"})),a=(r.def={...r.schema},e&&(r.defId=e),r.schema);for(const o in a)delete a[o];a.$ref=i}};if("throw"===s.cycles)for(const d of s.seen.entries()){var a=d[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const f of s.seen.entries()){var o=f[1];if(e===f[0])i(f);else{if(s.external){var l=s.external.registry.get(f[0])?.id;if(e!==f[0]&&l){i(f);continue}}(s.metadataRegistry.get(f[0])?.id||o.cycle||1<o.count&&"ref"===s.reused)&&i(f)}}s.external&&(s.sharedDefsExtractedFor=s.external)}}var hc=new Set(["type","properties","required","additionalProperties"]),vc=["oneOf","anyOf"];function gc(e){e=e.additionalProperties;return void 0!==e&&!1!==e&&"object"==typeof e&&null!==e&&Object.keys(e).length?e:null}function yc(e){var t=[];for(const s of e){if("object"!=typeof s||"object"!==s.type)return null;for(const u in s)if(!hc.has(u))return null;t.push(s)}var n={},r=new Set;for(const l of t){for(const c in l.properties)if(!Object.prototype.hasOwnProperty.call(n,c)){var i=[];for(const d of t){const f=d.properties?.[c]??gc(d);null===f||void 0===f||i.some(e=>JSON.stringify(e)===JSON.stringify(f))||i.push(f)}var a=1===i.length?i[0]:yc(i)??{allOf:i};x(n,c,a)}for(const m of l.required??[])r.add(m)}e={type:"object",properties:n};if(r.size&&(e.required=[...r]),t.every(e=>!1===e.additionalProperties))e.additionalProperties=!1;else{var o=[];for(const p of t){const h=gc(p);h&&!o.some(e=>JSON.stringify(e)===JSON.stringify(h))&&o.push(h)}1===o.length?e.additionalProperties=o[0]:1<o.length&&(e.additionalProperties={allOf:o})}return e}function bc(f,e){var t=f.seen.get(e);if(!t)throw new Error("Unprocessed schema. This is a bug in Zod.");const m=e=>{var t=f.seen.get(e);if(null!==t.ref){var n=t.def??t.schema,r={...n},i=t.ref;if(t.ref=null,i){m(i);var a=f.seen.get(i),o=a.schema,s=(!o.$ref||"draft-07"!==f.target&&"draft-04"!==f.target&&"openapi-3.0"!==f.target?dc(n,o):(n.allOf=n.allOf??[],n.allOf.push(o)),dc(n,r),e._zod.parent===i);if(s)for(const l in n)"$ref"===l||"allOf"===l||l in r||delete n[l];if(o.$ref&&a.def)for(const c in n)"$ref"!==c&&"allOf"!==c&&c in a.def&&JSON.stringify(n[c])===JSON.stringify(a.def[c])&&delete n[c]}s=e._zod.parent;if(s&&s!==i){m(s);var u=f.seen.get(s);if(u?.schema.$ref&&(n.$ref=u.schema.$ref,u.def))for(const d in n)"$ref"!==d&&"allOf"!==d&&d in u.def&&JSON.stringify(n[d])===JSON.stringify(u.def[d])&&delete n[d]}f.override({zodSchema:e,jsonSchema:n,path:t.path??[]})}};if(!f.external||f.sharedEmitDoneFor!==f.external){for(const c of[...f.seen.entries()].reverse())m(c[0]);if("openapi-3.0"!==f.target)for(const d of f.seen.entries())!function e(t){var n=t.anyOf;if(Array.isArray(n)&&0!==n.length&&void 0===t.type){var r=[];for(const a of n){if(!a||"object"!=typeof a)return;e(a);var i=Object.keys(a);if(1!==i.length||"type"!==i[0])return;i=a.type;for(const o of Array.isArray(i)?i:[i]){if("string"!=typeof o)return;r.includes(o)||r.push(o)}}delete t.anyOf,t.type=1===r.length?r[0]:r}}(d[1].def??d[1].schema);if(f.intersections.length){var n=new Map;for(const p of f.seen.values())for(const h of[p.schema,p.def]){var r,i=h?.allOf;Array.isArray(i)&&((r=n.get(i))?r.push(h):n.set(i,[h]))}for(const v of f.intersections)for(const g of n.get(v)??[])!function(t){var n=t.allOf;if(Array.isArray(n)&&!(n.length<2)){for(const a of hc)if(a in t)return;var r=n.filter(t=>vc.some(e=>Array.isArray(t[e])));let e=null;if(r.length){const o=r[0];r=vc.find(e=>Array.isArray(o[e]));if(1!==Object.keys(o).length)return;const s=n.filter(e=>e!==o);var i=o[r].map(e=>yc([...s,e]));if(i.some(e=>!e))return;e={[r]:i}}else e=yc(n);e&&(delete t.allOf,dc(t,e))}}(g)}}var a={};if("draft-2020-12"===f.target?a.$schema="https://json-schema.org/draft/2020-12/schema":"draft-07"===f.target?a.$schema="http://json-schema.org/draft-07/schema#":"draft-04"===f.target?a.$schema="http://json-schema.org/draft-04/schema#":f.target,f.external?.uri){var o=f.external.registry.get(e)?.id;if(!o)throw new Error("Schema is missing an `id` property");a.$id=f.external.uri(o)}dc(a,t.defId?t.schema:t.def??t.schema);var o=f.metadataRegistry.get(e)?.id,s=(void 0!==o&&a.id===o&&delete a.id,f.external?.defs??{});if(!f.external||f.sharedEmitDoneFor!==f.external)for(const y of f.seen.entries()){var u=y[1];u.def&&u.defId&&(u.def.id===u.defId&&delete u.def.id,x(s,u.defId,u.def))}f.external&&(f.sharedEmitDoneFor=f.external),f.external||0<Object.keys(s).length&&("draft-2020-12"===f.target?a.$defs=s:a.definitions=s);try{var l=JSON.parse(JSON.stringify(a));return Object.defineProperty(l,"~standard",{value:{...e["~standard"],jsonSchema:{input:wc(e,"input",f.processors),output:wc(e,"output",f.processors)}},enumerable:!1,writable:!1}),l}catch(e){throw new Error("Error converting schema to JSON.")}}var _c=(t,n={})=>e=>{e=fc({...e,processors:n});return _(t,e),pc(e,t),bc(e,t)},wc=(n,r,i={})=>e=>{var{libraryOptions:e,target:t}=e??{},e=fc({...e??{},target:t,io:r,processors:i});return _(n,e),pc(e,n),bc(e,n)},kc={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},$c=(e,t,n,r)=>{n.type="string";var{minimum:e,maximum:i,format:a,patterns:o,contentEncoding:s,laxFormat:u}=e._zod.bag;"number"==typeof e&&(n.minLength=e),"number"==typeof i&&(n.maxLength=i),a&&(n.format=kc[a]??a,""===n.format&&delete n.format,"time"!==a&&!u||delete n.format),s&&(n.contentEncoding=s),o&&0<o.size&&(1===(e=[...o]).length?n.pattern=e[0].source:1<e.length&&(n.allOf=[...e.map(e=>({..."draft-07"===t.target||"draft-04"===t.target||"openapi-3.0"===t.target?{type:"string"}:{},pattern:e.source}))]))},Ic=(e,t,n,r)=>{var{minimum:i,maximum:a,format:o,multipleOf:s,exclusiveMaximum:u,exclusiveMinimum:l}=e._zod.bag,o=("string"==typeof o&&o.includes("int")?n.type="integer":n.type="number","number"==typeof l&&l>=(i??Number.NEGATIVE_INFINITY)),c="number"==typeof u&&u<=(a??Number.POSITIVE_INFINITY),d="draft-04"===t.target||"openapi-3.0"===t.target;o?d?(n.minimum=l,n.exclusiveMinimum=!0):n.exclusiveMinimum=l:"number"==typeof i&&(n.minimum=i),c?d?(n.maximum=u,n.exclusiveMaximum=!0):n.exclusiveMaximum=u:"number"==typeof a&&(n.maximum=a),"number"==typeof s&&(Number.isFinite(s)&&0!==s?n.multipleOf=Math.abs(s):b(e,t,n,r,`A multipleOf divisor of ${s} cannot be represented in JSON Schema`))},xc=(e,t,n,r)=>{n.type="boolean"},Sc=(e,t,n,r)=>{b(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Oc=(e,t,n,r)=>{b(e,t,n,r,"Symbols cannot be represented in JSON Schema")},zc=(e,t,n,r)=>{"openapi-3.0"===t.target?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},Nc=(e,t,n,r)=>{b(e,t,n,r,"Undefined cannot be represented in JSON Schema")},jc=(e,t,n,r)=>{b(e,t,n,r,"Void cannot be represented in JSON Schema")},Pc=(e,t,n,r)=>{n.not={}},Kt=(e,t,n,r)=>{},Uc=(e,t,n,r)=>{},Dc=(e,t,n,r)=>{b(e,t,n,r,"Date cannot be represented in JSON Schema")},Ac=(e,t,n,r)=>{e=Me(e._zod.def.entries);0===e.length?n.not={}:(e.every(e=>"number"==typeof e)&&(n.type="number"),e.every(e=>"string"==typeof e)&&(n.type="string"),n.enum=e)},Ec=(e,t,n,r)=>{var i=e._zod.def;if(0===i.values.length)n.not={};else{var a=[];for(const o of i.values)if(void 0===o){if(b(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if("bigint"==typeof o){if(b(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;a.push(Number(o))}else a.push(o);0!==a.length&&(1===a.length?(n.type=null===(i=a[0])?"null":typeof i,"draft-04"===t.target||"openapi-3.0"===t.target?n.enum=[i]:n.const=i):(a.every(e=>"number"==typeof e)&&(n.type="number"),a.every(e=>"string"==typeof e)&&(n.type="string"),a.every(e=>"boolean"==typeof e)&&(n.type="boolean"),a.every(e=>null===e)&&(n.type="null"),n.enum=a))}},Tc=(e,t,n,r)=>{b(e,t,n,r,"NaN cannot be represented in JSON Schema")},Lc=(e,t,n,r)=>{e=e._zod.pattern;if(!e)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=e.source},Cc=(e,t,n,r)=>{var i={type:"string",format:"binary",contentEncoding:"binary"},{minimum:e,maximum:a,mime:o}=e._zod.bag;void 0!==e&&(i.minLength=e),void 0!==a&&(i.maxLength=a),o?1===o.length?(i.contentMediaType=o[0],Object.assign(n,i)):(Object.assign(n,i),n.anyOf=o.map(e=>({contentMediaType:e}))):Object.assign(n,i)},Zc=(e,t,n,r)=>{n.type="boolean"},Rc=(e,t,n,r)=>{b(e,t,n,r,"Custom types cannot be represented in JSON Schema")},Mc=(e,t,n,r)=>{b(e,t,n,r,"Function types cannot be represented in JSON Schema")},Fc=(e,t,n,r)=>{b(e,t,n,r,"Transforms cannot be represented in JSON Schema")},Kc=(e,t,n,r)=>{b(e,t,n,r,"Map cannot be represented in JSON Schema")},Vc=(e,t,n,r)=>{b(e,t,n,r,"Set cannot be represented in JSON Schema")},Jc=(e,t,n,r)=>{var i=e._zod.def,{minimum:e,maximum:a}=e._zod.bag;"number"==typeof e&&(n.minItems=e),"number"==typeof a&&(n.maxItems=a),n.type="array",n.items=_(i.element,t,{...r,path:[...r.path,"items"]})};function Bc(e){var t=e._zod.def;return"pipe"===t.type&&t.in._zod.traits.has("$ZodTransform")?Bc(t.out):"catch"===t.type?Bc(t.innerType):e._zod.optin}var qc=(e,t,n,r)=>{var i=n;const a=e._zod.def;var o=a.shape,n=Object.getOwnPropertySymbols(o);if(!n.length||!b(e,t,i,r,"Symbol keys cannot be represented in JSON Schema")){i.type="object",i.properties={};for(const s in o)x(i.properties,s,_(o[s],t,{...r,path:[...r.path,"properties",s]}));n=new Set(Object.keys(o)),e=new Set([...n].filter(e=>{e=a.shape[e];return"input"===t.io?void 0===Bc(e):void 0===e._zod.optout}));0<e.size&&(i.required=Array.from(e)),"never"===a.catchall?._zod.def.type?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=_(a.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):"output"===t.io&&(i.additionalProperties=!1)}},Wc=(e,n,t,r)=>{e=e._zod.def;const i=!1===e.inclusive;e=e.options.map((e,t)=>_(e,n,{...r,path:[...r.path,i?"oneOf":"anyOf",t]}));i?t.oneOf=e:t.anyOf=e},Gc=(e,t,n,r)=>{var e=e._zod.def,i=_(e.left,t,{...r,path:[...r.path,"allOf",0]}),e=_(e.right,t,{...r,path:[...r.path,"allOf",1]}),r=e=>"allOf"in e&&1===Object.keys(e).length,i=[...r(i)?i.allOf:[i],...r(e)?e.allOf:[e]];n.allOf=i,t.intersections.push(i)},Xc=(e,n,t,r)=>{var i=e._zod.def;t.type="array";const a="draft-2020-12"===n.target?"prefixItems":"items";var o="draft-2020-12"===n.target||"openapi-3.0"===n.target?"items":"additionalItems",s=i.items.map((e,t)=>_(e,n,{...r,path:[...r.path,a,t]})),o=i.rest?_(i.rest,n,{...r,path:[...r.path,o,..."openapi-3.0"===n.target?[i.items.length]:[]]}):null;let u=i.items.length;for(;0<u;){var l=i.items[u-1];if(!("input"===n.io?void 0!==Bc(l):"optional"===l._zod.optout))break;u--}var c=i.items.length,d=!i.rest,{minimum:s,maximum:o}=("draft-2020-12"===n.target?(t.prefixItems=s,d?t.items=!1:o&&(t.items=o)):"openapi-3.0"===n.target?(t.items={anyOf:s},o&&t.items.anyOf.push(o)):(t.items=s,d?t.additionalItems=!1:o&&(t.additionalItems=o)),0<u&&(t.minItems=u),d&&(t.maxItems=c),e._zod.bag);"number"==typeof s&&(t.minItems=s),"number"==typeof o&&(t.maxItems=o)},Yc=(e,t,n,r)=>{var i=n,n=e._zod.def,e=(i.type="object",n.keyType),a=e._zod.bag?.patterns;if("loose"===n.mode&&a&&0<a.size){var o=_(n.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});i.patternProperties={};for(const s of a)x(i.patternProperties,s.source,o)}else"draft-07"!==t.target&&"draft-2020-12"!==t.target||(i.propertyNames=_(n.keyType,t,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=_(n.valueType,t,{...r,path:[...r.path,"additionalProperties"]});a=e._zod.values,r="input"===t.io&&void 0!==Bc(n.valueType);!a||n.partial||r||0<(e=[...a].filter(e=>"string"==typeof e||"number"==typeof e)).length&&(i.required=e)},Hc=(e,t,n,r)=>{var i=e._zod.def,r=_(i.innerType,t,r),e=t.seen.get(e);"openapi-3.0"===t.target?(e.ref=i.innerType,n.nullable=!0):n.anyOf=[r,{type:"null"}]},Qc=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r),t.seen.get(e).ref=i.innerType},ed=Symbol();function td(e,t,n,r,i){let a=!1;e=JSON.stringify(e,(e,t)=>"bigint"!=typeof t?t:(a=!0,null));return a?(b(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),ed):JSON.parse(e)}var nd=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r);t.seen.get(e).ref=i.innerType;i=td(i.defaultValue,e,t,n,r);i!==ed&&(n.default=i)},rd=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r),t.seen.get(e).ref=i.innerType,"input"===t.io&&(i=td(i.defaultValue,e,t,n,r))!==ed&&(n._prefault=i)},id=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r),t.seen.get(e).ref=i.innerType;let a;try{a=i.catchValue(void 0)}catch{return void b(e,t,n,r,"Dynamic catch values are not supported in JSON Schema")}n.default=a},ad=(e,t,n,r)=>{var i=e._zod.def,a=i.in._zod.traits.has("$ZodTransform"),a="input"!==t.io||a?i.out:i.in;_(a,t,r),t.seen.get(e).ref=a},od=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r),t.seen.get(e).ref=i.innerType,n.readOnly=!0},sd=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r),t.seen.get(e).ref=i.innerType},ud=(e,t,n,r)=>{var i=e._zod.def;_(i.innerType,t,r),t.seen.get(e).ref=i.innerType},ld=(e,t,n,r)=>{var i=e._zod.innerType;_(i,t,r),t.seen.get(e).ref=i},cd={string:$c,number:Ic,boolean:xc,bigint:Sc,symbol:Oc,null:zc,undefined:Nc,void:jc,never:Pc,any:Kt,unknown:Uc,date:Dc,enum:Ac,literal:Ec,nan:Tc,template_literal:Lc,file:Cc,success:Zc,custom:Rc,function:Mc,transform:Fc,map:Kc,set:Vc,array:Jc,object:qc,union:Wc,intersection:Gc,tuple:Xc,record:Yc,nullable:Hc,nonoptional:Qc,default:nd,prefault:rd,catch:id,pipe:ad,readonly:od,promise:sd,optional:ud,lazy:ld};function dd(e,t){if("_idmap"in e){var n=e,r=fc({...t,processors:cd}),i={};for(const c of n._idmap.entries()){var[,a]=c;_(a,r)}var o={},s={registry:n,uri:t?.uri,defs:i};r.external=s;for(const d of n._idmap.entries()){var[u,l]=d;pc(r,l),x(o,u,bc(r,l))}return 0<Object.keys(i).length&&(s="draft-2020-12"===r.target?"$defs":"definitions",o.__shared={[s]:i}),{schemas:o}}n=fc({...t,processors:cd});return _(e,n),pc(n,e),bc(n,e)}var fd=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??"draft-2020-12";"draft-7"===(t="draft-4"===t?"draft-04":t)&&(t="draft-07"),this.ctx=fc({processors:cd,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return _(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external)&&(this.ctx.external=t.external),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,pc(this.ctx,e);const{"~standard":n,...r}=bc(this.ctx,e);return r}},md={},Kt={},Uc=(e(Kt,{ZodAny:()=>rm,ZodArray:()=>mm,ZodBase64:()=>wf,ZodBase64URL:()=>$f,ZodBigInt:()=>Bf,ZodBigIntFormat:()=>Wf,ZodBoolean:()=>Vf,ZodCIDRv4:()=>gf,ZodCIDRv6:()=>bf,ZodCUID:()=>ef,ZodCUID2:()=>nf,ZodCatch:()=>up,ZodCodec:()=>pp,ZodCreditCard:()=>Of,ZodCustom:()=>zp,ZodCustomStringFormat:()=>Pf,ZodDate:()=>dm,ZodDefault:()=>ep,ZodDiscriminatedUnion:()=>Im,ZodE164:()=>xf,ZodEmail:()=>Cd,ZodEmoji:()=>Xd,ZodEnum:()=>Cm,ZodExactOptional:()=>Gm,ZodFile:()=>Km,ZodFunction:()=>Sp,ZodGUID:()=>Rd,ZodIPv4:()=>df,ZodIPv6:()=>hf,ZodISODate:()=>Ed,ZodISODateTime:()=>Ad,ZodISODuration:()=>Ld,ZodISOTime:()=>Td,ZodIntersection:()=>Sm,ZodJWT:()=>Nf,ZodKSUID:()=>lf,ZodLazy:()=>kp,ZodLiteral:()=>Mm,ZodMAC:()=>mf,ZodMap:()=>Am,ZodNaN:()=>cp,ZodNanoID:()=>Hd,ZodNever:()=>sm,ZodNonOptional:()=>ip,ZodNull:()=>tm,ZodNullable:()=>Ym,ZodNumber:()=>Tf,ZodNumberFormat:()=>Cf,ZodObject:()=>vm,ZodOptional:()=>qm,ZodPipe:()=>fp,ZodPrefault:()=>np,ZodPreprocess:()=>gp,ZodPromise:()=>Ip,ZodReadonly:()=>yp,ZodRecord:()=>jm,ZodSet:()=>Tm,ZodString:()=>Ud,ZodStringFormat:()=>c,ZodSuccess:()=>op,ZodSymbol:()=>Yf,ZodTemplateLiteral:()=>_p,ZodTransform:()=>Jm,ZodTuple:()=>zm,ZodType:()=>s,ZodULID:()=>af,ZodURL:()=>qd,ZodUUID:()=>Fd,ZodUndefined:()=>Qf,ZodUnion:()=>_m,ZodUnknown:()=>am,ZodVoid:()=>lm,ZodXID:()=>sf,ZodXor:()=>km,_ZodString:()=>Pd,_default:()=>tp,_function:()=>Op,any:()=>im,array:()=>pm,base64:()=>kf,base64url:()=>If,bigint:()=>qf,boolean:()=>Jf,catch:()=>lp,check:()=>Np,cidrv4:()=>yf,cidrv6:()=>_f,codec:()=>hp,creditCard:()=>zf,cuid:()=>tf,cuid2:()=>rf,custom:()=>jp,date:()=>fm,describe:()=>Dp,discriminatedUnion:()=>xm,e164:()=>Sf,email:()=>Zd,emoji:()=>Yd,enum:()=>Zm,exactOptional:()=>Xm,file:()=>Vm,float32:()=>Rf,float64:()=>Mf,function:()=>Op,guid:()=>Md,hash:()=>Ef,hex:()=>Af,hostname:()=>Df,httpUrl:()=>Gd,instanceof:()=>Ep,int:()=>Zf,int32:()=>Ff,int64:()=>Gf,intersection:()=>Om,invertCodec:()=>vp,ipv4:()=>ff,ipv6:()=>vf,json:()=>Lp,jwt:()=>jf,keyof:()=>hm,ksuid:()=>cf,lazy:()=>$p,literal:()=>Fm,looseObject:()=>bm,looseRecord:()=>Dm,mac:()=>pf,map:()=>Em,meta:()=>Ap,nan:()=>dp,nanoid:()=>Qd,nativeEnum:()=>Rm,never:()=>um,nonoptional:()=>ap,null:()=>nm,nullable:()=>Hm,nullish:()=>Qm,number:()=>Lf,object:()=>gm,optional:()=>Wm,partialRecord:()=>Um,pipe:()=>mp,prefault:()=>rp,preprocess:()=>Cp,promise:()=>xp,readonly:()=>bp,record:()=>Pm,refine:()=>Pp,set:()=>Lm,strictObject:()=>ym,string:()=>Dd,stringFormat:()=>Uf,stringbool:()=>Tp,success:()=>sp,superRefine:()=>Up,symbol:()=>Hf,templateLiteral:()=>wp,transform:()=>Bm,tuple:()=>Nm,uint32:()=>Kf,uint64:()=>Xf,ulid:()=>of,undefined:()=>em,union:()=>wm,unknown:()=>om,url:()=>Wd,uuid:()=>Kd,uuidv4:()=>Vd,uuidv6:()=>Jd,uuidv7:()=>Bd,void:()=>cm,xid:()=>uf,xor:()=>$m}),{}),pd=(e(Uc,{endsWith:()=>Jl,gt:()=>Ol,gte:()=>zl,includes:()=>Kl,length:()=>Zl,lowercase:()=>Ml,lt:()=>xl,lte:()=>Sl,maxLength:()=>Ll,maxSize:()=>Al,mime:()=>Wl,minLength:()=>Cl,minSize:()=>El,multipleOf:()=>Dl,negative:()=>jl,nonnegative:()=>Ul,nonpositive:()=>Pl,normalize:()=>Xl,overwrite:()=>Gl,positive:()=>Nl,properties:()=>ql,property:()=>Bl,regex:()=>Rl,size:()=>Tl,slugify:()=>ec,startsWith:()=>Vl,toLowerCase:()=>Hl,toUpperCase:()=>Ql,trim:()=>Yl,uppercase:()=>Fl}),new WeakSet([Object.prototype,Error.prototype]));function hd(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){var e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var i=(e,t)=>{Vt.init(e,t),e.name="ZodError";t=Object.getPrototypeOf(e);pd.has(t)||(pd.add(t),hd(t,"format",t=>e=>qt(t,e)),hd(t,"flatten",t=>e=>Bt(t,e)),hd(t,"addIssue",t=>e=>{t.issues.push(e),t.message=JSON.stringify(t.issues,Fe,2)}),hd(t,"addIssues",t=>e=>{t.issues.push(...e),t.message=JSON.stringify(t.issues,Fe,2)}),Object.defineProperty(t,"isEmpty",{configurable:!0,enumerable:!1,get(){return 0===this.issues.length}}))},vd=r("ZodError",i),gd=r("ZodError",i,void 0,{Parent:Error}),yd=Ht(gd),bd=en(gd),_d=nn(gd),wd=an(gd),kd=dn(gd),$d=mn(gd),Id=hn(gd),xd=gn(gd),Sd=bn(gd),Od=wn(gd),zd=$n(gd),Nd=xn(gd);function jd(){Ct.memoizer||g({memoizer:Po})}var s=r("ZodType",(e,t)=>(Ct.localeError||g(Wo()),y.init(e,t),e.def=t,e.type=t.type,e),{check(...e){var t=this.def;return this.clone(o.mergeDefs(t,{checks:[...t.checks??[],...e.map(e=>"function"==typeof e?{_zod:{check:e,def:{check:"custom"},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return I(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Pp(e,t))},superRefine(e,t){return this.check(Up(e,t))},overwrite(e){return this.check(Gl(e))},optional(){return Wm(this)},exactOptional(){return Xm(this)},nullable(){return Hm(this)},nullish(){return Wm(Hm(this))},nonoptional(e){return ap(this,e)},array(){return pm(this)},or(e){return wm([this,e])},and(e){return Om(this,e)},transform(e){return mp(this,Bm(e))},default(e){return tp(this,e)},prefault(e){return rp(this,e)},catch(e){return lp(this,e)},pipe(e){return mp(this,e)},readonly(){return bp(this)},describe(e){var t=this.clone();return eu.add(t,{description:e}),t},meta(...e){var t;return 0===e.length?eu.get(this):(t=this.clone(),eu.add(t,e[0]),t)},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return 0===t.length?e(this):e(this,...t)},get"~standard"(){return o.hide(this,"~standard",{...hi(this),jsonSchema:{input:wc(this,"input"),output:wc(this,"output")}})},set"~standard"(e){o.own(this,"~standard",e)},parse:function e(t,n){return yd(this,t,n,{callee:e})},parseAsync:async function e(t,n){return bd(this,t,n,{callee:e})},safeParse(e,t){return _d(this,e,t)},async safeParseAsync(e,t){return wd(this,e,t)},get spa(){return this.safeParseAsync},set spa(e){o.own(this,"spa",e)},encode:function e(t,n){return kd(this,t,n,{callee:e})},decode:function e(t,n){return $d(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return Id(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return xd(this,t,n,{callee:e})},safeEncode(e,t){return Sd(this,e,t)},safeDecode(e,t){return Od(this,e,t)},async safeEncodeAsync(e,t){return zd(this,e,t)},async safeDecodeAsync(e,t){return Nd(this,e,t)},get toJSONSchema(){return o.own(this,"toJSONSchema",_c(this,{}))},set toJSONSchema(e){o.own(this,"toJSONSchema",e)},get description(){return eu.get(this)?.description},get _def(){return this._zod.def}}),Pd=r("_ZodString",(r,e)=>{vi.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>$c(r,e,t);e=r._zod.bag;r.format=e.format??null,r.minLength=e.minimum??null,r.maxLength=e.maximum??null},{regex(...e){return this.check(Rl(...e))},includes(...e){return this.check(Kl(...e))},startsWith(...e){return this.check(Vl(...e))},endsWith(...e){return this.check(Jl(...e))},min(...e){return this.check(Cl(...e))},max(...e){return this.check(Ll(...e))},length(...e){return this.check(Zl(...e))},nonempty(...e){return this.check(Cl(1,...e))},lowercase(e){return this.check(Ml(e))},uppercase(e){return this.check(Fl(e))},trim(){return this.check(Yl())},normalize(...e){return this.check(Xl(...e))},toLowerCase(){return this.check(Hl())},toUpperCase(){return this.check(Ql())},slugify(){return this.check(ec())}}),Ud=r("ZodString",(e,t)=>{vi.init(e,t),Pd.init(e,t)},{email(e){return this.check(Ou(Cd,e))},url(e){return this.check(Du(qd,e))},jwt(e){return this.check(Xu(Nf,e))},emoji(e){return this.check(Au(Xd,e))},guid(e){return this.check(zu(Rd,e))},uuid(e){return this.check(Nu(Fd,e))},uuidv4(e){return this.check(ju(Fd,e))},uuidv6(e){return this.check(Pu(Fd,e))},uuidv7(e){return this.check(Uu(Fd,e))},nanoid(e){return this.check(Eu(Hd,e))},cuid(e){return this.check(Tu(ef,e))},cuid2(e){return this.check(Lu(nf,e))},ulid(e){return this.check(Cu(af,e))},base64(e){return this.check(Bu(wf,e))},base64url(e){return this.check(qu($f,e))},xid(e){return this.check(Zu(sf,e))},ksuid(e){return this.check(Ru(lf,e))},ipv4(e){return this.check(Mu(df,e))},ipv6(e){return this.check(Fu(hf,e))},cidrv4(e){return this.check(Vu(gf,e))},cidrv6(e){return this.check(Ju(bf,e))},e164(e){return this.check(Wu(xf,e))},datetime(e){return this.check(Hu(Ad,e))},date(e){return this.check(Qu(Ed,e))},time(e){return this.check(el(Td,e))},duration(e){return this.check(tl(Ld,e))}});function Dd(e){return xu(Ud,e)}var c=r("ZodStringFormat",(e,t)=>{a.init(e,t),Pd.init(e,t)}),Ad=r("ZodISODateTime",(e,t)=>{Ei.init(e,t),c.init(e,t)}),Ed=r("ZodISODate",(e,t)=>{Ti.init(e,t),c.init(e,t)}),Td=r("ZodISOTime",(e,t)=>{Li.init(e,t),c.init(e,t)}),Ld=r("ZodISODuration",(e,t)=>{Ci.init(e,t),c.init(e,t)}),Cd=r("ZodEmail",(e,t)=>{bi.init(e,t),c.init(e,t)});function Zd(e){return Ou(Cd,e)}var Rd=r("ZodGUID",(e,t)=>{gi.init(e,t),c.init(e,t)});function Md(e){return zu(Rd,e)}var Fd=r("ZodUUID",(e,t)=>{yi.init(e,t),c.init(e,t)});function Kd(e){return Nu(Fd,e)}function Vd(e){return ju(Fd,e)}function Jd(e){return Pu(Fd,e)}function Bd(e){return Uu(Fd,e)}var qd=r("ZodURL",(e,t)=>{Oi.init(e,t),c.init(e,t)});function Wd(e){return Du(qd,e)}function Gd(e){return Du(qd,{protocol:On.httpProtocol,hostname:On.domain,...o.normalizeParams(e)})}var Xd=r("ZodEmoji",(e,t)=>{zi.init(e,t),c.init(e,t)});function Yd(e){return Au(Xd,e)}var Hd=r("ZodNanoID",(e,t)=>{Ni.init(e,t),c.init(e,t)});function Qd(e){return Eu(Hd,e)}var ef=r("ZodCUID",(e,t)=>{ji.init(e,t),c.init(e,t)});function tf(e){return Tu(ef,e)}var nf=r("ZodCUID2",(e,t)=>{Pi.init(e,t),c.init(e,t)});function rf(e){return Lu(nf,e)}var af=r("ZodULID",(e,t)=>{Ui.init(e,t),c.init(e,t)});function of(e){return Cu(af,e)}var sf=r("ZodXID",(e,t)=>{Di.init(e,t),c.init(e,t)});function uf(e){return Zu(sf,e)}var lf=r("ZodKSUID",(e,t)=>{Ai.init(e,t),c.init(e,t)});function cf(e){return Ru(lf,e)}var df=r("ZodIPv4",(e,t)=>{Zi.init(e,t),c.init(e,t)});function ff(e){return Mu(df,e)}var mf=r("ZodMAC",(e,t)=>{Ki.init(e,t),c.init(e,t)});function pf(e){return Ku(mf,e)}var hf=r("ZodIPv6",(e,t)=>{Fi.init(e,t),c.init(e,t)});function vf(e){return Fu(hf,e)}var gf=r("ZodCIDRv4",(e,t)=>{Vi.init(e,t),c.init(e,t)});function yf(e){return Vu(gf,e)}var bf=r("ZodCIDRv6",(e,t)=>{Bi.init(e,t),c.init(e,t)});function _f(e){return Ju(bf,e)}var wf=r("ZodBase64",(e,t)=>{Wi.init(e,t),c.init(e,t)});function kf(e){return Bu(wf,e)}var $f=r("ZodBase64URL",(e,t)=>{Xi.init(e,t),c.init(e,t)});function If(e){return qu($f,e)}var xf=r("ZodE164",(e,t)=>{Yi.init(e,t),c.init(e,t)});function Sf(e){return Wu(xf,e)}var Of=r("ZodCreditCard",(e,t)=>{ea.init(e,t),c.init(e,t)});function zf(e){return Gu(Of,e)}var Nf=r("ZodJWT",(e,t)=>{na.init(e,t),c.init(e,t)});function jf(e){return Xu(Nf,e)}var Pf=r("ZodCustomStringFormat",(e,t)=>{ra.init(e,t),c.init(e,t)});function Uf(e,t,n={}){return cc(Pf,e,t,n)}function Df(e){return cc(Pf,"hostname",On.hostname,e)}function Af(e){return cc(Pf,"hex",On.hex,e)}function Ef(e,t){var e=e+"_"+(t?.enc??"hex"),n=On[e];if(n)return cc(Pf,e,n,t);throw new Error("Unrecognized hash format: "+e)}var Tf=r("ZodNumber",(r,e)=>{ia.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Ic(r,e,t,n);e=r._zod.bag;r.minValue=Math.max(e.minimum??Number.NEGATIVE_INFINITY,e.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,r.maxValue=Math.min(e.maximum??Number.POSITIVE_INFINITY,e.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,r.isInt=(e.format??"").includes("int")||Number.isSafeInteger(e.multipleOf??.5),r.isFinite=!0,r.format=e.format??null},{gt(e,t){return this.check(Ol(e,t))},gte(e,t){return this.check(zl(e,t))},min(e,t){return this.check(zl(e,t))},lt(e,t){return this.check(xl(e,t))},lte(e,t){return this.check(Sl(e,t))},max(e,t){return this.check(Sl(e,t))},int(e){return this.check(Zf(e))},safe(e){return this.check(Zf(e))},positive(e){return this.check(Ol(0,e))},nonnegative(e){return this.check(zl(0,e))},negative(e){return this.check(xl(0,e))},nonpositive(e){return this.check(Sl(0,e))},multipleOf(e,t){return this.check(Dl(e,t))},step(e,t){return this.check(Dl(e,t))},finite(){return this}});function Lf(e){return nl(Tf,e)}var Cf=r("ZodNumberFormat",(e,t)=>{aa.init(e,t),Tf.init(e,t)});function Zf(e){return il(Cf,e)}function Rf(e){return al(Cf,e)}function Mf(e){return ol(Cf,e)}function Ff(e){return sl(Cf,e)}function Kf(e){return ul(Cf,e)}var Vf=r("ZodBoolean",(e,t)=>{oa.init(e,t),s.init(e,t),e._zod.processJSONSchema=(e,t,n)=>xc(0,0,t)});function Jf(e){return ll(Vf,e)}var Bf=r("ZodBigInt",(r,e)=>{sa.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Sc(r,e,t,n);e=r._zod.bag;r.minValue=e.minimum??null,r.maxValue=e.maximum??null,r.format=e.format??null},{gte(e,t){return this.check(zl(e,t))},min(e,t){return this.check(zl(e,t))},gt(e,t){return this.check(Ol(e,t))},lt(e,t){return this.check(xl(e,t))},lte(e,t){return this.check(Sl(e,t))},max(e,t){return this.check(Sl(e,t))},positive(e){return this.check(Ol(BigInt(0),e))},negative(e){return this.check(xl(BigInt(0),e))},nonpositive(e){return this.check(Sl(BigInt(0),e))},nonnegative(e){return this.check(zl(BigInt(0),e))},multipleOf(e,t){return this.check(Dl(e,t))}});function qf(e){return dl(Bf,e)}var Wf=r("ZodBigIntFormat",(e,t)=>{ua.init(e,t),Bf.init(e,t)});function Gf(e){return ml(Wf,e)}function Xf(e){return pl(Wf,e)}var Yf=r("ZodSymbol",(r,e)=>{la.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Oc(r,e,t,n)});function Hf(e){return hl(Yf,e)}var Qf=r("ZodUndefined",(r,e)=>{ca.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Nc(r,e,t,n)});function em(e){return vl(Qf,e)}var tm=r("ZodNull",(e,t)=>{da.init(e,t),s.init(e,t),e._zod.processJSONSchema=(e,t,n)=>zc(0,e,t)});function nm(e){return gl(tm,e)}var rm=r("ZodAny",(e,t)=>{fa.init(e,t),s.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function im(){return yl(rm)}var am=r("ZodUnknown",(e,t)=>{ma.init(e,t),s.init(e,t),e._zod.processJSONSchema=(e,t,n)=>{}});function om(){return bl(am)}var sm=r("ZodNever",(e,t)=>{pa.init(e,t),s.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Pc(0,0,t)});function um(e){return _l(sm,e)}var lm=r("ZodVoid",(r,e)=>{ha.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>jc(r,e,t,n)});function cm(e){return wl(lm,e)}var dm=r("ZodDate",(r,e)=>{va.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Dc(r,e,t,n),r.min=(e,t)=>r.check(zl(e,t)),r.max=(e,t)=>r.check(Sl(e,t));e=r._zod.bag;r.minDate=e.minimum?new Date(e.minimum):null,r.maxDate=e.maximum?new Date(e.maximum):null});function fm(e){return kl(dm,e)}var mm=r("ZodArray",(r,e)=>{jd(),ya.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Jc(r,e,t,n),r.element=e.element},{min(e,t){return this.check(Cl(e,t))},nonempty(e){return this.check(Cl(1,e))},max(e,t){return this.check(Ll(e,t))},length(e,t){return this.check(Zl(e,t))},unwrap(){return this.element}});function pm(e,t){return tc(mm,e,t)}function hm(e){e=e._zod.def.shape;return Zm(Object.keys(e))}var vm=r("ZodObject",(r,e)=>{jd(),xa.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>qc(r,e,t,n),o.installLazyProp(r,"shape",e=>e._zod.def.shape,!1)},{keyof(){return Zm(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:om()})},loose(){return this.clone({...this._zod.def,catchall:om()})},strict(){return this.clone({...this._zod.def,catchall:um()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return o.extend(this,e)},safeExtend(e){return o.safeExtend(this,e)},merge(e){return o.merge(this,e)},pick(e){return o.pick(this,e)},omit(e){return o.omit(this,e)},partial(...e){return o.partial(qm,this,e[0])},exactPartial(...e){return o.partial(Gm,this,e[0],"exactPartial")},required(...e){return o.required(ip,this,e[0])}});function gm(e,t){e={type:"object",shape:e??{},...o.normalizeParams(t)};return new vm(e)}function ym(e,t){return new vm({type:"object",shape:e,catchall:um(),...o.normalizeParams(t)})}function bm(e,t){return new vm({type:"object",shape:e,catchall:om(),...o.normalizeParams(t)})}var _m=r("ZodUnion",(r,e)=>{Oa.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Wc(r,e,t,n),r.options=e.options});function wm(e,t){return new _m({type:"union",options:e,...o.normalizeParams(t)})}var km=r("ZodXor",(r,e)=>{_m.init(r,e),Na.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Wc(r,e,t,n),r.options=e.options});function $m(e,t){return new km({type:"union",options:e,inclusive:!1,...o.normalizeParams(t)})}var Im=r("ZodDiscriminatedUnion",(e,t)=>{_m.init(e,t),Pa.init(e,t)});function xm(e,t,n){return new Im({type:"union",options:t,discriminator:e,...o.normalizeParams(n)})}var Sm=r("ZodIntersection",(r,e)=>{Ua.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Gc(r,e,t,n)});function Om(e,t){return new Sm({type:"intersection",left:e,right:t})}var zm=r("ZodTuple",(r,e)=>{jd(),Ea.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Xc(r,e,t,n)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){var e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(e=>new qm({type:"optional",innerType:e}))})}});function Nm(e,t,n){var r=t instanceof y;return new zm({type:"tuple",items:e,rest:r?t:null,...o.normalizeParams(r?n:t)})}var jm=r("ZodRecord",(r,e)=>{jd(),Za.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Yc(r,e,t,n),r.keyType=e.keyType,r.valueType=e.valueType});function Pm(e,t,n){return t&&t._zod?new jm({type:"record",keyType:e,valueType:t,...o.normalizeParams(n)}):new jm({type:"record",keyType:Dd(),valueType:e,...o.normalizeParams(t)})}function Um(e,t,n){return new jm({type:"record",keyType:e,valueType:t,...o.normalizeParams(n),partial:!0})}function Dm(e,t,n){return new jm({type:"record",keyType:e,valueType:t,mode:"loose",...o.normalizeParams(n)})}var Am=r("ZodMap",(r,e)=>{jd(),Ra.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Kc(r,e,t,n),r.keyType=e.keyType,r.valueType=e.valueType,r.min=(...e)=>r.check(El(...e)),r.nonempty=e=>r.check(El(1,e)),r.max=(...e)=>r.check(Al(...e)),r.size=(...e)=>r.check(Tl(...e))});function Em(e,t,n){return new Am({type:"map",keyType:e,valueType:t,...o.normalizeParams(n)})}var Tm=r("ZodSet",(r,e)=>{jd(),Fa.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Vc(r,e,t,n),r.min=(...e)=>r.check(El(...e)),r.nonempty=e=>r.check(El(1,e)),r.max=(...e)=>r.check(Al(...e)),r.size=(...e)=>r.check(Tl(...e))});function Lm(e,t){return new Tm({type:"set",valueType:e,...o.normalizeParams(t)})}var Cm=r("ZodEnum",(r,i)=>{Va.init(r,i),s.init(r,i),r._zod.processJSONSchema=(e,t,n)=>Ac(r,0,t),r.enum=i.entries,r.options=Object.values(i.entries);const a=new Set(Object.keys(i.entries));r.extract=(e,t)=>{var n={};for(const r of e){if(!a.has(r))throw new Error(`Key ${r} not found in enum`);n[r]=i.entries[r]}return new Cm({...i,checks:[],...o.normalizeParams(t),entries:n})},r.exclude=(e,t)=>{var n={...i.entries};for(const r of e){if(!a.has(r))throw new Error(`Key ${r} not found in enum`);delete n[r]}return new Cm({...i,checks:[],...o.normalizeParams(t),entries:n})}});function Zm(e,t){e=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Cm({type:"enum",entries:e,...o.normalizeParams(t)})}function Rm(e,t){return new Cm({type:"enum",entries:e,...o.normalizeParams(t)})}var Mm=r("ZodLiteral",(r,e)=>{Ja.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Ec(r,e,t,n),r.values=new Set(e.values),Object.defineProperty(r,"value",{get(){if(1<e.values.length)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Fm(e,t){return new Mm({type:"literal",values:Array.isArray(e)?e:[e],...o.normalizeParams(t)})}var Km=r("ZodFile",(r,e)=>{Ba.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Cc(r,0,t),r.min=(e,t)=>r.check(El(e,t)),r.max=(e,t)=>r.check(Al(e,t)),r.mime=(e,t)=>r.check(Wl(Array.isArray(e)?e:[e],t))});function Vm(e){return nc(Km,e)}var Jm=r("ZodTransform",(r,n)=>{jd(),qa.init(r,n),s.init(r,n),r._zod.processJSONSchema=(e,t,n)=>Fc(r,e,t,n),r._zod.parse=(t,e)=>{if("backward"===e.direction)throw new Lt(r.constructor.name);t.addIssue=e=>{"string"==typeof e?t.issues.push(o.issue(e,t.value,n)):((e=e).fatal&&(e.continue=!1),e.code??(e.code="custom"),"input"in e||(e.input=t.value),e.inst??(e.inst=r),t.issues.push(o.issue(e)))};e=n.transform(t.value,t);return e instanceof Promise?e.then(e=>(t.value=e,t)):(t.value=e,t)}});function Bm(e){return new Jm({type:"transform",transform:e})}var qm=r("ZodOptional",(r,e)=>{Ga.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>ud(r,e,0,n),r.unwrap=()=>r._zod.def.innerType});function Wm(e){return new qm({type:"optional",innerType:e})}var Gm=r("ZodExactOptional",(r,e)=>{Xa.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>ud(r,e,0,n),r.unwrap=()=>r._zod.def.innerType});function Xm(e){return new Gm({type:"optional",innerType:e})}var Ym=r("ZodNullable",(r,e)=>{Ya.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Hc(r,e,t,n),r.unwrap=()=>r._zod.def.innerType});function Hm(e){return new Ym({type:"nullable",innerType:e})}function Qm(e){return Wm(Hm(e))}var ep=r("ZodDefault",(r,e)=>{Ha.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>nd(r,e,t,n),r.unwrap=()=>r._zod.def.innerType,r.removeDefault=r.unwrap});function tp(e,t){return new ep({type:"default",innerType:e,get defaultValue(){return"function"==typeof t?t():o.shallowClone(t)}})}var np=r("ZodPrefault",(r,e)=>{eo.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>rd(r,e,t,n),r.unwrap=()=>r._zod.def.innerType});function rp(e,t){return new np({type:"prefault",innerType:e,get defaultValue(){return"function"==typeof t?t():o.shallowClone(t)}})}var ip=r("ZodNonOptional",(r,e)=>{to.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Qc(r,e,0,n),r.unwrap=()=>r._zod.def.innerType});function ap(e,t){return new ip({type:"nonoptional",innerType:e,...o.normalizeParams(t)})}var op=r("ZodSuccess",(e,t)=>{ro.init(e,t),s.init(e,t),e._zod.processJSONSchema=(e,t,n)=>Zc(0,0,t),e.unwrap=()=>e._zod.def.innerType});function sp(e){return new op({type:"success",innerType:e})}var up=r("ZodCatch",(r,e)=>{ao.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>id(r,e,t,n),r.unwrap=()=>r._zod.def.innerType,r.removeCatch=r.unwrap});function lp(e,t){return new up({type:"catch",innerType:e,catchValue:"function"==typeof t?t:o.constantCatch(t)})}var cp=r("ZodNaN",(r,e)=>{oo.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Tc(r,e,t,n)});function dp(e){return Il(cp,e)}var fp=r("ZodPipe",(r,e)=>{so.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>ad(r,e,0,n),r.in=e.in,r.out=e.out});function mp(e,t){return new fp({type:"pipe",in:e,out:t})}var pp=r("ZodCodec",(e,t)=>{fp.init(e,t),lo.init(e,t)});function hp(e,t,n){return new pp({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function vp(e){e=e._zod.def;return new pp({type:"pipe",in:e.out,out:e.in,transform:e.reverseTransform,reverseTransform:e.transform})}var gp=r("ZodPreprocess",(e,t)=>{fp.init(e,t),mo.init(e,t)}),yp=r("ZodReadonly",(r,e)=>{po.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>od(r,e,t,n),r.unwrap=()=>r._zod.def.innerType});function bp(e){return new yp({type:"readonly",innerType:e})}var _p=r("ZodTemplateLiteral",(r,e)=>{vo.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Lc(r,0,t)});function wp(e,t){return new _p({type:"template_literal",parts:e,...o.normalizeParams(t)})}var kp=r("ZodLazy",(r,e)=>{bo.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>ld(r,e,0,n),r.unwrap=()=>r._zod.def.getter()});function $p(e){return new kp({type:"lazy",getter:e})}var Ip=r("ZodPromise",(r,e)=>{yo.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>sd(r,e,0,n),r.unwrap=()=>r._zod.def.innerType});function xp(e){return new Ip({type:"promise",innerType:e})}var Sp=r("ZodFunction",(r,e)=>{go.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Mc(r,e,t,n)});function Op(e){return new Sp({type:"function",input:Array.isArray(e?.input)?Nm(e?.input):e?.input??pm(om()),output:e?.output??om()})}var zp=r("ZodCustom",(r,e)=>{_o.init(r,e),s.init(r,e),r._zod.processJSONSchema=(e,t,n)=>Rc(r,e,t,n)});function Np(e){var t=new u({check:"custom"});return t._zod.check=e,t}function jp(e,t){return rc(zp,e??(()=>!0),t)}function Pp(e,t={}){return ic(zp,e,t)}function Up(e,t){return ac(e,t)}var Dp=sc,Ap=uc;function Ep(t,e={}){const n=new zp({type:"custom",check:"custom",fn:e=>e instanceof t,abort:!0,...o.normalizeParams(e)});return n._zod.bag.Class=t,n._zod.check=e=>{e.value instanceof t||e.issues.push({code:"invalid_type",expected:t.name,input:e.value,inst:n,path:[...n._zod.def.path??[]]})},n}var Tp=(...e)=>lc({Codec:pp,Boolean:Vf,String:Ud},...e);function Lp(e){const t=$p(()=>wm([Dd(e),Lf(),Jf(),nm(),pm(t),Pm(Dd(),t)]));return t}function Cp(e,t){return new gp({type:"pipe",in:Bm(e),out:t})}var Zp={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"};var Rp=Rp||{},Mp={};e(Mp,{ZodISODate:()=>Ed,ZodISODateTime:()=>Ad,ZodISODuration:()=>Ld,ZodISOTime:()=>Td,date:()=>function(e){return Qu(Ed,e)},datetime:()=>function(e){return Hu(Ad,e)},duration:()=>function(e){return tl(Ld,e)},time:()=>function(e){return el(Td,e)}});var S={...Kt,...Uc,iso:Mp},Fp=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Kp(e,n){return e.map((e,t)=>t<n?e:e.optional())}function Vp(e,t){if(!1!==e)return void 0===e||!0===e?S.any():qp(e,t)}var Jp=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function Bp(t,n){if(void 0!==t.not){if("object"==typeof t.not&&0===Object.keys(t.not).length)return S.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(void 0!==t.unevaluatedItems)throw new Error("unevaluatedItems is not supported");if(void 0!==t.unevaluatedProperties)throw new Error("unevaluatedProperties is not supported");if(void 0!==t.if||void 0!==t.then||void 0!==t.else)throw new Error("Conditional schemas (if/then/else) are not supported");if(void 0!==t.dependentSchemas||void 0!==t.dependentRequired)throw new Error("dependentSchemas and dependentRequired are not supported");if(t.$ref){const _=t.$ref;if(n.refs.has(_))return n.refs.get(_);if(n.processing.has(_))return S.lazy(()=>{if(n.refs.has(_))return n.refs.get(_);throw new Error("Circular reference not resolved: "+_)});n.processing.add(_);var e=qp(function(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");var n=e.slice(1).split("/").filter(Boolean);if(0===n.length)return t.rootSchema;var r="draft-2020-12"===t.version?"$defs":"definitions";if(n[0]===r){r=void 0===n[1]?void 0:n[1].replace(/~1/g,"/").replace(/~0/g,"~");if(r&&t.defs[r])return t.defs[r]}throw new Error("Reference not found: "+e)}(_,n),n);return n.refs.set(_,e),n.processing.delete(_),e}if(void 0!==t.enum)return e=t.enum,"openapi-3.0"===n.version&&!0===t.nullable&&1===e.length&&null===e[0]?S.null():0===e.length?S.never():1===e.length?S.literal(e[0]):e.every(e=>"string"==typeof e)?S.enum(e):(e=e.map(e=>S.literal(e))).length<2?e[0]:S.union([e[0],e[1],...e.slice(2)]);if(void 0!==t.const)return S.literal(t.const);var i,r=t.type;if(Array.isArray(r))return 0===(e=r.map(e=>{return Bp({...t,type:e},n)})).length?S.never():1===e.length?e[0]:S.union(e);if(!r)return S.any();let a;switch(r){case"string":{let e=S.string();t.format&&("email"===(l=t.format)?e=e.check(S.email()):"uri"===l||"uri-reference"===l?e=e.check(S.url()):"uuid"===l||"guid"===l?e=e.check(S.uuid()):"date-time"===l?e=e.check(S.iso.datetime({offset:!0})):"date"===l?e=e.check(S.iso.date()):"time"===l?e=e.check(S.regex(Jp)):"duration"===l?e=e.check(S.iso.duration()):"hostname"===l?e=e.check(S.hostname()):"ipv4"===l?e=e.check(S.ipv4()):"ipv6"===l?e=e.check(S.ipv6()):"mac"===l?e=e.check(S.mac()):"cidr"===l?e=e.check(S.cidrv4()):"cidr-v6"===l?e=e.check(S.cidrv6()):"base64"===l?e=e.check(S.base64()):"base64url"===l?e=e.check(S.base64url()):"e164"===l?e=e.check(S.e164()):"credit_card"===l?e=e.check(S.creditCard()):"jwt"===l?e=e.check(S.jwt()):"emoji"===l?e=e.check(S.emoji()):"nanoid"===l?e=e.check(S.nanoid()):"cuid"===l?e=e.check(S.cuid()):"cuid2"===l?e=e.check(S.cuid2()):"ulid"===l?e=e.check(S.ulid()):"xid"===l?e=e.check(S.xid()):"ksuid"===l&&(e=e.check(S.ksuid()))),"number"==typeof t.minLength&&(e=e.min(t.minLength)),"number"==typeof t.maxLength&&(e=e.max(t.maxLength)),t.pattern&&(e=e.regex(new RegExp(t.pattern))),a=e;break}case"number":case"integer":{let e="integer"===r?S.number().int():S.number();"number"==typeof t.minimum&&!0!==t.exclusiveMinimum&&(e=e.min(t.minimum)),"number"==typeof t.maximum&&!0!==t.exclusiveMaximum&&(e=e.max(t.maximum)),"number"==typeof t.exclusiveMinimum?e=e.gt(t.exclusiveMinimum):!0===t.exclusiveMinimum&&"number"==typeof t.minimum&&(e=e.gt(t.minimum)),"number"==typeof t.exclusiveMaximum?e=e.lt(t.exclusiveMaximum):!0===t.exclusiveMaximum&&"number"==typeof t.maximum&&(e=e.lt(t.maximum)),"number"==typeof t.multipleOf&&(e=e.multipleOf(t.multipleOf)),a=e;break}case"boolean":a=S.boolean();break;case"null":a=S.null();break;case"object":var o,s,u={},l=t.properties||{},c=new Set(t.required||[]),d="object"==typeof t.additionalProperties?qp(t.additionalProperties,n):void 0;for([o,s]of Object.entries(l)){var f=qp(s,n);x(u,o,c.has(o)?f:f.optional())}if(t.patternProperties){var m=t.patternProperties,l=Object.keys(m),p=[];for(const w of l){var h=qp(m[w],n),v=S.string().regex(new RegExp(w));p.push(S.looseRecord(v,h))}var g=[];if(0<Object.keys(u).length&&g.push(S.object(u).passthrough()),g.push(...p),0===g.length)a=S.object({}).passthrough();else if(1===g.length)a=g[0];else{let t=S.intersection(g[0],g[1]);for(let e=2;e<g.length;e++)t=S.intersection(t,g[e]);a=t}if(!1===t.additionalProperties){const k=Object.keys(u),$=l.map(e=>new RegExp(e)),I=a;a=a.check(e=>{if(tt(e.value)){var t=[];for(const n of Object.keys(e.value))k.includes(n)||$.some(e=>e.test(n))||t.push(n);t.length&&e.issues.push({code:"unrecognized_keys",keys:t,input:e.value,inst:I})}})}}else{l=S.object(u);a=!1===t.additionalProperties?l.strict():d?l.catchall(d):l.passthrough()}void 0!==t.propertyNames&&!0!==t.propertyNames&&(d="object"==typeof t.propertyNames&&void 0===t.propertyNames.type?{type:"string",...t.propertyNames}:t.propertyNames,a=(l=a,i=qp(d,n),S.transform(e=>e).check(e=>{var t=e.value;if("object"==typeof t&&null!==t&&!Array.isArray(t))for(const r of Object.getOwnPropertyNames(t)){var n=i.safeParse(r);n.success||e.issues.push({code:"invalid_key",origin:"record",issues:n.error.issues,input:r,path:[r],continue:!0})}}).pipe(l)));break;case"array":var d=t.prefixItems,y=t.items;if(d&&Array.isArray(d)){var b="number"==typeof t.minItems?t.minItems:0,d=Kp(d.map(e=>qp(e,n)),b),b=Array.isArray(y)?void 0:Vp(y,n),d=S.tuple(d);a=b?d.rest(b):d,"number"==typeof t.minItems&&(a=a.check(S.minLength(t.minItems))),"number"==typeof t.maxItems&&(a=a.check(S.maxLength(t.maxItems)))}else if(Array.isArray(y)){b="number"==typeof t.minItems?t.minItems:0,d=Kp(y.map(e=>qp(e,n)),b),b=Vp(t.additionalItems,n),d=S.tuple(d);a=b?d.rest(b):d,"number"==typeof t.minItems&&(a=a.check(S.minLength(t.minItems))),"number"==typeof t.maxItems&&(a=a.check(S.maxLength(t.maxItems)))}else if(void 0!==y){b=qp(y,n);let e=S.array(b);"number"==typeof t.minItems&&(e=e.min(t.minItems)),"number"==typeof t.maxItems&&(e=e.max(t.maxItems)),a=e}else a=S.array(S.any());break;default:throw new Error("Unsupported type: "+r)}return a}function qp(n,r){if("boolean"==typeof n)return n?S.any():S.never();let e=Bp(n,r);var t,i=n.type||void 0!==n.enum||void 0!==n.const;if(n.anyOf&&Array.isArray(n.anyOf)&&(t=n.anyOf.map(e=>qp(e,r)),t=S.union(t),e=i?S.intersection(e,t):t),n.oneOf&&Array.isArray(n.oneOf)&&(t=n.oneOf.map(e=>qp(e,r)),t=S.xor(t),e=i?S.intersection(e,t):t),n.allOf&&Array.isArray(n.allOf))if(0===n.allOf.length)e=i?e:S.any();else{let t=i?e:qp(n.allOf[0],r);for(let e=i?0:1;e<n.allOf.length;e++)t=S.intersection(t,qp(n.allOf[e],r));e=t}!0===n.nullable&&"openapi-3.0"===r.version&&(e=S.nullable(e)),!0===n.readOnly&&(e=S.readonly(e)),void 0!==n.default&&(e=e.default(n.default));var a={};for(const o of["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"])o in n&&(a[o]=n[o]);for(const s of["contentEncoding","contentMediaType","contentSchema"])s in n&&(a[s]=n[s]);void 0!==n.propertyNames&&"object"===n.type&&void 0===n.$ref&&(a.propertyNames=n.propertyNames);for(const u of Object.keys(n))Fp.has(u)||x(a,u,n[u]);return 0<Object.keys(a).length&&r.registry.add(e,a),e=n.description?e.describe(n.description):e}var Wp=Symbol("z.visit/resolving");function Gp(e,r){const n="function"==typeof r?r:(e,t)=>{var n=r[e._zod.def.type];return n?n(e,t):e},i=new Map;function $(e){var t=i.get(e);if(t===Wp)return new bo({type:"lazy",getter:()=>i.get(e)});if(void 0!==t)return t;i.set(e,Wp);t=function(n){var r=n._zod.def,e=r.type;switch(e){case"object":{var i=r.shape,a=Object.keys(i);let e=!1;var o={};for(const g of a){var s=$(i[g]);s!==i[g]&&(e=!0),o[g]=s}let t=r.catchall;return(e=r.catchall&&(t=$(r.catchall))!==r.catchall?!0:e)?I(n,{...r,shape:o,catchall:t}):n}case"array":a=$(r.element);return a===r.element?n:I(n,{...r,element:a});case"tuple":{var u=r.items;let e=!1;var l=[];for(const y of u){var c=$(y);c!==y&&(e=!0),l.push(c)}let t=r.rest;return(e=r.rest&&(t=$(r.rest))!==r.rest?!0:e)?I(n,{...r,items:l,rest:t}):n}case"record":case"map":var u=$(r.keyType),t=$(r.valueType);return u===r.keyType&&t===r.valueType?n:I(n,{...r,keyType:u,valueType:t});case"set":t=$(r.valueType);return t===r.valueType?n:I(n,{...r,valueType:t});case"union":{var d=r.options;let e=!1;var f=[];for(const b of d){var m=$(b);m!==b&&(e=!0),f.push(m)}return e?I(n,{...r,options:f}):n}case"intersection":var d=$(r.left),p=$(r.right);return d===r.left&&p===r.right?n:I(n,{...r,left:d,right:p});case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":p=$(r.innerType);return p===r.innerType?n:I(n,{...r,innerType:p});case"pipe":var h=$(r.in),v=$(r.out);return h===r.in&&v===r.out?n:I(n,{...r,in:h,out:v});case"function":h=$(r.input),v=$(r.output);return h===r.input&&v===r.output?n:I(n,{...r,input:h,output:v});case"lazy":{const _=r.getter,{_cachedInner:w,...k}=r;return I(n,{...k,getter:()=>$(_())})}default:return n}}(e),t=n(t,t!==e);return i.set(e,t),t}return $(e)}function Xp(e){return t=e.out,(e=e.checks)?.length?I(t,Ge(n=t._zod.def,{checks:[...n.checks??[],...e]}),{parent:!0}):t;var t,n}var Yp={};e(Yp,{bigint:()=>function(e){return fl(Bf,e)},boolean:()=>function(e){return cl(Vf,e)},date:()=>function(e){return $l(dm,e)},number:()=>function(e){return rl(Tf,e)},string:()=>function(e){return Su(Ud,e)}});var i=n.array(n.object({name:n.string().trim().min(1),url:n.url().optional().catch(void 0)}).transform(({name:e,url:t})=>({name:e,url:t||"https://github.com/"+e})).nullable().catch(null)).transform(e=>e.filter(e=>null!==e)),Kt=n.union([n.array(n.string()),n.string().transform(e=>[e])]),Hp=n.looseObject({name:n.string().trim().min(1),description:n.string().trim().min(1),main:n.string().trim().min(1).optional(),usercss:n.string().trim().min(1).optional(),authors:i.catch([]),preview:n.string().nullish().transform(e=>e||""),readme:n.string().nullish().transform(e=>e||""),tags:Kt.catch([]),branch:n.string().trim().min(1).optional(),schemes:n.string().optional(),include:n.array(n.string()).optional().catch(void 0)}),Uc=(n.looseObject({title:n.string(),user:n.string().optional().catch(void 0),authors:i.optional().catch(void 0),tags:Kt.optional().catch(void 0)}),((e,t,n)=>{n=null!=e?C(F(e)):{};var r=!t&&e&&e.__esModule?n:Z(n,"default",{value:e,enumerable:!0}),i=e,a=void 0,o=void 0;if(i&&"object"==typeof i||"function"==typeof i)for(let e of M(i))K.call(r,e)||e===a||Z(r,e,{get:()=>i[e],enumerable:!(o=R(i,e))||o.enumerable});return r})(t(),1)),e=Symbol.for("Dexie"),n=globalThis[e]||(globalThis[e]=Uc.default);if(Uc.default.semVer!==n.semVer)throw new Error(`Two different versions of Dexie loaded in the same app: ${Uc.default.semVer} and `+n.semVer);var{}=n,Qp=n,eh="spicetify-marketplace",th="marketplace:",nh=[150,400,1e3],rh=new Map,ih=new Map,ah=new Map,oh=null,sh=null,uh=!1,lh=null,ch=Promise.resolve(),dh=0,fh=!1;function mh(){return uh||!window.indexedDB?null:(sh||((oh=new Qp(eh)).version(1).stores({settings:"key"}),sh=oh.table("settings")),sh)}function ph(){oh?.close(),sh=oh=null}function hh(e,t,n){for(const a of(r=e,i=t,new Set([...Array.from(r.keys()).filter(e=>!i.has(e)),...Array.from(i.entries()).filter(([e,t])=>r.get(e)!==t).map(([e])=>e)])))(ah.get(a)??0)>n||(t.has(a)?rh.set(a,t.get(a)):rh.delete(a),ah.set(a,n));var r,i}function vh(d,e=!1){const f=++dh;let t=null,n=null;e&&(t=new Map(rh),n=new Map(t),d(n),hh(t,n,f));r=async()=>{await yh();var e=new Map(ih),t=new Map(e);d(t);{var n=e,r=t;const u=mh();if(u&&oh){const l=Array.from(r.entries()).filter(([e,t])=>n.get(e)!==t).map(([e,t])=>({key:e,value:t})),c=Array.from(n.keys()).filter(e=>!r.has(e));0===l.length&&0===c.length||await oh.transaction("rw",u,async()=>{0<l.length&&await u.bulkPut(l),0<c.length&&await u.bulkDelete(c)})}}await 0;var i,a,o=ih,s=t;o.clear();for([i,a]of s)o.set(i,a);hh(e,t,f)},ch=(r=ch.then(r)).catch(()=>{});var r;return e&&t&&n?r.catch(e=>{throw hh(n,ih,f),e}):r}async function gh(){var t=[];for(let e=0;e<window.localStorage.length;e++){var n,r=window.localStorage.key(e);r?.startsWith(th)&&!rh.has(r)&&null!==(n=window.localStorage.getItem(r))&&t.push({key:r,value:n})}if(0!==t.length){var e,i,a=mh();if(a)try{await a.bulkPut(t)}catch(e){console.warn("Marketplace localStorage migration could not be persisted",e),ph(),uh=!0}for({key:e,value:i}of t)rh.set(e,i),ih.set(e,i)}}async function yh(){if(!fh){if(lh)return lh;lh=(async()=>{for(let t=0;;t++)try{n=e=r=void 0;var e,n,r=mh();if(r)for({key:e,value:n}of await r.toArray())rh.set(e,n),ih.set(e,n);await 0;break}catch(e){if(t>=nh.length)throw e;console.warn(`Marketplace IndexedDB cache could not be read, retrying (${t+1}/${nh.length})`,e),ph(),await new Promise(e=>setTimeout(e,nh[t]))}await gh(),fh=!0})();try{await lh}catch(e){throw lh=null,e}}}var bh,_h={getItem(e){return rh.get(e)??null},setItem(t,n){vh(e=>e.set(t,n),!0).catch(e=>console.warn("Marketplace item persistence failed",e))},async setItemAsync(t,n){await vh(e=>e.set(t,n))},removeItem(t){vh(e=>e.delete(t),!0).catch(e=>console.warn("Marketplace item removal failed",e))},async removeItemAsync(t){await vh(e=>e.delete(t))},async mutateAsync(e){await vh(e)},keys(){return Array.from(rh.keys())},entries(){return Object.fromEntries(rh.entries())}},{min:wh,max:kh}=Math,$h=(e,t=0,n=1)=>wh(kh(t,e),n),Ih=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||255<t[e])&&(t._clipped=!0),t[e]=$h(t[e],0,255)):3===e&&(t[e]=$h(t[e],0,1));return t},xh={};for(bh of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])xh[`[object ${bh}]`]=bh.toLowerCase();function z(e){return xh[Object.prototype.toString.call(e)]||"object"}var w=(t,e=null)=>3<=t.length?Array.prototype.slice.call(t):"object"==z(t[0])&&e?e.split("").filter(e=>void 0!==t[0][e]).map(e=>t[0][e]):t[0].slice(0),Sh=e=>{var t;return!(e.length<2)&&"string"==z(e[t=e.length-1])?e[t].toLowerCase():null},{PI:i,min:Oh,max:zh}=Math,Nh=e=>Math.round(100*e)/100,jh=e=>Math.round(100*e)/100,Ph=2*i,Uh=i/3,Dh=i/180,Ah=180/i;function Eh(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}var d={format:{},autodetect:[]},k=class{constructor(...e){if("object"===z(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];let t=Sh(e),n=!1;if(!t){n=!0,d.sorted||(d.autodetect=d.autodetect.sort((e,t)=>t.p-e.p),d.sorted=!0);for(var r of d.autodetect)if(t=r.test(...e))break}if(!d.format[t])throw new Error("unknown format: "+e);var i=d.format[t].apply(null,n?e:e.slice(0,-1));this._rgb=Ih(i),3===this._rgb.length&&this._rgb.push(1)}toString(){return"function"==z(this.hex)?this.hex():`[${this._rgb.join(",")}]`}},Kt=(...e)=>new k(...e),D=(Kt.version="3.2.0",Kt),Th={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Lh=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Ch=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,Zh=e=>{var t;if(e.match(Lh))return 3===(e=4!==e.length&&7!==e.length?e:e.substr(1)).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[(t=parseInt(e,16))>>16,t>>8&255,255&t,1];if(e.match(Ch))return 4===(e=5!==e.length&&9!==e.length?e:e.substr(1)).length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]),[(t=parseInt(e,16))>>24&255,t>>16&255,t>>8&255,Math.round((255&t)/255*100)/100];throw new Error("unknown hex color: "+e)},Rh=Math["round"],Mh=(...e)=>{let[t,n,r,i]=w(e,"rgba"),a=Sh(e)||"auto";void 0===i&&(i=1),"auto"===a&&(a=i<1?"rgba":"rgb");let o="000000"+(Rh(t)<<16|Rh(n)<<8|Rh(r)).toString(16),s=(o=o.substr(o.length-6),"0"+Rh(255*i).toString(16));switch(s=s.substr(s.length-2),a.toLowerCase()){case"rgba":return"#"+o+s;case"argb":return"#"+s+o;default:return"#"+o}},Fh=(k.prototype.name=function(){var e,t=Mh(this._rgb,"rgb");for(e of Object.keys(Th))if(Th[e]===t)return e.toLowerCase();return t},d.format.named=e=>{if(e=e.toLowerCase(),Th[e])return Zh(Th[e]);throw new Error("unknown color name: "+e)},d.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===z(e)&&Th[e.toLowerCase()])return"named"}}),k.prototype.alpha=function(e,t=!1){return void 0!==e&&"number"===z(e)?t?(this._rgb[3]=e,this):new k([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},k.prototype.clipped=function(){return this._rgb._clipped||!1},{Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}}),Kh=Fh,Vh=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Jh(e){var t=Vh.get(String(e).toLowerCase());if(!t)throw new Error("unknown Lab illuminant "+e);Fh.labWhitePoint=e,Fh.Xn=t[0],Fh.Zn=t[1]}function Bh(){return Fh.labWhitePoint}var qh=e=>{var t=Math.sign(e);return((e=Math.abs(e))<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)*t},Wh=(e,t,n)=>{var{MtxAdaptMa:r,MtxAdaptMaI:i,MtxXYZ2RGB:a,RefWhiteRGB:o,Xn:s,Yn:u,Zn:l}=Kh,c=s*r.m00+u*r.m10+l*r.m20,d=s*r.m01+u*r.m11+l*r.m21,s=s*r.m02+u*r.m12+l*r.m22,u=o.X*r.m00+o.Y*r.m10+o.Z*r.m20,l=o.X*r.m01+o.Y*r.m11+o.Z*r.m21,o=o.X*r.m02+o.Y*r.m12+o.Z*r.m22,u=(e*r.m00+t*r.m10+n*r.m20)*(u/c),c=(e*r.m01+t*r.m11+n*r.m21)*(l/d),l=(e*r.m02+t*r.m12+n*r.m22)*(o/s),d=u*i.m00+c*i.m10+l*i.m20,e=u*i.m01+c*i.m11+l*i.m21,t=u*i.m02+c*i.m12+l*i.m22;return[255*qh(d*a.m00+e*a.m10+t*a.m20),255*qh(d*a.m01+e*a.m11+t*a.m21),255*qh(d*a.m02+e*a.m12+t*a.m22)]},Gh=(...e)=>{var[t,n,r]=e=w(e,"lab"),[t,n,r]=((e,t,n)=>{const{kE:r,kK:i,kKE:a,Xn:o,Yn:s,Zn:u}=Kh,l=(e+16)/116,c=.002*t+l,d=l-.005*n,f=c*c*c,m=d*d*d,p=f>r?f:(116*c-16)/i,h=e>a?Math.pow((e+16)/116,3):e/i,v=m>r?m:(116*d-16)/i,g=p*o,y=h*s,b=v*u;return[g,y,b]})(t,n,r),[t,n,r]=Wh(t,n,r);return[t,n,r,3<e.length?e[3]:1]};function Xh(e){var t=Math.sign(e);return((e=Math.abs(e))<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*t}var Yh=(e,t,n)=>{e=Xh(e/255),t=Xh(t/255),n=Xh(n/255);var{MtxRGB2XYZ:r,MtxAdaptMa:i,MtxAdaptMaI:a,Xn:o,Yn:s,Zn:u,As:l,Bs:c,Cs:d}=Kh,f=e*r.m00+t*r.m10+n*r.m20,m=e*r.m01+t*r.m11+n*r.m21,e=e*r.m02+t*r.m12+n*r.m22,t=o*i.m00+s*i.m10+u*i.m20,n=o*i.m01+s*i.m11+u*i.m21,r=o*i.m02+s*i.m12+u*i.m22,o=f*i.m00+m*i.m10+e*i.m20,s=f*i.m01+m*i.m11+e*i.m21,u=f*i.m02+m*i.m12+e*i.m22;return[(o*=t/l)*a.m00+(s*=n/c)*a.m10+(u*=r/d)*a.m20,o*a.m01+s*a.m11+u*a.m21,o*a.m02+s*a.m12+u*a.m22]},Hh=(...e)=>{var[e,t,n,...r]=w(e,"rgb"),[e,t,n]=Yh(e,t,n),[e,t,n]=function(e,t,n){var{Xn:r,Yn:i,Zn:a,kE:o,kK:s}=Kh,e=e/r,r=t/i,t=n/a,i=o<e?Math.pow(e,1/3):(s*e+16)/116,n=o<r?Math.pow(r,1/3):(s*r+16)/116,a=o<t?Math.pow(t,1/3):(s*t+16)/116;return[116*n-16,500*(i-n),200*(n-a)]}(e,t,n);return[e,t,n,...0<r.length&&r[0]<1?[r[0]]:[]]},Qh=(k.prototype.lab=function(){return Hh(this._rgb)},(Object.assign(D,{lab:(...e)=>new k(...e,"lab"),getLabWhitePoint:Bh,setLabWhitePoint:Jh}),d.format.lab=Gh,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"lab"))&&3===e.length)return"lab"}}),k.prototype.darken=function(e=1){var t=this.lab();return t[0]-=Kh.Kn*e,new k(t,"lab").alpha(this.alpha(),!0)},k.prototype.brighten=function(e=1){return this.darken(-e)},k.prototype.darker=k.prototype.darken,k.prototype.brighter=k.prototype.brighten,k.prototype.get=function(e){var[e,t]=e.split("."),n=this[e]();if(t){var r=e.indexOf(t)-("ok"===e.substr(0,2)?2:0);if(-1<r)return n[r];throw new Error(`unknown channel ${t} in mode `+e)}return n},Math)["pow"]),ev=(k.prototype.luminance=function(a,o="rgb"){if(void 0===a||"number"!==z(a))return ev(...this._rgb.slice(0,3));{if(0===a)return new k([0,0,0,this._rgb[3]],"rgb");if(1===a)return new k([255,255,255,this._rgb[3]],"rgb");var e=this.luminance();let i=20;const s=(e,t)=>{var n=e.interpolate(t,.5,o),r=n.luminance();return Math.abs(a-r)<1e-7||!i--?n:a<r?s(e,n):s(n,t)};e=(a<e?s(new k([0,0,0]),this):s(this,new k([255,255,255]))).rgb();return new k([...e,this._rgb[3]])}},(e,t,n)=>.2126*(e=tv(e))+.7152*(t=tv(t))+.0722*(n=tv(n))),tv=e=>(e/=255)<=.03928?e/12.92:Qh((e+.055)/1.055,2.4),$={},nv=(e,t,n=.5,...r)=>{let i=r[0]||"lrgb";if($[i]||r.length||(i=Object.keys($)[0]),$[i])return"object"!==z(e)&&(e=new k(e)),"object"!==z(t)&&(t=new k(t)),$[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()));throw new Error(`interpolation mode ${i} is not defined`)},{sin:rv,cos:iv}=(k.prototype.mix=k.prototype.interpolate=function(e,t=.5,...n){return nv(this,e,t,...n)},k.prototype.premultiply=function(e=!1){var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new k([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},Math),av=(...e)=>{let[t,n,r]=w(e,"lch");return isNaN(r)&&(r=0),r*=Dh,[t,iv(r)*n,rv(r)*n]},ov=(...e)=>{var[t,n,r]=e=w(e,"lch"),[t,n,r]=av(t,n,r),[t,n,r]=Gh(t,n,r);return[t,n,r,3<e.length?e[3]:1]},t=(...e)=>{e=Eh(w(e,"hcl"));return ov(...e)},{sqrt:sv,atan2:uv,round:lv}=Math,cv=(...e)=>{var[e,t,n]=w(e,"lab"),r=sv(t*t+n*n);let i=(uv(n,t)*Ah+360)%360;return[e,r,i=0===lv(1e4*r)?Number.NaN:i]},dv=(...e)=>{var[e,t,n,...r]=w(e,"rgb"),[e,t,n]=Hh(e,t,n),[e,t,n]=cv(e,t,n);return[e,t,n,...0<r.length&&r[0]<1?[r[0]]:[]]},{sqrt:fv,pow:mv}=(k.prototype.lch=function(){return dv(this._rgb)},k.prototype.hcl=function(){return Eh(dv(this._rgb))},Object.assign(D,{lch:(...e)=>new k(...e,"lch"),hcl:(...e)=>new k(...e,"hcl")}),d.format.lch=ov,d.format.hcl=t,["lch","hcl"].forEach(t=>d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,t))&&3===e.length)return t}})),k.prototype.saturate=function(e=1){var t=this.lch();return t[1]+=Kh.Kn*e,t[1]<0&&(t[1]=0),new k(t,"lch").alpha(this.alpha(),!0)},k.prototype.desaturate=function(e=1){return this.saturate(-e)},k.prototype.set=function(e,t,n=!1){var[e,r]=e.split("."),i=this[e]();if(r){var a=e.indexOf(r)-("ok"===e.substr(0,2)?2:0);if(-1<a){if("string"==z(t))switch(t.charAt(0)){case"+":case"-":i[a]+=+t;break;case"*":i[a]*=+t.substr(1);break;case"/":i[a]/=+t.substr(1);break;default:i[a]=+t}else{if("number"!==z(t))throw new Error("unsupported value for Color.set");i[a]=t}var o=new k(i,e);return n?(this._rgb=o._rgb,this):o}throw new Error(`unknown channel ${r} in mode `+e)}return i},k.prototype.tint=function(e=.5,...t){return nv(this,"white",e,...t)},k.prototype.shade=function(e=.5,...t){return nv(this,"black",e,...t)},$.rgb=(e,t,n)=>{e=e._rgb,t=t._rgb;return new k(e[0]+n*(t[0]-e[0]),e[1]+n*(t[1]-e[1]),e[2]+n*(t[2]-e[2]),"rgb")},Math),pv=($.lrgb=(e,t,n)=>{var[e,r,i]=e._rgb,[t,a,o]=t._rgb;return new k(fv(mv(e,2)*(1-n)+mv(t,2)*n),fv(mv(r,2)*(1-n)+mv(a,2)*n),fv(mv(i,2)*(1-n)+mv(o,2)*n),"rgb")},$.lab=(e,t,n)=>{e=e.lab(),t=t.lab();return new k(e[0]+n*(t[0]-e[0]),e[1]+n*(t[1]-e[1]),e[2]+n*(t[2]-e[2]),"lab")},(e,t,n,r)=>{let i,a;"hsl"===r?(i=e.hsl(),a=t.hsl()):"hsv"===r?(i=e.hsv(),a=t.hsv()):"hcg"===r?(i=e.hcg(),a=t.hcg()):"hsi"===r?(i=e.hsi(),a=t.hsi()):"lch"===r||"hcl"===r?(r="hcl",i=e.hcl(),a=t.hcl()):"oklch"===r&&(i=e.oklch().reverse(),a=t.oklch().reverse());let o,s,u,l,c,d;"h"!==r.substr(0,1)&&"oklch"!==r||([o,u,c]=i,[s,l,d]=a);let f,m,p,h;return isNaN(o)||isNaN(s)?isNaN(o)?isNaN(s)?m=Number.NaN:(m=s,1!=c&&0!=c||"hsv"==r||(f=l)):(m=o,1!=d&&0!=d||"hsv"==r||(f=u)):(h=s>o&&180<s-o?s-(o+360):s<o&&180<o-s?s+360-o:s-o,m=o+n*h),void 0===f&&(f=u+n*(l-u)),p=c+n*(d-c),new k("oklch"===r?[p,f,m]:[m,f,p],r)}),e=(e,t,n)=>pv(e,t,n,"lch"),Uc=($.lch=e,$.hcl=e,e=>{if("number"==z(e)&&0<=e&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)}),hv=(...e)=>{var[e,t,n]=w(e,"rgb");return(e<<16)+(t<<8)+n},vv=(k.prototype.num=function(){return hv(this._rgb)},Object.assign(D,{num:(...e)=>new k(...e,"num")}),d.format.num=Uc,d.autodetect.push({p:5,test:(...e)=>{if(1===e.length&&"number"===z(e[0])&&0<=e[0]&&e[0]<=16777215)return"num"}}),($.num=(e,t,n)=>{e=e.num(),t=t.num();return new k(e+n*(t-e),"num")},Math)["floor"]),n=(...e)=>{let[t,n,r]=e=w(e,"hcg"),i,a,o;r*=255;var s=255*n;if(0===n)i=a=o=r;else{360<(t=360===t?0:t)&&(t-=360),t<0&&(t+=360),t/=60;var u=vv(t),l=t-u,c=r*(1-n),d=c+s*(1-l),f=c+s*l,m=c+s;switch(u){case 0:[i,a,o]=[m,f,c];break;case 1:[i,a,o]=[d,m,c];break;case 2:[i,a,o]=[c,m,f];break;case 3:[i,a,o]=[c,d,m];break;case 4:[i,a,o]=[f,c,m];break;case 5:[i,a,o]=[m,c,d]}}return[i,a,o,3<e.length?e[3]:1]},gv=(...e)=>{var[e,t,n]=w(e,"rgb"),r=Oh(e,t,n),i=zh(e,t,n),a=i-r;let o;return 0==a?o=Number.NaN:(e===i&&(o=(t-n)/a),t===i&&(o=2+(n-e)/a),n===i&&(o=4+(e-t)/a),(o*=60)<0&&(o+=360)),[o,100*a/255,r/(255-a)*100]},yv=(k.prototype.hcg=function(){return gv(this._rgb)},D.hcg=(...e)=>new k(...e,"hcg"),d.format.hcg=n,d.autodetect.push({p:1,test:(...e)=>{if("array"===z(e=w(e,"hcg"))&&3===e.length)return"hcg"}}),($.hcg=(e,t,n)=>pv(e,t,n,"hcg"),Math)["cos"]),i=(...e)=>{let[t,n,r]=e=w(e,"hsi"),i,a,o;return isNaN(t)&&(t=0),isNaN(n)&&(n=0),360<t&&(t-=360),t<0&&(t+=360),(t/=360)<1/3?(o=(1-n)/3,i=(1+n*yv(Ph*t)/yv(Uh-Ph*t))/3,a=1-(o+i)):t<2/3?(t-=1/3,i=(1-n)/3,a=(1+n*yv(Ph*t)/yv(Uh-Ph*t))/3,o=1-(i+a)):(t-=2/3,a=(1-n)/3,o=(1+n*yv(Ph*t)/yv(Uh-Ph*t))/3,i=1-(a+o)),i=$h(r*i*3),a=$h(r*a*3),o=$h(r*o*3),[255*i,255*a,255*o,3<e.length?e[3]:1]},{min:bv,sqrt:_v,acos:wv}=Math,kv=(...e)=>{var[e,t,n]=w(e,"rgb");let r;var i=bv(e/=255,t/=255,n/=255),a=(e+t+n)/3,i=0<a?1-i/a:0;return 0==i?r=NaN:(r=(e-t+(e-n))/2,r/=_v((e-t)*(e-t)+(e-n)*(t-n)),r=wv(r),t<n&&(r=Ph-r),r/=Ph),[360*r,i,a]},$v=(k.prototype.hsi=function(){return kv(this._rgb)},D.hsi=(...e)=>new k(...e,"hsi"),d.format.hsi=i,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"hsi"))&&3===e.length)return"hsi"}}),$.hsi=(e,t,n)=>pv(e,t,n,"hsi"),(...e)=>{var[t,n,r]=e=w(e,"hsl");let i,a,o;if(0===n)i=a=o=255*r;else{var s=[0,0,0],u=[0,0,0],l=r<.5?r*(1+n):r+n-r*n,c=2*r-l,n=t/360;s[0]=n+1/3,s[1]=n,s[2]=n-1/3;for(let e=0;e<3;e++)s[e]<0&&(s[e]+=1),1<s[e]&&--s[e],6*s[e]<1?u[e]=c+6*(l-c)*s[e]:2*s[e]<1?u[e]=l:3*s[e]<2?u[e]=c+(l-c)*(2/3-s[e])*6:u[e]=c;[i,a,o]=[255*u[0],255*u[1],255*u[2]]}return 3<e.length?[i,a,o,e[3]]:[i,a,o,1]}),Iv=(...e)=>{var[t,n,r]=e=w(e,"rgba"),i=Oh(t/=255,n/=255,r/=255),a=zh(t,n,r),o=(a+i)/2;let s,u;return a===i?(s=0,u=Number.NaN):s=o<.5?(a-i)/(a+i):(a-i)/(2-a-i),t==a?u=(n-r)/(a-i):n==a?u=2+(r-t)/(a-i):r==a&&(u=4+(t-n)/(a-i)),(u*=60)<0&&(u+=360),3<e.length&&void 0!==e[3]?[u,s,o,e[3]]:[u,s,o]},xv=(k.prototype.hsl=function(){return Iv(this._rgb)},D.hsl=(...e)=>new k(...e,"hsl"),d.format.hsl=$v,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"hsl"))&&3===e.length)return"hsl"}}),($.hsl=(e,t,n)=>pv(e,t,n,"hsl"),Math)["floor"]),Kt=(...e)=>{let[t,n,r]=e=w(e,"hsv"),i,a,o;if(r*=255,0===n)i=a=o=r;else{360<(t=360===t?0:t)&&(t-=360),t<0&&(t+=360),t/=60;var s=xv(t),u=t-s,l=r*(1-n),c=r*(1-n*u),d=r*(1-n*(1-u));switch(s){case 0:[i,a,o]=[r,d,l];break;case 1:[i,a,o]=[c,r,l];break;case 2:[i,a,o]=[l,r,d];break;case 3:[i,a,o]=[l,c,r];break;case 4:[i,a,o]=[d,l,r];break;case 5:[i,a,o]=[r,l,c]}}return[i,a,o,3<e.length?e[3]:1]},{min:Sv,max:Ov}=Math,zv=(...e)=>{var[e,t,n]=e=w(e,"rgb"),r=Sv(e,t,n),i=Ov(e,t,n),r=i-r;let a,o;return 0===i?(a=Number.NaN,o=0):(o=r/i,e===i&&(a=(t-n)/r),t===i&&(a=2+(n-e)/r),n===i&&(a=4+(e-t)/r),(a*=60)<0&&(a+=360)),[a,o,i/255]};k.prototype.hsv=function(){return zv(this._rgb)},D.hsv=(...e)=>new k(...e,"hsv"),d.format.hsv=Kt,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"hsv"))&&3===e.length)return"hsv"}});function Nv(e,n){var t=e.length,r=(Array.isArray(e[0])||(e=[e]),(n=Array.isArray(n[0])?n:n.map(e=>[e]))[0].length);let i=n[0].map((e,t)=>n.map(e=>e[t])),a=e.map(n=>i.map(r=>Array.isArray(n)?n.reduce((e,t,n)=>e+t*(r[n]||0),0):r.reduce((e,t)=>e+t*n,0)));return 1===t&&(a=a[0]),1===r?a.map(e=>e[0]):a}$.hsv=(e,t,n)=>pv(e,t,n,"hsv");var jv=(...e)=>{var[e,t,n,...r]=e=w(e,"lab"),[e,t,n]=function(e){e=Nv([[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],e);return Nv([[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],e.map(e=>e**3))}([e,t,n]),[e,t,n]=Wh(e,t,n);return[e,t,n,...0<r.length&&r[0]<1?[r[0]]:[]]};var Pv=(...e)=>{var[e,t,n,...r]=w(e,"rgb");return[...function(e){e=Nv([[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],e);return Nv([[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],e.map(e=>Math.cbrt(e)))}(Yh(e,t,n)),...0<r.length&&r[0]<1?[r[0]]:[]]},{pow:Uv,sqrt:Dv,PI:Av,cos:Ev,sin:Tv,atan2:Lv}=(k.prototype.oklab=function(){return Pv(this._rgb)},Object.assign(D,{oklab:(...e)=>new k(...e,"oklab")}),d.format.oklab=jv,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"oklab"))&&3===e.length)return"oklab"}}),$.oklab=(e,t,n)=>{e=e.oklab(),t=t.oklab();return new k(e[0]+n*(t[0]-e[0]),e[1]+n*(t[1]-e[1]),e[2]+n*(t[2]-e[2]),"oklab")},$.oklch=(e,t,n)=>pv(e,t,n,"oklch"),Math),Cv=Math["pow"];function Zv(a){let o="rgb",s=D("#ccc"),t=0,u=[0,1],l=[0,1],c=[],d=[0,0],f=!1,m=[],n=!1,p=0,h=1,r,v={},g=!0,y=1;function i(t){if((t=t||["#fff","#000"])&&"string"===z(t)&&D.brewer&&D.brewer[t.toLowerCase()]&&(t=D.brewer[t.toLowerCase()]),"array"===z(t)){t=(t=1===t.length?[t[0],t[0]]:t).slice(0);for(let e=0;e<t.length;e++)t[e]=D(t[e]);for(let e=c.length=0;e<t.length;e++)c.push(e/(t.length-1))}$(),m=t}const b=function(t){if(null==f)return 0;{var n=f.length-1;let e=0;for(;e<n&&t>=f[e];)e++;return e-1}};let _=e=>e,w=e=>e;function k(e,t){let n,r;if(null==t&&(t=!1),isNaN(e)||null===e)return s;if(r=t?e:f&&2<f.length?b(e)/(f.length-2):h!==p?(e-p)/(h-p):1,r=w(r),t||(r=_(r)),1!==y&&(r=Cv(r,y)),r=d[0]+r*(1-d[0]-d[1]),r=$h(r,0,1),e=Math.floor(1e4*r),g&&v[e])n=v[e];else{if("array"===z(m))for(let e=0;e<c.length;e++){var i=c[e];if(r<=i){n=m[e];break}if(r>=i&&e===c.length-1){n=m[e];break}if(r>i&&r<c[e+1]){r=(r-i)/(c[e+1]-i),n=D.interpolate(m[e],m[e+1],r,o);break}}else"function"===z(m)&&(n=m(r));g&&(v[e]=n)}return n}var $=()=>v={};i(a);function I(e){return e=D(k(e)),n&&e[n]?e[n]():e}return I.classes=function(e){var t;return null!=e?("array"===z(e)?(f=e,u=[e[0],e[e.length-1]]):(t=D.analyze(u),f=0===e?[t.min,t.max]:D.limits(t,"e",e)),I):f},I.domain=function(n){if(!arguments.length)return l;l=n.slice(0),p=n[0],h=n[n.length-1],c=[];var t=m.length;if(n.length===t&&p!==h)for(var e of Array.from(n))c.push((e-p)/(h-p));else{for(let e=0;e<t;e++)c.push(e/(t-1));if(2<n.length){const r=n.map((e,t)=>t/(n.length-1)),i=n.map(e=>(e-p)/(h-p));i.every((e,t)=>r[t]===e)||(w=e=>{if(e<=0||1<=e)return e;let t=0;for(;e>=i[t+1];)t++;var n=(e-i[t])/(i[t+1]-i[t]);return r[t]+n*(r[t+1]-r[t])})}}return u=[p,h],I},I.mode=function(e){return arguments.length?(o=e,$(),I):o},I.range=function(e,t){return i(e),I},I.out=function(e){return n=e,I},I.spread=function(e){return arguments.length?(t=e,I):t},I.correctLightness=function(e){return null==e&&(e=!0),r=e,$(),_=r?function(e){var t=k(0,!0).lab()[0],n=k(1,!0).lab()[0];const r=n<t;let i=k(e,!0).lab()[0];const a=t+(n-t)*e;let o=i-a,s=0,u=1,l=20;for(;.01<Math.abs(o)&&0<l--;)r&&(o*=-1),o<0?(s=e,e+=.5*(u-e)):(u=e,e+=.5*(s-e)),i=k(e,!0).lab()[0],o=i-a;return e}:e=>e,I},I.padding=function(e){return null!=e?("number"===z(e)&&(e=[e,e]),d=e,I):d},I.colors=function(t,n){arguments.length<2&&(n="hex");let e=[];if(0===arguments.length)e=m.slice(0);else if(1===t)e=[I(.5)];else if(1<t){const r=u[0],i=u[1]-r;e=function(t,e,n){var r=[],i=t<e,a=n?i?e+1:e-1:e;for(let e=t;i?e<a:e>a;i?e++:e--)r.push(e);return r}(0,t,!1).map(e=>I(r+e/(t-1)*i))}else{a=[];let r=[];if(f&&2<f.length)for(let e=1,t=f.length,n=1<=t;n?e<t:e>t;n?e++:e--)r.push(.5*(f[e-1]+f[e]));else r=u;e=r.map(e=>I(e))}return e=D[n]?e.map(e=>e[n]()):e},I.cache=function(e){return null!=e?(g=e,I):g},I.gamma=function(e){return null!=e?(y=e,I):y},I.nodata=function(e){return null!=e?(s=D(e),I):s},I}var Rv=function(t){let n=[1,1];for(let e=1;e<t;e++){var r=[1];for(let e=1;e<=n.length;e++)r[e]=(n[e]||0)+n[e-1];n=r}return n},Mv=Math["round"],Fv=(k.prototype.rgb=function(e=!0){return!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Mv)},k.prototype.rgba=function(n=!0){return this._rgb.slice(0,4).map((e,t)=>!(t<3)||!1===n?e:Mv(e))},Object.assign(D,{rgb:(...e)=>new k(...e,"rgb")}),d.format.rgb=(...e)=>{e=w(e,"rgba");return void 0===e[3]&&(e[3]=1),e},d.autodetect.push({p:3,test:(...e)=>{if("array"===z(e=w(e,"rgba"))&&(3===e.length||4===e.length&&"number"==z(e[3])&&0<=e[3]&&e[3]<=1))return"rgb"}}),(e,t,n)=>{if(Fv[n])return Fv[n](e,t);throw new Error("unknown blend mode "+n)}),t=n=>(e,t)=>{t=D(t).rgb(),e=D(e).rgb();return D.rgb(n(t,e))},e=r=>(e,t)=>{var n=[];return n[0]=r(e[0],t[0]),n[1]=r(e[1],t[1]),n[2]=r(e[2],t[2]),n},Uc=(Fv.normal=t(e(e=>e)),Fv.multiply=t(e((e,t)=>e*t/255)),Fv.screen=t(e((e,t)=>255*(1-(1-e/255)*(1-t/255)))),Fv.overlay=t(e((e,t)=>t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255)))),Fv.darken=t(e((e,t)=>t<e?t:e)),Fv.lighten=t(e((e,t)=>t<e?e:t)),Fv.dodge=t(e((e,t)=>255===e||255<(e=t/255*255/(1-e/255))?255:e)),Fv.burn=t(e((e,t)=>255*(1-(1-t/255)/(e/255)))),Fv),{pow:Kv,sin:Vv,cos:Jv}=Math;var{floor:Bv,random:qv}=Math,{log:Wv,pow:Gv,floor:Xv,abs:Yv}=Math;function Hv(e,t=null){const n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return(e="object"===z(e)?Object.values(e):e).forEach(e=>{null==(e=t&&"object"===z(e)?e[t]:e)||isNaN(e)||(n.values.push(e),n.sum+=e,e<n.min&&(n.min=e),e>n.max&&(n.max=e),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(e,t)=>Qv(n,e,t),n}function Qv(e,t="equal",a=7){var{min:o,max:s}=e="array"==z(e)?Hv(e):e,u=e.values.sort((e,t)=>e-t);if(1===a)return[o,s];var l=[];if("c"===t.substr(0,1)&&(l.push(o),l.push(s)),"e"===t.substr(0,1)){l.push(o);for(let e=1;e<a;e++)l.push(o+e/a*(s-o));l.push(s)}else if("l"===t.substr(0,1)){if(o<=0)throw new Error("Logarithmic scales are only possible for values > 0");var n=Math.LOG10E*Wv(o),r=Math.LOG10E*Wv(s);l.push(o);for(let e=1;e<a;e++)l.push(Gv(10,n+e/a*(r-n)));l.push(s)}else if("q"===t.substr(0,1)){l.push(o);for(let e=1;e<a;e++){var i=(u.length-1)*e/a,c=Xv(i);l.push(c===i?u[c]:u[c]*(1-(i=i-c))+u[c+1]*i)}l.push(s)}else if("k"===t.substr(0,1)){let t;var d=u.length,f=new Array(d),m=new Array(a);let n=!0,e=0,i=null;(i=[]).push(o);for(let e=1;e<a;e++)i.push(o+e/a*(s-o));for(i.push(s);n;){for(let e=0;e<a;e++)m[e]=0;for(let r=0;r<d;r++){var p=u[r];let t=Number.MAX_VALUE,n;for(let e=0;e<a;e++){var h=Yv(i[e]-p);h<t&&(t=h,n=e),m[n]++,f[r]=n}}var v=new Array(a);for(let e=0;e<a;e++)v[e]=null;for(let e=0;e<d;e++)null===v[t=f[e]]?v[t]=u[e]:v[t]+=u[e];for(let e=0;e<a;e++)v[e]*=1/m[e];n=!1;for(let e=0;e<a;e++)if(v[e]!==i[e]){n=!0;break}i=v,200<++e&&(n=!1)}var g={};for(let e=0;e<a;e++)g[e]=[];for(let e=0;e<d;e++)g[t=f[e]].push(u[e]);let r=[];for(let e=0;e<a;e++)r.push(g[e][0]),r.push(g[e][g[e].length-1]);r=r.sort((e,t)=>e-t),l.push(r[0]);for(let e=1;e<r.length;e+=2){var y=r[e];isNaN(y)||-1!==l.indexOf(y)||l.push(y)}}return l}function eg(e,t,n){return.2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(t/255,2.4)+.072175*Math.pow(n/255,2.4)}var{sqrt:tg,pow:A,min:ng,max:rg,atan2:ig,abs:ag,cos:og,sin:sg,exp:ug,PI:lg}=Math;var n={cool(){return Zv([D.hsl(180,1,.9),D.hsl(250,.7,.4)])},hot(){return Zv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},i={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},cg=Object.keys(i),dg=new Map(cg.map(e=>[e.toLowerCase(),e])),Kt="function"==typeof Proxy?new Proxy(i,{get(e,t){t=t.toLowerCase();if(dg.has(t))return e[dg.get(t)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(cg)}}):i,t=(...e)=>{var[t,n,r,i]=e=w(e,"cmyk"),e=4<e.length?e[4]:1;return 1===i?[0,0,0,e]:[1<=t?0:255*(1-t)*(1-i),1<=n?0:255*(1-n)*(1-i),1<=r?0:255*(1-r)*(1-i),e]},fg=Math["max"],mg=(...e)=>{var[e,t,n]=w(e,"rgb"),r=1-fg(e/=255,fg(t/=255,n/=255)),i=r<1?1/(1-r):0;return[(1-e-r)*i,(1-t-r)*i,(1-n-r)*i,r]},pg=(k.prototype.cmyk=function(){return mg(this._rgb)},Object.assign(D,{cmyk:(...e)=>new k(...e,"cmyk")}),d.format.cmyk=t,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"cmyk"))&&4===e.length)return"cmyk"}}),(...e)=>{var t=w(e,"hsla");let n=Sh(e)||"lsa";return t[0]=Nh(t[0]||0)+"deg",t[1]=Nh(100*t[1])+"%",t[2]=Nh(100*t[2])+"%","hsla"===n||3<t.length&&t[3]<1?(t[3]="/ "+(3<t.length?t[3]:1),n="hsla"):t.length=3,`${n.substr(0,3)}(${t.join(" ")})`}),hg=(...e)=>{var t=w(e,"lab"),e=Sh(e)||"lab";return t[0]=Nh(t[0])+"%",t[1]=Nh(t[1]),t[2]=Nh(t[2]),"laba"===e||3<t.length&&t[3]<1?t[3]="/ "+(3<t.length?t[3]:1):t.length=3,`lab(${t.join(" ")})`},vg=(...e)=>{var t=w(e,"lch"),e=Sh(e)||"lab";return t[0]=Nh(t[0])+"%",t[1]=Nh(t[1]),t[2]=isNaN(t[2])?"none":Nh(t[2])+"deg","lcha"===e||3<t.length&&t[3]<1?t[3]="/ "+(3<t.length?t[3]:1):t.length=3,`lch(${t.join(" ")})`},gg=(...e)=>{e=w(e,"lab");return e[0]=Nh(100*e[0])+"%",e[1]=jh(e[1]),e[2]=jh(e[2]),3<e.length&&e[3]<1?e[3]="/ "+(3<e.length?e[3]:1):e.length=3,`oklab(${e.join(" ")})`},yg=(...e)=>{var[e,t,n,...r]=w(e,"rgb"),[e,t,n]=Pv(e,t,n),[e,t,n]=cv(e,t,n);return[e,t,n,...0<r.length&&r[0]<1?[r[0]]:[]]},bg=(...e)=>{e=w(e,"lch");return e[0]=Nh(100*e[0])+"%",e[1]=jh(e[1]),e[2]=isNaN(e[2])?"none":Nh(e[2])+"deg",3<e.length&&e[3]<1?e[3]="/ "+(3<e.length?e[3]:1):e.length=3,`oklch(${e.join(" ")})`},_g=Math["round"],wg=(...e)=>{var t,n=w(e,"rgba");let r=Sh(e)||"rgb";return"hsl"===r.substr(0,3)?pg(Iv(n),r):"lab"===r.substr(0,3)?(e=Bh(),Jh("d50"),t=hg(Hh(n),r),Jh(e),t):"lch"===r.substr(0,3)?(e=Bh(),Jh("d50"),t=vg(dv(n),r),Jh(e),t):"oklab"===r.substr(0,5)?gg(Pv(n)):"oklch"===r.substr(0,5)?bg(yg(n)):(n[0]=_g(n[0]),n[1]=_g(n[1]),n[2]=_g(n[2]),("rgba"===r||3<n.length&&n[3]<1)&&(n[3]="/ "+(3<n.length?n[3]:1),r="rgba"),`${r.substr(0,3)}(${n.slice(0,"rgb"===r?3:4).join(" ")})`)},kg=(...e)=>{var[e,t,n,...r]=e=w(e,"lch"),[e,t,n]=av(e,t,n),[e,t,n]=jv(e,t,n);return[e,t,n,...0<r.length&&r[0]<1?[r[0]]:[]]},e=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,i=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,t=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,$g=/\s*/.source,Ig=/\s+/.source,xg=/\s*,\s*/.source,Sg=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Og=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,zg=new RegExp("^rgba?\\("+$g+[e,e,e].join(Ig)+Og+"\\)$"),Ng=new RegExp("^rgb\\("+$g+[e,e,e].join(xg)+$g+"\\)$"),jg=new RegExp("^rgba\\("+$g+[e,e,e,i].join(xg)+$g+"\\)$"),Pg=new RegExp("^hsla?\\("+$g+[Sg,t,t].join(Ig)+Og+"\\)$"),Ug=new RegExp("^hsl?\\("+$g+[Sg,t,t].join(xg)+$g+"\\)$"),Dg=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,Ag=new RegExp("^lab\\("+$g+[i,i,i].join(Ig)+Og+"\\)$"),Eg=new RegExp("^lch\\("+$g+[i,i,Sg].join(Ig)+Og+"\\)$"),Tg=new RegExp("^oklab\\("+$g+[i,i,i].join(Ig)+Og+"\\)$"),Lg=new RegExp("^oklch\\("+$g+[i,i,Sg].join(Ig)+Og+"\\)$"),Cg=Math["round"],Zg=e=>e.map((e,t)=>t<=2?$h(Cg(e),0,255):e),E=(e,t=0,n=100,r=!1)=>("string"==typeof e&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,e=r?t+.5*(e+1)*(n-t):t+e*(n-t)),+e),Rg=(e,t)=>"none"===e?t:e,e=e=>{if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];let n;if(d.format.named)try{return d.format.named(e)}catch(e){}if(n=(n=e.match(zg))||e.match(Ng)){let t=n.slice(1,4);for(let e=0;e<3;e++)t[e]=+E(Rg(t[e],0),0,255);t=Zg(t);var r=void 0!==n[4]?+E(n[4],0,1):1;return t[3]=r,t}if(n=e.match(jg)){var t=n.slice(1,5);for(let e=0;e<4;e++)t[e]=+E(t[e],0,255);return t}if(n=(n=e.match(Pg))||e.match(Ug))return(r=n.slice(1,4))[0]=+Rg(r[0].replace("deg",""),0),r[1]=.01*+E(Rg(r[1],0),0,100),r[2]=.01*+E(Rg(r[2],0),0,100),r=Zg($v(r)),i=void 0!==n[4]?+E(n[4],0,1):1,r[3]=i,r;if(n=e.match(Dg)){var i=n.slice(1,4),a=(i[1]*=.01,i[2]*=.01,$v(i));for(let e=0;e<3;e++)a[e]=Cg(a[e]);return a[3]=+n[4],a}return(n=e.match(Ag))?((r=n.slice(1,4))[0]=E(Rg(r[0],0),0,100),r[1]=E(Rg(r[1],0),-125,125,!0),r[2]=E(Rg(r[2],0),-125,125,!0),i=Bh(),Jh("d50"),r=Zg(Gh(r)),Jh(i),i=void 0!==n[4]?+E(n[4],0,1):1,r[3]=i,r):(n=e.match(Eg))?((i=n.slice(1,4))[0]=E(i[0],0,100),i[1]=E(Rg(i[1],0),0,150,!1),i[2]=+Rg(i[2].replace("deg",""),0),r=Bh(),Jh("d50"),i=Zg(ov(i)),Jh(r),r=void 0!==n[4]?+E(n[4],0,1):1,i[3]=r,i):(n=e.match(Tg))?((r=n.slice(1,4))[0]=E(Rg(r[0],0),0,1),r[1]=E(Rg(r[1],0),-.4,.4,!0),r[2]=E(Rg(r[2],0),-.4,.4,!0),i=Zg(jv(r)),r=void 0!==n[4]?+E(n[4],0,1):1,i[3]=r,i):(n=e.match(Lg))?((r=n.slice(1,4))[0]=E(Rg(r[0],0),0,1),r[1]=E(Rg(r[1],0),0,.4,!1),r[2]=+Rg(r[2].replace("deg",""),0),i=Zg(kg(r)),e=void 0!==n[4]?+E(n[4],0,1):1,i[3]=e,i):void 0},Mg=(e.test=e=>zg.test(e)||Pg.test(e)||Ag.test(e)||Eg.test(e)||Tg.test(e)||Lg.test(e)||Ng.test(e)||jg.test(e)||Ug.test(e)||Dg.test(e)||"transparent"===e,e),Fg=(k.prototype.css=function(e){return wg(this._rgb,e)},D.css=(...e)=>new k(...e,"css"),d.format.css=Mg,d.autodetect.push({p:5,test:(e,...t)=>{if(!t.length&&"string"===z(e)&&Mg.test(e))return"css"}}),d.format.gl=(...e)=>{e=w(e,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},D.gl=(...e)=>new k(...e,"gl"),k.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},k.prototype.hex=function(e){return Mh(this._rgb,e)},(D.hex=(...e)=>new k(...e,"hex"),d.format.hex=Zh,d.autodetect.push({p:4,test:(e,...t)=>{if(!t.length&&"string"===z(e)&&0<=[3,4,5,6,7,8,9].indexOf(e.length))return"hex"}}),Math)["log"]),Kg=e=>{e/=100;let t,n,r;return r=e<66?(t=255,n=e<6?0:-155.25485562709179-.44596950469579133*(n=e-2)+104.49216199393888*Fg(n),e<20?0:.8274096064007395*(r=e-10)-254.76935184120902+115.67994401066147*Fg(r)):(t=351.97690566805693+.114206453784165*(t=e-55)-40.25366309332127*Fg(t),n=325.4494125711974+.07943456536662342*(n=e-50)-28.0852963507957*Fg(n),255),[t,n,r,1]},Vg=Math["round"],Jg=(...e)=>{var e=w(e,"rgb"),t=e[0],n=e[2];let r=1e3,i=4e4;let a;for(;.4<i-r;){a=.5*(i+r);var o=Kg(a);o[2]/o[0]>=n/t?i=a:r=a}return Vg(a)},t=(k.prototype.temp=k.prototype.kelvin=k.prototype.temperature=function(){return Jg(this._rgb)},(...e)=>new k(...e,"temp")),Bg=(Object.assign(D,{temp:t,kelvin:t,temperature:t}),d.format.temp=d.format.kelvin=d.format.temperature=Kg,k.prototype.oklch=function(){return yg(this._rgb)},Object.assign(D,{oklch:(...e)=>new k(...e,"oklch")}),d.format.oklch=kg,d.autodetect.push({p:2,test:(...e)=>{if("array"===z(e=w(e,"oklch"))&&3===e.length)return"oklch"}}),Object.assign(D,{analyze:Hv,average:(e,s="lrgb",u=null)=>{var t=e.length;const n=t/(u=u||Array.from(new Array(t)).map(()=>1)).reduce(function(e,t){return e+t});if(u.forEach((e,t)=>{u[t]*=n}),e=e.map(e=>new k(e)),"lrgb"===s){var r=e,i=u,a=r.length,o=[0,0,0,0];for(let e=0;e<r.length;e++){var l=r[e],c=i[e]/a,l=l._rgb;o[0]+=Uv(l[0],2)*c,o[1]+=Uv(l[1],2)*c,o[2]+=Uv(l[2],2)*c,o[3]+=l[3]*c}return o[0]=Dv(o[0]),o[1]=Dv(o[1]),o[2]=Dv(o[2]),.9999999<o[3]&&(o[3]=1),new k(Ih(o))}{var d,f=e.shift();const m=f.get(s),p=[];let i=0,a=0;for(let e=0;e<m.length;e++)m[e]=(m[e]||0)*u[0],p.push(isNaN(m[e])?0:u[0]),"h"!==s.charAt(e)||isNaN(m[e])||(d=m[e]/180*Av,i+=Ev(d)*u[0],a+=Tv(d)*u[0]);let o=f.alpha()*u[0];e.forEach((e,t)=>{var n,r=e.get(s);o+=e.alpha()*u[t+1];for(let e=0;e<m.length;e++)isNaN(r[e])||(p[e]+=u[t+1],"h"===s.charAt(e)?(n=r[e]/180*Av,i+=Ev(n)*u[t+1],a+=Tv(n)*u[t+1]):m[e]+=r[e]*u[t+1])});for(let t=0;t<m.length;t++)if("h"===s.charAt(t)){let e=Lv(a/p[t],i/p[t])/Av*180;for(;e<0;)e+=360;for(;360<=e;)e-=360;m[t]=e}else m[t]=m[t]/p[t];return o/=t,new k(m,s).alpha(.99999<o?1:o,!0)}},bezier:e=>{const t=function(e){let r,i,a,o;if(2===(e=e.map(e=>new k(e))).length)[i,a]=e.map(e=>e.lab()),r=function(t){var e=[0,1,2].map(e=>i[e]+t*(a[e]-i[e]));return new k(e,"lab")};else if(3===e.length)[i,a,o]=e.map(e=>e.lab()),r=function(t){var e=[0,1,2].map(e=>(1-t)*(1-t)*i[e]+2*(1-t)*t*a[e]+t*t*o[e]);return new k(e,"lab")};else if(4===e.length){let n;[i,a,o,n]=e.map(e=>e.lab()),r=function(t){var e=[0,1,2].map(e=>(1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*a[e]+3*(1-t)*t*t*o[e]+t*t*t*n[e]);return new k(e,"lab")}}else{if(!(5<=e.length))throw new RangeError("No point in running bezier with only one color.");{let t,o,s;t=e.map(e=>e.lab()),s=e.length-1,o=Rv(s),r=function(i){const a=1-i;var e=[0,1,2].map(r=>t.reduce((e,t,n)=>e+o[n]*a**(s-n)*i**n*t[r],0));return new k(e,"lab")}}}return r}(e);return t.scale=()=>Zv(t),t},blend:Uc,brewer:Kt,Color:k,colors:Th,contrast:(e,t)=>{e=new k(e),t=new k(t);e=e.luminance(),t=t.luminance();return t<e?(e+.05)/(t+.05):(t+.05)/(e+.05)},contrastAPCA:(e,t)=>{e=new k(e),t=new k(t);var e=eg(...(e=e.alpha()<1?nv(t,e,e.alpha(),"rgb"):e).rgb()),t=eg(...t.rgb()),e=.022<=e?e:e+Math.pow(.022-e,1.414),t=.022<=t?t:t+Math.pow(.022-t,1.414),n=Math.pow(t,.56)-Math.pow(e,.57),r=Math.pow(t,.65)-Math.pow(e,.62),e=Math.abs(t-e)<5e-4?0:e<t?1.14*n:1.14*r;return 100*(Math.abs(e)<.1?0:0<e?e-.027:.027+e)},cubehelix:function(i=300,a=-1.5,o=1,s=1,u=[0,1]){let l=0,c;function t(e){var t=Ph*((i+120)/360+a*e),n=Kv(u[0]+c*e,s),e=(0!==l?o[0]+e*l:o)*n*(1-n)/2,r=Jv(t),t=Vv(t);return D(Ih([255*(n+e*(-.14861*r+1.78277*t)),255*(n+e*(-.29227*r-.90649*t)),255*(n+1.97294*r*e),1]))}return"array"===z(u)?c=u[1]-u[0]:(c=0,u=[u,u]),t.start=function(e){return null==e?i:(i=e,t)},t.rotations=function(e){return null==e?a:(a=e,t)},t.gamma=function(e){return null==e?s:(s=e,t)},t.hue=function(e){return null==e?o:("array"===z(o=e)?0===(l=o[1]-o[0])&&(o=o[1]):l=0,t)},t.lightness=function(e){return null==e?u:(c="array"===z(e)?(u=e)[1]-e[0]:(u=[e,e],0),t)},t.scale=()=>D.scale(t),t.hue(o),t},deltaE:function(e,t,n=1,r=1,i=1){function a(e){return 360*e/(2*lg)}function o(e){return 2*lg*e/360}e=new k(e),t=new k(t);var[e,s,u]=Array.from(e.lab()),[t,l,c]=Array.from(t.lab()),d=(e+t)/2,f=(tg(A(s,2)+A(u,2))+tg(A(l,2)+A(c,2)))/2,f=.5*(1-tg(A(f,7)/(A(f,7)+A(25,7)))),l=l*(1+f),f=tg(A(s=s*(1+f),2)+A(u,2)),m=tg(A(l,2)+A(c,2)),p=(f+m)/2,u=a(ig(u,s)),s=a(ig(c,l)),u=180<ag((c=0<=u?u:u+360)-(l=0<=s?s:s+360))?(c+l+360)/2:(c+l)/2,s=1-.17*og(o(u-30))+.24*og(o(2*u))+.32*og(o(3*u+6))-.2*og(o(4*u-63)),h=ag(h=l-c)<=180?h:l<=c?360+h:h-360,l=(h=2*tg(f*m)*sg(o(h)/2),t-e),c=m-f,t=1+.015*A(d-50,2)/tg(20+A(d-50,2)),e=1+.045*p,m=1+.015*p*s,f=30*ug(-A((u-275)/25,2)),d=-(2*tg(A(p,7)/(A(p,7)+A(25,7))))*sg(2*o(f)),s=tg(A(l/(n*t),2)+A(c/(r*e),2)+A(h/(i*m),2)+c/(r*e)*d*(h/(i*m)));return rg(0,ng(100,s))},distance:function(e,t,n="lab"){e=new k(e),t=new k(t);var r,i=e.get(n),a=t.get(n);let o=0;for(r in i){var s=(i[r]||0)-(a[r]||0);o+=s*s}return Math.sqrt(o)},input:d,interpolate:nv,limits:Qv,mix:nv,random:(t=qv)=>{let n="#";for(let e=0;e<6;e++)n+="0123456789abcdef".charAt(Bv(16*t()));return new k(n,"hex")},scale:Zv,scales:n,valid:(...e)=>{try{return new k(...e),!0}catch(e){return!1}}}),D),qg=(e,t)=>{e=_h.getItem(e);if(!e)return t;try{return JSON.parse(e)}catch{return e}},Wg=(r,e)=>e.some(e=>{return e=e,t=(t=r).toLowerCase(),(e=e.toLowerCase()).includes("*")?(n=e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,"[^/]+"),new RegExp(`^${n}$`).test(t)):t===e;var t,n}),Gg=e=>{e=3===e.length?e.split("").map(e=>e+e).join(""):e;if(6!==e.length)throw"Only 3- or 6-digit hex colours are allowed.";if(e.match(/[^0-9a-f]/i))throw"Only hex colours are allowed.";e=e.match(/.{1,2}/g);if(3!==e?.length)throw"Could not parse hex colour.";return[Number.parseInt(e[0],16),Number.parseInt(e[1],16),Number.parseInt(e[2],16)]},Xg=(e,t)=>{let n=[];return e&&0<e.length?n=e.map(e=>({name:e.name,url:oy(e.url)})):n.push({name:t,url:"https://github.com/"+t}),n};async function Yg(e){console.debug("Resetting Marketplace");var t=[];if(0===e.length)for(const n of _h.keys())n.startsWith("marketplace:")&&t.push(n);for(const r of e)switch(r){case"extensions":t.push(...qg(v.installedExtensions,[])),t.push(v.installedExtensions);break;case"snippets":t.push(...qg(v.installedSnippets,[])),t.push(v.installedSnippets);break;case"theme":t.push(...qg(v.installedThemes,[])),t.push(v.installedThemes),t.push(v.themeInstalled);break;default:console.error("Unknown category: "+r)}for(const i of new Set(t))await _h.removeItemAsync(i),console.debug("Removed "+i);console.debug("Marketplace has been reset")}var Hg=(...e)=>{(async(...e)=>{await Yg(e),location.reload()})(...e)},Qg=()=>{var e,t,n={};for([e,t]of Object.entries(_h.entries()))e.startsWith("marketplace:")&&(n[e]=t);return n},ey=t=>{var n=document.querySelector("style.marketplaceCSS.marketplaceScheme");if(n&&n.remove(),t){n=document.createElement("style");n.classList.add("marketplaceCSS"),n.classList.add("marketplaceScheme");let e=":root {";for(const r of Object.keys(t))e=(e+=`--spice-${r}: #${t[r]};`)+`--spice-rgb-${r}: ${Gg(t[r])};`;e+="}",n.innerHTML=e,document.body.appendChild(n)}},ty=async t=>{var e=qg(v.albumArtBasedColorVibrancy,"PROMINENT"),e=("string"==typeof e?e:"PROMINENT").replace(/([a-z])([A-Z])/g,"$1_$2").toUpperCase();try{var n=(await Spicetify.colorExtractor(t))?.[e];if("string"==typeof n&&/^#[0-9a-f]{6}$/i.test(n))return n.substring(1);console.error(`No album-art color returned for Spotify URI "${t}"`)}catch(e){console.error(`Failed to extract album-art color for Spotify URI "${t}"`,e)}},ny=async(e,t)=>{var n=qg(v.albumArtBasedColorMode).replace(/([A-Z])/g,"-$1").toLowerCase();return(await fetch(`https://www.thecolorapi.com/scheme?hex=${e}&mode=${n}&count=`+t).then(e=>e.json())).colors.map(e=>e.hex.value.substring(1))};var ry=d=>{Spicetify.Player.addEventListener("songchange",async()=>{var t;t=1e3,await new Promise(e=>setTimeout(e,t));let e=Spicetify.Player.data?.item;if((e=e?.uri?e:await new Promise(t=>{let n;const r=setInterval(()=>{var e=Spicetify.Player.data?.item;e?.uri&&(clearInterval(r),void 0!==n&&clearTimeout(n),t(e))},50);n=setTimeout(()=>{clearInterval(r),t(void 0)},1e4)}))?.uri&&!e.isLocal){var n=new Set(Object.values(d)).size,r=await ty(e.uri);if(r){var i,a,o=await ny(r,n);let e=new Map;for([i,a]of Object.entries(d))e.has(a)?e.get(a).push(i):e.set(a,[i]);var s,r=new Map([...e.entries()].sort((e,t)=>{e=Bg(e[0]),t=Bg(t[0]);return e.get("lab.l")-t.get("lab.l")})),u={};for([,s]of(e=r).entries()){var l=o.shift();if(l)for(const c of s)u[c]=l}ey(u)}}})},iy=e=>{return"raw.githubusercontent.com"===new URL(e).host},ay=e=>{e=e.match(/https:\/\/raw\.githubusercontent\.com\/(?<user>[^/]+)\/(?<repo>[^/]+)\/(?<branch>[^/]+)\/(?<filePath>.+$)/);return{user:e?e.groups?.user:null,repo:e?e.groups?.repo:null,branch:e?e.groups?.branch:null,filePath:e?e.groups?.filePath:null}};var oy=e=>{var t=decodeURI(e).trim().toLowerCase();return t.startsWith("javascript:")||t.startsWith("data:")||t.startsWith("vbscript:")?"about:blank":e},sy=e=>{e&&(e=e.split("/").pop())&&-1===Spicetify.Config.extensions.indexOf(e)&&Spicetify.Config.extensions.push(e)};async function uy(){for(const e of["net","xyz"])try{if("opaqueredirect"===(await fetch("https://cdn.jsdelivr."+e,{redirect:"manual",cache:"no-cache"})).type)return e}catch(e){console.error(e)}}var xg=new Blob([`
  self.addEventListener('message', async (event) => {
    const url = event.data;
    const response = await fetch(url);
    const data = await response.json().catch(() => null);
    self.postMessage(data);
  });
`],{type:"application/javascript"}),ly=URL.createObjectURL(xg);async function cy(e){const r=new Worker(ly);return new Promise(t=>{const n=e=>{r.terminate(),t(e)};r.postMessage(e),r.addEventListener("message",e=>n(e.data),{once:!0}),r.addEventListener("error",()=>n(null),{once:!0})})}async function dy(n,r,i){var a=n+"-"+r,o=window.sessionStorage.getItem(a),s=JSON.parse(window.sessionStorage.getItem("noManifests")||"[]"),i=`https://raw.githubusercontent.com/${n}/${r}/${i}/manifest.json`;if(o||!s.includes(i)){let t,e=!1;if(o)try{t=JSON.parse(o),e=!0}catch(e){console.warn(`Invalid cached Marketplace manifest from ${n}/`+r,e),window.sessionStorage.removeItem(a),t=await cy(i)}else t=await cy(i);if(t)return s=(t=Array.isArray(t)?t:[t]).flatMap(e=>{e=Hp.safeParse(e);return e.success?[e.data]:(console.warn(`Invalid Marketplace manifest from ${n}/`+r,e.error),[])}),e||window.sessionStorage.setItem(a,JSON.stringify(s)),s;var o=[i],u="noManifests";if(o)for(const d of o){var l=u||d.user+"-"+d.repo,c=window.sessionStorage.getItem(l),c=c?JSON.parse(c):[];c.push(d),window.sessionStorage.setItem(l,JSON.stringify(c))}}return[]}async function fy(e,t){var n=await async function(e,t=1){const n=JSON.parse(window.sessionStorage.getItem("marketplace:blacklist")||"[]");let r=`https://api.github.com/search/repositories?per_page=${Ce}&q=`+encodeURIComponent(`topic:spicetify-${e}s`);t&&(r+="&page="+t);var i=JSON.parse(window.sessionStorage.getItem(`spicetify-${e}s-page-`+t)||"null")||await fetch(r).then(e=>e.json()).catch(()=>null);return i?.items?(window.sessionStorage.setItem(`spicetify-${e}s-page-`+t,JSON.stringify(i)),{...i,page_count:i.items.length,items:i.items.filter(e=>!Wg(e.html_url,n))}):(Spicetify.showNotification(Le("notifications.tooManyRequests"),!0,5e3),{items:[]})}(e,t),r=(!async function(e,t){for(const n of e.items)"theme"===t?await async function(e,r,i){try{var t=e.match(/https:\/\/api\.github\.com\/repos\/(?<user>.+)\/(?<repo>.+)\/contents/);if(!t?.groups)return;const{user:a,repo:o}=t.groups;return(await dy(a,o,r)).reduce((e,t)=>{var n;return t?.name&&t?.usercss&&t?.description&&(n=t.branch||r,n={manifest:t,title:t.name,subtitle:t.description,authors:Xg(t.authors,a),user:a,repo:o,branch:n,imageURL:t.preview?.startsWith("http")?t.preview:`https://raw.githubusercontent.com/${a}/${o}/${n}/`+t.preview,readmeURL:t.readme?.startsWith("http")?t.readme:`https://raw.githubusercontent.com/${a}/${o}/${n}/`+t.readme,stars:i,tags:t.tags,cssURL:t.usercss.startsWith("http")?t.usercss:`https://raw.githubusercontent.com/${a}/${o}/${n}/`+t.usercss,schemesURL:t.schemes?t.schemes.startsWith("http")?t.schemes:`https://raw.githubusercontent.com/${a}/${o}/${n}/`+t.schemes:null,include:t.include},e.push(n)),e},[])}catch{return}}(n.contents_url,n.default_branch,n.stargazers_count):"extension"===t?await async function(e,r,i,a=!1){try{var t=e.match(/https:\/\/api\.github\.com\/repos\/(?<user>.+)\/(?<repo>.+)\/contents/);if(!t?.groups)return;const{user:o,repo:s}=t.groups;return(await dy(o,s,r)).reduce((e,t)=>{var n;return t?.name&&t.description&&t.main&&(n=t.branch||r,n={manifest:t,title:t.name,subtitle:t.description,authors:Xg(t.authors,o),user:o,repo:s,branch:n,imageURL:t.preview?.startsWith("http")?t.preview:`https://raw.githubusercontent.com/${o}/${s}/${n}/`+t.preview,extensionURL:t.main.startsWith("http")?t.main:`https://raw.githubusercontent.com/${o}/${s}/${n}/`+t.main,readmeURL:t.readme?.startsWith("http")?t.readme:`https://raw.githubusercontent.com/${o}/${s}/${n}/`+t.readme,stars:i,tags:t.tags},a&&_h.getItem(`marketplace:installed:${o}/${s}/`+t.main)||e.push(n)),e},[])}catch{return}}(n.contents_url,n.default_branch,n.stargazers_count):"app"===t&&await async function(e,r,i){try{var t=e.match(/https:\/\/api\.github\.com\/repos\/(?<user>.+)\/(?<repo>.+)\/contents/);if(!t?.groups)return;const{user:a,repo:o}=t.groups;return(await dy(a,o,r)).reduce((e,t)=>{var n;return t?.name&&t.description&&!t.main&&!t.usercss&&(n=t.branch||r,n={manifest:t,title:t.name,subtitle:t.description,authors:Xg(t.authors,a),user:a,repo:o,branch:n,imageURL:t.preview?.startsWith("http")?t.preview:`https://raw.githubusercontent.com/${a}/${o}/${n}/`+t.preview,readmeURL:t.readme?.startsWith("http")?t.readme:`https://raw.githubusercontent.com/${a}/${o}/${n}/`+t.readme,stars:i,tags:t.tags},e.push(n)),e},[])}catch{return}}(n.contents_url,n.default_branch,n.stargazers_count)}(n,e),Ce*t+n.page_count),i=(console.debug({pageOfRepos:n}),n.total_count-r);if(console.debug(`Parsed ${r}/${n.total_count} ${e}s`),0<i)return fy(e,t+1);console.debug(`No more ${e} results`)}!async function e(){if(Spicetify.LocalStorage&&Spicetify.showNotification){var t=document.createElement("script");t.innerHTML="const global = globalThis;",document.body.appendChild(t),console.log("Initializing Spicetify Marketplace v1.0.10");try{await yh()}catch(e){return console.error("Marketplace storage could not be read",e),void Spicetify.showNotification(Le("notifications.storageUnreadable"),!0,5e3)}window.Marketplace={reset:Hg,export:Qg,version:"1.0.10"};const h=await uy();t=async t=>{t=qg(t);if(t){if(console.debug("Initializing theme: ",t),t.schemes){var e=t.schemes[t.activeScheme];if(ey(e),Spicetify.Config.color_scheme=t.activeScheme,"true"===_h.getItem(v.albumArtBasedColor))ry(e);else if("true"===_h.getItem(v.colorShift)){var n=t.schemes;let e=0;const m=Object.keys(n).length;setInterval(()=>{e%=m,ey(Object.values(n)[e]),e++},6e4)}}else console.warn("No schemes found for theme");e=document.querySelector("link.marketplaceCSS");e&&e.remove();try{var r=await(async(e,t)=>{if(!e.cssURL)throw new Error("No CSS URL provided");var t=t||await uy(),t=iy(e.cssURL)?`https://cdn.jsdelivr.${t}/gh/${e.user}/${e.repo}@${e.branch}/`+e.manifest.usercss:e.cssURL,n=t.replace("/user.css","/assets/"),e=(console.debug("Parsing CSS: ",t),await fetch(t+"?time="+Date.now()));if(!e.ok)throw new Error(`Failed to fetch theme CSS (HTTP ${e.status})`);let r=await e.text();for(const o of r.matchAll(/url\(['|"](?<path>.+?)['|"]\)/gm)||[]){var i,a=o?.groups?.path;!a||a.startsWith("http")||a.startsWith("data")||(i=n+a.replace(/\.\//g,""),r=r.replace(a,i))}return r})(t,h);try{var i,a,o=document.querySelector("link[href='user.css']"),s=(o&&o.remove(),document.querySelector("style.marketplaceCSS.marketplaceUserCSS"));s&&s.remove(),r?((i=document.createElement("style")).classList.add("marketplaceCSS"),i.classList.add("marketplaceUserCSS"),i.innerHTML=r,document.body.appendChild(i)):((a=document.createElement("link")).setAttribute("rel","stylesheet"),a.setAttribute("href","user.css"),a.classList.add("userCSS"),document.body.appendChild(a))}catch(e){console.warn(e)}}catch(e){console.error("Failed to inject theme CSS",e)}if(Spicetify.Config.current_theme=t.manifest?.name,t.include?.length)for(const p of t.include){var u=document.createElement("script");let e=p;if(iy(p)){var{user:l,repo:c,branch:d,filePath:f}=ay(p);if(!(l&&c&&d&&f))return;e=`https://cdn.jsdelivr.${h}/gh/${l}/${c}@${d}/`+f,f.endsWith(".mjs")&&(u.type="module")}u.src=e+"?time="+Date.now(),u.classList.add("marketplaceScript"),document.body.appendChild(u),sy(p)}}else console.debug("No theme manifest found")};console.log("Loaded Marketplace extension");var n=qg(v.installedSnippets,[]).map(e=>qg(e));if(n=n,(r=document.querySelector("style.marketplaceSnippets"))&&r.remove(),r=document.createElement("style"),n=n.reduce((e,t)=>`${e}/* ${t.title} - ${t.description} */
${t.code}
`,""),r.innerHTML=n,r.classList.add("marketplaceSnippets"),document.body.appendChild(r),h){window.sessionStorage.setItem("marketplace-request-tld",h);for(const i of qg(v.installedExtensions,[]))(e=>{e=qg(e);if(e?.extensionURL){console.debug("Initializing extension: ",e);var t=document.createElement("script");if(t.defer=!0,t.src=e.extensionURL,iy(t.src)){var{user:n,repo:r,branch:i,filePath:a}=ay(e.extensionURL);if(!(n&&r&&i&&a))return;t.src=`https://cdn.jsdelivr.${h}/gh/${n}/${r}@${i}/`+a,a.endsWith(".mjs")&&(t.type="module")}t.src=t.src+"?time="+Date.now(),document.body.appendChild(t),sy(e.manifest?.main)}})(i);var n=Spicetify.Config["current_theme"],r=(_h.setItem(v.localTheme,n),_h.getItem(v.themeInstalled));r&&("marketplace"!==n.toLocaleLowerCase()?Spicetify.showNotification(Le("notifications.wrongLocalTheme"),!0,5e3):t(r))}else window.navigator.onLine?(console.error(new Error("Unable to connect to the CDN, please check your Internet configuration.")),Spicetify.showNotification(Le("notifications.noCdnConnection"),!0,5e3)):window.addEventListener("online",e,{once:!0})}else setTimeout(e,100)}(),async function(){console.debug("Preloading extensions and themes..."),window.sessionStorage.clear();var e=await(await fetch("https://raw.githubusercontent.com/spicetify/marketplace/main/resources/blacklist.json").then(e=>e.json()).catch(()=>({}))).repos;window.sessionStorage.setItem("marketplace:blacklist",JSON.stringify(e)),await Promise.all([fy("extension",0),fy("theme",0),fy("app",0)])}()})()}();