@playpilot/tpi 8.11.0-beta.1 → 8.11.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var nm=Object.defineProperty;var Ds=Ne=>{throw TypeError(Ne)};var rm=(Ne,Re,We)=
2
2
  /*$vite$:1*/`,document.head.appendChild(Ne);const Re=!1;var We=Array.isArray,rn=Array.prototype.indexOf,Qn=Array.from,Hs=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,gl=Object.getOwnPropertyDescriptors,Vs=Object.prototype,Ws=Array.prototype,Xn=Object.getPrototypeOf,ml=Object.isExtensible;function Xi(t){return typeof t=="function"}const xt=()=>{};function Us(t){return typeof(t==null?void 0:t.then)=="function"}function Gs(t){return t()}function $n(t){for(var e=0;e<t.length;e++)t[e]()}function yl(){var t,e,i=new Promise((a,n)=>{t=a,e=n});return{promise:i,resolve:t,reject:e}}function ln(t,e,i=!1){return t===void 0?i?e():e:t}function $i(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const nt=2,er=4,on=8,bl=1<<24,Ht=16,li=32,Ai=64,sn=128,At=512,lt=1024,vt=2048,oi=4096,gt=8192,si=16384,cn=32768,Vt=65536,_l=1<<17,tr=1<<18,ea=1<<19,xl=1<<20,Pa=32768,ir=1<<21,ar=1<<22,bi=1<<23,Wt=Symbol("$state"),wl=Symbol("legacy props"),Ks=Symbol(""),ta=new class extends Error{constructor(){super(...arguments);Ft(this,"name","StaleReactionError");Ft(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function nr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ys(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Js(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Xs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $s(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ec(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function tc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ic(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ac(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const kl=1,Sl=2,Tl=4,nc=8,rc=16,lc=1,oc=2,sc=4,cc=8,dc=16,uc=1,vc=2,pc=4,fc=1,hc=2,tt=Symbol(),gc="http://www.w3.org/1999/xhtml",mc="http://www.w3.org/2000/svg",yc="@attach";function bc(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function _c(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function El(t){return t===this.v}function Pl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Cl(t){return!Pl(t,this.v)}let ia=!1,xc=!1;function wc(){ia=!0}let qe=null;function aa(t){qe=t}function rr(t){return Il().get(t)}function lr(t,e){return Il().set(t,e),e}function le(t,e=!1,i){qe={p:qe,i:!1,c:null,e:null,s:t,x:null,l:ia&&!e?{s:null,u:null,$:[]}:null}}function oe(t){var e=qe,i=e.e;if(i!==null){e.e=null;for(var a of i)eo(a)}return t!==void 0&&(e.x=t),e.i=!0,qe=e.p,t??{}}function Li(){return!ia||qe!==null&&qe.l===null}function Il(t){return qe===null&&nr(),qe.c??(qe.c=new Map(kc(qe)||void 0))}function kc(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Mi=[];function jl(){var t=Mi;Mi=[],$n(t)}function ci(t){if(Mi.length===0&&!ra){var e=Mi;queueMicrotask(()=>{e===Mi&&jl()})}Mi.push(t)}function Sc(){for(;Mi.length>0;)jl()}function zl(t){var e=Ie;if(e===null)return Pe.f|=bi,t;if(e.f&cn)na(t,e);else{if(!(e.f&sn))throw t;e.b.error(t)}}function na(t,e){for(;e!==null;){if(e.f&sn)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const dn=new Set;let Se=null,Ca=null,Ke=null,wt=[],un=null,or=!1,ra=!1;const Fn=class Fn{constructor(){be(this,$e);Ft(this,"committed",!1);Ft(this,"current",new Map);Ft(this,"previous",new Map);be(this,_a,new Set);be(this,xa,new Set);be(this,Ui,0);be(this,Gi,0);be(this,Ja,null);be(this,wa,[]);be(this,ka,[]);Ft(this,"skipped_effects",new Set);Ft(this,"is_fork",!1)}is_deferred(){return this.is_fork||H(this,Gi)>0}process(e){var a;wt=[],Ca=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of e)Be(this,$e,vl).call(this,n,i);this.is_fork||Be(this,$e,Ns).call(this),this.is_deferred()?(Be(this,$e,Qi).call(this,i.effects),Be(this,$e,Qi).call(this,i.render_effects),Be(this,$e,Qi).call(this,i.block_effects)):(Ca=this,Se=null,Ml(i.render_effects),Ml(i.effects),Ca=null,(a=H(this,Ja))==null||a.resolve()),Ke=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&bi||(this.current.set(e,e.v),Ke==null||Ke.set(e,e.v))}activate(){Se=this,this.apply()}deactivate(){Se===this&&(Se=null,Ke=null)}flush(){if(this.activate(),wt.length>0){if(Ll(),Se!==null&&Se!==this)return}else H(this,Ui)===0&&this.process([]);this.deactivate()}discard(){for(const e of H(this,xa))e(this);H(this,xa).clear()}increment(e){ge(this,Ui,H(this,Ui)+1),e&&ge(this,Gi,H(this,Gi)+1)}decrement(e){ge(this,Ui,H(this,Ui)-1),e&&ge(this,Gi,H(this,Gi)-1),this.revive()}revive(){for(const e of H(this,wa))ot(e,vt),qi(e);for(const e of H(this,ka))ot(e,oi),qi(e);ge(this,wa,[]),ge(this,ka,[]),this.flush()}oncommit(e){H(this,_a).add(e)}ondiscard(e){H(this,xa).add(e)}settled(){return(H(this,Ja)??ge(this,Ja,yl())).promise}static ensure(){if(Se===null){const e=Se=new Fn;dn.add(Se),ra||Fn.enqueue(()=>{Se===e&&e.flush()})}return Se}static enqueue(e){ci(e)}apply(){}};_a=new WeakMap,xa=new WeakMap,Ui=new WeakMap,Gi=new WeakMap,Ja=new WeakMap,wa=new WeakMap,ka=new WeakMap,$e=new WeakSet,vl=function(e,i){var u;e.f^=lt;for(var a=e.first;a!==null;){var n=a.f,r=(n&(li|Ai))!==0,o=r&&(n&lt)!==0,s=o||(n&gt)!==0||this.skipped_effects.has(a);if(a.f&sn&&((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&er?i.effects.push(a):qa(a)&&(a.f&Ht&&i.block_effects.push(a),Da(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&&(Be(this,$e,Qi).call(this,i.effects),Be(this,$e,Qi).call(this,i.render_effects),Be(this,$e,Qi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Qi=function(e){for(const i of e)(i.f&vt?H(this,wa):H(this,ka)).push(i),Be(this,$e,pl).call(this,i.deps),ot(i,lt)},pl=function(e){if(e!==null)for(const i of e)!(i.f&nt)||!(i.f&Pa)||(i.f^=Pa,Be(this,$e,pl).call(this,i.deps))},Ns=function(){if(H(this,Gi)===0){for(const e of H(this,_a))e();H(this,_a).clear()}H(this,Ui)===0&&Be(this,$e,Rs).call(this)},Rs=function(){var r;if(dn.size>1){this.previous.clear();var e=Ke,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const o of dn){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=wt;wt=[];const d=new Set,u=new Map;for(const v of s)ql(v,c,d,u);if(wt.length>0){Se=o,o.apply();for(const v of wt)Be(r=o,$e,vl).call(r,v,a);o.deactivate()}wt=n}}Se=null,Ke=e}this.committed=!0,dn.delete(this)};let Ut=Fn;function Al(t){var e=ra;ra=!0;try{for(var i;;){if(Sc(),wt.length===0&&(Se==null||Se.flush(),wt.length===0))return un=null,i;Ll()}}finally{ra=e}}function Ll(){var t=ki;or=!0;var e=null;try{var i=0;for(pn(!0);wt.length>0;){var a=Ut.ensure();if(i++>1e3){var n,r;Tc()}a.process(wt),_i.clear()}}finally{or=!1,pn(t),un=null}}function Tc(){try{Xs()}catch(t){na(t,un)}}let Lt=null;function Ml(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(si|gt))&&qa(a)&&(Lt=new Set,Da(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?ro(a):a.fn=null),(Lt==null?void 0:Lt.size)>0)){_i.clear();for(const n of Lt){if(n.f&(si|gt))continue;const r=[n];let o=n.parent;for(;o!==null;)Lt.has(o)&&(Lt.delete(o),r.push(o)),o=o.parent;for(let s=r.length-1;s>=0;s--){const c=r[s];c.f&(si|gt)||Da(c)}}Lt.clear()}}Lt=null}}function ql(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const r=n.f;r&nt?ql(n,e,i,a):r&(ar|Ht)&&!(r&vt)&&Dl(n,e,a)&&(ot(n,vt),qi(n))}}function Dl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if(n.f&nt&&Dl(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function qi(t){for(var e=un=t;e.parent!==null;){e=e.parent;var i=e.f;if(or&&e===Ie&&i&Ht&&!(i&tr))return;if(i&(Ai|li)){if(!(i&lt))return;e.f^=lt}}wt.push(e)}function Nl(t){let e=0,i=Kt(0),a;return()=>{Aa()&&(l(i),vn(()=>(e===0&&(a=St(()=>t(()=>xi(i)))),e+=1,()=>{ci(()=>{e-=1,e===0&&(a==null||a(),a=void 0,xi(i))})})))}}var Ec=Vt|ea|sn;function Rl(t,e,i){new Pc(t,e,i)}class Pc{constructor(e,i,a){be(this,it);Ft(this,"parent");be(this,Ct,!1);be(this,It);be(this,dl,null);be(this,ei);be(this,Ki);be(this,ti);be(this,jt,null);be(this,ht,null);be(this,ii,null);be(this,mi,null);be(this,Pi,null);be(this,Yi,0);be(this,Ci,0);be(this,Zi,!1);be(this,Ii,null);be(this,Hn,Nl(()=>(ge(this,Ii,Kt(H(this,Yi))),()=>{ge(this,Ii,null)})));ge(this,It,e),ge(this,ei,i),ge(this,Ki,a),this.parent=Ie.b,ge(this,Ct,!!H(this,ei).pending),ge(this,ti,ui(()=>{Ie.b=this;{var n=Be(this,it,fl).call(this);try{ge(this,jt,pt(()=>a(n)))}catch(r){this.error(r)}H(this,Ci)>0?Be(this,it,Jn).call(this):ge(this,Ct,!1)}return()=>{var r;(r=H(this,Pi))==null||r.remove()}},Ec))}is_pending(){return H(this,Ct)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!H(this,ei).pending}update_pending_count(e){Be(this,it,hl).call(this,e),ge(this,Yi,H(this,Yi)+e),H(this,Ii)&&di(H(this,Ii),H(this,Yi))}get_effect_pending(){return H(this,Hn).call(this),l(H(this,Ii))}error(e){var i=H(this,ei).onerror;let a=H(this,ei).failed;if(H(this,Zi)||!i&&!a)throw e;H(this,jt)&&(rt(H(this,jt)),ge(this,jt,null)),H(this,ht)&&(rt(H(this,ht)),ge(this,ht,null)),H(this,ii)&&(rt(H(this,ii)),ge(this,ii,null));var n=!1,r=!1;const o=()=>{if(n){_c();return}n=!0,r&&ac(),Ut.ensure(),ge(this,Yi,0),H(this,ii)!==null&&la(H(this,ii),()=>{ge(this,ii,null)}),ge(this,Ct,this.has_pending_snippet()),ge(this,jt,Be(this,it,Zn).call(this,()=>(ge(this,Zi,!1),pt(()=>H(this,Ki).call(this,H(this,It)))))),H(this,Ci)>0?Be(this,it,Jn).call(this):ge(this,Ct,!1)};var s=Pe;try{ft(null),r=!0,i==null||i(e,o),r=!1}catch(c){na(c,H(this,ti)&&H(this,ti).parent)}finally{ft(s)}a&&ci(()=>{ge(this,ii,Be(this,it,Zn).call(this,()=>{Ut.ensure(),ge(this,Zi,!0);try{return pt(()=>{a(H(this,It),()=>e,()=>o)})}catch(c){return na(c,H(this,ti).parent),null}finally{ge(this,Zi,!1)}}))})}}Ct=new WeakMap,It=new WeakMap,dl=new WeakMap,ei=new WeakMap,Ki=new WeakMap,ti=new WeakMap,jt=new WeakMap,ht=new WeakMap,ii=new WeakMap,mi=new WeakMap,Pi=new WeakMap,Yi=new WeakMap,Ci=new WeakMap,Zi=new WeakMap,Ii=new WeakMap,Hn=new WeakMap,it=new WeakSet,lm=function(){try{ge(this,jt,pt(()=>H(this,Ki).call(this,H(this,It))))}catch(e){this.error(e)}ge(this,Ct,!1)},om=function(){const e=H(this,ei).pending;e&&(ge(this,ht,pt(()=>e(H(this,It)))),Ut.enqueue(()=>{var i=Be(this,it,fl).call(this);ge(this,jt,Be(this,it,Zn).call(this,()=>(Ut.ensure(),pt(()=>H(this,Ki).call(this,i))))),H(this,Ci)>0?Be(this,it,Jn).call(this):(la(H(this,ht),()=>{ge(this,ht,null)}),ge(this,Ct,!1))}))},fl=function(){var e=H(this,It);return H(this,Ct)&&(ge(this,Pi,Mt()),H(this,It).before(H(this,Pi)),e=H(this,Pi)),e},Zn=function(e){var i=Ie,a=Pe,n=qe;Jt(H(this,ti)),ft(H(this,ti)),aa(H(this,ti).ctx);try{return e()}catch(r){return zl(r),null}finally{Jt(i),ft(a),aa(n)}},Jn=function(){const e=H(this,ei).pending;H(this,jt)!==null&&(ge(this,mi,document.createDocumentFragment()),H(this,mi).append(H(this,Pi)),so(H(this,jt),H(this,mi))),H(this,ht)===null&&ge(this,ht,pt(()=>e(H(this,It))))},hl=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Be(i=this.parent,it,hl).call(i,e);return}ge(this,Ci,H(this,Ci)+e),H(this,Ci)===0&&(ge(this,Ct,!1),H(this,ht)&&la(H(this,ht),()=>{ge(this,ht,null)}),H(this,mi)&&(H(this,It).before(H(this,mi)),ge(this,mi,null)))};let Di=null;function Ol(t){Di=t}function De(t,e){return e}function Cc(t,e,i){for(var a=[],n=e.length,r=0;r<n;r++)pr(e[r].e,a,!0);lo(a,()=>{var o=a.length===0&&i!==null;if(o){var s=i,c=s.parentNode;Dc(c),c.append(s),t.items.clear(),Gt(t,e[0].prev,e[n-1].next)}for(var d=0;d<n;d++){var u=e[d];o||(t.items.delete(u.k),Gt(t,u.prev,u.next)),rt(u.e,!o)}t.first===e[0]&&(t.first=e[0].prev)})}function ze(t,e,i,a,n,r=null){var o=t,s=new Map,c=null,d=(e&Tl)!==0,u=(e&kl)!==0,v=(e&Sl)!==0;if(d){var p=t;o=p.appendChild(Mt())}var f=null,b=cr(()=>{var C=i();return We(C)?C:C==null?[]:Qn(C)}),h,_=!0;function y(){Ic(w,h,o,e,a),f!==null&&(h.length===0?(f.fragment?(o.before(f.fragment),f.fragment=null):fr(f.effect),k.first=f.effect):la(f.effect,()=>{f=null}))}var k=ui(()=>{h=l(b);for(var C=h.length,A=new Set,I=Se,T=null,O=Jl(),L=0;L<C;L+=1){var j=h[L],E=a(j,L),z=_?null:s.get(E);z?(u&&di(z.v,j),v?di(z.i,L):z.i=L,O&&I.skipped_effects.delete(z.e)):(z=jc(_?o:null,T,j,E,L,n,e,i),_&&(z.o=!0,T===null?c=z:T.next=z,T=z),s.set(E,z)),A.add(E)}if(C===0&&r&&!f)if(_)f={fragment:null,effect:pt(()=>r(o))};else{var R=document.createDocumentFragment(),N=Mt();R.append(N),f={fragment:R,effect:pt(()=>r(N))}}if(!_)if(O){for(const[U,X]of s)A.has(U)||I.skipped_effects.add(X.e);I.oncommit(y),I.ondiscard(()=>{})}else y();l(b)}),w={effect:k,flags:e,items:s,first:c};_=!1}function Ic(t,e,i,a,n){var j,E,z,R;var r=(a&nc)!==0,o=e.length,s=t.items,c=t.first,d,u=null,v,p=[],f=[],b,h,_,y;if(r)for(y=0;y<o;y+=1)b=e[y],h=n(b,y),_=s.get(h),_.o&&((j=_.a)==null||j.measure(),(v??(v=new Set)).add(_));for(y=0;y<o;y+=1){if(b=e[y],h=n(b,y),_=s.get(h),t.first??(t.first=_),!_.o){_.o=!0;var k=u?u.next:c;Gt(t,u,_),Gt(t,_,k),sr(_,k,i),u=_,p=[],f=[],c=u.next;continue}if(_.e.f&gt&&(fr(_.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 A=p[0],I=p[p.length-1];for(C=0;C<p.length;C+=1)sr(p[C],w,i);for(C=0;C<f.length;C+=1)d.delete(f[C]);Gt(t,A.prev,I.next),Gt(t,u,A),Gt(t,I,w),c=w,u=I,y-=1,p=[],f=[]}else d.delete(_),sr(_,c,i),Gt(t,_.prev,_.next),Gt(t,_,u===null?t.first:u.next),Gt(t,u,_),u=_;continue}for(p=[],f=[];c!==null&&c.k!==h;)c.e.f&gt||(d??(d=new Set)).add(c),f.push(c),c=c.next;if(c===null)continue;_=c}p.push(_),u=_,c=_.next}if(c!==null||d!==void 0){for(var T=d===void 0?[]:Qn(d);c!==null;)c.e.f&gt||T.push(c),c=c.next;var O=T.length;if(O>0){var L=a&Tl&&o===0?i:null;if(r){for(y=0;y<O;y+=1)(z=T[y].a)==null||z.measure();for(y=0;y<O;y+=1)(R=T[y].a)==null||R.fix()}Cc(t,T,L)}}r&&ci(()=>{var N;if(v!==void 0)for(_ of v)(N=_.a)==null||N.apply()})}function jc(t,e,i,a,n,r,o,s){var c=Di,d=(o&kl)!==0,u=(o&rc)===0,v=d?u?vr(i,!1,!1):Kt(i):i,p=o&Sl?Kt(n):n,f={i:p,v,k:a,a:null,e:null,o:!1,prev:e,next:null};Di=f;try{if(t===null){var b=document.createDocumentFragment();b.append(t=Mt())}return f.e=pt(()=>r(t,v,p,s)),e!==null&&(e.next=f),f}finally{Di=c}}function sr(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=za(r);n.before(r),r=o}}function Gt(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function Bl(t,e,i,a){const n=Li()?ja:cr;if(i.length===0&&t.length===0){a(e.map(n));return}var r=Se,o=Ie,s=Fl();function c(){Promise.all(i.map(d=>zc(d))).then(d=>{s();try{a([...e.map(n),...d])}catch(u){o.f&si||na(u,o)}r==null||r.deactivate(),Ia()}).catch(d=>{na(d,o)})}t.length>0?Promise.all(t).then(()=>{s();try{return c()}finally{r==null||r.deactivate(),Ia()}}):c()}function Fl(){var t=Ie,e=Pe,i=qe,a=Se;return function(r=!0){Jt(t),ft(e),aa(i),r&&(a==null||a.activate())}}function Ia(){Jt(null),ft(null),aa(null)}function ja(t){var e=nt|vt,i=Pe!==null&&Pe.f&nt?Pe:null;return Ie!==null&&(Ie.f|=ea),{ctx:qe,deps:null,effects:null,equals:El,f:e,fn:t,reactions:null,rv:0,v:tt,wv:0,parent:i??Ie,ac:null}}function zc(t,e){let i=Ie;i===null&&Ys();var a=i.b,n=void 0,r=Kt(tt),o=!Pe,s=new Map;return Vc(()=>{var p;var c=yl();n=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{d===Se&&d.committed&&d.deactivate(),Ia()})}catch(f){c.reject(f),Ia()}var d=Se;if(o){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(p=s.get(d))==null||p.reject(ta),s.delete(d),s.set(d,c)}const v=(f,b=void 0)=>{if(d.activate(),b)b!==ta&&(r.f|=bi,di(r,b));else{r.f&bi&&(r.f^=bi),di(r,f);for(const[h,_]of s){if(s.delete(h),h===d)break;_.reject(ta)}}o&&(a.update_pending_count(-1),d.decrement(u))};c.promise.then(v,f=>v(null,f||"unknown"))}),La(()=>{for(const c of s.values())c.reject(ta)}),new Promise(c=>{function d(u){function v(){u===n?c(r):d(n)}u.then(v,v)}d(n)})}function W(t){const e=ja(t);return uo(e),e}function cr(t){const e=ja(t);return e.equals=Cl,e}function Hl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)rt(e[i])}}function Ac(t){for(var e=t.parent;e!==null;){if(!(e.f&nt))return e.f&si?null:e;e=e.parent}return null}function dr(t){var e,i=Ie;Jt(Ac(t));try{t.f&=~Pa,Hl(t),e=go(t)}finally{Jt(i)}return e}function Vl(t){var e=dr(t);if(t.equals(e)||(Se!=null&&Se.is_fork||(t.v=e),t.wv=fo()),!Ri)if(Ke!==null)(Aa()||Se!=null&&Se.is_fork)&&Ke.set(t,e);else{var i=t.f&At?lt:oi;ot(t,i)}}let ur=new Set;const _i=new Map;let Wl=!1;function Kt(t,e){var i={f:0,v:t,reactions:null,equals:El,rv:0,wv:0};return i}function G(t,e){const i=Kt(t);return uo(i),i}function vr(t,e=!1,i=!0){var n;const a=Kt(t);return e||(a.equals=Cl),ia&&i&&qe!==null&&qe.l!==null&&((n=qe.l).s??(n.s=[])).push(a),a}function M(t,e,i=!1){Pe!==null&&(!Zt||Pe.f&_l)&&Li()&&Pe.f&(nt|Ht|ar|_l)&&!(ct!=null&&ct.includes(t))&&ic();let a=i?Fe(e):e;return di(t,a)}function di(t,e){if(!t.equals(e)){var i=t.v;Ri?_i.set(t,e):_i.set(t,i),t.v=e;var a=Ut.ensure();a.capture(t,i),t.f&nt&&(t.f&vt&&dr(t),ot(t,t.f&At?lt:oi)),t.wv=fo(),Ul(t,vt),Li()&&Ie!==null&&Ie.f&lt&&!(Ie.f&(li|Ai))&&(kt===null?Uc([t]):kt.push(t)),!a.is_fork&&ur.size>0&&!Wl&&Lc()}return e}function Lc(){Wl=!1;var t=ki;pn(!0);const e=Array.from(ur);try{for(const i of e)i.f&lt&&ot(i,oi),qa(i)&&Da(i)}finally{pn(t)}ur.clear()}function xi(t){M(t,t.v+1)}function Ul(t,e){var i=t.reactions;if(i!==null)for(var a=Li(),n=i.length,r=0;r<n;r++){var o=i[r],s=o.f;if(!(!a&&o===Ie)){var c=(s&vt)===0;if(c&&ot(o,e),s&nt){var d=o;Ke==null||Ke.delete(d),s&Pa||(s&At&&(o.f|=Pa),Ul(d,oi))}else c&&(s&Ht&&Lt!==null&&Lt.add(o),qi(o))}}}function Fe(t){if(typeof t!="object"||t===null||Wt in t)return t;const e=Xn(t);if(e!==Vs&&e!==Ws)return t;var i=new Map,a=We(t),n=G(0),r=vi,o=s=>{if(vi===r)return s();var c=Pe,d=vi;ft(null),po(r);var u=s();return ft(c),po(d),u};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&ec();var u=i.get(c);return u===void 0?u=o(()=>{var v=G(d.value);return i.set(c,v),v}):M(u,d.value,!0),!0},deleteProperty(s,c){var d=i.get(c);if(d===void 0){if(c in s){const u=o(()=>G(tt));i.set(c,u),xi(n)}}else M(d,tt),xi(n);return!0},get(s,c,d){var f;if(c===Wt)return t;var u=i.get(c),v=c in s;if(u===void 0&&(!v||(f=yi(s,c))!=null&&f.writable)&&(u=o(()=>{var b=Fe(v?s[c]:tt),h=G(b);return h}),i.set(c,u)),u!==void 0){var p=l(u);return p===tt?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!==tt)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(s,c){var p;if(c===Wt)return!0;var d=i.get(c),u=d!==void 0&&d.v!==tt||Reflect.has(s,c);if(d!==void 0||Ie!==null&&(!u||(p=yi(s,c))!=null&&p.writable)){d===void 0&&(d=o(()=>{var f=u?Fe(s[c]):tt,b=G(f);return b}),i.set(c,d));var v=l(d);if(v===tt)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?M(b,tt):f in s&&(b=o(()=>G(tt)),i.set(f+"",b))}if(v===void 0)(!p||(w=yi(s,c))!=null&&w.writable)&&(v=o(()=>G(void 0)),M(v,Fe(d)),i.set(c,v));else{p=v.v!==tt;var h=o(()=>Fe(d));M(v,h)}var _=Reflect.getOwnPropertyDescriptor(s,c);if(_!=null&&_.set&&_.set.call(u,d),!p){if(a&&typeof c=="string"){var y=i.get("length"),k=Number(c);Number.isInteger(k)&&k>=y.v&&M(y,k+1)}xi(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!==tt});for(var[d,u]of i)u.v!==tt&&!(d in s)&&c.push(d);return c},setPrototypeOf(){tc()}})}function Gl(t){try{if(t!==null&&typeof t=="object"&&Wt in t)return t[Wt]}catch{}return t}function Mc(t,e){return Object.is(Gl(t),Gl(e))}var Te,Kl,Yl,Zl;function qc(){if(Te===void 0){Te=window,Kl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Yl=yi(e,"firstChild").get,Zl=yi(e,"nextSibling").get,ml(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),ml(i)&&(i.__t=void 0)}}function Mt(t=""){return document.createTextNode(t)}function Yt(t){return Yl.call(t)}function za(t){return Zl.call(t)}function x(t,e){return Yt(t)}function Q(t,e=!1){{var i=Yt(t);return i instanceof Comment&&i.data===""?za(i):i}}function S(t,e=1,i=!1){let a=t;for(;e--;)a=za(a);return a}function Dc(t){t.textContent=""}function Jl(){return!1}function Nc(t,e){if(e){const i=document.body;t.autofocus=!0,ci(()=>{document.activeElement===i&&t.focus()})}}let Ql=!1;function Rc(){Ql||(Ql=!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 Oc(t,e,i,a=!0){a&&i();for(var n of e)t.addEventListener(n,i);La(()=>{for(var r of e)t.removeEventListener(r,i)})}function Ni(t){var e=Pe,i=Ie;ft(null),Jt(null);try{return t()}finally{ft(e),Jt(i)}}function Xl(t,e,i,a=i){t.addEventListener(e,()=>Ni(i));const n=t.__on_r;n?t.__on_r=()=>{n(),a(!0)}:t.__on_r=()=>a(!0),Rc()}function $l(t){Ie===null&&(Pe===null&&Qs(),Js()),Ri&&Zs()}function Bc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function qt(t,e,i){var a=Ie;a!==null&&a.f&gt&&(t|=gt);var n={ctx:qe,deps:null,nodes_start:null,nodes_end:null,f:t|vt|At,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{Da(n),n.f|=cn}catch(s){throw rt(n),s}else e!==null&&qi(n);var r=n;if(i&&r.deps===null&&r.teardown===null&&r.nodes_start===null&&r.first===r.last&&!(r.f&ea)&&(r=r.first,t&Ht&&t&Vt&&r!==null&&(r.f|=Vt)),r!==null&&(r.parent=a,a!==null&&Bc(r,a),Pe!==null&&Pe.f&nt&&!(t&Ai))){var o=Pe;(o.effects??(o.effects=[])).push(r)}return n}function Aa(){return Pe!==null&&!Zt}function La(t){const e=qt(on,null,!1);return ot(e,lt),e.teardown=t,e}function Ue(t){$l();var e=Ie.f,i=!Pe&&(e&li)!==0&&(e&cn)===0;if(i){var a=qe;(a.e??(a.e=[])).push(t)}else return eo(t)}function eo(t){return qt(er|xl,t,!1)}function Fc(t){return $l(),qt(on|xl,t,!0)}function Hc(t){Ut.ensure();const e=qt(Ai|ea,t,!0);return(i={})=>new Promise(a=>{i.outro?la(e,()=>{rt(e),a(void 0)}):(rt(e),a(void 0))})}function wi(t){return qt(er,t,!1)}function Vc(t){return qt(ar|ea,t,!0)}function vn(t,e=0){return qt(on|e,t,!0)}function V(t,e=[],i=[],a=[]){Bl(a,e,i,n=>{qt(on,()=>t(...n.map(l)),!0)})}function ui(t,e=0){var i=qt(Ht|e,t,!0);return i}function to(t,e=0){var i=qt(bl|e,t,!0);return i}function pt(t){return qt(li|ea,t,!0)}function io(t){var e=t.teardown;if(e!==null){const i=Ri,a=Pe;co(!0),ft(null);try{e.call(null)}finally{co(i),ft(a)}}}function ao(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Ni(()=>{n.abort(ta)});var a=i.next;i.f&Ai?i.parent=null:rt(i,e),i=a}}function Wc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&li||rt(e),e=i}}function rt(t,e=!0){var i=!1;(e||t.f&tr)&&t.nodes_start!==null&&t.nodes_end!==null&&(no(t.nodes_start,t.nodes_end),i=!0),ao(t,e&&!i),fn(t,0),ot(t,si);var a=t.transitions;if(a!==null)for(const r of a)r.stop();io(t);var n=t.parent;n!==null&&n.first!==null&&ro(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function no(t,e){for(;t!==null;){var i=t===e?null:za(t);t.remove(),t=i}}function ro(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function la(t,e,i=!0){var a=[];pr(t,a,!0),lo(a,()=>{i&&rt(t),e&&e()})}function lo(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var n of t)n.out(a)}else e()}function pr(t,e,i){if(!(t.f&gt)){if(t.f^=gt,t.transitions!==null)for(const o of t.transitions)(o.is_global||i)&&e.push(o);for(var a=t.first;a!==null;){var n=a.next,r=(a.f&Vt)!==0||(a.f&li)!==0&&(t.f&Ht)!==0;pr(a,e,r?i:!1),a=n}}}function fr(t){oo(t,!0)}function oo(t,e){if(t.f&gt){t.f^=gt,t.f&lt||(ot(t,vt),qi(t));for(var i=t.first;i!==null;){var a=i.next,n=(i.f&Vt)!==0||(i.f&li)!==0;oo(i,n?e:!1),i=a}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}function so(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var n=i===a?null:za(i);e.append(i),i=n}}let ki=!1;function pn(t){ki=t}let Ri=!1;function co(t){Ri=t}let Pe=null,Zt=!1;function ft(t){Pe=t}let Ie=null;function Jt(t){Ie=t}let ct=null;function uo(t){Pe!==null&&(ct===null?ct=[t]:ct.push(t))}let dt=null,mt=0,kt=null;function Uc(t){kt=t}let vo=1,Ma=0,vi=Ma;function po(t){vi=t}function fo(){return++vo}function qa(t){var e=t.f;if(e&vt)return!0;if(e&nt&&(t.f&=-32769),e&oi){var i=t.deps;if(i!==null)for(var a=i.length,n=0;n<a;n++){var r=i[n];if(qa(r)&&Vl(r),r.wv>t.wv)return!0}e&At&&Ke===null&&ot(t,lt)}return!1}function ho(t,e,i=!0){var a=t.reactions;if(a!==null&&!(ct!=null&&ct.includes(t)))for(var n=0;n<a.length;n++){var r=a[n];r.f&nt?ho(r,e,!1):e===r&&(i?ot(r,vt):r.f&lt&&ot(r,oi),qi(r))}}function go(t){var b;var e=dt,i=mt,a=kt,n=Pe,r=ct,o=qe,s=Zt,c=vi,d=t.f;dt=null,mt=0,kt=null,Pe=d&(li|Ai)?null:t,ct=null,aa(t.ctx),Zt=!1,vi=++Ma,t.ac!==null&&(Ni(()=>{t.ac.abort(ta)}),t.ac=null);try{t.f|=ir;var u=t.fn,v=u(),p=t.deps;if(dt!==null){var f;if(fn(t,mt),p!==null&&mt>0)for(p.length=mt+dt.length,f=0;f<dt.length;f++)p[mt+f]=dt[f];else t.deps=p=dt;if(ki&&Aa()&&t.f&At)for(f=mt;f<p.length;f++)((b=p[f]).reactions??(b.reactions=[])).push(t)}else p!==null&&mt<p.length&&(fn(t,mt),p.length=mt);if(Li()&&kt!==null&&!Zt&&p!==null&&!(t.f&(nt|oi|vt)))for(f=0;f<kt.length;f++)ho(kt[f],t);return n!==null&&n!==t&&(Ma++,kt!==null&&(a===null?a=kt:a.push(...kt))),t.f&bi&&(t.f^=bi),v}catch(h){return zl(h)}finally{t.f^=ir,dt=e,mt=i,kt=a,Pe=n,ct=r,aa(o),Zt=s,vi=c}}function Gc(t,e){let i=e.reactions;if(i!==null){var a=rn.call(i,t);if(a!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[a]=i[n],i.pop())}}i===null&&e.f&nt&&(dt===null||!dt.includes(e))&&(ot(e,oi),e.f&At&&(e.f^=At,e.f&=-32769),Hl(e),fn(e,0))}function fn(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)Gc(t,i[a])}function Da(t){var e=t.f;if(!(e&si)){ot(t,lt);var i=Ie,a=ki;Ie=t,ki=!0;try{e&(Ht|bl)?Wc(t):ao(t),io(t);var n=go(t);t.teardown=typeof n=="function"?n:null,t.wv=vo;var r;Re&&xc&&t.f&vt&&t.deps}finally{ki=a,Ie=i}}}async function Na(){await Promise.resolve(),Al()}function l(t){var e=t.f,i=(e&nt)!==0;if(Pe!==null&&!Zt){var a=Ie!==null&&(Ie.f&si)!==0;if(!a&&!(ct!=null&&ct.includes(t))){var n=Pe.deps;if(Pe.f&ir)t.rv<Ma&&(t.rv=Ma,dt===null&&n!==null&&n[mt]===t?mt++:dt===null?dt=[t]:dt.includes(t)||dt.push(t));else{(Pe.deps??(Pe.deps=[])).push(t);var r=t.reactions;r===null?t.reactions=[Pe]:r.includes(Pe)||r.push(Pe)}}}if(Ri){if(_i.has(t))return _i.get(t);if(i){var o=t,s=o.v;return(!(o.f&lt)&&o.reactions!==null||yo(o))&&(s=dr(o)),_i.set(o,s),s}}else i&&(!(Ke!=null&&Ke.has(t))||Se!=null&&Se.is_fork&&!Aa())&&(o=t,qa(o)&&Vl(o),ki&&Aa()&&!(o.f&At)&&mo(o));if(Ke!=null&&Ke.has(t))return Ke.get(t);if(t.f&bi)throw t.v;return t.v}function mo(t){if(t.deps!==null){t.f^=At;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&nt&&!(e.f&At)&&mo(e)}}function yo(t){if(t.v===tt)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(_i.has(e)||e.f&nt&&yo(e))return!0;return!1}function St(t){var e=Zt;try{return Zt=!0,t()}finally{Zt=e}}const Kc=-7169;function ot(t,e){t.f=t.f&Kc|e}function bo(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Wt in t)hr(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&Wt in i&&hr(i)}}}function hr(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{hr(t[a],e)}catch{}const i=Xn(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=gl(i);for(let n in a){const r=a[n].get;if(r)try{r.call(t)}catch{}}}}}function Yc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Zc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Jc(t){return Zc.includes(t)}const Qc={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(),Qc[t]??t}const $c=["touchstart","touchmove"];function ed(t){return $c.includes(t)}const _o=new Set,gr=new Set;function mr(t,e,i,a={}){function n(r){if(a.capture||Ra.call(e,r),!r.cancelBubble)return Ni(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ci(()=>{e.addEventListener(t,n,a)}):e.addEventListener(t,n,a),n}function td(t,e,i,a={}){var n=mr(e,t,i,a);return()=>{t.removeEventListener(e,n,a)}}function fe(t,e,i,a,n){var r={capture:a,passive:n},o=mr(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&La(()=>{e.removeEventListener(t,o,r)})}function _e(t){for(var e=0;e<t.length;e++)_o.add(t[e]);for(var i of gr)i(t)}let xo=null;function Ra(t){var _;var e=this,i=e.ownerDocument,a=t.type,n=((_=t.composedPath)==null?void 0:_.call(t))||[],r=n[0]||t.target;xo=t;var o=0,s=xo===t&&t.__root;if(s){var c=n.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=n.indexOf(e);if(d===-1)return;c<=d&&(o=c)}if(r=n[o]||t.target,r!==e){Hs(t,"currentTarget",{configurable:!0,get(){return r||i}});var u=Pe,v=Ie;ft(null),Jt(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(y){p?f.push(y):p=y}if(t.cancelBubble||b===e||b===null)break;r=b}if(p){for(let y of f)queueMicrotask(()=>{throw y});throw p}}finally{t.__root=e,delete t.currentTarget,ft(u),Jt(v)}}}function yr(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Oi(t,e){var i=Ie;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function P(t,e){var i=(e&fc)!==0,a=(e&hc)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=yr(r?t:"<!>"+t),i||(n=Yt(n)));var o=a||Kl?document.importNode(n,!0):n.cloneNode(!0);if(i){var s=Yt(o),c=o.lastChild;Oi(s,c)}else Oi(o,o);return o}}function id(t,e,i="svg"){var a=!t.startsWith("<!>"),n=`<${i}>${a?t:"<!>"+t}</${i}>`,r;return()=>{if(!r){var o=yr(n),s=Yt(o);r=Yt(s)}var c=r.cloneNode(!0);return Oi(c,c),c}}function Oe(t,e){return id(t,e,"svg")}function Ye(t=""){{var e=Mt(t+"");return Oi(e,e),e}}function he(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Mt();return t.append(e,i),Oi(e,i),t}function m(t,e){t!==null&&t.before(e)}let hn=!0;function gn(t){hn=t}function J(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 Dt(t,e){return ad(t,e)}const oa=new Map;function ad(t,{target:e,anchor:i,props:a={},events:n,context:r,intro:o=!0}){qc();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=ed(f);e.addEventListener(f,Ra,{passive:b});var h=oa.get(f);h===void 0?(document.addEventListener(f,Ra,{passive:b}),oa.set(f,1)):oa.set(f,h+1)}}};c(Qn(_o)),gr.add(c);var d=void 0,u=Hc(()=>{var v=i??e.appendChild(Mt());return Rl(v,{pending:()=>{}},p=>{if(r){le({});var f=qe;f.c=r}n&&(a.$$events=n),hn=o,d=t(p,a)||{},hn=!0,r&&oe()}),()=>{var b;for(var p of s){e.removeEventListener(p,Ra);var f=oa.get(p);--f===0?(document.removeEventListener(p,Ra),oa.delete(p)):oa.set(p,f)}gr.delete(c),v!==i&&((b=v.parentNode)==null||b.removeChild(v))}});return br.set(d,u),d}let br=new WeakMap;function Bi(t,e){const i=br.get(t);return i?(br.delete(t),i(e)):Promise.resolve()}class sa{constructor(e,i=!0){Ft(this,"anchor");be(this,Ot,new Map);be(this,ai,new Map);be(this,bt,new Map);be(this,Ji,new Set);be(this,Qa,!0);be(this,Xa,()=>{var e=Se;if(H(this,Ot).has(e)){var i=H(this,Ot).get(e),a=H(this,ai).get(i);if(a)fr(a),H(this,Ji).delete(i);else{var n=H(this,bt).get(i);n&&(H(this,ai).set(i,n.effect),H(this,bt).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),a=n.effect)}for(const[r,o]of H(this,Ot)){if(H(this,Ot).delete(r),r===e)break;const s=H(this,bt).get(o);s&&(rt(s.effect),H(this,bt).delete(o))}for(const[r,o]of H(this,ai)){if(r===i||H(this,Ji).has(r))continue;const s=()=>{if(Array.from(H(this,Ot).values()).includes(r)){var d=document.createDocumentFragment();so(o,d),d.append(Mt()),H(this,bt).set(r,{effect:o,fragment:d})}else rt(o);H(this,Ji).delete(r),H(this,ai).delete(r)};H(this,Qa)||!a?(H(this,Ji).add(r),la(o,s,!1)):s()}}});be(this,Vn,e=>{H(this,Ot).delete(e);const i=Array.from(H(this,Ot).values());for(const[a,n]of H(this,bt))i.includes(a)||(rt(n.effect),H(this,bt).delete(a))});this.anchor=e,ge(this,Qa,i)}ensure(e,i){var a=Se,n=Jl();if(i&&!H(this,ai).has(e)&&!H(this,bt).has(e))if(n){var r=document.createDocumentFragment(),o=Mt();r.append(o),H(this,bt).set(e,{effect:pt(()=>i(o)),fragment:r})}else H(this,ai).set(e,pt(()=>i(this.anchor)));if(H(this,Ot).set(a,e),n){for(const[s,c]of H(this,ai))s===e?a.skipped_effects.delete(c):a.skipped_effects.add(c);for(const[s,c]of H(this,bt))s===e?a.skipped_effects.delete(c.effect):a.skipped_effects.add(c.effect);a.oncommit(H(this,Xa)),a.ondiscard(H(this,Vn))}else H(this,Xa).call(this)}}Ot=new WeakMap,ai=new WeakMap,bt=new WeakMap,Ji=new WeakMap,Qa=new WeakMap,Xa=new WeakMap,Vn=new WeakMap;const nd=0,_r=1;function Oa(t,e,i,a,n){var r=Li(),o=tt,s=r?Kt(o):vr(o,!1,!1),c=r?Kt(o):vr(o,!1,!1),d=new sa(t);ui(()=>{var u=e(),v=!1;if(Us(u)){var p=Fl(),f=!1;const b=h=>{if(!v){f=!0,p(!1),Ut.ensure();try{h()}finally{Ia(),ra||Al()}}};u.then(h=>{b(()=>{di(s,h),d.ensure(_r,a&&(_=>a(_,s)))})},h=>{b(()=>{if(di(c,h),d.ensure(_r,n&&(_=>n(_,c))),!n)throw c.v})}),ci(()=>{f||b(()=>{d.ensure(nd,i)})})}else di(s,u),d.ensure(_r,a&&(b=>a(b,s)));return()=>{v=!0}})}function F(t,e,i=!1){var a=new sa(t),n=i?Vt:0;function r(o,s){a.ensure(o,s)}ui(()=>{var o=!1;e((s,c=!0)=>{o=!0,r(c,s)}),o||r(!1,null)},n)}function ca(t,e,i){var a=new sa(t),n=!Li();ui(()=>{var r=e();n&&r!==null&&typeof r=="object"&&(r={}),a.ensure(r,i)})}function rd(t,e,i=!1,a=!1,n=!1){var r=t,o="";V(()=>{var s=Ie;if(o!==(o=e()??"")&&(s.nodes_start!==null&&(no(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=yr(c);if((i||a)&&(d=Yt(d)),Oi(Yt(d),d.lastChild),i||a)for(;Yt(d);)r.before(Yt(d));else r.before(d)}})}function He(t,e,...i){var a=new sa(t);ui(()=>{const n=e()??null;a.ensure(n,n&&(r=>n(r,...i)))},Vt)}function xr(t,e,i){var a=new sa(t);ui(()=>{var n=e()??null;a.ensure(n,n&&(r=>i(r,n)))},Vt)}function wo(t,e,i,a,n,r){var o=null,s=t,c=Di,d=new sa(s,!1);ui(()=>{const u=e()||null;var v=u==="svg"?mc:null;if(u===null){d.ensure(null,null),gn(!0);return}return d.ensure(u,p=>{var f=Di;if(Ol(c),u){if(o=v?document.createElementNS(v,u):document.createElement(u),Oi(o,o),a){var b=o.appendChild(Mt());a(o,b)}Ie.nodes_end=o,p.before(o)}Ol(f)}),gn(!0),()=>{u&&gn(!1)}},Vt),La(()=>{gn(!0)})}function ld(t,e){var i;i=document.head.appendChild(Mt());try{ui(()=>e(i),tr)}finally{}}function yt(t,e,i){wi(()=>{var a=St(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var n=!1,r={};vn(()=>{var o=i();bo(o),n&&Pl(r,o)&&(r=o,a.update(o))}),n=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function mn(t,e){var i=void 0,a;to(()=>{i!==(i=e())&&(a&&(rt(a),a=null),i&&(a=pt(()=>{wi(()=>i(t))})))})}function ko(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=ko(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function od(){for(var t,e,i=0,a="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=ko(t))&&(a&&(a+=" "),a+=e);return a}function sd(t){return typeof t=="object"?od(t):t??""}const So=[...`
