@revolugo/booking-api-client 7.25.0-alpha.1 → 7.25.0-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,9 +1,9 @@
1
- (function(a,Ge){typeof exports=="object"&&typeof module<"u"?Ge(exports):typeof define=="function"&&define.amd?define(["exports"],Ge):(a=typeof globalThis<"u"?globalThis:a||self,Ge(a["@revolugo/booking-api-client"]={}))})(this,function(a){Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});var Ge=Object.create,ir=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,fc=Object.getOwnPropertyNames,lc=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,re=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),mc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=fc(t),o=0,s=i.length,u;o<s;o++)u=i[o],!or.call(e,u)&&u!==n&&ir(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=dc(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Ge(lc(e)):{},mc(t||!e||!e.__esModule||!or.call(e,"default")?ir(n,"default",{value:e,enumerable:!0}):n,e)),ar=(function(e){return e.V1="v1",e})({}),Je=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),pc={"CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001",LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com"},sr="https://revolugo.s3.eu-west-3.amazonaws.com",Y_=`${sr}/images`,Lt=`${sr}/legal`,V_=`${Lt}/2026_05_06_CGV_indiv_Revolugo_EN_FR.docx.pdf`,W_=`${Lt}/EN_privacy_policy_2024_revolugo.pdf`,X_=`${Lt}/FR_privacy_policy_2024_revolugo.pdf`,ur=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),hc=re(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(s){var u=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function d(f){return f&&DataView.prototype.isPrototypeOf(f)}if(c.arrayBuffer)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(f){return f&&p.indexOf(Object.prototype.toString.call(f))>-1};function h(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function _(f){return typeof f!="string"&&(f=String(f)),f}function A(f){var l={next:function(){var S=f.shift();return{done:S===void 0,value:S}}};return c.iterable&&(l[Symbol.iterator]=function(){return l}),l}function y(f){this.map={},f instanceof y?f.forEach(function(l,S){this.append(S,l)},this):Array.isArray(f)?f.forEach(function(l){if(l.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+l.length);this.append(l[0],l[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(l){this.append(l,f[l])},this)}y.prototype.append=function(f,l){f=h(f),l=_(l);var S=this.map[f];this.map[f]=S?S+", "+l:l},y.prototype.delete=function(f){delete this.map[h(f)]},y.prototype.get=function(f){return f=h(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(h(f))},y.prototype.set=function(f,l){this.map[h(f)]=_(l)},y.prototype.forEach=function(f,l){for(var S in this.map)this.map.hasOwnProperty(S)&&f.call(l,this.map[S],S,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(l,S){f.push(S)}),A(f)},y.prototype.values=function(){var f=[];return this.forEach(function(l){f.push(l)}),A(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(l,S){f.push([S,l])}),A(f)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(l,S){f.onload=function(){l(f.result)},f.onerror=function(){S(f.error)}})}function R(f){var l=new FileReader,S=v(l);return l.readAsArrayBuffer(f),S}function N(f){var l=new FileReader,S=v(l),T=/charset=([A-Za-z0-9_-]+)/.exec(f.type),k=T?T[1]:"utf-8";return l.readAsText(f,k),S}function E(f){for(var l=new Uint8Array(f),S=new Array(l.length),T=0;T<l.length;T++)S[T]=String.fromCharCode(l[T]);return S.join("")}function P(f){if(f.slice)return f.slice(0);var l=new Uint8Array(f.byteLength);return l.set(new Uint8Array(f)),l.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:c.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:c.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():c.arrayBuffer&&c.blob&&d(f)?(this._bodyArrayBuffer=P(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||m(f))?this._bodyArrayBuffer=P(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var f=g(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=g(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(c.blob)return this.blob().then(R);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=g(this);if(f)return f;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(f){var l=f.toUpperCase();return $.indexOf(l)>-1?l:f}function H(f,l){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l=l||{};var S=l.body;if(f instanceof H){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,l.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!S&&f._bodyInit!=null&&(S=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=l.credentials||this.credentials||"same-origin",(l.headers||!this.headers)&&(this.headers=new y(l.headers)),this.method=U(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&S)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(S),(this.method==="GET"||this.method==="HEAD")&&(l.cache==="no-store"||l.cache==="no-cache")){var T=/([?&])_=[^&]*/;if(T.test(this.url))this.url=this.url.replace(T,"$1_="+new Date().getTime());else{var k=/\?/;this.url+=(k.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function B(f){var l=new FormData;return f.trim().split("&").forEach(function(S){if(S){var T=S.split("="),k=T.shift().replace(/\+/g," "),w=T.join("=").replace(/\+/g," ");l.append(decodeURIComponent(k),decodeURIComponent(w))}}),l}function I(f){var l=new y;return f.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(S){return S.indexOf(`
2
- `)===0?S.substr(1,S.length):S}).forEach(function(S){var T=S.split(":"),k=T.shift().trim();if(k){var w=T.join(":").trim();try{l.append(k,w)}catch(J){console.warn("Response "+J.message)}}}),l}b.call(H.prototype);function L(f,l){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new y(l.headers),this.url=l.url||"",this._initBody(f)}b.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},L.error=function(){var f=new L(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var X=[301,302,303,307,308];L.redirect=function(f,l){if(X.indexOf(l)===-1)throw new RangeError("Invalid status code");return new L(null,{status:l,headers:{location:f}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(l,S){this.message=l,this.name=S;var T=Error(l);this.stack=T.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function C(f,l){return new Promise(function(S,T){var k=new H(f,l);if(k.signal&&k.signal.aborted)return T(new s.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function J(){w.abort()}w.onload=function(){var z={statusText:w.statusText,headers:I(w.getAllResponseHeaders()||"")};k.url.indexOf("file://")===0&&(w.status<200||w.status>599)?z.status=200:z.status=w.status,z.url="responseURL"in w?w.responseURL:z.headers.get("X-Request-URL");var Q="response"in w?w.response:w.responseText;setTimeout(function(){S(new L(Q,z))},0)},w.onerror=function(){setTimeout(function(){T(new TypeError("Network request failed"))},0)},w.ontimeout=function(){setTimeout(function(){T(new TypeError("Network request timed out"))},0)},w.onabort=function(){setTimeout(function(){T(new s.DOMException("Aborted","AbortError"))},0)};function K(z){try{return z===""&&u.location.href?u.location.href:z}catch{return z}}if(w.open(k.method,K(k.url),!0),k.credentials==="include"?w.withCredentials=!0:k.credentials==="omit"&&(w.withCredentials=!1),"responseType"in w&&(c.blob?w.responseType="blob":c.arrayBuffer&&(w.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof y||u.Headers&&l.headers instanceof u.Headers)){var Y=[];Object.getOwnPropertyNames(l.headers).forEach(function(z){Y.push(h(z)),w.setRequestHeader(z,_(l.headers[z]))}),k.headers.forEach(function(z,Q){Y.indexOf(Q)===-1&&w.setRequestHeader(Q,z)})}else k.headers.forEach(function(z,Q){w.setRequestHeader(Q,z)});k.signal&&(k.signal.addEventListener("abort",J),w.onreadystatechange=function(){w.readyState===4&&k.signal.removeEventListener("abort",J)}),w.send(typeof k._bodyInit>"u"?null:k._bodyInit)})}return C.polyfill=!0,u.fetch||(u.fetch=C,u.Headers=y,u.Request=H,u.Response=L),s.Headers=y,s.Request=H,s.Response=L,s.fetch=C,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),yc=oe(hc(),1),gc=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),_c=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Oc=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Ac=/[^\p{L}\d]+/giu,cr="$1\0$2",dr="";function fr(e){let t=e.trim();t=t.replace(gc,cr).replace(_c,cr),t=t.replace(Ac,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function Sc(e){const t=fr(e);for(let n=0;n<t.length;n++){const r=t[n],i=Oc.exec(r);if(i){const o=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,o),r.slice(o))}}return t}function lr(e,t){const[n,r,i]=tt(e,t);return n+r.map(et(t?.locale)).join(t?.delimiter??" ")+i}function Tc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale),u=t?.mergeAmbiguousCharacters?Ht(o,s):pr(o,s);return n+r.map((c,d)=>d===0?o(c):u(c,d)).join(t?.delimiter??"")+i}function vc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale),u=t?.mergeAmbiguousCharacters?Ht(o,s):pr(o,s);return n+r.map(u).join(t?.delimiter??"")+i}function wc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale);return n+r.map(Ht(o,s)).join(t?.delimiter??" ")+i}function mr(e,t){return lr(e,{delimiter:"-",...t})}function kc(e,t){return lr(e,{delimiter:"_",...t})}function et(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function zt(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Ht(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function pr(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function tt(e,t={}){const n=t.split??(t.separateNumbers?Sc:fr),r=t.prefixCharacters??dr,i=t.suffixCharacters??dr;let o=0,s=e.length;for(;o<e.length;){const u=e.charAt(o);if(!r.includes(u))break;o++}for(;s>o;){const u=s-1,c=e.charAt(u);if(!i.includes(c))break;s=u}return[e.slice(0,o),n(e.slice(o,s)),e.slice(s)]}var Rc=re(((e,t)=>{(function(n,r,i){typeof e=="object"?(t.exports=i(),t.exports.default=i()):typeof define=="function"&&define.amd?define(i):r[n]=i()})("slugify",e,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var u=r[s.locale]||{},c=s.replacement===void 0?"-":s.replacement,d=s.trim===void 0?!0:s.trim,p=o.normalize().split("").reduce(function(m,h){var _=u[h];return _===void 0&&(_=n[h]),_===void 0&&(_=h),_===c&&(_=" "),m+_.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(p=p.replace(/[^A-Za-z0-9\s]/g,"")),d&&(p=p.trim()),p=p.replace(/\s+/g,c),s.lower&&(p=p.toLowerCase()),p}return i.extend=function(o){Object.assign(n,o)},i})})),Nc=oe(Rc(),1);function Pc(e){return(0,Nc.default)(mr(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},hr={[D.Camel]:Tc,[D.Capital]:wc,[D.Param]:mr,[D.Pascal]:vc,[D.Slug]:Pc,[D.Snake]:kc};function bc(e,t){return Array.isArray(e)?e.map(n=>hr[t](n)):hr[t](e)}function Cc(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function Mc(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Bt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Bt(i,t,n)):Cc(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,o)=>{const s=n.exclude&&Mc(n.exclude,o)?o:bc(o,t);return i[s]=r?Bt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function F(e,t,n={}){return Bt(e,t,{deep:n.deep??!0,exclude:n.exclude})}var yr=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",u="minute",c="hour",d="day",p="week",m="month",h="quarter",_="year",A="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var f=["th","st","nd","rd"],l=C%100;return"["+C+(f[(l-20)%10]||f[l]||f[0])+"]"}},N=function(C,f,l){var S=String(C);return!S||S.length>=f?C:""+Array(f+1-S.length).join(l)+C},E={s:N,z:function(C){var f=-C.utcOffset(),l=Math.abs(f),S=Math.floor(l/60),T=l%60;return(f<=0?"+":"-")+N(S,2,"0")+":"+N(T,2,"0")},m:function C(f,l){if(f.date()<l.date())return-C(l,f);var S=12*(l.year()-f.year())+(l.month()-f.month()),T=f.clone().add(S,m),k=l-T<0,w=f.clone().add(S+(k?-1:1),m);return+(-(S+(l-T)/(k?T-w:w-T))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:m,y:_,w:p,d,D:A,h:c,m:u,s,ms:o,Q:h}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},P="en",b={};b[P]=R;var $="$isDayjsObject",U=function(C){return C instanceof L||!(!C||!C[$])},H=function C(f,l,S){var T;if(!f)return P;if(typeof f=="string"){var k=f.toLowerCase();b[k]&&(T=k),l&&(b[k]=l,T=k);var w=f.split("-");if(!T&&w.length>1)return C(w[0])}else{var J=f.name;b[J]=f,T=J}return!S&&T&&(P=T),T||!S&&P},B=function(C,f){if(U(C))return C.clone();var l=typeof f=="object"?f:{};return l.date=C,l.args=arguments,new L(l)},I=E;I.l=H,I.i=U,I.w=function(C,f){return B(C,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var L=(function(){function C(l){this.$L=H(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[$]=!0}var f=C.prototype;return f.parse=function(l){this.$d=(function(S){var T=S.date,k=S.utc;if(T===null)return new Date(NaN);if(I.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var w=T.match(g);if(w){var J=w[2]-1||0,K=(w[7]||"0").substring(0,3);return k?new Date(Date.UTC(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)):new Date(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)}}return new Date(T)})(l),this.init()},f.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},f.$utils=function(){return I},f.isValid=function(){return this.$d.toString()!==y},f.isSame=function(l,S){var T=B(l);return this.startOf(S)<=T&&T<=this.endOf(S)},f.isAfter=function(l,S){return B(l)<this.startOf(S)},f.isBefore=function(l,S){return this.endOf(S)<B(l)},f.$g=function(l,S,T){return I.u(l)?this[S]:this.set(T,l)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(l,S){var T=this,k=!!I.u(S)||S,w=I.p(l),J=function(ye,ne){var de=I.w(T.$u?Date.UTC(T.$y,ne,ye):new Date(T.$y,ne,ye),T);return k?de:de.endOf(d)},K=function(ye,ne){return I.w(T.toDate()[ye].apply(T.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(ne)),T)},Y=this.$W,z=this.$M,Q=this.$D,Re="set"+(this.$u?"UTC":"");switch(w){case _:return k?J(1,0):J(31,11);case m:return k?J(1,z):J(0,z+1);case p:var Oe=this.$locale().weekStart||0,De=(Y<Oe?Y+7:Y)-Oe;return J(k?Q-De:Q+(6-De),z);case d:case A:return K(Re+"Hours",0);case c:return K(Re+"Minutes",1);case u:return K(Re+"Seconds",2);case s:return K(Re+"Milliseconds",3);default:return this.clone()}},f.endOf=function(l){return this.startOf(l,!1)},f.$set=function(l,S){var T,k=I.p(l),w="set"+(this.$u?"UTC":""),J=(T={},T[d]=w+"Date",T[A]=w+"Date",T[m]=w+"Month",T[_]=w+"FullYear",T[c]=w+"Hours",T[u]=w+"Minutes",T[s]=w+"Seconds",T[o]=w+"Milliseconds",T)[k],K=k===d?this.$D+(S-this.$W):S;if(k===m||k===_){var Y=this.clone().set(A,1);Y.$d[J](K),Y.init(),this.$d=Y.set(A,Math.min(this.$D,Y.daysInMonth())).$d}else J&&this.$d[J](K);return this.init(),this},f.set=function(l,S){return this.clone().$set(l,S)},f.get=function(l){return this[I.p(l)]()},f.add=function(l,S){var T,k=this;l=Number(l);var w=I.p(S),J=function(z){var Q=B(k);return I.w(Q.date(Q.date()+Math.round(z*l)),k)};if(w===m)return this.set(m,this.$M+l);if(w===_)return this.set(_,this.$y+l);if(w===d)return J(1);if(w===p)return J(7);var K=(T={},T[u]=r,T[c]=i,T[s]=n,T)[w]||1,Y=this.$d.getTime()+l*K;return I.w(Y,this)},f.subtract=function(l,S){return this.add(-1*l,S)},f.format=function(l){var S=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var k=l||"YYYY-MM-DDTHH:mm:ssZ",w=I.z(this),J=this.$H,K=this.$m,Y=this.$M,z=T.weekdays,Q=T.months,Re=T.meridiem,Oe=function(ne,de,Ae,Ne){return ne&&(ne[de]||ne(S,k))||Ae[de].slice(0,Ne)},De=function(ne){return I.s(J%12||12,ne,"0")},ye=Re||function(ne,de,Ae){var Ne=ne<12?"AM":"PM";return Ae?Ne.toLowerCase():Ne};return k.replace(v,(function(ne,de){return de||(function(Ae){switch(Ae){case"YY":return String(S.$y).slice(-2);case"YYYY":return I.s(S.$y,4,"0");case"M":return Y+1;case"MM":return I.s(Y+1,2,"0");case"MMM":return Oe(T.monthsShort,Y,Q,3);case"MMMM":return Oe(Q,Y);case"D":return S.$D;case"DD":return I.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return Oe(T.weekdaysMin,S.$W,z,2);case"ddd":return Oe(T.weekdaysShort,S.$W,z,3);case"dddd":return z[S.$W];case"H":return String(J);case"HH":return I.s(J,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return ye(J,K,!0);case"A":return ye(J,K,!1);case"m":return String(K);case"mm":return I.s(K,2,"0");case"s":return String(S.$s);case"ss":return I.s(S.$s,2,"0");case"SSS":return I.s(S.$ms,3,"0");case"Z":return w}return null})(ne)||w.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(l,S,T){var k,w=this,J=I.p(S),K=B(l),Y=(K.utcOffset()-this.utcOffset())*r,z=this-K,Q=function(){return I.m(w,K)};switch(J){case _:k=Q()/12;break;case m:k=Q();break;case h:k=Q()/3;break;case p:k=(z-Y)/6048e5;break;case d:k=(z-Y)/864e5;break;case c:k=z/i;break;case u:k=z/r;break;case s:k=z/n;break;default:k=z}return T?k:I.a(k)},f.daysInMonth=function(){return this.endOf(m).$D},f.$locale=function(){return b[this.$L]},f.locale=function(l,S){if(!l)return this.$L;var T=this.clone(),k=H(l,S,!0);return k&&(T.$L=k),T},f.clone=function(){return I.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},C})(),X=L.prototype;return B.prototype=X,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",d],["$M",m],["$y",_],["$D",A]].forEach((function(C){X[C[1]]=function(f){return this.$g(f,C[0],C[1])}})),B.extend=function(C,f){return C.$i||(C(f,L,B),C.$i=!0),B},B.locale=H,B.isDayjs=U,B.unix=function(C){return B(1e3*C)},B.en=b[P],B.Ls=b,B.p={},B}))})),Ic=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return o.bind(this)(s);var d=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}}));return o.bind(this)(p)}}}))})),Dc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,c={},d=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(v){this[g]=+v}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var R=v.match(/([+-]|\d\d)/g),N=60*R[1]+(+R[2]||0);return N===0?0:R[0]==="+"?-N:N})(g)}],h=function(g){var v=c[g];return v&&(v.indexOf?v:v.s.concat(v.f))},_=function(g,v){var R,N=c.meridiem;if(N){for(var E=1;E<=24;E+=1)if(g.indexOf(N(E,0,v))>-1){R=E>12;break}}else R=g===(v?"pm":"PM");return R},A={A:[u,function(g){this.afternoon=_(g,!1)}],a:[u,function(g){this.afternoon=_(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[o,p("day")],Do:[u,function(g){var v=c.ordinal,R=g.match(/\d+/);if(this.day=R[0],v)for(var N=1;N<=31;N+=1)v(N).replace(/\[|\]/g,"")===g&&(this.day=N)}],w:[s,p("week")],ww:[o,p("week")],M:[s,p("month")],MM:[o,p("month")],MMM:[u,function(g){var v=h("months"),R=(h("monthsShort")||v.map((function(N){return N.slice(0,3)}))).indexOf(g)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(g){var v=h("months").indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,p("year")],YY:[o,function(g){this.year=d(g)}],YYYY:[/\d{4}/,p("year")],Z:m,ZZ:m};function y(g){for(var v=g,R=c&&c.formats,N=(g=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,I,L){var X=L&&L.toUpperCase();return I||R[L]||n[L]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,f,l){return f||l.slice(1)}))}))).match(r),E=N.length,P=0;P<E;P+=1){var b=N[P],$=A[b],U=$&&$[0],H=$&&$[1];N[P]=H?{regex:U,parser:H}:b.replace(/^\[|\]$/g,"")}return function(B){for(var I={},L=0,X=0;L<E;L+=1){var C=N[L];if(typeof C=="string")X+=C.length;else{var f=C.regex,l=C.parser,S=B.slice(X),T=f.exec(S)[0];l.call(I,T),B=B.replace(T,"")}}return(function(k){var w=k.afternoon;if(w!==void 0){var J=k.hours;w?J<12&&(k.hours+=12):J===12&&(k.hours=0),delete k.afternoon}})(I),I}}return function(g,v,R){R.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(d=g.parseTwoDigitYear);var N=v.prototype,E=N.parse;N.parse=function(P){var b=P.date,$=P.utc,U=P.args;this.$u=$;var H=U[1];if(typeof H=="string"){var B=U[2]===!0,I=U[3]===!0,L=B||I,X=U[2];I&&(X=U[2]),c=this.$locale(),!B&&X&&(c=R.Ls[X]),this.$d=(function(S,T,k,w){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*S);var J=y(T)(S),K=J.year,Y=J.month,z=J.day,Q=J.hours,Re=J.minutes,Oe=J.seconds,De=J.milliseconds,ye=J.zone,ne=J.week,de=new Date,Ae=z||(K||Y?1:de.getDate()),Ne=K||de.getFullYear(),Ft=0;K&&!Y||(Ft=Y>0?Y-1:de.getMonth());var $t,er=Q||0,tr=Re||0,nr=Oe||0,rr=De||0;return ye?new Date(Date.UTC(Ne,Ft,Ae,er,tr,nr,rr+60*ye.offset*1e3)):k?new Date(Date.UTC(Ne,Ft,Ae,er,tr,nr,rr)):($t=new Date(Ne,Ft,Ae,er,tr,nr,rr),ne&&($t=w($t).week(ne).toDate()),$t)}catch{return new Date("")}})(b,H,$,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),L&&b!=this.format(H)&&(this.$d=new Date("")),c={}}else if(H instanceof Array)for(var C=H.length,f=1;f<=C;f+=1){U[1]=H[f-1];var l=R.apply(this,U);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}f===C&&(this.$d=new Date(""))}else E.call(this,P)}}}))})),Jc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(o,s,u,c){var d=i(o),p=i(s),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(d,u):!this.isBefore(d,u))&&(h?this.isBefore(p,u):!this.isAfter(p,u))||(m?this.isBefore(d,u):!this.isAfter(d,u))&&(h?this.isAfter(p,u):!this.isBefore(p,u))}}}))})),Ec=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrAfter=function(i,o){return this.isSame(i,o)||this.isAfter(i,o)}}}))})),Fc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrBefore=function(i,o){return this.isSame(i,o)||this.isBefore(i,o)}}}))})),$c=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var o=r.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,h,_,A,y){var g=m.name?m:m.$locale(),v=s(g[h]),R=s(g[_]),N=v||R.map((function(P){return P.slice(0,A)}));if(!y)return N;var E=g.weekStart;return N.map((function(P,b){return N[(b+(E||0))%7]}))},c=function(){return i.Ls[i.locale()]},d=function(m,h){return m.formats[h]||(function(_){return _.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,y,g){return y||g.slice(1)}))})(m.formats[h.toUpperCase()])},p=function(){var m=this;return{months:function(h){return h?h.format("MMMM"):u(m,"months")},monthsShort:function(h){return h?h.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):u(m,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(m.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return p.bind(this)()},i.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return d(m,h)},meridiem:m.meridiem,ordinal:m.ordinal}},i.months=function(){return u(c(),"months")},i.monthsShort=function(){return u(c(),"monthsShort","months",3)},i.weekdays=function(m){return u(c(),"weekdays",null,null,m)},i.weekdaysShort=function(m){return u(c(),"weekdaysShort","weekdays",3,m)},i.weekdaysMin=function(m){return u(c(),"weekdaysMin","weekdays",2,m)}}}))})),Lc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,u=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,p=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,A,y){var g=y&&y.toUpperCase();return A||h[y]||n[y]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,R,N){return R||N.slice(1)}))}))})(c,d===void 0?{}:d);return u.call(this,p)}}}))})),zc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_minMax=r()})(e,(function(){"use strict";return function(n,r,i){var o=function(s,u){if(!u||!u.length||u.length===1&&!u[0]||u.length===1&&Array.isArray(u[0])&&!u[0].length)return null;var c;u.length===1&&u[0].length>0&&(u=u[0]),c=(u=u.filter((function(p){return p})))[0];for(var d=1;d<u.length;d+=1)u[d].isValid()&&!u[d][s](c)||(c=u[d]);return c};i.max=function(){return o("isAfter",[].slice.call(arguments,0))},i.min=function(){return o("isBefore",[].slice.call(arguments,0))}}}))})),Hc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){"use strict";return function(n,r,i){n=n||{};var o=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(d,p,m,h){return o.fromToBase(d,p,m,h)}i.en.relativeTime=s,o.fromToBase=function(d,p,m,h,_){for(var A,y,g,v=m.$locale().relativeTime||s,R=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],N=R.length,E=0;E<N;E+=1){var P=R[E];P.d&&(A=h?i(d).diff(m,P.d,!0):m.diff(d,P.d,!0));var b=(n.rounding||Math.round)(Math.abs(A));if(g=A>0,b<=P.r||!P.r){b<=1&&E>0&&(P=R[E-1]);var $=v[P.l];_&&(b=_(""+b)),y=typeof $=="string"?$.replace("%d",b):$(b,p,P.l,g);break}}if(p)return y;var U=g?v.future:v.past;return typeof U=="function"?U(y):U.replace("%s",y)},o.to=function(d,p){return u(d,p,this,!0)},o.from=function(d,p){return u(d,p,this)};var c=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(c(this),d)},o.fromNow=function(d){return this.from(c(this),d)}}}))})),Bc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,o,s){var u,c=function(h,_,A){A===void 0&&(A={});var y=new Date(h);return(function(g,v){v===void 0&&(v={});var R=v.timeZoneName||"short",N=g+"|"+R,E=r[N];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:R}),r[N]=E),E})(_,A).formatToParts(y)},d=function(h,_){for(var A=c(h,_),y=[],g=0;g<A.length;g+=1){var v=A[g],R=v.type,N=v.value,E=n[R];E>=0&&(y[E]=parseInt(N,10))}var P=y[3],b=P===24?0:P,$=y[0]+"-"+y[1]+"-"+y[2]+" "+b+":"+y[4]+":"+y[5]+":000",U=+h;return(s.utc($).valueOf()-(U-=U%1e3))/6e4},p=o.prototype;p.tz=function(h,_){if(h===void 0&&(h=u),!this.isValid())return this;var A,y=this.utcOffset(),g=this.toDate(),v=g.toLocaleString("en-US",{timeZone:h}),R=d(+g,h);if(!Number(R))A=this.utcOffset(0,_);else if(A=s(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(R,!0),_){var N=A.utcOffset();A=A.add(y-N,"minute")}return A.$x.$timezone=h,A},p.offsetName=function(h){var _=this.$x.$timezone||s.tz.guess(),A=c(this.valueOf(),_,{timeZoneName:h}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return A&&A.value};var m=p.startOf;p.startOf=function(h,_){if(!this.$x||!this.$x.$timezone)return m.call(this,h,_);var A=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(A,h,_).tz(this.$x.$timezone,!0)},s.tz=function(h,_,A){var y=A&&_,g=A||_||u,v=d(+s(),g);if(typeof h!="string")return s(h).tz(g);var R=s.utc(h,y).valueOf();if(Number.isNaN(R)){var N=s(NaN);return N.$x.$timezone=g,N}var E=(function(U,H,B){var I=U-60*H*1e3,L=d(I,B);if(H===L)return[I,H];var X=d(I-=60*(L-H)*1e3,B);return L===X?[I,L]:[U-60*Math.min(L,X)*1e3,Math.max(L,X)]})(R,v,g),P=E[0],b=E[1],$=s(P).utcOffset(b);return $.$x.$timezone=g,$},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(h){u=h}}}))})),Uc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,u){var c=s.prototype;u.utc=function(y){return new s({date:y,utc:!0,args:arguments})},c.utc=function(y){var g=u(this.toDate(),{locale:this.$L,utc:!0});return y?g.add(this.utcOffset(),n):g},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var d=c.parse;c.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),d.call(this,y)};var p=c.init;c.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else p.call(this)};var m=c.utcOffset;c.utcOffset=function(y,g){var v=this.$utils().u;if(v(y))return this.$u?0:v(this.$offset)?m.call(this):this.$offset;if(typeof y=="string"&&(y=(function(P){P===void 0&&(P="");var b=P.match(r);if(!b)return null;var $=(""+b[0]).match(i)||["-",0,0],U=$[0],H=60*+$[1]+ +$[2];return H===0?0:U==="+"?H:-H})(y),y===null))return this;var R=Math.abs(y)<=16?60*y:y;if(R===0)return this.utc(g);var N=this.clone();if(g)return N.$offset=R,N.$u=!1,N;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(R+E,n)).$offset=R,N.$x.$localOffset=E,N};var h=c.format;c.format=function(y){var g=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},c.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var _=c.toDate;c.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():_.call(this)};var A=c.diff;c.diff=function(y,g,v){if(y&&this.$u===y.$u)return A.call(this,y,g,v);var R=this.local(),N=u(y).local();return A.call(R,N,g,v)}}}))})),Zc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(yr()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(n){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return i.default.locale(o,null,!0),o}))})),Gc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})),fe=oe(yr(),1),qc=oe(Ic(),1),Kc=oe(Dc(),1),Yc=oe(Jc(),1),Vc=oe(Ec(),1),Wc=oe(Fc(),1),Xc=oe($c(),1),Qc=oe(Lc(),1),xc=oe(zc(),1),jc=oe(Hc(),1),ed=oe(Bc(),1),td=oe(Uc(),1),Q_=Zc(),x_=Gc();fe.default.extend(qc.default),fe.default.extend(Kc.default),fe.default.extend(Yc.default),fe.default.extend(Vc.default),fe.default.extend(Wc.default),fe.default.extend(Qc.default),fe.default.extend(Xc.default),fe.default.extend(xc.default),fe.default.extend(jc.default),fe.default.extend(ed.default),fe.default.extend(td.default);function Se(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function nt(e,t=new WeakSet){if(e==null||typeof e!="object"||t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(n=>nt(n,t));if(Se(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=nt(e[r],t));return n}return e}function Ut(e,t,n=new WeakSet){if(!(!Se(t)||!Se(e))&&!(t===e||n.has(t))){n.add(t);for(const r in t)if(Object.hasOwn(t,r)){const i=t[r],o=e[r];Se(i)&&Se(o)?Ut(o,i,n):Array.isArray(i)&&Array.isArray(o)?e[r]=gr(o,i,n):e[r]=nt(i,n)}}}function gr(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const o=t[i],s=r[i];if(Se(o)&&Se(s)){const u={...s};Ut(u,o,n),r[i]=u}else Array.isArray(o)&&Array.isArray(s)?r[i]=gr(s,o,n):r[i]=nt(o,n)}return r}function _r(e,...t){if(!Se(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&Ut(e,r,n);return e}function nd(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var ee=[];for(let e=0;e<256;++e)ee.push((e+256).toString(16).slice(1));function rd(e,t=0){return(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase()}var id=new Uint8Array(16);function od(){return crypto.getRandomValues(id)}function ad(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():sd(e,t,n)}function sd(e,t,n){e=e||{};const r=e.random??e.rng?.()??od();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return rd(r)}var ud=1500,Pe={},cd=class{defaultOptions={callCount:1,interval:ud,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};on(e,t){this.events[e]=t}poll(e,t){const n=this.buildPollerOptions(t);return this.storeCurrentPolling(n),this.isActivePoller(n)&&e().then(r=>this.onRequest(r,e,n)).catch(r=>{const i=r instanceof Error?r:new Error(String(r));this.dispatch("error",i)}),this}stop(e){e&&Pe[e]&&delete Pe[e]}buildPollerOptions(e){return{...this.defaultOptions,...nd(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!Pe[e.type]&&Pe[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,t){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(t)}async onRequest(e,t,n){const r=F(e,D.Camel);this.isActivePoller(n)&&(this.isInProgress(r)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(r)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(r)||(r.meta={...r.meta,status:"IN_PROGRESS"}),n.callCount+=1,this.dispatch("data",r),n.interval&&await this.pause(n),this.poll(t,n)):this.isInProgress(r)?(r.meta={...r.meta,status:"COMPLETE"},this.onComplete(r,n)):this.onComplete(r,n))}pause(e){return new Promise(t=>{setTimeout(t,e.interval)})}removeCurrentPolling(e){e.type&&Pe[e.type]&&delete Pe[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=ad(),Pe[e.type]=e.uuid)}};function dd(){return new cd}function rt(e,t,n){const r=dd();return r.poll(e,t),n&&typeof n=="function"?(r.on("data",i=>{i instanceof Error?n(i,void 0,r):n(null,i,r)}),r.on("error",i=>{i instanceof Error?n(i):n(null,i)}),r):new Promise((i,o)=>{r.on("error",o),r.on("complete",s=>{s instanceof Error?o(s):i(s)})})}function Zt(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function Or(e,t="|"){return e.map(n=>kr(n)).join(t)}function Gt(e,t){return typeof t=="bigint"?t.toString():t}var fd=class{constructor(e){this._getter=e,this._value=void 0}get value(){const e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function qt(e){return new fd(e)}function ld(e){return e==null}function Kt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function md(e,t){const n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function be(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ar(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function ge(e){return Ar(e._zod.def)??e._zod.def.shape}function Sr(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return be(this,t,r),r},enumerable:!0,configurable:!0})}function Tr(e,t,n){t in e?be(e,t,n):e[t]=n}function Ce(e,t,n,r){const i=ge(t);for(const o of n){const s=Object.getOwnPropertyDescriptor(i,o);s.enumerable&&(s.get?Sr(e,o,()=>{const u=t._zod.def.shape[o];return r?r(u,o):u}):Tr(e,o,r?r(s.value,o):s.value))}}function pd(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Sr(e,n,()=>t[n]):Tr(e,n,r.value))}}function se(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function hd(e){return JSON.stringify(e)}function yd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var vr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function it(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var gd=qt(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function qe(e){if(it(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(it(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function wr(e){return qe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var _d=new Set(["string","number","symbol"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function kr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Od(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Rr={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]},Ad={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Sd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i={};return Ce(i,e,at(e,t)),Te(e,se(n,{shape:i,checks:[]}))}function at(e,t){const n=ge(e),r=[];for(const i of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,i)?.enumerable)throw new Error(`Unrecognized key: "${String(i)}"`);t[i]&&r.push(i)}return r}function Td(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=new Set(at(e,t)),o={};return Ce(o,e,Reflect.ownKeys(ge(e)).filter(s=>!i.has(s))),Te(e,se(n,{shape:o,checks:[]}))}function vd(e,t){if(!qe(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=ge(e);for(const i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Te(e,se(e._zod.def,{shape:Nr(e,t)}))}function Nr(e,t){const n={};return Ce(n,e,Reflect.ownKeys(ge(e))),pd(n,t),n}function wd(e,t){if(!qe(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Te(e,se(e._zod.def,{shape:Nr(e,t)}))}function kd(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};return Ce(n,e,Reflect.ownKeys(ge(e))),Ce(n,t,Reflect.ownKeys(ge(t))),Te(e,se(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Pr(e,t,n,r="partial"){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const o=n?new Set(at(t,n)):void 0,s={};return Ce(s,t,Reflect.ownKeys(ge(t)),e&&((u,c)=>o&&!o.has(c)?u:new e({type:"optional",innerType:u}))),Te(t,se(t._zod.def,{shape:s,checks:[]}))}function Rd(e,t,n){const r=n?new Set(at(t,n)):void 0,i={};return Ce(i,t,Reflect.ownKeys(ge(t)),(o,s)=>r&&!r.has(s)?o:new e({type:"nonoptional",innerType:o})),Te(t,se(t._zod.def,{shape:i}))}function _e(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Nd(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function br(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ke(e){return typeof e=="string"?e:e?.message}function Cr(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ee(e,t,n){var r;const i=e.inst?._zod?.traits;i?.has("$ZodType")&&(i.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ke(e.inst?._zod.def?.error?.(e))??Ke(o?.(e))??Ke(t?.error?.(e))??Ke(n.customError?.(e))??Ke(n.localeError?.(e))??"Invalid input",u={};for(const c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(u[c]=e[c]);return u.path??(u.path=[]),u.message=s,t?.reportInput&&(u.input=e.input),u}var Pd=/[\uD800-\uDBFF]/;function Yt(e){const t=e.length;if(!Pd.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Vt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bd(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ye(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Cd(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Md(e,n,r.value)}}function ve(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Mr(e,t,n){return ve(e,t,n,!1)}function Ir(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return ve(this,n,r(this))},set(i){ve(this,n,i)}})}return t}function Md(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ve(this,t,n.bind(this))},set(r){ve(this,t,r)}})}function Id(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}var Wt,we=!1,Dd={configurable:!0,get(){we=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Wt!==e._zod){Wt=void 0;return}Wt=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Dd);const i=we;we=!1;try{const o=n(this);return we?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),we=we||i,o}catch(o){throw delete this[t],we=we||i,o}},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i})}})}function Jd(e,t,n,r){const i=Id(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){const o={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,o),o.value=n(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:o})}})}var Ed="~constantCatch";function Fd(e){const t=()=>e;return t[Ed]=!0,t}var Dr,Xt={value:void 0,enumerable:!1},Jr="captureStackTrace"in Error?Error:null;function $d(e){const t=Jr;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Jr=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function O(e,t,n,r){const i={};function o(h){this.def=h,this.constr=m,this.traits=new Set}o.prototype=i;const s=n,u=s&&new WeakSet;function c(h,_){if(h._zod){if(h._zod.traits.has(e))return}else{Xt.value=new o(_);try{Object.defineProperty(h,"_zod",Xt)}finally{Xt.value=void 0}}if(h._zod.traits.add(e),t(h,_),u){const y=Object.getPrototypeOf(h),g=h._zod.constr.prototype;let v=y;for(;v&&v!==g;)v=Object.getPrototypeOf(v);const R=v??y;u.has(R)||(u.add(R),Cd(R,s))}const A=m.prototype;for(const y in A)Object.prototype.hasOwnProperty.call(A,y)&&(y in h||(h[y]=A[y].bind(h)))}const d=r?.Parent??Object;class p extends d{}Object.defineProperty(p,"name",{value:e});function m(h){const _=r?.Parent?$d(p):this;c(_,h);const A=_._zod.deferred;if(A){for(const g of A)g();_._zod.deferred=void 0}const y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(_),_}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Er=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Dr=globalThis).__zod_globalConfig??(Dr.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function ke(e){return e&&Object.assign(me,e),me}function Ld(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Gt,2)),e.message}function zd(e){this._zod.message=e}var Hd={get:Ld,set:zd,enumerable:!0,configurable:!0},Qt={value:void 0,enumerable:!1},Fr=new WeakSet([Object.prototype,Error.prototype]),$r=(e,t)=>{e.name="$ZodError",Qt.value=t,Object.defineProperty(e,"issues",Qt),Qt.value=void 0,Object.defineProperty(e,"message",Hd);const n=Object.getPrototypeOf(e);Fr.has(n)||(Fr.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Bd=O("$ZodError",$r),j_=O("$ZodError",$r,void 0,{Parent:Error});function Ud(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Zd(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?Ud(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Gd(e,t=n=>n.message){const n={_errors:[]},r=(i,o=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...o,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...o,...s.path]);else{const u=[...o,...s.path];if(u.length===0)n._errors.push(t(s));else{let c=n,d=0;for(;d<u.length;){const p=u[d],m=d===u.length-1;if(p==="_errors"){m&&c._errors.push(t(s)),d++;continue}Object.prototype.hasOwnProperty.call(c,p)||Object.defineProperty(c,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=c[p];m&&h._errors.push(t(s)),c=h,d++}}}};return r(e),n}function st(e,t){return{callee:t?.callee??e,Err:t?.Err}}var xt=e=>{const t=(n,r,i,o)=>{const s=i?{...i,async:!1}:{async:!1},u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise)throw new Me;if(u.issues.length){const c=new(o?.Err??e)(u.issues.map(d=>Ee(d,s,ke())));throw vr(c,o?.callee??t),c}return u.value};return t},jt=e=>{const t=async(n,r,i,o)=>{const s=i?{...i,async:!0}:{async:!0};let u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const c=new(o?.Err??e)(u.issues.map(d=>Ee(d,s,ke())));throw vr(c,o?.callee??t),c}return u.value};return t},en=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Me;return o.issues.length?Lr(e,o.issues,i):{success:!0,data:o.value}};function Lr(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(i=>Ee(i,n,ke()))),t=void 0,n=void 0),r},set error(i){r=i,t=void 0,n=void 0}}}var tn=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?Lr(e,o.issues,i):{success:!0,data:o.value}},qd=Symbol.for("zod.compile.invalid"),Kd=Symbol.for("zod.compile.fallback"),Yd=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==qd)return!0;if(r.definite===!0&&n===void 0)return!1}return Vd(e,t,n)});function Vd(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun;let o;if(i?(r[Kd]=!0,o=i({value:t,issues:[]},r)):o=e._zod.run({value:t,issues:[]},r),o instanceof Promise)throw new Me;return o.issues.length===0}var Wd=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Xd=e=>{const t=xt(e),n=(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return t(r,i,u,st(n,s))};return n},Qd=e=>{const t=xt(e),n=(r,i,o,s)=>t(r,i,o,st(n,s));return n},xd=e=>{const t=jt(e),n=async(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return await t(r,i,u,st(n,s))};return n},jd=e=>{const t=jt(e),n=async(r,i,o,s)=>await t(r,i,o,st(n,s));return n},ef=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return en(e)(t,n,i)},tf=e=>(t,n,r)=>en(e)(t,n,r),nf=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return tn(e)(t,n,i)},rf=e=>async(t,n,r)=>tn(e)(t,n,r),of=/^[cC][0-9a-z]{6,}$/,af=/^[0-9a-z]+$/,sf=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,uf=/^[0-9a-vA-V]{20}$/,cf=/^[A-Za-z0-9]{27}$/,df=/^[a-zA-Z0-9_-]{21}$/;function ff(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var lf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,mf=/^([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})$/,zr=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)$/,pf=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,hf="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function yf(){return new RegExp(hf,"u")}var gf=/^(?:(?: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])$/,_f=/^(([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}|:))$/,Of=/^((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])$/,Af=/^(([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])$/,Sf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Tf=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,vf=/^https?$/,wf=/^\+[1-9]\d{6,14}$/,Hr="(?:(?:\\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 kf(e){return new RegExp(`^${e}$`)}var Rf=kf(Hr);function nn(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Nf(e){return new RegExp(`^${nn(e)}$`)}function Pf(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${nn({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${nn({precision:e.precision})}`:n;return new RegExp(`^${Hr}T(?:${r})$`)}var bf=/^[\s\S]{0,}$/,Cf=/^-?\d+(?:\.\d+)?$/,Mf=/^[^A-Z]*$/,If=/^[^a-z]*$/,ae=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),rn=e=>{const t=e.value;return!ld(t)&&t.length!==void 0},ut={number:"number",bigint:"bigint",object:"date"},Br=O("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=ut[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ut[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ur=O("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=ut[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ut[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Df=O("$ZodCheckMultipleOf",(e,t)=>{ae.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):md(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Jf=O("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Rr[t.format];e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<i&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>o&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Ef=O("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?Yt(i):o)<=t.maximum)return;const s=Vt(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Ff=O("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?Yt(i):o)>=t.minimum)return;const s=Vt(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),$f=O("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?Yt(i):o;if(s===t.length)return;const u=Vt(i),c=s>t.length;r.issues.push({origin:u,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ct=O("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Lf=O("$ZodCheckRegex",(e,t)=>{ct.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zf=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Mf),ct.init(e,t)}),Hf=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=If),ct.init(e,t)}),Bf=O("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=ot(t.includes);t.pattern=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Uf=O("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${ot(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Zf=O("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${ot(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Gf=O("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),qf=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
1
+ (function(a,Ge){typeof exports=="object"&&typeof module<"u"?Ge(exports):typeof define=="function"&&define.amd?define(["exports"],Ge):(a=typeof globalThis<"u"?globalThis:a||self,Ge(a["@revolugo/booking-api-client"]={}))})(this,function(a){Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});var Ge=Object.create,ir=Object.defineProperty,dc=Object.getOwnPropertyDescriptor,fc=Object.getOwnPropertyNames,lc=Object.getPrototypeOf,or=Object.prototype.hasOwnProperty,re=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),mc=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var i=fc(t),o=0,s=i.length,u;o<s;o++)u=i[o],!or.call(e,u)&&u!==n&&ir(e,u,{get:(c=>t[c]).bind(null,u),enumerable:!(r=dc(t,u))||r.enumerable});return e},oe=(e,t,n)=>(n=e!=null?Ge(lc(e)):{},mc(t||!e||!e.__esModule||!or.call(e,"default")?ir(n,"default",{value:e,enumerable:!0}):n,e)),ar=(function(e){return e.V1="v1",e})({}),Je=(function(e){return e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e})({}),pc={"CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001",LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com"},sr="https://revolugo.s3.eu-west-3.amazonaws.com",hc=`${sr}/images`,Lt=`${sr}/legal`,V_=`${hc}/MeetchLogo96x96.png`,W_=`${Lt}/2026_05_06_CGV_indiv_Revolugo_EN_FR.docx.pdf`,X_=`${Lt}/EN_privacy_policy_2024_revolugo.pdf`,Q_=`${Lt}/FR_privacy_policy_2024_revolugo.pdf`,ur=(function(e){return e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e})({}),yc=re(((e,t)=>{var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,r=(function(){function o(){this.fetch=!1,this.DOMException=n.DOMException}return o.prototype=n,new o})();(function(o){(function(s){var u=typeof o<"u"&&o||typeof self<"u"&&self||typeof global<"u"&&global||{},c={searchParams:"URLSearchParams"in u,iterable:"Symbol"in u&&"iterator"in Symbol,blob:"FileReader"in u&&"Blob"in u&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in u,arrayBuffer:"ArrayBuffer"in u};function d(f){return f&&DataView.prototype.isPrototypeOf(f)}if(c.arrayBuffer)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(f){return f&&p.indexOf(Object.prototype.toString.call(f))>-1};function h(f){if(typeof f!="string"&&(f=String(f)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(f)||f==="")throw new TypeError('Invalid character in header field name: "'+f+'"');return f.toLowerCase()}function _(f){return typeof f!="string"&&(f=String(f)),f}function A(f){var l={next:function(){var S=f.shift();return{done:S===void 0,value:S}}};return c.iterable&&(l[Symbol.iterator]=function(){return l}),l}function y(f){this.map={},f instanceof y?f.forEach(function(l,S){this.append(S,l)},this):Array.isArray(f)?f.forEach(function(l){if(l.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+l.length);this.append(l[0],l[1])},this):f&&Object.getOwnPropertyNames(f).forEach(function(l){this.append(l,f[l])},this)}y.prototype.append=function(f,l){f=h(f),l=_(l);var S=this.map[f];this.map[f]=S?S+", "+l:l},y.prototype.delete=function(f){delete this.map[h(f)]},y.prototype.get=function(f){return f=h(f),this.has(f)?this.map[f]:null},y.prototype.has=function(f){return this.map.hasOwnProperty(h(f))},y.prototype.set=function(f,l){this.map[h(f)]=_(l)},y.prototype.forEach=function(f,l){for(var S in this.map)this.map.hasOwnProperty(S)&&f.call(l,this.map[S],S,this)},y.prototype.keys=function(){var f=[];return this.forEach(function(l,S){f.push(S)}),A(f)},y.prototype.values=function(){var f=[];return this.forEach(function(l){f.push(l)}),A(f)},y.prototype.entries=function(){var f=[];return this.forEach(function(l,S){f.push([S,l])}),A(f)},c.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(f){if(!f._noBody){if(f.bodyUsed)return Promise.reject(new TypeError("Already read"));f.bodyUsed=!0}}function v(f){return new Promise(function(l,S){f.onload=function(){l(f.result)},f.onerror=function(){S(f.error)}})}function R(f){var l=new FileReader,S=v(l);return l.readAsArrayBuffer(f),S}function N(f){var l=new FileReader,S=v(l),T=/charset=([A-Za-z0-9_-]+)/.exec(f.type),k=T?T[1]:"utf-8";return l.readAsText(f,k),S}function E(f){for(var l=new Uint8Array(f),S=new Array(l.length),T=0;T<l.length;T++)S[T]=String.fromCharCode(l[T]);return S.join("")}function P(f){if(f.slice)return f.slice(0);var l=new Uint8Array(f.byteLength);return l.set(new Uint8Array(f)),l.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(f){this.bodyUsed=this.bodyUsed,this._bodyInit=f,f?typeof f=="string"?this._bodyText=f:c.blob&&Blob.prototype.isPrototypeOf(f)?this._bodyBlob=f:c.formData&&FormData.prototype.isPrototypeOf(f)?this._bodyFormData=f:c.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)?this._bodyText=f.toString():c.arrayBuffer&&c.blob&&d(f)?(this._bodyArrayBuffer=P(f.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):c.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(f)||m(f))?this._bodyArrayBuffer=P(f):this._bodyText=f=Object.prototype.toString.call(f):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof f=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c.searchParams&&URLSearchParams.prototype.isPrototypeOf(f)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},c.blob&&(this.blob=function(){var f=g(this);if(f)return f;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var f=g(this);return f||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(c.blob)return this.blob().then(R);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var f=g(this);if(f)return f;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(E(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},c.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function U(f){var l=f.toUpperCase();return $.indexOf(l)>-1?l:f}function H(f,l){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');l=l||{};var S=l.body;if(f instanceof H){if(f.bodyUsed)throw new TypeError("Already read");this.url=f.url,this.credentials=f.credentials,l.headers||(this.headers=new y(f.headers)),this.method=f.method,this.mode=f.mode,this.signal=f.signal,!S&&f._bodyInit!=null&&(S=f._bodyInit,f.bodyUsed=!0)}else this.url=String(f);if(this.credentials=l.credentials||this.credentials||"same-origin",(l.headers||!this.headers)&&(this.headers=new y(l.headers)),this.method=U(l.method||this.method||"GET"),this.mode=l.mode||this.mode||null,this.signal=l.signal||this.signal||(function(){if("AbortController"in u)return new AbortController().signal})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&S)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(S),(this.method==="GET"||this.method==="HEAD")&&(l.cache==="no-store"||l.cache==="no-cache")){var T=/([?&])_=[^&]*/;if(T.test(this.url))this.url=this.url.replace(T,"$1_="+new Date().getTime());else{var k=/\?/;this.url+=(k.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function B(f){var l=new FormData;return f.trim().split("&").forEach(function(S){if(S){var T=S.split("="),k=T.shift().replace(/\+/g," "),w=T.join("=").replace(/\+/g," ");l.append(decodeURIComponent(k),decodeURIComponent(w))}}),l}function I(f){var l=new y;return f.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(S){return S.indexOf(`
2
+ `)===0?S.substr(1,S.length):S}).forEach(function(S){var T=S.split(":"),k=T.shift().trim();if(k){var w=T.join(":").trim();try{l.append(k,w)}catch(J){console.warn("Response "+J.message)}}}),l}b.call(H.prototype);function L(f,l){if(!(this instanceof L))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(l||(l={}),this.type="default",this.status=l.status===void 0?200:l.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=l.statusText===void 0?"":""+l.statusText,this.headers=new y(l.headers),this.url=l.url||"",this._initBody(f)}b.call(L.prototype),L.prototype.clone=function(){return new L(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},L.error=function(){var f=new L(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var X=[301,302,303,307,308];L.redirect=function(f,l){if(X.indexOf(l)===-1)throw new RangeError("Invalid status code");return new L(null,{status:l,headers:{location:f}})},s.DOMException=u.DOMException;try{new s.DOMException}catch{s.DOMException=function(l,S){this.message=l,this.name=S;var T=Error(l);this.stack=T.stack},s.DOMException.prototype=Object.create(Error.prototype),s.DOMException.prototype.constructor=s.DOMException}function C(f,l){return new Promise(function(S,T){var k=new H(f,l);if(k.signal&&k.signal.aborted)return T(new s.DOMException("Aborted","AbortError"));var w=new XMLHttpRequest;function J(){w.abort()}w.onload=function(){var z={statusText:w.statusText,headers:I(w.getAllResponseHeaders()||"")};k.url.indexOf("file://")===0&&(w.status<200||w.status>599)?z.status=200:z.status=w.status,z.url="responseURL"in w?w.responseURL:z.headers.get("X-Request-URL");var Q="response"in w?w.response:w.responseText;setTimeout(function(){S(new L(Q,z))},0)},w.onerror=function(){setTimeout(function(){T(new TypeError("Network request failed"))},0)},w.ontimeout=function(){setTimeout(function(){T(new TypeError("Network request timed out"))},0)},w.onabort=function(){setTimeout(function(){T(new s.DOMException("Aborted","AbortError"))},0)};function K(z){try{return z===""&&u.location.href?u.location.href:z}catch{return z}}if(w.open(k.method,K(k.url),!0),k.credentials==="include"?w.withCredentials=!0:k.credentials==="omit"&&(w.withCredentials=!1),"responseType"in w&&(c.blob?w.responseType="blob":c.arrayBuffer&&(w.responseType="arraybuffer")),l&&typeof l.headers=="object"&&!(l.headers instanceof y||u.Headers&&l.headers instanceof u.Headers)){var Y=[];Object.getOwnPropertyNames(l.headers).forEach(function(z){Y.push(h(z)),w.setRequestHeader(z,_(l.headers[z]))}),k.headers.forEach(function(z,Q){Y.indexOf(Q)===-1&&w.setRequestHeader(Q,z)})}else k.headers.forEach(function(z,Q){w.setRequestHeader(Q,z)});k.signal&&(k.signal.addEventListener("abort",J),w.onreadystatechange=function(){w.readyState===4&&k.signal.removeEventListener("abort",J)}),w.send(typeof k._bodyInit>"u"?null:k._bodyInit)})}return C.polyfill=!0,u.fetch||(u.fetch=C,u.Headers=y,u.Request=H,u.Response=L),s.Headers=y,s.Request=H,s.Response=L,s.fetch=C,s})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=n.fetch?n:r;e=i.fetch,e.default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,t.exports=e})),gc=oe(yc(),1),_c=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Oc=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ac=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Sc=/[^\p{L}\d]+/giu,cr="$1\0$2",dr="";function fr(e){let t=e.trim();t=t.replace(_c,cr).replace(Oc,cr),t=t.replace(Sc,"\0");let n=0,r=t.length;for(;t.charAt(n)==="\0";)n++;if(n===r)return[];for(;t.charAt(r-1)==="\0";)r--;return t.slice(n,r).split(/\0/g)}function Tc(e){const t=fr(e);for(let n=0;n<t.length;n++){const r=t[n],i=Ac.exec(r);if(i){const o=i.index+(i[1]??i[2]).length;t.splice(n,1,r.slice(0,o),r.slice(o))}}return t}function lr(e,t){const[n,r,i]=tt(e,t);return n+r.map(et(t?.locale)).join(t?.delimiter??" ")+i}function vc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale),u=t?.mergeAmbiguousCharacters?Ht(o,s):pr(o,s);return n+r.map((c,d)=>d===0?o(c):u(c,d)).join(t?.delimiter??"")+i}function wc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale),u=t?.mergeAmbiguousCharacters?Ht(o,s):pr(o,s);return n+r.map(u).join(t?.delimiter??"")+i}function kc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=zt(t?.locale);return n+r.map(Ht(o,s)).join(t?.delimiter??" ")+i}function mr(e,t){return lr(e,{delimiter:"-",...t})}function Rc(e,t){return lr(e,{delimiter:"_",...t})}function et(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function zt(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Ht(e,t){return n=>`${t(n[0])}${e(n.slice(1))}`}function pr(e,t){return(n,r)=>{const i=n[0];return(r>0&&i>="0"&&i<="9"?"_"+i:t(i))+e(n.slice(1))}}function tt(e,t={}){const n=t.split??(t.separateNumbers?Tc:fr),r=t.prefixCharacters??dr,i=t.suffixCharacters??dr;let o=0,s=e.length;for(;o<e.length;){const u=e.charAt(o);if(!r.includes(u))break;o++}for(;s>o;){const u=s-1,c=e.charAt(u);if(!i.includes(c))break;s=u}return[e.slice(0,o),n(e.slice(o,s)),e.slice(s)]}var Nc=re(((e,t)=>{(function(n,r,i){typeof e=="object"?(t.exports=i(),t.exports.default=i()):typeof define=="function"&&define.amd?define(i):r[n]=i()})("slugify",e,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var u=r[s.locale]||{},c=s.replacement===void 0?"-":s.replacement,d=s.trim===void 0?!0:s.trim,p=o.normalize().split("").reduce(function(m,h){var _=u[h];return _===void 0&&(_=n[h]),_===void 0&&(_=h),_===c&&(_=" "),m+_.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(p=p.replace(/[^A-Za-z0-9\s]/g,"")),d&&(p=p.trim()),p=p.replace(/\s+/g,c),s.lower&&(p=p.toLowerCase()),p}return i.extend=function(o){Object.assign(n,o)},i})})),Pc=oe(Nc(),1);function bc(e){return(0,Pc.default)(mr(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},hr={[D.Camel]:vc,[D.Capital]:kc,[D.Param]:mr,[D.Pascal]:wc,[D.Slug]:bc,[D.Snake]:Rc};function Cc(e,t){return Array.isArray(e)?e.map(n=>hr[t](n)):hr[t](e)}function Mc(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function Ic(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Bt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Bt(i,t,n)):Mc(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,o)=>{const s=n.exclude&&Ic(n.exclude,o)?o:Cc(o,t);return i[s]=r?Bt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function F(e,t,n={}){return Bt(e,t,{deep:n.deep??!0,exclude:n.exclude})}var yr=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs=r()})(e,(function(){"use strict";var n=1e3,r=6e4,i=36e5,o="millisecond",s="second",u="minute",c="hour",d="day",p="week",m="month",h="quarter",_="year",A="date",y="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,R={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var f=["th","st","nd","rd"],l=C%100;return"["+C+(f[(l-20)%10]||f[l]||f[0])+"]"}},N=function(C,f,l){var S=String(C);return!S||S.length>=f?C:""+Array(f+1-S.length).join(l)+C},E={s:N,z:function(C){var f=-C.utcOffset(),l=Math.abs(f),S=Math.floor(l/60),T=l%60;return(f<=0?"+":"-")+N(S,2,"0")+":"+N(T,2,"0")},m:function C(f,l){if(f.date()<l.date())return-C(l,f);var S=12*(l.year()-f.year())+(l.month()-f.month()),T=f.clone().add(S,m),k=l-T<0,w=f.clone().add(S+(k?-1:1),m);return+(-(S+(l-T)/(k?T-w:w-T))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:m,y:_,w:p,d,D:A,h:c,m:u,s,ms:o,Q:h}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},P="en",b={};b[P]=R;var $="$isDayjsObject",U=function(C){return C instanceof L||!(!C||!C[$])},H=function C(f,l,S){var T;if(!f)return P;if(typeof f=="string"){var k=f.toLowerCase();b[k]&&(T=k),l&&(b[k]=l,T=k);var w=f.split("-");if(!T&&w.length>1)return C(w[0])}else{var J=f.name;b[J]=f,T=J}return!S&&T&&(P=T),T||!S&&P},B=function(C,f){if(U(C))return C.clone();var l=typeof f=="object"?f:{};return l.date=C,l.args=arguments,new L(l)},I=E;I.l=H,I.i=U,I.w=function(C,f){return B(C,{locale:f.$L,utc:f.$u,x:f.$x,$offset:f.$offset})};var L=(function(){function C(l){this.$L=H(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[$]=!0}var f=C.prototype;return f.parse=function(l){this.$d=(function(S){var T=S.date,k=S.utc;if(T===null)return new Date(NaN);if(I.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var w=T.match(g);if(w){var J=w[2]-1||0,K=(w[7]||"0").substring(0,3);return k?new Date(Date.UTC(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)):new Date(w[1],J,w[3]||1,w[4]||0,w[5]||0,w[6]||0,K)}}return new Date(T)})(l),this.init()},f.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},f.$utils=function(){return I},f.isValid=function(){return this.$d.toString()!==y},f.isSame=function(l,S){var T=B(l);return this.startOf(S)<=T&&T<=this.endOf(S)},f.isAfter=function(l,S){return B(l)<this.startOf(S)},f.isBefore=function(l,S){return this.endOf(S)<B(l)},f.$g=function(l,S,T){return I.u(l)?this[S]:this.set(T,l)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(l,S){var T=this,k=!!I.u(S)||S,w=I.p(l),J=function(ye,ne){var de=I.w(T.$u?Date.UTC(T.$y,ne,ye):new Date(T.$y,ne,ye),T);return k?de:de.endOf(d)},K=function(ye,ne){return I.w(T.toDate()[ye].apply(T.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(ne)),T)},Y=this.$W,z=this.$M,Q=this.$D,Re="set"+(this.$u?"UTC":"");switch(w){case _:return k?J(1,0):J(31,11);case m:return k?J(1,z):J(0,z+1);case p:var Oe=this.$locale().weekStart||0,De=(Y<Oe?Y+7:Y)-Oe;return J(k?Q-De:Q+(6-De),z);case d:case A:return K(Re+"Hours",0);case c:return K(Re+"Minutes",1);case u:return K(Re+"Seconds",2);case s:return K(Re+"Milliseconds",3);default:return this.clone()}},f.endOf=function(l){return this.startOf(l,!1)},f.$set=function(l,S){var T,k=I.p(l),w="set"+(this.$u?"UTC":""),J=(T={},T[d]=w+"Date",T[A]=w+"Date",T[m]=w+"Month",T[_]=w+"FullYear",T[c]=w+"Hours",T[u]=w+"Minutes",T[s]=w+"Seconds",T[o]=w+"Milliseconds",T)[k],K=k===d?this.$D+(S-this.$W):S;if(k===m||k===_){var Y=this.clone().set(A,1);Y.$d[J](K),Y.init(),this.$d=Y.set(A,Math.min(this.$D,Y.daysInMonth())).$d}else J&&this.$d[J](K);return this.init(),this},f.set=function(l,S){return this.clone().$set(l,S)},f.get=function(l){return this[I.p(l)]()},f.add=function(l,S){var T,k=this;l=Number(l);var w=I.p(S),J=function(z){var Q=B(k);return I.w(Q.date(Q.date()+Math.round(z*l)),k)};if(w===m)return this.set(m,this.$M+l);if(w===_)return this.set(_,this.$y+l);if(w===d)return J(1);if(w===p)return J(7);var K=(T={},T[u]=r,T[c]=i,T[s]=n,T)[w]||1,Y=this.$d.getTime()+l*K;return I.w(Y,this)},f.subtract=function(l,S){return this.add(-1*l,S)},f.format=function(l){var S=this,T=this.$locale();if(!this.isValid())return T.invalidDate||y;var k=l||"YYYY-MM-DDTHH:mm:ssZ",w=I.z(this),J=this.$H,K=this.$m,Y=this.$M,z=T.weekdays,Q=T.months,Re=T.meridiem,Oe=function(ne,de,Ae,Ne){return ne&&(ne[de]||ne(S,k))||Ae[de].slice(0,Ne)},De=function(ne){return I.s(J%12||12,ne,"0")},ye=Re||function(ne,de,Ae){var Ne=ne<12?"AM":"PM";return Ae?Ne.toLowerCase():Ne};return k.replace(v,(function(ne,de){return de||(function(Ae){switch(Ae){case"YY":return String(S.$y).slice(-2);case"YYYY":return I.s(S.$y,4,"0");case"M":return Y+1;case"MM":return I.s(Y+1,2,"0");case"MMM":return Oe(T.monthsShort,Y,Q,3);case"MMMM":return Oe(Q,Y);case"D":return S.$D;case"DD":return I.s(S.$D,2,"0");case"d":return String(S.$W);case"dd":return Oe(T.weekdaysMin,S.$W,z,2);case"ddd":return Oe(T.weekdaysShort,S.$W,z,3);case"dddd":return z[S.$W];case"H":return String(J);case"HH":return I.s(J,2,"0");case"h":return De(1);case"hh":return De(2);case"a":return ye(J,K,!0);case"A":return ye(J,K,!1);case"m":return String(K);case"mm":return I.s(K,2,"0");case"s":return String(S.$s);case"ss":return I.s(S.$s,2,"0");case"SSS":return I.s(S.$ms,3,"0");case"Z":return w}return null})(ne)||w.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(l,S,T){var k,w=this,J=I.p(S),K=B(l),Y=(K.utcOffset()-this.utcOffset())*r,z=this-K,Q=function(){return I.m(w,K)};switch(J){case _:k=Q()/12;break;case m:k=Q();break;case h:k=Q()/3;break;case p:k=(z-Y)/6048e5;break;case d:k=(z-Y)/864e5;break;case c:k=z/i;break;case u:k=z/r;break;case s:k=z/n;break;default:k=z}return T?k:I.a(k)},f.daysInMonth=function(){return this.endOf(m).$D},f.$locale=function(){return b[this.$L]},f.locale=function(l,S){if(!l)return this.$L;var T=this.clone(),k=H(l,S,!0);return k&&(T.$L=k),T},f.clone=function(){return I.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},C})(),X=L.prototype;return B.prototype=X,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",d],["$M",m],["$y",_],["$D",A]].forEach((function(C){X[C[1]]=function(f){return this.$g(f,C[0],C[1])}})),B.extend=function(C,f){return C.$i||(C(f,L,B),C.$i=!0),B},B.locale=H,B.isDayjs=U,B.unix=function(C){return B(1e3*C)},B.en=b[P],B.Ls=b,B.p={},B}))})),Dc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){"use strict";return function(n,r){var i=r.prototype,o=i.format;i.format=function(s){var u=this,c=this.$locale();if(!this.isValid())return o.bind(this)(s);var d=this.$utils(),p=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(m){switch(m){case"Q":return Math.ceil((u.$M+1)/3);case"Do":return c.ordinal(u.$D);case"gggg":return u.weekYear();case"GGGG":return u.isoWeekYear();case"wo":return c.ordinal(u.week(),"W");case"w":case"ww":return d.s(u.week(),m==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),m==="k"?1:2,"0");case"X":return Math.floor(u.$d.getTime()/1e3);case"x":return u.$d.getTime();case"z":return"["+u.offsetName()+"]";case"zzz":return"["+u.offsetName("long")+"]";default:return m}}));return o.bind(this)(p)}}}))})),Jc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,s=/\d\d?/,u=/\d*[^-_:/,()\s\d]+/,c={},d=function(g){return(g=+g)+(g>68?1900:2e3)},p=function(g){return function(v){this[g]=+v}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(v){if(!v||v==="Z")return 0;var R=v.match(/([+-]|\d\d)/g),N=60*R[1]+(+R[2]||0);return N===0?0:R[0]==="+"?-N:N})(g)}],h=function(g){var v=c[g];return v&&(v.indexOf?v:v.s.concat(v.f))},_=function(g,v){var R,N=c.meridiem;if(N){for(var E=1;E<=24;E+=1)if(g.indexOf(N(E,0,v))>-1){R=E>12;break}}else R=g===(v?"pm":"PM");return R},A={A:[u,function(g){this.afternoon=_(g,!1)}],a:[u,function(g){this.afternoon=_(g,!0)}],Q:[i,function(g){this.month=3*(g-1)+1}],S:[i,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,p("seconds")],ss:[s,p("seconds")],m:[s,p("minutes")],mm:[s,p("minutes")],H:[s,p("hours")],h:[s,p("hours")],HH:[s,p("hours")],hh:[s,p("hours")],D:[s,p("day")],DD:[o,p("day")],Do:[u,function(g){var v=c.ordinal,R=g.match(/\d+/);if(this.day=R[0],v)for(var N=1;N<=31;N+=1)v(N).replace(/\[|\]/g,"")===g&&(this.day=N)}],w:[s,p("week")],ww:[o,p("week")],M:[s,p("month")],MM:[o,p("month")],MMM:[u,function(g){var v=h("months"),R=(h("monthsShort")||v.map((function(N){return N.slice(0,3)}))).indexOf(g)+1;if(R<1)throw new Error;this.month=R%12||R}],MMMM:[u,function(g){var v=h("months").indexOf(g)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,p("year")],YY:[o,function(g){this.year=d(g)}],YYYY:[/\d{4}/,p("year")],Z:m,ZZ:m};function y(g){for(var v=g,R=c&&c.formats,N=(g=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(B,I,L){var X=L&&L.toUpperCase();return I||R[L]||n[L]||R[X].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,f,l){return f||l.slice(1)}))}))).match(r),E=N.length,P=0;P<E;P+=1){var b=N[P],$=A[b],U=$&&$[0],H=$&&$[1];N[P]=H?{regex:U,parser:H}:b.replace(/^\[|\]$/g,"")}return function(B){for(var I={},L=0,X=0;L<E;L+=1){var C=N[L];if(typeof C=="string")X+=C.length;else{var f=C.regex,l=C.parser,S=B.slice(X),T=f.exec(S)[0];l.call(I,T),B=B.replace(T,"")}}return(function(k){var w=k.afternoon;if(w!==void 0){var J=k.hours;w?J<12&&(k.hours+=12):J===12&&(k.hours=0),delete k.afternoon}})(I),I}}return function(g,v,R){R.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(d=g.parseTwoDigitYear);var N=v.prototype,E=N.parse;N.parse=function(P){var b=P.date,$=P.utc,U=P.args;this.$u=$;var H=U[1];if(typeof H=="string"){var B=U[2]===!0,I=U[3]===!0,L=B||I,X=U[2];I&&(X=U[2]),c=this.$locale(),!B&&X&&(c=R.Ls[X]),this.$d=(function(S,T,k,w){try{if(["x","X"].indexOf(T)>-1)return new Date((T==="X"?1e3:1)*S);var J=y(T)(S),K=J.year,Y=J.month,z=J.day,Q=J.hours,Re=J.minutes,Oe=J.seconds,De=J.milliseconds,ye=J.zone,ne=J.week,de=new Date,Ae=z||(K||Y?1:de.getDate()),Ne=K||de.getFullYear(),Ft=0;K&&!Y||(Ft=Y>0?Y-1:de.getMonth());var $t,er=Q||0,tr=Re||0,nr=Oe||0,rr=De||0;return ye?new Date(Date.UTC(Ne,Ft,Ae,er,tr,nr,rr+60*ye.offset*1e3)):k?new Date(Date.UTC(Ne,Ft,Ae,er,tr,nr,rr)):($t=new Date(Ne,Ft,Ae,er,tr,nr,rr),ne&&($t=w($t).week(ne).toDate()),$t)}catch{return new Date("")}})(b,H,$,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),L&&b!=this.format(H)&&(this.$d=new Date("")),c={}}else if(H instanceof Array)for(var C=H.length,f=1;f<=C;f+=1){U[1]=H[f-1];var l=R.apply(this,U);if(l.isValid()){this.$d=l.$d,this.$L=l.$L,this.init();break}f===C&&(this.$d=new Date(""))}else E.call(this,P)}}}))})),Ec=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(o,s,u,c){var d=i(o),p=i(s),m=(c=c||"()")[0]==="(",h=c[1]===")";return(m?this.isAfter(d,u):!this.isBefore(d,u))&&(h?this.isBefore(p,u):!this.isAfter(p,u))||(m?this.isBefore(d,u):!this.isAfter(d,u))&&(h?this.isAfter(p,u):!this.isBefore(p,u))}}}))})),Fc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrAfter=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrAfter=function(i,o){return this.isSame(i,o)||this.isAfter(i,o)}}}))})),$c=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_isSameOrBefore=r()})(e,(function(){"use strict";return function(n,r){r.prototype.isSameOrBefore=function(i,o){return this.isSame(i,o)||this.isBefore(i,o)}}}))})),Lc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var o=r.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},u=function(m,h,_,A,y){var g=m.name?m:m.$locale(),v=s(g[h]),R=s(g[_]),N=v||R.map((function(P){return P.slice(0,A)}));if(!y)return N;var E=g.weekStart;return N.map((function(P,b){return N[(b+(E||0))%7]}))},c=function(){return i.Ls[i.locale()]},d=function(m,h){return m.formats[h]||(function(_){return _.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,y,g){return y||g.slice(1)}))})(m.formats[h.toUpperCase()])},p=function(){var m=this;return{months:function(h){return h?h.format("MMMM"):u(m,"months")},monthsShort:function(h){return h?h.format("MMM"):u(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):u(m,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):u(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):u(m,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(m.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return p.bind(this)()},i.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(h){return d(m,h)},meridiem:m.meridiem,ordinal:m.ordinal}},i.months=function(){return u(c(),"months")},i.monthsShort=function(){return u(c(),"monthsShort","months",3)},i.weekdays=function(m){return u(c(),"weekdays",null,null,m)},i.weekdaysShort=function(m){return u(c(),"weekdaysShort","weekdays",3,m)},i.weekdaysMin=function(m){return u(c(),"weekdaysMin","weekdays",2,m)}}}))})),zc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){"use strict";var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(r,i,o){var s=i.prototype,u=s.format;o.en.formats=n,s.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var d=this.$locale().formats,p=(function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,A,y){var g=y&&y.toUpperCase();return A||h[y]||n[y]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(v,R,N){return R||N.slice(1)}))}))})(c,d===void 0?{}:d);return u.call(this,p)}}}))})),Hc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_minMax=r()})(e,(function(){"use strict";return function(n,r,i){var o=function(s,u){if(!u||!u.length||u.length===1&&!u[0]||u.length===1&&Array.isArray(u[0])&&!u[0].length)return null;var c;u.length===1&&u[0].length>0&&(u=u[0]),c=(u=u.filter((function(p){return p})))[0];for(var d=1;d<u.length;d+=1)u[d].isValid()&&!u[d][s](c)||(c=u[d]);return c};i.max=function(){return o("isAfter",[].slice.call(arguments,0))},i.min=function(){return o("isBefore",[].slice.call(arguments,0))}}}))})),Bc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_relativeTime=r()})(e,(function(){"use strict";return function(n,r,i){n=n||{};var o=r.prototype,s={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function u(d,p,m,h){return o.fromToBase(d,p,m,h)}i.en.relativeTime=s,o.fromToBase=function(d,p,m,h,_){for(var A,y,g,v=m.$locale().relativeTime||s,R=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],N=R.length,E=0;E<N;E+=1){var P=R[E];P.d&&(A=h?i(d).diff(m,P.d,!0):m.diff(d,P.d,!0));var b=(n.rounding||Math.round)(Math.abs(A));if(g=A>0,b<=P.r||!P.r){b<=1&&E>0&&(P=R[E-1]);var $=v[P.l];_&&(b=_(""+b)),y=typeof $=="string"?$.replace("%d",b):$(b,p,P.l,g);break}}if(p)return y;var U=g?v.future:v.past;return typeof U=="function"?U(y):U.replace("%s",y)},o.to=function(d,p){return u(d,p,this,!0)},o.from=function(d,p){return u(d,p,this)};var c=function(d){return d.$u?i.utc():i()};o.toNow=function(d){return this.to(c(this),d)},o.fromNow=function(d){return this.from(c(this),d)}}}))})),Uc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_timezone=r()})(e,(function(){"use strict";var n={year:0,month:1,day:2,hour:3,minute:4,second:5},r={};return function(i,o,s){var u,c=function(h,_,A){A===void 0&&(A={});var y=new Date(h);return(function(g,v){v===void 0&&(v={});var R=v.timeZoneName||"short",N=g+"|"+R,E=r[N];return E||(E=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:g,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:R}),r[N]=E),E})(_,A).formatToParts(y)},d=function(h,_){for(var A=c(h,_),y=[],g=0;g<A.length;g+=1){var v=A[g],R=v.type,N=v.value,E=n[R];E>=0&&(y[E]=parseInt(N,10))}var P=y[3],b=P===24?0:P,$=y[0]+"-"+y[1]+"-"+y[2]+" "+b+":"+y[4]+":"+y[5]+":000",U=+h;return(s.utc($).valueOf()-(U-=U%1e3))/6e4},p=o.prototype;p.tz=function(h,_){if(h===void 0&&(h=u),!this.isValid())return this;var A,y=this.utcOffset(),g=this.toDate(),v=g.toLocaleString("en-US",{timeZone:h}),R=d(+g,h);if(!Number(R))A=this.utcOffset(0,_);else if(A=s(v,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(R,!0),_){var N=A.utcOffset();A=A.add(y-N,"minute")}return A.$x.$timezone=h,A},p.offsetName=function(h){var _=this.$x.$timezone||s.tz.guess(),A=c(this.valueOf(),_,{timeZoneName:h}).find((function(y){return y.type.toLowerCase()==="timezonename"}));return A&&A.value};var m=p.startOf;p.startOf=function(h,_){if(!this.$x||!this.$x.$timezone)return m.call(this,h,_);var A=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(A,h,_).tz(this.$x.$timezone,!0)},s.tz=function(h,_,A){var y=A&&_,g=A||_||u,v=d(+s(),g);if(typeof h!="string")return s(h).tz(g);var R=s.utc(h,y).valueOf();if(Number.isNaN(R)){var N=s(NaN);return N.$x.$timezone=g,N}var E=(function(U,H,B){var I=U-60*H*1e3,L=d(I,B);if(H===L)return[I,H];var X=d(I-=60*(L-H)*1e3,B);return L===X?[I,L]:[U-60*Math.min(L,X)*1e3,Math.max(L,X)]})(R,v,g),P=E[0],b=E[1],$=s(P).utcOffset(b);return $.$x.$timezone=g,$},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(h){u=h}}}))})),Zc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){"use strict";var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(o,s,u){var c=s.prototype;u.utc=function(y){return new s({date:y,utc:!0,args:arguments})},c.utc=function(y){var g=u(this.toDate(),{locale:this.$L,utc:!0});return y?g.add(this.utcOffset(),n):g},c.local=function(){return u(this.toDate(),{locale:this.$L,utc:!1})};var d=c.parse;c.parse=function(y){y.utc&&(this.$u=!0),this.$utils().u(y.$offset)||(this.$offset=y.$offset),d.call(this,y)};var p=c.init;c.init=function(){if(this.$u){var y=this.$d;this.$y=y.getUTCFullYear(),this.$M=y.getUTCMonth(),this.$D=y.getUTCDate(),this.$W=y.getUTCDay(),this.$H=y.getUTCHours(),this.$m=y.getUTCMinutes(),this.$s=y.getUTCSeconds(),this.$ms=y.getUTCMilliseconds()}else p.call(this)};var m=c.utcOffset;c.utcOffset=function(y,g){var v=this.$utils().u;if(v(y))return this.$u?0:v(this.$offset)?m.call(this):this.$offset;if(typeof y=="string"&&(y=(function(P){P===void 0&&(P="");var b=P.match(r);if(!b)return null;var $=(""+b[0]).match(i)||["-",0,0],U=$[0],H=60*+$[1]+ +$[2];return H===0?0:U==="+"?H:-H})(y),y===null))return this;var R=Math.abs(y)<=16?60*y:y;if(R===0)return this.utc(g);var N=this.clone();if(g)return N.$offset=R,N.$u=!1,N;var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(N=this.local().add(R+E,n)).$offset=R,N.$x.$localOffset=E,N};var h=c.format;c.format=function(y){var g=y||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},c.valueOf=function(){var y=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*y},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var _=c.toDate;c.toDate=function(y){return y==="s"&&this.$offset?u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():_.call(this)};var A=c.diff;c.diff=function(y,g,v){if(y&&this.$u===y.$u)return A.call(this,y,g,v);var R=this.local(),N=u(y).local();return A.call(R,N,g,v)}}}))})),Gc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r(yr()):typeof define=="function"&&define.amd?define(["dayjs"],r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_fr=r(n.dayjs)})(e,(function(n){"use strict";function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var i=r(n),o={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(s){return""+s+(s===1?"er":"")}};return i.default.locale(o,null,!0),o}))})),qc=re(((e,t)=>{(function(n,r){typeof e=="object"&&typeof t<"u"?t.exports=r():typeof define=="function"&&define.amd?define(r):(n=typeof globalThis<"u"?globalThis:n||self).dayjs_locale_en=r()})(e,(function(){"use strict";return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var r=["th","st","nd","rd"],i=n%100;return"["+n+(r[(i-20)%10]||r[i]||r[0])+"]"}}}))})),fe=oe(yr(),1),Kc=oe(Dc(),1),Yc=oe(Jc(),1),Vc=oe(Ec(),1),Wc=oe(Fc(),1),Xc=oe($c(),1),Qc=oe(Lc(),1),xc=oe(zc(),1),jc=oe(Hc(),1),ed=oe(Bc(),1),td=oe(Uc(),1),nd=oe(Zc(),1),x_=Gc(),j_=qc();fe.default.extend(Kc.default),fe.default.extend(Yc.default),fe.default.extend(Vc.default),fe.default.extend(Wc.default),fe.default.extend(Xc.default),fe.default.extend(xc.default),fe.default.extend(Qc.default),fe.default.extend(jc.default),fe.default.extend(ed.default),fe.default.extend(td.default),fe.default.extend(nd.default);function Se(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function nt(e,t=new WeakSet){if(e==null||typeof e!="object"||t.has(e))return e;if(t.add(e),Array.isArray(e))return e.map(n=>nt(n,t));if(Se(e)){const n={};for(const r in e)Object.hasOwn(e,r)&&(n[r]=nt(e[r],t));return n}return e}function Ut(e,t,n=new WeakSet){if(!(!Se(t)||!Se(e))&&!(t===e||n.has(t))){n.add(t);for(const r in t)if(Object.hasOwn(t,r)){const i=t[r],o=e[r];Se(i)&&Se(o)?Ut(o,i,n):Array.isArray(i)&&Array.isArray(o)?e[r]=gr(o,i,n):e[r]=nt(i,n)}}}function gr(e,t,n){const r=e.slice();for(let i=0;i<t.length;i++){const o=t[i],s=r[i];if(Se(o)&&Se(s)){const u={...s};Ut(u,o,n),r[i]=u}else Array.isArray(o)&&Array.isArray(s)?r[i]=gr(s,o,n):r[i]=nt(o,n)}return r}function _r(e,...t){if(!Se(e))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const r of t)r!=null&&Ut(e,r,n);return e}function rd(e){const t={};for(const n of Object.keys(e)){const r=e[n];r!==void 0&&(t[n]=r)}return t}var ee=[];for(let e=0;e<256;++e)ee.push((e+256).toString(16).slice(1));function id(e,t=0){return(ee[e[t+0]]+ee[e[t+1]]+ee[e[t+2]]+ee[e[t+3]]+"-"+ee[e[t+4]]+ee[e[t+5]]+"-"+ee[e[t+6]]+ee[e[t+7]]+"-"+ee[e[t+8]]+ee[e[t+9]]+"-"+ee[e[t+10]]+ee[e[t+11]]+ee[e[t+12]]+ee[e[t+13]]+ee[e[t+14]]+ee[e[t+15]]).toLowerCase()}var od=new Uint8Array(16);function ad(){return crypto.getRandomValues(od)}function sd(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():ud(e,t,n)}function ud(e,t,n){e=e||{};const r=e.random??e.rng?.()??ad();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let i=0;i<16;++i)t[n+i]=r[i];return t}return id(r)}var cd=1500,Pe={},dd=class{defaultOptions={callCount:1,interval:cd,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};on(e,t){this.events[e]=t}poll(e,t){const n=this.buildPollerOptions(t);return this.storeCurrentPolling(n),this.isActivePoller(n)&&e().then(r=>this.onRequest(r,e,n)).catch(r=>{const i=r instanceof Error?r:new Error(String(r));this.dispatch("error",i)}),this}stop(e){e&&Pe[e]&&delete Pe[e]}buildPollerOptions(e){return{...this.defaultOptions,...rd(e)}}dispatch(e,t){this.events[e](t)}isActivePoller(e){return e.type?!!Pe[e.type]&&Pe[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,t){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(t)}async onRequest(e,t,n){const r=F(e,D.Camel);this.isActivePoller(n)&&(this.isInProgress(r)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(r)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(r)||(r.meta={...r.meta,status:"IN_PROGRESS"}),n.callCount+=1,this.dispatch("data",r),n.interval&&await this.pause(n),this.poll(t,n)):this.isInProgress(r)?(r.meta={...r.meta,status:"COMPLETE"},this.onComplete(r,n)):this.onComplete(r,n))}pause(e){return new Promise(t=>{setTimeout(t,e.interval)})}removeCurrentPolling(e){e.type&&Pe[e.type]&&delete Pe[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=sd(),Pe[e.type]=e.uuid)}};function fd(){return new dd}function rt(e,t,n){const r=fd();return r.poll(e,t),n&&typeof n=="function"?(r.on("data",i=>{i instanceof Error?n(i,void 0,r):n(null,i,r)}),r.on("error",i=>{i instanceof Error?n(i):n(null,i)}),r):new Promise((i,o)=>{r.on("error",o),r.on("complete",s=>{s instanceof Error?o(s):i(s)})})}function Zt(e){const t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,r])=>t.indexOf(+n)===-1).map(([n,r])=>r)}function Or(e,t="|"){return e.map(n=>kr(n)).join(t)}function Gt(e,t){return typeof t=="bigint"?t.toString():t}var ld=class{constructor(e){this._getter=e,this._value=void 0}get value(){const e=this._getter;return e!==void 0&&(this._value=e(),this._getter=void 0),this._value}};function qt(e){return new ld(e)}function md(e){return e==null}function Kt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function pd(e,t){const n=e/t,r=Math.round(n),i=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<i?0:n-r}function be(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Ar(e){const t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function ge(e){return Ar(e._zod.def)??e._zod.def.shape}function Sr(e,t,n){Object.defineProperty(e,t,{get(){const r=n();return be(this,t,r),r},enumerable:!0,configurable:!0})}function Tr(e,t,n){t in e?be(e,t,n):e[t]=n}function Ce(e,t,n,r){const i=ge(t);for(const o of n){const s=Object.getOwnPropertyDescriptor(i,o);s.enumerable&&(s.get?Sr(e,o,()=>{const u=t._zod.def.shape[o];return r?r(u,o):u}):Tr(e,o,r?r(s.value,o):s.value))}}function hd(e,t){for(const n of Reflect.ownKeys(t)){const r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?Sr(e,n,()=>t[n]):Tr(e,n,r.value))}}function se(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function yd(e){return JSON.stringify(e)}function gd(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var vr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function it(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var _d=qt(()=>{if(me.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{return new Function(""),!0}catch{return!1}});function qe(e){if(it(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(it(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function wr(e){return qe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var Od=new Set(["string","number","symbol"]);function ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Te(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function M(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function kr(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Ad(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Rr={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]},Sd={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Td(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const i={};return Ce(i,e,at(e,t)),Te(e,se(n,{shape:i,checks:[]}))}function at(e,t){const n=ge(e),r=[];for(const i of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,i)?.enumerable)throw new Error(`Unrecognized key: "${String(i)}"`);t[i]&&r.push(i)}return r}function vd(e,t){const n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const i=new Set(at(e,t)),o={};return Ce(o,e,Reflect.ownKeys(ge(e)).filter(s=>!i.has(s))),Te(e,se(n,{shape:o,checks:[]}))}function wd(e,t){if(!qe(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const r=ge(e);for(const i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return Te(e,se(e._zod.def,{shape:Nr(e,t)}))}function Nr(e,t){const n={};return Ce(n,e,Reflect.ownKeys(ge(e))),hd(n,t),n}function kd(e,t){if(!qe(t))throw new Error("Invalid input to safeExtend: expected a plain object");return Te(e,se(e._zod.def,{shape:Nr(e,t)}))}function Rd(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n={};return Ce(n,e,Reflect.ownKeys(ge(e))),Ce(n,t,Reflect.ownKeys(ge(t))),Te(e,se(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Pr(e,t,n,r="partial"){const i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);const o=n?new Set(at(t,n)):void 0,s={};return Ce(s,t,Reflect.ownKeys(ge(t)),e&&((u,c)=>o&&!o.has(c)?u:new e({type:"optional",innerType:u}))),Te(t,se(t._zod.def,{shape:s,checks:[]}))}function Nd(e,t,n){const r=n?new Set(at(t,n)):void 0,i={};return Ce(i,t,Reflect.ownKeys(ge(t)),(o,s)=>r&&!r.has(s)?o:new e({type:"nonoptional",innerType:o})),Te(t,se(t._zod.def,{shape:i}))}function _e(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Pd(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function br(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ke(e){return typeof e=="string"?e:e?.message}function Cr(e,t,n){var r;for(let i=t;i<e.length;i++)(r=e[i]).schema??(r.schema=n)}function Ee(e,t,n){var r;const i=e.inst?._zod?.traits;i?.has("$ZodType")&&(i.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);const o=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ke(e.inst?._zod.def?.error?.(e))??Ke(o?.(e))??Ke(t?.error?.(e))??Ke(n.customError?.(e))??Ke(n.localeError?.(e))??"Invalid input",u={};for(const c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(u[c]=e[c]);return u.path??(u.path=[]),u.message=s,t?.reportInput&&(u.input=e.input),u}var bd=/[\uD800-\uDBFF]/;function Yt(e){const t=e.length;if(!bd.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Vt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Cd(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Ye(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function Md(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Id(e,n,r.value)}}function ve(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Mr(e,t,n){return ve(e,t,n,!1)}function Ir(e,t){for(const n in e){const r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return ve(this,n,r(this))},set(i){ve(this,n,i)}})}return t}function Id(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ve(this,t,n.bind(this))},set(r){ve(this,t,r)}})}function Dd(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}var Wt,we=!1,Jd={configurable:!0,get(){we=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Wt!==e._zod){Wt=void 0;return}Wt=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Jd);const i=we;we=!1;try{const o=n(this);return we?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o}),we=we||i,o}catch(o){throw delete this[t],we=we||i,o}},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i})}})}function Ed(e,t,n,r){const i=Dd(e,t);i&&Object.defineProperty(i,t,{configurable:!0,get(){const o={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,o),o.value=n(this),Object.defineProperty(this,t,o),o.value},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:o})}})}var Fd="~constantCatch";function $d(e){const t=()=>e;return t[Fd]=!0,t}var Dr,Xt={value:void 0,enumerable:!1},Jr="captureStackTrace"in Error?Error:null;function Ld(e){const t=Jr;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Jr=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function O(e,t,n,r){const i={};function o(h){this.def=h,this.constr=m,this.traits=new Set}o.prototype=i;const s=n,u=s&&new WeakSet;function c(h,_){if(h._zod){if(h._zod.traits.has(e))return}else{Xt.value=new o(_);try{Object.defineProperty(h,"_zod",Xt)}finally{Xt.value=void 0}}if(h._zod.traits.add(e),t(h,_),u){const y=Object.getPrototypeOf(h),g=h._zod.constr.prototype;let v=y;for(;v&&v!==g;)v=Object.getPrototypeOf(v);const R=v??y;u.has(R)||(u.add(R),Md(R,s))}const A=m.prototype;for(const y in A)Object.prototype.hasOwnProperty.call(A,y)&&(y in h||(h[y]=A[y].bind(h)))}const d=r?.Parent??Object;class p extends d{}Object.defineProperty(p,"name",{value:e});function m(h){const _=r?.Parent?Ld(p):this;c(_,h);const A=_._zod.deferred;if(A){for(const g of A)g();_._zod.deferred=void 0}const y=globalThis.__zod_globalConfig?.postProcessor;return y&&y(_),_}return Object.defineProperty(m,"init",{value:c}),Object.defineProperty(m,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(m,"name",{value:e}),m}var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Er=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Dr=globalThis).__zod_globalConfig??(Dr.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function ke(e){return e&&Object.assign(me,e),me}function zd(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Gt,2)),e.message}function Hd(e){this._zod.message=e}var Bd={get:zd,set:Hd,enumerable:!0,configurable:!0},Qt={value:void 0,enumerable:!1},Fr=new WeakSet([Object.prototype,Error.prototype]),$r=(e,t)=>{e.name="$ZodError",Qt.value=t,Object.defineProperty(e,"issues",Qt),Qt.value=void 0,Object.defineProperty(e,"message",Bd);const n=Object.getPrototypeOf(e);Fr.has(n)||(Fr.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){const r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Ud=O("$ZodError",$r),eO=O("$ZodError",$r,void 0,{Parent:Error});function Zd(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Gd(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?Zd(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function qd(e,t=n=>n.message){const n={_errors:[]},r=(i,o=[])=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(u=>r({issues:u},[...o,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...o,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...o,...s.path]);else{const u=[...o,...s.path];if(u.length===0)n._errors.push(t(s));else{let c=n,d=0;for(;d<u.length;){const p=u[d],m=d===u.length-1;if(p==="_errors"){m&&c._errors.push(t(s)),d++;continue}Object.prototype.hasOwnProperty.call(c,p)||Object.defineProperty(c,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=c[p];m&&h._errors.push(t(s)),c=h,d++}}}};return r(e),n}function st(e,t){return{callee:t?.callee??e,Err:t?.Err}}var xt=e=>{const t=(n,r,i,o)=>{const s=i?{...i,async:!1}:{async:!1},u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise)throw new Me;if(u.issues.length){const c=new(o?.Err??e)(u.issues.map(d=>Ee(d,s,ke())));throw vr(c,o?.callee??t),c}return u.value};return t},jt=e=>{const t=async(n,r,i,o)=>{const s=i?{...i,async:!0}:{async:!0};let u=n._zod.run({value:r,issues:[]},s);if(u instanceof Promise&&(u=await u),u.issues.length){const c=new(o?.Err??e)(u.issues.map(d=>Ee(d,s,ke())));throw vr(c,o?.callee??t),c}return u.value};return t},en=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Me;return o.issues.length?Lr(e,o.issues,i):{success:!0,data:o.value}};function Lr(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(i=>Ee(i,n,ke()))),t=void 0,n=void 0),r},set error(i){r=i,t=void 0,n=void 0}}}var tn=e=>async(t,n,r)=>{const i=r?{...r,async:!0}:{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?Lr(e,o.issues,i):{success:!0,data:o.value}},Kd=Symbol.for("zod.compile.invalid"),Yd=Symbol.for("zod.compile.fallback"),Vd=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Kd)return!0;if(r.definite===!0&&n===void 0)return!1}return Wd(e,t,n)});function Wd(e,t,n){const r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},i=e._zod.bag.fallbackRun;let o;if(i?(r[Yd]=!0,o=i({value:t,issues:[]},r)):o=e._zod.run({value:t,issues:[]},r),o instanceof Promise)throw new Me;return o.issues.length===0}var Xd=async(e,t,n)=>{const r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0};let i=e._zod.run({value:t,issues:[]},r);return i instanceof Promise&&(i=await i),i.issues.length===0},Qd=e=>{const t=xt(e),n=(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return t(r,i,u,st(n,s))};return n},xd=e=>{const t=xt(e),n=(r,i,o,s)=>t(r,i,o,st(n,s));return n},jd=e=>{const t=jt(e),n=async(r,i,o,s)=>{const u=o?{...o,direction:"backward"}:{direction:"backward"};return await t(r,i,u,st(n,s))};return n},ef=e=>{const t=jt(e),n=async(r,i,o,s)=>await t(r,i,o,st(n,s));return n},tf=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return en(e)(t,n,i)},nf=e=>(t,n,r)=>en(e)(t,n,r),rf=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return tn(e)(t,n,i)},of=e=>async(t,n,r)=>tn(e)(t,n,r),af=/^[cC][0-9a-z]{6,}$/,sf=/^[0-9a-z]+$/,uf=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,cf=/^[0-9a-vA-V]{20}$/,df=/^[A-Za-z0-9]{27}$/,ff=/^[a-zA-Z0-9_-]{21}$/;function lf(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var mf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,pf=/^([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})$/,zr=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)$/,hf=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,yf="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function gf(){return new RegExp(yf,"u")}var _f=/^(?:(?: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])$/,Of=/^(([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}|:))$/,Af=/^((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])$/,Sf=/^(([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])$/,Tf=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vf=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,wf=/^https?$/,kf=/^\+[1-9]\d{6,14}$/,Hr="(?:(?:\\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 Rf(e){return new RegExp(`^${e}$`)}var Nf=Rf(Hr);function nn(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Pf(e){return new RegExp(`^${nn(e)}$`)}function bf(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${nn({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${nn({precision:e.precision})}`:n;return new RegExp(`^${Hr}T(?:${r})$`)}var Cf=/^[\s\S]{0,}$/,Mf=/^-?\d+(?:\.\d+)?$/,If=/^[^A-Z]*$/,Df=/^[^a-z]*$/,ae=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),rn=e=>{const t=e.value;return!md(t)&&t.length!==void 0},ut={number:"number",bigint:"bigint",object:"date"},Br=O("$ZodCheckLessThan",(e,t)=>{ae.init(e,t);const n=ut[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ut[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ur=O("$ZodCheckGreaterThan",(e,t)=>{ae.init(e,t);const n=ut[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ut[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Jf=O("$ZodCheckMultipleOf",(e,t)=>{ae.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):pd(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ef=O("$ZodCheckNumberFormat",(e,t)=>{ae.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),r=n?"int":"number",[i,o]=Rr[t.format];e._zod.check=s=>{const u=s.value;if(n){if(!Number.isInteger(u)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?s.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}u<i&&s.issues.push({origin:"number",input:u,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),u>o&&s.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),Ff=O("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?Yt(i):o)<=t.maximum)return;const s=Vt(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),$f=O("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?Yt(i):o)>=t.minimum)return;const s=Vt(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Lf=O("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=rn),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?Yt(i):o;if(s===t.length)return;const u=Vt(i),c=s>t.length;r.issues.push({origin:u,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),ct=O("$ZodCheckStringFormat",(e,t)=>{var n,r;ae.init(e,t),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),zf=O("$ZodCheckRegex",(e,t)=>{ct.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Hf=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=If),ct.init(e,t)}),Bf=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Df),ct.init(e,t)}),Uf=O("$ZodCheckIncludes",(e,t)=>{ae.init(e,t);const n=ot(t.includes);t.pattern=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n),e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Zf=O("$ZodCheckStartsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`^${ot(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Gf=O("$ZodCheckEndsWith",(e,t)=>{ae.init(e,t);const n=new RegExp(`.*${ot(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),qf=O("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),Kf=class{constructor(e=[],t={}){this.content=[],this.indent=0,this.args=e,this.closed=t}indented(e){this.indent+=1;try{e(this)}finally{this.indent-=1}}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const t=e.split(`
3
3
  `).filter(i=>i),n=Math.min(...t.map(i=>i.length-i.trimStart().length)),r=t.map(i=>i.slice(n)).map(i=>" ".repeat(this.indent*2)+i);for(const i of r)this.content.push(i)}compile(){const e=Function,t=this?.content??[""];return new e(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
4
4
  ${t.join(`
5
5
  `)}
6
- };`)(...Object.values(this.closed))}},Kf={major:4,minor:6,patch:4},x=O("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Kf;const r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,c,d)=>{if(u.memo)return u;let p=_e(u),m;for(const h of c){if(h._zod.def.when){if(Nd(u)||!h._zod.def.when(u))continue}else if(p)continue;const _=u.issues.length,A=h._zod.check(u);if(A instanceof Promise&&d?.async===!1)throw new Me;if(m||A instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await A,u.issues.length!==_&&(Cr(u.issues,_,e),p||(p=_e(u,_)))});else{if(u.issues.length===_)continue;Cr(u.issues,_,e),p||(p=_e(u,_))}}return m?m.then(()=>u):u},s=(u,c,d)=>{if(_e(u))return u.aborted=!0,u;const p=o(c,i,d);if(p instanceof Promise){if(d.async===!1)throw new Me;return p.then(m=>e._zod.parse(m,d))}return e._zod.parse(p,d)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return p instanceof Promise?p.then(m=>s(m,u,c)):s(p,u,c)}const d=e._zod.parse(u,c);if(d instanceof Promise){if(c.async===!1)throw new Me;return d.then(p=>o(p,i,c))}return o(d,i,c)}}},{get"~standard"(){return Mr(this,"~standard",Gr(this))},set"~standard"(e){ve(this,"~standard",e)}}),Zr=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Ee(n,t,ke()))}:{value:e.value};async function Yf(e,t){const n={async:!0};return Zr(await e._zod.run({value:t,issues:[]},n),n)}function Gr(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Zr(r,n)}catch{}return Yf(e,t)},vendor:"zod",version:1}}var on=O("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=t.pattern??bf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),V=O("$ZodStringFormat",(e,t)=>{ct.init(e,t),on.init(e,t)}),Vf=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=mf),V.init(e,t)}),Wf=O("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=zr(n))}else t.pattern??(t.pattern=zr());V.init(e,t)}),Xf=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=pf),V.init(e,t)}),eO=1,tO=2;function qr(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Qf(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?qr(e)||2:xf(e,t)}function xf(e,t){if(!t.normalize&&t.protocol?.source===vf.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<"u"){const n=URL;if(typeof n.parse=="function")return n.parse(e)??2}return new URL(e)}catch{return 2}}var jf=/[\t\n\r]/g;function Kr(e){return e.replace(jf,"")}function el(e,t){return t.lastIndex=0,t.test(e.hostname)}function tl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var nl=O("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=Qf(r,t);if(i===1){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Kr(r);return}t.hostname&&!el(i,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!tl(i,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Kr(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),rl=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=yf()),V.init(e,t)}),il=O("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?df:ff(t.length)),V.init(e,t)}),ol=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=of),V.init(e,t)}),al=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=af),V.init(e,t)}),sl=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=sf),V.init(e,t)}),ul=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=uf),V.init(e,t)}),cl=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=cf),V.init(e,t)}),dl=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=Pf(t)),V.init(e,t)}),fl=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Rf),V.init(e,t)}),ll=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Nf(t)),V.init(e,t)}),ml=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=lf),V.init(e,t)}),pl=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=gf),V.init(e,t)}),hl=/^[0-9a-fA-F:.]+$/;function Yr(e){return hl.test(e)?qr(`http://[${e}]`):!1}var yl=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=_f),V.init(e,t),e._zod.check=n=>{Yr(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),gl=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Of),V.init(e,t)});function _l(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const i=Number(r);return`${i}`!==r||i<0||i>128?!1:Yr(n)}var Ol=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Af),V.init(e,t),e._zod.check=n=>{_l(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Vr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Wr=/^[0-9a-zA-Z+/]*={0,2}$/,Al=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Wr),V.init(e,t),e._zod.check=n=>{Vr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),an=/^[A-Za-z0-9_-]*$/;function Sl(e){if(!an.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return Vr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Tl=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=an),V.init(e,t),e._zod.check=n=>{Sl(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),vl=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=wf),V.init(e,t)});function wl(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var kl=O("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{wl(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Xr=O("$ZodNumber",(e,t)=>{x.init(e,t),e._zod.pattern=Cf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Rl=O("$ZodNumberFormat",(e,t)=>{Jf.init(e,t),Xr.init(e,t)}),Nl=O("$ZodSymbol",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),Pl=O("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=n=>n}),bl=O("$ZodNever",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Qr(e,t,n){e.issues.length&&t.issues.push(...br(n,e.issues)),t.value[n]=e.value}var Cl=O("$ZodArray",(e,t)=>{x.init(e,t);const n=me.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);const s=[],u=i?.abortEarly;for(let c=0;c<o.length;c++){const d=o[c],p=t.element._zod.run({value:d,issues:[]},i);if(p instanceof Promise)s.push(p.then(m=>Qr(m,r,c)));else if(Qr(p,r,c),u&&p.issues.length!==0&&_e(p))break}return s.length?Promise.all(s).then(()=>r):r}});function dt(e,t,n,r,i,o){const s=n in r,u=o==="optional";if(!(!s&&u&&i==="optional")){if(e.issues.length){if(i!==void 0&&u&&!s)return;t.issues.push(...br(n,e.issues))}if(!s&&i===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||i==="defaulted"&&!u)&&(t.value[n]=void 0):t.value[n]=e.value}}var Ml=[];function xr(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Ml,i=r.length?[...t,...r]:t;for(const s of i)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);const o=Od(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function jr(e,t,n,r,i,o,s){const u=[],c=i.keySet,d=i.catchall._zod,p=d.def.type,m=d.optin,h=d.optout;let _=0;for(const A in t){if(s&&n.issues.length!==_){if(_e(n,_))break;_=n.issues.length}if(c.has(A))continue;if(A==="__proto__"){p==="never"&&u.push(A);continue}if(p==="never"){u.push(A);continue}const y=d.run({value:t[A],issues:[]},r);y instanceof Promise?e.push(y.then(g=>dt(g,n,A,t,m,h))):dt(y,n,A,t,m,h)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Il=O("$ZodObject",(e,t)=>{x.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){const d=()=>{const p={...r};return Object.defineProperty(t,"shape",{value:p}),d.raw=p,p};d.raw=r,Object.defineProperty(t,"shape",{get:d})}const i=qt(()=>xr(t));G(e,"propValues",d=>{const p=d.def.shape,m={};for(const h in p){const _=p[h]._zod;if(_.values){Object.prototype.hasOwnProperty.call(m,h)||be(m,h,new Set);for(const A of _.values)m[h].add(A);_.optin!==void 0&&m[h].add(void 0)}}return m});const o=it,s=t.catchall;let u;const c=me.memoizer;c?.attach(e),e._zod.parse=(d,p)=>{u??(u=i.value);const m=d.value;if(!o(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value=c?c.alloc(e,d,{},p):{};const h=[],_=u.shape,A=p?.abortEarly;let y=d.issues.length;for(const g of u.allKeys){if(A&&d.issues.length!==y){if(_e(d,y))break;y=d.issues.length}if(g==="__proto__")continue;const v=_[g],R=v._zod.optin,N=v._zod.optout,E=v._zod.run({value:m[g],issues:[]},p);E instanceof Promise?h.push(E.then(P=>dt(P,d,g,m,R,N))):dt(E,d,g,m,R,N)}return s?jr(h,m,d,p,i.value,e,A===!0):h.length?Promise.all(h).then(()=>d):d}}),Dl=O("$ZodObjectJIT",(e,t)=>{Il.init(e,t);const n=e._zod.parse,r=qt(()=>xr(t)),i=me.memoizer,o=_=>{const A=r.value,y=A.symbolKeys,g=new qf(["payload","ctx"],{shape:_,inst:e,memo:i,syms:y}),v=P=>`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`,R=(P,b)=>`
6
+ };`)(...Object.values(this.closed))}},Yf={major:4,minor:6,patch:4},x=O("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Yf;const r=e._zod.def.checks,i=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,c,d)=>{if(u.memo)return u;let p=_e(u),m;for(const h of c){if(h._zod.def.when){if(Pd(u)||!h._zod.def.when(u))continue}else if(p)continue;const _=u.issues.length,A=h._zod.check(u);if(A instanceof Promise&&d?.async===!1)throw new Me;if(m||A instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await A,u.issues.length!==_&&(Cr(u.issues,_,e),p||(p=_e(u,_)))});else{if(u.issues.length===_)continue;Cr(u.issues,_,e),p||(p=_e(u,_))}}return m?m.then(()=>u):u},s=(u,c,d)=>{if(_e(u))return u.aborted=!0,u;const p=o(c,i,d);if(p instanceof Promise){if(d.async===!1)throw new Me;return p.then(m=>e._zod.parse(m,d))}return e._zod.parse(p,d)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return p instanceof Promise?p.then(m=>s(m,u,c)):s(p,u,c)}const d=e._zod.parse(u,c);if(d instanceof Promise){if(c.async===!1)throw new Me;return d.then(p=>o(p,i,c))}return o(d,i,c)}}},{get"~standard"(){return Mr(this,"~standard",Gr(this))},set"~standard"(e){ve(this,"~standard",e)}}),Zr=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Ee(n,t,ke()))}:{value:e.value};async function Vf(e,t){const n={async:!0};return Zr(await e._zod.run({value:t,issues:[]},n),n)}function Gr(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Zr(r,n)}catch{}return Vf(e,t)},vendor:"zod",version:1}}var on=O("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=t.pattern??Cf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),V=O("$ZodStringFormat",(e,t)=>{ct.init(e,t),on.init(e,t)}),Wf=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=pf),V.init(e,t)}),Xf=O("$ZodUUID",(e,t)=>{if(t.version){const n={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(n===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=zr(n))}else t.pattern??(t.pattern=zr());V.init(e,t)}),Qf=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=hf),V.init(e,t)}),tO=1,nO=2;function qr(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function xf(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?qr(e)||2:jf(e,t)}function jf(e,t){if(!t.normalize&&t.protocol?.source===wf.source&&!/^https?:\/\//i.test(e))return 1;try{if(typeof URL<"u"){const n=URL;if(typeof n.parse=="function")return n.parse(e)??2}return new URL(e)}catch{return 2}}var el=/[\t\n\r]/g;function Kr(e){return e.replace(el,"")}function tl(e,t){return t.lastIndex=0,t.test(e.hostname)}function nl(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var rl=O("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=xf(r,t);if(i===1){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(i===2){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(i===!0){n.value=Kr(r);return}t.hostname&&!tl(i,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!nl(i,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?i.href:Kr(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),il=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=gf()),V.init(e,t)}),ol=O("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?ff:lf(t.length)),V.init(e,t)}),al=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=af),V.init(e,t)}),sl=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=sf),V.init(e,t)}),ul=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=uf),V.init(e,t)}),cl=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=cf),V.init(e,t)}),dl=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=df),V.init(e,t)}),fl=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=bf(t)),V.init(e,t)}),ll=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Nf),V.init(e,t)}),ml=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Pf(t)),V.init(e,t)}),pl=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=mf),V.init(e,t)}),hl=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=_f),V.init(e,t)}),yl=/^[0-9a-fA-F:.]+$/;function Yr(e){return yl.test(e)?qr(`http://[${e}]`):!1}var gl=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Of),V.init(e,t),e._zod.check=n=>{Yr(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),_l=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Af),V.init(e,t)});function Ol(e){const t=e.split("/");if(t.length!==2)return!1;const[n,r]=t;if(!r)return!1;const i=Number(r);return`${i}`!==r||i<0||i>128?!1:Yr(n)}var Al=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Sf),V.init(e,t),e._zod.check=n=>{Ol(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Vr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Wr=/^[0-9a-zA-Z+/]*={0,2}$/,Sl=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Wr),V.init(e,t),e._zod.check=n=>{Vr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),an=/^[A-Za-z0-9_-]*$/;function Tl(e){if(!an.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return Vr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var vl=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=an),V.init(e,t),e._zod.check=n=>{Tl(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),wl=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=kf),V.init(e,t)});function kl(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&i?.typ!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}var Rl=O("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{kl(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Xr=O("$ZodNumber",(e,t)=>{x.init(e,t),e._zod.pattern=Mf,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:String(i):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),Nl=O("$ZodNumberFormat",(e,t)=>{Ef.init(e,t),Xr.init(e,t)}),Pl=O("$ZodSymbol",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;return typeof i=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:i,inst:e}),n}}),bl=O("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=n=>n}),Cl=O("$ZodNever",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function Qr(e,t,n){e.issues.length&&t.issues.push(...br(n,e.issues)),t.value[n]=e.value}var Ml=O("$ZodArray",(e,t)=>{x.init(e,t);const n=me.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{const o=r.value;if(!Array.isArray(o))return r.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),r;r.value=n?n.alloc(e,r,Array(o.length),i):Array(o.length);const s=[],u=i?.abortEarly;for(let c=0;c<o.length;c++){const d=o[c],p=t.element._zod.run({value:d,issues:[]},i);if(p instanceof Promise)s.push(p.then(m=>Qr(m,r,c)));else if(Qr(p,r,c),u&&p.issues.length!==0&&_e(p))break}return s.length?Promise.all(s).then(()=>r):r}});function dt(e,t,n,r,i,o){const s=n in r,u=o==="optional";if(!(!s&&u&&i==="optional")){if(e.issues.length){if(i!==void 0&&u&&!s)return;t.issues.push(...br(n,e.issues))}if(!s&&i===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||i==="defaulted"&&!u)&&(t.value[n]=void 0):t.value[n]=e.value}}var Il=[];function xr(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Il,i=r.length?[...t,...r]:t;for(const s of i)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);const o=Ad(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function jr(e,t,n,r,i,o,s){const u=[],c=i.keySet,d=i.catchall._zod,p=d.def.type,m=d.optin,h=d.optout;let _=0;for(const A in t){if(s&&n.issues.length!==_){if(_e(n,_))break;_=n.issues.length}if(c.has(A))continue;if(A==="__proto__"){p==="never"&&u.push(A);continue}if(p==="never"){u.push(A);continue}const y=d.run({value:t[A],issues:[]},r);y instanceof Promise?e.push(y.then(g=>dt(g,n,A,t,m,h))):dt(y,n,A,t,m,h)}return u.length&&n.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:o,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var Dl=O("$ZodObject",(e,t)=>{x.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){const d=()=>{const p={...r};return Object.defineProperty(t,"shape",{value:p}),d.raw=p,p};d.raw=r,Object.defineProperty(t,"shape",{get:d})}const i=qt(()=>xr(t));G(e,"propValues",d=>{const p=d.def.shape,m={};for(const h in p){const _=p[h]._zod;if(_.values){Object.prototype.hasOwnProperty.call(m,h)||be(m,h,new Set);for(const A of _.values)m[h].add(A);_.optin!==void 0&&m[h].add(void 0)}}return m});const o=it,s=t.catchall;let u;const c=me.memoizer;c?.attach(e),e._zod.parse=(d,p)=>{u??(u=i.value);const m=d.value;if(!o(m))return d.issues.push({expected:"object",code:"invalid_type",input:m,inst:e}),d;d.value=c?c.alloc(e,d,{},p):{};const h=[],_=u.shape,A=p?.abortEarly;let y=d.issues.length;for(const g of u.allKeys){if(A&&d.issues.length!==y){if(_e(d,y))break;y=d.issues.length}if(g==="__proto__")continue;const v=_[g],R=v._zod.optin,N=v._zod.optout,E=v._zod.run({value:m[g],issues:[]},p);E instanceof Promise?h.push(E.then(P=>dt(P,d,g,m,R,N))):dt(E,d,g,m,R,N)}return s?jr(h,m,d,p,i.value,e,A===!0):h.length?Promise.all(h).then(()=>d):d}}),Jl=O("$ZodObjectJIT",(e,t)=>{Dl.init(e,t);const n=e._zod.parse,r=qt(()=>xr(t)),i=me.memoizer,o=_=>{const A=r.value,y=A.symbolKeys,g=new Kf(["payload","ctx"],{shape:_,inst:e,memo:i,syms:y}),v=P=>`shape[${P}]._zod.run({ value: input[${P}], issues: [] }, ctx)`,R=(P,b)=>`
7
7
  let ${P}_ab = false;
8
8
  for (let i = 0; i < ${P}.issues.length; i++) {
9
9
  const iss = ${P}.issues[i];
@@ -14,7 +14,7 @@ ${t.join(`
14
14
  if (${P}_ab && ctx && ctx.abortEarly) {
15
15
  payload.value = newResult;
16
16
  return payload;
17
- }`;g.write("const input = payload.value;");const N=Object.create(null);let E=0;for(const P of A.allKeys)N[P]=`key_${E++}`;g.write(i?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const P of A.allKeys){if(P==="__proto__")continue;const b=N[P],$=typeof P=="symbol"?`syms[${y.indexOf(P)}]`:hd(P),U=`${$} in input`,H=_[P],B=H?._zod?.optin,I=B!==void 0,L=H?._zod?.optout==="optional";if(g.write(`const ${b} = ${v($)};`),I&&L){const X=B==="optional"?`${b}_present`:`${b}.value !== undefined || ${b}_present`;g.write(`
17
+ }`;g.write("const input = payload.value;");const N=Object.create(null);let E=0;for(const P of A.allKeys)N[P]=`key_${E++}`;g.write(i?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(const P of A.allKeys){if(P==="__proto__")continue;const b=N[P],$=typeof P=="symbol"?`syms[${y.indexOf(P)}]`:yd(P),U=`${$} in input`,H=_[P],B=H?._zod?.optin,I=B!==void 0,L=H?._zod?.optout==="optional";if(g.write(`const ${b} = ${v($)};`),I&&L){const X=B==="optional"?`${b}_present`:`${b}.value !== undefined || ${b}_present`;g.write(`
18
18
  const ${b}_present = ${U};
19
19
  if (!${b}.issues.length || ${b}_present) {
20
20
  if (${b}.issues.length) {${R(b,$)}
@@ -53,6 +53,6 @@ ${t.join(`
53
53
  newResult[${$}] = ${b}.value;
54
54
  }
55
55
 
56
- `)}return g.write("payload.value = newResult;"),g.write("return payload;"),g.compile()};let s;const u=it,c=!me.jitless,p=c&&gd.value,m=t.catchall;let h;e._zod.parse=(_,A)=>{h??(h=r.value);const y=_.value;return u(y)?c&&p&&A?.async===!1&&A.jitless!==!0?(s||(s=o(t.shape)),_=s(_,A),m?jr([],y,_,A,h,e,A?.abortEarly===!0):_):n(_,A):(_.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),_)}});function ei(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!_e(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>Ee(s,r,ke())))}),t)}var Jl=O("$ZodUnion",(e,t)=>{x.init(e,t),G(e,"optin",r=>r.def.options.some(i=>i._zod.optin==="defaulted")?"defaulted":r.def.options.some(i=>i._zod.optin!==void 0)?"optional":void 0),G(e,"optout",r=>r.def.options.some(i=>i._zod.optout==="optional")?"optional":void 0),G(e,"values",r=>{if(r.def.options.every(i=>i._zod.values))return new Set(r.def.options.flatMap(i=>Array.from(i._zod.values)))}),G(e,"pattern",r=>{if(r.def.options.every(i=>i._zod.pattern)){const i=r.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Kt(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1;const s=[];for(const u of t.options){const c=u._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(u=>ei(u,r,e,i)):ei(s,r,e,i)}}),El=O("$ZodIntersection",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,c])=>ti(n,u,c)):ti(n,o,s)}});function sn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qe(e)&&qe(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,"__proto__")&&delete i.__proto__;for(const o of r){if(o==="__proto__")continue;const s=sn(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],s=sn(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ti(e,t,n){const r=new Map;let i;const o=new Map,s=(d,p)=>{let m;if(d.code==="unrecognized_keys"&&!d.path?.length)i??(i=d),m=d.keys;else if(d.code==="invalid_key"&&d.origin==="record"&&d.path?.length===1){const h=String(d.path[0]);o.has(h)||o.set(h,d),m=[h]}else return!1;for(const h of m)r.has(h)||r.set(h,{}),r.get(h)[p]=!0;return!0};for(const d of t.issues)s(d,"l")||e.issues.push(d);for(const d of n.issues)s(d,"r")||e.issues.push(d);const u=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(u.length){const d=i?u.filter(p=>i.keys.includes(p)):[];d.length&&e.issues.push({...i,keys:d});for(const p of u)!d.includes(p)&&o.has(p)&&e.issues.push(o.get(p))}const c=sn(t.value,n.value);if(!c.valid){if(_e(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Fl=O("$ZodEnum",(e,t)=>{x.init(e,t);const n=Zt(t.entries),r=new Set(n);e._zod.values=r,G(e,"pattern",i=>{const o=Zt(i.def.entries).filter(s=>_d.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>ot(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),$l=O("$ZodTransform",(e,t)=>{x.init(e,t),e._zod.optin="optional",me.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Er(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new Me;return n.value=i,n}});function ni(e,t){return e.value=t.issues.length?void 0:t.value,e}var ri=O("$ZodOptional",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Kt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>ni(n,o)):ni(n,i)}return t.innerType._zod.run(n,r)}}),Ll=O("$ZodExactOptional",(e,t)=>{ri.init(e,t),G(e,"values",n=>n.def.innerType._zod.values),G(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),zl=O("$ZodNullable",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Kt(r.source)}|null)$`):void 0}),G(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Hl=O("$ZodDefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ii(o,t)):ii(i,t)}});function ii(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Bl=O("$ZodPrefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Ul=O("$ZodNonOptional",(e,t)=>{x.init(e,t),G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>oi(o,e)):oi(i,e)}});function oi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function ai(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(i=>Ee(i,r,ke()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Zl=O("$ZodCatch",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>ai(n,o,t,r)):ai(n,i,t,r)}}),Gl=O("$ZodPipe",(e,t)=>{x.init(e,t),G(e,"values",n=>n.def.in._zod.values),G(e,"optin",n=>n.def.in._zod.optin),G(e,"optout",n=>n.def.out._zod.optout),G(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(s=>ft(s,t.in,r)):ft(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>ft(o,t.out,r)):ft(i,t.out,r)}});function ft(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var ql=O("$ZodReadonly",(e,t)=>{x.init(e,t),G(e,"propValues",n=>n.def.innerType._zod.propValues),G(e,"values",n=>n.def.innerType._zod.values),G(e,"optin",n=>n.def.innerType?._zod?.optin),G(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(si):si(i)}});function si(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Kl=O("$ZodCustom",(e,t)=>{ae.init(e,t),x.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>ui(o,n,r,e));ui(i,n,r,e)}});function ui(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Ye(i))}}var Yl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},un="~memo",ci=[];function di(e){return e!==null&&typeof e=="object"}function cn(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var fi=new WeakMap,Ve=0,lt=1,We=2;function mt(e,t,n){const r=fi.get(e);if(r!==void 0)return r?We:Ve;if(t.has(e))return We;t.add(e);let i=Ve;const o=d=>{if(i!==We&&d?._zod){const p=mt(d,t,n);p>i&&(i=p)}},s=(d,p)=>{let m=Ve;for(const h of Reflect.ownKeys(d)){const _=Object.getOwnPropertyDescriptor(d,h);if(p&&!_.enumerable)continue;const A=_.get?lt:_.value?._zod?mt(_.value,t,n):Ve;A>m&&(m=A)}return m},u=d=>{d>i&&(i=d)},c=e._zod.def;switch(c.type){case"object":{const d=Ar(c);u(d?s(d,!0):lt),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(const d of c.items)o(d);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(const d of c.options)o(d);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{const d=c._cachedInner??(n?e._zod.innerType:void 0);u(d?mt(d,t,!1):lt);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const d in c){const p=Object.getOwnPropertyDescriptor(c,d);if(!p||p.get)continue;const m=p.value;if(!(!m||typeof m!="object")){if(m._zod)o(m);else if(Array.isArray(m))for(const h of m)o(h)}}}return t.delete(e),Vl(e,i)}function Vl(e,t){return t!==lt&&fi.set(e,t===We),t}function Wl(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var pt,ht=[],Xl={alloc(e,t,n){const r=pt;if(!r)return n;pt=void 0;const i={value:n,issues:null};return r.set(t.value,i),ht.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(i,o)=>{if(o.direction!=="backward"&&xl(o,i.value))throw new Yl;return n(i,o)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,i,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,u=(c,d)=>{if(n===void 0){const v=mt(e,new Set,!1);if(v===Ve)return e._zod.parse=s,e._zod.run===u&&(e._zod.run=s),s(c,d);v===We||r?n=!0:r=!0}const p=c.value;if(!di(p))return s(c,d);let m=d[un];m||(m={buckets:new WeakMap,backEdges:void 0},d[un]=m);let h;i===d?h=o:(h=Wl(m,e),i=d,o=h);const _=h.get(p);if(_)return c.value=_.value,_.issues?_.issues.length&&c.issues.push(...cn(_.issues)):(c.memo=!0,m.backEdges??(m.backEdges=new WeakSet),m.backEdges.add(_.value)),c;pt=h;const A=ht.length,y=s(c,d);pt=void 0;const g=ht.length>A?ht.pop():void 0;return y instanceof Promise?y.then(v=>(g&&(g.issues=v.issues.length?cn(v.issues):ci),v)):(g&&(g.issues=y.issues.length?cn(y.issues):ci),y)};e._zod.parse=u,e._zod.run===s&&(e._zod.run=u)})}};function Ql(){return Xl}function xl(e,t){const n=e[un]?.backEdges;return n!==void 0&&di(t)&&n.has(t)}var jl=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function i(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[o]??o}return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${i(o.expected)}, received ${i(bd(o.input),o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${kr(o.values[0])}`:`Invalid option: expected one of ${Or(o.values,"|")}`;case"too_big":{const s=o.exact?"exactly ":o.inclusive?"<=":"<",u=t(o.origin);return u?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{const s=o.exact?"exactly ":o.inclusive?">=":">",u=t(o.origin);return u?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${u.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${Or(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`'${s}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function em(){return{localeError:jl()}}var li,tm=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function nm(){return new tm}(li=globalThis).__zod_globalRegistry??(li.__zod_globalRegistry=nm());var Xe=globalThis.__zod_globalRegistry;function mi(e){return e.checks&&(e.checks=[...e.checks]),e}function rm(e,t){return new e(mi({type:"string",...M(t)}))}function im(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function om(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function am(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function sm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function um(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function cm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function dm(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function fm(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function lm(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function mm(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function pm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function hm(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function ym(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function gm(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function _m(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function Om(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function Am(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function Sm(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function Tm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function vm(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function wm(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function km(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}function Rm(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function Nm(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function Pm(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function bm(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function Cm(e,t){return new e(mi({type:"number",checks:[],...M(t)}))}function Mm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function Im(e,t){return new e({type:"symbol",...M(t)})}function Dm(e){return new e({type:"unknown"})}function Jm(e,t){return new e({type:"never",...M(t)})}function pi(e,t){return new Br({check:"less_than",...M(t),value:e,inclusive:!1})}function dn(e,t){return new Br({check:"less_than",...M(t),value:e,inclusive:!0})}function hi(e,t){return new Ur({check:"greater_than",...M(t),value:e,inclusive:!1})}function fn(e,t){return new Ur({check:"greater_than",...M(t),value:e,inclusive:!0})}function yi(e,t){return new Df({check:"multiple_of",...M(t),value:e})}function gi(e,t){return new Ef({check:"max_length",...M(t),maximum:e})}function yt(e,t){return new Ff({check:"min_length",...M(t),minimum:e})}function _i(e,t){return new $f({check:"length_equals",...M(t),length:e})}function Em(e,t){return new Lf({check:"string_format",format:"regex",...M(t),pattern:e})}function Fm(e){return new zf({check:"string_format",format:"lowercase",...M(e)})}function $m(e){return new Hf({check:"string_format",format:"uppercase",...M(e)})}function Lm(e,t){return new Bf({check:"string_format",format:"includes",...M(t),includes:e})}function zm(e,t){return new Uf({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Hm(e,t){return new Zf({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Fe(e){return new Gf({check:"overwrite",tx:e})}function Bm(e){return Fe(t=>t.normalize(e))}function Um(){return Fe(e=>e.trim())}function Zm(){return Fe(e=>e.toLowerCase())}function Gm(){return Fe(e=>e.toUpperCase())}function qm(){return Fe(e=>yd(e))}function Km(e,t,n){return new e({type:"array",element:t,...M(n)})}function Ym(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Vm(e,t){const n=Wm(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ye(i,r.value,n._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Ye(o))}},e(r.value,r)),t);return n}function Wm(e,t){const n=new ae({check:"custom",...M(t)});return n._zod.check=e,n}function Qe(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&be(e,r,n[r]);return e}function Oi(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Xe,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:[],deferred:[],external:e?.external??void 0}}function Ie(e,t,n,r,i){const o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(i);return Object.assign(n,o),!0}function te(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,d);else{const m=s.schema,h=t.processors[i.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,t,m,d)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),te(p,t,d),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Qe(s.schema,c),t.io==="input"&&ie(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Ai(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Si(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const s of e.seen.entries()){const u=e.metadataRegistry.get(s[0])?.id;if(u){const c=r.get(u);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,s[0])}}const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(s[0])?.id,h=e.external.uri??(A=>A);if(m)return{ref:h(m)};const _=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=_,{defId:_,ref:`${h("__shared")}#/${u}/${Ai(_)}`}}const c="#",d=`${c}/${u}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};const p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+Ai(p)}},o=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:c,defId:d}=i(s);u.def={...u.schema},d&&(u.defId=d);const p=u.schema;for(const m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
56
+ `)}return g.write("payload.value = newResult;"),g.write("return payload;"),g.compile()};let s;const u=it,c=!me.jitless,p=c&&_d.value,m=t.catchall;let h;e._zod.parse=(_,A)=>{h??(h=r.value);const y=_.value;return u(y)?c&&p&&A?.async===!1&&A.jitless!==!0?(s||(s=o(t.shape)),_=s(_,A),m?jr([],y,_,A,h,e,A?.abortEarly===!0):_):n(_,A):(_.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),_)}});function ei(e,t,n,r){for(const o of e)if(o.issues.length===0)return t.value=o.value,t;const i=e.filter(o=>!_e(o));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(o=>o.issues.map(s=>Ee(s,r,ke())))}),t)}var El=O("$ZodUnion",(e,t)=>{x.init(e,t),G(e,"optin",r=>r.def.options.some(i=>i._zod.optin==="defaulted")?"defaulted":r.def.options.some(i=>i._zod.optin!==void 0)?"optional":void 0),G(e,"optout",r=>r.def.options.some(i=>i._zod.optout==="optional")?"optional":void 0),G(e,"values",r=>{if(r.def.options.every(i=>i._zod.values))return new Set(r.def.options.flatMap(i=>Array.from(i._zod.values)))}),G(e,"pattern",r=>{if(r.def.options.every(i=>i._zod.pattern)){const i=r.def.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Kt(o.source)).join("|")})$`)}});const n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let o=!1;const s=[];for(const u of t.options){const c=u._zod.run({value:r.value,issues:[]},i);if(c instanceof Promise)s.push(c),o=!0;else{if(c.issues.length===0)return c;s.push(c)}}return o?Promise.all(s).then(u=>ei(u,r,e,i)):ei(s,r,e,i)}}),Fl=O("$ZodIntersection",(e,t)=>{x.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),s=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([u,c])=>ti(n,u,c)):ti(n,o,s)}});function sn(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qe(e)&&qe(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,"__proto__")&&delete i.__proto__;for(const o of r){if(o==="__proto__")continue;const s=sn(e[o],t[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],s=sn(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function ti(e,t,n){const r=new Map;let i;const o=new Map,s=(d,p)=>{let m;if(d.code==="unrecognized_keys"&&!d.path?.length)i??(i=d),m=d.keys;else if(d.code==="invalid_key"&&d.origin==="record"&&d.path?.length===1){const h=String(d.path[0]);o.has(h)||o.set(h,d),m=[h]}else return!1;for(const h of m)r.has(h)||r.set(h,{}),r.get(h)[p]=!0;return!0};for(const d of t.issues)s(d,"l")||e.issues.push(d);for(const d of n.issues)s(d,"r")||e.issues.push(d);const u=[...r].filter(([,d])=>d.l&&d.r).map(([d])=>d);if(u.length){const d=i?u.filter(p=>i.keys.includes(p)):[];d.length&&e.issues.push({...i,keys:d});for(const p of u)!d.includes(p)&&o.has(p)&&e.issues.push(o.get(p))}const c=sn(t.value,n.value);if(!c.valid){if(_e(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var $l=O("$ZodEnum",(e,t)=>{x.init(e,t);const n=Zt(t.entries),r=new Set(n);e._zod.values=r,G(e,"pattern",i=>{const o=Zt(i.def.entries).filter(s=>Od.has(typeof s));return new RegExp(o.length?`^(${o.map(s=>ot(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:e}),i}}),Ll=O("$ZodTransform",(e,t)=>{x.init(e,t),e._zod.optin="optional",me.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Er(e.constructor.name);const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new Me;return n.value=i,n}});function ni(e,t){return e.value=t.issues.length?void 0:t.value,e}var ri=O("$ZodOptional",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Kt(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>ni(n,o)):ni(n,i)}return t.innerType._zod.run(n,r)}}),zl=O("$ZodExactOptional",(e,t)=>{ri.init(e,t),G(e,"values",n=>n.def.innerType._zod.values),G(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),Hl=O("$ZodNullable",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"pattern",n=>{const r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${Kt(r.source)}|null)$`):void 0}),G(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Bl=O("$ZodDefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>ii(o,t)):ii(i,t)}});function ii(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Ul=O("$ZodPrefault",(e,t)=>{x.init(e,t),e._zod.optin="defaulted",G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Zl=O("$ZodNonOptional",(e,t)=>{x.init(e,t),G(e,"values",n=>{const r=n.def.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>oi(o,e)):oi(i,e)}});function oi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}function ai(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(i=>Ee(i,r,ke()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Gl=O("$ZodCatch",(e,t)=>{x.init(e,t),G(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),G(e,"optout",n=>n.def.innerType._zod.optout),G(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run({value:n.value,issues:[]},r);return i instanceof Promise?i.then(o=>ai(n,o,t,r)):ai(n,i,t,r)}}),ql=O("$ZodPipe",(e,t)=>{x.init(e,t),G(e,"values",n=>n.def.in._zod.values),G(e,"optin",n=>n.def.in._zod.optin),G(e,"optout",n=>n.def.out._zod.optout),G(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=t.out._zod.run(n,r);return o instanceof Promise?o.then(s=>ft(s,t.in,r)):ft(o,t.in,r)}const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>ft(o,t.out,r)):ft(i,t.out,r)}});function ft(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Kl=O("$ZodReadonly",(e,t)=>{x.init(e,t),G(e,"propValues",n=>n.def.innerType._zod.propValues),G(e,"values",n=>n.def.innerType._zod.values),G(e,"optin",n=>n.def.innerType?._zod?.optin),G(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(si):si(i)}});function si(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Yl=O("$ZodCustom",(e,t)=>{ae.init(e,t),x.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>ui(o,n,r,e));ui(i,n,r,e)}});function ui(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(Ye(i))}}var Vl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},un="~memo",ci=[];function di(e){return e!==null&&typeof e=="object"}function cn(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var fi=new WeakMap,Ve=0,lt=1,We=2;function mt(e,t,n){const r=fi.get(e);if(r!==void 0)return r?We:Ve;if(t.has(e))return We;t.add(e);let i=Ve;const o=d=>{if(i!==We&&d?._zod){const p=mt(d,t,n);p>i&&(i=p)}},s=(d,p)=>{let m=Ve;for(const h of Reflect.ownKeys(d)){const _=Object.getOwnPropertyDescriptor(d,h);if(p&&!_.enumerable)continue;const A=_.get?lt:_.value?._zod?mt(_.value,t,n):Ve;A>m&&(m=A)}return m},u=d=>{d>i&&(i=d)},c=e._zod.def;switch(c.type){case"object":{const d=Ar(c);u(d?s(d,!0):lt),o(c.catchall);break}case"array":o(c.element);break;case"tuple":for(const d of c.items)o(d);o(c.rest);break;case"record":case"map":o(c.keyType),o(c.valueType);break;case"set":o(c.valueType);break;case"union":for(const d of c.options)o(d);break;case"intersection":o(c.left),o(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":o(c.innerType);break;case"pipe":o(c.in),o(c.out);break;case"function":o(c.input),o(c.output);break;case"lazy":{const d=c._cachedInner??(n?e._zod.innerType:void 0);u(d?mt(d,t,!1):lt);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(const d in c){const p=Object.getOwnPropertyDescriptor(c,d);if(!p||p.get)continue;const m=p.value;if(!(!m||typeof m!="object")){if(m._zod)o(m);else if(Array.isArray(m))for(const h of m)o(h)}}}return t.delete(e),Wl(e,i)}function Wl(e,t){return t!==lt&&fi.set(e,t===We),t}function Xl(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var pt,ht=[],Ql={alloc(e,t,n){const r=pt;if(!r)return n;pt=void 0;const i={value:n,issues:null};return r.set(t.value,i),ht.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const n=e._zod.parse,r=(i,o)=>{if(o.direction!=="backward"&&jl(o,i.value))throw new Vl;return n(i,o)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,i,o;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{const s=e._zod.parse,u=(c,d)=>{if(n===void 0){const v=mt(e,new Set,!1);if(v===Ve)return e._zod.parse=s,e._zod.run===u&&(e._zod.run=s),s(c,d);v===We||r?n=!0:r=!0}const p=c.value;if(!di(p))return s(c,d);let m=d[un];m||(m={buckets:new WeakMap,backEdges:void 0},d[un]=m);let h;i===d?h=o:(h=Xl(m,e),i=d,o=h);const _=h.get(p);if(_)return c.value=_.value,_.issues?_.issues.length&&c.issues.push(...cn(_.issues)):(c.memo=!0,m.backEdges??(m.backEdges=new WeakSet),m.backEdges.add(_.value)),c;pt=h;const A=ht.length,y=s(c,d);pt=void 0;const g=ht.length>A?ht.pop():void 0;return y instanceof Promise?y.then(v=>(g&&(g.issues=v.issues.length?cn(v.issues):ci),v)):(g&&(g.issues=y.issues.length?cn(y.issues):ci),y)};e._zod.parse=u,e._zod.run===s&&(e._zod.run=u)})}};function xl(){return Ql}function jl(e,t){const n=e[un]?.backEdges;return n!==void 0&&di(t)&&n.has(t)}var em=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(o){return e[o]??null}const n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",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",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function i(o,s){return o==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[o]??o}return o=>{switch(o.code){case"invalid_type":return`Invalid input: expected ${i(o.expected)}, received ${i(Cd(o.input),o.input)}`;case"invalid_value":return o.values.length===1?`Invalid input: expected ${kr(o.values[0])}`:`Invalid option: expected one of ${Or(o.values,"|")}`;case"too_big":{const s=o.exact?"exactly ":o.inclusive?"<=":"<",u=t(o.origin);return u?`Too big: expected ${o.origin??"value"} to have ${s}${o.maximum.toString()} ${u.unit??"elements"}`:`Too big: expected ${o.origin??"value"} to be ${s}${o.maximum.toString()}`}case"too_small":{const s=o.exact?"exactly ":o.inclusive?">=":">",u=t(o.origin);return u?`Too small: expected ${o.origin} to have ${s}${o.minimum.toString()} ${u.unit}`:`Too small: expected ${o.origin} to be ${s}${o.minimum.toString()}`}case"invalid_format":{const s=o;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??o.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${o.divisor}`;case"unrecognized_keys":return`Unrecognized key${o.keys.length>1?"s":""}: ${Or(o.keys,", ")}`;case"invalid_key":return`Invalid key in ${o.origin}`;case"invalid_union":return o.options&&Array.isArray(o.options)&&o.options.length>0?`Invalid discriminator value. Expected ${o.options.map(s=>`'${s}'`).join(" | ")}`:o.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${o.origin}`;default:return"Invalid input"}}};function tm(){return{localeError:em()}}var li,nm=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){const n=t[0];return this._map.set(e,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};delete n.id;const r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function rm(){return new nm}(li=globalThis).__zod_globalRegistry??(li.__zod_globalRegistry=rm());var Xe=globalThis.__zod_globalRegistry;function mi(e){return e.checks&&(e.checks=[...e.checks]),e}function im(e,t){return new e(mi({type:"string",...M(t)}))}function om(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function am(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function sm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function um(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function cm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function dm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function fm(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function lm(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function mm(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function pm(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function hm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function ym(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function gm(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function _m(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function Om(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function Am(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function Sm(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function Tm(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function vm(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function wm(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function km(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function Rm(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}function Nm(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function Pm(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function bm(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function Cm(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function Mm(e,t){return new e(mi({type:"number",checks:[],...M(t)}))}function Im(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function Dm(e,t){return new e({type:"symbol",...M(t)})}function Jm(e){return new e({type:"unknown"})}function Em(e,t){return new e({type:"never",...M(t)})}function pi(e,t){return new Br({check:"less_than",...M(t),value:e,inclusive:!1})}function dn(e,t){return new Br({check:"less_than",...M(t),value:e,inclusive:!0})}function hi(e,t){return new Ur({check:"greater_than",...M(t),value:e,inclusive:!1})}function fn(e,t){return new Ur({check:"greater_than",...M(t),value:e,inclusive:!0})}function yi(e,t){return new Jf({check:"multiple_of",...M(t),value:e})}function gi(e,t){return new Ff({check:"max_length",...M(t),maximum:e})}function yt(e,t){return new $f({check:"min_length",...M(t),minimum:e})}function _i(e,t){return new Lf({check:"length_equals",...M(t),length:e})}function Fm(e,t){return new zf({check:"string_format",format:"regex",...M(t),pattern:e})}function $m(e){return new Hf({check:"string_format",format:"lowercase",...M(e)})}function Lm(e){return new Bf({check:"string_format",format:"uppercase",...M(e)})}function zm(e,t){return new Uf({check:"string_format",format:"includes",...M(t),includes:e})}function Hm(e,t){return new Zf({check:"string_format",format:"starts_with",...M(t),prefix:e})}function Bm(e,t){return new Gf({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Fe(e){return new qf({check:"overwrite",tx:e})}function Um(e){return Fe(t=>t.normalize(e))}function Zm(){return Fe(e=>e.trim())}function Gm(){return Fe(e=>e.toLowerCase())}function qm(){return Fe(e=>e.toUpperCase())}function Km(){return Fe(e=>gd(e))}function Ym(e,t,n){return new e({type:"array",element:t,...M(n)})}function Vm(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function Wm(e,t){const n=Xm(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(Ye(i,r.value,n._zod.def));else{const o=i;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),"input"in o||(o.input=r.value),o.inst??(o.inst=n),o.continue??(o.continue=!n._zod.def.abort),r.issues.push(Ye(o))}},e(r.value,r)),t);return n}function Xm(e,t){const n=new ae({check:"custom",...M(t)});return n._zod.check=e,n}function Qe(e,...t){for(const n of t)for(const r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&be(e,r,n[r]);return e}function Oi(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Xe,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:[],deferred:[],external:e?.external??void 0}}function Ie(e,t,n,r,i){const o=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(o==="any")return!1;if(o===void 0||o==="throw")throw new Error(i);return Object.assign(n,o),!0}function te(e,t,n={path:[],schemaPath:[]}){var r;const i=e._zod.def,o=t.seen.get(e);if(o)return o.count++,n.schemaPath.includes(e)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;const u=e._zod.toJSONSchema?.();if(u)s.schema=u;else{const d={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,d);else{const m=s.schema,h=t.processors[i.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,t,m,d)}const p=e._zod.parent;p&&(s.ref||(s.ref=p),te(p,t,d),t.seen.get(p).isParent=!0)}const c=t.metadataRegistry.get(e);return c&&Qe(s.schema,c),t.io==="input"&&ie(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function Ai(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Si(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;const r=new Map;for(const s of e.seen.entries()){const u=e.metadataRegistry.get(s[0])?.id;if(u){const c=r.get(u);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${u}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(u,s[0])}}const i=s=>{const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const m=e.external.registry.get(s[0])?.id,h=e.external.uri??(A=>A);if(m)return{ref:h(m)};const _=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=_,{defId:_,ref:`${h("__shared")}#/${u}/${Ai(_)}`}}const c="#",d=`${c}/${u}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};const p=s[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:d+Ai(p)}},o=s=>{if(s[1].schema.$ref)return;const u=s[1],{ref:c,defId:d}=i(s);u.def={...u.schema},d&&(u.defId=d);const p=u.schema;for(const m in p)delete p[m];p.$ref=c};if(e.cycles==="throw")for(const s of e.seen.entries()){const u=s[1];if(u.cycle)throw new Error(`Cycle detected: #/${u.cycle?.join("/")}/<root>
57
57
 
58
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){o(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(u.cycle){o(s);continue}u.count>1&&e.reused==="ref"&&o(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ti(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;Ti(r);const i=Object.keys(r);if(i.length!==1||i[0]!=="type")return;const o=r.type;for(const s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var vi=new Set(["type","properties","required","additionalProperties"]),wi=["oneOf","anyOf"];function ki(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function ln(e){const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const s in o)if(!vi.has(s))return null;t.push(o)}const n={},r=new Set;for(const o of t){for(const s in o.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;const u=[];for(const d of t){const p=d.properties?.[s]??ki(d);p!=null&&(u.some(m=>JSON.stringify(m)===JSON.stringify(p))||u.push(p))}const c=u.length===1?u[0]:ln(u)??{allOf:u};be(n,s,c)}for(const s of o.required??[])r.add(s)}const i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(o=>o.additionalProperties===!1))i.additionalProperties=!1;else{const o=[];for(const s of t){const u=ki(s);u&&!o.some(c=>JSON.stringify(c)===JSON.stringify(u))&&o.push(u)}o.length===1?i.additionalProperties=o[0]:o.length>1&&(i.additionalProperties={allOf:o})}return i}function Xm(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of vi)if(i in e)return;const n=t.filter(i=>wi.some(o=>Array.isArray(i[o])));let r=null;if(!n.length)r=ln(t);else{const i=n[0],o=wi.find(c=>Array.isArray(i[c]));if(Object.keys(i).length!==1)return;const s=t.filter(c=>c!==i),u=i[o].map(c=>ln([...s,c]));if(u.some(c=>!c))return;r={[o]:u}}r&&(delete e.allOf,Qe(e,r))}function Ri(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=e.seen.get(u);if(c.ref===null)return;const d=c.def??c.schema,p={...d},m=c.ref;if(c.ref=null,m){r(m);const _=e.seen.get(m),A=_.schema;if(A.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(A)):Qe(d,A),Qe(d,p),u._zod.parent===m)for(const y in d)y==="$ref"||y==="allOf"||y in p||delete d[y];if(A.$ref&&_.def)for(const y in d)y==="$ref"||y==="allOf"||y in _.def&&JSON.stringify(d[y])===JSON.stringify(_.def[y])&&delete d[y]}const h=u._zod.parent;if(h&&h!==m){r(h);const _=e.seen.get(h);if(_?.schema.$ref&&(d.$ref=_.schema.$ref,_.def))for(const A in d)A==="$ref"||A==="allOf"||A in _.def&&JSON.stringify(d[A])===JSON.stringify(_.def[A])&&delete d[A]}e.override({zodSchema:u,jsonSchema:d,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const u of[...e.seen.entries()].reverse())r(u[0]);if(e.target!=="openapi-3.0")for(const u of e.seen.entries())Ti(u[1].def??u[1].schema);for(const u of e.deferred)u();if(e.intersections.length){const u=new Map;for(const c of e.seen.values())for(const d of[c.schema,c.def]){const p=d?.allOf;if(!Array.isArray(p))continue;const m=u.get(p);m?m.push(d):u.set(p,[d])}for(const c of e.intersections)for(const d of u.get(c)??[])Xm(d)}}const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(u)}Qe(i,n.defId?n.schema:n.def??n.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;const s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const u of e.seen.entries()){const c=u[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,be(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:gt(t,"input",e.processors),output:gt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function ie(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ie(r.element,n);if(r.type==="set")return ie(r.valueType,n);if(r.type==="lazy")return ie(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return ie(r.innerType,n);if(r.type==="intersection")return ie(r.left,n)||ie(r.right,n);if(r.type==="record"||r.type==="map")return ie(r.keyType,n)||ie(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ie(r.in,n)||ie(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ie(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ie(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ie(i,n))return!0;return!!(r.rest&&ie(r.rest,n))}return!1}var Qm=(e,t={})=>n=>{const r=Oi({...n,processors:t});return te(e,r),Si(r,e),Ri(r,e)},gt=(e,t,n={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=Oi({...i??{},target:o,io:t,processors:n});return te(e,s),Si(s,e),Ri(s,e)},$e=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Le=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Ni=(e,t)=>{$e(e,"minimum",t),Le(e,"maximum",t)},Pi=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},bi=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Ci=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},Mi=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Ii=(e,t)=>$e(e,"minimum",t.minimum),Di=(e,t)=>Le(e,"maximum",t.maximum),Ji=e=>(t,n)=>{Mi(t,n.format);const[r,i]=e[n.format];$e(t,"minimum",r),Le(t,"maximum",i)},xm={greater_than:(e,t)=>$e(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Le(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Pi(e,t.value),number_format:Ji(Rr),bigint_format:Ji(Ad),min_length:Ii,max_length:Di,length_equals:(e,t)=>Ni(e,t.length),min_size:Ii,max_size:Di,size_equals:(e,t)=>Ni(e,t.size),string_format:(e,t)=>{Mi(e,t.format),t.pattern&&bi(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Ci(e,t.mime)};function pe(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const o of r)xm[o._zod.def.check]?.(t,o._zod.def);const i=e._zod.bag;i.minimum!==void 0&&$e(t,"minimum",i.minimum),i.exclusiveMinimum!==void 0&&$e(t,"exclusiveMinimum",i.exclusiveMinimum),i.maximum!==void 0&&Le(t,"maximum",i.maximum),i.exclusiveMaximum!==void 0&&Le(t,"exclusiveMaximum",i.exclusiveMaximum),i.multipleOf!==void 0&&Pi(t,i.multipleOf),i.format!==void 0&&(t.format??(t.format=i.format),i.format.includes("int")&&(t.isInt=!0)),i.mime&&Ci(t,i.mime);for(const o of i.patterns??[])bi(t,o);return t}var jm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},ep=new Map([[Wr,Sf],[an,Tf]]),tp=e=>ep.get(e)??e,np=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:u,patterns:c,contentEncoding:d,laxFormat:p}=pe(e);if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=jm[u]??u,i.format===""&&delete i.format,(u==="time"||p)&&delete i.format),d&&(i.contentEncoding=d),c&&c.size>0){const m=[...c].map(tp);m.length===1?i.pattern=m[0].source:m.length>1&&(i.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},rp=(e,t,n,r)=>{const i=n,{minimum:o,maximum:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:d,isInt:p}=pe(e);i.type=p?"integer":"number";const m=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),h=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";if(m?_?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d:typeof o=="number"&&(i.minimum=o),h?_?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof s=="number"&&(i.maximum=s),u){const A=new Set;for(const v of u)Number.isFinite(v)&&v!==0?A.add(Math.abs(v)):Ie(e,t,i,r,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);const[y,...g]=A;y!==void 0&&(i.multipleOf=y),g.length&&(i.allOf=[...i.allOf??[],...g.map(v=>({multipleOf:v}))])}},ip=(e,t,n,r)=>{Ie(e,t,n,r,"Symbols cannot be represented in JSON Schema")},op=(e,t,n,r)=>{n.not={}},ap=(e,t,n,r)=>{},sp=(e,t,n,r)=>{const i=e._zod.def,o=Zt(i.entries);if(o.length===0){n.not={};return}o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},up=(e,t,n,r)=>{Ie(e,t,n,r,"Custom types cannot be represented in JSON Schema")},cp=(e,t,n,r)=>{Ie(e,t,n,r,"Transforms cannot be represented in JSON Schema")},dp=(e,t,n,r)=>{const i=n,o=e._zod.def,{minimum:s,maximum:u}=pe(e);typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=te(o.element,t,{...r,path:[...r.path,"items"]})};function mn(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?mn(t.out):t.type==="catch"?mn(t.innerType):e._zod.optin}var fp=(e,t,n,r)=>{const i=n,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Ie(e,t,i,r,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const c in s)be(i.properties,c,te(s[c],t,{...r,path:[...r.path,"properties",c]}));const u=[];for(const c of Object.keys(s)){const d=o.shape[c];(t.io==="input"?mn(d)===void 0:d._zod.optout===void 0)&&u.push(c)}u.length>0&&(i.required=u),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=te(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},lp=(e,t,n,r)=>{const i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,c)=>te(u,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=s:n.anyOf=s},mp=(e,t,n,r)=>{const i=e._zod.def,o=te(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=te(i.right,t,{...r,path:[...r.path,"allOf",1]}),u=d=>"allOf"in d&&Object.keys(d).length===1,c=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},pp=(e,t,n,r)=>{const i=e._zod.def,o=te(i.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},hp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},pn=Symbol();function Ei(e,t,n,r,i){let o=!1;const s=JSON.stringify(e,(u,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Ie(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),pn):JSON.parse(s)}var yp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;const s=Ei(i.defaultValue,e,t,n,r);s!==pn&&(n.default=s)},gp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);if(o.ref=i.innerType,t.io!=="input")return;const s=Ei(i.defaultValue,e,t,n,r);s!==pn&&(n._prefault=s)},_p=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{Ie(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Op=(e,t,n,r)=>{const i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?o?i.out:i.in:i.out;te(s,t,r);const u=t.seen.get(e);u.ref=s},Ap=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},Fi=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},$i=new WeakSet([Object.prototype,Error.prototype]);function _t(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var Sp=(e,t)=>{Bd.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);$i.has(n)||($i.add(n),_t(n,"format",r=>i=>Gd(r,i)),_t(n,"flatten",r=>i=>Zd(r,i)),_t(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,Gt,2)}),_t(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Gt,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ue=O("ZodError",Sp,void 0,{Parent:Error}),Tp=xt(ue),vp=jt(ue),wp=en(ue),kp=tn(ue),Rp=Xd(ue),Np=Qd(ue),Pp=xd(ue),bp=jd(ue),Cp=ef(ue),Mp=tf(ue),Ip=nf(ue),Dp=rf(ue);function Jp(){me.localeError||ke(em())}function hn(){me.memoizer||ke({memoizer:Ql()})}var j=O("ZodType",(e,t)=>(Jp(),x.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(se(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Te(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Jh(e,t))},superRefine(e,t){return this.check(Eh(e,t))},overwrite(e){return this.check(Fe(e))},optional(){return qi(this)},exactOptional(){return Sh(this)},nullable(){return Yi(this)},nullish(){return qi(Yi(this))},nonoptional(e){return Nh(this,e)},array(){return mh(this)},or(e){return Ui([this,e])},and(e){return _h(this,e)},transform(e){return Wi(this,Ah(e))},default(e){return wh(this,e)},prefault(e){return Rh(this,e)},catch(e){return bh(this,e)},pipe(e){return Wi(this,e)},readonly(){return Ih(this)},describe(e){const t=this.clone();return Xe.add(t,{description:e}),t},meta(...e){if(e.length===0)return Xe.get(this);const t=this.clone();return Xe.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Mr(this,"~standard",{...Gr(this),jsonSchema:{input:gt(this,"input"),output:gt(this,"output")}})},set"~standard"(e){ve(this,"~standard",e)},parse:function e(t,n){return Tp(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await vp(this,t,n,{callee:e})},safeParse(e,t){return wp(this,e,t)},async safeParseAsync(e,t){return kp(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){ve(this,"spa",e)},validate(e,t){return Yd(this,e,t)},validateAsync(e,t){return Wd(this,e,t)},encode:function e(t,n){return Rp(this,t,n,{callee:e})},decode:function e(t,n){return Np(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Pp(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await bp(this,t,n,{callee:e})},safeEncode(e,t){return Cp(this,e,t)},safeDecode(e,t){return Mp(this,e,t)},async safeEncodeAsync(e,t){return Ip(this,e,t)},async safeDecodeAsync(e,t){return Dp(this,e,t)},toJSONSchema(e){return Qm(this,{})(e)},get description(){return Xe.get(this)?.description},get _def(){return this._zod.def}}),Li=O("_ZodString",(e,t)=>{on.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>np(e,n,r,i)},Ir({format:e=>pe(e).format??null,minLength:e=>pe(e).minimum??null,maxLength:e=>pe(e).maximum??null},{regex(...e){return this.check(Em(...e))},includes(...e){return this.check(Lm(...e))},startsWith(...e){return this.check(zm(...e))},endsWith(...e){return this.check(Hm(...e))},min(...e){return this.check(yt(...e))},max(...e){return this.check(gi(...e))},length(...e){return this.check(_i(...e))},nonempty(...e){return this.check(yt(1,...e))},lowercase(e){return this.check(Fm(e))},uppercase(e){return this.check($m(e))},trim(){return this.check(Um())},normalize(...e){return this.check(Bm(...e))},toLowerCase(){return this.check(Zm())},toUpperCase(){return this.check(Gm())},slugify(){return this.check(qm())}})),Ep=O("ZodString",(e,t)=>{on.init(e,t),Li.init(e,t)},{email(e){return this.check(im(Bp,e))},url(e){return this.check(dm(Zp,e))},jwt(e){return this.check(km(ih,e))},emoji(e){return this.check(fm(Gp,e))},guid(e){return this.check(om(Up,e))},uuid(e){return this.check(am(Ot,e))},uuidv4(e){return this.check(sm(Ot,e))},uuidv6(e){return this.check(um(Ot,e))},uuidv7(e){return this.check(cm(Ot,e))},nanoid(e){return this.check(lm(qp,e))},cuid(e){return this.check(mm(Kp,e))},cuid2(e){return this.check(pm(Yp,e))},ulid(e){return this.check(hm(Vp,e))},base64(e){return this.check(Tm(th,e))},base64url(e){return this.check(vm(nh,e))},xid(e){return this.check(ym(Wp,e))},ksuid(e){return this.check(gm(Xp,e))},ipv4(e){return this.check(_m(Qp,e))},ipv6(e){return this.check(Om(xp,e))},cidrv4(e){return this.check(Am(jp,e))},cidrv6(e){return this.check(Sm(eh,e))},e164(e){return this.check(wm(rh,e))},datetime(e){return this.check(Rm($p,e))},date(e){return this.check(Nm(Lp,e))},time(e){return this.check(Pm(zp,e))},duration(e){return this.check(bm(Hp,e))}});function Fp(e){return rm(Ep,e)}var W=O("ZodStringFormat",(e,t)=>{V.init(e,t),Li.init(e,t)}),$p=O("ZodISODateTime",(e,t)=>{dl.init(e,t),W.init(e,t)}),Lp=O("ZodISODate",(e,t)=>{fl.init(e,t),W.init(e,t)}),zp=O("ZodISOTime",(e,t)=>{ll.init(e,t),W.init(e,t)}),Hp=O("ZodISODuration",(e,t)=>{ml.init(e,t),W.init(e,t)}),Bp=O("ZodEmail",(e,t)=>{Xf.init(e,t),W.init(e,t)}),Up=O("ZodGUID",(e,t)=>{Vf.init(e,t),W.init(e,t)}),Ot=O("ZodUUID",(e,t)=>{Wf.init(e,t),W.init(e,t)}),Zp=O("ZodURL",(e,t)=>{nl.init(e,t),W.init(e,t)}),Gp=O("ZodEmoji",(e,t)=>{rl.init(e,t),W.init(e,t)}),qp=O("ZodNanoID",(e,t)=>{il.init(e,t),W.init(e,t)}),Kp=O("ZodCUID",(e,t)=>{ol.init(e,t),W.init(e,t)}),Yp=O("ZodCUID2",(e,t)=>{al.init(e,t),W.init(e,t)}),Vp=O("ZodULID",(e,t)=>{sl.init(e,t),W.init(e,t)}),Wp=O("ZodXID",(e,t)=>{ul.init(e,t),W.init(e,t)}),Xp=O("ZodKSUID",(e,t)=>{cl.init(e,t),W.init(e,t)}),Qp=O("ZodIPv4",(e,t)=>{pl.init(e,t),W.init(e,t)}),xp=O("ZodIPv6",(e,t)=>{yl.init(e,t),W.init(e,t)}),jp=O("ZodCIDRv4",(e,t)=>{gl.init(e,t),W.init(e,t)}),eh=O("ZodCIDRv6",(e,t)=>{Ol.init(e,t),W.init(e,t)}),th=O("ZodBase64",(e,t)=>{Al.init(e,t),W.init(e,t)}),nh=O("ZodBase64URL",(e,t)=>{Tl.init(e,t),W.init(e,t)}),rh=O("ZodE164",(e,t)=>{vl.init(e,t),W.init(e,t)}),ih=O("ZodJWT",(e,t)=>{kl.init(e,t),W.init(e,t)}),zi=O("ZodNumber",(e,t)=>{Xr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rp(e,n,r,i),e.isFinite=!0},Ir({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=pe(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=pe(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=pe(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>pe(e).format??null},{gt(e,t){return this.check(hi(e,t))},gte(e,t){return this.check(fn(e,t))},min(e,t){return this.check(fn(e,t))},lt(e,t){return this.check(pi(e,t))},lte(e,t){return this.check(dn(e,t))},max(e,t){return this.check(dn(e,t))},int(e){return this.check(Hi(e))},safe(e){return this.check(Hi(e))},positive(e){return this.check(hi(0,e))},nonnegative(e){return this.check(fn(0,e))},negative(e){return this.check(pi(0,e))},nonpositive(e){return this.check(dn(0,e))},multipleOf(e,t){return this.check(yi(e,t))},step(e,t){return this.check(yi(e,t))},finite(){return this}}));function oh(e){return Cm(zi,e)}var ah=O("ZodNumberFormat",(e,t)=>{Rl.init(e,t),zi.init(e,t)});function Hi(e){return Mm(ah,e)}var sh=O("ZodSymbol",(e,t)=>{Nl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ip(e,n,r,i)});function uh(e){return Im(sh,e)}var ch=O("ZodUnknown",(e,t)=>{Pl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ap(e,n,r,i)});function Bi(){return Dm(ch)}var dh=O("ZodNever",(e,t)=>{bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>op(e,n,r,i)});function fh(e){return Jm(dh,e)}var lh=O("ZodArray",(e,t)=>{hn(),Cl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dp(e,n,r,i),e.element=t.element},{min(e,t){return this.check(yt(e,t))},nonempty(e){return this.check(yt(1,e))},max(e,t){return this.check(gi(e,t))},length(e,t){return this.check(_i(e,t))},unwrap(){return this.element}});function mh(e,t){return Km(lh,e,t)}var ph=O("ZodObject",(e,t)=>{hn(),Dl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fp(e,n,r,i),Jd(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Zi(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(se(this._zod.def,{catchall:e}))},passthrough(){return this.clone(se(this._zod.def,{catchall:Bi()}))},loose(){return this.clone(se(this._zod.def,{catchall:Bi()}))},strict(){return this.clone(se(this._zod.def,{catchall:fh()}))},strip(){return this.clone(se(this._zod.def,{catchall:void 0}))},extend(e){return vd(this,e)},safeExtend(e){return wd(this,e)},merge(e){return kd(this,e)},pick(e){return Sd(this,e)},omit(e){return Td(this,e)},partial(...e){return Pr(Gi,this,e[0])},exactPartial(...e){return Pr(Ki,this,e[0],"exactPartial")},required(...e){return Rd(Vi,this,e[0])}});function hh(e,t){const n={type:"object",shape:e??{},...M(t)};return new ph(n)}var yh=O("ZodUnion",(e,t)=>{Jl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lp(e,n,r,i),e.options=t.options});function Ui(e,t){return new yh({type:"union",options:e,...M(t)})}var gh=O("ZodIntersection",(e,t)=>{El.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mp(e,n,r,i)});function _h(e,t){return new gh({type:"intersection",left:e,right:t})}var yn=O("ZodEnum",(e,t)=>{Fl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>sp(e,r,i,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new yn({...t,checks:[],...M(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new yn({...t,checks:[],...M(i),entries:o})}});function Zi(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yn({type:"enum",entries:n,...M(t)})}var Oh=O("ZodTransform",(e,t)=>{hn(),$l.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cp(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Er(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ye(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Ye(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Ah(e){return new Oh({type:"transform",transform:e})}var Gi=O("ZodOptional",(e,t)=>{ri.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fi(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function qi(e){return new Gi({type:"optional",innerType:e})}var Ki=O("ZodExactOptional",(e,t)=>{Ll.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fi(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Sh(e){return new Ki({type:"optional",innerType:e})}var Th=O("ZodNullable",(e,t)=>{zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Yi(e){return new Th({type:"nullable",innerType:e})}var vh=O("ZodDefault",(e,t)=>{Hl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function wh(e,t){return new vh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var kh=O("ZodPrefault",(e,t)=>{Bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Rh(e,t){return new kh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var Vi=O("ZodNonOptional",(e,t)=>{Ul.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Nh(e,t){return new Vi({type:"nonoptional",innerType:e,...M(t)})}var Ph=O("ZodCatch",(e,t)=>{Zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_p(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bh(e,t){return new Ph({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Fd(t)})}var Ch=O("ZodPipe",(e,t)=>{Gl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Op(e,n,r,i),e.in=t.in,e.out=t.out});function Wi(e,t){return new Ch({type:"pipe",in:e,out:t})}var Mh=O("ZodReadonly",(e,t)=>{ql.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ap(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ih(e){return new Mh({type:"readonly",innerType:e})}var Dh=O("ZodCustom",(e,t)=>{Kl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>up(e,n,r,i)});function Jh(e,t={}){return Ym(Dh,e,t)}function Eh(e,t){return Vm(e,t)}var Fh=Zi(["ASC","DESC"]),nO=hh({sortBy:Ui([Fp(),oh(),uh()]).optional(),sortOrder:Fh.optional()}),$h=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function Lh(){return new $h}var rO=Lh(),Xi="http://localhost".replace(/\/+$/,""),zh=e=>typeof Blob<"u"&&e instanceof Blob,ce=class{configuration;middleware;constructor(e=new _n){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}async request(e,t){const{url:n,init:r}=this.createFetchParams(e,t),i=await this.fetchApi(n,r);if(i.status>=200&&i.status<300)return i;throw new gn(i,"Response returned an error code")}createFetchParams(e,t){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||zh(e.body)?e.body:JSON.stringify(e.body),i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(s=>i[s]===void 0?delete i[s]:{});const o={method:e.method,body:r,credentials:this.configuration.credentials,..._r({},t,{headers:_r({},i,t?.headers)})};return{url:n,init:o}}fetchApi=async(e,t)=>{let n={url:e,init:t};for(const i of this.middleware)i.pre&&(n=await i.pre({fetch:this.fetchApi,...n})||n);let r=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const i of this.middleware)i.post&&(r=await i.post({fetch:this.fetchApi,url:n.url,init:n.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,t=new e(this.configuration);return t.middleware=this.middleware.slice(),t}},gn=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},Z=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Hh={csv:",",ssv:" ",tsv:" ",pipes:"|"},_n=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Xi}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||On}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}};function Bh(e,t){const n=e[t];return n!=null}function On(e,t=""){return Object.keys(e).map(n=>{const r=t+(t.length?`[${n}]`:n),i=e[n];if(i instanceof Array){const o=i.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${o}`}return i instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?On(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function Uh(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var q=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},Qi=class{raw;constructor(e){this.raw=e}async value(){}},Zh=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},An=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function Gh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function qh(e){return xi(e,!1)}function xi(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function Kh(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var Yh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function Vh(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function Wh(e){return eo(e,!1)}function eo(e,t){return e==null?e:{code:e.code,error:e.error}}function Xh(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var Qh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function xh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0||!("error"in e)||e.error===void 0)}function no(e){return ro(e,!1)}function ro(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function io(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var jh={Coupon:"COUPON"};function ey(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ty(e){return Sn(e,!1)}function Sn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(no)}}function ao(e){return so(e,!1)}function so(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(io)}}var ny={CreditCard:"CREDIT_CARD"};function ry(e){return!(!("name"in e)||e.name===void 0)}function iy(e){return Tn(e,!1)}function Tn(e,t){return e==null?e:{name:e.name}}function uo(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{name:e.name}}var oy={DepositAccount:"DEPOSIT_ACCOUNT"};function ay(e){return!(!("name"in e)||e.name===void 0)}function sy(e){return vn(e,!1)}function vn(e,t){return e==null?e:{name:e.name}}function fo(e){return lo(e,!1)}function lo(e,t=!1){return e==null?e:{name:e.name}}var uy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function cy(e){return!(!("status"in e)||e.status===void 0)}function mo(e){return po(e,!1)}function po(e,t){return e==null?e:{status:e.status}}function ho(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{status:e.status}}var dy={PayLater:"PAY_LATER"};function fy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ly(e){return wn(e,!1)}function wn(e,t){return e==null?e:{name:e.name,payload:mo(e.payload)}}function go(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{name:e.name,payload:ho(e.payload)}}function Oo(e){return Ao(e,!1)}function Ao(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Sn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Tn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...vn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...wn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function So(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ao(e);case"CREDIT_CARD":return uo(e);case"DEPOSIT_ACCOUNT":return fo(e);case"PAY_LATER":return go(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function my(e,t=!1){return So(e)}function py(e){return!0}function kn(e){return To(e,!1)}function To(e,t){return e==null?e:{airConditioning:e.air_conditioning==null?void 0:e.air_conditioning,airportTransportation:e.airport_transportation==null?void 0:e.airport_transportation,businessCenter:e.business_center==null?void 0:e.business_center,carRentDesk:e.car_rent_desk==null?void 0:e.car_rent_desk,childrenAllowed:e.children_allowed==null?void 0:e.children_allowed,clothingIron:e.clothing_iron==null?void 0:e.clothing_iron,coffeeTeaMaker:e.coffee_tea_maker==null?void 0:e.coffee_tea_maker,combination:e.combination==null?void 0:e.combination,continentalBreakfast:e.continental_breakfast==null?void 0:e.continental_breakfast,dataPorts:e.data_ports==null?void 0:e.data_ports,dryCleaning:e.dry_cleaning==null?void 0:e.dry_cleaning,electronicRoomKeys:e.electronic_room_keys==null?void 0:e.electronic_room_keys,exteriorRoomEntrance:e.exterior_room_entrance==null?void 0:e.exterior_room_entrance,familyRooms:e.family_rooms==null?void 0:e.family_rooms,fitnessFacility:e.fitness_facility==null?void 0:e.fitness_facility,gameRoom:e.game_room==null?void 0:e.game_room,golfCourse:e.golf_course==null?void 0:e.golf_course,hairDryer:e.hair_dryer==null?void 0:e.hair_dryer,handicapAccessible:e.handicap_accessible==null?void 0:e.handicap_accessible,inHouseBar:e.in_house_bar==null?void 0:e.in_house_bar,inHouseDining:e.in_house_dining==null?void 0:e.in_house_dining,inRoomMovies:e.in_room_movies==null?void 0:e.in_room_movies,indoorPool:e.indoor_pool==null?void 0:e.indoor_pool,interiorRoomEntrance:e.interior_room_entrance==null?void 0:e.interior_room_entrance,kitchen:e.kitchen==null?void 0:e.kitchen,map:e.map==null?void 0:e.map,meetingRooms:e.meeting_rooms==null?void 0:e.meeting_rooms,miniBarInRoom:e.mini_bar_in_room==null?void 0:e.mini_bar_in_room,nonSmokingRooms:e.non_smoking_rooms==null?void 0:e.non_smoking_rooms,outdoorPool:e.outdoor_pool==null?void 0:e.outdoor_pool,parkingGarage:e.parking_garage==null?void 0:e.parking_garage,petsAllowed:e.pets_allowed==null?void 0:e.pets_allowed,restrictedAccess:e.restricted_access==null?void 0:e.restricted_access,roomService:e.room_service==null?void 0:e.room_service,safe:e.safe==null?void 0:e.safe,sauna:e.sauna==null?void 0:e.sauna,tVInRoom:e.t_v_in_room==null?void 0:e.t_v_in_room,tennisCourt:e.tennis_court==null?void 0:e.tennis_court,twentyFourHourSecurity:e.twenty_four_hour_security==null?void 0:e.twenty_four_hour_security,valetParking:e.valet_parking==null?void 0:e.valet_parking,videoCheckOut:e.video_check_out==null?void 0:e.video_check_out,voiceMail:e.voice_mail==null?void 0:e.voice_mail,wakeUpService:e.wake_up_service==null?void 0:e.wake_up_service,whirpool:e.whirpool==null?void 0:e.whirpool}}function Rn(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{air_conditioning:e.airConditioning,airport_transportation:e.airportTransportation,business_center:e.businessCenter,car_rent_desk:e.carRentDesk,children_allowed:e.childrenAllowed,clothing_iron:e.clothingIron,coffee_tea_maker:e.coffeeTeaMaker,combination:e.combination,continental_breakfast:e.continentalBreakfast,data_ports:e.dataPorts,dry_cleaning:e.dryCleaning,electronic_room_keys:e.electronicRoomKeys,exterior_room_entrance:e.exteriorRoomEntrance,family_rooms:e.familyRooms,fitness_facility:e.fitnessFacility,game_room:e.gameRoom,golf_course:e.golfCourse,hair_dryer:e.hairDryer,handicap_accessible:e.handicapAccessible,in_house_bar:e.inHouseBar,in_house_dining:e.inHouseDining,in_room_movies:e.inRoomMovies,indoor_pool:e.indoorPool,interior_room_entrance:e.interiorRoomEntrance,kitchen:e.kitchen,map:e.map,meeting_rooms:e.meetingRooms,mini_bar_in_room:e.miniBarInRoom,non_smoking_rooms:e.nonSmokingRooms,outdoor_pool:e.outdoorPool,parking_garage:e.parkingGarage,pets_allowed:e.petsAllowed,restricted_access:e.restrictedAccess,room_service:e.roomService,safe:e.safe,sauna:e.sauna,t_v_in_room:e.tVInRoom,tennis_court:e.tennisCourt,twenty_four_hour_security:e.twentyFourHourSecurity,valet_parking:e.valetParking,video_check_out:e.videoCheckOut,voice_mail:e.voiceMail,wake_up_service:e.wakeUpService,whirpool:e.whirpool}}function hy(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function yy(e){return wo(e,!1)}function wo(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function gy(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function _y(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function At(e){return Ro(e,!1)}function Ro(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function St(e){return No(e,!1)}function No(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var Tt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Oy(e){for(const t in Tt)if(Object.prototype.hasOwnProperty.call(Tt,t)&&Tt[t]===e)return!0;return!1}function xe(e){return Po(e,!1)}function Po(e,t){return e}function Ay(e){return e}function Sy(e,t){return e}function Ty(e){return!(!("isHeroImage"in e)||e.isHeroImage===void 0||!("l"in e)||e.l===void 0||!("m"in e)||e.m===void 0||!("s"in e)||e.s===void 0||!("xl"in e)||e.xl===void 0||!("xs"in e)||e.xs===void 0)}function ze(e){return bo(e,!1)}function bo(e,t){return e==null?e:{caption:e.caption==null?void 0:e.caption,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function je(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function vy(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Mo(e){return Io(e,!1)}function Io(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(ze),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function Do(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(je),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}var vt={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function wy(e){for(const t in vt)if(Object.prototype.hasOwnProperty.call(vt,t)&&vt[t]===e)return!0;return!1}function Eo(e){return Fo(e,!1)}function Fo(e,t){return e}function ky(e){return e}function Ry(e,t){return e}var Ny={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},Py={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function by(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function Nn(e){return $o(e,!1)}function $o(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,code:e.code==null?void 0:e.code,description:e.description==null?void 0:e.description,percentage:e.percentage==null?void 0:e.percentage,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function Pn(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}var wt={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"};function Cy(e){for(const t in wt)if(Object.prototype.hasOwnProperty.call(wt,t)&&wt[t]===e)return!0;return!1}function he(e){return zo(e,!1)}function zo(e,t){return e}function My(e){return e}function Iy(e,t){return e}function Dy(e){return!(!("name"in e)||e.name===void 0)}function kt(e){return Ho(e,!1)}function Ho(e,t){return e==null?e:{bg:e.bg==null?void 0:e.bg,color:e.color==null?void 0:e.color,description:e.description==null?void 0:e.description,faIcon:e.fa_icon==null?void 0:e.fa_icon,name:e.name}}function Rt(e){return Bo(e,!1)}function Bo(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var Jy={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Ey={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},Fy={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function $y(e){return!(!("breakfastOption"in e)||e.breakfastOption===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRooms"in e)||e.hotelRooms===void 0||!("price"in e)||e.price===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("stayTaxesInfo"in e)||e.stayTaxesInfo===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0)}function He(e){return Uo(e,!1)}function Uo(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:Eo(e.breakfast_option),breakfastPricePerGuestPerNight:e.breakfast_price_per_guest_per_night==null?void 0:e.breakfast_price_per_guest_per_night,breakfastUnitPrice:e.breakfast_unit_price==null?void 0:e.breakfast_unit_price,cancellationPolicies:e.cancellation_policies.map(At),count:e.count==null?void 0:e.count,currency:he(e.currency),flexOptionEligible:e.flex_option_eligible==null?void 0:e.flex_option_eligible,hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(Mo),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:xe(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(kt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Nn),type:e.type==null?void 0:e.type}}function Be(e){return Zo(e,!1)}function Zo(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,breakfast_option:e.breakfastOption,breakfast_price_per_guest_per_night:e.breakfastPricePerGuestPerNight,breakfast_unit_price:e.breakfastUnitPrice,cancellation_policies:e.cancellationPolicies.map(St),count:e.count,currency:e.currency,flex_option_eligible:e.flexOptionEligible,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(Do),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags==null?void 0:e.tags.map(Rt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Pn),type:e.type}}var Nt={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function Ly(e){for(const t in Nt)if(Object.prototype.hasOwnProperty.call(Nt,t)&&Nt[t]===e)return!0;return!1}function Pt(e){return Go(e,!1)}function Go(e,t){return e}function zy(e){return e}function Hy(e,t){return e}var bt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function By(e){for(const t in bt)if(Object.prototype.hasOwnProperty.call(bt,t)&&bt[t]===e)return!0;return!1}function Ct(e){return qo(e,!1)}function qo(e,t){return e}function Uy(e){return e}function Zy(e,t){return e}function Gy(e){return!(!("address"in e)||e.address===void 0||!("city"in e)||e.city===void 0||!("country"in e)||e.country===void 0||!("name"in e)||e.name===void 0||!("zipCode"in e)||e.zipCode===void 0)}function Ko(e){return Yo(e,!1)}function Yo(e,t){return e==null?e:{address:e.address,city:e.city,country:Ct(e.country),name:e.name,state:e.state==null?void 0:e.state,vatNumber:e.vat_number==null?void 0:e.vat_number,zipCode:e.zip_code}}function Vo(e){return Wo(e,!1)}function Wo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}var qy={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Ky(e){return!(!("email"in e)||e.email===void 0||!("firstName"in e)||e.firstName===void 0||!("lastName"in e)||e.lastName===void 0||!("nationality"in e)||e.nationality===void 0||!("phone"in e)||e.phone===void 0)}function bn(e){return Xo(e,!1)}function Xo(e,t){return e==null?e:{address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,country:e.country==null?void 0:Ct(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:Pt(e.lang),lastName:e.last_name,nationality:Ct(e.nationality),organization:e.organization==null?void 0:Ko(e.organization),phone:e.phone,remarks:e.remarks==null?void 0:e.remarks,salutation:e.salutation==null?void 0:e.salutation,state:e.state==null?void 0:e.state,zipCode:e.zip_code==null?void 0:e.zip_code}}function Cn(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,email:e.email,first_name:e.firstName,lang:e.lang,last_name:e.lastName,nationality:e.nationality,organization:Vo(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Yy(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function xo(e){return jo(e,!1)}function jo(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function ea(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var Vy={Coupon:"COUPON"};function Wy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Xy(e){return Mn(e,!1)}function Mn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(xo)}}function na(e){return ra(e,!1)}function ra(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(ea)}}function Qy(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function ia(e){return oa(e,!1)}function oa(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function aa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var xy={CreditCard:"CREDIT_CARD"};function jy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function eg(e){return In(e,!1)}function In(e,t){return e==null?e:{name:e.name,payload:ia(e.payload)}}function ua(e){return ca(e,!1)}function ca(e,t=!1){return e==null?e:{name:e.name,payload:aa(e.payload)}}function tg(e){return!(!("amount"in e)||e.amount===void 0)}function da(e){return fa(e,!1)}function fa(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token==null?void 0:e.token}}function la(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var ng={DepositAccount:"DEPOSIT_ACCOUNT"};function rg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ig(e){return Dn(e,!1)}function Dn(e,t){return e==null?e:{name:e.name,payload:da(e.payload)}}function pa(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{name:e.name,payload:la(e.payload)}}var og={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function ag(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function ya(e){return ga(e,!1)}function ga(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,status:e.status,token:e.token==null?void 0:e.token}}function _a(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var sg={PayLater:"PAY_LATER"};function ug(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function cg(e){return Jn(e,!1)}function Jn(e,t){return e==null?e:{name:e.name,payload:ya(e.payload)}}function Aa(e){return Sa(e,!1)}function Sa(e,t=!1){return e==null?e:{name:e.name,payload:_a(e.payload)}}function Ta(e){return va(e,!1)}function va(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Mn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...In(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Dn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Jn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function En(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return na(e);case"CREDIT_CARD":return ua(e);case"DEPOSIT_ACCOUNT":return pa(e);case"PAY_LATER":return Aa(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function dg(e,t=!1){return En(e)}var fg={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function lg(e){return!(!("status"in e)||e.status===void 0)}function wa(e){return ka(e,!1)}function ka(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,reference:e.reference==null?void 0:e.reference,status:e.status}}function Ra(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var mg={CreditNote:"credit_note",Invoice:"invoice"};function pg(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function Pa(e){return ba(e,!1)}function ba(e,t){return e==null?e:{type:e.type,url:e.url}}function Ca(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var hg={Insurance:"insurance"};function yg(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function Fn(e){return Ia(e,!1)}function Ia(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function $n(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function gg(e){return!0}function Mt(e){return Ja(e,!1)}function Ja(e,t){return e==null?e:{latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function It(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function _g(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Fa(e){return $a(e,!1)}function $a(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(ze),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function La(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(je),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}function Og(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function Dt(e){return Ha(e,!1)}function Ha(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function Ba(e){return Ua(e,!1)}function Ua(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function Ag(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function Ln(e){return Za(e,!1)}function Za(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:Fa(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(Dt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function Ga(e){return qa(e,!1)}function qa(e,t=!1){return e==null?e:{hotel_room:La(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(Ba),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var Sg={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Tg={BkgCx:"bkg-cx",BkgCf:"bkg-cf",BkgCreated:"bkg-created",BkgAf:"bkg-af",BkgIp:"bkg-ip",BkgPc:"bkg-pc",BkgPp:"bkg-pp",BkgQr:"bkg-qr"};function vg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("contactPerson"in e)||e.contactPerson===void 0||!("createdAt"in e)||e.createdAt===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("lastStatusUpdatedAt"in e)||e.lastStatusUpdatedAt===void 0||!("reference"in e)||e.reference===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("status"in e)||e.status===void 0||!("taxAmount"in e)||e.taxAmount===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("terms"in e)||e.terms===void 0)}function le(e){return Ka(e,!1)}function Ka(e,t){return e==null?e:{additionalCheckInInstruction:e.additional_check_in_instruction==null?void 0:e.additional_check_in_instruction,additionalPolicies:e.additional_policies==null?void 0:e.additional_policies,addons:e.addons==null?void 0:e.addons.map(Fn),adultCount:e.adult_count,bookingGroupId:e.booking_group_id==null?void 0:e.booking_group_id,canceledAt:e.canceled_at==null?void 0:e.canceled_at,cancellationPolicies:e.cancellation_policies.map(At),cancellationPolicyRemarks:e.cancellation_policy_remarks==null?void 0:e.cancellation_policy_remarks,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,confirmedAt:e.confirmed_at==null?void 0:e.confirmed_at,contactPerson:bn(e.contact_person),createdAt:e.created_at,currency:he(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:Mt(e.event),failedAt:e.failed_at==null?void 0:e.failed_at,hotelConfirmationId:e.hotel_confirmation_id==null?void 0:e.hotel_confirmation_id,hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(Ln),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:wa(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Pa),lastStatusUpdatedAt:e.last_status_updated_at,metadata:e.metadata==null?void 0:e.metadata,payLater:e.pay_later==null?void 0:e.pay_later,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Ta),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:xe(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Nn),terms:e.terms,token:e.token==null?void 0:e.token}}function Ya(e){return Va(e,!1)}function Va(e,t=!1){return e==null?e:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,addons:e.addons==null?void 0:e.addons.map($n),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(St),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Cn(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:It(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(Ga),id:e.id,insurance:Ra(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Ca),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(En),penalty_percentage:e.penaltyPercentage,reference:e.reference,source_market:e.sourceMarket,status:e.status,tax_amount:e.taxAmount,tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Pn),terms:e.terms,token:e.token}}var wg={Insurance:"insurance"};function kg(e){return!(!("type"in e)||e.type===void 0)}function Wa(e){return Xa(e,!1)}function Xa(e,t){return e==null?e:{type:e.type}}function Qa(e){return xa(e,!1)}function xa(e,t=!1){return e==null?e:{type:e.type}}function Rg(e){return!(!("fullname"in e)||e.fullname===void 0)}function ja(e){return es(e,!1)}function es(e,t){return e==null?e:{fullname:e.fullname}}function ts(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{fullname:e.fullname}}function Ng(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function rs(e){return is(e,!1)}function is(e,t){return e==null?e:{guests:e.guests.map(ja),hotelRoomId:e.hotel_room_id}}function os(e){return as(e,!1)}function as(e,t=!1){return e==null?e:{guests:e.guests.map(ts),hotel_room_id:e.hotelRoomId}}function Pg(e){return!0}function Ue(e){return ss(e,!1)}function ss(e,t){return e==null?e:{dateEnd:e.date_end==null?void 0:e.date_end,dateStart:e.date_start==null?void 0:e.date_start,id:e.id==null?void 0:e.id,imageUrl:e.image_url==null?void 0:e.image_url,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function Ze(e){return us(e,!1)}function us(e,t=!1){return e==null?e:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function bg(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function cs(e){return ds(e,!1)}function ds(e,t){return e==null?e:{couponIds:e.coupon_ids}}function fs(e){return ls(e,!1)}function ls(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Cg={Coupon:"COUPON"};function Mg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Ig(e){return zn(e,!1)}function zn(e,t){return e==null?e:{name:e.name,payload:cs(e.payload)}}function ms(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{name:e.name,payload:fs(e.payload)}}var Dg={CreditCard:"CREDIT_CARD"};function Jg(e){return!(!("name"in e)||e.name===void 0)}function Eg(e){return Hn(e,!1)}function Hn(e,t){return e==null?e:{name:e.name}}function hs(e){return ys(e,!1)}function ys(e,t=!1){return e==null?e:{name:e.name}}var Fg={DepositAccount:"DEPOSIT_ACCOUNT"};function $g(e){return!(!("name"in e)||e.name===void 0)}function Lg(e){return Bn(e,!1)}function Bn(e,t){return e==null?e:{name:e.name}}function gs(e){return _s(e,!1)}function _s(e,t=!1){return e==null?e:{name:e.name}}function Un(e){return Os(e,!1)}function Os(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...zn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Hn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Bn(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function Jt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ms(e);case"CREDIT_CARD":return hs(e);case"DEPOSIT_ACCOUNT":return gs(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function zg(e,t=!1){return Jt(e)}function Hg(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function Bg(e){return As(e,!1)}function As(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Wa),bookingPolicyId:e.booking_policy_id,contactPerson:bn(e.contact_person),eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(rs),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Un),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function Ss(e){return Ts(e,!1)}function Ts(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Qa),booking_policy_id:e.bookingPolicyId,contact_person:Cn(e.contactPerson),event_metadata:Ze(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(os),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(Jt),tracking_id:e.trackingId}}function Ug(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("expiresAt"in e)||e.expiresAt===void 0||!("hasRoomingLists"in e)||e.hasRoomingLists===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("id"in e)||e.id===void 0||!("isCancellationPoliciesUpdated"in e)||e.isCancellationPoliciesUpdated===void 0||!("isPriceIncreased"in e)||e.isPriceIncreased===void 0)}function Zn(e){return vs(e,!1)}function vs(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Fn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(At),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function Zg(e){return ws(e,!1)}function ws(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map($n),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(St),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt==null?e.expiresAt:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function Gg(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function qg(e){return ks(e,!1)}function ks(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,hotelRoomOfferId:e.hotel_room_offer_id,lang:e.lang==null?void 0:Pt(e.lang)}}function Rs(e){return Ns(e,!1)}function Ns(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function Kg(e){return!0}function Ps(e){return bs(e,!1)}function bs(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count}}function Cs(e){return Ms(e,!1)}function Ms(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Yg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Is(e){return Ds(e,!1)}function Ds(e,t){return e==null?e:{data:e.data.map(le),meta:Ps(e.meta)}}function Vg(e){return Js(e,!1)}function Js(e,t=!1){return e==null?e:{data:e.data.map(Ya),meta:Cs(e.meta)}}var Wg={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"};function Xg(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function Qg(e){return Es(e,!1)}function Es(e,t){return e==null?e:{documentationUrl:e.documentation_url==null?void 0:e.documentation_url,error:e.error==null?void 0:e.error,message:e.message==null?void 0:e.message,statusCode:e.statusCode,type:e.type==null?void 0:e.type}}function xg(e){return Fs(e,!1)}function Fs(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function jg(e){return!(!("rating"in e)||e.rating===void 0)}function Gn(e){return $s(e,!1)}function $s(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function qn(e){return Ls(e,!1)}function Ls(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function e_(e){return!0}function Kn(e){return zs(e,!1)}function zs(e,t){return e==null?e:{count:e.count==null?void 0:e.count,highres:e.highres==null?void 0:e.highres,lowres:e.lowres==null?void 0:e.lowres,prefix:e.prefix==null?void 0:e.prefix,suffix:e.suffix==null?void 0:e.suffix,thumb:e.thumb==null?void 0:e.thumb}}function Yn(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function t_(e){return!0}function Bs(e){return Us(e,!1)}function Us(e,t){return e==null?e:{driving:e.driving==null?void 0:e.driving,transit:e.transit==null?void 0:e.transit,walking:e.walking==null?void 0:e.walking}}function Zs(e){return Gs(e,!1)}function Gs(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function n_(e){return!(!("name"in e)||e.name===void 0)}function Vn(e){return qs(e,!1)}function qs(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:Bs(e.travel_times)}}function Wn(e){return Ks(e,!1)}function Ks(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Zs(e.travelTimes)}}function r_(e){return!(!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0)}function Ys(e){return Vs(e,!1)}function Vs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:kn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:he(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images==null?void 0:e.hotel_images.map(ze),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Gn),id:e.id,images:e.images==null?void 0:Kn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(kt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website}}function i_(e){return Ws(e,!1)}function Ws(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Rn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages==null?void 0:e.hotelImages.map(je),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(qn),id:e.id,images:Yn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(Rt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website}}function o_(e){return!(!("hotelImages"in e)||e.hotelImages===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Xs(e){return Qs(e,!1)}function Qs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:kn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:he(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images.map(ze),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Gn),id:e.id,images:e.images==null?void 0:Kn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(kt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(He)}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Rn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages.map(je),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(qn),id:e.id,images:Yn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(Rt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Be)}}function a_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("roomCount"in e)||e.roomCount===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function Xn(e){return eu(e,!1)}function eu(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,createdAt:e.created_at,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:xe(e.source_market)}}function s_(e){return tu(e,!1)}function tu(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,created_at:e.createdAt,event_metadata:Ze(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function u_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("roomCount"in e)||e.roomCount===void 0)}function c_(e){return nu(e,!1)}function nu(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function ru(e){return iu(e,!1)}function iu(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function d_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelOffers"in e)||e.hotelOffers===void 0)}function ou(e){return au(e,!1)}function au(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelOffers:e.hotel_offers.map(Xs),priceHistogram:e.price_histogram==null?void 0:e.price_histogram,priceMax:e.price_max==null?void 0:e.price_max,priceMin:e.price_min==null?void 0:e.price_min}}function su(e){return uu(e,!1)}function uu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_offers:e.hotelOffers.map(xs),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var Et={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function f_(e){for(const t in Et)if(Object.prototype.hasOwnProperty.call(Et,t)&&Et[t]===e)return!0;return!1}function cu(e){return du(e,!1)}function du(e,t){return e}function l_(e){return e}function m_(e,t){return e}function p_(e){return!(!("status"in e)||e.status===void 0)}function Qn(e){return fu(e,!1)}function fu(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count,status:cu(e.status)}}function xn(e){return lu(e,!1)}function lu(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function h_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function mu(e){return pu(e,!1)}function pu(e,t){return e==null?e:{data:ou(e.data),event:e.event==null?void 0:Mt(e.event),meta:Qn(e.meta)}}function y_(e){return hu(e,!1)}function hu(e,t=!1){return e==null?e:{data:su(e.data),event:It(e.event),meta:xn(e.meta)}}function g_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function yu(e){return gu(e,!1)}function gu(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer)}}function __(e){return _u(e,!1)}function _u(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer)}}function O_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function jn(e){return Ou(e,!1)}function Ou(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:xe(e.source_market)}}function A_(e){return Au(e,!1)}function Au(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function S_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0)}function T_(e){return Su(e,!1)}function Su(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function Tu(e){return vu(e,!1)}function vu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function v_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0||!("hotelTimezone"in e)||e.hotelTimezone===void 0)}function wu(e){return ku(e,!1)}function ku(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(He),hotelTimezone:e.hotel_timezone}}function Ru(e){return Nu(e,!1)}function Nu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offers:e.hotelRoomOffers.map(Be),hotel_timezone:e.hotelTimezone}}function w_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Pu(e){return bu(e,!1)}function bu(e,t){return e==null?e:{data:wu(e.data),event:e.event==null?void 0:Mt(e.event),meta:Qn(e.meta)}}function k_(e){return Cu(e,!1)}function Cu(e,t=!1){return e==null?e:{data:Ru(e.data),event:It(e.event),meta:xn(e.meta)}}function R_(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Mu(e){return Iu(e,!1)}function Iu(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function Du(e){return Ju(e,!1)}function Ju(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function N_(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function P_(e){return Eu(e,!1)}function Eu(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,currency:he(e.currency),hotelRoomOffers:e.hotel_room_offers.map(Mu),lang:e.lang==null?void 0:Pt(e.lang)}}function Fu(e){return $u(e,!1)}function $u(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(Du),lang:e.lang}}function b_(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function C_(e){return Lu(e,!1)}function Lu(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function zu(e){return Hu(e,!1)}function Hu(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function M_(e){return!(!("fullname"in e)||e.fullname===void 0)}function I_(e){return Bu(e,!1)}function Bu(e,t){return e==null?e:{fullname:e.fullname}}function Uu(e){return Zu(e,!1)}function Zu(e,t=!1){return e==null?e:{fullname:e.fullname}}function D_(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function J_(e){return Gu(e,!1)}function Gu(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(Un)}}function qu(e){return Ku(e,!1)}function Ku(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(Jt)}}var E_={AddOrRemoveNights:"add_or_remove_nights",AddOrRemovePerson:"add_or_remove_person",ChangeDates:"change_dates",ChangeGuestName:"change_guest_name",EarlyCheckIn:"early_check_in",EarlyCheckInLateCheckOut:"early_check_in_late_check_out",LateCheckOut:"late_check_out",Other:"other",SpecialRequest:"special_request"};function F_(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function $_(e){return Yu(e,!1)}function Yu(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Vu(e){return Wu(e,!1)}function Wu(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Xu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Zn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={};e.couponCodes&&(n.coupon_codes=e.couponCodes);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>o.map(Oo))}async paymentMethods(e,t){return await(await this.paymentMethodsRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:F(n,D.Snake),body:F(Rs(e.bookingPoliciesCreateApi),D.Snake)},t);return new q(i,o=>Zn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Qu=class extends ce{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:F({},D.Snake)},t);return new q(n,r=>le(r))}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async listRaw(e,t){const n={};e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(n.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(n.filter_by_status=e.filterByStatus),e.limit!==void 0&&(n.limit=e.limit),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Is(o))}async list(e={},t){return await(await this.listRaw(e,t)).value()}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new Z("customerName","Required parameter requestParameters.customerName was null or undefined when calling getV1BookingsTokenCertificate.");const n={};e.customerName!==void 0&&(n.customer_name=e.customerName),e.locale!==void 0&&(n.locale=e.locale);const r=await this.request({path:"/v1/bookings/{token}/certificate".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F(n,D.Snake)},t);return new Qi(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F({},D.Snake)},t);return new q(n,r=>le(r))}async retrievePublic(e,t){return await(await this.retrievePublicRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:F(n,D.Snake),body:F(Ss(e.bookingCreateApi),D.Snake)},t);return new q(i,o=>le(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new Z("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async couponCharge(e,t){return await(await this.couponChargeRaw(e,t)).value()}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async paylater(e,t){return await(await this.paylaterRaw(e,t)).value()}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async confirmpaylater(e,t){return await(await this.confirmpaylaterRaw(e,t)).value()}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async confirm(e,t){return await(await this.confirmRaw(e,t)).value()}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1BookingsTokenRequest.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/bookings/{token}/request".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:F(n,D.Snake),body:F(Vu(e.requestPayload),D.Snake)},t);return new An(i)}async submitRequest(e,t){return await(await this.submitRequestRaw(e,t)).value()}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:F(n,D.Snake),body:F(qu(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return new q(i,o=>le(o))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},L_={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},z_={Asc:"asc",Desc:"desc"},xu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>o.map(ze))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},ju=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Xn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:F(n,D.Snake),body:F(ru(e.hotelOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>Xn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},ec=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new Z("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(n.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(n.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(n.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>mu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:ur.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?rt(r,i,t):rt(r,i)}},H_={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},B_={Asc:"asc",Desc:"desc"},tc=class extends ce{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:F({},D.Snake)},t);return new An(n)}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:F(n,D.Snake),body:F(Uu(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return new q(i,o=>Dt(o))}async update(e,t){return await(await this.updateRaw(e,t)).value()}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:F(n,D.Snake),body:F(zu(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return new q(i,o=>Dt(o))}async create(e,t){return await(await this.createRaw(e,t)).value()}},nc=class extends ce{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F(n,D.Snake)},t);return new q(r,i=>i.map(Ln))}async list(e,t){return await(await this.listRaw(e,t)).value()}},rc=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>F(o,D.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},ic=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>jn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:F(n,D.Snake),body:F(Tu(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>jn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},oc=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new Z("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Pu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:ur.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?rt(r,i,t):rt(r,i)}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:F(n,D.Snake),body:F(Fu(e.hotelRoomOffersCreateApi),D.Snake)},t);return new q(i,o=>yu(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},ac=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),e.eventId!==void 0&&(n.event_id=e.eventId),e.eventSlug!==void 0&&(n.event_slug=e.eventSlug),e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Ys(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},sc=class extends gn{documentationUrl;status;title;type;constructor(e){super(e.response,e.body?.message??`Request failed with status ${e.status}`),this.status=e.status,this.type=e.body?.type,this.title=e.body?.title,this.documentationUrl=e.body?.documentationUrl}},U_=class{async post(e){const{response:t}=e;if(t.ok)return;let n;try{n=await t.clone().json()}catch{n=void 0}throw new sc({body:n,response:t,status:t.status})}},uc=e=>({bookingPolicies:new Xu(e),bookings:new Qu(e),hotelImages:new xu(e),hotelOfferRequests:new ju(e),hotelOffers:new ec(e),hotelRoomingListGuests:new tc(e),hotelRoomingLists:new nc(e),hotelRoomOfferImages:new rc(e),hotelRoomOfferRequests:new ic(e),hotelRoomOffers:new oc(e),hotels:new ac(e)});function Z_(e){switch(e){case Je.CiCd:return"AUTH_TOKEN_CICD";case Je.Local:return"AUTH_TOKEN_LOCAL";case Je.Production:return"AUTH_TOKEN";case Je.Sandbox:return"AUTH_TOKEN_SANDBOX";case Je.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function cc(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Z_(e))))}var G_=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",cc(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},q_=class{config;constructor(e){this.config=e}async pre(e){return cc(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},K_=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(ar).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(ar))}`);let t={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(t={...t,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let r=this.config.apiBaseUrl??pc[n];!this.config.apiBaseUrl&&n===Je.Local&&(r="http://127.0.0.1:3001");const i=new _n({basePath:r,fetchApi:yc.default,headers:t,middleware:[new G_(this.config),new q_(this.config),new U_]});this.apiVersionsToClient={v1:uc(i)}}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotelRoomOfferImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}};a.AllowedPaymentMethodApiFromJSON=Oo,a.AllowedPaymentMethodApiFromJSONTyped=Ao,a.AllowedPaymentMethodApiToJSON=So,a.AllowedPaymentMethodApiToJSONTyped=my,a.AllowedPaymentMethodCouponApiFromJSON=ty,a.AllowedPaymentMethodCouponApiFromJSONTyped=Sn,a.AllowedPaymentMethodCouponApiNameEnum=jh,a.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=Qh,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=no,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=ro,a.AllowedPaymentMethodCouponApiPayloadInnerToJSON=io,a.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=oo,a.AllowedPaymentMethodCouponApiToJSON=ao,a.AllowedPaymentMethodCouponApiToJSONTyped=so,a.AllowedPaymentMethodCreditCardApiFromJSON=iy,a.AllowedPaymentMethodCreditCardApiFromJSONTyped=Tn,a.AllowedPaymentMethodCreditCardApiNameEnum=ny,a.AllowedPaymentMethodCreditCardApiToJSON=uo,a.AllowedPaymentMethodCreditCardApiToJSONTyped=co,a.AllowedPaymentMethodDepositAccountApiFromJSON=sy,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=vn,a.AllowedPaymentMethodDepositAccountApiNameEnum=oy,a.AllowedPaymentMethodDepositAccountApiToJSON=fo,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=lo,a.AllowedPaymentMethodPayLaterApiFromJSON=ly,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=wn,a.AllowedPaymentMethodPayLaterApiNameEnum=dy,a.AllowedPaymentMethodPayLaterApiPayloadFromJSON=mo,a.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=po,a.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=uy,a.AllowedPaymentMethodPayLaterApiPayloadToJSON=ho,a.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=yo,a.AllowedPaymentMethodPayLaterApiToJSON=go,a.AllowedPaymentMethodPayLaterApiToJSONTyped=_o,a.AmenitiesApiFromJSON=kn,a.AmenitiesApiFromJSONTyped=To,a.AmenitiesApiToJSON=Rn,a.AmenitiesApiToJSONTyped=vo,a.ApiClient=K_,a.ApiError=sc,a.BASE_PATH=Xi,a.BaseAPI=ce,a.BedApiFromJSON=yy,a.BedApiFromJSONTyped=wo,a.BedApiToJSON=gy,a.BedApiToJSONTyped=ko,a.BlobApiResponse=Zh,a.BookingApiFromJSON=le,a.BookingApiFromJSONTyped=Ka,a.BookingApiPayLaterEnum=Sg,a.BookingApiStatusEnum=Tg,a.BookingApiToJSON=Ya,a.BookingApiToJSONTyped=Va,a.BookingCreateApiFromJSON=Bg,a.BookingCreateApiFromJSONTyped=As,a.BookingCreateApiGuestsListInnerFromJSON=rs,a.BookingCreateApiGuestsListInnerFromJSONTyped=is,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=ja,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=es,a.BookingCreateApiGuestsListInnerGuestsInnerToJSON=ts,a.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=ns,a.BookingCreateApiGuestsListInnerToJSON=os,a.BookingCreateApiGuestsListInnerToJSONTyped=as,a.BookingCreateApiToJSON=Ss,a.BookingCreateApiToJSONTyped=Ts,a.BookingPolicies=Xu,a.BookingPoliciesApiFromJSON=Zn,a.BookingPoliciesApiFromJSONTyped=vs,a.BookingPoliciesApiToJSON=Zg,a.BookingPoliciesApiToJSONTyped=ws,a.BookingPoliciesCreateApiFromJSON=qg,a.BookingPoliciesCreateApiFromJSONTyped=ks,a.BookingPoliciesCreateApiToJSON=Rs,a.BookingPoliciesCreateApiToJSONTyped=Ns,a.Bookings=Qu,a.BookingsApiResponseFromJSON=Is,a.BookingsApiResponseFromJSONTyped=Ds,a.BookingsApiResponseToJSON=Vg,a.BookingsApiResponseToJSONTyped=Js,a.BookingsSortByEnum=L_,a.BookingsSortByOrderEnum=z_,a.BreakfastOption=vt,a.BreakfastOptionFromJSON=Eo,a.BreakfastOptionFromJSONTyped=Fo,a.BreakfastOptionToJSON=ky,a.BreakfastOptionToJSONTyped=Ry,a.COLLECTION_FORMATS=Hh,a.CancellationPolicyApiFromJSON=At,a.CancellationPolicyApiFromJSONTyped=Ro,a.CancellationPolicyApiToJSON=St,a.CancellationPolicyApiToJSONTyped=No,a.Configuration=_n,a.ContactPersonApiFromJSON=bn,a.ContactPersonApiFromJSONTyped=Xo,a.ContactPersonApiSalutationEnum=qy,a.ContactPersonApiToJSON=Cn,a.ContactPersonApiToJSONTyped=Qo,a.ContactPersonOrganizationApiFromJSON=Ko,a.ContactPersonOrganizationApiFromJSONTyped=Yo,a.ContactPersonOrganizationApiToJSON=Vo,a.ContactPersonOrganizationApiToJSONTyped=Wo,a.CountryIso2Code=bt,a.CountryIso2CodeFromJSON=Ct,a.CountryIso2CodeFromJSONTyped=qo,a.CountryIso2CodeToJSON=Uy,a.CountryIso2CodeToJSONTyped=Zy,a.CouponPreviewAppliedApiFromJSON=qh,a.CouponPreviewAppliedApiFromJSONTyped=xi,a.CouponPreviewAppliedApiToJSON=Kh,a.CouponPreviewAppliedApiToJSONTyped=ji,a.CouponPreviewRejectedApiErrorEnum=Yh,a.CouponPreviewRejectedApiFromJSON=Wh,a.CouponPreviewRejectedApiFromJSONTyped=eo,a.CouponPreviewRejectedApiToJSON=Xh,a.CouponPreviewRejectedApiToJSONTyped=to,a.CurrencyClient=wt,a.CurrencyClientFromJSON=he,a.CurrencyClientFromJSONTyped=zo,a.CurrencyClientToJSON=My,a.CurrencyClientToJSONTyped=Iy,a.ErrorApiResponseFromJSON=Qg,a.ErrorApiResponseFromJSONTyped=Es,a.ErrorApiResponseToJSON=xg,a.ErrorApiResponseToJSONTyped=Fs,a.ErrorApiResponseTypeEnum=Wg,a.EventApiFromJSON=Mt,a.EventApiFromJSONTyped=Ja,a.EventApiToJSON=It,a.EventApiToJSONTyped=Ea,a.EventMetadataApiFromJSON=Ue,a.EventMetadataApiFromJSONTyped=ss,a.EventMetadataApiToJSON=Ze,a.EventMetadataApiToJSONTyped=us,a.HotelApiFromJSON=Ys,a.HotelApiFromJSONTyped=Vs,a.HotelApiImagesFromJSON=Kn,a.HotelApiImagesFromJSONTyped=zs,a.HotelApiImagesToJSON=Yn,a.HotelApiImagesToJSONTyped=Hs,a.HotelApiToJSON=i_,a.HotelApiToJSONTyped=Ws,a.HotelImageApiFromJSON=ze,a.HotelImageApiFromJSONTyped=bo,a.HotelImageApiToJSON=je,a.HotelImageApiToJSONTyped=Co,a.HotelImages=xu,a.HotelOfferApiFromJSON=Xs,a.HotelOfferApiFromJSONTyped=Qs,a.HotelOfferApiToJSON=xs,a.HotelOfferApiToJSONTyped=js,a.HotelOfferRequestApiResponseFromJSON=Xn,a.HotelOfferRequestApiResponseFromJSONTyped=eu,a.HotelOfferRequestApiResponseToJSON=s_,a.HotelOfferRequestApiResponseToJSONTyped=tu,a.HotelOfferRequestCreateApiFromJSON=c_,a.HotelOfferRequestCreateApiFromJSONTyped=nu,a.HotelOfferRequestCreateApiToJSON=ru,a.HotelOfferRequestCreateApiToJSONTyped=iu,a.HotelOfferRequests=ju,a.HotelOffers=ec,a.HotelOffersApiResponseFromJSON=mu,a.HotelOffersApiResponseFromJSONTyped=pu,a.HotelOffersApiResponseToJSON=y_,a.HotelOffersApiResponseToJSONTyped=hu,a.HotelOffersDataApiResponseFromJSON=ou,a.HotelOffersDataApiResponseFromJSONTyped=au,a.HotelOffersDataApiResponseToJSON=su,a.HotelOffersDataApiResponseToJSONTyped=uu,a.HotelOffersSortByEnum=H_,a.HotelOffersSortByOrderEnum=B_,a.HotelReviewRatingApiFromJSON=Gn,a.HotelReviewRatingApiFromJSONTyped=$s,a.HotelReviewRatingApiToJSON=qn,a.HotelReviewRatingApiToJSONTyped=Ls,a.HotelRoomOfferApiFromJSON=He,a.HotelRoomOfferApiFromJSONTyped=Uo,a.HotelRoomOfferApiHotelRoomsInnerFromJSON=Mo,a.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=Io,a.HotelRoomOfferApiHotelRoomsInnerToJSON=Do,a.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=Jo,a.HotelRoomOfferApiPackageTypeEnum=Jy,a.HotelRoomOfferApiResponseFromJSON=yu,a.HotelRoomOfferApiResponseFromJSONTyped=gu,a.HotelRoomOfferApiResponseToJSON=__,a.HotelRoomOfferApiResponseToJSONTyped=_u,a.HotelRoomOfferApiStayTaxesInfoEnum=Ey,a.HotelRoomOfferApiToJSON=Be,a.HotelRoomOfferApiToJSONTyped=Zo,a.HotelRoomOfferApiTypeEnum=Fy,a.HotelRoomOfferImages=rc,a.HotelRoomOfferRequestApiResponseFromJSON=jn,a.HotelRoomOfferRequestApiResponseFromJSONTyped=Ou,a.HotelRoomOfferRequestApiResponseToJSON=A_,a.HotelRoomOfferRequestApiResponseToJSONTyped=Au,a.HotelRoomOfferRequestCreateApiFromJSON=T_,a.HotelRoomOfferRequestCreateApiFromJSONTyped=Su,a.HotelRoomOfferRequestCreateApiToJSON=Tu,a.HotelRoomOfferRequestCreateApiToJSONTyped=vu,a.HotelRoomOfferRequests=ic,a.HotelRoomOffers=oc,a.HotelRoomOffersApiResponseFromJSON=Pu,a.HotelRoomOffersApiResponseFromJSONTyped=bu,a.HotelRoomOffersApiResponseToJSON=k_,a.HotelRoomOffersApiResponseToJSONTyped=Cu,a.HotelRoomOffersCreateApiFromJSON=P_,a.HotelRoomOffersCreateApiFromJSONTyped=Eu,a.HotelRoomOffersCreateApiToJSON=Fu,a.HotelRoomOffersCreateApiToJSONTyped=$u,a.HotelRoomOffersDataApiResponseFromJSON=wu,a.HotelRoomOffersDataApiResponseFromJSONTyped=ku,a.HotelRoomOffersDataApiResponseToJSON=Ru,a.HotelRoomOffersDataApiResponseToJSONTyped=Nu,a.HotelRoomOffersDataCreateApiFromJSON=Mu,a.HotelRoomOffersDataCreateApiFromJSONTyped=Iu,a.HotelRoomOffersDataCreateApiToJSON=Du,a.HotelRoomOffersDataCreateApiToJSONTyped=Ju,a.HotelRoomingListApiFromJSON=Ln,a.HotelRoomingListApiFromJSONTyped=Za,a.HotelRoomingListApiHotelRoomFromJSON=Fa,a.HotelRoomingListApiHotelRoomFromJSONTyped=$a,a.HotelRoomingListApiHotelRoomToJSON=La,a.HotelRoomingListApiHotelRoomToJSONTyped=za,a.HotelRoomingListApiToJSON=Ga,a.HotelRoomingListApiToJSONTyped=qa,a.HotelRoomingListGuestApiFromJSON=Dt,a.HotelRoomingListGuestApiFromJSONTyped=Ha,a.HotelRoomingListGuestApiToJSON=Ba,a.HotelRoomingListGuestApiToJSONTyped=Ua,a.HotelRoomingListGuests=tc,a.HotelRoomingListGuestsCreateApiFromJSON=C_,a.HotelRoomingListGuestsCreateApiFromJSONTyped=Lu,a.HotelRoomingListGuestsCreateApiToJSON=zu,a.HotelRoomingListGuestsCreateApiToJSONTyped=Hu,a.HotelRoomingListGuestsUpdateApiFromJSON=I_,a.HotelRoomingListGuestsUpdateApiFromJSONTyped=Bu,a.HotelRoomingListGuestsUpdateApiToJSON=Uu,a.HotelRoomingListGuestsUpdateApiToJSONTyped=Zu,a.HotelRoomingLists=nc,a.Hotels=ac,a.InsuranceApiFromJSON=wa,a.InsuranceApiFromJSONTyped=ka,a.InsuranceApiStatusEnum=fg,a.InsuranceApiToJSON=Ra,a.InsuranceApiToJSONTyped=Na,a.InvoiceApiFromJSON=Pa,a.InvoiceApiFromJSONTyped=ba,a.InvoiceApiToJSON=Ca,a.InvoiceApiToJSONTyped=Ma,a.InvoiceApiTypeEnum=mg,a.JSONApiResponse=q,a.Locale=Nt,a.LocaleFromJSON=Pt,a.LocaleFromJSONTyped=Go,a.LocaleToJSON=zy,a.LocaleToJSONTyped=Hy,a.MetaPollingResponseApiFromJSON=Qn,a.MetaPollingResponseApiFromJSONTyped=fu,a.MetaPollingResponseApiToJSON=xn,a.MetaPollingResponseApiToJSONTyped=lu,a.MetaResponseApiFromJSON=Ps,a.MetaResponseApiFromJSONTyped=bs,a.MetaResponseApiToJSON=Cs,a.MetaResponseApiToJSONTyped=Ms,a.OrderAddonFromJSON=Fn,a.OrderAddonFromJSONTyped=Ia,a.OrderAddonSelectionFromJSON=Wa,a.OrderAddonSelectionFromJSONTyped=Xa,a.OrderAddonSelectionToJSON=Qa,a.OrderAddonSelectionToJSONTyped=xa,a.OrderAddonSelectionTypeEnum=wg,a.OrderAddonToJSON=$n,a.OrderAddonToJSONTyped=Da,a.OrderAddonTypeEnum=hg,a.PaymentMethodApiFromJSON=Ta,a.PaymentMethodApiFromJSONTyped=va,a.PaymentMethodApiToJSON=En,a.PaymentMethodApiToJSONTyped=dg,a.PaymentMethodCouponApiFromJSON=Xy,a.PaymentMethodCouponApiFromJSONTyped=Mn,a.PaymentMethodCouponApiNameEnum=Vy,a.PaymentMethodCouponApiPayloadInnerFromJSON=xo,a.PaymentMethodCouponApiPayloadInnerFromJSONTyped=jo,a.PaymentMethodCouponApiPayloadInnerToJSON=ea,a.PaymentMethodCouponApiPayloadInnerToJSONTyped=ta,a.PaymentMethodCouponApiToJSON=na,a.PaymentMethodCouponApiToJSONTyped=ra,a.PaymentMethodCreditCardApiFromJSON=eg,a.PaymentMethodCreditCardApiFromJSONTyped=In,a.PaymentMethodCreditCardApiNameEnum=xy,a.PaymentMethodCreditCardApiPayloadFromJSON=ia,a.PaymentMethodCreditCardApiPayloadFromJSONTyped=oa,a.PaymentMethodCreditCardApiPayloadToJSON=aa,a.PaymentMethodCreditCardApiPayloadToJSONTyped=sa,a.PaymentMethodCreditCardApiToJSON=ua,a.PaymentMethodCreditCardApiToJSONTyped=ca,a.PaymentMethodDepositAccountApiFromJSON=ig,a.PaymentMethodDepositAccountApiFromJSONTyped=Dn,a.PaymentMethodDepositAccountApiNameEnum=ng,a.PaymentMethodDepositAccountApiPayloadFromJSON=da,a.PaymentMethodDepositAccountApiPayloadFromJSONTyped=fa,a.PaymentMethodDepositAccountApiPayloadToJSON=la,a.PaymentMethodDepositAccountApiPayloadToJSONTyped=ma,a.PaymentMethodDepositAccountApiToJSON=pa,a.PaymentMethodDepositAccountApiToJSONTyped=ha,a.PaymentMethodPayLaterApiFromJSON=cg,a.PaymentMethodPayLaterApiFromJSONTyped=Jn,a.PaymentMethodPayLaterApiNameEnum=sg,a.PaymentMethodPayLaterApiPayloadFromJSON=ya,a.PaymentMethodPayLaterApiPayloadFromJSONTyped=ga,a.PaymentMethodPayLaterApiPayloadStatusEnum=og,a.PaymentMethodPayLaterApiPayloadToJSON=_a,a.PaymentMethodPayLaterApiPayloadToJSONTyped=Oa,a.PaymentMethodPayLaterApiToJSON=Aa,a.PaymentMethodPayLaterApiToJSONTyped=Sa,a.PaymentMethodRequestApiFromJSON=Un,a.PaymentMethodRequestApiFromJSONTyped=Os,a.PaymentMethodRequestApiToJSON=Jt,a.PaymentMethodRequestApiToJSONTyped=zg,a.PaymentMethodRequestCouponApiFromJSON=Ig,a.PaymentMethodRequestCouponApiFromJSONTyped=zn,a.PaymentMethodRequestCouponApiNameEnum=Cg,a.PaymentMethodRequestCouponApiToJSON=ms,a.PaymentMethodRequestCouponApiToJSONTyped=ps,a.PaymentMethodRequestCouponPayloadApiFromJSON=cs,a.PaymentMethodRequestCouponPayloadApiFromJSONTyped=ds,a.PaymentMethodRequestCouponPayloadApiToJSON=fs,a.PaymentMethodRequestCouponPayloadApiToJSONTyped=ls,a.PaymentMethodRequestCreditCardApiFromJSON=Eg,a.PaymentMethodRequestCreditCardApiFromJSONTyped=Hn,a.PaymentMethodRequestCreditCardApiNameEnum=Dg,a.PaymentMethodRequestCreditCardApiToJSON=hs,a.PaymentMethodRequestCreditCardApiToJSONTyped=ys,a.PaymentMethodRequestDepositAccountApiFromJSON=Lg,a.PaymentMethodRequestDepositAccountApiFromJSONTyped=Bn,a.PaymentMethodRequestDepositAccountApiNameEnum=Fg,a.PaymentMethodRequestDepositAccountApiToJSON=gs,a.PaymentMethodRequestDepositAccountApiToJSONTyped=_s,a.PaymentMethodUpdatePayloadApiFromJSON=J_,a.PaymentMethodUpdatePayloadApiFromJSONTyped=Gu,a.PaymentMethodUpdatePayloadApiToJSON=qu,a.PaymentMethodUpdatePayloadApiToJSONTyped=Ku,a.PollerStatus=Et,a.PollerStatusFromJSON=cu,a.PollerStatusFromJSONTyped=du,a.PollerStatusToJSON=l_,a.PollerStatusToJSONTyped=m_,a.RequestPayloadFromJSON=$_,a.RequestPayloadFromJSONTyped=Yu,a.RequestPayloadRequestTypeEnum=E_,a.RequestPayloadToJSON=Vu,a.RequestPayloadToJSONTyped=Wu,a.RequiredError=Z,a.ResponseError=gn,a.SourceMarket=Tt,a.SourceMarketFromJSON=xe,a.SourceMarketFromJSONTyped=Po,a.SourceMarketToJSON=Ay,a.SourceMarketToJSONTyped=Sy,a.TagApiFromJSON=kt,a.TagApiFromJSONTyped=Ho,a.TagApiToJSON=Rt,a.TagApiToJSONTyped=Bo,a.TaxApiFromJSON=Nn,a.TaxApiFromJSONTyped=$o,a.TaxApiTaxFrequencyEnum=Ny,a.TaxApiTaxModeEnum=Py,a.TaxApiToJSON=Pn,a.TaxApiToJSONTyped=Lo,a.TextApiResponse=An,a.TravelTimesApiFromJSON=Vn,a.TravelTimesApiFromJSONTyped=qs,a.TravelTimesApiToJSON=Wn,a.TravelTimesApiToJSONTyped=Ks,a.TravelTimesApiTravelTimesFromJSON=Bs,a.TravelTimesApiTravelTimesFromJSONTyped=Us,a.TravelTimesApiTravelTimesToJSON=Zs,a.TravelTimesApiTravelTimesToJSONTyped=Gs,a.VoidApiResponse=Qi,a.canConsumeForm=Uh,a.exists=Bh,a.instanceOfAllowedPaymentMethodCouponApi=ey,a.instanceOfAllowedPaymentMethodCouponApiPayloadInner=xh,a.instanceOfAllowedPaymentMethodCreditCardApi=ry,a.instanceOfAllowedPaymentMethodDepositAccountApi=ay,a.instanceOfAllowedPaymentMethodPayLaterApi=fy,a.instanceOfAllowedPaymentMethodPayLaterApiPayload=cy,a.instanceOfAmenitiesApi=py,a.instanceOfBedApi=hy,a.instanceOfBookingApi=vg,a.instanceOfBookingCreateApi=Hg,a.instanceOfBookingCreateApiGuestsListInner=Ng,a.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Rg,a.instanceOfBookingPoliciesApi=Ug,a.instanceOfBookingPoliciesCreateApi=Gg,a.instanceOfBookingsApiResponse=Yg,a.instanceOfBreakfastOption=wy,a.instanceOfCancellationPolicyApi=_y,a.instanceOfContactPersonApi=Ky,a.instanceOfContactPersonOrganizationApi=Gy,a.instanceOfCountryIso2Code=By,a.instanceOfCouponPreviewAppliedApi=Gh,a.instanceOfCouponPreviewRejectedApi=Vh,a.instanceOfCurrencyClient=Cy,a.instanceOfErrorApiResponse=Xg,a.instanceOfEventApi=gg,a.instanceOfEventMetadataApi=Pg,a.instanceOfHotelApi=r_,a.instanceOfHotelApiImages=e_,a.instanceOfHotelImageApi=Ty,a.instanceOfHotelOfferApi=o_,a.instanceOfHotelOfferRequestApiResponse=a_,a.instanceOfHotelOfferRequestCreateApi=u_,a.instanceOfHotelOffersApiResponse=h_,a.instanceOfHotelOffersDataApiResponse=d_,a.instanceOfHotelReviewRatingApi=jg,a.instanceOfHotelRoomOfferApi=$y,a.instanceOfHotelRoomOfferApiHotelRoomsInner=vy,a.instanceOfHotelRoomOfferApiResponse=g_,a.instanceOfHotelRoomOfferRequestApiResponse=O_,a.instanceOfHotelRoomOfferRequestCreateApi=S_,a.instanceOfHotelRoomOffersApiResponse=w_,a.instanceOfHotelRoomOffersCreateApi=N_,a.instanceOfHotelRoomOffersDataApiResponse=v_,a.instanceOfHotelRoomOffersDataCreateApi=R_,a.instanceOfHotelRoomingListApi=Ag,a.instanceOfHotelRoomingListApiHotelRoom=_g,a.instanceOfHotelRoomingListGuestApi=Og,a.instanceOfHotelRoomingListGuestsCreateApi=b_,a.instanceOfHotelRoomingListGuestsUpdateApi=M_,a.instanceOfInsuranceApi=lg,a.instanceOfInvoiceApi=pg,a.instanceOfLocale=Ly,a.instanceOfMetaPollingResponseApi=p_,a.instanceOfMetaResponseApi=Kg,a.instanceOfOrderAddon=yg,a.instanceOfOrderAddonSelection=kg,a.instanceOfPaymentMethodCouponApi=Wy,a.instanceOfPaymentMethodCouponApiPayloadInner=Yy,a.instanceOfPaymentMethodCreditCardApi=jy,a.instanceOfPaymentMethodCreditCardApiPayload=Qy,a.instanceOfPaymentMethodDepositAccountApi=rg,a.instanceOfPaymentMethodDepositAccountApiPayload=tg,a.instanceOfPaymentMethodPayLaterApi=ug,a.instanceOfPaymentMethodPayLaterApiPayload=ag,a.instanceOfPaymentMethodRequestCouponApi=Mg,a.instanceOfPaymentMethodRequestCouponPayloadApi=bg,a.instanceOfPaymentMethodRequestCreditCardApi=Jg,a.instanceOfPaymentMethodRequestDepositAccountApi=$g,a.instanceOfPaymentMethodUpdatePayloadApi=D_,a.instanceOfPollerStatus=f_,a.instanceOfRequestPayload=F_,a.instanceOfSourceMarket=Oy,a.instanceOfTagApi=Dy,a.instanceOfTaxApi=by,a.instanceOfTravelTimesApi=n_,a.instanceOfTravelTimesApiTravelTimes=t_,a.querystring=On,a.v1ApiClient=uc});
58
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const s of e.seen.entries()){const u=s[1];if(t===s[0]){o(s);continue}if(e.external){const c=e.external.registry.get(s[0])?.id;if(t!==s[0]&&c){o(s);continue}}if(e.metadataRegistry.get(s[0])?.id){o(s);continue}if(u.cycle){o(s);continue}u.count>1&&e.reused==="ref"&&o(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function Ti(e){const t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;const n=[];for(const r of t){if(!r||typeof r!="object")return;Ti(r);const i=Object.keys(r);if(i.length!==1||i[0]!=="type")return;const o=r.type;for(const s of Array.isArray(o)?o:[o]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var vi=new Set(["type","properties","required","additionalProperties"]),wi=["oneOf","anyOf"];function ki(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function ln(e){const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const s in o)if(!vi.has(s))return null;t.push(o)}const n={},r=new Set;for(const o of t){for(const s in o.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;const u=[];for(const d of t){const p=d.properties?.[s]??ki(d);p!=null&&(u.some(m=>JSON.stringify(m)===JSON.stringify(p))||u.push(p))}const c=u.length===1?u[0]:ln(u)??{allOf:u};be(n,s,c)}for(const s of o.required??[])r.add(s)}const i={type:"object",properties:n};if(r.size&&(i.required=[...r]),t.every(o=>o.additionalProperties===!1))i.additionalProperties=!1;else{const o=[];for(const s of t){const u=ki(s);u&&!o.some(c=>JSON.stringify(c)===JSON.stringify(u))&&o.push(u)}o.length===1?i.additionalProperties=o[0]:o.length>1&&(i.additionalProperties={allOf:o})}return i}function Qm(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of vi)if(i in e)return;const n=t.filter(i=>wi.some(o=>Array.isArray(i[o])));let r=null;if(!n.length)r=ln(t);else{const i=n[0],o=wi.find(c=>Array.isArray(i[c]));if(Object.keys(i).length!==1)return;const s=t.filter(c=>c!==i),u=i[o].map(c=>ln([...s,c]));if(u.some(c=>!c))return;r={[o]:u}}r&&(delete e.allOf,Qe(e,r))}function Ri(e,t){const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const c=e.seen.get(u);if(c.ref===null)return;const d=c.def??c.schema,p={...d},m=c.ref;if(c.ref=null,m){r(m);const _=e.seen.get(m),A=_.schema;if(A.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(d.allOf=d.allOf??[],d.allOf.push(A)):Qe(d,A),Qe(d,p),u._zod.parent===m)for(const y in d)y==="$ref"||y==="allOf"||y in p||delete d[y];if(A.$ref&&_.def)for(const y in d)y==="$ref"||y==="allOf"||y in _.def&&JSON.stringify(d[y])===JSON.stringify(_.def[y])&&delete d[y]}const h=u._zod.parent;if(h&&h!==m){r(h);const _=e.seen.get(h);if(_?.schema.$ref&&(d.$ref=_.schema.$ref,_.def))for(const A in d)A==="$ref"||A==="allOf"||A in _.def&&JSON.stringify(d[A])===JSON.stringify(_.def[A])&&delete d[A]}e.override({zodSchema:u,jsonSchema:d,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(const u of[...e.seen.entries()].reverse())r(u[0]);if(e.target!=="openapi-3.0")for(const u of e.seen.entries())Ti(u[1].def??u[1].schema);for(const u of e.deferred)u();if(e.intersections.length){const u=new Map;for(const c of e.seen.values())for(const d of[c.schema,c.def]){const p=d?.allOf;if(!Array.isArray(p))continue;const m=u.get(p);m?m.push(d):u.set(p,[d])}for(const c of e.intersections)for(const d of u.get(c)??[])Qm(d)}}const i={};if(e.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const u=e.external.registry.get(t)?.id;if(!u)throw new Error("Schema is missing an `id` property");i.$id=e.external.uri(u)}Qe(i,n.defId?n.schema:n.def??n.schema);const o=e.metadataRegistry.get(t)?.id;o!==void 0&&i.id===o&&delete i.id;const s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(const u of e.seen.entries()){const c=u[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,be(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const u=JSON.parse(JSON.stringify(i));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:gt(t,"input",e.processors),output:gt(t,"output",e.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function ie(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return ie(r.element,n);if(r.type==="set")return ie(r.valueType,n);if(r.type==="lazy")return ie(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return ie(r.innerType,n);if(r.type==="intersection")return ie(r.left,n)||ie(r.right,n);if(r.type==="record"||r.type==="map")return ie(r.keyType,n)||ie(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ie(r.in,n)||ie(r.out,n);if(r.type==="object"){for(const i in r.shape)if(ie(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(ie(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(ie(i,n))return!0;return!!(r.rest&&ie(r.rest,n))}return!1}var xm=(e,t={})=>n=>{const r=Oi({...n,processors:t});return te(e,r),Si(r,e),Ri(r,e)},gt=(e,t,n={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=Oi({...i??{},target:o,io:t,processors:n});return te(e,s),Si(s,e),Ri(s,e)},$e=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},Le=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Ni=(e,t)=>{$e(e,"minimum",t),Le(e,"maximum",t)},Pi=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},bi=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Ci=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},Mi=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Ii=(e,t)=>$e(e,"minimum",t.minimum),Di=(e,t)=>Le(e,"maximum",t.maximum),Ji=e=>(t,n)=>{Mi(t,n.format);const[r,i]=e[n.format];$e(t,"minimum",r),Le(t,"maximum",i)},jm={greater_than:(e,t)=>$e(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>Le(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Pi(e,t.value),number_format:Ji(Rr),bigint_format:Ji(Sd),min_length:Ii,max_length:Di,length_equals:(e,t)=>Ni(e,t.length),min_size:Ii,max_size:Di,size_equals:(e,t)=>Ni(e,t.size),string_format:(e,t)=>{Mi(e,t.format),t.pattern&&bi(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>Ci(e,t.mime)};function pe(e){const t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(const o of r)jm[o._zod.def.check]?.(t,o._zod.def);const i=e._zod.bag;i.minimum!==void 0&&$e(t,"minimum",i.minimum),i.exclusiveMinimum!==void 0&&$e(t,"exclusiveMinimum",i.exclusiveMinimum),i.maximum!==void 0&&Le(t,"maximum",i.maximum),i.exclusiveMaximum!==void 0&&Le(t,"exclusiveMaximum",i.exclusiveMaximum),i.multipleOf!==void 0&&Pi(t,i.multipleOf),i.format!==void 0&&(t.format??(t.format=i.format),i.format.includes("int")&&(t.isInt=!0)),i.mime&&Ci(t,i.mime);for(const o of i.patterns??[])bi(t,o);return t}var ep={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},tp=new Map([[Wr,Tf],[an,vf]]),np=e=>tp.get(e)??e,rp=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:u,patterns:c,contentEncoding:d,laxFormat:p}=pe(e);if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=ep[u]??u,i.format===""&&delete i.format,(u==="time"||p)&&delete i.format),d&&(i.contentEncoding=d),c&&c.size>0){const m=[...c].map(np);m.length===1?i.pattern=m[0].source:m.length>1&&(i.allOf=[...m.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},ip=(e,t,n,r)=>{const i=n,{minimum:o,maximum:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:d,isInt:p}=pe(e);i.type=p?"integer":"number";const m=typeof d=="number"&&d>=(o??Number.NEGATIVE_INFINITY),h=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),_=t.target==="draft-04"||t.target==="openapi-3.0";if(m?_?(i.minimum=d,i.exclusiveMinimum=!0):i.exclusiveMinimum=d:typeof o=="number"&&(i.minimum=o),h?_?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof s=="number"&&(i.maximum=s),u){const A=new Set;for(const v of u)Number.isFinite(v)&&v!==0?A.add(Math.abs(v)):Ie(e,t,i,r,`A multipleOf divisor of ${v} cannot be represented in JSON Schema`);const[y,...g]=A;y!==void 0&&(i.multipleOf=y),g.length&&(i.allOf=[...i.allOf??[],...g.map(v=>({multipleOf:v}))])}},op=(e,t,n,r)=>{Ie(e,t,n,r,"Symbols cannot be represented in JSON Schema")},ap=(e,t,n,r)=>{n.not={}},sp=(e,t,n,r)=>{},up=(e,t,n,r)=>{const i=e._zod.def,o=Zt(i.entries);if(o.length===0){n.not={};return}o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},cp=(e,t,n,r)=>{Ie(e,t,n,r,"Custom types cannot be represented in JSON Schema")},dp=(e,t,n,r)=>{Ie(e,t,n,r,"Transforms cannot be represented in JSON Schema")},fp=(e,t,n,r)=>{const i=n,o=e._zod.def,{minimum:s,maximum:u}=pe(e);typeof s=="number"&&(i.minItems=s),typeof u=="number"&&(i.maxItems=u),i.type="array",i.items=te(o.element,t,{...r,path:[...r.path,"items"]})};function mn(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?mn(t.out):t.type==="catch"?mn(t.innerType):e._zod.optin}var lp=(e,t,n,r)=>{const i=n,o=e._zod.def,s=o.shape;if(Object.getOwnPropertySymbols(s).length&&Ie(e,t,i,r,"Symbol keys cannot be represented in JSON Schema"))return;i.type="object",i.properties={};for(const c in s)be(i.properties,c,te(s[c],t,{...r,path:[...r.path,"properties",c]}));const u=[];for(const c of Object.keys(s)){const d=o.shape[c];(t.io==="input"?mn(d)===void 0:d._zod.optout===void 0)&&u.push(c)}u.length>0&&(i.required=u),o.catchall?._zod.def.type==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=te(o.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(i.additionalProperties=!1)},mp=(e,t,n,r)=>{const i=e._zod.def,o=i.inclusive===!1,s=i.options.map((u,c)=>te(u,t,{...r,path:[...r.path,o?"oneOf":"anyOf",c]}));o?n.oneOf=s:n.anyOf=s},pp=(e,t,n,r)=>{const i=e._zod.def,o=te(i.left,t,{...r,path:[...r.path,"allOf",0]}),s=te(i.right,t,{...r,path:[...r.path,"allOf",1]}),u=d=>"allOf"in d&&Object.keys(d).length===1,c=[...u(o)?o.allOf:[o],...u(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},hp=(e,t,n,r)=>{const i=e._zod.def,o=te(i.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},yp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},pn=Symbol();function Ei(e,t,n,r,i){let o=!1;const s=JSON.stringify(e,(u,c)=>typeof c!="bigint"?c:(o=!0,null));return o?(Ie(t,n,r,i,"BigInt defaults cannot be represented in JSON Schema"),pn):JSON.parse(s)}var gp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;const s=Ei(i.defaultValue,e,t,n,r);s!==pn&&(n.default=s)},_p=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);if(o.ref=i.innerType,t.io!=="input")return;const s=Ei(i.defaultValue,e,t,n,r);s!==pn&&(n._prefault=s)},Op=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{Ie(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Ap=(e,t,n,r)=>{const i=e._zod.def,o=i.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?o?i.out:i.in:i.out;te(s,t,r);const u=t.seen.get(e);u.ref=s},Sp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType,n.readOnly=!0},Fi=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},$i=new WeakSet([Object.prototype,Error.prototype]);function _t(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){const r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var Tp=(e,t)=>{Ud.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);$i.has(n)||($i.add(n),_t(n,"format",r=>i=>qd(r,i)),_t(n,"flatten",r=>i=>Gd(r,i)),_t(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,Gt,2)}),_t(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Gt,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ue=O("ZodError",Tp,void 0,{Parent:Error}),vp=xt(ue),wp=jt(ue),kp=en(ue),Rp=tn(ue),Np=Qd(ue),Pp=xd(ue),bp=jd(ue),Cp=ef(ue),Mp=tf(ue),Ip=nf(ue),Dp=rf(ue),Jp=of(ue);function Ep(){me.localeError||ke(tm())}function hn(){me.memoizer||ke({memoizer:xl()})}var j=O("ZodType",(e,t)=>(Ep(),x.init(e,t),e.def=t,e.type=t.type,e),{check(...e){const t=this.def;return this.clone(se(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return Te(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Eh(e,t))},superRefine(e,t){return this.check(Fh(e,t))},overwrite(e){return this.check(Fe(e))},optional(){return qi(this)},exactOptional(){return Th(this)},nullable(){return Yi(this)},nullish(){return qi(Yi(this))},nonoptional(e){return Ph(this,e)},array(){return ph(this)},or(e){return Ui([this,e])},and(e){return Oh(this,e)},transform(e){return Wi(this,Sh(e))},default(e){return kh(this,e)},prefault(e){return Nh(this,e)},catch(e){return Ch(this,e)},pipe(e){return Wi(this,e)},readonly(){return Dh(this)},describe(e){const t=this.clone();return Xe.add(t,{description:e}),t},meta(...e){if(e.length===0)return Xe.get(this);const t=this.clone();return Xe.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Mr(this,"~standard",{...Gr(this),jsonSchema:{input:gt(this,"input"),output:gt(this,"output")}})},set"~standard"(e){ve(this,"~standard",e)},parse:function e(t,n){return vp(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await wp(this,t,n,{callee:e})},safeParse(e,t){return kp(this,e,t)},async safeParseAsync(e,t){return Rp(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){ve(this,"spa",e)},validate(e,t){return Vd(this,e,t)},validateAsync(e,t){return Xd(this,e,t)},encode:function e(t,n){return Np(this,t,n,{callee:e})},decode:function e(t,n){return Pp(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await bp(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Cp(this,t,n,{callee:e})},safeEncode(e,t){return Mp(this,e,t)},safeDecode(e,t){return Ip(this,e,t)},async safeEncodeAsync(e,t){return Dp(this,e,t)},async safeDecodeAsync(e,t){return Jp(this,e,t)},toJSONSchema(e){return xm(this,{})(e)},get description(){return Xe.get(this)?.description},get _def(){return this._zod.def}}),Li=O("_ZodString",(e,t)=>{on.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rp(e,n,r,i)},Ir({format:e=>pe(e).format??null,minLength:e=>pe(e).minimum??null,maxLength:e=>pe(e).maximum??null},{regex(...e){return this.check(Fm(...e))},includes(...e){return this.check(zm(...e))},startsWith(...e){return this.check(Hm(...e))},endsWith(...e){return this.check(Bm(...e))},min(...e){return this.check(yt(...e))},max(...e){return this.check(gi(...e))},length(...e){return this.check(_i(...e))},nonempty(...e){return this.check(yt(1,...e))},lowercase(e){return this.check($m(e))},uppercase(e){return this.check(Lm(e))},trim(){return this.check(Zm())},normalize(...e){return this.check(Um(...e))},toLowerCase(){return this.check(Gm())},toUpperCase(){return this.check(qm())},slugify(){return this.check(Km())}})),Fp=O("ZodString",(e,t)=>{on.init(e,t),Li.init(e,t)},{email(e){return this.check(om(Up,e))},url(e){return this.check(fm(Gp,e))},jwt(e){return this.check(Rm(oh,e))},emoji(e){return this.check(lm(qp,e))},guid(e){return this.check(am(Zp,e))},uuid(e){return this.check(sm(Ot,e))},uuidv4(e){return this.check(um(Ot,e))},uuidv6(e){return this.check(cm(Ot,e))},uuidv7(e){return this.check(dm(Ot,e))},nanoid(e){return this.check(mm(Kp,e))},cuid(e){return this.check(pm(Yp,e))},cuid2(e){return this.check(hm(Vp,e))},ulid(e){return this.check(ym(Wp,e))},base64(e){return this.check(vm(nh,e))},base64url(e){return this.check(wm(rh,e))},xid(e){return this.check(gm(Xp,e))},ksuid(e){return this.check(_m(Qp,e))},ipv4(e){return this.check(Om(xp,e))},ipv6(e){return this.check(Am(jp,e))},cidrv4(e){return this.check(Sm(eh,e))},cidrv6(e){return this.check(Tm(th,e))},e164(e){return this.check(km(ih,e))},datetime(e){return this.check(Nm(Lp,e))},date(e){return this.check(Pm(zp,e))},time(e){return this.check(bm(Hp,e))},duration(e){return this.check(Cm(Bp,e))}});function $p(e){return im(Fp,e)}var W=O("ZodStringFormat",(e,t)=>{V.init(e,t),Li.init(e,t)}),Lp=O("ZodISODateTime",(e,t)=>{fl.init(e,t),W.init(e,t)}),zp=O("ZodISODate",(e,t)=>{ll.init(e,t),W.init(e,t)}),Hp=O("ZodISOTime",(e,t)=>{ml.init(e,t),W.init(e,t)}),Bp=O("ZodISODuration",(e,t)=>{pl.init(e,t),W.init(e,t)}),Up=O("ZodEmail",(e,t)=>{Qf.init(e,t),W.init(e,t)}),Zp=O("ZodGUID",(e,t)=>{Wf.init(e,t),W.init(e,t)}),Ot=O("ZodUUID",(e,t)=>{Xf.init(e,t),W.init(e,t)}),Gp=O("ZodURL",(e,t)=>{rl.init(e,t),W.init(e,t)}),qp=O("ZodEmoji",(e,t)=>{il.init(e,t),W.init(e,t)}),Kp=O("ZodNanoID",(e,t)=>{ol.init(e,t),W.init(e,t)}),Yp=O("ZodCUID",(e,t)=>{al.init(e,t),W.init(e,t)}),Vp=O("ZodCUID2",(e,t)=>{sl.init(e,t),W.init(e,t)}),Wp=O("ZodULID",(e,t)=>{ul.init(e,t),W.init(e,t)}),Xp=O("ZodXID",(e,t)=>{cl.init(e,t),W.init(e,t)}),Qp=O("ZodKSUID",(e,t)=>{dl.init(e,t),W.init(e,t)}),xp=O("ZodIPv4",(e,t)=>{hl.init(e,t),W.init(e,t)}),jp=O("ZodIPv6",(e,t)=>{gl.init(e,t),W.init(e,t)}),eh=O("ZodCIDRv4",(e,t)=>{_l.init(e,t),W.init(e,t)}),th=O("ZodCIDRv6",(e,t)=>{Al.init(e,t),W.init(e,t)}),nh=O("ZodBase64",(e,t)=>{Sl.init(e,t),W.init(e,t)}),rh=O("ZodBase64URL",(e,t)=>{vl.init(e,t),W.init(e,t)}),ih=O("ZodE164",(e,t)=>{wl.init(e,t),W.init(e,t)}),oh=O("ZodJWT",(e,t)=>{Rl.init(e,t),W.init(e,t)}),zi=O("ZodNumber",(e,t)=>{Xr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ip(e,n,r,i),e.isFinite=!0},Ir({minValue:e=>{const{minimum:t,exclusiveMinimum:n}=pe(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{const{maximum:t,exclusiveMaximum:n}=pe(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{const{isInt:t,multipleOf:n}=pe(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>pe(e).format??null},{gt(e,t){return this.check(hi(e,t))},gte(e,t){return this.check(fn(e,t))},min(e,t){return this.check(fn(e,t))},lt(e,t){return this.check(pi(e,t))},lte(e,t){return this.check(dn(e,t))},max(e,t){return this.check(dn(e,t))},int(e){return this.check(Hi(e))},safe(e){return this.check(Hi(e))},positive(e){return this.check(hi(0,e))},nonnegative(e){return this.check(fn(0,e))},negative(e){return this.check(pi(0,e))},nonpositive(e){return this.check(dn(0,e))},multipleOf(e,t){return this.check(yi(e,t))},step(e,t){return this.check(yi(e,t))},finite(){return this}}));function ah(e){return Mm(zi,e)}var sh=O("ZodNumberFormat",(e,t)=>{Nl.init(e,t),zi.init(e,t)});function Hi(e){return Im(sh,e)}var uh=O("ZodSymbol",(e,t)=>{Pl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>op(e,n,r,i)});function ch(e){return Dm(uh,e)}var dh=O("ZodUnknown",(e,t)=>{bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sp(e,n,r,i)});function Bi(){return Jm(dh)}var fh=O("ZodNever",(e,t)=>{Cl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ap(e,n,r,i)});function lh(e){return Em(fh,e)}var mh=O("ZodArray",(e,t)=>{hn(),Ml.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fp(e,n,r,i),e.element=t.element},{min(e,t){return this.check(yt(e,t))},nonempty(e){return this.check(yt(1,e))},max(e,t){return this.check(gi(e,t))},length(e,t){return this.check(_i(e,t))},unwrap(){return this.element}});function ph(e,t){return Ym(mh,e,t)}var hh=O("ZodObject",(e,t)=>{hn(),Jl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lp(e,n,r,i),Ed(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Zi(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(se(this._zod.def,{catchall:e}))},passthrough(){return this.clone(se(this._zod.def,{catchall:Bi()}))},loose(){return this.clone(se(this._zod.def,{catchall:Bi()}))},strict(){return this.clone(se(this._zod.def,{catchall:lh()}))},strip(){return this.clone(se(this._zod.def,{catchall:void 0}))},extend(e){return wd(this,e)},safeExtend(e){return kd(this,e)},merge(e){return Rd(this,e)},pick(e){return Td(this,e)},omit(e){return vd(this,e)},partial(...e){return Pr(Gi,this,e[0])},exactPartial(...e){return Pr(Ki,this,e[0],"exactPartial")},required(...e){return Nd(Vi,this,e[0])}});function yh(e,t){const n={type:"object",shape:e??{},...M(t)};return new hh(n)}var gh=O("ZodUnion",(e,t)=>{El.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mp(e,n,r,i),e.options=t.options});function Ui(e,t){return new gh({type:"union",options:e,...M(t)})}var _h=O("ZodIntersection",(e,t)=>{Fl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>pp(e,n,r,i)});function Oh(e,t){return new _h({type:"intersection",left:e,right:t})}var yn=O("ZodEnum",(e,t)=>{$l.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>up(e,r,i,o),e.enum=t.entries,e.options=[...e._zod.values];const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new yn({...t,checks:[],...M(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new yn({...t,checks:[],...M(i),entries:o})}});function Zi(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yn({type:"enum",entries:n,...M(t)})}var Ah=O("ZodTransform",(e,t)=>{hn(),Ll.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dp(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Er(e.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(Ye(o,n.value,t));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(Ye(s))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Sh(e){return new Ah({type:"transform",transform:e})}var Gi=O("ZodOptional",(e,t)=>{ri.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fi(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function qi(e){return new Gi({type:"optional",innerType:e})}var Ki=O("ZodExactOptional",(e,t)=>{zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Fi(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Th(e){return new Ki({type:"optional",innerType:e})}var vh=O("ZodNullable",(e,t)=>{Hl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>hp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Yi(e){return new vh({type:"nullable",innerType:e})}var wh=O("ZodDefault",(e,t)=>{Bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>gp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kh(e,t){return new wh({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var Rh=O("ZodPrefault",(e,t)=>{Ul.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>_p(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Nh(e,t){return new Rh({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var Vi=O("ZodNonOptional",(e,t)=>{Zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Ph(e,t){return new Vi({type:"nonoptional",innerType:e,...M(t)})}var bh=O("ZodCatch",(e,t)=>{Gl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Op(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ch(e,t){return new bh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:$d(t)})}var Mh=O("ZodPipe",(e,t)=>{ql.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ap(e,n,r,i),e.in=t.in,e.out=t.out});function Wi(e,t){return new Mh({type:"pipe",in:e,out:t})}var Ih=O("ZodReadonly",(e,t)=>{Kl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Sp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Dh(e){return new Ih({type:"readonly",innerType:e})}var Jh=O("ZodCustom",(e,t)=>{Yl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cp(e,n,r,i)});function Eh(e,t={}){return Vm(Jh,e,t)}function Fh(e,t){return Wm(e,t)}var $h=Zi(["ASC","DESC"]),rO=yh({sortBy:Ui([$p(),ah(),ch()]).optional(),sortOrder:$h.optional()}),Lh=class{constructor(){this._map=new Map,this._idmap=new Map}add(e,...t){const n=t[0];if(this._map.set(e,n),n&&typeof n=="object"&&"id"in n){if(this._idmap.has(n.id))throw new Error(`ID ${n.id} already exists in the registry`);this._idmap.set(n.id,e)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(e){const t=this._map.get(e);return t&&typeof t=="object"&&"id"in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){const t=e._zod.parent;if(t){const n={...this.get(t)??{}};return delete n.id,{...n,...this._map.get(e)}}return this._map.get(e)}has(e){return this._map.has(e)}};function zh(){return new Lh}var iO=zh(),Xi="http://localhost".replace(/\/+$/,""),Hh=e=>typeof Blob<"u"&&e instanceof Blob,ce=class{configuration;middleware;constructor(e=new _n){this.configuration=e,this.middleware=e.middleware}withMiddleware(...e){const t=this.clone();return t.middleware=t.middleware.concat(...e),t}withPreMiddleware(...e){const t=e.map(n=>({pre:n}));return this.withMiddleware(...t)}withPostMiddleware(...e){const t=e.map(n=>({post:n}));return this.withMiddleware(...t)}async request(e,t){const{url:n,init:r}=this.createFetchParams(e,t),i=await this.fetchApi(n,r);if(i.status>=200&&i.status<300)return i;throw new gn(i,"Response returned an error code")}createFetchParams(e,t){let n=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||Hh(e.body)?e.body:JSON.stringify(e.body),i=Object.assign({},this.configuration.headers,e.headers);Object.keys(i).forEach(s=>i[s]===void 0?delete i[s]:{});const o={method:e.method,body:r,credentials:this.configuration.credentials,..._r({},t,{headers:_r({},i,t?.headers)})};return{url:n,init:o}}fetchApi=async(e,t)=>{let n={url:e,init:t};for(const i of this.middleware)i.pre&&(n=await i.pre({fetch:this.fetchApi,...n})||n);let r=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const i of this.middleware)i.post&&(r=await i.post({fetch:this.fetchApi,url:n.url,init:n.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,t=new e(this.configuration);return t.middleware=this.middleware.slice(),t}},gn=class extends Error{response;name="ResponseError";constructor(e,t){super(t),this.response=e}},Z=class extends Error{field;name="RequiredError";constructor(e,t){super(t),this.field=e}},Bh={csv:",",ssv:" ",tsv:" ",pipes:"|"},_n=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Xi}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||On}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}};function Uh(e,t){const n=e[t];return n!=null}function On(e,t=""){return Object.keys(e).map(n=>{const r=t+(t.length?`[${n}]`:n),i=e[n];if(i instanceof Array){const o=i.map(s=>encodeURIComponent(String(s))).join(`&${encodeURIComponent(r)}=`);return`${encodeURIComponent(r)}=${o}`}return i instanceof Date?`${encodeURIComponent(r)}=${encodeURIComponent(i.toISOString())}`:i instanceof Object?On(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function Zh(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}var q=class{raw;transformer;constructor(e,t=n=>n){this.raw=e,this.transformer=t}async value(){return this.transformer(await this.raw.json())}},Qi=class{raw;constructor(e){this.raw=e}async value(){}},Gh=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},An=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function qh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function Kh(e){return xi(e,!1)}function xi(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function Yh(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var Vh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function Wh(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function Xh(e){return eo(e,!1)}function eo(e,t){return e==null?e:{code:e.code,error:e.error}}function Qh(e){return to(e,!1)}function to(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var xh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function jh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0||!("error"in e)||e.error===void 0)}function no(e){return ro(e,!1)}function ro(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function io(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var ey={Coupon:"COUPON"};function ty(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ny(e){return Sn(e,!1)}function Sn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(no)}}function ao(e){return so(e,!1)}function so(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(io)}}var ry={CreditCard:"CREDIT_CARD"};function iy(e){return!(!("name"in e)||e.name===void 0)}function oy(e){return Tn(e,!1)}function Tn(e,t){return e==null?e:{name:e.name}}function uo(e){return co(e,!1)}function co(e,t=!1){return e==null?e:{name:e.name}}var ay={DepositAccount:"DEPOSIT_ACCOUNT"};function sy(e){return!(!("name"in e)||e.name===void 0)}function uy(e){return vn(e,!1)}function vn(e,t){return e==null?e:{name:e.name}}function fo(e){return lo(e,!1)}function lo(e,t=!1){return e==null?e:{name:e.name}}var cy={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function dy(e){return!(!("status"in e)||e.status===void 0)}function mo(e){return po(e,!1)}function po(e,t){return e==null?e:{status:e.status}}function ho(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{status:e.status}}var fy={PayLater:"PAY_LATER"};function ly(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function my(e){return wn(e,!1)}function wn(e,t){return e==null?e:{name:e.name,payload:mo(e.payload)}}function go(e){return _o(e,!1)}function _o(e,t=!1){return e==null?e:{name:e.name,payload:ho(e.payload)}}function Oo(e){return Ao(e,!1)}function Ao(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Sn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Tn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...vn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...wn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function So(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ao(e);case"CREDIT_CARD":return uo(e);case"DEPOSIT_ACCOUNT":return fo(e);case"PAY_LATER":return go(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function py(e,t=!1){return So(e)}function hy(e){return!0}function kn(e){return To(e,!1)}function To(e,t){return e==null?e:{airConditioning:e.air_conditioning==null?void 0:e.air_conditioning,airportTransportation:e.airport_transportation==null?void 0:e.airport_transportation,businessCenter:e.business_center==null?void 0:e.business_center,carRentDesk:e.car_rent_desk==null?void 0:e.car_rent_desk,childrenAllowed:e.children_allowed==null?void 0:e.children_allowed,clothingIron:e.clothing_iron==null?void 0:e.clothing_iron,coffeeTeaMaker:e.coffee_tea_maker==null?void 0:e.coffee_tea_maker,combination:e.combination==null?void 0:e.combination,continentalBreakfast:e.continental_breakfast==null?void 0:e.continental_breakfast,dataPorts:e.data_ports==null?void 0:e.data_ports,dryCleaning:e.dry_cleaning==null?void 0:e.dry_cleaning,electronicRoomKeys:e.electronic_room_keys==null?void 0:e.electronic_room_keys,exteriorRoomEntrance:e.exterior_room_entrance==null?void 0:e.exterior_room_entrance,familyRooms:e.family_rooms==null?void 0:e.family_rooms,fitnessFacility:e.fitness_facility==null?void 0:e.fitness_facility,gameRoom:e.game_room==null?void 0:e.game_room,golfCourse:e.golf_course==null?void 0:e.golf_course,hairDryer:e.hair_dryer==null?void 0:e.hair_dryer,handicapAccessible:e.handicap_accessible==null?void 0:e.handicap_accessible,inHouseBar:e.in_house_bar==null?void 0:e.in_house_bar,inHouseDining:e.in_house_dining==null?void 0:e.in_house_dining,inRoomMovies:e.in_room_movies==null?void 0:e.in_room_movies,indoorPool:e.indoor_pool==null?void 0:e.indoor_pool,interiorRoomEntrance:e.interior_room_entrance==null?void 0:e.interior_room_entrance,kitchen:e.kitchen==null?void 0:e.kitchen,map:e.map==null?void 0:e.map,meetingRooms:e.meeting_rooms==null?void 0:e.meeting_rooms,miniBarInRoom:e.mini_bar_in_room==null?void 0:e.mini_bar_in_room,nonSmokingRooms:e.non_smoking_rooms==null?void 0:e.non_smoking_rooms,outdoorPool:e.outdoor_pool==null?void 0:e.outdoor_pool,parkingGarage:e.parking_garage==null?void 0:e.parking_garage,petsAllowed:e.pets_allowed==null?void 0:e.pets_allowed,restrictedAccess:e.restricted_access==null?void 0:e.restricted_access,roomService:e.room_service==null?void 0:e.room_service,safe:e.safe==null?void 0:e.safe,sauna:e.sauna==null?void 0:e.sauna,tVInRoom:e.t_v_in_room==null?void 0:e.t_v_in_room,tennisCourt:e.tennis_court==null?void 0:e.tennis_court,twentyFourHourSecurity:e.twenty_four_hour_security==null?void 0:e.twenty_four_hour_security,valetParking:e.valet_parking==null?void 0:e.valet_parking,videoCheckOut:e.video_check_out==null?void 0:e.video_check_out,voiceMail:e.voice_mail==null?void 0:e.voice_mail,wakeUpService:e.wake_up_service==null?void 0:e.wake_up_service,whirpool:e.whirpool==null?void 0:e.whirpool}}function Rn(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{air_conditioning:e.airConditioning,airport_transportation:e.airportTransportation,business_center:e.businessCenter,car_rent_desk:e.carRentDesk,children_allowed:e.childrenAllowed,clothing_iron:e.clothingIron,coffee_tea_maker:e.coffeeTeaMaker,combination:e.combination,continental_breakfast:e.continentalBreakfast,data_ports:e.dataPorts,dry_cleaning:e.dryCleaning,electronic_room_keys:e.electronicRoomKeys,exterior_room_entrance:e.exteriorRoomEntrance,family_rooms:e.familyRooms,fitness_facility:e.fitnessFacility,game_room:e.gameRoom,golf_course:e.golfCourse,hair_dryer:e.hairDryer,handicap_accessible:e.handicapAccessible,in_house_bar:e.inHouseBar,in_house_dining:e.inHouseDining,in_room_movies:e.inRoomMovies,indoor_pool:e.indoorPool,interior_room_entrance:e.interiorRoomEntrance,kitchen:e.kitchen,map:e.map,meeting_rooms:e.meetingRooms,mini_bar_in_room:e.miniBarInRoom,non_smoking_rooms:e.nonSmokingRooms,outdoor_pool:e.outdoorPool,parking_garage:e.parkingGarage,pets_allowed:e.petsAllowed,restricted_access:e.restrictedAccess,room_service:e.roomService,safe:e.safe,sauna:e.sauna,t_v_in_room:e.tVInRoom,tennis_court:e.tennisCourt,twenty_four_hour_security:e.twentyFourHourSecurity,valet_parking:e.valetParking,video_check_out:e.videoCheckOut,voice_mail:e.voiceMail,wake_up_service:e.wakeUpService,whirpool:e.whirpool}}function yy(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function gy(e){return wo(e,!1)}function wo(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function _y(e){return ko(e,!1)}function ko(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Oy(e){return!(!("dateFrom"in e)||e.dateFrom===void 0||!("dateTo"in e)||e.dateTo===void 0||!("penaltyPercentage"in e)||e.penaltyPercentage===void 0)}function At(e){return Ro(e,!1)}function Ro(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function St(e){return No(e,!1)}function No(e,t=!1){return e==null?e:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}var Tt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Ay(e){for(const t in Tt)if(Object.prototype.hasOwnProperty.call(Tt,t)&&Tt[t]===e)return!0;return!1}function xe(e){return Po(e,!1)}function Po(e,t){return e}function Sy(e){return e}function Ty(e,t){return e}function vy(e){return!(!("isHeroImage"in e)||e.isHeroImage===void 0||!("l"in e)||e.l===void 0||!("m"in e)||e.m===void 0||!("s"in e)||e.s===void 0||!("xl"in e)||e.xl===void 0||!("xs"in e)||e.xs===void 0)}function ze(e){return bo(e,!1)}function bo(e,t){return e==null?e:{caption:e.caption==null?void 0:e.caption,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function je(e){return Co(e,!1)}function Co(e,t=!1){return e==null?e:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function wy(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Mo(e){return Io(e,!1)}function Io(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(ze),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function Do(e){return Jo(e,!1)}function Jo(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(je),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}var vt={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"};function ky(e){for(const t in vt)if(Object.prototype.hasOwnProperty.call(vt,t)&&vt[t]===e)return!0;return!1}function Eo(e){return Fo(e,!1)}function Fo(e,t){return e}function Ry(e){return e}function Ny(e,t){return e}var Py={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},by={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function Cy(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function Nn(e){return $o(e,!1)}function $o(e,t){return e==null?e:{amount:e.amount==null?void 0:e.amount,code:e.code==null?void 0:e.code,description:e.description==null?void 0:e.description,percentage:e.percentage==null?void 0:e.percentage,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function Pn(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}var wt={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"};function My(e){for(const t in wt)if(Object.prototype.hasOwnProperty.call(wt,t)&&wt[t]===e)return!0;return!1}function he(e){return zo(e,!1)}function zo(e,t){return e}function Iy(e){return e}function Dy(e,t){return e}function Jy(e){return!(!("name"in e)||e.name===void 0)}function kt(e){return Ho(e,!1)}function Ho(e,t){return e==null?e:{bg:e.bg==null?void 0:e.bg,color:e.color==null?void 0:e.color,description:e.description==null?void 0:e.description,faIcon:e.fa_icon==null?void 0:e.fa_icon,name:e.name}}function Rt(e){return Bo(e,!1)}function Bo(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var Ey={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Fy={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},$y={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function Ly(e){return!(!("breakfastOption"in e)||e.breakfastOption===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRooms"in e)||e.hotelRooms===void 0||!("price"in e)||e.price===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("stayTaxesInfo"in e)||e.stayTaxesInfo===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0)}function He(e){return Uo(e,!1)}function Uo(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:Eo(e.breakfast_option),breakfastPricePerGuestPerNight:e.breakfast_price_per_guest_per_night==null?void 0:e.breakfast_price_per_guest_per_night,breakfastUnitPrice:e.breakfast_unit_price==null?void 0:e.breakfast_unit_price,cancellationPolicies:e.cancellation_policies.map(At),count:e.count==null?void 0:e.count,currency:he(e.currency),flexOptionEligible:e.flex_option_eligible==null?void 0:e.flex_option_eligible,hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(Mo),id:e.id==null?void 0:e.id,packageType:e.package_type==null?void 0:e.package_type,price:e.price,sourceMarket:xe(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:e.tags==null?void 0:e.tags.map(kt),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Nn),type:e.type==null?void 0:e.type}}function Be(e){return Zo(e,!1)}function Zo(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,breakfast_option:e.breakfastOption,breakfast_price_per_guest_per_night:e.breakfastPricePerGuestPerNight,breakfast_unit_price:e.breakfastUnitPrice,cancellation_policies:e.cancellationPolicies.map(St),count:e.count,currency:e.currency,flex_option_eligible:e.flexOptionEligible,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(Do),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags==null?void 0:e.tags.map(Rt),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Pn),type:e.type}}var Nt={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function zy(e){for(const t in Nt)if(Object.prototype.hasOwnProperty.call(Nt,t)&&Nt[t]===e)return!0;return!1}function Pt(e){return Go(e,!1)}function Go(e,t){return e}function Hy(e){return e}function By(e,t){return e}var bt={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"};function Uy(e){for(const t in bt)if(Object.prototype.hasOwnProperty.call(bt,t)&&bt[t]===e)return!0;return!1}function Ct(e){return qo(e,!1)}function qo(e,t){return e}function Zy(e){return e}function Gy(e,t){return e}function qy(e){return!(!("address"in e)||e.address===void 0||!("city"in e)||e.city===void 0||!("country"in e)||e.country===void 0||!("name"in e)||e.name===void 0||!("zipCode"in e)||e.zipCode===void 0)}function Ko(e){return Yo(e,!1)}function Yo(e,t){return e==null?e:{address:e.address,city:e.city,country:Ct(e.country),name:e.name,state:e.state==null?void 0:e.state,vatNumber:e.vat_number==null?void 0:e.vat_number,zipCode:e.zip_code}}function Vo(e){return Wo(e,!1)}function Wo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}var Ky={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Yy(e){return!(!("email"in e)||e.email===void 0||!("firstName"in e)||e.firstName===void 0||!("lastName"in e)||e.lastName===void 0||!("nationality"in e)||e.nationality===void 0||!("phone"in e)||e.phone===void 0)}function bn(e){return Xo(e,!1)}function Xo(e,t){return e==null?e:{address:e.address==null?void 0:e.address,city:e.city==null?void 0:e.city,country:e.country==null?void 0:Ct(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:Pt(e.lang),lastName:e.last_name,nationality:Ct(e.nationality),organization:e.organization==null?void 0:Ko(e.organization),phone:e.phone,remarks:e.remarks==null?void 0:e.remarks,salutation:e.salutation==null?void 0:e.salutation,state:e.state==null?void 0:e.state,zipCode:e.zip_code==null?void 0:e.zip_code}}function Cn(e){return Qo(e,!1)}function Qo(e,t=!1){return e==null?e:{address:e.address,city:e.city,country:e.country,email:e.email,first_name:e.firstName,lang:e.lang,last_name:e.lastName,nationality:e.nationality,organization:Vo(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Vy(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function xo(e){return jo(e,!1)}function jo(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function ea(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var Wy={Coupon:"COUPON"};function Xy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Qy(e){return Mn(e,!1)}function Mn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(xo)}}function na(e){return ra(e,!1)}function ra(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(ea)}}function xy(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function ia(e){return oa(e,!1)}function oa(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function aa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var jy={CreditCard:"CREDIT_CARD"};function eg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function tg(e){return In(e,!1)}function In(e,t){return e==null?e:{name:e.name,payload:ia(e.payload)}}function ua(e){return ca(e,!1)}function ca(e,t=!1){return e==null?e:{name:e.name,payload:aa(e.payload)}}function ng(e){return!(!("amount"in e)||e.amount===void 0)}function da(e){return fa(e,!1)}function fa(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token==null?void 0:e.token}}function la(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var rg={DepositAccount:"DEPOSIT_ACCOUNT"};function ig(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function og(e){return Dn(e,!1)}function Dn(e,t){return e==null?e:{name:e.name,payload:da(e.payload)}}function pa(e){return ha(e,!1)}function ha(e,t=!1){return e==null?e:{name:e.name,payload:la(e.payload)}}var ag={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function sg(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function ya(e){return ga(e,!1)}function ga(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,status:e.status,token:e.token==null?void 0:e.token}}function _a(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var ug={PayLater:"PAY_LATER"};function cg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function dg(e){return Jn(e,!1)}function Jn(e,t){return e==null?e:{name:e.name,payload:ya(e.payload)}}function Aa(e){return Sa(e,!1)}function Sa(e,t=!1){return e==null?e:{name:e.name,payload:_a(e.payload)}}function Ta(e){return va(e,!1)}function va(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Mn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...In(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Dn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Jn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}function En(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return na(e);case"CREDIT_CARD":return ua(e);case"DEPOSIT_ACCOUNT":return pa(e);case"PAY_LATER":return Aa(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function fg(e,t=!1){return En(e)}var lg={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function mg(e){return!(!("status"in e)||e.status===void 0)}function wa(e){return ka(e,!1)}function ka(e,t){return e==null?e:{createdAt:e.created_at==null?void 0:e.created_at,reference:e.reference==null?void 0:e.reference,status:e.status}}function Ra(e){return Na(e,!1)}function Na(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var pg={CreditNote:"credit_note",Invoice:"invoice"};function hg(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function Pa(e){return ba(e,!1)}function ba(e,t){return e==null?e:{type:e.type,url:e.url}}function Ca(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var yg={Insurance:"insurance"};function gg(e){return!(!("price"in e)||e.price===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("type"in e)||e.type===void 0)}function Fn(e){return Ia(e,!1)}function Ia(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function $n(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function _g(e){return!0}function Mt(e){return Ja(e,!1)}function Ja(e,t){return e==null?e:{latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function It(e){return Ea(e,!1)}function Ea(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function Og(e){return!(!("beds"in e)||e.beds===void 0||!("bedsPretty"in e)||e.bedsPretty===void 0||!("count"in e)||e.count===void 0||!("description"in e)||e.description===void 0||!("id"in e)||e.id===void 0||!("occupancy"in e)||e.occupancy===void 0)}function Fa(e){return $a(e,!1)}function $a(e,t){return e==null?e:{amenities:e.amenities==null?void 0:e.amenities,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:e.highres_images==null?void 0:e.highres_images,id:e.id,imageIndexes:e.image_indexes==null?void 0:e.image_indexes,images:e.images==null?void 0:e.images.map(ze),lowresImages:e.lowres_images==null?void 0:e.lowres_images,occupancy:e.occupancy,richDescription:e.rich_description==null?void 0:e.rich_description,roomSquareFeet:e.room_square_feet==null?void 0:e.room_square_feet,roomSquareMeters:e.room_square_meters==null?void 0:e.room_square_meters,thumbImages:e.thumb_images==null?void 0:e.thumb_images}}function La(e){return za(e,!1)}function za(e,t=!1){return e==null?e:{amenities:e.amenities,beds:e.beds,beds_pretty:e.bedsPretty,count:e.count,description:e.description,highres_images:e.highresImages,id:e.id,image_indexes:e.imageIndexes,images:e.images==null?void 0:e.images.map(je),lowres_images:e.lowresImages,occupancy:e.occupancy,rich_description:e.richDescription,room_square_feet:e.roomSquareFeet,room_square_meters:e.roomSquareMeters,thumb_images:e.thumbImages}}function Ag(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function Dt(e){return Ha(e,!1)}function Ha(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function Ba(e){return Ua(e,!1)}function Ua(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function Sg(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function Ln(e){return Za(e,!1)}function Za(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:Fa(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(Dt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function Ga(e){return qa(e,!1)}function qa(e,t=!1){return e==null?e:{hotel_room:La(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(Ba),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var Tg={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},vg={BkgCx:"bkg-cx",BkgCf:"bkg-cf",BkgCreated:"bkg-created",BkgAf:"bkg-af",BkgIp:"bkg-ip",BkgPc:"bkg-pc",BkgPp:"bkg-pp",BkgQr:"bkg-qr"};function wg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("contactPerson"in e)||e.contactPerson===void 0||!("createdAt"in e)||e.createdAt===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("lastStatusUpdatedAt"in e)||e.lastStatusUpdatedAt===void 0||!("reference"in e)||e.reference===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0||!("status"in e)||e.status===void 0||!("taxAmount"in e)||e.taxAmount===void 0||!("taxIncludedPrice"in e)||e.taxIncludedPrice===void 0||!("terms"in e)||e.terms===void 0)}function le(e){return Ka(e,!1)}function Ka(e,t){return e==null?e:{additionalCheckInInstruction:e.additional_check_in_instruction==null?void 0:e.additional_check_in_instruction,additionalPolicies:e.additional_policies==null?void 0:e.additional_policies,addons:e.addons==null?void 0:e.addons.map(Fn),adultCount:e.adult_count,bookingGroupId:e.booking_group_id==null?void 0:e.booking_group_id,canceledAt:e.canceled_at==null?void 0:e.canceled_at,cancellationPolicies:e.cancellation_policies.map(At),cancellationPolicyRemarks:e.cancellation_policy_remarks==null?void 0:e.cancellation_policy_remarks,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,confirmedAt:e.confirmed_at==null?void 0:e.confirmed_at,contactPerson:bn(e.contact_person),createdAt:e.created_at,currency:he(e.currency),customerReference:e.customer_reference==null?void 0:e.customer_reference,event:e.event==null?void 0:Mt(e.event),failedAt:e.failed_at==null?void 0:e.failed_at,hotelConfirmationId:e.hotel_confirmation_id==null?void 0:e.hotel_confirmation_id,hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer),hotelRoomingLists:e.hotel_rooming_lists==null?void 0:e.hotel_rooming_lists.map(Ln),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:wa(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Pa),lastStatusUpdatedAt:e.last_status_updated_at,metadata:e.metadata==null?void 0:e.metadata,payLater:e.pay_later==null?void 0:e.pay_later,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Ta),penaltyPercentage:e.penalty_percentage==null?void 0:e.penalty_percentage,reference:e.reference,sourceMarket:xe(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(Nn),terms:e.terms,token:e.token==null?void 0:e.token}}function Ya(e){return Va(e,!1)}function Va(e,t=!1){return e==null?e:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,addons:e.addons==null?void 0:e.addons.map($n),adult_count:e.adultCount,booking_group_id:e.bookingGroupId,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(St),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:Cn(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:It(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists==null?void 0:e.hotelRoomingLists.map(Ga),id:e.id,insurance:Ra(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Ca),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(En),penalty_percentage:e.penaltyPercentage,reference:e.reference,source_market:e.sourceMarket,status:e.status,tax_amount:e.taxAmount,tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Pn),terms:e.terms,token:e.token}}var kg={Insurance:"insurance"};function Rg(e){return!(!("type"in e)||e.type===void 0)}function Wa(e){return Xa(e,!1)}function Xa(e,t){return e==null?e:{type:e.type}}function Qa(e){return xa(e,!1)}function xa(e,t=!1){return e==null?e:{type:e.type}}function Ng(e){return!(!("fullname"in e)||e.fullname===void 0)}function ja(e){return es(e,!1)}function es(e,t){return e==null?e:{fullname:e.fullname}}function ts(e){return ns(e,!1)}function ns(e,t=!1){return e==null?e:{fullname:e.fullname}}function Pg(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function rs(e){return is(e,!1)}function is(e,t){return e==null?e:{guests:e.guests.map(ja),hotelRoomId:e.hotel_room_id}}function os(e){return as(e,!1)}function as(e,t=!1){return e==null?e:{guests:e.guests.map(ts),hotel_room_id:e.hotelRoomId}}function bg(e){return!0}function Ue(e){return ss(e,!1)}function ss(e,t){return e==null?e:{dateEnd:e.date_end==null?void 0:e.date_end,dateStart:e.date_start==null?void 0:e.date_start,id:e.id==null?void 0:e.id,imageUrl:e.image_url==null?void 0:e.image_url,name:e.name==null?void 0:e.name,slug:e.slug==null?void 0:e.slug}}function Ze(e){return us(e,!1)}function us(e,t=!1){return e==null?e:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function Cg(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function cs(e){return ds(e,!1)}function ds(e,t){return e==null?e:{couponIds:e.coupon_ids}}function fs(e){return ls(e,!1)}function ls(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Mg={Coupon:"COUPON"};function Ig(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Dg(e){return zn(e,!1)}function zn(e,t){return e==null?e:{name:e.name,payload:cs(e.payload)}}function ms(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{name:e.name,payload:fs(e.payload)}}var Jg={CreditCard:"CREDIT_CARD"};function Eg(e){return!(!("name"in e)||e.name===void 0)}function Fg(e){return Hn(e,!1)}function Hn(e,t){return e==null?e:{name:e.name}}function hs(e){return ys(e,!1)}function ys(e,t=!1){return e==null?e:{name:e.name}}var $g={DepositAccount:"DEPOSIT_ACCOUNT"};function Lg(e){return!(!("name"in e)||e.name===void 0)}function zg(e){return Bn(e,!1)}function Bn(e,t){return e==null?e:{name:e.name}}function gs(e){return _s(e,!1)}function _s(e,t=!1){return e==null?e:{name:e.name}}function Un(e){return Os(e,!1)}function Os(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...zn(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...Hn(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Bn(e,!0),name:"DEPOSIT_ACCOUNT"};default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}function Jt(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return ms(e);case"CREDIT_CARD":return hs(e);case"DEPOSIT_ACCOUNT":return gs(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function Hg(e,t=!1){return Jt(e)}function Bg(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function Ug(e){return As(e,!1)}function As(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Wa),bookingPolicyId:e.booking_policy_id,contactPerson:bn(e.contact_person),eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),guestsList:e.guests_list==null?void 0:e.guests_list.map(rs),metadata:e.metadata==null?void 0:e.metadata,paymentMethods:e.payment_methods==null?void 0:e.payment_methods.map(Un),trackingId:e.tracking_id==null?void 0:e.tracking_id}}function Ss(e){return Ts(e,!1)}function Ts(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Qa),booking_policy_id:e.bookingPolicyId,contact_person:Cn(e.contactPerson),event_metadata:Ze(e.eventMetadata),guests_list:e.guestsList==null?void 0:e.guestsList.map(os),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(Jt),tracking_id:e.trackingId}}function Zg(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("cancellationPolicies"in e)||e.cancellationPolicies===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("expiresAt"in e)||e.expiresAt===void 0||!("hasRoomingLists"in e)||e.hasRoomingLists===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0||!("id"in e)||e.id===void 0||!("isCancellationPoliciesUpdated"in e)||e.isCancellationPoliciesUpdated===void 0||!("isPriceIncreased"in e)||e.isPriceIncreased===void 0)}function Zn(e){return vs(e,!1)}function vs(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Fn),adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(At),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),expiresAt:e.expires_at==null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer),id:e.id,isCancellationPoliciesUpdated:e.is_cancellation_policies_updated,isPriceIncreased:e.is_price_increased}}function Gg(e){return ws(e,!1)}function ws(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map($n),adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(St),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt==null?e.expiresAt:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer),id:e.id,is_cancellation_policies_updated:e.isCancellationPoliciesUpdated,is_price_increased:e.isPriceIncreased}}function qg(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Kg(e){return ks(e,!1)}function ks(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,hotelRoomOfferId:e.hotel_room_offer_id,lang:e.lang==null?void 0:Pt(e.lang)}}function Rs(e){return Ns(e,!1)}function Ns(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function Yg(e){return!0}function Ps(e){return bs(e,!1)}function bs(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count}}function Cs(e){return Ms(e,!1)}function Ms(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Vg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Is(e){return Ds(e,!1)}function Ds(e,t){return e==null?e:{data:e.data.map(le),meta:Ps(e.meta)}}function Wg(e){return Js(e,!1)}function Js(e,t=!1){return e==null?e:{data:e.data.map(Ya),meta:Cs(e.meta)}}var Xg={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"};function Qg(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function xg(e){return Es(e,!1)}function Es(e,t){return e==null?e:{documentationUrl:e.documentation_url==null?void 0:e.documentation_url,error:e.error==null?void 0:e.error,message:e.message==null?void 0:e.message,statusCode:e.statusCode,type:e.type==null?void 0:e.type}}function jg(e){return Fs(e,!1)}function Fs(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function e_(e){return!(!("rating"in e)||e.rating===void 0)}function Gn(e){return $s(e,!1)}function $s(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function qn(e){return Ls(e,!1)}function Ls(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function t_(e){return!0}function Kn(e){return zs(e,!1)}function zs(e,t){return e==null?e:{count:e.count==null?void 0:e.count,highres:e.highres==null?void 0:e.highres,lowres:e.lowres==null?void 0:e.lowres,prefix:e.prefix==null?void 0:e.prefix,suffix:e.suffix==null?void 0:e.suffix,thumb:e.thumb==null?void 0:e.thumb}}function Yn(e){return Hs(e,!1)}function Hs(e,t=!1){return e==null?e:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function n_(e){return!0}function Bs(e){return Us(e,!1)}function Us(e,t){return e==null?e:{driving:e.driving==null?void 0:e.driving,transit:e.transit==null?void 0:e.transit,walking:e.walking==null?void 0:e.walking}}function Zs(e){return Gs(e,!1)}function Gs(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function r_(e){return!(!("name"in e)||e.name===void 0)}function Vn(e){return qs(e,!1)}function qs(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:Bs(e.travel_times)}}function Wn(e){return Ks(e,!1)}function Ks(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Zs(e.travelTimes)}}function i_(e){return!(!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0)}function Ys(e){return Vs(e,!1)}function Vs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:kn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:he(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images==null?void 0:e.hotel_images.map(ze),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Gn),id:e.id,images:e.images==null?void 0:Kn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(kt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website}}function o_(e){return Ws(e,!1)}function Ws(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Rn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages==null?void 0:e.hotelImages.map(je),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(qn),id:e.id,images:Yn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(Rt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website}}function a_(e){return!(!("hotelImages"in e)||e.hotelImages===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("name"in e)||e.name===void 0||!("timezone"in e)||e.timezone===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function Xs(e){return Qs(e,!1)}function Qs(e,t){return e==null?e:{address:e.address==null?void 0:e.address,address2:e.address2==null?void 0:e.address2,amenities:e.amenities==null?void 0:kn(e.amenities),checkInTime:e.check_in_time==null?void 0:e.check_in_time,checkOutTime:e.check_out_time==null?void 0:e.check_out_time,city:e.city==null?void 0:e.city,country:e.country==null?void 0:e.country,countryCode:e.country_code==null?void 0:e.country_code,currency:e.currency==null?void 0:he(e.currency),description:e.description==null?void 0:e.description,distance:e.distance==null?void 0:e.distance,email:e.email==null?void 0:e.email,fax:e.fax==null?void 0:e.fax,hotelImages:e.hotel_images.map(ze),hotelReviewRatings:e.hotel_review_ratings==null?void 0:e.hotel_review_ratings.map(Gn),id:e.id,images:e.images==null?void 0:Kn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone==null?void 0:e.phone,policy:e.policy==null?void 0:e.policy,postalCode:e.postal_code==null?void 0:e.postal_code,rating:e.rating==null?void 0:e.rating,reviewCount:e.review_count==null?void 0:e.review_count,state:e.state==null?void 0:e.state,taId:e.ta_id==null?void 0:e.ta_id,tags:e.tags==null?void 0:e.tags.map(kt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website,hotelRoomOffers:e.hotel_room_offers.map(He)}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:Rn(e.amenities),check_in_time:e.checkInTime,check_out_time:e.checkOutTime,city:e.city,country:e.country,country_code:e.countryCode,currency:e.currency,description:e.description,distance:e.distance,email:e.email,fax:e.fax,hotel_images:e.hotelImages.map(je),hotel_review_ratings:e.hotelReviewRatings==null?void 0:e.hotelReviewRatings.map(qn),id:e.id,images:Yn(e.images),latitude:e.latitude,longitude:e.longitude,name:e.name,phone:e.phone,policy:e.policy,postal_code:e.postalCode,rating:e.rating,review_count:e.reviewCount,state:e.state,ta_id:e.taId,tags:e.tags==null?void 0:e.tags.map(Rt),timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Be)}}function s_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("latitude"in e)||e.latitude===void 0||!("longitude"in e)||e.longitude===void 0||!("roomCount"in e)||e.roomCount===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function Xn(e){return eu(e,!1)}function eu(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,createdAt:e.created_at,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:xe(e.source_market)}}function u_(e){return tu(e,!1)}function tu(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,created_at:e.createdAt,event_metadata:Ze(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function c_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("roomCount"in e)||e.roomCount===void 0)}function d_(e){return nu(e,!1)}function nu(e,t){return e==null?e:{address:e.address==null?void 0:e.address,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),latitude:e.latitude==null?void 0:e.latitude,longitude:e.longitude==null?void 0:e.longitude,roomCount:e.room_count}}function ru(e){return iu(e,!1)}function iu(e,t=!1){return e==null?e:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount}}function f_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelOffers"in e)||e.hotelOffers===void 0)}function ou(e){return au(e,!1)}function au(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelOffers:e.hotel_offers.map(Xs),priceHistogram:e.price_histogram==null?void 0:e.price_histogram,priceMax:e.price_max==null?void 0:e.price_max,priceMin:e.price_min==null?void 0:e.price_min}}function su(e){return uu(e,!1)}function uu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_offers:e.hotelOffers.map(xs),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var Et={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function l_(e){for(const t in Et)if(Object.prototype.hasOwnProperty.call(Et,t)&&Et[t]===e)return!0;return!1}function cu(e){return du(e,!1)}function du(e,t){return e}function m_(e){return e}function p_(e,t){return e}function h_(e){return!(!("status"in e)||e.status===void 0)}function Qn(e){return fu(e,!1)}function fu(e,t){return e==null?e:{endingBefore:e.ending_before==null?void 0:e.ending_before,limit:e.limit==null?void 0:e.limit,startingAfter:e.starting_after==null?void 0:e.starting_after,totalCount:e.total_count==null?void 0:e.total_count,status:cu(e.status)}}function xn(e){return lu(e,!1)}function lu(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function y_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function mu(e){return pu(e,!1)}function pu(e,t){return e==null?e:{data:ou(e.data),event:e.event==null?void 0:Mt(e.event),meta:Qn(e.meta)}}function g_(e){return hu(e,!1)}function hu(e,t=!1){return e==null?e:{data:su(e.data),event:It(e.event),meta:xn(e.meta)}}function __(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffer"in e)||e.hotelRoomOffer===void 0)}function yu(e){return gu(e,!1)}function gu(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelId:e.hotel_id,hotelRoomOffer:He(e.hotel_room_offer)}}function O_(e){return _u(e,!1)}function _u(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offer:Be(e.hotelRoomOffer)}}function A_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0||!("createdAt"in e)||e.createdAt===void 0||!("id"in e)||e.id===void 0||!("sourceMarket"in e)||e.sourceMarket===void 0)}function jn(e){return Ou(e,!1)}function Ou(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count,createdAt:e.created_at,id:e.id,sourceMarket:xe(e.source_market)}}function S_(e){return Au(e,!1)}function Au(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,created_at:e.createdAt,id:e.id,source_market:e.sourceMarket}}function T_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("hotelId"in e)||e.hotelId===void 0||!("roomCount"in e)||e.roomCount===void 0)}function v_(e){return Su(e,!1)}function Su(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,eventMetadata:e.event_metadata==null?void 0:Ue(e.event_metadata),hotelId:e.hotel_id,roomCount:e.room_count}}function Tu(e){return vu(e,!1)}function vu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:Ze(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount}}function w_(e){return!(!("adultCount"in e)||e.adultCount===void 0||!("checkInDate"in e)||e.checkInDate===void 0||!("checkOutDate"in e)||e.checkOutDate===void 0||!("currency"in e)||e.currency===void 0||!("hotelId"in e)||e.hotelId===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0||!("hotelTimezone"in e)||e.hotelTimezone===void 0)}function wu(e){return ku(e,!1)}function ku(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:e.children==null?void 0:e.children,currency:he(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(He),hotelTimezone:e.hotel_timezone}}function Ru(e){return Nu(e,!1)}function Nu(e,t=!1){return e==null?e:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,hotel_id:e.hotelId,hotel_room_offers:e.hotelRoomOffers.map(Be),hotel_timezone:e.hotelTimezone}}function k_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Pu(e){return bu(e,!1)}function bu(e,t){return e==null?e:{data:wu(e.data),event:e.event==null?void 0:Mt(e.event),meta:Qn(e.meta)}}function R_(e){return Cu(e,!1)}function Cu(e,t=!1){return e==null?e:{data:Ru(e.data),event:It(e.event),meta:xn(e.meta)}}function N_(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Mu(e){return Iu(e,!1)}function Iu(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function Du(e){return Ju(e,!1)}function Ju(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function P_(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function b_(e){return Eu(e,!1)}function Eu(e,t){return e==null?e:{addBreakfast:e.add_breakfast==null?void 0:e.add_breakfast,breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,currency:he(e.currency),hotelRoomOffers:e.hotel_room_offers.map(Mu),lang:e.lang==null?void 0:Pt(e.lang)}}function Fu(e){return $u(e,!1)}function $u(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(Du),lang:e.lang}}function C_(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function M_(e){return Lu(e,!1)}function Lu(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function zu(e){return Hu(e,!1)}function Hu(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function I_(e){return!(!("fullname"in e)||e.fullname===void 0)}function D_(e){return Bu(e,!1)}function Bu(e,t){return e==null?e:{fullname:e.fullname}}function Uu(e){return Zu(e,!1)}function Zu(e,t=!1){return e==null?e:{fullname:e.fullname}}function J_(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function E_(e){return Gu(e,!1)}function Gu(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(Un)}}function qu(e){return Ku(e,!1)}function Ku(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(Jt)}}var F_={AddOrRemoveNights:"add_or_remove_nights",AddOrRemovePerson:"add_or_remove_person",ChangeDates:"change_dates",ChangeGuestName:"change_guest_name",EarlyCheckIn:"early_check_in",EarlyCheckInLateCheckOut:"early_check_in_late_check_out",LateCheckOut:"late_check_out",Other:"other",SpecialRequest:"special_request"};function $_(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function L_(e){return Yu(e,!1)}function Yu(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Vu(e){return Wu(e,!1)}function Wu(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Xu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Zn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async paymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={};e.couponCodes&&(n.coupon_codes=e.couponCodes);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>o.map(Oo))}async paymentMethods(e,t){return await(await this.paymentMethodsRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:F(n,D.Snake),body:F(Rs(e.bookingPoliciesCreateApi),D.Snake)},t);return new q(i,o=>Zn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Qu=class extends ce{async deleteRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:F({},D.Snake)},t);return new q(n,r=>le(r))}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async listRaw(e,t){const n={};e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(n.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(n.filter_by_status=e.filterByStatus),e.limit!==void 0&&(n.limit=e.limit),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Is(o))}async list(e={},t){return await(await this.listRaw(e,t)).value()}async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async certificateRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenCertificate.");if(e.customerName===null||e.customerName===void 0)throw new Z("customerName","Required parameter requestParameters.customerName was null or undefined when calling getV1BookingsTokenCertificate.");const n={};e.customerName!==void 0&&(n.customer_name=e.customerName),e.locale!==void 0&&(n.locale=e.locale);const r=await this.request({path:"/v1/bookings/{token}/certificate".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F(n,D.Snake)},t);return new Qi(r)}async certificate(e,t){await this.certificateRaw(e,t)}async retrievePublicRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F({},D.Snake)},t);return new q(n,r=>le(r))}async retrievePublic(e,t){return await(await this.retrievePublicRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:F(n,D.Snake),body:F(Ss(e.bookingCreateApi),D.Snake)},t);return new q(i,o=>le(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}async couponChargeRaw(e,t){if(e.couponId===null||e.couponId===void 0)throw new Z("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async couponCharge(e,t){return await(await this.couponChargeRaw(e,t)).value()}async paylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async paylater(e,t){return await(await this.paylaterRaw(e,t)).value()}async confirmpaylaterRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async confirmpaylater(e,t){return await(await this.confirmpaylaterRaw(e,t)).value()}async confirmRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>le(o))}async confirm(e,t){return await(await this.confirmRaw(e,t)).value()}async submitRequestRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1BookingsTokenRequest.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/bookings/{token}/request".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:F(n,D.Snake),body:F(Vu(e.requestPayload),D.Snake)},t);return new An(i)}async submitRequest(e,t){return await(await this.submitRequestRaw(e,t)).value()}async updatePaymentMethodsRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:F(n,D.Snake),body:F(qu(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return new q(i,o=>le(o))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},z_={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},H_={Asc:"asc",Desc:"desc"},xu=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>o.map(ze))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},ju=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Xn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:F(n,D.Snake),body:F(ru(e.hotelOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>Xn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},ec=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new Z("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.endingBefore!==void 0&&(n.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(n.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(n.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(n.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(n.sort_by=e.sortBy),e.sortByOrder!==void 0&&(n.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(n.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>mu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:ur.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?rt(r,i,t):rt(r,i)}},B_={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},U_={Asc:"asc",Desc:"desc"},tc=class extends ce{async deleteRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:{},query:F({},D.Snake)},t);return new An(n)}async delete(e,t){return await(await this.deleteRaw(e,t)).value()}async updateRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:F(n,D.Snake),body:F(Uu(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return new q(i,o=>Dt(o))}async update(e,t){return await(await this.updateRaw(e,t)).value()}async createRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},r={};r["Content-Type"]="application/json";const i=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:F(n,D.Snake),body:F(zu(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return new q(i,o=>Dt(o))}async create(e,t){return await(await this.createRaw(e,t)).value()}},nc=class extends ce{async listRaw(e,t){if(e.token===null||e.token===void 0)throw new Z("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:{},query:F(n,D.Snake)},t);return new q(r,i=>i.map(Ln))}async list(e,t){return await(await this.listRaw(e,t)).value()}},rc=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>F(o,D.Camel))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},ic=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>jn(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:F(n,D.Snake),body:F(Tu(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>jn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},oc=class extends ce{async listRaw(e,t){if(e.currency===null||e.currency===void 0)throw new Z("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new Z("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};e.currency!==void 0&&(n.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(n.lang=e.lang),e.limit!==void 0&&(n.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Pu(o))}list(e,t,n){const r=async()=>(await this.listRaw(e,n)).value(),i={type:ur.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount};return t?rt(r,i,t):rt(r,i)}async createRaw(e,t){const n={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:F(n,D.Snake),body:F(Fu(e.hotelRoomOffersCreateApi),D.Snake)},t);return new q(i,o=>yu(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},ac=class extends ce{async retrieveRaw(e,t){if(e.id===null||e.id===void 0)throw new Z("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),e.eventId!==void 0&&(n.event_id=e.eventId),e.eventSlug!==void 0&&(n.event_slug=e.eventSlug),e.lang!==void 0&&(n.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const i=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:F(n,D.Snake)},t);return new q(i,o=>Ys(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},sc=class extends gn{documentationUrl;status;title;type;constructor(e){super(e.response,e.body?.message??`Request failed with status ${e.status}`),this.status=e.status,this.type=e.body?.type,this.title=e.body?.title,this.documentationUrl=e.body?.documentationUrl}},Z_=class{async post(e){const{response:t}=e;if(t.ok)return;let n;try{n=await t.clone().json()}catch{n=void 0}throw new sc({body:n,response:t,status:t.status})}},uc=e=>({bookingPolicies:new Xu(e),bookings:new Qu(e),hotelImages:new xu(e),hotelOfferRequests:new ju(e),hotelOffers:new ec(e),hotelRoomingListGuests:new tc(e),hotelRoomingLists:new nc(e),hotelRoomOfferImages:new rc(e),hotelRoomOfferRequests:new ic(e),hotelRoomOffers:new oc(e),hotels:new ac(e)});function G_(e){switch(e){case Je.CiCd:return"AUTH_TOKEN_CICD";case Je.Local:return"AUTH_TOKEN_LOCAL";case Je.Production:return"AUTH_TOKEN";case Je.Sandbox:return"AUTH_TOKEN_SANDBOX";case Je.Staging:return"AUTH_TOKEN_STAGING";case void 0:default:return"AUTH_TOKEN"}}function cc(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(G_(e))))}var q_=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",cc(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},K_=class{config;constructor(e){this.config=e}async pre(e){return cc(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},Y_=class{config;apiVersionsToClient;constructor(e){if(this.config=e,!e.apiVersion||!Object.values(ar).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(ar))}`);let t={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(t={...t,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let r=this.config.apiBaseUrl??pc[n];!this.config.apiBaseUrl&&n===Je.Local&&(r="http://127.0.0.1:3001");const i=new _n({basePath:r,fetchApi:gc.default,headers:t,middleware:[new q_(this.config),new K_(this.config),new Z_]});this.apiVersionsToClient={v1:uc(i)}}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotelRoomOfferImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferImages}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}};a.AllowedPaymentMethodApiFromJSON=Oo,a.AllowedPaymentMethodApiFromJSONTyped=Ao,a.AllowedPaymentMethodApiToJSON=So,a.AllowedPaymentMethodApiToJSONTyped=py,a.AllowedPaymentMethodCouponApiFromJSON=ny,a.AllowedPaymentMethodCouponApiFromJSONTyped=Sn,a.AllowedPaymentMethodCouponApiNameEnum=ey,a.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=xh,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=no,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=ro,a.AllowedPaymentMethodCouponApiPayloadInnerToJSON=io,a.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=oo,a.AllowedPaymentMethodCouponApiToJSON=ao,a.AllowedPaymentMethodCouponApiToJSONTyped=so,a.AllowedPaymentMethodCreditCardApiFromJSON=oy,a.AllowedPaymentMethodCreditCardApiFromJSONTyped=Tn,a.AllowedPaymentMethodCreditCardApiNameEnum=ry,a.AllowedPaymentMethodCreditCardApiToJSON=uo,a.AllowedPaymentMethodCreditCardApiToJSONTyped=co,a.AllowedPaymentMethodDepositAccountApiFromJSON=uy,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=vn,a.AllowedPaymentMethodDepositAccountApiNameEnum=ay,a.AllowedPaymentMethodDepositAccountApiToJSON=fo,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=lo,a.AllowedPaymentMethodPayLaterApiFromJSON=my,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=wn,a.AllowedPaymentMethodPayLaterApiNameEnum=fy,a.AllowedPaymentMethodPayLaterApiPayloadFromJSON=mo,a.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=po,a.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=cy,a.AllowedPaymentMethodPayLaterApiPayloadToJSON=ho,a.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=yo,a.AllowedPaymentMethodPayLaterApiToJSON=go,a.AllowedPaymentMethodPayLaterApiToJSONTyped=_o,a.AmenitiesApiFromJSON=kn,a.AmenitiesApiFromJSONTyped=To,a.AmenitiesApiToJSON=Rn,a.AmenitiesApiToJSONTyped=vo,a.ApiClient=Y_,a.ApiError=sc,a.BASE_PATH=Xi,a.BaseAPI=ce,a.BedApiFromJSON=gy,a.BedApiFromJSONTyped=wo,a.BedApiToJSON=_y,a.BedApiToJSONTyped=ko,a.BlobApiResponse=Gh,a.BookingApiFromJSON=le,a.BookingApiFromJSONTyped=Ka,a.BookingApiPayLaterEnum=Tg,a.BookingApiStatusEnum=vg,a.BookingApiToJSON=Ya,a.BookingApiToJSONTyped=Va,a.BookingCreateApiFromJSON=Ug,a.BookingCreateApiFromJSONTyped=As,a.BookingCreateApiGuestsListInnerFromJSON=rs,a.BookingCreateApiGuestsListInnerFromJSONTyped=is,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=ja,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=es,a.BookingCreateApiGuestsListInnerGuestsInnerToJSON=ts,a.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=ns,a.BookingCreateApiGuestsListInnerToJSON=os,a.BookingCreateApiGuestsListInnerToJSONTyped=as,a.BookingCreateApiToJSON=Ss,a.BookingCreateApiToJSONTyped=Ts,a.BookingPolicies=Xu,a.BookingPoliciesApiFromJSON=Zn,a.BookingPoliciesApiFromJSONTyped=vs,a.BookingPoliciesApiToJSON=Gg,a.BookingPoliciesApiToJSONTyped=ws,a.BookingPoliciesCreateApiFromJSON=Kg,a.BookingPoliciesCreateApiFromJSONTyped=ks,a.BookingPoliciesCreateApiToJSON=Rs,a.BookingPoliciesCreateApiToJSONTyped=Ns,a.Bookings=Qu,a.BookingsApiResponseFromJSON=Is,a.BookingsApiResponseFromJSONTyped=Ds,a.BookingsApiResponseToJSON=Wg,a.BookingsApiResponseToJSONTyped=Js,a.BookingsSortByEnum=z_,a.BookingsSortByOrderEnum=H_,a.BreakfastOption=vt,a.BreakfastOptionFromJSON=Eo,a.BreakfastOptionFromJSONTyped=Fo,a.BreakfastOptionToJSON=Ry,a.BreakfastOptionToJSONTyped=Ny,a.COLLECTION_FORMATS=Bh,a.CancellationPolicyApiFromJSON=At,a.CancellationPolicyApiFromJSONTyped=Ro,a.CancellationPolicyApiToJSON=St,a.CancellationPolicyApiToJSONTyped=No,a.Configuration=_n,a.ContactPersonApiFromJSON=bn,a.ContactPersonApiFromJSONTyped=Xo,a.ContactPersonApiSalutationEnum=Ky,a.ContactPersonApiToJSON=Cn,a.ContactPersonApiToJSONTyped=Qo,a.ContactPersonOrganizationApiFromJSON=Ko,a.ContactPersonOrganizationApiFromJSONTyped=Yo,a.ContactPersonOrganizationApiToJSON=Vo,a.ContactPersonOrganizationApiToJSONTyped=Wo,a.CountryIso2Code=bt,a.CountryIso2CodeFromJSON=Ct,a.CountryIso2CodeFromJSONTyped=qo,a.CountryIso2CodeToJSON=Zy,a.CountryIso2CodeToJSONTyped=Gy,a.CouponPreviewAppliedApiFromJSON=Kh,a.CouponPreviewAppliedApiFromJSONTyped=xi,a.CouponPreviewAppliedApiToJSON=Yh,a.CouponPreviewAppliedApiToJSONTyped=ji,a.CouponPreviewRejectedApiErrorEnum=Vh,a.CouponPreviewRejectedApiFromJSON=Xh,a.CouponPreviewRejectedApiFromJSONTyped=eo,a.CouponPreviewRejectedApiToJSON=Qh,a.CouponPreviewRejectedApiToJSONTyped=to,a.CurrencyClient=wt,a.CurrencyClientFromJSON=he,a.CurrencyClientFromJSONTyped=zo,a.CurrencyClientToJSON=Iy,a.CurrencyClientToJSONTyped=Dy,a.ErrorApiResponseFromJSON=xg,a.ErrorApiResponseFromJSONTyped=Es,a.ErrorApiResponseToJSON=jg,a.ErrorApiResponseToJSONTyped=Fs,a.ErrorApiResponseTypeEnum=Xg,a.EventApiFromJSON=Mt,a.EventApiFromJSONTyped=Ja,a.EventApiToJSON=It,a.EventApiToJSONTyped=Ea,a.EventMetadataApiFromJSON=Ue,a.EventMetadataApiFromJSONTyped=ss,a.EventMetadataApiToJSON=Ze,a.EventMetadataApiToJSONTyped=us,a.HotelApiFromJSON=Ys,a.HotelApiFromJSONTyped=Vs,a.HotelApiImagesFromJSON=Kn,a.HotelApiImagesFromJSONTyped=zs,a.HotelApiImagesToJSON=Yn,a.HotelApiImagesToJSONTyped=Hs,a.HotelApiToJSON=o_,a.HotelApiToJSONTyped=Ws,a.HotelImageApiFromJSON=ze,a.HotelImageApiFromJSONTyped=bo,a.HotelImageApiToJSON=je,a.HotelImageApiToJSONTyped=Co,a.HotelImages=xu,a.HotelOfferApiFromJSON=Xs,a.HotelOfferApiFromJSONTyped=Qs,a.HotelOfferApiToJSON=xs,a.HotelOfferApiToJSONTyped=js,a.HotelOfferRequestApiResponseFromJSON=Xn,a.HotelOfferRequestApiResponseFromJSONTyped=eu,a.HotelOfferRequestApiResponseToJSON=u_,a.HotelOfferRequestApiResponseToJSONTyped=tu,a.HotelOfferRequestCreateApiFromJSON=d_,a.HotelOfferRequestCreateApiFromJSONTyped=nu,a.HotelOfferRequestCreateApiToJSON=ru,a.HotelOfferRequestCreateApiToJSONTyped=iu,a.HotelOfferRequests=ju,a.HotelOffers=ec,a.HotelOffersApiResponseFromJSON=mu,a.HotelOffersApiResponseFromJSONTyped=pu,a.HotelOffersApiResponseToJSON=g_,a.HotelOffersApiResponseToJSONTyped=hu,a.HotelOffersDataApiResponseFromJSON=ou,a.HotelOffersDataApiResponseFromJSONTyped=au,a.HotelOffersDataApiResponseToJSON=su,a.HotelOffersDataApiResponseToJSONTyped=uu,a.HotelOffersSortByEnum=B_,a.HotelOffersSortByOrderEnum=U_,a.HotelReviewRatingApiFromJSON=Gn,a.HotelReviewRatingApiFromJSONTyped=$s,a.HotelReviewRatingApiToJSON=qn,a.HotelReviewRatingApiToJSONTyped=Ls,a.HotelRoomOfferApiFromJSON=He,a.HotelRoomOfferApiFromJSONTyped=Uo,a.HotelRoomOfferApiHotelRoomsInnerFromJSON=Mo,a.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=Io,a.HotelRoomOfferApiHotelRoomsInnerToJSON=Do,a.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=Jo,a.HotelRoomOfferApiPackageTypeEnum=Ey,a.HotelRoomOfferApiResponseFromJSON=yu,a.HotelRoomOfferApiResponseFromJSONTyped=gu,a.HotelRoomOfferApiResponseToJSON=O_,a.HotelRoomOfferApiResponseToJSONTyped=_u,a.HotelRoomOfferApiStayTaxesInfoEnum=Fy,a.HotelRoomOfferApiToJSON=Be,a.HotelRoomOfferApiToJSONTyped=Zo,a.HotelRoomOfferApiTypeEnum=$y,a.HotelRoomOfferImages=rc,a.HotelRoomOfferRequestApiResponseFromJSON=jn,a.HotelRoomOfferRequestApiResponseFromJSONTyped=Ou,a.HotelRoomOfferRequestApiResponseToJSON=S_,a.HotelRoomOfferRequestApiResponseToJSONTyped=Au,a.HotelRoomOfferRequestCreateApiFromJSON=v_,a.HotelRoomOfferRequestCreateApiFromJSONTyped=Su,a.HotelRoomOfferRequestCreateApiToJSON=Tu,a.HotelRoomOfferRequestCreateApiToJSONTyped=vu,a.HotelRoomOfferRequests=ic,a.HotelRoomOffers=oc,a.HotelRoomOffersApiResponseFromJSON=Pu,a.HotelRoomOffersApiResponseFromJSONTyped=bu,a.HotelRoomOffersApiResponseToJSON=R_,a.HotelRoomOffersApiResponseToJSONTyped=Cu,a.HotelRoomOffersCreateApiFromJSON=b_,a.HotelRoomOffersCreateApiFromJSONTyped=Eu,a.HotelRoomOffersCreateApiToJSON=Fu,a.HotelRoomOffersCreateApiToJSONTyped=$u,a.HotelRoomOffersDataApiResponseFromJSON=wu,a.HotelRoomOffersDataApiResponseFromJSONTyped=ku,a.HotelRoomOffersDataApiResponseToJSON=Ru,a.HotelRoomOffersDataApiResponseToJSONTyped=Nu,a.HotelRoomOffersDataCreateApiFromJSON=Mu,a.HotelRoomOffersDataCreateApiFromJSONTyped=Iu,a.HotelRoomOffersDataCreateApiToJSON=Du,a.HotelRoomOffersDataCreateApiToJSONTyped=Ju,a.HotelRoomingListApiFromJSON=Ln,a.HotelRoomingListApiFromJSONTyped=Za,a.HotelRoomingListApiHotelRoomFromJSON=Fa,a.HotelRoomingListApiHotelRoomFromJSONTyped=$a,a.HotelRoomingListApiHotelRoomToJSON=La,a.HotelRoomingListApiHotelRoomToJSONTyped=za,a.HotelRoomingListApiToJSON=Ga,a.HotelRoomingListApiToJSONTyped=qa,a.HotelRoomingListGuestApiFromJSON=Dt,a.HotelRoomingListGuestApiFromJSONTyped=Ha,a.HotelRoomingListGuestApiToJSON=Ba,a.HotelRoomingListGuestApiToJSONTyped=Ua,a.HotelRoomingListGuests=tc,a.HotelRoomingListGuestsCreateApiFromJSON=M_,a.HotelRoomingListGuestsCreateApiFromJSONTyped=Lu,a.HotelRoomingListGuestsCreateApiToJSON=zu,a.HotelRoomingListGuestsCreateApiToJSONTyped=Hu,a.HotelRoomingListGuestsUpdateApiFromJSON=D_,a.HotelRoomingListGuestsUpdateApiFromJSONTyped=Bu,a.HotelRoomingListGuestsUpdateApiToJSON=Uu,a.HotelRoomingListGuestsUpdateApiToJSONTyped=Zu,a.HotelRoomingLists=nc,a.Hotels=ac,a.InsuranceApiFromJSON=wa,a.InsuranceApiFromJSONTyped=ka,a.InsuranceApiStatusEnum=lg,a.InsuranceApiToJSON=Ra,a.InsuranceApiToJSONTyped=Na,a.InvoiceApiFromJSON=Pa,a.InvoiceApiFromJSONTyped=ba,a.InvoiceApiToJSON=Ca,a.InvoiceApiToJSONTyped=Ma,a.InvoiceApiTypeEnum=pg,a.JSONApiResponse=q,a.Locale=Nt,a.LocaleFromJSON=Pt,a.LocaleFromJSONTyped=Go,a.LocaleToJSON=Hy,a.LocaleToJSONTyped=By,a.MetaPollingResponseApiFromJSON=Qn,a.MetaPollingResponseApiFromJSONTyped=fu,a.MetaPollingResponseApiToJSON=xn,a.MetaPollingResponseApiToJSONTyped=lu,a.MetaResponseApiFromJSON=Ps,a.MetaResponseApiFromJSONTyped=bs,a.MetaResponseApiToJSON=Cs,a.MetaResponseApiToJSONTyped=Ms,a.OrderAddonFromJSON=Fn,a.OrderAddonFromJSONTyped=Ia,a.OrderAddonSelectionFromJSON=Wa,a.OrderAddonSelectionFromJSONTyped=Xa,a.OrderAddonSelectionToJSON=Qa,a.OrderAddonSelectionToJSONTyped=xa,a.OrderAddonSelectionTypeEnum=kg,a.OrderAddonToJSON=$n,a.OrderAddonToJSONTyped=Da,a.OrderAddonTypeEnum=yg,a.PaymentMethodApiFromJSON=Ta,a.PaymentMethodApiFromJSONTyped=va,a.PaymentMethodApiToJSON=En,a.PaymentMethodApiToJSONTyped=fg,a.PaymentMethodCouponApiFromJSON=Qy,a.PaymentMethodCouponApiFromJSONTyped=Mn,a.PaymentMethodCouponApiNameEnum=Wy,a.PaymentMethodCouponApiPayloadInnerFromJSON=xo,a.PaymentMethodCouponApiPayloadInnerFromJSONTyped=jo,a.PaymentMethodCouponApiPayloadInnerToJSON=ea,a.PaymentMethodCouponApiPayloadInnerToJSONTyped=ta,a.PaymentMethodCouponApiToJSON=na,a.PaymentMethodCouponApiToJSONTyped=ra,a.PaymentMethodCreditCardApiFromJSON=tg,a.PaymentMethodCreditCardApiFromJSONTyped=In,a.PaymentMethodCreditCardApiNameEnum=jy,a.PaymentMethodCreditCardApiPayloadFromJSON=ia,a.PaymentMethodCreditCardApiPayloadFromJSONTyped=oa,a.PaymentMethodCreditCardApiPayloadToJSON=aa,a.PaymentMethodCreditCardApiPayloadToJSONTyped=sa,a.PaymentMethodCreditCardApiToJSON=ua,a.PaymentMethodCreditCardApiToJSONTyped=ca,a.PaymentMethodDepositAccountApiFromJSON=og,a.PaymentMethodDepositAccountApiFromJSONTyped=Dn,a.PaymentMethodDepositAccountApiNameEnum=rg,a.PaymentMethodDepositAccountApiPayloadFromJSON=da,a.PaymentMethodDepositAccountApiPayloadFromJSONTyped=fa,a.PaymentMethodDepositAccountApiPayloadToJSON=la,a.PaymentMethodDepositAccountApiPayloadToJSONTyped=ma,a.PaymentMethodDepositAccountApiToJSON=pa,a.PaymentMethodDepositAccountApiToJSONTyped=ha,a.PaymentMethodPayLaterApiFromJSON=dg,a.PaymentMethodPayLaterApiFromJSONTyped=Jn,a.PaymentMethodPayLaterApiNameEnum=ug,a.PaymentMethodPayLaterApiPayloadFromJSON=ya,a.PaymentMethodPayLaterApiPayloadFromJSONTyped=ga,a.PaymentMethodPayLaterApiPayloadStatusEnum=ag,a.PaymentMethodPayLaterApiPayloadToJSON=_a,a.PaymentMethodPayLaterApiPayloadToJSONTyped=Oa,a.PaymentMethodPayLaterApiToJSON=Aa,a.PaymentMethodPayLaterApiToJSONTyped=Sa,a.PaymentMethodRequestApiFromJSON=Un,a.PaymentMethodRequestApiFromJSONTyped=Os,a.PaymentMethodRequestApiToJSON=Jt,a.PaymentMethodRequestApiToJSONTyped=Hg,a.PaymentMethodRequestCouponApiFromJSON=Dg,a.PaymentMethodRequestCouponApiFromJSONTyped=zn,a.PaymentMethodRequestCouponApiNameEnum=Mg,a.PaymentMethodRequestCouponApiToJSON=ms,a.PaymentMethodRequestCouponApiToJSONTyped=ps,a.PaymentMethodRequestCouponPayloadApiFromJSON=cs,a.PaymentMethodRequestCouponPayloadApiFromJSONTyped=ds,a.PaymentMethodRequestCouponPayloadApiToJSON=fs,a.PaymentMethodRequestCouponPayloadApiToJSONTyped=ls,a.PaymentMethodRequestCreditCardApiFromJSON=Fg,a.PaymentMethodRequestCreditCardApiFromJSONTyped=Hn,a.PaymentMethodRequestCreditCardApiNameEnum=Jg,a.PaymentMethodRequestCreditCardApiToJSON=hs,a.PaymentMethodRequestCreditCardApiToJSONTyped=ys,a.PaymentMethodRequestDepositAccountApiFromJSON=zg,a.PaymentMethodRequestDepositAccountApiFromJSONTyped=Bn,a.PaymentMethodRequestDepositAccountApiNameEnum=$g,a.PaymentMethodRequestDepositAccountApiToJSON=gs,a.PaymentMethodRequestDepositAccountApiToJSONTyped=_s,a.PaymentMethodUpdatePayloadApiFromJSON=E_,a.PaymentMethodUpdatePayloadApiFromJSONTyped=Gu,a.PaymentMethodUpdatePayloadApiToJSON=qu,a.PaymentMethodUpdatePayloadApiToJSONTyped=Ku,a.PollerStatus=Et,a.PollerStatusFromJSON=cu,a.PollerStatusFromJSONTyped=du,a.PollerStatusToJSON=m_,a.PollerStatusToJSONTyped=p_,a.RequestPayloadFromJSON=L_,a.RequestPayloadFromJSONTyped=Yu,a.RequestPayloadRequestTypeEnum=F_,a.RequestPayloadToJSON=Vu,a.RequestPayloadToJSONTyped=Wu,a.RequiredError=Z,a.ResponseError=gn,a.SourceMarket=Tt,a.SourceMarketFromJSON=xe,a.SourceMarketFromJSONTyped=Po,a.SourceMarketToJSON=Sy,a.SourceMarketToJSONTyped=Ty,a.TagApiFromJSON=kt,a.TagApiFromJSONTyped=Ho,a.TagApiToJSON=Rt,a.TagApiToJSONTyped=Bo,a.TaxApiFromJSON=Nn,a.TaxApiFromJSONTyped=$o,a.TaxApiTaxFrequencyEnum=Py,a.TaxApiTaxModeEnum=by,a.TaxApiToJSON=Pn,a.TaxApiToJSONTyped=Lo,a.TextApiResponse=An,a.TravelTimesApiFromJSON=Vn,a.TravelTimesApiFromJSONTyped=qs,a.TravelTimesApiToJSON=Wn,a.TravelTimesApiToJSONTyped=Ks,a.TravelTimesApiTravelTimesFromJSON=Bs,a.TravelTimesApiTravelTimesFromJSONTyped=Us,a.TravelTimesApiTravelTimesToJSON=Zs,a.TravelTimesApiTravelTimesToJSONTyped=Gs,a.VoidApiResponse=Qi,a.canConsumeForm=Zh,a.exists=Uh,a.instanceOfAllowedPaymentMethodCouponApi=ty,a.instanceOfAllowedPaymentMethodCouponApiPayloadInner=jh,a.instanceOfAllowedPaymentMethodCreditCardApi=iy,a.instanceOfAllowedPaymentMethodDepositAccountApi=sy,a.instanceOfAllowedPaymentMethodPayLaterApi=ly,a.instanceOfAllowedPaymentMethodPayLaterApiPayload=dy,a.instanceOfAmenitiesApi=hy,a.instanceOfBedApi=yy,a.instanceOfBookingApi=wg,a.instanceOfBookingCreateApi=Bg,a.instanceOfBookingCreateApiGuestsListInner=Pg,a.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Ng,a.instanceOfBookingPoliciesApi=Zg,a.instanceOfBookingPoliciesCreateApi=qg,a.instanceOfBookingsApiResponse=Vg,a.instanceOfBreakfastOption=ky,a.instanceOfCancellationPolicyApi=Oy,a.instanceOfContactPersonApi=Yy,a.instanceOfContactPersonOrganizationApi=qy,a.instanceOfCountryIso2Code=Uy,a.instanceOfCouponPreviewAppliedApi=qh,a.instanceOfCouponPreviewRejectedApi=Wh,a.instanceOfCurrencyClient=My,a.instanceOfErrorApiResponse=Qg,a.instanceOfEventApi=_g,a.instanceOfEventMetadataApi=bg,a.instanceOfHotelApi=i_,a.instanceOfHotelApiImages=t_,a.instanceOfHotelImageApi=vy,a.instanceOfHotelOfferApi=a_,a.instanceOfHotelOfferRequestApiResponse=s_,a.instanceOfHotelOfferRequestCreateApi=c_,a.instanceOfHotelOffersApiResponse=y_,a.instanceOfHotelOffersDataApiResponse=f_,a.instanceOfHotelReviewRatingApi=e_,a.instanceOfHotelRoomOfferApi=Ly,a.instanceOfHotelRoomOfferApiHotelRoomsInner=wy,a.instanceOfHotelRoomOfferApiResponse=__,a.instanceOfHotelRoomOfferRequestApiResponse=A_,a.instanceOfHotelRoomOfferRequestCreateApi=T_,a.instanceOfHotelRoomOffersApiResponse=k_,a.instanceOfHotelRoomOffersCreateApi=P_,a.instanceOfHotelRoomOffersDataApiResponse=w_,a.instanceOfHotelRoomOffersDataCreateApi=N_,a.instanceOfHotelRoomingListApi=Sg,a.instanceOfHotelRoomingListApiHotelRoom=Og,a.instanceOfHotelRoomingListGuestApi=Ag,a.instanceOfHotelRoomingListGuestsCreateApi=C_,a.instanceOfHotelRoomingListGuestsUpdateApi=I_,a.instanceOfInsuranceApi=mg,a.instanceOfInvoiceApi=hg,a.instanceOfLocale=zy,a.instanceOfMetaPollingResponseApi=h_,a.instanceOfMetaResponseApi=Yg,a.instanceOfOrderAddon=gg,a.instanceOfOrderAddonSelection=Rg,a.instanceOfPaymentMethodCouponApi=Xy,a.instanceOfPaymentMethodCouponApiPayloadInner=Vy,a.instanceOfPaymentMethodCreditCardApi=eg,a.instanceOfPaymentMethodCreditCardApiPayload=xy,a.instanceOfPaymentMethodDepositAccountApi=ig,a.instanceOfPaymentMethodDepositAccountApiPayload=ng,a.instanceOfPaymentMethodPayLaterApi=cg,a.instanceOfPaymentMethodPayLaterApiPayload=sg,a.instanceOfPaymentMethodRequestCouponApi=Ig,a.instanceOfPaymentMethodRequestCouponPayloadApi=Cg,a.instanceOfPaymentMethodRequestCreditCardApi=Eg,a.instanceOfPaymentMethodRequestDepositAccountApi=Lg,a.instanceOfPaymentMethodUpdatePayloadApi=J_,a.instanceOfPollerStatus=l_,a.instanceOfRequestPayload=$_,a.instanceOfSourceMarket=Ay,a.instanceOfTagApi=Jy,a.instanceOfTaxApi=Cy,a.instanceOfTravelTimesApi=r_,a.instanceOfTravelTimesApiTravelTimes=n_,a.querystring=On,a.v1ApiClient=uc});