playlight-sdk 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var PlaylightSDK=function(){"use strict";var t,e,n,r,o,i,l,a=t=>{throw TypeError(t)},s=(t,e,n)=>e.has(t)?a("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),u=(t,e,n)=>(((t,e,n)=>{e.has(t)||a("Cannot "+n)})(t,e,"access private method"),n);var c=Array.isArray,d=Array.prototype.indexOf,f=Array.from,v=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,g=Object.prototype,m=Array.prototype,y=Object.getPrototypeOf;function b(t){return"function"==typeof t}const w=()=>{};function x(t){return t()}function _(t){for(var e=0;e<t.length;e++)t[e]()}const $=256,k=1024,C=2048,S=4096,P=8192,I=16384,j=65536,E=Symbol("$state"),M=Symbol("legacy props"),N=Symbol("");function O(t){return t===this.v}function T(t,e){return t!=t?e==e:t!==e||null!==t&&"object"==typeof t||"function"==typeof t}function A(t){return!T(t,this.v)}let B=!1;const z=Symbol();function D(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let q=null;function W(t){q=t}function L(t,e=!1,n){q={p:q,c:null,e:null,m:!1,s:t,x:null,l:null},B&&!e&&(q.l={s:null,u:null,r1:[],r2:H(!1)})}function F(t){const e=q;if(null!==e){const t=e.e;if(null!==t){var n=Yt,r=Ut;e.e=null;try{for(var o=0;o<t.length;o++){var i=t[o];Xt(i.effect),Jt(i.reaction),wt(i.fn)}}finally{Xt(n),Jt(r)}}q=e.p,e.m=!0}return{}}function R(){return!B||null!==q&&null===q.l}function H(t,e){return{f:0,v:t,reactions:null,equals:O,rv:0,wv:0}}function V(t){return U(H(t))}function K(t,e=!1){var n;const r=H(t);return e||(r.equals=A),B&&null!==q&&null!==q.l&&((n=q.l).s??(n.s=[])).push(r),r}function G(t,e=!1){return U(K(t,e))}function U(t){return null!==Ut&&!Zt&&2&Ut.f&&(null===Qt?Qt=[t]:Qt.push(t)),t}function Z(t,e){return null!==Ut&&!Zt&&R()&&18&Ut.f&&(null===Qt||!Qt.includes(t))&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),J(t,e)}function J(t,e){return t.equals(e)||(t.v,t.v=e,t.wv=le(),X(t,C),R()&&null!==Yt&&Yt.f&k&&!(96&Yt.f)&&(null===ne?ne=[t]:ne.push(t))),e}function Y(t,e=1){var n=be(t),r=1===e?n++:n--;return Z(t,n),r}function X(t,e){var n=t.reactions;if(null!==n)for(var r=R(),o=n.length,i=0;i<o;i++){var l=n[i],a=l.f;a&C||(r||l!==Yt)&&(_e(l,e),1280&a&&(2&a?X(l,S):me(l)))}}function Q(t,e=null,n){if("object"!=typeof t||null===t||E in t)return t;const r=y(t);if(r!==g&&r!==m)return t;var o,i=new Map,l=c(t),a=H(0);return l&&i.set("length",H(t.length)),new Proxy(t,{defineProperty(t,e,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=i.get(e);return void 0===r?(r=H(n.value),i.set(e,r)):Z(r,Q(n.value,o)),!0},deleteProperty(t,e){var n=i.get(e);if(void 0===n)e in t&&i.set(e,H(z));else{if(l&&"string"==typeof e){var r=i.get("length"),o=Number(e);Number.isInteger(o)&&o<r.v&&Z(r,o)}Z(n,z),tt(a)}return!0},get(e,n,r){var l;if(n===E)return t;var a=i.get(n),s=n in e;if(void 0!==a||s&&!(null==(l=p(e,n))?void 0:l.writable)||(a=H(Q(s?e[n]:z,o)),i.set(n,a)),void 0!==a){var u=be(a);return u===z?void 0:u}return Reflect.get(e,n,r)},getOwnPropertyDescriptor(t,e){var n=Reflect.getOwnPropertyDescriptor(t,e);if(n&&"value"in n){var r=i.get(e);r&&(n.value=be(r))}else if(void 0===n){var o=i.get(e),l=null==o?void 0:o.v;if(void 0!==o&&l!==z)return{enumerable:!0,configurable:!0,value:l,writable:!0}}return n},has(t,e){var n;if(e===E)return!0;var r=i.get(e),l=void 0!==r&&r.v!==z||Reflect.has(t,e);return!((void 0!==r||null!==Yt&&(!l||(null==(n=p(t,e))?void 0:n.writable)))&&(void 0===r&&(r=H(l?Q(t[e],o):z),i.set(e,r)),be(r)===z))&&l},set(t,e,n,r){var s,u=i.get(e),c=e in t;if(l&&"length"===e)for(var d=n;d<u.v;d+=1){var f=i.get(d+"");void 0!==f?Z(f,z):d in t&&(f=H(z),i.set(d+"",f))}void 0===u?c&&!(null==(s=p(t,e))?void 0:s.writable)||(Z(u=H(void 0),Q(n,o)),i.set(e,u)):(c=u.v!==z,Z(u,Q(n,o)));var v=Reflect.getOwnPropertyDescriptor(t,e);if((null==v?void 0:v.set)&&v.set.call(r,n),!c){if(l&&"string"==typeof e){var h=i.get("length"),g=Number(e);Number.isInteger(g)&&g>=h.v&&Z(h,g+1)}tt(a)}return!0},ownKeys(t){be(a);var e=Reflect.ownKeys(t).filter((t=>{var e=i.get(t);return void 0===e||e.v!==z}));for(var[n,r]of i)r.v===z||n in t||e.push(n);return e},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function tt(t,e=1){Z(t,t.v+e)}var et,nt,rt,ot,it;function lt(t=""){return document.createTextNode(t)}function at(t){return ot.call(t)}function st(t){return it.call(t)}function ut(t,e){return at(t)}function ct(t,e){var n=at(t);return n instanceof Comment&&""===n.data?st(n):n}function dt(t,e=1,n=!1){let r=t;for(;e--;)r=st(r);return r}function ft(t){var e=2050,n=null!==Ut&&2&Ut.f?Ut:null;return null===Yt||null!==n&&n.f&$?e|=$:Yt.f|=1048576,{ctx:q,deps:null,effects:null,equals:O,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:n??Yt}}function vt(t){const e=ft(t);return e.equals=A,e}function pt(t){var e=t.effects;if(null!==e){t.effects=null;for(var n=0;n<e.length;n+=1)jt(e[n])}}function ht(t){var e=function(t){var e,n=Yt;Xt(function(t){for(var e=t.parent;null!==e;){if(!(2&e.f))return e;e=e.parent}return null}(t));try{pt(t),e=ce(t)}finally{Xt(n)}return e}(t);_e(t,(ie||t.f&$)&&null!==t.deps?S:k),t.equals(e)||(t.v=e,t.wv=le())}function gt(t){null===Yt&&null===Ut&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==Ut&&Ut.f&$&&null===Yt&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),Vt&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function mt(t,e,n,r=!0){var o,i,l,a=Yt,s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:t|C,first:null,fn:e,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(n)try{ve(s),s.f|=32768}catch(o){throw jt(s),o}else null!==e&&me(s);if((!n||null!==s.deps||null!==s.first||null!==s.nodes_start||null!==s.teardown||1048704&s.f)&&r&&(null!==a&&(o=s,null===(l=(i=a).last)?i.last=i.first=o:(l.next=o,o.prev=l,i.last=o)),null!==Ut&&2&Ut.f)){var u=Ut;(u.effects??(u.effects=[])).push(s)}return s}function yt(t){const e=mt(8,null,!1);return _e(e,k),e.teardown=t,e}function bt(t){if(gt(),!(null!==Yt&&32&Yt.f&&null!==q)||q.m)return wt(t);var e=q;(e.e??(e.e=[])).push({fn:t,effect:Yt,reaction:Ut})}function wt(t){return mt(4,t,!1)}function xt(t,e){var n=q,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=$t((()=>{t(),r.ran||(r.ran=!0,Z(n.l.r2,!0),we(e))}))}function _t(){var t=q;$t((()=>{if(be(t.l.r2)){for(var e of t.l.r1){var n=e.effect;n.f&k&&_e(n,S),ae(n)&&ve(n),e.ran=!1}t.l.r2.v=!1}}))}function $t(t){return mt(8,t,!0)}function kt(t,e=[],n=ft){const r=e.map(n);return Ct((()=>t(...r.map(be))))}function Ct(t,e=0){return mt(24|e,t,!0)}function St(t,e=!0){return mt(40,t,!0,e)}function Pt(t){var e=t.teardown;if(null!==e){const t=Vt,n=Ut;Kt(!0),Jt(null);try{e.call(null)}finally{Kt(t),Jt(n)}}}function It(t,e=!1){var n=t.first;for(t.first=t.last=null;null!==n;){var r=n.next;64&n.f?n.parent=null:jt(n,e),n=r}}function jt(t,e=!0){var n=!1;if((e||524288&t.f)&&null!==t.nodes_start){for(var r=t.nodes_start,o=t.nodes_end;null!==r;){var i=r===o?null:st(r);r.remove(),r=i}n=!0}It(t,e&&!n),fe(t,0),_e(t,I);var l=t.transitions;if(null!==l)for(const s of l)s.stop();Pt(t);var a=t.parent;null!==a&&null!==a.first&&Et(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Et(t){var e=t.parent,n=t.prev,r=t.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Mt(t,e){var n=[];Ot(t,n,!0),Nt(n,(()=>{jt(t),e&&e()}))}function Nt(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var o of t)o.out(r)}else e()}function Ot(t,e,n){if(!(t.f&P)){if(t.f^=P,null!==t.transitions)for(const r of t.transitions)(r.is_global||n)&&e.push(r);for(var r=t.first;null!==r;){var o=r.next;Ot(r,e,!!(r.f&j||32&r.f)&&n),r=o}}}function Tt(t){At(t,!0)}function At(t,e){if(t.f&P){t.f^=P,t.f&k||(t.f^=k),ae(t)&&(_e(t,C),me(t));for(var n=t.first;null!==n;){var r=n.next;At(n,!!(n.f&j||32&n.f)&&e),n=r}if(null!==t.transitions)for(const n of t.transitions)(n.is_global||e)&&n.in()}}let Bt=[],zt=[];function Dt(){var t=Bt;Bt=[],_(t)}function qt(t){0===Bt.length&&queueMicrotask(Dt),Bt.push(t)}function Wt(){var t;Bt.length>0&&Dt(),zt.length>0&&(t=zt,zt=[],_(t))}let Lt=!1,Ft=!1,Rt=null,Ht=!1,Vt=!1;function Kt(t){Vt=t}let Gt=[],Ut=null,Zt=!1;function Jt(t){Ut=t}let Yt=null;function Xt(t){Yt=t}let Qt=null,te=null,ee=0,ne=null,re=1,oe=0,ie=!1;function le(){return++re}function ae(t){var e,n=t.f;if(n&C)return!0;if(n&S){var r=t.deps,o=!!(n&$);if(null!==r){var i,l,a=!!(512&n),s=o&&null!==Yt&&!ie,u=r.length;if(a||s){var c=t,d=c.parent;for(i=0;i<u;i++)l=r[i],!a&&(null==(e=null==l?void 0:l.reactions)?void 0:e.includes(c))||(l.reactions??(l.reactions=[])).push(c);a&&(c.f^=512),!s||null===d||d.f&$||(c.f^=$)}for(i=0;i<u;i++)if(ae(l=r[i])&&ht(l),l.wv>t.wv)return!0}o&&(null===Yt||ie)||_e(t,k)}return!1}function se(t,e,n,r){if(Lt){if(null===n&&(Lt=!1),!((o=e).f&I||null!==o.parent&&128&o.parent.f))throw t}else null!==n&&(Lt=!0),function(t,e){for(var n=e;null!==n;){if(128&n.f)try{return void n.fn(t)}catch{n.f^=128}n=n.parent}throw Lt=!1,t}(t,e);var o}function ue(t,e,n=!0){var r=t.reactions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];2&i.f?ue(i,e,!1):e===i&&(n?_e(i,C):i.f&k&&_e(i,S),me(i))}}function ce(t){var e,n=te,r=ee,o=ne,i=Ut,l=ie,a=Qt,s=q,u=Zt,c=t.f;te=null,ee=0,ne=null,ie=!!(c&$)&&(Zt||!Ht||null===Ut),Ut=96&c?null:t,Qt=null,W(t.ctx),Zt=!1,oe++;try{var d=(0,t.fn)(),f=t.deps;if(null!==te){var v;if(fe(t,ee),null!==f&&ee>0)for(f.length=ee+te.length,v=0;v<te.length;v++)f[ee+v]=te[v];else t.deps=f=te;if(!ie)for(v=ee;v<f.length;v++)((e=f[v]).reactions??(e.reactions=[])).push(t)}else null!==f&&ee<f.length&&(fe(t,ee),f.length=ee);if(R()&&null!==ne&&!Zt&&null!==f&&!(6146&t.f))for(v=0;v<ne.length;v++)ue(ne[v],t);return null!==i&&oe++,d}finally{te=n,ee=r,ne=o,Ut=i,ie=l,Qt=a,W(s),Zt=u}}function de(t,e){let n=e.reactions;if(null!==n){var r=d.call(n,t);if(-1!==r){var o=n.length-1;0===o?n=e.reactions=null:(n[r]=n[o],n.pop())}}null===n&&2&e.f&&(null===te||!te.includes(e))&&(_e(e,S),768&e.f||(e.f^=512),pt(e),fe(e,0))}function fe(t,e){var n=t.deps;if(null!==n)for(var r=e;r<n.length;r++)de(t,n[r])}function ve(t){var e=t.f;if(!(e&I)){_e(t,k);var n=Yt,r=q,o=Ht;Yt=t,Ht=!0;try{16&e?function(t){for(var e=t.first;null!==e;){var n=e.next;32&e.f||jt(e),e=n}}(t):It(t),Pt(t);var i=ce(t);t.teardown="function"==typeof i?i:null,t.wv=re,t.deps}catch(l){se(l,t,n,r||t.ctx)}finally{Ht=o,Yt=n}}}function pe(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){if(null===Rt)throw t;se(t,Rt,null)}}function he(){var t=Ht;try{var e=0;for(Ht=!0;Gt.length>0;){e++>1e3&&pe();var n=Gt,r=n.length;Gt=[];for(var o=0;o<r;o++)ge(ye(n[o]))}}finally{Ft=!1,Ht=t,Rt=null}}function ge(t){var e=t.length;if(0!==e)for(var n=0;n<e;n++){var r=t[n];if(!(24576&r.f))try{ae(r)&&(ve(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown?Et(r):r.fn=null))}catch(o){se(o,r,null,r.ctx)}}}function me(t){Ft||(Ft=!0,queueMicrotask(he));for(var e=Rt=t;null!==e.parent;){var n=(e=e.parent).f;if(96&n){if(!(n&k))return;e.f^=k}}Gt.push(e)}function ye(t){for(var e=[],n=t;null!==n;){var r=n.f,o=!!(96&r);if(!(o&&r&k||r&P)){if(4&r)e.push(n);else if(o)n.f^=k;else{var i=Ut;try{Ut=n,ae(n)&&ve(n)}catch(s){se(s,n,null,n.ctx)}finally{Ut=i}}var l=n.first;if(null!==l){n=l;continue}}var a=n.parent;for(n=n.next;null===n&&null!==a;)n=a.next,a=a.parent}return e}function be(t){var e=!!(2&t.f);if(null===Ut||Zt){if(e&&null===t.deps&&null===t.effects){var n=t,r=n.parent;null===r||r.f&$||(n.f^=$)}}else{null!==Qt&&Qt.includes(t)&&function(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}();var o=Ut.deps;t.rv<oe&&(t.rv=oe,null===te&&null!==o&&o[ee]===t?ee++:null===te?te=[t]:ie&&te.includes(t)||te.push(t))}return e&&ae(n=t)&&ht(n),t.v}function we(t){var e=Zt;try{return Zt=!0,t()}finally{Zt=e}}const xe=-7169;function _e(t,e){t.f=t.f&xe|e}function $e(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(E in t)ke(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];"object"==typeof n&&n&&E in n&&ke(n)}}function ke(t,e=new Set){if(!("object"!=typeof t||null===t||t instanceof EventTarget||e.has(t))){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{ke(t[o],e)}catch(n){}const r=y(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=h(r);for(let r in e){const o=e[r].get;if(o)try{o.call(t)}catch(n){}}}}}function Ce(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const Se=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Pe(t){return Se.includes(t)}const Ie={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 je(t){return t=t.toLowerCase(),Ie[t]??t}const Ee=["touchstart","touchmove"];function Me(t){return Ee.includes(t)}function Ne(t,e){if(e){const e=document.body;t.autofocus=!0,qt((()=>{document.activeElement===e&&t.focus()}))}}let Oe=!1;function Te(t){var e=Ut,n=Yt;Jt(null),Xt(null);try{return t()}finally{Jt(e),Xt(n)}}const Ae=new Set,Be=new Set;function ze(t,e,n,r={}){function o(t){if(r.capture||We.call(e,t),!t.cancelBubble)return Te((()=>null==n?void 0:n.call(this,t)))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?qt((()=>{e.addEventListener(t,o,r)})):e.addEventListener(t,o,r),o}function De(t,e,n,r,o){var i={capture:r,passive:o},l=ze(t,e,n,i);e!==document.body&&e!==window&&e!==document||yt((()=>{e.removeEventListener(t,l,i)}))}function qe(t){for(var e=0;e<t.length;e++)Ae.add(t[e]);for(var n of Be)n(t)}function We(t){var e,n=this,r=n.ownerDocument,o=t.type,i=(null==(e=t.composedPath)?void 0:e.call(t))||[],l=i[0]||t.target,a=0,s=t.__root;if(s){var u=i.indexOf(s);if(-1!==u&&(n===document||n===window))return void(t.__root=n);var d=i.indexOf(n);if(-1===d)return;u<=d&&(a=u)}if((l=i[a]||t.target)!==n){v(t,"currentTarget",{configurable:!0,get:()=>l||r});var f=Ut,p=Yt;Jt(null),Xt(null);try{for(var h,g=[];null!==l;){var m=l.assignedSlot||l.parentNode||l.host||null;try{var y=l["__"+o];if(null!=y&&(!l.disabled||t.target===l))if(c(y)){var[b,...w]=y;b.apply(l,[t,...w])}else y.call(l,t)}catch(x){h?g.push(x):h=x}if(t.cancelBubble||m===n||null===m)break;l=m}if(h){for(let t of g)queueMicrotask((()=>{throw t}));throw h}}finally{t.__root=n,delete t.currentTarget,Jt(f),Xt(p)}}}function Le(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Fe(t,e){var n=Yt;null===n.nodes_start&&(n.nodes_start=t,n.nodes_end=e)}function Re(t,e){var n,r=!!(1&e),o=!!(2&e),i=!t.startsWith("<!>");return()=>{void 0===n&&(n=Le(i?t:"<!>"+t),r||(n=at(n)));var e=o||rt?document.importNode(n,!0):n.cloneNode(!0);return r?Fe(at(e),e.lastChild):Fe(e,e),e}}function He(t,e,n="svg"){var r,o=`<${n}>${t.startsWith("<!>")?"<!>"+t:t}</${n}>`;return()=>{if(!r){var t=at(Le(o));r=at(t)}var e=r.cloneNode(!0);return Fe(e,e),e}}function Ve(t=""){var e=lt(t+"");return Fe(e,e),e}function Ke(){var t=document.createDocumentFragment(),e=document.createComment(""),n=lt();return t.append(e,n),Fe(e,n),t}function Ge(t,e){null!==t&&t.before(e)}let Ue=!0;function Ze(t){Ue=t}function Je(t,e){var n=null==e?"":"object"==typeof e?e+"":e;n!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=n,t.nodeValue=n+"")}const Ye=new Map;let Xe=new WeakMap;function Qe(t,e,[n,r]=[0,0]){var o=t,i=null,l=null,a=z,s=!1;const u=(t,e=!0)=>{s=!0,c(e,t)},c=(t,e)=>{a!==(a=t)&&(a?(i?Tt(i):e&&(i=St((()=>e(o)))),l&&Mt(l,(()=>{l=null}))):(l?Tt(l):e&&(l=St((()=>e(o,[n+1,r])))),i&&Mt(i,(()=>{i=null}))))};Ct((()=>{s=!1,e(u),s||c(null,null)}),n>0?j:0)}let tn=null;function en(t){tn=t}function nn(t,e){return e}function rn(t,e,n,r,o,i=null){var l=t,a={flags:e,items:new Map,first:null};!(4&e)||(l=t.appendChild(lt()));var s=null,u=!1,d=vt((()=>{var t=n();return c(t)?t:null==t?[]:f(t)}));Ct((()=>{var t=be(d),c=t.length;u&&0===c||(u=0===c,function(t,e,n,r,o,i,l){var a,s,u,c,d,v,p,h,g,m,y=!!(8&o),b=!!(3&o),w=t.length,x=e.items,_=e.first,$=null,k=[],C=[];if(y)for(m=0;m<w;m+=1)h=i(p=t[m],m),void 0!==(g=x.get(h))&&(null==(a=g.a)||a.measure(),(v??(v=new Set)).add(g));for(m=0;m<w;m+=1)if(h=i(p=t[m],m),void 0!==(g=x.get(h))){if(b&&on(g,p,m,o),g.e.f&P&&(Tt(g.e),y&&(null==(s=g.a)||s.unfix(),(v??(v=new Set)).delete(g))),g!==_){if(void 0!==d&&d.has(g)){if(k.length<C.length){var S,I=C[0];$=I.prev;var j=k[0],E=k[k.length-1];for(S=0;S<k.length;S+=1)an(k[S],I,n);for(S=0;S<C.length;S+=1)d.delete(C[S]);sn(e,j.prev,E.next),sn(e,$,j),sn(e,E,I),_=I,$=E,m-=1,k=[],C=[]}else d.delete(g),an(g,_,n),sn(e,g.prev,g.next),sn(e,g,null===$?e.first:$.next),sn(e,$,g),$=g;continue}for(k=[],C=[];null!==_&&_.k!==h;)_.e.f&P||(d??(d=new Set)).add(_),C.push(_),_=_.next;if(null===_)continue;g=_}k.push(g),$=g,_=g.next}else $=ln(_?_.e.nodes_start:n,e,$,null===$?e.first:$.next,p,h,m,r,o,l),x.set(h,$),k=[],C=[],_=$.next;if(null!==_||void 0!==d){for(var M=void 0===d?[]:f(d);null!==_;)_.e.f&P||M.push(_),_=_.next;var N=M.length;if(N>0){var O=4&o&&0===w?n:null;if(y){for(m=0;m<N;m+=1)null==(u=M[m].a)||u.measure();for(m=0;m<N;m+=1)null==(c=M[m].a)||c.fix()}!function(t,e,n,r){for(var o=[],i=e.length,l=0;l<i;l++)Ot(e[l].e,o,!0);var a=i>0&&0===o.length&&null!==n;if(a){var s=n.parentNode;s.textContent="",s.append(n),r.clear(),sn(t,e[0].prev,e[i-1].next)}Nt(o,(()=>{for(var n=0;n<i;n++){var o=e[n];a||(r.delete(o.k),sn(t,o.prev,o.next)),jt(o.e,!a)}}))}(e,M,O,x)}}y&&qt((()=>{var t;if(void 0!==v)for(g of v)null==(t=g.a)||t.apply()})),Yt.first=e.first&&e.first.e,Yt.last=$&&$.e}(t,a,l,o,e,r,n),null!==i&&(0===c?s?Tt(s):s=St((()=>i(l))):null!==s&&Mt(s,(()=>{s=null}))),be(d))}))}function on(t,e,n,r){1&r&&J(t.v,e),2&r?J(t.i,n):t.i=n}function ln(t,e,n,r,o,i,l,a,s,u){var c=tn,d=1&s?16&s?H(o):K(o):o,f=2&s?H(l):l,v={i:f,v:d,k:i,a:null,e:null,prev:n,next:r};tn=v;try{return v.e=St((()=>a(t,d,f,u)),!1),v.e.prev=n&&n.e,v.e.next=r&&r.e,null===n?e.first=v:(n.next=v,n.e.next=v.e),null!==r&&(r.prev=v,r.e.prev=v.e),v}finally{tn=c}}function an(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,o=e?e.e.nodes_start:n,i=t.e.nodes_start;i!==r;){var l=st(i);o.before(i),i=l}}function sn(t,e,n){null===e?t.first=n:(e.next=n,e.e.next=n&&n.e),null!==n&&(n.prev=e,n.e.prev=e&&e.e)}function un(t,e,n,r,o){var i,l=null==(i=e.$$slots)?void 0:i[n],a=!1;!0===l&&(l=e["default"===n?"children":n],a=!0),void 0===l?null!==o&&o(t):l(t,a?()=>r:r)}function cn(t,e,n){var r,o,i=t;Ct((()=>{r!==(r=e())&&(o&&(Mt(o),o=null),r&&(o=St((()=>n(i,r)))))}),j)}function dn(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=dn(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function fn(t){return"object"==typeof t?function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=dn(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}const vn=[..." \t\n\r\f \v\ufeff"];function pn(t,e=!1){var n=e?" !important;":";",r="";for(var o in t){var i=t[o];null!=i&&""!==i&&(r+=" "+o+": "+i+n)}return r}function hn(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function gn(t,e,n,r,o,i){if(t.__className!==n){var l=function(t,e,n){var r=null==t?"":""+t;if(e&&(r=r?r+" "+e:e),n)for(var o in n)if(n[o])r=r?r+" "+o:o;else if(r.length)for(var i=o.length,l=0;(l=r.indexOf(o,l))>=0;){var a=l+i;0!==l&&!vn.includes(r[l-1])||a!==r.length&&!vn.includes(r[a])?l=a:r=(0===l?"":r.substring(0,l))+r.substring(a+1)}return""===r?null:r}(n,r,i);null==l?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l),t.__className=n}else if(i&&o!==i)for(var a in i){var s=!!i[a];null!=o&&s===!!o[a]||t.classList.toggle(a,s)}return i}function mn(t,e={},n,r){for(var o in n){var i=n[o];e[o]!==i&&(null==n[o]?t.style.removeProperty(o):t.style.setProperty(o,i,r))}}function yn(t,e,n,r){if(t.__style!==e){var o=function(t,e){if(e){var n,r,o="";if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,l=0,a=!1,s=[];n&&s.push(...Object.keys(n).map(hn)),r&&s.push(...Object.keys(r).map(hn));var u=0,c=-1;const e=t.length;for(var d=0;d<e;d++){var f=t[d];if(a?"/"===f&&"*"===t[d-1]&&(a=!1):i?i===f&&(i=!1):"/"===f&&"*"===t[d+1]?a=!0:'"'===f||"'"===f?i=f:"("===f?l++:")"===f&&l--,!a&&!1===i&&0===l)if(":"===f&&-1===c)c=d;else if(";"===f||d===e-1){if(-1!==c){var v=hn(t.substring(u,c).trim());s.includes(v)||(";"!==f&&d++,o+=" "+t.substring(u,d).trim()+";")}u=d+1,c=-1}}}return n&&(o+=pn(n)),r&&(o+=pn(r,!0)),""===(o=o.trim())?null:o}return null==t?null:String(t)}(e,r);null==o?t.removeAttribute("style"):t.style.cssText=o,t.__style=e}else r&&(Array.isArray(r)?(mn(t,null==n?void 0:n[0],r[0]),mn(t,null==n?void 0:n[1],r[1],"important")):mn(t,n,r));return r}const bn=Symbol("class"),wn=Symbol("style"),xn=Symbol("is custom element"),_n=Symbol("is html");function $n(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function kn(t,e,n,r){var o=Sn(t);o[e]!==(o[e]=n)&&("loading"===e&&(t[N]=n),null==n?t.removeAttribute(e):"string"!=typeof n&&In(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Cn(t,e,n,r,o=!1){var i=Sn(t),l=i[xn],a=!i[_n],s=e||{},u="OPTION"===t.tagName;for(var c in e)c in n||(n[c]=null);n.class?n.class=fn(n.class):(r||n[bn])&&(n.class=null),n[wn]&&(n.style??(n.style=null));var d=In(t);for(const m in n){let o=n[m];if(u&&"value"===m&&null==o)t.value=t.__value="",s[m]=o;else if("class"!==m)if("style"!==m){var f=s[m];if(o!==f){s[m]=o;var v=m[0]+m[1];if("$$"!==v)if("on"===v){const e={},n="$$"+m;let r=m.slice(2);var p=Pe(r);if(Ce(r)&&(r=r.slice(0,-7),e.capture=!0),!p&&f){if(null!=o)continue;t.removeEventListener(r,s[n],e),s[n]=null}if(null!=o)if(p)t[`__${r}`]=o,qe([r]);else{let o=function(t){s[m].call(this,t)};s[n]=ze(r,t,o,e)}else p&&(t[`__${r}`]=void 0)}else if("style"===m)kn(t,m,o);else if("autofocus"===m)Ne(t,Boolean(o));else if(l||"__value"!==m&&("value"!==m||null==o))if("selected"===m&&u)$n(t,o);else{var h=m;a||(h=je(h));var g="defaultValue"===h||"defaultChecked"===h;if(null!=o||l||g)g||d.includes(h)&&(l||"string"!=typeof o)?t[h]=o:"function"!=typeof o&&kn(t,h,o);else if(i[m]=null,"value"===h||"checked"===h){let n=t;const r=void 0===e;if("value"===h){let t=n.defaultValue;n.removeAttribute(h),n.defaultValue=t,n.value=n.__value=r?t:null}else{let t=n.defaultChecked;n.removeAttribute(h),n.defaultChecked=t,n.checked=!!r&&t}}else t.removeAttribute(m)}else t.value=t.__value=o}}else yn(t,o,null==e?void 0:e[wn],n[wn]),s[m]=o,s[wn]=n[wn];else gn(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,o,r,null==e?void 0:e[bn],n[bn]),s[m]=o,s[bn]=n[bn]}return s}function Sn(t){return t.__attributes??(t.__attributes={[xn]:t.nodeName.includes("-"),[_n]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var Pn=new Map;function In(t){var e,n=Pn.get(t.nodeName);if(n)return n;Pn.set(t.nodeName,n=[]);for(var r=t,o=Element.prototype;o!==r;){for(var i in e=h(r))e[i].set&&n.push(i);r=y(r)}return n}const jn={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function En(){const t=jn.now();jn.tasks.forEach((e=>{e.c(t)||(jn.tasks.delete(e),e.f())})),0!==jn.tasks.size&&jn.tick(En)}function Mn(t,e){Te((()=>{t.dispatchEvent(new CustomEvent(e))}))}function Nn(t){if("float"===t)return"cssFloat";if("offset"===t)return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return 1===e.length?e[0]:e[0]+e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("")}function On(t){const e={},n=t.split(";");for(const r of n){const[t,n]=r.split(":");if(!t||void 0===n)break;e[Nn(t.trim())]=n.trim()}return e}const Tn=t=>t;function An(t,e,n,r){var o,i,l,a=!!(4&t),s=e.inert,u=e.style.overflow;function c(){var t=Ut,i=Yt;Jt(null),Xt(null);try{return o??(o=n()(e,(null==r?void 0:r())??{},{direction:"both"}))}finally{Jt(t),Xt(i)}}var d={is_global:a,in(){e.inert=s,Mn(e,"introstart"),i=Bn(e,c(),l,1,(()=>{Mn(e,"introend"),null==i||i.abort(),i=o=void 0,e.style.overflow=u}))},out(t){e.inert=!0,Mn(e,"outrostart"),l=Bn(e,c(),i,0,(()=>{Mn(e,"outroend"),null==t||t()}))},stop:()=>{null==i||i.abort(),null==l||l.abort()}},f=Yt;if((f.transitions??(f.transitions=[])).push(d),Ue){var v=a;if(!v){for(var p=f.parent;p&&p.f&j;)for(;(p=p.parent)&&!(16&p.f););v=!p||!!(32768&p.f)}v&&wt((()=>{we((()=>d.in()))}))}}function Bn(t,e,n,r,o){var i=1===r;if(b(e)){var l,a=!1;return qt((()=>{if(!a){var s=e({direction:i?"in":"out"});l=Bn(t,s,n,r,o)}})),{abort:()=>{a=!0,null==l||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(null==n||n.deactivate(),!(null==e?void 0:e.duration))return o(),{abort:w,deactivate:w,reset:w,t:()=>r};const{delay:s=0,css:u,tick:c,easing:d=Tn}=e;var f=[];if(i&&void 0===n&&(c&&c(0,1),u)){var v=On(u(0,1));f.push(v,v)}var p=()=>1-r,h=t.animate(f,{duration:s});return h.onfinish=()=>{var i=(null==n?void 0:n.t())??1-r;null==n||n.abort();var l=r-i,a=e.duration*Math.abs(l),s=[];if(a>0){var f=!1;if(u)for(var v=Math.ceil(a/(1e3/60)),g=0;g<=v;g+=1){var m=i+l*d(g/v),y=On(u(m,1-m));s.push(y),f||(f="hidden"===y.overflow)}f&&(t.style.overflow="hidden"),p=()=>{var t=h.currentTime;return i+l*d(t/a)},c&&function(t){let e;0===jn.tasks.size&&jn.tick(En),new Promise((n=>{jn.tasks.add(e={c:t,f:n})}))}((()=>{if("running"!==h.playState)return!1;var t=p();return c(t,1-t),!0}))}(h=t.animate(s,{duration:a,fill:"forwards"})).onfinish=()=>{p=()=>r,null==c||c(r,1-r),o()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=w)},deactivate:()=>{o=w},reset:()=>{0===r&&(null==c||c(1,0))},t:()=>p()}}function zn(t){var e=t.type;return"number"===e||"range"===e}function Dn(t){return""===t?null:+t}function qn(t,e){return t===e||(null==t?void 0:t[E])===e}function Wn(t={},e,n,r){return wt((()=>{var r,o;return $t((()=>{r=o,o=[],we((()=>{t!==n(...o)&&(e(t,...o),r&&qn(n(...r),t)&&e(null,...r))}))})),()=>{qt((()=>{o&&qn(n(...o),t)&&e(null,...o)}))}})),t}function Ln(t=!1){const e=q,n=e.l.u;if(!n)return;let r=()=>$e(e.s);if(t){let t=0,n={};const o=ft((()=>{let r=!1;const o=e.s;for(const t in o)o[t]!==n[t]&&(n[t]=o[t],r=!0);return r&&t++,t}));r=()=>be(o)}var o;n.b.length&&(o=()=>{Fn(e,r),_(n.b)},gt(),$t(o)),bt((()=>{const t=we((()=>n.m.map(x)));return()=>{for(const e of t)"function"==typeof e&&e()}})),n.a.length&&bt((()=>{Fn(e,r),_(n.a)}))}function Fn(t,e){if(t.l.s)for(const n of t.l.s)be(n);e()}function Rn(t,e,n){if(null==t)return e(void 0),w;const r=we((()=>t.subscribe(e,n)));return r.unsubscribe?()=>r.unsubscribe():r}const Hn=[];function Vn(t,e=w){let n=null;const r=new Set;function o(e){if(T(t,e)&&(t=e,n)){const e=!Hn.length;for(const n of r)n[1](),Hn.push(n,t);if(e){for(let t=0;t<Hn.length;t+=2)Hn[t][0](Hn[t+1]);Hn.length=0}}}function i(e){o(e(t))}return{set:o,update:i,subscribe:function(l,a=w){const s=[l,a];return r.add(s),1===r.size&&(n=e(o,i)||w),l(t),()=>{r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function Kn(t){let e;return Rn(t,(t=>e=t))(),e}let Gn=!1,Un=Symbol();function Zn(t,e,n){const r=n[e]??(n[e]={store:null,source:K(void 0),unsubscribe:w});if(r.store!==t&&!(Un in n))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=w;else{var o=!0;r.unsubscribe=Rn(t,(t=>{o?r.source.v=t:Z(r.source,t)})),o=!1}return t&&Un in n?Kn(t):be(r.source)}function Jn(t,e){return t.set(e),e}function Yn(){const t={};return[t,function(){yt((()=>{for(var e in t)t[e].unsubscribe();v(t,Un,{enumerable:!1,value:!0})}))}]}const Xn={get(t,e){if(!t.exclude.includes(e))return be(t.version),e in t.special?t.special[e]():t.props[e]},set:(t,e,n)=>(e in t.special||(t.special[e]=nr({get[e](){return t.props[e]}},e,4)),t.special[e](n),Y(t.version),!0),getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e))return e in t.props?{enumerable:!0,configurable:!0,value:t.props[e]}:void 0},deleteProperty:(t,e)=>(t.exclude.includes(e)||(t.exclude.push(e),Y(t.version)),!0),has:(t,e)=>!t.exclude.includes(e)&&e in t.props,ownKeys:t=>Reflect.ownKeys(t.props).filter((e=>!t.exclude.includes(e)))};function Qn(t,e){return new Proxy({props:t,exclude:e,special:{},version:H(0)},Xn)}const tr={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(b(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,n){let r=t.props.length;for(;r--;){let o=t.props[r];b(o)&&(o=o());const i=p(o,e);if(i&&i.set)return i.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(b(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=p(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===E||e===M)return!1;for(let n of t.props)if(b(n)&&(n=n()),null!=n&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props){b(n)&&(n=n());for(const t in n)e.includes(t)||e.push(t)}return e}};function er(...t){return new Proxy({props:t},tr)}function nr(t,e,n,r){var o,i,l=!!(1&n),a=!B||!!(2&n),s=!!(8&n),u=!!(16&n),c=!1;s?[i,c]=function(t){var e=Gn;try{return Gn=!1,[t(),Gn]}finally{Gn=e}}((()=>t[e])):i=t[e];var d,f=E in t||M in t,v=s&&((null==(o=p(t,e))?void 0:o.set)??(f&&e in t&&(n=>t[e]=n)))||void 0,h=r,g=!0,m=!1,y=()=>(m=!0,g&&(g=!1,h=u?we(r):r),h);if(void 0===i&&void 0!==r&&(v&&a&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),i=y(),v&&v(i)),a)d=()=>{var n=t[e];return void 0===n?y():(g=!0,m=!1,n)};else{var b=(l?ft:vt)((()=>t[e]));b.f|=131072,d=()=>{var t=be(b);return void 0!==t&&(h=void 0),void 0===t?h:t}}if(!(4&n))return d;if(v){var w=t.$$legacy;return function(t,e){return arguments.length>0?(a&&e&&!w&&!c||v(e?d():t),t):d()}}var x=!1,_=K(i),$=ft((()=>{var t=d(),e=be(_);return x?(x=!1,e):_.v=t}));return l||($.equals=A),function(t,e){if(arguments.length>0){const n=e?be($):a&&s?Q(t):t;return $.equals(n)||(x=!0,Z(_,n),m&&void 0!==h&&(h=n),we((()=>be($)))),t}return be($)}}function rr(t){var e,n;null===q&&D(),B&&null!==q.l?(e=q,n=e.l,n.u??(n.u={a:[],b:[],m:[]})).m.push(t):bt((()=>{const e=we(t);if("function"==typeof e)return e}))}"undefined"!=typeof window&&((t=window.__svelte??(window.__svelte={})).v??(t.v=new Set)).add("5"),B=!0;
1
+ var PlaylightSDK=function(){"use strict";var t,e,n,r,o,i,l,a=t=>{throw TypeError(t)},s=(t,e,n)=>e.has(t)?a("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),u=(t,e,n)=>(((t,e,n)=>{e.has(t)||a("Cannot "+n)})(t,e,"access private method"),n);var c=Array.isArray,d=Array.prototype.indexOf,f=Array.from,v=Object.defineProperty,p=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyDescriptors,g=Object.prototype,m=Array.prototype,y=Object.getPrototypeOf;function b(t){return"function"==typeof t}const w=()=>{};function x(t){return t()}function _(t){for(var e=0;e<t.length;e++)t[e]()}const $=256,k=1024,C=2048,S=4096,P=8192,M=16384,I=65536,j=Symbol("$state"),E=Symbol("legacy props"),N=Symbol("");function O(t){return t===this.v}function T(t,e){return t!=t?e==e:t!==e||null!==t&&"object"==typeof t||"function"==typeof t}function A(t){return!T(t,this.v)}let B=!1;const z=Symbol();function D(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let q=null;function L(t){q=t}function W(t,e=!1,n){q={p:q,c:null,e:null,m:!1,s:t,x:null,l:null},B&&!e&&(q.l={s:null,u:null,r1:[],r2:R(!1)})}function G(t){const e=q;if(null!==e){const t=e.e;if(null!==t){var n=Jt,r=Ut;e.e=null;try{for(var o=0;o<t.length;o++){var i=t[o];Xt(i.effect),Zt(i.reaction),wt(i.fn)}}finally{Xt(n),Zt(r)}}q=e.p,e.m=!0}return{}}function F(){return!B||null!==q&&null===q.l}function R(t,e){return{f:0,v:t,reactions:null,equals:O,rv:0,wv:0}}function H(t){return U(R(t))}function V(t,e=!1){var n;const r=R(t);return e||(r.equals=A),B&&null!==q&&null!==q.l&&((n=q.l).s??(n.s=[])).push(r),r}function K(t,e=!1){return U(V(t,e))}function U(t){return null!==Ut&&!Yt&&2&Ut.f&&(null===Qt?Qt=[t]:Qt.push(t)),t}function Y(t,e){return null!==Ut&&!Yt&&F()&&18&Ut.f&&(null===Qt||!Qt.includes(t))&&function(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}(),Z(t,e)}function Z(t,e){return t.equals(e)||(t.v,t.v=e,t.wv=le(),X(t,C),F()&&null!==Jt&&Jt.f&k&&!(96&Jt.f)&&(null===ne?ne=[t]:ne.push(t))),e}function J(t,e=1){var n=be(t),r=1===e?n++:n--;return Y(t,n),r}function X(t,e){var n=t.reactions;if(null!==n)for(var r=F(),o=n.length,i=0;i<o;i++){var l=n[i],a=l.f;a&C||(r||l!==Jt)&&(_e(l,e),1280&a&&(2&a?X(l,S):me(l)))}}function Q(t,e=null,n){if("object"!=typeof t||null===t||j in t)return t;const r=y(t);if(r!==g&&r!==m)return t;var o,i=new Map,l=c(t),a=R(0);return l&&i.set("length",R(t.length)),new Proxy(t,{defineProperty(t,e,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var r=i.get(e);return void 0===r?(r=R(n.value),i.set(e,r)):Y(r,Q(n.value,o)),!0},deleteProperty(t,e){var n=i.get(e);if(void 0===n)e in t&&i.set(e,R(z));else{if(l&&"string"==typeof e){var r=i.get("length"),o=Number(e);Number.isInteger(o)&&o<r.v&&Y(r,o)}Y(n,z),tt(a)}return!0},get(e,n,r){var l;if(n===j)return t;var a=i.get(n),s=n in e;if(void 0!==a||s&&!(null==(l=p(e,n))?void 0:l.writable)||(a=R(Q(s?e[n]:z,o)),i.set(n,a)),void 0!==a){var u=be(a);return u===z?void 0:u}return Reflect.get(e,n,r)},getOwnPropertyDescriptor(t,e){var n=Reflect.getOwnPropertyDescriptor(t,e);if(n&&"value"in n){var r=i.get(e);r&&(n.value=be(r))}else if(void 0===n){var o=i.get(e),l=null==o?void 0:o.v;if(void 0!==o&&l!==z)return{enumerable:!0,configurable:!0,value:l,writable:!0}}return n},has(t,e){var n;if(e===j)return!0;var r=i.get(e),l=void 0!==r&&r.v!==z||Reflect.has(t,e);return!((void 0!==r||null!==Jt&&(!l||(null==(n=p(t,e))?void 0:n.writable)))&&(void 0===r&&(r=R(l?Q(t[e],o):z),i.set(e,r)),be(r)===z))&&l},set(t,e,n,r){var s,u=i.get(e),c=e in t;if(l&&"length"===e)for(var d=n;d<u.v;d+=1){var f=i.get(d+"");void 0!==f?Y(f,z):d in t&&(f=R(z),i.set(d+"",f))}void 0===u?c&&!(null==(s=p(t,e))?void 0:s.writable)||(Y(u=R(void 0),Q(n,o)),i.set(e,u)):(c=u.v!==z,Y(u,Q(n,o)));var v=Reflect.getOwnPropertyDescriptor(t,e);if((null==v?void 0:v.set)&&v.set.call(r,n),!c){if(l&&"string"==typeof e){var h=i.get("length"),g=Number(e);Number.isInteger(g)&&g>=h.v&&Y(h,g+1)}tt(a)}return!0},ownKeys(t){be(a);var e=Reflect.ownKeys(t).filter((t=>{var e=i.get(t);return void 0===e||e.v!==z}));for(var[n,r]of i)r.v===z||n in t||e.push(n);return e},setPrototypeOf(){!function(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function tt(t,e=1){Y(t,t.v+e)}var et,nt,rt,ot,it;function lt(t=""){return document.createTextNode(t)}function at(t){return ot.call(t)}function st(t){return it.call(t)}function ut(t,e){return at(t)}function ct(t,e){var n=at(t);return n instanceof Comment&&""===n.data?st(n):n}function dt(t,e=1,n=!1){let r=t;for(;e--;)r=st(r);return r}function ft(t){var e=2050,n=null!==Ut&&2&Ut.f?Ut:null;return null===Jt||null!==n&&n.f&$?e|=$:Jt.f|=1048576,{ctx:q,deps:null,effects:null,equals:O,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:n??Jt}}function vt(t){const e=ft(t);return e.equals=A,e}function pt(t){var e=t.effects;if(null!==e){t.effects=null;for(var n=0;n<e.length;n+=1)It(e[n])}}function ht(t){var e=function(t){var e,n=Jt;Xt(function(t){for(var e=t.parent;null!==e;){if(!(2&e.f))return e;e=e.parent}return null}(t));try{pt(t),e=ce(t)}finally{Xt(n)}return e}(t);_e(t,(ie||t.f&$)&&null!==t.deps?S:k),t.equals(e)||(t.v=e,t.wv=le())}function gt(t){null===Jt&&null===Ut&&function(){throw new Error("https://svelte.dev/e/effect_orphan")}(),null!==Ut&&Ut.f&$&&null===Jt&&function(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}(),Ht&&function(){throw new Error("https://svelte.dev/e/effect_in_teardown")}()}function mt(t,e,n,r=!0){var o,i,l,a=Jt,s={ctx:q,deps:null,nodes_start:null,nodes_end:null,f:t|C,first:null,fn:e,last:null,next:null,parent:a,prev:null,teardown:null,transitions:null,wv:0};if(n)try{ve(s),s.f|=32768}catch(o){throw It(s),o}else null!==e&&me(s);if((!n||null!==s.deps||null!==s.first||null!==s.nodes_start||null!==s.teardown||1048704&s.f)&&r&&(null!==a&&(o=s,null===(l=(i=a).last)?i.last=i.first=o:(l.next=o,o.prev=l,i.last=o)),null!==Ut&&2&Ut.f)){var u=Ut;(u.effects??(u.effects=[])).push(s)}return s}function yt(t){const e=mt(8,null,!1);return _e(e,k),e.teardown=t,e}function bt(t){if(gt(),!(null!==Jt&&32&Jt.f&&null!==q)||q.m)return wt(t);var e=q;(e.e??(e.e=[])).push({fn:t,effect:Jt,reaction:Ut})}function wt(t){return mt(4,t,!1)}function xt(t,e){var n=q,r={effect:null,ran:!1};n.l.r1.push(r),r.effect=$t((()=>{t(),r.ran||(r.ran=!0,Y(n.l.r2,!0),we(e))}))}function _t(){var t=q;$t((()=>{if(be(t.l.r2)){for(var e of t.l.r1){var n=e.effect;n.f&k&&_e(n,S),ae(n)&&ve(n),e.ran=!1}t.l.r2.v=!1}}))}function $t(t){return mt(8,t,!0)}function kt(t,e=[],n=ft){const r=e.map(n);return Ct((()=>t(...r.map(be))))}function Ct(t,e=0){return mt(24|e,t,!0)}function St(t,e=!0){return mt(40,t,!0,e)}function Pt(t){var e=t.teardown;if(null!==e){const t=Ht,n=Ut;Vt(!0),Zt(null);try{e.call(null)}finally{Vt(t),Zt(n)}}}function Mt(t,e=!1){var n=t.first;for(t.first=t.last=null;null!==n;){var r=n.next;64&n.f?n.parent=null:It(n,e),n=r}}function It(t,e=!0){var n=!1;if((e||524288&t.f)&&null!==t.nodes_start){for(var r=t.nodes_start,o=t.nodes_end;null!==r;){var i=r===o?null:st(r);r.remove(),r=i}n=!0}Mt(t,e&&!n),fe(t,0),_e(t,M);var l=t.transitions;if(null!==l)for(const s of l)s.stop();Pt(t);var a=t.parent;null!==a&&null!==a.first&&jt(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function jt(t){var e=t.parent,n=t.prev,r=t.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==e&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function Et(t,e){var n=[];Ot(t,n,!0),Nt(n,(()=>{It(t),e&&e()}))}function Nt(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var o of t)o.out(r)}else e()}function Ot(t,e,n){if(!(t.f&P)){if(t.f^=P,null!==t.transitions)for(const r of t.transitions)(r.is_global||n)&&e.push(r);for(var r=t.first;null!==r;){var o=r.next;Ot(r,e,!!(r.f&I||32&r.f)&&n),r=o}}}function Tt(t){At(t,!0)}function At(t,e){if(t.f&P){t.f^=P,t.f&k||(t.f^=k),ae(t)&&(_e(t,C),me(t));for(var n=t.first;null!==n;){var r=n.next;At(n,!!(n.f&I||32&n.f)&&e),n=r}if(null!==t.transitions)for(const n of t.transitions)(n.is_global||e)&&n.in()}}let Bt=[],zt=[];function Dt(){var t=Bt;Bt=[],_(t)}function qt(t){0===Bt.length&&queueMicrotask(Dt),Bt.push(t)}function Lt(){var t;Bt.length>0&&Dt(),zt.length>0&&(t=zt,zt=[],_(t))}let Wt=!1,Gt=!1,Ft=null,Rt=!1,Ht=!1;function Vt(t){Ht=t}let Kt=[],Ut=null,Yt=!1;function Zt(t){Ut=t}let Jt=null;function Xt(t){Jt=t}let Qt=null,te=null,ee=0,ne=null,re=1,oe=0,ie=!1;function le(){return++re}function ae(t){var e,n=t.f;if(n&C)return!0;if(n&S){var r=t.deps,o=!!(n&$);if(null!==r){var i,l,a=!!(512&n),s=o&&null!==Jt&&!ie,u=r.length;if(a||s){var c=t,d=c.parent;for(i=0;i<u;i++)l=r[i],!a&&(null==(e=null==l?void 0:l.reactions)?void 0:e.includes(c))||(l.reactions??(l.reactions=[])).push(c);a&&(c.f^=512),!s||null===d||d.f&$||(c.f^=$)}for(i=0;i<u;i++)if(ae(l=r[i])&&ht(l),l.wv>t.wv)return!0}o&&(null===Jt||ie)||_e(t,k)}return!1}function se(t,e,n,r){if(Wt){if(null===n&&(Wt=!1),!((o=e).f&M||null!==o.parent&&128&o.parent.f))throw t}else null!==n&&(Wt=!0),function(t,e){for(var n=e;null!==n;){if(128&n.f)try{return void n.fn(t)}catch{n.f^=128}n=n.parent}throw Wt=!1,t}(t,e);var o}function ue(t,e,n=!0){var r=t.reactions;if(null!==r)for(var o=0;o<r.length;o++){var i=r[o];2&i.f?ue(i,e,!1):e===i&&(n?_e(i,C):i.f&k&&_e(i,S),me(i))}}function ce(t){var e,n=te,r=ee,o=ne,i=Ut,l=ie,a=Qt,s=q,u=Yt,c=t.f;te=null,ee=0,ne=null,ie=!!(c&$)&&(Yt||!Rt||null===Ut),Ut=96&c?null:t,Qt=null,L(t.ctx),Yt=!1,oe++;try{var d=(0,t.fn)(),f=t.deps;if(null!==te){var v;if(fe(t,ee),null!==f&&ee>0)for(f.length=ee+te.length,v=0;v<te.length;v++)f[ee+v]=te[v];else t.deps=f=te;if(!ie)for(v=ee;v<f.length;v++)((e=f[v]).reactions??(e.reactions=[])).push(t)}else null!==f&&ee<f.length&&(fe(t,ee),f.length=ee);if(F()&&null!==ne&&!Yt&&null!==f&&!(6146&t.f))for(v=0;v<ne.length;v++)ue(ne[v],t);return null!==i&&oe++,d}finally{te=n,ee=r,ne=o,Ut=i,ie=l,Qt=a,L(s),Yt=u}}function de(t,e){let n=e.reactions;if(null!==n){var r=d.call(n,t);if(-1!==r){var o=n.length-1;0===o?n=e.reactions=null:(n[r]=n[o],n.pop())}}null===n&&2&e.f&&(null===te||!te.includes(e))&&(_e(e,S),768&e.f||(e.f^=512),pt(e),fe(e,0))}function fe(t,e){var n=t.deps;if(null!==n)for(var r=e;r<n.length;r++)de(t,n[r])}function ve(t){var e=t.f;if(!(e&M)){_e(t,k);var n=Jt,r=q,o=Rt;Jt=t,Rt=!0;try{16&e?function(t){for(var e=t.first;null!==e;){var n=e.next;32&e.f||It(e),e=n}}(t):Mt(t),Pt(t);var i=ce(t);t.teardown="function"==typeof i?i:null,t.wv=re,t.deps}catch(l){se(l,t,n,r||t.ctx)}finally{Rt=o,Jt=n}}}function pe(){try{!function(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(t){if(null===Ft)throw t;se(t,Ft,null)}}function he(){var t=Rt;try{var e=0;for(Rt=!0;Kt.length>0;){e++>1e3&&pe();var n=Kt,r=n.length;Kt=[];for(var o=0;o<r;o++)ge(ye(n[o]))}}finally{Gt=!1,Rt=t,Ft=null}}function ge(t){var e=t.length;if(0!==e)for(var n=0;n<e;n++){var r=t[n];if(!(24576&r.f))try{ae(r)&&(ve(r),null===r.deps&&null===r.first&&null===r.nodes_start&&(null===r.teardown?jt(r):r.fn=null))}catch(o){se(o,r,null,r.ctx)}}}function me(t){Gt||(Gt=!0,queueMicrotask(he));for(var e=Ft=t;null!==e.parent;){var n=(e=e.parent).f;if(96&n){if(!(n&k))return;e.f^=k}}Kt.push(e)}function ye(t){for(var e=[],n=t;null!==n;){var r=n.f,o=!!(96&r);if(!(o&&r&k||r&P)){if(4&r)e.push(n);else if(o)n.f^=k;else{var i=Ut;try{Ut=n,ae(n)&&ve(n)}catch(s){se(s,n,null,n.ctx)}finally{Ut=i}}var l=n.first;if(null!==l){n=l;continue}}var a=n.parent;for(n=n.next;null===n&&null!==a;)n=a.next,a=a.parent}return e}function be(t){var e=!!(2&t.f);if(null===Ut||Yt){if(e&&null===t.deps&&null===t.effects){var n=t,r=n.parent;null===r||r.f&$||(n.f^=$)}}else{null!==Qt&&Qt.includes(t)&&function(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}();var o=Ut.deps;t.rv<oe&&(t.rv=oe,null===te&&null!==o&&o[ee]===t?ee++:null===te?te=[t]:ie&&te.includes(t)||te.push(t))}return e&&ae(n=t)&&ht(n),t.v}function we(t){var e=Yt;try{return Yt=!0,t()}finally{Yt=e}}const xe=-7169;function _e(t,e){t.f=t.f&xe|e}function $e(t){if("object"==typeof t&&t&&!(t instanceof EventTarget))if(j in t)ke(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];"object"==typeof n&&n&&j in n&&ke(n)}}function ke(t,e=new Set){if(!("object"!=typeof t||null===t||t instanceof EventTarget||e.has(t))){e.add(t),t instanceof Date&&t.getTime();for(let o in t)try{ke(t[o],e)}catch(n){}const r=y(t);if(r!==Object.prototype&&r!==Array.prototype&&r!==Map.prototype&&r!==Set.prototype&&r!==Date.prototype){const e=h(r);for(let r in e){const o=e[r].get;if(o)try{o.call(t)}catch(n){}}}}}function Ce(t){return t.endsWith("capture")&&"gotpointercapture"!==t&&"lostpointercapture"!==t}const Se=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Pe(t){return Se.includes(t)}const Me={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 Ie(t){return t=t.toLowerCase(),Me[t]??t}const je=["touchstart","touchmove"];function Ee(t){return je.includes(t)}function Ne(t,e){if(e){const e=document.body;t.autofocus=!0,qt((()=>{document.activeElement===e&&t.focus()}))}}let Oe=!1;function Te(t){var e=Ut,n=Jt;Zt(null),Xt(null);try{return t()}finally{Zt(e),Xt(n)}}const Ae=new Set,Be=new Set;function ze(t,e,n,r={}){function o(t){if(r.capture||Le.call(e,t),!t.cancelBubble)return Te((()=>null==n?void 0:n.call(this,t)))}return t.startsWith("pointer")||t.startsWith("touch")||"wheel"===t?qt((()=>{e.addEventListener(t,o,r)})):e.addEventListener(t,o,r),o}function De(t,e,n,r,o){var i={capture:r,passive:o},l=ze(t,e,n,i);e!==document.body&&e!==window&&e!==document||yt((()=>{e.removeEventListener(t,l,i)}))}function qe(t){for(var e=0;e<t.length;e++)Ae.add(t[e]);for(var n of Be)n(t)}function Le(t){var e,n=this,r=n.ownerDocument,o=t.type,i=(null==(e=t.composedPath)?void 0:e.call(t))||[],l=i[0]||t.target,a=0,s=t.__root;if(s){var u=i.indexOf(s);if(-1!==u&&(n===document||n===window))return void(t.__root=n);var d=i.indexOf(n);if(-1===d)return;u<=d&&(a=u)}if((l=i[a]||t.target)!==n){v(t,"currentTarget",{configurable:!0,get:()=>l||r});var f=Ut,p=Jt;Zt(null),Xt(null);try{for(var h,g=[];null!==l;){var m=l.assignedSlot||l.parentNode||l.host||null;try{var y=l["__"+o];if(null!=y&&(!l.disabled||t.target===l))if(c(y)){var[b,...w]=y;b.apply(l,[t,...w])}else y.call(l,t)}catch(x){h?g.push(x):h=x}if(t.cancelBubble||m===n||null===m)break;l=m}if(h){for(let t of g)queueMicrotask((()=>{throw t}));throw h}}finally{t.__root=n,delete t.currentTarget,Zt(f),Xt(p)}}}function We(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Ge(t,e){var n=Jt;null===n.nodes_start&&(n.nodes_start=t,n.nodes_end=e)}function Fe(t,e){var n,r=!!(1&e),o=!!(2&e),i=!t.startsWith("<!>");return()=>{void 0===n&&(n=We(i?t:"<!>"+t),r||(n=at(n)));var e=o||rt?document.importNode(n,!0):n.cloneNode(!0);return r?Ge(at(e),e.lastChild):Ge(e,e),e}}function Re(t,e,n="svg"){var r,o=`<${n}>${t.startsWith("<!>")?"<!>"+t:t}</${n}>`;return()=>{if(!r){var t=at(We(o));r=at(t)}var e=r.cloneNode(!0);return Ge(e,e),e}}function He(t=""){var e=lt(t+"");return Ge(e,e),e}function Ve(){var t=document.createDocumentFragment(),e=document.createComment(""),n=lt();return t.append(e,n),Ge(e,n),t}function Ke(t,e){null!==t&&t.before(e)}let Ue=!0;function Ye(t){Ue=t}function Ze(t,e){var n=null==e?"":"object"==typeof e?e+"":e;n!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=n,t.nodeValue=n+"")}const Je=new Map;let Xe=new WeakMap;function Qe(t,e,[n,r]=[0,0]){var o=t,i=null,l=null,a=z,s=!1;const u=(t,e=!0)=>{s=!0,c(e,t)},c=(t,e)=>{a!==(a=t)&&(a?(i?Tt(i):e&&(i=St((()=>e(o)))),l&&Et(l,(()=>{l=null}))):(l?Tt(l):e&&(l=St((()=>e(o,[n+1,r])))),i&&Et(i,(()=>{i=null}))))};Ct((()=>{s=!1,e(u),s||c(null,null)}),n>0?I:0)}let tn=null;function en(t){tn=t}function nn(t,e){return e}function rn(t,e,n,r,o,i=null){var l=t,a={flags:e,items:new Map,first:null};!(4&e)||(l=t.appendChild(lt()));var s=null,u=!1,d=vt((()=>{var t=n();return c(t)?t:null==t?[]:f(t)}));Ct((()=>{var t=be(d),c=t.length;u&&0===c||(u=0===c,function(t,e,n,r,o,i,l){var a,s,u,c,d,v,p,h,g,m,y=!!(8&o),b=!!(3&o),w=t.length,x=e.items,_=e.first,$=null,k=[],C=[];if(y)for(m=0;m<w;m+=1)h=i(p=t[m],m),void 0!==(g=x.get(h))&&(null==(a=g.a)||a.measure(),(v??(v=new Set)).add(g));for(m=0;m<w;m+=1)if(h=i(p=t[m],m),void 0!==(g=x.get(h))){if(b&&on(g,p,m,o),g.e.f&P&&(Tt(g.e),y&&(null==(s=g.a)||s.unfix(),(v??(v=new Set)).delete(g))),g!==_){if(void 0!==d&&d.has(g)){if(k.length<C.length){var S,M=C[0];$=M.prev;var I=k[0],j=k[k.length-1];for(S=0;S<k.length;S+=1)an(k[S],M,n);for(S=0;S<C.length;S+=1)d.delete(C[S]);sn(e,I.prev,j.next),sn(e,$,I),sn(e,j,M),_=M,$=j,m-=1,k=[],C=[]}else d.delete(g),an(g,_,n),sn(e,g.prev,g.next),sn(e,g,null===$?e.first:$.next),sn(e,$,g),$=g;continue}for(k=[],C=[];null!==_&&_.k!==h;)_.e.f&P||(d??(d=new Set)).add(_),C.push(_),_=_.next;if(null===_)continue;g=_}k.push(g),$=g,_=g.next}else $=ln(_?_.e.nodes_start:n,e,$,null===$?e.first:$.next,p,h,m,r,o,l),x.set(h,$),k=[],C=[],_=$.next;if(null!==_||void 0!==d){for(var E=void 0===d?[]:f(d);null!==_;)_.e.f&P||E.push(_),_=_.next;var N=E.length;if(N>0){var O=4&o&&0===w?n:null;if(y){for(m=0;m<N;m+=1)null==(u=E[m].a)||u.measure();for(m=0;m<N;m+=1)null==(c=E[m].a)||c.fix()}!function(t,e,n,r){for(var o=[],i=e.length,l=0;l<i;l++)Ot(e[l].e,o,!0);var a=i>0&&0===o.length&&null!==n;if(a){var s=n.parentNode;s.textContent="",s.append(n),r.clear(),sn(t,e[0].prev,e[i-1].next)}Nt(o,(()=>{for(var n=0;n<i;n++){var o=e[n];a||(r.delete(o.k),sn(t,o.prev,o.next)),It(o.e,!a)}}))}(e,E,O,x)}}y&&qt((()=>{var t;if(void 0!==v)for(g of v)null==(t=g.a)||t.apply()})),Jt.first=e.first&&e.first.e,Jt.last=$&&$.e}(t,a,l,o,e,r,n),null!==i&&(0===c?s?Tt(s):s=St((()=>i(l))):null!==s&&Et(s,(()=>{s=null}))),be(d))}))}function on(t,e,n,r){1&r&&Z(t.v,e),2&r?Z(t.i,n):t.i=n}function ln(t,e,n,r,o,i,l,a,s,u){var c=tn,d=1&s?16&s?R(o):V(o):o,f=2&s?R(l):l,v={i:f,v:d,k:i,a:null,e:null,prev:n,next:r};tn=v;try{return v.e=St((()=>a(t,d,f,u)),!1),v.e.prev=n&&n.e,v.e.next=r&&r.e,null===n?e.first=v:(n.next=v,n.e.next=v.e),null!==r&&(r.prev=v,r.e.prev=v.e),v}finally{tn=c}}function an(t,e,n){for(var r=t.next?t.next.e.nodes_start:n,o=e?e.e.nodes_start:n,i=t.e.nodes_start;i!==r;){var l=st(i);o.before(i),i=l}}function sn(t,e,n){null===e?t.first=n:(e.next=n,e.e.next=n&&n.e),null!==n&&(n.prev=e,n.e.prev=e&&e.e)}function un(t,e,n,r,o){var i,l=null==(i=e.$$slots)?void 0:i[n],a=!1;!0===l&&(l=e["default"===n?"children":n],a=!0),void 0===l?null!==o&&o(t):l(t,a?()=>r:r)}function cn(t,e,n){var r,o,i=t;Ct((()=>{r!==(r=e())&&(o&&(Et(o),o=null),r&&(o=St((()=>n(i,r)))))}),I)}function dn(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(e=0;e<o;e++)t[e]&&(n=dn(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function fn(t){return"object"==typeof t?function(){for(var t,e,n=0,r="",o=arguments.length;n<o;n++)(t=arguments[n])&&(e=dn(t))&&(r&&(r+=" "),r+=e);return r}(t):t??""}const vn=[..." \t\n\r\f \v\ufeff"];function pn(t,e=!1){var n=e?" !important;":";",r="";for(var o in t){var i=t[o];null!=i&&""!==i&&(r+=" "+o+": "+i+n)}return r}function hn(t){return"-"!==t[0]||"-"!==t[1]?t.toLowerCase():t}function gn(t,e,n,r,o,i){if(t.__className!==n){var l=function(t,e,n){var r=null==t?"":""+t;if(e&&(r=r?r+" "+e:e),n)for(var o in n)if(n[o])r=r?r+" "+o:o;else if(r.length)for(var i=o.length,l=0;(l=r.indexOf(o,l))>=0;){var a=l+i;0!==l&&!vn.includes(r[l-1])||a!==r.length&&!vn.includes(r[a])?l=a:r=(0===l?"":r.substring(0,l))+r.substring(a+1)}return""===r?null:r}(n,r,i);null==l?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l),t.__className=n}else if(i&&o!==i)for(var a in i){var s=!!i[a];null!=o&&s===!!o[a]||t.classList.toggle(a,s)}return i}function mn(t,e={},n,r){for(var o in n){var i=n[o];e[o]!==i&&(null==n[o]?t.style.removeProperty(o):t.style.setProperty(o,i,r))}}function yn(t,e,n,r){if(t.__style!==e){var o=function(t,e){if(e){var n,r,o="";if(Array.isArray(e)?(n=e[0],r=e[1]):n=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var i=!1,l=0,a=!1,s=[];n&&s.push(...Object.keys(n).map(hn)),r&&s.push(...Object.keys(r).map(hn));var u=0,c=-1;const e=t.length;for(var d=0;d<e;d++){var f=t[d];if(a?"/"===f&&"*"===t[d-1]&&(a=!1):i?i===f&&(i=!1):"/"===f&&"*"===t[d+1]?a=!0:'"'===f||"'"===f?i=f:"("===f?l++:")"===f&&l--,!a&&!1===i&&0===l)if(":"===f&&-1===c)c=d;else if(";"===f||d===e-1){if(-1!==c){var v=hn(t.substring(u,c).trim());s.includes(v)||(";"!==f&&d++,o+=" "+t.substring(u,d).trim()+";")}u=d+1,c=-1}}}return n&&(o+=pn(n)),r&&(o+=pn(r,!0)),""===(o=o.trim())?null:o}return null==t?null:String(t)}(e,r);null==o?t.removeAttribute("style"):t.style.cssText=o,t.__style=e}else r&&(Array.isArray(r)?(mn(t,null==n?void 0:n[0],r[0]),mn(t,null==n?void 0:n[1],r[1],"important")):mn(t,n,r));return r}const bn=Symbol("class"),wn=Symbol("style"),xn=Symbol("is custom element"),_n=Symbol("is html");function $n(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function kn(t,e,n,r){var o=Sn(t);o[e]!==(o[e]=n)&&("loading"===e&&(t[N]=n),null==n?t.removeAttribute(e):"string"!=typeof n&&Mn(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Cn(t,e,n,r,o=!1){var i=Sn(t),l=i[xn],a=!i[_n],s=e||{},u="OPTION"===t.tagName;for(var c in e)c in n||(n[c]=null);n.class?n.class=fn(n.class):(r||n[bn])&&(n.class=null),n[wn]&&(n.style??(n.style=null));var d=Mn(t);for(const m in n){let o=n[m];if(u&&"value"===m&&null==o)t.value=t.__value="",s[m]=o;else if("class"!==m)if("style"!==m){var f=s[m];if(o!==f){s[m]=o;var v=m[0]+m[1];if("$$"!==v)if("on"===v){const e={},n="$$"+m;let r=m.slice(2);var p=Pe(r);if(Ce(r)&&(r=r.slice(0,-7),e.capture=!0),!p&&f){if(null!=o)continue;t.removeEventListener(r,s[n],e),s[n]=null}if(null!=o)if(p)t[`__${r}`]=o,qe([r]);else{let o=function(t){s[m].call(this,t)};s[n]=ze(r,t,o,e)}else p&&(t[`__${r}`]=void 0)}else if("style"===m)kn(t,m,o);else if("autofocus"===m)Ne(t,Boolean(o));else if(l||"__value"!==m&&("value"!==m||null==o))if("selected"===m&&u)$n(t,o);else{var h=m;a||(h=Ie(h));var g="defaultValue"===h||"defaultChecked"===h;if(null!=o||l||g)g||d.includes(h)&&(l||"string"!=typeof o)?t[h]=o:"function"!=typeof o&&kn(t,h,o);else if(i[m]=null,"value"===h||"checked"===h){let n=t;const r=void 0===e;if("value"===h){let t=n.defaultValue;n.removeAttribute(h),n.defaultValue=t,n.value=n.__value=r?t:null}else{let t=n.defaultChecked;n.removeAttribute(h),n.defaultChecked=t,n.checked=!!r&&t}}else t.removeAttribute(m)}else t.value=t.__value=o}}else yn(t,o,null==e?void 0:e[wn],n[wn]),s[m]=o,s[wn]=n[wn];else gn(t,"http://www.w3.org/1999/xhtml"===t.namespaceURI,o,r,null==e?void 0:e[bn],n[bn]),s[m]=o,s[bn]=n[bn]}return s}function Sn(t){return t.__attributes??(t.__attributes={[xn]:t.nodeName.includes("-"),[_n]:"http://www.w3.org/1999/xhtml"===t.namespaceURI})}var Pn=new Map;function Mn(t){var e,n=Pn.get(t.nodeName);if(n)return n;Pn.set(t.nodeName,n=[]);for(var r=t,o=Element.prototype;o!==r;){for(var i in e=h(r))e[i].set&&n.push(i);r=y(r)}return n}const In={tick:t=>requestAnimationFrame(t),now:()=>performance.now(),tasks:new Set};function jn(){const t=In.now();In.tasks.forEach((e=>{e.c(t)||(In.tasks.delete(e),e.f())})),0!==In.tasks.size&&In.tick(jn)}function En(t,e){Te((()=>{t.dispatchEvent(new CustomEvent(e))}))}function Nn(t){if("float"===t)return"cssFloat";if("offset"===t)return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return 1===e.length?e[0]:e[0]+e.slice(1).map((t=>t[0].toUpperCase()+t.slice(1))).join("")}function On(t){const e={},n=t.split(";");for(const r of n){const[t,n]=r.split(":");if(!t||void 0===n)break;e[Nn(t.trim())]=n.trim()}return e}const Tn=t=>t;function An(t,e,n,r){var o,i,l,a=!!(4&t),s=e.inert,u=e.style.overflow;function c(){var t=Ut,i=Jt;Zt(null),Xt(null);try{return o??(o=n()(e,(null==r?void 0:r())??{},{direction:"both"}))}finally{Zt(t),Xt(i)}}var d={is_global:a,in(){e.inert=s,En(e,"introstart"),i=Bn(e,c(),l,1,(()=>{En(e,"introend"),null==i||i.abort(),i=o=void 0,e.style.overflow=u}))},out(t){e.inert=!0,En(e,"outrostart"),l=Bn(e,c(),i,0,(()=>{En(e,"outroend"),null==t||t()}))},stop:()=>{null==i||i.abort(),null==l||l.abort()}},f=Jt;if((f.transitions??(f.transitions=[])).push(d),Ue){var v=a;if(!v){for(var p=f.parent;p&&p.f&I;)for(;(p=p.parent)&&!(16&p.f););v=!p||!!(32768&p.f)}v&&wt((()=>{we((()=>d.in()))}))}}function Bn(t,e,n,r,o){var i=1===r;if(b(e)){var l,a=!1;return qt((()=>{if(!a){var s=e({direction:i?"in":"out"});l=Bn(t,s,n,r,o)}})),{abort:()=>{a=!0,null==l||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(null==n||n.deactivate(),!(null==e?void 0:e.duration))return o(),{abort:w,deactivate:w,reset:w,t:()=>r};const{delay:s=0,css:u,tick:c,easing:d=Tn}=e;var f=[];if(i&&void 0===n&&(c&&c(0,1),u)){var v=On(u(0,1));f.push(v,v)}var p=()=>1-r,h=t.animate(f,{duration:s});return h.onfinish=()=>{var i=(null==n?void 0:n.t())??1-r;null==n||n.abort();var l=r-i,a=e.duration*Math.abs(l),s=[];if(a>0){var f=!1;if(u)for(var v=Math.ceil(a/(1e3/60)),g=0;g<=v;g+=1){var m=i+l*d(g/v),y=On(u(m,1-m));s.push(y),f||(f="hidden"===y.overflow)}f&&(t.style.overflow="hidden"),p=()=>{var t=h.currentTime;return i+l*d(t/a)},c&&function(t){let e;0===In.tasks.size&&In.tick(jn),new Promise((n=>{In.tasks.add(e={c:t,f:n})}))}((()=>{if("running"!==h.playState)return!1;var t=p();return c(t,1-t),!0}))}(h=t.animate(s,{duration:a,fill:"forwards"})).onfinish=()=>{p=()=>r,null==c||c(r,1-r),o()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=w)},deactivate:()=>{o=w},reset:()=>{0===r&&(null==c||c(1,0))},t:()=>p()}}function zn(t){var e=t.type;return"number"===e||"range"===e}function Dn(t){return""===t?null:+t}function qn(t,e){return t===e||(null==t?void 0:t[j])===e}function Ln(t={},e,n,r){return wt((()=>{var r,o;return $t((()=>{r=o,o=[],we((()=>{t!==n(...o)&&(e(t,...o),r&&qn(n(...r),t)&&e(null,...r))}))})),()=>{qt((()=>{o&&qn(n(...o),t)&&e(null,...o)}))}})),t}function Wn(t=!1){const e=q,n=e.l.u;if(!n)return;let r=()=>$e(e.s);if(t){let t=0,n={};const o=ft((()=>{let r=!1;const o=e.s;for(const t in o)o[t]!==n[t]&&(n[t]=o[t],r=!0);return r&&t++,t}));r=()=>be(o)}var o;n.b.length&&(o=()=>{Gn(e,r),_(n.b)},gt(),$t(o)),bt((()=>{const t=we((()=>n.m.map(x)));return()=>{for(const e of t)"function"==typeof e&&e()}})),n.a.length&&bt((()=>{Gn(e,r),_(n.a)}))}function Gn(t,e){if(t.l.s)for(const n of t.l.s)be(n);e()}function Fn(t,e,n){if(null==t)return e(void 0),w;const r=we((()=>t.subscribe(e,n)));return r.unsubscribe?()=>r.unsubscribe():r}const Rn=[];function Hn(t,e=w){let n=null;const r=new Set;function o(e){if(T(t,e)&&(t=e,n)){const e=!Rn.length;for(const n of r)n[1](),Rn.push(n,t);if(e){for(let t=0;t<Rn.length;t+=2)Rn[t][0](Rn[t+1]);Rn.length=0}}}function i(e){o(e(t))}return{set:o,update:i,subscribe:function(l,a=w){const s=[l,a];return r.add(s),1===r.size&&(n=e(o,i)||w),l(t),()=>{r.delete(s),0===r.size&&n&&(n(),n=null)}}}}function Vn(t){let e;return Fn(t,(t=>e=t))(),e}let Kn=!1,Un=Symbol();function Yn(t,e,n){const r=n[e]??(n[e]={store:null,source:V(void 0),unsubscribe:w});if(r.store!==t&&!(Un in n))if(r.unsubscribe(),r.store=t??null,null==t)r.source.v=void 0,r.unsubscribe=w;else{var o=!0;r.unsubscribe=Fn(t,(t=>{o?r.source.v=t:Y(r.source,t)})),o=!1}return t&&Un in n?Vn(t):be(r.source)}function Zn(t,e){return t.set(e),e}function Jn(){const t={};return[t,function(){yt((()=>{for(var e in t)t[e].unsubscribe();v(t,Un,{enumerable:!1,value:!0})}))}]}const Xn={get(t,e){if(!t.exclude.includes(e))return be(t.version),e in t.special?t.special[e]():t.props[e]},set:(t,e,n)=>(e in t.special||(t.special[e]=nr({get[e](){return t.props[e]}},e,4)),t.special[e](n),J(t.version),!0),getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e))return e in t.props?{enumerable:!0,configurable:!0,value:t.props[e]}:void 0},deleteProperty:(t,e)=>(t.exclude.includes(e)||(t.exclude.push(e),J(t.version)),!0),has:(t,e)=>!t.exclude.includes(e)&&e in t.props,ownKeys:t=>Reflect.ownKeys(t.props).filter((e=>!t.exclude.includes(e)))};function Qn(t,e){return new Proxy({props:t,exclude:e,special:{},version:R(0)},Xn)}const tr={get(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(b(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r)return r[e]}},set(t,e,n){let r=t.props.length;for(;r--;){let o=t.props[r];b(o)&&(o=o());const i=p(o,e);if(i&&i.set)return i.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let r=t.props[n];if(b(r)&&(r=r()),"object"==typeof r&&null!==r&&e in r){const t=p(r,e);return t&&!t.configurable&&(t.configurable=!0),t}}},has(t,e){if(e===j||e===E)return!1;for(let n of t.props)if(b(n)&&(n=n()),null!=n&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props){b(n)&&(n=n());for(const t in n)e.includes(t)||e.push(t)}return e}};function er(...t){return new Proxy({props:t},tr)}function nr(t,e,n,r){var o,i,l=!!(1&n),a=!B||!!(2&n),s=!!(8&n),u=!!(16&n),c=!1;s?[i,c]=function(t){var e=Kn;try{return Kn=!1,[t(),Kn]}finally{Kn=e}}((()=>t[e])):i=t[e];var d,f=j in t||E in t,v=s&&((null==(o=p(t,e))?void 0:o.set)??(f&&e in t&&(n=>t[e]=n)))||void 0,h=r,g=!0,m=!1,y=()=>(m=!0,g&&(g=!1,h=u?we(r):r),h);if(void 0===i&&void 0!==r&&(v&&a&&function(){throw new Error("https://svelte.dev/e/props_invalid_value")}(),i=y(),v&&v(i)),a)d=()=>{var n=t[e];return void 0===n?y():(g=!0,m=!1,n)};else{var b=(l?ft:vt)((()=>t[e]));b.f|=131072,d=()=>{var t=be(b);return void 0!==t&&(h=void 0),void 0===t?h:t}}if(!(4&n))return d;if(v){var w=t.$$legacy;return function(t,e){return arguments.length>0?(a&&e&&!w&&!c||v(e?d():t),t):d()}}var x=!1,_=V(i),$=ft((()=>{var t=d(),e=be(_);return x?(x=!1,e):_.v=t}));return l||($.equals=A),function(t,e){if(arguments.length>0){const n=e?be($):a&&s?Q(t):t;return $.equals(n)||(x=!0,Y(_,n),m&&void 0!==h&&(h=n),we((()=>be($)))),t}return be($)}}function rr(t){var e,n;null===q&&D(),B&&null!==q.l?(e=q,n=e.l,n.u??(n.u={a:[],b:[],m:[]})).m.push(t):bt((()=>{const e=we(t);if("function"==typeof e)return e}))}"undefined"!=typeof window&&((t=window.__svelte??(window.__svelte={})).v??(t.v=new Set)).add("5"),B=!0;
2
2
  /**
3
3
  * @license lucide-svelte v0.476.0 - ISC
4
4
  *
@@ -19,5 +19,5 @@ var PlaylightSDK=function(){"use strict";var t,e,n,r,o,i,l,a=t=>{throw TypeError
19
19
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
20
20
  *
21
21
  */
22
- const or={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var ir=He("<svg><!><!></svg>");function lr(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]),r=Qn(n,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);L(e,!1);let o=nr(e,"name",8,void 0),i=nr(e,"color",8,"currentColor"),l=nr(e,"size",8,24),a=nr(e,"strokeWidth",8,2),s=nr(e,"absoluteStrokeWidth",8,!1),u=nr(e,"iconNode",24,(()=>[]));Ln();var c=ir();let d;var f=ut(c);rn(f,1,u,nn,((t,e)=>{var n,r,o,i,l,a,s,u,c,d=Ke();n=ct(d),r=()=>be(e)[0],o=(t,n)=>{let r;kt((()=>r=Cn(t,r,{...be(e)[1]})))},s=null,u=n,c=tn,Ct((()=>{const t=r()||null;if(t!==i){var e=tn;en(c),a&&(null===t?Mt(a,(()=>{a=null,l=null})):t===l?Tt(a):(jt(a),Ze(!1))),t&&t!==l&&(a=St((()=>{if(Fe(s=document.createElementNS("http://www.w3.org/2000/svg",t),s),o){var e=s.appendChild(lt());o(s,e)}Yt.nodes_end=s,u.before(s)}))),(i=t)&&(l=i),Ze(!0),en(e)}}),j),Ge(t,d)})),un(dt(f),e,"default",{},null),kt(((t,e)=>d=Cn(c,d,{...or,...r,width:l(),height:l(),stroke:i(),"stroke-width":t,class:e})),[()=>s()?24*Number(a())/Number(l()):a(),()=>((...t)=>t.filter(((t,e,n)=>Boolean(t)&&n.indexOf(t)===e)).join(" "))("lucide-icon","lucide",o()?`lucide-${o()}`:"",n.class)],vt),Ge(t,c),F()}function ar(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"loader-circle"},(()=>n),{iconNode:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]],children:(t,n)=>{var r=Ke();un(ct(r),e,"default",{},null),Ge(t,r)},$$slots:{default:!0}}))}var sr=(t,e)=>{var n;null==(n=e.onClick)||n.call(e)},ur=Re('<button id="floating playlight button" aria-label="Open Playlight Discovery"><p class="z-2 flex items-center overflow-hidden svelte-1j97rta"><!> <span class="mr-0.25 inline-block font-bold svelte-1j97rta">More Games</span></p> <div class="absolute bottom-0 left-0 h-full w-0 bg-black transition-all duration-300 group-hover:w-full svelte-1j97rta"></div></button>');function cr(t){const e=t-1;return e*e*e+1}function dr(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function fr(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function vr(t,{delay:e=0,duration:n=400,easing:r=dr,amount:o=5,opacity:i=0}={}){const l=getComputedStyle(t),a=+l.opacity,s="none"===l.filter?"":l.filter,u=a*(1-i),[c,d]=fr(o);return{delay:e,duration:n,easing:r,css:(t,e)=>`opacity: ${a-u*e}; filter: ${s} blur(${e*c}${d});`}}function pr(t,{delay:e=0,duration:n=400,easing:r=cr,x:o=0,y:i=0,opacity:l=0}={}){const a=getComputedStyle(t),s=+a.opacity,u="none"===a.transform?"":a.transform,c=s*(1-l),[d,f]=fr(o),[v,p]=fr(i);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${u} translate(${(1-t)*d}${f}, ${(1-t)*v}${p});\n\t\t\topacity: ${s-c*e}`}}function hr(t,{delay:e=0,duration:n=400,easing:r=cr,axis:o="y"}={}){const i=getComputedStyle(t),l=+i.opacity,a="y"===o?"height":"width",s=parseFloat(i[a]),u="y"===o?["top","bottom"]:["left","right"],c=u.map((t=>`${t[0].toUpperCase()}${t.slice(1)}`)),d=parseFloat(i[`padding${c[0]}`]),f=parseFloat(i[`padding${c[1]}`]),v=parseFloat(i[`margin${c[0]}`]),p=parseFloat(i[`margin${c[1]}`]),h=parseFloat(i[`border${c[0]}Width`]),g=parseFloat(i[`border${c[1]}Width`]);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*l};${a}: ${t*s}px;padding-${u[0]}: ${t*d}px;padding-${u[1]}: ${t*f}px;margin-${u[0]}: ${t*v}px;margin-${u[1]}: ${t*p}px;border-${u[0]}-width: ${t*h}px;border-${u[1]}-width: ${t*g}px;min-${a}: 0`}}function gr(t,{delay:e=0,duration:n=400,easing:r=cr,start:o=0,opacity:i=0}={}){const l=getComputedStyle(t),a=+l.opacity,s="none"===l.transform?"":l.transform,u=1-o,c=a*(1-i);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${s} scale(${1-u*e});\n\t\t\topacity: ${a-c*e}\n\t\t`}}qe(["click"]);var mr=He('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'),yr=He('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'),br=He('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'),wr=He('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function xr(t,e){let n=nr(e,"type",8,"success");var r=Ke(),o=ct(r),i=t=>{Ge(t,mr())},l=(t,e)=>{var r=t=>{Ge(t,yr())},o=(t,e)=>{var r=t=>{Ge(t,br())},o=(t,e)=>{var r=t=>{Ge(t,wr())},o=t=>{};Qe(t,(t=>{"warning"===n()?t(r):t(o,!1)}),e)};Qe(t,(t=>{"info"===n()?t(r):t(o,!1)}),e)};Qe(t,(t=>{"error"===n()?t(r):t(o,!1)}),e)};Qe(o,(t=>{"success"===n()?t(i):t(l,!1)})),Ge(t,r)}var _r=Re('<div class="sonner-loading-bar"></div>'),$r=Re('<div class="sonner-loading-wrapper"><div class="sonner-spinner"></div></div>');function kr(...t){return t.filter(Boolean).join(" ")}const Cr="undefined"!=typeof document;function Sr(t){const e=Vn(t);return{subscribe:e.subscribe,set:function(t){Cr&&e.set(t)},update:function(t){Cr&&e.update(t)}}}let Pr=0;const Ir=function(){const t=Sr([]),e=Sr([]);function n(e){t.update((t=>[e,...t]))}function r(e){var r;const{message:o,...i}=e,l="number"==typeof(null==e?void 0:e.id)||e.id&&(null==(r=e.id)?void 0:r.length)>0?e.id:Pr++,a=void 0===e.dismissable||e.dismissable,s=void 0===e.type?"default":e.type;return Kn(t).find((t=>t.id===l))?t.update((t=>t.map((t=>t.id===l?{...t,...e,id:l,title:o,dismissable:a,type:s,updated:!0}:{...t,updated:!1})))):n({...i,id:l,title:o,dismissable:a,type:s}),l}function o(e){if(void 0!==e)return t.update((t=>t.map((t=>t.id===e?{...t,dismiss:!0}:t)))),e;t.update((t=>t.map((t=>({...t,dismiss:!0})))))}return{create:r,addToast:n,dismiss:o,remove:function(e){if(void 0!==e)return t.update((t=>t.filter((t=>t.id!==e)))),e;t.set([])},message:function(t,e){return r({...e,type:"default",message:t})},error:function(t,e){return r({...e,type:"error",message:t})},success:function(t,e){return r({...e,type:"success",message:t})},info:function(t,e){return r({...e,type:"info",message:t})},warning:function(t,e){return r({...e,type:"warning",message:t})},loading:function(t,e){return r({...e,type:"loading",message:t})},promise:function(t,e){if(!e)return;let n;void 0!==e.loading&&(n=r({...e,promise:t,type:"loading",message:e.loading}));const i=t instanceof Promise?t:t();let l=void 0!==n;return i.then((t=>{if(t&&"boolean"==typeof t.ok&&!t.ok){l=!1;const o="function"==typeof e.error?e.error(`HTTP error! status: ${t.status}`):e.error;r({id:n,type:"error",message:o})}else if(void 0!==e.success){l=!1;const o="function"==typeof e.success?e.success(t):e.success;r({id:n,type:"success",message:o})}})).catch((t=>{if(void 0!==e.error){l=!1;const o="function"==typeof e.error?e.error(t):e.error;r({id:n,type:"error",message:o})}})).finally((()=>{var t;l&&(o(n),n=void 0),null==(t=e.finally)||t.call(e)})),n},custom:function(t,e){const n=(null==e?void 0:e.id)||Pr++;return r({component:t,id:n,...e}),n},removeHeight:function(t){e.update((e=>e.filter((e=>e.toastId!==t))))},setHeight:function(t){void 0!==Kn(e).find((e=>e.toastId===t.toastId))?e.update((e=>e.map((e=>e.toastId===t.toastId?t:e)))):e.update((e=>[t,...e]))},reset:function(){t.set([]),e.set([])},toasts:t,heights:e}}(),jr=Object.assign((function(t,e){return Ir.create({message:t,...e})}),{success:Ir.success,info:Ir.info,warning:Ir.warning,error:Ir.error,custom:Ir.custom,message:Ir.message,promise:Ir.promise,dismiss:Ir.dismiss,loading:Ir.loading});var Er=Re('<button aria-label="Close toast" data-close-button=""><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button>'),Mr=Re('<div data-icon=""><!> <!></div>'),Nr=Re('<div data-title=""><!></div>'),Or=Re('<div data-description=""><!></div>'),Tr=Re('<button data-button="" data-cancel=""> </button>'),Ar=Re('<button data-button=""> </button>'),Br=Re('<!> <div data-content=""><!> <!></div> <!> <!>',1),zr=Re('<li aria-atomic="true" role="status" data-sonner-toast=""><!> <!></li>');function Dr(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);L(e,!1);const[r,o]=Yn(),i=()=>Zn(_,"$heights",r),l=()=>Zn(be(lt),"$effect",r),a=G(void 0,!0),s=G(void 0,!0),u=G(void 0,!0),c=G(void 0,!0),d=G(void 0,!0),f=G(void 0,!0),v=G(void 0,!0),p=G(void 0,!0),h=G(void 0,!0),g=G(void 0,!0),m=G(void 0,!0),y=G(void 0,!0),b={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""},{toasts:x,heights:_,removeHeight:$,setHeight:k,remove:C}=Ir;let S=nr(e,"toast",9),P=nr(e,"index",9),I=nr(e,"expanded",9),j=nr(e,"invert",13),E=nr(e,"position",9),M=nr(e,"visibleToasts",9),N=nr(e,"expandByDefault",9),O=nr(e,"closeButton",9),T=nr(e,"interacting",9),A=nr(e,"cancelButtonStyle",9,""),B=nr(e,"actionButtonStyle",9,""),z=nr(e,"duration",9,4e3),D=nr(e,"descriptionClass",9,""),q=nr(e,"classes",29,(()=>({}))),W=nr(e,"unstyled",9,!1),R=G(!1,!0),H=G(!1,!0),V=G(!1,!0),K=G(!1,!0),U=G(0,!0),J=G(0,!0),Y=G(void 0,!0),X=G(0,!0),Q=0,tt=0,et=null;function nt(){Z(H,!0),Z(U,be(X)),$(S().id),setTimeout((()=>{C(S().id)}),200)}let rt=G(void 0,!0),ot=G(S().duration||z()||4e3,!0);function it(){Q=(new Date).getTime(),Z(rt,setTimeout((()=>{var t,e;null==(e=(t=S()).onAutoClose)||e.call(t,S()),nt()}),be(ot)))}let lt=G(void 0,!0);rr((()=>{Z(R,!0);const t=be(Y).getBoundingClientRect().height;return Z(J,t),k({toastId:S().id,height:t}),()=>$(S().id)})),xt((()=>$e(q())),(()=>{q({...b,...q()})})),xt((()=>$e(P())),(()=>{Z(a,0===P())})),xt((()=>($e(P()),$e(M()))),(()=>{Z(s,P()+1<=M())})),xt((()=>$e(S())),(()=>{Z(u,S().title)})),xt((()=>$e(S())),(()=>{Z(c,S().description)})),xt((()=>$e(S())),(()=>{Z(d,S().type)})),xt((()=>$e(S())),(()=>{Z(f,S().class||"")})),xt((()=>$e(S())),(()=>{Z(v,S().descriptionClass||"")})),xt((()=>(i(),$e(S()))),(()=>{Z(p,i().findIndex((t=>t.toastId===S().id))||0)})),xt((()=>$e(E())),(()=>{Z(h,E().split("-"))})),xt((()=>(i(),be(p))),(()=>{Z(g,i().reduce(((t,e,n)=>n>=be(p)?t:t+e.height),0))})),xt((()=>($e(j()),$e(S()))),(()=>{j(S().invert||j())})),xt((()=>be(d)),(()=>{Z(m,"loading"===be(d))})),xt((()=>(be(p),be(g))),(()=>{Z(X,Math.round(14*be(p)+be(g)))})),xt((()=>(be(u),be(c))),(()=>{be(u),be(c),async function(){if(!be(R))return;let t;await async function(){await Promise.resolve(),function(){for(Wt();Gt.length>0;)Ft=!0,he(),Wt()}()}(),t=I()||N()?1:1-.05*P(),be(Y).style.setProperty("height","auto");const e=be(Y).offsetHeight,n=be(Y).getBoundingClientRect().height,r=Math.round(100*(n/t+Number.EPSILON))/100;let o;be(Y).style.removeProperty("height"),o=Math.abs(r-e)<1?r:e,Z(J,o),k({toastId:S().id,height:o})}()})),xt((()=>($e(S()),be(rt),$e(z()))),(()=>{S().updated&&(clearTimeout(be(rt)),Z(ot,S().duration||z()||4e3),it())})),xt((()=>($e(S()),be(d))),(()=>{Z(y,S().promise&&"loading"===be(d)||S().duration===Number.POSITIVE_INFINITY)})),xt((()=>(be(y),$e(I()),$e(T()),be(rt))),(()=>{var t;!function(t,e,n){let r=n[e];r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=w)}(Z(lt,(t=()=>(be(y)||(I()||T()?function(){if(tt<Q){const t=(new Date).getTime()-Q;Z(ot,be(ot)-t)}tt=(new Date).getTime()}():it()),()=>clearTimeout(be(rt))),{subscribe:t})),"$effect",r)})),xt((()=>l()),(()=>{l()})),xt((()=>$e(S())),(()=>{S().delete&&nt()})),_t(),Ln(!0);var at=zr();let st;kn(at,"tabindex",0);var ft=ut(at),pt=t=>{var e=Er();kt((t=>{kn(e,"data-disabled",be(m)),gn(e,1,t)}),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.closeButton,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.closeButton))}],vt),De("click",e,(function(...t){var e;null==(e=be(m)?void 0:()=>{var t,e;nt(),null==(e=(t=S()).onDismiss)||e.call(t,S())})||e.apply(this,t)})),Ge(t,e)};Qe(ft,(t=>{O()&&!S().component&&t(pt)}));var ht=dt(ft,2),gt=t=>{var e=Ke();cn(ct(e),(()=>S().component),((t,e)=>{e(t,er((()=>S().componentProps),{$$events:{closeToast:nt}}))})),Ge(t,e)},mt=t=>{var n=Br(),r=ct(n),o=t=>{var n=Mr(),r=ut(n),o=t=>{var n=Ke();un(ct(n),e,"loading-icon",{},null),Ge(t,n)};Qe(r,(t=>{!S().promise&&"loading"!==be(d)||S().icon||t(o)}));var i=dt(r,2),l=t=>{var e=Ke();cn(ct(e),(()=>S().icon),((t,e)=>{e(t,{})})),Ge(t,e)},a=(t,n)=>{var r=t=>{var n=Ke();un(ct(n),e,"success-icon",{},null),Ge(t,n)},o=(t,n)=>{var r=t=>{var n=Ke();un(ct(n),e,"error-icon",{},null),Ge(t,n)},o=(t,n)=>{var r=t=>{var n=Ke();un(ct(n),e,"warning-icon",{},null),Ge(t,n)},o=(t,n)=>{var r=t=>{var n=Ke();un(ct(n),e,"info-icon",{},null),Ge(t,n)};Qe(t,(t=>{"info"===be(d)&&t(r)}),n)};Qe(t,(t=>{"warning"===be(d)?t(r):t(o,!1)}),n)};Qe(t,(t=>{"error"===be(d)?t(r):t(o,!1)}),n)};Qe(t,(t=>{"success"===be(d)?t(r):t(o,!1)}),n)};Qe(i,(t=>{S().icon?t(l):t(a,!1)})),Ge(t,n)};Qe(r,(t=>{("default"!==be(d)||S().icon||S().promise)&&t(o)}));var i=dt(r,2),l=ut(i),a=t=>{var e=Nr(),n=ut(e),r=t=>{var e=Ke();cn(ct(e),(()=>S().title),((t,e)=>{e(t,er((()=>S().componentProps)))})),Ge(t,e)},o=t=>{var e=Ve();kt((()=>Je(e,S().title))),Ge(t,e)};Qe(n,(t=>{"string"!=typeof S().title?t(r):t(o,!1)})),kt((t=>gn(e,1,t)),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.title,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.title))}],vt),Ge(t,e)};Qe(l,(t=>{S().title&&t(a)}));var s=dt(l,2),u=t=>{var e=Or(),n=ut(e),r=t=>{var e=Ke();cn(ct(e),(()=>S().description),((t,e)=>{e(t,er((()=>S().componentProps)))})),Ge(t,e)},o=t=>{var e=Ve();kt((()=>Je(e,S().description))),Ge(t,e)};Qe(n,(t=>{"string"!=typeof S().description?t(r):t(o,!1)})),kt((t=>gn(e,1,t)),[()=>{var t,e;return fn(kr(D(),be(v),null==(t=q())?void 0:t.description,null==(e=S().classes)?void 0:e.description))}],vt),Ge(t,e)};Qe(s,(t=>{S().description&&t(u)}));var c=dt(i,2),f=t=>{var e=Tr(),n=ut(e);kt((t=>{yn(e,A()),gn(e,1,t),Je(n,S().cancel.label)}),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.cancelButton,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.cancelButton))}],vt),De("click",e,(()=>{var t;nt(),(null==(t=S().cancel)?void 0:t.onClick)&&S().cancel.onClick()})),Ge(t,e)};Qe(c,(t=>{S().cancel&&t(f)}));var p=dt(c,2),h=t=>{var e=Ar(),n=ut(e);kt((t=>{yn(e,B()),gn(e,1,t),Je(n,S().action.label)}),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.actionButton,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.actionButton))}],vt),De("click",e,(t=>{var e;null==(e=S().action)||e.onClick(t),t.defaultPrevented||nt()})),Ge(t,e)};Qe(p,(t=>{S().action&&t(h)})),Ge(t,n)};Qe(ht,(t=>{S().component?t(gt):t(mt,!1)})),Wn(at,(t=>Z(Y,t)),(()=>be(Y))),kt(((t,e,o)=>{var i;kn(at,"aria-live",S().important?"assertive":"polite"),gn(at,1,t),kn(at,"data-styled",!(S().component||(null==(i=S())?void 0:i.unstyled)||W())),kn(at,"data-mounted",be(R)),kn(at,"data-promise",e),kn(at,"data-removed",be(H)),kn(at,"data-visible",be(s)),kn(at,"data-y-position",be(h)[0]),kn(at,"data-x-position",be(h)[1]),kn(at,"data-index",P()),kn(at,"data-front",be(a)),kn(at,"data-swiping",be(V)),kn(at,"data-type",be(d)),kn(at,"data-invert",j()),kn(at,"data-swipe-out",be(K)),kn(at,"data-expanded",o),st=yn(at,`${n.style} ${S().style}`,st,{"--index":P(),"--toasts-before":P(),"--z-index":Zn(x,"$toasts",r).length-P(),"--offset":`${be(H)?be(U):be(X)}px`,"--initial-height":`${be(J)}px`})}),[()=>{var t,e,r,o,i,l;return fn(kr(n.class,be(f),null==(t=q())?void 0:t.toast,null==(r=null==(e=S())?void 0:e.classes)?void 0:r.toast,null==(o=q())?void 0:o[be(d)],null==(l=null==(i=S())?void 0:i.classes)?void 0:l[be(d)]))},()=>Boolean(S().promise),()=>Boolean(I()||N()&&be(R))],vt),De("pointerdown",at,(function(t){if(be(m))return;Z(U,be(X));const e=t.target;e.setPointerCapture(t.pointerId),"BUTTON"!==e.tagName&&(Z(V,!0),et={x:t.clientX,y:t.clientY})})),De("pointerup",at,(function(){var t,e,n;if(be(K))return;et=null;const r=Number((null==(t=be(Y))?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(r)>=20)return Z(U,be(X)),null==(n=(e=S()).onDismiss)||n.call(e,S()),nt(),void Z(K,!0);be(Y).style.setProperty("--swipe-amount","0px"),Z(V,!1)})),De("pointermove",at,(function(t){if(!et)return;const e=t.clientY-et.y,n=t.clientX-et.x,r=("top"===be(h)[0]?Math.min:Math.max)(0,e),o="touch"===t.pointerType?10:2;Math.abs(r)>o?be(Y).style.setProperty("--swipe-amount",`${e}px`):Math.abs(n)>o&&(et=null)})),Ge(t,at),F(),o()}var qr=Re("<ol></ol>"),Wr=Re('<section class="svelte-1fo5d1m"></section>');function Lr(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]),r=Qn(n,["invert","theme","position","hotkey","containerAriaLabel","richColors","expand","duration","visibleToasts","closeButton","toastOptions","offset","dir"]);L(e,!1);const[o,i]=Yn(),l=()=>Zn(C,"$toasts",o),a=G(),s=G(),u="dark",c="light";function d(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let f=nr(e,"invert",8,!1),v=nr(e,"theme",8,"light"),p=nr(e,"position",8,"bottom-right"),h=nr(e,"hotkey",24,(()=>["altKey","KeyT"])),g=nr(e,"containerAriaLabel",8,"Notifications"),m=nr(e,"richColors",8,!1),y=nr(e,"expand",8,!1),b=nr(e,"duration",8,4e3),w=nr(e,"visibleToasts",8,3),x=nr(e,"closeButton",8,!1),_=nr(e,"toastOptions",24,(()=>({}))),$=nr(e,"offset",8,null),k=nr(e,"dir",24,d);const{toasts:C,heights:S,reset:P}=Ir;let I=G(!1),j=G(!1),E=G("system"!==(T=v())?T:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u:c),M=G(),N=null,O=!1;var T;function A(t){O&&!t.currentTarget.contains(t.relatedTarget)&&(O=!1,N&&(N.focus({preventScroll:!0}),N=null))}function B(t){O||(O=!0,N=t.relatedTarget)}!function(t){null===q&&D(),rr((()=>()=>we(t)))}((()=>{be(M)&&N&&(N.focus({preventScroll:!0}),N=null,O=!1)})),rr((()=>{P();const t=t=>{var e,n;h().every((e=>t[e]||t.code===e))&&(Z(I,!0),null==(e=be(M))||e.focus()),"Escape"!==t.code||document.activeElement!==be(M)&&!(null==(n=be(M))?void 0:n.contains(document.activeElement))||Z(I,!1)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}})),xt((()=>($e(p()),l())),(()=>{Z(a,Array.from(new Set([p(),...l().filter((t=>t.position)).map((t=>t.position))].filter(Boolean))))})),xt((()=>$e(h())),(()=>{Z(s,h().join("+").replace(/Key/g,"").replace(/Digit/g,""))})),xt((()=>l()),(()=>{l().length<=1&&Z(I,!1)})),xt((()=>l()),(()=>{const t=l().filter((t=>t.dismiss&&!t.delete));if(t.length>0){const e=l().map((e=>t.find((t=>t.id===e.id))?{...e,delete:!0}:e));C.set(e)}})),xt((()=>$e(v())),(()=>{if("system"!==v()&&Z(E,v()),"undefined"!=typeof window){"system"===v()&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Z(E,u):Z(E,c));const t=window.matchMedia("(prefers-color-scheme: dark)"),e=({matches:t})=>{Z(E,t?u:c)};"addEventListener"in t?t.addEventListener("change",e):t.addListener(e)}})),_t(),Ln();var z=Ke(),W=ct(z),R=t=>{var i=Wr();kn(i,"tabindex",-1),rn(i,5,(()=>be(a)),nn,((t,i,a,s)=>{var u=qr();let c;rn(u,7,(()=>l().filter((t=>!t.position&&0===a||t.position===be(i)))),(t=>t.id),((t,n,r,o)=>{const l=vt((()=>{var t;return(null==(t=_())?void 0:t.actionButtonStyle)||""})),a=vt((()=>{var t;return(null==(t=_())?void 0:t.cancelButtonStyle)||""})),s=vt((()=>{var t;return(null==(t=_())?void 0:t.class)||""})),u=vt((()=>{var t;return(null==(t=_())?void 0:t.descriptionClass)||""})),c=vt((()=>_().classes||{})),d=vt((()=>{var t;return(null==(t=_())?void 0:t.duration)??b()})),v=vt((()=>_().unstyled||!1));Dr(t,{get index(){return be(r)},get toast(){return be(n)},get invert(){return f()},get visibleToasts(){return w()},get closeButton(){return x()},get interacting(){return be(j)},get position(){return be(i)},get expandByDefault(){return y()},get expanded(){return be(I)},get actionButtonStyle(){return be(l)},get cancelButtonStyle(){return be(a)},get class(){return be(s)},get descriptionClass(){return be(u)},get classes(){return be(c)},get duration(){return be(d)},get unstyled(){return be(v)},$$slots:{"loading-icon":(t,r)=>{var o=Ke();un(ct(o),e,"loading-icon",{},(t=>{const e=vt((()=>"loading"===be(n).type));!function(t,e){L(e,!1);let n=nr(e,"visible",8);const r=Array(12).fill(0);Ln();var o=$r();rn(ut(o),5,(()=>r),nn,((t,e)=>{Ge(t,_r())})),kt((()=>kn(o,"data-visible",n()))),Ge(t,o),F()}(t,{get visible(){return be(e)}})})),Ge(t,o)},"success-icon":(t,n)=>{var r=Ke();un(ct(r),e,"success-icon",{},(t=>{xr(t,{type:"success"})})),Ge(t,r)},"error-icon":(t,n)=>{var r=Ke();un(ct(r),e,"error-icon",{},(t=>{xr(t,{type:"error"})})),Ge(t,r)},"warning-icon":(t,n)=>{var r=Ke();un(ct(r),e,"warning-icon",{},(t=>{xr(t,{type:"warning"})})),Ge(t,r)},"info-icon":(t,n)=>{var r=Ke();un(ct(r),e,"info-icon",{},(t=>{xr(t,{type:"info"})})),Ge(t,r)}}})})),Wn(u,(t=>Z(M,t)),(()=>be(M))),kt(((t,e,i)=>{var l;c=Cn(u,c,{tabIndex:-1,class:n.class,"data-sonner-toaster":!0,"data-theme":be(E),"data-rich-colors":m(),dir:t,"data-y-position":e,"data-x-position":i,style:n.style,...r,[wn]:{"--front-toast-height":`${null==(l=Zn(S,"$heights",o)[0])?void 0:l.height}px`,"--offset":"number"==typeof $()?`${$()}px`:$()||"32px","--width":"356px","--gap":"14px"}},"svelte-1fo5d1m"),u.dir=u.dir}),[()=>"auto"===k()?d():k(),()=>be(i).split("-")[0],()=>be(i).split("-")[1]],vt),De("blur",u,A),De("focus",u,B),De("mouseenter",u,(()=>Z(I,!0))),De("mousemove",u,(()=>Z(I,!0))),De("mouseleave",u,(()=>{be(j)||Z(I,!1)})),De("pointerdown",u,(()=>Z(j,!0))),De("pointerup",u,(()=>Z(j,!1))),Ge(t,u)})),kt((()=>kn(i,"aria-label",`${g()} ${be(s)}`))),Ge(t,i)};Qe(W,(t=>{l().length>0&&t(R)})),Ge(t,z),F(),i()}const Fr=Vn(!1),Rr=Vn("https://sdk.playlight.dev");function Hr(t,e,n){var r;be(e)?t.preventDefault():(null==(r=n.onClick)||r.call(n,n.game.id),window.open("https://"+n.game.domain,"_blank","noopener"))}function Vr(t,e){var n;t.stopPropagation(),t.preventDefault(),null==(n=e.onClick)||n.call(e,e.game.id),window.open("https://"+e.game.domain,"_blank","noopener")}var Kr=Re('<div><p class="text-primary font-bold uppercase">New</p></div>'),Gr=Re('<video playsinline="" loop preload="auto"></video>',2),Ur=Re("<button>Play</button>"),Zr=Re('<div class="bg-background/75 text-foreground absolute right-0 bottom-0 left-0 z-11 flex max-h-1/3 flex-col overflow-hidden backdrop-blur-xl"><div class="hide-scrollbar h-full w-full overflow-y-auto p-3 svelte-rulnq9"><h3 class="mb-2 truncate text-center text-lg font-bold"> </h3> <p class="text-muted-foreground mb-4 text-center text-sm text-balance"> </p></div> <div class="fade-mask bg-background/75 pointer-events-none absolute right-0 bottom-0 left-0 h-8 svelte-rulnq9"></div></div>'),Jr=Re('<div role="button" tabindex="0"><!> <!> <img alt="cover" loading="eager"> <!> <!> <img alt="game logo" loading="eager"></div>');qe(["touchstart","click"]);const Yr=new(r=class{constructor(){s(this,e),this.baseUrl="https://api.playlight.dev/platform",this.cachedCategories=null,this.currentGame=null}async request(t,e={}){try{const n=`${this.baseUrl}${t}`,r=await fetch(n,{...e,headers:{"Content-Type":"application/json",...e.headers}});if(!r.ok){let t;try{t=await r.json()}catch{}finally{if(429!==r.status&&404!==r.status)throw new Error(`API request failed: ${(null==t?void 0:t.error)||(null==t?void 0:t.message)||r.status}`);return 429===r.status?console.warn("Playlight request didn't go through due to rate limiting."):console.warn("Playlight game not found. This is normal in a test / local environment, but should not appear in production.")}}return await r.json()}catch(n){jr.error("Error: "+n),console.error("Playlight API error:",n)}}async getCategories(){if(this.cachedCategories)return this.cachedCategories;const t=await this.request("/categories");return this.cachedCategories=t,t}async getSuggestions(t=null,r=1){let o="/suggestions";return t&&(o+="/"+t),r&&(o+="?page="+r),o+="&without="+u(this,e,n).call(this),await this.request(o)}async getCurrentGameInfo(){if(this.currentGame)return this.currentGame;let t="/game-by-domain/"+u(this,e,n).call(this);return this.currentGame=await this.request(t),{...this.currentGame}}async trackOpen(){const t=u(this,e,n).call(this);await this.request("/event/open",{method:"POST",body:JSON.stringify({domain:t})})}async trackClick(t){const r=u(this,e,n).call(this);await this.request("/event/click",{method:"POST",body:JSON.stringify({sourceDomain:r,gameId:t})})}},e=new WeakSet,n=function(){const t=window.location.hostname;return t.startsWith("www.")?t.substring(4):t},r);function Xr(t){const e=t-1;return e*e*e+1}function Qr(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-10*t)+1}function to(t,{from:e,to:n},r={}){var{delay:o=0,duration:i=t=>120*Math.sqrt(t),easing:l=Xr}=r,a=getComputedStyle(t),s="none"===a.transform?"":a.transform,[u,c]=a.transformOrigin.split(" ").map(parseFloat);u/=t.clientWidth,c/=t.clientHeight;var d=function(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,n=1;null!==e;)n*=+getComputedStyle(e).zoom,e=e.parentElement;return n}(t),f=t.clientWidth/n.width/d,v=t.clientHeight/n.height/d,p=e.left+e.width*u,h=e.top+e.height*c,g=n.left+n.width*u,m=n.top+n.height*c,y=(p-g)*f,b=(h-m)*v,w=e.width/n.width,x=e.height/n.height;return{delay:o,duration:"function"==typeof i?i(Math.sqrt(y*y+b*b)):i,easing:l,css:(t,e)=>`transform: ${s} translate(${e*y}px, ${e*b}px) scale(${t+e*w}, ${t+e*x});`}}var eo=(t,e,n)=>{Z(e,""),Z(n,!be(n))},no=Re('<div class="text-muted-foreground animate-pulse p-4 text-center">Loading...</div>'),ro=Re('<div class="text-muted-foreground p-4 text-center">No categories found.</div>'),oo=(t,e,n,r)=>{e(n),Z(r,!1)},io=Re("<button> </button>"),lo=Re('<div class="space-y-1 p-1"></div>'),ao=Re('<div class="bg-background/85 fixed left-1/2 z-50 mt-24 w-30 w-full max-w-xs -translate-x-1/2 transform border shadow-lg backdrop-blur"><div class="border-b p-3"><div class="relative"><div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-1"><!></div> <input type="text" placeholder="Search categories..." class="w-full border-0 p-1 pl-10 text-white focus:ring-0 focus:outline-none"></div></div> <div class="max-h-60 overflow-y-auto"><!></div></div>'),so=Re('<div class="flex w-full flex-col py-2"><h1 class="mb-0! py-2 text-center text-2xl font-bold text-white drop-shadow-xl lg:text-4xl"><span> </span> <button class="group mx-1 inline-flex cursor-pointer items-center bg-white px-3 py-1 text-black transition hover:rotate-5"><span class="truncate max-w-[40vw] text-2xl font-bold text-black lg:text-4xl"> </span> <!></button> <span>games?</span></h1> <!></div>');function uo(t,e){L(e,!0);let n,r=nr(e,"categories",19,(()=>[])),o=nr(e,"selectedCategory",15),i=V(!1),l=ft((()=>o()||(r().length>0?r()[0]:"..."))),a=V(""),s=V(void 0),u=ft((()=>be(a)?r().filter((t=>t.toLowerCase().includes(be(a).toLowerCase()))):r()));const c=["Looking for","Interested in","Searching for","Fancy some","What about these"];let d,f=V(Q(c[0]));rr((function(){let t;for(t=Math.floor(Math.random()*(null==c?void 0:c.length));t==d;)t=Math.floor(Math.random()*(null==c?void 0:c.length));Z(f,Q(c[t])),d=t}));var v=so();De("click",nt,(function(t){be(s)&&!be(s).contains(t.target)&&n&&!n.contains(t.target)&&Z(i,!1)}));var p=ut(v),h=ut(p),g=ut(h),m=dt(h,2);m.__click=[eo,a,i];var y=ut(m),b=ut(y),w=dt(y,2);const x=ft((()=>be(i)?"rotate-180 transform":""));!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"chevron-down"},(()=>n),{iconNode:[["path",{d:"m6 9 6 6 6-6"}]],children:(t,n)=>{var r=Ke();un(ct(r),e,"default",{},null),Ge(t,r)},$$slots:{default:!0}}))}(w,{size:25,strokeWidth:3,get class(){return`mt-1 ml-1 text-black ${be(x)??""} transition-transform duration-200`}}),Wn(m,(t=>n=t),(()=>n));var _=dt(p,2),$=t=>{var e=ao(),n=ut(e),l=ut(n),c=ut(l);!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"search"},(()=>n),{iconNode:[["circle",{cx:"11",cy:"11",r:"8"}],["path",{d:"m21 21-4.3-4.3"}]],children:(t,n)=>{var r=Ke();un(ct(r),e,"default",{},null),Ge(t,r)},$$slots:{default:!0}}))}(ut(c),{size:18,strokeWidth:2.5,class:"text-muted-foreground"});var d=dt(c,2),f=ut(dt(n,2)),v=t=>{Ge(t,no())},p=(t,e)=>{var n=t=>{Ge(t,ro())},r=t=>{var e=lo();rn(e,28,(()=>be(u)),(t=>t),((t,e)=>{var n=io();n.__click=[oo,o,e,i];var r,l,a,s,u,c,d,f,v=ut(n);kt((()=>{gn(n,1,`w-full cursor-pointer px-4 py-2 text-left transition-colors ${(o()!=e?"hover:bg-muted-foreground/20":"")??""} ${(o()==e?"bg-white text-black":"text-white")??""}`),Je(v,e)})),r=n,l=()=>to,a=()=>({duration:150}),f=null,(d=tn).a??(d.a={element:r,measure(){s=this.element.getBoundingClientRect()},apply(){if(null==c||c.abort(),u=this.element.getBoundingClientRect(),s.left!==u.left||s.right!==u.right||s.top!==u.top||s.bottom!==u.bottom){const t=l()(this.element,{from:s,to:u},null==a?void 0:a());c=Bn(this.element,t,void 0,1,(()=>{null==c||c.abort(),c=void 0}))}},fix(){if(!r.getAnimations().length){var{position:t,width:e,height:n}=getComputedStyle(r);if("absolute"!==t&&"fixed"!==t){var o=r.style;f={position:o.position,width:o.width,height:o.height,transform:o.transform},o.position="absolute",o.width=e,o.height=n;var i=r.getBoundingClientRect();if(s.left!==i.left||s.top!==i.top){var l=`translate(${s.left-i.left}px, ${s.top-i.top}px)`;o.transform=o.transform?`${o.transform} ${l}`:l}}}},unfix(){if(f){var t=r.style;t.position=f.position,t.width=f.width,t.height=f.height,t.transform=f.transform}}}),d.a.element=r,Ge(t,n)})),Ge(t,e)};Qe(t,(t=>{0===be(u).length?t(n):t(r,!1)}),e)};Qe(f,(t=>{0===r().length?t(v):t(p,!1)})),Wn(e,(t=>Z(s,t)),(()=>be(s))),function(t,e,n=e){var r=R();(function(t,e,n,r=n){t.addEventListener(e,(()=>Te(n)));const o=t.__on_r;t.__on_r=o?()=>{o(),r(!0)}:()=>r(!0),Oe||(Oe=!0,document.addEventListener("reset",(t=>{Promise.resolve().then((()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)null==(e=n.__on_r)||e.call(n)}))}),{capture:!0}))})(t,"input",(o=>{var i=o?t.defaultValue:t.value;if(i=zn(t)?Dn(i):i,n(i),r&&i!==(i=e())){var l=t.selectionStart,a=t.selectionEnd;t.value=i??"",null!==a&&(t.selectionStart=l,t.selectionEnd=Math.min(a,t.value.length))}})),null==we(e)&&t.value&&n(zn(t)?Dn(t.value):t.value),$t((()=>{var n=e();zn(t)&&n===Dn(t.value)||("date"!==t.type||n||t.value)&&n!==t.value&&(t.value=n??"")}))}(d,(()=>be(a)),(t=>Z(a,t))),An(3,e,(()=>pr),(()=>({y:-5,duration:250}))),Ge(t,e)};Qe(_,(t=>{be(i)&&t($)})),kt((()=>{Je(g,be(f)),Je(b,be(l))})),An(3,v,(()=>gr),(()=>({duration:600,delay:50,easing:Qr,start:.95}))),Ge(t,v),F()}qe(["click"]);var co=(t,e)=>{localStorage.getItem("playlight_exit_intent_disabled_by_user")?localStorage.removeItem("playlight_exit_intent_disabled_by_user"):localStorage.setItem("playlight_exit_intent_disabled_by_user",!0),Z(e,!be(e))},fo=Re('<button class="cursor-pointer truncate text-sm text-nowrap opacity-50 transition hover:opacity-25 max-md:hidden"><p class="bg-background/50 text-primary p-1 px-2 text-sm"> </p></button>'),vo=(t,e)=>Jn(Fr,!1),po=Re('<div class="flex h-4/5 items-center justify-center gap-4"><!></div>'),ho=Re('<div class="text-muted-foreground flex h-4/5 items-center justify-center gap-4"><p>No games found that match the filter.</p></div>'),go=Re('<div class="mx-auto flex h-full flex-wrap content-start justify-center gap-10 lg:max-w-4/5"><!> <div class="flex h-10 w-full justify-center"><!></div></div>'),mo=Re('<div class="bg-background/75 fixed inset-0 top-0 right-0 bottom-0 left-0 z-99999 flex flex-col justify-center text-white backdrop-blur-md"><div class="ml-2 flex items-center justify-between p-4"><a href="https://playlight.dev" target="_blank"><img alt="logo" class="w-50"></a> <div class="mt-4 mr-2 flex items-center justify-evenly gap-8 overflow-hidden md:mr-4"><!> <button class="cursor-pointer text-white transition hover:opacity-50" aria-label="Close"><!></button></div></div> <div class="mx-auto p-2 px-5"><!></div> <div class="mask-fade no-scrollbar relative h-full w-full overflow-y-auto p-4 svelte-12skmk8"><!></div> <div class="fixed right-0 bottom-0 flex items-center justify-between p-4"><a href="https://playlight.dev" target="_blank" class="text-muted-foreground flex items-center gap-1 text-sm transition hover:text-white">Game Developer? Join Playlight <!></a></div></div>');function yo(t,e){L(e,!0);const[n,r]=Yn();let o,i=nr(e,"showIntentToggle",3,!0),l=V(void 0),a=V(!0),s=V(!1),u=V(void 0),c=V(Q([])),d=V(Q([])),f=V(!0),v=V(1),p=V(!0),h=V(void 0),g=V(!1);async function m(){if(!(be(a)&&be(v)>1||be(s)))try{1===be(v)?Z(a,!0):Z(s,!0);const t=be(g)?null:be(l),e=await Yr.getSuggestions(t,be(v)),n=(null==e?void 0:e.games)||[],r=n.filter((t=>!be(c).some((e=>e.id===t.id))));Z(c,Q([...be(c),...r])),n.length<10?!be(g)&&be(l)?(Z(g,!0),Z(v,1),setTimeout((()=>m()),100)):Z(p,!1):Z(v,be(v)+1)}catch(t){console.error(t),jr.error("Failed to load games: "+t)}finally{Z(a,!1),Z(s,!1),be(p)&&be(h)&&setTimeout((()=>{const t=be(h).getBoundingClientRect();!(t.top>=-200&&t.left>=0&&t.bottom<=window.innerHeight+200&&t.right<=window.innerWidth)||be(a)||be(s)||m()}),150)}}rr((()=>(Z(f,!Boolean(localStorage.getItem("playlight_exit_intent_disabled_by_user"))),o=new IntersectionObserver((t=>{t[0].isIntersecting&&be(p)&&!be(a)&&!be(s)&&m()}),{rootMargin:"200px"}),()=>null==o?void 0:o.disconnect()))),rr((async()=>{const t=await Yr.getCurrentGameInfo();Z(u,Q(null==t?void 0:t.category)),await async function(){var t,e,n,r;Z(d,Q(await Yr.getCategories())),!be(l)&&(null==(t=be(d))?void 0:t.length)>0&&Z(l,Q(be(u)&&(null==(e=be(d))?void 0:e.includes(be(u)))?be(u):null==(r=be(d))?void 0:r[(null==(n=be(d))?void 0:n.length)-1]))}()})),bt((()=>{be(l)&&(Z(c,Q([])),Z(v,1),Z(p,!0),Z(g,!1),Z(a,!0),setTimeout((async()=>{await m(),be(c).length<10&&await m()}),100))})),bt((()=>{be(h)&&o&&o.observe(be(h))}));var y=mo();De("keydown",nt,(t=>{"Escape"==t.key&&Jn(Fr,!1)}));var b=ut(y),w=ut(b),x=ut(w),_=ut(dt(w,2)),$=t=>{var e=fo();e.__click=[co,f];var n=ut(e),r=ut(n);kt((()=>Je(r,be(f)?"Ignore exit intent":"Trigger on exit intent"))),Ge(t,e)};Qe(_,(t=>{i()&&t($)}));var k=dt(_,2);k.__click=[vo,()=>Zn(Fr,"$discoveryOpen",n)],function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"x"},(()=>n),{iconNode:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]],children:(t,n)=>{var r=Ke();un(ct(r),e,"default",{},null),Ge(t,r)},$$slots:{default:!0}}))}(ut(k),{size:24,strokeWidth:2.5});var C=dt(b,2);uo(ut(C),{get categories(){return be(d)},get selectedCategory(){return be(l)},set selectedCategory(t){Z(l,Q(t))}});var S=dt(C,2),P=ut(S),I=t=>{var e=po();ar(ut(e),{class:"animate-spin opacity-75",size:50,strokeWidth:2.5}),Ge(t,e)},j=(t,e)=>{var n=t=>{Ge(t,ho())},r=t=>{var e=go(),n=ut(e);rn(n,17,(()=>be(c)),nn,((e,n)=>{!function(e,n){L(n,!0);const[r,o]=Yn();let i=V(!1),l=V(void 0),a=V(!1),s=V(!1),u=V(!1),c=V(!1),d=V(void 0);function f(){be(i)||be(c)||function(e,n=1){try{const t=new Audio(e);t.volume=n,t.play()}catch(t){console.error("Error playing sound:",t)}}(Zn(Rr,"$projectUrl",r)+"/static/sounds/hover-selection.ogg",.25),Z(i,!0),be(l)&&n.game.cover_video_url&&be(l).play().catch((t=>console.error("Video play error:",t)))}function v(){be(c)||(Z(i,!1),be(l)&&be(a)&&be(l).pause())}bt((()=>{Z(c,"ontouchstart"in window)}));var p=Jr();De("touchstart",et,(()=>Z(c,!0)),void 0,!0),De("touchstart",nt,(function(t){be(d)&&!be(d).contains(t.target)&&Z(i,!1)}),void 0,!0),p.__touchstart=f,p.__click=[Hr,c,n];var h=ut(p),g=t=>{var e=Kr();let n;kt((t=>n=gn(e,1,"bg-background absolute top-4 right-4 z-13 px-2 py-0.5 transition-opacity",null,n,t)),[()=>({"opacity-0":be(i)})]),Ge(t,e)};Qe(h,(t=>{var e;(function(t){const e=new Date;return e.setDate(e.getDate()-7),new Date(t)>e})(null==(e=n.game)?void 0:e.created_at)&&t(g)}));var m=dt(h,2),y=t=>{var e=Gr();let r;e.muted=!0,Wn(e,(t=>Z(l,t)),(()=>be(l))),kt((t=>{kn(e,"src",n.game.cover_video_url),r=gn(e,1,"absolute top-0 left-0 z-5 h-full w-full object-cover opacity-0",null,r,t)}),[()=>({"opacity-100":be(i)&&be(a)&&n.game.cover_video_url})]),De("loadeddata",e,(()=>{Z(a,!0)})),Ge(t,e)};Qe(m,(t=>{n.game.cover_video_url&&t(y)}));var b=dt(m,2);let w;var x=dt(b,2),_=t=>{var e=Ur();let r;e.__click=[Vr,n],kt((t=>r=gn(e,1,"bg-foreground text-background hover:bg-foreground/90 absolute right-4 bottom-4 z-15 flex items-center justify-center rounded-sm px-3 py-1 font-bold uppercase transition-all",null,r,t)),[()=>({"opacity-0":be(i)})]),Ge(t,e)};Qe(x,(t=>{be(c)&&t(_)}));var $=dt(x,2),k=t=>{var e=Zr(),r=ut(e),o=ut(r),i=ut(o),l=ut(dt(o,2));kt((()=>{Je(i,n.game.name),Je(l,n.game.description||"No description.")})),An(3,e,(()=>hr)),Ge(t,e)};Qe($,(t=>{be(i)&&t(k)}));var C=dt($,2);let S;Wn(p,(t=>Z(d,t)),(()=>be(d))),kt(((t,e)=>{gn(p,1,`bg-background highlight-border group relative mt-5 mb-[calc(3dvh+1.5vw)] flex aspect-[2/3] h-1/2 max-h-[75vh] min-h-92 cursor-pointer flex-col shadow-xl transition hover:outline-2 hover:brightness-105 lg:h-3/7 ${(be(s)?"":"animate-pulse")??""}`,"svelte-rulnq9"),kn(b,"src",n.game.cover_image_url),w=gn(b,1,"prevent-image-select absolute top-0 left-0 z-10 h-full w-full object-cover opacity-0 transition svelte-rulnq9",null,w,t),kn(C,"src",n.game.logo_url),S=gn(C,1,"absolute right-0 -bottom-[18%] left-0 z-12 mx-auto aspect-square w-1/5 rounded-full object-center opacity-0 transition group-hover:outline-2 prevent-image-select svelte-rulnq9",null,S,e)}),[()=>({"opacity-100":be(s)&&(!be(i)||!be(a)||!n.game.cover_video_url)}),()=>({"opacity-100":be(u)})]),De("mouseenter",p,f),De("focus",p,f),De("mouseleave",p,v),De("blur",p,v),De("load",b,(()=>{Z(s,!0)})),De("load",C,(()=>{Z(u,!0)})),Ge(e,p),F(),o()}(e,{get game(){return be(n)},onClick:()=>Yr.trackClick(be(n).id)})}));var r=dt(n,2),o=ut(r),i=t=>{ar(t,{class:"animate-spin opacity-75",size:30,strokeWidth:2.5})};Qe(o,(t=>{be(s)&&t(i)})),Wn(r,(t=>Z(h,t)),(()=>be(h))),Ge(t,e)};Qe(t,(t=>{0!==be(c).length||be(a)?t(r,!1):t(n)}),e)};Qe(P,(t=>{be(a)&&0===be(c).length?t(I):t(j,!1)}));var E=ut(dt(S,2));!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"external-link"},(()=>n),{iconNode:[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]],children:(t,n)=>{var r=Ke();un(ct(r),e,"default",{},null),Ge(t,r)},$$slots:{default:!0}}))}(dt(ut(E)),{size:14}),kt((()=>kn(x,"src",Zn(Rr,"$projectUrl",n)+"/static/images/logo-white-small.png"))),An(3,y,(()=>vr),(()=>({duration:250}))),Ge(t,y),F(),r()}qe(["click"]);var bo=Re('<div class="fixed top-0 right-0 left-0 h-2"></div> <div class="fixed top-2 right-0 left-0 h-2"></div>',1);qe(["mouseover"]);var wo=Re("<!> <!> <!> <!>",1);function xo(t,e){var n,r,o,i;L(e,!0);const[l,a]=Yn(),s=()=>Zn(Fr,"$discoveryOpen",l);let u=Q(null==(r=null==(n=e.config)?void 0:n.button)?void 0:r.position),c=Q(null==(i=null==(o=e.config)?void 0:o.button)?void 0:i.visible);function d(){Jn(Fr,!0),Yr.trackOpen()}var f=wo(),v=ct(f);!function(t,e){L(e,!0);let n=nr(e,"position",3,"bottom-right"),r=nr(e,"visible",3,!0);var o=Ke(),i=ct(o),l=t=>{var r=ur();r.__click=[sr,e];var o=ut(r);!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"gamepad"},(()=>n),{iconNode:[["line",{x1:"6",x2:"10",y1:"12",y2:"12"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2"}]],children:(t,n)=>{var r=Ke();un(ct(r),e,"default",{},null),Ge(t,r)},$$slots:{default:!0}}))}(ut(o),{size:26,strokeWidth:1.75,class:"z-2 mr-2 transform transition-all duration-300 group-hover:rotate-12"}),kt((()=>gn(r,1,`fixed ${("bottom-left"==n()?"bottom-4 left-4":"bottom-right"==n()?"right-4 bottom-4":"")??""} group children-text-white z-99990 flex cursor-pointer gap-2 rounded-md bg-white p-3 font-bold text-black uppercase shadow-lg transition-all hover:scale-105`,"svelte-1j97rta"))),Ge(t,r)};Qe(i,(t=>{r()&&t(l)})),Ge(t,o),F()}(v,{get position(){return u},get visible(){return c},onClick:d});var p=dt(v,2),h=t=>{const n=ft((()=>{var t,n;return null==(n=null==(t=e.config)?void 0:t.exitIntent)?void 0:n.enabled}));yo(t,{get showIntentToggle(){return be(n)}})};Qe(p,(t=>{s()&&t(h)}));var g=dt(p,2);const m=ft((()=>{var t,n;return null==(n=null==(t=e.config)?void 0:t.exitIntent)?void 0:n.enabled}));!function(t,e){L(e,!0);let n=nr(e,"enabled",3,!0),r=null,o=0;var i=bo(),l=ct(i);l.__mouseover=function(){var t;const i=Date.now();"bottom"===r&&i-o<500&&n()&&!localStorage.getItem("playlight_exit_intent_disabled_by_user")&&(null==(t=e.onIntent)||t.call(e)),r="top",o=i},dt(l,2).__mouseover=function(){r="bottom",o=Date.now()},Ge(t,i),F()}(g,{get enabled(){return be(m)},onIntent:()=>{s()||d()}}),Lr(dt(g,2),{}),Ge(t,f),F(),a()}const _o={button:{position:"bottom-right",visible:!0},exitIntent:{enabled:!0}};let $o={..._o};function ko(t={}){return $o=Co(_o,t),$o}function Co(t,e){const n={...t};return So(t)&&So(e)&&Object.keys(e).forEach((r=>{So(e[r])?r in t?n[r]=Co(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})})),n}function So(t){return t&&"object"==typeof t&&!Array.isArray(t)}const Po=new(l=class{constructor(){s(this,o),this.container=null,this.app=null,this.isInitialized=!1,this.config=null,this.api=Yr}async init(t={}){return"undefined"==typeof window?console.error("Playlight cannot run on the server, as it depends on browser APIs."):this.isInitialized?(console.warn("Playlight SDK already initialized!"),void(document.getElementById("playlight-sdk-container")||u(this,o,i).call(this))):(this.config=ko(t),u(this,o,i).call(this),await this.api.getCurrentGameInfo(),void(this.isInitialized=!0))}setDiscovery(t){this.isInitialized&&(Fr.set(t),Kn(Fr)&&Yr.trackOpen())}},o=new WeakSet,i=function(){try{this.container=document.createElement("div"),this.container.id="playlight-sdk-container",this.container.className="playlight-sdk-container",document.body.appendChild(this.container),this.app=(t=xo,e={target:this.container,props:{config:this.config}},function(t,{target:e,anchor:n,props:r={},events:o,context:i,intro:l=!0}){!function(){if(void 0===et){et=window,nt=document,rt=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;ot=p(e,"firstChild").get,it=p(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0}}();var a=new Set,s=t=>{for(var n=0;n<t.length;n++){var r=t[n];if(!a.has(r)){a.add(r);var o=Me(r);e.addEventListener(r,We,{passive:o});var i=Ye.get(r);void 0===i?(document.addEventListener(r,We,{passive:o}),Ye.set(r,1)):Ye.set(r,i+1)}}};s(f(Ae)),Be.add(s);var u=void 0,c=function(t){const e=mt(64,t,!0);return(t={})=>new Promise((n=>{t.outro?Mt(e,(()=>{jt(e),n(void 0)})):(jt(e),n(void 0))}))}((()=>{var c=n??e.appendChild(lt());return St((()=>{i&&(L({}),q.c=i),o&&(r.$$events=o),Ue=l,u=t(c,r)||{},Ue=!0,i&&F()})),()=>{var t;for(var r of a){e.removeEventListener(r,We);var o=Ye.get(r);0==--o?(document.removeEventListener(r,We),Ye.delete(r)):Ye.set(r,o)}Be.delete(s),c!==n&&(null==(t=c.parentNode)||t.removeChild(c))}}));return Xe.set(u,c),u}(t,e))}catch(t){console.error("Playlight error occured during mount:",t)}var t,e},l);return"undefined"!=typeof window&&(window.playlightSDK=Po),Po}();
22
+ const or={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};var ir=Re("<svg><!><!></svg>");function lr(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]),r=Qn(n,["name","color","size","strokeWidth","absoluteStrokeWidth","iconNode"]);W(e,!1);let o=nr(e,"name",8,void 0),i=nr(e,"color",8,"currentColor"),l=nr(e,"size",8,24),a=nr(e,"strokeWidth",8,2),s=nr(e,"absoluteStrokeWidth",8,!1),u=nr(e,"iconNode",24,(()=>[]));Wn();var c=ir();let d;var f=ut(c);rn(f,1,u,nn,((t,e)=>{var n,r,o,i,l,a,s,u,c,d=Ve();n=ct(d),r=()=>be(e)[0],o=(t,n)=>{let r;kt((()=>r=Cn(t,r,{...be(e)[1]})))},s=null,u=n,c=tn,Ct((()=>{const t=r()||null;if(t!==i){var e=tn;en(c),a&&(null===t?Et(a,(()=>{a=null,l=null})):t===l?Tt(a):(It(a),Ye(!1))),t&&t!==l&&(a=St((()=>{if(Ge(s=document.createElementNS("http://www.w3.org/2000/svg",t),s),o){var e=s.appendChild(lt());o(s,e)}Jt.nodes_end=s,u.before(s)}))),(i=t)&&(l=i),Ye(!0),en(e)}}),I),Ke(t,d)})),un(dt(f),e,"default",{},null),kt(((t,e)=>d=Cn(c,d,{...or,...r,width:l(),height:l(),stroke:i(),"stroke-width":t,class:e})),[()=>s()?24*Number(a())/Number(l()):a(),()=>((...t)=>t.filter(((t,e,n)=>Boolean(t)&&n.indexOf(t)===e)).join(" "))("lucide-icon","lucide",o()?`lucide-${o()}`:"",n.class)],vt),Ke(t,c),G()}function ar(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"loader-circle"},(()=>n),{iconNode:[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}var sr=(t,e)=>{var n;null==(n=e.onClick)||n.call(e)},ur=Fe('<button id="floating playlight button" aria-label="Open Playlight Discovery"><p class="z-2 flex items-center overflow-hidden svelte-1j97rta"><!> <span class="mr-0.25 inline-block font-bold svelte-1j97rta">More Games</span></p> <div class="absolute bottom-0 left-0 h-full w-0 bg-background transition-all duration-300 group-hover:w-full svelte-1j97rta"></div></button>');function cr(t){const e=t-1;return e*e*e+1}function dr(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function fr(t){const e="string"==typeof t&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function vr(t,{delay:e=0,duration:n=400,easing:r=dr,amount:o=5,opacity:i=0}={}){const l=getComputedStyle(t),a=+l.opacity,s="none"===l.filter?"":l.filter,u=a*(1-i),[c,d]=fr(o);return{delay:e,duration:n,easing:r,css:(t,e)=>`opacity: ${a-u*e}; filter: ${s} blur(${e*c}${d});`}}function pr(t,{delay:e=0,duration:n=400,easing:r=cr,x:o=0,y:i=0,opacity:l=0}={}){const a=getComputedStyle(t),s=+a.opacity,u="none"===a.transform?"":a.transform,c=s*(1-l),[d,f]=fr(o),[v,p]=fr(i);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${u} translate(${(1-t)*d}${f}, ${(1-t)*v}${p});\n\t\t\topacity: ${s-c*e}`}}function hr(t,{delay:e=0,duration:n=400,easing:r=cr,axis:o="y"}={}){const i=getComputedStyle(t),l=+i.opacity,a="y"===o?"height":"width",s=parseFloat(i[a]),u="y"===o?["top","bottom"]:["left","right"],c=u.map((t=>`${t[0].toUpperCase()}${t.slice(1)}`)),d=parseFloat(i[`padding${c[0]}`]),f=parseFloat(i[`padding${c[1]}`]),v=parseFloat(i[`margin${c[0]}`]),p=parseFloat(i[`margin${c[1]}`]),h=parseFloat(i[`border${c[0]}Width`]),g=parseFloat(i[`border${c[1]}Width`]);return{delay:e,duration:n,easing:r,css:t=>`overflow: hidden;opacity: ${Math.min(20*t,1)*l};${a}: ${t*s}px;padding-${u[0]}: ${t*d}px;padding-${u[1]}: ${t*f}px;margin-${u[0]}: ${t*v}px;margin-${u[1]}: ${t*p}px;border-${u[0]}-width: ${t*h}px;border-${u[1]}-width: ${t*g}px;min-${a}: 0`}}function gr(t,{delay:e=0,duration:n=400,easing:r=cr,start:o=0,opacity:i=0}={}){const l=getComputedStyle(t),a=+l.opacity,s="none"===l.transform?"":l.transform,u=1-o,c=a*(1-i);return{delay:e,duration:n,easing:r,css:(t,e)=>`\n\t\t\ttransform: ${s} scale(${1-u*e});\n\t\t\topacity: ${a-c*e}\n\t\t`}}qe(["click"]);var mr=Re('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z" clip-rule="evenodd"></path></svg>'),yr=Re('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd"></path></svg>'),br=Re('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" height="20" width="20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z" clip-rule="evenodd"></path></svg>'),wr=Re('<svg viewBox="0 0 64 64" fill="currentColor" height="20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z"></path></svg>');function xr(t,e){let n=nr(e,"type",8,"success");var r=Ve(),o=ct(r),i=t=>{Ke(t,mr())},l=(t,e)=>{var r=t=>{Ke(t,yr())},o=(t,e)=>{var r=t=>{Ke(t,br())},o=(t,e)=>{var r=t=>{Ke(t,wr())},o=t=>{};Qe(t,(t=>{"warning"===n()?t(r):t(o,!1)}),e)};Qe(t,(t=>{"info"===n()?t(r):t(o,!1)}),e)};Qe(t,(t=>{"error"===n()?t(r):t(o,!1)}),e)};Qe(o,(t=>{"success"===n()?t(i):t(l,!1)})),Ke(t,r)}var _r=Fe('<div class="sonner-loading-bar"></div>'),$r=Fe('<div class="sonner-loading-wrapper"><div class="sonner-spinner"></div></div>');function kr(...t){return t.filter(Boolean).join(" ")}const Cr="undefined"!=typeof document;function Sr(t){const e=Hn(t);return{subscribe:e.subscribe,set:function(t){Cr&&e.set(t)},update:function(t){Cr&&e.update(t)}}}let Pr=0;const Mr=function(){const t=Sr([]),e=Sr([]);function n(e){t.update((t=>[e,...t]))}function r(e){var r;const{message:o,...i}=e,l="number"==typeof(null==e?void 0:e.id)||e.id&&(null==(r=e.id)?void 0:r.length)>0?e.id:Pr++,a=void 0===e.dismissable||e.dismissable,s=void 0===e.type?"default":e.type;return Vn(t).find((t=>t.id===l))?t.update((t=>t.map((t=>t.id===l?{...t,...e,id:l,title:o,dismissable:a,type:s,updated:!0}:{...t,updated:!1})))):n({...i,id:l,title:o,dismissable:a,type:s}),l}function o(e){if(void 0!==e)return t.update((t=>t.map((t=>t.id===e?{...t,dismiss:!0}:t)))),e;t.update((t=>t.map((t=>({...t,dismiss:!0})))))}return{create:r,addToast:n,dismiss:o,remove:function(e){if(void 0!==e)return t.update((t=>t.filter((t=>t.id!==e)))),e;t.set([])},message:function(t,e){return r({...e,type:"default",message:t})},error:function(t,e){return r({...e,type:"error",message:t})},success:function(t,e){return r({...e,type:"success",message:t})},info:function(t,e){return r({...e,type:"info",message:t})},warning:function(t,e){return r({...e,type:"warning",message:t})},loading:function(t,e){return r({...e,type:"loading",message:t})},promise:function(t,e){if(!e)return;let n;void 0!==e.loading&&(n=r({...e,promise:t,type:"loading",message:e.loading}));const i=t instanceof Promise?t:t();let l=void 0!==n;return i.then((t=>{if(t&&"boolean"==typeof t.ok&&!t.ok){l=!1;const o="function"==typeof e.error?e.error(`HTTP error! status: ${t.status}`):e.error;r({id:n,type:"error",message:o})}else if(void 0!==e.success){l=!1;const o="function"==typeof e.success?e.success(t):e.success;r({id:n,type:"success",message:o})}})).catch((t=>{if(void 0!==e.error){l=!1;const o="function"==typeof e.error?e.error(t):e.error;r({id:n,type:"error",message:o})}})).finally((()=>{var t;l&&(o(n),n=void 0),null==(t=e.finally)||t.call(e)})),n},custom:function(t,e){const n=(null==e?void 0:e.id)||Pr++;return r({component:t,id:n,...e}),n},removeHeight:function(t){e.update((e=>e.filter((e=>e.toastId!==t))))},setHeight:function(t){void 0!==Vn(e).find((e=>e.toastId===t.toastId))?e.update((e=>e.map((e=>e.toastId===t.toastId?t:e)))):e.update((e=>[t,...e]))},reset:function(){t.set([]),e.set([])},toasts:t,heights:e}}(),Ir=Object.assign((function(t,e){return Mr.create({message:t,...e})}),{success:Mr.success,info:Mr.info,warning:Mr.warning,error:Mr.error,custom:Mr.custom,message:Mr.message,promise:Mr.promise,dismiss:Mr.dismiss,loading:Mr.loading});var jr=Fe('<button aria-label="Close toast" data-close-button=""><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button>'),Er=Fe('<div data-icon=""><!> <!></div>'),Nr=Fe('<div data-title=""><!></div>'),Or=Fe('<div data-description=""><!></div>'),Tr=Fe('<button data-button="" data-cancel=""> </button>'),Ar=Fe('<button data-button=""> </button>'),Br=Fe('<!> <div data-content=""><!> <!></div> <!> <!>',1),zr=Fe('<li aria-atomic="true" role="status" data-sonner-toast=""><!> <!></li>');function Dr(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);W(e,!1);const[r,o]=Jn(),i=()=>Yn(_,"$heights",r),l=()=>Yn(be(lt),"$effect",r),a=K(void 0,!0),s=K(void 0,!0),u=K(void 0,!0),c=K(void 0,!0),d=K(void 0,!0),f=K(void 0,!0),v=K(void 0,!0),p=K(void 0,!0),h=K(void 0,!0),g=K(void 0,!0),m=K(void 0,!0),y=K(void 0,!0),b={toast:"",title:"",description:"",loader:"",closeButton:"",cancelButton:"",actionButton:"",action:"",warning:"",error:"",success:"",default:"",info:"",loading:""},{toasts:x,heights:_,removeHeight:$,setHeight:k,remove:C}=Mr;let S=nr(e,"toast",9),P=nr(e,"index",9),M=nr(e,"expanded",9),I=nr(e,"invert",13),j=nr(e,"position",9),E=nr(e,"visibleToasts",9),N=nr(e,"expandByDefault",9),O=nr(e,"closeButton",9),T=nr(e,"interacting",9),A=nr(e,"cancelButtonStyle",9,""),B=nr(e,"actionButtonStyle",9,""),z=nr(e,"duration",9,4e3),D=nr(e,"descriptionClass",9,""),q=nr(e,"classes",29,(()=>({}))),L=nr(e,"unstyled",9,!1),F=K(!1,!0),R=K(!1,!0),H=K(!1,!0),V=K(!1,!0),U=K(0,!0),Z=K(0,!0),J=K(void 0,!0),X=K(0,!0),Q=0,tt=0,et=null;function nt(){Y(R,!0),Y(U,be(X)),$(S().id),setTimeout((()=>{C(S().id)}),200)}let rt=K(void 0,!0),ot=K(S().duration||z()||4e3,!0);function it(){Q=(new Date).getTime(),Y(rt,setTimeout((()=>{var t,e;null==(e=(t=S()).onAutoClose)||e.call(t,S()),nt()}),be(ot)))}let lt=K(void 0,!0);rr((()=>{Y(F,!0);const t=be(J).getBoundingClientRect().height;return Y(Z,t),k({toastId:S().id,height:t}),()=>$(S().id)})),xt((()=>$e(q())),(()=>{q({...b,...q()})})),xt((()=>$e(P())),(()=>{Y(a,0===P())})),xt((()=>($e(P()),$e(E()))),(()=>{Y(s,P()+1<=E())})),xt((()=>$e(S())),(()=>{Y(u,S().title)})),xt((()=>$e(S())),(()=>{Y(c,S().description)})),xt((()=>$e(S())),(()=>{Y(d,S().type)})),xt((()=>$e(S())),(()=>{Y(f,S().class||"")})),xt((()=>$e(S())),(()=>{Y(v,S().descriptionClass||"")})),xt((()=>(i(),$e(S()))),(()=>{Y(p,i().findIndex((t=>t.toastId===S().id))||0)})),xt((()=>$e(j())),(()=>{Y(h,j().split("-"))})),xt((()=>(i(),be(p))),(()=>{Y(g,i().reduce(((t,e,n)=>n>=be(p)?t:t+e.height),0))})),xt((()=>($e(I()),$e(S()))),(()=>{I(S().invert||I())})),xt((()=>be(d)),(()=>{Y(m,"loading"===be(d))})),xt((()=>(be(p),be(g))),(()=>{Y(X,Math.round(14*be(p)+be(g)))})),xt((()=>(be(u),be(c))),(()=>{be(u),be(c),async function(){if(!be(F))return;let t;await async function(){await Promise.resolve(),function(){for(Lt();Kt.length>0;)Gt=!0,he(),Lt()}()}(),t=M()||N()?1:1-.05*P(),be(J).style.setProperty("height","auto");const e=be(J).offsetHeight,n=be(J).getBoundingClientRect().height,r=Math.round(100*(n/t+Number.EPSILON))/100;let o;be(J).style.removeProperty("height"),o=Math.abs(r-e)<1?r:e,Y(Z,o),k({toastId:S().id,height:o})}()})),xt((()=>($e(S()),be(rt),$e(z()))),(()=>{S().updated&&(clearTimeout(be(rt)),Y(ot,S().duration||z()||4e3),it())})),xt((()=>($e(S()),be(d))),(()=>{Y(y,S().promise&&"loading"===be(d)||S().duration===Number.POSITIVE_INFINITY)})),xt((()=>(be(y),$e(M()),$e(T()),be(rt))),(()=>{var t;!function(t,e,n){let r=n[e];r&&r.store!==t&&(r.unsubscribe(),r.unsubscribe=w)}(Y(lt,(t=()=>(be(y)||(M()||T()?function(){if(tt<Q){const t=(new Date).getTime()-Q;Y(ot,be(ot)-t)}tt=(new Date).getTime()}():it()),()=>clearTimeout(be(rt))),{subscribe:t})),"$effect",r)})),xt((()=>l()),(()=>{l()})),xt((()=>$e(S())),(()=>{S().delete&&nt()})),_t(),Wn(!0);var at=zr();let st;kn(at,"tabindex",0);var ft=ut(at),pt=t=>{var e=jr();kt((t=>{kn(e,"data-disabled",be(m)),gn(e,1,t)}),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.closeButton,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.closeButton))}],vt),De("click",e,(function(...t){var e;null==(e=be(m)?void 0:()=>{var t,e;nt(),null==(e=(t=S()).onDismiss)||e.call(t,S())})||e.apply(this,t)})),Ke(t,e)};Qe(ft,(t=>{O()&&!S().component&&t(pt)}));var ht=dt(ft,2),gt=t=>{var e=Ve();cn(ct(e),(()=>S().component),((t,e)=>{e(t,er((()=>S().componentProps),{$$events:{closeToast:nt}}))})),Ke(t,e)},mt=t=>{var n=Br(),r=ct(n),o=t=>{var n=Er(),r=ut(n),o=t=>{var n=Ve();un(ct(n),e,"loading-icon",{},null),Ke(t,n)};Qe(r,(t=>{!S().promise&&"loading"!==be(d)||S().icon||t(o)}));var i=dt(r,2),l=t=>{var e=Ve();cn(ct(e),(()=>S().icon),((t,e)=>{e(t,{})})),Ke(t,e)},a=(t,n)=>{var r=t=>{var n=Ve();un(ct(n),e,"success-icon",{},null),Ke(t,n)},o=(t,n)=>{var r=t=>{var n=Ve();un(ct(n),e,"error-icon",{},null),Ke(t,n)},o=(t,n)=>{var r=t=>{var n=Ve();un(ct(n),e,"warning-icon",{},null),Ke(t,n)},o=(t,n)=>{var r=t=>{var n=Ve();un(ct(n),e,"info-icon",{},null),Ke(t,n)};Qe(t,(t=>{"info"===be(d)&&t(r)}),n)};Qe(t,(t=>{"warning"===be(d)?t(r):t(o,!1)}),n)};Qe(t,(t=>{"error"===be(d)?t(r):t(o,!1)}),n)};Qe(t,(t=>{"success"===be(d)?t(r):t(o,!1)}),n)};Qe(i,(t=>{S().icon?t(l):t(a,!1)})),Ke(t,n)};Qe(r,(t=>{("default"!==be(d)||S().icon||S().promise)&&t(o)}));var i=dt(r,2),l=ut(i),a=t=>{var e=Nr(),n=ut(e),r=t=>{var e=Ve();cn(ct(e),(()=>S().title),((t,e)=>{e(t,er((()=>S().componentProps)))})),Ke(t,e)},o=t=>{var e=He();kt((()=>Ze(e,S().title))),Ke(t,e)};Qe(n,(t=>{"string"!=typeof S().title?t(r):t(o,!1)})),kt((t=>gn(e,1,t)),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.title,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.title))}],vt),Ke(t,e)};Qe(l,(t=>{S().title&&t(a)}));var s=dt(l,2),u=t=>{var e=Or(),n=ut(e),r=t=>{var e=Ve();cn(ct(e),(()=>S().description),((t,e)=>{e(t,er((()=>S().componentProps)))})),Ke(t,e)},o=t=>{var e=He();kt((()=>Ze(e,S().description))),Ke(t,e)};Qe(n,(t=>{"string"!=typeof S().description?t(r):t(o,!1)})),kt((t=>gn(e,1,t)),[()=>{var t,e;return fn(kr(D(),be(v),null==(t=q())?void 0:t.description,null==(e=S().classes)?void 0:e.description))}],vt),Ke(t,e)};Qe(s,(t=>{S().description&&t(u)}));var c=dt(i,2),f=t=>{var e=Tr(),n=ut(e);kt((t=>{yn(e,A()),gn(e,1,t),Ze(n,S().cancel.label)}),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.cancelButton,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.cancelButton))}],vt),De("click",e,(()=>{var t;nt(),(null==(t=S().cancel)?void 0:t.onClick)&&S().cancel.onClick()})),Ke(t,e)};Qe(c,(t=>{S().cancel&&t(f)}));var p=dt(c,2),h=t=>{var e=Ar(),n=ut(e);kt((t=>{yn(e,B()),gn(e,1,t),Ze(n,S().action.label)}),[()=>{var t,e,n;return fn(kr(null==(t=q())?void 0:t.actionButton,null==(n=null==(e=S())?void 0:e.classes)?void 0:n.actionButton))}],vt),De("click",e,(t=>{var e;null==(e=S().action)||e.onClick(t),t.defaultPrevented||nt()})),Ke(t,e)};Qe(p,(t=>{S().action&&t(h)})),Ke(t,n)};Qe(ht,(t=>{S().component?t(gt):t(mt,!1)})),Ln(at,(t=>Y(J,t)),(()=>be(J))),kt(((t,e,o)=>{var i;kn(at,"aria-live",S().important?"assertive":"polite"),gn(at,1,t),kn(at,"data-styled",!(S().component||(null==(i=S())?void 0:i.unstyled)||L())),kn(at,"data-mounted",be(F)),kn(at,"data-promise",e),kn(at,"data-removed",be(R)),kn(at,"data-visible",be(s)),kn(at,"data-y-position",be(h)[0]),kn(at,"data-x-position",be(h)[1]),kn(at,"data-index",P()),kn(at,"data-front",be(a)),kn(at,"data-swiping",be(H)),kn(at,"data-type",be(d)),kn(at,"data-invert",I()),kn(at,"data-swipe-out",be(V)),kn(at,"data-expanded",o),st=yn(at,`${n.style} ${S().style}`,st,{"--index":P(),"--toasts-before":P(),"--z-index":Yn(x,"$toasts",r).length-P(),"--offset":`${be(R)?be(U):be(X)}px`,"--initial-height":`${be(Z)}px`})}),[()=>{var t,e,r,o,i,l;return fn(kr(n.class,be(f),null==(t=q())?void 0:t.toast,null==(r=null==(e=S())?void 0:e.classes)?void 0:r.toast,null==(o=q())?void 0:o[be(d)],null==(l=null==(i=S())?void 0:i.classes)?void 0:l[be(d)]))},()=>Boolean(S().promise),()=>Boolean(M()||N()&&be(F))],vt),De("pointerdown",at,(function(t){if(be(m))return;Y(U,be(X));const e=t.target;e.setPointerCapture(t.pointerId),"BUTTON"!==e.tagName&&(Y(H,!0),et={x:t.clientX,y:t.clientY})})),De("pointerup",at,(function(){var t,e,n;if(be(V))return;et=null;const r=Number((null==(t=be(J))?void 0:t.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(r)>=20)return Y(U,be(X)),null==(n=(e=S()).onDismiss)||n.call(e,S()),nt(),void Y(V,!0);be(J).style.setProperty("--swipe-amount","0px"),Y(H,!1)})),De("pointermove",at,(function(t){if(!et)return;const e=t.clientY-et.y,n=t.clientX-et.x,r=("top"===be(h)[0]?Math.min:Math.max)(0,e),o="touch"===t.pointerType?10:2;Math.abs(r)>o?be(J).style.setProperty("--swipe-amount",`${e}px`):Math.abs(n)>o&&(et=null)})),Ke(t,at),G(),o()}var qr=Fe("<ol></ol>"),Lr=Fe('<section class="svelte-1fo5d1m"></section>');function Wr(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]),r=Qn(n,["invert","theme","position","hotkey","containerAriaLabel","richColors","expand","duration","visibleToasts","closeButton","toastOptions","offset","dir"]);W(e,!1);const[o,i]=Jn(),l=()=>Yn(C,"$toasts",o),a=K(),s=K(),u="dark",c="light";function d(){if("undefined"==typeof window)return"ltr";if("undefined"==typeof document)return"ltr";const t=document.documentElement.getAttribute("dir");return"auto"!==t&&t?t:window.getComputedStyle(document.documentElement).direction}let f=nr(e,"invert",8,!1),v=nr(e,"theme",8,"light"),p=nr(e,"position",8,"bottom-right"),h=nr(e,"hotkey",24,(()=>["altKey","KeyT"])),g=nr(e,"containerAriaLabel",8,"Notifications"),m=nr(e,"richColors",8,!1),y=nr(e,"expand",8,!1),b=nr(e,"duration",8,4e3),w=nr(e,"visibleToasts",8,3),x=nr(e,"closeButton",8,!1),_=nr(e,"toastOptions",24,(()=>({}))),$=nr(e,"offset",8,null),k=nr(e,"dir",24,d);const{toasts:C,heights:S,reset:P}=Mr;let M=K(!1),I=K(!1),j=K("system"!==(T=v())?T:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?u:c),E=K(),N=null,O=!1;var T;function A(t){O&&!t.currentTarget.contains(t.relatedTarget)&&(O=!1,N&&(N.focus({preventScroll:!0}),N=null))}function B(t){O||(O=!0,N=t.relatedTarget)}!function(t){null===q&&D(),rr((()=>()=>we(t)))}((()=>{be(E)&&N&&(N.focus({preventScroll:!0}),N=null,O=!1)})),rr((()=>{P();const t=t=>{var e,n;h().every((e=>t[e]||t.code===e))&&(Y(M,!0),null==(e=be(E))||e.focus()),"Escape"!==t.code||document.activeElement!==be(E)&&!(null==(n=be(E))?void 0:n.contains(document.activeElement))||Y(M,!1)};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}})),xt((()=>($e(p()),l())),(()=>{Y(a,Array.from(new Set([p(),...l().filter((t=>t.position)).map((t=>t.position))].filter(Boolean))))})),xt((()=>$e(h())),(()=>{Y(s,h().join("+").replace(/Key/g,"").replace(/Digit/g,""))})),xt((()=>l()),(()=>{l().length<=1&&Y(M,!1)})),xt((()=>l()),(()=>{const t=l().filter((t=>t.dismiss&&!t.delete));if(t.length>0){const e=l().map((e=>t.find((t=>t.id===e.id))?{...e,delete:!0}:e));C.set(e)}})),xt((()=>$e(v())),(()=>{if("system"!==v()&&Y(j,v()),"undefined"!=typeof window){"system"===v()&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y(j,u):Y(j,c));const t=window.matchMedia("(prefers-color-scheme: dark)"),e=({matches:t})=>{Y(j,t?u:c)};"addEventListener"in t?t.addEventListener("change",e):t.addListener(e)}})),_t(),Wn();var z=Ve(),L=ct(z),F=t=>{var i=Lr();kn(i,"tabindex",-1),rn(i,5,(()=>be(a)),nn,((t,i,a,s)=>{var u=qr();let c;rn(u,7,(()=>l().filter((t=>!t.position&&0===a||t.position===be(i)))),(t=>t.id),((t,n,r,o)=>{const l=vt((()=>{var t;return(null==(t=_())?void 0:t.actionButtonStyle)||""})),a=vt((()=>{var t;return(null==(t=_())?void 0:t.cancelButtonStyle)||""})),s=vt((()=>{var t;return(null==(t=_())?void 0:t.class)||""})),u=vt((()=>{var t;return(null==(t=_())?void 0:t.descriptionClass)||""})),c=vt((()=>_().classes||{})),d=vt((()=>{var t;return(null==(t=_())?void 0:t.duration)??b()})),v=vt((()=>_().unstyled||!1));Dr(t,{get index(){return be(r)},get toast(){return be(n)},get invert(){return f()},get visibleToasts(){return w()},get closeButton(){return x()},get interacting(){return be(I)},get position(){return be(i)},get expandByDefault(){return y()},get expanded(){return be(M)},get actionButtonStyle(){return be(l)},get cancelButtonStyle(){return be(a)},get class(){return be(s)},get descriptionClass(){return be(u)},get classes(){return be(c)},get duration(){return be(d)},get unstyled(){return be(v)},$$slots:{"loading-icon":(t,r)=>{var o=Ve();un(ct(o),e,"loading-icon",{},(t=>{const e=vt((()=>"loading"===be(n).type));!function(t,e){W(e,!1);let n=nr(e,"visible",8);const r=Array(12).fill(0);Wn();var o=$r();rn(ut(o),5,(()=>r),nn,((t,e)=>{Ke(t,_r())})),kt((()=>kn(o,"data-visible",n()))),Ke(t,o),G()}(t,{get visible(){return be(e)}})})),Ke(t,o)},"success-icon":(t,n)=>{var r=Ve();un(ct(r),e,"success-icon",{},(t=>{xr(t,{type:"success"})})),Ke(t,r)},"error-icon":(t,n)=>{var r=Ve();un(ct(r),e,"error-icon",{},(t=>{xr(t,{type:"error"})})),Ke(t,r)},"warning-icon":(t,n)=>{var r=Ve();un(ct(r),e,"warning-icon",{},(t=>{xr(t,{type:"warning"})})),Ke(t,r)},"info-icon":(t,n)=>{var r=Ve();un(ct(r),e,"info-icon",{},(t=>{xr(t,{type:"info"})})),Ke(t,r)}}})})),Ln(u,(t=>Y(E,t)),(()=>be(E))),kt(((t,e,i)=>{var l;c=Cn(u,c,{tabIndex:-1,class:n.class,"data-sonner-toaster":!0,"data-theme":be(j),"data-rich-colors":m(),dir:t,"data-y-position":e,"data-x-position":i,style:n.style,...r,[wn]:{"--front-toast-height":`${null==(l=Yn(S,"$heights",o)[0])?void 0:l.height}px`,"--offset":"number"==typeof $()?`${$()}px`:$()||"32px","--width":"356px","--gap":"14px"}},"svelte-1fo5d1m"),u.dir=u.dir}),[()=>"auto"===k()?d():k(),()=>be(i).split("-")[0],()=>be(i).split("-")[1]],vt),De("blur",u,A),De("focus",u,B),De("mouseenter",u,(()=>Y(M,!0))),De("mousemove",u,(()=>Y(M,!0))),De("mouseleave",u,(()=>{be(I)||Y(M,!1)})),De("pointerdown",u,(()=>Y(I,!0))),De("pointerup",u,(()=>Y(I,!1))),Ke(t,u)})),kt((()=>kn(i,"aria-label",`${g()} ${be(s)}`))),Ke(t,i)};Qe(L,(t=>{l().length>0&&t(F)})),Ke(t,z),G(),i()}const Gr=Hn(!1),Fr=Hn("https://sdk.playlight.dev");function Rr(t,e,n){var r;be(e)?t.preventDefault():(null==(r=n.onClick)||r.call(n,n.game.id),window.open("https://"+n.game.domain,"_blank","noopener"))}function Hr(t,e){var n;t.stopPropagation(),t.preventDefault(),null==(n=e.onClick)||n.call(e,e.game.id),window.open("https://"+e.game.domain,"_blank","noopener")}var Vr=Fe('<div><p class="text-primary font-bold uppercase">New</p></div>'),Kr=Fe('<video playsinline="" loop preload="auto"></video>',2),Ur=Fe("<button>Play</button>"),Yr=Fe('<div class="bg-background/75 text-foreground absolute right-0 bottom-0 left-0 z-11 flex max-h-1/3 flex-col overflow-hidden backdrop-blur-xl"><div class="hide-scrollbar h-full w-full overflow-y-auto p-3 svelte-rulnq9"><h3 class="mb-2 truncate text-center text-lg font-bold"> </h3> <p class="text-muted-foreground mb-4 text-center text-sm text-balance"> </p></div> <div class="fade-mask bg-background/75 pointer-events-none absolute right-0 bottom-0 left-0 h-8 svelte-rulnq9"></div></div>'),Zr=Fe('<div role="button" tabindex="0"><!> <!> <img alt="cover" loading="eager"> <!> <!> <img alt="game logo" loading="eager"></div>');qe(["touchstart","click"]);const Jr=new(r=class{constructor(){s(this,e),this.baseUrl="https://api.playlight.dev/platform",this.cachedCategories=null,this.currentGame=null}async request(t,e={}){try{const n=`${this.baseUrl}${t}`,r=await fetch(n,{...e,headers:{"Content-Type":"application/json",...e.headers}});if(!r.ok){let t;try{t=await r.json()}catch{}finally{if(429!==r.status&&404!==r.status)throw new Error(`API request failed: ${(null==t?void 0:t.error)||(null==t?void 0:t.message)||r.status}`);return 429===r.status?console.warn("Playlight request didn't go through due to rate limiting."):console.warn("Playlight game not found. This is normal in a test / local environment, but should not appear in production.")}}return await r.json()}catch(n){Ir.error("Error: "+n),console.error("Playlight API error:",n)}}async getCategories(){if(this.cachedCategories)return this.cachedCategories;const t=await this.request("/categories");return this.cachedCategories=t,t}async getSuggestions(t=null,r=1){let o="/suggestions";return t&&(o+="/"+t),r&&(o+="?page="+r),o+="&without="+u(this,e,n).call(this),await this.request(o)}async getCurrentGameInfo(){if(this.currentGame)return this.currentGame;let t="/game-by-domain/"+u(this,e,n).call(this);return this.currentGame=await this.request(t),this.currentGame?{...this.currentGame}:void 0}async trackOpen(){const t=u(this,e,n).call(this);await this.request("/event/open",{method:"POST",body:JSON.stringify({domain:t})})}async trackClick(t){const r=u(this,e,n).call(this);await this.request("/event/click",{method:"POST",body:JSON.stringify({sourceDomain:r,gameId:t})})}async toggleLike(t,e=!0){const n=e?"like":"unlike",r=await this.request(`/rating/${t}/${n}`,{method:"POST"});return(null==r?void 0:r.success)||!1}},e=new WeakSet,n=function(){const t=window.location.hostname;return t.startsWith("www.")?t.substring(4):t},r);function Xr(t){const e=t-1;return e*e*e+1}function Qr(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-10*t)+1}function to(t,{from:e,to:n},r={}){var{delay:o=0,duration:i=t=>120*Math.sqrt(t),easing:l=Xr}=r,a=getComputedStyle(t),s="none"===a.transform?"":a.transform,[u,c]=a.transformOrigin.split(" ").map(parseFloat);u/=t.clientWidth,c/=t.clientHeight;var d=function(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,n=1;null!==e;)n*=+getComputedStyle(e).zoom,e=e.parentElement;return n}(t),f=t.clientWidth/n.width/d,v=t.clientHeight/n.height/d,p=e.left+e.width*u,h=e.top+e.height*c,g=n.left+n.width*u,m=n.top+n.height*c,y=(p-g)*f,b=(h-m)*v,w=e.width/n.width,x=e.height/n.height;return{delay:o,duration:"function"==typeof i?i(Math.sqrt(y*y+b*b)):i,easing:l,css:(t,e)=>`transform: ${s} translate(${e*y}px, ${e*b}px) scale(${t+e*w}, ${t+e*x});`}}var eo=(t,e,n)=>{Y(e,""),Y(n,!be(n))},no=Fe('<div class="text-muted-foreground animate-pulse p-4 text-center">Loading...</div>'),ro=Fe('<div class="text-muted-foreground p-4 text-center">No categories found.</div>'),oo=(t,e,n,r)=>{e(n),Y(r,!1)},io=Fe("<button> </button>"),lo=Fe('<div class="space-y-1 p-1"></div>'),ao=Fe('<div class="bg-background/85 fixed left-1/2 z-50 mt-24 w-30 w-full max-w-xs -translate-x-1/2 transform border shadow-lg backdrop-blur-xl"><div class="border-b p-3"><div class="relative"><div class="pointer-events-none absolute inset-y-0 left-0 flex items-center pl-1"><!></div> <input type="text" placeholder="Search categories..." class="w-full border-0 p-1 pl-10 text-white focus:ring-0 focus:outline-none"></div></div> <div class="max-h-60 overflow-y-auto"><!></div></div>'),so=Fe('<div class="flex w-full flex-col py-2"><h1 class="mb-0! py-2 text-center text-2xl font-bold text-white drop-shadow-xl lg:text-4xl"><span> </span> <button class="group mx-1 inline-flex cursor-pointer items-center bg-white px-3 py-1 text-background transition hover:rotate-5"><span class="truncate max-w-[40vw] text-2xl font-bold text-background lg:text-4xl"> </span> <!></button> <span>games?</span></h1> <!></div>');function uo(t,e){W(e,!0);let n,r=nr(e,"categories",19,(()=>[])),o=nr(e,"selectedCategory",15),i=H(!1),l=ft((()=>o()||(r().length>0?r()[0]:"..."))),a=H(""),s=H(void 0),u=ft((()=>be(a)?r().filter((t=>t.toLowerCase().includes(be(a).toLowerCase()))):r()));const c=["Looking for","Interested in","Searching for","Fancy some","What about these"];let d,f=H(Q(c[0]));rr((function(){let t;for(t=Math.floor(Math.random()*(null==c?void 0:c.length));t==d;)t=Math.floor(Math.random()*(null==c?void 0:c.length));Y(f,Q(c[t])),d=t}));var v=so();De("click",nt,(function(t){be(s)&&!be(s).contains(t.target)&&n&&!n.contains(t.target)&&Y(i,!1)}));var p=ut(v),h=ut(p),g=ut(h),m=dt(h,2);m.__click=[eo,a,i];var y=ut(m),b=ut(y),w=dt(y,2);const x=ft((()=>be(i)?"rotate-180 transform":""));!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"chevron-down"},(()=>n),{iconNode:[["path",{d:"m6 9 6 6 6-6"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}(w,{size:25,strokeWidth:3,get class(){return`mt-1 ml-1 text-background ${be(x)??""} transition-transform duration-200`}}),Ln(m,(t=>n=t),(()=>n));var _=dt(p,2),$=t=>{var e=ao(),n=ut(e),l=ut(n),c=ut(l);!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"search"},(()=>n),{iconNode:[["circle",{cx:"11",cy:"11",r:"8"}],["path",{d:"m21 21-4.3-4.3"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}(ut(c),{size:18,strokeWidth:2.5,class:"text-muted-foreground"});var d=dt(c,2),f=ut(dt(n,2)),v=t=>{Ke(t,no())},p=(t,e)=>{var n=t=>{Ke(t,ro())},r=t=>{var e=lo();rn(e,28,(()=>be(u)),(t=>t),((t,e)=>{var n=io();n.__click=[oo,o,e,i];var r,l,a,s,u,c,d,f,v=ut(n);kt((()=>{gn(n,1,`w-full cursor-pointer px-4 py-2 text-left transition-colors ${(o()!=e?"hover:bg-muted-foreground/20":"")??""} ${(o()==e?"bg-white text-background":"text-white")??""}`),Ze(v,e)})),r=n,l=()=>to,a=()=>({duration:150}),f=null,(d=tn).a??(d.a={element:r,measure(){s=this.element.getBoundingClientRect()},apply(){if(null==c||c.abort(),u=this.element.getBoundingClientRect(),s.left!==u.left||s.right!==u.right||s.top!==u.top||s.bottom!==u.bottom){const t=l()(this.element,{from:s,to:u},null==a?void 0:a());c=Bn(this.element,t,void 0,1,(()=>{null==c||c.abort(),c=void 0}))}},fix(){if(!r.getAnimations().length){var{position:t,width:e,height:n}=getComputedStyle(r);if("absolute"!==t&&"fixed"!==t){var o=r.style;f={position:o.position,width:o.width,height:o.height,transform:o.transform},o.position="absolute",o.width=e,o.height=n;var i=r.getBoundingClientRect();if(s.left!==i.left||s.top!==i.top){var l=`translate(${s.left-i.left}px, ${s.top-i.top}px)`;o.transform=o.transform?`${o.transform} ${l}`:l}}}},unfix(){if(f){var t=r.style;t.position=f.position,t.width=f.width,t.height=f.height,t.transform=f.transform}}}),d.a.element=r,Ke(t,n)})),Ke(t,e)};Qe(t,(t=>{0===be(u).length?t(n):t(r,!1)}),e)};Qe(f,(t=>{0===r().length?t(v):t(p,!1)})),Ln(e,(t=>Y(s,t)),(()=>be(s))),function(t,e,n=e){var r=F();(function(t,e,n,r=n){t.addEventListener(e,(()=>Te(n)));const o=t.__on_r;t.__on_r=o?()=>{o(),r(!0)}:()=>r(!0),Oe||(Oe=!0,document.addEventListener("reset",(t=>{Promise.resolve().then((()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)null==(e=n.__on_r)||e.call(n)}))}),{capture:!0}))})(t,"input",(o=>{var i=o?t.defaultValue:t.value;if(i=zn(t)?Dn(i):i,n(i),r&&i!==(i=e())){var l=t.selectionStart,a=t.selectionEnd;t.value=i??"",null!==a&&(t.selectionStart=l,t.selectionEnd=Math.min(a,t.value.length))}})),null==we(e)&&t.value&&n(zn(t)?Dn(t.value):t.value),$t((()=>{var n=e();zn(t)&&n===Dn(t.value)||("date"!==t.type||n||t.value)&&n!==t.value&&(t.value=n??"")}))}(d,(()=>be(a)),(t=>Y(a,t))),An(3,e,(()=>pr),(()=>({y:-5,duration:250}))),Ke(t,e)};Qe(_,(t=>{be(i)&&t($)})),kt((()=>{Ze(g,be(f)),Ze(b,be(l))})),An(3,v,(()=>gr),(()=>({duration:600,delay:50,easing:Qr,start:.95}))),Ke(t,v),G()}qe(["click"]);var co=Fe('<div class="-mx-10 mt-5 flex h-1/2 max-h-[75vh] min-h-92 w-10 flex-col lg:h-3/7"><div class="flex h-full items-center justify-center"><div class="flex h-full w-full flex-col items-center justify-between py-6"><div class="bg-muted-foreground min-[1920px]:h-1/4 h-1/5 w-px"></div> <div class="text-muted-foreground origin-center -rotate-90 transform text-sm whitespace-nowrap select-none">From other categories</div> <div class="bg-muted-foreground h-1/5 w-px min-[1920px]:h-1/4"></div></div></div></div>');function fo(t,e,n,r,o,i){Y(e,!1),Y(n,!0),Y(r,250),Y(o,0),i(250,0,250,((t,e,n)=>{Y(r,t*(1-n)),Y(o,Q(n))}))}async function vo(t,e,n,r){var o;if(!(null==(o=e.currentGame)?void 0:o.id))return;const i=!be(n);Y(n,!be(n)),Y(r,be(r)+(i?1:-1)),i?localStorage.setItem(`playlight_${e.currentGame.id}_liked`,"true"):localStorage.removeItem(`playlight_${e.currentGame.id}_liked`),await Jr.toggleLike(e.currentGame.id,i)||Y(r,be(r)+(i?-1:1))}var po=Fe('<div class="bg-background/85 fixed bottom-4 left-4 z-2 flex touch-none flex-wrap items-center gap-1 border-1 p-4 text-start shadow-lg backdrop-blur-lg max-sm:right-4 sm:w-72" role="button" tabindex="0" aria-label="Currently playing game"><div class="w-full"><p class="text-muted-foreground text-sm select-none">Currently playing</p></div> <div class="flex w-full items-center gap-2"><img alt="current game logo"> <p class="text-foreground max-w-2/3 truncate text-lg font-bold"> </p> <div class="mt-0.5 ml-auto flex items-center gap-2"><p class="text-muted-foreground text-sm"> </p> <button class="text-muted-foreground cursor-pointer transition hover:text-white"><!></button></div></div></div>'),ho=Fe('<button class="bg-background/85 hover:bg-background/95 fixed bottom-0 z-3 rounded-t-md border px-4 py-1.5 shadow-md backdrop-blur-sm transition max-sm:right-4 max-sm:left-4 sm:left-4 sm:w-72" aria-label="Show currently playing game"><div class="bg-muted-foreground mx-auto h-px w-16"></div></button>'),go=Fe("<!> <!>",1);qe(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","click"]);var mo=(t,e)=>{localStorage.getItem("playlight_exit_intent_disabled_by_user")?localStorage.removeItem("playlight_exit_intent_disabled_by_user"):localStorage.setItem("playlight_exit_intent_disabled_by_user",!0),Y(e,!be(e))},yo=Fe('<button class="cursor-pointer truncate text-sm text-nowrap opacity-50 transition hover:opacity-25 max-md:hidden"><p class="bg-background/50 text-primary p-1 px-2 text-sm"> </p></button>'),bo=(t,e)=>Zn(Gr,!1),wo=Fe('<div class="flex h-4/5 items-center justify-center gap-4"><!></div>'),xo=Fe('<div class="text-muted-foreground flex h-4/5 items-center justify-center gap-4"><p>No games found that match the filter.</p></div>'),_o=Fe("<!> <!>",1),$o=Fe('<div class="mx-auto flex h-full flex-wrap content-start justify-center gap-10 lg:max-w-4/5"><!> <div class="flex h-10 w-full justify-center"><!></div></div>'),ko=Fe('<div class="bg-background/75 fixed inset-0 top-0 right-0 bottom-0 left-0 z-99999 flex flex-col justify-center text-white backdrop-blur-md"><div class="ml-2 flex items-center justify-between p-4"><a href="https://playlight.dev" target="_blank"><img alt="logo" class="w-50"></a> <div class="mt-4 mr-2 flex items-center justify-evenly gap-8 overflow-hidden md:mr-4"><!> <button class="cursor-pointer text-white transition hover:opacity-50" aria-label="Close"><!></button></div></div> <div class="mx-auto p-2 px-5"><!></div> <!> <div class="mask-fade no-scrollbar relative h-full w-full overflow-y-auto p-4 svelte-12skmk8"><!></div> <div class="fixed right-4 bottom-4 flex items-center justify-between"><a href="https://playlight.dev" target="_blank" class="text-muted-foreground flex items-center gap-1 text-sm transition hover:text-white">Join Playlight <!></a></div></div>');function Co(t,e){W(e,!0);const[n,r]=Jn();let o,i=nr(e,"showIntentToggle",3,!0),l=H(!0),a=H(void 0),s=H(!0),u=H(!1),c=H(void 0),d=H(Q([])),f=H(Q([])),v=H(1),p=H(!0),h=H(void 0),g=H(!1);async function m(){if(!(be(s)&&be(v)>1||be(u)))try{1===be(v)?Y(s,!0):Y(u,!0);const t=be(g)?null:be(a),e=await Jr.getSuggestions(t,be(v)),n=(null==e?void 0:e.games)||[],r=n.filter((t=>!be(d).some((e=>e.id===t.id))));Y(d,Q([...be(d),...r])),n.length<10?!be(g)&&be(a)?(Y(g,!0),Y(v,1),setTimeout((()=>m()),100)):Y(p,!1):Y(v,be(v)+1)}catch(t){console.error(t),Ir.error("Failed to load games: "+t)}finally{Y(s,!1),Y(u,!1),be(p)&&be(h)&&setTimeout((()=>{const t=be(h).getBoundingClientRect();!(t.top>=-200&&t.left>=0&&t.bottom<=window.innerHeight+200&&t.right<=window.innerWidth)||be(s)||be(u)||m()}),150)}}rr((()=>(Y(l,!Boolean(localStorage.getItem("playlight_exit_intent_disabled_by_user"))),o=new IntersectionObserver((t=>{t[0].isIntersecting&&be(p)&&!be(s)&&!be(u)&&m()}),{rootMargin:"200px"}),()=>null==o?void 0:o.disconnect()))),rr((async()=>{Y(c,Q(await Jr.getCurrentGameInfo())),await async function(){var t,e,n,r,o,i,l;Y(f,Q(await Jr.getCategories())),!be(a)&&(null==(t=be(f))?void 0:t.length)>0&&Y(a,Q((null==(e=be(c))?void 0:e.category)&&(null==(r=be(f))?void 0:r.includes(null==(n=be(c))?void 0:n.category))?null==(o=be(c))?void 0:o.category:null==(l=be(f))?void 0:l[(null==(i=be(f))?void 0:i.length)-1]))}()})),bt((()=>{be(a)&&(Y(d,Q([])),Y(v,1),Y(p,!0),Y(g,!1),Y(s,!0),setTimeout((async()=>{await m(),be(d).length<10&&await m()}),100))})),bt((()=>{be(h)&&o&&o.observe(be(h))}));var y=ko();De("keydown",nt,(t=>{"Escape"==t.key&&Zn(Gr,!1)}));var b=ut(y),w=ut(b),x=ut(w),_=ut(dt(w,2)),$=t=>{var e=yo();e.__click=[mo,l];var n=ut(e),r=ut(n);kt((()=>Ze(r,be(l)?"Ignore exit intent":"Trigger on exit intent"))),Ke(t,e)};Qe(_,(t=>{i()&&t($)}));var k=dt(_,2);k.__click=[bo,()=>Yn(Gr,"$discoveryOpen",n)],function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"x"},(()=>n),{iconNode:[["path",{d:"M18 6 6 18"}],["path",{d:"m6 6 12 12"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}(ut(k),{size:24,strokeWidth:2.5});var C=dt(b,2);uo(ut(C),{get categories(){return be(f)},get selectedCategory(){return be(a)},set selectedCategory(t){Y(a,Q(t))}});var S=dt(C,2);!function(t,e){var n;W(e,!0);let r=H(!1),o=H(!0),i=H(!1),l=H(0),a=H(1),s=H(!1),u=H(!1),c=H(Q((null==(n=e.currentGame)?void 0:n.likes)||0)),d=0;function f(t){Y(s,!0),d=t.type.includes("touch")?t.touches[0].clientY:t.clientY}function v(t){if(!be(s))return;const e=t.type.includes("touch")?t.touches[0].clientY:t.clientY,n=Math.max(0,e-d);Y(l,Q(n)),Y(a,Q(Math.max(0,1-n/150))),n>40&&(Y(s,!1),h(be(l),250,250,((t,e,n)=>{Y(l,t+(e-t)*n),Y(a,Q(Math.max(0,1-1.5*n))),1===n&&(Y(o,!1),Y(i,!0))})))}function p(){be(s)&&(Y(s,!1),be(l)<40&&h(be(l),0,250,((t,e,n)=>{Y(l,t*(1-n)),Y(a,1)})))}function h(t,e,n,r){const o=Date.now();!function i(){const l=Math.min((Date.now()-o)/n,1);r(t,e,l),l<1&&requestAnimationFrame(i)}()}bt((()=>{var t,n;(null==(t=e.currentGame)?void 0:t.id)&&(Y(u,null!==localStorage.getItem(`playlight_${e.currentGame.id}_liked`)),Y(c,Q((null==(n=e.currentGame)?void 0:n.likes)||0)))}));var g=go(),m=ct(g),y=t=>{var n=po();n.__mousedown=f,n.__mousemove=v,n.__mouseup=p,n.__touchstart=f,n.__touchmove=v,n.__touchend=p;var o=dt(ut(n),2),i=ut(o);let s;var d=dt(i,2),h=ut(d),g=ut(dt(d,2)),m=ut(g),y=dt(g,2);y.__click=[vo,e,u,c];var b=ut(y);const w=ft((()=>be(u)?"currentColor":"none"));!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"thumbs-up"},(()=>n),{iconNode:[["path",{d:"M7 10v12"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}(b,{size:18,strokeWidth:2.5,get fill(){return be(w)},style:"margin-top: -5px;"}),kt((t=>{var r,o;yn(n,`transform: translateY(${be(l)??""}px); opacity: ${be(a)??""}; cursor: grab;`),kn(i,"src",null==(r=e.currentGame)?void 0:r.logo_url),s=gn(i,1,"bg-muted h-5 w-5 select-none",null,s,t),Ze(h,(null==(o=e.currentGame)?void 0:o.name)||"Default name"),Ze(m,be(c)),yn(y,`color: ${(be(u)?"white !important":"")??""};`),kn(y,"aria-label",be(u)?"Unlike game":"Like game")}),[()=>({"animate-pulse":!be(r)})]),De("mouseleave",n,p),De("load",i,(()=>{Y(r,!0)})),Ke(t,n)};Qe(m,(t=>{e.currentGame&&be(o)&&t(y)}));var b=dt(m,2),w=t=>{var e=ho();e.__mousedown=[fo,i,o,l,a,h],e.__touchstart=[fo,i,o,l,a,h],An(3,e,(()=>pr),(()=>({delay:150,y:30}))),Ke(t,e)};Qe(b,(t=>{e.currentGame&&be(i)&&t(w)})),Ke(t,g),G()}(S,{get currentGame(){return be(c)}});var P=dt(S,2),M=ut(P),I=t=>{var e=wo();ar(ut(e),{class:"animate-spin opacity-75",size:50,strokeWidth:2.5}),Ke(t,e)},j=(t,e)=>{var n=t=>{Ke(t,xo())},r=t=>{var e=$o(),n=ut(e);rn(n,17,(()=>be(d)),nn,((e,n,r)=>{var o=_o();const i=ft((()=>be(d).findIndex((t=>t.category!==be(a)))));var l=ct(o),s=t=>{Ke(t,co())};Qe(l,(t=>{r==be(i)&&t(s)})),function(e,n){W(n,!0);const[r,o]=Jn();let i=H(!1),l=H(void 0),a=H(!1),s=H(!1),u=H(!1),c=H(!1),d=H(void 0);function f(){be(i)||be(c)||function(e,n=1){try{const t=new Audio(e);t.volume=n,t.play()}catch(t){console.error("Error playing sound:",t)}}(Yn(Fr,"$projectUrl",r)+"/static/sounds/hover-selection.ogg",.25),Y(i,!0),be(l)&&n.game.cover_video_url&&be(l).play().catch((t=>console.error("Video play error:",t)))}function v(){be(c)||(Y(i,!1),be(l)&&be(a)&&be(l).pause())}bt((()=>{Y(c,"ontouchstart"in window)}));var p=Zr();De("touchstart",et,(()=>Y(c,!0)),void 0,!0),De("touchstart",nt,(function(t){be(d)&&!be(d).contains(t.target)&&Y(i,!1)}),void 0,!0),p.__touchstart=f,p.__click=[Rr,c,n];var h=ut(p),g=t=>{var e=Vr();let n;kt((t=>n=gn(e,1,"bg-background absolute top-4 right-4 z-13 px-2 py-0.5 transition-opacity select-none",null,n,t)),[()=>({"opacity-0":be(i)})]),Ke(t,e)};Qe(h,(t=>{var e;(function(t){const e=new Date;return e.setDate(e.getDate()-7),new Date(t)>e})(null==(e=n.game)?void 0:e.created_at)&&t(g)}));var m=dt(h,2),y=t=>{var e=Kr();let r;e.muted=!0,Ln(e,(t=>Y(l,t)),(()=>be(l))),kt((t=>{kn(e,"src",n.game.cover_video_url),r=gn(e,1,"absolute top-0 left-0 z-5 h-full w-full object-cover opacity-0",null,r,t)}),[()=>({"opacity-100":be(i)&&be(a)&&n.game.cover_video_url})]),De("loadeddata",e,(()=>{Y(a,!0)})),Ke(t,e)};Qe(m,(t=>{n.game.cover_video_url&&t(y)}));var b=dt(m,2);let w;var x=dt(b,2),_=t=>{var e=Ur();let r;e.__click=[Hr,n],kt((t=>r=gn(e,1,"bg-foreground text-background hover:bg-foreground/90 absolute right-4 bottom-4 z-15 flex items-center justify-center rounded-sm px-3 py-1 font-bold uppercase transition-all",null,r,t)),[()=>({"opacity-0":be(i)})]),Ke(t,e)};Qe(x,(t=>{be(c)&&t(_)}));var $=dt(x,2),k=t=>{var e=Yr(),r=ut(e),o=ut(r),i=ut(o),l=ut(dt(o,2));kt((()=>{Ze(i,n.game.name),Ze(l,n.game.description||"No description.")})),An(3,e,(()=>hr)),Ke(t,e)};Qe($,(t=>{be(i)&&t(k)}));var C=dt($,2);let S;Ln(p,(t=>Y(d,t)),(()=>be(d))),kt(((t,e)=>{gn(p,1,`bg-background highlight-border group relative mt-5 mb-[calc(3dvh+1.5vw)] flex aspect-[2/3] h-1/2 max-h-[75vh] min-h-92 cursor-pointer flex-col shadow-xl transition hover:outline-2 lg:h-3/7 ${(be(s)?"":"animate-pulse")??""}`,"svelte-rulnq9"),kn(b,"src",n.game.cover_image_url),w=gn(b,1,"prevent-image-select absolute top-0 left-0 z-10 h-full w-full object-cover opacity-0 transition svelte-rulnq9",null,w,t),kn(C,"src",n.game.logo_url),S=gn(C,1,"absolute right-0 -bottom-[18%] left-0 z-12 mx-auto aspect-square w-1/5 rounded-full object-center opacity-0 transition group-hover:outline-2 prevent-image-select svelte-rulnq9",null,S,e)}),[()=>({"opacity-100":be(s)&&(!be(i)||!be(a)||!n.game.cover_video_url)}),()=>({"opacity-100":be(u)})]),De("mouseenter",p,f),De("focus",p,f),De("mouseleave",p,v),De("blur",p,v),De("load",b,(()=>{Y(s,!0)})),De("load",C,(()=>{Y(u,!0)})),Ke(e,p),G(),o()}(dt(l,2),{get game(){return be(n)},onClick:()=>Jr.trackClick(be(n).id)}),Ke(e,o)}));var r=dt(n,2),o=ut(r),i=t=>{ar(t,{class:"animate-spin opacity-75",size:30,strokeWidth:2.5})};Qe(o,(t=>{be(u)&&t(i)})),Ln(r,(t=>Y(h,t)),(()=>be(h))),Ke(t,e)};Qe(t,(t=>{0!==be(d).length||be(s)?t(r,!1):t(n)}),e)};Qe(M,(t=>{be(s)&&0===be(d).length?t(I):t(j,!1)}));var E=ut(dt(P,2));!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"external-link"},(()=>n),{iconNode:[["path",{d:"M15 3h6v6"}],["path",{d:"M10 14 21 3"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}(dt(ut(E)),{size:14}),kt((()=>kn(x,"src",Yn(Fr,"$projectUrl",n)+"/static/images/logo-white-small.png"))),An(3,y,(()=>vr),(()=>({duration:250}))),Ke(t,y),G(),r()}qe(["click"]);var So=Fe('<div class="fixed top-0 right-0 left-0 h-2"></div> <div class="fixed top-2 right-0 left-0 h-2"></div>',1);qe(["mouseover"]);var Po=Fe("<!> <!> <!> <!>",1);function Mo(t,e){var n,r,o,i;W(e,!0);const[l,a]=Jn(),s=()=>Yn(Gr,"$discoveryOpen",l);let u=Q(null==(r=null==(n=e.config)?void 0:n.button)?void 0:r.position),c=Q(null==(i=null==(o=e.config)?void 0:o.button)?void 0:i.visible);function d(){Zn(Gr,!0),Jr.trackOpen()}var f=Po(),v=ct(f);!function(t,e){W(e,!0);let n=nr(e,"position",3,"bottom-right"),r=nr(e,"visible",3,!0);var o=Ve(),i=ct(o),l=t=>{var r=ur();r.__click=[sr,e];var o=ut(r);!function(t,e){const n=Qn(e,["children","$$slots","$$events","$$legacy"]);lr(t,er({name:"gamepad"},(()=>n),{iconNode:[["line",{x1:"6",x2:"10",y1:"12",y2:"12"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2"}]],children:(t,n)=>{var r=Ve();un(ct(r),e,"default",{},null),Ke(t,r)},$$slots:{default:!0}}))}(ut(o),{size:26,strokeWidth:1.75,class:"z-2 mr-2 transform transition-all duration-300 group-hover:rotate-12"}),kt((()=>gn(r,1,`fixed ${("bottom-left"==n()?"bottom-4 left-4":"bottom-right"==n()?"right-4 bottom-4":"")??""} group children-text-white z-99990 flex cursor-pointer gap-2 rounded-md bg-white p-3 font-bold text-background uppercase shadow-lg transition-all hover:scale-105`,"svelte-1j97rta"))),Ke(t,r)};Qe(i,(t=>{r()&&t(l)})),Ke(t,o),G()}(v,{get position(){return u},get visible(){return c},onClick:d});var p=dt(v,2),h=t=>{const n=ft((()=>{var t,n;return null==(n=null==(t=e.config)?void 0:t.exitIntent)?void 0:n.enabled}));Co(t,{get showIntentToggle(){return be(n)}})};Qe(p,(t=>{s()&&t(h)}));var g=dt(p,2);const m=ft((()=>{var t,n;return null==(n=null==(t=e.config)?void 0:t.exitIntent)?void 0:n.enabled}));!function(t,e){W(e,!0);let n=nr(e,"enabled",3,!0),r=null,o=0;var i=So(),l=ct(i);l.__mouseover=function(){var t;const i=Date.now();"bottom"===r&&i-o<500&&n()&&!localStorage.getItem("playlight_exit_intent_disabled_by_user")&&(null==(t=e.onIntent)||t.call(e)),r="top",o=i},dt(l,2).__mouseover=function(){r="bottom",o=Date.now()},Ke(t,i),G()}(g,{get enabled(){return be(m)},onIntent:()=>{s()||d()}}),Wr(dt(g,2),{}),Ke(t,f),G(),a()}const Io={button:{position:"bottom-right",visible:!0},exitIntent:{enabled:!0}};let jo={...Io};function Eo(t={}){return jo=No(Io,t),jo}function No(t,e){const n={...t};return Oo(t)&&Oo(e)&&Object.keys(e).forEach((r=>{Oo(e[r])?r in t?n[r]=No(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})})),n}function Oo(t){return t&&"object"==typeof t&&!Array.isArray(t)}const To=new(l=class{constructor(){s(this,o),this.container=null,this.app=null,this.isInitialized=!1,this.config=null,this.api=Jr}async init(t={}){return"undefined"==typeof window?console.error("Playlight cannot run on the server, as it depends on browser APIs."):this.isInitialized?(console.warn("Playlight SDK already initialized!"),void(document.getElementById("playlight-sdk-container")||u(this,o,i).call(this))):(this.config=Eo(t),u(this,o,i).call(this),await this.api.getCurrentGameInfo(),void(this.isInitialized=!0))}setDiscovery(t){this.isInitialized&&(Gr.set(t),Vn(Gr)&&Jr.trackOpen())}},o=new WeakSet,i=function(){try{this.container=document.createElement("div"),this.container.id="playlight-sdk-container",this.container.className="playlight-sdk-container",document.body.appendChild(this.container),this.app=(t=Mo,e={target:this.container,props:{config:this.config}},function(t,{target:e,anchor:n,props:r={},events:o,context:i,intro:l=!0}){!function(){if(void 0===et){et=window,nt=document,rt=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype;ot=p(e,"firstChild").get,it=p(e,"nextSibling").get,t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0,Text.prototype.__t=void 0}}();var a=new Set,s=t=>{for(var n=0;n<t.length;n++){var r=t[n];if(!a.has(r)){a.add(r);var o=Ee(r);e.addEventListener(r,Le,{passive:o});var i=Je.get(r);void 0===i?(document.addEventListener(r,Le,{passive:o}),Je.set(r,1)):Je.set(r,i+1)}}};s(f(Ae)),Be.add(s);var u=void 0,c=function(t){const e=mt(64,t,!0);return(t={})=>new Promise((n=>{t.outro?Et(e,(()=>{It(e),n(void 0)})):(It(e),n(void 0))}))}((()=>{var c=n??e.appendChild(lt());return St((()=>{i&&(W({}),q.c=i),o&&(r.$$events=o),Ue=l,u=t(c,r)||{},Ue=!0,i&&G()})),()=>{var t;for(var r of a){e.removeEventListener(r,Le);var o=Je.get(r);0==--o?(document.removeEventListener(r,Le),Je.delete(r)):Je.set(r,o)}Be.delete(s),c!==n&&(null==(t=c.parentNode)||t.removeChild(c))}}));return Xe.set(u,c),u}(t,e))}catch(t){console.error("Playlight error occured during mount:",t)}var t,e},l);return"undefined"!=typeof window&&(window.playlightSDK=To),To}();
23
23
  //# sourceMappingURL=playlight-sdk.iife.js.map