@playpilot/tpi 8.14.0-beta.2 → 8.14.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editorial.mount.js +3 -3
- package/dist/link-injections.js +1 -1
- package/dist/mount.js +2 -2
- package/package.json +1 -1
- package/src/lib/api/titles.ts +1 -1
- package/src/routes/components/Debugger.svelte +2 -2
- package/src/routes/components/Explore/ExploreRouter.svelte +1 -4
- package/src/routes/components/Modals/RailModal.svelte +0 -2
- package/src/tests/lib/api/titles.test.js +1 -1
package/dist/mount.js
CHANGED
|
@@ -2,9 +2,9 @@ var bg=Object.defineProperty;var us=Te=>{throw TypeError(Te)};var wg=(Te,Ee,qe)=
|
|
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(Te);const Ee=!1;var qe=Array.isArray,Wa=Array.prototype.indexOf,Br=Array.from,ms=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,Yn=Object.getOwnPropertyDescriptors,ys=Object.prototype,bs=Array.prototype,Fr=Object.getPrototypeOf,Jn=Object.isExtensible;function Ui(t){return typeof t=="function"}const vt=()=>{};function ws(t){return typeof(t==null?void 0:t.then)=="function"}function xs(t){return t()}function Hr(t){for(var e=0;e<t.length;e++)t[e]()}function Qn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Vr(t,e,i=!1){return t===void 0?i?e():e:t}function Wi(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Ke=2,Ur=4,Ga=8,Xn=1<<24,Mt=16,Jt=32,Ei=64,Ka=128,xt=512,$e=1024,lt=2048,Qt=4096,dt=8192,Xt=16384,Za=32768,Dt=65536,$n=1<<17,el=1<<18,Gi=1<<19,tl=1<<20,ma=32768,Wr=1<<21,Gr=1<<22,vi=1<<23,qt=Symbol("$state"),il=Symbol("legacy props"),_s=Symbol(""),Ki=new class extends Error{constructor(){super(...arguments);Lt(this,"name","StaleReactionError");Lt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Kr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ks(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ss(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ts(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Es(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ps(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Cs(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function zs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Is(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function js(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function As(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const al=1,rl=2,nl=4,Ls=8,Ms=16,Ds=1,qs=2,Rs=4,Ns=8,Os=16,Bs=1,Fs=2,Hs=4,Vs=1,Us=2,We=Symbol(),Ws="http://www.w3.org/1999/xhtml",Gs="http://www.w3.org/2000/svg",Ks="@attach";function Zs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Ys(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ll(t){return t===this.v}function ol(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function sl(t){return!ol(t,this.v)}let Zi=!1,Js=!1;function Qs(){Zi=!0}let ke=null;function Yi(t){ke=t}function Ya(t){return cl().get(t)}function Ja(t,e){return cl().set(t,e),e}function ee(t,e=!1,i){ke={p:ke,i:!1,c:null,e:null,s:t,x:null,l:Zi&&!e?{s:null,u:null,$:[]}:null}}function te(t){var e=ke,i=e.e;if(i!==null){e.e=null;for(var a of i)Al(a)}return t!==void 0&&(e.x=t),e.i=!0,ke=e.p,t??{}}function Pi(){return!Zi||ke!==null&&ke.l===null}function cl(t){return ke===null&&Kr(),ke.c??(ke.c=new Map(Xs(ke)||void 0))}function Xs(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Ci=[];function dl(){var t=Ci;Ci=[],Hr(t)}function $t(t){if(Ci.length===0&&!Qi){var e=Ci;queueMicrotask(()=>{e===Ci&&dl()})}Ci.push(t)}function $s(){for(;Ci.length>0;)dl()}function ul(t){var e=we;if(e===null)return ye.f|=vi,t;if(e.f&Za)Ji(t,e);else{if(!(e.f&Ka))throw t;e.b.error(t)}}function Ji(t,e){for(;e!==null;){if(e.f&Ka)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Qa=new Set;let ge=null,Xa=null,Ne=null,ft=[],$a=null,Zr=!1,Qi=!1;const jr=class jr{constructor(){ve(this,Ve);Lt(this,"committed",!1);Lt(this,"current",new Map);Lt(this,"previous",new Map);ve(this,da,new Set);ve(this,ua,new Set);ve(this,Ri,0);ve(this,Ni,0);ve(this,Na,null);ve(this,pa,[]);ve(this,va,[]);Lt(this,"skipped_effects",new Set);Lt(this,"is_fork",!1)}is_deferred(){return this.is_fork||D(this,Ni)>0}process(e){var a;ft=[],Xa=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)Ce(this,Ve,Wn).call(this,r,i);this.is_fork||Ce(this,Ve,ps).call(this),this.is_deferred()?(Ce(this,Ve,Vi).call(this,i.effects),Ce(this,Ve,Vi).call(this,i.render_effects),Ce(this,Ve,Vi).call(this,i.block_effects)):(Xa=this,ge=null,fl(i.render_effects),fl(i.effects),Xa=null,(a=D(this,Na))==null||a.resolve()),Ne=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&vi||(this.current.set(e,e.v),Ne==null||Ne.set(e,e.v))}activate(){ge=this,this.apply()}deactivate(){ge===this&&(ge=null,Ne=null)}flush(){if(this.activate(),ft.length>0){if(vl(),ge!==null&&ge!==this)return}else D(this,Ri)===0&&this.process([]);this.deactivate()}discard(){for(const e of D(this,ua))e(this);D(this,ua).clear()}increment(e){ce(this,Ri,D(this,Ri)+1),e&&ce(this,Ni,D(this,Ni)+1)}decrement(e){ce(this,Ri,D(this,Ri)-1),e&&ce(this,Ni,D(this,Ni)-1),this.revive()}revive(){for(const e of D(this,pa))et(e,lt),zi(e);for(const e of D(this,va))et(e,Qt),zi(e);ce(this,pa,[]),ce(this,va,[]),this.flush()}oncommit(e){D(this,da).add(e)}ondiscard(e){D(this,ua).add(e)}settled(){return(D(this,Na)??ce(this,Na,Qn())).promise}static ensure(){if(ge===null){const e=ge=new jr;Qa.add(ge),Qi||jr.enqueue(()=>{ge===e&&e.flush()})}return ge}static enqueue(e){$t(e)}apply(){}};da=new WeakMap,ua=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,Na=new WeakMap,pa=new WeakMap,va=new WeakMap,Ve=new WeakSet,Wn=function(e,i){var u;e.f^=$e;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Jt|Ei))!==0,l=n&&(r&$e)!==0,s=l||(r&dt)!==0||this.skipped_effects.has(a);if(a.f&Ka&&((u=a.b)!=null&&u.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!s&&a.fn!==null){n?a.f^=$e:r&Ur?i.effects.push(a):Sa(a)&&(a.f&Mt&&i.block_effects.push(a),Ta(a));var c=a.first;if(c!==null){a=c;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(Ce(this,Ve,Vi).call(this,i.effects),Ce(this,Ve,Vi).call(this,i.render_effects),Ce(this,Ve,Vi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Vi=function(e){for(const i of e)(i.f<?D(this,pa):D(this,va)).push(i),Ce(this,Ve,Gn).call(this,i.deps),et(i,$e)},Gn=function(e){if(e!==null)for(const i of e)!(i.f&Ke)||!(i.f&ma)||(i.f^=ma,Ce(this,Ve,Gn).call(this,i.deps))},ps=function(){if(D(this,Ni)===0){for(const e of D(this,da))e();D(this,da).clear()}D(this,Ri)===0&&Ce(this,Ve,vs).call(this)},vs=function(){var n;if(Qa.size>1){this.previous.clear();var e=Ne,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Qa){if(l===this){i=!1;continue}const s=[];for(const[d,u]of this.current){if(l.current.has(d))if(i&&u!==l.current.get(d))l.current.set(d,u);else continue;s.push(d)}if(s.length===0)continue;const c=[...l.current.keys()].filter(d=>!this.current.has(d));if(c.length>0){var r=ft;ft=[];const d=new Set,u=new Map;for(const p of s)hl(p,c,d,u);if(ft.length>0){ge=l,l.apply();for(const p of ft)Ce(n=l,Ve,Wn).call(n,p,a);l.deactivate()}ft=r}}ge=null,Ne=e}this.committed=!0,Qa.delete(this)};let Rt=jr;function pl(t){var e=Qi;Qi=!0;try{for(var i;;){if($s(),ft.length===0&&(ge==null||ge.flush(),ft.length===0))return $a=null,i;vl()}}finally{Qi=e}}function vl(){var t=mi;Zr=!0;var e=null;try{var i=0;for(ir(!0);ft.length>0;){var a=Rt.ensure();if(i++>1e3){var r,n;ec()}a.process(ft),fi.clear()}}finally{Zr=!1,ir(t),$a=null}}function ec(){try{Ps()}catch(t){Ji(t,$a)}}let _t=null;function fl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Xt|dt))&&Sa(a)&&(_t=new Set,Ta(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?ql(a):a.fn=null),(_t==null?void 0:_t.size)>0)){fi.clear();for(const r of _t){if(r.f&(Xt|dt))continue;const n=[r];let l=r.parent;for(;l!==null;)_t.has(l)&&(_t.delete(l),n.push(l)),l=l.parent;for(let s=n.length-1;s>=0;s--){const c=n[s];c.f&(Xt|dt)||Ta(c)}}_t.clear()}}_t=null}}function hl(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ke?hl(r,e,i,a):n&(Gr|Mt)&&!(n<)&&gl(r,e,a)&&(et(r,lt),zi(r))}}function gl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ke&&gl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function zi(t){for(var e=$a=t;e.parent!==null;){e=e.parent;var i=e.f;if(Zr&&e===we&&i&Mt&&!(i&el))return;if(i&(Ei|Jt)){if(!(i&$e))return;e.f^=$e}}ft.push(e)}function ml(t){let e=0,i=Ot(0),a;return()=>{xa()&&(o(i),tr(()=>(e===0&&(a=Vt(()=>t(()=>hi(i)))),e+=1,()=>{$t(()=>{e-=1,e===0&&(a==null||a(),a=void 0,hi(i))})})))}}var tc=Dt|Gi|Ka;function ic(t,e,i){new ac(t,e,i)}class ac{constructor(e,i,a){ve(this,Ge);Lt(this,"parent");ve(this,mt,!1);ve(this,yt);ve(this,Vn,null);ve(this,Gt);ve(this,Oi);ve(this,Kt);ve(this,bt,null);ve(this,ct,null);ve(this,Zt,null);ve(this,ci,null);ve(this,xi,null);ve(this,Bi,0);ve(this,_i,0);ve(this,Fi,!1);ve(this,ki,null);ve(this,Ar,ml(()=>(ce(this,ki,Ot(D(this,Bi))),()=>{ce(this,ki,null)})));ce(this,yt,e),ce(this,Gt,i),ce(this,Oi,a),this.parent=we.b,ce(this,mt,!!D(this,Gt).pending),ce(this,Kt,gi(()=>{we.b=this;{var r=Ce(this,Ge,Kn).call(this);try{ce(this,bt,ot(()=>a(r)))}catch(n){this.error(n)}D(this,_i)>0?Ce(this,Ge,Or).call(this):ce(this,mt,!1)}return()=>{var n;(n=D(this,xi))==null||n.remove()}},tc))}is_pending(){return D(this,mt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!D(this,Gt).pending}update_pending_count(e){Ce(this,Ge,Zn).call(this,e),ce(this,Bi,D(this,Bi)+e),D(this,ki)&&ei(D(this,ki),D(this,Bi))}get_effect_pending(){return D(this,Ar).call(this),o(D(this,ki))}error(e){var i=D(this,Gt).onerror;let a=D(this,Gt).failed;if(D(this,Fi)||!i&&!a)throw e;D(this,bt)&&(Ze(D(this,bt)),ce(this,bt,null)),D(this,ct)&&(Ze(D(this,ct)),ce(this,ct,null)),D(this,Zt)&&(Ze(D(this,Zt)),ce(this,Zt,null));var r=!1,n=!1;const l=()=>{if(r){Ys();return}r=!0,n&&As(),Rt.ensure(),ce(this,Bi,0),D(this,Zt)!==null&&$i(D(this,Zt),()=>{ce(this,Zt,null)}),ce(this,mt,this.has_pending_snippet()),ce(this,bt,Ce(this,Ge,Nr).call(this,()=>(ce(this,Fi,!1),ot(()=>D(this,Oi).call(this,D(this,yt)))))),D(this,_i)>0?Ce(this,Ge,Or).call(this):ce(this,mt,!1)};var s=ye;try{st(null),n=!0,i==null||i(e,l),n=!1}catch(c){Ji(c,D(this,Kt)&&D(this,Kt).parent)}finally{st(s)}a&&$t(()=>{ce(this,Zt,Ce(this,Ge,Nr).call(this,()=>{Rt.ensure(),ce(this,Fi,!0);try{return ot(()=>{a(D(this,yt),()=>e,()=>l)})}catch(c){return Ji(c,D(this,Kt).parent),null}finally{ce(this,Fi,!1)}}))})}}mt=new WeakMap,yt=new WeakMap,Vn=new WeakMap,Gt=new WeakMap,Oi=new WeakMap,Kt=new WeakMap,bt=new WeakMap,ct=new WeakMap,Zt=new WeakMap,ci=new WeakMap,xi=new WeakMap,Bi=new WeakMap,_i=new WeakMap,Fi=new WeakMap,ki=new WeakMap,Ar=new WeakMap,Ge=new WeakSet,xg=function(){try{ce(this,bt,ot(()=>D(this,Oi).call(this,D(this,yt))))}catch(e){this.error(e)}ce(this,mt,!1)},_g=function(){const e=D(this,Gt).pending;e&&(ce(this,ct,ot(()=>e(D(this,yt)))),Rt.enqueue(()=>{var i=Ce(this,Ge,Kn).call(this);ce(this,bt,Ce(this,Ge,Nr).call(this,()=>(Rt.ensure(),ot(()=>D(this,Oi).call(this,i))))),D(this,_i)>0?Ce(this,Ge,Or).call(this):($i(D(this,ct),()=>{ce(this,ct,null)}),ce(this,mt,!1))}))},Kn=function(){var e=D(this,yt);return D(this,mt)&&(ce(this,xi,Bt()),D(this,yt).before(D(this,xi)),e=D(this,xi)),e},Nr=function(e){var i=we,a=ye,r=ke;Ht(D(this,Kt)),st(D(this,Kt)),Yi(D(this,Kt).ctx);try{return e()}catch(n){return ul(n),null}finally{Ht(i),st(a),Yi(r)}},Or=function(){const e=D(this,Gt).pending;D(this,bt)!==null&&(ce(this,ci,document.createDocumentFragment()),D(this,ci).append(D(this,xi)),Ol(D(this,bt),D(this,ci))),D(this,ct)===null&&ce(this,ct,ot(()=>e(D(this,yt))))},Zn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Ce(i=this.parent,Ge,Zn).call(i,e);return}ce(this,_i,D(this,_i)+e),D(this,_i)===0&&(ce(this,mt,!1),D(this,ct)&&$i(D(this,ct),()=>{ce(this,ct,null)}),D(this,ci)&&(D(this,yt).before(D(this,ci)),ce(this,ci,null)))};let Ii=null;function yl(t){Ii=t}function ze(t,e){return e}function rc(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)$r(e[n].e,a,!0);Rl(a,()=>{var l=a.length===0&&i!==null;if(l){var s=i,c=s.parentNode;pc(c),c.append(s),t.items.clear(),Nt(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var u=e[d];l||(t.items.delete(u.k),Nt(t,u.prev,u.next)),Ze(u.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Pe(t,e,i,a,r,n=null){var l=t,s=new Map,c=null,d=(e&nl)!==0,u=(e&al)!==0,p=(e&rl)!==0;if(d){var v=t;l=v.appendChild(Bt())}var h=null,g=er(()=>{var _=i();return qe(_)?_:_==null?[]:Br(_)}),m,w=!0;function y(){nc(x,m,l,e,a),h!==null&&(m.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):en(h.effect),k.first=h.effect):$i(h.effect,()=>{h=null}))}var k=gi(()=>{m=o(g);for(var _=m.length,z=new Set,C=ge,L=null,O=zl(),P=0;P<_;P+=1){var M=m[P],T=a(M,P),E=w?null:s.get(T);E?(u&&ei(E.v,M),p?ei(E.i,P):E.i=P,O&&C.skipped_effects.delete(E.e)):(E=lc(w?l:null,L,M,T,P,r,e,i),w&&(E.o=!0,L===null?c=E:L.next=E,L=E),s.set(T,E)),z.add(T)}if(_===0&&n&&!h)if(w)h={fragment:null,effect:ot(()=>n(l))};else{var I=document.createDocumentFragment(),q=Bt();I.append(q),h={fragment:I,effect:ot(()=>n(q))}}if(!w)if(O){for(const[B,J]of s)z.has(B)||C.skipped_effects.add(J.e);C.oncommit(y),C.ondiscard(()=>{})}else y();o(g)}),x={effect:k,flags:e,items:s,first:c};w=!1}function nc(t,e,i,a,r){var M,T,E,I;var n=(a&Ls)!==0,l=e.length,s=t.items,c=t.first,d,u=null,p,v=[],h=[],g,m,w,y;if(n)for(y=0;y<l;y+=1)g=e[y],m=r(g,y),w=s.get(m),w.o&&((M=w.a)==null||M.measure(),(p??(p=new Set)).add(w));for(y=0;y<l;y+=1){if(g=e[y],m=r(g,y),w=s.get(m),t.first??(t.first=w),!w.o){w.o=!0;var k=u?u.next:c;Nt(t,u,w),Nt(t,w,k),Yr(w,k,i),u=w,v=[],h=[],c=u.next;continue}if(w.e.f&dt&&(en(w.e),n&&((T=w.a)==null||T.unfix(),(p??(p=new Set)).delete(w))),w!==c){if(d!==void 0&&d.has(w)){if(v.length<h.length){var x=h[0],_;u=x.prev;var z=v[0],C=v[v.length-1];for(_=0;_<v.length;_+=1)Yr(v[_],x,i);for(_=0;_<h.length;_+=1)d.delete(h[_]);Nt(t,z.prev,C.next),Nt(t,u,z),Nt(t,C,x),c=x,u=C,y-=1,v=[],h=[]}else d.delete(w),Yr(w,c,i),Nt(t,w.prev,w.next),Nt(t,w,u===null?t.first:u.next),Nt(t,u,w),u=w;continue}for(v=[],h=[];c!==null&&c.k!==m;)c.e.f&dt||(d??(d=new Set)).add(c),h.push(c),c=c.next;if(c===null)continue;w=c}v.push(w),u=w,c=w.next}if(c!==null||d!==void 0){for(var L=d===void 0?[]:Br(d);c!==null;)c.e.f&dt||L.push(c),c=c.next;var O=L.length;if(O>0){var P=a&nl&&l===0?i:null;if(n){for(y=0;y<O;y+=1)(E=L[y].a)==null||E.measure();for(y=0;y<O;y+=1)(I=L[y].a)==null||I.fix()}rc(t,L,P)}}n&&$t(()=>{var q;if(p!==void 0)for(w of p)(q=w.a)==null||q.apply()})}function lc(t,e,i,a,r,n,l,s){var c=Ii,d=(l&al)!==0,u=(l&Ms)===0,p=d?u?Xr(i,!1,!1):Ot(i):i,v=l&rl?Ot(r):r,h={i:v,v:p,k:a,a:null,e:null,o:!1,prev:e,next:null};Ii=h;try{if(t===null){var g=document.createDocumentFragment();g.append(t=Bt())}return h.e=ot(()=>n(t,p,v,s)),e!==null&&(e.next=h),h}finally{Ii=c}}function Yr(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==a;){var l=wa(n);r.before(n),n=l}}function Nt(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function bl(t,e,i,a){const r=Pi()?ba:er;if(i.length===0&&t.length===0){a(e.map(r));return}var n=ge,l=we,s=wl();function c(){Promise.all(i.map(d=>oc(d))).then(d=>{s();try{a([...e.map(r),...d])}catch(u){l.f&Xt||Ji(u,l)}n==null||n.deactivate(),ya()}).catch(d=>{Ji(d,l)})}t.length>0?Promise.all(t).then(()=>{s();try{return c()}finally{n==null||n.deactivate(),ya()}}):c()}function wl(){var t=we,e=ye,i=ke,a=ge;return function(n=!0){Ht(t),st(e),Yi(i),n&&(a==null||a.activate())}}function ya(){Ht(null),st(null),Yi(null)}function ba(t){var e=Ke|lt,i=ye!==null&&ye.f&Ke?ye:null;return we!==null&&(we.f|=Gi),{ctx:ke,deps:null,effects:null,equals:ll,f:e,fn:t,reactions:null,rv:0,v:We,wv:0,parent:i??we,ac:null}}function oc(t,e){let i=we;i===null&&ks();var a=i.b,r=void 0,n=Ot(We),l=!ye,s=new Map;return wc(()=>{var v;var c=Qn();r=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{d===ge&&d.committed&&d.deactivate(),ya()})}catch(h){c.reject(h),ya()}var d=ge;if(l){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(v=s.get(d))==null||v.reject(Ki),s.delete(d),s.set(d,c)}const p=(h,g=void 0)=>{if(d.activate(),g)g!==Ki&&(n.f|=vi,ei(n,g));else{n.f&vi&&(n.f^=vi),ei(n,h);for(const[m,w]of s){if(s.delete(m),m===d)break;w.reject(Ki)}}l&&(a.update_pending_count(-1),d.decrement(u))};c.promise.then(p,h=>p(null,h||"unknown"))}),_a(()=>{for(const c of s.values())c.reject(Ki)}),new Promise(c=>{function d(u){function p(){u===r?c(n):d(r)}u.then(p,p)}d(r)})}function U(t){const e=ba(t);return Fl(e),e}function er(t){const e=ba(t);return e.equals=sl,e}function xl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ze(e[i])}}function sc(t){for(var e=t.parent;e!==null;){if(!(e.f&Ke))return e.f&Xt?null:e;e=e.parent}return null}function Jr(t){var e,i=we;Ht(sc(t));try{t.f&=~ma,xl(t),e=Gl(t)}finally{Ht(i)}return e}function _l(t){var e=Jr(t);if(t.equals(e)||(ge!=null&&ge.is_fork||(t.v=e),t.wv=Ul()),!Li)if(Ne!==null)(xa()||ge!=null&&ge.is_fork)&&Ne.set(t,e);else{var i=t.f&xt?$e:Qt;et(t,i)}}let Qr=new Set;const fi=new Map;let kl=!1;function Ot(t,e){var i={f:0,v:t,reactions:null,equals:ll,rv:0,wv:0};return i}function G(t,e){const i=Ot(t);return Fl(i),i}function Xr(t,e=!1,i=!0){var r;const a=Ot(t);return e||(a.equals=sl),Zi&&i&&ke!==null&&ke.l!==null&&((r=ke.l).s??(r.s=[])).push(a),a}function R(t,e,i=!1){ye!==null&&(!Ft||ye.f&$n)&&Pi()&&ye.f&(Ke|Mt|Gr|$n)&&!(at!=null&&at.includes(t))&&js();let a=i?je(e):e;return ei(t,a)}function ei(t,e){if(!t.equals(e)){var i=t.v;Li?fi.set(t,e):fi.set(t,i),t.v=e;var a=Rt.ensure();a.capture(t,i),t.f&Ke&&(t.f<&&Jr(t),et(t,t.f&xt?$e:Qt)),t.wv=Ul(),Sl(t,lt),Pi()&&we!==null&&we.f&$e&&!(we.f&(Jt|Ei))&&(ht===null?kc([t]):ht.push(t)),!a.is_fork&&Qr.size>0&&!kl&&cc()}return e}function cc(){kl=!1;var t=mi;ir(!0);const e=Array.from(Qr);try{for(const i of e)i.f&$e&&et(i,Qt),Sa(i)&&Ta(i)}finally{ir(t)}Qr.clear()}function hi(t){R(t,t.v+1)}function Sl(t,e){var i=t.reactions;if(i!==null)for(var a=Pi(),r=i.length,n=0;n<r;n++){var l=i[n],s=l.f;if(!(!a&&l===we)){var c=(s<)===0;if(c&&et(l,e),s&Ke){var d=l;Ne==null||Ne.delete(d),s&ma||(s&xt&&(l.f|=ma),Sl(d,Qt))}else c&&(s&Mt&&_t!==null&&_t.add(l),zi(l))}}}function je(t){if(typeof t!="object"||t===null||qt in t)return t;const e=Fr(t);if(e!==ys&&e!==bs)return t;var i=new Map,a=qe(t),r=G(0),n=ti,l=s=>{if(ti===n)return s();var c=ye,d=ti;st(null),Vl(n);var u=s();return st(c),Vl(d),u};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&zs();var u=i.get(c);return u===void 0?u=l(()=>{var p=G(d.value);return i.set(c,p),p}):R(u,d.value,!0),!0},deleteProperty(s,c){var d=i.get(c);if(d===void 0){if(c in s){const u=l(()=>G(We));i.set(c,u),hi(r)}}else R(d,We),hi(r);return!0},get(s,c,d){var h;if(c===qt)return t;var u=i.get(c),p=c in s;if(u===void 0&&(!p||(h=pi(s,c))!=null&&h.writable)&&(u=l(()=>{var g=je(p?s[c]:We),m=G(g);return m}),i.set(c,u)),u!==void 0){var v=o(u);return v===We?void 0:v}return Reflect.get(s,c,d)},getOwnPropertyDescriptor(s,c){var d=Reflect.getOwnPropertyDescriptor(s,c);if(d&&"value"in d){var u=i.get(c);u&&(d.value=o(u))}else if(d===void 0){var p=i.get(c),v=p==null?void 0:p.v;if(p!==void 0&&v!==We)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return d},has(s,c){var v;if(c===qt)return!0;var d=i.get(c),u=d!==void 0&&d.v!==We||Reflect.has(s,c);if(d!==void 0||we!==null&&(!u||(v=pi(s,c))!=null&&v.writable)){d===void 0&&(d=l(()=>{var h=u?je(s[c]):We,g=G(h);return g}),i.set(c,d));var p=o(d);if(p===We)return!1}return u},set(s,c,d,u){var x;var p=i.get(c),v=c in s;if(a&&c==="length")for(var h=d;h<p.v;h+=1){var g=i.get(h+"");g!==void 0?R(g,We):h in s&&(g=l(()=>G(We)),i.set(h+"",g))}if(p===void 0)(!v||(x=pi(s,c))!=null&&x.writable)&&(p=l(()=>G(void 0)),R(p,je(d)),i.set(c,p));else{v=p.v!==We;var m=l(()=>je(d));R(p,m)}var w=Reflect.getOwnPropertyDescriptor(s,c);if(w!=null&&w.set&&w.set.call(u,d),!v){if(a&&typeof c=="string"){var y=i.get("length"),k=Number(c);Number.isInteger(k)&&k>=y.v&&R(y,k+1)}hi(r)}return!0},ownKeys(s){o(r);var c=Reflect.ownKeys(s).filter(p=>{var v=i.get(p);return v===void 0||v.v!==We});for(var[d,u]of i)u.v!==We&&!(d in s)&&c.push(d);return c},setPrototypeOf(){Is()}})}function Tl(t){try{if(t!==null&&typeof t=="object"&&qt in t)return t[qt]}catch{}return t}function dc(t,e){return Object.is(Tl(t),Tl(e))}var Ie,El,Pl,Cl;function uc(){if(Ie===void 0){Ie=window,El=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Pl=pi(e,"firstChild").get,Cl=pi(e,"nextSibling").get,Jn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Jn(i)&&(i.__t=void 0)}}function Bt(t=""){return document.createTextNode(t)}function Xi(t){return Pl.call(t)}function wa(t){return Cl.call(t)}function S(t,e){return Xi(t)}function Z(t,e=!1){{var i=Xi(t);return i instanceof Comment&&i.data===""?wa(i):i}}function A(t,e=1,i=!1){let a=t;for(;e--;)a=wa(a);return a}function pc(t){t.textContent=""}function zl(){return!1}function vc(t,e){if(e){const i=document.body;t.autofocus=!0,$t(()=>{document.activeElement===i&&t.focus()})}}let Il=!1;function fc(){Il||(Il=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i.__on_r)==null||e.call(i)})},{capture:!0}))}function hc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);_a(()=>{for(var n of e)t.removeEventListener(n,i)})}function ji(t){var e=ye,i=we;st(null),Ht(null);try{return t()}finally{st(e),Ht(i)}}function gc(t,e,i,a=i){t.addEventListener(e,()=>ji(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),fc()}function jl(t){we===null&&(ye===null&&Es(),Ts()),Li&&Ss()}function mc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function kt(t,e,i){var a=we;a!==null&&a.f&dt&&(t|=dt);var r={ctx:ke,deps:null,nodes_start:null,nodes_end:null,f:t|lt|xt,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{Ta(r),r.f|=Za}catch(s){throw Ze(r),s}else e!==null&&zi(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Gi)&&(n=n.first,t&Mt&&t&Dt&&n!==null&&(n.f|=Dt)),n!==null&&(n.parent=a,a!==null&&mc(n,a),ye!==null&&ye.f&Ke&&!(t&Ei))){var l=ye;(l.effects??(l.effects=[])).push(n)}return r}function xa(){return ye!==null&&!Ft}function _a(t){const e=kt(Ga,null,!1);return et(e,$e),e.teardown=t,e}function Fe(t){jl();var e=we.f,i=!ye&&(e&Jt)!==0&&(e&Za)===0;if(i){var a=ke;(a.e??(a.e=[])).push(t)}else return Al(t)}function Al(t){return kt(Ur|tl,t,!1)}function yc(t){return jl(),kt(Ga|tl,t,!0)}function bc(t){Rt.ensure();const e=kt(Ei|Gi,t,!0);return(i={})=>new Promise(a=>{i.outro?$i(e,()=>{Ze(e),a(void 0)}):(Ze(e),a(void 0))})}function Ai(t){return kt(Ur,t,!1)}function wc(t){return kt(Gr|Gi,t,!0)}function tr(t,e=0){return kt(Ga|e,t,!0)}function F(t,e=[],i=[],a=[]){bl(a,e,i,r=>{kt(Ga,()=>t(...r.map(o)),!0)})}function gi(t,e=0){var i=kt(Mt|e,t,!0);return i}function Ll(t,e=0){var i=kt(Xn|e,t,!0);return i}function ot(t){return kt(Jt|Gi,t,!0)}function Ml(t){var e=t.teardown;if(e!==null){const i=Li,a=ye;Bl(!0),st(null);try{e.call(null)}finally{Bl(i),st(a)}}}function Dl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&ji(()=>{r.abort(Ki)});var a=i.next;i.f&Ei?i.parent=null:Ze(i,e),i=a}}function xc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Jt||Ze(e),e=i}}function Ze(t,e=!0){var i=!1;(e||t.f&el)&&t.nodes_start!==null&&t.nodes_end!==null&&(_c(t.nodes_start,t.nodes_end),i=!0),Dl(t,e&&!i),ar(t,0),et(t,Xt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();Ml(t);var r=t.parent;r!==null&&r.first!==null&&ql(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function _c(t,e){for(;t!==null;){var i=t===e?null:wa(t);t.remove(),t=i}}function ql(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function $i(t,e,i=!0){var a=[];$r(t,a,!0),Rl(a,()=>{i&&Ze(t),e&&e()})}function Rl(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function $r(t,e,i){if(!(t.f&dt)){if(t.f^=dt,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&Dt)!==0||(a.f&Jt)!==0&&(t.f&Mt)!==0;$r(a,e,n?i:!1),a=r}}}function en(t){Nl(t,!0)}function Nl(t,e){if(t.f&dt){t.f^=dt,t.f&$e||(et(t,lt),zi(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&Dt)!==0||(i.f&Jt)!==0;Nl(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Ol(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:wa(i);e.append(i),i=r}}let mi=!1;function ir(t){mi=t}let Li=!1;function Bl(t){Li=t}let ye=null,Ft=!1;function st(t){ye=t}let we=null;function Ht(t){we=t}let at=null;function Fl(t){ye!==null&&(at===null?at=[t]:at.push(t))}let rt=null,ut=0,ht=null;function kc(t){ht=t}let Hl=1,ka=0,ti=ka;function Vl(t){ti=t}function Ul(){return++Hl}function Sa(t){var e=t.f;if(e<)return!0;if(e&Ke&&(t.f&=-32769),e&Qt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(Sa(n)&&_l(n),n.wv>t.wv)return!0}e&xt&&Ne===null&&et(t,$e)}return!1}function Wl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(at!=null&&at.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ke?Wl(n,e,!1):e===n&&(i?et(n,lt):n.f&$e&&et(n,Qt),zi(n))}}function Gl(t){var g;var e=rt,i=ut,a=ht,r=ye,n=at,l=ke,s=Ft,c=ti,d=t.f;rt=null,ut=0,ht=null,ye=d&(Jt|Ei)?null:t,at=null,Yi(t.ctx),Ft=!1,ti=++ka,t.ac!==null&&(ji(()=>{t.ac.abort(Ki)}),t.ac=null);try{t.f|=Wr;var u=t.fn,p=u(),v=t.deps;if(rt!==null){var h;if(ar(t,ut),v!==null&&ut>0)for(v.length=ut+rt.length,h=0;h<rt.length;h++)v[ut+h]=rt[h];else t.deps=v=rt;if(mi&&xa()&&t.f&xt)for(h=ut;h<v.length;h++)((g=v[h]).reactions??(g.reactions=[])).push(t)}else v!==null&&ut<v.length&&(ar(t,ut),v.length=ut);if(Pi()&&ht!==null&&!Ft&&v!==null&&!(t.f&(Ke|Qt|lt)))for(h=0;h<ht.length;h++)Wl(ht[h],t);return r!==null&&r!==t&&(ka++,ht!==null&&(a===null?a=ht:a.push(...ht))),t.f&vi&&(t.f^=vi),p}catch(m){return ul(m)}finally{t.f^=Wr,rt=e,ut=i,ht=a,ye=r,at=n,Yi(l),Ft=s,ti=c}}function Sc(t,e){let i=e.reactions;if(i!==null){var a=Wa.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ke&&(rt===null||!rt.includes(e))&&(et(e,Qt),e.f&xt&&(e.f^=xt,e.f&=-32769),xl(e),ar(e,0))}function ar(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)Sc(t,i[a])}function Ta(t){var e=t.f;if(!(e&Xt)){et(t,$e);var i=we,a=mi;we=t,mi=!0;try{e&(Mt|Xn)?xc(t):Dl(t),Ml(t);var r=Gl(t);t.teardown=typeof r=="function"?r:null,t.wv=Hl;var n;Ee&&Js&&t.f<&&t.deps}finally{mi=a,we=i}}}async function Ea(){await Promise.resolve(),pl()}function o(t){var e=t.f,i=(e&Ke)!==0;if(ye!==null&&!Ft){var a=we!==null&&(we.f&Xt)!==0;if(!a&&!(at!=null&&at.includes(t))){var r=ye.deps;if(ye.f&Wr)t.rv<ka&&(t.rv=ka,rt===null&&r!==null&&r[ut]===t?ut++:rt===null?rt=[t]:rt.includes(t)||rt.push(t));else{(ye.deps??(ye.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[ye]:n.includes(ye)||n.push(ye)}}}if(Li){if(fi.has(t))return fi.get(t);if(i){var l=t,s=l.v;return(!(l.f&$e)&&l.reactions!==null||Zl(l))&&(s=Jr(l)),fi.set(l,s),s}}else i&&(!(Ne!=null&&Ne.has(t))||ge!=null&&ge.is_fork&&!xa())&&(l=t,Sa(l)&&_l(l),mi&&xa()&&!(l.f&xt)&&Kl(l));if(Ne!=null&&Ne.has(t))return Ne.get(t);if(t.f&vi)throw t.v;return t.v}function Kl(t){if(t.deps!==null){t.f^=xt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ke&&!(e.f&xt)&&Kl(e)}}function Zl(t){if(t.v===We)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(fi.has(e)||e.f&Ke&&Zl(e))return!0;return!1}function Vt(t){var e=Ft;try{return Ft=!0,t()}finally{Ft=e}}const Tc=-7169;function et(t,e){t.f=t.f&Tc|e}function Yl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(qt in t)tn(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&qt in i&&tn(i)}}}function tn(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let a in t)try{tn(t[a],e)}catch{}const i=Fr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Yn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function Ec(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Pc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Cc(t){return Pc.includes(t)}const zc={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ic(t){return t=t.toLowerCase(),zc[t]??t}const jc=["touchstart","touchmove"];function Ac(t){return jc.includes(t)}const Jl=new Set,an=new Set;function rn(t,e,i,a={}){function r(n){if(a.capture||Pa.call(e,n),!n.cancelBubble)return ji(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?$t(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function Lc(t,e,i,a={}){var r=rn(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function xe(t,e,i,a,r){var n={capture:a,passive:r},l=rn(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&_a(()=>{e.removeEventListener(t,l,n)})}function fe(t){for(var e=0;e<t.length;e++)Jl.add(t[e]);for(var i of an)i(t)}let Ql=null;function Pa(t){var w;var e=this,i=e.ownerDocument,a=t.type,r=((w=t.composedPath)==null?void 0:w.call(t))||[],n=r[0]||t.target;Ql=t;var l=0,s=Ql===t&&t.__root;if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;c<=d&&(l=c)}if(n=r[l]||t.target,n!==e){ms(t,"currentTarget",{configurable:!0,get(){return n||i}});var u=ye,p=we;st(null),Ht(null);try{for(var v,h=[];n!==null;){var g=n.assignedSlot||n.parentNode||n.host||null;try{var m=n["__"+a];m!=null&&(!n.disabled||t.target===n)&&m.call(n,t)}catch(y){v?h.push(y):v=y}if(t.cancelBubble||g===e||g===null)break;n=g}if(v){for(let y of h)queueMicrotask(()=>{throw y});throw v}}finally{t.__root=e,delete t.currentTarget,st(u),Ht(p)}}}function Xl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function ea(t,e){var i=we;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function j(t,e){var i=(e&Vs)!==0,a=(e&Us)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Xl(n?t:"<!>"+t),i||(r=Xi(r)));var l=a||El?document.importNode(r,!0):r.cloneNode(!0);if(i){var s=Xi(l),c=l.lastChild;ea(s,c)}else ea(l,l);return l}}function Mc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Xl(r),s=Xi(l);n=Xi(s)}var c=n.cloneNode(!0);return ea(c,c),c}}function Ye(t,e){return Mc(t,e,"svg")}function St(t=""){{var e=Bt(t+"");return ea(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Bt();return t.append(e,i),ea(e,i),t}function b(t,e){t!==null&&t.before(e)}let rr=!0;function nr(t){rr=t}function Y(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Ut(t,e){return Dc(t,e)}const ta=new Map;function Dc(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){uc();var s=new Set,c=p=>{for(var v=0;v<p.length;v++){var h=p[v];if(!s.has(h)){s.add(h);var g=Ac(h);e.addEventListener(h,Pa,{passive:g});var m=ta.get(h);m===void 0?(document.addEventListener(h,Pa,{passive:g}),ta.set(h,1)):ta.set(h,m+1)}}};c(Br(Jl)),an.add(c);var d=void 0,u=bc(()=>{var p=i??e.appendChild(Bt());return ic(p,{pending:()=>{}},v=>{if(n){ee({});var h=ke;h.c=n}r&&(a.$$events=r),rr=l,d=t(v,a)||{},rr=!0,n&&te()}),()=>{var g;for(var v of s){e.removeEventListener(v,Pa);var h=ta.get(v);--h===0?(document.removeEventListener(v,Pa),ta.delete(v)):ta.set(v,h)}an.delete(c),p!==i&&((g=p.parentNode)==null||g.removeChild(p))}});return nn.set(d,u),d}let nn=new WeakMap;function ia(t,e){const i=nn.get(t);return i?(nn.delete(t),i(e)):Promise.resolve()}class aa{constructor(e,i=!0){Lt(this,"anchor");ve(this,zt,new Map);ve(this,Yt,new Map);ve(this,pt,new Map);ve(this,Hi,new Set);ve(this,Oa,!0);ve(this,Ba,()=>{var e=ge;if(D(this,zt).has(e)){var i=D(this,zt).get(e),a=D(this,Yt).get(i);if(a)en(a),D(this,Hi).delete(i);else{var r=D(this,pt).get(i);r&&(D(this,Yt).set(i,r.effect),D(this,pt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of D(this,zt)){if(D(this,zt).delete(n),n===e)break;const s=D(this,pt).get(l);s&&(Ze(s.effect),D(this,pt).delete(l))}for(const[n,l]of D(this,Yt)){if(n===i||D(this,Hi).has(n))continue;const s=()=>{if(Array.from(D(this,zt).values()).includes(n)){var d=document.createDocumentFragment();Ol(l,d),d.append(Bt()),D(this,pt).set(n,{effect:l,fragment:d})}else Ze(l);D(this,Hi).delete(n),D(this,Yt).delete(n)};D(this,Oa)||!a?(D(this,Hi).add(n),$i(l,s,!1)):s()}}});ve(this,Lr,e=>{D(this,zt).delete(e);const i=Array.from(D(this,zt).values());for(const[a,r]of D(this,pt))i.includes(a)||(Ze(r.effect),D(this,pt).delete(a))});this.anchor=e,ce(this,Oa,i)}ensure(e,i){var a=ge,r=zl();if(i&&!D(this,Yt).has(e)&&!D(this,pt).has(e))if(r){var n=document.createDocumentFragment(),l=Bt();n.append(l),D(this,pt).set(e,{effect:ot(()=>i(l)),fragment:n})}else D(this,Yt).set(e,ot(()=>i(this.anchor)));if(D(this,zt).set(a,e),r){for(const[s,c]of D(this,Yt))s===e?a.skipped_effects.delete(c):a.skipped_effects.add(c);for(const[s,c]of D(this,pt))s===e?a.skipped_effects.delete(c.effect):a.skipped_effects.add(c.effect);a.oncommit(D(this,Ba)),a.ondiscard(D(this,Lr))}else D(this,Ba).call(this)}}zt=new WeakMap,Yt=new WeakMap,pt=new WeakMap,Hi=new WeakMap,Oa=new WeakMap,Ba=new WeakMap,Lr=new WeakMap;const qc=0,ln=1;function ra(t,e,i,a,r){var n=Pi(),l=We,s=n?Ot(l):Xr(l,!1,!1),c=n?Ot(l):Xr(l,!1,!1),d=new aa(t);gi(()=>{var u=e(),p=!1;if(ws(u)){var v=wl(),h=!1;const g=m=>{if(!p){h=!0,v(!1),Rt.ensure();try{m()}finally{ya(),Qi||pl()}}};u.then(m=>{g(()=>{ei(s,m),d.ensure(ln,a&&(w=>a(w,s)))})},m=>{g(()=>{if(ei(c,m),d.ensure(ln,r&&(w=>r(w,c))),!r)throw c.v})}),$t(()=>{h||g(()=>{d.ensure(qc,i)})})}else ei(s,u),d.ensure(ln,a&&(g=>a(g,s)));return()=>{p=!0}})}function H(t,e,i=!1){var a=new aa(t),r=i?Dt:0;function n(l,s){a.ensure(l,s)}gi(()=>{var l=!1;e((s,c=!0)=>{l=!0,n(c,s)}),l||n(!1,null)},r)}function Ca(t,e,i){var a=new aa(t),r=!Pi();gi(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Oe(t,e,...i){var a=new aa(t);gi(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},Dt)}function on(t,e,i){var a=new aa(t);gi(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},Dt)}function $l(t,e,i,a,r,n){var l=null,s=t,c=Ii,d=new aa(s,!1);gi(()=>{const u=e()||null;var p=u==="svg"?Gs:null;if(u===null){d.ensure(null,null),nr(!0);return}return d.ensure(u,v=>{var h=Ii;if(yl(c),u){if(l=p?document.createElementNS(p,u):document.createElement(u),ea(l,l),a){var g=l.appendChild(Bt());a(l,g)}we.nodes_end=l,v.before(l)}yl(h)}),nr(!0),()=>{u&&nr(!1)}},Dt),_a(()=>{nr(!0)})}function Tt(t,e,i){Ai(()=>{var a=Vt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};tr(()=>{var l=i();Yl(l),r&&ol(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function lr(t,e){var i=void 0,a;Ll(()=>{i!==(i=e())&&(a&&(Ze(a),a=null),i&&(a=ot(()=>{Ai(()=>i(t))})))})}function eo(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=eo(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Rc(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=eo(t))&&(a&&(a+=" "),a+=e);return a}function Nc(t){return typeof t=="object"?Rc(t):t??""}const to=[...`
|
|
3
3
|
\r\f \v\uFEFF`];function Oc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var r in i)if(i[r])a=a?a+" "+r:r;else if(a.length)for(var n=r.length,l=0;(l=a.indexOf(r,l))>=0;){var s=l+n;(l===0||to.includes(a[l-1]))&&(s===a.length||to.includes(a[s]))?a=(l===0?"":a.substring(0,l))+a.substring(s+1):l=s}}return a===""?null:a}function io(t,e=!1){var i=e?" !important;":";",a="";for(var r in t){var n=t[r];n!=null&&n!==""&&(a+=" "+r+": "+n+i)}return a}function sn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Bc(t,e){if(e){var i="",a,r;if(Array.isArray(e)?(a=e[0],r=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,l=0,s=!1,c=[];a&&c.push(...Object.keys(a).map(sn)),r&&c.push(...Object.keys(r).map(sn));var d=0,u=-1;const m=t.length;for(var p=0;p<m;p++){var v=t[p];if(s?v==="/"&&t[p-1]==="*"&&(s=!1):n?n===v&&(n=!1):v==="/"&&t[p+1]==="*"?s=!0:v==='"'||v==="'"?n=v:v==="("?l++:v===")"&&l--,!s&&n===!1&&l===0){if(v===":"&&u===-1)u=p;else if(v===";"||p===m-1){if(u!==-1){var h=sn(t.substring(d,u).trim());if(!c.includes(h)){v!==";"&&p++;var g=t.substring(d,p).trim();i+=" "+g+";"}}d=p+1,u=-1}}}}return a&&(i+=io(a)),r&&(i+=io(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function be(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var s=Oc(i,a,n);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t.__className=i}else if(n&&r!==n)for(var c in n){var d=!!n[c];(r==null||d!==!!r[c])&&t.classList.toggle(c,d)}return n}function cn(t,e={},i,a){for(var r in i){var n=i[r];e[r]!==n&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,n,a))}}function He(t,e,i,a){var r=t.__style;if(r!==e){var n=Bc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(cn(t,i==null?void 0:i[0],a[0]),cn(t,i==null?void 0:i[1],a[1],"important")):cn(t,i,a));return a}function dn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!qe(e))return Zs();for(var a of t.options)a.selected=e.includes(ao(a));return}for(a of t.options){var r=ao(a);if(dc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Fc(t){var e=new MutationObserver(()=>{dn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),_a(()=>{e.disconnect()})}function ao(t){return"__value"in t?t.__value:t.value}const na=Symbol("class"),la=Symbol("style"),ro=Symbol("is custom element"),no=Symbol("is html");function Hc(t,e){var i=un(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function lo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,i,a){var r=un(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[_s]=i),i==null?t.removeAttribute(e):typeof i!="string"&&co(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Vc(t,e,i,a,r=!1,n=!1){var l=un(t),s=l[ro],c=!l[no],d=e||{},u=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Nc(i.class):(a||i[na])&&(i.class=null),i[la]&&(i.style??(i.style=null));var v=co(t);for(const x in i){let _=i[x];if(u&&x==="value"&&_==null){t.value=t.__value="",d[x]=_;continue}if(x==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";be(t,h,_,a,e==null?void 0:e[na],i[na]),d[x]=_,d[na]=i[na];continue}if(x==="style"){He(t,_,e==null?void 0:e[la],i[la]),d[x]=_,d[la]=i[la];continue}var g=d[x];if(!(_===g&&!(_===void 0&&t.hasAttribute(x)))){d[x]=_;var m=x[0]+x[1];if(m!=="$$")if(m==="on"){const z={},C="$$"+x;let L=x.slice(2);var w=Cc(L);if(Ec(L)&&(L=L.slice(0,-7),z.capture=!0),!w&&g){if(_!=null)continue;t.removeEventListener(L,d[C],z),d[C]=null}if(_!=null)if(w)t[`__${L}`]=_,fe([L]);else{let O=function(P){d[x].call(this,P)};d[C]=rn(L,t,O,z)}else w&&(t[`__${L}`]=void 0)}else if(x==="style")le(t,x,_);else if(x==="autofocus")vc(t,!!_);else if(!s&&(x==="__value"||x==="value"&&_!=null))t.value=t.__value=_;else if(x==="selected"&&u)lo(t,_);else{var y=x;c||(y=Ic(y));var k=y==="defaultValue"||y==="defaultChecked";if(_==null&&!s&&!k)if(l[x]=null,y==="value"||y==="checked"){let z=t;const C=e===void 0;if(y==="value"){let L=z.defaultValue;z.removeAttribute(y),z.defaultValue=L,z.value=z.__value=C?L:null}else{let L=z.defaultChecked;z.removeAttribute(y),z.defaultChecked=L,z.checked=C?L:!1}}else t.removeAttribute(x);else k||v.includes(y)&&(s||typeof _!="string")?(t[y]=_,y in l&&(l[y]=We)):typeof _!="function"&&le(t,y,_)}}}return d}function oo(t,e,i=[],a=[],r=[],n,l=!1,s=!1){bl(r,i,a,c=>{var d=void 0,u={},p=t.nodeName==="SELECT",v=!1;if(Ll(()=>{var g=e(...c.map(o)),m=Vc(t,d,g,n,l,s);v&&p&&"value"in g&&dn(t,g.value);for(let y of Object.getOwnPropertySymbols(u))g[y]||Ze(u[y]);for(let y of Object.getOwnPropertySymbols(g)){var w=g[y];y.description===Ks&&(!d||w!==d[y])&&(u[y]&&Ze(u[y]),u[y]=ot(()=>lr(t,()=>w))),m[y]=w}d=m}),p){var h=t;Ai(()=>{dn(h,d.value,!0),Fc(h)})}v=!0})}function un(t){return t.__attributes??(t.__attributes={[ro]:t.nodeName.includes("-"),[no]:t.namespaceURI===Ws})}var so=new Map;function co(t){var e=t.getAttribute("is")||t.nodeName,i=so.get(e);if(i)return i;so.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Yn(r);for(var l in a)a[l].set&&i.push(l);r=Fr(r)}return i}const Uc=()=>performance.now(),ii={tick:t=>requestAnimationFrame(t),now:()=>Uc(),tasks:new Set};function uo(){const t=ii.now();ii.tasks.forEach(e=>{e.c(t)||(ii.tasks.delete(e),e.f())}),ii.tasks.size!==0&&ii.tick(uo)}function Wc(t){let e;return ii.tasks.size===0&&ii.tick(uo),{promise:new Promise(i=>{ii.tasks.add(e={c:t,f:i})}),abort(){ii.tasks.delete(e)}}}function or(t,e){ji(()=>{t.dispatchEvent(new CustomEvent(e))})}function Gc(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function po(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Gc(r.trim());e[l]=n.trim()}return e}const Kc=t=>t;function Zc(t,e,i){var a=Ii,r,n,l,s=null;a.a??(a.a={element:t,measure(){r=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),n=this.element.getBoundingClientRect(),r.left!==n.left||r.right!==n.right||r.top!==n.top||r.bottom!==n.bottom){const c=e()(this.element,{from:r,to:n},i==null?void 0:i());l=sr(this.element,c,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:c,width:d,height:u}=getComputedStyle(t);if(c!=="absolute"&&c!=="fixed"){var p=t.style;s={position:p.position,width:p.width,height:p.height,transform:p.transform},p.position="absolute",p.width=d,p.height=u;var v=t.getBoundingClientRect();if(r.left!==v.left||r.top!==v.top){var h=`translate(${r.left-v.left}px, ${r.top-v.top}px)`;p.transform=p.transform?`${p.transform} ${h}`:h}}}},unfix(){if(s){var c=t.style;c.position=s.position,c.width=s.width,c.height=s.height,c.transform=s.transform}}}),a.a.element=t}function De(t,e,i,a){var r=(t&Bs)!==0,n=(t&Fs)!==0,l=r&&n,s=(t&Hs)!==0,c=l?"both":r?"in":"out",d,u=e.inert,p=e.style.overflow,v,h;function g(){return ji(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:c})))}var m={is_global:s,in(){var x;if(e.inert=u,!r){h==null||h.abort(),(x=h==null?void 0:h.reset)==null||x.call(h);return}n||v==null||v.abort(),or(e,"introstart"),v=sr(e,g(),h,1,()=>{or(e,"introend"),v==null||v.abort(),v=d=void 0,e.style.overflow=p})},out(x){if(!n){x==null||x(),d=void 0;return}e.inert=!0,or(e,"outrostart"),h=sr(e,g(),v,0,()=>{or(e,"outroend"),x==null||x()})},stop:()=>{v==null||v.abort(),h==null||h.abort()}},w=we;if((w.transitions??(w.transitions=[])).push(m),r&&rr){var y=s;if(!y){for(var k=w.parent;k&&k.f&Dt;)for(;(k=k.parent)&&!(k.f&Mt););y=!k||(k.f&Za)!==0}y&&Ai(()=>{Vt(()=>m.in())})}}function sr(t,e,i,a,r){var n=a===1;if(Ui(e)){var l,s=!1;return $t(()=>{if(!s){var w=e({direction:n?"in":"out"});l=sr(t,w,i,a,r)}}),{abort:()=>{s=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:vt,deactivate:vt,reset:vt,t:()=>a};const{delay:c=0,css:d,tick:u,easing:p=Kc}=e;var v=[];if(n&&i===void 0&&(u&&u(0,1),d)){var h=po(d(0,1));v.push(h,h)}var g=()=>1-a,m=t.animate(v,{duration:c,fill:"forwards"});return m.onfinish=()=>{m.cancel();var w=(i==null?void 0:i.t())??1-a;i==null||i.abort();var y=a-w,k=e.duration*Math.abs(y),x=[];if(k>0){var _=!1;if(d)for(var z=Math.ceil(k/16.666666666666668),C=0;C<=z;C+=1){var L=w+y*p(C/z),O=po(d(L,1-L));x.push(O),_||(_=O.overflow==="hidden")}_&&(t.style.overflow="hidden"),g=()=>{var P=m.currentTime;return w+y*p(P/k)},u&&Wc(()=>{if(m.playState!=="running")return!1;var P=g();return u(P,1-P),!0})}m=t.animate(x,{duration:k,fill:"forwards"}),m.onfinish=()=>{g=()=>a,u==null||u(a,1-a),r()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{a===0&&(u==null||u(1,0))},t:()=>g()}}function za(t,e,i=e){var a=new WeakSet;gc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=pn(t)?vn(n):n,i(n),ge!==null&&a.add(ge),await Ea(),n!==(n=e())){var l=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=n??"",s!==null){var d=t.value.length;l===s&&s===c&&d>c?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(s,d))}}}),Vt(e)==null&&t.value&&(i(pn(t)?vn(t.value):t.value),ge!==null&&a.add(ge)),tr(()=>{var r=e();if(t===document.activeElement){var n=Xa??ge;if(a.has(n))return}pn(t)&&r===vn(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function pn(t){var e=t.type;return e==="number"||e==="range"}function vn(t){return t===""?null:+t}const Dr=class Dr{constructor(e){ve(this,Mr);ve(this,Si,new WeakMap);ve(this,fa);ve(this,Fa);ce(this,Fa,e)}observe(e,i){var a=D(this,Si).get(e)||new Set;return a.add(i),D(this,Si).set(e,a),Ce(this,Mr,fs).call(this).observe(e,D(this,Fa)),()=>{var r=D(this,Si).get(e);r.delete(i),r.size===0&&(D(this,Si).delete(e),D(this,fa).unobserve(e))}}};Si=new WeakMap,fa=new WeakMap,Fa=new WeakMap,Mr=new WeakSet,fs=function(){return D(this,fa)??ce(this,fa,new ResizeObserver(e=>{for(var i of e){Dr.entries.set(i.target,i);for(var a of D(this,Si).get(i.target)||[])a(i)}}))},Lt(Dr,"entries",new WeakMap);let fn=Dr;var Yc=new fn({box:"border-box"});function Et(t,e,i){var a=Yc.observe(t,()=>i(t[e]));Ai(()=>(Vt(()=>i(t[e])),a))}function vo(t,e){return t===e||(t==null?void 0:t[qt])===e}function Je(t={},e,i,a){return Ai(()=>{var r,n;return tr(()=>{r=n,n=[],Vt(()=>{t!==i(...n)&&(e(t,...n),r&&vo(i(...r),t)&&e(null,...r))})}),()=>{$t(()=>{n&&vo(i(...n),t)&&e(null,...n)})}}),t}function Ia(t,e){hc(window,["resize"],()=>ji(()=>e(window[t])))}function hn(t=!1){const e=ke,i=e.l.u;if(!i)return;let a=()=>Yl(e.s);if(t){let r=0,n={};const l=ba(()=>{let s=!1;const c=e.s;for(const d in c)c[d]!==n[d]&&(n[d]=c[d],s=!0);return s&&r++,r});a=()=>o(l)}i.b.length&&yc(()=>{fo(e,a),Hr(i.b)}),Fe(()=>{const r=Vt(()=>i.m.map(xs));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Fe(()=>{fo(e,a),Hr(i.a)})}function fo(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let cr=!1;function Jc(t){var e=cr;try{return cr=!1,[t(),cr]}finally{cr=e}}const Qc={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ho(t,e,i){return new Proxy({props:t,exclude:e},Qc)}const Xc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ui(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(t,e,i){let a=t.props.length;for(;a--;){let r=t.props[a];Ui(r)&&(r=r());const n=pi(r,e);if(n&&n.set)return n.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ui(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=pi(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===qt||e===il)return!1;for(let i of t.props)if(Ui(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Ui(i)&&(i=i()),!!i){for(const a in i)e.includes(a)||e.push(a);for(const a of Object.getOwnPropertySymbols(i))e.includes(a)||e.push(a)}return e}};function gn(...t){return new Proxy({props:t},Xc)}function N(t,e,i,a){var x;var r=!Zi||(i&qs)!==0,n=(i&Ns)!==0,l=(i&Os)!==0,s=a,c=!0,d=()=>(c&&(c=!1,s=l?Vt(a):a),s),u;if(n){var p=qt in t||il in t;u=((x=pi(t,e))==null?void 0:x.set)??(p&&e in t?_=>t[e]=_:void 0)}var v,h=!1;n?[v,h]=Jc(()=>t[e]):v=t[e],v===void 0&&a!==void 0&&(v=d(),u&&(r&&Cs(),u(v)));var g;if(r?g=()=>{var _=t[e];return _===void 0?d():(c=!0,_)}:g=()=>{var _=t[e];return _!==void 0&&(s=void 0),_===void 0?s:_},r&&!(i&Rs))return g;if(u){var m=t.$$legacy;return function(_,z){return arguments.length>0?((!r||!z||m||h)&&u(z?g():_),_):g()}}var w=!1,y=(i&Ds?ba:er)(()=>(w=!1,g()));n&&o(y);var k=we;return function(_,z){if(arguments.length>0){const C=z?o(y):r&&n?je(_):_;return R(y,C),w=!0,s!==void 0&&(s=C),_}return Li&&w||k.f&Xt?y.v:o(y)}}function nt(t){ke===null&&Kr(),Zi&&ke.l!==null?$c(ke).m.push(t):Fe(()=>{const e=Vt(t);if(typeof e=="function")return e})}function dr(t){ke===null&&Kr(),nt(()=>()=>Vt(t))}function $c(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const ed="5";typeof window<"u"&&((os=window.__svelte??(window.__svelte={})).v??(os.v=new Set)).add(ed);function yi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const td="https://www.playpilot.com",id="https://partner-api.playpilot.tech/1.0",ad="https://img-external.playpilot.tech",rd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ai=600,mn={};async function ri(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!ur()&&i==="GET";if(r&&t in mn)return mn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(id+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const s=await l.text();let c=s;try{s&&(c=JSON.parse(s))}catch{}return r&&(mn[t]=c),c}const go="EncryptedToken",mo="articleReplacementEditToken",nd="playpilot-editorial-mode";async function yo({href:t=window.location.href,throwError:e=!1}={}){try{const i=yi();if(!i)throw new Error("No token was provided");const a=bo(t);if(!a)throw new Error("Could not be authenticated");return await ri(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),ld(a),!0}catch(i){if(console.error(i),e)throw i}finally{od()}return!1}function bo(t=""){var a,r;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const n=new URL(t).searchParams.get(mo);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${go}=`).pop())==null?void 0:r.split(";")[0])||""}function ld(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=go+"="+t+";"+a+";path=/"}function ur(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(nd)==="true"||!!t}function od(){const t=new URL(window.location.href);t.searchParams.delete(mo),window.history.replaceState({},"",t)}function sd(t){let e=0;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);e=e*31+a>>>0}return e.toString(16)}function yn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const f=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function ja(){var a,r;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(f);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(i){if(e.includes(i))return i;const n=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(n)return n}return f.English}function wo(t,e=""){const i=[],a=[t];for(;a.length>0;){const r=a.pop();if(i.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const n=Array.from(r.childNodes).some(c=>{var d;return c.nodeType===Node.TEXT_NODE&&((d=c.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!i.includes(c)&&i.push(c);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)a.push(s[c])}return i}function bn(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),a=document.querySelector(i);if(a)return a}return document.querySelector("article")||document.querySelector("main")||document.body}function xo(t){return t.map(e=>e.innerText).join(`
|
|
4
4
|
|
|
5
|
-
`)}function Aa(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const i=bn(),a=wo(i,(t==null?void 0:t.exclude_elements_selector)||""),r=xo(a);return{parentElement:i,elements:a,pageText:r}}function _o(){const t=bn();return{content_heading:cd(t),content_modified_time:dd(t),content_published_time:ud(t)}}function cd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function dd(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=ko().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?wn(i):null}function ud(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=ko().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?wn(i):null}function wn(t){try{return new Date(t).toISOString()}catch{return null}}function ko(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(i=>i.textContent.includes("dateModified")||i.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Mi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function xn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function pd(t){return!!(t.exclude_urls_pattern&&Mi().match(new RegExp(t.exclude_urls_pattern)))}let _n=null;async function pr({url:t=Mi(),params:e={},method:i="GET"}={}){const a=yi(),r=ur()?await yo():!1,n=ja();if(!a)throw new Error("No token was provided");const l=`/external-pages/?api-token=${a}&include_title_details=true${r?"&editorial_mode_enabled=true":""}&language=${n}`;let s;if(i==="POST"){const{pageText:c}=Aa();e.run_ai&&(e.hash=sd(c||""),e.page_text=c),e.url=t,e.metadata=_o(),s=await ri(l,{method:"POST",body:e})}else s=await ri(l+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function So({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:i=3e3,maxTries:a=600,onpoll:r=()=>null}={}){let n=0;_n&&clearTimeout(_n);const l=async(s,c)=>{let d;try{try{d=await pr()}catch(p){throw console.error(p),(p==null?void 0:p.status)===404&&(d=await pr({method:"POST"}),d.ai_enabled&&(d=await pr({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:u}=Aa();if(d&&e&&(d=await vd(u,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=To(d.manual_injections||[]),d.ai_injections=To(d.ai_injections||[]),s(d);return}catch{if(n++,n>=a){a>1&&console.error("Max poll limit exceeded. Please return later."),s();return}d&&r(d),_n=setTimeout(()=>l(s),i)}};return new Promise(l)}async function vd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=_o().content_modified_time,a=e.content_modified_time?wn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await pr({params:{run_ai:!0},method:"POST"})}function To(t){return t.map(e=>({...e,key:fd(e.sid)}))}function fd(t){return t+"-"+yn()}function hd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function gd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function md(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function kn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Eo(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function Po(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function yd(t,e,i,a){const r=md(e),n=kn(e),l=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),u=s.replace(d,i);return l+u}function bd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function bi(t){return kn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function wd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=Co(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),s=Co(zo(n,2)),c=zo(l,2);return{before:s,after:c}}function Co(t){return t.split("").reverse().join("")}function zo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function vr(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function xd(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,s=i?t.indexOf(i,l):t.length;if(i&&s===-1)break;const c=t.slice(l,s);a.push({match:c,index:l}),r=i?s+i.length:t.length+1}return a}function _d(t,e,i,a){const n=xd(t,i,a).filter(({match:s})=>kn(s).includes(e));return n.length?n.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function kd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function Sd(t,e,i=0){const a=e.innerHTML,r=[],n=Td(e);let l=a.indexOf(t);for(;l!==-1;)gd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function Td(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let s=0;s<i.length;s++){const c=i[s];if(!r&&!a&&c==="<"){a=!0,n&&(e.push({start:l,end:s}),n=!1);continue}if(a&&c==='"'&&(r=!r),a&&!r&&c===">"){a=!1;continue}!a&&!r&&!n&&(l=s,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function Ed(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function Io(t){return t.ctrlKey||t.metaKey||t.button!==0}const oe={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Pt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},wi={Card:"tpi_card",Link:"tpi_link"};function Pd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function fr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const hr=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Cd(t=[]){return t.map(e=>{var i;return((i=hr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Sn="playpilot_user_id";function zd(){if(!jo())return null;try{const t=localStorage.getItem(Sn);return t||(localStorage.setItem(Sn,yn(16)),localStorage.getItem(Sn))}catch{return null}}function jo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&>("tracking")}const Id="https://insights.playpilot.net";async function se(t,e=null,i={}){var r,n,l,s,c;if(fr())return;if(!gt("tracking")){Ad(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Cd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),jo()&&(i.user_id=zd(),i.region=window.PlayPilotLinkInjections.region),i.version="8.14.0-beta.2",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Mi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>ai?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(Id,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),jd({event:t,payload:i})}function jd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Ao({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Ad(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function Ld(){if(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])se(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Lo(){if(!gt("ads"))return[];const t=yi();if(!t)throw new Error("No token was provided");try{return await ri(`/ads/browse/?api-token=${t}`)}catch(e){throw se(oe.AdsFetchFailed,null,{status:e.status}),e}}function La(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Md(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function Tn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(a=s==null?void 0:s.country)==null?void 0:a.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),Dd(c),c}catch(l){return se(oe.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Dd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function gr(t={}){const e=yi();if(!e)throw new Error("No token was provided");return t={...t,language:ja(),include_count:"false"},t.region!==null&&(t.region=t.region||await Tn()),await ri(`/titles/browse?api-token=${e}&`+xn(t))}async function Mo(t){return(await gr({related_to_sid:t.sid})).results}async function Do(t){const i=(await gr({sids:t})).results[0];if(!i)throw new Error("No title was returned for sid: "+t);return i}const qd={"Where To Stream Online":{[f.English]:"Where to stream online",[f.Swedish]:"Var kan man streama online",[f.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[f.English]:"We may earn a commission from purchases made through some of the links below.",[f.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[f.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[f.English]:"An error occurred",[f.Swedish]:"Ett fel inträffade",[f.Danish]:"Der opstod en fejl"},Loading:{[f.English]:"Loading",[f.Swedish]:"Laddar",[f.Danish]:"Indlæser"},"Title Unavailable":{[f.English]:"This title is not currently available to stream.",[f.Swedish]:"Den här titeln går inte att streama just nu.",[f.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[f.English]:"is not currently available to stream.",[f.Swedish]:"går inte att streama just nu.",[f.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[f.English]:"is available to stream on",[f.Swedish]:"finns att streama på",[f.Danish]:"kan streames på"},"Is Available To Stream":{[f.English]:"is available to stream.",[f.Swedish]:"finns att streama.",[f.Danish]:"kan streames."},"View Streaming Options":{[f.English]:"View streaming options",[f.Swedish]:"Se streamingalternativ",[f.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[f.English]:"and",[f.Swedish]:"och",[f.Danish]:"og"},Minutes:{[f.English]:"minutes",[f.Swedish]:"minuter",[f.Danish]:"minutter"},"Type: movie":{[f.English]:"Movie",[f.Swedish]:"Film",[f.Danish]:"Film"},"Type: series":{[f.English]:"Series",[f.Swedish]:"Serie",[f.Danish]:"Serie"},Stream:{[f.English]:"Stream",[f.Swedish]:"Streama",[f.Danish]:"Stream"},Buy:{[f.English]:"Buy",[f.Swedish]:"Köp",[f.Danish]:"Køb"},Rent:{[f.English]:"Rent",[f.Swedish]:"Hyr",[f.Danish]:"Lej"},"Rent Or Buy":{[f.English]:"Rent or Buy",[f.Swedish]:"Hyr/köp",[f.Danish]:"Lej eller køb"},Watch:{[f.English]:"Watch",[f.Swedish]:"Titta nu",[f.Danish]:"Se nu"},"Category: AVOD":{[f.English]:"Stream for free",[f.Swedish]:"Streama gratis",[f.Danish]:"Stream gratis"},"Category: SVOD":{[f.English]:"Streaming services",[f.Swedish]:"Streamingtjänster",[f.Danish]:"Streamingtjenester"},"Category: RENT":{[f.English]:"Rent it",[f.Swedish]:"Hyr den",[f.Danish]:"Lej den"},"Category: BUY":{[f.English]:"Buy it",[f.Swedish]:"Köp den",[f.Danish]:"Køb den"},"Category: Other":{[f.English]:"Other",[f.Swedish]:"Annat",[f.Danish]:"Andet"},Share:{[f.English]:"Share",[f.Swedish]:"Dela",[f.Danish]:"Del"},"Copy URL":{[f.English]:"Copy URL",[f.Swedish]:"Kopiera URL",[f.Danish]:"Kopiér URL"},Email:{[f.English]:"Email",[f.Swedish]:"E-post",[f.Danish]:"E-mail"},"Show More":{[f.English]:"Show more",[f.Swedish]:"Visa mer",[f.Danish]:"Vis mere"},Cast:{[f.English]:"Cast",[f.Swedish]:"Rollista",[f.Danish]:"Skuespillere"},"Similar Titles":{[f.English]:"Similar movies & shows",[f.Swedish]:"Liknande filmer och serier",[f.Danish]:"Lignende film og serier"},"Watch Trailer":{[f.English]:"Watch trailer",[f.Swedish]:"Se trailer",[f.Danish]:"Se trailer"},"Streaming Guide":{[f.English]:"Streaming Guide",[f.Swedish]:"Streaming Guide",[f.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[f.English]:"Discover and search all movies and tv-shows",[f.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[f.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Description":{[f.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[f.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[f.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[f.English]:"Search movies and shows",[f.Swedish]:"Sök filmer och serier",[f.Danish]:"Søg film og serier"},Services:{[f.English]:"Services",[f.Swedish]:"Tjänster",[f.Danish]:"Tjenester"},Genres:{[f.English]:"Genres",[f.Swedish]:"Genrer",[f.Danish]:"Genrer"},IMDb:{[f.English]:"IMDb",[f.Swedish]:"IMDb",[f.Danish]:"IMDb"},Year:{[f.English]:"Year",[f.Swedish]:"År",[f.Danish]:"År"},Runtime:{[f.English]:"Runtime",[f.Swedish]:"Speltid",[f.Danish]:"Spilletid"},Countries:{[f.English]:"Countries",[f.Swedish]:"Länder",[f.Danish]:"Lande"},"All Filters":{[f.English]:"All filters",[f.Swedish]:"Alla filter",[f.Danish]:"Alle filtre"},"Sort By":{[f.English]:"Sort by",[f.Swedish]:"Sortera efter",[f.Danish]:"Sortér efter"},Popularity:{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},New:{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"Top Rated":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},"-popularity":{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},"-new":{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"-best":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},Search:{[f.English]:"Search",[f.Swedish]:"Sök",[f.Danish]:"Søg"},"Born On":{[f.English]:"Born on",[f.Swedish]:"Född den",[f.Danish]:"Født den"},"Died On":{[f.English]:"Died on",[f.Swedish]:"Död den",[f.Danish]:"Død den"},Credits:{[f.English]:"Credits",[f.Swedish]:"Medverkande",[f.Danish]:"Medvirkende"},Home:{[f.English]:"Home",[f.Swedish]:"Hem",[f.Danish]:"Hjem"},Explore:{[f.English]:"Explore",[f.Swedish]:"Utforska",[f.Danish]:"Udforsk"},"Page Not Found":{[f.English]:"Page not found",[f.Swedish]:"Sidan hittades inte",[f.Danish]:"Siden blev ikke fundet"},"List: Trending":{[f.English]:"Trending Movies & Shows",[f.Swedish]:"Trendande Titlar",[f.Danish]:"Populære film og serier"},"List: Upcoming":{[f.English]:"Upcoming Releases",[f.Swedish]:"Kommande Premiärer",[f.Danish]:"Mest ventede film"},"List: New":{[f.English]:"New Releases",[f.Swedish]:"Nya Filmer & Serier",[f.Danish]:"Nye film og serier"},"List: Demand":{[f.English]:"Always in Demand",[f.Swedish]:"Tidlösa Favoriter",[f.Danish]:"Tidløse favoritter"},"List: Cinema":{[f.English]:"Coming to Cinemas",[f.Swedish]:"Snart på Bio",[f.Danish]:"Kommende film"},All:{[f.English]:"All",[f.Swedish]:"Alla",[f.Danish]:"Alle"},Unscripted:{[f.English]:"Unscripted",[f.Swedish]:"Oscripterat",[f.Danish]:"Umanuskriptet"},Independent:{[f.English]:"Independent",[f.Swedish]:"Indie",[f.Danish]:"Indie"},"Game Show":{[f.English]:"Game Show",[f.Swedish]:"Gameshow",[f.Danish]:"Quizshow"},"Film Noir":{[f.English]:"Film Noir",[f.Swedish]:"Film noir",[f.Danish]:"Film noir"},Entertainment:{[f.English]:"Entertainment",[f.Swedish]:"Underhållning",[f.Danish]:"Underholdning"},News:{[f.English]:"News",[f.Swedish]:"Nyheter",[f.Danish]:"Nyheder"},Short:{[f.English]:"Short",[f.Swedish]:"Kortfilm",[f.Danish]:"Kortfilm"},Bollywood:{[f.English]:"Bollywood",[f.Swedish]:"Bollywood",[f.Danish]:"Bollywood"},Concert:{[f.English]:"Concert",[f.Swedish]:"Konsert",[f.Danish]:"Koncert"},Arthouse:{[f.English]:"Arthouse",[f.Swedish]:"Arthouse",[f.Danish]:"Arthouse"},"Alternate Version":{[f.English]:"Alternate Version",[f.Swedish]:"Alternativ version",[f.Danish]:"Alternativ version"},"Reality TV":{[f.English]:"Reality TV",[f.Swedish]:"Reality-TV",[f.Danish]:"Reality-TV"},Culture:{[f.English]:"Culture",[f.Swedish]:"Kultur",[f.Danish]:"Kultur"},Drama:{[f.English]:"Drama",[f.Swedish]:"Drama",[f.Danish]:"Drama"},Crime:{[f.English]:"Crime",[f.Swedish]:"Kriminal",[f.Danish]:"Krimi"},Western:{[f.English]:"Western",[f.Swedish]:"Western",[f.Danish]:"Western"},Thriller:{[f.English]:"Thriller",[f.Swedish]:"Thriller",[f.Danish]:"Thriller"},Animation:{[f.English]:"Animation",[f.Swedish]:"Animerat",[f.Danish]:"Animation"},Mystery:{[f.English]:"Mystery",[f.Swedish]:"Mysterium",[f.Danish]:"Mysterium"},Science:{[f.English]:"Science",[f.Swedish]:"Vetenskap",[f.Danish]:"Videnskab"},Nature:{[f.English]:"Nature",[f.Swedish]:"Natur",[f.Danish]:"Natur"},War:{[f.English]:"War",[f.Swedish]:"Krig",[f.Danish]:"Krig"},"Sci-Fi":{[f.English]:"Sci-Fi",[f.Swedish]:"Sci-fi",[f.Danish]:"Sci-fi"},Documentary:{[f.English]:"Documentary",[f.Swedish]:"Dokumentär",[f.Danish]:"Dokumentar"},"Stand-up":{[f.English]:"Stand-up",[f.Swedish]:"Standup",[f.Danish]:"Stand-up"},"Talk Show":{[f.English]:"Talk Show",[f.Swedish]:"Talkshow",[f.Danish]:"Talkshow"},Fantasy:{[f.English]:"Fantasy",[f.Swedish]:"Fantasy",[f.Danish]:"Fantasy"},History:{[f.English]:"History",[f.Swedish]:"Historia",[f.Danish]:"Historie"},Adventure:{[f.English]:"Adventure",[f.Swedish]:"Äventyr",[f.Danish]:"Eventyr"},Action:{[f.English]:"Action",[f.Swedish]:"Action",[f.Danish]:"Action"},Horror:{[f.English]:"Horror",[f.Swedish]:"Skräck",[f.Danish]:"Gyser"},Comedy:{[f.English]:"Comedy",[f.Swedish]:"Komedi",[f.Danish]:"Komedie"},Biography:{[f.English]:"Biography",[f.Swedish]:"Biografi",[f.Danish]:"Biografi"},Music:{[f.English]:"Music",[f.Swedish]:"Musik",[f.Danish]:"Musik"},Sport:{[f.English]:"Sport",[f.Swedish]:"Sport",[f.Danish]:"Sport"},Romance:{[f.English]:"Romance",[f.Swedish]:"Romantik",[f.Danish]:"Romantik"},Kids:{[f.English]:"Kids",[f.Swedish]:"Barn",[f.Danish]:"Børn"},Lifestyle:{[f.English]:"Lifestyle",[f.Swedish]:"Livsstil",[f.Danish]:"Livsstil"},Musical:{[f.English]:"Musical",[f.Swedish]:"Musikal",[f.Danish]:"Musical"},Anime:{[f.English]:"Anime",[f.Swedish]:"Anime",[f.Danish]:"Anime"},Family:{[f.English]:"Family",[f.Swedish]:"Familj",[f.Danish]:"Familie"}};function ae(t,e=ja()){var i;return((i=qd[t])==null?void 0:i[e])||t}const mr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Rd=t=>t;function qo(t){const e=t-1;return e*e*e+1}function Ro(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ni(t,{delay:e=0,duration:i=400,easing:a=Rd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Ma(t,{delay:e=0,duration:i=400,easing:a=qo,x:r=0,y:n=0,opacity:l=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,u=c*(1-l),[p,v]=Ro(r),[h,g]=Ro(n);return{delay:e,duration:i,easing:a,css:(m,w)=>`
|
|
5
|
+
`)}function Aa(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const i=bn(),a=wo(i,(t==null?void 0:t.exclude_elements_selector)||""),r=xo(a);return{parentElement:i,elements:a,pageText:r}}function _o(){const t=bn();return{content_heading:cd(t),content_modified_time:dd(t),content_published_time:ud(t)}}function cd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function dd(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=ko().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?wn(i):null}function ud(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=ko().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?wn(i):null}function wn(t){try{return new Date(t).toISOString()}catch{return null}}function ko(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(i=>i.textContent.includes("dateModified")||i.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Mi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function xn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function pd(t){return!!(t.exclude_urls_pattern&&Mi().match(new RegExp(t.exclude_urls_pattern)))}let _n=null;async function pr({url:t=Mi(),params:e={},method:i="GET"}={}){const a=yi(),r=ur()?await yo():!1,n=ja();if(!a)throw new Error("No token was provided");const l=`/external-pages/?api-token=${a}&include_title_details=true${r?"&editorial_mode_enabled=true":""}&language=${n}`;let s;if(i==="POST"){const{pageText:c}=Aa();e.run_ai&&(e.hash=sd(c||""),e.page_text=c),e.url=t,e.metadata=_o(),s=await ri(l,{method:"POST",body:e})}else s=await ri(l+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function So({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:i=3e3,maxTries:a=600,onpoll:r=()=>null}={}){let n=0;_n&&clearTimeout(_n);const l=async(s,c)=>{let d;try{try{d=await pr()}catch(p){throw console.error(p),(p==null?void 0:p.status)===404&&(d=await pr({method:"POST"}),d.ai_enabled&&(d=await pr({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:u}=Aa();if(d&&e&&(d=await vd(u,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=To(d.manual_injections||[]),d.ai_injections=To(d.ai_injections||[]),s(d);return}catch{if(n++,n>=a){a>1&&console.error("Max poll limit exceeded. Please return later."),s();return}d&&r(d),_n=setTimeout(()=>l(s),i)}};return new Promise(l)}async function vd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=_o().content_modified_time,a=e.content_modified_time?wn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await pr({params:{run_ai:!0},method:"POST"})}function To(t){return t.map(e=>({...e,key:fd(e.sid)}))}function fd(t){return t+"-"+yn()}function hd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function gd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function md(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function kn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Eo(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function Po(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function yd(t,e,i,a){const r=md(e),n=kn(e),l=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),u=s.replace(d,i);return l+u}function bd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function bi(t){return kn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function wd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=Co(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),s=Co(zo(n,2)),c=zo(l,2);return{before:s,after:c}}function Co(t){return t.split("").reverse().join("")}function zo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function vr(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function xd(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,s=i?t.indexOf(i,l):t.length;if(i&&s===-1)break;const c=t.slice(l,s);a.push({match:c,index:l}),r=i?s+i.length:t.length+1}return a}function _d(t,e,i,a){const n=xd(t,i,a).filter(({match:s})=>kn(s).includes(e));return n.length?n.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function kd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function Sd(t,e,i=0){const a=e.innerHTML,r=[],n=Td(e);let l=a.indexOf(t);for(;l!==-1;)gd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function Td(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let s=0;s<i.length;s++){const c=i[s];if(!r&&!a&&c==="<"){a=!0,n&&(e.push({start:l,end:s}),n=!1);continue}if(a&&c==='"'&&(r=!r),a&&!r&&c===">"){a=!1;continue}!a&&!r&&!n&&(l=s,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function Ed(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function Io(t){return t.ctrlKey||t.metaKey||t.button!==0}const oe={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Pt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},wi={Card:"tpi_card",Link:"tpi_link"};function Pd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function fr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const hr=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Cd(t=[]){return t.map(e=>{var i;return((i=hr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Sn="playpilot_user_id";function zd(){if(!jo())return null;try{const t=localStorage.getItem(Sn);return t||(localStorage.setItem(Sn,yn(16)),localStorage.getItem(Sn))}catch{return null}}function jo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&>("tracking")}const Id="https://insights.playpilot.net";async function se(t,e=null,i={}){var r,n,l,s,c;if(fr())return;if(!gt("tracking")){Ad(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Cd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),jo()&&(i.user_id=zd(),i.region=window.PlayPilotLinkInjections.region),i.version="8.14.0-beta.4",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Mi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>ai?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(Id,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),jd({event:t,payload:i})}function jd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Ao({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Ad(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function Ld(){if(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])se(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Lo(){if(!gt("ads"))return[];const t=yi();if(!t)throw new Error("No token was provided");try{return await ri(`/ads/browse/?api-token=${t}`)}catch(e){throw se(oe.AdsFetchFailed,null,{status:e.status}),e}}function La(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Md(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function Tn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(a=s==null?void 0:s.country)==null?void 0:a.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),Dd(c),c}catch(l){return se(oe.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Dd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function gr(t={}){const e=yi();if(!e)throw new Error("No token was provided");return t={...t,language:ja(),include_count:"false"},t.region!==null&&(t.region=t.region||await Tn()),await ri(`/titles/browse?api-token=${e}&`+xn(t))}async function Mo(t){return(await gr({related_to_sid:t.sid})).results}async function Do(t){const i=(await gr({sids:t,no_region_filter:!0})).results[0];if(!i)throw new Error("No title was returned for sid: "+t);return i}const qd={"Where To Stream Online":{[f.English]:"Where to stream online",[f.Swedish]:"Var kan man streama online",[f.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[f.English]:"We may earn a commission from purchases made through some of the links below.",[f.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[f.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[f.English]:"An error occurred",[f.Swedish]:"Ett fel inträffade",[f.Danish]:"Der opstod en fejl"},Loading:{[f.English]:"Loading",[f.Swedish]:"Laddar",[f.Danish]:"Indlæser"},"Title Unavailable":{[f.English]:"This title is not currently available to stream.",[f.Swedish]:"Den här titeln går inte att streama just nu.",[f.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[f.English]:"is not currently available to stream.",[f.Swedish]:"går inte att streama just nu.",[f.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[f.English]:"is available to stream on",[f.Swedish]:"finns att streama på",[f.Danish]:"kan streames på"},"Is Available To Stream":{[f.English]:"is available to stream.",[f.Swedish]:"finns att streama.",[f.Danish]:"kan streames."},"View Streaming Options":{[f.English]:"View streaming options",[f.Swedish]:"Se streamingalternativ",[f.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[f.English]:"and",[f.Swedish]:"och",[f.Danish]:"og"},Minutes:{[f.English]:"minutes",[f.Swedish]:"minuter",[f.Danish]:"minutter"},"Type: movie":{[f.English]:"Movie",[f.Swedish]:"Film",[f.Danish]:"Film"},"Type: series":{[f.English]:"Series",[f.Swedish]:"Serie",[f.Danish]:"Serie"},Stream:{[f.English]:"Stream",[f.Swedish]:"Streama",[f.Danish]:"Stream"},Buy:{[f.English]:"Buy",[f.Swedish]:"Köp",[f.Danish]:"Køb"},Rent:{[f.English]:"Rent",[f.Swedish]:"Hyr",[f.Danish]:"Lej"},"Rent Or Buy":{[f.English]:"Rent or Buy",[f.Swedish]:"Hyr/köp",[f.Danish]:"Lej eller køb"},Watch:{[f.English]:"Watch",[f.Swedish]:"Titta nu",[f.Danish]:"Se nu"},"Category: AVOD":{[f.English]:"Stream for free",[f.Swedish]:"Streama gratis",[f.Danish]:"Stream gratis"},"Category: SVOD":{[f.English]:"Streaming services",[f.Swedish]:"Streamingtjänster",[f.Danish]:"Streamingtjenester"},"Category: RENT":{[f.English]:"Rent it",[f.Swedish]:"Hyr den",[f.Danish]:"Lej den"},"Category: BUY":{[f.English]:"Buy it",[f.Swedish]:"Köp den",[f.Danish]:"Køb den"},"Category: Other":{[f.English]:"Other",[f.Swedish]:"Annat",[f.Danish]:"Andet"},Share:{[f.English]:"Share",[f.Swedish]:"Dela",[f.Danish]:"Del"},"Copy URL":{[f.English]:"Copy URL",[f.Swedish]:"Kopiera URL",[f.Danish]:"Kopiér URL"},Email:{[f.English]:"Email",[f.Swedish]:"E-post",[f.Danish]:"E-mail"},"Show More":{[f.English]:"Show more",[f.Swedish]:"Visa mer",[f.Danish]:"Vis mere"},Cast:{[f.English]:"Cast",[f.Swedish]:"Rollista",[f.Danish]:"Skuespillere"},"Similar Titles":{[f.English]:"Similar movies & shows",[f.Swedish]:"Liknande filmer och serier",[f.Danish]:"Lignende film og serier"},"Watch Trailer":{[f.English]:"Watch trailer",[f.Swedish]:"Se trailer",[f.Danish]:"Se trailer"},"Streaming Guide":{[f.English]:"Streaming Guide",[f.Swedish]:"Streaming Guide",[f.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[f.English]:"Discover and search all movies and tv-shows",[f.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[f.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Description":{[f.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[f.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[f.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[f.English]:"Search movies and shows",[f.Swedish]:"Sök filmer och serier",[f.Danish]:"Søg film og serier"},Services:{[f.English]:"Services",[f.Swedish]:"Tjänster",[f.Danish]:"Tjenester"},Genres:{[f.English]:"Genres",[f.Swedish]:"Genrer",[f.Danish]:"Genrer"},IMDb:{[f.English]:"IMDb",[f.Swedish]:"IMDb",[f.Danish]:"IMDb"},Year:{[f.English]:"Year",[f.Swedish]:"År",[f.Danish]:"År"},Runtime:{[f.English]:"Runtime",[f.Swedish]:"Speltid",[f.Danish]:"Spilletid"},Countries:{[f.English]:"Countries",[f.Swedish]:"Länder",[f.Danish]:"Lande"},"All Filters":{[f.English]:"All filters",[f.Swedish]:"Alla filter",[f.Danish]:"Alle filtre"},"Sort By":{[f.English]:"Sort by",[f.Swedish]:"Sortera efter",[f.Danish]:"Sortér efter"},Popularity:{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},New:{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"Top Rated":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},"-popularity":{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},"-new":{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"-best":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},Search:{[f.English]:"Search",[f.Swedish]:"Sök",[f.Danish]:"Søg"},"Born On":{[f.English]:"Born on",[f.Swedish]:"Född den",[f.Danish]:"Født den"},"Died On":{[f.English]:"Died on",[f.Swedish]:"Död den",[f.Danish]:"Død den"},Credits:{[f.English]:"Credits",[f.Swedish]:"Medverkande",[f.Danish]:"Medvirkende"},Home:{[f.English]:"Home",[f.Swedish]:"Hem",[f.Danish]:"Hjem"},Explore:{[f.English]:"Explore",[f.Swedish]:"Utforska",[f.Danish]:"Udforsk"},"Page Not Found":{[f.English]:"Page not found",[f.Swedish]:"Sidan hittades inte",[f.Danish]:"Siden blev ikke fundet"},"List: Trending":{[f.English]:"Trending Movies & Shows",[f.Swedish]:"Trendande Titlar",[f.Danish]:"Populære film og serier"},"List: Upcoming":{[f.English]:"Upcoming Releases",[f.Swedish]:"Kommande Premiärer",[f.Danish]:"Mest ventede film"},"List: New":{[f.English]:"New Releases",[f.Swedish]:"Nya Filmer & Serier",[f.Danish]:"Nye film og serier"},"List: Demand":{[f.English]:"Always in Demand",[f.Swedish]:"Tidlösa Favoriter",[f.Danish]:"Tidløse favoritter"},"List: Cinema":{[f.English]:"Coming to Cinemas",[f.Swedish]:"Snart på Bio",[f.Danish]:"Kommende film"},All:{[f.English]:"All",[f.Swedish]:"Alla",[f.Danish]:"Alle"},Unscripted:{[f.English]:"Unscripted",[f.Swedish]:"Oscripterat",[f.Danish]:"Umanuskriptet"},Independent:{[f.English]:"Independent",[f.Swedish]:"Indie",[f.Danish]:"Indie"},"Game Show":{[f.English]:"Game Show",[f.Swedish]:"Gameshow",[f.Danish]:"Quizshow"},"Film Noir":{[f.English]:"Film Noir",[f.Swedish]:"Film noir",[f.Danish]:"Film noir"},Entertainment:{[f.English]:"Entertainment",[f.Swedish]:"Underhållning",[f.Danish]:"Underholdning"},News:{[f.English]:"News",[f.Swedish]:"Nyheter",[f.Danish]:"Nyheder"},Short:{[f.English]:"Short",[f.Swedish]:"Kortfilm",[f.Danish]:"Kortfilm"},Bollywood:{[f.English]:"Bollywood",[f.Swedish]:"Bollywood",[f.Danish]:"Bollywood"},Concert:{[f.English]:"Concert",[f.Swedish]:"Konsert",[f.Danish]:"Koncert"},Arthouse:{[f.English]:"Arthouse",[f.Swedish]:"Arthouse",[f.Danish]:"Arthouse"},"Alternate Version":{[f.English]:"Alternate Version",[f.Swedish]:"Alternativ version",[f.Danish]:"Alternativ version"},"Reality TV":{[f.English]:"Reality TV",[f.Swedish]:"Reality-TV",[f.Danish]:"Reality-TV"},Culture:{[f.English]:"Culture",[f.Swedish]:"Kultur",[f.Danish]:"Kultur"},Drama:{[f.English]:"Drama",[f.Swedish]:"Drama",[f.Danish]:"Drama"},Crime:{[f.English]:"Crime",[f.Swedish]:"Kriminal",[f.Danish]:"Krimi"},Western:{[f.English]:"Western",[f.Swedish]:"Western",[f.Danish]:"Western"},Thriller:{[f.English]:"Thriller",[f.Swedish]:"Thriller",[f.Danish]:"Thriller"},Animation:{[f.English]:"Animation",[f.Swedish]:"Animerat",[f.Danish]:"Animation"},Mystery:{[f.English]:"Mystery",[f.Swedish]:"Mysterium",[f.Danish]:"Mysterium"},Science:{[f.English]:"Science",[f.Swedish]:"Vetenskap",[f.Danish]:"Videnskab"},Nature:{[f.English]:"Nature",[f.Swedish]:"Natur",[f.Danish]:"Natur"},War:{[f.English]:"War",[f.Swedish]:"Krig",[f.Danish]:"Krig"},"Sci-Fi":{[f.English]:"Sci-Fi",[f.Swedish]:"Sci-fi",[f.Danish]:"Sci-fi"},Documentary:{[f.English]:"Documentary",[f.Swedish]:"Dokumentär",[f.Danish]:"Dokumentar"},"Stand-up":{[f.English]:"Stand-up",[f.Swedish]:"Standup",[f.Danish]:"Stand-up"},"Talk Show":{[f.English]:"Talk Show",[f.Swedish]:"Talkshow",[f.Danish]:"Talkshow"},Fantasy:{[f.English]:"Fantasy",[f.Swedish]:"Fantasy",[f.Danish]:"Fantasy"},History:{[f.English]:"History",[f.Swedish]:"Historia",[f.Danish]:"Historie"},Adventure:{[f.English]:"Adventure",[f.Swedish]:"Äventyr",[f.Danish]:"Eventyr"},Action:{[f.English]:"Action",[f.Swedish]:"Action",[f.Danish]:"Action"},Horror:{[f.English]:"Horror",[f.Swedish]:"Skräck",[f.Danish]:"Gyser"},Comedy:{[f.English]:"Comedy",[f.Swedish]:"Komedi",[f.Danish]:"Komedie"},Biography:{[f.English]:"Biography",[f.Swedish]:"Biografi",[f.Danish]:"Biografi"},Music:{[f.English]:"Music",[f.Swedish]:"Musik",[f.Danish]:"Musik"},Sport:{[f.English]:"Sport",[f.Swedish]:"Sport",[f.Danish]:"Sport"},Romance:{[f.English]:"Romance",[f.Swedish]:"Romantik",[f.Danish]:"Romantik"},Kids:{[f.English]:"Kids",[f.Swedish]:"Barn",[f.Danish]:"Børn"},Lifestyle:{[f.English]:"Lifestyle",[f.Swedish]:"Livsstil",[f.Danish]:"Livsstil"},Musical:{[f.English]:"Musical",[f.Swedish]:"Musikal",[f.Danish]:"Musical"},Anime:{[f.English]:"Anime",[f.Swedish]:"Anime",[f.Danish]:"Anime"},Family:{[f.English]:"Family",[f.Swedish]:"Familj",[f.Danish]:"Familie"}};function ae(t,e=ja()){var i;return((i=qd[t])==null?void 0:i[e])||t}const mr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Rd=t=>t;function qo(t){const e=t-1;return e*e*e+1}function Ro(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ni(t,{delay:e=0,duration:i=400,easing:a=Rd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Ma(t,{delay:e=0,duration:i=400,easing:a=qo,x:r=0,y:n=0,opacity:l=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,u=c*(1-l),[p,v]=Ro(r),[h,g]=Ro(n);return{delay:e,duration:i,easing:a,css:(m,w)=>`
|
|
6
6
|
transform: ${d} translate(${(1-m)*p}${v}, ${(1-m)*h}${g});
|
|
7
7
|
opacity: ${c-u*w}`}}function oa(t,{delay:e=0,duration:i=400,easing:a=qo,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),s=+l.opacity,c=l.transform==="none"?"":l.transform,d=1-r,u=s*(1-n);return{delay:e,duration:i,easing:a,css:(p,v)=>`
|
|
8
8
|
transform: ${c} scale(${1-d*v});
|
|
9
9
|
opacity: ${s-u*v}
|
|
10
|
-
`}}function yr(t){return t?t.replace("/src/img",""):null}function No(t,e=null){return t!=null&&t.length?`${ad}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Nd=j('<img class="svelte-p6g2a"/>');function br(t,e){ee(e,!0);const i=N(e,"width",3,96),a=N(e,"height",3,144),r=N(e,"lazy",3,!0),n=N(e,"onload",3,()=>null);var l=Nd();F(s=>{le(l,"src",s),le(l,"alt",`Movie poster for '${e.title.title??""}'`),le(l,"width",i()),le(l,"height",a()),le(l,"loading",r()?"lazy":null)},[()=>yr(e.title.standing_poster)]),xe("error",l,({target:s})=>s.src=rd),xe("load",l,function(...s){var c;(c=n())==null||c.apply(this,s)}),b(t,l),te()}var Od=Ye('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function wr(t,e){const i=N(e,"size",3,16);var a=Od();F(()=>{le(a,"width",i()),le(a,"height",i())}),b(t,a)}var Bd=j('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Fd(t,e){const i=N(e,"embeddable_url",3,"");var a=Bd(),r=S(a);Pn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=A(r,2);n.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var l=A(n,2);l.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=S(l);wr(s,{size:24}),De(3,a,()=>ni,()=>({duration:100})),b(t,a)}fe(["click"]);const Hd="1304688689641511",Vd="https://endpoint-youtube-availability.playpilot.workers.dev";async function Oo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Vd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const s=await l.json();return!((r=s.blocked)!=null&&r[e]||!s.blocked&&s.allowed&&!((n=s.allowed)!=null&&n.includes(e)))}catch{return!1}}let xr={};function Ud(t){const e=Hn(),i={onclose:Wd,embeddable_url:t.embeddable_url||""};xr=Ut(Fd,{target:e,props:i})}function Wd(){xr&&(ia(xr,{outro:!0}),xr=null)}function En(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Gd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&En(r.embeddable_url);try{n&&await Oo(n)&&(a=r)}catch{}i++}return a}var Kd=Ye('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Zd=Ye('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Yd=Ye('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Jd(t,e){const i=N(e,"muted",3,!1);var a=Yd(),r=S(a);{var n=s=>{var c=Kd();b(s,c)},l=s=>{var c=Zd();b(s,c)};H(r,s=>{i()?s(n):s(l,!1)})}b(t,a)}var Qd=j('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),Xd=j('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function Pn(t,e){var x;ee(e,!0);const i=N(e,"embeddable_url",3,""),a=N(e,"controls",19,()=>[]),r=N(e,"muted",3,!1),n=N(e,"loop",3,!1),l=N(e,"captions",3,!1),s=N(e,"showMuteControls",3,!1),c=U(()=>En(i())),d=U(()=>{var _,z;return(((z=(_=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:_.video_playtimes)==null?void 0:z[o(c)||""])||1)-1}),u=((x=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:x.replace("#",""))||"fa548a";let p=G(null),v=G(je(r()));nt(()=>{if(!o(c))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let _=o(d);const z=setInterval(()=>{_++,window.PlayPilotLinkInjections.video_playtimes[o(c)]=_},1e3);return()=>clearInterval(z)});function h(_=!o(v)){var z,C;o(v)!=_&&((C=(z=o(p))==null?void 0:z.contentWindow)==null||C.postMessage("mute","*")),R(v,_,!0)}var g={toggleMute:h},m=he(),w=Z(m);{var y=_=>{var z=Xd(),C=Z(z);Je(C,P=>R(p,P),()=>o(p));var L=A(C,2);{var O=P=>{var M=Qd();M.__click=()=>h();var T=S(M);Jd(T,{get muted(){return o(v)}}),b(P,M)};H(L,P=>{s()&&P(O)})}F(P=>le(C,"src",`https://video.playpilot.net/?video_id=${o(c)??""}&color=${u}&muted=${r()??""}&loop=${n()??""}&captions=${l()??""}&controls=${P??""}&start_time=${o(d)??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),b(_,z)},k=_=>{var z=St("Something went wrong");b(_,z)};H(w,_=>{o(c)?_(y):_(k,!1)})}return b(t,m),te(g)}fe(["click"]);var $d=j('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Bo(t,e){ee(e,!0);let i=N(e,"gap",3,"0"),a=N(e,"fill",3,!0),r=N(e,"transitionDuration",3,300),n=N(e,"threshold",3,30),l=N(e,"moveThreshold",3,0),s=N(e,"currentIndex",15,0),c=N(e,"shown",31,()=>je([])),d=N(e,"sliderWidth",15,0),u=N(e,"currentScrollPosition",15,0),p=N(e,"maxWidth",15,0),v=N(e,"reachedEnd",15,!1),h=N(e,"distanceToEnd",15,0),g=N(e,"passedThreshold",15,!1),m=N(e,"passedMoveThreshold",15,!1),w=N(e,"allowWheel",3,!1),y=N(e,"end",3,()=>null),k=N(e,"change",3,ie=>null),x=N(e,"onend",19,y),_=N(e,"onchange",19,k),z=N(e,"onresize",3,()=>null),C=G(!1),L=G(!1),O=0,P=0,M=G(void 0),T=G(void 0),E=null,I=null;Fe(()=>{o(T)&&$(),o(T)&&h(p()-u()-d())}),nt(()=>(Qe(),()=>E==null?void 0:E.disconnect()));function q(ie){const pe=o(T).children.length,de=Math.max(0,Math.min(ie,pe-1));X({setIndex:de}),$()}function B(){R(L,!0),q(s()),requestAnimationFrame(()=>R(L,!1))}function J(ie){re(ie.target)&&(ie.preventDefault(),O=_e(ie),R(C,!0))}function W(){if(o(C)){if(!g())X({setIndex:s()});else{const ie=u()-P,pe=ie>0?1:-1;ie!=0&&X({direction:pe})}R(C,!1),g(!1)}}function V(ie){if(!o(C))return;const pe=_e(ie),de=P+(O-pe),Re=O-pe;m(Math.abs(Re)>l()),g(Math.abs(u()-P)>n()),m()&&(ne(de-l()*(Re>0?1:-1)),$())}function K(ie){if(!w())return;const{deltaX:pe,deltaY:de}=ie;if(Math.abs(pe)<Math.abs(de))return;ie.preventDefault();const Xe=u()+pe*20*.02;ne(Xe),$(),I&&clearTimeout(I),I=setTimeout(()=>{X({direction:pe>0?1:-1})},100)}function Q(ie){re(document.activeElement)&&(ie.key=="ArrowLeft"&&q(s()-1),ie.key=="ArrowRight"&&q(s()+1))}function X({setIndex:ie=-1,direction:pe=1}={}){const de=Se(),Re=s();s(0);let Xe;for(Xe=0;Xe<de.length;Xe++)if(ie!=-1){if(Xe>=ie)break}else if(pe>0&&de[Xe]>u()||pe<0&&de[Xe+1]>u())break;s(Math.min(Xe,Ue().length-1)),ne(de[s()],!0),P=u(),_()&&s()!=Re&&_()(s())}function ne(ie,pe=!1){u(ie);const de=p()-d();v(u()>=de),v()&&(x()&&x()(),a()&&pe&&u(de))}function $(){const ie=Se();Array.from(ie).forEach((pe,de)=>{u()+d()<pe||c().includes(de)||c([...c(),de])})}function _e(ie){var pe,de;return ie.pageX??((de=(pe=ie.touches)==null?void 0:pe[0])==null?void 0:de.pageX)}function Se(){return Ue().map(ie=>ie.offsetLeft)}function Ue(){return Array.from(o(T).children).filter(ie=>ie instanceof HTMLElement).filter(ie=>ie.src!="about:blank")}function Qe(){E=new ResizeObserver(ie=>{for(const pe of ie){const de=Array.isArray(pe.contentBoxSize)?pe.contentBoxSize[0]:pe.contentBoxSize;p(de.inlineSize)}z()()}),E.observe(o(T))}function re(ie){return ie===o(M)||(ie==null?void 0:ie.closest(".slider"))===o(M)}var me={setIndex:q,reposition:B},Le=$d();xe("mousedown",Ie,J),xe("mouseup",Ie,W),xe("mousemove",Ie,V),xe("touchstart",Ie,J,void 0,!0),xe("touchend",Ie,W),xe("touchmove",Ie,V,void 0,!0),xe("keydown",Ie,Q),xe("resize",Ie,B);var Me=Z(Le);let it;var ue=S(Me);let Be;var wt=S(ue);Oe(wt,()=>e.children??vt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:h()})),Je(ue,ie=>R(T,ie),()=>o(T)),Je(Me,ie=>R(M,ie),()=>o(M));var jt=A(Me,2);return Oe(jt,()=>e.controls??vt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:h()})),F(ie=>{it=be(Me,1,"slider svelte-1gs8ha8",null,it,{dragging:o(C),"passed-threshold":g()}),Be=He(ue,"",Be,ie)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(o(C)||o(L)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),xe("wheel",Me,K),Et(Me,"clientWidth",d),b(t,Le),te(me)}var eu=Ye("<title> </title>"),tu=Ye('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Ct(t,e){const i=N(e,"direction",3,"right"),a=N(e,"title",3,""),r=N(e,"size",3,16);var n=tu(),l=S(n);{var s=c=>{var d=eu(),u=S(d);F(()=>Y(u,a())),b(c,d)};H(l,c=>{a()&&c(s)})}F(()=>{be(n,0,i(),"svelte-1m6nwwy"),le(n,"width",`${r()??""}px`),le(n,"height",`${r()??""}px`)}),b(t,n)}function Ae(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var iu=j('<div class="heading svelte-1ayf7b5"> </div>'),au=j('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),ru=j('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),nu=j("<!> <!>",1),lu=j('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function _r(t,e){ee(e,!0);let i=N(e,"heading",3,""),a=N(e,"onchange",3,()=>null),r=N(e,"onresize",3,()=>null),n=N(e,"slider",15);var l=lu(),s=Z(l);{var c=p=>{var v=iu(),h=S(v);Tt(v,(g,m)=>Ae==null?void 0:Ae(g,m),()=>2),F(()=>Y(h,i())),b(p,v)};H(s,p=>{i()&&p(c)})}var d=A(s,2),u=S(d);Je(Bo(u,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(v,h)=>{let g=()=>h==null?void 0:h().setIndex,m=()=>h==null?void 0:h().currentIndex,w=()=>h==null?void 0:h().reachedEnd;var y=nu(),k=Z(y);{var x=C=>{var L=au();L.__click=()=>g()(m()-1);var O=S(L);Ct(O,{direction:"left",title:"Previous"}),b(C,L)};H(k,C=>{m()>0&&C(x)})}var _=A(k,2);{var z=C=>{var L=ru();L.__click=()=>g()(m()+1);var O=S(L);Ct(O,{title:"Next"}),b(C,L)};H(_,C=>{w()||C(z)})}b(v,y)},children:(v,h)=>{var g=he(),m=Z(g);Oe(m,()=>e.children),b(v,g)},$$slots:{controls:!0,default:!0}}),v=>n(v),()=>n()),b(t,l),te()}fe(["click"]);function Cn(t){return`${td}/${t.type}/${t.slug}/`}function ou(t){var e,i,a,r;return localStorage.getItem("tpi-open-explore-as-modal")==="true"?((i=(e=window.PlayPilotLinkInjections)==null?void 0:e.config)==null?void 0:i.explore_navigation_path)+`?route=modal&sid=${t.sid}`:((r=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)==null?void 0:r.explore_navigation_path)+`?route=title&sid=${t.sid}`}var su=j('<img class="video-fallback svelte-12ph9f6" alt=""/>'),cu=j('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),du=j('<a class="poster svelte-12ph9f6"><!></a>'),uu=j('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),pu=j('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),vu=j('<div class="skeleton svelte-12ph9f6"> </div>'),fu=j('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),hu=j('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6"> </span> <span class="skeleton svelte-12ph9f6"> </span></div> <!></div>'),gu=j("<div><!></div>");function Fo(t,e){ee(e,!0);let i=N(e,"minimumLength",3,1),a=N(e,"heading",3,""),r=N(e,"size",3,"small"),n=N(e,"aside",3,!1),l=N(e,"expandable",3,!1),s=N(e,"expandedTitle",15,null),c=N(e,"expandedRailKey",15,null),d=N(e,"onclick",3,()=>null),u=N(e,"onexpand",3,()=>null);const p=yn(),h=Ya("scope")==="popover"?Ya("title"):null;let g=G(null),m=G(null),w=G(null),y=!1;nt(()=>{l()&&z()});function k(T,E,I){var B,J,W,V,K;T==null||T.preventDefault();const q=E[I];if(l()&&!C(q)){const Q=(B=o(g))==null?void 0:B.querySelectorAll(".title")[I],$=(((J=o(g))==null?void 0:J.getBoundingClientRect().right)||0)-Q.getBoundingClientRect().right>Q.clientWidth*2;y=!0,setTimeout(()=>y=!1,500),r()==="flexible"&&!$?(W=o(m))==null||W.setIndex(I-2):r()==="huge"&&!$&&((V=o(m))==null||V.setIndex(I)),_(q),T&&u()(q);return}T&&(sa()?li({event:T,type:"titles-rail",data:E,returnToTitle:h,props:{initialIndex:I}}):li({event:T,data:q,returnToTitle:h}),(K=o(w))==null||K.toggleMute(!0),d()(q))}async function x(){const T=await e.titles,E=await Gd(T);E&&(s()||c()&&c()!==p||_(E))}function _(T){c(p),s(T)}function z(){c()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(q=>q.getBoundingClientRect().top>=0).sort((q,B)=>q.getBoundingClientRect().top-B.getBoundingClientRect().top)[0]!==o(g)||(s(null),c(null),x())}function C(T){var E;return c()===p&&T.sid===((E=s())==null?void 0:E.sid)}function L(T,E){l()&&(y||setTimeout(()=>k(null,T,E),250))}var O=gu();xe("scroll",Ie,z);let P;var M=S(O);ra(M,()=>e.titles,T=>{_r(T,{get heading(){return a()},children:(E,I)=>{var q=he(),B=Z(q);Pe(B,16,()=>({length:12}),ze,(J,W)=>{var V=hu(),K=A(S(V),4);{var Q=X=>{var ne=fu(),$=S(ne);Pe($,20,()=>({length:3}),ze,(_e,Se)=>{var Ue=vu();b(_e,Ue)}),b(X,ne)};H(K,X=>{n()&&X(Q)})}b(J,V)}),b(E,q)},$$slots:{default:!0}})},(T,E)=>{var I=he(),q=Z(I);{var B=J=>{_r(J,{get heading(){return a()},onchange:W=>L(o(E),W),onresize:()=>{var W;return(W=o(m))==null?void 0:W.reposition()},get slider(){return o(m)},set slider(W){R(m,W,!0)},children:(W,V)=>{var K=he(),Q=Z(K);Pe(Q,17,()=>o(E),ze,(X,ne,$,_e)=>{const Se=U(()=>C(o(ne))),Ue=U(()=>Cn(o(ne))),Qe=U(()=>pe=>k(pe,o(E),$));var re=pu();let me;var Le=S(re),Me=S(Le);{var it=pe=>{var de=cu(),Re=S(de);Re.__click=function(...At){var ui;(ui=o(Qe))==null||ui.apply(this,At)};var Xe=A(Re,2);{var di=At=>{Je(Pn(At,{get embeddable_url(){return o(ne).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),ui=>R(w,ui,!0),()=>o(w))},Ua=At=>{var ui=su();F(()=>le(ui,"src",o(ne).medium_poster)),b(At,ui)};H(Xe,At=>{o(ne).embeddable_url?At(di):At(Ua,!1)})}F(()=>le(Re,"href",o(Ue))),De(2,de,()=>ni,()=>({delay:200,duration:200})),b(pe,de)},ue=pe=>{var de=du();de.__click=function(...Xe){var di;(di=o(Qe))==null||di.apply(this,Xe)};var Re=S(de);br(Re,{get title(){return o(ne)},width:96,height:144}),F(()=>le(de,"href",o(Ue))),b(pe,de)};H(Me,pe=>{o(Se)?pe(it):pe(ue,!1)})}var Be=A(Le,2);Be.__click=function(...pe){var de;(de=o(Qe))==null||de.apply(this,pe)};var wt=S(Be),jt=A(Be,2);{var ie=pe=>{var de=uu();de.__click=function(...Xe){var di;(di=o(Qe))==null||di.apply(this,Xe)};var Re=S(de);F(()=>Y(Re,o(ne).description)),b(pe,de)};H(jt,pe=>{n()&&pe(ie)})}F(()=>{me=be(re,1,"title svelte-12ph9f6",null,me,{expanded:o(Se)}),le(Be,"href",o(Ue)),Y(wt,o(ne).title)}),b(X,re)}),b(W,K)},$$slots:{default:!0}})};H(q,J=>{var W;((W=o(E))==null?void 0:W.length)>=i()&&J(B)})}b(T,I)}),Je(O,T=>R(g,T),()=>o(g)),F(()=>{P=be(O,1,`titles ${r()??""}`,"svelte-12ph9f6",P,{"with-aside":n()}),le(O,"data-role",l()?"expandable-rail":null)}),b(t,O),te()}fe(["click"]);var mu=j('<div class="rail svelte-1b834ry"><!></div>'),yu=j('<div data-testid="explore-home"></div> <!>',1);function bu(t,e){ee(e,!0);let i=G(null),a=G(null),r=G(je(window.innerWidth));const n=[{heading:"List: Trending",params:{ordering:mr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0,size:"flexible"}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0,size:"flexible"}}];async function l(d={}){var u;try{return(u=await gr(d))==null?void 0:u.results}catch(p){throw console.log(p),se(oe.ExploreHomeRailError,null,{message:p.message||p.status.toString()||"",params:d}),new Error(p)}}var s=yu();xe("scroll",Ie,onscroll);var c=A(Z(s),2);Pe(c,17,()=>n,ze,(d,u)=>{let p=()=>o(u).heading,v=()=>o(u).params,h=()=>o(u).properties;var g=mu(),m=S(g);{let w=U(()=>ae(p())),y=U(()=>l(v())),k=U(()=>o(r)>=ai?"flexible":"huge");Fo(m,gn({get heading(){return o(w)},get titles(){return o(y)},get size(){return o(k)},minimumLength:7},h,{onclick:()=>se(oe.ExploreTitleRailModalView,null,{rail:p()}),onexpand:x=>se(oe.ExploreTitleRailExpandClick,x,{rail:p()}),get expandedTitle(){return o(i)},set expandedTitle(x){R(i,x,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(x){R(a,x,!0)}}))}b(d,g)}),Ia("innerWidth",d=>R(r,d,!0)),b(t,s),te()}function Wt(t,e={}){const i=new Image;i.src=wu(t,e||{})}function wu(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Hd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Ho(t,e={}){return()=>{Fe(()=>Wt(t,e))}}function xu(t,e={}){return i=>{const a=()=>Wt(t,e);Fe(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var _u=j("<button><!></button>");function Di(t,e){const i=N(e,"variant",3,"filled"),a=N(e,"size",3,"base"),r=N(e,"label",3,null),n=N(e,"active",3,!1);var l=_u();let s;l.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var c=S(l);Oe(c,()=>e.children??vt),F(()=>{s=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:n()}),le(l,"aria-label",r())}),b(t,l)}fe(["click"]);var ku=Ye('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function zn(t,e){const i=N(e,"size",3,14);var a=ku();F(()=>{le(a,"width",i()),le(a,"height",i())}),b(t,a)}function Vo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(c=>c.name===r.name),l=n==null?void 0:n.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var Su=j('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function In(t,e){ee(e,!0);let i=G(je(Math.random()));var a=he();xe("updateconsent",Ie,()=>R(i,Math.random(),!0));var r=Z(a);Ca(r,()=>o(i),n=>{var l=he(),s=Z(l);{var c=d=>{var u=he(),p=Z(u);Pe(p,17,()=>e.pixels,ze,(v,h)=>{var g=Su();F(()=>le(g,"src",o(h))),b(v,g)}),b(d,u)};H(s,d=>{gt("pixels")&&d(c)})}b(n,l)}),b(t,a),te()}var Tu=j('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Eu(t,e){ee(e,!0);const i=N(e,"size",3,30),a=N(e,"onclick",3,()=>null),r=U(()=>e.playlink.name),n=U(()=>e.playlink.url),l=U(()=>e.playlink.logo_url),s=U(()=>e.playlink.pixels);var c=Tu();c.__click=function(...h){var g;(g=a())==null||g.apply(this,h)};let d;var u=S(c),p=A(u,2);{var v=h=>{In(h,{get pixels(){return o(s)}})};H(p,h=>{var g;(g=o(s))!=null&&g.length&&h(v)})}F(h=>{le(c,"href",o(n)),le(c,"data-playlink",o(r)),d=He(c,"",d,{"--size":`${i()??""}px`}),le(u,"src",h),le(u,"alt",o(r)),le(u,"height",i()),le(u,"width",i())},[()=>yr(o(l))]),b(t,c),te()}fe(["click"]);var Pu=j('<span class="more svelte-1plv45z"> </span>'),Cu=j('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),zu=j('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Uo(t,e){ee(e,!0);const i=N(e,"size",3,30),a=U(()=>Vo(e.playlinks).slice(0,3));function r(p){p.stopPropagation()}var n=zu(),l=S(n);Pe(l,17,()=>o(a),ze,(p,v)=>{Eu(p,{get playlink(){return o(v)},onclick:r,get size(){return i()}})});var s=A(l,2);{var c=p=>{var v=Pu(),h=S(v);F(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),b(p,v)};H(s,p=>{e.playlinks.length>o(a).length&&p(c)})}var d=A(s,2);{var u=p=>{var v=Cu();b(p,v)};H(d,p=>{e.playlinks.length||p(u)})}b(t,n),te()}var Iu=j("<div>Series</div>"),ju=j("<div> </div>"),Au=j('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Lu(t,e){ee(e,!0);const i=N(e,"onclick",3,()=>null);var a=Au();a.__click=function(...k){var x;(x=i())==null||x.apply(this,k)};var r=S(a),n=S(r);br(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=A(n,2),s=S(l),c=S(s);zn(c,{size:12});var d=A(c),u=A(s,2);{var p=k=>{var x=Iu();b(k,x)};H(u,k=>{e.title.type==="series"&&k(p)})}var v=A(u,2);{var h=k=>{var x=ju(),_=S(x);F(()=>Y(_,`${e.title.length??""} min`)),b(k,x)};H(v,k=>{e.title.length&&k(h)})}var g=A(r,2),m=S(g),w=S(m),y=A(m,2);Uo(y,{get playlinks(){return e.title.providers},size:20}),F(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(w,e.title.title)}),b(t,a),te()}fe(["click"]),Qs();var Mu=j('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Du(t){var e=Mu(),i=A(S(e),2),a=S(i);He(a,"",{},{width:"60%"}),b(t,e)}var qu=j('<div class="svelte-pkkpyl"> </div>'),Ru=j('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Wo(t,e){var T;ee(e,!0);const i=N(e,"onclick",3,()=>null),a=!!((T=window.PlayPilotLinkInjections)!=null&&T.no_affiliate);var r=Ru();r.__click=function(...E){var I;(I=i())==null||I.apply(this,E)};var n=S(r),l=S(n);br(l,{get title(){return e.title},width:30,height:43,lazy:!0});var s=A(n,2),c=S(s),d=S(c),u=A(c,2),p=S(u),v=S(p);zn(v,{size:11});var h=A(v),g=A(p,2),m=S(g),w=A(g,2),y=S(w),k=A(w,2);{var x=E=>{var I=qu(),q=S(I);F(()=>Y(q,`${e.title.length??""} min`)),b(E,I)};H(k,E=>{e.title.length&&E(x)})}var _=A(u,2);let z;var C=S(_),L=A(_,2);{var O=E=>{Uo(E,{get playlinks(){return e.title.providers}})};H(L,E=>{a||E(O)})}var P=A(s,2),M=S(P);Ct(M,{}),F(E=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(m,e.title.year),Y(y,E),z=be(_,1,"description svelte-pkkpyl",null,z,{large:a}),Y(C,e.title.description)},[()=>ae(`Type: ${e.title.type}`)]),b(t,r),te()}fe(["click"]);var Nu=j('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function Ou(t){var e=Nu(),i=A(S(e),2),a=S(i);He(a,"",{},{width:"40%"});var r=A(a,2);He(r,"",{},{width:"60%"});var n=A(r,2);He(n,"",{},{width:"80%"}),b(t,e)}var Bu=j(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function Fu(t){var e=Bu();b(t,e)}var Hu=j("<div><!></div>"),Vu=j("<!> <!>",1),Uu=j("<p>Something went wrong</p>"),Wu=j('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Gu(t,e){ee(e,!0);const i=N(e,"searchQuery",3,""),a=N(e,"filter",19,()=>({}));let r=1,n=G(je([])),l=null,s=0,c=JSON.stringify(a())+i(),d=G(je(m())),u=G(0);const p=U(()=>o(u)>500),v=U(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),h=U(()=>o(p)?Lu:Wo),g=U(()=>o(p)?Du:Ou);Fe(()=>{(i()||s!=0)&&w(i())}),Fe(()=>{a()&&y()}),dr(()=>{k()});async function m(){s+=1;const q=s,B={page_size:24,page:r};i()&&(B.search=i()),Object.entries(a()).forEach(([J,{type:W,value:V}])=>{if(W==="string")B[J]=V;else if(W==="array")B[J]=V.join(",");else if(W==="range"){const[K,Q]=V;B[J+"_min"]=K,B[J+"_max"]=Q}});try{const J=await gr(B)||{next:null,previous:null,results:[]};return q===s&&R(n,[...o(n),...J.results],!0),J}catch(J){throw console.log(J.status),se(oe.ExploreResultsError,null,{message:J.message||J.status.toString()||"",params:B}),new Error(J)}}async function w(q){C()&&(l&&clearTimeout(l),l=setTimeout(()=>{x(),R(d,m(),!0),q&&(se(oe.ExploreSearch,null,{query:q}),gt("pixels")&&Wt(Pt.SearchQuery,{query:q}))},100))}function y(){C()&&(x(),R(d,m(),!0))}function k(){for(const q of Object.keys(a()))delete a()[q]}function x(){r=1,R(n,[],!0)}function _(){r++,R(d,m(),!0),se(oe.ExploreShowMore,null,{page:r})}function z(q,B){li({event:q,data:B}),se(oe.ExploreTitleClick,B)}function C(){const q=JSON.stringify(a())+i();return q===c?!1:(c=q,!0)}var L=Wu(),O=Z(L);let P,M;var T=S(O);Pe(T,17,()=>o(n),ze,(q,B)=>{var J=he(),W=Z(J);Ca(W,()=>o(B).sid,V=>{var K=he(),Q=Z(K);on(Q,()=>o(h),(X,ne)=>{ne(X,{get title(){return o(B)},onclick:$=>z($,o(B))})}),b(V,K)}),b(q,J)});var E=A(T,2);ra(E,()=>o(d),q=>{var B=he(),J=Z(B);Pe(J,16,()=>({length:24}),ze,(W,V)=>{var K=he(),Q=Z(K);on(Q,()=>o(g),(X,ne)=>{ne(X,{})}),b(W,K)}),b(q,B)},void 0,q=>{});var I=A(O,2);ra(I,()=>o(d),null,(q,B)=>{var J=U(()=>{var{next:$}=o(B);return{next:$}}),W=U(()=>o(J).next),V=Vu(),K=Z(V);{var Q=$=>{var _e=Hu();let Se;var Ue=S(_e);Di(Ue,{size:"large",onclick:_,children:(Qe,re)=>{var me=St();F(Le=>Y(me,Le),[()=>ae("Show More")]),b(Qe,me)},$$slots:{default:!0}}),F(()=>Se=be(_e,1,"show-more svelte-qc99of",null,Se,{grid:o(p)})),b($,_e)};H(K,$=>{o(W)&&$(Q)})}var X=A(K,2);{var ne=$=>{Fu($)};H(X,$=>{var _e;!((_e=o(n))!=null&&_e.length)&&r===1&&$(ne)})}b(q,V)},q=>{var B=Uu();b(q,B)}),F(()=>{P=be(O,1,"titles svelte-qc99of",null,P,{grid:o(p)}),M=He(O,"",M,{"--grid-columns":o(v)})}),Et(O,"clientWidth",q=>R(u,q)),b(t,L),te()}var Ku=Ye('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function Zu(t){var e=Ku();b(t,e)}var Yu=j('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Ju(t,e){ee(e,!0);let i=G("");var a=Yu(),r=S(a),n=S(r);Zu(n);var l=A(r,2);l.__input=()=>e.oninput(o(i)),F(s=>le(l,"placeholder",s),[()=>ae("Search Movies And Shows")]),za(l,()=>o(i),s=>R(i,s)),b(t,a),te()}fe(["input"]);const Qu=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Xu(){const t=yi();if(!t)throw new Error("No token was provided");const e={region:await Tn(),page:1,include_count:"false"};return await ri(`/providers/?api-token=${t}&`+xn(e))}function $u(t){const e=t-1;return e*e*e+1}function ep(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=C=>Math.sqrt(C)*120,easing:l=$u}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,u]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var p=tp(t),v=t.clientWidth/i.width/p,h=t.clientHeight/i.height/p,g=e.left+e.width*d,m=e.top+e.height*u,w=i.left+i.width*d,y=i.top+i.height*u,k=(g-w)*v,x=(m-y)*h,_=e.width/i.width,z=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(k*k+x*x)):n,easing:l,css:(C,L)=>{var O=L*k,P=L*x,M=C+L*_,T=C+L*z;return`transform: ${c} translate(${O}px, ${P}px) scale(${M}, ${T});`}}}function tp(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var ip=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function ap(t){var e=ip();b(t,e)}var rp=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function np(t){var e=rp();b(t,e)}var lp=j('<div class="icon svelte-dfwzqz"><!></div>'),op=j('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),sp=j('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function cp(t,e){ee(e,!0);let i=N(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=N(e,"selected",23,()=>[]),r=N(e,"placeholder",19,()=>`${ae("Search")}...`),n=N(e,"onchange",3,()=>null),l=G("");const s=U(c);function c(){var g;return(g=i())!=null&&g.length?o(l)?i().filter(({label:m})=>m.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(g){const m=a().find(w=>w===g);a(m?a().filter(w=>w!==g):[...a(),g]),n()(a())}var u=sp(),p=Z(u),v=S(p),h=A(p,2);Pe(h,29,()=>o(s)||[],({label:g,value:m})=>m,(g,m)=>{let w=()=>o(m).label,y=()=>o(m).value;const k=U(()=>!!a().find(P=>P===y()));var x=op(),_=S(x);let z;_.__click=()=>d(y());var C=S(_),L=A(C),O=S(L);Ca(O,()=>o(k),P=>{var M=lp(),T=S(M);{var E=q=>{ap(q)},I=q=>{np(q)};H(T,q=>{o(k)?q(E):q(I,!1)})}De(3,M,()=>oa,()=>({start:.25,duration:100})),b(P,M)}),F(()=>{z=be(_,1,"option svelte-dfwzqz",null,z,{active:o(k)}),Y(C,`${w()??""} `)}),Zc(x,()=>ep,()=>({duration:150})),b(g,x)}),F(()=>le(v,"placeholder",r())),za(v,()=>o(l),g=>R(l,g)),b(t,u),te()}fe(["click"]);var dp=j('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),up=j("<div><!> <!></div>");function Go(t,e){ee(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),s=G(0);function c(m){const w=m.target;w&&w.closest(".dropdown")!==o(a)&&R(i,!1)}function d(m){R(i,!o(i)),o(i)&&(R(s,0),R(l,0),u(m.target))}async function u(m){if(await Ea(),!o(r))return;const w=16,y=200,k=window.innerHeight,x=window.innerWidth,{top:_}=o(r).getBoundingClientRect(),{left:z}=m.getBoundingClientRect();R(n,z<window.innerWidth/2?"left":"right",!0),R(l,Math.max(Math.min(window.innerHeight-_-w,k*.6),y),!0),await Ea();const{left:C,right:L}=o(r).getBoundingClientRect(),O=x-L;C-w<0?R(s,O):O-w<0&&R(s,O-w)}var p=up();xe("click",Ie,c);var v=S(p);Oe(v,()=>e.button,()=>({toggle:d}));var h=A(v,2);{var g=m=>{var w=dp();let y;var k=S(w);Oe(k,()=>e.content),Je(w,x=>R(r,x),()=>o(r)),F(()=>y=He(w,"",y,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(s)?`${o(s)}px`:null})),De(3,w,()=>oa,()=>({start:.85,duration:100})),b(m,w)};H(h,m=>{o(i)&&m(g)})}Je(p,m=>R(a,m),()=>o(a)),F(()=>be(p,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),b(t,p),te()}var pp=j('<span class="label svelte-1mfj6k7"> </span>'),vp=j('<div class="active-line svelte-1mfj6k7"></div>'),fp=j('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function hp(t,e){ee(e,!0);const i=N(e,"range",19,()=>[0,100]),a=N(e,"value",19,i),r=N(e,"label",3,""),n=N(e,"valueAppend",3,""),l=N(e,"formatFunction",3,W=>W.toString()),s=N(e,"onchange",3,()=>null);let c=i(),d=U(()=>Wi(c,2)),u=G(je(o(d)[0])),p=G(je(o(d)[1]));const v=U(()=>o(u)!==i()[0]||o(p)!==i()[1]),h=U(()=>100/(i()[1]-i()[0])*(o(u)-i()[0])),g=U(()=>100+100/(i()[1]-i()[0])*(o(p)-i()[1])-o(h)),m=U(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(u)-o(p))<5);Fe(()=>{w(a())}),Fe(()=>{R(p,Math.max(o(p),o(u)+1),!0),R(p,Math.min(o(p),i()[1]),!0),R(u,Math.min(o(u),o(p)-1),!0),R(u,Math.max(o(u),i()[0]),!0)});function w(W){(V=>{var K=Wi(V,2);R(u,K[0],!0),R(p,K[1],!0)})(W)}function y(){requestAnimationFrame(()=>s()([o(u),o(p)]))}var k=fp(),x=S(k);{var _=W=>{var V=pp(),K=S(V);F((Q,X)=>Y(K,`${r()??""}: ${Q??""}—${X??""} ${n()??""}`),[()=>l()(o(u)),()=>l()(o(p))]),b(W,V)};H(x,W=>{r()&&W(_)})}var z=A(x,2);let C;var L=S(z);L.__mouseup=y,L.__touchend=y,L.__input=function(...W){};let O;var P=A(L,2);P.__mouseup=y,P.__touchend=y,P.__input=function(...W){};let M;var T=A(P,2),E=S(T),I=A(T,2),q=S(I),B=A(I,2);{var J=W=>{var V=vp();let K;F(()=>K=He(V,"",K,{left:o(h)+"%","--width":o(g)+"%"})),b(W,V)};H(B,W=>{o(v)&&W(J)})}F(()=>{C=be(z,1,"range svelte-1mfj6k7",null,C,{halved:o(m)}),le(L,"min",i()[0]),le(L,"max",i()[1]),O=be(L,1,"svelte-1mfj6k7",null,O,{active:o(v)}),le(P,"min",i()[0]),le(P,"max",i()[1]),M=be(P,1,"svelte-1mfj6k7",null,M,{active:o(v)}),Y(E,o(u)),Y(q,o(p))}),za(L,()=>o(u),W=>R(u,W)),za(P,()=>o(p),W=>R(p,W)),b(t,k),te()}fe(["mouseup","touchend","input"]);function jn(t,e){if(!t)return!1;const{type:i,value:a}=t;return!(i==="array"&&!a.length||i==="range"&&JSON.stringify(a)===JSON.stringify(e))}var gp=j(" <!>",1),mp=j('<p class="loading"> </p>'),yp=j('<p class="error"> </p>'),bp=j('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),wp=j('<div data-testid="filter-item"><!></div>');function xp(t,e){ee(e,!0);let i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r=N(e,"data",7,null),n=N(e,"fetchData",3,null),l=N(e,"range",3,null),s=N(e,"valueAppend",3,"");const c=U(()=>jn(i()[e.param],l()));let d=G(!!n());Fe(()=>{!r()&&n()&&u()});async function u(){try{R(d,!0),r(await n()())}catch{se(oe.ExploreFetchProvidersFailed)}finally{R(d,!1)}}function p(m,w){if(se(oe.ExploreSetFilter,null,{key:e.param,value:m,total_filter:i()}),!m){delete i()[e.param];return}i()[e.param]={type:w,value:m},a()()}var v=wp();let h;var g=S(v);Go(g,{button:(y,k)=>{let x=()=>k==null?void 0:k().toggle;Di(y,{variant:"border",size:"large",get active(){return o(c)},get onclick(){return x()},children:(_,z)=>{var C=gp(),L=Z(C),O=A(L);Ct(O,{direction:"down"}),F(()=>Y(L,`${e.label??""} `)),b(_,C)},$$slots:{default:!0}})},content:y=>{var k=bp(),x=S(k);{var _=P=>{var M=mp(),T=S(M);F(E=>Y(T,`${E??""}...`),[()=>ae("Loading")]),b(P,M)},z=P=>{var M=he(),T=Z(M);{var E=I=>{var q=yp(),B=S(q);F(J=>Y(B,J),[()=>ae("An Error Occurred")]),b(I,q)};H(T,I=>{n()&&!r()&&I(E)},!0)}b(P,M)};H(x,P=>{o(d)?P(_):P(z,!1)})}var C=A(x,2);{var L=P=>{const M=U(()=>{var T;return(T=i()[e.param])==null?void 0:T.value});cp(P,{get options(){return r()},get selected(){return o(M)},onchange:T=>p(T,"array")})},O=P=>{var M=he(),T=Z(M);{var E=I=>{const q=U(()=>{var B;return(B=i()[e.param])==null?void 0:B.value});hp(I,{get range(){return l()},get value(){return o(q)},get label(){return e.label},get valueAppend(){return s()},onchange:B=>p(B,"range")})};H(T,I=>{l()&&I(E)},!0)}b(P,M)};H(C,P=>{r()?P(L):P(O,!1)})}b(y,k)},$$slots:{button:!0,content:!0}}),F(()=>h=be(v,1,"filter-item svelte-er0ukh",null,h,{active:o(c)})),b(t,v),te()}var _p=j(" <!>",1),kp=j("<button> </button>"),Sp=j('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Tp(t,e){ee(e,!0);const i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:mr.Popular},{label:"New",value:mr.New},{label:"Top Rated",value:mr.Best}],l=U(()=>{var c;return((c=n.find(({value:d})=>{var u;return d===((u=i()[r])==null?void 0:u.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[r]={type:"string",value:c}:delete i()[r],a()()}Go(t,{button:(u,p)=>{let v=()=>p==null?void 0:p().toggle;Di(u,{variant:"link",get onclick(){return v()},children:(h,g)=>{var m=_p(),w=Z(m),y=A(w);Ct(y,{direction:"down"}),F(k=>Y(w,`${k??""} `),[()=>ae(o(l))]),b(h,m)},$$slots:{default:!0}})},content:u=>{var p=Sp();Pe(p,21,()=>n,ze,(v,h,g,m)=>{let w=()=>o(h).label,y=()=>o(h).value;const k=U(()=>{var C;return y()===((C=i()[r])==null?void 0:C.value)});var x=kp();let _;x.__click=()=>s(y());var z=S(x);F(C=>{_=be(x,1,"option svelte-1ibt2k4",null,_,{active:o(k)}),Y(z,C)},[()=>ae(w())]),b(v,x)}),b(u,p)},$$slots:{button:!0,content:!0}}),te()}fe(["click"]);var Ep=Ye('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function Pp(t){var e=Ep();b(t,e)}var Cp=j('<button class="item svelte-cwy6fi"><!> <!></button>'),zp=j('<div class="active-filter svelte-cwy6fi"></div>');function Ip(t,e){ee(e,!0);function i(n){delete e.filter[n]}function a(n){let l=n.slice(0,30).trim();return n.length>l.length&&(l+="..."),l}var r=zp();Pe(r,21,()=>Object.entries(e.filter),ze,(n,l)=>{var s=U(()=>Wi(o(l),2));let c=()=>o(s)[0],d=()=>o(s)[1];const u=U(()=>{const{label:g,range:m,data:w,fetchData:y}=e.items.find(k=>c()===k.param)||{};return{label:g,range:m,data:w,fetchData:y}});var p=he(),v=Z(p);{var h=g=>{var m=Cp();m.__click=()=>i(c());var w=S(m);{var y=_=>{var z=he(),C=Z(z);ra(C,()=>{var L,O;return((O=(L=o(u)).fetchData)==null?void 0:O.call(L))||o(u).data},null,(L,O)=>{var P=St();F(M=>Y(P,M),[()=>{var M;return a((M=o(O))==null?void 0:M.filter(T=>d().value.includes(T.value)).map(T=>T.label).join(" + "))}]),b(L,P)}),b(_,z)},k=_=>{var z=he(),C=Z(z);{var L=P=>{var M=St();F(T=>Y(M,`${o(u).label??""}: ${T??""}`),[()=>d().value.join(" - ")]),b(P,M)},O=P=>{var M=St();F(T=>Y(M,T),[()=>ae(d().value)]),b(P,M)};H(C,P=>{d().type==="range"?P(L):P(O,!1)},!0)}b(_,z)};H(w,_=>{d().type==="array"?_(y):_(k,!1)})}var x=A(w,2);wr(x,{size:8}),b(g,m)};H(v,g=>{jn(d(),o(u).range)&&g(h)})}b(n,p)}),b(t,r),te()}fe(["click"]);var jp=j("<div><!></div>"),Ap=j("<!> <!>",1),Lp=j('<div class="sorting svelte-11dg01g"><!></div>'),Mp=j('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function Dp(t,e){ee(e,!0);const i=N(e,"limit",3,!0),a=N(e,"showSorting",3,!0),r=N(e,"searchQuery",3,""),n=N(e,"onchange",3,()=>null),l=N(e,"onempty",3,()=>null),s=3,c=[{label:ae("Services"),param:"providers",fetchData:async()=>(await Xu()).map(z=>({label:z.name,value:z.slug}))},{label:ae("Genres"),param:"genres",data:hr.filter(z=>parseInt(z.slug)<900).map(z=>({label:ae(z.name),value:z.slug}))},{label:ae("IMDb"),param:"imdb_score",range:[0,10]},{label:ae("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ae("Runtime"),param:"length",range:[0,180],valueAppend:ae("Minutes")},{label:ae("Countries"),param:"country_codes",data:Qu}];let d=G(je(i())),u=!1;Fe(()=>{Object.keys(e.filter).some(C=>{const{range:L}=c.find(O=>C===O.param)||{};return jn(e.filter[C],L)})||r()?u=!0:u&&(u=!1,l()())});var p=Mp(),v=Z(p);let h;var g=S(v);Pe(g,21,()=>o(d)?c.slice(0,s):c,ze,(z,C)=>{var L=jp(),O=S(L);xp(O,gn({get filter(){return e.filter},get onchange(){return n()}},()=>o(C))),De(3,L,()=>oa,()=>({start:.75,duration:100})),b(z,L)});var m=A(g,2),w=S(m);{var y=z=>{Di(z,{variant:"link",onclick:()=>R(d,!o(d)),children:(C,L)=>{var O=Ap(),P=Z(O);Pp(P);var M=A(P),T=A(M);{let E=U(()=>o(d)?"down":"up");Ct(T,{get direction(){return o(E)}})}F(E=>Y(M,` ${E??""} `),[()=>ae("All Filters")]),b(C,O)},$$slots:{default:!0}})};H(w,z=>{i()&&z(y)})}var k=A(w,2);{var x=z=>{var C=Lp(),L=S(C);Tp(L,{get filter(){return e.filter},get onchange(){return n()}}),De(3,C,()=>Ma,()=>({x:5,duration:100})),b(z,C)};H(k,z=>{a()&&z(x)})}var _=A(v,2);Ip(_,{get filter(){return e.filter},get items(){return c}}),F(()=>h=be(v,1,"filter svelte-11dg01g",null,h,{limit:i()})),b(t,p),te()}function qp(t,e){ee(e,!0);const i=N(e,"trackingEvent",19,()=>oe.ExploreAnyClick);function a(l){var x;const s=l.target,c=s.parentElement;if(s===document.body)return;const d=`${c==null?void 0:c.nodeName.toLowerCase()}${r(c)}`,u=`${s==null?void 0:s.nodeName.toLowerCase()}${r(s)}`,p=`${d} > ${u}`,v=s.closest("a, button"),h=n(s)||n(c)||v&&n(v),g=h?(x=h.textContent)==null?void 0:x.slice(0,30):"",m=s.getAttribute("aria-label")||(v==null?void 0:v.getAttribute("aria-label"))||(c==null?void 0:c.getAttribute("aria-label")),w=s.placeholder,y=s.alt,k=(g||m||w||y||"").trim();se(i(),null,{selector:p,text:k})}function r(l){if(!l)return"";const s=Array.from(l.classList).filter(c=>!c.startsWith("s-"));return s.length?"."+s.join("."):""}function n(l){var s;return(s=l==null?void 0:l.childNodes)!=null&&s.length&&Array.from(l.childNodes).find(c=>{var d;return c.nodeName==="#text"&&!!((d=c.textContent)!=null&&d.trim())})||null}xe("click",Ie,a),te()}function Rp(t,e){ee(e,!0);const i=N(e,"trackingEvent",19,()=>oe.ExploreScrollDistance),a={25:!1,50:!1,75:!1,100:!1};function r(){const n=window.scrollY,l=window.innerHeight,d=100/(e.element.clientHeight+n+e.element.getBoundingClientRect().top)*(n+l);for(const u in a)a[u]||d<parseInt(u)||(a[u]=!0,se(i(),null,{scroll_percentage:u+"%"}))}xe("scroll",Ie,r),te()}var Np=j('<p class="description svelte-l2apr8"> </p>'),Op=j('<div class="filter svelte-l2apr8"><!></div>'),Bp=j('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <div class="subheading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div> <!> <!>',1);function Fp(t,e){ee(e,!0);let i=N(e,"navigate",3,()=>null),a=N(e,"searchQuery",15,""),r=N(e,"filter",27,()=>je({})),n=null,l=G(null),s=G(je(window.innerWidth));Fe(()=>{var P;R(l,((P=n==null?void 0:n.closest(Ln))==null?void 0:P.style.height)||null,!0)}),nt(async()=>{var P;se(oe.ExplorePageView),(P=window.PlayPilotLinkInjections.ads)!=null&&P.length||(window.PlayPilotLinkInjections.ads=await Lo())});var c=Bp(),d=Z(c);let u;var p=S(d),v=S(p),h=A(S(v),2),g=S(h);Tt(h,P=>Ae==null?void 0:Ae(P));var m=A(h,2),w=S(m);Tt(m,(P,M)=>Ae==null?void 0:Ae(P,M),()=>2);var y=A(m,2);{var k=P=>{var M=Np(),T=S(M);F(E=>Y(T,E),[()=>ae("Streaming Guide Description")]),b(P,M)};H(y,P=>{sa()||P(k)})}var x=A(p,2);Ju(x,{oninput:P=>a(P)});var _=A(x,2);{var z=P=>{var M=Op(),T=S(M);{let E=U(()=>o(s)<500),I=U(()=>!a());Dp(T,{get filter(){return r()},get searchQuery(){return a()},get limit(){return o(E)},get showSorting(){return o(I)},onchange:()=>i()("results"),onempty:()=>i()("home")})}b(P,M)};H(_,P=>{sa()&&P(z)})}var C=A(_,2);Oe(C,()=>e.children),Je(d,P=>n=P,()=>n);var L=A(d,2);qp(L,{});var O=A(L,2);Rp(O,{get element(){return n}}),F((P,M)=>{u=He(d,"",u,{height:o(l),"--playpilot-explore-width":`${o(s)??""}px`}),Y(g,P),Y(w,M)},[()=>ae("Streaming Guide"),()=>ae("Streaming Guide Subheading")]),Et(d,"clientWidth",P=>R(s,P)),b(t,c),te()}function Da(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?gt("pixels"):!1}var Hp=j('<div class="genre svelte-1mphbln"> </div>'),Vp=j('<button class="genre expand svelte-1mphbln"> </button>'),Up=j("<!> <!>",1);function Wp(t,e){ee(e,!0);let i=G(!1);const a=U(()=>o(i)?e.genres:[e.genres[0]]);var r=Up(),n=Z(r);Pe(n,17,()=>o(a),ze,(c,d)=>{const u=U(()=>{var g;return(g=hr.find(m=>m.slug===o(d)))==null?void 0:g.name});var p=he(),v=Z(p);{var h=g=>{var m=Hp(),w=S(m);lr(m,()=>Da()?Ho(Pt.GenreInterest,{genre:o(u),source:wi.Card}):null),F(y=>Y(w,y),[()=>ae(o(u))]),b(g,m)};H(v,g=>{o(u)&&g(h)})}b(c,p)});var l=A(n,2);{var s=c=>{var d=Vp();d.__click=()=>R(i,!0);var u=S(d);F(()=>Y(u,`+${e.genres.length-1}`)),b(c,d)};H(l,c=>{!o(i)&&e.genres.length>1&&c(s)})}b(t,r),te()}fe(["click"]);var Gp=j('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Kp=j('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function An(t,e){const i=N(e,"small",3,!1);let a=G(!1);function r(u){u.preventDefault(),u.stopPropagation(),R(a,!o(a))}var n=Kp();n.__click=r;var l=S(n);let s;var c=A(l,2);{var d=u=>{var p=Gp(),v=S(p);F(()=>Y(v,e.disclaimer)),De(3,p,()=>ni,()=>({duration:50})),b(u,p)};H(c,u=>{o(a)&&u(d)})}F(()=>s=be(l,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),b(t,n)}fe(["click"]);var Zp=j('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Yp=j('<span class="cta svelte-13ka2ap"> </span>'),Jp=j('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Ko(t,e){ee(e,!0);const i=N(e,"disclaimer",3,""),a=N(e,"hideCategory",3,!1),r=N(e,"onclick",3,()=>null),n=U(()=>e.playlink.name),l=U(()=>e.playlink.url),s=U(()=>e.playlink.logo_url),c=U(()=>e.playlink.highlighted),d=U(()=>e.playlink.cta_text),u=U(()=>e.playlink.action_text),p=U(()=>e.playlink.pixels),v=U(()=>e.playlink.extra_info.category),h=U(()=>Da()&&!o(c)),g={AVOD:ae("Stream"),SVOD:ae("Stream"),BUY:ae("Buy"),RENT:ae("Rent"),TVOD:ae("Rent Or Buy")};let m=G(0);var w=he(),y=Z(w);$l(y,()=>{var k,x;return!((x=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&x.require_affiliate_consent)||gt("affiliate")?"a":"span"},!1,(k,x)=>{lr(k,()=>o(h)?Ho(Pt.ProviderInterest,{provider:e.playlink.slug,source:wi.Card}):null),lr(k,()=>o(h)?xu(Pt.ProviderClick,{provider:e.playlink.slug}):null),oo(k,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[na]:{highlighted:o(c),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var _=Jp(),z=Z(_);let C;var L=S(z),O=A(L,2),P=S(O),M=A(O,2);{var T=Q=>{var X=Zp(),ne=S(X);F($=>Y(ne,$),[()=>g[o(v)]||ae("Stream")]),b(Q,X)};H(M,Q=>{a()||Q(T)})}var E=A(M,2);{var I=Q=>{var X=Yp(),ne=S(X);F(()=>Y(ne,o(d))),b(Q,X)};H(E,Q=>{o(d)&&Q(I)})}var q=A(E,2),B=S(q),J=A(q,2);{var W=Q=>{An(Q,{get disclaimer(){return i()},small:!0})};H(J,Q=>{i()&&Q(W)})}var V=A(z,2);{var K=Q=>{In(Q,{get pixels(){return o(p)}})};H(V,Q=>{var X;(X=o(p))!=null&&X.length&&Q(K)})}F((Q,X)=>{C=He(z,"",C,{"--action-width":o(m)?`${o(m)}px`:null}),le(L,"src",Q),Y(P,o(n)),Y(B,X)},[()=>yr(o(s)),()=>o(u)||ae("Watch")]),Et(q,"clientWidth",Q=>R(m,Q)),b(x,_)}),b(t,w),te()}var Qp=j('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),Xp=j('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),$p=j('<div class="heading category svelte-1fykz2q"> </div>'),ev=j("<!> <!>",1),tv=j("<!> <div></div>",1),iv=j('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function av(t,e){var _,z;ee(e,!0);const i=Ya("scope")==="modal",a=La("card"),r=!!((z=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&z.categorize_playlinks);let n=G(0);const l=U(()=>Vo(e.playlinks)),s=U(()=>p(e.playlinks)),c=U(()=>r?v(o(s)):[["",o(l)]]),d=U(()=>o(n)<500||!!a||o(l).length===1);function u(C){se(i?oe.TitleModalPlaylinkClick:oe.TitlePopoverPlaylinkClick,e.title,{playlink:C})}function p(C){const L={};for(const O of C){const{category:P}=O.extra_info;P in L||(L[P]=[]),L[P].push(O)}return L}function v(C){const L=["AVOD","SVOD","RENT","BUY"],O=[];for(const M of L)C[M]&&O.push([M,C[M]]);const P=[];for(const M of Object.values(C))for(const T of M)L.includes(T.extra_info.category)||P.push(T);return[...O,["Other",P]]}var h=iv(),g=Z(h),m=S(g);Tt(g,(C,L)=>Ae==null?void 0:Ae(C,L),()=>3);var w=A(g,2);{var y=C=>{var L=Qp(),O=S(L);F(P=>Y(O,`${P??""} `),[()=>{var P,M;return((M=(P=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:P.config)==null?void 0:M.playlinks_disclaimer_text)||ae("Commission Disclaimer")}]),b(C,L)},k=C=>{var L=Xp(),O=S(L);F(P=>Y(O,P),[()=>ae("Title Unavailable")]),b(C,L)};H(w,C=>{o(l).length?C(y):C(k,!1)})}var x=A(w,2);Pe(x,17,()=>o(c),ze,(C,L,O,P)=>{var M=U(()=>Wi(o(L),2));let T=()=>o(M)[0],E=()=>o(M)[1];var I=tv(),q=Z(I);{var B=V=>{var K=$p(),Q=S(K);Tt(K,(X,ne)=>Ae==null?void 0:Ae(X,ne),()=>4),F(X=>Y(Q,X),[()=>ae(`Category: ${T()}`)]),b(V,K)};H(q,V=>{T()&&E().length&&V(B)})}var J=A(q,2);let W;Pe(J,21,E,ze,(V,K,Q)=>{var X=ev(),ne=Z(X);Ko(ne,{get playlink(){return o(K)},onclick:()=>u(o(K).name)});var $=A(ne,2);{var _e=Se=>{{let Ue=U(()=>Md(a)),Qe=U(()=>a.disclaimer||"");Ko(Se,{get playlink(){return o(Ue)},onclick:()=>se(oe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(Qe)}})}};H($,Se=>{a&&Q===0&&Se(_e)})}b(V,X)}),F(()=>{W=be(J,1,"playlinks svelte-1fykz2q",null,W,{list:o(d)}),le(J,"data-testid",`category-${T()??""}`)}),Et(J,"clientWidth",V=>R(n,V)),b(C,I)}),F(C=>Y(m,C),[()=>ae("Where To Stream Online")]),b(t,h),te()}var rv=j('<button class="show-more svelte-7itcht">Show more</button>'),nv=j('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),lv=j('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function ov(t,e){ee(e,!0);const i=N(e,"blurb",3,""),a=N(e,"limit",3,200),r=N(e,"onclick",3,()=>null);let n=G(!1);const l=U(()=>e.text.slice(0,a()));function s(){R(n,!0),r()()}var c=lv(),d=S(c),u=S(d),p=A(u);{var v=y=>{var k=St("...");b(y,k)};H(p,y=>{!o(n)&&e.text.length>a()&&y(v)})}var h=A(p,2);{var g=y=>{var k=rv();k.__click=()=>s(),b(y,k)};H(h,y=>{!o(n)&&(e.text.length>a()||i())&&y(g)})}var m=A(d,2);{var w=y=>{var k=nv(),x=S(k);F(()=>Y(x,i())),b(y,k)};H(m,y=>{o(n)&&y(w)})}F(()=>Y(u,o(n)?e.text:o(l))),b(t,c),te()}fe(["click"]);async function sv(t,{page:e=1}={}){const i={language:ja(),region:await Tn(),include_count:"false",participant_sid:t.sid,page:e};return(await ri(`/titles/browse?api-token=${yi()}&${xn(i)}`)).results}async function cv(t){return(await ri(`/participants/browse?api-token=${yi()}&title_sid=${t.sid}`)).results}var dv=j('<div class="character truncate svelte-zy7e3f"> </div>'),uv=j('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),pv=j('<div class="participant svelte-zy7e3f"></div>');function vv(t,e){ee(e,!0);function i(l){const s=bi(xo(wo(bn()))),c={};for(const u of l){const p=vr(s,bi(u.name));c[u.sid]={participant:u,count:p}}return Object.values(c).sort((u,p)=>p.count-u.count).map(({participant:u})=>u)}function a(l,s){li({event:l,type:"participant",data:s}),se(oe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var r=he(),n=Z(r);ra(n,()=>cv(e.title),l=>{{let s=U(()=>ae("Cast"));_r(l,{get heading(){return o(s)},children:(c,d)=>{var u=he(),p=Z(u);Pe(p,16,()=>({length:5}),ze,(v,h)=>{var g=pv();b(v,g)}),b(c,u)},$$slots:{default:!0}})}},(l,s)=>{var c=he(),d=Z(c);{var u=p=>{{let v=U(()=>ae("Cast"));_r(p,{get heading(){return o(v)},children:(h,g)=>{var m=he(),w=Z(m);Pe(w,17,()=>i(o(s)).slice(0,15),ze,(y,k)=>{var x=uv();x.__click=O=>a(O,o(k));var _=S(x),z=S(_),C=A(_,2);{var L=O=>{var P=dv(),M=S(P);F(()=>Y(M,o(k).character)),b(O,P)};H(C,O=>{o(k).character&&O(L)})}F(()=>Y(z,o(k).name)),b(y,x)}),b(h,m)},$$slots:{default:!0}})}};H(d,p=>{var v;(v=o(s))!=null&&v.length&&p(u)})}b(l,c)}),b(t,r),te()}fe(["click"]);function fv(t,e){ee(e,!0);const i=Mo(e.title);{let a=U(()=>ae("Similar Titles"));Fo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>se(oe.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}te()}function hv(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var gv=Ye('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function mv(t){var e=gv();b(t,e)}var yv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function bv(t){var e=yv();b(t,e)}var wv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function xv(t){var e=wv();b(t,e)}var _v=Ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function kv(t){var e=_v();b(t,e)}var Sv=j('<button class="svelte-827qd7"><!></button>'),Tv=j('<div class="content svelte-827qd7"><!></div>'),Ev=j("<div><!> <!></div>");function Pv(t,e){const i=N(e,"label",3,""),a=N(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var m;h.currentTarget===((m=o(n))==null?void 0:m.querySelector("button"))&&h.stopPropagation(),R(r,!o(r))}var s=Ev();xe("click",Ie,()=>R(r,!1));var c=S(s);{var d=h=>{var g=he(),m=Z(g);Oe(m,()=>e.button,()=>({toggle:l})),b(h,g)},u=h=>{var g=Sv();g.__click=l;var m=S(g);kv(m),F(()=>{le(g,"aria-label",i()),le(g,"aria-expanded",o(r))}),b(h,g)};H(c,h=>{e.button?h(d):h(u,!1)})}var p=A(c,2);{var v=h=>{var g=Tv(),m=S(g);Oe(m,()=>e.children),De(1,g,()=>oa,()=>({duration:50,start:.85})),b(h,g)};H(p,h=>{o(r)&&h(v)})}Je(s,h=>R(n,h),()=>o(n)),F(()=>be(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),b(t,s)}fe(["click"]);var Cv=j("<!> ",1),zv=j('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Iv(t,e){ee(e,!0);let i=N(e,"url",7);const r=window.innerWidth<ai&&typeof navigator.share<"u";nt(()=>{i(i()+"?utm_source=tpi")});function n(c,d){if(!r){d(c);return}se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"copy"}),hv(i())}function s(){se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Pv(t,{button:(d,u)=>{let p=()=>u==null?void 0:u().toggle;Di(d,{onclick:v=>n(v,p()),children:(v,h)=>{var g=Cv(),m=Z(g);mv(m);var w=A(m);F(y=>Y(w,` ${y??""}`),[()=>ae("Share")]),b(v,g)},$$slots:{default:!0}})},children:(d,u)=>{var p=zv(),v=Z(p);v.__click=l;var h=S(v);bv(h);var g=A(h),m=A(v,2);m.__click=s;var w=S(m);xv(w);var y=A(w);F((k,x)=>{Y(g,` ${k??""}`),Y(y,` ${x??""}`)},[()=>ae("Copy URL"),()=>ae("Email")]),b(d,p)},$$slots:{button:!0,default:!0}}),te()}fe(["click"]);var jv=Ye('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Av(t){var e=jv();b(t,e)}var Lv=j("<!> ",1);function Mv(t,e){ee(e,!0);function i(){Ud(e.title),se(oe.TrailerClick,e.title)}Di(t,{onclick:i,children:(a,r)=>{var n=Lv(),l=Z(n);Av(l);var s=A(l);F(c=>Y(s,` ${c??""}`),[()=>ae("Watch Trailer")]),b(a,n)},$$slots:{default:!0}}),te()}var Dv=j('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function qv(t,e){const i=N(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=U(()=>Math.max(o(a),o(r)));var l=Dv(),s=S(l);Pn(s,{get embeddable_url(){return i()},muted:!0,loop:!0,showMuteControls:!0}),F(()=>He(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),Et(l,"clientWidth",c=>R(a,c)),Et(l,"clientHeight",c=>R(r,c)),b(t,l)}var Rv=j("<div> </div>"),Nv=j('<img alt=""/>'),Ov=j('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main svelte-16ajinh"><!> <!> <!> <!></div></div> <div><!></div>',1);function kr(t,e){var it;ee(e,!0);const i=N(e,"small",3,!1),a=N(e,"useVideoBackground",3,!0),r=!!((it=window.PlayPilotLinkInjections)!=null&&it.no_affiliate);Ja("title",e.title);const n=Ya("modal"),l=U(()=>(!i()||r)&&e.title.description);let s=G(!1),c=G(!1),d=G(!1),u=G(!1);Fe(()=>{a()&&e.title.embeddable_url&&Oo(En(e.title.embeddable_url)).then(ue=>{R(u,ue,!0)})});var p=Ov(),v=Z(p);let h;var g=S(v),m=S(g);let w;var y=S(m);br(y,{get title(){return e.title},onload:()=>R(s,!0),lazy:!1});var k=A(m,2);let x;var _=S(k);Tt(k,(ue,Be)=>Ae==null?void 0:Ae(ue,Be),()=>2);var z=A(k,2),C=S(z),L=S(C);zn(L,{});var O=A(L),P=A(C,2);Wp(P,{get genres(){return e.title.genres}});var M=A(P,2),T=S(M),E=A(M,2),I=S(E),q=A(E,2);{var B=ue=>{var Be=Rv(),wt=S(Be);F(jt=>Y(wt,`${e.title.length??""} ${jt??""}`),[()=>ae("Minutes")]),b(ue,Be)};H(q,ue=>{!i()&&e.title.length&&ue(B)})}var J=A(z,2),W=S(J);{var V=ue=>{Mv(ue,{get title(){return e.title}})};H(W,ue=>{e.title.embeddable_url&&ue(V)})}var K=A(W,2);{let ue=U(()=>Cn(e.title));Iv(K,{get title(){return e.title.title},get url(){return o(ue)}})}var Q=A(g,2),X=S(Q);{var ne=ue=>{ov(ue,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>se(oe.ExpandTitleDescription,e.title)})};H(X,ue=>{o(l)&&ue(ne)})}var $=A(X,2);{var _e=ue=>{av(ue,{get playlinks(){return e.title.providers},get title(){return e.title}})};H($,ue=>{r||ue(_e)})}var Se=A($,2);vv(Se,{get title(){return e.title}});var Ue=A(Se,2);fv(Ue,{get title(){return e.title}});var Qe=A(v,2);let re;var me=S(Qe);{var Le=ue=>{qv(ue,{get embeddable_url(){return e.title.embeddable_url}})},Me=ue=>{var Be=he(),wt=Z(Be);Ca(wt,()=>o(d),jt=>{var ie=Nv();let pe;F(de=>{le(ie,"src",de),pe=be(ie,1,"svelte-16ajinh",null,pe,{loaded:o(c),blur:o(d)})},[()=>yr(o(d)?e.title.standing_poster:e.title.medium_poster)]),xe("load",ie,()=>R(c,!0)),xe("error",ie,()=>R(d,!0)),b(jt,ie)}),b(ue,Be)};H(me,ue=>{a()&&o(u)?ue(Le):ue(Me,!1)})}F(ue=>{h=be(v,1,"content svelte-16ajinh",null,h,{small:i()}),w=be(m,1,"poster svelte-16ajinh",null,w,{loaded:o(s)}),x=be(k,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Y(_,e.title.title),Y(O,` ${e.title.imdb_score??""}`),Y(T,e.title.year),Y(I,ue),re=be(Qe,1,"background svelte-16ajinh",null,re,{small:i(),"offset-mute":n==="title"})},[()=>ae(`Type: ${e.title.type}`)]),b(t,p),te()}var Bv=j('<!> <p class="empty svelte-1nq44zr"> </p>',1),Fv=j("<!> ",1),Hv=j("<div><!></div>"),Vv=j('<!> <div class="title svelte-1nq44zr" data-testid="title"><!></div>',1),Uv=j("<!> Loading...",1);function Wv(t,e){ee(e,!0);const i=v=>{var h=Bv(),g=Z(h);a(g);var m=A(g,2),w=S(m);F(y=>Y(w,y),[()=>ae("Page Not Found")]),b(v,h)},a=(v,h)=>{let g=er(()=>Vr(h==null?void 0:h(),!1));var m=Hv();let w;var y=S(m);Di(y,{variant:"link",onclick:()=>{r()("home")},children:(k,x)=>{var _=Fv(),z=Z(_);Ct(z,{direction:"left"});var C=A(z);F(L=>Y(C,` ${L??""}`),[()=>ae("Home")]),b(k,_)},$$slots:{default:!0}}),F(()=>w=be(m,1,"back svelte-1nq44zr",null,w,{offset:o(g)})),b(v,m)},r=N(e,"navigate",3,()=>null);let n=G(je(window.innerWidth));const l=U(()=>o(n)<ai),s=new URL(document.location.toString()).searchParams.get("sid");var c=he(),d=Z(c);{var u=v=>{var h=he(),g=Z(h);ra(g,()=>Do(s),m=>{var w=Uv(),y=Z(w);a(y),b(m,w)},(m,w)=>{var y=Vv(),k=Z(y);a(k,()=>!0);var x=A(k,2),_=S(x);kr(_,{get title(){return o(w)},get useVideoBackground(){return o(l)}}),b(m,y)},m=>{i(m)}),b(v,h)},p=v=>{i(v)};H(d,v=>{s?v(u):v(p,!1)})}Ia("innerWidth",v=>R(n,v,!0)),b(t,c),te()}function Zo(t,e){ee(e,!0);const i=[{key:"results",component:Gu}];sa()&&(i.unshift({key:"home",component:bu}),i.push({key:"title",component:Wv}));const a=u()||i[0].key;let r=G(je(i.find(({key:v})=>v===a)||i[0])),n=G(""),l=G(je({}));const s=U(()=>o(r).component);a==="modal"&&p(),Fe(()=>{o(n)&&R(r,i.find(v=>v.key==="results"),!0)});function c(v,h=!0){R(r,i.find(m=>m.key===v)||i[0],!0);const g=new URL(document.location.toString());v!=="title"&&v!=="modal"&&g.searchParams.delete("sid"),v===i[0].key?g.searchParams.delete("route"):g.searchParams.set("route",o(r).key),h&&(history.pushState({},"",g),console.log("navigate push state")),se(oe.ExploreNavigate,null,{route:o(r).key})}function d(){c(u(),!1)}function u(){return new URL(document.location.toString()).searchParams.get("route")||i[0].key}async function p(){const h=new URL(document.location.toString()).searchParams.get("sid");if(!h)return;const[g,m]=(await Promise.allSettled([Do(h),Mo({sid:h})])).map(w=>w.status==="fulfilled"?w.value:null);li({type:"titles-rail",data:[g,...m],props:{onclose:()=>c("home")}})}xe("popstate",Ie,d),Fp(t,{navigate:c,get searchQuery(){return o(n)},set searchQuery(v){R(n,v,!0)},get filter(){return o(l)},set filter(v){R(l,v,!0)},children:(v,h)=>{var g=he(),m=Z(g);on(m,()=>o(s),(w,y)=>{y(w,{get searchQuery(){return o(n)},get filter(){return o(l)},navigate:c})}),b(v,g)},$$slots:{default:!0}}),te()}const Ln="[data-playpilot-explore]",Gv="[data-playpilot-pre-consent-explore]",Yo="playpilot-explore-custom-style";let Sr=null;function Tr(){var e;const t=document.querySelector(Ln);t&&(Er(),(e=document.querySelector(Gv))==null||e.remove(),t.innerHTML="",Sr=Ut(Zo,{target:t}),Zv())}function Er(){var t;Sr&&(ia(Sr),Sr=null,(t=document.querySelector("#"+Yo))==null||t.remove())}function Kv(){var c;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),s=l.nodeName==="A"?l:l.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Zv(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Yo,document.body.appendChild(e)}function sa(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Mn(t,e){ee(e,!0);const i=N(e,"size",3,"32px"),a=N(e,"onclick",3,()=>null),r=ho(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=he(),l=Z(n);$l(l,()=>e.href?"a":"button",!1,(s,c)=>{oo(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[la]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=he(),u=Z(d);Oe(u,()=>e.children??vt),b(c,d)}),b(t,n),te()}var Yv=j("<div></div>");function Jv(t,e){ee(e,!0);let i=N(e,"threshold",3,100),a=N(e,"isDragging",15,!1),r=N(e,"passedThreshold",15,!1),n=N(e,"onpassed",3,()=>null),l=G(0),s=G(0),c=G(null),d=G(!1);const u=U(()=>Math.max(o(s)-o(l),0));Fe(()=>{r(o(u)>i())});function p(y){if(y){a(!0),R(d,!0),R(l,y.touches[0].pageY,!0);for(const k of e.targets)k.style.transitionDuration="0ms"}}function v(y){if(y&&a()){y.preventDefault(),R(s,y.touches[0].pageY,!0),o(c).style.transform=`translateY(${o(u)}px)`;for(const k of e.targets)k.style.top=`${o(u)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(c).removeAttribute("style");for(const y of e.targets)y.style.removeProperty("transition"),requestAnimationFrame(()=>y.style.top="0px")}R(l,0),R(s,0)}}var g={start:p,move:v,end:h},m=Yv();xe("touchmove",Ie,v,void 0,!0),xe("touchend",Ie,h);let w;return m.__touchstart=p,Je(m,y=>R(c,y),()=>o(c)),F(()=>w=be(m,1,"handle svelte-1xqgdsn",null,w,{dragging:a(),dragged:o(d)})),b(t,m),te(g)}fe(["touchstart"]);var Qv=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Xv=["difference","intersection","symmetricDifference","union"],Jo=!1;const Rr=class Rr extends Set{constructor(i){super();ve(this,ga);ve(this,ha,new Map);ve(this,It,G(0));ve(this,Ti,G(0));ve(this,qr,ti||-1);if(i){for(var a of i)super.add(a);D(this,Ti).v=super.size}Jo||Ce(this,ga,gs).call(this)}has(i){var a=super.has(i),r=D(this,ha),n=r.get(i);if(n===void 0){if(!a)return o(D(this,It)),!1;n=Ce(this,ga,hs).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),R(D(this,Ti),super.size),hi(D(this,It))),this}delete(i){var a=super.delete(i),r=D(this,ha),n=r.get(i);return n!==void 0&&(r.delete(i),R(n,!1)),a&&(R(D(this,Ti),super.size),hi(D(this,It))),a}clear(){if(super.size!==0){super.clear();var i=D(this,ha);for(var a of i.values())R(a,!1);i.clear(),R(D(this,Ti),0),hi(D(this,It))}}keys(){return this.values()}values(){return o(D(this,It)),super.values()}entries(){return o(D(this,It)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(D(this,Ti))}};ha=new WeakMap,It=new WeakMap,Ti=new WeakMap,qr=new WeakMap,ga=new WeakSet,hs=function(i){return ti===D(this,qr)?G(i):Ot(i)},gs=function(){Jo=!0;var i=Rr.prototype,a=Set.prototype;for(const r of Qv)i[r]=function(...n){return o(D(this,It)),a[r].apply(this,n)};for(const r of Xv)i[r]=function(...n){o(D(this,It));var l=a[r].apply(this,n);return new Rr(l)}};let Pr=Rr;class $v{constructor(e,i){ve(this,Ha);ve(this,Va);ce(this,Ha,e),ce(this,Va,ml(i))}get current(){return D(this,Va).call(this),D(this,Ha).call(this)}}Ha=new WeakMap,Va=new WeakMap;const ef=/\(.+\)/,tf=new Set(["all","print","screen","and","or","not","only"]);class af extends $v{constructor(e,i){let a=ef.test(e)||e.split(/[\s,]+/).some(n=>tf.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Lc(r,"change",n))}}const Dn=new af("(prefers-reduced-motion: reduce)");function qn(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];n.shiftKey&&l===c&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(c.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function rf(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var nf=j("<div><!></div>"),lf=j('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),of=j('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),sf=j('<div class="swipe-handle svelte-1rbidhv"><!></div>'),cf=j("<div><!></div>"),df=j('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),uf=j('<div data-testid="modal"><!> <!> <!> <!></div>');function Cr(t,e){ee(e,!0);const i=V=>{var K=nf(),Q=S(K);Mn(Q,{onclick:_,"aria-label":"Close",children:(X,ne)=>{wr(X,{})},$$slots:{default:!0}}),Je(K,X=>R(g,X),()=>o(g)),F(()=>be(K,1,`close ${l()??""}`,"svelte-1rbidhv")),De(7,K,()=>x),b(V,K)},a=N(e,"tall",3,!1),r=N(e,"wide",3,!1),n=N(e,"blur",3,!1),l=N(e,"closeButtonStyle",3,"shadow"),s=N(e,"initialScrollPosition",3,0),c=N(e,"onscroll",3,()=>null),d=N(e,"onclose",3,()=>null),u="#playpilot";let p=G(0),v=G(null),h=G(null),g=G(null),m=G(0),w=G(!1);const y=U(()=>o(p)<ai);Fe(()=>{var V;o(p)&&R(m,((V=o(h))==null?void 0:V.offsetTop)||0,!0)}),Fe(()=>{setTimeout(()=>{var V;return R(m,((V=o(h))==null?void 0:V.offsetTop)||0,!0)})}),Ja("scope","modal"),nt(()=>{const V=rf();return V.classList.add("playpilot-modal-open"),R(w,!!is()),o(w)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(k),()=>{var K;V.classList.remove("playpilot-modal-open"),!is()&&((K=history.state)!=null&&K.modal)&&history.back()}});function k(){const V=window.innerWidth>ai?o(v):o(h);V==null||V.scrollTo(0,s())}function x(V){return Dn.current?ni(V,{duration:0}):o(y)?Ma(V,{duration:250,y:window.innerHeight,opacity:1}):oa(V,{duration:150,start:.85})}function _(){d()(),On()}function z(V){V.target===o(v)&&_()}var C=uf();xe("keydown",Ie,({key:V})=>{V==="Escape"&&_()}),xe("hashchange",Ie,_);let L;C.__click=z;let O;var P=S(C);{var M=V=>{var K=lf(),Q=S(K);Oe(Q,()=>e.prepend),De(7,K,()=>x),b(V,K)};H(P,V=>{e.prepend&&V(M)})}var T=A(P,2);{var E=V=>{var K=of(),Q=S(K);Oe(Q,()=>e.bubble),De(7,K,()=>x),b(V,K)};H(T,V=>{e.bubble&&V(E)})}var I=A(T,2);{var q=V=>{var K=sf(),Q=S(K);{var X=ne=>{{let $=U(()=>[o(h),o(g)]);Jv(ne,{get targets(){return o($)},onpassed:_})}};H(Q,ne=>{o(h)&&o(g)&&ne(X)})}De(7,K,()=>x),b(V,K)};H(I,V=>{o(y)&&V(q)})}var B=A(I,2);{var J=V=>{var K=he(),Q=Z(K);Oe(Q,()=>e.dialog),b(V,K)},W=V=>{var K=df(),Q=Z(K),X=S(Q);{var ne=re=>{var me=cf(),Le=S(me);Mn(Le,{onclick:()=>yh(),"aria-label":"Back",children:(Me,it)=>{Ct(Me,{direction:"left"})},$$slots:{default:!0}}),F(()=>be(me,1,`close back ${l()??""}`,"svelte-1rbidhv")),b(re,me)};H(X,re=>{o(w)&&re(ne)})}var $=A(X,2);Oe($,()=>e.children??vt);var _e=A($,2);{var Se=re=>{i(re)};H(_e,re=>{o(y)||re(Se)})}Je(Q,re=>R(h,re),()=>o(h));var Ue=A(Q,2);{var Qe=re=>{i(re)};H(Ue,re=>{o(y)&&re(Qe)})}xe("scroll",Q,function(...re){var me;(me=c())==null||me.apply(this,re)}),De(7,Q,()=>x),b(V,K)};H(B,V=>{e.dialog?V(J):V(W,!1)})}Je(C,V=>R(v,V),()=>o(v)),Tt(C,V=>qn==null?void 0:qn(V)),F(()=>{L=be(C,1,"modal svelte-1rbidhv",null,L,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),O=He(C,"",O,{"--dialog-offset":`${o(m)??""}px`})}),Ia("innerWidth",V=>R(p,V,!0)),De(5,C,()=>ni,()=>({duration:150})),De(6,C,()=>ni,()=>({duration:150,delay:100})),b(t,C),te()}fe(["click"]);function ca(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Qo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},Rn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function pf({key:t}){var a,r,n;if(!gt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Xo(t){const e=pf(t);return Math.floor(e*t.numberOfVariants)}function vf(t){var i;const e=Xo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function ff(t,e=1){return gt("tracking")?Xo(t)===e:!1}function hf(t){const e=vf(t);se(oe.SplitTestView,null,{key:t.key,variant:e})}var gf=j('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),mf=j('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),yf=j('<button class="button svelte-1mt6g1y"> </button>'),bf=j('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),wf=j('<div class="background svelte-1mt6g1y"></div>'),xf=j("<!> <!>",1),_f=j('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function $o(t,e){ee(e,!0),se(oe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),hf(Rn.TopScrollFormat);const i=U(()=>e.campaign.disclaimer),a=U(()=>e.campaign.content),r=U(()=>e.campaign.cta),n=U(()=>o(a).format),l=U(()=>o(a).header),s=U(()=>o(a).header_logo),c=U(()=>o(a).image_uuid),d=U(()=>o(r).header),u=U(()=>o(r).url),p=U(()=>o(n)==="large"),v=U(()=>No(o(c),Qo.TopScrollBackground)),h=U(()=>No(o(c),Qo.TopScrollContent));let g=G(0);function m(){se(oe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var w=_f();w.__click=m;let y,k;var x=S(w),_=S(x);{var z=P=>{var M=gf();F(()=>{le(M,"src",o(h)),le(M,"alt",o(l))}),b(P,M)},C=P=>{var M=bf(),T=Z(M);{var E=W=>{var V=mf();F(()=>le(V,"src",o(s))),b(W,V)};H(T,W=>{o(s)&&W(E)})}var I=A(T,2),q=S(I),B=A(I,2);{var J=W=>{var V=yf(),K=S(V);F(()=>Y(K,o(d))),b(W,V)};H(B,W=>{o(d)&&W(J)})}F(()=>Y(q,o(l))),b(P,M)};H(_,P=>{o(p)?P(z):P(C,!1)})}var L=A(x,2);{var O=P=>{var M=xf(),T=Z(M);{var E=B=>{var J=wf();let W;F(()=>W=He(J,"",W,{"--background":`url('${o(v)??""}')`})),b(B,J)};H(T,B=>{o(c)&&B(E)})}var I=A(T,2);{var q=B=>{An(B,{get disclaimer(){return o(i)}})};H(I,B=>{o(i)&&B(q)})}b(P,M)};H(L,P=>{o(p)||P(O)})}Tt(w,(P,M)=>ca==null?void 0:ca(P,M),()=>({onclick:m})),Ai(()=>Et(w,"clientWidth",P=>R(g,P))),F(()=>{le(w,"href",o(u)),y=be(w,1,"top-scroll svelte-1mt6g1y",null,y,{simple:o(p)}),k=He(w,"",k,{"--width":`${o(g)??""}px`})}),b(t,w),te()}fe(["click"]);var kf=j('<div class="content svelte-r7ubzi"><!></div>'),Sf=j('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Tf(t,e){let i=G(!1);var a=Sf();a.__touchstart=()=>R(i,!o(i));var r=S(a);Oe(r,()=>e.children);var n=A(r,2);{var l=s=>{var c=kf(),d=S(c);Oe(d,()=>e.content),De(1,c,()=>ni,()=>({duration:100})),b(s,c)};H(n,s=>{o(i)&&s(l)})}xe("mouseenter",a,()=>R(i,!0)),xe("mouseleave",a,()=>R(i,!1)),b(t,a)}fe(["touchstart"]);var Ef=j('<div class="info svelte-qcpiki"><!></div>'),Pf=j('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Cf=j('<span class="name svelte-qcpiki"> </span>'),zf=j('<div class="subheader svelte-qcpiki"> </div>'),If=j('<div class="action svelte-qcpiki"> </div>'),jf=j('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Af=j('<img class="background svelte-qcpiki" alt=""/>'),Lf=j('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),Mf=j('<div class="disclaimer svelte-qcpiki"><!></div>'),Df=j('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function es(t,e){ee(e,!0);const i=N(e,"compact",3,!1),a=U(()=>e.campaign.disclaimer),r=U(()=>e.campaign.content),n=U(()=>e.campaign.cta),l=U(()=>e.campaign.campaign_type),s=U(()=>o(r).header),c=U(()=>o(r).subheader),d=U(()=>o(r).header_logo),u=U(()=>o(r).image),p=U(()=>o(r).video),v=U(()=>o(n).header),h=U(()=>o(n).url),g=U(()=>o(n).subheader);let m=G(0);se(oe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function w(){se(oe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var y=Df();let k;y.__click=w;var x=S(y);{var _=E=>{var I=Ef(),q=S(I);{var B=W=>{Tf(W,{content:K=>{var Q=St();F(()=>Y(Q,o(g))),b(K,Q)},children:(K,Q)=>{var X=St("Ad");b(K,X)},$$slots:{content:!0,default:!0}})},J=W=>{var V=St();F(()=>Y(V,o(g))),b(W,V)};H(q,W=>{i()?W(B):W(J,!1)})}b(E,I)};H(x,E=>{o(g)&&E(_)})}var z=A(x,2);{var C=E=>{var I=jf(),q=S(I);{var B=$=>{var _e=Pf();F(()=>le(_e,"src",o(d))),b($,_e)};H(q,$=>{o(d)&&$(B)})}var J=A(q,2),W=S(J);{var V=$=>{var _e=Cf(),Se=S(_e);F(()=>Y(Se,o(s))),b($,_e)};H(W,$=>{o(s)&&$(V)})}var K=A(W,2);{var Q=$=>{var _e=zf(),Se=S(_e);F(()=>Y(Se,o(c))),b($,_e)};H(K,$=>{o(c)&&$(Q)})}var X=A(J,2);{var ne=$=>{var _e=If(),Se=S(_e);F(()=>Y(Se,o(v))),b($,_e)};H(X,$=>{o(v)&&$(ne)})}Et(I,"clientHeight",$=>R(m,$)),b(E,I)};H(z,E=>{(o(d)||o(s)||o(c)||o(v))&&E(C)})}var L=A(z,2);{var O=E=>{var I=Af();F(()=>le(I,"src",o(u))),b(E,I)},P=E=>{var I=he(),q=Z(I);{var B=J=>{var W=Lf();W.muted=!0;var V=S(W);F(()=>le(V,"src",o(p))),b(J,W)};H(q,J=>{o(l)==="video"&&o(p)&&J(B)},!0)}b(E,I)};H(L,E=>{o(l)==="image"&&o(u)?E(O):E(P,!1)})}var M=A(L,2);{var T=E=>{var I=Mf();let q;var B=S(I);An(B,{get disclaimer(){return o(a)}}),F(()=>q=He(I,"",q,{"--offset":`${o(m)??""}px`})),b(E,I)};H(M,E=>{o(a)&&E(T)})}Tt(y,(E,I)=>ca==null?void 0:ca(E,I),()=>({onclick:w})),F(()=>{le(y,"href",o(h)),k=be(y,1,"display svelte-qcpiki",null,k,{compact:i()})}),b(t,y),te()}fe(["click"]);var qf=j('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function Rf(t,e){var c,d;ee(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:d.explore_navigation_path;hn();var r=qf();r.__click=()=>se(oe.CardToExploreCta);var n=S(r);le(n,"src",i);var l=A(n,4),s=S(l);Ct(s,{}),F(()=>le(r,"href",a)),b(t,r),te()}fe(["click"]);function Nf(t,e){var v,h;ee(e,!0);const i=g=>{var m=he(),w=Z(m);{var y=x=>{$o(x,{get campaign(){return l}})},k=x=>{Rf(x,{})};H(w,x=>{l?x(y):x(k,!1)})}b(g,m)},a=g=>{var m=he(),w=Z(m);{var y=k=>{es(k,{get campaign(){return s}})};H(w,k=>{s&&k(y)})}b(g,m)},r=N(e,"initialScrollPosition",3,0),n=ho(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);Ja("modal","title");const l=La("top_scroll"),s=La("card"),c=(h=(v=window.PlayPilotLinkInjections)==null?void 0:v.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||c&&!document.querySelector(Ln);let u=!1;se(oe.TitleModalView,e.title),Da()&&Wt(Pt.TitleInterest,{title:e.title.title,source:wi.Card}),nt(()=>{const g=Date.now();return()=>se(oe.TitleModalClose,e.title,{time_spent:Date.now()-g})});function p(){u||(se(oe.TitleModalScroll,e.title),u=!0)}{let g=U(()=>d?i:null),m=U(()=>s?a:null);Cr(t,{onscroll:p,get initialScrollPosition(){return r()},get bubble(){return o(g)},get prepend(){return o(m)},tall:!0,children:(w,y)=>{kr(w,gn({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}te()}var Of=j(" <strong> </strong>",1),Bf=j('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Ff=j('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),Hf=j('<button class="more svelte-ke01cs"> </button>'),Vf=j('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function Uf(t,e){ee(e,!0);const i=U(()=>e.participant.name),a=U(()=>e.participant.birth_date),r=U(()=>e.participant.death_date),n=30;let l=G(je([])),s=G(1),c=G(!0),d=G(!0);nt(p),gt("pixels")&&Wt(Pt.ParticipantView,{participant:e.participant.name});function u(M){return new Date(M).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){R(d,!0);try{const M=await sv(e.participant,{page:o(s)});R(l,[...o(l),...M],!0),R(c,(M==null?void 0:M.length)>=n)}catch{R(c,!1)}finally{R(d,!1),R(s,o(s)+1)}}var v=Vf(),h=Z(v),g=S(h),m=S(g);Tt(g,(M,T)=>Ae==null?void 0:Ae(M,T),()=>2);var w=A(g,2);{var y=M=>{var T=Bf(),E=S(T),I=A(E),q=S(I),B=A(I);{var J=W=>{var V=Of(),K=Z(V),Q=A(K),X=S(Q);F((ne,$)=>{Y(K,`, ${ne??""} `),Y(X,$)},[()=>ae("Died On"),()=>u(o(r))]),b(W,V)};H(B,W=>{o(r)&&W(J)})}F((W,V)=>{Y(E,`${W??""} `),Y(q,V)},[()=>ae("Born On"),()=>u(o(a))]),b(M,T)};H(w,M=>{o(a)&&M(y)})}var k=A(h,2),x=S(k),_=S(x);Tt(x,(M,T)=>Ae==null?void 0:Ae(M,T),()=>3);var z=A(x,2),C=S(z);Pe(C,17,()=>o(l),ze,(M,T)=>{Wo(M,{get title(){return o(T)},onclick:E=>li({event:E,data:o(T)})})});var L=A(C,2);{var O=M=>{var T=he(),E=Z(T);Pe(E,16,()=>({length:6}),ze,(I,q)=>{var B=Ff();b(I,B)}),b(M,T)},P=M=>{var T=he(),E=Z(T);{var I=q=>{var B=Hf();B.__click=p;var J=S(B);F(W=>Y(J,W),[()=>ae("Show More")]),b(q,B)};H(E,q=>{o(c)&&q(I)},!0)}b(M,T)};H(L,M=>{o(d)?M(O):M(P,!1)})}F(M=>{Y(m,o(i)),Y(_,M)},[()=>ae("Credits")]),b(t,v),te()}fe(["click"]);function Wf(t,e){ee(e,!0);const i=N(e,"initialScrollPosition",3,0);let a=G(0);se(oe.ParticipantModalView,null,{participant:e.participant.name}),nt(()=>{const r=Date.now();return()=>se(oe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),Cr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{Uf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),Ia("innerWidth",r=>R(a,r,!0)),te()}var Gf=j('<div class="content svelte-16hba4m"><!></div>');function Kf(t,e){const i=N(e,"initialScrollPosition",3,0);Cr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=Gf(),l=S(n);Zo(l,{}),b(a,n)},$$slots:{default:!0}})}function Zf(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var Yf=Ye('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Jf(t){var e=Yf();b(t,e)}var Qf=j('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Xf=j('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),$f=j('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),eh=j('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function th(t,e){ee(e,!0),Ja("scope","popover");const i=e.bubble&&ff(Rn.TopScrollFormat,1),a=U(()=>({duration:Dn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),s=G(!1),c=G(0),d=G(0),u=G(0);nt(async()=>{await Ea(),p(),await h(),e.append&&requestAnimationFrame(()=>{v(),h()}),await Ea(),m()});function p(){if(!o(r))return;const{top:T,right:E,bottom:I,height:q}=o(r).getBoundingClientRect(),B=g();R(n,T-B<0&&window.innerHeight-I>T+q,!0);const J=window.innerWidth-E-B;E+B>window.innerWidth&&(o(r).style.left=`${J}px`)}function v(){R(l,o(c)>450)}async function h(){if(R(u,0),await new Promise(W=>requestAnimationFrame(W)),!o(r))return;const{top:T,height:E}=o(r).getBoundingClientRect(),I=g(),q=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,B=o(l)?o(d)+q:0,J=o(n)?window.innerHeight-T-I-B:T+E-B-I;R(u,Math.min(J,window.innerHeight*.8),!0)}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function m(){var B;if(!((B=o(r))!=null&&B.firstChild))return;const T=o(r).firstChild,{offsetHeight:E,scrollHeight:I,scrollTop:q}=T;I<=E?R(s,!1):R(s,q+E<I)}var w=eh();let y,k;var x=S(w),_=S(x);Oe(_,()=>e.children);var z=A(_,2);{var C=T=>{var E=Qf(),I=S(E),q=S(I);Jf(q),De(3,E,()=>ni,()=>({duration:100})),b(T,E)};H(z,T=>{o(s)&&T(C)})}var L=A(x,2);{var O=T=>{var E=Xf(),I=S(E);Oe(I,()=>e.bubble),De(7,E,()=>Ma,()=>o(a)),b(T,E)};H(L,T=>{e.bubble&&T(O)})}var P=A(L,2);{var M=T=>{var E=$f(),I=S(E);Oe(I,()=>e.append),De(7,E,()=>Ma,()=>o(a)),Et(E,"clientHeight",q=>R(d,q)),b(T,E)};H(P,T=>{e.append&&o(l)&&T(M)})}Je(w,T=>R(r,T),()=>o(r)),F(()=>{y=be(w,1,"popover svelte-wxwoko",null,y,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),k=He(w,"",k,{"--max-height":o(u)?o(u)+"px":null})}),xe("scroll",x,m),De(7,x,()=>Ma,()=>o(a)),Et(w,"clientHeight",T=>R(c,T)),b(t,w),te()}var ih=j('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function ah(t,e){ee(e,!0);const i=u=>{var p=he(),v=Z(p);{var h=g=>{$o(g,{get campaign(){return r}})};H(v,g=>{r&&g(h)})}b(u,p)},a=u=>{var p=he(),v=Z(p);{var h=g=>{es(g,{get campaign(){return n},compact:!0})};H(v,g=>{n&&g(h)})}b(u,p)},r=La("top_scroll"),n=La("card");let l=G(null);se(oe.TitlePopoverView,e.title),Da()&&Wt(Pt.TitleInterest,{title:e.title.title,source:wi.Card}),nt(()=>{s();const u=Date.now();return()=>se(oe.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function s(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const p=Array.from(u.getClientRects()),h=p.map(m=>m.x).map(m=>Math.abs(m-e.event.clientX)),g=p[h.indexOf(Math.min(...h))];o(l).style.top=g.top+window.scrollY+"px",o(l).style.left=g.left+window.scrollX+"px",o(l).style.height=g.height+"px"}var c=ih(),d=S(c);{let u=U(()=>n?a:null),p=U(()=>r?i:null);th(d,{get append(){return o(u)},get bubble(){return o(p)},children:(v,h)=>{kr(v,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Je(c,u=>R(l,u),()=>o(l)),b(t,c),te()}let zr=null,qi=null;function rh(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;qi&&Ir();const i=t.currentTarget;zr=i,setTimeout(()=>{zr===i&&(qi=Ut(ah,{target:Hn(),props:{event:t,title:e.title_details}}))},100)}async function Ir(t=!0){if(qi){const e=ia(qi,{outro:t});zr=null,qi=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function nh(t){if(!qi)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(oi)||e.closest(si)||Ir()}function lh(){zr=null}function oh(){return!!qi}var sh=j('<div class="content svelte-c2erhr"><!></div>'),ch=j("<div><!></div>"),dh=j('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),uh=j('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),ph=j("<!> <!>",1),vh=j('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function fh(t,e){ee(e,!0);const i=N(e,"initialIndex",3,0),a=N(e,"onchange",3,()=>null),r=N(e,"onclose",3,()=>null),n=300;console.log({onclose:r()});let l,s=G(!1);nt(()=>{setTimeout(()=>{l==null||l.setIndex(i()),requestAnimationFrame(()=>R(s,!0))})});function c(d){a()(d),l.setIndex(d)}Cr(t,{blur:!0,get onclose(){return r()},dialog:u=>{var p=vh(),v=Z(p);He(v,"",{},{"--transition-duration":"300ms"});var h=S(v);{const w=(x,_)=>{let z=()=>_==null?void 0:_().currentIndex;var C=he(),L=Z(C);Pe(L,17,()=>e.items,ze,(O,P,M)=>{var T=ch();let E;T.__click=()=>c(M);var I=S(T);{var q=B=>{var J=sh(),W=S(J);Oe(W,()=>e.each,()=>o(P),z),De(3,J,()=>ni,()=>({duration:o(s)?n:0})),b(B,J)};H(I,B=>{(Math.abs(M-z())===1||z()===M)&&B(q)})}F(()=>E=be(T,1,"item svelte-c2erhr",null,E,{active:M===z()})),b(O,T)}),b(x,C)},y=(x,_)=>{let z=()=>_==null?void 0:_().currentIndex,C=()=>_==null?void 0:_().reachedEnd;var L=ph(),O=Z(L);{var P=E=>{var I=dh();I.__click=()=>c(z()-1);var q=S(I);Ct(q,{size:21,direction:"left",title:"Previous"}),b(E,I)};H(O,E=>{z()>0&&E(P)})}var M=A(O,2);{var T=E=>{var I=uh();I.__click=()=>c(z()+1);var q=S(I);Ct(q,{size:21,title:"Next"}),b(E,I)};H(M,E=>{C()||E(T)})}b(x,L)};let k=U(()=>o(s)?n:0);Je(Bo(h,{threshold:40,moveThreshold:40,get transitionDuration(){return o(k)},children:w,controls:y,$$slots:{default:!0,controls:!0}}),x=>l=x,()=>l)}var g=A(v,2),m=S(g);Mn(m,{size:"42px",onclick:()=>{r()(),On()},"aria-label":"Close",children:(w,y)=>{wr(w,{size:24})},$$slots:{default:!0}}),De(7,g,()=>oa),b(u,p)},$$slots:{dialog:!0}}),te()}fe(["click"]);function hh(t,e){ee(e,!0);const i=N(e,"initialIndex",3,0);fh(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:r=>se(oe.ExploreTitleRailSetIndex,e.titles[r],{index:r}),each:(r,n=vt,l=vt)=>{{let s=U(()=>{var c;return n().sid===((c=e.titles[l()])==null?void 0:c.sid)});kr(r,{get title(){return n()},get useVideoBackground(){return o(s)}})}},$$slots:{each:!0}}),te()}const tt=[];function li({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&Io(e))return;e==null||e.preventDefault(),tt!=null&&tt.length&&Nn();const s=Hn(),c={initialScrollPosition:r,...l},d=gh({type:t,target:s,data:a,props:c});n&&ts({type:t,injection:i,data:n}),ts({type:t,injection:i,data:a,scrollPosition:r,component:d})}function gh({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Ut(Wf,{target:e,props:{participant:i,...a}}):t==="explore"?Ut(Kf,{target:e,props:{...a}}):t==="titles-rail"?Ut(hh,{target:e,props:{titles:i,...a}}):Ut(Nf,{target:e,props:{title:i,...a}})}function ts({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){tt.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Nn(t=!0){tt.length&&(bh(),ia(tt[tt.length-1].component,{outro:t}))}function mh(t=!0){Nn(t),tt.pop()}function On(t=!0){for(Nn(t);tt.length>0;)tt.pop()}function is(){return tt[tt.length-2]||null}function yh(){if(tt.length<2)return;mh();const t=tt.pop();t&&li({...t})}function bh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>ai?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(tt[tt.length-1].scrollPosition=e.scrollTop)}function wh(t,e){if(Io(t))return;let i=t.target;if(!i||(i.hasAttribute(oi)||(i=i.closest(si)),!i))return;const a=i.getAttribute(oi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),Zf(()=>{Ir(!1),li({event:t,injection:r,data:r.title_details})},!Dn.current&&window.innerWidth>=ai&&!window.matchMedia("(pointer: coarse)").matches))}var xh=j(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),_h=j('<!> <a target="_blank"> </a>',1),kh=j(" <!>.",1),Sh=j("<!> <br/>",1),Th=j(" <br/>",1),Eh=j('<span class="svelte-1to4glm"><!></span>'),Ph=j('<p class="svelte-1to4glm"></p>');function Ch(t,e){ee(e,!0);const i=N(e,"onclickmodal",3,()=>null);function a(c,d){se(oe.AfterArticlePlaylinkClick,c,{playlink:d})}function r(c,d,u){se(oe.AfterArticleModalButtonClick,d),i()(c,u)}var n=he(),l=Z(n);{var s=c=>{var d=Ph();Pe(d,21,()=>e.linkInjections,ze,(u,p)=>{const v=U(()=>{const{key:k,title:x,title_details:_,after_article_style:z}=o(p);return{key:k,title:x,title_details:_,after_article_style:z}}),h=U(()=>{var k;return((k=o(v).title_details)==null?void 0:k.providers)||[]});var g=Eh(),m=S(g);{var w=k=>{var x=Sh(),_=Z(x);{var z=L=>{var O=xh(),P=Z(O),M=A(P);M.__click=I=>I.stopPropagation();var T=S(M);T.__click=I=>r(I,o(v).title_details,o(p));var E=S(T);F((I,q)=>{Y(P,`"${o(v).title??""}" ${I??""} `),Y(E,q)},[()=>ae("Is Available To Stream"),()=>ae("View Streaming Options")]),b(L,O)},C=L=>{var O=kh(),P=Z(O),M=A(P);Pe(M,17,()=>o(h),ze,(T,E,I)=>{let q=()=>o(E).name,B=()=>o(E).url;var J=_h(),W=Z(J);{var V=X=>{var ne=St();F($=>Y(ne,$),[()=>I===o(h).length-1?`, ${ae("And")}`:","]),b(X,ne)};H(W,X=>{I&&X(V)})}var K=A(W,2);K.__click=()=>a(o(v).title_details,q());var Q=S(K);F(()=>{le(K,"href",B()),Y(Q,q())}),b(T,J)}),F(T=>Y(P,`"${o(v).title??""}" ${T??""} `),[()=>ae("Is Available To Stream On")]),b(L,O)};H(_,L=>{o(v).after_article_style==="modal_button"?L(z):L(C,!1)})}b(k,x)},y=k=>{var x=Th(),_=Z(x);F(z=>Y(_,`"${o(v).title??""}" ${z??""} `),[()=>ae("Title Unavailable Suffix")]),b(k,x)};H(m,k=>{o(h).length?k(w):k(y,!1)})}F(()=>le(g,"data-playpilot-injection-key",o(v).key)),b(u,g)}),b(c,d)};H(l,c=>{e.linkInjections.length&&c(s)})}b(t,n),te()}fe(["click"]);let qa=null;function zh(t,e){var l,s;if(qa||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),qa=Ut(Ch,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>li({event:c,injection:d,data:d.title_details})}})}function Ih(){var t;qa&&(ia(qa),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),qa=null)}var jh=j('<p class="svelte-1epbbn0"> </p>');function Ah(t,e){ee(e,!1),hn();var i=jh(),a=S(i);F(r=>Y(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||ae("In-Text Disclaimer")}]),b(t,i),te()}let Ra=null;function Lh(t){var n,l,s,c,d,u;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Ra)return;const e=document.createElement("div"),i=(c=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:c.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((u=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),Ra=Ut(Ah,{target:e})}function Mh(){var t;Ra&&(ia(Ra),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ra=null)}const oi="data-playpilot-injection-key",si=`[${oi}]`;function Dh(t,e={aiInjections:[],manualInjections:[]}){Fn(),Fh();const i=Hh(e);if(!i.length)return[];const a=bi(t.map(d=>d.innerText).join(" ")),n=Uh(i).filter(d=>a.includes(bi(d.sentence))),l={};let s=-1;for(const d of Gh(n)){s++;const u=t.findIndex(_=>bi(_.innerText).includes(bi(d.sentence))),p=t[u];if(!p)continue;const v=Eo(d.title,p,["A"]);if(!(v!=null&&v.nodeValue)||Po(v)){const _=Eo(d.title,p);if(_&&Po(_)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:g}=qh(d);let m=-1,w=!1;vr(p.innerHTML,d.title)===1&&(m=p.innerHTML.indexOf(d.title));const{phrase_before:k,phrase_after:x}=Rh(p,d);if(m===-1&&(k||x)){const _=[k,d.title,x].filter(Boolean).join(" ");if(m=p.innerHTML.indexOf(_),m===-1){const z=_d(p.innerHTML,d.title,k||"",x||"");if(z){const{leadingSpaces:C,trailingSpaces:L}=kd(z.match);g.innerHTML=z.match.trim();const O=z.index+C,P=z.index+z.match.length-L;if(p.innerHTML.slice(O,P).includes("href="))continue;Bn(p.innerHTML,d.title,p,h,O,P)&&(m=z.index,w=!0)}}}if(m===-1&&(v!=null&&v.nodeValue)){const _=p.innerHTML.indexOf(v.nodeValue),z=p.innerHTML.indexOf(d.sentence),C=z===-1?p.innerHTML.indexOf(d.sentence.slice(0,20)):-1,L=d.sentence.split(" ")[0],P=vr(p.innerHTML,L)===1?p.innerHTML.indexOf(L):-1,M=hd(n.slice(0,s+1),d,["title","sentence"])-1,T=Sd(v.nodeValue,p,M);m=Math.max(_,C,T,P,z,0)}if(m!==-1&&!w&&!Bn(p.innerHTML,d.title,p,h,m)){const _=Ed(d.title,p.innerHTML);_>-1?Bn(p.innerHTML,d.title,p,h,_):l[d.key]="Injection would have lead to broken HTML."}}Oh(n),Nh();const c=Wh(i);return c.length&&zh(t,c),document.querySelector(si)&&Lh(t),i.filter(d=>d.title_details).map((d,u)=>{const p=!d.manual&&Kh(d,u,i),v=d.duplicate??p;v&&(l[d.key]=p?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${oi}="${d.key}"]`),g=rs(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,m=n.find(y=>y.key===d.key),w=g?l[d.key]||(m?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:v,failed:g,failed_message:w,matchingElement:h}})}function qh(t){var n,l,s;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=!!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.open_tpi_links_in_explore),a=i?ou(t.title_details):Cn(t.title_details),r=document.createElement("a");return r.dataset.playpilotPosterUrl=(s=t.title_details)==null?void 0:s.standing_poster,r.innerText=t.title,r.href=a,r.target=i?"":"_blank",r.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",r),{injectionElement:e,linkElement:r}}function Bn(t,e,i,a,r,n=-1){const l=u=>Array.from(u.querySelectorAll(`a, ${si}`)).filter(p=>!p.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=l(s),d=s.innerText;return n>0?s.innerHTML=bd(t,a.outerHTML,r,n):s.innerHTML=yd(t,e,a.outerHTML,r),Math.abs(s.innerText.length-d.length)>1||c!=l(s)?!1:(i.innerHTML=s.innerHTML,!0)}function Rh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(vr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=wd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function Nh(){const t=Array.from(document.querySelectorAll(`${si} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function Oh(t){window.addEventListener("mousemove",nh),window.addEventListener("click",i=>{var a,r;(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&r.open_tpi_links_in_explore||wh(i,t)}),document.querySelectorAll(si).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{oh()||rh(n,r)}),i.addEventListener("mouseleave",lh))})}function Fn(){document.querySelectorAll(si).forEach(e=>Bh(e.getAttribute(oi)||"")),Ih(),Mh(),On(!1),Ir(!1)}function Bh(t){var r;const e=document.querySelector(`[${oi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function Fh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(si)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Hh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Vh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function as(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&rs(t)}function rs(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Uh(t){return ns(t).filter(e=>e.in_text!==!1&&as(e))}function Wh(t){return ns(t).filter(e=>e.after_article===!0&&as(e))}function ns(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&ls(i,e)))}function Gh(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Kh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&ls(a,t))}function ls(t,e){return t.title===e.title&&bi(t.sentence)===bi(e.sentence)}function Hn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Zh(){const t=yi();if(!t)throw new Error("No token was provided");try{return await await ri(`/domains/config?api-token=${t}`)||null}catch{return null}}fe(["click"]),fe(["input"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["mousedown","touchstart"]),fe(["mousedown","touchstart"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["click"]);function Yh(t,e){ee(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=p=>c.consents[p]===!0;Pd({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}te()}var Jh=j('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Qh=j('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Xh=j('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),$h=j('<button class="svelte-1tp7i1s"></button>'),eg=j("<small>You are using the beta version of TPI</small>"),tg=j('<button class="svelte-1tp7i1s">Use beta script</button>'),ig=j('<button class="svelte-1tp7i1s">Toggle new explore</button>'),ag=j("<option> </option>"),rg=j('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Open links as modal in explore</button> <button class="svelte-1tp7i1s">Open links as separate page in explore</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function ng(t,e){ee(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(je(d())),l=G(!1),s=null,c=G(184);dr(()=>{s&&clearInterval(s)});function d(){var z,C,L,O,P,M;const y=window.PlayPilotLinkInjections,k=((z=y.evaluated_link_injections)==null?void 0:z.filter(T=>!T.failed))||[],x=((C=y.evaluated_link_injections)==null?void 0:C.filter(T=>T.failed))||[],_=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:y.domain_sid},{label:"Organization",data:y.organization_sid},{label:"HTML selector",data:y.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([T,E])=>({label:T,data:E})),[`Succesful injections (${k.length})`]:k.map(T=>({label:T.title,data:T.sentence})),[`Failed injections (${x.length})`]:x.map(T=>({label:T.title,data:`Reason: ${T.failed_message} | Sentence: ${T.sentence}`})),[`Fetched ads (${((L=y.ads)==null?void 0:L.length)||0})`]:(O=y.ads)==null?void 0:O.map(T=>({label:T.campaign_name,data:T})),[`Tracking events (${((P=y.tracked_events)==null?void 0:P.length)||0})`]:(M=y.tracked_events)==null?void 0:M.map(T=>({label:T.event,data:T.payload})),[`Visible pixels (${_.length})`]:_.map((T,E)=>({label:E+1,data:T.src}))}}function u(y){o(l)||(a.push(y.key),R(l,i.some(k=>a.slice(a.length-k.length,a.length).join("")===k),!0),s=setInterval(()=>R(n,d(),!0),200))}function p(y){window.PlayPilotLinkInjections.ads.unshift({campaign_format:y,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function v(y){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Rn).forEach(({key:k,numberOfVariants:x})=>{const _=1/x;window.PlayPilotLinkInjections.split_test_identifiers[k]=Math.min(_*y,1)})}function h(){var x,_;const y=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!y)return;(_=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||_.call(x);const k=document.createElement("script");for(const z of y.attributes)k.setAttribute(z.name,z.value);k.getAttribute("onload")||k.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),k.src=y.src.replace("link-injection","link-injection@next"),y.insertAdjacentElement("afterend",k),y.remove()}var g=he();xe("keydown",Ie,u);var m=Z(g);{var w=y=>{var k=rg(),x=A(S(k),4);{var _=re=>{var me=Jh();b(re,me)};H(x,re=>{var me,Le,Me;(me=window.PlayPilotLinkInjections.config)!=null&&me.exclude_urls_pattern&&Mi().match((Me=(Le=window.PlayPilotLinkInjections)==null?void 0:Le.config)==null?void 0:Me.exclude_urls_pattern)&&re(_)})}var z=A(x,2);Pe(z,17,()=>Object.entries(o(n)),ze,(re,me)=>{var Le=U(()=>Wi(o(me),2));let Me=()=>o(Le)[0],it=()=>o(Le)[1];var ue=Xh(),Be=S(ue),wt=S(Be),jt=A(Be,2);{var ie=de=>{var Re=he(),Xe=Z(Re);{var di=Ua=>{var At=he(),ui=Z(At);Pe(ui,17,it,ze,(pg,ss,kg,Sg)=>{let vg=()=>o(ss).label,fg=()=>o(ss).data;var cs=Qh(),ds=S(cs),hg=S(ds),gg=A(ds,2),mg=S(gg);F(yg=>{Y(hg,vg()),Y(mg,yg)},[()=>JSON.stringify(fg())]),b(pg,cs)}),b(Ua,At)};H(Xe,Ua=>{Array.isArray(it())&&Ua(di)})}b(de,Re)},pe=de=>{var Re=St("No data");b(de,Re)};H(jt,de=>{var Re;(Re=it())!=null&&Re.length?de(ie):de(pe,!1)})}F(()=>Y(wt,Me())),b(re,ue)});var C=A(z,4);C.__click=()=>p("card");var L=A(C,2);L.__click=()=>p("top_scroll");var O=A(L,6);Pe(O,16,()=>({length:4}),ze,(re,me,Le)=>{var Me=$h();Me.__click=()=>v(Le),Me.textContent=Le,b(re,Me)});var P=A(O,4);P.__click=()=>console.log(Aa(window.PlayPilotLinkInjections.config));var M=A(P,2);M.__click=()=>console.log(Aa(window.PlayPilotLinkInjections.config).pageText);var T=A(M,4);T.__click=function(...re){var me;(me=e.onrerender)==null||me.apply(this,re)};var E=A(T,2);{var I=re=>{var me=eg();b(re,me)},q=re=>{var me=tg();me.__click=h,b(re,me)};H(E,re=>{r?re(I):re(q,!1)})}var B=A(E,2);{var J=re=>{var me=ig();me.__click=()=>{Er(),window.PlayPilotLinkInjections.config.explore_use_router=!sa(),Tr()},b(re,me)};H(B,re=>{sa()||re(J)})}var W=A(B,4),V=A(S(W),2);Hc(V,window.PlayPilotLinkInjections.region),V.__change=re=>{Er(),window.PlayPilotLinkInjections.region=re.target.value,Tr()};var K=A(W,2),Q=A(S(K),2);Q.__change=re=>{Er(),window.PlayPilotLinkInjections.language=re.target.value,Tr()},Pe(Q,21,()=>Object.entries(f),ze,(re,me)=>{var Le=U(()=>Wi(o(me),2));let Me=()=>o(Le)[0],it=()=>o(Le)[1];var ue=ag(),Be=S(ue),wt={};F(jt=>{lo(ue,jt),Y(Be,Me()),wt!==(wt=it())&&(ue.value=(ue.__value=it())??"")},[()=>it()===ja()]),b(re,ue)});var X=A(K,4),ne=A(S(X),2);le(ne,"min",80),le(ne,"max",240),le(ne,"step",8),ne.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(c)}px`);var $=A(ne,2),_e=S($),Se=A(X,4);Se.__click=()=>localStorage.setItem("tpi-open-explore-as-modal","true");var Ue=A(Se,2);Ue.__click=()=>localStorage.setItem("tpi-open-explore-as-modal","false");var Qe=A(Ue,4);Qe.__click=()=>R(l,!1),F(()=>Y(_e,o(c))),za(ne,()=>o(c),re=>R(c,re)),b(y,k)};H(m,y=>{o(l)&&y(w)})}b(t,g),te()}fe(["click","change","input"]);function lg(t,e){ee(e,!1);const i=Array.from(document.querySelectorAll(si)),a=[],r=Date.now();let n=!1,l=null;nt(()=>{if(!ur())return s(),()=>{var p;return(p=l==null?void 0:l.disconnect)==null?void 0:p.call(l)}});function s(){l=new IntersectionObserver(c),i.forEach(p=>{l.observe(p)})}function c(p){p.forEach(v=>{if(!v.isIntersecting)return;const h=v.target.getAttribute(oi);h&&a.push(h),l.unobserve(v.target)})}function d(){const{scrollHeight:p,scrollTop:v,clientHeight:h}=document.documentElement;return v/(p-h)*100}function u(){var v,h;if(n||document.visibilityState!=="hidden")return;n=!0;const p=Date.now();se(oe.UserLeft,null,{time_start:r,time_end:p,time_spent:p-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(v=window.PlayPilotLinkInjections)==null?void 0:v.tracked_events)==null?void 0:h.map(g=>g.event))||[],scroll_percentage:d()})}hn(),xe("visibilitychange",Ie,u),te()}function og(t,e){ee(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new Pr,r=.7,n="[data-playpilot-poster]";let l=G(0),s={},c=null;const d=U(()=>o(l)<ai);dr(h);function u(){var x,_;if((_=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&_.disable_scroll_reveal_posters||!o(d))return;g();const m=window.innerHeight,w=new Pr,y=m*r,k=m-y;for(const z of i){const{top:C}=z.getBoundingClientRect();C<y&&C>k&&w.add(z)}for(const z of w){if(a.has(z))continue;const C=z.dataset.playpilotPosterUrl;C in s&&s[C]!==z||(p(z,C),a.add(z),s[C]=z)}}function p(m,w){const y=document.createElement("img");y.classList.add("playpilot-floating-poster"),y.dataset.playpilotPoster="",y.src=w,y.alt="",y.onload=()=>y.classList.add("loaded"),m.insertAdjacentElement("afterbegin",y)}function v(m){const w=m.querySelector(n);w&&(w.classList.add("animating-out"),setTimeout(()=>w.remove(),500))}function h(){for(const m of Array.from(document.querySelectorAll(n)))m.remove()}function g(){c&&clearTimeout(c),c=setTimeout(()=>{for(const m of a)v(m),a.delete(m),s={}},1e3)}xe("scroll",Ie,u),Ia("innerWidth",m=>R(l,m,!0)),te()}function sg(t,e){ee(e,!0);const i=[];nt(()=>{if(!Da())return;const r=new IntersectionObserver(n=>{n.forEach(l=>{if(!l.isIntersecting)return;r.unobserve(l.target);const s=l.target.getAttribute(oi),c=e.linkInjections.find(u=>u.key===s),d=c==null?void 0:c.title_details;!s||!c||!d||i.includes(d.sid)||a(d)})});return e.linkInjections.forEach(n=>{n.matchingElement&&r.observe(n.matchingElement)}),()=>r.disconnect()});function a({sid:r,genres:n,participants:l,providers:s,title:c}){i.push(r),Wt(Pt.TitleInterest,{title:c,source:wi.Link}),n.slice(0,3).forEach(d=>{var u;Wt(Pt.GenreInterest,{genre:(u=hr.find(p=>p.slug===d))==null?void 0:u.name,source:wi.Link})}),l==null||l.slice(0,5).forEach(d=>{Wt(Pt.ParticipantInterest,{participant:d.name,source:wi.Link})}),s==null||s.forEach(d=>{Wt(Pt.ProviderInterest,{provider:d.name,source:wi.Link})})}te()}var cg=j("<!> <!>",1),dg=j('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function ug(t,e){ee(e,!0);let i=G(null),a=G(je(ur()));bo();let r=G(!1),n=G(!0),l=G(!0),s=G(je([]));const c=U(()=>o(i)||{}),d=U(()=>Vr(o(c).ai_injections,()=>[],!0)),u=U(()=>Vr(o(c).manual_injections,()=>[],!0)),p=h();Fe(()=>{o(a)&&!o(n)&&g()}),Tr(),dr(Fn);async function v(){fr()||(await p,Ld(),se(oe.ArticlePageView),!(!o(d).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Lo())))}async function h(){var E;R(n,!0);try{o(a)&&R(r,await yo({throwError:!0}),!0)}catch{se(oe.AuthFailed)}try{const I=window.PlayPilotLinkInjections.config||await Zh()||{};if(window.PlayPilotLinkInjections.config=I,I!=null&&I.custom_style&&w(I.custom_style||""),I!=null&&I.explore_navigation_selector&&Kv(),I!=null&&I.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),I!=null&&I.domain_sid&&Ao({organizationSid:I.organization_sid,domainSid:I.domain_sid}),R(l,pd(I),!0),o(l))return;I!=null&&I.html_selector&&(window.PlayPilotLinkInjections.selector=I==null?void 0:I.html_selector)}catch(I){se(oe.FetchingConfigFailed),console.error("TPI Config failed to fetch",I);return}try{if(R(i,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),R(i,o(i)||await So({maxTries:1,runAiWhenRelevant:!fr()}),!0),R(n,!1),!o(i)||(E=window.PlayPilotLinkInjections.config)!=null&&E.disable_public_injections&&!(o(a)&&o(r)))return;if(Ao({organizationSid:o(i).organization_sid,domainSid:o(i).domain_sid}),!o(i).ai_running||!o(i).ai_enabled){m({aiInjections:o(d),manualInjections:o(u)});return}if(!o(a)||fr())return;R(i,await So({requireCompletedResult:!0,onpoll:I=>R(i,I,!0)}),!0),m({aiInjections:o(d),manualInjections:o(u)})}catch(I){console.error(I),se(oe.InjectionError,null,{message:I.message})}}function g(){m(Vh(o(s)))}function m(E={aiInjections:o(d),manualInjections:o(u)}){const{elements:I}=Aa(),q=Dh(I,E);JSON.stringify(q)!==JSON.stringify(o(s))&&(R(s,q,!0),window.PlayPilotLinkInjections.evaluated_link_injections=q),o(a)||y(q)}function w(E){const I="playpilot-custom-style",q=document.getElementById(I),B=q||document.createElement("style");B.textContent=`body { ${E} }`,B.id=I,q||document.body.appendChild(B)}function y(E){const I=E.filter(B=>!B.failed),q=E.filter(B=>B.failed);if(I.length&&se(oe.ArticleInjected,null,{manual:I.filter(B=>B.manual).length,ai:I.filter(B=>!B.manual).length}),q.length){const B=J=>q.filter(({failed_message:W})=>W==null?void 0:W.includes(J)).length;se(oe.FailedInjectionsCount,null,{total:q.length,sentence_not_found:B("sentence was not found"),already_linked:B("already inside of a link"),broken_html:B("broken HTML"),duplicate:B("duplicate"),unknown:B("unknown reasons")})}}var k=dg(),x=Z(k),_=S(x);H(_,E=>{});var z=A(_,2);ng(z,{onrerender:g});var C=A(x,2);{var L=E=>{In(E,{get pixels(){return o(i).pixels}})};H(C,E=>{var I,q;(q=(I=o(i))==null?void 0:I.pixels)!=null&&q.length&&E(L)})}var O=A(C,2);{var P=E=>{sg(E,{get linkInjections(){return o(s)}})};H(O,E=>{o(s).length&&E(P)})}var M=A(O,2);Ca(M,()=>o(s),E=>{var I=cg(),q=Z(I);lg(q,{});var B=A(q,2);og(B,{}),b(E,I)});var T=A(M,2);Yh(T,{onchange:v}),b(t,k),te()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Ut(ug,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Fn()}}})();
|
|
10
|
+
`}}function yr(t){return t?t.replace("/src/img",""):null}function No(t,e=null){return t!=null&&t.length?`${ad}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Nd=j('<img class="svelte-p6g2a"/>');function br(t,e){ee(e,!0);const i=N(e,"width",3,96),a=N(e,"height",3,144),r=N(e,"lazy",3,!0),n=N(e,"onload",3,()=>null);var l=Nd();F(s=>{le(l,"src",s),le(l,"alt",`Movie poster for '${e.title.title??""}'`),le(l,"width",i()),le(l,"height",a()),le(l,"loading",r()?"lazy":null)},[()=>yr(e.title.standing_poster)]),xe("error",l,({target:s})=>s.src=rd),xe("load",l,function(...s){var c;(c=n())==null||c.apply(this,s)}),b(t,l),te()}var Od=Ye('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function wr(t,e){const i=N(e,"size",3,16);var a=Od();F(()=>{le(a,"width",i()),le(a,"height",i())}),b(t,a)}var Bd=j('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Fd(t,e){const i=N(e,"embeddable_url",3,"");var a=Bd(),r=S(a);Pn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=A(r,2);n.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var l=A(n,2);l.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=S(l);wr(s,{size:24}),De(3,a,()=>ni,()=>({duration:100})),b(t,a)}fe(["click"]);const Hd="1304688689641511",Vd="https://endpoint-youtube-availability.playpilot.workers.dev";async function Oo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Vd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const s=await l.json();return!((r=s.blocked)!=null&&r[e]||!s.blocked&&s.allowed&&!((n=s.allowed)!=null&&n.includes(e)))}catch{return!1}}let xr={};function Ud(t){const e=Hn(),i={onclose:Wd,embeddable_url:t.embeddable_url||""};xr=Ut(Fd,{target:e,props:i})}function Wd(){xr&&(ia(xr,{outro:!0}),xr=null)}function En(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Gd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&En(r.embeddable_url);try{n&&await Oo(n)&&(a=r)}catch{}i++}return a}var Kd=Ye('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Zd=Ye('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Yd=Ye('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Jd(t,e){const i=N(e,"muted",3,!1);var a=Yd(),r=S(a);{var n=s=>{var c=Kd();b(s,c)},l=s=>{var c=Zd();b(s,c)};H(r,s=>{i()?s(n):s(l,!1)})}b(t,a)}var Qd=j('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),Xd=j('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function Pn(t,e){var x;ee(e,!0);const i=N(e,"embeddable_url",3,""),a=N(e,"controls",19,()=>[]),r=N(e,"muted",3,!1),n=N(e,"loop",3,!1),l=N(e,"captions",3,!1),s=N(e,"showMuteControls",3,!1),c=U(()=>En(i())),d=U(()=>{var _,z;return(((z=(_=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:_.video_playtimes)==null?void 0:z[o(c)||""])||1)-1}),u=((x=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:x.replace("#",""))||"fa548a";let p=G(null),v=G(je(r()));nt(()=>{if(!o(c))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let _=o(d);const z=setInterval(()=>{_++,window.PlayPilotLinkInjections.video_playtimes[o(c)]=_},1e3);return()=>clearInterval(z)});function h(_=!o(v)){var z,C;o(v)!=_&&((C=(z=o(p))==null?void 0:z.contentWindow)==null||C.postMessage("mute","*")),R(v,_,!0)}var g={toggleMute:h},m=he(),w=Z(m);{var y=_=>{var z=Xd(),C=Z(z);Je(C,P=>R(p,P),()=>o(p));var L=A(C,2);{var O=P=>{var M=Qd();M.__click=()=>h();var T=S(M);Jd(T,{get muted(){return o(v)}}),b(P,M)};H(L,P=>{s()&&P(O)})}F(P=>le(C,"src",`https://video.playpilot.net/?video_id=${o(c)??""}&color=${u}&muted=${r()??""}&loop=${n()??""}&captions=${l()??""}&controls=${P??""}&start_time=${o(d)??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),b(_,z)},k=_=>{var z=St("Something went wrong");b(_,z)};H(w,_=>{o(c)?_(y):_(k,!1)})}return b(t,m),te(g)}fe(["click"]);var $d=j('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Bo(t,e){ee(e,!0);let i=N(e,"gap",3,"0"),a=N(e,"fill",3,!0),r=N(e,"transitionDuration",3,300),n=N(e,"threshold",3,30),l=N(e,"moveThreshold",3,0),s=N(e,"currentIndex",15,0),c=N(e,"shown",31,()=>je([])),d=N(e,"sliderWidth",15,0),u=N(e,"currentScrollPosition",15,0),p=N(e,"maxWidth",15,0),v=N(e,"reachedEnd",15,!1),h=N(e,"distanceToEnd",15,0),g=N(e,"passedThreshold",15,!1),m=N(e,"passedMoveThreshold",15,!1),w=N(e,"allowWheel",3,!1),y=N(e,"end",3,()=>null),k=N(e,"change",3,ie=>null),x=N(e,"onend",19,y),_=N(e,"onchange",19,k),z=N(e,"onresize",3,()=>null),C=G(!1),L=G(!1),O=0,P=0,M=G(void 0),T=G(void 0),E=null,I=null;Fe(()=>{o(T)&&$(),o(T)&&h(p()-u()-d())}),nt(()=>(Qe(),()=>E==null?void 0:E.disconnect()));function q(ie){const pe=o(T).children.length,de=Math.max(0,Math.min(ie,pe-1));X({setIndex:de}),$()}function B(){R(L,!0),q(s()),requestAnimationFrame(()=>R(L,!1))}function J(ie){re(ie.target)&&(ie.preventDefault(),O=_e(ie),R(C,!0))}function W(){if(o(C)){if(!g())X({setIndex:s()});else{const ie=u()-P,pe=ie>0?1:-1;ie!=0&&X({direction:pe})}R(C,!1),g(!1)}}function V(ie){if(!o(C))return;const pe=_e(ie),de=P+(O-pe),Re=O-pe;m(Math.abs(Re)>l()),g(Math.abs(u()-P)>n()),m()&&(ne(de-l()*(Re>0?1:-1)),$())}function K(ie){if(!w())return;const{deltaX:pe,deltaY:de}=ie;if(Math.abs(pe)<Math.abs(de))return;ie.preventDefault();const Xe=u()+pe*20*.02;ne(Xe),$(),I&&clearTimeout(I),I=setTimeout(()=>{X({direction:pe>0?1:-1})},100)}function Q(ie){re(document.activeElement)&&(ie.key=="ArrowLeft"&&q(s()-1),ie.key=="ArrowRight"&&q(s()+1))}function X({setIndex:ie=-1,direction:pe=1}={}){const de=Se(),Re=s();s(0);let Xe;for(Xe=0;Xe<de.length;Xe++)if(ie!=-1){if(Xe>=ie)break}else if(pe>0&&de[Xe]>u()||pe<0&&de[Xe+1]>u())break;s(Math.min(Xe,Ue().length-1)),ne(de[s()],!0),P=u(),_()&&s()!=Re&&_()(s())}function ne(ie,pe=!1){u(ie);const de=p()-d();v(u()>=de),v()&&(x()&&x()(),a()&&pe&&u(de))}function $(){const ie=Se();Array.from(ie).forEach((pe,de)=>{u()+d()<pe||c().includes(de)||c([...c(),de])})}function _e(ie){var pe,de;return ie.pageX??((de=(pe=ie.touches)==null?void 0:pe[0])==null?void 0:de.pageX)}function Se(){return Ue().map(ie=>ie.offsetLeft)}function Ue(){return Array.from(o(T).children).filter(ie=>ie instanceof HTMLElement).filter(ie=>ie.src!="about:blank")}function Qe(){E=new ResizeObserver(ie=>{for(const pe of ie){const de=Array.isArray(pe.contentBoxSize)?pe.contentBoxSize[0]:pe.contentBoxSize;p(de.inlineSize)}z()()}),E.observe(o(T))}function re(ie){return ie===o(M)||(ie==null?void 0:ie.closest(".slider"))===o(M)}var me={setIndex:q,reposition:B},Le=$d();xe("mousedown",Ie,J),xe("mouseup",Ie,W),xe("mousemove",Ie,V),xe("touchstart",Ie,J,void 0,!0),xe("touchend",Ie,W),xe("touchmove",Ie,V,void 0,!0),xe("keydown",Ie,Q),xe("resize",Ie,B);var Me=Z(Le);let it;var ue=S(Me);let Be;var wt=S(ue);Oe(wt,()=>e.children??vt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:h()})),Je(ue,ie=>R(T,ie),()=>o(T)),Je(Me,ie=>R(M,ie),()=>o(M));var jt=A(Me,2);return Oe(jt,()=>e.controls??vt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:h()})),F(ie=>{it=be(Me,1,"slider svelte-1gs8ha8",null,it,{dragging:o(C),"passed-threshold":g()}),Be=He(ue,"",Be,ie)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(o(C)||o(L)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),xe("wheel",Me,K),Et(Me,"clientWidth",d),b(t,Le),te(me)}var eu=Ye("<title> </title>"),tu=Ye('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Ct(t,e){const i=N(e,"direction",3,"right"),a=N(e,"title",3,""),r=N(e,"size",3,16);var n=tu(),l=S(n);{var s=c=>{var d=eu(),u=S(d);F(()=>Y(u,a())),b(c,d)};H(l,c=>{a()&&c(s)})}F(()=>{be(n,0,i(),"svelte-1m6nwwy"),le(n,"width",`${r()??""}px`),le(n,"height",`${r()??""}px`)}),b(t,n)}function Ae(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var iu=j('<div class="heading svelte-1ayf7b5"> </div>'),au=j('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),ru=j('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),nu=j("<!> <!>",1),lu=j('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function _r(t,e){ee(e,!0);let i=N(e,"heading",3,""),a=N(e,"onchange",3,()=>null),r=N(e,"onresize",3,()=>null),n=N(e,"slider",15);var l=lu(),s=Z(l);{var c=p=>{var v=iu(),h=S(v);Tt(v,(g,m)=>Ae==null?void 0:Ae(g,m),()=>2),F(()=>Y(h,i())),b(p,v)};H(s,p=>{i()&&p(c)})}var d=A(s,2),u=S(d);Je(Bo(u,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(v,h)=>{let g=()=>h==null?void 0:h().setIndex,m=()=>h==null?void 0:h().currentIndex,w=()=>h==null?void 0:h().reachedEnd;var y=nu(),k=Z(y);{var x=C=>{var L=au();L.__click=()=>g()(m()-1);var O=S(L);Ct(O,{direction:"left",title:"Previous"}),b(C,L)};H(k,C=>{m()>0&&C(x)})}var _=A(k,2);{var z=C=>{var L=ru();L.__click=()=>g()(m()+1);var O=S(L);Ct(O,{title:"Next"}),b(C,L)};H(_,C=>{w()||C(z)})}b(v,y)},children:(v,h)=>{var g=he(),m=Z(g);Oe(m,()=>e.children),b(v,g)},$$slots:{controls:!0,default:!0}}),v=>n(v),()=>n()),b(t,l),te()}fe(["click"]);function Cn(t){return`${td}/${t.type}/${t.slug}/`}function ou(t){var e,i,a,r;return localStorage.getItem("tpi-open-explore-as-modal")==="true"?((i=(e=window.PlayPilotLinkInjections)==null?void 0:e.config)==null?void 0:i.explore_navigation_path)+`?route=modal&sid=${t.sid}`:((r=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)==null?void 0:r.explore_navigation_path)+`?route=title&sid=${t.sid}`}var su=j('<img class="video-fallback svelte-12ph9f6" alt=""/>'),cu=j('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),du=j('<a class="poster svelte-12ph9f6"><!></a>'),uu=j('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),pu=j('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),vu=j('<div class="skeleton svelte-12ph9f6"> </div>'),fu=j('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),hu=j('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6"> </span> <span class="skeleton svelte-12ph9f6"> </span></div> <!></div>'),gu=j("<div><!></div>");function Fo(t,e){ee(e,!0);let i=N(e,"minimumLength",3,1),a=N(e,"heading",3,""),r=N(e,"size",3,"small"),n=N(e,"aside",3,!1),l=N(e,"expandable",3,!1),s=N(e,"expandedTitle",15,null),c=N(e,"expandedRailKey",15,null),d=N(e,"onclick",3,()=>null),u=N(e,"onexpand",3,()=>null);const p=yn(),h=Ya("scope")==="popover"?Ya("title"):null;let g=G(null),m=G(null),w=G(null),y=!1;nt(()=>{l()&&z()});function k(T,E,I){var B,J,W,V,K;T==null||T.preventDefault();const q=E[I];if(l()&&!C(q)){const Q=(B=o(g))==null?void 0:B.querySelectorAll(".title")[I],$=(((J=o(g))==null?void 0:J.getBoundingClientRect().right)||0)-Q.getBoundingClientRect().right>Q.clientWidth*2;y=!0,setTimeout(()=>y=!1,500),r()==="flexible"&&!$?(W=o(m))==null||W.setIndex(I-2):r()==="huge"&&!$&&((V=o(m))==null||V.setIndex(I)),_(q),T&&u()(q);return}T&&(sa()?li({event:T,type:"titles-rail",data:E,returnToTitle:h,props:{initialIndex:I}}):li({event:T,data:q,returnToTitle:h}),(K=o(w))==null||K.toggleMute(!0),d()(q))}async function x(){const T=await e.titles,E=await Gd(T);E&&(s()||c()&&c()!==p||_(E))}function _(T){c(p),s(T)}function z(){c()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(q=>q.getBoundingClientRect().top>=0).sort((q,B)=>q.getBoundingClientRect().top-B.getBoundingClientRect().top)[0]!==o(g)||(s(null),c(null),x())}function C(T){var E;return c()===p&&T.sid===((E=s())==null?void 0:E.sid)}function L(T,E){l()&&(y||setTimeout(()=>k(null,T,E),250))}var O=gu();xe("scroll",Ie,z);let P;var M=S(O);ra(M,()=>e.titles,T=>{_r(T,{get heading(){return a()},children:(E,I)=>{var q=he(),B=Z(q);Pe(B,16,()=>({length:12}),ze,(J,W)=>{var V=hu(),K=A(S(V),4);{var Q=X=>{var ne=fu(),$=S(ne);Pe($,20,()=>({length:3}),ze,(_e,Se)=>{var Ue=vu();b(_e,Ue)}),b(X,ne)};H(K,X=>{n()&&X(Q)})}b(J,V)}),b(E,q)},$$slots:{default:!0}})},(T,E)=>{var I=he(),q=Z(I);{var B=J=>{_r(J,{get heading(){return a()},onchange:W=>L(o(E),W),onresize:()=>{var W;return(W=o(m))==null?void 0:W.reposition()},get slider(){return o(m)},set slider(W){R(m,W,!0)},children:(W,V)=>{var K=he(),Q=Z(K);Pe(Q,17,()=>o(E),ze,(X,ne,$,_e)=>{const Se=U(()=>C(o(ne))),Ue=U(()=>Cn(o(ne))),Qe=U(()=>pe=>k(pe,o(E),$));var re=pu();let me;var Le=S(re),Me=S(Le);{var it=pe=>{var de=cu(),Re=S(de);Re.__click=function(...At){var ui;(ui=o(Qe))==null||ui.apply(this,At)};var Xe=A(Re,2);{var di=At=>{Je(Pn(At,{get embeddable_url(){return o(ne).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),ui=>R(w,ui,!0),()=>o(w))},Ua=At=>{var ui=su();F(()=>le(ui,"src",o(ne).medium_poster)),b(At,ui)};H(Xe,At=>{o(ne).embeddable_url?At(di):At(Ua,!1)})}F(()=>le(Re,"href",o(Ue))),De(2,de,()=>ni,()=>({delay:200,duration:200})),b(pe,de)},ue=pe=>{var de=du();de.__click=function(...Xe){var di;(di=o(Qe))==null||di.apply(this,Xe)};var Re=S(de);br(Re,{get title(){return o(ne)},width:96,height:144}),F(()=>le(de,"href",o(Ue))),b(pe,de)};H(Me,pe=>{o(Se)?pe(it):pe(ue,!1)})}var Be=A(Le,2);Be.__click=function(...pe){var de;(de=o(Qe))==null||de.apply(this,pe)};var wt=S(Be),jt=A(Be,2);{var ie=pe=>{var de=uu();de.__click=function(...Xe){var di;(di=o(Qe))==null||di.apply(this,Xe)};var Re=S(de);F(()=>Y(Re,o(ne).description)),b(pe,de)};H(jt,pe=>{n()&&pe(ie)})}F(()=>{me=be(re,1,"title svelte-12ph9f6",null,me,{expanded:o(Se)}),le(Be,"href",o(Ue)),Y(wt,o(ne).title)}),b(X,re)}),b(W,K)},$$slots:{default:!0}})};H(q,J=>{var W;((W=o(E))==null?void 0:W.length)>=i()&&J(B)})}b(T,I)}),Je(O,T=>R(g,T),()=>o(g)),F(()=>{P=be(O,1,`titles ${r()??""}`,"svelte-12ph9f6",P,{"with-aside":n()}),le(O,"data-role",l()?"expandable-rail":null)}),b(t,O),te()}fe(["click"]);var mu=j('<div class="rail svelte-1b834ry"><!></div>'),yu=j('<div data-testid="explore-home"></div> <!>',1);function bu(t,e){ee(e,!0);let i=G(null),a=G(null),r=G(je(window.innerWidth));const n=[{heading:"List: Trending",params:{ordering:mr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0,size:"flexible"}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0,size:"flexible"}}];async function l(d={}){var u;try{return(u=await gr(d))==null?void 0:u.results}catch(p){throw console.log(p),se(oe.ExploreHomeRailError,null,{message:p.message||p.status.toString()||"",params:d}),new Error(p)}}var s=yu();xe("scroll",Ie,onscroll);var c=A(Z(s),2);Pe(c,17,()=>n,ze,(d,u)=>{let p=()=>o(u).heading,v=()=>o(u).params,h=()=>o(u).properties;var g=mu(),m=S(g);{let w=U(()=>ae(p())),y=U(()=>l(v())),k=U(()=>o(r)>=ai?"flexible":"huge");Fo(m,gn({get heading(){return o(w)},get titles(){return o(y)},get size(){return o(k)},minimumLength:7},h,{onclick:()=>se(oe.ExploreTitleRailModalView,null,{rail:p()}),onexpand:x=>se(oe.ExploreTitleRailExpandClick,x,{rail:p()}),get expandedTitle(){return o(i)},set expandedTitle(x){R(i,x,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(x){R(a,x,!0)}}))}b(d,g)}),Ia("innerWidth",d=>R(r,d,!0)),b(t,s),te()}function Wt(t,e={}){const i=new Image;i.src=wu(t,e||{})}function wu(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Hd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Ho(t,e={}){return()=>{Fe(()=>Wt(t,e))}}function xu(t,e={}){return i=>{const a=()=>Wt(t,e);Fe(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var _u=j("<button><!></button>");function Di(t,e){const i=N(e,"variant",3,"filled"),a=N(e,"size",3,"base"),r=N(e,"label",3,null),n=N(e,"active",3,!1);var l=_u();let s;l.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var c=S(l);Oe(c,()=>e.children??vt),F(()=>{s=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:n()}),le(l,"aria-label",r())}),b(t,l)}fe(["click"]);var ku=Ye('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function zn(t,e){const i=N(e,"size",3,14);var a=ku();F(()=>{le(a,"width",i()),le(a,"height",i())}),b(t,a)}function Vo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(c=>c.name===r.name),l=n==null?void 0:n.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var Su=j('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function In(t,e){ee(e,!0);let i=G(je(Math.random()));var a=he();xe("updateconsent",Ie,()=>R(i,Math.random(),!0));var r=Z(a);Ca(r,()=>o(i),n=>{var l=he(),s=Z(l);{var c=d=>{var u=he(),p=Z(u);Pe(p,17,()=>e.pixels,ze,(v,h)=>{var g=Su();F(()=>le(g,"src",o(h))),b(v,g)}),b(d,u)};H(s,d=>{gt("pixels")&&d(c)})}b(n,l)}),b(t,a),te()}var Tu=j('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Eu(t,e){ee(e,!0);const i=N(e,"size",3,30),a=N(e,"onclick",3,()=>null),r=U(()=>e.playlink.name),n=U(()=>e.playlink.url),l=U(()=>e.playlink.logo_url),s=U(()=>e.playlink.pixels);var c=Tu();c.__click=function(...h){var g;(g=a())==null||g.apply(this,h)};let d;var u=S(c),p=A(u,2);{var v=h=>{In(h,{get pixels(){return o(s)}})};H(p,h=>{var g;(g=o(s))!=null&&g.length&&h(v)})}F(h=>{le(c,"href",o(n)),le(c,"data-playlink",o(r)),d=He(c,"",d,{"--size":`${i()??""}px`}),le(u,"src",h),le(u,"alt",o(r)),le(u,"height",i()),le(u,"width",i())},[()=>yr(o(l))]),b(t,c),te()}fe(["click"]);var Pu=j('<span class="more svelte-1plv45z"> </span>'),Cu=j('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),zu=j('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Uo(t,e){ee(e,!0);const i=N(e,"size",3,30),a=U(()=>Vo(e.playlinks).slice(0,3));function r(p){p.stopPropagation()}var n=zu(),l=S(n);Pe(l,17,()=>o(a),ze,(p,v)=>{Eu(p,{get playlink(){return o(v)},onclick:r,get size(){return i()}})});var s=A(l,2);{var c=p=>{var v=Pu(),h=S(v);F(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),b(p,v)};H(s,p=>{e.playlinks.length>o(a).length&&p(c)})}var d=A(s,2);{var u=p=>{var v=Cu();b(p,v)};H(d,p=>{e.playlinks.length||p(u)})}b(t,n),te()}var Iu=j("<div>Series</div>"),ju=j("<div> </div>"),Au=j('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Lu(t,e){ee(e,!0);const i=N(e,"onclick",3,()=>null);var a=Au();a.__click=function(...k){var x;(x=i())==null||x.apply(this,k)};var r=S(a),n=S(r);br(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=A(n,2),s=S(l),c=S(s);zn(c,{size:12});var d=A(c),u=A(s,2);{var p=k=>{var x=Iu();b(k,x)};H(u,k=>{e.title.type==="series"&&k(p)})}var v=A(u,2);{var h=k=>{var x=ju(),_=S(x);F(()=>Y(_,`${e.title.length??""} min`)),b(k,x)};H(v,k=>{e.title.length&&k(h)})}var g=A(r,2),m=S(g),w=S(m),y=A(m,2);Uo(y,{get playlinks(){return e.title.providers},size:20}),F(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(w,e.title.title)}),b(t,a),te()}fe(["click"]),Qs();var Mu=j('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Du(t){var e=Mu(),i=A(S(e),2),a=S(i);He(a,"",{},{width:"60%"}),b(t,e)}var qu=j('<div class="svelte-pkkpyl"> </div>'),Ru=j('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Wo(t,e){var T;ee(e,!0);const i=N(e,"onclick",3,()=>null),a=!!((T=window.PlayPilotLinkInjections)!=null&&T.no_affiliate);var r=Ru();r.__click=function(...E){var I;(I=i())==null||I.apply(this,E)};var n=S(r),l=S(n);br(l,{get title(){return e.title},width:30,height:43,lazy:!0});var s=A(n,2),c=S(s),d=S(c),u=A(c,2),p=S(u),v=S(p);zn(v,{size:11});var h=A(v),g=A(p,2),m=S(g),w=A(g,2),y=S(w),k=A(w,2);{var x=E=>{var I=qu(),q=S(I);F(()=>Y(q,`${e.title.length??""} min`)),b(E,I)};H(k,E=>{e.title.length&&E(x)})}var _=A(u,2);let z;var C=S(_),L=A(_,2);{var O=E=>{Uo(E,{get playlinks(){return e.title.providers}})};H(L,E=>{a||E(O)})}var P=A(s,2),M=S(P);Ct(M,{}),F(E=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(m,e.title.year),Y(y,E),z=be(_,1,"description svelte-pkkpyl",null,z,{large:a}),Y(C,e.title.description)},[()=>ae(`Type: ${e.title.type}`)]),b(t,r),te()}fe(["click"]);var Nu=j('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function Ou(t){var e=Nu(),i=A(S(e),2),a=S(i);He(a,"",{},{width:"40%"});var r=A(a,2);He(r,"",{},{width:"60%"});var n=A(r,2);He(n,"",{},{width:"80%"}),b(t,e)}var Bu=j(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function Fu(t){var e=Bu();b(t,e)}var Hu=j("<div><!></div>"),Vu=j("<!> <!>",1),Uu=j("<p>Something went wrong</p>"),Wu=j('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Gu(t,e){ee(e,!0);const i=N(e,"searchQuery",3,""),a=N(e,"filter",19,()=>({}));let r=1,n=G(je([])),l=null,s=0,c=JSON.stringify(a())+i(),d=G(je(m())),u=G(0);const p=U(()=>o(u)>500),v=U(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),h=U(()=>o(p)?Lu:Wo),g=U(()=>o(p)?Du:Ou);Fe(()=>{(i()||s!=0)&&w(i())}),Fe(()=>{a()&&y()}),dr(()=>{k()});async function m(){s+=1;const q=s,B={page_size:24,page:r};i()&&(B.search=i()),Object.entries(a()).forEach(([J,{type:W,value:V}])=>{if(W==="string")B[J]=V;else if(W==="array")B[J]=V.join(",");else if(W==="range"){const[K,Q]=V;B[J+"_min"]=K,B[J+"_max"]=Q}});try{const J=await gr(B)||{next:null,previous:null,results:[]};return q===s&&R(n,[...o(n),...J.results],!0),J}catch(J){throw console.log(J.status),se(oe.ExploreResultsError,null,{message:J.message||J.status.toString()||"",params:B}),new Error(J)}}async function w(q){C()&&(l&&clearTimeout(l),l=setTimeout(()=>{x(),R(d,m(),!0),q&&(se(oe.ExploreSearch,null,{query:q}),gt("pixels")&&Wt(Pt.SearchQuery,{query:q}))},100))}function y(){C()&&(x(),R(d,m(),!0))}function k(){for(const q of Object.keys(a()))delete a()[q]}function x(){r=1,R(n,[],!0)}function _(){r++,R(d,m(),!0),se(oe.ExploreShowMore,null,{page:r})}function z(q,B){li({event:q,data:B}),se(oe.ExploreTitleClick,B)}function C(){const q=JSON.stringify(a())+i();return q===c?!1:(c=q,!0)}var L=Wu(),O=Z(L);let P,M;var T=S(O);Pe(T,17,()=>o(n),ze,(q,B)=>{var J=he(),W=Z(J);Ca(W,()=>o(B).sid,V=>{var K=he(),Q=Z(K);on(Q,()=>o(h),(X,ne)=>{ne(X,{get title(){return o(B)},onclick:$=>z($,o(B))})}),b(V,K)}),b(q,J)});var E=A(T,2);ra(E,()=>o(d),q=>{var B=he(),J=Z(B);Pe(J,16,()=>({length:24}),ze,(W,V)=>{var K=he(),Q=Z(K);on(Q,()=>o(g),(X,ne)=>{ne(X,{})}),b(W,K)}),b(q,B)},void 0,q=>{});var I=A(O,2);ra(I,()=>o(d),null,(q,B)=>{var J=U(()=>{var{next:$}=o(B);return{next:$}}),W=U(()=>o(J).next),V=Vu(),K=Z(V);{var Q=$=>{var _e=Hu();let Se;var Ue=S(_e);Di(Ue,{size:"large",onclick:_,children:(Qe,re)=>{var me=St();F(Le=>Y(me,Le),[()=>ae("Show More")]),b(Qe,me)},$$slots:{default:!0}}),F(()=>Se=be(_e,1,"show-more svelte-qc99of",null,Se,{grid:o(p)})),b($,_e)};H(K,$=>{o(W)&&$(Q)})}var X=A(K,2);{var ne=$=>{Fu($)};H(X,$=>{var _e;!((_e=o(n))!=null&&_e.length)&&r===1&&$(ne)})}b(q,V)},q=>{var B=Uu();b(q,B)}),F(()=>{P=be(O,1,"titles svelte-qc99of",null,P,{grid:o(p)}),M=He(O,"",M,{"--grid-columns":o(v)})}),Et(O,"clientWidth",q=>R(u,q)),b(t,L),te()}var Ku=Ye('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function Zu(t){var e=Ku();b(t,e)}var Yu=j('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Ju(t,e){ee(e,!0);let i=G("");var a=Yu(),r=S(a),n=S(r);Zu(n);var l=A(r,2);l.__input=()=>e.oninput(o(i)),F(s=>le(l,"placeholder",s),[()=>ae("Search Movies And Shows")]),za(l,()=>o(i),s=>R(i,s)),b(t,a),te()}fe(["input"]);const Qu=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Xu(){const t=yi();if(!t)throw new Error("No token was provided");const e={region:await Tn(),page:1,include_count:"false"};return await ri(`/providers/?api-token=${t}&`+xn(e))}function $u(t){const e=t-1;return e*e*e+1}function ep(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=C=>Math.sqrt(C)*120,easing:l=$u}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,u]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var p=tp(t),v=t.clientWidth/i.width/p,h=t.clientHeight/i.height/p,g=e.left+e.width*d,m=e.top+e.height*u,w=i.left+i.width*d,y=i.top+i.height*u,k=(g-w)*v,x=(m-y)*h,_=e.width/i.width,z=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(k*k+x*x)):n,easing:l,css:(C,L)=>{var O=L*k,P=L*x,M=C+L*_,T=C+L*z;return`transform: ${c} translate(${O}px, ${P}px) scale(${M}, ${T});`}}}function tp(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var ip=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function ap(t){var e=ip();b(t,e)}var rp=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function np(t){var e=rp();b(t,e)}var lp=j('<div class="icon svelte-dfwzqz"><!></div>'),op=j('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),sp=j('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function cp(t,e){ee(e,!0);let i=N(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=N(e,"selected",23,()=>[]),r=N(e,"placeholder",19,()=>`${ae("Search")}...`),n=N(e,"onchange",3,()=>null),l=G("");const s=U(c);function c(){var g;return(g=i())!=null&&g.length?o(l)?i().filter(({label:m})=>m.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(g){const m=a().find(w=>w===g);a(m?a().filter(w=>w!==g):[...a(),g]),n()(a())}var u=sp(),p=Z(u),v=S(p),h=A(p,2);Pe(h,29,()=>o(s)||[],({label:g,value:m})=>m,(g,m)=>{let w=()=>o(m).label,y=()=>o(m).value;const k=U(()=>!!a().find(P=>P===y()));var x=op(),_=S(x);let z;_.__click=()=>d(y());var C=S(_),L=A(C),O=S(L);Ca(O,()=>o(k),P=>{var M=lp(),T=S(M);{var E=q=>{ap(q)},I=q=>{np(q)};H(T,q=>{o(k)?q(E):q(I,!1)})}De(3,M,()=>oa,()=>({start:.25,duration:100})),b(P,M)}),F(()=>{z=be(_,1,"option svelte-dfwzqz",null,z,{active:o(k)}),Y(C,`${w()??""} `)}),Zc(x,()=>ep,()=>({duration:150})),b(g,x)}),F(()=>le(v,"placeholder",r())),za(v,()=>o(l),g=>R(l,g)),b(t,u),te()}fe(["click"]);var dp=j('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),up=j("<div><!> <!></div>");function Go(t,e){ee(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),s=G(0);function c(m){const w=m.target;w&&w.closest(".dropdown")!==o(a)&&R(i,!1)}function d(m){R(i,!o(i)),o(i)&&(R(s,0),R(l,0),u(m.target))}async function u(m){if(await Ea(),!o(r))return;const w=16,y=200,k=window.innerHeight,x=window.innerWidth,{top:_}=o(r).getBoundingClientRect(),{left:z}=m.getBoundingClientRect();R(n,z<window.innerWidth/2?"left":"right",!0),R(l,Math.max(Math.min(window.innerHeight-_-w,k*.6),y),!0),await Ea();const{left:C,right:L}=o(r).getBoundingClientRect(),O=x-L;C-w<0?R(s,O):O-w<0&&R(s,O-w)}var p=up();xe("click",Ie,c);var v=S(p);Oe(v,()=>e.button,()=>({toggle:d}));var h=A(v,2);{var g=m=>{var w=dp();let y;var k=S(w);Oe(k,()=>e.content),Je(w,x=>R(r,x),()=>o(r)),F(()=>y=He(w,"",y,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(s)?`${o(s)}px`:null})),De(3,w,()=>oa,()=>({start:.85,duration:100})),b(m,w)};H(h,m=>{o(i)&&m(g)})}Je(p,m=>R(a,m),()=>o(a)),F(()=>be(p,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),b(t,p),te()}var pp=j('<span class="label svelte-1mfj6k7"> </span>'),vp=j('<div class="active-line svelte-1mfj6k7"></div>'),fp=j('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function hp(t,e){ee(e,!0);const i=N(e,"range",19,()=>[0,100]),a=N(e,"value",19,i),r=N(e,"label",3,""),n=N(e,"valueAppend",3,""),l=N(e,"formatFunction",3,W=>W.toString()),s=N(e,"onchange",3,()=>null);let c=i(),d=U(()=>Wi(c,2)),u=G(je(o(d)[0])),p=G(je(o(d)[1]));const v=U(()=>o(u)!==i()[0]||o(p)!==i()[1]),h=U(()=>100/(i()[1]-i()[0])*(o(u)-i()[0])),g=U(()=>100+100/(i()[1]-i()[0])*(o(p)-i()[1])-o(h)),m=U(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(u)-o(p))<5);Fe(()=>{w(a())}),Fe(()=>{R(p,Math.max(o(p),o(u)+1),!0),R(p,Math.min(o(p),i()[1]),!0),R(u,Math.min(o(u),o(p)-1),!0),R(u,Math.max(o(u),i()[0]),!0)});function w(W){(V=>{var K=Wi(V,2);R(u,K[0],!0),R(p,K[1],!0)})(W)}function y(){requestAnimationFrame(()=>s()([o(u),o(p)]))}var k=fp(),x=S(k);{var _=W=>{var V=pp(),K=S(V);F((Q,X)=>Y(K,`${r()??""}: ${Q??""}—${X??""} ${n()??""}`),[()=>l()(o(u)),()=>l()(o(p))]),b(W,V)};H(x,W=>{r()&&W(_)})}var z=A(x,2);let C;var L=S(z);L.__mouseup=y,L.__touchend=y,L.__input=function(...W){};let O;var P=A(L,2);P.__mouseup=y,P.__touchend=y,P.__input=function(...W){};let M;var T=A(P,2),E=S(T),I=A(T,2),q=S(I),B=A(I,2);{var J=W=>{var V=vp();let K;F(()=>K=He(V,"",K,{left:o(h)+"%","--width":o(g)+"%"})),b(W,V)};H(B,W=>{o(v)&&W(J)})}F(()=>{C=be(z,1,"range svelte-1mfj6k7",null,C,{halved:o(m)}),le(L,"min",i()[0]),le(L,"max",i()[1]),O=be(L,1,"svelte-1mfj6k7",null,O,{active:o(v)}),le(P,"min",i()[0]),le(P,"max",i()[1]),M=be(P,1,"svelte-1mfj6k7",null,M,{active:o(v)}),Y(E,o(u)),Y(q,o(p))}),za(L,()=>o(u),W=>R(u,W)),za(P,()=>o(p),W=>R(p,W)),b(t,k),te()}fe(["mouseup","touchend","input"]);function jn(t,e){if(!t)return!1;const{type:i,value:a}=t;return!(i==="array"&&!a.length||i==="range"&&JSON.stringify(a)===JSON.stringify(e))}var gp=j(" <!>",1),mp=j('<p class="loading"> </p>'),yp=j('<p class="error"> </p>'),bp=j('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),wp=j('<div data-testid="filter-item"><!></div>');function xp(t,e){ee(e,!0);let i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r=N(e,"data",7,null),n=N(e,"fetchData",3,null),l=N(e,"range",3,null),s=N(e,"valueAppend",3,"");const c=U(()=>jn(i()[e.param],l()));let d=G(!!n());Fe(()=>{!r()&&n()&&u()});async function u(){try{R(d,!0),r(await n()())}catch{se(oe.ExploreFetchProvidersFailed)}finally{R(d,!1)}}function p(m,w){if(se(oe.ExploreSetFilter,null,{key:e.param,value:m,total_filter:i()}),!m){delete i()[e.param];return}i()[e.param]={type:w,value:m},a()()}var v=wp();let h;var g=S(v);Go(g,{button:(y,k)=>{let x=()=>k==null?void 0:k().toggle;Di(y,{variant:"border",size:"large",get active(){return o(c)},get onclick(){return x()},children:(_,z)=>{var C=gp(),L=Z(C),O=A(L);Ct(O,{direction:"down"}),F(()=>Y(L,`${e.label??""} `)),b(_,C)},$$slots:{default:!0}})},content:y=>{var k=bp(),x=S(k);{var _=P=>{var M=mp(),T=S(M);F(E=>Y(T,`${E??""}...`),[()=>ae("Loading")]),b(P,M)},z=P=>{var M=he(),T=Z(M);{var E=I=>{var q=yp(),B=S(q);F(J=>Y(B,J),[()=>ae("An Error Occurred")]),b(I,q)};H(T,I=>{n()&&!r()&&I(E)},!0)}b(P,M)};H(x,P=>{o(d)?P(_):P(z,!1)})}var C=A(x,2);{var L=P=>{const M=U(()=>{var T;return(T=i()[e.param])==null?void 0:T.value});cp(P,{get options(){return r()},get selected(){return o(M)},onchange:T=>p(T,"array")})},O=P=>{var M=he(),T=Z(M);{var E=I=>{const q=U(()=>{var B;return(B=i()[e.param])==null?void 0:B.value});hp(I,{get range(){return l()},get value(){return o(q)},get label(){return e.label},get valueAppend(){return s()},onchange:B=>p(B,"range")})};H(T,I=>{l()&&I(E)},!0)}b(P,M)};H(C,P=>{r()?P(L):P(O,!1)})}b(y,k)},$$slots:{button:!0,content:!0}}),F(()=>h=be(v,1,"filter-item svelte-er0ukh",null,h,{active:o(c)})),b(t,v),te()}var _p=j(" <!>",1),kp=j("<button> </button>"),Sp=j('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Tp(t,e){ee(e,!0);const i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:mr.Popular},{label:"New",value:mr.New},{label:"Top Rated",value:mr.Best}],l=U(()=>{var c;return((c=n.find(({value:d})=>{var u;return d===((u=i()[r])==null?void 0:u.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[r]={type:"string",value:c}:delete i()[r],a()()}Go(t,{button:(u,p)=>{let v=()=>p==null?void 0:p().toggle;Di(u,{variant:"link",get onclick(){return v()},children:(h,g)=>{var m=_p(),w=Z(m),y=A(w);Ct(y,{direction:"down"}),F(k=>Y(w,`${k??""} `),[()=>ae(o(l))]),b(h,m)},$$slots:{default:!0}})},content:u=>{var p=Sp();Pe(p,21,()=>n,ze,(v,h,g,m)=>{let w=()=>o(h).label,y=()=>o(h).value;const k=U(()=>{var C;return y()===((C=i()[r])==null?void 0:C.value)});var x=kp();let _;x.__click=()=>s(y());var z=S(x);F(C=>{_=be(x,1,"option svelte-1ibt2k4",null,_,{active:o(k)}),Y(z,C)},[()=>ae(w())]),b(v,x)}),b(u,p)},$$slots:{button:!0,content:!0}}),te()}fe(["click"]);var Ep=Ye('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function Pp(t){var e=Ep();b(t,e)}var Cp=j('<button class="item svelte-cwy6fi"><!> <!></button>'),zp=j('<div class="active-filter svelte-cwy6fi"></div>');function Ip(t,e){ee(e,!0);function i(n){delete e.filter[n]}function a(n){let l=n.slice(0,30).trim();return n.length>l.length&&(l+="..."),l}var r=zp();Pe(r,21,()=>Object.entries(e.filter),ze,(n,l)=>{var s=U(()=>Wi(o(l),2));let c=()=>o(s)[0],d=()=>o(s)[1];const u=U(()=>{const{label:g,range:m,data:w,fetchData:y}=e.items.find(k=>c()===k.param)||{};return{label:g,range:m,data:w,fetchData:y}});var p=he(),v=Z(p);{var h=g=>{var m=Cp();m.__click=()=>i(c());var w=S(m);{var y=_=>{var z=he(),C=Z(z);ra(C,()=>{var L,O;return((O=(L=o(u)).fetchData)==null?void 0:O.call(L))||o(u).data},null,(L,O)=>{var P=St();F(M=>Y(P,M),[()=>{var M;return a((M=o(O))==null?void 0:M.filter(T=>d().value.includes(T.value)).map(T=>T.label).join(" + "))}]),b(L,P)}),b(_,z)},k=_=>{var z=he(),C=Z(z);{var L=P=>{var M=St();F(T=>Y(M,`${o(u).label??""}: ${T??""}`),[()=>d().value.join(" - ")]),b(P,M)},O=P=>{var M=St();F(T=>Y(M,T),[()=>ae(d().value)]),b(P,M)};H(C,P=>{d().type==="range"?P(L):P(O,!1)},!0)}b(_,z)};H(w,_=>{d().type==="array"?_(y):_(k,!1)})}var x=A(w,2);wr(x,{size:8}),b(g,m)};H(v,g=>{jn(d(),o(u).range)&&g(h)})}b(n,p)}),b(t,r),te()}fe(["click"]);var jp=j("<div><!></div>"),Ap=j("<!> <!>",1),Lp=j('<div class="sorting svelte-11dg01g"><!></div>'),Mp=j('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function Dp(t,e){ee(e,!0);const i=N(e,"limit",3,!0),a=N(e,"showSorting",3,!0),r=N(e,"searchQuery",3,""),n=N(e,"onchange",3,()=>null),l=N(e,"onempty",3,()=>null),s=3,c=[{label:ae("Services"),param:"providers",fetchData:async()=>(await Xu()).map(z=>({label:z.name,value:z.slug}))},{label:ae("Genres"),param:"genres",data:hr.filter(z=>parseInt(z.slug)<900).map(z=>({label:ae(z.name),value:z.slug}))},{label:ae("IMDb"),param:"imdb_score",range:[0,10]},{label:ae("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ae("Runtime"),param:"length",range:[0,180],valueAppend:ae("Minutes")},{label:ae("Countries"),param:"country_codes",data:Qu}];let d=G(je(i())),u=!1;Fe(()=>{Object.keys(e.filter).some(C=>{const{range:L}=c.find(O=>C===O.param)||{};return jn(e.filter[C],L)})||r()?u=!0:u&&(u=!1,l()())});var p=Mp(),v=Z(p);let h;var g=S(v);Pe(g,21,()=>o(d)?c.slice(0,s):c,ze,(z,C)=>{var L=jp(),O=S(L);xp(O,gn({get filter(){return e.filter},get onchange(){return n()}},()=>o(C))),De(3,L,()=>oa,()=>({start:.75,duration:100})),b(z,L)});var m=A(g,2),w=S(m);{var y=z=>{Di(z,{variant:"link",onclick:()=>R(d,!o(d)),children:(C,L)=>{var O=Ap(),P=Z(O);Pp(P);var M=A(P),T=A(M);{let E=U(()=>o(d)?"down":"up");Ct(T,{get direction(){return o(E)}})}F(E=>Y(M,` ${E??""} `),[()=>ae("All Filters")]),b(C,O)},$$slots:{default:!0}})};H(w,z=>{i()&&z(y)})}var k=A(w,2);{var x=z=>{var C=Lp(),L=S(C);Tp(L,{get filter(){return e.filter},get onchange(){return n()}}),De(3,C,()=>Ma,()=>({x:5,duration:100})),b(z,C)};H(k,z=>{a()&&z(x)})}var _=A(v,2);Ip(_,{get filter(){return e.filter},get items(){return c}}),F(()=>h=be(v,1,"filter svelte-11dg01g",null,h,{limit:i()})),b(t,p),te()}function qp(t,e){ee(e,!0);const i=N(e,"trackingEvent",19,()=>oe.ExploreAnyClick);function a(l){var x;const s=l.target,c=s.parentElement;if(s===document.body)return;const d=`${c==null?void 0:c.nodeName.toLowerCase()}${r(c)}`,u=`${s==null?void 0:s.nodeName.toLowerCase()}${r(s)}`,p=`${d} > ${u}`,v=s.closest("a, button"),h=n(s)||n(c)||v&&n(v),g=h?(x=h.textContent)==null?void 0:x.slice(0,30):"",m=s.getAttribute("aria-label")||(v==null?void 0:v.getAttribute("aria-label"))||(c==null?void 0:c.getAttribute("aria-label")),w=s.placeholder,y=s.alt,k=(g||m||w||y||"").trim();se(i(),null,{selector:p,text:k})}function r(l){if(!l)return"";const s=Array.from(l.classList).filter(c=>!c.startsWith("s-"));return s.length?"."+s.join("."):""}function n(l){var s;return(s=l==null?void 0:l.childNodes)!=null&&s.length&&Array.from(l.childNodes).find(c=>{var d;return c.nodeName==="#text"&&!!((d=c.textContent)!=null&&d.trim())})||null}xe("click",Ie,a),te()}function Rp(t,e){ee(e,!0);const i=N(e,"trackingEvent",19,()=>oe.ExploreScrollDistance),a={25:!1,50:!1,75:!1,100:!1};function r(){const n=window.scrollY,l=window.innerHeight,d=100/(e.element.clientHeight+n+e.element.getBoundingClientRect().top)*(n+l);for(const u in a)a[u]||d<parseInt(u)||(a[u]=!0,se(i(),null,{scroll_percentage:u+"%"}))}xe("scroll",Ie,r),te()}var Np=j('<p class="description svelte-l2apr8"> </p>'),Op=j('<div class="filter svelte-l2apr8"><!></div>'),Bp=j('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <div class="subheading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div> <!> <!>',1);function Fp(t,e){ee(e,!0);let i=N(e,"navigate",3,()=>null),a=N(e,"searchQuery",15,""),r=N(e,"filter",27,()=>je({})),n=null,l=G(null),s=G(je(window.innerWidth));Fe(()=>{var P;R(l,((P=n==null?void 0:n.closest(Ln))==null?void 0:P.style.height)||null,!0)}),nt(async()=>{var P;se(oe.ExplorePageView),(P=window.PlayPilotLinkInjections.ads)!=null&&P.length||(window.PlayPilotLinkInjections.ads=await Lo())});var c=Bp(),d=Z(c);let u;var p=S(d),v=S(p),h=A(S(v),2),g=S(h);Tt(h,P=>Ae==null?void 0:Ae(P));var m=A(h,2),w=S(m);Tt(m,(P,M)=>Ae==null?void 0:Ae(P,M),()=>2);var y=A(m,2);{var k=P=>{var M=Np(),T=S(M);F(E=>Y(T,E),[()=>ae("Streaming Guide Description")]),b(P,M)};H(y,P=>{sa()||P(k)})}var x=A(p,2);Ju(x,{oninput:P=>a(P)});var _=A(x,2);{var z=P=>{var M=Op(),T=S(M);{let E=U(()=>o(s)<500),I=U(()=>!a());Dp(T,{get filter(){return r()},get searchQuery(){return a()},get limit(){return o(E)},get showSorting(){return o(I)},onchange:()=>i()("results"),onempty:()=>i()("home")})}b(P,M)};H(_,P=>{sa()&&P(z)})}var C=A(_,2);Oe(C,()=>e.children),Je(d,P=>n=P,()=>n);var L=A(d,2);qp(L,{});var O=A(L,2);Rp(O,{get element(){return n}}),F((P,M)=>{u=He(d,"",u,{height:o(l),"--playpilot-explore-width":`${o(s)??""}px`}),Y(g,P),Y(w,M)},[()=>ae("Streaming Guide"),()=>ae("Streaming Guide Subheading")]),Et(d,"clientWidth",P=>R(s,P)),b(t,c),te()}function Da(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?gt("pixels"):!1}var Hp=j('<div class="genre svelte-1mphbln"> </div>'),Vp=j('<button class="genre expand svelte-1mphbln"> </button>'),Up=j("<!> <!>",1);function Wp(t,e){ee(e,!0);let i=G(!1);const a=U(()=>o(i)?e.genres:[e.genres[0]]);var r=Up(),n=Z(r);Pe(n,17,()=>o(a),ze,(c,d)=>{const u=U(()=>{var g;return(g=hr.find(m=>m.slug===o(d)))==null?void 0:g.name});var p=he(),v=Z(p);{var h=g=>{var m=Hp(),w=S(m);lr(m,()=>Da()?Ho(Pt.GenreInterest,{genre:o(u),source:wi.Card}):null),F(y=>Y(w,y),[()=>ae(o(u))]),b(g,m)};H(v,g=>{o(u)&&g(h)})}b(c,p)});var l=A(n,2);{var s=c=>{var d=Vp();d.__click=()=>R(i,!0);var u=S(d);F(()=>Y(u,`+${e.genres.length-1}`)),b(c,d)};H(l,c=>{!o(i)&&e.genres.length>1&&c(s)})}b(t,r),te()}fe(["click"]);var Gp=j('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Kp=j('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function An(t,e){const i=N(e,"small",3,!1);let a=G(!1);function r(u){u.preventDefault(),u.stopPropagation(),R(a,!o(a))}var n=Kp();n.__click=r;var l=S(n);let s;var c=A(l,2);{var d=u=>{var p=Gp(),v=S(p);F(()=>Y(v,e.disclaimer)),De(3,p,()=>ni,()=>({duration:50})),b(u,p)};H(c,u=>{o(a)&&u(d)})}F(()=>s=be(l,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),b(t,n)}fe(["click"]);var Zp=j('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Yp=j('<span class="cta svelte-13ka2ap"> </span>'),Jp=j('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Ko(t,e){ee(e,!0);const i=N(e,"disclaimer",3,""),a=N(e,"hideCategory",3,!1),r=N(e,"onclick",3,()=>null),n=U(()=>e.playlink.name),l=U(()=>e.playlink.url),s=U(()=>e.playlink.logo_url),c=U(()=>e.playlink.highlighted),d=U(()=>e.playlink.cta_text),u=U(()=>e.playlink.action_text),p=U(()=>e.playlink.pixels),v=U(()=>e.playlink.extra_info.category),h=U(()=>Da()&&!o(c)),g={AVOD:ae("Stream"),SVOD:ae("Stream"),BUY:ae("Buy"),RENT:ae("Rent"),TVOD:ae("Rent Or Buy")};let m=G(0);var w=he(),y=Z(w);$l(y,()=>{var k,x;return!((x=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&x.require_affiliate_consent)||gt("affiliate")?"a":"span"},!1,(k,x)=>{lr(k,()=>o(h)?Ho(Pt.ProviderInterest,{provider:e.playlink.slug,source:wi.Card}):null),lr(k,()=>o(h)?xu(Pt.ProviderClick,{provider:e.playlink.slug}):null),oo(k,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[na]:{highlighted:o(c),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var _=Jp(),z=Z(_);let C;var L=S(z),O=A(L,2),P=S(O),M=A(O,2);{var T=Q=>{var X=Zp(),ne=S(X);F($=>Y(ne,$),[()=>g[o(v)]||ae("Stream")]),b(Q,X)};H(M,Q=>{a()||Q(T)})}var E=A(M,2);{var I=Q=>{var X=Yp(),ne=S(X);F(()=>Y(ne,o(d))),b(Q,X)};H(E,Q=>{o(d)&&Q(I)})}var q=A(E,2),B=S(q),J=A(q,2);{var W=Q=>{An(Q,{get disclaimer(){return i()},small:!0})};H(J,Q=>{i()&&Q(W)})}var V=A(z,2);{var K=Q=>{In(Q,{get pixels(){return o(p)}})};H(V,Q=>{var X;(X=o(p))!=null&&X.length&&Q(K)})}F((Q,X)=>{C=He(z,"",C,{"--action-width":o(m)?`${o(m)}px`:null}),le(L,"src",Q),Y(P,o(n)),Y(B,X)},[()=>yr(o(s)),()=>o(u)||ae("Watch")]),Et(q,"clientWidth",Q=>R(m,Q)),b(x,_)}),b(t,w),te()}var Qp=j('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),Xp=j('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),$p=j('<div class="heading category svelte-1fykz2q"> </div>'),ev=j("<!> <!>",1),tv=j("<!> <div></div>",1),iv=j('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function av(t,e){var _,z;ee(e,!0);const i=Ya("scope")==="modal",a=La("card"),r=!!((z=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&z.categorize_playlinks);let n=G(0);const l=U(()=>Vo(e.playlinks)),s=U(()=>p(e.playlinks)),c=U(()=>r?v(o(s)):[["",o(l)]]),d=U(()=>o(n)<500||!!a||o(l).length===1);function u(C){se(i?oe.TitleModalPlaylinkClick:oe.TitlePopoverPlaylinkClick,e.title,{playlink:C})}function p(C){const L={};for(const O of C){const{category:P}=O.extra_info;P in L||(L[P]=[]),L[P].push(O)}return L}function v(C){const L=["AVOD","SVOD","RENT","BUY"],O=[];for(const M of L)C[M]&&O.push([M,C[M]]);const P=[];for(const M of Object.values(C))for(const T of M)L.includes(T.extra_info.category)||P.push(T);return[...O,["Other",P]]}var h=iv(),g=Z(h),m=S(g);Tt(g,(C,L)=>Ae==null?void 0:Ae(C,L),()=>3);var w=A(g,2);{var y=C=>{var L=Qp(),O=S(L);F(P=>Y(O,`${P??""} `),[()=>{var P,M;return((M=(P=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:P.config)==null?void 0:M.playlinks_disclaimer_text)||ae("Commission Disclaimer")}]),b(C,L)},k=C=>{var L=Xp(),O=S(L);F(P=>Y(O,P),[()=>ae("Title Unavailable")]),b(C,L)};H(w,C=>{o(l).length?C(y):C(k,!1)})}var x=A(w,2);Pe(x,17,()=>o(c),ze,(C,L,O,P)=>{var M=U(()=>Wi(o(L),2));let T=()=>o(M)[0],E=()=>o(M)[1];var I=tv(),q=Z(I);{var B=V=>{var K=$p(),Q=S(K);Tt(K,(X,ne)=>Ae==null?void 0:Ae(X,ne),()=>4),F(X=>Y(Q,X),[()=>ae(`Category: ${T()}`)]),b(V,K)};H(q,V=>{T()&&E().length&&V(B)})}var J=A(q,2);let W;Pe(J,21,E,ze,(V,K,Q)=>{var X=ev(),ne=Z(X);Ko(ne,{get playlink(){return o(K)},onclick:()=>u(o(K).name)});var $=A(ne,2);{var _e=Se=>{{let Ue=U(()=>Md(a)),Qe=U(()=>a.disclaimer||"");Ko(Se,{get playlink(){return o(Ue)},onclick:()=>se(oe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(Qe)}})}};H($,Se=>{a&&Q===0&&Se(_e)})}b(V,X)}),F(()=>{W=be(J,1,"playlinks svelte-1fykz2q",null,W,{list:o(d)}),le(J,"data-testid",`category-${T()??""}`)}),Et(J,"clientWidth",V=>R(n,V)),b(C,I)}),F(C=>Y(m,C),[()=>ae("Where To Stream Online")]),b(t,h),te()}var rv=j('<button class="show-more svelte-7itcht">Show more</button>'),nv=j('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),lv=j('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function ov(t,e){ee(e,!0);const i=N(e,"blurb",3,""),a=N(e,"limit",3,200),r=N(e,"onclick",3,()=>null);let n=G(!1);const l=U(()=>e.text.slice(0,a()));function s(){R(n,!0),r()()}var c=lv(),d=S(c),u=S(d),p=A(u);{var v=y=>{var k=St("...");b(y,k)};H(p,y=>{!o(n)&&e.text.length>a()&&y(v)})}var h=A(p,2);{var g=y=>{var k=rv();k.__click=()=>s(),b(y,k)};H(h,y=>{!o(n)&&(e.text.length>a()||i())&&y(g)})}var m=A(d,2);{var w=y=>{var k=nv(),x=S(k);F(()=>Y(x,i())),b(y,k)};H(m,y=>{o(n)&&y(w)})}F(()=>Y(u,o(n)?e.text:o(l))),b(t,c),te()}fe(["click"]);async function sv(t,{page:e=1}={}){const i={language:ja(),region:await Tn(),include_count:"false",participant_sid:t.sid,page:e};return(await ri(`/titles/browse?api-token=${yi()}&${xn(i)}`)).results}async function cv(t){return(await ri(`/participants/browse?api-token=${yi()}&title_sid=${t.sid}`)).results}var dv=j('<div class="character truncate svelte-zy7e3f"> </div>'),uv=j('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),pv=j('<div class="participant svelte-zy7e3f"></div>');function vv(t,e){ee(e,!0);function i(l){const s=bi(xo(wo(bn()))),c={};for(const u of l){const p=vr(s,bi(u.name));c[u.sid]={participant:u,count:p}}return Object.values(c).sort((u,p)=>p.count-u.count).map(({participant:u})=>u)}function a(l,s){li({event:l,type:"participant",data:s}),se(oe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var r=he(),n=Z(r);ra(n,()=>cv(e.title),l=>{{let s=U(()=>ae("Cast"));_r(l,{get heading(){return o(s)},children:(c,d)=>{var u=he(),p=Z(u);Pe(p,16,()=>({length:5}),ze,(v,h)=>{var g=pv();b(v,g)}),b(c,u)},$$slots:{default:!0}})}},(l,s)=>{var c=he(),d=Z(c);{var u=p=>{{let v=U(()=>ae("Cast"));_r(p,{get heading(){return o(v)},children:(h,g)=>{var m=he(),w=Z(m);Pe(w,17,()=>i(o(s)).slice(0,15),ze,(y,k)=>{var x=uv();x.__click=O=>a(O,o(k));var _=S(x),z=S(_),C=A(_,2);{var L=O=>{var P=dv(),M=S(P);F(()=>Y(M,o(k).character)),b(O,P)};H(C,O=>{o(k).character&&O(L)})}F(()=>Y(z,o(k).name)),b(y,x)}),b(h,m)},$$slots:{default:!0}})}};H(d,p=>{var v;(v=o(s))!=null&&v.length&&p(u)})}b(l,c)}),b(t,r),te()}fe(["click"]);function fv(t,e){ee(e,!0);const i=Mo(e.title);{let a=U(()=>ae("Similar Titles"));Fo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>se(oe.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}te()}function hv(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var gv=Ye('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function mv(t){var e=gv();b(t,e)}var yv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function bv(t){var e=yv();b(t,e)}var wv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function xv(t){var e=wv();b(t,e)}var _v=Ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function kv(t){var e=_v();b(t,e)}var Sv=j('<button class="svelte-827qd7"><!></button>'),Tv=j('<div class="content svelte-827qd7"><!></div>'),Ev=j("<div><!> <!></div>");function Pv(t,e){const i=N(e,"label",3,""),a=N(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var m;h.currentTarget===((m=o(n))==null?void 0:m.querySelector("button"))&&h.stopPropagation(),R(r,!o(r))}var s=Ev();xe("click",Ie,()=>R(r,!1));var c=S(s);{var d=h=>{var g=he(),m=Z(g);Oe(m,()=>e.button,()=>({toggle:l})),b(h,g)},u=h=>{var g=Sv();g.__click=l;var m=S(g);kv(m),F(()=>{le(g,"aria-label",i()),le(g,"aria-expanded",o(r))}),b(h,g)};H(c,h=>{e.button?h(d):h(u,!1)})}var p=A(c,2);{var v=h=>{var g=Tv(),m=S(g);Oe(m,()=>e.children),De(1,g,()=>oa,()=>({duration:50,start:.85})),b(h,g)};H(p,h=>{o(r)&&h(v)})}Je(s,h=>R(n,h),()=>o(n)),F(()=>be(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),b(t,s)}fe(["click"]);var Cv=j("<!> ",1),zv=j('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Iv(t,e){ee(e,!0);let i=N(e,"url",7);const r=window.innerWidth<ai&&typeof navigator.share<"u";nt(()=>{i(i()+"?utm_source=tpi")});function n(c,d){if(!r){d(c);return}se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"copy"}),hv(i())}function s(){se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Pv(t,{button:(d,u)=>{let p=()=>u==null?void 0:u().toggle;Di(d,{onclick:v=>n(v,p()),children:(v,h)=>{var g=Cv(),m=Z(g);mv(m);var w=A(m);F(y=>Y(w,` ${y??""}`),[()=>ae("Share")]),b(v,g)},$$slots:{default:!0}})},children:(d,u)=>{var p=zv(),v=Z(p);v.__click=l;var h=S(v);bv(h);var g=A(h),m=A(v,2);m.__click=s;var w=S(m);xv(w);var y=A(w);F((k,x)=>{Y(g,` ${k??""}`),Y(y,` ${x??""}`)},[()=>ae("Copy URL"),()=>ae("Email")]),b(d,p)},$$slots:{button:!0,default:!0}}),te()}fe(["click"]);var jv=Ye('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Av(t){var e=jv();b(t,e)}var Lv=j("<!> ",1);function Mv(t,e){ee(e,!0);function i(){Ud(e.title),se(oe.TrailerClick,e.title)}Di(t,{onclick:i,children:(a,r)=>{var n=Lv(),l=Z(n);Av(l);var s=A(l);F(c=>Y(s,` ${c??""}`),[()=>ae("Watch Trailer")]),b(a,n)},$$slots:{default:!0}}),te()}var Dv=j('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function qv(t,e){const i=N(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=U(()=>Math.max(o(a),o(r)));var l=Dv(),s=S(l);Pn(s,{get embeddable_url(){return i()},muted:!0,loop:!0,showMuteControls:!0}),F(()=>He(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),Et(l,"clientWidth",c=>R(a,c)),Et(l,"clientHeight",c=>R(r,c)),b(t,l)}var Rv=j("<div> </div>"),Nv=j('<img alt=""/>'),Ov=j('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main svelte-16ajinh"><!> <!> <!> <!></div></div> <div><!></div>',1);function kr(t,e){var it;ee(e,!0);const i=N(e,"small",3,!1),a=N(e,"useVideoBackground",3,!0),r=!!((it=window.PlayPilotLinkInjections)!=null&&it.no_affiliate);Ja("title",e.title);const n=Ya("modal"),l=U(()=>(!i()||r)&&e.title.description);let s=G(!1),c=G(!1),d=G(!1),u=G(!1);Fe(()=>{a()&&e.title.embeddable_url&&Oo(En(e.title.embeddable_url)).then(ue=>{R(u,ue,!0)})});var p=Ov(),v=Z(p);let h;var g=S(v),m=S(g);let w;var y=S(m);br(y,{get title(){return e.title},onload:()=>R(s,!0),lazy:!1});var k=A(m,2);let x;var _=S(k);Tt(k,(ue,Be)=>Ae==null?void 0:Ae(ue,Be),()=>2);var z=A(k,2),C=S(z),L=S(C);zn(L,{});var O=A(L),P=A(C,2);Wp(P,{get genres(){return e.title.genres}});var M=A(P,2),T=S(M),E=A(M,2),I=S(E),q=A(E,2);{var B=ue=>{var Be=Rv(),wt=S(Be);F(jt=>Y(wt,`${e.title.length??""} ${jt??""}`),[()=>ae("Minutes")]),b(ue,Be)};H(q,ue=>{!i()&&e.title.length&&ue(B)})}var J=A(z,2),W=S(J);{var V=ue=>{Mv(ue,{get title(){return e.title}})};H(W,ue=>{e.title.embeddable_url&&ue(V)})}var K=A(W,2);{let ue=U(()=>Cn(e.title));Iv(K,{get title(){return e.title.title},get url(){return o(ue)}})}var Q=A(g,2),X=S(Q);{var ne=ue=>{ov(ue,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>se(oe.ExpandTitleDescription,e.title)})};H(X,ue=>{o(l)&&ue(ne)})}var $=A(X,2);{var _e=ue=>{av(ue,{get playlinks(){return e.title.providers},get title(){return e.title}})};H($,ue=>{r||ue(_e)})}var Se=A($,2);vv(Se,{get title(){return e.title}});var Ue=A(Se,2);fv(Ue,{get title(){return e.title}});var Qe=A(v,2);let re;var me=S(Qe);{var Le=ue=>{qv(ue,{get embeddable_url(){return e.title.embeddable_url}})},Me=ue=>{var Be=he(),wt=Z(Be);Ca(wt,()=>o(d),jt=>{var ie=Nv();let pe;F(de=>{le(ie,"src",de),pe=be(ie,1,"svelte-16ajinh",null,pe,{loaded:o(c),blur:o(d)})},[()=>yr(o(d)?e.title.standing_poster:e.title.medium_poster)]),xe("load",ie,()=>R(c,!0)),xe("error",ie,()=>R(d,!0)),b(jt,ie)}),b(ue,Be)};H(me,ue=>{a()&&o(u)?ue(Le):ue(Me,!1)})}F(ue=>{h=be(v,1,"content svelte-16ajinh",null,h,{small:i()}),w=be(m,1,"poster svelte-16ajinh",null,w,{loaded:o(s)}),x=be(k,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Y(_,e.title.title),Y(O,` ${e.title.imdb_score??""}`),Y(T,e.title.year),Y(I,ue),re=be(Qe,1,"background svelte-16ajinh",null,re,{small:i(),"offset-mute":n==="title"})},[()=>ae(`Type: ${e.title.type}`)]),b(t,p),te()}var Bv=j('<!> <p class="empty svelte-1nq44zr"> </p>',1),Fv=j("<!> ",1),Hv=j("<div><!></div>"),Vv=j('<!> <div class="title svelte-1nq44zr" data-testid="title"><!></div>',1),Uv=j("<!> Loading...",1);function Wv(t,e){ee(e,!0);const i=v=>{var h=Bv(),g=Z(h);a(g);var m=A(g,2),w=S(m);F(y=>Y(w,y),[()=>ae("Page Not Found")]),b(v,h)},a=(v,h)=>{let g=er(()=>Vr(h==null?void 0:h(),!1));var m=Hv();let w;var y=S(m);Di(y,{variant:"link",onclick:()=>{r()("home")},children:(k,x)=>{var _=Fv(),z=Z(_);Ct(z,{direction:"left"});var C=A(z);F(L=>Y(C,` ${L??""}`),[()=>ae("Home")]),b(k,_)},$$slots:{default:!0}}),F(()=>w=be(m,1,"back svelte-1nq44zr",null,w,{offset:o(g)})),b(v,m)},r=N(e,"navigate",3,()=>null);let n=G(je(window.innerWidth));const l=U(()=>o(n)<ai),s=new URL(document.location.toString()).searchParams.get("sid");var c=he(),d=Z(c);{var u=v=>{var h=he(),g=Z(h);ra(g,()=>Do(s),m=>{var w=Uv(),y=Z(w);a(y),b(m,w)},(m,w)=>{var y=Vv(),k=Z(y);a(k,()=>!0);var x=A(k,2),_=S(x);kr(_,{get title(){return o(w)},get useVideoBackground(){return o(l)}}),b(m,y)},m=>{i(m)}),b(v,h)},p=v=>{i(v)};H(d,v=>{s?v(u):v(p,!1)})}Ia("innerWidth",v=>R(n,v,!0)),b(t,c),te()}function Zo(t,e){ee(e,!0);const i=[{key:"results",component:Gu}];sa()&&(i.unshift({key:"home",component:bu}),i.push({key:"title",component:Wv}));const a=u()||i[0].key;let r=G(je(i.find(({key:v})=>v===a)||i[0])),n=G(""),l=G(je({}));const s=U(()=>o(r).component);a==="modal"&&p(),Fe(()=>{o(n)&&R(r,i.find(v=>v.key==="results"),!0)});function c(v,h=!0){R(r,i.find(m=>m.key===v)||i[0],!0);const g=new URL(document.location.toString());v!=="title"&&v!=="modal"&&g.searchParams.delete("sid"),v===i[0].key?g.searchParams.delete("route"):g.searchParams.set("route",o(r).key),h&&history.pushState({},"",g),se(oe.ExploreNavigate,null,{route:o(r).key})}function d(){c(u(),!1)}function u(){return new URL(document.location.toString()).searchParams.get("route")||i[0].key}async function p(){const h=new URL(document.location.toString()).searchParams.get("sid");if(!h)return;const[g,m]=(await Promise.allSettled([Do(h),Mo({sid:h})])).map(w=>w.status==="fulfilled"?w.value:null);li({type:"titles-rail",data:[g,...m],props:{onclose:()=>c("home")}})}xe("popstate",Ie,d),Fp(t,{navigate:c,get searchQuery(){return o(n)},set searchQuery(v){R(n,v,!0)},get filter(){return o(l)},set filter(v){R(l,v,!0)},children:(v,h)=>{var g=he(),m=Z(g);on(m,()=>o(s),(w,y)=>{y(w,{get searchQuery(){return o(n)},get filter(){return o(l)},navigate:c})}),b(v,g)},$$slots:{default:!0}}),te()}const Ln="[data-playpilot-explore]",Gv="[data-playpilot-pre-consent-explore]",Yo="playpilot-explore-custom-style";let Sr=null;function Tr(){var e;const t=document.querySelector(Ln);t&&(Er(),(e=document.querySelector(Gv))==null||e.remove(),t.innerHTML="",Sr=Ut(Zo,{target:t}),Zv())}function Er(){var t;Sr&&(ia(Sr),Sr=null,(t=document.querySelector("#"+Yo))==null||t.remove())}function Kv(){var c;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),s=l.nodeName==="A"?l:l.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Zv(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Yo,document.body.appendChild(e)}function sa(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Mn(t,e){ee(e,!0);const i=N(e,"size",3,"32px"),a=N(e,"onclick",3,()=>null),r=ho(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=he(),l=Z(n);$l(l,()=>e.href?"a":"button",!1,(s,c)=>{oo(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[la]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=he(),u=Z(d);Oe(u,()=>e.children??vt),b(c,d)}),b(t,n),te()}var Yv=j("<div></div>");function Jv(t,e){ee(e,!0);let i=N(e,"threshold",3,100),a=N(e,"isDragging",15,!1),r=N(e,"passedThreshold",15,!1),n=N(e,"onpassed",3,()=>null),l=G(0),s=G(0),c=G(null),d=G(!1);const u=U(()=>Math.max(o(s)-o(l),0));Fe(()=>{r(o(u)>i())});function p(y){if(y){a(!0),R(d,!0),R(l,y.touches[0].pageY,!0);for(const k of e.targets)k.style.transitionDuration="0ms"}}function v(y){if(y&&a()){y.preventDefault(),R(s,y.touches[0].pageY,!0),o(c).style.transform=`translateY(${o(u)}px)`;for(const k of e.targets)k.style.top=`${o(u)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(c).removeAttribute("style");for(const y of e.targets)y.style.removeProperty("transition"),requestAnimationFrame(()=>y.style.top="0px")}R(l,0),R(s,0)}}var g={start:p,move:v,end:h},m=Yv();xe("touchmove",Ie,v,void 0,!0),xe("touchend",Ie,h);let w;return m.__touchstart=p,Je(m,y=>R(c,y),()=>o(c)),F(()=>w=be(m,1,"handle svelte-1xqgdsn",null,w,{dragging:a(),dragged:o(d)})),b(t,m),te(g)}fe(["touchstart"]);var Qv=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Xv=["difference","intersection","symmetricDifference","union"],Jo=!1;const Rr=class Rr extends Set{constructor(i){super();ve(this,ga);ve(this,ha,new Map);ve(this,It,G(0));ve(this,Ti,G(0));ve(this,qr,ti||-1);if(i){for(var a of i)super.add(a);D(this,Ti).v=super.size}Jo||Ce(this,ga,gs).call(this)}has(i){var a=super.has(i),r=D(this,ha),n=r.get(i);if(n===void 0){if(!a)return o(D(this,It)),!1;n=Ce(this,ga,hs).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),R(D(this,Ti),super.size),hi(D(this,It))),this}delete(i){var a=super.delete(i),r=D(this,ha),n=r.get(i);return n!==void 0&&(r.delete(i),R(n,!1)),a&&(R(D(this,Ti),super.size),hi(D(this,It))),a}clear(){if(super.size!==0){super.clear();var i=D(this,ha);for(var a of i.values())R(a,!1);i.clear(),R(D(this,Ti),0),hi(D(this,It))}}keys(){return this.values()}values(){return o(D(this,It)),super.values()}entries(){return o(D(this,It)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(D(this,Ti))}};ha=new WeakMap,It=new WeakMap,Ti=new WeakMap,qr=new WeakMap,ga=new WeakSet,hs=function(i){return ti===D(this,qr)?G(i):Ot(i)},gs=function(){Jo=!0;var i=Rr.prototype,a=Set.prototype;for(const r of Qv)i[r]=function(...n){return o(D(this,It)),a[r].apply(this,n)};for(const r of Xv)i[r]=function(...n){o(D(this,It));var l=a[r].apply(this,n);return new Rr(l)}};let Pr=Rr;class $v{constructor(e,i){ve(this,Ha);ve(this,Va);ce(this,Ha,e),ce(this,Va,ml(i))}get current(){return D(this,Va).call(this),D(this,Ha).call(this)}}Ha=new WeakMap,Va=new WeakMap;const ef=/\(.+\)/,tf=new Set(["all","print","screen","and","or","not","only"]);class af extends $v{constructor(e,i){let a=ef.test(e)||e.split(/[\s,]+/).some(n=>tf.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Lc(r,"change",n))}}const Dn=new af("(prefers-reduced-motion: reduce)");function qn(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];n.shiftKey&&l===c&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(c.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function rf(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var nf=j("<div><!></div>"),lf=j('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),of=j('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),sf=j('<div class="swipe-handle svelte-1rbidhv"><!></div>'),cf=j("<div><!></div>"),df=j('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),uf=j('<div data-testid="modal"><!> <!> <!> <!></div>');function Cr(t,e){ee(e,!0);const i=V=>{var K=nf(),Q=S(K);Mn(Q,{onclick:_,"aria-label":"Close",children:(X,ne)=>{wr(X,{})},$$slots:{default:!0}}),Je(K,X=>R(g,X),()=>o(g)),F(()=>be(K,1,`close ${l()??""}`,"svelte-1rbidhv")),De(7,K,()=>x),b(V,K)},a=N(e,"tall",3,!1),r=N(e,"wide",3,!1),n=N(e,"blur",3,!1),l=N(e,"closeButtonStyle",3,"shadow"),s=N(e,"initialScrollPosition",3,0),c=N(e,"onscroll",3,()=>null),d=N(e,"onclose",3,()=>null),u="#playpilot";let p=G(0),v=G(null),h=G(null),g=G(null),m=G(0),w=G(!1);const y=U(()=>o(p)<ai);Fe(()=>{var V;o(p)&&R(m,((V=o(h))==null?void 0:V.offsetTop)||0,!0)}),Fe(()=>{setTimeout(()=>{var V;return R(m,((V=o(h))==null?void 0:V.offsetTop)||0,!0)})}),Ja("scope","modal"),nt(()=>{const V=rf();return V.classList.add("playpilot-modal-open"),R(w,!!is()),o(w)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(k),()=>{var K;V.classList.remove("playpilot-modal-open"),!is()&&((K=history.state)!=null&&K.modal)&&history.back()}});function k(){const V=window.innerWidth>ai?o(v):o(h);V==null||V.scrollTo(0,s())}function x(V){return Dn.current?ni(V,{duration:0}):o(y)?Ma(V,{duration:250,y:window.innerHeight,opacity:1}):oa(V,{duration:150,start:.85})}function _(){d()(),On()}function z(V){V.target===o(v)&&_()}var C=uf();xe("keydown",Ie,({key:V})=>{V==="Escape"&&_()}),xe("hashchange",Ie,_);let L;C.__click=z;let O;var P=S(C);{var M=V=>{var K=lf(),Q=S(K);Oe(Q,()=>e.prepend),De(7,K,()=>x),b(V,K)};H(P,V=>{e.prepend&&V(M)})}var T=A(P,2);{var E=V=>{var K=of(),Q=S(K);Oe(Q,()=>e.bubble),De(7,K,()=>x),b(V,K)};H(T,V=>{e.bubble&&V(E)})}var I=A(T,2);{var q=V=>{var K=sf(),Q=S(K);{var X=ne=>{{let $=U(()=>[o(h),o(g)]);Jv(ne,{get targets(){return o($)},onpassed:_})}};H(Q,ne=>{o(h)&&o(g)&&ne(X)})}De(7,K,()=>x),b(V,K)};H(I,V=>{o(y)&&V(q)})}var B=A(I,2);{var J=V=>{var K=he(),Q=Z(K);Oe(Q,()=>e.dialog),b(V,K)},W=V=>{var K=df(),Q=Z(K),X=S(Q);{var ne=re=>{var me=cf(),Le=S(me);Mn(Le,{onclick:()=>yh(),"aria-label":"Back",children:(Me,it)=>{Ct(Me,{direction:"left"})},$$slots:{default:!0}}),F(()=>be(me,1,`close back ${l()??""}`,"svelte-1rbidhv")),b(re,me)};H(X,re=>{o(w)&&re(ne)})}var $=A(X,2);Oe($,()=>e.children??vt);var _e=A($,2);{var Se=re=>{i(re)};H(_e,re=>{o(y)||re(Se)})}Je(Q,re=>R(h,re),()=>o(h));var Ue=A(Q,2);{var Qe=re=>{i(re)};H(Ue,re=>{o(y)&&re(Qe)})}xe("scroll",Q,function(...re){var me;(me=c())==null||me.apply(this,re)}),De(7,Q,()=>x),b(V,K)};H(B,V=>{e.dialog?V(J):V(W,!1)})}Je(C,V=>R(v,V),()=>o(v)),Tt(C,V=>qn==null?void 0:qn(V)),F(()=>{L=be(C,1,"modal svelte-1rbidhv",null,L,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),O=He(C,"",O,{"--dialog-offset":`${o(m)??""}px`})}),Ia("innerWidth",V=>R(p,V,!0)),De(5,C,()=>ni,()=>({duration:150})),De(6,C,()=>ni,()=>({duration:150,delay:100})),b(t,C),te()}fe(["click"]);function ca(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Qo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},Rn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function pf({key:t}){var a,r,n;if(!gt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Xo(t){const e=pf(t);return Math.floor(e*t.numberOfVariants)}function vf(t){var i;const e=Xo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function ff(t,e=1){return gt("tracking")?Xo(t)===e:!1}function hf(t){const e=vf(t);se(oe.SplitTestView,null,{key:t.key,variant:e})}var gf=j('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),mf=j('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),yf=j('<button class="button svelte-1mt6g1y"> </button>'),bf=j('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),wf=j('<div class="background svelte-1mt6g1y"></div>'),xf=j("<!> <!>",1),_f=j('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function $o(t,e){ee(e,!0),se(oe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),hf(Rn.TopScrollFormat);const i=U(()=>e.campaign.disclaimer),a=U(()=>e.campaign.content),r=U(()=>e.campaign.cta),n=U(()=>o(a).format),l=U(()=>o(a).header),s=U(()=>o(a).header_logo),c=U(()=>o(a).image_uuid),d=U(()=>o(r).header),u=U(()=>o(r).url),p=U(()=>o(n)==="large"),v=U(()=>No(o(c),Qo.TopScrollBackground)),h=U(()=>No(o(c),Qo.TopScrollContent));let g=G(0);function m(){se(oe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var w=_f();w.__click=m;let y,k;var x=S(w),_=S(x);{var z=P=>{var M=gf();F(()=>{le(M,"src",o(h)),le(M,"alt",o(l))}),b(P,M)},C=P=>{var M=bf(),T=Z(M);{var E=W=>{var V=mf();F(()=>le(V,"src",o(s))),b(W,V)};H(T,W=>{o(s)&&W(E)})}var I=A(T,2),q=S(I),B=A(I,2);{var J=W=>{var V=yf(),K=S(V);F(()=>Y(K,o(d))),b(W,V)};H(B,W=>{o(d)&&W(J)})}F(()=>Y(q,o(l))),b(P,M)};H(_,P=>{o(p)?P(z):P(C,!1)})}var L=A(x,2);{var O=P=>{var M=xf(),T=Z(M);{var E=B=>{var J=wf();let W;F(()=>W=He(J,"",W,{"--background":`url('${o(v)??""}')`})),b(B,J)};H(T,B=>{o(c)&&B(E)})}var I=A(T,2);{var q=B=>{An(B,{get disclaimer(){return o(i)}})};H(I,B=>{o(i)&&B(q)})}b(P,M)};H(L,P=>{o(p)||P(O)})}Tt(w,(P,M)=>ca==null?void 0:ca(P,M),()=>({onclick:m})),Ai(()=>Et(w,"clientWidth",P=>R(g,P))),F(()=>{le(w,"href",o(u)),y=be(w,1,"top-scroll svelte-1mt6g1y",null,y,{simple:o(p)}),k=He(w,"",k,{"--width":`${o(g)??""}px`})}),b(t,w),te()}fe(["click"]);var kf=j('<div class="content svelte-r7ubzi"><!></div>'),Sf=j('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Tf(t,e){let i=G(!1);var a=Sf();a.__touchstart=()=>R(i,!o(i));var r=S(a);Oe(r,()=>e.children);var n=A(r,2);{var l=s=>{var c=kf(),d=S(c);Oe(d,()=>e.content),De(1,c,()=>ni,()=>({duration:100})),b(s,c)};H(n,s=>{o(i)&&s(l)})}xe("mouseenter",a,()=>R(i,!0)),xe("mouseleave",a,()=>R(i,!1)),b(t,a)}fe(["touchstart"]);var Ef=j('<div class="info svelte-qcpiki"><!></div>'),Pf=j('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Cf=j('<span class="name svelte-qcpiki"> </span>'),zf=j('<div class="subheader svelte-qcpiki"> </div>'),If=j('<div class="action svelte-qcpiki"> </div>'),jf=j('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Af=j('<img class="background svelte-qcpiki" alt=""/>'),Lf=j('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),Mf=j('<div class="disclaimer svelte-qcpiki"><!></div>'),Df=j('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function es(t,e){ee(e,!0);const i=N(e,"compact",3,!1),a=U(()=>e.campaign.disclaimer),r=U(()=>e.campaign.content),n=U(()=>e.campaign.cta),l=U(()=>e.campaign.campaign_type),s=U(()=>o(r).header),c=U(()=>o(r).subheader),d=U(()=>o(r).header_logo),u=U(()=>o(r).image),p=U(()=>o(r).video),v=U(()=>o(n).header),h=U(()=>o(n).url),g=U(()=>o(n).subheader);let m=G(0);se(oe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function w(){se(oe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var y=Df();let k;y.__click=w;var x=S(y);{var _=E=>{var I=Ef(),q=S(I);{var B=W=>{Tf(W,{content:K=>{var Q=St();F(()=>Y(Q,o(g))),b(K,Q)},children:(K,Q)=>{var X=St("Ad");b(K,X)},$$slots:{content:!0,default:!0}})},J=W=>{var V=St();F(()=>Y(V,o(g))),b(W,V)};H(q,W=>{i()?W(B):W(J,!1)})}b(E,I)};H(x,E=>{o(g)&&E(_)})}var z=A(x,2);{var C=E=>{var I=jf(),q=S(I);{var B=$=>{var _e=Pf();F(()=>le(_e,"src",o(d))),b($,_e)};H(q,$=>{o(d)&&$(B)})}var J=A(q,2),W=S(J);{var V=$=>{var _e=Cf(),Se=S(_e);F(()=>Y(Se,o(s))),b($,_e)};H(W,$=>{o(s)&&$(V)})}var K=A(W,2);{var Q=$=>{var _e=zf(),Se=S(_e);F(()=>Y(Se,o(c))),b($,_e)};H(K,$=>{o(c)&&$(Q)})}var X=A(J,2);{var ne=$=>{var _e=If(),Se=S(_e);F(()=>Y(Se,o(v))),b($,_e)};H(X,$=>{o(v)&&$(ne)})}Et(I,"clientHeight",$=>R(m,$)),b(E,I)};H(z,E=>{(o(d)||o(s)||o(c)||o(v))&&E(C)})}var L=A(z,2);{var O=E=>{var I=Af();F(()=>le(I,"src",o(u))),b(E,I)},P=E=>{var I=he(),q=Z(I);{var B=J=>{var W=Lf();W.muted=!0;var V=S(W);F(()=>le(V,"src",o(p))),b(J,W)};H(q,J=>{o(l)==="video"&&o(p)&&J(B)},!0)}b(E,I)};H(L,E=>{o(l)==="image"&&o(u)?E(O):E(P,!1)})}var M=A(L,2);{var T=E=>{var I=Mf();let q;var B=S(I);An(B,{get disclaimer(){return o(a)}}),F(()=>q=He(I,"",q,{"--offset":`${o(m)??""}px`})),b(E,I)};H(M,E=>{o(a)&&E(T)})}Tt(y,(E,I)=>ca==null?void 0:ca(E,I),()=>({onclick:w})),F(()=>{le(y,"href",o(h)),k=be(y,1,"display svelte-qcpiki",null,k,{compact:i()})}),b(t,y),te()}fe(["click"]);var qf=j('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function Rf(t,e){var c,d;ee(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:d.explore_navigation_path;hn();var r=qf();r.__click=()=>se(oe.CardToExploreCta);var n=S(r);le(n,"src",i);var l=A(n,4),s=S(l);Ct(s,{}),F(()=>le(r,"href",a)),b(t,r),te()}fe(["click"]);function Nf(t,e){var v,h;ee(e,!0);const i=g=>{var m=he(),w=Z(m);{var y=x=>{$o(x,{get campaign(){return l}})},k=x=>{Rf(x,{})};H(w,x=>{l?x(y):x(k,!1)})}b(g,m)},a=g=>{var m=he(),w=Z(m);{var y=k=>{es(k,{get campaign(){return s}})};H(w,k=>{s&&k(y)})}b(g,m)},r=N(e,"initialScrollPosition",3,0),n=ho(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);Ja("modal","title");const l=La("top_scroll"),s=La("card"),c=(h=(v=window.PlayPilotLinkInjections)==null?void 0:v.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||c&&!document.querySelector(Ln);let u=!1;se(oe.TitleModalView,e.title),Da()&&Wt(Pt.TitleInterest,{title:e.title.title,source:wi.Card}),nt(()=>{const g=Date.now();return()=>se(oe.TitleModalClose,e.title,{time_spent:Date.now()-g})});function p(){u||(se(oe.TitleModalScroll,e.title),u=!0)}{let g=U(()=>d?i:null),m=U(()=>s?a:null);Cr(t,{onscroll:p,get initialScrollPosition(){return r()},get bubble(){return o(g)},get prepend(){return o(m)},tall:!0,children:(w,y)=>{kr(w,gn({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}te()}var Of=j(" <strong> </strong>",1),Bf=j('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Ff=j('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),Hf=j('<button class="more svelte-ke01cs"> </button>'),Vf=j('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function Uf(t,e){ee(e,!0);const i=U(()=>e.participant.name),a=U(()=>e.participant.birth_date),r=U(()=>e.participant.death_date),n=30;let l=G(je([])),s=G(1),c=G(!0),d=G(!0);nt(p),gt("pixels")&&Wt(Pt.ParticipantView,{participant:e.participant.name});function u(M){return new Date(M).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){R(d,!0);try{const M=await sv(e.participant,{page:o(s)});R(l,[...o(l),...M],!0),R(c,(M==null?void 0:M.length)>=n)}catch{R(c,!1)}finally{R(d,!1),R(s,o(s)+1)}}var v=Vf(),h=Z(v),g=S(h),m=S(g);Tt(g,(M,T)=>Ae==null?void 0:Ae(M,T),()=>2);var w=A(g,2);{var y=M=>{var T=Bf(),E=S(T),I=A(E),q=S(I),B=A(I);{var J=W=>{var V=Of(),K=Z(V),Q=A(K),X=S(Q);F((ne,$)=>{Y(K,`, ${ne??""} `),Y(X,$)},[()=>ae("Died On"),()=>u(o(r))]),b(W,V)};H(B,W=>{o(r)&&W(J)})}F((W,V)=>{Y(E,`${W??""} `),Y(q,V)},[()=>ae("Born On"),()=>u(o(a))]),b(M,T)};H(w,M=>{o(a)&&M(y)})}var k=A(h,2),x=S(k),_=S(x);Tt(x,(M,T)=>Ae==null?void 0:Ae(M,T),()=>3);var z=A(x,2),C=S(z);Pe(C,17,()=>o(l),ze,(M,T)=>{Wo(M,{get title(){return o(T)},onclick:E=>li({event:E,data:o(T)})})});var L=A(C,2);{var O=M=>{var T=he(),E=Z(T);Pe(E,16,()=>({length:6}),ze,(I,q)=>{var B=Ff();b(I,B)}),b(M,T)},P=M=>{var T=he(),E=Z(T);{var I=q=>{var B=Hf();B.__click=p;var J=S(B);F(W=>Y(J,W),[()=>ae("Show More")]),b(q,B)};H(E,q=>{o(c)&&q(I)},!0)}b(M,T)};H(L,M=>{o(d)?M(O):M(P,!1)})}F(M=>{Y(m,o(i)),Y(_,M)},[()=>ae("Credits")]),b(t,v),te()}fe(["click"]);function Wf(t,e){ee(e,!0);const i=N(e,"initialScrollPosition",3,0);let a=G(0);se(oe.ParticipantModalView,null,{participant:e.participant.name}),nt(()=>{const r=Date.now();return()=>se(oe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),Cr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{Uf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),Ia("innerWidth",r=>R(a,r,!0)),te()}var Gf=j('<div class="content svelte-16hba4m"><!></div>');function Kf(t,e){const i=N(e,"initialScrollPosition",3,0);Cr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=Gf(),l=S(n);Zo(l,{}),b(a,n)},$$slots:{default:!0}})}function Zf(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var Yf=Ye('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Jf(t){var e=Yf();b(t,e)}var Qf=j('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Xf=j('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),$f=j('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),eh=j('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function th(t,e){ee(e,!0),Ja("scope","popover");const i=e.bubble&&ff(Rn.TopScrollFormat,1),a=U(()=>({duration:Dn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),s=G(!1),c=G(0),d=G(0),u=G(0);nt(async()=>{await Ea(),p(),await h(),e.append&&requestAnimationFrame(()=>{v(),h()}),await Ea(),m()});function p(){if(!o(r))return;const{top:T,right:E,bottom:I,height:q}=o(r).getBoundingClientRect(),B=g();R(n,T-B<0&&window.innerHeight-I>T+q,!0);const J=window.innerWidth-E-B;E+B>window.innerWidth&&(o(r).style.left=`${J}px`)}function v(){R(l,o(c)>450)}async function h(){if(R(u,0),await new Promise(W=>requestAnimationFrame(W)),!o(r))return;const{top:T,height:E}=o(r).getBoundingClientRect(),I=g(),q=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,B=o(l)?o(d)+q:0,J=o(n)?window.innerHeight-T-I-B:T+E-B-I;R(u,Math.min(J,window.innerHeight*.8),!0)}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function m(){var B;if(!((B=o(r))!=null&&B.firstChild))return;const T=o(r).firstChild,{offsetHeight:E,scrollHeight:I,scrollTop:q}=T;I<=E?R(s,!1):R(s,q+E<I)}var w=eh();let y,k;var x=S(w),_=S(x);Oe(_,()=>e.children);var z=A(_,2);{var C=T=>{var E=Qf(),I=S(E),q=S(I);Jf(q),De(3,E,()=>ni,()=>({duration:100})),b(T,E)};H(z,T=>{o(s)&&T(C)})}var L=A(x,2);{var O=T=>{var E=Xf(),I=S(E);Oe(I,()=>e.bubble),De(7,E,()=>Ma,()=>o(a)),b(T,E)};H(L,T=>{e.bubble&&T(O)})}var P=A(L,2);{var M=T=>{var E=$f(),I=S(E);Oe(I,()=>e.append),De(7,E,()=>Ma,()=>o(a)),Et(E,"clientHeight",q=>R(d,q)),b(T,E)};H(P,T=>{e.append&&o(l)&&T(M)})}Je(w,T=>R(r,T),()=>o(r)),F(()=>{y=be(w,1,"popover svelte-wxwoko",null,y,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),k=He(w,"",k,{"--max-height":o(u)?o(u)+"px":null})}),xe("scroll",x,m),De(7,x,()=>Ma,()=>o(a)),Et(w,"clientHeight",T=>R(c,T)),b(t,w),te()}var ih=j('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function ah(t,e){ee(e,!0);const i=u=>{var p=he(),v=Z(p);{var h=g=>{$o(g,{get campaign(){return r}})};H(v,g=>{r&&g(h)})}b(u,p)},a=u=>{var p=he(),v=Z(p);{var h=g=>{es(g,{get campaign(){return n},compact:!0})};H(v,g=>{n&&g(h)})}b(u,p)},r=La("top_scroll"),n=La("card");let l=G(null);se(oe.TitlePopoverView,e.title),Da()&&Wt(Pt.TitleInterest,{title:e.title.title,source:wi.Card}),nt(()=>{s();const u=Date.now();return()=>se(oe.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function s(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const p=Array.from(u.getClientRects()),h=p.map(m=>m.x).map(m=>Math.abs(m-e.event.clientX)),g=p[h.indexOf(Math.min(...h))];o(l).style.top=g.top+window.scrollY+"px",o(l).style.left=g.left+window.scrollX+"px",o(l).style.height=g.height+"px"}var c=ih(),d=S(c);{let u=U(()=>n?a:null),p=U(()=>r?i:null);th(d,{get append(){return o(u)},get bubble(){return o(p)},children:(v,h)=>{kr(v,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Je(c,u=>R(l,u),()=>o(l)),b(t,c),te()}let zr=null,qi=null;function rh(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;qi&&Ir();const i=t.currentTarget;zr=i,setTimeout(()=>{zr===i&&(qi=Ut(ah,{target:Hn(),props:{event:t,title:e.title_details}}))},100)}async function Ir(t=!0){if(qi){const e=ia(qi,{outro:t});zr=null,qi=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function nh(t){if(!qi)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(oi)||e.closest(si)||Ir()}function lh(){zr=null}function oh(){return!!qi}var sh=j('<div class="content svelte-c2erhr"><!></div>'),ch=j("<div><!></div>"),dh=j('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),uh=j('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),ph=j("<!> <!>",1),vh=j('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function fh(t,e){ee(e,!0);const i=N(e,"initialIndex",3,0),a=N(e,"onchange",3,()=>null),r=N(e,"onclose",3,()=>null),n=300;let l,s=G(!1);nt(()=>{setTimeout(()=>{l==null||l.setIndex(i()),requestAnimationFrame(()=>R(s,!0))})});function c(d){a()(d),l.setIndex(d)}Cr(t,{blur:!0,get onclose(){return r()},dialog:u=>{var p=vh(),v=Z(p);He(v,"",{},{"--transition-duration":"300ms"});var h=S(v);{const w=(x,_)=>{let z=()=>_==null?void 0:_().currentIndex;var C=he(),L=Z(C);Pe(L,17,()=>e.items,ze,(O,P,M)=>{var T=ch();let E;T.__click=()=>c(M);var I=S(T);{var q=B=>{var J=sh(),W=S(J);Oe(W,()=>e.each,()=>o(P),z),De(3,J,()=>ni,()=>({duration:o(s)?n:0})),b(B,J)};H(I,B=>{(Math.abs(M-z())===1||z()===M)&&B(q)})}F(()=>E=be(T,1,"item svelte-c2erhr",null,E,{active:M===z()})),b(O,T)}),b(x,C)},y=(x,_)=>{let z=()=>_==null?void 0:_().currentIndex,C=()=>_==null?void 0:_().reachedEnd;var L=ph(),O=Z(L);{var P=E=>{var I=dh();I.__click=()=>c(z()-1);var q=S(I);Ct(q,{size:21,direction:"left",title:"Previous"}),b(E,I)};H(O,E=>{z()>0&&E(P)})}var M=A(O,2);{var T=E=>{var I=uh();I.__click=()=>c(z()+1);var q=S(I);Ct(q,{size:21,title:"Next"}),b(E,I)};H(M,E=>{C()||E(T)})}b(x,L)};let k=U(()=>o(s)?n:0);Je(Bo(h,{threshold:40,moveThreshold:40,get transitionDuration(){return o(k)},children:w,controls:y,$$slots:{default:!0,controls:!0}}),x=>l=x,()=>l)}var g=A(v,2),m=S(g);Mn(m,{size:"42px",onclick:()=>{r()(),On()},"aria-label":"Close",children:(w,y)=>{wr(w,{size:24})},$$slots:{default:!0}}),De(7,g,()=>oa),b(u,p)},$$slots:{dialog:!0}}),te()}fe(["click"]);function hh(t,e){ee(e,!0);const i=N(e,"initialIndex",3,0);fh(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:r=>se(oe.ExploreTitleRailSetIndex,e.titles[r],{index:r}),each:(r,n=vt,l=vt)=>{{let s=U(()=>{var c;return n().sid===((c=e.titles[l()])==null?void 0:c.sid)});kr(r,{get title(){return n()},get useVideoBackground(){return o(s)}})}},$$slots:{each:!0}}),te()}const tt=[];function li({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&Io(e))return;e==null||e.preventDefault(),tt!=null&&tt.length&&Nn();const s=Hn(),c={initialScrollPosition:r,...l},d=gh({type:t,target:s,data:a,props:c});n&&ts({type:t,injection:i,data:n}),ts({type:t,injection:i,data:a,scrollPosition:r,component:d})}function gh({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Ut(Wf,{target:e,props:{participant:i,...a}}):t==="explore"?Ut(Kf,{target:e,props:{...a}}):t==="titles-rail"?Ut(hh,{target:e,props:{titles:i,...a}}):Ut(Nf,{target:e,props:{title:i,...a}})}function ts({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){tt.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Nn(t=!0){tt.length&&(bh(),ia(tt[tt.length-1].component,{outro:t}))}function mh(t=!0){Nn(t),tt.pop()}function On(t=!0){for(Nn(t);tt.length>0;)tt.pop()}function is(){return tt[tt.length-2]||null}function yh(){if(tt.length<2)return;mh();const t=tt.pop();t&&li({...t})}function bh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>ai?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(tt[tt.length-1].scrollPosition=e.scrollTop)}function wh(t,e){if(Io(t))return;let i=t.target;if(!i||(i.hasAttribute(oi)||(i=i.closest(si)),!i))return;const a=i.getAttribute(oi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),Zf(()=>{Ir(!1),li({event:t,injection:r,data:r.title_details})},!Dn.current&&window.innerWidth>=ai&&!window.matchMedia("(pointer: coarse)").matches))}var xh=j(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),_h=j('<!> <a target="_blank"> </a>',1),kh=j(" <!>.",1),Sh=j("<!> <br/>",1),Th=j(" <br/>",1),Eh=j('<span class="svelte-1to4glm"><!></span>'),Ph=j('<p class="svelte-1to4glm"></p>');function Ch(t,e){ee(e,!0);const i=N(e,"onclickmodal",3,()=>null);function a(c,d){se(oe.AfterArticlePlaylinkClick,c,{playlink:d})}function r(c,d,u){se(oe.AfterArticleModalButtonClick,d),i()(c,u)}var n=he(),l=Z(n);{var s=c=>{var d=Ph();Pe(d,21,()=>e.linkInjections,ze,(u,p)=>{const v=U(()=>{const{key:k,title:x,title_details:_,after_article_style:z}=o(p);return{key:k,title:x,title_details:_,after_article_style:z}}),h=U(()=>{var k;return((k=o(v).title_details)==null?void 0:k.providers)||[]});var g=Eh(),m=S(g);{var w=k=>{var x=Sh(),_=Z(x);{var z=L=>{var O=xh(),P=Z(O),M=A(P);M.__click=I=>I.stopPropagation();var T=S(M);T.__click=I=>r(I,o(v).title_details,o(p));var E=S(T);F((I,q)=>{Y(P,`"${o(v).title??""}" ${I??""} `),Y(E,q)},[()=>ae("Is Available To Stream"),()=>ae("View Streaming Options")]),b(L,O)},C=L=>{var O=kh(),P=Z(O),M=A(P);Pe(M,17,()=>o(h),ze,(T,E,I)=>{let q=()=>o(E).name,B=()=>o(E).url;var J=_h(),W=Z(J);{var V=X=>{var ne=St();F($=>Y(ne,$),[()=>I===o(h).length-1?`, ${ae("And")}`:","]),b(X,ne)};H(W,X=>{I&&X(V)})}var K=A(W,2);K.__click=()=>a(o(v).title_details,q());var Q=S(K);F(()=>{le(K,"href",B()),Y(Q,q())}),b(T,J)}),F(T=>Y(P,`"${o(v).title??""}" ${T??""} `),[()=>ae("Is Available To Stream On")]),b(L,O)};H(_,L=>{o(v).after_article_style==="modal_button"?L(z):L(C,!1)})}b(k,x)},y=k=>{var x=Th(),_=Z(x);F(z=>Y(_,`"${o(v).title??""}" ${z??""} `),[()=>ae("Title Unavailable Suffix")]),b(k,x)};H(m,k=>{o(h).length?k(w):k(y,!1)})}F(()=>le(g,"data-playpilot-injection-key",o(v).key)),b(u,g)}),b(c,d)};H(l,c=>{e.linkInjections.length&&c(s)})}b(t,n),te()}fe(["click"]);let qa=null;function zh(t,e){var l,s;if(qa||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),qa=Ut(Ch,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>li({event:c,injection:d,data:d.title_details})}})}function Ih(){var t;qa&&(ia(qa),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),qa=null)}var jh=j('<p class="svelte-1epbbn0"> </p>');function Ah(t,e){ee(e,!1),hn();var i=jh(),a=S(i);F(r=>Y(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||ae("In-Text Disclaimer")}]),b(t,i),te()}let Ra=null;function Lh(t){var n,l,s,c,d,u;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Ra)return;const e=document.createElement("div"),i=(c=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:c.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((u=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),Ra=Ut(Ah,{target:e})}function Mh(){var t;Ra&&(ia(Ra),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ra=null)}const oi="data-playpilot-injection-key",si=`[${oi}]`;function Dh(t,e={aiInjections:[],manualInjections:[]}){Fn(),Fh();const i=Hh(e);if(!i.length)return[];const a=bi(t.map(d=>d.innerText).join(" ")),n=Uh(i).filter(d=>a.includes(bi(d.sentence))),l={};let s=-1;for(const d of Gh(n)){s++;const u=t.findIndex(_=>bi(_.innerText).includes(bi(d.sentence))),p=t[u];if(!p)continue;const v=Eo(d.title,p,["A"]);if(!(v!=null&&v.nodeValue)||Po(v)){const _=Eo(d.title,p);if(_&&Po(_)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:g}=qh(d);let m=-1,w=!1;vr(p.innerHTML,d.title)===1&&(m=p.innerHTML.indexOf(d.title));const{phrase_before:k,phrase_after:x}=Rh(p,d);if(m===-1&&(k||x)){const _=[k,d.title,x].filter(Boolean).join(" ");if(m=p.innerHTML.indexOf(_),m===-1){const z=_d(p.innerHTML,d.title,k||"",x||"");if(z){const{leadingSpaces:C,trailingSpaces:L}=kd(z.match);g.innerHTML=z.match.trim();const O=z.index+C,P=z.index+z.match.length-L;if(p.innerHTML.slice(O,P).includes("href="))continue;Bn(p.innerHTML,d.title,p,h,O,P)&&(m=z.index,w=!0)}}}if(m===-1&&(v!=null&&v.nodeValue)){const _=p.innerHTML.indexOf(v.nodeValue),z=p.innerHTML.indexOf(d.sentence),C=z===-1?p.innerHTML.indexOf(d.sentence.slice(0,20)):-1,L=d.sentence.split(" ")[0],P=vr(p.innerHTML,L)===1?p.innerHTML.indexOf(L):-1,M=hd(n.slice(0,s+1),d,["title","sentence"])-1,T=Sd(v.nodeValue,p,M);m=Math.max(_,C,T,P,z,0)}if(m!==-1&&!w&&!Bn(p.innerHTML,d.title,p,h,m)){const _=Ed(d.title,p.innerHTML);_>-1?Bn(p.innerHTML,d.title,p,h,_):l[d.key]="Injection would have lead to broken HTML."}}Oh(n),Nh();const c=Wh(i);return c.length&&zh(t,c),document.querySelector(si)&&Lh(t),i.filter(d=>d.title_details).map((d,u)=>{const p=!d.manual&&Kh(d,u,i),v=d.duplicate??p;v&&(l[d.key]=p?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${oi}="${d.key}"]`),g=rs(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,m=n.find(y=>y.key===d.key),w=g?l[d.key]||(m?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:v,failed:g,failed_message:w,matchingElement:h}})}function qh(t){var n,l,s;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=!!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.open_tpi_links_in_explore),a=i?ou(t.title_details):Cn(t.title_details),r=document.createElement("a");return r.dataset.playpilotPosterUrl=(s=t.title_details)==null?void 0:s.standing_poster,r.innerText=t.title,r.href=a,r.target=i?"":"_blank",r.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",r),{injectionElement:e,linkElement:r}}function Bn(t,e,i,a,r,n=-1){const l=u=>Array.from(u.querySelectorAll(`a, ${si}`)).filter(p=>!p.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=l(s),d=s.innerText;return n>0?s.innerHTML=bd(t,a.outerHTML,r,n):s.innerHTML=yd(t,e,a.outerHTML,r),Math.abs(s.innerText.length-d.length)>1||c!=l(s)?!1:(i.innerHTML=s.innerHTML,!0)}function Rh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(vr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=wd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function Nh(){const t=Array.from(document.querySelectorAll(`${si} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function Oh(t){window.addEventListener("mousemove",nh),window.addEventListener("click",i=>{var a,r;(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&r.open_tpi_links_in_explore||wh(i,t)}),document.querySelectorAll(si).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{oh()||rh(n,r)}),i.addEventListener("mouseleave",lh))})}function Fn(){document.querySelectorAll(si).forEach(e=>Bh(e.getAttribute(oi)||"")),Ih(),Mh(),On(!1),Ir(!1)}function Bh(t){var r;const e=document.querySelector(`[${oi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function Fh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(si)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Hh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Vh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function as(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&rs(t)}function rs(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Uh(t){return ns(t).filter(e=>e.in_text!==!1&&as(e))}function Wh(t){return ns(t).filter(e=>e.after_article===!0&&as(e))}function ns(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&ls(i,e)))}function Gh(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Kh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&ls(a,t))}function ls(t,e){return t.title===e.title&&bi(t.sentence)===bi(e.sentence)}function Hn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Zh(){const t=yi();if(!t)throw new Error("No token was provided");try{return await await ri(`/domains/config?api-token=${t}`)||null}catch{return null}}fe(["click"]),fe(["input"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["mousedown","touchstart"]),fe(["mousedown","touchstart"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["click"]),fe(["click"]);function Yh(t,e){ee(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=p=>c.consents[p]===!0;Pd({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}te()}var Jh=j('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Qh=j('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Xh=j('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),$h=j('<button class="svelte-1tp7i1s"></button>'),eg=j("<small>You are using the beta version of TPI</small>"),tg=j('<button class="svelte-1tp7i1s">Use beta script</button>'),ig=j('<button class="svelte-1tp7i1s">Toggle new explore</button>'),ag=j("<option> </option>"),rg=j('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Open links as modal in explore</button> <button class="svelte-1tp7i1s">Open links as separate page in explore</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function ng(t,e){ee(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(je(d())),l=G(!1),s=null,c=G(184);dr(()=>{s&&clearInterval(s)});function d(){var z,C,L,O,P,M;const y=window.PlayPilotLinkInjections,k=((z=y.evaluated_link_injections)==null?void 0:z.filter(T=>!T.failed))||[],x=((C=y.evaluated_link_injections)==null?void 0:C.filter(T=>T.failed))||[],_=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:y.domain_sid},{label:"Organization",data:y.organization_sid},{label:"HTML selector",data:y.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([T,E])=>({label:T,data:E})),[`Succesful injections (${k.length})`]:k.map(T=>({label:T.title,data:T.sentence})),[`Failed injections (${x.length})`]:x.map(T=>({label:T.title,data:`Reason: ${T.failed_message} | Sentence: ${T.sentence}`})),[`Fetched ads (${((L=y.ads)==null?void 0:L.length)||0})`]:(O=y.ads)==null?void 0:O.map(T=>({label:T.campaign_name,data:T})),[`Tracking events (${((P=y.tracked_events)==null?void 0:P.length)||0})`]:(M=y.tracked_events)==null?void 0:M.map(T=>({label:T.event,data:T.payload})),[`Visible pixels (${_.length})`]:_.map((T,E)=>({label:E+1,data:T.src}))}}function u(y){o(l)||(a.push(y.key),R(l,i.some(k=>a.slice(a.length-k.length,a.length).join("")===k),!0),s=setInterval(()=>R(n,d(),!0),200))}function p(y){window.PlayPilotLinkInjections.ads.unshift({campaign_format:y,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function v(y){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Rn).forEach(({key:k,numberOfVariants:x})=>{const _=1/x;window.PlayPilotLinkInjections.split_test_identifiers[k]=Math.min(_*y,1)})}function h(){var x,_;const y=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!y)return;(_=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||_.call(x);const k=document.createElement("script");for(const z of y.attributes)k.setAttribute(z.name,z.value);k.getAttribute("onload")||k.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),k.src=y.src.replace("link-injection","link-injection@next"),y.insertAdjacentElement("afterend",k),y.remove()}var g=he();xe("keydown",Ie,u);var m=Z(g);{var w=y=>{var k=rg(),x=A(S(k),4);{var _=re=>{var me=Jh();b(re,me)};H(x,re=>{var me,Le,Me;(me=window.PlayPilotLinkInjections.config)!=null&&me.exclude_urls_pattern&&Mi().match((Me=(Le=window.PlayPilotLinkInjections)==null?void 0:Le.config)==null?void 0:Me.exclude_urls_pattern)&&re(_)})}var z=A(x,2);Pe(z,17,()=>Object.entries(o(n)),ze,(re,me)=>{var Le=U(()=>Wi(o(me),2));let Me=()=>o(Le)[0],it=()=>o(Le)[1];var ue=Xh(),Be=S(ue),wt=S(Be),jt=A(Be,2);{var ie=de=>{var Re=he(),Xe=Z(Re);{var di=Ua=>{var At=he(),ui=Z(At);Pe(ui,17,it,ze,(pg,ss,kg,Sg)=>{let vg=()=>o(ss).label,fg=()=>o(ss).data;var cs=Qh(),ds=S(cs),hg=S(ds),gg=A(ds,2),mg=S(gg);F(yg=>{Y(hg,vg()),Y(mg,yg)},[()=>JSON.stringify(fg())]),b(pg,cs)}),b(Ua,At)};H(Xe,Ua=>{Array.isArray(it())&&Ua(di)})}b(de,Re)},pe=de=>{var Re=St("No data");b(de,Re)};H(jt,de=>{var Re;(Re=it())!=null&&Re.length?de(ie):de(pe,!1)})}F(()=>Y(wt,Me())),b(re,ue)});var C=A(z,4);C.__click=()=>p("card");var L=A(C,2);L.__click=()=>p("top_scroll");var O=A(L,6);Pe(O,16,()=>({length:4}),ze,(re,me,Le)=>{var Me=$h();Me.__click=()=>v(Le),Me.textContent=Le,b(re,Me)});var P=A(O,4);P.__click=()=>console.log(Aa(window.PlayPilotLinkInjections.config));var M=A(P,2);M.__click=()=>console.log(Aa(window.PlayPilotLinkInjections.config).pageText);var T=A(M,4);T.__click=function(...re){var me;(me=e.onrerender)==null||me.apply(this,re)};var E=A(T,2);{var I=re=>{var me=eg();b(re,me)},q=re=>{var me=tg();me.__click=h,b(re,me)};H(E,re=>{r?re(I):re(q,!1)})}var B=A(E,2);{var J=re=>{var me=ig();me.__click=()=>{Er(),window.PlayPilotLinkInjections.config.explore_use_router=!sa(),Tr()},b(re,me)};H(B,re=>{sa()||re(J)})}var W=A(B,4),V=A(S(W),2);Hc(V,window.PlayPilotLinkInjections.region),V.__change=re=>{Er(),window.PlayPilotLinkInjections.region=re.target.value,Tr()};var K=A(W,2),Q=A(S(K),2);Q.__change=re=>{Er(),window.PlayPilotLinkInjections.language=re.target.value,Tr()},Pe(Q,21,()=>Object.entries(f),ze,(re,me)=>{var Le=U(()=>Wi(o(me),2));let Me=()=>o(Le)[0],it=()=>o(Le)[1];var ue=ag(),Be=S(ue),wt={};F(jt=>{lo(ue,jt),Y(Be,Me()),wt!==(wt=it())&&(ue.value=(ue.__value=it())??"")},[()=>it()===ja()]),b(re,ue)});var X=A(K,4),ne=A(S(X),2);le(ne,"min",80),le(ne,"max",240),le(ne,"step",8),ne.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(c)}px`);var $=A(ne,2),_e=S($),Se=A(X,4);Se.__click=()=>{localStorage.setItem("tpi-open-explore-as-modal","true"),e.onrerender()};var Ue=A(Se,2);Ue.__click=()=>{localStorage.setItem("tpi-open-explore-as-modal","false"),e.onrerender()};var Qe=A(Ue,4);Qe.__click=()=>R(l,!1),F(()=>Y(_e,o(c))),za(ne,()=>o(c),re=>R(c,re)),b(y,k)};H(m,y=>{o(l)&&y(w)})}b(t,g),te()}fe(["click","change","input"]);function lg(t,e){ee(e,!1);const i=Array.from(document.querySelectorAll(si)),a=[],r=Date.now();let n=!1,l=null;nt(()=>{if(!ur())return s(),()=>{var p;return(p=l==null?void 0:l.disconnect)==null?void 0:p.call(l)}});function s(){l=new IntersectionObserver(c),i.forEach(p=>{l.observe(p)})}function c(p){p.forEach(v=>{if(!v.isIntersecting)return;const h=v.target.getAttribute(oi);h&&a.push(h),l.unobserve(v.target)})}function d(){const{scrollHeight:p,scrollTop:v,clientHeight:h}=document.documentElement;return v/(p-h)*100}function u(){var v,h;if(n||document.visibilityState!=="hidden")return;n=!0;const p=Date.now();se(oe.UserLeft,null,{time_start:r,time_end:p,time_spent:p-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(v=window.PlayPilotLinkInjections)==null?void 0:v.tracked_events)==null?void 0:h.map(g=>g.event))||[],scroll_percentage:d()})}hn(),xe("visibilitychange",Ie,u),te()}function og(t,e){ee(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new Pr,r=.7,n="[data-playpilot-poster]";let l=G(0),s={},c=null;const d=U(()=>o(l)<ai);dr(h);function u(){var x,_;if((_=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&_.disable_scroll_reveal_posters||!o(d))return;g();const m=window.innerHeight,w=new Pr,y=m*r,k=m-y;for(const z of i){const{top:C}=z.getBoundingClientRect();C<y&&C>k&&w.add(z)}for(const z of w){if(a.has(z))continue;const C=z.dataset.playpilotPosterUrl;C in s&&s[C]!==z||(p(z,C),a.add(z),s[C]=z)}}function p(m,w){const y=document.createElement("img");y.classList.add("playpilot-floating-poster"),y.dataset.playpilotPoster="",y.src=w,y.alt="",y.onload=()=>y.classList.add("loaded"),m.insertAdjacentElement("afterbegin",y)}function v(m){const w=m.querySelector(n);w&&(w.classList.add("animating-out"),setTimeout(()=>w.remove(),500))}function h(){for(const m of Array.from(document.querySelectorAll(n)))m.remove()}function g(){c&&clearTimeout(c),c=setTimeout(()=>{for(const m of a)v(m),a.delete(m),s={}},1e3)}xe("scroll",Ie,u),Ia("innerWidth",m=>R(l,m,!0)),te()}function sg(t,e){ee(e,!0);const i=[];nt(()=>{if(!Da())return;const r=new IntersectionObserver(n=>{n.forEach(l=>{if(!l.isIntersecting)return;r.unobserve(l.target);const s=l.target.getAttribute(oi),c=e.linkInjections.find(u=>u.key===s),d=c==null?void 0:c.title_details;!s||!c||!d||i.includes(d.sid)||a(d)})});return e.linkInjections.forEach(n=>{n.matchingElement&&r.observe(n.matchingElement)}),()=>r.disconnect()});function a({sid:r,genres:n,participants:l,providers:s,title:c}){i.push(r),Wt(Pt.TitleInterest,{title:c,source:wi.Link}),n.slice(0,3).forEach(d=>{var u;Wt(Pt.GenreInterest,{genre:(u=hr.find(p=>p.slug===d))==null?void 0:u.name,source:wi.Link})}),l==null||l.slice(0,5).forEach(d=>{Wt(Pt.ParticipantInterest,{participant:d.name,source:wi.Link})}),s==null||s.forEach(d=>{Wt(Pt.ProviderInterest,{provider:d.name,source:wi.Link})})}te()}var cg=j("<!> <!>",1),dg=j('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function ug(t,e){ee(e,!0);let i=G(null),a=G(je(ur()));bo();let r=G(!1),n=G(!0),l=G(!0),s=G(je([]));const c=U(()=>o(i)||{}),d=U(()=>Vr(o(c).ai_injections,()=>[],!0)),u=U(()=>Vr(o(c).manual_injections,()=>[],!0)),p=h();Fe(()=>{o(a)&&!o(n)&&g()}),Tr(),dr(Fn);async function v(){fr()||(await p,Ld(),se(oe.ArticlePageView),!(!o(d).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Lo())))}async function h(){var E;R(n,!0);try{o(a)&&R(r,await yo({throwError:!0}),!0)}catch{se(oe.AuthFailed)}try{const I=window.PlayPilotLinkInjections.config||await Zh()||{};if(window.PlayPilotLinkInjections.config=I,I!=null&&I.custom_style&&w(I.custom_style||""),I!=null&&I.explore_navigation_selector&&Kv(),I!=null&&I.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),I!=null&&I.domain_sid&&Ao({organizationSid:I.organization_sid,domainSid:I.domain_sid}),R(l,pd(I),!0),o(l))return;I!=null&&I.html_selector&&(window.PlayPilotLinkInjections.selector=I==null?void 0:I.html_selector)}catch(I){se(oe.FetchingConfigFailed),console.error("TPI Config failed to fetch",I);return}try{if(R(i,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),R(i,o(i)||await So({maxTries:1,runAiWhenRelevant:!fr()}),!0),R(n,!1),!o(i)||(E=window.PlayPilotLinkInjections.config)!=null&&E.disable_public_injections&&!(o(a)&&o(r)))return;if(Ao({organizationSid:o(i).organization_sid,domainSid:o(i).domain_sid}),!o(i).ai_running||!o(i).ai_enabled){m({aiInjections:o(d),manualInjections:o(u)});return}if(!o(a)||fr())return;R(i,await So({requireCompletedResult:!0,onpoll:I=>R(i,I,!0)}),!0),m({aiInjections:o(d),manualInjections:o(u)})}catch(I){console.error(I),se(oe.InjectionError,null,{message:I.message})}}function g(){m(Vh(o(s)))}function m(E={aiInjections:o(d),manualInjections:o(u)}){const{elements:I}=Aa(),q=Dh(I,E);JSON.stringify(q)!==JSON.stringify(o(s))&&(R(s,q,!0),window.PlayPilotLinkInjections.evaluated_link_injections=q),o(a)||y(q)}function w(E){const I="playpilot-custom-style",q=document.getElementById(I),B=q||document.createElement("style");B.textContent=`body { ${E} }`,B.id=I,q||document.body.appendChild(B)}function y(E){const I=E.filter(B=>!B.failed),q=E.filter(B=>B.failed);if(I.length&&se(oe.ArticleInjected,null,{manual:I.filter(B=>B.manual).length,ai:I.filter(B=>!B.manual).length}),q.length){const B=J=>q.filter(({failed_message:W})=>W==null?void 0:W.includes(J)).length;se(oe.FailedInjectionsCount,null,{total:q.length,sentence_not_found:B("sentence was not found"),already_linked:B("already inside of a link"),broken_html:B("broken HTML"),duplicate:B("duplicate"),unknown:B("unknown reasons")})}}var k=dg(),x=Z(k),_=S(x);H(_,E=>{});var z=A(_,2);ng(z,{onrerender:g});var C=A(x,2);{var L=E=>{In(E,{get pixels(){return o(i).pixels}})};H(C,E=>{var I,q;(q=(I=o(i))==null?void 0:I.pixels)!=null&&q.length&&E(L)})}var O=A(C,2);{var P=E=>{sg(E,{get linkInjections(){return o(s)}})};H(O,E=>{o(s).length&&E(P)})}var M=A(O,2);Ca(M,()=>o(s),E=>{var I=cg(),q=Z(I);lg(q,{});var B=A(q,2);og(B,{}),b(E,I)});var T=A(M,2);Yh(T,{onchange:v}),b(t,k),te()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Ut(ug,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Fn()}}})();
|