PageSourceSearch

https://wbk-assets.webook.com/0.7.8/assets/@wbk/analytics-DE0c17Pa.js

js webook.com collected 2026-09-25 15:15:00 UTC 124,325 bytes, 20 lines download raw bytes

1import{r as R,c as Or}from"../vendor-Cc9w-i99.js";import{h as Pr,j as Ht,s as de,i as q,k as J,m as Nr,C as Rr,n as kt,l as ze,o as ve,p as ct,q as qt,t as Dr}from"./hooks-BlLlWTp9.js";var Lr=R.createContext({reportPage:r=>{r&&(document.title=r)},reportSiteTitle:r=>{document.title=r},trackPageView:()=>{}}),zt=Lr;function kn(){return R.useContext(zt)}var Ur=R.createContext({showConsent:!1,loginEvent:()=>{},signupEvent:()=>{},setUser:()=>{},logoutEvent:()=>{},viewItemEvent:()=>{},viewItemListEvent:()=>{},generateLeadEvent:()=>{},viewItemBook:()=>{},viewSummaryEvent:()=>{},ticketsSummaryEvent:()=>{},paymentSummaryEvent:()=>{},cartEvent:()=>{},clearCart:()=>{},beginCheckout:()=>{},purchaseEvent:()=>{},purchaseSubscriptionEvent:()=>{},purchaseFailed:()=>{},shareEvent:()=>{},setCookieConsent:()=>{},pageView:()=>{},registerInterestEvent:()=>{},newsletterEvent:()=>{},trackEvent:()=>{}}),Gt=Ur,Mr=()=>{const r=R.useContext(Gt);if(!r)throw new Error("useAnalytics must be used within an AnalyticsProvider");return r},Wt=Mr,Fr=Object.defineProperty,Br=Object.defineProperties,Vr=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,xt=(r,e,t)=>e in r?Fr(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,U=(r,e)=>{for(var t in e||(e={}))Kt.call(e,t)&&xt(r,t,e[t]);if(Ge)for(var t of Ge(e))Qt.call(e,t)&&xt(r,t,e[t]);return r},re=(r,e)=>Br(r,Vr(e)),Jt=(r,e)=>{var t={};for(var i in r)Kt.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&Ge)for(var i of Ge(r))e.indexOf(i)<0&&Qt.call(r,i)&&(t[i]=r[i]);return t},P=(r,e,t)=>new Promise((i,n)=>{var a=u=>{try{s(t.next(u))}catch(l){n(l)}},o=u=>{try{s(t.throw(u))}catch(l){n(l)}},s=u=>u.done?i(u.value):Promise.resolve(u.value).then(a,o);s((t=t.apply(r,e)).next())}),jr=5e3,Hr=({location:r,params:e,disabled:t=!1,children:i})=>{const{pathname:n,search:a,hash:o}=r,{trackEvent:s}=Wt(),u=Pr(),l=n+a+o,d=R.useRef({at:{key:l,pathname:n,search:a,hash:o,params:e},disabled:t,browserInfo:u,trackEvent:s});R.useLayoutEffect(()=>{d.current={at:{key:l,pathname:n,search:a,hash:o,params:e},disabled:t,browserInfo:u,trackEvent:s}});const p=R.useRef(void 0),c=R.useRef(void 0),v=R.useRef(void 0),f=R.useRef(void 0),h=R.useRef(void 0),_=R.useCallback(A=>{var x,S;const W=((x=v.current)==null?void 0:x.key)===A?v.current.title:void 0,F=W??((S=f.current)==null?void 0:S.title);F&&(document.title=F)},[]),E=R.useCallback((A,x,S)=>{const{browserInfo:W,trackEvent:F}=d.current;p.current=x.key,c.current=void 0,window.clearTimeout(h.current),F({event:"Page View",data:U({page_path:x.pathname,page_url:window.location.href,page_title:A,page_referrer:document.referrer,page_search:x.search,page_hash:x.hash,route_params:x.params,browser:W},S)})},[]),k=R.useCallback(A=>{var x;const{at:S,disabled:W}=d.current,F=A||void 0;if(v.current={key:l,title:F},_(l),W||p.current===l)return;const he=F??((x=f.current)!=null&&x.final?f.current.title:void 0);he?E(he,S):c.current=S},[l,E,_]),m=R.useCallback((A,x)=>{const S=c.current;f.current={title:A,final:x},_(d.current.at.key),x&&(S==null?void 0:S.key)===d.current.at.key&&E(A,S)},[E,_]),w=R.useCallback(A=>{var x,S,W;if(p.current===l)return;const F=((x=v.current)==null?void 0:x.key)===l?v.current.title:void 0;E((W=F??((S=f.current)==null?void 0:S.title))!=null?W:document.title,d.current.at,A)},[l,E]);R.useEffect(()=>{if(_(l),t||p.current===l)return;const A=()=>{var x,S;return(S=(x=f.current)==null?void 0:x.title)!=null?S:document.title};return h.current=window.setTimeout(()=>E(A(),d.current.at),jr),()=>{window.clearTimeout(h.current);const x=c.current;(x==null?void 0:x.key)===l&&E(A(),x)}},[l,t,E,_]);const D=R.useMemo(()=>({reportPage:k,reportSiteTitle:m,trackPageView:w}),[k,m,w]);return Ht.jsx(zt.Provider,{value:D,children:i})},xn=Hr,$t=["Homepage - Page View","Search - Search Focus","Search - Search Query","Search - Search Executed","Search - Results Loaded","Login - Page View","Login - Login Btn","Login - Login Success","Login - Login Failed","Signup - Page View","Signup - Signup Btn","Signup - Signup Success","Signup - Signup Failed","Reset Password - Page View","Reset Password - Send OTP Btn","Reset Password - Send OTP Success","Reset Password - Verify OTP Success","Reset Password - Verify OTP Failed","Reset Password - Resend OTP","Reset Password - Reset Password Success","Reset Password - Reset Password Failed","Complete Account - Verify OTP Success","Complete Account - Set Password Success","Header - Link","Header - Subscription View","Header - Subscription Upgrade","Header - My Bookings","Header - Wallet","Header - Personal Info","Header - My travelers","Header - Logout","Header - User Preference Link","Header - User Preference Save","Explore - Page View","Event Details - Page View","Event Details - Book Tickets Btn","Book Page - Page View","Book Page - Checkout Btn","Book Page - Next Extra Btn","Payment Success","Payment Failed","Page View"],Ce="cookie_consent",ae="checkout_data",oe="user_data",qr=r=>{de(oe,JSON.stringify(r))},be=(r,e)=>P(null,null,function*(){var t,i,n,a,o,s,u,l,d,p,c,v,f,h,_;const E=Rr.find(A=>
1A.code===r.cell_country_code),k=E!=null&&E.dial_code&&r.cell_number?`+${E.dial_code}${r.cell_number}`:r.cell_number||"",[m,w]=yield Promise.all([kt(k),kt(r.email)]),D={_id:r._id||"",user_id:r._id||"",email:r.email||"",phone:r.mobile||"",dob:r.dob||"",gender:r.gender||"",cell_country_code:r.cell_country_code||"",cell_number:r.cell_number||"",mobile:k,phone_hash:m,email_hash:w,first_name:r.first_name||"",last_name:r.last_name||"",city:r.city||"",country:r.country||"",created_at:r.created_at||"",address:r.address||"",locale:r.locale||"",nationality:r.nationality||"",email_promotion:!!r.email_promotion,push_promotion:!!r.push_promotion,sms_promotion:!!r.sms_promotion,whatsapp_promotion:!!r.whatsapp_promotion,subscription_plan:(i=(t=e==null?void 0:e[0])==null?void 0:t.plan)==null?void 0:i.name,subscription_end_date:(n=e==null?void 0:e[0])==null?void 0:n.end_date,subscription_status:(a=e==null?void 0:e[0])==null?void 0:a.status,user_type:((u=(s=(o=e==null?void 0:e[0])==null?void 0:o.plan)==null?void 0:s.plan_group)==null?void 0:u.name)||"",member_id:((d=(l=e==null?void 0:e[0])==null?void 0:l.membership)==null?void 0:d.member_number)||"",membership_category:((c=(p=e==null?void 0:e[0])==null?void 0:p.plan)==null?void 0:c.name)||"",registration_date:(r==null?void 0:r.created_at)||"",season_ticket_holder:!!((f=(v=e==null?void 0:e[0])==null?void 0:v.membership)!=null&&f.season_ticket_holder),direct_debit_active:!!((h=e==null?void 0:e[0])!=null&&h.direct_debit_active),quota_status:((_=e==null?void 0:e[0])==null?void 0:_.quota_status)||""};return qr(D),D}),At=({event:r,title:e,price:t,quantity:i,zone:n,product_id:a,tickets_available:o,event_type:s})=>({currency:(r==null?void 0:r.currencyCode)||(r==null?void 0:r.currency)||"SAR",value:t||(r==null?void 0:r.startingPrice)||0,product_image_url:(r==null?void 0:r.poster)||"",page_type:(r==null?void 0:r.page_type)||"",booking_type:(r==null?void 0:r.contentful_entity_type)||"",event_name:(r==null?void 0:r.title)||e,event_slug:(r==null?void 0:r.slug)||"",tickets_available:o,event_type:s,items:[{id:(r==null?void 0:r._id)||a,item_id:(r==null?void 0:r._id)||a,item_name:(r==null?void 0:r.title)||e,item_category:(r==null?void 0:r.category)||"N/A",price:t||(r==null?void 0:r.startingPrice)||0,quantity:i||1,zone:(r==null?void 0:r.zone)||n||"",google_business_vertical:"retail",start_date_time:r==null?void 0:r.start_date_time,end_date_time:r==null?void 0:r.end_date_time,country:(r==null?void 0:r.country)||""}]}),We=({event:r,title:e,price:t,zone:i,product_id:n})=>({currency:(r==null?void 0:r.currencyCode)||(r==null?void 0:r.currency)||"SAR",product_image_url:(r==null?void 0:r.poster)||"",id:(r==null?void 0:r._id)||n,slug:(r==null?void 0:r.slug)||"",name:(r==null?void 0:r.title)||e,category:(r==null?void 0:r.category)||"N/A",price:t||(r==null?void 0:r.startingPrice)||0,zone:(r==null?void 0:r.zone)||i||"",start_date_time:r==null?void 0:r.start_date_time,end_date_time:r==null?void 0:r.end_date_time,country:(r==null?void 0:r.country)||""}),Xt=({item:r,quantity:e,event:t,itemValue:i,currency:n,id:a,title:o,zone:s,vat:u})=>{const l=q(oe)||"",d=J(l),p=Nr(r==null?void 0:r.original_price),c=r?+r.price+(+r.vat||0):(i||0)+(u||0)||i||0,v=(r==null?void 0:r.price)!==(r==null?void 0:r.original_price),f=r&&v?p-c:0;return{order:{currency:(r==null?void 0:r.currency)||(t==null?void 0:t.currencyCode)||(t==null?void 0:t.currency)||n,value:c*(e||1),product_image_url:t==null?void 0:t.poster,event_slug:t==null?void 0:t.slug,page_type:(t==null?void 0:t.page_type)||"",booking_type:(t==null?void 0:t.booking_type)||"",event_name:o||(t==null?void 0:t.title),items:[{item_id:(r==null?void 0:r._id)||a,item_name:(t==null?void 0:t.title)||o,item_category:(t==null?void 0:t.category)||"N/A",country:(t==null?void 0:t.country)||"",organization_slug:(t==null?void 0:t.organization_slug)||"",quantity:e,original_price:p,price:c,discount:f,ticket_class:r==null?void 0:r.title,zone:(t==null?void 0:t.zone)||s,google_business_vertical:"retail",id:(r==null?void 0:r._id)||a,currency:(r==null?void 0:r.currency)||(t==null?void 0:t.currencyCode)||(t==null?void 0:t.currency)||n,deal_percentage:r==null?void 0:r.deal_percentage,deal_amount:r==null?void 0:r.deal_amount,deal_label:r==null?void 0:r.deal_label,deal_type:r==null?void 0:r.deal_type,is_super_deal:r==null?void 0:r.is_super_deal,deal_id:r==null?void 0:r.deal_id,super_deal_count:(t==null?void 0:t.super_deal_count)||0,total_amount_saved:(t==null?void 0:t.total_amount_saved)||0}],number_items:e,item_ids:[(r==null?void 0:r._id)||a]},userData:d}},ce=({items:r,coupon:e,event:t,zone:i,payment_method:n})=>{var a;const o=r.reduce((p,c)=>p+(+c.price+(c.vat?+c.vat:0))*c.qty,0),s=q(oe)||"",u=J(s),l={item_name:t==null?void 0:t.t
1itle,item_category:(t==null?void 0:t.category)||"N/A",zone:(t==null?void 0:t.zone)||i};return de(ae,JSON.stringify(l)),{order:{currency:((a=r[0])==null?void 0:a.currency)||(t==null?void 0:t.currencyCode)||(t==null?void 0:t.currency)||"SAR",value:o,coupon:(e==null?void 0:e.promo_code)||"",product_image_url:(t==null?void 0:t.poster)||"",page_type:(t==null?void 0:t.page_type)||"",booking_type:(t==null?void 0:t.booking_type)||"",has_subscription_upgrade:(t==null?void 0:t.has_subscription_upgrade)||!1,event_name:t==null?void 0:t.title,items:r==null?void 0:r.map(p=>{var c;const v=p.ticket_id||p._id,f=+(+p.price+(p.vat?+p.vat:0)),h=+p.original_price-f,E=v&&((c=e==null?void 0:e.ticket_ids)==null?void 0:c.includes(v))&&(e!=null&&e.discount)?+p.price*e.discount/100:0,k=(p==null?void 0:p.zone)||(t==null?void 0:t.zone)||i,m=p.ticket_class||p.title;return{item_id:v,item_name:p.title,item_category:(t==null?void 0:t.category)||"N/A",country:(t==null?void 0:t.country)||"",organization_slug:(t==null?void 0:t.organization_slug)||"",quantity:p.qty,price:f,discount:E||h,zone:k,google_business_vertical:"retail",ticket_class:m,id:v,deal_percentage:p.deal_percentage,deal_amount:p.deal_amount,deal_label:p.deal_label,deal_type:p.deal_type,is_super_deal:p.is_super_deal,deal_id:p.deal_id,super_deal_count:(t==null?void 0:t.super_deal_count)||0,total_amount_saved:(t==null?void 0:t.total_amount_saved)||0,billing_period:p.billing_period||null}}),number_items:r==null?void 0:r.reduce((p,c)=>p+c.qty,0),item_ids:r==null?void 0:r.map(p=>p.ticket_id||p._id),payment_method:n||""},userData:u}},Ke=r=>{var e,t,i;const n=r.summary||r.summaries||[],a=q(oe)||"",o=J(a),s=q(ae)||"",u=J(s);let l=0;const d=n.flatMap(h=>{var _;const E=new Map(((_=h.tickets_details)!=null?_:[]).map(k=>{var m;return(m=k.deal)!=null&&m.deal_id&&(l+=1),[k.event_ticket_id,k.deal]}));return h.tickets.map(k=>{var m,w,D,A,x;const S=E.get(k._id);return{item_id:k._id,item_name:((m=h.event)==null?void 0:m.title)||"",item_category:u==null?void 0:u.item_category,quantity:k.qty,price:+k.price,ticket_class:k.title,item_category2:((w=h.event)==null?void 0:w.city)||"",zone:u==null?void 0:u.zone,google_business_vertical:"retail",id:k._id,total_amount_saved:r.deal_discount_amount,deal_percentage:(D=S==null?void 0:S.discount_percentage)!=null?D:S!=null&&S.discount_amount?S.discount_amount/S.original_price*100:void 0,deal_amount:(A=S==null?void 0:S.discount_amount)!=null?A:S!=null&&S.discount_percentage?S.original_price*(S.discount_percentage/100):void 0,deal_label:S==null?void 0:S.label_prefix,deal_type:(x=S==null?void 0:S.deal_type)==null?void 0:x.name,is_super_deal:!!(S!=null&&S.deal_id),deal_id:S==null?void 0:S.deal_id,super_deal_count:l}})}),p=n==null?void 0:n[0].event,c=(t=(e=n==null?void 0:n[0].tickets)==null?void 0:e[0])==null?void 0:t.time_slots;let v=p.start_date_time;if(r.seven_rooms_details)v=Math.floor(new Date(r.seven_rooms_details.time_iso).getTime()/1e3);else if(r.servme_details){const h=new Date(`${(i=r.servme_details)==null?void 0:i.date} ${r.servme_details.time}`);v=Math.floor(h.getTime()/1e3)}else if(c!=null&&c.time_from){const h=new Date(c.time_from);v=Math.floor(h.getTime()/1e3)}return{order:{booking_type:r.contentful_entity_type||"",transaction_id:r.order_id,transaction_type:r.is_resale?"resell":"",event_id:p==null?void 0:p._id,event_slug:p==null?void 0:p.slug,event_date:v,event_name:(p==null?void 0:p.title)||"",currency:r.total.currency,shipping:0,tax:r.total.vat_total,value:r.total.grand_total,discount:r.total.discount_amount,payment_type:r.booked_type,coupon:r.promo_code||"",product_image_url:(p==null?void 0:p.poster)||"",items:d,number_items:d.length,item_ids:d.map(h=>h.item_id),insider_booking_payload:r.insider_booking_payload},userData:o}},Qe=r=>{var e;const t=q(oe)||"",i=J(t),n=q(ae)||"",a=J(n),o=r.plan.plan_group._id,s={item_id:o,item_name:r.plan.name||"",item_category:a==null?void 0:a.item_category,quantity:1,price:r.plan.price,item_category2:r.plan.name||"",google_business_vertical:"retail",id:o,billing_period:((e=r.plan.payment_terms)==null?void 0:e.toLowerCase())||null};return{order:{transaction_id:r._id,event_id:o,event_slug:r.plan.plan_group._id,event_date:r.start_date,currency:r.plan.currency,shipping:0,tax:r.plan.vat,value:r.payment_session.grand_total,payment_type:"order_subscription",product_image_url:r.subscription.poster||"",items:[s],number_items:1,item_ids:[o]},userData:i}},An=class{constructor(r){this.init=()=>{typeof window<"u"&&this.token&&(ze({id:this.token,target:"head",snippet:`(function (f, b) { if (!b.__SV) { var e, g, i, h; window.mixpanel = b; b._i = [];
2      b.init = function (e, f, c) { function g(a, d) { var b = d.split(".");
3      2 == b.length && ((a = a[b[0]]), (d = b[1])); a[d] = function () { a.push([d].concat(Array.prototype.slice.call(arguments, 0))); }; } var a = b;
4      "undefined" !== typeof c ? (a = b[c] = []) : (c = "mixpanel"); a.people = a.people || [];
5      a.toString = function (a) { var d = "mixpanel"; "mixpanel" !== c && (d += "." + c);
6      a || (d += " (stub)"); return d; }; a.people.toString = function () { return a.toString(1) + ".people (stub)"; };
7      i = "disable time_event track track_pageview track_links track_forms track_with_groups add_group set_group remove_group register register_once alias unregister identify name_tag set_config reset opt_in_tracking opt_out_tracking has_opted_in_tracking has_opted_out_tracking clear_opt_in_out_tracking start_batch_senders people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user people.remove".split( " ");
8      for (h = 0; h < i.length; h++) g(a, i[h]); var j = "set set_once union unset remove delete".split(" ");
9      a.get_group = function () { function b(c) { d[c] = function () { call2_args = arguments; call2 = [c].concat(Array.prototype.slice.call(call2_args, 0));
10      a.push([e, call2]); }; } for ( var d = {}, e = ["get_group"].concat( Array.prototype.slice.call(arguments, 0)), c = 0; c < j.length; c++) b(j[c]); return d; };
11      b._i.push([e, f, c]); }; b.__SV = 1.2; e = f.createElement("script"); e.type = "text/javascript"; e.async = !0;
12      e.src = "undefined" !== typeof MIXPANEL_CUSTOM_LIB_URL ? MIXPANEL_CUSTOM_LIB_URL : "file:" === f.location.protocol && "//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js".match(/^\\/\\//) ? "https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js" : "//cdn.mxpnl.com/libs/mixpanel-2-latest.min.js"; g = f.getElementsByTagName("script")[0]; g.parentNode.insertBefore(e, g); } })(document, window.mixpanel || []);`}),mixpanel.init(this.token,this.config))},this.setDevice=()=>{},this.setCookieConsent=()=>{},this.pageView=()=>{},this.signupEvent=n=>P(this,[n],function*({user:a}){this.track("Signup - Signup Success",{email:a.email})}),this.loginEvent=n=>P(this,[n],function*({user:a}){this.track("Login - Login Success",{email:a.email})}),this.setUser=n=>P(this,null,function*(){const a=yield be(n);this.identify(a)}),this.logoutEvent=()=>{this.reset()},this.viewItemEvent=n=>P(this,null,function*(){const a=We(n);this.track("Event Details - Page View",a)}),this.viewItemListEvent=()=>{},this.generateLeadEvent=n=>{this.track("Event Details - Book Tickets Btn",n)},this.viewItemBook=n=>{const a=We(n);this.track("Book Page - Page View",a)},this.cartEvent=()=>{},this.viewSummaryEvent=()=>{},this.ticketsSummaryEvent=()=>{},this.paymentSummaryEvent=()=>{},this.beginCheckout=n=>{const a=ce(n);this.track("Book Page - Checkout Btn",a)},this.purchaseEvent=n=>P(this,null,function*(){const a=Ke(n);this.track("Payment Success",a.order),ve(ae)}),this.purchaseSubscriptionEvent=n=>{const a=Qe(n);this.track("Payment Success",a.order),ve(ae)},this.purchaseFailed=n=>{const a=n==null?void 0:n.reason;this.track("Payment Failed",{reason:a})},this.registerInterestEvent=()=>{},this.newsletterEvent=()=>{},this.shareEvent=()=>{},this.trackEvent=n=>{(n.tracker==="mixpanel"||$t.includes(n.event))&&this.track(n.event,n.data)},this.clearCart=()=>{},this.track=(n,a)=>{typeof mixpanel<"u"&&(mixpanel.track(n,a),this.config.debug&&console.log("mixpanel track:",{event_name:n,properties:a}))},this.identify=n=>{if(typeof mixpanel<"u"){const a=re(U({},n),{access_token:null});mixpanel.identify(n._id),mixpanel.people.set(a),this.config.debug&&console.log("mixpanel identify:",{user:a})}},this.reset=()=>{typeof mixpanel<"u"&&mixpanel.reset(),this.config.debug&&console.log("mixpanel reset")};var e=r,{token:t}=e,i=Jt(e,["token"]);this.token=t,this.config=U({persistence:"localStorage"},i),this.init()}},Tn=class{constructor(r){this.initPH=()=>{var a,o;const s=!!((a=this.apiHost)!=null&&a.trim()),u=!!((o=this.apiKey)!=null&&o.trim());if(!(typeof window<"u"&&s&&u))return;const d=q(Ce);let p=!1;if(d){const v=J(d);p=this.isConsentGranted(v)}const c=re(U({},this.config),{api_host:this.apiHost,persistence:p?"localStorage+cookie":"memory"});
12ze({id:this.apiKey,target:"head",snippet:`!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");
13      2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);
14      var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys onSessionId".split(" "),n=0;
15      n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
16      posthog.init('${this.apiKey}', ${JSON.stringify(c)})`})},this.setDevice=()=>{},this.setCookieConsent=({data:a})=>{if(typeof posthog<"u"){const o=this.isConsentGranted(a);posthog.set_config({persistence:o?"localStorage+cookie":"memory"})}},this.isConsentGranted=a=>a.analytics_storage==="granted",this.pageView=()=>{this.capture("$pageview")},this.signupEvent=a=>P(this,[a],function*({user:o}){const s=yield be(o);this.capture("Signup - Signup Success",{email:o.email},{$set:s})}),this.loginEvent=a=>P(this,[a],function*({user:o}){const s=yield be(o);this.capture("Login - Login Success",{email:o.email},{$set:s})}),this.setUser=a=>{this.identify(a._id,re(U({},a),{access_token:""}))},this.logoutEvent=()=>{this.reset()},this.viewItemEvent=a=>P(this,null,function*(){const o=q(oe)||"",s=J(o),u=We(a);this.capture("Event Details - Page View",u,{$set:s})}),this.viewItemListEvent=()=>{},this.generateLeadEvent=a=>{this.capture("Event Details - Book Tickets Btn",a)},this.viewItemBook=a=>{const o=We(a);this.capture("Book Page - Page View",o)},this.cartEvent=()=>{},this.viewSummaryEvent=()=>{},this.ticketsSummaryEvent=()=>{},this.paymentSummaryEvent=()=>{},this.beginCheckout=a=>{const o=ce(a);this.capture("Book Page - Checkout Btn",o)},this.purchaseEvent=a=>P(this,null,function*(){const o=Ke(a);this.capture("Payment Success",o.order,{$set:o.userData}),ve(ae)}),this.purchaseSubscriptionEvent=a=>{const o=Qe(a);this.capture("Payment Success",o.order,{$set:o.userData}),ve(ae)},this.purchaseFailed=a=>{const o=a==null?void 0:a.reason;this.capture("Payment Failed",{reason:o})},this.registerInterestEvent=()=>{},this.newsletterEvent=()=>{},this.shareEvent=()=>{},this.trackEvent=a=>{(a.tracker==="posthog"||$t.includes(a.event))&&this.capture(a.event,a.data)},this.clearCart=()=>{},this.capture=(a,o,s)=>{typeof posthog<"u"&&(posthog.capture(a,o,s),this.log&&console.log("posthog capture:",{event_name:a,properties:o,options:s}))},this.identify=(a,o,s)=>{typeof posthog<"u"&&(posthog.identify(a,o,s),this.log&&console.log("posthog identify:",{id:a,properties:o,propertiesOnce:s}))},this.reset=()=>{typeof posthog<"u"&&(posthog.reset(),this.log&&console.log("posthog reset"))};var e=r,{apiKey:t,log:i}=e,n=Jt(e,["apiKey","log"]);this.apiHost=n.api_host,this.apiKey=t,this.config=n,this.log=!!i,this.initPH()}},zr=["business_category_selected","business_step_submitted","booking_confirmation_topup_initiated","booking_team_selected","cashless_topup_confirmed","checkout_initiated","clicked_on_category","clicked_on_join_auction","clicked_on_jump_queue","clicked_on_jump_queue_authenticate","clicked_on_next_extra","clicked_on_resell_button","clicked_on_search","clicked_on_section_item","clicked_on_select_dates","clicked_on_start_bidding","clicked_on_tags","clicked_on_top_up_wallet","clicked_on_upgrade_booking_limit","clicked_on_upgrade_continue_booking_limit","clicked_on_upgrade_continue_jump_queue","clicked_on_upgrade_continue_purchase_priority","clicked_on_upgrade_purchase_priority","clicked_on_verify_email","clicked_select_plan","confirm_bid","contact_us_clicked","cta_clicked","dd_adhesion_complete","error_occured","flights_add_passenger_clicked","flights_bookings_card_clicked","flights_bookings_tab_clicked","flights_file_downloaded","flights_confirmation_page_loaded","flights_home_departure_date_selected","flights_home_destination_selected","flights_home_origin_selected","flights_home_page_loaded","flights_home_return_date_selected","flights_home_search_started","flights_login_page_loaded","flights_pax__details_add_pax_clicked","flights_pax__details_continue_clicked","flights_pax__details_error_occurred","flights_pax__details_traveller_added","flights_pax_details_page_loaded","flights_passengers_details_page_loaded","flights_payment_method_selected","flights_proceed_to_payment_clicked","flights_results_filter_applied","flights_results_page_loaded","flights_results_sort_applied","flights_summary_page_loaded","flight_step_selected","flights_trip_type_selected","flights_recent_search_clicked","flights_result_list_loaded","flights_origin_autosuggest_shown","flights_destination_autosuggest_shown","flights_farefamily_clicked","flights_payment_retried","flights_booking_shared","flights_support_clicked","force_update_banner_spotlight_clicked","force_update_screen_exit","force_update_screen_save_info","increase_bid","member_association_complete","notify_me_clicked","page_view","plus_billing_period_selected","plus_faq_expanded","plus_over_limit_nudge_viewed","plus_over_limit_nudge_clicked","plus_paywall_dismissed","promo_code_verified","quota_payment_complete","request_submit_clicked","saudi_rewards_booking_clicked","saudi_rewards_booking_verified","search","search_filter_applied","search_filter_cleared","search_quick_filter_clicked","section_impression","stays_bookings_card_clicked","stays_bookings_tab_clicked","stays_confirmation_page_loaded","stays_details_check_in_date_selected","stays_details_check_out_date_selected","stays_details_guests_child_age_selected","stays_details_guests_selected","stays_details_page_loaded","stays_details_room_availability_clicked","stays_details_rooms_selected","stays_error_occurred","stays_guest_details_continue_clicked","stays_guest_details_page_loaded","stays_home_check_in_date_selected","stays_home_check_out_date_selected","stays_home_guests_child_age_selected","stays_home_guests_selected","stays_home_location_selected","stays_home_page_loaded","stays_home_rooms_selected","stays_home_search_started","stays_payment_method_selected","stays_payment_summary_page_loaded","stays_proceed_to_payment_clicked","stays_results_card_selected","stays_results_filter_applied","stays_results_page_loaded","stays_results_sort_applied","stays_room_selected","stays_rooms_loaded","cruise_home_port_selected","cruise_home_destination_selected","cruise_home_departure_date_selected","cruise_home_guests_selected","cruise_home_search_started","cruise_results_card_selected","cabin_results_card_selected","cruise_results_filter_applied","cruise_itinerary_cabin_selected","cruise_itinerary_cabin_removed","cabin_details","cruise_itinerary_add_on_selected","cabin_filter_applied","cabin_sort_applied","cabin_distribution","cabin_auto_distribution","cabin_distribution_move","cruise_guest_info_loaded","cruise_travellers_details_loaded","cruise_pax_details_add_pax_selected","cruise_pax_details_traveller_added","cruise_pax_details_continue_clicked","cruise_proceed_to_payment_clicked","cruise_confirmation_page_loaded","cruise_bookings_tab_clicked","subscription_selected","user_subscription_plan","wallet_topup_initiated","flights_support_clicked","flights_booking_shared","resell_home_viewed","resell_event_selected","resell_list_filtered","resell_list_item_ticket_exp
16anded","resell_list_more_loaded","resell_listing_shared","retry_purchase_failed","ticket_date_selected","item_favorited","item_unfavorited","ondemand_prompt_viewed","profile_step_viewed","profile_step_completed","profile_step_back_clicked","profile_flow_exited","profile_flow_resumed","profile_flow_completed","login_screen_viewed","signup_screen_viewed","login_continue_with_email_clicked","login_continue_with_google_clicked","login_continue_with_apple_clicked","login_failed","signup_continue_with_email_clicked","signup_failed","forgot_password_clicked","password_reset_requested","password_reset_completed","otp_requested","otp_verified","otp_failed","apple_hide_email_selected","terms_accepted","ad_impression"],In=class{constructor({log:r}={}){this.setDevice=()=>{},this.setCookieConsent=()=>{},this.pageView=()=>{},this.signupEvent=()=>P(null,null,function*(){}),this.loginEvent=()=>P(null,null,function*(){}),this.setUser=()=>{},this.logoutEvent=()=>{},this.viewItemEvent=()=>P(null,null,function*(){}),this.viewItemListEvent=()=>{},this.generateLeadEvent=()=>{},this.viewItemBook=e=>{var t,i,n,a,o,s,u,l;this.postMessageToWebview("EVENT_DETAILS_LOAD",{data:{productID:(t=e.event)==null?void 0:t.slug,name:(i=e.event)==null?void 0:i.title,taxonomy:(n=e.event)==null?void 0:n.category,imageURL:(a=e.event)==null?void 0:a.poster,price:((o=e.event)==null?void 0:o.startingPrice)||e.price,currency:((s=e.event)==null?void 0:s.currencyCode)||"SAR",eventDate:(u=e.event)==null?void 0:u.start_date_time,booking_type:(l=e.event)==null?void 0:l.contentful_entity_type}})},this.cartEvent=e=>{var t,i,n,a,o,s,u,l;const d=Xt(e),p=e.type==="add"?"ADD_TO_CART":"REMOVE_FROM_CART";this.postMessageToWebview(p,{data:{event:{productID:(t=e.event)==null?void 0:t.slug,name:(i=e.event)==null?void 0:i.title,taxonomy:(n=e.event)==null?void 0:n.category,imageURL:(a=e.event)==null?void 0:a.poster,price:((o=e.event)==null?void 0:o.startingPrice)||d.order.value,currency:((s=e.event)==null?void 0:s.currencyCode)||"SAR",eventDate:(u=e.event)==null?void 0:u.start_date_time,booking_type:(l=e.event)==null?void 0:l.booking_type},order:d.order}})},this.viewSummaryEvent=e=>{var t,i,n,a,o,s,u,l;const d=ce(e);this.postMessageToWebview("BOOKING_SUMMARY",{data:{event:{productID:(t=e.event)==null?void 0:t.slug,name:(i=e.event)==null?void 0:i.title,taxonomy:(n=e.event)==null?void 0:n.category,imageURL:(a=e.event)==null?void 0:a.poster,price:((o=e.event)==null?void 0:o.startingPrice)||d.order.value,currency:((s=e.event)==null?void 0:s.currencyCode)||"SAR",eventDate:(u=e.event)==null?void 0:u.start_date_time,booking_type:(l=e.event)==null?void 0:l.booking_type},order:d.order}})},this.ticketsSummaryEvent=e=>{var t,i,n,a,o,s,u,l;this.postMessageToWebview("TICKETS_SUMMARY",{data:{productID:(t=e.event)==null?void 0:t.slug,name:(i=e.event)==null?void 0:i.title,taxonomy:(n=e.event)==null?void 0:n.category,imageURL:(a=e.event)==null?void 0:a.poster,price:((o=e.event)==null?void 0:o.startingPrice)||e.price,currency:((s=e.event)==null?void 0:s.currencyCode)||"SAR",eventDate:(u=e.event)==null?void 0:u.start_date_time,booking_type:(l=e.event)==null?void 0:l.contentful_entity_type}})},this.paymentSummaryEvent=e=>{var t,i,n,a,o,s,u,l;const d=ce(re(U({},e),{items:[]}));this.postMessageToWebview("PAYMENT_SUMMARY",{data:{event:{productID:(t=e.event)==null?void 0:t.slug,name:(i=e.event)==null?void 0:i.title,taxonomy:(n=e.event)==null?void 0:n.category,imageURL:(a=e.event)==null?void 0:a.poster,price:((o=e.event)==null?void 0:o.startingPrice)||d.order.value,currency:((s=e.event)==null?void 0:s.currencyCode)||"SAR",eventDate:(u=e.event)==null?void 0:u.start_date_time,booking_type:(l=e.event)==null?void 0:l.booking_type},order:d.order}})},this.beginCheckout=e=>{var t,i,n,a,o,s,u,l;const d=ce(e);this.postMessageToWebview("BEGIN_CHECKOUT",{data:{event:{productID:(t=e.event)==null?void 0:t.slug,name:(i=e.event)==null?void 0:i.title,taxonomy:(n=e.event)==null?void 0:n.category,imageURL:(a=e.event)==null?void 0:a.poster,price:((o=e.event)==null?void 0:o.startingPrice)||d.order.value,currency:((s=e.event)==null?void 0:s.currencyCode)||"SAR",eventDate:(u=e.event)==null?void 0:u.start_date_time,booking_type:(l=e.event)==null?void 0:l.booking_type},order:d.order}})},this.purchaseEvent=e=>P(this,null,function*(){const t=Ke(e);this.postMessageToWebview("PURCHASE",{data:t,order:{order_id:e.order_id,total:e.total,booking_type:e.contentful_entity_type}})}),this.trackEvent=e=>{zr.includes(e.event)&&this.postMessageToWebview(e.event,e.data||{})},this.purchaseSubscriptionEvent=e=>{const t=Qe(e);this.postMessageToWebview("PURCHASE",{data:t})},this.purchaseFailed=e=>{this.postMessageToWebview("PURCHASE_FAILED",{data:e})},this.shareEvent=()=>{},this.registerInterestEvent=()=>{},this.newsletterEvent=()=>{},this.clearCart=()=>{},this.postMessageToWebview=(e,t)=>{var i;typeof window<"u"&&((i=window.ReactNativeWebView)==null||i.postMessage(JSON.stringify(U({eventName:e},t))),this.log&&console.log("Pushed to ReactName:",U({eventName:e},t)))},this.log=!!r}},Gr=["redirect","redirect_failed"],Wr=r=>{var e;if(!/^GS\d+\.\d+\./.test(r))return;const t=(e=r.match(/(?:\$|\.)s(\d+)/))==null?void 0:e[1];if(t)return t;const i=r.split(".")[2];return/^\d+$/.test(i||"")?i:void 0},Yt=()=>{var r,e;if(typeof document>"u")return{};const t={},i=(e=(r=ct("_ga"))==null?void 0:r.match(/^GA\d+\.\d+\.(\d+\.\d+)$/))==null?void 0:e[1];i&&(t.ga_client_id=i);for(const n of document.cookie.split(";")){const[a,...o]=n.trim().split("=");if(!(a!=null&&a.startsWith("_ga_")))continue;const s=Wr(o.join("="));s&&(t[a]=s)}return t},Zt=()=>{if(typeof window<"u"){const r=q("utms");if(!r)return null;const e=J(r);return typeof e=="object"&&e!==null&&!Array.isArray(e)?e:null}},er=()=>{if(typeof window>"u")return;
16const r=new URLSearchParams(window.location.search),e=q("utm_wbk_wa_session_id"),t=[...r.keys()].length>0,i={};r.forEach((o,s)=>{Gr.includes(s)||(i[s]=o)}),t&&e&&(i.utm_wbk_wa_session_id=e);const n=t?i:Zt()||{},a=U(U({},n),Yt());return Object.keys(a).length>0?a:void 0},Cn=class{constructor({wasDomain:r,baseDomain:e,apiToken:t,log:i}){this.WBK_SESSION_COOKIE_NAME="utm_wbk_wa_session_id",this.setCookieConsent=()=>{},this.setDevice=()=>{},this.pageView=()=>{const n=q(oe)||"",a=J(n);this.sendBeacon({eventName:"page_view",data:re(U({},this.commonPayload),{user_id:a==null?void 0:a._id})})},this.signupEvent=n=>P(this,[n],function*({user:a}){const o=yield be(a);this.sendBeacon({eventName:"signup",data:re(U({},this.commonPayload),{user_id:o._id})})}),this.loginEvent=()=>P(null,null,function*(){}),this.setUser=()=>{},this.logoutEvent=()=>{},this.viewItemEvent=()=>P(null,null,function*(){}),this.viewItemListEvent=()=>{},this.generateLeadEvent=()=>{},this.viewItemBook=()=>{},this.cartEvent=()=>{},this.viewSummaryEvent=()=>{},this.ticketsSummaryEvent=()=>{},this.paymentSummaryEvent=()=>{},this.beginCheckout=n=>{var a;const o=ce(n);this.sendBeacon({eventName:"begin_checkout",data:re(U({},this.commonPayload),{slug:((a=n.event)==null?void 0:a.slug)||this.commonPayload.slug,value:o.order.value,currency:o.order.currency,coupon:o.order.coupon,number_items:o.order.number_items})})},this.purchaseEvent=n=>P(this,null,function*(){const a=q("tpp_cart_id");a&&(this.sendFetch({endpoint:`integration/checkout/${a}`,data:{status:"paid",order_id:n.order_id}}),ve("tpp_cart_id"))}),this.purchaseSubscriptionEvent=()=>{},this.purchaseFailed=()=>{},this.registerInterestEvent=()=>{},this.newsletterEvent=()=>{},this.shareEvent=()=>{},this.trackEvent=()=>{},this.clearCart=()=>{},this.sendBeacon=({eventName:n,data:a})=>{if(!(a!=null&&a.utm_wid))return;const o=new FormData;o.append("name",n);for(const s in a){const u=a[s];u&&o.append(s,u.toString())}if(typeof navigator<"u"){const s=n==="page_view"?"page_view":"events",u=`${this.wasDomain}/v1/${s}/create`;navigator.sendBeacon(u,o),this.log&&console.log("sendBeacon:",{eventName:n,data:a})}},this.sendFetch=n=>P(this,[n],function*({endpoint:a,data:o}){const s=ct("token")||"",l=yield(yield fetch(`${this.baseDomain}/${a}`,{method:"POST",headers:{Authorization:`Bearer ${s}`,token:this.apiToken,Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(o)})).json();return this.log&&console.log("sendFetch:",{endpoint:a,data:o,response:l}),l}),this.wasDomain=r,this.baseDomain=e,this.apiToken=t,this.log=!!i}get commonPayload(){const r=er()||{},e=window.location,t=e.pathname.split("/"),i=e.pathname,n=t==null?void 0:t[1],a=t==null?void 0:t[3];return re(U({},r),{utm_wbk_wa_session_id:this.wbkSessionId,url:i,lang:n,slug:a})}get wbkSessionId(){const r=q(this.WBK_SESSION_COOKIE_NAME);if(!r){const e=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():qt();return de(this.WBK_SESSION_COOKIE_NAME,e),e}return r}};function Kr(...r){window.dataLayer||(window.dataLayer=[]),window.dataLayer.push(arguments)}var On=class{constructor({gtmIds:r,log:e}){this.device="web",this.pending=null,this.initGTM=()=>{if(!(typeof window<"u"&&!!this.gtmIds.length))return;const i=q(Ce);if(i){const a=J(i);this.setCookieConsent({type:"default",data:a})}else{const o=new URLSearchParams(window.location.search).has("_gl"),s={analytics_storage:o?"granted":"denied",ad_storage:o?"granted":"denied",ad_user_data:o?"granted":"denied",ad_personalization:o?"granted":"denied",date:new Date().toISOString()};o&&de(Ce,JSON.stringify(s)),this.setCookieConsent({type:"default",data:s})}const n=this.gtmIds.filter(a=>!!a.trim());n.length&&(this.pending=[],Dr(()=>this.loadContainers(n)))},this.loadContainers=t=>{for(const n of t)n&&(ze({id:n,target:"head",snippet:`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
17                    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
18                    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
19                    'https://www.googletagmanager.com/gtm.js?id='
19+i+dl;f.parentNode.insertBefore(j,f);
20                    })(window,document,'script','dataLayer','${n}');`}),ze({id:`${n}_noscript`,type:"noscript",snippet:`<iframe src="https://www.googletagmanager.com/ns.html?id=${n}" height="0" width="0" style="display:none;visibility:hidden"></iframe>`}));const i=this.pending;this.pending=null,i==null||i.forEach(n=>{var a;return(a=window.dataLayer)==null?void 0:a.push(n)})},this.setDevice=t=>{this.device=t},this.setCookieConsent=({type:t,data:i})=>{const n=re(U({},i),{date:void 0});delete n.date,Kr("consent",t,n)},this.pageView=()=>{},this.signupEvent=t=>P(this,[t],function*({method:i,user:n}){const a=yield be(n);this.pushToDataLayer({event:"signup",method:i,user_data:{data:[a]}})}),this.loginEvent=t=>P(this,[t],function*({method:i,user:n,subscriptions:a}){const o=yield be(n,a);this.pushToDataLayer({event:"login",method:i,user_data:{data:[o]}})}),this.setUser=t=>{this.pushToDataLayer({user_data:{data:[re(U({},t),{access_token:""})]}})},this.logoutEvent=()=>{this.pushToDataLayer({event:"logout"})},this.viewItemEvent=t=>P(this,null,function*(){const i=q(oe)||"",n=J(i),a=At(t);this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:"view_item",ecommerce:a,user_data:{data:[n]},booking_type:t.booking_type})}),this.viewItemListEvent=({events:t,listId:i="",listName:n=""})=>{this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:"view_item_list",ecommerce:{item_list_id:i,item_list_name:n,items:t.map(a=>({item_id:a._id,item_name:a.title,item_category:a.category||"N/A",country:a.country||""}))}})},this.generateLeadEvent=t=>{this.pushToDataLayer({event:"generate_lead",currency:t.currency,value:t.event_start_price,slug:t.slug,name:t.title,booking_type:t.booking_type})},this.viewItemBook=t=>{var i;const n=q(oe)||"",a=J(n),o=At(t);this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:"view_item_book",ecommerce:o,booking_type:(i=t.event)==null?void 0:i.contentful_entity_type,user_data:{data:[a]}})},this.cartEvent=t=>{var i;const n=Xt(t);this.pushToDataLayer({ecommerce:null});const a=t.type==="add"?"add_to_cart":"remove_from_cart";this.pushToDataLayer({event:a,ecommerce:n.order,user_data:{data:[n.userData]},booking_type:(i=t.event)==null?void 0:i.booking_type})},this.viewSummaryEvent=t=>{var i;const n=ce(t);this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:"add_payment_info",ecommerce:n.order,user_data:{data:[n.userData]},booking_type:(i=t.event)==null?void 0:i.booking_type})},this.ticketsSummaryEvent=()=>{},this.paymentSummaryEvent=()=>{},this.beginCheckout=t=>{var i;const n=ce(t);this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:t.checkout_event_name||"begin_checkout",ecommerce:n.order,payment_method:t.payment_method,user_data:{data:[n.userData]},booking_type:(i=t.event)==null?void 0:i.booking_type})},this.purchaseEvent=t=>P(this,null,function*(){const i=Ke(t);this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:"purchase",ecommerce:i.order,user_data:{data:[i.userData]},booking_type:t.contentful_entity_type}),ve(ae)}),this.purchaseSubscriptionEvent=t=>{const i=Qe(t);this.pushToDataLayer({ecommerce:null}),this.pushToDataLayer({event:"purchase",ecommerce:i.order,user_data:{data:[i.userData]},booking_type:"subscription"}),ve(ae)},this.purchaseFailed=t=>{const i=t==null?void 0:t.reason;this.pushToDataLayer({event:"purchase_failed",reason:i,booking_type:(t==null?void 0:t.booking_type)||""})},this.shareEvent=({method:t,id:i,contentType:n})=>{this.pushToDataLayer({event:"share",method:t,id:i,content_type:n})},this.registerInterestEvent=t=>{this.pushToDataLayer(U({event:"notify_me"},t))},this.newsletterEvent=t=>{this.pushToDataLayer(U({event:"subscribe_newsletter"},t))},this.trackEvent=t=>{this.pushToDataLayer(U({event:t.event},t.data))},this.clearCart=()=>{},this.pushToDataLayer=t=>{if(typeof window<"u"){const i=window==null?void 0:window.dataLayer;if(i){const n=re(U({},t),{device:this.device});this.pending?this.pending.push(n):i.push(n),this.log&&console.log("Pushed to dataLayer:",t)}}},this.gtmIds=r,this.log=!!e,this.initGTM()}},Pn=()=>{const{showConsent:r,setCookieConsent:e}=Wt(),t=a=>{de(Ce,JSON.stringify(a)),e({type:"update",data:a})};return{showConsent:r,acceptConsent:a=>{const o={analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",date:new Date().toISOString()};typeof a>"u"?(o.analytics_storage="granted",o.ad_storage="granted",o.ad_user_data="granted",o.ad_personalization="granted"):(o.analytics_storage=a.analytics_storage,o.ad_storage=a.ad_storage,o.ad_user_data=a.ad_user_data,o.ad_personalization=a.ad_personalization),t(o)},rejectConsent:()=>{const a={analytics_storage:"denied",ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",date:new Date().toISOString()};t(a)}}},Qr=function(){function r(){}return r.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:Jr(),platform:"Web",os:void 0,deviceModel:void 0}},r}(),Jr=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},$r=function(){function r(){this.queue=[]}return r.prototype.logEvent=function(e){this.receiver?this.receiver(e):this.queue.length<512&&this.queue.push(e)},r.prototype.setEventReceiver=function(e){this.receiver=e,this.queue.length>0&&(this.queue.forEach(function(t){e(t)}),this.queue=[])},r}(),le=function(){return le=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},le.apply(this,arguments)};function Fe(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Tt(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}var Be=function(r,e){var t,i,n=["string","number","boolean","undefined"],a=typeof r,o=typeof e;if(a!==o)return!1;try{for(var s=Fe(n),u=s.next();!u.done;u=s.next()){var l=u.value;if(l===a)return r===e}}catch(_){t={error:_}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}if(r==null&&e==null)return!0;
vendor: 23,687 bytes, line 20
20if(r==null||e==null||r.length!==e.length)return!1;var d=Array.isArray(r),p=Array.isArray(e);if(d!==p)return!1;if(d&&p){for(var c=0;c<r.length;c++)if(!Be(r[c],e[c]))return!1}else{var v=Object.keys(r).sort(),f=Object.keys(e).sort();if(!Be(v,f))return!1;var h=!0;return Object.keys(r).forEach(function(_){Be(r[_],e[_])||(h=!1)}),h}return!0},Xr="$set",Yr="$unset",Zr="$clearAll";Object.entries||(Object.entries=function(r){for(var e=Object.keys(r),t=e.length,i=new Array(t);t--;)i[t]=[e[t],r[e[t]]];return i});var ei=function(){function r(){this.identity={userProperties:{}},this.listeners=new Set}return r.prototype.editIdentity=function(){var e=this,t=le({},this.identity.userProperties),i=le(le({},this.identity),{userProperties:t});return{setUserId:function(n){return i.userId=n,this},setDeviceId:function(n){return i.deviceId=n,this},setUserProperties:function(n){return i.userProperties=n,this},setOptOut:function(n){return i.optOut=n,this},updateUserProperties:function(n){var a,o,s,u,l,d,p=i.userProperties||{};try{for(var c=Fe(Object.entries(n)),v=c.next();!v.done;v=c.next()){var f=Tt(v.value,2),h=f[0],_=f[1];switch(h){case Xr:try{for(var E=(s=void 0,Fe(Object.entries(_))),k=E.next();!k.done;k=E.next()){var m=Tt(k.value,2),w=m[0],D=m[1];p[w]=D}}catch(S){s={error:S}}finally{try{k&&!k.done&&(u=E.return)&&u.call(E)}finally{if(s)throw s.error}}break;case Yr:try{for(var A=(l=void 0,Fe(Object.keys(_))),x=A.next();!x.done;x=A.next()){var w=x.value;delete p[w]}}catch(S){l={error:S}}finally{try{x&&!x.done&&(d=A.return)&&d.call(A)}finally{if(l)throw l.error}}break;case Zr:p={};break}}}catch(S){a={error:S}}finally{try{v&&!v.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}return i.userProperties=p,this},commit:function(){return e.setIdentity(i),this}}},r.prototype.getIdentity=function(){return le({},this.identity)},r.prototype.setIdentity=function(e){var t=le({},this.identity);this.identity=le({},e),Be(t,this.identity)||this.listeners.forEach(function(i){i(e)})},r.prototype.addIdentityListener=function(e){this.listeners.add(e)},r.prototype.removeIdentityListener=function(e){this.listeners.delete(e)},r}(),Ae=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,tr=function(){function r(){this.identityStore=new ei,this.eventBridge=new $r,this.applicationContextProvider=new Qr}return r.getInstance=function(e){return Ae.analyticsConnectorInstances||(Ae.analyticsConnectorInstances={}),Ae.analyticsConnectorInstances[e]||(Ae.analyticsConnectorInstances[e]=new r),Ae.analyticsConnectorInstances[e]},r}(),it=function(r,e){return it=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},it(r,e)};function rr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");it(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var ue=function(){return ue=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ue.apply(this,arguments)};function ir(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(d){try{l(i.next(d))}catch(p){o(p)}}function u(d){try{l(i.throw(d))}catch(p){o(p)}}function l(d){d.done?a(d.value):n(d.value).then(s,u)}l((i=i.apply(r,[])).next())})}function nr(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(d){return u([l,d])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(d){l=[6,d],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function X(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function dt(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function ft(r,e,t){if(arguments.length===2)for(var i=0,n=e.length,a;i<n;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return r.concat(a||Array.prototype.slice.call(e))}var y={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},ti=function(r){for(var e=[],t=0,i=0;i<r.length;i++){var n=r.charCodeAt(i);n<128?e[t++]=n:n<2048?(e[t++]=n>>6|192,e[t++]=n&63|128):(n&64512)==55296&&i+1<r.length&&(r.charCodeAt(i+1)&64512)==56320?(n=65536+((n&1023)<<10)+(r.charCodeAt(++i)&1023),e[t++]=n>>18|240,e[t++]=n>>12&63|128,e[t++]=n>>6&63|128,e[t++]=n&63|128):(e[t++]=n>>12|224,e[t++]=n>>6&63|128,e[t++]=n&63|128)}return Uint8Array.from(e)},Ve=-862048943,je=461845907,He=15,ri=13,ii=5,ni=-430675100,ai=function(r,e){e===void 0&&(e=0);for(var t=ti(r),i=t.length,n=i>>2,a=e,o=0;o<n;o++){var s=o<<2,u=li(t,s);a=oi(u,a)}var l=n<<2,d=0;switch(i-l){case 3:d^=t[l+2]<<16,d^=t[l+1]<<8,d^=t[l],d=Math.imul(d,Ve),d=Ie(d,He),d=Math.imul(d,je),a^=d;break;case 2:d^=t[l+1]<<8,d^=t[l],d=Math.imul(d,Ve),d=Ie(d,He),d=Math.imul(d,je),a^=d;break;case 1:d^=t[l],d=Math.imul(d,Ve),d=Ie(d,He),d=Math.imul(d,je),a^=d;break}return a^=i,si(a)>>>0},oi=function(r,e){var t=r,i=e;return t=Math.imul(t,Ve),t=Ie(t,He),t=Math.imul(t,je),i^=t,i=Ie(i,ri),i=Math.imul(i,ii),i+ni|0},si=function(r){var e=r;return e^=e>>>16,e=Math.imul(e,-2048144789),e^=e>>>13,e=Math.imul(e,-1028477387),e^=e>>>16,e},Ie=function(r,e,t){t===void 0&&(t=32),e>t&&(e=e%t);var i=4294967295<<t-e>>>0,n=(r&i)>>>0>>>t-e>>>0;return(r<<e|n)>>>0},li=function(r,e){e===void 0&&(e=0);var t=r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3];return ui(t)},ui=function(r){return(r&-16777216)>>>24|(r&16711680)>>>8|(r&65280)<<8|(r&255)<<24},It=function(r,e){var t,i;if(!(!e||e.length===0)){try{for(var n=X(e),a=n.next();!a.done;a=n.next()){var o=a.value;if(!o||!r||typeof r!="object")return;r=r[o]}}catch(s){t={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}if(r!=null)return r}},ci="(\\d+)\\.(\\d+)",di="(\\d+)",fi="(-(([-\\w]+\\.?)*))?",hi="^".concat(ci,"(\\.").concat(di).concat(fi,")?$"),vi=function(){function r(e,t,i,n){n===void 0&&(n=void 0),this.major=e,this.minor=t,this.patch=i,this.preRelease=n}return r.parse=function(e){if(e){var t=new RegExp(hi).exec(e);if(t){var i=Number(t[1]),n=Number(t[2]);if(!(isNaN(i)||isNaN(n))){var a=Number(t[4])||0,o=t[5]||void 0;return new r(i,n,a,o)}}}},r.prototype.compareTo=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch||this.preRelease&&!e.preRelease?-1:!this.preRelease&&e.preRelease?1:this.preRelease&&e.preRelease?this.preRelease>e.preRelease?1:this.preRelease<e.preRelease?-1:0:0},r}(),pi=function(){function r(){}return r.prototype.evaluate=function(e,t){var i,n,a={},o={context:e,result:a};try{for(var s=X(t),u=s.next();!u.done;u=s.next()){var l=u.value,d=this.evaluateFlag(o,l);d&&(a[l.key]=d)}}catch(p){i={error:p}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return a},r.prototype.evaluateFlag=function(e,t){var i,n,a;try{for(var o=X(t.segments),s=o.next();!s.done;s=o.next()){var u=s.value;if(a=this.evaluateSegment(e,t,u),a){var l=ue(ue(ue({},t.metadata),u.metadata),a.metadata);a=ue(ue({},a),{metadata:l});break}}}catch(d){i={error:d}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},r.prototype.evaluateSegment=function(e,t,i){if(!i.conditions){var n=this.bucket(e,i);return n!==void 0?t.variants[n]:void 0}var a=this.evaluateConditions(e,i.conditions);if(a){var n=this.bucket(e,i);return n!==void 0?t.variants[n]:void 0}},r.prototype.evaluateConditions=function(e,t){var i,n,a,o;try{for(var s=X(t),u=s.next();!u.done;u=s.next()){var l=u.value,d=!0;try{for(var p=(a=void 0,X(l)),c=p.next();!c.done;c=p.next()){var v=c.value;if(d=this.matchCondition(e,v),!d)break}}catch(f){a={error:f}}finally{try{c&&!c.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}if(d)return!0}}catch(f){i={error:f}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return!1},r.prototype.matchCondition=function(e,t){var i=It(e,t.selector);if(i==null)return this.matchNull(t.op,t.values);if(this.isSetOperator(t.op)){var n=this.coerceStringArray(i);return n?this.matchSet(n,t.op,t.values):!1}else{var a=this.coerceString(i);return a!==void 0?this.matchString(a,t.op,t.values):!1}},r.prototype.getHash=function(e){return ai(e)},r.prototype.bucket=function(e,t){var i,n,a,o;if(!t.bucket)return t.variant;var s=this.coerceString(It(e,t.bucket.selector));if(!s||s.length===0)return t.variant;var u="".concat(t.bucket.salt,"/").concat(s),l=this.getHash(u),d=l%100,p=Math.floor(l/100);try{for(var c=X(t.bucket.allocations),v=c.next();!v.done;v=c.next()){var f=v.value,h=f.range[0],_=f.range[1];if(d>=h&&d<_)try{for(var E=(a=void 0,X(f.distributions)),k=E.next();!k.done;k=E.next()){var m=k.value,w=m.range[0],D=m.range[1];if(p>=w&&p<D)return m.variant}}catch(A){a={error:A}}finally{try{k&&!k.done&&(o=E.return)&&o.call(E)}finally{if(a)throw a.error}}}}catch(A){i={error:A}}finally{try{v&&!v.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return t.variant},r.prototype.matchNull=function(e,t){var i=this.containsNone(t);switch(e){case y.IS:case y.CONTAINS:case y.LESS_THAN:case y.LESS_THAN_EQUALS:case y.GREATER_THAN:case y.GREATER_THAN_EQUALS:case y.VERSION_LESS_THAN:case y.VERSION_LESS_THAN_EQUALS:case y.VERSION_GREATER_THAN:case y.VERSION_GREATER_THAN_EQUALS:case y.SET_IS:case y.SET_CONTAINS:case y.SET_CONTAINS_ANY:return i;case y.IS_NOT:case y.DOES_NOT_CONTAIN:case y.SET_DOES_NOT_CONTAIN:case y.SET_DOES_NOT_CONTAIN_ANY:return!i;default:return!1}},r.prototype.matchSet=function(e,t,i){switch(t){case y.SET_IS:return this.setEquals(e,i);case y.SET_IS_NOT:return!this.setEquals(e,i);case y.SET_CONTAINS:return this.matchesSetContainsAll(e,i);case y.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(e,i);case y.SET_CONTAINS_ANY:return this.matchesSetContainsAny(e,i);case y.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(e,i);default:return!1}},r.prototype.matchString=function(e,t,i){var n=this;switch(t){case y.IS:return this.matchesIs(e,i);case y.IS_NOT:return!this.matchesIs(e,i);case y.CONTAINS:return this.matchesContains(e,i);case y.DOES_NOT_CONTAIN:return!this.matchesContains(e,i);case y.LESS_THAN:case y.LESS_THAN_EQUALS:case y.GREATER_THAN:case y.GREATER_THAN_EQUALS:return this.matchesComparable(e,t,i,function(a){return n.parseNumber(a)},this.comparator);case y.VERSION_LESS_THAN:case y.VERSION_LESS_THAN_EQUALS:case y.VERSION_GREATER_THAN:case y.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(e,t,i,function(a){return vi.parse(a)},this.versionComparator);case y.REGEX_MATCH:return this.matchesRegex(e,i);case y.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(e,i);default:return!1}},r.prototype.matchesIs=function(e,t){if(this.containsBooleans(t)){var i=e.toLowerCase();if(i==="true"||i==="false")return t.some(function(n){return n.toLowerCase()===i})}return t.some(function(n){return e===n})},r.prototype.matchesContains=function(e,t){var i,n;try{for(var a=X(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(e.toLowerCase().includes(s.toLowerCase()))return!0}}catch(u){i={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1},r.prototype.matchesComparable=function(e,t,i,n,a){var o=this,s=n(e),u=i.map(function(l){return n(l)}).filter(function(l){return l!==void 0});return s===void 0||u.length===0?i.some(function(l){return o.comparator(e,t,l)}):u.some(function(l){return a(s,t,l)})},r.prototype.comparator=function(e,t,i){switch(t){case y.LESS_THAN:case y.VERSION_LESS_THAN:return e<i;case y.LESS_THAN_EQUALS:case y.VERSION_LESS_THAN_EQUALS:return e<=i;case y.GREATER_THAN:case y.VERSION_GREATER_THAN:return e>i;case y.GREATER_THAN_EQUALS:case y.VERSION_GREATER_THAN_EQUALS:return e>=i;default:return!1}},r.prototype.versionComparator=function(e,t,i){var n=e.compareTo(i);switch(t){case y.LESS_THAN:case y.VERSION_LESS_THAN:return n<0;case y.LESS_THAN_EQUALS:case y.VERSION_LESS_THAN_EQUALS:return n<=0;case y.GREATER_THAN:case y.VERSION_GREATER_THAN:return n>0;case y.GREATER_THAN_EQUALS:case y.VERSION_GREATER_THAN_EQUALS:return n>=0;default:return!1}},r.prototype.matchesRegex=function(e,t){return t.some(function(i){return!!new RegExp(i).exec(e)})},r.prototype.containsNone=function(e){return e.some(function(t){return t==="(none)"})},r.prototype.containsBooleans=function(e){return e.some(function(t){switch(t.toLowerCase()){case"true":case"false":return!0;default:return!1}})},r.prototype.parseNumber=function(e){var t;return(t=Number(e))!==null&&t!==void 0?t:void 0},r.prototype.coerceString=function(e){if(e!=null)return typeof e=="object"?JSON.stringify(e):String(e)},r.prototype.coerceStringArray=function(e){var t=this;if(Array.isArray(e)){var i=e;return i.map(function(s){return t.coerceString(s)}).filter(Boolean)}var n=String(e);try{var a=JSON.parse(n);if(Array.isArray(a)){var i=e;return i.map(function(u){return t.coerceString(u)}).filter(Boolean)}else{var o=this.coerceString(n);return o?[o]:void 0}}catch{var o=this.coerceString(n);return o?[o]:void 0}},r.prototype.isSetOperator=function(e){switch(e){case y.SET_IS:case y.SET_IS_NOT:case y.SET_CONTAINS:case y.SET_DOES_NOT_CONTAIN:case y.SET_CONTAINS_ANY:case y.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},r.prototype.setEquals=function(e,t){var i=new Set(e),n=new Set(t);return i.size===n.size&&ft([],dt(n),!1).every(function(a){return i.has(a)})},r.prototype.matchesSetContainsAll=function(e,t){var i,n;if(e.length<t.length)return!1;try{for(var a=X(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(!this.matchesIs(s,e))return!1}}catch(u){i={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!0},r.prototype.matchesSetContainsAny=function(e,t){var i,n;try{for(var a=X(t),o=a.next();!o.done;o=a.next()){var s=o.value;if(this.matchesIs(s,e))return!0}}catch(u){i={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return!1},r}(),_i=function(r,e){var t,i,n=ue({},r),a=[],o=e||Object.keys(n);try{for(var s=X(o),u=s.next();!u.done;u=s.next()){var l=u.value,d=ar(l,n);d&&a.push.apply(a,ft([],dt(d),!1))}}catch(p){t={error:p}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}return a},ar=function(r,e,t){var i,n;t===void 0&&(t=[]);var a=e[r];if(a){if(!a.dependencies||a.dependencies.length===0)return delete e[a.key],[a]}else return;t.push(a.key);var o=[],s=function(p){if(t.some(function(v){return v===p}))throw Error("Detected a cycle between flags ".concat(t));var c=ar(p,e,t);c&&o.push.apply(o,ft([],dt(c),!1))};try{for(var u=X(a.dependencies),l=u.next();!l.done;l=u.next()){var d=l.value;s(d)}}catch(p){i={error:p}}finally{try{l&&!l.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}return o.push(a),t.pop(),delete e[a.key],o};const or="3.7.7",gi=or,we=typeof Buffer=="function",Ct=typeof TextDecoder=="function"?new TextDecoder:void 0,Ot=typeof TextEncoder=="function"?new TextEncoder:void 0,yi="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Te=Array.prototype.slice.call(yi),Ue=(r=>{let e={};return r.forEach((t,i)=>e[t]=i),e})(Te),mi=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,z=String.fromCharCode.bind(String),Pt=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):r=>new Uint8Array(Array.prototype.slice.call(r,0)),sr=r=>r.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),lr=r=>r.replace(/[^A-Za-z0-9\+\/]/g,""),ur=r=>{let e,t,i,n,a="";const o=r.length%3;for(let s=0;s<r.length;){if((t=r.charCodeAt(s++))>255||(i=r.charCodeAt(s++))>255||(n=r.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=t<<16|i<<8|n,a+=Te[e>>18&63]+Te[e>>12&63]+Te[e>>6&63]+Te[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},ht=typeof btoa=="function"?r=>btoa(r):we?r=>Buffer.from(r,"binary").toString("base64"):ur,nt=we?r=>Buffer.from(r).toString("base64"):r=>{let t=[];for(let i=0,n=r.length;i<n;i+=4096)t.push(z.apply(null,r.subarray(i,i+4096)));return ht(t.join(""))},qe=(r,e=!1)=>e?sr(nt(r)):nt(r),bi=r=>{if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?z(192|e>>>6)+z(128|e&63):z(224|e>>>12&15)+z(128|e>>>6&63)+z(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return z(240|e>>>18&7)+z(128|e>>>12&63)+z(128|e>>>6&63)+z(128|e&63)}},wi=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,cr=r=>r.replace(wi,bi),Nt=we?r=>Buffer.from(r,"utf8").toString("base64"):Ot?r=>nt(Ot.encode(r)):r=>ht(cr(r)),me=(r,e=!1)=>e?sr(Nt(r)):Nt(r),Rt=r=>me(r,!0),Si=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Ei=r=>{switch(r.length){case 4:var e=(7&r.charCodeAt(0))<<18|(63&r.charCodeAt(1))<<12|(63&r.charCodeAt(2))<<6|63&r.charCodeAt(3),t=e-65536;return z((t>>>10)+55296)+z((t&1023)+56320);case 3:return z((15&r.charCodeAt(0))<<12|(63&r.charCodeAt(1))<<6|63&r.charCodeAt(2));default:return z((31&r.charCodeAt(0))<<6|63&r.charCodeAt(1))}},dr=r=>r.replace(Si,Ei),fr=r=>{if(r=r.replace(/\s+/g,""),!mi.test(r))throw new TypeError("malformed base64.");r+="==".slice(2-(r.length&3));let e,t="",i,n;for(let a=0;a<r.length;)e=Ue[r.charAt(a++)]<<18|Ue[r.charAt(a++)]<<12|(i=Ue[r.charAt(a++)])<<6|(n=Ue[r.charAt(a++)]),t+=i===64?z(e>>16&255):n===64?z(e>>16&255,e>>8&255):z(e>>16&255,e>>8&255,e&255);return t},vt=typeof atob=="function"?r=>atob(lr(r)):we?r=>Buffer.from(r,"base64").toString("binary"):fr,hr=we?r=>Pt(Buffer.from(r,"base64")):r=>Pt(vt(r).split("").map(e=>e.charCodeAt(0))),vr=r=>hr(pr(r)),ki=we?r=>Buffer.from(r,"base64").toString("utf8"):Ct?r=>Ct.decode(hr(r)):r=>dr(vt(r)),pr=r=>lr(r.replace(/[-_]/g,e=>e=="-"?"+":"/")),at=r=>ki(pr(r)),xi=r=>{if(typeof r!="string")return!1;const e=r.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},_r=r=>({value:r,enumerable:!1,writable:!0,configurable:!0}),gr=function(){const r=(e,t)=>Object.defineProperty(String.prototype,e,_r(t));r("fromBase64",function(){return at(this)}),r("toBase64",function(e){return me(this,e)}),r("toBase64URI",function(){return me(this,!0)}),r("toBase64URL",function(){return me(this,!0)}),r("toUint8Array",function(){return vr(this)})},yr=function(){const r=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,_r(t));r("toBase64",function(e){return qe(this,e)}),r("toBase64URI",function(){return qe(this,!0)}),r("toBase64URL",function(){return qe(this,!0)})},Ai=()=>{gr(),yr()},ot={version:or,VERSION:gi,atob:vt,atobPolyfill:fr,btoa:ht,btoaPolyfill:ur,fromBase64:at,toBase64:me,encode:me,encodeURI:Rt,encodeURL:Rt,utob:cr,btou:dr,decode:at,isValid:xi,fromUint8Array:qe,toUint8Array:vr,extendString:gr,extendUint8Array:yr,extendBuiltins:Ai};var mr=function(r){rr(e,r);function e(t,i){var n=r.call(this,i)||this;return n.statusCode=t,Object.setPrototypeOf(n,e.prototype),n}return e}(Error),st=function(r){rr(e,r);function e(t){var i=r.call(this,t)||this;return Object.setPrototypeOf(i,e.prototype),i}return e}(Error),Ti=function(){function r(e,t,i){this.deploymentKey=e,this.serverUrl=t,this.httpClient=i}return r.prototype.getVariants=function(e,t){return ir(this,void 0,void 0,function(){var i,n,a,o;return nr(this,function(s){switch(s.label){case 0:return i=ot.encodeURL(JSON.stringify(e)),n={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":i},t!=null&&t.flagKeys&&(n["X-Amp-Exp-Flag-Keys"]=ot.encodeURL(JSON.stringify(t.flagKeys))),t!=null&&t.trackingOption&&(n["X-Amp-Exp-Track"]=t.trackingOption),t!=null&&t.exposureTrackingOption&&(n["X-Amp-Exp-Exposure-Track"]=t.exposureTrackingOption),a=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),t!=null&&t.evaluationMode&&a.searchParams.append("eval_mode",t==null?void 0:t.evaluationMode),t!=null&&t.deliveryMethod&&a.searchParams.append("delivery_method",t==null?void 0:t.deliveryMethod),[4,this.httpClient.request({requestUrl:a.toString(),method:"GET",headers:n,timeoutMillis:t==null?void 0:t.timeoutMillis})];case 1:if(o=s.sent(),o.status!=200)throw new mr(o.status,"Fetch error response: status=".concat(o.status));return[2,JSON.parse(o.body)]}})})},r}(),Ii=function(){function r(e,t,i){this.deploymentKey=e,this.serverUrl=t,this.httpClient=i}return r.prototype.getFlags=function(e){return ir(this,void 0,void 0,function(){var t,i,n;return nr(this,function(a){switch(a.label){case 0:return t={Authorization:"Api-Key ".concat(this.deploymentKey)},e!=null&&e.libraryName&&(e!=null&&e.libraryVersion)&&(t["X-Amp-Exp-Library"]="".concat(e.libraryName,"/").concat(e.libraryVersion)),e!=null&&e.user&&(t["X-Amp-Exp-User"]=ot.encodeURL(JSON.stringify(e.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+(e!=null&&e.deliveryMethod?"?delivery_method=".concat(e.deliveryMethod):""),method:"GET",headers:t,timeoutMillis:e==null?void 0:e.timeoutMillis})];case 1:if(i=a.sent(),i.status!=200)throw Error("Flags error response: status=".concat(i.status));return n=JSON.parse(i.body),[2,n.reduce(function(o,s){return o[s.key]=s,o},{})]}})})},r}(),B=typeof globalThis<"u"?globalThis:global||self,pe=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},Ci=function(){var r=pe();if(r)try{var e="EXP_test";return r.localStorage.setItem(e,e),r.localStorage.removeItem(e),!0}catch{return!1}return!1},Oi=function(){function r(e,t){this.poller=void 0,this.action=e,this.ms=t}return r.prototype.start=function(){this.poller||(this.poller=B.setInterval(this.action,this.ms),this.action())},r.prototype.stop=function(){this.poller&&(B.clearInterval(this.poller),this.poller=void 0)},r}(),lt={exports:{}};(function(r,e){(function(t,i){var n="0.7.33",a="",o="?",s="function",u="undefined",l="object",d="str
20ing",p="major",c="model",v="name",f="type",h="vendor",_="version",E="architecture",k="console",m="mobile",w="tablet",D="smarttv",A="wearable",x="embedded",S=350,W="Amazon",F="Apple",he="ASUS",Oe="BlackBerry",se="Browser",g="Chrome",b="Edge",$="Firefox",K="Google",_e="Huawei",Se="LG",$e="Microsoft",_t="Motorola",Pe="Opera",Xe="Samsung",gt="Sharp",Ne="Sony",Ye="Xiaomi",Ze="Zebra",yt="Facebook",Tr=function(T,N){var I={};for(var M in T)N[M]&&N[M].length%2===0?I[M]=N[M].concat(T[M]):I[M]=T[M];return I},Re=function(T){for(var N={},I=0;I<T.length;I++)N[T[I].toUpperCase()]=T[I];return N},mt=function(T,N){return typeof T===d?Ee(N).indexOf(Ee(T))!==-1:!1},Ee=function(T){return T.toLowerCase()},Ir=function(T){return typeof T===d?T.replace(/[^\d\.]/g,a).split(".")[0]:i},et=function(T,N){if(typeof T===d)return T=T.replace(/^\s\s*/,a),typeof N===u?T:T.substring(0,S)},ke=function(T,N){for(var I=0,M,C,Le,L,xe,ie;I<N.length&&!xe;){var St=N[I],Et=N[I+1];for(M=C=0;M<St.length&&!xe;)if(xe=St[M++].exec(T),xe)for(Le=0;Le<Et.length;Le++)ie=xe[++C],L=Et[Le],typeof L===l&&L.length>0?L.length===2?typeof L[1]==s?this[L[0]]=L[1].call(this,ie):this[L[0]]=L[1]:L.length===3?typeof L[1]===s&&!(L[1].exec&&L[1].test)?this[L[0]]=ie?L[1].call(this,ie,L[2]):i:this[L[0]]=ie?ie.replace(L[1],L[2]):i:L.length===4&&(this[L[0]]=ie?L[3].call(this,ie.replace(L[1],L[2])):i):this[L]=ie||i;I+=2}},tt=function(T,N){for(var I in N)if(typeof N[I]===l&&N[I].length>0){for(var M=0;M<N[I].length;M++)if(mt(N[I][M],T))return I===o?i:I}else if(mt(N[I],T))return I===o?i:I;return T},Cr={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},bt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},wt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[_,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[_,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,_],[/opios[\/ ]+([\w\.]+)/i],[_,[v,Pe+" Mini"]],[/\bopr\/([\w\.]+)/i],[_,[v,Pe]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[v,_],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[_,[v,"UC"+se]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[_,[v,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[_,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[_,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[_,[v,"IE"]],[/yabrowser\/([\w\.]+)/i],[_,[v,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+se],_],[/\bfocus\/([\w\.]+)/i],[_,[v,$+" Focus"]],[/\bopt\/([\w\.]+)/i],[_,[v,Pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[_,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[_,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[_,[v,Pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[_,[v,"MIUI "+se]],[/fxios\/([-\w\.]+)/i],[_,[v,$]],[/\bqihu|(qi?ho?o?|360)browser/i],[[v,"360 "+se]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 "+se],_],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],_],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[v,_],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,yt],_],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[v,_],[/\bgsa\/([\w\.]+) .*safari\//i],[_,[v,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[_,[v,g+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,g+" WebView"],_],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[_,[v,"Android "+se]],[/(chrome|omniweb|arora|[t
vendor: 4,769 bytes, line 20
20izenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,_],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[_,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[_,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[_,tt,Cr]],[/(webkit|khtml)\/([\w\.]+)/i],[v,_],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],_],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[_,[v,$+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[v,_],[/(cobalt)\/([\w\.]+)/i],[v,[_,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[E,"amd64"]],[/(ia32(?=;))/i],[[E,Ee]],[/((?:i[346]|x)86)[;\)]/i],[[E,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[E,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[E,"armhf"]],[/windows (ce|mobile); ppc;/i],[[E,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[E,/ower/,a,Ee]],[/(sun4\w)[;\)]/i],[[E,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[E,Ee]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,Xe],[f,w]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,Xe],[f,m]],[/((ipod|iphone)\d+,\d+)/i],[c,[h,F],[f,m]],[/(ipad\d+,\d+)/i],[c,[h,F],[f,w]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[h,F],[f,m]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,F],[f,w]],[/(macintosh);/i],[c,[h,F]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,_e],[f,w]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,_e],[f,m]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[h,Ye],[f,m]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,Ye],[f,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[f,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[f,m]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[f,m]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,_t],[f,m]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,_t],[f,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,Se],[f,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,Se],[f,m]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[f,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[f,m]],[/(pixel c)\b/i],[c,[h,K],[f,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,K],[f,m]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,Ne],[f,m]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,Ne],[f,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[f,m]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,W],[f,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[h,W],[f,m]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[f,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,Oe],[f,m]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,he],[f,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,he],[f,m]],[/(nexus 9)/i],[c,[h,"HTC"],[f,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[f,m]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[f,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[f,m]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,gt],[f,m]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 5,509 bytes, line 20
20s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[f,m]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[f,w]],[/(surface duo)/i],[c,[h,$e],[f,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[f,m]],[/(u304aa)/i],[c,[h,"AT&T"],[f,m]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[f,m]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[f,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[f,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[f,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[f,w]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[f,w]],[/\b(k88) b/i],[c,[h,"ZTE"],[f,w]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[f,m]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[f,m]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[f,w]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[f,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[f,w]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[f,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[f,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[f,m]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[f,m]],[/\b(ph-1) /i],[c,[h,"Essential"],[f,m]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[f,w]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[f,w]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[f,w]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[f,w]],[/(sprint) (\w+)/i],[h,c,[f,m]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,$e],[f,m]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,Ze],[f,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,Ze],[f,m]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[f,k]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[f,k]],[/(playstation [345portablevi]+)/i],[c,[h,Ne],[f,k]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,$e],[f,k]],[/smart-tv.+(samsung)/i],[h,[f,D]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,Xe],[f,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,Se],[f,D]],[/(apple) ?tv/i],[h,[c,F+" TV"],[f,D]],[/crkey/i],[[c,g+"cast"],[h,K],[f,D]],[/droid.+aft(\w)( bui|\))/i],[c,[h,W],[f,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,gt],[f,D]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,Ne],[f,D]],[/(mitv-\w{5}) bui/i],[c,[h,Ye],[f,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[h,et],[c,et],[f,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,D]],[/((pebble))app/i],[h,c,[f,A]],[/droid.+; (glass) \d/i],[c,[h,K],[f,A]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,Ze],[f,A]],[/(quest( 2)?)/i],[c,[h,yt],[f,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[f,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[f,m]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,m]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[_,[v,b+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[_,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[v,_],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[_,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,_],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[v,[_,tt,bt]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,"Windows"],[_,tt,bt]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[_,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"Mac OS"],[_,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[_,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,_],[/\(bb(10);/i],[_,[v,Oe]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[_,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[_,[v,$+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[_,[v,"webOS"]],[/crkey\/([\d\.]+)/i],[_,[v,g+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[v,"Chromium OS"],_],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,_],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],_],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[v,_]]},Z=function(T,N){if(typeof T===l&&(N=T,T=i),!(this instanceof Z))return new Z(T,
vendor: 9,789 bytes, line 20
20N).getResult();var I=T||(typeof t!==u&&t.navigator&&t.navigator.userAgent?t.navigator.userAgent:a),M=N?Tr(wt,N):wt;return this.getBrowser=function(){var C={};return C[v]=i,C[_]=i,ke.call(C,I,M.browser),C.major=Ir(C.version),C},this.getCPU=function(){var C={};return C[E]=i,ke.call(C,I,M.cpu),C},this.getDevice=function(){var C={};return C[h]=i,C[c]=i,C[f]=i,ke.call(C,I,M.device),C},this.getEngine=function(){var C={};return C[v]=i,C[_]=i,ke.call(C,I,M.engine),C},this.getOS=function(){var C={};return C[v]=i,C[_]=i,ke.call(C,I,M.os),C},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return I},this.setUA=function(C){return I=typeof C===d&&C.length>S?et(C,S):C,this},this.setUA(I),this};Z.VERSION=n,Z.BROWSER=Re([v,_,p]),Z.CPU=Re([E]),Z.DEVICE=Re([c,h,f,k,m,D,w,A,x]),Z.ENGINE=Z.OS=Re([v,_]),r.exports&&(e=r.exports=Z),e.UAParser=Z;var ge=typeof t!==u&&(t.jQuery||t.Zepto);if(ge&&!ge.ua){var De=new Z;ge.ua=De.getResult(),ge.ua.get=function(){return De.getUA()},ge.ua.set=function(T){De.setUA(T);var N=De.getResult();for(var I in N)ge.ua[I]=N[I]}}})(typeof window=="object"?window:Or)})(lt,lt.exports);var Pi=lt.exports,O=function(){return O=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},O.apply(this,arguments)};function j(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(d){try{l(i.next(d))}catch(p){o(p)}}function u(d){try{l(i.throw(d))}catch(p){o(p)}}function l(d){d.done?a(d.value):n(d.value).then(s,u)}l((i=i.apply(r,e||[])).next())})}function H(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(d){return u([l,d])}}function u(l){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(d){l=[6,d],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function fe(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function G(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function Y(r,e,t){if(arguments.length===2)for(var i=0,n=e.length,a;i<n;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return r.concat(a||Array.prototype.slice.call(e))}var Dt=function(r,e){var t,i;e===void 0&&(e=!1);var n=pt(r,e),a=void 0,o=B.document.cookie.split("; ");try{for(var s=fe(o),u=s.next();!u.done;u=s.next()){var l=u.value,d=G(l.split("=",2),2),p=d[0],c=d[1];p===n&&(a=decodeURIComponent(c))}}catch(_){t={error:_}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(t)throw t.error}}if(a)try{if(e){var v=atob(a);return JSON.parse(decodeURIComponent(v))}var f=a.split("."),h=void 0;return f.length>=2&&f[1]&&(h=atob(f[1])),{deviceId:f[0],userId:h}}catch{return}},Ni=function(r){var e=pt(r,!0);try{var t=B.localStorage.getItem(e);if(!t)return;var i=JSON.parse(t);return typeof i!="object"?void 0:i}catch{return}},Ri=function(r){var e=pt(r,!0);try{var t=B.sessionStorage.getItem(e);if(!t)return;var i=JSON.parse(t);return typeof i!="object"?void 0:i}catch{return}},pt=function(r,e){if(e)return(r==null?void 0:r.length)<10?void 0:"AMP_".concat(r.substring(0,10));if(!((r==null?void 0:r.length)<6))return"amp_".concat(r.substring(0,6))},Di=function(){function r(e,t,i){this.type="integration",this.apiKey=e,this.identityStore=t.identityStore,this.eventBridge=t.eventBridge,this.contextProvider=t.applicationContextProvider,this.timeoutMillis=i,this.loadPersistedState(),i<=0&&(this.setup=void 0)}return r.prototype.setup=function(e,t){return j(this,void 0,void 0,function(){return H(this,function(i){return e!=null&&e.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){t==null||t.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},r.prototype.getUser=function(){var e=this.identityStore.getIdentity();return{user_id:e.userId,device_id:e.deviceId,user_properties:e.userProperties,version:this.contextProvider.versionName}},r.prototype.track=function(e){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:e.eventType,eventProperties:e.eventProperties}),!0):!1},r.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var e=Dt(this.apiKey,!0);return e?(this.commitIdentityToConnector(e),!0):(e=Dt(this.apiKey,!1),e?(this.commitIdentityToConnector(e),!0):(e=Ni(this.apiKey),e?(this.commitIdentityToConnector(e),!0):(e=Ri(this.apiKey),e?(this.commitIdentityToConnector(e),!0):!1)))},r.prototype.commitIdentityToConnector=function(e){var t=this.identityStore.editIdentity();t.setDeviceId(e.deviceId),e.userId&&t.setUserId(e.userId),t.commit()},r.prototype.waitForConnectorIdentity=function(e){return j(this,void 0,void 0,function(){var t,i=this;return H(this,function(n){return t=this.identityStore.getIdentity(),!t.userId&&!t.deviceId?[2,Promise.race([new Promise(function(a){var o=function(){a(),i.identityStore.removeIdentityListener(o)};i.identityStore.addIdentityListener(o)}),new Promise(function(a,o){B.setTimeout(o,e,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},r}();function Li(r,e){return e=e||{},new Promise(function(t,i){var n=new XMLHttpRequest,a=[],o=[],s={},u=function(){return{ok:(n.status/100|0)==2,statusText:n.statusText,status:n.status,url:n.responseURL,text:function(){return Promise.resolve(n.responseText)},json:function(){return Promise.resolve(JSON.parse(n.responseText))},blob:function(){return Promise.resolve(new Blob([n.response]))},clone:u,headers:{keys:function(){return a},entries:function(){return o},get:function(d){return s[d.toLowerCase()]},has:function(d){return d.toLowerCase()in s}}}};for(var l in n.open(e.method||"get",r,!0),n.onload=function(){n.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(d,p,c){a.push(p=p.toLowerCase()),o.push([p,c]),s[p]=s[p]?s[p]+","+c:c}),t(u())},n.onerror=i,n.withCredentials=e.credentials=="include",e.headers)n.setRequestHeader(l,e.headers[l]);n.send(e.body||null)})}var Ui=B.fetch||Li,Mi=function(r,e){return e==null||e<=0?r:new Promise(function(t,i){B.setTimeout(function(){i(new st("Request timeout after "+e+" milliseconds"))},e),r.then(t,i)})},Fi=function(r,e,t,i,n){var a=function(){return j(void 0,void 0,void 0,function(){var o,s,u;return H(this,function(l){switch(l.label){case 0:return[4,Ui(r,{method:e,headers:t,body:i})];case 1:return o=l.sent(),u={status:o.status},[4,o.text()];case 2:return s=(u.body=l.sent(),u),[2,s]}})})};return Mi(a(),n)},Bi=function(){function r(e){this.client=e}return r.prototype.request=function(e){return j(this,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return[4,this.client.request(e.requestUrl,e.method,e.headers,null,e.timeoutMillis)];case 1:return[2,t.sent()]}})})},r}(),br={request:Fi},te;(function(r){r[r.Disable=0]="Disable",r[r.Error=1]="Error",r[r.Warn=2]="Warn",r[r.Info=3]="Info",r[r.Debug=4]="Debug",r[r.Verbose=5]="Verbose"})(te||(te={}));var ne;(function(r){r.LocalStorage="localStorage",r.InitialVariants="initialVariants"})(ne||(ne={}));var V;(function(r){r.LocalStorage="storage",r.InitialVariants="initial",r.SecondaryLocalStorage="secondary-storage",r.SecondaryInitialVariants="secondary-initial",r.FallbackInline="fallback-inline",r.FallbackConfig="fallback-config",r.LocalEvaluation="local-evaluation"})(V||(V={}));var Lt=function(r){return!r||r===V.FallbackInline||r===V.FallbackConfig||r===V.SecondaryInitialVariants},ye={debug:!1,logLevel:te.Error,loggerProvider:null,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:ne.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:br},Ut="1.20.4",Vi=512,ji=function(){function r(e,t){var i=this,n;this.isReady=new Promise(function(o){i.resolve=o}),this.config=e,this.client=t;var a=(n=e.instanceName)!==null&&n!==void 0?n:ye.instanceName;this.queue=new qi(a),this.cache=new Hi(a)}return r.prototype.ready=function(){return this.integration?this.isReady:Prom
vendor: 15,941 bytes, line 20
20ise.resolve()},r.prototype.setIntegration=function(e){var t=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=e,e.setup?this.integration.setup(this.config,this.client).then(function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()},function(){t.queue.setTracker(t.integration.track.bind(e)),t.resolve()}):(this.queue.setTracker(this.integration.track.bind(e)),this.resolve())},r.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},r.prototype.track=function(e,t){if(this.cache.shouldTrack(e,t)){var i=this.getExposureEvent(e);this.queue.push(i)}},r.prototype.getExposureEvent=function(e){var t,i,n,a={eventType:"$exposure",eventProperties:e};return!((t=e.metadata)===null||t===void 0)&&t.exposureEvent?a={eventType:(i=e.metadata)===null||i===void 0?void 0:i.exposureEvent,eventProperties:e}:((n=e.metadata)===null||n===void 0?void 0:n.deliveryMethod)==="web"&&(a={eventType:"$impression",eventProperties:e}),a},r}(),Hi=function(){function r(e){this.isSessionStorageAvailable=zi(),this.inMemoryCache={},this.identity={},this.storageKey="EXP_sent_v3_".concat(e),this.isSessionStorageAvailable&&(B.sessionStorage.removeItem("EXP_sent_".concat(e)),B.sessionStorage.removeItem("EXP_sent_v2_".concat(e)))}return r.prototype.shouldTrack=function(e,t){var i,n;if(((i=e.metadata)===null||i===void 0?void 0:i.deliveryMethod)==="web")return!0;var a={userId:t==null?void 0:t.user_id,deviceId:t==null?void 0:t.device_id};this.identityEquals(this.identity,a)||this.clearCache(),this.identity=a,this.loadCache();var o=e.flag_key in this.inMemoryCache,s=this.inMemoryCache[e.flag_key],u=(n=e.variant)!==null&&n!==void 0?n:null,l=s??null,d=!1;return(!o||l!==u)&&(d=!0,this.inMemoryCache[e.flag_key]=u),this.storeCache(),d},r.prototype.clearCache=function(){this.inMemoryCache={},this.isSessionStorageAvailable&&B.sessionStorage.removeItem(this.storageKey)},r.prototype.identityEquals=function(e,t){return e.userId&&t.userId?e.userId===t.userId:!e.userId&&!t.userId?e.deviceId===t.deviceId:!1},r.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var e=B.sessionStorage.getItem(this.storageKey);this.inMemoryCache=e?JSON.parse(e):{}}},r.prototype.storeCache=function(){if(this.isSessionStorageAvailable)try{B.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))}catch{}},r}(),qi=function(){function r(e,t){t===void 0&&(t=Vi),this.isLocalStorageAvailable=Ci(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(e),this.maxQueueSize=t}return r.prototype.push=function(e){this.loadQueue(),this.inMemoryQueue.push(e),this.flush(),this.storeQueue()},r.prototype.setTracker=function(e){var t=this;this.tracker=e,this.poller=B.setInterval(function(){t.loadFlushStore()},1e3),this.loadFlushStore()},r.prototype.flush=function(){if(this.tracker&&this.inMemoryQueue.length!==0){for(var e=0;e<this.inMemoryQueue.length;e++)try{if(!this.tracker(this.inMemoryQueue[e]))break}catch{break}this.inMemoryQueue=this.inMemoryQueue.slice(e),this.inMemoryQueue.length===0&&this.poller&&(B.clearInterval(this.poller),this.poller=void 0)}},r.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var e=B.localStorage.getItem(this.storageKey);this.inMemoryQueue=e?JSON.parse(e):[]}},r.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),B.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},r.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},r}(),zi=function(){var r=pe();if(r)try{var e="EXP_test";return r.sessionStorage.setItem(e,e),r.sessionStorage.removeItem(e),!0}catch{return!1}return!1},Gi=function(){function r(e,t){t===void 0&&(t=te.Error),this.logger=e,this.logLevel=t}return r.prototype.error=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=te.Error&&(t=this.logger).error.apply(t,Y([e],G(i),!1))},r.prototype.warn=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=te.Warn&&(t=this.logger).warn.apply(t,Y([e],G(i),!1))},r.prototype.info=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=te.Info&&(t=this.logger).info.apply(t,Y([e],G(i),!1))},r.prototype.debug=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=te.Debug&&(t=this.logger).debug.apply(t,Y([e],G(i),!1))},r.prototype.verbose=function(e){for(var t,i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];this.logLevel>=te.Verbose&&(t=this.logger).verbose.apply(t,Y([e],G(i),!1))},r}(),Wi=function(){function r(){}return r.prototype.error=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.error.apply(console,Y([e],G(t),!1))},r.prototype.warn=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.warn.apply(console,Y([e],G(t),!1))},r.prototype.info=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.info.apply(console,Y([e],G(t),!1))},r.prototype.debug=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.debug.apply(console,Y([e],G(t),!1))},r.prototype.verbose=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];console.debug.apply(console,Y([e],G(t),!1))},r}(),Je=function(){function r(){this.globalScope=pe()}return r.prototype.get=function(e){var t;return(t=this.globalScope)===null||t===void 0?void 0:t.localStorage.getItem(e)},r.prototype.put=function(e,t){var i;(i=this.globalScope)===null||i===void 0||i.localStorage.setItem(e,t)},r.prototype.delete=function(e){var t;(t=this.globalScope)===null||t===void 0||t.localStorage.removeItem(e)},r}(),Ki=function(r,e,t){var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i);return new wr(n,t,Sr)},Qi=function(r,e,t){t===void 0&&(t=new Je);var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i,"-flags");return new wr(n,t)},Ji=function(r,e,t){t===void 0&&(t=new Je);var i=r.substring(r.length-6),n="amp-exp-".concat(e,"-").concat(i,"-variants-options");return new $i(n,t)},$i=function(){function r(e,t){this.namespace=e,this.storage=t}return r.prototype.get=function(){return this.value},r.prototype.put=function(e){this.value=e},r.prototype.load=function(){var e=this.storage.get(this.namespace);e&&(this.value=JSON.parse(e))},r.prototype.store=function(){this.value===void 0?this.storage.delete(this.namespace):this.storage.put(this.namespace,JSON.stringify(this.value))},r}(),wr=function(){function r(e,t,i){this.cache={},this.namespace=e,this.storage=t,this.transformer=i}return r.prototype.get=function(e){return this.cache[e]},r.prototype.getAll=function(){return O({},this.cache)},r.prototype.put=function(e,t){this.cache[e]=t},r.prototype.putAll=function(e){var t,i;try{for(var n=fe(Object.keys(e)),a=n.next();!a.done;a=n.next()){var o=a.value;this.cache[o]=e[o]}}catch(s){t={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}},r.prototype.remove=function(e){delete this.cache[e]},r.prototype.clear=function(){this.cache={}},r.prototype.load=function(){var e,t,i=this.storage.get(this.namespace),n;try{n=JSON.parse(i)||{}}catch{return}var a={};try{for(var o=fe(Object.keys(n)),s=o.next();!s.done;s=o.next()){var u=s.value;try{var l=void 0;this.transformer?l=this.transformer(n[u]):l=n[u],l&&(a[u]=l)}catch{}}}catch(d){e={error:d}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}this.clear(),this.putAll(a)},r.prototype.store=function(e){e===void 0&&(e=this.cache),this.storage.put(this.namespace,JSON.stringify(e))},r}(),Sr=function(r){if(typeof r=="string")return{key:r,value:r};if(typeof r=="object"){var e=r.key,t=r.value,i=r.payload,n=r.metadata,a=r.expKey;n&&n.experimentKey?a=n.experimentKey:a&&(n=n||{},n.experimentKey=a);var o={};return e?o.key=e:t&&(o.key=t),t&&(o.value=t),n&&(o.metadata=n),i&&(o.payload=i),a&&(o.expKey=a),o}},Er=function(){function r(){this.globalScope=pe()}return r.prototype.get=function(e){var t;return(t=this.globalScope)===null||t===void 0?void 0:t.sessionStorage.getItem(e)},r.prototype.put=function(e,t){var i;(i=this.globalScope)===null||i===void 0||i.sessionStorage.setItem(e,t)},r.prototype.delete=function(e){var t;(t=this.globalScope)===null||t===void 0||t.sessionStorage.removeItem(e)},r}(),Xi=function(r,e,t,i){var n,a="[Experiment] Exposure",o=t==null?void 0:t.value,s="[Experiment] ".concat(e);return{name:a,user:r,key:e,variant:t,userProperty:s,properties:{key:e,variant:o,source:i},userProperties:(n={},n[s]=o,n)}},ee=function(r){return r==null},rt=function(r){return ee(r)?!0:r&&Object.keys(r).length===0},Yi=function(r){var e,t;if(!r||typeof r!="object")return{};var i={};try{for(var n=fe(Object.entries(r)),a=n.next();!a.done;a=n.next()){var o=G(a.value,2),s=o[0],u=o[1];ee(u)||(i[s]=u)}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return i},Mt=function(r){var e;return((e=r==null?void 0:r.metadata)===null||e===void 0?void 0:e.evaluationMode)==="local"},Zi=function(){function r(e,t,i,n){this.started=!1,this.done=!1,this.attempts=e,this.min=t,this.max=i,this.scalar=n}return r.prototype.start=function(e){return j(this,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:if(!this.started)this.started=!0;else throw Error("Backoff already started");return[4,this.backoff(e,0,this.min)];case 1:return t.sent(),[2]}})})},r.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},r.prototype.backoff=function(e,t,i){return j(this,void 0,void 0,function(){var n=this;return H(this,function(a){return this.done?[2]:(this.timeoutHandle=B.setTimeout(function(){return j(n,void 0,void 0,function(){var o,s;return H(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,e()];case 1:return u.sent(),[3,3];case 2:return u.sent(),o=t+1,o<this.attempts&&(s=Math.min(i*this.scalar,this.max),this.backoff(e,o,s)),[3,3];case 3:return[2]}})})},i),[2])})})},r}(),en=function(r){var e,t,i,n;if(!r)return{};var a={user:r},o=pe();o&&(a.page={url:o.location.href});var s={};if(!r.groups)return a;try{for(var u=fe(Object.keys(r.groups)),l=u.next();!l.done;l=u.next()){var d=l.value,p=r.groups[d];if(p.length>0&&p[0]){var c=p[0],v={group_name:c},f=(n=(i=r.group_properties)===null||i===void 0?void 0:i[d])===null||n===void 0?void 0:n[c];f&&Object.keys(f).length>0&&(v.group_properties=f),s[d]=v}}}catch(h){e={error:h}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}return Object.keys(s).length>0&&(a.groups=s),delete a.user.groups,delete a.user.group_properties,a},Q=function(r){return r==null?{}:typeof r=="string"?{key:r,value:r}:r},Ft=function(r){if(!r)return{};var e=void 0;r.metadata&&(e=r.metadata.experimentKey);var t={};return r.key&&(t.key=r.key),r.value&&(t.value=r.value),r.payload&&(t.payload=r.payload),e&&(t.expKey=e),r.metadata&&(t.metadata=r.metadata),t},tn=function(){function r(e){this.setProperties={},this.unsetProperties={},this.analyticsProvider=e}return r.prototype.track=function(e){this.setProperties[e.key]!=e.variant.value&&(this.setProperties[e.key]=e.variant.value,delete this.unsetProperties[e.key],this.analyticsProvider.track(e))},r.prototype.setUserProperty=function(e){this.setProperties[e.key]!=e.variant.value&&this.analyticsProvider.setUserProperty(e)},r.prototype.unsetUserProperty=function(e){this.unsetProperties[e.key]||(this.unsetProperties[e.key]="unset",delete this.setProperties[e.key],this.analyticsProvider.unsetUserProperty(e))},r}(),rn=function(){function r(e){this.tracked={},this.identity={},this.exposureTrackingProvider=e}return r.prototype.track=function(e,t){var i={userId:t==null?void 0:t.user_id,deviceId:t==null?void 0:t.device_id};this.identityEquals(this.identity,i)||(this.tracked={}),this.identity=i;var n=e.flag_key in this.tracked,a=this.tracked[e.flag_key];n&&a===e.variant||(this.tracked[e.flag_key]=e.variant,this.exposureTrackingProvider.track(e))},r.prototype.identityEquals=function(e,t){return e.userId===t.userId&&e.deviceId===t.deviceId},r}(),nn=1e4,an=8,on=500,sn=1e4,ln=1.5,Bt=6e4,un="https://api.lab.eu.amplitude.com",cn="https://flag.lab.eu.amplitude.com",dn=function(){function r(e,t){var i=this,n,a,o,s;this.engine=new pi,this.isRunning=!1,this.apiKey=e,t=Yi(t),this.config=O(O(O({},ye),t),{serverUrl:(t==null?void 0:t.serverUrl)||(((n=t==null?void 0:t.serverZone)===null||n===void 0?void 0:n.toLowerCase())==="eu"?un:ye.serverUrl),flagsServerUrl:(t==null?void 0:t.flagsServerUrl)||(((a=t==null?void 0:t.serverZone)===null||a===void 0?void 0:a.toLowerCase())==="eu"?cn:ye.flagsServerUrl),flagConfigPollingIntervalMillis:t.flagConfigPollingIntervalMillis<Bt?Bt:(o=t.flagConfigPollingIntervalMillis)!==null&&o!==void 0?o:ye.flagConfigPollingIntervalMillis}),this.logger=new Gi(this.config.loggerProvider||new Wi,r.getLogLevel(t));var u=(s=this.config)===null||s===void 0?void 0:s.internalInstanceNameSuffix;if(this.isWebExperiment=u==="web",this.poller=new Oi(function(){return j(i,void 0,void 0,function(){var v;return H(this,function(f){switch(f.label){case 0:return f.trys.push([0,2,,3]),[4,this.doFlags()];case 1:return f.sent(),[3,3];case 2:return v=f.sent(),this.logger.info(v),[3,3];case 3:return[2]}})})},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var l in this.config.initialVariants)this.config.initialVariants[l]=Sr(this.config.initialVariants[l]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new tn(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.userSessionExposureTracker=new rn(this.config.exposureTrackingProvider)),this.integrationManager=new ji(this.config,this);var d=new Bi(this.config.httpClient||br);this.flagApi=new Ii(this.apiKey,this.config.flagsServerUrl,d),this.evaluationApi=new Ti(this.apiKey,this.config.serverUrl,d);var p,c=u?"".concat(this.config.instanceName,"-").concat(u):this.config.instanceName;this.isWebExperiment?p=new Er:p=new Je,this.variants=Ki(this.apiKey,c,p),this.flags=Qi(this.apiKey,c,p),this.fetchVariantsOptions=Ji(this.apiKey,c,p);try{this.flags.load(),this.variants.load(),this.fetchVariantsOptions.load()}catch{}this.mergeInitialFlagsWithStorage()}return r.prototype.start=function(e){return j(this,void 0,void 0,function(){var t,i,n,a;return H(this,function(o){switch(o.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(e),o.label=1;case 1:return o.trys.push([1,6,,7]),t=this.doFlags(),i=(a=this.config.fetchOnStart)!==null&&a!==void 0?a:!0,i?[4,Promise.all([this.fetch(e),t])]:[3,3];case 2:return o.sent(),[3,5];case 3:return[4,t];case 4:o.sent(),o.label=5;case 5:return[3,7];case 6:if(n=o.sent(),this.config.throwOnError)throw n;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},r.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},r.prototype.fetch=function(){return j(this,arguments,void 0,function(e,t){var i;return e===void 0&&(e=this.user),H(this,function(n){switch(n.label){case 0:this.setUser(e||{}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.fetchInternal(e,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,t)];case 2:return n.sent(),[3,4];case 3:if(i=n.sent(),this.config.throwOnError)throw i;return i instanceof st?this.logger.debug(i):this.logger.error(i),[3,4];case 4:return[2,this]}})})},r.prototype.variant=function(e,t){var i,n;if(!this.apiKey)return{value:void 0};var a=this.variantAndSource(e,t);return this.config.automaticExposureTracking&&this.exposureInternal(e,a),this.logger.debug("[Experiment] variant for ".concat(e," is ").concat(((i=a.variant)===null||i===void 0?void 0:i.key)||((n=a.variant)===null||n===void 0?void 0:n.value))),a.variant||{}}
vendor: 10,897 bytes, line 20
20,r.prototype.exposure=function(e){var t=this.variantAndSource(e);this.exposureInternal(e,t)},r.prototype.all=function(){if(!this.apiKey)return{};var e=this.evaluate();for(var t in e){var i=this.flags.get(t);Mt(i)||delete e[t]}return O(O(O({},this.secondaryVariants()),this.sourceVariants()),e)},r.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},r.prototype.getUser=function(){var e;if(!this.user)return this.user;if(!((e=this.user)===null||e===void 0)&&e.user_properties){var t=O({},this.user.user_properties);return O(O({},this.user),{user_properties:t})}else return O({},this.user)},r.prototype.setUser=function(e){var t;if(!e){this.user=null;return}if(!((t=this.user)===null||t===void 0)&&t.user_properties){var i=O({},e.user_properties);this.user=O(O({},e),{user_properties:i})}else this.user=O({},e)},r.prototype.getUserProvider=function(){return this.userProvider},r.prototype.setUserProvider=function(e){return this.userProvider=e,this},r.prototype.mergeInitialFlagsWithStorage=function(){var e=this;if(this.config.initialFlags){var t=JSON.parse(this.config.initialFlags);t.forEach(function(i){e.flags.get(i.key)||e.flags.put(i.key,i)})}},r.prototype.evaluate=function(e){var t,i,n=this.addContext(this.user),a=_i(this.flags.getAll(),e),o=en(n),s=this.engine.evaluate(o,a),u={};try{for(var l=fe(Object.keys(s)),d=l.next();!d.done;d=l.next()){var p=d.value;u[p]=Ft(s[p])}}catch(c){t={error:c}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return u},r.prototype.variantAndSource=function(e,t){var i={};this.config.source===ne.LocalStorage?i=this.localStorageVariantAndSource(e,t):this.config.source===ne.InitialVariants&&(i=this.initialVariantsVariantAndSource(e,t));var n=this.flags.get(e);return(Mt(n)||!i.variant&&n)&&(i=this.localEvaluationVariantAndSource(e,n,t)),i},r.prototype.localEvaluationVariantAndSource=function(e,t,i){var n,a={},o=this.evaluate([t.key])[e],s=V.LocalEvaluation,u=(n=o==null?void 0:o.metadata)===null||n===void 0?void 0:n.default;if(!ee(o)&&!u)return{variant:Q(o),source:s,hasDefaultVariant:!1};if(u&&(a={variant:Q(o),source:s,hasDefaultVariant:!0}),!ee(i))return{variant:Q(i),source:V.FallbackInline,hasDefaultVariant:a.hasDefaultVariant};var l=this.config.initialVariants[e];if(!ee(l))return{variant:Q(l),source:V.SecondaryInitialVariants,hasDefaultVariant:a.hasDefaultVariant};var d=Q(this.config.fallbackVariant),p={variant:d,source:V.FallbackConfig,hasDefaultVariant:a.hasDefaultVariant};return rt(d)?a:p},r.prototype.localStorageVariantAndSource=function(e,t){var i,n={},a=this.variants.get(e),o=(i=a==null?void 0:a.metadata)===null||i===void 0?void 0:i.default;if(!ee(a)&&!o)return{variant:Q(a),source:V.LocalStorage,hasDefaultVariant:!1};if(o&&(n={variant:Q(a),source:V.LocalStorage,hasDefaultVariant:!0}),!ee(t))return{variant:Q(t),source:V.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var s=this.config.initialVariants[e];if(!ee(s))return{variant:Q(s),source:V.SecondaryInitialVariants,hasDefaultVariant:n.hasDefaultVariant};var u=Q(this.config.fallbackVariant),l={variant:u,source:V.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return rt(u)?n:l},r.prototype.initialVariantsVariantAndSource=function(e,t){var i,n={},a=this.config.initialVariants[e];if(!ee(a))return{variant:Q(a),source:V.InitialVariants,hasDefaultVariant:!1};var o=this.variants.get(e),s=(i=o==null?void 0:o.metadata)===null||i===void 0?void 0:i.default;if(!ee(o)&&!s)return{variant:Q(o),source:V.LocalStorage,hasDefaultVariant:!1};if(s&&(n={variant:Q(o),source:V.LocalStorage,hasDefaultVariant:!0}),!ee(t))return{variant:Q(t),source:V.FallbackInline,hasDefaultVariant:n.hasDefaultVariant};var u=Q(this.config.fallbackVariant),l={variant:u,source:V.FallbackConfig,hasDefaultVariant:n.hasDefaultVariant};return rt(u)?n:l},r.prototype.fetchInternal=function(e,t,i,n){return j(this,void 0,void 0,function(){var a,o,s;return H(this,function(u){switch(u.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.logger.debug("[Experiment] Fetch all: retry=".concat(i)),i&&this.stopRetries(),u.label=1;case 1:return u.trys.push([1,4,,5]),[4,this.doFetch(e,t,O({trackingOption:(s=this.fetchVariantsOptions.get())===null||s===void 0?void 0:s.trackingOption},n))];case 2:return a=u.sent(),[4,this.storeVariants(a,n)];case 3:return u.sent(),[2,a];case 4:throw o=u.sent(),i&&this.shouldRetryFetch(o)&&this.startRetries(e,n),o;case 5:return[2]}})})},r.prototype.setTracksAssignment=function(e){return j(this,void 0,void 0,function(){return H(this,function(t){return this.fetchVariantsOptions.put(O(O({},this.fetchVariantsOptions.get()||{}),{trackingOption:e?"track":"no-track"})),this.fetchVariantsOptions.store(),[2]})})},r.prototype.cleanUserPropsForFetch=function(e){var t=O({},e);return delete t.cookie,t},r.prototype.doFetch=function(e,t,i){return j(this,void 0,void 0,function(){var n,a,o,s,u,l,d;return H(this,function(p){switch(p.label){case 0:return[4,this.addContextOrWait(e)];case 1:return e=p.sent(),e=this.cleanUserPropsForFetch(e),this.logger.debug("[Experiment] Fetch variants for user: ",e),[4,this.evaluationApi.getVariants(e,O({timeoutMillis:t},i))];case 2:n=p.sent(),a={};try{for(o=fe(Object.keys(n)),s=o.next();!s.done;s=o.next())u=s.value,a[u]=Ft(n[u])}catch(c){l={error:c}}finally{try{s&&!s.done&&(d=o.return)&&d.call(o)}finally{if(l)throw l.error}}return this.logger.debug("[Experiment] Received variants: ",a),[2,a]}})})},r.prototype.doFlags=function(){return j(this,void 0,void 0,function(){var e,t,i;return H(this,function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),e=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:e=n.sent(),n.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:Ut,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:e!=null&&e.user_id||e!=null&&e.device_id?{user_id:e==null?void 0:e.user_id,device_id:e==null?void 0:e.device_id}:void 0})];case 3:return t=n.sent(),this.flags.clear(),this.flags.putAll(t),[3,5];case 4:if(i=n.sent(),i instanceof st){if(this.logger.debug(i),this.config.throwOnError)throw i}else throw i;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},r.prototype.storeVariants=function(e,t){return j(this,void 0,void 0,function(){var i,n,a,o,o;return H(this,function(s){i=t&&t.flagKeys?t.flagKeys:[],i.length===0&&this.variants.clear(),n=function(u){i=i.filter(function(l){return l!==u}),a.variants.put(u,e[u])},a=this;for(o in e)n(o);for(o in i)this.variants.remove(o);try{this.variants.store()}catch{}return this.logger.debug("[Experiment] Stored variants: ",e),[2]})})},r.prototype.startRetries=function(e,t){return j(this,void 0,void 0,function(){var i=this;return H(this,function(n){return this.logger.debug("[Experiment] Retry fetch"),this.retriesBackoff=new Zi(an,on,sn,ln),this.retriesBackoff.start(function(){return j(i,void 0,void 0,function(){return H(this,function(a){switch(a.label){case 0:return[4,this.fetchInternal(e,nn,!1,t)];case 1:return a.sent(),[2]}})})}),[2]})})},r.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},r.prototype.addContext=function(e){var t,i=(t=this.userProvider)===null||t===void 0?void 0:t.getUser(),n=this.integrationManager.getUser(),a=O(O(O({},i==null?void 0:i.user_properties),n.user_properties),e==null?void 0:e.user_properties);return O(O(O(O({library:"experiment-js-client/".concat(Ut)},i),n),e),{user_properties:a})},r.prototype.addContextOrWait=function(e){return j(this,void 0,void 0,function(){return H(this,function(t){switch(t.label){case 0:return[4,this.integrationManager.ready()];case 1:return t.sent(),[2,this.addContext(e)]}})})},r.prototype.sourceVariants=function(){if(this.config.source==ne.LocalStorage)return this.variants.getAll();if(this.config.source==ne.InitialVariants)return this.config.initialVariants},r.prototype.secondaryVariants=function(){if(this.config.source==ne.LocalStorage)return this.config.initialVariants;if(this.config.source==ne.InitialVariants)return this.variants.getAll()},r.prototype.exposureInternal=function(e,t){var i,n,a,o,s,u,l,d,p,c=(a=(n=(i=t.variant)===null||i===void 0?void 0:i.metadata)===null||n===void 0?void 0:n.trackExposure)!==null&&a!==void 0?a:!0;if(c){this.legacyExposureInternal(e,t.variant,t.source);var v={flag_key:e},f=Lt(t.source);if(!(f&&!t.hasDefaultVariant)){!((o=t.variant)===null||o===void 0)&&o.expKey&&(v.experiment_key=(s=t.variant)===null||s===void 0?void 0:s.expKey);var h=(u=t.variant)===null||u===void 0?void 0:u.metadata;if(!f&&!(h!=null&&h.default)&&(!((l=t.variant)===null||l===void 0)&&l.key?v.variant=t.variant.key:!((d=t.variant)===null||d===void 0)&&d.value&&(v.variant=t.variant.value)),h&&(v.metadata=h),this.isWebExperiment&&(v.time=Date.now()),this.isWebExperiment){var _=pe();if(_!=null&&_.location)try{var E=_.location.href;v.metadata.url=E.split("?")[0]||""}catch{}}var k=this.addContext(this.getUser());(p=this.userSessionExposureTracker)===null||p===void 0||p.track(v,k),this.integrationManager.track(v,k)}}},r.prototype.legacyExposureInternal=function(e,t,i){var n,a,o,s,u;if(this.analyticsProvider){var l=this.addContext(this.getUser()),d=Xi(l,e,t,i);Lt(i)||!(t!=null&&t.value)?(a=(n=this.analyticsProvider)===null||n===void 0?void 0:n.unsetUserProperty)===null||a===void 0||a.call(n,d):t!=null&&t.value&&((s=(o=this.analyticsProvider)===null||o===void 0?void 0:o.setUserProperty)===null||s===void 0||s.call(o,d),(u=this.analyticsProvider)===null||u===void 0||u.track(d))}},r.getLogLevel=function(e){var t;return e.debug===!0?te.Debug:(t=e.logLevel)!==null&&t!==void 0?t:te.Error},r.prototype.shouldRetryFetch=function(e){return e instanceof mr?e.statusCode<400||e.statusCode>=500||e.statusCode===429:!0},r.prototype.addPlugin=function(e){e.type==="integration"&&this.integrationManager.setIntegration(e)},r}(),fn=function(){function r(e,t){var i,n,a;this.globalScope=pe(),this.userAgent=typeof((i=this.globalScope)===null||i===void 0?void 0:i.navigator)<"u"?(n=this.globalScope)===null||n===void 0?void 0:n.navigator.userAgent:void 0,this.ua=new Pi.UAParser(this.userAgent).getResult(),this.localStorage=new Je,this.sessionStorage=new Er,this.userProvider=e,this.apiKey=t,this.storageKey="EXP_".concat((a=this.apiKey)===null||a===void 0?void 0:a.slice(0,10),"_DEFAULT_USER_PROVIDER")}return r.prototype.getUser=function(){var e,t,i,n,a,o=((e=this.userProvider)===null||e===void 0?void 0:e.getUser())||{};return O({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:(i=(t=this.ua.device)===null||t===void 0?void 0:t.type)!==null&&i!==void 0?i:"desktop",referring_url:(a=(n=this.globalScope)===null||n===void 0?void 0:n.document)===null||a===void 0?void 0:a.referrer.replace(/\/$/,""),cookie
20:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},o)},r.prototype.getLanguage=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},r.prototype.getOs=function(e){var t,i;return[(t=e.browser)===null||t===void 0?void 0:t.name,(i=e.browser)===null||i===void 0?void 0:i.major].filter(function(n){return n!=null}).join(" ")},r.prototype.getDeviceModel=function(e){var t;return(t=e.os)===null||t===void 0?void 0:t.name},r.prototype.getBrowser=function(e){var t,i=(t=e.browser)===null||t===void 0?void 0:t.name;return i!=null&&i.includes("Chrom")&&(i="Chrome"),i!=null&&i.includes("Firefox")&&(i="Firefox"),i!=null&&i.includes("Safari")&&(i="Safari"),i!=null&&i.includes("Edge")&&(i="Edge"),i!=null&&i.includes("Opera")&&(i="Opera"),i},r.prototype.getCookie=function(){var e,t,i,n,a;if(!((t=(e=this.globalScope)===null||e===void 0?void 0:e.document)===null||t===void 0)&&t.cookie)return Object.fromEntries((a=(n=(i=this.globalScope)===null||i===void 0?void 0:i.document)===null||n===void 0?void 0:n.cookie)===null||a===void 0?void 0:a.split("; ").map(function(o){return o.split("=")}))},r.prototype.getLandingUrl=function(){var e,t;try{var i=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return i.landing_url||(i.landing_url=(t=(e=this.globalScope)===null||e===void 0?void 0:e.location)===null||t===void 0?void 0:t.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(i))),i.landing_url}catch{return}},r.prototype.getFirstSeen=function(){try{var e=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return e.first_seen||(e.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(e))),e.first_seen}catch{return}},r.prototype.getUrlParam=function(){var e,t,i;if(this.globalScope){var n={};try{var a=new URL(this.globalScope.location.href);try{for(var o=fe(a.searchParams),s=o.next();!s.done;s=o.next()){var u=G(s.value,2),l=u[0],d=u[1];n[l]=Y(Y([],G((i=n[l])!==null&&i!==void 0?i:[]),!1),G(d.split(",")),!1)}}catch(p){e={error:p}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}}catch{return}return Object.entries(n).reduce(function(p,c){var v=G(c,2),f=v[0],h=v[1];return p[f]=h.length==1?h[0]:h,p},{})}},r}();B.experimentInstances={};var Vt=B.experimentInstances,hn=function(r,e){return xr(r,e)},vn=function(r,e){var t=function(){return new Di(r,tr.getInstance(kr(e)),1e4)};return xr(r,e,t)},kr=function(r){return(r==null?void 0:r.instanceName)||ye.instanceName},pn=function(r,e){var t=kr(e),i=e==null?void 0:e.internalInstanceNameSuffix;return i?"".concat(t,".").concat(r,".").concat(i):"".concat(t,".").concat(r)},_n=function(r,e){return new dn(r,O(O({},e),{userProvider:new fn(e==null?void 0:e.userProvider,r)}))},xr=function(r,e,t){var i=pn(r,e),n=Vt[i];return n||(n=_n(r,e),t&&n.addPlugin(t()),Vt[i]=n,n)},gn={initialize:hn,initializeWithAmplitudeAnalytics:vn},ut=null,Me=null,jt="wbk_exp_device_id",yn=()=>{let r=q(jt);return r||(r=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():qt(),de(jt,r)),r},mn=r=>{ut||(tr.getInstance("$default_instance").identityStore.editIdentity().setDeviceId(yn()).commit(),ut=gn.initializeWithAmplitudeAnalytics(r))},Ar=()=>ut,bn=r=>P(null,[r],function*({user_id:e}){const t=Ar();if(t)return Me||(Me=t.fetch({user_id:e??void 0}).catch(i=>{throw Me=null,i})),Me}),Nn=({experimentKey:r,user_id:e})=>{const[t,i]=R.useState(),[n,a]=R.useState(!0);return R.useEffect(()=>{let o=!1;return P(null,null,function*(){var u;try{const l=Ar();if(!l)return;yield bn({user_id:e}),o||i((u=l.variant(r))==null?void 0:u.value)}catch{o||i(void 0)}finally{o||a(!1)}}),()=>{o=!0}},[r,e]),{variant:t,isLoading:n}},wn=({children:r,trackers:e,currentLocation:t,experimentKey:i})=>{const[n]=R.useState(e),[a,o]=R.useState(!1);i&&mn(i),R.useEffect(()=>{const g=er();g&&de("utms",JSON.stringify(g))},[]),R.useEffect(()=>{const g=()=>{const K=Yt();if(!Object.keys(K).length)return!1;const _e=Zt()||{};return de("utms",JSON.stringify(U(U({},_e),K))),!0};if(g())return;const b=[],$=()=>{g()&&b.forEach(K=>window.clearTimeout(K))};for(const K of[1e3,3e3,6e3,1e4])b.push(window.setTimeout($,K));return()=>b.forEach(K=>window.clearTimeout(K))},[t]),R.useEffect(()=>{if(typeof navigator<"u"){const b=!!ct("webview_mode")||!!navigator.userAgent.match(/WBKWebView/i);for(const $ of n)$.setDevice(b?"app":"web")}},[n]),R.useEffect(()=>{if(t)for(const g of n)g.pageView()},[t]),R.useEffect(()=>{const g=q(Ce);if(!g)return o(!0);const b=J(g),$=2*24*60*60*1e3,K=Object.values(b).some(Se=>Se==="denied"),_e=new Date().getTime()-new Date(b.date).getTime()>$;o(K&&_e)},[]);const s=g=>{for(const b of n)b.setCookieConsent(g);o(!1)},u=()=>{for(const g of n)g.pageView()},l=g=>P(null,null,function*(){for(const b of n)b.signupEvent(g),b.setUser(g.user)}),d=g=>P(null,null,function*(){for(const b of n)b.loginEvent(g),b.setUser(g.user)}),p=g=>{for(const b of n)b.setUser(g)},c=()=>{for(const g of n)g.logoutEvent()},v=g=>P(null,null,function*(){for(const b of n)b.viewItemEvent(g)}),f=g=>{for(const b of n)b.viewItemListEvent(g)},h=g=>{for(const b of n)b.registerInterestEvent(g)},_=g=>{for(const b of n)b.generateLeadEvent(g)},E=g=>P(null,null,function*(){for(const b of n)b.viewItemBook(g)}),k=g=>{for(const b of n)b.cartEvent(g)},m=g=>{for(const b of n)b.viewSummaryEvent(g)},w=g=>{for(const b of n)b.ticketsSummaryEvent(g)},D=g=>{for(const b of n)b.paymentSummaryEvent(g)},A=g=>{for(const b of n)b.beginCheckout(g)},x=g=>P(null,null,function*(){for(const b of n)b.purchaseEvent(g)}),S=g=>{for(const b of n)b.purchaseSubscriptionEvent(g)},W=g=>{for(const b of n)b.purchaseFailed(g)},F=g=>{for(const b of n)b.shareEvent(g)},he=g=>{for(const b of n)b.newsletterEvent(g)},Oe=g=>{var b;for(const $ of n)(b=$.trackEvent)==null||b.call($,g)},se=()=>{for(const g of n)g.clearCart()};return Ht.jsx(Gt.Provider,{value:{showConsent:a,setCookieConsent:s,signupEvent:l,loginEvent:d,logoutEvent:c,setUser:p,viewItemEvent:v,viewItemListEvent:f,generateLeadEvent:_,viewItemBook:E,cartEvent:k,viewSummaryEvent:m,ticketsSummaryEvent:w,paymentSummaryEvent:D,beginCheckout:A,purchaseEvent:x,purchaseSubscriptionEvent:S,purchaseFailed:W,shareEvent:F,newsletterEvent:he,registerInterestEvent:h,pageView:u,trackEvent:Oe,clearCart:se},children:r})},Rn=wn;export{On as G,An as M,Tn as P,In as R,Cn as W,kn as a,Nn as b,Pn as c,xn as d,Rn as p,Wt as u};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.