@duffel/components 1.3.1 → 2.0.3

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.
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see duffel-components.js.LICENSE.txt */
2
- !function(){var e={8764:function(e,n,t){"use strict";var r=t(5108);const o=t(1238),i=t(5665),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=c,n.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},n.INSPECT_MAX_BYTES=50;const a=2147483647;function l(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const n=new Uint8Array(e);return Object.setPrototypeOf(n,c.prototype),n}function c(e,n,t){if("number"==typeof e){if("string"==typeof n)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return d(e,n,t)}function d(e,n,t){if("string"==typeof e)return function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);const t=0|h(e,n);let r=l(t);const o=r.write(e,n);return o!==t&&(r=r.slice(0,o)),r}(e,n);if(ArrayBuffer.isView(e))return function(e){if(W(e,Uint8Array)){const n=new Uint8Array(e);return m(n.buffer,n.byteOffset,n.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(W(e,ArrayBuffer)||e&&W(e.buffer,ArrayBuffer))return m(e,n,t);if("undefined"!=typeof SharedArrayBuffer&&(W(e,SharedArrayBuffer)||e&&W(e.buffer,SharedArrayBuffer)))return m(e,n,t);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,n,t);const o=function(e){if(c.isBuffer(e)){const n=0|g(e.length),t=l(n);return 0===t.length||e.copy(t,0,0,n),t}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?l(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),n,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function f(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return f(e),l(e<0?0:0|g(e))}function p(e){const n=e.length<0?0:0|g(e.length),t=l(n);for(let r=0;r<n;r+=1)t[r]=255&e[r];return t}function m(e,n,t){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(t||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===n&&void 0===t?new Uint8Array(e):void 0===t?new Uint8Array(e,n):new Uint8Array(e,n,t),Object.setPrototypeOf(r,c.prototype),r}function g(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function h(e,n){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||W(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const t=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===t)return 0;let o=!1;for(;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return $(e).length;default:if(o)return r?-1:V(e).length;n=(""+n).toLowerCase(),o=!0}}function v(e,n,t){let r=!1;if((void 0===n||n<0)&&(n=0),n>this.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,n,t);case"utf8":case"utf-8":return I(this,n,t);case"ascii":return j(this,n,t);case"latin1":case"binary":return T(this,n,t);case"base64":return E(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,n,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,n,t){const r=e[n];e[n]=e[t],e[t]=r}function y(e,n,t,r,o){if(0===e.length)return-1;if("string"==typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),J(t=+t)&&(t=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)return-1;t=0}if("string"==typeof n&&(n=c.from(n,r)),c.isBuffer(n))return 0===n.length?-1:x(e,n,t,r,o);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):x(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function x(e,n,t,r,o){let i,s=1,a=e.length,l=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||n.length<2)return-1;s=2,a/=2,l/=2,t/=2}function c(e,n){return 1===s?e[n]:e.readUInt16BE(n*s)}if(o){let r=-1;for(i=t;i<a;i++)if(c(e,i)===c(n,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(t+l>a&&(t=a-l),i=t;i>=0;i--){let t=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(n,r)){t=!1;break}if(t)return i}return-1}function C(e,n,t,r){t=Number(t)||0;const o=e.length-t;r?(r=Number(r))>o&&(r=o):r=o;const i=n.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(n.substr(2*s,2),16);if(J(r))return s;e[t+s]=r}return s}function _(e,n,t,r){return X(V(n,e.length-t),e,t,r)}function S(e,n,t,r){return X(function(e){const n=[];for(let t=0;t<e.length;++t)n.push(255&e.charCodeAt(t));return n}(n),e,t,r)}function N(e,n,t,r){return X($(n),e,t,r)}function w(e,n,t,r){return X(function(e,n){let t,r,o;const i=[];for(let s=0;s<e.length&&!((n-=2)<0);++s)t=e.charCodeAt(s),r=t>>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function E(e,n,t){return 0===n&&t===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(n,t))}function I(e,n,t){t=Math.min(e.length,t);const r=[];let o=n;for(;o<t;){const n=e[o];let i=null,s=n>239?4:n>223?3:n>191?2:1;if(o+s<=t){let t,r,a,l;switch(s){case 1:n<128&&(i=n);break;case 2:t=e[o+1],128==(192&t)&&(l=(31&n)<<6|63&t,l>127&&(i=l));break;case 3:t=e[o+1],r=e[o+2],128==(192&t)&&128==(192&r)&&(l=(15&n)<<12|(63&t)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:t=e[o+1],r=e[o+2],a=e[o+3],128==(192&t)&&128==(192&r)&&128==(192&a)&&(l=(15&n)<<18|(63&t)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(e){const n=e.length;if(n<=A)return String.fromCharCode.apply(String,e);let t="",r=0;for(;r<n;)t+=String.fromCharCode.apply(String,e.slice(r,r+=A));return t}(r)}n.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),n={foo:function(){return 42}};return Object.setPrototypeOf(n,Uint8Array.prototype),Object.setPrototypeOf(e,n),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,n,t){return d(e,n,t)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,n,t){return function(e,n,t){return f(e),e<=0?l(e):void 0!==n?"string"==typeof t?l(e).fill(n,t):l(e).fill(n):l(e)}(e,n,t)},c.allocUnsafe=function(e){return u(e)},c.allocUnsafeSlow=function(e){return u(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,n){if(W(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),W(n,Uint8Array)&&(n=c.from(n,n.offset,n.byteLength)),!c.isBuffer(e)||!c.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;let t=e.length,r=n.length;for(let o=0,i=Math.min(t,r);o<i;++o)if(e[o]!==n[o]){t=e[o],r=n[o];break}return t<r?-1:r<t?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let t;if(void 0===n)for(n=0,t=0;t<e.length;++t)n+=e[t].length;const r=c.allocUnsafe(n);let o=0;for(t=0;t<e.length;++t){let n=e[t];if(W(n,Uint8Array))o+n.length>r.length?(c.isBuffer(n)||(n=c.from(n)),n.copy(r,o)):Uint8Array.prototype.set.call(r,n,o);else{if(!c.isBuffer(n))throw new TypeError('"list" argument must be an Array of Buffers');n.copy(r,o)}o+=n.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let n=0;n<e;n+=2)b(this,n,n+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let n=0;n<e;n+=4)b(this,n,n+3),b(this,n+1,n+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let n=0;n<e;n+=8)b(this,n,n+7),b(this,n+1,n+6),b(this,n+2,n+5),b(this,n+3,n+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?I(this,0,e):v.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},s&&(c.prototype[s]=c.prototype.inspect),c.prototype.compare=function(e,n,t,r,o){if(W(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===t&&(t=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(t>>>=0)-(n>>>=0);const a=Math.min(i,s),l=this.slice(r,o),d=e.slice(n,t);for(let e=0;e<a;++e)if(l[e]!==d[e]){i=l[e],s=d[e];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(e,n,t){return-1!==this.indexOf(e,n,t)},c.prototype.indexOf=function(e,n,t){return y(this,e,n,t,!0)},c.prototype.lastIndexOf=function(e,n,t){return y(this,e,n,t,!1)},c.prototype.write=function(e,n,t,r){if(void 0===n)r="utf8",t=this.length,n=0;else if(void 0===t&&"string"==typeof n)r=n,t=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n>>>=0,isFinite(t)?(t>>>=0,void 0===r&&(r="utf8")):(r=t,t=void 0)}const o=this.length-n;if((void 0===t||t>o)&&(t=o),e.length>0&&(t<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return C(this,e,n,t);case"utf8":case"utf-8":return _(this,e,n,t);case"ascii":case"latin1":case"binary":return S(this,e,n,t);case"base64":return N(this,e,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,n,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const A=4096;function j(e,n,t){let r="";t=Math.min(e.length,t);for(let o=n;o<t;++o)r+=String.fromCharCode(127&e[o]);return r}function T(e,n,t){let r="";t=Math.min(e.length,t);for(let o=n;o<t;++o)r+=String.fromCharCode(e[o]);return r}function O(e,n,t){const r=e.length;(!n||n<0)&&(n=0),(!t||t<0||t>r)&&(t=r);let o="";for(let r=n;r<t;++r)o+=K[e[r]];return o}function G(e,n,t){const r=e.slice(n,t);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function B(e,n,t){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+n>t)throw new RangeError("Trying to access beyond buffer length")}function L(e,n,t,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)throw new RangeError('"value" argument is out of bounds');if(t+r>e.length)throw new RangeError("Index out of range")}function R(e,n,t,r,o){Z(n,r,o,e,t,7);let i=Number(n&BigInt(4294967295));e[t++]=i,i>>=8,e[t++]=i,i>>=8,e[t++]=i,i>>=8,e[t++]=i;let s=Number(n>>BigInt(32)&BigInt(4294967295));return e[t++]=s,s>>=8,e[t++]=s,s>>=8,e[t++]=s,s>>=8,e[t++]=s,t}function M(e,n,t,r,o){Z(n,r,o,e,t,7);let i=Number(n&BigInt(4294967295));e[t+7]=i,i>>=8,e[t+6]=i,i>>=8,e[t+5]=i,i>>=8,e[t+4]=i;let s=Number(n>>BigInt(32)&BigInt(4294967295));return e[t+3]=s,s>>=8,e[t+2]=s,s>>=8,e[t+1]=s,s>>=8,e[t]=s,t+8}function P(e,n,t,r,o,i){if(t+r>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function k(e,n,t,r,o){return n=+n,t>>>=0,o||P(e,0,t,4),i.write(e,n,t,r,23,4),t+4}function U(e,n,t,r,o){return n=+n,t>>>=0,o||P(e,0,t,8),i.write(e,n,t,r,52,8),t+8}c.prototype.slice=function(e,n){const t=this.length;(e=~~e)<0?(e+=t)<0&&(e=0):e>t&&(e=t),(n=void 0===n?t:~~n)<0?(n+=t)<0&&(n=0):n>t&&(n=t),n<e&&(n=e);const r=this.subarray(e,n);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,n,t){e>>>=0,n>>>=0,t||B(e,n,this.length);let r=this[e],o=1,i=0;for(;++i<n&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,n,t){e>>>=0,n>>>=0,t||B(e,n,this.length);let r=this[e+--n],o=1;for(;n>0&&(o*=256);)r+=this[e+--n]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,n){return e>>>=0,n||B(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,n){return e>>>=0,n||B(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,n){return e>>>=0,n||B(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,n){return e>>>=0,n||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,n){return e>>>=0,n||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){Y(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||q(e,this.length-8);const r=n+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+t*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(e){Y(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||q(e,this.length-8);const r=n*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+t;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,n,t){e>>>=0,n>>>=0,t||B(e,n,this.length);let r=this[e],o=1,i=0;for(;++i<n&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*n)),r},c.prototype.readIntBE=function(e,n,t){e>>>=0,n>>>=0,t||B(e,n,this.length);let r=n,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*n)),i},c.prototype.readInt8=function(e,n){return e>>>=0,n||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,n){e>>>=0,n||B(e,2,this.length);const t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},c.prototype.readInt16BE=function(e,n){e>>>=0,n||B(e,2,this.length);const t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},c.prototype.readInt32LE=function(e,n){return e>>>=0,n||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,n){return e>>>=0,n||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){Y(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(t<<24);return(BigInt(r)<<BigInt(32))+BigInt(n+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Q((function(e){Y(e>>>=0,"offset");const n=this[e],t=this[e+7];void 0!==n&&void 0!==t||q(e,this.length-8);const r=(n<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+t)})),c.prototype.readFloatLE=function(e,n){return e>>>=0,n||B(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,n){return e>>>=0,n||B(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,n){return e>>>=0,n||B(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,n){return e>>>=0,n||B(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,n,t,r){e=+e,n>>>=0,t>>>=0,r||L(this,e,n,t,Math.pow(2,8*t)-1,0);let o=1,i=0;for(this[n]=255&e;++i<t&&(o*=256);)this[n+i]=e/o&255;return n+t},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,n,t,r){e=+e,n>>>=0,t>>>=0,r||L(this,e,n,t,Math.pow(2,8*t)-1,0);let o=t-1,i=1;for(this[n+o]=255&e;--o>=0&&(i*=256);)this[n+o]=e/i&255;return n+t},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,1,255,0),this[n]=255&e,n+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,2,65535,0),this[n]=255&e,this[n+1]=e>>>8,n+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,2,65535,0),this[n]=e>>>8,this[n+1]=255&e,n+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,4,4294967295,0),this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e,n+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,4,4294967295,0),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},c.prototype.writeBigUInt64LE=Q((function(e,n=0){return R(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,n=0){return M(this,e,n,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,n,t,r){if(e=+e,n>>>=0,!r){const r=Math.pow(2,8*t-1);L(this,e,n,t,r-1,-r)}let o=0,i=1,s=0;for(this[n]=255&e;++o<t&&(i*=256);)e<0&&0===s&&0!==this[n+o-1]&&(s=1),this[n+o]=(e/i>>0)-s&255;return n+t},c.prototype.writeIntBE=function(e,n,t,r){if(e=+e,n>>>=0,!r){const r=Math.pow(2,8*t-1);L(this,e,n,t,r-1,-r)}let o=t-1,i=1,s=0;for(this[n+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[n+o+1]&&(s=1),this[n+o]=(e/i>>0)-s&255;return n+t},c.prototype.writeInt8=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,1,127,-128),e<0&&(e=255+e+1),this[n]=255&e,n+1},c.prototype.writeInt16LE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,2,32767,-32768),this[n]=255&e,this[n+1]=e>>>8,n+2},c.prototype.writeInt16BE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,2,32767,-32768),this[n]=e>>>8,this[n+1]=255&e,n+2},c.prototype.writeInt32LE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,4,2147483647,-2147483648),this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24,n+4},c.prototype.writeInt32BE=function(e,n,t){return e=+e,n>>>=0,t||L(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e,n+4},c.prototype.writeBigInt64LE=Q((function(e,n=0){return R(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,n=0){return M(this,e,n,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,n,t){return k(this,e,n,!0,t)},c.prototype.writeFloatBE=function(e,n,t){return k(this,e,n,!1,t)},c.prototype.writeDoubleLE=function(e,n,t){return U(this,e,n,!0,t)},c.prototype.writeDoubleBE=function(e,n,t){return U(this,e,n,!1,t)},c.prototype.copy=function(e,n,t,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r<t&&(r=t),r===t)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(t<0||t>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n<r-t&&(r=e.length-n+t);const o=r-t;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(n,t,r):Uint8Array.prototype.set.call(e,this.subarray(t,r),n),o},c.prototype.fill=function(e,n,t,r){if("string"==typeof e){if("string"==typeof n?(r=n,n=0,t=this.length):"string"==typeof t&&(r=t,t=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const n=e.charCodeAt(0);("utf8"===r&&n<128||"latin1"===r)&&(e=n)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(n<0||this.length<n||this.length<t)throw new RangeError("Out of range index");if(t<=n)return this;let o;if(n>>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=n;o<t;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),s=i.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<t-n;++o)this[o+n]=i[o%s]}return this};const H={};function F(e,n,t){H[e]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:n.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let n="",t=e.length;const r="-"===e[0]?1:0;for(;t>=r+4;t-=3)n=`_${e.slice(t-3,t)}${n}`;return`${e.slice(0,t)}${n}`}function Z(e,n,t,r,o,i){if(e>t||e<n){const r="bigint"==typeof n?"n":"";let o;throw o=i>3?0===n||n===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${n}${r} and <= ${t}${r}`,new H.ERR_OUT_OF_RANGE("value",o,e)}!function(e,n,t){Y(n,"offset"),void 0!==e[n]&&void 0!==e[n+t]||q(n,e.length-(t+1))}(r,o,i)}function Y(e,n){if("number"!=typeof e)throw new H.ERR_INVALID_ARG_TYPE(n,"number",e)}function q(e,n,t){if(Math.floor(e)!==e)throw Y(e,t),new H.ERR_OUT_OF_RANGE(t||"offset","an integer",e);if(n<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${n}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,n){return`The "${e}" argument must be of type number. Received type ${typeof n}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,n,t){let r=`The value of "${e}" is out of range.`,o=t;return Number.isInteger(t)&&Math.abs(t)>2**32?o=z(String(t)):"bigint"==typeof t&&(o=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(o=z(o)),o+="n"),r+=` It must be ${n}. Received ${o}`,r}),RangeError);const D=/[^+/0-9A-Za-z-_]/g;function V(e,n){let t;n=n||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(t=e.charCodeAt(s),t>55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function $(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function X(e,n,t,r){let o;for(o=0;o<r&&!(o+t>=n.length||o>=e.length);++o)n[o+t]=e[o];return o}function W(e,n){return e instanceof n||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===n.name}function J(e){return e!=e}const K=function(){const e="0123456789abcdef",n=new Array(256);for(let t=0;t<16;++t){const r=16*t;for(let o=0;o<16;++o)n[r+o]=e[t]+e[o]}return n}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},5108:function(e,n,t){var r=t(6464),o=t(9084);function i(){return(new Date).getTime()}var s,a=Array.prototype.slice,l={};s=void 0!==t.g&&t.g.console?t.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){s.log.apply(s,arguments)},"info"],[function(){s.log.apply(s,arguments)},"warn"],[function(){s.warn.apply(s,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var n=l[e];if(!n)throw new Error("No such label: "+e);delete l[e];var t=i()-n;s.log(e+": "+t+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),s.error(e.stack)},"trace"],[function(e){s.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var n=a.call(arguments,1);o.ok(!1,r.format.apply(null,n))}},"assert"]],d=0;d<c.length;d++){var f=c[d],u=f[0],p=f[1];s[p]||(s[p]=u)}e.exports=s},2330:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .card-payment__container {\n width: 480px;\n height: auto;\n max-width: 480px;\n box-sizing: border-box;\n margin: var(--SPACING-XS-3);\n}\n\n .duffel-components .card-payment__container--invalid {\n margin-top: var(--SPACING-SM-1);\n font-size: var(--FONT-SIZES-C2);\n color: var(--RED);\n }\n\n.duffel-components .card-payment__container--invalid {\n height: 16px;\n}\n\n.duffel-components .card-details {\n background-color: rgb(var(--WHITE));\n border: 1px solid var(--GREY-200);\n border-radius: 5px;\n padding: var(--SPACING-SM-2);\n width: auto;\n}\n\n.duffel-components .card-details.StripeElement--invalid {\n border: 1px solid var(--RED);\n }\n\n.duffel-components .card-payment__pay-button {\n width: 100%;\n height: 40px !important;\n justify-content: center;\n margin-top: var(--SPACING-SM-3);\n}\n\n.duffel-components .card-payment__pay-button:focus {\n outline-offset: 0.35em;\n }\n\n.duffel-components .card-payment--in-progress {\n display: block;\n z-index: 3;\n width: 100vw;\n height: 100vh;\n position: absolute;\n}\n",""]),e.exports=n},7711:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .error-state__container {\n display: flex;\n flex-direction: column;\n flex: 1;\n align-items: center;\n justify-content: center;\n max-width: 308px;\n text-align: center;\n margin: 0 auto;\n font-family: var(--FONT-FAMILY);\n height: 100%;\n }\n .duffel-components .error-state__icon {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 64px;\n height: 64px;\n background-color: rgb(var(--ACCENT));\n border-radius: 50%;\n margin-bottom: var(--SPACING-MD-2);\n color: rgb(var(--WHITE));\n }\n .duffel-components .error-state__title {\n color: var(--GREY-900);\n font-size: var(--FONT-SIZES-H4);\n line-height: 36px;\n margin: 0 0 var(--SPACING-SM-3);\n padding: 0;\n }\n .duffel-components .error-state__copy {\n color: var(--GREY-700);\n font-size: var(--FONT-SIZES-C1);\n line-height: var(--SPACING-MD-3);\n padding: 0;\n margin: 0;\n }\n",""]),e.exports=n},7403:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .loading-state__container {\n display: flex;\n flex-direction: column;\n align-content: center;\n align-items: center;\n text-align: center;\n justify-content: center;\n font-family: var(--FONT-FAMILY);\n height: calc(100vh - var(--SPACING-XL-3));\n width: var(--SPACING-XL-3);\n margin: 0 auto;\n line-height: var(--SPACING-MD-1);\n }\n .duffel-components .loading-state__message {\n font-size: var(--FONT-SIZES-C3);\n text-transform: uppercase;\n color: var(--GREY-400);\n letter-spacing: 0.02rem;\n }\n .duffel-components .loading-state__progress-indicator {\n height: var(--SPACING-XS-2);\n margin: var(--SPACING-SM-3) 0;\n border-radius: 999px;\n width: calc(100% - var(--SPACING-SM-1));\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n position: relative;\n transition: var(--TRANSITIONS-CUBIC-BEZIER);\n }\n .duffel-components .loading-state__progress-indicator--status {\n display: block;\n height: 100%;\n border-radius: 999px;\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n position: relative;\n -webkit-animation: fillstatus 1s linear;\n animation: fillstatus 1s linear;\n }\n @-webkit-keyframes fillstatus {\n 0% {\n width: 0;\n }\n 70% {\n width: 100%;\n }\n 80% {\n opacity: 1;\n width: 100%;\n }\n 100% {\n opacity: 0;\n width: 100%;\n }\n }\n @keyframes fillstatus {\n 0% {\n width: 0;\n }\n 70% {\n width: 100%;\n }\n 80% {\n opacity: 1;\n width: 100%;\n }\n 100% {\n opacity: 0;\n width: 100%;\n }\n }\n .duffel-components .loading-state__segment {\n display: flex;\n flex-direction: row;\n margin: var(--SPACING-XS-2) 0;\n color: var(--GREY-400);\n text-transform: uppercase;\n }\n .duffel-components .loading-state__segment--origin,\n .duffel-components .loading-state__segment--destination {\n font-weight: 600;\n font-size: var(--FONT-SIZES-C1);\n color: var(--GREY-900);\n padding: 0 var(--SPACING-SM-1);\n text-transform: uppercase;\n }\n .duffel-components .loading-state__duration {\n color: var(--GREY-400);\n font-size: var(--FONT-SIZES-C3);\n letter-spacing: 0.02rem;\n margin: var(--SPACING-XS-2) 0;\n text-transform: uppercase;\n }\n",""]),e.exports=n},2300:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .passenger-selection-passenger {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n border: none;\n background: none;\n cursor: pointer;\n font-size: var(--FONT-SIZES-C2);\n font-family: var(--FONT-FAMILY);\n margin-top: var(--SPACING-XS-2);\n height: 32px;\n display: flex;\n align-items: center;\n padding: var(--SPACING-SM-1) var(--SPACING-LG-1);\n width: 100%;\n}\n\n .duffel-components .passenger-selection-passenger:first-child {\n margin-top: 0;\n }\n\n .duffel-components .passenger-selection-passenger:hover,\n .duffel-components .passenger-selection-passenger:focus,\n .duffel-components .passenger-selection-passenger:active {\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n }\n\n .duffel-components .passenger-selection-passenger__identifier,\n .duffel-components .passenger-selection-passenger__action {\n line-height: 1;\n }\n\n .duffel-components .passenger-selection-passenger__identifier {\n flex-grow: 1;\n margin-right: var(--SPACING-LG-1);\n text-align: left;\n color: var(--GREY-900);\n }\n\n .duffel-components .passenger-selection-passenger__action {\n color: var(--GREY-600);\n margin-right: var(--SPACING-XS-2);\n }\n\n .duffel-components .passenger-selection-passenger__seat-designator {\n color: var(--GREY-900);\n font-weight: 600;\n margin-right: var(--SPACING-SM-3);\n }\n\n .duffel-components .passenger-selection-passenger__seat-price {\n text-align: right;\n display: inline-block;\n width: 70px;\n }\n\n .duffel-components .passenger-selection-passenger--selected {\n box-shadow: 4px 0px 0px 0px rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000)) inset;\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n }\n",""]),e.exports=n},9211:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .passenger-selection-segment {\n margin: var(--SPACING-LG-1) 0 0;\n padding: 0 0 var(--SPACING-LG-1);\n border-bottom: 1px solid var(--GREY-200);\n font-family: var(--FONT-FAMILY);\n}\n\n .duffel-components .passenger-selection-segment:first-child {\n margin-top: 0;\n }\n",""]),e.exports=n},3970:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .passenger-selection {\n display: flex;\n flex-direction: column;\n font-family: var(--FONT-FAMILY);\n flex-grow: 1;\n}\n\n .duffel-components .passenger-selection__title {\n margin: 0;\n padding: 0 0 var(--SPACING-MD-3);\n font-size: var(--FONT-SIZES-H2);\n line-height: 1.2;\n min-width: 360px;\n }\n\n .duffel-components .passenger-selection__segments {\n list-style: none;\n overflow-y: auto;\n font-size: var(--FONT-SIZES-C1);\n padding: var(--SPACING-XS-2);\n margin: calc(var(--SPACING-XS-2) * -1);\n }\n",""]),e.exports=n},9009:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .seat-map__legend {\n width: calc(100% + var(--SPACING-MD-3));\n min-height: -webkit-fit-content;\n min-height: -moz-fit-content;\n min-height: fit-content;\n margin: calc(var(--SPACING-SM-1) * -1) calc(var(--SPACING-SM-2) * -1);\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n line-height: var(--SPACING-MD-3));\n font-size: var(--FONT-SIZES-C2);\n font-weight: 400;\n }\n .duffel-components .seat-map__legend-item {\n display: flex;\n align-items: center;\n text-transform: capitalize;\n margin: var(--SPACING-SM-1) var(--SPACING-SM-2);\n color: var(--GREY-700);\n }\n .duffel-components .seat-map__legend-item--symbol .ff-icon {\n margin-right: var(--SPACING-XS-3);\n }\n .duffel-components .seat-map__legend-seat {\n width: var(--SPACING-MD-1);\n height: var(--SPACING-MD-1);\n border-radius: 5px;\n border: 2px solid var(--GREY-400);\n color: var(--GREY-400);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-right: var(--SPACING-SM-1);\n }\n .duffel-components .seat-map__legend-seat--fee-payable {\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n border: 2px solid rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));\n }\n .duffel-components .seat-map__legend-seat--fee-payable-indicator {\n position: relative;\n top: var(--SPACING-XS-2);\n left: var(--SPACING-XS-2);\n color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));\n }\n .duffel-components .seat-map__legend-seat--included {\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n border: 2px solid rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));\n }\n .duffel-components .seat-map__legend-seat--selected {\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n border: 2px solid rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n }\n",""]),e.exports=n},4880:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .map-element--amenity {\n width: 100%;\n height: var(--SPACING-LG-1);\n color: var(--GREY-600);\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: var(--SPACING-SM-1);\n }\n\n @media only screen and (min-width: 768px) {.duffel-components .map-element--amenity {\n width: 100%;\n height: var(--SPACING-LG-3);\n font-size: var(--FONT-SIZES-C2)\n }\n }\n .duffel-components .map-element--wrapped {\n background-color: var(--GREY-100);\n border-radius: 8px;\n border: 2px solid var(--GREY-200);\n }\n",""]),e.exports=n},7682:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .map-element--exit {\n color: var(--GREY-400);\n width: 100%;\n height: var(--SPACING-LG-3);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n }\n\n .duffel-components .map-element--exit--right {\n justify-content: flex-end;\n }\n .duffel-components .map-element--empty {\n min-width: var(--SPACING-LG-2);\n height: var(--SPACING-LG-2);\n }\n @media only screen and (min-width: 768px) {\n .duffel-components .map-element--empty {\n min-width: var(--SPACING-LG-3);\n height: var(--SPACING-LG-3)\n }\n }\n .duffel-components .map-element + .map-element {\n margin-left: var(--SPACING-XS-2);\n }\n @media only screen and (min-width: 768px) {\n .duffel-components .map-element + .map-element {\n margin-left: var(--SPACING-SM-1)\n }\n }\n\n.duffel-components .map-section {\n display: flex;\n justify-content: center;\n padding: var(--SPACING-XS-1) 0;\n}\n\n@media only screen and (min-width: 768px) {\n\n.duffel-components .map-section {\n padding: var(--SPACING-XS-2) 0\n}\n }\n\n.duffel-components .map-section--left {\n border-left: 2px solid var(--GREY-200);\n padding-left: var(--SPACING-SM-3);\n }\n\n.duffel-components .map-section--left.map-section--wing {\n box-shadow: -19px 0px 0px 0px var(--GREY-200);\n }\n\n.duffel-components .map-section--right {\n border-right: 2px solid var(--GREY-200);\n padding-right: var(--SPACING-SM-3);\n }\n\n.duffel-components .map-section--right.map-section--wing {\n box-shadow: 19px 0px 0px 0px var(--GREY-200);\n }\n\n.duffel-components .map-section__aisle {\n display: flex;\n justify-content: center;\n color: var(--GREY-600);\n font-size: var(--FONT-SIZES-C3);\n line-height: var(--SPACING-MD-2);\n }\n\n@media only screen and (min-width: 768px) {\n\n.duffel-components .map-section__aisle {\n font-size: var(--FONT-SIZES-C2);\n line-height: var(--SPACING-MD-3)\n }\n }\n",""]),e.exports=n},4287:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .map-element__seat {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n outline: none;\n cursor: default;\n width: var(--SPACING-LG-2);\n height: var(--SPACING-LG-2);\n border-radius: 8px;\n border: 2px solid var(--GREY-200);\n box-sizing: border-box;\n color: var(--GREY-600);\n background-color: var(--GREY-100);\n display: flex;\n align-items: center;\n justify-content: center;\n line-height: var(--SPACING-MD-3);\n text-transform: uppercase;\n font-weight: bold;\n font-size: var(--FONT-SIZES-C3);\n text-align: left;\n position: relative;\n }\n\n @media only screen and (min-width: 768px) {.duffel-components .map-element__seat {\n width: var(--SPACING-LG-3);\n height: var(--SPACING-LG-3);\n font-size: var(--FONT-SIZES-C2)\n }\n }\n .duffel-components .map-element--available {\n border: 2px solid rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));\n }\n .duffel-components .map-element--fee-payable {\n position: absolute;\n top: 22px;\n left: 22px;\n color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));\n }\n @media only screen and (min-width: 768px) {\n .duffel-components .map-element--fee-payable {\n top: 26px;\n left: 26px\n }\n }\n @media (hover: hover) and (pointer: fine) {\n .duffel-components .map-element--actionable:hover {\n cursor: pointer;\n }\n .duffel-components .map-element--actionable:not(.map-element--selected):hover {\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));\n color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n transition: var(--TRANSITIONS-CUBIC-BEZIER);\n }\n .duffel-components .map-element--actionable:not(.map-element--selected):hover .map-element--fee-payable {\n color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n transition: var(--TRANSITIONS-CUBIC-BEZIER);\n }\n }\n .duffel-components .map-element--selected {\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n border: 2px solid rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n color: rgba(var(--WHITE), 1);\n }\n",""]),e.exports=n},6471:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .seat-info {\n background-color: rgb(var(--WHITE));\n padding: var(--SPACING-SM-3);\n padding-bottom: var(--SPACING-SM-3);\n}\n\n .duffel-components .seat-info__details {\n font-size: var(--FONT-SIZES-C1);\n color: var(--GREY-900);\n font-weight: normal;\n text-transform: none;\n display: flex;\n justify-content: space-between;\n }\n\n .duffel-components .seat-info__details > span {\n flex-grow: 1;\n margin: 0 var(--SPACING-SM-1);\n }\n\n .duffel-components .seat-info__disclosure {\n font-size: var(--FONT-SIZES-C3);\n color: var(--GREY-600);\n line-height: 150%;\n text-transform: none;\n font-weight: normal;\n margin-top: var(--SPACING-SM-1);\n }\n\n .duffel-components .seat-info__details + .seat-info__disclosure {\n padding-top: var(--SPACING-SM-3);\n border-top: 1px solid var(--GREY-200);\n margin-top: var(--SPACING-SM-3);\n }\n",""]),e.exports=n},5655:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .seat-map {\n background-color: rgba(var(--WHITE), 1);\n padding: var(--SPACING-SM-3);\n display: flex;\n flex-direction: column;\n align-items: center;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n min-height: 100%;\n}\n\n @media only screen and (min-width: 768px) {.duffel-components .seat-map {\n padding: var(--SPACING-LG-1) var(--SPACING-SM-3) var(--SPACING-SM-3)\n}\n }\n\n .duffel-components .seat-map__legend-container {\n margin-bottom: var(--SPACING-MD-3);\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n }\n\n .duffel-components .seat-map__map-container {\n display: grid;\n grid-template-columns: repeat(var(--CABIN-AISLES), auto var(--SPACING-LG-1)) auto;\n grid-column-gap: var(--SPACING-XS-2);\n align-items: center;\n width: -webkit-min-content;\n width: -moz-min-content;\n width: min-content;\n margin: 0 var(--SPACING-SM-2);\n }\n\n @media only screen and (min-width: 768px) {\n\n .duffel-components .seat-map__map-container {\n grid-template-columns: repeat(var(--CABIN-AISLES), auto var(--SPACING-LG-2)) auto;\n grid-column-gap: var(--SPACING-SM-2);\n margin: 0;\n padding-bottom: var(--SPACING-LG-1)\n }\n }\n",""]),e.exports=n},208:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .seat-selection {\n --SEAT-SELECTION-BOX-SHADOW: 0px 0px 0px 1px rgba(var(--BLACK), 0.05), 0px 4px 24px rgba(var(--BLACK), 0.08);\n background-color: rgb(var(--WHITE));\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n padding: 0;\n position: relative;\n}\n\n .duffel-components .seat-selection__content {\n display: flex;\n flex-direction: column;\n align-items: center;\n flex-grow: 1;\n border-bottom: 1px solid rgba(59, 64, 86, 0.1);\n height: calc(100% - 177px);\n overflow: auto;\n }\n\n .duffel-components .seat-selection__content-child--passengers {\n display: none;\n padding-top: var(--SPACING-LG-1);\n }\n\n .duffel-components .seat-selection__content-child--map {\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n }\n\n .duffel-components .seat-selection__mobile-seat-info {\n align-self: center;\n position: absolute;\n bottom: 187px;\n width: calc(100% - 20px);\n padding: var(--SPACING-XS-3);\n margin-bottom: var(--SPACING-SM-2);\n height: auto;\n background-color: white;\n border-radius: 8px;\n z-index: 100;\n box-shadow: var(--SEAT-SELECTION-BOX-SHADOW);\n }\n\n .duffel-components .seat-selection__confirmation {\n padding: var(--SPACING-MD-3);\n box-shadow: var(--SEAT-SELECTION-BOX-SHADOW);\n position: -webkit-sticky;\n position: sticky;\n bottom: 0;\n background-color: rgb(var(--WHITE));\n }\n\n@media screen and (min-width: 768px) {\n .duffel-components .seat-selection {\n width: calc(100vw - 2 * 56px);\n overflow: hidden;\n }\n\n .duffel-components .seat-selection__content {\n height: auto;\n padding: 0;\n flex-direction: row;\n align-items: initial;\n max-height: calc(100vh - 115px);\n }\n\n .duffel-components .seat-selection__confirmation {\n padding: var(--SPACING-LG-1);\n box-shadow: none;\n }\n\n .duffel-components .seat-selection__content-child--passengers {\n overflow: auto;\n border-right: 1px solid var(--GREY-200);\n display: flex;\n flex-direction: column;\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n flex: 1 0 auto;\n min-width: 415px;\n }\n\n .duffel-components .seat-selection__content-child--passengers > div:not(.passenger-selection) {\n margin-left: var(--SPACING-LG-1);\n }\n\n .duffel-components .seat-selection__content-child--map {\n height: auto;\n align-items: center;\n overflow: auto;\n }\n}\n",""]),e.exports=n},3214:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .passenger-segment__title {\n color: var(--GREY-900);\n font-style: normal;\n font-size: var(--FONT-SIZES-C1);\n font-weight: 600;\n line-height: var(--SPACING-MD-3);\n padding: 0 0 0 var(--SPACING-LG-1);\n margin: 0 0 var(--SPACING-SM-1);\n display: flex;\n align-items: center;\n }\n .duffel-components .passenger-segment__chevron {\n margin: 0 var(--SPACING-SM-1);\n color: var(--GREY-400);\n }\n",""]),e.exports=n},3633:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .summary__segment {\n border-bottom: 1px solid var(--GREY-200);\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--SPACING-SM-3);\n padding-bottom: var(--SPACING-SM-3);\n }\n\n .duffel-components .summary__segment > .passenger-segment__title {\n padding: 0;\n margin: 0;\n }\n\n .duffel-components .summary__segment-passenger {\n color: var(--GREY-900);\n font-size: var(--FONT-SIZES-C1);\n font-weight: normal;\n margin: 0;\n padding: 0;\n }\n .duffel-components .summary__description-cost {\n display: flex;\n justify-content: space-between;\n font-size: var(--FONT-SIZES-C1);\n margin-bottom: var(--SPACING-SM-3);\n }\n .duffel-components .summary:not(.summary--mobile) {\n padding-top: 0;\n display: none;\n }\n .duffel-components .summary__actions {\n display: flex;\n }\n .duffel-components .summary__actions--previous {\n transform: rotate(180deg);\n }\n .duffel-components .summary__actions > button:last-of-type {\n flex: 1 auto;\n justify-content: center;\n margin-left: var(--SPACING-SM-3);\n }\n @media screen and (min-width: 768px) {\n .duffel-components .summary:not(.summary--mobile) {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .duffel-components .summary--mobile {\n display: none;\n }\n\n .duffel-components .summary__description-title {\n color: var(--GREY-900);\n font-size: var(--FONT-SIZES-H5);\n line-height: 26px;\n margin-bottom: var(--SPACING-XS-2);\n }\n\n .duffel-components .summary__description-cost {\n color: var(--GREY-600);\n font-size: var(--FONT-SIZES-C2);\n line-height: 21px;\n margin-bottom: 0;\n }\n .duffel-components .summary__actions--previous.duffel-button--icon-only {\n padding: 0;\n }\n .duffel-components .summary__actions .summary__confirmation-btn:last-child {\n margin-left: var(--SPACING-SM-1);\n }\n }\n",""]),e.exports=n},8538:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .duffel-button {\n --BUTTON-BASE-COLOR: rgb(var(--ACCENT));\n --BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));\n --BUTTON-FONT-SIZE: var(--FONT-SIZES-C0);\n --BUTTON-ICON-SIZE: 24px;\n --BUTTON-RADIUS: 5px;\n --BUTTON-SPACING: 6px 40px;\n --BUTTON-ICON-SPACING: 8px;\n --BUTTON-ICON-MARGIN: 12px;\n --TRANSITION-CUBIC-BEZIER: cubic-bezier(0.25, 0.8, 0.25, 1);\n\n -webkit-appearance: none;\n align-items: center;\n background-color: inherit;\n border: 2px solid var(--BUTTON-BASE-COLOR);\n border-radius: var(--BUTTON-RADIUS);\n box-sizing: border-box;\n color: inherit;\n cursor: pointer;\n display: flex;\n font-family: var(--FONT-FAMILY);\n font-size: inherit;\n font-weight: normal;\n line-height: 1;\n margin: 0;\n padding: var(--BUTTON-SPACING);\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n transition: background-color 0.3s var(--TRANSITION-CUBIC-BEZIER), border-color 0.3s var(--TRANSITION-CUBIC-BEZIER),\n color 0.3s var(--TRANSITION-CUBIC-BEZIER);\n}\n\n .duffel-components .duffel-button.duffel-button--icon-only {\n padding: var(--BUTTON-ICON-SPACING);\n height: 48px;\n width: 48px;\n }\n\n .duffel-components .duffel-button.duffel-button--icon-only > svg {\n --BUTTON-ICON-SIZE: 24px;\n margin: 0 auto;\n }\n\n .duffel-components .duffel-button__text {\n display: block;\n font-size: var(--BUTTON-FONT-SIZE);\n font-weight: 600;\n line-height: 1.5;\n }\n\n .duffel-components .duffel-button:focus {\n outline-offset: 0.25em;\n outline: 2px solid rgb(--ACCENT);\n }\n\n .duffel-components .duffel-button--primary {\n --BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-300));\n }\n\n .duffel-components .duffel-button--muted {\n --BUTTON-BASE-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-100));\n --BUTTON-HOVER-COLOR: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n\n border-color: transparent;\n }\n\n .duffel-components .duffel-button--muted.duffel-button--solid:hover,\n .duffel-components .duffel-button--muted.duffel-button--solid:active {\n color: rgb(var(--WHITE));\n }\n\n .duffel-components .duffel-button--solid {\n background-color: var(--BUTTON-BASE-COLOR);\n color: rgb(var(--WHITE));\n }\n\n .duffel-components .duffel-button--solid.duffel-button--muted {\n color: rgb(var(--ACCENT));\n }\n\n .duffel-components .duffel-button--solid:hover,\n .duffel-components .duffel-button--solid:active {\n border-color: transparent;\n background-color: var(--BUTTON-HOVER-COLOR);\n }\n\n .duffel-components .duffel-button--is-disabled {\n cursor: default;\n opacity: 0.4;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n pointer-events: none;\n }\n\n .duffel-components .duffel-button .duffel-button__icon {\n display: block;\n height: var(--BUTTON-ICON-SIZE);\n width: var(--BUTTON-ICON-SIZE);\n }\n\n .duffel-components .duffel-button .duffel-button__icon--before {\n margin-right: var(--BUTTON-ICON-MARGIN);\n }\n\n .duffel-components .duffel-button .duffel-button__icon--after {\n margin-left: var(--BUTTON-ICON-MARGIN);\n }\n\n @media screen and (min-width: 768px) {.duffel-components .duffel-button {\n --BUTTON-FONT-SIZE: var(--FONT-SIZES-C1);\n --BUTTON-ICON-SIZE: 18px;\n --BUTTON-SPACING: 4px 16px;\n line-height: 24px\n}\n .duffel-components .duffel-button:not(.duffel-button--icon-only) {\n height: 32px;\n }\n\n .duffel-components .duffel-button.duffel-button--icon-only {\n padding: var(--BUTTON-ICON-SPACING);\n height: 32px;\n width: 32px;\n }\n }\n",""]),e.exports=n},3801:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .ff-icon {\n margin-left: initial;\n display: block;\n fill: currentColor;\n}\n",""]),e.exports=n},6658:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .popover-container {\n width: 320px;\n padding: var(--SPACING-SM-1);\n border: 1px solid rgba(59, 64, 86, 0.1);\n border-radius: 8px;\n background: white;\n z-index: 999;\n box-shadow: 0px 1px 4px rgba(59, 64, 86, 0.3);\n}\n",""]),e.exports=n},5215:function(e,n,t){(n=t(3645)(!1)).push([e.id,"@-webkit-keyframes opacity-animation {\n 0%,\n 80%,\n 100% {\n opacity: 0.3;\n }\n 40% {\n opacity: 1;\n }\n}\n\n@keyframes opacity-animation {\n 0%,\n 80%,\n 100% {\n opacity: 0.3;\n }\n 40% {\n opacity: 1;\n }\n}\n\n.duffel-components .spinner {\n align-items: center;\n display: flex;\n justify-content: center;\n pointer-events: none;\n width: 100%;\n height: 12px;\n}\n\n.duffel-components .spinner-dot {\n -webkit-animation: opacity-animation 1.4s infinite ease-in-out both;\n animation: opacity-animation 1.4s infinite ease-in-out both;\n background-color: currentcolor;\n border-radius: 100%;\n display: inline-block;\n margin: 0px 4px;\n height: 12px;\n width: 12px;\n flex: 0 0 auto;\n}\n\n.duffel-components .small {\n height: 8px;\n}\n\n.duffel-components .small.spinner-dot {\n height: 8px;\n width: 8px;\n margin: 0 2px;\n }\n\n.duffel-components .primary.spinner-dot {\n background-color: var(--BLUE-500);\n }\n\n.duffel-components .muted.spinner-dot {\n background-color: var(--GREY-400);\n }\n\n.duffel-components .danger.spinner-dot {\n background-color: var(--RED-400);\n }\n\n.duffel-components .one {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n}\n\n.duffel-components .two {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n}\n",""]),e.exports=n},1826:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components .seat-map__tab-select {\n width: 100%;\n max-width: 400px;\n display: flex;\n text-align: center;\n min-height: var(--SPACING-LG-1);\n margin-bottom: var(--SPACING-MD-3);\n border: 2px solid var(--GREY-200);\n border-radius: 3px;\n background-color: var(--GREY-200);\n }\n\n .duffel-components .seat-map__tab-select-option {\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n outline: none;\n margin: 0;\n border: none;\n padding: var(--SPACING-XS-2) var(--SPACING-SM-3);\n font-weight: 600;\n font-size: var(--FONT-SIZES-C2);\n width: 100%;\n color: var(--GREY-900);\n background-color: var(--GREY-200);\n cursor: pointer;\n border-radius: 3px;\n }\n\n .duffel-components .seat-map__tab-select-option:hover,\n .duffel-components .seat-map__tab-select-option:focus,\n .duffel-components .seat-map__tab-select-option:active {\n color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-1000));\n background-color: rgba(var(--ACCENT), var(--ACCENT-LIGHT-200));\n transition: var(--TRANSITIONS-CUBIC-BEZIER);\n }\n\n .duffel-components .seat-map__tab-select-option--selected {\n color: var(--GREY-900);\n background-color: rgba(var(--WHITE), 1);\n box-shadow: 0px 0px 0px 1px rgba(var(--BLACK), 0.05), 0px 2px 12px rgba(var(--BLACK), 0.08);\n }\n\n .duffel-components .seat-map__tab-select-option:first-child {\n margin-right: 1px;\n }\n\n .duffel-components .seat-map__tab-select-option:last-child {\n margin-left: 1px;\n }\n",""]),e.exports=n},4390:function(e,n,t){(n=t(3645)(!1)).push([e.id,".duffel-components {\n --FONT-FAMILY: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',\n 'Droid Sans', 'Helvetica Neue', sans-serif;\n --FONT-SIZES-C0: 20px;\n --FONT-SIZES-C1: 16px;\n --FONT-SIZES-C2: 14px;\n --FONT-SIZES-C3: 12px;\n --FONT-SIZES-H2: 32px;\n --FONT-SIZES-H3: 28px;\n --FONT-SIZES-H4: 24px;\n --FONT-SIZES-H5: 20px;\n}\n.duffel-components {\n --SPACING-XL-3: 128px;\n --SPACING-XL-2: 64px;\n --SPACING-XL-1: 56px;\n --SPACING-LG-3: 48px;\n --SPACING-LG-2: 40px;\n --SPACING-LG-1: 32px;\n --SPACING-MD-3: 24px;\n --SPACING-MD-2: 20px;\n --SPACING-MD-1: 18px;\n --SPACING-SM-3: 16px;\n --SPACING-SM-2: 12px;\n --SPACING-SM-1: 8px;\n --SPACING-XS-3: 6px;\n --SPACING-XS-2: 4px;\n --SPACING-XS-1: 2px;\n --SPACING-NONE: 0;\n}\n.duffel-components {\n --GREY-100: #f7f5f9;\n --GREY-200: #e2e2e8;\n --GREY-400: #ababb4;\n --GREY-500: #86868e;\n --GREY-600: #696972;\n --GREY-700: #4b4b55;\n --GREY-900: #29292e;\n --RED: #e3350f;\n --BLACK: 0, 0, 0;\n --WHITE: 255, 255, 255;\n --ACCENT: 57, 111, 233;\n --ACCENT-LIGHT-100: 0.08;\n --ACCENT-LIGHT-200: 0.24;\n --ACCENT-LIGHT-300: 0.48;\n --ACCENT-LIGHT-1000: 1;\n}\n.duffel-components {\n --TRANSITIONS-CUBIC-BEZIER: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);\n}\n.duffel-components {\n box-sizing: border-box;\n -webkit-overflow-scrolling: touch;\n -webkit-font-smoothing: antialiased;\n font-family: var(--FONT-FAMILY);\n overflow: hidden;\n height: 100%;\n}\n",""]),e.exports=n},3645:function(e){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=function(e,n){var t,r,o,i=e[1]||"",s=e[3];if(!s)return i;if(n&&"function"==typeof btoa){var a=(t=s,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(o," */")),l=s.sources.map((function(e){return"/*# sourceURL=".concat(s.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([a]).join("\n")}return[i].join("\n")}(n,e);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var s=this[i][0];null!=s&&(o[s]=!0)}for(var a=0;a<e.length;a++){var l=[].concat(e[a]);r&&o[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),n.push(l))}},n}},4821:function(e,n,t){var r=t(3379),o=t(2330);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},1357:function(e,n,t){var r=t(3379),o=t(7711);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3832:function(e,n,t){var r=t(3379),o=t(7403);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3708:function(e,n,t){var r=t(3379),o=t(2300);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},6862:function(e,n,t){var r=t(3379),o=t(9211);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},294:function(e,n,t){var r=t(3379),o=t(3970);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},4108:function(e,n,t){var r=t(3379),o=t(9009);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},9512:function(e,n,t){var r=t(3379),o=t(4880);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},4157:function(e,n,t){var r=t(3379),o=t(7682);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},7717:function(e,n,t){var r=t(3379),o=t(4287);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},1232:function(e,n,t){var r=t(3379),o=t(6471);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3662:function(e,n,t){var r=t(3379),o=t(5655);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},5356:function(e,n,t){var r=t(3379),o=t(208);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},5254:function(e,n,t){var r=t(3379),o=t(3214);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},1601:function(e,n,t){var r=t(3379),o=t(3633);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},9032:function(e,n,t){var r=t(3379),o=t(8538);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},5567:function(e,n,t){var r=t(3379),o=t(3801);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3009:function(e,n,t){var r=t(3379),o=t(6658);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},7170:function(e,n,t){var r=t(3379),o=t(5215);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},850:function(e,n,t){var r=t(3379),o=t(1826);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},7562:function(e,n,t){var r=t(3379),o=t(4390);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);r(o,{insert:"head",singleton:!1}),e.exports=o.locals||{}},3379:function(e,n,t){"use strict";var r,o=function(){var e={};return function(n){if(void 0===e[n]){var t=document.querySelector(n);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[n]=t}return e[n]}}(),i=[];function s(e){for(var n=-1,t=0;t<i.length;t++)if(i[t].identifier===e){n=t;break}return n}function a(e,n){for(var t={},r=[],o=0;o<e.length;o++){var a=e[o],l=n.base?a[0]+n.base:a[0],c=t[l]||0,d="".concat(l," ").concat(c);t[l]=c+1;var f=s(d),u={css:a[1],media:a[2],sourceMap:a[3]};-1!==f?(i[f].references++,i[f].updater(u)):i.push({identifier:d,updater:g(u,n),references:1}),r.push(d)}return r}function l(e){var n=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=t.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){n.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(n);else{var s=o(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(n)}return n}var c,d=(c=[],function(e,n){return c[e]=n,c.filter(Boolean).join("\n")});function f(e,n,t,r){var o=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(n,o);else{var i=document.createTextNode(o),s=e.childNodes;s[n]&&e.removeChild(s[n]),s.length?e.insertBefore(i,s[n]):e.appendChild(i)}}function u(e,n,t){var r=t.css,o=t.media,i=t.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,m=0;function g(e,n){var t,r,o;if(n.singleton){var i=m++;t=p||(p=l(n)),r=f.bind(null,t,i,!1),o=f.bind(null,t,i,!0)}else t=l(n),r=u.bind(null,t,n),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else o()}}e.exports=function(e,n){(n=n||{}).singleton||"boolean"==typeof n.singleton||(n.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var t=a(e=e||[],n);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var o=s(t[r]);i[o].references--}for(var l=a(e,n),c=0;c<t.length;c++){var d=s(t[c]);0===i[d].references&&(i[d].updater(),i.splice(d,1))}t=l}}}},9084:function(e){"use strict";e.exports=require("assert")},1238:function(e){"use strict";e.exports=require("base64-js")},5665:function(e){"use strict";e.exports=require("ieee754")},6464:function(e){"use strict";e.exports=require("util")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return e[r](i,i.exports,t),i.exports}t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,{a:n}),n},t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){"use strict";t.r(r),t.d(r,{CardPayment:function(){return x},SeatSelection:function(){return le},renderCardPaymentComponent:function(){return C},renderSeatSelectionComponent:function(){return ce}});var e=require("react/jsx-runtime"),n=require("react"),o=t.n(n),i=require("@stripe/react-stripe-js"),s=require("@stripe/stripe-js"),a=require("classnames"),l=t.n(a),c=(t(5567),t(5108));const d={arrow_forward:(0,e.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"},void 0),bassinet:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M19 12C19 14.1217 18.1571 16.1566 16.6569 17.6569C15.1566 19.1571 13.1217 20 11 20C8.87827 20 6.84344 19.1571 5.34315 17.6569C3.84286 16.1566 3 14.1217 3 12L11 12H19Z"},void 0),(0,e.jsx)("path",{d:"M16.1347 5.86529L11 11V4C12.0506 4 13.0909 4.20693 14.0615 4.60896C14.8136 4.92052 15.5125 5.34451 16.1347 5.86529ZM16.8602 6.55405L12.4142 11H18.9373C18.8482 10.293 18.6649 9.59962 18.391 8.93853C18.0264 8.05823 17.5077 7.25087 16.8602 6.55405Z"},void 0)]},void 0),chevron:(0,e.jsx)("path",{d:"M5 13H16.17L11.29 17.88C10.9 18.27 10.9 18.91 11.29 19.3C11.68 19.69 12.31 19.69 12.7 19.3L19.29 12.71C19.68 12.32 19.68 11.69 19.29 11.3L12.71 4.7C12.32 4.31 11.69 4.31 11.3 4.7C10.91 5.09 10.91 5.72 11.3 6.11L16.17 11H5C4.45 11 4 11.45 4 12C4 12.55 4.45 13 5 13Z"},void 0),close:(0,e.jsx)("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"},void 0),closet:(0,e.jsx)("path",{d:"M12 4C11.0717 4 10.1815 4.36875 9.52513 5.02513C8.86875 5.6815 8.5 6.57174 8.5 7.5H10.5C10.5 7.10218 10.658 6.72064 10.9393 6.43934C11.2206 6.15804 11.6022 6 12 6C12.3978 6 12.7794 6.15804 13.0607 6.43934C13.342 6.72064 13.5 7.10218 13.5 7.5C13.5 7.89782 13.342 8.27936 13.0607 8.56066C12.7794 8.84196 12.3978 9 12 9C11.45 9 11 9.45 11 10V11.75L2.4 18.2C2.23209 18.3259 2.10807 18.5015 2.04549 18.7018C1.98291 18.9022 1.98495 19.1171 2.05132 19.3162C2.11769 19.5153 2.24502 19.6885 2.41529 19.8112C2.58556 19.934 2.79012 20 3 20H21C21.2099 20 21.4144 19.934 21.5847 19.8112C21.755 19.6885 21.8823 19.5153 21.9487 19.3162C22.0151 19.1171 22.0171 18.9022 21.9545 18.7018C21.8919 18.5015 21.7679 18.3259 21.6 18.2L13 11.75V10.85C13.7216 10.6349 14.3546 10.1927 14.805 9.58919C15.2554 8.98569 15.4991 8.25303 15.5 7.5C15.5 6.57174 15.1313 5.6815 14.4749 5.02513C13.8185 4.36875 12.9283 4 12 4ZM12 13.5L18 18H6L12 13.5Z"},void 0),exit_row:(0,e.jsx)("path",{d:"M20 11H6.83001L9.71001 8.12001C10.1 7.73001 10.1 7.10001 9.71001 6.71001C9.32001 6.32001 8.69001 6.32001 8.30001 6.71001L3.71001 11.3C3.32001 11.69 3.32001 12.32 3.71001 12.71L8.30001 17.3C8.69001 17.69 9.32001 17.69 9.71001 17.3C10.1 16.91 10.1 16.28 9.71001 15.89L6.83001 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11Z"},void 0),exit_row_right:(0,e.jsx)("path",{d:"M4 11H17.17L14.29 8.12001C13.9 7.73001 13.9 7.10001 14.29 6.71001C14.68 6.32001 15.31 6.32001 15.7 6.71001L20.29 11.3C20.68 11.69 20.68 12.32 20.29 12.71L15.7 17.3C15.31 17.69 14.68 17.69 14.29 17.3C13.9 16.91 13.9 16.28 14.29 15.89L17.17 13H4C3.45 13 3 12.55 3 12C3 11.45 3.45 11 4 11Z"},void 0),galley:(0,e.jsx)("path",{d:"M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"},void 0),lavatory:(0,e.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6h3zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2zm9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2z"},void 0),lie_flat_seat:(0,e.jsx)("path",{d:"M6.16667 12.8333C6.81667 12.8333 7.45834 12.5833 7.95001 12.0833C8.91667 11.0916 8.90001 9.51659 7.91667 8.54992C7.42501 8.07492 6.79167 7.83325 6.16667 7.83325C5.51667 7.83325 4.87501 8.08325 4.38334 8.58325C3.41667 9.57492 3.43334 11.1499 4.41667 12.1166C4.90834 12.5916 5.54167 12.8333 6.16667 12.8333ZM5.57501 9.74992C5.73334 9.59159 5.94167 9.49992 6.16667 9.49992C6.38334 9.49992 6.59167 9.58325 6.75001 9.73325C7.08334 10.0583 7.08334 10.5749 6.76667 10.9083C6.60001 11.0749 6.39167 11.1666 6.16667 11.1666C5.95001 11.1666 5.74167 11.0833 5.58334 10.9333C5.25001 10.5999 5.25001 10.0833 5.57501 9.74992ZM17 7.83325H9.50001V12.8333H20.3333V11.1666C20.3333 9.32492 18.8417 7.83325 17 7.83325ZM11.1667 11.1666V9.49992H17C17.9167 9.49992 18.6667 10.2499 18.6667 11.1666H11.1667ZM3.66667 15.3333H8.66667V16.9999H15.3333V15.3333H20.3333V13.6666H3.66667V15.3333Z"},void 0),no_airplane:(0,e.jsx)("path",{d:"M14.6674 10.0001V2.66675C14.6674 1.56008 13.7741 0.666748 12.6674 0.666748C11.5607 0.666748 10.6674 1.56008 10.6674 2.66675V7.57341L21.1074 18.0134L25.3341 19.3334V16.6667L14.6674 10.0001ZM1.33407 5.02675L7.9874 11.6801L0.000732422 16.6667V19.3334L10.6674 16.0001V23.3334L8.00073 25.3334V27.3334L12.6674 26.0001L17.3341 27.3334V25.3334L14.6674 23.3334V18.3601L22.3074 26.0001L24.0007 24.3067L3.0274 3.33341L1.33407 5.02675Z"},void 0),no_seat:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("path",{d:"M25.1667 21.9733L23.4733 23.6667L2.5 2.69333L4.19333 1L7.16667 3.97333L16.5267 13.3333L19.1933 16L24.5 21.3067L25.1667 21.9733Z"},void 0),(0,e.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.16667 24H3.16667V16H19.1933L24.5 21.3067V24H20.5V20H7.16667V24ZM27.1667 9.33333H23.1667V13.3333H27.1667V9.33333ZM4.5 9.33333H0.5V13.3333H4.5V9.33333ZM20.3333 13.3333H20.5V2.66667C20.5 1.2 19.3 0 17.8333 0H9.83333C9.05784 0 8.3569 0.335483 7.86848 0.868484L20.3333 13.3333ZM16.5267 13.3333L7.16667 3.97333V13.3333H16.5267Z"},void 0)]},void 0),seat:(0,e.jsx)("path",{d:"M7.59 5.41012C6.81 4.63012 6.81 3.36012 7.59 2.58012C8.37 1.80012 9.64 1.80012 10.42 2.58012C11.2 3.36012 11.2 4.63012 10.42 5.41012C9.63 6.20012 8.37 6.20012 7.59 5.41012ZM6 16.0001V8.00012C6 7.45012 5.55 7.00012 5 7.00012C4.45 7.00012 4 7.45012 4 8.00012V16.0001C4 18.7601 6.24 21.0001 9 21.0001H14C14.55 21.0001 15 20.5501 15 20.0001C15 19.4501 14.55 19.0001 14 19.0001H9C7.34 19.0001 6 17.6601 6 16.0001ZM19.28 19.3501L15.51 15.5801C15.14 15.2101 14.63 15.0001 14.1 15.0001H11.5V11.3201C12.59 12.2101 14.16 13.0201 15.7 13.3401C16.37 13.4801 17 12.9801 17 12.3001C17 11.7701 16.61 11.3401 16.08 11.2501C14.66 11.0101 13.2 10.2401 12.33 9.28012L10.93 7.73012C10.74 7.52012 10.5 7.35012 10.24 7.23012C9.95 7.09012 9.62 7.00012 9.28 7.00012H9.25C8.01 7.00012 7 8.01012 7 9.25012V15.0001C7 16.6601 8.34 18.0001 10 18.0001H15.07L17.85 20.7801C18.24 21.1701 18.89 21.1701 19.28 20.7801C19.68 20.3901 19.68 19.7501 19.28 19.3501Z"},void 0),seat_paid_indicator:(0,e.jsx)("path",{d:"M11.7686 0.731368C12.7766 -0.276576 14.5 0.437294 14.5 1.86274V10.8C14.5 12.5673 13.0673 14 11.3 14H2.36274C0.937294 14 0.223427 12.2766 1.23137 11.2686L11.7686 0.731368Z"},void 0),stairs:(0,e.jsx)("path",{d:"M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M18,8h-2.42v3.33H13v3.33h-2.58 V18H6v-2h2.42v-3.33H11V9.33h2.58V6H18V8z"},void 0),wifi:(0,e.jsx)("path",{d:"M2.83333 9.50005L4.49999 11.1667C8.64166 7.02505 15.3583 7.02505 19.5 11.1667L21.1667 9.50005C16.1083 4.44172 7.89999 4.44172 2.83333 9.50005ZM9.49999 16.1667L12 18.6667L14.5 16.1667C13.125 14.7834 10.8833 14.7834 9.49999 16.1667ZM6.16666 12.8334L7.83333 14.5C10.1333 12.2 13.8667 12.2 16.1667 14.5L17.8333 12.8334C14.6167 9.61672 9.39166 9.61672 6.16666 12.8334Z"},void 0)},f=e=>e in d?d[e]:(c.warn("The icon ".concat(e)),null),u=n=>{let{name:t,size:r,className:o,viewBox:i}=n;return(0,e.jsx)("svg",Object.assign({className:l()("ff-icon",o),width:r||24,height:r||24,viewBox:i||"0 0 24 24","aria-label":t,"data-testid":t},{children:f(t)}),void 0)};t(9032);const p=n.forwardRef(((n,t)=>{let{className:r,disabled:o=!1,iconAfter:i,iconBefore:s,iconOnly:a,intent:c="PRIMARY",text:d,type:f="button",id:p,...m}=n;const g=l()("duffel-button","duffel-button--solid",r,{"duffel-button--primary":"PRIMARY"===c,"duffel-button--muted":"MUTED"===c,"duffel-button--icon-only":a,"duffel-button--is-disabled":o});return(0,e.jsxs)("button",Object.assign({ref:t,type:f,className:g,disabled:o,"aria-label":d,"data-testid":p,id:p},m,{children:[s&&(0,e.jsx)(u,{className:"duffel-button__icon duffel-button__icon--before",name:s},void 0),a&&(0,e.jsx)(u,{className:"duffel-button__icon",name:a},void 0),!a&&(0,e.jsx)("span",Object.assign({className:"duffel-button__text"},{children:d}),void 0),i&&(0,e.jsx)(u,{className:"duffel-button__icon duffel-button__icon--after",name:i},void 0)]}),void 0)})),m=n=>{let{className:t,children:r,...o}=n;const i=l()("chromeless-button",t);return(0,e.jsx)("button",Object.assign({className:i},o,{children:r}),void 0)};var g=require("react-dom"),h=t.n(g),v=(t(7562),t(4821),t(8764).Buffer);const b={style:{base:{color:"#32325d",fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif"',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#ababb4"}},invalid:{color:"#e3350f",iconColor:"#e3350f"}}},y=t=>{let{duffelPaymentIntentClientToken:r,successfulPaymentHandler:o,errorPaymentHandler:s}=t;const[a,l]=n.useState(null),[c,d]=n.useState(!1),[f,u]=n.useState(!1),[m,g]=n.useState(!1),[h,y]=n.useState(""),x=(0,i.useStripe)(),C=(0,i.useElements)();return n.useEffect((()=>{if(C&&!a){const e=null==C?void 0:C.getElement("card");e&&l(e)}}),[C,a]),n.useEffect((()=>{a&&a.on("change",(e=>{const{error:n,complete:t}=e;n?(u(!0),y(n.message)):u(!1),d(!!t)}))}),[a]),r?(0,e.jsx)("div",Object.assign({className:"duffel-components"},{children:(0,e.jsx)("div",Object.assign({className:"card-payment__container"},{children:(0,e.jsxs)("form",Object.assign({onSubmit:async e=>{if(e.preventDefault(),x&&C&&a){g(!0);const e=v.from(r,"base64").toString(),n=JSON.parse(e),{client_secret:t}=n,i=await x.confirmCardPayment(t,{payment_method:{card:a,metadata:{duffel_components_version:"1.2.0"}}});if(g(!1),i.error){const{error:e}=i;s(e)}else o()}}},{children:[m&&(0,e.jsx)("div",{className:"card-payment--in-progress","aria-live":"polite","aria-busy":"true"},void 0),(0,e.jsx)(i.CardElement,{className:"card-details",options:b},void 0),(0,e.jsx)("div",Object.assign({className:"card-payment__container--invalid",role:"alert"},{children:f&&h}),void 0),(0,e.jsx)(p,{className:"card-payment__pay-button",type:"submit",text:m?"Processing...":"Pay",disabled:!c||m,"aria-label":"Pay"},void 0)]}),void 0)}),void 0)}),void 0):null},x=t=>{const[r,o]=n.useState(null),{duffelPaymentIntentClientToken:a}=t,l=v.from(a,"base64").toString(),c=JSON.parse(l),{publishable_key:d}=c;return n.useEffect((()=>{if(!r&&d){const e=(0,s.loadStripe)(d);e&&o(e)}}),[r,d]),(0,e.jsx)(i.Elements,Object.assign({stripe:r},{children:(0,e.jsx)(y,Object.assign({},t),void 0)}),void 0)},C=(n,t)=>{h().render((0,e.jsx)(x,Object.assign({},t),void 0),document.getElementById(n))};var _=require("prop-types"),S=t.n(_),N=require("smoothscroll-polyfill"),w=t.n(N),E=require("react-popper");const I=()=>{const[e,n]=o().useState(null);return o().useEffect((()=>{null===e&&n(window.innerWidth);const t=()=>n(window.innerWidth);return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),null!=e?e:0};const A=e=>{let{id:t,children:r}=e;const o=function(e){const t=n.useRef(null);return n.useEffect((function(){const n=document.querySelector("#".concat(e)),r=n||function(e){const n=document.createElement("div");return n.setAttribute("id",e),n}(e);if(n||function(e){if(!document.body.lastElementChild)throw Error("document body not rendered");document.body.insertBefore(e,document.body.lastElementChild.nextElementSibling)}(r),!t.current)throw Error("elementRef not assigned");return r.appendChild(t.current),function(){if(!t.current)throw Error("elementRef not assigned");t.current.remove(),r.childElementCount||r.remove()}}),[e]),t.current||(t.current=document.createElement("div")),t.current}(t);return(0,g.createPortal)(r,o)};t(3009);const j=n.forwardRef(((n,t)=>{let{children:r,style:o,id:i="seat-selection__popover",...s}=n;return(0,e.jsx)(A,Object.assign({id:i},{children:(0,e.jsx)("div",Object.assign({className:"duffel-components"},{children:(0,e.jsx)("div",Object.assign({className:"popover-container",id:i,"data-testid":i,style:o,ref:t},s,{children:r}),void 0)}),void 0)}),void 0)}));function T(n){let{value:t,onChange:r,options:o}=n;return(0,e.jsx)("div",Object.assign({className:"seat-map__tab-select"},{children:o.map((n=>(0,e.jsx)(m,Object.assign({type:"button",className:l()("seat-map__tab-select-option",{"seat-map__tab-select-option--selected":n===t}),onClick:()=>t!==n&&r(n)},{children:n}),n)))}),void 0)}t(7170),t(850);const O={error_loading:{title:"Error loading seat maps",message:"We weren’t able to load your seat maps.",iconName:"no_airplane"},error_unavailable:{title:"Seat selection unavailable",message:"Unfortunately seat selection is not available for this flight. A seat will be allocated by the airline.",iconName:"no_seat"}};t(1357);const G=n=>{let{errorType:t}=n;return(0,e.jsxs)("div",Object.assign({className:"error-state__container","data-testid":t},{children:[(0,e.jsx)("i",Object.assign({className:"error-state__icon"},{children:(0,e.jsx)(u,{name:O[t].iconName},void 0)}),void 0),(0,e.jsx)("h3",Object.assign({className:"error-state__title"},{children:O[t].title}),void 0),(0,e.jsx)("p",Object.assign({className:"error-state__copy"},{children:O[t].message}),void 0)]}),void 0)};var B=t(5108);class L extends n.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){B.error(e)}render(){return this.state.hasError?(0,e.jsx)("div",Object.assign({className:"duffel-components"},{children:(0,e.jsx)(G,{errorType:"error_loading"},void 0)}),void 0):this.props.children}}var R=require("lodash/cloneDeep"),M=t.n(R);const P=e=>e<768,k=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Intl.NumberFormat(n,{style:"currency",currency:e,...t});return e=>{const n=r.format(e);return t&&t.signDisplay&&("always"===t.signDisplay||"exceptZero"===t.signDisplay&&0!==e)?n.replace(/^([+-])/,"$1 "):n}},U=e=>e.reduce(((e,n)=>e+n),0),H=/P(?:([.,\d]+)D)?T(?:([.,\d]+)H)?(?:([.,\d]+)M)?/i,F=(e,n)=>(e.indexOf(n)+1)%e.length;t(3832);const z=t=>{let{origin:r,destination:o,duration:i,done:s}=t;const[a,l]=n.useState(!1),c=n.useRef(null);return n.useEffect((()=>{a&&s&&s()})),a?null:(0,e.jsxs)("div",Object.assign({className:"loading-state__container"},{children:[(0,e.jsx)("span",Object.assign({className:"loading-state__message"},{children:"Loading seat map"}),void 0),(0,e.jsx)("div",Object.assign({className:"loading-state__progress-indicator"},{children:(0,e.jsx)("span",{className:"loading-state__progress-indicator--status",ref:c,onAnimationEnd:()=>l(!0),"data-testid":"loading-state__progress-indicator--status"},void 0)}),void 0),(0,e.jsxs)("div",Object.assign({className:"loading-state__segment"},{children:[(0,e.jsx)("span",Object.assign({className:"loading-state__segment--origin"},{children:r}),void 0),(0,e.jsx)(u,{name:"arrow_forward",size:20},void 0),(0,e.jsx)("span",Object.assign({className:"loading-state__segment--destination"},{children:o}),void 0)]}),void 0),(0,e.jsx)("span",Object.assign({className:"loading-state__duration"},{children:i}),void 0)]}),void 0)},Z=()=>({}),Y=(0,n.createContext)({offer:{},seatMaps:[],passengers:[],segments:[],segmentId:"",passengerId:"",currentSelectedSegment:{},currentSelectedPassenger:{},seatSelection:{},size:"default",currentSeat:{},setCurrentSeat:Z,onSelectSeat:Z,onSelectPassenger:Z,setIsLoading:Z,extendedSeatInfo:[],setExtendedSeatInfo:Z,currency:""}),q=()=>(0,n.useContext)(Y);t(3708);const D=n=>{let{segment:t,passenger:r,passengerIndex:o}=n;const{seatSelection:i,segmentId:s,passengerId:a,onSelectPassenger:c,currentSelectedSegment:d,setIsLoading:f}=q(),u=i[t.id]&&i[t.id][r.id];return(0,e.jsxs)("button",Object.assign({"data-testid":"passenger-".concat(r.id),type:"button",onClick:()=>{d.id!==t.id&&f(!0),c(r.id,t.id)},className:l()("passenger-selection-passenger",{"passenger-selection-passenger--selected":s===t.id&&a===r.id})},{children:[(0,e.jsx)("span",Object.assign({className:"passenger-selection-passenger__identifier"},{children:r.name||"Passenger ".concat(o+1)}),void 0),u&&u.service?(0,e.jsxs)("span",Object.assign({className:"passenger-selection-passenger__action"},{children:[(0,e.jsx)("span",Object.assign({className:"passenger-selection-passenger__seat-designator"},{children:u.designator}),void 0),(0,e.jsx)("span",Object.assign({className:"passenger-selection-passenger__seat-price"},{children:k(u.service.total_currency)(+u.service.total_amount)}),void 0)]}),void 0):(0,e.jsx)("span",Object.assign({className:"passenger-selection-passenger__action"},{children:"Unselected"}),void 0)]}),r.id)};t(5254);const V=n=>{let{segment:t,className:r}=n;return(0,e.jsxs)("h3",Object.assign({className:l()(r,"passenger-segment__title")},{children:[t.origin.iata_code,(0,e.jsx)(u,{name:"chevron",className:"passenger-segment__chevron",size:20},void 0),t.destination.iata_code]}),void 0)};t(6862);const $=n=>{let{segment:t}=n;const{passengers:r}=q();return(0,e.jsxs)("li",Object.assign({className:"passenger-selection-segment"},{children:[Object.keys(t).length>0&&(0,e.jsx)(V,{segment:t},void 0),r.map(((n,r)=>(0,e.jsx)(D,{segment:t,passenger:n,passengerIndex:r},n.id)))]}),t.id)};t(294);const X=()=>{const{segments:n}=q();return(0,e.jsx)("div",Object.assign({className:"passenger-selection"},{children:(0,e.jsx)("ul",Object.assign({className:"passenger-selection__segments"},{children:n.map((n=>(0,e.jsx)($,{segment:n},n.id)))}),void 0)}),void 0)},W=n=>{let{value:t,setValue:r}=n;const o=["Lower deck","Upper deck"];return(0,e.jsx)(T,{options:o,value:o[t],onChange:e=>r(o.indexOf(e))},void 0)};t(4108);const J=n=>{let{symbols:t}=n;return(0,e.jsxs)("div",Object.assign({className:"seat-map__legend"},{children:[(0,e.jsxs)("span",Object.assign({className:"seat-map__legend-item"},{children:[(0,e.jsx)("span",Object.assign({className:"seat-map__legend-seat seat-map__legend-seat--fee-payable","aria-label":"Additional cost for seat"},{children:(0,e.jsx)(u,{name:"seat_paid_indicator",className:"seat-map__legend-seat--fee-payable-indicator",size:12},void 0)}),void 0),"Additional Cost"]}),void 0),(0,e.jsxs)("span",Object.assign({className:"seat-map__legend-item"},{children:[(0,e.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--included","aria-label":"Included seat"},void 0),"Included"]}),void 0),(0,e.jsxs)("span",Object.assign({className:"seat-map__legend-item"},{children:[(0,e.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--selected","aria-label":"Selected seat"},void 0),"Selected"]}),void 0),(0,e.jsxs)("span",Object.assign({className:"seat-map__legend-item"},{children:[(0,e.jsx)("span",Object.assign({className:"seat-map__legend-seat","aria-label":"Unavailable seat"},{children:(0,e.jsx)(u,{name:"close",size:14},void 0)}),void 0),"Unavailable"]}),void 0),[...t].map((n=>(0,e.jsxs)("span",Object.assign({className:"seat-map__legend-item seat-map__legend-item--symbol"},{children:[(0,e.jsx)(u,{name:n,size:20},void 0),n.split("_")[0]]}),n)))]}),void 0)};t(9512);const K=["bassinet","exit_row"],Q=n=>{let{type:t}=n;const r=I();return(0,e.jsx)("div",Object.assign({className:l()("map-element map-element--amenity",{"map-element--wrapped":!K.includes(t)}),"aria-label":t.toString()},{children:(0,e.jsx)(u,{name:t,size:P(r)?16:24},void 0)}),void 0)};t(1232);const ee=n=>{let{seat:t,service:r}=n;const o=r?k(r.total_currency)(+r.total_amount):"";return(0,e.jsxs)("div",Object.assign({className:"seat-info"},{children:[(0,e.jsxs)("div",Object.assign({className:"seat-info__details"},{children:[(0,e.jsx)("strong",{children:null==t?void 0:t.designator},void 0),(0,e.jsxs)("span",{children:[(null==t?void 0:t.name)||"Seat"," "]},void 0),(0,e.jsx)("strong",{children:o},void 0)]}),void 0),null==t?void 0:t.disclosures.map(((n,t)=>(0,e.jsx)("div",Object.assign({className:"seat-info__disclosure"},{children:n}),t)))]}),void 0)};t(7717);const ne=t=>{let{seat:r}=t;const i=I(),[s,a]=n.useState(!1),{popper:{styles:c,attributes:d},setReferenceElement:f,setPopperElement:p}=((e,n,t,r)=>{const{shouldInsideClickClose:i}=Object.assign({},{shouldInsideClickClose:!1},{shouldInsideClickClose:!1}),[s,a]=o().useState(null),[l,c]=o().useState(null),[d,f]=o().useState(null),u={placement:"auto",modifiers:[{name:"arrow",options:{element:d}}],placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}]},p=(0,E.usePopper)(s,l,u),m=o().useCallback((e=>{const t=!!l&&l.contains(e.target);t||n(),i&&t&&setTimeout(n,10)}),[l,n,i]),g=o().useCallback((e=>{"Escape"===e.key&&n()}),[n]);return o().useEffect((()=>{if(null!==document)return e&&(document.body.addEventListener("click",m),document.body.addEventListener("keydown",g)),()=>{document.body.removeEventListener("click",m),document.body.removeEventListener("keydown",g)}}),[e,m,g]),{popper:p,setReferenceElement:a,setPopperElement:c,setArrowElement:f}})(s,(()=>a(!1))),{passengers:m,passengerId:g,segmentId:h,seatSelection:v,currentSeat:b,setCurrentSeat:y,onSelectSeat:x,extendedSeatInfo:C,setExtendedSeatInfo:_}=q(),{service:S,isAvailable:N,selectedBy:w}=((e,n,t)=>{var r,o;const i=null===(r=e.available_services)||void 0===r?void 0:r.find((e=>e.passenger_id===n)),s=null===(o=e.available_services)||void 0===o?void 0:o.find((e=>{var n,r;return!!t&&(null===(n=t[e.passenger_id])||void 0===n||null===(r=n.service)||void 0===r?void 0:r.id)===e.id}));return{service:i,isAvailable:i&&!s||!1,selectedBy:null==s?void 0:s.passenger_id}})(r,g,v[h]),A=n.useMemo((()=>((e,n)=>{if(!n)return!1;let t="";return e.forEach(((e,r)=>{if(e.name){const r=new RegExp(/(\p{L}{1})\p{L}+/,"gu"),s=[...e.name.matchAll(r)]||[];var o,i;if(e.id===n)return t=(((null===(o=s.shift())||void 0===o?void 0:o[1])||"")+((null===(i=s.pop())||void 0===i?void 0:i[1])||"")).toUpperCase()}if(e.id===n)return t="P".concat(r+1)})),t})(m,w)),[m,w]),T="".concat(S&&k(S.total_currency)(+S.total_amount)),O=(null==S?void 0:S.total_amount)&&0!==parseInt(null==S?void 0:S.total_amount),G=w&&w!==g,B=n.useMemo((()=>e=>{if(null!==e){const{segment:n,seat:{designator:t}}=e;C.map((e=>e)).find((e=>e.segment===n&&e.seat.designator===t))?_(C.splice(C.findIndex((e=>e.segment!==n&&e.seat.designator!==t)))):S&&_([...C,{...e,service:S}])}}),[C,S,_]);return(0,e.jsx)(e.Fragment,{children:w||N?(0,e.jsxs)("button",Object.assign({id:r.designator,type:"button",className:l()("map-element","map-element__seat",{"map-element--available":N&&!w,"map-element--selected":w,"map-element--actionable":N||w==g}),onClick:e=>{S&&B({segment:h,seat:r,service:S}),P(i)&&(b.seat===r?y({seat:null,service:void 0}):y({seat:r,service:S})),S&&!G&&(x(w===g?null:{designator:r.designator,service:S}),e.target.blur())},onMouseEnter:()=>!P(i)&&a(!0),onMouseLeave:()=>!P(i)&&a(!1),ref:f,"aria-label":"".concat(r.designator," ").concat(r.name||"Seat"," ").concat(T)},{children:[O&&(0,e.jsx)(u,{name:"seat_paid_indicator",className:"map-element--fee-payable",size:P(i)?16:24},void 0),w?A:r.designator.charAt(r.designator.length-1),s&&!G&&S&&!P(i)&&(0,e.jsx)(j,Object.assign({ref:p,style:{...c.popper}},d.popper,{children:(0,e.jsx)(ee,{seat:r,service:S},void 0)}),void 0)]}),void 0):(0,e.jsx)("span",Object.assign({className:"map-element map-element__seat","aria-label":"".concat(r.designator," ").concat(r.name||"Seat"," Unavailable")},{children:(0,e.jsx)(u,{name:"close",size:P(i)?14:16},void 0)}),void 0)},void 0)};t(4157);const te=(n,t,r)=>(0,e.jsx)(e.Fragment,{children:"seat"===n.type?(0,e.jsx)(ne,{seat:n},t):"empty"===n.type?(0,e.jsx)("div",{className:"map-element map-element--empty"},t):"exit_row"===n.type?(0,e.jsx)("div",Object.assign({className:l()("map-element map-element--exit",{"map-element--exit--right":r>0})},{children:0===r?(0,e.jsx)(u,{name:"exit_row"},void 0):(0,e.jsx)(u,{name:"exit_row_right"},void 0)}),t):(0,e.jsx)(Q,{type:n.type},t)},void 0),re=t=>{let{row:r,hasWings:o}=t;const i=(e=>{const n=Object.values(e.sections).map((e=>e.elements)).reduce(((e,n)=>e.concat(n)),[]).filter((e=>"seat"===e.type));return n.length>0?n[0].designator.substring(0,n[0].designator.length-1):null})(r);return(0,e.jsx)(e.Fragment,{children:Object.values(r.sections).map(((t,s)=>(0,e.jsxs)(n.Fragment,{children:[(0,e.jsx)("div",Object.assign({className:l()("map-section",{"map-section--left":0===s,"map-section--right":s===r.sections.length-1,"map-section--wing":o}),"data-testid":"row-section-".concat(s)},{children:t.elements.length>0?t.elements.map(((t,r)=>(0,e.jsx)(n.Fragment,{children:te(t,r,s)},r))):te({type:"empty"},-1,s)}),void 0),s<Object.keys(r.sections).length-1&&(0,e.jsx)("span",Object.assign({className:"map-section__aisle"},{children:i}),void 0)]},s)))},void 0)};t(3662);const oe=()=>{const{segmentId:t,offer:r,seatMaps:o}=q(),[i,s]=n.useState(0),{cabin:a,hasMultipleDecks:c,anyHasWings:d}=((e,n,t,r)=>{const o=t.find((e=>e.segment_id===n));if(null==o||!o.cabins||0===(null==o?void 0:o.cabins.length))return{cabin:null};const i=r.slices.length>0&&r.slices[0].segments.length>0&&r.slices[0].segments[0].passengers.length>0&&r.slices[0].segments[0].passengers[0].cabin_class,s=null==o?void 0:o.cabins.filter((e=>e.cabin_class===i));return{cabin:s.find((n=>n.deck===e))||s[0]||(null==o?void 0:o.cabins[0]),hasMultipleDecks:s.length>1,anyHasWings:s.some((e=>e.wings))}})(i,t,o,r);if(!a)return(0,e.jsx)(G,{errorType:"error_unavailable"},void 0);const f=(e=>{const n=new Set;for(const t of e.rows)for(const e of t.sections)for(const t of e.elements)"seat"!==t.type&&"empty"!==t.type&&n.add(t.type);return n})(a);return(0,e.jsxs)("div",Object.assign({"data-testid":"seat-map",className:l()("seat-map",{"seat-map--wings":d})},{children:[c&&(0,e.jsx)(W,{value:i,setValue:e=>{s(e)}},void 0),(0,e.jsx)("div",Object.assign({className:"seat-map__legend-container"},{children:(0,e.jsx)(J,{symbols:f},void 0)}),void 0),(0,e.jsx)("div",Object.assign({className:"seat-map__map-container",style:{"--CABIN-AISLES":a.aisles}},{children:a.rows.map(((n,t)=>(0,e.jsx)(re,{row:n,hasWings:!!a.wings&&a.wings.first_row_index<=t&&a.wings.last_row_index>=t},t)))}),void 0)]}),void 0)};t(1601);const ie=n=>{let{primaryButtonCopy:t,onBackClick:r,disableBackButton:o,onClick:i,iconAfter:s}=n;const a="summary-button-".concat(t.replace(" ","-").toLowerCase());return(0,e.jsxs)("div",Object.assign({className:"summary__actions"},{children:[(0,e.jsx)(p,{text:"Previous passenger",onClick:r,disabled:o,intent:"MUTED",iconOnly:"chevron","aria-label":"Previous passenger",className:"summary__actions--previous"},void 0),(0,e.jsx)(p,Object.assign({"data-testid":a,text:t,className:"summary__confirmation-btn",onClick:i},s),void 0)]}),void 0)},se=t=>{let{onClick:r,primaryButtonCopy:o,iconAfter:i,onBackClick:s,disableBackButton:a}=t;const{seatSelection:l,segments:c,passengers:d,currentSelectedPassenger:f,currentSelectedSegment:u,offer:p,currency:m}=q(),g=(h=l,Object.values(h).map((e=>Object.values(e))).map((e=>e.map((e=>(null==e?void 0:e.service)||null)))).flat().filter((e=>null!==e)));var h;const v=n.useMemo((()=>U(g.map((e=>parseFloat(e.total_amount))))),[g]),b=n.useMemo((()=>U(c.map((e=>e.passengers.length)))),[c]),y=g&&g.length,x=y>0?k(g[0].total_currency)(v):p?k(m)(0):"0",C=f&&d.findIndex((e=>e.id===(null==f?void 0:f.id))),_=null!=f&&f.name?f.name:C>=0?"Passenger ".concat(C+1):"";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",Object.assign({className:"summary","data-testid":"seat-selection-summary"},{children:[(0,e.jsxs)("div",Object.assign({className:"summary__description"},{children:[(0,e.jsx)("div",Object.assign({className:"summary__description-title"},{children:"".concat(y," of ").concat(b," seat").concat(b>1?"s":""," selected")}),void 0),(0,e.jsxs)("div",Object.assign({className:"summary__description-cost"},{children:[x," will be added to the order"]}),void 0)]}),void 0),(0,e.jsx)(ie,{onBackClick:s,onClick:r,iconAfter:i,primaryButtonCopy:o,disableBackButton:a},void 0)]}),void 0),(0,e.jsxs)("div",Object.assign({className:"summary summary--mobile"},{children:[(0,e.jsxs)("div",Object.assign({className:"summary__segment"},{children:[Object.keys(u).length>0&&(0,e.jsx)(V,{segment:u},"summary-".concat(u.id)),_&&(0,e.jsx)("h3",Object.assign({className:"summary__segment-passenger"},{children:_}),void 0)]}),void 0),(0,e.jsxs)("div",Object.assign({className:"summary__description-cost"},{children:["Total Price ",(0,e.jsx)("strong",{children:x},void 0)]}),void 0),(0,e.jsx)(ie,{onBackClick:s,onClick:r,iconAfter:i,primaryButtonCopy:o,disableBackButton:a},void 0)]}),void 0)]},void 0)};t(5356);const ae=t=>{let{seatMaps:r,offer:o,passengers:i,initialSeatSelection:s,initialSegmentId:a,onSubmit:l,currencyConversion:c}=t;const d=i.sort(((e,n)=>e.id.localeCompare(n.id))),f=((e,n)=>{if(null!=n&&n.rate&&null!=n&&n.currency){const t=M()(e);return t.forEach((e=>e.cabins.forEach((e=>e.rows.forEach((e=>e.sections.forEach((e=>e.elements.forEach((e=>{"seat"===e.type&&e.available_services.map((e=>{e.total_amount=(parseInt(e.total_amount)*n.rate).toFixed(2).toString(),e.total_currency=n.currency}))})))))))))),t}return e})(r,c),[u,p]=n.useState("Next Passenger"),[m,g]=n.useState(""),[h,v]=n.useState(a||""),[b,y]=n.useState(""),[x,C]=n.useState(""),[_,S]=n.useState(s||{}),[N,E]=n.useState(i.length>0?d[0].id:""),A=o.slices.length>0&&o.slices[0],j=A&&A.segments.length>0&&A.segments[0].id,[T,O]=n.useState(a||j||""),[G,B]=n.useState("default"),[R,k]=n.useState({seat:null,service:void 0}),[U,Z]=n.useState(!0),[q,D]=n.useState([]);w().polyfill();const V=I(),$=n.useMemo((()=>o.slices.map((e=>e.segments)).flat().filter((e=>r.map((e=>e.segment_id)).includes(e.id)))),[o,r]),W=n.useMemo((()=>d.map((e=>e.id)).sort(((e,n)=>e.localeCompare(n)))),[d]);n.useMemo((()=>{if(Object.keys(_).length<=0){const e=new Map($.map((e=>{const n=new Map(e.passengers.map((e=>[e.passenger_id,null])));return[e.id,Object.fromEntries(new Map([...n.entries()].sort(((e,n)=>e[0].localeCompare(n[0])))))]}))),n=Object.fromEntries(e);n&&S(n)}}),[_,$]);const J=n.useMemo((()=>$.find((e=>e.id===T))||{}),[$,T]);n.useEffect((()=>{const e=()=>{window.innerWidth<1024&&"small"!==G?B("small"):window.innerWidth>=1024&&"default"!==G&&B("default")};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[G]),n.useEffect((()=>{const e=((e,n)=>Object.keys(n).reduce(((n,t)=>{const r=e.passengers;if(r){if(!(r.length>0)){const{[t]:e,...r}=n;return r}{const e=[];r.forEach((n=>{e.push(n.passenger_id)})),n={...n,[t]:e.sort(((e,n)=>e.localeCompare(n)))}}}return n}),{}))(J,_),n=Object.keys(e),t=F(n,J.id),r=e[T].indexOf(N),o=F(e[T],N),i=e[T][o],s=Object.keys(_).indexOf(T);return 0===n.length?p("Continue"):(y(i),r===J.passengers.length-1?s===n.length-1?p("Continue"):(g(n[t]),p("Next Flight")):p("Next Passenger"))}),[J,_,N,T]);const K=n.useMemo((()=>d.find((e=>{if(e.id===N)return{id:e.id,name:e.name||void 0}}))),[d,N]);if(0===d.length||!A||0===o.slices[0].segments.length)return null;const Q=()=>{const e=Object.keys(_[T]);if(e[0]===N){Z(!0),O(h);const n=Object.keys(_[h])[e.length-1];E(n)}else{const e=W.indexOf(N);0!==e&&E(W[e-1])}const n=_[h][x],t=q.map((e=>e)).find((e=>e.segment===h&&e.seat.designator===(null==n?void 0:n.designator)));t&&k({seat:t.seat,service:t.service})};return(0,e.jsx)(Y.Provider,Object.assign({value:{offer:o,segments:$,seatMaps:f,passengers:d,segmentId:T,passengerId:N,currentSelectedPassenger:K,currentSelectedSegment:J,seatSelection:_,size:G,onSelectSeat:e=>{const n=Object.assign({},_,{[T]:Object.assign({},_[T],{[N]:{...e}})});S(n)},onSelectPassenger:(e,n)=>{E(e),O(n);const t=_[n]&&_[n][e];if(t&&null!==t.designator){const e=document.getElementById(t.designator);e&&!(e=>{const n=e.getBoundingClientRect(),t=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(n.bottom<0||n.top-t>=0)})(e)&&(null==e||e.scrollIntoView({behavior:"smooth",block:"center"}))}},currentSeat:R,setCurrentSeat:k,setIsLoading:Z,extendedSeatInfo:q,setExtendedSeatInfo:D,currency:null!=c&&c.currency&&null!=c&&c.rate?c.currency:o.total_currency}},{children:(0,e.jsx)("div",Object.assign({className:"duffel-components"},{children:(0,e.jsxs)("div",Object.assign({className:"seat-selection"},{children:[(0,e.jsxs)("div",Object.assign({className:"seat-selection__content"},{children:[!P(V)&&(0,e.jsx)("aside",Object.assign({className:"seat-selection__content-child seat-selection__content-child--passengers"},{children:(0,e.jsx)(X,{},void 0)}),void 0),(0,e.jsx)("div",Object.assign({className:"seat-selection__content-child seat-selection__content-child--map"},{children:U?(()=>{const n=J.origin.iata_code||"",t=J.destination.iata_code||"",r=J.duration&&(e=>{const n=e.match(H);if(!n)return e;const t=n[1]&&"0"!==n[1]?"".concat(n[1],"d"):"",r=n[2]&&"0"!==n[2]?"".concat(n[2].toString().padStart(2,"0"),"h"):"",o=n[3]&&"0"!==n[3]?"".concat(n[3].toString().padStart(2,"0"),"m"):"";return"".concat(t," ").concat(r," ").concat(o).trim()})(J.duration)||"";return(0,e.jsx)(z,{origin:n,destination:t,duration:r,done:()=>Z(!1)},void 0)})():(0,e.jsx)(L,{children:(0,e.jsx)(oe,{},void 0)},void 0)}),void 0)]}),void 0),(()=>{const{seat:n,service:t}=R;return null!==n&&P(V)&&_[T]&&null!==_[T][N]?(0,e.jsx)("div",Object.assign({className:"seat-selection__mobile-seat-info"},{children:(0,e.jsx)(ee,{seat:n,service:t},void 0)}),void 0):null})(),(0,e.jsx)("div",Object.assign({className:"seat-selection__confirmation"},{children:(()=>{const n=T===j&&N===d[0].id||!1;switch(u){case"Continue":return(0,e.jsx)(se,{onClick:()=>{l(_),(()=>{const e=$[0];E(e.passengers[0].passenger_id),O(e.id)})()},onBackClick:Q,disableBackButton:n,primaryButtonCopy:u},void 0);case"Next Flight":return(0,e.jsx)(se,{onClick:()=>{Z(!0),v(T),E(b),O(m)},onBackClick:Q,disableBackButton:n,primaryButtonCopy:P(V)?"Next":u,iconAfter:{iconAfter:"chevron"}},void 0);default:return(0,e.jsx)(se,{onClick:()=>{C(N),E(b)},onBackClick:Q,disableBackButton:n,iconAfter:{iconAfter:"chevron"},primaryButtonCopy:P(V)?"Next":u},void 0)}})()}),void 0)]}),void 0)}),void 0)}),void 0)},le=n=>(0,e.jsx)(L,{children:(0,e.jsx)(ae,Object.assign({},n),void 0)},void 0);le.propTypes={offer:S().shape({allowed_passenger_identity_document_types:S().array.isRequired,available_services:S().array.isRequired,base_amount:S().string.isRequired,base_currency:S().string.isRequired,conditions:S().object.isRequired,created_at:S().string.isRequired,expires_at:S().string.isRequired,id:S().string.isRequired,live_mode:S().bool.isRequired,owner:S().shape({name:S().string.isRequired,id:S().string.isRequired,iata_code:S().string.isRequired}).isRequired,passenger_identity_documents_required:S().bool.isRequired,passengers:S().array.isRequired,payment_requirements:S().shape({payment_required_by:S().string,price_guarantee_expires_at:S().string,requires_instant_payment:S().bool.isRequired}).isRequired,slices:S().array.isRequired,tax_amount:S().string.isRequired,tax_currency:S().string.isRequired,total_amount:S().string.isRequired,total_emissions_kg:S().string.isRequired,total_currency:S().string.isRequired,updated_at:S().string.isRequired}).isRequired,seatMaps:S().arrayOf(S().shape({id:S().string.isRequired,slice_id:S().string.isRequired,segment_id:S().string.isRequired,cabins:S().array.isRequired}).isRequired).isRequired,passengers:S().arrayOf(S().shape({id:S().string.isRequired,name:S().string}).isRequired).isRequired,onSubmit:S().func.isRequired};const ce=(n,t)=>{h().render((0,e.jsx)(le,Object.assign({},t),void 0),document.getElementById(n))}}();var o=exports;for(var i in r)o[i]=r[i];r.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})}();
2
+ (()=>{var e={598:(e,t,n)=>{"use strict";n.d(t,{CardPayment:()=>d});var r=n(997),s=n(689);const i=require("@stripe/react-stripe-js"),o=require("@stripe/stripe-js");var a=n(311),l=n(764).Buffer;const c={style:{base:{color:"#32325d",fontFamily:'"-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "sans-serif"',fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#ababb4"}},invalid:{color:"#e3350f",iconColor:"#e3350f"}}},u=e=>{let{duffelPaymentIntentClientToken:t,successfulPaymentHandler:n,errorPaymentHandler:o}=e;const[u,d]=s.useState(null),[f,p]=s.useState(!1),[h,m]=s.useState(!1),[g,y]=s.useState(!1),[v,b]=s.useState(""),_=(0,i.useStripe)(),w=(0,i.useElements)();return s.useEffect((()=>{if(w&&!u){const e=null==w?void 0:w.getElement("card");e&&d(e)}}),[w,u]),s.useEffect((()=>{u&&u.on("change",(e=>{const{error:t,complete:n}=e;t?(m(!0),b(t.message)):m(!1),p(!!n)}))}),[u]),t?(0,r.jsx)("div",{className:"duffel-components",children:(0,r.jsx)("div",{className:"card-payment__container",children:(0,r.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),_&&w&&u){y(!0);const e=l.from(t,"base64").toString(),r=JSON.parse(e),{client_secret:s}=r,i=await _.confirmCardPayment(s,{payment_method:{card:u,metadata:{duffel_components_version:"1.2.0"}}});if(y(!1),i.error){const{error:e}=i;o(e)}else n()}},children:[g&&(0,r.jsx)("div",{className:"card-payment--in-progress","aria-live":"polite","aria-busy":"true"},void 0),(0,r.jsx)(i.CardElement,{className:"card-details",options:c},void 0),(0,r.jsx)("div",{className:"card-payment__container--invalid",role:"alert",children:h&&v},void 0),(0,r.jsx)(a.z,{className:"card-payment__pay-button",type:"submit",text:g?"Processing...":"Pay",disabled:!f||g,"aria-label":"Pay"},void 0)]},void 0)},void 0)},void 0):null},d=e=>{const[t,n]=s.useState(null),{duffelPaymentIntentClientToken:a}=e,c=l.from(a,"base64").toString(),d=JSON.parse(c),{publishable_key:f}=d;return s.useEffect((()=>{if(!t&&f){const e=(0,o.loadStripe)(f);e&&n(e)}}),[t,f]),(0,r.jsx)(i.Elements,{stripe:t,children:(0,r.jsx)(u,{...e},void 0)},void 0)}},461:(e,t,n)=>{"use strict";n.d(t,{SeatSelection:()=>X});var r=n(997),s=n(689),i=n.n(s);const o=require("react-dom"),a=require("prop-types");var l=n.n(a);const c=require("smoothscroll-polyfill");var u=n.n(c),d=n(311),f=n(639);const p=require("react-popper"),h=()=>{const[e,t]=i().useState(null);return i().useEffect((()=>{null===e&&t(window.innerWidth);const n=()=>t(window.innerWidth);return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[]),null!=e?e:0};const m=e=>{let{id:t,children:n}=e;const r=function(e){const t=s.useRef(null);return s.useEffect((function(){const n=document.querySelector("#".concat(e)),r=n||function(e){const t=document.createElement("div");return t.setAttribute("id",e),t}(e);if(n||function(e){if(!document.body.lastElementChild)throw Error("document body not rendered");document.body.insertBefore(e,document.body.lastElementChild.nextElementSibling)}(r),!t.current)throw Error("elementRef not assigned");return r.appendChild(t.current),function(){if(!t.current)throw Error("elementRef not assigned");t.current.remove(),r.childElementCount||r.remove()}}),[e]),t.current||(t.current=document.createElement("div")),t.current}(t);return(0,o.createPortal)(n,r)},g=s.forwardRef(((e,t)=>{let{children:n,style:s,id:i="seat-selection__popover",...o}=e;return(0,r.jsx)(m,{id:i,children:(0,r.jsx)("div",{className:"duffel-components",children:(0,r.jsx)("div",{className:"popover-container",id:i,"data-testid":i,style:s,ref:t,...o,children:n},void 0)},void 0)},void 0)}));var y=n(3),v=n.n(y);function b(e){let{value:t,onChange:n,options:s}=e;return(0,r.jsx)("div",{className:"seat-map__tab-select",children:s.map((e=>(0,r.jsx)(d.X,{type:"button",className:v()("seat-map__tab-select-option",{"seat-map__tab-select-option--selected":e===t}),onClick:()=>t!==e&&n(e),children:e},e)))},void 0)}const _={error_loading:{title:"Error loading seat maps",message:"We weren’t able to load your seat maps.",iconName:"no_airplane"},error_unavailable:{title:"Seat selection unavailable",message:"Unfortunately seat selection is not available for this flight. A seat will be allocated by the airline.",iconName:"no_seat"}},w=e=>{let{errorType:t}=e;return(0,r.jsxs)("div",{className:"error-state__container","data-testid":t,children:[(0,r.jsx)("i",{className:"error-state__icon",children:(0,r.jsx)(f.J,{name:_[t].iconName},void 0)},void 0),(0,r.jsx)("h3",{className:"error-state__title",children:_[t].title},void 0),(0,r.jsx)("p",{className:"error-state__copy",children:_[t].message},void 0)]},void 0)};var x=n(108);class j extends s.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){x.error(e)}render(){return this.state.hasError?(0,r.jsx)("div",{className:"duffel-components",children:(0,r.jsx)(w,{errorType:"error_loading"},void 0)},void 0):this.props.children}}const C=require("lodash/cloneDeep");var E=n.n(C);const B=e=>e<768,S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-GB",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new Intl.NumberFormat(t,{style:"currency",currency:e,...n});return e=>{const t=r.format(e);return n&&n.signDisplay&&("always"===n.signDisplay||"exceptZero"===n.signDisplay&&0!==e)?t.replace(/^([+-])/,"$1 "):t}},I=e=>e.reduce(((e,t)=>e+t),0),N=/P(?:([.,\d]+)D)?T(?:([.,\d]+)H)?(?:([.,\d]+)M)?/i,L=(e,t)=>(e.indexOf(t)+1)%e.length,R=e=>{let{origin:t,destination:n,duration:i,done:o}=e;const[a,l]=s.useState(!1),c=s.useRef(null);return s.useEffect((()=>{a&&o&&o()})),a?null:(0,r.jsxs)("div",{className:"loading-state__container",children:[(0,r.jsx)("span",{className:"loading-state__message",children:"Loading seat map"},void 0),(0,r.jsx)("div",{className:"loading-state__progress-indicator",children:(0,r.jsx)("span",{className:"loading-state__progress-indicator--status",ref:c,onAnimationEnd:()=>l(!0),"data-testid":"loading-state__progress-indicator--status"},void 0)},void 0),(0,r.jsxs)("div",{className:"loading-state__segment",children:[(0,r.jsx)("span",{className:"loading-state__segment--origin",children:t},void 0),(0,r.jsx)(f.J,{name:"arrow_forward",size:20},void 0),(0,r.jsx)("span",{className:"loading-state__segment--destination",children:n},void 0)]},void 0),(0,r.jsx)("span",{className:"loading-state__duration",children:i},void 0)]},void 0)},A=()=>({}),U=(0,s.createContext)({offer:{},seatMaps:[],passengers:[],segments:[],segmentId:"",passengerId:"",currentSelectedSegment:{},currentSelectedPassenger:{},seatSelection:{},size:"default",currentSeat:{},setCurrentSeat:A,onSelectSeat:A,onSelectPassenger:A,setIsLoading:A,extendedSeatInfo:[],setExtendedSeatInfo:A,currency:""}),M=()=>(0,s.useContext)(U),k=e=>{let{segment:t,passenger:n,passengerIndex:s}=e;const{seatSelection:i,segmentId:o,passengerId:a,onSelectPassenger:l,currentSelectedSegment:c,setIsLoading:u}=M(),d=i[t.id]&&i[t.id][n.id];return(0,r.jsxs)("button",{"data-testid":"passenger-".concat(n.id),type:"button",onClick:()=>{c.id!==t.id&&u(!0),l(n.id,t.id)},className:v()("passenger-selection-passenger",{"passenger-selection-passenger--selected":o===t.id&&a===n.id}),children:[(0,r.jsx)("span",{className:"passenger-selection-passenger__identifier",children:n.name||"Passenger ".concat(s+1)},void 0),d&&d.service?(0,r.jsxs)("span",{className:"passenger-selection-passenger__action",children:[(0,r.jsx)("span",{className:"passenger-selection-passenger__seat-designator",children:d.designator},void 0),(0,r.jsx)("span",{className:"passenger-selection-passenger__seat-price",children:S(d.service.total_currency)(+d.service.total_amount)},void 0)]},void 0):(0,r.jsx)("span",{className:"passenger-selection-passenger__action",children:"Unselected"},void 0)]},n.id)},O=e=>{let{segment:t,className:n}=e;return(0,r.jsxs)("h3",{className:v()(n,"passenger-segment__title"),children:[t.origin.iata_code,(0,r.jsx)(f.J,{name:"chevron",className:"passenger-segment__chevron",size:20},void 0),t.destination.iata_code]},void 0)},T=e=>{let{segment:t}=e;const{passengers:n}=M();return(0,r.jsxs)("li",{className:"passenger-selection-segment",children:[Object.keys(t).length>0&&(0,r.jsx)(O,{segment:t},void 0),n.map(((e,n)=>(0,r.jsx)(k,{segment:t,passenger:e,passengerIndex:n},e.id)))]},t.id)},P=()=>{const{segments:e}=M();return(0,r.jsx)("div",{className:"passenger-selection",children:(0,r.jsx)("ul",{className:"passenger-selection__segments",children:e.map((e=>(0,r.jsx)(T,{segment:e},e.id)))},void 0)},void 0)},q=e=>{let{value:t,setValue:n}=e;const s=["Lower deck","Upper deck"];return(0,r.jsx)(b,{options:s,value:s[t],onChange:e=>n(s.indexOf(e))},void 0)},H=e=>{let{symbols:t}=e;return(0,r.jsxs)("div",{className:"seat-map__legend",children:[(0,r.jsxs)("span",{className:"seat-map__legend-item",children:[(0,r.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--fee-payable","aria-label":"Additional cost for seat",children:(0,r.jsx)(f.J,{name:"seat_paid_indicator",className:"seat-map__legend-seat--fee-payable-indicator",size:12},void 0)},void 0),"Additional Cost"]},void 0),(0,r.jsxs)("span",{className:"seat-map__legend-item",children:[(0,r.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--included","aria-label":"Included seat"},void 0),"Included"]},void 0),(0,r.jsxs)("span",{className:"seat-map__legend-item",children:[(0,r.jsx)("span",{className:"seat-map__legend-seat seat-map__legend-seat--selected","aria-label":"Selected seat"},void 0),"Selected"]},void 0),(0,r.jsxs)("span",{className:"seat-map__legend-item",children:[(0,r.jsx)("span",{className:"seat-map__legend-seat","aria-label":"Unavailable seat",children:(0,r.jsx)(f.J,{name:"close",size:14},void 0)},void 0),"Unavailable"]},void 0),[...t].map((e=>(0,r.jsxs)("span",{className:"seat-map__legend-item seat-map__legend-item--symbol",children:[(0,r.jsx)(f.J,{name:e,size:20},void 0),e.split("_")[0]]},e)))]},void 0)},V=["bassinet","exit_row"],z=e=>{let{type:t}=e;const n=h();return(0,r.jsx)("div",{className:v()("map-element map-element--amenity",{"map-element--wrapped":!V.includes(t)}),"aria-label":t.toString(),children:(0,r.jsx)(f.J,{name:t,size:B(n)?16:24},void 0)},void 0)},F=e=>{let{seat:t,service:n}=e;const s=n?S(n.total_currency)(+n.total_amount):"";return(0,r.jsxs)("div",{className:"seat-info",children:[(0,r.jsxs)("div",{className:"seat-info__details",children:[(0,r.jsx)("strong",{children:null==t?void 0:t.designator},void 0),(0,r.jsxs)("span",{children:[(null==t?void 0:t.name)||"Seat"," "]},void 0),(0,r.jsx)("strong",{children:s},void 0)]},void 0),null==t?void 0:t.disclosures.map(((e,t)=>(0,r.jsx)("div",{className:"seat-info__disclosure",children:e},t)))]},void 0)},$=e=>{let{seat:t}=e;const n=h(),[o,a]=s.useState(!1),{popper:{styles:l,attributes:c},setReferenceElement:u,setPopperElement:d}=((e,t,n,r)=>{const{shouldInsideClickClose:s}=Object.assign({},{shouldInsideClickClose:!1},{shouldInsideClickClose:!1}),[o,a]=i().useState(null),[l,c]=i().useState(null),[u,d]=i().useState(null),f={placement:"auto",modifiers:[{name:"arrow",options:{element:u}}],placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}]},h=(0,p.usePopper)(o,l,f),m=i().useCallback((e=>{const n=!!l&&l.contains(e.target);n||t(),s&&n&&setTimeout(t,10)}),[l,t,s]),g=i().useCallback((e=>{"Escape"===e.key&&t()}),[t]);return i().useEffect((()=>{if(null!==document)return e&&(document.body.addEventListener("click",m),document.body.addEventListener("keydown",g)),()=>{document.body.removeEventListener("click",m),document.body.removeEventListener("keydown",g)}}),[e,m,g]),{popper:h,setReferenceElement:a,setPopperElement:c,setArrowElement:d}})(o,(()=>a(!1))),{passengers:m,passengerId:y,segmentId:b,seatSelection:_,currentSeat:w,setCurrentSeat:x,onSelectSeat:j,extendedSeatInfo:C,setExtendedSeatInfo:E}=M(),{service:I,isAvailable:N,selectedBy:L}=((e,t,n)=>{var r,s;const i=null===(r=e.available_services)||void 0===r?void 0:r.find((e=>e.passenger_id===t)),o=null===(s=e.available_services)||void 0===s?void 0:s.find((e=>{var t,r;return!!n&&(null===(t=n[e.passenger_id])||void 0===t||null===(r=t.service)||void 0===r?void 0:r.id)===e.id}));return{service:i,isAvailable:i&&!o||!1,selectedBy:null==o?void 0:o.passenger_id}})(t,y,_[b]),R=s.useMemo((()=>((e,t)=>{if(!t)return!1;let n="";return e.forEach(((e,r)=>{if(e.name){const r=new RegExp(/(\p{L}{1})\p{L}+/,"gu"),o=[...e.name.matchAll(r)]||[];var s,i;if(e.id===t)return n=(((null===(s=o.shift())||void 0===s?void 0:s[1])||"")+((null===(i=o.pop())||void 0===i?void 0:i[1])||"")).toUpperCase()}if(e.id===t)return n="P".concat(r+1)})),n})(m,L)),[m,L]),A="".concat(I&&S(I.total_currency)(+I.total_amount)),U=(null==I?void 0:I.total_amount)&&0!==parseInt(null==I?void 0:I.total_amount),k=L&&L!==y,O=s.useMemo((()=>e=>{if(null!==e){const{segment:t,seat:{designator:n}}=e;C.map((e=>e)).find((e=>e.segment===t&&e.seat.designator===n))?E(C.splice(C.findIndex((e=>e.segment!==t&&e.seat.designator!==n)))):I&&E([...C,{...e,service:I}])}}),[C,I,E]);return(0,r.jsx)(r.Fragment,{children:L||N?(0,r.jsxs)("button",{id:t.designator,type:"button",className:v()("map-element","map-element__seat",{"map-element--available":N&&!L,"map-element--selected":L,"map-element--actionable":N||L==y}),onClick:e=>{I&&O({segment:b,seat:t,service:I}),B(n)&&(w.seat===t?x({seat:null,service:void 0}):x({seat:t,service:I})),I&&!k&&(j(L===y?null:{designator:t.designator,service:I}),e.target.blur())},onMouseEnter:()=>!B(n)&&a(!0),onMouseLeave:()=>!B(n)&&a(!1),ref:u,"aria-label":"".concat(t.designator," ").concat(t.name||"Seat"," ").concat(A),children:[U&&(0,r.jsx)(f.J,{name:"seat_paid_indicator",className:"map-element--fee-payable",size:B(n)?16:24},void 0),L?R:t.designator.charAt(t.designator.length-1),o&&!k&&I&&!B(n)&&(0,r.jsx)(g,{ref:d,style:{...l.popper},...c.popper,children:(0,r.jsx)(F,{seat:t,service:I},void 0)},void 0)]},void 0):(0,r.jsx)("span",{className:"map-element map-element__seat","aria-label":"".concat(t.designator," ").concat(t.name||"Seat"," Unavailable"),children:(0,r.jsx)(f.J,{name:"close",size:B(n)?14:16},void 0)},void 0)},void 0)},Z=(e,t,n)=>(0,r.jsx)(r.Fragment,{children:"seat"===e.type?(0,r.jsx)($,{seat:e},t):"empty"===e.type?(0,r.jsx)("div",{className:"map-element map-element--empty"},t):"exit_row"===e.type?(0,r.jsx)("div",{className:v()("map-element map-element--exit",{"map-element--exit--right":n>0}),children:0===n?(0,r.jsx)(f.J,{name:"exit_row"},void 0):(0,r.jsx)(f.J,{name:"exit_row_right"},void 0)},t):(0,r.jsx)(z,{type:e.type},t)},void 0),D=e=>{let{row:t,hasWings:n}=e;const i=(e=>{const t=Object.values(e.sections).map((e=>e.elements)).reduce(((e,t)=>e.concat(t)),[]).filter((e=>"seat"===e.type));return t.length>0?t[0].designator.substring(0,t[0].designator.length-1):null})(t);return(0,r.jsx)(r.Fragment,{children:Object.values(t.sections).map(((e,o)=>{const a=Object.keys(t.sections).length,l=1===a;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)("div",{className:v()("map-section",{"map-section--left":0===o,"map-section--right":!l&&o===a-1,"map-section--wing":n}),"data-testid":"row-section-".concat(o),children:e.elements.length>0?e.elements.map(((e,t)=>(0,r.jsx)(s.Fragment,{children:Z(e,t,o)},t))):Z({type:"empty"},-1,o)},void 0),(o<a-1||l&&o<a)&&(0,r.jsx)("span",{className:"map-section__aisle",children:i},void 0),l&&o===t.sections.length-1&&Z({type:"empty"},-1,o)]},o)}))},void 0)},J=()=>{const{segmentId:e,offer:t,seatMaps:n}=M(),[i,o]=s.useState(0),{cabin:a,hasMultipleDecks:l,anyHasWings:c}=((e,t,n,r)=>{const s=n.find((e=>e.segment_id===t));if(null==s||!s.cabins||0===(null==s?void 0:s.cabins.length))return{cabin:null};const i=r.slices.length>0&&r.slices[0].segments.length>0&&r.slices[0].segments[0].passengers.length>0&&r.slices[0].segments[0].passengers[0].cabin_class,o=null==s?void 0:s.cabins.filter((e=>e.cabin_class===i));return{cabin:o.find((t=>t.deck===e))||o[0]||(null==s?void 0:s.cabins[0]),hasMultipleDecks:o.length>1,anyHasWings:o.some((e=>e.wings))}})(i,e,n,t);if(!a)return(0,r.jsx)(w,{errorType:"error_unavailable"},void 0);const u=(e=>{const t=new Set;for(const n of e.rows)for(const e of n.sections)for(const n of e.elements)"seat"!==n.type&&"empty"!==n.type&&t.add(n.type);return t})(a);return(0,r.jsxs)("div",{"data-testid":"seat-map",className:v()("seat-map",{"seat-map--wings":c}),children:[l&&(0,r.jsx)(q,{value:i,setValue:e=>{o(e)}},void 0),(0,r.jsx)("div",{className:"seat-map__legend-container",children:(0,r.jsx)(H,{symbols:u},void 0)},void 0),(0,r.jsx)("div",{className:"seat-map__map-container",style:{"--CABIN-AISLES":a.aisles},children:a.rows.map(((e,t)=>(0,r.jsx)(D,{row:e,hasWings:!!a.wings&&a.wings.first_row_index<=t&&a.wings.last_row_index>=t},t)))},void 0)]},void 0)},W=e=>{let{primaryButtonCopy:t,onBackClick:n,disableBackButton:s,onClick:i,iconAfter:o}=e;const a="summary-button-".concat(t.replace(" ","-").toLowerCase());return(0,r.jsxs)("div",{className:"summary__actions",children:[(0,r.jsx)(d.z,{text:"Previous passenger",onClick:n,disabled:s,intent:"MUTED",iconOnly:"chevron","aria-label":"Previous passenger",className:"summary__actions--previous"},void 0),(0,r.jsx)(d.z,{"data-testid":a,text:t,className:"summary__confirmation-btn",onClick:i,...o},void 0)]},void 0)},Y=e=>{let{onClick:t,primaryButtonCopy:n,iconAfter:i,onBackClick:o,disableBackButton:a}=e;const{seatSelection:l,segments:c,passengers:u,currentSelectedPassenger:d,currentSelectedSegment:f,offer:p,currency:h}=M(),m=(g=l,Object.values(g).map((e=>Object.values(e))).map((e=>e.map((e=>(null==e?void 0:e.service)||null)))).flat().filter((e=>null!==e)));var g;const y=s.useMemo((()=>I(m.map((e=>parseFloat(e.total_amount))))),[m]),v=s.useMemo((()=>I(c.map((e=>e.passengers.length)))),[c]),b=m&&m.length,_=b>0?S(m[0].total_currency)(y):p?S(h)(0):"0",w=d&&u.findIndex((e=>e.id===(null==d?void 0:d.id))),x=null!=d&&d.name?d.name:w>=0?"Passenger ".concat(w+1):"";return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"summary","data-testid":"seat-selection-summary",children:[(0,r.jsxs)("div",{className:"summary__description",children:[(0,r.jsx)("div",{className:"summary__description-title",children:"".concat(b," of ").concat(v," seat").concat(v>1?"s":""," selected")},void 0),(0,r.jsxs)("div",{className:"summary__description-cost",children:[_," will be added to the order"]},void 0)]},void 0),(0,r.jsx)(W,{onBackClick:o,onClick:t,iconAfter:i,primaryButtonCopy:n,disableBackButton:a},void 0)]},void 0),(0,r.jsxs)("div",{className:"summary summary--mobile",children:[(0,r.jsxs)("div",{className:"summary__segment",children:[Object.keys(f).length>0&&(0,r.jsx)(O,{segment:f},"summary-".concat(f.id)),x&&(0,r.jsx)("h3",{className:"summary__segment-passenger",children:x},void 0)]},void 0),(0,r.jsxs)("div",{className:"summary__description-cost",children:["Total Price ",(0,r.jsx)("strong",{children:_},void 0)]},void 0),(0,r.jsx)(W,{onBackClick:o,onClick:t,iconAfter:i,primaryButtonCopy:n,disableBackButton:a},void 0)]},void 0)]},void 0)},G=e=>{let{seatMaps:t,offer:n,passengers:i,initialSeatSelection:o,initialSegmentId:a,onSubmit:l,currencyConversion:c}=e;const d=i.sort(((e,t)=>e.id.localeCompare(t.id))),f=((e,t)=>{if(null!=t&&t.rate&&null!=t&&t.currency){const n=E()(e);return n.forEach((e=>e.cabins.forEach((e=>e.rows.forEach((e=>e.sections.forEach((e=>e.elements.forEach((e=>{"seat"===e.type&&e.available_services.map((e=>{e.total_amount=(parseInt(e.total_amount)*t.rate).toFixed(2).toString(),e.total_currency=t.currency}))})))))))))),n}return e})(t,c),[p,m]=s.useState("Next Passenger"),[g,y]=s.useState(""),[v,b]=s.useState(a||""),[_,w]=s.useState(""),[x,C]=s.useState(""),[S,I]=s.useState(o||{}),[A,M]=s.useState(i.length>0?d[0].id:""),k=n.slices.length>0&&n.slices[0],O=k&&k.segments.length>0&&k.segments[0].id,[T,q]=s.useState(a||O||""),[H,V]=s.useState("default"),[z,$]=s.useState({seat:null,service:void 0}),[Z,D]=s.useState(!0),[W,G]=s.useState([]);u().polyfill();const X=h(),K=s.useMemo((()=>n.slices.map((e=>e.segments)).flat().filter((e=>t.map((e=>e.segment_id)).includes(e.id)))),[n,t]),Q=s.useMemo((()=>d.map((e=>e.id)).sort(((e,t)=>e.localeCompare(t)))),[d]);s.useMemo((()=>{if(Object.keys(S).length<=0){const e=new Map(K.map((e=>{const t=new Map(e.passengers.map((e=>[e.passenger_id,null])));return[e.id,Object.fromEntries(new Map([...t.entries()].sort(((e,t)=>e[0].localeCompare(t[0])))))]}))),t=Object.fromEntries(e);t&&I(t)}}),[S,K]);const ee=s.useMemo((()=>K.find((e=>e.id===T))||{}),[K,T]);s.useEffect((()=>{const e=()=>{window.innerWidth<1024&&"small"!==H?V("small"):window.innerWidth>=1024&&"default"!==H&&V("default")};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[H]),s.useEffect((()=>{const e=((e,t)=>Object.keys(t).reduce(((t,n)=>{const r=e.passengers;if(r){if(!(r.length>0)){const{[n]:e,...r}=t;return r}{const e=[];r.forEach((t=>{e.push(t.passenger_id)})),t={...t,[n]:e.sort(((e,t)=>e.localeCompare(t)))}}}return t}),{}))(ee,S),t=Object.keys(e),n=L(t,ee.id),r=e[T].indexOf(A),s=L(e[T],A),i=e[T][s],o=Object.keys(S).indexOf(T);return 0===t.length?m("Continue"):(w(i),r===ee.passengers.length-1?o===t.length-1?m("Continue"):(y(t[n]),m("Next Flight")):m("Next Passenger"))}),[ee,S,A,T]);const te=s.useMemo((()=>d.find((e=>{if(e.id===A)return{id:e.id,name:e.name||void 0}}))),[d,A]);if(0===d.length||!k||0===n.slices[0].segments.length)return null;const ne=()=>{const e=Object.keys(S[T]);if(e[0]===A){D(!0),q(v);const t=Object.keys(S[v])[e.length-1];M(t)}else{const e=Q.indexOf(A);0!==e&&M(Q[e-1])}const t=S[v][x],n=W.map((e=>e)).find((e=>e.segment===v&&e.seat.designator===(null==t?void 0:t.designator)));n&&$({seat:n.seat,service:n.service})};return(0,r.jsx)(U.Provider,{value:{offer:n,segments:K,seatMaps:f,passengers:d,segmentId:T,passengerId:A,currentSelectedPassenger:te,currentSelectedSegment:ee,seatSelection:S,size:H,onSelectSeat:e=>{const t=Object.assign({},S,{[T]:Object.assign({},S[T],{[A]:{...e}})});I(t)},onSelectPassenger:(e,t)=>{M(e),q(t);const n=S[t]&&S[t][e];if(n&&null!==n.designator){const e=document.getElementById(n.designator);e&&!(e=>{const t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-n>=0)})(e)&&(null==e||e.scrollIntoView({behavior:"smooth",block:"center"}))}},currentSeat:z,setCurrentSeat:$,setIsLoading:D,extendedSeatInfo:W,setExtendedSeatInfo:G,currency:null!=c&&c.currency&&null!=c&&c.rate?c.currency:n.total_currency},children:(0,r.jsx)("div",{className:"duffel-components",children:(0,r.jsxs)("div",{className:"seat-selection",children:[(0,r.jsxs)("div",{className:"seat-selection__content",children:[!B(X)&&(0,r.jsx)("aside",{className:"seat-selection__content-child seat-selection__content-child--passengers",children:(0,r.jsx)(P,{},void 0)},void 0),(0,r.jsx)("div",{className:"seat-selection__content-child seat-selection__content-child--map",children:Z?(()=>{const e=ee.origin.iata_code||"",t=ee.destination.iata_code||"",n=ee.duration&&(e=>{const t=e.match(N);if(!t)return e;const n=t[1]&&"0"!==t[1]?"".concat(t[1],"d"):"",r=t[2]&&"0"!==t[2]?"".concat(t[2].toString().padStart(2,"0"),"h"):"",s=t[3]&&"0"!==t[3]?"".concat(t[3].toString().padStart(2,"0"),"m"):"";return"".concat(n," ").concat(r," ").concat(s).trim()})(ee.duration)||"";return(0,r.jsx)(R,{origin:e,destination:t,duration:n,done:()=>D(!1)},void 0)})():(0,r.jsx)(j,{children:(0,r.jsx)(J,{},void 0)},void 0)},void 0)]},void 0),(()=>{const{seat:e,service:t}=z;return null!==e&&B(X)&&S[T]&&null!==S[T][A]?(0,r.jsx)("div",{className:"seat-selection__mobile-seat-info",children:(0,r.jsx)(F,{seat:e,service:t},void 0)},void 0):null})(),(0,r.jsx)("div",{className:"seat-selection__confirmation",children:(()=>{const e=T===O&&A===d[0].id||!1;switch(p){case"Continue":return(0,r.jsx)(Y,{onClick:()=>{l(S),(()=>{const e=K[0];M(e.passengers[0].passenger_id),q(e.id)})()},onBackClick:ne,disableBackButton:e,primaryButtonCopy:p},void 0);case"Next Flight":return(0,r.jsx)(Y,{onClick:()=>{D(!0),b(T),M(_),q(g)},onBackClick:ne,disableBackButton:e,primaryButtonCopy:B(X)?"Next":p,iconAfter:{iconAfter:"chevron"}},void 0);default:return(0,r.jsx)(Y,{onClick:()=>{C(A),M(_)},onBackClick:ne,disableBackButton:e,iconAfter:{iconAfter:"chevron"},primaryButtonCopy:B(X)?"Next":p},void 0)}})()},void 0)]},void 0)},void 0)},void 0)},X=e=>(0,r.jsx)(j,{children:(0,r.jsx)(G,{...e},void 0)},void 0);X.propTypes={offer:l().shape({allowed_passenger_identity_document_types:l().array.isRequired,available_services:l().array.isRequired,base_amount:l().string.isRequired,base_currency:l().string.isRequired,conditions:l().object.isRequired,created_at:l().string.isRequired,expires_at:l().string.isRequired,id:l().string.isRequired,live_mode:l().bool.isRequired,owner:l().shape({name:l().string.isRequired,id:l().string.isRequired,iata_code:l().string.isRequired}).isRequired,passenger_identity_documents_required:l().bool.isRequired,passengers:l().array.isRequired,payment_requirements:l().shape({payment_required_by:l().string,price_guarantee_expires_at:l().string,requires_instant_payment:l().bool.isRequired}).isRequired,slices:l().array.isRequired,tax_amount:l().string.isRequired,tax_currency:l().string.isRequired,total_amount:l().string.isRequired,total_emissions_kg:l().string.isRequired,total_currency:l().string.isRequired,updated_at:l().string.isRequired}).isRequired,seatMaps:l().arrayOf(l().shape({id:l().string.isRequired,slice_id:l().string.isRequired,segment_id:l().string.isRequired,cabins:l().array.isRequired}).isRequired).isRequired,passengers:l().arrayOf(l().shape({id:l().string.isRequired,name:l().string}).isRequired).isRequired,onSubmit:l().func.isRequired}},311:(e,t,n)=>{"use strict";n.d(t,{z:()=>l,X:()=>c});var r=n(997),s=n(689),i=n(3),o=n.n(i),a=n(639);const l=s.forwardRef(((e,t)=>{let{className:n,disabled:s=!1,iconAfter:i,iconBefore:l,iconOnly:c,intent:u="PRIMARY",text:d,type:f="button",id:p,...h}=e;const m=o()("duffel-button","duffel-button--solid",n,{"duffel-button--primary":"PRIMARY"===u,"duffel-button--muted":"MUTED"===u,"duffel-button--icon-only":c,"duffel-button--is-disabled":s});return(0,r.jsxs)("button",{ref:t,type:f,className:m,disabled:s,"aria-label":d,"data-testid":p,id:p,...h,children:[l&&(0,r.jsx)(a.J,{className:"duffel-button__icon duffel-button__icon--before",name:l},void 0),c&&(0,r.jsx)(a.J,{className:"duffel-button__icon",name:c},void 0),!c&&(0,r.jsx)("span",{className:"duffel-button__text",children:d},void 0),i&&(0,r.jsx)(a.J,{className:"duffel-button__icon duffel-button__icon--after",name:i},void 0)]},void 0)})),c=e=>{let{className:t,children:n,...s}=e;const i=o()("chromeless-button",t);return(0,r.jsx)("button",{className:i,...s,children:n},void 0)}},639:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var r=n(997),s=n(3),i=n.n(s),o=(n(689),n(108));const a={arrow_forward:(0,r.jsx)("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1z"},void 0),bassinet:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M19 12C19 14.1217 18.1571 16.1566 16.6569 17.6569C15.1566 19.1571 13.1217 20 11 20C8.87827 20 6.84344 19.1571 5.34315 17.6569C3.84286 16.1566 3 14.1217 3 12L11 12H19Z"},void 0),(0,r.jsx)("path",{d:"M16.1347 5.86529L11 11V4C12.0506 4 13.0909 4.20693 14.0615 4.60896C14.8136 4.92052 15.5125 5.34451 16.1347 5.86529ZM16.8602 6.55405L12.4142 11H18.9373C18.8482 10.293 18.6649 9.59962 18.391 8.93853C18.0264 8.05823 17.5077 7.25087 16.8602 6.55405Z"},void 0)]},void 0),chevron:(0,r.jsx)("path",{d:"M5 13H16.17L11.29 17.88C10.9 18.27 10.9 18.91 11.29 19.3C11.68 19.69 12.31 19.69 12.7 19.3L19.29 12.71C19.68 12.32 19.68 11.69 19.29 11.3L12.71 4.7C12.32 4.31 11.69 4.31 11.3 4.7C10.91 5.09 10.91 5.72 11.3 6.11L16.17 11H5C4.45 11 4 11.45 4 12C4 12.55 4.45 13 5 13Z"},void 0),close:(0,r.jsx)("path",{d:"M18.3 5.71c-.39-.39-1.02-.39-1.41 0L12 10.59 7.11 5.7c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"},void 0),closet:(0,r.jsx)("path",{d:"M12 4C11.0717 4 10.1815 4.36875 9.52513 5.02513C8.86875 5.6815 8.5 6.57174 8.5 7.5H10.5C10.5 7.10218 10.658 6.72064 10.9393 6.43934C11.2206 6.15804 11.6022 6 12 6C12.3978 6 12.7794 6.15804 13.0607 6.43934C13.342 6.72064 13.5 7.10218 13.5 7.5C13.5 7.89782 13.342 8.27936 13.0607 8.56066C12.7794 8.84196 12.3978 9 12 9C11.45 9 11 9.45 11 10V11.75L2.4 18.2C2.23209 18.3259 2.10807 18.5015 2.04549 18.7018C1.98291 18.9022 1.98495 19.1171 2.05132 19.3162C2.11769 19.5153 2.24502 19.6885 2.41529 19.8112C2.58556 19.934 2.79012 20 3 20H21C21.2099 20 21.4144 19.934 21.5847 19.8112C21.755 19.6885 21.8823 19.5153 21.9487 19.3162C22.0151 19.1171 22.0171 18.9022 21.9545 18.7018C21.8919 18.5015 21.7679 18.3259 21.6 18.2L13 11.75V10.85C13.7216 10.6349 14.3546 10.1927 14.805 9.58919C15.2554 8.98569 15.4991 8.25303 15.5 7.5C15.5 6.57174 15.1313 5.6815 14.4749 5.02513C13.8185 4.36875 12.9283 4 12 4ZM12 13.5L18 18H6L12 13.5Z"},void 0),exit_row:(0,r.jsx)("path",{d:"M20 11H6.83001L9.71001 8.12001C10.1 7.73001 10.1 7.10001 9.71001 6.71001C9.32001 6.32001 8.69001 6.32001 8.30001 6.71001L3.71001 11.3C3.32001 11.69 3.32001 12.32 3.71001 12.71L8.30001 17.3C8.69001 17.69 9.32001 17.69 9.71001 17.3C10.1 16.91 10.1 16.28 9.71001 15.89L6.83001 13H20C20.55 13 21 12.55 21 12C21 11.45 20.55 11 20 11Z"},void 0),exit_row_right:(0,r.jsx)("path",{d:"M4 11H17.17L14.29 8.12001C13.9 7.73001 13.9 7.10001 14.29 6.71001C14.68 6.32001 15.31 6.32001 15.7 6.71001L20.29 11.3C20.68 11.69 20.68 12.32 20.29 12.71L15.7 17.3C15.31 17.69 14.68 17.69 14.29 17.3C13.9 16.91 13.9 16.28 14.29 15.89L17.17 13H4C3.45 13 3 12.55 3 12C3 11.45 3.45 11 4 11Z"},void 0),galley:(0,r.jsx)("path",{d:"M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"},void 0),lavatory:(0,r.jsx)("path",{d:"M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6h3zM7.5 6c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2zm9 0c1.11 0 2-.89 2-2s-.89-2-2-2-2 .89-2 2 .89 2 2 2z"},void 0),lie_flat_seat:(0,r.jsx)("path",{d:"M6.16667 12.8333C6.81667 12.8333 7.45834 12.5833 7.95001 12.0833C8.91667 11.0916 8.90001 9.51659 7.91667 8.54992C7.42501 8.07492 6.79167 7.83325 6.16667 7.83325C5.51667 7.83325 4.87501 8.08325 4.38334 8.58325C3.41667 9.57492 3.43334 11.1499 4.41667 12.1166C4.90834 12.5916 5.54167 12.8333 6.16667 12.8333ZM5.57501 9.74992C5.73334 9.59159 5.94167 9.49992 6.16667 9.49992C6.38334 9.49992 6.59167 9.58325 6.75001 9.73325C7.08334 10.0583 7.08334 10.5749 6.76667 10.9083C6.60001 11.0749 6.39167 11.1666 6.16667 11.1666C5.95001 11.1666 5.74167 11.0833 5.58334 10.9333C5.25001 10.5999 5.25001 10.0833 5.57501 9.74992ZM17 7.83325H9.50001V12.8333H20.3333V11.1666C20.3333 9.32492 18.8417 7.83325 17 7.83325ZM11.1667 11.1666V9.49992H17C17.9167 9.49992 18.6667 10.2499 18.6667 11.1666H11.1667ZM3.66667 15.3333H8.66667V16.9999H15.3333V15.3333H20.3333V13.6666H3.66667V15.3333Z"},void 0),no_airplane:(0,r.jsx)("path",{d:"M14.6674 10.0001V2.66675C14.6674 1.56008 13.7741 0.666748 12.6674 0.666748C11.5607 0.666748 10.6674 1.56008 10.6674 2.66675V7.57341L21.1074 18.0134L25.3341 19.3334V16.6667L14.6674 10.0001ZM1.33407 5.02675L7.9874 11.6801L0.000732422 16.6667V19.3334L10.6674 16.0001V23.3334L8.00073 25.3334V27.3334L12.6674 26.0001L17.3341 27.3334V25.3334L14.6674 23.3334V18.3601L22.3074 26.0001L24.0007 24.3067L3.0274 3.33341L1.33407 5.02675Z"},void 0),no_seat:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("path",{d:"M25.1667 21.9733L23.4733 23.6667L2.5 2.69333L4.19333 1L7.16667 3.97333L16.5267 13.3333L19.1933 16L24.5 21.3067L25.1667 21.9733Z"},void 0),(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.16667 24H3.16667V16H19.1933L24.5 21.3067V24H20.5V20H7.16667V24ZM27.1667 9.33333H23.1667V13.3333H27.1667V9.33333ZM4.5 9.33333H0.5V13.3333H4.5V9.33333ZM20.3333 13.3333H20.5V2.66667C20.5 1.2 19.3 0 17.8333 0H9.83333C9.05784 0 8.3569 0.335483 7.86848 0.868484L20.3333 13.3333ZM16.5267 13.3333L7.16667 3.97333V13.3333H16.5267Z"},void 0)]},void 0),seat:(0,r.jsx)("path",{d:"M7.59 5.41012C6.81 4.63012 6.81 3.36012 7.59 2.58012C8.37 1.80012 9.64 1.80012 10.42 2.58012C11.2 3.36012 11.2 4.63012 10.42 5.41012C9.63 6.20012 8.37 6.20012 7.59 5.41012ZM6 16.0001V8.00012C6 7.45012 5.55 7.00012 5 7.00012C4.45 7.00012 4 7.45012 4 8.00012V16.0001C4 18.7601 6.24 21.0001 9 21.0001H14C14.55 21.0001 15 20.5501 15 20.0001C15 19.4501 14.55 19.0001 14 19.0001H9C7.34 19.0001 6 17.6601 6 16.0001ZM19.28 19.3501L15.51 15.5801C15.14 15.2101 14.63 15.0001 14.1 15.0001H11.5V11.3201C12.59 12.2101 14.16 13.0201 15.7 13.3401C16.37 13.4801 17 12.9801 17 12.3001C17 11.7701 16.61 11.3401 16.08 11.2501C14.66 11.0101 13.2 10.2401 12.33 9.28012L10.93 7.73012C10.74 7.52012 10.5 7.35012 10.24 7.23012C9.95 7.09012 9.62 7.00012 9.28 7.00012H9.25C8.01 7.00012 7 8.01012 7 9.25012V15.0001C7 16.6601 8.34 18.0001 10 18.0001H15.07L17.85 20.7801C18.24 21.1701 18.89 21.1701 19.28 20.7801C19.68 20.3901 19.68 19.7501 19.28 19.3501Z"},void 0),seat_paid_indicator:(0,r.jsx)("path",{d:"M11.7686 0.731368C12.7766 -0.276576 14.5 0.437294 14.5 1.86274V10.8C14.5 12.5673 13.0673 14 11.3 14H2.36274C0.937294 14 0.223427 12.2766 1.23137 11.2686L11.7686 0.731368Z"},void 0),stairs:(0,r.jsx)("path",{d:"M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3z M18,8h-2.42v3.33H13v3.33h-2.58 V18H6v-2h2.42v-3.33H11V9.33h2.58V6H18V8z"},void 0),wifi:(0,r.jsx)("path",{d:"M2.83333 9.50005L4.49999 11.1667C8.64166 7.02505 15.3583 7.02505 19.5 11.1667L21.1667 9.50005C16.1083 4.44172 7.89999 4.44172 2.83333 9.50005ZM9.49999 16.1667L12 18.6667L14.5 16.1667C13.125 14.7834 10.8833 14.7834 9.49999 16.1667ZM6.16666 12.8334L7.83333 14.5C10.1333 12.2 13.8667 12.2 16.1667 14.5L17.8333 12.8334C14.6167 9.61672 9.39166 9.61672 6.16666 12.8334Z"},void 0)},l=e=>e in a?a[e]:(o.warn("The icon ".concat(e)),null),c=e=>{let{name:t,size:n,className:s,viewBox:o}=e;return(0,r.jsx)("svg",{className:i()("ff-icon",s),width:n||24,height:n||24,viewBox:o||"0 0 24 24","aria-label":t,"data-testid":t,children:l(t)},void 0)}},764:(e,t,n)=>{"use strict";var r=n(108);const s=n(238),i=n(665),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function l(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=l(n);const s=r.write(e,t);return s!==n&&(r=r.slice(0,s)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return h(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return h(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const s=function(e){if(c.isBuffer(e)){const t=0|m(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?l(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function f(e){return d(e),l(e<0?0:0|m(e))}function p(e){const t=e.length<0?0:0|m(e.length),n=l(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function m(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let s=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(s)return r?-1:J(e).length;t=(""+t).toLowerCase(),s=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return B(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b(e,t,n,r,s){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),X(n=+n)&&(n=s?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(s)return-1;n=e.length-1}else if(n<0){if(!s)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:_(e,t,n,r,s);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?s?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):_(e,[t],n,r,s);throw new TypeError("val must be string, number or Buffer")}function _(e,t,n,r,s){let i,o=1,a=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,l/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(s){let r=-1;for(i=n;i<a;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===l)return r*o}else-1!==r&&(i-=i-r),r=-1}else for(n+l>a&&(n=a-l),i=n;i>=0;i--){let n=!0;for(let r=0;r<l;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const s=e.length-n;r?(r=Number(r))>s&&(r=s):r=s;const i=t.length;let o;for(r>i/2&&(r=i/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(X(r))return o;e[n+o]=r}return o}function x(e,t,n,r){return Y(J(t,e.length-n),e,n,r)}function j(e,t,n,r){return Y(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return Y(W(t),e,n,r)}function E(e,t,n,r){return Y(function(e,t){let n,r,s;const i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,s=n%256,i.push(s),i.push(r);return i}(t,e.length-n),e,n,r)}function B(e,t,n){return 0===t&&n===e.length?s.fromByteArray(e):s.fromByteArray(e.slice(t,n))}function S(e,t,n){n=Math.min(e.length,n);const r=[];let s=t;for(;s<n;){const t=e[s];let i=null,o=t>239?4:t>223?3:t>191?2:1;if(s+o<=n){let n,r,a,l;switch(o){case 1:t<128&&(i=t);break;case 2:n=e[s+1],128==(192&n)&&(l=(31&t)<<6|63&n,l>127&&(i=l));break;case 3:n=e[s+1],r=e[s+2],128==(192&n)&&128==(192&r)&&(l=(15&t)<<12|(63&n)<<6|63&r,l>2047&&(l<55296||l>57343)&&(i=l));break;case 4:n=e[s+1],r=e[s+2],a=e[s+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(l=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,l>65535&&l<1114112&&(i=l))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),s+=o}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=I));return n}(r)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return d(e),e<=0?l(e):void 0!==t?"string"==typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}(e,t,n)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(G(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let s=0,i=Math.min(n,r);s<i;++s)if(e[s]!==t[s]){n=e[s],r=t[s];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let s=0;for(n=0;n<e.length;++n){let t=e[n];if(G(t,Uint8Array))s+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,s)):Uint8Array.prototype.set.call(r,t,s);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,s)}s+=t.length}return r},c.byteLength=g,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(c.prototype[o]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,s){if(G(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===s&&(s=this.length),t<0||n>e.length||r<0||s>this.length)throw new RangeError("out of range index");if(r>=s&&t>=n)return 0;if(r>=s)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(s>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const a=Math.min(i,o),l=this.slice(r,s),u=e.slice(t,n);for(let e=0;e<a;++e)if(l[e]!==u[e]){i=l[e],o=u[e];break}return i<o?-1:o<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return b(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return b(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const s=this.length-t;if((void 0===n||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":case"latin1":case"binary":return j(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function N(e,t,n){let r="";n=Math.min(e.length,n);for(let s=t;s<n;++s)r+=String.fromCharCode(127&e[s]);return r}function L(e,t,n){let r="";n=Math.min(e.length,n);for(let s=t;s<n;++s)r+=String.fromCharCode(e[s]);return r}function R(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let s="";for(let r=t;r<n;++r)s+=K[e[r]];return s}function A(e,t,n){const r=e.slice(t,n);let s="";for(let e=0;e<r.length-1;e+=2)s+=String.fromCharCode(r[e]+256*r[e+1]);return s}function U(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,s,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>s||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function k(e,t,n,r,s){F(t,r,s,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function O(e,t,n,r,s){F(t,r,s,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function T(e,t,n,r,s,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,n,r,s){return t=+t,n>>>=0,s||T(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,s){return t=+t,n>>>=0,s||T(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e],s=1,i=0;for(;++i<t&&(s*=256);)r+=this[e+i]*s;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e+--t],s=1;for(;t>0&&(s*=256);)r+=this[e+--t]*s;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||U(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Q((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,s=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(s)<<BigInt(32))})),c.prototype.readBigUInt64BE=Q((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],s=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(s)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=this[e],s=1,i=0;for(;++i<t&&(s*=256);)r+=this[e+i]*s;return s*=128,r>=s&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||U(e,t,this.length);let r=t,s=1,i=this[e+--r];for(;r>0&&(s*=256);)i+=this[e+--r]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||U(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||U(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Q((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=Q((function(e){$(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Z(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||U(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||U(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let s=1,i=0;for(this[t]=255&e;++i<n&&(s*=256);)this[t+i]=e/s&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||M(this,e,t,n,Math.pow(2,8*n)-1,0);let s=n-1,i=1;for(this[t+s]=255&e;--s>=0&&(i*=256);)this[t+s]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Q((function(e,t=0){return k(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=Q((function(e,t=0){return O(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let s=0,i=1,o=0;for(this[t]=255&e;++s<n&&(i*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/i>>0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);M(this,e,t,n,r-1,-r)}let s=n-1,i=1,o=0;for(this[t+s]=255&e;--s>=0&&(i*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/i>>0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Q((function(e,t=0){return k(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=Q((function(e,t=0){return O(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const s=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),s},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let s;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(s=t;s<n;++s)this[s]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),o=i.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=i[s%o]}return this};const H={};function V(e,t,n){H[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function F(e,t,n,r,s,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let s;throw s=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new H.ERR_OUT_OF_RANGE("value",s,e)}!function(e,t,n){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||Z(t,e.length-(n+1))}(r,s,i)}function $(e,t){if("number"!=typeof e)throw new H.ERR_INVALID_ARG_TYPE(t,"number",e)}function Z(e,t,n){if(Math.floor(e)!==e)throw $(e,n),new H.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,s=n;return Number.isInteger(n)&&Math.abs(n)>2**32?s=z(String(n)):"bigint"==typeof n&&(s=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(s=z(s)),s+="n"),r+=` It must be ${t}. Received ${s}`,r}),RangeError);const D=/[^+/0-9A-Za-z-_]/g;function J(e,t){let n;t=t||1/0;const r=e.length;let s=null;const i=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!s){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}s=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),s=n;continue}n=65536+(s-55296<<10|n-56320)}else s&&(t-=3)>-1&&i.push(239,191,189);if(s=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){return s.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,n,r){let s;for(s=0;s<r&&!(s+n>=t.length||s>=e.length);++s)t[s+n]=e[s];return s}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let s=0;s<16;++s)t[r+s]=e[n]+e[s]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},108:(e,t,n)=>{var r=n(464),s=n(84);function i(){return(new Date).getTime()}var o,a=Array.prototype.slice,l={};o=void 0!==n.g&&n.g.console?n.g.console:"undefined"!=typeof window&&window.console?window.console:{};for(var c=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){l[e]=i()},"time"],[function(e){var t=l[e];if(!t)throw new Error("No such label: "+e);delete l[e];var n=i()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=a.call(arguments,1);s.ok(!1,r.format.apply(null,t))}},"assert"]],u=0;u<c.length;u++){var d=c[u],f=d[0],p=d[1];o[p]||(o[p]=f)}e.exports=o},84:e=>{"use strict";e.exports=require("assert")},238:e=>{"use strict";e.exports=require("base64-js")},3:e=>{"use strict";e.exports=require("classnames")},665:e=>{"use strict";e.exports=require("ieee754")},689:e=>{"use strict";e.exports=require("react")},997:e=>{"use strict";e.exports=require("react/jsx-runtime")},464:e=>{"use strict";e.exports=require("util")}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{CardPayment:()=>e.CardPayment,SeatSelection:()=>t.SeatSelection});var e=n(598),t=n(461)})();var s=exports;for(var i in r)s[i]=r[i];r.__esModule&&Object.defineProperty(s,"__esModule",{value:!0})})();