aptechka 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animated-CzBHCHNm.js → Animated-CJcYqJzq.js} +1 -1
- package/lib/{Animated-DZ_fbJmi.cjs → Animated-DyZuTEQE.cjs} +1 -1
- package/lib/{Damped--qBZAdEi.cjs → Damped-AHRBHNEQ.cjs} +1 -1
- package/lib/{Damped-Bm1kSn1f.js → Damped-Csj-9_gH.js} +1 -1
- package/lib/{Derived-BS2ja9qa.js → Derived-Bc88XJ8J.js} +1 -1
- package/lib/{Derived-CqmIkTGN.cjs → Derived-SjPdLJiZ.cjs} +1 -1
- package/lib/ElementConstructor-9f-12v7T.cjs +1 -0
- package/lib/ElementConstructor-CoKM2CTK.js +228 -0
- package/lib/{SourceManager-B44FUTig.js → SourceManager-BoP9RAJr.js} +1 -1
- package/lib/{SourceManager-D447KWpH.cjs → SourceManager-CI6NfLzW.cjs} +1 -1
- package/lib/Store-D0_rDIsE.cjs +1 -0
- package/lib/{Store-uTyReFzx.js → Store-JOKrNVEr.js} +18 -18
- package/lib/{Viewport-CDqiD8Ao.cjs → Viewport-COsaberc.cjs} +1 -1
- package/lib/{Viewport-Cj0i-H5d.js → Viewport-CXY5xcGJ.js} +1 -1
- package/lib/abstract-elements/index.cjs +1 -1
- package/lib/abstract-elements/index.js +1 -1
- package/lib/animation/index.cjs +1 -1
- package/lib/animation/index.js +2 -2
- package/lib/attribute/index.cjs +1 -1
- package/lib/attribute/index.js +1 -1
- package/lib/canvas/index.cjs +1 -1
- package/lib/canvas/index.js +3 -3
- package/lib/connector/index.cjs +1 -1
- package/lib/connector/index.d.ts +1 -0
- package/lib/connector/index.js +32 -31
- package/lib/createStylesheet-BON7aJYs.js +10 -0
- package/lib/{createStylesheet-ChhZFwSX.cjs → createStylesheet-uicRVW05.cjs} +1 -1
- package/lib/device/index.cjs +1 -1
- package/lib/device/index.js +1 -1
- package/lib/element-constructor/ElementConstructor.d.ts +4 -2
- package/lib/element-constructor/htmlTags.d.ts +1 -1
- package/lib/element-constructor/index.cjs +1 -1
- package/lib/element-constructor/index.js +4 -4
- package/lib/en3/index.cjs +1 -1
- package/lib/en3/index.js +2 -2
- package/lib/{htmlTags-CNEFIHPp.js → htmlTags-BCNUG7oK.js} +1 -1
- package/lib/{htmlTags-CwYHVo9n.cjs → htmlTags-BSQys9wH.cjs} +1 -1
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +1 -1
- package/lib/{index-DyJhLxk8.js → index-DgtdcBEI.js} +3 -3
- package/lib/{index-tPw9mmLF.cjs → index-i_Ki9M-w.cjs} +1 -1
- package/lib/jsx/ComponentElement.d.ts +17 -0
- package/lib/jsx/h.d.ts +5 -4
- package/lib/jsx/hooks.d.ts +10 -4
- package/lib/jsx/index.cjs +1 -1
- package/lib/jsx/index.js +97 -106
- package/lib/jsx/type.d.ts +6 -5
- package/lib/ladder/index.cjs +1 -1
- package/lib/ladder/index.js +1 -1
- package/lib/media/index.cjs +1 -1
- package/lib/media/index.js +1 -1
- package/lib/modal/index.cjs +1 -1
- package/lib/modal/index.js +3 -3
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/scroll/index.cjs +1 -1
- package/lib/scroll/index.js +6 -6
- package/lib/select/index.cjs +1 -1
- package/lib/select/index.js +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +2 -2
- package/lib/store/index.cjs +1 -1
- package/lib/store/index.js +3 -3
- package/lib/studio/index.cjs +3 -3
- package/lib/studio/index.js +307 -288
- package/lib/studio/tweaker/TweakerBooleanManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerColorManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerFieldElement.d.ts +2 -1
- package/lib/studio/tweaker/TweakerLinkManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerNumberManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerRangeManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerSelectManagerElement.d.ts +1 -1
- package/lib/studio/tweaker/TweakerStoreManagerElement.d.ts +5 -2
- package/lib/studio/tweaker/TweakerStringManagerElement.d.ts +1 -1
- package/lib/theme/index.cjs +1 -1
- package/lib/theme/index.js +2 -2
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +1 -1
- package/package.json +1 -1
- package/lib/ElementConstructor-DB0xOoat.js +0 -199
- package/lib/ElementConstructor-v1FPLXAW.cjs +0 -1
- package/lib/Store-BOOfmlyv.cjs +0 -1
- package/lib/createStylesheet-74ZP3AZm.js +0 -8
- package/lib/jsx/ComponentWrapper.d.ts +0 -12
|
@@ -19,7 +19,7 @@ var t = (s, r, e) => (C(s, r, "read from private field"), e ? e.call(s) : r.get(
|
|
|
19
19
|
throw TypeError("Cannot add the same private member more than once");
|
|
20
20
|
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
21
21
|
}, a = (s, r, e, u) => (C(s, r, "write to private field"), u ? u.call(s, e) : r.set(s, e), e);
|
|
22
|
-
import { S as m } from "./Store-
|
|
22
|
+
import { S as m } from "./Store-JOKrNVEr.js";
|
|
23
23
|
import { c as E } from "./math-BOBiC4TN.js";
|
|
24
24
|
import { p as G } from "./number-Bo5RdrA1.js";
|
|
25
25
|
import { ticker as N } from "./ticker/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var N=Object.defineProperty,_=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var M=(s,r,e)=>r in s?N(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e,R=(s,r)=>{for(var e in r||(r={}))z.call(r,e)&&M(s,e,r[e]);if(y)for(var e of y(r))B.call(r,e)&&M(s,e,r[e]);return s},$=(s,r)=>_(s,j(r));var v=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(v(s,r,"read from private field"),e?e.call(s):r.get(s)),i=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},n=(s,r,e,u)=>(v(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);const m=require("./Store-
|
|
1
|
+
"use strict";var N=Object.defineProperty,_=Object.defineProperties;var j=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var M=(s,r,e)=>r in s?N(s,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[r]=e,R=(s,r)=>{for(var e in r||(r={}))z.call(r,e)&&M(s,e,r[e]);if(y)for(var e of y(r))B.call(r,e)&&M(s,e,r[e]);return s},$=(s,r)=>_(s,j(r));var v=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(v(s,r,"read from private field"),e?e.call(s):r.get(s)),i=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},n=(s,r,e,u)=>(v(s,r,"write to private field"),u?u.call(s,e):r.set(s,e),e);const m=require("./Store-D0_rDIsE.cjs"),D=require("./math-GDWEqu7y.cjs"),E=require("./number-yVpzMdbQ.cjs"),C=require("./ticker/index.cjs");var g,S,f,h,a,c,b,x,F,l,A,P,q;class G extends m.Store{constructor(e){super((e==null?void 0:e.default)||0,e);i(this,g,void 0);i(this,S,void 0);i(this,f,void 0);i(this,h,void 0);i(this,a,void 0);i(this,c,void 0);i(this,b,new m.Store(null));i(this,x,new m.Store(!1));i(this,F,0);i(this,l,0);i(this,A,e=>{this.set(e.current)});i(this,P,e=>{const u=this.current;this.handleAnimationFrame(e);const d=Math.abs(u-this.target);n(this,l,d/e.elapsed)});i(this,q,()=>{this.set(t(this,h)),this.current=t(this,h)});n(this,S,e==null?void 0:e.order),n(this,g,e==null?void 0:e.maxFPS),n(this,f,e==null?void 0:e.culling),n(this,h,this.current);let u,d;e!=null&&e.passport&&(u={name:`${e.passport.name+"-min"}`},d={name:`${e.passport.name+"-max"}`}),n(this,a,(e==null?void 0:e.min)instanceof m.Store?e.min:new m.Store(0,{passport:u})),n(this,c,(e==null?void 0:e.max)instanceof m.Store?e.max:new m.Store(0,{passport:d})),t(this,a).subscribe(t(this,q)),t(this,c).subscribe(t(this,q)),t(this,b).subscribe(w=>{var k,L;(k=w.previous)==null||k.unsubscribe(t(this,A)),(L=w.current)==null||L.subscribe(t(this,A))})}get target(){return t(this,h)}get isRunning(){return t(this,x)}get direction(){return t(this,F)}get maxFPS(){return t(this,g)}get speed(){return t(this,l)}get min(){return t(this,a)}get max(){return t(this,c)}get delta(){return t(this,c).current-t(this,a).current}get progress(){return this.delta?E.preciseNumber((this.current-this.min.current)/this.delta,6):0}get entry(){return $(R({},super.entry),{min:t(this,a).current,max:t(this,c).current,delta:this.delta,direction:this.direction,progress:this.progress,speed:this.speed})}get updater(){return t(this,b)}set(e,u=!1){const d=t(this,h);n(this,h,D.clamp(e,t(this,a).current,t(this,c).current)),u&&(this.current=t(this,h)),t(this,h)!==d&&(n(this,l,0),n(this,F,Math.sign(e-t(this,h))||1),this.update())}shift(e,u=!1){this.set(t(this,h)+e,u)}close(){super.close(),this.unlistenAnimationFrame(),t(this,b).current=null}reset(){this.set(this.initial,!0),super.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,x).current=!0,C.ticker.subscribe(t(this,P),{maxFPS:t(this,g),order:t(this,S),culling:t(this,f)})}unlistenAnimationFrame(){n(this,l,0),t(this,x).current=!1,C.ticker.unsubscribe(t(this,P))}}g=new WeakMap,S=new WeakMap,f=new WeakMap,h=new WeakMap,a=new WeakMap,c=new WeakMap,b=new WeakMap,x=new WeakMap,F=new WeakMap,l=new WeakMap,A=new WeakMap,P=new WeakMap,q=new WeakMap;exports.Animated=G;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-
|
|
1
|
+
"use strict";var d=Object.defineProperty,g=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var A=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;var i=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,h=(r,t)=>{for(var e in t||(t={}))A.call(t,e)&&i(r,e,t[e]);if(n)for(var e of n(t))f.call(t,e)&&i(r,e,t[e]);return r},s=(r,t)=>g(r,l(t));var u=(r,t,e)=>(i(r,typeof t!="symbol"?t+"":t,e),e);const F=require("./math-GDWEqu7y.cjs"),c=require("./number-yVpzMdbQ.cjs"),b=require("./Animated-DyZuTEQE.cjs");class q extends b.Animated{constructor(e){var a,m;super(s(h({},e),{min:(a=e==null?void 0:e.min)!=null?a:-1/0,max:(m=e==null?void 0:e.max)!=null?m:1/0}));u(this,"damping");this.damping=(e==null?void 0:e.damping)||0}update(){this.damping?this.listenAnimationFrame():(this.current=this.target,this.unlistenAnimationFrame())}handleAnimationFrame(e){c.preciseNumber(this.current,4)===c.preciseNumber(this.target,4)&&(this.unlistenAnimationFrame(),this.current=this.target),this.current=F.damp(this.current,this.target,this.damping,e.elapsed)}}exports.Damped=q;
|
|
@@ -13,7 +13,7 @@ var r = (a, t, e) => t in a ? c(a, t, { enumerable: !0, configurable: !0, writab
|
|
|
13
13
|
var d = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
14
|
import { d as x } from "./math-BOBiC4TN.js";
|
|
15
15
|
import { p as u } from "./number-Bo5RdrA1.js";
|
|
16
|
-
import { A as F } from "./Animated-
|
|
16
|
+
import { A as F } from "./Animated-CJcYqJzq.js";
|
|
17
17
|
class p extends F {
|
|
18
18
|
constructor(e) {
|
|
19
19
|
var i, m;
|
|
@@ -7,7 +7,7 @@ var o = (s, r, e) => (u(s, r, "read from private field"), e ? e.call(s) : r.get(
|
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, e);
|
|
9
9
|
}, n = (s, r, e, c) => (u(s, r, "write to private field"), c ? c.call(s, e) : r.set(s, e), e);
|
|
10
|
-
import { S as p } from "./Store-
|
|
10
|
+
import { S as p } from "./Store-JOKrNVEr.js";
|
|
11
11
|
var t;
|
|
12
12
|
class d extends p {
|
|
13
13
|
constructor(e, c, l) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-
|
|
1
|
+
"use strict";var u=(e,r,s)=>{if(!r.has(e))throw TypeError("Cannot "+s)};var i=(e,r,s)=>(u(e,r,"read from private field"),s?s.call(e):r.get(e)),n=(e,r,s)=>{if(r.has(e))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(e):r.set(e,s)},o=(e,r,s,c)=>(u(e,r,"write to private field"),c?c.call(e,s):r.set(e,s),s);const d=require("./Store-D0_rDIsE.cjs");var t;class h extends d.Store{constructor(s,c,l){super(null,l);n(this,t,void 0);o(this,t,s.subscribe(b=>{this.current=c(b.current)}))}close(){super.close(),i(this,t).call(this)}}t=new WeakMap;exports.Derived=h;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var rt=Object.defineProperty;var ot=(o,e,t)=>e in o?rt(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t;var Y=(o,e,t)=>(ot(o,typeof e!="symbol"?e+"":e,t),t),V=(o,e,t)=>{if(!e.has(o))throw TypeError("Cannot "+t)};var c=(o,e,t)=>(V(o,e,"read from private field"),t?t.call(o):e.get(o)),f=(o,e,t)=>{if(e.has(o))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(o):e.set(o,t)},y=(o,e,t,s)=>(V(o,e,"write to private field"),s?s.call(o,t):e.set(o,t),t);var r=(o,e,t)=>(V(o,e,"access private method"),t);const h=require("./Store-D0_rDIsE.cjs"),ft=require("./browser-CpzFX2xg.cjs"),z=require("./string-DzUwFYSS.cjs");var u,a,w,D,p,I,T,Q,d,v,m,F,A,X,x,Z,k,_,q,O,g,K,b,R,H,j,P,tt,C,W,N,G,$,et,B,st,J,it,L,U,M,nt;const E=class E{constructor(...e){f(this,w);f(this,p);f(this,T);f(this,d);f(this,m);f(this,A);f(this,x);f(this,k);f(this,q);f(this,g);f(this,b);f(this,H);f(this,P);f(this,C);f(this,N);f(this,$);f(this,B);f(this,J);f(this,L);f(this,M);f(this,u,[]);f(this,a,[]);Y(this,"destroy",()=>{c(this,a).forEach(e=>{e()}),y(this,a,[])});const t=e[0],s=e[1];if(ft.isBrowser)if(typeof t=="string"){const i=document.createElement("div");i.innerHTML=t;const n=i.firstElementChild;y(this,u,[n]),r(this,d,v).call(this,n,s)}else t instanceof Node?(y(this,u,[t]),r(this,d,v).call(this,t,s)):y(this,u,r(this,w,D).call(this,t))}get unsubscribeCallbacks(){return c(this,a)}get rootElements(){return c(this,u)}};u=new WeakMap,a=new WeakMap,w=new WeakSet,D=function(e){const t=[];for(const s in e){const i=s,n=e[i],l=r(this,p,I).call(this,i,n==null?void 0:n.svg);n&&r(this,d,v).call(this,l,n),t.push(l)}return t},p=new WeakSet,I=function(e,t=!1){let s=null;return e.includes("-")?s=new(customElements.get(e)):t?s=document.createElementNS("http://www.w3.org/2000/svg",e):s=document.createElement(e),s},T=new WeakSet,Q=function(e){return e instanceof HTMLElement||e instanceof SVGElement},d=new WeakSet,v=function(e,t){const s=r(this,T,Q).call(this,e);for(const i in t){const n=i;n==="class"&&s?r(this,m,F).call(this,e,t[n]):n==="style"&&s?r(this,k,_).call(this,e,t[n]):n==="events"&&s?r(this,H,j).call(this,e,t[n]):n==="attributes"&&s?r(this,P,tt).call(this,e,t[n]):n==="children"?r(this,N,G).call(this,e,t[n]):n==="shadowChildren"?r(this,N,G).call(this,e instanceof Element&&e.shadowRoot||e,t[n]):n==="parent"&&r(this,M,nt).call(this,e,t[n])}t!=null&&t.ref&&(typeof(t==null?void 0:t.ref)=="function"?t.ref(e):t.ref.current=e)},m=new WeakSet,F=function(e,t){if(t){if(typeof t=="string")e.classList.add(t);else if(Array.isArray(t))t.forEach(s=>{r(this,m,F).call(this,e,s)});else if(typeof t=="object")if(t instanceof h.Store)r(this,A,X).call(this,e,t);else for(const s in t){const i=t[s];i instanceof h.Store?r(this,x,Z).call(this,e,s,i):i?e.classList.add(s):e.classList.remove(s)}}else return},A=new WeakSet,X=function(e,t){c(this,a).push(t.subscribe(({current:s,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e.classList.remove(n)}),s&&[s].flat().forEach(n=>{n&&e.classList.add(n)})}))},x=new WeakSet,Z=function(e,t,s){c(this,a).push(s.subscribe(({current:i})=>{i?e.classList.add(t):e.classList.remove(t)}))},k=new WeakSet,_=function(e,t){if(!t)return;e.tagName==="style"||e.tagName==="STYLE"?r(this,g,K).call(this,e,t):r(this,q,O).call(this,e,t)},q=new WeakSet,O=function(e,t){for(const s in t){const i=s,n=t[i];n instanceof h.Store?c(this,a).push(n.subscribe(({current:l})=>{r(this,b,R).call(this,e,i,l)})):r(this,b,R).call(this,e,i,n)}},g=new WeakSet,K=function(e,t){for(const s in t){const i=t[s];if(typeof i=="object"&&!(i instanceof h.Store))e.appendChild(new Text(`${s} {`)),r(this,g,K).call(this,e,i),e.appendChild(new Text("}"));else if(i instanceof h.Store){const n=new Text;c(this,a).push(i.subscribe(l=>{l.current?n.nodeValue=`${z.camelToKebab(s)}: ${l.current};`:n.nodeValue=""})),e.appendChild(n)}else e.appendChild(new Text(`${z.camelToKebab(s)}: ${i};`))}},b=new WeakSet,R=function(e,t,s){t.includes("--")?s?e.style.setProperty(t,s):e.style.removeProperty(t):s?e.style[t]=s:e.style[t]=""},H=new WeakSet,j=function(e,t){if(t)for(const s in t){const i=s,n=t[i];typeof n=="object"?e.addEventListener(i,n.callback,n.options):typeof n=="function"&&e.addEventListener(i,n)}},P=new WeakSet,tt=function(e,t){for(const s in t){const i=t[s];i instanceof h.Store?c(this,a).push(i.subscribe(({current:n})=>{r(this,C,W).call(this,e,s,n)})):r(this,C,W).call(this,e,s,i)}},C=new WeakSet,W=function(e,t,s){var i,n;t in e&&!((n=(i=e.constructor)==null?void 0:i.observedAttributes)!=null&&n.includes(t))?s!=null&&(e[t]=s.toString()):s!=null&&e.setAttribute(t,s.toString())},N=new WeakSet,G=function(e,t){t&&(t=[t].flat(),t.forEach(s=>{if(s instanceof h.Store){const i=document.createElement("div");i.style.display="contents",e.appendChild(i),c(this,a).push(s.subscribe(({current:n})=>{r(this,B,st).call(this,i,r(this,$,et).call(this,n),Array.from(i.childNodes))}))}else if(s instanceof E)c(this,a).push(s.destroy),s.rootElements.forEach(i=>{e.appendChild(i)});else{const i=r(this,L,U).call(this,s);i instanceof Node&&e.appendChild(i)}}))},$=new WeakSet,et=function(e){return[e].flat().map(s=>s instanceof E?s.rootElements:r(this,L,U).call(this,s)).flat().filter(Boolean)},B=new WeakSet,st=function(e,t,s){s.forEach((i,n)=>{if(n<t.length){const l=t[n];r(this,J,it).call(this,i,l)||e.replaceChild(l,i)}else e.removeChild(i)});for(let i=s.length;i<t.length;i++)e.appendChild(t[i])},J=new WeakSet,it=function(e,t){return t?t instanceof Node?e.isEqualNode(t):e.textContent===t.toString():!1},L=new WeakSet,U=function(e){if(e instanceof Node)return e;if(e!=null){const t=String(e);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const s=document.createElement("div");return s.innerHTML=t,s.firstElementChild}else return new Text(t)}else return},M=new WeakSet,nt=function(e,t){if(!t)return;(t instanceof E?t.rootElements[0]:t).appendChild(e)};let S=E;function at(...o){return new S(...o)}function ct(...o){return()=>new S(...o)}exports.ElementConstructor=S;exports.element=at;exports.elementFactory=ct;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
var rt = Object.defineProperty;
|
|
2
|
+
var ft = (f, s, t) => s in f ? rt(f, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : f[s] = t;
|
|
3
|
+
var Y = (f, s, t) => (ft(f, typeof s != "symbol" ? s + "" : s, t), t), q = (f, s, t) => {
|
|
4
|
+
if (!s.has(f))
|
|
5
|
+
throw TypeError("Cannot " + t);
|
|
6
|
+
};
|
|
7
|
+
var c = (f, s, t) => (q(f, s, "read from private field"), t ? t.call(f) : s.get(f)), o = (f, s, t) => {
|
|
8
|
+
if (s.has(f))
|
|
9
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
10
|
+
s instanceof WeakSet ? s.add(f) : s.set(f, t);
|
|
11
|
+
}, y = (f, s, t, e) => (q(f, s, "write to private field"), e ? e.call(f, t) : s.set(f, t), t);
|
|
12
|
+
var r = (f, s, t) => (q(f, s, "access private method"), t);
|
|
13
|
+
import { S as h } from "./Store-JOKrNVEr.js";
|
|
14
|
+
import { i as ot } from "./browser-0zX67oeU.js";
|
|
15
|
+
import { c as z } from "./string-BrDhnNUL.js";
|
|
16
|
+
var u, a, v, D, w, I, A, Q, d, C, m, R, T, X, x, Z, k, _, H, O, S, W, g, F, P, j, $, tt, b, G, p, K, B, st, J, et, M, it, N, U, V, nt;
|
|
17
|
+
const E = class E {
|
|
18
|
+
constructor(...s) {
|
|
19
|
+
o(this, v);
|
|
20
|
+
o(this, w);
|
|
21
|
+
o(this, A);
|
|
22
|
+
o(this, d);
|
|
23
|
+
o(this, m);
|
|
24
|
+
o(this, T);
|
|
25
|
+
o(this, x);
|
|
26
|
+
o(this, k);
|
|
27
|
+
o(this, H);
|
|
28
|
+
o(this, S);
|
|
29
|
+
o(this, g);
|
|
30
|
+
o(this, P);
|
|
31
|
+
o(this, $);
|
|
32
|
+
o(this, b);
|
|
33
|
+
o(this, p);
|
|
34
|
+
o(this, B);
|
|
35
|
+
o(this, J);
|
|
36
|
+
o(this, M);
|
|
37
|
+
o(this, N);
|
|
38
|
+
o(this, V);
|
|
39
|
+
o(this, u, []);
|
|
40
|
+
o(this, a, []);
|
|
41
|
+
Y(this, "destroy", () => {
|
|
42
|
+
c(this, a).forEach((s) => {
|
|
43
|
+
s();
|
|
44
|
+
}), y(this, a, []);
|
|
45
|
+
});
|
|
46
|
+
const t = s[0], e = s[1];
|
|
47
|
+
if (ot)
|
|
48
|
+
if (typeof t == "string") {
|
|
49
|
+
const i = document.createElement("div");
|
|
50
|
+
i.innerHTML = t;
|
|
51
|
+
const n = i.firstElementChild;
|
|
52
|
+
y(this, u, [n]), r(this, d, C).call(this, n, e);
|
|
53
|
+
} else
|
|
54
|
+
t instanceof Node ? (y(this, u, [t]), r(this, d, C).call(this, t, e)) : y(this, u, r(this, v, D).call(this, t));
|
|
55
|
+
}
|
|
56
|
+
get unsubscribeCallbacks() {
|
|
57
|
+
return c(this, a);
|
|
58
|
+
}
|
|
59
|
+
get rootElements() {
|
|
60
|
+
return c(this, u);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
u = new WeakMap(), a = new WeakMap(), v = new WeakSet(), D = function(s) {
|
|
64
|
+
const t = [];
|
|
65
|
+
for (const e in s) {
|
|
66
|
+
const i = e, n = s[i], l = r(this, w, I).call(this, i, n == null ? void 0 : n.svg);
|
|
67
|
+
n && r(this, d, C).call(this, l, n), t.push(l);
|
|
68
|
+
}
|
|
69
|
+
return t;
|
|
70
|
+
}, w = new WeakSet(), I = function(s, t = !1) {
|
|
71
|
+
let e = null;
|
|
72
|
+
return s.includes("-") ? e = new (customElements.get(s))() : t ? e = document.createElementNS("http://www.w3.org/2000/svg", s) : e = document.createElement(s), e;
|
|
73
|
+
}, A = new WeakSet(), Q = function(s) {
|
|
74
|
+
return s instanceof HTMLElement || s instanceof SVGElement;
|
|
75
|
+
}, d = new WeakSet(), C = function(s, t) {
|
|
76
|
+
const e = r(this, A, Q).call(this, s);
|
|
77
|
+
for (const i in t) {
|
|
78
|
+
const n = i;
|
|
79
|
+
n === "class" && e ? r(this, m, R).call(this, s, t[n]) : n === "style" && e ? r(this, k, _).call(this, s, t[n]) : n === "events" && e ? r(this, P, j).call(this, s, t[n]) : n === "attributes" && e ? r(this, $, tt).call(this, s, t[n]) : n === "children" ? r(this, p, K).call(this, s, t[n]) : n === "shadowChildren" ? r(this, p, K).call(this, s instanceof Element && s.shadowRoot || s, t[n]) : n === "parent" && r(this, V, nt).call(this, s, t[n]);
|
|
80
|
+
}
|
|
81
|
+
t != null && t.ref && (typeof (t == null ? void 0 : t.ref) == "function" ? t.ref(s) : t.ref.current = s);
|
|
82
|
+
}, m = new WeakSet(), R = function(s, t) {
|
|
83
|
+
if (t) {
|
|
84
|
+
if (typeof t == "string")
|
|
85
|
+
s.classList.add(t);
|
|
86
|
+
else if (Array.isArray(t))
|
|
87
|
+
t.forEach((e) => {
|
|
88
|
+
r(this, m, R).call(this, s, e);
|
|
89
|
+
});
|
|
90
|
+
else if (typeof t == "object")
|
|
91
|
+
if (t instanceof h)
|
|
92
|
+
r(this, T, X).call(this, s, t);
|
|
93
|
+
else
|
|
94
|
+
for (const e in t) {
|
|
95
|
+
const i = t[e];
|
|
96
|
+
i instanceof h ? r(this, x, Z).call(this, s, e, i) : i ? s.classList.add(e) : s.classList.remove(e);
|
|
97
|
+
}
|
|
98
|
+
} else
|
|
99
|
+
return;
|
|
100
|
+
}, T = new WeakSet(), X = function(s, t) {
|
|
101
|
+
c(this, a).push(
|
|
102
|
+
t.subscribe(({ current: e, previous: i }) => {
|
|
103
|
+
i && [i].flat().forEach((n) => {
|
|
104
|
+
n && s.classList.remove(n);
|
|
105
|
+
}), e && [e].flat().forEach((n) => {
|
|
106
|
+
n && s.classList.add(n);
|
|
107
|
+
});
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
}, x = new WeakSet(), Z = function(s, t, e) {
|
|
111
|
+
c(this, a).push(
|
|
112
|
+
e.subscribe(({ current: i }) => {
|
|
113
|
+
i ? s.classList.add(t) : s.classList.remove(t);
|
|
114
|
+
})
|
|
115
|
+
);
|
|
116
|
+
}, k = new WeakSet(), _ = function(s, t) {
|
|
117
|
+
if (!t)
|
|
118
|
+
return;
|
|
119
|
+
s.tagName === "style" || s.tagName === "STYLE" ? r(this, S, W).call(this, s, t) : r(this, H, O).call(this, s, t);
|
|
120
|
+
}, H = new WeakSet(), O = function(s, t) {
|
|
121
|
+
for (const e in t) {
|
|
122
|
+
const i = e, n = t[i];
|
|
123
|
+
n instanceof h ? c(this, a).push(
|
|
124
|
+
n.subscribe(({ current: l }) => {
|
|
125
|
+
r(this, g, F).call(this, s, i, l);
|
|
126
|
+
})
|
|
127
|
+
) : r(this, g, F).call(this, s, i, n);
|
|
128
|
+
}
|
|
129
|
+
}, S = new WeakSet(), W = function(s, t) {
|
|
130
|
+
for (const e in t) {
|
|
131
|
+
const i = t[e];
|
|
132
|
+
if (typeof i == "object" && !(i instanceof h))
|
|
133
|
+
s.appendChild(new Text(`${e} {`)), r(this, S, W).call(this, s, i), s.appendChild(new Text("}"));
|
|
134
|
+
else if (i instanceof h) {
|
|
135
|
+
const n = new Text();
|
|
136
|
+
c(this, a).push(
|
|
137
|
+
i.subscribe((l) => {
|
|
138
|
+
l.current ? n.nodeValue = `${z(e)}: ${l.current};` : n.nodeValue = "";
|
|
139
|
+
})
|
|
140
|
+
), s.appendChild(n);
|
|
141
|
+
} else
|
|
142
|
+
s.appendChild(new Text(`${z(e)}: ${i};`));
|
|
143
|
+
}
|
|
144
|
+
}, g = new WeakSet(), F = function(s, t, e) {
|
|
145
|
+
t.includes("--") ? e ? s.style.setProperty(t, e) : s.style.removeProperty(t) : e ? s.style[t] = e : s.style[t] = "";
|
|
146
|
+
}, P = new WeakSet(), j = function(s, t) {
|
|
147
|
+
if (t)
|
|
148
|
+
for (const e in t) {
|
|
149
|
+
const i = e, n = t[i];
|
|
150
|
+
typeof n == "object" ? s.addEventListener(
|
|
151
|
+
i,
|
|
152
|
+
n.callback,
|
|
153
|
+
n.options
|
|
154
|
+
) : typeof n == "function" && s.addEventListener(i, n);
|
|
155
|
+
}
|
|
156
|
+
}, $ = new WeakSet(), tt = function(s, t) {
|
|
157
|
+
for (const e in t) {
|
|
158
|
+
const i = t[e];
|
|
159
|
+
i instanceof h ? c(this, a).push(
|
|
160
|
+
i.subscribe(({ current: n }) => {
|
|
161
|
+
r(this, b, G).call(this, s, e, n);
|
|
162
|
+
})
|
|
163
|
+
) : r(this, b, G).call(this, s, e, i);
|
|
164
|
+
}
|
|
165
|
+
}, b = new WeakSet(), G = function(s, t, e) {
|
|
166
|
+
var i, n;
|
|
167
|
+
t in s && !((n = (i = s.constructor) == null ? void 0 : i.observedAttributes) != null && n.includes(t)) ? e != null && (s[t] = e.toString()) : e != null && s.setAttribute(t, e.toString());
|
|
168
|
+
}, p = new WeakSet(), K = function(s, t) {
|
|
169
|
+
t && (t = [t].flat(), t.forEach((e) => {
|
|
170
|
+
if (e instanceof h) {
|
|
171
|
+
const i = document.createElement("div");
|
|
172
|
+
i.style.display = "contents", s.appendChild(i), c(this, a).push(
|
|
173
|
+
e.subscribe(({ current: n }) => {
|
|
174
|
+
r(this, J, et).call(this, i, r(this, B, st).call(this, n), Array.from(i.childNodes));
|
|
175
|
+
})
|
|
176
|
+
);
|
|
177
|
+
} else if (e instanceof E)
|
|
178
|
+
c(this, a).push(e.destroy), e.rootElements.forEach((i) => {
|
|
179
|
+
s.appendChild(i);
|
|
180
|
+
});
|
|
181
|
+
else {
|
|
182
|
+
const i = r(this, N, U).call(this, e);
|
|
183
|
+
i instanceof Node && s.appendChild(i);
|
|
184
|
+
}
|
|
185
|
+
}));
|
|
186
|
+
}, B = new WeakSet(), st = function(s) {
|
|
187
|
+
return [s].flat().map((e) => e instanceof E ? e.rootElements : r(this, N, U).call(this, e)).flat().filter(Boolean);
|
|
188
|
+
}, J = new WeakSet(), et = function(s, t, e) {
|
|
189
|
+
e.forEach((i, n) => {
|
|
190
|
+
if (n < t.length) {
|
|
191
|
+
const l = t[n];
|
|
192
|
+
r(this, M, it).call(this, i, l) || s.replaceChild(l, i);
|
|
193
|
+
} else
|
|
194
|
+
s.removeChild(i);
|
|
195
|
+
});
|
|
196
|
+
for (let i = e.length; i < t.length; i++)
|
|
197
|
+
s.appendChild(t[i]);
|
|
198
|
+
}, M = new WeakSet(), it = function(s, t) {
|
|
199
|
+
return t ? t instanceof Node ? s.isEqualNode(t) : s.textContent === t.toString() : !1;
|
|
200
|
+
}, N = new WeakSet(), U = function(s) {
|
|
201
|
+
if (s instanceof Node)
|
|
202
|
+
return s;
|
|
203
|
+
if (s != null) {
|
|
204
|
+
const t = String(s);
|
|
205
|
+
if (t.trim().startsWith("<") && t.trim().endsWith(">")) {
|
|
206
|
+
const e = document.createElement("div");
|
|
207
|
+
return e.innerHTML = t, e.firstElementChild;
|
|
208
|
+
} else
|
|
209
|
+
return new Text(t);
|
|
210
|
+
} else
|
|
211
|
+
return;
|
|
212
|
+
}, V = new WeakSet(), nt = function(s, t) {
|
|
213
|
+
if (!t)
|
|
214
|
+
return;
|
|
215
|
+
(t instanceof E ? t.rootElements[0] : t).appendChild(s);
|
|
216
|
+
};
|
|
217
|
+
let L = E;
|
|
218
|
+
function ut(...f) {
|
|
219
|
+
return new L(...f);
|
|
220
|
+
}
|
|
221
|
+
function dt(...f) {
|
|
222
|
+
return () => new L(...f);
|
|
223
|
+
}
|
|
224
|
+
export {
|
|
225
|
+
L as E,
|
|
226
|
+
dt as a,
|
|
227
|
+
ut as e
|
|
228
|
+
};
|
|
@@ -9,7 +9,7 @@ var n = (r, s, t) => (M(r, s, "read from private field"), t ? t.call(r) : s.get(
|
|
|
9
9
|
}, h = (r, s, t, i) => (M(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t);
|
|
10
10
|
import { RESIZE_ORDER as I } from "./order/index.js";
|
|
11
11
|
import { windowResizer as b } from "./window-resizer/index.js";
|
|
12
|
-
import { S } from "./Store-
|
|
12
|
+
import { S } from "./Store-JOKrNVEr.js";
|
|
13
13
|
var l, g, q, x, o, p, w;
|
|
14
14
|
class k {
|
|
15
15
|
constructor(s) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-
|
|
1
|
+
"use strict";var S=(r,s,t)=>{if(!s.has(r))throw TypeError("Cannot "+t)};var n=(r,s,t)=>(S(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>{if(s.has(r))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(r):s.set(r,t)},c=(r,s,t,i)=>(S(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t);const k=require("./order/index.cjs"),M=require("./window-resizer/index.cjs"),z=require("./Store-D0_rDIsE.cjs");var l,g,q,x,a,p,w;class I{constructor(s){o(this,l,void 0);o(this,g,void 0);o(this,q,void 0);o(this,x,void 0);o(this,a,void 0);o(this,p,void 0);o(this,w,void 0);c(this,l,s);const t=s.indexOf("?");t>=0&&(s=s.slice(0,t));const i=s.split(".");c(this,g,i[0]);const m=/\d+x/g,h=i.find(f=>f.match(m));c(this,q,h?parseInt(h):1);const y=/\d+max/g,P=/\d+min/g,e=i.find(f=>f.match(y)),u=i.find(f=>f.match(P));e?(c(this,a,parseInt(e)),c(this,p,"max"),c(this,x,`(max-width: ${n(this,a)}px)`)):u?(c(this,a,parseInt(u)),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")):(c(this,a,0),c(this,x,`(min-width: ${n(this,a)}px)`),c(this,p,"min")),c(this,w,"."+i[i.length-1])}get url(){return n(this,l)}get name(){return n(this,g)}get density(){return n(this,q)}get query(){return n(this,x)}get extension(){return n(this,w)}get queryType(){return n(this,p)}get queryPx(){return n(this,a)}}l=new WeakMap,g=new WeakMap,q=new WeakMap,x=new WeakMap,a=new WeakMap,p=new WeakMap,w=new WeakMap;var d;class b{constructor(s){o(this,d,void 0);c(this,d,new Map);const t=typeof s=="string"?s.trim().split(",").map(e=>e.trim()).filter(e=>!!e):s,i=[];t.forEach(e=>{const u=new I(e);i.push([u.query,u])});const m=i.filter(e=>e[1].queryType==="max").sort((e,u)=>u[1].queryPx-e[1].queryPx),h=i.filter(e=>e[1].queryType==="min"&&e[1].queryPx!==0).sort((e,u)=>e[1].queryPx-u[1].queryPx),y=i.filter(e=>e[0]==="(min-width: 0px)");(y?[...y,...m,...h]:[...m,...h]).forEach(e=>{n(this,d).has(e[0])||n(this,d).set(e[0],[]),n(this,d).get(e[0]).push(e[1])})}get mediaBuckets(){return n(this,d)}}d=new WeakMap;var E,R;class B extends z.Store{constructor(t){super(void 0);o(this,E,void 0);o(this,R,()=>{let t;n(this,E).mediaBuckets.forEach((h,y)=>{matchMedia(y).matches&&(t=h)});let i,m=0;t==null||t.forEach(h=>{h.density>m&&h.density<=Math.max(devicePixelRatio,1)&&(m=h.density,i=h)}),t!=null&&t.length&&!i&&(i=t[0]),this.current=i});c(this,E,new b(t.srcset))}close(){super.close(),this.disconnect()}connect(){M.windowResizer.subscribe(n(this,R),k.RESIZE_ORDER.SOURCE_MANAGER)}disconnect(){M.windowResizer.unsubscribe(n(this,R))}}E=new WeakMap,R=new WeakMap;exports.Source=I;exports.SourceManager=B;exports.SourceSet=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var v=(s,t,e)=>{if(!t.has(s))throw TypeError("Cannot "+e)};var r=(s,t,e)=>(v(s,t,"read from private field"),e?e.call(s):t.get(s)),a=(s,t,e)=>{if(t.has(s))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(s):t.set(s,e)},i=(s,t,e,h)=>(v(s,t,"write to private field"),h?h.call(s,e):t.set(s,e),e);var R=(s,t,e)=>(v(s,t,"access private method"),e);const A=require("./browser-CpzFX2xg.cjs");var l,o,S;class M{constructor(){a(this,l,null);a(this,o,"");a(this,S,"");A.isBrowser&&(i(this,o,document.documentElement.getAttribute("data-project")||"unnamed"),i(this,S,r(this,o)?r(this,o)+"-store-registry":"store-registry"))}get projectName(){return r(this,o)}get localStoreRegistryName(){return r(this,S)}get loadedState(){return r(this,l)}saveState(){const t=this.getState(),e=JSON.stringify(t);localStorage.setItem(r(this,S),e)}loadState(t=localStorage.getItem(r(this,S))){t&&(typeof t=="string"?i(this,l,JSON.parse(t)):i(this,l,t),u.current.forEach(e=>{this.updateStore(e)}))}resetState(){u.current.forEach(t=>{t.reset()}),this.saveState()}updateStore(t){var h,w;if(!Array.isArray((h=r(this,l))==null?void 0:h.stores))return t;const e=t.passport;if(e){const N=(w=r(this,l))==null?void 0:w.stores.find(z=>z.name===e.name);N&&(t.current=N.value)}return t}getState(){const t={stores:[]};return u.current.forEach(e=>{e.passport&&(t.stores.find(h=>h.name===e.passport.name)||t.stores.push({value:e.current,name:e.passport.name}))}),t}}l=new WeakMap,o=new WeakMap,S=new WeakMap;const E=new M;var d,m,g,f,y,n,b,c,p,q;class j{constructor(t,e){a(this,p);a(this,d,void 0);a(this,m,void 0);a(this,g,void 0);a(this,f,void 0);a(this,y,void 0);a(this,n,new Set);a(this,b,void 0);a(this,c,void 0);i(this,d,e==null?void 0:e.passport),i(this,m,t),i(this,g,void 0),i(this,f,t),i(this,y,(e==null?void 0:e.equalityCheck)||((h,w)=>h===w)),e!=null&&e.validate&&this.addMiddleware(e.validate),i(this,b,(e==null?void 0:e.skipSubscribeNotification)||!1),r(this,d)&&E.updateStore(this)}get passport(){return r(this,d)}get initial(){return r(this,m)}get previous(){return r(this,g)}get current(){return r(this,f)}set current(t){if(!r(this,y).call(this,r(this,f),t)){if(i(this,g,r(this,f)),r(this,c))for(const e of r(this,c))t=e(t);i(this,f,t),R(this,p,q).call(this)}}get subscribers(){return r(this,n)}get entry(){return{current:r(this,f),previous:r(this,g)}}addMiddleware(t){r(this,c)||i(this,c,new Set),r(this,c).add(t)}removeMiddleware(t){var e,h;(e=r(this,c))==null||e.delete(t),(h=r(this,c))!=null&&h.size||i(this,c,void 0)}subscribe(t){return r(this,d)&&!r(this,n).size&&C(this),r(this,n).add(t),r(this,b)||t(this.entry),()=>{this.unsubscribe(t)}}unsubscribe(t){r(this,n).delete(t),r(this,d)&&!r(this,n).size&&k(this)}reset(){this.current=this.initial}close(){r(this,n).clear(),r(this,d)&&k(this)}}d=new WeakMap,m=new WeakMap,g=new WeakMap,f=new WeakMap,y=new WeakMap,n=new WeakMap,b=new WeakMap,c=new WeakMap,p=new WeakSet,q=function(){for(const t of r(this,n))t(this.entry)};const u=new j([]);function C(s){u.current.includes(s)||(u.current=[...u.current,s])}function k(s){u.current.includes(s)&&(u.current=u.current.filter(t=>t!==s))}exports.Store=j;exports.activeStores=u;exports.storeRegistry=E;
|
|
@@ -6,7 +6,7 @@ var r = (s, t, e) => (v(s, t, "read from private field"), e ? e.call(s) : t.get(
|
|
|
6
6
|
if (t.has(s))
|
|
7
7
|
throw TypeError("Cannot add the same private member more than once");
|
|
8
8
|
t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
9
|
-
}, i = (s, t, e,
|
|
9
|
+
}, i = (s, t, e, h) => (v(s, t, "write to private field"), h ? h.call(s, e) : t.set(s, e), e);
|
|
10
10
|
var k = (s, t, e) => (v(s, t, "access private method"), e);
|
|
11
11
|
import { i as z } from "./browser-0zX67oeU.js";
|
|
12
12
|
var l, o, S;
|
|
@@ -43,12 +43,12 @@ class A {
|
|
|
43
43
|
}), this.saveState();
|
|
44
44
|
}
|
|
45
45
|
updateStore(t) {
|
|
46
|
-
var
|
|
47
|
-
if (!Array.isArray((
|
|
46
|
+
var h, p;
|
|
47
|
+
if (!Array.isArray((h = r(this, l)) == null ? void 0 : h.stores))
|
|
48
48
|
return t;
|
|
49
49
|
const e = t.passport;
|
|
50
50
|
if (e) {
|
|
51
|
-
const N = (
|
|
51
|
+
const N = (p = r(this, l)) == null ? void 0 : p.stores.find(
|
|
52
52
|
(j) => j.name === e.name
|
|
53
53
|
);
|
|
54
54
|
N && (t.current = N.value);
|
|
@@ -60,16 +60,16 @@ class A {
|
|
|
60
60
|
stores: []
|
|
61
61
|
};
|
|
62
62
|
return f.current.forEach((e) => {
|
|
63
|
-
e.passport && t.stores.push({
|
|
63
|
+
e.passport && (t.stores.find((h) => h.name === e.passport.name) || t.stores.push({
|
|
64
64
|
value: e.current,
|
|
65
65
|
name: e.passport.name
|
|
66
|
-
});
|
|
66
|
+
}));
|
|
67
67
|
}), t;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
l = new WeakMap(), o = new WeakMap(), S = new WeakMap();
|
|
71
71
|
const M = new A();
|
|
72
|
-
var u, m, g, d, y, n,
|
|
72
|
+
var u, m, g, d, y, n, b, c, w, R;
|
|
73
73
|
class q {
|
|
74
74
|
constructor(t, e) {
|
|
75
75
|
a(this, w);
|
|
@@ -79,9 +79,9 @@ class q {
|
|
|
79
79
|
a(this, d, void 0);
|
|
80
80
|
a(this, y, void 0);
|
|
81
81
|
a(this, n, /* @__PURE__ */ new Set());
|
|
82
|
-
a(this,
|
|
83
|
-
a(this,
|
|
84
|
-
i(this, u, e == null ? void 0 : e.passport), i(this, m, t), i(this, g, void 0), i(this, d, t), i(this, y, (e == null ? void 0 : e.equalityCheck) || ((
|
|
82
|
+
a(this, b, void 0);
|
|
83
|
+
a(this, c, void 0);
|
|
84
|
+
i(this, u, e == null ? void 0 : e.passport), i(this, m, t), i(this, g, void 0), i(this, d, t), i(this, y, (e == null ? void 0 : e.equalityCheck) || ((h, p) => h === p)), e != null && e.validate && this.addMiddleware(e.validate), i(this, b, (e == null ? void 0 : e.skipSubscribeNotification) || !1), r(this, u) && M.updateStore(this);
|
|
85
85
|
}
|
|
86
86
|
get passport() {
|
|
87
87
|
return r(this, u);
|
|
@@ -97,8 +97,8 @@ class q {
|
|
|
97
97
|
}
|
|
98
98
|
set current(t) {
|
|
99
99
|
if (!r(this, y).call(this, r(this, d), t)) {
|
|
100
|
-
if (i(this, g, r(this, d)), r(this,
|
|
101
|
-
for (const e of r(this,
|
|
100
|
+
if (i(this, g, r(this, d)), r(this, c))
|
|
101
|
+
for (const e of r(this, c))
|
|
102
102
|
t = e(t);
|
|
103
103
|
i(this, d, t), k(this, w, R).call(this);
|
|
104
104
|
}
|
|
@@ -113,14 +113,14 @@ class q {
|
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
115
|
addMiddleware(t) {
|
|
116
|
-
r(this,
|
|
116
|
+
r(this, c) || i(this, c, /* @__PURE__ */ new Set()), r(this, c).add(t);
|
|
117
117
|
}
|
|
118
118
|
removeMiddleware(t) {
|
|
119
|
-
var e,
|
|
120
|
-
(e = r(this,
|
|
119
|
+
var e, h;
|
|
120
|
+
(e = r(this, c)) == null || e.delete(t), (h = r(this, c)) != null && h.size || i(this, c, void 0);
|
|
121
121
|
}
|
|
122
122
|
subscribe(t) {
|
|
123
|
-
return r(this, u) && !r(this, n).size && C(this), r(this, n).add(t), r(this,
|
|
123
|
+
return r(this, u) && !r(this, n).size && C(this), r(this, n).add(t), r(this, b) || t(this.entry), () => {
|
|
124
124
|
this.unsubscribe(t);
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -134,13 +134,13 @@ class q {
|
|
|
134
134
|
r(this, n).clear(), r(this, u) && E(this);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
u = new WeakMap(), m = new WeakMap(), g = new WeakMap(), d = new WeakMap(), y = new WeakMap(), n = new WeakMap(),
|
|
137
|
+
u = new WeakMap(), m = new WeakMap(), g = new WeakMap(), d = new WeakMap(), y = new WeakMap(), n = new WeakMap(), b = new WeakMap(), c = new WeakMap(), w = new WeakSet(), R = function() {
|
|
138
138
|
for (const t of r(this, n))
|
|
139
139
|
t(this.entry);
|
|
140
140
|
};
|
|
141
141
|
const f = new q([]);
|
|
142
142
|
function C(s) {
|
|
143
|
-
f.current.
|
|
143
|
+
f.current.includes(s) || (f.current = [...f.current, s]);
|
|
144
144
|
}
|
|
145
145
|
function E(s) {
|
|
146
146
|
f.current.includes(s) && (f.current = f.current.filter((t) => t !== s));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-
|
|
1
|
+
"use strict";var W=(t,n,o)=>{if(!n.has(t))throw TypeError("Cannot "+o)};var i=(t,n,o)=>(W(t,n,"read from private field"),o?o.call(t):n.get(t)),s=(t,n,o)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,o)},e=(t,n,o,v)=>(W(t,n,"write to private field"),v?v.call(t,o):n.set(t,o),o);const k=require("./order/index.cjs"),A=require("./window-resizer/index.cjs"),D=require("./browser-CpzFX2xg.cjs"),_=require("detect-gpu"),q=require("./Store-D0_rDIsE.cjs");var r,l,m,c,g,u,w,x,d;class I{constructor(){s(this,r,"unknown");s(this,l,"unknown");s(this,m,0);s(this,c,null);s(this,g,!1);s(this,u,!1);s(this,w,!1);s(this,x,!1);s(this,d,!1);var n,o;if(D.isBrowser){e(this,c,_.getGPUTier()),i(this,c).then(a=>{e(this,l,a.gpu||"unknown"),e(this,m,a.tier)}),A.windowResizer.subscribe(()=>{e(this,g,/Mobi|Android/i.test(navigator.userAgent)),e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0),setTimeout(()=>{e(this,u,"ontouchstart"in window||navigator.maxTouchPoints>0)},0)},k.RESIZE_ORDER.DEVICE);{const a=document.createElement("canvas"),P=a.getContext("webgl")||a.getContext("experimental-webgl");e(this,w,P&&P instanceof WebGLRenderingContext||!1)}{const a=document.createElement("canvas");a.getContext("2d")&&e(this,x,a.toDataURL("image/webp").indexOf("data:image/webp")==0)}const v=window.navigator.userAgent,E=((o=(n=window.navigator)==null?void 0:n.userAgentData)==null?void 0:o.platform)||window.navigator.platform,O=["Macintosh","MacIntel","MacPPC","Mac68K","macOS"],R=["Win32","Win64","Windows","WinCE"],T=["iPhone","iPad","iPod"];O.includes(E)?(e(this,r,"macOS"),e(this,d,!0)):T.includes(E)?(e(this,r,"iOS"),e(this,d,!0)):R.includes(E)?e(this,r,"Windows"):/Android/.test(v)?e(this,r,"Android"):/Linux/.test(E)?e(this,r,"Linux"):e(this,r,"unknown")}}get OS(){return i(this,r)}get gpu(){return i(this,l)}get gpuTier(){return i(this,m)}get gpuDetection(){return i(this,c)}get isMobile(){return i(this,g)}get isTouch(){return i(this,u)}get isWebgl(){return i(this,w)}get isWebp(){return i(this,x)}get isApple(){return i(this,d)}}r=new WeakMap,l=new WeakMap,m=new WeakMap,c=new WeakMap,g=new WeakMap,u=new WeakMap,w=new WeakMap,x=new WeakMap,d=new WeakMap;const M=new I;var S=(t=>(t.mobile="600px",t.tablet="1024px",t.notebook="1280px",t.desktop="1281px",t))(S||{}),C=(t=>(t["<=mobile"]="(max-width: 600px)",t[">=mobile"]="(min-width: 601px)",t["<=tablet"]="(max-width: 1024px)",t[">=tablet"]="(min-width: 1025px)",t["<=notebook"]="(max-width: 1280px)",t[">=notebook"]="(min-width: 1281px)",t["<=desktop"]="(max-width: 1280px)",t[">=desktop"]="(min-width: 1281px)",t))(C||{}),p,b,f,h;class L{constructor(){s(this,p,0);s(this,b,0);s(this,f,0);s(this,h,new q.Store(void 0));D.isBrowser&&A.windowResizer.subscribe(()=>{e(this,p,document.documentElement.clientWidth),e(this,b,innerHeight),e(this,f,devicePixelRatio),matchMedia("(max-width: 600px)").matches?i(this,h).current="mobile":matchMedia("(max-width: 1024px)").matches?i(this,h).current="tablet":matchMedia("(max-width: 1280px)").matches?i(this,h).current="notebook":matchMedia("(min-width: 1281px)").matches&&(i(this,h).current="desktop")},k.RESIZE_ORDER.DEVICE)}get width(){return i(this,p)}get height(){return i(this,b)}get store_type(){return i(this,h)}get pixelRatio(){return i(this,f)}}p=new WeakMap,b=new WeakMap,f=new WeakMap,h=new WeakMap;const z=new L;exports.ViewportBreakpoints=S;exports.ViewportMediaRules=C;exports.device=M;exports.viewport=z;
|
|
@@ -11,7 +11,7 @@ import { RESIZE_ORDER as k } from "./order/index.js";
|
|
|
11
11
|
import { windowResizer as A } from "./window-resizer/index.js";
|
|
12
12
|
import { i as C } from "./browser-0zX67oeU.js";
|
|
13
13
|
import { getGPUTier as O } from "detect-gpu";
|
|
14
|
-
import { S as I } from "./Store-
|
|
14
|
+
import { S as I } from "./Store-JOKrNVEr.js";
|
|
15
15
|
var r, d, l, c, g, m, p, x, u;
|
|
16
16
|
class L {
|
|
17
17
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../custom-element/index.cjs"),r=require("../ElementConstructor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../custom-element/index.cjs"),r=require("../ElementConstructor-9f-12v7T.cjs"),s=require("../browser-CpzFX2xg.cjs");class n extends e.CustomElement{constructor(){super(),s.isBrowser&&r.element(this,{attributes:{tabIndex:this.getAttribute("tabindex")||"0",role:"button"},style:{cursor:"default"},events:{keydown:t=>{t.code==="Space"&&this.click()},click:()=>{this.click()}}})}}exports.AbstractButtonElement=n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomElement as e } from "../custom-element/index.js";
|
|
2
|
-
import { e as s } from "../ElementConstructor-
|
|
2
|
+
import { e as s } from "../ElementConstructor-CoKM2CTK.js";
|
|
3
3
|
import { i as r } from "../browser-0zX67oeU.js";
|
|
4
4
|
class l extends e {
|
|
5
5
|
constructor() {
|
package/lib/animation/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var h=Object.defineProperty,c=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var i=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,n=(a,t)=>{for(var e in t||(t={}))g.call(t,e)&&i(a,e,t[e]);if(r)for(var e of r(t))A.call(t,e)&&i(a,e,t[e]);return a},s=(a,t)=>c(a,l(t));var m=(a,t,e)=>(i(a,typeof t!="symbol"?t+"":t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Animated-
|
|
1
|
+
"use strict";var h=Object.defineProperty,c=Object.defineProperties;var l=Object.getOwnPropertyDescriptors;var r=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable;var i=(a,t,e)=>t in a?h(a,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[t]=e,n=(a,t)=>{for(var e in t||(t={}))g.call(t,e)&&i(a,e,t[e]);if(r)for(var e of r(t))A.call(t,e)&&i(a,e,t[e]);return a},s=(a,t)=>c(a,l(t));var m=(a,t,e)=>(i(a,typeof t!="symbol"?t+"":t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../Animated-DyZuTEQE.cjs"),x=require("../easings-DsS5-Kqc.cjs"),F=require("../Damped-AHRBHNEQ.cjs");class f extends d.Animated{constructor(e){super(s(n({},e),{min:(e==null?void 0:e.min)||0,max:(e==null?void 0:e.max)||1e3}));m(this,"easing");this.easing=(e==null?void 0:e.easing)||x.linear}start(){this.listenAnimationFrame()}pause(){this.unlistenAnimationFrame()}stop(){this.reset()}get max(){return super.max}update(){const e=(this.target-this.min.current)/(this.delta||1),u=this.easing(e);this.current=this.min.current+u*this.delta}handleAnimationFrame(e){this.shift(e.elapsed),(e.elapsed&&this.current===0||this.current===this.delta)&&this.unlistenAnimationFrame()}}exports.Animated=d.Animated;exports.Damped=F.Damped;exports.Tweened=f;
|
package/lib/animation/index.js
CHANGED
|
@@ -11,9 +11,9 @@ var r = (a, t, e) => t in a ? d(a, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
return a;
|
|
12
12
|
}, m = (a, t) => l(a, u(t));
|
|
13
13
|
var n = (a, t, e) => (r(a, typeof t != "symbol" ? t + "" : t, e), e);
|
|
14
|
-
import { A as g } from "../Animated-
|
|
14
|
+
import { A as g } from "../Animated-CJcYqJzq.js";
|
|
15
15
|
import { l as A } from "../easings-BKi40vHz.js";
|
|
16
|
-
import { D as b } from "../Damped-
|
|
16
|
+
import { D as b } from "../Damped-Csj-9_gH.js";
|
|
17
17
|
class w extends g {
|
|
18
18
|
constructor(e) {
|
|
19
19
|
super(m(s({}, e), {
|
package/lib/attribute/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var m=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(m(s,r,"read from private field"),e?e.call(s):r.get(s)),u=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},h=(s,r,e,f)=>(m(s,r,"write to private field"),f?f.call(s,e):r.set(s,e),e);var o=(s,r,e)=>(m(s,r,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-
|
|
1
|
+
"use strict";var m=(s,r,e)=>{if(!r.has(s))throw TypeError("Cannot "+e)};var t=(s,r,e)=>(m(s,r,"read from private field"),e?e.call(s):r.get(s)),u=(s,r,e)=>{if(r.has(s))throw TypeError("Cannot add the same private member more than once");r instanceof WeakSet?r.add(s):r.set(s,e)},h=(s,r,e,f)=>(m(s,r,"write to private field"),f?f.call(s,e):r.set(s,e),e);var o=(s,r,e)=>(m(s,r,"access private method"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../Store-D0_rDIsE.cjs"),q=require("../attributes-Bf2svn4j.cjs"),C=require("../browser-CpzFX2xg.cjs"),p=require("../dom-qY2LdCVL.cjs");var i,n,b,a,c,l,w,d,y;class z extends S.Store{constructor(e,f,O,v){super(O,v);u(this,l);u(this,d);u(this,i,null);u(this,n,void 0);u(this,b,null);u(this,a,null);u(this,c,!1);h(this,n,f),C.isBrowser&&(h(this,i,p.getElement(e)),v!=null&&v.sync&&this.subscribe(g=>{t(this,i).setAttribute(t(this,n),g.current.toString())}),h(this,b,new MutationObserver(g=>{g.forEach(A=>{A.type==="attributes"&&A.attributeName===t(this,n)&&o(this,l,w).call(this)})})),h(this,a,new ResizeObserver(()=>{t(this,i).isConnected&&!t(this,c)?t(this,b).observe(t(this,i),{attributes:!0}):!t(this,i).isConnected&&t(this,c)&&(t(this,b).disconnect(),t(this,a).disconnect()),h(this,c,t(this,i).isConnected)})))}get current(){return o(this,d,y).call(this),super.current}set current(e){super.current=e}subscribe(e){return o(this,d,y).call(this),super.subscribe(e)}}i=new WeakMap,n=new WeakMap,b=new WeakMap,a=new WeakMap,c=new WeakMap,l=new WeakSet,w=function(){const e=t(this,i).getAttribute(t(this,n));e!=null&&(this.current=q.parseAttributeValue(e))},d=new WeakSet,y=function(){t(this,c)||(o(this,l,w).call(this),t(this,a).observe(t(this,i)))};exports.Attribute=z;
|
package/lib/attribute/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var e = (s, r, t) => (v(s, r, "read from private field"), t ? t.call(s) : r.get(
|
|
|
8
8
|
r instanceof WeakSet ? r.add(s) : r.set(s, t);
|
|
9
9
|
}, c = (s, r, t, m) => (v(s, r, "write to private field"), m ? m.call(s, t) : r.set(s, t), t);
|
|
10
10
|
var o = (s, r, t) => (v(s, r, "access private method"), t);
|
|
11
|
-
import { S as O } from "../Store-
|
|
11
|
+
import { S as O } from "../Store-JOKrNVEr.js";
|
|
12
12
|
import { p as y } from "../attributes-69we3byR.js";
|
|
13
13
|
import { i as S } from "../browser-0zX67oeU.js";
|
|
14
14
|
import { g as x } from "../dom-BY7JhTx5.js";
|
package/lib/canvas/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../custom-element/index.cjs"),R=require("../ElementConstructor-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("../custom-element/index.cjs"),R=require("../ElementConstructor-9f-12v7T.cjs"),M=require("../htmlTags-BSQys9wH.cjs"),W=require("../createStylesheet-uicRVW05.cjs"),y=require("../math-GDWEqu7y.cjs"),b=require("../notifier/index.cjs"),x=require("../element-resizer/index.cjs"),E=require("../ticker/index.cjs");var q=Object.defineProperty,S=Object.getOwnPropertyDescriptor,P=(i,e,s,r)=>{for(var h=r>1?void 0:r?S(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(h=(r?g(e,s,h):g(h))||h);return r&&h&&q(e,s,h),h},C=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(C(i,e,"read from private field"),s?s.call(i):e.get(i)),n=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,r)=>(C(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s),p,a,d,l,o,u,v,_,m,w;const O=W.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends k.CustomElement{constructor(){super(),n(this,p,new b.Notifier),n(this,a,null),n(this,d,null),n(this,l,0),n(this,o,0),n(this,u,1),n(this,v,0),n(this,_,1),n(this,m,e=>{c(this,u,y.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,a).width=t(this,l)*this.pixelRatio,t(this,a).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),this.renderEvent.notify(this.detail)}),n(this,w,e=>{c(this,v,e.timestamp),c(this,_,e.elapsed),t(this,p).notify(this.detail)}),this.openShadow(O),R.element(this,{shadowChildren:M.canvas({ref:e=>{c(this,a,e),c(this,d,e.getContext("2d"))}})})}get renderEvent(){return t(this,p)}get canvasElement(){return t(this,a)}get context(){return t(this,d)}get pixelRatio(){return t(this,u)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,a),pixelRatio:t(this,u),context:t(this,d),timestamp:t(this,v),elapsed:t(this,_)}}connectedCallback(){x.elementResizer.subscribe(this,t(this,m)),this.hasAttribute("static")||E.ticker.subscribe(t(this,w),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){x.elementResizer.unsubscribe(t(this,m)),E.ticker.unsubscribe(t(this,w)),t(this,p).close(),t(this,a).remove()}};p=new WeakMap;a=new WeakMap;d=new WeakMap;l=new WeakMap;o=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakMap;exports.CanvasElement=P([k.define("e-canvas")],exports.CanvasElement);
|
package/lib/canvas/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CustomElement as C, define as E } from "../custom-element/index.js";
|
|
2
|
-
import { e as M } from "../ElementConstructor-
|
|
3
|
-
import { c as y } from "../htmlTags-
|
|
4
|
-
import { c as b } from "../createStylesheet-
|
|
2
|
+
import { e as M } from "../ElementConstructor-CoKM2CTK.js";
|
|
3
|
+
import { c as y } from "../htmlTags-BCNUG7oK.js";
|
|
4
|
+
import { c as b } from "../createStylesheet-BON7aJYs.js";
|
|
5
5
|
import { c as P } from "../math-BOBiC4TN.js";
|
|
6
6
|
import { Notifier as S } from "../notifier/index.js";
|
|
7
7
|
import { elementResizer as x } from "../element-resizer/index.js";
|
package/lib/connector/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var C=(t,n,e)=>{if(!n.has(t))throw TypeError("Cannot "+e)};var
|
|
1
|
+
"use strict";var C=(t,n,e)=>{if(!n.has(t))throw TypeError("Cannot "+e)};var s=(t,n,e)=>(C(t,n,"read from private field"),e?e.call(t):n.get(t)),o=(t,n,e)=>{if(n.has(t))throw TypeError("Cannot add the same private member more than once");n instanceof WeakSet?n.add(t):n.set(t,e)},r=(t,n,e,a)=>(C(t,n,"write to private field"),a?a.call(t,e):n.set(t,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../browser-CpzFX2xg.cjs");var i,l,d;class b{constructor(){o(this,i,[]);o(this,l,void 0);o(this,d,()=>{var n,e;for(let a=0;a<s(this,i).length;a++){const c=s(this,i)[a];c.node.isConnected&&!c.isConnected?((n=c.connectCallback)==null||n.call(c),c.isConnected=!0):!c.node.isConnected&&c.isConnected&&((e=c.disconnectCallback)==null||e.call(c),c.isConnected=!1,c.unsubscribeAfterDisconnect&&this.unsubscribe(c)),c.timer+=100,!c.isConnected&&c.timer>c.maxWaitSec*1e3&&this.unsubscribe(c)}});f.isBrowser&&r(this,l,setInterval(s(this,d),100))}subscribe(n,e){return s(this,i).push({node:n,connectCallback:e.connectCallback,disconnectCallback:e.disconnectCallback,isConnected:!1,maxWaitSec:e.maxWaitSec||1/0,timer:0,unsubscribeAfterDisconnect:e.unsubscribeAfterDisconnect||!1}),()=>{this.unsubscribe(e)}}unsubscribe(n){s(this,i).forEach(e=>{e.connectCallback===n.connectCallback&&(e.connectCallback=void 0),e.disconnectCallback===n.disconnectCallback&&(e.disconnectCallback=void 0)}),r(this,i,s(this,i).filter(e=>e.connectCallback&&e.disconnectCallback))}destroy(){clearInterval(s(this,l)),r(this,i,[])}}i=new WeakMap,l=new WeakMap,d=new WeakMap;const u=new b;exports.Connector=b;exports.connector=u;
|
package/lib/connector/index.d.ts
CHANGED