!function(){var n,e,t={4808:function(n){n.exports=["WebView","(iPhone|iPod|iPad)(?!.*Safari)","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"]},7257:function(n,e,t){var r=t(4808),o=new RegExp("("+r.join("|")+")","ig");n.exports=function(n){return!!n.match(o)}},6442:function(n,e,t){var r;function o(n){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},o(n)}!function(){var i,u=/iPhone/i,a=/iPod/i,c=/iPad/i,l=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,f=/Android/i,d=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,p=/Silk/i,_=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,v=/BlackBerry/i,m=/BB10/i,y=/Opera Mini/i,b=/\b(CriOS|Chrome)(?:.+)Mobile/i,g=/Mobile(?:.+)Firefox\b/i,w=function(n){return void 0!==n&&"MacIntel"===n.platform&&"number"==typeof n.maxTouchPoints&&n.maxTouchPoints>1&&"undefined"==typeof MSStream};i=function(n){var e={userAgent:"",platform:"",maxTouchPoints:0};n||"undefined"==typeof navigator?"string"==typeof n?e.userAgent=n:n&&n.userAgent&&(e={userAgent:n.userAgent,platform:n.platform,maxTouchPoints:n.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var t=e.userAgent,r=t.split("[FBAN");void 0!==r[1]&&(t=r[0]),void 0!==(r=t.split("Twitter"))[1]&&(t=r[0]);var o=function(n){return function(e){return e.test(n)}}(t),i={apple:{phone:o(u)&&!o(_),ipod:o(a),tablet:!o(u)&&(o(c)||w(e))&&!o(_),universal:o(l),device:(o(u)||o(a)||o(c)||o(l)||w(e))&&!o(_)},amazon:{phone:o(d),tablet:!o(d)&&o(p),device:o(d)||o(p)},android:{phone:!o(_)&&o(d)||!o(_)&&o(s),tablet:!o(_)&&!o(d)&&!o(s)&&(o(p)||o(f)),device:!o(_)&&(o(d)||o(p)||o(s)||o(f))||o(/\bokhttp\b/i)},windows:{phone:o(_),tablet:o(h),device:o(_)||o(h)},other:{blackberry:o(v),blackberry10:o(m),opera:o(y),firefox:o(g),chrome:o(b),device:o(v)||o(m)||o(y)||o(g)||o(b)},any:!1,phone:!1,tablet:!1};return i.any=i.apple.device||i.android.device||i.windows.device||i.other.device,i.phone=i.apple.phone||i.android.phone||i.windows.phone,i.tablet=i.apple.tablet||i.android.tablet||i.windows.tablet,i}(),"object"===o(e)?n.exports=i:void 0===(r=function(){return i}.call(e,t,e,n))||(n.exports=r)}()},8420:function(n,e,t){"use strict";t.d(e,{Gp:function(){return d},I4:function(){return r.I4},Vo:function(){return b},X$:function(){return l},Ye:function(){return r.Ye},_Y:function(){return r._Y},az:function(){return o.az},d4:function(){return r.d4},eJ:function(){return r.eJ},jz:function(){return S},n4:function(){return m},sO:function(){return r.sO}});var r=t(705),o=t(2315);function i(n){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(n)}function u(n,e){for(var t in e)n[t]=e[t];return n}function a(n,e){for(var t in n)if("__source"!==t&&!(t in e))return!0;for(var r in e)if("__source"!==r&&n[r]!==e[r])return!0;return!1}function c(n){this.props=n}function l(n,e){function t(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:a(this.props,n)}function r(e){return this.shouldComponentUpdate=t,(0,o.az)(n,e)}return r.displayName="Memo("+(n.displayName||n.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(c.prototype=new o.wA).isPureReactComponent=!0,c.prototype.shouldComponentUpdate=function(n,e){return a(this.props,n)||a(this.state,e)};var s=o.YM.__b;o.YM.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),s&&s(n)};var f="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function d(n){function e(e,t){var r=u({},e);return delete r.ref,n(r,(t=e.ref||t)&&("object"!=i(t)||"current"in t)?t:null)}return e.$$typeof=f,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(n.displayName||n.name)+")",e}var p=function(n,e){return null==n?null:(0,o.bR)((0,o.bR)(n).map(e))},_={map:p,forEach:p,count:function(n){return n?(0,o.bR)(n).length:0},only:function(n){var e=(0,o.bR)(n);if(1!==e.length)throw"Children.only";return e[0]},toArray:o.bR},h=o.YM.__e;o.YM.__e=function(n,e,t){if(n.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=t.__e,e.__k=t.__k),r.__c(n,e);h(n,e,t)};var v=o.YM.unmount;function m(){this.__u=0,this.t=null,this.__b=null}function y(n){var e=n.__.__c;return e&&e.__e&&e.__e(n)}function b(n){var e,t,r;function i(i){if(e||(e=n()).then((function(n){t=n.default||n}),(function(n){r=n})),r)throw r;if(!t)throw e;return(0,o.az)(t,i)}return i.displayName="Lazy",i.__f=!0,i}function g(){this.u=null,this.o=null}o.YM.unmount=function(n){var e=n.__c;e&&e.__R&&e.__R(),e&&!0===n.__h&&(n.type=null),v&&v(n)},(m.prototype=new o.wA).__c=function(n,e){var t=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=y(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(a):a())};t.__R=u;var a=function(){if(!--r.__u){if(r.state.__e){var n=r.state.__e;r.__v.__k[0]=function n(e,t,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return n(e,t,r)})),e.__c&&e.__c.__P===t&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(n,n.__c.__P,n.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),n.then(u,u)},m.prototype.componentWillUnmount=function(){this.t=[]},m.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function n(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(n){"function"==typeof n.__c&&n.__c()})),e.__c.__H=null),null!=(e=u({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return n(e,t,r)}))),e}(this.__b,t,r.__O=r.__P)}this.__b=null}var i=e.__e&&(0,o.az)(o.HY,null,n.fallback);return i&&(i.__h=null),[(0,o.az)(o.HY,null,e.__e?null:n.children),i]};var w=function(n,e,t){if(++t[1]===t[0]&&n.o.delete(e),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(t=n.u;t;){for(;t.length>3;)t.pop()();if(t[1]>>1,1),e.i.removeChild(n)}}),(0,o.sY)((0,o.az)(P,{context:e.context},n.__v),e.l)):e.l&&e.componentWillUnmount()}function S(n,e){return(0,o.az)(E,{__v:n,i:e})}(g.prototype=new o.wA).__e=function(n){var e=this,t=y(e.__v),r=e.o.get(n);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),w(e,n,r)):o()};t?t(i):i()}},g.prototype.render=function(n){this.u=null,this.o=new Map;var e=(0,o.bR)(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return n.children},g.prototype.componentDidUpdate=g.prototype.componentDidMount=function(){var n=this;this.o.forEach((function(e,t){w(n,t,e)}))};var C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,T=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,O="undefined"!=typeof document,k=function(n){return("undefined"!=typeof Symbol&&"symbol"==i(Symbol())?/fil|che|rad/i:/fil|che|ra/i).test(n)};o.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(n){Object.defineProperty(o.wA.prototype,n,{configurable:!0,get:function(){return this["UNSAFE_"+n]},set:function(e){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:e})}})}));var A=o.YM.event;function R(){}function I(){return this.cancelBubble}function M(){return this.defaultPrevented}o.YM.event=function(n){return A&&(n=A(n)),n.persist=R,n.isPropagationStopped=I,n.isDefaultPrevented=M,n.nativeEvent=n};var x,D={configurable:!0,get:function(){return this.class}},U=o.YM.vnode;o.YM.vnode=function(n){var e=n.type,t=n.props,r=t;if("string"==typeof e){var i=-1===e.indexOf("-");for(var u in r={},t){var a=t[u];O&&"children"===u&&"noscript"===e||"value"===u&&"defaultValue"in t&&null==a||("defaultValue"===u&&"value"in t&&null==t.value?u="value":"download"===u&&!0===a?a="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+e)&&!k(t.type)?u="oninput":/^onfocus$/i.test(u)?u="onfocusin":/^onblur$/i.test(u)?u="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(u)?u=u.toLowerCase():i&&T.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),r[u]=a)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,o.bR)(t.children).forEach((function(n){n.props.selected=-1!=r.value.indexOf(n.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=(0,o.bR)(t.children).forEach((function(n){n.props.selected=r.multiple?-1!=r.defaultValue.indexOf(n.props.value):r.defaultValue==n.props.value}))),n.props=r,t.class!=t.className&&(D.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",D))}n.$$typeof=C,U&&U(n)};var N=o.YM.__r;o.YM.__r=function(n){N&&N(n),x=n.__c};var L={ReactCurrentDispatcher:{current:{readContext:function(n){return x.__n[n.__c].props.value}}}};function B(n){return!!n&&n.$$typeof===C}e.ZP={useState:r.eJ,useReducer:r._Y,useEffect:r.d4,useLayoutEffect:r.bt,useRef:r.sO,useImperativeHandle:r.aP,useMemo:r.Ye,useCallback:r.I4,useContext:r.qp,useDebugValue:r.Qb,version:"17.0.2",Children:_,render:function(n,e,t){return null==e.__k&&(e.textContent=""),(0,o.sY)(n,e),"function"==typeof t&&t(),n?n.__c:null},hydrate:function(n,e,t){return(0,o.ZB)(n,e),"function"==typeof t&&t(),n?n.__c:null},unmountComponentAtNode:function(n){return!!n.__k&&((0,o.sY)(null,n),!0)},createPortal:S,createElement:o.az,createContext:o.kr,createFactory:function(n){return o.az.bind(null,n)},cloneElement:function(n){return B(n)?o.Tm.apply(null,arguments):n},createRef:o.Vf,Fragment:o.HY,isValidElement:B,findDOMNode:function(n){return n&&(n.base||1===n.nodeType&&n)||null},Component:o.wA,PureComponent:c,memo:l,forwardRef:d,flushSync:function(n,e){return n(e)},unstable_batchedUpdates:function(n,e){return n(e)},StrictMode:o.HY,Suspense:m,SuspenseList:g,lazy:b,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:L}},2315:function(n,e,t){"use strict";t.d(e,{HY:function(){return y},Tm:function(){return H},Vf:function(){return m},YM:function(){return o},ZB:function(){return Y},az:function(){return h},bR:function(){return T},kr:function(){return j},sY:function(){return B},wA:function(){return b}});var r,o,i,u,a,c,l,s={},f=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(n,e){for(var t in e)n[t]=e[t];return n}function _(n){var e=n.parentNode;e&&e.removeChild(n)}function h(n,e,t){var o,i,u,a={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:a[u]=e[u];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):t),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===a[u]&&(a[u]=n.defaultProps[u]);return v(n,a,o,i,null)}function v(n,e,t,r,u){var a={type:n,props:e,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null==u&&null!=o.vnode&&o.vnode(a),a}function m(){return{current:null}}function y(n){return n.children}function b(n,e){this.props=n,this.context=e}function g(n,e){if(null==e)return n.__?g(n.__,n.__.__k.indexOf(n)+1):null;for(var t;e0?v(h.type,h.props,h.key,null,h.__v):h)){if(h.__=t,h.__b=t.__b+1,null===(_=P[d])||_&&h.key==_.key&&h.type===_.type)P[d]=void 0;else for(p=0;p2&&(a.children=arguments.length>3?r.call(arguments,2):t),v(n.type,a,o||n.key,i||n.ref,null)}function j(n,e){var t={__c:e="__cC"+l++,__:n,Consumer:function(n,e){return n.children(e)},Provider:function(n){var t,r;return this.getChildContext||(t=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&t.some(P)},this.sub=function(n){t.push(n);var e=n.componentWillUnmount;n.componentWillUnmount=function(){t.splice(t.indexOf(n),1),e&&e.call(n)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}r=f.slice,o={__e:function(n,e){for(var t,r,o;e=e.__;)if((t=e.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(n)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(n),o=t.__d),o)return t.__E=t}catch(e){n=e}throw n}},i=0,b.prototype.setState=function(n,e){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof n&&(n=n(p({},t),this.props)),n&&p(t,n),null!=n&&this.__v&&(e&&this.__h.push(e),P(this))},b.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),P(this))},b.prototype.render=y,u=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,l=0},705:function(n,e,t){"use strict";t.d(e,{I4:function(){return P},Qb:function(){return S},Ye:function(){return w},_Y:function(){return v},aP:function(){return g},bt:function(){return y},d4:function(){return m},eJ:function(){return h},qp:function(){return E},sO:function(){return b}});var r,o,i,u=t(2315),a=0,c=[],l=u.YM.__b,s=u.YM.__r,f=u.YM.diffed,d=u.YM.__c,p=u.YM.unmount;function _(n,e){u.YM.__h&&u.YM.__h(o,n,a||e),a=0;var t=o.__H||(o.__H={__:[],__h:[]});return n>=t.__.length&&t.__.push({}),t.__[n]}function h(n){return a=1,v(R,n)}function v(n,e,t){var i=_(r++,2);return i.t=n,i.__c||(i.__=[t?t(e):R(void 0,e),function(n){var e=i.t(i.__[0],n);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function m(n,e){var t=_(r++,3);!u.YM.__s&&A(t.__H,e)&&(t.__=n,t.__H=e,o.__H.__h.push(t))}function y(n,e){var t=_(r++,4);!u.YM.__s&&A(t.__H,e)&&(t.__=n,t.__H=e,o.__h.push(t))}function b(n){return a=5,w((function(){return{current:n}}),[])}function g(n,e,t){a=6,y((function(){"function"==typeof n?n(e()):n&&(n.current=e())}),null==t?t:t.concat(n))}function w(n,e){var t=_(r++,7);return A(t.__H,e)&&(t.__=n(),t.__H=e,t.__h=n),t.__}function P(n,e){return a=8,w((function(){return n}),e)}function E(n){var e=o.context[n.__c],t=_(r++,9);return t.c=n,e?(null==t.__&&(t.__=!0,e.sub(o)),e.props.value):n.__}function S(n,e){u.YM.useDebugValue&&u.YM.useDebugValue(e?e(n):n)}function C(){var n;for(c.sort((function(n,e){return n.__v.__b-e.__v.__b}));n=c.pop();)if(n.__P)try{n.__H.__h.forEach(O),n.__H.__h.forEach(k),n.__H.__h=[]}catch(e){n.__H.__h=[],u.YM.__e(e,n.__v)}}u.YM.__b=function(n){o=null,l&&l(n)},u.YM.__r=function(n){s&&s(n),r=0;var e=(o=n.__c).__H;e&&(e.__h.forEach(O),e.__h.forEach(k),e.__h=[])},u.YM.diffed=function(n){f&&f(n);var e=n.__c;e&&e.__H&&e.__H.__h.length&&(1!==c.push(e)&&i===u.YM.requestAnimationFrame||((i=u.YM.requestAnimationFrame)||function(n){var e,t=function(){clearTimeout(r),T&&cancelAnimationFrame(e),setTimeout(n)},r=setTimeout(t,100);T&&(e=requestAnimationFrame(t))})(C)),o=null},u.YM.__c=function(n,e){e.some((function(n){try{n.__h.forEach(O),n.__h=n.__h.filter((function(n){return!n.__||k(n)}))}catch(t){e.some((function(n){n.__h&&(n.__h=[])})),e=[],u.YM.__e(t,n.__v)}})),d&&d(n,e)},u.YM.unmount=function(n){p&&p(n);var e,t=n.__c;t&&t.__H&&(t.__H.__.forEach((function(n){try{O(n)}catch(n){e=n}})),e&&u.YM.__e(e,t.__v))};var T="function"==typeof requestAnimationFrame;function O(n){var e=o,t=n.__c;"function"==typeof t&&(n.__c=void 0,t()),o=e}function k(n){var e=o;n.__c=n.__(),o=e}function A(n,e){return!n||n.length!==e.length||e.some((function(e,t){return e!==n[t]}))}function R(n,e){return"function"==typeof e?e(n):e}},9603:function(n,e,t){"use strict";t.d(e,{R:function(){return o}});var r=t(8420),o=function(n){return new Proxy({},{get:function(e,t){if("string"==typeof t)return(0,r.Vo)((function(){return n(t).then((function(n){return{default:n[t]}}))}))}})}},1729:function(n,e){"use strict";e.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},8794:function(n,e,t){"use strict";var r;t.d(e,{Z:function(){return i}});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}},7376:function(n,e,t){"use strict";for(var r=t(4721),o=[],i=0;i<256;++i)o.push((i+256).toString(16).substr(1));e.Z=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=(o[n[e+0]]+o[n[e+1]]+o[n[e+2]]+o[n[e+3]]+"-"+o[n[e+4]]+o[n[e+5]]+"-"+o[n[e+6]]+o[n[e+7]]+"-"+o[n[e+8]]+o[n[e+9]]+"-"+o[n[e+10]]+o[n[e+11]]+o[n[e+12]]+o[n[e+13]]+o[n[e+14]]+o[n[e+15]]).toLowerCase();if(!(0,r.Z)(t))throw TypeError("Stringified UUID is invalid");return t}},651:function(n,e,t){"use strict";var r=t(8794),o=t(7376);e.Z=function(n,e,t){var i=(n=n||{}).random||(n.rng||r.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){t=t||0;for(var u=0;u<16;++u)e[t+u]=i[u];return e}return(0,o.Z)(i)}},4721:function(n,e,t){"use strict";var r=t(1729);e.Z=function(n){return"string"==typeof n&&r.Z.test(n)}},2783:function(n,e,t){"use strict";t.d(e,{O:function(){return a}});var r=t(7582),o=t(6310),i=t(1399),u="".concat("https://checkout.tabby.ai","/widgets/api"),a=function(n){return(0,r.mG)(void 0,void 0,Promise,(function(){var e,t,a,c;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:e=new AbortController,t=e.signal,setTimeout((function(){e.abort()}),2e3),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,(0,i.q)({url:"".concat(u,"/web"),options:{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify((0,o.h)(n)),signal:t}})];case 2:if(!(a=r.sent()))throw new Error("empty response");return[2,a];case 3:return c=r.sent(),console.log("POST /web failed",c),[2,{experiments:{experiments:[],entityId:""},aid:"",offers:{installments:[]}}];case 4:return[2]}}))}))}},1518:function(n,e,t){"use strict";t.d(e,{B:function(){return s}});var r,o=t(7582),i=t(1955),u=t(8455),a=t(6119),c=t(651),l="xxx111otrckid",s=function(){return(0,o.mG)(void 0,void 0,void 0,(function(){var n,e;return(0,o.Jh)(this,(function(t){switch(t.label){case 0:if(r)return[2,r];n=i.Z.get(l)||(0,c.Z)(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,a.P)({type:u.y.getEntityId,payload:{entityId:n}})];case 2:return e=t.sent(),i.Z.set(l,e),r=e,[2,e];case 3:return t.sent(),[2,n];case 4:return[2]}}))}))}},8455:function(n,e,t){"use strict";t.d(e,{y:function(){return r}});var r={getEntityId:"".concat("tbb-co-event","-getEntityId")}},8008:function(n,e,t){"use strict";t.d(e,{M:function(){return r}});var r=function(n,e){var t;return void 0===e&&(e=[]),null===(t=e.find((function(e){return e.name===n})))||void 0===t?void 0:t.value}},6119:function(n,e,t){"use strict";t.d(e,{P:function(){return u}});var r=t(7582),o=t(935),i=t(7070),u=function(n){var e=n.type,t=n.payload;return(0,r.mG)(void 0,void 0,void 0,(function(){return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return[4,(0,o.I)()];case 1:return n.sent()({type:e,payload:t}),[2,(0,i.B)(e)]}}))}))}},6028:function(n,e,t){"use strict";t.d(e,{M:function(){return o}});var r="tabby-checkout-frame",o=function(){return new Promise((function(n){var e=document.getElementById(r);if(e)n(e);else{var t=document.createElement("iframe");t.id=r,t.src="".concat("https://checkout.tabby.ai","/").concat("widgets-user-tracking.html","?").concat((new Date).getTime()),t.style.display="none",t.onload=function(){return n(t)},document.body.append(t)}}))}},935:function(n,e,t){"use strict";t.d(e,{I:function(){return i}});var r=t(7582),o=t(6028),i=function(){return(0,r.mG)(void 0,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:return[4,(0,o.M)()];case 1:return n=e.sent(),[2,function(e){var t,r=e.type,o=e.payload;null===(t=n.contentWindow)||void 0===t||t.postMessage(JSON.stringify({type:r,payload:o}),"*")}]}}))}))}},7070:function(n,e,t){"use strict";t.d(e,{B:function(){return o}});var r=t(5283),o=function(n){return new Promise((function(e,t){var o=function(t){try{if((0,r.j)(t.data))return;var i=JSON.parse(t.data),u=i.type,a=i.payload;if(u!==n)return;e(a),window.removeEventListener("message",o)}catch(n){}};setTimeout((function(){window.removeEventListener("message",o),t(new Error("timeout: The resource cannot load"))}),2e3),window.addEventListener("message",o)}))}},3609:function(n,e,t){"use strict";t.d(e,{e:function(){return o}});var r=t(8420);function o(n){var e=n.condition,t=n.fallback,o=void 0===t?null:t,i=n.children;return r.ZP.createElement(r.n4,{fallback:o},e&&i)}},7033:function(n,e,t){"use strict";t.d(e,{e:function(){return r.e}});var r=t(3609)},7499:function(n,e,t){"use strict";t.d(e,{h:function(){return r.h}});var r=t(2677)},2677:function(n,e,t){"use strict";t.d(e,{h:function(){return i}});var r=t(8420),o=t(6915);function i(n){var e=n.children,t=n.to,i=(0,r.eJ)((function(){return(0,o.s)(t)})),u=i[0],a=i[1];return(0,r.d4)((function(){var n=(0,o.s)(t);n&&a(n)}),[t]),u&&(0,r.jz)(e,u)}},216:function(n,e,t){"use strict";t.d(e,{BA:function(){return i},Yb:function(){return r},aO:function(){return o}});var r="Widget Initialized",o={UPDATE_STORE:"updateStore",PREPARE_ALSHAYA_LIMIT:"prepareAlshayaLimit",UPDATE_FROM_DATASET:"updateFromDataSet",SET_TITLES:"setTitles",PREPARE_PAY_IN_FULL_POPUP:"preparePayInFullPopup",PREPARE_SCHEDULE_POPUP:"prepareSchedulePopup",GET_WIDGET_DATA:"getWidgetData"},i="mobileBridge"},2614:function(n,e,t){"use strict";t.d(e,{O:function(){return r}});var r={AED:"emirates",SAR:"saudi",KWD:"kuwait",BHD:"bahrain",QAR:"qatar"}},8050:function(n,e,t){"use strict";t.d(e,{x:function(){return i}});var r,o=t(4147),i=((r={})[o.ax.en]={lang:o.Uo.en,locale:o.go["en-US"]},r[o.ax.ar]={lang:o.Uo.ar,locale:o.go["ar-AE"]},r)},8392:function(n,e,t){"use strict";t.d(e,{Kg:function(){return o},Vi:function(){return r},_Y:function(){return i}});var r="prod",o="2.114.1",i="pub2d3f9f5ef6c4aeda0c94827727d0c3c1"},6953:function(n,e,t){"use strict";t.d(e,{ES:function(){return o},IP:function(){return i},pA:function(){return r}});var r=[2,3,4,5,6,7,8,9,10,11,12],o={four:4,six:6,eight:8,twelve:12},i=100},1080:function(n,e,t){"use strict";t.d(e,{OE:function(){return w},bp:function(){return g},wI:function(){return E}});var r=t(7582),o=t(8420),i=t(8008),u=t(216),a=t(5724),c=t(3720),l=t(3432),s=t(9449),f=t(4147),d=t(3629),p=t(797),_=t(6860),h=t(9263),v=t(8078),m=t(3919),y=t(6456),b=o.ZP.createContext({});b.displayName="StoreContext";var g=function(){return o.ZP.useContext(b)},w=4,P=function(n){var e=n.lang,t=n.locale,o=n.currency,i=n.price,u=n.installmentsCount,a=(0,r._T)(n,["lang","locale","currency","price","installmentsCount"]);return(0,r.pi)({lang:(0,_.d)(e,{locale:t}),locale:(0,h.d)(t,{lang:e}),currency:(0,d.J)(o),formattedCurrency:(0,d.x)(o),price:(0,v.t)(i),priceRaw:i,installmentsCount:(0,p.X)(w)(u),isBig:!1,isDark:!1,isBold:!1,isMobileRounded:!1,isShortSplitIt:!1,experiments:[],entityId:"",aid:"",offers:{installments:[]},loading:!0},a)};function E(n){var e=n.children,t=n.merchant,d=void 0===t?document.location.origin:t,p=n.infoAttrName,_=n.productType,h=n.theme,v=n.publicKey,g=n.merchantCode,w=n.styleConfig,E=n.size,S=(0,r._T)(n,["children","merchant","infoAttrName","productType","theme","publicKey","merchantCode","styleConfig","size"]),C=(0,c.j)(S),T=C.woo,O=C.shouldInheritBg,k=void 0===O||O,A=C.partnerCharges,R=(0,r._T)(C,["woo","shouldInheritBg","partnerCharges"]),I=(0,l.Q)(R),M=I.minPrice,x=I.minLimit,D=(0,r._T)(I,["minPrice","minLimit"]),U=(0,o._Y)(a.k,D,P),N=U[0],L=N.lang,B=N.locale,Y=N.currency,H=N.price,j=N.installmentsCount,W=N.formattedCurrency,Z=N.priceRaw,J=N.isBig,F=N.isDark,V=N.titles,z=N.isBold,K=N.isMobileRounded,G=N.isShortSplitIt,q=N.webview,$=N.experiments,Q=N.entityId,X=N.aid,nn=N.offers,en=N.loading,tn=U[1];(0,o.d4)((function(){tn({type:u.aO.UPDATE_STORE,payload:{isDark:D.isDark,isBig:D.isBig,titles:D.titles,installmentsCount:D.installmentsCount,price:D.price,currency:D.currency,lang:D.lang,locale:D.locale}})}),[tn,D.isDark,D.isBig,D.titles,D.installmentsCount,D.price,D.currency,D.lang,D.locale]),(0,s.n)({publicKey:v,merchantCode:g,currency:Y,amount:H,webview:q,dispatch:tn,loading:en});var rn=(0,o.I4)((function(n){return(0,i.M)(n,$)}),[$]),on=(0,o.Ye)((function(){return{isRtl:L===f.Uo.ar,lang:L,locale:B,currency:Y,price:H,productType:(0,m.L)(_),theme:(0,y.U)(h),installmentsCount:j,experiments:$,entityId:Q,partnerCharges:A,publicKey:v,merchantCode:g,styleConfig:w,shouldInheritBg:k,woo:T,isBig:J,isDark:F,merchant:d,formattedCurrency:W,priceRaw:Z,dispatch:tn,getExperiment:rn,loading:en,offers:nn,aid:X,size:E,minPrice:null!=M?M:x,infoAttrName:p,titles:V,isBold:z,isMobileRounded:K,isShortSplitIt:G}}),[Y,$,Q,rn,j,L,B,g,A,H,_,v,k,w,h,T,J,F,d,W,Z,en,nn,X,E,M,x,p,V,z,K,G]);return o.ZP.createElement(b.Provider,{value:on},e)}},5724:function(n,e,t){"use strict";t.d(e,{k:function(){return d}});var r=t(7582),o=t(216),i=t(1080),u=t(3629),a=t(797),c=t(6860),l=t(9263),s=t(8078),f=t(1958),d=function(n,e){var t,d;switch(e.type){case o.aO.GET_WIDGET_DATA:return(0,r.pi)((0,r.pi)({},n),{experiments:(null===(t=e.payload.experiments)||void 0===t?void 0:t.experiments)||[],entityId:(null===(d=e.payload.experiments)||void 0===d?void 0:d.entityId)||"",aid:e.payload.aid||"",offers:e.payload.offers||{installments:[]},loading:!1});case o.aO.PREPARE_PAY_IN_FULL_POPUP:return(0,r.pi)((0,r.pi)({},n),{isMobileRounded:!0});case o.aO.SET_TITLES:return(0,r.pi)((0,r.pi)({},n),{titles:e.payload});case o.aO.UPDATE_FROM_DATASET:var p=e.payload,_=p.tabbyLanguage,h=p.tabbyLocale,v=p.tabbyInstallmentsCount,m=p.tabbyPrice,y=p.tabbyCurrency,b=(0,f.P)(_,h);return(0,r.pi)((0,r.pi)((0,r.pi)({},n),{installmentsCount:(0,a.X)(i.OE)(v),price:(0,s.t)(m),priceRaw:m,currency:(0,u.J)(y),formattedCurrency:y}),b?{lang:(0,c.d)(b.lang,{locale:b.locale}),locale:(0,l.d)(b.locale,{lang:b.lang})}:{});case o.aO.PREPARE_ALSHAYA_LIMIT:return(0,r.pi)((0,r.pi)({},n),{isBig:!0});case o.aO.PREPARE_SCHEDULE_POPUP:return(0,r.pi)((0,r.pi)({},n),{isBig:!0,isDark:!0,isBold:!0,isMobileRounded:!0,isShortSplitIt:!0});case o.aO.UPDATE_STORE:return(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},n),e.payload),"installmentsCount"in e.payload?{installmentsCount:(0,a.X)(i.OE)(e.payload.installmentsCount)}:{}),"lang"in e.payload?{lang:(0,c.d)(e.payload.lang,{locale:n.locale})}:{}),"locale"in e.payload?{locale:(0,l.d)(e.payload.locale,{lang:n.lang})}:{}),"price"in e.payload?(0,r.pi)({price:(0,s.t)(e.payload.price)},e.payload.skipRawPriceUpdate?{}:{priceRaw:e.payload.price}):{}),"currency"in e.payload?{currency:(0,u.J)(e.payload.currency),formattedCurrency:(0,u.x)(e.payload.currency)}:{});default:return n}}},3720:function(n,e,t){"use strict";t.d(e,{j:function(){return o}});var r=t(7582),o=function(n){return Object.entries(n).reduce((function(n,e){var t,o=e[0],i=e[1];return(0,r.pi)((0,r.pi)({},n),((t={})[o]=["true","false"].includes(i)?"true"===i:i,t))}),n)}},3432:function(n,e,t){"use strict";t.d(e,{Q:function(){return i}});var r=t(7582),o=t(7560),i=function(n){return Object.entries(n).reduce((function(n,e){var t,i=e[0],u=e[1];return(0,r.pi)((0,r.pi)({},n),((t={})[i]=(0,o.S)(u)?Number(u):u,t))}),n)}},5718:function(n,e,t){"use strict";t.d(e,{z:function(){return l}});var r=t(7582),o=t(8420),i=t(1080),u=t(1293),a=t(2416),c=t(3142),l=function(){var n=(0,i.bp)(),e=n.merchantCode,t=n.aid,l=n.entityId,s=(0,o.Ye)((function(){return{merchantCode:e,platformType:(0,a.l)(),productType:"installments",merchantId:t}}),[e,t]);return(0,o.I4)((function(n){var e=n.event,t=(0,r._T)(n,["event"]),o=(0,r.pi)((0,r.pi)({},s),t);(0,c.M)(e,o,l),u.t.info("segment",e,o)}),[s,l])}},7388:function(n,e,t){"use strict";t.d(e,{R:function(){return i}});var r=t(8420),o=t(1080),i=function(n){var e=(0,o.bp)(),t=e.loading,i=e.experiments;(0,r.d4)((function(){t||n(i)}),[i,t,n])}},4921:function(n,e,t){"use strict";t.d(e,{U:function(){return o}});var r=t(8420),o=function(n){void 0===n&&(n=!1);var e=(0,r.eJ)(n),t=e[0],o=e[1];return function(){for(var n=[],e=0;e=0)return Number(r);if(Number.isNaN(Number(r)))return console.error(n),e}return"number"==typeof t&&Number.isFinite(t)&&t>=0?t:e}}},7766:function(n,e,t){"use strict";t.d(e,{j:function(){return r}});var r=function(n,e,t,r){return function(o){try{if(!o)return r;var i=n(o);if(e(i))return i;throw new Error("Incorrect value")}catch(n){return console.warn(t),r}}}},7292:function(n,e,t){"use strict";t.d(e,{MR:function(){return i},V6:function(){return o}});var r=t(8392),o=["env:".concat(r.Vi),"version:".concat(String(r.Kg).split("-")[0]),"service:widget-integrations","api:fetch-keepalive"].join(","),i=new URL("https://browser-intake-datadoghq.eu/api/v2/logs");i.searchParams.append("ddsource","browser"),i.searchParams.append("ddtags",o),i.searchParams.append("dd-api-key",null!==r._Y&&void 0!==r._Y?r._Y:"")},3806:function(n,e,t){"use strict";function r(n){return n?{stack:n.stack,kind:n.type,message:n.message}:null}t.d(e,{i:function(){return r}})},1293:function(n,e,t){"use strict";t.d(e,{t:function(){return s}});var r=t(7582),o=t(1518),i=t(8392),u=t(7292),a=t(3806),c=t(1399),l=t(651),s=new(function(){function n(n){var e=n.sessionSampleRate,t=void 0===e?0:e;this.shouldLogThisSession=!1,this.globalContext={service:"widget-integrations",source:"browser",origin:"logger",ddtags:u.V6,http:{url:window.location.href,useragent:navigator.userAgent},view:{url:window.location.href,referrer:document.referrer}},t<=0&&(this.shouldLogThisSession=!1),t>=100&&(this.shouldLogThisSession=!0),this.shouldLogThisSession=100*Math.random()0&&o.includes(n.status)?[4,new Promise((function(n){setTimeout((function(){n(null)}),l)}))]:[3,3];case 2:return r.sent(),[2,i({url:e,options:t,retries:a-1,backoff:2*l})];case 3:throw new Error("HTTP error! Status: ".concat(n.status));case 4:return 204===n.status?[2,null]:[4,n.json()];case 5:return[2,r.sent()];case 6:throw u=r.sent(),console.error("Request failed: ".concat(e),u),u;case 7:return[2]}}))}))}},2416:function(n,e,t){"use strict";t.d(e,{l:function(){return u}});var r=t(6442),o=t.n(r),i=t(476),u=function(){switch(!0){case(0,i.J)():return"merchant app";case o().phone:return"merchant web mobile";default:return"merchant web desktop"}}},6915:function(n,e,t){"use strict";t.d(e,{s:function(){return r}});var r=function(n){if(!n)return null;try{return document.querySelector(n)}catch(n){return null}}},476:function(n,e,t){"use strict";t.d(e,{J:function(){return i}});var r=t(7257),o=t.n(r),i=function(){var n,e,t;return Boolean(o()(null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||(null===(t=null===(e=null===window||void 0===window?void 0:window.webkit)||void 0===e?void 0:e.messageHandlers)||void 0===t?void 0:t.ReactNativeWebView)||window.ReactNativeWebView||window.tabbyMobileSDK||window.tabbyAppListener)}},1958:function(n,e,t){"use strict";t.d(e,{P:function(){return i}});var r=t(4889),o=t(5316),i=function(n,e){switch(!0){case!!n&&!e:return{lang:n,locale:(0,o.K)(n)};case!n&&!!e:return{lang:(0,r.p)(e),locale:e};case!!n&&!!e:return{lang:n,locale:e};default:return null}}},4889:function(n,e,t){"use strict";t.d(e,{p:function(){return o}});var r=t(4147),o=function(n){switch(void 0===n&&(n="en"),n.replace(/-/g,"_").split("_")[0].toLowerCase()){case r.Uo.en:case"eng":return r.Uo.en;case r.Uo.ar:case"ara":return r.Uo.ar;default:throw new Error("Unexpected lang code: ".concat(n))}}},5316:function(n,e,t){"use strict";t.d(e,{K:function(){return u}});var r,o=t(4147),i=((r={})[o.Uo.en]=o.go["en-US"],r[o.Uo.ar]=o.go["ar-AE"],r),u=function(n,e){return e&&e in o.go?e:i[n]}},5283:function(n,e,t){"use strict";t.d(e,{j:function(){return r}});var r=function(n){return"object"==typeof n&&null!==n&&!Array.isArray(n)}},7560:function(n,e,t){"use strict";function r(n){switch(typeof n){case"number":return!0;case"string":var e=n.replace(/,/g,".").trim();return""!==e&&Number.isFinite(Number(e));default:return!1}}t.d(e,{S:function(){return r}})},1229:function(n,e,t){"use strict";t.d(e,{N:function(){return i}});var r=t(8420),o=t(6915),i=function(n,e){var t=(0,o.s)(n);t&&r.ZP.render(e,t)}},3142:function(n,e,t){"use strict";t.d(e,{M:function(){return u}});var r=t(7582),o=t(1518),i=t(1399),u=function(n,e,t){return(0,r.mG)(void 0,void 0,void 0,(function(){var u,a,c,l,s;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return(a=t)?[3,2]:[4,(0,o.B)()];case 1:a=r.sent(),r.label=2;case 2:u=a,c=(new Date).toISOString(),l={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({anonymousId:u,type:"track",event:n,writeKey:"5pCQglv2gvKHJYGQnKMeNehjittutsV5",properties:e,timestamp:c,sentAt:c,userId:null})},r.label=3;case 3:return r.trys.push([3,5,,6]),[4,(0,i.q)({url:"https://".concat("checkout.tabby.ai/dp-event-collector/v1","/t"),options:l})];case 4:return r.sent(),[3,6];case 5:return s=r.sent(),console.error("Failed to send segment event:",s),[3,6];case 6:return[2]}}))}))}},3631:function(n,e,t){"use strict";t.d(e,{$:function(){return o}});var r=t(336),o=function(n){return(0,r.L)("widgets",n)}},1955:function(n,e,t){"use strict";function r(n){for(var e=1;e0&&o[o.length-1])||6!==a[0]&&2!==a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]