@revolugo/booking-api-client 7.2.4-alpha.2 → 7.2.4-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/index.es.js +3944 -1692
  2. package/dist/index.umd.js +2 -2
  3. package/dist/types/v1/apis/ResourceBookingPoliciesApi.d.ts +2 -2
  4. package/dist/types/v1/apis/ResourceBookingsApi.d.ts +2 -2
  5. package/dist/types/v1/apis/ResourceHotelImagesApi.d.ts +4 -17
  6. package/dist/types/v1/apis/ResourceHotelOfferRequestsApi.d.ts +2 -2
  7. package/dist/types/v1/apis/ResourceHotelOffersApi.d.ts +4 -17
  8. package/dist/types/v1/apis/ResourceHotelRoomOfferImagesApi.d.ts +4 -17
  9. package/dist/types/v1/apis/ResourceHotelRoomOfferRequestsApi.d.ts +2 -2
  10. package/dist/types/v1/apis/ResourceHotelRoomOffersApi.d.ts +4 -17
  11. package/dist/types/v1/apis/ResourceHotelRoomingListGuestsApi.d.ts +2 -2
  12. package/dist/types/v1/apis/ResourceHotelRoomingListsApi.d.ts +4 -17
  13. package/dist/types/v1/apis/ResourceHotelsApi.d.ts +4 -17
  14. package/dist/types/v1/index.d.ts +3 -3
  15. package/dist/types/v1/models/AllowedPaymentMethodApi.d.ts +13 -0
  16. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf.d.ts +38 -0
  17. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf1.d.ts +38 -0
  18. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf2.d.ts +38 -0
  19. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3.d.ts +34 -0
  20. package/dist/types/v1/models/AllowedPaymentMethodApiOneOf3Payload.d.ts +40 -0
  21. package/dist/types/v1/models/AmenitiesApi.d.ts +289 -0
  22. package/dist/types/v1/models/BedApi.d.ts +43 -0
  23. package/dist/types/v1/models/BookingApi.d.ts +267 -0
  24. package/dist/types/v1/models/BookingCreateApi.d.ts +55 -0
  25. package/dist/types/v1/models/BookingCreateApiGuestsListInner.d.ts +27 -0
  26. package/dist/types/v1/models/BookingCreateApiGuestsListInnerGuestsInner.d.ts +31 -0
  27. package/dist/types/v1/models/BookingPoliciesApi.d.ts +97 -0
  28. package/dist/types/v1/models/BookingPoliciesCreateApi.d.ts +53 -0
  29. package/dist/types/v1/models/BookingsApiResponse.d.ts +28 -0
  30. package/dist/types/v1/models/CancellationPolicyApi.d.ts +43 -0
  31. package/dist/types/v1/models/ContactPersonApi.d.ts +113 -0
  32. package/dist/types/v1/models/ContactPersonOrganizationApi.d.ts +57 -0
  33. package/dist/types/v1/models/CountryIso2Code.d.ts +264 -0
  34. package/dist/types/v1/models/CurrencyClient.d.ts +159 -0
  35. package/dist/types/v1/models/ErrorApiResponse.d.ts +70 -0
  36. package/dist/types/v1/models/EventApi.d.ts +37 -0
  37. package/dist/types/v1/models/EventMetadataApi.d.ts +61 -0
  38. package/dist/types/v1/models/HotelApi.d.ts +200 -0
  39. package/dist/types/v1/models/HotelApiImages.d.ts +65 -0
  40. package/dist/types/v1/models/HotelImageApi.d.ts +67 -0
  41. package/dist/types/v1/models/HotelOfferApi.d.ts +216 -0
  42. package/dist/types/v1/models/HotelOfferApiAllOf.d.ts +37 -0
  43. package/dist/types/v1/models/HotelOfferRequestApiResponse.d.ts +94 -0
  44. package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts +84 -0
  45. package/dist/types/v1/models/HotelOffersApiResponse.d.ts +34 -0
  46. package/dist/types/v1/models/HotelOffersApiResponseMeta.d.ts +45 -0
  47. package/dist/types/v1/models/HotelOffersApiResponseMetaAllOf.d.ts +31 -0
  48. package/dist/types/v1/models/HotelOffersDataApiResponse.d.ts +70 -0
  49. package/dist/types/v1/models/HotelReviewRatingApi.d.ts +37 -0
  50. package/dist/types/v1/models/HotelRoomApi.d.ts +120 -0
  51. package/dist/types/v1/models/HotelRoomOfferApi.d.ts +192 -0
  52. package/dist/types/v1/models/HotelRoomOfferApiResponse.d.ts +58 -0
  53. package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts +76 -0
  54. package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf.d.ts +64 -0
  55. package/dist/types/v1/models/HotelRoomOfferRequestApiResponseAllOf1.d.ts +37 -0
  56. package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts +64 -0
  57. package/dist/types/v1/models/HotelRoomOffersApiResponse.d.ts +34 -0
  58. package/dist/types/v1/models/HotelRoomOffersCreateApi.d.ts +61 -0
  59. package/dist/types/v1/models/HotelRoomOffersDataApiResponse.d.ts +64 -0
  60. package/dist/types/v1/models/HotelRoomOffersDataCreateApi.d.ts +43 -0
  61. package/dist/types/v1/models/HotelRoomingListApi.d.ts +46 -0
  62. package/dist/types/v1/models/HotelRoomingListApiHotelRoom.d.ts +120 -0
  63. package/dist/types/v1/models/HotelRoomingListGuestApi.d.ts +37 -0
  64. package/dist/types/v1/models/HotelRoomingListGuestsCreateApi.d.ts +37 -0
  65. package/dist/types/v1/models/HotelRoomingListGuestsUpdateApi.d.ts +31 -0
  66. package/dist/types/v1/models/InvoiceApi.d.ts +45 -0
  67. package/dist/types/v1/models/Locale.d.ts +28 -0
  68. package/dist/types/v1/models/MetaPollingResponseApi.d.ts +45 -0
  69. package/dist/types/v1/models/MetaPollingResponseApiAllOf.d.ts +21 -0
  70. package/dist/types/v1/models/MetaResponseApi.d.ts +49 -0
  71. package/dist/types/v1/models/PaymentMethodApi.d.ts +13 -0
  72. package/dist/types/v1/models/PaymentMethodApiOneOf.d.ts +34 -0
  73. package/dist/types/v1/models/PaymentMethodApiOneOf1.d.ts +34 -0
  74. package/dist/types/v1/models/PaymentMethodApiOneOf1Payload.d.ts +37 -0
  75. package/dist/types/v1/models/PaymentMethodApiOneOf2.d.ts +34 -0
  76. package/dist/types/v1/models/PaymentMethodApiOneOf2Payload.d.ts +37 -0
  77. package/dist/types/v1/models/PaymentMethodApiOneOf3.d.ts +34 -0
  78. package/dist/types/v1/models/PaymentMethodApiOneOf3Payload.d.ts +52 -0
  79. package/dist/types/v1/models/PaymentMethodApiOneOfPayload.d.ts +43 -0
  80. package/dist/types/v1/models/PaymentMethodRequestApi.d.ts +36 -0
  81. package/dist/types/v1/models/PaymentMethodRequestPayloadApi.d.ts +31 -0
  82. package/dist/types/v1/models/PaymentMethodUpdatePayloadApi.d.ts +21 -0
  83. package/dist/types/v1/models/PollerStatus.d.ts +23 -0
  84. package/dist/types/v1/models/SourceMarket.d.ts +264 -0
  85. package/dist/types/v1/models/TagApi.d.ts +55 -0
  86. package/dist/types/v1/models/TaxApi.d.ts +77 -0
  87. package/dist/types/v1/models/TravelTimesApi.d.ts +33 -0
  88. package/dist/types/v1/models/TravelTimesApiTravelTimes.d.ts +43 -0
  89. package/dist/types/v1/models/index.d.ts +74 -4078
  90. package/package.json +7 -7
