UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

6 lines 335 kB
"use strict";var M5=Object.create;var hi=Object.defineProperty;var N5=Object.getOwnPropertyDescriptor;var A5=Object.getOwnPropertyNames;var P5=Object.getPrototypeOf,w5=Object.prototype.hasOwnProperty;var le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Cc=(e,t)=>{for(var r in t)hi(e,r,{get:t[r],enumerable:!0})},Ql=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of A5(t))!w5.call(e,o)&&o!==r&&hi(e,o,{get:()=>t[o],enumerable:!(n=N5(t,o))||n.enumerable});return e};var T=(e,t,r)=>(r=e!=null?M5(P5(e)):{},Ql(t||!e||!e.__esModule?hi(r,"default",{value:e,enumerable:!0}):r,e)),L5=e=>Ql(hi({},"__esModule",{value:!0}),e);var ve=le((yI,is)=>{(function(){"use strict";var e={}.hasOwnProperty,t="[native code]";function r(){for(var n=[],o=0;o<arguments.length;o++){var a=arguments[o];if(a){var i=typeof a;if(i==="string"||i==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var s=r.apply(null,a);s&&n.push(s)}}else if(i==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var c in a)e.call(a,c)&&a[c]&&n.push(c)}}}return n.join(" ")}typeof is<"u"&&is.exports?(r.default=r,is.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var ap=le((vs,op)=>{(function(e,t){typeof vs=="object"&&typeof op<"u"?t(vs,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],t):(e=e||self,t(e.ReactStripe={},e.React))})(vs,function(e,t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;function r(E,C){var v=Object.keys(E);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(E);C&&(F=F.filter(function(J){return Object.getOwnPropertyDescriptor(E,J).enumerable})),v.push.apply(v,F)}return v}function n(E){for(var C=1;C<arguments.length;C++){var v=arguments[C]!=null?arguments[C]:{};C%2?r(Object(v),!0).forEach(function(F){a(E,F,v[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(v)):r(Object(v)).forEach(function(F){Object.defineProperty(E,F,Object.getOwnPropertyDescriptor(v,F))})}return E}function o(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(C){return typeof C}:o=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},o(E)}function a(E,C,v){return C in E?Object.defineProperty(E,C,{value:v,enumerable:!0,configurable:!0,writable:!0}):E[C]=v,E}function i(E,C){return s(E)||c(E,C)||l(E,C)||f()}function s(E){if(Array.isArray(E))return E}function c(E,C){var v=E&&(typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"]);if(v!=null){var F=[],J=!0,V=!1,pe,De;try{for(v=v.call(E);!(J=(pe=v.next()).done)&&(F.push(pe.value),!(C&&F.length===C));J=!0);}catch(W){V=!0,De=W}finally{try{!J&&v.return!=null&&v.return()}finally{if(V)throw De}}return F}}function l(E,C){if(E){if(typeof E=="string")return u(E,C);var v=Object.prototype.toString.call(E).slice(8,-1);if(v==="Object"&&E.constructor&&(v=E.constructor.name),v==="Map"||v==="Set")return Array.from(E);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return u(E,C)}}function u(E,C){(C==null||C>E.length)&&(C=E.length);for(var v=0,F=new Array(C);v<C;v++)F[v]=E[v];return F}function f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(E,C){return C={exports:{}},E(C,C.exports),C.exports}var d="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",g=d;function _(){}function S(){}S.resetWarningCache=_;var y=function(){function E(F,J,V,pe,De,W){if(W!==g){var et=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw et.name="Invariant Violation",et}}E.isRequired=E;function C(){return E}var v={array:E,bool:E,func:E,number:E,object:E,string:E,symbol:E,any:E,arrayOf:C,element:E,elementType:E,instanceOf:C,node:E,objectOf:C,oneOf:C,oneOfType:C,shape:C,exact:C,checkPropTypes:S,resetWarningCache:_};return v.PropTypes=v,v},p=m(function(E){E.exports=y()}),O=function(C){var v=t.useRef(C);return t.useEffect(function(){v.current=C},[C]),v.current},M=function(C){return C!==null&&o(C)==="object"},A=function(C){return M(C)&&typeof C.then=="function"},w=function(C){return M(C)&&typeof C.elements=="function"&&typeof C.createToken=="function"&&typeof C.createPaymentMethod=="function"&&typeof C.confirmCardPayment=="function"},D="[object Object]",H=function E(C,v){if(!M(C)||!M(v))return C===v;var F=Array.isArray(C),J=Array.isArray(v);if(F!==J)return!1;var V=Object.prototype.toString.call(C)===D,pe=Object.prototype.toString.call(v)===D;if(V!==pe)return!1;if(!V&&!F)return C===v;var De=Object.keys(C),W=Object.keys(v);if(De.length!==W.length)return!1;for(var et={},tt=0;tt<De.length;tt+=1)et[De[tt]]=!0;for(var Nt=0;Nt<W.length;Nt+=1)et[W[Nt]]=!0;var At=Object.keys(et);if(At.length!==De.length)return!1;var Or=C,zr=v,gt=function(Kr){return E(Or[Kr],zr[Kr])};return At.every(gt)},$=function(C,v,F){return M(C)?Object.keys(C).reduce(function(J,V){var pe=!M(v)||!H(C[V],v[V]);return F.includes(V)?(pe&&console.warn("Unsupported prop change: options.".concat(V," is not a mutable property.")),J):pe?n(n({},J||{}),{},a({},V,C[V])):J},null):null},k="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",me=function(C){if(C===null||w(C))return C;throw new Error(k)},Ee=function(C){if(A(C))return{tag:"async",stripePromise:Promise.resolve(C).then(me)};var v=me(C);return v===null?{tag:"empty"}:{tag:"sync",stripe:v}},Je=t.createContext(null);Je.displayName="ElementsContext";var te=function(C,v){if(!C)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(v," in an <Elements> provider."));return C},G=t.createContext(null);G.displayName="CartElementContext";var ae=function(C,v){if(!C)throw new Error("Could not find Elements context; You need to wrap the part of your app that ".concat(v," in an <Elements> provider."));return C},z=function(C){var v=C.stripe,F=C.options,J=C.children,V=t.useMemo(function(){return Ee(v)},[v]),pe=t.useState(null),De=i(pe,2),W=De[0],et=De[1],tt=t.useState(null),Nt=i(tt,2),At=Nt[0],Or=Nt[1],zr=t.useState(function(){return{stripe:V.tag==="sync"?V.stripe:null,elements:V.tag==="sync"?V.stripe.elements(F):null}}),gt=i(zr,2),We=gt[0],Kr=gt[1];t.useEffect(function(){var je=!0,io=function(Rn){Kr(function(On){return On.stripe?On:{stripe:Rn,elements:Rn.elements(F)}})};return V.tag==="async"&&!We.stripe?V.stripePromise.then(function(xr){xr&&je&&io(xr)}):V.tag==="sync"&&!We.stripe&&io(V.stripe),function(){je=!1}},[V,We,F]);var Xr=O(v);t.useEffect(function(){Xr!==null&&Xr!==v&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[Xr,v]);var Jr=O(F);return t.useEffect(function(){if(We.elements){var je=$(F,Jr,["clientSecret","fonts"]);je&&We.elements.update(je)}},[F,Jr,We.elements]),t.useEffect(function(){var je=We.stripe;!je||!je._registerWrapper||!je.registerAppInfo||(je._registerWrapper({name:"react-stripe-js",version:"2.1.0"}),je.registerAppInfo({name:"react-stripe-js",version:"2.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},[We.stripe]),t.createElement(Je.Provider,{value:We},t.createElement(G.Provider,{value:{cart:W,setCart:et,cartState:At,setCartState:Or}},J))};z.propTypes={stripe:p.any,options:p.object};var fe=function(C){var v=t.useContext(Je);return te(v,C)},Oe=function(C){var v=t.useContext(G);return ae(v,C)},xt=function(){var C=fe("calls useElements()"),v=C.elements;return v},xe=function(){var C=fe("calls useStripe()"),v=C.stripe;return v},Me=function(){var C=Oe("calls useCartElement()"),v=C.cart;return v},Le=function(){var C=Oe("calls useCartElementState()"),v=C.cartState;return v},Mt=function(C){var v=C.children,F=fe("mounts <ElementsConsumer>");return v(F)};Mt.propTypes={children:p.func.isRequired};var de=function(C,v,F){var J=!!F,V=t.useRef(F);t.useEffect(function(){V.current=F},[F]),t.useEffect(function(){if(!J||!C)return function(){};var pe=function(){V.current&&V.current.apply(V,arguments)};return C.on(v,pe),function(){C.off(v,pe)}},[J,v,C,V])},er=function(C){return C.charAt(0).toUpperCase()+C.slice(1)},re=function(C,v){var F="".concat(er(C),"Element"),J=function(W){var et=W.id,tt=W.className,Nt=W.options,At=Nt===void 0?{}:Nt,Or=W.onBlur,zr=W.onFocus,gt=W.onReady,We=W.onChange,Kr=W.onEscape,Xr=W.onClick,Jr=W.onLoadError,je=W.onLoaderStart,io=W.onNetworksChange,xr=W.onCheckout,Rn=W.onLineItemClick,On=W.onConfirm,Qr=W.onCancel,hc=W.onShippingAddressChange,pi=W.onShippingRateChange,gi=fe("mounts <".concat(F,">")),so=gi.elements,Sc=t.useState(null),ie=i(Sc,2),x=ie[0],ne=ie[1],ce=t.useRef(null),Ce=t.useRef(null),ht=Oe("mounts <".concat(F,">")),rt=ht.setCart,St=ht.setCartState;de(x,"blur",Or),de(x,"focus",zr),de(x,"escape",Kr),de(x,"click",Xr),de(x,"loaderror",Jr),de(x,"loaderstart",je),de(x,"networkschange",io),de(x,"lineitemclick",Rn),de(x,"confirm",On),de(x,"cancel",Qr),de(x,"shippingaddresschange",hc),de(x,"shippingratechange",pi);var Pt;C==="cart"?Pt=function(Jl){St(Jl),gt&&gt(Jl)}:gt&&(C==="expressCheckout"?Pt=gt:Pt=function(){gt(x)}),de(x,"ready",Pt);var co=C==="cart"?function(Be){St(Be),We&&We(Be)}:We;de(x,"change",co);var xn=C==="cart"?function(Be){St(Be),xr&&xr(Be)}:xr;de(x,"checkout",xn),t.useLayoutEffect(function(){if(ce.current===null&&so&&Ce.current!==null){var Be=so.create(C,At);C==="cart"&&rt&&rt(Be),ce.current=Be,ne(Be),Be.mount(Ce.current)}},[so,At,rt]);var en=O(At);return t.useEffect(function(){if(ce.current){var Be=$(At,en,["paymentRequest"]);Be&&ce.current.update(Be)}},[At,en]),t.useLayoutEffect(function(){return function(){ce.current&&(ce.current.destroy(),ce.current=null)}},[]),t.createElement("div",{id:et,className:tt,ref:Ce})},V=function(W){fe("mounts <".concat(F,">")),Oe("mounts <".concat(F,">"));var et=W.id,tt=W.className;return t.createElement("div",{id:et,className:tt})},pe=v?V:J;return pe.propTypes={id:p.string,className:p.string,onChange:p.func,onBlur:p.func,onFocus:p.func,onReady:p.func,onEscape:p.func,onClick:p.func,onLoadError:p.func,onLoaderStart:p.func,onNetworksChange:p.func,onCheckout:p.func,onLineItemClick:p.func,onConfirm:p.func,onCancel:p.func,onShippingAddressChange:p.func,onShippingRateChange:p.func,options:p.object},pe.displayName=F,pe.__elementType=C,pe},se=typeof window>"u",ha=re("auBankAccount",se),Sa=re("card",se),to=re("cardNumber",se),bn=re("cardExpiry",se),En=re("cardCvc",se),In=re("fpxBank",se),Tn=re("iban",se),tr=re("idealBank",se),qr=re("p24Bank",se),ro=re("epsBank",se),no=re("payment",se),Qe=re("expressCheckout",se),Yr=re("paymentRequestButton",se),Rr=re("linkAuthentication",se),pc=re("address",se),oo=re("shippingAddress",se),gc=re("cart",se),mi=re("paymentMethodMessaging",se),ao=re("affirmMessage",se),di=re("afterpayClearpayMessage",se);e.AddressElement=pc,e.AffirmMessageElement=ao,e.AfterpayClearpayMessageElement=di,e.AuBankAccountElement=ha,e.CardCvcElement=En,e.CardElement=Sa,e.CardExpiryElement=bn,e.CardNumberElement=to,e.CartElement=gc,e.Elements=z,e.ElementsConsumer=Mt,e.EpsBankElement=ro,e.ExpressCheckoutElement=Qe,e.FpxBankElement=In,e.IbanElement=Tn,e.IdealBankElement=tr,e.LinkAuthenticationElement=Rr,e.P24BankElement=qr,e.PaymentElement=no,e.PaymentMethodMessagingElement=mi,e.PaymentRequestButtonElement=Yr,e.ShippingAddressElement=oo,e.useCartElement=Me,e.useCartElementState=Le,e.useElements=xt,e.useStripe=xe,Object.defineProperty(e,"__esModule",{value:!0})})});var jn=le((WP,Ms)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var i=arguments[a];i&&(o=n(o,r(i)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var i in o)e.call(o,i)&&o[i]&&(a=n(a,i));return a}function n(o,a){return a?o?o+" "+a:o+a:o}typeof Ms<"u"&&Ms.exports?(t.default=t,Ms.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Qp=le(oe=>{"use strict";var Il=Symbol.for("react.element"),Tl=Symbol.for("react.portal"),Bs=Symbol.for("react.fragment"),Vs=Symbol.for("react.strict_mode"),Us=Symbol.for("react.profiler"),$s=Symbol.for("react.provider"),Gs=Symbol.for("react.context"),P3=Symbol.for("react.server_context"),Ws=Symbol.for("react.forward_ref"),js=Symbol.for("react.suspense"),Zs=Symbol.for("react.suspense_list"),qs=Symbol.for("react.memo"),Ys=Symbol.for("react.lazy"),w3=Symbol.for("react.offscreen"),Jp;Jp=Symbol.for("react.module.reference");function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Il:switch(e=e.type,e){case Bs:case Us:case Vs:case js:case Zs:return e;default:switch(e=e&&e.$$typeof,e){case P3:case Gs:case Ws:case Ys:case qs:case $s:return e;default:return t}}case Tl:return t}}}oe.ContextConsumer=Gs;oe.ContextProvider=$s;oe.Element=Il;oe.ForwardRef=Ws;oe.Fragment=Bs;oe.Lazy=Ys;oe.Memo=qs;oe.Portal=Tl;oe.Profiler=Us;oe.StrictMode=Vs;oe.Suspense=js;oe.SuspenseList=Zs;oe.isAsyncMode=function(){return!1};oe.isConcurrentMode=function(){return!1};oe.isContextConsumer=function(e){return $t(e)===Gs};oe.isContextProvider=function(e){return $t(e)===$s};oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Il};oe.isForwardRef=function(e){return $t(e)===Ws};oe.isFragment=function(e){return $t(e)===Bs};oe.isLazy=function(e){return $t(e)===Ys};oe.isMemo=function(e){return $t(e)===qs};oe.isPortal=function(e){return $t(e)===Tl};oe.isProfiler=function(e){return $t(e)===Us};oe.isStrictMode=function(e){return $t(e)===Vs};oe.isSuspense=function(e){return $t(e)===js};oe.isSuspenseList=function(e){return $t(e)===Zs};oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Bs||e===Us||e===Vs||e===js||e===Zs||e===w3||typeof e=="object"&&e!==null&&(e.$$typeof===Ys||e.$$typeof===qs||e.$$typeof===$s||e.$$typeof===Gs||e.$$typeof===Ws||e.$$typeof===Jp||e.getModuleId!==void 0)};oe.typeOf=$t});var t2=le((eL,e2)=>{"use strict";e2.exports=Qp()});var pt=le(Ge=>{"use strict";var rc=Ge&&Ge.__assign||function(){return rc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},rc.apply(this,arguments)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.UNITS_META=Ge.UNITS=Ge.UNITS_META_MAP=Ge.UNITS_META_MAP_LITERAL=Ge.ZERO=void 0;var R2=1e3,O2=R2*60,x2=O2*60,kl=x2*24,j3=kl*7,M2=kl*365,Z3=M2/12;Ge.ZERO=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0});Ge.UNITS_META_MAP_LITERAL={years:{milliseconds:M2,months:12,dateGetter:function(e){return e.getFullYear()},ISOCharacter:"Y",ISOPrecision:"period"},months:{milliseconds:Z3,months:1,dateGetter:function(e){return e.getMonth()},ISOCharacter:"M",ISOPrecision:"period"},weeks:{milliseconds:j3,dateGetter:function(){return 0},ISOCharacter:"W",ISOPrecision:"period",stringifyConvertTo:"days"},days:{milliseconds:kl,dateGetter:function(e){return e.getDate()},ISOCharacter:"D",ISOPrecision:"period"},hours:{milliseconds:x2,dateGetter:function(e){return e.getHours()},ISOCharacter:"H",ISOPrecision:"time"},minutes:{milliseconds:O2,dateGetter:function(e){return e.getMinutes()},ISOCharacter:"M",ISOPrecision:"time"},seconds:{milliseconds:R2,dateGetter:function(e){return e.getSeconds()},ISOCharacter:"S",ISOPrecision:"time"},milliseconds:{milliseconds:1,dateGetter:function(e){return e.getMilliseconds()},stringifyConvertTo:"seconds"}};Ge.UNITS_META_MAP=Ge.UNITS_META_MAP_LITERAL;Ge.UNITS=Object.freeze(["years","months","weeks","days","hours","minutes","seconds","milliseconds"]);Ge.UNITS_META=Object.freeze(Ge.UNITS.map(function(e){return rc(rc({},Ge.UNITS_META_MAP[e]),{unit:e})}))});var na=le(ra=>{"use strict";var Hl=ra&&ra.__assign||function(){return Hl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Hl.apply(this,arguments)};Object.defineProperty(ra,"__esModule",{value:!0});ra.negate=void 0;var q3=pt(),Y3=Ir(),z3=function(e){var t=Hl({},(0,Y3.parse)(e));return q3.UNITS.forEach(function(r){t[r]=t[r]===0?0:-t[r]}),t};ra.negate=z3});var N2=le(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.isNegativelySigned=void 0;var K3=function(e){return e<0||Object.is(e,-0)};nc.isNegativelySigned=K3});var w2=le(oa=>{"use strict";var Bl=oa&&oa.__assign||function(){return Bl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Bl.apply(this,arguments)};Object.defineProperty(oa,"__esModule",{value:!0});oa.parseISODuration=void 0;var X3=pt(),J3=na(),Q3=N2(),A2="(?:[,.](\\d{1,3})\\d*)?",Jn=function(e){return"(?:(-?\\d+)".concat(e,")?")},P2=function(e,t){return function(r){var n=r.match(e);if(!n)return null;var o=n[1]==="-",a=n.slice(2);if(a.every(function(c){return c===void 0}))return null;var i=a.map(function(c,l){c=c??"0";var u=l===a.length-1;return Number(u?c.padEnd(3,"0"):c)}),s=Bl({},X3.ZERO);return t.forEach(function(c,l){s[c]=i[l]}),(0,Q3.isNegativelySigned)(s.seconds)&&(s.milliseconds*=-1),o?(0,J3.negate)(s):s}},e7=P2(new RegExp(["^(-)?P","(\\d{4})","-?","(\\d{2})","-?","(\\d{2})","T","(\\d{2})",":?","(\\d{2})",":?","(\\d{2})",A2,"$"].join("")),["years","months","days","hours","minutes","seconds","milliseconds"]),t7=P2(new RegExp(["^(-)?P",Jn("Y"),Jn("M"),Jn("W"),Jn("D"),"(?:T",Jn("H"),Jn("M"),Jn("".concat(A2,"S")),")?$"].join("")),["years","months","weeks","days","hours","minutes","seconds","milliseconds"]),r7=function(e){var t=t7(e)||e7(e);if(t===null)throw new SyntaxError('Failed to parse duration. "'.concat(e,'" is not a valid ISO duration string.'));return t};oa.parseISODuration=r7});var L2=le(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.validate=void 0;var n7=pt(),o7=function(e){Object.keys(e).forEach(function(t){if(!n7.UNITS.includes(t))throw new TypeError('Unexpected property "'.concat(t,'" on Duration object.'));if(!Number.isInteger(e[t]))throw new TypeError('Property "'.concat(t,'" must be a an integer. Received ').concat(e[t],"."))})};oc.validate=o7});var D2=le(aa=>{"use strict";var Vl=aa&&aa.__assign||function(){return Vl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Vl.apply(this,arguments)};Object.defineProperty(aa,"__esModule",{value:!0});aa.cleanDurationObject=void 0;var a7=pt(),i7=function(e){var t=Vl({},e);return a7.UNITS.forEach(function(r){t[r]===0&&(t[r]=0)}),t};aa.cleanDurationObject=i7});var Ir=le(sa=>{"use strict";var ia=sa&&sa.__assign||function(){return ia=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ia.apply(this,arguments)};Object.defineProperty(sa,"__esModule",{value:!0});sa.parse=void 0;var F2=pt(),s7=w2(),c7=L2(),l7=D2(),u7=function(e){return typeof e=="string"?(0,s7.parseISODuration)(e):typeof e=="number"?ia(ia({},F2.ZERO),{milliseconds:e}):ia(ia({},F2.ZERO),e)},f7=function(e){var t=u7(e);return(0,c7.validate)(t),(0,l7.cleanDurationObject)(t)};sa.parse=f7});var ui=le(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.toYears=be.toMonths=be.toWeeks=be.toDays=be.toHours=be.toMinutes=be.toSeconds=be.toUnit=be.toMilliseconds=void 0;var m7=Ir(),k2=pt(),d7=function(e){var t=(0,m7.parse)(e);return k2.UNITS_META.reduce(function(r,n){var o=n.unit,a=n.milliseconds;return r+t[o]*a},0)};be.toMilliseconds=d7;var p7=function(e,t){return(0,be.toMilliseconds)(e)/k2.UNITS_META_MAP[t].milliseconds};be.toUnit=p7;var Qn=function(e){return function(t){return(0,be.toUnit)(t,e)}};be.toSeconds=Qn("seconds");be.toMinutes=Qn("minutes");be.toHours=Qn("hours");be.toDays=Qn("days");be.toWeeks=Qn("weeks");be.toMonths=Qn("months");be.toYears=Qn("years")});var Ul=le(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.isNegative=void 0;var g7=ui(),h7=function(e){return(0,g7.toMilliseconds)(e)<0};ac.isNegative=h7});var H2=le(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.abs=void 0;var S7=Ul(),C7=na(),_7=Ir(),y7=function(e){return(0,S7.isNegative)(e)?(0,C7.negate)(e):(0,_7.parse)(e)};ic.abs=y7});var B2=le(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.addMonths=eo.getDaysInMonth=void 0;var v7=function(e){var t=e.getMonth(),r=new Date(0);return r.setFullYear(e.getFullYear(),t+1,0),r.setHours(0,0,0,0),r.getDate()};eo.getDaysInMonth=v7;var b7=function(e,t){var r=e.getMonth()+t,n=new Date(0);n.setFullYear(e.getFullYear(),r,1),n.setHours(0,0,0,0);var o=(0,eo.getDaysInMonth)(n);e.setMonth(r,Math.min(o,e.getDate()))};eo.addMonths=b7});var $l=le(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.apply=void 0;var E7=B2(),I7=Ir(),T7=function(e,t){var r=new Date(e),n=(0,I7.parse)(t),o=n.years,a=n.months,i=n.weeks,s=n.days,c=n.hours,l=n.minutes,u=n.seconds,f=n.milliseconds;return(0,E7.addMonths)(r,o*12+a),r.setDate(r.getDate()+i*7+s),r.setHours(r.getHours()+c,r.getMinutes()+l,r.getSeconds()+u,r.getMilliseconds()+f),r};sc.apply=T7});var Wl=le(ca=>{"use strict";var Gl=ca&&ca.__assign||function(){return Gl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Gl.apply(this,arguments)};Object.defineProperty(ca,"__esModule",{value:!0});ca.between=void 0;var V2=pt(),R7=function(e,t){var r=new Date(e),n=new Date(t),o=Gl({},V2.ZERO);return V2.UNITS_META.forEach(function(a){var i=a.unit,s=a.dateGetter;o[i]=s(n)-s(r)}),o};ca.between=R7});var jl=le(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.isZero=void 0;var O7=ui(),x7=function(e){return(0,O7.toMilliseconds)(e)===0};cc.isZero=x7});var G2=le(vn=>{"use strict";var la=vn&&vn.__assign||function(){return la=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},la.apply(this,arguments)},M7=vn&&vn.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};Object.defineProperty(vn,"__esModule",{value:!0});vn.normalize=void 0;var Zl=pt(),N7=Wl(),A7=$l(),U2=ui(),P7=Ir(),$2=function(e,t){return function(r,n){var o=la({},r);return e.forEach(function(a){var i=t(a);o[a]=~~(n/i),n-=o[a]*i}),o}},w7=$2(["years","months"],function(e){return Zl.UNITS_META_MAP_LITERAL[e].months}),L7=$2(["days","hours","minutes","seconds","milliseconds"],function(e){return Zl.UNITS_META_MAP_LITERAL[e].milliseconds}),D7=function(e){var t=(0,P7.parse)(e),r=t.years,n=t.months,o=t.weeks,a=t.days,i=M7(t,["years","months","weeks","days"]),s=la({},Zl.ZERO);return s=w7(s,(0,U2.toMonths)({years:r,months:n})),s=L7(s,(0,U2.toMilliseconds)(la(la({},i),{days:a+o*7}))),s},F7=function(e,t){var r=t!=null?(0,N7.between)(t,(0,A7.apply)(t,e)):e;return D7(r)};vn.normalize=F7});var Yl=le(ua=>{"use strict";var ql=ua&&ua.__assign||function(){return ql=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},ql.apply(this,arguments)};Object.defineProperty(ua,"__esModule",{value:!0});ua.sum=void 0;var W2=pt(),k7=Ir(),H7=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=ql({},W2.ZERO);return e.map(k7.parse).forEach(function(n){W2.UNITS.forEach(function(o){r[o]+=n[o]})}),r};ua.sum=H7});var j2=le(fa=>{"use strict";var B7=fa&&fa.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))};Object.defineProperty(fa,"__esModule",{value:!0});fa.subtract=void 0;var V7=na(),U7=Yl(),$7=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return U7.sum.apply(void 0,B7([e],t.map(V7.negate),!1))};fa.subtract=$7});var Z2=le(ma=>{"use strict";var zl=ma&&ma.__assign||function(){return zl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},zl.apply(this,arguments)};Object.defineProperty(ma,"__esModule",{value:!0});ma.getUnitCount=void 0;var G7=pt(),W7=Ir(),j7=function(e){var t=zl({},(0,W7.parse)(e)),r=0;return G7.UNITS.forEach(function(n){t[n]!==0&&r++}),r};ma.getUnitCount=j7});var q2=le(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.checkAllUnitsNegative=void 0;var Z7=na(),q7=Ir(),Y7=pt(),z7=function(e){var t=(0,q7.parse)(e),r=!1,n=!1;return Y7.UNITS.forEach(function(o){var a=t[o];a<0?n=!0:a>0&&(r=!0)}),n&&!r?{isAllNegative:!0,maybeAbsDuration:(0,Z7.negate)(t)}:{isAllNegative:!1,maybeAbsDuration:t}};lc.checkAllUnitsNegative=z7});var z2=le(da=>{"use strict";var Kl=da&&da.__assign||function(){return Kl=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Kl.apply(this,arguments)};Object.defineProperty(da,"__esModule",{value:!0});da.toString=void 0;var K7=jl(),X7=Z2(),uc=pt(),J7=q2(),Y2=function(e,t){return e.join("").replace(/\./g,t)},Q7=function(e,t){t===void 0&&(t={});var r=Kl({decimalDelimiter:","},t);if((0,K7.isZero)(e))return"P0D";var n=(0,J7.checkAllUnitsNegative)(e),o=n.maybeAbsDuration,a=n.isAllNegative;if((0,X7.getUnitCount)(o)===1&&o.weeks!==0)return"P".concat(o.weeks,"W");var i={period:[],time:[]};uc.UNITS_META.forEach(function(c){var l=c.unit,u=c.stringifyConvertTo;if(u!=null){var f=o[l]*uc.UNITS_META_MAP[l].milliseconds;o[u]+=f/uc.UNITS_META_MAP[u].milliseconds,o[l]=0}}),uc.UNITS_META.forEach(function(c){var l=c.unit,u=c.ISOPrecision,f=c.ISOCharacter,m=o[l];u!=null&&m!==0&&i[u].push("".concat(m).concat(f))});var s="P".concat(Y2(i.period,r.decimalDelimiter));return i.time.length&&(s+="T".concat(Y2(i.time,r.decimalDelimiter))),a&&(s="-".concat(s)),s};da.toString=Q7});var X2=le(K2=>{"use strict";Object.defineProperty(K2,"__esModule",{value:!0})});var Xl=le(Te=>{"use strict";var e4=Te&&Te.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ot=Te&&Te.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e4(t,e,r)};Object.defineProperty(Te,"__esModule",{value:!0});Te.UNITS=void 0;Ot(H2(),Te);Ot($l(),Te);Ot(Wl(),Te);Ot(Ul(),Te);Ot(jl(),Te);Ot(na(),Te);Ot(G2(),Te);Ot(Ir(),Te);Ot(j2(),Te);Ot(Yl(),Te);Ot(z2(),Te);Ot(ui(),Te);Ot(X2(),Te);var t4=pt();Object.defineProperty(Te,"UNITS",{enumerable:!0,get:function(){return t4.UNITS}})});var m4={};Cc(m4,{DuffelAncillaries:()=>W6,DuffelCardForm:()=>c4,DuffelNGSView:()=>s4,DuffelPayments:()=>r3,StaysAmenities:()=>a3,StaysRating:()=>fl,StaysRoomRateCard:()=>i3,StaysSummary:()=>o3,amenityIcon:()=>Cp,createThreeDSecureSession:()=>O5,hasAvailableSeatService:()=>Go,hasService:()=>x5,useDuffelCardFormActions:()=>l4,useSort:()=>f5});module.exports=L5(m4);var eu=Object.prototype.toString;function Ca(e){switch(eu.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Ct(e,Error)}}function lo(e,t){return eu.call(e)===`[object ${t}]`}function uo(e){return lo(e,"ErrorEvent")}function Si(e){return lo(e,"DOMError")}function _c(e){return lo(e,"DOMException")}function Ze(e){return lo(e,"String")}function fo(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Mn(e){return e===null||fo(e)||typeof e!="object"&&typeof e!="function"}function Wt(e){return lo(e,"Object")}function Nn(e){return typeof Event<"u"&&Ct(e,Event)}function yc(e){return typeof Element<"u"&&Ct(e,Element)}function vc(e){return lo(e,"RegExp")}function rr(e){return!!(e&&e.then&&typeof e.then=="function")}function bc(e){return Wt(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function _a(e){return typeof e=="number"&&e!==e}function Ct(e,t){try{return e instanceof t}catch{return!1}}function ya(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function nr(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Ci(e,t){if(!Array.isArray(e))return"";let r=[];for(let n=0;n<e.length;n++){let o=e[n];try{ya(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function tu(e,t,r=!1){return Ze(e)?vc(t)?t.test(e):Ze(t)?r?e===t:e.includes(t):!1:!1}function tn(e,t=[],r=!1){return t.some(n=>tu(e,n,r))}function va(e,t,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!Ct(i.originalException,Error))return;let s=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;s&&(a.exception.values=D5(Ec(e,t,o,i.originalException,n,a.exception.values,s,0),r))}function Ec(e,t,r,n,o,a,i,s){if(a.length>=r+1)return a;let c=[...a];if(Ct(n[o],Error)){ru(i,s);let l=e(t,n[o]),u=c.length;nu(l,o,u,s),c=Ec(e,t,r,n[o],o,[l,...c],l,u)}return Array.isArray(n.errors)&&n.errors.forEach((l,u)=>{if(Ct(l,Error)){ru(i,s);let f=e(t,l),m=c.length;nu(f,`errors[${u}]`,m,s),c=Ec(e,t,r,l,o,[f,...c],f,m)}}),c}function ru(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function nu(e,t,r,n){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:r,parent_id:n}}function D5(e,t){return e.map(r=>(r.value&&(r.value=nr(r.value,t)),r))}function _i(e){return e&&e.Math==Math?e:void 0}var L=typeof globalThis=="object"&&_i(globalThis)||typeof window=="object"&&_i(window)||typeof self=="object"&&_i(self)||typeof global=="object"&&_i(global)||function(){return this}()||{};function An(){return L}function ba(e,t,r){let n=r||L,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}var mo=An(),F5=80;function or(e,t={}){if(!e)return"<unknown>";try{let r=e,n=5,o=[],a=0,i=0,s=" > ",c=s.length,l,u=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||F5;for(;r&&a++<n&&(l=k5(r,u),!(l==="html"||a>1&&i+o.length*c+l.length>=f));)o.push(l),i+=l.length,r=r.parentNode;return o.reverse().join(s)}catch{return"<unknown>"}}function k5(e,t){let r=e,n=[],o,a,i,s,c;if(!r||!r.tagName)return"";if(mo.HTMLElement&&r instanceof HTMLElement&&r.dataset&&r.dataset.sentryComponent)return r.dataset.sentryComponent;n.push(r.tagName.toLowerCase());let l=t&&t.length?t.filter(f=>r.getAttribute(f)).map(f=>[f,r.getAttribute(f)]):null;if(l&&l.length)l.forEach(f=>{n.push(`[${f[0]}="${f[1]}"]`)});else if(r.id&&n.push(`#${r.id}`),o=r.className,o&&Ze(o))for(a=o.split(/\s+/),c=0;c<a.length;c++)n.push(`.${a[c]}`);let u=["aria-label","type","name","title","alt"];for(c=0;c<u.length;c++)i=u[c],s=r.getAttribute(i),s&&n.push(`[${i}="${s}"]`);return n.join("")}function Ic(){try{return mo.document.location.href}catch{return""}}function Tc(e){return mo.document&&mo.document.querySelector?mo.document.querySelector(e):null}function Ea(e){if(!mo.HTMLElement)return null;let t=e,r=5;for(let n=0;n<r;n++){if(!t)return null;if(t instanceof HTMLElement&&t.dataset.sentryComponent)return t.dataset.sentryComponent;t=t.parentNode}return null}var wt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var H5="Sentry Logger ",Ia=["debug","info","warn","error","log","assert","trace"],po={};function rn(e){if(!("console"in L))return e();let t=L.console,r={},n=Object.keys(po);n.forEach(o=>{let a=po[o];r[o]=t[o],t[o]=a});try{return e()}finally{n.forEach(o=>{t[o]=r[o]})}}function B5(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return wt?Ia.forEach(r=>{t[r]=(...n)=>{e&&rn(()=>{L.console[r](`${H5}[${r}]:`,...n)})}}):Ia.forEach(r=>{t[r]=()=>{}}),t}var h=B5();var V5=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function U5(e){return e==="http"||e==="https"}function nt(e,t=!1){let{host:r,path:n,pass:o,port:a,projectId:i,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${r}${a?`:${a}`:""}/${n&&`${n}/`}${i}`}function ou(e){let t=V5.exec(e);if(!t){rn(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[r,n,o="",a,i="",s]=t.slice(1),c="",l=s,u=l.split("/");if(u.length>1&&(c=u.slice(0,-1).join("/"),l=u.pop()),l){let f=l.match(/^\d+/);f&&(l=f[0])}return au({host:a,pass:o,path:c,projectId:l,port:i,protocol:r,publicKey:n})}function au(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function $5(e){if(!wt)return!0;let{port:t,projectId:r,protocol:n}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(h.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:r.match(/^\d+$/)?U5(n)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${n}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${r}`),!1)}function yi(e){let t=typeof e=="string"?ou(e):au(e);if(!(!t||!$5(t)))return t}var qe=class extends Error{constructor(t,r="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=r}};function ge(e,t,r){if(!(t in e))return;let n=e[t],o=r(n);typeof o=="function"&&vi(o,n),e[t]=o}function Lt(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{wt&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function vi(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,Lt(e,"__sentry_original__",t)}catch{}}function Pn(e){return e.__sentry_original__}function Oc(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function bi(e){if(Ca(e))return{message:e.message,name:e.name,stack:e.stack,...su(e)};if(Nn(e)){let t={type:e.type,target:iu(e.target),currentTarget:iu(e.currentTarget),...su(e)};return typeof CustomEvent<"u"&&Ct(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function iu(e){try{return yc(e)?or(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function su(e){if(typeof e=="object"&&e!==null){let t={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}else return{}}function xc(e,t=40){let r=Object.keys(bi(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return nr(r[0],t);for(let n=r.length;n>0;n--){let o=r.slice(0,n).join(", ");if(!(o.length>t))return n===r.length?o:nr(o,t)}return""}function he(e){return Rc(e,new Map)}function Rc(e,t){if(G5(e)){let r=t.get(e);if(r!==void 0)return r;let n={};t.set(e,n);for(let o of Object.keys(e))typeof e[o]<"u"&&(n[o]=Rc(e[o],t));return n}if(Array.isArray(e)){let r=t.get(e);if(r!==void 0)return r;let n=[];return t.set(e,n),e.forEach(o=>{n.push(Rc(o,t))}),n}return e}function G5(e){if(!Wt(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}var uu=50,cu=/\(error: (.*)\)/,lu=/captureMessage|captureException/;function Ei(...e){let t=e.sort((r,n)=>r[0]-n[0]).map(r=>r[1]);return(r,n=0)=>{let o=[],a=r.split(` `);for(let i=n;i<a.length;i++){let s=a[i];if(s.length>1024)continue;let c=cu.test(s)?s.replace(cu,"$1"):s;if(!c.match(/\S*Error: /)){for(let l of t){let u=l(c);if(u){o.push(u);break}}if(o.length>=uu)break}}return fu(o)}}function Nc(e){return Array.isArray(e)?Ei(...e):e}function fu(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),lu.test(t[t.length-1].function||"")&&(t.pop(),lu.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,uu).map(r=>({...r,filename:r.filename||t[t.length-1].filename,function:r.function||"?"}))}var Mc="<anonymous>";function ot(e){try{return!e||typeof e!="function"?Mc:e.name||Mc}catch{return Mc}}var Ii={},mu={};function at(e,t){Ii[e]=Ii[e]||[],Ii[e].push(t)}function it(e,t){mu[e]||(t(),mu[e]=!0)}function Fe(e,t){let r=e&&Ii[e];if(r)for(let n of r)try{n(t)}catch(o){wt&&h.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${ot(n)} Error:`,o)}}function Ac(e){let t="console";at(t,e),it(t,W5)}function W5(){"console"in L&&Ia.forEach(function(e){e in L.console&&ge(L.console,e,function(t){return po[e]=t,function(...r){Fe("console",{args:r,level:e});let o=po[e];o&&o.apply(L.console,r)}})})}function Q(){let e=L,t=e.crypto||e.msCrypto,r=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(r=()=>{let n=new Uint8Array(1);return t.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(r()&15)>>n/4).toString(16))}function du(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function jt(e){let{message:t,event_id:r}=e;if(t)return t;let n=du(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function go(e,t,r){let n=e.exception=e.exception||{},o=n.values=n.values||[],a=o[0]=o[0]||{};a.value||(a.value=t||""),a.type||(a.type=r||"Error")}function Mr(e,t){let r=du(e);if(!r)return;let n={type:"generic",handled:!0},o=r.mechanism;if(r.mechanism={...n,...o,...t},t&&"data"in t){let a={...o&&o.data,...t.data};r.mechanism.data=a}}function Ti(e){if(e&&e.__sentry_captured__)return!0;try{Lt(e,"__sentry_captured__",!0)}catch{}return!1}function Ta(e){return Array.isArray(e)?e:[e]}var ho=L,j5=1e3,pu,Pc,wc;function Lc(e){let t="dom";at(t,e),it(t,Z5)}function Z5(){if(!ho.document)return;let e=Fe.bind(null,"dom"),t=gu(e,!0);ho.document.addEventListener("click",t,!1),ho.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{let n=ho[r]&&ho[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ge(n,"addEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__=c.__sentry_instrumentation_handlers__||{},u=l[a]=l[a]||{refCount:0};if(!u.handler){let f=gu(e);u.handler=f,o.call(this,a,f,s)}u.refCount++}catch{}return o.call(this,a,i,s)}}),ge(n,"removeEventListener",function(o){return function(a,i,s){if(a==="click"||a=="keypress")try{let c=this,l=c.__sentry_instrumentation_handlers__||{},u=l[a];u&&(u.refCount--,u.refCount<=0&&(o.call(this,a,u.handler,s),u.handler=void 0,delete l[a]),Object.keys(l).length===0&&delete c.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,i,s)}}))})}function q5(e){if(e.type!==Pc)return!1;try{if(!e.target||e.target._sentryId!==wc)return!1}catch{}return!0}function Y5(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function gu(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=z5(r);if(Y5(r.type,n))return;Lt(r,"_sentryCaptured",!0),n&&!n._sentryId&&Lt(n,"_sentryId",Q());let o=r.type==="keypress"?"input":r.type;q5(r)||(e({event:r,name:o,global:t}),Pc=r.type,wc=n?n._sentryId:void 0),clearTimeout(pu),pu=ho.setTimeout(()=>{wc=void 0,Pc=void 0},j5)}}function z5(e){try{return e.target}catch{return null}}var Dc=An();function Ri(){if(!("fetch"in Dc))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ra(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Fc(){if(typeof EdgeRuntime=="string")return!0;if(!Ri())return!1;if(Ra(Dc.fetch))return!0;let e=!1,t=Dc.document;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(e=Ra(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){wt&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function Oa(e){let t="fetch";at(t,e),it(t,K5)}function K5(){Fc()&&ge(L,"fetch",function(e){return function(...t){let{method:r,url:n}=X5(t),o={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return Fe("fetch",{...o}),e.apply(L,t).then(a=>{let i={...o,endTimestamp:Date.now(),response:a};return Fe("fetch",i),a},a=>{let i={...o,endTimestamp:Date.now(),error:a};throw Fe("fetch",i),a})}})}function kc(e,t){return!!e&&typeof e=="object"&&!!e[t]}function hu(e){return typeof e=="string"?e:e?kc(e,"url")?e.url:e.toString?e.toString():"":""}function X5(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[r,n]=e;return{url:hu(r),method:kc(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:hu(t),method:kc(t,"method")?String(t.method).toUpperCase():"GET"}}var Oi=null;function xa(e){let t="error";at(t,e),it(t,J5)}function J5(){Oi=L.onerror,L.onerror=function(e,t,r,n,o){return Fe("error",{column:n,error:o,line:r,msg:e,url:t}),Oi&&!Oi.__SENTRY_LOADER__?Oi.apply(this,arguments):!1},L.onerror.__SENTRY_INSTRUMENTED__=!0}var xi=null;function Ma(e){let t="unhandledrejection";at(t,e),it(t,Q5)}function Q5(){xi=L.onunhandledrejection,L.onunhandledrejection=function(e){return Fe("unhandledrejection",e),xi&&!xi.__SENTRY_LOADER__?xi.apply(this,arguments):!0},L.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Mi=An();function Su(){let e=Mi.chrome,t=e&&e.app&&e.app.runtime,r="history"in Mi&&!!Mi.history.pushState&&!!Mi.history.replaceState;return!t&&r}var Na=L,Ni;function wn(e){let t="history";at(t,e),it(t,e9)}function e9(){if(!Su())return;let e=Na.onpopstate;Na.onpopstate=function(...r){let n=Na.location.href,o=Ni;if(Ni=n,Fe("history",{from:o,to:n}),e)try{return e.apply(this,r)}catch{}};function t(r){return function(...n){let o=n.length>2?n[2]:void 0;if(o){let a=Ni,i=String(o);Ni=i,Fe("history",{from:a,to:i})}return r.apply(this,n)}}ge(Na.history,"pushState",t),ge(Na.history,"replaceState",t)}var t9=L,Nr="__sentry_xhr_v3__";function Aa(e){let t="xhr";at(t,e),it(t,r9)}function r9(){if(!t9.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;ge(e,"open",function(t){return function(...r){let n=Date.now(),o=Ze(r[0])?r[0].toUpperCase():void 0,a=n9(r[1]);if(!o||!a)return t.apply(this,r);this[Nr]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let s=this[Nr];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}let c={args:[o,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};Fe("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ge(this,"onreadystatechange",function(s){return function(...c){return i(),s.apply(this,c)}}):this.addEventListener("readystatechange",i),ge(this,"setRequestHeader",function(s){return function(...c){let[l,u]=c,f=this[Nr];return f&&Ze(l)&&Ze(u)&&(f.request_headers[l.toLowerCase()]=u),s.apply(this,c)}}),t.apply(this,r)}}),ge(e,"send",function(t){return function(...r){let n=this[Nr];if(!n)return t.apply(this,r);r[0]!==void 0&&(n.body=r[0]);let o={args:[n.method,n.url],startTimestamp:Date.now(),xhr:this};return Fe("xhr",o),t.apply(this,r)}})}function n9(e){if(Ze(e))return e;try{return e.toString()}catch{}}function Hc(){return"npm"}function Cu(){let e=typeof WeakSet=="function",t=e?new WeakSet:[];function r(o){if(e)return t.has(o)?!0:(t.add(o),!1);for(let a=0;a<t.length;a++)if(t[a]===o)return!0;return t.push(o),!1}function n(o){if(e)t.delete(o);else for(let a=0;a<t.length;a++)if(t[a]===o){t.splice(a,1);break}}return[r,n]}function Zt(e,t=100,r=1/0){try{return Ai("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function Pi(e,t=3,r=100*1024){let n=Zt(e,t);return s9(n)>r?Pi(e,t-1,r):n}function Ai(e,t,r=1/0,n=1/0,o=Cu()){let[a,i]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!_a(t))return t;let s=o9(e,t);if(!s.startsWith("[object "))return s;if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:r;if(c===0)return s.replace("object ","");if(a(t))return"[Circular ~]";let l=t;if(l&&typeof l.toJSON=="function")try{let d=l.toJSON();return Ai("",d,c-1,n,o)}catch{}let u=Array.isArray(t)?[]:{},f=0,m=bi(t);for(let d in m){if(!Object.prototype.hasOwnProperty.call(m,d))continue;if(f>=n){u[d]="[MaxProperties ~]";break}let g=m[d];u[d]=Ai(d,g,c-1,n,o),f++}return i(t),u}function o9(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(ya(t))return"[VueViewModel]";if(bc(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${ot(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let r=a9(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function a9(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function i9(e){return~-encodeURI(e).split(/%..|./).length}function s9(e){return i9(JSON.stringify(e))}var Ar;(function(e){e[e.PENDING=0]="PENDING";let r=1;e[e.RESOLVED=r]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(Ar||(Ar={}));function qt(e){return new _t(t=>{t(e)})}function Ln(e){return new _t((t,r)=>{r(e)})}var _t=class e{constructor(t){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=Ar.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(r){this._reject(r)}}then(t,r){return new e((n,o)=>{this._handlers.push([!1,a=>{if(!t)n(a);else try{n(t(a))}catch(i){o(i)}},a=>{if(!r)o(a);else try{n(r(a))}catch(i){o(i)}}]),this._executeHandlers()})}catch(t){return this.then(r=>r,t)}finally(t){return new e((r,n)=>{let o,a;return this.then(i=>{a=!1,o=i,t&&t()},i=>{a=!0,o=i,t&&t()}).then(()=>{if(a){n(o);return}r(o)})})}__init(){this._resolve=t=>{this._setResult(Ar.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Ar.REJECTED,t)}}__init3(){this._setResult=(t,r)=>{if(this._state===Ar.PENDING){if(rr(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Ar.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===Ar.RESOLVED&&r[1](this._value),this._state===Ar.REJECTED&&r[2](this._value),r[0]=!0)})}}};function Bc(e){let t=[];function r(){return e===void 0||t.length<e}function n(i){return t.splice(t.indexOf(i),1)[0]}function o(i){if(!r())return Ln(new qe("Not adding Promise because buffer limit was reached."));let s=i();return t.indexOf(s)===-1&&t.push(s),s.then(()=>n(s)).then(null,()=>n(s).then(null,()=>{})),s}function a(i){return new _t((s,c)=>{let l=t.length;if(!l)return s(!0);let u=setTimeout(()=>{i&&i>0&&s(!1)},i);t.forEach(f=>{qt(f).then(()=>{--l||(clearTimeout(u),s(!0))},c)})})}return{$:t,add:o,drain:a}}function Dt(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let r=t[6]||"",n=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:r,hash:n,relative:t[5]+r+n}}var _u=["fatal","error","warning","log","info","debug"];function Vc(e){return e==="warn"?"warning":_u.includes(e)?e:"log"}var yu=1e3;function ar(){return Date.now()/yu}function c9(){let{performance:e}=L;if(!e||!e.now)return ar;let t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return()=>(r+e.now())/yu}var Yt=c9();var Pa,Ye=(()=>{let{performance:e}=L;if(!e||!e.now){Pa="none";return}let t=3600*1e3,r=e.now(),n=Date.now(),o=e.timeOrigin?Math.abs(e.timeOrigin+r-n):t,a=o<t,i=e.timing&&e.timing.navigationStart,c=typeof i=="number"?Math.abs(i+r-n):t,l=c<t;return a||l?o<=c?(Pa="timeOrigin",e.timeOrigin):(Pa="navigationStart",i):(Pa="dateNow",n)})();var So="baggage",Uc="sentry-",bu=/^sentry-/,Eu=8192;function $c(e){if(!Ze(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((n,o)=>{let a=vu(o);for(let i of Object.keys(a))n[i]=a[i];return n},{});else{if(!e)return;t=vu(e)}let r=Object.entries(t).reduce((n,[o,a])=>{if(o.match(bu)){let i=o.slice(Uc.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function wa(e){if(!e)return;let t=Object.entries(e).reduce((r,[n,o])=>(o&&(r[`${Uc}${n}`]=o),r),{});return l9(t)}function vu(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,n])=>(t[r]=n,t),{})}function l9(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[r,n],o)=>{let a=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,i=o===0?a:`${t},${a}`;return i.length>Eu?(wt&&h.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):i},"")}var Iu=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t