liveroom-client-element 0.0.7 → 0.0.8
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.
|
@@ -3002,7 +3002,7 @@ var se;
|
|
|
3002
3002
|
});
|
|
3003
3003
|
})(se || (se = {}));
|
|
3004
3004
|
function en(s) {
|
|
3005
|
-
Le(s, "svelte-
|
|
3005
|
+
Le(s, "svelte-3iboz2", '#liveroom-client-element.svelte-3iboz2.svelte-3iboz2{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-3iboz2.svelte-3iboz2{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-3iboz2.svelte-3iboz2{z-index:10;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y))}.user.svelte-3iboz2 .cursor.svelte-3iboz2{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-3iboz2 .cursor.svelte-3iboz2{display:none}.user-name.svelte-3iboz2.svelte-3iboz2{padding:4px 10px;font-size:14px;line-height:20px;font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .user-name.svelte-3iboz2{position:absolute;top:20px;left:16px}.user[data-isself="true"].svelte-3iboz2 .user-name.svelte-3iboz2{display:none}.user.svelte-3iboz2 .halo.svelte-3iboz2{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 0.15s ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .halo[data-show="true"].svelte-3iboz2{transform:scale(1)}');
|
|
3006
3006
|
}
|
|
3007
3007
|
function ne(s, n, t) {
|
|
3008
3008
|
const e = s.slice();
|
|
@@ -3026,7 +3026,7 @@ function re(s) {
|
|
|
3026
3026
|
n = Q("div");
|
|
3027
3027
|
for (let o = 0; o < t.length; o += 1)
|
|
3028
3028
|
t[o].c();
|
|
3029
|
-
S(n, "id", "users-container"), S(n, "class", "svelte-
|
|
3029
|
+
S(n, "id", "users-container"), S(n, "class", "svelte-3iboz2");
|
|
3030
3030
|
},
|
|
3031
3031
|
m(o, h) {
|
|
3032
3032
|
Ct(o, n, h);
|
|
@@ -3056,10 +3056,10 @@ function ie(s, n) {
|
|
|
3056
3056
|
key: s,
|
|
3057
3057
|
first: null,
|
|
3058
3058
|
c() {
|
|
3059
|
-
t = Q("div"), e = Qt("svg"), r = Qt("path"), i = jt(), o = Q("span"), p = he(h), d = jt(), b = Q("div"), A = jt(), S(r, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), S(e, "width", "23"), S(e, "viewBox", "0 0 27 24"), S(e, "fill", "currentColor"), S(e, "aria-hidden", "true"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "class", "cursor svelte-
|
|
3059
|
+
t = Q("div"), e = Qt("svg"), r = Qt("path"), i = jt(), o = Q("span"), p = he(h), d = jt(), b = Q("div"), A = jt(), S(r, "d", "M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"), S(e, "width", "23"), S(e, "viewBox", "0 0 27 24"), S(e, "fill", "currentColor"), S(e, "aria-hidden", "true"), S(e, "xmlns", "http://www.w3.org/2000/svg"), S(e, "class", "cursor svelte-3iboz2"), S(o, "class", "user-name svelte-3iboz2"), S(b, "class", "halo svelte-3iboz2"), S(b, "data-show", _ = /*user*/
|
|
3060
3060
|
n[16].is_mouse_down || /*user*/
|
|
3061
3061
|
n[16].is_shift_key_down), S(t, "id", T = "user-" + /*user*/
|
|
3062
|
-
n[16].id), S(t, "class", "user svelte-
|
|
3062
|
+
n[16].id), S(t, "class", "user svelte-3iboz2"), S(t, "data-isself", j = /*user*/
|
|
3063
3063
|
n[16].id == /*me*/
|
|
3064
3064
|
n[1].id), st(
|
|
3065
3065
|
t,
|
|
@@ -3117,7 +3117,7 @@ function sn(s) {
|
|
|
3117
3117
|
);
|
|
3118
3118
|
return {
|
|
3119
3119
|
c() {
|
|
3120
|
-
n = Q("div"), t && t.c(), S(n, "id", "liveroom-client-element"), S(n, "class", "svelte-
|
|
3120
|
+
n = Q("div"), t && t.c(), S(n, "id", "liveroom-client-element"), S(n, "class", "svelte-3iboz2");
|
|
3121
3121
|
},
|
|
3122
3122
|
m(e, r) {
|
|
3123
3123
|
Ct(e, n, r), t && t.m(n, null), s[5](n);
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
14
|
-
***************************************************************************** */var te;(function(s){(function(n){var t=typeof Kt=="object"?Kt:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),e=r(s);typeof t.Reflect>"u"?t.Reflect=s:e=r(t.Reflect,e),n(e);function r(i,o){return function(h,p){typeof i[h]!="function"&&Object.defineProperty(i,h,{configurable:!0,writable:!0,value:p}),o&&o(h,p)}}})(function(n){var t=Object.prototype.hasOwnProperty,e=typeof Symbol=="function",r=e&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=e&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",h={__proto__:[]}instanceof Array,p=!o&&!h,d={create:o?function(){return zt(Object.create(null))}:h?function(){return zt({__proto__:null})}:function(){return zt({})},has:p?function(a,c){return t.call(a,c)}:function(a,c){return c in a},get:p?function(a,c){return t.call(a,c)?a[c]:void 0}:function(a,c){return a[c]}},E=Object.getPrototypeOf(Function),_=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",A=!_&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:tn(),O=!_&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:en(),x=!_&&typeof WeakMap=="function"?WeakMap:sn(),R=new x;function M(a,c,l,u){if(L(l)){if(!pe(a))throw new TypeError;if(!fe(c))throw new TypeError;return ot(a,c)}else{if(!pe(a))throw new TypeError;if(!N(c))throw new TypeError;if(!N(u)&&!L(u)&&!at(u))throw new TypeError;return at(u)&&(u=void 0),l=q(l),Vs(a,c,l,u)}}n("decorate",M);function Z(a,c){function l(u,g){if(!N(u))throw new TypeError;if(!L(g)&&!qs(g))throw new TypeError;he(a,c,u,g)}return l}n("metadata",Z);function et(a,c,l,u){if(!N(l))throw new TypeError;return L(u)||(u=q(u)),he(a,c,l,u)}n("defineMetadata",et);function k(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),ie(a,c,l)}n("hasMetadata",k);function X(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),Dt(a,c,l)}n("hasOwnMetadata",X);function J(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),oe(a,c,l)}n("getMetadata",J);function Q(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),ae(a,c,l)}n("getOwnMetadata",Q);function S(a,c){if(!N(a))throw new TypeError;return L(c)||(c=q(c)),ce(a,c)}n("getMetadataKeys",S);function V(a,c){if(!N(a))throw new TypeError;return L(c)||(c=q(c)),le(a,c)}n("getOwnMetadataKeys",V);function B(a,c,l){if(!N(c))throw new TypeError;L(l)||(l=q(l));var u=mt(c,l,!1);if(L(u)||!u.delete(a))return!1;if(u.size>0)return!0;var g=R.get(c);return g.delete(l),g.size>0||R.delete(c),!0}n("deleteMetadata",B);function ot(a,c){for(var l=a.length-1;l>=0;--l){var u=a[l],g=u(c);if(!L(g)&&!at(g)){if(!fe(g))throw new TypeError;c=g}}return c}function Vs(a,c,l,u){for(var g=a.length-1;g>=0;--g){var H=a[g],y=H(c,l,u);if(!L(y)&&!at(y)){if(!N(y))throw new TypeError;u=y}}return u}function mt(a,c,l){var u=R.get(a);if(L(u)){if(!l)return;u=new A,R.set(a,u)}var g=u.get(c);if(L(g)){if(!l)return;g=new A,u.set(c,g)}return g}function ie(a,c,l){var u=Dt(a,c,l);if(u)return!0;var g=Ut(c);return at(g)?!1:ie(a,g,l)}function Dt(a,c,l){var u=mt(c,l,!1);return L(u)?!1:Gs(u.has(a))}function oe(a,c,l){var u=Dt(a,c,l);if(u)return ae(a,c,l);var g=Ut(c);if(!at(g))return oe(a,g,l)}function ae(a,c,l){var u=mt(c,l,!1);if(!L(u))return u.get(a)}function he(a,c,l,u){var g=mt(l,u,!0);g.set(a,c)}function ce(a,c){var l=le(a,c),u=Ut(a);if(u===null)return l;var g=ce(u,c);if(g.length<=0)return l;if(l.length<=0)return g;for(var H=new O,y=[],m=0,v=l;m<v.length;m++){var $=v[m],C=H.has($);C||(H.add($),y.push($))}for(var K=0,ge=g;K<ge.length;K++){var $=ge[K],C=H.has($);C||(H.add($),y.push($))}return y}function le(a,c){var l=[],u=mt(a,c,!1);if(L(u))return l;for(var g=u.keys(),H=Ys(g),y=0;;){var m=Qs(H);if(!m)return l.length=y,l;var v=Zs(m);try{l[y]=v}catch($){try{Ks(H)}finally{throw $}}y++}}function ue(a){if(a===null)return 1;switch(typeof a){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return a===null?1:6;default:return 6}}function L(a){return a===void 0}function at(a){return a===null}function Bs(a){return typeof a=="symbol"}function N(a){return typeof a=="object"?a!==null:typeof a=="function"}function Fs(a,c){switch(ue(a)){case 0:return a;case 1:return a;case 2:return a;case 3:return a;case 4:return a;case 5:return a}var l=c===3?"string":c===5?"number":"default",u=de(a,r);if(u!==void 0){var g=u.call(a,l);if(N(g))throw new TypeError;return g}return Ws(a,l==="default"?"number":l)}function Ws(a,c){if(c==="string"){var l=a.toString;if(ht(l)){var u=l.call(a);if(!N(u))return u}var g=a.valueOf;if(ht(g)){var u=g.call(a);if(!N(u))return u}}else{var g=a.valueOf;if(ht(g)){var u=g.call(a);if(!N(u))return u}var H=a.toString;if(ht(H)){var u=H.call(a);if(!N(u))return u}}throw new TypeError}function Gs(a){return!!a}function Xs(a){return""+a}function q(a){var c=Fs(a,3);return Bs(c)?c:Xs(c)}function pe(a){return Array.isArray?Array.isArray(a):a instanceof Object?a instanceof Array:Object.prototype.toString.call(a)==="[object Array]"}function ht(a){return typeof a=="function"}function fe(a){return typeof a=="function"}function qs(a){switch(ue(a)){case 3:return!0;case 4:return!0;default:return!1}}function de(a,c){var l=a[c];if(l!=null){if(!ht(l))throw new TypeError;return l}}function Ys(a){var c=de(a,i);if(!ht(c))throw new TypeError;var l=c.call(a);if(!N(l))throw new TypeError;return l}function Zs(a){return a.value}function Qs(a){var c=a.next();return c.done?!1:c}function Ks(a){var c=a.return;c&&c.call(a)}function Ut(a){var c=Object.getPrototypeOf(a);if(typeof a!="function"||a===E||c!==E)return c;var l=a.prototype,u=l&&Object.getPrototypeOf(l);if(u==null||u===Object.prototype)return c;var g=u.constructor;return typeof g!="function"||g===a?c:g}function tn(){var a={},c=[],l=function(){function y(m,v,$){this._index=0,this._keys=m,this._values=v,this._selector=$}return y.prototype["@@iterator"]=function(){return this},y.prototype[i]=function(){return this},y.prototype.next=function(){var m=this._index;if(m>=0&&m<this._keys.length){var v=this._selector(this._keys[m],this._values[m]);return m+1>=this._keys.length?(this._index=-1,this._keys=c,this._values=c):this._index++,{value:v,done:!1}}return{value:void 0,done:!0}},y.prototype.throw=function(m){throw this._index>=0&&(this._index=-1,this._keys=c,this._values=c),m},y.prototype.return=function(m){return this._index>=0&&(this._index=-1,this._keys=c,this._values=c),{value:m,done:!0}},y}();return function(){function y(){this._keys=[],this._values=[],this._cacheKey=a,this._cacheIndex=-2}return Object.defineProperty(y.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),y.prototype.has=function(m){return this._find(m,!1)>=0},y.prototype.get=function(m){var v=this._find(m,!1);return v>=0?this._values[v]:void 0},y.prototype.set=function(m,v){var $=this._find(m,!0);return this._values[$]=v,this},y.prototype.delete=function(m){var v=this._find(m,!1);if(v>=0){for(var $=this._keys.length,C=v+1;C<$;C++)this._keys[C-1]=this._keys[C],this._values[C-1]=this._values[C];return this._keys.length--,this._values.length--,m===this._cacheKey&&(this._cacheKey=a,this._cacheIndex=-2),!0}return!1},y.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=a,this._cacheIndex=-2},y.prototype.keys=function(){return new l(this._keys,this._values,u)},y.prototype.values=function(){return new l(this._keys,this._values,g)},y.prototype.entries=function(){return new l(this._keys,this._values,H)},y.prototype["@@iterator"]=function(){return this.entries()},y.prototype[i]=function(){return this.entries()},y.prototype._find=function(m,v){return this._cacheKey!==m&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=m)),this._cacheIndex<0&&v&&(this._cacheIndex=this._keys.length,this._keys.push(m),this._values.push(void 0)),this._cacheIndex},y}();function u(y,m){return y}function g(y,m){return m}function H(y,m){return[y,m]}}function en(){return function(){function a(){this._map=new A}return Object.defineProperty(a.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),a.prototype.has=function(c){return this._map.has(c)},a.prototype.add=function(c){return this._map.set(c,c),this},a.prototype.delete=function(c){return this._map.delete(c)},a.prototype.clear=function(){this._map.clear()},a.prototype.keys=function(){return this._map.keys()},a.prototype.values=function(){return this._map.values()},a.prototype.entries=function(){return this._map.entries()},a.prototype["@@iterator"]=function(){return this.keys()},a.prototype[i]=function(){return this.keys()},a}()}function sn(){var a=16,c=d.create(),l=u();return function(){function v(){this._key=u()}return v.prototype.has=function($){var C=g($,!1);return C!==void 0?d.has(C,this._key):!1},v.prototype.get=function($){var C=g($,!1);return C!==void 0?d.get(C,this._key):void 0},v.prototype.set=function($,C){var K=g($,!0);return K[this._key]=C,this},v.prototype.delete=function($){var C=g($,!1);return C!==void 0?delete C[this._key]:!1},v.prototype.clear=function(){this._key=u()},v}();function u(){var v;do v="@@WeakMap@@"+m();while(d.has(c,v));return c[v]=!0,v}function g(v,$){if(!t.call(v,l)){if(!$)return;Object.defineProperty(v,l,{value:d.create()})}return v[l]}function H(v,$){for(var C=0;C<$;++C)v[C]=Math.random()*255|0;return v}function y(v){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(v)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(v)):H(new Uint8Array(v),v):H(new Array(v),v)}function m(){var v=y(a);v[6]=v[6]&79|64,v[8]=v[8]&191|128;for(var $="",C=0;C<a;++C){var K=v[C];(C===4||C===6||C===8)&&($+="-"),K<16&&($+="0"),$+=K.toString(16).toLowerCase()}return $}}function zt(a){return a.__=void 0,delete a.__,a}})})(te||(te={}));function Us(s){me(s,"svelte-or6zbb",'#liveroom-client-element.svelte-or6zbb.svelte-or6zbb{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-or6zbb.svelte-or6zbb{position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-or6zbb.svelte-or6zbb{z-index:1000;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y))}.user.svelte-or6zbb .cursor.svelte-or6zbb{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-or6zbb .cursor.svelte-or6zbb{display:none}.user-name.svelte-or6zbb.svelte-or6zbb{padding:4px 10px;font-size:14px;line-height:20px;font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-or6zbb .user-name.svelte-or6zbb{position:absolute;top:20px;left:16px}.user[data-isself="true"].svelte-or6zbb .user-name.svelte-or6zbb{display:none}.user.svelte-or6zbb .halo.svelte-or6zbb{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 0.15s ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-or6zbb .halo[data-show="true"].svelte-or6zbb{transform:scale(1)}')}function ee(s,n,t){const e=s.slice();return e[16]=n[t],e}function se(s){let n,t=[],e=new Map,r=Xt(Object.values(s[2]));const i=o=>o[16].id;for(let o=0;o<r.length;o+=1){let h=ee(s,r,o),p=i(h);e.set(p,t[o]=ne(p,h))}return{c(){n=tt("div");for(let o=0;o<t.length;o+=1)t[o].c();j(n,"id","users-container"),j(n,"class","svelte-or6zbb")},m(o,h){wt(o,n,h);for(let p=0;p<t.length;p+=1)t[p]&&t[p].m(n,null)},p(o,h){h&6&&(r=Xt(Object.values(o[2])),t=Me(t,h,i,1,o,r,e,n,Se,ne,null,ee))},d(o){o&<(n);for(let h=0;h<t.length;h+=1)t[h].d()}}}function ne(s,n){let t,e,r,i,o,h=n[16].name+"",p,d,E,_,A,O,x;return{key:s,first:null,c(){t=tt("div"),e=Vt("svg"),r=Vt("path"),i=Ot(),o=tt("span"),p=Bt(h),d=Ot(),E=tt("div"),A=Ot(),j(r,"d","M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"),j(e,"width","23"),j(e,"viewBox","0 0 27 24"),j(e,"fill","currentColor"),j(e,"aria-hidden","true"),j(e,"xmlns","http://www.w3.org/2000/svg"),j(e,"class","cursor svelte-or6zbb"),j(o,"class","user-name svelte-or6zbb"),j(E,"class","halo svelte-or6zbb"),j(E,"data-show",_=n[16].is_mouse_down||n[16].is_shift_key_down),j(t,"id",O="user-"+n[16].id),j(t,"class","user svelte-or6zbb"),j(t,"data-isself",x=n[16].id==n[1].id),st(t,"--color",n[16].color),st(t,"--x",parseFloat(n[16].x)+"vw"),st(t,"--y",parseFloat(n[16].y)+"vh"),this.first=t},m(R,M){wt(R,t,M),W(t,e),W(e,r),W(t,i),W(t,o),W(o,p),W(t,d),W(t,E),W(t,A)},p(R,M){n=R,M&4&&h!==(h=n[16].name+"")&&Ee(p,h),M&4&&_!==(_=n[16].is_mouse_down||n[16].is_shift_key_down)&&j(E,"data-show",_),M&4&&O!==(O="user-"+n[16].id)&&j(t,"id",O),M&6&&x!==(x=n[16].id==n[1].id)&&j(t,"data-isself",x),M&4&&st(t,"--color",n[16].color),M&4&&st(t,"--x",parseFloat(n[16].x)+"vw"),M&4&&st(t,"--y",parseFloat(n[16].y)+"vh")},d(R){R&<(t)}}}function zs(s){let n,t=s[1]&&s[2]&&se(s);return{c(){n=tt("div"),t&&t.c(),j(n,"id","liveroom-client-element"),j(n,"class","svelte-or6zbb")},m(e,r){wt(e,n,r),t&&t.m(n,null),s[5](n)},p(e,[r]){e[1]&&e[2]?t?t.p(e,r):(t=se(e),t.c(),t.m(n,null)):t&&(t.d(1),t=null)},i:P,o:P,d(e){e&<(n),t&&t.d(),s[5](null)}}}function Js(s,n,t){let{url:e}=n,{room_id:r}=n,i,o,h,p;Ce(async()=>{const X=new URLSearchParams(window.location.search).get("_liveroom"),J=X==null?void 0:X.split("https://meet.google.com/");let Q=J==null?void 0:J[0];!!(J!=null&&J[1])&&(Q=J[1].split("?")[0]),t(3,r=Q||r),d()}),ke(()=>{E()});function d(){o=new Ds({url:e,topic:`liveroom-livestate:${r}`,params:{room_id:r,current_url:window.origin,inner_width:window.innerWidth,inner_height:window.innerHeight}}),o.connect(),o.addEventListener("livestate-change",({detail:{state:k}})=>{t(3,r=k.room_id),t(1,h=k.me),t(2,p=k.users)}),window.addEventListener("mousemove",_),window.addEventListener("mousedown",A),window.addEventListener("mouseup",O),window.addEventListener("keydown",R),window.addEventListener("keyup",M),window.addEventListener("resize",Z)}function E(){window.removeEventListener("resize",Z),window.removeEventListener("keyup",M),window.removeEventListener("keydown",R),window.removeEventListener("mouseup",O),window.removeEventListener("mousedown",A),window.removeEventListener("mousemove",_),o==null||o.disconnect()}function _(k){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("mouse_move",{detail:{user_id:h.id,x:Number(k.clientX/window.innerWidth*100).toFixed(2),y:Number(k.clientY/window.innerHeight*100).toFixed(2)}}))}function A(){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("mouse_down",{detail:{user_id:h.id}}))}function O(){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("mouse_up",{detail:{user_id:h.id}}))}const x=["Shift"];function R(k){!k.repeat&&x.includes(k.key)&&o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("key_down",{detail:{key:k.key,user_id:h.id}}))}function M(k){x.includes(k.key)&&o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("key_up",{detail:{key:k.key,user_id:h.id}}))}function Z(){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("window_resize",{detail:{inner_width:window.innerWidth,inner_height:window.innerHeight,user_id:h.id}}))}function et(k){jt[k?"unshift":"push"](()=>{i=k,t(0,i)})}return s.$$set=k=>{"url"in k&&t(4,e=k.url),"room_id"in k&&t(3,r=k.room_id)},[i,h,p,r,e,et]}class re extends Ie{constructor(n){super(),He(this,n,Js,zs,ve,{url:4,room_id:3},Us)}get url(){return this.$$.ctx[4]}set url(n){this.$$set({url:n}),_t()}get room_id(){return this.$$.ctx[3]}set room_id(n){this.$$set({room_id:n}),_t()}}return customElements.define("liveroom-client-element",Pe(re,{url:{},room_id:{}},[],[],!0)),re});
|
|
14
|
+
***************************************************************************** */var te;(function(s){(function(n){var t=typeof Kt=="object"?Kt:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),e=r(s);typeof t.Reflect>"u"?t.Reflect=s:e=r(t.Reflect,e),n(e);function r(i,o){return function(h,p){typeof i[h]!="function"&&Object.defineProperty(i,h,{configurable:!0,writable:!0,value:p}),o&&o(h,p)}}})(function(n){var t=Object.prototype.hasOwnProperty,e=typeof Symbol=="function",r=e&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",i=e&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",h={__proto__:[]}instanceof Array,p=!o&&!h,d={create:o?function(){return zt(Object.create(null))}:h?function(){return zt({__proto__:null})}:function(){return zt({})},has:p?function(a,c){return t.call(a,c)}:function(a,c){return c in a},get:p?function(a,c){return t.call(a,c)?a[c]:void 0}:function(a,c){return a[c]}},E=Object.getPrototypeOf(Function),_=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",A=!_&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:tn(),O=!_&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:en(),x=!_&&typeof WeakMap=="function"?WeakMap:sn(),R=new x;function M(a,c,l,u){if(L(l)){if(!pe(a))throw new TypeError;if(!fe(c))throw new TypeError;return ot(a,c)}else{if(!pe(a))throw new TypeError;if(!N(c))throw new TypeError;if(!N(u)&&!L(u)&&!at(u))throw new TypeError;return at(u)&&(u=void 0),l=q(l),Vs(a,c,l,u)}}n("decorate",M);function Z(a,c){function l(u,g){if(!N(u))throw new TypeError;if(!L(g)&&!qs(g))throw new TypeError;he(a,c,u,g)}return l}n("metadata",Z);function et(a,c,l,u){if(!N(l))throw new TypeError;return L(u)||(u=q(u)),he(a,c,l,u)}n("defineMetadata",et);function k(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),ie(a,c,l)}n("hasMetadata",k);function X(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),Dt(a,c,l)}n("hasOwnMetadata",X);function J(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),oe(a,c,l)}n("getMetadata",J);function Q(a,c,l){if(!N(c))throw new TypeError;return L(l)||(l=q(l)),ae(a,c,l)}n("getOwnMetadata",Q);function S(a,c){if(!N(a))throw new TypeError;return L(c)||(c=q(c)),ce(a,c)}n("getMetadataKeys",S);function V(a,c){if(!N(a))throw new TypeError;return L(c)||(c=q(c)),le(a,c)}n("getOwnMetadataKeys",V);function B(a,c,l){if(!N(c))throw new TypeError;L(l)||(l=q(l));var u=mt(c,l,!1);if(L(u)||!u.delete(a))return!1;if(u.size>0)return!0;var g=R.get(c);return g.delete(l),g.size>0||R.delete(c),!0}n("deleteMetadata",B);function ot(a,c){for(var l=a.length-1;l>=0;--l){var u=a[l],g=u(c);if(!L(g)&&!at(g)){if(!fe(g))throw new TypeError;c=g}}return c}function Vs(a,c,l,u){for(var g=a.length-1;g>=0;--g){var H=a[g],y=H(c,l,u);if(!L(y)&&!at(y)){if(!N(y))throw new TypeError;u=y}}return u}function mt(a,c,l){var u=R.get(a);if(L(u)){if(!l)return;u=new A,R.set(a,u)}var g=u.get(c);if(L(g)){if(!l)return;g=new A,u.set(c,g)}return g}function ie(a,c,l){var u=Dt(a,c,l);if(u)return!0;var g=Ut(c);return at(g)?!1:ie(a,g,l)}function Dt(a,c,l){var u=mt(c,l,!1);return L(u)?!1:Gs(u.has(a))}function oe(a,c,l){var u=Dt(a,c,l);if(u)return ae(a,c,l);var g=Ut(c);if(!at(g))return oe(a,g,l)}function ae(a,c,l){var u=mt(c,l,!1);if(!L(u))return u.get(a)}function he(a,c,l,u){var g=mt(l,u,!0);g.set(a,c)}function ce(a,c){var l=le(a,c),u=Ut(a);if(u===null)return l;var g=ce(u,c);if(g.length<=0)return l;if(l.length<=0)return g;for(var H=new O,y=[],m=0,v=l;m<v.length;m++){var $=v[m],C=H.has($);C||(H.add($),y.push($))}for(var K=0,ge=g;K<ge.length;K++){var $=ge[K],C=H.has($);C||(H.add($),y.push($))}return y}function le(a,c){var l=[],u=mt(a,c,!1);if(L(u))return l;for(var g=u.keys(),H=Ys(g),y=0;;){var m=Qs(H);if(!m)return l.length=y,l;var v=Zs(m);try{l[y]=v}catch($){try{Ks(H)}finally{throw $}}y++}}function ue(a){if(a===null)return 1;switch(typeof a){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return a===null?1:6;default:return 6}}function L(a){return a===void 0}function at(a){return a===null}function Bs(a){return typeof a=="symbol"}function N(a){return typeof a=="object"?a!==null:typeof a=="function"}function Fs(a,c){switch(ue(a)){case 0:return a;case 1:return a;case 2:return a;case 3:return a;case 4:return a;case 5:return a}var l=c===3?"string":c===5?"number":"default",u=de(a,r);if(u!==void 0){var g=u.call(a,l);if(N(g))throw new TypeError;return g}return Ws(a,l==="default"?"number":l)}function Ws(a,c){if(c==="string"){var l=a.toString;if(ht(l)){var u=l.call(a);if(!N(u))return u}var g=a.valueOf;if(ht(g)){var u=g.call(a);if(!N(u))return u}}else{var g=a.valueOf;if(ht(g)){var u=g.call(a);if(!N(u))return u}var H=a.toString;if(ht(H)){var u=H.call(a);if(!N(u))return u}}throw new TypeError}function Gs(a){return!!a}function Xs(a){return""+a}function q(a){var c=Fs(a,3);return Bs(c)?c:Xs(c)}function pe(a){return Array.isArray?Array.isArray(a):a instanceof Object?a instanceof Array:Object.prototype.toString.call(a)==="[object Array]"}function ht(a){return typeof a=="function"}function fe(a){return typeof a=="function"}function qs(a){switch(ue(a)){case 3:return!0;case 4:return!0;default:return!1}}function de(a,c){var l=a[c];if(l!=null){if(!ht(l))throw new TypeError;return l}}function Ys(a){var c=de(a,i);if(!ht(c))throw new TypeError;var l=c.call(a);if(!N(l))throw new TypeError;return l}function Zs(a){return a.value}function Qs(a){var c=a.next();return c.done?!1:c}function Ks(a){var c=a.return;c&&c.call(a)}function Ut(a){var c=Object.getPrototypeOf(a);if(typeof a!="function"||a===E||c!==E)return c;var l=a.prototype,u=l&&Object.getPrototypeOf(l);if(u==null||u===Object.prototype)return c;var g=u.constructor;return typeof g!="function"||g===a?c:g}function tn(){var a={},c=[],l=function(){function y(m,v,$){this._index=0,this._keys=m,this._values=v,this._selector=$}return y.prototype["@@iterator"]=function(){return this},y.prototype[i]=function(){return this},y.prototype.next=function(){var m=this._index;if(m>=0&&m<this._keys.length){var v=this._selector(this._keys[m],this._values[m]);return m+1>=this._keys.length?(this._index=-1,this._keys=c,this._values=c):this._index++,{value:v,done:!1}}return{value:void 0,done:!0}},y.prototype.throw=function(m){throw this._index>=0&&(this._index=-1,this._keys=c,this._values=c),m},y.prototype.return=function(m){return this._index>=0&&(this._index=-1,this._keys=c,this._values=c),{value:m,done:!0}},y}();return function(){function y(){this._keys=[],this._values=[],this._cacheKey=a,this._cacheIndex=-2}return Object.defineProperty(y.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),y.prototype.has=function(m){return this._find(m,!1)>=0},y.prototype.get=function(m){var v=this._find(m,!1);return v>=0?this._values[v]:void 0},y.prototype.set=function(m,v){var $=this._find(m,!0);return this._values[$]=v,this},y.prototype.delete=function(m){var v=this._find(m,!1);if(v>=0){for(var $=this._keys.length,C=v+1;C<$;C++)this._keys[C-1]=this._keys[C],this._values[C-1]=this._values[C];return this._keys.length--,this._values.length--,m===this._cacheKey&&(this._cacheKey=a,this._cacheIndex=-2),!0}return!1},y.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=a,this._cacheIndex=-2},y.prototype.keys=function(){return new l(this._keys,this._values,u)},y.prototype.values=function(){return new l(this._keys,this._values,g)},y.prototype.entries=function(){return new l(this._keys,this._values,H)},y.prototype["@@iterator"]=function(){return this.entries()},y.prototype[i]=function(){return this.entries()},y.prototype._find=function(m,v){return this._cacheKey!==m&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=m)),this._cacheIndex<0&&v&&(this._cacheIndex=this._keys.length,this._keys.push(m),this._values.push(void 0)),this._cacheIndex},y}();function u(y,m){return y}function g(y,m){return m}function H(y,m){return[y,m]}}function en(){return function(){function a(){this._map=new A}return Object.defineProperty(a.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),a.prototype.has=function(c){return this._map.has(c)},a.prototype.add=function(c){return this._map.set(c,c),this},a.prototype.delete=function(c){return this._map.delete(c)},a.prototype.clear=function(){this._map.clear()},a.prototype.keys=function(){return this._map.keys()},a.prototype.values=function(){return this._map.values()},a.prototype.entries=function(){return this._map.entries()},a.prototype["@@iterator"]=function(){return this.keys()},a.prototype[i]=function(){return this.keys()},a}()}function sn(){var a=16,c=d.create(),l=u();return function(){function v(){this._key=u()}return v.prototype.has=function($){var C=g($,!1);return C!==void 0?d.has(C,this._key):!1},v.prototype.get=function($){var C=g($,!1);return C!==void 0?d.get(C,this._key):void 0},v.prototype.set=function($,C){var K=g($,!0);return K[this._key]=C,this},v.prototype.delete=function($){var C=g($,!1);return C!==void 0?delete C[this._key]:!1},v.prototype.clear=function(){this._key=u()},v}();function u(){var v;do v="@@WeakMap@@"+m();while(d.has(c,v));return c[v]=!0,v}function g(v,$){if(!t.call(v,l)){if(!$)return;Object.defineProperty(v,l,{value:d.create()})}return v[l]}function H(v,$){for(var C=0;C<$;++C)v[C]=Math.random()*255|0;return v}function y(v){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(v)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(v)):H(new Uint8Array(v),v):H(new Array(v),v)}function m(){var v=y(a);v[6]=v[6]&79|64,v[8]=v[8]&191|128;for(var $="",C=0;C<a;++C){var K=v[C];(C===4||C===6||C===8)&&($+="-"),K<16&&($+="0"),$+=K.toString(16).toLowerCase()}return $}}function zt(a){return a.__=void 0,delete a.__,a}})})(te||(te={}));function Us(s){me(s,"svelte-3iboz2",'#liveroom-client-element.svelte-3iboz2.svelte-3iboz2{font-family:Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}#users-container.svelte-3iboz2.svelte-3iboz2{z-index:99999;position:fixed;inset:0;overflow:hidden;pointer-events:none}.user.svelte-3iboz2.svelte-3iboz2{z-index:10;position:absolute;top:0;left:0;user-select:none;transform:translate(var(--x), var(--y))}.user.svelte-3iboz2 .cursor.svelte-3iboz2{position:absolute;top:0;left:0;color:var(--color);transform-origin:top left;transform:rotate(6deg)}.user[data-isself="true"].svelte-3iboz2 .cursor.svelte-3iboz2{display:none}.user-name.svelte-3iboz2.svelte-3iboz2{padding:4px 10px;font-size:14px;line-height:20px;font-weight:600;color:black;background-color:var(--color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:9999px;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .user-name.svelte-3iboz2{position:absolute;top:20px;left:16px}.user[data-isself="true"].svelte-3iboz2 .user-name.svelte-3iboz2{display:none}.user.svelte-3iboz2 .halo.svelte-3iboz2{transform:scale(0);z-index:-1;position:absolute;top:-60px;left:-60px;width:120px;height:120px;border-radius:9999px;background-color:var(--color);opacity:0.25;transition:transform 0.15s ease-out;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05)}.user.svelte-3iboz2 .halo[data-show="true"].svelte-3iboz2{transform:scale(1)}')}function ee(s,n,t){const e=s.slice();return e[16]=n[t],e}function se(s){let n,t=[],e=new Map,r=Xt(Object.values(s[2]));const i=o=>o[16].id;for(let o=0;o<r.length;o+=1){let h=ee(s,r,o),p=i(h);e.set(p,t[o]=ne(p,h))}return{c(){n=tt("div");for(let o=0;o<t.length;o+=1)t[o].c();j(n,"id","users-container"),j(n,"class","svelte-3iboz2")},m(o,h){wt(o,n,h);for(let p=0;p<t.length;p+=1)t[p]&&t[p].m(n,null)},p(o,h){h&6&&(r=Xt(Object.values(o[2])),t=Me(t,h,i,1,o,r,e,n,Se,ne,null,ee))},d(o){o&<(n);for(let h=0;h<t.length;h+=1)t[h].d()}}}function ne(s,n){let t,e,r,i,o,h=n[16].name+"",p,d,E,_,A,O,x;return{key:s,first:null,c(){t=tt("div"),e=Vt("svg"),r=Vt("path"),i=Ot(),o=tt("span"),p=Bt(h),d=Ot(),E=tt("div"),A=Ot(),j(r,"d","M2.2706 0.0593359L25.4277 8.05957H25.45926C25.65896 8.13153 25.83096 8.25952 25.95221 8.42653C26.07357 8.59354 26.13851 8.79166 26.13851 8.99459C26.13851 9.19751 26.07357 9.39564 25.95221 9.56265C25.83096 9.72966 25.65896 9.85765 25.45926 9.92962L15.3543 13.7698L11.3124 23.37C11.2344 23.5561 11.0994 23.7156 10.9248 23.828C10.7503 23.9402 10.5443 24.0002 10.3335 24C10.1172 24 9.9061 23.9365 9.7291 23.8184C9.552 23.7004 9.4176 23.5332 9.344 23.34L0.9233 1.33937C0.8555 1.16076 0.8426 0.967504 0.8861 0.782189C0.9297 0.596873 1.0278 0.427163 1.1691 0.292901C1.3105 0.158639 1.4891 0.0653762 1.6841 0.0240151C1.8792 -0.0173461 2.0826 -0.00509504 2.2706 0.0593359Z"),j(e,"width","23"),j(e,"viewBox","0 0 27 24"),j(e,"fill","currentColor"),j(e,"aria-hidden","true"),j(e,"xmlns","http://www.w3.org/2000/svg"),j(e,"class","cursor svelte-3iboz2"),j(o,"class","user-name svelte-3iboz2"),j(E,"class","halo svelte-3iboz2"),j(E,"data-show",_=n[16].is_mouse_down||n[16].is_shift_key_down),j(t,"id",O="user-"+n[16].id),j(t,"class","user svelte-3iboz2"),j(t,"data-isself",x=n[16].id==n[1].id),st(t,"--color",n[16].color),st(t,"--x",parseFloat(n[16].x)+"vw"),st(t,"--y",parseFloat(n[16].y)+"vh"),this.first=t},m(R,M){wt(R,t,M),W(t,e),W(e,r),W(t,i),W(t,o),W(o,p),W(t,d),W(t,E),W(t,A)},p(R,M){n=R,M&4&&h!==(h=n[16].name+"")&&Ee(p,h),M&4&&_!==(_=n[16].is_mouse_down||n[16].is_shift_key_down)&&j(E,"data-show",_),M&4&&O!==(O="user-"+n[16].id)&&j(t,"id",O),M&6&&x!==(x=n[16].id==n[1].id)&&j(t,"data-isself",x),M&4&&st(t,"--color",n[16].color),M&4&&st(t,"--x",parseFloat(n[16].x)+"vw"),M&4&&st(t,"--y",parseFloat(n[16].y)+"vh")},d(R){R&<(t)}}}function zs(s){let n,t=s[1]&&s[2]&&se(s);return{c(){n=tt("div"),t&&t.c(),j(n,"id","liveroom-client-element"),j(n,"class","svelte-3iboz2")},m(e,r){wt(e,n,r),t&&t.m(n,null),s[5](n)},p(e,[r]){e[1]&&e[2]?t?t.p(e,r):(t=se(e),t.c(),t.m(n,null)):t&&(t.d(1),t=null)},i:P,o:P,d(e){e&<(n),t&&t.d(),s[5](null)}}}function Js(s,n,t){let{url:e}=n,{room_id:r}=n,i,o,h,p;Ce(async()=>{const X=new URLSearchParams(window.location.search).get("_liveroom"),J=X==null?void 0:X.split("https://meet.google.com/");let Q=J==null?void 0:J[0];!!(J!=null&&J[1])&&(Q=J[1].split("?")[0]),t(3,r=Q||r),d()}),ke(()=>{E()});function d(){o=new Ds({url:e,topic:`liveroom-livestate:${r}`,params:{room_id:r,current_url:window.origin,inner_width:window.innerWidth,inner_height:window.innerHeight}}),o.connect(),o.addEventListener("livestate-change",({detail:{state:k}})=>{t(3,r=k.room_id),t(1,h=k.me),t(2,p=k.users)}),window.addEventListener("mousemove",_),window.addEventListener("mousedown",A),window.addEventListener("mouseup",O),window.addEventListener("keydown",R),window.addEventListener("keyup",M),window.addEventListener("resize",Z)}function E(){window.removeEventListener("resize",Z),window.removeEventListener("keyup",M),window.removeEventListener("keydown",R),window.removeEventListener("mouseup",O),window.removeEventListener("mousedown",A),window.removeEventListener("mousemove",_),o==null||o.disconnect()}function _(k){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("mouse_move",{detail:{user_id:h.id,x:Number(k.clientX/window.innerWidth*100).toFixed(2),y:Number(k.clientY/window.innerHeight*100).toFixed(2)}}))}function A(){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("mouse_down",{detail:{user_id:h.id}}))}function O(){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("mouse_up",{detail:{user_id:h.id}}))}const x=["Shift"];function R(k){!k.repeat&&x.includes(k.key)&&o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("key_down",{detail:{key:k.key,user_id:h.id}}))}function M(k){x.includes(k.key)&&o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("key_up",{detail:{key:k.key,user_id:h.id}}))}function Z(){o&&(h!=null&&h.id)&&o.dispatchEvent(new CustomEvent("window_resize",{detail:{inner_width:window.innerWidth,inner_height:window.innerHeight,user_id:h.id}}))}function et(k){jt[k?"unshift":"push"](()=>{i=k,t(0,i)})}return s.$$set=k=>{"url"in k&&t(4,e=k.url),"room_id"in k&&t(3,r=k.room_id)},[i,h,p,r,e,et]}class re extends Ie{constructor(n){super(),He(this,n,Js,zs,ve,{url:4,room_id:3},Us)}get url(){return this.$$.ctx[4]}set url(n){this.$$set({url:n}),_t()}get room_id(){return this.$$.ctx[3]}set room_id(n){this.$$set({room_id:n}),_t()}}return customElements.define("liveroom-client-element",Pe(re,{url:{},room_id:{}},[],[],!0)),re});
|