@playpilot/tpi 8.13.0-beta.2 → 8.13.0

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.
@@ -2,11 +2,11 @@ var um=Object.defineProperty;var Ns=De=>{throw TypeError(De)};var vm=(De,Ne,We)=
2
2
  /*$vite$:1*/`,document.head.appendChild(De);const Ne=!1;var We=Array.isArray,ln=Array.prototype.indexOf,er=Array.from,Vs=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,ml=Object.getOwnPropertyDescriptors,Ws=Object.prototype,Us=Array.prototype,tr=Object.getPrototypeOf,yl=Object.isExtensible;function Xi(t){return typeof t=="function"}const bt=()=>{};function Gs(t){return typeof(t==null?void 0:t.then)=="function"}function Ks(t){return t()}function ir(t){for(var e=0;e<t.length;e++)t[e]()}function bl(){var t,e,i=new Promise((a,n)=>{t=a,e=n});return{promise:i,resolve:t,reject:e}}function on(t,e,i=!1){return t===void 0?i?e():e:t}function $i(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 nt=2,ar=4,sn=8,_l=1<<24,Ht=16,ri=32,Li=64,cn=128,Lt=512,lt=1024,ut=2048,li=4096,gt=8192,oi=16384,dn=32768,Vt=65536,wl=1<<17,nr=1<<18,ea=1<<19,xl=1<<20,ja=32768,rr=1<<21,lr=1<<22,bi=1<<23,Wt=Symbol("$state"),kl=Symbol("legacy props"),Ys=Symbol(""),ta=new class extends Error{constructor(){super(...arguments);Ft(this,"name","StaleReactionError");Ft(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function or(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Zs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Js(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Xs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ec(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function tc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ic(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ac(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function nc(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Sl=1,Tl=2,El=4,rc=8,lc=16,oc=1,sc=2,cc=4,dc=8,uc=16,vc=1,pc=2,fc=4,hc=1,gc=2,$e=Symbol(),mc="http://www.w3.org/1999/xhtml",yc="http://www.w3.org/2000/svg",bc="@attach";function _c(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function wc(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Pl(t){return t===this.v}function Cl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Il(t){return!Cl(t,this.v)}let ia=!1,xc=!1;function kc(){ia=!0}let Me=null;function aa(t){Me=t}function un(t){return jl().get(t)}function vn(t,e){return jl().set(t,e),e}function re(t,e=!1,i){Me={p:Me,i:!1,c:null,e:null,s:t,x:null,l:ia&&!e?{s:null,u:null,$:[]}:null}}function le(t){var e=Me,i=e.e;if(i!==null){e.e=null;for(var a of i)to(a)}return t!==void 0&&(e.x=t),e.i=!0,Me=e.p,t??{}}function Mi(){return!ia||Me!==null&&Me.l===null}function jl(t){return Me===null&&or(),Me.c??(Me.c=new Map(Sc(Me)||void 0))}function Sc(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let qi=[];function zl(){var t=qi;qi=[],ir(t)}function si(t){if(qi.length===0&&!ra){var e=qi;queueMicrotask(()=>{e===qi&&zl()})}qi.push(t)}function Tc(){for(;qi.length>0;)zl()}function Al(t){var e=je;if(e===null)return Ce.f|=bi,t;if(e.f&dn)na(t,e);else{if(!(e.f&cn))throw t;e.b.error(t)}}function na(t,e){for(;e!==null;){if(e.f&cn)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const pn=new Set;let ke=null,za=null,Ke=null,_t=[],fn=null,sr=!1,ra=!1;const Wn=class Wn{constructor(){_e(this,Xe);Ft(this,"committed",!1);Ft(this,"current",new Map);Ft(this,"previous",new Map);_e(this,wa,new Set);_e(this,xa,new Set);_e(this,Ui,0);_e(this,Gi,0);_e(this,$a,null);_e(this,ka,[]);_e(this,Sa,[]);Ft(this,"skipped_effects",new Set);Ft(this,"is_fork",!1)}is_deferred(){return this.is_fork||F(this,Gi)>0}process(e){var a;_t=[],za=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of e)Oe(this,Xe,pl).call(this,n,i);this.is_fork||Oe(this,Xe,Rs).call(this),this.is_deferred()?(Oe(this,Xe,Qi).call(this,i.effects),Oe(this,Xe,Qi).call(this,i.render_effects),Oe(this,Xe,Qi).call(this,i.block_effects)):(za=this,ke=null,ql(i.render_effects),ql(i.effects),za=null,(a=F(this,$a))==null||a.resolve()),Ke=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&bi||(this.current.set(e,e.v),Ke==null||Ke.set(e,e.v))}activate(){ke=this,this.apply()}deactivate(){ke===this&&(ke=null,Ke=null)}flush(){if(this.activate(),_t.length>0){if(Ml(),ke!==null&&ke!==this)return}else F(this,Ui)===0&&this.process([]);this.deactivate()}discard(){for(const e of F(this,xa))e(this);F(this,xa).clear()}increment(e){ye(this,Ui,F(this,Ui)+1),e&&ye(this,Gi,F(this,Gi)+1)}decrement(e){ye(this,Ui,F(this,Ui)-1),e&&ye(this,Gi,F(this,Gi)-1),this.revive()}revive(){for(const e of F(this,ka))ot(e,ut),Di(e);for(const e of F(this,Sa))ot(e,li),Di(e);ye(this,ka,[]),ye(this,Sa,[]),this.flush()}oncommit(e){F(this,wa).add(e)}ondiscard(e){F(this,xa).add(e)}settled(){return(F(this,$a)??ye(this,$a,bl())).promise}static ensure(){if(ke===null){const e=ke=new Wn;pn.add(ke),ra||Wn.enqueue(()=>{ke===e&&e.flush()})}return ke}static enqueue(e){si(e)}apply(){}};wa=new WeakMap,xa=new WeakMap,Ui=new WeakMap,Gi=new WeakMap,$a=new WeakMap,ka=new WeakMap,Sa=new WeakMap,Xe=new WeakSet,pl=function(e,i){var u;e.f^=lt;for(var a=e.first;a!==null;){var n=a.f,r=(n&(ri|Li))!==0,o=r&&(n&lt)!==0,s=o||(n&gt)!==0||this.skipped_effects.has(a);if(a.f&cn&&((u=a.b)!=null&&u.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!s&&a.fn!==null){r?a.f^=lt:n&ar?i.effects.push(a):Ra(a)&&(a.f&Ht&&i.block_effects.push(a),Oa(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&&(Oe(this,Xe,Qi).call(this,i.effects),Oe(this,Xe,Qi).call(this,i.render_effects),Oe(this,Xe,Qi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Qi=function(e){for(const i of e)(i.f&ut?F(this,ka):F(this,Sa)).push(i),Oe(this,Xe,fl).call(this,i.deps),ot(i,lt)},fl=function(e){if(e!==null)for(const i of e)!(i.f&nt)||!(i.f&ja)||(i.f^=ja,Oe(this,Xe,fl).call(this,i.deps))},Rs=function(){if(F(this,Gi)===0){for(const e of F(this,wa))e();F(this,wa).clear()}F(this,Ui)===0&&Oe(this,Xe,Os).call(this)},Os=function(){var r;if(pn.size>1){this.previous.clear();var e=Ke,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of pn){if(o===this){i=!1;continue}const s=[];for(const[d,u]of this.current){if(o.current.has(d))if(i&&u!==o.current.get(d))o.current.set(d,u);else continue;s.push(d)}if(s.length===0)continue;const c=[...o.current.keys()].filter(d=>!this.current.has(d));if(c.length>0){var n=_t;_t=[];const d=new Set,u=new Map;for(const v of s)Dl(v,c,d,u);if(_t.length>0){ke=o,o.apply();for(const v of _t)Oe(r=o,Xe,pl).call(r,v,a);o.deactivate()}_t=n}}ke=null,Ke=e}this.committed=!0,pn.delete(this)};let Ut=Wn;function Ll(t){var e=ra;ra=!0;try{for(var i;;){if(Tc(),_t.length===0&&(ke==null||ke.flush(),_t.length===0))return fn=null,i;Ml()}}finally{ra=e}}function Ml(){var t=ki;sr=!0;var e=null;try{var i=0;for(gn(!0);_t.length>0;){var a=Ut.ensure();if(i++>1e3){var n,r;Ec()}a.process(_t),_i.clear()}}finally{sr=!1,gn(t),fn=null}}function Ec(){try{$s()}catch(t){na(t,fn)}}let Mt=null;function ql(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(oi|gt))&&Ra(a)&&(Mt=new Set,Oa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?lo(a):a.fn=null),(Mt==null?void 0:Mt.size)>0)){_i.clear();for(const n of Mt){if(n.f&(oi|gt))continue;const r=[n];let o=n.parent;for(;o!==null;)Mt.has(o)&&(Mt.delete(o),r.push(o)),o=o.parent;for(let s=r.length-1;s>=0;s--){const c=r[s];c.f&(oi|gt)||Oa(c)}}Mt.clear()}}Mt=null}}function Dl(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const r=n.f;r&nt?Dl(n,e,i,a):r&(lr|Ht)&&!(r&ut)&&Nl(n,e,a)&&(ot(n,ut),Di(n))}}function Nl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if(n.f&nt&&Nl(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function Di(t){for(var e=fn=t;e.parent!==null;){e=e.parent;var i=e.f;if(sr&&e===je&&i&Ht&&!(i&nr))return;if(i&(Li|ri)){if(!(i&lt))return;e.f^=lt}}_t.push(e)}function Rl(t){let e=0,i=Kt(0),a;return()=>{qa()&&(l(i),hn(()=>(e===0&&(a=xt(()=>t(()=>wi(i)))),e+=1,()=>{si(()=>{e-=1,e===0&&(a==null||a(),a=void 0,wi(i))})})))}}var Pc=Vt|ea|cn;function Ol(t,e,i){new Cc(t,e,i)}class Cc{constructor(e,i,a){_e(this,et);Ft(this,"parent");_e(this,Pt,!1);_e(this,Ct);_e(this,ul,null);_e(this,ei);_e(this,Ki);_e(this,ti);_e(this,It,null);_e(this,ht,null);_e(this,ii,null);_e(this,gi,null);_e(this,Ci,null);_e(this,Yi,0);_e(this,Ii,0);_e(this,Zi,!1);_e(this,ji,null);_e(this,Un,Rl(()=>(ye(this,ji,Kt(F(this,Yi))),()=>{ye(this,ji,null)})));ye(this,Ct,e),ye(this,ei,i),ye(this,Ki,a),this.parent=je.b,ye(this,Pt,!!F(this,ei).pending),ye(this,ti,di(()=>{je.b=this;{var n=Oe(this,et,hl).call(this);try{ye(this,It,vt(()=>a(n)))}catch(r){this.error(r)}F(this,Ii)>0?Oe(this,et,$n).call(this):ye(this,Pt,!1)}return()=>{var r;(r=F(this,Ci))==null||r.remove()}},Pc))}is_pending(){return F(this,Pt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!F(this,ei).pending}update_pending_count(e){Oe(this,et,gl).call(this,e),ye(this,Yi,F(this,Yi)+e),F(this,ji)&&ci(F(this,ji),F(this,Yi))}get_effect_pending(){return F(this,Un).call(this),l(F(this,ji))}error(e){var i=F(this,ei).onerror;let a=F(this,ei).failed;if(F(this,Zi)||!i&&!a)throw e;F(this,It)&&(rt(F(this,It)),ye(this,It,null)),F(this,ht)&&(rt(F(this,ht)),ye(this,ht,null)),F(this,ii)&&(rt(F(this,ii)),ye(this,ii,null));var n=!1,r=!1;const o=()=>{if(n){wc();return}n=!0,r&&nc(),Ut.ensure(),ye(this,Yi,0),F(this,ii)!==null&&la(F(this,ii),()=>{ye(this,ii,null)}),ye(this,Pt,this.has_pending_snippet()),ye(this,It,Oe(this,et,Xn).call(this,()=>(ye(this,Zi,!1),vt(()=>F(this,Ki).call(this,F(this,Ct)))))),F(this,Ii)>0?Oe(this,et,$n).call(this):ye(this,Pt,!1)};var s=Ce;try{pt(null),r=!0,i==null||i(e,o),r=!1}catch(c){na(c,F(this,ti)&&F(this,ti).parent)}finally{pt(s)}a&&si(()=>{ye(this,ii,Oe(this,et,Xn).call(this,()=>{Ut.ensure(),ye(this,Zi,!0);try{return vt(()=>{a(F(this,Ct),()=>e,()=>o)})}catch(c){return na(c,F(this,ti).parent),null}finally{ye(this,Zi,!1)}}))})}}Pt=new WeakMap,Ct=new WeakMap,ul=new WeakMap,ei=new WeakMap,Ki=new WeakMap,ti=new WeakMap,It=new WeakMap,ht=new WeakMap,ii=new WeakMap,gi=new WeakMap,Ci=new WeakMap,Yi=new WeakMap,Ii=new WeakMap,Zi=new WeakMap,ji=new WeakMap,Un=new WeakMap,et=new WeakSet,pm=function(){try{ye(this,It,vt(()=>F(this,Ki).call(this,F(this,Ct))))}catch(e){this.error(e)}ye(this,Pt,!1)},fm=function(){const e=F(this,ei).pending;e&&(ye(this,ht,vt(()=>e(F(this,Ct)))),Ut.enqueue(()=>{var i=Oe(this,et,hl).call(this);ye(this,It,Oe(this,et,Xn).call(this,()=>(Ut.ensure(),vt(()=>F(this,Ki).call(this,i))))),F(this,Ii)>0?Oe(this,et,$n).call(this):(la(F(this,ht),()=>{ye(this,ht,null)}),ye(this,Pt,!1))}))},hl=function(){var e=F(this,Ct);return F(this,Pt)&&(ye(this,Ci,qt()),F(this,Ct).before(F(this,Ci)),e=F(this,Ci)),e},Xn=function(e){var i=je,a=Ce,n=Me;Jt(F(this,ti)),pt(F(this,ti)),aa(F(this,ti).ctx);try{return e()}catch(r){return Al(r),null}finally{Jt(i),pt(a),aa(n)}},$n=function(){const e=F(this,ei).pending;F(this,It)!==null&&(ye(this,gi,document.createDocumentFragment()),F(this,gi).append(F(this,Ci)),co(F(this,It),F(this,gi))),F(this,ht)===null&&ye(this,ht,vt(()=>e(F(this,Ct))))},gl=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Oe(i=this.parent,et,gl).call(i,e);return}ye(this,Ii,F(this,Ii)+e),F(this,Ii)===0&&(ye(this,Pt,!1),F(this,ht)&&la(F(this,ht),()=>{ye(this,ht,null)}),F(this,gi)&&(F(this,Ct).before(F(this,gi)),ye(this,gi,null)))};let Ni=null;function Bl(t){Ni=t}function qe(t,e){return e}function Ic(t,e,i){for(var a=[],n=e.length,r=0;r<n;r++)fr(e[r].e,a,!0);oo(a,()=>{var o=a.length===0&&i!==null;if(o){var s=i,c=s.parentNode;Nc(c),c.append(s),t.items.clear(),Gt(t,e[0].prev,e[n-1].next)}for(var d=0;d<n;d++){var u=e[d];o||(t.items.delete(u.k),Gt(t,u.prev,u.next)),rt(u.e,!o)}t.first===e[0]&&(t.first=e[0].prev)})}function Le(t,e,i,a,n,r=null){var o=t,s=new Map,c=null,d=(e&El)!==0,u=(e&Sl)!==0,v=(e&Tl)!==0;if(d){var p=t;o=p.appendChild(qt())}var f=null,y=dr(()=>{var T=i();return We(T)?T:T==null?[]:er(T)}),h,_=!0;function b(){jc(x,h,o,e,a),f!==null&&(h.length===0?(f.fragment?(o.before(f.fragment),f.fragment=null):hr(f.effect),E.first=f.effect):la(f.effect,()=>{f=null}))}var E=di(()=>{h=l(y);for(var T=h.length,L=new Set,C=ke,j=null,W=Ql(),z=0;z<T;z+=1){var I=h[z],k=a(I,z),A=_?null:s.get(k);A?(u&&ci(A.v,I),v?ci(A.i,z):A.i=z,W&&C.skipped_effects.delete(A.e)):(A=zc(_?o:null,j,I,k,z,n,e,i),_&&(A.o=!0,j===null?c=A:j.next=A,j=A),s.set(k,A)),L.add(k)}if(T===0&&r&&!f)if(_)f={fragment:null,effect:vt(()=>r(o))};else{var N=document.createDocumentFragment(),R=qt();N.append(R),f={fragment:N,effect:vt(()=>r(R))}}if(!_)if(W){for(const[U,Y]of s)L.has(U)||C.skipped_effects.add(Y.e);C.oncommit(b),C.ondiscard(()=>{})}else b();l(y)}),x={effect:E,flags:e,items:s,first:c};_=!1}function jc(t,e,i,a,n){var I,k,A,N;var r=(a&rc)!==0,o=e.length,s=t.items,c=t.first,d,u=null,v,p=[],f=[],y,h,_,b;if(r)for(b=0;b<o;b+=1)y=e[b],h=n(y,b),_=s.get(h),_.o&&((I=_.a)==null||I.measure(),(v??(v=new Set)).add(_));for(b=0;b<o;b+=1){if(y=e[b],h=n(y,b),_=s.get(h),t.first??(t.first=_),!_.o){_.o=!0;var E=u?u.next:c;Gt(t,u,_),Gt(t,_,E),cr(_,E,i),u=_,p=[],f=[],c=u.next;continue}if(_.e.f&gt&&(hr(_.e),r&&((k=_.a)==null||k.unfix(),(v??(v=new Set)).delete(_))),_!==c){if(d!==void 0&&d.has(_)){if(p.length<f.length){var x=f[0],T;u=x.prev;var L=p[0],C=p[p.length-1];for(T=0;T<p.length;T+=1)cr(p[T],x,i);for(T=0;T<f.length;T+=1)d.delete(f[T]);Gt(t,L.prev,C.next),Gt(t,u,L),Gt(t,C,x),c=x,u=C,b-=1,p=[],f=[]}else d.delete(_),cr(_,c,i),Gt(t,_.prev,_.next),Gt(t,_,u===null?t.first:u.next),Gt(t,u,_),u=_;continue}for(p=[],f=[];c!==null&&c.k!==h;)c.e.f&gt||(d??(d=new Set)).add(c),f.push(c),c=c.next;if(c===null)continue;_=c}p.push(_),u=_,c=_.next}if(c!==null||d!==void 0){for(var j=d===void 0?[]:er(d);c!==null;)c.e.f&gt||j.push(c),c=c.next;var W=j.length;if(W>0){var z=a&El&&o===0?i:null;if(r){for(b=0;b<W;b+=1)(A=j[b].a)==null||A.measure();for(b=0;b<W;b+=1)(N=j[b].a)==null||N.fix()}Ic(t,j,z)}}r&&si(()=>{var R;if(v!==void 0)for(_ of v)(R=_.a)==null||R.apply()})}function zc(t,e,i,a,n,r,o,s){var c=Ni,d=(o&Sl)!==0,u=(o&lc)===0,v=d?u?pr(i,!1,!1):Kt(i):i,p=o&Tl?Kt(n):n,f={i:p,v,k:a,a:null,e:null,o:!1,prev:e,next:null};Ni=f;try{if(t===null){var y=document.createDocumentFragment();y.append(t=qt())}return f.e=vt(()=>r(t,v,p,s)),e!==null&&(e.next=f),f}finally{Ni=c}}function cr(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==null&&r!==a;){var o=Ma(r);n.before(r),r=o}}function Gt(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 Fl(t,e,i,a){const n=Mi()?La:dr;if(i.length===0&&t.length===0){a(e.map(n));return}var r=ke,o=je,s=Hl();function c(){Promise.all(i.map(d=>Ac(d))).then(d=>{s();try{a([...e.map(n),...d])}catch(u){o.f&oi||na(u,o)}r==null||r.deactivate(),Aa()}).catch(d=>{na(d,o)})}t.length>0?Promise.all(t).then(()=>{s();try{return c()}finally{r==null||r.deactivate(),Aa()}}):c()}function Hl(){var t=je,e=Ce,i=Me,a=ke;return function(r=!0){Jt(t),pt(e),aa(i),r&&(a==null||a.activate())}}function Aa(){Jt(null),pt(null),aa(null)}function La(t){var e=nt|ut,i=Ce!==null&&Ce.f&nt?Ce:null;return je!==null&&(je.f|=ea),{ctx:Me,deps:null,effects:null,equals:Pl,f:e,fn:t,reactions:null,rv:0,v:$e,wv:0,parent:i??je,ac:null}}function Ac(t,e){let i=je;i===null&&Zs();var a=i.b,n=void 0,r=Kt($e),o=!Ce,s=new Map;return Wc(()=>{var p;var c=bl();n=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{d===ke&&d.committed&&d.deactivate(),Aa()})}catch(f){c.reject(f),Aa()}var d=ke;if(o){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(p=s.get(d))==null||p.reject(ta),s.delete(d),s.set(d,c)}const v=(f,y=void 0)=>{if(d.activate(),y)y!==ta&&(r.f|=bi,ci(r,y));else{r.f&bi&&(r.f^=bi),ci(r,f);for(const[h,_]of s){if(s.delete(h),h===d)break;_.reject(ta)}}o&&(a.update_pending_count(-1),d.decrement(u))};c.promise.then(v,f=>v(null,f||"unknown"))}),Da(()=>{for(const c of s.values())c.reject(ta)}),new Promise(c=>{function d(u){function v(){u===n?c(r):d(n)}u.then(v,v)}d(n)})}function H(t){const e=La(t);return vo(e),e}function dr(t){const e=La(t);return e.equals=Il,e}function Vl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)rt(e[i])}}function Lc(t){for(var e=t.parent;e!==null;){if(!(e.f&nt))return e.f&oi?null:e;e=e.parent}return null}function ur(t){var e,i=je;Jt(Lc(t));try{t.f&=~ja,Vl(t),e=mo(t)}finally{Jt(i)}return e}function Wl(t){var e=ur(t);if(t.equals(e)||(ke!=null&&ke.is_fork||(t.v=e),t.wv=ho()),!Oi)if(Ke!==null)(qa()||ke!=null&&ke.is_fork)&&Ke.set(t,e);else{var i=t.f&Lt?lt:li;ot(t,i)}}let vr=new Set;const _i=new Map;let Ul=!1;function Kt(t,e){var i={f:0,v:t,reactions:null,equals:Pl,rv:0,wv:0};return i}function G(t,e){const i=Kt(t);return vo(i),i}function pr(t,e=!1,i=!0){var n;const a=Kt(t);return e||(a.equals=Il),ia&&i&&Me!==null&&Me.l!==null&&((n=Me.l).s??(n.s=[])).push(a),a}function M(t,e,i=!1){Ce!==null&&(!Zt||Ce.f&wl)&&Mi()&&Ce.f&(nt|Ht|lr|wl)&&!(ct!=null&&ct.includes(t))&&ac();let a=i?Be(e):e;return ci(t,a)}function ci(t,e){if(!t.equals(e)){var i=t.v;Oi?_i.set(t,e):_i.set(t,i),t.v=e;var a=Ut.ensure();a.capture(t,i),t.f&nt&&(t.f&ut&&ur(t),ot(t,t.f&Lt?lt:li)),t.wv=ho(),Gl(t,ut),Mi()&&je!==null&&je.f&lt&&!(je.f&(ri|Li))&&(wt===null?Gc([t]):wt.push(t)),!a.is_fork&&vr.size>0&&!Ul&&Mc()}return e}function Mc(){Ul=!1;var t=ki;gn(!0);const e=Array.from(vr);try{for(const i of e)i.f&lt&&ot(i,li),Ra(i)&&Oa(i)}finally{gn(t)}vr.clear()}function wi(t){M(t,t.v+1)}function Gl(t,e){var i=t.reactions;if(i!==null)for(var a=Mi(),n=i.length,r=0;r<n;r++){var o=i[r],s=o.f;if(!(!a&&o===je)){var c=(s&ut)===0;if(c&&ot(o,e),s&nt){var d=o;Ke==null||Ke.delete(d),s&ja||(s&Lt&&(o.f|=ja),Gl(d,li))}else c&&(s&Ht&&Mt!==null&&Mt.add(o),Di(o))}}}function Be(t){if(typeof t!="object"||t===null||Wt in t)return t;const e=tr(t);if(e!==Ws&&e!==Us)return t;var i=new Map,a=We(t),n=G(0),r=ui,o=s=>{if(ui===r)return s();var c=Ce,d=ui;pt(null),fo(r);var u=s();return pt(c),fo(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)&&tc();var u=i.get(c);return u===void 0?u=o(()=>{var v=G(d.value);return i.set(c,v),v}):M(u,d.value,!0),!0},deleteProperty(s,c){var d=i.get(c);if(d===void 0){if(c in s){const u=o(()=>G($e));i.set(c,u),wi(n)}}else M(d,$e),wi(n);return!0},get(s,c,d){var f;if(c===Wt)return t;var u=i.get(c),v=c in s;if(u===void 0&&(!v||(f=yi(s,c))!=null&&f.writable)&&(u=o(()=>{var y=Be(v?s[c]:$e),h=G(y);return h}),i.set(c,u)),u!==void 0){var p=l(u);return p===$e?void 0:p}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=l(u))}else if(d===void 0){var v=i.get(c),p=v==null?void 0:v.v;if(v!==void 0&&p!==$e)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(s,c){var p;if(c===Wt)return!0;var d=i.get(c),u=d!==void 0&&d.v!==$e||Reflect.has(s,c);if(d!==void 0||je!==null&&(!u||(p=yi(s,c))!=null&&p.writable)){d===void 0&&(d=o(()=>{var f=u?Be(s[c]):$e,y=G(f);return y}),i.set(c,d));var v=l(d);if(v===$e)return!1}return u},set(s,c,d,u){var x;var v=i.get(c),p=c in s;if(a&&c==="length")for(var f=d;f<v.v;f+=1){var y=i.get(f+"");y!==void 0?M(y,$e):f in s&&(y=o(()=>G($e)),i.set(f+"",y))}if(v===void 0)(!p||(x=yi(s,c))!=null&&x.writable)&&(v=o(()=>G(void 0)),M(v,Be(d)),i.set(c,v));else{p=v.v!==$e;var h=o(()=>Be(d));M(v,h)}var _=Reflect.getOwnPropertyDescriptor(s,c);if(_!=null&&_.set&&_.set.call(u,d),!p){if(a&&typeof c=="string"){var b=i.get("length"),E=Number(c);Number.isInteger(E)&&E>=b.v&&M(b,E+1)}wi(n)}return!0},ownKeys(s){l(n);var c=Reflect.ownKeys(s).filter(v=>{var p=i.get(v);return p===void 0||p.v!==$e});for(var[d,u]of i)u.v!==$e&&!(d in s)&&c.push(d);return c},setPrototypeOf(){ic()}})}function Kl(t){try{if(t!==null&&typeof t=="object"&&Wt in t)return t[Wt]}catch{}return t}function qc(t,e){return Object.is(Kl(t),Kl(e))}var Ee,Yl,Zl,Jl;function Dc(){if(Ee===void 0){Ee=window,Yl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Zl=yi(e,"firstChild").get,Jl=yi(e,"nextSibling").get,yl(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),yl(i)&&(i.__t=void 0)}}function qt(t=""){return document.createTextNode(t)}function Yt(t){return Zl.call(t)}function Ma(t){return Jl.call(t)}function w(t,e){return Yt(t)}function J(t,e=!1){{var i=Yt(t);return i instanceof Comment&&i.data===""?Ma(i):i}}function S(t,e=1,i=!1){let a=t;for(;e--;)a=Ma(a);return a}function Nc(t){t.textContent=""}function Ql(){return!1}function Rc(t,e){if(e){const i=document.body;t.autofocus=!0,si(()=>{document.activeElement===i&&t.focus()})}}let Xl=!1;function Oc(){Xl||(Xl=!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 Bc(t,e,i,a=!0){a&&i();for(var n of e)t.addEventListener(n,i);Da(()=>{for(var r of e)t.removeEventListener(r,i)})}function Ri(t){var e=Ce,i=je;pt(null),Jt(null);try{return t()}finally{pt(e),Jt(i)}}function $l(t,e,i,a=i){t.addEventListener(e,()=>Ri(i));const n=t.__on_r;n?t.__on_r=()=>{n(),a(!0)}:t.__on_r=()=>a(!0),Oc()}function eo(t){je===null&&(Ce===null&&Xs(),Qs()),Oi&&Js()}function Fc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Dt(t,e,i){var a=je;a!==null&&a.f&gt&&(t|=gt);var n={ctx:Me,deps:null,nodes_start:null,nodes_end:null,f:t|ut|Lt,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{Oa(n),n.f|=dn}catch(s){throw rt(n),s}else e!==null&&Di(n);var r=n;if(i&&r.deps===null&&r.teardown===null&&r.nodes_start===null&&r.first===r.last&&!(r.f&ea)&&(r=r.first,t&Ht&&t&Vt&&r!==null&&(r.f|=Vt)),r!==null&&(r.parent=a,a!==null&&Fc(r,a),Ce!==null&&Ce.f&nt&&!(t&Li))){var o=Ce;(o.effects??(o.effects=[])).push(r)}return n}function qa(){return Ce!==null&&!Zt}function Da(t){const e=Dt(sn,null,!1);return ot(e,lt),e.teardown=t,e}function Ue(t){eo();var e=je.f,i=!Ce&&(e&ri)!==0&&(e&dn)===0;if(i){var a=Me;(a.e??(a.e=[])).push(t)}else return to(t)}function to(t){return Dt(ar|xl,t,!1)}function Hc(t){return eo(),Dt(sn|xl,t,!0)}function Vc(t){Ut.ensure();const e=Dt(Li|ea,t,!0);return(i={})=>new Promise(a=>{i.outro?la(e,()=>{rt(e),a(void 0)}):(rt(e),a(void 0))})}function xi(t){return Dt(ar,t,!1)}function Wc(t){return Dt(lr|ea,t,!0)}function hn(t,e=0){return Dt(sn|e,t,!0)}function V(t,e=[],i=[],a=[]){Fl(a,e,i,n=>{Dt(sn,()=>t(...n.map(l)),!0)})}function di(t,e=0){var i=Dt(Ht|e,t,!0);return i}function io(t,e=0){var i=Dt(_l|e,t,!0);return i}function vt(t){return Dt(ri|ea,t,!0)}function ao(t){var e=t.teardown;if(e!==null){const i=Oi,a=Ce;uo(!0),pt(null);try{e.call(null)}finally{uo(i),pt(a)}}}function no(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Ri(()=>{n.abort(ta)});var a=i.next;i.f&Li?i.parent=null:rt(i,e),i=a}}function Uc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&ri||rt(e),e=i}}function rt(t,e=!0){var i=!1;(e||t.f&nr)&&t.nodes_start!==null&&t.nodes_end!==null&&(ro(t.nodes_start,t.nodes_end),i=!0),no(t,e&&!i),mn(t,0),ot(t,oi);var a=t.transitions;if(a!==null)for(const r of a)r.stop();ao(t);var n=t.parent;n!==null&&n.first!==null&&lo(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function ro(t,e){for(;t!==null;){var i=t===e?null:Ma(t);t.remove(),t=i}}function lo(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 la(t,e,i=!0){var a=[];fr(t,a,!0),oo(a,()=>{i&&rt(t),e&&e()})}function oo(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var n of t)n.out(a)}else e()}function fr(t,e,i){if(!(t.f&gt)){if(t.f^=gt,t.transitions!==null)for(const o of t.transitions)(o.is_global||i)&&e.push(o);for(var a=t.first;a!==null;){var n=a.next,r=(a.f&Vt)!==0||(a.f&ri)!==0&&(t.f&Ht)!==0;fr(a,e,r?i:!1),a=n}}}function hr(t){so(t,!0)}function so(t,e){if(t.f&gt){t.f^=gt,t.f&lt||(ot(t,ut),Di(t));for(var i=t.first;i!==null;){var a=i.next,n=(i.f&Vt)!==0||(i.f&ri)!==0;so(i,n?e:!1),i=a}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}function co(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var n=i===a?null:Ma(i);e.append(i),i=n}}let ki=!1;function gn(t){ki=t}let Oi=!1;function uo(t){Oi=t}let Ce=null,Zt=!1;function pt(t){Ce=t}let je=null;function Jt(t){je=t}let ct=null;function vo(t){Ce!==null&&(ct===null?ct=[t]:ct.push(t))}let dt=null,mt=0,wt=null;function Gc(t){wt=t}let po=1,Na=0,ui=Na;function fo(t){ui=t}function ho(){return++po}function Ra(t){var e=t.f;if(e&ut)return!0;if(e&nt&&(t.f&=-32769),e&li){var i=t.deps;if(i!==null)for(var a=i.length,n=0;n<a;n++){var r=i[n];if(Ra(r)&&Wl(r),r.wv>t.wv)return!0}e&Lt&&Ke===null&&ot(t,lt)}return!1}function go(t,e,i=!0){var a=t.reactions;if(a!==null&&!(ct!=null&&ct.includes(t)))for(var n=0;n<a.length;n++){var r=a[n];r.f&nt?go(r,e,!1):e===r&&(i?ot(r,ut):r.f&lt&&ot(r,li),Di(r))}}function mo(t){var y;var e=dt,i=mt,a=wt,n=Ce,r=ct,o=Me,s=Zt,c=ui,d=t.f;dt=null,mt=0,wt=null,Ce=d&(ri|Li)?null:t,ct=null,aa(t.ctx),Zt=!1,ui=++Na,t.ac!==null&&(Ri(()=>{t.ac.abort(ta)}),t.ac=null);try{t.f|=rr;var u=t.fn,v=u(),p=t.deps;if(dt!==null){var f;if(mn(t,mt),p!==null&&mt>0)for(p.length=mt+dt.length,f=0;f<dt.length;f++)p[mt+f]=dt[f];else t.deps=p=dt;if(ki&&qa()&&t.f&Lt)for(f=mt;f<p.length;f++)((y=p[f]).reactions??(y.reactions=[])).push(t)}else p!==null&&mt<p.length&&(mn(t,mt),p.length=mt);if(Mi()&&wt!==null&&!Zt&&p!==null&&!(t.f&(nt|li|ut)))for(f=0;f<wt.length;f++)go(wt[f],t);return n!==null&&n!==t&&(Na++,wt!==null&&(a===null?a=wt:a.push(...wt))),t.f&bi&&(t.f^=bi),v}catch(h){return Al(h)}finally{t.f^=rr,dt=e,mt=i,wt=a,Ce=n,ct=r,aa(o),Zt=s,ui=c}}function Kc(t,e){let i=e.reactions;if(i!==null){var a=ln.call(i,t);if(a!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[a]=i[n],i.pop())}}i===null&&e.f&nt&&(dt===null||!dt.includes(e))&&(ot(e,li),e.f&Lt&&(e.f^=Lt,e.f&=-32769),Vl(e),mn(e,0))}function mn(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)Kc(t,i[a])}function Oa(t){var e=t.f;if(!(e&oi)){ot(t,lt);var i=je,a=ki;je=t,ki=!0;try{e&(Ht|_l)?Uc(t):no(t),ao(t);var n=mo(t);t.teardown=typeof n=="function"?n:null,t.wv=po;var r;Ne&&xc&&t.f&ut&&t.deps}finally{ki=a,je=i}}}async function Ba(){await Promise.resolve(),Ll()}function l(t){var e=t.f,i=(e&nt)!==0;if(Ce!==null&&!Zt){var a=je!==null&&(je.f&oi)!==0;if(!a&&!(ct!=null&&ct.includes(t))){var n=Ce.deps;if(Ce.f&rr)t.rv<Na&&(t.rv=Na,dt===null&&n!==null&&n[mt]===t?mt++:dt===null?dt=[t]:dt.includes(t)||dt.push(t));else{(Ce.deps??(Ce.deps=[])).push(t);var r=t.reactions;r===null?t.reactions=[Ce]:r.includes(Ce)||r.push(Ce)}}}if(Oi){if(_i.has(t))return _i.get(t);if(i){var o=t,s=o.v;return(!(o.f&lt)&&o.reactions!==null||bo(o))&&(s=ur(o)),_i.set(o,s),s}}else i&&(!(Ke!=null&&Ke.has(t))||ke!=null&&ke.is_fork&&!qa())&&(o=t,Ra(o)&&Wl(o),ki&&qa()&&!(o.f&Lt)&&yo(o));if(Ke!=null&&Ke.has(t))return Ke.get(t);if(t.f&bi)throw t.v;return t.v}function yo(t){if(t.deps!==null){t.f^=Lt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&nt&&!(e.f&Lt)&&yo(e)}}function bo(t){if(t.v===$e)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(_i.has(e)||e.f&nt&&bo(e))return!0;return!1}function xt(t){var e=Zt;try{return Zt=!0,t()}finally{Zt=e}}const Yc=-7169;function ot(t,e){t.f=t.f&Yc|e}function _o(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Wt in t)gr(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&Wt in i&&gr(i)}}}function gr(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{gr(t[a],e)}catch{}const i=tr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=ml(i);for(let n in a){const r=a[n].get;if(r)try{r.call(t)}catch{}}}}}function Zc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Jc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Qc(t){return Jc.includes(t)}const Xc={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 $c(t){return t=t.toLowerCase(),Xc[t]??t}const ed=["touchstart","touchmove"];function td(t){return ed.includes(t)}const wo=new Set,mr=new Set;function yr(t,e,i,a={}){function n(r){if(a.capture||Fa.call(e,r),!r.cancelBubble)return Ri(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?si(()=>{e.addEventListener(t,n,a)}):e.addEventListener(t,n,a),n}function id(t,e,i,a={}){var n=yr(e,t,i,a);return()=>{t.removeEventListener(e,n,a)}}function ge(t,e,i,a,n){var r={capture:a,passive:n},o=yr(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Da(()=>{e.removeEventListener(t,o,r)})}function we(t){for(var e=0;e<t.length;e++)wo.add(t[e]);for(var i of mr)i(t)}let xo=null;function Fa(t){var _;var e=this,i=e.ownerDocument,a=t.type,n=((_=t.composedPath)==null?void 0:_.call(t))||[],r=n[0]||t.target;xo=t;var o=0,s=xo===t&&t.__root;if(s){var c=n.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=n.indexOf(e);if(d===-1)return;c<=d&&(o=c)}if(r=n[o]||t.target,r!==e){Vs(t,"currentTarget",{configurable:!0,get(){return r||i}});var u=Ce,v=je;pt(null),Jt(null);try{for(var p,f=[];r!==null;){var y=r.assignedSlot||r.parentNode||r.host||null;try{var h=r["__"+a];h!=null&&(!r.disabled||t.target===r)&&h.call(r,t)}catch(b){p?f.push(b):p=b}if(t.cancelBubble||y===e||y===null)break;r=y}if(p){for(let b of f)queueMicrotask(()=>{throw b});throw p}}finally{t.__root=e,delete t.currentTarget,pt(u),Jt(v)}}}function br(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Bi(t,e){var i=je;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function P(t,e){var i=(e&hc)!==0,a=(e&gc)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=br(r?t:"<!>"+t),i||(n=Yt(n)));var o=a||Yl?document.importNode(n,!0):n.cloneNode(!0);if(i){var s=Yt(o),c=o.lastChild;Bi(s,c)}else Bi(o,o);return o}}function ad(t,e,i="svg"){var a=!t.startsWith("<!>"),n=`<${i}>${a?t:"<!>"+t}</${i}>`,r;return()=>{if(!r){var o=br(n),s=Yt(o);r=Yt(s)}var c=r.cloneNode(!0);return Bi(c,c),c}}function Re(t,e){return ad(t,e,"svg")}function Ye(t=""){{var e=qt(t+"");return Bi(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),i=qt();return t.append(e,i),Bi(e,i),t}function m(t,e){t!==null&&t.before(e)}let yn=!0;function bn(t){yn=t}function Z(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 kt(t,e){return nd(t,e)}const oa=new Map;function nd(t,{target:e,anchor:i,props:a={},events:n,context:r,intro:o=!0}){Dc();var s=new Set,c=v=>{for(var p=0;p<v.length;p++){var f=v[p];if(!s.has(f)){s.add(f);var y=td(f);e.addEventListener(f,Fa,{passive:y});var h=oa.get(f);h===void 0?(document.addEventListener(f,Fa,{passive:y}),oa.set(f,1)):oa.set(f,h+1)}}};c(er(wo)),mr.add(c);var d=void 0,u=Vc(()=>{var v=i??e.appendChild(qt());return Ol(v,{pending:()=>{}},p=>{if(r){re({});var f=Me;f.c=r}n&&(a.$$events=n),yn=o,d=t(p,a)||{},yn=!0,r&&le()}),()=>{var y;for(var p of s){e.removeEventListener(p,Fa);var f=oa.get(p);--f===0?(document.removeEventListener(p,Fa),oa.delete(p)):oa.set(p,f)}mr.delete(c),v!==i&&((y=v.parentNode)==null||y.removeChild(v))}});return _r.set(d,u),d}let _r=new WeakMap;function Si(t,e){const i=_r.get(t);return i?(_r.delete(t),i(e)):Promise.resolve()}class sa{constructor(e,i=!0){Ft(this,"anchor");_e(this,Ot,new Map);_e(this,ai,new Map);_e(this,yt,new Map);_e(this,Ji,new Set);_e(this,en,!0);_e(this,tn,()=>{var e=ke;if(F(this,Ot).has(e)){var i=F(this,Ot).get(e),a=F(this,ai).get(i);if(a)hr(a),F(this,Ji).delete(i);else{var n=F(this,yt).get(i);n&&(F(this,ai).set(i,n.effect),F(this,yt).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),a=n.effect)}for(const[r,o]of F(this,Ot)){if(F(this,Ot).delete(r),r===e)break;const s=F(this,yt).get(o);s&&(rt(s.effect),F(this,yt).delete(o))}for(const[r,o]of F(this,ai)){if(r===i||F(this,Ji).has(r))continue;const s=()=>{if(Array.from(F(this,Ot).values()).includes(r)){var d=document.createDocumentFragment();co(o,d),d.append(qt()),F(this,yt).set(r,{effect:o,fragment:d})}else rt(o);F(this,Ji).delete(r),F(this,ai).delete(r)};F(this,en)||!a?(F(this,Ji).add(r),la(o,s,!1)):s()}}});_e(this,Gn,e=>{F(this,Ot).delete(e);const i=Array.from(F(this,Ot).values());for(const[a,n]of F(this,yt))i.includes(a)||(rt(n.effect),F(this,yt).delete(a))});this.anchor=e,ye(this,en,i)}ensure(e,i){var a=ke,n=Ql();if(i&&!F(this,ai).has(e)&&!F(this,yt).has(e))if(n){var r=document.createDocumentFragment(),o=qt();r.append(o),F(this,yt).set(e,{effect:vt(()=>i(o)),fragment:r})}else F(this,ai).set(e,vt(()=>i(this.anchor)));if(F(this,Ot).set(a,e),n){for(const[s,c]of F(this,ai))s===e?a.skipped_effects.delete(c):a.skipped_effects.add(c);for(const[s,c]of F(this,yt))s===e?a.skipped_effects.delete(c.effect):a.skipped_effects.add(c.effect);a.oncommit(F(this,tn)),a.ondiscard(F(this,Gn))}else F(this,tn).call(this)}}Ot=new WeakMap,ai=new WeakMap,yt=new WeakMap,Ji=new WeakMap,en=new WeakMap,tn=new WeakMap,Gn=new WeakMap;const rd=0,wr=1;function Ha(t,e,i,a,n){var r=Mi(),o=$e,s=r?Kt(o):pr(o,!1,!1),c=r?Kt(o):pr(o,!1,!1),d=new sa(t);di(()=>{var u=e(),v=!1;if(Gs(u)){var p=Hl(),f=!1;const y=h=>{if(!v){f=!0,p(!1),Ut.ensure();try{h()}finally{Aa(),ra||Ll()}}};u.then(h=>{y(()=>{ci(s,h),d.ensure(wr,a&&(_=>a(_,s)))})},h=>{y(()=>{if(ci(c,h),d.ensure(wr,n&&(_=>n(_,c))),!n)throw c.v})}),si(()=>{f||y(()=>{d.ensure(rd,i)})})}else ci(s,u),d.ensure(wr,a&&(y=>a(y,s)));return()=>{v=!0}})}function B(t,e,i=!1){var a=new sa(t),n=i?Vt:0;function r(o,s){a.ensure(o,s)}di(()=>{var o=!1;e((s,c=!0)=>{o=!0,r(c,s)}),o||r(!1,null)},n)}function ca(t,e,i){var a=new sa(t),n=!Mi();di(()=>{var r=e();n&&r!==null&&typeof r=="object"&&(r={}),a.ensure(r,i)})}function ld(t,e,i=!1,a=!1,n=!1){var r=t,o="";V(()=>{var s=je;if(o!==(o=e()??"")&&(s.nodes_start!==null&&(ro(s.nodes_start,s.nodes_end),s.nodes_start=s.nodes_end=null),o!=="")){var c=o+"";i?c=`<svg>${c}</svg>`:a&&(c=`<math>${c}</math>`);var d=br(c);if((i||a)&&(d=Yt(d)),Bi(Yt(d),d.lastChild),i||a)for(;Yt(d);)r.before(Yt(d));else r.before(d)}})}function Ve(t,e,...i){var a=new sa(t);di(()=>{const n=e()??null;a.ensure(n,n&&(r=>n(r,...i)))},Vt)}function xr(t,e,i){var a=new sa(t);di(()=>{var n=e()??null;a.ensure(n,n&&(r=>i(r,n)))},Vt)}function ko(t,e,i,a,n,r){var o=null,s=t,c=Ni,d=new sa(s,!1);di(()=>{const u=e()||null;var v=u==="svg"?yc:null;if(u===null){d.ensure(null,null),bn(!0);return}return d.ensure(u,p=>{var f=Ni;if(Bl(c),u){if(o=v?document.createElementNS(v,u):document.createElement(u),Bi(o,o),a){var y=o.appendChild(qt());a(o,y)}je.nodes_end=o,p.before(o)}Bl(f)}),bn(!0),()=>{u&&bn(!1)}},Vt),Da(()=>{bn(!0)})}function od(t,e){var i;i=document.head.appendChild(qt());try{di(()=>e(i),nr)}finally{}}function ft(t,e,i){xi(()=>{var a=xt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var n=!1,r={};hn(()=>{var o=i();_o(o),n&&Cl(r,o)&&(r=o,a.update(o))}),n=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function _n(t,e){var i=void 0,a;io(()=>{i!==(i=e())&&(a&&(rt(a),a=null),i&&(a=vt(()=>{xi(()=>i(t))})))})}function So(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=So(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function sd(){for(var t,e,i=0,a="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=So(t))&&(a&&(a+=" "),a+=e);return a}function cd(t){return typeof t=="object"?sd(t):t??""}const To=[...`
3
3
  \r\f \v\uFEFF`];function dd(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var n in i)if(i[n])a=a?a+" "+n:n;else if(a.length)for(var r=n.length,o=0;(o=a.indexOf(n,o))>=0;){var s=o+r;(o===0||To.includes(a[o-1]))&&(s===a.length||To.includes(a[s]))?a=(o===0?"":a.substring(0,o))+a.substring(s+1):o=s}}return a===""?null:a}function Eo(t,e=!1){var i=e?" !important;":";",a="";for(var n in t){var r=t[n];r!=null&&r!==""&&(a+=" "+n+": "+r+i)}return a}function kr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function ud(t,e){if(e){var i="",a,n;if(Array.isArray(e)?(a=e[0],n=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,o=0,s=!1,c=[];a&&c.push(...Object.keys(a).map(kr)),n&&c.push(...Object.keys(n).map(kr));var d=0,u=-1;const h=t.length;for(var v=0;v<h;v++){var p=t[v];if(s?p==="/"&&t[v-1]==="*"&&(s=!1):r?r===p&&(r=!1):p==="/"&&t[v+1]==="*"?s=!0:p==='"'||p==="'"?r=p:p==="("?o++:p===")"&&o--,!s&&r===!1&&o===0){if(p===":"&&u===-1)u=v;else if(p===";"||v===h-1){if(u!==-1){var f=kr(t.substring(d,u).trim());if(!c.includes(f)){p!==";"&&v++;var y=t.substring(d,v).trim();i+=" "+y+";"}}d=v+1,u=-1}}}}return a&&(i+=Eo(a)),n&&(i+=Eo(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function xe(t,e,i,a,n,r){var o=t.__className;if(o!==i||o===void 0){var s=dd(i,a,r);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t.__className=i}else if(r&&n!==r)for(var c in r){var d=!!r[c];(n==null||d!==!!n[c])&&t.classList.toggle(c,d)}return r}function Sr(t,e={},i,a){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,a))}}function Ge(t,e,i,a){var n=t.__style;if(n!==e){var r=ud(e,a);r==null?t.removeAttribute("style"):t.style.cssText=r,t.__style=e}else a&&(Array.isArray(a)?(Sr(t,i==null?void 0:i[0],a[0]),Sr(t,i==null?void 0:i[1],a[1],"important")):Sr(t,i,a));return a}function wn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!We(e))return _c();for(var a of t.options)a.selected=e.includes(Va(a));return}for(a of t.options){var n=Va(a);if(qc(n,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Po(t){var e=new MutationObserver(()=>{wn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Da(()=>{e.disconnect()})}function vd(t,e,i=e){var a=new WeakSet,n=!0;$l(t,"change",r=>{var o=r?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),Va);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&Va(c)}i(s),ke!==null&&a.add(ke)}),xi(()=>{var r=e();if(t===document.activeElement){var o=za??ke;if(a.has(o))return}if(wn(t,r,n),n&&r===void 0){var s=t.querySelector(":checked");s!==null&&(r=Va(s),i(r))}t.__value=r,n=!1}),Po(t)}function Va(t){return"__value"in t?t.__value:t.value}const da=Symbol("class"),ua=Symbol("style"),Co=Symbol("is custom element"),Io=Symbol("is html");function pd(t,e){var i=Tr(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function jo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function se(t,e,i,a){var n=Tr(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ys]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Lo(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function fd(t,e,i,a,n=!1,r=!1){var o=Tr(t),s=o[Co],c=!o[Io],d=e||{},u=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=cd(i.class):(a||i[da])&&(i.class=null),i[ua]&&(i.style??(i.style=null));var p=Lo(t);for(const x in i){let T=i[x];if(u&&x==="value"&&T==null){t.value=t.__value="",d[x]=T;continue}if(x==="class"){var f=t.namespaceURI==="http://www.w3.org/1999/xhtml";xe(t,f,T,a,e==null?void 0:e[da],i[da]),d[x]=T,d[da]=i[da];continue}if(x==="style"){Ge(t,T,e==null?void 0:e[ua],i[ua]),d[x]=T,d[ua]=i[ua];continue}var y=d[x];if(!(T===y&&!(T===void 0&&t.hasAttribute(x)))){d[x]=T;var h=x[0]+x[1];if(h!=="$$")if(h==="on"){const L={},C="$$"+x;let j=x.slice(2);var _=Qc(j);if(Zc(j)&&(j=j.slice(0,-7),L.capture=!0),!_&&y){if(T!=null)continue;t.removeEventListener(j,d[C],L),d[C]=null}if(T!=null)if(_)t[`__${j}`]=T,we([j]);else{let W=function(z){d[x].call(this,z)};d[C]=yr(j,t,W,L)}else _&&(t[`__${j}`]=void 0)}else if(x==="style")se(t,x,T);else if(x==="autofocus")Rc(t,!!T);else if(!s&&(x==="__value"||x==="value"&&T!=null))t.value=t.__value=T;else if(x==="selected"&&u)jo(t,T);else{var b=x;c||(b=$c(b));var E=b==="defaultValue"||b==="defaultChecked";if(T==null&&!s&&!E)if(o[x]=null,b==="value"||b==="checked"){let L=t;const C=e===void 0;if(b==="value"){let j=L.defaultValue;L.removeAttribute(b),L.defaultValue=j,L.value=L.__value=C?j:null}else{let j=L.defaultChecked;L.removeAttribute(b),L.defaultChecked=j,L.checked=C?j:!1}}else t.removeAttribute(x);else E||p.includes(b)&&(s||typeof T!="string")?(t[b]=T,b in o&&(o[b]=$e)):typeof T!="function"&&se(t,b,T)}}}return d}function zo(t,e,i=[],a=[],n=[],r,o=!1,s=!1){Fl(n,i,a,c=>{var d=void 0,u={},v=t.nodeName==="SELECT",p=!1;if(io(()=>{var y=e(...c.map(l)),h=fd(t,d,y,r,o,s);p&&v&&"value"in y&&wn(t,y.value);for(let b of Object.getOwnPropertySymbols(u))y[b]||rt(u[b]);for(let b of Object.getOwnPropertySymbols(y)){var _=y[b];b.description===bc&&(!d||_!==d[b])&&(u[b]&&rt(u[b]),u[b]=vt(()=>_n(t,()=>_))),h[b]=_}d=h}),v){var f=t;xi(()=>{wn(f,d.value,!0),Po(f)})}p=!0})}function Tr(t){return t.__attributes??(t.__attributes={[Co]:t.nodeName.includes("-"),[Io]:t.namespaceURI===mc})}var Ao=new Map;function Lo(t){var e=t.getAttribute("is")||t.nodeName,i=Ao.get(e);if(i)return i;Ao.set(e,i=[]);for(var a,n=t,r=Element.prototype;r!==n;){a=ml(n);for(var o in a)a[o].set&&i.push(o);n=tr(n)}return i}const hd=()=>performance.now(),vi={tick:t=>requestAnimationFrame(t),now:()=>hd(),tasks:new Set};function Mo(){const t=vi.now();vi.tasks.forEach(e=>{e.c(t)||(vi.tasks.delete(e),e.f())}),vi.tasks.size!==0&&vi.tick(Mo)}function gd(t){let e;return vi.tasks.size===0&&vi.tick(Mo),{promise:new Promise(i=>{vi.tasks.add(e={c:t,f:i})}),abort(){vi.tasks.delete(e)}}}function xn(t,e){Ri(()=>{t.dispatchEvent(new CustomEvent(e))})}function md(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 qo(t){const e={},i=t.split(";");for(const a of i){const[n,r]=a.split(":");if(!n||r===void 0)break;const o=md(n.trim());e[o]=r.trim()}return e}const yd=t=>t;function bd(t,e,i){var a=Ni,n,r,o,s=null;a.a??(a.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),r=this.element.getBoundingClientRect(),n.left!==r.left||n.right!==r.right||n.top!==r.top||n.bottom!==r.bottom){const c=e()(this.element,{from:n,to:r},i==null?void 0:i());o=kn(this.element,c,void 0,1,()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:c,width:d,height:u}=getComputedStyle(t);if(c!=="absolute"&&c!=="fixed"){var v=t.style;s={position:v.position,width:v.width,height:v.height,transform:v.transform},v.position="absolute",v.width=d,v.height=u;var p=t.getBoundingClientRect();if(n.left!==p.left||n.top!==p.top){var f=`translate(${n.left-p.left}px, ${n.top-p.top}px)`;v.transform=v.transform?`${v.transform} ${f}`:f}}}},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 Ae(t,e,i,a){var n=(t&vc)!==0,r=(t&pc)!==0,o=n&&r,s=(t&fc)!==0,c=o?"both":n?"in":"out",d,u=e.inert,v=e.style.overflow,p,f;function y(){return Ri(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:c})))}var h={is_global:s,in(){var x;if(e.inert=u,!n){f==null||f.abort(),(x=f==null?void 0:f.reset)==null||x.call(f);return}r||p==null||p.abort(),xn(e,"introstart"),p=kn(e,y(),f,1,()=>{xn(e,"introend"),p==null||p.abort(),p=d=void 0,e.style.overflow=v})},out(x){if(!r){x==null||x(),d=void 0;return}e.inert=!0,xn(e,"outrostart"),f=kn(e,y(),p,0,()=>{xn(e,"outroend"),x==null||x()})},stop:()=>{p==null||p.abort(),f==null||f.abort()}},_=je;if((_.transitions??(_.transitions=[])).push(h),n&&yn){var b=s;if(!b){for(var E=_.parent;E&&E.f&Vt;)for(;(E=E.parent)&&!(E.f&Ht););b=!E||(E.f&dn)!==0}b&&xi(()=>{xt(()=>h.in())})}}function kn(t,e,i,a,n){var r=a===1;if(Xi(e)){var o,s=!1;return si(()=>{if(!s){var _=e({direction:r?"in":"out"});o=kn(t,_,i,a,n)}}),{abort:()=>{s=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return n(),{abort:bt,deactivate:bt,reset:bt,t:()=>a};const{delay:c=0,css:d,tick:u,easing:v=yd}=e;var p=[];if(r&&i===void 0&&(u&&u(0,1),d)){var f=qo(d(0,1));p.push(f,f)}var y=()=>1-a,h=t.animate(p,{duration:c,fill:"forwards"});return h.onfinish=()=>{h.cancel();var _=(i==null?void 0:i.t())??1-a;i==null||i.abort();var b=a-_,E=e.duration*Math.abs(b),x=[];if(E>0){var T=!1;if(d)for(var L=Math.ceil(E/16.666666666666668),C=0;C<=L;C+=1){var j=_+b*v(C/L),W=qo(d(j,1-j));x.push(W),T||(T=W.overflow==="hidden")}T&&(t.style.overflow="hidden"),y=()=>{var z=h.currentTime;return _+b*v(z/E)},u&&gd(()=>{if(h.playState!=="running")return!1;var z=y();return u(z,1-z),!0})}h=t.animate(x,{duration:E,fill:"forwards"}),h.onfinish=()=>{y=()=>a,u==null||u(a,1-a),n()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=bt)},deactivate:()=>{n=bt},reset:()=>{a===0&&(u==null||u(1,0))},t:()=>y()}}function va(t,e,i=e){var a=new WeakSet;$l(t,"input",async n=>{var r=n?t.defaultValue:t.value;if(r=Er(t)?Pr(r):r,i(r),ke!==null&&a.add(ke),await Ba(),r!==(r=e())){var o=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=r??"",s!==null){var d=t.value.length;o===s&&s===c&&d>c?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=o,t.selectionEnd=Math.min(s,d))}}}),xt(e)==null&&t.value&&(i(Er(t)?Pr(t.value):t.value),ke!==null&&a.add(ke)),hn(()=>{var n=e();if(t===document.activeElement){var r=za??ke;if(a.has(r))return}Er(t)&&n===Pr(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Er(t){var e=t.type;return e==="number"||e==="range"}function Pr(t){return t===""?null:+t}const Yn=class Yn{constructor(e){_e(this,Kn);_e(this,zi,new WeakMap);_e(this,Ta);_e(this,an);ye(this,an,e)}observe(e,i){var a=F(this,zi).get(e)||new Set;return a.add(i),F(this,zi).set(e,a),Oe(this,Kn,Bs).call(this).observe(e,F(this,an)),()=>{var n=F(this,zi).get(e);n.delete(i),n.size===0&&(F(this,zi).delete(e),F(this,Ta).unobserve(e))}}};zi=new WeakMap,Ta=new WeakMap,an=new WeakMap,Kn=new WeakSet,Bs=function(){return F(this,Ta)??ye(this,Ta,new ResizeObserver(e=>{for(var i of e){Yn.entries.set(i.target,i);for(var a of F(this,zi).get(i.target)||[])a(i)}}))},Ft(Yn,"entries",new WeakMap);let Cr=Yn;var _d=new Cr({box:"border-box"});function Nt(t,e,i){var a=_d.observe(t,()=>i(t[e]));xi(()=>(xt(()=>i(t[e])),a))}function Do(t,e){return t===e||(t==null?void 0:t[Wt])===e}function Ze(t={},e,i,a){return xi(()=>{var n,r;return hn(()=>{n=r,r=[],xt(()=>{t!==i(...r)&&(e(t,...r),n&&Do(i(...n),t)&&e(null,...n))})}),()=>{si(()=>{r&&Do(i(...r),t)&&e(null,...r)})}}),t}function Sn(t,e){Bc(window,["resize"],()=>Ri(()=>e(window[t])))}function Ir(t=!1){const e=Me,i=e.l.u;if(!i)return;let a=()=>_o(e.s);if(t){let n=0,r={};const o=La(()=>{let s=!1;const c=e.s;for(const d in c)c[d]!==r[d]&&(r[d]=c[d],s=!0);return s&&n++,n});a=()=>l(o)}i.b.length&&Hc(()=>{No(e,a),ir(i.b)}),Ue(()=>{const n=xt(()=>i.m.map(Ks));return()=>{for(const r of n)typeof r=="function"&&r()}}),i.a.length&&Ue(()=>{No(e,a),ir(i.a)})}function No(t,e){if(t.l.s)for(const i of t.l.s)l(i);e()}let Tn=!1;function wd(t){var e=Tn;try{return Tn=!1,[t(),Tn]}finally{Tn=e}}const xd={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 Ro(t,e,i){return new Proxy({props:t,exclude:e},xd)}const kd={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Xi(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 n=t.props[a];Xi(n)&&(n=n());const r=yi(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Xi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const n=yi(a,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Wt||e===kl)return!1;for(let i of t.props)if(Xi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Xi(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 En(...t){return new Proxy({props:t},kd)}function D(t,e,i,a){var x;var n=!ia||(i&sc)!==0,r=(i&dc)!==0,o=(i&uc)!==0,s=a,c=!0,d=()=>(c&&(c=!1,s=o?xt(a):a),s),u;if(r){var v=Wt in t||kl in t;u=((x=yi(t,e))==null?void 0:x.set)??(v&&e in t?T=>t[e]=T:void 0)}var p,f=!1;r?[p,f]=wd(()=>t[e]):p=t[e],p===void 0&&a!==void 0&&(p=d(),u&&(n&&ec(),u(p)));var y;if(n?y=()=>{var T=t[e];return T===void 0?d():(c=!0,T)}:y=()=>{var T=t[e];return T!==void 0&&(s=void 0),T===void 0?s:T},n&&!(i&cc))return y;if(u){var h=t.$$legacy;return function(T,L){return arguments.length>0?((!n||!L||h||f)&&u(L?y():T),T):y()}}var _=!1,b=(i&oc?La:dr)(()=>(_=!1,y()));r&&l(b);var E=je;return function(T,L){if(arguments.length>0){const C=L?l(b):n&&r?Be(T):T;return M(b,C),_=!0,s!==void 0&&(s=C),T}return Oi&&_||E.f&oi?b.v:l(b)}}function Je(t){Me===null&&or(),ia&&Me.l!==null?Sd(Me).m.push(t):Ue(()=>{const e=xt(t);if(typeof e=="function")return e})}function jr(t){Me===null&&or(),Je(()=>()=>xt(t))}function Sd(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Td="5";typeof window<"u"&&((Ds=window.__svelte??(window.__svelte={})).v??(Ds.v=new Set)).add(Td);function pi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Oo="https://www.playpilot.com",Ed="https://partner-api.playpilot.tech/1.0",Pd="https://img-external.playpilot.tech",zr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Ti=600,Ar={};async function Qt(t,{headers:e={},method:i="GET",body:a=null}={}){const n=!Pn()&&i==="GET";if(n&&t in Ar)return Ar[t];const r=i==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(Ed+t,{method:i,headers:new Headers({...r,...e}),body:a?JSON.stringify(a):null});if(!(o!=null&&o.ok))throw o;const s=await o.text();let c=s;try{s&&(c=JSON.parse(s))}catch{}return n&&(Ar[t]=c),c}const Lr="EncryptedToken",Bo="articleReplacementEditToken",Fo="playpilot-editorial-mode";async function Ho({href:t=window.location.href,throwError:e=!1}={}){try{const i=pi();if(!i)throw new Error("No token was provided");const a=Mr(t);if(!a)throw new Error("Could not be authenticated");return await Qt(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),Cd(a),!0}catch(i){if(console.error(i),e)throw i}finally{zd()}return!1}function Mr(t=""){var a,n;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const r=new URL(t).searchParams.get(Bo);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${Lr}=`).pop())==null?void 0:n.split(";")[0])||""}function Cd(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=Lr+"="+t+";"+a+";path=/"}function Id(){document.cookie=Lr+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Pn(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Fo)==="true"||!!t}function jd(){const t=new URL(window.location.href);t.searchParams.set(Fo,"true"),window.history.replaceState({},"",t)}function zd(){const t=new URL(window.location.href);t.searchParams.delete(Bo),window.history.replaceState({},"",t)}function Ad(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 Cn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const g=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Wa(){var a,n;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(g);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(i){if(e.includes(i))return i;const r=e.find(o=>o.toLowerCase().startsWith(i+"-"));if(r)return r}return g.English}function qr(t,e=""){const i=[],a=[t];for(;a.length>0;){const n=a.pop();if(i.includes(n)||e&&n.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(n.tagName)||n.offsetWidth<=1)continue;const r=Array.from(n.childNodes).some(c=>{var d;return c.nodeType===Node.TEXT_NODE&&((d=c.nodeValue)==null?void 0:d.trim())!==""});if(r&&n.tagName==="LI"){const c=n.closest("ul, ol");c&&!i.includes(c)&&i.push(c);continue}const o=n.tagName==="P"&&!!n.textContent;if(r||o){i.push(n);continue}const s=Array.from(n.children);for(let c=s.length-1;c>=0;c--)a.push(s[c])}return i}function pa(){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 Vo(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function fa(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const i=pa(),a=qr(i,(t==null?void 0:t.exclude_elements_selector)||""),n=Vo(a);return{parentElement:i,elements:a,pageText:n}}function Wo(){const t=pa();return{content_heading:Ld(t),content_modified_time:Md(t),content_published_time:qd(t)}}function Ld(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Md(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=Uo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Dr(i):null}function qd(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=Uo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Dr(i):null}function Dr(t){try{return new Date(t).toISOString()}catch{return null}}function Uo(){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 Fi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Nr(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function Dd(t){return!!(t.exclude_urls_pattern&&Fi().match(new RegExp(t.exclude_urls_pattern)))}let Rr=null;async function Hi({url:t=Fi(),params:e={},method:i="GET"}={}){const a=pi(),n=Pn()?await Ho():!1,r=Wa();if(!a)throw new Error("No token was provided");const o=`/external-pages/?api-token=${a}&include_title_details=true${n?"&editorial_mode_enabled=true":""}&language=${r}`;let s;if(i==="POST"){const{pageText:c}=fa();e.run_ai&&(e.hash=Ad(c||""),e.page_text=c),e.url=t,e.metadata=Wo(),s=await Qt(o,{method:"POST",body:e})}else s=await Qt(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function Go({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:i=3e3,maxTries:a=600,onpoll:n=()=>null}={}){let r=0;Rr&&clearTimeout(Rr);const o=async(s,c)=>{let d;try{try{d=await Hi()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(d=await Hi({method:"POST"}),d.ai_enabled&&(d=await Hi({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:u}=fa();if(d&&e&&(d=await Nd(u,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=Ko(d.manual_injections||[]),d.ai_injections=Ko(d.ai_injections||[]),s(d);return}catch{if(r++,r>=a){a>1&&console.error("Max poll limit exceeded. Please return later."),s();return}d&&n(d),Rr=setTimeout(()=>o(s),i)}};return new Promise(o)}async function Nd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Wo().content_modified_time,a=e.content_modified_time?Dr(e.content_modified_time):null,n=i&&a===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(a||0)?e:await Hi({params:{run_ai:!0},method:"POST"})}async function Rd(t){var r;const e=(r=window.PlayPilotLinkInjections)==null?void 0:r.selector,a=t.filter(o=>o.manual).map(o=>({sid:o.sid,title:o.title,sentence:o.sentence,phrase_before:o.phrase_before,phrase_after:o.phrase_after,playpilot_url:o.playpilot_url,after_article:!!o.after_article,after_article_style:o.after_article_style||null,in_text:o.in_text??!0,inactive:!!o.inactive,removed:!!o.removed}));if(!await Hi({method:"POST",params:{private_token:Mr(),manual_injections:a,content_text_selector:e}}))throw new Error("saveLinkInjections response was faulty");return t}function Ko(t){return t.map(e=>({...e,key:Yo(e.sid)}))}function Yo(t){return t+"-"+Cn()}function Od(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Bd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Fd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Or(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Zo(t,e,i=[]){var r,o;const a=document.createTreeWalker(e);let n;for(;(n=a.nextNode())&&!((r=n.nodeValue)!=null&&r.includes(t)&&!i.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function Jo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Hd(t,e,i,a){const n=Fd(e),r=Or(e),o=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${r.replace(c,"\\$&")}|${n.replace(c,"\\$&")}`),u=s.replace(d,i);return o+u}function Vd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function St(t){return Or(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Qo(t,e,i){const n=t.indexOf(e),r=Math.floor((i-e.length)/2);let o=Math.max(0,n-r),s=o+i;s>t.length&&(s=t.length,o=Math.max(0,s-i));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function Xo(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const n=Math.max(a.innerText.indexOf(t.textContent),0),r=$o(a.innerText.slice(0,e+n)),o=a.innerText.slice(i+n),s=$o(es(r,2)),c=es(o,2);return{before:s,after:c}}function $o(t){return t.split("").reverse().join("")}function es(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function In(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Wd(t,e,i){const a=[];let n=0;for(;n<=t.length;){const r=e?t.indexOf(e,n):n;if(r===-1&&e)break;const o=e?r+e.length:r,s=i?t.indexOf(i,o):t.length;if(i&&s===-1)break;const c=t.slice(o,s);a.push({match:c,index:o}),n=i?s+i.length:t.length+1}return a}function Ud(t,e,i,a){const r=Wd(t,i,a).filter(({match:s})=>Or(s).includes(e));return r.length?r.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Gd(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 Kd(t,e,i=0){const a=e.innerHTML,n=[],r=Yd(e);let o=a.indexOf(t);for(;o!==-1;)Bd(o,r)&&n.push(o),o=a.indexOf(t,o+t.length);return n[i]??-1}function Yd(t){const e=[],i=t.innerHTML;let a=!1,n=!1,r=!1,o=0;for(let s=0;s<i.length;s++){const c=i[s];if(!n&&!a&&c==="<"){a=!0,r&&(e.push({start:o,end:s}),r=!1);continue}if(a&&c==='"'&&(n=!n),a&&!n&&c===">"){a=!1;continue}!a&&!n&&!r&&(o=s,r=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Zd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${a}])${n}([${a}])`),o=e.match(r);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function ts(t){return t.ctrlKey||t.metaKey||t.button!==0}const pe={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",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",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"},Rt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Ei={Card:"tpi_card",Link:"tpi_link"};function Jd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Tt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function jn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const zn=[{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 Qd(t=[]){return t.map(e=>{var i;return((i=zn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Br="playpilot_user_id";function Xd(){if(!is())return null;try{const t=localStorage.getItem(Br);return t||(localStorage.setItem(Br,Cn(16)),localStorage.getItem(Br))}catch{return null}}function is(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Tt("tracking")}const $d="https://insights.playpilot.net";async function fe(t,e=null,i={}){var n,r,o,s,c;if(jn())return;if(!Tt("tracking")){tu(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:Qd(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),is()&&(i.user_id=Xd(),i.region=window.PlayPilotLinkInjections.region),i.version="8.13.0-beta.2",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Fi(),i.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Ti?"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($d,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),eu({event:t,payload:i})}function eu(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function as({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function tu(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 iu(){if(Tt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])fe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function ns(){if(!Tt("ads"))return[];const t=pi();if(!t)throw new Error("No token was provided");try{return await Qt(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(pe.AdsFetchFailed,null,{status:e.status}),e}}function Ua(t){var e;return!Tt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function au(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 Fr(t=5e3){var i,a,n,r;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"),nu(c),c}catch(o){return fe(pe.RegionRequestFailed,null,{message:o.message}),((r=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.fallback_region)||""}}function nu(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function Hr(t={}){const e=pi();if(!e)throw new Error("No token was provided");return t={...t,language:Wa(),include_count:"false"},t.region!==null&&(t.region=t.region||await Fr()),await Qt(`/titles/browse?api-token=${e}&`+Nr(t))}async function ru(t){return(await Hr({related_to_sid:t.sid})).results}const lu={"Where To Stream Online":{[g.English]:"Where to stream online",[g.Swedish]:"Var kan man streama online",[g.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[g.English]:"We may earn a commission from purchases made through some of the links below.",[g.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[g.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[g.English]:"An error occurred",[g.Swedish]:"Ett fel inträffade",[g.Danish]:"Der opstod en fejl"},Loading:{[g.English]:"Loading",[g.Swedish]:"Laddar",[g.Danish]:"Indlæser"},"Title Unavailable":{[g.English]:"This title is not currently available to stream.",[g.Swedish]:"Den här titeln går inte att streama just nu.",[g.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[g.English]:"is not currently available to stream.",[g.Swedish]:"går inte att streama just nu.",[g.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[g.English]:"is available to stream on",[g.Swedish]:"finns att streama på",[g.Danish]:"kan streames på"},"Is Available To Stream":{[g.English]:"is available to stream.",[g.Swedish]:"finns att streama.",[g.Danish]:"kan streames."},"View Streaming Options":{[g.English]:"View streaming options",[g.Swedish]:"Se streamingalternativ",[g.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[g.English]:"and",[g.Swedish]:"och",[g.Danish]:"og"},Minutes:{[g.English]:"minutes",[g.Swedish]:"minuter",[g.Danish]:"minutter"},"Type: movie":{[g.English]:"Movie",[g.Swedish]:"Film",[g.Danish]:"Film"},"Type: series":{[g.English]:"Series",[g.Swedish]:"Serie",[g.Danish]:"Serie"},Stream:{[g.English]:"Stream",[g.Swedish]:"Streama",[g.Danish]:"Stream"},Buy:{[g.English]:"Buy",[g.Swedish]:"Köp",[g.Danish]:"Køb"},Rent:{[g.English]:"Rent",[g.Swedish]:"Hyr",[g.Danish]:"Lej"},"Rent Or Buy":{[g.English]:"Rent or Buy",[g.Swedish]:"Hyr/köp",[g.Danish]:"Lej eller køb"},Watch:{[g.English]:"Watch",[g.Swedish]:"Titta nu",[g.Danish]:"Se nu"},"Category: AVOD":{[g.English]:"Stream for free",[g.Swedish]:"Streama gratis",[g.Danish]:"Stream gratis"},"Category: SVOD":{[g.English]:"Streaming services",[g.Swedish]:"Streamingtjänster",[g.Danish]:"Streamingtjenester"},"Category: RENT":{[g.English]:"Rent it",[g.Swedish]:"Hyr den",[g.Danish]:"Lej den"},"Category: BUY":{[g.English]:"Buy it",[g.Swedish]:"Köp den",[g.Danish]:"Køb den"},"Category: Other":{[g.English]:"Other",[g.Swedish]:"Annat",[g.Danish]:"Andet"},Share:{[g.English]:"Share",[g.Swedish]:"Dela",[g.Danish]:"Del"},"Copy URL":{[g.English]:"Copy URL",[g.Swedish]:"Kopiera URL",[g.Danish]:"Kopiér URL"},Email:{[g.English]:"Email",[g.Swedish]:"E-post",[g.Danish]:"E-mail"},"Show More":{[g.English]:"Show more",[g.Swedish]:"Visa mer",[g.Danish]:"Vis mere"},Cast:{[g.English]:"Cast",[g.Swedish]:"Rollista",[g.Danish]:"Skuespillere"},"Similar Titles":{[g.English]:"Similar movies & shows",[g.Swedish]:"Liknande filmer och serier",[g.Danish]:"Lignende film og serier"},"Watch Trailer":{[g.English]:"Watch trailer",[g.Swedish]:"Se trailer",[g.Danish]:"Se trailer"},"Streaming Guide":{[g.English]:"Streaming Guide",[g.Swedish]:"Streaming Guide",[g.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[g.English]:"Discover and search all movies and tv-shows",[g.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[g.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Description":{[g.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[g.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[g.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":{[g.English]:"Search movies and shows",[g.Swedish]:"Sök filmer och serier",[g.Danish]:"Søg film og serier"},Services:{[g.English]:"Services",[g.Swedish]:"Tjänster",[g.Danish]:"Tjenester"},Genres:{[g.English]:"Genres",[g.Swedish]:"Genrer",[g.Danish]:"Genrer"},IMDb:{[g.English]:"IMDb",[g.Swedish]:"IMDb",[g.Danish]:"IMDb"},Year:{[g.English]:"Year",[g.Swedish]:"År",[g.Danish]:"År"},Runtime:{[g.English]:"Runtime",[g.Swedish]:"Speltid",[g.Danish]:"Spilletid"},Countries:{[g.English]:"Countries",[g.Swedish]:"Länder",[g.Danish]:"Lande"},"All Filters":{[g.English]:"All filters",[g.Swedish]:"Alla filter",[g.Danish]:"Alle filtre"},"Sort By":{[g.English]:"Sort by",[g.Swedish]:"Sortera efter",[g.Danish]:"Sortér efter"},Popularity:{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},New:{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"Top Rated":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},"-popularity":{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},"-new":{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"-best":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},Search:{[g.English]:"Search",[g.Swedish]:"Sök",[g.Danish]:"Søg"},"Born On":{[g.English]:"Born on",[g.Swedish]:"Född den",[g.Danish]:"Født den"},"Died On":{[g.English]:"Died on",[g.Swedish]:"Död den",[g.Danish]:"Død den"},Credits:{[g.English]:"Credits",[g.Swedish]:"Medverkande",[g.Danish]:"Medvirkende"},Home:{[g.English]:"Home",[g.Swedish]:"Hem",[g.Danish]:"Hjem"},Explore:{[g.English]:"Explore",[g.Swedish]:"Utforska",[g.Danish]:"Udforsk"},"Mentioned In This Article":{[g.English]:"Mentioned in this article",[g.Swedish]:"Nämnda i den här artikeln",[g.Danish]:"Nævnt i denne artikel"},"List: Trending":{[g.English]:"Trending Movies & Shows",[g.Swedish]:"Trendande Titlar",[g.Danish]:"Populære film og serier"},"List: Upcoming":{[g.English]:"Upcoming Releases",[g.Swedish]:"Kommande Premiärer",[g.Danish]:"Mest ventede film"},"List: New":{[g.English]:"New Releases",[g.Swedish]:"Nya Filmer & Serier",[g.Danish]:"Nye film og serier"},"List: Demand":{[g.English]:"Always in Demand",[g.Swedish]:"Tidlösa Favoriter",[g.Danish]:"Tidløse favoritter"},"List: Cinema":{[g.English]:"Coming to Cinemas",[g.Swedish]:"Snart på Bio",[g.Danish]:"Kommende film"},All:{[g.English]:"All",[g.Swedish]:"Alla",[g.Danish]:"Alle"},Unscripted:{[g.English]:"Unscripted",[g.Swedish]:"Oscripterat",[g.Danish]:"Umanuskriptet"},Independent:{[g.English]:"Independent",[g.Swedish]:"Indie",[g.Danish]:"Indie"},"Game Show":{[g.English]:"Game Show",[g.Swedish]:"Gameshow",[g.Danish]:"Quizshow"},"Film Noir":{[g.English]:"Film Noir",[g.Swedish]:"Film noir",[g.Danish]:"Film noir"},Entertainment:{[g.English]:"Entertainment",[g.Swedish]:"Underhållning",[g.Danish]:"Underholdning"},News:{[g.English]:"News",[g.Swedish]:"Nyheter",[g.Danish]:"Nyheder"},Short:{[g.English]:"Short",[g.Swedish]:"Kortfilm",[g.Danish]:"Kortfilm"},Bollywood:{[g.English]:"Bollywood",[g.Swedish]:"Bollywood",[g.Danish]:"Bollywood"},Concert:{[g.English]:"Concert",[g.Swedish]:"Konsert",[g.Danish]:"Koncert"},Arthouse:{[g.English]:"Arthouse",[g.Swedish]:"Arthouse",[g.Danish]:"Arthouse"},"Alternate Version":{[g.English]:"Alternate Version",[g.Swedish]:"Alternativ version",[g.Danish]:"Alternativ version"},"Reality TV":{[g.English]:"Reality TV",[g.Swedish]:"Reality-TV",[g.Danish]:"Reality-TV"},Culture:{[g.English]:"Culture",[g.Swedish]:"Kultur",[g.Danish]:"Kultur"},Drama:{[g.English]:"Drama",[g.Swedish]:"Drama",[g.Danish]:"Drama"},Crime:{[g.English]:"Crime",[g.Swedish]:"Kriminal",[g.Danish]:"Krimi"},Western:{[g.English]:"Western",[g.Swedish]:"Western",[g.Danish]:"Western"},Thriller:{[g.English]:"Thriller",[g.Swedish]:"Thriller",[g.Danish]:"Thriller"},Animation:{[g.English]:"Animation",[g.Swedish]:"Animerat",[g.Danish]:"Animation"},Mystery:{[g.English]:"Mystery",[g.Swedish]:"Mysterium",[g.Danish]:"Mysterium"},Science:{[g.English]:"Science",[g.Swedish]:"Vetenskap",[g.Danish]:"Videnskab"},Nature:{[g.English]:"Nature",[g.Swedish]:"Natur",[g.Danish]:"Natur"},War:{[g.English]:"War",[g.Swedish]:"Krig",[g.Danish]:"Krig"},"Sci-Fi":{[g.English]:"Sci-Fi",[g.Swedish]:"Sci-fi",[g.Danish]:"Sci-fi"},Documentary:{[g.English]:"Documentary",[g.Swedish]:"Dokumentär",[g.Danish]:"Dokumentar"},"Stand-up":{[g.English]:"Stand-up",[g.Swedish]:"Standup",[g.Danish]:"Stand-up"},"Talk Show":{[g.English]:"Talk Show",[g.Swedish]:"Talkshow",[g.Danish]:"Talkshow"},Fantasy:{[g.English]:"Fantasy",[g.Swedish]:"Fantasy",[g.Danish]:"Fantasy"},History:{[g.English]:"History",[g.Swedish]:"Historia",[g.Danish]:"Historie"},Adventure:{[g.English]:"Adventure",[g.Swedish]:"Äventyr",[g.Danish]:"Eventyr"},Action:{[g.English]:"Action",[g.Swedish]:"Action",[g.Danish]:"Action"},Horror:{[g.English]:"Horror",[g.Swedish]:"Skräck",[g.Danish]:"Gyser"},Comedy:{[g.English]:"Comedy",[g.Swedish]:"Komedi",[g.Danish]:"Komedie"},Biography:{[g.English]:"Biography",[g.Swedish]:"Biografi",[g.Danish]:"Biografi"},Music:{[g.English]:"Music",[g.Swedish]:"Musik",[g.Danish]:"Musik"},Sport:{[g.English]:"Sport",[g.Swedish]:"Sport",[g.Danish]:"Sport"},Romance:{[g.English]:"Romance",[g.Swedish]:"Romantik",[g.Danish]:"Romantik"},Kids:{[g.English]:"Kids",[g.Swedish]:"Barn",[g.Danish]:"Børn"},Lifestyle:{[g.English]:"Lifestyle",[g.Swedish]:"Livsstil",[g.Danish]:"Livsstil"},Musical:{[g.English]:"Musical",[g.Swedish]:"Musikal",[g.Danish]:"Musical"},Anime:{[g.English]:"Anime",[g.Swedish]:"Anime",[g.Danish]:"Anime"},Family:{[g.English]:"Family",[g.Swedish]:"Familj",[g.Danish]:"Familie"}};function ve(t,e=Wa()){var i;return((i=lu[t])==null?void 0:i[e])||t}const An=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),ou=t=>t;function Vr(t){const e=t-1;return e*e*e+1}function rs(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Et(t,{delay:e=0,duration:i=400,easing:a=ou}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function ha(t,{delay:e=0,duration:i=400,easing:a=Vr,x:n=0,y:r=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,u=c*(1-o),[v,p]=rs(n),[f,y]=rs(r);return{delay:e,duration:i,easing:a,css:(h,_)=>`
5
+ `)}function fa(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const i=pa(),a=qr(i,(t==null?void 0:t.exclude_elements_selector)||""),n=Vo(a);return{parentElement:i,elements:a,pageText:n}}function Wo(){const t=pa();return{content_heading:Ld(t),content_modified_time:Md(t),content_published_time:qd(t)}}function Ld(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Md(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=Uo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Dr(i):null}function qd(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=Uo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Dr(i):null}function Dr(t){try{return new Date(t).toISOString()}catch{return null}}function Uo(){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 Fi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Nr(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function Dd(t){return!!(t.exclude_urls_pattern&&Fi().match(new RegExp(t.exclude_urls_pattern)))}let Rr=null;async function Hi({url:t=Fi(),params:e={},method:i="GET"}={}){const a=pi(),n=Pn()?await Ho():!1,r=Wa();if(!a)throw new Error("No token was provided");const o=`/external-pages/?api-token=${a}&include_title_details=true${n?"&editorial_mode_enabled=true":""}&language=${r}`;let s;if(i==="POST"){const{pageText:c}=fa();e.run_ai&&(e.hash=Ad(c||""),e.page_text=c),e.url=t,e.metadata=Wo(),s=await Qt(o,{method:"POST",body:e})}else s=await Qt(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function Go({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:i=3e3,maxTries:a=600,onpoll:n=()=>null}={}){let r=0;Rr&&clearTimeout(Rr);const o=async(s,c)=>{let d;try{try{d=await Hi()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(d=await Hi({method:"POST"}),d.ai_enabled&&(d=await Hi({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:u}=fa();if(d&&e&&(d=await Nd(u,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=Ko(d.manual_injections||[]),d.ai_injections=Ko(d.ai_injections||[]),s(d);return}catch{if(r++,r>=a){a>1&&console.error("Max poll limit exceeded. Please return later."),s();return}d&&n(d),Rr=setTimeout(()=>o(s),i)}};return new Promise(o)}async function Nd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Wo().content_modified_time,a=e.content_modified_time?Dr(e.content_modified_time):null,n=i&&a===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(a||0)?e:await Hi({params:{run_ai:!0},method:"POST"})}async function Rd(t){var r;const e=(r=window.PlayPilotLinkInjections)==null?void 0:r.selector,a=t.filter(o=>o.manual).map(o=>({sid:o.sid,title:o.title,sentence:o.sentence,phrase_before:o.phrase_before,phrase_after:o.phrase_after,playpilot_url:o.playpilot_url,after_article:!!o.after_article,after_article_style:o.after_article_style||null,in_text:o.in_text??!0,inactive:!!o.inactive,removed:!!o.removed}));if(!await Hi({method:"POST",params:{private_token:Mr(),manual_injections:a,content_text_selector:e}}))throw new Error("saveLinkInjections response was faulty");return t}function Ko(t){return t.map(e=>({...e,key:Yo(e.sid)}))}function Yo(t){return t+"-"+Cn()}function Od(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Bd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Fd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Or(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Zo(t,e,i=[]){var r,o;const a=document.createTreeWalker(e);let n;for(;(n=a.nextNode())&&!((r=n.nodeValue)!=null&&r.includes(t)&&!i.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function Jo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Hd(t,e,i,a){const n=Fd(e),r=Or(e),o=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${r.replace(c,"\\$&")}|${n.replace(c,"\\$&")}`),u=s.replace(d,i);return o+u}function Vd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function St(t){return Or(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Qo(t,e,i){const n=t.indexOf(e),r=Math.floor((i-e.length)/2);let o=Math.max(0,n-r),s=o+i;s>t.length&&(s=t.length,o=Math.max(0,s-i));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function Xo(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const n=Math.max(a.innerText.indexOf(t.textContent),0),r=$o(a.innerText.slice(0,e+n)),o=a.innerText.slice(i+n),s=$o(es(r,2)),c=es(o,2);return{before:s,after:c}}function $o(t){return t.split("").reverse().join("")}function es(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function In(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Wd(t,e,i){const a=[];let n=0;for(;n<=t.length;){const r=e?t.indexOf(e,n):n;if(r===-1&&e)break;const o=e?r+e.length:r,s=i?t.indexOf(i,o):t.length;if(i&&s===-1)break;const c=t.slice(o,s);a.push({match:c,index:o}),n=i?s+i.length:t.length+1}return a}function Ud(t,e,i,a){const r=Wd(t,i,a).filter(({match:s})=>Or(s).includes(e));return r.length?r.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Gd(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 Kd(t,e,i=0){const a=e.innerHTML,n=[],r=Yd(e);let o=a.indexOf(t);for(;o!==-1;)Bd(o,r)&&n.push(o),o=a.indexOf(t,o+t.length);return n[i]??-1}function Yd(t){const e=[],i=t.innerHTML;let a=!1,n=!1,r=!1,o=0;for(let s=0;s<i.length;s++){const c=i[s];if(!n&&!a&&c==="<"){a=!0,r&&(e.push({start:o,end:s}),r=!1);continue}if(a&&c==='"'&&(n=!n),a&&!n&&c===">"){a=!1;continue}!a&&!n&&!r&&(o=s,r=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Zd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${a}])${n}([${a}])`),o=e.match(r);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function ts(t){return t.ctrlKey||t.metaKey||t.button!==0}const pe={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",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",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"},Rt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Ei={Card:"tpi_card",Link:"tpi_link"};function Jd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Tt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function jn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const zn=[{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 Qd(t=[]){return t.map(e=>{var i;return((i=zn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Br="playpilot_user_id";function Xd(){if(!is())return null;try{const t=localStorage.getItem(Br);return t||(localStorage.setItem(Br,Cn(16)),localStorage.getItem(Br))}catch{return null}}function is(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Tt("tracking")}const $d="https://insights.playpilot.net";async function fe(t,e=null,i={}){var n,r,o,s,c;if(jn())return;if(!Tt("tracking")){tu(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:Qd(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),is()&&(i.user_id=Xd(),i.region=window.PlayPilotLinkInjections.region),i.version="8.13.0",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Fi(),i.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Ti?"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($d,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),eu({event:t,payload:i})}function eu(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function as({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function tu(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 iu(){if(Tt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])fe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function ns(){if(!Tt("ads"))return[];const t=pi();if(!t)throw new Error("No token was provided");try{return await Qt(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(pe.AdsFetchFailed,null,{status:e.status}),e}}function Ua(t){var e;return!Tt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function au(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 Fr(t=5e3){var i,a,n,r;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"),nu(c),c}catch(o){return fe(pe.RegionRequestFailed,null,{message:o.message}),((r=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.fallback_region)||""}}function nu(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function Hr(t={}){const e=pi();if(!e)throw new Error("No token was provided");return t={...t,language:Wa(),include_count:"false"},t.region!==null&&(t.region=t.region||await Fr()),await Qt(`/titles/browse?api-token=${e}&`+Nr(t))}async function ru(t){return(await Hr({related_to_sid:t.sid})).results}const lu={"Where To Stream Online":{[g.English]:"Where to stream online",[g.Swedish]:"Var kan man streama online",[g.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[g.English]:"We may earn a commission from purchases made through some of the links below.",[g.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[g.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[g.English]:"An error occurred",[g.Swedish]:"Ett fel inträffade",[g.Danish]:"Der opstod en fejl"},Loading:{[g.English]:"Loading",[g.Swedish]:"Laddar",[g.Danish]:"Indlæser"},"Title Unavailable":{[g.English]:"This title is not currently available to stream.",[g.Swedish]:"Den här titeln går inte att streama just nu.",[g.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[g.English]:"is not currently available to stream.",[g.Swedish]:"går inte att streama just nu.",[g.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[g.English]:"is available to stream on",[g.Swedish]:"finns att streama på",[g.Danish]:"kan streames på"},"Is Available To Stream":{[g.English]:"is available to stream.",[g.Swedish]:"finns att streama.",[g.Danish]:"kan streames."},"View Streaming Options":{[g.English]:"View streaming options",[g.Swedish]:"Se streamingalternativ",[g.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[g.English]:"and",[g.Swedish]:"och",[g.Danish]:"og"},Minutes:{[g.English]:"minutes",[g.Swedish]:"minuter",[g.Danish]:"minutter"},"Type: movie":{[g.English]:"Movie",[g.Swedish]:"Film",[g.Danish]:"Film"},"Type: series":{[g.English]:"Series",[g.Swedish]:"Serie",[g.Danish]:"Serie"},Stream:{[g.English]:"Stream",[g.Swedish]:"Streama",[g.Danish]:"Stream"},Buy:{[g.English]:"Buy",[g.Swedish]:"Köp",[g.Danish]:"Køb"},Rent:{[g.English]:"Rent",[g.Swedish]:"Hyr",[g.Danish]:"Lej"},"Rent Or Buy":{[g.English]:"Rent or Buy",[g.Swedish]:"Hyr/köp",[g.Danish]:"Lej eller køb"},Watch:{[g.English]:"Watch",[g.Swedish]:"Titta nu",[g.Danish]:"Se nu"},"Category: AVOD":{[g.English]:"Stream for free",[g.Swedish]:"Streama gratis",[g.Danish]:"Stream gratis"},"Category: SVOD":{[g.English]:"Streaming services",[g.Swedish]:"Streamingtjänster",[g.Danish]:"Streamingtjenester"},"Category: RENT":{[g.English]:"Rent it",[g.Swedish]:"Hyr den",[g.Danish]:"Lej den"},"Category: BUY":{[g.English]:"Buy it",[g.Swedish]:"Köp den",[g.Danish]:"Køb den"},"Category: Other":{[g.English]:"Other",[g.Swedish]:"Annat",[g.Danish]:"Andet"},Share:{[g.English]:"Share",[g.Swedish]:"Dela",[g.Danish]:"Del"},"Copy URL":{[g.English]:"Copy URL",[g.Swedish]:"Kopiera URL",[g.Danish]:"Kopiér URL"},Email:{[g.English]:"Email",[g.Swedish]:"E-post",[g.Danish]:"E-mail"},"Show More":{[g.English]:"Show more",[g.Swedish]:"Visa mer",[g.Danish]:"Vis mere"},Cast:{[g.English]:"Cast",[g.Swedish]:"Rollista",[g.Danish]:"Skuespillere"},"Similar Titles":{[g.English]:"Similar movies & shows",[g.Swedish]:"Liknande filmer och serier",[g.Danish]:"Lignende film og serier"},"Watch Trailer":{[g.English]:"Watch trailer",[g.Swedish]:"Se trailer",[g.Danish]:"Se trailer"},"Streaming Guide":{[g.English]:"Streaming Guide",[g.Swedish]:"Streaming Guide",[g.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[g.English]:"Discover and search all movies and tv-shows",[g.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[g.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Description":{[g.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[g.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[g.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":{[g.English]:"Search movies and shows",[g.Swedish]:"Sök filmer och serier",[g.Danish]:"Søg film og serier"},Services:{[g.English]:"Services",[g.Swedish]:"Tjänster",[g.Danish]:"Tjenester"},Genres:{[g.English]:"Genres",[g.Swedish]:"Genrer",[g.Danish]:"Genrer"},IMDb:{[g.English]:"IMDb",[g.Swedish]:"IMDb",[g.Danish]:"IMDb"},Year:{[g.English]:"Year",[g.Swedish]:"År",[g.Danish]:"År"},Runtime:{[g.English]:"Runtime",[g.Swedish]:"Speltid",[g.Danish]:"Spilletid"},Countries:{[g.English]:"Countries",[g.Swedish]:"Länder",[g.Danish]:"Lande"},"All Filters":{[g.English]:"All filters",[g.Swedish]:"Alla filter",[g.Danish]:"Alle filtre"},"Sort By":{[g.English]:"Sort by",[g.Swedish]:"Sortera efter",[g.Danish]:"Sortér efter"},Popularity:{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},New:{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"Top Rated":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},"-popularity":{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},"-new":{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"-best":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},Search:{[g.English]:"Search",[g.Swedish]:"Sök",[g.Danish]:"Søg"},"Born On":{[g.English]:"Born on",[g.Swedish]:"Född den",[g.Danish]:"Født den"},"Died On":{[g.English]:"Died on",[g.Swedish]:"Död den",[g.Danish]:"Død den"},Credits:{[g.English]:"Credits",[g.Swedish]:"Medverkande",[g.Danish]:"Medvirkende"},Home:{[g.English]:"Home",[g.Swedish]:"Hem",[g.Danish]:"Hjem"},Explore:{[g.English]:"Explore",[g.Swedish]:"Utforska",[g.Danish]:"Udforsk"},"Mentioned In This Article":{[g.English]:"Mentioned in this article",[g.Swedish]:"Nämnda i den här artikeln",[g.Danish]:"Nævnt i denne artikel"},"List: Trending":{[g.English]:"Trending Movies & Shows",[g.Swedish]:"Trendande Titlar",[g.Danish]:"Populære film og serier"},"List: Upcoming":{[g.English]:"Upcoming Releases",[g.Swedish]:"Kommande Premiärer",[g.Danish]:"Mest ventede film"},"List: New":{[g.English]:"New Releases",[g.Swedish]:"Nya Filmer & Serier",[g.Danish]:"Nye film og serier"},"List: Demand":{[g.English]:"Always in Demand",[g.Swedish]:"Tidlösa Favoriter",[g.Danish]:"Tidløse favoritter"},"List: Cinema":{[g.English]:"Coming to Cinemas",[g.Swedish]:"Snart på Bio",[g.Danish]:"Kommende film"},All:{[g.English]:"All",[g.Swedish]:"Alla",[g.Danish]:"Alle"},Unscripted:{[g.English]:"Unscripted",[g.Swedish]:"Oscripterat",[g.Danish]:"Umanuskriptet"},Independent:{[g.English]:"Independent",[g.Swedish]:"Indie",[g.Danish]:"Indie"},"Game Show":{[g.English]:"Game Show",[g.Swedish]:"Gameshow",[g.Danish]:"Quizshow"},"Film Noir":{[g.English]:"Film Noir",[g.Swedish]:"Film noir",[g.Danish]:"Film noir"},Entertainment:{[g.English]:"Entertainment",[g.Swedish]:"Underhållning",[g.Danish]:"Underholdning"},News:{[g.English]:"News",[g.Swedish]:"Nyheter",[g.Danish]:"Nyheder"},Short:{[g.English]:"Short",[g.Swedish]:"Kortfilm",[g.Danish]:"Kortfilm"},Bollywood:{[g.English]:"Bollywood",[g.Swedish]:"Bollywood",[g.Danish]:"Bollywood"},Concert:{[g.English]:"Concert",[g.Swedish]:"Konsert",[g.Danish]:"Koncert"},Arthouse:{[g.English]:"Arthouse",[g.Swedish]:"Arthouse",[g.Danish]:"Arthouse"},"Alternate Version":{[g.English]:"Alternate Version",[g.Swedish]:"Alternativ version",[g.Danish]:"Alternativ version"},"Reality TV":{[g.English]:"Reality TV",[g.Swedish]:"Reality-TV",[g.Danish]:"Reality-TV"},Culture:{[g.English]:"Culture",[g.Swedish]:"Kultur",[g.Danish]:"Kultur"},Drama:{[g.English]:"Drama",[g.Swedish]:"Drama",[g.Danish]:"Drama"},Crime:{[g.English]:"Crime",[g.Swedish]:"Kriminal",[g.Danish]:"Krimi"},Western:{[g.English]:"Western",[g.Swedish]:"Western",[g.Danish]:"Western"},Thriller:{[g.English]:"Thriller",[g.Swedish]:"Thriller",[g.Danish]:"Thriller"},Animation:{[g.English]:"Animation",[g.Swedish]:"Animerat",[g.Danish]:"Animation"},Mystery:{[g.English]:"Mystery",[g.Swedish]:"Mysterium",[g.Danish]:"Mysterium"},Science:{[g.English]:"Science",[g.Swedish]:"Vetenskap",[g.Danish]:"Videnskab"},Nature:{[g.English]:"Nature",[g.Swedish]:"Natur",[g.Danish]:"Natur"},War:{[g.English]:"War",[g.Swedish]:"Krig",[g.Danish]:"Krig"},"Sci-Fi":{[g.English]:"Sci-Fi",[g.Swedish]:"Sci-fi",[g.Danish]:"Sci-fi"},Documentary:{[g.English]:"Documentary",[g.Swedish]:"Dokumentär",[g.Danish]:"Dokumentar"},"Stand-up":{[g.English]:"Stand-up",[g.Swedish]:"Standup",[g.Danish]:"Stand-up"},"Talk Show":{[g.English]:"Talk Show",[g.Swedish]:"Talkshow",[g.Danish]:"Talkshow"},Fantasy:{[g.English]:"Fantasy",[g.Swedish]:"Fantasy",[g.Danish]:"Fantasy"},History:{[g.English]:"History",[g.Swedish]:"Historia",[g.Danish]:"Historie"},Adventure:{[g.English]:"Adventure",[g.Swedish]:"Äventyr",[g.Danish]:"Eventyr"},Action:{[g.English]:"Action",[g.Swedish]:"Action",[g.Danish]:"Action"},Horror:{[g.English]:"Horror",[g.Swedish]:"Skräck",[g.Danish]:"Gyser"},Comedy:{[g.English]:"Comedy",[g.Swedish]:"Komedi",[g.Danish]:"Komedie"},Biography:{[g.English]:"Biography",[g.Swedish]:"Biografi",[g.Danish]:"Biografi"},Music:{[g.English]:"Music",[g.Swedish]:"Musik",[g.Danish]:"Musik"},Sport:{[g.English]:"Sport",[g.Swedish]:"Sport",[g.Danish]:"Sport"},Romance:{[g.English]:"Romance",[g.Swedish]:"Romantik",[g.Danish]:"Romantik"},Kids:{[g.English]:"Kids",[g.Swedish]:"Barn",[g.Danish]:"Børn"},Lifestyle:{[g.English]:"Lifestyle",[g.Swedish]:"Livsstil",[g.Danish]:"Livsstil"},Musical:{[g.English]:"Musical",[g.Swedish]:"Musikal",[g.Danish]:"Musical"},Anime:{[g.English]:"Anime",[g.Swedish]:"Anime",[g.Danish]:"Anime"},Family:{[g.English]:"Family",[g.Swedish]:"Familj",[g.Danish]:"Familie"}};function ve(t,e=Wa()){var i;return((i=lu[t])==null?void 0:i[e])||t}const An=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),ou=t=>t;function Vr(t){const e=t-1;return e*e*e+1}function rs(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Et(t,{delay:e=0,duration:i=400,easing:a=ou}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function ha(t,{delay:e=0,duration:i=400,easing:a=Vr,x:n=0,y:r=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,u=c*(1-o),[v,p]=rs(n),[f,y]=rs(r);return{delay:e,duration:i,easing:a,css:(h,_)=>`
6
6
  transform: ${d} translate(${(1-h)*v}${p}, ${(1-h)*f}${y});
7
7
  opacity: ${c-u*_}`}}function Ga(t,{delay:e=0,duration:i=400,easing:a=Vr,axis:n="y"}={}){const r=getComputedStyle(t),o=+r.opacity,s=n==="y"?"height":"width",c=parseFloat(r[s]),d=n==="y"?["top","bottom"]:["left","right"],u=d.map(b=>`${b[0].toUpperCase()}${b.slice(1)}`),v=parseFloat(r[`padding${u[0]}`]),p=parseFloat(r[`padding${u[1]}`]),f=parseFloat(r[`margin${u[0]}`]),y=parseFloat(r[`margin${u[1]}`]),h=parseFloat(r[`border${u[0]}Width`]),_=parseFloat(r[`border${u[1]}Width`]);return{delay:e,duration:i,easing:a,css:b=>`overflow: hidden;opacity: ${Math.min(b*20,1)*o};${s}: ${b*c}px;padding-${d[0]}: ${b*v}px;padding-${d[1]}: ${b*p}px;margin-${d[0]}: ${b*f}px;margin-${d[1]}: ${b*y}px;border-${d[0]}-width: ${b*h}px;border-${d[1]}-width: ${b*_}px;min-${s}: 0`}}function ga(t,{delay:e=0,duration:i=400,easing:a=Vr,start:n=0,opacity:r=0}={}){const o=getComputedStyle(t),s=+o.opacity,c=o.transform==="none"?"":o.transform,d=1-n,u=s*(1-r);return{delay:e,duration:i,easing:a,css:(v,p)=>`
8
8
  transform: ${c} scale(${1-d*p});
9
9
  opacity: ${s-u*p}
10
- `}}function ma(t){return t?t.replace("/src/img",""):null}function ls(t,e=null){return t!=null&&t.length?`${Pd}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var su=P('<img class="svelte-p6g2a"/>');function Ln(t,e){re(e,!0);const i=D(e,"width",3,96),a=D(e,"height",3,144),n=D(e,"lazy",3,!0),r=D(e,"onload",3,()=>null);var o=su();V(s=>{se(o,"src",s),se(o,"alt",`Movie poster for '${e.title.title??""}'`),se(o,"width",i()),se(o,"height",a()),se(o,"loading",n()?"lazy":null)},[()=>ma(e.title.standing_poster)]),ge("error",o,({target:s})=>s.src=zr),ge("load",o,function(...s){var c;(c=r())==null||c.apply(this,s)}),m(t,o),le()}var cu=Re('<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 Ka(t,e){const i=D(e,"size",3,16);var a=cu();V(()=>{se(a,"width",i()),se(a,"height",i())}),m(t,a)}var du=P('<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 uu(t,e){const i=D(e,"embeddable_url",3,"");var a=du(),n=w(a);Ur(n,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var r=S(n,2);r.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var o=S(r,2);o.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=w(o);Ka(s,{size:24}),Ae(3,a,()=>Et,()=>({duration:100})),m(t,a)}we(["click"]);const vu="1304688689641511",pu="https://endpoint-youtube-availability.playpilot.workers.dev";async function os(t){var i,a,n,r;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const o=await fetch(`${pu}/?video_id=${t}`);if(!o.ok)throw new Error("Response was not ok");const s=await o.json();return!((n=s.blocked)!=null&&n[e]||!s.blocked&&s.allowed&&!((r=s.allowed)!=null&&r.includes(e)))}catch{return!1}}let Mn={};function fu(t){const e=ol(),i={onclose:hu,embeddable_url:t.embeddable_url||""};Mn=kt(uu,{target:e,props:i})}function hu(){Mn&&(Si(Mn,{outro:!0}),Mn=null)}function Wr(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 gu(t,e=3){let i=0,a=null;for(;i<e&&!a;){const n=t[i],r=(n==null?void 0:n.embeddable_url)&&Wr(n.embeddable_url);try{r&&await os(r)&&(a=n)}catch{}i++}return a}var mu=Re('<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>'),yu=Re('<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>'),bu=Re('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function _u(t,e){const i=D(e,"muted",3,!1);var a=bu(),n=w(a);{var r=s=>{var c=mu();m(s,c)},o=s=>{var c=yu();m(s,c)};B(n,s=>{i()?s(r):s(o,!1)})}m(t,a)}var wu=P('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),xu=P('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function Ur(t,e){var x;re(e,!0);const i=D(e,"embeddable_url",3,""),a=D(e,"controls",19,()=>[]),n=D(e,"muted",3,!1),r=D(e,"loop",3,!1),o=D(e,"captions",3,!1),s=D(e,"showMuteControls",3,!1),c=H(()=>Wr(i())),d=H(()=>{var T,L;return(((L=(T=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:T.video_playtimes)==null?void 0:L[l(c)||""])||1)-1}),u=((x=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:x.replace("#",""))||"fa548a";let v=G(null),p=G(Be(n()));Je(()=>{if(!l(c))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let T=l(d);const L=setInterval(()=>{T++,window.PlayPilotLinkInjections.video_playtimes[l(c)]=T},1e3);return()=>clearInterval(L)});function f(T=!l(p)){var L,C;l(p)!=T&&((C=(L=l(v))==null?void 0:L.contentWindow)==null||C.postMessage("mute","*")),M(p,T,!0)}var y={toggleMute:f},h=he(),_=J(h);{var b=T=>{var L=xu(),C=J(L);Ze(C,z=>M(v,z),()=>l(v));var j=S(C,2);{var W=z=>{var I=wu();I.__click=()=>f();var k=w(I);_u(k,{get muted(){return l(p)}}),m(z,I)};B(j,z=>{s()&&z(W)})}V(z=>se(C,"src",`https://video.playpilot.net/?video_id=${l(c)??""}&color=${u}&muted=${n()??""}&loop=${r()??""}&captions=${o()??""}&controls=${z??""}&start_time=${l(d)??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),m(T,L)},E=T=>{var L=Ye("Something went wrong");m(T,L)};B(_,T=>{l(c)?T(b):T(E,!1)})}return m(t,h),le(y)}we(["click"]);var ku=P('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function ss(t,e){re(e,!0);let i=D(e,"gap",3,"0"),a=D(e,"fill",3,!0),n=D(e,"transitionDuration",3,300),r=D(e,"threshold",3,30),o=D(e,"moveThreshold",3,0),s=D(e,"currentIndex",15,0),c=D(e,"shown",31,()=>Be([])),d=D(e,"sliderWidth",15,0),u=D(e,"currentScrollPosition",15,0),v=D(e,"maxWidth",15,0),p=D(e,"reachedEnd",15,!1),f=D(e,"distanceToEnd",15,0),y=D(e,"passedThreshold",15,!1),h=D(e,"passedMoveThreshold",15,!1),_=D(e,"allowWheel",3,!1),b=D(e,"end",3,()=>null),E=D(e,"change",3,te=>null),x=D(e,"onend",19,b),T=D(e,"onchange",19,E),L=D(e,"onresize",3,()=>null),C=G(!1),j=G(!1),W=0,z=0,I=G(void 0),k=G(void 0),A=null,N=null;Ue(()=>{l(k)&&ce(),l(k)&&f(v()-u()-d())}),Je(()=>(ie(),()=>A==null?void 0:A.disconnect()));function R(te){const ue=l(k).children.length,be=Math.max(0,Math.min(te,ue-1));X({setIndex:be}),ce()}function U(){M(j,!0),R(s()),requestAnimationFrame(()=>M(j,!1))}function Y(te){oe(te.target)&&(te.preventDefault(),W=Pe(te),M(C,!0))}function q(){if(l(C)){if(!y())X({setIndex:s()});else{const te=u()-z,ue=te>0?1:-1;te!=0&&X({direction:ue})}M(C,!1),y(!1)}}function O(te){if(!l(C))return;const ue=Pe(te),be=z+(W-ue),tt=W-ue;h(Math.abs(tt)>o()),y(Math.abs(u()-z)>r()),h()&&(ee(be-o()*(tt>0?1:-1)),ce())}function K(te){if(!_())return;const{deltaX:ue,deltaY:be}=te;if(Math.abs(ue)<Math.abs(be))return;te.preventDefault();const Fe=u()+ue*20*.02;ee(Fe),ce(),N&&clearTimeout(N),N=setTimeout(()=>{X({direction:ue>0?1:-1})},100)}function Q(te){oe(document.activeElement)&&(te.key=="ArrowLeft"&&R(s()-1),te.key=="ArrowRight"&&R(s()+1))}function X({setIndex:te=-1,direction:ue=1}={}){const be=Ie(),tt=s();s(0);let Fe;for(Fe=0;Fe<be.length;Fe++)if(te!=-1){if(Fe>=te)break}else if(ue>0&&be[Fe]>u()||ue<0&&be[Fe+1]>u())break;s(Math.min(Fe,$().length-1)),ee(be[s()],!0),z=u(),T()&&s()!=tt&&T()(s())}function ee(te,ue=!1){u(te);const be=v()-d();p(u()>=be),p()&&(x()&&x()(),a()&&ue&&u(l(k).clientWidth<d()?0:be))}function ce(){const te=Ie();Array.from(te).forEach((ue,be)=>{u()+d()<ue||c().includes(be)||c([...c(),be])})}function Pe(te){var ue,be;return te.pageX??((be=(ue=te.touches)==null?void 0:ue[0])==null?void 0:be.pageX)}function Ie(){return $().map(te=>te.offsetLeft)}function $(){return Array.from(l(k).children).filter(te=>te instanceof HTMLElement).filter(te=>te.src!="about:blank")}function ie(){A=new ResizeObserver(te=>{for(const ue of te){const be=Array.isArray(ue.contentBoxSize)?ue.contentBoxSize[0]:ue.contentBoxSize;v(be.inlineSize)}L()()}),A.observe(l(k))}function oe(te){return te===l(I)||(te==null?void 0:te.closest(".slider"))===l(I)}var me={setIndex:R,reposition:U},ae=ku();ge("mousedown",Ee,Y),ge("mouseup",Ee,q),ge("mousemove",Ee,O),ge("touchstart",Ee,Y,void 0,!0),ge("touchend",Ee,q),ge("touchmove",Ee,O,void 0,!0),ge("keydown",Ee,Q),ge("resize",Ee,U);var ne=J(ae);let Se;var de=w(ne);let Te;var He=w(de);Ve(He,()=>e.children??bt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:u(),maxWidth:v(),reachedEnd:p(),distanceToEnd:f()})),Ze(de,te=>M(k,te),()=>l(k)),Ze(ne,te=>M(I,te),()=>l(I));var Qe=S(ne,2);return Ve(Qe,()=>e.controls??bt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:u(),maxWidth:v(),reachedEnd:p(),distanceToEnd:f()})),V(te=>{Se=xe(ne,1,"slider svelte-1gs8ha8",null,Se,{dragging:l(C),"passed-threshold":y()}),Te=Ge(de,"",Te,te)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(l(C)||l(j)?0:n())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ge("wheel",ne,K),Nt(ne,"clientWidth",d),m(t,ae),le(me)}var Su=Re("<title> </title>"),Tu=Re('<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 Xt(t,e){const i=D(e,"direction",3,"right"),a=D(e,"title",3,""),n=D(e,"size",3,16);var r=Tu(),o=w(r);{var s=c=>{var d=Su(),u=w(d);V(()=>Z(u,a())),m(c,d)};B(o,c=>{a()&&c(s)})}V(()=>{xe(r,0,i(),"svelte-1m6nwwy"),se(r,"width",`${n()??""}px`),se(r,"height",`${n()??""}px`)}),m(t,r)}function ze(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Eu=P('<div class="heading svelte-1ayf7b5"> </div>'),Pu=P('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Cu=P('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Iu=P("<!> <!>",1),ju=P('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function qn(t,e){re(e,!0);let i=D(e,"heading",3,""),a=D(e,"onchange",3,()=>null),n=D(e,"onresize",3,()=>null),r=D(e,"slider",15);var o=ju(),s=J(o);{var c=v=>{var p=Eu(),f=w(p);ft(p,(y,h)=>ze==null?void 0:ze(y,h),()=>2),V(()=>Z(f,i())),m(v,p)};B(s,v=>{i()&&v(c)})}var d=S(s,2),u=w(d);Ze(ss(u,{get onchange(){return a()},get onresize(){return n()},allowWheel:!0,controls:(p,f)=>{let y=()=>f==null?void 0:f().setIndex,h=()=>f==null?void 0:f().currentIndex,_=()=>f==null?void 0:f().reachedEnd;var b=Iu(),E=J(b);{var x=C=>{var j=Pu();j.__click=()=>y()(h()-1);var W=w(j);Xt(W,{direction:"left",title:"Previous"}),m(C,j)};B(E,C=>{h()>0&&C(x)})}var T=S(E,2);{var L=C=>{var j=Cu();j.__click=()=>y()(h()+1);var W=w(j);Xt(W,{title:"Next"}),m(C,j)};B(T,C=>{_()||C(L)})}m(p,b)},children:(p,f)=>{var y=he(),h=J(y);Ve(h,()=>e.children),m(p,y)},$$slots:{controls:!0,default:!0}}),p=>r(p),()=>r()),m(t,o),le()}we(["click"]);function Gr(t){return`${Oo}/${t.type}/${t.slug}/`}var zu=P('<img class="video-fallback svelte-12ph9f6" alt=""/>'),Au=P('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),Lu=P('<a class="poster svelte-12ph9f6"><!></a>'),Mu=P('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),qu=P('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),Du=P('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),Nu=P('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),Ru=P('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),Ou=P("<div><!></div>");function Kr(t,e){re(e,!0);let i=D(e,"minimumLength",3,1),a=D(e,"heading",3,""),n=D(e,"size",3,"small"),r=D(e,"aside",3,!1),o=D(e,"expandable",3,!1),s=D(e,"expandedTitle",15,null),c=D(e,"expandedRailKey",15,null),d=D(e,"onclick",3,()=>null),u=D(e,"onexpand",3,()=>null);const v=Cn(),f=un("scope")==="popover"?un("title"):null;let y=G(null),h=G(null),_=G(null),b=!1;Je(()=>{o()&&L()});function E(k,A,N){var U,Y,q,O,K;k==null||k.preventDefault();const R=A[N];if(o()&&!C(R)){const Q=(U=l(y))==null?void 0:U.querySelectorAll(".title")[N],ce=(((Y=l(y))==null?void 0:Y.getBoundingClientRect().right)||0)-Q.getBoundingClientRect().right>Q.clientWidth*2;b=!0,setTimeout(()=>b=!1,500),n()==="flexible"&&!ce?(q=l(h))==null||q.setIndex(N-2):n()==="huge"&&!ce&&((O=l(h))==null||O.setIndex(N)),T(R),k&&u()(R);return}k&&(ba()?Pi({event:k,type:"titles-rail",data:A,returnToTitle:f,props:{initialIndex:N}}):Pi({event:k,data:R,returnToTitle:f}),(K=l(_))==null||K.toggleMute(!0),d()(R))}async function x(){const k=await e.titles,A=await gu(k);A&&(s()||c()&&c()!==v||T(A))}function T(k){c(v),s(k)}function L(){c()===v||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(R=>R.getBoundingClientRect().top>=0).sort((R,U)=>R.getBoundingClientRect().top-U.getBoundingClientRect().top)[0]!==l(y)||(s(null),c(null),x())}function C(k){var A;return c()===v&&k.sid===((A=s())==null?void 0:A.sid)}function j(k,A){o()&&(b||setTimeout(()=>E(null,k,A),250))}var W=Ou();ge("scroll",Ee,L);let z;var I=w(W);Ha(I,()=>e.titles,k=>{qn(k,{get heading(){return a()},children:(A,N)=>{var R=he(),U=J(R);Le(U,16,()=>({length:12}),qe,(Y,q)=>{var O=Ru(),K=S(w(O),4);{var Q=X=>{var ee=Nu(),ce=w(ee);Le(ce,20,()=>({length:3}),qe,(Pe,Ie)=>{var $=Du();m(Pe,$)}),m(X,ee)};B(K,X=>{r()&&X(Q)})}m(Y,O)}),m(A,R)},$$slots:{default:!0}})},(k,A)=>{var N=he(),R=J(N);{var U=Y=>{qn(Y,{get heading(){return a()},onchange:q=>j(l(A),q),onresize:()=>{var q;return(q=l(h))==null?void 0:q.reposition()},get slider(){return l(h)},set slider(q){M(h,q,!0)},children:(q,O)=>{var K=he(),Q=J(K);Le(Q,17,()=>l(A),qe,(X,ee,ce,Pe)=>{const Ie=H(()=>C(l(ee))),$=H(()=>Gr(l(ee))),ie=H(()=>ue=>E(ue,l(A),ce));var oe=qu();let me;var ae=w(oe),ne=w(ae);{var Se=ue=>{var be=Au(),tt=w(be);tt.__click=function(...zt){var At;(At=l(ie))==null||At.apply(this,zt)};var Fe=S(tt,2);{var jt=zt=>{Ze(Ur(zt,{get embeddable_url(){return l(ee).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),At=>M(_,At,!0),()=>l(_))},Ca=zt=>{var At=zu();V(()=>se(At,"src",l(ee).medium_poster)),m(zt,At)};B(Fe,zt=>{l(ee).embeddable_url?zt(jt):zt(Ca,!1)})}V(()=>se(tt,"href",l($))),Ae(2,be,()=>Et,()=>({delay:200,duration:200})),m(ue,be)},de=ue=>{var be=Lu();be.__click=function(...Fe){var jt;(jt=l(ie))==null||jt.apply(this,Fe)};var tt=w(be);Ln(tt,{get title(){return l(ee)},width:96,height:144}),V(()=>se(be,"href",l($))),m(ue,be)};B(ne,ue=>{l(Ie)?ue(Se):ue(de,!1)})}var Te=S(ae,2);Te.__click=function(...ue){var be;(be=l(ie))==null||be.apply(this,ue)};var He=w(Te),Qe=S(Te,2);{var te=ue=>{var be=Mu();be.__click=function(...Fe){var jt;(jt=l(ie))==null||jt.apply(this,Fe)};var tt=w(be);V(()=>Z(tt,l(ee).description)),m(ue,be)};B(Qe,ue=>{r()&&ue(te)})}V(()=>{me=xe(oe,1,"title svelte-12ph9f6",null,me,{expanded:l(Ie)}),se(Te,"href",l($)),Z(He,l(ee).title)}),m(X,oe)}),m(q,K)},$$slots:{default:!0}})};B(R,Y=>{var q;((q=l(A))==null?void 0:q.length)>=i()&&Y(U)})}m(k,N)}),Ze(W,k=>M(y,k),()=>l(y)),V(()=>{z=xe(W,1,`titles ${n()??""}`,"svelte-12ph9f6",z,{"with-aside":r()}),se(W,"data-role",o()?"expandable-rail":null)}),m(t,W),le()}we(["click"]);var Bu=P('<div class="rail svelte-1b834ry"><!></div>'),Fu=P('<div data-testid="explore-home"></div> <!>',1);function Hu(t,e){re(e,!0);let i=G(null),a=G(null),n=G(Be(window.innerWidth));const r=[{heading:"List: Trending",params:{ordering:An.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 o(d={}){var u;try{return(u=await Hr(d))==null?void 0:u.results}catch(v){throw console.log(v),fe(pe.ExploreHomeRailError,null,{message:v.message||v.status.toString()||"",params:d}),new Error(v)}}var s=Fu();ge("scroll",Ee,onscroll);var c=S(J(s),2);Le(c,17,()=>r,qe,(d,u)=>{let v=()=>l(u).heading,p=()=>l(u).params,f=()=>l(u).properties;var y=Bu(),h=w(y);{let _=H(()=>ve(v())),b=H(()=>o(p())),E=H(()=>l(n)>=Ti?"flexible":"huge");Kr(h,En({get heading(){return l(_)},get titles(){return l(b)},get size(){return l(E)},minimumLength:7},f,{onclick:()=>fe(pe.ExploreTitleRailModalView,null,{rail:v()}),onexpand:x=>fe(pe.ExploreTitleRailExpandClick,x,{rail:v()}),get expandedTitle(){return l(i)},set expandedTitle(x){M(i,x,!0)},get expandedRailKey(){return l(a)},set expandedRailKey(x){M(a,x,!0)}}))}m(d,y)}),Sn("innerWidth",d=>M(n,d,!0)),m(t,s),le()}function $t(t,e={}){const i=new Image;i.src=Vu(t,e||{})}function Vu(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([r,o])=>[`cd[${r}]`,o])),a={id:vu,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(r=>r+"="+a[r]).join("&")}`}function cs(t,e={}){return()=>{Ue(()=>$t(t,e))}}function Wu(t,e={}){return i=>{const a=()=>$t(t,e);Ue(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var Uu=P("<button><!></button>");function ya(t,e){const i=D(e,"variant",3,"filled"),a=D(e,"size",3,"base"),n=D(e,"label",3,null),r=D(e,"active",3,!1);var o=Uu();let s;o.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var c=w(o);Ve(c,()=>e.children??bt),V(()=>{s=xe(o,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:r()}),se(o,"aria-label",n())}),m(t,o)}we(["click"]);var Gu=Re('<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 Dn(t,e){const i=D(e,"size",3,14);var a=Gu();V(()=>{se(a,"width",i()),se(a,"height",i())}),m(t,a)}function ds(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let n=a;const r=i.find(c=>c.name===n.name),o=r==null?void 0:r.extra_info.category,s=n.extra_info.category;(o==="RENT"&&s==="BUY"||o==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==n.name),n={...n,extra_info:{...n.extra_info,category:"TVOD"}}),i.push(n)}return i}var Ku=P('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Yr(t,e){re(e,!0);let i=G(Be(Math.random()));var a=he();ge("updateconsent",Ee,()=>M(i,Math.random(),!0));var n=J(a);ca(n,()=>l(i),r=>{var o=he(),s=J(o);{var c=d=>{var u=he(),v=J(u);Le(v,17,()=>e.pixels,qe,(p,f)=>{var y=Ku();V(()=>se(y,"src",l(f))),m(p,y)}),m(d,u)};B(s,d=>{Tt("pixels")&&d(c)})}m(r,o)}),m(t,a),le()}var Yu=P('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Zu(t,e){re(e,!0);const i=D(e,"size",3,30),a=D(e,"onclick",3,()=>null),n=H(()=>e.playlink.name),r=H(()=>e.playlink.url),o=H(()=>e.playlink.logo_url),s=H(()=>e.playlink.pixels);var c=Yu();c.__click=function(...f){var y;(y=a())==null||y.apply(this,f)};let d;var u=w(c),v=S(u,2);{var p=f=>{Yr(f,{get pixels(){return l(s)}})};B(v,f=>{var y;(y=l(s))!=null&&y.length&&f(p)})}V(f=>{se(c,"href",l(r)),se(c,"data-playlink",l(n)),d=Ge(c,"",d,{"--size":`${i()??""}px`}),se(u,"src",f),se(u,"alt",l(n)),se(u,"height",i()),se(u,"width",i())},[()=>ma(l(o))]),m(t,c),le()}we(["click"]);var Ju=P('<span class="more svelte-1plv45z"> </span>'),Qu=P('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Xu=P('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function us(t,e){re(e,!0);const i=D(e,"size",3,30),a=H(()=>ds(e.playlinks).slice(0,3));function n(v){v.stopPropagation()}var r=Xu(),o=w(r);Le(o,17,()=>l(a),qe,(v,p)=>{Zu(v,{get playlink(){return l(p)},onclick:n,get size(){return i()}})});var s=S(o,2);{var c=v=>{var p=Ju(),f=w(p);V(()=>Z(f,`+${e.playlinks.length-l(a).length}`)),m(v,p)};B(s,v=>{e.playlinks.length>l(a).length&&v(c)})}var d=S(s,2);{var u=v=>{var p=Qu();m(v,p)};B(d,v=>{e.playlinks.length||v(u)})}m(t,r),le()}var $u=P("<div>Series</div>"),ev=P("<div> </div>"),tv=P('<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 iv(t,e){re(e,!0);const i=D(e,"onclick",3,()=>null);var a=tv();a.__click=function(...E){var x;(x=i())==null||x.apply(this,E)};var n=w(a),r=w(n);Ln(r,{get title(){return e.title},width:120,height:213,lazy:!0});var o=S(r,2),s=w(o),c=w(s);Dn(c,{size:12});var d=S(c),u=S(s,2);{var v=E=>{var x=$u();m(E,x)};B(u,E=>{e.title.type==="series"&&E(v)})}var p=S(u,2);{var f=E=>{var x=ev(),T=w(x);V(()=>Z(T,`${e.title.length??""} min`)),m(E,x)};B(p,E=>{e.title.length&&E(f)})}var y=S(n,2),h=w(y),_=w(h),b=S(h,2);us(b,{get playlinks(){return e.title.providers},size:20}),V(()=>{Z(d,` ${e.title.imdb_score||"-"}`),Z(_,e.title.title)}),m(t,a),le()}we(["click"]),kc();var av=P('<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 nv(t){var e=av(),i=S(w(e),2),a=w(i);Ge(a,"",{},{width:"60%"}),m(t,e)}var rv=P('<div class="svelte-pkkpyl"> </div>'),lv=P('<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 vs(t,e){var k;re(e,!0);const i=D(e,"onclick",3,()=>null),a=!!((k=window.PlayPilotLinkInjections)!=null&&k.no_affiliate);var n=lv();n.__click=function(...A){var N;(N=i())==null||N.apply(this,A)};var r=w(n),o=w(r);Ln(o,{get title(){return e.title},width:30,height:43,lazy:!0});var s=S(r,2),c=w(s),d=w(c),u=S(c,2),v=w(u),p=w(v);Dn(p,{size:11});var f=S(p),y=S(v,2),h=w(y),_=S(y,2),b=w(_),E=S(_,2);{var x=A=>{var N=rv(),R=w(N);V(()=>Z(R,`${e.title.length??""} min`)),m(A,N)};B(E,A=>{e.title.length&&A(x)})}var T=S(u,2);let L;var C=w(T),j=S(T,2);{var W=A=>{us(A,{get playlinks(){return e.title.providers}})};B(j,A=>{a||A(W)})}var z=S(s,2),I=w(z);Xt(I,{}),V(A=>{Z(d,e.title.title),Z(f,` ${e.title.imdb_score||"-"}`),Z(h,e.title.year),Z(b,A),L=xe(T,1,"description svelte-pkkpyl",null,L,{large:a}),Z(C,e.title.description)},[()=>ve(`Type: ${e.title.type}`)]),m(t,n),le()}we(["click"]);var ov=P('<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 sv(t){var e=ov(),i=S(w(e),2),a=w(i);Ge(a,"",{},{width:"40%"});var n=S(a,2);Ge(n,"",{},{width:"60%"});var r=S(n,2);Ge(r,"",{},{width:"80%"}),m(t,e)}var cv=P(`<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 dv(t){var e=cv();m(t,e)}var uv=P("<div><!></div>"),vv=P("<!> <!>",1),pv=P("<p>Something went wrong</p>"),fv=P('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function hv(t,e){re(e,!0);const i=D(e,"searchQuery",3,""),a=D(e,"filter",19,()=>({}));let n=1,r=G(Be([])),o=null,s=0,c=JSON.stringify(a())+i(),d=G(Be(h())),u=G(0);const v=H(()=>l(u)>500),p=H(()=>l(u)>1400?8:l(u)>900?6:l(u)>600?4:3),f=H(()=>l(v)?iv:vs),y=H(()=>l(v)?nv:sv);Ue(()=>{(i()||s!=0)&&_(i())}),Ue(()=>{a()&&b()});async function h(){s+=1;const N=s,R={page_size:24,page:n};i()&&(R.search=i()),Object.entries(a()).forEach(([U,{type:Y,value:q}])=>{if(Y==="string")R[U]=q;else if(Y==="array")R[U]=q.join(",");else if(Y==="range"){const[O,K]=q;R[U+"_min"]=O,R[U+"_max"]=K}});try{const U=await Hr(R)||{next:null,previous:null,results:[]};return N===s&&M(r,[...l(r),...U.results],!0),U}catch(U){throw console.log(U.status),fe(pe.ExploreResultsError,null,{message:U.message||U.status.toString()||"",params:R}),new Error(U)}}async function _(N){L()&&(o&&clearTimeout(o),o=setTimeout(()=>{E(),M(d,h(),!0),N&&(fe(pe.ExploreSearch,null,{query:N}),Tt("pixels")&&$t(Rt.SearchQuery,{query:N}))},100))}function b(){L()&&(E(),M(d,h(),!0))}function E(){n=1,M(r,[],!0)}function x(){n++,M(d,h(),!0),fe(pe.ExploreShowMore,null,{page:n})}function T(N,R){Pi({event:N,data:R}),fe(pe.ExploreTitleClick,R)}function L(){const N=JSON.stringify(a())+i();return N===c?!1:(c=N,!0)}var C=fv(),j=J(C);let W,z;var I=w(j);Le(I,17,()=>l(r),qe,(N,R)=>{var U=he(),Y=J(U);ca(Y,()=>l(R).sid,q=>{var O=he(),K=J(O);xr(K,()=>l(f),(Q,X)=>{X(Q,{get title(){return l(R)},onclick:ee=>T(ee,l(R))})}),m(q,O)}),m(N,U)});var k=S(I,2);Ha(k,()=>l(d),N=>{var R=he(),U=J(R);Le(U,16,()=>({length:24}),qe,(Y,q)=>{var O=he(),K=J(O);xr(K,()=>l(y),(Q,X)=>{X(Q,{})}),m(Y,O)}),m(N,R)},void 0,N=>{});var A=S(j,2);Ha(A,()=>l(d),null,(N,R)=>{var U=H(()=>{var{next:ee}=l(R);return{next:ee}}),Y=H(()=>l(U).next),q=vv(),O=J(q);{var K=ee=>{var ce=uv();let Pe;var Ie=w(ce);ya(Ie,{size:"large",onclick:x,children:($,ie)=>{var oe=Ye();V(me=>Z(oe,me),[()=>ve("Show More")]),m($,oe)},$$slots:{default:!0}}),V(()=>Pe=xe(ce,1,"show-more svelte-qc99of",null,Pe,{grid:l(v)})),m(ee,ce)};B(O,ee=>{l(Y)&&ee(K)})}var Q=S(O,2);{var X=ee=>{dv(ee)};B(Q,ee=>{var ce;!((ce=l(r))!=null&&ce.length)&&n===1&&ee(X)})}m(N,q)},N=>{var R=pv();m(N,R)}),V(()=>{W=xe(j,1,"titles svelte-qc99of",null,W,{grid:l(v)}),z=Ge(j,"",z,{"--grid-columns":l(p)})}),Nt(j,"clientWidth",N=>M(u,N)),m(t,C),le()}var gv=Re('<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 mv(t){var e=gv();m(t,e)}var yv=P('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function bv(t,e){re(e,!0);let i=G("");var a=yv(),n=w(a),r=w(n);mv(r);var o=S(n,2);o.__input=()=>e.oninput(l(i)),V(s=>se(o,"placeholder",s),[()=>ve("Search Movies And Shows")]),va(o,()=>l(i),s=>M(i,s)),m(t,a),le()}we(["input"]);const _v=[{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 wv(){const t=pi();if(!t)throw new Error("No token was provided");const e={region:await Fr(),page:1,include_count:"false"};return await Qt(`/providers/?api-token=${t}&`+Nr(e))}function xv(t){const e=t-1;return e*e*e+1}function kv(t,{from:e,to:i},a={}){var{delay:n=0,duration:r=C=>Math.sqrt(C)*120,easing:o=xv}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,u]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var v=Sv(t),p=t.clientWidth/i.width/v,f=t.clientHeight/i.height/v,y=e.left+e.width*d,h=e.top+e.height*u,_=i.left+i.width*d,b=i.top+i.height*u,E=(y-_)*p,x=(h-b)*f,T=e.width/i.width,L=e.height/i.height;return{delay:n,duration:typeof r=="function"?r(Math.sqrt(E*E+x*x)):r,easing:o,css:(C,j)=>{var W=j*E,z=j*x,I=C+j*T,k=C+j*L;return`transform: ${c} translate(${W}px, ${z}px) scale(${I}, ${k});`}}}function Sv(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 Tv=Re('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function Ev(t){var e=Tv();m(t,e)}var Pv=Re('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function Cv(t){var e=Pv();m(t,e)}var Iv=P('<div class="icon svelte-dfwzqz"><!></div>'),jv=P('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),zv=P('<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 Av(t,e){re(e,!0);let i=D(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=D(e,"selected",23,()=>[]),n=D(e,"placeholder",19,()=>`${ve("Search")}...`),r=D(e,"onchange",3,()=>null),o=G("");const s=H(c);function c(){var y;return(y=i())!=null&&y.length?l(o)?i().filter(({label:h})=>h.toLowerCase().indexOf(l(o).toLowerCase())!==-1):i():[]}function d(y){const h=a().find(_=>_===y);a(h?a().filter(_=>_!==y):[...a(),y]),r()(a())}var u=zv(),v=J(u),p=w(v),f=S(v,2);Le(f,29,()=>l(s)||[],({label:y,value:h})=>h,(y,h)=>{let _=()=>l(h).label,b=()=>l(h).value;const E=H(()=>!!a().find(z=>z===b()));var x=jv(),T=w(x);let L;T.__click=()=>d(b());var C=w(T),j=S(C),W=w(j);ca(W,()=>l(E),z=>{var I=Iv(),k=w(I);{var A=R=>{Ev(R)},N=R=>{Cv(R)};B(k,R=>{l(E)?R(A):R(N,!1)})}Ae(3,I,()=>ga,()=>({start:.25,duration:100})),m(z,I)}),V(()=>{L=xe(T,1,"option svelte-dfwzqz",null,L,{active:l(E)}),Z(C,`${_()??""} `)}),bd(x,()=>kv,()=>({duration:150})),m(y,x)}),V(()=>se(p,"placeholder",n())),va(p,()=>l(o),y=>M(o,y)),m(t,u),le()}we(["click"]);var Lv=P('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),Mv=P("<div><!> <!></div>");function ps(t,e){re(e,!0);let i=G(!1),a=G(null),n=G(null),r=G("left"),o=G(0),s=G(0);function c(h){const _=h.target;_&&_.closest(".dropdown")!==l(a)&&M(i,!1)}function d(h){M(i,!l(i)),l(i)&&(M(s,0),M(o,0),u(h.target))}async function u(h){if(await Ba(),!l(n))return;const _=16,b=200,E=window.innerHeight,x=window.innerWidth,{top:T}=l(n).getBoundingClientRect(),{left:L}=h.getBoundingClientRect();M(r,L<window.innerWidth/2?"left":"right",!0),M(o,Math.max(Math.min(window.innerHeight-T-_,E*.6),b),!0),await Ba();const{left:C,right:j}=l(n).getBoundingClientRect(),W=x-j;C-_<0?M(s,W):W-_<0&&M(s,W-_)}var v=Mv();ge("click",Ee,c);var p=w(v);Ve(p,()=>e.button,()=>({toggle:d}));var f=S(p,2);{var y=h=>{var _=Lv();let b;var E=w(_);Ve(E,()=>e.content),Ze(_,x=>M(n,x),()=>l(n)),V(()=>b=Ge(_,"",b,{"--max-height":l(o)?`${l(o)}px`:null,"--offset":l(s)?`${l(s)}px`:null})),Ae(3,_,()=>ga,()=>({start:.85,duration:100})),m(h,_)};B(f,h=>{l(i)&&h(y)})}Ze(v,h=>M(a,h),()=>l(a)),V(()=>xe(v,1,`dropdown ${l(r)??""}`,"svelte-fg0dzp")),m(t,v),le()}var qv=P('<span class="label svelte-1mfj6k7"> </span>'),Dv=P('<div class="active-line svelte-1mfj6k7"></div>'),Nv=P('<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 Rv(t,e){re(e,!0);const i=D(e,"range",19,()=>[0,100]),a=D(e,"value",19,i),n=D(e,"label",3,""),r=D(e,"valueAppend",3,""),o=D(e,"formatFunction",3,q=>q.toString()),s=D(e,"onchange",3,()=>null);let c=i(),d=H(()=>$i(c,2)),u=G(Be(l(d)[0])),v=G(Be(l(d)[1]));const p=H(()=>l(u)!==i()[0]||l(v)!==i()[1]),f=H(()=>100/(i()[1]-i()[0])*(l(u)-i()[0])),y=H(()=>100+100/(i()[1]-i()[0])*(l(v)-i()[1])-l(f)),h=H(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(l(u)-l(v))<5);Ue(()=>{_(a())}),Ue(()=>{M(v,Math.max(l(v),l(u)+1),!0),M(v,Math.min(l(v),i()[1]),!0),M(u,Math.min(l(u),l(v)-1),!0),M(u,Math.max(l(u),i()[0]),!0)});function _(q){(O=>{var K=$i(O,2);M(u,K[0],!0),M(v,K[1],!0)})(q)}function b(){requestAnimationFrame(()=>s()([l(u),l(v)]))}var E=Nv(),x=w(E);{var T=q=>{var O=qv(),K=w(O);V((Q,X)=>Z(K,`${n()??""}: ${Q??""}—${X??""} ${r()??""}`),[()=>o()(l(u)),()=>o()(l(v))]),m(q,O)};B(x,q=>{n()&&q(T)})}var L=S(x,2);let C;var j=w(L);j.__mouseup=b,j.__touchend=b,j.__input=function(...q){};let W;var z=S(j,2);z.__mouseup=b,z.__touchend=b,z.__input=function(...q){};let I;var k=S(z,2),A=w(k),N=S(k,2),R=w(N),U=S(N,2);{var Y=q=>{var O=Dv();let K;V(()=>K=Ge(O,"",K,{left:l(f)+"%","--width":l(y)+"%"})),m(q,O)};B(U,q=>{l(p)&&q(Y)})}V(()=>{C=xe(L,1,"range svelte-1mfj6k7",null,C,{halved:l(h)}),se(j,"min",i()[0]),se(j,"max",i()[1]),W=xe(j,1,"svelte-1mfj6k7",null,W,{active:l(p)}),se(z,"min",i()[0]),se(z,"max",i()[1]),I=xe(z,1,"svelte-1mfj6k7",null,I,{active:l(p)}),Z(A,l(u)),Z(R,l(v))}),va(j,()=>l(u),q=>M(u,q)),va(z,()=>l(v),q=>M(v,q)),m(t,E),le()}we(["mouseup","touchend","input"]);function Zr(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 Ov=P(" <!>",1),Bv=P('<p class="loading"> </p>'),Fv=P('<p class="error"> </p>'),Hv=P('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),Vv=P('<div data-testid="filter-item"><!></div>');function Wv(t,e){re(e,!0);let i=D(e,"filter",7),a=D(e,"onchange",3,()=>null),n=D(e,"data",7,null),r=D(e,"fetchData",3,null),o=D(e,"range",3,null),s=D(e,"valueAppend",3,"");const c=H(()=>Zr(i()[e.param],o()));let d=G(!!r());Ue(()=>{!n()&&r()&&u()});async function u(){try{M(d,!0),n(await r()())}catch{fe(pe.ExploreFetchProvidersFailed)}finally{M(d,!1)}}function v(h,_){if(fe(pe.ExploreSetFilter,null,{key:e.param,value:h,total_filter:i()}),!h){delete i()[e.param];return}i()[e.param]={type:_,value:h},a()()}var p=Vv();let f;var y=w(p);ps(y,{button:(b,E)=>{let x=()=>E==null?void 0:E().toggle;ya(b,{variant:"border",size:"large",get active(){return l(c)},get onclick(){return x()},children:(T,L)=>{var C=Ov(),j=J(C),W=S(j);Xt(W,{direction:"down"}),V(()=>Z(j,`${e.label??""} `)),m(T,C)},$$slots:{default:!0}})},content:b=>{var E=Hv(),x=w(E);{var T=z=>{var I=Bv(),k=w(I);V(A=>Z(k,`${A??""}...`),[()=>ve("Loading")]),m(z,I)},L=z=>{var I=he(),k=J(I);{var A=N=>{var R=Fv(),U=w(R);V(Y=>Z(U,Y),[()=>ve("An Error Occurred")]),m(N,R)};B(k,N=>{r()&&!n()&&N(A)},!0)}m(z,I)};B(x,z=>{l(d)?z(T):z(L,!1)})}var C=S(x,2);{var j=z=>{const I=H(()=>{var k;return(k=i()[e.param])==null?void 0:k.value});Av(z,{get options(){return n()},get selected(){return l(I)},onchange:k=>v(k,"array")})},W=z=>{var I=he(),k=J(I);{var A=N=>{const R=H(()=>{var U;return(U=i()[e.param])==null?void 0:U.value});Rv(N,{get range(){return o()},get value(){return l(R)},get label(){return e.label},get valueAppend(){return s()},onchange:U=>v(U,"range")})};B(k,N=>{o()&&N(A)},!0)}m(z,I)};B(C,z=>{n()?z(j):z(W,!1)})}m(b,E)},$$slots:{button:!0,content:!0}}),V(()=>f=xe(p,1,"filter-item svelte-er0ukh",null,f,{active:l(c)})),m(t,p),le()}var Uv=P(" <!>",1),Gv=P("<button> </button>"),Kv=P('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Yv(t,e){re(e,!0);const i=D(e,"filter",7),a=D(e,"onchange",3,()=>null),n="ordering",r=[{label:"Popularity",value:An.Popular},{label:"New",value:An.New},{label:"Top Rated",value:An.Best}],o=H(()=>{var c;return((c=r.find(({value:d})=>{var u;return d===((u=i()[n])==null?void 0:u.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[n]={type:"string",value:c}:delete i()[n],a()()}ps(t,{button:(u,v)=>{let p=()=>v==null?void 0:v().toggle;ya(u,{variant:"link",get onclick(){return p()},children:(f,y)=>{var h=Uv(),_=J(h),b=S(_);Xt(b,{direction:"down"}),V(E=>Z(_,`${E??""} `),[()=>ve(l(o))]),m(f,h)},$$slots:{default:!0}})},content:u=>{var v=Kv();Le(v,21,()=>r,qe,(p,f,y,h)=>{let _=()=>l(f).label,b=()=>l(f).value;const E=H(()=>{var C;return b()===((C=i()[n])==null?void 0:C.value)});var x=Gv();let T;x.__click=()=>s(b());var L=w(x);V(C=>{T=xe(x,1,"option svelte-1ibt2k4",null,T,{active:l(E)}),Z(L,C)},[()=>ve(_())]),m(p,x)}),m(u,v)},$$slots:{button:!0,content:!0}}),le()}we(["click"]);var Zv=Re('<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 Jv(t){var e=Zv();m(t,e)}var Qv=P('<button class="item svelte-cwy6fi"><!> <!></button>'),Xv=P('<div class="active-filter svelte-cwy6fi"></div>');function $v(t,e){re(e,!0);function i(r){delete e.filter[r]}function a(r){let o=r.slice(0,30).trim();return r.length>o.length&&(o+="..."),o}var n=Xv();Le(n,21,()=>Object.entries(e.filter),qe,(r,o)=>{var s=H(()=>$i(l(o),2));let c=()=>l(s)[0],d=()=>l(s)[1];const u=H(()=>{const{label:y,range:h,data:_,fetchData:b}=e.items.find(E=>c()===E.param)||{};return{label:y,range:h,data:_,fetchData:b}});var v=he(),p=J(v);{var f=y=>{var h=Qv();h.__click=()=>i(c());var _=w(h);{var b=T=>{var L=he(),C=J(L);Ha(C,()=>{var j,W;return((W=(j=l(u)).fetchData)==null?void 0:W.call(j))||l(u).data},null,(j,W)=>{var z=Ye();V(I=>Z(z,I),[()=>{var I;return a((I=l(W))==null?void 0:I.filter(k=>d().value.includes(k.value)).map(k=>k.label).join(" + "))}]),m(j,z)}),m(T,L)},E=T=>{var L=he(),C=J(L);{var j=z=>{var I=Ye();V(k=>Z(I,`${l(u).label??""}: ${k??""}`),[()=>d().value.join(" - ")]),m(z,I)},W=z=>{var I=Ye();V(k=>Z(I,k),[()=>ve(d().value)]),m(z,I)};B(C,z=>{d().type==="range"?z(j):z(W,!1)},!0)}m(T,L)};B(_,T=>{d().type==="array"?T(b):T(E,!1)})}var x=S(_,2);Ka(x,{size:8}),m(y,h)};B(p,y=>{Zr(d(),l(u).range)&&y(f)})}m(r,v)}),m(t,n),le()}we(["click"]);var ep=P("<div><!></div>"),tp=P("<!> <!>",1),ip=P('<div class="sorting svelte-11dg01g"><!></div>'),ap=P('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function np(t,e){re(e,!0);const i=D(e,"limit",3,!0),a=D(e,"showSorting",3,!0),n=D(e,"searchQuery",3,""),r=D(e,"onchange",3,()=>null),o=D(e,"onempty",3,()=>null),s=3,c=[{label:ve("Services"),param:"providers",fetchData:async()=>(await wv()).map(L=>({label:L.name,value:L.slug}))},{label:ve("Genres"),param:"genres",data:zn.filter(L=>parseInt(L.slug)<900).map(L=>({label:ve(L.name),value:L.slug}))},{label:ve("IMDb"),param:"imdb_score",range:[0,10]},{label:ve("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ve("Runtime"),param:"length",range:[0,180],valueAppend:ve("Minutes")},{label:ve("Countries"),param:"country_codes",data:_v}];let d=G(Be(i())),u=!1;Ue(()=>{Object.keys(e.filter).some(C=>{const{range:j}=c.find(W=>C===W.param)||{};return Zr(e.filter[C],j)})||n()?u=!0:u&&(u=!1,o()())});var v=ap(),p=J(v);let f;var y=w(p);Le(y,21,()=>l(d)?c.slice(0,s):c,qe,(L,C)=>{var j=ep(),W=w(j);Wv(W,En({get filter(){return e.filter},get onchange(){return r()}},()=>l(C))),Ae(3,j,()=>ga,()=>({start:.75,duration:100})),m(L,j)});var h=S(y,2),_=w(h);{var b=L=>{ya(L,{variant:"link",onclick:()=>M(d,!l(d)),children:(C,j)=>{var W=tp(),z=J(W);Jv(z);var I=S(z),k=S(I);{let A=H(()=>l(d)?"down":"up");Xt(k,{get direction(){return l(A)}})}V(A=>Z(I,` ${A??""} `),[()=>ve("All Filters")]),m(C,W)},$$slots:{default:!0}})};B(_,L=>{i()&&L(b)})}var E=S(_,2);{var x=L=>{var C=ip(),j=w(C);Yv(j,{get filter(){return e.filter},get onchange(){return r()}}),Ae(3,C,()=>ha,()=>({x:5,duration:100})),m(L,C)};B(E,L=>{a()&&L(x)})}var T=S(p,2);$v(T,{get filter(){return e.filter},get items(){return c}}),V(()=>f=xe(p,1,"filter svelte-11dg01g",null,f,{limit:i()})),m(t,v),le()}function rp(t,e){re(e,!0);const i=D(e,"trackingEvent",19,()=>pe.ExploreAnyClick);function a(o){var x;const s=o.target,c=s.parentElement;if(s===document.body)return;const d=`${c==null?void 0:c.nodeName.toLowerCase()}${n(c)}`,u=`${s==null?void 0:s.nodeName.toLowerCase()}${n(s)}`,v=`${d} > ${u}`,p=s.closest("a, button"),f=r(s)||r(c)||p&&r(p),y=f?(x=f.textContent)==null?void 0:x.slice(0,30):"",h=s.getAttribute("aria-label")||(p==null?void 0:p.getAttribute("aria-label"))||(c==null?void 0:c.getAttribute("aria-label")),_=s.placeholder,b=s.alt,E=(y||h||_||b||"").trim();fe(i(),null,{selector:v,text:E})}function n(o){if(!o)return"";const s=Array.from(o.classList).filter(c=>!c.startsWith("s-"));return s.length?"."+s.join("."):""}function r(o){var s;return(s=o==null?void 0:o.childNodes)!=null&&s.length&&Array.from(o.childNodes).find(c=>{var d;return c.nodeName==="#text"&&!!((d=c.textContent)!=null&&d.trim())})||null}ge("click",Ee,a),le()}function lp(t,e){re(e,!0);const i=D(e,"trackingEvent",19,()=>pe.ExploreScrollDistance),a={25:!1,50:!1,75:!1,100:!1};function n(){const r=window.scrollY,o=window.innerHeight,d=100/(e.element.clientHeight+r+e.element.getBoundingClientRect().top)*(r+o);for(const u in a)a[u]||d<parseInt(u)||(a[u]=!0,fe(i(),null,{scroll_percentage:u+"%"}))}ge("scroll",Ee,n),le()}var op=P('<p class="description svelte-l2apr8"> </p>'),sp=P('<div class="filter svelte-l2apr8"><!></div>'),cp=P('<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 dp(t,e){re(e,!0);let i=D(e,"navigate",3,()=>null),a=D(e,"searchQuery",15,""),n=D(e,"filter",27,()=>Be({})),r=null,o=G(null),s=G(Be(window.innerWidth));Ue(()=>{var z;M(o,((z=r==null?void 0:r.closest(Jr))==null?void 0:z.style.height)||null,!0)}),Je(async()=>{var z;fe(pe.ExplorePageView),(z=window.PlayPilotLinkInjections.ads)!=null&&z.length||(window.PlayPilotLinkInjections.ads=await ns())});var c=cp(),d=J(c);let u;var v=w(d),p=w(v),f=S(w(p),2),y=w(f);ft(f,z=>ze==null?void 0:ze(z));var h=S(f,2),_=w(h);ft(h,(z,I)=>ze==null?void 0:ze(z,I),()=>2);var b=S(h,2);{var E=z=>{var I=op(),k=w(I);V(A=>Z(k,A),[()=>ve("Streaming Guide Description")]),m(z,I)};B(b,z=>{ba()||z(E)})}var x=S(v,2);bv(x,{oninput:z=>a(z)});var T=S(x,2);{var L=z=>{var I=sp(),k=w(I);{let A=H(()=>l(s)<500),N=H(()=>!a());np(k,{get filter(){return n()},get searchQuery(){return a()},get limit(){return l(A)},get showSorting(){return l(N)},onchange:()=>i()("results"),onempty:()=>i()("home")})}m(z,I)};B(T,z=>{ba()&&z(L)})}var C=S(T,2);Ve(C,()=>e.children),Ze(d,z=>r=z,()=>r);var j=S(d,2);rp(j,{});var W=S(j,2);lp(W,{get element(){return r}}),V((z,I)=>{u=Ge(d,"",u,{height:l(o),"--playpilot-explore-width":`${l(s)??""}px`}),Z(y,z),Z(_,I)},[()=>ve("Streaming Guide"),()=>ve("Streaming Guide Subheading")]),Nt(d,"clientWidth",z=>M(s,z)),m(t,c),le()}function fs(t,e){re(e,!0);const i=[{key:"results",component:hv}];ba()&&i.unshift({key:"home",component:Hu});let a=G(Be(i[0])),n=G(""),r=G(Be({}));const o=H(()=>l(a).component);Ue(()=>{l(n)&&M(a,i.find(c=>c.key==="results"),!0)});function s(c){M(a,i.find(d=>d.key===c)||i[0],!0),fe(pe.ExploreNavigate,null,{route:l(a).key})}dp(t,{navigate:s,get searchQuery(){return l(n)},set searchQuery(c){M(n,c,!0)},get filter(){return l(r)},set filter(c){M(r,c,!0)},children:(c,d)=>{var u=he(),v=J(u);xr(v,()=>l(o),(p,f)=>{f(p,{get searchQuery(){return l(n)},get filter(){return l(r)},navigate:s})}),m(c,u)},$$slots:{default:!0}}),le()}const Jr="[data-playpilot-explore]",up="[data-playpilot-pre-consent-explore]",hs="playpilot-explore-custom-style";let Nn=null;function Rn(){var e;const t=document.querySelector(Jr);t&&(On(),(e=document.querySelector(up))==null||e.remove(),t.innerHTML="",Nn=kt(fs,{target:t}),pp())}function On(){var t;Nn&&(Si(Nn),Nn=null,(t=document.querySelector("#"+hs))==null||t.remove())}function vp(){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:n}=t;if(!e)return!1;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const r=document.querySelector(e);if(!r)return!1;const o=r.cloneNode(!0),s=o.nodeName==="A"?o:o.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,o.dataset.playpilotExploreNavigationElement="true",r.insertAdjacentElement(n||"afterend",o),!0}function pp(){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=hs,document.body.appendChild(e)}function ba(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Ya(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?Tt("pixels"):!1}function Za(t,e){re(e,!0);const i=D(e,"size",3,"32px"),a=D(e,"onclick",3,()=>null),n=Ro(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var r=he(),o=J(r);ko(o,()=>e.href?"a":"button",!1,(s,c)=>{zo(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...n,[ua]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=he(),u=J(d);Ve(u,()=>e.children??bt),m(c,d)}),m(t,r),le()}var fp=P("<div></div>");function hp(t,e){re(e,!0);let i=D(e,"threshold",3,100),a=D(e,"isDragging",15,!1),n=D(e,"passedThreshold",15,!1),r=D(e,"onpassed",3,()=>null),o=G(0),s=G(0),c=G(null),d=G(!1);const u=H(()=>Math.max(l(s)-l(o),0));Ue(()=>{n(l(u)>i())});function v(b){if(b){a(!0),M(d,!0),M(o,b.touches[0].pageY,!0);for(const E of e.targets)E.style.transitionDuration="0ms"}}function p(b){if(b&&a()){b.preventDefault(),M(s,b.touches[0].pageY,!0),l(c).style.transform=`translateY(${l(u)}px)`;for(const E of e.targets)E.style.top=`${l(u)}px`}}function f(){if(a()){if(a(!1),n())r()();else{l(c).removeAttribute("style");for(const b of e.targets)b.style.removeProperty("transition"),requestAnimationFrame(()=>b.style.top="0px")}M(o,0),M(s,0)}}var y={start:v,move:p,end:f},h=fp();ge("touchmove",Ee,p,void 0,!0),ge("touchend",Ee,f);let _;return h.__touchstart=v,Ze(h,b=>M(c,b),()=>l(c)),V(()=>_=xe(h,1,"handle svelte-1xqgdsn",null,_,{dragging:a(),dragged:l(d)})),m(t,h),le(y)}we(["touchstart"]);var gp=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],mp=["difference","intersection","symmetricDifference","union"],gs=!1;const Jn=class Jn extends Set{constructor(i){super();_e(this,Pa);_e(this,Ea,new Map);_e(this,Bt,G(0));_e(this,Ai,G(0));_e(this,Zn,ui||-1);if(i){for(var a of i)super.add(a);F(this,Ai).v=super.size}gs||Oe(this,Pa,Hs).call(this)}has(i){var a=super.has(i),n=F(this,Ea),r=n.get(i);if(r===void 0){if(!a)return l(F(this,Bt)),!1;r=Oe(this,Pa,Fs).call(this,!0),n.set(i,r)}return l(r),a}add(i){return super.has(i)||(super.add(i),M(F(this,Ai),super.size),wi(F(this,Bt))),this}delete(i){var a=super.delete(i),n=F(this,Ea),r=n.get(i);return r!==void 0&&(n.delete(i),M(r,!1)),a&&(M(F(this,Ai),super.size),wi(F(this,Bt))),a}clear(){if(super.size!==0){super.clear();var i=F(this,Ea);for(var a of i.values())M(a,!1);i.clear(),M(F(this,Ai),0),wi(F(this,Bt))}}keys(){return this.values()}values(){return l(F(this,Bt)),super.values()}entries(){return l(F(this,Bt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return l(F(this,Ai))}};Ea=new WeakMap,Bt=new WeakMap,Ai=new WeakMap,Zn=new WeakMap,Pa=new WeakSet,Fs=function(i){return ui===F(this,Zn)?G(i):Kt(i)},Hs=function(){gs=!0;var i=Jn.prototype,a=Set.prototype;for(const n of gp)i[n]=function(...r){return l(F(this,Bt)),a[n].apply(this,r)};for(const n of mp)i[n]=function(...r){l(F(this,Bt));var o=a[n].apply(this,r);return new Jn(o)}};let Bn=Jn;class yp{constructor(e,i){_e(this,nn);_e(this,rn);ye(this,nn,e),ye(this,rn,Rl(i))}get current(){return F(this,rn).call(this),F(this,nn).call(this)}}nn=new WeakMap,rn=new WeakMap;const bp=/\(.+\)/,_p=new Set(["all","print","screen","and","or","not","only"]);class wp extends yp{constructor(e,i){let a=bp.test(e)||e.split(/[\s,]+/).some(r=>_p.has(r.trim()))?e:`(${e})`;const n=window.matchMedia(a);super(()=>n.matches,r=>id(n,"change",r))}}const Qr=new wp("(prefers-reduced-motion: reduce)");function Xr(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(r){if(r.key!=="Tab")return;const o=document.activeElement;if(!o)return;const s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];r.shiftKey&&o===c&&(d.focus(),r.preventDefault()),!r.shiftKey&&o===d&&(c.focus(),r.preventDefault())}const a=document.activeElement,[n]=e();return a!=null&&a.matches(":focus-visible")&&(n==null||n.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function xp(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var kp=P("<div><!></div>"),Sp=P('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Tp=P('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Ep=P('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Pp=P("<div><!></div>"),Cp=P('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Ip=P('<div data-testid="modal"><!> <!> <!> <!></div>');function Ja(t,e){re(e,!0);const i=O=>{var K=kp(),Q=w(K);Za(Q,{onclick:T,"aria-label":"Close",children:(X,ee)=>{Ka(X,{})},$$slots:{default:!0}}),Ze(K,X=>M(y,X),()=>l(y)),V(()=>xe(K,1,`close ${o()??""}`,"svelte-1rbidhv")),Ae(7,K,()=>x),m(O,K)},a=D(e,"tall",3,!1),n=D(e,"wide",3,!1),r=D(e,"blur",3,!1),o=D(e,"closeButtonStyle",3,"shadow"),s=D(e,"initialScrollPosition",3,0),c=D(e,"onscroll",3,()=>null),d=D(e,"onclose",3,()=>null),u="#playpilot";let v=G(0),p=G(null),f=G(null),y=G(null),h=G(0),_=G(!1);const b=H(()=>l(v)<Ti);Ue(()=>{var O;l(v)&&M(h,((O=l(f))==null?void 0:O.offsetTop)||0,!0)}),Ue(()=>{setTimeout(()=>{var O;return M(h,((O=l(f))==null?void 0:O.offsetTop)||0,!0)})}),vn("scope","modal"),Je(()=>{const O=xp();return O.classList.add("playpilot-modal-open"),M(_,!!Ss()),l(_)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(E),()=>{var K;O.classList.remove("playpilot-modal-open"),!Ss()&&((K=history.state)!=null&&K.modal)&&history.back()}});function E(){const O=window.innerWidth>Ti?l(p):l(f);O==null||O.scrollTo(0,s())}function x(O){return Qr.current?Et(O,{duration:0}):l(b)?ha(O,{duration:250,y:window.innerHeight,opacity:1}):ga(O,{duration:150,start:.85})}function T(){d()(),al()}function L(O){O.target===l(p)&&T()}var C=Ip();ge("keydown",Ee,({key:O})=>{O==="Escape"&&T()}),ge("hashchange",Ee,T);let j;C.__click=L;let W;var z=w(C);{var I=O=>{var K=Sp(),Q=w(K);Ve(Q,()=>e.prepend),Ae(7,K,()=>x),m(O,K)};B(z,O=>{e.prepend&&O(I)})}var k=S(z,2);{var A=O=>{var K=Tp(),Q=w(K);Ve(Q,()=>e.bubble),Ae(7,K,()=>x),m(O,K)};B(k,O=>{e.bubble&&O(A)})}var N=S(k,2);{var R=O=>{var K=Ep(),Q=w(K);{var X=ee=>{{let ce=H(()=>[l(f),l(y)]);hp(ee,{get targets(){return l(ce)},onpassed:T})}};B(Q,ee=>{l(f)&&l(y)&&ee(X)})}Ae(7,K,()=>x),m(O,K)};B(N,O=>{l(b)&&O(R)})}var U=S(N,2);{var Y=O=>{var K=he(),Q=J(K);Ve(Q,()=>e.dialog),m(O,K)},q=O=>{var K=Cp(),Q=J(K),X=w(Q);{var ee=oe=>{var me=Pp(),ae=w(me);Za(ae,{onclick:()=>Mh(),"aria-label":"Back",children:(ne,Se)=>{Xt(ne,{direction:"left"})},$$slots:{default:!0}}),V(()=>xe(me,1,`close back ${o()??""}`,"svelte-1rbidhv")),m(oe,me)};B(X,oe=>{l(_)&&oe(ee)})}var ce=S(X,2);Ve(ce,()=>e.children??bt);var Pe=S(ce,2);{var Ie=oe=>{i(oe)};B(Pe,oe=>{l(b)||oe(Ie)})}Ze(Q,oe=>M(f,oe),()=>l(f));var $=S(Q,2);{var ie=oe=>{i(oe)};B($,oe=>{l(b)&&oe(ie)})}ge("scroll",Q,function(...oe){var me;(me=c())==null||me.apply(this,oe)}),Ae(7,Q,()=>x),m(O,K)};B(U,O=>{e.dialog?O(Y):O(q,!1)})}Ze(C,O=>M(p,O),()=>l(p)),ft(C,O=>Xr==null?void 0:Xr(O)),V(()=>{j=xe(C,1,"modal svelte-1rbidhv",null,j,{wide:n(),tall:a(),"background-blur":r(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),W=Ge(C,"",W,{"--dialog-offset":`${l(h)??""}px`})}),Sn("innerWidth",O=>M(v,O,!0)),Ae(5,C,()=>Et,()=>({duration:150})),Ae(6,C,()=>Et,()=>({duration:150,delay:100})),m(t,C),le()}we(["click"]);var jp=P('<div class="genre svelte-1mphbln"> </div>'),zp=P('<button class="genre expand svelte-1mphbln"> </button>'),Ap=P("<!> <!>",1);function Lp(t,e){re(e,!0);let i=G(!1);const a=H(()=>l(i)?e.genres:[e.genres[0]]);var n=Ap(),r=J(n);Le(r,17,()=>l(a),qe,(c,d)=>{const u=H(()=>{var y;return(y=zn.find(h=>h.slug===l(d)))==null?void 0:y.name});var v=he(),p=J(v);{var f=y=>{var h=jp(),_=w(h);_n(h,()=>Ya()?cs(Rt.GenreInterest,{genre:l(u),source:Ei.Card}):null),V(b=>Z(_,b),[()=>ve(l(u))]),m(y,h)};B(p,y=>{l(u)&&y(f)})}m(c,v)});var o=S(r,2);{var s=c=>{var d=zp();d.__click=()=>M(i,!0);var u=w(d);V(()=>Z(u,`+${e.genres.length-1}`)),m(c,d)};B(o,c=>{!l(i)&&e.genres.length>1&&c(s)})}m(t,n),le()}we(["click"]);var Mp=P('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),qp=P('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function $r(t,e){const i=D(e,"small",3,!1);let a=G(!1);function n(u){u.preventDefault(),u.stopPropagation(),M(a,!l(a))}var r=qp();r.__click=n;var o=w(r);let s;var c=S(o,2);{var d=u=>{var v=Mp(),p=w(v);V(()=>Z(p,e.disclaimer)),Ae(3,v,()=>Et,()=>({duration:50})),m(u,v)};B(c,u=>{l(a)&&u(d)})}V(()=>s=xe(o,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),m(t,r)}we(["click"]);var Dp=P('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Np=P('<span class="cta svelte-13ka2ap"> </span>'),Rp=P('<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 ms(t,e){re(e,!0);const i=D(e,"disclaimer",3,""),a=D(e,"hideCategory",3,!1),n=D(e,"onclick",3,()=>null),r=H(()=>e.playlink.name),o=H(()=>e.playlink.url),s=H(()=>e.playlink.logo_url),c=H(()=>e.playlink.highlighted),d=H(()=>e.playlink.cta_text),u=H(()=>e.playlink.action_text),v=H(()=>e.playlink.pixels),p=H(()=>e.playlink.extra_info.category),f=H(()=>Ya()&&!l(c)),y={AVOD:ve("Stream"),SVOD:ve("Stream"),BUY:ve("Buy"),RENT:ve("Rent"),TVOD:ve("Rent Or Buy")};let h=G(0);var _=he(),b=J(_);ko(b,()=>{var E,x;return!((x=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&x.require_affiliate_consent)||Tt("affiliate")?"a":"span"},!1,(E,x)=>{_n(E,()=>l(f)?cs(Rt.ProviderInterest,{provider:e.playlink.slug,source:Ei.Card}):null),_n(E,()=>l(f)?Wu(Rt.ProviderClick,{provider:e.playlink.slug}):null),zo(E,()=>({onclick:n(),href:l(o),target:"_blank",class:"playlink","data-playlink":l(r),rel:"sponsored",[da]:{highlighted:l(c),"no-category":a(),"no-subtext":!l(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var T=Rp(),L=J(T);let C;var j=w(L),W=S(j,2),z=w(W),I=S(W,2);{var k=Q=>{var X=Dp(),ee=w(X);V(ce=>Z(ee,ce),[()=>y[l(p)]||ve("Stream")]),m(Q,X)};B(I,Q=>{a()||Q(k)})}var A=S(I,2);{var N=Q=>{var X=Np(),ee=w(X);V(()=>Z(ee,l(d))),m(Q,X)};B(A,Q=>{l(d)&&Q(N)})}var R=S(A,2),U=w(R),Y=S(R,2);{var q=Q=>{$r(Q,{get disclaimer(){return i()},small:!0})};B(Y,Q=>{i()&&Q(q)})}var O=S(L,2);{var K=Q=>{Yr(Q,{get pixels(){return l(v)}})};B(O,Q=>{var X;(X=l(v))!=null&&X.length&&Q(K)})}V((Q,X)=>{C=Ge(L,"",C,{"--action-width":l(h)?`${l(h)}px`:null}),se(j,"src",Q),Z(z,l(r)),Z(U,X)},[()=>ma(l(s)),()=>l(u)||ve("Watch")]),Nt(R,"clientWidth",Q=>M(h,Q)),m(x,T)}),m(t,_),le()}var Op=P('<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>'),Bp=P('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),Fp=P('<div class="heading category svelte-1fykz2q"> </div>'),Hp=P("<!> <!>",1),Vp=P("<!> <div></div>",1),Wp=P('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function Up(t,e){var T,L;re(e,!0);const i=un("scope")==="modal",a=Ua("card"),n=!!((L=(T=window.PlayPilotLinkInjections)==null?void 0:T.config)!=null&&L.categorize_playlinks);let r=G(0);const o=H(()=>ds(e.playlinks)),s=H(()=>v(e.playlinks)),c=H(()=>n?p(l(s)):[["",l(o)]]),d=H(()=>l(r)<500||!!a||l(o).length===1);function u(C){fe(i?pe.TitleModalPlaylinkClick:pe.TitlePopoverPlaylinkClick,e.title,{playlink:C})}function v(C){const j={};for(const W of C){const{category:z}=W.extra_info;z in j||(j[z]=[]),j[z].push(W)}return j}function p(C){const j=["AVOD","SVOD","RENT","BUY"],W=[];for(const I of j)C[I]&&W.push([I,C[I]]);const z=[];for(const I of Object.values(C))for(const k of I)j.includes(k.extra_info.category)||z.push(k);return[...W,["Other",z]]}var f=Wp(),y=J(f),h=w(y);ft(y,(C,j)=>ze==null?void 0:ze(C,j),()=>3);var _=S(y,2);{var b=C=>{var j=Op(),W=w(j);V(z=>Z(W,`${z??""} `),[()=>{var z,I;return((I=(z=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:z.config)==null?void 0:I.playlinks_disclaimer_text)||ve("Commission Disclaimer")}]),m(C,j)},E=C=>{var j=Bp(),W=w(j);V(z=>Z(W,z),[()=>ve("Title Unavailable")]),m(C,j)};B(_,C=>{l(o).length?C(b):C(E,!1)})}var x=S(_,2);Le(x,17,()=>l(c),qe,(C,j,W,z)=>{var I=H(()=>$i(l(j),2));let k=()=>l(I)[0],A=()=>l(I)[1];var N=Vp(),R=J(N);{var U=O=>{var K=Fp(),Q=w(K);ft(K,(X,ee)=>ze==null?void 0:ze(X,ee),()=>4),V(X=>Z(Q,X),[()=>ve(`Category: ${k()}`)]),m(O,K)};B(R,O=>{k()&&A().length&&O(U)})}var Y=S(R,2);let q;Le(Y,21,A,qe,(O,K,Q)=>{var X=Hp(),ee=J(X);ms(ee,{get playlink(){return l(K)},onclick:()=>u(l(K).name)});var ce=S(ee,2);{var Pe=Ie=>{{let $=H(()=>au(a)),ie=H(()=>a.disclaimer||"");ms(Ie,{get playlink(){return l($)},onclick:()=>fe(pe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return l(ie)}})}};B(ce,Ie=>{a&&Q===0&&Ie(Pe)})}m(O,X)}),V(()=>{q=xe(Y,1,"playlinks svelte-1fykz2q",null,q,{list:l(d)}),se(Y,"data-testid",`category-${k()??""}`)}),Nt(Y,"clientWidth",O=>M(r,O)),m(C,N)}),V(C=>Z(h,C),[()=>ve("Where To Stream Online")]),m(t,f),le()}var Gp=P('<button class="show-more svelte-7itcht">Show more</button>'),Kp=P('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),Yp=P('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function Zp(t,e){re(e,!0);const i=D(e,"blurb",3,""),a=D(e,"limit",3,200),n=D(e,"onclick",3,()=>null);let r=G(!1);const o=H(()=>e.text.slice(0,a()));function s(){M(r,!0),n()()}var c=Yp(),d=w(c),u=w(d),v=S(u);{var p=b=>{var E=Ye("...");m(b,E)};B(v,b=>{!l(r)&&e.text.length>a()&&b(p)})}var f=S(v,2);{var y=b=>{var E=Gp();E.__click=()=>s(),m(b,E)};B(f,b=>{!l(r)&&(e.text.length>a()||i())&&b(y)})}var h=S(d,2);{var _=b=>{var E=Kp(),x=w(E);V(()=>Z(x,i())),m(b,E)};B(h,b=>{l(r)&&b(_)})}V(()=>Z(u,l(r)?e.text:l(o))),m(t,c),le()}we(["click"]);async function Jp(t,{page:e=1}={}){const i={language:Wa(),region:await Fr(),include_count:"false",participant_sid:t.sid,page:e};return(await Qt(`/titles/browse?api-token=${pi()}&${Nr(i)}`)).results}async function Qp(t){return(await Qt(`/participants/browse?api-token=${pi()}&title_sid=${t.sid}`)).results}var Xp=P('<div class="character truncate svelte-zy7e3f"> </div>'),$p=P('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),ef=P('<div class="participant svelte-zy7e3f"></div>');function tf(t,e){re(e,!0);function i(o){const s=St(Vo(qr(pa()))),c={};for(const u of o){const v=In(s,St(u.name));c[u.sid]={participant:u,count:v}}return Object.values(c).sort((u,v)=>v.count-u.count).map(({participant:u})=>u)}function a(o,s){Pi({event:o,type:"participant",data:s}),fe(pe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var n=he(),r=J(n);Ha(r,()=>Qp(e.title),o=>{{let s=H(()=>ve("Cast"));qn(o,{get heading(){return l(s)},children:(c,d)=>{var u=he(),v=J(u);Le(v,16,()=>({length:5}),qe,(p,f)=>{var y=ef();m(p,y)}),m(c,u)},$$slots:{default:!0}})}},(o,s)=>{var c=he(),d=J(c);{var u=v=>{{let p=H(()=>ve("Cast"));qn(v,{get heading(){return l(p)},children:(f,y)=>{var h=he(),_=J(h);Le(_,17,()=>i(l(s)).slice(0,15),qe,(b,E)=>{var x=$p();x.__click=W=>a(W,l(E));var T=w(x),L=w(T),C=S(T,2);{var j=W=>{var z=Xp(),I=w(z);V(()=>Z(I,l(E).character)),m(W,z)};B(C,W=>{l(E).character&&W(j)})}V(()=>Z(L,l(E).name)),m(b,x)}),m(f,h)},$$slots:{default:!0}})}};B(d,v=>{var p;(p=l(s))!=null&&p.length&&v(u)})}m(o,c)}),m(t,n),le()}we(["click"]);function af(t,e){re(e,!0);const i=ru(e.title);{let a=H(()=>ve("Similar Titles"));Kr(t,{get titles(){return i},get heading(){return l(a)},onclick:n=>fe(pe.SimilarTitleClick,n,{title_source:e.title.original_title||e.title.title})})}le()}function nf(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 rf=Re('<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 lf(t){var e=rf();m(t,e)}var of=Re('<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 sf(t){var e=of();m(t,e)}var cf=Re('<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 df(t){var e=cf();m(t,e)}var uf=Re('<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 vf(t){var e=uf();m(t,e)}var pf=P('<button class="svelte-827qd7"><!></button>'),ff=P('<div class="content svelte-827qd7"><!></div>'),hf=P("<div><!> <!></div>");function ys(t,e){const i=D(e,"label",3,""),a=D(e,"align",3,"right");let n=G(!1),r=G(null);function o(f){var h;f.currentTarget===((h=l(r))==null?void 0:h.querySelector("button"))&&f.stopPropagation(),M(n,!l(n))}var s=hf();ge("click",Ee,()=>M(n,!1));var c=w(s);{var d=f=>{var y=he(),h=J(y);Ve(h,()=>e.button,()=>({toggle:o})),m(f,y)},u=f=>{var y=pf();y.__click=o;var h=w(y);vf(h),V(()=>{se(y,"aria-label",i()),se(y,"aria-expanded",l(n))}),m(f,y)};B(c,f=>{e.button?f(d):f(u,!1)})}var v=S(c,2);{var p=f=>{var y=ff(),h=w(y);Ve(h,()=>e.children),Ae(1,y,()=>ga,()=>({duration:50,start:.85})),m(f,y)};B(v,f=>{l(n)&&f(p)})}Ze(s,f=>M(r,f),()=>l(r)),V(()=>xe(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),m(t,s)}we(["click"]);var gf=P("<!> ",1),mf=P('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function yf(t,e){re(e,!0);let i=D(e,"url",7);const n=window.innerWidth<Ti&&typeof navigator.share<"u";Je(()=>{i(i()+"?utm_source=tpi")});function r(c,d){if(!n){d(c);return}fe(pe.ShareTitle,null,{title:e.title,url:Fi(),method:"native"}),navigator.share({title:e.title,url:i()})}function o(){fe(pe.ShareTitle,null,{title:e.title,url:Fi(),method:"copy"}),nf(i())}function s(){fe(pe.ShareTitle,null,{title:e.title,url:Fi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}ys(t,{button:(d,u)=>{let v=()=>u==null?void 0:u().toggle;ya(d,{onclick:p=>r(p,v()),children:(p,f)=>{var y=gf(),h=J(y);lf(h);var _=S(h);V(b=>Z(_,` ${b??""}`),[()=>ve("Share")]),m(p,y)},$$slots:{default:!0}})},children:(d,u)=>{var v=mf(),p=J(v);p.__click=o;var f=w(p);sf(f);var y=S(f),h=S(p,2);h.__click=s;var _=w(h);df(_);var b=S(_);V((E,x)=>{Z(y,` ${E??""}`),Z(b,` ${x??""}`)},[()=>ve("Copy URL"),()=>ve("Email")]),m(d,v)},$$slots:{button:!0,default:!0}}),le()}we(["click"]);var bf=Re('<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 _f(t){var e=bf();m(t,e)}var wf=P("<!> ",1);function xf(t,e){re(e,!0);function i(){fu(e.title),fe(pe.TrailerClick,e.title)}ya(t,{onclick:i,children:(a,n)=>{var r=wf(),o=J(r);_f(o);var s=S(o);V(c=>Z(s,` ${c??""}`),[()=>ve("Watch Trailer")]),m(a,r)},$$slots:{default:!0}}),le()}var kf=P('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Sf(t,e){const i=D(e,"embeddable_url",3,"");let a=G(0),n=G(0);const r=H(()=>Math.max(l(a),l(n)));var o=kf(),s=w(o);Ur(s,{get embeddable_url(){return i()},muted:!0,loop:!0,showMuteControls:!0}),V(()=>Ge(o,`--height: ${l(r)??""}px; --width: ${l(a)??""}px;`)),Nt(o,"clientWidth",c=>M(a,c)),Nt(o,"clientHeight",c=>M(n,c)),m(t,o)}var Tf=P("<div> </div>"),Ef=P('<img alt=""/>'),Pf=P('<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"><!> <!> <!> <!></div></div> <div><!></div>',1);function el(t,e){var Se;re(e,!0);const i=D(e,"small",3,!1),a=D(e,"useVideoBackground",3,!0),n=!!((Se=window.PlayPilotLinkInjections)!=null&&Se.no_affiliate);vn("title",e.title);const r=un("modal"),o=H(()=>(!i()||n)&&e.title.description);let s=G(!1),c=G(!1),d=G(!1),u=G(!1);Ue(()=>{a()&&e.title.embeddable_url&&os(Wr(e.title.embeddable_url)).then(de=>{M(u,de,!0)})});var v=Pf(),p=J(v);let f;var y=w(p),h=w(y);let _;var b=w(h);Ln(b,{get title(){return e.title},onload:()=>M(s,!0),lazy:!1});var E=S(h,2);let x;var T=w(E);ft(E,(de,Te)=>ze==null?void 0:ze(de,Te),()=>2);var L=S(E,2),C=w(L),j=w(C);Dn(j,{});var W=S(j),z=S(C,2);Lp(z,{get genres(){return e.title.genres}});var I=S(z,2),k=w(I),A=S(I,2),N=w(A),R=S(A,2);{var U=de=>{var Te=Tf(),He=w(Te);V(Qe=>Z(He,`${e.title.length??""} ${Qe??""}`),[()=>ve("Minutes")]),m(de,Te)};B(R,de=>{!i()&&e.title.length&&de(U)})}var Y=S(L,2),q=w(Y);{var O=de=>{xf(de,{get title(){return e.title}})};B(q,de=>{e.title.embeddable_url&&de(O)})}var K=S(q,2);{let de=H(()=>Gr(e.title));yf(K,{get title(){return e.title.title},get url(){return l(de)}})}var Q=S(y,2),X=w(Q);{var ee=de=>{Zp(de,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>fe(pe.ExpandTitleDescription,e.title)})};B(X,de=>{l(o)&&de(ee)})}var ce=S(X,2);{var Pe=de=>{Up(de,{get playlinks(){return e.title.providers},get title(){return e.title}})};B(ce,de=>{n||de(Pe)})}var Ie=S(ce,2);tf(Ie,{get title(){return e.title}});var $=S(Ie,2);af($,{get title(){return e.title}});var ie=S(p,2);let oe;var me=w(ie);{var ae=de=>{Sf(de,{get embeddable_url(){return e.title.embeddable_url}})},ne=de=>{var Te=he(),He=J(Te);ca(He,()=>l(d),Qe=>{var te=Ef();let ue;V(be=>{se(te,"src",be),ue=xe(te,1,"svelte-16ajinh",null,ue,{loaded:l(c),blur:l(d)})},[()=>ma(l(d)?e.title.standing_poster:e.title.medium_poster)]),ge("load",te,()=>M(c,!0)),ge("error",te,()=>M(d,!0)),m(Qe,te)}),m(de,Te)};B(me,de=>{a()&&l(u)?de(ae):de(ne,!1)})}V(de=>{f=xe(p,1,"content svelte-16ajinh",null,f,{small:i()}),_=xe(h,1,"poster svelte-16ajinh",null,_,{loaded:l(s)}),x=xe(E,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Z(T,e.title.title),Z(W,` ${e.title.imdb_score??""}`),Z(k,e.title.year),Z(N,de),oe=xe(ie,1,"background svelte-16ajinh",null,oe,{small:i(),"offset-mute":r==="title"})},[()=>ve(`Type: ${e.title.type}`)]),m(t,v),le()}function _a(t,e){const{onclick:i}=e;function a(n){return n.button!==1?null:(i(n),n)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const bs={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},tl={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Cf({key:t}){var a,n,r;if(!Tt("tracking"))return 0;const e=(n=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:n[t];if(e!==void 0)return e;(r=window.PlayPilotLinkInjections)!=null&&r.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function _s(t){const e=Cf(t);return Math.floor(e*t.numberOfVariants)}function If(t){var i;const e=_s(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function jf(t,e=1){return Tt("tracking")?_s(t)===e:!1}function zf(t){const e=If(t);fe(pe.SplitTestView,null,{key:t.key,variant:e})}var Af=P('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Lf=P('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Mf=P('<button class="button svelte-1mt6g1y"> </button>'),qf=P('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Df=P('<div class="background svelte-1mt6g1y"></div>'),Nf=P("<!> <!>",1),Rf=P('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function ws(t,e){re(e,!0),fe(pe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),zf(tl.TopScrollFormat);const i=H(()=>e.campaign.disclaimer),a=H(()=>e.campaign.content),n=H(()=>e.campaign.cta),r=H(()=>l(a).format),o=H(()=>l(a).header),s=H(()=>l(a).header_logo),c=H(()=>l(a).image_uuid),d=H(()=>l(n).header),u=H(()=>l(n).url),v=H(()=>l(r)==="large"),p=H(()=>ls(l(c),bs.TopScrollBackground)),f=H(()=>ls(l(c),bs.TopScrollContent));let y=G(0);function h(){fe(pe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var _=Rf();_.__click=h;let b,E;var x=w(_),T=w(x);{var L=z=>{var I=Af();V(()=>{se(I,"src",l(f)),se(I,"alt",l(o))}),m(z,I)},C=z=>{var I=qf(),k=J(I);{var A=q=>{var O=Lf();V(()=>se(O,"src",l(s))),m(q,O)};B(k,q=>{l(s)&&q(A)})}var N=S(k,2),R=w(N),U=S(N,2);{var Y=q=>{var O=Mf(),K=w(O);V(()=>Z(K,l(d))),m(q,O)};B(U,q=>{l(d)&&q(Y)})}V(()=>Z(R,l(o))),m(z,I)};B(T,z=>{l(v)?z(L):z(C,!1)})}var j=S(x,2);{var W=z=>{var I=Nf(),k=J(I);{var A=U=>{var Y=Df();let q;V(()=>q=Ge(Y,"",q,{"--background":`url('${l(p)??""}')`})),m(U,Y)};B(k,U=>{l(c)&&U(A)})}var N=S(k,2);{var R=U=>{$r(U,{get disclaimer(){return l(i)}})};B(N,U=>{l(i)&&U(R)})}m(z,I)};B(j,z=>{l(v)||z(W)})}ft(_,(z,I)=>_a==null?void 0:_a(z,I),()=>({onclick:h})),xi(()=>Nt(_,"clientWidth",z=>M(y,z))),V(()=>{se(_,"href",l(u)),b=xe(_,1,"top-scroll svelte-1mt6g1y",null,b,{simple:l(v)}),E=Ge(_,"",E,{"--width":`${l(y)??""}px`})}),m(t,_),le()}we(["click"]);var Of=P('<div class="content svelte-r7ubzi"><!></div>'),Bf=P('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Ff(t,e){let i=G(!1);var a=Bf();a.__touchstart=()=>M(i,!l(i));var n=w(a);Ve(n,()=>e.children);var r=S(n,2);{var o=s=>{var c=Of(),d=w(c);Ve(d,()=>e.content),Ae(1,c,()=>Et,()=>({duration:100})),m(s,c)};B(r,s=>{l(i)&&s(o)})}ge("mouseenter",a,()=>M(i,!0)),ge("mouseleave",a,()=>M(i,!1)),m(t,a)}we(["touchstart"]);var Hf=P('<div class="info svelte-qcpiki"><!></div>'),Vf=P('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Wf=P('<span class="name svelte-qcpiki"> </span>'),Uf=P('<div class="subheader svelte-qcpiki"> </div>'),Gf=P('<div class="action svelte-qcpiki"> </div>'),Kf=P('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Yf=P('<img class="background svelte-qcpiki" alt=""/>'),Zf=P('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),Jf=P('<div class="disclaimer svelte-qcpiki"><!></div>'),Qf=P('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function xs(t,e){re(e,!0);const i=D(e,"compact",3,!1),a=H(()=>e.campaign.disclaimer),n=H(()=>e.campaign.content),r=H(()=>e.campaign.cta),o=H(()=>e.campaign.campaign_type),s=H(()=>l(n).header),c=H(()=>l(n).subheader),d=H(()=>l(n).header_logo),u=H(()=>l(n).image),v=H(()=>l(n).video),p=H(()=>l(r).header),f=H(()=>l(r).url),y=H(()=>l(r).subheader);let h=G(0);fe(pe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function _(){fe(pe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var b=Qf();let E;b.__click=_;var x=w(b);{var T=A=>{var N=Hf(),R=w(N);{var U=q=>{Ff(q,{content:K=>{var Q=Ye();V(()=>Z(Q,l(y))),m(K,Q)},children:(K,Q)=>{var X=Ye("Ad");m(K,X)},$$slots:{content:!0,default:!0}})},Y=q=>{var O=Ye();V(()=>Z(O,l(y))),m(q,O)};B(R,q=>{i()?q(U):q(Y,!1)})}m(A,N)};B(x,A=>{l(y)&&A(T)})}var L=S(x,2);{var C=A=>{var N=Kf(),R=w(N);{var U=ce=>{var Pe=Vf();V(()=>se(Pe,"src",l(d))),m(ce,Pe)};B(R,ce=>{l(d)&&ce(U)})}var Y=S(R,2),q=w(Y);{var O=ce=>{var Pe=Wf(),Ie=w(Pe);V(()=>Z(Ie,l(s))),m(ce,Pe)};B(q,ce=>{l(s)&&ce(O)})}var K=S(q,2);{var Q=ce=>{var Pe=Uf(),Ie=w(Pe);V(()=>Z(Ie,l(c))),m(ce,Pe)};B(K,ce=>{l(c)&&ce(Q)})}var X=S(Y,2);{var ee=ce=>{var Pe=Gf(),Ie=w(Pe);V(()=>Z(Ie,l(p))),m(ce,Pe)};B(X,ce=>{l(p)&&ce(ee)})}Nt(N,"clientHeight",ce=>M(h,ce)),m(A,N)};B(L,A=>{(l(d)||l(s)||l(c)||l(p))&&A(C)})}var j=S(L,2);{var W=A=>{var N=Yf();V(()=>se(N,"src",l(u))),m(A,N)},z=A=>{var N=he(),R=J(N);{var U=Y=>{var q=Zf();q.muted=!0;var O=w(q);V(()=>se(O,"src",l(v))),m(Y,q)};B(R,Y=>{l(o)==="video"&&l(v)&&Y(U)},!0)}m(A,N)};B(j,A=>{l(o)==="image"&&l(u)?A(W):A(z,!1)})}var I=S(j,2);{var k=A=>{var N=Jf();let R;var U=w(N);$r(U,{get disclaimer(){return l(a)}}),V(()=>R=Ge(N,"",R,{"--offset":`${l(h)??""}px`})),m(A,N)};B(I,A=>{l(a)&&A(k)})}ft(b,(A,N)=>_a==null?void 0:_a(A,N),()=>({onclick:_})),V(()=>{se(b,"href",l(f)),E=xe(b,1,"display svelte-qcpiki",null,E,{compact:i()})}),m(t,b),le()}we(["click"]);var Xf=P('<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 $f(t,e){var c,d;re(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;Ir();var n=Xf();n.__click=()=>fe(pe.CardToExploreCta);var r=w(n);se(r,"src",i);var o=S(r,4),s=w(o);Xt(s,{}),V(()=>se(n,"href",a)),m(t,n),le()}we(["click"]);function eh(t,e){var p,f;re(e,!0);const i=y=>{var h=he(),_=J(h);{var b=x=>{ws(x,{get campaign(){return o}})},E=x=>{$f(x,{})};B(_,x=>{o?x(b):x(E,!1)})}m(y,h)},a=y=>{var h=he(),_=J(h);{var b=E=>{xs(E,{get campaign(){return s}})};B(_,E=>{s&&E(b)})}m(y,h)},n=D(e,"initialScrollPosition",3,0),r=Ro(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);vn("modal","title");const o=Ua("top_scroll"),s=Ua("card"),c=(f=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:f.explore_insert_cta_in_tpi,d=!!o||c&&!document.querySelector(Jr);let u=!1;fe(pe.TitleModalView,e.title),Ya()&&$t(Rt.TitleInterest,{title:e.title.title,source:Ei.Card}),Je(()=>{const y=Date.now();return()=>fe(pe.TitleModalClose,e.title,{time_spent:Date.now()-y})});function v(){u||(fe(pe.TitleModalScroll,e.title),u=!0)}{let y=H(()=>d?i:null),h=H(()=>s?a:null);Ja(t,{onscroll:v,get initialScrollPosition(){return n()},get bubble(){return l(y)},get prepend(){return l(h)},tall:!0,children:(_,b)=>{el(_,En({get title(){return e.title}},()=>r))},$$slots:{default:!0}})}le()}var th=P(" <strong> </strong>",1),ih=P('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),ah=P('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),nh=P('<button class="more svelte-ke01cs"> </button>'),rh=P('<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 lh(t,e){re(e,!0);const i=H(()=>e.participant.name),a=H(()=>e.participant.birth_date),n=H(()=>e.participant.death_date),r=30;let o=G(Be([])),s=G(1),c=G(!0),d=G(!0);Je(v),Tt("pixels")&&$t(Rt.ParticipantView,{participant:e.participant.name});function u(I){return new Date(I).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function v(){M(d,!0);try{const I=await Jp(e.participant,{page:l(s)});M(o,[...l(o),...I],!0),M(c,(I==null?void 0:I.length)>=r)}catch{M(c,!1)}finally{M(d,!1),M(s,l(s)+1)}}var p=rh(),f=J(p),y=w(f),h=w(y);ft(y,(I,k)=>ze==null?void 0:ze(I,k),()=>2);var _=S(y,2);{var b=I=>{var k=ih(),A=w(k),N=S(A),R=w(N),U=S(N);{var Y=q=>{var O=th(),K=J(O),Q=S(K),X=w(Q);V((ee,ce)=>{Z(K,`, ${ee??""} `),Z(X,ce)},[()=>ve("Died On"),()=>u(l(n))]),m(q,O)};B(U,q=>{l(n)&&q(Y)})}V((q,O)=>{Z(A,`${q??""} `),Z(R,O)},[()=>ve("Born On"),()=>u(l(a))]),m(I,k)};B(_,I=>{l(a)&&I(b)})}var E=S(f,2),x=w(E),T=w(x);ft(x,(I,k)=>ze==null?void 0:ze(I,k),()=>3);var L=S(x,2),C=w(L);Le(C,17,()=>l(o),qe,(I,k)=>{vs(I,{get title(){return l(k)},onclick:A=>Pi({event:A,data:l(k)})})});var j=S(C,2);{var W=I=>{var k=he(),A=J(k);Le(A,16,()=>({length:6}),qe,(N,R)=>{var U=ah();m(N,U)}),m(I,k)},z=I=>{var k=he(),A=J(k);{var N=R=>{var U=nh();U.__click=v;var Y=w(U);V(q=>Z(Y,q),[()=>ve("Show More")]),m(R,U)};B(A,R=>{l(c)&&R(N)},!0)}m(I,k)};B(j,I=>{l(d)?I(W):I(z,!1)})}V(I=>{Z(h,l(i)),Z(T,I)},[()=>ve("Credits")]),m(t,p),le()}we(["click"]);function oh(t,e){re(e,!0);const i=D(e,"initialScrollPosition",3,0);let a=G(0);fe(pe.ParticipantModalView,null,{participant:e.participant.name}),Je(()=>{const n=Date.now();return()=>fe(pe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-n})}),Ja(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(n,r)=>{lh(n,{get participant(){return e.participant}})},$$slots:{default:!0}}),Sn("innerWidth",n=>M(a,n,!0)),le()}var sh=P('<div class="content svelte-16hba4m"><!></div>');function ch(t,e){const i=D(e,"initialScrollPosition",3,0);Ja(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,n)=>{var r=sh(),o=w(r);fs(o,{}),m(a,r)},$$slots:{default:!0}})}function dh(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(n=>{n.style.viewTransitionName=n.dataset.viewTransitionNew||""})})}var uh=Re('<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 vh(t){var e=uh();m(t,e)}var ph=P('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),fh=P('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),hh=P('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),gh=P('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function mh(t,e){re(e,!0),vn("scope","popover");const i=e.bubble&&jf(tl.TopScrollFormat,1),a=H(()=>({duration:Qr.current?0:100,y:10}));let n=G(null),r=G(!1),o=G(!0),s=G(!1),c=G(0),d=G(0),u=G(0);Je(async()=>{await Ba(),v(),await f(),e.append&&requestAnimationFrame(()=>{p(),f()}),await Ba(),h()});function v(){if(!l(n))return;const{top:k,right:A,bottom:N,height:R}=l(n).getBoundingClientRect(),U=y();M(r,k-U<0&&window.innerHeight-N>k+R,!0);const Y=window.innerWidth-A-U;A+U>window.innerWidth&&(l(n).style.left=`${Y}px`)}function p(){M(o,l(c)>450)}async function f(){if(M(u,0),await new Promise(q=>requestAnimationFrame(q)),!l(n))return;const{top:k,height:A}=l(n).getBoundingClientRect(),N=y(),R=e.append?parseInt(window.getComputedStyle(l(n)).gap):0,U=l(o)?l(d)+R:0,Y=l(r)?window.innerHeight-k-N-U:k+A-U-N;M(u,Math.min(Y,window.innerHeight*.8),!0)}function y(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function h(){var U;if(!((U=l(n))!=null&&U.firstChild))return;const k=l(n).firstChild,{offsetHeight:A,scrollHeight:N,scrollTop:R}=k;N<=A?M(s,!1):M(s,R+A<N)}var _=gh();let b,E;var x=w(_),T=w(x);Ve(T,()=>e.children);var L=S(T,2);{var C=k=>{var A=ph(),N=w(A),R=w(N);vh(R),Ae(3,A,()=>Et,()=>({duration:100})),m(k,A)};B(L,k=>{l(s)&&k(C)})}var j=S(x,2);{var W=k=>{var A=fh(),N=w(A);Ve(N,()=>e.bubble),Ae(7,A,()=>ha,()=>l(a)),m(k,A)};B(j,k=>{e.bubble&&k(W)})}var z=S(j,2);{var I=k=>{var A=hh(),N=w(A);Ve(N,()=>e.append),Ae(7,A,()=>ha,()=>l(a)),Nt(A,"clientHeight",R=>M(d,R)),m(k,A)};B(z,k=>{e.append&&l(o)&&k(I)})}Ze(_,k=>M(n,k),()=>l(n)),V(()=>{b=xe(_,1,"popover svelte-wxwoko",null,b,{flip:l(r),inline:i,"has-bubble":!!e.bubble&&i}),E=Ge(_,"",E,{"--max-height":l(u)?l(u)+"px":null})}),ge("scroll",x,h),Ae(7,x,()=>ha,()=>l(a)),Nt(_,"clientHeight",k=>M(c,k)),m(t,_),le()}var yh=P('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function bh(t,e){re(e,!0);const i=u=>{var v=he(),p=J(v);{var f=y=>{ws(y,{get campaign(){return n}})};B(p,y=>{n&&y(f)})}m(u,v)},a=u=>{var v=he(),p=J(v);{var f=y=>{xs(y,{get campaign(){return r},compact:!0})};B(p,y=>{r&&y(f)})}m(u,v)},n=Ua("top_scroll"),r=Ua("card");let o=G(null);fe(pe.TitlePopoverView,e.title),Ya()&&$t(Rt.TitleInterest,{title:e.title.title,source:Ei.Card}),Je(()=>{s();const u=Date.now();return()=>fe(pe.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function s(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const v=Array.from(u.getClientRects()),f=v.map(h=>h.x).map(h=>Math.abs(h-e.event.clientX)),y=v[f.indexOf(Math.min(...f))];l(o).style.top=y.top+window.scrollY+"px",l(o).style.left=y.left+window.scrollX+"px",l(o).style.height=y.height+"px"}var c=yh(),d=w(c);{let u=H(()=>r?a:null),v=H(()=>n?i:null);mh(d,{get append(){return l(u)},get bubble(){return l(v)},children:(p,f)=>{el(p,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Ze(c,u=>M(o,u),()=>l(o)),m(t,c),le()}let Fn=null,Vi=null;function _h(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Vi&&Hn();const i=t.currentTarget;Fn=i,setTimeout(()=>{Fn===i&&(Vi=kt(bh,{target:ol(),props:{event:t,title:e.title_details}}))},100)}async function Hn(t=!0){if(Vi){const e=Si(Vi,{outro:t});Fn=null,Vi=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function wh(t){if(!Vi)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(fi)||e.closest(hi)||Hn()}function xh(){Fn=null}function kh(){return!!Vi}var Sh=P('<div class="content svelte-c2erhr"><!></div>'),Th=P("<div><!></div>"),Eh=P('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Ph=P('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Ch=P("<!> <!>",1),Ih=P('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function jh(t,e){re(e,!0);const i=D(e,"initialIndex",3,0),a=D(e,"onchange",3,()=>null),n=300;let r,o=G(!1);Je(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>M(o,!0))})});function s(c){a()(c),r.setIndex(c)}Ja(t,{blur:!0,dialog:d=>{var u=Ih(),v=J(u);Ge(v,"",{},{"--transition-duration":"300ms"});var p=w(v);{const h=(E,x)=>{let T=()=>x==null?void 0:x().currentIndex;var L=he(),C=J(L);Le(C,17,()=>e.items,qe,(j,W,z)=>{var I=Th();let k;I.__click=()=>s(z);var A=w(I);{var N=R=>{var U=Sh(),Y=w(U);Ve(Y,()=>e.each,()=>l(W),T),Ae(3,U,()=>Et,()=>({duration:l(o)?n:0})),m(R,U)};B(A,R=>{(Math.abs(z-T())===1||T()===z)&&R(N)})}V(()=>k=xe(I,1,"item svelte-c2erhr",null,k,{active:z===T()})),m(j,I)}),m(E,L)},_=(E,x)=>{let T=()=>x==null?void 0:x().currentIndex,L=()=>x==null?void 0:x().reachedEnd;var C=Ch(),j=J(C);{var W=k=>{var A=Eh();A.__click=()=>s(T()-1);var N=w(A);Xt(N,{size:21,direction:"left",title:"Previous"}),m(k,A)};B(j,k=>{T()>0&&k(W)})}var z=S(j,2);{var I=k=>{var A=Ph();A.__click=()=>s(T()+1);var N=w(A);Xt(N,{size:21,title:"Next"}),m(k,A)};B(z,k=>{L()||k(I)})}m(E,C)};let b=H(()=>l(o)?n:0);Ze(ss(p,{threshold:40,moveThreshold:40,get transitionDuration(){return l(b)},children:h,controls:_,$$slots:{default:!0,controls:!0}}),E=>r=E,()=>r)}var f=S(v,2),y=w(f);Za(y,{size:"42px",onclick:()=>al(),"aria-label":"Close",children:(h,_)=>{Ka(h,{size:24})},$$slots:{default:!0}}),Ae(7,f,()=>ga),m(d,u)},$$slots:{dialog:!0}}),le()}we(["click"]);function zh(t,e){re(e,!0);const i=D(e,"initialIndex",3,0);jh(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:n=>fe(pe.ExploreTitleRailSetIndex,e.titles[n],{index:n}),each:(n,r=bt,o=bt)=>{{let s=H(()=>{var c;return r().sid===((c=e.titles[o()])==null?void 0:c.sid)});el(n,{get title(){return r()},get useVideoBackground(){return l(s)}})}},$$slots:{each:!0}}),le()}const st=[];function Pi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:n=0,returnToTitle:r=null,props:o={}}={}){if(e&&ts(e))return;e==null||e.preventDefault(),st!=null&&st.length&&il();const s=ol(),c={initialScrollPosition:n,...o},d=Ah({type:t,target:s,data:a,props:c});r&&ks({type:t,injection:i,data:r}),ks({type:t,injection:i,data:a,scrollPosition:n,component:d})}function Ah({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?kt(oh,{target:e,props:{participant:i,...a}}):t==="explore"?kt(ch,{target:e,props:{...a}}):t==="titles-rail"?kt(zh,{target:e,props:{titles:i,...a}}):kt(eh,{target:e,props:{title:i,...a}})}function ks({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:n}){st.push({type:t,injection:e,data:i,scrollPosition:a,component:n})}function il(t=!0){st.length&&(qh(),Si(st[st.length-1].component,{outro:t}))}function Lh(t=!0){il(t),st.pop()}function al(t=!0){for(il(t);st.length>0;)st.pop()}function Ss(){return st[st.length-2]||null}function Mh(){if(st.length<2)return;Lh();const t=st.pop();t&&Pi({...t})}function qh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ti?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(st[st.length-1].scrollPosition=e.scrollTop)}function Dh(t,e){if(ts(t))return;let i=t.target;if(!i||(i.hasAttribute(fi)||(i=i.closest(hi)),!i))return;const a=i.getAttribute(fi);if(!a)return;const n=e.find(r=>a===r.key);n&&(t.preventDefault(),dh(()=>{Hn(!1),Pi({event:t,injection:n,data:n.title_details})},!Qr.current&&window.innerWidth>=Ti&&!window.matchMedia("(pointer: coarse)").matches))}var Nh=P(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Rh=P('<!> <a target="_blank"> </a>',1),Oh=P(" <!>.",1),Bh=P("<!> <br/>",1),Fh=P(" <br/>",1),Hh=P('<span class="svelte-1to4glm"><!></span>'),Vh=P('<p class="svelte-1to4glm"></p>');function Wh(t,e){re(e,!0);const i=D(e,"onclickmodal",3,()=>null);function a(c,d){fe(pe.AfterArticlePlaylinkClick,c,{playlink:d})}function n(c,d,u){fe(pe.AfterArticleModalButtonClick,d),i()(c,u)}var r=he(),o=J(r);{var s=c=>{var d=Vh();Le(d,21,()=>e.linkInjections,qe,(u,v)=>{const p=H(()=>{const{key:E,title:x,title_details:T,after_article_style:L}=l(v);return{key:E,title:x,title_details:T,after_article_style:L}}),f=H(()=>{var E;return((E=l(p).title_details)==null?void 0:E.providers)||[]});var y=Hh(),h=w(y);{var _=E=>{var x=Bh(),T=J(x);{var L=j=>{var W=Nh(),z=J(W),I=S(z);I.__click=N=>N.stopPropagation();var k=w(I);k.__click=N=>n(N,l(p).title_details,l(v));var A=w(k);V((N,R)=>{Z(z,`"${l(p).title??""}" ${N??""} `),Z(A,R)},[()=>ve("Is Available To Stream"),()=>ve("View Streaming Options")]),m(j,W)},C=j=>{var W=Oh(),z=J(W),I=S(z);Le(I,17,()=>l(f),qe,(k,A,N)=>{let R=()=>l(A).name,U=()=>l(A).url;var Y=Rh(),q=J(Y);{var O=X=>{var ee=Ye();V(ce=>Z(ee,ce),[()=>N===l(f).length-1?`, ${ve("And")}`:","]),m(X,ee)};B(q,X=>{N&&X(O)})}var K=S(q,2);K.__click=()=>a(l(p).title_details,R());var Q=w(K);V(()=>{se(K,"href",U()),Z(Q,R())}),m(k,Y)}),V(k=>Z(z,`"${l(p).title??""}" ${k??""} `),[()=>ve("Is Available To Stream On")]),m(j,W)};B(T,j=>{l(p).after_article_style==="modal_button"?j(L):j(C,!1)})}m(E,x)},b=E=>{var x=Fh(),T=J(x);V(L=>Z(T,`"${l(p).title??""}" ${L??""} `),[()=>ve("Title Unavailable Suffix")]),m(E,x)};B(h,E=>{l(f).length?E(_):E(b,!1)})}V(()=>se(y,"data-playpilot-injection-key",l(p).key)),m(u,y)}),m(c,d)};B(o,c=>{e.linkInjections.length&&c(s)})}m(t,r),le()}we(["click"]);let Qa=null;function Uh(t,e){var o,s;if(Qa||!e.length)return;const i=document.createElement("div"),a=(o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_selector,n=(a?document.querySelector(a):null)||t[t.length-1],r=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",n.insertAdjacentElement(r,i),Qa=kt(Wh,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>Pi({event:c,injection:d,data:d.title_details})}})}function Gh(){var t;Qa&&(Si(Qa),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Qa=null)}var Kh=P('<p class="svelte-1epbbn0"> </p>');function Yh(t,e){re(e,!1),Ir();var i=Kh(),a=w(i);V(n=>Z(a,n),[()=>{var n,r;return((r=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.in_text_disclaimer_text)||ve("In-Text Disclaimer")}]),m(t,i),le()}let Xa=null;function Zh(t){var r,o,s,c,d,u;if(!((o=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)!=null&&o.in_text_disclaimer_enabled)||Xa)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],n=((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(n,e),Xa=kt(Yh,{target:e})}function Jh(){var t;Xa&&(Si(Xa),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Xa=null)}var Qh=P('<div class="widget svelte-l6zazf" data-testid="widget"><!></div>');function Xh(t,e){re(e,!0);let i=G(null);const a=H(()=>{var c,d;return((d=(c=l(i))==null?void 0:c.parentNode)==null?void 0:d.dataset.heading)||ve("Mentioned In This Article")}),n=H(()=>{const c=[];return e.linkInjections.forEach(d=>{const u=d.title_details;u&&(c.some(v=>v.sid===u.sid)||c.push(u))}),c});var r=he(),o=J(r);{var s=c=>{var d=Qh(),u=w(d);Kr(u,{get titles(){return l(n)},get heading(){return l(a)},onclick:v=>fe(pe.WidgetArticleRailTitleClick,v)}),Ze(d,v=>M(i,v),()=>l(i)),m(c,d)};B(o,c=>{l(n).length&&c(s)})}m(t,r),le()}const $h={"tpi-rail":Xh},eg="[data-playpilot-widget]";let nl=[];function tg(t){if(Ts(),!t.length)return;document.querySelectorAll(eg).forEach(i=>{const a=i.dataset.playpilotWidget||"",n=$h[a];if(!n)return;const r=kt(n,{target:i,props:{linkInjections:t}});nl.push(r)})}function Ts(){nl.forEach(t=>Si(t)),document.querySelectorAll("[data-playpilot-widget]").forEach(t=>t.innerHTML=""),nl=[]}const fi="data-playpilot-injection-key",hi=`[${fi}]`;function ig(t,e={aiInjections:[],manualInjections:[]}){ll(),sg();const i=cg(e);if(!i.length)return[];const a=St(t.map(d=>d.innerText).join(" ")),r=dg(i).filter(d=>a.includes(St(d.sentence))),o={};let s=-1;for(const d of vg(r)){s++;const u=t.findIndex(T=>St(T.innerText).includes(St(d.sentence))),v=t[u];if(!v)continue;const p=Zo(d.title,v,["A"]);if(!(p!=null&&p.nodeValue)||Jo(p)){const T=Zo(d.title,v);if(T&&Jo(T)){o[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:f,linkElement:y}=ag(d);let h=-1,_=!1;In(v.innerHTML,d.title)===1&&(h=v.innerHTML.indexOf(d.title));const{phrase_before:E,phrase_after:x}=ng(v,d);if(h===-1&&(E||x)){const T=[E,d.title,x].filter(Boolean).join(" ");if(h=v.innerHTML.indexOf(T),h===-1){const L=Ud(v.innerHTML,d.title,E||"",x||"");if(L){const{leadingSpaces:C,trailingSpaces:j}=Gd(L.match);y.innerHTML=L.match.trim();const W=L.index+C,z=L.index+L.match.length-j;if(v.innerHTML.slice(W,z).includes("href="))continue;rl(v.innerHTML,d.title,v,f,W,z)&&(h=L.index,_=!0)}}}if(h===-1&&(p!=null&&p.nodeValue)){const T=v.innerHTML.indexOf(p.nodeValue),L=v.innerHTML.indexOf(d.sentence),C=L===-1?v.innerHTML.indexOf(d.sentence.slice(0,20)):-1,j=d.sentence.split(" ")[0],z=In(v.innerHTML,j)===1?v.innerHTML.indexOf(j):-1,I=Od(r.slice(0,s+1),d,["title","sentence"])-1,k=Kd(p.nodeValue,v,I);h=Math.max(T,C,k,z,L,0)}if(h!==-1&&!_&&!rl(v.innerHTML,d.title,v,f,h)){const T=Zd(d.title,v.innerHTML);T>-1?rl(v.innerHTML,d.title,v,f,T):o[d.key]="Injection would have lead to broken HTML."}}lg(r),rg();const c=ug(i);return c.length&&Uh(t,c),document.querySelector(hi)&&Zh(t),tg(r),i.filter(d=>d.title_details).map((d,u)=>{const v=!d.manual&&pg(d,u,i),p=d.duplicate??v;p&&(o[d.key]=v?"Injection was manually removed.":"Injection was marked as duplicate.");const f=document.querySelector(`[${fi}="${d.key}"]`),y=Vn(d)&&!d.inactive&&!d.removed&&!d.after_article&&!f,h=r.find(b=>b.key===d.key),_=y?o[d.key]||(h?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:p,failed:y,failed_message:_,matchingElement:f}})}function ag(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function rl(t,e,i,a,n,r=-1){const o=u=>Array.from(u.querySelectorAll(`a, ${hi}`)).filter(v=>!v.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=o(s),d=s.innerText;return r>0?s.innerHTML=Vd(t,a.outerHTML,n,r):s.innerHTML=Hd(t,e,a.outerHTML,n),Math.abs(s.innerText.length-d.length)>1||c!=o(s)?!1:(i.innerHTML=s.innerHTML,!0)}function ng(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(In(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const r=t.innerText.indexOf(e.title),o=Xo(t,r,r+e.title.length);return{phrase_before:o.before,phrase_after:o.after}}function rg(){const t=Array.from(document.querySelectorAll(`${hi} 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 n of e)a.getPropertyValue(n)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${n}`)}}function lg(t){window.addEventListener("mousemove",wh),window.addEventListener("click",i=>Dh(i,t)),document.querySelectorAll(hi).forEach(i=>{const a=i.dataset.playpilotInjectionKey,n=t.find(r=>a===r.key);n&&(i.addEventListener("mouseenter",r=>{kh()||_h(r,n)}),i.addEventListener("mouseleave",xh))})}function ll(){document.querySelectorAll(hi).forEach(e=>og(e.getAttribute(fi)||"")),Gh(),Jh(),Ts(),al(!1),Hn(!1)}function og(t){var n;const e=document.querySelector(`[${fi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(r=>r.remove());const a=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=a||""}function sg(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(hi)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function cg({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Es(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Ps(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Vn(t)}function Vn(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function dg(t){return Cs(t).filter(e=>e.in_text!==!1&&Ps(e))}function ug(t){return Cs(t).filter(e=>e.after_article===!0&&Ps(e))}function Cs(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)&&Is(i,e)))}function vg(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 pg(t,e,i){return i.some((a,n)=>e!==n&&a.manual&&Is(a,t))}function Is(t,e){return t.title===e.title&&St(t.sentence)===St(e.sentence)}function ol(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function fg(){const t=pi();if(!t)throw new Error("No token was provided");try{return await await Qt(`/domains/config?api-token=${t}`)||null}catch{return null}}var hg=Re('<svg width="8" height="4" viewBox="0 0 8 4" fill="none"><path d="M1 0.5L4 3.5L7 0.5" stroke="currentColor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function gg(t,e){const i=D(e,"expanded",3,!1);var a=hg();let n;V(()=>n=xe(a,0,"svelte-abbsts",null,n,{expanded:i()})),m(t,a)}var mg=Re('<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="17" r="1" fill="var(--playpilot-warning)"></circle><path d="M12 10L12 14" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.44722 18.1056L10.2111 4.57771C10.9482 3.10361 13.0518 3.10362 13.7889 4.57771L20.5528 18.1056C21.2177 19.4354 20.2507 21 18.7639 21H5.23607C3.7493 21 2.78231 19.4354 3.44722 18.1056Z" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function yg(t){var e=mg();m(t,e)}var bg=P('<button><div class="label svelte-1201akx"><!></div> <div class="track svelte-1201akx"><div class="knob svelte-1201akx"></div></div></button>');function sl(t,e){re(e,!0);let i=D(e,"active",15),a=D(e,"fullwidth",3,!1),n=D(e,"label",3,""),r=D(e,"onclick",3,()=>null);function o(){i(!i()),r()(i())}var s=bg();let c;s.__click=o;var d=w(s),u=w(d);Ve(u,()=>e.children),V(()=>{c=xe(s,1,"switch svelte-1201akx",null,c,{active:i(),fullwidth:a()}),se(s,"aria-label",`Toggle ${n()??""} ${i()?"off":"on"}`)}),m(t,s),le()}we(["click"]);var _g=P('<input type="text" autocomplete="off" class="svelte-v3h1om"/>');function cl(t,e){re(e,!0);let i=D(e,"value",15),a=D(e,"label",3,""),n=D(e,"name",3,""),r=D(e,"readonly",3,!1),o=D(e,"oninput",3,()=>null);var s=_g();s.__input=function(...c){var d;(d=o())==null||d.apply(this,c)},V(()=>{se(s,"name",n()),se(s,"aria-label",a()),se(s,"placeholder",a()),s.readOnly=r()}),va(s,i),m(t,s),le()}we(["input"]);var wg=Re('<path d="M13.5833 13.6667L4.41667 13.6667M5.5 1.5H12.5C13.9001 1.5 14.6002 1.5 15.135 1.77248C15.6054 2.01217 15.9878 2.39462 16.2275 2.86502C16.5 3.3998 16.5 4.09987 16.5 5.5V12.5C16.5 13.9001 16.5 14.6002 16.2275 15.135C15.9878 15.6054 15.6054 15.9878 15.135 16.2275C14.6002 16.5 13.9001 16.5 12.5 16.5H5.5C4.09987 16.5 3.3998 16.5 2.86502 16.2275C2.39462 15.9878 2.01217 15.6054 1.77248 15.135C1.5 14.6002 1.5 13.9001 1.5 12.5V5.5C1.5 4.09987 1.5 3.3998 1.77248 2.86502C2.01217 2.39462 2.39462 2.01217 2.86502 1.77248C3.3998 1.5 4.09987 1.5 5.5 1.5Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),xg=Re('<path d="M13.5833 8.58342H4.41667M5.5 1.50009H12.5C13.9001 1.50009 14.6002 1.50009 15.135 1.77258C15.6054 2.01226 15.9878 2.39471 16.2275 2.86512C16.5 3.39989 16.5 4.09996 16.5 5.50009V12.5001C16.5 13.9002 16.5 14.6003 16.2275 15.1351C15.9878 15.6055 15.6054 15.9879 15.135 16.2276C14.6002 16.5001 13.9001 16.5001 12.5 16.5001H5.5C4.09987 16.5001 3.3998 16.5001 2.86502 16.2276C2.39462 15.9879 2.01217 15.6055 1.77248 15.1351C1.5 14.6003 1.5 13.9002 1.5 12.5001V5.50009C1.5 4.09996 1.5 3.39989 1.77248 2.86512C2.01217 2.39471 2.39462 2.01226 2.86502 1.77258C3.3998 1.50009 4.09987 1.50009 5.5 1.50009Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),kg=Re('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function js(t,e){const i=D(e,"align",3,"bottom");var a=kg(),n=w(a);{var r=s=>{var c=wg();m(s,c)},o=s=>{var c=he(),d=J(c);{var u=v=>{var p=xg();m(v,p)};B(d,v=>{i()==="center"&&v(u)},!0)}m(s,c)};B(n,s=>{i()==="bottom"?s(r):s(o,!1)})}m(t,a)}var Sg=P("<div><!></div>");function Wi(t,e){const i=D(e,"type",3,"error"),a=D(e,"fixed",3,!1);var n=Sg();let r;var o=w(n);Ve(o,()=>e.children),V(()=>r=xe(n,1,`alert ${i()??""}`,"svelte-1v44877",r,{fixed:a()})),m(t,n)}var Tg=P("<!> In-text Playlink",1),Eg=P("<!> Bottom Playlink",1),Pg=P('<div class="alert svelte-1fv3ko3"><!></div>'),Cg=P('<div><div class="label svelte-1fv3ko3">Bottom playlinks style</div> <div class="group svelte-1fv3ko3" role="listbox" tabindex="0" aria-label="Playlink type"><button role="option" id="playlinks-in-text">Playlinks sentence</button> <button role="option" id="playlinks-after-article">Modal button</button> <div></div></div></div>'),Ig=P('<div class="switches svelte-1fv3ko3"><!> <!></div> <!> <!>',1);function jg(t,e){re(e,!0);const i=D(e,"linkInjection",7),a=H(()=>i().after_article_style==="modal_button");var n=Ig(),r=J(n),o=w(r);{let p=H(()=>i().in_text??!0);sl(o,{fullwidth:!0,get active(){return l(p)},onclick:f=>{i().in_text=f,i().manual=!0},label:"In-text Playlink",children:(f,y)=>{var h=Tg(),_=J(h);js(_,{align:"center"}),m(f,h)},$$slots:{default:!0}})}var s=S(o,2);{let p=H(()=>i().after_article??!1);sl(s,{fullwidth:!0,get active(){return l(p)},onclick:f=>{i().after_article=f,i().manual=!0},label:"Bottom Playlink",children:(f,y)=>{var h=Eg(),_=J(h);js(_,{align:"bottom"}),m(f,h)},$$slots:{default:!0}})}var c=S(r,2);{var d=p=>{var f=Pg(),y=w(f);Wi(y,{type:"warning",children:(h,_)=>{var b=Ye("At least one layout option must be selected for the playlink to be visible.");m(h,b)},$$slots:{default:!0}}),Ae(3,f,()=>Ga,()=>({duration:200})),m(p,f)};B(c,p=>{Vn(i())||p(d)})}var u=S(c,2);{var v=p=>{var f=Cg(),y=S(w(f),2),h=w(y);h.__click=()=>i().after_article_style="playlinks";let _;var b=S(h,2);b.__click=()=>i().after_article_style="modal_button";let E;var x=S(b,2);let T;V(()=>{se(y,"aria-activedescendant",`playlinks-${l(a)?"after-article":"in-text"}`),se(h,"aria-selected",!l(a)||null),_=xe(h,1,"svelte-1fv3ko3",null,_,{active:!l(a)}),se(b,"aria-selected",l(a)||null),E=xe(b,1,"svelte-1fv3ko3",null,E,{active:l(a)}),T=xe(x,1,"active-marker svelte-1fv3ko3",null,T,{right:l(a)})}),Ae(3,f,()=>Ga,()=>({duration:100})),m(p,f)};B(u,p=>{i().after_article&&p(v)})}m(t,n),le()}we(["click"]);var zg=P('<option class="svelte-1yg5wso"> </option>'),Ag=P('<div class="sent svelte-1yg5wso">Report has been sent, thank you! Closing window...</div>'),Lg=P('<button class="submit svelte-1yg5wso">Send report</button>'),Mg=P('<div class="form svelte-1yg5wso"><div class="heading svelte-1yg5wso">Report issue</div> <div class="info svelte-1yg5wso"><div><strong class="svelte-1yg5wso">Title</strong> </div> <div><strong class="svelte-1yg5wso">Sentence</strong> </div></div> <label for="reason">What would you like to report?</label> <select id="reason" name="reason" class="svelte-1yg5wso"><option class="svelte-1yg5wso">Select an issue...</option><!></select> <div><!></div></div>');function qg(t,e){re(e,!0);const i=[{value:"failed_injection",label:"The link failed to appear on the page."},{value:"layout_issue",label:"The link is breaking the layout or formatting of my page."},{value:"wrong_content",label:"The link points to the wrong movie or show."},{value:"inappropriate_title",label:"The link points to an inappropriate movie or show."},{value:"broken_link",label:"The link is broken or leads to an error page."},{value:"other",label:"My issue is not listed, but please have a look regardless."}];let a=G(""),n=G(!1);function r(){var o,s;l(a)&&(fe(pe.ManualReport,e.linkInjection.title_details,{report_reason:l(a),sid:e.linkInjection.sid,title:e.linkInjection.title,sentence:e.linkInjection.sentence,failed:(o=e.linkInjection.failed)==null?void 0:o.toString(),failed_message:e.linkInjection.failed_message,manual:(s=e.linkInjection.manual)==null?void 0:s.toString()}),M(n,!0),setTimeout(e.onclose,3e3))}Ja(t,{get onclose(){return e.onclose},children:(o,s)=>{var c=Mg(),d=w(c);ft(d,(C,j)=>ze==null?void 0:ze(C,j),()=>2);var u=S(d,2),v=w(u),p=S(w(v)),f=S(v,2),y=S(w(f)),h=S(u,4),_=w(h);_.value=_.__value="";var b=S(_);Le(b,17,()=>i,qe,(C,j)=>{let W=()=>l(j).value,z=()=>l(j).label;var I=zg();I.__click=()=>M(a,W(),!0);var k=w(I),A={};V(()=>{Z(k,z()),A!==(A=W())&&(I.value=(I.__value=W())??"")}),m(C,I)});var E=S(h,2),x=w(E);{var T=C=>{var j=Ag();Ae(1,j,()=>Et,()=>({duration:200})),m(C,j)},L=C=>{var j=Lg();j.__click=r,V(()=>j.disabled=!l(a)),m(C,j)};B(x,C=>{l(n)?C(T):C(L,!1)})}V(C=>{Z(p,`: ${e.linkInjection.title??""}`),Z(y,`:
10
+ `}}function ma(t){return t?t.replace("/src/img",""):null}function ls(t,e=null){return t!=null&&t.length?`${Pd}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var su=P('<img class="svelte-p6g2a"/>');function Ln(t,e){re(e,!0);const i=D(e,"width",3,96),a=D(e,"height",3,144),n=D(e,"lazy",3,!0),r=D(e,"onload",3,()=>null);var o=su();V(s=>{se(o,"src",s),se(o,"alt",`Movie poster for '${e.title.title??""}'`),se(o,"width",i()),se(o,"height",a()),se(o,"loading",n()?"lazy":null)},[()=>ma(e.title.standing_poster)]),ge("error",o,({target:s})=>s.src=zr),ge("load",o,function(...s){var c;(c=r())==null||c.apply(this,s)}),m(t,o),le()}var cu=Re('<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 Ka(t,e){const i=D(e,"size",3,16);var a=cu();V(()=>{se(a,"width",i()),se(a,"height",i())}),m(t,a)}var du=P('<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 uu(t,e){const i=D(e,"embeddable_url",3,"");var a=du(),n=w(a);Ur(n,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var r=S(n,2);r.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var o=S(r,2);o.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=w(o);Ka(s,{size:24}),Ae(3,a,()=>Et,()=>({duration:100})),m(t,a)}we(["click"]);const vu="1304688689641511",pu="https://endpoint-youtube-availability.playpilot.workers.dev";async function os(t){var i,a,n,r;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const o=await fetch(`${pu}/?video_id=${t}`);if(!o.ok)throw new Error("Response was not ok");const s=await o.json();return!((n=s.blocked)!=null&&n[e]||!s.blocked&&s.allowed&&!((r=s.allowed)!=null&&r.includes(e)))}catch{return!1}}let Mn={};function fu(t){const e=ol(),i={onclose:hu,embeddable_url:t.embeddable_url||""};Mn=kt(uu,{target:e,props:i})}function hu(){Mn&&(Si(Mn,{outro:!0}),Mn=null)}function Wr(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 gu(t,e=3){let i=0,a=null;for(;i<e&&!a;){const n=t[i],r=(n==null?void 0:n.embeddable_url)&&Wr(n.embeddable_url);try{r&&await os(r)&&(a=n)}catch{}i++}return a}var mu=Re('<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>'),yu=Re('<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>'),bu=Re('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function _u(t,e){const i=D(e,"muted",3,!1);var a=bu(),n=w(a);{var r=s=>{var c=mu();m(s,c)},o=s=>{var c=yu();m(s,c)};B(n,s=>{i()?s(r):s(o,!1)})}m(t,a)}var wu=P('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),xu=P('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function Ur(t,e){var x;re(e,!0);const i=D(e,"embeddable_url",3,""),a=D(e,"controls",19,()=>[]),n=D(e,"muted",3,!1),r=D(e,"loop",3,!1),o=D(e,"captions",3,!1),s=D(e,"showMuteControls",3,!1),c=H(()=>Wr(i())),d=H(()=>{var T,L;return(((L=(T=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:T.video_playtimes)==null?void 0:L[l(c)||""])||1)-1}),u=((x=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:x.replace("#",""))||"fa548a";let v=G(null),p=G(Be(n()));Je(()=>{if(!l(c))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let T=l(d);const L=setInterval(()=>{T++,window.PlayPilotLinkInjections.video_playtimes[l(c)]=T},1e3);return()=>clearInterval(L)});function f(T=!l(p)){var L,C;l(p)!=T&&((C=(L=l(v))==null?void 0:L.contentWindow)==null||C.postMessage("mute","*")),M(p,T,!0)}var y={toggleMute:f},h=he(),_=J(h);{var b=T=>{var L=xu(),C=J(L);Ze(C,z=>M(v,z),()=>l(v));var j=S(C,2);{var W=z=>{var I=wu();I.__click=()=>f();var k=w(I);_u(k,{get muted(){return l(p)}}),m(z,I)};B(j,z=>{s()&&z(W)})}V(z=>se(C,"src",`https://video.playpilot.net/?video_id=${l(c)??""}&color=${u}&muted=${n()??""}&loop=${r()??""}&captions=${o()??""}&controls=${z??""}&start_time=${l(d)??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),m(T,L)},E=T=>{var L=Ye("Something went wrong");m(T,L)};B(_,T=>{l(c)?T(b):T(E,!1)})}return m(t,h),le(y)}we(["click"]);var ku=P('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function ss(t,e){re(e,!0);let i=D(e,"gap",3,"0"),a=D(e,"fill",3,!0),n=D(e,"transitionDuration",3,300),r=D(e,"threshold",3,30),o=D(e,"moveThreshold",3,0),s=D(e,"currentIndex",15,0),c=D(e,"shown",31,()=>Be([])),d=D(e,"sliderWidth",15,0),u=D(e,"currentScrollPosition",15,0),v=D(e,"maxWidth",15,0),p=D(e,"reachedEnd",15,!1),f=D(e,"distanceToEnd",15,0),y=D(e,"passedThreshold",15,!1),h=D(e,"passedMoveThreshold",15,!1),_=D(e,"allowWheel",3,!1),b=D(e,"end",3,()=>null),E=D(e,"change",3,te=>null),x=D(e,"onend",19,b),T=D(e,"onchange",19,E),L=D(e,"onresize",3,()=>null),C=G(!1),j=G(!1),W=0,z=0,I=G(void 0),k=G(void 0),A=null,N=null;Ue(()=>{l(k)&&ce(),l(k)&&f(v()-u()-d())}),Je(()=>(ie(),()=>A==null?void 0:A.disconnect()));function R(te){const ue=l(k).children.length,be=Math.max(0,Math.min(te,ue-1));X({setIndex:be}),ce()}function U(){M(j,!0),R(s()),requestAnimationFrame(()=>M(j,!1))}function Y(te){oe(te.target)&&(te.preventDefault(),W=Pe(te),M(C,!0))}function q(){if(l(C)){if(!y())X({setIndex:s()});else{const te=u()-z,ue=te>0?1:-1;te!=0&&X({direction:ue})}M(C,!1),y(!1)}}function O(te){if(!l(C))return;const ue=Pe(te),be=z+(W-ue),tt=W-ue;h(Math.abs(tt)>o()),y(Math.abs(u()-z)>r()),h()&&(ee(be-o()*(tt>0?1:-1)),ce())}function K(te){if(!_())return;const{deltaX:ue,deltaY:be}=te;if(Math.abs(ue)<Math.abs(be))return;te.preventDefault();const Fe=u()+ue*20*.02;ee(Fe),ce(),N&&clearTimeout(N),N=setTimeout(()=>{X({direction:ue>0?1:-1})},100)}function Q(te){oe(document.activeElement)&&(te.key=="ArrowLeft"&&R(s()-1),te.key=="ArrowRight"&&R(s()+1))}function X({setIndex:te=-1,direction:ue=1}={}){const be=Ie(),tt=s();s(0);let Fe;for(Fe=0;Fe<be.length;Fe++)if(te!=-1){if(Fe>=te)break}else if(ue>0&&be[Fe]>u()||ue<0&&be[Fe+1]>u())break;s(Math.min(Fe,$().length-1)),ee(be[s()],!0),z=u(),T()&&s()!=tt&&T()(s())}function ee(te,ue=!1){u(te);const be=v()-d();p(u()>=be),p()&&(x()&&x()(),a()&&ue&&u(be))}function ce(){const te=Ie();Array.from(te).forEach((ue,be)=>{u()+d()<ue||c().includes(be)||c([...c(),be])})}function Pe(te){var ue,be;return te.pageX??((be=(ue=te.touches)==null?void 0:ue[0])==null?void 0:be.pageX)}function Ie(){return $().map(te=>te.offsetLeft)}function $(){return Array.from(l(k).children).filter(te=>te instanceof HTMLElement).filter(te=>te.src!="about:blank")}function ie(){A=new ResizeObserver(te=>{for(const ue of te){const be=Array.isArray(ue.contentBoxSize)?ue.contentBoxSize[0]:ue.contentBoxSize;v(be.inlineSize)}L()()}),A.observe(l(k))}function oe(te){return te===l(I)||(te==null?void 0:te.closest(".slider"))===l(I)}var me={setIndex:R,reposition:U},ae=ku();ge("mousedown",Ee,Y),ge("mouseup",Ee,q),ge("mousemove",Ee,O),ge("touchstart",Ee,Y,void 0,!0),ge("touchend",Ee,q),ge("touchmove",Ee,O,void 0,!0),ge("keydown",Ee,Q),ge("resize",Ee,U);var ne=J(ae);let Se;var de=w(ne);let Te;var He=w(de);Ve(He,()=>e.children??bt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:u(),maxWidth:v(),reachedEnd:p(),distanceToEnd:f()})),Ze(de,te=>M(k,te),()=>l(k)),Ze(ne,te=>M(I,te),()=>l(I));var Qe=S(ne,2);return Ve(Qe,()=>e.controls??bt,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:u(),maxWidth:v(),reachedEnd:p(),distanceToEnd:f()})),V(te=>{Se=xe(ne,1,"slider svelte-1gs8ha8",null,Se,{dragging:l(C),"passed-threshold":y()}),Te=Ge(de,"",Te,te)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(l(C)||l(j)?0:n())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ge("wheel",ne,K),Nt(ne,"clientWidth",d),m(t,ae),le(me)}var Su=Re("<title> </title>"),Tu=Re('<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 Xt(t,e){const i=D(e,"direction",3,"right"),a=D(e,"title",3,""),n=D(e,"size",3,16);var r=Tu(),o=w(r);{var s=c=>{var d=Su(),u=w(d);V(()=>Z(u,a())),m(c,d)};B(o,c=>{a()&&c(s)})}V(()=>{xe(r,0,i(),"svelte-1m6nwwy"),se(r,"width",`${n()??""}px`),se(r,"height",`${n()??""}px`)}),m(t,r)}function ze(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Eu=P('<div class="heading svelte-1ayf7b5"> </div>'),Pu=P('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Cu=P('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Iu=P("<!> <!>",1),ju=P('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function qn(t,e){re(e,!0);let i=D(e,"heading",3,""),a=D(e,"onchange",3,()=>null),n=D(e,"onresize",3,()=>null),r=D(e,"slider",15);var o=ju(),s=J(o);{var c=v=>{var p=Eu(),f=w(p);ft(p,(y,h)=>ze==null?void 0:ze(y,h),()=>2),V(()=>Z(f,i())),m(v,p)};B(s,v=>{i()&&v(c)})}var d=S(s,2),u=w(d);Ze(ss(u,{get onchange(){return a()},get onresize(){return n()},allowWheel:!0,controls:(p,f)=>{let y=()=>f==null?void 0:f().setIndex,h=()=>f==null?void 0:f().currentIndex,_=()=>f==null?void 0:f().reachedEnd;var b=Iu(),E=J(b);{var x=C=>{var j=Pu();j.__click=()=>y()(h()-1);var W=w(j);Xt(W,{direction:"left",title:"Previous"}),m(C,j)};B(E,C=>{h()>0&&C(x)})}var T=S(E,2);{var L=C=>{var j=Cu();j.__click=()=>y()(h()+1);var W=w(j);Xt(W,{title:"Next"}),m(C,j)};B(T,C=>{_()||C(L)})}m(p,b)},children:(p,f)=>{var y=he(),h=J(y);Ve(h,()=>e.children),m(p,y)},$$slots:{controls:!0,default:!0}}),p=>r(p),()=>r()),m(t,o),le()}we(["click"]);function Gr(t){return`${Oo}/${t.type}/${t.slug}/`}var zu=P('<img class="video-fallback svelte-12ph9f6" alt=""/>'),Au=P('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),Lu=P('<a class="poster svelte-12ph9f6"><!></a>'),Mu=P('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),qu=P('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),Du=P('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),Nu=P('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),Ru=P('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),Ou=P("<div><!></div>");function Kr(t,e){re(e,!0);let i=D(e,"minimumLength",3,1),a=D(e,"heading",3,""),n=D(e,"size",3,"small"),r=D(e,"aside",3,!1),o=D(e,"expandable",3,!1),s=D(e,"expandedTitle",15,null),c=D(e,"expandedRailKey",15,null),d=D(e,"onclick",3,()=>null),u=D(e,"onexpand",3,()=>null);const v=Cn(),f=un("scope")==="popover"?un("title"):null;let y=G(null),h=G(null),_=G(null),b=!1;Je(()=>{o()&&L()});function E(k,A,N){var U,Y,q,O,K;k==null||k.preventDefault();const R=A[N];if(o()&&!C(R)){const Q=(U=l(y))==null?void 0:U.querySelectorAll(".title")[N],ce=(((Y=l(y))==null?void 0:Y.getBoundingClientRect().right)||0)-Q.getBoundingClientRect().right>Q.clientWidth*2;b=!0,setTimeout(()=>b=!1,500),n()==="flexible"&&!ce?(q=l(h))==null||q.setIndex(N-2):n()==="huge"&&!ce&&((O=l(h))==null||O.setIndex(N)),T(R),k&&u()(R);return}k&&(ba()?Pi({event:k,type:"titles-rail",data:A,returnToTitle:f,props:{initialIndex:N}}):Pi({event:k,data:R,returnToTitle:f}),(K=l(_))==null||K.toggleMute(!0),d()(R))}async function x(){const k=await e.titles,A=await gu(k);A&&(s()||c()&&c()!==v||T(A))}function T(k){c(v),s(k)}function L(){c()===v||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(R=>R.getBoundingClientRect().top>=0).sort((R,U)=>R.getBoundingClientRect().top-U.getBoundingClientRect().top)[0]!==l(y)||(s(null),c(null),x())}function C(k){var A;return c()===v&&k.sid===((A=s())==null?void 0:A.sid)}function j(k,A){o()&&(b||setTimeout(()=>E(null,k,A),250))}var W=Ou();ge("scroll",Ee,L);let z;var I=w(W);Ha(I,()=>e.titles,k=>{qn(k,{get heading(){return a()},children:(A,N)=>{var R=he(),U=J(R);Le(U,16,()=>({length:12}),qe,(Y,q)=>{var O=Ru(),K=S(w(O),4);{var Q=X=>{var ee=Nu(),ce=w(ee);Le(ce,20,()=>({length:3}),qe,(Pe,Ie)=>{var $=Du();m(Pe,$)}),m(X,ee)};B(K,X=>{r()&&X(Q)})}m(Y,O)}),m(A,R)},$$slots:{default:!0}})},(k,A)=>{var N=he(),R=J(N);{var U=Y=>{qn(Y,{get heading(){return a()},onchange:q=>j(l(A),q),onresize:()=>{var q;return(q=l(h))==null?void 0:q.reposition()},get slider(){return l(h)},set slider(q){M(h,q,!0)},children:(q,O)=>{var K=he(),Q=J(K);Le(Q,17,()=>l(A),qe,(X,ee,ce,Pe)=>{const Ie=H(()=>C(l(ee))),$=H(()=>Gr(l(ee))),ie=H(()=>ue=>E(ue,l(A),ce));var oe=qu();let me;var ae=w(oe),ne=w(ae);{var Se=ue=>{var be=Au(),tt=w(be);tt.__click=function(...zt){var At;(At=l(ie))==null||At.apply(this,zt)};var Fe=S(tt,2);{var jt=zt=>{Ze(Ur(zt,{get embeddable_url(){return l(ee).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),At=>M(_,At,!0),()=>l(_))},Ca=zt=>{var At=zu();V(()=>se(At,"src",l(ee).medium_poster)),m(zt,At)};B(Fe,zt=>{l(ee).embeddable_url?zt(jt):zt(Ca,!1)})}V(()=>se(tt,"href",l($))),Ae(2,be,()=>Et,()=>({delay:200,duration:200})),m(ue,be)},de=ue=>{var be=Lu();be.__click=function(...Fe){var jt;(jt=l(ie))==null||jt.apply(this,Fe)};var tt=w(be);Ln(tt,{get title(){return l(ee)},width:96,height:144}),V(()=>se(be,"href",l($))),m(ue,be)};B(ne,ue=>{l(Ie)?ue(Se):ue(de,!1)})}var Te=S(ae,2);Te.__click=function(...ue){var be;(be=l(ie))==null||be.apply(this,ue)};var He=w(Te),Qe=S(Te,2);{var te=ue=>{var be=Mu();be.__click=function(...Fe){var jt;(jt=l(ie))==null||jt.apply(this,Fe)};var tt=w(be);V(()=>Z(tt,l(ee).description)),m(ue,be)};B(Qe,ue=>{r()&&ue(te)})}V(()=>{me=xe(oe,1,"title svelte-12ph9f6",null,me,{expanded:l(Ie)}),se(Te,"href",l($)),Z(He,l(ee).title)}),m(X,oe)}),m(q,K)},$$slots:{default:!0}})};B(R,Y=>{var q;((q=l(A))==null?void 0:q.length)>=i()&&Y(U)})}m(k,N)}),Ze(W,k=>M(y,k),()=>l(y)),V(()=>{z=xe(W,1,`titles ${n()??""}`,"svelte-12ph9f6",z,{"with-aside":r()}),se(W,"data-role",o()?"expandable-rail":null)}),m(t,W),le()}we(["click"]);var Bu=P('<div class="rail svelte-1b834ry"><!></div>'),Fu=P('<div data-testid="explore-home"></div> <!>',1);function Hu(t,e){re(e,!0);let i=G(null),a=G(null),n=G(Be(window.innerWidth));const r=[{heading:"List: Trending",params:{ordering:An.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 o(d={}){var u;try{return(u=await Hr(d))==null?void 0:u.results}catch(v){throw console.log(v),fe(pe.ExploreHomeRailError,null,{message:v.message||v.status.toString()||"",params:d}),new Error(v)}}var s=Fu();ge("scroll",Ee,onscroll);var c=S(J(s),2);Le(c,17,()=>r,qe,(d,u)=>{let v=()=>l(u).heading,p=()=>l(u).params,f=()=>l(u).properties;var y=Bu(),h=w(y);{let _=H(()=>ve(v())),b=H(()=>o(p())),E=H(()=>l(n)>=Ti?"flexible":"huge");Kr(h,En({get heading(){return l(_)},get titles(){return l(b)},get size(){return l(E)},minimumLength:7},f,{onclick:()=>fe(pe.ExploreTitleRailModalView,null,{rail:v()}),onexpand:x=>fe(pe.ExploreTitleRailExpandClick,x,{rail:v()}),get expandedTitle(){return l(i)},set expandedTitle(x){M(i,x,!0)},get expandedRailKey(){return l(a)},set expandedRailKey(x){M(a,x,!0)}}))}m(d,y)}),Sn("innerWidth",d=>M(n,d,!0)),m(t,s),le()}function $t(t,e={}){const i=new Image;i.src=Vu(t,e||{})}function Vu(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([r,o])=>[`cd[${r}]`,o])),a={id:vu,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(r=>r+"="+a[r]).join("&")}`}function cs(t,e={}){return()=>{Ue(()=>$t(t,e))}}function Wu(t,e={}){return i=>{const a=()=>$t(t,e);Ue(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var Uu=P("<button><!></button>");function ya(t,e){const i=D(e,"variant",3,"filled"),a=D(e,"size",3,"base"),n=D(e,"label",3,null),r=D(e,"active",3,!1);var o=Uu();let s;o.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var c=w(o);Ve(c,()=>e.children??bt),V(()=>{s=xe(o,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:r()}),se(o,"aria-label",n())}),m(t,o)}we(["click"]);var Gu=Re('<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 Dn(t,e){const i=D(e,"size",3,14);var a=Gu();V(()=>{se(a,"width",i()),se(a,"height",i())}),m(t,a)}function ds(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let n=a;const r=i.find(c=>c.name===n.name),o=r==null?void 0:r.extra_info.category,s=n.extra_info.category;(o==="RENT"&&s==="BUY"||o==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==n.name),n={...n,extra_info:{...n.extra_info,category:"TVOD"}}),i.push(n)}return i}var Ku=P('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Yr(t,e){re(e,!0);let i=G(Be(Math.random()));var a=he();ge("updateconsent",Ee,()=>M(i,Math.random(),!0));var n=J(a);ca(n,()=>l(i),r=>{var o=he(),s=J(o);{var c=d=>{var u=he(),v=J(u);Le(v,17,()=>e.pixels,qe,(p,f)=>{var y=Ku();V(()=>se(y,"src",l(f))),m(p,y)}),m(d,u)};B(s,d=>{Tt("pixels")&&d(c)})}m(r,o)}),m(t,a),le()}var Yu=P('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Zu(t,e){re(e,!0);const i=D(e,"size",3,30),a=D(e,"onclick",3,()=>null),n=H(()=>e.playlink.name),r=H(()=>e.playlink.url),o=H(()=>e.playlink.logo_url),s=H(()=>e.playlink.pixels);var c=Yu();c.__click=function(...f){var y;(y=a())==null||y.apply(this,f)};let d;var u=w(c),v=S(u,2);{var p=f=>{Yr(f,{get pixels(){return l(s)}})};B(v,f=>{var y;(y=l(s))!=null&&y.length&&f(p)})}V(f=>{se(c,"href",l(r)),se(c,"data-playlink",l(n)),d=Ge(c,"",d,{"--size":`${i()??""}px`}),se(u,"src",f),se(u,"alt",l(n)),se(u,"height",i()),se(u,"width",i())},[()=>ma(l(o))]),m(t,c),le()}we(["click"]);var Ju=P('<span class="more svelte-1plv45z"> </span>'),Qu=P('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Xu=P('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function us(t,e){re(e,!0);const i=D(e,"size",3,30),a=H(()=>ds(e.playlinks).slice(0,3));function n(v){v.stopPropagation()}var r=Xu(),o=w(r);Le(o,17,()=>l(a),qe,(v,p)=>{Zu(v,{get playlink(){return l(p)},onclick:n,get size(){return i()}})});var s=S(o,2);{var c=v=>{var p=Ju(),f=w(p);V(()=>Z(f,`+${e.playlinks.length-l(a).length}`)),m(v,p)};B(s,v=>{e.playlinks.length>l(a).length&&v(c)})}var d=S(s,2);{var u=v=>{var p=Qu();m(v,p)};B(d,v=>{e.playlinks.length||v(u)})}m(t,r),le()}var $u=P("<div>Series</div>"),ev=P("<div> </div>"),tv=P('<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 iv(t,e){re(e,!0);const i=D(e,"onclick",3,()=>null);var a=tv();a.__click=function(...E){var x;(x=i())==null||x.apply(this,E)};var n=w(a),r=w(n);Ln(r,{get title(){return e.title},width:120,height:213,lazy:!0});var o=S(r,2),s=w(o),c=w(s);Dn(c,{size:12});var d=S(c),u=S(s,2);{var v=E=>{var x=$u();m(E,x)};B(u,E=>{e.title.type==="series"&&E(v)})}var p=S(u,2);{var f=E=>{var x=ev(),T=w(x);V(()=>Z(T,`${e.title.length??""} min`)),m(E,x)};B(p,E=>{e.title.length&&E(f)})}var y=S(n,2),h=w(y),_=w(h),b=S(h,2);us(b,{get playlinks(){return e.title.providers},size:20}),V(()=>{Z(d,` ${e.title.imdb_score||"-"}`),Z(_,e.title.title)}),m(t,a),le()}we(["click"]),kc();var av=P('<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 nv(t){var e=av(),i=S(w(e),2),a=w(i);Ge(a,"",{},{width:"60%"}),m(t,e)}var rv=P('<div class="svelte-pkkpyl"> </div>'),lv=P('<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 vs(t,e){var k;re(e,!0);const i=D(e,"onclick",3,()=>null),a=!!((k=window.PlayPilotLinkInjections)!=null&&k.no_affiliate);var n=lv();n.__click=function(...A){var N;(N=i())==null||N.apply(this,A)};var r=w(n),o=w(r);Ln(o,{get title(){return e.title},width:30,height:43,lazy:!0});var s=S(r,2),c=w(s),d=w(c),u=S(c,2),v=w(u),p=w(v);Dn(p,{size:11});var f=S(p),y=S(v,2),h=w(y),_=S(y,2),b=w(_),E=S(_,2);{var x=A=>{var N=rv(),R=w(N);V(()=>Z(R,`${e.title.length??""} min`)),m(A,N)};B(E,A=>{e.title.length&&A(x)})}var T=S(u,2);let L;var C=w(T),j=S(T,2);{var W=A=>{us(A,{get playlinks(){return e.title.providers}})};B(j,A=>{a||A(W)})}var z=S(s,2),I=w(z);Xt(I,{}),V(A=>{Z(d,e.title.title),Z(f,` ${e.title.imdb_score||"-"}`),Z(h,e.title.year),Z(b,A),L=xe(T,1,"description svelte-pkkpyl",null,L,{large:a}),Z(C,e.title.description)},[()=>ve(`Type: ${e.title.type}`)]),m(t,n),le()}we(["click"]);var ov=P('<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 sv(t){var e=ov(),i=S(w(e),2),a=w(i);Ge(a,"",{},{width:"40%"});var n=S(a,2);Ge(n,"",{},{width:"60%"});var r=S(n,2);Ge(r,"",{},{width:"80%"}),m(t,e)}var cv=P(`<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 dv(t){var e=cv();m(t,e)}var uv=P("<div><!></div>"),vv=P("<!> <!>",1),pv=P("<p>Something went wrong</p>"),fv=P('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function hv(t,e){re(e,!0);const i=D(e,"searchQuery",3,""),a=D(e,"filter",19,()=>({}));let n=1,r=G(Be([])),o=null,s=0,c=JSON.stringify(a())+i(),d=G(Be(h())),u=G(0);const v=H(()=>l(u)>500),p=H(()=>l(u)>1400?8:l(u)>900?6:l(u)>600?4:3),f=H(()=>l(v)?iv:vs),y=H(()=>l(v)?nv:sv);Ue(()=>{(i()||s!=0)&&_(i())}),Ue(()=>{a()&&b()});async function h(){s+=1;const N=s,R={page_size:24,page:n};i()&&(R.search=i()),Object.entries(a()).forEach(([U,{type:Y,value:q}])=>{if(Y==="string")R[U]=q;else if(Y==="array")R[U]=q.join(",");else if(Y==="range"){const[O,K]=q;R[U+"_min"]=O,R[U+"_max"]=K}});try{const U=await Hr(R)||{next:null,previous:null,results:[]};return N===s&&M(r,[...l(r),...U.results],!0),U}catch(U){throw console.log(U.status),fe(pe.ExploreResultsError,null,{message:U.message||U.status.toString()||"",params:R}),new Error(U)}}async function _(N){L()&&(o&&clearTimeout(o),o=setTimeout(()=>{E(),M(d,h(),!0),N&&(fe(pe.ExploreSearch,null,{query:N}),Tt("pixels")&&$t(Rt.SearchQuery,{query:N}))},100))}function b(){L()&&(E(),M(d,h(),!0))}function E(){n=1,M(r,[],!0)}function x(){n++,M(d,h(),!0),fe(pe.ExploreShowMore,null,{page:n})}function T(N,R){Pi({event:N,data:R}),fe(pe.ExploreTitleClick,R)}function L(){const N=JSON.stringify(a())+i();return N===c?!1:(c=N,!0)}var C=fv(),j=J(C);let W,z;var I=w(j);Le(I,17,()=>l(r),qe,(N,R)=>{var U=he(),Y=J(U);ca(Y,()=>l(R).sid,q=>{var O=he(),K=J(O);xr(K,()=>l(f),(Q,X)=>{X(Q,{get title(){return l(R)},onclick:ee=>T(ee,l(R))})}),m(q,O)}),m(N,U)});var k=S(I,2);Ha(k,()=>l(d),N=>{var R=he(),U=J(R);Le(U,16,()=>({length:24}),qe,(Y,q)=>{var O=he(),K=J(O);xr(K,()=>l(y),(Q,X)=>{X(Q,{})}),m(Y,O)}),m(N,R)},void 0,N=>{});var A=S(j,2);Ha(A,()=>l(d),null,(N,R)=>{var U=H(()=>{var{next:ee}=l(R);return{next:ee}}),Y=H(()=>l(U).next),q=vv(),O=J(q);{var K=ee=>{var ce=uv();let Pe;var Ie=w(ce);ya(Ie,{size:"large",onclick:x,children:($,ie)=>{var oe=Ye();V(me=>Z(oe,me),[()=>ve("Show More")]),m($,oe)},$$slots:{default:!0}}),V(()=>Pe=xe(ce,1,"show-more svelte-qc99of",null,Pe,{grid:l(v)})),m(ee,ce)};B(O,ee=>{l(Y)&&ee(K)})}var Q=S(O,2);{var X=ee=>{dv(ee)};B(Q,ee=>{var ce;!((ce=l(r))!=null&&ce.length)&&n===1&&ee(X)})}m(N,q)},N=>{var R=pv();m(N,R)}),V(()=>{W=xe(j,1,"titles svelte-qc99of",null,W,{grid:l(v)}),z=Ge(j,"",z,{"--grid-columns":l(p)})}),Nt(j,"clientWidth",N=>M(u,N)),m(t,C),le()}var gv=Re('<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 mv(t){var e=gv();m(t,e)}var yv=P('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function bv(t,e){re(e,!0);let i=G("");var a=yv(),n=w(a),r=w(n);mv(r);var o=S(n,2);o.__input=()=>e.oninput(l(i)),V(s=>se(o,"placeholder",s),[()=>ve("Search Movies And Shows")]),va(o,()=>l(i),s=>M(i,s)),m(t,a),le()}we(["input"]);const _v=[{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 wv(){const t=pi();if(!t)throw new Error("No token was provided");const e={region:await Fr(),page:1,include_count:"false"};return await Qt(`/providers/?api-token=${t}&`+Nr(e))}function xv(t){const e=t-1;return e*e*e+1}function kv(t,{from:e,to:i},a={}){var{delay:n=0,duration:r=C=>Math.sqrt(C)*120,easing:o=xv}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,u]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var v=Sv(t),p=t.clientWidth/i.width/v,f=t.clientHeight/i.height/v,y=e.left+e.width*d,h=e.top+e.height*u,_=i.left+i.width*d,b=i.top+i.height*u,E=(y-_)*p,x=(h-b)*f,T=e.width/i.width,L=e.height/i.height;return{delay:n,duration:typeof r=="function"?r(Math.sqrt(E*E+x*x)):r,easing:o,css:(C,j)=>{var W=j*E,z=j*x,I=C+j*T,k=C+j*L;return`transform: ${c} translate(${W}px, ${z}px) scale(${I}, ${k});`}}}function Sv(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 Tv=Re('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function Ev(t){var e=Tv();m(t,e)}var Pv=Re('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function Cv(t){var e=Pv();m(t,e)}var Iv=P('<div class="icon svelte-dfwzqz"><!></div>'),jv=P('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),zv=P('<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 Av(t,e){re(e,!0);let i=D(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=D(e,"selected",23,()=>[]),n=D(e,"placeholder",19,()=>`${ve("Search")}...`),r=D(e,"onchange",3,()=>null),o=G("");const s=H(c);function c(){var y;return(y=i())!=null&&y.length?l(o)?i().filter(({label:h})=>h.toLowerCase().indexOf(l(o).toLowerCase())!==-1):i():[]}function d(y){const h=a().find(_=>_===y);a(h?a().filter(_=>_!==y):[...a(),y]),r()(a())}var u=zv(),v=J(u),p=w(v),f=S(v,2);Le(f,29,()=>l(s)||[],({label:y,value:h})=>h,(y,h)=>{let _=()=>l(h).label,b=()=>l(h).value;const E=H(()=>!!a().find(z=>z===b()));var x=jv(),T=w(x);let L;T.__click=()=>d(b());var C=w(T),j=S(C),W=w(j);ca(W,()=>l(E),z=>{var I=Iv(),k=w(I);{var A=R=>{Ev(R)},N=R=>{Cv(R)};B(k,R=>{l(E)?R(A):R(N,!1)})}Ae(3,I,()=>ga,()=>({start:.25,duration:100})),m(z,I)}),V(()=>{L=xe(T,1,"option svelte-dfwzqz",null,L,{active:l(E)}),Z(C,`${_()??""} `)}),bd(x,()=>kv,()=>({duration:150})),m(y,x)}),V(()=>se(p,"placeholder",n())),va(p,()=>l(o),y=>M(o,y)),m(t,u),le()}we(["click"]);var Lv=P('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),Mv=P("<div><!> <!></div>");function ps(t,e){re(e,!0);let i=G(!1),a=G(null),n=G(null),r=G("left"),o=G(0),s=G(0);function c(h){const _=h.target;_&&_.closest(".dropdown")!==l(a)&&M(i,!1)}function d(h){M(i,!l(i)),l(i)&&(M(s,0),M(o,0),u(h.target))}async function u(h){if(await Ba(),!l(n))return;const _=16,b=200,E=window.innerHeight,x=window.innerWidth,{top:T}=l(n).getBoundingClientRect(),{left:L}=h.getBoundingClientRect();M(r,L<window.innerWidth/2?"left":"right",!0),M(o,Math.max(Math.min(window.innerHeight-T-_,E*.6),b),!0),await Ba();const{left:C,right:j}=l(n).getBoundingClientRect(),W=x-j;C-_<0?M(s,W):W-_<0&&M(s,W-_)}var v=Mv();ge("click",Ee,c);var p=w(v);Ve(p,()=>e.button,()=>({toggle:d}));var f=S(p,2);{var y=h=>{var _=Lv();let b;var E=w(_);Ve(E,()=>e.content),Ze(_,x=>M(n,x),()=>l(n)),V(()=>b=Ge(_,"",b,{"--max-height":l(o)?`${l(o)}px`:null,"--offset":l(s)?`${l(s)}px`:null})),Ae(3,_,()=>ga,()=>({start:.85,duration:100})),m(h,_)};B(f,h=>{l(i)&&h(y)})}Ze(v,h=>M(a,h),()=>l(a)),V(()=>xe(v,1,`dropdown ${l(r)??""}`,"svelte-fg0dzp")),m(t,v),le()}var qv=P('<span class="label svelte-1mfj6k7"> </span>'),Dv=P('<div class="active-line svelte-1mfj6k7"></div>'),Nv=P('<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 Rv(t,e){re(e,!0);const i=D(e,"range",19,()=>[0,100]),a=D(e,"value",19,i),n=D(e,"label",3,""),r=D(e,"valueAppend",3,""),o=D(e,"formatFunction",3,q=>q.toString()),s=D(e,"onchange",3,()=>null);let c=i(),d=H(()=>$i(c,2)),u=G(Be(l(d)[0])),v=G(Be(l(d)[1]));const p=H(()=>l(u)!==i()[0]||l(v)!==i()[1]),f=H(()=>100/(i()[1]-i()[0])*(l(u)-i()[0])),y=H(()=>100+100/(i()[1]-i()[0])*(l(v)-i()[1])-l(f)),h=H(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(l(u)-l(v))<5);Ue(()=>{_(a())}),Ue(()=>{M(v,Math.max(l(v),l(u)+1),!0),M(v,Math.min(l(v),i()[1]),!0),M(u,Math.min(l(u),l(v)-1),!0),M(u,Math.max(l(u),i()[0]),!0)});function _(q){(O=>{var K=$i(O,2);M(u,K[0],!0),M(v,K[1],!0)})(q)}function b(){requestAnimationFrame(()=>s()([l(u),l(v)]))}var E=Nv(),x=w(E);{var T=q=>{var O=qv(),K=w(O);V((Q,X)=>Z(K,`${n()??""}: ${Q??""}—${X??""} ${r()??""}`),[()=>o()(l(u)),()=>o()(l(v))]),m(q,O)};B(x,q=>{n()&&q(T)})}var L=S(x,2);let C;var j=w(L);j.__mouseup=b,j.__touchend=b,j.__input=function(...q){};let W;var z=S(j,2);z.__mouseup=b,z.__touchend=b,z.__input=function(...q){};let I;var k=S(z,2),A=w(k),N=S(k,2),R=w(N),U=S(N,2);{var Y=q=>{var O=Dv();let K;V(()=>K=Ge(O,"",K,{left:l(f)+"%","--width":l(y)+"%"})),m(q,O)};B(U,q=>{l(p)&&q(Y)})}V(()=>{C=xe(L,1,"range svelte-1mfj6k7",null,C,{halved:l(h)}),se(j,"min",i()[0]),se(j,"max",i()[1]),W=xe(j,1,"svelte-1mfj6k7",null,W,{active:l(p)}),se(z,"min",i()[0]),se(z,"max",i()[1]),I=xe(z,1,"svelte-1mfj6k7",null,I,{active:l(p)}),Z(A,l(u)),Z(R,l(v))}),va(j,()=>l(u),q=>M(u,q)),va(z,()=>l(v),q=>M(v,q)),m(t,E),le()}we(["mouseup","touchend","input"]);function Zr(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 Ov=P(" <!>",1),Bv=P('<p class="loading"> </p>'),Fv=P('<p class="error"> </p>'),Hv=P('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),Vv=P('<div data-testid="filter-item"><!></div>');function Wv(t,e){re(e,!0);let i=D(e,"filter",7),a=D(e,"onchange",3,()=>null),n=D(e,"data",7,null),r=D(e,"fetchData",3,null),o=D(e,"range",3,null),s=D(e,"valueAppend",3,"");const c=H(()=>Zr(i()[e.param],o()));let d=G(!!r());Ue(()=>{!n()&&r()&&u()});async function u(){try{M(d,!0),n(await r()())}catch{fe(pe.ExploreFetchProvidersFailed)}finally{M(d,!1)}}function v(h,_){if(fe(pe.ExploreSetFilter,null,{key:e.param,value:h,total_filter:i()}),!h){delete i()[e.param];return}i()[e.param]={type:_,value:h},a()()}var p=Vv();let f;var y=w(p);ps(y,{button:(b,E)=>{let x=()=>E==null?void 0:E().toggle;ya(b,{variant:"border",size:"large",get active(){return l(c)},get onclick(){return x()},children:(T,L)=>{var C=Ov(),j=J(C),W=S(j);Xt(W,{direction:"down"}),V(()=>Z(j,`${e.label??""} `)),m(T,C)},$$slots:{default:!0}})},content:b=>{var E=Hv(),x=w(E);{var T=z=>{var I=Bv(),k=w(I);V(A=>Z(k,`${A??""}...`),[()=>ve("Loading")]),m(z,I)},L=z=>{var I=he(),k=J(I);{var A=N=>{var R=Fv(),U=w(R);V(Y=>Z(U,Y),[()=>ve("An Error Occurred")]),m(N,R)};B(k,N=>{r()&&!n()&&N(A)},!0)}m(z,I)};B(x,z=>{l(d)?z(T):z(L,!1)})}var C=S(x,2);{var j=z=>{const I=H(()=>{var k;return(k=i()[e.param])==null?void 0:k.value});Av(z,{get options(){return n()},get selected(){return l(I)},onchange:k=>v(k,"array")})},W=z=>{var I=he(),k=J(I);{var A=N=>{const R=H(()=>{var U;return(U=i()[e.param])==null?void 0:U.value});Rv(N,{get range(){return o()},get value(){return l(R)},get label(){return e.label},get valueAppend(){return s()},onchange:U=>v(U,"range")})};B(k,N=>{o()&&N(A)},!0)}m(z,I)};B(C,z=>{n()?z(j):z(W,!1)})}m(b,E)},$$slots:{button:!0,content:!0}}),V(()=>f=xe(p,1,"filter-item svelte-er0ukh",null,f,{active:l(c)})),m(t,p),le()}var Uv=P(" <!>",1),Gv=P("<button> </button>"),Kv=P('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Yv(t,e){re(e,!0);const i=D(e,"filter",7),a=D(e,"onchange",3,()=>null),n="ordering",r=[{label:"Popularity",value:An.Popular},{label:"New",value:An.New},{label:"Top Rated",value:An.Best}],o=H(()=>{var c;return((c=r.find(({value:d})=>{var u;return d===((u=i()[n])==null?void 0:u.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[n]={type:"string",value:c}:delete i()[n],a()()}ps(t,{button:(u,v)=>{let p=()=>v==null?void 0:v().toggle;ya(u,{variant:"link",get onclick(){return p()},children:(f,y)=>{var h=Uv(),_=J(h),b=S(_);Xt(b,{direction:"down"}),V(E=>Z(_,`${E??""} `),[()=>ve(l(o))]),m(f,h)},$$slots:{default:!0}})},content:u=>{var v=Kv();Le(v,21,()=>r,qe,(p,f,y,h)=>{let _=()=>l(f).label,b=()=>l(f).value;const E=H(()=>{var C;return b()===((C=i()[n])==null?void 0:C.value)});var x=Gv();let T;x.__click=()=>s(b());var L=w(x);V(C=>{T=xe(x,1,"option svelte-1ibt2k4",null,T,{active:l(E)}),Z(L,C)},[()=>ve(_())]),m(p,x)}),m(u,v)},$$slots:{button:!0,content:!0}}),le()}we(["click"]);var Zv=Re('<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 Jv(t){var e=Zv();m(t,e)}var Qv=P('<button class="item svelte-cwy6fi"><!> <!></button>'),Xv=P('<div class="active-filter svelte-cwy6fi"></div>');function $v(t,e){re(e,!0);function i(r){delete e.filter[r]}function a(r){let o=r.slice(0,30).trim();return r.length>o.length&&(o+="..."),o}var n=Xv();Le(n,21,()=>Object.entries(e.filter),qe,(r,o)=>{var s=H(()=>$i(l(o),2));let c=()=>l(s)[0],d=()=>l(s)[1];const u=H(()=>{const{label:y,range:h,data:_,fetchData:b}=e.items.find(E=>c()===E.param)||{};return{label:y,range:h,data:_,fetchData:b}});var v=he(),p=J(v);{var f=y=>{var h=Qv();h.__click=()=>i(c());var _=w(h);{var b=T=>{var L=he(),C=J(L);Ha(C,()=>{var j,W;return((W=(j=l(u)).fetchData)==null?void 0:W.call(j))||l(u).data},null,(j,W)=>{var z=Ye();V(I=>Z(z,I),[()=>{var I;return a((I=l(W))==null?void 0:I.filter(k=>d().value.includes(k.value)).map(k=>k.label).join(" + "))}]),m(j,z)}),m(T,L)},E=T=>{var L=he(),C=J(L);{var j=z=>{var I=Ye();V(k=>Z(I,`${l(u).label??""}: ${k??""}`),[()=>d().value.join(" - ")]),m(z,I)},W=z=>{var I=Ye();V(k=>Z(I,k),[()=>ve(d().value)]),m(z,I)};B(C,z=>{d().type==="range"?z(j):z(W,!1)},!0)}m(T,L)};B(_,T=>{d().type==="array"?T(b):T(E,!1)})}var x=S(_,2);Ka(x,{size:8}),m(y,h)};B(p,y=>{Zr(d(),l(u).range)&&y(f)})}m(r,v)}),m(t,n),le()}we(["click"]);var ep=P("<div><!></div>"),tp=P("<!> <!>",1),ip=P('<div class="sorting svelte-11dg01g"><!></div>'),ap=P('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function np(t,e){re(e,!0);const i=D(e,"limit",3,!0),a=D(e,"showSorting",3,!0),n=D(e,"searchQuery",3,""),r=D(e,"onchange",3,()=>null),o=D(e,"onempty",3,()=>null),s=3,c=[{label:ve("Services"),param:"providers",fetchData:async()=>(await wv()).map(L=>({label:L.name,value:L.slug}))},{label:ve("Genres"),param:"genres",data:zn.filter(L=>parseInt(L.slug)<900).map(L=>({label:ve(L.name),value:L.slug}))},{label:ve("IMDb"),param:"imdb_score",range:[0,10]},{label:ve("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ve("Runtime"),param:"length",range:[0,180],valueAppend:ve("Minutes")},{label:ve("Countries"),param:"country_codes",data:_v}];let d=G(Be(i())),u=!1;Ue(()=>{Object.keys(e.filter).some(C=>{const{range:j}=c.find(W=>C===W.param)||{};return Zr(e.filter[C],j)})||n()?u=!0:u&&(u=!1,o()())});var v=ap(),p=J(v);let f;var y=w(p);Le(y,21,()=>l(d)?c.slice(0,s):c,qe,(L,C)=>{var j=ep(),W=w(j);Wv(W,En({get filter(){return e.filter},get onchange(){return r()}},()=>l(C))),Ae(3,j,()=>ga,()=>({start:.75,duration:100})),m(L,j)});var h=S(y,2),_=w(h);{var b=L=>{ya(L,{variant:"link",onclick:()=>M(d,!l(d)),children:(C,j)=>{var W=tp(),z=J(W);Jv(z);var I=S(z),k=S(I);{let A=H(()=>l(d)?"down":"up");Xt(k,{get direction(){return l(A)}})}V(A=>Z(I,` ${A??""} `),[()=>ve("All Filters")]),m(C,W)},$$slots:{default:!0}})};B(_,L=>{i()&&L(b)})}var E=S(_,2);{var x=L=>{var C=ip(),j=w(C);Yv(j,{get filter(){return e.filter},get onchange(){return r()}}),Ae(3,C,()=>ha,()=>({x:5,duration:100})),m(L,C)};B(E,L=>{a()&&L(x)})}var T=S(p,2);$v(T,{get filter(){return e.filter},get items(){return c}}),V(()=>f=xe(p,1,"filter svelte-11dg01g",null,f,{limit:i()})),m(t,v),le()}function rp(t,e){re(e,!0);const i=D(e,"trackingEvent",19,()=>pe.ExploreAnyClick);function a(o){var x;const s=o.target,c=s.parentElement;if(s===document.body)return;const d=`${c==null?void 0:c.nodeName.toLowerCase()}${n(c)}`,u=`${s==null?void 0:s.nodeName.toLowerCase()}${n(s)}`,v=`${d} > ${u}`,p=s.closest("a, button"),f=r(s)||r(c)||p&&r(p),y=f?(x=f.textContent)==null?void 0:x.slice(0,30):"",h=s.getAttribute("aria-label")||(p==null?void 0:p.getAttribute("aria-label"))||(c==null?void 0:c.getAttribute("aria-label")),_=s.placeholder,b=s.alt,E=(y||h||_||b||"").trim();fe(i(),null,{selector:v,text:E})}function n(o){if(!o)return"";const s=Array.from(o.classList).filter(c=>!c.startsWith("s-"));return s.length?"."+s.join("."):""}function r(o){var s;return(s=o==null?void 0:o.childNodes)!=null&&s.length&&Array.from(o.childNodes).find(c=>{var d;return c.nodeName==="#text"&&!!((d=c.textContent)!=null&&d.trim())})||null}ge("click",Ee,a),le()}function lp(t,e){re(e,!0);const i=D(e,"trackingEvent",19,()=>pe.ExploreScrollDistance),a={25:!1,50:!1,75:!1,100:!1};function n(){const r=window.scrollY,o=window.innerHeight,d=100/(e.element.clientHeight+r+e.element.getBoundingClientRect().top)*(r+o);for(const u in a)a[u]||d<parseInt(u)||(a[u]=!0,fe(i(),null,{scroll_percentage:u+"%"}))}ge("scroll",Ee,n),le()}var op=P('<p class="description svelte-l2apr8"> </p>'),sp=P('<div class="filter svelte-l2apr8"><!></div>'),cp=P('<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 dp(t,e){re(e,!0);let i=D(e,"navigate",3,()=>null),a=D(e,"searchQuery",15,""),n=D(e,"filter",27,()=>Be({})),r=null,o=G(null),s=G(Be(window.innerWidth));Ue(()=>{var z;M(o,((z=r==null?void 0:r.closest(Jr))==null?void 0:z.style.height)||null,!0)}),Je(async()=>{var z;fe(pe.ExplorePageView),(z=window.PlayPilotLinkInjections.ads)!=null&&z.length||(window.PlayPilotLinkInjections.ads=await ns())});var c=cp(),d=J(c);let u;var v=w(d),p=w(v),f=S(w(p),2),y=w(f);ft(f,z=>ze==null?void 0:ze(z));var h=S(f,2),_=w(h);ft(h,(z,I)=>ze==null?void 0:ze(z,I),()=>2);var b=S(h,2);{var E=z=>{var I=op(),k=w(I);V(A=>Z(k,A),[()=>ve("Streaming Guide Description")]),m(z,I)};B(b,z=>{ba()||z(E)})}var x=S(v,2);bv(x,{oninput:z=>a(z)});var T=S(x,2);{var L=z=>{var I=sp(),k=w(I);{let A=H(()=>l(s)<500),N=H(()=>!a());np(k,{get filter(){return n()},get searchQuery(){return a()},get limit(){return l(A)},get showSorting(){return l(N)},onchange:()=>i()("results"),onempty:()=>i()("home")})}m(z,I)};B(T,z=>{ba()&&z(L)})}var C=S(T,2);Ve(C,()=>e.children),Ze(d,z=>r=z,()=>r);var j=S(d,2);rp(j,{});var W=S(j,2);lp(W,{get element(){return r}}),V((z,I)=>{u=Ge(d,"",u,{height:l(o),"--playpilot-explore-width":`${l(s)??""}px`}),Z(y,z),Z(_,I)},[()=>ve("Streaming Guide"),()=>ve("Streaming Guide Subheading")]),Nt(d,"clientWidth",z=>M(s,z)),m(t,c),le()}function fs(t,e){re(e,!0);const i=[{key:"results",component:hv}];ba()&&i.unshift({key:"home",component:Hu});let a=G(Be(i[0])),n=G(""),r=G(Be({}));const o=H(()=>l(a).component);Ue(()=>{l(n)&&M(a,i.find(c=>c.key==="results"),!0)});function s(c){M(a,i.find(d=>d.key===c)||i[0],!0),fe(pe.ExploreNavigate,null,{route:l(a).key})}dp(t,{navigate:s,get searchQuery(){return l(n)},set searchQuery(c){M(n,c,!0)},get filter(){return l(r)},set filter(c){M(r,c,!0)},children:(c,d)=>{var u=he(),v=J(u);xr(v,()=>l(o),(p,f)=>{f(p,{get searchQuery(){return l(n)},get filter(){return l(r)},navigate:s})}),m(c,u)},$$slots:{default:!0}}),le()}const Jr="[data-playpilot-explore]",up="[data-playpilot-pre-consent-explore]",hs="playpilot-explore-custom-style";let Nn=null;function Rn(){var e;const t=document.querySelector(Jr);t&&(On(),(e=document.querySelector(up))==null||e.remove(),t.innerHTML="",Nn=kt(fs,{target:t}),pp())}function On(){var t;Nn&&(Si(Nn),Nn=null,(t=document.querySelector("#"+hs))==null||t.remove())}function vp(){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:n}=t;if(!e)return!1;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const r=document.querySelector(e);if(!r)return!1;const o=r.cloneNode(!0),s=o.nodeName==="A"?o:o.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,o.dataset.playpilotExploreNavigationElement="true",r.insertAdjacentElement(n||"afterend",o),!0}function pp(){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=hs,document.body.appendChild(e)}function ba(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Ya(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?Tt("pixels"):!1}function Za(t,e){re(e,!0);const i=D(e,"size",3,"32px"),a=D(e,"onclick",3,()=>null),n=Ro(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var r=he(),o=J(r);ko(o,()=>e.href?"a":"button",!1,(s,c)=>{zo(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...n,[ua]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=he(),u=J(d);Ve(u,()=>e.children??bt),m(c,d)}),m(t,r),le()}var fp=P("<div></div>");function hp(t,e){re(e,!0);let i=D(e,"threshold",3,100),a=D(e,"isDragging",15,!1),n=D(e,"passedThreshold",15,!1),r=D(e,"onpassed",3,()=>null),o=G(0),s=G(0),c=G(null),d=G(!1);const u=H(()=>Math.max(l(s)-l(o),0));Ue(()=>{n(l(u)>i())});function v(b){if(b){a(!0),M(d,!0),M(o,b.touches[0].pageY,!0);for(const E of e.targets)E.style.transitionDuration="0ms"}}function p(b){if(b&&a()){b.preventDefault(),M(s,b.touches[0].pageY,!0),l(c).style.transform=`translateY(${l(u)}px)`;for(const E of e.targets)E.style.top=`${l(u)}px`}}function f(){if(a()){if(a(!1),n())r()();else{l(c).removeAttribute("style");for(const b of e.targets)b.style.removeProperty("transition"),requestAnimationFrame(()=>b.style.top="0px")}M(o,0),M(s,0)}}var y={start:v,move:p,end:f},h=fp();ge("touchmove",Ee,p,void 0,!0),ge("touchend",Ee,f);let _;return h.__touchstart=v,Ze(h,b=>M(c,b),()=>l(c)),V(()=>_=xe(h,1,"handle svelte-1xqgdsn",null,_,{dragging:a(),dragged:l(d)})),m(t,h),le(y)}we(["touchstart"]);var gp=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],mp=["difference","intersection","symmetricDifference","union"],gs=!1;const Jn=class Jn extends Set{constructor(i){super();_e(this,Pa);_e(this,Ea,new Map);_e(this,Bt,G(0));_e(this,Ai,G(0));_e(this,Zn,ui||-1);if(i){for(var a of i)super.add(a);F(this,Ai).v=super.size}gs||Oe(this,Pa,Hs).call(this)}has(i){var a=super.has(i),n=F(this,Ea),r=n.get(i);if(r===void 0){if(!a)return l(F(this,Bt)),!1;r=Oe(this,Pa,Fs).call(this,!0),n.set(i,r)}return l(r),a}add(i){return super.has(i)||(super.add(i),M(F(this,Ai),super.size),wi(F(this,Bt))),this}delete(i){var a=super.delete(i),n=F(this,Ea),r=n.get(i);return r!==void 0&&(n.delete(i),M(r,!1)),a&&(M(F(this,Ai),super.size),wi(F(this,Bt))),a}clear(){if(super.size!==0){super.clear();var i=F(this,Ea);for(var a of i.values())M(a,!1);i.clear(),M(F(this,Ai),0),wi(F(this,Bt))}}keys(){return this.values()}values(){return l(F(this,Bt)),super.values()}entries(){return l(F(this,Bt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return l(F(this,Ai))}};Ea=new WeakMap,Bt=new WeakMap,Ai=new WeakMap,Zn=new WeakMap,Pa=new WeakSet,Fs=function(i){return ui===F(this,Zn)?G(i):Kt(i)},Hs=function(){gs=!0;var i=Jn.prototype,a=Set.prototype;for(const n of gp)i[n]=function(...r){return l(F(this,Bt)),a[n].apply(this,r)};for(const n of mp)i[n]=function(...r){l(F(this,Bt));var o=a[n].apply(this,r);return new Jn(o)}};let Bn=Jn;class yp{constructor(e,i){_e(this,nn);_e(this,rn);ye(this,nn,e),ye(this,rn,Rl(i))}get current(){return F(this,rn).call(this),F(this,nn).call(this)}}nn=new WeakMap,rn=new WeakMap;const bp=/\(.+\)/,_p=new Set(["all","print","screen","and","or","not","only"]);class wp extends yp{constructor(e,i){let a=bp.test(e)||e.split(/[\s,]+/).some(r=>_p.has(r.trim()))?e:`(${e})`;const n=window.matchMedia(a);super(()=>n.matches,r=>id(n,"change",r))}}const Qr=new wp("(prefers-reduced-motion: reduce)");function Xr(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(r){if(r.key!=="Tab")return;const o=document.activeElement;if(!o)return;const s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];r.shiftKey&&o===c&&(d.focus(),r.preventDefault()),!r.shiftKey&&o===d&&(c.focus(),r.preventDefault())}const a=document.activeElement,[n]=e();return a!=null&&a.matches(":focus-visible")&&(n==null||n.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function xp(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var kp=P("<div><!></div>"),Sp=P('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Tp=P('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Ep=P('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Pp=P("<div><!></div>"),Cp=P('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Ip=P('<div data-testid="modal"><!> <!> <!> <!></div>');function Ja(t,e){re(e,!0);const i=O=>{var K=kp(),Q=w(K);Za(Q,{onclick:T,"aria-label":"Close",children:(X,ee)=>{Ka(X,{})},$$slots:{default:!0}}),Ze(K,X=>M(y,X),()=>l(y)),V(()=>xe(K,1,`close ${o()??""}`,"svelte-1rbidhv")),Ae(7,K,()=>x),m(O,K)},a=D(e,"tall",3,!1),n=D(e,"wide",3,!1),r=D(e,"blur",3,!1),o=D(e,"closeButtonStyle",3,"shadow"),s=D(e,"initialScrollPosition",3,0),c=D(e,"onscroll",3,()=>null),d=D(e,"onclose",3,()=>null),u="#playpilot";let v=G(0),p=G(null),f=G(null),y=G(null),h=G(0),_=G(!1);const b=H(()=>l(v)<Ti);Ue(()=>{var O;l(v)&&M(h,((O=l(f))==null?void 0:O.offsetTop)||0,!0)}),Ue(()=>{setTimeout(()=>{var O;return M(h,((O=l(f))==null?void 0:O.offsetTop)||0,!0)})}),vn("scope","modal"),Je(()=>{const O=xp();return O.classList.add("playpilot-modal-open"),M(_,!!Ss()),l(_)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(E),()=>{var K;O.classList.remove("playpilot-modal-open"),!Ss()&&((K=history.state)!=null&&K.modal)&&history.back()}});function E(){const O=window.innerWidth>Ti?l(p):l(f);O==null||O.scrollTo(0,s())}function x(O){return Qr.current?Et(O,{duration:0}):l(b)?ha(O,{duration:250,y:window.innerHeight,opacity:1}):ga(O,{duration:150,start:.85})}function T(){d()(),al()}function L(O){O.target===l(p)&&T()}var C=Ip();ge("keydown",Ee,({key:O})=>{O==="Escape"&&T()}),ge("hashchange",Ee,T);let j;C.__click=L;let W;var z=w(C);{var I=O=>{var K=Sp(),Q=w(K);Ve(Q,()=>e.prepend),Ae(7,K,()=>x),m(O,K)};B(z,O=>{e.prepend&&O(I)})}var k=S(z,2);{var A=O=>{var K=Tp(),Q=w(K);Ve(Q,()=>e.bubble),Ae(7,K,()=>x),m(O,K)};B(k,O=>{e.bubble&&O(A)})}var N=S(k,2);{var R=O=>{var K=Ep(),Q=w(K);{var X=ee=>{{let ce=H(()=>[l(f),l(y)]);hp(ee,{get targets(){return l(ce)},onpassed:T})}};B(Q,ee=>{l(f)&&l(y)&&ee(X)})}Ae(7,K,()=>x),m(O,K)};B(N,O=>{l(b)&&O(R)})}var U=S(N,2);{var Y=O=>{var K=he(),Q=J(K);Ve(Q,()=>e.dialog),m(O,K)},q=O=>{var K=Cp(),Q=J(K),X=w(Q);{var ee=oe=>{var me=Pp(),ae=w(me);Za(ae,{onclick:()=>Mh(),"aria-label":"Back",children:(ne,Se)=>{Xt(ne,{direction:"left"})},$$slots:{default:!0}}),V(()=>xe(me,1,`close back ${o()??""}`,"svelte-1rbidhv")),m(oe,me)};B(X,oe=>{l(_)&&oe(ee)})}var ce=S(X,2);Ve(ce,()=>e.children??bt);var Pe=S(ce,2);{var Ie=oe=>{i(oe)};B(Pe,oe=>{l(b)||oe(Ie)})}Ze(Q,oe=>M(f,oe),()=>l(f));var $=S(Q,2);{var ie=oe=>{i(oe)};B($,oe=>{l(b)&&oe(ie)})}ge("scroll",Q,function(...oe){var me;(me=c())==null||me.apply(this,oe)}),Ae(7,Q,()=>x),m(O,K)};B(U,O=>{e.dialog?O(Y):O(q,!1)})}Ze(C,O=>M(p,O),()=>l(p)),ft(C,O=>Xr==null?void 0:Xr(O)),V(()=>{j=xe(C,1,"modal svelte-1rbidhv",null,j,{wide:n(),tall:a(),"background-blur":r(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),W=Ge(C,"",W,{"--dialog-offset":`${l(h)??""}px`})}),Sn("innerWidth",O=>M(v,O,!0)),Ae(5,C,()=>Et,()=>({duration:150})),Ae(6,C,()=>Et,()=>({duration:150,delay:100})),m(t,C),le()}we(["click"]);var jp=P('<div class="genre svelte-1mphbln"> </div>'),zp=P('<button class="genre expand svelte-1mphbln"> </button>'),Ap=P("<!> <!>",1);function Lp(t,e){re(e,!0);let i=G(!1);const a=H(()=>l(i)?e.genres:[e.genres[0]]);var n=Ap(),r=J(n);Le(r,17,()=>l(a),qe,(c,d)=>{const u=H(()=>{var y;return(y=zn.find(h=>h.slug===l(d)))==null?void 0:y.name});var v=he(),p=J(v);{var f=y=>{var h=jp(),_=w(h);_n(h,()=>Ya()?cs(Rt.GenreInterest,{genre:l(u),source:Ei.Card}):null),V(b=>Z(_,b),[()=>ve(l(u))]),m(y,h)};B(p,y=>{l(u)&&y(f)})}m(c,v)});var o=S(r,2);{var s=c=>{var d=zp();d.__click=()=>M(i,!0);var u=w(d);V(()=>Z(u,`+${e.genres.length-1}`)),m(c,d)};B(o,c=>{!l(i)&&e.genres.length>1&&c(s)})}m(t,n),le()}we(["click"]);var Mp=P('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),qp=P('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function $r(t,e){const i=D(e,"small",3,!1);let a=G(!1);function n(u){u.preventDefault(),u.stopPropagation(),M(a,!l(a))}var r=qp();r.__click=n;var o=w(r);let s;var c=S(o,2);{var d=u=>{var v=Mp(),p=w(v);V(()=>Z(p,e.disclaimer)),Ae(3,v,()=>Et,()=>({duration:50})),m(u,v)};B(c,u=>{l(a)&&u(d)})}V(()=>s=xe(o,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),m(t,r)}we(["click"]);var Dp=P('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Np=P('<span class="cta svelte-13ka2ap"> </span>'),Rp=P('<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 ms(t,e){re(e,!0);const i=D(e,"disclaimer",3,""),a=D(e,"hideCategory",3,!1),n=D(e,"onclick",3,()=>null),r=H(()=>e.playlink.name),o=H(()=>e.playlink.url),s=H(()=>e.playlink.logo_url),c=H(()=>e.playlink.highlighted),d=H(()=>e.playlink.cta_text),u=H(()=>e.playlink.action_text),v=H(()=>e.playlink.pixels),p=H(()=>e.playlink.extra_info.category),f=H(()=>Ya()&&!l(c)),y={AVOD:ve("Stream"),SVOD:ve("Stream"),BUY:ve("Buy"),RENT:ve("Rent"),TVOD:ve("Rent Or Buy")};let h=G(0);var _=he(),b=J(_);ko(b,()=>{var E,x;return!((x=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&x.require_affiliate_consent)||Tt("affiliate")?"a":"span"},!1,(E,x)=>{_n(E,()=>l(f)?cs(Rt.ProviderInterest,{provider:e.playlink.slug,source:Ei.Card}):null),_n(E,()=>l(f)?Wu(Rt.ProviderClick,{provider:e.playlink.slug}):null),zo(E,()=>({onclick:n(),href:l(o),target:"_blank",class:"playlink","data-playlink":l(r),rel:"sponsored",[da]:{highlighted:l(c),"no-category":a(),"no-subtext":!l(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var T=Rp(),L=J(T);let C;var j=w(L),W=S(j,2),z=w(W),I=S(W,2);{var k=Q=>{var X=Dp(),ee=w(X);V(ce=>Z(ee,ce),[()=>y[l(p)]||ve("Stream")]),m(Q,X)};B(I,Q=>{a()||Q(k)})}var A=S(I,2);{var N=Q=>{var X=Np(),ee=w(X);V(()=>Z(ee,l(d))),m(Q,X)};B(A,Q=>{l(d)&&Q(N)})}var R=S(A,2),U=w(R),Y=S(R,2);{var q=Q=>{$r(Q,{get disclaimer(){return i()},small:!0})};B(Y,Q=>{i()&&Q(q)})}var O=S(L,2);{var K=Q=>{Yr(Q,{get pixels(){return l(v)}})};B(O,Q=>{var X;(X=l(v))!=null&&X.length&&Q(K)})}V((Q,X)=>{C=Ge(L,"",C,{"--action-width":l(h)?`${l(h)}px`:null}),se(j,"src",Q),Z(z,l(r)),Z(U,X)},[()=>ma(l(s)),()=>l(u)||ve("Watch")]),Nt(R,"clientWidth",Q=>M(h,Q)),m(x,T)}),m(t,_),le()}var Op=P('<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>'),Bp=P('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),Fp=P('<div class="heading category svelte-1fykz2q"> </div>'),Hp=P("<!> <!>",1),Vp=P("<!> <div></div>",1),Wp=P('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function Up(t,e){var T,L;re(e,!0);const i=un("scope")==="modal",a=Ua("card"),n=!!((L=(T=window.PlayPilotLinkInjections)==null?void 0:T.config)!=null&&L.categorize_playlinks);let r=G(0);const o=H(()=>ds(e.playlinks)),s=H(()=>v(e.playlinks)),c=H(()=>n?p(l(s)):[["",l(o)]]),d=H(()=>l(r)<500||!!a||l(o).length===1);function u(C){fe(i?pe.TitleModalPlaylinkClick:pe.TitlePopoverPlaylinkClick,e.title,{playlink:C})}function v(C){const j={};for(const W of C){const{category:z}=W.extra_info;z in j||(j[z]=[]),j[z].push(W)}return j}function p(C){const j=["AVOD","SVOD","RENT","BUY"],W=[];for(const I of j)C[I]&&W.push([I,C[I]]);const z=[];for(const I of Object.values(C))for(const k of I)j.includes(k.extra_info.category)||z.push(k);return[...W,["Other",z]]}var f=Wp(),y=J(f),h=w(y);ft(y,(C,j)=>ze==null?void 0:ze(C,j),()=>3);var _=S(y,2);{var b=C=>{var j=Op(),W=w(j);V(z=>Z(W,`${z??""} `),[()=>{var z,I;return((I=(z=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:z.config)==null?void 0:I.playlinks_disclaimer_text)||ve("Commission Disclaimer")}]),m(C,j)},E=C=>{var j=Bp(),W=w(j);V(z=>Z(W,z),[()=>ve("Title Unavailable")]),m(C,j)};B(_,C=>{l(o).length?C(b):C(E,!1)})}var x=S(_,2);Le(x,17,()=>l(c),qe,(C,j,W,z)=>{var I=H(()=>$i(l(j),2));let k=()=>l(I)[0],A=()=>l(I)[1];var N=Vp(),R=J(N);{var U=O=>{var K=Fp(),Q=w(K);ft(K,(X,ee)=>ze==null?void 0:ze(X,ee),()=>4),V(X=>Z(Q,X),[()=>ve(`Category: ${k()}`)]),m(O,K)};B(R,O=>{k()&&A().length&&O(U)})}var Y=S(R,2);let q;Le(Y,21,A,qe,(O,K,Q)=>{var X=Hp(),ee=J(X);ms(ee,{get playlink(){return l(K)},onclick:()=>u(l(K).name)});var ce=S(ee,2);{var Pe=Ie=>{{let $=H(()=>au(a)),ie=H(()=>a.disclaimer||"");ms(Ie,{get playlink(){return l($)},onclick:()=>fe(pe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return l(ie)}})}};B(ce,Ie=>{a&&Q===0&&Ie(Pe)})}m(O,X)}),V(()=>{q=xe(Y,1,"playlinks svelte-1fykz2q",null,q,{list:l(d)}),se(Y,"data-testid",`category-${k()??""}`)}),Nt(Y,"clientWidth",O=>M(r,O)),m(C,N)}),V(C=>Z(h,C),[()=>ve("Where To Stream Online")]),m(t,f),le()}var Gp=P('<button class="show-more svelte-7itcht">Show more</button>'),Kp=P('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),Yp=P('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function Zp(t,e){re(e,!0);const i=D(e,"blurb",3,""),a=D(e,"limit",3,200),n=D(e,"onclick",3,()=>null);let r=G(!1);const o=H(()=>e.text.slice(0,a()));function s(){M(r,!0),n()()}var c=Yp(),d=w(c),u=w(d),v=S(u);{var p=b=>{var E=Ye("...");m(b,E)};B(v,b=>{!l(r)&&e.text.length>a()&&b(p)})}var f=S(v,2);{var y=b=>{var E=Gp();E.__click=()=>s(),m(b,E)};B(f,b=>{!l(r)&&(e.text.length>a()||i())&&b(y)})}var h=S(d,2);{var _=b=>{var E=Kp(),x=w(E);V(()=>Z(x,i())),m(b,E)};B(h,b=>{l(r)&&b(_)})}V(()=>Z(u,l(r)?e.text:l(o))),m(t,c),le()}we(["click"]);async function Jp(t,{page:e=1}={}){const i={language:Wa(),region:await Fr(),include_count:"false",participant_sid:t.sid,page:e};return(await Qt(`/titles/browse?api-token=${pi()}&${Nr(i)}`)).results}async function Qp(t){return(await Qt(`/participants/browse?api-token=${pi()}&title_sid=${t.sid}`)).results}var Xp=P('<div class="character truncate svelte-zy7e3f"> </div>'),$p=P('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),ef=P('<div class="participant svelte-zy7e3f"></div>');function tf(t,e){re(e,!0);function i(o){const s=St(Vo(qr(pa()))),c={};for(const u of o){const v=In(s,St(u.name));c[u.sid]={participant:u,count:v}}return Object.values(c).sort((u,v)=>v.count-u.count).map(({participant:u})=>u)}function a(o,s){Pi({event:o,type:"participant",data:s}),fe(pe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var n=he(),r=J(n);Ha(r,()=>Qp(e.title),o=>{{let s=H(()=>ve("Cast"));qn(o,{get heading(){return l(s)},children:(c,d)=>{var u=he(),v=J(u);Le(v,16,()=>({length:5}),qe,(p,f)=>{var y=ef();m(p,y)}),m(c,u)},$$slots:{default:!0}})}},(o,s)=>{var c=he(),d=J(c);{var u=v=>{{let p=H(()=>ve("Cast"));qn(v,{get heading(){return l(p)},children:(f,y)=>{var h=he(),_=J(h);Le(_,17,()=>i(l(s)).slice(0,15),qe,(b,E)=>{var x=$p();x.__click=W=>a(W,l(E));var T=w(x),L=w(T),C=S(T,2);{var j=W=>{var z=Xp(),I=w(z);V(()=>Z(I,l(E).character)),m(W,z)};B(C,W=>{l(E).character&&W(j)})}V(()=>Z(L,l(E).name)),m(b,x)}),m(f,h)},$$slots:{default:!0}})}};B(d,v=>{var p;(p=l(s))!=null&&p.length&&v(u)})}m(o,c)}),m(t,n),le()}we(["click"]);function af(t,e){re(e,!0);const i=ru(e.title);{let a=H(()=>ve("Similar Titles"));Kr(t,{get titles(){return i},get heading(){return l(a)},onclick:n=>fe(pe.SimilarTitleClick,n,{title_source:e.title.original_title||e.title.title})})}le()}function nf(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 rf=Re('<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 lf(t){var e=rf();m(t,e)}var of=Re('<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 sf(t){var e=of();m(t,e)}var cf=Re('<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 df(t){var e=cf();m(t,e)}var uf=Re('<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 vf(t){var e=uf();m(t,e)}var pf=P('<button class="svelte-827qd7"><!></button>'),ff=P('<div class="content svelte-827qd7"><!></div>'),hf=P("<div><!> <!></div>");function ys(t,e){const i=D(e,"label",3,""),a=D(e,"align",3,"right");let n=G(!1),r=G(null);function o(f){var h;f.currentTarget===((h=l(r))==null?void 0:h.querySelector("button"))&&f.stopPropagation(),M(n,!l(n))}var s=hf();ge("click",Ee,()=>M(n,!1));var c=w(s);{var d=f=>{var y=he(),h=J(y);Ve(h,()=>e.button,()=>({toggle:o})),m(f,y)},u=f=>{var y=pf();y.__click=o;var h=w(y);vf(h),V(()=>{se(y,"aria-label",i()),se(y,"aria-expanded",l(n))}),m(f,y)};B(c,f=>{e.button?f(d):f(u,!1)})}var v=S(c,2);{var p=f=>{var y=ff(),h=w(y);Ve(h,()=>e.children),Ae(1,y,()=>ga,()=>({duration:50,start:.85})),m(f,y)};B(v,f=>{l(n)&&f(p)})}Ze(s,f=>M(r,f),()=>l(r)),V(()=>xe(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),m(t,s)}we(["click"]);var gf=P("<!> ",1),mf=P('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function yf(t,e){re(e,!0);let i=D(e,"url",7);const n=window.innerWidth<Ti&&typeof navigator.share<"u";Je(()=>{i(i()+"?utm_source=tpi")});function r(c,d){if(!n){d(c);return}fe(pe.ShareTitle,null,{title:e.title,url:Fi(),method:"native"}),navigator.share({title:e.title,url:i()})}function o(){fe(pe.ShareTitle,null,{title:e.title,url:Fi(),method:"copy"}),nf(i())}function s(){fe(pe.ShareTitle,null,{title:e.title,url:Fi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}ys(t,{button:(d,u)=>{let v=()=>u==null?void 0:u().toggle;ya(d,{onclick:p=>r(p,v()),children:(p,f)=>{var y=gf(),h=J(y);lf(h);var _=S(h);V(b=>Z(_,` ${b??""}`),[()=>ve("Share")]),m(p,y)},$$slots:{default:!0}})},children:(d,u)=>{var v=mf(),p=J(v);p.__click=o;var f=w(p);sf(f);var y=S(f),h=S(p,2);h.__click=s;var _=w(h);df(_);var b=S(_);V((E,x)=>{Z(y,` ${E??""}`),Z(b,` ${x??""}`)},[()=>ve("Copy URL"),()=>ve("Email")]),m(d,v)},$$slots:{button:!0,default:!0}}),le()}we(["click"]);var bf=Re('<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 _f(t){var e=bf();m(t,e)}var wf=P("<!> ",1);function xf(t,e){re(e,!0);function i(){fu(e.title),fe(pe.TrailerClick,e.title)}ya(t,{onclick:i,children:(a,n)=>{var r=wf(),o=J(r);_f(o);var s=S(o);V(c=>Z(s,` ${c??""}`),[()=>ve("Watch Trailer")]),m(a,r)},$$slots:{default:!0}}),le()}var kf=P('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Sf(t,e){const i=D(e,"embeddable_url",3,"");let a=G(0),n=G(0);const r=H(()=>Math.max(l(a),l(n)));var o=kf(),s=w(o);Ur(s,{get embeddable_url(){return i()},muted:!0,loop:!0,showMuteControls:!0}),V(()=>Ge(o,`--height: ${l(r)??""}px; --width: ${l(a)??""}px;`)),Nt(o,"clientWidth",c=>M(a,c)),Nt(o,"clientHeight",c=>M(n,c)),m(t,o)}var Tf=P("<div> </div>"),Ef=P('<img alt=""/>'),Pf=P('<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"><!> <!> <!> <!></div></div> <div><!></div>',1);function el(t,e){var Se;re(e,!0);const i=D(e,"small",3,!1),a=D(e,"useVideoBackground",3,!0),n=!!((Se=window.PlayPilotLinkInjections)!=null&&Se.no_affiliate);vn("title",e.title);const r=un("modal"),o=H(()=>(!i()||n)&&e.title.description);let s=G(!1),c=G(!1),d=G(!1),u=G(!1);Ue(()=>{a()&&e.title.embeddable_url&&os(Wr(e.title.embeddable_url)).then(de=>{M(u,de,!0)})});var v=Pf(),p=J(v);let f;var y=w(p),h=w(y);let _;var b=w(h);Ln(b,{get title(){return e.title},onload:()=>M(s,!0),lazy:!1});var E=S(h,2);let x;var T=w(E);ft(E,(de,Te)=>ze==null?void 0:ze(de,Te),()=>2);var L=S(E,2),C=w(L),j=w(C);Dn(j,{});var W=S(j),z=S(C,2);Lp(z,{get genres(){return e.title.genres}});var I=S(z,2),k=w(I),A=S(I,2),N=w(A),R=S(A,2);{var U=de=>{var Te=Tf(),He=w(Te);V(Qe=>Z(He,`${e.title.length??""} ${Qe??""}`),[()=>ve("Minutes")]),m(de,Te)};B(R,de=>{!i()&&e.title.length&&de(U)})}var Y=S(L,2),q=w(Y);{var O=de=>{xf(de,{get title(){return e.title}})};B(q,de=>{e.title.embeddable_url&&de(O)})}var K=S(q,2);{let de=H(()=>Gr(e.title));yf(K,{get title(){return e.title.title},get url(){return l(de)}})}var Q=S(y,2),X=w(Q);{var ee=de=>{Zp(de,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>fe(pe.ExpandTitleDescription,e.title)})};B(X,de=>{l(o)&&de(ee)})}var ce=S(X,2);{var Pe=de=>{Up(de,{get playlinks(){return e.title.providers},get title(){return e.title}})};B(ce,de=>{n||de(Pe)})}var Ie=S(ce,2);tf(Ie,{get title(){return e.title}});var $=S(Ie,2);af($,{get title(){return e.title}});var ie=S(p,2);let oe;var me=w(ie);{var ae=de=>{Sf(de,{get embeddable_url(){return e.title.embeddable_url}})},ne=de=>{var Te=he(),He=J(Te);ca(He,()=>l(d),Qe=>{var te=Ef();let ue;V(be=>{se(te,"src",be),ue=xe(te,1,"svelte-16ajinh",null,ue,{loaded:l(c),blur:l(d)})},[()=>ma(l(d)?e.title.standing_poster:e.title.medium_poster)]),ge("load",te,()=>M(c,!0)),ge("error",te,()=>M(d,!0)),m(Qe,te)}),m(de,Te)};B(me,de=>{a()&&l(u)?de(ae):de(ne,!1)})}V(de=>{f=xe(p,1,"content svelte-16ajinh",null,f,{small:i()}),_=xe(h,1,"poster svelte-16ajinh",null,_,{loaded:l(s)}),x=xe(E,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Z(T,e.title.title),Z(W,` ${e.title.imdb_score??""}`),Z(k,e.title.year),Z(N,de),oe=xe(ie,1,"background svelte-16ajinh",null,oe,{small:i(),"offset-mute":r==="title"})},[()=>ve(`Type: ${e.title.type}`)]),m(t,v),le()}function _a(t,e){const{onclick:i}=e;function a(n){return n.button!==1?null:(i(n),n)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const bs={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},tl={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Cf({key:t}){var a,n,r;if(!Tt("tracking"))return 0;const e=(n=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:n[t];if(e!==void 0)return e;(r=window.PlayPilotLinkInjections)!=null&&r.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function _s(t){const e=Cf(t);return Math.floor(e*t.numberOfVariants)}function If(t){var i;const e=_s(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function jf(t,e=1){return Tt("tracking")?_s(t)===e:!1}function zf(t){const e=If(t);fe(pe.SplitTestView,null,{key:t.key,variant:e})}var Af=P('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Lf=P('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Mf=P('<button class="button svelte-1mt6g1y"> </button>'),qf=P('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Df=P('<div class="background svelte-1mt6g1y"></div>'),Nf=P("<!> <!>",1),Rf=P('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function ws(t,e){re(e,!0),fe(pe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),zf(tl.TopScrollFormat);const i=H(()=>e.campaign.disclaimer),a=H(()=>e.campaign.content),n=H(()=>e.campaign.cta),r=H(()=>l(a).format),o=H(()=>l(a).header),s=H(()=>l(a).header_logo),c=H(()=>l(a).image_uuid),d=H(()=>l(n).header),u=H(()=>l(n).url),v=H(()=>l(r)==="large"),p=H(()=>ls(l(c),bs.TopScrollBackground)),f=H(()=>ls(l(c),bs.TopScrollContent));let y=G(0);function h(){fe(pe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var _=Rf();_.__click=h;let b,E;var x=w(_),T=w(x);{var L=z=>{var I=Af();V(()=>{se(I,"src",l(f)),se(I,"alt",l(o))}),m(z,I)},C=z=>{var I=qf(),k=J(I);{var A=q=>{var O=Lf();V(()=>se(O,"src",l(s))),m(q,O)};B(k,q=>{l(s)&&q(A)})}var N=S(k,2),R=w(N),U=S(N,2);{var Y=q=>{var O=Mf(),K=w(O);V(()=>Z(K,l(d))),m(q,O)};B(U,q=>{l(d)&&q(Y)})}V(()=>Z(R,l(o))),m(z,I)};B(T,z=>{l(v)?z(L):z(C,!1)})}var j=S(x,2);{var W=z=>{var I=Nf(),k=J(I);{var A=U=>{var Y=Df();let q;V(()=>q=Ge(Y,"",q,{"--background":`url('${l(p)??""}')`})),m(U,Y)};B(k,U=>{l(c)&&U(A)})}var N=S(k,2);{var R=U=>{$r(U,{get disclaimer(){return l(i)}})};B(N,U=>{l(i)&&U(R)})}m(z,I)};B(j,z=>{l(v)||z(W)})}ft(_,(z,I)=>_a==null?void 0:_a(z,I),()=>({onclick:h})),xi(()=>Nt(_,"clientWidth",z=>M(y,z))),V(()=>{se(_,"href",l(u)),b=xe(_,1,"top-scroll svelte-1mt6g1y",null,b,{simple:l(v)}),E=Ge(_,"",E,{"--width":`${l(y)??""}px`})}),m(t,_),le()}we(["click"]);var Of=P('<div class="content svelte-r7ubzi"><!></div>'),Bf=P('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Ff(t,e){let i=G(!1);var a=Bf();a.__touchstart=()=>M(i,!l(i));var n=w(a);Ve(n,()=>e.children);var r=S(n,2);{var o=s=>{var c=Of(),d=w(c);Ve(d,()=>e.content),Ae(1,c,()=>Et,()=>({duration:100})),m(s,c)};B(r,s=>{l(i)&&s(o)})}ge("mouseenter",a,()=>M(i,!0)),ge("mouseleave",a,()=>M(i,!1)),m(t,a)}we(["touchstart"]);var Hf=P('<div class="info svelte-qcpiki"><!></div>'),Vf=P('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Wf=P('<span class="name svelte-qcpiki"> </span>'),Uf=P('<div class="subheader svelte-qcpiki"> </div>'),Gf=P('<div class="action svelte-qcpiki"> </div>'),Kf=P('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Yf=P('<img class="background svelte-qcpiki" alt=""/>'),Zf=P('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),Jf=P('<div class="disclaimer svelte-qcpiki"><!></div>'),Qf=P('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function xs(t,e){re(e,!0);const i=D(e,"compact",3,!1),a=H(()=>e.campaign.disclaimer),n=H(()=>e.campaign.content),r=H(()=>e.campaign.cta),o=H(()=>e.campaign.campaign_type),s=H(()=>l(n).header),c=H(()=>l(n).subheader),d=H(()=>l(n).header_logo),u=H(()=>l(n).image),v=H(()=>l(n).video),p=H(()=>l(r).header),f=H(()=>l(r).url),y=H(()=>l(r).subheader);let h=G(0);fe(pe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function _(){fe(pe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var b=Qf();let E;b.__click=_;var x=w(b);{var T=A=>{var N=Hf(),R=w(N);{var U=q=>{Ff(q,{content:K=>{var Q=Ye();V(()=>Z(Q,l(y))),m(K,Q)},children:(K,Q)=>{var X=Ye("Ad");m(K,X)},$$slots:{content:!0,default:!0}})},Y=q=>{var O=Ye();V(()=>Z(O,l(y))),m(q,O)};B(R,q=>{i()?q(U):q(Y,!1)})}m(A,N)};B(x,A=>{l(y)&&A(T)})}var L=S(x,2);{var C=A=>{var N=Kf(),R=w(N);{var U=ce=>{var Pe=Vf();V(()=>se(Pe,"src",l(d))),m(ce,Pe)};B(R,ce=>{l(d)&&ce(U)})}var Y=S(R,2),q=w(Y);{var O=ce=>{var Pe=Wf(),Ie=w(Pe);V(()=>Z(Ie,l(s))),m(ce,Pe)};B(q,ce=>{l(s)&&ce(O)})}var K=S(q,2);{var Q=ce=>{var Pe=Uf(),Ie=w(Pe);V(()=>Z(Ie,l(c))),m(ce,Pe)};B(K,ce=>{l(c)&&ce(Q)})}var X=S(Y,2);{var ee=ce=>{var Pe=Gf(),Ie=w(Pe);V(()=>Z(Ie,l(p))),m(ce,Pe)};B(X,ce=>{l(p)&&ce(ee)})}Nt(N,"clientHeight",ce=>M(h,ce)),m(A,N)};B(L,A=>{(l(d)||l(s)||l(c)||l(p))&&A(C)})}var j=S(L,2);{var W=A=>{var N=Yf();V(()=>se(N,"src",l(u))),m(A,N)},z=A=>{var N=he(),R=J(N);{var U=Y=>{var q=Zf();q.muted=!0;var O=w(q);V(()=>se(O,"src",l(v))),m(Y,q)};B(R,Y=>{l(o)==="video"&&l(v)&&Y(U)},!0)}m(A,N)};B(j,A=>{l(o)==="image"&&l(u)?A(W):A(z,!1)})}var I=S(j,2);{var k=A=>{var N=Jf();let R;var U=w(N);$r(U,{get disclaimer(){return l(a)}}),V(()=>R=Ge(N,"",R,{"--offset":`${l(h)??""}px`})),m(A,N)};B(I,A=>{l(a)&&A(k)})}ft(b,(A,N)=>_a==null?void 0:_a(A,N),()=>({onclick:_})),V(()=>{se(b,"href",l(f)),E=xe(b,1,"display svelte-qcpiki",null,E,{compact:i()})}),m(t,b),le()}we(["click"]);var Xf=P('<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 $f(t,e){var c,d;re(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;Ir();var n=Xf();n.__click=()=>fe(pe.CardToExploreCta);var r=w(n);se(r,"src",i);var o=S(r,4),s=w(o);Xt(s,{}),V(()=>se(n,"href",a)),m(t,n),le()}we(["click"]);function eh(t,e){var p,f;re(e,!0);const i=y=>{var h=he(),_=J(h);{var b=x=>{ws(x,{get campaign(){return o}})},E=x=>{$f(x,{})};B(_,x=>{o?x(b):x(E,!1)})}m(y,h)},a=y=>{var h=he(),_=J(h);{var b=E=>{xs(E,{get campaign(){return s}})};B(_,E=>{s&&E(b)})}m(y,h)},n=D(e,"initialScrollPosition",3,0),r=Ro(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);vn("modal","title");const o=Ua("top_scroll"),s=Ua("card"),c=(f=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:f.explore_insert_cta_in_tpi,d=!!o||c&&!document.querySelector(Jr);let u=!1;fe(pe.TitleModalView,e.title),Ya()&&$t(Rt.TitleInterest,{title:e.title.title,source:Ei.Card}),Je(()=>{const y=Date.now();return()=>fe(pe.TitleModalClose,e.title,{time_spent:Date.now()-y})});function v(){u||(fe(pe.TitleModalScroll,e.title),u=!0)}{let y=H(()=>d?i:null),h=H(()=>s?a:null);Ja(t,{onscroll:v,get initialScrollPosition(){return n()},get bubble(){return l(y)},get prepend(){return l(h)},tall:!0,children:(_,b)=>{el(_,En({get title(){return e.title}},()=>r))},$$slots:{default:!0}})}le()}var th=P(" <strong> </strong>",1),ih=P('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),ah=P('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),nh=P('<button class="more svelte-ke01cs"> </button>'),rh=P('<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 lh(t,e){re(e,!0);const i=H(()=>e.participant.name),a=H(()=>e.participant.birth_date),n=H(()=>e.participant.death_date),r=30;let o=G(Be([])),s=G(1),c=G(!0),d=G(!0);Je(v),Tt("pixels")&&$t(Rt.ParticipantView,{participant:e.participant.name});function u(I){return new Date(I).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function v(){M(d,!0);try{const I=await Jp(e.participant,{page:l(s)});M(o,[...l(o),...I],!0),M(c,(I==null?void 0:I.length)>=r)}catch{M(c,!1)}finally{M(d,!1),M(s,l(s)+1)}}var p=rh(),f=J(p),y=w(f),h=w(y);ft(y,(I,k)=>ze==null?void 0:ze(I,k),()=>2);var _=S(y,2);{var b=I=>{var k=ih(),A=w(k),N=S(A),R=w(N),U=S(N);{var Y=q=>{var O=th(),K=J(O),Q=S(K),X=w(Q);V((ee,ce)=>{Z(K,`, ${ee??""} `),Z(X,ce)},[()=>ve("Died On"),()=>u(l(n))]),m(q,O)};B(U,q=>{l(n)&&q(Y)})}V((q,O)=>{Z(A,`${q??""} `),Z(R,O)},[()=>ve("Born On"),()=>u(l(a))]),m(I,k)};B(_,I=>{l(a)&&I(b)})}var E=S(f,2),x=w(E),T=w(x);ft(x,(I,k)=>ze==null?void 0:ze(I,k),()=>3);var L=S(x,2),C=w(L);Le(C,17,()=>l(o),qe,(I,k)=>{vs(I,{get title(){return l(k)},onclick:A=>Pi({event:A,data:l(k)})})});var j=S(C,2);{var W=I=>{var k=he(),A=J(k);Le(A,16,()=>({length:6}),qe,(N,R)=>{var U=ah();m(N,U)}),m(I,k)},z=I=>{var k=he(),A=J(k);{var N=R=>{var U=nh();U.__click=v;var Y=w(U);V(q=>Z(Y,q),[()=>ve("Show More")]),m(R,U)};B(A,R=>{l(c)&&R(N)},!0)}m(I,k)};B(j,I=>{l(d)?I(W):I(z,!1)})}V(I=>{Z(h,l(i)),Z(T,I)},[()=>ve("Credits")]),m(t,p),le()}we(["click"]);function oh(t,e){re(e,!0);const i=D(e,"initialScrollPosition",3,0);let a=G(0);fe(pe.ParticipantModalView,null,{participant:e.participant.name}),Je(()=>{const n=Date.now();return()=>fe(pe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-n})}),Ja(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(n,r)=>{lh(n,{get participant(){return e.participant}})},$$slots:{default:!0}}),Sn("innerWidth",n=>M(a,n,!0)),le()}var sh=P('<div class="content svelte-16hba4m"><!></div>');function ch(t,e){const i=D(e,"initialScrollPosition",3,0);Ja(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,n)=>{var r=sh(),o=w(r);fs(o,{}),m(a,r)},$$slots:{default:!0}})}function dh(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(n=>{n.style.viewTransitionName=n.dataset.viewTransitionNew||""})})}var uh=Re('<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 vh(t){var e=uh();m(t,e)}var ph=P('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),fh=P('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),hh=P('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),gh=P('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function mh(t,e){re(e,!0),vn("scope","popover");const i=e.bubble&&jf(tl.TopScrollFormat,1),a=H(()=>({duration:Qr.current?0:100,y:10}));let n=G(null),r=G(!1),o=G(!0),s=G(!1),c=G(0),d=G(0),u=G(0);Je(async()=>{await Ba(),v(),await f(),e.append&&requestAnimationFrame(()=>{p(),f()}),await Ba(),h()});function v(){if(!l(n))return;const{top:k,right:A,bottom:N,height:R}=l(n).getBoundingClientRect(),U=y();M(r,k-U<0&&window.innerHeight-N>k+R,!0);const Y=window.innerWidth-A-U;A+U>window.innerWidth&&(l(n).style.left=`${Y}px`)}function p(){M(o,l(c)>450)}async function f(){if(M(u,0),await new Promise(q=>requestAnimationFrame(q)),!l(n))return;const{top:k,height:A}=l(n).getBoundingClientRect(),N=y(),R=e.append?parseInt(window.getComputedStyle(l(n)).gap):0,U=l(o)?l(d)+R:0,Y=l(r)?window.innerHeight-k-N-U:k+A-U-N;M(u,Math.min(Y,window.innerHeight*.8),!0)}function y(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function h(){var U;if(!((U=l(n))!=null&&U.firstChild))return;const k=l(n).firstChild,{offsetHeight:A,scrollHeight:N,scrollTop:R}=k;N<=A?M(s,!1):M(s,R+A<N)}var _=gh();let b,E;var x=w(_),T=w(x);Ve(T,()=>e.children);var L=S(T,2);{var C=k=>{var A=ph(),N=w(A),R=w(N);vh(R),Ae(3,A,()=>Et,()=>({duration:100})),m(k,A)};B(L,k=>{l(s)&&k(C)})}var j=S(x,2);{var W=k=>{var A=fh(),N=w(A);Ve(N,()=>e.bubble),Ae(7,A,()=>ha,()=>l(a)),m(k,A)};B(j,k=>{e.bubble&&k(W)})}var z=S(j,2);{var I=k=>{var A=hh(),N=w(A);Ve(N,()=>e.append),Ae(7,A,()=>ha,()=>l(a)),Nt(A,"clientHeight",R=>M(d,R)),m(k,A)};B(z,k=>{e.append&&l(o)&&k(I)})}Ze(_,k=>M(n,k),()=>l(n)),V(()=>{b=xe(_,1,"popover svelte-wxwoko",null,b,{flip:l(r),inline:i,"has-bubble":!!e.bubble&&i}),E=Ge(_,"",E,{"--max-height":l(u)?l(u)+"px":null})}),ge("scroll",x,h),Ae(7,x,()=>ha,()=>l(a)),Nt(_,"clientHeight",k=>M(c,k)),m(t,_),le()}var yh=P('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function bh(t,e){re(e,!0);const i=u=>{var v=he(),p=J(v);{var f=y=>{ws(y,{get campaign(){return n}})};B(p,y=>{n&&y(f)})}m(u,v)},a=u=>{var v=he(),p=J(v);{var f=y=>{xs(y,{get campaign(){return r},compact:!0})};B(p,y=>{r&&y(f)})}m(u,v)},n=Ua("top_scroll"),r=Ua("card");let o=G(null);fe(pe.TitlePopoverView,e.title),Ya()&&$t(Rt.TitleInterest,{title:e.title.title,source:Ei.Card}),Je(()=>{s();const u=Date.now();return()=>fe(pe.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function s(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const v=Array.from(u.getClientRects()),f=v.map(h=>h.x).map(h=>Math.abs(h-e.event.clientX)),y=v[f.indexOf(Math.min(...f))];l(o).style.top=y.top+window.scrollY+"px",l(o).style.left=y.left+window.scrollX+"px",l(o).style.height=y.height+"px"}var c=yh(),d=w(c);{let u=H(()=>r?a:null),v=H(()=>n?i:null);mh(d,{get append(){return l(u)},get bubble(){return l(v)},children:(p,f)=>{el(p,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Ze(c,u=>M(o,u),()=>l(o)),m(t,c),le()}let Fn=null,Vi=null;function _h(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Vi&&Hn();const i=t.currentTarget;Fn=i,setTimeout(()=>{Fn===i&&(Vi=kt(bh,{target:ol(),props:{event:t,title:e.title_details}}))},100)}async function Hn(t=!0){if(Vi){const e=Si(Vi,{outro:t});Fn=null,Vi=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function wh(t){if(!Vi)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(fi)||e.closest(hi)||Hn()}function xh(){Fn=null}function kh(){return!!Vi}var Sh=P('<div class="content svelte-c2erhr"><!></div>'),Th=P("<div><!></div>"),Eh=P('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Ph=P('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Ch=P("<!> <!>",1),Ih=P('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function jh(t,e){re(e,!0);const i=D(e,"initialIndex",3,0),a=D(e,"onchange",3,()=>null),n=300;let r,o=G(!1);Je(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>M(o,!0))})});function s(c){a()(c),r.setIndex(c)}Ja(t,{blur:!0,dialog:d=>{var u=Ih(),v=J(u);Ge(v,"",{},{"--transition-duration":"300ms"});var p=w(v);{const h=(E,x)=>{let T=()=>x==null?void 0:x().currentIndex;var L=he(),C=J(L);Le(C,17,()=>e.items,qe,(j,W,z)=>{var I=Th();let k;I.__click=()=>s(z);var A=w(I);{var N=R=>{var U=Sh(),Y=w(U);Ve(Y,()=>e.each,()=>l(W),T),Ae(3,U,()=>Et,()=>({duration:l(o)?n:0})),m(R,U)};B(A,R=>{(Math.abs(z-T())===1||T()===z)&&R(N)})}V(()=>k=xe(I,1,"item svelte-c2erhr",null,k,{active:z===T()})),m(j,I)}),m(E,L)},_=(E,x)=>{let T=()=>x==null?void 0:x().currentIndex,L=()=>x==null?void 0:x().reachedEnd;var C=Ch(),j=J(C);{var W=k=>{var A=Eh();A.__click=()=>s(T()-1);var N=w(A);Xt(N,{size:21,direction:"left",title:"Previous"}),m(k,A)};B(j,k=>{T()>0&&k(W)})}var z=S(j,2);{var I=k=>{var A=Ph();A.__click=()=>s(T()+1);var N=w(A);Xt(N,{size:21,title:"Next"}),m(k,A)};B(z,k=>{L()||k(I)})}m(E,C)};let b=H(()=>l(o)?n:0);Ze(ss(p,{threshold:40,moveThreshold:40,get transitionDuration(){return l(b)},children:h,controls:_,$$slots:{default:!0,controls:!0}}),E=>r=E,()=>r)}var f=S(v,2),y=w(f);Za(y,{size:"42px",onclick:()=>al(),"aria-label":"Close",children:(h,_)=>{Ka(h,{size:24})},$$slots:{default:!0}}),Ae(7,f,()=>ga),m(d,u)},$$slots:{dialog:!0}}),le()}we(["click"]);function zh(t,e){re(e,!0);const i=D(e,"initialIndex",3,0);jh(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:n=>fe(pe.ExploreTitleRailSetIndex,e.titles[n],{index:n}),each:(n,r=bt,o=bt)=>{{let s=H(()=>{var c;return r().sid===((c=e.titles[o()])==null?void 0:c.sid)});el(n,{get title(){return r()},get useVideoBackground(){return l(s)}})}},$$slots:{each:!0}}),le()}const st=[];function Pi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:n=0,returnToTitle:r=null,props:o={}}={}){if(e&&ts(e))return;e==null||e.preventDefault(),st!=null&&st.length&&il();const s=ol(),c={initialScrollPosition:n,...o},d=Ah({type:t,target:s,data:a,props:c});r&&ks({type:t,injection:i,data:r}),ks({type:t,injection:i,data:a,scrollPosition:n,component:d})}function Ah({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?kt(oh,{target:e,props:{participant:i,...a}}):t==="explore"?kt(ch,{target:e,props:{...a}}):t==="titles-rail"?kt(zh,{target:e,props:{titles:i,...a}}):kt(eh,{target:e,props:{title:i,...a}})}function ks({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:n}){st.push({type:t,injection:e,data:i,scrollPosition:a,component:n})}function il(t=!0){st.length&&(qh(),Si(st[st.length-1].component,{outro:t}))}function Lh(t=!0){il(t),st.pop()}function al(t=!0){for(il(t);st.length>0;)st.pop()}function Ss(){return st[st.length-2]||null}function Mh(){if(st.length<2)return;Lh();const t=st.pop();t&&Pi({...t})}function qh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ti?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(st[st.length-1].scrollPosition=e.scrollTop)}function Dh(t,e){if(ts(t))return;let i=t.target;if(!i||(i.hasAttribute(fi)||(i=i.closest(hi)),!i))return;const a=i.getAttribute(fi);if(!a)return;const n=e.find(r=>a===r.key);n&&(t.preventDefault(),dh(()=>{Hn(!1),Pi({event:t,injection:n,data:n.title_details})},!Qr.current&&window.innerWidth>=Ti&&!window.matchMedia("(pointer: coarse)").matches))}var Nh=P(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Rh=P('<!> <a target="_blank"> </a>',1),Oh=P(" <!>.",1),Bh=P("<!> <br/>",1),Fh=P(" <br/>",1),Hh=P('<span class="svelte-1to4glm"><!></span>'),Vh=P('<p class="svelte-1to4glm"></p>');function Wh(t,e){re(e,!0);const i=D(e,"onclickmodal",3,()=>null);function a(c,d){fe(pe.AfterArticlePlaylinkClick,c,{playlink:d})}function n(c,d,u){fe(pe.AfterArticleModalButtonClick,d),i()(c,u)}var r=he(),o=J(r);{var s=c=>{var d=Vh();Le(d,21,()=>e.linkInjections,qe,(u,v)=>{const p=H(()=>{const{key:E,title:x,title_details:T,after_article_style:L}=l(v);return{key:E,title:x,title_details:T,after_article_style:L}}),f=H(()=>{var E;return((E=l(p).title_details)==null?void 0:E.providers)||[]});var y=Hh(),h=w(y);{var _=E=>{var x=Bh(),T=J(x);{var L=j=>{var W=Nh(),z=J(W),I=S(z);I.__click=N=>N.stopPropagation();var k=w(I);k.__click=N=>n(N,l(p).title_details,l(v));var A=w(k);V((N,R)=>{Z(z,`"${l(p).title??""}" ${N??""} `),Z(A,R)},[()=>ve("Is Available To Stream"),()=>ve("View Streaming Options")]),m(j,W)},C=j=>{var W=Oh(),z=J(W),I=S(z);Le(I,17,()=>l(f),qe,(k,A,N)=>{let R=()=>l(A).name,U=()=>l(A).url;var Y=Rh(),q=J(Y);{var O=X=>{var ee=Ye();V(ce=>Z(ee,ce),[()=>N===l(f).length-1?`, ${ve("And")}`:","]),m(X,ee)};B(q,X=>{N&&X(O)})}var K=S(q,2);K.__click=()=>a(l(p).title_details,R());var Q=w(K);V(()=>{se(K,"href",U()),Z(Q,R())}),m(k,Y)}),V(k=>Z(z,`"${l(p).title??""}" ${k??""} `),[()=>ve("Is Available To Stream On")]),m(j,W)};B(T,j=>{l(p).after_article_style==="modal_button"?j(L):j(C,!1)})}m(E,x)},b=E=>{var x=Fh(),T=J(x);V(L=>Z(T,`"${l(p).title??""}" ${L??""} `),[()=>ve("Title Unavailable Suffix")]),m(E,x)};B(h,E=>{l(f).length?E(_):E(b,!1)})}V(()=>se(y,"data-playpilot-injection-key",l(p).key)),m(u,y)}),m(c,d)};B(o,c=>{e.linkInjections.length&&c(s)})}m(t,r),le()}we(["click"]);let Qa=null;function Uh(t,e){var o,s;if(Qa||!e.length)return;const i=document.createElement("div"),a=(o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_selector,n=(a?document.querySelector(a):null)||t[t.length-1],r=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",n.insertAdjacentElement(r,i),Qa=kt(Wh,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>Pi({event:c,injection:d,data:d.title_details})}})}function Gh(){var t;Qa&&(Si(Qa),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Qa=null)}var Kh=P('<p class="svelte-1epbbn0"> </p>');function Yh(t,e){re(e,!1),Ir();var i=Kh(),a=w(i);V(n=>Z(a,n),[()=>{var n,r;return((r=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.in_text_disclaimer_text)||ve("In-Text Disclaimer")}]),m(t,i),le()}let Xa=null;function Zh(t){var r,o,s,c,d,u;if(!((o=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)!=null&&o.in_text_disclaimer_enabled)||Xa)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],n=((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(n,e),Xa=kt(Yh,{target:e})}function Jh(){var t;Xa&&(Si(Xa),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Xa=null)}var Qh=P('<div class="widget svelte-l6zazf" data-testid="widget"><!></div>');function Xh(t,e){re(e,!0);let i=G(null);const a=H(()=>{var c,d;return((d=(c=l(i))==null?void 0:c.parentNode)==null?void 0:d.dataset.heading)||ve("Mentioned In This Article")}),n=H(()=>{const c=[];return e.linkInjections.forEach(d=>{const u=d.title_details;u&&(c.some(v=>v.sid===u.sid)||c.push(u))}),c});var r=he(),o=J(r);{var s=c=>{var d=Qh(),u=w(d);Kr(u,{get titles(){return l(n)},get heading(){return l(a)},onclick:v=>fe(pe.WidgetArticleRailTitleClick,v)}),Ze(d,v=>M(i,v),()=>l(i)),m(c,d)};B(o,c=>{l(n).length&&c(s)})}m(t,r),le()}const $h={"tpi-rail":Xh},eg="[data-playpilot-widget]";let nl=[];function tg(t){if(Ts(),!t.length)return;document.querySelectorAll(eg).forEach(i=>{const a=i.dataset.playpilotWidget||"",n=$h[a];if(!n)return;const r=kt(n,{target:i,props:{linkInjections:t}});nl.push(r)})}function Ts(){nl.forEach(t=>Si(t)),document.querySelectorAll("[data-playpilot-widget]").forEach(t=>t.innerHTML=""),nl=[]}const fi="data-playpilot-injection-key",hi=`[${fi}]`;function ig(t,e={aiInjections:[],manualInjections:[]}){ll(),sg();const i=cg(e);if(!i.length)return[];const a=St(t.map(d=>d.innerText).join(" ")),r=dg(i).filter(d=>a.includes(St(d.sentence))),o={};let s=-1;for(const d of vg(r)){s++;const u=t.findIndex(T=>St(T.innerText).includes(St(d.sentence))),v=t[u];if(!v)continue;const p=Zo(d.title,v,["A"]);if(!(p!=null&&p.nodeValue)||Jo(p)){const T=Zo(d.title,v);if(T&&Jo(T)){o[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:f,linkElement:y}=ag(d);let h=-1,_=!1;In(v.innerHTML,d.title)===1&&(h=v.innerHTML.indexOf(d.title));const{phrase_before:E,phrase_after:x}=ng(v,d);if(h===-1&&(E||x)){const T=[E,d.title,x].filter(Boolean).join(" ");if(h=v.innerHTML.indexOf(T),h===-1){const L=Ud(v.innerHTML,d.title,E||"",x||"");if(L){const{leadingSpaces:C,trailingSpaces:j}=Gd(L.match);y.innerHTML=L.match.trim();const W=L.index+C,z=L.index+L.match.length-j;if(v.innerHTML.slice(W,z).includes("href="))continue;rl(v.innerHTML,d.title,v,f,W,z)&&(h=L.index,_=!0)}}}if(h===-1&&(p!=null&&p.nodeValue)){const T=v.innerHTML.indexOf(p.nodeValue),L=v.innerHTML.indexOf(d.sentence),C=L===-1?v.innerHTML.indexOf(d.sentence.slice(0,20)):-1,j=d.sentence.split(" ")[0],z=In(v.innerHTML,j)===1?v.innerHTML.indexOf(j):-1,I=Od(r.slice(0,s+1),d,["title","sentence"])-1,k=Kd(p.nodeValue,v,I);h=Math.max(T,C,k,z,L,0)}if(h!==-1&&!_&&!rl(v.innerHTML,d.title,v,f,h)){const T=Zd(d.title,v.innerHTML);T>-1?rl(v.innerHTML,d.title,v,f,T):o[d.key]="Injection would have lead to broken HTML."}}lg(r),rg();const c=ug(i);return c.length&&Uh(t,c),document.querySelector(hi)&&Zh(t),tg(r),i.filter(d=>d.title_details).map((d,u)=>{const v=!d.manual&&pg(d,u,i),p=d.duplicate??v;p&&(o[d.key]=v?"Injection was manually removed.":"Injection was marked as duplicate.");const f=document.querySelector(`[${fi}="${d.key}"]`),y=Vn(d)&&!d.inactive&&!d.removed&&!d.after_article&&!f,h=r.find(b=>b.key===d.key),_=y?o[d.key]||(h?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:p,failed:y,failed_message:_,matchingElement:f}})}function ag(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function rl(t,e,i,a,n,r=-1){const o=u=>Array.from(u.querySelectorAll(`a, ${hi}`)).filter(v=>!v.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=o(s),d=s.innerText;return r>0?s.innerHTML=Vd(t,a.outerHTML,n,r):s.innerHTML=Hd(t,e,a.outerHTML,n),Math.abs(s.innerText.length-d.length)>1||c!=o(s)?!1:(i.innerHTML=s.innerHTML,!0)}function ng(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(In(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const r=t.innerText.indexOf(e.title),o=Xo(t,r,r+e.title.length);return{phrase_before:o.before,phrase_after:o.after}}function rg(){const t=Array.from(document.querySelectorAll(`${hi} 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 n of e)a.getPropertyValue(n)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${n}`)}}function lg(t){window.addEventListener("mousemove",wh),window.addEventListener("click",i=>Dh(i,t)),document.querySelectorAll(hi).forEach(i=>{const a=i.dataset.playpilotInjectionKey,n=t.find(r=>a===r.key);n&&(i.addEventListener("mouseenter",r=>{kh()||_h(r,n)}),i.addEventListener("mouseleave",xh))})}function ll(){document.querySelectorAll(hi).forEach(e=>og(e.getAttribute(fi)||"")),Gh(),Jh(),Ts(),al(!1),Hn(!1)}function og(t){var n;const e=document.querySelector(`[${fi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(r=>r.remove());const a=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=a||""}function sg(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(hi)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function cg({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Es(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Ps(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Vn(t)}function Vn(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function dg(t){return Cs(t).filter(e=>e.in_text!==!1&&Ps(e))}function ug(t){return Cs(t).filter(e=>e.after_article===!0&&Ps(e))}function Cs(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)&&Is(i,e)))}function vg(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 pg(t,e,i){return i.some((a,n)=>e!==n&&a.manual&&Is(a,t))}function Is(t,e){return t.title===e.title&&St(t.sentence)===St(e.sentence)}function ol(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function fg(){const t=pi();if(!t)throw new Error("No token was provided");try{return await await Qt(`/domains/config?api-token=${t}`)||null}catch{return null}}var hg=Re('<svg width="8" height="4" viewBox="0 0 8 4" fill="none"><path d="M1 0.5L4 3.5L7 0.5" stroke="currentColor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function gg(t,e){const i=D(e,"expanded",3,!1);var a=hg();let n;V(()=>n=xe(a,0,"svelte-abbsts",null,n,{expanded:i()})),m(t,a)}var mg=Re('<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="17" r="1" fill="var(--playpilot-warning)"></circle><path d="M12 10L12 14" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.44722 18.1056L10.2111 4.57771C10.9482 3.10361 13.0518 3.10362 13.7889 4.57771L20.5528 18.1056C21.2177 19.4354 20.2507 21 18.7639 21H5.23607C3.7493 21 2.78231 19.4354 3.44722 18.1056Z" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function yg(t){var e=mg();m(t,e)}var bg=P('<button><div class="label svelte-1201akx"><!></div> <div class="track svelte-1201akx"><div class="knob svelte-1201akx"></div></div></button>');function sl(t,e){re(e,!0);let i=D(e,"active",15),a=D(e,"fullwidth",3,!1),n=D(e,"label",3,""),r=D(e,"onclick",3,()=>null);function o(){i(!i()),r()(i())}var s=bg();let c;s.__click=o;var d=w(s),u=w(d);Ve(u,()=>e.children),V(()=>{c=xe(s,1,"switch svelte-1201akx",null,c,{active:i(),fullwidth:a()}),se(s,"aria-label",`Toggle ${n()??""} ${i()?"off":"on"}`)}),m(t,s),le()}we(["click"]);var _g=P('<input type="text" autocomplete="off" class="svelte-v3h1om"/>');function cl(t,e){re(e,!0);let i=D(e,"value",15),a=D(e,"label",3,""),n=D(e,"name",3,""),r=D(e,"readonly",3,!1),o=D(e,"oninput",3,()=>null);var s=_g();s.__input=function(...c){var d;(d=o())==null||d.apply(this,c)},V(()=>{se(s,"name",n()),se(s,"aria-label",a()),se(s,"placeholder",a()),s.readOnly=r()}),va(s,i),m(t,s),le()}we(["input"]);var wg=Re('<path d="M13.5833 13.6667L4.41667 13.6667M5.5 1.5H12.5C13.9001 1.5 14.6002 1.5 15.135 1.77248C15.6054 2.01217 15.9878 2.39462 16.2275 2.86502C16.5 3.3998 16.5 4.09987 16.5 5.5V12.5C16.5 13.9001 16.5 14.6002 16.2275 15.135C15.9878 15.6054 15.6054 15.9878 15.135 16.2275C14.6002 16.5 13.9001 16.5 12.5 16.5H5.5C4.09987 16.5 3.3998 16.5 2.86502 16.2275C2.39462 15.9878 2.01217 15.6054 1.77248 15.135C1.5 14.6002 1.5 13.9001 1.5 12.5V5.5C1.5 4.09987 1.5 3.3998 1.77248 2.86502C2.01217 2.39462 2.39462 2.01217 2.86502 1.77248C3.3998 1.5 4.09987 1.5 5.5 1.5Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),xg=Re('<path d="M13.5833 8.58342H4.41667M5.5 1.50009H12.5C13.9001 1.50009 14.6002 1.50009 15.135 1.77258C15.6054 2.01226 15.9878 2.39471 16.2275 2.86512C16.5 3.39989 16.5 4.09996 16.5 5.50009V12.5001C16.5 13.9002 16.5 14.6003 16.2275 15.1351C15.9878 15.6055 15.6054 15.9879 15.135 16.2276C14.6002 16.5001 13.9001 16.5001 12.5 16.5001H5.5C4.09987 16.5001 3.3998 16.5001 2.86502 16.2276C2.39462 15.9879 2.01217 15.6055 1.77248 15.1351C1.5 14.6003 1.5 13.9002 1.5 12.5001V5.50009C1.5 4.09996 1.5 3.39989 1.77248 2.86512C2.01217 2.39471 2.39462 2.01226 2.86502 1.77258C3.3998 1.50009 4.09987 1.50009 5.5 1.50009Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),kg=Re('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function js(t,e){const i=D(e,"align",3,"bottom");var a=kg(),n=w(a);{var r=s=>{var c=wg();m(s,c)},o=s=>{var c=he(),d=J(c);{var u=v=>{var p=xg();m(v,p)};B(d,v=>{i()==="center"&&v(u)},!0)}m(s,c)};B(n,s=>{i()==="bottom"?s(r):s(o,!1)})}m(t,a)}var Sg=P("<div><!></div>");function Wi(t,e){const i=D(e,"type",3,"error"),a=D(e,"fixed",3,!1);var n=Sg();let r;var o=w(n);Ve(o,()=>e.children),V(()=>r=xe(n,1,`alert ${i()??""}`,"svelte-1v44877",r,{fixed:a()})),m(t,n)}var Tg=P("<!> In-text Playlink",1),Eg=P("<!> Bottom Playlink",1),Pg=P('<div class="alert svelte-1fv3ko3"><!></div>'),Cg=P('<div><div class="label svelte-1fv3ko3">Bottom playlinks style</div> <div class="group svelte-1fv3ko3" role="listbox" tabindex="0" aria-label="Playlink type"><button role="option" id="playlinks-in-text">Playlinks sentence</button> <button role="option" id="playlinks-after-article">Modal button</button> <div></div></div></div>'),Ig=P('<div class="switches svelte-1fv3ko3"><!> <!></div> <!> <!>',1);function jg(t,e){re(e,!0);const i=D(e,"linkInjection",7),a=H(()=>i().after_article_style==="modal_button");var n=Ig(),r=J(n),o=w(r);{let p=H(()=>i().in_text??!0);sl(o,{fullwidth:!0,get active(){return l(p)},onclick:f=>{i().in_text=f,i().manual=!0},label:"In-text Playlink",children:(f,y)=>{var h=Tg(),_=J(h);js(_,{align:"center"}),m(f,h)},$$slots:{default:!0}})}var s=S(o,2);{let p=H(()=>i().after_article??!1);sl(s,{fullwidth:!0,get active(){return l(p)},onclick:f=>{i().after_article=f,i().manual=!0},label:"Bottom Playlink",children:(f,y)=>{var h=Eg(),_=J(h);js(_,{align:"bottom"}),m(f,h)},$$slots:{default:!0}})}var c=S(r,2);{var d=p=>{var f=Pg(),y=w(f);Wi(y,{type:"warning",children:(h,_)=>{var b=Ye("At least one layout option must be selected for the playlink to be visible.");m(h,b)},$$slots:{default:!0}}),Ae(3,f,()=>Ga,()=>({duration:200})),m(p,f)};B(c,p=>{Vn(i())||p(d)})}var u=S(c,2);{var v=p=>{var f=Cg(),y=S(w(f),2),h=w(y);h.__click=()=>i().after_article_style="playlinks";let _;var b=S(h,2);b.__click=()=>i().after_article_style="modal_button";let E;var x=S(b,2);let T;V(()=>{se(y,"aria-activedescendant",`playlinks-${l(a)?"after-article":"in-text"}`),se(h,"aria-selected",!l(a)||null),_=xe(h,1,"svelte-1fv3ko3",null,_,{active:!l(a)}),se(b,"aria-selected",l(a)||null),E=xe(b,1,"svelte-1fv3ko3",null,E,{active:l(a)}),T=xe(x,1,"active-marker svelte-1fv3ko3",null,T,{right:l(a)})}),Ae(3,f,()=>Ga,()=>({duration:100})),m(p,f)};B(u,p=>{i().after_article&&p(v)})}m(t,n),le()}we(["click"]);var zg=P('<option class="svelte-1yg5wso"> </option>'),Ag=P('<div class="sent svelte-1yg5wso">Report has been sent, thank you! Closing window...</div>'),Lg=P('<button class="submit svelte-1yg5wso">Send report</button>'),Mg=P('<div class="form svelte-1yg5wso"><div class="heading svelte-1yg5wso">Report issue</div> <div class="info svelte-1yg5wso"><div><strong class="svelte-1yg5wso">Title</strong> </div> <div><strong class="svelte-1yg5wso">Sentence</strong> </div></div> <label for="reason">What would you like to report?</label> <select id="reason" name="reason" class="svelte-1yg5wso"><option class="svelte-1yg5wso">Select an issue...</option><!></select> <div><!></div></div>');function qg(t,e){re(e,!0);const i=[{value:"failed_injection",label:"The link failed to appear on the page."},{value:"layout_issue",label:"The link is breaking the layout or formatting of my page."},{value:"wrong_content",label:"The link points to the wrong movie or show."},{value:"inappropriate_title",label:"The link points to an inappropriate movie or show."},{value:"broken_link",label:"The link is broken or leads to an error page."},{value:"other",label:"My issue is not listed, but please have a look regardless."}];let a=G(""),n=G(!1);function r(){var o,s;l(a)&&(fe(pe.ManualReport,e.linkInjection.title_details,{report_reason:l(a),sid:e.linkInjection.sid,title:e.linkInjection.title,sentence:e.linkInjection.sentence,failed:(o=e.linkInjection.failed)==null?void 0:o.toString(),failed_message:e.linkInjection.failed_message,manual:(s=e.linkInjection.manual)==null?void 0:s.toString()}),M(n,!0),setTimeout(e.onclose,3e3))}Ja(t,{get onclose(){return e.onclose},children:(o,s)=>{var c=Mg(),d=w(c);ft(d,(C,j)=>ze==null?void 0:ze(C,j),()=>2);var u=S(d,2),v=w(u),p=S(w(v)),f=S(v,2),y=S(w(f)),h=S(u,4),_=w(h);_.value=_.__value="";var b=S(_);Le(b,17,()=>i,qe,(C,j)=>{let W=()=>l(j).value,z=()=>l(j).label;var I=zg();I.__click=()=>M(a,W(),!0);var k=w(I),A={};V(()=>{Z(k,z()),A!==(A=W())&&(I.value=(I.__value=W())??"")}),m(C,I)});var E=S(h,2),x=w(E);{var T=C=>{var j=Ag();Ae(1,j,()=>Et,()=>({duration:200})),m(C,j)},L=C=>{var j=Lg();j.__click=r,V(()=>j.disabled=!l(a)),m(C,j)};B(x,C=>{l(n)?C(T):C(L,!1)})}V(C=>{Z(p,`: ${e.linkInjection.title??""}`),Z(y,`:
11
11
  ${C??""}`)},[()=>Qo(e.linkInjection.sentence,e.linkInjection.title,100)]),vd(h,()=>l(a),C=>M(a,C)),m(o,c)},$$slots:{default:!0}}),le()}we(["click"]);var Dg=P('<button class="expand-sentence svelte-tlh9c3"> </button>'),Ng=P('<button class="context-menu-action svelte-tlh9c3">Remove</button> <button class="context-menu-action svelte-tlh9c3">Report issue</button>',1),Rg=P('<div class="warning svelte-tlh9c3" aria-label="Invalid playlink settings"><!></div>'),Og=P('<div class="actions svelte-tlh9c3"><button class="expand svelte-tlh9c3" aria-label="Expand"><!></button> <!> <!></div>'),Bg=P('<div class="expanded svelte-tlh9c3"><div class="label svelte-tlh9c3">Link URL</div> <!> <div class="label offset svelte-tlh9c3">Layout options</div> <div class="type-select svelte-tlh9c3"><!></div></div>'),Fg=P('<div><div class="header svelte-tlh9c3"><img class="poster svelte-tlh9c3" alt="" width="32" height="48"/> <div class="info svelte-tlh9c3"><div class="title svelte-tlh9c3"> </div> <div class="sentence svelte-tlh9c3"><!> <!></div></div> <div class="context-menu svelte-tlh9c3"><!></div></div> <div class="content svelte-tlh9c3"><!> <!></div></div>');function Hg(t,e){re(e,!0);const i=D(e,"linkInjection",15),a=D(e,"onremove",3,()=>null),n=D(e,"onhighlight",3,()=>null),r=H(()=>i()||{}),o=H(()=>l(r).key),s=H(()=>l(r).sentence),c=H(()=>l(r).title_details),d=H(()=>l(r).failed),u=H(()=>l(r).failed_message),v=H(()=>l(r).inactive),p=H(()=>l(c)),f=H(()=>Qo(i().sentence,i().title,60));let y=G(!1),h=G(!1),_=G(!1),b=G(null);Je(()=>{l(d)&&fe(pe.InjectionFailed,l(p),{phrase:i().title,sentence:l(s)})});function E($=!0){L().forEach(oe=>{oe.classList.toggle("playpilot-injection-highlight",$)})}function x($){let ie=$.target,oe=ie==null?void 0:ie.dataset.playpilotInjectionKey;ie&&!oe&&(ie=ie.closest(`[data-playpilot-injection-key="${l(o)}"]`),oe=ie==null?void 0:ie.dataset.playpilotInjectionKey),M(_,oe===l(o)),l(b)&&l(_)&&n()(l(b))}function T($){requestAnimationFrame(()=>E());const ie=$.target;if(["BUTTON","INPUT"].includes(ie.nodeName)||ie.closest("button")||ie.closest("input"))return;const oe=L()[0];oe&&oe.scrollIntoView({behavior:"smooth"})}function L(){const $=Array.from(document.querySelectorAll(`[data-playpilot-injection-key="${l(o)}"]`));return $.length?$:qr(pa()).filter(ie=>St(ie.innerText).includes(St(i().sentence)))||[]}function C(){const $=kt(qg,{target:document.body,props:{linkInjection:i(),onclose:()=>Si($)}})}var j=Fg();ge("mouseover",Ee,x);let W;j.__click=T;var z=w(j),I=w(z),k=S(I,2),A=w(k),N=w(A),R=S(A,2),U=w(R);ld(U,()=>(l(h)?l(s):l(f)).replace(i().title,`<em>${i().title}</em>`));var Y=S(U,2);{var q=$=>{var ie=Dg();ie.__click=()=>M(h,!l(h));var oe=w(ie);V(()=>Z(oe,l(h)?"Less":"More")),m($,ie)};B(Y,$=>{l(f).length<l(s).length&&$(q)})}var O=S(k,2),K=w(O);ys(K,{label:"More options",children:($,ie)=>{var oe=Ng(),me=J(oe);me.__click=function(...ne){var Se;(Se=a())==null||Se.apply(this,ne)};var ae=S(me,2);ae.__click=C,m($,oe)},$$slots:{default:!0}});var Q=S(z,2),X=w(Q);{var ee=$=>{Wi($,{children:(ie,oe)=>{var me=Ye();V(()=>Z(me,l(u))),m(ie,me)},$$slots:{default:!0}})},ce=$=>{var ie=Og(),oe=w(ie);oe.__click=()=>M(y,!l(y));var me=w(oe);gg(me,{get expanded(){return l(y)}});var ae=S(oe,2);{var ne=de=>{var Te=Rg(),He=w(Te);yg(He),Ae(3,Te,()=>Et,()=>({duration:100})),m(de,Te)};B(ae,de=>{Vn(i())||de(ne)})}var Se=S(ae,2);{let de=H(()=>l(v)?"Inactive":"Visible"),Te=H(()=>!i().inactive);sl(Se,{get label(){return l(de)},get active(){return l(Te)},onclick:He=>{i(i().inactive=!He,!0),i(i().manual=!0,!0)},children:(He,Qe)=>{var te=Ye();V(()=>Z(te,l(v)?"Inactive":"Visible")),m(He,te)},$$slots:{default:!0}})}V(()=>se(oe,"aria-expanded",l(y))),m($,ie)};B(X,$=>{l(d)?$(ee):$(ce,!1)})}var Pe=S(X,2);{var Ie=$=>{var ie=Bg(),oe=S(w(ie),2);cl(oe,{oninput:()=>i(i().manual=!0,!0),label:"Playlink URL",get value(){return i().playpilot_url},set value(ne){i(i().playpilot_url=ne,!0)}});var me=S(oe,4),ae=w(me);jg(ae,{get linkInjection(){return i()}}),Ae(3,ie,()=>Ga,()=>({duration:100})),m($,ie)};B(Pe,$=>{l(y)&&$(Ie)})}Ze(j,$=>M(b,$),()=>l(b)),V($=>{W=xe(j,1,"item svelte-tlh9c3",null,W,{highlighted:l(_),inactive:l(v)}),se(I,"src",$),Z(N,l(p).title)},[()=>ma(l(p).standing_poster)]),ge("mouseenter",j,()=>E(!0)),ge("mouseleave",j,()=>E(!1)),ge("error",I,({target:$})=>$.src=zr),Ae(6,j,()=>Ga,()=>({duration:200})),m(t,j),le()}we(["click"]);var Vg=P('<button class="drag-handle svelte-1fk5ijl" aria-label="Move editor"></button>');function Wg(t,e){re(e,!0);let i=D(e,"element",7),a=D(e,"position",23,()=>({x:0,y:0})),n=D(e,"limit",19,()=>({x:0,y:0})),r=D(e,"onchange",3,()=>null),o=!1,s={x:0,y:0},c=a();Je(()=>{d(a().x,a().y)});function d(h,_){const b=window.innerWidth,E=window.innerHeight,x=i().clientWidth,T=i().clientHeight;h=Math.min(Math.max(h,n().x),b-x-n().x),_=Math.min(Math.max(_,n().y),E-T-n().y),i().style.right=h+"px",i().style.bottom=Math.max(_,n().y)+"px",a({x:h,y:_}),r()(a())}function u(h){var _,b;return{x:h.pageX||((_=h.touches)==null?void 0:_[0].pageX)||0,y:h.pageY||((b=h.touches)==null?void 0:b[0].pageY)||0}}function v(h){o=!0,s=u(h),c=a()}function p(h){if(!o)return;const _=u(h),b=_.x-s.x,E=_.y-s.y,x=c.x-b,T=c.y-E;d(x,T)}function f(){o&&(o=!1)}var y=Vg();ge("mousemove",Ee,p),ge("touchmove",Ee,p,void 0,!0),ge("mouseup",Ee,f),ge("touchend",Ee,f),ge("resize",Ee,()=>d(a().x,a().y)),y.__mousedown=v,y.__touchstart=v,m(t,y),le()}we(["mousedown","touchstart"]);var Ug=P('<button class="resize-handle svelte-iir57j" aria-label="Move editor"></button>');function Gg(t,e){re(e,!0);let i=D(e,"element",7),a=D(e,"height",7,200),n=D(e,"onchange",3,()=>null);const r=16;let o=!1,s=0,c=a();Je(()=>{a()&&d(a())});function d(h){const _=window.getComputedStyle(i()).minHeight||"0",b=Math.max(parseInt(_),Math.min(h,f()));i().style.height=`${b}px`,a(b),n()(b)}function u(h){var _,b;o=!0,s=h.pageY||((b=(_=h.touches)==null?void 0:_[0])==null?void 0:b.pageY)||0,c=i().clientHeight}function v(h){var x,T;if(!o)return;const _=h.pageY||((T=(x=h.touches)==null?void 0:x[0])==null?void 0:T.pageY)||0,b=s-_,E=c+b;d(E)}function p(){o=!1}function f(){const h=window.innerHeight-i().getBoundingClientRect().bottom;return Math.max(window.innerHeight-r*2-h,0)}var y=Ug();ge("mousemove",Ee,v),ge("touchmove",Ee,v,void 0,!0),ge("mouseup",Ee,p),ge("touchend",Ee,p),ge("resize",Ee,()=>{a()&&d(a())}),y.__mousedown=u,y.__touchstart=u,m(t,y),le()}we(["mousedown","touchstart"]);function Kg(t,e=t.anchorNode){if(!t.anchorNode||!e)return{start:-1,end:-1};const i=t.toString().trim(),a=t.toString().search(/\S/);if(t.anchorNode===e&&e.nodeType===Node.TEXT_NODE){const d=Math.min(t.anchorOffset,t.focusOffset)+a;return{start:d,end:d+i.length}}const n=t.getRangeAt(0),r=n.cloneRange();r.selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset);const s=r.toString().length+a,c=s+i.length;return{start:s,end:c}}var Yg=Re('<svg width="4" height="8" viewBox="0 0 4 8" fill="none"><path d="M3.5 7L0.5 4L3.5 1" stroke="currentcolor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Zg(t){var e=Yg();m(t,e)}async function Jg(t){const e=pi();if(!e)throw new Error("No token was provided");return await Qt(`/search/titles/?api-token=${e}&query=${t}`)}var Qg=Re('<svg viewBox="0 -960 960 960" width="18" height="18"><path fill="currentColor" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"></path></svg>');function Xg(t){var e=Qg();m(t,e)}var $g=P("<div> </div>"),e1=P('<button><img class="poster svelte-fntasr" alt="" width="28" height="42"/> <div class="content"><div class="name svelte-fntasr"> </div> <div class="meta svelte-fntasr"><div class="imdb svelte-fntasr"><!> </div> <div> </div> <div> </div> <!></div></div> <a target="_blank" class="open-in-new-tab svelte-fntasr"><!></a></button>');function zs(t,e){re(e,!0);const i=D(e,"hoverable",3,!0),a=D(e,"onclick",3,()=>null);var n=e1();let r;n.__click=function(...C){var j;(j=a())==null||j.apply(this,C)};var o=w(n),s=S(o,2),c=w(s),d=w(c),u=S(c,2),v=w(u),p=w(v);Dn(p,{});var f=S(p),y=S(v,2),h=w(y),_=S(y,2),b=w(_),E=S(_,2);{var x=C=>{var j=$g(),W=w(j);V(()=>Z(W,`${e.title.length??""} min`)),m(C,j)};B(E,C=>{e.title.length&&C(x)})}var T=S(s,2);T.__click=C=>C.stopImmediatePropagation();var L=w(T);Xg(L),V((C,j)=>{r=xe(n,1,"item svelte-fntasr",null,r,{hoverable:i()}),se(o,"src",C),Z(d,e.title.title),Z(f,` ${e.title.imdb_score??""}`),Z(h,e.title.year),Z(b,e.title.type),se(T,"href",j)},[()=>ma(e.title.standing_poster),()=>Gr(e.title)]),ge("error",o,({target:C})=>C.src=zr),m(t,n),le()}we(["click"]);var t1=P('<em class="empty svelte-zmrqec">No results found</em>'),i1=P('<div class="results svelte-zmrqec" data-testid="search-results"></div>'),a1=P('<div class="selected svelte-zmrqec"><!></div>'),n1=P('<div class="search svelte-zmrqec"><!> <!> <!></div>');function r1(t,e){re(e,!0);let i=D(e,"onselect",3,()=>null),a=D(e,"query",15),n=G(Be([])),r=G(null),o=G(!1);Ue(()=>{a()&&s(a())});async function s(h){M(o,!0);try{M(n,await Jg(h),!0)}finally{M(o,!1)}}function c(h){a(h.title),M(r,h,!0),i()(h)}var d=n1(),u=w(d);cl(u,{oninput:()=>M(r,null),name:"search",label:"Search...",get value(){return a()},set value(h){a(h)}});var v=S(u,2);{var p=h=>{var _=i1();Le(_,21,()=>l(n),b=>b.sid,(b,E)=>{zs(b,{get title(){return l(E)},onclick:()=>c(l(E))})},b=>{var E=he(),x=J(E);{var T=L=>{var C=t1();m(L,C)};B(x,L=>{l(o)||L(T)})}m(b,E)}),m(h,_)};B(v,h=>{a()&&!l(r)&&h(p)})}var f=S(v,2);{var y=h=>{var _=a1(),b=w(_);zs(b,{get title(){return l(r)},hoverable:!1}),m(h,_)};B(f,h=>{l(r)&&h(y)})}m(t,d),le()}var l1=P('<div class="error svelte-12oucrc"><!></div>'),o1=P('<label for="text" class="svelte-12oucrc">Paired title</label> <!>',1),s1=P('<section class="layout svelte-12oucrc"><div class="header svelte-12oucrc"><!> <div class="heading svelte-12oucrc">Add Playlink manually</div></div> <p class="svelte-12oucrc">Highlight the text section in your post that you want to turn into a Playlink.</p> <label for="text" class="svelte-12oucrc">Selected text</label> <!> <!> <!> <button class="save svelte-12oucrc">Add playlink</button></section>');function c1(t,e){re(e,!0);const i=D(e,"onclose",3,()=>null),{pageText:a}=fa();let n=G(""),r=G(""),o=G(null),s=G(""),c=G(""),d=G(""),u=G("");Je(v);function v(){const I=window.getSelection();if(!(I!=null&&I.anchorNode)||I.anchorNode.parentElement&&!pa().contains(I.anchorNode.parentElement))return;const k=I.toString().trim();if(!k)return;M(d,""),M(n,k,!0);const A=I.getRangeAt(0).cloneContents();if(Array.from(A.childNodes).filter(Q=>{var X;return(X=Q.textContent)==null?void 0:X.trim()}).find(Q=>{var X;return Q.nodeName==="A"||((X=Q.querySelector)==null?void 0:X.call(Q,"a"))})){M(d,"Selection is or contains a link. Injections can not be created around already existing links.");return}M(u,l(n),!0);const{node:R,sentence:U}=p(I,k);if(!R)return;M(r,U,!0);const{start:Y,end:q}=Kg(I,R);(Q=>{M(c,Q.before,!0),M(s,Q.after,!0)})(Xo(R,Y,q)),U.includes(l(c))||M(c,""),U.includes(l(s))||M(s,"");const O=I.getRangeAt(0).commonAncestorContainer.textContent,K=St(a);(!O||!K.includes(St(O)))&&M(d,"Selection was not inside of given content")}function p(I,k){const A=I.getRangeAt(0),N=pa();let R=A.startContainer;for(;(R.textContent||"").length<=k.length*3&&R.parentNode&&R.nodeName!=="P"&&R.parentNode.textContent!==N.textContent;)R=R.parentNode;if(!R||!R.textContent)return{node:null,sentence:""};const U=R.textContent,Y=f(R,A.startContainer,A.startOffset),q=f(R,A.endContainer,A.endOffset),O=U.slice(0,Y).lastIndexOf("."),K=U.slice(q).match(/[.!?\n]/),Q=K?q+K.index:U.length,X=O===-1?0:O+1,ee=Q,ce=U.slice(X,ee+1).trim();return{node:R,sentence:ce}}function f(I,k,A){let N=0;const R=I,U=Y=>{var q;if(Y===k)return N+=A,!0;Y.nodeType===Node.TEXT_NODE&&(N+=((q=Y.textContent)==null?void 0:q.length)||0);for(let O=Y.firstChild;O;O=O.nextSibling)if(U(O))return!0;return!1};return U(R),N}function y(I){var k,A;M(o,I,!0),(A=(k=window.getSelection())==null?void 0:k.removeAllRanges)==null||A.call(k)}function h(){if(!l(n)||!l(o))return;const I=l(o).type==="movie"?"movie":"show",k=Oo+`/${I}/${l(o).slug}`,A={sid:l(o).sid,title:l(n),sentence:l(r),phrase_before:l(c),phrase_after:l(s),playpilot_url:k,key:Yo(l(o).sid),title_details:l(o),manual:!0};e.onsave(A),i()()}var _=s1();ge("mouseup",Ee,v);var b=w(_),E=w(b);Za(E,{get onclick(){return i()},size:"24px",children:(I,k)=>{Zg(I)},$$slots:{default:!0}});var x=S(E,2);ft(x,(I,k)=>ze==null?void 0:ze(I,k),()=>2);var T=S(b,6);cl(T,{get value(){return l(n)},label:"Select text on the page",name:"selected-text",readonly:!0});var L=S(T,2);{var C=I=>{var k=l1(),A=w(k);Wi(A,{children:(N,R)=>{var U=Ye();V(()=>Z(U,l(d))),m(N,U)},$$slots:{default:!0}}),m(I,k)};B(L,I=>{l(d)&&I(C)})}var j=S(L,2);{var W=I=>{var k=o1(),A=S(J(k),2);ca(A,()=>l(r)+l(n),N=>{r1(N,{onselect:y,get query(){return l(u)},set query(R){M(u,R,!0)}})}),m(I,k)};B(j,I=>{l(d)||I(W)})}var z=S(j,2);z.__click=h,V(()=>z.disabled=!l(n)||!l(o)),m(t,_),le()}we(["click"]);const dl="PlayPilotEditorialSessionId",As=5e3,d1=As*2;async function u1(){const{ai_enabled:t,injections_enabled:e,ai_last_run:i,session_id:a,session_last_ping:n}=await Hi(),r=Ms(a||null,n||null),o={ai_enabled:t,ai_last_run:i,injections_enabled:e,session_id:a,session_last_ping:n};return r?await Ls():o}async function Ls(){const t=qs(),e=new Date(Date.now()).toISOString(),i={session_id:t,session_last_ping:e.toString()},{ai_enabled:a,injections_enabled:n,ai_last_run:r}=await Hi({params:i});return{ai_enabled:a,ai_last_run:r,injections_enabled:n,...i}}function Ms(t,e){if(!t||!e)return!0;const i=Date.now(),a=new Date(e),n=qs();return i-a.getTime()>d1?!0:n===t}function qs(){return sessionStorage.getItem(dl)||v1()}function v1(){const t=sessionStorage.getItem(dl)||Cn();return sessionStorage.setItem(dl,t),t}var p1=P('<p class="svelte-16jrr0h"><strong>Someone else is currently editing this document.</strong> Wait for them to exit the page or take over edit permissions, preventing them from making more changes.</p> <button class="button svelte-16jrr0h">Take over editing</button>',1),f1=P('<div class="alert svelte-16jrr0h"><!></div>');function h1(t,e){re(e,!0);const i=D(e,"onpoll",3,()=>null),a=D(e,"onallow",3,()=>null),n=D(e,"ondisallow",3,()=>null),r=D(e,"ontakeover",3,()=>null);let o=null,s=G(!0);Je(()=>(c(),()=>{o&&clearInterval(o)}));function c(){d(),o=setInterval(d,As)}async function d(){const y=await u1();y&&(M(s,Ms(y.session_id||null,y.session_last_ping||null),!0),l(s)?a()():n()(),i()({injectionsEnabled:!!y.injections_enabled,aiEnabled:!!y.ai_enabled}))}function u(){Ls(),r()()}var v=he(),p=J(v);{var f=y=>{var h=f1(),_=w(h);Wi(_,{type:"warning",children:(b,E)=>{var x=p1(),T=S(J(x),2);T.__click=u,m(b,x)},$$slots:{default:!0}}),m(y,h)};B(p,y=>{l(s)||y(f)})}m(t,v),le()}we(["click"]);var g1=Re('<svg width="24px" height="24px" viewBox="0 0 64 64" stroke-width="3" stroke="currentColor" fill="none"><circle cx="34.52" cy="11.43" r="5.82"></circle><circle cx="53.63" cy="31.6" r="5.82"></circle><circle cx="34.52" cy="50.57" r="5.82"></circle><circle cx="15.16" cy="42.03" r="5.82"></circle><circle cx="15.16" cy="19.27" r="5.82"></circle><circle cx="34.51" cy="29.27" r="4.7"></circle><line x1="20.17" y1="16.3" x2="28.9" y2="12.93"></line><line x1="38.6" y1="15.59" x2="49.48" y2="27.52"></line><line x1="50.07" y1="36.2" x2="38.67" y2="46.49"></line><line x1="18.36" y1="24.13" x2="30.91" y2="46.01"></line><line x1="20.31" y1="44.74" x2="28.7" y2="48.63"></line><line x1="17.34" y1="36.63" x2="31.37" y2="16.32"></line><line x1="20.52" y1="21.55" x2="30.34" y2="27.1"></line><line x1="39.22" y1="29.8" x2="47.81" y2="30.45"></line><line x1="34.51" y1="33.98" x2="34.52" y2="44.74"></line></svg>');function m1(t){var e=g1();m(t,e)}var y1=P('<strong class="svelte-1q9haus">AI processing is disabled.</strong>'),b1=P('<span class="svelte-1q9haus">.</span>'),_1=P(`<strong class="svelte-1q9haus">AI links are currently processing.</strong> This can take several minutes. We'll insert all found injections once ready. <div class="message svelte-1q9haus"> <span class="ellipses svelte-1q9haus"></span></div> <div class="loading-bar svelte-1q9haus"><div class="loading-bar-progress svelte-1q9haus"><div class="loading-bar-fill svelte-1q9haus" data-testid="loading-bar"></div></div> <div class="loading-bar-label svelte-1q9haus"> </div></div>`,1),w1=P('<p class="svelte-1q9haus"><strong class="svelte-1q9haus">AI has finished processing.</strong> <br class="svelte-1q9haus"/> <!></p> <button class="dismiss svelte-1q9haus">Dismiss</button>',1),x1=P('<div class="animator svelte-1q9haus" data-test-id="animator"></div>'),k1=P('<div data-testid="ai-indicator"><div class="content svelte-1q9haus"><div class="icon svelte-1q9haus"><!></div> <div class="svelte-1q9haus"><!></div></div> <div class="border svelte-1q9haus"><!></div></div>');function S1(t,e){const i=D(e,"aiRunning",3,!1),a=D(e,"aiEnabled",3,!1),n=D(e,"message",3,""),r=D(e,"percentage",3,0),o=D(e,"aiInjectionsCount",3,0),s=o();let c=G(!1);var d=he(),u=J(d);{var v=p=>{var f=k1();let y;var h=w(f),_=w(h),b=w(_);m1(b);var E=S(_,2),x=w(E);{var T=z=>{var I=y1();m(z,I)},L=z=>{var I=he(),k=J(I);{var A=R=>{var U=_1(),Y=S(J(U),2),q=w(Y),O=S(q);Le(O,20,()=>({length:3}),qe,(Ie,$)=>{var ie=b1();m(Ie,ie)});var K=S(Y,2),Q=w(K),X=w(Q);let ee;var ce=S(Q,2),Pe=w(ce);V((Ie,$)=>{Z(q,`${n()??""} `),ee=Ge(X,"",ee,Ie),Z(Pe,`${$??""}%`)},[()=>({width:`${Math.max(r(),3)}%`}),()=>Math.floor(r())]),m(R,U)},N=R=>{var U=w1(),Y=J(U),q=S(w(Y),4);{var O=X=>{var ee=Ye("No new injections where found.");m(X,ee)},K=X=>{var ee=Ye();V(()=>Z(ee,`${o()??""} Injections where found and added to the page.`)),m(X,ee)};B(q,X=>{s===o()?X(O):X(K,!1)})}var Q=S(Y,2);Q.__click=()=>M(c,!0),m(R,U)};B(k,R=>{i()?R(A):R(N,!1)},!0)}m(z,I)};B(x,z=>{a()?z(L,!1):z(T)})}var C=S(h,2),j=w(C);{var W=z=>{var I=x1();m(z,I)};B(j,z=>{i()&&z(W)})}V(()=>y=xe(f,1,"ai-indicator svelte-1q9haus",null,y,{running:i()})),m(p,f)};B(u,p=>{l(c)||p(v)})}m(t,d)}we(["click"]);var T1=P('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:400,600,700"/>'),E1=P('<div class="handles svelte-7r3240"><div class="handle svelte-7r3240"><!></div> <div class="handle svelte-7r3240"><!></div></div>'),P1=P('<div class="loading svelte-7r3240">Loading...</div>'),C1=P('<div class="bubble svelte-7r3240"> </div> <!>',1),I1=P(`<strong>Playlinks are currently not published.</strong> Visitors to this page will not see any of the injected links.
12
12
  Publish playlinks from the <a href="https://partner.playpilot.net">Partner Portal.</a>`,1),j1=P('<div class="alert svelte-7r3240"><!></div>'),z1=P('<div class="error svelte-7r3240"><!></div>'),A1=P('<div class="empty svelte-7r3240">No links available. Add links manually by clicking the + button and select text to add a link to.</div>'),L1=P('<button class="save svelte-7r3240"> </button>'),M1=P('<!> <!> <div class="items svelte-7r3240"></div> <!>',1),q1=P("<!> <!> <!>",1),D1=P('<div class="panel playpilot-styled-scrollbar svelte-7r3240"><!></div>'),N1=P('<section><!> <header class="header svelte-7r3240"><div class="heading svelte-7r3240">Playlinks</div> <!></header> <!> <!></section>');function R1(t,e){re(e,!0);let i=D(e,"linkInjections",15),a=D(e,"loading",3,!1),n=D(e,"injectionsEnabled",7,!1),r=D(e,"aiStatus",23,()=>({})),o=D(e,"onreinitialize",3,()=>null);const s="editor-position",c="editor-height",d=JSON.parse(localStorage.getItem(s)||'{ "x": 0, "y": 0 }'),u=parseInt(localStorage.getItem(c)||"0");let v=G(null),p=G(!1),f=G(!1),y=G(!1),h=G(!0),_=G(0),b=G("");const E=H(()=>on(r().aiEnabled,!1)),x=H(()=>on(r().aiRunning,!1)),T=H(()=>JSON.stringify(i())),L=H(()=>!l(x)&&l(h)),C=H(()=>l(b)&&l(b)!==l(T)),j=H(()=>i().filter(ae=>ae.title_details&&!ae.removed&&!ae.duplicate&&(ae.manual||!ae.manual&&!ae.failed))),W=H(()=>I(l(j))),z=H(()=>!a()&&xt(()=>r().aiRunning));Ue(()=>{a()||xt(()=>{requestAnimationFrame(()=>M(b,l(T),!0)),Y()})});function I(ae){return ae.sort((ne,Se)=>ne.failed!==Se.failed?ne.failed?1:-1:ne.title_details.title.localeCompare(Se.title_details.title))}async function k(){try{M(f,!0),M(y,!1),i(await Rd(i())),M(b,l(T),!0)}catch{M(y,!0)}finally{M(f,!1)}}function A(ae,ne){localStorage.setItem(ae,ne)}function N(ae){const ne=i().findIndex(Se=>Se.key===ae);i(i()[ne].manual=!0,!0),i(i()[ne].removed=!0,!0),i([...i()])}function R(ae){if(!l(v))return;const ne=ae.offsetTop,Se=ne+ae.offsetHeight,de=l(v).scrollTop,Te=de+l(v).clientHeight;ne>=de&&Se<=Te||l(v).scrollTo({top:ne-l(v).clientHeight/2,behavior:"smooth"})}function U(ae){const ne=ae.target;M(_,ne.scrollTop,!0)}function Y(){const ae={total:i().length,failed_automatic:i().filter(ne=>ne.failed&&!ne.manual).length,failed_manual:i().filter(ne=>ne.failed&&ne.manual).length,final_injected:l(j).length};fe(pe.TotalInjectionsCount,null,ae)}var q=N1();od("7r3240",ae=>{var ne=T1();m(ae,ne)});let O;var K=w(q);{var Q=ae=>{var ne=E1(),Se=w(ne),de=w(Se);Gg(de,{get element(){return l(v)},get height(){return u},onchange:Qe=>A(c,JSON.stringify(Qe))});var Te=S(Se,2),He=w(Te);Wg(He,{get element(){return l(v)},get position(){return d},limit:{x:16,y:16},onchange:Qe=>A(s,JSON.stringify(Qe))}),m(ae,ne)};B(K,ae=>{l(v)&&!a()&&ae(Q)})}var X=S(K,2),ee=w(X);ft(ee,ae=>ze==null?void 0:ze(ae));var ce=S(ee,2);{var Pe=ae=>{var ne=P1();m(ae,ne)},Ie=ae=>{var ne=he(),Se=J(ne);{var de=Te=>{var He=C1(),Qe=J(He),te=w(Qe),ue=S(Qe,2);Za(ue,{onclick:()=>M(p,!0),size:"24px","aria-label":"Add manual injection",children:(be,tt)=>{var Fe=Ye("+");m(be,Fe)},$$slots:{default:!0}}),V(()=>{se(Qe,"aria-label",`${l(j).length??""} found playlinks`),Z(te,l(j).length)}),m(Te,He)};B(Se,Te=>{l(L)&&Te(de)},!0)}m(ae,ne)};B(ce,ae=>{a()?ae(Pe):ae(Ie,!1)})}var $=S(X,2);{var ie=ae=>{var ne=q1(),Se=J(ne);h1(Se,{onallow:()=>M(h,!0),ondisallow:()=>M(h,!1),get ontakeover(){return o()},onpoll:te=>{n(te.injectionsEnabled),r({...r(),aiEnabled:te.aiEnabled})}});var de=S(Se,2);{var Te=te=>{{let ue=H(()=>Es(i()).aiInjections.length);S1(te,En(r,{get aiInjectionsCount(){return l(ue)}}))}};B(de,te=>{l(h)&&(l(z)||!l(E))&&te(Te)})}var He=S(de,2);{var Qe=te=>{var ue=M1(),be=J(ue);{var tt=it=>{var at=j1(),ni=w(at);Wi(ni,{type:"warning",children:(mi,Qn)=>{var Ia=I1();m(mi,Ia)},$$slots:{default:!0}}),m(it,at)};B(be,it=>{n()||it(tt)})}var Fe=S(be,2);{var jt=it=>{var at=z1(),ni=w(at);Wi(ni,{children:(mi,Qn)=>{var Ia=Ye("Something went wrong, check your links below.");m(mi,Ia)},$$slots:{default:!0}}),Ae(7,at,()=>Ga,()=>({duration:150})),m(it,at)};B(Fe,it=>{l(y)&&it(jt)})}var Ca=S(Fe,2);Le(Ca,21,()=>l(W),it=>it.key,(it,at)=>{const ni=H(()=>i().findIndex(mi=>mi.key===l(at).key));Hg(it,{onremove:()=>N(l(at).key),onhighlight:R,get linkInjection(){return i()[l(ni)]},set linkInjection(mi){i(i()[l(ni)]=mi,!0)}})},it=>{var at=A1();m(it,at)});var zt=S(Ca,2);{var At=it=>{var at=L1();at.__click=k;var ni=w(at);V(()=>{at.disabled=l(f),Z(ni,l(f)?"Saving...":"Save links")}),Ae(1,at,()=>Et,()=>({duration:100})),m(it,at)};B(zt,it=>{l(C)&&i().length&&l(h)&&it(At)})}m(te,ue)};B(He,te=>{l(L)&&te(Qe)})}m(ae,ne)};B($,ae=>{a()||ae(ie)})}var oe=S($,2);{var me=ae=>{var ne=D1();let Se;var de=w(ne);c1(de,{onclose:()=>M(p,!1),onsave:Te=>i().push(Te)}),V(()=>Se=Ge(ne,"",Se,{top:`${l(_)??""}px`})),Ae(3,ne,()=>ha,()=>({x:Math.min(window.innerWidth,320),duration:200,opacity:1})),m(ae,ne)};B(oe,ae=>{l(p)&&ae(me)})}Ze(q,ae=>M(v,ae),()=>l(v)),V(()=>O=xe(q,1,"editor playpilot-styled-scrollbar svelte-7r3240",null,O,{"panel-open":l(p),loading:a()})),ge("scroll",q,U),m(t,q),le()}we(["click"]);var O1=Re('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 57.48 62.96"><defs><style>.playpilot-logo{fill:url(#playpilot-linear-gradient);}</style><linearGradient id="playpilot-linear-gradient" x1="-90.03" y1="-40.23" x2="-34.8" y2="-101.48" gradientTransform="translate(74.02 108.65)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#de00b9"></stop><stop offset="0.99" stop-color="#ff557b"></stop></linearGradient></defs><path class="playpilot-logo" d="M57.48,31.48C57.48,22.17,20.85,2.19,9.2.18,7.42-.12,3.78-.37,1.36,2.25-4.32,8.39,9.62,21.5,9.62,31.48S-4.32,54.57,1.36,60.72c2.42,2.61,6.06,2.37,7.84,2.06C20.85,60.78,57.48,40.79,57.48,31.48Z"></path></svg>');function B1(t){var e=O1();m(t,e)}var F1=P('<div class="trigger svelte-qpyyh0"><button type="button" class="button svelte-qpyyh0" title="Show PlayPilot TPI editor"><!></button> <button type="button" class="button close svelte-qpyyh0" title="Close PlayPilot TPI"><!></button></div>');function H1(t,e){var i=F1(),a=w(i);a.__click=function(...s){var c;(c=e.onclick)==null||c.apply(this,s)};var n=w(a);B1(n);var r=S(a,2);r.__click=function(...s){var c;(c=e.onclose)==null||c.apply(this,s)};var o=w(r);Ka(o,{}),m(t,i)}we(["click"]);function V1(t,e){re(e,!0);const i=100;let a=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){r();return}if(!window.__tcfapi){a<i&&setTimeout(n,100),a++;return}window.__tcfapi("addEventListener",2,(o,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=o;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=v=>c.consents[v]===!0;Jd({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),r()})}function r(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}le()}var W1=P('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),U1=P('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),G1=P('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),K1=P('<button class="svelte-1tp7i1s"></button>'),Y1=P("<small>You are using the beta version of TPI</small>"),Z1=P('<button class="svelte-1tp7i1s">Use beta script</button>'),J1=P('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Q1=P("<option> </option>"),X1=P('<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">Close</button></div>');function $1(t,e){re(e,!0);const i=["tpidebug","debugtpi"],a=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let r=G(Be(d())),o=G(!1),s=null,c=G(184);jr(()=>{s&&clearInterval(s)});function d(){var L,C,j,W,z,I;const b=window.PlayPilotLinkInjections,E=((L=b.evaluated_link_injections)==null?void 0:L.filter(k=>!k.failed))||[],x=((C=b.evaluated_link_injections)==null?void 0:C.filter(k=>k.failed))||[],T=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:b.domain_sid},{label:"Organization",data:b.organization_sid},{label:"HTML selector",data:b.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([k,A])=>({label:k,data:A})),[`Succesful injections (${E.length})`]:E.map(k=>({label:k.title,data:k.sentence})),[`Failed injections (${x.length})`]:x.map(k=>({label:k.title,data:`Reason: ${k.failed_message} | Sentence: ${k.sentence}`})),[`Fetched ads (${((j=b.ads)==null?void 0:j.length)||0})`]:(W=b.ads)==null?void 0:W.map(k=>({label:k.campaign_name,data:k})),[`Tracking events (${((z=b.tracked_events)==null?void 0:z.length)||0})`]:(I=b.tracked_events)==null?void 0:I.map(k=>({label:k.event,data:k.payload})),[`Visible pixels (${T.length})`]:T.map((k,A)=>({label:A+1,data:k.src}))}}function u(b){l(o)||(a.push(b.key),M(o,i.some(E=>a.slice(a.length-E.length,a.length).join("")===E),!0),s=setInterval(()=>M(r,d(),!0),200))}function v(b){window.PlayPilotLinkInjections.ads.unshift({campaign_format:b,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function p(b){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(tl).forEach(({key:E,numberOfVariants:x})=>{const T=1/x;window.PlayPilotLinkInjections.split_test_identifiers[E]=Math.min(T*b,1)})}function f(){var x,T;const b=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!b)return;(T=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||T.call(x);const E=document.createElement("script");for(const L of b.attributes)E.setAttribute(L.name,L.value);E.getAttribute("onload")||E.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),E.src=b.src.replace("link-injection","link-injection@next"),b.insertAdjacentElement("afterend",E),b.remove()}var y=he();ge("keydown",Ee,u);var h=J(y);{var _=b=>{var E=X1(),x=S(w(E),4);{var T=$=>{var ie=W1();m($,ie)};B(x,$=>{var ie,oe,me;(ie=window.PlayPilotLinkInjections.config)!=null&&ie.exclude_urls_pattern&&Fi().match((me=(oe=window.PlayPilotLinkInjections)==null?void 0:oe.config)==null?void 0:me.exclude_urls_pattern)&&$(T)})}var L=S(x,2);Le(L,17,()=>Object.entries(l(r)),qe,($,ie)=>{var oe=H(()=>$i(l(ie),2));let me=()=>l(oe)[0],ae=()=>l(oe)[1];var ne=G1(),Se=w(ne),de=w(Se),Te=S(Se,2);{var He=te=>{var ue=he(),be=J(ue);{var tt=Fe=>{var jt=he(),Ca=J(jt);Le(Ca,17,ae,qe,(zt,At,it,at)=>{let ni=()=>l(At).label,mi=()=>l(At).data;var Qn=U1(),Ia=w(Qn),om=w(Ia),sm=S(Ia,2),cm=w(sm);V(dm=>{Z(om,ni()),Z(cm,dm)},[()=>JSON.stringify(mi())]),m(zt,Qn)}),m(Fe,jt)};B(be,Fe=>{Array.isArray(ae())&&Fe(tt)})}m(te,ue)},Qe=te=>{var ue=Ye("No data");m(te,ue)};B(Te,te=>{var ue;(ue=ae())!=null&&ue.length?te(He):te(Qe,!1)})}V(()=>Z(de,me())),m($,ne)});var C=S(L,4);C.__click=()=>v("card");var j=S(C,2);j.__click=()=>v("top_scroll");var W=S(j,6);Le(W,16,()=>({length:4}),qe,($,ie,oe)=>{var me=K1();me.__click=()=>p(oe),me.textContent=oe,m($,me)});var z=S(W,4);z.__click=()=>console.log(fa(window.PlayPilotLinkInjections.config));var I=S(z,2);I.__click=()=>console.log(fa(window.PlayPilotLinkInjections.config).pageText);var k=S(I,4);k.__click=function(...$){var ie;(ie=e.onrerender)==null||ie.apply(this,$)};var A=S(k,2);{var N=$=>{var ie=Y1();m($,ie)},R=$=>{var ie=Z1();ie.__click=f,m($,ie)};B(A,$=>{n?$(N):$(R,!1)})}var U=S(A,2);{var Y=$=>{var ie=J1();ie.__click=()=>{On(),window.PlayPilotLinkInjections.config.explore_use_router=!ba(),Rn()},m($,ie)};B(U,$=>{ba()||$(Y)})}var q=S(U,4),O=S(w(q),2);pd(O,window.PlayPilotLinkInjections.region),O.__change=$=>{On(),window.PlayPilotLinkInjections.region=$.target.value,Rn()};var K=S(q,2),Q=S(w(K),2);Q.__change=$=>{On(),window.PlayPilotLinkInjections.language=$.target.value,Rn()},Le(Q,21,()=>Object.entries(g),qe,($,ie)=>{var oe=H(()=>$i(l(ie),2));let me=()=>l(oe)[0],ae=()=>l(oe)[1];var ne=Q1(),Se=w(ne),de={};V(Te=>{jo(ne,Te),Z(Se,me()),de!==(de=ae())&&(ne.value=(ne.__value=ae())??"")},[()=>ae()===Wa()]),m($,ne)});var X=S(K,4),ee=S(w(X),2);se(ee,"min",80),se(ee,"max",240),se(ee,"step",8),ee.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${l(c)}px`);var ce=S(ee,2),Pe=w(ce),Ie=S(X,4);Ie.__click=()=>M(o,!1),V(()=>Z(Pe,l(c))),va(ee,()=>l(c),$=>M(c,$)),m(b,E)};B(h,b=>{l(o)&&b(_)})}m(t,y),le()}we(["click","change","input"]);function em(t,e){re(e,!1);const i=Array.from(document.querySelectorAll(hi)),a=[],n=Date.now();let r=!1,o=null;Je(()=>{if(!Pn())return s(),()=>{var v;return(v=o==null?void 0:o.disconnect)==null?void 0:v.call(o)}});function s(){o=new IntersectionObserver(c),i.forEach(v=>{o.observe(v)})}function c(v){v.forEach(p=>{if(!p.isIntersecting)return;const f=p.target.getAttribute(fi);f&&a.push(f),o.unobserve(p.target)})}function d(){const{scrollHeight:v,scrollTop:p,clientHeight:f}=document.documentElement;return p/(v-f)*100}function u(){var p,f;if(r||document.visibilityState!=="hidden")return;r=!0;const v=Date.now();fe(pe.UserLeft,null,{time_start:n,time_end:v,time_spent:v-n,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((f=(p=window.PlayPilotLinkInjections)==null?void 0:p.tracked_events)==null?void 0:f.map(y=>y.event))||[],scroll_percentage:d()})}Ir(),ge("visibilitychange",Ee,u),le()}function tm(t,e){re(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new Bn,n=.7,r="[data-playpilot-poster]";let o=G(0),s={},c=null;const d=H(()=>l(o)<Ti);jr(f);function u(){var x,T;if((T=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&T.disable_scroll_reveal_posters||!l(d))return;y();const h=window.innerHeight,_=new Bn,b=h*n,E=h-b;for(const L of i){const{top:C}=L.getBoundingClientRect();C<b&&C>E&&_.add(L)}for(const L of _){if(a.has(L))continue;const C=L.dataset.playpilotPosterUrl;C in s&&s[C]!==L||(v(L,C),a.add(L),s[C]=L)}}function v(h,_){const b=document.createElement("img");b.classList.add("playpilot-floating-poster"),b.dataset.playpilotPoster="",b.src=_,b.alt="",b.onload=()=>b.classList.add("loaded"),h.insertAdjacentElement("afterbegin",b)}function p(h){const _=h.querySelector(r);_&&(_.classList.add("animating-out"),setTimeout(()=>_.remove(),500))}function f(){for(const h of Array.from(document.querySelectorAll(r)))h.remove()}function y(){c&&clearTimeout(c),c=setTimeout(()=>{for(const h of a)p(h),a.delete(h),s={}},1e3)}ge("scroll",Ee,u),Sn("innerWidth",h=>M(o,h,!0)),le()}function im(t,e){re(e,!0);const i=[];Je(()=>{if(!Ya())return;const n=new IntersectionObserver(r=>{r.forEach(o=>{if(!o.isIntersecting)return;n.unobserve(o.target);const s=o.target.getAttribute(fi),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(r=>{r.matchingElement&&n.observe(r.matchingElement)}),()=>n.disconnect()});function a({sid:n,genres:r,participants:o,providers:s,title:c}){i.push(n),$t(Rt.TitleInterest,{title:c,source:Ei.Link}),r.slice(0,3).forEach(d=>{var u;$t(Rt.GenreInterest,{genre:(u=zn.find(v=>v.slug===d))==null?void 0:u.name,source:Ei.Link})}),o==null||o.slice(0,5).forEach(d=>{$t(Rt.ParticipantInterest,{participant:d.name,source:Ei.Link})}),s==null||s.forEach(d=>{$t(Rt.ProviderInterest,{provider:d.name,source:Ei.Link})})}le()}var am=P("<!> <!>",1),nm=P("<!> <!>",1),rm=P('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function lm(t,e){re(e,!0);let i=G(null),a=G(Be(Pn())),n=G(!!Mr()),r=G(!1),o=G(!0),s=G(!0),c=G(Be([]));const d=H(()=>l(i)||{}),u=H(()=>on(l(d).ai_injections,()=>[],!0)),v=H(()=>on(l(d).manual_injections,()=>[],!0)),p=y();Ue(()=>{l(a)&&!l(o)&&h()}),Rn(),jr(ll);async function f(){jn()||(await p,iu(),fe(pe.ArticlePageView),!(!l(u).length&&!l(v).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await ns())))}async function y(){var Y;M(o,!0);try{l(a)&&M(r,await Ho({throwError:!0}),!0)}catch{fe(pe.AuthFailed)}try{const q=window.PlayPilotLinkInjections.config||await fg()||{};if(window.PlayPilotLinkInjections.config=q,q!=null&&q.custom_style&&x(q.custom_style||""),q!=null&&q.explore_navigation_selector&&vp(),q!=null&&q.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),q!=null&&q.domain_sid&&as({organizationSid:q.organization_sid,domainSid:q.domain_sid}),M(s,Dd(q),!0),l(s))return;q!=null&&q.html_selector&&(window.PlayPilotLinkInjections.selector=q==null?void 0:q.html_selector)}catch(q){fe(pe.FetchingConfigFailed),console.error("TPI Config failed to fetch",q);return}try{if(M(i,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),M(i,l(i)||await Go({maxTries:1,runAiWhenRelevant:!jn()}),!0),M(o,!1),!l(i)||(Y=window.PlayPilotLinkInjections.config)!=null&&Y.disable_public_injections&&!(l(a)&&l(r)))return;if(as({organizationSid:l(i).organization_sid,domainSid:l(i).domain_sid}),!l(i).ai_running||!l(i).ai_enabled){b({aiInjections:l(u),manualInjections:l(v)});return}if(!l(a)||jn())return;M(i,await Go({requireCompletedResult:!0,onpoll:q=>M(i,q,!0)}),!0),b({aiInjections:l(u),manualInjections:l(v)})}catch(q){console.error(q),fe(pe.InjectionError,null,{message:q.message})}}function h(){b(Es(l(c)))}function _(){M(a,!1),requestAnimationFrame(()=>{M(a,!0),y()})}function b(Y={aiInjections:l(u),manualInjections:l(v)}){const{elements:q}=fa(),O=ig(q,Y);JSON.stringify(O)!==JSON.stringify(l(c))&&(M(c,O,!0),window.PlayPilotLinkInjections.evaluated_link_injections=O),l(a)||T(O)}function E(){M(a,!0),jd(),y()}function x(Y){const q="playpilot-custom-style",O=document.getElementById(q),K=O||document.createElement("style");K.textContent=`body { ${Y} }`,K.id=q,O||document.body.appendChild(K)}function T(Y){const q=Y.filter(K=>!K.failed),O=Y.filter(K=>K.failed);if(q.length&&fe(pe.ArticleInjected,null,{manual:q.filter(K=>K.manual).length,ai:q.filter(K=>!K.manual).length}),O.length){const K=Q=>O.filter(({failed_message:X})=>X==null?void 0:X.includes(Q)).length;fe(pe.FailedInjectionsCount,null,{total:O.length,sentence_not_found:K("sentence was not found"),already_linked:K("already inside of a link"),broken_html:K("broken HTML"),duplicate:K("duplicate"),unknown:K("unknown reasons")})}}var L=rm(),C=J(L),j=w(C);{var W=Y=>{var q=am(),O=J(q);{var K=ee=>{H1(ee,{onclick:E,onclose:()=>{M(n,!1),Id()}})};B(O,ee=>{!l(s)&&l(n)&&!l(a)&&ee(K)})}var Q=S(O,2);{var X=ee=>{var ce=he(),Pe=J(ce);Ol(Pe,{onerror:$=>fe(pe.EditorError,null,{message:$.message}),failed:$=>{Wi($,{fixed:!0,children:(ie,oe)=>{var me=Ye("An error has occured in the PlayPilot Linkinjections editor view. We've been notified and will investigate!");m(ie,me)},$$slots:{default:!0}})}},$=>{{let ie=H(()=>{var me;return(me=l(i))==null?void 0:me.injections_enabled}),oe=H(()=>{var me,ae,ne,Se,de;return{aiEnabled:(me=l(i))==null?void 0:me.ai_enabled,aiRunning:((ae=l(i))==null?void 0:ae.ai_running)&&((ne=l(i))==null?void 0:ne.ai_enabled),message:(Se=l(i))==null?void 0:Se.ai_progress_message,percentage:(de=l(i))==null?void 0:de.ai_progress_percentage}});R1($,{get loading(){return l(o)},onreinitialize:_,get injectionsEnabled(){return l(ie)},get aiStatus(){return l(oe)},get linkInjections(){return l(c)},set linkInjections(me){M(c,me,!0)}})}}),m(ee,ce)};B(Q,ee=>{!l(s)&&l(a)&&l(r)&&ee(X)})}m(Y,q)};B(j,Y=>{Y(W)})}var z=S(j,2);$1(z,{onrerender:h});var I=S(C,2);{var k=Y=>{Yr(Y,{get pixels(){return l(i).pixels}})};B(I,Y=>{var q,O;(O=(q=l(i))==null?void 0:q.pixels)!=null&&O.length&&Y(k)})}var A=S(I,2);{var N=Y=>{im(Y,{get linkInjections(){return l(c)}})};B(A,Y=>{l(c).length&&Y(N)})}var R=S(A,2);ca(R,()=>l(c),Y=>{var q=nm(),O=J(q);em(O,{});var K=S(O,2);tm(K,{}),m(Y,q)});var U=S(R,2);V1(U,{onchange:f}),m(t,L),le()}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=kt(lm,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),ll()}}})();