1import{d as u,n as p,a as h,$ as y,e as d,t as f,i as _,f as O,b as w,c as B,l,g as j,h as C,T,j as k,r as M,o as E,k as N,m as $,p as A,B as D}from"./boot.CeMMhjyN.js";const S=(e,s)=>{s?l("ERROR",e,s):l("ERROR",e),D.captureMessage(e,"error",s),d.send("log",s?`${e} ${B(s)}`:e)};if(u.ios){if(p("itunesReceipt",(e,s,o)=>{const t=window.onApplePayResult;window.onApplePayResult=void 0,s?h(()=>{var n;(h.peek(()=>{var a;return(a=y.user)==null?void 0:a.id})||(n=y.user)!=null&&n.id)&&(t==null||t({status:"pending"}),d.send("Apple.redeemReceipt",e,s,o,()=>{f("shop_finish",o),t==null||t({status:"paid"})}))}):t==null||t({err:"Onbekend probleem met iTunes betaling."})}),p("rpcKill",[d,d.stop]),u.app<3){const e=Object.entries(_).filter(([,s])=>s.type==="credits").map(([s])=>s);f("shop_init",e,[]),p("updateViewport",()=>{})}else{const e=Object.keys(_);f("shop_init",e)}if(u.iosMemberships){const e=[5e3,3e4,12e4];let s=0;const o=()=>{let t=!1;const n=e[s++],a=s>=e.length,P=(i,r,c)=>{A.value="failed";const g=`Apple.shop_getProducts: ${i} (attempt ${s})`+(a?", giving up":", retrying");a?S(g,c):s===1&&(c?l(g,c):l(g),d.send("log",g)),a||setTimeout(o,r)};f("shop_getProducts",(i,r)=>{var g,R;if(r!=null){if(!t){t=!0;const[m,v]=r.split(", invalid ids: ",2);P(`store error: ${m}`,n,v?{invalidIds:v}:void 0)}return}t=!0;for(const m in i)(g=i[m])!=null&&g.price&&(i[m].fromStore=!0);const c=Object.keys(_).filter(m=>{var v;return!((v=i==null?void 0:i[m])!=null&&v.fromStore)});c.length&&S(`Apple.shop_getProducts: no store price for ${c.join(", ")}`),i&&((R=$).value??(R.value={}),h.merge($.value,i)),A.value=c.length<Object.keys(_).length?"ok":"failed"}),setTimeout(()=>{t||(t=!0,P(`no answer after ${n}ms`,0))},n)};o()}}else if(u.android&&(p("diagnosticData",e=>{if(!h.peek(()=>{var o;return(o=y.user)==null?void 0:o.id}))return;const s=O(e);s.clientEnterToSend=w.enterToSend,d.send("Client.submitAndroidDiagnostics",B(s))}),p("setAppActive",e=>{l("Set appActive to",e),j.value=e}),u.app>=3&&(f("notify_createChannels",JSON.stringify(C)),p("setNightMode",e=>{T.setNightMode(e)})),u.playBill)){const e={};window.playBillBuy=(s,o)=>{const t=h.peek(()=>{var a;return(a=y.user)==null?void 0:a.id});if(!t){o==null||o({status:"failed",err:"Not logged in"});return}const n=t+":"+Math.random().toString(36).slice(2);e[n]=o,f("shop_buy",n,s)},p("shop_onPurchase",(s,o,t,n)=>{if(l("shop_onPurchase",s,o,t,n),t){const a=s.split(":"),P=a[0]?parseInt(a[0],10):void 0;if(!P){l("shop_onPurchase: no userId in uniqueId, cannot process");const r=e[s];r==null||r({status:"failed",err:"Invalid purchase token"}),delete e[s];return}const i=e[s];i==null||i({status:"pending"}),d.send("PlayBill.redeemReceipt",o,t,P,r=>{r?(l("PlayBill.redeemReceipt error:",r),i==null||i({status:"failed",err:r})):(l("PlayBill.redeemReceipt success"),i==null||i({status:"paid"})),delete e[s]})}else{l("Purchase failed for",s,":",n);const a=e[s];a==null||a({status:"failed",err:n}),delete e[s]}}),p("shop_onProducts",(s,o)=>{l("shop_onProducts",s,o),s?k.value=s:(d.send("log","PlayBill.shop_onProducts error: "+o),u.playBill=void 0)}),f("shop_getProducts",Object.keys(k.value||{}).join(","))}p("log",e=>{d.send("log",e)});p("appVersion",e=>{l("appVersion",e)});p("cloneCookieAuth",(e,s)=>{d.send("Client.cloneCookieAuth",e,!!s)});p("openPage",e=>{if(e=e.replace(/^[a-z]+:\/\/[^\/]+/,""),e[0]==="/"&&(e=e.slice(1)),l("openPage",e),e.length){const s=e.split("/");s.unsafe=!0,M(s)}});f("paiq_start");h(()=>{(h.peek(()=>y.ready)||y.ready)&&E(()=>{f("paiq_setSplash",!1)})});u.app>=3&&f("paiq_setMainColour",N); 2;(function(g,u){(g._paiqDebugIds=g._paiqDebugIds||{})[u]="da0ede1f-e78b-4735-bd0f-1d796bb11cdf"})(globalThis,import.meta.url); 3//# sourceMappingURL=appInit.CGfbmQR3.js.map
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.