@playpilot/tpi 8.5.10-beta.1 → 8.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.html CHANGED
@@ -13,8 +13,6 @@
13
13
  </head>
14
14
  <body>
15
15
  <main>Dune: Part Two is the second movie in the Dune trilogy.</main>
16
- <script type="module" src="./dist/link-injections.js" onload="window.PlayPilotLinkInjections.initialize({ token: 'ZoAL14yqzevMyQiwckbvyetOkeIUeEDN', require_consent: false })"></script>
17
-
18
- <script defer src="https://scripts.playpilot.com/link-injection.js"></script>
16
+ <script type="module" src="./dist/link-injections.js" onload="window.PlayPilotLinkInjections.initialize({ token: 'ZoAL14yqzevMyQiwckbvyetOkeIUeEDN' })"></script>
19
17
  </body>
20
18
  </html>
@@ -2,7 +2,7 @@ var K1=Object.defineProperty;var Ms=Re=>{throw TypeError(Re)};var Y1=(Re,Ne,Ve)=
2
2
  /*$vite$:1*/`,document.head.appendChild(Re);const Ne=!1;var Ve=Array.isArray,Qa=Array.prototype.indexOf,Kn=Array.from,Bs=Object.defineProperty,hi=Object.getOwnPropertyDescriptor,pl=Object.getOwnPropertyDescriptors,Fs=Object.prototype,Hs=Array.prototype,Yn=Object.getPrototypeOf,fl=Object.isExtensible;function Xi(t){return typeof t=="function"}const bt=()=>{};function Vs(t){return typeof(t==null?void 0:t.then)=="function"}function Us(t){return t()}function Zn(t){for(var e=0;e<t.length;e++)t[e]()}function hl(){var t,e,i=new Promise((a,n)=>{t=a,e=n});return{promise:i,resolve:t,reject:e}}function $a(t,e,i=!1){return t===void 0?i?e():e:t}function ka(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 at=2,Jn=4,en=8,gl=1<<24,Ot=16,ai=32,Ci=64,tn=128,It=512,lt=1024,ut=2048,ni=4096,ht=8192,ri=16384,an=32768,Bt=65536,ml=1<<17,Xn=1<<18,Qi=1<<19,yl=1<<20,Sa=32768,Qn=1<<21,$n=1<<22,gi=1<<23,Ft=Symbol("$state"),bl=Symbol("legacy props"),Ws=Symbol(""),$i=new class extends Error{constructor(){super(...arguments);Nt(this,"name","StaleReactionError");Nt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function er(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Gs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ks(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ys(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Js(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Xs(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Qs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $s(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ec(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function tc(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const _l=1,xl=2,wl=4,ic=8,ac=16,nc=1,rc=2,lc=4,oc=8,sc=16,cc=1,dc=2,uc=4,vc=1,pc=2,Xe=Symbol(),fc="http://www.w3.org/1999/xhtml",hc="http://www.w3.org/2000/svg",gc="@attach";function mc(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function yc(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function kl(t){return t===this.v}function Sl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tl(t){return!Sl(t,this.v)}let ea=!1,bc=!1;function _c(){ea=!0}let Me=null;function ta(t){Me=t}function tr(t){return El().get(t)}function ir(t,e){return El().set(t,e),e}function oe(t,e=!1,i){Me={p:Me,i:!1,c:null,e:null,s:t,x:null,l:ea&&!e?{s:null,u:null,$:[]}:null}}function se(t){var e=Me,i=e.e;if(i!==null){e.e=null;for(var a of i)Xl(a)}return t!==void 0&&(e.x=t),e.i=!0,Me=e.p,t??{}}function Ii(){return!ea||Me!==null&&Me.l===null}function El(t){return Me===null&&er(),Me.c??(Me.c=new Map(xc(Me)||void 0))}function xc(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let ji=[];function Pl(){var t=ji;ji=[],Zn(t)}function li(t){if(ji.length===0&&!aa){var e=ji;queueMicrotask(()=>{e===ji&&Pl()})}ji.push(t)}function wc(){for(;ji.length>0;)Pl()}function Cl(t){var e=Ce;if(e===null)return Te.f|=gi,t;if(e.f&an)ia(t,e);else{if(!(e.f&tn))throw t;e.b.error(t)}}function ia(t,e){for(;e!==null;){if(e.f&tn)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const nn=new Set;let we=null,Ta=null,Ge=null,_t=[],rn=null,ar=!1,aa=!1;const Dn=class Dn{constructor(){be(this,Ze);Nt(this,"committed",!1);Nt(this,"current",new Map);Nt(this,"previous",new Map);be(this,ga,new Set);be(this,ma,new Set);be(this,Ui,0);be(this,Wi,0);be(this,Wa,null);be(this,ya,[]);be(this,ba,[]);Nt(this,"skipped_effects",new Set);Nt(this,"is_fork",!1)}is_deferred(){return this.is_fork||O(this,Wi)>0}process(e){var a;_t=[],Ta=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of e)Oe(this,Ze,cl).call(this,n,i);this.is_fork||Oe(this,Ze,qs).call(this),this.is_deferred()?(Oe(this,Ze,Ji).call(this,i.effects),Oe(this,Ze,Ji).call(this,i.render_effects),Oe(this,Ze,Ji).call(this,i.block_effects)):(Ta=this,we=null,zl(i.render_effects),zl(i.effects),Ta=null,(a=O(this,Wa))==null||a.resolve()),Ge=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&gi||(this.current.set(e,e.v),Ge==null||Ge.set(e,e.v))}activate(){we=this,this.apply()}deactivate(){we===this&&(we=null,Ge=null)}flush(){if(this.activate(),_t.length>0){if(jl(),we!==null&&we!==this)return}else O(this,Ui)===0&&this.process([]);this.deactivate()}discard(){for(const e of O(this,ma))e(this);O(this,ma).clear()}increment(e){he(this,Ui,O(this,Ui)+1),e&&he(this,Wi,O(this,Wi)+1)}decrement(e){he(this,Ui,O(this,Ui)-1),e&&he(this,Wi,O(this,Wi)-1),this.revive()}revive(){for(const e of O(this,ya))ot(e,ut),zi(e);for(const e of O(this,ba))ot(e,ni),zi(e);he(this,ya,[]),he(this,ba,[]),this.flush()}oncommit(e){O(this,ga).add(e)}ondiscard(e){O(this,ma).add(e)}settled(){return(O(this,Wa)??he(this,Wa,hl())).promise}static ensure(){if(we===null){const e=we=new Dn;nn.add(we),aa||Dn.enqueue(()=>{we===e&&e.flush()})}return we}static enqueue(e){li(e)}apply(){}};ga=new WeakMap,ma=new WeakMap,Ui=new WeakMap,Wi=new WeakMap,Wa=new WeakMap,ya=new WeakMap,ba=new WeakMap,Ze=new WeakSet,cl=function(e,i){var u;e.f^=lt;for(var a=e.first;a!==null;){var n=a.f,r=(n&(ai|Ci))!==0,o=r&&(n&lt)!==0,s=o||(n&ht)!==0||this.skipped_effects.has(a);if(a.f&tn&&((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&Jn?i.effects.push(a):Aa(a)&&(a.f&Ot&&i.block_effects.push(a),La(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,Ze,Ji).call(this,i.effects),Oe(this,Ze,Ji).call(this,i.render_effects),Oe(this,Ze,Ji).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Ji=function(e){for(const i of e)(i.f&ut?O(this,ya):O(this,ba)).push(i),Oe(this,Ze,dl).call(this,i.deps),ot(i,lt)},dl=function(e){if(e!==null)for(const i of e)!(i.f&at)||!(i.f&Sa)||(i.f^=Sa,Oe(this,Ze,dl).call(this,i.deps))},qs=function(){if(O(this,Wi)===0){for(const e of O(this,ga))e();O(this,ga).clear()}O(this,Ui)===0&&Oe(this,Ze,Ds).call(this)},Ds=function(){var r;if(nn.size>1){this.previous.clear();var e=Ge,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of nn){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)Al(v,c,d,u);if(_t.length>0){we=o,o.apply();for(const v of _t)Oe(r=o,Ze,cl).call(r,v,a);o.deactivate()}_t=n}}we=null,Ge=e}this.committed=!0,nn.delete(this)};let Ht=Dn;function Il(t){var e=aa;aa=!0;try{for(var i;;){if(wc(),_t.length===0&&(we==null||we.flush(),_t.length===0))return rn=null,i;jl()}}finally{aa=e}}function jl(){var t=_i;ar=!0;var e=null;try{var i=0;for(on(!0);_t.length>0;){var a=Ht.ensure();if(i++>1e3){var n,r;kc()}a.process(_t),mi.clear()}}finally{ar=!1,on(t),rn=null}}function kc(){try{Js()}catch(t){ia(t,rn)}}let jt=null;function zl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(ri|ht))&&Aa(a)&&(jt=new Set,La(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?io(a):a.fn=null),(jt==null?void 0:jt.size)>0)){mi.clear();for(const n of jt){if(n.f&(ri|ht))continue;const r=[n];let o=n.parent;for(;o!==null;)jt.has(o)&&(jt.delete(o),r.push(o)),o=o.parent;for(let s=r.length-1;s>=0;s--){const c=r[s];c.f&(ri|ht)||La(c)}}jt.clear()}}jt=null}}function Al(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&at?Al(n,e,i,a):r&($n|Ot)&&!(r&ut)&&Ll(n,e,a)&&(ot(n,ut),zi(n))}}function Ll(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&at&&Ll(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function zi(t){for(var e=rn=t;e.parent!==null;){e=e.parent;var i=e.f;if(ar&&e===Ce&&i&Ot&&!(i&Xn))return;if(i&(Ci|ai)){if(!(i&lt))return;e.f^=lt}}_t.push(e)}function Ml(t){let e=0,i=Ut(0),a;return()=>{Ia()&&(l(i),ln(()=>(e===0&&(a=wt(()=>t(()=>yi(i)))),e+=1,()=>{li(()=>{e-=1,e===0&&(a==null||a(),a=void 0,yi(i))})})))}}var Sc=Bt|Qi|tn;function ql(t,e,i){new Tc(t,e,i)}class Tc{constructor(e,i,a){be(this,et);Nt(this,"parent");be(this,Tt,!1);be(this,Et);be(this,ol,null);be(this,Jt);be(this,Gi);be(this,Xt);be(this,Pt,null);be(this,ft,null);be(this,Qt,null);be(this,pi,null);be(this,ki,null);be(this,Ki,0);be(this,Si,0);be(this,Yi,!1);be(this,Ti,null);be(this,Rn,Ml(()=>(he(this,Ti,Ut(O(this,Ki))),()=>{he(this,Ti,null)})));he(this,Et,e),he(this,Jt,i),he(this,Gi,a),this.parent=Ce.b,he(this,Tt,!!O(this,Jt).pending),he(this,Xt,si(()=>{Ce.b=this;{var n=Oe(this,et,ul).call(this);try{he(this,Pt,vt(()=>a(n)))}catch(r){this.error(r)}O(this,Si)>0?Oe(this,et,Gn).call(this):he(this,Tt,!1)}return()=>{var r;(r=O(this,ki))==null||r.remove()}},Sc))}is_pending(){return O(this,Tt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!O(this,Jt).pending}update_pending_count(e){Oe(this,et,vl).call(this,e),he(this,Ki,O(this,Ki)+e),O(this,Ti)&&oi(O(this,Ti),O(this,Ki))}get_effect_pending(){return O(this,Rn).call(this),l(O(this,Ti))}error(e){var i=O(this,Jt).onerror;let a=O(this,Jt).failed;if(O(this,Yi)||!i&&!a)throw e;O(this,Pt)&&(nt(O(this,Pt)),he(this,Pt,null)),O(this,ft)&&(nt(O(this,ft)),he(this,ft,null)),O(this,Qt)&&(nt(O(this,Qt)),he(this,Qt,null));var n=!1,r=!1;const o=()=>{if(n){yc();return}n=!0,r&&tc(),Ht.ensure(),he(this,Ki,0),O(this,Qt)!==null&&na(O(this,Qt),()=>{he(this,Qt,null)}),he(this,Tt,this.has_pending_snippet()),he(this,Pt,Oe(this,et,Wn).call(this,()=>(he(this,Yi,!1),vt(()=>O(this,Gi).call(this,O(this,Et)))))),O(this,Si)>0?Oe(this,et,Gn).call(this):he(this,Tt,!1)};var s=Te;try{pt(null),r=!0,i==null||i(e,o),r=!1}catch(c){ia(c,O(this,Xt)&&O(this,Xt).parent)}finally{pt(s)}a&&li(()=>{he(this,Qt,Oe(this,et,Wn).call(this,()=>{Ht.ensure(),he(this,Yi,!0);try{return vt(()=>{a(O(this,Et),()=>e,()=>o)})}catch(c){return ia(c,O(this,Xt).parent),null}finally{he(this,Yi,!1)}}))})}}Tt=new WeakMap,Et=new WeakMap,ol=new WeakMap,Jt=new WeakMap,Gi=new WeakMap,Xt=new WeakMap,Pt=new WeakMap,ft=new WeakMap,Qt=new WeakMap,pi=new WeakMap,ki=new WeakMap,Ki=new WeakMap,Si=new WeakMap,Yi=new WeakMap,Ti=new WeakMap,Rn=new WeakMap,et=new WeakSet,Z1=function(){try{he(this,Pt,vt(()=>O(this,Gi).call(this,O(this,Et))))}catch(e){this.error(e)}he(this,Tt,!1)},J1=function(){const e=O(this,Jt).pending;e&&(he(this,ft,vt(()=>e(O(this,Et)))),Ht.enqueue(()=>{var i=Oe(this,et,ul).call(this);he(this,Pt,Oe(this,et,Wn).call(this,()=>(Ht.ensure(),vt(()=>O(this,Gi).call(this,i))))),O(this,Si)>0?Oe(this,et,Gn).call(this):(na(O(this,ft),()=>{he(this,ft,null)}),he(this,Tt,!1))}))},ul=function(){var e=O(this,Et);return O(this,Tt)&&(he(this,ki,zt()),O(this,Et).before(O(this,ki)),e=O(this,ki)),e},Wn=function(e){var i=Ce,a=Te,n=Me;Kt(O(this,Xt)),pt(O(this,Xt)),ta(O(this,Xt).ctx);try{return e()}catch(r){return Cl(r),null}finally{Kt(i),pt(a),ta(n)}},Gn=function(){const e=O(this,Jt).pending;O(this,Pt)!==null&&(he(this,pi,document.createDocumentFragment()),O(this,pi).append(O(this,ki)),ro(O(this,Pt),O(this,pi))),O(this,ft)===null&&he(this,ft,vt(()=>e(O(this,Et))))},vl=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Oe(i=this.parent,et,vl).call(i,e);return}he(this,Si,O(this,Si)+e),O(this,Si)===0&&(he(this,Tt,!1),O(this,ft)&&na(O(this,ft),()=>{he(this,ft,null)}),O(this,pi)&&(O(this,Et).before(O(this,pi)),he(this,pi,null)))};let Ai=null;function Dl(t){Ai=t}function qe(t,e){return e}function Ec(t,e,i){for(var a=[],n=e.length,r=0;r<n;r++)cr(e[r].e,a,!0);ao(a,()=>{var o=a.length===0&&i!==null;if(o){var s=i,c=s.parentNode;qc(c),c.append(s),t.items.clear(),Vt(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),Vt(t,u.prev,u.next)),nt(u.e,!o)}t.first===e[0]&&(t.first=e[0].prev)})}function je(t,e,i,a,n,r=null){var o=t,s=new Map,c=null,d=(e&wl)!==0,u=(e&_l)!==0,v=(e&xl)!==0;if(d){var p=t;o=p.appendChild(zt())}var f=null,b=rr(()=>{var C=i();return Ve(C)?C:C==null?[]:Kn(C)}),h,_=!0;function g(){Pc(w,h,o,e,a),f!==null&&(h.length===0?(f.fragment?(o.before(f.fragment),f.fragment=null):dr(f.effect),k.first=f.effect):na(f.effect,()=>{f=null}))}var k=si(()=>{h=l(b);for(var C=h.length,R=new Set,I=we,z=null,U=Kl(),D=0;D<C;D+=1){var P=h[D],E=a(P,D),j=_?null:s.get(E);j?(u&&oi(j.v,P),v?oi(j.i,D):j.i=D,U&&I.skipped_effects.delete(j.e)):(j=Cc(_?o:null,z,P,E,D,n,e,i),_&&(j.o=!0,z===null?c=j:z.next=j,z=j),s.set(E,j)),R.add(E)}if(C===0&&r&&!f)if(_)f={fragment:null,effect:vt(()=>r(o))};else{var q=document.createDocumentFragment(),F=zt();q.append(F),f={fragment:q,effect:vt(()=>r(F))}}if(!_)if(U){for(const[Y,K]of s)R.has(Y)||I.skipped_effects.add(K.e);I.oncommit(g),I.ondiscard(()=>{})}else g();l(b)}),w={effect:k,flags:e,items:s,first:c};_=!1}function Pc(t,e,i,a,n){var P,E,j,q;var r=(a&ic)!==0,o=e.length,s=t.items,c=t.first,d,u=null,v,p=[],f=[],b,h,_,g;if(r)for(g=0;g<o;g+=1)b=e[g],h=n(b,g),_=s.get(h),_.o&&((P=_.a)==null||P.measure(),(v??(v=new Set)).add(_));for(g=0;g<o;g+=1){if(b=e[g],h=n(b,g),_=s.get(h),t.first??(t.first=_),!_.o){_.o=!0;var k=u?u.next:c;Vt(t,u,_),Vt(t,_,k),nr(_,k,i),u=_,p=[],f=[],c=u.next;continue}if(_.e.f&ht&&(dr(_.e),r&&((E=_.a)==null||E.unfix(),(v??(v=new Set)).delete(_))),_!==c){if(d!==void 0&&d.has(_)){if(p.length<f.length){var w=f[0],C;u=w.prev;var R=p[0],I=p[p.length-1];for(C=0;C<p.length;C+=1)nr(p[C],w,i);for(C=0;C<f.length;C+=1)d.delete(f[C]);Vt(t,R.prev,I.next),Vt(t,u,R),Vt(t,I,w),c=w,u=I,g-=1,p=[],f=[]}else d.delete(_),nr(_,c,i),Vt(t,_.prev,_.next),Vt(t,_,u===null?t.first:u.next),Vt(t,u,_),u=_;continue}for(p=[],f=[];c!==null&&c.k!==h;)c.e.f&ht||(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 z=d===void 0?[]:Kn(d);c!==null;)c.e.f&ht||z.push(c),c=c.next;var U=z.length;if(U>0){var D=a&wl&&o===0?i:null;if(r){for(g=0;g<U;g+=1)(j=z[g].a)==null||j.measure();for(g=0;g<U;g+=1)(q=z[g].a)==null||q.fix()}Ec(t,z,D)}}r&&li(()=>{var F;if(v!==void 0)for(_ of v)(F=_.a)==null||F.apply()})}function Cc(t,e,i,a,n,r,o,s){var c=Ai,d=(o&_l)!==0,u=(o&ac)===0,v=d?u?sr(i,!1,!1):Ut(i):i,p=o&xl?Ut(n):n,f={i:p,v,k:a,a:null,e:null,o:!1,prev:e,next:null};Ai=f;try{if(t===null){var b=document.createDocumentFragment();b.append(t=zt())}return f.e=vt(()=>r(t,v,p,s)),e!==null&&(e.next=f),f}finally{Ai=c}}function nr(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=Ca(r);n.before(r),r=o}}function Vt(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 Rl(t,e,i,a){const n=Ii()?Pa:rr;if(i.length===0&&t.length===0){a(e.map(n));return}var r=we,o=Ce,s=Nl();function c(){Promise.all(i.map(d=>Ic(d))).then(d=>{s();try{a([...e.map(n),...d])}catch(u){o.f&ri||ia(u,o)}r==null||r.deactivate(),Ea()}).catch(d=>{ia(d,o)})}t.length>0?Promise.all(t).then(()=>{s();try{return c()}finally{r==null||r.deactivate(),Ea()}}):c()}function Nl(){var t=Ce,e=Te,i=Me,a=we;return function(r=!0){Kt(t),pt(e),ta(i),r&&(a==null||a.activate())}}function Ea(){Kt(null),pt(null),ta(null)}function Pa(t){var e=at|ut,i=Te!==null&&Te.f&at?Te:null;return Ce!==null&&(Ce.f|=Qi),{ctx:Me,deps:null,effects:null,equals:kl,f:e,fn:t,reactions:null,rv:0,v:Xe,wv:0,parent:i??Ce,ac:null}}function Ic(t,e){let i=Ce;i===null&&Gs();var a=i.b,n=void 0,r=Ut(Xe),o=!Te,s=new Map;return Hc(()=>{var p;var c=hl();n=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{d===we&&d.committed&&d.deactivate(),Ea()})}catch(f){c.reject(f),Ea()}var d=we;if(o){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(p=s.get(d))==null||p.reject($i),s.delete(d),s.set(d,c)}const v=(f,b=void 0)=>{if(d.activate(),b)b!==$i&&(r.f|=gi,oi(r,b));else{r.f&gi&&(r.f^=gi),oi(r,f);for(const[h,_]of s){if(s.delete(h),h===d)break;_.reject($i)}}o&&(a.update_pending_count(-1),d.decrement(u))};c.promise.then(v,f=>v(null,f||"unknown"))}),ja(()=>{for(const c of s.values())c.reject($i)}),new Promise(c=>{function d(u){function v(){u===n?c(r):d(n)}u.then(v,v)}d(n)})}function V(t){const e=Pa(t);return oo(e),e}function rr(t){const e=Pa(t);return e.equals=Tl,e}function Ol(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)nt(e[i])}}function jc(t){for(var e=t.parent;e!==null;){if(!(e.f&at))return e.f&ri?null:e;e=e.parent}return null}function lr(t){var e,i=Ce;Kt(jc(t));try{t.f&=~Sa,Ol(t),e=po(t)}finally{Kt(i)}return e}function Bl(t){var e=lr(t);if(t.equals(e)||(we!=null&&we.is_fork||(t.v=e),t.wv=uo()),!Mi)if(Ge!==null)(Ia()||we!=null&&we.is_fork)&&Ge.set(t,e);else{var i=t.f&It?lt:ni;ot(t,i)}}let or=new Set;const mi=new Map;let Fl=!1;function Ut(t,e){var i={f:0,v:t,reactions:null,equals:kl,rv:0,wv:0};return i}function W(t,e){const i=Ut(t);return oo(i),i}function sr(t,e=!1,i=!0){var n;const a=Ut(t);return e||(a.equals=Tl),ea&&i&&Me!==null&&Me.l!==null&&((n=Me.l).s??(n.s=[])).push(a),a}function A(t,e,i=!1){Te!==null&&(!Gt||Te.f&ml)&&Ii()&&Te.f&(at|Ot|$n|ml)&&!(ct!=null&&ct.includes(t))&&ec();let a=i?Ue(e):e;return oi(t,a)}function oi(t,e){if(!t.equals(e)){var i=t.v;Mi?mi.set(t,e):mi.set(t,i),t.v=e;var a=Ht.ensure();a.capture(t,i),t.f&at&&(t.f&ut&&lr(t),ot(t,t.f&It?lt:ni)),t.wv=uo(),Hl(t,ut),Ii()&&Ce!==null&&Ce.f&lt&&!(Ce.f&(ai|Ci))&&(xt===null?Uc([t]):xt.push(t)),!a.is_fork&&or.size>0&&!Fl&&zc()}return e}function zc(){Fl=!1;var t=_i;on(!0);const e=Array.from(or);try{for(const i of e)i.f&lt&&ot(i,ni),Aa(i)&&La(i)}finally{on(t)}or.clear()}function Ac(t,e=1){var i=l(t),a=e===1?i++:i--;return A(t,i),a}function yi(t){A(t,t.v+1)}function Hl(t,e){var i=t.reactions;if(i!==null)for(var a=Ii(),n=i.length,r=0;r<n;r++){var o=i[r],s=o.f;if(!(!a&&o===Ce)){var c=(s&ut)===0;if(c&&ot(o,e),s&at){var d=o;Ge==null||Ge.delete(d),s&Sa||(s&It&&(o.f|=Sa),Hl(d,ni))}else c&&(s&Ot&&jt!==null&&jt.add(o),zi(o))}}}function Ue(t){if(typeof t!="object"||t===null||Ft in t)return t;const e=Yn(t);if(e!==Fs&&e!==Hs)return t;var i=new Map,a=Ve(t),n=W(0),r=ci,o=s=>{if(ci===r)return s();var c=Te,d=ci;pt(null),co(r);var u=s();return pt(c),co(d),u};return a&&i.set("length",W(t.length)),new Proxy(t,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Qs();var u=i.get(c);return u===void 0?u=o(()=>{var v=W(d.value);return i.set(c,v),v}):A(u,d.value,!0),!0},deleteProperty(s,c){var d=i.get(c);if(d===void 0){if(c in s){const u=o(()=>W(Xe));i.set(c,u),yi(n)}}else A(d,Xe),yi(n);return!0},get(s,c,d){var f;if(c===Ft)return t;var u=i.get(c),v=c in s;if(u===void 0&&(!v||(f=hi(s,c))!=null&&f.writable)&&(u=o(()=>{var b=Ue(v?s[c]:Xe),h=W(b);return h}),i.set(c,u)),u!==void 0){var p=l(u);return p===Xe?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!==Xe)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(s,c){var p;if(c===Ft)return!0;var d=i.get(c),u=d!==void 0&&d.v!==Xe||Reflect.has(s,c);if(d!==void 0||Ce!==null&&(!u||(p=hi(s,c))!=null&&p.writable)){d===void 0&&(d=o(()=>{var f=u?Ue(s[c]):Xe,b=W(f);return b}),i.set(c,d));var v=l(d);if(v===Xe)return!1}return u},set(s,c,d,u){var w;var v=i.get(c),p=c in s;if(a&&c==="length")for(var f=d;f<v.v;f+=1){var b=i.get(f+"");b!==void 0?A(b,Xe):f in s&&(b=o(()=>W(Xe)),i.set(f+"",b))}if(v===void 0)(!p||(w=hi(s,c))!=null&&w.writable)&&(v=o(()=>W(void 0)),A(v,Ue(d)),i.set(c,v));else{p=v.v!==Xe;var h=o(()=>Ue(d));A(v,h)}var _=Reflect.getOwnPropertyDescriptor(s,c);if(_!=null&&_.set&&_.set.call(u,d),!p){if(a&&typeof c=="string"){var g=i.get("length"),k=Number(c);Number.isInteger(k)&&k>=g.v&&A(g,k+1)}yi(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!==Xe});for(var[d,u]of i)u.v!==Xe&&!(d in s)&&c.push(d);return c},setPrototypeOf(){$s()}})}function Vl(t){try{if(t!==null&&typeof t=="object"&&Ft in t)return t[Ft]}catch{}return t}function Lc(t,e){return Object.is(Vl(t),Vl(e))}var Pe,Ul,Wl,Gl;function Mc(){if(Pe===void 0){Pe=window,Ul=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Wl=hi(e,"firstChild").get,Gl=hi(e,"nextSibling").get,fl(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),fl(i)&&(i.__t=void 0)}}function zt(t=""){return document.createTextNode(t)}function Wt(t){return Wl.call(t)}function Ca(t){return Gl.call(t)}function x(t,e){return Wt(t)}function Q(t,e=!1){{var i=Wt(t);return i instanceof Comment&&i.data===""?Ca(i):i}}function S(t,e=1,i=!1){let a=t;for(;e--;)a=Ca(a);return a}function qc(t){t.textContent=""}function Kl(){return!1}function Dc(t,e){if(e){const i=document.body;t.autofocus=!0,li(()=>{document.activeElement===i&&t.focus()})}}let Yl=!1;function Rc(){Yl||(Yl=!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 Nc(t,e,i,a=!0){a&&i();for(var n of e)t.addEventListener(n,i);ja(()=>{for(var r of e)t.removeEventListener(r,i)})}function Li(t){var e=Te,i=Ce;pt(null),Kt(null);try{return t()}finally{pt(e),Kt(i)}}function Zl(t,e,i,a=i){t.addEventListener(e,()=>Li(i));const n=t.__on_r;n?t.__on_r=()=>{n(),a(!0)}:t.__on_r=()=>a(!0),Rc()}function Jl(t){Ce===null&&(Te===null&&Zs(),Ys()),Mi&&Ks()}function Oc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function At(t,e,i){var a=Ce;a!==null&&a.f&ht&&(t|=ht);var n={ctx:Me,deps:null,nodes_start:null,nodes_end:null,f:t|ut|It,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{La(n),n.f|=an}catch(s){throw nt(n),s}else e!==null&&zi(n);var r=n;if(i&&r.deps===null&&r.teardown===null&&r.nodes_start===null&&r.first===r.last&&!(r.f&Qi)&&(r=r.first,t&Ot&&t&Bt&&r!==null&&(r.f|=Bt)),r!==null&&(r.parent=a,a!==null&&Oc(r,a),Te!==null&&Te.f&at&&!(t&Ci))){var o=Te;(o.effects??(o.effects=[])).push(r)}return n}function Ia(){return Te!==null&&!Gt}function ja(t){const e=At(en,null,!1);return ot(e,lt),e.teardown=t,e}function Ye(t){Jl();var e=Ce.f,i=!Te&&(e&ai)!==0&&(e&an)===0;if(i){var a=Me;(a.e??(a.e=[])).push(t)}else return Xl(t)}function Xl(t){return At(Jn|yl,t,!1)}function Bc(t){return Jl(),At(en|yl,t,!0)}function Fc(t){Ht.ensure();const e=At(Ci|Qi,t,!0);return(i={})=>new Promise(a=>{i.outro?na(e,()=>{nt(e),a(void 0)}):(nt(e),a(void 0))})}function bi(t){return At(Jn,t,!1)}function Hc(t){return At($n|Qi,t,!0)}function ln(t,e=0){return At(en|e,t,!0)}function H(t,e=[],i=[],a=[]){Rl(a,e,i,n=>{At(en,()=>t(...n.map(l)),!0)})}function si(t,e=0){var i=At(Ot|e,t,!0);return i}function Ql(t,e=0){var i=At(gl|e,t,!0);return i}function vt(t){return At(ai|Qi,t,!0)}function $l(t){var e=t.teardown;if(e!==null){const i=Mi,a=Te;lo(!0),pt(null);try{e.call(null)}finally{lo(i),pt(a)}}}function eo(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Li(()=>{n.abort($i)});var a=i.next;i.f&Ci?i.parent=null:nt(i,e),i=a}}function Vc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&ai||nt(e),e=i}}function nt(t,e=!0){var i=!1;(e||t.f&Xn)&&t.nodes_start!==null&&t.nodes_end!==null&&(to(t.nodes_start,t.nodes_end),i=!0),eo(t,e&&!i),sn(t,0),ot(t,ri);var a=t.transitions;if(a!==null)for(const r of a)r.stop();$l(t);var n=t.parent;n!==null&&n.first!==null&&io(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function to(t,e){for(;t!==null;){var i=t===e?null:Ca(t);t.remove(),t=i}}function io(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 na(t,e,i=!0){var a=[];cr(t,a,!0),ao(a,()=>{i&&nt(t),e&&e()})}function ao(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var n of t)n.out(a)}else e()}function cr(t,e,i){if(!(t.f&ht)){if(t.f^=ht,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&Bt)!==0||(a.f&ai)!==0&&(t.f&Ot)!==0;cr(a,e,r?i:!1),a=n}}}function dr(t){no(t,!0)}function no(t,e){if(t.f&ht){t.f^=ht,t.f&lt||(ot(t,ut),zi(t));for(var i=t.first;i!==null;){var a=i.next,n=(i.f&Bt)!==0||(i.f&ai)!==0;no(i,n?e:!1),i=a}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}function ro(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var n=i===a?null:Ca(i);e.append(i),i=n}}let _i=!1;function on(t){_i=t}let Mi=!1;function lo(t){Mi=t}let Te=null,Gt=!1;function pt(t){Te=t}let Ce=null;function Kt(t){Ce=t}let ct=null;function oo(t){Te!==null&&(ct===null?ct=[t]:ct.push(t))}let dt=null,gt=0,xt=null;function Uc(t){xt=t}let so=1,za=0,ci=za;function co(t){ci=t}function uo(){return++so}function Aa(t){var e=t.f;if(e&ut)return!0;if(e&at&&(t.f&=-32769),e&ni){var i=t.deps;if(i!==null)for(var a=i.length,n=0;n<a;n++){var r=i[n];if(Aa(r)&&Bl(r),r.wv>t.wv)return!0}e&It&&Ge===null&&ot(t,lt)}return!1}function vo(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&at?vo(r,e,!1):e===r&&(i?ot(r,ut):r.f&lt&&ot(r,ni),zi(r))}}function po(t){var b;var e=dt,i=gt,a=xt,n=Te,r=ct,o=Me,s=Gt,c=ci,d=t.f;dt=null,gt=0,xt=null,Te=d&(ai|Ci)?null:t,ct=null,ta(t.ctx),Gt=!1,ci=++za,t.ac!==null&&(Li(()=>{t.ac.abort($i)}),t.ac=null);try{t.f|=Qn;var u=t.fn,v=u(),p=t.deps;if(dt!==null){var f;if(sn(t,gt),p!==null&&gt>0)for(p.length=gt+dt.length,f=0;f<dt.length;f++)p[gt+f]=dt[f];else t.deps=p=dt;if(_i&&Ia()&&t.f&It)for(f=gt;f<p.length;f++)((b=p[f]).reactions??(b.reactions=[])).push(t)}else p!==null&&gt<p.length&&(sn(t,gt),p.length=gt);if(Ii()&&xt!==null&&!Gt&&p!==null&&!(t.f&(at|ni|ut)))for(f=0;f<xt.length;f++)vo(xt[f],t);return n!==null&&n!==t&&(za++,xt!==null&&(a===null?a=xt:a.push(...xt))),t.f&gi&&(t.f^=gi),v}catch(h){return Cl(h)}finally{t.f^=Qn,dt=e,gt=i,xt=a,Te=n,ct=r,ta(o),Gt=s,ci=c}}function Wc(t,e){let i=e.reactions;if(i!==null){var a=Qa.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&at&&(dt===null||!dt.includes(e))&&(ot(e,ni),e.f&It&&(e.f^=It,e.f&=-32769),Ol(e),sn(e,0))}function sn(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)Wc(t,i[a])}function La(t){var e=t.f;if(!(e&ri)){ot(t,lt);var i=Ce,a=_i;Ce=t,_i=!0;try{e&(Ot|gl)?Vc(t):eo(t),$l(t);var n=po(t);t.teardown=typeof n=="function"?n:null,t.wv=so;var r;Ne&&bc&&t.f&ut&&t.deps}finally{_i=a,Ce=i}}}async function Ma(){await Promise.resolve(),Il()}function l(t){var e=t.f,i=(e&at)!==0;if(Te!==null&&!Gt){var a=Ce!==null&&(Ce.f&ri)!==0;if(!a&&!(ct!=null&&ct.includes(t))){var n=Te.deps;if(Te.f&Qn)t.rv<za&&(t.rv=za,dt===null&&n!==null&&n[gt]===t?gt++:dt===null?dt=[t]:dt.includes(t)||dt.push(t));else{(Te.deps??(Te.deps=[])).push(t);var r=t.reactions;r===null?t.reactions=[Te]:r.includes(Te)||r.push(Te)}}}if(Mi){if(mi.has(t))return mi.get(t);if(i){var o=t,s=o.v;return(!(o.f&lt)&&o.reactions!==null||ho(o))&&(s=lr(o)),mi.set(o,s),s}}else i&&(!(Ge!=null&&Ge.has(t))||we!=null&&we.is_fork&&!Ia())&&(o=t,Aa(o)&&Bl(o),_i&&Ia()&&!(o.f&It)&&fo(o));if(Ge!=null&&Ge.has(t))return Ge.get(t);if(t.f&gi)throw t.v;return t.v}function fo(t){if(t.deps!==null){t.f^=It;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&at&&!(e.f&It)&&fo(e)}}function ho(t){if(t.v===Xe)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(mi.has(e)||e.f&at&&ho(e))return!0;return!1}function wt(t){var e=Gt;try{return Gt=!0,t()}finally{Gt=e}}const Gc=-7169;function ot(t,e){t.f=t.f&Gc|e}function go(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ft in t)ur(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&Ft in i&&ur(i)}}}function ur(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{ur(t[a],e)}catch{}const i=Yn(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=pl(i);for(let n in a){const r=a[n].get;if(r)try{r.call(t)}catch{}}}}}function Kc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Yc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Zc(t){return Yc.includes(t)}const Jc={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 Xc(t){return t=t.toLowerCase(),Jc[t]??t}const Qc=["touchstart","touchmove"];function $c(t){return Qc.includes(t)}const mo=new Set,vr=new Set;function pr(t,e,i,a={}){function n(r){if(a.capture||qa.call(e,r),!r.cancelBubble)return Li(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?li(()=>{e.addEventListener(t,n,a)}):e.addEventListener(t,n,a),n}function ed(t,e,i,a={}){var n=pr(e,t,i,a);return()=>{t.removeEventListener(e,n,a)}}function ge(t,e,i,a,n){var r={capture:a,passive:n},o=pr(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ja(()=>{e.removeEventListener(t,o,r)})}function xe(t){for(var e=0;e<t.length;e++)mo.add(t[e]);for(var i of vr)i(t)}let yo=null;function qa(t){var _;var e=this,i=e.ownerDocument,a=t.type,n=((_=t.composedPath)==null?void 0:_.call(t))||[],r=n[0]||t.target;yo=t;var o=0,s=yo===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){Bs(t,"currentTarget",{configurable:!0,get(){return r||i}});var u=Te,v=Ce;pt(null),Kt(null);try{for(var p,f=[];r!==null;){var b=r.assignedSlot||r.parentNode||r.host||null;try{var h=r["__"+a];h!=null&&(!r.disabled||t.target===r)&&h.call(r,t)}catch(g){p?f.push(g):p=g}if(t.cancelBubble||b===e||b===null)break;r=b}if(p){for(let g of f)queueMicrotask(()=>{throw g});throw p}}finally{t.__root=e,delete t.currentTarget,pt(u),Kt(v)}}}function fr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function qi(t,e){var i=Ce;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function T(t,e){var i=(e&vc)!==0,a=(e&pc)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=fr(r?t:"<!>"+t),i||(n=Wt(n)));var o=a||Ul?document.importNode(n,!0):n.cloneNode(!0);if(i){var s=Wt(o),c=o.lastChild;qi(s,c)}else qi(o,o);return o}}function td(t,e,i="svg"){var a=!t.startsWith("<!>"),n=`<${i}>${a?t:"<!>"+t}</${i}>`,r;return()=>{if(!r){var o=fr(n),s=Wt(o);r=Wt(s)}var c=r.cloneNode(!0);return qi(c,c),c}}function Fe(t,e){return td(t,e,"svg")}function Qe(t=""){{var e=zt(t+"");return qi(e,e),e}}function ye(){var t=document.createDocumentFragment(),e=document.createComment(""),i=zt();return t.append(e,i),qi(e,i),t}function y(t,e){t!==null&&t.before(e)}let cn=!0;function dn(t){cn=t}function X(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 Lt(t,e){return id(t,e)}const ra=new Map;function id(t,{target:e,anchor:i,props:a={},events:n,context:r,intro:o=!0}){Mc();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 b=$c(f);e.addEventListener(f,qa,{passive:b});var h=ra.get(f);h===void 0?(document.addEventListener(f,qa,{passive:b}),ra.set(f,1)):ra.set(f,h+1)}}};c(Kn(mo)),vr.add(c);var d=void 0,u=Fc(()=>{var v=i??e.appendChild(zt());return ql(v,{pending:()=>{}},p=>{if(r){oe({});var f=Me;f.c=r}n&&(a.$$events=n),cn=o,d=t(p,a)||{},cn=!0,r&&se()}),()=>{var b;for(var p of s){e.removeEventListener(p,qa);var f=ra.get(p);--f===0?(document.removeEventListener(p,qa),ra.delete(p)):ra.set(p,f)}vr.delete(c),v!==i&&((b=v.parentNode)==null||b.removeChild(v))}});return hr.set(d,u),d}let hr=new WeakMap;function Di(t,e){const i=hr.get(t);return i?(hr.delete(t),i(e)):Promise.resolve()}class la{constructor(e,i=!0){Nt(this,"anchor");be(this,Dt,new Map);be(this,$t,new Map);be(this,yt,new Map);be(this,Zi,new Set);be(this,Ga,!0);be(this,Ka,()=>{var e=we;if(O(this,Dt).has(e)){var i=O(this,Dt).get(e),a=O(this,$t).get(i);if(a)dr(a),O(this,Zi).delete(i);else{var n=O(this,yt).get(i);n&&(O(this,$t).set(i,n.effect),O(this,yt).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),a=n.effect)}for(const[r,o]of O(this,Dt)){if(O(this,Dt).delete(r),r===e)break;const s=O(this,yt).get(o);s&&(nt(s.effect),O(this,yt).delete(o))}for(const[r,o]of O(this,$t)){if(r===i||O(this,Zi).has(r))continue;const s=()=>{if(Array.from(O(this,Dt).values()).includes(r)){var d=document.createDocumentFragment();ro(o,d),d.append(zt()),O(this,yt).set(r,{effect:o,fragment:d})}else nt(o);O(this,Zi).delete(r),O(this,$t).delete(r)};O(this,Ga)||!a?(O(this,Zi).add(r),na(o,s,!1)):s()}}});be(this,Nn,e=>{O(this,Dt).delete(e);const i=Array.from(O(this,Dt).values());for(const[a,n]of O(this,yt))i.includes(a)||(nt(n.effect),O(this,yt).delete(a))});this.anchor=e,he(this,Ga,i)}ensure(e,i){var a=we,n=Kl();if(i&&!O(this,$t).has(e)&&!O(this,yt).has(e))if(n){var r=document.createDocumentFragment(),o=zt();r.append(o),O(this,yt).set(e,{effect:vt(()=>i(o)),fragment:r})}else O(this,$t).set(e,vt(()=>i(this.anchor)));if(O(this,Dt).set(a,e),n){for(const[s,c]of O(this,$t))s===e?a.skipped_effects.delete(c):a.skipped_effects.add(c);for(const[s,c]of O(this,yt))s===e?a.skipped_effects.delete(c.effect):a.skipped_effects.add(c.effect);a.oncommit(O(this,Ka)),a.ondiscard(O(this,Nn))}else O(this,Ka).call(this)}}Dt=new WeakMap,$t=new WeakMap,yt=new WeakMap,Zi=new WeakMap,Ga=new WeakMap,Ka=new WeakMap,Nn=new WeakMap;const ad=0,gr=1;function un(t,e,i,a,n){var r=Ii(),o=Xe,s=r?Ut(o):sr(o,!1,!1),c=r?Ut(o):sr(o,!1,!1),d=new la(t);si(()=>{var u=e(),v=!1;if(Vs(u)){var p=Nl(),f=!1;const b=h=>{if(!v){f=!0,p(!1),Ht.ensure();try{h()}finally{Ea(),aa||Il()}}};u.then(h=>{b(()=>{oi(s,h),d.ensure(gr,a&&(_=>a(_,s)))})},h=>{b(()=>{if(oi(c,h),d.ensure(gr,n&&(_=>n(_,c))),!n)throw c.v})}),li(()=>{f||b(()=>{d.ensure(ad,i)})})}else oi(s,u),d.ensure(gr,a&&(b=>a(b,s)));return()=>{v=!0}})}function B(t,e,i=!1){var a=new la(t),n=i?Bt:0;function r(o,s){a.ensure(o,s)}si(()=>{var o=!1;e((s,c=!0)=>{o=!0,r(c,s)}),o||r(!1,null)},n)}function Ri(t,e,i){var a=new la(t),n=!Ii();si(()=>{var r=e();n&&r!==null&&typeof r=="object"&&(r={}),a.ensure(r,i)})}function nd(t,e,i=!1,a=!1,n=!1){var r=t,o="";H(()=>{var s=Ce;if(o!==(o=e()??"")&&(s.nodes_start!==null&&(to(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=fr(c);if((i||a)&&(d=Wt(d)),qi(Wt(d),d.lastChild),i||a)for(;Wt(d);)r.before(Wt(d));else r.before(d)}})}function He(t,e,...i){var a=new la(t);si(()=>{const n=e()??null;a.ensure(n,n&&(r=>n(r,...i)))},Bt)}function mr(t,e,i){var a=new la(t);si(()=>{var n=e()??null;a.ensure(n,n&&(r=>i(r,n)))},Bt)}function bo(t,e,i,a,n,r){var o=null,s=t,c=Ai,d=new la(s,!1);si(()=>{const u=e()||null;var v=u==="svg"?hc:null;if(u===null){d.ensure(null,null),dn(!0);return}return d.ensure(u,p=>{var f=Ai;if(Dl(c),u){if(o=v?document.createElementNS(v,u):document.createElement(u),qi(o,o),a){var b=o.appendChild(zt());a(o,b)}Ce.nodes_end=o,p.before(o)}Dl(f)}),dn(!0),()=>{u&&dn(!1)}},Bt),ja(()=>{dn(!0)})}function rd(t,e){var i;i=document.head.appendChild(zt());try{si(()=>e(i),Xn)}finally{}}function mt(t,e,i){bi(()=>{var a=wt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var n=!1,r={};ln(()=>{var o=i();go(o),n&&Sl(r,o)&&(r=o,a.update(o))}),n=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function vn(t,e){var i=void 0,a;Ql(()=>{i!==(i=e())&&(a&&(nt(a),a=null),i&&(a=vt(()=>{bi(()=>i(t))})))})}function _o(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=_o(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function ld(){for(var t,e,i=0,a="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=_o(t))&&(a&&(a+=" "),a+=e);return a}function od(t){return typeof t=="object"?ld(t):t??""}const xo=[...`
