UNPKG

@duffel/components

Version:

Component library to build your travel product with Duffel.

6 lines 376 kB
"use strict";var dg=Object.create;var $i=Object.defineProperty;var pg=Object.getOwnPropertyDescriptor;var gg=Object.getOwnPropertyNames;var hg=Object.getPrototypeOf,Sg=Object.prototype.hasOwnProperty;var de=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jc=(e,t)=>{for(var r in t)$i(e,r,{get:t[r],enumerable:!0})},Zu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of gg(t))!Sg.call(e,o)&&o!==r&&$i(e,o,{get:()=>t[o],enumerable:!(n=pg(t,o))||n.enumerable});return e};var T=(e,t,r)=>(r=e!=null?dg(hg(e)):{},Zu(t||!e||!e.__esModule?$i(r,"default",{value:e,enumerable:!0}):r,e)),Cg=e=>Zu($i({},"__esModule",{value:!0}),e);var Re=de((Nx,Ps)=>{(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 Ps<"u"&&Ps.exports?(r.default=r,Ps.exports=r):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return r}):window.classNames=r})()});var Qp=de((Zs,Jp)=>{(function(e,t){typeof Zs=="object"&&typeof Jp<"u"?t(Zs,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],t):(e=e||self,t(e.ReactStripe={},e.React))})(Zs,(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 L=Object.getOwnPropertySymbols(E);C&&(L=L.filter(function(Q){return Object.getOwnPropertyDescriptor(E,Q).enumerable})),v.push.apply(v,L)}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(L){a(E,L,v[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(v)):r(Object(v)).forEach(function(L){Object.defineProperty(E,L,Object.getOwnPropertyDescriptor(v,L))})}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 L=[],Q=!0,U=!1,_e,We;try{for(v=v.call(E);!(Q=(_e=v.next()).done)&&(L.push(_e.value),!(C&&L.length===C));Q=!0);}catch(Y){U=!0,We=Y}finally{try{!Q&&v.return!=null&&v.return()}finally{if(U)throw We}}return L}}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,L=new Array(C);v<C;v++)L[v]=E[v];return L}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(L,Q,U,_e,We,Y){if(Y!==g){var ut=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 ut.name="Invariant Violation",ut}}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()}),R=function(C){var v=t.useRef(C);return t.useEffect(function(){v.current=C},[C]),v.current},O=function(C){return C!==null&&o(C)==="object"},N=function(C){return O(C)&&typeof C.then=="function"},P=function(C){return O(C)&&typeof C.elements=="function"&&typeof C.createToken=="function"&&typeof C.createPaymentMethod=="function"&&typeof C.confirmCardPayment=="function"},k="[object Object]",B=function E(C,v){if(!O(C)||!O(v))return C===v;var L=Array.isArray(C),Q=Array.isArray(v);if(L!==Q)return!1;var U=Object.prototype.toString.call(C)===k,_e=Object.prototype.toString.call(v)===k;if(U!==_e)return!1;if(!U&&!L)return C===v;var We=Object.keys(C),Y=Object.keys(v);if(We.length!==Y.length)return!1;for(var ut={},ft=0;ft<We.length;ft+=1)ut[We[ft]]=!0;for(var $t=0;$t<Y.length;$t+=1)ut[Y[$t]]=!0;var Wt=Object.keys(ut);if(Wt.length!==We.length)return!1;var Vr=C,mn=v,Ot=function(dn){return E(Vr[dn],mn[dn])};return Wt.every(Ot)},W=function(C,v,L){return O(C)?Object.keys(C).reduce(function(Q,U){var _e=!O(v)||!B(C[U],v[U]);return L.includes(U)?(_e&&console.warn("Unsupported prop change: options.".concat(U," is not a mutable property.")),Q):_e?n(n({},Q||{}),{},a({},U,C[U])):Q},null):null},F="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.",Ce=function(C){if(C===null||P(C))return C;throw new Error(F)},we=function(C){if(N(C))return{tag:"async",stripePromise:Promise.resolve(C).then(Ce)};var v=Ce(C);return v===null?{tag:"empty"}:{tag:"sync",stripe:v}},ct=t.createContext(null);ct.displayName="ElementsContext";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},G=t.createContext(null);G.displayName="CartElementContext";var le=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},K=function(C){var v=C.stripe,L=C.options,Q=C.children,U=t.useMemo(function(){return we(v)},[v]),_e=t.useState(null),We=i(_e,2),Y=We[0],ut=We[1],ft=t.useState(null),$t=i(ft,2),Wt=$t[0],Vr=$t[1],mn=t.useState(function(){return{stripe:U.tag==="sync"?U.stripe:null,elements:U.tag==="sync"?U.stripe.elements(L):null}}),Ot=i(mn,2),Qe=Ot[0],dn=Ot[1];t.useEffect(function(){var et=!0,xo=function($n){dn(function(Wn){return Wn.stripe?Wn:{stripe:$n,elements:$n.elements(L)}})};return U.tag==="async"&&!Qe.stripe?U.stripePromise.then(function(Ur){Ur&&et&&xo(Ur)}):U.tag==="sync"&&!Qe.stripe&&xo(U.stripe),function(){et=!1}},[U,Qe,L]);var pn=R(v);t.useEffect(function(){pn!==null&&pn!==v&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[pn,v]);var gn=R(L);return t.useEffect(function(){if(Qe.elements){var et=W(L,gn,["clientSecret","fonts"]);et&&Qe.elements.update(et)}},[L,gn,Qe.elements]),t.useEffect(function(){var et=Qe.stripe;!et||!et._registerWrapper||!et.registerAppInfo||(et._registerWrapper({name:"react-stripe-js",version:"2.1.0"}),et.registerAppInfo({name:"react-stripe-js",version:"2.1.0",url:"https://stripe.com/docs/stripe-js/react"}))},[Qe.stripe]),t.createElement(ct.Provider,{value:Qe},t.createElement(G.Provider,{value:{cart:Y,setCart:ut,cartState:Wt,setCartState:Vr}},Q))};K.propTypes={stripe:p.any,options:p.object};var ge=function(C){var v=t.useContext(ct);return ae(v,C)},ke=function(C){var v=t.useContext(G);return le(v,C)},Vt=function(){var C=ge("calls useElements()"),v=C.elements;return v},Le=function(){var C=ge("calls useStripe()"),v=C.stripe;return v},Fe=function(){var C=ke("calls useCartElement()"),v=C.cart;return v},$e=function(){var C=ke("calls useCartElementState()"),v=C.cartState;return v},Ut=function(C){var v=C.children,L=ge("mounts <ElementsConsumer>");return v(L)};Ut.propTypes={children:p.func.isRequired};var ye=function(C,v,L){var Q=!!L,U=t.useRef(L);t.useEffect(function(){U.current=L},[L]),t.useEffect(function(){if(!Q||!C)return function(){};var _e=function(){U.current&&U.current.apply(U,arguments)};return C.on(v,_e),function(){C.off(v,_e)}},[Q,v,C,U])},dr=function(C){return C.charAt(0).toUpperCase()+C.slice(1)},ie=function(C,v){var L="".concat(dr(C),"Element"),Q=function(Y){var ut=Y.id,ft=Y.className,$t=Y.options,Wt=$t===void 0?{}:$t,Vr=Y.onBlur,mn=Y.onFocus,Ot=Y.onReady,Qe=Y.onChange,dn=Y.onEscape,pn=Y.onClick,gn=Y.onLoadError,et=Y.onLoaderStart,xo=Y.onNetworksChange,Ur=Y.onCheckout,$n=Y.onLineItemClick,Wn=Y.onConfirm,hn=Y.onCancel,Kc=Y.onShippingAddressChange,Vi=Y.onShippingRateChange,Ui=ge("mounts <".concat(L,">")),Oo=Ui.elements,Xc=t.useState(null),ue=i(Xc,2),M=ue[0],se=ue[1],me=t.useRef(null),Ie=t.useRef(null),Mt=ke("mounts <".concat(L,">")),mt=Mt.setCart,Nt=Mt.setCartState;ye(M,"blur",Vr),ye(M,"focus",mn),ye(M,"escape",dn),ye(M,"click",pn),ye(M,"loaderror",gn),ye(M,"loaderstart",et),ye(M,"networkschange",xo),ye(M,"lineitemclick",$n),ye(M,"confirm",Wn),ye(M,"cancel",hn),ye(M,"shippingaddresschange",Kc),ye(M,"shippingratechange",Vi);var Gt;C==="cart"?Gt=function(ju){Nt(ju),Ot&&Ot(ju)}:Ot&&(C==="expressCheckout"?Gt=Ot:Gt=function(){Ot(M)}),ye(M,"ready",Gt);var Mo=C==="cart"?function(ze){Nt(ze),Qe&&Qe(ze)}:Qe;ye(M,"change",Mo);var Gn=C==="cart"?function(ze){Nt(ze),Ur&&Ur(ze)}:Ur;ye(M,"checkout",Gn),t.useLayoutEffect(function(){if(me.current===null&&Oo&&Ie.current!==null){var ze=Oo.create(C,Wt);C==="cart"&&mt&&mt(ze),me.current=ze,se(ze),ze.mount(Ie.current)}},[Oo,Wt,mt]);var Sn=R(Wt);return t.useEffect(function(){if(me.current){var ze=W(Wt,Sn,["paymentRequest"]);ze&&me.current.update(ze)}},[Wt,Sn]),t.useLayoutEffect(function(){return function(){me.current&&(me.current.destroy(),me.current=null)}},[]),t.createElement("div",{id:ut,className:ft,ref:Ie})},U=function(Y){ge("mounts <".concat(L,">")),ke("mounts <".concat(L,">"));var ut=Y.id,ft=Y.className;return t.createElement("div",{id:ut,className:ft})},_e=v?U:Q;return _e.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},_e.displayName=L,_e.__elementType=C,_e},fe=typeof window>"u",Va=ie("auBankAccount",fe),Ua=ie("card",fe),bo=ie("cardNumber",fe),Hn=ie("cardExpiry",fe),Bn=ie("cardCvc",fe),Vn=ie("fpxBank",fe),Un=ie("iban",fe),pr=ie("idealBank",fe),un=ie("p24Bank",fe),Eo=ie("epsBank",fe),To=ie("payment",fe),lt=ie("expressCheckout",fe),fn=ie("paymentRequestButton",fe),Br=ie("linkAuthentication",fe),zc=ie("address",fe),Io=ie("shippingAddress",fe),qc=ie("cart",fe),Hi=ie("paymentMethodMessaging",fe),Ro=ie("affirmMessage",fe),Bi=ie("afterpayClearpayMessage",fe);e.AddressElement=zc,e.AffirmMessageElement=Ro,e.AfterpayClearpayMessageElement=Bi,e.AuBankAccountElement=Va,e.CardCvcElement=Bn,e.CardElement=Ua,e.CardExpiryElement=Hn,e.CardNumberElement=bo,e.CartElement=qc,e.Elements=K,e.ElementsConsumer=Ut,e.EpsBankElement=Eo,e.ExpressCheckoutElement=lt,e.FpxBankElement=Vn,e.IbanElement=Un,e.IdealBankElement=pr,e.LinkAuthenticationElement=Br,e.P24BankElement=un,e.PaymentElement=To,e.PaymentMethodMessagingElement=Hi,e.PaymentRequestButtonElement=fn,e.ShippingAddressElement=Io,e.useCartElement=Fe,e.useCartElementState=$e,e.useElements=Vt,e.useStripe=Le,Object.defineProperty(e,"__esModule",{value:!0})}))});var fo=de((BB,lc)=>{(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 lc<"u"&&lc.exports?(t.default=t,lc.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var H0=de(ce=>{"use strict";var Cu=Symbol.for("react.element"),yu=Symbol.for("react.portal"),yc=Symbol.for("react.fragment"),_c=Symbol.for("react.strict_mode"),vc=Symbol.for("react.profiler"),bc=Symbol.for("react.provider"),Ec=Symbol.for("react.context"),Uh=Symbol.for("react.server_context"),Tc=Symbol.for("react.forward_ref"),Ic=Symbol.for("react.suspense"),Rc=Symbol.for("react.suspense_list"),xc=Symbol.for("react.memo"),Oc=Symbol.for("react.lazy"),$h=Symbol.for("react.offscreen"),F0;F0=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Cu:switch(e=e.type,e){case yc:case vc:case _c:case Ic:case Rc:return e;default:switch(e=e&&e.$$typeof,e){case Uh:case Ec:case Tc:case Oc:case xc:case bc:return e;default:return t}}case yu:return t}}}ce.ContextConsumer=Ec;ce.ContextProvider=bc;ce.Element=Cu;ce.ForwardRef=Tc;ce.Fragment=yc;ce.Lazy=Oc;ce.Memo=xc;ce.Portal=yu;ce.Profiler=vc;ce.StrictMode=_c;ce.Suspense=Ic;ce.SuspenseList=Rc;ce.isAsyncMode=function(){return!1};ce.isConcurrentMode=function(){return!1};ce.isContextConsumer=function(e){return er(e)===Ec};ce.isContextProvider=function(e){return er(e)===bc};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Cu};ce.isForwardRef=function(e){return er(e)===Tc};ce.isFragment=function(e){return er(e)===yc};ce.isLazy=function(e){return er(e)===Oc};ce.isMemo=function(e){return er(e)===xc};ce.isPortal=function(e){return er(e)===yu};ce.isProfiler=function(e){return er(e)===vc};ce.isStrictMode=function(e){return er(e)===_c};ce.isSuspense=function(e){return er(e)===Ic};ce.isSuspenseList=function(e){return er(e)===Rc};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yc||e===vc||e===_c||e===Ic||e===Rc||e===$h||typeof e=="object"&&e!==null&&(e.$$typeof===Oc||e.$$typeof===xc||e.$$typeof===bc||e.$$typeof===Ec||e.$$typeof===Tc||e.$$typeof===F0||e.getModuleId!==void 0)};ce.typeOf=er});var V0=de((qV,B0)=>{"use strict";B0.exports=H0()});var xt=de(Je=>{"use strict";var Lc=Je&&Je.__assign||function(){return Lc=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},Lc.apply(this,arguments)};Object.defineProperty(Je,"__esModule",{value:!0});Je.UNITS_META=Je.UNITS=Je.UNITS_META_MAP=Je.UNITS_META_MAP_LITERAL=Je.ZERO=void 0;var f5=1e3,m5=f5*60,d5=m5*60,wu=d5*24,e8=wu*7,p5=wu*365,t8=p5/12;Je.ZERO=Object.freeze({years:0,months:0,weeks:0,days:0,hours:0,minutes:0,seconds:0,milliseconds:0});Je.UNITS_META_MAP_LITERAL={years:{milliseconds:p5,months:12,dateGetter:function(e){return e.getFullYear()},ISOCharacter:"Y",ISOPrecision:"period"},months:{milliseconds:t8,months:1,dateGetter:function(e){return e.getMonth()},ISOCharacter:"M",ISOPrecision:"period"},weeks:{milliseconds:e8,dateGetter:function(){return 0},ISOCharacter:"W",ISOPrecision:"period",stringifyConvertTo:"days"},days:{milliseconds:wu,dateGetter:function(e){return e.getDate()},ISOCharacter:"D",ISOPrecision:"period"},hours:{milliseconds:d5,dateGetter:function(e){return e.getHours()},ISOCharacter:"H",ISOPrecision:"time"},minutes:{milliseconds:m5,dateGetter:function(e){return e.getMinutes()},ISOCharacter:"M",ISOPrecision:"time"},seconds:{milliseconds:f5,dateGetter:function(e){return e.getSeconds()},ISOCharacter:"S",ISOPrecision:"time"},milliseconds:{milliseconds:1,dateGetter:function(e){return e.getMilliseconds()},stringifyConvertTo:"seconds"}};Je.UNITS_META_MAP=Je.UNITS_META_MAP_LITERAL;Je.UNITS=Object.freeze(["years","months","weeks","days","hours","minutes","seconds","milliseconds"]);Je.UNITS_META=Object.freeze(Je.UNITS.map(function(e){return Lc(Lc({},Je.UNITS_META_MAP[e]),{unit:e})}))});var xa=de(Ra=>{"use strict";var Pu=Ra&&Ra.__assign||function(){return Pu=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},Pu.apply(this,arguments)};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.negate=void 0;var r8=xt(),n8=Hr(),o8=function(e){var t=Pu({},(0,n8.parse)(e));return r8.UNITS.forEach(function(r){t[r]=t[r]===0?0:-t[r]}),t};Ra.negate=o8});var g5=de(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.isNegativelySigned=void 0;var a8=function(e){return e<0||Object.is(e,-0)};Fc.isNegativelySigned=a8});var C5=de(Oa=>{"use strict";var Au=Oa&&Oa.__assign||function(){return Au=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},Au.apply(this,arguments)};Object.defineProperty(Oa,"__esModule",{value:!0});Oa.parseISODuration=void 0;var i8=xt(),s8=xa(),c8=g5(),h5="(?:[,.](\\d{1,3})\\d*)?",yo=function(e){return"(?:(-?\\d+)".concat(e,")?")},S5=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=Au({},i8.ZERO);return t.forEach(function(c,l){s[c]=i[l]}),(0,c8.isNegativelySigned)(s.seconds)&&(s.milliseconds*=-1),o?(0,s8.negate)(s):s}},l8=S5(new RegExp(["^(-)?P","(\\d{4})","-?","(\\d{2})","-?","(\\d{2})","T","(\\d{2})",":?","(\\d{2})",":?","(\\d{2})",h5,"$"].join("")),["years","months","days","hours","minutes","seconds","milliseconds"]),u8=S5(new RegExp(["^(-)?P",yo("Y"),yo("M"),yo("W"),yo("D"),"(?:T",yo("H"),yo("M"),yo("".concat(h5,"S")),")?$"].join("")),["years","months","weeks","days","hours","minutes","seconds","milliseconds"]),f8=function(e){var t=u8(e)||l8(e);if(t===null)throw new SyntaxError('Failed to parse duration. "'.concat(e,'" is not a valid ISO duration string.'));return t};Oa.parseISODuration=f8});var y5=de(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.validate=void 0;var m8=xt(),d8=function(e){Object.keys(e).forEach(function(t){if(!m8.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],"."))})};Hc.validate=d8});var _5=de(Ma=>{"use strict";var Du=Ma&&Ma.__assign||function(){return Du=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},Du.apply(this,arguments)};Object.defineProperty(Ma,"__esModule",{value:!0});Ma.cleanDurationObject=void 0;var p8=xt(),g8=function(e){var t=Du({},e);return p8.UNITS.forEach(function(r){t[r]===0&&(t[r]=0)}),t};Ma.cleanDurationObject=g8});var Hr=de(wa=>{"use strict";var Na=wa&&wa.__assign||function(){return Na=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},Na.apply(this,arguments)};Object.defineProperty(wa,"__esModule",{value:!0});wa.parse=void 0;var v5=xt(),h8=C5(),S8=y5(),C8=_5(),y8=function(e){return typeof e=="string"?(0,h8.parseISODuration)(e):typeof e=="number"?Na(Na({},v5.ZERO),{milliseconds:e}):Na(Na({},v5.ZERO),e)},_8=function(e){var t=y8(e);return(0,S8.validate)(t),(0,C8.cleanDurationObject)(t)};wa.parse=_8});var Li=de(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.toYears=Ne.toMonths=Ne.toWeeks=Ne.toDays=Ne.toHours=Ne.toMinutes=Ne.toSeconds=Ne.toUnit=Ne.toMilliseconds=void 0;var v8=Hr(),b5=xt(),b8=function(e){var t=(0,v8.parse)(e);return b5.UNITS_META.reduce(function(r,n){var o=n.unit,a=n.milliseconds;return r+t[o]*a},0)};Ne.toMilliseconds=b8;var E8=function(e,t){return(0,Ne.toMilliseconds)(e)/b5.UNITS_META_MAP[t].milliseconds};Ne.toUnit=E8;var _o=function(e){return function(t){return(0,Ne.toUnit)(t,e)}};Ne.toSeconds=_o("seconds");Ne.toMinutes=_o("minutes");Ne.toHours=_o("hours");Ne.toDays=_o("days");Ne.toWeeks=_o("weeks");Ne.toMonths=_o("months");Ne.toYears=_o("years")});var ku=de(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.isNegative=void 0;var T8=Li(),I8=function(e){return(0,T8.toMilliseconds)(e)<0};Bc.isNegative=I8});var E5=de(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.abs=void 0;var R8=ku(),x8=xa(),O8=Hr(),M8=function(e){return(0,R8.isNegative)(e)?(0,x8.negate)(e):(0,O8.parse)(e)};Vc.abs=M8});var T5=de(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.addMonths=vo.getDaysInMonth=void 0;var N8=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()};vo.getDaysInMonth=N8;var w8=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,vo.getDaysInMonth)(n);e.setMonth(r,Math.min(o,e.getDate()))};vo.addMonths=w8});var Lu=de(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.apply=void 0;var P8=T5(),A8=Hr(),D8=function(e,t){var r=new Date(e),n=(0,A8.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,P8.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};Uc.apply=D8});var Hu=de(Pa=>{"use strict";var Fu=Pa&&Pa.__assign||function(){return Fu=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},Fu.apply(this,arguments)};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.between=void 0;var I5=xt(),k8=function(e,t){var r=new Date(e),n=new Date(t),o=Fu({},I5.ZERO);return I5.UNITS_META.forEach(function(a){var i=a.unit,s=a.dateGetter;o[i]=s(n)-s(r)}),o};Pa.between=k8});var Bu=de($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.isZero=void 0;var L8=Li(),F8=function(e){return(0,L8.toMilliseconds)(e)===0};$c.isZero=F8});var O5=de(Fn=>{"use strict";var Aa=Fn&&Fn.__assign||function(){return Aa=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},Aa.apply(this,arguments)},H8=Fn&&Fn.__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(Fn,"__esModule",{value:!0});Fn.normalize=void 0;var Vu=xt(),B8=Hu(),V8=Lu(),R5=Li(),U8=Hr(),x5=function(e,t){return function(r,n){var o=Aa({},r);return e.forEach(function(a){var i=t(a);o[a]=~~(n/i),n-=o[a]*i}),o}},$8=x5(["years","months"],function(e){return Vu.UNITS_META_MAP_LITERAL[e].months}),W8=x5(["days","hours","minutes","seconds","milliseconds"],function(e){return Vu.UNITS_META_MAP_LITERAL[e].milliseconds}),G8=function(e){var t=(0,U8.parse)(e),r=t.years,n=t.months,o=t.weeks,a=t.days,i=H8(t,["years","months","weeks","days"]),s=Aa({},Vu.ZERO);return s=$8(s,(0,R5.toMonths)({years:r,months:n})),s=W8(s,(0,R5.toMilliseconds)(Aa(Aa({},i),{days:a+o*7}))),s},Y8=function(e,t){var r=t!=null?(0,B8.between)(t,(0,V8.apply)(t,e)):e;return G8(r)};Fn.normalize=Y8});var $u=de(Da=>{"use strict";var Uu=Da&&Da.__assign||function(){return Uu=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},Uu.apply(this,arguments)};Object.defineProperty(Da,"__esModule",{value:!0});Da.sum=void 0;var M5=xt(),j8=Hr(),Z8=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Uu({},M5.ZERO);return e.map(j8.parse).forEach(function(n){M5.UNITS.forEach(function(o){r[o]+=n[o]})}),r};Da.sum=Z8});var N5=de(ka=>{"use strict";var z8=ka&&ka.__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(ka,"__esModule",{value:!0});ka.subtract=void 0;var q8=xa(),K8=$u(),X8=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return K8.sum.apply(void 0,z8([e],t.map(q8.negate),!1))};ka.subtract=X8});var w5=de(La=>{"use strict";var Wu=La&&La.__assign||function(){return Wu=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},Wu.apply(this,arguments)};Object.defineProperty(La,"__esModule",{value:!0});La.getUnitCount=void 0;var J8=xt(),Q8=Hr(),eS=function(e){var t=Wu({},(0,Q8.parse)(e)),r=0;return J8.UNITS.forEach(function(n){t[n]!==0&&r++}),r};La.getUnitCount=eS});var P5=de(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.checkAllUnitsNegative=void 0;var tS=xa(),rS=Hr(),nS=xt(),oS=function(e){var t=(0,rS.parse)(e),r=!1,n=!1;return nS.UNITS.forEach(function(o){var a=t[o];a<0?n=!0:a>0&&(r=!0)}),n&&!r?{isAllNegative:!0,maybeAbsDuration:(0,tS.negate)(t)}:{isAllNegative:!1,maybeAbsDuration:t}};Wc.checkAllUnitsNegative=oS});var D5=de(Fa=>{"use strict";var Gu=Fa&&Fa.__assign||function(){return Gu=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},Gu.apply(this,arguments)};Object.defineProperty(Fa,"__esModule",{value:!0});Fa.toString=void 0;var aS=Bu(),iS=w5(),Gc=xt(),sS=P5(),A5=function(e,t){return e.join("").replace(/\./g,t)},cS=function(e,t){t===void 0&&(t={});var r=Gu({decimalDelimiter:","},t);if((0,aS.isZero)(e))return"P0D";var n=(0,sS.checkAllUnitsNegative)(e),o=n.maybeAbsDuration,a=n.isAllNegative;if((0,iS.getUnitCount)(o)===1&&o.weeks!==0)return"P".concat(o.weeks,"W");var i={period:[],time:[]};Gc.UNITS_META.forEach(function(c){var l=c.unit,u=c.stringifyConvertTo;if(u!=null){var f=o[l]*Gc.UNITS_META_MAP[l].milliseconds;o[u]+=f/Gc.UNITS_META_MAP[u].milliseconds,o[l]=0}}),Gc.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(A5(i.period,r.decimalDelimiter));return i.time.length&&(s+="T".concat(A5(i.time,r.decimalDelimiter))),a&&(s="-".concat(s)),s};Fa.toString=cS});var L5=de(k5=>{"use strict";Object.defineProperty(k5,"__esModule",{value:!0})});var Yu=de(Ae=>{"use strict";var lS=Ae&&Ae.__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]})),Bt=Ae&&Ae.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&lS(t,e,r)};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.UNITS=void 0;Bt(E5(),Ae);Bt(Lu(),Ae);Bt(Hu(),Ae);Bt(ku(),Ae);Bt(Bu(),Ae);Bt(xa(),Ae);Bt(O5(),Ae);Bt(Hr(),Ae);Bt(N5(),Ae);Bt($u(),Ae);Bt(D5(),Ae);Bt(Li(),Ae);Bt(L5(),Ae);var uS=xt();Object.defineProperty(Ae,"UNITS",{enumerable:!0,get:function(){return uS.UNITS}})});var bS={};Jc(bS,{DuffelAncillaries:()=>O7,DuffelCardForm:()=>CS,DuffelNGSView:()=>hS,DuffelPayments:()=>V7,StaysAmenities:()=>ph,StaysCancellationTimeline:()=>mh,StaysRating:()=>au,StaysRoomRateCard:()=>gh,StaysSummary:()=>dh,amenityIcon:()=>n0,createThreeDSecureSession:()=>fg,hasAvailableSeatService:()=>la,hasService:()=>mg,useDuffelCardFormActions:()=>yS,useSort:()=>K5});module.exports=Cg(bS);var zu=Object.prototype.toString;function $a(e){switch(zu.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return wt(e,Error)}}function No(e,t){return zu.call(e)===`[object ${t}]`}function wo(e){return No(e,"ErrorEvent")}function Wi(e){return No(e,"DOMError")}function Qc(e){return No(e,"DOMException")}function tt(e){return No(e,"String")}function Po(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Yn(e){return e===null||Po(e)||typeof e!="object"&&typeof e!="function"}function rr(e){return No(e,"Object")}function jn(e){return typeof Event<"u"&&wt(e,Event)}function e1(e){return typeof Element<"u"&&wt(e,Element)}function t1(e){return No(e,"RegExp")}function gr(e){return!!(e&&e.then&&typeof e.then=="function")}function r1(e){return rr(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Wa(e){return typeof e=="number"&&e!==e}function wt(e,t){try{return e instanceof t}catch{return!1}}function Ga(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function hr(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Gi(e,t){if(!Array.isArray(e))return"";let r=[];for(let n=0;n<e.length;n++){let o=e[n];try{Ga(o)?r.push("[VueViewModel]"):r.push(String(o))}catch{r.push("[value cannot be serialized]")}}return r.join(t)}function qu(e,t,r=!1){return tt(e)?t1(t)?t.test(e):tt(t)?r?e===t:e.includes(t):!1:!1}function Cn(e,t=[],r=!1){return t.some(n=>qu(e,n,r))}function Ya(e,t,r=250,n,o,a,i){if(!a.exception||!a.exception.values||!i||!wt(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=yg(n1(e,t,o,i.originalException,n,a.exception.values,s,0),r))}function n1(e,t,r,n,o,a,i,s){if(a.length>=r+1)return a;let c=[...a];if(wt(n[o],Error)){Ku(i,s);let l=e(t,n[o]),u=c.length;Xu(l,o,u,s),c=n1(e,t,r,n[o],o,[l,...c],l,u)}return Array.isArray(n.errors)&&n.errors.forEach((l,u)=>{if(wt(l,Error)){Ku(i,s);let f=e(t,l),m=c.length;Xu(f,`errors[${u}]`,m,s),c=n1(e,t,r,l,o,[f,...c],f,m)}}),c}function Ku(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 Xu(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 yg(e,t){return e.map(r=>(r.value&&(r.value=hr(r.value,t)),r))}function Yi(e){return e&&e.Math==Math?e:void 0}var D=typeof globalThis=="object"&&Yi(globalThis)||typeof window=="object"&&Yi(window)||typeof self=="object"&&Yi(self)||typeof global=="object"&&Yi(global)||(function(){return this})()||{};function Zn(){return D}function ja(e,t,r){let n=r||D,o=n.__SENTRY__=n.__SENTRY__||{};return o[e]||(o[e]=t())}var Ao=Zn(),_g=80;function Sr(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||_g;for(;r&&a++<n&&(l=vg(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 vg(e,t){let r=e,n=[],o,a,i,s,c;if(!r||!r.tagName)return"";if(Ao.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&&tt(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 o1(){try{return Ao.document.location.href}catch{return""}}function a1(e){return Ao.document&&Ao.document.querySelector?Ao.document.querySelector(e):null}function Za(e){if(!Ao.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 Yt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var bg="Sentry Logger ",za=["debug","info","warn","error","log","assert","trace"],Do={};function yn(e){if(!("console"in D))return e();let t=D.console,r={},n=Object.keys(Do);n.forEach(o=>{let a=Do[o];r[o]=t[o],t[o]=a});try{return e()}finally{n.forEach(o=>{t[o]=r[o]})}}function Eg(){let e=!1,t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return Yt?za.forEach(r=>{t[r]=(...n)=>{e&&yn(()=>{D.console[r](`${bg}[${r}]:`,...n)})}}):za.forEach(r=>{t[r]=()=>{}}),t}var h=Eg();var Tg=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Ig(e){return e==="http"||e==="https"}function dt(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 Ju(e){let t=Tg.exec(e);if(!t){yn(()=>{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 Qu({host:a,pass:o,path:c,projectId:l,port:i,protocol:r,publicKey:n})}function Qu(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Rg(e){if(!Yt)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+$/)?Ig(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 ji(e){let t=typeof e=="string"?Ju(e):Qu(e);if(!(!t||!Rg(t)))return t}var rt=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 ve(e,t,r){if(!(t in e))return;let n=e[t],o=r(n);typeof o=="function"&&Zi(o,n),e[t]=o}function jt(e,t,r){try{Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0})}catch{Yt&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Zi(e,t){try{let r=t.prototype||{};e.prototype=t.prototype=r,jt(e,"__sentry_original__",t)}catch{}}function zn(e){return e.__sentry_original__}function s1(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function zi(e){if($a(e))return{message:e.message,name:e.name,stack:e.stack,...tf(e)};if(jn(e)){let t={type:e.type,target:ef(e.target),currentTarget:ef(e.currentTarget),...tf(e)};return typeof CustomEvent<"u"&&wt(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function ef(e){try{return e1(e)?Sr(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function tf(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 c1(e,t=40){let r=Object.keys(zi(e));if(r.sort(),!r.length)return"[object has no keys]";if(r[0].length>=t)return hr(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:hr(o,t)}return""}function be(e){return i1(e,new Map)}function i1(e,t){if(xg(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]=i1(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(i1(o,t))}),n}return e}function xg(e){if(!rr(e))return!1;try{let t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}var of=50,rf=/\(error: (.*)\)/,nf=/captureMessage|captureException/;function qi(...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=rf.test(s)?s.replace(rf,"$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>=of)break}}return af(o)}}function u1(e){return Array.isArray(e)?qi(...e):e}function af(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),nf.test(t[t.length-1].function||"")&&(t.pop(),nf.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,of).map(r=>({...r,filename:r.filename||t[t.length-1].filename,function:r.function||"?"}))}var l1="<anonymous>";function pt(e){try{return!e||typeof e!="function"?l1:e.name||l1}catch{return l1}}var Ki={},sf={};function gt(e,t){Ki[e]=Ki[e]||[],Ki[e].push(t)}function ht(e,t){sf[e]||(t(),sf[e]=!0)}function Ge(e,t){let r=e&&Ki[e];if(r)for(let n of r)try{n(t)}catch(o){Yt&&h.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${pt(n)} Error:`,o)}}function f1(e){let t="console";gt(t,e),ht(t,Og)}function Og(){"console"in D&&za.forEach(function(e){e in D.console&&ve(D.console,e,function(t){return Do[e]=t,function(...r){Ge("console",{args:r,level:e});let o=Do[e];o&&o.apply(D.console,r)}})})}function ee(){let e=D,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 cf(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function nr(e){let{message:t,event_id:r}=e;if(t)return t;let n=cf(e);return n?n.type&&n.value?`${n.type}: ${n.value}`:n.type||n.value||r||"<unknown>":r||"<unknown>"}function ko(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 $r(e,t){let r=cf(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 Xi(e){if(e&&e.__sentry_captured__)return!0;try{jt(e,"__sentry_captured__",!0)}catch{}return!1}function qa(e){return Array.isArray(e)?e:[e]}var Lo=D,Mg=1e3,lf,m1,d1;function p1(e){gt("dom",e),ht("dom",Ng)}function Ng(){if(!Lo.document)return;let e=Ge.bind(null,"dom"),t=uf(e,!0);Lo.document.addEventListener("click",t,!1),Lo.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(r=>{let n=Lo[r]&&Lo[r].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(ve(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=uf(e);u.handler=f,o.call(this,a,f,s)}u.refCount++}catch{}return o.call(this,a,i,s)}}),ve(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 wg(e){if(e.type!==m1)return!1;try{if(!e.target||e.target._sentryId!==d1)return!1}catch{}return!0}function Pg(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function uf(e,t=!1){return r=>{if(!r||r._sentryCaptured)return;let n=Ag(r);if(Pg(r.type,n))return;jt(r,"_sentryCaptured",!0),n&&!n._sentryId&&jt(n,"_sentryId",ee());let o=r.type==="keypress"?"input":r.type;wg(r)||(e({event:r,name:o,global:t}),m1=r.type,d1=n?n._sentryId:void 0),clearTimeout(lf),lf=Lo.setTimeout(()=>{d1=void 0,m1=void 0},Mg)}}function Ag(e){try{return e.target}catch{return null}}var g1=Zn();function Ji(){if(!("fetch"in g1))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Ka(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function h1(){if(typeof EdgeRuntime=="string")return!0;if(!Ji())return!1;if(Ka(g1.fetch))return!0;let e=!1,t=g1.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=Ka(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){Yt&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function Xa(e){let t="fetch";gt(t,e),ht(t,Dg)}function Dg(){h1()&&ve(D,"fetch",function(e){return function(...t){let{method:r,url:n}=kg(t),o={args:t,fetchData:{method:r,url:n},startTimestamp:Date.now()};return Ge("fetch",{...o}),e.apply(D,t).then(a=>{let i={...o,endTimestamp:Date.now(),response:a};return Ge("fetch",i),a},a=>{let i={...o,endTimestamp:Date.now(),error:a};throw Ge("fetch",i),a})}})}function S1(e,t){return!!e&&typeof e=="object"&&!!e[t]}function ff(e){return typeof e=="string"?e:e?S1(e,"url")?e.url:e.toString?e.toString():"":""}function kg(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[r,n]=e;return{url:ff(r),method:S1(n,"method")?String(n.method).toUpperCase():"GET"}}let t=e[0];return{url:ff(t),method:S1(t,"method")?String(t.method).toUpperCase():"GET"}}var Qi=null;function Ja(e){let t="error";gt(t,e),ht(t,Lg)}function Lg(){Qi=D.onerror,D.onerror=function(e,t,r,n,o){return Ge("error",{column:n,error:o,line:r,msg:e,url:t}),Qi&&!Qi.__SENTRY_LOADER__?Qi.apply(this,arguments):!1},D.onerror.__SENTRY_INSTRUMENTED__=!0}var es=null;function Qa(e){let t="unhandledrejection";gt(t,e),ht(t,Fg)}function Fg(){es=D.onunhandledrejection,D.onunhandledrejection=function(e){return Ge("unhandledrejection",e),es&&!es.__SENTRY_LOADER__?es.apply(this,arguments):!0},D.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ts=Zn();function mf(){let e=ts.chrome,t=e&&e.app&&e.app.runtime,r="history"in ts&&!!ts.history.pushState&&!!ts.history.replaceState;return!t&&r}var ei=D,rs;function qn(e){let t="history";gt(t,e),ht(t,Hg)}function Hg(){if(!mf())return;let e=ei.onpopstate;ei.onpopstate=function(...r){let n=ei.location.href,o=rs;if(rs=n,Ge("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=rs,i=String(o);rs=i,Ge("history",{from:a,to:i})}return r.apply(this,n)}}ve(ei.history,"pushState",t),ve(ei.history,"replaceState",t)}var Bg=D,Wr="__sentry_xhr_v3__";function ti(e){gt("xhr",e),ht("xhr",Vg)}function Vg(){if(!Bg.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;ve(e,"open",function(t){return function(...r){let n=Date.now(),o=tt(r[0])?r[0].toUpperCase():void 0,a=Ug(r[1]);if(!o||!a)return t.apply(this,r);this[Wr]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let i=()=>{let s=this[Wr];if(s&&this.readyState===4){try{s.status_code=this.status}catch{}let c={args:[o,a],endTimestamp:Date.now(),startTimestamp:n,xhr:this};Ge("xhr",c)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ve(this,"onreadystatechange",function(s){return function(...c){return i(),s.apply(this,c)}}):this.addEventListener("readystatechange",i),ve(this,"setRequestHeader",function(s){return function(...c){let[l,u]=c,f=this[Wr];return f&&tt(l)&&tt(u)&&(f.request_headers[l.toLowerCase()]=u),s.apply(this,c)}}),t.apply(this,r)}}),ve(e,"send",function(t){return function(...r){let n=this[Wr];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 Ge("xhr",o),t.apply(this,r)}})}function Ug(e){if(tt(e))return e;try{return e.toString()}catch{}}function C1(){return"npm"}function df(){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 or(e,t=100,r=1/0){try{return ns("",e,t,r)}catch(n){return{ERROR:`**non-serializable** (${n})`}}}function os(e,t=3,r=100*1024){let n=or(e,t);return Yg(n)>r?os(e,t-1,r):n}function ns(e,t,r=1/0,n=1/0,o=df()){let[a,i]=o;if(t==null||["number","boolean","string"].includes(typeof t)&&!Wa(t))return t;let s=$g(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 ns("",d,c-1,n,o)}catch{}let u=Array.isArray(t)?[]:{},f=0,m=zi(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]=ns(d,g,c-1,n,o),f++}return i(t),u}function $g(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(Ga(t))return"[VueViewModel]";if(r1(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${pt(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let r=Wg(t);return/^HTML(\w*)Element$/.test(r)?`[HTMLElement: ${r}]`:`[object ${r}]`}catch(r){return`**non-serializable** (${r})`}}function Wg(e){let t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Gg(e){return~-encodeURI(e).split(/%..|./).length}function Yg(e){return Gg(JSON.stringify(e))}var Gr;(function(e){e[e.PENDING=0]="PENDING";let r=1;e[e.RESOLVED=r]="RESOLVED";let n=2;e[e.REJECTED=n]="REJECTED"})(Gr||(Gr={}));function ar(e){return new Pt(t=>{t(e)})}function Kn(e){return new Pt((t,r)=>{r(e)})}var Pt=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=Gr.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(Gr.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Gr.REJECTED,t)}}__init3(){this._setResult=(t,r)=>{if(this._state===Gr.PENDING){if(gr(r)){r.then(this._resolve,this._reject);return}this._state=t,this._value=r,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Gr.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(r=>{r[0]||(this._state===Gr.RESOLVED&&r[1](this._value),this._state===Gr.REJECTED&&r[2](this._value),r[0]=!0)})}}};function y1(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 Kn(new rt("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 Pt((s,c)=>{let l=t.length;if(!l)return s(!0);let u=setTimeout(()=>{i&&i>0&&s(!1)},i);t.forEach(f=>{ar(f).then(()=>{--l||(clearTimeout(u),s(!0))},c)})})}return{$:t,add:o,drain:a}}function Zt(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 pf=["fatal","error","warning","log","info","debug"];function _1(e){return e==="warn"?"warning":pf.includes(e)?e:"log"}var gf=1e3;function Cr(){return Date.now()/gf}function jg(){let{performance:e}=D;if(!e||!e.now)return Cr;let t=Date.now()-e.now(),r=e.timeOrigin==null?t:e.timeOrigin;return()=>(r+e.now())/gf}var ir=jg();var ri,nt=(()=>{let{performance:e}=D;if(!e||!e.now){ri="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?(ri="timeOrigin",e.timeOrigin):(ri="navigationStart",i):(ri="dateNow",n)})();var Fo="baggage",v1="sentry-",Sf=/^sentry-/,Cf=8192;function b1(e){if(!tt(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce((n,o)=>{let a=hf(o);for(let i of Object.keys(a))n[i]=a[i];return n},{});else{if(!e)return;t=hf(e)}let r=Object.entries(t).reduce((n,[o,a])=>{if(o.match(Sf)){let i=o.slice(v1.length);n[i]=a}return n},{});if(Object.keys(r).length>0)return r}function ni(e){if(!e)return;let t=Object.entries(e).reduce((r,[n,o])=>(o&&(r[`${v1}${n}`]=o),r),{});return Zg(t)}function hf(e){return e.split(",").map(t=>t.split("=").map(r=>decodeURIComponent(r.trim()))).reduce((t,[r,n])=>(t[r]=n,t),{})}function Zg(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>Cf?(Yt&&h.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),t):i},"")}var yf=new RegExp("^[ \\t]*([0-9a-f]{3