3
3
  \r\f \v\uFEFF`];function cd(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||So.includes(a[o-1]))&&(s===a.length||So.includes(a[s]))?a=(o===0?"":a.substring(0,o))+a.substring(s+1):o=s}}return a===""?null:a}function To(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 wr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function dd(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(wr)),n&&c.push(...Object.keys(n).map(wr));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=wr(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+=To(a)),n&&(i+=To(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function xe(t,e,i,a,n,r){var o=t.__className;if(o!==i||o===void 0){var s=cd(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 kr(t,e={},i,a){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,a))}}function Ge(t,e,i,a){var n=t.__style;if(n!==e){var r=dd(e,a);r==null?t.removeAttribute("style"):t.style.cssText=r,t.__style=e}else a&&(Array.isArray(a)?(kr(t,i==null?void 0:i[0],a[0]),kr(t,i==null?void 0:i[1],a[1],"important")):kr(t,i,a));return a}function yn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!We(e))return bc();for(var a of t.options)a.selected=e.includes(Ba(a));return}for(a of t.options){var n=Ba(a);if(Mc(n,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Eo(t){var e=new MutationObserver(()=>{yn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),La(()=>{e.disconnect()})}function ud(t,e,i=e){var a=new WeakSet,n=!0;Xl(t,"change",r=>{var o=r?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),Ba);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&Ba(c)}i(s),Se!==null&&a.add(Se)}),wi(()=>{var r=e();if(t===document.activeElement){var o=Ca??Se;if(a.has(o))return}if(yn(t,r,n),n&&r===void 0){var s=t.querySelector(":checked");s!==null&&(r=Ba(s),i(r))}t.__value=r,n=!1}),Eo(t)}function Ba(t){return"__value"in t?t.__value:t.value}const da=Symbol("class"),ua=Symbol("style"),Po=Symbol("is custom element"),Co=Symbol("is html");function vd(t,e){var i=Sr(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 se(t,e,i,a){var n=Sr(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ks]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Ao(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function pd(t,e,i,a,n=!1,r=!1){var o=Sr(t),s=o[Po],c=!o[Co],d=e||{},u=t.tagName==="OPTION";for(var v in e)v in i||(i[v]=null);i.class?i.class=sd(i.class):(a||i[da])&&(i.class=null),i[ua]&&(i.style??(i.style=null));var p=Ao(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";xe(t,f,C,a,e==null?void 0:e[da],i[da]),d[w]=C,d[da]=i[da];continue}if(w==="style"){Ge(t,C,e==null?void 0:e[ua],i[ua]),d[w]=C,d[ua]=i[ua];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 A={},I="$$"+w;let T=w.slice(2);var _=Jc(T);if(Yc(T)&&(T=T.slice(0,-7),A.capture=!0),!_&&b){if(C!=null)continue;t.removeEventListener(T,d[I],A),d[I]=null}if(C!=null)if(_)t[`__${T}`]=C,_e([T]);else{let O=function(L){d[w].call(this,L)};d[I]=mr(T,t,O,A)}else _&&(t[`__${T}`]=void 0)}else if(w==="style")se(t,w,C);else if(w==="autofocus")Nc(t,!!C);else if(!s&&(w==="__value"||w==="value"&&C!=null))t.value=t.__value=C;else if(w==="selected"&&u)Io(t,C);else{var y=w;c||(y=Xc(y));var k=y==="defaultValue"||y==="defaultChecked";if(C==null&&!s&&!k)if(o[w]=null,y==="value"||y==="checked"){let A=t;const I=e===void 0;if(y==="value"){let T=A.defaultValue;A.removeAttribute(y),A.defaultValue=T,A.value=A.__value=I?T:null}else{let T=A.defaultChecked;A.removeAttribute(y),A.defaultChecked=T,A.checked=I?T:!1}}else t.removeAttribute(w);else k||p.includes(y)&&(s||typeof C!="string")?(t[y]=C,y in o&&(o[y]=tt)):typeof C!="function"&&se(t,y,C)}}}return d}function jo(t,e,i=[],a=[],n=[],r,o=!1,s=!1){Bl(n,i,a,c=>{var d=void 0,u={},v=t.nodeName==="SELECT",p=!1;if(to(()=>{var b=e(...c.map(l)),h=pd(t,d,b,r,o,s);p&&v&&"value"in b&&yn(t,b.value);for(let y of Object.getOwnPropertySymbols(u))b[y]||rt(u[y]);for(let y of Object.getOwnPropertySymbols(b)){var _=b[y];y.description===yc&&(!d||_!==d[y])&&(u[y]&&rt(u[y]),u[y]=pt(()=>mn(t,()=>_))),h[y]=_}d=h}),v){var f=t;wi(()=>{yn(f,d.value,!0),Eo(f)})}p=!0})}function Sr(t){return t.__attributes??(t.__attributes={[Po]:t.nodeName.includes("-"),[Co]:t.namespaceURI===gc})}var zo=new Map;function Ao(t){var e=t.getAttribute("is")||t.nodeName,i=zo.get(e);if(i)return i;zo.set(e,i=[]);for(var a,n=t,r=Element.prototype;r!==n;){a=gl(n);for(var o in a)a[o].set&&i.push(o);n=Xn(n)}return i}const fd=()=>performance.now(),pi={tick:t=>requestAnimationFrame(t),now:()=>fd(),tasks:new Set};function Lo(){const t=pi.now();pi.tasks.forEach(e=>{e.c(t)||(pi.tasks.delete(e),e.f())}),pi.tasks.size!==0&&pi.tick(Lo)}function hd(t){let e;return pi.tasks.size===0&&pi.tick(Lo),{promise:new Promise(i=>{pi.tasks.add(e={c:t,f:i})}),abort(){pi.tasks.delete(e)}}}function bn(t,e){Ni(()=>{t.dispatchEvent(new CustomEvent(e))})}function gd(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 Mo(t){const e={},i=t.split(";");for(const a of i){const[n,r]=a.split(":");if(!n||r===void 0)break;const o=gd(n.trim());e[o]=r.trim()}return e}const md=t=>t;function yd(t,e,i){var a=Di,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=_n(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 je(t,e,i,a){var n=(t&uc)!==0,r=(t&vc)!==0,o=n&&r,s=(t&pc)!==0,c=o?"both":n?"in":"out",d,u=e.inert,v=e.style.overflow,p,f;function b(){return Ni(()=>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(),bn(e,"introstart"),p=_n(e,b(),f,1,()=>{bn(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,bn(e,"outrostart"),f=_n(e,b(),p,0,()=>{bn(e,"outroend"),w==null||w()})},stop:()=>{p==null||p.abort(),f==null||f.abort()}},_=Ie;if((_.transitions??(_.transitions=[])).push(h),n&&hn){var y=s;if(!y){for(var k=_.parent;k&&k.f&Vt;)for(;(k=k.parent)&&!(k.f&Ht););y=!k||(k.f&cn)!==0}y&&wi(()=>{St(()=>h.in())})}}function _n(t,e,i,a,n){var r=a===1;if(Xi(e)){var o,s=!1;return ci(()=>{if(!s){var _=e({direction:r?"in":"out"});o=_n(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:xt,deactivate:xt,reset:xt,t:()=>a};const{delay:c=0,css:d,tick:u,easing:v=md}=e;var p=[];if(r&&i===void 0&&(u&&u(0,1),d)){var f=Mo(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 y=a-_,k=e.duration*Math.abs(y),w=[];if(k>0){var C=!1;if(d)for(var A=Math.ceil(k/16.666666666666668),I=0;I<=A;I+=1){var T=_+y*v(I/A),O=Mo(d(T,1-T));w.push(O),C||(C=O.overflow==="hidden")}C&&(t.style.overflow="hidden"),b=()=>{var L=h.currentTime;return _+y*v(L/k)},u&&hd(()=>{if(h.playState!=="running")return!1;var L=b();return u(L,1-L),!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=xt)},deactivate:()=>{n=xt},reset:()=>{a===0&&(u==null||u(1,0))},t:()=>b()}}function va(t,e,i=e){var a=new WeakSet;Xl(t,"input",async n=>{var r=n?t.defaultValue:t.value;if(r=Tr(t)?Er(r):r,i(r),Se!==null&&a.add(Se),await Na(),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))}}}),St(e)==null&&t.value&&(i(Tr(t)?Er(t.value):t.value),Se!==null&&a.add(Se)),vn(()=>{var n=e();if(t===document.activeElement){var r=Ca??Se;if(a.has(r))return}Tr(t)&&n===Er(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Tr(t){var e=t.type;return e==="number"||e==="range"}function Er(t){return t===""?null:+t}const Un=class Un{constructor(e){be(this,Wn);be(this,ji,new WeakMap);be(this,Sa);be(this,$a);ge(this,$a,e)}observe(e,i){var a=H(this,ji).get(e)||new Set;return a.add(i),H(this,ji).set(e,a),Be(this,Wn,Os).call(this).observe(e,H(this,$a)),()=>{var n=H(this,ji).get(e);n.delete(i),n.size===0&&(H(this,ji).delete(e),H(this,Sa).unobserve(e))}}};ji=new WeakMap,Sa=new WeakMap,$a=new WeakMap,Wn=new WeakSet,Os=function(){return H(this,Sa)??ge(this,Sa,new ResizeObserver(e=>{for(var i of e){Un.entries.set(i.target,i);for(var a of H(this,ji).get(i.target)||[])a(i)}}))},Ft(Un,"entries",new WeakMap);let Pr=Un;var bd=new Pr({box:"border-box"});function Nt(t,e,i){var a=bd.observe(t,()=>i(t[e]));wi(()=>(St(()=>i(t[e])),a))}function qo(t,e){return t===e||(t==null?void 0:t[Wt])===e}function Qe(t={},e,i,a){return wi(()=>{var n,r;return vn(()=>{n=r,r=[],St(()=>{t!==i(...r)&&(e(t,...r),n&&qo(i(...n),t)&&e(null,...n))})}),()=>{ci(()=>{r&&qo(i(...r),t)&&e(null,...r)})}}),t}function xn(t,e){Oc(window,["resize"],()=>Ni(()=>e(window[t])))}function Cr(t=!1){const e=qe,i=e.l.u;if(!i)return;let a=()=>bo(e.s);if(t){let n=0,r={};const o=ja(()=>{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&&Fc(()=>{Do(e,a),$n(i.b)}),Ue(()=>{const n=St(()=>i.m.map(Gs));return()=>{for(const r of n)typeof r=="function"&&r()}}),i.a.length&&Ue(()=>{Do(e,a),$n(i.a)})}function Do(t,e){if(t.l.s)for(const i of t.l.s)l(i);e()}let wn=!1;function _d(t){var e=wn;try{return wn=!1,[t(),wn]}finally{wn=e}}const xd={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function No(t,e,i){return new Proxy({props:t,exclude:e},xd)}const wd={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Xi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(t,e,i){let a=t.props.length;for(;a--;){let n=t.props[a];Xi(n)&&(n=n());const r=yi(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Xi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const n=yi(a,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Wt||e===wl)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 kn(...t){return new Proxy({props:t},wd)}function q(t,e,i,a){var w;var n=!ia||(i&oc)!==0,r=(i&cc)!==0,o=(i&dc)!==0,s=a,c=!0,d=()=>(c&&(c=!1,s=o?St(a):a),s),u;if(r){var v=Wt in t||wl in t;u=((w=yi(t,e))==null?void 0:w.set)??(v&&e in t?C=>t[e]=C:void 0)}var p,f=!1;r?[p,f]=_d(()=>t[e]):p=t[e],p===void 0&&a!==void 0&&(p=d(),u&&(n&&$s(),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&sc))return b;if(u){var h=t.$$legacy;return function(C,A){return arguments.length>0?((!n||!A||h||f)&&u(A?b():C),C):b()}}var _=!1,y=(i&lc?ja:cr)(()=>(_=!1,b()));r&&l(y);var k=Ie;return function(C,A){if(arguments.length>0){const I=A?l(y):n&&r?Fe(C):C;return M(y,I),_=!0,s!==void 0&&(s=I),C}return Ri&&_||k.f&si?y.v:l(y)}}function Xe(t){qe===null&&nr(),ia&&qe.l!==null?kd(qe).m.push(t):Ue(()=>{const e=St(t);if(typeof e=="function")return e})}function Ir(t){qe===null&&nr(),Xe(()=>()=>St(t))}function kd(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Sd="5";typeof window<"u"&&((Ms=window.__svelte??(window.__svelte={})).v??(Ms.v=new Set)).add(Sd);function fi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Ro="https://www.playpilot.com",Td="https://partner-api.playpilot.tech/1.0",Ed="https://img-external.playpilot.tech",jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Si=600,zr={};async function Qt(t,{headers:e={},method:i="GET",body:a=null}={}){const n=!Sn()&&i==="GET";if(n&&t in zr)return zr[t];const r=i==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(Td+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&&(zr[t]=c),c}const Ar="EncryptedToken",Oo="articleReplacementEditToken",Bo="playpilot-editorial-mode";async function Fo({href:t=window.location.href,throwError:e=!1}={}){try{const i=fi();if(!i)throw new Error("No token was provided");const a=Lr(t);if(!a)throw new Error("Could not be authenticated");return await Qt(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),Pd(a),!0}catch(i){if(console.error(i),e)throw i}finally{jd()}return!1}function Lr(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(Oo);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${Ar}=`).pop())==null?void 0:n.split(";")[0])||""}function Pd(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=Ar+"="+t+";"+a+";path=/"}function Cd(){document.cookie=Ar+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Sn(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Bo)==="true"||!!t}function Id(){const t=new URL(window.location.href);t.searchParams.set(Bo,"true"),window.history.replaceState({},"",t)}function jd(){const t=new URL(window.location.href);t.searchParams.delete(Oo),window.history.replaceState({},"",t)}function zd(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 Tn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const g=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Fa(){var a,n;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(g);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(i){if(e.includes(i))return i;const r=e.find(o=>o.toLowerCase().startsWith(i+"-"));if(r)return r}return g.English}function Mr(t,e=""){const i=[],a=[t];for(;a.length>0;){const n=a.pop();if(i.includes(n)||e&&n.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(n.tagName)||n.offsetWidth<=1)continue;const r=Array.from(n.childNodes).some(c=>{var d;return c.nodeType===Node.TEXT_NODE&&((d=c.nodeValue)==null?void 0:d.trim())!==""});if(r&&n.tagName==="LI"){const c=n.closest("ul, ol");c&&!i.includes(c)&&i.push(c);continue}const o=n.tagName==="P"&&!!n.textContent;if(r||o){i.push(n);continue}const s=Array.from(n.children);for(let c=s.length-1;c>=0;c--)a.push(s[c])}return i}function pa(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),a=document.querySelector(i);if(a)return a}return document.querySelector("article")||document.querySelector("main")||document.body}function qr(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function Dr(t){const e=pa(),i=Mr(e,(t==null?void 0:t.exclude_elements_selector)||""),a=qr(i);return{parentElement:e,elements:i,pageText:a}}function Ho(){const t=pa();return{content_heading:Ad(t),content_modified_time:Ld(t),content_published_time:Md(t)}}function Ad(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=Vo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Nr(i):null}function Md(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=Vo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Nr(i):null}function Nr(t){try{return new Date(t).toISOString()}catch{return null}}function Vo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Fi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Rr(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function qd(t){return!!(t.exclude_urls_pattern&&Fi().match(new RegExp(t.exclude_urls_pattern)))}let Or=null;async function Hi(t,{url:e=Fi(),hash:i=zd(t||""),params:a={},method:n="GET"}={}){const r=fi(),o=Sn()?await Fo():!1,s=Fa();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=Ho(),d=await Qt(c,{method:"POST",body:a})):d=await Qt(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function Wo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let o=0;Or&&clearTimeout(Or);const s=async(c,d)=>{let u;try{try{u=await Hi(t)}catch(v){throw(v==null?void 0:v.status)===404&&(u=await Hi(t,{method:"POST"}),u.ai_enabled&&(u=await Hi(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await Dd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=Uo(u.manual_injections||[]),u.ai_injections=Uo(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),Or=setTimeout(()=>s(c),a)}};return new Promise(s)}async function Dd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Ho().content_modified_time,a=e.content_modified_time?Nr(e.content_modified_time):null,n=i&&a===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(a||0)?e:await Hi(t,{params:{run_ai:!0},method:"POST"})}async function Nd(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 Hi(e,{method:"POST",params:{private_token:Lr(),manual_injections:n,content_text_selector:i}}))throw new Error("saveLinkInjections response was faulty");return t}function Uo(t){return t.map(e=>({...e,key:Go(e.sid)}))}function Go(t){return t+"-"+Tn()}function Rd(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Od(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Bd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Br(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Ko(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 Yo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Fd(t,e,i,a){const n=Bd(e),r=Br(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 Hd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function Tt(t){return Br(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Zo(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 Jo(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=Qo(a.innerText.slice(0,e+n)),o=a.innerText.slice(i+n),s=Qo(Xo(r,2)),c=Xo(o,2);return{before:s,after:c}}function Qo(t){return t.split("").reverse().join("")}function Xo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function En(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Vd(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 Wd(t,e,i,a){const r=Vd(t,i,a).filter(({match:s})=>Br(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 Gd(t,e,i=0){const a=e.innerHTML,n=[],r=Kd(e);let o=a.indexOf(t);for(;o!==-1;)Od(o,r)&&n.push(o),o=a.indexOf(t,o+t.length);return n[i]??-1}function Kd(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 Yd(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 $o(t){return t.ctrlKey||t.metaKey||t.button!==0}const ue={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Rt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Ti={Card:"tpi_card",Link:"tpi_link"};function Zd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Et(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Pn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Cn=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Jd(t=[]){return t.map(e=>{var i;return((i=Cn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Fr="playpilot_user_id";function Qd(){if(!es())return null;try{const t=localStorage.getItem(Fr);return t||(localStorage.setItem(Fr,Tn(16)),localStorage.getItem(Fr))}catch{return null}}function es(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Et("tracking")}const Xd="https://insights.playpilot.net";async function ve(t,e=null,i={}){var n,r,o,s,c;if(Pn())return;if(!Et("tracking")){eu(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:Jd(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),es()&&(i.user_id=Qd(),i.region=window.PlayPilotLinkInjections.region),i.version="8.11.0-beta.1",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Fi(),i.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Si?"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})}),$d({event:t,payload:i})}function $d(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function ts({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function eu(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 tu(){if(Et("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function is(){if(!Et("ads"))return[];const t=fi();if(!t)throw new Error("No token was provided");try{return await Qt(`/ads/browse/?api-token=${t}`)}catch(e){throw ve(ue.AdsFetchFailed,null,{status:e.status}),e}}function Ha(t){var e;return!Et("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function iu(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function Hr(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 ve(ue.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 Vr(t={}){const e=fi();if(!e)throw new Error("No token was provided");return t={...t,language:Fa(),include_count:"false"},t.region!==null&&(t.region=t.region||await Hr()),await Qt(`/titles/browse?api-token=${e}&`+Rr(t))}async function nu(t){return(await Vr({related_to_sid:t.sid})).results}const ru={"Where To Stream Online":{[g.English]:"Where to stream online",[g.Swedish]:"Var kan man streama online",[g.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[g.English]:"We may earn a commission from purchases made through some of the links below.",[g.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[g.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[g.English]:"An error occurred",[g.Swedish]:"Ett fel inträffade",[g.Danish]:"Der opstod en fejl"},Loading:{[g.English]:"Loading",[g.Swedish]:"Laddar",[g.Danish]:"Indlæser"},"Title Unavailable":{[g.English]:"This title is not currently available to stream.",[g.Swedish]:"Den här titeln går inte att streama just nu.",[g.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[g.English]:"is not currently available to stream.",[g.Swedish]:"går inte att streama just nu.",[g.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[g.English]:"is available to stream on",[g.Swedish]:"finns att streama på",[g.Danish]:"kan streames på"},"Is Available To Stream":{[g.English]:"is available to stream.",[g.Swedish]:"finns att streama.",[g.Danish]:"kan streames."},"View Streaming Options":{[g.English]:"View streaming options",[g.Swedish]:"Se streamingalternativ",[g.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[g.English]:"and",[g.Swedish]:"och",[g.Danish]:"og"},Minutes:{[g.English]:"minutes",[g.Swedish]:"minuter",[g.Danish]:"minutter"},"Type: movie":{[g.English]:"Movie",[g.Swedish]:"Film",[g.Danish]:"Film"},"Type: series":{[g.English]:"Series",[g.Swedish]:"Serie",[g.Danish]:"Serie"},Stream:{[g.English]:"Stream",[g.Swedish]:"Streama",[g.Danish]:"Stream"},Buy:{[g.English]:"Buy",[g.Swedish]:"Köp",[g.Danish]:"Køb"},Rent:{[g.English]:"Rent",[g.Swedish]:"Hyr",[g.Danish]:"Lej"},"Rent Or Buy":{[g.English]:"Rent or Buy",[g.Swedish]:"Hyr/köp",[g.Danish]:"Lej eller køb"},Watch:{[g.English]:"Watch",[g.Swedish]:"Titta nu",[g.Danish]:"Se nu"},"Category: AVOD":{[g.English]:"Stream for free",[g.Swedish]:"Streama gratis",[g.Danish]:"Stream gratis"},"Category: SVOD":{[g.English]:"Streaming services",[g.Swedish]:"Streamingtjänster",[g.Danish]:"Streamingtjenester"},"Category: RENT":{[g.English]:"Rent it",[g.Swedish]:"Hyr den",[g.Danish]:"Lej den"},"Category: BUY":{[g.English]:"Buy it",[g.Swedish]:"Köp den",[g.Danish]:"Køb den"},"Category: Other":{[g.English]:"Other",[g.Swedish]:"Annat",[g.Danish]:"Andet"},Share:{[g.English]:"Share",[g.Swedish]:"Dela",[g.Danish]:"Del"},"Copy URL":{[g.English]:"Copy URL",[g.Swedish]:"Kopiera URL",[g.Danish]:"Kopiér URL"},Email:{[g.English]:"Email",[g.Swedish]:"E-post",[g.Danish]:"E-mail"},"Show More":{[g.English]:"Show more",[g.Swedish]:"Visa mer",[g.Danish]:"Vis mere"},Cast:{[g.English]:"Cast",[g.Swedish]:"Rollista",[g.Danish]:"Skuespillere"},"Similar Titles":{[g.English]:"Similar movies & shows",[g.Swedish]:"Liknande filmer och serier",[g.Danish]:"Lignende film og serier"},"Watch Trailer":{[g.English]:"Watch trailer",[g.Swedish]:"Se trailer",[g.Danish]:"Se trailer"},"Streaming Guide":{[g.English]:"Streaming Guide",[g.Swedish]:"Streaming Guide",[g.Danish]:"Streaming Guide"},"Streaming Guide Heading":{[g.English]:"Discover and search all movies and tv-shows",[g.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[g.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Description":{[g.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[g.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[g.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[g.English]:"Search movies and shows",[g.Swedish]:"Sök filmer och serier",[g.Danish]:"Søg film og serier"},Services:{[g.English]:"Services",[g.Swedish]:"Tjänster",[g.Danish]:"Tjenester"},Genres:{[g.English]:"Genres",[g.Swedish]:"Genrer",[g.Danish]:"Genrer"},IMDb:{[g.English]:"IMDb",[g.Swedish]:"IMDb",[g.Danish]:"IMDb"},Year:{[g.English]:"Year",[g.Swedish]:"År",[g.Danish]:"År"},Runtime:{[g.English]:"Runtime",[g.Swedish]:"Speltid",[g.Danish]:"Spilletid"},Countries:{[g.English]:"Countries",[g.Swedish]:"Länder",[g.Danish]:"Lande"},"All Filters":{[g.English]:"All filters",[g.Swedish]:"Alla filter",[g.Danish]:"Alle filtre"},"Sort By":{[g.English]:"Sort by",[g.Swedish]:"Sortera efter",[g.Danish]:"Sortér efter"},Popularity:{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},New:{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"Top Rated":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},"-popularity":{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},"-new":{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"-best":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},Search:{[g.English]:"Search",[g.Swedish]:"Sök",[g.Danish]:"Søg"},"Born On":{[g.English]:"Born on",[g.Swedish]:"Född den",[g.Danish]:"Født den"},"Died On":{[g.English]:"Died on",[g.Swedish]:"Död den",[g.Danish]:"Død den"},Credits:{[g.English]:"Credits",[g.Swedish]:"Medverkande",[g.Danish]:"Medvirkende"},Home:{[g.English]:"Home",[g.Swedish]:"Hem",[g.Danish]:"Hjem"},Explore:{[g.English]:"Explore",[g.Swedish]:"Utforska",[g.Danish]:"Udforsk"},"List: Trending":{[g.English]:"Trending Movies & Shows",[g.Swedish]:"Trendande Titlar",[g.Danish]:"Populære film og serier"},"List: Upcoming":{[g.English]:"Upcoming Releases",[g.Swedish]:"Kommande Premiärer",[g.Danish]:"Mest ventede film"},"List: New":{[g.English]:"New Releases",[g.Swedish]:"Nya Filmer & Serier",[g.Danish]:"Nye film og serier"},"List: Demand":{[g.English]:"Always in Demand",[g.Swedish]:"Tidlösa Favoriter",[g.Danish]:"Tidløse favoritter"},"List: Cinema":{[g.English]:"Coming to Cinemas",[g.Swedish]:"Snart på Bio",[g.Danish]:"Kommende film"},All:{[g.English]:"All",[g.Swedish]:"Alla",[g.Danish]:"Alle"},Unscripted:{[g.English]:"Unscripted",[g.Swedish]:"Oscripterat",[g.Danish]:"Umanuskriptet"},Independent:{[g.English]:"Independent",[g.Swedish]:"Indie",[g.Danish]:"Indie"},"Game Show":{[g.English]:"Game Show",[g.Swedish]:"Gameshow",[g.Danish]:"Quizshow"},"Film Noir":{[g.English]:"Film Noir",[g.Swedish]:"Film noir",[g.Danish]:"Film noir"},Entertainment:{[g.English]:"Entertainment",[g.Swedish]:"Underhållning",[g.Danish]:"Underholdning"},News:{[g.English]:"News",[g.Swedish]:"Nyheter",[g.Danish]:"Nyheder"},Short:{[g.English]:"Short",[g.Swedish]:"Kortfilm",[g.Danish]:"Kortfilm"},Bollywood:{[g.English]:"Bollywood",[g.Swedish]:"Bollywood",[g.Danish]:"Bollywood"},Concert:{[g.English]:"Concert",[g.Swedish]:"Konsert",[g.Danish]:"Koncert"},Arthouse:{[g.English]:"Arthouse",[g.Swedish]:"Arthouse",[g.Danish]:"Arthouse"},"Alternate Version":{[g.English]:"Alternate Version",[g.Swedish]:"Alternativ version",[g.Danish]:"Alternativ version"},"Reality TV":{[g.English]:"Reality TV",[g.Swedish]:"Reality-TV",[g.Danish]:"Reality-TV"},Culture:{[g.English]:"Culture",[g.Swedish]:"Kultur",[g.Danish]:"Kultur"},Drama:{[g.English]:"Drama",[g.Swedish]:"Drama",[g.Danish]:"Drama"},Crime:{[g.English]:"Crime",[g.Swedish]:"Kriminal",[g.Danish]:"Krimi"},Western:{[g.English]:"Western",[g.Swedish]:"Western",[g.Danish]:"Western"},Thriller:{[g.English]:"Thriller",[g.Swedish]:"Thriller",[g.Danish]:"Thriller"},Animation:{[g.English]:"Animation",[g.Swedish]:"Animerat",[g.Danish]:"Animation"},Mystery:{[g.English]:"Mystery",[g.Swedish]:"Mysterium",[g.Danish]:"Mysterium"},Science:{[g.English]:"Science",[g.Swedish]:"Vetenskap",[g.Danish]:"Videnskab"},Nature:{[g.English]:"Nature",[g.Swedish]:"Natur",[g.Danish]:"Natur"},War:{[g.English]:"War",[g.Swedish]:"Krig",[g.Danish]:"Krig"},"Sci-Fi":{[g.English]:"Sci-Fi",[g.Swedish]:"Sci-fi",[g.Danish]:"Sci-fi"},Documentary:{[g.English]:"Documentary",[g.Swedish]:"Dokumentär",[g.Danish]:"Dokumentar"},"Stand-up":{[g.English]:"Stand-up",[g.Swedish]:"Standup",[g.Danish]:"Stand-up"},"Talk Show":{[g.English]:"Talk Show",[g.Swedish]:"Talkshow",[g.Danish]:"Talkshow"},Fantasy:{[g.English]:"Fantasy",[g.Swedish]:"Fantasy",[g.Danish]:"Fantasy"},History:{[g.English]:"History",[g.Swedish]:"Historia",[g.Danish]:"Historie"},Adventure:{[g.English]:"Adventure",[g.Swedish]:"Äventyr",[g.Danish]:"Eventyr"},Action:{[g.English]:"Action",[g.Swedish]:"Action",[g.Danish]:"Action"},Horror:{[g.English]:"Horror",[g.Swedish]:"Skräck",[g.Danish]:"Gyser"},Comedy:{[g.English]:"Comedy",[g.Swedish]:"Komedi",[g.Danish]:"Komedie"},Biography:{[g.English]:"Biography",[g.Swedish]:"Biografi",[g.Danish]:"Biografi"},Music:{[g.English]:"Music",[g.Swedish]:"Musik",[g.Danish]:"Musik"},Sport:{[g.English]:"Sport",[g.Swedish]:"Sport",[g.Danish]:"Sport"},Romance:{[g.English]:"Romance",[g.Swedish]:"Romantik",[g.Danish]:"Romantik"},Kids:{[g.English]:"Kids",[g.Swedish]:"Barn",[g.Danish]:"Børn"},Lifestyle:{[g.English]:"Lifestyle",[g.Swedish]:"Livsstil",[g.Danish]:"Livsstil"},Musical:{[g.English]:"Musical",[g.Swedish]:"Musikal",[g.Danish]:"Musical"},Anime:{[g.English]:"Anime",[g.Swedish]:"Anime",[g.Danish]:"Anime"},Family:{[g.English]:"Family",[g.Swedish]:"Familj",[g.Danish]:"Familie"}};function pe(t,e=Fa()){var i;return((i=ru[t])==null?void 0:i[e])||t}const In=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),lu=t=>t;function Wr(t){const e=t-1;return e*e*e+1}function as(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Pt(t,{delay:e=0,duration:i=400,easing:a=lu}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function fa(t,{delay:e=0,duration:i=400,easing:a=Wr,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]=as(n),[f,b]=as(r);return{delay:e,duration:i,easing:a,css:(h,_)=>`
5
+ `)}function Dr(t){const e=pa(),i=Mr(e,(t==null?void 0:t.exclude_elements_selector)||""),a=qr(i);return{parentElement:e,elements:i,pageText:a}}function Ho(){const t=pa();return{content_heading:Ad(t),content_modified_time:Ld(t),content_published_time:Md(t)}}function Ad(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=Vo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Nr(i):null}function Md(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=Vo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Nr(i):null}function Nr(t){try{return new Date(t).toISOString()}catch{return null}}function Vo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Fi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Rr(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function qd(t){return!!(t.exclude_urls_pattern&&Fi().match(new RegExp(t.exclude_urls_pattern)))}let Or=null;async function Hi(t,{url:e=Fi(),hash:i=zd(t||""),params:a={},method:n="GET"}={}){const r=fi(),o=Sn()?await Fo():!1,s=Fa();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=Ho(),d=await Qt(c,{method:"POST",body:a})):d=await Qt(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function Wo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let o=0;Or&&clearTimeout(Or);const s=async(c,d)=>{let u;try{try{u=await Hi(t)}catch(v){throw(v==null?void 0:v.status)===404&&(u=await Hi(t,{method:"POST"}),u.ai_enabled&&(u=await Hi(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await Dd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=Uo(u.manual_injections||[]),u.ai_injections=Uo(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),Or=setTimeout(()=>s(c),a)}};return new Promise(s)}async function Dd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Ho().content_modified_time,a=e.content_modified_time?Nr(e.content_modified_time):null,n=i&&a===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(a||0)?e:await Hi(t,{params:{run_ai:!0},method:"POST"})}async function Nd(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 Hi(e,{method:"POST",params:{private_token:Lr(),manual_injections:n,content_text_selector:i}}))throw new Error("saveLinkInjections response was faulty");return t}function Uo(t){return t.map(e=>({...e,key:Go(e.sid)}))}function Go(t){return t+"-"+Tn()}function Rd(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Od(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Bd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Br(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Ko(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 Yo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Fd(t,e,i,a){const n=Bd(e),r=Br(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 Hd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function Tt(t){return Br(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Zo(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 Jo(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=Qo(a.innerText.slice(0,e+n)),o=a.innerText.slice(i+n),s=Qo(Xo(r,2)),c=Xo(o,2);return{before:s,after:c}}function Qo(t){return t.split("").reverse().join("")}function Xo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function En(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Vd(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 Wd(t,e,i,a){const r=Vd(t,i,a).filter(({match:s})=>Br(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 Gd(t,e,i=0){const a=e.innerHTML,n=[],r=Kd(e);let o=a.indexOf(t);for(;o!==-1;)Od(o,r)&&n.push(o),o=a.indexOf(t,o+t.length);return n[i]??-1}function Kd(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 Yd(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 $o(t){return t.ctrlKey||t.metaKey||t.button!==0}const ue={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Rt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Ti={Card:"tpi_card",Link:"tpi_link"};function Zd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Et(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Pn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Cn=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Jd(t=[]){return t.map(e=>{var i;return((i=Cn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const Fr="playpilot_user_id";function Qd(){if(!es())return null;try{const t=localStorage.getItem(Fr);return t||(localStorage.setItem(Fr,Tn(16)),localStorage.getItem(Fr))}catch{return null}}function es(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Et("tracking")}const Xd="https://insights.playpilot.net";async function ve(t,e=null,i={}){var n,r,o,s,c;if(Pn())return;if(!Et("tracking")){eu(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:Jd(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),es()&&(i.user_id=Qd(),i.region=window.PlayPilotLinkInjections.region),i.version="8.11.0-beta.2",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Fi(),i.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Si?"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})}),$d({event:t,payload:i})}function $d(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function ts({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function eu(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 tu(){if(Et("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function is(){if(!Et("ads"))return[];const t=fi();if(!t)throw new Error("No token was provided");try{return await Qt(`/ads/browse/?api-token=${t}`)}catch(e){throw ve(ue.AdsFetchFailed,null,{status:e.status}),e}}function Ha(t){var e;return!Et("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function iu(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function Hr(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 ve(ue.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 Vr(t={}){const e=fi();if(!e)throw new Error("No token was provided");return t={...t,language:Fa(),include_count:"false"},t.region!==null&&(t.region=t.region||await Hr()),await Qt(`/titles/browse?api-token=${e}&`+Rr(t))}async function nu(t){return(await Vr({related_to_sid:t.sid})).results}const ru={"Where To Stream Online":{[g.English]:"Where to stream online",[g.Swedish]:"Var kan man streama online",[g.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[g.English]:"We may earn a commission from purchases made through some of the links below.",[g.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[g.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[g.English]:"An error occurred",[g.Swedish]:"Ett fel inträffade",[g.Danish]:"Der opstod en fejl"},Loading:{[g.English]:"Loading",[g.Swedish]:"Laddar",[g.Danish]:"Indlæser"},"Title Unavailable":{[g.English]:"This title is not currently available to stream.",[g.Swedish]:"Den här titeln går inte att streama just nu.",[g.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[g.English]:"is not currently available to stream.",[g.Swedish]:"går inte att streama just nu.",[g.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[g.English]:"is available to stream on",[g.Swedish]:"finns att streama på",[g.Danish]:"kan streames på"},"Is Available To Stream":{[g.English]:"is available to stream.",[g.Swedish]:"finns att streama.",[g.Danish]:"kan streames."},"View Streaming Options":{[g.English]:"View streaming options",[g.Swedish]:"Se streamingalternativ",[g.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[g.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[g.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[g.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[g.English]:"and",[g.Swedish]:"och",[g.Danish]:"og"},Minutes:{[g.English]:"minutes",[g.Swedish]:"minuter",[g.Danish]:"minutter"},"Type: movie":{[g.English]:"Movie",[g.Swedish]:"Film",[g.Danish]:"Film"},"Type: series":{[g.English]:"Series",[g.Swedish]:"Serie",[g.Danish]:"Serie"},Stream:{[g.English]:"Stream",[g.Swedish]:"Streama",[g.Danish]:"Stream"},Buy:{[g.English]:"Buy",[g.Swedish]:"Köp",[g.Danish]:"Køb"},Rent:{[g.English]:"Rent",[g.Swedish]:"Hyr",[g.Danish]:"Lej"},"Rent Or Buy":{[g.English]:"Rent or Buy",[g.Swedish]:"Hyr/köp",[g.Danish]:"Lej eller køb"},Watch:{[g.English]:"Watch",[g.Swedish]:"Titta nu",[g.Danish]:"Se nu"},"Category: AVOD":{[g.English]:"Stream for free",[g.Swedish]:"Streama gratis",[g.Danish]:"Stream gratis"},"Category: SVOD":{[g.English]:"Streaming services",[g.Swedish]:"Streamingtjänster",[g.Danish]:"Streamingtjenester"},"Category: RENT":{[g.English]:"Rent it",[g.Swedish]:"Hyr den",[g.Danish]:"Lej den"},"Category: BUY":{[g.English]:"Buy it",[g.Swedish]:"Köp den",[g.Danish]:"Køb den"},"Category: Other":{[g.English]:"Other",[g.Swedish]:"Annat",[g.Danish]:"Andet"},Share:{[g.English]:"Share",[g.Swedish]:"Dela",[g.Danish]:"Del"},"Copy URL":{[g.English]:"Copy URL",[g.Swedish]:"Kopiera URL",[g.Danish]:"Kopiér URL"},Email:{[g.English]:"Email",[g.Swedish]:"E-post",[g.Danish]:"E-mail"},"Show More":{[g.English]:"Show more",[g.Swedish]:"Visa mer",[g.Danish]:"Vis mere"},Cast:{[g.English]:"Cast",[g.Swedish]:"Rollista",[g.Danish]:"Skuespillere"},"Similar Titles":{[g.English]:"Similar movies & shows",[g.Swedish]:"Liknande filmer och serier",[g.Danish]:"Lignende film og serier"},"Watch Trailer":{[g.English]:"Watch trailer",[g.Swedish]:"Se trailer",[g.Danish]:"Se trailer"},"Streaming Guide":{[g.English]:"Streaming Guide",[g.Swedish]:"Streaming Guide",[g.Danish]:"Streaming Guide"},"Streaming Guide Heading":{[g.English]:"Discover and search all movies and tv-shows",[g.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[g.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Description":{[g.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[g.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[g.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[g.English]:"Search movies and shows",[g.Swedish]:"Sök filmer och serier",[g.Danish]:"Søg film og serier"},Services:{[g.English]:"Services",[g.Swedish]:"Tjänster",[g.Danish]:"Tjenester"},Genres:{[g.English]:"Genres",[g.Swedish]:"Genrer",[g.Danish]:"Genrer"},IMDb:{[g.English]:"IMDb",[g.Swedish]:"IMDb",[g.Danish]:"IMDb"},Year:{[g.English]:"Year",[g.Swedish]:"År",[g.Danish]:"År"},Runtime:{[g.English]:"Runtime",[g.Swedish]:"Speltid",[g.Danish]:"Spilletid"},Countries:{[g.English]:"Countries",[g.Swedish]:"Länder",[g.Danish]:"Lande"},"All Filters":{[g.English]:"All filters",[g.Swedish]:"Alla filter",[g.Danish]:"Alle filtre"},"Sort By":{[g.English]:"Sort by",[g.Swedish]:"Sortera efter",[g.Danish]:"Sortér efter"},Popularity:{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},New:{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"Top Rated":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},"-popularity":{[g.English]:"Popularity",[g.Swedish]:"Popularitet",[g.Danish]:"Popularitet"},"-new":{[g.English]:"New",[g.Swedish]:"Nytt",[g.Danish]:"Nyt"},"-best":{[g.English]:"Top Rated",[g.Swedish]:"Toppbetyg",[g.Danish]:"Højst vurderet"},Search:{[g.English]:"Search",[g.Swedish]:"Sök",[g.Danish]:"Søg"},"Born On":{[g.English]:"Born on",[g.Swedish]:"Född den",[g.Danish]:"Født den"},"Died On":{[g.English]:"Died on",[g.Swedish]:"Död den",[g.Danish]:"Død den"},Credits:{[g.English]:"Credits",[g.Swedish]:"Medverkande",[g.Danish]:"Medvirkende"},Home:{[g.English]:"Home",[g.Swedish]:"Hem",[g.Danish]:"Hjem"},Explore:{[g.English]:"Explore",[g.Swedish]:"Utforska",[g.Danish]:"Udforsk"},"List: Trending":{[g.English]:"Trending Movies & Shows",[g.Swedish]:"Trendande Titlar",[g.Danish]:"Populære film og serier"},"List: Upcoming":{[g.English]:"Upcoming Releases",[g.Swedish]:"Kommande Premiärer",[g.Danish]:"Mest ventede film"},"List: New":{[g.English]:"New Releases",[g.Swedish]:"Nya Filmer & Serier",[g.Danish]:"Nye film og serier"},"List: Demand":{[g.English]:"Always in Demand",[g.Swedish]:"Tidlösa Favoriter",[g.Danish]:"Tidløse favoritter"},"List: Cinema":{[g.English]:"Coming to Cinemas",[g.Swedish]:"Snart på Bio",[g.Danish]:"Kommende film"},All:{[g.English]:"All",[g.Swedish]:"Alla",[g.Danish]:"Alle"},Unscripted:{[g.English]:"Unscripted",[g.Swedish]:"Oscripterat",[g.Danish]:"Umanuskriptet"},Independent:{[g.English]:"Independent",[g.Swedish]:"Indie",[g.Danish]:"Indie"},"Game Show":{[g.English]:"Game Show",[g.Swedish]:"Gameshow",[g.Danish]:"Quizshow"},"Film Noir":{[g.English]:"Film Noir",[g.Swedish]:"Film noir",[g.Danish]:"Film noir"},Entertainment:{[g.English]:"Entertainment",[g.Swedish]:"Underhållning",[g.Danish]:"Underholdning"},News:{[g.English]:"News",[g.Swedish]:"Nyheter",[g.Danish]:"Nyheder"},Short:{[g.English]:"Short",[g.Swedish]:"Kortfilm",[g.Danish]:"Kortfilm"},Bollywood:{[g.English]:"Bollywood",[g.Swedish]:"Bollywood",[g.Danish]:"Bollywood"},Concert:{[g.English]:"Concert",[g.Swedish]:"Konsert",[g.Danish]:"Koncert"},Arthouse:{[g.English]:"Arthouse",[g.Swedish]:"Arthouse",[g.Danish]:"Arthouse"},"Alternate Version":{[g.English]:"Alternate Version",[g.Swedish]:"Alternativ version",[g.Danish]:"Alternativ version"},"Reality TV":{[g.English]:"Reality TV",[g.Swedish]:"Reality-TV",[g.Danish]:"Reality-TV"},Culture:{[g.English]:"Culture",[g.Swedish]:"Kultur",[g.Danish]:"Kultur"},Drama:{[g.English]:"Drama",[g.Swedish]:"Drama",[g.Danish]:"Drama"},Crime:{[g.English]:"Crime",[g.Swedish]:"Kriminal",[g.Danish]:"Krimi"},Western:{[g.English]:"Western",[g.Swedish]:"Western",[g.Danish]:"Western"},Thriller:{[g.English]:"Thriller",[g.Swedish]:"Thriller",[g.Danish]:"Thriller"},Animation:{[g.English]:"Animation",[g.Swedish]:"Animerat",[g.Danish]:"Animation"},Mystery:{[g.English]:"Mystery",[g.Swedish]:"Mysterium",[g.Danish]:"Mysterium"},Science:{[g.English]:"Science",[g.Swedish]:"Vetenskap",[g.Danish]:"Videnskab"},Nature:{[g.English]:"Nature",[g.Swedish]:"Natur",[g.Danish]:"Natur"},War:{[g.English]:"War",[g.Swedish]:"Krig",[g.Danish]:"Krig"},"Sci-Fi":{[g.English]:"Sci-Fi",[g.Swedish]:"Sci-fi",[g.Danish]:"Sci-fi"},Documentary:{[g.English]:"Documentary",[g.Swedish]:"Dokumentär",[g.Danish]:"Dokumentar"},"Stand-up":{[g.English]:"Stand-up",[g.Swedish]:"Standup",[g.Danish]:"Stand-up"},"Talk Show":{[g.English]:"Talk Show",[g.Swedish]:"Talkshow",[g.Danish]:"Talkshow"},Fantasy:{[g.English]:"Fantasy",[g.Swedish]:"Fantasy",[g.Danish]:"Fantasy"},History:{[g.English]:"History",[g.Swedish]:"Historia",[g.Danish]:"Historie"},Adventure:{[g.English]:"Adventure",[g.Swedish]:"Äventyr",[g.Danish]:"Eventyr"},Action:{[g.English]:"Action",[g.Swedish]:"Action",[g.Danish]:"Action"},Horror:{[g.English]:"Horror",[g.Swedish]:"Skräck",[g.Danish]:"Gyser"},Comedy:{[g.English]:"Comedy",[g.Swedish]:"Komedi",[g.Danish]:"Komedie"},Biography:{[g.English]:"Biography",[g.Swedish]:"Biografi",[g.Danish]:"Biografi"},Music:{[g.English]:"Music",[g.Swedish]:"Musik",[g.Danish]:"Musik"},Sport:{[g.English]:"Sport",[g.Swedish]:"Sport",[g.Danish]:"Sport"},Romance:{[g.English]:"Romance",[g.Swedish]:"Romantik",[g.Danish]:"Romantik"},Kids:{[g.English]:"Kids",[g.Swedish]:"Barn",[g.Danish]:"Børn"},Lifestyle:{[g.English]:"Lifestyle",[g.Swedish]:"Livsstil",[g.Danish]:"Livsstil"},Musical:{[g.English]:"Musical",[g.Swedish]:"Musikal",[g.Danish]:"Musical"},Anime:{[g.English]:"Anime",[g.Swedish]:"Anime",[g.Danish]:"Anime"},Family:{[g.English]:"Family",[g.Swedish]:"Familj",[g.Danish]:"Familie"}};function pe(t,e=Fa()){var i;return((i=ru[t])==null?void 0:i[e])||t}const In=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),lu=t=>t;function Wr(t){const e=t-1;return e*e*e+1}function as(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Pt(t,{delay:e=0,duration:i=400,easing:a=lu}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function fa(t,{delay:e=0,duration:i=400,easing:a=Wr,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]=as(n),[f,b]=as(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 Va(t,{delay:e=0,duration:i=400,easing:a=Wr,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(y=>`${y[0].toUpperCase()}${y.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:y=>`overflow: hidden;opacity: ${Math.min(y*20,1)*o};${s}: ${y*c}px;padding-${d[0]}: ${y*v}px;padding-${d[1]}: ${y*p}px;margin-${d[0]}: ${y*f}px;margin-${d[1]}: ${y*b}px;border-${d[0]}-width: ${y*h}px;border-${d[1]}-width: ${y*_}px;min-${s}: 0`}}function ha(t,{delay:e=0,duration:i=400,easing:a=Wr,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 $(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.11.0-beta.1/dist/${e?"editorial.":""}mount.js`,t.onload=()=>{var n;return(n=window.PlayPilotMount)==null?void 0:n.mount()},document.body.appendChild(t)}})})();
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.11.0-beta.2/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 cg=Object.defineProperty;var ss=Ee=>{throw TypeError(Ee)};var dg=(Ee,Te,qe)=
2
2
  /*$vite$:1*/`,document.head.appendChild(Ee);const Te=!1;var qe=Array.isArray,Ha=Array.prototype.indexOf,Ar=Array.from,fs=Object.defineProperty,di=Object.getOwnPropertyDescriptor,Zn=Object.getOwnPropertyDescriptors,hs=Object.prototype,gs=Array.prototype,Lr=Object.getPrototypeOf,Yn=Object.isExtensible;function Vi(t){return typeof t=="function"}const vt=()=>{};function ms(t){return typeof(t==null?void 0:t.then)=="function"}function ys(t){return t()}function Mr(t){for(var e=0;e<t.length;e++)t[e]()}function Jn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Qn(t,e,i=!1){return t===void 0?i?e():e:t}function Ui(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Ke=2,Dr=4,Va=8,Xn=1<<24,It=16,Qt=32,Ti=64,Ua=128,wt=512,Xe=1024,nt=2048,Xt=4096,dt=8192,$t=16384,Wa=32768,jt=65536,$n=1<<17,el=1<<18,Wi=1<<19,tl=1<<20,ga=32768,qr=1<<21,Nr=1<<22,ui=1<<23,At=Symbol("$state"),il=Symbol("legacy props"),bs=Symbol(""),Gi=new class extends Error{constructor(){super(...arguments);zt(this,"name","StaleReactionError");zt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Rr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ws(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _s(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ks(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ss(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Es(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ts(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ps(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Cs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function zs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const al=1,rl=2,nl=4,Is=8,js=16,As=1,Ls=2,Ms=4,Ds=8,qs=16,Ns=1,Rs=2,Os=4,Bs=1,Fs=2,Ue=Symbol(),Hs="http://www.w3.org/1999/xhtml",Vs="http://www.w3.org/2000/svg",Us="@attach";function Ws(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Gs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ll(t){return t===this.v}function ol(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function sl(t){return!ol(t,this.v)}let Ki=!1,Ks=!1;function Zs(){Ki=!0}let Se=null;function Zi(t){Se=t}function Or(t){return cl().get(t)}function Br(t,e){return cl().set(t,e),e}function te(t,e=!1,i){Se={p:Se,i:!1,c:null,e:null,s:t,x:null,l:Ki&&!e?{s:null,u:null,$:[]}:null}}function ie(t){var e=Se,i=e.e;if(i!==null){e.e=null;for(var a of i)Al(a)}return t!==void 0&&(e.x=t),e.i=!0,Se=e.p,t??{}}function Pi(){return!Ki||Se!==null&&Se.l===null}function cl(t){return Se===null&&Rr(),Se.c??(Se.c=new Map(Ys(Se)||void 0))}function Ys(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Ci=[];function dl(){var t=Ci;Ci=[],Mr(t)}function ei(t){if(Ci.length===0&&!Ji){var e=Ci;queueMicrotask(()=>{e===Ci&&dl()})}Ci.push(t)}function Js(){for(;Ci.length>0;)dl()}function ul(t){var e=xe;if(e===null)return ye.f|=ui,t;if(e.f&Wa)Yi(t,e);else{if(!(e.f&Ua))throw t;e.b.error(t)}}function Yi(t,e){for(;e!==null;){if(e.f&Ua)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ga=new Set;let me=null,Ka=null,Re=null,ft=[],Za=null,Fr=!1,Ji=!1;const kr=class kr{constructor(){ue(this,He);zt(this,"committed",!1);zt(this,"current",new Map);zt(this,"previous",new Map);ue(this,ca,new Set);ue(this,da,new Set);ue(this,qi,0);ue(this,Ni,0);ue(this,qa,null);ue(this,ua,[]);ue(this,pa,[]);zt(this,"skipped_effects",new Set);zt(this,"is_fork",!1)}is_deferred(){return this.is_fork||D(this,Ni)>0}process(e){var a;ft=[],Ka=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)ze(this,He,Un).call(this,r,i);this.is_fork||ze(this,He,cs).call(this),this.is_deferred()?(ze(this,He,Hi).call(this,i.effects),ze(this,He,Hi).call(this,i.render_effects),ze(this,He,Hi).call(this,i.block_effects)):(Ka=this,me=null,fl(i.render_effects),fl(i.effects),Ka=null,(a=D(this,qa))==null||a.resolve()),Re=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&ui||(this.current.set(e,e.v),Re==null||Re.set(e,e.v))}activate(){me=this,this.apply()}deactivate(){me===this&&(me=null,Re=null)}flush(){if(this.activate(),ft.length>0){if(vl(),me!==null&&me!==this)return}else D(this,qi)===0&&this.process([]);this.deactivate()}discard(){for(const e of D(this,da))e(this);D(this,da).clear()}increment(e){ce(this,qi,D(this,qi)+1),e&&ce(this,Ni,D(this,Ni)+1)}decrement(e){ce(this,qi,D(this,qi)-1),e&&ce(this,Ni,D(this,Ni)-1),this.revive()}revive(){for(const e of D(this,ua))$e(e,nt),zi(e);for(const e of D(this,pa))$e(e,Xt),zi(e);ce(this,ua,[]),ce(this,pa,[]),this.flush()}oncommit(e){D(this,ca).add(e)}ondiscard(e){D(this,da).add(e)}settled(){return(D(this,qa)??ce(this,qa,Jn())).promise}static ensure(){if(me===null){const e=me=new kr;Ga.add(me),Ji||kr.enqueue(()=>{me===e&&e.flush()})}return me}static enqueue(e){ei(e)}apply(){}};ca=new WeakMap,da=new WeakMap,qi=new WeakMap,Ni=new WeakMap,qa=new WeakMap,ua=new WeakMap,pa=new WeakMap,He=new WeakSet,Un=function(e,i){var u;e.f^=Xe;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Qt|Ti))!==0,l=n&&(r&Xe)!==0,c=l||(r&dt)!==0||this.skipped_effects.has(a);if(a.f&Ua&&((u=a.b)!=null&&u.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){n?a.f^=Xe:r&Dr?i.effects.push(a):ka(a)&&(a.f&It&&i.block_effects.push(a),Sa(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,Hi).call(this,i.effects),ze(this,He,Hi).call(this,i.render_effects),ze(this,He,Hi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Hi=function(e){for(const i of e)(i.f&nt?D(this,ua):D(this,pa)).push(i),ze(this,He,Wn).call(this,i.deps),$e(i,Xe)},Wn=function(e){if(e!==null)for(const i of e)!(i.f&Ke)||!(i.f&ga)||(i.f^=ga,ze(this,He,Wn).call(this,i.deps))},cs=function(){if(D(this,Ni)===0){for(const e of D(this,ca))e();D(this,ca).clear()}D(this,qi)===0&&ze(this,He,ds).call(this)},ds=function(){var n;if(Ga.size>1){this.previous.clear();var e=Re,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ga){if(l===this){i=!1;continue}const c=[];for(const[d,u]of this.current){if(l.current.has(d))if(i&&u!==l.current.get(d))l.current.set(d,u);else continue;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=ft;ft=[];const d=new Set,u=new Map;for(const p of c)hl(p,s,d,u);if(ft.length>0){me=l,l.apply();for(const p of ft)ze(n=l,He,Un).call(n,p,a);l.deactivate()}ft=r}}me=null,Re=e}this.committed=!0,Ga.delete(this)};let Lt=kr;function pl(t){var e=Ji;Ji=!0;try{for(var i;;){if(Js(),ft.length===0&&(me==null||me.flush(),ft.length===0))return Za=null,i;vl()}}finally{Ji=e}}function vl(){var t=hi;Fr=!0;var e=null;try{var i=0;for(Ja(!0);ft.length>0;){var a=Lt.ensure();if(i++>1e3){var r,n;Qs()}a.process(ft),pi.clear()}}finally{Fr=!1,Ja(t),Za=null}}function Qs(){try{Ss()}catch(t){Yi(t,Za)}}let xt=null;function fl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&($t|dt))&&ka(a)&&(xt=new Set,Sa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?ql(a):a.fn=null),(xt==null?void 0:xt.size)>0)){pi.clear();for(const r of xt){if(r.f&($t|dt))continue;const n=[r];let l=r.parent;for(;l!==null;)xt.has(l)&&(xt.delete(l),n.push(l)),l=l.parent;for(let c=n.length-1;c>=0;c--){const s=n[c];s.f&($t|dt)||Sa(s)}}xt.clear()}}xt=null}}function hl(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ke?hl(r,e,i,a):n&(Nr|It)&&!(n&nt)&&gl(r,e,a)&&($e(r,nt),zi(r))}}function gl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ke&&gl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function zi(t){for(var e=Za=t;e.parent!==null;){e=e.parent;var i=e.f;if(Fr&&e===xe&&i&It&&!(i&el))return;if(i&(Ti|Qt)){if(!(i&Xe))return;e.f^=Xe}}ft.push(e)}function ml(t){let e=0,i=Dt(0),a;return()=>{wa()&&(o(i),Ya(()=>(e===0&&(a=Ot(()=>t(()=>vi(i)))),e+=1,()=>{ei(()=>{e-=1,e===0&&(a==null||a(),a=void 0,vi(i))})})))}}var Xs=jt|Wi|Ua;function $s(t,e,i){new ec(t,e,i)}class ec{constructor(e,i,a){ue(this,We);zt(this,"parent");ue(this,mt,!1);ue(this,yt);ue(this,Fn,null);ue(this,Ut);ue(this,Ri);ue(this,Wt);ue(this,bt,null);ue(this,ct,null);ue(this,Gt,null);ue(this,si,null);ue(this,xi,null);ue(this,Oi,0);ue(this,_i,0);ue(this,Bi,!1);ue(this,ki,null);ue(this,Sr,ml(()=>(ce(this,ki,Dt(D(this,Oi))),()=>{ce(this,ki,null)})));ce(this,yt,e),ce(this,Ut,i),ce(this,Ri,a),this.parent=xe.b,ce(this,mt,!!D(this,Ut).pending),ce(this,Wt,fi(()=>{xe.b=this;{var r=ze(this,We,Gn).call(this);try{ce(this,bt,lt(()=>a(r)))}catch(n){this.error(n)}D(this,_i)>0?ze(this,We,jr).call(this):ce(this,mt,!1)}return()=>{var n;(n=D(this,xi))==null||n.remove()}},Xs))}is_pending(){return D(this,mt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!D(this,Ut).pending}update_pending_count(e){ze(this,We,Kn).call(this,e),ce(this,Oi,D(this,Oi)+e),D(this,ki)&&ti(D(this,ki),D(this,Oi))}get_effect_pending(){return D(this,Sr).call(this),o(D(this,ki))}error(e){var i=D(this,Ut).onerror;let a=D(this,Ut).failed;if(D(this,Bi)||!i&&!a)throw e;D(this,bt)&&(Ze(D(this,bt)),ce(this,bt,null)),D(this,ct)&&(Ze(D(this,ct)),ce(this,ct,null)),D(this,Gt)&&(Ze(D(this,Gt)),ce(this,Gt,null));var r=!1,n=!1;const l=()=>{if(r){Gs();return}r=!0,n&&zs(),Lt.ensure(),ce(this,Oi,0),D(this,Gt)!==null&&Xi(D(this,Gt),()=>{ce(this,Gt,null)}),ce(this,mt,this.has_pending_snippet()),ce(this,bt,ze(this,We,Ir).call(this,()=>(ce(this,Bi,!1),lt(()=>D(this,Ri).call(this,D(this,yt)))))),D(this,_i)>0?ze(this,We,jr).call(this):ce(this,mt,!1)};var c=ye;try{ot(null),n=!0,i==null||i(e,l),n=!1}catch(s){Yi(s,D(this,Wt)&&D(this,Wt).parent)}finally{ot(c)}a&&ei(()=>{ce(this,Gt,ze(this,We,Ir).call(this,()=>{Lt.ensure(),ce(this,Bi,!0);try{return lt(()=>{a(D(this,yt),()=>e,()=>l)})}catch(s){return Yi(s,D(this,Wt).parent),null}finally{ce(this,Bi,!1)}}))})}}mt=new WeakMap,yt=new WeakMap,Fn=new WeakMap,Ut=new WeakMap,Ri=new WeakMap,Wt=new WeakMap,bt=new WeakMap,ct=new WeakMap,Gt=new WeakMap,si=new WeakMap,xi=new WeakMap,Oi=new WeakMap,_i=new WeakMap,Bi=new WeakMap,ki=new WeakMap,Sr=new WeakMap,We=new WeakSet,ug=function(){try{ce(this,bt,lt(()=>D(this,Ri).call(this,D(this,yt))))}catch(e){this.error(e)}ce(this,mt,!1)},pg=function(){const e=D(this,Ut).pending;e&&(ce(this,ct,lt(()=>e(D(this,yt)))),Lt.enqueue(()=>{var i=ze(this,We,Gn).call(this);ce(this,bt,ze(this,We,Ir).call(this,()=>(Lt.ensure(),lt(()=>D(this,Ri).call(this,i))))),D(this,_i)>0?ze(this,We,jr).call(this):(Xi(D(this,ct),()=>{ce(this,ct,null)}),ce(this,mt,!1))}))},Gn=function(){var e=D(this,yt);return D(this,mt)&&(ce(this,xi,qt()),D(this,yt).before(D(this,xi)),e=D(this,xi)),e},Ir=function(e){var i=xe,a=ye,r=Se;Rt(D(this,Wt)),ot(D(this,Wt)),Zi(D(this,Wt).ctx);try{return e()}catch(n){return ul(n),null}finally{Rt(i),ot(a),Zi(r)}},jr=function(){const e=D(this,Ut).pending;D(this,bt)!==null&&(ce(this,si,document.createDocumentFragment()),D(this,si).append(D(this,xi)),Ol(D(this,bt),D(this,si))),D(this,ct)===null&&ce(this,ct,lt(()=>e(D(this,yt))))},Kn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&ze(i=this.parent,We,Kn).call(i,e);return}ce(this,_i,D(this,_i)+e),D(this,_i)===0&&(ce(this,mt,!1),D(this,ct)&&Xi(D(this,ct),()=>{ce(this,ct,null)}),D(this,si)&&(D(this,yt).before(D(this,si)),ce(this,si,null)))};let Ii=null;function yl(t){Ii=t}function Ie(t,e){return e}function tc(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Kr(e[n].e,a,!0);Nl(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;cc(s),s.append(c),t.items.clear(),Mt(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var u=e[d];l||(t.items.delete(u.k),Mt(t,u.prev,u.next)),Ze(u.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Pe(t,e,i,a,r,n=null){var l=t,c=new Map,s=null,d=(e&nl)!==0,u=(e&al)!==0,p=(e&rl)!==0;if(d){var f=t;l=f.appendChild(qt())}var h=null,g=Vr(()=>{var E=i();return qe(E)?E:E==null?[]:Ar(E)}),m,w=!0;function y(){ic(x,m,l,e,a),h!==null&&(m.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Zr(h.effect),_.first=h.effect):Xi(h.effect,()=>{h=null}))}var _=fi(()=>{m=o(g);for(var E=m.length,z=new Set,P=me,T=null,R=zl(),A=0;A<E;A+=1){var L=m[A],k=a(L,A),I=w?null:c.get(k);I?(u&&ti(I.v,L),p?ti(I.i,A):I.i=A,R&&P.skipped_effects.delete(I.e)):(I=ac(w?l:null,T,L,k,A,r,e,i),w&&(I.o=!0,T===null?s=I:T.next=I,T=I),c.set(k,I)),z.add(k)}if(E===0&&n&&!h)if(w)h={fragment:null,effect:lt(()=>n(l))};else{var N=document.createDocumentFragment(),q=qt();N.append(q),h={fragment:N,effect:lt(()=>n(q))}}if(!w)if(R){for(const[M,Z]of c)z.has(M)||P.skipped_effects.add(Z.e);P.oncommit(y),P.ondiscard(()=>{})}else y();o(g)}),x={effect:_,flags:e,items:c,first:s};w=!1}function ic(t,e,i,a,r){var L,k,I,N;var n=(a&Is)!==0,l=e.length,c=t.items,s=t.first,d,u=null,p,f=[],h=[],g,m,w,y;if(n)for(y=0;y<l;y+=1)g=e[y],m=r(g,y),w=c.get(m),w.o&&((L=w.a)==null||L.measure(),(p??(p=new Set)).add(w));for(y=0;y<l;y+=1){if(g=e[y],m=r(g,y),w=c.get(m),t.first??(t.first=w),!w.o){w.o=!0;var _=u?u.next:s;Mt(t,u,w),Mt(t,w,_),Hr(w,_,i),u=w,f=[],h=[],s=u.next;continue}if(w.e.f&dt&&(Zr(w.e),n&&((k=w.a)==null||k.unfix(),(p??(p=new Set)).delete(w))),w!==s){if(d!==void 0&&d.has(w)){if(f.length<h.length){var x=h[0],E;u=x.prev;var z=f[0],P=f[f.length-1];for(E=0;E<f.length;E+=1)Hr(f[E],x,i);for(E=0;E<h.length;E+=1)d.delete(h[E]);Mt(t,z.prev,P.next),Mt(t,u,z),Mt(t,P,x),s=x,u=P,y-=1,f=[],h=[]}else d.delete(w),Hr(w,s,i),Mt(t,w.prev,w.next),Mt(t,w,u===null?t.first:u.next),Mt(t,u,w),u=w;continue}for(f=[],h=[];s!==null&&s.k!==m;)s.e.f&dt||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;w=s}f.push(w),u=w,s=w.next}if(s!==null||d!==void 0){for(var T=d===void 0?[]:Ar(d);s!==null;)s.e.f&dt||T.push(s),s=s.next;var R=T.length;if(R>0){var A=a&nl&&l===0?i:null;if(n){for(y=0;y<R;y+=1)(I=T[y].a)==null||I.measure();for(y=0;y<R;y+=1)(N=T[y].a)==null||N.fix()}tc(t,T,A)}}n&&ei(()=>{var q;if(p!==void 0)for(w of p)(q=w.a)==null||q.apply()})}function ac(t,e,i,a,r,n,l,c){var s=Ii,d=(l&al)!==0,u=(l&js)===0,p=d?u?Gr(i,!1,!1):Dt(i):i,f=l&rl?Dt(r):r,h={i:f,v:p,k:a,a:null,e:null,o:!1,prev:e,next:null};Ii=h;try{if(t===null){var g=document.createDocumentFragment();g.append(t=qt())}return h.e=lt(()=>n(t,p,f,c)),e!==null&&(e.next=h),h}finally{Ii=s}}function Hr(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=ba(n);r.before(n),n=l}}function Mt(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function bl(t,e,i,a){const r=Pi()?ya:Vr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=me,l=xe,c=wl();function s(){Promise.all(i.map(d=>rc(d))).then(d=>{c();try{a([...e.map(r),...d])}catch(u){l.f&$t||Yi(u,l)}n==null||n.deactivate(),ma()}).catch(d=>{Yi(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{n==null||n.deactivate(),ma()}}):s()}function wl(){var t=xe,e=ye,i=Se,a=me;return function(n=!0){Rt(t),ot(e),Zi(i),n&&(a==null||a.activate())}}function ma(){Rt(null),ot(null),Zi(null)}function ya(t){var e=Ke|nt,i=ye!==null&&ye.f&Ke?ye:null;return xe!==null&&(xe.f|=Wi),{ctx:Se,deps:null,effects:null,equals:ll,f:e,fn:t,reactions:null,rv:0,v:Ue,wv:0,parent:i??xe,ac:null}}function rc(t,e){let i=xe;i===null&&ws();var a=i.b,r=void 0,n=Dt(Ue),l=!ye,c=new Map;return mc(()=>{var f;var s=Jn();r=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===me&&d.committed&&d.deactivate(),ma()})}catch(h){s.reject(h),ma()}var d=me;if(l){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(f=c.get(d))==null||f.reject(Gi),c.delete(d),c.set(d,s)}const p=(h,g=void 0)=>{if(d.activate(),g)g!==Gi&&(n.f|=ui,ti(n,g));else{n.f&ui&&(n.f^=ui),ti(n,h);for(const[m,w]of c){if(c.delete(m),m===d)break;w.reject(Gi)}}l&&(a.update_pending_count(-1),d.decrement(u))};s.promise.then(p,h=>p(null,h||"unknown"))}),xa(()=>{for(const s of c.values())s.reject(Gi)}),new Promise(s=>{function d(u){function p(){u===r?s(n):d(r)}u.then(p,p)}d(r)})}function W(t){const e=ya(t);return Fl(e),e}function Vr(t){const e=ya(t);return e.equals=sl,e}function xl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ze(e[i])}}function nc(t){for(var e=t.parent;e!==null;){if(!(e.f&Ke))return e.f&$t?null:e;e=e.parent}return null}function Ur(t){var e,i=xe;Rt(nc(t));try{t.f&=~ga,xl(t),e=Gl(t)}finally{Rt(i)}return e}function _l(t){var e=Ur(t);if(t.equals(e)||(me!=null&&me.is_fork||(t.v=e),t.wv=Ul()),!Li)if(Re!==null)(wa()||me!=null&&me.is_fork)&&Re.set(t,e);else{var i=t.f&wt?Xe:Xt;$e(t,i)}}let Wr=new Set;const pi=new Map;let kl=!1;function Dt(t,e){var i={f:0,v:t,reactions:null,equals:ll,rv:0,wv:0};return i}function G(t,e){const i=Dt(t);return Fl(i),i}function Gr(t,e=!1,i=!0){var r;const a=Dt(t);return e||(a.equals=sl),Ki&&i&&Se!==null&&Se.l!==null&&((r=Se.l).s??(r.s=[])).push(a),a}function O(t,e,i=!1){ye!==null&&(!Nt||ye.f&$n)&&Pi()&&ye.f&(Ke|It|Nr|$n)&&!(tt!=null&&tt.includes(t))&&Cs();let a=i?je(e):e;return ti(t,a)}function ti(t,e){if(!t.equals(e)){var i=t.v;Li?pi.set(t,e):pi.set(t,i),t.v=e;var a=Lt.ensure();a.capture(t,i),t.f&Ke&&(t.f&nt&&Ur(t),$e(t,t.f&wt?Xe:Xt)),t.wv=Ul(),Sl(t,nt),Pi()&&xe!==null&&xe.f&Xe&&!(xe.f&(Qt|Ti))&&(ht===null?wc([t]):ht.push(t)),!a.is_fork&&Wr.size>0&&!kl&&lc()}return e}function lc(){kl=!1;var t=hi;Ja(!0);const e=Array.from(Wr);try{for(const i of e)i.f&Xe&&$e(i,Xt),ka(i)&&Sa(i)}finally{Ja(t)}Wr.clear()}function vi(t){O(t,t.v+1)}function Sl(t,e){var i=t.reactions;if(i!==null)for(var a=Pi(),r=i.length,n=0;n<r;n++){var l=i[n],c=l.f;if(!(!a&&l===xe)){var s=(c&nt)===0;if(s&&$e(l,e),c&Ke){var d=l;Re==null||Re.delete(d),c&ga||(c&wt&&(l.f|=ga),Sl(d,Xt))}else s&&(c&It&&xt!==null&&xt.add(l),zi(l))}}}function je(t){if(typeof t!="object"||t===null||At in t)return t;const e=Lr(t);if(e!==hs&&e!==gs)return t;var i=new Map,a=qe(t),r=G(0),n=ii,l=c=>{if(ii===n)return c();var s=ye,d=ii;ot(null),Vl(n);var u=c();return ot(s),Vl(d),u};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)&&Ts();var u=i.get(s);return u===void 0?u=l(()=>{var p=G(d.value);return i.set(s,p),p}):O(u,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const u=l(()=>G(Ue));i.set(s,u),vi(r)}}else O(d,Ue),vi(r);return!0},get(c,s,d){var h;if(s===At)return t;var u=i.get(s),p=s in c;if(u===void 0&&(!p||(h=di(c,s))!=null&&h.writable)&&(u=l(()=>{var g=je(p?c[s]:Ue),m=G(g);return m}),i.set(s,u)),u!==void 0){var f=o(u);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 u=i.get(s);u&&(d.value=o(u))}else if(d===void 0){var p=i.get(s),f=p==null?void 0:p.v;if(p!==void 0&&f!==Ue)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(c,s){var f;if(s===At)return!0;var d=i.get(s),u=d!==void 0&&d.v!==Ue||Reflect.has(c,s);if(d!==void 0||xe!==null&&(!u||(f=di(c,s))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=u?je(c[s]):Ue,g=G(h);return g}),i.set(s,d));var p=o(d);if(p===Ue)return!1}return u},set(c,s,d,u){var x;var p=i.get(s),f=s in c;if(a&&s==="length")for(var h=d;h<p.v;h+=1){var g=i.get(h+"");g!==void 0?O(g,Ue):h in c&&(g=l(()=>G(Ue)),i.set(h+"",g))}if(p===void 0)(!f||(x=di(c,s))!=null&&x.writable)&&(p=l(()=>G(void 0)),O(p,je(d)),i.set(s,p));else{f=p.v!==Ue;var m=l(()=>je(d));O(p,m)}var w=Reflect.getOwnPropertyDescriptor(c,s);if(w!=null&&w.set&&w.set.call(u,d),!f){if(a&&typeof s=="string"){var y=i.get("length"),_=Number(s);Number.isInteger(_)&&_>=y.v&&O(y,_+1)}vi(r)}return!0},ownKeys(c){o(r);var s=Reflect.ownKeys(c).filter(p=>{var f=i.get(p);return f===void 0||f.v!==Ue});for(var[d,u]of i)u.v!==Ue&&!(d in c)&&s.push(d);return s},setPrototypeOf(){Ps()}})}function El(t){try{if(t!==null&&typeof t=="object"&&At in t)return t[At]}catch{}return t}function oc(t,e){return Object.is(El(t),El(e))}var Ae,Tl,Pl,Cl;function sc(){if(Ae===void 0){Ae=window,Tl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Pl=di(e,"firstChild").get,Cl=di(e,"nextSibling").get,Yn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Yn(i)&&(i.__t=void 0)}}function qt(t=""){return document.createTextNode(t)}function Qi(t){return Pl.call(t)}function ba(t){return Cl.call(t)}function S(t,e){return Qi(t)}function J(t,e=!1){{var i=Qi(t);return i instanceof Comment&&i.data===""?ba(i):i}}function j(t,e=1,i=!1){let a=t;for(;e--;)a=ba(a);return a}function cc(t){t.textContent=""}function zl(){return!1}function dc(t,e){if(e){const i=document.body;t.autofocus=!0,ei(()=>{document.activeElement===i&&t.focus()})}}let Il=!1;function uc(){Il||(Il=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i.__on_r)==null||e.call(i)})},{capture:!0}))}function pc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);xa(()=>{for(var n of e)t.removeEventListener(n,i)})}function ji(t){var e=ye,i=xe;ot(null),Rt(null);try{return t()}finally{ot(e),Rt(i)}}function vc(t,e,i,a=i){t.addEventListener(e,()=>ji(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),uc()}function jl(t){xe===null&&(ye===null&&ks(),_s()),Li&&xs()}function fc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function _t(t,e,i){var a=xe;a!==null&&a.f&dt&&(t|=dt);var r={ctx:Se,deps:null,nodes_start:null,nodes_end:null,f:t|nt|wt,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{Sa(r),r.f|=Wa}catch(c){throw Ze(r),c}else e!==null&&zi(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Wi)&&(n=n.first,t&It&&t&jt&&n!==null&&(n.f|=jt)),n!==null&&(n.parent=a,a!==null&&fc(n,a),ye!==null&&ye.f&Ke&&!(t&Ti))){var l=ye;(l.effects??(l.effects=[])).push(n)}return r}function wa(){return ye!==null&&!Nt}function xa(t){const e=_t(Va,null,!1);return $e(e,Xe),e.teardown=t,e}function Be(t){jl();var e=xe.f,i=!ye&&(e&Qt)!==0&&(e&Wa)===0;if(i){var a=Se;(a.e??(a.e=[])).push(t)}else return Al(t)}function Al(t){return _t(Dr|tl,t,!1)}function hc(t){return jl(),_t(Va|tl,t,!0)}function gc(t){Lt.ensure();const e=_t(Ti|Wi,t,!0);return(i={})=>new Promise(a=>{i.outro?Xi(e,()=>{Ze(e),a(void 0)}):(Ze(e),a(void 0))})}function Ai(t){return _t(Dr,t,!1)}function mc(t){return _t(Nr|Wi,t,!0)}function Ya(t,e=0){return _t(Va|e,t,!0)}function U(t,e=[],i=[],a=[]){bl(a,e,i,r=>{_t(Va,()=>t(...r.map(o)),!0)})}function fi(t,e=0){var i=_t(It|e,t,!0);return i}function Ll(t,e=0){var i=_t(Xn|e,t,!0);return i}function lt(t){return _t(Qt|Wi,t,!0)}function Ml(t){var e=t.teardown;if(e!==null){const i=Li,a=ye;Bl(!0),ot(null);try{e.call(null)}finally{Bl(i),ot(a)}}}function Dl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&ji(()=>{r.abort(Gi)});var a=i.next;i.f&Ti?i.parent=null:Ze(i,e),i=a}}function yc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Qt||Ze(e),e=i}}function Ze(t,e=!0){var i=!1;(e||t.f&el)&&t.nodes_start!==null&&t.nodes_end!==null&&(bc(t.nodes_start,t.nodes_end),i=!0),Dl(t,e&&!i),Qa(t,0),$e(t,$t);var a=t.transitions;if(a!==null)for(const n of a)n.stop();Ml(t);var r=t.parent;r!==null&&r.first!==null&&ql(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function bc(t,e){for(;t!==null;){var i=t===e?null:ba(t);t.remove(),t=i}}function ql(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function Xi(t,e,i=!0){var a=[];Kr(t,a,!0),Nl(a,()=>{i&&Ze(t),e&&e()})}function Nl(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Kr(t,e,i){if(!(t.f&dt)){if(t.f^=dt,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&jt)!==0||(a.f&Qt)!==0&&(t.f&It)!==0;Kr(a,e,n?i:!1),a=r}}}function Zr(t){Rl(t,!0)}function Rl(t,e){if(t.f&dt){t.f^=dt,t.f&Xe||($e(t,nt),zi(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&jt)!==0||(i.f&Qt)!==0;Rl(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Ol(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ba(i);e.append(i),i=r}}let hi=!1;function Ja(t){hi=t}let Li=!1;function Bl(t){Li=t}let ye=null,Nt=!1;function ot(t){ye=t}let xe=null;function Rt(t){xe=t}let tt=null;function Fl(t){ye!==null&&(tt===null?tt=[t]:tt.push(t))}let it=null,ut=0,ht=null;function wc(t){ht=t}let Hl=1,_a=0,ii=_a;function Vl(t){ii=t}function Ul(){return++Hl}function ka(t){var e=t.f;if(e&nt)return!0;if(e&Ke&&(t.f&=-32769),e&Xt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(ka(n)&&_l(n),n.wv>t.wv)return!0}e&wt&&Re===null&&$e(t,Xe)}return!1}function Wl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(tt!=null&&tt.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ke?Wl(n,e,!1):e===n&&(i?$e(n,nt):n.f&Xe&&$e(n,Xt),zi(n))}}function Gl(t){var g;var e=it,i=ut,a=ht,r=ye,n=tt,l=Se,c=Nt,s=ii,d=t.f;it=null,ut=0,ht=null,ye=d&(Qt|Ti)?null:t,tt=null,Zi(t.ctx),Nt=!1,ii=++_a,t.ac!==null&&(ji(()=>{t.ac.abort(Gi)}),t.ac=null);try{t.f|=qr;var u=t.fn,p=u(),f=t.deps;if(it!==null){var h;if(Qa(t,ut),f!==null&&ut>0)for(f.length=ut+it.length,h=0;h<it.length;h++)f[ut+h]=it[h];else t.deps=f=it;if(hi&&wa()&&t.f&wt)for(h=ut;h<f.length;h++)((g=f[h]).reactions??(g.reactions=[])).push(t)}else f!==null&&ut<f.length&&(Qa(t,ut),f.length=ut);if(Pi()&&ht!==null&&!Nt&&f!==null&&!(t.f&(Ke|Xt|nt)))for(h=0;h<ht.length;h++)Wl(ht[h],t);return r!==null&&r!==t&&(_a++,ht!==null&&(a===null?a=ht:a.push(...ht))),t.f&ui&&(t.f^=ui),p}catch(m){return ul(m)}finally{t.f^=qr,it=e,ut=i,ht=a,ye=r,tt=n,Zi(l),Nt=c,ii=s}}function xc(t,e){let i=e.reactions;if(i!==null){var a=Ha.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ke&&(it===null||!it.includes(e))&&($e(e,Xt),e.f&wt&&(e.f^=wt,e.f&=-32769),xl(e),Qa(e,0))}function Qa(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)xc(t,i[a])}function Sa(t){var e=t.f;if(!(e&$t)){$e(t,Xe);var i=xe,a=hi;xe=t,hi=!0;try{e&(It|Xn)?yc(t):Dl(t),Ml(t);var r=Gl(t);t.teardown=typeof r=="function"?r:null,t.wv=Hl;var n;Te&&Ks&&t.f&nt&&t.deps}finally{hi=a,xe=i}}}async function Ea(){await Promise.resolve(),pl()}function o(t){var e=t.f,i=(e&Ke)!==0;if(ye!==null&&!Nt){var a=xe!==null&&(xe.f&$t)!==0;if(!a&&!(tt!=null&&tt.includes(t))){var r=ye.deps;if(ye.f&qr)t.rv<_a&&(t.rv=_a,it===null&&r!==null&&r[ut]===t?ut++:it===null?it=[t]:it.includes(t)||it.push(t));else{(ye.deps??(ye.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[ye]:n.includes(ye)||n.push(ye)}}}if(Li){if(pi.has(t))return pi.get(t);if(i){var l=t,c=l.v;return(!(l.f&Xe)&&l.reactions!==null||Zl(l))&&(c=Ur(l)),pi.set(l,c),c}}else i&&(!(Re!=null&&Re.has(t))||me!=null&&me.is_fork&&!wa())&&(l=t,ka(l)&&_l(l),hi&&wa()&&!(l.f&wt)&&Kl(l));if(Re!=null&&Re.has(t))return Re.get(t);if(t.f&ui)throw t.v;return t.v}function Kl(t){if(t.deps!==null){t.f^=wt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ke&&!(e.f&wt)&&Kl(e)}}function Zl(t){if(t.v===Ue)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(pi.has(e)||e.f&Ke&&Zl(e))return!0;return!1}function Ot(t){var e=Nt;try{return Nt=!0,t()}finally{Nt=e}}const _c=-7169;function $e(t,e){t.f=t.f&_c|e}function Yl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(At in t)Yr(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&At in i&&Yr(i)}}}function Yr(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{Yr(t[a],e)}catch{}const i=Lr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Zn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function kc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Sc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ec(t){return Sc.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 Pc(t){return t=t.toLowerCase(),Tc[t]??t}const Cc=["touchstart","touchmove"];function zc(t){return Cc.includes(t)}const Jl=new Set,Jr=new Set;function Qr(t,e,i,a={}){function r(n){if(a.capture||Ta.call(e,n),!n.cancelBubble)return ji(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ei(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function Ic(t,e,i,a={}){var r=Qr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function _e(t,e,i,a,r){var n={capture:a,passive:r},l=Qr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&xa(()=>{e.removeEventListener(t,l,n)})}function pe(t){for(var e=0;e<t.length;e++)Jl.add(t[e]);for(var i of Jr)i(t)}let Ql=null;function Ta(t){var w;var e=this,i=e.ownerDocument,a=t.type,r=((w=t.composedPath)==null?void 0:w.call(t))||[],n=r[0]||t.target;Ql=t;var l=0,c=Ql===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){fs(t,"currentTarget",{configurable:!0,get(){return n||i}});var u=ye,p=xe;ot(null),Rt(null);try{for(var f,h=[];n!==null;){var g=n.assignedSlot||n.parentNode||n.host||null;try{var m=n["__"+a];m!=null&&(!n.disabled||t.target===n)&&m.call(n,t)}catch(y){f?h.push(y):f=y}if(t.cancelBubble||g===e||g===null)break;n=g}if(f){for(let y of h)queueMicrotask(()=>{throw y});throw f}}finally{t.__root=e,delete t.currentTarget,ot(u),Rt(p)}}}function Xl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function $i(t,e){var i=xe;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Bs)!==0,a=(e&Fs)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Xl(n?t:"<!>"+t),i||(r=Qi(r)));var l=a||Tl?document.importNode(r,!0):r.cloneNode(!0);if(i){var c=Qi(l),s=l.lastChild;$i(c,s)}else $i(l,l);return l}}function jc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Xl(r),c=Qi(l);n=Qi(c)}var s=n.cloneNode(!0);return $i(s,s),s}}function Ye(t,e){return jc(t,e,"svg")}function kt(t=""){{var e=qt(t+"");return $i(e,e),e}}function ve(){var t=document.createDocumentFragment(),e=document.createComment(""),i=qt();return t.append(e,i),$i(e,i),t}function b(t,e){t!==null&&t.before(e)}let Xa=!0;function $a(t){Xa=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 Bt(t,e){return Ac(t,e)}const ea=new Map;function Ac(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){sc();var c=new Set,s=p=>{for(var f=0;f<p.length;f++){var h=p[f];if(!c.has(h)){c.add(h);var g=zc(h);e.addEventListener(h,Ta,{passive:g});var m=ea.get(h);m===void 0?(document.addEventListener(h,Ta,{passive:g}),ea.set(h,1)):ea.set(h,m+1)}}};s(Ar(Jl)),Jr.add(s);var d=void 0,u=gc(()=>{var p=i??e.appendChild(qt());return $s(p,{pending:()=>{}},f=>{if(n){te({});var h=Se;h.c=n}r&&(a.$$events=r),Xa=l,d=t(f,a)||{},Xa=!0,n&&ie()}),()=>{var g;for(var f of c){e.removeEventListener(f,Ta);var h=ea.get(f);--h===0?(document.removeEventListener(f,Ta),ea.delete(f)):ea.set(f,h)}Jr.delete(s),p!==i&&((g=p.parentNode)==null||g.removeChild(p))}});return Xr.set(d,u),d}let Xr=new WeakMap;function ta(t,e){const i=Xr.get(t);return i?(Xr.delete(t),i(e)):Promise.resolve()}class ia{constructor(e,i=!0){zt(this,"anchor");ue(this,Tt,new Map);ue(this,Kt,new Map);ue(this,pt,new Map);ue(this,Fi,new Set);ue(this,Na,!0);ue(this,Ra,()=>{var e=me;if(D(this,Tt).has(e)){var i=D(this,Tt).get(e),a=D(this,Kt).get(i);if(a)Zr(a),D(this,Fi).delete(i);else{var r=D(this,pt).get(i);r&&(D(this,Kt).set(i,r.effect),D(this,pt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of D(this,Tt)){if(D(this,Tt).delete(n),n===e)break;const c=D(this,pt).get(l);c&&(Ze(c.effect),D(this,pt).delete(l))}for(const[n,l]of D(this,Kt)){if(n===i||D(this,Fi).has(n))continue;const c=()=>{if(Array.from(D(this,Tt).values()).includes(n)){var d=document.createDocumentFragment();Ol(l,d),d.append(qt()),D(this,pt).set(n,{effect:l,fragment:d})}else Ze(l);D(this,Fi).delete(n),D(this,Kt).delete(n)};D(this,Na)||!a?(D(this,Fi).add(n),Xi(l,c,!1)):c()}}});ue(this,Er,e=>{D(this,Tt).delete(e);const i=Array.from(D(this,Tt).values());for(const[a,r]of D(this,pt))i.includes(a)||(Ze(r.effect),D(this,pt).delete(a))});this.anchor=e,ce(this,Na,i)}ensure(e,i){var a=me,r=zl();if(i&&!D(this,Kt).has(e)&&!D(this,pt).has(e))if(r){var n=document.createDocumentFragment(),l=qt();n.append(l),D(this,pt).set(e,{effect:lt(()=>i(l)),fragment:n})}else D(this,Kt).set(e,lt(()=>i(this.anchor)));if(D(this,Tt).set(a,e),r){for(const[c,s]of D(this,Kt))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of D(this,pt))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(D(this,Ra)),a.ondiscard(D(this,Er))}else D(this,Ra).call(this)}}Tt=new WeakMap,Kt=new WeakMap,pt=new WeakMap,Fi=new WeakMap,Na=new WeakMap,Ra=new WeakMap,Er=new WeakMap;const Lc=0,$r=1;function Pa(t,e,i,a,r){var n=Pi(),l=Ue,c=n?Dt(l):Gr(l,!1,!1),s=n?Dt(l):Gr(l,!1,!1),d=new ia(t);fi(()=>{var u=e(),p=!1;if(ms(u)){var f=wl(),h=!1;const g=m=>{if(!p){h=!0,f(!1),Lt.ensure();try{m()}finally{ma(),Ji||pl()}}};u.then(m=>{g(()=>{ti(c,m),d.ensure($r,a&&(w=>a(w,c)))})},m=>{g(()=>{if(ti(s,m),d.ensure($r,r&&(w=>r(w,s))),!r)throw s.v})}),ei(()=>{h||g(()=>{d.ensure(Lc,i)})})}else ti(c,u),d.ensure($r,a&&(g=>a(g,c)));return()=>{p=!0}})}function V(t,e,i=!1){var a=new ia(t),r=i?jt:0;function n(l,c){a.ensure(l,c)}fi(()=>{var l=!1;e((c,s=!0)=>{l=!0,n(s,c)}),l||n(!1,null)},r)}function Ca(t,e,i){var a=new ia(t),r=!Pi();fi(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Oe(t,e,...i){var a=new ia(t);fi(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},jt)}function en(t,e,i){var a=new ia(t);fi(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},jt)}function $l(t,e,i,a,r,n){var l=null,c=t,s=Ii,d=new ia(c,!1);fi(()=>{const u=e()||null;var p=u==="svg"?Vs:null;if(u===null){d.ensure(null,null),$a(!0);return}return d.ensure(u,f=>{var h=Ii;if(yl(s),u){if(l=p?document.createElementNS(p,u):document.createElement(u),$i(l,l),a){var g=l.appendChild(qt());a(l,g)}xe.nodes_end=l,f.before(l)}yl(h)}),$a(!0),()=>{u&&$a(!1)}},jt),xa(()=>{$a(!0)})}function Ft(t,e,i){Ai(()=>{var a=Ot(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Ya(()=>{var l=i();Yl(l),r&&ol(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function er(t,e){var i=void 0,a;Ll(()=>{i!==(i=e())&&(a&&(Ze(a),a=null),i&&(a=lt(()=>{Ai(()=>i(t))})))})}function eo(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=eo(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Mc(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=eo(t))&&(a&&(a+=" "),a+=e);return a}function Dc(t){return typeof t=="object"?Mc(t):t??""}const to=[...`
3
3
  \r\f \v\uFEFF`];function qc(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||to.includes(a[l-1]))&&(c===a.length||to.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function io(t,e=!1){var i=e?" !important;":";",a="";for(var r in t){var n=t[r];n!=null&&n!==""&&(a+=" "+r+": "+n+i)}return a}function tn(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Nc(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(tn)),r&&s.push(...Object.keys(r).map(tn));var d=0,u=-1;const m=t.length;for(var p=0;p<m;p++){var f=t[p];if(c?f==="/"&&t[p-1]==="*"&&(c=!1):n?n===f&&(n=!1):f==="/"&&t[p+1]==="*"?c=!0:f==='"'||f==="'"?n=f:f==="("?l++:f===")"&&l--,!c&&n===!1&&l===0){if(f===":"&&u===-1)u=p;else if(f===";"||p===m-1){if(u!==-1){var h=tn(t.substring(d,u).trim());if(!s.includes(h)){f!==";"&&p++;var g=t.substring(d,p).trim();i+=" "+g+";"}}d=p+1,u=-1}}}}return a&&(i+=io(a)),r&&(i+=io(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function we(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var c=qc(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 an(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 Fe(t,e,i,a){var r=t.__style;if(r!==e){var n=Nc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(an(t,i==null?void 0:i[0],a[0]),an(t,i==null?void 0:i[1],a[1],"important")):an(t,i,a));return a}function rn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!qe(e))return Ws();for(var a of t.options)a.selected=e.includes(ao(a));return}for(a of t.options){var r=ao(a);if(oc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Rc(t){var e=new MutationObserver(()=>{rn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),xa(()=>{e.disconnect()})}function ao(t){return"__value"in t?t.__value:t.value}const aa=Symbol("class"),ra=Symbol("style"),ro=Symbol("is custom element"),no=Symbol("is html");function Oc(t,e){var i=nn(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function lo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,i,a){var r=nn(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[bs]=i),i==null?t.removeAttribute(e):typeof i!="string"&&co(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Bc(t,e,i,a,r=!1,n=!1){var l=nn(t),c=l[ro],s=!l[no],d=e||{},u=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Dc(i.class):(a||i[aa])&&(i.class=null),i[ra]&&(i.style??(i.style=null));var f=co(t);for(const x in i){let E=i[x];if(u&&x==="value"&&E==null){t.value=t.__value="",d[x]=E;continue}if(x==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";we(t,h,E,a,e==null?void 0:e[aa],i[aa]),d[x]=E,d[aa]=i[aa];continue}if(x==="style"){Fe(t,E,e==null?void 0:e[ra],i[ra]),d[x]=E,d[ra]=i[ra];continue}var g=d[x];if(!(E===g&&!(E===void 0&&t.hasAttribute(x)))){d[x]=E;var m=x[0]+x[1];if(m!=="$$")if(m==="on"){const z={},P="$$"+x;let T=x.slice(2);var w=Ec(T);if(kc(T)&&(T=T.slice(0,-7),z.capture=!0),!w&&g){if(E!=null)continue;t.removeEventListener(T,d[P],z),d[P]=null}if(E!=null)if(w)t[`__${T}`]=E,pe([T]);else{let R=function(A){d[x].call(this,A)};d[P]=Qr(T,t,R,z)}else w&&(t[`__${T}`]=void 0)}else if(x==="style")ae(t,x,E);else if(x==="autofocus")dc(t,!!E);else if(!c&&(x==="__value"||x==="value"&&E!=null))t.value=t.__value=E;else if(x==="selected"&&u)lo(t,E);else{var y=x;s||(y=Pc(y));var _=y==="defaultValue"||y==="defaultChecked";if(E==null&&!c&&!_)if(l[x]=null,y==="value"||y==="checked"){let z=t;const P=e===void 0;if(y==="value"){let T=z.defaultValue;z.removeAttribute(y),z.defaultValue=T,z.value=z.__value=P?T:null}else{let T=z.defaultChecked;z.removeAttribute(y),z.defaultChecked=T,z.checked=P?T:!1}}else t.removeAttribute(x);else _||f.includes(y)&&(c||typeof E!="string")?(t[y]=E,y in l&&(l[y]=Ue)):typeof E!="function"&&ae(t,y,E)}}}return d}function oo(t,e,i=[],a=[],r=[],n,l=!1,c=!1){bl(r,i,a,s=>{var d=void 0,u={},p=t.nodeName==="SELECT",f=!1;if(Ll(()=>{var g=e(...s.map(o)),m=Bc(t,d,g,n,l,c);f&&p&&"value"in g&&rn(t,g.value);for(let y of Object.getOwnPropertySymbols(u))g[y]||Ze(u[y]);for(let y of Object.getOwnPropertySymbols(g)){var w=g[y];y.description===Us&&(!d||w!==d[y])&&(u[y]&&Ze(u[y]),u[y]=lt(()=>er(t,()=>w))),m[y]=w}d=m}),p){var h=t;Ai(()=>{rn(h,d.value,!0),Rc(h)})}f=!0})}function nn(t){return t.__attributes??(t.__attributes={[ro]:t.nodeName.includes("-"),[no]:t.namespaceURI===Hs})}var so=new Map;function co(t){var e=t.getAttribute("is")||t.nodeName,i=so.get(e);if(i)return i;so.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Zn(r);for(var l in a)a[l].set&&i.push(l);r=Lr(r)}return i}const Fc=()=>performance.now(),ai={tick:t=>requestAnimationFrame(t),now:()=>Fc(),tasks:new Set};function uo(){const t=ai.now();ai.tasks.forEach(e=>{e.c(t)||(ai.tasks.delete(e),e.f())}),ai.tasks.size!==0&&ai.tick(uo)}function Hc(t){let e;return ai.tasks.size===0&&ai.tick(uo),{promise:new Promise(i=>{ai.tasks.add(e={c:t,f:i})}),abort(){ai.tasks.delete(e)}}}function tr(t,e){ji(()=>{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 po(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Vc(r.trim());e[l]=n.trim()}return e}const Uc=t=>t;function Wc(t,e,i){var a=Ii,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=ir(this.element,s,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:s,width:d,height:u}=getComputedStyle(t);if(s!=="absolute"&&s!=="fixed"){var p=t.style;c={position:p.position,width:p.width,height:p.height,transform:p.transform},p.position="absolute",p.width=d,p.height=u;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)`;p.transform=p.transform?`${p.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 Me(t,e,i,a){var r=(t&Ns)!==0,n=(t&Rs)!==0,l=r&&n,c=(t&Os)!==0,s=l?"both":r?"in":"out",d,u=e.inert,p=e.style.overflow,f,h;function g(){return ji(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var m={is_global:c,in(){var x;if(e.inert=u,!r){h==null||h.abort(),(x=h==null?void 0:h.reset)==null||x.call(h);return}n||f==null||f.abort(),tr(e,"introstart"),f=ir(e,g(),h,1,()=>{tr(e,"introend"),f==null||f.abort(),f=d=void 0,e.style.overflow=p})},out(x){if(!n){x==null||x(),d=void 0;return}e.inert=!0,tr(e,"outrostart"),h=ir(e,g(),f,0,()=>{tr(e,"outroend"),x==null||x()})},stop:()=>{f==null||f.abort(),h==null||h.abort()}},w=xe;if((w.transitions??(w.transitions=[])).push(m),r&&Xa){var y=c;if(!y){for(var _=w.parent;_&&_.f&jt;)for(;(_=_.parent)&&!(_.f&It););y=!_||(_.f&Wa)!==0}y&&Ai(()=>{Ot(()=>m.in())})}}function ir(t,e,i,a,r){var n=a===1;if(Vi(e)){var l,c=!1;return ei(()=>{if(!c){var w=e({direction:n?"in":"out"});l=ir(t,w,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:vt,deactivate:vt,reset:vt,t:()=>a};const{delay:s=0,css:d,tick:u,easing:p=Uc}=e;var f=[];if(n&&i===void 0&&(u&&u(0,1),d)){var h=po(d(0,1));f.push(h,h)}var g=()=>1-a,m=t.animate(f,{duration:s,fill:"forwards"});return m.onfinish=()=>{m.cancel();var w=(i==null?void 0:i.t())??1-a;i==null||i.abort();var y=a-w,_=e.duration*Math.abs(y),x=[];if(_>0){var E=!1;if(d)for(var z=Math.ceil(_/16.666666666666668),P=0;P<=z;P+=1){var T=w+y*p(P/z),R=po(d(T,1-T));x.push(R),E||(E=R.overflow==="hidden")}E&&(t.style.overflow="hidden"),g=()=>{var A=m.currentTime;return w+y*p(A/_)},u&&Hc(()=>{if(m.playState!=="running")return!1;var A=g();return u(A,1-A),!0})}m=t.animate(x,{duration:_,fill:"forwards"}),m.onfinish=()=>{g=()=>a,u==null||u(a,1-a),r()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{a===0&&(u==null||u(1,0))},t:()=>g()}}function za(t,e,i=e){var a=new WeakSet;vc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=ln(t)?on(n):n,i(n),me!==null&&a.add(me),await Ea(),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(ln(t)?on(t.value):t.value),me!==null&&a.add(me)),Ya(()=>{var r=e();if(t===document.activeElement){var n=Ka??me;if(a.has(n))return}ln(t)&&r===on(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function ln(t){var e=t.type;return e==="number"||e==="range"}function on(t){return t===""?null:+t}const Pr=class Pr{constructor(e){ue(this,Tr);ue(this,Si,new WeakMap);ue(this,va);ue(this,Oa);ce(this,Oa,e)}observe(e,i){var a=D(this,Si).get(e)||new Set;return a.add(i),D(this,Si).set(e,a),ze(this,Tr,us).call(this).observe(e,D(this,Oa)),()=>{var r=D(this,Si).get(e);r.delete(i),r.size===0&&(D(this,Si).delete(e),D(this,va).unobserve(e))}}};Si=new WeakMap,va=new WeakMap,Oa=new WeakMap,Tr=new WeakSet,us=function(){return D(this,va)??ce(this,va,new ResizeObserver(e=>{for(var i of e){Pr.entries.set(i.target,i);for(var a of D(this,Si).get(i.target)||[])a(i)}}))},zt(Pr,"entries",new WeakMap);let sn=Pr;var Gc=new sn({box:"border-box"});function St(t,e,i){var a=Gc.observe(t,()=>i(t[e]));Ai(()=>(Ot(()=>i(t[e])),a))}function vo(t,e){return t===e||(t==null?void 0:t[At])===e}function Je(t={},e,i,a){return Ai(()=>{var r,n;return Ya(()=>{r=n,n=[],Ot(()=>{t!==i(...n)&&(e(t,...n),r&&vo(i(...r),t)&&e(null,...r))})}),()=>{ei(()=>{n&&vo(i(...n),t)&&e(null,...n)})}}),t}function ar(t,e){pc(window,["resize"],()=>ji(()=>e(window[t])))}function cn(t=!1){const e=Se,i=e.l.u;if(!i)return;let a=()=>Yl(e.s);if(t){let r=0,n={};const l=ya(()=>{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&&hc(()=>{fo(e,a),Mr(i.b)}),Be(()=>{const r=Ot(()=>i.m.map(ys));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Be(()=>{fo(e,a),Mr(i.a)})}function fo(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let rr=!1;function Kc(t){var e=rr;try{return rr=!1,[t(),rr]}finally{rr=e}}const Zc={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ho(t,e,i){return new Proxy({props:t,exclude:e},Zc)}const Yc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Vi(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];Vi(r)&&(r=r());const n=di(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(Vi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=di(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===At||e===il)return!1;for(let i of t.props)if(Vi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Vi(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 dn(...t){return new Proxy({props:t},Yc)}function B(t,e,i,a){var x;var r=!Ki||(i&Ls)!==0,n=(i&Ds)!==0,l=(i&qs)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?Ot(a):a),c),u;if(n){var p=At in t||il in t;u=((x=di(t,e))==null?void 0:x.set)??(p&&e in t?E=>t[e]=E:void 0)}var f,h=!1;n?[f,h]=Kc(()=>t[e]):f=t[e],f===void 0&&a!==void 0&&(f=d(),u&&(r&&Es(),u(f)));var g;if(r?g=()=>{var E=t[e];return E===void 0?d():(s=!0,E)}:g=()=>{var E=t[e];return E!==void 0&&(c=void 0),E===void 0?c:E},r&&!(i&Ms))return g;if(u){var m=t.$$legacy;return function(E,z){return arguments.length>0?((!r||!z||m||h)&&u(z?g():E),E):g()}}var w=!1,y=(i&As?ya:Vr)(()=>(w=!1,g()));n&&o(y);var _=xe;return function(E,z){if(arguments.length>0){const P=z?o(y):r&&n?je(E):E;return O(y,P),w=!0,c!==void 0&&(c=P),E}return Li&&w||_.f&$t?y.v:o(y)}}function st(t){Se===null&&Rr(),Ki&&Se.l!==null?Jc(Se).m.push(t):Be(()=>{const e=Ot(t);if(typeof e=="function")return e})}function un(t){Se===null&&Rr(),st(()=>()=>Ot(t))}function Jc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Qc="5";typeof window<"u"&&((ns=window.__svelte??(window.__svelte={})).v??(ns.v=new Set)).add(Qc);function gi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Xc="https://www.playpilot.com",$c="https://partner-api.playpilot.tech/1.0",ed="https://img-external.playpilot.tech",td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",mi=600,pn={};async function ri(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!nr()&&i==="GET";if(r&&t in pn)return pn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch($c+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&&(pn[t]=s),s}const go="EncryptedToken",mo="articleReplacementEditToken",id="playpilot-editorial-mode";async function yo({href:t=window.location.href,throwError:e=!1}={}){try{const i=gi();if(!i)throw new Error("No token was provided");const a=bo(t);if(!a)throw new Error("Could not be authenticated");return await ri(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),ad(a),!0}catch(i){if(console.error(i),e)throw i}finally{rd()}return!1}function bo(t=""){var a,r;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const n=new URL(t).searchParams.get(mo);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${go}=`).pop())==null?void 0:r.split(";")[0])||""}function ad(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=go+"="+t+";"+a+";path=/"}function nr(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(id)==="true"||!!t}function rd(){const t=new URL(window.location.href);t.searchParams.delete(mo),window.history.replaceState({},"",t)}function nd(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 vn(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 Ia(){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 wo(t,e=""){const i=[],a=[t];for(;a.length>0;){const r=a.pop();if(i.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const n=Array.from(r.childNodes).some(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 fn(){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 hn(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function gn(t){const e=fn(),i=wo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=hn(i);return{parentElement:e,elements:i,pageText:a}}function xo(){const t=fn();return{content_heading:ld(t),content_modified_time:od(t),content_published_time:sd(t)}}function ld(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function od(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=_o().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function sd(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=_o().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function mn(t){try{return new Date(t).toISOString()}catch{return null}}function _o(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Mi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function yn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function cd(t){return!!(t.exclude_urls_pattern&&Mi().match(new RegExp(t.exclude_urls_pattern)))}let bn=null;async function lr(t,{url:e=Mi(),hash:i=nd(t||""),params:a={},method:r="GET"}={}){const n=gi(),l=nr()?await yo():!1,c=Ia();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=xo(),d=await ri(s,{method:"POST",body:a})):d=await ri(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function ko(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;bn&&clearTimeout(bn);const c=async(s,d)=>{let u;try{try{u=await lr(t)}catch(p){throw(p==null?void 0:p.status)===404&&(u=await lr(t,{method:"POST"}),u.ai_enabled&&(u=await lr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await dd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=So(u.manual_injections||[]),u.ai_injections=So(u.ai_injections||[]),s(u);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&n(u),bn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function dd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=xo().content_modified_time,a=e.content_modified_time?mn(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 lr(t,{params:{run_ai:!0},method:"POST"})}function So(t){return t.map(e=>({...e,key:ud(e.sid)}))}function ud(t){return t+"-"+vn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function vd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function fd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function wn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Eo(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function To(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function hd(t,e,i,a){const r=fd(e),n=wn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),u=c.replace(d,i);return l+u}function gd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function yi(t){return wn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function md(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=Po(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=Po(Co(n,2)),s=Co(l,2);return{before:c,after:s}}function Po(t){return t.split("").reverse().join("")}function Co(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function or(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function yd(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 bd(t,e,i,a){const n=yd(t,i,a).filter(({match:c})=>wn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function wd(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 xd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)vd(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 kd(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 zo(t){return t.ctrlKey||t.metaKey||t.button!==0}const oe={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Et={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},bi={Card:"tpi_card",Link:"tpi_link"};function Sd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function sr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const cr=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Ed(t=[]){return t.map(e=>{var i;return((i=cr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const xn="playpilot_user_id";function Td(){if(!Io())return null;try{const t=localStorage.getItem(xn);return t||(localStorage.setItem(xn,vn(16)),localStorage.getItem(xn))}catch{return null}}function Io(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&gt("tracking")}const Pd="https://insights.playpilot.net";async function se(t,e=null,i={}){var r,n,l,c,s;if(sr())return;if(!gt("tracking")){zd(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:Ed(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Io()&&(i.user_id=Td(),i.region=window.PlayPilotLinkInjections.region),i.version="8.11.0-beta.1",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Mi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>mi?"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(Pd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Cd({event:t,payload:i})}function Cd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function jo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function zd(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 Id(){if(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])se(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Ao(){if(!gt("ads"))return[];const t=gi();if(!t)throw new Error("No token was provided");try{return await ri(`/ads/browse/?api-token=${t}`)}catch(e){throw se(oe.AdsFetchFailed,null,{status:e.status}),e}}function ja(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function jd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function _n(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 se(oe.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 kn(t={}){const e=gi();if(!e)throw new Error("No token was provided");return t={...t,language:Ia(),include_count:"false"},t.region!==null&&(t.region=t.region||await _n()),await ri(`/titles/browse?api-token=${e}&`+yn(t))}async function Ld(t){return(await kn({related_to_sid:t.sid})).results}const Md={"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 Heading":{[v.English]:"Discover and search all movies and tv-shows",[v.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[v.Danish]:"Opdag og søg i alle film og tv-serier"},"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"},"-popularity":{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},"-new":{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"-best":{[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 re(t,e=Ia()){var i;return((i=Md[t])==null?void 0:i[e])||t}const dr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Dd=t=>t;function Lo(t){const e=t-1;return e*e*e+1}function Mo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ni(t,{delay:e=0,duration:i=400,easing:a=Dd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Aa(t,{delay:e=0,duration:i=400,easing:a=Lo,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,u=s*(1-l),[p,f]=Mo(r),[h,g]=Mo(n);return{delay:e,duration:i,easing:a,css:(m,w)=>`
5
+ `)}function gn(t){const e=fn(),i=wo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=hn(i);return{parentElement:e,elements:i,pageText:a}}function xo(){const t=fn();return{content_heading:ld(t),content_modified_time:od(t),content_published_time:sd(t)}}function ld(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function od(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=_o().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function sd(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=_o().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function mn(t){try{return new Date(t).toISOString()}catch{return null}}function _o(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Mi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function yn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function cd(t){return!!(t.exclude_urls_pattern&&Mi().match(new RegExp(t.exclude_urls_pattern)))}let bn=null;async function lr(t,{url:e=Mi(),hash:i=nd(t||""),params:a={},method:r="GET"}={}){const n=gi(),l=nr()?await yo():!1,c=Ia();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=xo(),d=await ri(s,{method:"POST",body:a})):d=await ri(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function ko(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;bn&&clearTimeout(bn);const c=async(s,d)=>{let u;try{try{u=await lr(t)}catch(p){throw(p==null?void 0:p.status)===404&&(u=await lr(t,{method:"POST"}),u.ai_enabled&&(u=await lr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await dd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=So(u.manual_injections||[]),u.ai_injections=So(u.ai_injections||[]),s(u);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&n(u),bn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function dd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=xo().content_modified_time,a=e.content_modified_time?mn(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 lr(t,{params:{run_ai:!0},method:"POST"})}function So(t){return t.map(e=>({...e,key:ud(e.sid)}))}function ud(t){return t+"-"+vn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function vd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function fd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function wn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Eo(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function To(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function hd(t,e,i,a){const r=fd(e),n=wn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),u=c.replace(d,i);return l+u}function gd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function yi(t){return wn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function md(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=Po(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=Po(Co(n,2)),s=Co(l,2);return{before:c,after:s}}function Po(t){return t.split("").reverse().join("")}function Co(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function or(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function yd(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 bd(t,e,i,a){const n=yd(t,i,a).filter(({match:c})=>wn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function wd(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 xd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)vd(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 kd(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 zo(t){return t.ctrlKey||t.metaKey||t.button!==0}const oe={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Et={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},bi={Card:"tpi_card",Link:"tpi_link"};function Sd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function sr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const cr=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Ed(t=[]){return t.map(e=>{var i;return((i=cr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const xn="playpilot_user_id";function Td(){if(!Io())return null;try{const t=localStorage.getItem(xn);return t||(localStorage.setItem(xn,vn(16)),localStorage.getItem(xn))}catch{return null}}function Io(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&gt("tracking")}const Pd="https://insights.playpilot.net";async function se(t,e=null,i={}){var r,n,l,c,s;if(sr())return;if(!gt("tracking")){zd(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:Ed(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Io()&&(i.user_id=Td(),i.region=window.PlayPilotLinkInjections.region),i.version="8.11.0-beta.2",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Mi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>mi?"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(Pd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Cd({event:t,payload:i})}function Cd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function jo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function zd(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 Id(){if(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])se(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Ao(){if(!gt("ads"))return[];const t=gi();if(!t)throw new Error("No token was provided");try{return await ri(`/ads/browse/?api-token=${t}`)}catch(e){throw se(oe.AdsFetchFailed,null,{status:e.status}),e}}function ja(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function jd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function _n(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 se(oe.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 kn(t={}){const e=gi();if(!e)throw new Error("No token was provided");return t={...t,language:Ia(),include_count:"false"},t.region!==null&&(t.region=t.region||await _n()),await ri(`/titles/browse?api-token=${e}&`+yn(t))}async function Ld(t){return(await kn({related_to_sid:t.sid})).results}const Md={"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 Heading":{[v.English]:"Discover and search all movies and tv-shows",[v.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[v.Danish]:"Opdag og søg i alle film og tv-serier"},"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"},"-popularity":{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},"-new":{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"-best":{[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 re(t,e=Ia()){var i;return((i=Md[t])==null?void 0:i[e])||t}const dr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Dd=t=>t;function Lo(t){const e=t-1;return e*e*e+1}function Mo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ni(t,{delay:e=0,duration:i=400,easing:a=Dd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Aa(t,{delay:e=0,duration:i=400,easing:a=Lo,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,u=s*(1-l),[p,f]=Mo(r),[h,g]=Mo(n);return{delay:e,duration:i,easing:a,css:(m,w)=>`
6
6
  transform: ${d} translate(${(1-m)*p}${f}, ${(1-m)*h}${g});
7
7
  opacity: ${s-u*w}`}}function na(t,{delay:e=0,duration:i=400,easing:a=Lo,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),c=+l.opacity,s=l.transform==="none"?"":l.transform,d=1-r,u=c*(1-n);return{delay:e,duration:i,easing:a,css:(p,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.11.0-beta.1",
3
+ "version": "8.11.0-beta.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -0,0 +1,105 @@
1
+ // vite._mount.config.js
2
+ import path from "path";
3
+ import * as dotenv from "file:///C:/Sites/playpilot-link-injection/node_modules/dotenv/lib/main.js";
4
+ import { defineConfig } from "file:///C:/Sites/playpilot-link-injection/node_modules/vitest/dist/config.js";
5
+ import { svelte } from "file:///C:/Sites/playpilot-link-injection/node_modules/@sveltejs/vite-plugin-svelte/src/index.js";
6
+ import cssInjectedByJsPlugin from "file:///C:/Sites/playpilot-link-injection/node_modules/vite-plugin-css-injected-by-js/dist/esm/index.js";
7
+
8
+ // package.json
9
+ var package_default = {
10
+ name: "@playpilot/tpi",
11
+ version: "8.11.0-beta.2",
12
+ type: "module",
13
+ scripts: {
14
+ dev: "vite dev",
15
+ "dev-build": "npx http-server . /build.html -p 3000",
16
+ build: "vite build --config vite._main.config.js && vite build --config vite._mount.config.js && vite build --config vite._mount.config.js --mode editorial",
17
+ preview: "vite preview",
18
+ check: "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
19
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
20
+ format: "prettier --write .",
21
+ lint: "prettier --check . && eslint .",
22
+ "test:unit": "vitest",
23
+ test: "npm run test:unit -- --run",
24
+ release: "node release.js"
25
+ },
26
+ devDependencies: {
27
+ "@playpilot/retargeting-tracking": "^0.1.0",
28
+ "@sveltejs/adapter-auto": "^7.0.1",
29
+ "@sveltejs/kit": "^2.56.1",
30
+ "@sveltejs/vite-plugin-svelte": "^4.0.0",
31
+ "@testing-library/svelte": "^5.2.6",
32
+ "@types/node": "^25.5.2",
33
+ "@typescript-eslint/eslint-plugin": "^8.32.1",
34
+ "@typescript-eslint/parser": "^8.32.1",
35
+ dotenv: "^17.4.1",
36
+ eslint: "^9.27.0",
37
+ "eslint-config-prettier": "^9.1.0",
38
+ "eslint-plugin-svelte": "^3.15.0",
39
+ globals: "^15.0.0",
40
+ "happy-dom": "^16.8.1",
41
+ prettier: "^3.8.3",
42
+ "prettier-plugin-svelte": "^3.2.6",
43
+ sass: "^1.99.0",
44
+ svelte: "5.44.1",
45
+ "svelte-check": "^4.0.0",
46
+ "svelte-preprocess": "^6.0.3",
47
+ "svelte-tiny-slider": "^2.7.1",
48
+ typescript: "^5.9.3",
49
+ "typescript-eslint": "^8.59.2",
50
+ vite: "^5.4.21",
51
+ "vite-plugin-css-injected-by-js": "^4.0.1",
52
+ vitest: "^2.1.9"
53
+ }
54
+ };
55
+
56
+ // vite._mount.config.js
57
+ var __vite_injected_original_dirname = "C:\\Sites\\playpilot-link-injection";
58
+ dotenv.config({ path: ".env" });
59
+ var vite_mount_config_default = defineConfig(({ mode }) => {
60
+ const isEditiorial = mode === "editorial";
61
+ return {
62
+ plugins: [
63
+ svelte(),
64
+ cssInjectedByJsPlugin(),
65
+ injectEnvVariables
66
+ ],
67
+ build: {
68
+ emptyOutDir: false,
69
+ rollupOptions: {
70
+ input: "./src/mount.ts",
71
+ output: {
72
+ format: "iife",
73
+ name: "PlayPilotMount",
74
+ entryFileNames: isEditiorial ? "editorial.mount.js" : "mount.js"
75
+ }
76
+ }
77
+ },
78
+ resolve: {
79
+ alias: {
80
+ "$lib": path.resolve(__vite_injected_original_dirname, "./src/lib")
81
+ }
82
+ },
83
+ define: {
84
+ __SCRIPT_VERSION__: JSON.stringify(package_default.version),
85
+ __IS_EDITORIAL_SCRIPT__: JSON.stringify(isEditiorial)
86
+ }
87
+ };
88
+ });
89
+ var injectEnvVariables = {
90
+ name: "resolve-env-variables",
91
+ /** @param {string} id */
92
+ resolveId(id) {
93
+ if (id === "$env/static/public") return "\0$env/static/public";
94
+ },
95
+ /** @param {string} id */
96
+ load(id) {
97
+ if (id === "\0$env/static/public") {
98
+ return Object.entries(process.env).filter(([key]) => key.startsWith("PUBLIC_")).map(([key, value]) => `export const ${key} = ${JSON.stringify(value)};`).join("\n");
99
+ }
100
+ }
101
+ };
102
+ export {
103
+ vite_mount_config_default as default
104
+ };
105
+ //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5fbW91bnQuY29uZmlnLmpzIiwgInBhY2thZ2UuanNvbiJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIkM6XFxcXFNpdGVzXFxcXHBsYXlwaWxvdC1saW5rLWluamVjdGlvblwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcU2l0ZXNcXFxccGxheXBpbG90LWxpbmstaW5qZWN0aW9uXFxcXHZpdGUuX21vdW50LmNvbmZpZy5qc1wiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9pbXBvcnRfbWV0YV91cmwgPSBcImZpbGU6Ly8vQzovU2l0ZXMvcGxheXBpbG90LWxpbmstaW5qZWN0aW9uL3ZpdGUuX21vdW50LmNvbmZpZy5qc1wiO2ltcG9ydCBwYXRoIGZyb20gJ3BhdGgnXHJcbmltcG9ydCAqIGFzIGRvdGVudiBmcm9tICdkb3RlbnYnXHJcbmltcG9ydCB7IGRlZmluZUNvbmZpZyB9IGZyb20gJ3ZpdGVzdC9jb25maWcnXHJcbmltcG9ydCB7IHN2ZWx0ZSB9IGZyb20gJ0BzdmVsdGVqcy92aXRlLXBsdWdpbi1zdmVsdGUnXHJcbmltcG9ydCBjc3NJbmplY3RlZEJ5SnNQbHVnaW4gZnJvbSAndml0ZS1wbHVnaW4tY3NzLWluamVjdGVkLWJ5LWpzJ1xyXG5pbXBvcnQgcGFja2FnZUpzb24gZnJvbSAnLi9wYWNrYWdlLmpzb24nXHJcblxyXG5kb3RlbnYuY29uZmlnKHsgcGF0aDogJy5lbnYnIH0pXHJcblxyXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoKHsgbW9kZSB9KSA9PiB7XHJcbiAgY29uc3QgaXNFZGl0aW9yaWFsID0gbW9kZSA9PT0gJ2VkaXRvcmlhbCdcclxuXHJcbiAgcmV0dXJuIHtcclxuICAgIHBsdWdpbnM6IFtcclxuICAgICAgc3ZlbHRlKCksXHJcbiAgICAgIGNzc0luamVjdGVkQnlKc1BsdWdpbigpLFxyXG4gICAgICBpbmplY3RFbnZWYXJpYWJsZXMsXHJcbiAgICBdLFxyXG5cclxuICAgIGJ1aWxkOiB7XHJcbiAgICAgIGVtcHR5T3V0RGlyOiBmYWxzZSxcclxuICAgICAgcm9sbHVwT3B0aW9uczoge1xyXG4gICAgICAgIGlucHV0OiAnLi9zcmMvbW91bnQudHMnLFxyXG4gICAgICAgIG91dHB1dDoge1xyXG4gICAgICAgICAgZm9ybWF0OiAnaWlmZScsXHJcbiAgICAgICAgICBuYW1lOiAnUGxheVBpbG90TW91bnQnLFxyXG4gICAgICAgICAgZW50cnlGaWxlTmFtZXM6IGlzRWRpdGlvcmlhbCA/ICdlZGl0b3JpYWwubW91bnQuanMnIDogJ21vdW50LmpzJyxcclxuICAgICAgICB9LFxyXG4gICAgICB9LFxyXG4gICAgfSxcclxuXHJcbiAgICByZXNvbHZlOiB7XHJcbiAgICAgIGFsaWFzOiB7XHJcbiAgICAgICAgJyRsaWInOiBwYXRoLnJlc29sdmUoX19kaXJuYW1lLCAnLi9zcmMvbGliJyksXHJcbiAgICAgIH0sXHJcbiAgICB9LFxyXG5cclxuICAgIGRlZmluZToge1xyXG4gICAgICBfX1NDUklQVF9WRVJTSU9OX186IEpTT04uc3RyaW5naWZ5KHBhY2thZ2VKc29uLnZlcnNpb24pLFxyXG4gICAgICBfX0lTX0VESVRPUklBTF9TQ1JJUFRfXzogSlNPTi5zdHJpbmdpZnkoaXNFZGl0aW9yaWFsKSxcclxuICAgIH0sXHJcbiAgfVxyXG59KVxyXG5cclxuY29uc3QgaW5qZWN0RW52VmFyaWFibGVzID0ge1xyXG4gIG5hbWU6ICdyZXNvbHZlLWVudi12YXJpYWJsZXMnLFxyXG4gIC8qKiBAcGFyYW0ge3N0cmluZ30gaWQgKi9cclxuICByZXNvbHZlSWQoaWQpIHtcclxuICAgIGlmIChpZCA9PT0gJyRlbnYvc3RhdGljL3B1YmxpYycpIHJldHVybiAnXFwwJGVudi9zdGF0aWMvcHVibGljJ1xyXG4gIH0sXHJcbiAgLyoqIEBwYXJhbSB7c3RyaW5nfSBpZCAqL1xyXG4gIGxvYWQoaWQpIHtcclxuICAgIGlmIChpZCA9PT0gJ1xcMCRlbnYvc3RhdGljL3B1YmxpYycpIHtcclxuICAgICAgcmV0dXJuIE9iamVjdC5lbnRyaWVzKHByb2Nlc3MuZW52KVxyXG4gICAgICAgIC5maWx0ZXIoKFtrZXldKSA9PiBrZXkuc3RhcnRzV2l0aCgnUFVCTElDXycpKVxyXG4gICAgICAgIC5tYXAoKFtrZXksIHZhbHVlXSkgPT4gYGV4cG9ydCBjb25zdCAke2tleX0gPSAke0pTT04uc3RyaW5naWZ5KHZhbHVlKX07YClcclxuICAgICAgICAuam9pbignXFxuJylcclxuICAgIH1cclxuICB9LFxyXG59XHJcbiIsICJ7XHJcblx0XCJuYW1lXCI6IFwiQHBsYXlwaWxvdC90cGlcIixcclxuXHRcInZlcnNpb25cIjogXCI4LjExLjAtYmV0YS4yXCIsXHJcblx0XCJ0eXBlXCI6IFwibW9kdWxlXCIsXHJcblx0XCJzY3JpcHRzXCI6IHtcclxuXHRcdFwiZGV2XCI6IFwidml0ZSBkZXZcIixcclxuXHRcdFwiZGV2LWJ1aWxkXCI6IFwibnB4IGh0dHAtc2VydmVyIC4gL2J1aWxkLmh0bWwgLXAgMzAwMFwiLFxyXG5cdFx0XCJidWlsZFwiOiBcInZpdGUgYnVpbGQgLS1jb25maWcgdml0ZS5fbWFpbi5jb25maWcuanMgJiYgdml0ZSBidWlsZCAtLWNvbmZpZyB2aXRlLl9tb3VudC5jb25maWcuanMgJiYgdml0ZSBidWlsZCAtLWNvbmZpZyB2aXRlLl9tb3VudC5jb25maWcuanMgLS1tb2RlIGVkaXRvcmlhbFwiLFxyXG5cdFx0XCJwcmV2aWV3XCI6IFwidml0ZSBwcmV2aWV3XCIsXHJcblx0XHRcImNoZWNrXCI6IFwic3ZlbHRlLWtpdCBzeW5jICYmIHN2ZWx0ZS1jaGVjayAtLXRzY29uZmlnIC4vanNjb25maWcuanNvblwiLFxyXG5cdFx0XCJjaGVjazp3YXRjaFwiOiBcInN2ZWx0ZS1raXQgc3luYyAmJiBzdmVsdGUtY2hlY2sgLS10c2NvbmZpZyAuL2pzY29uZmlnLmpzb24gLS13YXRjaFwiLFxyXG5cdFx0XCJmb3JtYXRcIjogXCJwcmV0dGllciAtLXdyaXRlIC5cIixcclxuXHRcdFwibGludFwiOiBcInByZXR0aWVyIC0tY2hlY2sgLiAmJiBlc2xpbnQgLlwiLFxyXG5cdFx0XCJ0ZXN0OnVuaXRcIjogXCJ2aXRlc3RcIixcclxuXHRcdFwidGVzdFwiOiBcIm5wbSBydW4gdGVzdDp1bml0IC0tIC0tcnVuXCIsXHJcblx0XHRcInJlbGVhc2VcIjogXCJub2RlIHJlbGVhc2UuanNcIlxyXG5cdH0sXHJcblx0XCJkZXZEZXBlbmRlbmNpZXNcIjoge1xyXG5cdFx0XCJAcGxheXBpbG90L3JldGFyZ2V0aW5nLXRyYWNraW5nXCI6IFwiXjAuMS4wXCIsXHJcblx0XHRcIkBzdmVsdGVqcy9hZGFwdGVyLWF1dG9cIjogXCJeNy4wLjFcIixcclxuXHRcdFwiQHN2ZWx0ZWpzL2tpdFwiOiBcIl4yLjU2LjFcIixcclxuXHRcdFwiQHN2ZWx0ZWpzL3ZpdGUtcGx1Z2luLXN2ZWx0ZVwiOiBcIl40LjAuMFwiLFxyXG5cdFx0XCJAdGVzdGluZy1saWJyYXJ5L3N2ZWx0ZVwiOiBcIl41LjIuNlwiLFxyXG5cdFx0XCJAdHlwZXMvbm9kZVwiOiBcIl4yNS41LjJcIixcclxuXHRcdFwiQHR5cGVzY3JpcHQtZXNsaW50L2VzbGludC1wbHVnaW5cIjogXCJeOC4zMi4xXCIsXHJcblx0XHRcIkB0eXBlc2NyaXB0LWVzbGludC9wYXJzZXJcIjogXCJeOC4zMi4xXCIsXHJcblx0XHRcImRvdGVudlwiOiBcIl4xNy40LjFcIixcclxuXHRcdFwiZXNsaW50XCI6IFwiXjkuMjcuMFwiLFxyXG5cdFx0XCJlc2xpbnQtY29uZmlnLXByZXR0aWVyXCI6IFwiXjkuMS4wXCIsXHJcblx0XHRcImVzbGludC1wbHVnaW4tc3ZlbHRlXCI6IFwiXjMuMTUuMFwiLFxyXG5cdFx0XCJnbG9iYWxzXCI6IFwiXjE1LjAuMFwiLFxyXG5cdFx0XCJoYXBweS1kb21cIjogXCJeMTYuOC4xXCIsXHJcblx0XHRcInByZXR0aWVyXCI6IFwiXjMuOC4zXCIsXHJcblx0XHRcInByZXR0aWVyLXBsdWdpbi1zdmVsdGVcIjogXCJeMy4yLjZcIixcclxuXHRcdFwic2Fzc1wiOiBcIl4xLjk5LjBcIixcclxuXHRcdFwic3ZlbHRlXCI6IFwiNS40NC4xXCIsXHJcblx0XHRcInN2ZWx0ZS1jaGVja1wiOiBcIl40LjAuMFwiLFxyXG5cdFx0XCJzdmVsdGUtcHJlcHJvY2Vzc1wiOiBcIl42LjAuM1wiLFxyXG5cdFx0XCJzdmVsdGUtdGlueS1zbGlkZXJcIjogXCJeMi43LjFcIixcclxuXHRcdFwidHlwZXNjcmlwdFwiOiBcIl41LjkuM1wiLFxyXG5cdFx0XCJ0eXBlc2NyaXB0LWVzbGludFwiOiBcIl44LjU5LjJcIixcclxuXHRcdFwidml0ZVwiOiBcIl41LjQuMjFcIixcclxuXHRcdFwidml0ZS1wbHVnaW4tY3NzLWluamVjdGVkLWJ5LWpzXCI6IFwiXjQuMC4xXCIsXHJcblx0XHRcInZpdGVzdFwiOiBcIl4yLjEuOVwiXHJcblx0fVxyXG59XHJcbiJdLAogICJtYXBwaW5ncyI6ICI7QUFBeVMsT0FBTyxVQUFVO0FBQzFULFlBQVksWUFBWTtBQUN4QixTQUFTLG9CQUFvQjtBQUM3QixTQUFTLGNBQWM7QUFDdkIsT0FBTywyQkFBMkI7OztBQ0psQztBQUFBLEVBQ0MsTUFBUTtBQUFBLEVBQ1IsU0FBVztBQUFBLEVBQ1gsTUFBUTtBQUFBLEVBQ1IsU0FBVztBQUFBLElBQ1YsS0FBTztBQUFBLElBQ1AsYUFBYTtBQUFBLElBQ2IsT0FBUztBQUFBLElBQ1QsU0FBVztBQUFBLElBQ1gsT0FBUztBQUFBLElBQ1QsZUFBZTtBQUFBLElBQ2YsUUFBVTtBQUFBLElBQ1YsTUFBUTtBQUFBLElBQ1IsYUFBYTtBQUFBLElBQ2IsTUFBUTtBQUFBLElBQ1IsU0FBVztBQUFBLEVBQ1o7QUFBQSxFQUNBLGlCQUFtQjtBQUFBLElBQ2xCLG1DQUFtQztBQUFBLElBQ25DLDBCQUEwQjtBQUFBLElBQzFCLGlCQUFpQjtBQUFBLElBQ2pCLGdDQUFnQztBQUFBLElBQ2hDLDJCQUEyQjtBQUFBLElBQzNCLGVBQWU7QUFBQSxJQUNmLG9DQUFvQztBQUFBLElBQ3BDLDZCQUE2QjtBQUFBLElBQzdCLFFBQVU7QUFBQSxJQUNWLFFBQVU7QUFBQSxJQUNWLDBCQUEwQjtBQUFBLElBQzFCLHdCQUF3QjtBQUFBLElBQ3hCLFNBQVc7QUFBQSxJQUNYLGFBQWE7QUFBQSxJQUNiLFVBQVk7QUFBQSxJQUNaLDBCQUEwQjtBQUFBLElBQzFCLE1BQVE7QUFBQSxJQUNSLFFBQVU7QUFBQSxJQUNWLGdCQUFnQjtBQUFBLElBQ2hCLHFCQUFxQjtBQUFBLElBQ3JCLHNCQUFzQjtBQUFBLElBQ3RCLFlBQWM7QUFBQSxJQUNkLHFCQUFxQjtBQUFBLElBQ3JCLE1BQVE7QUFBQSxJQUNSLGtDQUFrQztBQUFBLElBQ2xDLFFBQVU7QUFBQSxFQUNYO0FBQ0Q7OztBRDdDQSxJQUFNLG1DQUFtQztBQU9sQyxjQUFPLEVBQUUsTUFBTSxPQUFPLENBQUM7QUFFOUIsSUFBTyw0QkFBUSxhQUFhLENBQUMsRUFBRSxLQUFLLE1BQU07QUFDeEMsUUFBTSxlQUFlLFNBQVM7QUFFOUIsU0FBTztBQUFBLElBQ0wsU0FBUztBQUFBLE1BQ1AsT0FBTztBQUFBLE1BQ1Asc0JBQXNCO0FBQUEsTUFDdEI7QUFBQSxJQUNGO0FBQUEsSUFFQSxPQUFPO0FBQUEsTUFDTCxhQUFhO0FBQUEsTUFDYixlQUFlO0FBQUEsUUFDYixPQUFPO0FBQUEsUUFDUCxRQUFRO0FBQUEsVUFDTixRQUFRO0FBQUEsVUFDUixNQUFNO0FBQUEsVUFDTixnQkFBZ0IsZUFBZSx1QkFBdUI7QUFBQSxRQUN4RDtBQUFBLE1BQ0Y7QUFBQSxJQUNGO0FBQUEsSUFFQSxTQUFTO0FBQUEsTUFDUCxPQUFPO0FBQUEsUUFDTCxRQUFRLEtBQUssUUFBUSxrQ0FBVyxXQUFXO0FBQUEsTUFDN0M7QUFBQSxJQUNGO0FBQUEsSUFFQSxRQUFRO0FBQUEsTUFDTixvQkFBb0IsS0FBSyxVQUFVLGdCQUFZLE9BQU87QUFBQSxNQUN0RCx5QkFBeUIsS0FBSyxVQUFVLFlBQVk7QUFBQSxJQUN0RDtBQUFBLEVBQ0Y7QUFDRixDQUFDO0FBRUQsSUFBTSxxQkFBcUI7QUFBQSxFQUN6QixNQUFNO0FBQUE7QUFBQSxFQUVOLFVBQVUsSUFBSTtBQUNaLFFBQUksT0FBTyxxQkFBc0IsUUFBTztBQUFBLEVBQzFDO0FBQUE7QUFBQSxFQUVBLEtBQUssSUFBSTtBQUNQLFFBQUksT0FBTyx3QkFBd0I7QUFDakMsYUFBTyxPQUFPLFFBQVEsUUFBUSxHQUFHLEVBQzlCLE9BQU8sQ0FBQyxDQUFDLEdBQUcsTUFBTSxJQUFJLFdBQVcsU0FBUyxDQUFDLEVBQzNDLElBQUksQ0FBQyxDQUFDLEtBQUssS0FBSyxNQUFNLGdCQUFnQixHQUFHLE1BQU0sS0FBSyxVQUFVLEtBQUssQ0FBQyxHQUFHLEVBQ3ZFLEtBQUssSUFBSTtBQUFBLElBQ2Q7QUFBQSxFQUNGO0FBQ0Y7IiwKICAibmFtZXMiOiBbXQp9Cg==