@revolugo/booking-api-client 7.24.0-alpha.40 → 7.24.0-alpha.41
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.es.js +2121 -2106
- package/dist/index.umd.js +6 -6
- package/package.json +1 -1
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,
|
|
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 z(f,l){if(!(this instanceof z))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(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},z.error=function(){var f=new z(null,{status:200,statusText:""});return f.ok=!1,f.status=0,f.type="error",f};var X=[301,302,303,307,308];z.redirect=function(f,l){if(X.indexOf(l)===-1)throw new RangeError("Invalid status code");return new z(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 L={statusText:w.statusText,headers:I(w.getAllResponseHeaders()||"")};k.url.indexOf("file://")===0&&(w.status<200||w.status>599)?L.status=200:L.status=w.status,L.url="responseURL"in w?w.responseURL:L.headers.get("X-Request-URL");var Q="response"in w?w.response:w.responseText;setTimeout(function(){S(new z(Q,L))},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(L){try{return L===""&&u.location.href?u.location.href:L}catch{return L}}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(L){Y.push(h(L)),w.setRequestHeader(L,_(l.headers[L]))}),k.headers.forEach(function(L,Q){Y.indexOf(Q)===-1&&w.setRequestHeader(Q,L)})}else k.headers.forEach(function(L,Q){w.setRequestHeader(Q,L)});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=z),s.Headers=y,s.Request=H,s.Response=z,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})),pc=oe(mc(),1),hc=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),yc=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),gc=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),_c=/[^\p{L}\d]+/giu,cr="$1\0$2",dr="";function fr(e){let t=e.trim();t=t.replace(hc,cr).replace(yc,cr),t=t.replace(_c,"\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 Oc(e){const t=fr(e);for(let n=0;n<t.length;n++){const r=t[n],i=gc.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 Ac(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=$t(t?.locale),u=t?.mergeAmbiguousCharacters?zt(o,s):pr(o,s);return n+r.map((c,d)=>d===0?o(c):u(c,d)).join(t?.delimiter??"")+i}function Sc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=$t(t?.locale),u=t?.mergeAmbiguousCharacters?zt(o,s):pr(o,s);return n+r.map(u).join(t?.delimiter??"")+i}function Tc(e,t){const[n,r,i]=tt(e,t),o=et(t?.locale),s=$t(t?.locale);return n+r.map(zt(o,s)).join(t?.delimiter??" ")+i}function mr(e,t){return lr(e,{delimiter:"-",...t})}function vc(e,t){return lr(e,{delimiter:"_",...t})}function et(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function $t(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function zt(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?Oc: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 wc=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,m=o.normalize().split("").reduce(function(p,h){var _=u[h];return _===void 0&&(_=n[h]),_===void 0&&(_=h),_===c&&(_=" "),p+_.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(m=m.replace(/[^A-Za-z0-9\s]/g,"")),d&&(m=m.trim()),m=m.replace(/\s+/g,c),s.lower&&(m=m.toLowerCase()),m}return i.extend=function(o){Object.assign(n,o)},i})})),kc=oe(wc(),1);function Rc(e){return(0,kc.default)(mr(e),{lower:!0,strict:!0})}var D={Camel:"camelCase",Capital:"capitalCase",Param:"paramCase",Pascal:"pascalCase",Slug:"slugCase",Snake:"snakeCase"},hr={[D.Camel]:Ac,[D.Capital]:Tc,[D.Param]:mr,[D.Pascal]:Sc,[D.Slug]:Rc,[D.Snake]:vc};function Nc(e,t){return Array.isArray(e)?e.map(n=>hr[t](n)):hr[t](e)}function Pc(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function bc(e,t){return e.some(n=>typeof n=="string"?n===t:n.test(t))}function Lt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>Lt(i,t,n)):Pc(e)&&!(e instanceof Date)?Object.keys(e).reduce((i,o)=>{const s=n.exclude&&bc(n.exclude,o)?o:Nc(o,t);return i[s]=r?Lt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function F(e,t,n={}){return Lt(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",m="week",p="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,p),k=l-T<0,w=f.clone().add(S+(k?-1:1),p);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:p,y:_,w:m,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 z||!(!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 z(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 z=(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,L=this.$M,Q=this.$D,Re="set"+(this.$u?"UTC":"");switch(w){case _:return k?J(1,0):J(31,11);case p:return k?J(1,L):J(0,L+1);case m:var Oe=this.$locale().weekStart||0,De=(Y<Oe?Y+7:Y)-Oe;return J(k?Q-De:Q+(6-De),L);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[p]=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===p||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(L){var Q=B(k);return I.w(Q.date(Q.date()+Math.round(L*l)),k)};if(w===p)return this.set(p,this.$M+l);if(w===_)return this.set(_,this.$y+l);if(w===d)return J(1);if(w===m)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,L=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,L,2);case"ddd":return Oe(T.weekdaysShort,S.$W,L,3);case"dddd":return L[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,L=this-K,Q=function(){return I.m(w,K)};switch(J){case _:k=Q()/12;break;case p:k=Q();break;case h:k=Q()/3;break;case m:k=(L-Y)/6048e5;break;case d:k=(L-Y)/864e5;break;case c:k=L/i;break;case u:k=L/r;break;case s:k=L/n;break;default:k=L}return T?k:I.a(k)},f.daysInMonth=function(){return this.endOf(p).$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=z.prototype;return B.prototype=X,[["$ms",o],["$s",s],["$m",u],["$H",c],["$W",d],["$M",p],["$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,z,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}))})),Cc=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(),m=(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(p){switch(p){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(),p==="w"?1:2,"0");case"W":case"WW":return d.s(u.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(u.$H===0?24:u.$H),p==="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 p}}));return o.bind(this)(m)}}}))})),Mc=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)},m=function(g){return function(v){this[g]=+v}},p=[/[+-]\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,m("seconds")],ss:[s,m("seconds")],m:[s,m("minutes")],mm:[s,m("minutes")],H:[s,m("hours")],h:[s,m("hours")],HH:[s,m("hours")],hh:[s,m("hours")],D:[s,m("day")],DD:[o,m("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,m("week")],ww:[o,m("week")],M:[s,m("month")],MM:[o,m("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+/,m("year")],YY:[o,function(g){this.year=d(g)}],YYYY:[/\d{4}/,m("year")],Z:p,ZZ:p};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,z){var X=z&&z.toUpperCase();return I||R[z]||n[z]||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={},z=0,X=0;z<E;z+=1){var C=N[z];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,z=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,L=J.day,Q=J.hours,Re=J.minutes,Oe=J.seconds,De=J.milliseconds,ye=J.zone,ne=J.week,de=new Date,Ae=L||(K||Y?1:de.getDate()),Ne=K||de.getFullYear(),Jt=0;K&&!Y||(Jt=Y>0?Y-1:de.getMonth());var Et,er=Q||0,tr=Re||0,nr=Oe||0,rr=De||0;return ye?new Date(Date.UTC(Ne,Jt,Ae,er,tr,nr,rr+60*ye.offset*1e3)):k?new Date(Date.UTC(Ne,Jt,Ae,er,tr,nr,rr)):(Et=new Date(Ne,Jt,Ae,er,tr,nr,rr),ne&&(Et=w(Et).week(ne).toDate()),Et)}catch{return new Date("")}})(b,H,$,R),this.init(),X&&X!==!0&&(this.$L=this.locale(X).$L),z&&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)}}}))})),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_isBetween=r()})(e,(function(){"use strict";return function(n,r,i){r.prototype.isBetween=function(o,s,u,c){var d=i(o),m=i(s),p=(c=c||"()")[0]==="(",h=c[1]===")";return(p?this.isAfter(d,u):!this.isBefore(d,u))&&(h?this.isBefore(m,u):!this.isAfter(m,u))||(p?this.isBefore(d,u):!this.isAfter(d,u))&&(h?this.isAfter(m,u):!this.isBefore(m,u))}}}))})),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_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)}}}))})),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_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)}}}))})),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_localeData=r()})(e,(function(){"use strict";return function(n,r,i){var o=r.prototype,s=function(p){return p&&(p.indexOf?p:p.s)},u=function(p,h,_,A,y){var g=p.name?p:p.$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(p,h){return p.formats[h]||(function(_){return _.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(A,y,g){return y||g.slice(1)}))})(p.formats[h.toUpperCase()])},m=function(){var p=this;return{months:function(h){return h?h.format("MMMM"):u(p,"months")},monthsShort:function(h){return h?h.format("MMM"):u(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):u(p,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):u(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):u(p,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(p.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return m.bind(this)()},i.localeData=function(){var p=c();return{firstDayOfWeek:function(){return p.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(p,h)},meridiem:p.meridiem,ordinal:p.ordinal}},i.months=function(){return u(c(),"months")},i.monthsShort=function(){return u(c(),"monthsShort","months",3)},i.weekdays=function(p){return u(c(),"weekdays",null,null,p)},i.weekdaysShort=function(p){return u(c(),"weekdaysShort","weekdays",3,p)},i.weekdaysMin=function(p){return u(c(),"weekdaysMin","weekdays",2,p)}}}))})),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_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,m=(function(p,h){return p.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,m)}}}))})),$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_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(m){return m})))[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))}}}))})),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_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,m,p,h){return o.fromToBase(d,m,p,h)}i.en.relativeTime=s,o.fromToBase=function(d,m,p,h,_){for(var A,y,g,v=p.$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(p,P.d,!0):p.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,m,P.l,g);break}}if(m)return y;var U=g?v.future:v.past;return typeof U=="function"?U(y):U.replace("%s",y)},o.to=function(d,m){return u(d,m,this,!0)},o.from=function(d,m){return u(d,m,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)}}}))})),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_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},m=o.prototype;m.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},m.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 p=m.startOf;m.startOf=function(h,_){if(!this.$x||!this.$x.$timezone)return p.call(this,h,_);var A=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.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,z=d(I,B);if(H===z)return[I,H];var X=d(I-=60*(z-H)*1e3,B);return z===X?[I,z]:[U-60*Math.min(z,X)*1e3,Math.max(z,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}}}))})),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_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 m=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 m.call(this)};var p=c.utcOffset;c.utcOffset=function(y,g){var v=this.$utils().u;if(v(y))return this.$u?0:v(this.$offset)?p.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)}}}))})),Bc=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}))})),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_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),Zc=oe(Cc(),1),Gc=oe(Mc(),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(zc(),1),xc=oe(Lc(),1),jc=oe(Hc(),1),V_=Bc(),W_=Uc();fe.default.extend(Zc.default),fe.default.extend(Gc.default),fe.default.extend(qc.default),fe.default.extend(Kc.default),fe.default.extend(Yc.default),fe.default.extend(Wc.default),fe.default.extend(Vc.default),fe.default.extend(Xc.default),fe.default.extend(Qc.default),fe.default.extend(xc.default),fe.default.extend(jc.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 Ht(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)?Ht(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};Ht(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&&Ht(e,r,n);return e}function ed(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 td(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 nd=new Uint8Array(16);function rd(){return crypto.getRandomValues(nd)}function id(e,t,n){return!t&&!e&&crypto.randomUUID?crypto.randomUUID():od(e,t,n)}function od(e,t,n){e=e||{};const r=e.random??e.rng?.()??rd();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 td(r)}var ad=1500,Pe={},sd=class{defaultOptions={callCount:1,interval:ad,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,...ed(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=id(),Pe[e.type]=e.uuid)}};function ud(){return new sd}function rt(e,t,n){const r=ud();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 Bt(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 Ut(e,t){return typeof t=="bigint"?t.toString():t}var cd=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 Zt(e){return new cd(e)}function dd(e){return e==null}function Gt(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function fd(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 ld(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 md(e){return JSON.stringify(e)}function pd(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 hd=Zt(()=>{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 yd=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 gd(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]},_d={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Od(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 Ad(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 Sd(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))),ld(n,t),n}function Td(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 vd(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 wd(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 kd(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 Rd=/[\uD800-\uDBFF]/;function qt(e){const t=e.length;if(!Rd.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 Kt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Nd(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 Pd(e,t){for(const n in t){const r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):Dr(e,n,r.value)}for(const n of Object.getOwnPropertySymbols(t))Dr(e,n,t[n])}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 Dr(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 bd(e,t){const n=Object.getPrototypeOf(e);return t in n?void 0:n}var Yt,we=!1,Cd={configurable:!0,get(){we=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Yt!==e._zod){Yt=void 0;return}Yt=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,Cd);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 Md(e,t,n,r){const i=bd(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 Id="~constantCatch";function Dd(e){const t=()=>e;return t[Id]=!0,t}var Jr,Vt={value:void 0,enumerable:!1},Er="captureStackTrace"in Error?Error:null;function Jd(e){const t=Er;if(t){const n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return Er=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=p,this.traits=new Set}o.prototype=i;const s=n,u=s&&new WeakSet;function c(h,_){if(!h._zod){Vt.value=new o(_);try{Object.defineProperty(h,"_zod",Vt)}finally{Vt.value=void 0}}if(h._zod.traits.has(e))return;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),Pd(R,s))}const A=p.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 m extends d{}Object.defineProperty(m,"name",{value:e});function p(h){const _=r?.Parent?Jd(m):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(p,"init",{value:c}),Object.defineProperty(p,Symbol.hasInstance,{value:h=>r?.Parent&&h instanceof r.Parent?!0:h?._zod?.traits?.has(e)}),Object.defineProperty(p,"name",{value:e}),p}var Me=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Fr=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}};(Jr=globalThis).__zod_globalConfig??(Jr.__zod_globalConfig={});var me=globalThis.__zod_globalConfig;function ke(e){return e&&Object.assign(me,e),me}function Ed(){const e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Ut,2)),e.message}function Fd(e){this._zod.message=e}var $d={get:Ed,set:Fd,enumerable:!0,configurable:!0},Wt={value:void 0,enumerable:!1},$r=new WeakSet([Object.prototype,Error.prototype]),zr=(e,t)=>{e.name="$ZodError",Wt.value=t,Object.defineProperty(e,"issues",Wt),Wt.value=void 0,Object.defineProperty(e,"message",$d);const n=Object.getPrototypeOf(e);$r.has(n)||($r.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})}}))},zd=O("$ZodError",zr),X_=O("$ZodError",zr,void 0,{Parent:Error});function Ld(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 Hd(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?Ld(n,i.path[0],()=>[]).push(t(i)):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Bd(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 m=u[d],p=d===u.length-1;if(m==="_errors"){p&&c._errors.push(t(s)),d++;continue}Object.prototype.hasOwnProperty.call(c,m)||Object.defineProperty(c,m,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});const h=c[m];p&&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},Qt=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},xt=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 jt=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}},Ud=Symbol.for("zod.compile.invalid"),Zd=Symbol.for("zod.compile.fallback"),Gd=((e,t,n)=>{const r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Ud)return!0;if(r.definite===!0&&n===void 0)return!1}return qd(e,t,n)});function qd(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[Zd]=!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 Kd=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},Yd=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},Vd=e=>{const t=Xt(e),n=(r,i,o,s)=>t(r,i,o,st(n,s));return n},Wd=e=>{const t=Qt(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},Xd=e=>{const t=Qt(e),n=async(r,i,o,s)=>await t(r,i,o,st(n,s));return n},Qd=e=>(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return xt(e)(t,n,i)},xd=e=>(t,n,r)=>xt(e)(t,n,r),jd=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return jt(e)(t,n,i)},ef=e=>async(t,n,r)=>jt(e)(t,n,r),tf=/^[cC][0-9a-z]{6,}$/,nf=/^[0-9a-z]+$/,rf=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,of=/^[0-9a-vA-V]{20}$/,af=/^[A-Za-z0-9]{27}$/,sf=/^[a-zA-Z0-9_-]{21}$/;function uf(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var cf=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,df=/^([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})$/,Hr=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)$/,ff=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,lf="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function mf(){return new RegExp(lf,"u")}var pf=/^(?:(?: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])$/,hf=/^(([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}|:))$/,yf=/^((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])$/,gf=/^(([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])$/,_f=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Of=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,Af=/^https?$/,Sf=/^\+[1-9]\d{6,14}$/,Br="(?:(?:\\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 Tf(e){return new RegExp(`^${e}$`)}var vf=Tf(Br);function en(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 wf(e){return new RegExp(`^${en(e)}$`)}function kf(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${en({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${en({precision:e.precision})}`:n;return new RegExp(`^${Br}T(?:${r})$`)}var Rf=/^[\s\S]{0,}$/,Nf=/^-?\d+(?:\.\d+)?$/,Pf=/^[^A-Z]*$/,bf=/^[^a-z]*$/,ae=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),tn=e=>{const t=e.value;return!dd(t)&&t.length!==void 0},ut={number:"number",bigint:"bigint",object:"date"},Ur=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})}}),Zr=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})}}),Cf=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):fd(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Mf=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})}}),If=O("$ZodCheckMaxLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?qt(i):o)<=t.maximum)return;const s=Kt(i);r.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Df=O("$ZodCheckMinLength",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?qt(i):o)>=t.minimum)return;const s=Kt(i);r.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),Jf=O("$ZodCheckLengthEquals",(e,t)=>{var n;ae.init(e,t),(n=e._zod.def).when??(n.when=tn),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?qt(i):o;if(s===t.length)return;const u=Kt(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=()=>{})}),Ef=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})}}),Ff=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Pf),ct.init(e,t)}),$f=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=bf),ct.init(e,t)}),zf=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})}}),Lf=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})}}),Hf=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})}}),Bf=O("$ZodCheckOverwrite",(e,t)=>{ae.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}}),Uf=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",Y_=`${sr}/images`,Ft=`${sr}/legal`,V_=`${Ft}/2026_05_06_CGV_indiv_Revolugo_EN_FR.docx.pdf`,W_=`${Ft}/EN_privacy_policy_2024_revolugo.pdf`,X_=`${Ft}/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=$t(t?.locale),u=t?.mergeAmbiguousCharacters?Lt(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=$t(t?.locale),u=t?.mergeAmbiguousCharacters?Lt(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=$t(t?.locale);return n+r.map(Lt(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 $t(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function Lt(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 zt(e,t,n){const r=n.deep??!1;return Array.isArray(e)?e.map(i=>zt(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?zt(e[o],t,{...n,deep:!0}):e[o],i},{}):e}function F(e,t,n={}){return zt(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(),Jt=0;K&&!Y||(Jt=Y>0?Y-1:de.getMonth());var Et,er=Q||0,tr=Re||0,nr=Oe||0,rr=De||0;return ye?new Date(Date.UTC(Ne,Jt,Ae,er,tr,nr,rr+60*ye.offset*1e3)):k?new Date(Date.UTC(Ne,Jt,Ae,er,tr,nr,rr)):(Et=new Date(Ne,Jt,Ae,er,tr,nr,rr),ne&&(Et=w(Et).week(ne).toDate()),Et)}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 Ht(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)?Ht(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};Ht(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&&Ht(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 Bt(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 Ut(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 Zt(e){return new fd(e)}function ld(e){return e==null}function Gt(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=Zt(()=>{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 qt(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 Kt(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 Yt,we=!1,Dd={configurable:!0,get(){we=!0}};function G(e,t,n){const r=Object.getPrototypeOf(e._zod);if(t in r&&Yt!==e._zod){Yt=void 0;return}Yt=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,Vt={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{Vt.value=new o(_);try{Object.defineProperty(h,"_zod",Vt)}finally{Vt.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,Ut,2)),e.message}function zd(e){this._zod.message=e}var Hd={get:Ld,set:zd,enumerable:!0,configurable:!0},Wt={value:void 0,enumerable:!1},Fr=new WeakSet([Object.prototype,Error.prototype]),$r=(e,t)=>{e.name="$ZodError",Wt.value=t,Object.defineProperty(e,"issues",Wt),Wt.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},Qt=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},xt=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 jt=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=Qt(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=Qt(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 xt(e)(t,n,i)},tf=e=>(t,n,r)=>xt(e)(t,n,r),nf=e=>async(t,n,r)=>{const i=r?{...r,direction:"backward"}:{direction:"backward"};return jt(e)(t,n,i)},rf=e=>async(t,n,r)=>jt(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 en(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(`^${en(e)}$`)}function Pf(e){const t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const n=`${en({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${en({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=[])}),tn=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=tn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>t.maximum?qt(i):o)<=t.maximum)return;const s=Kt(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=tn),e._zod.check=r=>{const i=r.value,o=i.length;if((typeof i=="string"&&o>=t.minimum&&o<t.minimum*2?qt(i):o)>=t.minimum)return;const s=Kt(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=tn),e._zod.check=r=>{const i=r.value,o=i.length,s=typeof i=="string"&&o>=t.length&&o<=t.length*2?qt(i):o;if(s===t.length)return;const u=Kt(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(`
|
|
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))}},Zf={major:4,minor:6,patch:2},x=O("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Zf;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 m=_e(u),p;for(const h of c){if(h._zod.def.when){if(kd(u)||!h._zod.def.when(u))continue}else if(m)continue;const _=u.issues.length,A=h._zod.check(u);if(A instanceof Promise&&d?.async===!1)throw new Me;if(p||A instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await A,u.issues.length!==_&&(Cr(u.issues,_,e),m||(m=_e(u,_)))});else{if(u.issues.length===_)continue;Cr(u.issues,_,e),m||(m=_e(u,_))}}return p?p.then(()=>u):u},s=(u,c,d)=>{if(_e(u))return u.aborted=!0,u;const m=o(c,i,d);if(m instanceof Promise){if(d.async===!1)throw new Me;return m.then(p=>e._zod.parse(p,d))}return e._zod.parse(m,d)};e._zod.run=(u,c)=>{if(c.skipChecks)return e._zod.parse(u,c);if(c.direction==="backward"){const m=e._zod.parse({value:u.value,issues:[]},{...c,skipChecks:!0});return m instanceof Promise?m.then(p=>s(p,u,c)):s(m,u,c)}const d=e._zod.parse(u,c);if(d instanceof Promise){if(c.async===!1)throw new Me;return d.then(m=>o(m,i,c))}return o(d,i,c)}}},{get"~standard"(){return Mr(this,"~standard",qr(this))},set"~standard"(e){ve(this,"~standard",e)}}),Gr=(e,t)=>e.issues.length?{issues:e.issues.map(n=>Ee(n,t,ke()))}:{value:e.value};async function Gf(e,t){const n={async:!0};return Gr(await e._zod.run({value:t,issues:[]},n),n)}function qr(e){return{validate:t=>{const n={async:!1};try{const r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return Gr(r,n)}catch{}return Gf(e,t)},vendor:"zod",version:1}}var nn=O("$ZodString",(e,t)=>{x.init(e,t),e._zod.pattern=t.pattern??Rf,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),nn.init(e,t)}),qf=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=df),V.init(e,t)}),Kf=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=Hr(n))}else t.pattern??(t.pattern=Hr());V.init(e,t)}),Yf=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ff),V.init(e,t)}),Q_=1,x_=2;function Vf(e,t){if(!t.normalize&&t.protocol?.source===Af.source&&!/^https?:\/\//i.test(e))return 1;try{return new URL(e)}catch{return 2}}var Wf=/[\t\n\r]/g;function Xf(e){return e.replace(Wf,"")}function Qf(e,t){return t.lastIndex=0,t.test(e.hostname)}function xf(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var jf=O("$ZodURL",(e,t)=>{V.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),i=Vf(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}t.hostname&&!Qf(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&&!xf(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:Xf(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),el=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=mf()),V.init(e,t)}),tl=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?sf:uf(t.length)),V.init(e,t)}),nl=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=tf),V.init(e,t)}),rl=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=nf),V.init(e,t)}),il=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=rf),V.init(e,t)}),ol=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=of),V.init(e,t)}),al=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=af),V.init(e,t)}),sl=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=kf(t)),V.init(e,t)}),ul=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=vf),V.init(e,t)}),cl=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=wf(t)),V.init(e,t)}),dl=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=cf),V.init(e,t)}),fl=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=pf),V.init(e,t)}),ll=/^[0-9a-fA-F:.]+$/;function Kr(e){if(!ll.test(e))return!1;try{return new URL(`http://[${e}]`),!0}catch{return!1}}var ml=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=hf),V.init(e,t),e._zod.check=n=>{Kr(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),pl=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=yf),V.init(e,t)});function hl(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:Kr(n)}var yl=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=gf),V.init(e,t),e._zod.check=n=>{hl(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function Yr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Vr=/^[0-9a-zA-Z+/]*={0,2}$/,gl=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Vr),V.init(e,t),e._zod.check=n=>{Yr(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),rn=/^[A-Za-z0-9_-]*$/;function _l(e){if(!rn.test(e))return!1;const t=e.replace(/[-_]/g,n=>n==="-"?"+":"/");return Yr(t.padEnd(Math.ceil(t.length/4)*4,"="))}var Ol=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=rn),V.init(e,t),e._zod.check=n=>{_l(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Al=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Sf),V.init(e,t)});function Sl(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 Tl=O("$ZodJWT",(e,t)=>{V.init(e,t),e._zod.check=n=>{Sl(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Wr=O("$ZodNumber",(e,t)=>{x.init(e,t),e._zod.pattern=Nf,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}}),vl=O("$ZodNumberFormat",(e,t)=>{Mf.init(e,t),Wr.init(e,t)}),wl=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}}),kl=O("$ZodUnknown",(e,t)=>{x.init(e,t),e._zod.parse=n=>n}),Rl=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 Xr(e,t,n){e.issues.length&&t.issues.push(...br(n,e.issues)),t.value[n]=e.value}var Nl=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],m=t.element._zod.run({value:d,issues:[]},i);if(m instanceof Promise)s.push(m.then(p=>Xr(p,r,c)));else if(Xr(m,r,c),u&&m.issues.length!==0&&_e(m))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 Pl=[];function Qr(e){const t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:Pl,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=gd(e.shape);return{...e,allKeys:i,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(o)}}function xr(e,t,n,r,i,o,s){const u=[],c=i.keySet,d=i.catchall._zod,m=d.def.type,p=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__"){m==="never"&&u.push(A);continue}if(m==="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,p,h))):dt(y,n,A,t,p,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 bl=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 m={...r};return Object.defineProperty(t,"shape",{value:m}),d.raw=m,m};d.raw=r,Object.defineProperty(t,"shape",{get:d})}const i=Zt(()=>Qr(t));G(e,"propValues",d=>{const m=d.def.shape,p={};for(const h in m){const _=m[h]._zod;if(_.values){Object.prototype.hasOwnProperty.call(p,h)||be(p,h,new Set);for(const A of _.values)p[h].add(A);_.optin!==void 0&&p[h].add(void 0)}}return p});const o=it,s=t.catchall;let u;const c=me.memoizer;c?.attach(e),e._zod.parse=(d,m)=>{u??(u=i.value);const p=d.value;if(!o(p))return d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d;d.value=c?c.alloc(e,d,{},m):{};const h=[],_=u.shape,A=m?.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:p[g],issues:[]},m);E instanceof Promise?h.push(E.then(P=>dt(P,d,g,p,R,N))):dt(E,d,g,p,R,N)}return s?xr(h,p,d,m,i.value,e,A===!0):h.length?Promise.all(h).then(()=>d):d}}),Cl=O("$ZodObjectJIT",(e,t)=>{bl.init(e,t);const n=e._zod.parse,r=Zt(()=>Qr(t)),i=me.memoizer,o=_=>{const A=r.value,y=A.symbolKeys,g=new Uf(["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))}},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 nn=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),nn.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})}}),rn=/^[A-Za-z0-9_-]*$/;function Sl(e){if(!rn.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=rn),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=Zt(()=>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=Zt(()=>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)=>`
|
|
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)}]`:
|
|
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(`
|
|
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,m=c&&hd.value,p=t.catchall;let h;e._zod.parse=(_,A)=>{h??(h=r.value);const y=_.value;return u(y)?c&&m&&A?.async===!1&&A.jitless!==!0?(s||(s=o(t.shape)),_=s(_,A),p?xr([],y,_,A,h,e,A?.abortEarly===!0):_):n(_,A):(_.issues.push({expected:"object",code:"invalid_type",input:y,inst:e}),_)}});function jr(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 Ml=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=>Gt(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=>jr(u,r,e,i)):jr(s,r,e,i)}}),Il=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])=>ei(n,u,c)):ei(n,o,s)}});function on(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=on(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=on(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 ei(e,t,n){const r=new Map;let i;const o=new Map,s=(d,m)=>{let p;if(d.code==="unrecognized_keys"&&!d.path?.length)i??(i=d),p=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),p=[h]}else return!1;for(const h of p)r.has(h)||r.set(h,{}),r.get(h)[m]=!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(m=>i.keys.includes(m)):[];d.length&&e.issues.push({...i,keys:d});for(const m of u)!d.includes(m)&&o.has(m)&&e.issues.push(o.get(m))}const c=on(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 Dl=O("$ZodEnum",(e,t)=>{x.init(e,t);const n=Bt(t.entries),r=new Set(n);e._zod.values=r,G(e,"pattern",i=>{const o=Bt(i.def.entries).filter(s=>yd.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}}),Jl=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 Fr(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 ti(e,t){return e.value=t.issues.length?void 0:t.value,e}var ni=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(`^(${Gt(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=>ti(n,o)):ti(n,i)}return t.innerType._zod.run(n,r)}}),El=O("$ZodExactOptional",(e,t)=>{ni.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)}),Fl=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(`^(${Gt(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)}),$l=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=>ri(o,t)):ri(i,t)}});function ri(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var zl=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))}),Ll=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=>ii(o,e)):ii(i,e)}});function ii(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 oi(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 Hl=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=>oi(n,o,t,r)):oi(n,i,t,r)}}),Bl=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 Ul=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(ai):ai(i)}});function ai(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Zl=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=>si(o,n,r,e));si(i,n,r,e)}});function si(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 Gl=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},an="~memo",ui=[];function ci(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function sn(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var di=new WeakMap,Ve=0,lt=1,We=2;function mt(e,t,n){const r=di.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 m=mt(d,t,n);m>i&&(i=m)}},s=(d,m)=>{let p=Ve;for(const h of Reflect.ownKeys(d)){const _=Object.getOwnPropertyDescriptor(d,h);if(m&&!_.enumerable)continue;const A=_.get?lt:_.value?._zod?mt(_.value,t,n):Ve;A>p&&(p=A)}return p},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"properties":u(s(c.shape,!1));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 m=Object.getOwnPropertyDescriptor(c,d);if(!m||m.get)continue;const p=m.value;if(!(!p||typeof p!="object")){if(p._zod)o(p);else if(Array.isArray(p))for(const h of p)o(h)}}}return t.delete(e),ql(e,i)}function ql(e,t){return t!==lt&&di.set(e,t===We),t}function Kl(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var pt,ht=[],Yl={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"&&Wl(o,i.value))throw new Gl;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 m=c.value;if(!ci(m))return s(c,d);let p=d[an];p||(p={buckets:new WeakMap,backEdges:void 0},d[an]=p);let h;i===d?h=o:(h=Kl(p,e),i=d,o=h);const _=h.get(m);if(_)return c.value=_.value,_.issues?_.issues.length&&c.issues.push(...sn(_.issues)):(c.memo=!0,p.backEdges??(p.backEdges=new WeakSet),p.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?sn(v.issues):ui),v)):(g&&(g.issues=y.issues.length?sn(y.issues):ui),y)};e._zod.parse=u,e._zod.run===s&&(e._zod.run=u)})}};function Vl(){return Yl}function Wl(e,t){const n=e[an]?.backEdges;return n!==void 0&&ci(t)&&n.has(t)}var Xl=()=>{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",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(Nd(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 Ql(){return{localeError:Xl()}}var fi,xl=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 jl(){return new xl}(fi=globalThis).__zod_globalRegistry??(fi.__zod_globalRegistry=jl());var Xe=globalThis.__zod_globalRegistry;function em(e,t){return new e({type:"string",...M(t)})}function tm(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...M(t)})}function nm(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...M(t)})}function rm(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...M(t)})}function im(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...M(t)})}function om(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...M(t)})}function am(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...M(t)})}function sm(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...M(t)})}function um(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...M(t)})}function cm(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...M(t)})}function dm(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...M(t)})}function fm(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...M(t)})}function lm(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...M(t)})}function mm(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...M(t)})}function pm(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...M(t)})}function hm(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...M(t)})}function ym(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...M(t)})}function gm(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...M(t)})}function _m(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...M(t)})}function Om(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...M(t)})}function Am(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...M(t)})}function Sm(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...M(t)})}function Tm(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...M(t)})}function vm(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...M(t)})}function wm(e,t){return new e({type:"string",format:"date",check:"string_format",...M(t)})}function km(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...M(t)})}function Rm(e,t){return new e({type:"string",format:"duration",check:"string_format",...M(t)})}function Nm(e,t){return new e({type:"number",checks:[],...M(t)})}function Pm(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...M(t)})}function bm(e,t){return new e({type:"symbol",...M(t)})}function Cm(e){return new e({type:"unknown"})}function Mm(e,t){return new e({type:"never",...M(t)})}function li(e,t){return new Ur({check:"less_than",...M(t),value:e,inclusive:!1})}function un(e,t){return new Ur({check:"less_than",...M(t),value:e,inclusive:!0})}function mi(e,t){return new Zr({check:"greater_than",...M(t),value:e,inclusive:!1})}function cn(e,t){return new Zr({check:"greater_than",...M(t),value:e,inclusive:!0})}function pi(e,t){return new Cf({check:"multiple_of",...M(t),value:e})}function hi(e,t){return new If({check:"max_length",...M(t),maximum:e})}function yt(e,t){return new Df({check:"min_length",...M(t),minimum:e})}function yi(e,t){return new Jf({check:"length_equals",...M(t),length:e})}function Im(e,t){return new Ef({check:"string_format",format:"regex",...M(t),pattern:e})}function Dm(e){return new Ff({check:"string_format",format:"lowercase",...M(e)})}function Jm(e){return new $f({check:"string_format",format:"uppercase",...M(e)})}function Em(e,t){return new zf({check:"string_format",format:"includes",...M(t),includes:e})}function Fm(e,t){return new Lf({check:"string_format",format:"starts_with",...M(t),prefix:e})}function $m(e,t){return new Hf({check:"string_format",format:"ends_with",...M(t),suffix:e})}function Fe(e){return new Bf({check:"overwrite",tx:e})}function zm(e){return Fe(t=>t.normalize(e))}function Lm(){return Fe(e=>e.trim())}function Hm(){return Fe(e=>e.toLowerCase())}function Bm(){return Fe(e=>e.toUpperCase())}function Um(){return Fe(e=>pd(e))}function Zm(e,t,n){return new e({type:"array",element:t,...M(n)})}function Gm(e,t,n){return new e({type:"custom",check:"custom",fn:t,...M(n)})}function qm(e,t){const n=Km(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 Km(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 gi(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 p=s.schema,h=t.processors[i.type];if(!h)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);h(e,t,p,d)}const m=e._zod.parent;m&&(s.ref||(s.ref=m),te(m,t,d),t.seen.get(m).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 _i(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Oi(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 p=e.external.registry.get(s[0])?.id,h=e.external.uri??(A=>A);if(p)return{ref:h(p)};const _=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=_,{defId:_,ref:`${h("__shared")}#/${u}/${_i(_)}`}}const c="#",d=`${c}/${u}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};const m=s[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:d+_i(m)}},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 m=u.schema;for(const p in m)delete m[p];m.$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&&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=>Gt(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 on(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=on(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=on(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=on(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=Bt(t.entries),r=new Set(n);e._zod.values=r,G(e,"pattern",i=>{const o=Bt(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(`^(${Gt(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(`^(${Gt(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"}},an="~memo",ci=[];function di(e){return e!==null&&typeof e=="object"}function sn(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[an];m||(m={buckets:new WeakMap,backEdges:void 0},d[an]=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(...sn(_.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?sn(v.issues):ci),v)):(g&&(g.issues=y.issues.length?sn(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[an]?.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 un(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 cn(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>
|
|
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 Ai(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;Ai(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 Si=new Set(["type","properties","required","additionalProperties"]),Ti=["oneOf","anyOf"];function vi(e){const t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function dn(e){const t=[];for(const o of e){if(typeof o!="object"||o.type!=="object")return null;for(const s in o)if(!Si.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 m=d.properties?.[s]??vi(d);m!=null&&(u.some(p=>JSON.stringify(p)===JSON.stringify(m))||u.push(m))}const c=u.length===1?u[0]:dn(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=vi(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 Ym(e){const t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(const i of Si)if(i in e)return;const n=t.filter(i=>Ti.some(o=>Array.isArray(i[o])));let r=null;if(!n.length)r=dn(t);else{const i=n[0],o=Ti.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=>dn([...s,c]));if(u.some(c=>!c))return;r={[o]:u}}r&&(delete e.allOf,Qe(e,r))}function wi(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,m={...d},p=c.ref;if(c.ref=null,p){r(p);const _=e.seen.get(p),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,m),u._zod.parent===p)for(const y in d)y==="$ref"||y==="allOf"||y in m||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!==p){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())Ai(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 m=d?.allOf;if(!Array.isArray(m))continue;const p=u.get(m);p?p.push(d):u.set(m,[d])}for(const c of e.intersections)for(const d of u.get(c)??[])Ym(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 Vm=(e,t={})=>n=>{const r=gi({...n,processors:t});return te(e,r),Oi(r,e),wi(r,e)},gt=(e,t,n={})=>r=>{const{libraryOptions:i,target:o}=r??{},s=gi({...i??{},target:o,io:t,processors:n});return te(e,s),Oi(s,e),wi(s,e)},$e=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},ze=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},ki=(e,t)=>{$e(e,"minimum",t),ze(e,"maximum",t)},Ri=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Ni=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},Pi=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},bi=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},Ci=(e,t)=>$e(e,"minimum",t.minimum),Mi=(e,t)=>ze(e,"maximum",t.maximum),Ii=e=>(t,n)=>{bi(t,n.format);const[r,i]=e[n.format];$e(t,"minimum",r),ze(t,"maximum",i)},Wm={greater_than:(e,t)=>$e(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>ze(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>Ri(e,t.value),number_format:Ii(Rr),bigint_format:Ii(_d),min_length:Ci,max_length:Mi,length_equals:(e,t)=>ki(e,t.length),min_size:Ci,max_size:Mi,size_equals:(e,t)=>ki(e,t.size),string_format:(e,t)=>{bi(e,t.format),t.pattern&&Ni(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)=>Pi(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)Wm[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&&ze(t,"maximum",i.maximum),i.exclusiveMaximum!==void 0&&ze(t,"exclusiveMaximum",i.exclusiveMaximum),i.multipleOf!==void 0&&Ri(t,i.multipleOf),i.format!==void 0&&(t.format??(t.format=i.format),i.format.includes("int")&&(t.isInt=!0)),i.mime&&Pi(t,i.mime);for(const o of i.patterns??[])Ni(t,o);return t}var Xm={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Qm=new Map([[Vr,_f],[rn,Of]]),xm=e=>Qm.get(e)??e,jm=(e,t,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:u,patterns:c,contentEncoding:d,laxFormat:m}=pe(e);if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),u&&(i.format=Xm[u]??u,i.format===""&&delete i.format,(u==="time"||m)&&delete i.format),d&&(i.contentEncoding=d),c&&c.size>0){const p=[...c].map(xm);p.length===1?i.pattern=p[0].source:p.length>1&&(i.allOf=[...p.map(h=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:h.source}))])}},ep=(e,t,n,r)=>{const i=n,{minimum:o,maximum:s,multipleOf:u,exclusiveMaximum:c,exclusiveMinimum:d,isInt:m}=pe(e);i.type=m?"integer":"number";const p=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(p?_?(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}))])}},tp=(e,t,n,r)=>{Ie(e,t,n,r,"Symbols cannot be represented in JSON Schema")},np=(e,t,n,r)=>{n.not={}},rp=(e,t,n,r)=>{},ip=(e,t,n,r)=>{const i=e._zod.def,o=Bt(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},op=(e,t,n,r)=>{Ie(e,t,n,r,"Custom types cannot be represented in JSON Schema")},ap=(e,t,n,r)=>{Ie(e,t,n,r,"Transforms cannot be represented in JSON Schema")},sp=(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 fn(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?fn(t.out):t.type==="catch"?fn(t.innerType):e._zod.optin}var up=(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 d in s)be(i.properties,d,te(s[d],t,{...r,path:[...r.path,"properties",d]}));const u=new Set(Object.keys(s)),c=new Set([...u].filter(d=>{const m=o.shape[d];return t.io==="input"?fn(m)===void 0:m._zod.optout===void 0}));c.size>0&&(i.required=Array.from(c)),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)},cp=(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},dp=(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)},fp=(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"}]},lp=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},ln=Symbol();function Di(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"),ln):JSON.parse(s)}var mp=(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=Di(i.defaultValue,e,t,n,r);s!==ln&&(n.default=s)},pp=(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=Di(i.defaultValue,e,t,n,r);s!==ln&&(n._prefault=s)},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;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},yp=(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},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,n.readOnly=!0},Ji=(e,t,n,r)=>{const i=e._zod.def;te(i.innerType,t,r);const o=t.seen.get(e);o.ref=i.innerType},Ei=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 _p=(e,t)=>{zd.init(e,t),e.name="ZodError";const n=Object.getPrototypeOf(e);Ei.has(n)||(Ei.add(n),_t(n,"format",r=>i=>Bd(r,i)),_t(n,"flatten",r=>i=>Hd(r,i)),_t(n,"addIssue",r=>i=>{r.issues.push(i),r.message=JSON.stringify(r.issues,Ut,2)}),_t(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Ut,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},ue=O("ZodError",_p,void 0,{Parent:Error}),Op=Xt(ue),Ap=Qt(ue),Sp=xt(ue),Tp=jt(ue),vp=Yd(ue),wp=Vd(ue),kp=Wd(ue),Rp=Xd(ue),Np=Qd(ue),Pp=xd(ue),bp=jd(ue),Cp=ef(ue);function Mp(){me.localeError||ke(Ql())}function mn(){me.memoizer||ke({memoizer:Vl()})}var j=O("ZodType",(e,t)=>(Mp(),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(Mh(e,t))},superRefine(e,t){return this.check(Ih(e,t))},overwrite(e){return this.check(Fe(e))},optional(){return Zi(this)},exactOptional(){return _h(this)},nullable(){return qi(this)},nullish(){return Zi(qi(this))},nonoptional(e){return wh(this,e)},array(){return dh(this)},or(e){return Hi([this,e])},and(e){return hh(this,e)},transform(e){return Yi(this,gh(e))},default(e){return Sh(this,e)},prefault(e){return vh(this,e)},catch(e){return Rh(this,e)},pipe(e){return Yi(this,e)},readonly(){return bh(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",{...qr(this),jsonSchema:{input:gt(this,"input"),output:gt(this,"output")}})},set"~standard"(e){ve(this,"~standard",e)},parse:function e(t,n){return Op(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Ap(this,t,n,{callee:e})},safeParse(e,t){return Sp(this,e,t)},async safeParseAsync(e,t){return Tp(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){ve(this,"spa",e)},validate(e,t){return Gd(this,e,t)},validateAsync(e,t){return Kd(this,e,t)},encode:function e(t,n){return vp(this,t,n,{callee:e})},decode:function e(t,n){return wp(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await kp(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Rp(this,t,n,{callee:e})},safeEncode(e,t){return Np(this,e,t)},safeDecode(e,t){return Pp(this,e,t)},async safeEncodeAsync(e,t){return bp(this,e,t)},async safeDecodeAsync(e,t){return Cp(this,e,t)},toJSONSchema(e){return Vm(this,{})(e)},get description(){return Xe.get(this)?.description},get _def(){return this._zod.def}}),Fi=O("_ZodString",(e,t)=>{nn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>jm(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(Im(...e))},includes(...e){return this.check(Em(...e))},startsWith(...e){return this.check(Fm(...e))},endsWith(...e){return this.check($m(...e))},min(...e){return this.check(yt(...e))},max(...e){return this.check(hi(...e))},length(...e){return this.check(yi(...e))},nonempty(...e){return this.check(yt(1,...e))},lowercase(e){return this.check(Dm(e))},uppercase(e){return this.check(Jm(e))},trim(){return this.check(Lm())},normalize(...e){return this.check(zm(...e))},toLowerCase(){return this.check(Hm())},toUpperCase(){return this.check(Bm())},slugify(){return this.check(Um())}})),Ip=O("ZodString",(e,t)=>{nn.init(e,t),Fi.init(e,t)},{email(e){return this.check(tm(zp,e))},url(e){return this.check(sm(Hp,e))},jwt(e){return this.check(Tm(th,e))},emoji(e){return this.check(um(Bp,e))},guid(e){return this.check(nm(Lp,e))},uuid(e){return this.check(rm(Ot,e))},uuidv4(e){return this.check(im(Ot,e))},uuidv6(e){return this.check(om(Ot,e))},uuidv7(e){return this.check(am(Ot,e))},nanoid(e){return this.check(cm(Up,e))},cuid(e){return this.check(dm(Zp,e))},cuid2(e){return this.check(fm(Gp,e))},ulid(e){return this.check(lm(qp,e))},base64(e){return this.check(Om(xp,e))},base64url(e){return this.check(Am(jp,e))},xid(e){return this.check(mm(Kp,e))},ksuid(e){return this.check(pm(Yp,e))},ipv4(e){return this.check(hm(Vp,e))},ipv6(e){return this.check(ym(Wp,e))},cidrv4(e){return this.check(gm(Xp,e))},cidrv6(e){return this.check(_m(Qp,e))},e164(e){return this.check(Sm(eh,e))},datetime(e){return this.check(vm(Jp,e))},date(e){return this.check(wm(Ep,e))},time(e){return this.check(km(Fp,e))},duration(e){return this.check(Rm($p,e))}});function Dp(e){return em(Ip,e)}var W=O("ZodStringFormat",(e,t)=>{V.init(e,t),Fi.init(e,t)}),Jp=O("ZodISODateTime",(e,t)=>{sl.init(e,t),W.init(e,t)}),Ep=O("ZodISODate",(e,t)=>{ul.init(e,t),W.init(e,t)}),Fp=O("ZodISOTime",(e,t)=>{cl.init(e,t),W.init(e,t)}),$p=O("ZodISODuration",(e,t)=>{dl.init(e,t),W.init(e,t)}),zp=O("ZodEmail",(e,t)=>{Yf.init(e,t),W.init(e,t)}),Lp=O("ZodGUID",(e,t)=>{qf.init(e,t),W.init(e,t)}),Ot=O("ZodUUID",(e,t)=>{Kf.init(e,t),W.init(e,t)}),Hp=O("ZodURL",(e,t)=>{jf.init(e,t),W.init(e,t)}),Bp=O("ZodEmoji",(e,t)=>{el.init(e,t),W.init(e,t)}),Up=O("ZodNanoID",(e,t)=>{tl.init(e,t),W.init(e,t)}),Zp=O("ZodCUID",(e,t)=>{nl.init(e,t),W.init(e,t)}),Gp=O("ZodCUID2",(e,t)=>{rl.init(e,t),W.init(e,t)}),qp=O("ZodULID",(e,t)=>{il.init(e,t),W.init(e,t)}),Kp=O("ZodXID",(e,t)=>{ol.init(e,t),W.init(e,t)}),Yp=O("ZodKSUID",(e,t)=>{al.init(e,t),W.init(e,t)}),Vp=O("ZodIPv4",(e,t)=>{fl.init(e,t),W.init(e,t)}),Wp=O("ZodIPv6",(e,t)=>{ml.init(e,t),W.init(e,t)}),Xp=O("ZodCIDRv4",(e,t)=>{pl.init(e,t),W.init(e,t)}),Qp=O("ZodCIDRv6",(e,t)=>{yl.init(e,t),W.init(e,t)}),xp=O("ZodBase64",(e,t)=>{gl.init(e,t),W.init(e,t)}),jp=O("ZodBase64URL",(e,t)=>{Ol.init(e,t),W.init(e,t)}),eh=O("ZodE164",(e,t)=>{Al.init(e,t),W.init(e,t)}),th=O("ZodJWT",(e,t)=>{Tl.init(e,t),W.init(e,t)}),$i=O("ZodNumber",(e,t)=>{Wr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ep(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(mi(e,t))},gte(e,t){return this.check(cn(e,t))},min(e,t){return this.check(cn(e,t))},lt(e,t){return this.check(li(e,t))},lte(e,t){return this.check(un(e,t))},max(e,t){return this.check(un(e,t))},int(e){return this.check(zi(e))},safe(e){return this.check(zi(e))},positive(e){return this.check(mi(0,e))},nonnegative(e){return this.check(cn(0,e))},negative(e){return this.check(li(0,e))},nonpositive(e){return this.check(un(0,e))},multipleOf(e,t){return this.check(pi(e,t))},step(e,t){return this.check(pi(e,t))},finite(){return this}}));function nh(e){return Nm($i,e)}var rh=O("ZodNumberFormat",(e,t)=>{vl.init(e,t),$i.init(e,t)});function zi(e){return Pm(rh,e)}var ih=O("ZodSymbol",(e,t)=>{wl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>tp(e,n,r,i)});function oh(e){return bm(ih,e)}var ah=O("ZodUnknown",(e,t)=>{kl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>rp(e,n,r,i)});function Li(){return Cm(ah)}var sh=O("ZodNever",(e,t)=>{Rl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>np(e,n,r,i)});function uh(e){return Mm(sh,e)}var ch=O("ZodArray",(e,t)=>{mn(),Nl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>sp(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(hi(e,t))},length(e,t){return this.check(yi(e,t))},unwrap(){return this.element}});function dh(e,t){return Zm(ch,e,t)}var fh=O("ZodObject",(e,t)=>{mn(),Cl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>up(e,n,r,i),Md(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Bi(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:Li()}))},loose(){return this.clone(se(this._zod.def,{catchall:Li()}))},strict(){return this.clone(se(this._zod.def,{catchall:uh()}))},strip(){return this.clone(se(this._zod.def,{catchall:void 0}))},extend(e){return Sd(this,e)},safeExtend(e){return Td(this,e)},merge(e){return vd(this,e)},pick(e){return Od(this,e)},omit(e){return Ad(this,e)},partial(...e){return Pr(Ui,this,e[0])},exactPartial(...e){return Pr(Gi,this,e[0],"exactPartial")},required(...e){return wd(Ki,this,e[0])}});function lh(e,t){const n={type:"object",shape:e??{},...M(t)};return new fh(n)}var mh=O("ZodUnion",(e,t)=>{Ml.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>cp(e,n,r,i),e.options=t.options});function Hi(e,t){return new mh({type:"union",options:e,...M(t)})}var ph=O("ZodIntersection",(e,t)=>{Il.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>dp(e,n,r,i)});function hh(e,t){return new ph({type:"intersection",left:e,right:t})}var pn=O("ZodEnum",(e,t)=>{Dl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(r,i,o)=>ip(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 pn({...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 pn({...t,checks:[],...M(i),entries:o})}});function Bi(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new pn({type:"enum",entries:n,...M(t)})}var yh=O("ZodTransform",(e,t)=>{mn(),Jl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>ap(e,n,r,i),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Fr(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 gh(e){return new yh({type:"transform",transform:e})}var Ui=O("ZodOptional",(e,t)=>{ni.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ji(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function Zi(e){return new Ui({type:"optional",innerType:e})}var Gi=O("ZodExactOptional",(e,t)=>{El.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>Ji(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function _h(e){return new Gi({type:"optional",innerType:e})}var Oh=O("ZodNullable",(e,t)=>{Fl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>fp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function qi(e){return new Oh({type:"nullable",innerType:e})}var Ah=O("ZodDefault",(e,t)=>{$l.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>mp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Sh(e,t){return new Ah({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var Th=O("ZodPrefault",(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 vh(e,t){return new Th({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():wr(t)}})}var Ki=O("ZodNonOptional",(e,t)=>{Ll.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>lp(e,n,r,i),e.unwrap=()=>e._zod.def.innerType});function wh(e,t){return new Ki({type:"nonoptional",innerType:e,...M(t)})}var kh=O("ZodCatch",(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,e.removeCatch=e.unwrap});function Rh(e,t){return new kh({type:"catch",innerType:e,catchValue:typeof t=="function"?t:Dd(t)})}var Nh=O("ZodPipe",(e,t)=>{Bl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>yp(e,n,r,i),e.in=t.in,e.out=t.out});function Yi(e,t){return new Nh({type:"pipe",in:e,out:t})}var Ph=O("ZodReadonly",(e,t)=>{Ul.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 bh(e){return new Ph({type:"readonly",innerType:e})}var Ch=O("ZodCustom",(e,t)=>{Zl.init(e,t),j.init(e,t),e._zod.processJSONSchema=(n,r,i)=>op(e,n,r,i)});function Mh(e,t={}){return Gm(Ch,e,t)}function Ih(e,t){return qm(e,t)}var Dh=Bi(["ASC","DESC"]),j_=lh({sortBy:Hi([Dp(),nh(),oh()]).optional(),sortOrder:Dh.optional()}),Jh=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 Eh(){return new Jh}var eO=Eh(),Vi="http://localhost".replace(/\/+$/,""),Fh=e=>typeof Blob<"u"&&e instanceof Blob,ce=class{configuration;middleware;constructor(e=new yn){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 hn(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||Fh(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}},hn=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}},$h={csv:",",ssv:" ",tsv:" ",pipes:"|"},yn=class{configuration;constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Vi}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||gn}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 zh(e,t){const n=e[t];return n!=null}function gn(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?gn(i,r):`${encodeURIComponent(r)}=${encodeURIComponent(String(i))}`}).filter(n=>n.length>0).join("&")}function Lh(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())}},Wi=class{raw;constructor(e){this.raw=e}async value(){}},Hh=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.blob()}},_n=class{raw;constructor(e){this.raw=e}async value(){return await this.raw.text()}};function Bh(e){return!(!("amount"in e)||e.amount===void 0||!("code"in e)||e.code===void 0||!("couponId"in e)||e.couponId===void 0)}function Uh(e){return Xi(e,!1)}function Xi(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id}}function Zh(e){return Qi(e,!1)}function Qi(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId}}var Gh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function qh(e){return!(!("code"in e)||e.code===void 0||!("error"in e)||e.error===void 0)}function Kh(e){return xi(e,!1)}function xi(e,t){return e==null?e:{code:e.code,error:e.error}}function Yh(e){return ji(e,!1)}function ji(e,t=!1){return e==null?e:{code:e.code,error:e.error}}var Vh={Exhausted:"exhausted",Expired:"expired",NotFound:"not_found"};function Wh(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 eo(e){return to(e,!1)}function to(e,t){return e==null?e:{amount:e.amount,code:e.code,couponId:e.coupon_id,error:e.error}}function no(e){return ro(e,!1)}function ro(e,t=!1){return e==null?e:{amount:e.amount,code:e.code,coupon_id:e.couponId,error:e.error}}var Xh={Coupon:"COUPON"};function Qh(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function xh(e){return On(e,!1)}function On(e,t){return e==null?e:{name:e.name,payload:e.payload.map(eo)}}function io(e){return oo(e,!1)}function oo(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(no)}}var jh={CreditCard:"CREDIT_CARD"};function ey(e){return!(!("name"in e)||e.name===void 0)}function ty(e){return An(e,!1)}function An(e,t){return e==null?e:{name:e.name}}function ao(e){return so(e,!1)}function so(e,t=!1){return e==null?e:{name:e.name}}var ny={DepositAccount:"DEPOSIT_ACCOUNT"};function ry(e){return!(!("name"in e)||e.name===void 0)}function iy(e){return Sn(e,!1)}function Sn(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={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function ay(e){return!(!("status"in e)||e.status===void 0)}function fo(e){return lo(e,!1)}function lo(e,t){return e==null?e:{status:e.status}}function mo(e){return po(e,!1)}function po(e,t=!1){return e==null?e:{status:e.status}}var sy={PayLater:"PAY_LATER"};function uy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function cy(e){return Tn(e,!1)}function Tn(e,t){return e==null?e:{name:e.name,payload:fo(e.payload)}}function ho(e){return yo(e,!1)}function yo(e,t=!1){return e==null?e:{name:e.name,payload:mo(e.payload)}}function go(e){return _o(e,!1)}function _o(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...On(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...An(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Sn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Tn(e,!0),name:"PAY_LATER"};default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}function Oo(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return io(e);case"CREDIT_CARD":return ao(e);case"DEPOSIT_ACCOUNT":return uo(e);case"PAY_LATER":return ho(e);default:throw new Error(`No variant of AllowedPaymentMethodApi exists with 'name=${e.name}'`)}}}function dy(e,t=!1){return Oo(e)}function fy(e){return!0}function vn(e){return Ao(e,!1)}function Ao(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 wn(e){return So(e,!1)}function So(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 ly(e){return!(!("count"in e)||e.count===void 0||!("name"in e)||e.name===void 0||!("occupancy"in e)||e.occupancy===void 0)}function my(e){return To(e,!1)}function To(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function py(e){return vo(e,!1)}function vo(e,t=!1){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function hy(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 wo(e,!1)}function wo(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function St(e){return ko(e,!1)}function ko(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 yy(e){for(const t in Tt)if(Object.prototype.hasOwnProperty.call(Tt,t)&&Tt[t]===e)return!0;return!1}function xe(e){return Ro(e,!1)}function Ro(e,t){return e}function gy(e){return e}function _y(e,t){return e}function Oy(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 Le(e){return No(e,!1)}function No(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 Po(e,!1)}function Po(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 Ay(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 bo(e){return Co(e,!1)}function Co(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(Le),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 Mo(e){return Io(e,!1)}function Io(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 Sy(e){for(const t in vt)if(Object.prototype.hasOwnProperty.call(vt,t)&&vt[t]===e)return!0;return!1}function Do(e){return Jo(e,!1)}function Jo(e,t){return e}function Ty(e){return e}function vy(e,t){return e}var wy={PerNight:"PER_NIGHT",PerStay:"PER_STAY"},ky={PerAdult:"PER_ADULT",PerBooking:"PER_BOOKING"};function Ry(e){return!(!("taxFrequency"in e)||e.taxFrequency===void 0||!("taxMode"in e)||e.taxMode===void 0)}function kn(e){return Eo(e,!1)}function Eo(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 Rn(e){return Fo(e,!1)}function Fo(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 Ny(e){for(const t in wt)if(Object.prototype.hasOwnProperty.call(wt,t)&&wt[t]===e)return!0;return!1}function he(e){return $o(e,!1)}function $o(e,t){return e}function Py(e){return e}function by(e,t){return e}function Cy(e){return!(!("name"in e)||e.name===void 0)}function Nn(e){return zo(e,!1)}function zo(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 Pn(e){return Lo(e,!1)}function Lo(e,t=!1){return e==null?e:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}var My={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},Iy={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},Dy={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function Jy(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 Ho(e,!1)}function Ho(e,t){return e==null?e:{breakfastCount:e.breakfast_count==null?void 0:e.breakfast_count,breakfastOption:Do(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(bo),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(Nn),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(kn),type:e.type==null?void 0:e.type}}function Be(e){return Bo(e,!1)}function Bo(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(Mo),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(Pn),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Rn),type:e.type}}var kt={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function Ey(e){for(const t in kt)if(Object.prototype.hasOwnProperty.call(kt,t)&&kt[t]===e)return!0;return!1}function Rt(e){return Uo(e,!1)}function Uo(e,t){return e}function Fy(e){return e}function $y(e,t){return e}var Nt={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 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 Zo(e,!1)}function Zo(e,t){return e}function Ly(e){return e}function Hy(e,t){return e}function By(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 Go(e){return qo(e,!1)}function qo(e,t){return e==null?e:{address:e.address,city:e.city,country:Pt(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 Ko(e){return Yo(e,!1)}function Yo(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 Uy={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function Zy(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 Vo(e,!1)}function Vo(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:Pt(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:Rt(e.lang),lastName:e.last_name,nationality:Pt(e.nationality),organization:e.organization==null?void 0:Go(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 Wo(e,!1)}function Wo(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:Ko(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}function Gy(e){return!(!("amount"in e)||e.amount===void 0||!("couponId"in e)||e.couponId===void 0)}function Xo(e){return Qo(e,!1)}function Qo(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function xo(e){return jo(e,!1)}function jo(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId}}var qy={Coupon:"COUPON"};function Ky(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Yy(e){return Mn(e,!1)}function Mn(e,t){return e==null?e:{name:e.name,payload:e.payload.map(Xo)}}function ea(e){return ta(e,!1)}function ta(e,t=!1){return e==null?e:{name:e.name,payload:e.payload.map(xo)}}function Vy(e){return!(!("amount"in e)||e.amount===void 0||!("token"in e)||e.token===void 0)}function na(e){return ra(e,!1)}function ra(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id==null?void 0:e.coupon_id,token:e.token}}function ia(e){return oa(e,!1)}function oa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var Wy={CreditCard:"CREDIT_CARD"};function Xy(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function Qy(e){return In(e,!1)}function In(e,t){return e==null?e:{name:e.name,payload:na(e.payload)}}function aa(e){return sa(e,!1)}function sa(e,t=!1){return e==null?e:{name:e.name,payload:ia(e.payload)}}function xy(e){return!(!("amount"in e)||e.amount===void 0)}function ua(e){return ca(e,!1)}function ca(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 da(e){return fa(e,!1)}function fa(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,token:e.token}}var jy={DepositAccount:"DEPOSIT_ACCOUNT"};function eg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function tg(e){return Dn(e,!1)}function Dn(e,t){return e==null?e:{name:e.name,payload:ua(e.payload)}}function la(e){return ma(e,!1)}function ma(e,t=!1){return e==null?e:{name:e.name,payload:da(e.payload)}}var ng={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function rg(e){return!(!("amount"in e)||e.amount===void 0||!("status"in e)||e.status===void 0)}function pa(e){return ha(e,!1)}function ha(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 ya(e){return ga(e,!1)}function ga(e,t=!1){return e==null?e:{amount:e.amount,coupon_id:e.couponId,status:e.status,token:e.token}}var ig={PayLater:"PAY_LATER"};function og(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function ag(e){return Jn(e,!1)}function Jn(e,t){return e==null?e:{name:e.name,payload:pa(e.payload)}}function _a(e){return Oa(e,!1)}function Oa(e,t=!1){return e==null?e:{name:e.name,payload:ya(e.payload)}}function Aa(e){return Sa(e,!1)}function Sa(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 ea(e);case"CREDIT_CARD":return aa(e);case"DEPOSIT_ACCOUNT":return la(e);case"PAY_LATER":return _a(e);default:throw new Error(`No variant of PaymentMethodApi exists with 'name=${e.name}'`)}}}function sg(e,t=!1){return En(e)}var ug={Active:"active",Archived:"archived",Claimed:"claimed",Incomplete:"incomplete",Open:"open",WaitingPayment:"waiting_payment"};function cg(e){return!(!("status"in e)||e.status===void 0)}function Ta(e){return va(e,!1)}function va(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 wa(e){return ka(e,!1)}function ka(e,t=!1){return e==null?e:{created_at:e.createdAt,reference:e.reference,status:e.status}}var dg={CreditNote:"credit_note",Invoice:"invoice"};function fg(e){return!(!("type"in e)||e.type===void 0||!("url"in e)||e.url===void 0)}function Ra(e){return Na(e,!1)}function Na(e,t){return e==null?e:{type:e.type,url:e.url}}function Pa(e){return ba(e,!1)}function ba(e,t=!1){return e==null?e:{type:e.type,url:e.url}}var lg={Insurance:"insurance"};function mg(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 Ca(e,!1)}function Ca(e,t){return e==null?e:{price:e.price,taxIncludedPrice:e.tax_included_price,type:e.type}}function $n(e){return Ma(e,!1)}function Ma(e,t=!1){return e==null?e:{price:e.price,tax_included_price:e.taxIncludedPrice,type:e.type}}function pg(e){return!0}function bt(e){return Ia(e,!1)}function Ia(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 Ct(e){return Da(e,!1)}function Da(e,t=!1){return e==null?e:{latitude:e.latitude,longitude:e.longitude,name:e.name,slug:e.slug}}function hg(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 Ja(e){return Ea(e,!1)}function Ea(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(Le),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 Fa(e){return $a(e,!1)}function $a(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 yg(e){return!(!("fullname"in e)||e.fullname===void 0||!("id"in e)||e.id===void 0)}function Mt(e){return za(e,!1)}function za(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function La(e){return Ha(e,!1)}function Ha(e,t=!1){return e==null?e:{fullname:e.fullname,id:e.id}}function gg(e){return!(!("hotelRoomId"in e)||e.hotelRoomId===void 0||!("hotelRoomingListGuests"in e)||e.hotelRoomingListGuests===void 0||!("id"in e)||e.id===void 0)}function zn(e){return Ba(e,!1)}function Ba(e,t){return e==null?e:{hotelRoom:e.hotel_room==null?void 0:Ja(e.hotel_room),hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map(Mt),id:e.id,limitDate:e.limit_date==null?void 0:new Date(e.limit_date)}}function Ua(e){return Za(e,!1)}function Za(e,t=!1){return e==null?e:{hotel_room:Fa(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(La),id:e.id,limit_date:e.limitDate==null?e.limitDate:e.limitDate.toISOString()}}var _g={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Og={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 Ag(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 Ga(e,!1)}function Ga(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:bt(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(zn),id:e.id==null?void 0:e.id,insurance:e.insurance==null?void 0:Ta(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Ra),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(Aa),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(kn),terms:e.terms,token:e.token==null?void 0:e.token}}function qa(e){return Ka(e,!1)}function Ka(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:Ct(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(Ua),id:e.id,insurance:wa(e.insurance),invoices:e.invoices==null?void 0:e.invoices.map(Pa),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(Rn),terms:e.terms,token:e.token}}var Sg={Insurance:"insurance"};function Tg(e){return!(!("type"in e)||e.type===void 0)}function Ya(e){return Va(e,!1)}function Va(e,t){return e==null?e:{type:e.type}}function Wa(e){return Xa(e,!1)}function Xa(e,t=!1){return e==null?e:{type:e.type}}function vg(e){return!(!("fullname"in e)||e.fullname===void 0)}function Qa(e){return xa(e,!1)}function xa(e,t){return e==null?e:{fullname:e.fullname}}function ja(e){return es(e,!1)}function es(e,t=!1){return e==null?e:{fullname:e.fullname}}function wg(e){return!(!("guests"in e)||e.guests===void 0||!("hotelRoomId"in e)||e.hotelRoomId===void 0)}function ts(e){return ns(e,!1)}function ns(e,t){return e==null?e:{guests:e.guests.map(Qa),hotelRoomId:e.hotel_room_id}}function rs(e){return is(e,!1)}function is(e,t=!1){return e==null?e:{guests:e.guests.map(ja),hotel_room_id:e.hotelRoomId}}function kg(e){return!0}function Ue(e){return os(e,!1)}function os(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 as(e,!1)}function as(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 Rg(e){return!(!("couponIds"in e)||e.couponIds===void 0)}function ss(e){return us(e,!1)}function us(e,t){return e==null?e:{couponIds:e.coupon_ids}}function cs(e){return ds(e,!1)}function ds(e,t=!1){return e==null?e:{coupon_ids:e.couponIds}}var Ng={Coupon:"COUPON"};function Pg(e){return!(!("name"in e)||e.name===void 0||!("payload"in e)||e.payload===void 0)}function bg(e){return Ln(e,!1)}function Ln(e,t){return e==null?e:{name:e.name,payload:ss(e.payload)}}function fs(e){return ls(e,!1)}function ls(e,t=!1){return e==null?e:{name:e.name,payload:cs(e.payload)}}var Cg={CreditCard:"CREDIT_CARD"};function Mg(e){return!(!("name"in e)||e.name===void 0)}function Ig(e){return Hn(e,!1)}function Hn(e,t){return e==null?e:{name:e.name}}function ms(e){return ps(e,!1)}function ps(e,t=!1){return e==null?e:{name:e.name}}var Dg={DepositAccount:"DEPOSIT_ACCOUNT"};function Jg(e){return!(!("name"in e)||e.name===void 0)}function Eg(e){return Bn(e,!1)}function Bn(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}}function Un(e){return gs(e,!1)}function gs(e,t){if(e==null)return e;switch(e.name){case"COUPON":return{...Ln(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 It(e){if(e!==void 0){if(e===null)return null;switch(e.name){case"COUPON":return fs(e);case"CREDIT_CARD":return ms(e);case"DEPOSIT_ACCOUNT":return hs(e);default:throw new Error(`No variant of PaymentMethodRequestApi exists with 'name=${e.name}'`)}}}function Fg(e,t=!1){return It(e)}function $g(e){return!(!("bookingPolicyId"in e)||e.bookingPolicyId===void 0||!("contactPerson"in e)||e.contactPerson===void 0)}function zg(e){return _s(e,!1)}function _s(e,t){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Ya),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(ts),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 Os(e){return As(e,!1)}function As(e,t=!1){return e==null?e:{addons:e.addons==null?void 0:e.addons.map(Wa),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(rs),metadata:e.metadata,payment_methods:e.paymentMethods==null?void 0:e.paymentMethods.map(It),tracking_id:e.trackingId}}function Lg(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 Ss(e,!1)}function Ss(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 Hg(e){return Ts(e,!1)}function Ts(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 Bg(e){return!(!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function Ug(e){return vs(e,!1)}function vs(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:Rt(e.lang)}}function ws(e){return ks(e,!1)}function ks(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 Zg(e){return!0}function Rs(e){return Ns(e,!1)}function Ns(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 Ps(e){return bs(e,!1)}function bs(e,t=!1){return e==null?e:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Gg(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Cs(e){return Ms(e,!1)}function Ms(e,t){return e==null?e:{data:e.data.map(le),meta:Rs(e.meta)}}function qg(e){return Is(e,!1)}function Is(e,t=!1){return e==null?e:{data:e.data.map(qa),meta:Ps(e.meta)}}var Kg={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 Yg(e){return!(!("statusCode"in e)||e.statusCode===void 0)}function Vg(e){return Ds(e,!1)}function Ds(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 Wg(e){return Js(e,!1)}function Js(e,t=!1){return e==null?e:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function Xg(e){return!(!("rating"in e)||e.rating===void 0)}function Gn(e){return Es(e,!1)}function Es(e,t){return e==null?e:{category:e.category==null?void 0:e.category,rating:e.rating}}function qn(e){return Fs(e,!1)}function Fs(e,t=!1){return e==null?e:{category:e.category,rating:e.rating}}function Qg(e){return!0}function Kn(e){return $s(e,!1)}function $s(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 zs(e,!1)}function zs(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 xg(e){return!0}function Ls(e){return Hs(e,!1)}function Hs(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 Bs(e){return Us(e,!1)}function Us(e,t=!1){return e==null?e:{driving:e.driving,transit:e.transit,walking:e.walking}}function jg(e){return!(!("name"in e)||e.name===void 0)}function Vn(e){return Zs(e,!1)}function Zs(e,t){return e==null?e:{description:e.description==null?void 0:e.description,name:e.name,travelTimes:e.travel_times==null?void 0:Ls(e.travel_times)}}function Wn(e){return Gs(e,!1)}function Gs(e,t=!1){return e==null?e:{description:e.description,name:e.name,travel_times:Bs(e.travelTimes)}}function e_(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 qs(e){return Ks(e,!1)}function Ks(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:vn(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(Le),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,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Vn),website:e.website==null?void 0:e.website}}function t_(e){return Ys(e,!1)}function Ys(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:wn(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,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website}}function n_(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 Vs(e){return Ws(e,!1)}function Ws(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:vn(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(Le),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,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),tags:e.tags==null?void 0:e.tags.map(Nn)}}function Xs(e){return Qs(e,!1)}function Qs(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:wn(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,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Be),tags:e.tags==null?void 0:e.tags.map(Pn)}}function r_(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 xs(e,!1)}function xs(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 i_(e){return js(e,!1)}function js(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 o_(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 a_(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,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 tu(e){return nu(e,!1)}function nu(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 s_(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 ru(e){return iu(e,!1)}function iu(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(Vs),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 ou(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,currency:e.currency,hotel_offers:e.hotelOffers.map(Xs),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}var Dt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function u_(e){for(const t in Dt)if(Object.prototype.hasOwnProperty.call(Dt,t)&&Dt[t]===e)return!0;return!1}function su(e){return uu(e,!1)}function uu(e,t){return e}function c_(e){return e}function d_(e,t){return e}function f_(e){return!(!("status"in e)||e.status===void 0)}function Qn(e){return cu(e,!1)}function cu(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:su(e.status)}}function xn(e){return du(e,!1)}function du(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 l_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function fu(e){return lu(e,!1)}function lu(e,t){return e==null?e:{data:ru(e.data),event:e.event==null?void 0:bt(e.event),meta:Qn(e.meta)}}function m_(e){return mu(e,!1)}function mu(e,t=!1){return e==null?e:{data:ou(e.data),event:Ct(e.event),meta:xn(e.meta)}}function p_(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 pu(e){return hu(e,!1)}function hu(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 h_(e){return yu(e,!1)}function yu(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 y_(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 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,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 g_(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,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 __(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 O_(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}}function Au(e){return Su(e,!1)}function Su(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 A_(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 Tu(e){return vu(e,!1)}function vu(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 wu(e){return ku(e,!1)}function ku(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 S_(e){return!(!("data"in e)||e.data===void 0||!("meta"in e)||e.meta===void 0)}function Ru(e){return Nu(e,!1)}function Nu(e,t){return e==null?e:{data:Tu(e.data),event:e.event==null?void 0:bt(e.event),meta:Qn(e.meta)}}function T_(e){return Pu(e,!1)}function Pu(e,t=!1){return e==null?e:{data:wu(e.data),event:Ct(e.event),meta:xn(e.meta)}}function v_(e){return!(!("count"in e)||e.count===void 0||!("hotelRoomOfferId"in e)||e.hotelRoomOfferId===void 0)}function bu(e){return Cu(e,!1)}function Cu(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 Mu(e){return Iu(e,!1)}function Iu(e,t=!1){return e==null?e:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function w_(e){return!(!("currency"in e)||e.currency===void 0||!("hotelRoomOffers"in e)||e.hotelRoomOffers===void 0)}function k_(e){return Du(e,!1)}function Du(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(bu),lang:e.lang==null?void 0:Rt(e.lang)}}function Ju(e){return Eu(e,!1)}function Eu(e,t=!1){return e==null?e:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(Mu),lang:e.lang}}function R_(e){return!(!("fullname"in e)||e.fullname===void 0||!("hotelRoomingListId"in e)||e.hotelRoomingListId===void 0)}function N_(e){return Fu(e,!1)}function Fu(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function $u(e){return zu(e,!1)}function zu(e,t=!1){return e==null?e:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function P_(e){return!(!("fullname"in e)||e.fullname===void 0)}function b_(e){return Lu(e,!1)}function Lu(e,t){return e==null?e:{fullname:e.fullname}}function Hu(e){return Bu(e,!1)}function Bu(e,t=!1){return e==null?e:{fullname:e.fullname}}function C_(e){return!(!("paymentMethods"in e)||e.paymentMethods===void 0)}function M_(e){return Uu(e,!1)}function Uu(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(Un)}}function Zu(e){return Gu(e,!1)}function Gu(e,t=!1){return e==null?e:{payment_methods:e.paymentMethods.map(It)}}var I_={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 D_(e){return!(!("message"in e)||e.message===void 0||!("requestType"in e)||e.requestType===void 0)}function J_(e){return qu(e,!1)}function qu(e,t){return e==null?e:{message:e.message,requestType:e.request_type}}function Ku(e){return Yu(e,!1)}function Yu(e,t=!1){return e==null?e:{message:e.message,request_type:e.requestType}}var Vu=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(go))}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(ws(e.bookingPoliciesCreateApi),D.Snake)},t);return new q(i,o=>Zn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},Wu=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=>Cs(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 Wi(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(Os(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(Ku(e.requestPayload),D.Snake)},t);return new _n(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(Zu(e.paymentMethodUpdatePayloadApi),D.Snake)},t);return new q(i,o=>le(o))}async updatePaymentMethods(e,t){return await(await this.updatePaymentMethodsRaw(e,t)).value()}},E_={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},F_={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(Le))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},Qu=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(tu(e.hotelOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>Xn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},xu=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=>fu(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)}},$_={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},z_={Asc:"asc",Desc:"desc"},ju=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 _n(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(Hu(e.hotelRoomingListGuestsUpdateApi),D.Snake)},t);return new q(i,o=>Mt(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($u(e.hotelRoomingListGuestsCreateApi),D.Snake)},t);return new q(i,o=>Mt(o))}async create(e,t){return await(await this.createRaw(e,t)).value()}},ec=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(zn))}async list(e,t){return await(await this.listRaw(e,t)).value()}},tc=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()}},nc=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(Au(e.hotelRoomOfferRequestCreateApi),D.Snake)},t);return new q(i,o=>jn(o))}async create(e={},t){return await(await this.createRaw(e,t)).value()}},rc=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=>Ru(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(Ju(e.hotelRoomOffersCreateApi),D.Snake)},t);return new q(i,o=>pu(o))}async create(e={},t){return await(await this.createRaw(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 getV1HotelsId.");const n={};e.event!==void 0&&(n.event=e.event),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=>qs(o))}async retrieve(e,t){return await(await this.retrieveRaw(e,t)).value()}},oc=class extends hn{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}},L_=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 oc({body:n,response:t,status:t.status})}},ac=e=>({bookingPolicies:new Vu(e),bookings:new Wu(e),hotelImages:new Xu(e),hotelOfferRequests:new Qu(e),hotelOffers:new xu(e),hotelRoomingListGuests:new ju(e),hotelRoomingLists:new ec(e),hotelRoomOfferImages:new tc(e),hotelRoomOfferRequests:new nc(e),hotelRoomOffers:new rc(e),hotels:new ic(e)});function H_(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 sc(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(H_(e))))}var B_=class{config;constructor(e){this.config=e}async pre(e){return e.init.mode="cors",sc(this.config.apiEnvironment)&&(e.init.credentials="include"),e}},U_=class{config;constructor(e){this.config=e}async pre(e){return sc(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}},Z_=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??lc[n];!this.config.apiBaseUrl&&n===Je.Local&&(r="http://127.0.0.1:3001");const i=new yn({basePath:r,fetchApi:pc.default,headers:t,middleware:[new B_(this.config),new U_(this.config),new L_]});this.apiVersionsToClient={v1:ac(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=go,a.AllowedPaymentMethodApiFromJSONTyped=_o,a.AllowedPaymentMethodApiToJSON=Oo,a.AllowedPaymentMethodApiToJSONTyped=dy,a.AllowedPaymentMethodCouponApiFromJSON=xh,a.AllowedPaymentMethodCouponApiFromJSONTyped=On,a.AllowedPaymentMethodCouponApiNameEnum=Xh,a.AllowedPaymentMethodCouponApiPayloadInnerErrorEnum=Vh,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSON=eo,a.AllowedPaymentMethodCouponApiPayloadInnerFromJSONTyped=to,a.AllowedPaymentMethodCouponApiPayloadInnerToJSON=no,a.AllowedPaymentMethodCouponApiPayloadInnerToJSONTyped=ro,a.AllowedPaymentMethodCouponApiToJSON=io,a.AllowedPaymentMethodCouponApiToJSONTyped=oo,a.AllowedPaymentMethodCreditCardApiFromJSON=ty,a.AllowedPaymentMethodCreditCardApiFromJSONTyped=An,a.AllowedPaymentMethodCreditCardApiNameEnum=jh,a.AllowedPaymentMethodCreditCardApiToJSON=ao,a.AllowedPaymentMethodCreditCardApiToJSONTyped=so,a.AllowedPaymentMethodDepositAccountApiFromJSON=iy,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Sn,a.AllowedPaymentMethodDepositAccountApiNameEnum=ny,a.AllowedPaymentMethodDepositAccountApiToJSON=uo,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=co,a.AllowedPaymentMethodPayLaterApiFromJSON=cy,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=Tn,a.AllowedPaymentMethodPayLaterApiNameEnum=sy,a.AllowedPaymentMethodPayLaterApiPayloadFromJSON=fo,a.AllowedPaymentMethodPayLaterApiPayloadFromJSONTyped=lo,a.AllowedPaymentMethodPayLaterApiPayloadStatusEnum=oy,a.AllowedPaymentMethodPayLaterApiPayloadToJSON=mo,a.AllowedPaymentMethodPayLaterApiPayloadToJSONTyped=po,a.AllowedPaymentMethodPayLaterApiToJSON=ho,a.AllowedPaymentMethodPayLaterApiToJSONTyped=yo,a.AmenitiesApiFromJSON=vn,a.AmenitiesApiFromJSONTyped=Ao,a.AmenitiesApiToJSON=wn,a.AmenitiesApiToJSONTyped=So,a.ApiClient=Z_,a.ApiError=oc,a.BASE_PATH=Vi,a.BaseAPI=ce,a.BedApiFromJSON=my,a.BedApiFromJSONTyped=To,a.BedApiToJSON=py,a.BedApiToJSONTyped=vo,a.BlobApiResponse=Hh,a.BookingApiFromJSON=le,a.BookingApiFromJSONTyped=Ga,a.BookingApiPayLaterEnum=_g,a.BookingApiStatusEnum=Og,a.BookingApiToJSON=qa,a.BookingApiToJSONTyped=Ka,a.BookingCreateApiFromJSON=zg,a.BookingCreateApiFromJSONTyped=_s,a.BookingCreateApiGuestsListInnerFromJSON=ts,a.BookingCreateApiGuestsListInnerFromJSONTyped=ns,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=Qa,a.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=xa,a.BookingCreateApiGuestsListInnerGuestsInnerToJSON=ja,a.BookingCreateApiGuestsListInnerGuestsInnerToJSONTyped=es,a.BookingCreateApiGuestsListInnerToJSON=rs,a.BookingCreateApiGuestsListInnerToJSONTyped=is,a.BookingCreateApiToJSON=Os,a.BookingCreateApiToJSONTyped=As,a.BookingPolicies=Vu,a.BookingPoliciesApiFromJSON=Zn,a.BookingPoliciesApiFromJSONTyped=Ss,a.BookingPoliciesApiToJSON=Hg,a.BookingPoliciesApiToJSONTyped=Ts,a.BookingPoliciesCreateApiFromJSON=Ug,a.BookingPoliciesCreateApiFromJSONTyped=vs,a.BookingPoliciesCreateApiToJSON=ws,a.BookingPoliciesCreateApiToJSONTyped=ks,a.Bookings=Wu,a.BookingsApiResponseFromJSON=Cs,a.BookingsApiResponseFromJSONTyped=Ms,a.BookingsApiResponseToJSON=qg,a.BookingsApiResponseToJSONTyped=Is,a.BookingsSortByEnum=E_,a.BookingsSortByOrderEnum=F_,a.BreakfastOption=vt,a.BreakfastOptionFromJSON=Do,a.BreakfastOptionFromJSONTyped=Jo,a.BreakfastOptionToJSON=Ty,a.BreakfastOptionToJSONTyped=vy,a.COLLECTION_FORMATS=$h,a.CancellationPolicyApiFromJSON=At,a.CancellationPolicyApiFromJSONTyped=wo,a.CancellationPolicyApiToJSON=St,a.CancellationPolicyApiToJSONTyped=ko,a.Configuration=yn,a.ContactPersonApiFromJSON=bn,a.ContactPersonApiFromJSONTyped=Vo,a.ContactPersonApiSalutationEnum=Uy,a.ContactPersonApiToJSON=Cn,a.ContactPersonApiToJSONTyped=Wo,a.ContactPersonOrganizationApiFromJSON=Go,a.ContactPersonOrganizationApiFromJSONTyped=qo,a.ContactPersonOrganizationApiToJSON=Ko,a.ContactPersonOrganizationApiToJSONTyped=Yo,a.CountryIso2Code=Nt,a.CountryIso2CodeFromJSON=Pt,a.CountryIso2CodeFromJSONTyped=Zo,a.CountryIso2CodeToJSON=Ly,a.CountryIso2CodeToJSONTyped=Hy,a.CouponPreviewAppliedApiFromJSON=Uh,a.CouponPreviewAppliedApiFromJSONTyped=Xi,a.CouponPreviewAppliedApiToJSON=Zh,a.CouponPreviewAppliedApiToJSONTyped=Qi,a.CouponPreviewRejectedApiErrorEnum=Gh,a.CouponPreviewRejectedApiFromJSON=Kh,a.CouponPreviewRejectedApiFromJSONTyped=xi,a.CouponPreviewRejectedApiToJSON=Yh,a.CouponPreviewRejectedApiToJSONTyped=ji,a.CurrencyClient=wt,a.CurrencyClientFromJSON=he,a.CurrencyClientFromJSONTyped=$o,a.CurrencyClientToJSON=Py,a.CurrencyClientToJSONTyped=by,a.ErrorApiResponseFromJSON=Vg,a.ErrorApiResponseFromJSONTyped=Ds,a.ErrorApiResponseToJSON=Wg,a.ErrorApiResponseToJSONTyped=Js,a.ErrorApiResponseTypeEnum=Kg,a.EventApiFromJSON=bt,a.EventApiFromJSONTyped=Ia,a.EventApiToJSON=Ct,a.EventApiToJSONTyped=Da,a.EventMetadataApiFromJSON=Ue,a.EventMetadataApiFromJSONTyped=os,a.EventMetadataApiToJSON=Ze,a.EventMetadataApiToJSONTyped=as,a.HotelApiFromJSON=qs,a.HotelApiFromJSONTyped=Ks,a.HotelApiImagesFromJSON=Kn,a.HotelApiImagesFromJSONTyped=$s,a.HotelApiImagesToJSON=Yn,a.HotelApiImagesToJSONTyped=zs,a.HotelApiToJSON=t_,a.HotelApiToJSONTyped=Ys,a.HotelImageApiFromJSON=Le,a.HotelImageApiFromJSONTyped=No,a.HotelImageApiToJSON=je,a.HotelImageApiToJSONTyped=Po,a.HotelImages=Xu,a.HotelOfferApiFromJSON=Vs,a.HotelOfferApiFromJSONTyped=Ws,a.HotelOfferApiToJSON=Xs,a.HotelOfferApiToJSONTyped=Qs,a.HotelOfferRequestApiResponseFromJSON=Xn,a.HotelOfferRequestApiResponseFromJSONTyped=xs,a.HotelOfferRequestApiResponseToJSON=i_,a.HotelOfferRequestApiResponseToJSONTyped=js,a.HotelOfferRequestCreateApiFromJSON=a_,a.HotelOfferRequestCreateApiFromJSONTyped=eu,a.HotelOfferRequestCreateApiToJSON=tu,a.HotelOfferRequestCreateApiToJSONTyped=nu,a.HotelOfferRequests=Qu,a.HotelOffers=xu,a.HotelOffersApiResponseFromJSON=fu,a.HotelOffersApiResponseFromJSONTyped=lu,a.HotelOffersApiResponseToJSON=m_,a.HotelOffersApiResponseToJSONTyped=mu,a.HotelOffersDataApiResponseFromJSON=ru,a.HotelOffersDataApiResponseFromJSONTyped=iu,a.HotelOffersDataApiResponseToJSON=ou,a.HotelOffersDataApiResponseToJSONTyped=au,a.HotelOffersSortByEnum=$_,a.HotelOffersSortByOrderEnum=z_,a.HotelReviewRatingApiFromJSON=Gn,a.HotelReviewRatingApiFromJSONTyped=Es,a.HotelReviewRatingApiToJSON=qn,a.HotelReviewRatingApiToJSONTyped=Fs,a.HotelRoomOfferApiFromJSON=He,a.HotelRoomOfferApiFromJSONTyped=Ho,a.HotelRoomOfferApiHotelRoomsInnerFromJSON=bo,a.HotelRoomOfferApiHotelRoomsInnerFromJSONTyped=Co,a.HotelRoomOfferApiHotelRoomsInnerToJSON=Mo,a.HotelRoomOfferApiHotelRoomsInnerToJSONTyped=Io,a.HotelRoomOfferApiPackageTypeEnum=My,a.HotelRoomOfferApiResponseFromJSON=pu,a.HotelRoomOfferApiResponseFromJSONTyped=hu,a.HotelRoomOfferApiResponseToJSON=h_,a.HotelRoomOfferApiResponseToJSONTyped=yu,a.HotelRoomOfferApiStayTaxesInfoEnum=Iy,a.HotelRoomOfferApiToJSON=Be,a.HotelRoomOfferApiToJSONTyped=Bo,a.HotelRoomOfferApiTypeEnum=Dy,a.HotelRoomOfferImages=tc,a.HotelRoomOfferRequestApiResponseFromJSON=jn,a.HotelRoomOfferRequestApiResponseFromJSONTyped=gu,a.HotelRoomOfferRequestApiResponseToJSON=g_,a.HotelRoomOfferRequestApiResponseToJSONTyped=_u,a.HotelRoomOfferRequestCreateApiFromJSON=O_,a.HotelRoomOfferRequestCreateApiFromJSONTyped=Ou,a.HotelRoomOfferRequestCreateApiToJSON=Au,a.HotelRoomOfferRequestCreateApiToJSONTyped=Su,a.HotelRoomOfferRequests=nc,a.HotelRoomOffers=rc,a.HotelRoomOffersApiResponseFromJSON=Ru,a.HotelRoomOffersApiResponseFromJSONTyped=Nu,a.HotelRoomOffersApiResponseToJSON=T_,a.HotelRoomOffersApiResponseToJSONTyped=Pu,a.HotelRoomOffersCreateApiFromJSON=k_,a.HotelRoomOffersCreateApiFromJSONTyped=Du,a.HotelRoomOffersCreateApiToJSON=Ju,a.HotelRoomOffersCreateApiToJSONTyped=Eu,a.HotelRoomOffersDataApiResponseFromJSON=Tu,a.HotelRoomOffersDataApiResponseFromJSONTyped=vu,a.HotelRoomOffersDataApiResponseToJSON=wu,a.HotelRoomOffersDataApiResponseToJSONTyped=ku,a.HotelRoomOffersDataCreateApiFromJSON=bu,a.HotelRoomOffersDataCreateApiFromJSONTyped=Cu,a.HotelRoomOffersDataCreateApiToJSON=Mu,a.HotelRoomOffersDataCreateApiToJSONTyped=Iu,a.HotelRoomingListApiFromJSON=zn,a.HotelRoomingListApiFromJSONTyped=Ba,a.HotelRoomingListApiHotelRoomFromJSON=Ja,a.HotelRoomingListApiHotelRoomFromJSONTyped=Ea,a.HotelRoomingListApiHotelRoomToJSON=Fa,a.HotelRoomingListApiHotelRoomToJSONTyped=$a,a.HotelRoomingListApiToJSON=Ua,a.HotelRoomingListApiToJSONTyped=Za,a.HotelRoomingListGuestApiFromJSON=Mt,a.HotelRoomingListGuestApiFromJSONTyped=za,a.HotelRoomingListGuestApiToJSON=La,a.HotelRoomingListGuestApiToJSONTyped=Ha,a.HotelRoomingListGuests=ju,a.HotelRoomingListGuestsCreateApiFromJSON=N_,a.HotelRoomingListGuestsCreateApiFromJSONTyped=Fu,a.HotelRoomingListGuestsCreateApiToJSON=$u,a.HotelRoomingListGuestsCreateApiToJSONTyped=zu,a.HotelRoomingListGuestsUpdateApiFromJSON=b_,a.HotelRoomingListGuestsUpdateApiFromJSONTyped=Lu,a.HotelRoomingListGuestsUpdateApiToJSON=Hu,a.HotelRoomingListGuestsUpdateApiToJSONTyped=Bu,a.HotelRoomingLists=ec,a.Hotels=ic,a.InsuranceApiFromJSON=Ta,a.InsuranceApiFromJSONTyped=va,a.InsuranceApiStatusEnum=ug,a.InsuranceApiToJSON=wa,a.InsuranceApiToJSONTyped=ka,a.InvoiceApiFromJSON=Ra,a.InvoiceApiFromJSONTyped=Na,a.InvoiceApiToJSON=Pa,a.InvoiceApiToJSONTyped=ba,a.InvoiceApiTypeEnum=dg,a.JSONApiResponse=q,a.Locale=kt,a.LocaleFromJSON=Rt,a.LocaleFromJSONTyped=Uo,a.LocaleToJSON=Fy,a.LocaleToJSONTyped=$y,a.MetaPollingResponseApiFromJSON=Qn,a.MetaPollingResponseApiFromJSONTyped=cu,a.MetaPollingResponseApiToJSON=xn,a.MetaPollingResponseApiToJSONTyped=du,a.MetaResponseApiFromJSON=Rs,a.MetaResponseApiFromJSONTyped=Ns,a.MetaResponseApiToJSON=Ps,a.MetaResponseApiToJSONTyped=bs,a.OrderAddonFromJSON=Fn,a.OrderAddonFromJSONTyped=Ca,a.OrderAddonSelectionFromJSON=Ya,a.OrderAddonSelectionFromJSONTyped=Va,a.OrderAddonSelectionToJSON=Wa,a.OrderAddonSelectionToJSONTyped=Xa,a.OrderAddonSelectionTypeEnum=Sg,a.OrderAddonToJSON=$n,a.OrderAddonToJSONTyped=Ma,a.OrderAddonTypeEnum=lg,a.PaymentMethodApiFromJSON=Aa,a.PaymentMethodApiFromJSONTyped=Sa,a.PaymentMethodApiToJSON=En,a.PaymentMethodApiToJSONTyped=sg,a.PaymentMethodCouponApiFromJSON=Yy,a.PaymentMethodCouponApiFromJSONTyped=Mn,a.PaymentMethodCouponApiNameEnum=qy,a.PaymentMethodCouponApiPayloadInnerFromJSON=Xo,a.PaymentMethodCouponApiPayloadInnerFromJSONTyped=Qo,a.PaymentMethodCouponApiPayloadInnerToJSON=xo,a.PaymentMethodCouponApiPayloadInnerToJSONTyped=jo,a.PaymentMethodCouponApiToJSON=ea,a.PaymentMethodCouponApiToJSONTyped=ta,a.PaymentMethodCreditCardApiFromJSON=Qy,a.PaymentMethodCreditCardApiFromJSONTyped=In,a.PaymentMethodCreditCardApiNameEnum=Wy,a.PaymentMethodCreditCardApiPayloadFromJSON=na,a.PaymentMethodCreditCardApiPayloadFromJSONTyped=ra,a.PaymentMethodCreditCardApiPayloadToJSON=ia,a.PaymentMethodCreditCardApiPayloadToJSONTyped=oa,a.PaymentMethodCreditCardApiToJSON=aa,a.PaymentMethodCreditCardApiToJSONTyped=sa,a.PaymentMethodDepositAccountApiFromJSON=tg,a.PaymentMethodDepositAccountApiFromJSONTyped=Dn,a.PaymentMethodDepositAccountApiNameEnum=jy,a.PaymentMethodDepositAccountApiPayloadFromJSON=ua,a.PaymentMethodDepositAccountApiPayloadFromJSONTyped=ca,a.PaymentMethodDepositAccountApiPayloadToJSON=da,a.PaymentMethodDepositAccountApiPayloadToJSONTyped=fa,a.PaymentMethodDepositAccountApiToJSON=la,a.PaymentMethodDepositAccountApiToJSONTyped=ma,a.PaymentMethodPayLaterApiFromJSON=ag,a.PaymentMethodPayLaterApiFromJSONTyped=Jn,a.PaymentMethodPayLaterApiNameEnum=ig,a.PaymentMethodPayLaterApiPayloadFromJSON=pa,a.PaymentMethodPayLaterApiPayloadFromJSONTyped=ha,a.PaymentMethodPayLaterApiPayloadStatusEnum=ng,a.PaymentMethodPayLaterApiPayloadToJSON=ya,a.PaymentMethodPayLaterApiPayloadToJSONTyped=ga,a.PaymentMethodPayLaterApiToJSON=_a,a.PaymentMethodPayLaterApiToJSONTyped=Oa,a.PaymentMethodRequestApiFromJSON=Un,a.PaymentMethodRequestApiFromJSONTyped=gs,a.PaymentMethodRequestApiToJSON=It,a.PaymentMethodRequestApiToJSONTyped=Fg,a.PaymentMethodRequestCouponApiFromJSON=bg,a.PaymentMethodRequestCouponApiFromJSONTyped=Ln,a.PaymentMethodRequestCouponApiNameEnum=Ng,a.PaymentMethodRequestCouponApiToJSON=fs,a.PaymentMethodRequestCouponApiToJSONTyped=ls,a.PaymentMethodRequestCouponPayloadApiFromJSON=ss,a.PaymentMethodRequestCouponPayloadApiFromJSONTyped=us,a.PaymentMethodRequestCouponPayloadApiToJSON=cs,a.PaymentMethodRequestCouponPayloadApiToJSONTyped=ds,a.PaymentMethodRequestCreditCardApiFromJSON=Ig,a.PaymentMethodRequestCreditCardApiFromJSONTyped=Hn,a.PaymentMethodRequestCreditCardApiNameEnum=Cg,a.PaymentMethodRequestCreditCardApiToJSON=ms,a.PaymentMethodRequestCreditCardApiToJSONTyped=ps,a.PaymentMethodRequestDepositAccountApiFromJSON=Eg,a.PaymentMethodRequestDepositAccountApiFromJSONTyped=Bn,a.PaymentMethodRequestDepositAccountApiNameEnum=Dg,a.PaymentMethodRequestDepositAccountApiToJSON=hs,a.PaymentMethodRequestDepositAccountApiToJSONTyped=ys,a.PaymentMethodUpdatePayloadApiFromJSON=M_,a.PaymentMethodUpdatePayloadApiFromJSONTyped=Uu,a.PaymentMethodUpdatePayloadApiToJSON=Zu,a.PaymentMethodUpdatePayloadApiToJSONTyped=Gu,a.PollerStatus=Dt,a.PollerStatusFromJSON=su,a.PollerStatusFromJSONTyped=uu,a.PollerStatusToJSON=c_,a.PollerStatusToJSONTyped=d_,a.RequestPayloadFromJSON=J_,a.RequestPayloadFromJSONTyped=qu,a.RequestPayloadRequestTypeEnum=I_,a.RequestPayloadToJSON=Ku,a.RequestPayloadToJSONTyped=Yu,a.RequiredError=Z,a.ResponseError=hn,a.SourceMarket=Tt,a.SourceMarketFromJSON=xe,a.SourceMarketFromJSONTyped=Ro,a.SourceMarketToJSON=gy,a.SourceMarketToJSONTyped=_y,a.TagApiFromJSON=Nn,a.TagApiFromJSONTyped=zo,a.TagApiToJSON=Pn,a.TagApiToJSONTyped=Lo,a.TaxApiFromJSON=kn,a.TaxApiFromJSONTyped=Eo,a.TaxApiTaxFrequencyEnum=wy,a.TaxApiTaxModeEnum=ky,a.TaxApiToJSON=Rn,a.TaxApiToJSONTyped=Fo,a.TextApiResponse=_n,a.TravelTimesApiFromJSON=Vn,a.TravelTimesApiFromJSONTyped=Zs,a.TravelTimesApiToJSON=Wn,a.TravelTimesApiToJSONTyped=Gs,a.TravelTimesApiTravelTimesFromJSON=Ls,a.TravelTimesApiTravelTimesFromJSONTyped=Hs,a.TravelTimesApiTravelTimesToJSON=Bs,a.TravelTimesApiTravelTimesToJSONTyped=Us,a.VoidApiResponse=Wi,a.canConsumeForm=Lh,a.exists=zh,a.instanceOfAllowedPaymentMethodCouponApi=Qh,a.instanceOfAllowedPaymentMethodCouponApiPayloadInner=Wh,a.instanceOfAllowedPaymentMethodCreditCardApi=ey,a.instanceOfAllowedPaymentMethodDepositAccountApi=ry,a.instanceOfAllowedPaymentMethodPayLaterApi=uy,a.instanceOfAllowedPaymentMethodPayLaterApiPayload=ay,a.instanceOfAmenitiesApi=fy,a.instanceOfBedApi=ly,a.instanceOfBookingApi=Ag,a.instanceOfBookingCreateApi=$g,a.instanceOfBookingCreateApiGuestsListInner=wg,a.instanceOfBookingCreateApiGuestsListInnerGuestsInner=vg,a.instanceOfBookingPoliciesApi=Lg,a.instanceOfBookingPoliciesCreateApi=Bg,a.instanceOfBookingsApiResponse=Gg,a.instanceOfBreakfastOption=Sy,a.instanceOfCancellationPolicyApi=hy,a.instanceOfContactPersonApi=Zy,a.instanceOfContactPersonOrganizationApi=By,a.instanceOfCountryIso2Code=zy,a.instanceOfCouponPreviewAppliedApi=Bh,a.instanceOfCouponPreviewRejectedApi=qh,a.instanceOfCurrencyClient=Ny,a.instanceOfErrorApiResponse=Yg,a.instanceOfEventApi=pg,a.instanceOfEventMetadataApi=kg,a.instanceOfHotelApi=e_,a.instanceOfHotelApiImages=Qg,a.instanceOfHotelImageApi=Oy,a.instanceOfHotelOfferApi=n_,a.instanceOfHotelOfferRequestApiResponse=r_,a.instanceOfHotelOfferRequestCreateApi=o_,a.instanceOfHotelOffersApiResponse=l_,a.instanceOfHotelOffersDataApiResponse=s_,a.instanceOfHotelReviewRatingApi=Xg,a.instanceOfHotelRoomOfferApi=Jy,a.instanceOfHotelRoomOfferApiHotelRoomsInner=Ay,a.instanceOfHotelRoomOfferApiResponse=p_,a.instanceOfHotelRoomOfferRequestApiResponse=y_,a.instanceOfHotelRoomOfferRequestCreateApi=__,a.instanceOfHotelRoomOffersApiResponse=S_,a.instanceOfHotelRoomOffersCreateApi=w_,a.instanceOfHotelRoomOffersDataApiResponse=A_,a.instanceOfHotelRoomOffersDataCreateApi=v_,a.instanceOfHotelRoomingListApi=gg,a.instanceOfHotelRoomingListApiHotelRoom=hg,a.instanceOfHotelRoomingListGuestApi=yg,a.instanceOfHotelRoomingListGuestsCreateApi=R_,a.instanceOfHotelRoomingListGuestsUpdateApi=P_,a.instanceOfInsuranceApi=cg,a.instanceOfInvoiceApi=fg,a.instanceOfLocale=Ey,a.instanceOfMetaPollingResponseApi=f_,a.instanceOfMetaResponseApi=Zg,a.instanceOfOrderAddon=mg,a.instanceOfOrderAddonSelection=Tg,a.instanceOfPaymentMethodCouponApi=Ky,a.instanceOfPaymentMethodCouponApiPayloadInner=Gy,a.instanceOfPaymentMethodCreditCardApi=Xy,a.instanceOfPaymentMethodCreditCardApiPayload=Vy,a.instanceOfPaymentMethodDepositAccountApi=eg,a.instanceOfPaymentMethodDepositAccountApiPayload=xy,a.instanceOfPaymentMethodPayLaterApi=og,a.instanceOfPaymentMethodPayLaterApiPayload=rg,a.instanceOfPaymentMethodRequestCouponApi=Pg,a.instanceOfPaymentMethodRequestCouponPayloadApi=Rg,a.instanceOfPaymentMethodRequestCreditCardApi=Mg,a.instanceOfPaymentMethodRequestDepositAccountApi=Jg,a.instanceOfPaymentMethodUpdatePayloadApi=C_,a.instanceOfPollerStatus=u_,a.instanceOfRequestPayload=D_,a.instanceOfSourceMarket=yy,a.instanceOfTagApi=Cy,a.instanceOfTaxApi=Ry,a.instanceOfTravelTimesApi=jg,a.instanceOfTravelTimesApiTravelTimes=xg,a.querystring=gn,a.v1ApiClient=ac});
|
|
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 dn(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]:dn(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=dn(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=>dn([...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],[rn,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=Bt(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 fn(e){const t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?fn(t.out):t.type==="catch"?fn(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"?fn(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},ln=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"),ln):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!==ln&&(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!==ln&&(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,Ut,2)}),_t(n,"addIssues",r=>i=>{r.issues.push(...i),r.message=JSON.stringify(r.issues,Ut,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=Qt(ue),wp=xt(ue),kp=jt(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 mn(){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)=>{nn.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)=>{nn.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(cn(e,t))},min(e,t){return this.check(cn(e,t))},lt(e,t){return this.check(pi(e,t))},lte(e,t){return this.check(un(e,t))},max(e,t){return this.check(un(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(cn(0,e))},negative(e){return this.check(pi(0,e))},nonpositive(e){return this.check(un(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)=>{mn(),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)=>{mn(),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 pn=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 pn({...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 pn({...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 pn({type:"enum",entries:n,...M(t)})}var Oh=O("ZodTransform",(e,t)=>{mn(),$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 yn){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 hn(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}},hn=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:"|"},yn=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||gn}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 gn(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?gn(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()}},_n=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 On(e,!1)}function On(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 An(e,!1)}function An(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 Sn(e,!1)}function Sn(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 Tn(e,!1)}function Tn(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{...On(e,!0),name:"COUPON"};case"CREDIT_CARD":return{...An(e,!0),name:"CREDIT_CARD"};case"DEPOSIT_ACCOUNT":return{...Sn(e,!0),name:"DEPOSIT_ACCOUNT"};case"PAY_LATER":return{...Tn(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 vn(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 wn(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 kn(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 Rn(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 Nn(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 Pn(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(Nn),taxIncludedPrice:e.tax_included_price,taxes:e.taxes==null?void 0:e.taxes.map(kn),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(Pn),tax_included_price:e.taxIncludedPrice,taxes:e.taxes==null?void 0:e.taxes.map(Rn),type:e.type}}var kt={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 kt)if(Object.prototype.hasOwnProperty.call(kt,t)&&kt[t]===e)return!0;return!1}function Rt(e){return Go(e,!1)}function Go(e,t){return e}function zy(e){return e}function Hy(e,t){return e}var Nt={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 Nt)if(Object.prototype.hasOwnProperty.call(Nt,t)&&Nt[t]===e)return!0;return!1}function Pt(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:Pt(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:Pt(e.country),email:e.email,firstName:e.first_name,lang:e.lang==null?void 0:Rt(e.lang),lastName:e.last_name,nationality:Pt(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 bt(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 Ct(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 Mt(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(Mt),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:bt(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(kn),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:Ct(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(Rn),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 It(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 It(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(It),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:Rt(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:vn(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,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:wn(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,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:vn(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,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),tags:e.tags==null?void 0:e.tags.map(Nn)}}function xs(e){return js(e,!1)}function js(e,t=!1){return e==null?e:{address:e.address,address2:e.address2,amenities:wn(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,timezone:e.timezone,venues:e.venues==null?void 0:e.venues.map(Wn),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(Be),tags:e.tags==null?void 0:e.tags.map(Pn)}}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 Dt={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function f_(e){for(const t in Dt)if(Object.prototype.hasOwnProperty.call(Dt,t)&&Dt[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:bt(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:Ct(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:bt(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:Ct(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:Rt(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(It)}}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 _n(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 _n(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=>Mt(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=>Mt(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.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 hn{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 yn({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=On,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=An,a.AllowedPaymentMethodCreditCardApiNameEnum=ny,a.AllowedPaymentMethodCreditCardApiToJSON=uo,a.AllowedPaymentMethodCreditCardApiToJSONTyped=co,a.AllowedPaymentMethodDepositAccountApiFromJSON=sy,a.AllowedPaymentMethodDepositAccountApiFromJSONTyped=Sn,a.AllowedPaymentMethodDepositAccountApiNameEnum=oy,a.AllowedPaymentMethodDepositAccountApiToJSON=fo,a.AllowedPaymentMethodDepositAccountApiToJSONTyped=lo,a.AllowedPaymentMethodPayLaterApiFromJSON=ly,a.AllowedPaymentMethodPayLaterApiFromJSONTyped=Tn,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=vn,a.AmenitiesApiFromJSONTyped=To,a.AmenitiesApiToJSON=wn,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=yn,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=Nt,a.CountryIso2CodeFromJSON=Pt,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=bt,a.EventApiFromJSONTyped=Ja,a.EventApiToJSON=Ct,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=Mt,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=kt,a.LocaleFromJSON=Rt,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=It,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=Dt,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=hn,a.SourceMarket=Tt,a.SourceMarketFromJSON=xe,a.SourceMarketFromJSONTyped=Po,a.SourceMarketToJSON=Ay,a.SourceMarketToJSONTyped=Sy,a.TagApiFromJSON=Nn,a.TagApiFromJSONTyped=Ho,a.TagApiToJSON=Pn,a.TagApiToJSONTyped=Bo,a.TaxApiFromJSON=kn,a.TaxApiFromJSONTyped=$o,a.TaxApiTaxFrequencyEnum=Ny,a.TaxApiTaxModeEnum=Py,a.TaxApiToJSON=Rn,a.TaxApiToJSONTyped=Lo,a.TextApiResponse=_n,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=gn,a.v1ApiClient=uc});
|