3
3
  \r\f \v\uFEFF`];function sd(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||xo.includes(a[o-1]))&&(s===a.length||xo.includes(a[s]))?a=(o===0?"":a.substring(0,o))+a.substring(s+1):o=s}}return a===""?null:a}function wo(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 yr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function cd(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(yr)),n&&c.push(...Object.keys(n).map(yr));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=yr(t.substring(d,u).trim());if(!c.includes(f)){p!==";"&&v++;var b=t.substring(d,v).trim();i+=" "+b+";"}}d=v+1,u=-1}}}}return a&&(i+=wo(a)),n&&(i+=wo(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function _e(t,e,i,a,n,r){var o=t.__className;if(o!==i||o===void 0){var s=sd(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 br(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 We(t,e,i,a){var n=t.__style;if(n!==e){var r=cd(e,a);r==null?t.removeAttribute("style"):t.style.cssText=r,t.__style=e}else a&&(Array.isArray(a)?(br(t,i==null?void 0:i[0],a[0]),br(t,i==null?void 0:i[1],a[1],"important")):br(t,i,a));return a}function pn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!Ve(e))return mc();for(var a of t.options)a.selected=e.includes(Da(a));return}for(a of t.options){var n=Da(a);if(Lc(n,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function ko(t){var e=new MutationObserver(()=>{pn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ja(()=>{e.disconnect()})}function dd(t,e,i=e){var a=new WeakSet,n=!0;Zl(t,"change",r=>{var o=r?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),Da);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&Da(c)}i(s),we!==null&&a.add(we)}),bi(()=>{var r=e();if(t===document.activeElement){var o=Ta??we;if(a.has(o))return}if(pn(t,r,n),n&&r===void 0){var s=t.querySelector(":checked");s!==null&&(r=Da(s),i(r))}t.__value=r,n=!1}),ko(t)}function Da(t){return"__value"in t?t.__value:t.value}const oa=Symbol("class"),sa=Symbol("style"),So=Symbol("is custom element"),To=Symbol("is html");function ud(t,e){var i=_r(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function Eo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function re(t,e,i,a){var n=_r(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ws]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Io(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vd(t,e,i,a,n=!1,r=!1){var o=_r(t),s=o[So],c=!o[To],d=e||{},u=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=od(i.class):(a||i[oa])&&(i.class=null),i[sa]&&(i.style??(i.style=null));var p=Io(t);for(const w in i){let C=i[w];if(u&&w==="value"&&C==null){t.value=t.__value="",d[w]=C;continue}if(w==="class"){var f=t.namespaceURI==="http://www.w3.org/1999/xhtml";_e(t,f,C,a,e==null?void 0:e[oa],i[oa]),d[w]=C,d[oa]=i[oa];continue}if(w==="style"){We(t,C,e==null?void 0:e[sa],i[sa]),d[w]=C,d[sa]=i[sa];continue}var b=d[w];if(!(C===b&&!(C===void 0&&t.hasAttribute(w)))){d[w]=C;var h=w[0]+w[1];if(h!=="$$")if(h==="on"){const R={},I="$$"+w;let z=w.slice(2);var _=Zc(z);if(Kc(z)&&(z=z.slice(0,-7),R.capture=!0),!_&&b){if(C!=null)continue;t.removeEventListener(z,d[I],R),d[I]=null}if(C!=null)if(_)t[`__${z}`]=C,xe([z]);else{let U=function(D){d[w].call(this,D)};d[I]=pr(z,t,U,R)}else _&&(t[`__${z}`]=void 0)}else if(w==="style")re(t,w,C);else if(w==="autofocus")Dc(t,!!C);else if(!s&&(w==="__value"||w==="value"&&C!=null))t.value=t.__value=C;else if(w==="selected"&&u)Eo(t,C);else{var g=w;c||(g=Xc(g));var k=g==="defaultValue"||g==="defaultChecked";if(C==null&&!s&&!k)if(o[w]=null,g==="value"||g==="checked"){let R=t;const I=e===void 0;if(g==="value"){let z=R.defaultValue;R.removeAttribute(g),R.defaultValue=z,R.value=R.__value=I?z:null}else{let z=R.defaultChecked;R.removeAttribute(g),R.defaultChecked=z,R.checked=I?z:!1}}else t.removeAttribute(w);else k||p.includes(g)&&(s||typeof C!="string")?(t[g]=C,g in o&&(o[g]=Xe)):typeof C!="function"&&re(t,g,C)}}}return d}function Po(t,e,i=[],a=[],n=[],r,o=!1,s=!1){Rl(n,i,a,c=>{var d=void 0,u={},v=t.nodeName==="SELECT",p=!1;if(Ql(()=>{var b=e(...c.map(l)),h=vd(t,d,b,r,o,s);p&&v&&"value"in b&&pn(t,b.value);for(let g of Object.getOwnPropertySymbols(u))b[g]||nt(u[g]);for(let g of Object.getOwnPropertySymbols(b)){var _=b[g];g.description===gc&&(!d||_!==d[g])&&(u[g]&&nt(u[g]),u[g]=vt(()=>vn(t,()=>_))),h[g]=_}d=h}),v){var f=t;bi(()=>{pn(f,d.value,!0),ko(f)})}p=!0})}function _r(t){return t.__attributes??(t.__attributes={[So]:t.nodeName.includes("-"),[To]:t.namespaceURI===fc})}var Co=new Map;function Io(t){var e=t.getAttribute("is")||t.nodeName,i=Co.get(e);if(i)return i;Co.set(e,i=[]);for(var a,n=t,r=Element.prototype;r!==n;){a=pl(n);for(var o in a)a[o].set&&i.push(o);n=Yn(n)}return i}const pd=()=>performance.now(),di={tick:t=>requestAnimationFrame(t),now:()=>pd(),tasks:new Set};function jo(){const t=di.now();di.tasks.forEach(e=>{e.c(t)||(di.tasks.delete(e),e.f())}),di.tasks.size!==0&&di.tick(jo)}function fd(t){let e;return di.tasks.size===0&&di.tick(jo),{promise:new Promise(i=>{di.tasks.add(e={c:t,f:i})}),abort(){di.tasks.delete(e)}}}function fn(t,e){Li(()=>{t.dispatchEvent(new CustomEvent(e))})}function hd(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 zo(t){const e={},i=t.split(";");for(const a of i){const[n,r]=a.split(":");if(!n||r===void 0)break;const o=hd(n.trim());e[o]=r.trim()}return e}const gd=t=>t;function md(t,e,i){var a=Ai,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=hn(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 Ie(t,e,i,a){var n=(t&cc)!==0,r=(t&dc)!==0,o=n&&r,s=(t&uc)!==0,c=o?"both":n?"in":"out",d,u=e.inert,v=e.style.overflow,p,f;function b(){return Li(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:c})))}var h={is_global:s,in(){var w;if(e.inert=u,!n){f==null||f.abort(),(w=f==null?void 0:f.reset)==null||w.call(f);return}r||p==null||p.abort(),fn(e,"introstart"),p=hn(e,b(),f,1,()=>{fn(e,"introend"),p==null||p.abort(),p=d=void 0,e.style.overflow=v})},out(w){if(!r){w==null||w(),d=void 0;return}e.inert=!0,fn(e,"outrostart"),f=hn(e,b(),p,0,()=>{fn(e,"outroend"),w==null||w()})},stop:()=>{p==null||p.abort(),f==null||f.abort()}},_=Ce;if((_.transitions??(_.transitions=[])).push(h),n&&cn){var g=s;if(!g){for(var k=_.parent;k&&k.f&Bt;)for(;(k=k.parent)&&!(k.f&Ot););g=!k||(k.f&an)!==0}g&&bi(()=>{wt(()=>h.in())})}}function hn(t,e,i,a,n){var r=a===1;if(Xi(e)){var o,s=!1;return li(()=>{if(!s){var _=e({direction:r?"in":"out"});o=hn(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=gd}=e;var p=[];if(r&&i===void 0&&(u&&u(0,1),d)){var f=zo(d(0,1));p.push(f,f)}var b=()=>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 g=a-_,k=e.duration*Math.abs(g),w=[];if(k>0){var C=!1;if(d)for(var R=Math.ceil(k/16.666666666666668),I=0;I<=R;I+=1){var z=_+g*v(I/R),U=zo(d(z,1-z));w.push(U),C||(C=U.overflow==="hidden")}C&&(t.style.overflow="hidden"),b=()=>{var D=h.currentTime;return _+g*v(D/k)},u&&fd(()=>{if(h.playState!=="running")return!1;var D=b();return u(D,1-D),!0})}h=t.animate(w,{duration:k,fill:"forwards"}),h.onfinish=()=>{b=()=>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:()=>b()}}function ca(t,e,i=e){var a=new WeakSet;Zl(t,"input",async n=>{var r=n?t.defaultValue:t.value;if(r=xr(t)?wr(r):r,i(r),we!==null&&a.add(we),await Ma(),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))}}}),wt(e)==null&&t.value&&(i(xr(t)?wr(t.value):t.value),we!==null&&a.add(we)),ln(()=>{var n=e();if(t===document.activeElement){var r=Ta??we;if(a.has(r))return}xr(t)&&n===wr(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function xr(t){var e=t.type;return e==="number"||e==="range"}function wr(t){return t===""?null:+t}const Bn=class Bn{constructor(e){be(this,On);be(this,Ei,new WeakMap);be(this,_a);be(this,Ya);he(this,Ya,e)}observe(e,i){var a=O(this,Ei).get(e)||new Set;return a.add(i),O(this,Ei).set(e,a),Oe(this,On,Rs).call(this).observe(e,O(this,Ya)),()=>{var n=O(this,Ei).get(e);n.delete(i),n.size===0&&(O(this,Ei).delete(e),O(this,_a).unobserve(e))}}};Ei=new WeakMap,_a=new WeakMap,Ya=new WeakMap,On=new WeakSet,Rs=function(){return O(this,_a)??he(this,_a,new ResizeObserver(e=>{for(var i of e){Bn.entries.set(i.target,i);for(var a of O(this,Ei).get(i.target)||[])a(i)}}))},Nt(Bn,"entries",new WeakMap);let kr=Bn;var yd=new kr({box:"border-box"});function Mt(t,e,i){var a=yd.observe(t,()=>i(t[e]));bi(()=>(wt(()=>i(t[e])),a))}function Ao(t,e){return t===e||(t==null?void 0:t[Ft])===e}function rt(t={},e,i,a){return bi(()=>{var n,r;return ln(()=>{n=r,r=[],wt(()=>{t!==i(...r)&&(e(t,...r),n&&Ao(i(...n),t)&&e(null,...n))})}),()=>{li(()=>{r&&Ao(i(...r),t)&&e(null,...r)})}}),t}function Sr(t,e){Nc(window,["resize"],()=>Li(()=>e(window[t])))}function Tr(t=!1){const e=Me,i=e.l.u;if(!i)return;let a=()=>go(e.s);if(t){let n=0,r={};const o=Pa(()=>{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&&Bc(()=>{Lo(e,a),Zn(i.b)}),Ye(()=>{const n=wt(()=>i.m.map(Us));return()=>{for(const r of n)typeof r=="function"&&r()}}),i.a.length&&Ye(()=>{Lo(e,a),Zn(i.a)})}function Lo(t,e){if(t.l.s)for(const i of t.l.s)l(i);e()}let gn=!1;function bd(t){var e=gn;try{return gn=!1,[t(),gn]}finally{gn=e}}const _d={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 Mo(t,e,i){return new Proxy({props:t,exclude:e},_d)}const xd={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=hi(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=hi(a,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Ft||e===bl)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 mn(...t){return new Proxy({props:t},xd)}function L(t,e,i,a){var w;var n=!ea||(i&rc)!==0,r=(i&oc)!==0,o=(i&sc)!==0,s=a,c=!0,d=()=>(c&&(c=!1,s=o?wt(a):a),s),u;if(r){var v=Ft in t||bl in t;u=((w=hi(t,e))==null?void 0:w.set)??(v&&e in t?C=>t[e]=C:void 0)}var p,f=!1;r?[p,f]=bd(()=>t[e]):p=t[e],p===void 0&&a!==void 0&&(p=d(),u&&(n&&Xs(),u(p)));var b;if(n?b=()=>{var C=t[e];return C===void 0?d():(c=!0,C)}:b=()=>{var C=t[e];return C!==void 0&&(s=void 0),C===void 0?s:C},n&&!(i&lc))return b;if(u){var h=t.$$legacy;return function(C,R){return arguments.length>0?((!n||!R||h||f)&&u(R?b():C),C):b()}}var _=!1,g=(i&nc?Pa:rr)(()=>(_=!1,b()));r&&l(g);var k=Ce;return function(C,R){if(arguments.length>0){const I=R?l(g):n&&r?Ue(C):C;return A(g,I),_=!0,s!==void 0&&(s=I),C}return Mi&&_||k.f&ri?g.v:l(g)}}function $e(t){Me===null&&er(),ea&&Me.l!==null?wd(Me).m.push(t):Ye(()=>{const e=wt(t);if(typeof e=="function")return e})}function Er(t){Me===null&&er(),$e(()=>()=>wt(t))}function wd(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const kd="5";typeof window<"u"&&((As=window.__svelte??(window.__svelte={})).v??(As.v=new Set)).add(kd);function ui(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const qo="https://www.playpilot.com",Sd="https://partner-api.playpilot.tech/1.0",Td="https://img-external.playpilot.tech",Pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Ni=600,Cr={};async function Yt(t,{headers:e={},method:i="GET",body:a=null}={}){const n=!yn()&&i==="GET";if(n&&t in Cr)return Cr[t];const r=i==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(Sd+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&&(Cr[t]=c),c}const Ir="EncryptedToken",Do="articleReplacementEditToken",Ro="playpilot-editorial-mode";async function No({href:t=window.location.href,throwError:e=!1}={}){try{const i=ui();if(!i)throw new Error("No token was provided");const a=jr(t);if(!a)throw new Error("Could not be authenticated");return await Yt(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),Ed(a),!0}catch(i){if(console.error(i),e)throw i}finally{Id()}return!1}function jr(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(Do);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${Ir}=`).pop())==null?void 0:n.split(";")[0])||""}function Ed(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=Ir+"="+t+";"+a+";path=/"}function Pd(){document.cookie=Ir+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function yn(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Ro)==="true"||!!t}function Cd(){const t=new URL(window.location.href);t.searchParams.set(Ro,"true"),window.history.replaceState({},"",t)}function Id(){const t=new URL(window.location.href);t.searchParams.delete(Do),window.history.replaceState({},"",t)}function jd(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 bn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const m=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ra(){var a,n;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(m);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 m.English}function zr(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 da(){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 Ar(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function Lr(t){const e=da(),i=zr(e,(t==null?void 0:t.exclude_elements_selector)||""),a=Ar(i);return{parentElement:e,elements:i,pageText:a}}function Oo(){const t=da();return{content_heading:zd(t),content_modified_time:Ad(t),content_published_time:Ld(t)}}function zd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Ad(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=Bo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Mr(i):null}function Ld(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=Bo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Mr(i):null}function Mr(t){try{return new Date(t).toISOString()}catch{return null}}function Bo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Oi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function qr(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function Md(t){return!!(t.exclude_urls_pattern&&Oi().match(new RegExp(t.exclude_urls_pattern)))}let Dr=null;async function Bi(t,{url:e=Oi(),hash:i=jd(t||""),params:a={},method:n="GET"}={}){const r=ui(),o=yn()?await No():!1,s=Ra();if(!r)throw new Error("No token was provided");const c=`/external-pages/?api-token=${r}&include_title_details=true${o?"&editorial_mode_enabled=true":""}&language=${s}`;let d;return n==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=Oo(),d=await Yt(c,{method:"POST",body:a})):d=await Yt(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function Fo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let o=0;Dr&&clearTimeout(Dr);const s=async(c,d)=>{let u;try{try{u=await Bi(t)}catch(v){throw(v==null?void 0:v.status)===404&&(u=await Bi(t,{method:"POST"}),u.ai_enabled&&(u=await Bi(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await qd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=Ho(u.manual_injections||[]),u.ai_injections=Ho(u.ai_injections||[]),c(u);return}catch{if(o++,o>=n){n>1&&console.error("Max poll limit exceeded. Please return later."),c();return}u&&r(u),Dr=setTimeout(()=>s(c),a)}};return new Promise(s)}async function qd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Oo().content_modified_time,a=e.content_modified_time?Mr(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 Bi(t,{params:{run_ai:!0},method:"POST"})}async function Dd(t,e){var o;const i=(o=window.PlayPilotLinkInjections)==null?void 0:o.selector,n=t.filter(s=>s.manual).map(s=>({sid:s.sid,title:s.title,sentence:s.sentence,phrase_before:s.phrase_before,phrase_after:s.phrase_after,playpilot_url:s.playpilot_url,after_article:!!s.after_article,after_article_style:s.after_article_style||null,in_text:s.in_text??!0,inactive:!!s.inactive,removed:!!s.removed}));if(!await Bi(e,{method:"POST",params:{private_token:jr(),manual_injections:n,content_text_selector:i}}))throw new Error("saveLinkInjections response was faulty");return t}function Ho(t){return t.map(e=>({...e,key:Vo(e.sid)}))}function Vo(t){return t+"-"+bn()}function Rd(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Nd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Od(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Rr(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Uo(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 Wo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Bd(t,e,i,a){const n=Od(e),r=Rr(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 Fd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function kt(t){return Rr(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Go(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 Ko(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=Yo(a.innerText.slice(0,e+n)),o=a.innerText.slice(i+n),s=Yo(Zo(r,2)),c=Zo(o,2);return{before:s,after:c}}function Yo(t){return t.split("").reverse().join("")}function Zo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function _n(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Hd(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 Vd(t,e,i,a){const r=Hd(t,i,a).filter(({match:s})=>Rr(s).includes(e));return r.length?r.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Ud(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 Wd(t,e,i=0){const a=e.innerHTML,n=[],r=Gd(e);let o=a.indexOf(t);for(;o!==-1;)Nd(o,r)&&n.push(o),o=a.indexOf(t,o+t.length);return n[i]??-1}function Gd(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 Kd(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 Jo(t){return t.ctrlKey||t.metaKey||t.button!==0}const ve={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",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreNavigate:"venus_navigate"},Na={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function Yd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function qt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function xn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Nr=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function Zd(t=[]){return t.map(e=>{var i;return((i=Nr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Or="playpilot_user_id";function Jd(){if(!Xo())return null;try{const t=localStorage.getItem(Or);return t||(localStorage.setItem(Or,bn(16)),localStorage.getItem(Or))}catch{return null}}function Xo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Xd="https://insights.playpilot.net";async function pe(t,e=null,i={}){var n,r,o,s,c;if(xn())return;if(!qt("tracking")){$d(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:Zd(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),Xo()&&(i.user_id=Jd()),i.version="8.5.10-beta.1",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Oi(),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>Ni?"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(Xd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Qd({event:t,payload:i})}function Qd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Qo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function $d(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 eu(){if(qt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])pe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function $o(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?qt("pixels"):!1}async function es(){if(!qt("ads"))return[];const t=ui();if(!t)throw new Error("No token was provided");try{return await Yt(`/ads/browse/?api-token=${t}`)}catch(e){throw pe(ve.AdsFetchFailed,null,{status:e.status}),e}}function Oa(t){var e;return!qt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function tu(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"}}}const iu={"Where To Stream Online":{[m.English]:"Where to stream online",[m.Swedish]:"Var kan man streama online",[m.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[m.English]:"We may earn a commission from purchases made through some of the links below.",[m.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[m.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[m.English]:"An error occurred",[m.Swedish]:"Ett fel inträffade",[m.Danish]:"Der opstod en fejl"},Loading:{[m.English]:"Loading",[m.Swedish]:"Laddar",[m.Danish]:"Indlæser"},"Title Unavailable":{[m.English]:"This title is not currently available to stream.",[m.Swedish]:"Den här titeln går inte att streama just nu.",[m.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[m.English]:"is not currently available to stream.",[m.Swedish]:"går inte att streama just nu.",[m.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[m.English]:"is available to stream on",[m.Swedish]:"finns att streama på",[m.Danish]:"kan streames på"},"Is Available To Stream":{[m.English]:"is available to stream.",[m.Swedish]:"finns att streama.",[m.Danish]:"kan streames."},"View Streaming Options":{[m.English]:"View streaming options",[m.Swedish]:"Se streamingalternativ",[m.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[m.English]:"and",[m.Swedish]:"och",[m.Danish]:"og"},Minutes:{[m.English]:"minutes",[m.Swedish]:"minuter",[m.Danish]:"minutter"},"Type: movie":{[m.English]:"Movie",[m.Swedish]:"Film",[m.Danish]:"Film"},"Type: series":{[m.English]:"Series",[m.Swedish]:"Serie",[m.Danish]:"Serie"},Stream:{[m.English]:"Stream",[m.Swedish]:"Streama",[m.Danish]:"Stream"},Buy:{[m.English]:"Buy",[m.Swedish]:"Köp",[m.Danish]:"Køb"},Rent:{[m.English]:"Rent",[m.Swedish]:"Hyr",[m.Danish]:"Lej"},"Rent Or Buy":{[m.English]:"Rent or Buy",[m.Swedish]:"Hyr/köp",[m.Danish]:"Lej eller køb"},Watch:{[m.English]:"Watch",[m.Swedish]:"Titta nu",[m.Danish]:"Se nu"},"Category: AVOD":{[m.English]:"Stream for free",[m.Swedish]:"Streama gratis",[m.Danish]:"Stream gratis"},"Category: SVOD":{[m.English]:"Streaming services",[m.Swedish]:"Streamingtjänster",[m.Danish]:"Streamingtjenester"},"Category: RENT":{[m.English]:"Rent it",[m.Swedish]:"Hyr den",[m.Danish]:"Lej den"},"Category: BUY":{[m.English]:"Buy it",[m.Swedish]:"Köp den",[m.Danish]:"Køb den"},"Category: Other":{[m.English]:"Other",[m.Swedish]:"Annat",[m.Danish]:"Andet"},Share:{[m.English]:"Share",[m.Swedish]:"Dela",[m.Danish]:"Del"},"Copy URL":{[m.English]:"Copy URL",[m.Swedish]:"Kopiera URL",[m.Danish]:"Kopiér URL"},Email:{[m.English]:"Email",[m.Swedish]:"E-post",[m.Danish]:"E-mail"},"Show More":{[m.English]:"Show more",[m.Swedish]:"Visa mer",[m.Danish]:"Vis mere"},Cast:{[m.English]:"Cast",[m.Swedish]:"Rollista",[m.Danish]:"Skuespillere"},"Similar Titles":{[m.English]:"Similar movies & shows",[m.Swedish]:"Liknande filmer och serier",[m.Danish]:"Lignende film og serier"},"Watch Trailer":{[m.English]:"Watch trailer",[m.Swedish]:"Se trailer",[m.Danish]:"Se trailer"},"Streaming Guide":{[m.English]:"Streaming Guide",[m.Swedish]:"Streaming Guide",[m.Danish]:"Streaming Guide"},"Streaming Guide Description":{[m.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[m.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[m.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":{[m.English]:"Search movies and shows",[m.Swedish]:"Sök filmer och serier",[m.Danish]:"Søg film og serier"},Services:{[m.English]:"Services",[m.Swedish]:"Tjänster",[m.Danish]:"Tjenester"},Genres:{[m.English]:"Genres",[m.Swedish]:"Genrer",[m.Danish]:"Genrer"},IMDb:{[m.English]:"IMDb",[m.Swedish]:"IMDb",[m.Danish]:"IMDb"},Year:{[m.English]:"Year",[m.Swedish]:"År",[m.Danish]:"År"},Runtime:{[m.English]:"Runtime",[m.Swedish]:"Speltid",[m.Danish]:"Spilletid"},Countries:{[m.English]:"Countries",[m.Swedish]:"Länder",[m.Danish]:"Lande"},"All Filters":{[m.English]:"All filters",[m.Swedish]:"Alla filter",[m.Danish]:"Alle filtre"},"Sort By":{[m.English]:"Sort by",[m.Swedish]:"Sortera efter",[m.Danish]:"Sortér efter"},Popularity:{[m.English]:"Popularity",[m.Swedish]:"Popularitet",[m.Danish]:"Popularitet"},New:{[m.English]:"New",[m.Swedish]:"Nytt",[m.Danish]:"Nyt"},"Top Rated":{[m.English]:"Top Rated",[m.Swedish]:"Toppbetyg",[m.Danish]:"Højst vurderet"},Search:{[m.English]:"Search",[m.Swedish]:"Sök",[m.Danish]:"Søg"},"Born On":{[m.English]:"Born on",[m.Swedish]:"Född den",[m.Danish]:"Født den"},"Died On":{[m.English]:"Died on",[m.Swedish]:"Död den",[m.Danish]:"Død den"},Credits:{[m.English]:"Credits",[m.Swedish]:"Medverkande",[m.Danish]:"Medvirkende"},Home:{[m.English]:"Home",[m.Swedish]:"Hem",[m.Danish]:"Hjem"},Explore:{[m.English]:"Explore",[m.Swedish]:"Utforska",[m.Danish]:"Udforsk"},"List: Trending":{[m.English]:"Trending Movies & Shows",[m.Swedish]:"Trendande Titlar",[m.Danish]:"Populære film og serier"},"List: Upcoming":{[m.English]:"Upcoming Releases",[m.Swedish]:"Kommande Premiärer",[m.Danish]:"Mest ventede film"},"List: New":{[m.English]:"New Releases",[m.Swedish]:"Nya Filmer & Serier",[m.Danish]:"Nye film og serier"},"List: Demand":{[m.English]:"Always in Demand",[m.Swedish]:"Tidlösa Favoriter",[m.Danish]:"Tidløse favoritter"},"List: Cinema":{[m.English]:"Coming to Cinemas",[m.Swedish]:"Snart på Bio",[m.Danish]:"Kommende film"},All:{[m.English]:"All",[m.Swedish]:"Alla",[m.Danish]:"Alle"},Unscripted:{[m.English]:"Unscripted",[m.Swedish]:"Oscripterat",[m.Danish]:"Umanuskriptet"},Independent:{[m.English]:"Independent",[m.Swedish]:"Indie",[m.Danish]:"Indie"},"Game Show":{[m.English]:"Game Show",[m.Swedish]:"Gameshow",[m.Danish]:"Quizshow"},"Film Noir":{[m.English]:"Film Noir",[m.Swedish]:"Film noir",[m.Danish]:"Film noir"},Entertainment:{[m.English]:"Entertainment",[m.Swedish]:"Underhållning",[m.Danish]:"Underholdning"},News:{[m.English]:"News",[m.Swedish]:"Nyheter",[m.Danish]:"Nyheder"},Short:{[m.English]:"Short",[m.Swedish]:"Kortfilm",[m.Danish]:"Kortfilm"},Bollywood:{[m.English]:"Bollywood",[m.Swedish]:"Bollywood",[m.Danish]:"Bollywood"},Concert:{[m.English]:"Concert",[m.Swedish]:"Konsert",[m.Danish]:"Koncert"},Arthouse:{[m.English]:"Arthouse",[m.Swedish]:"Arthouse",[m.Danish]:"Arthouse"},"Alternate Version":{[m.English]:"Alternate Version",[m.Swedish]:"Alternativ version",[m.Danish]:"Alternativ version"},"Reality TV":{[m.English]:"Reality TV",[m.Swedish]:"Reality-TV",[m.Danish]:"Reality-TV"},Culture:{[m.English]:"Culture",[m.Swedish]:"Kultur",[m.Danish]:"Kultur"},Drama:{[m.English]:"Drama",[m.Swedish]:"Drama",[m.Danish]:"Drama"},Crime:{[m.English]:"Crime",[m.Swedish]:"Kriminal",[m.Danish]:"Krimi"},Western:{[m.English]:"Western",[m.Swedish]:"Western",[m.Danish]:"Western"},Thriller:{[m.English]:"Thriller",[m.Swedish]:"Thriller",[m.Danish]:"Thriller"},Animation:{[m.English]:"Animation",[m.Swedish]:"Animerat",[m.Danish]:"Animation"},Mystery:{[m.English]:"Mystery",[m.Swedish]:"Mysterium",[m.Danish]:"Mysterium"},Science:{[m.English]:"Science",[m.Swedish]:"Vetenskap",[m.Danish]:"Videnskab"},Nature:{[m.English]:"Nature",[m.Swedish]:"Natur",[m.Danish]:"Natur"},War:{[m.English]:"War",[m.Swedish]:"Krig",[m.Danish]:"Krig"},"Sci-Fi":{[m.English]:"Sci-Fi",[m.Swedish]:"Sci-fi",[m.Danish]:"Sci-fi"},Documentary:{[m.English]:"Documentary",[m.Swedish]:"Dokumentär",[m.Danish]:"Dokumentar"},"Stand-up":{[m.English]:"Stand-up",[m.Swedish]:"Standup",[m.Danish]:"Stand-up"},"Talk Show":{[m.English]:"Talk Show",[m.Swedish]:"Talkshow",[m.Danish]:"Talkshow"},Fantasy:{[m.English]:"Fantasy",[m.Swedish]:"Fantasy",[m.Danish]:"Fantasy"},History:{[m.English]:"History",[m.Swedish]:"Historia",[m.Danish]:"Historie"},Adventure:{[m.English]:"Adventure",[m.Swedish]:"Äventyr",[m.Danish]:"Eventyr"},Action:{[m.English]:"Action",[m.Swedish]:"Action",[m.Danish]:"Action"},Horror:{[m.English]:"Horror",[m.Swedish]:"Skräck",[m.Danish]:"Gyser"},Comedy:{[m.English]:"Comedy",[m.Swedish]:"Komedi",[m.Danish]:"Komedie"},Biography:{[m.English]:"Biography",[m.Swedish]:"Biografi",[m.Danish]:"Biografi"},Music:{[m.English]:"Music",[m.Swedish]:"Musik",[m.Danish]:"Musik"},Sport:{[m.English]:"Sport",[m.Swedish]:"Sport",[m.Danish]:"Sport"},Romance:{[m.English]:"Romance",[m.Swedish]:"Romantik",[m.Danish]:"Romantik"},Kids:{[m.English]:"Kids",[m.Swedish]:"Barn",[m.Danish]:"Børn"},Lifestyle:{[m.English]:"Lifestyle",[m.Swedish]:"Livsstil",[m.Danish]:"Livsstil"},Musical:{[m.English]:"Musical",[m.Swedish]:"Musikal",[m.Danish]:"Musical"},Anime:{[m.English]:"Anime",[m.Swedish]:"Anime",[m.Danish]:"Anime"},Family:{[m.English]:"Family",[m.Swedish]:"Familj",[m.Danish]:"Familie"}};function ue(t,e=Ra()){var i;return((i=iu[t])==null?void 0:i[e])||t}async function Br(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"),au(c),c}catch(o){return pe(ve.RegionRequestFailed,null,{message:o.message}),((r=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.fallback_region)||""}}function au(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function Fr(t={}){const e=ui();if(!e)throw new Error("No token was provided");return t={...t,language:Ra(),include_count:"false"},t.region!==null&&(t.region=t.region||await Br()),await Yt(`/titles/browse?api-token=${e}&`+qr(t))}async function nu(t){return(await Fr({related_to_sid:t.sid})).results}const wn=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),ru=t=>t;function Hr(t){const e=t-1;return e*e*e+1}function ts(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function St(t,{delay:e=0,duration:i=400,easing:a=ru}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function ua(t,{delay:e=0,duration:i=400,easing:a=Hr,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]=ts(n),[f,b]=ts(r);return{delay:e,duration:i,easing:a,css:(h,_)=>`
5
+ `)}function Lr(t){const e=da(),i=zr(e,(t==null?void 0:t.exclude_elements_selector)||""),a=Ar(i);return{parentElement:e,elements:i,pageText:a}}function Oo(){const t=da();return{content_heading:zd(t),content_modified_time:Ad(t),content_published_time:Ld(t)}}function zd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Ad(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=Bo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Mr(i):null}function Ld(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=Bo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Mr(i):null}function Mr(t){try{return new Date(t).toISOString()}catch{return null}}function Bo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Oi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function qr(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function Md(t){return!!(t.exclude_urls_pattern&&Oi().match(new RegExp(t.exclude_urls_pattern)))}let Dr=null;async function Bi(t,{url:e=Oi(),hash:i=jd(t||""),params:a={},method:n="GET"}={}){const r=ui(),o=yn()?await No():!1,s=Ra();if(!r)throw new Error("No token was provided");const c=`/external-pages/?api-token=${r}&include_title_details=true${o?"&editorial_mode_enabled=true":""}&language=${s}`;let d;return n==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=Oo(),d=await Yt(c,{method:"POST",body:a})):d=await Yt(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function Fo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let o=0;Dr&&clearTimeout(Dr);const s=async(c,d)=>{let u;try{try{u=await Bi(t)}catch(v){throw(v==null?void 0:v.status)===404&&(u=await Bi(t,{method:"POST"}),u.ai_enabled&&(u=await Bi(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await qd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=Ho(u.manual_injections||[]),u.ai_injections=Ho(u.ai_injections||[]),c(u);return}catch{if(o++,o>=n){n>1&&console.error("Max poll limit exceeded. Please return later."),c();return}u&&r(u),Dr=setTimeout(()=>s(c),a)}};return new Promise(s)}async function qd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Oo().content_modified_time,a=e.content_modified_time?Mr(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 Bi(t,{params:{run_ai:!0},method:"POST"})}async function Dd(t,e){var o;const i=(o=window.PlayPilotLinkInjections)==null?void 0:o.selector,n=t.filter(s=>s.manual).map(s=>({sid:s.sid,title:s.title,sentence:s.sentence,phrase_before:s.phrase_before,phrase_after:s.phrase_after,playpilot_url:s.playpilot_url,after_article:!!s.after_article,after_article_style:s.after_article_style||null,in_text:s.in_text??!0,inactive:!!s.inactive,removed:!!s.removed}));if(!await Bi(e,{method:"POST",params:{private_token:jr(),manual_injections:n,content_text_selector:i}}))throw new Error("saveLinkInjections response was faulty");return t}function Ho(t){return t.map(e=>({...e,key:Vo(e.sid)}))}function Vo(t){return t+"-"+bn()}function Rd(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Nd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Od(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Rr(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Uo(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 Wo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Bd(t,e,i,a){const n=Od(e),r=Rr(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 Fd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function kt(t){return Rr(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Go(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 Ko(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=Yo(a.innerText.slice(0,e+n)),o=a.innerText.slice(i+n),s=Yo(Zo(r,2)),c=Zo(o,2);return{before:s,after:c}}function Yo(t){return t.split("").reverse().join("")}function Zo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function _n(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Hd(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 Vd(t,e,i,a){const r=Hd(t,i,a).filter(({match:s})=>Rr(s).includes(e));return r.length?r.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Ud(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 Wd(t,e,i=0){const a=e.innerHTML,n=[],r=Gd(e);let o=a.indexOf(t);for(;o!==-1;)Nd(o,r)&&n.push(o),o=a.indexOf(t,o+t.length);return n[i]??-1}function Gd(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 Kd(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 Jo(t){return t.ctrlKey||t.metaKey||t.button!==0}const ve={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",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreNavigate:"venus_navigate"},Na={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function Yd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function qt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function xn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Nr=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function Zd(t=[]){return t.map(e=>{var i;return((i=Nr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Or="playpilot_user_id";function Jd(){if(!Xo())return null;try{const t=localStorage.getItem(Or);return t||(localStorage.setItem(Or,bn(16)),localStorage.getItem(Or))}catch{return null}}function Xo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Xd="https://insights.playpilot.net";async function pe(t,e=null,i={}){var n,r,o,s,c;if(xn())return;if(!qt("tracking")){$d(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:Zd(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),Xo()&&(i.user_id=Jd()),i.version="8.5.10",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Oi(),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>Ni?"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(Xd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Qd({event:t,payload:i})}function Qd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Qo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function $d(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 eu(){if(qt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])pe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function $o(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?qt("pixels"):!1}async function es(){if(!qt("ads"))return[];const t=ui();if(!t)throw new Error("No token was provided");try{return await Yt(`/ads/browse/?api-token=${t}`)}catch(e){throw pe(ve.AdsFetchFailed,null,{status:e.status}),e}}function Oa(t){var e;return!qt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function tu(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"}}}const iu={"Where To Stream Online":{[m.English]:"Where to stream online",[m.Swedish]:"Var kan man streama online",[m.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[m.English]:"We may earn a commission from purchases made through some of the links below.",[m.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[m.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[m.English]:"An error occurred",[m.Swedish]:"Ett fel inträffade",[m.Danish]:"Der opstod en fejl"},Loading:{[m.English]:"Loading",[m.Swedish]:"Laddar",[m.Danish]:"Indlæser"},"Title Unavailable":{[m.English]:"This title is not currently available to stream.",[m.Swedish]:"Den här titeln går inte att streama just nu.",[m.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[m.English]:"is not currently available to stream.",[m.Swedish]:"går inte att streama just nu.",[m.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[m.English]:"is available to stream on",[m.Swedish]:"finns att streama på",[m.Danish]:"kan streames på"},"Is Available To Stream":{[m.English]:"is available to stream.",[m.Swedish]:"finns att streama.",[m.Danish]:"kan streames."},"View Streaming Options":{[m.English]:"View streaming options",[m.Swedish]:"Se streamingalternativ",[m.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[m.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[m.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[m.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[m.English]:"and",[m.Swedish]:"och",[m.Danish]:"og"},Minutes:{[m.English]:"minutes",[m.Swedish]:"minuter",[m.Danish]:"minutter"},"Type: movie":{[m.English]:"Movie",[m.Swedish]:"Film",[m.Danish]:"Film"},"Type: series":{[m.English]:"Series",[m.Swedish]:"Serie",[m.Danish]:"Serie"},Stream:{[m.English]:"Stream",[m.Swedish]:"Streama",[m.Danish]:"Stream"},Buy:{[m.English]:"Buy",[m.Swedish]:"Köp",[m.Danish]:"Køb"},Rent:{[m.English]:"Rent",[m.Swedish]:"Hyr",[m.Danish]:"Lej"},"Rent Or Buy":{[m.English]:"Rent or Buy",[m.Swedish]:"Hyr/köp",[m.Danish]:"Lej eller køb"},Watch:{[m.English]:"Watch",[m.Swedish]:"Titta nu",[m.Danish]:"Se nu"},"Category: AVOD":{[m.English]:"Stream for free",[m.Swedish]:"Streama gratis",[m.Danish]:"Stream gratis"},"Category: SVOD":{[m.English]:"Streaming services",[m.Swedish]:"Streamingtjänster",[m.Danish]:"Streamingtjenester"},"Category: RENT":{[m.English]:"Rent it",[m.Swedish]:"Hyr den",[m.Danish]:"Lej den"},"Category: BUY":{[m.English]:"Buy it",[m.Swedish]:"Köp den",[m.Danish]:"Køb den"},"Category: Other":{[m.English]:"Other",[m.Swedish]:"Annat",[m.Danish]:"Andet"},Share:{[m.English]:"Share",[m.Swedish]:"Dela",[m.Danish]:"Del"},"Copy URL":{[m.English]:"Copy URL",[m.Swedish]:"Kopiera URL",[m.Danish]:"Kopiér URL"},Email:{[m.English]:"Email",[m.Swedish]:"E-post",[m.Danish]:"E-mail"},"Show More":{[m.English]:"Show more",[m.Swedish]:"Visa mer",[m.Danish]:"Vis mere"},Cast:{[m.English]:"Cast",[m.Swedish]:"Rollista",[m.Danish]:"Skuespillere"},"Similar Titles":{[m.English]:"Similar movies & shows",[m.Swedish]:"Liknande filmer och serier",[m.Danish]:"Lignende film og serier"},"Watch Trailer":{[m.English]:"Watch trailer",[m.Swedish]:"Se trailer",[m.Danish]:"Se trailer"},"Streaming Guide":{[m.English]:"Streaming Guide",[m.Swedish]:"Streaming Guide",[m.Danish]:"Streaming Guide"},"Streaming Guide Description":{[m.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[m.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[m.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":{[m.English]:"Search movies and shows",[m.Swedish]:"Sök filmer och serier",[m.Danish]:"Søg film og serier"},Services:{[m.English]:"Services",[m.Swedish]:"Tjänster",[m.Danish]:"Tjenester"},Genres:{[m.English]:"Genres",[m.Swedish]:"Genrer",[m.Danish]:"Genrer"},IMDb:{[m.English]:"IMDb",[m.Swedish]:"IMDb",[m.Danish]:"IMDb"},Year:{[m.English]:"Year",[m.Swedish]:"År",[m.Danish]:"År"},Runtime:{[m.English]:"Runtime",[m.Swedish]:"Speltid",[m.Danish]:"Spilletid"},Countries:{[m.English]:"Countries",[m.Swedish]:"Länder",[m.Danish]:"Lande"},"All Filters":{[m.English]:"All filters",[m.Swedish]:"Alla filter",[m.Danish]:"Alle filtre"},"Sort By":{[m.English]:"Sort by",[m.Swedish]:"Sortera efter",[m.Danish]:"Sortér efter"},Popularity:{[m.English]:"Popularity",[m.Swedish]:"Popularitet",[m.Danish]:"Popularitet"},New:{[m.English]:"New",[m.Swedish]:"Nytt",[m.Danish]:"Nyt"},"Top Rated":{[m.English]:"Top Rated",[m.Swedish]:"Toppbetyg",[m.Danish]:"Højst vurderet"},Search:{[m.English]:"Search",[m.Swedish]:"Sök",[m.Danish]:"Søg"},"Born On":{[m.English]:"Born on",[m.Swedish]:"Född den",[m.Danish]:"Født den"},"Died On":{[m.English]:"Died on",[m.Swedish]:"Död den",[m.Danish]:"Død den"},Credits:{[m.English]:"Credits",[m.Swedish]:"Medverkande",[m.Danish]:"Medvirkende"},Home:{[m.English]:"Home",[m.Swedish]:"Hem",[m.Danish]:"Hjem"},Explore:{[m.English]:"Explore",[m.Swedish]:"Utforska",[m.Danish]:"Udforsk"},"List: Trending":{[m.English]:"Trending Movies & Shows",[m.Swedish]:"Trendande Titlar",[m.Danish]:"Populære film og serier"},"List: Upcoming":{[m.English]:"Upcoming Releases",[m.Swedish]:"Kommande Premiärer",[m.Danish]:"Mest ventede film"},"List: New":{[m.English]:"New Releases",[m.Swedish]:"Nya Filmer & Serier",[m.Danish]:"Nye film og serier"},"List: Demand":{[m.English]:"Always in Demand",[m.Swedish]:"Tidlösa Favoriter",[m.Danish]:"Tidløse favoritter"},"List: Cinema":{[m.English]:"Coming to Cinemas",[m.Swedish]:"Snart på Bio",[m.Danish]:"Kommende film"},All:{[m.English]:"All",[m.Swedish]:"Alla",[m.Danish]:"Alle"},Unscripted:{[m.English]:"Unscripted",[m.Swedish]:"Oscripterat",[m.Danish]:"Umanuskriptet"},Independent:{[m.English]:"Independent",[m.Swedish]:"Indie",[m.Danish]:"Indie"},"Game Show":{[m.English]:"Game Show",[m.Swedish]:"Gameshow",[m.Danish]:"Quizshow"},"Film Noir":{[m.English]:"Film Noir",[m.Swedish]:"Film noir",[m.Danish]:"Film noir"},Entertainment:{[m.English]:"Entertainment",[m.Swedish]:"Underhållning",[m.Danish]:"Underholdning"},News:{[m.English]:"News",[m.Swedish]:"Nyheter",[m.Danish]:"Nyheder"},Short:{[m.English]:"Short",[m.Swedish]:"Kortfilm",[m.Danish]:"Kortfilm"},Bollywood:{[m.English]:"Bollywood",[m.Swedish]:"Bollywood",[m.Danish]:"Bollywood"},Concert:{[m.English]:"Concert",[m.Swedish]:"Konsert",[m.Danish]:"Koncert"},Arthouse:{[m.English]:"Arthouse",[m.Swedish]:"Arthouse",[m.Danish]:"Arthouse"},"Alternate Version":{[m.English]:"Alternate Version",[m.Swedish]:"Alternativ version",[m.Danish]:"Alternativ version"},"Reality TV":{[m.English]:"Reality TV",[m.Swedish]:"Reality-TV",[m.Danish]:"Reality-TV"},Culture:{[m.English]:"Culture",[m.Swedish]:"Kultur",[m.Danish]:"Kultur"},Drama:{[m.English]:"Drama",[m.Swedish]:"Drama",[m.Danish]:"Drama"},Crime:{[m.English]:"Crime",[m.Swedish]:"Kriminal",[m.Danish]:"Krimi"},Western:{[m.English]:"Western",[m.Swedish]:"Western",[m.Danish]:"Western"},Thriller:{[m.English]:"Thriller",[m.Swedish]:"Thriller",[m.Danish]:"Thriller"},Animation:{[m.English]:"Animation",[m.Swedish]:"Animerat",[m.Danish]:"Animation"},Mystery:{[m.English]:"Mystery",[m.Swedish]:"Mysterium",[m.Danish]:"Mysterium"},Science:{[m.English]:"Science",[m.Swedish]:"Vetenskap",[m.Danish]:"Videnskab"},Nature:{[m.English]:"Nature",[m.Swedish]:"Natur",[m.Danish]:"Natur"},War:{[m.English]:"War",[m.Swedish]:"Krig",[m.Danish]:"Krig"},"Sci-Fi":{[m.English]:"Sci-Fi",[m.Swedish]:"Sci-fi",[m.Danish]:"Sci-fi"},Documentary:{[m.English]:"Documentary",[m.Swedish]:"Dokumentär",[m.Danish]:"Dokumentar"},"Stand-up":{[m.English]:"Stand-up",[m.Swedish]:"Standup",[m.Danish]:"Stand-up"},"Talk Show":{[m.English]:"Talk Show",[m.Swedish]:"Talkshow",[m.Danish]:"Talkshow"},Fantasy:{[m.English]:"Fantasy",[m.Swedish]:"Fantasy",[m.Danish]:"Fantasy"},History:{[m.English]:"History",[m.Swedish]:"Historia",[m.Danish]:"Historie"},Adventure:{[m.English]:"Adventure",[m.Swedish]:"Äventyr",[m.Danish]:"Eventyr"},Action:{[m.English]:"Action",[m.Swedish]:"Action",[m.Danish]:"Action"},Horror:{[m.English]:"Horror",[m.Swedish]:"Skräck",[m.Danish]:"Gyser"},Comedy:{[m.English]:"Comedy",[m.Swedish]:"Komedi",[m.Danish]:"Komedie"},Biography:{[m.English]:"Biography",[m.Swedish]:"Biografi",[m.Danish]:"Biografi"},Music:{[m.English]:"Music",[m.Swedish]:"Musik",[m.Danish]:"Musik"},Sport:{[m.English]:"Sport",[m.Swedish]:"Sport",[m.Danish]:"Sport"},Romance:{[m.English]:"Romance",[m.Swedish]:"Romantik",[m.Danish]:"Romantik"},Kids:{[m.English]:"Kids",[m.Swedish]:"Barn",[m.Danish]:"Børn"},Lifestyle:{[m.English]:"Lifestyle",[m.Swedish]:"Livsstil",[m.Danish]:"Livsstil"},Musical:{[m.English]:"Musical",[m.Swedish]:"Musikal",[m.Danish]:"Musical"},Anime:{[m.English]:"Anime",[m.Swedish]:"Anime",[m.Danish]:"Anime"},Family:{[m.English]:"Family",[m.Swedish]:"Familj",[m.Danish]:"Familie"}};function ue(t,e=Ra()){var i;return((i=iu[t])==null?void 0:i[e])||t}async function Br(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"),au(c),c}catch(o){return pe(ve.RegionRequestFailed,null,{message:o.message}),((r=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.fallback_region)||""}}function au(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function Fr(t={}){const e=ui();if(!e)throw new Error("No token was provided");return t={...t,language:Ra(),include_count:"false"},t.region!==null&&(t.region=t.region||await Br()),await Yt(`/titles/browse?api-token=${e}&`+qr(t))}async function nu(t){return(await Fr({related_to_sid:t.sid})).results}const wn=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),ru=t=>t;function Hr(t){const e=t-1;return e*e*e+1}function ts(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function St(t,{delay:e=0,duration:i=400,easing:a=ru}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function ua(t,{delay:e=0,duration:i=400,easing:a=Hr,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]=ts(n),[f,b]=ts(r);return{delay:e,duration:i,easing:a,css:(h,_)=>`
6
6
  transform: ${d} translate(${(1-h)*v}${p}, ${(1-h)*f}${b});
7
7
  opacity: ${c-u*_}`}}function Ba(t,{delay:e=0,duration:i=400,easing:a=Hr,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(g=>`${g[0].toUpperCase()}${g.slice(1)}`),v=parseFloat(r[`padding${u[0]}`]),p=parseFloat(r[`padding${u[1]}`]),f=parseFloat(r[`margin${u[0]}`]),b=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:g=>`overflow: hidden;opacity: ${Math.min(g*20,1)*o};${s}: ${g*c}px;padding-${d[0]}: ${g*v}px;padding-${d[1]}: ${g*p}px;margin-${d[0]}: ${g*f}px;margin-${d[1]}: ${g*b}px;border-${d[0]}-width: ${g*h}px;border-${d[1]}-width: ${g*_}px;min-${s}: 0`}}function va(t,{delay:e=0,duration:i=400,easing:a=Hr,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});
@@ -1,3 +1,3 @@
1
1
  (function(){"use strict";function m(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const q="https://partner-api.playpilot.tech/1.0",h={};async function d(e,{headers:t={},method:n="GET",body:i=null}={}){const o=!_()&&n==="GET";if(o&&e in h)return h[e];const c=n==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(q+e,{method:n,headers:new Headers({...c,...t}),body:i?JSON.stringify(i):null});if(!(l!=null&&l.ok))throw l;const s=await l.text();let r=s;try{s&&(r=JSON.parse(s))}catch{}return o&&(h[e]=r),r}const y="EncryptedToken",k="articleReplacementEditToken",I="playpilot-editorial-mode";async function x({href:e=window.location.href,throwError:t=!1}={}){try{const n=m();if(!n)throw new Error("No token was provided");const i=P(e);if(!i)throw new Error("Could not be authenticated");return await d(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),A(i),!0}catch(n){if(console.error(n),t)throw n}finally{C()}return!1}function P(e=""){var i,o;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const c=new URL(e).searchParams.get(k);if(c)return decodeURI(c)}return((o=("; "+document.cookie).split(`; ${y}=`).pop())==null?void 0:o.split(";")[0])||""}function A(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=y+"="+e+";"+i+";path=/"}function _(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(I)==="true"||!!e}function C(){const e=new URL(window.location.href);e.searchParams.delete(k),window.history.replaceState({},"",e)}async function O(){const e=m();if(!e)throw new Error("No token was provided");try{return await await d(`/domains/config?api-token=${e}`)||null}catch{return null}}function N(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}function M(e=5){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<e;)n+=t[Math.floor(Math.random()*t.length)];return n}const T=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function R(){var i,o;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(T);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(o=document.querySelector("html"))==null?void 0:o.getAttribute("lang");if(n){if(t.includes(n))return n;const c=t.find(l=>l.toLowerCase().startsWith(n+"-"));if(c)return c}return T.English}function U(e,t=""){const n=[],i=[e];for(;i.length>0;){const o=i.pop();if(n.includes(o)||t&&o.matches(t)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(o.tagName)||o.offsetWidth<=1)continue;const c=Array.from(o.childNodes).some(r=>{var u;return r.nodeType===Node.TEXT_NODE&&((u=r.nodeValue)==null?void 0:u.trim())!==""});if(c&&o.tagName==="LI"){const r=o.closest("ul, ol");r&&!n.includes(r)&&n.push(r);continue}const l=o.tagName==="P"&&!!o.textContent;if(c||l){n.push(o);continue}const s=Array.from(o.children);for(let r=s.length-1;r>=0;r--)i.push(s[r])}return n}function S(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function v(e){return e.map(t=>t.innerText).join(`
2
2
 
3
- `)}function z(e){const t=S(),n=U(t,(e==null?void 0:e.exclude_elements_selector)||""),i=v(n);return{parentElement:t,elements:n,pageText:i}}function E(){const e=S();return{content_heading:D(e),content_modified_time:$(e),content_published_time:G(e)}}function D(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function $(e){const t=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=b().dateModified||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function G(e){const t=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=b().datePublished||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function g(e){try{return new Date(e).toISOString()}catch{return null}}function b(){const e=document.querySelector('[type="application/ld+json"]');if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function j(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}function H(e){return!!(e.exclude_urls_pattern&&j().match(new RegExp(e.exclude_urls_pattern)))}let w=null;async function f(e,{url:t=j(),hash:n=N(e||""),params:i={},method:o="GET"}={}){const c=m(),l=_()?await x():!1,s=R();if(!c)throw new Error("No token was provided");const r=`/external-pages/?api-token=${c}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`;let u;return o==="POST"?(i.run_ai&&(i.hash=n,i.page_text=e),i.url=t,i.metadata=E(),u=await d(r,{method:"POST",body:i})):u=await d(r+`&url=${t}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=u,u}async function B(e,{requireCompletedResult:t=!1,runAiWhenRelevant:n=!1,pollInterval:i=3e3,maxTries:o=600,onpoll:c=()=>null}={}){let l=0;w&&clearTimeout(w);const s=async(r,u)=>{let a;try{try{a=await f(e)}catch(p){throw(p==null?void 0:p.status)===404&&(a=await f(e,{method:"POST"}),a.ai_enabled&&(a=await f(e,{params:{run_ai:!0},method:"POST"}))),new Error}if(a&&n&&(a=await F(e,a)),t&&a.ai_enabled&&a.ai_running)throw new Error;a.manual_injections=L(a.manual_injections||[]),a.ai_injections=L(a.ai_injections||[]),r(a);return}catch{if(l++,l>=o){o>1&&console.error("Max poll limit exceeded. Please return later."),r();return}a&&c(a),w=setTimeout(()=>s(r),i)}};return new Promise(s)}async function F(e,t){if(!e||!t.ai_enabled||t.ai_running)return t;const n=E().content_modified_time,i=t.content_modified_time?g(t.content_modified_time):null,o=n&&i===n;return t.ai_last_run&&o||new Date(n||0)<=new Date(i||0)?t:await f(e,{params:{run_ai:!0},method:"POST"})}function L(e){return e.map(t=>({...t,key:J(t.sid)}))}function J(e){return e+"-"+M()}function K(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function W(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,last_successful_fetch:null,tracked_events:[],queued_tracking_events:[],split_test_identifiers:{},evaluated_link_injections:[],initial_link_injections_promise:null,time_at_initialize:0,ads:[],require_consent:!0,no_affiliate:!1,consents:{ads:!1,pixels:!1,tracking:!1,split_tests:!1,affiliate:!1},config:{},app:null,async initialize(e={token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,editorial_token:"",require_consent:!0,no_affiliate:!1}){if(window.PlayPilotLinkInjections.app)return;if(console.log("set"),!e.token){console.error("An API token is required.");return}if(this.token=e.token,this.editorial_token=e.editorial_token,this.selector=e.selector,this.after_article_selector=e.after_article_selector,this.after_article_insert_position=e.after_article_insert_position,this.language=e.language,this.region=e.region,this.organization_sid=e.organization_sid,this.domain_sid=e.domain_sid,this.require_consent=e.require_consent,this.no_affiliate=e.no_affiliate,this.time_at_initialize=Date.now(),this.require_consent===!1&&K({ads:!0,pixels:!0,tracking:!0,split_tests:!0,affiliate:!0}),this.config=await O()||{},H(this.config))return;const{pageText:t}=z(this.config);this.initial_link_injections_promise=B(t,{maxTries:1,runAiWhenRelevant:!W()}),this.mount()},destroy(){var e;(e=window.PlayPilotMount)==null||e.destroy()},mount(){_()||P();const e=document.createElement("script");e.id="playpilot-mount",e.src="./dist/mount.js",e.onload=()=>{var t;return(t=window.PlayPilotMount)==null?void 0:t.mount()},document.body.appendChild(e)}}})();
3
+ `)}function $(e){const t=S(),n=U(t,(e==null?void 0:e.exclude_elements_selector)||""),i=v(n);return{parentElement:t,elements:n,pageText:i}}function E(){const e=S();return{content_heading:z(e),content_modified_time:D(e),content_published_time:G(e)}}function z(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function D(e){const t=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=b().dateModified||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function G(e){const t=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=b().datePublished||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function g(e){try{return new Date(e).toISOString()}catch{return null}}function b(){const e=document.querySelector('[type="application/ld+json"]');if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function j(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}function H(e){return!!(e.exclude_urls_pattern&&j().match(new RegExp(e.exclude_urls_pattern)))}let w=null;async function f(e,{url:t=j(),hash:n=N(e||""),params:i={},method:o="GET"}={}){const c=m(),l=_()?await x():!1,s=R();if(!c)throw new Error("No token was provided");const r=`/external-pages/?api-token=${c}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`;let u;return o==="POST"?(i.run_ai&&(i.hash=n,i.page_text=e),i.url=t,i.metadata=E(),u=await d(r,{method:"POST",body:i})):u=await d(r+`&url=${t}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=u,u}async function B(e,{requireCompletedResult:t=!1,runAiWhenRelevant:n=!1,pollInterval:i=3e3,maxTries:o=600,onpoll:c=()=>null}={}){let l=0;w&&clearTimeout(w);const s=async(r,u)=>{let a;try{try{a=await f(e)}catch(p){throw(p==null?void 0:p.status)===404&&(a=await f(e,{method:"POST"}),a.ai_enabled&&(a=await f(e,{params:{run_ai:!0},method:"POST"}))),new Error}if(a&&n&&(a=await F(e,a)),t&&a.ai_enabled&&a.ai_running)throw new Error;a.manual_injections=L(a.manual_injections||[]),a.ai_injections=L(a.ai_injections||[]),r(a);return}catch{if(l++,l>=o){o>1&&console.error("Max poll limit exceeded. Please return later."),r();return}a&&c(a),w=setTimeout(()=>s(r),i)}};return new Promise(s)}async function F(e,t){if(!e||!t.ai_enabled||t.ai_running)return t;const n=E().content_modified_time,i=t.content_modified_time?g(t.content_modified_time):null,o=n&&i===n;return t.ai_last_run&&o||new Date(n||0)<=new Date(i||0)?t:await f(e,{params:{run_ai:!0},method:"POST"})}function L(e){return e.map(t=>({...t,key:J(t.sid)}))}function J(e){return e+"-"+M()}function K(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function W(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}window.PlayPilotLinkInjections||(window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,last_successful_fetch:null,tracked_events:[],queued_tracking_events:[],split_test_identifiers:{},evaluated_link_injections:[],initial_link_injections_promise:null,time_at_initialize:0,ads:[],require_consent:!0,no_affiliate:!1,consents:{ads:!1,pixels:!1,tracking:!1,split_tests:!1,affiliate:!1},config:{},app:null,async initialize(e={token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,editorial_token:"",require_consent:!0,no_affiliate:!1}){if(!e.token){console.error("An API token is required.");return}if(this.token=e.token,this.editorial_token=e.editorial_token,this.selector=e.selector,this.after_article_selector=e.after_article_selector,this.after_article_insert_position=e.after_article_insert_position,this.language=e.language,this.region=e.region,this.organization_sid=e.organization_sid,this.domain_sid=e.domain_sid,this.require_consent=e.require_consent,this.no_affiliate=e.no_affiliate,this.time_at_initialize=Date.now(),this.require_consent===!1&&K({ads:!0,pixels:!0,tracking:!0,split_tests:!0,affiliate:!0}),this.config=await O()||{},H(this.config))return;const{pageText:t}=$(this.config);this.initial_link_injections_promise=B(t,{maxTries:1,runAiWhenRelevant:!W()}),this.mount()},destroy(){var e;(e=window.PlayPilotMount)==null||e.destroy(),delete window.PlayPilotLinkInjections},mount(){const e=_()||P(),t=document.createElement("script");t.id="playpilot-mount",t.src=`https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.5.10/dist/${e?"editorial.":""}mount.js`,t.onload=()=>{var n;return(n=window.PlayPilotMount)==null?void 0:n.mount()},document.body.appendChild(t)}})})();
package/dist/mount.js CHANGED
@@ -2,7 +2,7 @@ var Xh=Object.defineProperty;var ls=Te=>{throw TypeError(Te)};var $h=(Te,Ee,De)=
2
2
  /*$vite$:1*/`,document.head.appendChild(Te);const Ee=!1;var De=Array.isArray,Oa=Array.prototype.indexOf,Pr=Array.from,us=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,Un=Object.getOwnPropertyDescriptors,vs=Object.prototype,fs=Array.prototype,Cr=Object.getPrototypeOf,Wn=Object.isExtensible;function Bi(t){return typeof t=="function"}const ut=()=>{};function hs(t){return typeof(t==null?void 0:t.then)=="function"}function gs(t){return t()}function zr(t){for(var e=0;e<t.length;e++)t[e]()}function Gn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Kn(t,e,i=!1){return t===void 0?i?e():e:t}function ua(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 Ge=2,Ir=4,Ra=8,Yn=1<<24,Ct=16,Gt=32,wi=64,Na=128,bt=512,Ze=1024,it=2048,Kt=4096,ot=8192,Yt=16384,Ba=32768,zt=65536,Zn=1<<17,Jn=1<<18,Fi=1<<19,Qn=1<<20,va=32768,jr=1<<21,Ar=1<<22,li=1<<23,It=Symbol("$state"),Xn=Symbol("legacy props"),ms=Symbol(""),Vi=new class extends Error{constructor(){super(...arguments);Pt(this,"name","StaleReactionError");Pt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ys(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _s(t){throw new Error("https://svelte.dev/e/effect_orphan")}function xs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ks(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ss(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ts(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const $n=1,el=2,tl=4,Cs=8,zs=16,Is=1,js=2,As=4,Ls=8,Ms=16,Ds=1,qs=2,Os=4,Rs=1,Ns=2,Ue=Symbol(),Bs="http://www.w3.org/1999/xhtml",Fs="http://www.w3.org/2000/svg",Vs="@attach";function Hs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Us(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function il(t){return t===this.v}function al(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function rl(t){return!al(t,this.v)}let Hi=!1,Ws=!1;function Gs(){Hi=!0}let Se=null;function Ui(t){Se=t}function Mr(t){return nl().get(t)}function Dr(t,e){return nl().set(t,e),e}function ie(t,e=!1,i){Se={p:Se,i:!1,c:null,e:null,s:t,x:null,l:Hi&&!e?{s:null,u:null,$:[]}:null}}function ae(t){var e=Se,i=e.e;if(i!==null){e.e=null;for(var a of i)Cl(a)}return t!==void 0&&(e.x=t),e.i=!0,Se=e.p,t??{}}function _i(){return!Hi||Se!==null&&Se.l===null}function nl(t){return Se===null&&Lr(),Se.c??(Se.c=new Map(Ks(Se)||void 0))}function Ks(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let xi=[];function ll(){var t=xi;xi=[],zr(t)}function Zt(t){if(xi.length===0&&!Gi){var e=xi;queueMicrotask(()=>{e===xi&&ll()})}xi.push(t)}function Ys(){for(;xi.length>0;)ll()}function ol(t){var e=we;if(e===null)return ye.f|=li,t;if(e.f&Ba)Wi(t,e);else{if(!(e.f&Na))throw t;e.b.error(t)}}function Wi(t,e){for(;e!==null;){if(e.f&Na)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Fa=new Set;let he=null,Va=null,Ne=null,vt=[],Ha=null,qr=!1,Gi=!1;const mr=class mr{constructor(){pe(this,He);Pt(this,"committed",!1);Pt(this,"current",new Map);Pt(this,"previous",new Map);pe(this,na,new Set);pe(this,la,new Set);pe(this,Ai,0);pe(this,Li,0);pe(this,ja,null);pe(this,oa,[]);pe(this,sa,[]);Pt(this,"skipped_effects",new Set);Pt(this,"is_fork",!1)}is_deferred(){return this.is_fork||L(this,Li)>0}process(e){var a;vt=[],Va=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)ze(this,He,Bn).call(this,r,i);this.is_fork||ze(this,He,os).call(this),this.is_deferred()?(ze(this,He,Ni).call(this,i.effects),ze(this,He,Ni).call(this,i.render_effects),ze(this,He,Ni).call(this,i.block_effects)):(Va=this,he=null,dl(i.render_effects),dl(i.effects),Va=null,(a=L(this,ja))==null||a.resolve()),Ne=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&li||(this.current.set(e,e.v),Ne==null||Ne.set(e,e.v))}activate(){he=this,this.apply()}deactivate(){he===this&&(he=null,Ne=null)}flush(){if(this.activate(),vt.length>0){if(cl(),he!==null&&he!==this)return}else L(this,Ai)===0&&this.process([]);this.deactivate()}discard(){for(const e of L(this,la))e(this);L(this,la).clear()}increment(e){ne(this,Ai,L(this,Ai)+1),e&&ne(this,Li,L(this,Li)+1)}decrement(e){ne(this,Ai,L(this,Ai)-1),e&&ne(this,Li,L(this,Li)-1),this.revive()}revive(){for(const e of L(this,oa))Je(e,it),ki(e);for(const e of L(this,sa))Je(e,Kt),ki(e);ne(this,oa,[]),ne(this,sa,[]),this.flush()}oncommit(e){L(this,na).add(e)}ondiscard(e){L(this,la).add(e)}settled(){return(L(this,ja)??ne(this,ja,Gn())).promise}static ensure(){if(he===null){const e=he=new mr;Fa.add(he),Gi||mr.enqueue(()=>{he===e&&e.flush()})}return he}static enqueue(e){Zt(e)}apply(){}};na=new WeakMap,la=new WeakMap,Ai=new WeakMap,Li=new WeakMap,ja=new WeakMap,oa=new WeakMap,sa=new WeakMap,He=new WeakSet,Bn=function(e,i){var p;e.f^=Ze;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Gt|wi))!==0,l=n&&(r&Ze)!==0,c=l||(r&ot)!==0||this.skipped_effects.has(a);if(a.f&Na&&((p=a.b)!=null&&p.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){n?a.f^=Ze:r&Ir?i.effects.push(a):wa(a)&&(a.f&Ct&&i.block_effects.push(a),_a(a));var s=a.first;if(s!==null){a=s;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(ze(this,He,Ni).call(this,i.effects),ze(this,He,Ni).call(this,i.render_effects),ze(this,He,Ni).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Ni=function(e){for(const i of e)(i.f&it?L(this,oa):L(this,sa)).push(i),ze(this,He,Fn).call(this,i.deps),Je(i,Ze)},Fn=function(e){if(e!==null)for(const i of e)!(i.f&Ge)||!(i.f&va)||(i.f^=va,ze(this,He,Fn).call(this,i.deps))},os=function(){if(L(this,Li)===0){for(const e of L(this,na))e();L(this,na).clear()}L(this,Ai)===0&&ze(this,He,ss).call(this)},ss=function(){var n;if(Fa.size>1){this.previous.clear();var e=Ne,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Fa){if(l===this){i=!1;continue}const c=[];for(const[d,p]of this.current){if(l.current.has(d))if(i&&p!==l.current.get(d))l.current.set(d,p);else continue;c.push(d)}if(c.length===0)continue;const s=[...l.current.keys()].filter(d=>!this.current.has(d));if(s.length>0){var r=vt;vt=[];const d=new Set,p=new Map;for(const u of c)pl(u,s,d,p);if(vt.length>0){he=l,l.apply();for(const u of vt)ze(n=l,He,Bn).call(n,u,a);l.deactivate()}vt=r}}he=null,Ne=e}this.committed=!0,Fa.delete(this)};let jt=mr;function sl(t){var e=Gi;Gi=!0;try{for(var i;;){if(Ys(),vt.length===0&&(he==null||he.flush(),vt.length===0))return Ha=null,i;cl()}}finally{Gi=e}}function cl(){var t=di;qr=!0;var e=null;try{var i=0;for(Wa(!0);vt.length>0;){var a=jt.ensure();if(i++>1e3){var r,n;Zs()}a.process(vt),oi.clear()}}finally{qr=!1,Wa(t),Ha=null}}function Zs(){try{xs()}catch(t){Wi(t,Ha)}}let wt=null;function dl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Yt|ot))&&wa(a)&&(wt=new Set,_a(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?Al(a):a.fn=null),(wt==null?void 0:wt.size)>0)){oi.clear();for(const r of wt){if(r.f&(Yt|ot))continue;const n=[r];let l=r.parent;for(;l!==null;)wt.has(l)&&(wt.delete(l),n.push(l)),l=l.parent;for(let c=n.length-1;c>=0;c--){const s=n[c];s.f&(Yt|ot)||_a(s)}}wt.clear()}}wt=null}}function pl(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ge?pl(r,e,i,a):n&(Ar|Ct)&&!(n&it)&&ul(r,e,a)&&(Je(r,it),ki(r))}}function ul(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ge&&ul(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function ki(t){for(var e=Ha=t;e.parent!==null;){e=e.parent;var i=e.f;if(qr&&e===we&&i&Ct&&!(i&Jn))return;if(i&(wi|Gt)){if(!(i&Ze))return;e.f^=Ze}}vt.push(e)}function vl(t){let e=0,i=Lt(0),a;return()=>{ma()&&(o(i),Ua(()=>(e===0&&(a=Ot(()=>t(()=>si(i)))),e+=1,()=>{Zt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,si(i))})})))}}var Js=zt|Fi|Na;function Qs(t,e,i){new Xs(t,e,i)}class Xs{constructor(e,i,a){pe(this,We);Pt(this,"parent");pe(this,ht,!1);pe(this,gt);pe(this,Rn,null);pe(this,Ft);pe(this,Mi);pe(this,Vt);pe(this,mt,null);pe(this,lt,null);pe(this,Ht,null);pe(this,ai,null);pe(this,hi,null);pe(this,Di,0);pe(this,gi,0);pe(this,qi,!1);pe(this,mi,null);pe(this,yr,vl(()=>(ne(this,mi,Lt(L(this,Di))),()=>{ne(this,mi,null)})));ne(this,gt,e),ne(this,Ft,i),ne(this,Mi,a),this.parent=we.b,ne(this,ht,!!L(this,Ft).pending),ne(this,Vt,ci(()=>{we.b=this;{var r=ze(this,We,Vn).call(this);try{ne(this,mt,at(()=>a(r)))}catch(n){this.error(n)}L(this,gi)>0?ze(this,We,Er).call(this):ne(this,ht,!1)}return()=>{var n;(n=L(this,hi))==null||n.remove()}},Js))}is_pending(){return L(this,ht)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!L(this,Ft).pending}update_pending_count(e){ze(this,We,Hn).call(this,e),ne(this,Di,L(this,Di)+e),L(this,mi)&&Jt(L(this,mi),L(this,Di))}get_effect_pending(){return L(this,yr).call(this),o(L(this,mi))}error(e){var i=L(this,Ft).onerror;let a=L(this,Ft).failed;if(L(this,qi)||!i&&!a)throw e;L(this,mt)&&(Ye(L(this,mt)),ne(this,mt,null)),L(this,lt)&&(Ye(L(this,lt)),ne(this,lt,null)),L(this,Ht)&&(Ye(L(this,Ht)),ne(this,Ht,null));var r=!1,n=!1;const l=()=>{if(r){Us();return}r=!0,n&&Ps(),jt.ensure(),ne(this,Di,0),L(this,Ht)!==null&&Yi(L(this,Ht),()=>{ne(this,Ht,null)}),ne(this,ht,this.has_pending_snippet()),ne(this,mt,ze(this,We,Tr).call(this,()=>(ne(this,qi,!1),at(()=>L(this,Mi).call(this,L(this,gt)))))),L(this,gi)>0?ze(this,We,Er).call(this):ne(this,ht,!1)};var c=ye;try{rt(null),n=!0,i==null||i(e,l),n=!1}catch(s){Wi(s,L(this,Vt)&&L(this,Vt).parent)}finally{rt(c)}a&&Zt(()=>{ne(this,Ht,ze(this,We,Tr).call(this,()=>{jt.ensure(),ne(this,qi,!0);try{return at(()=>{a(L(this,gt),()=>e,()=>l)})}catch(s){return Wi(s,L(this,Vt).parent),null}finally{ne(this,qi,!1)}}))})}}ht=new WeakMap,gt=new WeakMap,Rn=new WeakMap,Ft=new WeakMap,Mi=new WeakMap,Vt=new WeakMap,mt=new WeakMap,lt=new WeakMap,Ht=new WeakMap,ai=new WeakMap,hi=new WeakMap,Di=new WeakMap,gi=new WeakMap,qi=new WeakMap,mi=new WeakMap,yr=new WeakMap,We=new WeakSet,eg=function(){try{ne(this,mt,at(()=>L(this,Mi).call(this,L(this,gt))))}catch(e){this.error(e)}ne(this,ht,!1)},tg=function(){const e=L(this,Ft).pending;e&&(ne(this,lt,at(()=>e(L(this,gt)))),jt.enqueue(()=>{var i=ze(this,We,Vn).call(this);ne(this,mt,ze(this,We,Tr).call(this,()=>(jt.ensure(),at(()=>L(this,Mi).call(this,i))))),L(this,gi)>0?ze(this,We,Er).call(this):(Yi(L(this,lt),()=>{ne(this,lt,null)}),ne(this,ht,!1))}))},Vn=function(){var e=L(this,gt);return L(this,ht)&&(ne(this,hi,Mt()),L(this,gt).before(L(this,hi)),e=L(this,hi)),e},Tr=function(e){var i=we,a=ye,r=Se;qt(L(this,Vt)),rt(L(this,Vt)),Ui(L(this,Vt).ctx);try{return e()}catch(n){return ol(n),null}finally{qt(i),rt(a),Ui(r)}},Er=function(){const e=L(this,Ft).pending;L(this,mt)!==null&&(ne(this,ai,document.createDocumentFragment()),L(this,ai).append(L(this,hi)),Dl(L(this,mt),L(this,ai))),L(this,lt)===null&&ne(this,lt,at(()=>e(L(this,gt))))},Hn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&ze(i=this.parent,We,Hn).call(i,e);return}ne(this,gi,L(this,gi)+e),L(this,gi)===0&&(ne(this,ht,!1),L(this,lt)&&Yi(L(this,lt),()=>{ne(this,lt,null)}),L(this,ai)&&(L(this,gt).before(L(this,ai)),ne(this,ai,null)))};let Si=null;function fl(t){Si=t}function Ie(t,e){return e}function $s(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Vr(e[n].e,a,!0);Ll(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;sc(s),s.append(c),t.items.clear(),At(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var p=e[d];l||(t.items.delete(p.k),At(t,p.prev,p.next)),Ye(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Pe(t,e,i,a,r,n=null){var l=t,c=new Map,s=null,d=(e&tl)!==0,p=(e&$n)!==0,u=(e&el)!==0;if(d){var f=t;l=f.appendChild(Mt())}var h=null,m=Rr(()=>{var P=i();return De(P)?P:P==null?[]:Pr(P)}),y,b=!0;function g(){ec(_,y,l,e,a),h!==null&&(y.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Hr(h.effect),S.first=h.effect):Yi(h.effect,()=>{h=null}))}var S=ci(()=>{y=o(m);for(var P=y.length,M=new Set,z=he,A=null,H=Tl(),D=0;D<P;D+=1){var j=y[D],E=a(j,D),T=b?null:c.get(E);T?(p&&Jt(T.v,j),u?Jt(T.i,D):T.i=D,H&&z.skipped_effects.delete(T.e)):(T=tc(b?l:null,A,j,E,D,r,e,i),b&&(T.o=!0,A===null?s=T:A.next=T,A=T),c.set(E,T)),M.add(E)}if(P===0&&n&&!h)if(b)h={fragment:null,effect:at(()=>n(l))};else{var x=document.createDocumentFragment(),R=Mt();x.append(R),h={fragment:x,effect:at(()=>n(R))}}if(!b)if(H){for(const[U,Z]of c)M.has(U)||z.skipped_effects.add(Z.e);z.oncommit(g),z.ondiscard(()=>{})}else g();o(m)}),_={effect:S,flags:e,items:c,first:s};b=!1}function ec(t,e,i,a,r){var j,E,T,x;var n=(a&Cs)!==0,l=e.length,c=t.items,s=t.first,d,p=null,u,f=[],h=[],m,y,b,g;if(n)for(g=0;g<l;g+=1)m=e[g],y=r(m,g),b=c.get(y),b.o&&((j=b.a)==null||j.measure(),(u??(u=new Set)).add(b));for(g=0;g<l;g+=1){if(m=e[g],y=r(m,g),b=c.get(y),t.first??(t.first=b),!b.o){b.o=!0;var S=p?p.next:s;At(t,p,b),At(t,b,S),Or(b,S,i),p=b,f=[],h=[],s=p.next;continue}if(b.e.f&ot&&(Hr(b.e),n&&((E=b.a)==null||E.unfix(),(u??(u=new Set)).delete(b))),b!==s){if(d!==void 0&&d.has(b)){if(f.length<h.length){var _=h[0],P;p=_.prev;var M=f[0],z=f[f.length-1];for(P=0;P<f.length;P+=1)Or(f[P],_,i);for(P=0;P<h.length;P+=1)d.delete(h[P]);At(t,M.prev,z.next),At(t,p,M),At(t,z,_),s=_,p=z,g-=1,f=[],h=[]}else d.delete(b),Or(b,s,i),At(t,b.prev,b.next),At(t,b,p===null?t.first:p.next),At(t,p,b),p=b;continue}for(f=[],h=[];s!==null&&s.k!==y;)s.e.f&ot||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;b=s}f.push(b),p=b,s=b.next}if(s!==null||d!==void 0){for(var A=d===void 0?[]:Pr(d);s!==null;)s.e.f&ot||A.push(s),s=s.next;var H=A.length;if(H>0){var D=a&tl&&l===0?i:null;if(n){for(g=0;g<H;g+=1)(T=A[g].a)==null||T.measure();for(g=0;g<H;g+=1)(x=A[g].a)==null||x.fix()}$s(t,A,D)}}n&&Zt(()=>{var R;if(u!==void 0)for(b of u)(R=b.a)==null||R.apply()})}function tc(t,e,i,a,r,n,l,c){var s=Si,d=(l&$n)!==0,p=(l&zs)===0,u=d?p?Fr(i,!1,!1):Lt(i):i,f=l&el?Lt(r):r,h={i:f,v:u,k:a,a:null,e:null,o:!1,prev:e,next:null};Si=h;try{if(t===null){var m=document.createDocumentFragment();m.append(t=Mt())}return h.e=at(()=>n(t,u,f,c)),e!==null&&(e.next=h),h}finally{Si=s}}function Or(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==a;){var l=ga(n);r.before(n),n=l}}function At(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 hl(t,e,i,a){const r=_i()?ha:Rr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=he,l=we,c=gl();function s(){Promise.all(i.map(d=>ic(d))).then(d=>{c();try{a([...e.map(r),...d])}catch(p){l.f&Yt||Wi(p,l)}n==null||n.deactivate(),fa()}).catch(d=>{Wi(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{n==null||n.deactivate(),fa()}}):s()}function gl(){var t=we,e=ye,i=Se,a=he;return function(n=!0){qt(t),rt(e),Ui(i),n&&(a==null||a.activate())}}function fa(){qt(null),rt(null),Ui(null)}function ha(t){var e=Ge|it,i=ye!==null&&ye.f&Ge?ye:null;return we!==null&&(we.f|=Fi),{ctx:Se,deps:null,effects:null,equals:il,f:e,fn:t,reactions:null,rv:0,v:Ue,wv:0,parent:i??we,ac:null}}function ic(t,e){let i=we;i===null&&ys();var a=i.b,r=void 0,n=Lt(Ue),l=!ye,c=new Map;return gc(()=>{var f;var s=Gn();r=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===he&&d.committed&&d.deactivate(),fa()})}catch(h){s.reject(h),fa()}var d=he;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(f=c.get(d))==null||f.reject(Vi),c.delete(d),c.set(d,s)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Vi&&(n.f|=li,Jt(n,m));else{n.f&li&&(n.f^=li),Jt(n,h);for(const[y,b]of c){if(c.delete(y),y===d)break;b.reject(Vi)}}l&&(a.update_pending_count(-1),d.decrement(p))};s.promise.then(u,h=>u(null,h||"unknown"))}),ya(()=>{for(const s of c.values())s.reject(Vi)}),new Promise(s=>{function d(p){function u(){p===r?s(n):d(r)}p.then(u,u)}d(r)})}function F(t){const e=ha(t);return Ol(e),e}function Rr(t){const e=ha(t);return e.equals=rl,e}function ml(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ye(e[i])}}function ac(t){for(var e=t.parent;e!==null;){if(!(e.f&Ge))return e.f&Yt?null:e;e=e.parent}return null}function Nr(t){var e,i=we;qt(ac(t));try{t.f&=~va,ml(t),e=Vl(t)}finally{qt(i)}return e}function yl(t){var e=Nr(t);if(t.equals(e)||(he!=null&&he.is_fork||(t.v=e),t.wv=Bl()),!Pi)if(Ne!==null)(ma()||he!=null&&he.is_fork)&&Ne.set(t,e);else{var i=t.f&bt?Ze:Kt;Je(t,i)}}let Br=new Set;const oi=new Map;let bl=!1;function Lt(t,e){var i={f:0,v:t,reactions:null,equals:il,rv:0,wv:0};return i}function G(t,e){const i=Lt(t);return Ol(i),i}function Fr(t,e=!1,i=!0){var r;const a=Lt(t);return e||(a.equals=rl),Hi&&i&&Se!==null&&Se.l!==null&&((r=Se.l).s??(r.s=[])).push(a),a}function q(t,e,i=!1){ye!==null&&(!Dt||ye.f&Zn)&&_i()&&ye.f&(Ge|Ct|Ar|Zn)&&!($e!=null&&$e.includes(t))&&Es();let a=i?Be(e):e;return Jt(t,a)}function Jt(t,e){if(!t.equals(e)){var i=t.v;Pi?oi.set(t,e):oi.set(t,i),t.v=e;var a=jt.ensure();a.capture(t,i),t.f&Ge&&(t.f&it&&Nr(t),Je(t,t.f&bt?Ze:Kt)),t.wv=Bl(),wl(t,it),_i()&&we!==null&&we.f&Ze&&!(we.f&(Gt|wi))&&(ft===null?bc([t]):ft.push(t)),!a.is_fork&&Br.size>0&&!bl&&rc()}return e}function rc(){bl=!1;var t=di;Wa(!0);const e=Array.from(Br);try{for(const i of e)i.f&Ze&&Je(i,Kt),wa(i)&&_a(i)}finally{Wa(t)}Br.clear()}function nc(t,e=1){var i=o(t),a=e===1?i++:i--;return q(t,i),a}function si(t){q(t,t.v+1)}function wl(t,e){var i=t.reactions;if(i!==null)for(var a=_i(),r=i.length,n=0;n<r;n++){var l=i[n],c=l.f;if(!(!a&&l===we)){var s=(c&it)===0;if(s&&Je(l,e),c&Ge){var d=l;Ne==null||Ne.delete(d),c&va||(c&bt&&(l.f|=va),wl(d,Kt))}else s&&(c&Ct&&wt!==null&&wt.add(l),ki(l))}}}function Be(t){if(typeof t!="object"||t===null||It in t)return t;const e=Cr(t);if(e!==vs&&e!==fs)return t;var i=new Map,a=De(t),r=G(0),n=Qt,l=c=>{if(Qt===n)return c();var s=ye,d=Qt;rt(null),Nl(n);var p=c();return rt(s),Nl(d),p};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(c,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ss();var p=i.get(s);return p===void 0?p=l(()=>{var u=G(d.value);return i.set(s,u),u}):q(p,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const p=l(()=>G(Ue));i.set(s,p),si(r)}}else q(d,Ue),si(r);return!0},get(c,s,d){var h;if(s===It)return t;var p=i.get(s),u=s in c;if(p===void 0&&(!u||(h=ni(c,s))!=null&&h.writable)&&(p=l(()=>{var m=Be(u?c[s]:Ue),y=G(m);return y}),i.set(s,p)),p!==void 0){var f=o(p);return f===Ue?void 0:f}return Reflect.get(c,s,d)},getOwnPropertyDescriptor(c,s){var d=Reflect.getOwnPropertyDescriptor(c,s);if(d&&"value"in d){var p=i.get(s);p&&(d.value=o(p))}else if(d===void 0){var u=i.get(s),f=u==null?void 0:u.v;if(u!==void 0&&f!==Ue)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(c,s){var f;if(s===It)return!0;var d=i.get(s),p=d!==void 0&&d.v!==Ue||Reflect.has(c,s);if(d!==void 0||we!==null&&(!p||(f=ni(c,s))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=p?Be(c[s]):Ue,m=G(h);return m}),i.set(s,d));var u=o(d);if(u===Ue)return!1}return p},set(c,s,d,p){var _;var u=i.get(s),f=s in c;if(a&&s==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?q(m,Ue):h in c&&(m=l(()=>G(Ue)),i.set(h+"",m))}if(u===void 0)(!f||(_=ni(c,s))!=null&&_.writable)&&(u=l(()=>G(void 0)),q(u,Be(d)),i.set(s,u));else{f=u.v!==Ue;var y=l(()=>Be(d));q(u,y)}var b=Reflect.getOwnPropertyDescriptor(c,s);if(b!=null&&b.set&&b.set.call(p,d),!f){if(a&&typeof s=="string"){var g=i.get("length"),S=Number(s);Number.isInteger(S)&&S>=g.v&&q(g,S+1)}si(r)}return!0},ownKeys(c){o(r);var s=Reflect.ownKeys(c).filter(u=>{var f=i.get(u);return f===void 0||f.v!==Ue});for(var[d,p]of i)p.v!==Ue&&!(d in c)&&s.push(d);return s},setPrototypeOf(){Ts()}})}function _l(t){try{if(t!==null&&typeof t=="object"&&It in t)return t[It]}catch{}return t}function lc(t,e){return Object.is(_l(t),_l(e))}var Ae,xl,kl,Sl;function oc(){if(Ae===void 0){Ae=window,xl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;kl=ni(e,"firstChild").get,Sl=ni(e,"nextSibling").get,Wn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Wn(i)&&(i.__t=void 0)}}function Mt(t=""){return document.createTextNode(t)}function Ki(t){return kl.call(t)}function ga(t){return Sl.call(t)}function k(t,e){return Ki(t)}function Q(t,e=!1){{var i=Ki(t);return i instanceof Comment&&i.data===""?ga(i):i}}function I(t,e=1,i=!1){let a=t;for(;e--;)a=ga(a);return a}function sc(t){t.textContent=""}function Tl(){return!1}function cc(t,e){if(e){const i=document.body;t.autofocus=!0,Zt(()=>{document.activeElement===i&&t.focus()})}}let El=!1;function dc(){El||(El=!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 pc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);ya(()=>{for(var n of e)t.removeEventListener(n,i)})}function Ti(t){var e=ye,i=we;rt(null),qt(null);try{return t()}finally{rt(e),qt(i)}}function uc(t,e,i,a=i){t.addEventListener(e,()=>Ti(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),dc()}function Pl(t){we===null&&(ye===null&&_s(),ws()),Pi&&bs()}function vc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function _t(t,e,i){var a=we;a!==null&&a.f&ot&&(t|=ot);var r={ctx:Se,deps:null,nodes_start:null,nodes_end:null,f:t|it|bt,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{_a(r),r.f|=Ba}catch(c){throw Ye(r),c}else e!==null&&ki(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Fi)&&(n=n.first,t&Ct&&t&zt&&n!==null&&(n.f|=zt)),n!==null&&(n.parent=a,a!==null&&vc(n,a),ye!==null&&ye.f&Ge&&!(t&wi))){var l=ye;(l.effects??(l.effects=[])).push(n)}return r}function ma(){return ye!==null&&!Dt}function ya(t){const e=_t(Ra,null,!1);return Je(e,Ze),e.teardown=t,e}function Ke(t){Pl();var e=we.f,i=!ye&&(e&Gt)!==0&&(e&Ba)===0;if(i){var a=Se;(a.e??(a.e=[])).push(t)}else return Cl(t)}function Cl(t){return _t(Ir|Qn,t,!1)}function fc(t){return Pl(),_t(Ra|Qn,t,!0)}function hc(t){jt.ensure();const e=_t(wi|Fi,t,!0);return(i={})=>new Promise(a=>{i.outro?Yi(e,()=>{Ye(e),a(void 0)}):(Ye(e),a(void 0))})}function Ei(t){return _t(Ir,t,!1)}function gc(t){return _t(Ar|Fi,t,!0)}function Ua(t,e=0){return _t(Ra|e,t,!0)}function B(t,e=[],i=[],a=[]){hl(a,e,i,r=>{_t(Ra,()=>t(...r.map(o)),!0)})}function ci(t,e=0){var i=_t(Ct|e,t,!0);return i}function zl(t,e=0){var i=_t(Yn|e,t,!0);return i}function at(t){return _t(Gt|Fi,t,!0)}function Il(t){var e=t.teardown;if(e!==null){const i=Pi,a=ye;ql(!0),rt(null);try{e.call(null)}finally{ql(i),rt(a)}}}function jl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Ti(()=>{r.abort(Vi)});var a=i.next;i.f&wi?i.parent=null:Ye(i,e),i=a}}function mc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Gt||Ye(e),e=i}}function Ye(t,e=!0){var i=!1;(e||t.f&Jn)&&t.nodes_start!==null&&t.nodes_end!==null&&(yc(t.nodes_start,t.nodes_end),i=!0),jl(t,e&&!i),Ga(t,0),Je(t,Yt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();Il(t);var r=t.parent;r!==null&&r.first!==null&&Al(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function yc(t,e){for(;t!==null;){var i=t===e?null:ga(t);t.remove(),t=i}}function Al(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 Yi(t,e,i=!0){var a=[];Vr(t,a,!0),Ll(a,()=>{i&&Ye(t),e&&e()})}function Ll(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Vr(t,e,i){if(!(t.f&ot)){if(t.f^=ot,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&zt)!==0||(a.f&Gt)!==0&&(t.f&Ct)!==0;Vr(a,e,n?i:!1),a=r}}}function Hr(t){Ml(t,!0)}function Ml(t,e){if(t.f&ot){t.f^=ot,t.f&Ze||(Je(t,it),ki(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&zt)!==0||(i.f&Gt)!==0;Ml(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Dl(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ga(i);e.append(i),i=r}}let di=!1;function Wa(t){di=t}let Pi=!1;function ql(t){Pi=t}let ye=null,Dt=!1;function rt(t){ye=t}let we=null;function qt(t){we=t}let $e=null;function Ol(t){ye!==null&&($e===null?$e=[t]:$e.push(t))}let et=null,st=0,ft=null;function bc(t){ft=t}let Rl=1,ba=0,Qt=ba;function Nl(t){Qt=t}function Bl(){return++Rl}function wa(t){var e=t.f;if(e&it)return!0;if(e&Ge&&(t.f&=-32769),e&Kt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(wa(n)&&yl(n),n.wv>t.wv)return!0}e&bt&&Ne===null&&Je(t,Ze)}return!1}function Fl(t,e,i=!0){var a=t.reactions;if(a!==null&&!($e!=null&&$e.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ge?Fl(n,e,!1):e===n&&(i?Je(n,it):n.f&Ze&&Je(n,Kt),ki(n))}}function Vl(t){var m;var e=et,i=st,a=ft,r=ye,n=$e,l=Se,c=Dt,s=Qt,d=t.f;et=null,st=0,ft=null,ye=d&(Gt|wi)?null:t,$e=null,Ui(t.ctx),Dt=!1,Qt=++ba,t.ac!==null&&(Ti(()=>{t.ac.abort(Vi)}),t.ac=null);try{t.f|=jr;var p=t.fn,u=p(),f=t.deps;if(et!==null){var h;if(Ga(t,st),f!==null&&st>0)for(f.length=st+et.length,h=0;h<et.length;h++)f[st+h]=et[h];else t.deps=f=et;if(di&&ma()&&t.f&bt)for(h=st;h<f.length;h++)((m=f[h]).reactions??(m.reactions=[])).push(t)}else f!==null&&st<f.length&&(Ga(t,st),f.length=st);if(_i()&&ft!==null&&!Dt&&f!==null&&!(t.f&(Ge|Kt|it)))for(h=0;h<ft.length;h++)Fl(ft[h],t);return r!==null&&r!==t&&(ba++,ft!==null&&(a===null?a=ft:a.push(...ft))),t.f&li&&(t.f^=li),u}catch(y){return ol(y)}finally{t.f^=jr,et=e,st=i,ft=a,ye=r,$e=n,Ui(l),Dt=c,Qt=s}}function wc(t,e){let i=e.reactions;if(i!==null){var a=Oa.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ge&&(et===null||!et.includes(e))&&(Je(e,Kt),e.f&bt&&(e.f^=bt,e.f&=-32769),ml(e),Ga(e,0))}function Ga(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)wc(t,i[a])}function _a(t){var e=t.f;if(!(e&Yt)){Je(t,Ze);var i=we,a=di;we=t,di=!0;try{e&(Ct|Yn)?mc(t):jl(t),Il(t);var r=Vl(t);t.teardown=typeof r=="function"?r:null,t.wv=Rl;var n;Ee&&Ws&&t.f&it&&t.deps}finally{di=a,we=i}}}async function xa(){await Promise.resolve(),sl()}function o(t){var e=t.f,i=(e&Ge)!==0;if(ye!==null&&!Dt){var a=we!==null&&(we.f&Yt)!==0;if(!a&&!($e!=null&&$e.includes(t))){var r=ye.deps;if(ye.f&jr)t.rv<ba&&(t.rv=ba,et===null&&r!==null&&r[st]===t?st++:et===null?et=[t]:et.includes(t)||et.push(t));else{(ye.deps??(ye.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[ye]:n.includes(ye)||n.push(ye)}}}if(Pi){if(oi.has(t))return oi.get(t);if(i){var l=t,c=l.v;return(!(l.f&Ze)&&l.reactions!==null||Ul(l))&&(c=Nr(l)),oi.set(l,c),c}}else i&&(!(Ne!=null&&Ne.has(t))||he!=null&&he.is_fork&&!ma())&&(l=t,wa(l)&&yl(l),di&&ma()&&!(l.f&bt)&&Hl(l));if(Ne!=null&&Ne.has(t))return Ne.get(t);if(t.f&li)throw t.v;return t.v}function Hl(t){if(t.deps!==null){t.f^=bt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ge&&!(e.f&bt)&&Hl(e)}}function Ul(t){if(t.v===Ue)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(oi.has(e)||e.f&Ge&&Ul(e))return!0;return!1}function Ot(t){var e=Dt;try{return Dt=!0,t()}finally{Dt=e}}const _c=-7169;function Je(t,e){t.f=t.f&_c|e}function Wl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(It in t)Ur(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&It in i&&Ur(i)}}}function Ur(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{Ur(t[a],e)}catch{}const i=Cr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Un(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function xc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const kc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sc(t){return kc.includes(t)}const Tc={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 Ec(t){return t=t.toLowerCase(),Tc[t]??t}const Pc=["touchstart","touchmove"];function Cc(t){return Pc.includes(t)}const Gl=new Set,Wr=new Set;function Gr(t,e,i,a={}){function r(n){if(a.capture||ka.call(e,n),!n.cancelBubble)return Ti(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zt(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function zc(t,e,i,a={}){var r=Gr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function xe(t,e,i,a,r){var n={capture:a,passive:r},l=Gr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ya(()=>{e.removeEventListener(t,l,n)})}function ue(t){for(var e=0;e<t.length;e++)Gl.add(t[e]);for(var i of Wr)i(t)}let Kl=null;function ka(t){var b;var e=this,i=e.ownerDocument,a=t.type,r=((b=t.composedPath)==null?void 0:b.call(t))||[],n=r[0]||t.target;Kl=t;var l=0,c=Kl===t&&t.__root;if(c){var s=r.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(n=r[l]||t.target,n!==e){us(t,"currentTarget",{configurable:!0,get(){return n||i}});var p=ye,u=we;rt(null),qt(null);try{for(var f,h=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var y=n["__"+a];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(g){f?h.push(g):f=g}if(t.cancelBubble||m===e||m===null)break;n=m}if(f){for(let g of h)queueMicrotask(()=>{throw g});throw f}}finally{t.__root=e,delete t.currentTarget,rt(p),qt(u)}}}function Yl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Zi(t,e){var i=we;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Rs)!==0,a=(e&Ns)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Yl(n?t:"<!>"+t),i||(r=Ki(r)));var l=a||xl?document.importNode(r,!0):r.cloneNode(!0);if(i){var c=Ki(l),s=l.lastChild;Zi(c,s)}else Zi(l,l);return l}}function Ic(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Yl(r),c=Ki(l);n=Ki(c)}var s=n.cloneNode(!0);return Zi(s,s),s}}function nt(t,e){return Ic(t,e,"svg")}function Xt(t=""){{var e=Mt(t+"");return Zi(e,e),e}}function fe(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Mt();return t.append(e,i),Zi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Ka=!0;function Ya(t){Ka=t}function Y(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Rt(t,e){return jc(t,e)}const Ji=new Map;function jc(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){oc();var c=new Set,s=u=>{for(var f=0;f<u.length;f++){var h=u[f];if(!c.has(h)){c.add(h);var m=Cc(h);e.addEventListener(h,ka,{passive:m});var y=Ji.get(h);y===void 0?(document.addEventListener(h,ka,{passive:m}),Ji.set(h,1)):Ji.set(h,y+1)}}};s(Pr(Gl)),Wr.add(s);var d=void 0,p=hc(()=>{var u=i??e.appendChild(Mt());return Qs(u,{pending:()=>{}},f=>{if(n){ie({});var h=Se;h.c=n}r&&(a.$$events=r),Ka=l,d=t(f,a)||{},Ka=!0,n&&ae()}),()=>{var m;for(var f of c){e.removeEventListener(f,ka);var h=Ji.get(f);--h===0?(document.removeEventListener(f,ka),Ji.delete(f)):Ji.set(f,h)}Wr.delete(s),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Kr.set(d,p),d}let Kr=new WeakMap;function Qi(t,e){const i=Kr.get(t);return i?(Kr.delete(t),i(e)):Promise.resolve()}class Xi{constructor(e,i=!0){Pt(this,"anchor");pe(this,St,new Map);pe(this,Ut,new Map);pe(this,dt,new Map);pe(this,Oi,new Set);pe(this,Aa,!0);pe(this,La,()=>{var e=he;if(L(this,St).has(e)){var i=L(this,St).get(e),a=L(this,Ut).get(i);if(a)Hr(a),L(this,Oi).delete(i);else{var r=L(this,dt).get(i);r&&(L(this,Ut).set(i,r.effect),L(this,dt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of L(this,St)){if(L(this,St).delete(n),n===e)break;const c=L(this,dt).get(l);c&&(Ye(c.effect),L(this,dt).delete(l))}for(const[n,l]of L(this,Ut)){if(n===i||L(this,Oi).has(n))continue;const c=()=>{if(Array.from(L(this,St).values()).includes(n)){var d=document.createDocumentFragment();Dl(l,d),d.append(Mt()),L(this,dt).set(n,{effect:l,fragment:d})}else Ye(l);L(this,Oi).delete(n),L(this,Ut).delete(n)};L(this,Aa)||!a?(L(this,Oi).add(n),Yi(l,c,!1)):c()}}});pe(this,br,e=>{L(this,St).delete(e);const i=Array.from(L(this,St).values());for(const[a,r]of L(this,dt))i.includes(a)||(Ye(r.effect),L(this,dt).delete(a))});this.anchor=e,ne(this,Aa,i)}ensure(e,i){var a=he,r=Tl();if(i&&!L(this,Ut).has(e)&&!L(this,dt).has(e))if(r){var n=document.createDocumentFragment(),l=Mt();n.append(l),L(this,dt).set(e,{effect:at(()=>i(l)),fragment:n})}else L(this,Ut).set(e,at(()=>i(this.anchor)));if(L(this,St).set(a,e),r){for(const[c,s]of L(this,Ut))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of L(this,dt))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(L(this,La)),a.ondiscard(L(this,br))}else L(this,La).call(this)}}St=new WeakMap,Ut=new WeakMap,dt=new WeakMap,Oi=new WeakMap,Aa=new WeakMap,La=new WeakMap,br=new WeakMap;const Ac=0,Yr=1;function Za(t,e,i,a,r){var n=_i(),l=Ue,c=n?Lt(l):Fr(l,!1,!1),s=n?Lt(l):Fr(l,!1,!1),d=new Xi(t);ci(()=>{var p=e(),u=!1;if(hs(p)){var f=gl(),h=!1;const m=y=>{if(!u){h=!0,f(!1),jt.ensure();try{y()}finally{fa(),Gi||sl()}}};p.then(y=>{m(()=>{Jt(c,y),d.ensure(Yr,a&&(b=>a(b,c)))})},y=>{m(()=>{if(Jt(s,y),d.ensure(Yr,r&&(b=>r(b,s))),!r)throw s.v})}),Zt(()=>{h||m(()=>{d.ensure(Ac,i)})})}else Jt(c,p),d.ensure(Yr,a&&(m=>a(m,c)));return()=>{u=!0}})}function V(t,e,i=!1){var a=new Xi(t),r=i?zt:0;function n(l,c){a.ensure(l,c)}ci(()=>{var l=!1;e((c,s=!0)=>{l=!0,n(s,c)}),l||n(!1,null)},r)}function $i(t,e,i){var a=new Xi(t),r=!_i();ci(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Fe(t,e,...i){var a=new Xi(t);ci(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},zt)}function Zr(t,e,i){var a=new Xi(t);ci(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},zt)}function Zl(t,e,i,a,r,n){var l=null,c=t,s=Si,d=new Xi(c,!1);ci(()=>{const p=e()||null;var u=p==="svg"?Fs:null;if(p===null){d.ensure(null,null),Ya(!0);return}return d.ensure(p,f=>{var h=Si;if(fl(s),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Zi(l,l),a){var m=l.appendChild(Mt());a(l,m)}we.nodes_end=l,f.before(l)}fl(h)}),Ya(!0),()=>{p&&Ya(!1)}},zt),ya(()=>{Ya(!0)})}function Nt(t,e,i){Ei(()=>{var a=Ot(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Ua(()=>{var l=i();Wl(l),r&&al(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Ja(t,e){var i=void 0,a;zl(()=>{i!==(i=e())&&(a&&(Ye(a),a=null),i&&(a=at(()=>{Ei(()=>i(t))})))})}function Jl(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Jl(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Lc(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Jl(t))&&(a&&(a+=" "),a+=e);return a}function Mc(t){return typeof t=="object"?Lc(t):t??""}const Ql=[...`
3
3
  \r\f \v\uFEFF`];function Dc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var r in i)if(i[r])a=a?a+" "+r:r;else if(a.length)for(var n=r.length,l=0;(l=a.indexOf(r,l))>=0;){var c=l+n;(l===0||Ql.includes(a[l-1]))&&(c===a.length||Ql.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function Xl(t,e=!1){var i=e?" !important;":";",a="";for(var r in t){var n=t[r];n!=null&&n!==""&&(a+=" "+r+": "+n+i)}return a}function Jr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function qc(t,e){if(e){var i="",a,r;if(Array.isArray(e)?(a=e[0],r=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,l=0,c=!1,s=[];a&&s.push(...Object.keys(a).map(Jr)),r&&s.push(...Object.keys(r).map(Jr));var d=0,p=-1;const y=t.length;for(var u=0;u<y;u++){var f=t[u];if(c?f==="/"&&t[u-1]==="*"&&(c=!1):n?n===f&&(n=!1):f==="/"&&t[u+1]==="*"?c=!0:f==='"'||f==="'"?n=f:f==="("?l++:f===")"&&l--,!c&&n===!1&&l===0){if(f===":"&&p===-1)p=u;else if(f===";"||u===y-1){if(p!==-1){var h=Jr(t.substring(d,p).trim());if(!s.includes(h)){f!==";"&&u++;var m=t.substring(d,u).trim();i+=" "+m+";"}}d=u+1,p=-1}}}}return a&&(i+=Xl(a)),r&&(i+=Xl(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function be(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var c=Dc(i,a,n);c==null?t.removeAttribute("class"):e?t.className=c:t.setAttribute("class",c),t.__className=i}else if(n&&r!==n)for(var s in n){var d=!!n[s];(r==null||d!==!!r[s])&&t.classList.toggle(s,d)}return n}function Qr(t,e={},i,a){for(var r in i){var n=i[r];e[r]!==n&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,n,a))}}function Ve(t,e,i,a){var r=t.__style;if(r!==e){var n=qc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(Qr(t,i==null?void 0:i[0],a[0]),Qr(t,i==null?void 0:i[1],a[1],"important")):Qr(t,i,a));return a}function Xr(t,e,i=!1){if(t.multiple){if(e==null)return;if(!De(e))return Hs();for(var a of t.options)a.selected=e.includes($l(a));return}for(a of t.options){var r=$l(a);if(lc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Oc(t){var e=new MutationObserver(()=>{Xr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ya(()=>{e.disconnect()})}function $l(t){return"__value"in t?t.__value:t.value}const ea=Symbol("class"),ta=Symbol("style"),eo=Symbol("is custom element"),to=Symbol("is html");function Rc(t,e){var i=$r(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function io(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ee(t,e,i,a){var r=$r(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[ms]=i),i==null?t.removeAttribute(e):typeof i!="string"&&no(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Nc(t,e,i,a,r=!1,n=!1){var l=$r(t),c=l[eo],s=!l[to],d=e||{},p=t.tagName==="OPTION";for(var u in e)u in i||(i[u]=null);i.class?i.class=Mc(i.class):(a||i[ea])&&(i.class=null),i[ta]&&(i.style??(i.style=null));var f=no(t);for(const _ in i){let P=i[_];if(p&&_==="value"&&P==null){t.value=t.__value="",d[_]=P;continue}if(_==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";be(t,h,P,a,e==null?void 0:e[ea],i[ea]),d[_]=P,d[ea]=i[ea];continue}if(_==="style"){Ve(t,P,e==null?void 0:e[ta],i[ta]),d[_]=P,d[ta]=i[ta];continue}var m=d[_];if(!(P===m&&!(P===void 0&&t.hasAttribute(_)))){d[_]=P;var y=_[0]+_[1];if(y!=="$$")if(y==="on"){const M={},z="$$"+_;let A=_.slice(2);var b=Sc(A);if(xc(A)&&(A=A.slice(0,-7),M.capture=!0),!b&&m){if(P!=null)continue;t.removeEventListener(A,d[z],M),d[z]=null}if(P!=null)if(b)t[`__${A}`]=P,ue([A]);else{let H=function(D){d[_].call(this,D)};d[z]=Gr(A,t,H,M)}else b&&(t[`__${A}`]=void 0)}else if(_==="style")ee(t,_,P);else if(_==="autofocus")cc(t,!!P);else if(!c&&(_==="__value"||_==="value"&&P!=null))t.value=t.__value=P;else if(_==="selected"&&p)io(t,P);else{var g=_;s||(g=Ec(g));var S=g==="defaultValue"||g==="defaultChecked";if(P==null&&!c&&!S)if(l[_]=null,g==="value"||g==="checked"){let M=t;const z=e===void 0;if(g==="value"){let A=M.defaultValue;M.removeAttribute(g),M.defaultValue=A,M.value=M.__value=z?A:null}else{let A=M.defaultChecked;M.removeAttribute(g),M.defaultChecked=A,M.checked=z?A:!1}}else t.removeAttribute(_);else S||f.includes(g)&&(c||typeof P!="string")?(t[g]=P,g in l&&(l[g]=Ue)):typeof P!="function"&&ee(t,g,P)}}}return d}function ao(t,e,i=[],a=[],r=[],n,l=!1,c=!1){hl(r,i,a,s=>{var d=void 0,p={},u=t.nodeName==="SELECT",f=!1;if(zl(()=>{var m=e(...s.map(o)),y=Nc(t,d,m,n,l,c);f&&u&&"value"in m&&Xr(t,m.value);for(let g of Object.getOwnPropertySymbols(p))m[g]||Ye(p[g]);for(let g of Object.getOwnPropertySymbols(m)){var b=m[g];g.description===Vs&&(!d||b!==d[g])&&(p[g]&&Ye(p[g]),p[g]=at(()=>Ja(t,()=>b))),y[g]=b}d=y}),u){var h=t;Ei(()=>{Xr(h,d.value,!0),Oc(h)})}f=!0})}function $r(t){return t.__attributes??(t.__attributes={[eo]:t.nodeName.includes("-"),[to]:t.namespaceURI===Bs})}var ro=new Map;function no(t){var e=t.getAttribute("is")||t.nodeName,i=ro.get(e);if(i)return i;ro.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Un(r);for(var l in a)a[l].set&&i.push(l);r=Cr(r)}return i}const Bc=()=>performance.now(),$t={tick:t=>requestAnimationFrame(t),now:()=>Bc(),tasks:new Set};function lo(){const t=$t.now();$t.tasks.forEach(e=>{e.c(t)||($t.tasks.delete(e),e.f())}),$t.tasks.size!==0&&$t.tick(lo)}function Fc(t){let e;return $t.tasks.size===0&&$t.tick(lo),{promise:new Promise(i=>{$t.tasks.add(e={c:t,f:i})}),abort(){$t.tasks.delete(e)}}}function Qa(t,e){Ti(()=>{t.dispatchEvent(new CustomEvent(e))})}function Vc(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 oo(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Vc(r.trim());e[l]=n.trim()}return e}const Hc=t=>t;function Uc(t,e,i){var a=Si,r,n,l,c=null;a.a??(a.a={element:t,measure(){r=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),n=this.element.getBoundingClientRect(),r.left!==n.left||r.right!==n.right||r.top!==n.top||r.bottom!==n.bottom){const s=e()(this.element,{from:r,to:n},i==null?void 0:i());l=Xa(this.element,s,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:s,width:d,height:p}=getComputedStyle(t);if(s!=="absolute"&&s!=="fixed"){var u=t.style;c={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=d,u.height=p;var f=t.getBoundingClientRect();if(r.left!==f.left||r.top!==f.top){var h=`translate(${r.left-f.left}px, ${r.top-f.top}px)`;u.transform=u.transform?`${u.transform} ${h}`:h}}}},unfix(){if(c){var s=t.style;s.position=c.position,s.width=c.width,s.height=c.height,s.transform=c.transform}}}),a.a.element=t}function Le(t,e,i,a){var r=(t&Ds)!==0,n=(t&qs)!==0,l=r&&n,c=(t&Os)!==0,s=l?"both":r?"in":"out",d,p=e.inert,u=e.style.overflow,f,h;function m(){return Ti(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var y={is_global:c,in(){var _;if(e.inert=p,!r){h==null||h.abort(),(_=h==null?void 0:h.reset)==null||_.call(h);return}n||f==null||f.abort(),Qa(e,"introstart"),f=Xa(e,m(),h,1,()=>{Qa(e,"introend"),f==null||f.abort(),f=d=void 0,e.style.overflow=u})},out(_){if(!n){_==null||_(),d=void 0;return}e.inert=!0,Qa(e,"outrostart"),h=Xa(e,m(),f,0,()=>{Qa(e,"outroend"),_==null||_()})},stop:()=>{f==null||f.abort(),h==null||h.abort()}},b=we;if((b.transitions??(b.transitions=[])).push(y),r&&Ka){var g=c;if(!g){for(var S=b.parent;S&&S.f&zt;)for(;(S=S.parent)&&!(S.f&Ct););g=!S||(S.f&Ba)!==0}g&&Ei(()=>{Ot(()=>y.in())})}}function Xa(t,e,i,a,r){var n=a===1;if(Bi(e)){var l,c=!1;return Zt(()=>{if(!c){var b=e({direction:n?"in":"out"});l=Xa(t,b,i,a,r)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:ut,deactivate:ut,reset:ut,t:()=>a};const{delay:s=0,css:d,tick:p,easing:u=Hc}=e;var f=[];if(n&&i===void 0&&(p&&p(0,1),d)){var h=oo(d(0,1));f.push(h,h)}var m=()=>1-a,y=t.animate(f,{duration:s,fill:"forwards"});return y.onfinish=()=>{y.cancel();var b=(i==null?void 0:i.t())??1-a;i==null||i.abort();var g=a-b,S=e.duration*Math.abs(g),_=[];if(S>0){var P=!1;if(d)for(var M=Math.ceil(S/16.666666666666668),z=0;z<=M;z+=1){var A=b+g*u(z/M),H=oo(d(A,1-A));_.push(H),P||(P=H.overflow==="hidden")}P&&(t.style.overflow="hidden"),m=()=>{var D=y.currentTime;return b+g*u(D/S)},p&&Fc(()=>{if(y.playState!=="running")return!1;var D=m();return p(D,1-D),!0})}y=t.animate(_,{duration:S,fill:"forwards"}),y.onfinish=()=>{m=()=>a,p==null||p(a,1-a),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ut)},deactivate:()=>{r=ut},reset:()=>{a===0&&(p==null||p(1,0))},t:()=>m()}}function Sa(t,e,i=e){var a=new WeakSet;uc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=en(t)?tn(n):n,i(n),he!==null&&a.add(he),await xa(),n!==(n=e())){var l=t.selectionStart,c=t.selectionEnd,s=t.value.length;if(t.value=n??"",c!==null){var d=t.value.length;l===c&&c===s&&d>s?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(c,d))}}}),Ot(e)==null&&t.value&&(i(en(t)?tn(t.value):t.value),he!==null&&a.add(he)),Ua(()=>{var r=e();if(t===document.activeElement){var n=Va??he;if(a.has(n))return}en(t)&&r===tn(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function en(t){var e=t.type;return e==="number"||e==="range"}function tn(t){return t===""?null:+t}const _r=class _r{constructor(e){pe(this,wr);pe(this,yi,new WeakMap);pe(this,ca);pe(this,Ma);ne(this,Ma,e)}observe(e,i){var a=L(this,yi).get(e)||new Set;return a.add(i),L(this,yi).set(e,a),ze(this,wr,cs).call(this).observe(e,L(this,Ma)),()=>{var r=L(this,yi).get(e);r.delete(i),r.size===0&&(L(this,yi).delete(e),L(this,ca).unobserve(e))}}};yi=new WeakMap,ca=new WeakMap,Ma=new WeakMap,wr=new WeakSet,cs=function(){return L(this,ca)??ne(this,ca,new ResizeObserver(e=>{for(var i of e){_r.entries.set(i.target,i);for(var a of L(this,yi).get(i.target)||[])a(i)}}))},Pt(_r,"entries",new WeakMap);let an=_r;var Wc=new an({box:"border-box"});function xt(t,e,i){var a=Wc.observe(t,()=>i(t[e]));Ei(()=>(Ot(()=>i(t[e])),a))}function so(t,e){return t===e||(t==null?void 0:t[It])===e}function tt(t={},e,i,a){return Ei(()=>{var r,n;return Ua(()=>{r=n,n=[],Ot(()=>{t!==i(...n)&&(e(t,...n),r&&so(i(...r),t)&&e(null,...r))})}),()=>{Zt(()=>{n&&so(i(...n),t)&&e(null,...n)})}}),t}function rn(t,e){pc(window,["resize"],()=>Ti(()=>e(window[t])))}function nn(t=!1){const e=Se,i=e.l.u;if(!i)return;let a=()=>Wl(e.s);if(t){let r=0,n={};const l=ha(()=>{let c=!1;const s=e.s;for(const d in s)s[d]!==n[d]&&(n[d]=s[d],c=!0);return c&&r++,r});a=()=>o(l)}i.b.length&&fc(()=>{co(e,a),zr(i.b)}),Ke(()=>{const r=Ot(()=>i.m.map(gs));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Ke(()=>{co(e,a),zr(i.a)})}function co(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let $a=!1;function Gc(t){var e=$a;try{return $a=!1,[t(),$a]}finally{$a=e}}const Kc={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 po(t,e,i){return new Proxy({props:t,exclude:e},Kc)}const Yc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Bi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(t,e,i){let a=t.props.length;for(;a--;){let r=t.props[a];Bi(r)&&(r=r());const n=ni(r,e);if(n&&n.set)return n.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Bi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=ni(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===It||e===Xn)return!1;for(let i of t.props)if(Bi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Bi(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 ln(...t){return new Proxy({props:t},Yc)}function O(t,e,i,a){var _;var r=!Hi||(i&js)!==0,n=(i&Ls)!==0,l=(i&Ms)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?Ot(a):a),c),p;if(n){var u=It in t||Xn in t;p=((_=ni(t,e))==null?void 0:_.set)??(u&&e in t?P=>t[e]=P:void 0)}var f,h=!1;n?[f,h]=Gc(()=>t[e]):f=t[e],f===void 0&&a!==void 0&&(f=d(),p&&(r&&ks(),p(f)));var m;if(r?m=()=>{var P=t[e];return P===void 0?d():(s=!0,P)}:m=()=>{var P=t[e];return P!==void 0&&(c=void 0),P===void 0?c:P},r&&!(i&As))return m;if(p){var y=t.$$legacy;return function(P,M){return arguments.length>0?((!r||!M||y||h)&&p(M?m():P),P):m()}}var b=!1,g=(i&Is?ha:Rr)(()=>(b=!1,m()));n&&o(g);var S=we;return function(P,M){if(arguments.length>0){const z=M?o(g):r&&n?Be(P):P;return q(g,z),b=!0,c!==void 0&&(c=z),P}return Pi&&b||S.f&Yt?g.v:o(g)}}function ct(t){Se===null&&Lr(),Hi&&Se.l!==null?Zc(Se).m.push(t):Ke(()=>{const e=Ot(t);if(typeof e=="function")return e})}function on(t){Se===null&&Lr(),ct(()=>()=>Ot(t))}function Zc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Jc="5";typeof window<"u"&&((is=window.__svelte??(window.__svelte={})).v??(is.v=new Set)).add(Jc);function pi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Qc="https://www.playpilot.com",Xc="https://partner-api.playpilot.tech/1.0",$c="https://img-external.playpilot.tech",ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Ci=600,sn={};async function ei(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!er()&&i==="GET";if(r&&t in sn)return sn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Xc+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let s=c;try{c&&(s=JSON.parse(c))}catch{}return r&&(sn[t]=s),s}const uo="EncryptedToken",vo="articleReplacementEditToken",td="playpilot-editorial-mode";async function fo({href:t=window.location.href,throwError:e=!1}={}){try{const i=pi();if(!i)throw new Error("No token was provided");const a=ho(t);if(!a)throw new Error("Could not be authenticated");return await ei(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),id(a),!0}catch(i){if(console.error(i),e)throw i}finally{ad()}return!1}function ho(t=""){var a,r;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const n=new URL(t).searchParams.get(vo);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${uo}=`).pop())==null?void 0:r.split(";")[0])||""}function id(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=uo+"="+t+";"+a+";path=/"}function er(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(td)==="true"||!!t}function ad(){const t=new URL(window.location.href);t.searchParams.delete(vo),window.history.replaceState({},"",t)}function rd(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 v=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ta(){var a,r;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(v);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(i){if(e.includes(i))return i;const n=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(n)return n}return v.English}function go(t,e=""){const i=[],a=[t];for(;a.length>0;){const r=a.pop();if(i.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const n=Array.from(r.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const s=r.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const c=Array.from(r.children);for(let s=c.length-1;s>=0;s--)a.push(c[s])}return i}function dn(){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 pn(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function un(t){const e=dn(),i=go(e,(t==null?void 0:t.exclude_elements_selector)||""),a=pn(i);return{parentElement:e,elements:i,pageText:a}}function mo(){const t=dn();return{content_heading:nd(t),content_modified_time:ld(t),content_published_time:od(t)}}function nd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function ld(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=yo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function od(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=yo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function vn(t){try{return new Date(t).toISOString()}catch{return null}}function yo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function zi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function fn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function sd(t){return!!(t.exclude_urls_pattern&&zi().match(new RegExp(t.exclude_urls_pattern)))}let hn=null;async function tr(t,{url:e=zi(),hash:i=rd(t||""),params:a={},method:r="GET"}={}){const n=pi(),l=er()?await fo():!1,c=Ta();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=mo(),d=await ei(s,{method:"POST",body:a})):d=await ei(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function bo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;hn&&clearTimeout(hn);const c=async(s,d)=>{let p;try{try{p=await tr(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await tr(t,{method:"POST"}),p.ai_enabled&&(p=await tr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await cd(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=wo(p.manual_injections||[]),p.ai_injections=wo(p.ai_injections||[]),s(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&n(p),hn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function cd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=mo().content_modified_time,a=e.content_modified_time?vn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await tr(t,{params:{run_ai:!0},method:"POST"})}function wo(t){return t.map(e=>({...e,key:dd(e.sid)}))}function dd(t){return t+"-"+cn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function ud(t,e){return e.some(i=>t>=i.start&&t<i.end)}function vd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function gn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function _o(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function xo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function fd(t,e,i,a){const r=vd(e),n=gn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function hd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function ui(t){return gn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function gd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=ko(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=ko(So(n,2)),s=So(l,2);return{before:c,after:s}}function ko(t){return t.split("").reverse().join("")}function So(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ir(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function md(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function yd(t,e,i,a){const n=md(t,i,a).filter(({match:c})=>gn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function bd(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 wd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)ud(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function _d(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function xd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function To(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={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",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreNavigate:"venus_navigate"},Ea={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function kd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function kt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function ar(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const mn=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function Sd(t=[]){return t.map(e=>{var i;return((i=mn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const yn="playpilot_user_id";function Td(){if(!Eo())return null;try{const t=localStorage.getItem(yn);return t||(localStorage.setItem(yn,cn(16)),localStorage.getItem(yn))}catch{return null}}function Eo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Ed="https://insights.playpilot.net";async function ce(t,e=null,i={}){var r,n,l,c,s;if(ar())return;if(!kt("tracking")){Cd(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:Sd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Eo()&&(i.user_id=Td()),i.version="8.5.10-beta.1",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=zi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Ci?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Ed,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Pd({event:t,payload:i})}function Pd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Po({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Cd(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 zd(){if(kt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function Co(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?kt("pixels"):!1}async function zo(){if(!kt("ads"))return[];const t=pi();if(!t)throw new Error("No token was provided");try{return await ei(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function Pa(t){var e;return!kt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Id(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"}}}const jd={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.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":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function te(t,e=Ta()){var i;return((i=jd[t])==null?void 0:i[e])||t}async function bn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Ad(s),s}catch(l){return ce(se.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Ad(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function wn(t={}){const e=pi();if(!e)throw new Error("No token was provided");return t={...t,language:Ta(),include_count:"false"},t.region!==null&&(t.region=t.region||await bn()),await ei(`/titles/browse?api-token=${e}&`+fn(t))}async function Ld(t){return(await wn({related_to_sid:t.sid})).results}const rr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Md=t=>t;function Io(t){const e=t-1;return e*e*e+1}function jo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ti(t,{delay:e=0,duration:i=400,easing:a=Md}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Ca(t,{delay:e=0,duration:i=400,easing:a=Io,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,f]=jo(r),[h,m]=jo(n);return{delay:e,duration:i,easing:a,css:(y,b)=>`
5
+ `)}function un(t){const e=dn(),i=go(e,(t==null?void 0:t.exclude_elements_selector)||""),a=pn(i);return{parentElement:e,elements:i,pageText:a}}function mo(){const t=dn();return{content_heading:nd(t),content_modified_time:ld(t),content_published_time:od(t)}}function nd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function ld(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=yo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function od(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=yo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function vn(t){try{return new Date(t).toISOString()}catch{return null}}function yo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function zi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function fn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function sd(t){return!!(t.exclude_urls_pattern&&zi().match(new RegExp(t.exclude_urls_pattern)))}let hn=null;async function tr(t,{url:e=zi(),hash:i=rd(t||""),params:a={},method:r="GET"}={}){const n=pi(),l=er()?await fo():!1,c=Ta();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=mo(),d=await ei(s,{method:"POST",body:a})):d=await ei(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function bo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;hn&&clearTimeout(hn);const c=async(s,d)=>{let p;try{try{p=await tr(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await tr(t,{method:"POST"}),p.ai_enabled&&(p=await tr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await cd(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=wo(p.manual_injections||[]),p.ai_injections=wo(p.ai_injections||[]),s(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&n(p),hn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function cd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=mo().content_modified_time,a=e.content_modified_time?vn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await tr(t,{params:{run_ai:!0},method:"POST"})}function wo(t){return t.map(e=>({...e,key:dd(e.sid)}))}function dd(t){return t+"-"+cn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function ud(t,e){return e.some(i=>t>=i.start&&t<i.end)}function vd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function gn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function _o(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function xo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function fd(t,e,i,a){const r=vd(e),n=gn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function hd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function ui(t){return gn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function gd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=ko(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=ko(So(n,2)),s=So(l,2);return{before:c,after:s}}function ko(t){return t.split("").reverse().join("")}function So(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ir(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function md(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function yd(t,e,i,a){const n=md(t,i,a).filter(({match:c})=>gn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function bd(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 wd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)ud(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function _d(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function xd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function To(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={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",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreNavigate:"venus_navigate"},Ea={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function kd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function kt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function ar(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const mn=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function Sd(t=[]){return t.map(e=>{var i;return((i=mn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const yn="playpilot_user_id";function Td(){if(!Eo())return null;try{const t=localStorage.getItem(yn);return t||(localStorage.setItem(yn,cn(16)),localStorage.getItem(yn))}catch{return null}}function Eo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Ed="https://insights.playpilot.net";async function ce(t,e=null,i={}){var r,n,l,c,s;if(ar())return;if(!kt("tracking")){Cd(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:Sd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Eo()&&(i.user_id=Td()),i.version="8.5.10",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=zi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Ci?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Ed,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Pd({event:t,payload:i})}function Pd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Po({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Cd(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 zd(){if(kt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function Co(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?kt("pixels"):!1}async function zo(){if(!kt("ads"))return[];const t=pi();if(!t)throw new Error("No token was provided");try{return await ei(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function Pa(t){var e;return!kt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Id(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"}}}const jd={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.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":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function te(t,e=Ta()){var i;return((i=jd[t])==null?void 0:i[e])||t}async function bn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Ad(s),s}catch(l){return ce(se.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Ad(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function wn(t={}){const e=pi();if(!e)throw new Error("No token was provided");return t={...t,language:Ta(),include_count:"false"},t.region!==null&&(t.region=t.region||await bn()),await ei(`/titles/browse?api-token=${e}&`+fn(t))}async function Ld(t){return(await wn({related_to_sid:t.sid})).results}const rr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Md=t=>t;function Io(t){const e=t-1;return e*e*e+1}function jo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ti(t,{delay:e=0,duration:i=400,easing:a=Md}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Ca(t,{delay:e=0,duration:i=400,easing:a=Io,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,f]=jo(r),[h,m]=jo(n);return{delay:e,duration:i,easing:a,css:(y,b)=>`
6
6
  transform: ${d} translate(${(1-y)*u}${f}, ${(1-y)*h}${m});
7
7
  opacity: ${s-p*b}`}}function ia(t,{delay:e=0,duration:i=400,easing:a=Io,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),c=+l.opacity,s=l.transform==="none"?"":l.transform,d=1-r,p=c*(1-n);return{delay:e,duration:i,easing:a,css:(u,f)=>`
8
8
  transform: ${s} scale(${1-d*f});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.5.10-beta.1",
3
+ "version": "8.5.10",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
package/src/main.ts CHANGED
@@ -6,7 +6,7 @@ import { isCrawler } from '$lib/crawler'
6
6
  import { getPageTextAndElements } from '$lib/injectionElements'
7
7
  import { isUrlExcludedViaConfig } from '$lib/url'
8
8
 
9
- window.PlayPilotLinkInjections = {
9
+ window.PlayPilotLinkInjections ||= {
10
10
  token: '',
11
11
  editorial_token: '',
12
12
  selector: '',
@@ -37,10 +37,6 @@ window.PlayPilotLinkInjections = {
37
37
  app: null,
38
38
 
39
39
  async initialize(options = { token: '', selector: '', after_article_selector: '', after_article_insert_position: '', language: null, region: null, organization_sid: null, domain_sid: null, editorial_token: '', require_consent: true, no_affiliate: false }): Promise<void> {
40
- if (window.PlayPilotLinkInjections.app) return
41
-
42
- console.log('set')
43
-
44
40
  if (!options.token) {
45
41
  console.error('An API token is required.')
46
42
  return
@@ -83,6 +79,8 @@ window.PlayPilotLinkInjections = {
83
79
 
84
80
  destroy(): void {
85
81
  window.PlayPilotMount?.destroy()
82
+ // @ts-ignore
83
+ delete window.PlayPilotLinkInjections
86
84
  },
87
85
 
88
86
  mount(): void {
@@ -91,8 +89,8 @@ window.PlayPilotLinkInjections = {
91
89
  const script = document.createElement('script')
92
90
 
93
91
  script.id = 'playpilot-mount'
94
- // script.src = `https://cdn.jsdelivr.net/npm/@playpilot/tpi@${__SCRIPT_VERSION__}/dist/${shouldLoadEditorial ? 'editorial.' : ''}mount.js`
95
- script.src = './dist/mount.js' // Use me during development of this script
92
+ script.src = `https://cdn.jsdelivr.net/npm/@playpilot/tpi@${__SCRIPT_VERSION__}/dist/${shouldLoadEditorial ? 'editorial.' : ''}mount.js`
93
+ // script.src = './dist/mount.js' // Use me during development of this script
96
94
 
97
95
  script.onload = () => window.PlayPilotMount?.mount()
98
96
 
@@ -39,6 +39,15 @@ describe('mount.ts', () => {
39
39
 
40
40
  expect(window.PlayPilotLinkInjections.app).toEqual({ some_key: 'Some value' })
41
41
  })
42
+
43
+ it('Should not call mount again if app is already present', () => {
44
+ vi.mocked(mount).mockReturnValue({ some_key: 'Some value' })
45
+
46
+ window.PlayPilotMount.mount()
47
+ window.PlayPilotMount.mount()
48
+
49
+ expect(mount).toBeCalledTimes(1)
50
+ })
42
51
  })
43
52
 
44
53
  describe('destroy', () => {