package/dist/index.umd.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(y,Q){typeof exports=="object"&&typeof module<"u"?Q(exports):typeof define=="function"&&define.amd?define(["exports"],Q):(y=typeof globalThis<"u"?globalThis:y||self,Q(y["@revolugo/booking-api-client"]={}))})(this,(function(y){"use strict";var Q=(i=>(i.V1="v1",i))(Q||{}),ee=(i=>(i.CiCd="CI-CD",i.Local="LOCAL",i.Production="LIVE",i.Sandbox="SANDBOX",i.Staging="STAGING",i))(ee||{});const Et={LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com","CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001"};var ke=(i=>(i.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",i.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",i))(ke||{}),se=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ue={exports:{}},Pe;function Ot(){return Pe||(Pe=1,(function(i,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof se<"u"&&se,t=(function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s})();(function(s){(function(u){var c=typeof s<"u"&&s||typeof self<"u"&&self||typeof se<"u"&&se||{},h={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function R(o){return o&&DataView.prototype.isPrototypeOf(o)}if(h.arrayBuffer)var E=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(o){return o&&E.indexOf(Object.prototype.toString.call(o))>-1};function m(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function O(o){return typeof o!="string"&&(o=String(o)),o}function C(o){var a={next:function(){var f=o.shift();return{done:f===void 0,value:f}}};return h.iterable&&(a[Symbol.iterator]=function(){return a}),a}function d(o){this.map={},o instanceof d?o.forEach(function(a,f){this.append(f,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}d.prototype.append=function(o,a){o=m(o),a=O(a);var f=this.map[o];this.map[o]=f?f+", "+a:a},d.prototype.delete=function(o){delete this.map[m(o)]},d.prototype.get=function(o){return o=m(o),this.has(o)?this.map[o]:null},d.prototype.has=function(o){return this.map.hasOwnProperty(m(o))},d.prototype.set=function(o,a){this.map[m(o)]=O(a)},d.prototype.forEach=function(o,a){for(var f in this.map)this.map.hasOwnProperty(f)&&o.call(a,this.map[f],f,this)},d.prototype.keys=function(){var o=[];return this.forEach(function(a,f){o.push(f)}),C(o)},d.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),C(o)},d.prototype.entries=function(){var o=[];return this.forEach(function(a,f){o.push([f,a])}),C(o)},h.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function T(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function B(o){return new Promise(function(a,f){o.onload=function(){a(o.result)},o.onerror=function(){f(o.error)}})}function I(o){var a=new FileReader,f=B(a);return a.readAsArrayBuffer(o),f}function D(o){var a=new FileReader,f=B(a),l=/charset=([A-Za-z0-9_-]+)/.exec(o.type),w=l?l[1]:"utf-8";return a.readAsText(o,w),f}function x(o){for(var a=new Uint8Array(o),f=new Array(a.length),l=0;l<a.length;l++)f[l]=String.fromCharCode(a[l]);return f.join("")}function M(o){if(o.slice)return o.slice(0);var a=new Uint8Array(o.byteLength);return a.set(new Uint8Array(o)),a.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(o){this.bodyUsed=this.bodyUsed,this._bodyInit=o,o?typeof o=="string"?this._bodyText=o:h.blob&&Blob.prototype.isPrototypeOf(o)?this._bodyBlob=o:h.formData&&FormData.prototype.isPrototypeOf(o)?this._bodyFormData=o:h.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)?this._bodyText=o.toString():h.arrayBuffer&&h.blob&&R(o)?(this._bodyArrayBuffer=M(o.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(o)||g(o))?this._bodyArrayBuffer=M(o):this._bodyText=o=Object.prototype.toString.call(o):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof o=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob&&(this.blob=function(){var o=T(this);if(o)return o;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 o=T(this);return o||(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(h.blob)return this.blob().then(I);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var o=T(this);if(o)return o;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var F=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Y(o){var a=o.toUpperCase();return F.indexOf(a)>-1?a:o}function H(o,a){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var f=a.body;if(o instanceof H){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new d(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!f&&o._bodyInit!=null&&(f=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new d(a.headers)),this.method=Y(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||(function(){if("AbortController"in c){var p=new AbortController;return p.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&f)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(f),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var l=/([?&])_=[^&]*/;if(l.test(this.url))this.url=this.url.replace(l,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function $(o){var a=new FormData;return o.trim().split("&").forEach(function(f){if(f){var l=f.split("="),w=l.shift().replace(/\+/g," "),p=l.join("=").replace(/\+/g," ");a.append(decodeURIComponent(w),decodeURIComponent(p))}}),a}function k(o){var a=new d,f=o.replace(/\r?\n[\t ]+/g," ");return f.split("\r").map(function(l){return l.indexOf(`
2
- `)===0?l.substr(1,l.length):l}).forEach(function(l){var w=l.split(":"),p=w.shift().trim();if(p){var b=w.join(":").trim();try{a.append(p,b)}catch(U){console.warn("Response "+U.message)}}}),a}N.call(H.prototype);function q(o,a){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.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=a.statusText===void 0?"":""+a.statusText,this.headers=new d(a.headers),this.url=a.url||"",this._initBody(o)}N.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},q.error=function(){var o=new q(null,{status:200,statusText:""});return o.ok=!1,o.status=0,o.type="error",o};var Te=[301,302,303,307,308];q.redirect=function(o,a){if(Te.indexOf(a)===-1)throw new RangeError("Invalid status code");return new q(null,{status:a,headers:{location:o}})},u.DOMException=c.DOMException;try{new u.DOMException}catch{u.DOMException=function(a,f){this.message=a,this.name=f;var l=Error(a);this.stack=l.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function A(o,a){return new Promise(function(f,l){var w=new H(o,a);if(w.signal&&w.signal.aborted)return l(new u.DOMException("Aborted","AbortError"));var p=new XMLHttpRequest;function b(){p.abort()}p.onload=function(){var _={statusText:p.statusText,headers:k(p.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(p.status<200||p.status>599)?_.status=200:_.status=p.status,_.url="responseURL"in p?p.responseURL:_.headers.get("X-Request-URL");var K="response"in p?p.response:p.responseText;setTimeout(function(){f(new q(K,_))},0)},p.onerror=function(){setTimeout(function(){l(new TypeError("Network request failed"))},0)},p.ontimeout=function(){setTimeout(function(){l(new TypeError("Network request timed out"))},0)},p.onabort=function(){setTimeout(function(){l(new u.DOMException("Aborted","AbortError"))},0)};function U(_){try{return _===""&&c.location.href?c.location.href:_}catch{return _}}if(p.open(w.method,U(w.url),!0),w.credentials==="include"?p.withCredentials=!0:w.credentials==="omit"&&(p.withCredentials=!1),"responseType"in p&&(h.blob?p.responseType="blob":h.arrayBuffer&&(p.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof d||c.Headers&&a.headers instanceof c.Headers)){var G=[];Object.getOwnPropertyNames(a.headers).forEach(function(_){G.push(m(_)),p.setRequestHeader(_,O(a.headers[_]))}),w.headers.forEach(function(_,K){G.indexOf(K)===-1&&p.setRequestHeader(K,_)})}else w.headers.forEach(function(_,K){p.setRequestHeader(K,_)});w.signal&&(w.signal.addEventListener("abort",b),p.onreadystatechange=function(){p.readyState===4&&w.signal.removeEventListener("abort",b)}),p.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return A.polyfill=!0,c.fetch||(c.fetch=A,c.Headers=d,c.Request=H,c.Response=q),u.Headers=d,u.Request=H,u.Response=q,u.fetch=A,u})({})})(t),t.fetch.ponyfill=!0,delete t.fetch.polyfill;var r=n.fetch?n:t;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,i.exports=e})(ue,ue.exports)),ue.exports}var Ct=Ot();const Tt=z(Ct),Mt=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),kt=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),_t=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Dt=/[^\p{L}\d]+/giu,Ne="$1\0$2",$e="";function Ue(i){let e=i.trim();e=e.replace(Mt,Ne).replace(kt,Ne),e=e.replace(Dt,"\0");let n=0,t=e.length;for(;e.charAt(n)==="\0";)n++;if(n===t)return[];for(;e.charAt(t-1)==="\0";)t--;return e.slice(n,t).split(/\0/g)}function bt(i){const e=Ue(i);for(let n=0;n<e.length;n++){const t=e[n],r=_t.exec(t);if(r){const s=r.index+(r[1]??r[2]).length;e.splice(n,1,t.slice(0,s),t.slice(s))}}return e}function xe(i,e){const[n,t,r]=le(i,e);return n+t.map(ce(e?.locale)).join(e?.delimiter??" ")+r}function It(i,e){const[n,t,r]=le(i,e),s=ce(e?.locale),u=_e(e?.locale),c=e?.mergeAmbiguousCharacters?De(s,u):Ge(s,u);return n+t.map((h,R)=>R===0?s(h):c(h,R)).join(e?.delimiter??"")+r}function Bt(i,e){const[n,t,r]=le(i,e),s=ce(e?.locale),u=_e(e?.locale),c=e?.mergeAmbiguousCharacters?De(s,u):Ge(s,u);return n+t.map(c).join(e?.delimiter??"")+r}function Lt(i,e){const[n,t,r]=le(i,e),s=ce(e?.locale),u=_e(e?.locale);return n+t.map(De(s,u)).join(e?.delimiter??" ")+r}function He(i,e){return xe(i,{delimiter:"-",...e})}function Pt(i,e){return xe(i,{delimiter:"_",...e})}function ce(i){return i===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(i)}function _e(i){return i===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(i)}function De(i,e){return n=>`${e(n[0])}${i(n.slice(1))}`}function Ge(i,e){return(n,t)=>{const r=n[0];return(t>0&&r>="0"&&r<="9"?"_"+r:e(r))+i(n.slice(1))}}function le(i,e={}){const n=e.split??(e.separateNumbers?bt:Ue),t=e.prefixCharacters??$e,r=e.suffixCharacters??$e;let s=0,u=i.length;for(;s<i.length;){const c=i.charAt(s);if(!t.includes(c))break;s++}for(;u>s;){const c=u-1,h=i.charAt(c);if(!r.includes(h))break;u=c}return[i.slice(0,s),n(i.slice(s,u)),i.slice(u)]}var fe={exports:{}},Nt=fe.exports,Ke;function $t(){return Ke||(Ke=1,(function(i,e){(function(n,t,r){i.exports=r(),i.exports.default=r()})("slugify",Nt,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"}`),t=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 r(s,u){if(typeof s!="string")throw new Error("slugify: string argument expected");u=typeof u=="string"?{replacement:u}:u||{};var c=t[u.locale]||{},h=u.replacement===void 0?"-":u.replacement,R=u.trim===void 0?!0:u.trim,E=s.normalize().split("").reduce(function(g,m){var O=c[m];return O===void 0&&(O=n[m]),O===void 0&&(O=m),O===h&&(O=" "),g+O.replace(u.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return u.strict&&(E=E.replace(/[^A-Za-z0-9\s]/g,"")),R&&(E=E.trim()),E=E.replace(/\s+/g,h),u.lower&&(E=E.toLowerCase()),E}return r.extend=function(s){Object.assign(n,s)},r})})(fe)),fe.exports}var Ut=$t();const xt=z(Ut);function Ht(i){return xt(He(i),{lower:!0,strict:!0})}var S=(i=>(i.Camel="camelCase",i.Capital="capitalCase",i.Param="paramCase",i.Pascal="pascalCase",i.Slug="slugCase",i.Snake="snakeCase",i))(S||{});const Gt={camelCase:It,capitalCase:Lt,paramCase:He,pascalCase:Bt,slugCase:Ht,snakeCase:Pt};function Kt(i,e){return i.some(n=>typeof n=="string"?n===e:n.test(e))}function Ft(i){return i===Object(i)&&!Array.isArray(i)&&typeof i!="function"}function v(i,e,n={deep:!0}){return Ft(i)&&!(i instanceof Date)?Object.keys(i).reduce((t,r)=>{const s=n?.exclude&&Kt(n.exclude,r)?r:Gt[e](r);return t[s]=n.deep?v(i[r],e,n):i[r],t},{}):Array.isArray(i)?i.map(t=>v(t,e,n)):i}var de={exports:{}},Vt=de.exports,Fe;function Ve(){return Fe||(Fe=1,(function(i,e){(function(n,t){i.exports=t()})(Vt,(function(){var n=1e3,t=6e4,r=36e5,s="millisecond",u="second",c="minute",h="hour",R="day",E="week",g="month",m="quarter",O="year",C="date",d="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|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,I={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(A){var o=["th","st","nd","rd"],a=A%100;return"["+A+(o[(a-20)%10]||o[a]||o[0])+"]"}},D=function(A,o,a){var f=String(A);return!f||f.length>=o?A:""+Array(o+1-f.length).join(a)+A},x={s:D,z:function(A){var o=-A.utcOffset(),a=Math.abs(o),f=Math.floor(a/60),l=a%60;return(o<=0?"+":"-")+D(f,2,"0")+":"+D(l,2,"0")},m:function A(o,a){if(o.date()<a.date())return-A(a,o);var f=12*(a.year()-o.year())+(a.month()-o.month()),l=o.clone().add(f,g),w=a-l<0,p=o.clone().add(f+(w?-1:1),g);return+(-(f+(a-l)/(w?l-p:p-l))||0)},a:function(A){return A<0?Math.ceil(A)||0:Math.floor(A)},p:function(A){return{M:g,y:O,w:E,d:R,D:C,h,m:c,s:u,ms:s,Q:m}[A]||String(A||"").toLowerCase().replace(/s$/,"")},u:function(A){return A===void 0}},M="en",N={};N[M]=I;var F="$isDayjsObject",Y=function(A){return A instanceof q||!(!A||!A[F])},H=function A(o,a,f){var l;if(!o)return M;if(typeof o=="string"){var w=o.toLowerCase();N[w]&&(l=w),a&&(N[w]=a,l=w);var p=o.split("-");if(!l&&p.length>1)return A(p[0])}else{var b=o.name;N[b]=o,l=b}return!f&&l&&(M=l),l||!f&&M},$=function(A,o){if(Y(A))return A.clone();var a=typeof o=="object"?o:{};return a.date=A,a.args=arguments,new q(a)},k=x;k.l=H,k.i=Y,k.w=function(A,o){return $(A,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var q=(function(){function A(a){this.$L=H(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[F]=!0}var o=A.prototype;return o.parse=function(a){this.$d=(function(f){var l=f.date,w=f.utc;if(l===null)return new Date(NaN);if(k.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var p=l.match(T);if(p){var b=p[2]-1||0,U=(p[7]||"0").substring(0,3);return w?new Date(Date.UTC(p[1],b,p[3]||1,p[4]||0,p[5]||0,p[6]||0,U)):new Date(p[1],b,p[3]||1,p[4]||0,p[5]||0,p[6]||0,U)}}return new Date(l)})(a),this.init()},o.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},o.$utils=function(){return k},o.isValid=function(){return this.$d.toString()!==d},o.isSame=function(a,f){var l=$(a);return this.startOf(f)<=l&&l<=this.endOf(f)},o.isAfter=function(a,f){return $(a)<this.startOf(f)},o.isBefore=function(a,f){return this.endOf(f)<$(a)},o.$g=function(a,f,l){return k.u(a)?this[f]:this.set(l,a)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(a,f){var l=this,w=!!k.u(f)||f,p=k.p(a),b=function(ne,j){var X=k.w(l.$u?Date.UTC(l.$y,j,ne):new Date(l.$y,j,ne),l);return w?X:X.endOf(R)},U=function(ne,j){return k.w(l.toDate()[ne].apply(l.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(j)),l)},G=this.$W,_=this.$M,K=this.$D,ie="set"+(this.$u?"UTC":"");switch(p){case O:return w?b(1,0):b(31,11);case g:return w?b(1,_):b(0,_+1);case E:var te=this.$locale().weekStart||0,oe=(G<te?G+7:G)-te;return b(w?K-oe:K+(6-oe),_);case R:case C:return U(ie+"Hours",0);case h:return U(ie+"Minutes",1);case c:return U(ie+"Seconds",2);case u:return U(ie+"Milliseconds",3);default:return this.clone()}},o.endOf=function(a){return this.startOf(a,!1)},o.$set=function(a,f){var l,w=k.p(a),p="set"+(this.$u?"UTC":""),b=(l={},l[R]=p+"Date",l[C]=p+"Date",l[g]=p+"Month",l[O]=p+"FullYear",l[h]=p+"Hours",l[c]=p+"Minutes",l[u]=p+"Seconds",l[s]=p+"Milliseconds",l)[w],U=w===R?this.$D+(f-this.$W):f;if(w===g||w===O){var G=this.clone().set(C,1);G.$d[b](U),G.init(),this.$d=G.set(C,Math.min(this.$D,G.daysInMonth())).$d}else b&&this.$d[b](U);return this.init(),this},o.set=function(a,f){return this.clone().$set(a,f)},o.get=function(a){return this[k.p(a)]()},o.add=function(a,f){var l,w=this;a=Number(a);var p=k.p(f),b=function(_){var K=$(w);return k.w(K.date(K.date()+Math.round(_*a)),w)};if(p===g)return this.set(g,this.$M+a);if(p===O)return this.set(O,this.$y+a);if(p===R)return b(1);if(p===E)return b(7);var U=(l={},l[c]=t,l[h]=r,l[u]=n,l)[p]||1,G=this.$d.getTime()+a*U;return k.w(G,this)},o.subtract=function(a,f){return this.add(-1*a,f)},o.format=function(a){var f=this,l=this.$locale();if(!this.isValid())return l.invalidDate||d;var w=a||"YYYY-MM-DDTHH:mm:ssZ",p=k.z(this),b=this.$H,U=this.$m,G=this.$M,_=l.weekdays,K=l.months,ie=l.meridiem,te=function(j,X,ae,Me){return j&&(j[X]||j(f,w))||ae[X].slice(0,Me)},oe=function(j){return k.s(b%12||12,j,"0")},ne=ie||function(j,X,ae){var Me=j<12?"AM":"PM";return ae?Me.toLowerCase():Me};return w.replace(B,(function(j,X){return X||(function(ae){switch(ae){case"YY":return String(f.$y).slice(-2);case"YYYY":return k.s(f.$y,4,"0");case"M":return G+1;case"MM":return k.s(G+1,2,"0");case"MMM":return te(l.monthsShort,G,K,3);case"MMMM":return te(K,G);case"D":return f.$D;case"DD":return k.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return te(l.weekdaysMin,f.$W,_,2);case"ddd":return te(l.weekdaysShort,f.$W,_,3);case"dddd":return _[f.$W];case"H":return String(b);case"HH":return k.s(b,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return ne(b,U,!0);case"A":return ne(b,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(f.$s);case"ss":return k.s(f.$s,2,"0");case"SSS":return k.s(f.$ms,3,"0");case"Z":return p}return null})(j)||p.replace(":","")}))},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(a,f,l){var w,p=this,b=k.p(f),U=$(a),G=(U.utcOffset()-this.utcOffset())*t,_=this-U,K=function(){return k.m(p,U)};switch(b){case O:w=K()/12;break;case g:w=K();break;case m:w=K()/3;break;case E:w=(_-G)/6048e5;break;case R:w=(_-G)/864e5;break;case h:w=_/r;break;case c:w=_/t;break;case u:w=_/n;break;default:w=_}return l?w:k.a(w)},o.daysInMonth=function(){return this.endOf(g).$D},o.$locale=function(){return N[this.$L]},o.locale=function(a,f){if(!a)return this.$L;var l=this.clone(),w=H(a,f,!0);return w&&(l.$L=w),l},o.clone=function(){return k.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},A})(),Te=q.prototype;return $.prototype=Te,[["$ms",s],["$s",u],["$m",c],["$H",h],["$W",R],["$M",g],["$y",O],["$D",C]].forEach((function(A){Te[A[1]]=function(o){return this.$g(o,A[0],A[1])}})),$.extend=function(A,o){return A.$i||(A(o,q,$),A.$i=!0),$},$.locale=H,$.isDayjs=Y,$.unix=function(A){return $(1e3*A)},$.en=N[M],$.Ls=N,$.p={},$}))})(de)),de.exports}var Yt=Ve();const Z=z(Yt);var he={exports:{}},qt=he.exports,Ye;function jt(){return Ye||(Ye=1,(function(i,e){(function(n,t){i.exports=t()})(qt,(function(){return function(n,t){var r=t.prototype,s=r.format;r.format=function(u){var c=this,h=this.$locale();if(!this.isValid())return s.bind(this)(u);var R=this.$utils(),E=(u||"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(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return R.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return R.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return R.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}}));return s.bind(this)(E)}}}))})(he)),he.exports}var zt=jt();const Wt=z(zt);var pe={exports:{}},Zt=pe.exports,qe;function Jt(){return qe||(qe=1,(function(i,e){(function(n,t){i.exports=t()})(Zt,(function(){return function(n,t,r){t.prototype.isBetween=function(s,u,c,h){var R=r(s),E=r(u),g=(h=h||"()")[0]==="(",m=h[1]===")";return(g?this.isAfter(R,c):!this.isBefore(R,c))&&(m?this.isBefore(E,c):!this.isAfter(E,c))||(g?this.isBefore(R,c):!this.isAfter(R,c))&&(m?this.isAfter(E,c):!this.isBefore(E,c))}}}))})(pe)),pe.exports}var Xt=Jt();const Qt=z(Xt);var me={exports:{}},en=me.exports,je;function tn(){return je||(je=1,(function(i,e){(function(n,t){i.exports=t()})(en,(function(){return function(n,t){t.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}}))})(me)),me.exports}var nn=tn();const rn=z(nn);var ye={exports:{}},on=ye.exports,ze;function an(){return ze||(ze=1,(function(i,e){(function(n,t){i.exports=t()})(on,(function(){return function(n,t){t.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(ye)),ye.exports}var sn=an();const un=z(sn);var ge={exports:{}},cn=ge.exports,We;function ln(){return We||(We=1,(function(i,e){(function(n,t){i.exports=t()})(cn,(function(){return function(n,t,r){var s=t.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},c=function(g,m,O,C,d){var T=g.name?g:g.$locale(),B=u(T[m]),I=u(T[O]),D=B||I.map((function(M){return M.slice(0,C)}));if(!d)return D;var x=T.weekStart;return D.map((function(M,N){return D[(N+(x||0))%7]}))},h=function(){return r.Ls[r.locale()]},R=function(g,m){return g.formats[m]||(function(O){return O.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(C,d,T){return d||T.slice(1)}))})(g.formats[m.toUpperCase()])},E=function(){var g=this;return{months:function(m){return m?m.format("MMMM"):c(g,"months")},monthsShort:function(m){return m?m.format("MMM"):c(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):c(g,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):c(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):c(g,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return R(g.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return E.bind(this)()},r.localeData=function(){var g=h();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(m){return R(g,m)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return c(h(),"months")},r.monthsShort=function(){return c(h(),"monthsShort","months",3)},r.weekdays=function(g){return c(h(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return c(h(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return c(h(),"weekdaysMin","weekdays",2,g)}}}))})(ge)),ge.exports}var fn=ln();const dn=z(fn);var we={exports:{}},hn=we.exports,Ze;function pn(){return Ze||(Ze=1,(function(i,e){(function(n,t){i.exports=t()})(hn,(function(){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(t,r,s){var u=r.prototype,c=u.format;s.en.formats=n,u.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var R=this.$locale().formats,E=(function(g,m){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(O,C,d){var T=d&&d.toUpperCase();return C||m[d]||n[d]||m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(B,I,D){return I||D.slice(1)}))}))})(h,R===void 0?{}:R);return c.call(this,E)}}}))})(we)),we.exports}var mn=pn();const yn=z(mn);var ve={exports:{}},gn=ve.exports,Je;function wn(){return Je||(Je=1,(function(i,e){(function(n,t){i.exports=t()})(gn,(function(){return function(n,t,r){var s=function(u,c){if(!c||!c.length||c.length===1&&!c[0]||c.length===1&&Array.isArray(c[0])&&!c[0].length)return null;var h;c.length===1&&c[0].length>0&&(c=c[0]),h=(c=c.filter((function(E){return E})))[0];for(var R=1;R<c.length;R+=1)c[R].isValid()&&!c[R][u](h)||(h=c[R]);return h};r.max=function(){var u=[].slice.call(arguments,0);return s("isAfter",u)},r.min=function(){var u=[].slice.call(arguments,0);return s("isBefore",u)}}}))})(ve)),ve.exports}var vn=wn();const Sn=z(vn);var Se={exports:{}},Rn=Se.exports,Xe;function An(){return Xe||(Xe=1,(function(i,e){(function(n,t){i.exports=t()})(Rn,(function(){return function(n,t,r){n=n||{};var s=t.prototype,u={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 c(R,E,g,m){return s.fromToBase(R,E,g,m)}r.en.relativeTime=u,s.fromToBase=function(R,E,g,m,O){for(var C,d,T,B=g.$locale().relativeTime||u,I=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"}],D=I.length,x=0;x<D;x+=1){var M=I[x];M.d&&(C=m?r(R).diff(g,M.d,!0):g.diff(R,M.d,!0));var N=(n.rounding||Math.round)(Math.abs(C));if(T=C>0,N<=M.r||!M.r){N<=1&&x>0&&(M=I[x-1]);var F=B[M.l];O&&(N=O(""+N)),d=typeof F=="string"?F.replace("%d",N):F(N,E,M.l,T);break}}if(E)return d;var Y=T?B.future:B.past;return typeof Y=="function"?Y(d):Y.replace("%s",d)},s.to=function(R,E){return c(R,E,this,!0)},s.from=function(R,E){return c(R,E,this)};var h=function(R){return R.$u?r.utc():r()};s.toNow=function(R){return this.to(h(this),R)},s.fromNow=function(R){return this.from(h(this),R)}}}))})(Se)),Se.exports}var En=An();const On=z(En);var Re={exports:{}},Cn=Re.exports,Qe;function Tn(){return Qe||(Qe=1,(function(i,e){(function(n,t){i.exports=t()})(Cn,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,s,u){var c,h=function(m,O,C){C===void 0&&(C={});var d=new Date(m),T=(function(B,I){I===void 0&&(I={});var D=I.timeZoneName||"short",x=B+"|"+D,M=t[x];return M||(M=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:B,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:D}),t[x]=M),M})(O,C);return T.formatToParts(d)},R=function(m,O){for(var C=h(m,O),d=[],T=0;T<C.length;T+=1){var B=C[T],I=B.type,D=B.value,x=n[I];x>=0&&(d[x]=parseInt(D,10))}var M=d[3],N=M===24?0:M,F=d[0]+"-"+d[1]+"-"+d[2]+" "+N+":"+d[4]+":"+d[5]+":000",Y=+m;return(u.utc(F).valueOf()-(Y-=Y%1e3))/6e4},E=s.prototype;E.tz=function(m,O){m===void 0&&(m=c);var C,d=this.utcOffset(),T=this.toDate(),B=T.toLocaleString("en-US",{timeZone:m}),I=Math.round((T-new Date(B))/1e3/60),D=15*-Math.round(T.getTimezoneOffset()/15)-I;if(!Number(D))C=this.utcOffset(0,O);else if(C=u(B,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(D,!0),O){var x=C.utcOffset();C=C.add(d-x,"minute")}return C.$x.$timezone=m,C},E.offsetName=function(m){var O=this.$x.$timezone||u.tz.guess(),C=h(this.valueOf(),O,{timeZoneName:m}).find((function(d){return d.type.toLowerCase()==="timezonename"}));return C&&C.value};var g=E.startOf;E.startOf=function(m,O){if(!this.$x||!this.$x.$timezone)return g.call(this,m,O);var C=u(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(C,m,O).tz(this.$x.$timezone,!0)},u.tz=function(m,O,C){var d=C&&O,T=C||O||c,B=R(+u(),T);if(typeof m!="string")return u(m).tz(T);var I=(function(N,F,Y){var H=N-60*F*1e3,$=R(H,Y);if(F===$)return[H,F];var k=R(H-=60*($-F)*1e3,Y);return $===k?[H,$]:[N-60*Math.min($,k)*1e3,Math.max($,k)]})(u.utc(m,d).valueOf(),B,T),D=I[0],x=I[1],M=u(D).utcOffset(x);return M.$x.$timezone=T,M},u.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},u.tz.setDefault=function(m){c=m}}}))})(Re)),Re.exports}var Mn=Tn();const kn=z(Mn);var Ae={exports:{}},_n=Ae.exports,et;function Dn(){return et||(et=1,(function(i,e){(function(n,t){i.exports=t()})(_n,(function(){var n="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,u,c){var h=u.prototype;c.utc=function(d){var T={date:d,utc:!0,args:arguments};return new u(T)},h.utc=function(d){var T=c(this.toDate(),{locale:this.$L,utc:!0});return d?T.add(this.utcOffset(),n):T},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var R=h.parse;h.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),R.call(this,d)};var E=h.init;h.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else E.call(this)};var g=h.utcOffset;h.utcOffset=function(d,T){var B=this.$utils().u;if(B(d))return this.$u?0:B(this.$offset)?g.call(this):this.$offset;if(typeof d=="string"&&(d=(function(M){M===void 0&&(M="");var N=M.match(t);if(!N)return null;var F=(""+N[0]).match(r)||["-",0,0],Y=F[0],H=60*+F[1]+ +F[2];return H===0?0:Y==="+"?H:-H})(d),d===null))return this;var I=Math.abs(d)<=16?60*d:d;if(I===0)return this.utc(T);var D=this.clone();if(T)return D.$offset=I,D.$u=!1,D;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(D=this.local().add(I+x,n)).$offset=I,D.$x.$localOffset=x,D};var m=h.format;h.format=function(d){var T=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,T)},h.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var O=h.toDate;h.toDate=function(d){return d==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():O.call(this)};var C=h.diff;h.diff=function(d,T,B){if(d&&this.$u===d.$u)return C.call(this,d,T,B);var I=this.local(),D=c(d).local();return C.call(I,D,T,B)}}}))})(Ae)),Ae.exports}var bn=Dn();const In=z(bn);var Ee={exports:{}},Bn=Ee.exports,tt;function Ln(){return tt||(tt=1,(function(i,e){(function(n,t){i.exports=t(Ve())})(Bn,(function(n){function t(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var r=t(n),s={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(u){return""+u+(u===1?"er":"")}};return r.default.locale(s,null,!0),s}))})(Ee)),Ee.exports}Ln();var Oe={exports:{}},Pn=Oe.exports,nt;function Nn(){return nt||(nt=1,(function(i,e){(function(n,t){i.exports=t()})(Pn,(function(){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 t=["th","st","nd","rd"],r=n%100;return"["+n+(t[(r-20)%10]||t[r]||t[0])+"]"}}}))})(Oe)),Oe.exports}Nn(),Z.extend(Wt),Z.extend(Qt),Z.extend(rn),Z.extend(un),Z.extend(yn),Z.extend(dn),Z.extend(Sn),Z.extend(On),Z.extend(kn),Z.extend(In);function J(i){if(i===null||typeof i!="object")return!1;const e=Object.getPrototypeOf(i);return e===Object.prototype||e===null}function Ce(i,e=new WeakSet){if(i==null||typeof i!="object"||e.has(i))return i;if(e.add(i),Array.isArray(i))return i.map(n=>Ce(n,e));if(J(i)){const n={};for(const t in i)Object.hasOwn(i,t)&&(n[t]=Ce(i[t],e));return n}return i}function be(i,e,n=new WeakSet){if(!(!J(e)||!J(i))&&!(e===i||n.has(e))){n.add(e);for(const t in e)if(Object.hasOwn(e,t)){const r=e[t],s=i[t];J(r)&&J(s)?be(s,r,n):Array.isArray(r)&&Array.isArray(s)?i[t]=rt(s,r,n):i[t]=Ce(r,n)}}}function rt(i,e,n){const t=i.slice();for(let r=0;r<e.length;r++){const s=e[r],u=t[r];if(J(s)&&J(u)){const c={...u};be(c,s,n),t[r]=c}else Array.isArray(s)&&Array.isArray(u)?t[r]=rt(u,s,n):t[r]=Ce(s,n)}return t}function it(i,...e){if(!J(i))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const t of e)t!=null&&be(i,t,n);return i}const V=[];for(let i=0;i<256;++i)V.push((i+256).toString(16).slice(1));function $n(i,e=0){return(V[i[e+0]]+V[i[e+1]]+V[i[e+2]]+V[i[e+3]]+"-"+V[i[e+4]]+V[i[e+5]]+"-"+V[i[e+6]]+V[i[e+7]]+"-"+V[i[e+8]]+V[i[e+9]]+"-"+V[i[e+10]]+V[i[e+11]]+V[i[e+12]]+V[i[e+13]]+V[i[e+14]]+V[i[e+15]]).toLowerCase()}let Ie;const Un=new Uint8Array(16);function xn(){if(!Ie){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ie=crypto.getRandomValues.bind(crypto)}return Ie(Un)}const ot={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Hn(i,e,n){i=i||{};const t=i.random??i.rng?.()??xn();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=t[6]&15|64,t[8]=t[8]&63|128,$n(t)}function Gn(i,e,n){return ot.randomUUID&&!i?ot.randomUUID():Hn(i)}const Kn=1500;class re{static instance=null;defaultOptions={callCount:1,interval:Kn,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};pollings={};static getInstance(){return re.instance||(re.instance=new re),re.instance}on(e,n){this.events[e]=n}poll(e,n){const t=this.buildPollerOptions(n);return this.storeCurrentPolling(t),this.isActivePoller(t)&&e().then(r=>this.onRequest(r,e,t)).catch(r=>{this.dispatch("error",r)}),this}stop(e){e&&this.pollings[e]&&delete this.pollings[e]}buildPollerOptions(e){const n=Object.entries(e).reduce((t,[r,s])=>{if(s!==void 0){const u=r;t[u]=s}return t},{});return{...this.defaultOptions,...n}}dispatch(e,n){this.events[e](n)}isActivePoller(e){return e.type?!!this.pollings[e.type]&&this.pollings[e.type]===e.uuid:!0}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}onComplete(e,n){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(n)}async onRequest(e,n,t){const r=v(e??{},S.Camel);this.isActivePoller(t)&&(this.isInProgress(r)&&t.callCount&&t.maxCallCount&&t.callCount<t.maxCallCount||!this.isInProgress(r)&&t.callCount&&t.minCallCount&&t.callCount<t.minCallCount?(this.isInProgress(r)||(r.meta=r.meta||{},r.meta.status="IN_PROGRESS"),t.callCount+=1,this.dispatch("data",r),t.interval&&await this.pause(t),this.poll(n,t)):this.isInProgress(r)?(r.meta=r.meta||{},r.meta.status="COMPLETE",this.onComplete(r,t)):this.onComplete(r,t))}pause(e){return new Promise(n=>{setTimeout(n,e.interval)})}removeCurrentPolling(e){e.type&&this.pollings[e.type]&&delete this.pollings[e.type]}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Gn(),this.pollings[e.type]=e.uuid)}}function at(i,e,n){const t=re.getInstance();return t.poll(i,e),n&&typeof n=="function"?(t.on("data",r=>{r instanceof Error?n(r,void 0,t):n(null,r,t)}),t.on("error",r=>{r instanceof Error?n(r):n(null,r)}),t):new Promise((r,s)=>{t.on("error",s),t.on("complete",u=>{u instanceof Error?s(u):r(u)})})}typeof SuppressedError=="function"&&SuppressedError;const st="http://localhost".replace(/\/+$/,""),Fn=i=>typeof Blob<"u"&&i instanceof Blob;class W{constructor(e=new Be){this.configuration=e,this.middleware=e.middleware}middleware;withMiddleware(...e){const n=this.clone();return n.middleware=n.middleware.concat(...e),n}withPreMiddleware(...e){const n=e.map(t=>({pre:t}));return this.withMiddleware(...n)}withPostMiddleware(...e){const n=e.map(t=>({post:t}));return this.withMiddleware(...n)}async request(e,n){const{url:t,init:r}=this.createFetchParams(e,n),s=await this.fetchApi(t,r);if(s.status>=200&&s.status<300)return s;throw new ut(s,"Response returned an error code")}createFetchParams(e,n){let t=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(t+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||Fn(e.body)?e.body:JSON.stringify(e.body),s=Object.assign({},this.configuration.headers,e.headers);Object.keys(s).forEach(c=>s[c]===void 0?delete s[c]:{});const u={method:e.method,body:r,credentials:this.configuration.credentials,...it({},n,{headers:it({},s,n?.headers)})};return{url:t,init:u}}fetchApi=async(e,n)=>{let t={url:e,init:n};for(const s of this.middleware)s.pre&&(t=await s.pre({fetch:this.fetchApi,...t})||t);let r=await(this.configuration.fetchApi||fetch)(t.url,t.init);for(const s of this.middleware)s.post&&(r=await s.post({fetch:this.fetchApi,url:t.url,init:t.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,n=new e(this.configuration);return n.middleware=this.middleware.slice(),n}}class ut extends Error{constructor(e,n){super(n),this.response=e}name="ResponseError"}class L extends Error{constructor(e,n){super(n),this.field=e}name="RequiredError"}const Vn={csv:",",ssv:" ",tsv:" ",pipes:"|"};class Be{constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:st}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Le}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 Yn(i,e){const n=i[e];return n!=null}function Le(i,e=""){return Object.keys(i).map(n=>{const t=e+(e.length?`[${n}]`:n),r=i[n];if(r instanceof Array){const s=r.map(u=>encodeURIComponent(String(u))).join(`&${encodeURIComponent(t)}=`);return`${encodeURIComponent(t)}=${s}`}return r instanceof Date?`${encodeURIComponent(t)}=${encodeURIComponent(r.toISOString())}`:r instanceof Object?Le(r,t):`${encodeURIComponent(t)}=${encodeURIComponent(String(r))}`}).filter(n=>n.length>0).join("&")}function qn(i,e){return Object.keys(i).reduce((n,t)=>({...n,[t]:e(i[t])}),{})}function jn(i){for(const e of i)if(e.contentType==="multipart/form-data")return!0;return!1}class P{constructor(e,n=t=>t){this.raw=e,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class zn{constructor(e){this.raw=e}async value(){}}class Wn{constructor(e){this.raw=e}async value(){return await this.raw.blob()}}class ct{constructor(e){this.raw=e}async value(){return await this.raw.text()}}const Zn={CreditCard:"CREDIT_CARD"},Jn={Coupon:"COUPON"},Xn={DepositAccount:"DEPOSIT_ACCOUNT"},Qn={PayLater:"PAY_LATER"},er={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},tr={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},nr={Cx:"bkg-cx",Cf:"bkg-cf",Created:"bkg-created",Af:"bkg-af",Ip:"bkg-ip",Pc:"bkg-pc",Pp:"bkg-pp",Qr:"bkg-qr"},rr={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"},ir={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"},or={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",Tnd:"TND",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"},ar={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"},sr={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"},ur={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},cr={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},lr={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"},fr={CreditNote:"credit_note",Invoice:"invoice"},dr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},hr={CreditCard:"CREDIT_CARD"},pr={Coupon:"COUPON"},mr={DepositAccount:"DEPOSIT_ACCOUNT"},yr={PayLater:"PAY_LATER"},gr={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},wr={Coupon:"COUPON",CreditCard:"CREDIT_CARD",DepositAccount:"DEPOSIT_ACCOUNT"},vr={Complete:"COMPLETE",InProgress:"IN_PROGRESS"},Sr={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"},Rr={Night:"PER_NIGHT",Stay:"PER_STAY"},Ar={Adult:"PER_ADULT",Booking:"PER_BOOKING"};class lt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async paymentMethodsRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new P(s,u=>v(u,S.Camel)).value()}async paymentMethods(e,n){return this.paymentMethodsRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.bookingPoliciesCreateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class ft extends W{async deleteRaw(e,n){if(e.token===null||e.token===void 0)throw new L("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const t={},r={},s=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async delete(e,n){return this.deleteRaw(e,n)}async listRaw(e,n){const t={};e.endingBefore!==void 0&&(t.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(t.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(t.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(t.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(t.filter_by_status=e.filterByStatus),e.limit!==void 0&&(t.limit=e.limit),e.sortBy!==void 0&&(t.sort_by=e.sortBy),e.sortByOrder!==void 0&&(t.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(t.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async list(e={},n){return this.listRaw(e,n)}async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async retrievePublicRaw(e,n){if(e.token===null||e.token===void 0)throw new L("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const t={},r={},s=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrievePublic(e,n){return this.retrievePublicRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.bookingCreateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}async couponChargeRaw(e,n){if(e.couponId===null||e.couponId===void 0)throw new L("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=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:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async couponCharge(e,n){return this.couponChargeRaw(e,n)}async paylaterRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async paylater(e,n){return this.paylaterRaw(e,n)}async confirmpaylaterRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async confirmpaylater(e,n){return this.confirmpaylaterRaw(e,n)}async confirmRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async confirm(e,n){return this.confirmRaw(e,n)}async updatePaymentMethodsRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:v(t,S.Snake),body:v(e.paymentMethodUpdatePayloadApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async updatePaymentMethods(e,n){return this.updatePaymentMethodsRaw(e,n)}}const Er={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},Or={Asc:"asc",Desc:"desc"};class dt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const Cr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class ht extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelOfferRequestCreateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class pt extends W{async listRaw(e,n){if(e.currency===null||e.currency===void 0)throw new L("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new L("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const t={};e.currency!==void 0&&(t.currency=e.currency),e.endingBefore!==void 0&&(t.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(t.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(t.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(t.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(t.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(t.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(t.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(t.lang=e.lang),e.limit!==void 0&&(t.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(t.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(t.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(t.sort_by=e.sortBy),e.sortByOrder!==void 0&&(t.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(t.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async list(e,n,t){return await at(()=>this.listRaw(e,t),{type:ke.HOTEL_SEARCH_POLLING,minCallCount:t?.minCallCount,maxCallCount:t?.maxCallCount},n)}}const Tr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},Mr={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},kr={Asc:"asc",Desc:"desc"};class mt extends W{async deleteRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new L("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const t={},r={},s=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:r,query:v(t,S.Snake)},n);return new ct(s)}async delete(e,n){return this.deleteRaw(e,n)}async updateRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new L("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const t={},r={};r["Content-Type"]="application/json";const s=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:v(t,S.Snake),body:v(e.hotelRoomingListGuestsUpdateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async update(e,n){return this.updateRaw(e,n)}async createRaw(e,n){if(e.token===null||e.token===void 0)throw new L("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const t={},r={};r["Content-Type"]="application/json";const s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomingListGuestsCreateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async create(e,n){return this.createRaw(e,n)}}class yt extends W{async listRaw(e,n){if(e.token===null||e.token===void 0)throw new L("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={},s=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new P(s,u=>v(u,S.Camel)).value()}async list(e,n){return this.listRaw(e,n)}}const _r={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class gt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const Dr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class wt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomOfferRequestCreateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class vt extends W{async listRaw(e,n){if(e.currency===null||e.currency===void 0)throw new L("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new L("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const t={};e.currency!==void 0&&(t.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(t.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(t.lang=e.lang),e.limit!==void 0&&(t.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async list(e,n,t){return await at(()=>this.listRaw(e,t),{type:ke.HOTEL_ROOM_OFFERS,minCallCount:t?.minCallCount,maxCallCount:t?.maxCallCount},n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomOffersCreateApi,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}const br={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class St extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new L("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const t={};e.event!==void 0&&(t.event=e.event),e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new P(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const Ir={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},Rt=i=>({bookingPolicies:new lt(i),bookings:new ft(i),hotelImages:new dt(i),hotelOfferRequests:new ht(i),hotelOffers:new pt(i),hotelRoomOfferImages:new gt(i),hotelRoomOfferRequests:new wt(i),hotelRoomOffers:new vt(i),hotelRoomingListGuests:new mt(i),hotelRoomingLists:new yt(i),hotels:new St(i)});function Br(i){switch(i){case ee.Production:return"AUTH_TOKEN";case ee.Sandbox:return"AUTH_TOKEN_SANDBOX";case ee.Staging:return"AUTH_TOKEN_STAGING";case ee.CiCd:return"AUTH_TOKEN_CICD";case ee.Local:return"AUTH_TOKEN_LOCAL";default:return"AUTH_TOKEN"}}function At(i){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Br(i))))}class Lr{constructor(e){this.config=e}async pre(e){return e.init.mode="cors",At(this.config.apiEnvironment)&&(e.init.credentials="include"),e}}class Pr{constructor(e){this.config=e}async pre(e){return At(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}}class Nr{constructor(e){if(this.config=e,!e.apiVersion||!Object.values(Q).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(Q))}`);let n={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(n={...n,...this.config.optionalHeaders});const t=this.config.apiEnvironment;let r=this.config.apiBaseUrl??Et[t];t===ee.Local&&process.env.BOOKING_API_BASE_URL&&(r=process.env.BOOKING_API_BASE_URL);const s=new Be({basePath:r,fetchApi:Tt,headers:n,middleware:[new Lr(this.config),new Pr(this.config)]});this.apiVersionsToClient={v1:Rt(s)}}apiVersionsToClient;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}}y.AllowedPaymentMethodApiOneOf1NameEnum=Jn,y.AllowedPaymentMethodApiOneOf2NameEnum=Xn,y.AllowedPaymentMethodApiOneOf3NameEnum=Qn,y.AllowedPaymentMethodApiOneOf3PayloadStatusEnum=er,y.AllowedPaymentMethodApiOneOfNameEnum=Zn,y.ApiClient=Nr,y.BASE_PATH=st,y.BaseAPI=W,y.BlobApiResponse=Wn,y.BookingApiPayLaterEnum=tr,y.BookingApiStatusEnum=nr,y.BookingPolicies=lt,y.Bookings=ft,y.BookingsSortByEnum=Er,y.BookingsSortByOrderEnum=Or,y.COLLECTION_FORMATS=Vn,y.Configuration=Be,y.ContactPersonApiSalutationEnum=rr,y.CountryIso2Code=ir,y.CurrencyClient=or,y.ErrorApiResponseTypeEnum=ar,y.HotelImages=dt,y.HotelImagesLangEnum=Cr,y.HotelOfferRequests=ht,y.HotelOffers=pt,y.HotelOffersLangEnum=Tr,y.HotelOffersSortByEnum=Mr,y.HotelOffersSortByOrderEnum=kr,y.HotelRoomOfferApiBreakfastOptionEnum=sr,y.HotelRoomOfferApiPackageTypeEnum=ur,y.HotelRoomOfferApiStayTaxesInfoEnum=cr,y.HotelRoomOfferApiTypeEnum=lr,y.HotelRoomOfferImages=gt,y.HotelRoomOfferImagesLangEnum=Dr,y.HotelRoomOfferRequests=wt,y.HotelRoomOffers=vt,y.HotelRoomOffersLangEnum=br,y.HotelRoomingListGuests=mt,y.HotelRoomingLists=yt,y.HotelRoomingListsLangEnum=_r,y.Hotels=St,y.HotelsLangEnum=Ir,y.InvoiceApiTypeEnum=fr,y.JSONApiResponse=P,y.Locale=dr,y.PaymentMethodApiOneOf1NameEnum=pr,y.PaymentMethodApiOneOf2NameEnum=mr,y.PaymentMethodApiOneOf3NameEnum=yr,y.PaymentMethodApiOneOf3PayloadStatusEnum=gr,y.PaymentMethodApiOneOfNameEnum=hr,y.PaymentMethodRequestApiNameEnum=wr,y.PollerStatus=vr,y.RequiredError=L,y.ResponseError=ut,y.SourceMarket=Sr,y.TaxApiTaxFrequencyEnum=Rr,y.TaxApiTaxModeEnum=Ar,y.TextApiResponse=ct,y.VoidApiResponse=zn,y.canConsumeForm=jn,y.exists=Yn,y.mapValues=qn,y.querystring=Le,y.v1ApiClient=Rt,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(i,ne){typeof exports=="object"&&typeof module<"u"?ne(exports):typeof define=="function"&&define.amd?define(["exports"],ne):(i=typeof globalThis<"u"?globalThis:i||self,ne(i["@revolugo/booking-api-client"]={}))})(this,(function(i){"use strict";var ne=(e=>(e.V1="v1",e))(ne||{}),re=(e=>(e.CiCd="CI-CD",e.Local="LOCAL",e.Production="LIVE",e.Sandbox="SANDBOX",e.Staging="STAGING",e))(re||{});const Zr={"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"};var ze=(e=>(e.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",e.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",e))(ze||{}),ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ge={exports:{}},kt;function xr(){return kt||(kt=1,(function(e,t){var r=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ye<"u"&&ye,n=(function(){function d(){this.fetch=!1,this.DOMException=r.DOMException}return d.prototype=r,new d})();(function(d){(function(u){var f=typeof d<"u"&&d||typeof self<"u"&&self||typeof ye<"u"&&ye||{},h={searchParams:"URLSearchParams"in f,iterable:"Symbol"in f&&"iterator"in Symbol,blob:"FileReader"in f&&"Blob"in f&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in f,arrayBuffer:"ArrayBuffer"in f};function _(c){return c&&DataView.prototype.isPrototypeOf(c)}if(h.arrayBuffer)var R=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(c){return c&&R.indexOf(Object.prototype.toString.call(c))>-1};function y(c){if(typeof c!="string"&&(c=String(c)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(c)||c==="")throw new TypeError('Invalid character in header field name: "'+c+'"');return c.toLowerCase()}function T(c){return typeof c!="string"&&(c=String(c)),c}function w(c){var s={next:function(){var m=c.shift();return{done:m===void 0,value:m}}};return h.iterable&&(s[Symbol.iterator]=function(){return s}),s}function p(c){this.map={},c instanceof p?c.forEach(function(s,m){this.append(m,s)},this):Array.isArray(c)?c.forEach(function(s){if(s.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+s.length);this.append(s[0],s[1])},this):c&&Object.getOwnPropertyNames(c).forEach(function(s){this.append(s,c[s])},this)}p.prototype.append=function(c,s){c=y(c),s=T(s);var m=this.map[c];this.map[c]=m?m+", "+s:s},p.prototype.delete=function(c){delete this.map[y(c)]},p.prototype.get=function(c){return c=y(c),this.has(c)?this.map[c]:null},p.prototype.has=function(c){return this.map.hasOwnProperty(y(c))},p.prototype.set=function(c,s){this.map[y(c)]=T(s)},p.prototype.forEach=function(c,s){for(var m in this.map)this.map.hasOwnProperty(m)&&c.call(s,this.map[m],m,this)},p.prototype.keys=function(){var c=[];return this.forEach(function(s,m){c.push(m)}),w(c)},p.prototype.values=function(){var c=[];return this.forEach(function(s){c.push(s)}),w(c)},p.prototype.entries=function(){var c=[];return this.forEach(function(s,m){c.push([m,s])}),w(c)},h.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function k(c){if(!c._noBody){if(c.bodyUsed)return Promise.reject(new TypeError("Already read"));c.bodyUsed=!0}}function F(c){return new Promise(function(s,m){c.onload=function(){s(c.result)},c.onerror=function(){m(c.error)}})}function D(c){var s=new FileReader,m=F(s);return s.readAsArrayBuffer(c),m}function J(c){var s=new FileReader,m=F(s),l=/charset=([A-Za-z0-9_-]+)/.exec(c.type),A=l?l[1]:"utf-8";return s.readAsText(c,A),m}function G(c){for(var s=new Uint8Array(c),m=new Array(s.length),l=0;l<s.length;l++)m[l]=String.fromCharCode(s[l]);return m.join("")}function C(c){if(c.slice)return c.slice(0);var s=new Uint8Array(c.byteLength);return s.set(new Uint8Array(c)),s.buffer}function E(){return this.bodyUsed=!1,this._initBody=function(c){this.bodyUsed=this.bodyUsed,this._bodyInit=c,c?typeof c=="string"?this._bodyText=c:h.blob&&Blob.prototype.isPrototypeOf(c)?this._bodyBlob=c:h.formData&&FormData.prototype.isPrototypeOf(c)?this._bodyFormData=c:h.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)?this._bodyText=c.toString():h.arrayBuffer&&h.blob&&_(c)?(this._bodyArrayBuffer=C(c.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(c)||g(c))?this._bodyArrayBuffer=C(c):this._bodyText=c=Object.prototype.toString.call(c):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof c=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(c)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob&&(this.blob=function(){var c=k(this);if(c)return c;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 c=k(this);return c||(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(h.blob)return this.blob().then(D);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var c=k(this);if(c)return c;if(this._bodyBlob)return J(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(G(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then(B)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function z(c){var s=c.toUpperCase();return K.indexOf(s)>-1?s:c}function U(c,s){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');s=s||{};var m=s.body;if(c instanceof U){if(c.bodyUsed)throw new TypeError("Already read");this.url=c.url,this.credentials=c.credentials,s.headers||(this.headers=new p(c.headers)),this.method=c.method,this.mode=c.mode,this.signal=c.signal,!m&&c._bodyInit!=null&&(m=c._bodyInit,c.bodyUsed=!0)}else this.url=String(c);if(this.credentials=s.credentials||this.credentials||"same-origin",(s.headers||!this.headers)&&(this.headers=new p(s.headers)),this.method=z(s.method||this.method||"GET"),this.mode=s.mode||this.mode||null,this.signal=s.signal||this.signal||(function(){if("AbortController"in f){var O=new AbortController;return O.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&m)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(m),(this.method==="GET"||this.method==="HEAD")&&(s.cache==="no-store"||s.cache==="no-cache")){var l=/([?&])_=[^&]*/;if(l.test(this.url))this.url=this.url.replace(l,"$1_="+new Date().getTime());else{var A=/\?/;this.url+=(A.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})};function B(c){var s=new FormData;return c.trim().split("&").forEach(function(m){if(m){var l=m.split("="),A=l.shift().replace(/\+/g," "),O=l.join("=").replace(/\+/g," ");s.append(decodeURIComponent(A),decodeURIComponent(O))}}),s}function P(c){var s=new p,m=c.replace(/\r?\n[\t ]+/g," ");return m.split("\r").map(function(l){return l.indexOf(`
2
+ `)===0?l.substr(1,l.length):l}).forEach(function(l){var A=l.split(":"),O=A.shift().trim();if(O){var v=A.join(":").trim();try{s.append(O,v)}catch(L){console.warn("Response "+L.message)}}}),s}E.call(U.prototype);function Y(c,s){if(!(this instanceof Y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(s||(s={}),this.type="default",this.status=s.status===void 0?200:s.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=s.statusText===void 0?"":""+s.statusText,this.headers=new p(s.headers),this.url=s.url||"",this._initBody(c)}E.call(Y.prototype),Y.prototype.clone=function(){return new Y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},Y.error=function(){var c=new Y(null,{status:200,statusText:""});return c.ok=!1,c.status=0,c.type="error",c};var Ke=[301,302,303,307,308];Y.redirect=function(c,s){if(Ke.indexOf(s)===-1)throw new RangeError("Invalid status code");return new Y(null,{status:s,headers:{location:c}})},u.DOMException=f.DOMException;try{new u.DOMException}catch{u.DOMException=function(s,m){this.message=s,this.name=m;var l=Error(s);this.stack=l.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function S(c,s){return new Promise(function(m,l){var A=new U(c,s);if(A.signal&&A.signal.aborted)return l(new u.DOMException("Aborted","AbortError"));var O=new XMLHttpRequest;function v(){O.abort()}O.onload=function(){var I={statusText:O.statusText,headers:P(O.getAllResponseHeaders()||"")};A.url.indexOf("file://")===0&&(O.status<200||O.status>599)?I.status=200:I.status=O.status,I.url="responseURL"in O?O.responseURL:I.headers.get("X-Request-URL");var q="response"in O?O.response:O.responseText;setTimeout(function(){m(new Y(q,I))},0)},O.onerror=function(){setTimeout(function(){l(new TypeError("Network request failed"))},0)},O.ontimeout=function(){setTimeout(function(){l(new TypeError("Network request timed out"))},0)},O.onabort=function(){setTimeout(function(){l(new u.DOMException("Aborted","AbortError"))},0)};function L(I){try{return I===""&&f.location.href?f.location.href:I}catch{return I}}if(O.open(A.method,L(A.url),!0),A.credentials==="include"?O.withCredentials=!0:A.credentials==="omit"&&(O.withCredentials=!1),"responseType"in O&&(h.blob?O.responseType="blob":h.arrayBuffer&&(O.responseType="arraybuffer")),s&&typeof s.headers=="object"&&!(s.headers instanceof p||f.Headers&&s.headers instanceof f.Headers)){var $=[];Object.getOwnPropertyNames(s.headers).forEach(function(I){$.push(y(I)),O.setRequestHeader(I,T(s.headers[I]))}),A.headers.forEach(function(I,q){$.indexOf(q)===-1&&O.setRequestHeader(q,I)})}else A.headers.forEach(function(I,q){O.setRequestHeader(q,I)});A.signal&&(A.signal.addEventListener("abort",v),O.onreadystatechange=function(){O.readyState===4&&A.signal.removeEventListener("abort",v)}),O.send(typeof A._bodyInit>"u"?null:A._bodyInit)})}return S.polyfill=!0,f.fetch||(f.fetch=S,f.Headers=p,f.Request=U,f.Response=Y),u.Headers=p,u.Request=U,u.Response=Y,u.fetch=S,u})({})})(n),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var a=r.fetch?r:n;t=a.fetch,t.default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t})(ge,ge.exports)),ge.exports}var Xr=xr();const Qr=Z(Xr),jr=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),eo=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),to=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),io=/[^\p{L}\d]+/giu,Nt="$1\0$2",Mt="";function Ct(e){let t=e.trim();t=t.replace(jr,Nt).replace(eo,Nt),t=t.replace(io,"\0");let r=0,n=t.length;for(;t.charAt(r)==="\0";)r++;if(r===n)return[];for(;t.charAt(n-1)==="\0";)n--;return t.slice(r,n).split(/\0/g)}function no(e){const t=Ct(e);for(let r=0;r<t.length;r++){const n=t[r],a=to.exec(n);if(a){const d=a.index+(a[1]??a[2]).length;t.splice(r,1,n.slice(0,d),n.slice(d))}}return t}function Pt(e,t){const[r,n,a]=_e(e,t);return r+n.map(Ae(t?.locale)).join(t?.delimiter??" ")+a}function ro(e,t){const[r,n,a]=_e(e,t),d=Ae(t?.locale),u=Ye(t?.locale),f=t?.mergeAmbiguousCharacters?We(d,u):Jt(d,u);return r+n.map((h,_)=>_===0?d(h):f(h,_)).join(t?.delimiter??"")+a}function oo(e,t){const[r,n,a]=_e(e,t),d=Ae(t?.locale),u=Ye(t?.locale),f=t?.mergeAmbiguousCharacters?We(d,u):Jt(d,u);return r+n.map(f).join(t?.delimiter??"")+a}function ao(e,t){const[r,n,a]=_e(e,t),d=Ae(t?.locale),u=Ye(t?.locale);return r+n.map(We(d,u)).join(t?.delimiter??" ")+a}function It(e,t){return Pt(e,{delimiter:"-",...t})}function co(e,t){return Pt(e,{delimiter:"_",...t})}function Ae(e){return e===!1?t=>t.toLowerCase():t=>t.toLocaleLowerCase(e)}function Ye(e){return e===!1?t=>t.toUpperCase():t=>t.toLocaleUpperCase(e)}function We(e,t){return r=>`${t(r[0])}${e(r.slice(1))}`}function Jt(e,t){return(r,n)=>{const a=r[0];return(n>0&&a>="0"&&a<="9"?"_"+a:t(a))+e(r.slice(1))}}function _e(e,t={}){const r=t.split??(t.separateNumbers?no:Ct),n=t.prefixCharacters??Mt,a=t.suffixCharacters??Mt;let d=0,u=e.length;for(;d<e.length;){const f=e.charAt(d);if(!n.includes(f))break;d++}for(;u>d;){const f=u-1,h=e.charAt(f);if(!a.includes(h))break;u=f}return[e.slice(0,d),r(e.slice(d,u)),e.slice(u)]}var Se={exports:{}},so=Se.exports,vt;function uo(){return vt||(vt=1,(function(e,t){(function(r,n,a){e.exports=a(),e.exports.default=a()})("slugify",so,function(){var r=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"}`),n=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 a(d,u){if(typeof d!="string")throw new Error("slugify: string argument expected");u=typeof u=="string"?{replacement:u}:u||{};var f=n[u.locale]||{},h=u.replacement===void 0?"-":u.replacement,_=u.trim===void 0?!0:u.trim,R=d.normalize().split("").reduce(function(g,y){var T=f[y];return T===void 0&&(T=r[y]),T===void 0&&(T=y),T===h&&(T=" "),g+T.replace(u.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return u.strict&&(R=R.replace(/[^A-Za-z0-9\s]/g,"")),_&&(R=R.trim()),R=R.replace(/\s+/g,h),u.lower&&(R=R.toLowerCase()),R}return a.extend=function(d){Object.assign(r,d)},a})})(Se)),Se.exports}var fo=uo();const lo=Z(fo);function mo(e){return lo(It(e),{lower:!0,strict:!0})}var M=(e=>(e.Camel="camelCase",e.Capital="capitalCase",e.Param="paramCase",e.Pascal="pascalCase",e.Slug="slugCase",e.Snake="snakeCase",e))(M||{});const po={camelCase:ro,capitalCase:ao,paramCase:It,pascalCase:oo,slugCase:mo,snakeCase:co};function ho(e,t){return e.some(r=>typeof r=="string"?r===t:r.test(t))}function Oo(e){return e===Object(e)&&!Array.isArray(e)&&typeof e!="function"}function N(e,t,r={deep:!0}){return Oo(e)&&!(e instanceof Date)?Object.keys(e).reduce((n,a)=>{const d=r?.exclude&&ho(r.exclude,a)?a:po[t](a);return n[d]=r.deep?N(e[a],t,r):e[a],n},{}):Array.isArray(e)?e.map(n=>N(n,t,r)):e}var Re={exports:{}},yo=Re.exports,Dt;function Ft(){return Dt||(Dt=1,(function(e,t){(function(r,n){e.exports=n()})(yo,(function(){var r=1e3,n=6e4,a=36e5,d="millisecond",u="second",f="minute",h="hour",_="day",R="week",g="month",y="quarter",T="year",w="date",p="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|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,D={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(S){var c=["th","st","nd","rd"],s=S%100;return"["+S+(c[(s-20)%10]||c[s]||c[0])+"]"}},J=function(S,c,s){var m=String(S);return!m||m.length>=c?S:""+Array(c+1-m.length).join(s)+S},G={s:J,z:function(S){var c=-S.utcOffset(),s=Math.abs(c),m=Math.floor(s/60),l=s%60;return(c<=0?"+":"-")+J(m,2,"0")+":"+J(l,2,"0")},m:function S(c,s){if(c.date()<s.date())return-S(s,c);var m=12*(s.year()-c.year())+(s.month()-c.month()),l=c.clone().add(m,g),A=s-l<0,O=c.clone().add(m+(A?-1:1),g);return+(-(m+(s-l)/(A?l-O:O-l))||0)},a:function(S){return S<0?Math.ceil(S)||0:Math.floor(S)},p:function(S){return{M:g,y:T,w:R,d:_,D:w,h,m:f,s:u,ms:d,Q:y}[S]||String(S||"").toLowerCase().replace(/s$/,"")},u:function(S){return S===void 0}},C="en",E={};E[C]=D;var K="$isDayjsObject",z=function(S){return S instanceof Y||!(!S||!S[K])},U=function S(c,s,m){var l;if(!c)return C;if(typeof c=="string"){var A=c.toLowerCase();E[A]&&(l=A),s&&(E[A]=s,l=A);var O=c.split("-");if(!l&&O.length>1)return S(O[0])}else{var v=c.name;E[v]=c,l=v}return!m&&l&&(C=l),l||!m&&C},B=function(S,c){if(z(S))return S.clone();var s=typeof c=="object"?c:{};return s.date=S,s.args=arguments,new Y(s)},P=G;P.l=U,P.i=z,P.w=function(S,c){return B(S,{locale:c.$L,utc:c.$u,x:c.$x,$offset:c.$offset})};var Y=(function(){function S(s){this.$L=U(s.locale,null,!0),this.parse(s),this.$x=this.$x||s.x||{},this[K]=!0}var c=S.prototype;return c.parse=function(s){this.$d=(function(m){var l=m.date,A=m.utc;if(l===null)return new Date(NaN);if(P.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var O=l.match(k);if(O){var v=O[2]-1||0,L=(O[7]||"0").substring(0,3);return A?new Date(Date.UTC(O[1],v,O[3]||1,O[4]||0,O[5]||0,O[6]||0,L)):new Date(O[1],v,O[3]||1,O[4]||0,O[5]||0,O[6]||0,L)}}return new Date(l)})(s),this.init()},c.init=function(){var s=this.$d;this.$y=s.getFullYear(),this.$M=s.getMonth(),this.$D=s.getDate(),this.$W=s.getDay(),this.$H=s.getHours(),this.$m=s.getMinutes(),this.$s=s.getSeconds(),this.$ms=s.getMilliseconds()},c.$utils=function(){return P},c.isValid=function(){return this.$d.toString()!==p},c.isSame=function(s,m){var l=B(s);return this.startOf(m)<=l&&l<=this.endOf(m)},c.isAfter=function(s,m){return B(s)<this.startOf(m)},c.isBefore=function(s,m){return this.endOf(m)<B(s)},c.$g=function(s,m,l){return P.u(s)?this[m]:this.set(l,s)},c.unix=function(){return Math.floor(this.valueOf()/1e3)},c.valueOf=function(){return this.$d.getTime()},c.startOf=function(s,m){var l=this,A=!!P.u(m)||m,O=P.p(s),v=function(de,W){var ie=P.w(l.$u?Date.UTC(l.$y,W,de):new Date(l.$y,W,de),l);return A?ie:ie.endOf(_)},L=function(de,W){return P.w(l.toDate()[de].apply(l.toDate("s"),(A?[0,0,0,0]:[23,59,59,999]).slice(W)),l)},$=this.$W,I=this.$M,q=this.$D,pe="set"+(this.$u?"UTC":"");switch(O){case T:return A?v(1,0):v(31,11);case g:return A?v(1,I):v(0,I+1);case R:var se=this.$locale().weekStart||0,he=($<se?$+7:$)-se;return v(A?q-he:q+(6-he),I);case _:case w:return L(pe+"Hours",0);case h:return L(pe+"Minutes",1);case f:return L(pe+"Seconds",2);case u:return L(pe+"Milliseconds",3);default:return this.clone()}},c.endOf=function(s){return this.startOf(s,!1)},c.$set=function(s,m){var l,A=P.p(s),O="set"+(this.$u?"UTC":""),v=(l={},l[_]=O+"Date",l[w]=O+"Date",l[g]=O+"Month",l[T]=O+"FullYear",l[h]=O+"Hours",l[f]=O+"Minutes",l[u]=O+"Seconds",l[d]=O+"Milliseconds",l)[A],L=A===_?this.$D+(m-this.$W):m;if(A===g||A===T){var $=this.clone().set(w,1);$.$d[v](L),$.init(),this.$d=$.set(w,Math.min(this.$D,$.daysInMonth())).$d}else v&&this.$d[v](L);return this.init(),this},c.set=function(s,m){return this.clone().$set(s,m)},c.get=function(s){return this[P.p(s)]()},c.add=function(s,m){var l,A=this;s=Number(s);var O=P.p(m),v=function(I){var q=B(A);return P.w(q.date(q.date()+Math.round(I*s)),A)};if(O===g)return this.set(g,this.$M+s);if(O===T)return this.set(T,this.$y+s);if(O===_)return v(1);if(O===R)return v(7);var L=(l={},l[f]=n,l[h]=a,l[u]=r,l)[O]||1,$=this.$d.getTime()+s*L;return P.w($,this)},c.subtract=function(s,m){return this.add(-1*s,m)},c.format=function(s){var m=this,l=this.$locale();if(!this.isValid())return l.invalidDate||p;var A=s||"YYYY-MM-DDTHH:mm:ssZ",O=P.z(this),v=this.$H,L=this.$m,$=this.$M,I=l.weekdays,q=l.months,pe=l.meridiem,se=function(W,ie,Oe,Ve){return W&&(W[ie]||W(m,A))||Oe[ie].slice(0,Ve)},he=function(W){return P.s(v%12||12,W,"0")},de=pe||function(W,ie,Oe){var Ve=W<12?"AM":"PM";return Oe?Ve.toLowerCase():Ve};return A.replace(F,(function(W,ie){return ie||(function(Oe){switch(Oe){case"YY":return String(m.$y).slice(-2);case"YYYY":return P.s(m.$y,4,"0");case"M":return $+1;case"MM":return P.s($+1,2,"0");case"MMM":return se(l.monthsShort,$,q,3);case"MMMM":return se(q,$);case"D":return m.$D;case"DD":return P.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return se(l.weekdaysMin,m.$W,I,2);case"ddd":return se(l.weekdaysShort,m.$W,I,3);case"dddd":return I[m.$W];case"H":return String(v);case"HH":return P.s(v,2,"0");case"h":return he(1);case"hh":return he(2);case"a":return de(v,L,!0);case"A":return de(v,L,!1);case"m":return String(L);case"mm":return P.s(L,2,"0");case"s":return String(m.$s);case"ss":return P.s(m.$s,2,"0");case"SSS":return P.s(m.$ms,3,"0");case"Z":return O}return null})(W)||O.replace(":","")}))},c.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},c.diff=function(s,m,l){var A,O=this,v=P.p(m),L=B(s),$=(L.utcOffset()-this.utcOffset())*n,I=this-L,q=function(){return P.m(O,L)};switch(v){case T:A=q()/12;break;case g:A=q();break;case y:A=q()/3;break;case R:A=(I-$)/6048e5;break;case _:A=(I-$)/864e5;break;case h:A=I/a;break;case f:A=I/n;break;case u:A=I/r;break;default:A=I}return l?A:P.a(A)},c.daysInMonth=function(){return this.endOf(g).$D},c.$locale=function(){return E[this.$L]},c.locale=function(s,m){if(!s)return this.$L;var l=this.clone(),A=U(s,m,!0);return A&&(l.$L=A),l},c.clone=function(){return P.w(this.$d,this)},c.toDate=function(){return new Date(this.valueOf())},c.toJSON=function(){return this.isValid()?this.toISOString():null},c.toISOString=function(){return this.$d.toISOString()},c.toString=function(){return this.$d.toUTCString()},S})(),Ke=Y.prototype;return B.prototype=Ke,[["$ms",d],["$s",u],["$m",f],["$H",h],["$W",_],["$M",g],["$y",T],["$D",w]].forEach((function(S){Ke[S[1]]=function(c){return this.$g(c,S[0],S[1])}})),B.extend=function(S,c){return S.$i||(S(c,Y,B),S.$i=!0),B},B.locale=U,B.isDayjs=z,B.unix=function(S){return B(1e3*S)},B.en=E[C],B.Ls=E,B.p={},B}))})(Re)),Re.exports}var go=Ft();const Q=Z(go);var Te={exports:{}},Ao=Te.exports,Ht;function _o(){return Ht||(Ht=1,(function(e,t){(function(r,n){e.exports=n()})(Ao,(function(){return function(r,n){var a=n.prototype,d=a.format;a.format=function(u){var f=this,h=this.$locale();if(!this.isValid())return d.bind(this)(u);var _=this.$utils(),R=(u||"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(g){switch(g){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return h.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return h.ordinal(f.week(),"W");case"w":case"ww":return _.s(f.week(),g==="w"?1:2,"0");case"W":case"WW":return _.s(f.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return _.s(String(f.$H===0?24:f.$H),g==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return g}}));return d.bind(this)(R)}}}))})(Te)),Te.exports}var So=_o();const Ro=Z(So);var we={exports:{}},To=we.exports,bt;function wo(){return bt||(bt=1,(function(e,t){(function(r,n){e.exports=n()})(To,(function(){return function(r,n,a){n.prototype.isBetween=function(d,u,f,h){var _=a(d),R=a(u),g=(h=h||"()")[0]==="(",y=h[1]===")";return(g?this.isAfter(_,f):!this.isBefore(_,f))&&(y?this.isBefore(R,f):!this.isAfter(R,f))||(g?this.isBefore(_,f):!this.isAfter(_,f))&&(y?this.isAfter(R,f):!this.isBefore(R,f))}}}))})(we)),we.exports}var ko=wo();const No=Z(ko);var ke={exports:{}},Mo=ke.exports,Et;function Co(){return Et||(Et=1,(function(e,t){(function(r,n){e.exports=n()})(Mo,(function(){return function(r,n){n.prototype.isSameOrAfter=function(a,d){return this.isSame(a,d)||this.isAfter(a,d)}}}))})(ke)),ke.exports}var Po=Co();const Io=Z(Po);var Ne={exports:{}},Jo=Ne.exports,Bt;function vo(){return Bt||(Bt=1,(function(e,t){(function(r,n){e.exports=n()})(Jo,(function(){return function(r,n){n.prototype.isSameOrBefore=function(a,d){return this.isSame(a,d)||this.isBefore(a,d)}}}))})(Ne)),Ne.exports}var Do=vo();const Fo=Z(Do);var Me={exports:{}},Ho=Me.exports,Lt;function bo(){return Lt||(Lt=1,(function(e,t){(function(r,n){e.exports=n()})(Ho,(function(){return function(r,n,a){var d=n.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},f=function(g,y,T,w,p){var k=g.name?g:g.$locale(),F=u(k[y]),D=u(k[T]),J=F||D.map((function(C){return C.slice(0,w)}));if(!p)return J;var G=k.weekStart;return J.map((function(C,E){return J[(E+(G||0))%7]}))},h=function(){return a.Ls[a.locale()]},_=function(g,y){return g.formats[y]||(function(T){return T.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(w,p,k){return p||k.slice(1)}))})(g.formats[y.toUpperCase()])},R=function(){var g=this;return{months:function(y){return y?y.format("MMMM"):f(g,"months")},monthsShort:function(y){return y?y.format("MMM"):f(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):f(g,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):f(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):f(g,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return _(g.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};d.localeData=function(){return R.bind(this)()},a.localeData=function(){var g=h();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(y){return _(g,y)},meridiem:g.meridiem,ordinal:g.ordinal}},a.months=function(){return f(h(),"months")},a.monthsShort=function(){return f(h(),"monthsShort","months",3)},a.weekdays=function(g){return f(h(),"weekdays",null,null,g)},a.weekdaysShort=function(g){return f(h(),"weekdaysShort","weekdays",3,g)},a.weekdaysMin=function(g){return f(h(),"weekdaysMin","weekdays",2,g)}}}))})(Me)),Me.exports}var Eo=bo();const Bo=Z(Eo);var Ce={exports:{}},Lo=Ce.exports,Gt;function Go(){return Gt||(Gt=1,(function(e,t){(function(r,n){e.exports=n()})(Lo,(function(){var r={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(n,a,d){var u=a.prototype,f=u.format;d.en.formats=r,u.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,R=(function(g,y){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(T,w,p){var k=p&&p.toUpperCase();return w||y[p]||r[p]||y[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(F,D,J){return D||J.slice(1)}))}))})(h,_===void 0?{}:_);return f.call(this,R)}}}))})(Ce)),Ce.exports}var Uo=Go();const $o=Z(Uo);var Pe={exports:{}},qo=Pe.exports,Ut;function Ko(){return Ut||(Ut=1,(function(e,t){(function(r,n){e.exports=n()})(qo,(function(){return function(r,n,a){var d=function(u,f){if(!f||!f.length||f.length===1&&!f[0]||f.length===1&&Array.isArray(f[0])&&!f[0].length)return null;var h;f.length===1&&f[0].length>0&&(f=f[0]),h=(f=f.filter((function(R){return R})))[0];for(var _=1;_<f.length;_+=1)f[_].isValid()&&!f[_][u](h)||(h=f[_]);return h};a.max=function(){var u=[].slice.call(arguments,0);return d("isAfter",u)},a.min=function(){var u=[].slice.call(arguments,0);return d("isBefore",u)}}}))})(Pe)),Pe.exports}var Vo=Ko();const zo=Z(Vo);var Ie={exports:{}},Yo=Ie.exports,$t;function Wo(){return $t||($t=1,(function(e,t){(function(r,n){e.exports=n()})(Yo,(function(){return function(r,n,a){r=r||{};var d=n.prototype,u={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 f(_,R,g,y){return d.fromToBase(_,R,g,y)}a.en.relativeTime=u,d.fromToBase=function(_,R,g,y,T){for(var w,p,k,F=g.$locale().relativeTime||u,D=r.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"}],J=D.length,G=0;G<J;G+=1){var C=D[G];C.d&&(w=y?a(_).diff(g,C.d,!0):g.diff(_,C.d,!0));var E=(r.rounding||Math.round)(Math.abs(w));if(k=w>0,E<=C.r||!C.r){E<=1&&G>0&&(C=D[G-1]);var K=F[C.l];T&&(E=T(""+E)),p=typeof K=="string"?K.replace("%d",E):K(E,R,C.l,k);break}}if(R)return p;var z=k?F.future:F.past;return typeof z=="function"?z(p):z.replace("%s",p)},d.to=function(_,R){return f(_,R,this,!0)},d.from=function(_,R){return f(_,R,this)};var h=function(_){return _.$u?a.utc():a()};d.toNow=function(_){return this.to(h(this),_)},d.fromNow=function(_){return this.from(h(this),_)}}}))})(Ie)),Ie.exports}var Zo=Wo();const xo=Z(Zo);var Je={exports:{}},Xo=Je.exports,qt;function Qo(){return qt||(qt=1,(function(e,t){(function(r,n){e.exports=n()})(Xo,(function(){var r={year:0,month:1,day:2,hour:3,minute:4,second:5},n={};return function(a,d,u){var f,h=function(y,T,w){w===void 0&&(w={});var p=new Date(y),k=(function(F,D){D===void 0&&(D={});var J=D.timeZoneName||"short",G=F+"|"+J,C=n[G];return C||(C=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:F,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:J}),n[G]=C),C})(T,w);return k.formatToParts(p)},_=function(y,T){for(var w=h(y,T),p=[],k=0;k<w.length;k+=1){var F=w[k],D=F.type,J=F.value,G=r[D];G>=0&&(p[G]=parseInt(J,10))}var C=p[3],E=C===24?0:C,K=p[0]+"-"+p[1]+"-"+p[2]+" "+E+":"+p[4]+":"+p[5]+":000",z=+y;return(u.utc(K).valueOf()-(z-=z%1e3))/6e4},R=d.prototype;R.tz=function(y,T){y===void 0&&(y=f);var w,p=this.utcOffset(),k=this.toDate(),F=k.toLocaleString("en-US",{timeZone:y}),D=Math.round((k-new Date(F))/1e3/60),J=15*-Math.round(k.getTimezoneOffset()/15)-D;if(!Number(J))w=this.utcOffset(0,T);else if(w=u(F,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(J,!0),T){var G=w.utcOffset();w=w.add(p-G,"minute")}return w.$x.$timezone=y,w},R.offsetName=function(y){var T=this.$x.$timezone||u.tz.guess(),w=h(this.valueOf(),T,{timeZoneName:y}).find((function(p){return p.type.toLowerCase()==="timezonename"}));return w&&w.value};var g=R.startOf;R.startOf=function(y,T){if(!this.$x||!this.$x.$timezone)return g.call(this,y,T);var w=u(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(w,y,T).tz(this.$x.$timezone,!0)},u.tz=function(y,T,w){var p=w&&T,k=w||T||f,F=_(+u(),k);if(typeof y!="string")return u(y).tz(k);var D=(function(E,K,z){var U=E-60*K*1e3,B=_(U,z);if(K===B)return[U,K];var P=_(U-=60*(B-K)*1e3,z);return B===P?[U,B]:[E-60*Math.min(B,P)*1e3,Math.max(B,P)]})(u.utc(y,p).valueOf(),F,k),J=D[0],G=D[1],C=u(J).utcOffset(G);return C.$x.$timezone=k,C},u.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},u.tz.setDefault=function(y){f=y}}}))})(Je)),Je.exports}var jo=Qo();const ea=Z(jo);var ve={exports:{}},ta=ve.exports,Kt;function ia(){return Kt||(Kt=1,(function(e,t){(function(r,n){e.exports=n()})(ta,(function(){var r="minute",n=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(d,u,f){var h=u.prototype;f.utc=function(p){var k={date:p,utc:!0,args:arguments};return new u(k)},h.utc=function(p){var k=f(this.toDate(),{locale:this.$L,utc:!0});return p?k.add(this.utcOffset(),r):k},h.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var _=h.parse;h.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),_.call(this,p)};var R=h.init;h.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else R.call(this)};var g=h.utcOffset;h.utcOffset=function(p,k){var F=this.$utils().u;if(F(p))return this.$u?0:F(this.$offset)?g.call(this):this.$offset;if(typeof p=="string"&&(p=(function(C){C===void 0&&(C="");var E=C.match(n);if(!E)return null;var K=(""+E[0]).match(a)||["-",0,0],z=K[0],U=60*+K[1]+ +K[2];return U===0?0:z==="+"?U:-U})(p),p===null))return this;var D=Math.abs(p)<=16?60*p:p;if(D===0)return this.utc(k);var J=this.clone();if(k)return J.$offset=D,J.$u=!1,J;var G=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(J=this.local().add(D+G,r)).$offset=D,J.$x.$localOffset=G,J};var y=h.format;h.format=function(p){var k=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,k)},h.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var T=h.toDate;h.toDate=function(p){return p==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():T.call(this)};var w=h.diff;h.diff=function(p,k,F){if(p&&this.$u===p.$u)return w.call(this,p,k,F);var D=this.local(),J=f(p).local();return w.call(D,J,k,F)}}}))})(ve)),ve.exports}var na=ia();const ra=Z(na);var De={exports:{}},oa=De.exports,Vt;function aa(){return Vt||(Vt=1,(function(e,t){(function(r,n){e.exports=n(Ft())})(oa,(function(r){function n(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var a=n(r),d={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(u){return""+u+(u===1?"er":"")}};return a.default.locale(d,null,!0),d}))})(De)),De.exports}aa();var Fe={exports:{}},ca=Fe.exports,zt;function sa(){return zt||(zt=1,(function(e,t){(function(r,n){e.exports=n()})(ca,(function(){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(r){var n=["th","st","nd","rd"],a=r%100;return"["+r+(n[(a-20)%10]||n[a]||n[0])+"]"}}}))})(Fe)),Fe.exports}sa(),Q.extend(Ro),Q.extend(No),Q.extend(Io),Q.extend(Fo),Q.extend($o),Q.extend(Bo),Q.extend(zo),Q.extend(xo),Q.extend(ea),Q.extend(ra);function ee(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function He(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(r=>He(r,t));if(ee(e)){const r={};for(const n in e)Object.hasOwn(e,n)&&(r[n]=He(e[n],t));return r}return e}function Ze(e,t,r=new WeakSet){if(!(!ee(t)||!ee(e))&&!(t===e||r.has(t))){r.add(t);for(const n in t)if(Object.hasOwn(t,n)){const a=t[n],d=e[n];ee(a)&&ee(d)?Ze(d,a,r):Array.isArray(a)&&Array.isArray(d)?e[n]=Yt(d,a,r):e[n]=He(a,r)}}}function Yt(e,t,r){const n=e.slice();for(let a=0;a<t.length;a++){const d=t[a],u=n[a];if(ee(d)&&ee(u)){const f={...u};Ze(f,d,r),n[a]=f}else Array.isArray(d)&&Array.isArray(u)?n[a]=Yt(u,d,r):n[a]=He(d,r)}return n}function Wt(e,...t){if(!ee(e))throw new TypeError("Target must be a plain object");const r=new WeakSet;for(const n of t)n!=null&&Ze(e,n,r);return e}const V=[];for(let e=0;e<256;++e)V.push((e+256).toString(16).slice(1));function da(e,t=0){return(V[e[t+0]]+V[e[t+1]]+V[e[t+2]]+V[e[t+3]]+"-"+V[e[t+4]]+V[e[t+5]]+"-"+V[e[t+6]]+V[e[t+7]]+"-"+V[e[t+8]]+V[e[t+9]]+"-"+V[e[t+10]]+V[e[t+11]]+V[e[t+12]]+V[e[t+13]]+V[e[t+14]]+V[e[t+15]]).toLowerCase()}let xe;const ua=new Uint8Array(16);function fa(){if(!xe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");xe=crypto.getRandomValues.bind(crypto)}return xe(ua)}const Zt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function la(e,t,r){e=e||{};const n=e.random??e.rng?.()??fa();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,da(n)}function ma(e,t,r){return Zt.randomUUID&&!e?Zt.randomUUID():la(e)}const pa=1500;class ue{static instance=null;defaultOptions={callCount:1,interval:pa,maxCallCount:20,minCallCount:1};events={complete:()=>{},data:()=>{},error:()=>{}};pollings={};static getInstance(){return ue.instance||(ue.instance=new ue),ue.instance}on(t,r){this.events[t]=r}poll(t,r){const n=this.buildPollerOptions(r);return this.storeCurrentPolling(n),this.isActivePoller(n)&&t().then(a=>this.onRequest(a,t,n)).catch(a=>{this.dispatch("error",a)}),this}stop(t){t&&this.pollings[t]&&delete this.pollings[t]}buildPollerOptions(t){const r=Object.entries(t).reduce((n,[a,d])=>{if(d!==void 0){const u=a;n[u]=d}return n},{});return{...this.defaultOptions,...r}}dispatch(t,r){this.events[t](r)}isActivePoller(t){return t.type?!!this.pollings[t.type]&&this.pollings[t.type]===t.uuid:!0}isInProgress(t){return(t?.meta?.status??"")!=="COMPLETE"}onComplete(t,r){this.dispatch("data",t),this.dispatch("complete",t),this.removeCurrentPolling(r)}async onRequest(t,r,n){const a=N(t??{},M.Camel);this.isActivePoller(n)&&(this.isInProgress(a)&&n.callCount&&n.maxCallCount&&n.callCount<n.maxCallCount||!this.isInProgress(a)&&n.callCount&&n.minCallCount&&n.callCount<n.minCallCount?(this.isInProgress(a)||(a.meta=a.meta||{},a.meta.status="IN_PROGRESS"),n.callCount+=1,this.dispatch("data",a),n.interval&&await this.pause(n),this.poll(r,n)):this.isInProgress(a)?(a.meta=a.meta||{},a.meta.status="COMPLETE",this.onComplete(a,n)):this.onComplete(a,n))}pause(t){return new Promise(r=>{setTimeout(r,t.interval)})}removeCurrentPolling(t){t.type&&this.pollings[t.type]&&delete this.pollings[t.type]}storeCurrentPolling(t){t.type&&!t.uuid&&(t.uuid=ma(),this.pollings[t.type]=t.uuid)}}function xt(e,t,r){const n=ue.getInstance();return n.poll(e,t),r&&typeof r=="function"?(n.on("data",a=>{a instanceof Error?r(a,void 0,n):r(null,a,n)}),n.on("error",a=>{a instanceof Error?r(a):r(null,a)}),n):new Promise((a,d)=>{n.on("error",d),n.on("complete",u=>{u instanceof Error?d(u):a(u)})})}typeof SuppressedError=="function"&&SuppressedError;const Xt="http://localhost".replace(/\/+$/,""),ha=e=>typeof Blob<"u"&&e instanceof Blob;class x{constructor(t=new Xe){this.configuration=t,this.middleware=t.middleware}middleware;withMiddleware(...t){const r=this.clone();return r.middleware=r.middleware.concat(...t),r}withPreMiddleware(...t){const r=t.map(n=>({pre:n}));return this.withMiddleware(...r)}withPostMiddleware(...t){const r=t.map(n=>({post:n}));return this.withMiddleware(...r)}async request(t,r){const{url:n,init:a}=this.createFetchParams(t,r),d=await this.fetchApi(n,a);if(d.status>=200&&d.status<300)return d;throw new Qt(d,"Response returned an error code")}createFetchParams(t,r){let n=this.configuration.basePath+t.path;t.query!==void 0&&Object.keys(t.query).length!==0&&(n+="?"+this.configuration.queryParamsStringify(t.query));const a=typeof FormData<"u"&&t.body instanceof FormData||t.body instanceof URLSearchParams||ha(t.body)?t.body:JSON.stringify(t.body),d=Object.assign({},this.configuration.headers,t.headers);Object.keys(d).forEach(f=>d[f]===void 0?delete d[f]:{});const u={method:t.method,body:a,credentials:this.configuration.credentials,...Wt({},r,{headers:Wt({},d,r?.headers)})};return{url:n,init:u}}fetchApi=async(t,r)=>{let n={url:t,init:r};for(const d of this.middleware)d.pre&&(n=await d.pre({fetch:this.fetchApi,...n})||n);let a=await(this.configuration.fetchApi||fetch)(n.url,n.init);for(const d of this.middleware)d.post&&(a=await d.post({fetch:this.fetchApi,url:n.url,init:n.init,response:a.clone()})||a);return a};clone(){const t=this.constructor,r=new t(this.configuration);return r.middleware=this.middleware.slice(),r}}class Qt extends Error{constructor(t,r){super(r),this.response=t}name="ResponseError"}class H extends Error{constructor(t,r){super(r),this.field=t}name="RequiredError"}const Oa={csv:",",ssv:" ",tsv:" ",pipes:"|"};class Xe{constructor(t={}){this.configuration=t}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:Xt}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Qe}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const t=this.configuration.apiKey;if(t)return typeof t=="function"?t:()=>t}get accessToken(){const t=this.configuration.accessToken;if(t)return typeof t=="function"?t:async()=>t}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}function o(e,t){const r=e[t];return r!=null}function Qe(e,t=""){return Object.keys(e).map(r=>{const n=t+(t.length?`[${r}]`:r),a=e[r];if(a instanceof Array){const d=a.map(u=>encodeURIComponent(String(u))).join(`&${encodeURIComponent(n)}=`);return`${encodeURIComponent(n)}=${d}`}return a instanceof Date?`${encodeURIComponent(n)}=${encodeURIComponent(a.toISOString())}`:a instanceof Object?Qe(a,n):`${encodeURIComponent(n)}=${encodeURIComponent(String(a))}`}).filter(r=>r.length>0).join("&")}function ya(e,t){return Object.keys(e).reduce((r,n)=>({...r,[n]:t(e[n])}),{})}function ga(e){for(const t of e)if(t.contentType==="multipart/form-data")return!0;return!1}class b{constructor(t,r=n=>n){this.raw=t,this.transformer=r}async value(){return this.transformer(await this.raw.json())}}class Aa{constructor(t){this.raw=t}async value(){}}class _a{constructor(t){this.raw=t}async value(){return await this.raw.blob()}}class jt{constructor(t){this.raw=t}async value(){return await this.raw.text()}}const Sa={CreditCard:"CREDIT_CARD"};function ei(e){let t=!0;return t=t&&"name"in e,t}function Ra(e){return je(e)}function je(e,t){return e==null?e:{name:e.name}}function ti(e){if(e!==void 0)return e===null?null:{name:e.name}}const Ta={Coupon:"COUPON"};function ii(e){let t=!0;return t=t&&"name"in e,t}function wa(e){return et(e)}function et(e,t){return e==null?e:{name:e.name}}function ni(e){if(e!==void 0)return e===null?null:{name:e.name}}const ka={DepositAccount:"DEPOSIT_ACCOUNT"};function ri(e){let t=!0;return t=t&&"name"in e,t}function Na(e){return tt(e)}function tt(e,t){return e==null?e:{name:e.name}}function oi(e){if(e!==void 0)return e===null?null:{name:e.name}}const Ma={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Ca(e){let t=!0;return t=t&&"status"in e,t}function ai(e){return ci(e)}function ci(e,t){return e==null?e:{status:e.status}}function si(e){if(e!==void 0)return e===null?null:{status:e.status}}const Pa={PayLater:"PAY_LATER"};function di(e){let t=!0;return t=t&&"name"in e,t=t&&"payload"in e,t}function Ia(e){return it(e)}function it(e,t){return e==null?e:{name:e.name,payload:ai(e.payload)}}function ui(e){if(e!==void 0)return e===null?null:{name:e.name,payload:si(e.payload)}}function fi(e){return li(e)}function li(e,t){return e==null?e:{...je(e),...et(e),...tt(e),...it(e)}}function Ja(e){if(e!==void 0)return e===null?null:ei(e)?ti(e):ii(e)?ni(e):ri(e)?oi(e):di(e)?ui(e):{}}function va(e){return!0}function nt(e){return mi(e)}function mi(e,t){return e==null?e:{airConditioning:o(e,"air_conditioning")?e.air_conditioning:void 0,airportTransportation:o(e,"airport_transportation")?e.airport_transportation:void 0,businessCenter:o(e,"business_center")?e.business_center:void 0,carRentDesk:o(e,"car_rent_desk")?e.car_rent_desk:void 0,childrenAllowed:o(e,"children_allowed")?e.children_allowed:void 0,clothingIron:o(e,"clothing_iron")?e.clothing_iron:void 0,coffeeTeaMaker:o(e,"coffee_tea_maker")?e.coffee_tea_maker:void 0,combination:o(e,"combination")?e.combination:void 0,continentalBreakfast:o(e,"continental_breakfast")?e.continental_breakfast:void 0,dataPorts:o(e,"data_ports")?e.data_ports:void 0,dryCleaning:o(e,"dry_cleaning")?e.dry_cleaning:void 0,electronicRoomKeys:o(e,"electronic_room_keys")?e.electronic_room_keys:void 0,exteriorRoomEntrance:o(e,"exterior_room_entrance")?e.exterior_room_entrance:void 0,familyRooms:o(e,"family_rooms")?e.family_rooms:void 0,fitnessFacility:o(e,"fitness_facility")?e.fitness_facility:void 0,gameRoom:o(e,"game_room")?e.game_room:void 0,golfCourse:o(e,"golf_course")?e.golf_course:void 0,hairDryer:o(e,"hair_dryer")?e.hair_dryer:void 0,handicapAccessible:o(e,"handicap_accessible")?e.handicap_accessible:void 0,inHouseBar:o(e,"in_house_bar")?e.in_house_bar:void 0,inHouseDining:o(e,"in_house_dining")?e.in_house_dining:void 0,inRoomMovies:o(e,"in_room_movies")?e.in_room_movies:void 0,indoorPool:o(e,"indoor_pool")?e.indoor_pool:void 0,interiorRoomEntrance:o(e,"interior_room_entrance")?e.interior_room_entrance:void 0,kitchen:o(e,"kitchen")?e.kitchen:void 0,map:o(e,"map")?e.map:void 0,meetingRooms:o(e,"meeting_rooms")?e.meeting_rooms:void 0,miniBarInRoom:o(e,"mini_bar_in_room")?e.mini_bar_in_room:void 0,nonSmokingRooms:o(e,"non_smoking_rooms")?e.non_smoking_rooms:void 0,outdoorPool:o(e,"outdoor_pool")?e.outdoor_pool:void 0,parkingGarage:o(e,"parking_garage")?e.parking_garage:void 0,petsAllowed:o(e,"pets_allowed")?e.pets_allowed:void 0,restrictedAccess:o(e,"restricted_access")?e.restricted_access:void 0,roomService:o(e,"room_service")?e.room_service:void 0,safe:o(e,"safe")?e.safe:void 0,sauna:o(e,"sauna")?e.sauna:void 0,tVInRoom:o(e,"t_v_in_room")?e.t_v_in_room:void 0,tennisCourt:o(e,"tennis_court")?e.tennis_court:void 0,twentyFourHourSecurity:o(e,"twenty_four_hour_security")?e.twenty_four_hour_security:void 0,valetParking:o(e,"valet_parking")?e.valet_parking:void 0,videoCheckOut:o(e,"video_check_out")?e.video_check_out:void 0,voiceMail:o(e,"voice_mail")?e.voice_mail:void 0,wakeUpService:o(e,"wake_up_service")?e.wake_up_service:void 0,whirpool:o(e,"whirpool")?e.whirpool:void 0}}function rt(e){if(e!==void 0)return e===null?null:{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 Da(e){let t=!0;return t=t&&"count"in e,t=t&&"name"in e,t=t&&"occupancy"in e,t}function Fa(e){return pi(e)}function pi(e,t){return e==null?e:{count:e.count,name:e.name,occupancy:e.occupancy}}function Ha(e){if(e!==void 0)return e===null?null:{count:e.count,name:e.name,occupancy:e.occupancy}}function ba(e){let t=!0;return t=t&&"dateFrom"in e,t=t&&"dateTo"in e,t=t&&"penaltyPercentage"in e,t}function be(e){return hi(e)}function hi(e,t){return e==null?e:{dateFrom:e.date_from,dateTo:e.date_to,penaltyPercentage:e.penalty_percentage}}function Ee(e){if(e!==void 0)return e===null?null:{date_from:e.dateFrom,date_to:e.dateTo,penalty_percentage:e.penaltyPercentage}}const Ea={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 Be(e){return Oi(e)}function Oi(e,t){return e}function Ba(e){return e}function La(e){let t=!0;return t=t&&"address"in e,t=t&&"city"in e,t=t&&"country"in e,t=t&&"name"in e,t=t&&"zipCode"in e,t}function yi(e){return gi(e)}function gi(e,t){return e==null?e:{address:e.address,city:e.city,country:Be(e.country),name:e.name,state:o(e,"state")?e.state:void 0,vatNumber:o(e,"vat_number")?e.vat_number:void 0,zipCode:e.zip_code}}function Ai(e){if(e!==void 0)return e===null?null:{address:e.address,city:e.city,country:e.country,name:e.name,state:e.state,vat_number:e.vatNumber,zip_code:e.zipCode}}const Ga={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};function Le(e){return _i(e)}function _i(e,t){return e}function Ua(e){return e}const $a={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"};function qa(e){let t=!0;return t=t&&"email"in e,t=t&&"firstName"in e,t=t&&"lastName"in e,t=t&&"nationality"in e,t=t&&"phone"in e,t}function ot(e){return Si(e)}function Si(e,t){return e==null?e:{address:o(e,"address")?e.address:void 0,city:o(e,"city")?e.city:void 0,country:o(e,"country")?Be(e.country):void 0,email:e.email,firstName:e.first_name,lang:o(e,"lang")?Le(e.lang):void 0,lastName:e.last_name,nationality:Be(e.nationality),organization:o(e,"organization")?yi(e.organization):void 0,phone:e.phone,remarks:o(e,"remarks")?e.remarks:void 0,salutation:o(e,"salutation")?e.salutation:void 0,state:o(e,"state")?e.state:void 0,zipCode:o(e,"zip_code")?e.zip_code:void 0}}function at(e){if(e!==void 0)return e===null?null:{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:Ai(e.organization),phone:e.phone,remarks:e.remarks,salutation:e.salutation,state:e.state,zip_code:e.zipCode}}const Ka={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",Tnd:"TND",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 j(e){return Ri(e)}function Ri(e,t){return e}function Va(e){return e}function za(e){return!0}function Ti(e){return wi(e)}function wi(e,t){return e==null?e:{name:o(e,"name")?e.name:void 0,slug:o(e,"slug")?e.slug:void 0}}function ki(e){if(e!==void 0)return e===null?null:{name:e.name,slug:e.slug}}function Ya(e){let t=!0;return t=t&&"isHeroImage"in e,t=t&&"l"in e,t=t&&"m"in e,t=t&&"s"in e,t=t&&"xl"in e,t=t&&"xs"in e,t}function oe(e){return Ni(e)}function Ni(e,t){return e==null?e:{caption:o(e,"caption")?e.caption:void 0,isHeroImage:e.is_hero_image,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function fe(e){if(e!==void 0)return e===null?null:{caption:e.caption,is_hero_image:e.isHeroImage,l:e.l,m:e.m,s:e.s,xl:e.xl,xs:e.xs}}function Wa(e){let t=!0;return t=t&&"beds"in e,t=t&&"bedsPretty"in e,t=t&&"count"in e,t=t&&"description"in e,t=t&&"id"in e,t=t&&"occupancy"in e,t}function Mi(e){return Ci(e)}function Ci(e,t){return e==null?e:{amenities:o(e,"amenities")?e.amenities:void 0,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:o(e,"highres_images")?e.highres_images:void 0,id:e.id,imageIndexes:o(e,"image_indexes")?e.image_indexes:void 0,images:o(e,"images")?e.images===null?null:e.images.map(oe):void 0,lowresImages:o(e,"lowres_images")?e.lowres_images:void 0,occupancy:e.occupancy,richDescription:o(e,"rich_description")?e.rich_description:void 0,roomSquareFeet:o(e,"room_square_feet")?e.room_square_feet:void 0,roomSquareMeters:o(e,"room_square_meters")?e.room_square_meters:void 0,thumbImages:o(e,"thumb_images")?e.thumb_images:void 0}}function Pi(e){if(e!==void 0)return e===null?null:{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===void 0?void 0:e.images===null?null:e.images.map(fe),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}}const Za={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 te(e){return Ii(e)}function Ii(e,t){return e}function xa(e){return e}function Xa(e){let t=!0;return t=t&&"name"in e,t}function Ge(e){return Ji(e)}function Ji(e,t){return e==null?e:{bg:o(e,"bg")?e.bg:void 0,color:o(e,"color")?e.color:void 0,description:o(e,"description")?e.description:void 0,faIcon:o(e,"fa_icon")?e.fa_icon:void 0,name:e.name}}function Ue(e){if(e!==void 0)return e===null?null:{bg:e.bg,color:e.color,description:e.description,fa_icon:e.faIcon,name:e.name}}const Qa={Night:"PER_NIGHT",Stay:"PER_STAY"},ja={Adult:"PER_ADULT",Booking:"PER_BOOKING"};function ec(e){let t=!0;return t=t&&"taxFrequency"in e,t=t&&"taxMode"in e,t}function ct(e){return vi(e)}function vi(e,t){return e==null?e:{amount:o(e,"amount")?e.amount:void 0,code:o(e,"code")?e.code:void 0,description:o(e,"description")?e.description:void 0,percentage:o(e,"percentage")?e.percentage:void 0,taxFrequency:e.tax_frequency,taxMode:e.tax_mode}}function st(e){if(e!==void 0)return e===null?null:{amount:e.amount,code:e.code,description:e.description,percentage:e.percentage,tax_frequency:e.taxFrequency,tax_mode:e.taxMode}}const tc={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"},ic={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},nc={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},rc={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"};function oc(e){let t=!0;return t=t&&"breakfastOption"in e,t=t&&"cancellationPolicies"in e,t=t&&"currency"in e,t=t&&"hotelId"in e,t=t&&"hotelRooms"in e,t=t&&"price"in e,t=t&&"sourceMarket"in e,t=t&&"stayTaxesInfo"in e,t=t&&"taxIncludedPrice"in e,t}function ae(e){return Di(e)}function Di(e,t){return e==null?e:{breakfastCount:o(e,"breakfast_count")?e.breakfast_count:void 0,breakfastOption:e.breakfast_option,breakfastPricePerGuestPerNight:o(e,"breakfast_price_per_guest_per_night")?e.breakfast_price_per_guest_per_night:void 0,breakfastUnitPrice:o(e,"breakfast_unit_price")?e.breakfast_unit_price:void 0,cancellationPolicies:e.cancellation_policies.map(be),count:o(e,"count")?e.count:void 0,currency:j(e.currency),hotelId:e.hotel_id,hotelRooms:e.hotel_rooms.map(Mi),id:o(e,"id")?e.id:void 0,packageType:o(e,"package_type")?e.package_type:void 0,price:e.price,sourceMarket:te(e.source_market),stayTaxesInfo:e.stay_taxes_info,tags:o(e,"tags")?e.tags.map(Ge):void 0,taxIncludedPrice:e.tax_included_price,taxes:o(e,"taxes")?e.taxes.map(ct):void 0,type:o(e,"type")?e.type:void 0}}function ce(e){if(e!==void 0)return e===null?null:{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(Ee),count:e.count,currency:e.currency,hotel_id:e.hotelId,hotel_rooms:e.hotelRooms.map(Pi),id:e.id,package_type:e.packageType,price:e.price,source_market:e.sourceMarket,stay_taxes_info:e.stayTaxesInfo,tags:e.tags===void 0?void 0:e.tags.map(Ue),tax_included_price:e.taxIncludedPrice,taxes:e.taxes===void 0?void 0:e.taxes.map(st),type:e.type}}function ac(e){let t=!0;return t=t&&"beds"in e,t=t&&"bedsPretty"in e,t=t&&"count"in e,t=t&&"description"in e,t=t&&"id"in e,t=t&&"occupancy"in e,t}function Fi(e){return Hi(e)}function Hi(e,t){return e==null?e:{amenities:o(e,"amenities")?e.amenities:void 0,beds:e.beds,bedsPretty:e.beds_pretty,count:e.count,description:e.description,highresImages:o(e,"highres_images")?e.highres_images:void 0,id:e.id,imageIndexes:o(e,"image_indexes")?e.image_indexes:void 0,images:o(e,"images")?e.images===null?null:e.images.map(oe):void 0,lowresImages:o(e,"lowres_images")?e.lowres_images:void 0,occupancy:e.occupancy,richDescription:o(e,"rich_description")?e.rich_description:void 0,roomSquareFeet:o(e,"room_square_feet")?e.room_square_feet:void 0,roomSquareMeters:o(e,"room_square_meters")?e.room_square_meters:void 0,thumbImages:o(e,"thumb_images")?e.thumb_images:void 0}}function bi(e){if(e!==void 0)return e===null?null:{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===void 0?void 0:e.images===null?null:e.images.map(fe),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 cc(e){let t=!0;return t=t&&"fullname"in e,t=t&&"id"in e,t}function $e(e){return Ei(e)}function Ei(e,t){return e==null?e:{fullname:e.fullname,id:e.id}}function Bi(e){if(e!==void 0)return e===null?null:{fullname:e.fullname,id:e.id}}function sc(e){let t=!0;return t=t&&"hotelRoomId"in e,t=t&&"hotelRoomingListGuests"in e,t=t&&"id"in e,t}function dt(e){return Li(e)}function Li(e,t){return e==null?e:{hotelRoom:o(e,"hotel_room")?Fi(e.hotel_room):void 0,hotelRoomId:e.hotel_room_id,hotelRoomingListGuests:e.hotel_rooming_list_guests.map($e),id:e.id,limitDate:o(e,"limit_date")?e.limit_date===null?null:new Date(e.limit_date):void 0}}function Gi(e){if(e!==void 0)return e===null?null:{hotel_room:bi(e.hotelRoom),hotel_room_id:e.hotelRoomId,hotel_rooming_list_guests:e.hotelRoomingListGuests.map(Bi),id:e.id,limit_date:e.limitDate===void 0?void 0:e.limitDate===null?null:e.limitDate.toISOString()}}const dc={CreditNote:"credit_note",Invoice:"invoice"};function uc(e){let t=!0;return t=t&&"type"in e,t=t&&"url"in e,t}function Ui(e){return $i(e)}function $i(e,t){return e==null?e:{type:e.type,url:e.url}}function qi(e){if(e!==void 0)return e===null?null:{type:e.type,url:e.url}}function fc(e){let t=!0;return t=t&&"amount"in e,t=t&&"token"in e,t}function Ki(e){return Vi(e)}function Vi(e,t){return e==null?e:{amount:e.amount,couponId:o(e,"coupon_id")?e.coupon_id:void 0,token:e.token}}function zi(e){if(e!==void 0)return e===null?null:{amount:e.amount,coupon_id:e.couponId,token:e.token}}const lc={CreditCard:"CREDIT_CARD"};function Yi(e){let t=!0;return t=t&&"name"in e,t=t&&"payload"in e,t}function mc(e){return ut(e)}function ut(e,t){return e==null?e:{name:e.name,payload:Ki(e.payload)}}function Wi(e){if(e!==void 0)return e===null?null:{name:e.name,payload:zi(e.payload)}}function pc(e){let t=!0;return t=t&&"amount"in e,t=t&&"couponId"in e,t}function Zi(e){return xi(e)}function xi(e,t){return e==null?e:{amount:e.amount,couponId:e.coupon_id}}function Xi(e){if(e!==void 0)return e===null?null:{amount:e.amount,coupon_id:e.couponId}}const hc={Coupon:"COUPON"};function Qi(e){let t=!0;return t=t&&"name"in e,t=t&&"payload"in e,t}function Oc(e){return ft(e)}function ft(e,t){return e==null?e:{name:e.name,payload:Zi(e.payload)}}function ji(e){if(e!==void 0)return e===null?null:{name:e.name,payload:Xi(e.payload)}}function yc(e){let t=!0;return t=t&&"amount"in e,t}function en(e){return tn(e)}function tn(e,t){return e==null?e:{amount:e.amount,couponId:o(e,"coupon_id")?e.coupon_id:void 0}}function nn(e){if(e!==void 0)return e===null?null:{amount:e.amount,coupon_id:e.couponId}}const gc={DepositAccount:"DEPOSIT_ACCOUNT"};function rn(e){let t=!0;return t=t&&"name"in e,t=t&&"payload"in e,t}function Ac(e){return lt(e)}function lt(e,t){return e==null?e:{name:e.name,payload:en(e.payload)}}function on(e){if(e!==void 0)return e===null?null:{name:e.name,payload:nn(e.payload)}}const _c={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"};function Sc(e){let t=!0;return t=t&&"amount"in e,t=t&&"status"in e,t}function an(e){return cn(e)}function cn(e,t){return e==null?e:{amount:e.amount,couponId:o(e,"coupon_id")?e.coupon_id:void 0,status:e.status}}function sn(e){if(e!==void 0)return e===null?null:{amount:e.amount,coupon_id:e.couponId,status:e.status}}const Rc={PayLater:"PAY_LATER"};function dn(e){let t=!0;return t=t&&"name"in e,t=t&&"payload"in e,t}function Tc(e){return mt(e)}function mt(e,t){return e==null?e:{name:e.name,payload:an(e.payload)}}function un(e){if(e!==void 0)return e===null?null:{name:e.name,payload:sn(e.payload)}}function fn(e){return ln(e)}function ln(e,t){return e==null?e:{...ut(e),...ft(e),...lt(e),...mt(e)}}function mn(e){if(e!==void 0)return e===null?null:Yi(e)?Wi(e):Qi(e)?ji(e):rn(e)?on(e):dn(e)?un(e):{}}const wc={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},kc={Cx:"bkg-cx",Cf:"bkg-cf",Created:"bkg-created",Af:"bkg-af",Ip:"bkg-ip",Pc:"bkg-pc",Pp:"bkg-pp",Qr:"bkg-qr"};function Nc(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"cancellationPolicies"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"contactPerson"in e,t=t&&"createdAt"in e,t=t&&"currency"in e,t=t&&"hotelId"in e,t=t&&"hotelRoomOffer"in e,t=t&&"lastStatusUpdatedAt"in e,t=t&&"reference"in e,t=t&&"sourceMarket"in e,t=t&&"status"in e,t=t&&"taxAmount"in e,t=t&&"taxIncludedPrice"in e,t=t&&"terms"in e,t}function X(e){return pn(e)}function pn(e,t){return e==null?e:{additionalCheckInInstruction:o(e,"additional_check_in_instruction")?e.additional_check_in_instruction:void 0,additionalPolicies:o(e,"additional_policies")?e.additional_policies:void 0,adultCount:e.adult_count,canceledAt:o(e,"canceled_at")?e.canceled_at:void 0,cancellationPolicies:e.cancellation_policies.map(be),cancellationPolicyRemarks:o(e,"cancellation_policy_remarks")?e.cancellation_policy_remarks:void 0,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,confirmedAt:o(e,"confirmed_at")?e.confirmed_at:void 0,contactPerson:ot(e.contact_person),createdAt:e.created_at,currency:j(e.currency),customerReference:o(e,"customer_reference")?e.customer_reference:void 0,event:o(e,"event")?Ti(e.event):void 0,failedAt:o(e,"failed_at")?e.failed_at:void 0,hotelConfirmationId:o(e,"hotel_confirmation_id")?e.hotel_confirmation_id:void 0,hotelId:e.hotel_id,hotelRoomOffer:ae(e.hotel_room_offer),hotelRoomingLists:o(e,"hotel_rooming_lists")?e.hotel_rooming_lists.map(dt):void 0,id:o(e,"id")?e.id:void 0,invoices:o(e,"invoices")?e.invoices===null?null:e.invoices.map(Ui):void 0,lastStatusUpdatedAt:e.last_status_updated_at,metadata:o(e,"metadata")?e.metadata:void 0,payLater:o(e,"pay_later")?e.pay_later:void 0,paymentMethods:o(e,"payment_methods")?e.payment_methods.map(fn):void 0,penaltyPercentage:o(e,"penalty_percentage")?e.penalty_percentage:void 0,reference:e.reference,sourceMarket:te(e.source_market),status:e.status,taxAmount:e.tax_amount,taxIncludedPrice:e.tax_included_price,taxes:o(e,"taxes")?e.taxes===null?null:e.taxes.map(ct):void 0,terms:e.terms,token:o(e,"token")?e.token:void 0}}function hn(e){if(e!==void 0)return e===null?null:{additional_check_in_instruction:e.additionalCheckInInstruction,additional_policies:e.additionalPolicies,adult_count:e.adultCount,canceled_at:e.canceledAt,cancellation_policies:e.cancellationPolicies.map(Ee),cancellation_policy_remarks:e.cancellationPolicyRemarks,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,confirmed_at:e.confirmedAt,contact_person:at(e.contactPerson),created_at:e.createdAt,currency:e.currency,customer_reference:e.customerReference,event:ki(e.event),failed_at:e.failedAt,hotel_confirmation_id:e.hotelConfirmationId,hotel_id:e.hotelId,hotel_room_offer:ce(e.hotelRoomOffer),hotel_rooming_lists:e.hotelRoomingLists===void 0?void 0:e.hotelRoomingLists.map(Gi),id:e.id,invoices:e.invoices===void 0?void 0:e.invoices===null?null:e.invoices.map(qi),last_status_updated_at:e.lastStatusUpdatedAt,metadata:e.metadata,pay_later:e.payLater,payment_methods:e.paymentMethods===void 0?void 0:e.paymentMethods.map(mn),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===void 0?void 0:e.taxes===null?null:e.taxes.map(st),terms:e.terms,token:e.token}}function Mc(e){let t=!0;return t=t&&"fullname"in e,t}function On(e){return yn(e)}function yn(e,t){return e==null?e:{fullname:e.fullname}}function gn(e){if(e!==void 0)return e===null?null:{fullname:e.fullname}}function Cc(e){let t=!0;return t=t&&"guests"in e,t=t&&"hotelRoomId"in e,t}function An(e){return _n(e)}function _n(e,t){return e==null?e:{guests:e.guests.map(On),hotelRoomId:e.hotel_room_id}}function Sn(e){if(e!==void 0)return e===null?null:{guests:e.guests.map(gn),hotel_room_id:e.hotelRoomId}}function Pc(e){return!0}function Rn(e){return Tn(e)}function Tn(e,t){return e==null?e:{couponId:o(e,"coupon_id")?e.coupon_id:void 0}}function wn(e){if(e!==void 0)return e===null?null:{coupon_id:e.couponId}}const Ic={Coupon:"COUPON",CreditCard:"CREDIT_CARD",DepositAccount:"DEPOSIT_ACCOUNT"};function Jc(e){let t=!0;return t=t&&"name"in e,t}function pt(e){return kn(e)}function kn(e,t){return e==null?e:{name:e.name,payload:o(e,"payload")?Rn(e.payload):void 0}}function ht(e){if(e!==void 0)return e===null?null:{name:e.name,payload:wn(e.payload)}}function vc(e){let t=!0;return t=t&&"bookingPolicyId"in e,t=t&&"contactPerson"in e,t}function Dc(e){return Nn(e)}function Nn(e,t){return e==null?e:{bookingPolicyId:e.booking_policy_id,contactPerson:ot(e.contact_person),guestsList:o(e,"guests_list")?e.guests_list.map(An):void 0,metadata:o(e,"metadata")?e.metadata:void 0,paymentMethods:o(e,"payment_methods")?e.payment_methods.map(pt):void 0,trackingId:o(e,"tracking_id")?e.tracking_id:void 0}}function Mn(e){if(e!==void 0)return e===null?null:{booking_policy_id:e.bookingPolicyId,contact_person:at(e.contactPerson),guests_list:e.guestsList===void 0?void 0:e.guestsList.map(Sn),metadata:e.metadata,payment_methods:e.paymentMethods===void 0?void 0:e.paymentMethods.map(ht),tracking_id:e.trackingId}}function Fc(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"cancellationPolicies"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"currency"in e,t=t&&"expiresAt"in e,t=t&&"hasRoomingLists"in e,t=t&&"hotelId"in e,t=t&&"hotelRoomOffer"in e,t=t&&"id"in e,t=t&&"isPriceIncreased"in e,t}function Ot(e){return Cn(e)}function Cn(e,t){return e==null?e:{adultCount:e.adult_count,cancellationPolicies:e.cancellation_policies.map(be),checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,currency:j(e.currency),expiresAt:e.expires_at===null?null:new Date(e.expires_at),hasRoomingLists:e.has_rooming_lists,hotelId:e.hotel_id,hotelRoomOffer:ae(e.hotel_room_offer),id:e.id,isPriceIncreased:e.is_price_increased}}function Hc(e){if(e!==void 0)return e===null?null:{adult_count:e.adultCount,cancellation_policies:e.cancellationPolicies.map(Ee),check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,currency:e.currency,expires_at:e.expiresAt===null?null:e.expiresAt.toISOString(),has_rooming_lists:e.hasRoomingLists,hotel_id:e.hotelId,hotel_room_offer:ce(e.hotelRoomOffer),id:e.id,is_price_increased:e.isPriceIncreased}}function bc(e){let t=!0;return t=t&&"hotelRoomOfferId"in e,t}function Ec(e){return Pn(e)}function Pn(e,t){return e==null?e:{addBreakfast:o(e,"add_breakfast")?e.add_breakfast:void 0,breakfastCount:o(e,"breakfast_count")?e.breakfast_count:void 0,hotelRoomOfferId:e.hotel_room_offer_id,lang:o(e,"lang")?Le(e.lang):void 0}}function In(e){if(e!==void 0)return e===null?null:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,hotel_room_offer_id:e.hotelRoomOfferId,lang:e.lang}}function Bc(e){return!0}function Jn(e){return vn(e)}function vn(e,t){return e==null?e:{endingBefore:o(e,"ending_before")?e.ending_before:void 0,limit:o(e,"limit")?e.limit:void 0,startingAfter:o(e,"starting_after")?e.starting_after:void 0,totalCount:o(e,"total_count")?e.total_count:void 0}}function Dn(e){if(e!==void 0)return e===null?null:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount}}function Lc(e){let t=!0;return t=t&&"data"in e,t=t&&"meta"in e,t}function Fn(e){return Hn(e)}function Hn(e,t){return e==null?e:{data:e.data.map(X),meta:Jn(e.meta)}}function Gc(e){if(e!==void 0)return e===null?null:{data:e.data.map(hn),meta:Dn(e.meta)}}const Uc={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 $c(e){let t=!0;return t=t&&"statusCode"in e,t}function qc(e){return bn(e)}function bn(e,t){return e==null?e:{documentationUrl:o(e,"documentation_url")?e.documentation_url:void 0,error:o(e,"error")?e.error:void 0,message:o(e,"message")?e.message:void 0,statusCode:e.statusCode,type:o(e,"type")?e.type:void 0}}function Kc(e){if(e!==void 0)return e===null?null:{documentation_url:e.documentationUrl,error:e.error,message:e.message,statusCode:e.statusCode,type:e.type}}function Vc(e){return!0}function le(e){return En(e)}function En(e,t){return e==null?e:{dateEnd:o(e,"date_end")?e.date_end:void 0,dateStart:o(e,"date_start")?e.date_start:void 0,id:o(e,"id")?e.id:void 0,imageUrl:o(e,"image_url")?e.image_url:void 0,name:o(e,"name")?e.name:void 0,slug:o(e,"slug")?e.slug:void 0}}function me(e){if(e!==void 0)return e===null?null:{date_end:e.dateEnd,date_start:e.dateStart,id:e.id,image_url:e.imageUrl,name:e.name,slug:e.slug}}function zc(e){return!0}function yt(e){return Bn(e)}function Bn(e,t){return e==null?e:{count:o(e,"count")?e.count:void 0,highres:o(e,"highres")?e.highres:void 0,lowres:o(e,"lowres")?e.lowres:void 0,prefix:o(e,"prefix")?e.prefix:void 0,suffix:o(e,"suffix")?e.suffix:void 0,thumb:o(e,"thumb")?e.thumb:void 0}}function gt(e){if(e!==void 0)return e===null?null:{count:e.count,highres:e.highres,lowres:e.lowres,prefix:e.prefix,suffix:e.suffix,thumb:e.thumb}}function Yc(e){let t=!0;return t=t&&"rating"in e,t}function At(e){return Ln(e)}function Ln(e,t){return e==null?e:{category:o(e,"category")?e.category:void 0,rating:e.rating}}function _t(e){if(e!==void 0)return e===null?null:{category:e.category,rating:e.rating}}function Wc(e){return!0}function Gn(e){return Un(e)}function Un(e,t){return e==null?e:{driving:o(e,"driving")?e.driving:void 0,transit:o(e,"transit")?e.transit:void 0,walking:o(e,"walking")?e.walking:void 0}}function $n(e){if(e!==void 0)return e===null?null:{driving:e.driving,transit:e.transit,walking:e.walking}}function Zc(e){let t=!0;return t=t&&"name"in e,t}function St(e){return qn(e)}function qn(e,t){return e==null?e:{description:o(e,"description")?e.description:void 0,name:e.name,travelTimes:o(e,"travel_times")?Gn(e.travel_times):void 0}}function Rt(e){if(e!==void 0)return e===null?null:{description:e.description,name:e.name,travel_times:$n(e.travelTimes)}}function xc(e){let t=!0;return t=t&&"id"in e,t=t&&"latitude"in e,t=t&&"longitude"in e,t=t&&"name"in e,t=t&&"timezone"in e,t}function Kn(e){return Vn(e)}function Vn(e,t){return e==null?e:{address:o(e,"address")?e.address:void 0,address2:o(e,"address2")?e.address2:void 0,amenities:o(e,"amenities")?nt(e.amenities):void 0,checkInTime:o(e,"check_in_time")?e.check_in_time:void 0,checkOutTime:o(e,"check_out_time")?e.check_out_time:void 0,city:o(e,"city")?e.city:void 0,country:o(e,"country")?e.country:void 0,countryCode:o(e,"country_code")?e.country_code:void 0,currency:o(e,"currency")?j(e.currency):void 0,description:o(e,"description")?e.description:void 0,distance:o(e,"distance")?e.distance:void 0,email:o(e,"email")?e.email:void 0,fax:o(e,"fax")?e.fax:void 0,hotelImages:o(e,"hotel_images")?e.hotel_images===null?null:e.hotel_images.map(oe):void 0,hotelReviewRatings:o(e,"hotel_review_ratings")?e.hotel_review_ratings===null?null:e.hotel_review_ratings.map(At):void 0,id:e.id,images:o(e,"images")?yt(e.images):void 0,latitude:e.latitude,longitude:e.longitude,name:e.name,phone:o(e,"phone")?e.phone:void 0,policy:o(e,"policy")?e.policy:void 0,postalCode:o(e,"postal_code")?e.postal_code:void 0,rating:o(e,"rating")?e.rating:void 0,reviewCount:o(e,"review_count")?e.review_count:void 0,state:o(e,"state")?e.state:void 0,taId:o(e,"ta_id")?e.ta_id:void 0,timezone:e.timezone,venues:o(e,"venues")?e.venues.map(St):void 0,website:o(e,"website")?e.website:void 0}}function Xc(e){if(e!==void 0)return e===null?null:{address:e.address,address2:e.address2,amenities:rt(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===void 0?void 0:e.hotelImages===null?null:e.hotelImages.map(fe),hotel_review_ratings:e.hotelReviewRatings===void 0?void 0:e.hotelReviewRatings===null?null:e.hotelReviewRatings.map(_t),id:e.id,images:gt(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===void 0?void 0:e.venues.map(Rt),website:e.website}}function Qc(e){let t=!0;return t=t&&"hotelImages"in e,t=t&&"id"in e,t=t&&"latitude"in e,t=t&&"longitude"in e,t=t&&"name"in e,t=t&&"timezone"in e,t=t&&"hotelRoomOffers"in e,t}function zn(e){return Yn(e)}function Yn(e,t){return e==null?e:{address:o(e,"address")?e.address:void 0,address2:o(e,"address2")?e.address2:void 0,amenities:o(e,"amenities")?nt(e.amenities):void 0,checkInTime:o(e,"check_in_time")?e.check_in_time:void 0,checkOutTime:o(e,"check_out_time")?e.check_out_time:void 0,city:o(e,"city")?e.city:void 0,country:o(e,"country")?e.country:void 0,countryCode:o(e,"country_code")?e.country_code:void 0,currency:o(e,"currency")?j(e.currency):void 0,description:o(e,"description")?e.description:void 0,distance:o(e,"distance")?e.distance:void 0,email:o(e,"email")?e.email:void 0,fax:o(e,"fax")?e.fax:void 0,hotelImages:e.hotel_images.map(oe),hotelReviewRatings:o(e,"hotel_review_ratings")?e.hotel_review_ratings===null?null:e.hotel_review_ratings.map(At):void 0,id:e.id,images:o(e,"images")?yt(e.images):void 0,latitude:e.latitude,longitude:e.longitude,name:e.name,phone:o(e,"phone")?e.phone:void 0,policy:o(e,"policy")?e.policy:void 0,postalCode:o(e,"postal_code")?e.postal_code:void 0,rating:o(e,"rating")?e.rating:void 0,reviewCount:o(e,"review_count")?e.review_count:void 0,state:o(e,"state")?e.state:void 0,taId:o(e,"ta_id")?e.ta_id:void 0,timezone:e.timezone,venues:o(e,"venues")?e.venues.map(St):void 0,website:o(e,"website")?e.website:void 0,hotelRoomOffers:e.hotel_room_offers.map(ae),tags:o(e,"tags")?e.tags.map(Ge):void 0}}function Wn(e){if(e!==void 0)return e===null?null:{address:e.address,address2:e.address2,amenities:rt(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(fe),hotel_review_ratings:e.hotelReviewRatings===void 0?void 0:e.hotelReviewRatings===null?null:e.hotelReviewRatings.map(_t),id:e.id,images:gt(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===void 0?void 0:e.venues.map(Rt),website:e.website,hotel_room_offers:e.hotelRoomOffers.map(ce),tags:e.tags===void 0?void 0:e.tags.map(Ue)}}function jc(e){let t=!0;return t=t&&"hotelImages"in e,t=t&&"hotelRoomOffers"in e,t}function es(e){return Zn(e)}function Zn(e,t){return e==null?e:{hotelImages:e.hotel_images.map(oe),hotelRoomOffers:e.hotel_room_offers.map(ae),tags:o(e,"tags")?e.tags.map(Ge):void 0}}function ts(e){if(e!==void 0)return e===null?null:{hotel_images:e.hotelImages.map(fe),hotel_room_offers:e.hotelRoomOffers.map(ce),tags:e.tags===void 0?void 0:e.tags.map(Ue)}}function is(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"createdAt"in e,t=t&&"id"in e,t=t&&"latitude"in e,t=t&&"longitude"in e,t=t&&"roomCount"in e,t=t&&"sourceMarket"in e,t}function Tt(e){return xn(e)}function xn(e,t){return e==null?e:{address:o(e,"address")?e.address:void 0,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,createdAt:e.created_at,eventMetadata:o(e,"event_metadata")?le(e.event_metadata):void 0,id:e.id,latitude:e.latitude,longitude:e.longitude,roomCount:e.room_count,sourceMarket:te(e.source_market)}}function ns(e){if(e!==void 0)return e===null?null:{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:me(e.eventMetadata),id:e.id,latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}function rs(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"roomCount"in e,t=t&&"sourceMarket"in e,t}function os(e){return Xn(e)}function Xn(e,t){return e==null?e:{address:o(e,"address")?e.address:void 0,adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,eventMetadata:o(e,"event_metadata")?le(e.event_metadata):void 0,latitude:o(e,"latitude")?e.latitude:void 0,longitude:o(e,"longitude")?e.longitude:void 0,roomCount:e.room_count,sourceMarket:te(e.source_market)}}function Qn(e){if(e!==void 0)return e===null?null:{address:e.address,adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:me(e.eventMetadata),latitude:e.latitude,longitude:e.longitude,room_count:e.roomCount,source_market:e.sourceMarket}}const as={Complete:"COMPLETE",InProgress:"IN_PROGRESS"};function qe(e){return jn(e)}function jn(e,t){return e}function cs(e){return e}function ss(e){let t=!0;return t=t&&"totalCount"in e,t=t&&"status"in e,t}function er(e){return tr(e)}function tr(e,t){return e==null?e:{endingBefore:o(e,"ending_before")?e.ending_before:void 0,limit:o(e,"limit")?e.limit:void 0,startingAfter:o(e,"starting_after")?e.starting_after:void 0,totalCount:e.total_count,status:qe(e.status)}}function ir(e){if(e!==void 0)return e===null?null:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function ds(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"currency"in e,t=t&&"hotelOffers"in e,t}function nr(e){return rr(e)}function rr(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,currency:j(e.currency),hotelOffers:e.hotel_offers.map(zn),priceHistogram:o(e,"price_histogram")?e.price_histogram:void 0,priceMax:o(e,"price_max")?e.price_max:void 0,priceMin:o(e,"price_min")?e.price_min:void 0}}function or(e){if(e!==void 0)return e===null?null:{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(Wn),price_histogram:e.priceHistogram,price_max:e.priceMax,price_min:e.priceMin}}function us(e){let t=!0;return t=t&&"data"in e,t=t&&"meta"in e,t}function ar(e){return cr(e)}function cr(e,t){return e==null?e:{data:nr(e.data),event:o(e,"event")?e.event:void 0,meta:er(e.meta)}}function fs(e){if(e!==void 0)return e===null?null:{data:or(e.data),event:e.event,meta:ir(e.meta)}}function ls(e){let t=!0;return t=t&&"totalCount"in e,t}function ms(e){return sr(e)}function sr(e,t){return e==null?e:{totalCount:e.total_count}}function ps(e){if(e!==void 0)return e===null?null:{total_count:e.totalCount}}function hs(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"currency"in e,t=t&&"hotelId"in e,t=t&&"hotelRoomOffer"in e,t}function dr(e){return ur(e)}function ur(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,currency:j(e.currency),hotelId:e.hotel_id,hotelRoomOffer:ae(e.hotel_room_offer)}}function Os(e){if(e!==void 0)return e===null?null:{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:ce(e.hotelRoomOffer)}}function ys(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"hotelId"in e,t=t&&"roomCount"in e,t=t&&"sourceMarket"in e,t=t&&"createdAt"in e,t=t&&"id"in e,t}function wt(e){return fr(e)}function fr(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,eventMetadata:o(e,"event_metadata")?le(e.event_metadata):void 0,hotelId:e.hotel_id,roomCount:e.room_count,sourceMarket:te(e.source_market),createdAt:e.created_at,id:e.id}}function gs(e){if(e!==void 0)return e===null?null:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:me(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,source_market:e.sourceMarket,created_at:e.createdAt,id:e.id}}function As(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"hotelId"in e,t=t&&"roomCount"in e,t=t&&"sourceMarket"in e,t}function _s(e){return lr(e)}function lr(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,eventMetadata:o(e,"event_metadata")?le(e.event_metadata):void 0,hotelId:e.hotel_id,roomCount:e.room_count,sourceMarket:te(e.source_market)}}function Ss(e){if(e!==void 0)return e===null?null:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:me(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,source_market:e.sourceMarket}}function Rs(e){let t=!0;return t=t&&"createdAt"in e,t=t&&"id"in e,t}function Ts(e){return mr(e)}function mr(e,t){return e==null?e:{createdAt:e.created_at,id:e.id}}function ws(e){if(e!==void 0)return e===null?null:{created_at:e.createdAt,id:e.id}}function ks(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"hotelId"in e,t=t&&"roomCount"in e,t=t&&"sourceMarket"in e,t}function Ns(e){return pr(e)}function pr(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,eventMetadata:o(e,"event_metadata")?le(e.event_metadata):void 0,hotelId:e.hotel_id,roomCount:e.room_count,sourceMarket:te(e.source_market)}}function hr(e){if(e!==void 0)return e===null?null:{adult_count:e.adultCount,check_in_date:e.checkInDate,check_out_date:e.checkOutDate,children:e.children,event_metadata:me(e.eventMetadata),hotel_id:e.hotelId,room_count:e.roomCount,source_market:e.sourceMarket}}function Ms(e){let t=!0;return t=t&&"adultCount"in e,t=t&&"checkInDate"in e,t=t&&"checkOutDate"in e,t=t&&"currency"in e,t=t&&"hotelId"in e,t=t&&"hotelRoomOffers"in e,t=t&&"hotelTimezone"in e,t}function Or(e){return yr(e)}function yr(e,t){return e==null?e:{adultCount:e.adult_count,checkInDate:e.check_in_date,checkOutDate:e.check_out_date,children:o(e,"children")?e.children:void 0,currency:j(e.currency),hotelId:e.hotel_id,hotelRoomOffers:e.hotel_room_offers.map(ae),hotelTimezone:e.hotel_timezone}}function gr(e){if(e!==void 0)return e===null?null:{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(ce),hotel_timezone:e.hotelTimezone}}function Cs(e){let t=!0;return t=t&&"status"in e,t}function Ar(e){return _r(e)}function _r(e,t){return e==null?e:{endingBefore:o(e,"ending_before")?e.ending_before:void 0,limit:o(e,"limit")?e.limit:void 0,startingAfter:o(e,"starting_after")?e.starting_after:void 0,totalCount:o(e,"total_count")?e.total_count:void 0,status:qe(e.status)}}function Sr(e){if(e!==void 0)return e===null?null:{ending_before:e.endingBefore,limit:e.limit,starting_after:e.startingAfter,total_count:e.totalCount,status:e.status}}function Ps(e){let t=!0;return t=t&&"data"in e,t=t&&"meta"in e,t}function Rr(e){return Tr(e)}function Tr(e,t){return e==null?e:{data:Or(e.data),event:o(e,"event")?e.event:void 0,meta:Ar(e.meta)}}function Is(e){if(e!==void 0)return e===null?null:{data:gr(e.data),event:e.event,meta:Sr(e.meta)}}function Js(e){let t=!0;return t=t&&"count"in e,t=t&&"hotelRoomOfferId"in e,t}function wr(e){return kr(e)}function kr(e,t){return e==null?e:{breakfastCount:o(e,"breakfast_count")?e.breakfast_count:void 0,count:e.count,hotelRoomOfferId:e.hotel_room_offer_id}}function Nr(e){if(e!==void 0)return e===null?null:{breakfast_count:e.breakfastCount,count:e.count,hotel_room_offer_id:e.hotelRoomOfferId}}function vs(e){let t=!0;return t=t&&"currency"in e,t=t&&"hotelRoomOffers"in e,t}function Ds(e){return Mr(e)}function Mr(e,t){return e==null?e:{addBreakfast:o(e,"add_breakfast")?e.add_breakfast:void 0,breakfastCount:o(e,"breakfast_count")?e.breakfast_count:void 0,currency:j(e.currency),hotelRoomOffers:e.hotel_room_offers.map(wr),lang:o(e,"lang")?Le(e.lang):void 0}}function Cr(e){if(e!==void 0)return e===null?null:{add_breakfast:e.addBreakfast,breakfast_count:e.breakfastCount,currency:e.currency,hotel_room_offers:e.hotelRoomOffers.map(Nr),lang:e.lang}}function Fs(e){let t=!0;return t=t&&"fullname"in e,t=t&&"hotelRoomingListId"in e,t}function Hs(e){return Pr(e)}function Pr(e,t){return e==null?e:{fullname:e.fullname,hotelRoomingListId:e.hotel_rooming_list_id}}function Ir(e){if(e!==void 0)return e===null?null:{fullname:e.fullname,hotel_rooming_list_id:e.hotelRoomingListId}}function bs(e){let t=!0;return t=t&&"fullname"in e,t}function Es(e){return Jr(e)}function Jr(e,t){return e==null?e:{fullname:e.fullname}}function vr(e){if(e!==void 0)return e===null?null:{fullname:e.fullname}}function Bs(e){let t=!0;return t=t&&"status"in e,t}function Ls(e){return Dr(e)}function Dr(e,t){return e==null?e:{status:qe(e.status)}}function Gs(e){if(e!==void 0)return e===null?null:{status:e.status}}function Us(e){let t=!0;return t=t&&"paymentMethods"in e,t}function $s(e){return Fr(e)}function Fr(e,t){return e==null?e:{paymentMethods:e.payment_methods.map(pt)}}function Hr(e){if(e!==void 0)return e===null?null:{payment_methods:e.paymentMethods.map(ht)}}class br extends x{async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>Ot(u)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}async paymentMethodsRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/booking_policies/{id}/payment_methods".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return new b(d,u=>u.map(fi)).value()}async paymentMethods(t,r){return this.paymentMethodsRaw(t,r)}async createRaw(t,r){const n={},a={};a["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/booking_policies",method:"POST",headers:a,query:N(n,M.Snake),body:N(In(t.bookingPoliciesCreateApi),M.Snake)},r);return await new b(d,u=>Ot(u)).value()}async create(t={},r){return this.createRaw(t,r)}}class Er extends x{async deleteRaw(t,r){if(t.token===null||t.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const n={},a={},d=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(t.token))),method:"DELETE",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async delete(t,r){return this.deleteRaw(t,r)}async listRaw(t,r){const n={};t.endingBefore!==void 0&&(n.ending_before=t.endingBefore),t.filterByCheckInDate!==void 0&&(n.filter_by_check_in_date=t.filterByCheckInDate),t.filterByLastStatusUpdatedAt!==void 0&&(n.filter_by_last_status_updated_at=t.filterByLastStatusUpdatedAt),t.filterByMetadata!==void 0&&(n.filter_by_metadata=t.filterByMetadata),t.filterByStatus!==void 0&&(n.filter_by_status=t.filterByStatus),t.limit!==void 0&&(n.limit=t.limit),t.sortBy!==void 0&&(n.sort_by=t.sortBy),t.sortByOrder!==void 0&&(n.sort_by_order=t.sortByOrder),t.startingAfter!==void 0&&(n.starting_after=t.startingAfter);const a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings",method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>Fn(u)).value()}async list(t={},r){return this.listRaw(t,r)}async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}async retrievePublicRaw(t,r){if(t.token===null||t.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const n={},a={},d=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(t.token))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async retrievePublic(t,r){return this.retrievePublicRaw(t,r)}async createRaw(t,r){const n={},a={};a["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings",method:"POST",headers:a,query:N(n,M.Snake),body:N(Mn(t.bookingCreateApi),M.Snake)},r);return await new b(d,u=>X(u)).value()}async create(t={},r){return this.createRaw(t,r)}async couponChargeRaw(t,r){if(t.couponId===null||t.couponId===void 0)throw new H("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(t.couponId))).replace("{id}",encodeURIComponent(String(t.id))),method:"POST",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async couponCharge(t,r){return this.couponChargeRaw(t,r)}async paylaterRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(t.id))),method:"POST",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async paylater(t,r){return this.paylaterRaw(t,r)}async confirmpaylaterRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(t.id))),method:"POST",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async confirmpaylater(t,r){return this.confirmpaylaterRaw(t,r)}async confirmRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(t.id))),method:"POST",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>X(u)).value()}async confirm(t,r){return this.confirmRaw(t,r)}async updatePaymentMethodsRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const n={},a={};a["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(t.id))),method:"PUT",headers:a,query:N(n,M.Snake),body:N(Hr(t.paymentMethodUpdatePayloadApi),M.Snake)},r);return await new b(d,u=>X(u)).value()}async updatePaymentMethods(t,r){return this.updatePaymentMethodsRaw(t,r)}}const qs={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},Ks={Asc:"asc",Desc:"desc"};class Br extends x{async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const n={};t.lang!==void 0&&(n.lang=t.lang);const a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return new b(d,u=>u.map(oe)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}}class Lr extends x{async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>Tt(u)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}async createRaw(t,r){const n={},a={};a["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:a,query:N(n,M.Snake),body:N(Qn(t.hotelOfferRequestCreateApi),M.Snake)},r);return await new b(d,u=>Tt(u)).value()}async create(t={},r){return this.createRaw(t,r)}}class Gr extends x{async listRaw(t,r){if(t.currency===null||t.currency===void 0)throw new H("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(t.hotelOfferRequestId===null||t.hotelOfferRequestId===void 0)throw new H("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const n={};t.currency!==void 0&&(n.currency=t.currency),t.endingBefore!==void 0&&(n.ending_before=t.endingBefore),t.filterByPrice!==void 0&&(n.filter_by_price=t.filterByPrice),t.filterByReviewRating!==void 0&&(n.filter_by_review_rating=t.filterByReviewRating),t.filterByStar!==void 0&&(n.filter_by_star=t.filterByStar),t.hotelOfferRequestId!==void 0&&(n.hotel_offer_request_id=t.hotelOfferRequestId),t.hotelRoomOffersLimit!==void 0&&(n.hotel_room_offers_limit=t.hotelRoomOffersLimit),t.includeHotelContentDetails!==void 0&&(n.include_hotel_content_details=t.includeHotelContentDetails),t.lang!==void 0&&(n.lang=t.lang),t.limit!==void 0&&(n.limit=t.limit),t.onlyRecommendedHotelOffers!==void 0&&(n.only_recommended_hotel_offers=t.onlyRecommendedHotelOffers),t.priceHistogramStepCount!==void 0&&(n.price_histogram_step_count=t.priceHistogramStepCount),t.sortBy!==void 0&&(n.sort_by=t.sortBy),t.sortByOrder!==void 0&&(n.sort_by_order=t.sortByOrder),t.startingAfter!==void 0&&(n.starting_after=t.startingAfter);const a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_offers",method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>ar(u)).value()}async list(t,r,n){return await xt(()=>this.listRaw(t,n),{type:ze.HOTEL_SEARCH_POLLING,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount},r)}}const Vs={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},zs={Asc:"asc",Desc:"desc"};class Ur extends x{async deleteRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(t.token===null||t.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const n={},a={},d=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(t.id))).replace("{token}",encodeURIComponent(String(t.token))),method:"DELETE",headers:a,query:N(n,M.Snake)},r);return new jt(d)}async delete(t,r){return this.deleteRaw(t,r)}async updateRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(t.token===null||t.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const n={},a={};a["Content-Type"]="application/json";const d=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(t.id))).replace("{token}",encodeURIComponent(String(t.token))),method:"PATCH",headers:a,query:N(n,M.Snake),body:N(vr(t.hotelRoomingListGuestsUpdateApi),M.Snake)},r);return await new b(d,u=>$e(u)).value()}async update(t,r){return this.updateRaw(t,r)}async createRaw(t,r){if(t.token===null||t.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const n={},a={};a["Content-Type"]="application/json";const d=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(t.token))),method:"POST",headers:a,query:N(n,M.Snake),body:N(Ir(t.hotelRoomingListGuestsCreateApi),M.Snake)},r);return await new b(d,u=>$e(u)).value()}async create(t,r){return this.createRaw(t,r)}}class $r extends x{async listRaw(t,r){if(t.token===null||t.token===void 0)throw new H("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const n={};t.lang!==void 0&&(n.lang=t.lang);const a={},d=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(t.token))),method:"GET",headers:a,query:N(n,M.Snake)},r);return new b(d,u=>u.map(dt)).value()}async list(t,r){return this.listRaw(t,r)}}class qr extends x{async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOffersIdImages.");const n={};t.lang!==void 0&&(n.lang=t.lang);const a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_room_offers/{id}/images".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>N(u,M.Camel)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}}class Kr extends x{async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const n={},a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>wt(u)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}async createRaw(t,r){const n={},a={};a["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:a,query:N(n,M.Snake),body:N(hr(t.hotelRoomOfferRequestCreateApi),M.Snake)},r);return await new b(d,u=>wt(u)).value()}async create(t={},r){return this.createRaw(t,r)}}class Vr extends x{async listRaw(t,r){if(t.currency===null||t.currency===void 0)throw new H("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(t.hotelRoomOfferRequestId===null||t.hotelRoomOfferRequestId===void 0)throw new H("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const n={};t.currency!==void 0&&(n.currency=t.currency),t.hotelRoomOfferRequestId!==void 0&&(n.hotel_room_offer_request_id=t.hotelRoomOfferRequestId),t.lang!==void 0&&(n.lang=t.lang),t.limit!==void 0&&(n.limit=t.limit);const a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>Rr(u)).value()}async list(t,r,n){return await xt(()=>this.listRaw(t,n),{type:ze.HOTEL_ROOM_OFFERS,minCallCount:n?.minCallCount,maxCallCount:n?.maxCallCount},r)}async createRaw(t,r){const n={},a={};a["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:a,query:N(n,M.Snake),body:N(Cr(t.hotelRoomOffersCreateApi),M.Snake)},r);return await new b(d,u=>dr(u)).value()}async create(t={},r){return this.createRaw(t,r)}}class zr extends x{async retrieveRaw(t,r){if(t.id===null||t.id===void 0)throw new H("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const n={};t.event!==void 0&&(n.event=t.event),t.lang!==void 0&&(n.lang=t.lang);const a={};this.configuration&&this.configuration.apiKey&&(a["x-api-key"]=this.configuration.apiKey("x-api-key"));const d=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(t.id))),method:"GET",headers:a,query:N(n,M.Snake)},r);return await new b(d,u=>Kn(u)).value()}async retrieve(t,r){return this.retrieveRaw(t,r)}}const Yr=e=>({bookingPolicies:new br(e),bookings:new Er(e),hotelImages:new Br(e),hotelOfferRequests:new Lr(e),hotelOffers:new Gr(e),hotelRoomingListGuests:new Ur(e),hotelRoomingLists:new $r(e),hotelRoomOfferImages:new qr(e),hotelRoomOfferRequests:new Kr(e),hotelRoomOffers:new Vr(e),hotels:new zr(e)});function Ys(e){switch(e){case re.CiCd:return"AUTH_TOKEN_CICD";case re.Local:return"AUTH_TOKEN_LOCAL";case re.Production:return"AUTH_TOKEN";case re.Sandbox:return"AUTH_TOKEN_SANDBOX";case re.Staging:return"AUTH_TOKEN_STAGING";default:return"AUTH_TOKEN"}}function Wr(e){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(n=>n.includes(Ys(e))))}class Ws{constructor(t){this.config=t}async pre(t){return t.init.mode="cors",Wr(this.config.apiEnvironment)&&(t.init.credentials="include"),t}}class Zs{constructor(t){this.config=t}async pre(t){return Wr(this.config.apiEnvironment)&&(t.init.headers={...t.init.headers,"x-auth-type":"user"}),t}}class xs{constructor(t){if(this.config=t,!t.apiVersion||!Object.values(ne).includes(t.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(ne))}`);let r={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(r={...r,...this.config.optionalHeaders});const n=this.config.apiEnvironment;let a=this.config.apiBaseUrl??Zr[n];n===re.Local&&process.env.BOOKING_API_BASE_URL&&(a=process.env.BOOKING_API_BASE_URL);const d=new Xe({basePath:a,fetchApi:Qr,headers:r,middleware:[new Ws(this.config),new Zs(this.config)]});this.apiVersionsToClient={v1:Yr(d)}}apiVersionsToClient;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}}i.AllowedPaymentMethodApiFromJSON=fi,i.AllowedPaymentMethodApiFromJSONTyped=li,i.AllowedPaymentMethodApiOneOf1FromJSON=wa,i.AllowedPaymentMethodApiOneOf1FromJSONTyped=et,i.AllowedPaymentMethodApiOneOf1NameEnum=Ta,i.AllowedPaymentMethodApiOneOf1ToJSON=ni,i.AllowedPaymentMethodApiOneOf2FromJSON=Na,i.AllowedPaymentMethodApiOneOf2FromJSONTyped=tt,i.AllowedPaymentMethodApiOneOf2NameEnum=ka,i.AllowedPaymentMethodApiOneOf2ToJSON=oi,i.AllowedPaymentMethodApiOneOf3FromJSON=Ia,i.AllowedPaymentMethodApiOneOf3FromJSONTyped=it,i.AllowedPaymentMethodApiOneOf3NameEnum=Pa,i.AllowedPaymentMethodApiOneOf3PayloadFromJSON=ai,i.AllowedPaymentMethodApiOneOf3PayloadFromJSONTyped=ci,i.AllowedPaymentMethodApiOneOf3PayloadStatusEnum=Ma,i.AllowedPaymentMethodApiOneOf3PayloadToJSON=si,i.AllowedPaymentMethodApiOneOf3ToJSON=ui,i.AllowedPaymentMethodApiOneOfFromJSON=Ra,i.AllowedPaymentMethodApiOneOfFromJSONTyped=je,i.AllowedPaymentMethodApiOneOfNameEnum=Sa,i.AllowedPaymentMethodApiOneOfToJSON=ti,i.AllowedPaymentMethodApiToJSON=Ja,i.AmenitiesApiFromJSON=nt,i.AmenitiesApiFromJSONTyped=mi,i.AmenitiesApiToJSON=rt,i.ApiClient=xs,i.BASE_PATH=Xt,i.BaseAPI=x,i.BedApiFromJSON=Fa,i.BedApiFromJSONTyped=pi,i.BedApiToJSON=Ha,i.BlobApiResponse=_a,i.BookingApiFromJSON=X,i.BookingApiFromJSONTyped=pn,i.BookingApiPayLaterEnum=wc,i.BookingApiStatusEnum=kc,i.BookingApiToJSON=hn,i.BookingCreateApiFromJSON=Dc,i.BookingCreateApiFromJSONTyped=Nn,i.BookingCreateApiGuestsListInnerFromJSON=An,i.BookingCreateApiGuestsListInnerFromJSONTyped=_n,i.BookingCreateApiGuestsListInnerGuestsInnerFromJSON=On,i.BookingCreateApiGuestsListInnerGuestsInnerFromJSONTyped=yn,i.BookingCreateApiGuestsListInnerGuestsInnerToJSON=gn,i.BookingCreateApiGuestsListInnerToJSON=Sn,i.BookingCreateApiToJSON=Mn,i.BookingPolicies=br,i.BookingPoliciesApiFromJSON=Ot,i.BookingPoliciesApiFromJSONTyped=Cn,i.BookingPoliciesApiToJSON=Hc,i.BookingPoliciesCreateApiFromJSON=Ec,i.BookingPoliciesCreateApiFromJSONTyped=Pn,i.BookingPoliciesCreateApiToJSON=In,i.Bookings=Er,i.BookingsApiResponseFromJSON=Fn,i.BookingsApiResponseFromJSONTyped=Hn,i.BookingsApiResponseToJSON=Gc,i.BookingsSortByEnum=qs,i.BookingsSortByOrderEnum=Ks,i.COLLECTION_FORMATS=Oa,i.CancellationPolicyApiFromJSON=be,i.CancellationPolicyApiFromJSONTyped=hi,i.CancellationPolicyApiToJSON=Ee,i.Configuration=Xe,i.ContactPersonApiFromJSON=ot,i.ContactPersonApiFromJSONTyped=Si,i.ContactPersonApiSalutationEnum=$a,i.ContactPersonApiToJSON=at,i.ContactPersonOrganizationApiFromJSON=yi,i.ContactPersonOrganizationApiFromJSONTyped=gi,i.ContactPersonOrganizationApiToJSON=Ai,i.CountryIso2Code=Ea,i.CountryIso2CodeFromJSON=Be,i.CountryIso2CodeFromJSONTyped=Oi,i.CountryIso2CodeToJSON=Ba,i.CurrencyClient=Ka,i.CurrencyClientFromJSON=j,i.CurrencyClientFromJSONTyped=Ri,i.CurrencyClientToJSON=Va,i.ErrorApiResponseFromJSON=qc,i.ErrorApiResponseFromJSONTyped=bn,i.ErrorApiResponseToJSON=Kc,i.ErrorApiResponseTypeEnum=Uc,i.EventApiFromJSON=Ti,i.EventApiFromJSONTyped=wi,i.EventApiToJSON=ki,i.EventMetadataApiFromJSON=le,i.EventMetadataApiFromJSONTyped=En,i.EventMetadataApiToJSON=me,i.HotelApiFromJSON=Kn,i.HotelApiFromJSONTyped=Vn,i.HotelApiImagesFromJSON=yt,i.HotelApiImagesFromJSONTyped=Bn,i.HotelApiImagesToJSON=gt,i.HotelApiToJSON=Xc,i.HotelImageApiFromJSON=oe,i.HotelImageApiFromJSONTyped=Ni,i.HotelImageApiToJSON=fe,i.HotelImages=Br,i.HotelOfferApiAllOfFromJSON=es,i.HotelOfferApiAllOfFromJSONTyped=Zn,i.HotelOfferApiAllOfToJSON=ts,i.HotelOfferApiFromJSON=zn,i.HotelOfferApiFromJSONTyped=Yn,i.HotelOfferApiToJSON=Wn,i.HotelOfferRequestApiResponseFromJSON=Tt,i.HotelOfferRequestApiResponseFromJSONTyped=xn,i.HotelOfferRequestApiResponseToJSON=ns,i.HotelOfferRequestCreateApiFromJSON=os,i.HotelOfferRequestCreateApiFromJSONTyped=Xn,i.HotelOfferRequestCreateApiToJSON=Qn,i.HotelOfferRequests=Lr,i.HotelOffers=Gr,i.HotelOffersApiResponseFromJSON=ar,i.HotelOffersApiResponseFromJSONTyped=cr,i.HotelOffersApiResponseMetaAllOfFromJSON=ms,i.HotelOffersApiResponseMetaAllOfFromJSONTyped=sr,i.HotelOffersApiResponseMetaAllOfToJSON=ps,i.HotelOffersApiResponseMetaFromJSON=er,i.HotelOffersApiResponseMetaFromJSONTyped=tr,i.HotelOffersApiResponseMetaToJSON=ir,i.HotelOffersApiResponseToJSON=fs,i.HotelOffersDataApiResponseFromJSON=nr,i.HotelOffersDataApiResponseFromJSONTyped=rr,i.HotelOffersDataApiResponseToJSON=or,i.HotelOffersSortByEnum=Vs,i.HotelOffersSortByOrderEnum=zs,i.HotelReviewRatingApiFromJSON=At,i.HotelReviewRatingApiFromJSONTyped=Ln,i.HotelReviewRatingApiToJSON=_t,i.HotelRoomApiFromJSON=Mi,i.HotelRoomApiFromJSONTyped=Ci,i.HotelRoomApiToJSON=Pi,i.HotelRoomOfferApiBreakfastOptionEnum=tc,i.HotelRoomOfferApiFromJSON=ae,i.HotelRoomOfferApiFromJSONTyped=Di,i.HotelRoomOfferApiPackageTypeEnum=ic,i.HotelRoomOfferApiResponseFromJSON=dr,i.HotelRoomOfferApiResponseFromJSONTyped=ur,i.HotelRoomOfferApiResponseToJSON=Os,i.HotelRoomOfferApiStayTaxesInfoEnum=nc,i.HotelRoomOfferApiToJSON=ce,i.HotelRoomOfferApiTypeEnum=rc,i.HotelRoomOfferImages=qr,i.HotelRoomOfferRequestApiResponseAllOf1FromJSON=Ts,i.HotelRoomOfferRequestApiResponseAllOf1FromJSONTyped=mr,i.HotelRoomOfferRequestApiResponseAllOf1ToJSON=ws,i.HotelRoomOfferRequestApiResponseAllOfFromJSON=_s,i.HotelRoomOfferRequestApiResponseAllOfFromJSONTyped=lr,i.HotelRoomOfferRequestApiResponseAllOfToJSON=Ss,i.HotelRoomOfferRequestApiResponseFromJSON=wt,i.HotelRoomOfferRequestApiResponseFromJSONTyped=fr,i.HotelRoomOfferRequestApiResponseToJSON=gs,i.HotelRoomOfferRequestCreateApiFromJSON=Ns,i.HotelRoomOfferRequestCreateApiFromJSONTyped=pr,i.HotelRoomOfferRequestCreateApiToJSON=hr,i.HotelRoomOfferRequests=Kr,i.HotelRoomOffers=Vr,i.HotelRoomOffersApiResponseFromJSON=Rr,i.HotelRoomOffersApiResponseFromJSONTyped=Tr,i.HotelRoomOffersApiResponseToJSON=Is,i.HotelRoomOffersCreateApiFromJSON=Ds,i.HotelRoomOffersCreateApiFromJSONTyped=Mr,i.HotelRoomOffersCreateApiToJSON=Cr,i.HotelRoomOffersDataApiResponseFromJSON=Or,i.HotelRoomOffersDataApiResponseFromJSONTyped=yr,i.HotelRoomOffersDataApiResponseToJSON=gr,i.HotelRoomOffersDataCreateApiFromJSON=wr,i.HotelRoomOffersDataCreateApiFromJSONTyped=kr,i.HotelRoomOffersDataCreateApiToJSON=Nr,i.HotelRoomingListApiFromJSON=dt,i.HotelRoomingListApiFromJSONTyped=Li,i.HotelRoomingListApiHotelRoomFromJSON=Fi,i.HotelRoomingListApiHotelRoomFromJSONTyped=Hi,i.HotelRoomingListApiHotelRoomToJSON=bi,i.HotelRoomingListApiToJSON=Gi,i.HotelRoomingListGuestApiFromJSON=$e,i.HotelRoomingListGuestApiFromJSONTyped=Ei,i.HotelRoomingListGuestApiToJSON=Bi,i.HotelRoomingListGuests=Ur,i.HotelRoomingListGuestsCreateApiFromJSON=Hs,i.HotelRoomingListGuestsCreateApiFromJSONTyped=Pr,i.HotelRoomingListGuestsCreateApiToJSON=Ir,i.HotelRoomingListGuestsUpdateApiFromJSON=Es,i.HotelRoomingListGuestsUpdateApiFromJSONTyped=Jr,i.HotelRoomingListGuestsUpdateApiToJSON=vr,i.HotelRoomingLists=$r,i.Hotels=zr,i.InvoiceApiFromJSON=Ui,i.InvoiceApiFromJSONTyped=$i,i.InvoiceApiToJSON=qi,i.InvoiceApiTypeEnum=dc,i.JSONApiResponse=b,i.Locale=Ga,i.LocaleFromJSON=Le,i.LocaleFromJSONTyped=_i,i.LocaleToJSON=Ua,i.MetaPollingResponseApiAllOfFromJSON=Ls,i.MetaPollingResponseApiAllOfFromJSONTyped=Dr,i.MetaPollingResponseApiAllOfToJSON=Gs,i.MetaPollingResponseApiFromJSON=Ar,i.MetaPollingResponseApiFromJSONTyped=_r,i.MetaPollingResponseApiToJSON=Sr,i.MetaResponseApiFromJSON=Jn,i.MetaResponseApiFromJSONTyped=vn,i.MetaResponseApiToJSON=Dn,i.PaymentMethodApiFromJSON=fn,i.PaymentMethodApiFromJSONTyped=ln,i.PaymentMethodApiOneOf1FromJSON=Oc,i.PaymentMethodApiOneOf1FromJSONTyped=ft,i.PaymentMethodApiOneOf1NameEnum=hc,i.PaymentMethodApiOneOf1PayloadFromJSON=Zi,i.PaymentMethodApiOneOf1PayloadFromJSONTyped=xi,i.PaymentMethodApiOneOf1PayloadToJSON=Xi,i.PaymentMethodApiOneOf1ToJSON=ji,i.PaymentMethodApiOneOf2FromJSON=Ac,i.PaymentMethodApiOneOf2FromJSONTyped=lt,i.PaymentMethodApiOneOf2NameEnum=gc,i.PaymentMethodApiOneOf2PayloadFromJSON=en,i.PaymentMethodApiOneOf2PayloadFromJSONTyped=tn,i.PaymentMethodApiOneOf2PayloadToJSON=nn,i.PaymentMethodApiOneOf2ToJSON=on,i.PaymentMethodApiOneOf3FromJSON=Tc,i.PaymentMethodApiOneOf3FromJSONTyped=mt,i.PaymentMethodApiOneOf3NameEnum=Rc,i.PaymentMethodApiOneOf3PayloadFromJSON=an,i.PaymentMethodApiOneOf3PayloadFromJSONTyped=cn,i.PaymentMethodApiOneOf3PayloadStatusEnum=_c,i.PaymentMethodApiOneOf3PayloadToJSON=sn,i.PaymentMethodApiOneOf3ToJSON=un,i.PaymentMethodApiOneOfFromJSON=mc,i.PaymentMethodApiOneOfFromJSONTyped=ut,i.PaymentMethodApiOneOfNameEnum=lc,i.PaymentMethodApiOneOfPayloadFromJSON=Ki,i.PaymentMethodApiOneOfPayloadFromJSONTyped=Vi,i.PaymentMethodApiOneOfPayloadToJSON=zi,i.PaymentMethodApiOneOfToJSON=Wi,i.PaymentMethodApiToJSON=mn,i.PaymentMethodRequestApiFromJSON=pt,i.PaymentMethodRequestApiFromJSONTyped=kn,i.PaymentMethodRequestApiNameEnum=Ic,i.PaymentMethodRequestApiToJSON=ht,i.PaymentMethodRequestPayloadApiFromJSON=Rn,i.PaymentMethodRequestPayloadApiFromJSONTyped=Tn,i.PaymentMethodRequestPayloadApiToJSON=wn,i.PaymentMethodUpdatePayloadApiFromJSON=$s,i.PaymentMethodUpdatePayloadApiFromJSONTyped=Fr,i.PaymentMethodUpdatePayloadApiToJSON=Hr,i.PollerStatus=as,i.PollerStatusFromJSON=qe,i.PollerStatusFromJSONTyped=jn,i.PollerStatusToJSON=cs,i.RequiredError=H,i.ResponseError=Qt,i.SourceMarket=Za,i.SourceMarketFromJSON=te,i.SourceMarketFromJSONTyped=Ii,i.SourceMarketToJSON=xa,i.TagApiFromJSON=Ge,i.TagApiFromJSONTyped=Ji,i.TagApiToJSON=Ue,i.TaxApiFromJSON=ct,i.TaxApiFromJSONTyped=vi,i.TaxApiTaxFrequencyEnum=Qa,i.TaxApiTaxModeEnum=ja,i.TaxApiToJSON=st,i.TextApiResponse=jt,i.TravelTimesApiFromJSON=St,i.TravelTimesApiFromJSONTyped=qn,i.TravelTimesApiToJSON=Rt,i.TravelTimesApiTravelTimesFromJSON=Gn,i.TravelTimesApiTravelTimesFromJSONTyped=Un,i.TravelTimesApiTravelTimesToJSON=$n,i.VoidApiResponse=Aa,i.canConsumeForm=ga,i.exists=o,i.instanceOfAllowedPaymentMethodApiOneOf=ei,i.instanceOfAllowedPaymentMethodApiOneOf1=ii,i.instanceOfAllowedPaymentMethodApiOneOf2=ri,i.instanceOfAllowedPaymentMethodApiOneOf3=di,i.instanceOfAllowedPaymentMethodApiOneOf3Payload=Ca,i.instanceOfAmenitiesApi=va,i.instanceOfBedApi=Da,i.instanceOfBookingApi=Nc,i.instanceOfBookingCreateApi=vc,i.instanceOfBookingCreateApiGuestsListInner=Cc,i.instanceOfBookingCreateApiGuestsListInnerGuestsInner=Mc,i.instanceOfBookingPoliciesApi=Fc,i.instanceOfBookingPoliciesCreateApi=bc,i.instanceOfBookingsApiResponse=Lc,i.instanceOfCancellationPolicyApi=ba,i.instanceOfContactPersonApi=qa,i.instanceOfContactPersonOrganizationApi=La,i.instanceOfErrorApiResponse=$c,i.instanceOfEventApi=za,i.instanceOfEventMetadataApi=Vc,i.instanceOfHotelApi=xc,i.instanceOfHotelApiImages=zc,i.instanceOfHotelImageApi=Ya,i.instanceOfHotelOfferApi=Qc,i.instanceOfHotelOfferApiAllOf=jc,i.instanceOfHotelOfferRequestApiResponse=is,i.instanceOfHotelOfferRequestCreateApi=rs,i.instanceOfHotelOffersApiResponse=us,i.instanceOfHotelOffersApiResponseMeta=ss,i.instanceOfHotelOffersApiResponseMetaAllOf=ls,i.instanceOfHotelOffersDataApiResponse=ds,i.instanceOfHotelReviewRatingApi=Yc,i.instanceOfHotelRoomApi=Wa,i.instanceOfHotelRoomOfferApi=oc,i.instanceOfHotelRoomOfferApiResponse=hs,i.instanceOfHotelRoomOfferRequestApiResponse=ys,i.instanceOfHotelRoomOfferRequestApiResponseAllOf=As,i.instanceOfHotelRoomOfferRequestApiResponseAllOf1=Rs,i.instanceOfHotelRoomOfferRequestCreateApi=ks,i.instanceOfHotelRoomOffersApiResponse=Ps,i.instanceOfHotelRoomOffersCreateApi=vs,i.instanceOfHotelRoomOffersDataApiResponse=Ms,i.instanceOfHotelRoomOffersDataCreateApi=Js,i.instanceOfHotelRoomingListApi=sc,i.instanceOfHotelRoomingListApiHotelRoom=ac,i.instanceOfHotelRoomingListGuestApi=cc,i.instanceOfHotelRoomingListGuestsCreateApi=Fs,i.instanceOfHotelRoomingListGuestsUpdateApi=bs,i.instanceOfInvoiceApi=uc,i.instanceOfMetaPollingResponseApi=Cs,i.instanceOfMetaPollingResponseApiAllOf=Bs,i.instanceOfMetaResponseApi=Bc,i.instanceOfPaymentMethodApiOneOf=Yi,i.instanceOfPaymentMethodApiOneOf1=Qi,i.instanceOfPaymentMethodApiOneOf1Payload=pc,i.instanceOfPaymentMethodApiOneOf2=rn,i.instanceOfPaymentMethodApiOneOf2Payload=yc,i.instanceOfPaymentMethodApiOneOf3=dn,i.instanceOfPaymentMethodApiOneOf3Payload=Sc,i.instanceOfPaymentMethodApiOneOfPayload=fc,i.instanceOfPaymentMethodRequestApi=Jc,i.instanceOfPaymentMethodRequestPayloadApi=Pc,i.instanceOfPaymentMethodUpdatePayloadApi=Us,i.instanceOfTagApi=Xa,i.instanceOfTaxApi=ec,i.instanceOfTravelTimesApi=Zc,i.instanceOfTravelTimesApiTravelTimes=Wc,i.mapValues=ya,i.querystring=Qe,i.v1ApiClient=Yr,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));